[
  {
    "path": ".clang-format",
    "content": "---\nBasedOnStyle: Google\nStandard: Cpp11\nColumnLimit: 0\nAlignTrailingComments: false\nNamespaceIndentation: All\nDerivePointerAlignment: false\nAlwaysBreakBeforeMultilineStrings: false\nAccessModifierOffset: -2\nObjCSpaceBeforeProtocolList: true\nSortIncludes: false\nObjCBinPackProtocolList: Auto\n---\nLanguage: Cpp\n---\nLanguage: ObjC\n...\n"
  },
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\nindent_style = space\nindent_size = 2\n"
  },
  {
    "path": ".github/workflows/build.yml",
    "content": "name: GitUp\n\non:\n  push:\n    branches:\n      - master\n  pull_request:\n    branches:\n      - master\n\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true\n\njobs:\n  build:\n    name: Build GitUp Application\n    runs-on: macos-latest\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n        with:\n          submodules: true\n\n      - name: Select Xcode version\n        run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer\n\n      - name: Show Xcode version\n        run: xcodebuild -version\n\n      - name: Build GitUp\n        working-directory: GitUp\n        run: |\n          xcodebuild build \\\n            -scheme \"Application\" \\\n            -configuration \"Release\" \\\n            CODE_SIGN_IDENTITY=\"\" \\\n            CODE_SIGNING_REQUIRED=NO \\\n            CODE_SIGNING_ALLOWED=NO\n\n"
  },
  {
    "path": ".github/workflows/test.yml",
    "content": "name: GitUpKit Tests\n\non:\n  push:\n    branches:\n      - master\n  pull_request:\n    branches:\n      - master\n\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true\n\njobs:\n  test:\n    name: Run GitUpKit Tests\n    runs-on: macos-latest\n\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v4\n        with:\n          submodules: true\n\n      - name: Select Xcode version\n        run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer\n\n      - name: Show Xcode version\n        run: xcodebuild -version\n\n      - name: Run GitUpKit (macOS) tests\n        working-directory: GitUpKit\n        run: |\n          xcodebuild test \\\n            -scheme \"GitUpKit (macOS)\" \\\n            -destination \"platform=macOS\" \\\n            CODE_SIGN_IDENTITY=\"\" \\\n            CODE_SIGNING_REQUIRED=NO \\\n            CODE_SIGNING_ALLOWED=NO\n\n"
  },
  {
    "path": ".gitignore",
    "content": ".DS_Store\nxcuserdata\nproject.xcworkspace\nbuild\n\n# User-specific xcconfig files\nXcode-Configurations/DEVELOPMENT_TEAM.xcconfig\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"libgit2\"]\n\tpath = GitUpKit/Third-Party/libgit2\n\turl = https://github.com/git-up/libgit2.git\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "**[Pull requests](https://github.com/git-up/GitUp/pulls?q=is%3Apr) are welcome but be aware that GitUp is used for production work by many thousands of developers around the world, so the bar is very high. The last thing we want is letting the code quality slip or introducing a regression.**\n\n**If you are unsure your contribution would be valuable to GitUp, or are looking for contributions to work on, check out the opened [GitHub Issues](https://github.com/git-up/GitUp/issues).**\n\n**You must accept the terms of the [GitUp Contributor License Agreement](https://github.com/git-up/GitUp/wiki/GITUP-CONTRIBUTOR-LICENSE-AGREEMENT) before your pull request can be merged into upstream. To do so, you must include \"I AGREE TO THE GITUP CONTRIBUTOR LICENSE AGREEMENT\" somewhere in the description of your pull request.**\n\nThe following is a list of absolute requirements for PRs (not following them would result in immediate rejection):\n\n1. The coding style MUST be followed exactly, which is trivial thanks to [Clang Format](http://clang.llvm.org/docs/ClangFormat.html)\n  - Install Clang Format then simply run `./format-source.sh` to ensure your PR is styled correctly\n2. Additions to `Core/` MUST have associated unit tests\n3. Each commit MUST be a single change (e.g. adding a function or fixing a bug, but not both at once)\n4. Each commit MUST be self-contained i.e. GitUp builds and remains fully functional when building it at this very commit\n5. Commits MUST NOT change dozens or hundreds of files at once (outside of absolutely trivial changes like updating the copyright year)\n  - Properly reviewing such a diff is close to impossible and there's a fair chance of a hidden regression sneaking in only to be discovered weeks later\n  - Find a way to break the change into a series of logical changes affecting only a subset of the files each\n6. Commit messages MUST have:\n  - A clear and concise title that starts with an uppercase and doesn't end with a period e.g. \"Changed app bundle ID to com.example.gitup\" not \"updated bundle id.\"\n  - Unless it is trivial, a detailed summary explaining the change using full sentences and with punctuation (no need to wrap at 80 characters but keep lines to a reasonable length)\n7. The pull request MUST contain as few commits as needed\n8. The pull request MUST NOT contain fixup or revert commits (flatten them beforehand using GitUp!)\n9. The pull request MUST be rebased on latest `master` when sent\n"
  },
  {
    "path": "Examples/GitDiff/AppDelegate.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\n@interface AppDelegate : NSObject <NSApplicationDelegate>\n@end\n"
  },
  {
    "path": "Examples/GitDiff/AppDelegate.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <GitUpKit/GitUpKit.h>\n\n#import \"AppDelegate.h\"\n\n@interface AppDelegate ()\n@property(nonatomic, strong) IBOutlet GIWindow* window;\n@end\n\n// GIDiffContentsViewController is a view controller that displays the contents of an arbitrary diff\n// This subclass automatically sets the diff to the one between HEAD and workdir (like 'git diff HEAD') and live updates it\n@interface LiveDiffViewController : GIDiffContentsViewController\n@end\n\n@implementation LiveDiffViewController\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    // Customize the text displayed when the diff is empty\n    self.emptyLabel = NSLocalizedString(@\"Working directory and index are clean\", nil);\n  }\n  return self;\n}\n\n- (void)viewWillShow {\n  // Configure the repo to automatically compute the HEAD to workdir diff (aka \"unified status\")\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Unified;\n\n  // Refresh contents immediately\n  [self _reloadContents];\n}\n\n- (void)viewDidHide {\n  // Unload the diff to save memory\n  [self setDeltas:nil usingConflicts:nil];\n\n  // Stop watching the repo status as it's not needed anymore\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Disabled;\n}\n\n- (void)_reloadContents {\n  // Simply set the diff to display to the unified status one, taking into account any conflicts\n  GCDiff* status = self.repository.unifiedStatus;\n  NSDictionary* conflicts = self.repository.indexConflicts;\n  [self setDeltas:status.deltas usingConflicts:conflicts];\n}\n\n- (void)repositoryStatusDidUpdate {\n  // Refresh the diff if the repo status has been updated\n  if (self.viewVisible) {\n    [self _reloadContents];\n  }\n}\n\n@end\n\n@implementation AppDelegate {\n  GCLiveRepository* _repository;\n  GIWindowController* _windowController;\n  GIViewController* _viewController;\n}\n\n- (void)applicationDidFinishLaunching:(NSNotification*)notification {\n  NSError* error;\n\n  // Prompt user for a directory\n  NSOpenPanel* openPanel = [NSOpenPanel openPanel];\n  openPanel.canChooseDirectories = YES;\n  openPanel.canChooseFiles = NO;\n  if ([openPanel runModal] != NSFileHandlingPanelOKButton) {\n    [NSApp terminate:nil];\n  }\n  NSString* path = openPanel.URL.path;\n\n  // Attempt to open the directory as a Git repo\n  _repository = [[GCLiveRepository alloc] initWithExistingLocalRepository:path error:&error];\n  if (_repository == nil) {\n    [NSApp presentError:error];\n    [NSApp terminate:nil];\n  }\n\n  // A repo must have an associated NSUndoManager for the undo/redo system to work\n  // We simply use the one of the window\n  _repository.undoManager = _window.undoManager;\n\n  // Each GIWindow expects a GIWindowController around\n  _windowController = [[GIWindowController alloc] initWithWindow:_window];\n\n  // Create the view controller and add its view to the window\n  _viewController = [[LiveDiffViewController alloc] initWithRepository:_repository];\n  _viewController.view.frame = [_window.contentView bounds];\n  [_window.contentView addSubview:_viewController.view];\n\n  // Show the window\n  [_window makeKeyAndOrderFront:nil];\n}\n\n- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender {\n  return YES;\n}\n\n@end\n"
  },
  {
    "path": "Examples/GitDiff/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"8191\" systemVersion=\"14F27\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"8191\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\">\n            <connections>\n                <outlet property=\"window\" destination=\"QvC-M9-y7g\" id=\"gIp-Ho-8D9\"/>\n            </connections>\n        </customObject>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"GitDiff\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"GitDiff\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About GitDiff\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"Exp-CZ-Vem\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide GitDiff\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit GitDiff\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"File\" id=\"Sho-qm-Zni\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"File\" id=\"kcM-wB-IJp\">\n                        <items>\n                            <menuItem title=\"Close\" keyEquivalent=\"w\" id=\"1IS-cX-0WV\">\n                                <connections>\n                                    <action selector=\"performClose:\" target=\"-1\" id=\"FKs-Jt-wp1\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"vyF-EG-j9l\"/>\n                            <menuItem title=\"Page Setup…\" keyEquivalent=\"P\" id=\"8kP-Rh-Ptu\">\n                                <connections>\n                                    <action selector=\"runPageLayout:\" target=\"-1\" id=\"DTq-wy-4IM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Print…\" keyEquivalent=\"p\" id=\"wgt-P1-9DH\">\n                                <connections>\n                                    <action selector=\"print:\" target=\"-1\" id=\"ycO-Vb-jKb\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"eu3-7i-yIM\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"wpr-3q-Mcd\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                </menuItem>\n            </items>\n        </menu>\n        <window title=\"GitDiff\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" showsToolbarButton=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\" customClass=\"GIWindow\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"274\" y=\"328\" width=\"1000\" height=\"600\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"2560\" height=\"1417\"/>\n            <view key=\"contentView\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n            </view>\n            <point key=\"canvasLocation\" x=\"567\" y=\"358\"/>\n        </window>\n    </objects>\n</document>\n"
  },
  {
    "path": "Examples/GitDiff/GitDiff.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tE267E2841B84EF1700BAB377 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E267E2831B84EF1700BAB377 /* AppDelegate.m */; };\n\t\tE267E2871B84EF1700BAB377 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E267E2861B84EF1700BAB377 /* main.m */; };\n\t\tE27E37691B87012F000A551A /* GitUpKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E27E37611B8700F8000A551A /* GitUpKit.framework */; };\n\t\tE27E376A1B870131000A551A /* GitUpKit.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = E27E37611B8700F8000A551A /* GitUpKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\tE2EA19FC1B85684B00EAE7B7 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2EA19FA1B85684B00EAE7B7 /* MainMenu.xib */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tE256D83C1BBCCF4B00302525 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E217531B1B91613300BE234A;\n\t\t\tremoteInfo = \"GitUpKit (iOS)\";\n\t\t};\n\t\tE27E37601B8700F8000A551A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E267E1A81B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n\t\tE27E37621B8700F8000A551A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E2C338C419F8562F00063D95;\n\t\t\tremoteInfo = Tests;\n\t\t};\n\t\tE27E37651B87012C000A551A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = E267E1A71B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\tE267E2A41B84EF6000BAB377 /* Copy Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\tE27E376A1B870131000A551A /* GitUpKit.framework in Copy Frameworks */,\n\t\t\t);\n\t\t\tname = \"Copy Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\tDB72903422C836D7007AB8F7 /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72903522C836D7007AB8F7 /* Release.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72903622C836D7007AB8F7 /* Base.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE267E27F1B84EF1700BAB377 /* GitDiff.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GitDiff.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE267E2821B84EF1700BAB377 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tE267E2831B84EF1700BAB377 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\tE267E2861B84EF1700BAB377 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tE267E28D1B84EF1700BAB377 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tE26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = \"wrapper.pb-project\"; name = GitUpKit.xcodeproj; path = ../../GitUpKit/GitUpKit.xcodeproj; sourceTree = \"<group>\"; };\n\t\tE2EA19FB1B85684B00EAE7B7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = SOURCE_ROOT; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE267E27C1B84EF1700BAB377 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE27E37691B87012F000A551A /* GitUpKit.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tDB72903322C836D7007AB8F7 /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB72903422C836D7007AB8F7 /* Debug.xcconfig */,\n\t\t\t\tDB72903522C836D7007AB8F7 /* Release.xcconfig */,\n\t\t\t\tDB72903622C836D7007AB8F7 /* Base.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE267E2761B84EF1700BAB377 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */,\n\t\t\t\tE2EA19FD1B85687F00EAE7B7 /* Source */,\n\t\t\t\tE267E2801B84EF1700BAB377 /* Products */,\n\t\t\t\tDB72903322C836D7007AB8F7 /* Xcode-Configurations */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE267E2801B84EF1700BAB377 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE267E27F1B84EF1700BAB377 /* GitDiff.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE27E375C1B8700F8000A551A /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE27E37611B8700F8000A551A /* GitUpKit.framework */,\n\t\t\t\tE256D83D1BBCCF4B00302525 /* GitUpKit.framework */,\n\t\t\t\tE27E37631B8700F8000A551A /* GitUpTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2EA19FD1B85687F00EAE7B7 /* Source */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE267E2821B84EF1700BAB377 /* AppDelegate.h */,\n\t\t\t\tE267E2831B84EF1700BAB377 /* AppDelegate.m */,\n\t\t\t\tE2EA19FA1B85684B00EAE7B7 /* MainMenu.xib */,\n\t\t\t\tE267E28D1B84EF1700BAB377 /* Info.plist */,\n\t\t\t\tE267E2861B84EF1700BAB377 /* main.m */,\n\t\t\t);\n\t\t\tname = Source;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE267E27E1B84EF1700BAB377 /* GitDiff */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E267E2901B84EF1700BAB377 /* Build configuration list for PBXNativeTarget \"GitDiff\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE267E27B1B84EF1700BAB377 /* Sources */,\n\t\t\t\tE267E27C1B84EF1700BAB377 /* Frameworks */,\n\t\t\t\tE267E27D1B84EF1700BAB377 /* Resources */,\n\t\t\t\tE267E2A41B84EF6000BAB377 /* Copy Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tE27E37661B87012C000A551A /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = GitDiff;\n\t\t\tproductName = TEST;\n\t\t\tproductReference = E267E27F1B84EF1700BAB377 /* GitDiff.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE267E2771B84EF1700BAB377 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0920;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE267E27E1B84EF1700BAB377 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.0;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E267E27A1B84EF1700BAB377 /* Build configuration list for PBXProject \"GitDiff\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E267E2761B84EF1700BAB377;\n\t\t\tproductRefGroup = E267E2801B84EF1700BAB377 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectReferences = (\n\t\t\t\t{\n\t\t\t\t\tProductGroup = E27E375C1B8700F8000A551A /* Products */;\n\t\t\t\t\tProjectRef = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\t\t},\n\t\t\t);\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE267E27E1B84EF1700BAB377 /* GitDiff */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXReferenceProxy section */\n\t\tE256D83D1BBCCF4B00302525 /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E256D83C1BBCCF4B00302525 /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE27E37611B8700F8000A551A /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E27E37601B8700F8000A551A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE27E37631B8700F8000A551A /* GitUpTests.xctest */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.cfbundle;\n\t\t\tpath = GitUpTests.xctest;\n\t\t\tremoteRef = E27E37621B8700F8000A551A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n/* End PBXReferenceProxy section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE267E27D1B84EF1700BAB377 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE2EA19FC1B85684B00EAE7B7 /* MainMenu.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE267E27B1B84EF1700BAB377 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE267E2871B84EF1700BAB377 /* main.m in Sources */,\n\t\t\t\tE267E2841B84EF1700BAB377 /* AppDelegate.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\tE27E37661B87012C000A551A /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = GitUpKit;\n\t\t\ttargetProxy = E27E37651B87012C000A551A /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\tE2EA19FA1B85684B00EAE7B7 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2EA19FB1B85684B00EAE7B7 /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tpath = TEST;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE267E28E1B84EF1700BAB377 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72903422C836D7007AB8F7 /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE267E28F1B84EF1700BAB377 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72903522C836D7007AB8F7 /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE267E2911B84EF1700BAB377 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.diff;\n\t\t\t\tPRODUCT_NAME = GitDiff;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE267E2921B84EF1700BAB377 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.diff;\n\t\t\t\tPRODUCT_NAME = GitDiff;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE267E27A1B84EF1700BAB377 /* Build configuration list for PBXProject \"GitDiff\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE267E28E1B84EF1700BAB377 /* Debug */,\n\t\t\t\tE267E28F1B84EF1700BAB377 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE267E2901B84EF1700BAB377 /* Build configuration list for PBXNativeTarget \"GitDiff\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE267E2911B84EF1700BAB377 /* Debug */,\n\t\t\t\tE267E2921B84EF1700BAB377 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = E267E2771B84EF1700BAB377 /* Project object */;\n}\n"
  },
  {
    "path": "Examples/GitDiff/GitDiff.xcodeproj/xcshareddata/xcschemes/GitDiff.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1020\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n               BuildableName = \"GitDiff.app\"\n               BlueprintName = \"GitDiff\"\n               ReferencedContainer = \"container:GitDiff.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n            BuildableName = \"GitDiff.app\"\n            BlueprintName = \"GitDiff\"\n            ReferencedContainer = \"container:GitDiff.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      enableAddressSanitizer = \"YES\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n            BuildableName = \"GitDiff.app\"\n            BlueprintName = \"GitDiff\"\n            ReferencedContainer = \"container:GitDiff.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n            BuildableName = \"GitDiff.app\"\n            BlueprintName = \"GitDiff\"\n            ReferencedContainer = \"container:GitDiff.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "Examples/GitDiff/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Examples/GitDiff/main.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, const char* argv[]) {\n  return NSApplicationMain(argc, argv);\n}\n"
  },
  {
    "path": "Examples/GitDown/AppDelegate.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\n@interface AppDelegate : NSObject <NSApplicationDelegate>\n@end\n"
  },
  {
    "path": "Examples/GitDown/AppDelegate.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <GitUpKit/GitUpKit.h>\n\n#import \"AppDelegate.h\"\n\n@interface AppDelegate ()\n@property(nonatomic, strong) IBOutlet GIWindow* window;\n@end\n\n@implementation AppDelegate {\n  GCLiveRepository* _repository;\n  GIWindowController* _windowController;\n  GIViewController* _viewController;\n}\n\n- (void)applicationDidFinishLaunching:(NSNotification*)notification {\n  NSError* error;\n\n  // Prompt user for a directory\n  NSOpenPanel* openPanel = [NSOpenPanel openPanel];\n  openPanel.canChooseDirectories = YES;\n  openPanel.canChooseFiles = NO;\n  if ([openPanel runModal] != NSFileHandlingPanelOKButton) {\n    [NSApp terminate:nil];\n  }\n  NSString* path = openPanel.URL.path;\n\n  // Attempt to open the directory as a Git repo\n  _repository = [[GCLiveRepository alloc] initWithExistingLocalRepository:path error:&error];\n  if (_repository == nil) {\n    [NSApp presentError:error];\n    [NSApp terminate:nil];\n  }\n\n  // A repo must have an associated NSUndoManager for the undo/redo system to work\n  // We simply use the one of the window\n  _repository.undoManager = _window.undoManager;\n\n  // Each GIWindow expects a GIWindowController around\n  _windowController = [[GIWindowController alloc] initWithWindow:_window];\n\n// Create the view controller and add its view to the window\n#if 1\n  _viewController = [[GIStashListViewController alloc] initWithRepository:_repository];\n#else\n  _viewController = [[GIAdvancedCommitViewController alloc] initWithRepository:_repository];\n#endif\n  _viewController.view.frame = [_window.contentView bounds];\n  [_window.contentView addSubview:_viewController.view];\n\n  // Show the window\n  [_window makeKeyAndOrderFront:nil];\n}\n\n- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)sender {\n  return YES;\n}\n\n@end\n"
  },
  {
    "path": "Examples/GitDown/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"8173.3\" systemVersion=\"14F27\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"8173.3\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\">\n            <connections>\n                <outlet property=\"window\" destination=\"QvC-M9-y7g\" id=\"gIp-Ho-8D9\"/>\n            </connections>\n        </customObject>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"GitDown\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"GitDown\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About GitDown\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"Exp-CZ-Vem\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide GitDown\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit GitDown\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"File\" id=\"Sho-qm-Zni\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"File\" id=\"kcM-wB-IJp\">\n                        <items>\n                            <menuItem title=\"Close\" keyEquivalent=\"w\" id=\"1IS-cX-0WV\">\n                                <connections>\n                                    <action selector=\"performClose:\" target=\"-1\" id=\"FKs-Jt-wp1\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"vyF-EG-j9l\"/>\n                            <menuItem title=\"Page Setup…\" keyEquivalent=\"P\" id=\"8kP-Rh-Ptu\">\n                                <connections>\n                                    <action selector=\"runPageLayout:\" target=\"-1\" id=\"DTq-wy-4IM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Print…\" keyEquivalent=\"p\" id=\"wgt-P1-9DH\">\n                                <connections>\n                                    <action selector=\"print:\" target=\"-1\" id=\"ycO-Vb-jKb\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"eu3-7i-yIM\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"wpr-3q-Mcd\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                </menuItem>\n            </items>\n        </menu>\n        <window title=\"GitDown\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" showsToolbarButton=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\" customClass=\"GIWindow\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"274\" y=\"328\" width=\"1000\" height=\"600\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"877\"/>\n            <view key=\"contentView\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n            </view>\n            <point key=\"canvasLocation\" x=\"567\" y=\"358\"/>\n        </window>\n    </objects>\n</document>\n"
  },
  {
    "path": "Examples/GitDown/GitDown.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tE267E2841B84EF1700BAB377 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E267E2831B84EF1700BAB377 /* AppDelegate.m */; };\n\t\tE267E2871B84EF1700BAB377 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E267E2861B84EF1700BAB377 /* main.m */; };\n\t\tE27E37691B87012F000A551A /* GitUpKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E27E37611B8700F8000A551A /* GitUpKit.framework */; };\n\t\tE27E376A1B870131000A551A /* GitUpKit.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = E27E37611B8700F8000A551A /* GitUpKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\tE2EA19FC1B85684B00EAE7B7 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2EA19FA1B85684B00EAE7B7 /* MainMenu.xib */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tE27E37601B8700F8000A551A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E267E1A81B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n\t\tE27E37621B8700F8000A551A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E2C338C419F8562F00063D95;\n\t\t\tremoteInfo = Tests;\n\t\t};\n\t\tE27E37651B87012C000A551A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = E267E1A71B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n\t\tE2DC02E71E12615D00CC091F /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E217531B1B91613300BE234A;\n\t\t\tremoteInfo = \"GitUpKit (iOS)\";\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\tE267E2A41B84EF6000BAB377 /* Copy Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\tE27E376A1B870131000A551A /* GitUpKit.framework in Copy Frameworks */,\n\t\t\t);\n\t\t\tname = \"Copy Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\tDB72902B22C8366E007AB8F7 /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72902C22C8366E007AB8F7 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72902D22C8366E007AB8F7 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE267E27F1B84EF1700BAB377 /* GitDown.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GitDown.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE267E2821B84EF1700BAB377 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tE267E2831B84EF1700BAB377 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\tE267E2861B84EF1700BAB377 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tE267E28D1B84EF1700BAB377 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tE26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = \"wrapper.pb-project\"; name = GitUpKit.xcodeproj; path = ../../GitUpKit/GitUpKit.xcodeproj; sourceTree = \"<group>\"; };\n\t\tE2EA19FB1B85684B00EAE7B7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = SOURCE_ROOT; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE267E27C1B84EF1700BAB377 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE27E37691B87012F000A551A /* GitUpKit.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tDB72902A22C8366E007AB8F7 /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB72902B22C8366E007AB8F7 /* Debug.xcconfig */,\n\t\t\t\tDB72902C22C8366E007AB8F7 /* Release.xcconfig */,\n\t\t\t\tDB72902D22C8366E007AB8F7 /* Base.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE267E2761B84EF1700BAB377 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */,\n\t\t\t\tE2EA19FD1B85687F00EAE7B7 /* Source */,\n\t\t\t\tE267E2801B84EF1700BAB377 /* Products */,\n\t\t\t\tDB72902A22C8366E007AB8F7 /* Xcode-Configurations */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE267E2801B84EF1700BAB377 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE267E27F1B84EF1700BAB377 /* GitDown.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE27E375C1B8700F8000A551A /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE27E37611B8700F8000A551A /* GitUpKit.framework */,\n\t\t\t\tE2DC02E81E12615D00CC091F /* GitUpKit.framework */,\n\t\t\t\tE27E37631B8700F8000A551A /* GitUpTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2EA19FD1B85687F00EAE7B7 /* Source */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE267E2821B84EF1700BAB377 /* AppDelegate.h */,\n\t\t\t\tE267E2831B84EF1700BAB377 /* AppDelegate.m */,\n\t\t\t\tE2EA19FA1B85684B00EAE7B7 /* MainMenu.xib */,\n\t\t\t\tE267E28D1B84EF1700BAB377 /* Info.plist */,\n\t\t\t\tE267E2861B84EF1700BAB377 /* main.m */,\n\t\t\t);\n\t\t\tname = Source;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE267E27E1B84EF1700BAB377 /* GitDown */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E267E2901B84EF1700BAB377 /* Build configuration list for PBXNativeTarget \"GitDown\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE267E27B1B84EF1700BAB377 /* Sources */,\n\t\t\t\tE267E27C1B84EF1700BAB377 /* Frameworks */,\n\t\t\t\tE267E27D1B84EF1700BAB377 /* Resources */,\n\t\t\t\tE267E2A41B84EF6000BAB377 /* Copy Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tE27E37661B87012C000A551A /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = GitDown;\n\t\t\tproductName = TEST;\n\t\t\tproductReference = E267E27F1B84EF1700BAB377 /* GitDown.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE267E2771B84EF1700BAB377 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1020;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE267E27E1B84EF1700BAB377 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.0;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E267E27A1B84EF1700BAB377 /* Build configuration list for PBXProject \"GitDown\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E267E2761B84EF1700BAB377;\n\t\t\tproductRefGroup = E267E2801B84EF1700BAB377 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectReferences = (\n\t\t\t\t{\n\t\t\t\t\tProductGroup = E27E375C1B8700F8000A551A /* Products */;\n\t\t\t\t\tProjectRef = E26F7C431B86EBBE00119563 /* GitUpKit.xcodeproj */;\n\t\t\t\t},\n\t\t\t);\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE267E27E1B84EF1700BAB377 /* GitDown */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXReferenceProxy section */\n\t\tE27E37611B8700F8000A551A /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E27E37601B8700F8000A551A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE27E37631B8700F8000A551A /* GitUpTests.xctest */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.cfbundle;\n\t\t\tpath = GitUpTests.xctest;\n\t\t\tremoteRef = E27E37621B8700F8000A551A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE2DC02E81E12615D00CC091F /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E2DC02E71E12615D00CC091F /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n/* End PBXReferenceProxy section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE267E27D1B84EF1700BAB377 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE2EA19FC1B85684B00EAE7B7 /* MainMenu.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE267E27B1B84EF1700BAB377 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE267E2871B84EF1700BAB377 /* main.m in Sources */,\n\t\t\t\tE267E2841B84EF1700BAB377 /* AppDelegate.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\tE27E37661B87012C000A551A /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = GitUpKit;\n\t\t\ttargetProxy = E27E37651B87012C000A551A /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\tE2EA19FA1B85684B00EAE7B7 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2EA19FB1B85684B00EAE7B7 /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tpath = TEST;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE267E28E1B84EF1700BAB377 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72902B22C8366E007AB8F7 /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE267E28F1B84EF1700BAB377 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72902C22C8366E007AB8F7 /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE267E2911B84EF1700BAB377 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.down;\n\t\t\t\tPRODUCT_NAME = GitDown;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE267E2921B84EF1700BAB377 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.down;\n\t\t\t\tPRODUCT_NAME = GitDown;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE267E27A1B84EF1700BAB377 /* Build configuration list for PBXProject \"GitDown\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE267E28E1B84EF1700BAB377 /* Debug */,\n\t\t\t\tE267E28F1B84EF1700BAB377 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE267E2901B84EF1700BAB377 /* Build configuration list for PBXNativeTarget \"GitDown\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE267E2911B84EF1700BAB377 /* Debug */,\n\t\t\t\tE267E2921B84EF1700BAB377 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = E267E2771B84EF1700BAB377 /* Project object */;\n}\n"
  },
  {
    "path": "Examples/GitDown/GitDown.xcodeproj/xcshareddata/xcschemes/GitDown.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1020\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n               BuildableName = \"GitDown.app\"\n               BlueprintName = \"GitDown\"\n               ReferencedContainer = \"container:GitDown.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n            BuildableName = \"GitDown.app\"\n            BlueprintName = \"GitDown\"\n            ReferencedContainer = \"container:GitDown.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      enableAddressSanitizer = \"YES\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n            BuildableName = \"GitDown.app\"\n            BlueprintName = \"GitDown\"\n            ReferencedContainer = \"container:GitDown.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E27E1B84EF1700BAB377\"\n            BuildableName = \"GitDown.app\"\n            BlueprintName = \"GitDown\"\n            ReferencedContainer = \"container:GitDown.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "Examples/GitDown/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Examples/GitDown/main.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, const char* argv[]) {\n  return NSApplicationMain(argc, argv);\n}\n"
  },
  {
    "path": "Examples/GitY/AppDelegate.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\n@interface AppDelegate : NSObject <NSApplicationDelegate>\n@end\n"
  },
  {
    "path": "Examples/GitY/AppDelegate.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"AppDelegate.h\"\n#import \"DocumentController.h\"\n\n@implementation AppDelegate\n\n- (void)applicationWillFinishLaunching:(NSNotification*)notification {\n  // Initialize and install custom subclass of NSDocumentController\n  [DocumentController sharedDocumentController];\n}\n\n@end\n"
  },
  {
    "path": "Examples/GitY/Base.lproj/Document.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"8173.3\" systemVersion=\"14F27\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"8173.3\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"Document\">\n            <connections>\n                <outlet property=\"arrayController\" destination=\"v4d-re-VcN\" id=\"2Uk-xr-luN\"/>\n                <outlet property=\"diffView\" destination=\"Wx8-hb-R0I\" id=\"8Ig-rZ-7Pf\"/>\n                <outlet property=\"headerView\" destination=\"DdK-S2-M95\" id=\"J1t-4s-OZ9\"/>\n                <outlet property=\"leftToolbarView\" destination=\"B2k-Dh-Vcl\" id=\"Ksh-fC-nAn\"/>\n                <outlet property=\"messageTextField\" destination=\"vca-gn-AtA\" id=\"oru-I3-upV\"/>\n                <outlet property=\"rightToolbarView\" destination=\"rJO-fE-ceg\" id=\"zhM-Nm-IXm\"/>\n                <outlet property=\"tabView\" destination=\"KbR-Yh-pvM\" id=\"BMA-FJ-UbR\"/>\n                <outlet property=\"window\" destination=\"xOd-HO-29H\" id=\"JIz-fz-R2o\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <window title=\"Window\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"xOd-HO-29H\" userLabel=\"Window\" customClass=\"GIWindow\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"102\" y=\"183\" width=\"1000\" height=\"600\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"877\"/>\n            <value key=\"minSize\" type=\"size\" width=\"600\" height=\"400\"/>\n            <view key=\"contentView\" id=\"gIp-Ho-8D9\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <tabView drawsBackground=\"NO\" allowsTruncatedLabels=\"NO\" type=\"noTabsNoBorder\" id=\"KbR-Yh-pvM\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <tabViewItems>\n                            <tabViewItem label=\"History\" identifier=\"history\" id=\"Eql-lY-ZCm\">\n                                <view key=\"view\" id=\"zQ4-Ea-M6B\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <splitView arrangesAllSubviews=\"NO\" id=\"M0k-9A-HJo\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                            <subviews>\n                                                <scrollView borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" id=\"dmy-mg-syh\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"288\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                                    <clipView key=\"contentView\" id=\"2zw-mw-lmx\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"17\" width=\"1000\" height=\"271\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <subviews>\n                                                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnReordering=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowSizeStyle=\"automatic\" headerView=\"yIl-Kc-pne\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"UNu-V3-pd7\">\n                                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"271\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                                                <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <tableColumns>\n                                                                    <tableColumn editable=\"NO\" width=\"641\" minWidth=\"50\" maxWidth=\"10000\" id=\"FB6-kC-Juj\">\n                                                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\" title=\"Subject\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </tableHeaderCell>\n                                                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" allowsUndo=\"NO\" title=\"Text Cell\" id=\"iLM-sJ-m42\">\n                                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                        <sortDescriptor key=\"sortDescriptorPrototype\" selector=\"caseInsensitiveCompare:\" sortKey=\"summary\"/>\n                                                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                                                        <prototypeCellViews>\n                                                                            <tableCellView id=\"n5z-Tq-jrg\">\n                                                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"641\" height=\"17\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                <subviews>\n                                                                                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" id=\"Tij-Ii-nto\">\n                                                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"641\" height=\"17\"/>\n                                                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                        <textFieldCell key=\"cell\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" title=\"Table View Cell\" id=\"9cY-qr-RGs\">\n                                                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                        </textFieldCell>\n                                                                                        <connections>\n                                                                                            <binding destination=\"n5z-Tq-jrg\" name=\"value\" keyPath=\"objectValue.summary\" id=\"Vdh-JK-u2H\">\n                                                                                                <dictionary key=\"options\">\n                                                                                                    <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                                                                    <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                                                                </dictionary>\n                                                                                            </binding>\n                                                                                        </connections>\n                                                                                    </textField>\n                                                                                </subviews>\n                                                                                <connections>\n                                                                                    <outlet property=\"textField\" destination=\"Tij-Ii-nto\" id=\"sD9-9J-RZP\"/>\n                                                                                </connections>\n                                                                            </tableCellView>\n                                                                        </prototypeCellViews>\n                                                                    </tableColumn>\n                                                                    <tableColumn identifier=\"\" editable=\"NO\" width=\"200\" minWidth=\"50\" maxWidth=\"10000\" id=\"2B2-wD-Kn7\">\n                                                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\" title=\"Author\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </tableHeaderCell>\n                                                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" allowsUndo=\"NO\" alignment=\"left\" title=\"Text Cell\" id=\"5uH-Yt-1PF\">\n                                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                        <sortDescriptor key=\"sortDescriptorPrototype\" selector=\"caseInsensitiveCompare:\" sortKey=\"authorName\"/>\n                                                                        <tableColumnResizingMask key=\"resizingMask\" userResizable=\"YES\"/>\n                                                                        <prototypeCellViews>\n                                                                            <tableCellView id=\"LAs-N8-fcb\">\n                                                                                <rect key=\"frame\" x=\"645\" y=\"1\" width=\"200\" height=\"17\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                <subviews>\n                                                                                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" id=\"2I4-XS-oN7\">\n                                                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"200\" height=\"17\"/>\n                                                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                        <textFieldCell key=\"cell\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" title=\"Table View Cell\" id=\"lan-ww-jqi\">\n                                                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                        </textFieldCell>\n                                                                                        <connections>\n                                                                                            <binding destination=\"LAs-N8-fcb\" name=\"value\" keyPath=\"objectValue.authorName\" id=\"3tm-TI-ql7\">\n                                                                                                <dictionary key=\"options\">\n                                                                                                    <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                                                                    <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                                                                </dictionary>\n                                                                                            </binding>\n                                                                                        </connections>\n                                                                                    </textField>\n                                                                                </subviews>\n                                                                                <connections>\n                                                                                    <outlet property=\"textField\" destination=\"2I4-XS-oN7\" id=\"rCh-1q-MEK\"/>\n                                                                                </connections>\n                                                                            </tableCellView>\n                                                                        </prototypeCellViews>\n                                                                    </tableColumn>\n                                                                    <tableColumn identifier=\"\" editable=\"NO\" width=\"150\" minWidth=\"50\" maxWidth=\"10000\" id=\"VD8-bH-59H\">\n                                                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\" title=\"Date\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </tableHeaderCell>\n                                                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" allowsUndo=\"NO\" alignment=\"left\" title=\"Text Cell\" id=\"cbE-8W-1mM\">\n                                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                        <sortDescriptor key=\"sortDescriptorPrototype\" selector=\"compare:\" sortKey=\"date\"/>\n                                                                        <prototypeCellViews>\n                                                                            <tableCellView id=\"NZq-GF-2Xn\">\n                                                                                <rect key=\"frame\" x=\"848\" y=\"1\" width=\"150\" height=\"17\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                <subviews>\n                                                                                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" id=\"wqp-Hz-4q3\">\n                                                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"150\" height=\"17\"/>\n                                                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" title=\"Table View Cell\" id=\"NMA-58-3DK\">\n                                                                                            <dateFormatter key=\"formatter\" formatterBehavior=\"custom10_4\" dateStyle=\"short\" timeStyle=\"short\" dateFormat=\"yyyy-MM-dd HH:mm:ss\" id=\"CQv-Dn-Eho\"/>\n                                                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                        </textFieldCell>\n                                                                                        <connections>\n                                                                                            <binding destination=\"NZq-GF-2Xn\" name=\"value\" keyPath=\"objectValue.date\" id=\"edT-Fc-guB\">\n                                                                                                <dictionary key=\"options\">\n                                                                                                    <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                                                                    <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                                                                </dictionary>\n                                                                                            </binding>\n                                                                                        </connections>\n                                                                                    </textField>\n                                                                                </subviews>\n                                                                                <connections>\n                                                                                    <outlet property=\"textField\" destination=\"wqp-Hz-4q3\" id=\"Deu-Uy-If4\"/>\n                                                                                </connections>\n                                                                            </tableCellView>\n                                                                        </prototypeCellViews>\n                                                                    </tableColumn>\n                                                                </tableColumns>\n                                                                <connections>\n                                                                    <binding destination=\"v4d-re-VcN\" name=\"content\" keyPath=\"arrangedObjects\" id=\"Mqs-FE-KcF\">\n                                                                        <dictionary key=\"options\">\n                                                                            <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                                        </dictionary>\n                                                                    </binding>\n                                                                    <binding destination=\"v4d-re-VcN\" name=\"selectionIndexes\" keyPath=\"selectionIndexes\" previousBinding=\"Mqs-FE-KcF\" id=\"15w-zJ-5wy\">\n                                                                        <dictionary key=\"options\">\n                                                                            <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                                        </dictionary>\n                                                                    </binding>\n                                                                    <binding destination=\"v4d-re-VcN\" name=\"sortDescriptors\" keyPath=\"sortDescriptors\" previousBinding=\"15w-zJ-5wy\" id=\"RLW-u9-9Uk\">\n                                                                        <dictionary key=\"options\">\n                                                                            <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                                        </dictionary>\n                                                                    </binding>\n                                                                    <outlet property=\"delegate\" destination=\"-2\" id=\"8yV-9k-QBz\"/>\n                                                                </connections>\n                                                            </tableView>\n                                                        </subviews>\n                                                        <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </clipView>\n                                                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"eBd-PW-uRA\">\n                                                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"223\" height=\"15\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </scroller>\n                                                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"uxG-Ye-lsf\">\n                                                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </scroller>\n                                                    <tableHeaderView key=\"headerView\" id=\"yIl-Kc-pne\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"17\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </tableHeaderView>\n                                                </scrollView>\n                                                <customView id=\"Wx8-hb-R0I\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"297\" width=\"1000\" height=\"303\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                                </customView>\n                                            </subviews>\n                                            <holdingPriorities>\n                                                <real value=\"250\"/>\n                                                <real value=\"250\"/>\n                                            </holdingPriorities>\n                                        </splitView>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Commit\" identifier=\"commit\" id=\"bjy-Wx-HaU\">\n                                <view key=\"view\" id=\"GGo-wV-Gqg\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                        </tabViewItems>\n                        <connections>\n                            <binding destination=\"-2\" name=\"selectedIndex\" keyPath=\"viewIndex\" id=\"E4V-rP-CoC\">\n                                <dictionary key=\"options\">\n                                    <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                </dictionary>\n                            </binding>\n                        </connections>\n                    </tabView>\n                </subviews>\n            </view>\n            <connections>\n                <outlet property=\"delegate\" destination=\"-2\" id=\"0bl-1N-x8E\"/>\n            </connections>\n            <point key=\"canvasLocation\" x=\"379\" y=\"336\"/>\n        </window>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <arrayController objectClassName=\"GIHistoryCommit\" editable=\"NO\" selectsInsertedObjects=\"NO\" clearsFilterPredicateOnInsertion=\"NO\" id=\"v4d-re-VcN\"/>\n        <customView id=\"B2k-Dh-Vcl\" userLabel=\"Left Toolbar View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"95\" height=\"32\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\" flexibleMaxY=\"YES\"/>\n            <subviews>\n                <segmentedControl verticalHuggingPriority=\"750\" id=\"xcG-DX-fvn\">\n                    <rect key=\"frame\" x=\"4\" y=\"4\" width=\"87\" height=\"23\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"capsule\" trackingMode=\"selectOne\" id=\"v8q-Ac-12S\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <segments>\n                            <segment image=\"HistoryViewTemplate\" imageScaling=\"none\" width=\"40\" selected=\"YES\"/>\n                            <segment image=\"CommitViewTemplate\" imageScaling=\"none\" width=\"40\" tag=\"1\"/>\n                        </segments>\n                    </segmentedCell>\n                    <connections>\n                        <binding destination=\"-2\" name=\"selectedIndex\" keyPath=\"viewIndex\" id=\"21a-bW-wK4\">\n                            <dictionary key=\"options\">\n                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </segmentedControl>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"48.5\" y=\"-71\"/>\n        </customView>\n        <customView id=\"rJO-fE-ceg\" userLabel=\"Right Toolbar View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"220\" height=\"32\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\" flexibleMaxY=\"YES\"/>\n            <subviews>\n                <searchField toolTip=\"Search repository\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" id=\"bqL-Qn-vNO\">\n                    <rect key=\"frame\" x=\"3\" y=\"5\" width=\"214\" height=\"22\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <searchFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" allowsUndo=\"NO\" borderStyle=\"bezel\" placeholderString=\"Subject\" usesSingleLineMode=\"YES\" bezelStyle=\"round\" id=\"nya-UQ-ZrA\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </searchFieldCell>\n                    <connections>\n                        <binding destination=\"v4d-re-VcN\" name=\"predicate\" keyPath=\"filterPredicate\" id=\"xnP-qd-0vw\">\n                            <dictionary key=\"options\">\n                                <string key=\"NSDisplayName\">predicate</string>\n                                <string key=\"NSPredicateFormat\">(summary contains[cd] $value)</string>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </searchField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"409\" y=\"-71\"/>\n        </customView>\n        <userDefaultsController representsSharedInstance=\"YES\" id=\"eVv-6f-qEa\"/>\n        <view id=\"DdK-S2-M95\" userLabel=\"Header View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"500\" height=\"134\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"qdP-sq-Agw\">\n                    <rect key=\"frame\" x=\"8\" y=\"107\" width=\"60\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"SHA1\" id=\"ox6-c1-koa\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Bold\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"yqi-UX-Li7\">\n                    <rect key=\"frame\" x=\"74\" y=\"107\" width=\"418\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Label\" id=\"DRC-vK-ht4\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Regular\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <binding destination=\"v4d-re-VcN\" name=\"value\" keyPath=\"selection.SHA1\" id=\"qoT-3b-kDF\">\n                            <dictionary key=\"options\">\n                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"1fY-yO-UcT\">\n                    <rect key=\"frame\" x=\"8\" y=\"86\" width=\"60\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Author\" id=\"yfF-IR-yZl\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Bold\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"8Ly-4Y-7za\">\n                    <rect key=\"frame\" x=\"74\" y=\"86\" width=\"418\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Label\" id=\"xZg-1l-WGy\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Regular\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <binding destination=\"v4d-re-VcN\" name=\"value\" keyPath=\"selection.author\" id=\"8Og-bS-HM7\">\n                            <dictionary key=\"options\">\n                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"Svz-gx-qet\">\n                    <rect key=\"frame\" x=\"8\" y=\"65\" width=\"60\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Date\" id=\"m0p-13-yIg\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Bold\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"9qD-UU-x9G\">\n                    <rect key=\"frame\" x=\"74\" y=\"65\" width=\"418\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Label\" id=\"hyk-aC-cyH\">\n                        <dateFormatter key=\"formatter\" dateStyle=\"full\" timeStyle=\"long\" id=\"6FV-Fo-xX7\"/>\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Regular\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <binding destination=\"v4d-re-VcN\" name=\"value\" keyPath=\"selection.date\" id=\"fTJ-NP-jGl\">\n                            <dictionary key=\"options\">\n                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"5MT-eX-Nhp\">\n                    <rect key=\"frame\" x=\"8\" y=\"44\" width=\"60\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Subject\" id=\"m4s-Nd-nrU\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Bold\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"4Ea-d0-KAM\">\n                    <rect key=\"frame\" x=\"74\" y=\"44\" width=\"418\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Label\" id=\"9ew-gR-WRs\">\n                        <font key=\"font\" size=\"13\" name=\".HelveticaNeueDeskInterface-Regular\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <binding destination=\"v4d-re-VcN\" name=\"value\" keyPath=\"selection.summary\" id=\"wEf-SZ-z4J\">\n                            <dictionary key=\"options\">\n                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </textField>\n                <box verticalHuggingPriority=\"750\" title=\"Box\" boxType=\"separator\" titlePosition=\"noTitle\" id=\"zan-2a-5Zm\">\n                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"480\" height=\"5\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <color key=\"borderColor\" white=\"0.0\" alpha=\"0.41999999999999998\" colorSpace=\"calibratedWhite\"/>\n                    <color key=\"fillColor\" white=\"0.0\" alpha=\"0.0\" colorSpace=\"calibratedWhite\"/>\n                    <font key=\"titleFont\" metaFont=\"system\"/>\n                </box>\n                <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" id=\"vca-gn-AtA\">\n                    <rect key=\"frame\" x=\"8\" y=\"10\" width=\"484\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <textFieldCell key=\"cell\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Multi-line Label\" id=\"Imh-Yp-Uif\">\n                        <font key=\"font\" metaFont=\"fixedUser\" size=\"11\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <binding destination=\"v4d-re-VcN\" name=\"value\" keyPath=\"selection.message\" id=\"X8t-9r-rTY\">\n                            <dictionary key=\"options\">\n                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                            </dictionary>\n                        </binding>\n                    </connections>\n                </textField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"218\" y=\"786\"/>\n        </view>\n    </objects>\n    <resources>\n        <image name=\"CommitViewTemplate\" width=\"23\" height=\"15\"/>\n        <image name=\"HistoryViewTemplate\" width=\"25\" height=\"15\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "Examples/GitY/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"8173.3\" systemVersion=\"14F27\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"8173.3\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\"/>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"GitY\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"GitY\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About GitY\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"Exp-CZ-Vem\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide GitY\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit GitY\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"File\" id=\"dMs-cI-mzQ\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"File\" id=\"bib-Uj-vzu\">\n                        <items>\n                            <menuItem title=\"Open…\" keyEquivalent=\"o\" id=\"IAo-SY-fd9\">\n                                <connections>\n                                    <action selector=\"openDocument:\" target=\"-1\" id=\"bVn-NM-KNZ\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Open Recent\" id=\"tXI-mr-wws\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Open Recent\" systemMenu=\"recentDocuments\" id=\"oas-Oc-fiZ\">\n                                    <items>\n                                        <menuItem title=\"Clear Menu\" id=\"vNY-rz-j42\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"clearRecentDocuments:\" target=\"-1\" id=\"Daa-9d-B3U\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"m54-Is-iLE\"/>\n                            <menuItem title=\"Close\" keyEquivalent=\"w\" id=\"DVo-aG-piG\">\n                                <connections>\n                                    <action selector=\"performClose:\" target=\"-1\" id=\"HmO-Ls-i7Q\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"eu3-7i-yIM\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"wpr-3q-Mcd\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                </menuItem>\n            </items>\n        </menu>\n    </objects>\n</document>\n"
  },
  {
    "path": "Examples/GitY/Document.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\n@interface Document : NSDocument\n@end\n"
  },
  {
    "path": "Examples/GitY/Document.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <GitUpKit/GitUpKit.h>\n\n#import \"Document.h\"\n\n#define kToolbarItem_LeftView @\"left\"\n#define kToolbarItem_RightView @\"right\"\n\n@interface Document () <NSToolbarDelegate, NSTableViewDelegate, GCLiveRepositoryDelegate, GIDiffContentsViewControllerDelegate>\n@property(nonatomic, strong) IBOutlet NSArrayController* arrayController;\n@property(nonatomic, strong) IBOutlet NSView* leftToolbarView;\n@property(nonatomic, strong) IBOutlet NSView* rightToolbarView;\n@property(nonatomic, weak) IBOutlet NSTabView* tabView;\n@property(nonatomic, weak) IBOutlet NSView* diffView;\n@property(nonatomic, strong) IBOutlet NSView* headerView;\n@property(nonatomic, weak) IBOutlet NSTextField* messageTextField;\n@property(nonatomic) NSUInteger viewIndex;  // Used for bindings in XIB\n@end\n\n@implementation Document {\n  GCLiveRepository* _repository;\n  GIWindowController* _windowController;\n  NSToolbar* _toolbar;\n  GIDiffContentsViewController* _diffContentsViewController;\n  GIAdvancedCommitViewController* _commitViewController;\n  GCDiff* _currentDiff;\n  CGFloat _messageTextFieldMargins;\n  CGFloat _headerViewMinHeight;\n}\n\n- (BOOL)readFromURL:(NSURL*)url ofType:(NSString*)typeName error:(NSError**)outError {\n  BOOL success = NO;\n  _repository = [[GCLiveRepository alloc] initWithExistingLocalRepository:url.path error:outError];\n  if (_repository) {\n    if (_repository.bare) {\n      if (outError) {\n        *outError = [NSError errorWithDomain:NSCocoaErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @\"Bare repositories are not supported!\"}];\n      }\n    } else {\n      _repository.delegate = self;\n      success = YES;\n    }\n  }\n  return success;\n}\n\n- (void)close {\n  [super close];\n\n  _repository.delegate = nil;\n  _repository = nil;\n}\n\n- (void)makeWindowControllers {\n  _windowController = [[GIWindowController alloc] initWithWindowNibName:@\"Document\" owner:self];\n  [self addWindowController:_windowController];\n}\n\n- (void)windowControllerDidLoadNib:(NSWindowController*)aController {\n  [super windowControllerDidLoadNib:aController];\n\n  _toolbar = [[NSToolbar alloc] initWithIdentifier:@\"default\"];\n  _toolbar.delegate = self;\n  _windowController.window.toolbar = _toolbar;\n\n  NSSortDescriptor* descriptor = [[NSSortDescriptor alloc] initWithKey:@\"date\" ascending:NO selector:@selector(compare:)];\n  _arrayController.sortDescriptors = @[ descriptor ];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:_repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.headerView = _headerView;\n  _diffContentsViewController.view.frame = _diffView.frame;\n  [_diffView.superview replaceSubview:_diffView with:_diffContentsViewController.view];\n\n  _commitViewController = [[GIAdvancedCommitViewController alloc] initWithRepository:_repository];\n  [[_tabView tabViewItemAtIndex:1] setView:_commitViewController.view];\n\n  _headerViewMinHeight = _headerView.frame.size.height - _messageTextField.frame.size.height;\n  _messageTextFieldMargins = _headerView.frame.size.width - _messageTextField.frame.size.width;\n\n  [self repositoryDidUpdateHistory:nil];\n}\n\n// Override -updateChangeCount: which is trigged by NSUndoManager to do nothing and not mark document as updated\n- (void)updateChangeCount:(NSDocumentChangeType)change {\n  ;\n}\n\n#pragma mark - NSToolbarDelegate\n\n- (NSToolbarItem*)toolbar:(NSToolbar*)toolbar itemForItemIdentifier:(NSString*)identifier willBeInsertedIntoToolbar:(BOOL)flag {\n  NSToolbarItem* item = [[NSToolbarItem alloc] initWithItemIdentifier:identifier];\n  if ([identifier isEqualToString:kToolbarItem_LeftView]) {\n    item.view = _leftToolbarView;\n    item.label = NSLocalizedString(@\"View\", nil);\n  } else if ([identifier isEqualToString:kToolbarItem_RightView]) {\n    item.view = _rightToolbarView;\n    item.label = NSLocalizedString(@\"Search\", nil);\n  }\n  return item;\n}\n\n- (NSArray*)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar {\n  return @[ kToolbarItem_LeftView, NSToolbarFlexibleSpaceItemIdentifier, kToolbarItem_RightView ];\n}\n\n- (NSArray*)toolbarAllowedItemIdentifiers:(NSToolbar*)toolbar {\n  return [self toolbarDefaultItemIdentifiers:toolbar];\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  GCHistoryCommit* commit = _arrayController.selectedObjects.firstObject;\n  if (commit) {\n    _currentDiff = [_repository diffCommit:commit\n                                withCommit:commit.parents.firstObject\n                               filePattern:nil\n                                   options:(_repository.diffBaseOptions | kGCDiffOption_FindRenames)\n                         maxInterHunkLines:_repository.diffMaxInterHunkLines\n                           maxContextLines:_repository.diffMaxContextLines\n                                     error:NULL];\n    [_diffContentsViewController setDeltas:_currentDiff.deltas usingConflicts:nil];\n  } else {\n    _currentDiff = nil;\n    [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n  }\n}\n\n#pragma mark - GCLiveRepositoryDelegate\n\n- (void)repositoryDidUpdateHistory:(GCLiveRepository*)repository {\n  _arrayController.content = _repository.history.allCommits;\n}\n\n- (void)repository:(GCLiveRepository*)repository historyUpdateDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (CGFloat)diffContentsViewController:(GIDiffContentsViewController*)controller headerViewHeightForWidth:(CGFloat)width {\n  NSSize size = [_messageTextField.cell cellSizeForBounds:NSMakeRect(0, 0, width - _messageTextFieldMargins, HUGE_VALF)];\n  return _headerViewMinHeight + size.height;\n}\n\n@end\n"
  },
  {
    "path": "Examples/GitY/DocumentController.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@interface DocumentController : NSDocumentController\n@end\n"
  },
  {
    "path": "Examples/GitY/DocumentController.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"DocumentController.h\"\n\n@implementation DocumentController\n\n// Patch method to allow selecting folders\n- (void)beginOpenPanel:(NSOpenPanel*)openPanel forTypes:(NSArray*)inTypes completionHandler:(void (^)(NSInteger result))completionHandler {\n  openPanel.canChooseFiles = NO;\n  openPanel.canChooseDirectories = YES;\n  [super beginOpenPanel:openPanel forTypes:inTypes completionHandler:completionHandler];\n}\n\n@end\n"
  },
  {
    "path": "Examples/GitY/GitY.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tE22942AF1B87C18B00DD27BF /* CommitViewTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = E22942AD1B87C18B00DD27BF /* CommitViewTemplate.png */; };\n\t\tE22942B01B87C18B00DD27BF /* HistoryViewTemplate.png in Resources */ = {isa = PBXBuildFile; fileRef = E22942AE1B87C18B00DD27BF /* HistoryViewTemplate.png */; };\n\t\tE2DBF9481B879511006B292E /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E2DBF9471B879511006B292E /* AppDelegate.m */; };\n\t\tE2DBF94B1B879511006B292E /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E2DBF94A1B879511006B292E /* main.m */; };\n\t\tE2DBF94E1B879511006B292E /* Document.m in Sources */ = {isa = PBXBuildFile; fileRef = E2DBF94D1B879511006B292E /* Document.m */; };\n\t\tE2DBF9631B879628006B292E /* Document.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2DBF95F1B879628006B292E /* Document.xib */; };\n\t\tE2DBF9641B879628006B292E /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2DBF9611B879628006B292E /* MainMenu.xib */; };\n\t\tE2DBF9711B8796BD006B292E /* GitUpKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E2DBF96B1B87969A006B292E /* GitUpKit.framework */; };\n\t\tE2DBF9721B8796BF006B292E /* GitUpKit.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = E2DBF96B1B87969A006B292E /* GitUpKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\tE2DBF9761B87975B006B292E /* DocumentController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2DBF9751B87975B006B292E /* DocumentController.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tE2DBF96A1B87969A006B292E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E267E1A81B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n\t\tE2DBF96C1B87969A006B292E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E2C338C419F8562F00063D95;\n\t\t\tremoteInfo = Tests;\n\t\t};\n\t\tE2DBF96E1B8796A7006B292E /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = E267E1A71B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n\t\tE2DC02ED1E1261A200CC091F /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E217531B1B91613300BE234A;\n\t\t\tremoteInfo = \"GitUpKit (iOS)\";\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\tE2DBF9701B8796AE006B292E /* Copy Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\tE2DBF9721B8796BF006B292E /* GitUpKit.framework in Copy Frameworks */,\n\t\t\t);\n\t\t\tname = \"Copy Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\tDB72902322C8360B007AB8F7 /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72902422C8360B007AB8F7 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72902522C8360B007AB8F7 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE22942AD1B87C18B00DD27BF /* CommitViewTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = CommitViewTemplate.png; sourceTree = \"<group>\"; };\n\t\tE22942AE1B87C18B00DD27BF /* HistoryViewTemplate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = HistoryViewTemplate.png; sourceTree = \"<group>\"; };\n\t\tE2DBF9431B879511006B292E /* GitY.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GitY.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE2DBF9461B879511006B292E /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tE2DBF9471B879511006B292E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\tE2DBF94A1B879511006B292E /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tE2DBF94C1B879511006B292E /* Document.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Document.h; sourceTree = \"<group>\"; };\n\t\tE2DBF94D1B879511006B292E /* Document.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Document.m; sourceTree = \"<group>\"; };\n\t\tE2DBF9571B879511006B292E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tE2DBF9601B879628006B292E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Document.xib; sourceTree = \"<group>\"; };\n\t\tE2DBF9621B879628006B292E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = \"<group>\"; };\n\t\tE2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = \"wrapper.pb-project\"; name = GitUpKit.xcodeproj; path = ../../GitUpKit/GitUpKit.xcodeproj; sourceTree = \"<group>\"; };\n\t\tE2DBF9741B87975B006B292E /* DocumentController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DocumentController.h; sourceTree = \"<group>\"; };\n\t\tE2DBF9751B87975B006B292E /* DocumentController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DocumentController.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE2DBF9401B879511006B292E /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE2DBF9711B8796BD006B292E /* GitUpKit.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tDB72902222C8360B007AB8F7 /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB72902322C8360B007AB8F7 /* Debug.xcconfig */,\n\t\t\t\tDB72902422C8360B007AB8F7 /* Release.xcconfig */,\n\t\t\t\tDB72902522C8360B007AB8F7 /* Base.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2DBF93A1B879511006B292E = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */,\n\t\t\t\tE2DBF9461B879511006B292E /* AppDelegate.h */,\n\t\t\t\tE2DBF9471B879511006B292E /* AppDelegate.m */,\n\t\t\t\tE2DBF94C1B879511006B292E /* Document.h */,\n\t\t\t\tE2DBF94D1B879511006B292E /* Document.m */,\n\t\t\t\tE2DBF95F1B879628006B292E /* Document.xib */,\n\t\t\t\tE2DBF9741B87975B006B292E /* DocumentController.h */,\n\t\t\t\tE2DBF9751B87975B006B292E /* DocumentController.m */,\n\t\t\t\tE2DBF9611B879628006B292E /* MainMenu.xib */,\n\t\t\t\tE2DBF9571B879511006B292E /* Info.plist */,\n\t\t\t\tE2DBF94A1B879511006B292E /* main.m */,\n\t\t\t\tE22942AD1B87C18B00DD27BF /* CommitViewTemplate.png */,\n\t\t\t\tE22942AE1B87C18B00DD27BF /* HistoryViewTemplate.png */,\n\t\t\t\tE2DBF9441B879511006B292E /* Products */,\n\t\t\t\tDB72902222C8360B007AB8F7 /* Xcode-Configurations */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2DBF9441B879511006B292E /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2DBF9431B879511006B292E /* GitY.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2DBF9661B87969A006B292E /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2DBF96B1B87969A006B292E /* GitUpKit.framework */,\n\t\t\t\tE2DC02EE1E1261A200CC091F /* GitUpKit.framework */,\n\t\t\t\tE2DBF96D1B87969A006B292E /* GitUpTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE2DBF9421B879511006B292E /* GitY */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E2DBF95A1B879511006B292E /* Build configuration list for PBXNativeTarget \"GitY\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE2DBF93F1B879511006B292E /* Sources */,\n\t\t\t\tE2DBF9401B879511006B292E /* Frameworks */,\n\t\t\t\tE2DBF9411B879511006B292E /* Resources */,\n\t\t\t\tE2DBF9701B8796AE006B292E /* Copy Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tE2DBF96F1B8796A7006B292E /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = GitY;\n\t\t\tproductName = GitY;\n\t\t\tproductReference = E2DBF9431B879511006B292E /* GitY.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE2DBF93B1B879511006B292E /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1020;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE2DBF9421B879511006B292E = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.0;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E2DBF93E1B879511006B292E /* Build configuration list for PBXProject \"GitY\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E2DBF93A1B879511006B292E;\n\t\t\tproductRefGroup = E2DBF9441B879511006B292E /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectReferences = (\n\t\t\t\t{\n\t\t\t\t\tProductGroup = E2DBF9661B87969A006B292E /* Products */;\n\t\t\t\t\tProjectRef = E2DBF9651B87969A006B292E /* GitUpKit.xcodeproj */;\n\t\t\t\t},\n\t\t\t);\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE2DBF9421B879511006B292E /* GitY */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXReferenceProxy section */\n\t\tE2DBF96B1B87969A006B292E /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E2DBF96A1B87969A006B292E /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE2DBF96D1B87969A006B292E /* GitUpTests.xctest */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.cfbundle;\n\t\t\tpath = GitUpTests.xctest;\n\t\t\tremoteRef = E2DBF96C1B87969A006B292E /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE2DC02EE1E1261A200CC091F /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E2DC02ED1E1261A200CC091F /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n/* End PBXReferenceProxy section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE2DBF9411B879511006B292E /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE2DBF9631B879628006B292E /* Document.xib in Resources */,\n\t\t\t\tE2DBF9641B879628006B292E /* MainMenu.xib in Resources */,\n\t\t\t\tE22942AF1B87C18B00DD27BF /* CommitViewTemplate.png in Resources */,\n\t\t\t\tE22942B01B87C18B00DD27BF /* HistoryViewTemplate.png in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE2DBF93F1B879511006B292E /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE2DBF94B1B879511006B292E /* main.m in Sources */,\n\t\t\t\tE2DBF9481B879511006B292E /* AppDelegate.m in Sources */,\n\t\t\t\tE2DBF9761B87975B006B292E /* DocumentController.m in Sources */,\n\t\t\t\tE2DBF94E1B879511006B292E /* Document.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\tE2DBF96F1B8796A7006B292E /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = GitUpKit;\n\t\t\ttargetProxy = E2DBF96E1B8796A7006B292E /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\tE2DBF95F1B879628006B292E /* Document.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2DBF9601B879628006B292E /* Base */,\n\t\t\t);\n\t\t\tname = Document.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2DBF9611B879628006B292E /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2DBF9621B879628006B292E /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE2DBF9581B879511006B292E /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72902322C8360B007AB8F7 /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2DBF9591B879511006B292E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72902422C8360B007AB8F7 /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE2DBF95B1B879511006B292E /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.y;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2DBF95C1B879511006B292E /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.y;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE2DBF93E1B879511006B292E /* Build configuration list for PBXProject \"GitY\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2DBF9581B879511006B292E /* Debug */,\n\t\t\t\tE2DBF9591B879511006B292E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE2DBF95A1B879511006B292E /* Build configuration list for PBXNativeTarget \"GitY\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2DBF95B1B879511006B292E /* Debug */,\n\t\t\t\tE2DBF95C1B879511006B292E /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = E2DBF93B1B879511006B292E /* Project object */;\n}\n"
  },
  {
    "path": "Examples/GitY/GitY.xcodeproj/xcshareddata/xcschemes/GitY.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1020\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E2DBF9421B879511006B292E\"\n               BuildableName = \"GitY.app\"\n               BlueprintName = \"GitY\"\n               ReferencedContainer = \"container:GitY.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E2DBF9421B879511006B292E\"\n            BuildableName = \"GitY.app\"\n            BlueprintName = \"GitY\"\n            ReferencedContainer = \"container:GitY.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      enableAddressSanitizer = \"YES\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E2DBF9421B879511006B292E\"\n            BuildableName = \"GitY.app\"\n            BlueprintName = \"GitY\"\n            ReferencedContainer = \"container:GitY.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E2DBF9421B879511006B292E\"\n            BuildableName = \"GitY.app\"\n            BlueprintName = \"GitY\"\n            ReferencedContainer = \"container:GitY.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "Examples/GitY/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleDocumentTypes</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>CFBundleTypeName</key>\n\t\t\t<string>Git Repository</string>\n\t\t\t<key>CFBundleTypeRole</key>\n\t\t\t<string>Viewer</string>\n\t\t\t<key>LSItemContentTypes</key>\n\t\t\t<array>\n\t\t\t\t<string>public.folder</string>\n\t\t\t</array>\n\t\t\t<key>NSDocumentClass</key>\n\t\t\t<string>Document</string>\n\t\t</dict>\n\t</array>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "Examples/GitY/main.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, const char* argv[]) {\n  return NSApplicationMain(argc, argv);\n}\n"
  },
  {
    "path": "Examples/iGit/AppDelegate.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <UIKit/UIKit.h>\n\n@interface AppDelegate : UIResponder <UIApplicationDelegate>\n@property(nonatomic, strong) UIWindow* window;\n@end\n"
  },
  {
    "path": "Examples/iGit/AppDelegate.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"AppDelegate.h\"\n\n@implementation AppDelegate\n\n- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {\n  return YES;\n}\n\n@end\n"
  },
  {
    "path": "Examples/iGit/Base.lproj/LaunchScreen.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.XIB\" version=\"3.0\" toolsVersion=\"7706\" systemVersion=\"14F27\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" launchScreen=\"YES\" useTraitCollections=\"YES\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"7703\"/>\n        <capability name=\"Constraints with non-1.0 multipliers\" minToolsVersion=\"5.1\"/>\n    </dependencies>\n    <objects>\n        <placeholder placeholderIdentifier=\"IBFilesOwner\" id=\"-1\" userLabel=\"File's Owner\"/>\n        <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"-2\" customClass=\"UIResponder\"/>\n        <view contentMode=\"scaleToFill\" id=\"iN0-l3-epB\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"480\" height=\"480\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" misplaced=\"YES\" text=\"\" textAlignment=\"center\" lineBreakMode=\"tailTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"9\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8ie-xW-0ye\">\n                    <rect key=\"frame\" x=\"20\" y=\"439\" width=\"441\" height=\"21\"/>\n                    <fontDescription key=\"fontDescription\" type=\"system\" pointSize=\"17\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n                <label opaque=\"NO\" clipsSubviews=\"YES\" userInteractionEnabled=\"NO\" contentMode=\"left\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" text=\"iGit\" textAlignment=\"center\" lineBreakMode=\"middleTruncation\" baselineAdjustment=\"alignBaselines\" minimumFontSize=\"18\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kId-c2-rCX\">\n                    <rect key=\"frame\" x=\"20\" y=\"140\" width=\"441\" height=\"43\"/>\n                    <fontDescription key=\"fontDescription\" type=\"boldSystem\" pointSize=\"36\"/>\n                    <color key=\"textColor\" cocoaTouchSystemColor=\"darkTextColor\"/>\n                    <nil key=\"highlightedColor\"/>\n                </label>\n            </subviews>\n            <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n            <constraints>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"centerY\" secondItem=\"iN0-l3-epB\" secondAttribute=\"bottom\" multiplier=\"1/3\" constant=\"1\" id=\"5cJ-9S-tgC\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"kId-c2-rCX\" secondAttribute=\"centerX\" id=\"Koa-jz-hwk\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"bottom\" constant=\"20\" id=\"Kzo-t9-V3l\"/>\n                <constraint firstItem=\"8ie-xW-0ye\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"MfP-vx-nX0\"/>\n                <constraint firstAttribute=\"centerX\" secondItem=\"8ie-xW-0ye\" secondAttribute=\"centerX\" id=\"ZEH-qu-HZ9\"/>\n                <constraint firstItem=\"kId-c2-rCX\" firstAttribute=\"leading\" secondItem=\"iN0-l3-epB\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"fvb-Df-36g\"/>\n            </constraints>\n            <nil key=\"simulatedStatusBarMetrics\"/>\n            <freeformSimulatedSizeMetrics key=\"simulatedDestinationMetrics\"/>\n            <point key=\"canvasLocation\" x=\"548\" y=\"455\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "Examples/iGit/Base.lproj/Main.storyboard",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n<document type=\"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB\" version=\"3.0\" toolsVersion=\"6211\" systemVersion=\"14A298i\" targetRuntime=\"iOS.CocoaTouch\" propertyAccessControl=\"none\" useAutolayout=\"YES\" useTraitCollections=\"YES\" initialViewController=\"BYZ-38-t0r\">\n    <dependencies>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.IBCocoaTouchPlugin\" version=\"6204\"/>\n    </dependencies>\n    <scenes>\n        <!--View Controller-->\n        <scene sceneID=\"tne-QT-ifu\">\n            <objects>\n                <viewController id=\"BYZ-38-t0r\" customClass=\"ViewController\" customModuleProvider=\"\" sceneMemberID=\"viewController\">\n                    <layoutGuides>\n                        <viewControllerLayoutGuide type=\"top\" id=\"y3c-jy-aDJ\"/>\n                        <viewControllerLayoutGuide type=\"bottom\" id=\"wfy-db-euE\"/>\n                    </layoutGuides>\n                    <view key=\"view\" contentMode=\"scaleToFill\" id=\"8bC-Xf-vdC\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"600\" height=\"600\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <color key=\"backgroundColor\" white=\"1\" alpha=\"1\" colorSpace=\"custom\" customColorSpace=\"calibratedWhite\"/>\n                    </view>\n                </viewController>\n                <placeholder placeholderIdentifier=\"IBFirstResponder\" id=\"dkx-z0-nzr\" sceneMemberID=\"firstResponder\"/>\n            </objects>\n        </scene>\n    </scenes>\n</document>\n"
  },
  {
    "path": "Examples/iGit/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSRequiresIPhoneOS</key>\n\t<true/>\n\t<key>UILaunchStoryboardName</key>\n\t<string>LaunchScreen</string>\n\t<key>UIMainStoryboardFile</key>\n\t<string>Main</string>\n\t<key>UIRequiredDeviceCapabilities</key>\n\t<array>\n\t\t<string>armv7</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n\t<key>UISupportedInterfaceOrientations~ipad</key>\n\t<array>\n\t\t<string>UIInterfaceOrientationPortrait</string>\n\t\t<string>UIInterfaceOrientationPortraitUpsideDown</string>\n\t\t<string>UIInterfaceOrientationLandscapeLeft</string>\n\t\t<string>UIInterfaceOrientationLandscapeRight</string>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "Examples/iGit/ViewController.h",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <UIKit/UIKit.h>\n\n@interface ViewController : UIViewController\n@end\n"
  },
  {
    "path": "Examples/iGit/ViewController.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <GitUpKit/GitUpKit.h>\n\n#import \"ViewController.h\"\n\n@implementation ViewController\n\n- (void)viewDidLoad {\n  [super viewDidLoad];\n\n  NSString* path = [[NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]] stringByAppendingPathExtension:@\"git\"];\n  [[NSFileManager defaultManager] removeItemAtPath:path error:NULL];\n  GCRepository* repo = [[GCRepository alloc] initWithNewLocalRepository:path bare:YES error:NULL];\n  assert(repo);\n\n  GCRemote* remote = [repo addRemoteWithName:@\"origin\" url:[NSURL URLWithString:@\"https://github.com/git-up/test-repo-base.git\"] error:NULL];\n  assert(remote);\n  assert([repo cloneUsingRemote:remote recursive:NO error:NULL]);\n\n  assert([repo writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"user.name\" withValue:@\"User\" error:NULL]);\n  assert([repo writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"user.email\" withValue:@\"user@example.com\" error:NULL]);\n\n  GCIndex* index = [repo createInMemoryIndex:NULL];\n  assert([repo addFile:@\"empty.data\" withContents:[NSData data] toIndex:index error:NULL]);\n  GCCommit* commit = [repo createCommitFromIndex:index withParents:nil message:@\"Initial commit\" error:NULL];\n  assert(commit);\n\n  GCLocalBranch* branch = [repo createLocalBranchFromCommit:commit withName:@\"empty\" force:NO error:NULL];\n  assert(branch);\n\n  self.view.backgroundColor = [UIColor greenColor];\n}\n\n@end\n"
  },
  {
    "path": "Examples/iGit/iGit.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 48;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tE21753D61B9169DD00BE234A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E21753D31B9169DD00BE234A /* AppDelegate.m */; };\n\t\tE21753D71B9169DD00BE234A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E21753D51B9169DD00BE234A /* ViewController.m */; };\n\t\tE21753DC1B9169EE00BE234A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = E21753D81B9169EE00BE234A /* LaunchScreen.xib */; };\n\t\tE21753DD1B9169EE00BE234A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E21753DA1B9169EE00BE234A /* Main.storyboard */; };\n\t\tE21753F11B916AE000BE234A /* GitUpKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E21753EC1B916ACB00BE234A /* GitUpKit.framework */; };\n\t\tE21753F41B916AFE00BE234A /* GitUpKit.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = E21753EC1B916ACB00BE234A /* GitUpKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\tE2B987861B916F620097629D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B987841B916F620097629D /* main.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tE21753E91B916ACB00BE234A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E267E1A81B84D6C500BAB377;\n\t\t\tremoteInfo = \"GitUpKit (OSX)\";\n\t\t};\n\t\tE21753EB1B916ACB00BE234A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E217531B1B91613300BE234A;\n\t\t\tremoteInfo = \"GitUpKit (iOS)\";\n\t\t};\n\t\tE21753ED1B916ACB00BE234A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E2C338C419F8562F00063D95;\n\t\t\tremoteInfo = Tests;\n\t\t};\n\t\tE21753EF1B916AD400BE234A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = E217531A1B91613300BE234A;\n\t\t\tremoteInfo = \"GitUpKit (iOS)\";\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\tE21753F21B916AE700BE234A /* Copy Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\tE21753F41B916AFE00BE234A /* GitUpKit.framework in Copy Frameworks */,\n\t\t\t);\n\t\t\tname = \"Copy Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\tDB72901622C833E3007AB8F7 /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72901722C833E3007AB8F7 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72901822C833E3007AB8F7 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE21753A51B9168D300BE234A /* iGit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iGit.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE21753D21B9169DD00BE234A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = SOURCE_ROOT; };\n\t\tE21753D31B9169DD00BE234A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = SOURCE_ROOT; };\n\t\tE21753D41B9169DD00BE234A /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = SOURCE_ROOT; };\n\t\tE21753D51B9169DD00BE234A /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = SOURCE_ROOT; };\n\t\tE21753D91B9169EE00BE234A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = SOURCE_ROOT; };\n\t\tE21753DB1B9169EE00BE234A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = SOURCE_ROOT; };\n\t\tE21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = \"wrapper.pb-project\"; name = GitUpKit.xcodeproj; path = ../../GitUpKit/GitUpKit.xcodeproj; sourceTree = \"<group>\"; };\n\t\tE2B987831B916F620097629D /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = SOURCE_ROOT; };\n\t\tE2B987841B916F620097629D /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = SOURCE_ROOT; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE21753A21B9168D300BE234A /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE21753F11B916AE000BE234A /* GitUpKit.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tDB72901522C833E3007AB8F7 /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB72901622C833E3007AB8F7 /* Debug.xcconfig */,\n\t\t\t\tDB72901722C833E3007AB8F7 /* Release.xcconfig */,\n\t\t\t\tDB72901822C833E3007AB8F7 /* Base.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE217539C1B9168D300BE234A = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */,\n\t\t\t\tE21753D21B9169DD00BE234A /* AppDelegate.h */,\n\t\t\t\tE21753D31B9169DD00BE234A /* AppDelegate.m */,\n\t\t\t\tE21753D41B9169DD00BE234A /* ViewController.h */,\n\t\t\t\tE21753D51B9169DD00BE234A /* ViewController.m */,\n\t\t\t\tE21753DA1B9169EE00BE234A /* Main.storyboard */,\n\t\t\t\tE21753D81B9169EE00BE234A /* LaunchScreen.xib */,\n\t\t\t\tE2B987831B916F620097629D /* Info.plist */,\n\t\t\t\tE2B987841B916F620097629D /* main.m */,\n\t\t\t\tE21753A61B9168D300BE234A /* Products */,\n\t\t\t\tDB72901522C833E3007AB8F7 /* Xcode-Configurations */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21753A61B9168D300BE234A /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21753A51B9168D300BE234A /* iGit.app */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21753E31B916ACB00BE234A /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21753EA1B916ACB00BE234A /* GitUpKit.framework */,\n\t\t\t\tE21753EC1B916ACB00BE234A /* GitUpKit.framework */,\n\t\t\t\tE21753EE1B916ACB00BE234A /* GitUpTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE21753A41B9168D300BE234A /* iGit */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E21753C81B9168D300BE234A /* Build configuration list for PBXNativeTarget \"iGit\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE21753A11B9168D300BE234A /* Sources */,\n\t\t\t\tE21753A21B9168D300BE234A /* Frameworks */,\n\t\t\t\tE21753A31B9168D300BE234A /* Resources */,\n\t\t\t\tE21753F21B916AE700BE234A /* Copy Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tE21753F01B916AD400BE234A /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = iGit;\n\t\t\tproductName = iGit;\n\t\t\tproductReference = E21753A51B9168D300BE234A /* iGit.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE217539D1B9168D300BE234A /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1020;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE21753A41B9168D300BE234A = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.4;\n\t\t\t\t\t\tProvisioningStyle = Manual;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E21753A01B9168D300BE234A /* Build configuration list for PBXProject \"iGit\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E217539C1B9168D300BE234A;\n\t\t\tproductRefGroup = E21753A61B9168D300BE234A /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectReferences = (\n\t\t\t\t{\n\t\t\t\t\tProductGroup = E21753E31B916ACB00BE234A /* Products */;\n\t\t\t\t\tProjectRef = E21753E21B916ACB00BE234A /* GitUpKit.xcodeproj */;\n\t\t\t\t},\n\t\t\t);\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE21753A41B9168D300BE234A /* iGit */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXReferenceProxy section */\n\t\tE21753EA1B916ACB00BE234A /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E21753E91B916ACB00BE234A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE21753EC1B916ACB00BE234A /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E21753EB1B916ACB00BE234A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE21753EE1B916ACB00BE234A /* GitUpTests.xctest */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.cfbundle;\n\t\t\tpath = GitUpTests.xctest;\n\t\t\tremoteRef = E21753ED1B916ACB00BE234A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n/* End PBXReferenceProxy section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE21753A31B9168D300BE234A /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE21753DD1B9169EE00BE234A /* Main.storyboard in Resources */,\n\t\t\t\tE21753DC1B9169EE00BE234A /* LaunchScreen.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE21753A11B9168D300BE234A /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE21753D61B9169DD00BE234A /* AppDelegate.m in Sources */,\n\t\t\t\tE2B987861B916F620097629D /* main.m in Sources */,\n\t\t\t\tE21753D71B9169DD00BE234A /* ViewController.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\tE21753F01B916AD400BE234A /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = \"GitUpKit (iOS)\";\n\t\t\ttargetProxy = E21753EF1B916AD400BE234A /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\tE21753D81B9169EE00BE234A /* LaunchScreen.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE21753D91B9169EE00BE234A /* Base */,\n\t\t\t);\n\t\t\tname = LaunchScreen.xib;\n\t\t\tpath = iGit;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21753DA1B9169EE00BE234A /* Main.storyboard */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE21753DB1B9169EE00BE234A /* Base */,\n\t\t\t);\n\t\t\tname = Main.storyboard;\n\t\t\tpath = iGit;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE21753C61B9168D300BE234A /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72901622C833E3007AB8F7 /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE21753C71B9168D300BE234A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72901722C833E3007AB8F7 /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE21753C91B9168D300BE234A /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.i;\n\t\t\t\tPRODUCT_NAME = iGit;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE21753CA1B9168D300BE234A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCODE_SIGN_IDENTITY = \"iPhone Developer\";\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.i;\n\t\t\t\tPRODUCT_NAME = iGit;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE21753A01B9168D300BE234A /* Build configuration list for PBXProject \"iGit\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE21753C61B9168D300BE234A /* Debug */,\n\t\t\t\tE21753C71B9168D300BE234A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE21753C81B9168D300BE234A /* Build configuration list for PBXNativeTarget \"iGit\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE21753C91B9168D300BE234A /* Debug */,\n\t\t\t\tE21753CA1B9168D300BE234A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = E217539D1B9168D300BE234A /* Project object */;\n}\n"
  },
  {
    "path": "Examples/iGit/iGit.xcodeproj/xcshareddata/xcschemes/iGit.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1020\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E21753A41B9168D300BE234A\"\n               BuildableName = \"iGit.app\"\n               BlueprintName = \"iGit\"\n               ReferencedContainer = \"container:iGit.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E21753A41B9168D300BE234A\"\n            BuildableName = \"iGit.app\"\n            BlueprintName = \"iGit\"\n            ReferencedContainer = \"container:iGit.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <AdditionalOptions>\n      </AdditionalOptions>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E21753A41B9168D300BE234A\"\n            BuildableName = \"iGit.app\"\n            BlueprintName = \"iGit\"\n            ReferencedContainer = \"container:iGit.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E21753A41B9168D300BE234A\"\n            BuildableName = \"iGit.app\"\n            BlueprintName = \"iGit\"\n            ReferencedContainer = \"container:iGit.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "Examples/iGit/main.m",
    "content": "//  Copyright (C) 2015 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <UIKit/UIKit.h>\n\n#import \"AppDelegate.h\"\n\nint main(int argc, char* argv[]) {\n  @autoreleasepool {\n    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));\n  }\n}\n"
  },
  {
    "path": "GitUp/Application/AboutWindowController.h",
    "content": "//\n//  AboutWindowController.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import <AppKit/AppKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AboutWindowController : NSWindowController\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/AboutWindowController.m",
    "content": "//\n//  AboutWindowController.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import \"AboutWindowController.h\"\n\n@interface AboutWindowController ()\n@property(nonatomic, weak) IBOutlet NSTextField* versionTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* copyrightTextField;\n@end\n\n@implementation AboutWindowController\n\n- (instancetype)init {\n  return [super initWithWindowNibName:@\"AboutWindowController\"];\n}\n\n- (void)windowDidLoad {\n  [super windowDidLoad];\n  [self configureUI];\n}\n\n- (void)configureUI {\n  NSString* version = nil;\n#if DEBUG\n  version = @\"DEBUG\";\n#else\n  version = [NSString stringWithFormat:NSLocalizedString(@\"Version %@ (%@)\", nil), [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleShortVersionString\"], [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleVersion\"]];\n#endif\n  self.versionTextField.stringValue = version;\n  self.copyrightTextField.stringValue = [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"NSHumanReadableCopyright\"];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/AppDelegate.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@interface AppDelegate : NSObject <NSApplicationDelegate>\n+ (instancetype)sharedDelegate;\n- (void)handleDocumentCountChanged;\n@end\n"
  },
  {
    "path": "GitUp/Application/AppDelegate.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wobjc-interface-ivars\"\n#pragma clang diagnostic pop\n#import <Sparkle/Sparkle.h>\n#import <UserNotifications/UserNotifications.h>\n\n#import <GitUpKit/GitUpKit.h>\n#import <GitUpKit/XLFacilityMacros.h>\n\n#import \"AppDelegate.h\"\n#import \"ServicesProvider.h\"\n#import \"DocumentController.h\"\n#import \"Document.h\"\n#import \"Common.h\"\n#import \"ToolProtocol.h\"\n\n#import \"AboutWindowController.h\"\n#import \"CloneWindowController.h\"\n#import \"PreferencesWindowController.h\"\n#import \"WelcomeWindowController.h\"\n\n#define __ENABLE_SUDDEN_TERMINATION__ 1\n\n#define kNotificationUserInfoKey_Action @\"action\"  // NSString\n\n#define kInstallerName @\"install.sh\"\n#define kToolName @\"gitup\"\n#define kToolInstallPath @\"/usr/local/bin/\" kToolName\n\n@interface AppDelegate () <UNUserNotificationCenterDelegate, SPUUpdaterDelegate, NSMenuItemValidation>\n@property(nonatomic, strong) AboutWindowController* aboutWindowController;\n@property(nonatomic, strong) CloneWindowController* cloneWindowController;\n@property(nonatomic, strong) PreferencesWindowController* preferencesWindowController;\n@property(nonatomic, strong) WelcomeWindowController* welcomeWindowController;\n@end\n\n@implementation AppDelegate {\n  SPUStandardUpdaterController* _updaterController;\n  BOOL _manualCheck;\n\n  CFMessagePortRef _messagePort;\n}\n\n#pragma mark - Properties\n\n- (AboutWindowController*)aboutWindowController {\n  if (!_aboutWindowController) {\n    _aboutWindowController = [[AboutWindowController alloc] init];\n  }\n  return _aboutWindowController;\n}\n\n- (CloneWindowController*)cloneWindowController {\n  if (!_cloneWindowController) {\n    _cloneWindowController = [[CloneWindowController alloc] init];\n  }\n  return _cloneWindowController;\n}\n\n- (void)didChangeReleaseChannel:(BOOL)didChange {\n  if (didChange) {\n    [_updaterController.updater checkForUpdatesInBackground];\n  }\n}\n\n- (PreferencesWindowController*)preferencesWindowController {\n  if (!_preferencesWindowController) {\n    _preferencesWindowController = [[PreferencesWindowController alloc] init];\n    __weak typeof(self) weakSelf = self;\n    _preferencesWindowController.didChangeReleaseChannel = ^(BOOL didChange) {\n      [weakSelf didChangeReleaseChannel:didChange];\n    };\n  }\n  return _preferencesWindowController;\n}\n\n- (WelcomeWindowController*)welcomeWindowController {\n  if (!_welcomeWindowController) {\n    _welcomeWindowController = [[WelcomeWindowController alloc] init];\n\n    _welcomeWindowController.keyShouldShowWindow = kUserDefaultsKey_ShowWelcomeWindow;\n\n    __weak typeof(self) weakSelf = self;\n    _welcomeWindowController.openDocumentAtURL = ^(NSURL* _Nonnull url) {\n      [weakSelf _openDocumentAtURL:url];\n    };\n  }\n  return _welcomeWindowController;\n}\n\n#pragma mark - Initialize\n+ (void)initialize {\n  // Ignore when libgit2 writes on a closed pipe\n  // This signal() call causes libgit's closed pipe writes to fail with an EPIPE error, which libgit2 seems to handle correctly.\n  // Without this line, GitUp would instead immediately exit, with no crash log.\n  // libgit2 has what looks like a built-in solution (`disable_signals()`), but it doesn't seem to work for us.\n  signal(SIGPIPE, SIG_IGN);\n\n  NSDictionary* defaults = @{\n    GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters : @(YES),\n    GICommitMessageViewUserDefaultKey_ShowMargins : @(YES),\n    GICommitMessageViewUserDefaultKey_EnableSpellChecking : @(YES),\n    GIUserDefaultKey_FontSize : @(GIDefaultFontSize),\n    kUserDefaultsKey_ReleaseChannel : PreferencesWindowController_ReleaseChannel_Stable,\n    kUserDefaultsKey_CheckInterval : @(15 * 60),\n    kUserDefaultsKey_FirstLaunch : @(YES),\n    kUserDefaultsKey_DiffWhitespaceMode : @(kGCLiveRepositoryDiffWhitespaceMode_Normal),\n    kUserDefaultsKey_ShowWelcomeWindow : @(YES),\n    kUserDefaultsKey_AskSetUpstreamOnPush : @(YES),\n    kUserDefaultsKey_Theme : PreferencesWindowController_Theme_SystemPreference,\n  };\n  [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];\n}\n\n+ (instancetype)sharedDelegate {\n  return (AppDelegate*)[NSApp delegate];\n}\n\n- (void)_setDocumentWindowModeID:(NSArray*)arguments {\n  [(Document*)arguments[0] setWindowModeID:[arguments[1] unsignedIntegerValue]];\n}\n\n- (void)_openRepositoryWithURL:(NSURL*)url withCloneMode:(CloneMode)cloneMode windowModeID:(WindowModeID)windowModeID {\n  [self _openRepositoryWithURL:url inTab:NO withCloneMode:cloneMode windowModeID:windowModeID];\n}\n\n- (void)_openRepositoryWithURL:(NSURL*)url inTab:(BOOL)inTab withCloneMode:(CloneMode)cloneMode windowModeID:(WindowModeID)windowModeID {\n  [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:url\n                                                                         display:!inTab\n                                                               completionHandler:^(NSDocument* document, BOOL documentWasAlreadyOpen, NSError* openError) {\n                                                                 if (document) {\n                                                                   if (inTab) {\n                                                                     if (!documentWasAlreadyOpen) {\n                                                                       [document makeWindowControllers];\n                                                                       document.windowControllers.firstObject.window.tabbingMode = NSWindowTabbingModePreferred;\n                                                                     }\n                                                                     [document showWindows];\n                                                                   }\n\n                                                                   if (documentWasAlreadyOpen) {\n                                                                     if ((NSUInteger)windowModeID != NSNotFound) {\n                                                                       [(Document*)document setWindowModeID:windowModeID];\n                                                                     }\n                                                                   } else {\n                                                                     [(Document*)document setCloneMode:cloneMode];\n                                                                     if ((NSUInteger)windowModeID != NSNotFound) {\n                                                                       XLOG_DEBUG_CHECK(cloneMode == kCloneMode_None);\n                                                                       [self performSelector:@selector(_setDocumentWindowModeID:) withObject:@[ document, @(windowModeID) ] afterDelay:0.1];  // TODO: Try to schedule *after* -[Document _documentDidOpen] has been called\n                                                                     }\n                                                                   }\n                                                                 } else {\n                                                                   [[NSDocumentController sharedDocumentController] presentError:openError];\n                                                                 }\n                                                               }];\n}\n\n- (void)_openDocumentAtURL:(NSURL*)url {\n  [self _openRepositoryWithURL:url withCloneMode:kCloneMode_None windowModeID:NSNotFound];\n}\n\n- (void)handleDocumentCountChanged {\n  [self.welcomeWindowController handleDocumentCountChanged];\n}\n\n- (void)_showNotificationWithTitle:(NSString*)title action:(SEL)action message:(NSString*)format, ... NS_FORMAT_FUNCTION(3, 4) {\n  va_list arguments;\n  va_start(arguments, format);\n  NSString* string = [[NSString alloc] initWithFormat:format arguments:arguments];\n  va_end(arguments);\n\n  UNMutableNotificationContent* content = [[UNMutableNotificationContent alloc] init];\n  content.title = title;\n  content.body = string;\n  if (action) {\n    content.userInfo = @{kNotificationUserInfoKey_Action : NSStringFromSelector(action)};\n  }\n\n  UNNotificationRequest* request = [UNNotificationRequest requestWithIdentifier:[[NSUUID UUID] UUIDString] content:content trigger:nil];\n  [[UNUserNotificationCenter currentNotificationCenter] addNotificationRequest:request withCompletionHandler:nil];\n}\n\n#pragma mark - NSApplicationDelegate\n\n- (void)applicationWillFinishLaunching:(NSNotification*)notification {\n  // Initialize custom subclass of NSDocumentController\n  [DocumentController sharedDocumentController];\n}\n\n- (void)applicationDidFinishLaunching:(NSNotification*)notification {\n#if !DEBUG\n  // Initialize Sparkle and check for update immediately\n  if (![[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsKey_DisableSparkle]) {\n    _updaterController = [[SPUStandardUpdaterController alloc] initWithStartingUpdater:YES\n                                                                       updaterDelegate:self\n                                                                    userDriverDelegate:nil];\n    _updaterController.updater.automaticallyChecksForUpdates = YES;\n    _updaterController.updater.sendsSystemProfile = NO;\n\n    _manualCheck = NO;\n    [_updaterController.updater checkForUpdatesInBackground];\n  }\n#endif\n\n  // Locate installed apps.\n  [GILaunchServicesLocator setup];\n\n  // Initialize user notification center\n  UNUserNotificationCenter* center = [UNUserNotificationCenter currentNotificationCenter];\n  [center setDelegate:self];\n\n  [center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert | UNAuthorizationOptionSound | UNAuthorizationOptionBadge)\n                        completionHandler:^(BOOL granted, NSError* _Nullable error) {\n                          if (!granted) {\n                            XLOG_INFO(@\"User denied notification permissions\");\n                          }\n                        }];\n\n  // Register finder context menu services.\n  [NSApplication sharedApplication].servicesProvider = [ServicesProvider new];\n\n  // Notify user in case app was updated since last launch\n  NSString* currentVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleVersion\"];\n  NSString* lastVersion = [[NSUserDefaults standardUserDefaults] objectForKey:kUserDefaultsKey_LastVersion];\n  if (lastVersion && ([currentVersion integerValue] > [lastVersion integerValue])) {\n    NSString* version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleShortVersionString\"];\n    [self _showNotificationWithTitle:[NSString stringWithFormat:NSLocalizedString(@\"GitUp Updated to Version %@ (%@)\", nil), version, currentVersion]\n                              action:@selector(viewReleaseNotes:)\n                             message:NSLocalizedString(@\"Click to see release notes.\", nil)];\n  }\n  if ([currentVersion integerValue]) {\n    [[NSUserDefaults standardUserDefaults] setObject:currentVersion forKey:kUserDefaultsKey_LastVersion];\n  }\n\n  // Prompt to install command line tool if needed\n  if (![[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsKey_FirstLaunch] && ![[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsKey_SkipInstallCLT]) {\n    if (![[NSFileManager defaultManager] isExecutableFileAtPath:kToolInstallPath]) {\n      NSAlert* alert = [[NSAlert alloc] init];\n      alert.messageText = NSLocalizedString(@\"Install GitUp command line tool?\", nil);\n      alert.informativeText = [NSString stringWithFormat:NSLocalizedString(@\"GitUp can install a companion command line tool at \\\"%@\\\" which lets you control GitUp from the terminal.\\n\\nYou can install it at any time from the GitUp menu.\", nil), kToolInstallPath];\n      [alert addButtonWithTitle:NSLocalizedString(@\"Install\", nil)];\n      [alert addButtonWithTitle:NSLocalizedString(@\"Not Now\", nil)];\n      alert.type = kGIAlertType_Note;\n      alert.showsSuppressionButton = YES;\n      if ([alert runModal] == NSAlertFirstButtonReturn) {\n        [self installTool:nil];\n      }\n      if (alert.suppressionButton.state) {\n        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:kUserDefaultsKey_SkipInstallCLT];\n      }\n    }\n  }\n\n  // First launch has completed\n  [[NSUserDefaults standardUserDefaults] setBool:NO forKey:kUserDefaultsKey_FirstLaunch];\n\n  // Create tool message port\n  CFMessagePortContext context = {0, (__bridge void*)self, NULL, NULL, NULL};\n  _messagePort = CFMessagePortCreateLocal(kCFAllocatorDefault, CFSTR(kToolPortName), _MessagePortCallBack, &context, NULL);\n  if (_messagePort) {\n    CFRunLoopSourceRef source = CFMessagePortCreateRunLoopSource(kCFAllocatorDefault, _messagePort, 0);\n    if (source) {\n      CFRunLoopAddSource(CFRunLoopGetMain(), source, kCFRunLoopDefaultMode);  // Don't use kCFRunLoopCommonModes on purpose\n      CFRelease(source);\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  } else {\n    XLOG_ERROR(@\"Failed creating message port for tool\");\n    XLOG_DEBUG_UNREACHABLE();\n  }\n\n  // Load theme preference\n  [PreferencesThemeService applySelectedTheme];\n\n#if __ENABLE_SUDDEN_TERMINATION__\n  // Enable sudden termination\n  [[NSProcessInfo processInfo] enableSuddenTermination];\n#endif\n}\n\n- (BOOL)applicationShouldOpenUntitledFile:(NSApplication*)sender {\n  return NO;\n}\n\n- (BOOL)applicationShouldHandleReopen:(NSApplication*)theApplication hasVisibleWindows:(BOOL)hasVisibleWindows {\n  if (!hasVisibleWindows) {\n    // Always show welcome when clicking on dock icon\n    [self.welcomeWindowController setShouldShow];\n    [self handleDocumentCountChanged];\n  }\n  return YES;\n}\n\n- (void)applicationDidBecomeActive:(NSNotification*)notification {\n  if (self.welcomeWindowController.notActivedYet) {\n    [self.welcomeWindowController setShouldShow];\n  }\n  [self handleDocumentCountChanged];\n}\n\n#if __ENABLE_SUDDEN_TERMINATION__\n\n// Try to work around -canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: not being called when quitting even if sudden termination is disabled\n- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender {\n  BOOL shouldTerminate = YES;\n  for (Document* document in [[NSDocumentController sharedDocumentController] documents]) {\n    if (![document shouldCloseDocument]) {\n      shouldTerminate = NO;\n    }\n  }\n  return shouldTerminate ? NSTerminateNow : NSTerminateCancel;  // TODO: Use NSTerminateLater instead\n}\n\n#endif\n\n#pragma mark - Tool\n\nstatic CFDataRef _MessagePortCallBack(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void* info) {\n  NSDictionary* input = [NSKeyedUnarchiver unarchiveObjectWithData:(__bridge NSData*)data];\n  XLOG_DEBUG_CHECK(input);\n  NSDictionary* output = [(__bridge AppDelegate*)info _processToolCommand:input];\n  XLOG_DEBUG_CHECK(output);\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wunguarded-availability\"\n  // The deprecation for this method in the macOS 10.14 SDK marks the incorrect\n  // version for its introduction. However, it is useful to keep availability\n  // guards on in general. FB6233110\n  return CFBridgingRetain([NSKeyedArchiver archivedDataWithRootObject:output]);\n#pragma clang diagnostic pop\n}\n\n- (NSDictionary*)_processToolCommand:(NSDictionary*)input {\n  NSString* command = [input objectForKey:kToolDictionaryKey_Command];\n  NSString* option = [input objectForKey:kToolDictionaryKey_Option];\n  NSString* repository = [[input objectForKey:kToolDictionaryKey_Repository] stringByStandardizingPath];\n  if (!command.length || !repository.length) {\n    return @{kToolDictionaryKey_Error : @\"Invalid command\"};\n  }\n  BOOL openInTab = [option isEqualToString:@kToolOption_Tab];\n  if ([command isEqualToString:@kToolCommand_Open]) {\n    [self _openRepositoryWithURL:[NSURL fileURLWithPath:repository] inTab:openInTab withCloneMode:kCloneMode_None windowModeID:NSNotFound];\n  } else if ([command isEqualToString:@kToolCommand_Map]) {\n    [self _openRepositoryWithURL:[NSURL fileURLWithPath:repository] inTab:openInTab withCloneMode:kCloneMode_None windowModeID:kWindowModeID_Map];\n  } else if ([command isEqualToString:@kToolCommand_Commit]) {\n    [self _openRepositoryWithURL:[NSURL fileURLWithPath:repository] inTab:openInTab withCloneMode:kCloneMode_None windowModeID:kWindowModeID_Commit];\n  } else if ([command isEqualToString:@kToolCommand_Stash]) {\n    [self _openRepositoryWithURL:[NSURL fileURLWithPath:repository] inTab:openInTab withCloneMode:kCloneMode_None windowModeID:kWindowModeID_Stashes];\n  } else {\n    return @{kToolDictionaryKey_Error : [NSString stringWithFormat:@\"Unknown command '%@'\", command]};\n  }\n  return @{};\n}\n\n#pragma mark - NSMenuItemValidation\n\n- (BOOL)validateMenuItem:(NSMenuItem*)menuItem {\n  if (menuItem.action == @selector(checkForUpdates:)) {\n    return _updaterController.updater.canCheckForUpdates;\n  }\n  return YES;\n}\n\n#pragma mark - Actions\n\n- (IBAction)openDocument:(id)sender {\n  [[NSDocumentController sharedDocumentController] openDocument:sender];\n}\n\n- (IBAction)viewWiki:(id)sender {\n  [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:kURL_Wiki]];\n}\n\n- (IBAction)viewReleaseNotes:(id)sender {\n  [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:kURL_ReleaseNotes]];\n}\n\n- (IBAction)viewIssues:(id)sender {\n  [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:kURL_Issues]];\n}\n\n- (IBAction)showAboutPanel:(id)sender {\n  [self.aboutWindowController showWindow:nil];\n}\n\n- (IBAction)showPreferences:(id)sender {\n  [self.preferencesWindowController showWindow:nil];\n}\n\n- (IBAction)resetPreferences:(id)sender {\n  [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:[[NSBundle mainBundle] bundleIdentifier]];\n}\n\n- (IBAction)newRepository:(id)sender {\n  NSSavePanel* savePanel = [NSSavePanel savePanel];\n  savePanel.title = NSLocalizedString(@\"Create New Repository\", nil);\n  savePanel.prompt = NSLocalizedString(@\"Create\", nil);\n  savePanel.nameFieldLabel = NSLocalizedString(@\"Name:\", nil);\n  savePanel.showsTagField = NO;\n  if ([savePanel runModal] == NSModalResponseOK) {\n    NSString* path = savePanel.URL.path;\n    NSError* error;\n    if (![[NSFileManager defaultManager] fileExistsAtPath:path followLastSymlink:NO] || [[NSFileManager defaultManager] moveItemAtPathToTrash:path error:&error]) {\n      GCRepository* repository = [[GCRepository alloc] initWithNewLocalRepository:path bare:NO error:&error];\n      if (repository) {\n        [self _openRepositoryWithURL:[NSURL fileURLWithPath:repository.workingDirectoryPath] withCloneMode:kCloneMode_None windowModeID:NSNotFound];\n      } else {\n        [NSApp presentError:error];\n      }\n    } else {\n      [NSApp presentError:error];\n    }\n  }\n}\n\n- (void)_cloneRepositoryFromURLString:(NSString*)urlString {\n  [self.cloneWindowController runModalForURL:urlString\n                                  completion:^(CloneWindowControllerResult* _Nullable result) {\n                                    if (!result) {\n                                      return;\n                                    }\n\n                                    if (result.invalidRepository) {\n                                      [NSApp presentError:MAKE_ERROR(@\"Invalid Git repository URL\")];\n                                      return;\n                                    }\n\n                                    if (result.emptyDirectoryPath) {\n                                      return;\n                                    }\n\n                                    NSURL* url = result.repositoryURL;\n                                    NSString* path = result.directoryPath;\n                                    CloneMode cloneMode = result.recursive ? kCloneMode_Recursive : kCloneMode_Default;\n                                    NSError* error;\n\n                                    BOOL fileDoesntExistOrEvictedToTrash = ![[NSFileManager defaultManager] fileExistsAtPath:path followLastSymlink:NO] || [[NSFileManager defaultManager] moveItemAtPathToTrash:path error:&error];\n\n                                    if (!fileDoesntExistOrEvictedToTrash) {\n                                      [NSApp presentError:error];\n                                      return;\n                                    }\n\n                                    GCRepository* repository = [[GCRepository alloc] initWithNewLocalRepository:path bare:NO error:&error];\n                                    if (!repository) {\n                                      [NSApp presentError:error];\n                                      return;\n                                    }\n\n                                    if ([repository addRemoteWithName:@\"origin\" url:url error:&error]) {\n                                      [self _openRepositoryWithURL:[NSURL fileURLWithPath:repository.workingDirectoryPath] withCloneMode:cloneMode windowModeID:NSNotFound];\n                                    } else {\n                                      [NSApp presentError:error];\n                                      [[NSFileManager defaultManager] removeItemAtPath:path error:NULL];  // Ignore errors\n                                    }\n                                  }];\n}\n\n- (IBAction)cloneRepository:(id)sender {\n  [self _cloneRepositoryFromURLString:@\"\"];\n}\n\n- (IBAction)dimissModal:(id)sender {\n  [NSApp stopModalWithCode:[(NSButton*)sender tag]];\n  [[(NSButton*)sender window] orderOut:nil];\n}\n\n- (IBAction)checkForUpdates:(id)sender {\n  _manualCheck = YES;\n  [_updaterController checkForUpdates:sender];\n}\n\n- (IBAction)installTool:(id)sender {\n  AuthorizationRef authorization;\n  OSStatus status = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &authorization);\n  if (status == errAuthorizationSuccess) {\n    AuthorizationItem items = {kAuthorizationRightExecute, 0, NULL, 0};\n    AuthorizationRights rights = {1, &items};\n    status = AuthorizationCopyRights(authorization, &rights, NULL, kAuthorizationFlagDefaults | kAuthorizationFlagInteractionAllowed | kAuthorizationFlagPreAuthorize | kAuthorizationFlagExtendRights, NULL);\n    if (status == errAuthorizationSuccess) {\n      NSString* installerPath = [[[NSBundle mainBundle] sharedSupportPath] stringByAppendingPathComponent:kInstallerName];\n      NSString* toolPath = [[[NSBundle mainBundle] sharedSupportPath] stringByAppendingPathComponent:kToolName];\n      NSString* installPath = kToolInstallPath;\n      char* arguments[] = {(char*)toolPath.fileSystemRepresentation, (char*)installPath.fileSystemRepresentation, NULL};\n      FILE* communicationPipe = NULL;\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wdeprecated-declarations\"\n      status = AuthorizationExecuteWithPrivileges(authorization, installerPath.fileSystemRepresentation, kAuthorizationFlagDefaults, arguments, &communicationPipe);\n#pragma clang diagnostic pop\n      if (status == errAuthorizationSuccess) {\n        NSMutableData* data = [[NSMutableData alloc] init];\n        while (1) {\n          char buffer[128];\n          ssize_t count = read(fileno(communicationPipe), buffer, sizeof(buffer));\n          if (count <= 0) {\n            break;\n          }\n          [data appendBytes:buffer length:count];\n        }\n        if ((data.length == 2) && (((const char*)data.bytes)[0] == 'O') && (((const char*)data.bytes)[1] == 'K')) {\n          NSAlert* alert = [[NSAlert alloc] init];\n          alert.messageText = NSLocalizedString(@\"GitUp command line tool was successfully installed!\", nil);\n          alert.informativeText = [NSString stringWithFormat:NSLocalizedString(@\"The tool has been installed at \\\"%@\\\".\\nRun \\\"gitup help\\\" in Terminal to learn more.\", nil), kToolInstallPath];\n          [alert addButtonWithTitle:NSLocalizedString(@\"OK\", nil)];\n          alert.type = kGIAlertType_Note;\n          [alert runModal];\n        } else {\n          status = -1;  // Code doesn't matter\n        }\n      }\n    }\n    AuthorizationFree(authorization, kAuthorizationFlagDefaults);\n  }\n  if ((status != errAuthorizationSuccess) && (status != errAuthorizationCanceled)) {\n    [NSApp presentError:MAKE_ERROR(@\"Failed installing command line tool\")];\n  }\n}\n\n#pragma mark - SPUUpdaterDelegate\n\n- (NSString*)feedURLStringForUpdater:(SPUUpdater*)updater {\n  NSString* channel = [[NSUserDefaults standardUserDefaults] stringForKey:kUserDefaultsKey_ReleaseChannel];\n  return [NSString stringWithFormat:kURL_AppCast, channel];\n}\n\n- (void)updater:(SPUUpdater*)updater didFindValidUpdate:(SUAppcastItem*)item {\n  _manualCheck = NO;\n  NSString* channel = [[NSUserDefaults standardUserDefaults] stringForKey:kUserDefaultsKey_ReleaseChannel];\n  XLOG_INFO(@\"Did find app update on channel '%@' for version %@\", channel, item.versionString);\n}\n\n- (void)updaterDidNotFindUpdate:(SPUUpdater*)updater error:(NSError*)error {\n  NSString* channel = [[NSUserDefaults standardUserDefaults] stringForKey:kUserDefaultsKey_ReleaseChannel];\n  XLOG_VERBOSE(@\"App is up-to-date at version %@ on channel '%@'\", [[NSBundle mainBundle] objectForInfoDictionaryKey:@\"CFBundleVersion\"], channel);\n  if (_manualCheck) {\n    _manualCheck = NO;\n    NSAlert* alert = [[NSAlert alloc] init];\n    alert.messageText = NSLocalizedString(@\"GitUp is already up-to-date!\", nil);\n    [alert addButtonWithTitle:NSLocalizedString(@\"OK\", nil)];\n    alert.type = kGIAlertType_Note;\n    [alert runModal];\n  }\n}\n\n- (void)updater:(SPUUpdater*)updater didAbortWithError:(NSError*)error {\n  NSString* channel = [[NSUserDefaults standardUserDefaults] stringForKey:kUserDefaultsKey_ReleaseChannel];\n  if (![error.domain isEqualToString:SUSparkleErrorDomain] || (error.code != SUNoUpdateError)) {\n    XLOG_ERROR(@\"App update on channel '%@' aborted: %@\", channel, error);\n  }\n}\n\n- (void)updater:(SPUUpdater*)updater willInstallUpdate:(SUAppcastItem*)item {\n  XLOG_INFO(@\"Installing app update for version %@\", item.versionString);\n}\n\n- (BOOL)updater:(SPUUpdater*)updater willInstallUpdateOnQuit:(SUAppcastItem*)item immediateInstallationBlock:(void (^)(void))installationBlock {\n  XLOG_INFO(@\"Will install app update for version %@ on quit\", item.versionString);\n  [self _showNotificationWithTitle:NSLocalizedString(@\"Update Available\", nil)\n                            action:NULL\n                           message:NSLocalizedString(@\"Relaunch GitUp to update to version %@ (%@).\", nil), item.displayVersionString, item.versionString];\n  return NO;\n}\n\n#pragma mark - UNUserNotificationCenterDelegate\n\n- (void)userNotificationCenter:(UNUserNotificationCenter*)center didReceiveNotificationResponse:(UNNotificationResponse*)response withCompletionHandler:(void (^)(void))completionHandler {\n  NSString* action = response.notification.request.content.userInfo[kNotificationUserInfoKey_Action];\n  if (action) {\n    [NSApp sendAction:NSSelectorFromString(action) to:self from:nil];\n  }\n  if (completionHandler) {\n    completionHandler();\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/Application.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"filename\" : \"icon_16x16.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"16x16\"\n    },\n    {\n      \"filename\" : \"icon_16x16@2x.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"16x16\"\n    },\n    {\n      \"filename\" : \"icon_32x32.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"32x32\"\n    },\n    {\n      \"filename\" : \"icon_32x32@2x.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"32x32\"\n    },\n    {\n      \"filename\" : \"icon_128x128.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"128x128\"\n    },\n    {\n      \"filename\" : \"icon_128x128@2x.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"128x128\"\n    },\n    {\n      \"filename\" : \"icon_256x256.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"256x256\"\n    },\n    {\n      \"filename\" : \"icon_256x256@2x.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"256x256\"\n    },\n    {\n      \"filename\" : \"icon_512x512.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"512x512\"\n    },\n    {\n      \"filename\" : \"icon_512x512@2x.png\",\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"512x512\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "GitUp/Application/Application.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "GitUp/Application/Application.xcassets/circle.2.line.diagonal.symbolset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  },\n  \"symbols\" : [\n    {\n      \"filename\" : \"circle.2.line.diagonal.svg\",\n      \"idiom\" : \"universal\"\n    }\n  ]\n}\n"
  },
  {
    "path": "GitUp/Application/Application.xcassets/icon_action_fetch.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_action_fetch.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_action_fetch@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUp/Application/Application.xcassets/icon_action_fetch_new.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"filename\" : \"icon_action_fetch_new.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"filename\" : \"icon_action_fetch_new_light.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"filename\" : \"icon_action_fetch_new@2x.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"filename\" : \"icon_action_fetch_new_light@2x.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    },\n    {\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "GitUp/Application/Application.xcassets/icon_action_push.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_action_push.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_action_push@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUp/Application/Application.xcassets/icon_forum.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_forum.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_forum@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUp/Application/Application.xcassets/icon_twitter.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_twitter.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_twitter@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUp/Application/Application.xcassets/switch.2.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"filename\" : \"General.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"filename\" : \"General@2x.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "GitUp/Application/AuthenticationWindowController.h",
    "content": "//\n//  AuthenticationWindowController.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import <AppKit/AppKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@class GCRepository;\n\n@interface AuthenticationWindowController : NSWindowController\n\n// Repository\n- (void)repository:(GCRepository*)repository willStartTransferWithURL:(NSURL*)url;\n- (BOOL)repository:(GCRepository*)repository requiresPlainTextAuthenticationForURL:(NSURL*)url user:(NSString*)user username:(NSString* _Nullable* _Nonnull)username password:(NSString* _Nullable* _Nonnull)password;\n- (void)repository:(GCRepository*)repository didFinishTransferWithURL:(NSURL*)url success:(BOOL)success;\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/AuthenticationWindowController.m",
    "content": "//\n//  AuthenticationWindowController.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import \"AuthenticationWindowController.h\"\n#import <GitUpKit/GitUpKit.h>\n#import <GitUpKit/XLFacilityMacros.h>\n#import \"KeychainAccessor.h\"\n\n@interface AuthenticationWindowControllerModel : NSObject\n@property(nonatomic, assign) BOOL useKeychain;\n@property(nonatomic, copy) NSURL* url;\n@property(nonatomic, copy) NSString* name;\n@property(nonatomic, copy) NSString* password;\n\n@property(nonatomic, assign, readonly) BOOL isValid;\n@end\n\n@implementation AuthenticationWindowControllerModel\n- (BOOL)isValid {\n  return self.url && self.name && self.password;\n}\n- (void)unsetUseKeychain {\n  self.useKeychain = NO;\n}\n- (void)willStartTransfer {\n  self.useKeychain = YES;\n  self.url = nil;\n  self.name = nil;\n  self.password = nil;\n}\n- (void)didFinishTransferWithURL:(NSURL*)url success:(BOOL)success onResult:(void (^)(AuthenticationWindowControllerModel* model))onResult {\n  if (onResult) {\n    BOOL shouldPassModel = success && self.isValid;\n    onResult(shouldPassModel ? self : nil);\n  }\n  self.url = nil;\n  self.name = nil;\n  self.password = nil;\n}\n@end\n\n@interface AuthenticationWindowController ()\n\n// Model\n@property(nonatomic, strong) AuthenticationWindowControllerModel* model;\n\n// Outlets\n@property(nonatomic, weak) IBOutlet NSTextField* urlTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* nameTextField;\n@property(nonatomic, weak) IBOutlet NSSecureTextField* passwordTextField;\n\n// Credentials\n@property(nonatomic, assign, readonly) BOOL credentialsExists;\n\n@end\n\n@implementation AuthenticationWindowController\n#pragma mark - Initialization\n- (instancetype)init {\n  if ((self = [super initWithWindowNibName:@\"AuthenticationWindowController\"])) {\n    self.model = [[AuthenticationWindowControllerModel alloc] init];\n  }\n  return self;\n}\n\n#pragma mark - Window Lifecycle\n- (void)beforeRunInModal {\n  self.urlTextField.stringValue = self.model.url.absoluteString;\n  self.nameTextField.stringValue = self.model.name;\n  self.passwordTextField.stringValue = self.model.password;\n  [self makeFirstResponderWhenUsernameExists:self.model.name.length > 0];\n}\n- (void)windowDidLoad {\n  [super windowDidLoad];\n  [self beforeRunInModal];\n}\n\n#pragma mark - Actions\n- (IBAction)dismissModal:(id)sender {\n  [NSApp stopModalWithCode:[(NSButton*)sender tag]];\n  [self close];\n}\n\n#pragma mark - FirstResponder\n- (NSResponder*)firstResponderWhenUsernameExists:(BOOL)usernameExists {\n  return usernameExists ? self.passwordTextField : self.nameTextField;\n}\n\n- (void)makeFirstResponderWhenUsernameExists:(BOOL)usernameExists {\n  [self.window makeFirstResponder:[self firstResponderWhenUsernameExists:usernameExists]];\n}\n\n#pragma mark - Credentials\n- (BOOL)credentialsExists {\n  return self.nameTextField.stringValue.length && self.passwordTextField.stringValue.length;\n}\n\n#pragma mark - Repository\n- (void)repository:(GCRepository*)repository willStartTransferWithURL:(NSURL*)url {\n  [self.model willStartTransfer];\n}\n\n- (BOOL)repository:(GCRepository*)repository requiresPlainTextAuthenticationForURL:(NSURL*)url user:(NSString*)user username:(NSString**)username password:(NSString**)password {\n  if (self.model.useKeychain) {\n    [self.model unsetUseKeychain];\n    if ([KeychainAccessor loadPlainTextAuthenticationFormKeychainForURL:url user:user username:username password:password allowInteraction:YES]) {\n      return YES;\n    }\n  } else {\n    XLOG_VERBOSE(@\"Skipping Keychain lookup for repeated authentication failures\");\n  }\n\n  // TODO: Add data to model and when window is appearing, we should set data from model.\n  // We need two callbacks ( willPresentModal and didPresentModal ).\n  self.model.url = url;\n\n  self.model.name = *username ? *username : @\"\";\n  self.model.password = @\"\";\n\n  if (self.windowLoaded) {\n    [self beforeRunInModal];\n  } else {\n    // look at -windowDidLoad when window first time loaded.\n  }\n\n  if ([NSApp runModalForWindow:self.window] && self.credentialsExists) {\n    self.model.name = self.nameTextField.stringValue;\n    self.model.password = self.passwordTextField.stringValue;\n    *username = self.model.name;\n    *password = self.model.password;\n    return YES;\n  }\n\n  return NO;\n}\n\n- (void)repository:(GCRepository*)repository didFinishTransferWithURL:(NSURL*)url success:(BOOL)success {\n  [self.model didFinishTransferWithURL:url\n                               success:success\n                              onResult:^(AuthenticationWindowControllerModel* model) {\n                                if (model) {\n                                  [KeychainAccessor savePlainTextAuthenticationToKeychainForURL:url username:model.name password:model.password];\n                                }\n                              }];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/AboutWindowController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"15400\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"15400\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"AboutWindowController\">\n            <connections>\n                <outlet property=\"copyrightTextField\" destination=\"c4g-uo-jg9\" id=\"FZS-IB-oJd\"/>\n                <outlet property=\"versionTextField\" destination=\"HZC-36-Grr\" id=\"gj4-PL-6SR\"/>\n                <outlet property=\"window\" destination=\"sHg-NM-pfN\" id=\"nBk-tW-g4b\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"About GitUp\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" frameAutosaveName=\"about\" animationBehavior=\"default\" id=\"sHg-NM-pfN\" userLabel=\"About\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"612\" y=\"242\" width=\"276\" height=\"363\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"900\"/>\n            <view key=\"contentView\" id=\"3kP-0M-wu8\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"276\" height=\"363\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"AhE-7e-PYf\">\n                        <rect key=\"frame\" x=\"74\" y=\"204\" width=\"128\" height=\"128\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" imageScaling=\"proportionallyDown\" image=\"NSApplicationIcon\" id=\"T7r-iI-qVo\"/>\n                    </imageView>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IyS-21-Jxl\">\n                        <rect key=\"frame\" x=\"86\" y=\"166\" width=\"104\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"GitUp\" id=\"T8z-Ql-Nrv\">\n                            <font key=\"font\" metaFont=\"systemBold\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"d1d-Xw-Yrr\">\n                        <rect key=\"frame\" x=\"18\" y=\"83\" width=\"240\" height=\"28\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" id=\"J3Y-wR-GFR\">\n                            <font key=\"font\" metaFont=\"label\" size=\"11\"/>\n                            <string key=\"title\">Concept &amp; code by Pierre-Olivier Latour\nUI design by Wayne Fan</string>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"c4g-uo-jg9\">\n                        <rect key=\"frame\" x=\"26\" y=\"40\" width=\"224\" height=\"28\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;COPYRIGHT&gt;\" id=\"LbE-vT-Rsk\">\n                            <font key=\"font\" metaFont=\"label\" size=\"11\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mcm-my-4sq\">\n                        <rect key=\"frame\" x=\"18\" y=\"20\" width=\"240\" height=\"12\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"libgit2 is Copyright © the libgit2 contributors\" id=\"tT8-4H-E7b\">\n                            <font key=\"font\" metaFont=\"menu\" size=\"9\"/>\n                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HZC-36-Grr\">\n                        <rect key=\"frame\" x=\"38\" y=\"141\" width=\"200\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;VERSION&gt;\" id=\"yn6-7n-hPc\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                </subviews>\n            </view>\n            <point key=\"canvasLocation\" x=\"114\" y=\"441.5\"/>\n        </window>\n    </objects>\n    <resources>\n        <image name=\"NSApplicationIcon\" width=\"32\" height=\"32\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/AuthenticationWindowController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"15505\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"15505\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"AuthenticationWindowController\">\n            <connections>\n                <outlet property=\"nameTextField\" destination=\"ohd-U6-h7y\" id=\"RJD-hd-qBs\"/>\n                <outlet property=\"passwordTextField\" destination=\"Uio-D2-Dnt\" id=\"plJ-BR-jXn\"/>\n                <outlet property=\"urlTextField\" destination=\"fBP-U8-T31\" id=\"uhd-fy-1nP\"/>\n                <outlet property=\"window\" destination=\"mcM-YD-UN9\" id=\"RDX-mt-18q\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"Authentication Required\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"mcM-YD-UN9\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\"/>\n            <rect key=\"contentRect\" x=\"131\" y=\"158\" width=\"428\" height=\"217\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"900\"/>\n            <view key=\"contentView\" id=\"kmS-EA-B5p\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"428\" height=\"217\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ThD-Fn-TeP\">\n                        <rect key=\"frame\" x=\"18\" y=\"191\" width=\"79\" height=\"16\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"75\" id=\"JaB-NP-gVy\"/>\n                        </constraints>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"URL:\" id=\"Lcy-ii-uLo\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fBP-U8-T31\">\n                        <rect key=\"frame\" x=\"101\" y=\"175\" width=\"309\" height=\"32\"/>\n                        <textFieldCell key=\"cell\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" id=\"uaH-eN-Phr\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"title\">&lt;URL&gt;\n&lt;URL&gt;</string>\n                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"52z-zf-JFB\">\n                        <rect key=\"frame\" x=\"18\" y=\"147\" width=\"79\" height=\"16\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Username:\" id=\"a3l-9j-hXd\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ohd-U6-h7y\">\n                        <rect key=\"frame\" x=\"103\" y=\"144\" width=\"305\" height=\"21\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" id=\"y3C-g4-ftz\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"NTA-z4-ARY\">\n                        <rect key=\"frame\" x=\"18\" y=\"116\" width=\"79\" height=\"16\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Password:\" id=\"z1m-H0-8Xh\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <secureTextField verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Uio-D2-Dnt\">\n                        <rect key=\"frame\" x=\"103\" y=\"113\" width=\"305\" height=\"21\"/>\n                        <secureTextFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"LyY-DF-jhs\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <allowedInputSourceLocales>\n                                <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                            </allowedInputSourceLocales>\n                        </secureTextFieldCell>\n                    </secureTextField>\n                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GxU-Nd-4Zh\">\n                        <rect key=\"frame\" x=\"101\" y=\"63\" width=\"309\" height=\"42\"/>\n                        <textFieldCell key=\"cell\" controlSize=\"small\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" id=\"Q8S-4w-Dwm\">\n                            <font key=\"font\" metaFont=\"toolTip\"/>\n                            <string key=\"title\">If authenticating with GitHub and two-factor authentication is enabled on your account, be sure to use a personal access token instead of your password.</string>\n                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <button verticalHuggingPriority=\"750\" tag=\"1\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ps9-6a-vUW\">\n                        <rect key=\"frame\" x=\"319\" y=\"13\" width=\"95\" height=\"32\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Continue\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"3tB-eD-9dS\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"dismissModal:\" target=\"-2\" id=\"KzM-Wg-sWZ\"/>\n                        </connections>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"r7V-iS-tJ3\">\n                        <rect key=\"frame\" x=\"237\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"C2F-M3-Mzn\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"dismissModal:\" target=\"-2\" id=\"G9B-tY-xIX\"/>\n                        </connections>\n                    </button>\n                </subviews>\n                <constraints>\n                    <constraint firstItem=\"52z-zf-JFB\" firstAttribute=\"trailing\" secondItem=\"ThD-Fn-TeP\" secondAttribute=\"trailing\" id=\"1fQ-JG-sRo\"/>\n                    <constraint firstItem=\"r7V-iS-tJ3\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"kmS-EA-B5p\" secondAttribute=\"leading\" constant=\"243\" id=\"7LS-p8-hGT\"/>\n                    <constraint firstItem=\"52z-zf-JFB\" firstAttribute=\"centerY\" secondItem=\"ohd-U6-h7y\" secondAttribute=\"centerY\" id=\"9WT-pp-PKM\"/>\n                    <constraint firstAttribute=\"trailing\" secondItem=\"fBP-U8-T31\" secondAttribute=\"trailing\" constant=\"20\" id=\"H5D-hi-wR6\"/>\n                    <constraint firstItem=\"NTA-z4-ARY\" firstAttribute=\"leading\" secondItem=\"52z-zf-JFB\" secondAttribute=\"leading\" id=\"L5M-Ts-X80\"/>\n                    <constraint firstAttribute=\"trailing\" secondItem=\"ps9-6a-vUW\" secondAttribute=\"trailing\" constant=\"20\" id=\"MvB-Dd-dZa\"/>\n                    <constraint firstItem=\"NTA-z4-ARY\" firstAttribute=\"centerY\" secondItem=\"Uio-D2-Dnt\" secondAttribute=\"centerY\" id=\"Nx2-ra-ddz\"/>\n                    <constraint firstItem=\"fBP-U8-T31\" firstAttribute=\"top\" secondItem=\"ThD-Fn-TeP\" secondAttribute=\"top\" id=\"Qdp-TW-8o9\"/>\n                    <constraint firstItem=\"ohd-U6-h7y\" firstAttribute=\"trailing\" secondItem=\"fBP-U8-T31\" secondAttribute=\"trailing\" id=\"ReI-h2-8Oh\"/>\n                    <constraint firstItem=\"r7V-iS-tJ3\" firstAttribute=\"bottom\" secondItem=\"ps9-6a-vUW\" secondAttribute=\"bottom\" id=\"S9k-HU-ykp\"/>\n                    <constraint firstItem=\"ohd-U6-h7y\" firstAttribute=\"top\" secondItem=\"fBP-U8-T31\" secondAttribute=\"bottom\" constant=\"10\" id=\"TeH-PB-lGj\"/>\n                    <constraint firstItem=\"Uio-D2-Dnt\" firstAttribute=\"leading\" secondItem=\"NTA-z4-ARY\" secondAttribute=\"trailing\" constant=\"8\" id=\"UHu-e4-W6p\"/>\n                    <constraint firstItem=\"ps9-6a-vUW\" firstAttribute=\"top\" relation=\"greaterThanOrEqual\" secondItem=\"GxU-Nd-4Zh\" secondAttribute=\"bottom\" constant=\"22\" id=\"XeL-8C-fNP\"/>\n                    <constraint firstItem=\"ps9-6a-vUW\" firstAttribute=\"leading\" secondItem=\"r7V-iS-tJ3\" secondAttribute=\"trailing\" constant=\"12\" id=\"ZIy-Mf-nEe\"/>\n                    <constraint firstItem=\"Uio-D2-Dnt\" firstAttribute=\"trailing\" secondItem=\"ohd-U6-h7y\" secondAttribute=\"trailing\" id=\"aHA-nc-EXZ\"/>\n                    <constraint firstItem=\"52z-zf-JFB\" firstAttribute=\"leading\" secondItem=\"ThD-Fn-TeP\" secondAttribute=\"leading\" id=\"dBv-QD-9Hl\"/>\n                    <constraint firstItem=\"Uio-D2-Dnt\" firstAttribute=\"top\" secondItem=\"ohd-U6-h7y\" secondAttribute=\"bottom\" constant=\"10\" id=\"dik-Kf-koJ\"/>\n                    <constraint firstItem=\"ThD-Fn-TeP\" firstAttribute=\"leading\" secondItem=\"kmS-EA-B5p\" secondAttribute=\"leading\" constant=\"20\" id=\"e25-Fi-WbW\"/>\n                    <constraint firstItem=\"NTA-z4-ARY\" firstAttribute=\"trailing\" secondItem=\"52z-zf-JFB\" secondAttribute=\"trailing\" id=\"loS-zV-9Qp\"/>\n                    <constraint firstItem=\"GxU-Nd-4Zh\" firstAttribute=\"leading\" secondItem=\"Uio-D2-Dnt\" secondAttribute=\"leading\" id=\"pmv-EN-tOB\"/>\n                    <constraint firstItem=\"fBP-U8-T31\" firstAttribute=\"leading\" secondItem=\"ThD-Fn-TeP\" secondAttribute=\"trailing\" constant=\"8\" id=\"rOe-XH-vxn\"/>\n                    <constraint firstAttribute=\"bottom\" secondItem=\"ps9-6a-vUW\" secondAttribute=\"bottom\" constant=\"20\" id=\"rxh-Qt-PRR\"/>\n                    <constraint firstItem=\"fBP-U8-T31\" firstAttribute=\"top\" secondItem=\"kmS-EA-B5p\" secondAttribute=\"top\" constant=\"10\" id=\"snL-AI-Y63\"/>\n                    <constraint firstItem=\"ohd-U6-h7y\" firstAttribute=\"leading\" secondItem=\"52z-zf-JFB\" secondAttribute=\"trailing\" constant=\"8\" id=\"t8a-th-NIR\"/>\n                    <constraint firstItem=\"GxU-Nd-4Zh\" firstAttribute=\"trailing\" secondItem=\"Uio-D2-Dnt\" secondAttribute=\"trailing\" id=\"wXA-pm-okH\"/>\n                    <constraint firstItem=\"GxU-Nd-4Zh\" firstAttribute=\"top\" secondItem=\"Uio-D2-Dnt\" secondAttribute=\"bottom\" constant=\"8\" id=\"yPb-0v-w4v\"/>\n                </constraints>\n            </view>\n            <point key=\"canvasLocation\" x=\"-670\" y=\"567.5\"/>\n        </window>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/CloneWindowController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"15505\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"15505\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"CloneWindowController\">\n            <connections>\n                <outlet property=\"cloneRecursiveButton\" destination=\"V3d-LG-L26\" id=\"vch-Du-0Ut\"/>\n                <outlet property=\"urlTextField\" destination=\"KgY-GJ-dY0\" id=\"I60-hS-oGZ\"/>\n                <outlet property=\"window\" destination=\"6SP-eN-0Kv\" id=\"fVR-oh-RCy\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"Clone Repository\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"6SP-eN-0Kv\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\"/>\n            <rect key=\"contentRect\" x=\"131\" y=\"158\" width=\"502\" height=\"167\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"900\"/>\n            <view key=\"contentView\" id=\"Msr-na-RRU\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"502\" height=\"167\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <textField verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"KgY-GJ-dY0\">\n                        <rect key=\"frame\" x=\"104\" y=\"126\" width=\"378\" height=\"21\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" id=\"QXH-ou-KWa\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"G2f-8q-uIU\">\n                        <rect key=\"frame\" x=\"18\" y=\"128\" width=\"80\" height=\"16\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"76\" id=\"g1r-5V-s1c\"/>\n                        </constraints>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Clone URL:\" id=\"1V7-UU-BXR\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MbF-lm-4Vc\">\n                        <rect key=\"frame\" x=\"102\" y=\"89\" width=\"382\" height=\"28\"/>\n                        <textFieldCell key=\"cell\" controlSize=\"small\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Enter a Git URL like &quot;https://example.com/repositories/example.git&quot; or &quot;git@example.com:repositories/example.git&quot;.\" id=\"EFG-t2-f6c\">\n                            <font key=\"font\" metaFont=\"menu\" size=\"11\"/>\n                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"V3d-LG-L26\">\n                        <rect key=\"frame\" x=\"102\" y=\"65\" width=\"382\" height=\"18\"/>\n                        <buttonCell key=\"cell\" type=\"check\" title=\"Initialize and clone submodules automatically\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"X4y-Bk-C2g\">\n                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" tag=\"1\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"nd4-Yg-sbG\">\n                        <rect key=\"frame\" x=\"393\" y=\"13\" width=\"95\" height=\"32\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Continue\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"dOr-TN-HvE\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"dismissModal:\" target=\"-2\" id=\"N95-8T-ucZ\"/>\n                        </connections>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"KUn-Ed-CKb\">\n                        <rect key=\"frame\" x=\"311\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"CCL-f6-Fl1\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"dismissModal:\" target=\"-2\" id=\"VN4-Yo-oOY\"/>\n                        </connections>\n                    </button>\n                </subviews>\n                <constraints>\n                    <constraint firstItem=\"MbF-lm-4Vc\" firstAttribute=\"trailing\" secondItem=\"KgY-GJ-dY0\" secondAttribute=\"trailing\" id=\"3aH-hK-7rh\"/>\n                    <constraint firstAttribute=\"bottom\" secondItem=\"nd4-Yg-sbG\" secondAttribute=\"bottom\" constant=\"20\" id=\"BwP-fi-rEQ\"/>\n                    <constraint firstItem=\"V3d-LG-L26\" firstAttribute=\"top\" secondItem=\"MbF-lm-4Vc\" secondAttribute=\"bottom\" constant=\"8\" id=\"MTn-iZ-HcU\"/>\n                    <constraint firstItem=\"KgY-GJ-dY0\" firstAttribute=\"leading\" secondItem=\"G2f-8q-uIU\" secondAttribute=\"trailing\" constant=\"8\" id=\"MWQ-Rr-rs4\"/>\n                    <constraint firstItem=\"G2f-8q-uIU\" firstAttribute=\"leading\" secondItem=\"Msr-na-RRU\" secondAttribute=\"leading\" constant=\"20\" id=\"P15-QE-Bpj\"/>\n                    <constraint firstItem=\"KgY-GJ-dY0\" firstAttribute=\"top\" secondItem=\"Msr-na-RRU\" secondAttribute=\"top\" constant=\"20\" id=\"Plk-9h-K5n\"/>\n                    <constraint firstAttribute=\"trailing\" secondItem=\"KgY-GJ-dY0\" secondAttribute=\"trailing\" constant=\"20\" id=\"QzC-o0-bsr\"/>\n                    <constraint firstItem=\"KUn-Ed-CKb\" firstAttribute=\"bottom\" secondItem=\"nd4-Yg-sbG\" secondAttribute=\"bottom\" id=\"Uec-Og-jSY\"/>\n                    <constraint firstItem=\"MbF-lm-4Vc\" firstAttribute=\"leading\" secondItem=\"V3d-LG-L26\" secondAttribute=\"leading\" id=\"ejl-9K-FCA\"/>\n                    <constraint firstItem=\"MbF-lm-4Vc\" firstAttribute=\"leading\" secondItem=\"KgY-GJ-dY0\" secondAttribute=\"leading\" id=\"fG8-lm-FTO\"/>\n                    <constraint firstAttribute=\"trailing\" secondItem=\"nd4-Yg-sbG\" secondAttribute=\"trailing\" constant=\"20\" id=\"iZz-yh-1rZ\"/>\n                    <constraint firstItem=\"MbF-lm-4Vc\" firstAttribute=\"trailing\" secondItem=\"V3d-LG-L26\" secondAttribute=\"trailing\" id=\"jcm-bJ-Bwg\"/>\n                    <constraint firstItem=\"MbF-lm-4Vc\" firstAttribute=\"top\" secondItem=\"KgY-GJ-dY0\" secondAttribute=\"bottom\" constant=\"9\" id=\"m7p-hb-G6H\"/>\n                    <constraint firstItem=\"G2f-8q-uIU\" firstAttribute=\"top\" secondItem=\"Msr-na-RRU\" secondAttribute=\"top\" constant=\"23\" id=\"pcC-Md-ozG\"/>\n                    <constraint firstItem=\"nd4-Yg-sbG\" firstAttribute=\"top\" relation=\"greaterThanOrEqual\" secondItem=\"V3d-LG-L26\" secondAttribute=\"bottom\" constant=\"26\" id=\"rQD-4k-Nyl\"/>\n                    <constraint firstItem=\"nd4-Yg-sbG\" firstAttribute=\"leading\" secondItem=\"KUn-Ed-CKb\" secondAttribute=\"trailing\" constant=\"12\" id=\"vHR-O2-LaP\"/>\n                    <constraint firstItem=\"KUn-Ed-CKb\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"Msr-na-RRU\" secondAttribute=\"leading\" constant=\"317\" id=\"zcO-UE-N8u\"/>\n                </constraints>\n            </view>\n            <point key=\"canvasLocation\" x=\"-716\" y=\"966.5\"/>\n        </window>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/Document.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"NSView safe area layout guides\" minToolsVersion=\"12.0\"/>\n        <capability name=\"Search Toolbar Item\" minToolsVersion=\"12.0\" minSystemVersion=\"11.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"Document\">\n            <connections>\n                <outlet property=\"ancestorsControllerView\" destination=\"4Od-pU-cwC\" id=\"rKi-Xf-O9z\"/>\n                <outlet property=\"ancestorsView\" destination=\"Yj4-Sl-8P8\" id=\"uNx-x0-4Kg\"/>\n                <outlet property=\"contentView\" destination=\"gIp-Ho-8D9\" id=\"BwU-UD-4Je\"/>\n                <outlet property=\"helpContinueButton\" destination=\"W0y-nq-maS\" id=\"tO3-ij-oea\"/>\n                <outlet property=\"helpDismissButton\" destination=\"etB-ce-0PB\" id=\"iMt-Ga-rPE\"/>\n                <outlet property=\"helpOpenButton\" destination=\"cA6-Ht-e3Z\" id=\"GWb-T7-oe0\"/>\n                <outlet property=\"helpTextField\" destination=\"hTO-MR-3XZ\" id=\"x1j-wP-MJw\"/>\n                <outlet property=\"helpView\" destination=\"Zjf-1c-7Wk\" id=\"V4P-Tc-ofE\"/>\n                <outlet property=\"helpViewToTabViewConstraint\" destination=\"LZl-0T-rYC\" id=\"5vI-sR-jdT\"/>\n                <outlet property=\"hiddenWarningView\" destination=\"4K3-nK-X1O\" id=\"und-Lh-TE7\"/>\n                <outlet property=\"indexDiffsButton\" destination=\"8hM-1U-Hhn\" id=\"iu9-J3-Muk\"/>\n                <outlet property=\"infoTextField1\" destination=\"cbp-6y-jbG\" id=\"kuD-M7-wz2\"/>\n                <outlet property=\"infoTextField2\" destination=\"eEA-mo-3Uq\" id=\"ZP6-ud-zOc\"/>\n                <outlet property=\"mainTabView\" destination=\"8LX-i4-RBG\" id=\"CKf-8g-erJ\"/>\n                <outlet property=\"mainWindow\" destination=\"xOd-HO-29H\" id=\"YqJ-z0-2YQ\"/>\n                <outlet property=\"mapContainerView\" destination=\"KTA-UW-CKM\" id=\"8sn-Xg-Vjz\"/>\n                <outlet property=\"mapControllerView\" destination=\"399-bl-TuH\" id=\"cZj-7k-l5R\"/>\n                <outlet property=\"mapView\" destination=\"p3q-Tt-mR8\" id=\"Qym-7v-5bw\"/>\n                <outlet property=\"navigateItem\" destination=\"58P-Wj-mtV\" id=\"ut5-LV-aow\"/>\n                <outlet property=\"progressIndicator\" destination=\"O1S-WY-ikg\" id=\"eav-iG-Df8\"/>\n                <outlet property=\"progressTextField\" destination=\"dry-dR-hSD\" id=\"0Tw-VD-BhT\"/>\n                <outlet property=\"pullButton\" destination=\"bVm-VR-ap5\" id=\"h55-bA-dHp\"/>\n                <outlet property=\"pushButton\" destination=\"NjF-Aj-I7c\" id=\"pzT-u7-qea\"/>\n                <outlet property=\"reflogControllerView\" destination=\"2JB-mH-NdY\" id=\"3uE-5Z-JPg\"/>\n                <outlet property=\"reflogView\" destination=\"YxI-YX-ua5\" id=\"w2Z-Ou-fp7\"/>\n                <outlet property=\"resetView\" destination=\"ifo-84-dTf\" id=\"F3A-tv-xGv\"/>\n                <outlet property=\"resolveControllerView\" destination=\"bDk-TS-Gf5\" id=\"bIe-Mb-EDC\"/>\n                <outlet property=\"resolveView\" destination=\"tZK-eu-LXR\" id=\"0qK-cM-Lal\"/>\n                <outlet property=\"rewriteControllerView\" destination=\"7Lz-mJ-yDg\" id=\"ZB9-NY-Bnk\"/>\n                <outlet property=\"rewriteView\" destination=\"fB6-Pq-Qmr\" id=\"FJ8-XM-D2D\"/>\n                <outlet property=\"searchControllerView\" destination=\"Km9-N7-i9Z\" id=\"Yea-TO-TcK\"/>\n                <outlet property=\"searchItem\" destination=\"VAf-r7-CLn\" id=\"yZw-VY-id9\"/>\n                <outlet property=\"searchView\" destination=\"hXJ-hB-b5A\" id=\"6L9-1X-Isb\"/>\n                <outlet property=\"settingsWindow\" destination=\"F4T-LV-HgR\" id=\"wPd-kE-nqf\"/>\n                <outlet property=\"showMenu\" destination=\"FSB-Wc-ZmT\" id=\"62B-DC-buw\"/>\n                <outlet property=\"snapshotsControllerView\" destination=\"8Xd-B3-3KB\" id=\"804-E4-bq6\"/>\n                <outlet property=\"snapshotsItem\" destination=\"Aag-2S-fcP\" id=\"Z5V-jN-VtJ\"/>\n                <outlet property=\"snapshotsView\" destination=\"pJT-Vs-rsm\" id=\"UB6-5y-QWa\"/>\n                <outlet property=\"splitControllerView\" destination=\"wgF-0m-Wo6\" id=\"Ngg-aG-4sM\"/>\n                <outlet property=\"splitView\" destination=\"Nqd-ay-ONW\" id=\"SfE-RZ-0DR\"/>\n                <outlet property=\"tagsControllerView\" destination=\"TAF-BH-RXj\" id=\"wI7-ld-6W1\"/>\n                <outlet property=\"tagsView\" destination=\"eCQ-B2-xMC\" id=\"63O-8R-I74\"/>\n                <outlet property=\"titleItem\" destination=\"zlv-TE-Jdd\" id=\"J1W-Bl-ndm\"/>\n                <outlet property=\"untrackedButton\" destination=\"YLR-fG-kTA\" id=\"NW6-fp-q4i\"/>\n                <outlet property=\"window\" destination=\"xOd-HO-29H\" id=\"JIz-fz-R2o\"/>\n            </connections>\n        </customObject>\n        <window title=\"Window\" separatorStyle=\"line\" allowsToolTipsWhenApplicationIsInactive=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" toolbarStyle=\"unified\" id=\"xOd-HO-29H\" userLabel=\"Main Window\" customClass=\"GIWindow\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\" fullSizeContentView=\"YES\"/>\n            <windowCollectionBehavior key=\"collectionBehavior\" fullScreenPrimary=\"YES\"/>\n            <windowPositionMask key=\"initialPositionMask\" leftStrut=\"YES\" rightStrut=\"YES\" topStrut=\"YES\" bottomStrut=\"YES\"/>\n            <rect key=\"contentRect\" x=\"253\" y=\"204\" width=\"800\" height=\"550\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1728\" height=\"1084\"/>\n            <value key=\"minSize\" type=\"size\" width=\"800\" height=\"490\"/>\n            <view key=\"contentView\" ambiguous=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gIp-Ho-8D9\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"800\" height=\"754\"/>\n                <subviews>\n                    <customView hidden=\"YES\" appearanceType=\"aqua\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Zjf-1c-7Wk\" customClass=\"GIColorView\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"600\" width=\"800\" height=\"50\"/>\n                        <subviews>\n                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hTO-MR-3XZ\">\n                                <rect key=\"frame\" x=\"8\" y=\"8\" width=\"818\" height=\"31\"/>\n                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;HELP&gt;\" id=\"de5-iD-6RU\">\n                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                    <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                            </textField>\n                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"W0y-nq-maS\">\n                                <rect key=\"frame\" x=\"710\" y=\"16\" width=\"80\" height=\"17\"/>\n                                <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Continue\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"3Bn-bb-IAI\">\n                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                </buttonCell>\n                                <connections>\n                                    <action selector=\"dismissHelp:\" target=\"-2\" id=\"6SE-nM-Khn\"/>\n                                </connections>\n                            </button>\n                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"etB-ce-0PB\">\n                                <rect key=\"frame\" x=\"632\" y=\"16\" width=\"60\" height=\"17\"/>\n                                <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Got It!\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"U4W-Zh-R2B\">\n                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                </buttonCell>\n                                <connections>\n                                    <action selector=\"dismissHelp:\" target=\"-2\" id=\"ZhX-zZ-Pix\"/>\n                                </connections>\n                            </button>\n                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cA6-Ht-e3Z\">\n                                <rect key=\"frame\" x=\"700\" y=\"16\" width=\"90\" height=\"17\"/>\n                                <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Learn More…\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"ux0-pi-0du\">\n                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                </buttonCell>\n                                <connections>\n                                    <action selector=\"openHelp:\" target=\"-2\" id=\"9JT-bA-cXq\"/>\n                                </connections>\n                            </button>\n                        </subviews>\n                        <constraints>\n                            <constraint firstAttribute=\"height\" constant=\"50\" id=\"1ZV-wN-Zgh\"/>\n                        </constraints>\n                        <userDefinedRuntimeAttributes>\n                            <userDefinedRuntimeAttribute type=\"color\" keyPath=\"backgroundColor\">\n                                <color key=\"value\" red=\"1\" green=\"0.87657738947652419\" blue=\"0.0\" alpha=\"1\" colorSpace=\"calibratedRGB\"/>\n                            </userDefinedRuntimeAttribute>\n                        </userDefinedRuntimeAttributes>\n                    </customView>\n                    <tabView drawsBackground=\"NO\" allowsTruncatedLabels=\"NO\" type=\"noTabsNoBorder\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8LX-i4-RBG\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"800\" height=\"600\"/>\n                        <constraints>\n                            <constraint firstAttribute=\"width\" priority=\"250\" constant=\"800\" id=\"7gD-o5-c9F\"/>\n                            <constraint firstAttribute=\"height\" priority=\"250\" constant=\"600\" id=\"vve-j1-woa\"/>\n                        </constraints>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <tabViewItems>\n                            <tabViewItem label=\"Map\" identifier=\"map\" id=\"N3S-ZN-7aj\">\n                                <view key=\"view\" id=\"KTA-UW-CKM\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"800\" height=\"600\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"QuickView\" identifier=\"quickview\" id=\"lZZ-Pi-ftk\">\n                                <view key=\"view\" id=\"oyq-DX-wtX\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Diff\" identifier=\"diff\" id=\"Zf6-Lu-ykr\">\n                                <view key=\"view\" id=\"WCe-UI-kea\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Rewrite\" identifier=\"rewrite\" id=\"2rq-Yc-FZg\" userLabel=\"Rewrite\">\n                                <view key=\"view\" id=\"0Om-In-WCJ\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Split\" identifier=\"split\" id=\"Ix2-LZ-4Bu\" userLabel=\"Split\">\n                                <view key=\"view\" id=\"eld-gQ-vK9\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Resolve\" identifier=\"resolve\" id=\"GZi-Cj-7Lj\" userLabel=\"Resolve\">\n                                <view key=\"view\" id=\"qfF-Zh-xYt\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Commit\" identifier=\"commit\" id=\"nIS-m1-wSa\">\n                                <view key=\"view\" id=\"s88-QZ-O0i\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Stashes\" identifier=\"stashes\" id=\"2be-V6-QZz\">\n                                <view key=\"view\" id=\"t1Z-eK-4g6\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Config\" identifier=\"config\" id=\"UEe-IZ-19Z\">\n                                <view key=\"view\" id=\"mhf-LA-IQ4\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"531\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </view>\n                            </tabViewItem>\n                        </tabViewItems>\n                    </tabView>\n                </subviews>\n                <constraints>\n                    <constraint firstItem=\"87c-pF-02X\" firstAttribute=\"top\" secondItem=\"Zjf-1c-7Wk\" secondAttribute=\"top\" id=\"D2d-qL-deh\"/>\n                    <constraint firstItem=\"8LX-i4-RBG\" firstAttribute=\"trailing\" secondItem=\"87c-pF-02X\" secondAttribute=\"trailing\" id=\"GCZ-r5-980\"/>\n                    <constraint firstItem=\"8LX-i4-RBG\" firstAttribute=\"top\" secondItem=\"Zjf-1c-7Wk\" secondAttribute=\"bottom\" id=\"LZl-0T-rYC\"/>\n                    <constraint firstItem=\"Zjf-1c-7Wk\" firstAttribute=\"trailing\" secondItem=\"87c-pF-02X\" secondAttribute=\"trailing\" id=\"M7t-0p-HEb\"/>\n                    <constraint firstItem=\"8LX-i4-RBG\" firstAttribute=\"top\" secondItem=\"gIp-Ho-8D9\" secondAttribute=\"top\" priority=\"999\" id=\"anM-q1-lzo\"/>\n                    <constraint firstItem=\"8LX-i4-RBG\" firstAttribute=\"leading\" secondItem=\"87c-pF-02X\" secondAttribute=\"leading\" id=\"cyW-aG-PlQ\"/>\n                    <constraint firstItem=\"Zjf-1c-7Wk\" firstAttribute=\"leading\" secondItem=\"87c-pF-02X\" secondAttribute=\"leading\" id=\"fLu-3d-miy\"/>\n                    <constraint firstItem=\"8LX-i4-RBG\" firstAttribute=\"bottom\" secondItem=\"87c-pF-02X\" secondAttribute=\"bottom\" id=\"seL-8w-yF7\"/>\n                </constraints>\n                <viewLayoutGuide key=\"safeArea\" id=\"87c-pF-02X\"/>\n                <viewLayoutGuide key=\"layoutMargins\" id=\"TtR-dW-CBE\"/>\n            </view>\n            <toolbar key=\"toolbar\" implicitIdentifier=\"42EAA8AB-C985-49E8-81F5-068903B112A9\" centeredItem=\"zlv-TE-Jdd\" autosavesConfiguration=\"NO\" allowsUserCustomization=\"NO\" showsBaselineSeparator=\"NO\" displayMode=\"iconOnly\" sizeMode=\"regular\" id=\"eX2-uf-7aH\">\n                <allowedToolbarItems>\n                    <toolbarItem implicitItemIdentifier=\"A7C9AC28-1BD7-43C3-82DD-6C906C0A7379\" label=\"Navigation\" paletteLabel=\"Navigation\" sizingBehavior=\"auto\" navigational=\"YES\" id=\"58P-Wj-mtV\" userLabel=\"Mode &amp; Navigation\" customClass=\"GICustomToolbarItem\">\n                        <nil key=\"toolTip\"/>\n                        <segmentedControl key=\"view\" verticalHuggingPriority=\"750\" id=\"wKS-3A-2NK\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"14\" width=\"98\" height=\"24\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"texturedSquare\" trackingMode=\"selectOne\" id=\"mJw-K9-m9N\">\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <segments>\n                                    <segment width=\"32\"/>\n                                    <segment width=\"32\" selected=\"YES\" tag=\"1\"/>\n                                    <segment width=\"32\">\n                                        <nil key=\"label\"/>\n                                    </segment>\n                                </segments>\n                            </segmentedCell>\n                        </segmentedControl>\n                        <connections>\n                            <outlet property=\"primaryControl\" destination=\"wKS-3A-2NK\" id=\"NU2-5H-gku\"/>\n                        </connections>\n                    </toolbarItem>\n                    <toolbarItem implicitItemIdentifier=\"89ED100D-5049-4D73-A50D-A28F816E23FC\" label=\"Repository and Info\" paletteLabel=\"Repository and Info\" tag=\"-1\" visibilityPriority=\"1001\" sizingBehavior=\"auto\" id=\"zlv-TE-Jdd\" customClass=\"GICustomToolbarItem\">\n                        <nil key=\"toolTip\"/>\n                        <customView key=\"view\" placeholderIntrinsicWidth=\"infinite\" placeholderIntrinsicHeight=\"32\" id=\"Brh-if-1sc\" customClass=\"ToolbarItemWrapperView\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"14\" width=\"320\" height=\"32\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"zUE-5V-emO\">\n                                    <rect key=\"frame\" x=\"108\" y=\"15\" width=\"105\" height=\"16\"/>\n                                    <textFieldCell key=\"cell\" lineBreakMode=\"truncatingMiddle\" alignment=\"center\" title=\"&lt;REPOSITORY&gt;\" usesSingleLineMode=\"YES\" id=\"0Qx-h1-gQz\">\n                                        <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"khT-H7-lYh\">\n                                    <rect key=\"frame\" x=\"139\" y=\"2\" width=\"42\" height=\"11\"/>\n                                    <textFieldCell key=\"cell\" controlSize=\"mini\" lineBreakMode=\"truncatingTail\" alignment=\"center\" title=\"&lt;INFO&gt;\" usesSingleLineMode=\"YES\" id=\"hfx-R0-kYj\">\n                                        <font key=\"font\" metaFont=\"miniSystem\"/>\n                                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                            </subviews>\n                            <constraints>\n                                <constraint firstItem=\"zUE-5V-emO\" firstAttribute=\"centerX\" secondItem=\"Brh-if-1sc\" secondAttribute=\"centerX\" id=\"HcV-vM-bUk\"/>\n                                <constraint firstAttribute=\"bottom\" secondItem=\"khT-H7-lYh\" secondAttribute=\"bottom\" constant=\"2\" id=\"IB8-la-hwt\"/>\n                                <constraint firstItem=\"zUE-5V-emO\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"Brh-if-1sc\" secondAttribute=\"leading\" id=\"d87-Ss-Rz0\"/>\n                                <constraint firstItem=\"khT-H7-lYh\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"Brh-if-1sc\" secondAttribute=\"leading\" id=\"eyI-1z-g62\"/>\n                                <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"320\" id=\"fpk-8r-jKO\"/>\n                                <constraint firstItem=\"zUE-5V-emO\" firstAttribute=\"top\" secondItem=\"Brh-if-1sc\" secondAttribute=\"top\" constant=\"1\" id=\"m9Y-yz-SwX\"/>\n                                <constraint firstItem=\"khT-H7-lYh\" firstAttribute=\"top\" secondItem=\"zUE-5V-emO\" secondAttribute=\"bottom\" constant=\"2\" id=\"rFg-iN-UjD\"/>\n                                <constraint firstItem=\"khT-H7-lYh\" firstAttribute=\"centerX\" secondItem=\"Brh-if-1sc\" secondAttribute=\"centerX\" id=\"yEO-OG-Kk7\"/>\n                            </constraints>\n                        </customView>\n                        <connections>\n                            <outlet property=\"primaryControl\" destination=\"zUE-5V-emO\" id=\"wXM-8p-SMb\"/>\n                            <outlet property=\"secondaryControl\" destination=\"khT-H7-lYh\" id=\"3YC-ek-EN6\"/>\n                        </connections>\n                    </toolbarItem>\n                    <toolbarItem implicitItemIdentifier=\"B5339F67-DADA-4EB4-8EBA-79AA8C91CC9C\" label=\"Snapshots\" paletteLabel=\"Snapshots\" toolTip=\"Snapshots pane\" image=\"clock.arrow.circlepath\" catalog=\"system\" sizingBehavior=\"auto\" id=\"Aag-2S-fcP\" customClass=\"GICustomToolbarItem\">\n                        <button key=\"view\" verticalHuggingPriority=\"750\" id=\"9B3-Yw-IMy\">\n                            <rect key=\"frame\" x=\"18\" y=\"14\" width=\"28\" height=\"23\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <buttonCell key=\"cell\" type=\"roundTextured\" bezelStyle=\"texturedRounded\" image=\"clock.arrow.circlepath\" catalog=\"system\" imagePosition=\"overlaps\" alignment=\"center\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"e0W-3F-oLF\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\" changeBackground=\"YES\" changeGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                            </buttonCell>\n                        </button>\n                        <connections>\n                            <action selector=\"toggleSnapshots:\" target=\"-2\" id=\"4j5-51-HOG\"/>\n                        </connections>\n                    </toolbarItem>\n                    <searchToolbarItem implicitItemIdentifier=\"878782B0-E4BB-4A0F-9A42-C7EE99D6FB54\" label=\"Search\" paletteLabel=\"Search\" visibilityPriority=\"1001\" id=\"VAf-r7-CLn\">\n                        <nil key=\"toolTip\"/>\n                        <searchField key=\"view\" toolTip=\"Search repository\" focusRingType=\"none\" verticalHuggingPriority=\"750\" id=\"gxd-dx-ngX\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"180\" height=\"21\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <searchFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" usesSingleLineMode=\"YES\" bezelStyle=\"round\" sendsSearchStringImmediately=\"YES\" id=\"K1S-by-vXb\">\n                                <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </searchFieldCell>\n                            <connections>\n                                <outlet property=\"delegate\" destination=\"-2\" id=\"5fT-LJ-07H\"/>\n                            </connections>\n                        </searchField>\n                        <connections>\n                            <action selector=\"performSearch:\" target=\"-2\" id=\"I4P-wB-O5J\"/>\n                        </connections>\n                    </searchToolbarItem>\n                </allowedToolbarItems>\n                <defaultToolbarItems/>\n                <connections>\n                    <outlet property=\"delegate\" destination=\"-2\" id=\"YNn-Pj-uPM\"/>\n                </connections>\n            </toolbar>\n            <point key=\"canvasLocation\" x=\"289\" y=\"167.5\"/>\n        </window>\n        <customView id=\"p3q-Tt-mR8\" userLabel=\"Map View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"518\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <stackView distribution=\"fill\" orientation=\"vertical\" alignment=\"centerX\" spacing=\"0.0\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MvB-cn-FBN\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"518\"/>\n                    <subviews>\n                        <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"399-bl-TuH\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"64\" width=\"1000\" height=\"454\"/>\n                        </customView>\n                        <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IaZ-fk-GdA\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"64\"/>\n                            <subviews>\n                                <stackView distribution=\"fill\" orientation=\"vertical\" alignment=\"centerX\" spacing=\"0.0\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Yrx-de-LnD\">\n                                    <rect key=\"frame\" x=\"500\" y=\"32\" width=\"0.0\" height=\"0.0\"/>\n                                    <subviews>\n                                        <textField hidden=\"YES\" focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"dry-dR-hSD\">\n                                            <rect key=\"frame\" x=\"-2\" y=\"-14\" width=\"243\" height=\"14\"/>\n                                            <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"Remote operation in progress - Please wait…\" id=\"vXh-uB-Jji\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <progressIndicator hidden=\"YES\" wantsLayer=\"YES\" maxValue=\"100\" indeterminate=\"YES\" style=\"bar\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"O1S-WY-ikg\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"-20\" width=\"244\" height=\"20\"/>\n                                            <constraints>\n                                                <constraint firstAttribute=\"width\" constant=\"244\" id=\"jq5-rC-cHy\"/>\n                                            </constraints>\n                                        </progressIndicator>\n                                    </subviews>\n                                    <visibilityPriorities>\n                                        <integer value=\"1000\"/>\n                                        <integer value=\"1000\"/>\n                                    </visibilityPriorities>\n                                    <customSpacing>\n                                        <real value=\"3.4028234663852886e+38\"/>\n                                        <real value=\"3.4028234663852886e+38\"/>\n                                    </customSpacing>\n                                </stackView>\n                                <stackView clipsToBounds=\"YES\" distribution=\"fill\" orientation=\"vertical\" alignment=\"centerX\" spacing=\"2\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" horizontalClippingResistancePriority=\"250\" horizontalCompressionResistancePriority=\"250\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"LOP-Hf-0MK\">\n                                    <rect key=\"frame\" x=\"459\" y=\"17\" width=\"82\" height=\"30\"/>\n                                    <subviews>\n                                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cbp-6y-jbG\">\n                                            <rect key=\"frame\" x=\"-1\" y=\"16\" width=\"84\" height=\"14\"/>\n                                            <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;INFO LINE 1&gt;\" id=\"1X5-xy-mOw\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eEA-mo-3Uq\">\n                                            <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"86\" height=\"14\"/>\n                                            <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;INFO LINE 2&gt;\" id=\"ecG-9J-PlG\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                    <visibilityPriorities>\n                                        <integer value=\"1000\"/>\n                                        <integer value=\"1000\"/>\n                                    </visibilityPriorities>\n                                    <customSpacing>\n                                        <real value=\"3.4028234663852886e+38\"/>\n                                        <real value=\"3.4028234663852886e+38\"/>\n                                    </customSpacing>\n                                </stackView>\n                                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GSD-DO-UjT\">\n                                    <rect key=\"frame\" x=\"912\" y=\"12\" width=\"76\" height=\"24\"/>\n                                    <subviews>\n                                        <button toolTip=\"Pull current branch from upstream\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bVm-VR-ap5\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"34\" height=\"24\"/>\n                                            <buttonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" image=\"icon_action_fetch\" imagePosition=\"only\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"SFq-Wx-Us0\">\n                                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"pullCurrentBranch:\" target=\"-1\" id=\"Dna-1c-lER\"/>\n                                            </connections>\n                                        </button>\n                                        <button toolTip=\"Push current branch to upstream\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"NjF-Aj-I7c\">\n                                            <rect key=\"frame\" x=\"42\" y=\"0.0\" width=\"34\" height=\"24\"/>\n                                            <buttonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" image=\"icon_action_push\" imagePosition=\"only\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"dhk-Ry-6pb\">\n                                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"pushCurrentBranch:\" target=\"-1\" id=\"wQB-NO-NyT\"/>\n                                            </connections>\n                                        </button>\n                                    </subviews>\n                                    <visibilityPriorities>\n                                        <integer value=\"1000\"/>\n                                        <integer value=\"1000\"/>\n                                    </visibilityPriorities>\n                                    <customSpacing>\n                                        <real value=\"3.4028234663852886e+38\"/>\n                                        <real value=\"3.4028234663852886e+38\"/>\n                                    </customSpacing>\n                                </stackView>\n                                <popUpButton translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Fov-GV-gD7\">\n                                    <rect key=\"frame\" x=\"12\" y=\"12\" width=\"81\" height=\"40\"/>\n                                    <popUpButtonCell key=\"cell\" type=\"push\" title=\"Show\" bezelStyle=\"rounded\" alignment=\"center\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" pullsDown=\"YES\" preferredEdge=\"maxY\" selectedItem=\"9kl-kD-1vf\" id=\"6Tc-ix-fh5\">\n                                        <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"message\"/>\n                                        <menu key=\"menu\" id=\"FSB-Wc-ZmT\">\n                                            <items>\n                                                <menuItem title=\"Show\" state=\"on\" hidden=\"YES\" id=\"hR8-Mf-qwD\"/>\n                                                <menuItem title=\"Virtual Branch Tips\" keyEquivalent=\"V\" id=\"Ne2-cw-7dM\">\n                                                    <connections>\n                                                        <action selector=\"toggleVirtualTips:\" target=\"-1\" id=\"VdB-uU-KY2\"/>\n                                                    </connections>\n                                                </menuItem>\n                                                <menuItem isSeparatorItem=\"YES\" id=\"ZM1-jB-Cla\"/>\n                                                <menuItem title=\"Stale Branch Tips\" keyEquivalent=\"S\" id=\"9kl-kD-1vf\">\n                                                    <connections>\n                                                        <action selector=\"toggleStaleBranchTips:\" target=\"-1\" id=\"9l6-AJ-yMA\"/>\n                                                    </connections>\n                                                </menuItem>\n                                                <menuItem title=\"Remote Branch Tips\" keyEquivalent=\"R\" id=\"lwE-wt-slg\">\n                                                    <connections>\n                                                        <action selector=\"toggleRemoteBranchTips:\" target=\"-1\" id=\"rbo-WC-D3F\"/>\n                                                    </connections>\n                                                </menuItem>\n                                                <menuItem title=\"Orphan Tag Tips\" keyEquivalent=\"G\" id=\"jgE-eH-KgC\">\n                                                    <connections>\n                                                        <action selector=\"toggleTagTips:\" target=\"-1\" id=\"9mX-3h-FSH\"/>\n                                                    </connections>\n                                                </menuItem>\n                                                <menuItem isSeparatorItem=\"YES\" id=\"ExJ-2u-axw\"/>\n                                                <menuItem title=\"Tag Labels\" id=\"eWe-k0-e2Y\">\n                                                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                    <connections>\n                                                        <action selector=\"toggleTagLabels:\" target=\"-1\" id=\"2n7-KR-2iv\"/>\n                                                    </connections>\n                                                </menuItem>\n                                                <menuItem title=\"Branch Labels\" id=\"wv4-ee-Aqr\">\n                                                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                    <connections>\n                                                        <action selector=\"toggleBranchLabels:\" target=\"-1\" id=\"s3N-LZ-gn3\"/>\n                                                    </connections>\n                                                </menuItem>\n                                            </items>\n                                        </menu>\n                                    </popUpButtonCell>\n                                </popUpButton>\n                            </subviews>\n                            <constraints>\n                                <constraint firstItem=\"Yrx-de-LnD\" firstAttribute=\"centerY\" secondItem=\"IaZ-fk-GdA\" secondAttribute=\"centerY\" id=\"1bj-eS-g0a\"/>\n                                <constraint firstItem=\"GSD-DO-UjT\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"LOP-Hf-0MK\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"4cq-HH-JyZ\"/>\n                                <constraint firstAttribute=\"bottom\" secondItem=\"GSD-DO-UjT\" secondAttribute=\"bottom\" constant=\"12\" id=\"DR4-b2-cgA\"/>\n                                <constraint firstItem=\"LOP-Hf-0MK\" firstAttribute=\"centerX\" secondItem=\"IaZ-fk-GdA\" secondAttribute=\"centerX\" id=\"EgW-Rw-Aa1\"/>\n                                <constraint firstItem=\"Fov-GV-gD7\" firstAttribute=\"top\" secondItem=\"IaZ-fk-GdA\" secondAttribute=\"top\" constant=\"12\" id=\"Ehk-gc-D9z\"/>\n                                <constraint firstItem=\"LOP-Hf-0MK\" firstAttribute=\"centerY\" secondItem=\"IaZ-fk-GdA\" secondAttribute=\"centerY\" id=\"e6o-ju-q07\"/>\n                                <constraint firstItem=\"Yrx-de-LnD\" firstAttribute=\"centerX\" secondItem=\"IaZ-fk-GdA\" secondAttribute=\"centerX\" id=\"l3Z-aa-hHY\"/>\n                                <constraint firstItem=\"Fov-GV-gD7\" firstAttribute=\"leading\" secondItem=\"IaZ-fk-GdA\" secondAttribute=\"leading\" constant=\"12\" id=\"qJ0-yV-sCF\"/>\n                                <constraint firstAttribute=\"bottom\" secondItem=\"Fov-GV-gD7\" secondAttribute=\"bottom\" constant=\"12\" id=\"s5t-tH-kFU\"/>\n                                <constraint firstItem=\"LOP-Hf-0MK\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"Fov-GV-gD7\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"tdm-th-cum\"/>\n                                <constraint firstAttribute=\"trailing\" secondItem=\"GSD-DO-UjT\" secondAttribute=\"trailing\" constant=\"12\" id=\"uTK-CI-JzU\"/>\n                            </constraints>\n                        </customView>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n                <customView hidden=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4K3-nK-X1O\">\n                    <rect key=\"frame\" x=\"389\" y=\"71\" width=\"223\" height=\"44\"/>\n                    <subviews>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"O4P-2Y-hlm\">\n                            <rect key=\"frame\" x=\"8\" y=\"6\" width=\"207\" height=\"32\"/>\n                            <textFieldCell key=\"cell\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" id=\"xrs-OY-P88\">\n                                <font key=\"font\" metaFont=\"systemBold\"/>\n                                <string key=\"title\">Search result hidden from map\nAdjust settings in Show menu</string>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                    </subviews>\n                    <constraints>\n                        <constraint firstAttribute=\"bottom\" secondItem=\"O4P-2Y-hlm\" secondAttribute=\"bottom\" constant=\"6\" id=\"5pi-bJ-u5h\"/>\n                        <constraint firstAttribute=\"trailing\" secondItem=\"O4P-2Y-hlm\" secondAttribute=\"trailing\" constant=\"10\" id=\"P5b-7o-ku7\"/>\n                        <constraint firstItem=\"O4P-2Y-hlm\" firstAttribute=\"leading\" secondItem=\"4K3-nK-X1O\" secondAttribute=\"leading\" constant=\"10\" id=\"VSH-Lu-TjL\"/>\n                        <constraint firstItem=\"O4P-2Y-hlm\" firstAttribute=\"top\" secondItem=\"4K3-nK-X1O\" secondAttribute=\"top\" constant=\"6\" id=\"nCB-af-wwY\"/>\n                    </constraints>\n                </customView>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"trailing\" secondItem=\"MvB-cn-FBN\" secondAttribute=\"trailing\" id=\"61E-Q5-vrI\"/>\n                <constraint firstItem=\"MvB-cn-FBN\" firstAttribute=\"top\" secondItem=\"p3q-Tt-mR8\" secondAttribute=\"top\" id=\"8LT-TL-Pt9\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"MvB-cn-FBN\" secondAttribute=\"bottom\" id=\"VaL-ty-Afq\"/>\n                <constraint firstItem=\"MvB-cn-FBN\" firstAttribute=\"leading\" secondItem=\"p3q-Tt-mR8\" secondAttribute=\"leading\" id=\"bqv-EZ-tcP\"/>\n                <constraint firstItem=\"4K3-nK-X1O\" firstAttribute=\"centerX\" secondItem=\"p3q-Tt-mR8\" secondAttribute=\"centerX\" id=\"q9v-tL-e4h\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"4K3-nK-X1O\" secondAttribute=\"bottom\" constant=\"71\" id=\"znk-hL-5Cn\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"545\" y=\"834\"/>\n        </customView>\n        <customView id=\"fB6-Pq-Qmr\" userLabel=\"Rewrite View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7Lz-mJ-yDg\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                </customView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"394\" y=\"1989\"/>\n        </customView>\n        <customView id=\"Nqd-ay-ONW\" userLabel=\"Split View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"wgF-0m-Wo6\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                </customView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"262\" y=\"1407\"/>\n        </customView>\n        <customView id=\"tZK-eu-LXR\" userLabel=\"Resolve View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bDk-TS-Gf5\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                </customView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"262\" y=\"1407\"/>\n        </customView>\n        <customView id=\"eCQ-B2-xMC\" userLabel=\"Tags View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"262\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"TAF-BH-RXj\">\n                    <rect key=\"frame\" x=\"2\" y=\"41\" width=\"260\" height=\"459\"/>\n                    <constraints>\n                        <constraint firstAttribute=\"width\" constant=\"260\" id=\"fLS-0C-Tie\"/>\n                    </constraints>\n                </customView>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bvP-z4-n9x\">\n                    <rect key=\"frame\" x=\"87\" y=\"8\" width=\"88\" height=\"24\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Done\" bezelStyle=\"rounded\" alignment=\"center\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"QV1-K4-raG\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <constraints>\n                        <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"88\" id=\"xcO-n2-huX\"/>\n                    </constraints>\n                    <connections>\n                        <action selector=\"toggleTags:\" target=\"-2\" id=\"eYy-3x-jbj\"/>\n                    </connections>\n                </button>\n                <box horizontalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gbn-Tx-Mt6\">\n                    <rect key=\"frame\" x=\"-1\" y=\"0.0\" width=\"5\" height=\"500\"/>\n                </box>\n                <box verticalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IFu-ad-WoU\">\n                    <rect key=\"frame\" x=\"1\" y=\"38\" width=\"261\" height=\"5\"/>\n                </box>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"bvP-z4-n9x\" firstAttribute=\"top\" secondItem=\"IFu-ad-WoU\" secondAttribute=\"bottom\" constant=\"8\" id=\"1Yf-OP-R6o\"/>\n                <constraint firstItem=\"TAF-BH-RXj\" firstAttribute=\"leading\" secondItem=\"gbn-Tx-Mt6\" secondAttribute=\"trailing\" id=\"1yx-qH-lCy\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"IFu-ad-WoU\" secondAttribute=\"trailing\" id=\"J5o-zt-sWe\"/>\n                <constraint firstItem=\"bvP-z4-n9x\" firstAttribute=\"centerX\" secondItem=\"eCQ-B2-xMC\" secondAttribute=\"centerX\" id=\"Kwr-d8-kwD\"/>\n                <constraint firstItem=\"gbn-Tx-Mt6\" firstAttribute=\"top\" secondItem=\"eCQ-B2-xMC\" secondAttribute=\"top\" id=\"OZ3-sP-h7u\"/>\n                <constraint firstItem=\"IFu-ad-WoU\" firstAttribute=\"leading\" secondItem=\"eCQ-B2-xMC\" secondAttribute=\"leading\" constant=\"1\" id=\"Qfc-dH-EiK\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"bvP-z4-n9x\" secondAttribute=\"bottom\" constant=\"8\" id=\"Www-hP-W40\"/>\n                <constraint firstItem=\"IFu-ad-WoU\" firstAttribute=\"top\" secondItem=\"TAF-BH-RXj\" secondAttribute=\"bottom\" id=\"dU1-t3-1Hr\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"gbn-Tx-Mt6\" secondAttribute=\"bottom\" id=\"hFO-5X-njp\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"TAF-BH-RXj\" secondAttribute=\"trailing\" id=\"ogz-v2-np3\"/>\n                <constraint firstItem=\"TAF-BH-RXj\" firstAttribute=\"top\" secondItem=\"eCQ-B2-xMC\" secondAttribute=\"top\" id=\"wUf-rg-VCI\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"-192.5\" y=\"650\"/>\n        </customView>\n        <customView id=\"Yj4-Sl-8P8\" userLabel=\"Ancestors View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"261\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4Od-pU-cwC\">\n                    <rect key=\"frame\" x=\"1\" y=\"41\" width=\"260\" height=\"459\"/>\n                </customView>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"6Ni-2N-Ux7\">\n                    <rect key=\"frame\" x=\"87\" y=\"8\" width=\"88\" height=\"24\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Done\" bezelStyle=\"rounded\" alignment=\"center\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"G4D-l9-GAh\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <constraints>\n                        <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"88\" id=\"Zrj-yE-9Nh\"/>\n                    </constraints>\n                    <connections>\n                        <action selector=\"toggleAncestors:\" target=\"-2\" id=\"cRN-q3-d3h\"/>\n                    </connections>\n                </button>\n                <box horizontalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"i5t-9R-reS\">\n                    <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"5\" height=\"500\"/>\n                </box>\n                <box verticalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lo1-B5-5pc\">\n                    <rect key=\"frame\" x=\"1\" y=\"38\" width=\"260\" height=\"5\"/>\n                </box>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"bottom\" secondItem=\"i5t-9R-reS\" secondAttribute=\"bottom\" id=\"08e-ud-XoU\"/>\n                <constraint firstItem=\"i5t-9R-reS\" firstAttribute=\"top\" secondItem=\"Yj4-Sl-8P8\" secondAttribute=\"top\" id=\"17E-Yc-ykJ\"/>\n                <constraint firstItem=\"lo1-B5-5pc\" firstAttribute=\"leading\" secondItem=\"Yj4-Sl-8P8\" secondAttribute=\"leading\" constant=\"1\" id=\"68y-Dq-5of\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"6Ni-2N-Ux7\" secondAttribute=\"bottom\" constant=\"8\" id=\"6X2-ja-KdS\"/>\n                <constraint firstItem=\"lo1-B5-5pc\" firstAttribute=\"top\" secondItem=\"4Od-pU-cwC\" secondAttribute=\"bottom\" id=\"9Cd-rc-ddU\"/>\n                <constraint firstItem=\"4Od-pU-cwC\" firstAttribute=\"top\" secondItem=\"Yj4-Sl-8P8\" secondAttribute=\"top\" id=\"9rq-NU-81I\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"lo1-B5-5pc\" secondAttribute=\"trailing\" id=\"JzC-RQ-pZI\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"4Od-pU-cwC\" secondAttribute=\"trailing\" id=\"LaF-h1-es8\"/>\n                <constraint firstItem=\"4Od-pU-cwC\" firstAttribute=\"leading\" secondItem=\"i5t-9R-reS\" secondAttribute=\"trailing\" id=\"Usw-84-2Bs\"/>\n                <constraint firstItem=\"6Ni-2N-Ux7\" firstAttribute=\"centerX\" secondItem=\"Yj4-Sl-8P8\" secondAttribute=\"centerX\" id=\"bB7-0W-muz\"/>\n                <constraint firstItem=\"i5t-9R-reS\" firstAttribute=\"leading\" secondItem=\"Yj4-Sl-8P8\" secondAttribute=\"leading\" id=\"gjG-2j-dHm\"/>\n                <constraint firstItem=\"6Ni-2N-Ux7\" firstAttribute=\"top\" secondItem=\"lo1-B5-5pc\" secondAttribute=\"bottom\" constant=\"8\" id=\"rRh-Bf-daK\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"124.5\" y=\"650\"/>\n        </customView>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customView id=\"pJT-Vs-rsm\" userLabel=\"Snapshots View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"261\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView id=\"8Xd-B3-3KB\">\n                    <rect key=\"frame\" x=\"1\" y=\"41\" width=\"260\" height=\"459\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                </customView>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"rOD-bh-eJs\">\n                    <rect key=\"frame\" x=\"87\" y=\"8\" width=\"88\" height=\"24\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Done\" bezelStyle=\"rounded\" alignment=\"center\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"mu6-y9-mEl\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <constraints>\n                        <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"88\" id=\"KAx-Dd-2fa\"/>\n                    </constraints>\n                    <connections>\n                        <action selector=\"toggleSnapshots:\" target=\"-2\" id=\"xEj-EP-Pu2\"/>\n                    </connections>\n                </button>\n                <box horizontalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"BaD-c2-XFv\">\n                    <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"5\" height=\"500\"/>\n                </box>\n                <box verticalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Usm-DE-GWR\">\n                    <rect key=\"frame\" x=\"1\" y=\"38\" width=\"260\" height=\"5\"/>\n                </box>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"BaD-c2-XFv\" firstAttribute=\"top\" secondItem=\"pJT-Vs-rsm\" secondAttribute=\"top\" id=\"9Z0-jG-S1Y\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"rOD-bh-eJs\" secondAttribute=\"bottom\" constant=\"8\" id=\"Kef-A5-dmC\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"Usm-DE-GWR\" secondAttribute=\"trailing\" id=\"Nr7-rh-mHc\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"BaD-c2-XFv\" secondAttribute=\"bottom\" id=\"OKP-CZ-VT6\"/>\n                <constraint firstItem=\"BaD-c2-XFv\" firstAttribute=\"leading\" secondItem=\"pJT-Vs-rsm\" secondAttribute=\"leading\" id=\"Stt-SV-dVv\"/>\n                <constraint firstItem=\"rOD-bh-eJs\" firstAttribute=\"centerX\" secondItem=\"pJT-Vs-rsm\" secondAttribute=\"centerX\" id=\"cQi-wF-BIq\"/>\n                <constraint firstItem=\"rOD-bh-eJs\" firstAttribute=\"top\" secondItem=\"Usm-DE-GWR\" secondAttribute=\"bottom\" constant=\"8\" id=\"eYx-Rn-O7K\"/>\n                <constraint firstItem=\"Usm-DE-GWR\" firstAttribute=\"leading\" secondItem=\"pJT-Vs-rsm\" secondAttribute=\"leading\" constant=\"1\" id=\"f13-aO-zM1\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"-526\" y=\"650\"/>\n        </customView>\n        <customView id=\"YxI-YX-ua5\" userLabel=\"Reflog View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"261\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2JB-mH-NdY\">\n                    <rect key=\"frame\" x=\"1\" y=\"41\" width=\"260\" height=\"459\"/>\n                </customView>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"l3F-kQ-tsG\">\n                    <rect key=\"frame\" x=\"87\" y=\"8\" width=\"88\" height=\"24\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Done\" bezelStyle=\"rounded\" alignment=\"center\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Vb7-E2-czh\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <constraints>\n                        <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"88\" id=\"H8g-IS-EEQ\"/>\n                    </constraints>\n                    <connections>\n                        <action selector=\"toggleReflog:\" target=\"-2\" id=\"iy2-Rc-GIe\"/>\n                    </connections>\n                </button>\n                <box horizontalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2s4-Rc-CUd\">\n                    <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"5\" height=\"500\"/>\n                </box>\n                <box verticalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eoI-52-5pL\">\n                    <rect key=\"frame\" x=\"1\" y=\"38\" width=\"260\" height=\"5\"/>\n                </box>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"2s4-Rc-CUd\" firstAttribute=\"leading\" secondItem=\"YxI-YX-ua5\" secondAttribute=\"leading\" id=\"08P-2c-H25\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"eoI-52-5pL\" secondAttribute=\"trailing\" id=\"IQR-KZ-IkY\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"2JB-mH-NdY\" secondAttribute=\"trailing\" id=\"L0Y-va-9wJ\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"l3F-kQ-tsG\" secondAttribute=\"bottom\" constant=\"8\" id=\"MsP-7V-ELs\"/>\n                <constraint firstItem=\"eoI-52-5pL\" firstAttribute=\"leading\" secondItem=\"YxI-YX-ua5\" secondAttribute=\"leading\" constant=\"1\" id=\"OIZ-ud-PDW\"/>\n                <constraint firstItem=\"l3F-kQ-tsG\" firstAttribute=\"centerX\" secondItem=\"YxI-YX-ua5\" secondAttribute=\"centerX\" id=\"URq-OA-DLx\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"2s4-Rc-CUd\" secondAttribute=\"bottom\" id=\"kKk-Yk-Spl\"/>\n                <constraint firstItem=\"eoI-52-5pL\" firstAttribute=\"top\" secondItem=\"2JB-mH-NdY\" secondAttribute=\"bottom\" id=\"lJ5-or-mf7\"/>\n                <constraint firstItem=\"2JB-mH-NdY\" firstAttribute=\"top\" secondItem=\"YxI-YX-ua5\" secondAttribute=\"top\" id=\"stK-Qz-mmF\"/>\n                <constraint firstItem=\"2JB-mH-NdY\" firstAttribute=\"leading\" secondItem=\"2s4-Rc-CUd\" secondAttribute=\"trailing\" id=\"ti3-Kl-Jtc\"/>\n                <constraint firstItem=\"l3F-kQ-tsG\" firstAttribute=\"top\" secondItem=\"eoI-52-5pL\" secondAttribute=\"bottom\" constant=\"8\" id=\"wVS-6D-GSe\"/>\n                <constraint firstItem=\"2s4-Rc-CUd\" firstAttribute=\"top\" secondItem=\"YxI-YX-ua5\" secondAttribute=\"top\" id=\"wdE-WR-jll\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"-399.5\" y=\"730\"/>\n        </customView>\n        <customView id=\"hXJ-hB-b5A\" userLabel=\"Search View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"261\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Km9-N7-i9Z\">\n                    <rect key=\"frame\" x=\"1\" y=\"0.0\" width=\"260\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" heightSizable=\"YES\"/>\n                </customView>\n                <box horizontalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kME-Ra-FDy\">\n                    <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"5\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" heightSizable=\"YES\"/>\n                </box>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"-512.5\" y=\"1242\"/>\n        </customView>\n        <customView id=\"ifo-84-dTf\" userLabel=\"Reset View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"192\" height=\"16\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YLR-fG-kTA\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"192\" height=\"16\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Also remove untracked files\" bezelStyle=\"regularSquare\" imagePosition=\"left\" inset=\"2\" id=\"Idb-eZ-oUH\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                </button>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"trailing\" secondItem=\"YLR-fG-kTA\" secondAttribute=\"trailing\" id=\"8cg-2R-xci\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"YLR-fG-kTA\" secondAttribute=\"bottom\" id=\"KHD-gE-rP8\"/>\n                <constraint firstItem=\"YLR-fG-kTA\" firstAttribute=\"top\" secondItem=\"ifo-84-dTf\" secondAttribute=\"top\" id=\"N0G-GI-wNu\"/>\n                <constraint firstItem=\"YLR-fG-kTA\" firstAttribute=\"leading\" secondItem=\"ifo-84-dTf\" secondAttribute=\"leading\" id=\"qpT-Z2-YPV\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"960\" y=\"1327.5\"/>\n        </customView>\n        <window allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"F4T-LV-HgR\" userLabel=\"Settings Window\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\"/>\n            <windowPositionMask key=\"initialPositionMask\" leftStrut=\"YES\" rightStrut=\"YES\" topStrut=\"YES\" bottomStrut=\"YES\"/>\n            <rect key=\"contentRect\" x=\"131\" y=\"158\" width=\"450\" height=\"173\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1728\" height=\"1084\"/>\n            <view key=\"contentView\" id=\"l4r-5b-f0f\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"450\" height=\"173\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8hM-1U-Hhn\">\n                        <rect key=\"frame\" x=\"18\" y=\"137\" width=\"176\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"check\" title=\"Search commit diffs\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"c4v-9V-r5S\">\n                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                    </button>\n                    <textField focusRingType=\"none\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"de2-Yp-MzO\">\n                        <rect key=\"frame\" x=\"36\" y=\"61\" width=\"396\" height=\"70\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                        <textFieldCell key=\"cell\" controlSize=\"small\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" id=\"nO1-ig-ikF\">\n                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                            <string key=\"title\">GitUp searches only commit messages by default, but it can also search their diffs (text files only). This requires indexing the diffs of all commits in the repository which can take a long time.\nChanging this setting requires re-indexing the repository, which will automatically happen the next time you open it in GitUp.</string>\n                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"dhw-0H-Z8w\">\n                        <rect key=\"frame\" x=\"324\" y=\"13\" width=\"112\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Done\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Vef-Dr-NCs\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"saveSettings:\" target=\"-2\" id=\"MdZ-tL-9Tm\"/>\n                        </connections>\n                    </button>\n                </subviews>\n            </view>\n            <point key=\"canvasLocation\" x=\"-124\" y=\"1286.5\"/>\n        </window>\n    </objects>\n    <resources>\n        <image name=\"clock.arrow.circlepath\" catalog=\"system\" width=\"16\" height=\"15\"/>\n        <image name=\"icon_action_fetch\" width=\"10\" height=\"14\"/>\n        <image name=\"icon_action_push\" width=\"10\" height=\"14\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"17506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"17506\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\"/>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"GitUp\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"GitUp\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About GitUp\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"showAboutPanel:\" target=\"Voe-Tx-rLC\" id=\"uMT-pN-nex\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Check for Updates…\" id=\"RvP-51-UEO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"checkForUpdates:\" target=\"Voe-Tx-rLC\" id=\"Bx2-39-dyN\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"gLG-bh-eJk\"/>\n                            <menuItem title=\"Install Command Line Tool…\" id=\"f9m-On-7Ly\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"installTool:\" target=\"Voe-Tx-rLC\" id=\"vFd-eA-ejg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"dst-2l-Azr\"/>\n                            <menuItem title=\"Preferences…\" keyEquivalent=\",\" id=\"smQ-Fd-MMe\">\n                                <connections>\n                                    <action selector=\"showPreferences:\" target=\"Voe-Tx-rLC\" id=\"9yT-OO-Nbb\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Reset Preferences\" alternate=\"YES\" keyEquivalent=\",\" id=\"dZm-6K-3kX\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"resetPreferences:\" target=\"Voe-Tx-rLC\" id=\"JwZ-bh-dSY\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide GitUp\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit GitUp\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"File\" id=\"F0U-Lj-vPf\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"File\" id=\"kzM-ng-sJN\">\n                        <items>\n                            <menuItem title=\"New…\" keyEquivalent=\"n\" id=\"0lt-Gn-H57\">\n                                <connections>\n                                    <action selector=\"newRepository:\" target=\"-1\" id=\"db3-9D-pmN\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Clone from URL…\" keyEquivalent=\"N\" id=\"JBt-n3-4qR\">\n                                <connections>\n                                    <action selector=\"cloneRepository:\" target=\"-1\" id=\"bkA-Xe-qM5\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"oKh-Tp-IyI\"/>\n                            <menuItem title=\"Open…\" keyEquivalent=\"o\" id=\"mjB-qo-eTe\">\n                                <connections>\n                                    <action selector=\"openDocument:\" target=\"-1\" id=\"FlH-np-HFe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Open Recent\" id=\"H69-uH-spF\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Open Recent\" systemMenu=\"recentDocuments\" id=\"YgH-RV-NQr\">\n                                    <items>\n                                        <menuItem title=\"Clear Menu\" id=\"uud-zh-9PI\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"clearRecentDocuments:\" target=\"-1\" id=\"zY0-Cq-Hc6\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"Y7C-L0-883\"/>\n                            <menuItem title=\"Close\" keyEquivalent=\"w\" id=\"mKu-98-YsN\">\n                                <connections>\n                                    <action selector=\"performClose:\" target=\"-1\" id=\"13n-o7-RDS\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Repository\" id=\"IeB-fo-e9u\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Repository\" id=\"01F-zn-dxL\">\n                        <items>\n                            <menuItem title=\"Search…\" keyEquivalent=\"f\" id=\"lth-Rr-wEh\">\n                                <connections>\n                                    <action selector=\"focusSearch:\" target=\"-1\" id=\"wfK-7B-jEI\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"qQz-Pc-UPf\"/>\n                            <menuItem title=\"Browse HEAD Ancestors…\" keyEquivalent=\"d\" id=\"6tA-ab-KI4\">\n                                <connections>\n                                    <action selector=\"toggleAncestors:\" target=\"-1\" id=\"4pv-4x-eNG\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Browse Tags…\" keyEquivalent=\"t\" id=\"E8v-6r-pcZ\">\n                                <connections>\n                                    <action selector=\"toggleTags:\" target=\"-1\" id=\"Tf8-RI-fhK\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Browse Snapshots…\" keyEquivalent=\"s\" id=\"9fv-PJ-Qoe\">\n                                <connections>\n                                    <action selector=\"toggleSnapshots:\" target=\"-1\" id=\"SQS-9R-rhi\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Browse Reflogs…\" keyEquivalent=\"r\" id=\"zIs-iq-Wdy\">\n                                <connections>\n                                    <action selector=\"toggleReflog:\" target=\"-1\" id=\"XbL-Rv-YX4\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"KDb-mH-ipb\"/>\n                            <menuItem title=\"Edit Git Configuration…\" keyEquivalent=\"c\" id=\"XYr-n2-fQb\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"editConfiguration:\" target=\"-1\" id=\"B43-hl-TNs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"nab-O2-9Gu\"/>\n                            <menuItem title=\"Reset to Checkout…\" keyEquivalent=\"r\" id=\"Fci-yP-3xA\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"resetHard:\" target=\"-1\" id=\"8Zh-UP-nFu\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"X6C-8X-2mS\"/>\n                            <menuItem title=\"Open Submodule…\" id=\"kGV-Xp-bvX\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Open Submodule…\" id=\"Er2-LJ-aKH\">\n                                    <items>\n                                        <menuItem title=\"Item\" id=\"ysw-cq-JDI\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                                <connections>\n                                    <action selector=\"openSubmoduleMenu:\" target=\"-1\" id=\"dQ5-s0-olJ\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"bk7-Le-0Rn\"/>\n                            <menuItem title=\"Open in Terminal…\" id=\"oLL-6T-jc5\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"openInTerminal:\" target=\"-1\" id=\"YJM-LA-kZX\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Open in Finder…\" id=\"NQb-m5-0rE\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"openInFinder:\" target=\"-1\" id=\"Sxv-HV-LPD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Open in Hosting Service…\" id=\"f0F-In-We8\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"openInHostingService:\" target=\"-1\" id=\"k0x-uV-YHs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4we-2z-Bs2\"/>\n                            <menuItem title=\"GitUp Settings…\" id=\"7kJ-UG-u1b\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"editSettings:\" target=\"-1\" id=\"eKw-Pa-s3l\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Remotes\" id=\"gYS-kV-JJ3\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Remotes\" id=\"vM0-6s-Dhl\">\n                        <items>\n                            <menuItem title=\"Fetch All Branches\" keyEquivalent=\"F\" id=\"dXI-oo-U5x\">\n                                <connections>\n                                    <action selector=\"fetchAllRemoteBranches:\" target=\"-1\" id=\"Hb3-9s-czk\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Check All Branches\" alternate=\"YES\" keyEquivalent=\"f\" id=\"BvD-QT-ga7\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"checkForChanges:\" target=\"-1\" id=\"P2O-oC-cy1\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Fetch All Tags\" keyEquivalent=\"T\" id=\"IS5-DF-rdU\">\n                                <connections>\n                                    <action selector=\"fetchAllRemoteTags:\" target=\"-1\" id=\"neP-P8-wnr\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Fetch and Prune All Tags\" alternate=\"YES\" keyEquivalent=\"t\" id=\"sBh-HC-lSN\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"fetchAndPruneAllRemoteTags:\" target=\"-1\" id=\"SkL-OA-5rC\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"0My-sc-aoR\"/>\n                            <menuItem title=\"Pull Current Branch\" keyEquivalent=\"p\" id=\"SAd-Of-qJk\">\n                                <connections>\n                                    <action selector=\"pullCurrentBranch:\" target=\"-1\" id=\"jwa-zo-piM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Push Current Branch\" keyEquivalent=\"P\" id=\"Bcb-3R-qZY\">\n                                <connections>\n                                    <action selector=\"pushCurrentBranch:\" target=\"-1\" id=\"eva-SW-zIe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"lof-CG-6Ri\"/>\n                            <menuItem title=\"Push All Branches…\" id=\"XAj-bb-A2L\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"pushAllLocalBranches:\" target=\"-1\" id=\"UiC-1i-Cl2\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Push All Tags…\" id=\"ugC-2m-5oa\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"pushAllTags:\" target=\"-1\" id=\"3Tv-hE-ttP\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"View\" id=\"BRC-nV-aDa\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"View\" id=\"g3q-9w-YbH\">\n                        <items>\n                            <menuItem title=\"Map\" keyEquivalent=\"1\" id=\"kBm-SD-Nvi\">\n                                <connections>\n                                    <action selector=\"switchMode:\" target=\"-1\" id=\"bWl-yS-LzY\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Commit\" tag=\"1\" keyEquivalent=\"2\" id=\"Kgd-uV-TNM\">\n                                <connections>\n                                    <action selector=\"switchMode:\" target=\"-1\" id=\"Kan-sp-8Sr\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Stashes\" tag=\"2\" keyEquivalent=\"3\" id=\"7hW-f7-DkC\">\n                                <connections>\n                                    <action selector=\"switchMode:\" target=\"-1\" id=\"6Ak-fk-95j\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"wBs-5b-oQz\"/>\n                            <menuItem title=\"Next\" tag=\"1\" hidden=\"YES\" keyEquivalent=\"\" allowsKeyEquivalentWhenHidden=\"YES\" id=\"8aW-fl-K6T\">\n                                <connections>\n                                    <action selector=\"selectNextCommit:\" target=\"-1\" id=\"AUr-da-Zp6\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Previous\" tag=\"2\" hidden=\"YES\" keyEquivalent=\"\" allowsKeyEquivalentWhenHidden=\"YES\" id=\"XLU-32-fu2\">\n                                <connections>\n                                    <action selector=\"selectPreviousCommit:\" target=\"-1\" id=\"O7Q-bR-X53\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" hidden=\"YES\" id=\"exI-ua-dYT\"/>\n                            <menuItem title=\"Enter Full Screen\" keyEquivalent=\"f\" id=\"AWl-Ry-evk\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"toggleFullScreen:\" target=\"-1\" id=\"tD5-o0-gGH\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"w3m-cZ-nT9\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"WBj-Hq-QYS\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Help\" systemMenu=\"help\" id=\"jEp-qa-5kg\">\n                        <items>\n                            <menuItem title=\"Documentation…\" id=\"Ke5-jK-SAM\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"viewWiki:\" target=\"Voe-Tx-rLC\" id=\"L5Z-NL-KtK\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Release Notes…\" id=\"aLm-Bn-jpX\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"viewReleaseNotes:\" target=\"Voe-Tx-rLC\" id=\"Glr-e4-eNM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Feedback and Bugs…\" id=\"fwj-0H-19c\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"viewIssues:\" target=\"Voe-Tx-rLC\" id=\"4xH-3m-JaQ\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"-710\" y=\"819\"/>\n        </menu>\n        <userDefaultsController representsSharedInstance=\"YES\" id=\"AR1-cq-KNa\"/>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/PreferencesWindowController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"19455\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"19455\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"PreferencesWindowController\">\n            <connections>\n                <outlet property=\"channelPopUpButton\" destination=\"7N4-S9-iWL\" id=\"ZE5-zH-V4k\"/>\n                <outlet property=\"preferencesTabView\" destination=\"anN-jw-l7x\" id=\"VJ1-CD-jM9\"/>\n                <outlet property=\"preferencesToolbar\" destination=\"YkS-ea-UXD\" id=\"N8M-Xp-b0O\"/>\n                <outlet property=\"themePopUpButton\" destination=\"aYx-qQ-zM6\" id=\"duj-t3-Dsj\"/>\n                <outlet property=\"window\" destination=\"3qV-q4-a6k\" id=\"2wo-fA-Ivf\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"GitUp Preferences\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" frameAutosaveName=\"preferences\" animationBehavior=\"default\" toolbarStyle=\"preference\" id=\"3qV-q4-a6k\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\"/>\n            <rect key=\"contentRect\" x=\"940\" y=\"240\" width=\"498\" height=\"500\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1536\" height=\"960\"/>\n            <view key=\"contentView\" ambiguous=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"uEJ-lO-PMl\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"498\" height=\"508\"/>\n                <userGuides>\n                    <userLayoutGuide location=\"138\" affinity=\"minX\"/>\n                    <userLayoutGuide location=\"559\" affinity=\"minY\"/>\n                </userGuides>\n                <subviews>\n                    <tabView type=\"noTabsNoBorder\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"anN-jw-l7x\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"498\" height=\"508\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <tabViewItems>\n                            <tabViewItem label=\"{500, 480}\" identifier=\"general\" id=\"M8N-WY-xpP\">\n                                <view key=\"view\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZJf-t1-iGB\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"498\" height=\"508\"/>\n                                    <subviews>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"EBQ-WH-0CZ\">\n                                            <rect key=\"frame\" x=\"51\" y=\"480\" width=\"81\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Appearance:\" id=\"KoF-W9-skh\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2WQ-hK-j2t\">\n                                            <rect key=\"frame\" x=\"137\" y=\"479\" width=\"166\" height=\"18\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Show welcome window\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"x90-KD-anh\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.ShowWelcomeWindow\" id=\"Ti3-g3-Btf\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </button>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IO8-Wx-DRo\">\n                                            <rect key=\"frame\" x=\"32\" y=\"448\" width=\"100\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Diff Generation:\" id=\"cxW-C3-fIQ\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <matrix verticalHuggingPriority=\"750\" allowsEmptySelection=\"NO\" autorecalculatesCellSize=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"zwg-99-t9E\">\n                                            <rect key=\"frame\" x=\"137\" y=\"406\" width=\"271\" height=\"58\"/>\n                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <size key=\"cellSize\" width=\"271\" height=\"18\"/>\n                                            <size key=\"intercellSpacing\" width=\"4\" height=\"2\"/>\n                                            <buttonCell key=\"prototype\" type=\"radio\" title=\"Radio\" imagePosition=\"left\" alignment=\"left\" inset=\"2\" id=\"aRV-8E-fbW\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <cells>\n                                                <column>\n                                                    <buttonCell type=\"radio\" title=\"Include all whitespace\" imagePosition=\"left\" alignment=\"left\" state=\"on\" inset=\"2\" id=\"XNc-qG-Kdm\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <buttonCell type=\"radio\" title=\"Ignore changes in amount of whitespace\" imagePosition=\"left\" alignment=\"left\" tag=\"1\" inset=\"2\" id=\"xK7-0C-Sk2\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <buttonCell type=\"radio\" title=\"Ignore all whitespace\" imagePosition=\"left\" alignment=\"left\" tag=\"2\" inset=\"2\" id=\"yJh-3Z-PBX\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                </column>\n                                            </cells>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"selectedTag\" keyPath=\"values.DiffWhitespaceMode\" id=\"ObM-rX-4kL\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </matrix>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YZU-dx-gjr\">\n                                            <rect key=\"frame\" x=\"51\" y=\"374\" width=\"81\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Diffs Layout:\" id=\"B0V-bN-usw\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <matrix verticalHuggingPriority=\"750\" allowsEmptySelection=\"NO\" autorecalculatesCellSize=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pP3-w2-KOs\">\n                                            <rect key=\"frame\" x=\"137\" y=\"332\" width=\"280\" height=\"58\"/>\n                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <size key=\"cellSize\" width=\"280\" height=\"18\"/>\n                                            <size key=\"intercellSpacing\" width=\"4\" height=\"2\"/>\n                                            <buttonCell key=\"prototype\" type=\"radio\" title=\"Radio\" imagePosition=\"left\" alignment=\"left\" inset=\"2\" id=\"S4o-dE-O99\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <cells>\n                                                <column>\n                                                    <buttonCell type=\"radio\" title=\"Automatically use Unified or Side-by-Side\" imagePosition=\"left\" alignment=\"left\" state=\"on\" inset=\"2\" id=\"nGb-E5-c6J\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <buttonCell type=\"radio\" title=\"Always use Unified\" imagePosition=\"left\" alignment=\"left\" tag=\"-1\" inset=\"2\" id=\"n2j-rM-ZmP\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <buttonCell type=\"radio\" title=\"Always use Side-by-Side\" imagePosition=\"left\" alignment=\"left\" tag=\"1\" inset=\"2\" id=\"cjL-Xv-AW0\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                </column>\n                                            </cells>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"selectedTag\" keyPath=\"values.GIDiffContentsViewController_DiffViewMode\" id=\"puq-Zi-nYn\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </matrix>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lyZ-cf-MT6\">\n                                            <rect key=\"frame\" x=\"70\" y=\"300\" width=\"62\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Commits:\" id=\"6J8-35-XZI\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"CQY-oC-oQ8\">\n                                            <rect key=\"frame\" x=\"137\" y=\"299\" width=\"132\" height=\"18\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Use Simple mode\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"rMb-zc-NF1\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.SimpleCommit\" id=\"ZTy-sO-lqh\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </button>\n                                        <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" preferredMaxLayoutWidth=\"355\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jee-vl-BUt\">\n                                            <rect key=\"frame\" x=\"137\" y=\"236\" width=\"353\" height=\"56\"/>\n                                            <textFieldCell key=\"cell\" controlSize=\"small\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" id=\"v99-tx-ohB\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <string key=\"title\">In \"Simple\" commit mode, GitUp unifies the working directory and index i.e. there is no staging area.\nYou must close and reopen any opened repositories in GitUp after changing this setting.</string>\n                                                <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mC1-sE-MTH\">\n                                            <rect key=\"frame\" x=\"30\" y=\"172\" width=\"102\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Message Editor:\" id=\"5Hr-DF-QKw\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <stackView distribution=\"fill\" orientation=\"vertical\" alignment=\"leading\" spacing=\"6\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fix-oz-Sj9\">\n                                            <rect key=\"frame\" x=\"139\" y=\"128\" width=\"257\" height=\"60\"/>\n                                            <subviews>\n                                                <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"T1B-3i-hRB\">\n                                                    <rect key=\"frame\" x=\"-2\" y=\"43\" width=\"180\" height=\"18\"/>\n                                                    <buttonCell key=\"cell\" type=\"check\" title=\"Show invisible characters\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"omy-Qf-vg9\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <connections>\n                                                        <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters\" id=\"50v-P6-D7W\">\n                                                            <dictionary key=\"options\">\n                                                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                                <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                            </dictionary>\n                                                        </binding>\n                                                    </connections>\n                                                </button>\n                                                <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"SyF-mN-F3q\">\n                                                    <rect key=\"frame\" x=\"-2\" y=\"21\" width=\"259\" height=\"18\"/>\n                                                    <buttonCell key=\"cell\" type=\"check\" title=\"Show margins at 50 and 72 characters\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"AMR-Ne-0QY\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <connections>\n                                                        <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.GICommitMessageViewUserDefaultKey_ShowMargins\" id=\"7qn-Df-X8a\">\n                                                            <dictionary key=\"options\">\n                                                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                                <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                            </dictionary>\n                                                        </binding>\n                                                    </connections>\n                                                </button>\n                                                <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ag6-rb-zPH\">\n                                                    <rect key=\"frame\" x=\"-2\" y=\"-1\" width=\"158\" height=\"18\"/>\n                                                    <buttonCell key=\"cell\" type=\"check\" title=\"Enable spell checking\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"G82-Jf-2sb\">\n                                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                    </buttonCell>\n                                                    <connections>\n                                                        <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.GICommitMessageViewUserDefaultKey_EnableSpellChecking\" id=\"DpY-KK-y7w\">\n                                                            <dictionary key=\"options\">\n                                                                <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                                <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                                <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                            </dictionary>\n                                                        </binding>\n                                                    </connections>\n                                                </button>\n                                            </subviews>\n                                            <visibilityPriorities>\n                                                <integer value=\"1000\"/>\n                                                <integer value=\"1000\"/>\n                                                <integer value=\"1000\"/>\n                                            </visibilityPriorities>\n                                            <customSpacing>\n                                                <real value=\"3.4028234663852886e+38\"/>\n                                                <real value=\"3.4028234663852886e+38\"/>\n                                                <real value=\"3.4028234663852886e+38\"/>\n                                            </customSpacing>\n                                        </stackView>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"1hO-bG-lcd\">\n                                            <rect key=\"frame\" x=\"82\" y=\"94\" width=\"50\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Theme:\" id=\"JLz-xa-wP4\">\n                                                <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"aYx-qQ-zM6\" userLabel=\"Theme\">\n                                            <rect key=\"frame\" x=\"136\" y=\"88\" width=\"100\" height=\"25\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"&lt;THEME&gt;\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"Sc6-iK-E7E\" id=\"VKw-op-BDT\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"MTa-wS-FO9\">\n                                                    <items>\n                                                        <menuItem title=\"&lt;THEME&gt;\" state=\"on\" id=\"Sc6-iK-E7E\">\n                                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        </menuItem>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <action selector=\"changeTheme:\" target=\"-2\" id=\"jHB-tV-cFo\"/>\n                                            </connections>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mgF-aC-Vfq\">\n                                            <rect key=\"frame\" x=\"69\" y=\"54\" width=\"63\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Text Size:\" id=\"fh8-Xw-7UO\">\n                                                <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"LTz-FU-LbV\" userLabel=\"Small Aa\">\n                                            <rect key=\"frame\" x=\"137\" y=\"55\" width=\"18\" height=\"14\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Aa\" id=\"p2s-C1-CJC\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <slider verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"QSz-xx-ptB\">\n                                            <rect key=\"frame\" x=\"161\" y=\"46\" width=\"190\" height=\"28\"/>\n                                            <constraints>\n                                                <constraint firstAttribute=\"width\" constant=\"186\" id=\"sZ5-0o-bwA\"/>\n                                            </constraints>\n                                            <sliderCell key=\"cell\" continuous=\"YES\" state=\"on\" alignment=\"left\" maxValue=\"7\" doubleValue=\"1\" tickMarkPosition=\"above\" numberOfTickMarks=\"8\" allowsTickMarkValuesOnly=\"YES\" sliderType=\"linear\" id=\"l4r-Ba-XTw\"/>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.GIUserDefaultKey_FontSize\" id=\"M4D-7s-6vN\">\n                                                    <dictionary key=\"options\">\n                                                        <string key=\"NSValueTransformerName\">FontSizeTransformer</string>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </slider>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"dxk-On-hYI\" userLabel=\"Big Aa\">\n                                            <rect key=\"frame\" x=\"357\" y=\"50\" width=\"28\" height=\"24\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Aa\" id=\"AHl-FB-V43\">\n                                                <font key=\"font\" metaFont=\"system\" size=\"20\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Hay-Es-YXQ\">\n                                            <rect key=\"frame\" x=\"94\" y=\"204\" width=\"38\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Push:\" id=\"adw-OE-okd\">\n                                                <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hiI-QD-U0Q\">\n                                            <rect key=\"frame\" x=\"137\" y=\"203\" width=\"203\" height=\"18\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Ask to set upstream on push\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"Wi7-L1-z3w\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.AskSetUpstreamOnPush\" id=\"Wrw-sp-b7J\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </button>\n                                    </subviews>\n                                    <constraints>\n                                        <constraint firstItem=\"IO8-Wx-DRo\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"10\" id=\"2ex-dK-dWo\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"hiI-QD-U0Q\" secondAttribute=\"trailing\" constant=\"10\" id=\"4EQ-I8-QlA\"/>\n                                        <constraint firstItem=\"aYx-qQ-zM6\" firstAttribute=\"top\" secondItem=\"fix-oz-Sj9\" secondAttribute=\"bottom\" constant=\"16\" id=\"5Ph-xj-8oy\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"aYx-qQ-zM6\" secondAttribute=\"leading\" id=\"5tA-Gg-3G1\"/>\n                                        <constraint firstItem=\"QSz-xx-ptB\" firstAttribute=\"centerY\" secondItem=\"dxk-On-hYI\" secondAttribute=\"centerY\" id=\"7LX-oM-QiR\"/>\n                                        <constraint firstItem=\"1hO-bG-lcd\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"10\" id=\"7Ma-eb-Gtn\"/>\n                                        <constraint firstItem=\"Hay-Es-YXQ\" firstAttribute=\"trailing\" secondItem=\"EBQ-WH-0CZ\" secondAttribute=\"trailing\" id=\"9TW-jL-rhx\"/>\n                                        <constraint firstItem=\"YZU-dx-gjr\" firstAttribute=\"top\" secondItem=\"pP3-w2-KOs\" secondAttribute=\"top\" id=\"C1c-qT-71g\"/>\n                                        <constraint firstItem=\"dxk-On-hYI\" firstAttribute=\"leading\" secondItem=\"QSz-xx-ptB\" secondAttribute=\"trailing\" constant=\"10\" id=\"Cpk-pT-wGb\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"CQY-oC-oQ8\" secondAttribute=\"trailing\" constant=\"10\" id=\"DFC-Ey-SO8\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"pP3-w2-KOs\" secondAttribute=\"leading\" constant=\"2\" id=\"DHu-5D-ouj\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"CQY-oC-oQ8\" secondAttribute=\"leading\" id=\"DQM-yN-59t\"/>\n                                        <constraint firstItem=\"hiI-QD-U0Q\" firstAttribute=\"top\" secondItem=\"jee-vl-BUt\" secondAttribute=\"bottom\" constant=\"16\" id=\"E4W-Qq-P8m\"/>\n                                        <constraint firstItem=\"zwg-99-t9E\" firstAttribute=\"top\" secondItem=\"2WQ-hK-j2t\" secondAttribute=\"bottom\" constant=\"16\" id=\"Eb4-6W-tLj\"/>\n                                        <constraint firstItem=\"YZU-dx-gjr\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"10\" id=\"Ewo-pn-gSB\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"jee-vl-BUt\" secondAttribute=\"leading\" id=\"FBm-MS-FfG\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"fix-oz-Sj9\" secondAttribute=\"leading\" id=\"H5P-5Y-RK4\"/>\n                                        <constraint firstAttribute=\"trailing\" secondItem=\"jee-vl-BUt\" secondAttribute=\"trailing\" constant=\"10\" id=\"HbP-IA-IiN\"/>\n                                        <constraint firstItem=\"pP3-w2-KOs\" firstAttribute=\"top\" secondItem=\"zwg-99-t9E\" secondAttribute=\"bottom\" constant=\"16\" id=\"JLL-xl-ZRb\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"2WQ-hK-j2t\" secondAttribute=\"trailing\" constant=\"10\" id=\"NUc-s0-x8h\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"trailing\" secondItem=\"YZU-dx-gjr\" secondAttribute=\"trailing\" id=\"Nfa-un-XO9\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"trailing\" secondItem=\"IO8-Wx-DRo\" secondAttribute=\"trailing\" id=\"Q38-w9-bos\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"leading\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"53\" id=\"QEG-j4-GK9\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"fix-oz-Sj9\" secondAttribute=\"trailing\" constant=\"10\" id=\"SKl-Qf-IKi\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"EBQ-WH-0CZ\" secondAttribute=\"trailing\" constant=\"9\" id=\"SfN-Xh-7Uk\"/>\n                                        <constraint firstItem=\"mgF-aC-Vfq\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"10\" id=\"T91-YK-biz\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"top\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"top\" constant=\"12\" id=\"VdP-Gq-KAl\"/>\n                                        <constraint firstItem=\"QSz-xx-ptB\" firstAttribute=\"leading\" secondItem=\"LTz-FU-LbV\" secondAttribute=\"trailing\" constant=\"10\" id=\"aSt-4n-wpP\"/>\n                                        <constraint firstItem=\"mgF-aC-Vfq\" firstAttribute=\"centerY\" secondItem=\"LTz-FU-LbV\" secondAttribute=\"centerY\" id=\"bi7-pk-eF1\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"trailing\" secondItem=\"mC1-sE-MTH\" secondAttribute=\"trailing\" id=\"bl7-8k-tAX\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"pP3-w2-KOs\" secondAttribute=\"trailing\" constant=\"10\" id=\"cUF-MW-m9t\"/>\n                                        <constraint firstItem=\"QSz-xx-ptB\" firstAttribute=\"top\" secondItem=\"aYx-qQ-zM6\" secondAttribute=\"bottom\" constant=\"20\" id=\"cdn-Ti-bdL\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"centerY\" secondItem=\"2WQ-hK-j2t\" secondAttribute=\"centerY\" id=\"dL5-Rr-83q\"/>\n                                        <constraint firstItem=\"mC1-sE-MTH\" firstAttribute=\"top\" secondItem=\"fix-oz-Sj9\" secondAttribute=\"top\" id=\"e11-ey-4aU\"/>\n                                        <constraint firstItem=\"IO8-Wx-DRo\" firstAttribute=\"top\" secondItem=\"zwg-99-t9E\" secondAttribute=\"top\" id=\"eHH-Zz-UxB\"/>\n                                        <constraint firstItem=\"lyZ-cf-MT6\" firstAttribute=\"centerY\" secondItem=\"CQY-oC-oQ8\" secondAttribute=\"centerY\" id=\"eYc-ik-acE\"/>\n                                        <constraint firstItem=\"2WQ-hK-j2t\" firstAttribute=\"leading\" secondItem=\"zwg-99-t9E\" secondAttribute=\"leading\" constant=\"2\" id=\"eZq-Za-xE8\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"dxk-On-hYI\" secondAttribute=\"trailing\" constant=\"10\" id=\"hZx-Do-VYm\"/>\n                                        <constraint firstItem=\"LTz-FU-LbV\" firstAttribute=\"leading\" secondItem=\"2WQ-hK-j2t\" secondAttribute=\"leading\" id=\"i4K-oS-kqx\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"trailing\" secondItem=\"1hO-bG-lcd\" secondAttribute=\"trailing\" id=\"iR8-A4-9Bs\"/>\n                                        <constraint firstItem=\"mC1-sE-MTH\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"10\" id=\"iew-ya-tgL\"/>\n                                        <constraint firstItem=\"CQY-oC-oQ8\" firstAttribute=\"top\" secondItem=\"pP3-w2-KOs\" secondAttribute=\"bottom\" constant=\"16\" id=\"jd5-gF-vbv\"/>\n                                        <constraint firstItem=\"jee-vl-BUt\" firstAttribute=\"top\" secondItem=\"CQY-oC-oQ8\" secondAttribute=\"bottom\" constant=\"8\" id=\"lay-Xr-ShF\"/>\n                                        <constraint firstItem=\"hiI-QD-U0Q\" firstAttribute=\"leading\" secondItem=\"2WQ-hK-j2t\" secondAttribute=\"leading\" id=\"n3x-pi-Rb9\"/>\n                                        <constraint firstItem=\"EBQ-WH-0CZ\" firstAttribute=\"trailing\" secondItem=\"lyZ-cf-MT6\" secondAttribute=\"trailing\" id=\"nDg-CZ-4YV\"/>\n                                        <constraint firstItem=\"LTz-FU-LbV\" firstAttribute=\"centerY\" secondItem=\"QSz-xx-ptB\" secondAttribute=\"centerY\" id=\"rjR-G7-PVw\"/>\n                                        <constraint firstAttribute=\"bottom\" secondItem=\"QSz-xx-ptB\" secondAttribute=\"bottom\" constant=\"52\" id=\"rwj-30-YVt\"/>\n                                        <constraint firstItem=\"lyZ-cf-MT6\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"ZJf-t1-iGB\" secondAttribute=\"leading\" constant=\"10\" id=\"uVB-R6-n34\"/>\n                                        <constraint firstItem=\"1hO-bG-lcd\" firstAttribute=\"centerY\" secondItem=\"aYx-qQ-zM6\" secondAttribute=\"centerY\" id=\"vNr-Bb-ysG\"/>\n                                        <constraint firstItem=\"mgF-aC-Vfq\" firstAttribute=\"trailing\" secondItem=\"1hO-bG-lcd\" secondAttribute=\"trailing\" id=\"wFz-ZV-kpx\"/>\n                                        <constraint firstItem=\"Hay-Es-YXQ\" firstAttribute=\"centerY\" secondItem=\"hiI-QD-U0Q\" secondAttribute=\"centerY\" id=\"weS-v3-0c7\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"aYx-qQ-zM6\" secondAttribute=\"trailing\" constant=\"10\" id=\"xIp-h3-RxP\"/>\n                                        <constraint firstItem=\"fix-oz-Sj9\" firstAttribute=\"top\" secondItem=\"hiI-QD-U0Q\" secondAttribute=\"bottom\" constant=\"16\" id=\"y6z-yB-4y6\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"zwg-99-t9E\" secondAttribute=\"trailing\" constant=\"10\" id=\"zLX-zx-mdO\"/>\n                                    </constraints>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"{500, 322}\" identifier=\"advanced\" id=\"Qdl-lQ-O4q\">\n                                <view key=\"view\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8CG-H0-Xhk\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"503\" height=\"319\"/>\n                                    <subviews>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vpU-gW-P72\">\n                                            <rect key=\"frame\" x=\"49\" y=\"289\" width=\"83\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"External Diff:\" id=\"WZ7-h0-Fpb\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mZX-yf-dtK\">\n                                            <rect key=\"frame\" x=\"135\" y=\"283\" width=\"144\" height=\"25\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"FileMerge\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" autoenablesItems=\"NO\" altersStateOfSelectedItem=\"NO\" selectedItem=\"szc-39-qmN\" id=\"yfJ-9J-pbb\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" autoenablesItems=\"NO\" id=\"bCl-N0-YZa\">\n                                                    <items>\n                                                        <menuItem title=\"FileMerge\" id=\"szc-39-qmN\"/>\n                                                        <menuItem title=\"Kaleidoscope\" id=\"EDr-i6-aAh\"/>\n                                                        <menuItem title=\"Beyond Compare\" id=\"cip-D6-GZD\"/>\n                                                        <menuItem title=\"P4Merge\" id=\"RNS-uQ-WHF\"/>\n                                                        <menuItem title=\"DiffMerge\" id=\"yH0-Kd-hsv\"/>\n                                                        <menuItem isSeparatorItem=\"YES\" id=\"XvM-0Z-bmM\"/>\n                                                        <menuItem title=\"Git Tool\" id=\"iEl-zc-obP\"/>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"selectedValue\" keyPath=\"values.GIPreferences_DiffTool\" id=\"2wH-dL-XHl\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2WJ-iR-f3R\">\n                                            <rect key=\"frame\" x=\"32\" y=\"255\" width=\"100\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"External Merge:\" id=\"2DT-l7-dgY\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ud9-w0-9vK\">\n                                            <rect key=\"frame\" x=\"135\" y=\"249\" width=\"144\" height=\"25\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"FileMerge\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" autoenablesItems=\"NO\" altersStateOfSelectedItem=\"NO\" selectedItem=\"Zln-Lm-NeH\" id=\"NHJ-tA-W14\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" autoenablesItems=\"NO\" id=\"79m-3R-eaz\">\n                                                    <items>\n                                                        <menuItem title=\"FileMerge\" id=\"Zln-Lm-NeH\"/>\n                                                        <menuItem title=\"Kaleidoscope\" id=\"pqO-7b-B5J\"/>\n                                                        <menuItem title=\"Beyond Compare\" id=\"AaP-5A-YVD\"/>\n                                                        <menuItem title=\"P4Merge\" id=\"Uq1-pA-HzR\"/>\n                                                        <menuItem title=\"DiffMerge\" id=\"AXz-pD-fZY\"/>\n                                                        <menuItem isSeparatorItem=\"YES\" id=\"opM-b3-5YC\"/>\n                                                        <menuItem title=\"Git Tool\" id=\"yyO-2T-uYr\"/>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"selectedValue\" keyPath=\"values.GIPreferences_MergeTool\" id=\"6q5-5I-OWS\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"yk0-pw-L66\">\n                                            <rect key=\"frame\" x=\"20\" y=\"221\" width=\"112\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"External Terminal:\" id=\"2fJ-Wk-1yE\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"t3W-1A-hzN\">\n                                            <rect key=\"frame\" x=\"135\" y=\"215\" width=\"91\" height=\"25\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"Terminal\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" autoenablesItems=\"NO\" altersStateOfSelectedItem=\"NO\" selectedItem=\"UlY-xH-pGx\" id=\"5eq-0P-7Rr\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" autoenablesItems=\"NO\" id=\"qrO-FX-ojZ\">\n                                                    <items>\n                                                        <menuItem title=\"Terminal\" id=\"UlY-xH-pGx\"/>\n                                                        <menuItem title=\"iTerm\" id=\"Rvi-tF-L5u\">\n                                                            <connections>\n                                                                <binding destination=\"AR1-cq-KNa\" name=\"enabled\" keyPath=\"values.GIPreferences_TerminalTool_iTerm\" id=\"EuF-Zs-UE5\"/>\n                                                            </connections>\n                                                        </menuItem>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"selectedValue\" keyPath=\"values.GIPreferences_TerminalTool\" id=\"uMS-an-EFL\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"b9G-MU-MDn\">\n                                            <rect key=\"frame\" x=\"71\" y=\"175\" width=\"61\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Remotes:\" id=\"LAp-ea-WLX\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"w2N-io-xkS\">\n                                            <rect key=\"frame\" x=\"136\" y=\"175\" width=\"126\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Automatically check\" id=\"X1v-BK-dAQ\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZYX-Yt-1fl\">\n                                            <rect key=\"frame\" x=\"265\" y=\"169\" width=\"145\" height=\"25\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"Never\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" autoenablesItems=\"NO\" altersStateOfSelectedItem=\"NO\" selectedItem=\"KgR-3b-gT5\" id=\"Pdg-S3-YXJ\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" autoenablesItems=\"NO\" id=\"HS2-nT-ca7\">\n                                                    <items>\n                                                        <menuItem title=\"Never\" id=\"KgR-3b-gT5\"/>\n                                                        <menuItem title=\"Every 5 Minutes\" tag=\"300\" id=\"fBn-HY-yBz\"/>\n                                                        <menuItem title=\"Every 15 Minutes\" tag=\"900\" id=\"PJN-mz-oGX\"/>\n                                                        <menuItem title=\"Every 30 Minutes\" tag=\"1800\" id=\"Nq9-k0-5s0\"/>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"selectedTag\" keyPath=\"values.CheckInterval\" id=\"INB-f0-xdF\">\n                                                    <dictionary key=\"options\">\n                                                        <bool key=\"NSAllowsEditingMultipleValuesSelection\" value=\"NO\"/>\n                                                        <bool key=\"NSConditionallySetsEnabled\" value=\"NO\"/>\n                                                        <bool key=\"NSRaisesForNotApplicableKeys\" value=\"NO\"/>\n                                                    </dictionary>\n                                                </binding>\n                                            </connections>\n                                        </popUpButton>\n                                        <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Xxa-CO-ELY\">\n                                            <rect key=\"frame\" x=\"136\" y=\"148\" width=\"327\" height=\"18\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Allow quick confirmation of dangerous operations\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"uJq-iS-sPr\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <binding destination=\"AR1-cq-KNa\" name=\"value\" keyPath=\"values.GIMapViewController_AllowReturnKeyForDangerousRemoteOperations\" id=\"c8T-9g-4KN\"/>\n                                            </connections>\n                                        </button>\n                                        <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" preferredMaxLayoutWidth=\"355\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ad9-ef-Jqv\">\n                                            <rect key=\"frame\" x=\"136\" y=\"115\" width=\"359\" height=\"28\"/>\n                                            <textFieldCell key=\"cell\" controlSize=\"small\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"This allows dangerous operations on remotes, like force push, to be confirmed by pressing the Return key in dialogs.\" id=\"LQY-Xb-bQ5\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mi3-Eg-51i\">\n                                            <rect key=\"frame\" x=\"23\" y=\"77\" width=\"109\" height=\"16\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Release Channel:\" id=\"M0A-b6-dhN\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7N4-S9-iWL\">\n                                            <rect key=\"frame\" x=\"135\" y=\"71\" width=\"177\" height=\"25\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"&lt;RELEASE CHANNEL&gt;\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" autoenablesItems=\"NO\" selectedItem=\"xdx-IX-FK6\" id=\"Sdr-Ep-kPW\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" autoenablesItems=\"NO\" id=\"0Z3-9j-kDN\">\n                                                    <items>\n                                                        <menuItem title=\"&lt;RELEASE CHANNEL&gt;\" state=\"on\" id=\"xdx-IX-FK6\">\n                                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        </menuItem>\n                                                    </items>\n                                                </menu>\n                                                <connections>\n                                                    <action selector=\"changeReleaseChannel:\" target=\"-2\" id=\"yuj-zU-eGK\"/>\n                                                </connections>\n                                            </popUpButtonCell>\n                                        </popUpButton>\n                                        <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" preferredMaxLayoutWidth=\"355\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"PtA-hG-Qmn\">\n                                            <rect key=\"frame\" x=\"136\" y=\"40\" width=\"331\" height=\"28\"/>\n                                            <textFieldCell key=\"cell\" controlSize=\"small\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"The &quot;Continuous&quot; release channel installs builds directly from GitUp Continuous Integration. Use at your own risk!\" id=\"qB2-E4-Yuu\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                    <constraints>\n                                        <constraint firstItem=\"PtA-hG-Qmn\" firstAttribute=\"top\" secondItem=\"7N4-S9-iWL\" secondAttribute=\"bottom\" constant=\"7\" id=\"0jF-AZ-pFh\"/>\n                                        <constraint firstItem=\"yk0-pw-L66\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"leading\" constant=\"10\" id=\"0kT-Xq-Gqd\"/>\n                                        <constraint firstItem=\"Ad9-ef-Jqv\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"1Mv-1E-Y7X\"/>\n                                        <constraint firstItem=\"2WJ-iR-f3R\" firstAttribute=\"trailing\" secondItem=\"vpU-gW-P72\" secondAttribute=\"trailing\" id=\"2Hc-t6-GSd\"/>\n                                        <constraint firstItem=\"w2N-io-xkS\" firstAttribute=\"top\" secondItem=\"t3W-1A-hzN\" secondAttribute=\"bottom\" constant=\"28\" id=\"4Bv-Q9-C88\"/>\n                                        <constraint firstItem=\"b9G-MU-MDn\" firstAttribute=\"centerY\" secondItem=\"w2N-io-xkS\" secondAttribute=\"centerY\" id=\"5qm-9X-DdY\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"PtA-hG-Qmn\" secondAttribute=\"trailing\" constant=\"10\" id=\"8bL-cG-WnD\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"trailing\" constant=\"10\" id=\"Bei-GT-xgm\"/>\n                                        <constraint firstItem=\"7N4-S9-iWL\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"FIo-Pg-YeR\"/>\n                                        <constraint firstItem=\"b9G-MU-MDn\" firstAttribute=\"trailing\" secondItem=\"yk0-pw-L66\" secondAttribute=\"trailing\" id=\"FLM-c2-7wT\"/>\n                                        <constraint firstItem=\"Xxa-CO-ELY\" firstAttribute=\"top\" secondItem=\"w2N-io-xkS\" secondAttribute=\"bottom\" constant=\"10\" id=\"GDK-Li-RcA\"/>\n                                        <constraint firstItem=\"vpU-gW-P72\" firstAttribute=\"centerY\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"centerY\" id=\"K9y-8t-8VH\"/>\n                                        <constraint firstAttribute=\"bottom\" relation=\"greaterThanOrEqual\" secondItem=\"PtA-hG-Qmn\" secondAttribute=\"bottom\" constant=\"40\" id=\"MM7-N7-DSp\"/>\n                                        <constraint firstItem=\"mZX-yf-dtK\" firstAttribute=\"leading\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"leading\" constant=\"138\" id=\"N1o-iC-Vdh\"/>\n                                        <constraint firstAttribute=\"trailing\" secondItem=\"Ad9-ef-Jqv\" secondAttribute=\"trailing\" constant=\"10\" id=\"OVA-2Y-KY7\"/>\n                                        <constraint firstItem=\"Ud9-w0-9vK\" firstAttribute=\"top\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"bottom\" constant=\"14\" id=\"R3b-uK-pAz\"/>\n                                        <constraint firstItem=\"mi3-Eg-51i\" firstAttribute=\"trailing\" secondItem=\"b9G-MU-MDn\" secondAttribute=\"trailing\" id=\"T9r-ga-PND\"/>\n                                        <constraint firstItem=\"mZX-yf-dtK\" firstAttribute=\"top\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"top\" constant=\"12\" id=\"TC8-r6-lyL\"/>\n                                        <constraint firstAttribute=\"bottom\" secondItem=\"PtA-hG-Qmn\" secondAttribute=\"bottom\" priority=\"249\" constant=\"40\" id=\"UU2-4x-uSJ\"/>\n                                        <constraint firstItem=\"2WJ-iR-f3R\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"leading\" constant=\"10\" id=\"XhZ-1D-bFb\"/>\n                                        <constraint firstItem=\"w2N-io-xkS\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"ZF1-bO-s2r\"/>\n                                        <constraint firstItem=\"mi3-Eg-51i\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"leading\" constant=\"10\" id=\"ZHM-dR-sMT\"/>\n                                        <constraint firstItem=\"mZX-yf-dtK\" firstAttribute=\"leading\" secondItem=\"vpU-gW-P72\" secondAttribute=\"trailing\" constant=\"8\" id=\"ZYa-8u-43u\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"7N4-S9-iWL\" secondAttribute=\"trailing\" constant=\"10\" id=\"Zb7-Im-Jbz\"/>\n                                        <constraint firstItem=\"Ad9-ef-Jqv\" firstAttribute=\"top\" secondItem=\"Xxa-CO-ELY\" secondAttribute=\"bottom\" constant=\"6\" id=\"apL-I3-V9W\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"t3W-1A-hzN\" secondAttribute=\"trailing\" constant=\"10\" id=\"bie-Bb-cET\"/>\n                                        <constraint firstItem=\"PtA-hG-Qmn\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"cdu-fb-pXo\"/>\n                                        <constraint firstItem=\"vpU-gW-P72\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"leading\" constant=\"10\" id=\"crO-A7-tcN\"/>\n                                        <constraint firstItem=\"w2N-io-xkS\" firstAttribute=\"centerY\" secondItem=\"ZYX-Yt-1fl\" secondAttribute=\"centerY\" id=\"e3m-cQ-mcf\"/>\n                                        <constraint firstItem=\"t3W-1A-hzN\" firstAttribute=\"top\" secondItem=\"Ud9-w0-9vK\" secondAttribute=\"bottom\" constant=\"14\" id=\"eom-Ur-gav\"/>\n                                        <constraint firstItem=\"yk0-pw-L66\" firstAttribute=\"trailing\" secondItem=\"2WJ-iR-f3R\" secondAttribute=\"trailing\" id=\"iPA-Cz-wav\"/>\n                                        <constraint firstItem=\"7N4-S9-iWL\" firstAttribute=\"top\" secondItem=\"Ad9-ef-Jqv\" secondAttribute=\"bottom\" constant=\"20\" id=\"ibj-rr-mkx\"/>\n                                        <constraint firstItem=\"b9G-MU-MDn\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"8CG-H0-Xhk\" secondAttribute=\"leading\" constant=\"10\" id=\"iux-qd-Tc7\"/>\n                                        <constraint firstItem=\"ZYX-Yt-1fl\" firstAttribute=\"leading\" secondItem=\"w2N-io-xkS\" secondAttribute=\"trailing\" constant=\"8\" id=\"jh8-xJ-ns2\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"Ud9-w0-9vK\" secondAttribute=\"trailing\" constant=\"10\" id=\"lFx-57-27Z\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"Xxa-CO-ELY\" secondAttribute=\"trailing\" constant=\"10\" id=\"nLt-XZ-Vp0\"/>\n                                        <constraint firstItem=\"Xxa-CO-ELY\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"oej-IH-8WK\"/>\n                                        <constraint firstItem=\"2WJ-iR-f3R\" firstAttribute=\"centerY\" secondItem=\"Ud9-w0-9vK\" secondAttribute=\"centerY\" id=\"pfh-Jk-mfF\"/>\n                                        <constraint firstAttribute=\"trailing\" relation=\"greaterThanOrEqual\" secondItem=\"ZYX-Yt-1fl\" secondAttribute=\"trailing\" constant=\"10\" id=\"r2s-yB-3fX\"/>\n                                        <constraint firstItem=\"t3W-1A-hzN\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"uGU-7Q-x4K\"/>\n                                        <constraint firstItem=\"Ud9-w0-9vK\" firstAttribute=\"leading\" secondItem=\"mZX-yf-dtK\" secondAttribute=\"leading\" id=\"umf-YA-cgh\"/>\n                                        <constraint firstItem=\"mi3-Eg-51i\" firstAttribute=\"centerY\" secondItem=\"7N4-S9-iWL\" secondAttribute=\"centerY\" id=\"wj6-wi-G5h\"/>\n                                        <constraint firstItem=\"yk0-pw-L66\" firstAttribute=\"centerY\" secondItem=\"t3W-1A-hzN\" secondAttribute=\"centerY\" id=\"zl4-M9-Gfg\"/>\n                                    </constraints>\n                                </view>\n                            </tabViewItem>\n                        </tabViewItems>\n                    </tabView>\n                </subviews>\n                <constraints>\n                    <constraint firstAttribute=\"trailing\" secondItem=\"anN-jw-l7x\" secondAttribute=\"trailing\" id=\"OFU-GD-Nxz\"/>\n                    <constraint firstItem=\"anN-jw-l7x\" firstAttribute=\"top\" secondItem=\"uEJ-lO-PMl\" secondAttribute=\"top\" id=\"XIO-1s-VhO\"/>\n                    <constraint firstItem=\"anN-jw-l7x\" firstAttribute=\"leading\" secondItem=\"uEJ-lO-PMl\" secondAttribute=\"leading\" id=\"xg5-Dm-sUR\"/>\n                    <constraint firstAttribute=\"bottom\" secondItem=\"anN-jw-l7x\" secondAttribute=\"bottom\" id=\"xgM-9M-IO8\"/>\n                </constraints>\n            </view>\n            <toolbar key=\"toolbar\" implicitIdentifier=\"4BB9AB3D-6CFE-44F9-AC58-EC5EB9EC6AD2\" autosavesConfiguration=\"NO\" allowsUserCustomization=\"NO\" displayMode=\"iconAndLabel\" sizeMode=\"regular\" id=\"YkS-ea-UXD\">\n                <allowedToolbarItems>\n                    <toolbarItem implicitItemIdentifier=\"0A993B67-8232-470B-93F2-918C139C4502\" explicitItemIdentifier=\"general\" label=\"General\" paletteLabel=\"General\" image=\"switch.2\" catalog=\"system\" sizingBehavior=\"auto\" autovalidates=\"NO\" selectable=\"YES\" id=\"Eco-Ip-wwc\">\n                        <connections>\n                            <action selector=\"selectPreferencePane:\" target=\"-2\" id=\"w3g-Hd-GBT\"/>\n                        </connections>\n                    </toolbarItem>\n                    <toolbarItem implicitItemIdentifier=\"5E54574B-9F92-4881-8DD0-A99676EDDF56\" explicitItemIdentifier=\"advanced\" label=\"Advanced\" paletteLabel=\"Advanced\" image=\"gearshape\" catalog=\"system\" sizingBehavior=\"auto\" autovalidates=\"NO\" selectable=\"YES\" id=\"doU-9n-plE\">\n                        <connections>\n                            <action selector=\"selectPreferencePane:\" target=\"-2\" id=\"TmO-gY-YJN\"/>\n                        </connections>\n                    </toolbarItem>\n                </allowedToolbarItems>\n                <defaultToolbarItems>\n                    <toolbarItem reference=\"Eco-Ip-wwc\"/>\n                    <toolbarItem reference=\"doU-9n-plE\"/>\n                </defaultToolbarItems>\n            </toolbar>\n            <point key=\"canvasLocation\" x=\"-9\" y=\"1152\"/>\n        </window>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\"/>\n        <userDefaultsController representsSharedInstance=\"YES\" id=\"AR1-cq-KNa\"/>\n    </objects>\n    <resources>\n        <image name=\"gearshape\" catalog=\"system\" width=\"16\" height=\"16\"/>\n        <image name=\"switch.2\" catalog=\"system\" width=\"16\" height=\"14\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUp/Application/Base.lproj/WelcomeWindowController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"19529\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment version=\"110000\" identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"19529\"/>\n        <capability name=\"System colors introduced in macOS 10.14\" minToolsVersion=\"10.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"WelcomeWindowController\">\n            <connections>\n                <outlet property=\"closeButton\" destination=\"Fwx-IU-wXQ\" id=\"oxX-AV-ffo\"/>\n                <outlet property=\"destinationView\" destination=\"UVs-2r-EAT\" id=\"br0-1Q-MbA\"/>\n                <outlet property=\"forumsButton\" destination=\"ozw-os-Nc4\" id=\"xgP-Uj-SKc\"/>\n                <outlet property=\"recentPopUpButton\" destination=\"rck-lm-gsz\" id=\"SFe-iy-HxX\"/>\n                <outlet property=\"twitterButton\" destination=\"5ht-7L-7AO\" id=\"2AV-yQ-MVQ\"/>\n                <outlet property=\"window\" destination=\"mjY-As-hbN\" id=\"6Bt-UR-GyN\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" frameAutosaveName=\"\" animationBehavior=\"default\" id=\"mjY-As-hbN\" userLabel=\"Welcome\" customClass=\"WelcomeWindow\">\n            <rect key=\"contentRect\" x=\"131\" y=\"158\" width=\"280\" height=\"384\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"875\"/>\n            <view key=\"contentView\" id=\"36m-6r-JT2\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"280\" height=\"384\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <box fixedFrame=\"YES\" boxType=\"custom\" borderType=\"none\" borderWidth=\"0.0\" cornerRadius=\"10\" title=\"Box\" titlePosition=\"noTitle\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"UoN-n1-xSr\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"280\" height=\"384\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <view key=\"contentView\" id=\"UVs-2r-EAT\" customClass=\"WelcomeWindowView\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"280\" height=\"384\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                            <subviews>\n                                <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Fwx-IU-wXQ\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"354\" width=\"30\" height=\"30\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"square\" bezelStyle=\"shadowlessSquare\" image=\"NSStopProgressFreestandingTemplate\" imagePosition=\"only\" alignment=\"center\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"9ia-bK-Ohr\">\n                                        <behavior key=\"behavior\" lightByContents=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                    </buttonCell>\n                                    <accessibility description=\"Close window\"/>\n                                </button>\n                                <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Apd-kA-Fr2\">\n                                    <rect key=\"frame\" x=\"76\" y=\"215\" width=\"128\" height=\"128\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" imageScaling=\"proportionallyDown\" image=\"NSApplicationIcon\" id=\"hqR-yy-x5J\"/>\n                                </imageView>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jwH-EW-hhE\">\n                                    <rect key=\"frame\" x=\"58\" y=\"180\" width=\"164\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"Welcome to GitUp\" id=\"mWe-61-l7s\">\n                                        <font key=\"font\" metaFont=\"systemBold\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"zd1-ko-kkJ\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"156\" width=\"280\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                </box>\n                                <box autoresizesSubviews=\"NO\" fixedFrame=\"YES\" boxType=\"custom\" borderType=\"none\" title=\"Box\" titlePosition=\"noTitle\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Yk1-Lc-GjF\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"123\" width=\"280\" height=\"35\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <view key=\"contentView\" id=\"e59-at-kYh\">\n                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"280\" height=\"35\"/>\n                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                        <subviews>\n                                            <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"edN-Xy-LJd\" customClass=\"GILinkButton\">\n                                                <rect key=\"frame\" x=\"50\" y=\"7\" width=\"180\" height=\"20\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                <userDefinedRuntimeAttributes>\n                                                    <userDefinedRuntimeAttribute type=\"string\" keyPath=\"link\" value=\"Clone a Git Repository…\"/>\n                                                    <userDefinedRuntimeAttribute type=\"color\" keyPath=\"linkColor\">\n                                                        <color key=\"value\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </userDefinedRuntimeAttribute>\n                                                    <userDefinedRuntimeAttribute type=\"color\" keyPath=\"alternateLinkColor\">\n                                                        <color key=\"value\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </userDefinedRuntimeAttribute>\n                                                </userDefinedRuntimeAttributes>\n                                                <connections>\n                                                    <action selector=\"cloneRepository:\" target=\"-1\" id=\"e3f-ba-Ilm\"/>\n                                                </connections>\n                                            </customView>\n                                        </subviews>\n                                    </view>\n                                    <color key=\"fillColor\" name=\"alternatingContentBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </box>\n                                <box autoresizesSubviews=\"NO\" fixedFrame=\"YES\" boxType=\"custom\" borderType=\"none\" title=\"Box\" titlePosition=\"noTitle\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"xQb-J3-oL4\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"88\" width=\"280\" height=\"35\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <view key=\"contentView\" id=\"7dg-K9-ehZ\">\n                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"280\" height=\"35\"/>\n                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                        <subviews>\n                                            <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ICh-W7-gfv\" customClass=\"GILinkButton\">\n                                                <rect key=\"frame\" x=\"50\" y=\"7\" width=\"180\" height=\"20\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                <userDefinedRuntimeAttributes>\n                                                    <userDefinedRuntimeAttribute type=\"string\" keyPath=\"link\" value=\"Open a Git Repository…\"/>\n                                                    <userDefinedRuntimeAttribute type=\"color\" keyPath=\"linkColor\">\n                                                        <color key=\"value\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </userDefinedRuntimeAttribute>\n                                                    <userDefinedRuntimeAttribute type=\"color\" keyPath=\"alternateLinkColor\">\n                                                        <color key=\"value\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </userDefinedRuntimeAttribute>\n                                                </userDefinedRuntimeAttributes>\n                                                <connections>\n                                                    <action selector=\"openDocument:\" target=\"-1\" id=\"Z9o-ql-9Ia\"/>\n                                                </connections>\n                                            </customView>\n                                        </subviews>\n                                    </view>\n                                    <color key=\"fillColor\" name=\"alternatingContentBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </box>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FXE-km-lcD\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"120\" width=\"280\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                </box>\n                                <box autoresizesSubviews=\"NO\" fixedFrame=\"YES\" boxType=\"custom\" borderType=\"none\" title=\"Box\" titlePosition=\"noTitle\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ll1-UT-nBS\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"54\" width=\"280\" height=\"35\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <view key=\"contentView\" id=\"qq4-a6-dvv\">\n                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"280\" height=\"35\"/>\n                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                        <subviews>\n                                            <popUpButton fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"rck-lm-gsz\">\n                                                <rect key=\"frame\" x=\"65\" y=\"7\" width=\"150\" height=\"21\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                <popUpButtonCell key=\"cell\" type=\"bevel\" title=\"Recently Opened…\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" imageScaling=\"proportionallyDown\" inset=\"2\" pullsDown=\"YES\" autoenablesItems=\"NO\" altersStateOfSelectedItem=\"NO\" selectedItem=\"BnD-OX-t50\" id=\"TkZ-yA-jfp\">\n                                                    <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                    <font key=\"font\" metaFont=\"menu\"/>\n                                                    <string key=\"keyEquivalent\"></string>\n                                                    <menu key=\"menu\" autoenablesItems=\"NO\" id=\"SuZ-b2-YNW\">\n                                                        <items>\n                                                            <menuItem title=\"Recently Opened…\" state=\"on\" hidden=\"YES\" id=\"BnD-OX-t50\"/>\n                                                        </items>\n                                                    </menu>\n                                                </popUpButtonCell>\n                                            </popUpButton>\n                                        </subviews>\n                                    </view>\n                                    <color key=\"fillColor\" name=\"alternatingContentBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </box>\n                                <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"TgX-Ty-AUa\">\n                                    <rect key=\"frame\" x=\"45\" y=\"20\" width=\"12\" height=\"12\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" imageScaling=\"proportionallyDown\" image=\"icon_twitter\" id=\"4p0-VD-kVJ\"/>\n                                    <color key=\"contentTintColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </imageView>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5ht-7L-7AO\" customClass=\"GILinkButton\">\n                                    <rect key=\"frame\" x=\"60\" y=\"13\" width=\"75\" height=\"20\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <userDefinedRuntimeAttributes>\n                                        <userDefinedRuntimeAttribute type=\"string\" keyPath=\"link\" value=\"@gitupapp\"/>\n                                        <userDefinedRuntimeAttribute type=\"color\" keyPath=\"linkColor\">\n                                            <color key=\"value\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </userDefinedRuntimeAttribute>\n                                        <userDefinedRuntimeAttribute type=\"color\" keyPath=\"alternateLinkColor\">\n                                            <color key=\"value\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </userDefinedRuntimeAttribute>\n                                    </userDefinedRuntimeAttributes>\n                                </customView>\n                                <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3gN-gU-6Rk\">\n                                    <rect key=\"frame\" x=\"154\" y=\"20\" width=\"12\" height=\"12\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" imageScaling=\"proportionallyDown\" image=\"icon_forum\" id=\"3Om-2j-ETN\"/>\n                                    <color key=\"contentTintColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </imageView>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ozw-os-Nc4\" customClass=\"GILinkButton\">\n                                    <rect key=\"frame\" x=\"169\" y=\"13\" width=\"75\" height=\"20\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <userDefinedRuntimeAttributes>\n                                        <userDefinedRuntimeAttribute type=\"string\" keyPath=\"link\" value=\"Feedback\"/>\n                                        <userDefinedRuntimeAttribute type=\"color\" keyPath=\"linkColor\">\n                                            <color key=\"value\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </userDefinedRuntimeAttribute>\n                                        <userDefinedRuntimeAttribute type=\"color\" keyPath=\"alternateLinkColor\">\n                                            <color key=\"value\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </userDefinedRuntimeAttribute>\n                                    </userDefinedRuntimeAttributes>\n                                    <connections>\n                                        <action selector=\"viewIssues:\" target=\"-1\" id=\"aqi-az-ote\"/>\n                                    </connections>\n                                </customView>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3Ya-QW-NlZ\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"86\" width=\"280\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                </box>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pHv-zS-O89\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"52\" width=\"280\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                </box>\n                            </subviews>\n                            <connections>\n                                <outlet property=\"imageView\" destination=\"Apd-kA-Fr2\" id=\"22r-bO-hHz\"/>\n                            </connections>\n                        </view>\n                        <color key=\"fillColor\" name=\"windowBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </box>\n                </subviews>\n            </view>\n            <point key=\"canvasLocation\" x=\"-185\" y=\"547.5\"/>\n        </window>\n    </objects>\n    <resources>\n        <image name=\"NSApplicationIcon\" width=\"32\" height=\"32\"/>\n        <image name=\"NSStopProgressFreestandingTemplate\" width=\"15\" height=\"15\"/>\n        <image name=\"icon_forum\" width=\"12\" height=\"12\"/>\n        <image name=\"icon_twitter\" width=\"12\" height=\"12\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUp/Application/CloneWindowController.h",
    "content": "//\n//  CloneWindowController.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import <AppKit/AppKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface CloneWindowControllerResult : NSObject\n@property(nonatomic, copy) NSURL* repositoryURL;\n@property(nonatomic, copy) NSString* directoryPath;\n@property(nonatomic) BOOL recursive;\n\n@property(nonatomic, readonly) BOOL invalidRepository;\n@property(nonatomic, readonly) BOOL emptyDirectoryPath;\n@end\n\n@interface CloneWindowController : NSWindowController\n@property(nonatomic, copy) NSString* url;\n- (void)runModalForURL:(NSString*)url completion:(void (^)(CloneWindowControllerResult* _Nullable result))completion;\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/CloneWindowController.m",
    "content": "//\n//  CloneWindowController.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import \"CloneWindowController.h\"\n#import <GitUpKit/GitUpKit.h>\n\n@interface CloneWindowControllerResult ()\n- (instancetype)initWithRepositoryURL:(NSURL*)url directoryPath:(NSString*)path recursive:(BOOL)recursive;\n@end\n\n@implementation CloneWindowControllerResult\n- (instancetype)initWithRepositoryURL:(NSURL*)url directoryPath:(NSString*)path recursive:(BOOL)recursive {\n  if ((self = [super init])) {\n    self.repositoryURL = url;\n    self.directoryPath = path;\n    self.recursive = recursive;\n  }\n  return self;\n}\n\n- (BOOL)invalidRepository {\n  return self.repositoryURL == nil;\n}\n\n- (BOOL)emptyDirectoryPath {\n  return self.directoryPath == nil;\n}\n@end\n\n@interface CloneWindowController ()\n@property(nonatomic, weak) IBOutlet NSTextField* urlTextField;\n@property(nonatomic, weak) IBOutlet NSButton* cloneRecursiveButton;\n@property(nonatomic, readonly) BOOL urlExists;\n@property(nonatomic, readonly) BOOL recursive;\n@end\n\n@implementation CloneWindowController\n#pragma mark - Initialization\n- (instancetype)init {\n  return [super initWithWindowNibName:@\"CloneWindowController\"];\n}\n\n#pragma mark - Window Lifecycle\n- (void)beforeRunInModal {\n  self.urlTextField.stringValue = self.url;\n  self.cloneRecursiveButton.state = NSControlStateValueOn;\n}\n\n- (void)windowDidLoad {\n  [super windowDidLoad];\n  [self beforeRunInModal];\n}\n\n#pragma mark - Actions\n- (IBAction)dismissModal:(id)sender {\n  [NSApp stopModalWithCode:[(NSButton*)sender tag]];\n  [self close];\n}\n\n#pragma mark - Modal\n- (void)runModalForURL:(NSString*)url completion:(nonnull void (^)(CloneWindowControllerResult* _Nonnull))completion {\n  self.url = url;\n  if (self.windowLoaded) {\n    [self beforeRunInModal];\n  }\n  if ([NSApp runModalForWindow:self.window] && self.urlExists) {\n    NSURL* url = GCURLFromGitURL([self.urlTextField.stringValue stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet]);\n    if (url) {\n      NSString* name = [url.path.lastPathComponent stringByDeletingPathExtension];\n      NSSavePanel* savePanel = [NSSavePanel savePanel];\n      savePanel.title = NSLocalizedString(@\"Clone Repository\", nil);\n      savePanel.prompt = NSLocalizedString(@\"Clone\", nil);\n      savePanel.nameFieldLabel = NSLocalizedString(@\"Name:\", nil);\n      savePanel.nameFieldStringValue = name ? name : @\"\";\n      savePanel.showsTagField = NO;\n      if ([savePanel runModal] == NSModalResponseOK) {\n        NSString* path = savePanel.URL.path;\n        completion([[CloneWindowControllerResult alloc] initWithRepositoryURL:url directoryPath:path recursive:self.recursive]);\n      } else {\n        // empty directory path or cancel button pressed.\n        completion([[CloneWindowControllerResult alloc] initWithRepositoryURL:url directoryPath:nil recursive:self.recursive]);\n      }\n    } else {\n      // invalid repository\n      completion([[CloneWindowControllerResult alloc] initWithRepositoryURL:url directoryPath:nil recursive:self.recursive]);\n    }\n  } else {\n    completion(nil);\n  }\n}\n\n#pragma mark - Getters\n- (BOOL)urlExists {\n  return self.urlTextField.stringValue.length;\n}\n\n- (BOOL)recursive {\n  return self.cloneRecursiveButton.state;\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/Common.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#define MAKE_ERROR(message) [NSError errorWithDomain:@\"App\" code:-1 userInfo:@{NSLocalizedDescriptionKey : message}]\n\n#define kUserDefaultsKey_FirstLaunch @\"FirstLaunch\"  // BOOL\n#define kUserDefaultsKey_SkipInstallCLT @\"SkipInstallCLT\"  // BOOL\n#define kUserDefaultsKey_LastVersion @\"LastVersion\"  // NSUInteger\n#define kUserDefaultsKey_ReleaseChannel @\"ReleaseChannel\"  // NSString\n#define kUserDefaultsKey_CheckInterval @\"CheckInterval\"  // NSInteger\n#define kUserDefaultsKey_SimpleCommit @\"SimpleCommit\"  // BOOL\n#define kUserDefaultsKey_AskSetUpstreamOnPush @\"AskSetUpstreamOnPush\"  // BOOL\n#define kUserDefaultsKey_DisableSparkle @\"DisableSparkle\"  // BOOL\n#define kUserDefaultsKey_DiffWhitespaceMode @\"DiffWhitespaceMode\"  // NSUInteger\n#define kUserDefaultsKey_ShowWelcomeWindow @\"ShowWelcomeWindow\"  // BOOL\n#define kUserDefaultsKey_Theme @\"Theme\"  // NSString\n\n#define kRepositoryUserInfoKey_SkipSubmoduleCheck @\"SkipSubmoduleCheck\"  // BOOL\n#define kRepositoryUserInfoKey_MainWindowFrame @\"MainWindowFrame\"  // NSString\n#define kRepositoryUserInfoKey_IndexDiffs @\"IndexDiffs\"  // BOOL\n\n#define kURL_AppCast @\"https://raw.githubusercontent.com/git-up/GitUp/master/appcasts/%@/appcast.xml\"\n\n#define kURL_Issues @\"https://github.com/git-up/GitUp/issues\"\n#define kURL_Wiki @\"https://github.com/git-up/GitUp/wiki\"\n#define kURL_ReleaseNotes @\"https://github.com/git-up/GitUp/releases\"\n"
  },
  {
    "path": "GitUp/Application/Document.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\ntypedef NS_ENUM(NSInteger, CloneMode) {\n  kCloneMode_None = 0,\n  kCloneMode_Default,\n  kCloneMode_Recursive\n};\n\ntypedef NS_ENUM(NSInteger, WindowModeID) {\n  kWindowModeID_Map = 0,\n  kWindowModeID_Commit,\n  kWindowModeID_Stashes\n};\n\n@interface Document : NSDocument <NSUserInterfaceValidations>\n@property(nonatomic, strong) IBOutlet NSWindow* mainWindow;\n@property(nonatomic, strong) IBOutlet NSView* contentView;\n\n@property(nonatomic, weak) IBOutlet NSView* helpView;\n@property(nonatomic, strong) IBOutlet NSLayoutConstraint* helpViewToTabViewConstraint;\n@property(nonatomic, weak) IBOutlet NSTextField* helpTextField;\n@property(nonatomic, weak) IBOutlet NSButton* helpContinueButton;\n@property(nonatomic, weak) IBOutlet NSButton* helpDismissButton;\n@property(nonatomic, weak) IBOutlet NSButton* helpOpenButton;\n\n@property(nonatomic, weak) IBOutlet NSTabView* mainTabView;\n@property(nonatomic, weak) IBOutlet NSView* mapContainerView;\n\n@property(nonatomic, strong) IBOutlet NSView* mapView;\n@property(nonatomic, weak) IBOutlet NSView* mapControllerView;  // Temporary placeholder replaced by actual controller view at load time\n@property(nonatomic, weak) IBOutlet NSMenu* showMenu;\n@property(nonatomic, weak) IBOutlet NSTextField* infoTextField1;\n@property(nonatomic, weak) IBOutlet NSTextField* infoTextField2;\n@property(nonatomic, weak) IBOutlet NSTextField* progressTextField;\n@property(nonatomic, weak) IBOutlet NSProgressIndicator* progressIndicator;\n@property(nonatomic, weak) IBOutlet NSButton* pullButton;\n@property(nonatomic, weak) IBOutlet NSButton* pushButton;\n@property(nonatomic, weak) IBOutlet NSView* hiddenWarningView;\n\n@property(nonatomic, strong) IBOutlet NSView* tagsView;\n@property(nonatomic, weak) IBOutlet NSView* tagsControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* snapshotsView;\n@property(nonatomic, weak) IBOutlet NSView* snapshotsControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* reflogView;\n@property(nonatomic, weak) IBOutlet NSView* reflogControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* searchView;\n@property(nonatomic, weak) IBOutlet NSView* searchControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* ancestorsView;\n@property(nonatomic, weak) IBOutlet NSView* ancestorsControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* rewriteView;\n@property(nonatomic, weak) IBOutlet NSView* rewriteControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* splitView;\n@property(nonatomic, weak) IBOutlet NSView* splitControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* resolveView;\n@property(nonatomic, weak) IBOutlet NSView* resolveControllerView;  // Temporary placeholder replaced by actual controller view at load time\n\n@property(nonatomic, strong) IBOutlet NSView* resetView;\n@property(nonatomic, weak) IBOutlet NSButton* untrackedButton;\n\n@property(nonatomic, strong) IBOutlet NSWindow* settingsWindow;\n@property(nonatomic, weak) IBOutlet NSButton* indexDiffsButton;\n\n@property(nonatomic) CloneMode cloneMode;\n@property(nonatomic, readonly) NSString* windowMode;\n\n- (BOOL)setWindowModeID:(WindowModeID)modeID;\n- (BOOL)shouldCloseDocument;\n@end\n"
  },
  {
    "path": "GitUp/Application/Document.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"Document.h\"\n#import \"WindowController.h\"\n#import \"Common.h\"\n\n#import \"KeychainAccessor.h\"\n#import \"AuthenticationWindowController.h\"\n\n#import <GitUpKit/GitUpKit.h>\n#import <GitUpKit/XLFacilityMacros.h>\n\n#define kWindowModeString_Map @\"map\"\n#define kWindowModeString_Map_QuickView @\"quickview\"\n#define kWindowModeString_Map_Diff @\"diff\"\n#define kWindowModeString_Map_Rewrite @\"rewrite\"\n#define kWindowModeString_Map_Split @\"split\"\n#define kWindowModeString_Map_Resolve @\"resolve\"\n#define kWindowModeString_Map_Config @\"config\"\n#define kWindowModeString_Commit @\"commit\"\n#define kWindowModeString_Stashes @\"stashes\"\n\n#define kSideViewIdentifier_Search @\"search\"\n#define kSideViewIdentifier_Tags @\"tags\"\n#define kSideViewIdentifier_Snapshots @\"snapshots\"\n#define kSideViewIdentifier_Reflog @\"reflog\"\n#define kSideViewIdentifier_Ancestors @\"ancestors\"\n\n#define kRestorableStateKey_WindowMode @\"windowMode\"\n\n#define kSideViewAnimationDuration 0.15  // seconds\n\n#define kMaxAncestorCommits 1000\n\n#define kMaxProgressRefreshRate 10.0  // Hz\n\n#define kNavigateSegmentWidth 34.0\n#define kSearchFieldCompactWidth 190.0\n#define kSearchFieldExpandedWidth 238.0\n\ntypedef NS_ENUM(NSInteger, NavigationAction) {\n  kNavigationAction_Exit = 0,\n  kNavigationAction_Next,\n  kNavigationAction_Previous\n};\n\n@interface Document () <NSToolbarDelegate, NSTextFieldDelegate, GCLiveRepositoryDelegate, GIWindowControllerDelegate, GIMapViewControllerDelegate, GISnapshotListViewControllerDelegate, GIUnifiedReflogViewControllerDelegate, GICommitListViewControllerDelegate, GICommitRewriterViewControllerDelegate, GICommitSplitterViewControllerDelegate, GIConflictResolverViewControllerDelegate>\n@property(nonatomic, strong) AuthenticationWindowController* authenticationWindowController;\n@property(nonatomic) IBOutlet GICustomToolbarItem* navigateItem;\n@property(nonatomic) IBOutlet GICustomToolbarItem* titleItem;\n@property(nonatomic) IBOutlet NSToolbarItem* snapshotsItem;\n@property(nonatomic) IBOutlet NSSearchToolbarItem* searchItem;\n@end\n\nstatic NSDictionary* _helpPlist = nil;\n\nstatic inline NSString* _WindowModeStringFromID(WindowModeID mode) {\n  switch (mode) {\n    case kWindowModeID_Map:\n      return kWindowModeString_Map;\n    case kWindowModeID_Commit:\n      return kWindowModeString_Commit;\n    case kWindowModeID_Stashes:\n      return kWindowModeString_Stashes;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\nstatic inline WindowModeID _WindowModeIDFromString(NSString* mode) {\n  if ([mode isEqualToString:kWindowModeString_Map] || [mode isEqualToString:kWindowModeString_Map_QuickView] || [mode isEqualToString:kWindowModeString_Map_Diff] || [mode isEqualToString:kWindowModeString_Map_Rewrite] || [mode isEqualToString:kWindowModeString_Map_Split] || [mode isEqualToString:kWindowModeString_Map_Resolve] || [mode isEqualToString:kWindowModeString_Map_Config]) {\n    return kWindowModeID_Map;\n  }\n  if ([mode isEqualToString:kWindowModeString_Commit]) {\n    return kWindowModeID_Commit;\n  }\n  if ([mode isEqualToString:kWindowModeString_Stashes]) {\n    return kWindowModeID_Stashes;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return kWindowModeID_Map;\n}\n\nstatic inline BOOL _WindowModeIsPrimary(NSString* mode) {\n  return [mode isEqualToString:kWindowModeString_Map] || [mode isEqualToString:kWindowModeString_Commit] || [mode isEqualToString:kWindowModeString_Stashes];\n}\n\n@implementation Document {\n  WindowController* _windowController;\n  GIMapViewController* _mapViewController;\n  GICommitListViewController* _tagsViewController;\n  GISnapshotListViewController* _snapshotListViewController;\n  GIUnifiedReflogViewController* _unifiedReflogViewController;\n  GICommitListViewController* _searchResultsViewController;\n  GICommitListViewController* _ancestorsViewController;\n  GIQuickViewController* _quickViewController;\n  GIDiffViewController* _diffViewController;\n  GICommitRewriterViewController* _commitRewriterViewController;\n  GICommitSplitterViewController* _commitSplitterViewController;\n  GIConflictResolverViewController* _conflictResolverViewController;\n  GICommitViewController* _commitViewController;\n  GIStashListViewController* _stashListViewController;\n  GIConfigViewController* _configViewController;\n  GCLiveRepository* _repository;\n  NSNumberFormatter* _numberFormatter;\n  NSDateFormatter* _dateFormatter;\n  CALayer* _fixedSnapshotLayer;\n  CALayer* _animatingSnapshotLayer;\n  NSMutableArray* _quickViewCommits;\n  GCHistoryWalker* _quickViewAncestors;\n  GCHistoryWalker* _quickViewDescendants;\n  NSUInteger _quickViewIndex;\n  BOOL _searchReady;\n  BOOL _preventSelectionLoopback;\n  NSResponder* _savedFirstResponder;\n  id _lastHEADBranch;\n  BOOL _checkingForChanges;\n  CFRunLoopTimerRef _checkTimer;\n  NSDictionary* _updatedReferences;\n  NSDictionary* _stateAttributes;\n  BOOL _ready;\n  NSInteger _resolvingConflicts;\n  NSString* _helpIdentifier;\n  NSInteger _helpIndex;\n  NSURL* _helpURL;\n  BOOL _helpHEADDisabled;\n  BOOL _indexing;\n  BOOL _abortIndexing;\n}\n\n#pragma mark - Properties\n- (AuthenticationWindowController*)authenticationWindowController {\n  if (!_authenticationWindowController) {\n    _authenticationWindowController = [[AuthenticationWindowController alloc] init];\n  }\n  return _authenticationWindowController;\n}\n\n#pragma mark - Initialize\n+ (void)initialize {\n  NSString* path = [[NSBundle mainBundle] pathForResource:@\"Help\" ofType:@\"plist\"];\n  if (path) {\n    NSData* data = [NSData dataWithContentsOfFile:path];\n    if (data) {\n      _helpPlist = [NSPropertyListSerialization propertyListWithData:data options:NSPropertyListImmutable format:NULL error:NULL];\n    }\n  }\n  XLOG_DEBUG_CHECK(_helpPlist);\n}\n\nstatic void _CheckTimerCallBack(CFRunLoopTimerRef timer, void* info) {\n  @autoreleasepool {\n    [(__bridge Document*)info checkForChanges:nil];\n  }\n}\n\n- (instancetype)init {\n  if ((self = [super init])) {\n    _numberFormatter = [[NSNumberFormatter alloc] init];\n    _numberFormatter.locale = [NSLocale localeWithLocaleIdentifier:@\"en_US\"];\n    _numberFormatter.numberStyle = NSNumberFormatterDecimalStyle;\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.locale = [NSLocale localeWithLocaleIdentifier:@\"en_US\"];\n    _dateFormatter.dateStyle = NSDateFormatterLongStyle;\n    _dateFormatter.timeStyle = NSDateFormatterMediumStyle;\n\n    CFRunLoopTimerContext context = {0, (__bridge void*)self, NULL, NULL, NULL};\n    _checkTimer = CFRunLoopTimerCreate(kCFAllocatorDefault, HUGE_VALF, HUGE_VALF, 0, 0, _CheckTimerCallBack, &context);\n    CFRunLoopAddTimer(CFRunLoopGetMain(), _checkTimer, kCFRunLoopCommonModes);\n\n    [[NSUserDefaults standardUserDefaults] addObserver:self forKeyPath:kUserDefaultsKey_DiffWhitespaceMode options:0 context:(__bridge void*)[Document class]];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didBecomeActive:) name:NSApplicationDidBecomeActiveNotification object:nil];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_didResignActive:) name:NSApplicationDidResignActiveNotification object:nil];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationDidResignActiveNotification object:nil];\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationDidBecomeActiveNotification object:nil];\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:kUserDefaultsKey_DiffWhitespaceMode context:(__bridge void*)[Document class]];\n\n  CFRunLoopTimerInvalidate(_checkTimer);\n  CFRelease(_checkTimer);\n\n#if DEBUG\n  dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n    XLOG_DEBUG_CHECK([GCLiveRepository allocatedCount] == [[[NSDocumentController sharedDocumentController] documents] count]);\n  });\n#endif\n}\n\n// WARNING: This is called *several* times when the default has been changed\n- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context {\n  if (context == (__bridge void*)[Document class]) {\n    if ([keyPath isEqualToString:kUserDefaultsKey_DiffWhitespaceMode]) {\n      _repository.diffWhitespaceMode = [[NSUserDefaults standardUserDefaults] integerForKey:kUserDefaultsKey_DiffWhitespaceMode];\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  } else {\n    [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];\n  }\n}\n\n- (BOOL)readFromURL:(NSURL*)url ofType:(NSString*)typeName error:(NSError**)outError {\n  BOOL success = NO;\n  _repository = [[GCLiveRepository alloc] initWithExistingLocalRepository:url.path error:outError];\n  if (_repository) {\n    if (_repository.bare) {\n      if (outError) {\n        *outError = MAKE_ERROR(@\"Bare repositories are not supported at this time\");\n      }\n    } else {\n#if DEBUG\n      if ([NSEvent modifierFlags] & NSEventModifierFlagOption) {\n        [[NSFileManager defaultManager] removeItemAtPath:_repository.privateAppDirectoryPath error:NULL];\n        XLOG_WARNING(@\"Resetting private data for repository \\\"%@\\\"\", _repository.repositoryPath);\n      }\n#endif\n      _repository.delegate = self;\n      _repository.undoManager = self.undoManager;\n      _repository.snapshotsEnabled = YES;\n      if ([NSApp isActive]) {\n        [_repository notifyRepositoryChanged];  // Otherwise -didBecomeActive: will take care of it\n      } else {\n        _repository.automaticSnapshotsEnabled = YES;  // TODO: Is this a good idea?\n      }\n      _repository.diffWhitespaceMode = [[NSUserDefaults standardUserDefaults] integerForKey:kUserDefaultsKey_DiffWhitespaceMode];\n\n#if DEBUG\n      dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{\n        XLOG_DEBUG_CHECK([GCLiveRepository allocatedCount] == [[[NSDocumentController sharedDocumentController] documents] count]);\n      });\n#endif\n\n      success = YES;\n    }\n  }\n  return success;\n}\n\n- (void)closeAndSaveCurrentWindowFrame:(BOOL)shouldSaveCurrentWindowFrame {\n  CFRunLoopTimerSetNextFireDate(_checkTimer, HUGE_VALF);\n\n  _repository.delegate = nil;  // Make sure that if the GCLiveRepository is still around afterwards, it won't call back to the dealloc'ed document\n\n  if (shouldSaveCurrentWindowFrame && _mainWindow.isVisible) {\n    [_repository setUserInfo:_mainWindow.stringWithSavedFrame forKey:kRepositoryUserInfoKey_MainWindowFrame];\n  }\n\n  [super close];\n}\n\n- (void)close {\n  [self closeAndSaveCurrentWindowFrame:YES];\n}\n\n- (void)makeWindowControllers {\n  _windowController = [[WindowController alloc] initWithWindowNibName:@\"Document\" owner:self];\n  _windowController.delegate = self;\n  [self addWindowController:_windowController];\n}\n\n// This is called when opening documents or attempting to open a document already opened\n- (void)showWindows {\n  [super showWindows];\n\n  if (!_ready) {\n    [self performSelector:@selector(_documentDidOpen:) withObject:nil afterDelay:0.0];\n    _ready = YES;\n  }\n}\n\n- (void)windowControllerDidLoadNib:(NSWindowController*)windowController {\n  CGFloat fontSize = _infoTextField2.font.pointSize;\n  NSMutableParagraphStyle* style = [[NSMutableParagraphStyle alloc] init];\n  style.alignment = NSTextAlignmentCenter;\n  _stateAttributes = @{NSParagraphStyleAttributeName : style, NSForegroundColorAttributeName : NSColor.systemRedColor, NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]};\n\n  NSString* frameString = [_repository userInfoForKey:kRepositoryUserInfoKey_MainWindowFrame];\n  if (frameString) {\n    [_mainWindow setFrameFromString:frameString];\n  }\n\n  NSLayoutConstraint* searchFieldPreferredWidth = [_searchItem.searchField.widthAnchor constraintEqualToConstant:kSearchFieldCompactWidth];\n  searchFieldPreferredWidth.priority = NSLayoutPriorityDefaultHigh - 20;\n  NSLayoutConstraint* searchFieldMaxWidth = [_searchItem.searchField.widthAnchor constraintLessThanOrEqualToConstant:kSearchFieldExpandedWidth];\n  [NSLayoutConstraint activateConstraints:@[ searchFieldPreferredWidth, searchFieldMaxWidth ]];\n  \n  _helpViewToTabViewConstraint.active = NO;\n\n  _mapViewController = [[GIMapViewController alloc] initWithRepository:_repository];\n  _mapViewController.delegate = self;\n  [_mapControllerView replaceWithView:_mapViewController.view];\n  _mapView.frame = _mapContainerView.bounds;\n  [_mapContainerView addSubview:_mapView];\n  XLOG_DEBUG_CHECK(_mapContainerView.subviews.firstObject == _mapView);\n  [self _updateStatusBar];\n\n  _tagsViewController = [[GICommitListViewController alloc] initWithRepository:_repository];\n  _tagsViewController.delegate = self;\n  _tagsViewController.emptyLabel = NSLocalizedString(@\"No Tags\", nil);\n  [_tagsControllerView replaceWithView:_tagsViewController.view];\n\n  _snapshotListViewController = [[GISnapshotListViewController alloc] initWithRepository:_repository];\n  _snapshotListViewController.delegate = self;\n  [_snapshotsControllerView replaceWithView:_snapshotListViewController.view];\n\n  _unifiedReflogViewController = [[GIUnifiedReflogViewController alloc] initWithRepository:_repository];\n  _unifiedReflogViewController.delegate = self;\n  [_reflogControllerView replaceWithView:_unifiedReflogViewController.view];\n\n  _ancestorsViewController = [[GICommitListViewController alloc] initWithRepository:_repository];\n  _ancestorsViewController.delegate = self;\n  [_ancestorsControllerView replaceWithView:_ancestorsViewController.view];\n\n  _searchResultsViewController = [[GICommitListViewController alloc] initWithRepository:_repository];\n  _searchResultsViewController.delegate = self;\n  _searchResultsViewController.emptyLabel = NSLocalizedString(@\"No Results\", nil);\n  [_searchControllerView replaceWithView:_searchResultsViewController.view];\n\n  _quickViewController = [[GIQuickViewController alloc] initWithRepository:_repository];\n  NSTabViewItem* quickItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Map_QuickView]];\n  quickItem.view = _quickViewController.view;\n\n  _diffViewController = [[GIDiffViewController alloc] initWithRepository:_repository];\n  NSTabViewItem* diffItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Map_Diff]];\n  diffItem.view = _diffViewController.view;\n\n  _commitRewriterViewController = [[GICommitRewriterViewController alloc] initWithRepository:_repository];\n  _commitRewriterViewController.delegate = self;\n  [_rewriteControllerView replaceWithView:_commitRewriterViewController.view];\n  NSTabViewItem* rewriteItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Map_Rewrite]];\n  rewriteItem.view = _rewriteView;\n\n  _commitSplitterViewController = [[GICommitSplitterViewController alloc] initWithRepository:_repository];\n  _commitSplitterViewController.delegate = self;\n  [_splitControllerView replaceWithView:_commitSplitterViewController.view];\n  NSTabViewItem* splitItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Map_Split]];\n  splitItem.view = _splitView;\n\n  _conflictResolverViewController = [[GIConflictResolverViewController alloc] initWithRepository:_repository];\n  _conflictResolverViewController.delegate = self;\n  [_resolveControllerView replaceWithView:_conflictResolverViewController.view];\n  NSTabViewItem* resolveItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Map_Resolve]];\n  resolveItem.view = _resolveView;\n\n  if ([[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsKey_SimpleCommit]) {\n    _commitViewController = [[GISimpleCommitViewController alloc] initWithRepository:_repository];\n  } else {\n    _commitViewController = [[GIAdvancedCommitViewController alloc] initWithRepository:_repository];\n  }\n  _commitViewController.delegate = self;\n  NSTabViewItem* commitItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Commit]];\n  commitItem.view = _commitViewController.view;\n\n  _stashListViewController = [[GIStashListViewController alloc] initWithRepository:_repository];\n  NSTabViewItem* stashesItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Stashes]];\n  stashesItem.view = _stashListViewController.view;\n\n  _configViewController = [[GIConfigViewController alloc] initWithRepository:_repository];\n  NSTabViewItem* configItem = [_mainTabView tabViewItemAtIndex:[_mainTabView indexOfTabViewItemWithIdentifier:kWindowModeString_Map_Config]];\n  configItem.view = _configViewController.view;\n\n  // This always uses a dark appearance.\n  _hiddenWarningView.layer.backgroundColor = [[NSColor colorWithDeviceRed:0.0 green:0.0 blue:0.0 alpha:0.5] CGColor];\n  _hiddenWarningView.layer.cornerRadius = 10.0;\n\n  [self _setSearchFieldPlaceholder:NSLocalizedString(@\"Preparing Search…\", nil)];\n\n  for (NSMenuItem* item in _showMenu.itemArray) {  // We don't want first responder targets\n    if (item.target == nil && item.action != NULL) {\n      item.target = _mapViewController;\n    }\n  }\n  _pullButton.target = _mapViewController;\n  _pushButton.target = _mapViewController;\n\n  [self _setWindowMode:kWindowModeString_Map];\n}\n\n// Override -updateChangeCount: which is trigged by NSUndoManager to do nothing and not mark document as updated\n- (void)updateChangeCount:(NSDocumentChangeType)change {\n}\n\n- (BOOL)presentError:(NSError*)error {\n  if (error == nil) {\n    XLOG_DEBUG_UNREACHABLE();\n    return NO;\n  }\n\n  if ([error.domain isEqualToString:GCErrorDomain] && ((error.code == kGCErrorCode_UserCancelled) || (error.code == kGCErrorCode_User))) {\n    return NO;\n  }\n\n  if ([error.domain isEqualToString:GCErrorDomain] && (error.code == -1) && [error.localizedDescription isEqualToString:@\"authentication required but no callback set\"]) {  // TODO: Avoid hardcoding libgit2 error\n    NSAlert* alert = [[NSAlert alloc] init];\n    alert.messageText = NSLocalizedString(@\"Unable to authenticate with remote!\", nil);\n    alert.informativeText = NSLocalizedString(@\"If using an SSH remote, make sure you have added your key to the ssh-agent, then try again.\", nil);\n    [alert addButtonWithTitle:NSLocalizedString(@\"OK\", nil)];\n    alert.type = kGIAlertType_Stop;\n    [alert beginSheetModalForWindow:_mainWindow completionHandler:NULL];\n    return NO;\n  }\n\n  return [super presentError:error];\n}\n\n- (void)canCloseDocumentWithDelegate:(id)delegate shouldCloseSelector:(SEL)shouldCloseSelector contextInfo:(void*)contextInfo {\n  if (![self shouldCloseDocument]) {\n    typedef void (*CallbackIMP)(id, SEL, NSDocument*, BOOL, void*);\n    CallbackIMP callback = (CallbackIMP)[delegate methodForSelector:shouldCloseSelector];\n    callback(delegate, shouldCloseSelector, self, NO, contextInfo);\n  } else {\n    [super canCloseDocumentWithDelegate:delegate shouldCloseSelector:shouldCloseSelector contextInfo:contextInfo];\n  }\n}\n\n- (void)presentedItemDidMoveToURL:(NSURL*)newURL {\n  dispatch_async(dispatch_get_main_queue(), ^{\n    [self closeAndSaveCurrentWindowFrame:NO];\n\n    NSDocumentController* controller = NSDocumentController.sharedDocumentController;\n    [controller openDocumentWithContentsOfURL:newURL\n                                      display:YES\n                            completionHandler:^(NSDocument* document, BOOL documentWasAlreadyOpen, NSError* error) {\n                              if (document) {\n                                XLOG_DEBUG(@\"Reopened document for rename to \\\"%@\\\"\", newURL.path);\n                              } else {\n                                [controller presentError:error];\n                              }\n                            }];\n  });\n}\n\n#pragma mark - Utilities\n\n- (void)_resetCheckTimer {\n  CFTimeInterval checkInterval = [[NSUserDefaults standardUserDefaults] doubleForKey:kUserDefaultsKey_CheckInterval];\n  if (checkInterval > 0) {\n    CFRunLoopTimerSetNextFireDate(_checkTimer, CFAbsoluteTimeGetCurrent() + checkInterval);\n  }\n}\n\n- (void)_performCloneUsingRemote:(GCRemote*)remote recursive:(BOOL)recursive {\n  [_repository setUndoActionName:NSLocalizedString(@\"Clone\", nil)];\n  [_repository suspendHistoryUpdates];\n  [_repository performOperationInBackgroundWithReason:@\"clone\"\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** outError) {\n        return [repository cloneUsingRemote:remote recursive:recursive error:outError];\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        [_repository resumeHistoryUpdates];\n        if (!success) {\n          [self presentError:error];\n        }\n        [self _prepareSearch];\n        [self _resetCheckTimer];\n      }];\n}\n\n- (void)_initializeSubmodules {\n  [_repository performOperationInBackgroundWithReason:nil\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** outError) {\n        return [repository initializeAllSubmodules:YES error:outError];\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        if (!success) {\n          [self presentError:error];\n        }\n        [self _resetCheckTimer];\n      }];\n}\n\n- (void)_prepareSearch {\n  _indexing = YES;\n  _abortIndexing = NO;\n  [[NSProcessInfo processInfo] disableSuddenTermination];\n  NSUInteger totalCount = _repository.history.allCommits.count;\n  __block float lastProgress = 0.0;\n  __block CFTimeInterval lastTime = 0.0;\n  [_repository prepareSearchInBackground:[[_repository userInfoForKey:kRepositoryUserInfoKey_IndexDiffs] boolValue]\n      withProgressHandler:^BOOL(BOOL firstUpdate, NSUInteger addedCommits, NSUInteger removedCommits) {\n        if (firstUpdate) {\n          float progress = MIN(roundf(1000 * (float)addedCommits / (float)totalCount) / 10, 100.0);\n          if (progress > lastProgress) {\n            CFTimeInterval time = CFAbsoluteTimeGetCurrent();\n            if (time > lastTime + 1.0 / kMaxProgressRefreshRate) {\n              dispatch_async(dispatch_get_main_queue(), ^{\n                if (progress >= 100) {\n                  [self _setSearchFieldPlaceholder:NSLocalizedString(@\"Finishing…\", nil)];\n                } else {\n                  [self _setSearchFieldPlaceholder:[NSString stringWithFormat:NSLocalizedString(@\"Preparing (%.1f%%)…\", nil), progress]];\n                }\n              });\n              lastProgress = progress;\n              lastTime = time;\n            }\n          }\n        }\n        return !_abortIndexing;\n      }\n      completion:^(BOOL success, NSError* error) {\n        if (!_abortIndexing) {  // If indexing has been aborted, this means the document has already been closed, so don't attempt to do *anything*\n          if (success) {\n            _searchReady = YES;\n            [self _setSearchFieldPlaceholder:NSLocalizedString(@\"Search Repository…\", nil)];\n            [_searchItem validate];\n          } else {\n            [self _setSearchFieldPlaceholder:NSLocalizedString(@\"Search Unavailable\", nil)];\n            [self presentError:error];\n          }\n          [[NSProcessInfo processInfo] enableSuddenTermination];\n          _indexing = NO;\n        }\n      }];\n}\n\n// TODO: Search field placeholder strings must all be about the same length since NSSearchField doesn't recenter updated placeholder strings properly\n- (void)_documentDidOpen:(id)restored {\n  XLOG_DEBUG_CHECK(_mainWindow.visible);\n\n  // Work around a bug of NSSearchField which is always enabled after restoration even if set to disabled during restoration\n  [self _updateToolBar];\n\n  // Check if a clone is needed\n  if (_cloneMode != kCloneMode_None) {\n    XLOG_DEBUG_CHECK(_repository.empty && !restored);\n    NSError* error;\n    GCRemote* remote = [_repository lookupRemoteWithName:@\"origin\" error:&error];\n    if (remote) {\n      [self _performCloneUsingRemote:remote recursive:(_cloneMode == kCloneMode_Recursive)];\n    } else {\n      [self presentError:error];\n    }\n    return;  // Don't do anything else\n  }\n\n  // Prepare search\n  [self _prepareSearch];\n\n  // Check for uninitialized submodules\n  if (!restored && ![[_repository userInfoForKey:kRepositoryUserInfoKey_SkipSubmoduleCheck] boolValue]) {\n    NSError* error;\n    if (![_repository checkAllSubmodulesInitialized:YES error:&error]) {\n      if ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_SubmoduleUninitialized)) {\n        NSAlert* alert = [[NSAlert alloc] init];\n        alert.messageText = NSLocalizedString(@\"Do you want to initialize submodules?\", nil);\n        alert.informativeText = NSLocalizedString(@\"One or more submodules in this repository are uninitialized.\", nil);\n        [alert addButtonWithTitle:NSLocalizedString(@\"Initialize\", nil)];\n        [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n        alert.type = kGIAlertType_Caution;\n        alert.showsSuppressionButton = YES;\n        [alert beginSheetModalForWindow:_mainWindow\n                      completionHandler:^(NSModalResponse returnCode) {\n                        if (alert.suppressionButton.state) {\n                          [_repository setUserInfo:@(YES) forKey:kRepositoryUserInfoKey_SkipSubmoduleCheck];\n                        }\n                        if (returnCode == NSAlertFirstButtonReturn) {\n                          [self _initializeSubmodules];\n                        }\n                      }];\n        return;  // Don't do anything else\n      } else {\n        [self presentError:error];\n      }\n    }\n  }\n\n  // Otherwise check for changes immediately\n  if ([[NSUserDefaults standardUserDefaults] doubleForKey:kUserDefaultsKey_CheckInterval] > 0) {\n    [self checkForChanges:nil];\n  }\n}\n\nstatic inline NSString* _FormatCommitCount(NSNumberFormatter* formatter, NSUInteger count) {\n  if (count == 0) {\n    return NSLocalizedString(@\"0 commits\", nil);\n  } else if (count == 1) {\n    return NSLocalizedString(@\"1 commit\", nil);\n  }\n  return [NSString stringWithFormat:NSLocalizedString(@\"%@ commits\", nil), [formatter stringFromNumber:@(count)]];\n}\n\n- (void)_updateTitleBar {\n  [_windowController synchronizeWindowTitleWithDocumentName];\n  NSUInteger totalCount = _repository.history.allCommits.count;\n  NSString* countText = [NSString stringWithFormat:NSLocalizedString(@\"%@\", nil), _FormatCommitCount(_numberFormatter, totalCount)];\n  _titleItem.primaryControl.stringValue = _windowController.window.title;\n  _titleItem.secondaryControl.stringValue = countText;\n  _windowController.window.subtitle = countText;\n}\n\nstatic NSString* _StringFromRepositoryState(GCRepositoryState state) {\n  switch (state) {\n    case kGCRepositoryState_None:\n      return nil;\n    case kGCRepositoryState_Merge:\n      return NSLocalizedString(@\"merge\", nil);\n    case kGCRepositoryState_Revert:\n      return NSLocalizedString(@\"revert\", nil);\n    case kGCRepositoryState_CherryPick:\n      return NSLocalizedString(@\"cherry-pick\", nil);\n    case kGCRepositoryState_Bisect:\n      return NSLocalizedString(@\"bisect\", nil);\n    case kGCRepositoryState_Rebase:\n    case kGCRepositoryState_RebaseInteractive:\n    case kGCRepositoryState_RebaseMerge:\n      return NSLocalizedString(@\"rebase\", nil);\n    case kGCRepositoryState_ApplyMailbox:\n    case kGCRepositoryState_ApplyMailboxOrRebase:\n      return NSLocalizedString(@\"apply mailbox\", nil);\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\n- (void)_updateStatusBar {\n  if (_mapViewController.previewHistory) {\n    _infoTextField1.font = [NSFont boldSystemFontOfSize:11];\n    _infoTextField1.stringValue = NSLocalizedString(@\"Snapshot Preview\", nil);\n    NSDate* date = _snapshotListViewController.selectedSnapshot.date;\n    if (date) {\n      _infoTextField2.stringValue = [_dateFormatter stringFromDate:date];\n    } else {\n      _infoTextField2.stringValue = NSLocalizedString(@\"No snapshot selected\", nil);\n    }\n\n    _pullButton.hidden = YES;\n    _pushButton.hidden = YES;\n  } else {\n    BOOL isBehind = NO;\n    NSString* state = [[_StringFromRepositoryState(_repository.state) capitalizedString] stringByAppendingString:NSLocalizedString(@\" in progress\", nil)];\n    NSAttributedString* stateString = state ? [[NSAttributedString alloc] initWithString:state attributes:_stateAttributes] : nil;\n    if (_repository.history.HEADDetached) {\n      _infoTextField1.font = [NSFont boldSystemFontOfSize:11];\n      _infoTextField1.stringValue = NSLocalizedString(@\"Not on any branch\", nil);\n\n      if (stateString) {\n        _infoTextField2.attributedStringValue = stateString;\n      } else {\n        if (_repository.history.HEADCommit) {\n          _infoTextField2.stringValue = [NSString stringWithFormat:NSLocalizedString(@\"Detached HEAD at commit %@\", nil), _repository.history.HEADCommit.shortSHA1];\n        } else {\n          _infoTextField2.stringValue = NSLocalizedString(@\"Repository is empty\", nil);\n        }\n      }\n    } else {\n      GCHistoryLocalBranch* branch = _repository.history.HEADBranch;\n      GCBranch* upstream = branch.upstream;\n      if (upstream) {\n        CGFloat fontSize = _infoTextField1.font.pointSize;\n        NSMutableAttributedString* string = [[NSMutableAttributedString alloc] init];\n        [string beginEditing];\n        [string appendString:NSLocalizedString(@\"On branch \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n        [string appendString:branch.name withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        [string appendString:NSLocalizedString(@\" • tracking upstream \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n        [string appendString:upstream.name withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        [string setAlignment:NSTextAlignmentCenter range:NSMakeRange(0, string.length)];\n        [string endEditing];\n        _infoTextField1.attributedStringValue = string;\n\n        if (stateString) {\n          _infoTextField2.attributedStringValue = stateString;\n        } else {\n          GCHistoryCommit* localTip = _repository.history.HEADCommit;\n          GCHistoryCommit* upstreamTip = [(GCHistoryLocalBranch*)upstream tipCommit];\n          if ([localTip isEqualToCommit:upstreamTip]) {\n            _infoTextField2.stringValue = NSLocalizedString(@\"Up-to-date\", nil);\n          } else {\n            GCCommit* commit = [_repository findMergeBaseForCommits:@[ localTip, upstreamTip ] error:NULL];\n            GCHistoryCommit* ancestor = commit ? [_repository.history historyCommitForCommit:commit] : nil;\n            if (ancestor) {\n              if ([ancestor isEqualToCommit:localTip]) {\n                NSUInteger count = [_repository.history countAncestorCommitsFromCommit:upstreamTip toCommit:localTip];\n                _infoTextField2.stringValue = [NSString stringWithFormat:NSLocalizedString(@\" %@ behind\", nil), _FormatCommitCount(_numberFormatter, count)];\n                isBehind = YES;\n              } else if ([ancestor isEqualToCommit:upstreamTip]) {\n                NSUInteger count = [_repository.history countAncestorCommitsFromCommit:localTip toCommit:upstreamTip];\n                _infoTextField2.stringValue = [NSString stringWithFormat:NSLocalizedString(@\" %@ ahead\", nil), _FormatCommitCount(_numberFormatter, count)];\n              } else {\n                NSUInteger count1 = [_repository.history countAncestorCommitsFromCommit:localTip toCommit:ancestor];\n                NSUInteger count2 = [_repository.history countAncestorCommitsFromCommit:upstreamTip toCommit:ancestor];\n                _infoTextField2.stringValue = [NSString stringWithFormat:NSLocalizedString(@\" %@ ahead, %@ behind\", nil), _FormatCommitCount(_numberFormatter, count1), _FormatCommitCount(_numberFormatter, count2)];\n                isBehind = YES;\n              }\n            } else {\n              _infoTextField2.stringValue = @\"\";\n              XLOG_DEBUG_UNREACHABLE();\n            }\n          }\n        }\n\n        NSString* upstreamSHA1 = [_updatedReferences objectForKey:upstream.fullName];\n        if (upstreamSHA1 && ![upstreamSHA1 isEqualToString:[[(GCHistoryLocalBranch*)upstream tipCommit] SHA1]]) {\n          isBehind = YES;\n        }\n      } else {\n        CGFloat fontSize = _infoTextField1.font.pointSize;\n        NSMutableAttributedString* string = [[NSMutableAttributedString alloc] init];\n        [string beginEditing];\n        [string appendString:NSLocalizedString(@\"On branch \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n        [string appendString:branch.name withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        [string setAlignment:NSTextAlignmentCenter range:NSMakeRange(0, string.length)];\n        [string endEditing];\n        _infoTextField1.attributedStringValue = string;\n\n        if (stateString) {\n          _infoTextField2.attributedStringValue = stateString;\n        } else {\n          _infoTextField2.stringValue = NSLocalizedString(@\"No upstream configured\", nil);\n        }\n      }\n    }\n\n    _pullButton.hidden = NO;\n    _pullButton.enabled = [_mapViewController validateUserInterfaceItem:(id)_pullButton];\n    NSRect frame = _pullButton.frame;\n    if (isBehind) {\n      _pullButton.image = [NSImage imageNamed:@\"icon_action_fetch_new\"];\n      _pullButton.toolTip = NSLocalizedString(@\"Local tip is behind - pull current branch from upstream\", nil);\n      _pullButton.frame = NSMakeRect(frame.origin.x + frame.size.width - 53, frame.origin.y, 53, frame.size.height);\n    } else {\n      _pullButton.image = [NSImage imageNamed:@\"icon_action_fetch\"];\n      _pullButton.frame = NSMakeRect(frame.origin.x + frame.size.width - 37, frame.origin.y, 37, frame.size.height);\n    }\n    _pushButton.hidden = NO;\n    _pushButton.enabled = [_mapViewController validateUserInterfaceItem:(id)_pushButton];\n  }\n}\n\n// NSToolbar automatic validation fires very often and at unpredictable times so we just do everything by hand\n- (void)_updateToolBar {\n  [_mainWindow.toolbar validateVisibleItems];\n\n  NSSegmentedControl* segmentedControl = self.modeAndNavigationSegmentedControl;\n  NSString* windowMode = self.windowMode;\n  WindowModeID windowModeID = _WindowModeIDFromString(windowMode);\n  if (_WindowModeIsPrimary(windowMode)) {\n    [segmentedControl setImage:[NSImage imageNamed:@\"circle.2.line.diagonal\"] forSegment:kWindowModeID_Map];\n    [segmentedControl setImage:[NSImage imageWithSystemSymbolName:@\"square.and.pencil\" accessibilityDescription:nil] forSegment:kWindowModeID_Commit];\n    [segmentedControl setImage:[NSImage imageWithSystemSymbolName:@\"line.horizontal.3\" accessibilityDescription:nil] forSegment:kWindowModeID_Stashes];\n    [segmentedControl setEnabled:YES forSegment:kWindowModeID_Map];\n    [segmentedControl setEnabled:YES forSegment:kWindowModeID_Commit];\n    [segmentedControl setEnabled:YES forSegment:kWindowModeID_Stashes];\n    segmentedControl.trackingMode = NSSegmentSwitchTrackingSelectOne;\n    [segmentedControl setSelectedSegment:windowModeID];\n    segmentedControl.action = @selector(switchMode:);\n  } else {\n    [segmentedControl setImage:[NSImage imageWithSystemSymbolName:@\"arrow.down.forward.and.arrow.up.backward\" accessibilityDescription:nil] forSegment:kNavigationAction_Exit];\n    [segmentedControl setImage:[NSImage imageWithSystemSymbolName:@\"chevron.up\" accessibilityDescription:nil] forSegment:kNavigationAction_Next];\n    [segmentedControl setImage:[NSImage imageWithSystemSymbolName:@\"chevron.down\" accessibilityDescription:nil] forSegment:kNavigationAction_Previous];\n    segmentedControl.trackingMode = NSSegmentSwitchTrackingMomentary;\n    segmentedControl.action = @selector(navigate:);\n  }\n}\n\n- (NSSegmentedControl*)modeAndNavigationSegmentedControl {\n  return (NSSegmentedControl*)self.navigateItem.primaryControl;\n}\n\n- (void)_didBecomeActive:(NSNotification*)notification {\n  /**\n   async dispatch on the main queue so we don't block\n   NSApplicationDidBecomeActiveNotification while updating the repos\n   */\n  dispatch_async(dispatch_get_main_queue(), ^{\n    [_repository notifyRepositoryChanged];  // Make sure we are up-to-date right now\n\n    if (_repository.automaticSnapshotsEnabled) {\n      [_repository setUndoActionName:NSLocalizedString(@\"External Changes\", nil)];\n      _repository.automaticSnapshotsEnabled = NO;\n    }\n  });\n}\n\n- (void)_didResignActive:(NSNotification*)notification {\n  if (![_windowMode isEqualToString:kWindowModeString_Map_Resolve]) {  // Don't take automatic snapshots while conflict resolver is on screen\n    _repository.automaticSnapshotsEnabled = YES;\n  }\n}\n\n- (void)_setWindowMode:(NSString*)mode {\n  if (![_windowMode isEqualToString:mode]) {\n    if ([_windowMode isEqualToString:kWindowModeString_Map]) {\n      if (![_mainWindow.firstResponder isKindOfClass:[NSWindow class]]) {\n        _savedFirstResponder = _mainWindow.firstResponder;\n      } else {\n        _savedFirstResponder = nil;\n      }\n    }\n\n    _windowMode = mode;\n    [_mainTabView selectTabViewItemWithIdentifier:_windowMode];\n\n    // Don't let AppKit guess / restore first responder\n    if ([_windowMode isEqualToString:kWindowModeString_Map]) {\n      if (_savedFirstResponder) {\n        [_mainWindow makeFirstResponder:_savedFirstResponder];\n      } else {\n        [_mainWindow makeFirstResponder:_mapViewController.preferredFirstResponder];\n      }\n    } else if ([_windowMode isEqualToString:kWindowModeString_Map_Rewrite]) {\n      [_mainWindow makeFirstResponder:_commitRewriterViewController.preferredFirstResponder];\n    } else if ([_windowMode isEqualToString:kWindowModeString_Map_Split]) {\n      [_mainWindow makeFirstResponder:_commitSplitterViewController.preferredFirstResponder];\n    } else if ([_windowMode isEqualToString:kWindowModeString_Map_Resolve]) {\n      [_mainWindow makeFirstResponder:_conflictResolverViewController.preferredFirstResponder];\n    } else {\n      GIViewController* viewController = [(GIView*)_mainTabView.selectedTabViewItem.view viewController];\n      [_mainWindow makeFirstResponder:viewController.preferredFirstResponder];\n    }\n\n    [self _updateTitleBar];\n    [self _updateToolBar];\n\n    if ([_windowMode isEqualToString:kWindowModeString_Map]) {\n      if (_searchView.superview) {\n        [self _showHelpWithIdentifier:kSideViewIdentifier_Search];\n      } else if (_tagsView.superview) {\n        [self _showHelpWithIdentifier:kSideViewIdentifier_Tags];\n      } else if (_snapshotsView.superview) {\n        [self _showHelpWithIdentifier:kSideViewIdentifier_Snapshots];\n      } else if (_reflogView.superview) {\n        [self _showHelpWithIdentifier:kSideViewIdentifier_Reflog];\n      } else if (_ancestorsView.superview) {\n        [self _showHelpWithIdentifier:kSideViewIdentifier_Ancestors];\n      } else {\n        [self _showHelpWithIdentifier:kWindowModeString_Map];\n      }\n    } else {\n      [self _showHelpWithIdentifier:_windowMode];\n    }\n  }\n}\n\n- (BOOL)setWindowModeID:(WindowModeID)modeID {\n  // LDD: Removed `&& _navigateItem.primaryControl.enabled`\n  if (!_mainWindow.attachedSheet) {\n    [self _setWindowMode:_WindowModeStringFromID(modeID)];\n    return YES;\n  }\n  return NO;\n}\n\n- (BOOL)shouldCloseDocument {\n  if (_windowController.hasModalView) {\n    NSBeep();\n    return NO;\n  }\n  if ([_windowMode isEqualToString:kWindowModeString_Map_Rewrite] || [_windowMode isEqualToString:kWindowModeString_Map_Split] || [_windowMode isEqualToString:kWindowModeString_Map_Resolve]) {\n    [_windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:NSLocalizedString(@\"You must finish or cancel before closing the repository\", nil)];\n    return NO;\n  }\n  if (_repository.hasBackgroundOperationInProgress) {\n    [_windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:NSLocalizedString(@\"The repository cannot be closed while a remote operation is in progress\", nil)];\n    return NO;\n  }\n  if (_indexing) {\n    NSAlert* alert = [[NSAlert alloc] init];\n    alert.messageText = NSLocalizedString(@\"Are you sure you want to close the repository?\", nil);\n    alert.informativeText = [NSString stringWithFormat:NSLocalizedString(@\"The repository \\\"%@\\\" is still being prepared for search. This can take up to a few minutes for large repositories.\", nil), self.displayName];\n    [alert addButtonWithTitle:NSLocalizedString(@\"Close\", nil)];\n    [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n    alert.type = kGIAlertType_Caution;\n    if ([alert runModal] == NSAlertSecondButtonReturn) {\n      return NO;\n    }\n    _abortIndexing = YES;\n  }\n  return YES;\n}\n\n- (void)_showHelpWithIdentifier:(NSString*)identifier {\n  BOOL showHelp = NO;\n  NSDictionary* dictionary = [_helpPlist objectForKey:identifier];\n  if (dictionary) {\n    NSArray* array = [dictionary objectForKey:@\"contents\"];\n    _helpIdentifier = identifier;\n    _helpIndex = [[NSUserDefaults standardUserDefaults] integerForKey:[NSString stringWithFormat:@\"HelpShown_%@\", _helpIdentifier.uppercaseString]];  // For backward compatibility\n    if (_helpIndex < (NSInteger)array.count) {\n      _helpTextField.stringValue = array[_helpIndex];\n      if (_helpIndex == (NSInteger)array.count - 1) {\n        _helpURL = [NSURL URLWithString:[dictionary objectForKey:@\"link\"]];\n        _helpContinueButton.hidden = YES;\n        _helpDismissButton.hidden = NO;\n        _helpOpenButton.hidden = NO;\n      } else {\n        _helpContinueButton.hidden = NO;\n        _helpDismissButton.hidden = YES;\n        _helpOpenButton.hidden = YES;\n      }\n      showHelp = YES;\n    }\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n  if (showHelp) {\n    _helpView.hidden = NO;\n    _helpViewToTabViewConstraint.active = YES;\n  } else if (!_helpView.hidden) {\n    _helpView.hidden = YES;\n    _helpViewToTabViewConstraint.active = NO;\n  }\n}\n\n- (void)_hideHelp:(BOOL)open {\n  [[NSUserDefaults standardUserDefaults] setInteger:(_helpIndex + 1) forKey:[NSString stringWithFormat:@\"HelpShown_%@\", _helpIdentifier.uppercaseString]];  // For backward compatibility\n\n  if (open && _helpURL) {\n    [[NSWorkspace sharedWorkspace] openURL:_helpURL];\n  }\n\n  [self _showHelpWithIdentifier:_helpIdentifier];\n}\n\n#pragma mark - QuickView\n\n- (void)_loadMoreAncestors {\n  if (![_quickViewAncestors iterateWithCommitBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n        [_quickViewCommits addObject:commit];\n      }]) {\n    _quickViewAncestors = nil;\n  }\n}\n\n- (void)_loadMoreDescendants {\n  if (![_quickViewDescendants iterateWithCommitBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n        [_quickViewCommits insertObject:commit atIndex:0];\n        _quickViewIndex += 1;  // We insert commits before the index too!\n      }]) {\n    _quickViewDescendants = nil;\n  }\n}\n\n- (void)_enterQuickViewWithHistoryCommit:(GCHistoryCommit*)commit commitList:(NSArray*)commitList {\n  [_repository suspendHistoryUpdates];  // We don't want the the history to change while in QuickView because of the walkers\n\n  _quickViewCommits = [[NSMutableArray alloc] init];\n  if (commitList) {\n    [_quickViewCommits addObjectsFromArray:commitList];\n    _quickViewIndex = [_quickViewCommits indexOfObjectIdenticalTo:commit];\n    XLOG_DEBUG_CHECK(_quickViewIndex != NSNotFound);\n  } else {\n    [_quickViewCommits addObject:commit];\n    _quickViewIndex = 0;\n    _quickViewAncestors = [_repository.history walkerForAncestorsOfCommits:@[ commit ]];\n    [self _loadMoreAncestors];\n    _quickViewDescendants = [_repository.history walkerForDescendantsOfCommits:@[ commit ]];\n    [self _loadMoreDescendants];\n  }\n\n  _quickViewController.commit = commit;\n\n  [self _setWindowMode:kWindowModeString_Map_QuickView];\n}\n\n- (BOOL)_hasPreviousQuickView {\n  return (_quickViewIndex + 1 < _quickViewCommits.count);\n}\n\n- (void)_previousQuickView {\n  _quickViewIndex += 1;\n  GCHistoryCommit* commit = _quickViewCommits[_quickViewIndex];\n  _quickViewController.commit = commit;\n  if (_searchView.superview) {\n    _searchResultsViewController.selectedCommit = commit;\n  } else {\n    [_mapViewController selectCommit:commit];\n  }\n  if (_quickViewIndex == _quickViewCommits.count - 1) {\n    [self _loadMoreAncestors];\n  }\n  [self _updateToolBar];\n}\n\n- (BOOL)_hasNextQuickView {\n  return (_quickViewIndex > 0);\n}\n\n- (void)_nextQuickView {\n  _quickViewIndex -= 1;\n  GCHistoryCommit* commit = _quickViewCommits[_quickViewIndex];\n  _quickViewController.commit = commit;\n  if (_searchView.superview) {\n    _searchResultsViewController.selectedCommit = commit;\n  } else {\n    [_mapViewController selectCommit:commit];\n  }\n  if (_quickViewIndex == 0) {\n    [self _loadMoreDescendants];\n  }\n  [self _updateToolBar];\n}\n\n- (void)_exitQuickView {\n  _quickViewCommits = nil;\n  _quickViewAncestors = nil;\n  _quickViewDescendants = nil;\n\n  [_repository resumeHistoryUpdates];\n\n  [self _setWindowMode:kWindowModeString_Map];\n}\n\n#pragma mark - Diff\n\n- (void)_enterDiffWithCommit:(GCCommit*)commit parentCommit:(GCCommit*)parentCommit {\n  [_diffViewController setCommit:commit withParentCommit:parentCommit];\n  [self _setWindowMode:kWindowModeString_Map_Diff];\n}\n\n- (void)_exitDiff {\n  [self _setWindowMode:kWindowModeString_Map];\n\n  [_diffViewController setCommit:nil withParentCommit:nil];  // Unload diff immediately\n}\n\n#pragma mark - Rewrite\n\n- (void)_enterRewriteWithCommit:(GCHistoryCommit*)commit {\n  _helpHEADDisabled = YES;\n\n  NSError* error;\n  if (![_commitRewriterViewController startRewritingCommit:commit error:&error]) {\n    [self presentError:error];\n    _helpHEADDisabled = NO;\n    return;\n  }\n\n  [[NSProcessInfo processInfo] disableSuddenTermination];\n  [self _setWindowMode:kWindowModeString_Map_Rewrite];\n}\n\n// TODO: Rather than a convoluted API to ensure we can remove the GICommitRewriterViewController from the view hierarchy before doing the actual rewrite in case we need to show the GIConflictResolverViewController,\n// we should have a proper view controller system allowing to stack multiple view controllers\n- (void)_exitRewriteWithMessage:(NSString*)message {\n  [self _setWindowMode:kWindowModeString_Map];\n  [[NSProcessInfo processInfo] enableSuddenTermination];\n\n  NSError* error;\n  if ((message && ![_commitRewriterViewController finishRewritingCommitWithMessage:message error:&error]) || (!message && ![_commitRewriterViewController cancelRewritingCommit:&error])) {\n    [self presentError:error];\n  }\n\n  _helpHEADDisabled = NO;\n}\n\n#pragma mark - Split\n\n- (void)_enterSplitWithCommit:(GCHistoryCommit*)commit {\n  NSError* error;\n  if (![_commitSplitterViewController startSplittingCommit:commit error:&error]) {\n    [self presentError:error];\n    return;\n  }\n\n  [[NSProcessInfo processInfo] disableSuddenTermination];\n  [self _setWindowMode:kWindowModeString_Map_Split];\n}\n\n// TODO: Rather than a convoluted API to ensure we can remove the GICommitSplitterViewController from the view hierarchy before doing the actual rewrite in case we need to show the GIConflictResolverViewController,\n// we should have a proper view controller system allowing to stack multiple view controllers\n- (void)_exitSplitWithOldMessage:(NSString*)oldMessage newMessage:(NSString*)newMessage {\n  [self _setWindowMode:kWindowModeString_Map];\n  [[NSProcessInfo processInfo] enableSuddenTermination];\n\n  if (oldMessage && newMessage) {\n    NSError* error;\n    if (![_commitSplitterViewController finishSplittingCommitWithOldMessage:oldMessage newMessage:newMessage error:&error]) {\n      [self presentError:error];\n    }\n  } else {\n    [_commitSplitterViewController cancelSplittingCommit];\n  }\n}\n\n#pragma mark - Resolve\n\n- (void)_enterResolveWithOurCommit:(GCCommit*)ourCommit theirCommit:(GCCommit*)theirCommit {\n  _helpHEADDisabled = YES;\n\n  _conflictResolverViewController.ourCommit = ourCommit;\n  _conflictResolverViewController.theirCommit = theirCommit;\n\n  [[NSProcessInfo processInfo] disableSuddenTermination];\n  [self _setWindowMode:kWindowModeString_Map_Resolve];\n}\n\n- (void)_exitResolve {\n  [self _setWindowMode:kWindowModeString_Map];\n  [[NSProcessInfo processInfo] enableSuddenTermination];\n\n  _conflictResolverViewController.ourCommit = nil;\n  _conflictResolverViewController.theirCommit = nil;\n\n  _helpHEADDisabled = NO;\n}\n\n#pragma mark - Config\n\n- (void)_enterConfig {\n  [self _setWindowMode:kWindowModeString_Map_Config];\n}\n\n- (void)_exitConfig {\n  [self _setWindowMode:kWindowModeString_Map];\n}\n\n#pragma mark - Restoration\n\n// This appears to be called by the NSDocumentController machinery whenever quitting the app even if -invalidateRestorableState was never called\n- (void)encodeRestorableStateWithCoder:(NSCoder*)coder {\n  [super encodeRestorableStateWithCoder:coder];\n\n  // Restrict to non-modal modes\n  [coder encodeObject:_WindowModeStringFromID(_WindowModeIDFromString(_windowMode)) forKey:kRestorableStateKey_WindowMode];\n}\n\n- (void)restoreStateWithCoder:(NSCoder*)coder {\n  [super restoreStateWithCoder:coder];\n\n  NSString* windowMode = [coder decodeObjectOfClass:[NSString class] forKey:kRestorableStateKey_WindowMode];\n  if (windowMode) {\n    [self _setWindowMode:windowMode];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n\n  if (!_ready) {\n    [self performSelector:@selector(_documentDidOpen:) withObject:[NSNull null] afterDelay:0.0];\n    _ready = YES;\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n#pragma mark - NSToolbarDelegate\n\n- (NSArray*)toolbarDefaultItemIdentifiers:(NSToolbar*)toolbar {\n  return @[ _navigateItem.itemIdentifier, NSToolbarFlexibleSpaceItemIdentifier, _snapshotsItem.itemIdentifier, _searchItem.itemIdentifier ];\n}\n\n#pragma mark - NSTextFieldDelegate\n\n// TODO: Should we do something with -insertNewline: i.e. Return key?\n- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector {\n  if (commandSelector == @selector(insertTab:)) {\n    [_mainWindow selectNextKeyView:nil];\n    return YES;\n  }\n  if (commandSelector == @selector(insertBacktab:)) {\n    [_mainWindow selectPreviousKeyView:nil];\n    return YES;\n  }\n  if (commandSelector == @selector(moveDown:)) {\n    if (_searchResultsViewController.results.count) {\n      [_mainWindow makeFirstResponder:_searchResultsViewController.preferredFirstResponder];\n      _searchResultsViewController.selectedResult = _searchResultsViewController.results.firstObject;\n      return YES;\n    }\n  }\n  return NO;\n}\n\n#pragma mark - GCRepositoryDelegate\n\n- (void)repository:(GCRepository*)repository willStartTransferWithURL:(NSURL*)url {\n  [self.authenticationWindowController repository:repository willStartTransferWithURL:url];  // Forward to AuthenticationWindowController\n\n  _infoTextField1.hidden = YES;\n  _infoTextField2.hidden = YES;\n  _progressTextField.hidden = NO;\n  _progressIndicator.minValue = 0.0;\n  _progressIndicator.maxValue = 1.0;\n  _progressIndicator.indeterminate = YES;\n  _progressIndicator.hidden = NO;\n  [_progressIndicator startAnimation:nil];\n}\n\n- (BOOL)repository:(GCRepository*)repository requiresPlainTextAuthenticationForURL:(NSURL*)url user:(NSString*)user username:(NSString**)username password:(NSString**)password {\n  return [self.authenticationWindowController repository:repository requiresPlainTextAuthenticationForURL:url user:user username:username password:password];  // Forward to AuthenticationWindowController\n}\n\n- (void)repository:(GCRepository*)repository updateTransferProgress:(float)progress transferredBytes:(NSUInteger)bytes {\n  if (progress > 0.0) {\n    _progressIndicator.indeterminate = NO;\n    _progressIndicator.doubleValue = progress;\n  }\n}\n\n- (void)repository:(GCRepository*)repository didFinishTransferWithURL:(NSURL*)url success:(BOOL)success {\n  [_progressIndicator stopAnimation:nil];\n  _progressTextField.hidden = YES;\n  _progressIndicator.hidden = YES;\n  _infoTextField1.hidden = NO;\n  _infoTextField2.hidden = NO;\n\n  [self.authenticationWindowController repository:repository didFinishTransferWithURL:url success:success];  // Forward to AuthenticationWindowController\n}\n\n#pragma mark - GCLiveRepositoryDelegate\n\n- (void)repositoryDidUpdateState:(GCLiveRepository*)repository {\n  [self _updateStatusBar];\n}\n\n- (void)repositoryDidUpdateHistory:(GCLiveRepository*)repository {\n  [self _updateTitleBar];\n  if (_tagsView.superview) {\n    [self _reloadTagsView];\n  } else if (_ancestorsView.superview) {\n    [self _reloadAncestorsView];\n  }\n}\n\n- (void)repository:(GCLiveRepository*)repository historyUpdateDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n- (void)repository:(GCLiveRepository*)repository stashesUpdateDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n- (void)repository:(GCLiveRepository*)repository statusUpdateDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n- (void)repository:(GCLiveRepository*)repository snapshotsUpdateDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n- (void)repositoryDidUpdateSearch:(GCLiveRepository*)repository {\n  if (_searchView.superview) {\n    [self performSearch:nil];\n  }\n}\n\n- (void)repository:(GCLiveRepository*)repository searchUpdateDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n- (void)repositoryBackgroundOperationInProgressDidChange:(GCLiveRepository*)repository {\n  [self _updateToolBar];\n  [self _updateStatusBar];\n}\n\n- (void)repository:(GCLiveRepository*)repository undoOperationDidFailWithError:(NSError*)error {\n  [self presentError:error];\n}\n\n#pragma mark - GIWindowControllerDelegate\n\n- (BOOL)windowController:(GIWindowController*)controller handleKeyDown:(NSEvent*)event {\n  BOOL handled = NO;\n  if (![event isARepeat]) {\n    NSString* characters = event.charactersIgnoringModifiers;\n    if ([_windowMode isEqualToString:kWindowModeString_Map]) {\n      if (event.keyCode == kGIKeyCode_Esc) {\n        if (_tagsView.superview) {\n          [self toggleTags:nil];\n          handled = YES;\n        } else if (_snapshotsView.superview) {\n          [self toggleSnapshots:nil];\n          handled = YES;\n        } else if (_reflogView.superview) {\n          [self toggleReflog:nil];\n          handled = YES;\n        } else if (_searchView.superview) {\n          [self closeSearch:nil];\n          handled = YES;\n        } else if (_ancestorsView.superview) {\n          [self toggleAncestors:nil];\n          handled = YES;\n        }\n      } else if ([characters isEqualToString:@\" \"]) {\n        if (_searchView.superview) {\n          GCHistoryCommit* commit = _searchResultsViewController.selectedCommit;\n          if (commit) {\n            if (event.modifierFlags & NSEventModifierFlagOption) {\n              [_mapViewController launchDiffToolWithCommit:commit otherCommit:commit.parents.firstObject];  // Use main-line\n            } else {\n              [self _enterQuickViewWithHistoryCommit:commit commitList:_searchResultsViewController.commits];\n            }\n            handled = YES;\n          }\n        } else if (_tagsView.superview) {\n          GCHistoryCommit* commit = _tagsViewController.selectedCommit;\n          if (commit) {\n            if (event.modifierFlags & NSEventModifierFlagOption) {\n              [_mapViewController launchDiffToolWithCommit:commit otherCommit:commit.parents.firstObject];  // Use main-line\n            } else {\n              [self _enterQuickViewWithHistoryCommit:commit commitList:_tagsViewController.commits];\n            }\n            handled = YES;\n          }\n        } else if (_reflogView.superview) {\n          if (event.modifierFlags & NSEventModifierFlagOption) {\n            [_windowController showOverlayWithStyle:kGIOverlayStyle_Help message:NSLocalizedString(@\"External Diff is not available for reflog entries\", nil)];\n          } else {\n            [_windowController showOverlayWithStyle:kGIOverlayStyle_Help message:NSLocalizedString(@\"Quick View is not available for reflog entries\", nil)];\n          }\n          handled = YES;\n        } else if (_ancestorsView.superview) {\n          GCHistoryCommit* commit = _ancestorsViewController.selectedCommit;\n          if (commit) {\n            if (event.modifierFlags & NSEventModifierFlagOption) {\n              [_mapViewController launchDiffToolWithCommit:commit otherCommit:commit.parents.firstObject];  // Use main-line\n            } else {\n              [self _enterQuickViewWithHistoryCommit:commit commitList:_ancestorsViewController.commits];\n            }\n            handled = YES;\n          }\n        }\n      } else if ([characters isEqualToString:@\"i\"]) {\n        if (_reflogView.superview) {\n          GCReflogEntry* entry = _unifiedReflogViewController.selectedReflogEntry;\n          if (entry.fromCommit && entry.toCommit) {\n            [self _enterDiffWithCommit:entry.toCommit parentCommit:entry.fromCommit];\n            handled = YES;\n          }\n        }\n      }\n\n    } else if ([_windowMode isEqualToString:kWindowModeString_Map_QuickView]) {\n      if ((event.keyCode == kGIKeyCode_Esc) || [characters isEqualToString:@\" \"]) {\n        [self exit:nil];\n        handled = YES;\n      }\n\n    } else if ([_windowMode isEqualToString:kWindowModeString_Map_Diff]) {\n      if ((event.keyCode == kGIKeyCode_Esc) || [characters isEqualToString:@\"i\"]) {\n        [self exit:nil];\n        handled = YES;\n      }\n\n    } else if ([_windowMode isEqualToString:kWindowModeString_Map_Config]) {\n      if (event.keyCode == kGIKeyCode_Esc) {\n        [self exit:nil];\n        handled = YES;\n      }\n    }\n  }\n  return handled;\n}\n\n- (void)windowControllerDidChangeHasModalView:(GIWindowController*)controller {\n  [self _updateToolBar];\n}\n\n#pragma mark - GIMapViewControllerDelegate\n\n- (void)mapViewControllerDidReloadGraph:(GIMapViewController*)controller {\n  [self _updateStatusBar];\n\n  if (_searchView.superview) {\n    [self commitListViewControllerDidChangeSelection:nil];\n  }\n\n  id headBranch = _repository.history.HEADBranch;\n  if (headBranch == nil) {\n    headBranch = [NSNull null];\n  }\n  if (![_lastHEADBranch isEqual:headBranch]) {\n    if (!_helpHEADDisabled) {\n      if ([headBranch isKindOfClass:[GCHistoryLocalBranch class]]) {\n        [_windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"You are now on branch \\\"%@\\\"\", nil), [headBranch name]];\n      } else if (headBranch == [NSNull null]) {\n        [_windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"You are not on any branch anymore\", nil)];\n      }\n    }\n    _lastHEADBranch = headBranch;\n  }\n}\n\n- (void)mapViewControllerDidChangeSelection:(GIMapViewController*)controller {\n  if (_searchView.superview) {\n    if (!_preventSelectionLoopback) {\n      _preventSelectionLoopback = YES;\n      _searchResultsViewController.selectedCommit = _mapViewController.selectedCommit;\n      _preventSelectionLoopback = NO;\n    }\n  } else if (_tagsView.superview) {\n    if (!_preventSelectionLoopback) {\n      _preventSelectionLoopback = YES;\n      _tagsViewController.selectedCommit = _mapViewController.selectedCommit;\n      _preventSelectionLoopback = NO;\n    }\n  } else if (_ancestorsView.superview) {\n    if (!_preventSelectionLoopback) {\n      _preventSelectionLoopback = YES;\n      _ancestorsViewController.selectedCommit = _mapViewController.selectedCommit;\n      _preventSelectionLoopback = NO;\n    }\n  }\n  if (![_windowMode isEqualToString:kWindowModeString_Map_QuickView]) {\n    _quickViewController.commit = nil;\n  }\n}\n\n- (void)mapViewController:(GIMapViewController*)controller quickViewCommit:(GCHistoryCommit*)commit {\n  [self _enterQuickViewWithHistoryCommit:commit commitList:nil];\n}\n\n- (void)mapViewController:(GIMapViewController*)controller diffCommit:(GCHistoryCommit*)commit withOtherCommit:(GCHistoryCommit*)otherCommit {\n  [self _enterDiffWithCommit:commit parentCommit:otherCommit];\n}\n\n- (void)mapViewController:(GIMapViewController*)controller rewriteCommit:(GCHistoryCommit*)commit {\n  [self _enterRewriteWithCommit:commit];\n}\n\n- (void)mapViewController:(GIMapViewController*)controller splitCommit:(GCHistoryCommit*)commit {\n  [self _enterSplitWithCommit:commit];\n}\n\n#pragma mark - GISnapshotListViewControllerDelegate\n\n- (void)snapshotListViewControllerDidChangeSelection:(GISnapshotListViewController*)controller {\n  GCSnapshot* snapshot = _snapshotListViewController.selectedSnapshot;\n  if (snapshot) {\n    NSError* error;\n    GCHistory* history = [_repository loadHistoryFromSnapshot:snapshot usingSorting:kGCHistorySorting_None error:&error];\n    if (history) {\n      _mapViewController.previewHistory = history;\n    } else {\n      [self presentError:error];\n    }\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n    _mapViewController.previewHistory = nil;\n  }\n}\n\n- (void)snapshotListViewController:(GISnapshotListViewController*)controller didRestoreSnapshot:(GCSnapshot*)snapshot {\n  [self toggleSnapshots:nil];\n}\n\n#pragma mark - GIUnifiedReflogViewControllerDelegate\n\n- (void)unifiedReflogViewControllerDidChangeSelection:(GIUnifiedReflogViewController*)controller {\n  GCReflogEntry* entry = _unifiedReflogViewController.selectedReflogEntry;\n  [_mapViewController selectCommit:entry.toCommit];\n}\n\n- (void)unifiedReflogViewController:(GIUnifiedReflogViewController*)controller didRestoreReflogEntry:(GCReflogEntry*)entry {\n  [self toggleReflog:nil];\n}\n\n#pragma mark - GICommitListViewControllerDelegate\n\n- (void)commitListViewControllerDidChangeSelection:(GICommitListViewController*)controller {\n  if (!_preventSelectionLoopback) {\n    GCHistoryCommit* commit = nil;\n    if (_searchView.superview) {\n      commit = _searchResultsViewController.selectedCommit;\n    } else if (_tagsView.superview) {\n      commit = _tagsViewController.selectedCommit;\n    } else if (_ancestorsView.superview) {\n      commit = _ancestorsViewController.selectedCommit;\n    }\n    if (commit) {  // Don't deselect commit in map if no commit is selected in the list\n      _preventSelectionLoopback = YES;\n      [_mapViewController selectCommit:commit];\n      _preventSelectionLoopback = NO;\n    }\n  }\n\n  if (((_searchView.superview && _searchResultsViewController.selectedResult) || (_tagsView.superview && _tagsViewController.selectedResult) || (_ancestorsView.superview && _ancestorsViewController.selectedResult)) && !_mapViewController.selectedCommit) {\n    _hiddenWarningView.hidden = NO;\n  } else {\n    _hiddenWarningView.hidden = YES;\n  }\n}\n\n#pragma mark - GICommitViewControllerDelegate\n\n- (void)commitViewController:(GICommitViewController*)controller didCreateCommit:(GCCommit*)commit {\n}\n\n#pragma mark - GICommitRewriterViewControllerDelegate\n\n- (void)commitRewriterViewControllerShouldFinish:(GICommitRewriterViewController*)controller withMessage:(NSString*)message {\n  [self _exitRewriteWithMessage:message];\n}\n\n- (void)commitRewriterViewControllerShouldCancel:(GICommitRewriterViewController*)controller {\n  [self _exitRewriteWithMessage:nil];\n}\n\n#pragma mark - GICommitSplitterViewControllerDelegate\n\n- (void)commitSplitterViewControllerShouldFinish:(GICommitSplitterViewController*)controller withOldMessage:(NSString*)oldMessage newMessage:(NSString*)newMessage {\n  [self _exitSplitWithOldMessage:oldMessage newMessage:newMessage];\n}\n\n- (void)commitSplitterViewControllerShouldCancel:(GICommitSplitterViewController*)controller {\n  [self _exitSplitWithOldMessage:nil newMessage:nil];\n}\n\n#pragma mark - GIConflictResolverViewControllerDelegate\n\n- (void)conflictResolverViewControllerShouldCancel:(GIConflictResolverViewController*)controller {\n  _resolvingConflicts = -1;\n}\n\n- (void)conflictResolverViewControllerDidFinish:(GIConflictResolverViewController*)controller {\n  _resolvingConflicts = 1;\n}\n\n#pragma mark - GCMergeConflictResolver\n\n- (BOOL)resolveMergeConflictsWithOurCommit:(GCCommit*)ourCommit theirCommit:(GCCommit*)theirCommit {\n  [self _enterResolveWithOurCommit:ourCommit theirCommit:theirCommit];\n\n  // TODO: Is re-entering NSApp's event loop really AppKit-safe (it appears to partially break NSAnimationContext animations for instance)?\n  _resolvingConflicts = 0;\n  while (!_resolvingConflicts) {\n    NSEvent* event = [NSApp nextEventMatchingMask:NSEventMaskAny untilDate:[NSDate distantFuture] inMode:NSModalPanelRunLoopMode dequeue:YES];\n    [NSApp sendEvent:event];\n  }\n\n  [self _exitResolve];\n\n  return (_resolvingConflicts > 0);\n}\n\n#pragma mark - Actions\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  if (item.action == @selector(editSettings:)) {\n    return YES;\n  }\n  if ((item.action == @selector(openInTerminal:)) || (item.action == @selector(openInFinder:))) {\n    return YES;\n  }\n  if (item.action == @selector(openInHostingService:)) {\n    GCHostingService service = kGCHostingService_Unknown;\n    [_repository hostingURLForProject:&service error:NULL];  // Ignore errors\n    switch (service) {\n      case kGCHostingService_Unknown:\n        [(NSMenuItem*)item setTitle:NSLocalizedString(@\"Open in Hosting Service…\", nil)];\n        return NO;  // Must match title in the NIB\n      default:\n        [(NSMenuItem*)item setTitle:[NSString stringWithFormat:NSLocalizedString(@\"Open in %@…\", nil), GCNameFromHostingService(service)]];\n        return YES;\n    }\n  }\n\n  if (item.action == @selector(openSubmoduleMenu:)) {\n    NSMenu* submenu = [(NSMenuItem*)item submenu];\n    [submenu removeAllItems];\n    NSArray* submodules = [_repository listSubmodules:NULL];\n    if (submodules.count) {\n      for (GCSubmodule* submodule in submodules) {\n        NSMenuItem* menuItem = [[NSMenuItem alloc] initWithTitle:submodule.name action:@selector(_openSubmodule:) keyEquivalent:@\"\"];\n        menuItem.representedObject = submodule.name;  // Don't use \"submodule\" to avoid retaining it forever\n        menuItem.target = self;\n        [submenu addItem:menuItem];\n      }\n    } else {\n      [submenu addItemWithTitle:NSLocalizedString(@\"No Submodules in Repository\", nil) action:NULL keyEquivalent:@\"\"];\n    }\n    return YES;\n  }\n\n  if (_windowController.hasModalView) {\n    return NO;\n  }\n\n  if ((item.action == @selector(focusSearch:)) || (item.action == @selector(performSearch:))) {\n    return [_windowMode isEqualToString:kWindowModeString_Map] && !_tagsView.superview && !_snapshotsView.superview && !_reflogView.superview && !_ancestorsView.superview && _searchReady;\n  }\n  if (item.action == @selector(toggleTags:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map] && !_searchView.superview && !_snapshotsView.superview && !_reflogView.superview && !_ancestorsView.superview ? YES : NO;\n  }\n  if (item.action == @selector(toggleSnapshots:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map] && !_searchView.superview && !_tagsView.superview && !_reflogView.superview && !_ancestorsView.superview && _repository.snapshots.count ? YES : NO;\n  }\n  if (item.action == @selector(toggleReflog:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map] && !_searchView.superview && !_tagsView.superview && !_snapshotsView.superview && !_ancestorsView.superview ? YES : NO;\n  }\n  if (item.action == @selector(toggleAncestors:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map] && !_searchView.superview && !_tagsView.superview && !_snapshotsView.superview && !_reflogView.superview && _repository.history.HEADCommit ? YES : NO;\n  }\n\n  if (_repository.hasBackgroundOperationInProgress) {\n    return NO;\n  }\n\n  if (item.action == @selector(resetHard:)) {\n    return _repository.history.HEADCommit ? YES : NO;\n  }\n\n  if (item.action == @selector(switchMode:)) {\n    NSSegmentedControl* modeControl = [(id<NSObject>)item isKindOfClass:NSSegmentedControl.self] ? (NSSegmentedControl*)item : nil;\n    NSMenuItem* menuItem = [(id<NSObject>)item isKindOfClass:NSMenuItem.self] ? (NSMenuItem*)item : nil;\n\n    WindowModeID windowModeID = _WindowModeIDFromString(_windowMode);\n    [modeControl setEnabled:YES forSegment:kWindowModeID_Map];\n    [modeControl selectSegmentWithTag:windowModeID];\n    menuItem.state = menuItem.tag == windowModeID ? NSControlStateValueOn : NSControlStateValueOff;\n\n    return !_windowController.hasModalView;\n  }\n\n  if (item.action == @selector(navigate:)) {\n    NSSegmentedControl* navigateControl = [(id<NSObject>)item isKindOfClass:NSSegmentedControl.self] ? (NSSegmentedControl*)item : nil;\n\n    [navigateControl setEnabled:[_windowMode isEqualToString:kWindowModeString_Map_QuickView] || [_windowMode isEqualToString:kWindowModeString_Map_Diff] || [_windowMode isEqualToString:kWindowModeString_Map_Config] forSegment:kNavigationAction_Exit];\n    [navigateControl setEnabled:[_windowMode isEqualToString:kWindowModeString_Map_QuickView] && [self _hasNextQuickView] forSegment:kNavigationAction_Next];\n    [navigateControl setEnabled:[_windowMode isEqualToString:kWindowModeString_Map_QuickView] && [self _hasPreviousQuickView] forSegment:kNavigationAction_Previous];\n\n    return YES;\n  }\n  if (item.action == @selector(selectPreviousCommit:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map_QuickView] && [self _hasPreviousQuickView] ? YES : NO;\n  }\n  if (item.action == @selector(selectNextCommit:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map_QuickView] && [self _hasNextQuickView] ? YES : NO;\n  }\n\n  if (item.action == @selector(checkForChanges:)) {\n    return _checkingForChanges ? NO : YES;\n  }\n\n  if (item.action == @selector(editConfiguration:)) {\n    return [_windowMode isEqualToString:kWindowModeString_Map];\n  }\n\n  return [super validateUserInterfaceItem:item];\n}\n\n- (IBAction)resetHard:(id)sender {\n  _untrackedButton.state = NSControlStateValueOff;\n  NSAlert* alert = [[NSAlert alloc] init];\n  alert.type = kGIAlertType_Stop;\n  alert.messageText = NSLocalizedString(@\"Are you sure you want to reset the index and working directory to the current checkout?\", nil);\n  alert.informativeText = NSLocalizedString(@\"Any operation in progress (merge, rebase, etc...) will be aborted, and any uncommitted change, including in submodules, will be discarded.\\n\\nThis action cannot be undone.\", nil);\n  alert.accessoryView = _resetView;\n  NSButton* reset = [alert addButtonWithTitle:NSLocalizedString(@\"Reset\", nil)];\n  reset.hasDestructiveAction = YES;\n  [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n  [alert beginSheetModalForWindow:_mainWindow\n                completionHandler:^(NSInteger returnCode) {\n                  if (returnCode == NSAlertFirstButtonReturn) {\n                    NSError* error;\n                    if (![_repository resetToHEAD:kGCResetMode_Hard error:&error] || (_untrackedButton.state && ![_repository cleanWorkingDirectory:&error]) || ![_repository updateAllSubmodulesResursively:YES error:&error]) {\n                      [self presentError:error];\n                    }\n                    [_repository notifyRepositoryChanged];\n                  }\n                }];\n}\n\n- (IBAction)switchMode:(id)sender {\n  if ([sender isKindOfClass:[NSMenuItem class]]) {\n    [self _setWindowMode:_WindowModeStringFromID([(NSMenuItem*)sender tag])];\n  } else {\n    [self _setWindowMode:_WindowModeStringFromID([(NSSegmentedControl*)sender selectedSegment])];\n  }\n}\n\n- (void)_addSideView:(NSView*)view withIdentifier:(NSString*)identifier completion:(dispatch_block_t)completion {\n  NSRect contentFrame = _mapContainerView.bounds;\n  NSRect mapFrame = _mapView.frame;\n  NSRect viewFrame = view.frame;\n  NSRect newMapFrame = NSMakeRect(0, mapFrame.origin.y, contentFrame.size.width - viewFrame.size.width, mapFrame.size.height);\n  NSRect newViewFrame = NSMakeRect(contentFrame.size.width - viewFrame.size.width, mapFrame.origin.y, viewFrame.size.width, mapFrame.size.height);\n  view.frame = NSOffsetRect(newViewFrame, viewFrame.size.width, 0);\n  [_mapContainerView addSubview:view positioned:NSWindowAbove relativeTo:_mapView];\n\n#if 0  // TODO: On 10.13, the first time the view is shown after animating, it is completely empty\n  [NSAnimationContext beginGrouping];\n  [[NSAnimationContext currentContext] setDuration:kSideViewAnimationDuration];\n  if (completion) {\n    [[NSAnimationContext currentContext] setCompletionHandler:^{\n      completion();\n    }];\n  }\n  [_mapView.animator setFrame:newMapFrame];\n  [view.animator setFrame:newViewFrame];\n  [NSAnimationContext endGrouping];\n#else\n  [_mapView setFrame:newMapFrame];\n  [view setFrame:newViewFrame];\n  if (completion) {\n    completion();\n  }\n#endif\n  [self _updateToolBar];\n\n  [self _showHelpWithIdentifier:identifier];\n}\n\n- (void)_removeSideView:(NSView*)view completion:(dispatch_block_t)completion {\n  NSRect contentFrame = _mapContainerView.bounds;\n  NSRect mapFrame = _mapView.frame;\n  NSRect newMapFrame = NSMakeRect(0, mapFrame.origin.y, contentFrame.size.width, mapFrame.size.height);\n  NSRect viewFrame = view.frame;\n  NSRect newViewFrame = NSOffsetRect(viewFrame, viewFrame.size.width, 0);\n\n  [NSAnimationContext beginGrouping];\n  [[NSAnimationContext currentContext] setDuration:kSideViewAnimationDuration];\n  [[NSAnimationContext currentContext] setCompletionHandler:^{\n    [view removeFromSuperview];\n    [self _updateToolBar];\n    if (completion) {\n      completion();\n    }\n  }];\n  [_mapView.animator setFrame:newMapFrame];\n  [view.animator setFrame:newViewFrame];\n  [NSAnimationContext endGrouping];\n\n  [self _showHelpWithIdentifier:_windowMode];\n}\n\n- (void)_reloadTagsView {\n  _tagsViewController.results = _repository.history.tags;  // TODO: Should we resort the tags?\n\n  _preventSelectionLoopback = YES;\n  _tagsViewController.selectedCommit = _mapViewController.selectedCommit;\n  _preventSelectionLoopback = NO;\n}\n\n- (IBAction)toggleTags:(id)sender {\n  if (_tagsView.superview) {\n    [self _removeSideView:_tagsView\n               completion:^{\n                 _tagsViewController.results = nil;\n               }];\n    _hiddenWarningView.hidden = YES;  // Hide immediately\n    [_mainWindow makeFirstResponder:_mapViewController.preferredFirstResponder];\n  } else {\n    [self _reloadTagsView];\n\n    [_mainWindow makeFirstResponder:nil];  // Force end-editing in search field to avoid close button remaining around\n    [self _addSideView:_tagsView withIdentifier:kSideViewIdentifier_Tags completion:NULL];\n    [_mainWindow makeFirstResponder:_tagsViewController.preferredFirstResponder];\n  }\n}\n\n- (IBAction)toggleSnapshots:(id)sender {\n  if (_snapshotsView.superview) {\n    [self setSnapshotToggleState:NSControlStateValueOff];\n    _mapViewController.previewHistory = nil;\n    [self _removeSideView:_snapshotsView completion:NULL];\n    [_mainWindow makeFirstResponder:_mapViewController.preferredFirstResponder];\n  } else {\n    [self setSnapshotToggleState:NSControlStateValueOn];\n    [_mainWindow makeFirstResponder:nil];  // Force end-editing in search field to avoid close button remaining around\n    [self _addSideView:_snapshotsView withIdentifier:kSideViewIdentifier_Snapshots completion:NULL];\n    [_mainWindow makeFirstResponder:_snapshotListViewController.preferredFirstResponder];\n  }\n}\n\n- (void)setSnapshotToggleState:(NSControlStateValue)state {\n  NSButton* button = (NSButton*)_snapshotsItem.view;\n  if (![button isKindOfClass:[NSButton class]]) {\n    XLOG_ERROR(@\"This used to be a button, update this function if the layout has changed.\");\n    return;\n  }\n\n  [button setState:state];\n}\n\n- (IBAction)toggleReflog:(id)sender {\n  if (_reflogView.superview) {\n    _mapViewController.forceShowAllTips = NO;\n    [self _removeSideView:_reflogView completion:NULL];\n    [_mainWindow makeFirstResponder:_mapViewController.preferredFirstResponder];\n  } else {\n    [_mainWindow makeFirstResponder:nil];  // Force end-editing in search field to avoid close button remaining around\n    _mapViewController.forceShowAllTips = YES;\n    [self _addSideView:_reflogView withIdentifier:kSideViewIdentifier_Reflog completion:NULL];\n    [_mainWindow makeFirstResponder:_unifiedReflogViewController.preferredFirstResponder];\n  }\n}\n\n- (void)_reloadAncestorsView {\n  NSMutableArray* commits = [[NSMutableArray alloc] init];\n  [commits addObject:_repository.history.HEADCommit];\n  [_repository.history walkAncestorsOfCommits:@[ _repository.history.HEADCommit ]\n                                   usingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n                                     [commits addObject:commit];\n                                     if (commits.count == kMaxAncestorCommits) {\n                                       *stop = YES;\n                                     }\n                                   }];\n  _ancestorsViewController.results = commits;\n\n  _preventSelectionLoopback = YES;\n  _ancestorsViewController.selectedCommit = _mapViewController.selectedCommit;\n  _preventSelectionLoopback = NO;\n}\n\n- (IBAction)toggleAncestors:(id)sender {\n  if (_ancestorsView.superview) {\n    [self _removeSideView:_ancestorsView\n               completion:^{\n                 _ancestorsViewController.results = nil;\n               }];\n    _hiddenWarningView.hidden = YES;  // Hide immediately\n    [_mainWindow makeFirstResponder:_mapViewController.preferredFirstResponder];\n  } else {\n    [self _reloadAncestorsView];\n\n    [_mainWindow makeFirstResponder:nil];  // Force end-editing in search field to avoid close button remaining around\n    [self _addSideView:_ancestorsView withIdentifier:kSideViewIdentifier_Ancestors completion:NULL];\n    [_mainWindow makeFirstResponder:_ancestorsViewController.preferredFirstResponder];\n  }\n}\n\n- (IBAction)editConfiguration:(id)sender {\n  [self _enterConfig];\n}\n\n- (void)_setSearchFieldPlaceholder:(NSString*)placeholder {\n  _searchItem.searchField.placeholderString = placeholder;\n}\n\n- (IBAction)performSearch:(id)sender {\n  NSString* query = _searchItem.searchField.stringValue;\n  if (query.length) {\n    CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n    NSArray* results = [_repository findCommitsMatching:query];\n    XLOG_VERBOSE(@\"Searched %lu commits in \\\"%@\\\" for \\\"%@\\\" in %.3f seconds finding %lu matches\", _repository.history.allCommits.count, _repository.repositoryPath, query, CFAbsoluteTimeGetCurrent() - time, results.count);\n\n    _searchResultsViewController.results = results;\n    if (_searchView.superview == nil) {\n      [self _addSideView:_searchView withIdentifier:kSideViewIdentifier_Search completion:NULL];\n    }\n  } else {\n    if (_searchView.superview) {\n      _hiddenWarningView.hidden = YES;  // Hide immediately\n      [self _removeSideView:_searchView\n                 completion:^{\n                   _searchResultsViewController.results = nil;\n                 }];\n    }\n\n    [_mainWindow makeFirstResponder:_mapViewController.preferredFirstResponder];\n  }\n}\n\n- (IBAction)focusSearch:(id)sender {\n  [_searchItem beginSearchInteraction];\n}\n\n- (IBAction)closeSearch:(id)sender {\n  _searchItem.searchField.stringValue = @\"\";\n  [self performSearch:nil];\n}\n\n- (IBAction)navigate:(NSSegmentedControl*)sender {\n  switch ((NavigationAction)sender.selectedSegment) {\n    case kNavigationAction_Exit:\n      [self exit:sender];\n      break;\n    case kNavigationAction_Next:\n      [self selectNextCommit:sender];\n      break;\n    case kNavigationAction_Previous:\n      [self selectPreviousCommit:sender];\n      break;\n  }\n}\n\n- (IBAction)exit:(id)sender {\n  if ([_windowMode isEqualToString:kWindowModeString_Map_QuickView]) {\n    [self _exitQuickView];\n  } else if ([_windowMode isEqualToString:kWindowModeString_Map_Diff]) {\n    [self _exitDiff];\n  } else if ([_windowMode isEqualToString:kWindowModeString_Map_Config]) {\n    [self _exitConfig];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (IBAction)selectPreviousCommit:(id)sender {\n  [self _previousQuickView];\n}\n\n- (IBAction)selectNextCommit:(id)sender {\n  [self _nextQuickView];\n}\n\n+ (BOOL)repository:(GCRepository*)repository requiresPlainTextAuthenticationForURL:(NSURL*)url user:(NSString*)user username:(NSString**)username password:(NSString**)password {\n  return [KeychainAccessor loadPlainTextAuthenticationFormKeychainForURL:url user:user username:username password:password allowInteraction:NO];\n}\n\n- (IBAction)checkForChanges:(id)sender {\n  CFRunLoopTimerSetNextFireDate(_checkTimer, HUGE_VALF);\n  if (_repository) {\n    _checkingForChanges = YES;\n    NSString* path = _repository.repositoryPath;  // Avoid race-condition in case _repository is set to nil before block is executed\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\n      NSMutableDictionary* updatedReferences = [[NSMutableDictionary alloc] init];\n      GCRepository* repository = [[GCRepository alloc] initWithExistingLocalRepository:path error:NULL];\n      repository.delegate = (id<GCRepositoryDelegate>)self.class;  // Don't use self as we don't want to show progress UI nor authentication prompts\n      for (GCRemote* remote in [repository listRemotes:NULL]) {\n        @autoreleasepool {\n          NSDictionary* added;\n          NSDictionary* modified;\n          NSDictionary* deleted;\n          if (![repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches addedReferences:&added modifiedReferences:&modified deletedReferences:&deleted error:NULL]) {\n            break;\n          }\n          [updatedReferences addEntriesFromDictionary:added];\n          [updatedReferences addEntriesFromDictionary:modified];\n          [updatedReferences addEntriesFromDictionary:deleted];\n        }\n      }\n      dispatch_async(dispatch_get_main_queue(), ^{\n        if (_repository) {\n          _updatedReferences = updatedReferences;\n          if (_updatedReferences.count) {\n            [_windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"New commits are available from the repository remotes - Use Fetch to retrieve them\", nil)];\n            XLOG_VERBOSE(@\"Repository is out-of-sync with its remotes: %@\", _updatedReferences.allKeys);\n          } else {\n            if (sender) {\n              [_windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"Repository is up-to-date\", nil)];\n            }\n            XLOG_VERBOSE(@\"Repository is up-to-date with its remotes\");\n          }\n\n          _checkingForChanges = NO;\n          [self _resetCheckTimer];\n          [self _updateStatusBar];\n        } else {\n          XLOG_WARNING(@\"Remote check completed after document was closed\");\n        }\n      });\n    });\n  } else {\n    XLOG_DEBUG_UNREACHABLE();  // Not sure how this can happen but it has in the field\n  }\n}\n\n- (IBAction)openInHostingService:(id)sender {\n  NSError* error;\n  NSURL* url = [_repository hostingURLForProject:NULL error:&error];\n  if (url) {\n    [[NSWorkspace sharedWorkspace] openURL:url];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (IBAction)openInFinder:(id)sender {\n  [[NSWorkspace sharedWorkspace] openURL:[NSURL fileURLWithPath:_repository.workingDirectoryPath isDirectory:YES]];\n}\n\n// NOTE: To reset permissions via terminal:\n\n// reset permissions of all apps in category AppleEvents ( Automation )\n// $ tccutil reset AppleEvents\n\n// reset all permissions for all apps\n// $ tccutil reset All\n\n// reset all permissions for particular bundle identifier.\n// $ tccutil reset All co.gitup.mac-debug\n\n- (NSString*)scriptForTerminalAppName:(NSString*)name {\n  if ([name isEqualToString:GIPreferences_TerminalTool_Terminal]) {\n    return [NSString stringWithFormat:\n                         @\"\"\n                          \"tell application \\\"%@\\\" \\n\"\n                          \"\"\n                          \"\"\n                          \"reopen \\n\"\n                          \"\"\n                          \"\"\n                          \"activate \\n\"\n                          \"\"\n                          \"\"\n                          \"do script \\\"cd \\\\\\\"%@\\\\\\\"\\\" \\n\"\n                          \"\"\n                          \"\"\n                          \"end tell \\n\"\n                          \"\",\n                         name, _repository.workingDirectoryPath];\n  }\n  /*\n   -- if application is running, we already have a window.\n   -- so, we create new window and write our command.\n   -- otherwise, we reopen application, activate it and\n    if application \"iTerm\" is running then\n      tell application \"iTerm\"\n        tell current session of (create window with default profile)\n          set command to \"cd '~/GitUp'\"\n          write text command\n        end tell\n        activate\n      end tell\n    else\n      tell application \"iTerm\"\n        reopen\n        activate -- bring to front and also set current window to fresh window\n        tell current session of current window\n          select -- give focus to current window to start typing in it.\n          set command to \"cd '~/GitUp'\"\n          write text command\n        end tell\n      end tell\n    end if\n   */\n  if ([name isEqualToString:GIPreferences_TerminalTool_iTerm] || [name isEqualToString:GIPreferences_TerminalTool_Terminal]) {\n    NSString* command = [NSString stringWithFormat:@\"cd '%@'\", _repository.workingDirectoryPath];\n    NSString* isRunningPhase = [NSString stringWithFormat:\n                                             @\"\"\n                                              \"tell application \\\"%@\\\" \\n\"\n                                              \"\"\n                                              \"\"\n                                              \"tell current session of (create window with default profile) \\n\"\n                                              \"\"\n                                              \"\"\n                                              \"set command to \\\"%@\\\" \\n\"\n                                              \"\"\n                                              \"\"\n                                              \"write text command \\n\"\n                                              \"\"\n                                              \"\"\n                                              \"end tell \\n\"\n                                              \"\"\n                                              \"\"\n                                              \"activate \\n\"\n                                              \"\"\n                                              \"\"\n                                              \"end tell \\n\"\n                                              \"\",\n                                             name, command];\n    NSString* isNotRunningPhase = [NSString stringWithFormat:\n                                                @\"\"\n                                                 \"tell application \\\"%@\\\" \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"activate \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"tell current session of current window \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"select \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"set command to \\\"%@\\\" \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"write text command \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"end tell \\n\"\n                                                 \"\"\n                                                 \"\"\n                                                 \"end tell \\n\"\n                                                 \"\",\n                                                name, command];\n    NSString* script = [NSString stringWithFormat:\n                                     @\"\"\n                                      \"if application \\\"%@\\\" is running then \\n\"\n                                      \"\"\n                                      \"\"\n                                      \" %@ \\n\"\n                                      \"\"\n                                      \"\"\n                                      \"else \\n\"\n                                      \"\"\n                                      \"\"\n                                      \" %@ \\n\"\n                                      \"\"\n                                      \"\"\n                                      \"end if \\n\"\n                                      \"\",\n                                     name, isRunningPhase, isNotRunningPhase];\n    return script;\n  }\n  return nil;\n}\n\n- (void)openInTerminalAppName:(NSString*)name {\n  NSString* script = [self scriptForTerminalAppName:name];\n\n  if (script == nil) {\n    NSUInteger code = 1000;\n    NSDictionary* userInfo = @{NSLocalizedDescriptionKey : NSLocalizedString(@\"Error occured! Unsupported key in user defaults for Preferred terminal app is occured. Key is\", nil)};\n    NSError* error = [NSError errorWithDomain:@\"org.gitup.preferences.terminal\" code:code userInfo:userInfo];\n    [self presentError:error];\n    return;\n  }\n\n  NSDictionary* dictionary = nil;\n  [[[NSAppleScript alloc] initWithSource:script] executeAndReturnError:&dictionary];\n  if (dictionary != nil) {\n    NSString* message = (NSString*)dictionary[NSAppleScriptErrorMessage] ?: @\"Unknown error!\";\n    // show error?\n    NSInteger code = [dictionary[NSAppleScriptErrorNumber] integerValue];\n    NSString* key = @\"NSAppleEventsUsageDescription\";\n    NSString* recovery = [[NSBundle mainBundle] localizedStringForKey:key value:nil table:@\"InfoPlist\"];\n    NSDictionary* userInfo = @{NSLocalizedDescriptionKey : message, NSLocalizedRecoveryOptionsErrorKey : recovery};\n    NSError* error = [NSError errorWithDomain:@\"com.apple.security.automation.appleEvents\" code:code userInfo:userInfo];\n    [self presentError:error];\n  }\n  //  [[NSWorkspace sharedWorkspace] launchApplication:name];\n}\n\n- (IBAction)openInTerminal:(id)sender {\n  NSString* identifier = [[NSUserDefaults standardUserDefaults] stringForKey:GIPreferences_TerminalTool];\n  [self openInTerminalAppName:identifier];\n}\n\n- (IBAction)dismissHelp:(id)sender {\n  [self _hideHelp:NO];\n}\n\n- (IBAction)openHelp:(id)sender {\n  [self _hideHelp:YES];\n}\n\n- (IBAction)openSubmoduleMenu:(id)sender {\n  XLOG_DEBUG_UNREACHABLE();  // This action only exists to populate the menu in -validateUserInterfaceItem:\n}\n\n- (IBAction)_openSubmodule:(id)sender {\n  [_mapViewController openSubmoduleWithApp:[(NSMenuItem*)sender representedObject]];\n}\n\n- (IBAction)editSettings:(id)sender {\n  _indexDiffsButton.state = [[_repository userInfoForKey:kRepositoryUserInfoKey_IndexDiffs] boolValue];\n\n  [_mainWindow beginSheet:_settingsWindow completionHandler:NULL];\n}\n\n- (IBAction)saveSettings:(id)sender {\n  [NSApp endSheet:_settingsWindow];\n  [_settingsWindow orderOut:nil];\n\n  [_repository setUserInfo:(_indexDiffsButton.state ? @(YES) : @(NO)) forKey:kRepositoryUserInfoKey_IndexDiffs];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/DocumentController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@interface DocumentController : NSDocumentController\n@end\n"
  },
  {
    "path": "GitUp/Application/DocumentController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"DocumentController.h\"\n#import \"AppDelegate.h\"\n#import \"Common.h\"\n\n#import <GitUpKit/GitUpKit.h>\n#import <GitUpKit/XLFacilityMacros.h>\n\n@implementation DocumentController\n\n// Patch method to allow selecting folders\n- (void)beginOpenPanel:(NSOpenPanel*)openPanel forTypes:(NSArray*)inTypes completionHandler:(void (^)(NSInteger result))completionHandler {\n  XLOG_DEBUG_CHECK([inTypes isEqualToArray:@[ @\"public.directory\" ]]);\n  openPanel.canChooseFiles = NO;\n  openPanel.canChooseDirectories = YES;\n  openPanel.treatsFilePackagesAsDirectories = YES;\n  [super beginOpenPanel:openPanel forTypes:inTypes completionHandler:completionHandler];\n}\n\n- (NSError*)willPresentError:(NSError*)error {\n  NSError* underlyingError = [error.userInfo objectForKey:NSUnderlyingErrorKey];\n  if ([underlyingError.domain isEqualToString:GCErrorDomain]) {\n    error = underlyingError;  // Required to display real error from -[NSDocument readFromURL:ofType:error:]\n  }\n\n  if ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_CheckoutConflicts) && [error.localizedDescription hasSuffix:@\" checkout\"]) {  // TODO: Avoid hardcoding libgit2 error\n    error = GCNewError(kGCErrorCode_CheckoutConflicts, @\"Local changes would be overwritten by checkout\");\n  }\n\n  return [super willPresentError:error];\n}\n\n- (void)addDocument:(NSDocument*)document {\n  [super addDocument:document];\n\n  [[AppDelegate sharedDelegate] handleDocumentCountChanged];\n}\n\n- (void)removeDocument:(NSDocument*)document {\n  [super removeDocument:document];\n\n  [[AppDelegate sharedDelegate] handleDocumentCountChanged];\n}\n\n- (void)newWindowForTab:(id)sender {\n  [self openDocument:sender];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/FontSizeTransformer.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n/// Transforms between the linear slider in Preferences to a non-linear list of font sizes matching the system font picker.\n@interface FontSizeTransformer : NSValueTransformer\n\n@end\n"
  },
  {
    "path": "GitUp/Application/FontSizeTransformer.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"FontSizeTransformer.h\"\n#import <GitUpKit/GIAppKit.h>\n\nstatic NSArray* sizes;\n\n@implementation FontSizeTransformer\n\n+ (void)initialize {\n  // Match the system font picker\n  sizes = @[ @9, @10, @11, @12, @13, @14, @18, @24 ];\n}\n\n+ (Class)transformedValueClass {\n  return [NSNumber class];\n}\n\n+ (BOOL)allowsReverseTransformation {\n  return YES;\n}\n\n- (id)transformedValue:(id)fontSizeValue {\n  NSUInteger idx = [sizes indexOfObject:fontSizeValue];\n  if (idx == NSNotFound) {\n    // If the user default is set externally, fallback to the default index.\n    return @1;\n  }\n\n  return @(idx);\n}\n\n- (id)reverseTransformedValue:(id)indexValue {\n  NSUInteger idx = [indexValue unsignedIntegerValue];\n  if (idx >= sizes.count) {\n    return @(GIDefaultFontSize);\n  }\n\n  return sizes[idx];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/GitUp.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>com.apple.security.automation.apple-events</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUp/Application/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>SUPublicEDKey</key>\n\t<string>l8+r2Uqcjd/9bj7mROr1DRLQ2nacFKiLZNaxyU9qFFA=</string>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleDocumentTypes</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>CFBundleTypeName</key>\n\t\t\t<string>Git Repository</string>\n\t\t\t<key>CFBundleTypeRole</key>\n\t\t\t<string>Editor</string>\n\t\t\t<key>LSItemContentTypes</key>\n\t\t\t<array>\n\t\t\t\t<string>public.directory</string>\n\t\t\t</array>\n\t\t\t<key>NSDocumentClass</key>\n\t\t\t<string>Document</string>\n\t\t</dict>\n\t</array>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>$(MARKETING_VERSION)</string>\n\t<key>CFBundleVersion</key>\n\t<string>${BUNDLE_VERSION}</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>NSAppleEventsUsageDescription</key>\n\t<string>Please</string>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>Copyright © 2015-2024 Pierre-Olivier Latour. All rights reserved.</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n\t<key>NSServices</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>NSMenuItem</key>\n\t\t\t<dict>\n\t\t\t\t<key>default</key>\n\t\t\t\t<string>Open in GitUp</string>\n\t\t\t</dict>\n\t\t\t<key>NSMessage</key>\n\t\t\t<string>openRepository</string>\n\t\t\t<key>NSRequiredContext</key>\n\t\t\t<dict>\n\t\t\t\t<key>NSTextContent</key>\n\t\t\t\t<string>FilePath</string>\n\t\t\t</dict>\n\t\t\t<key>NSSendTypes</key>\n\t\t\t<array>\n\t\t\t\t<string>NSURLPboardType</string>\n\t\t\t\t<string>NSFilenamesPboardType</string>\n\t\t\t</array>\n\t\t</dict>\n\t</array>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUp/Application/KeychainAccessor.h",
    "content": "//\n//  KeychainAccessor.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 05.11.2019.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface KeychainAccessor : NSObject\n+ (BOOL)loadPlainTextAuthenticationFormKeychainForURL:(NSURL*)url user:(NSString*)user username:(NSString* _Nullable* _Nonnull)username password:(NSString* _Nullable* _Nonnull)password allowInteraction:(BOOL)allowInteraction;\n+ (void)savePlainTextAuthenticationToKeychainForURL:(NSURL*)url username:(NSString*)username password:(NSString*)password;\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/KeychainAccessor.m",
    "content": "//\n//  KeychainAccessor.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 05.11.2019.\n//\n\n#import \"KeychainAccessor.h\"\n#import <Security/Security.h>\n#import <GitUpKit/XLFacilityMacros.h>\n\n@implementation KeychainAccessor\n\n// WARNING: We are using the same attributes for the keychain items than Git CLT appears to be using as of version 1.9.3\n+ (BOOL)loadPlainTextAuthenticationFormKeychainForURL:(NSURL*)url user:(NSString*)user username:(NSString**)username password:(NSString**)password allowInteraction:(BOOL)allowInteraction {\n  const char* serverName = url.host.UTF8String;\n  if (serverName && serverName[0]) {  // TODO: How can this be NULL?\n    const char* accountName = user.UTF8String;\n    SecKeychainItemRef itemRef;\n    UInt32 passwordLength;\n    void* passwordData;\n    SecKeychainSetUserInteractionAllowed(allowInteraction);  // Ignore errors\n    OSStatus status = SecKeychainFindInternetPassword(NULL,\n                                                      (UInt32)strlen(serverName), serverName,\n                                                      0, NULL,  // Any security domain\n                                                      accountName ? (UInt32)strlen(accountName) : 0, accountName,\n                                                      0, NULL,  // Any path\n                                                      0,  // Any port\n                                                      kSecProtocolTypeAny,\n                                                      kSecAuthenticationTypeAny,\n                                                      &passwordLength, &passwordData, &itemRef);\n    if (status == noErr) {\n      BOOL success = NO;\n      *password = [[NSString alloc] initWithBytes:passwordData length:passwordLength encoding:NSUTF8StringEncoding];\n      if (accountName == NULL) {\n        UInt32 tag = kSecAccountItemAttr;\n        UInt32 format = CSSM_DB_ATTRIBUTE_FORMAT_STRING;\n        SecKeychainAttributeInfo info = {1, &tag, &format};\n        SecKeychainAttributeList* attributes;\n        status = SecKeychainItemCopyAttributesAndData(itemRef, &info, NULL, &attributes, NULL, NULL);\n        if (status == noErr) {\n          XLOG_DEBUG_CHECK(attributes->count == 1);\n          XLOG_DEBUG_CHECK(attributes->attr[0].tag == kSecAccountItemAttr);\n          *username = [[NSString alloc] initWithBytes:attributes->attr[0].data length:attributes->attr[0].length encoding:NSUTF8StringEncoding];\n          success = YES;\n          SecKeychainItemFreeAttributesAndData(attributes, NULL);\n        } else {\n          XLOG_ERROR(@\"SecKeychainItemCopyAttributesAndData() returned error %i\", status);\n        }\n      } else {\n        *username = [user copy];\n        success = YES;\n      }\n      SecKeychainItemFreeContent(NULL, passwordData);\n      CFRelease(itemRef);\n      if (success) {\n        return YES;\n      }\n    } else if (status != errSecItemNotFound) {\n      XLOG_ERROR(@\"SecKeychainFindInternetPassword() returned error %i\", status);\n    }\n  } else {\n    XLOG_WARNING(@\"Unable to extract hostname from remote URL: %@\", url);\n  }\n  return NO;\n}\n\n+ (void)savePlainTextAuthenticationToKeychainForURL:(NSURL*)url username:(NSString*)username password:(NSString*)password {\n  SecProtocolType type;\n  if ([url.scheme isEqualToString:@\"http\"]) {\n    type = kSecProtocolTypeHTTP;\n  } else if ([url.scheme isEqualToString:@\"https\"]) {\n    type = kSecProtocolTypeHTTPS;\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n    return;\n  }\n  const char* serverName = url.host.UTF8String;\n  const char* accountName = username.UTF8String;\n  const char* accountPassword = password.UTF8String;\n  SecKeychainSetUserInteractionAllowed(true);  // Ignore errors\n  OSStatus status = SecKeychainAddInternetPassword(NULL,\n                                                   (UInt32)strlen(serverName), serverName,\n                                                   0, NULL,  // Any security domain\n                                                   accountName ? (UInt32)strlen(accountName) : 0, accountName,\n                                                   0, NULL,  // Any path\n                                                   0,  // Any port\n                                                   type,\n                                                   kSecAuthenticationTypeAny,\n                                                   (UInt32)strlen(accountPassword), accountPassword, NULL);\n  if (status != noErr) {\n    XLOG_ERROR(@\"SecKeychainAddInternetPassword() returned error %i\", status);\n  } else {\n    XLOG_VERBOSE(@\"Successfully saved authentication in Keychain\");\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/PreferencesWindowController.h",
    "content": "//\n//  PreferencesWindowController.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import <AppKit/AppKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n#pragma mark - Release Channels\nextern NSString* const PreferencesWindowController_ReleaseChannel_Stable;\nextern NSString* const PreferencesWindowController_ReleaseChannel_Continuous;\n\n#pragma mark - Themes\nextern NSString* const PreferencesWindowController_Theme_SystemPreference;\nextern NSString* const PreferencesWindowController_Theme_Light;\nextern NSString* const PreferencesWindowController_Theme_Dark;\n\n@interface PreferencesThemeService : NSObject\n+ (NSString*)selectedTheme;\n+ (void)applySelectedTheme;\n@end\n\n@interface PreferencesWindowController : NSWindowController\n@property(nonatomic, copy) NSArray<NSString*>* channelTitles;\n@property(nonatomic, copy) NSArray<NSString*>* themesTitles;\n@property(nonatomic, copy) NSString* selectedChannel;\n@property(nonatomic, copy) NSString* selectedTheme;\n@property(nonatomic, copy) NSString* selectedItemIdentifier;\n\n@property(nonatomic, copy) void (^didChangeReleaseChannel)(BOOL);\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/PreferencesWindowController.m",
    "content": "//\n//  PreferencesWindowController.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import \"PreferencesWindowController.h\"\n#import \"Common.h\"\n\n#pragma mark - Preferences\n#pragma mark - Preferences / Channels\nNSString* const PreferencesWindowController_ReleaseChannel_Stable = @\"stable\";\nNSString* const PreferencesWindowController_ReleaseChannel_Continuous = @\"continuous\";\n\n#pragma mark - Preferences / Themes\nNSString* const PreferencesWindowController_Theme_SystemPreference = @\"systemTheme\";\nNSString* const PreferencesWindowController_Theme_Light = @\"lightTheme\";\nNSString* const PreferencesWindowController_Theme_Dark = @\"darkTheme\";\n\n#pragma mark - Preferences / Item Identifiers\nstatic NSString* const PreferencesWindowController_Identifier_General = @\"general\";\n\n@interface PreferencesThemeService ()\n+ (NSAppearanceName)appearanceNameWithTheme:(NSString*)theme;\n+ (void)applyTheme:(NSString*)theme;\n@end\n\n@implementation PreferencesThemeService\n+ (NSAppearanceName)appearanceNameWithTheme:(NSString*)theme {\n  if ([theme isEqualToString:PreferencesWindowController_Theme_Dark]) {\n    return NSAppearanceNameDarkAqua;\n  }\n  if ([theme isEqualToString:PreferencesWindowController_Theme_SystemPreference]) {\n    return nil;\n  }\n  if ([theme isEqualToString:PreferencesWindowController_Theme_Light]) {\n    return NSAppearanceNameAqua;\n  }\n  return nil;\n}\n\n+ (void)applyTheme:(NSString*)theme {\n  NSAppearanceName name = [self appearanceNameWithTheme:theme];\n  NSApp.appearance = name != nil ? [NSAppearance appearanceNamed:name] : nil;\n  [NSUserDefaults.standardUserDefaults setObject:theme forKey:kUserDefaultsKey_Theme];\n}\n\n+ (NSString*)selectedTheme {\n  return [NSUserDefaults.standardUserDefaults stringForKey:kUserDefaultsKey_Theme];\n}\n\n+ (void)applySelectedTheme {\n  [self applyTheme:self.selectedTheme];\n}\n@end\n\n@interface PreferencesWindowController ()\n@property(nonatomic, weak) IBOutlet NSToolbar* preferencesToolbar;\n@property(nonatomic, weak) IBOutlet NSTabView* preferencesTabView;\n@property(nonatomic, weak) IBOutlet NSPopUpButton* channelPopUpButton;\n@property(nonatomic, weak) IBOutlet NSPopUpButton* themePopUpButton;\n@end\n\n@implementation PreferencesWindowController\n\n#pragma mark - Initialization\n- (instancetype)init {\n  return [super initWithWindowNibName:@\"PreferencesWindowController\"];\n}\n\n#pragma mark - Window Lifecycle\n- (void)windowDidLoad {\n  [super windowDidLoad];\n\n  self.channelTitles = @[\n    PreferencesWindowController_ReleaseChannel_Stable,\n    PreferencesWindowController_ReleaseChannel_Continuous\n  ];\n\n  self.themesTitles = @[\n    PreferencesWindowController_Theme_SystemPreference,\n    PreferencesWindowController_Theme_Light,\n    PreferencesWindowController_Theme_Dark\n  ];\n\n  self.selectedItemIdentifier = PreferencesWindowController_Identifier_General;\n\n  [self loadUserDefaults];\n}\n\n- (void)loadUserDefaults {\n  NSString* theme = [NSUserDefaults.standardUserDefaults stringForKey:kUserDefaultsKey_Theme];\n  self.selectedTheme = theme;\n  NSString* channel = [NSUserDefaults.standardUserDefaults stringForKey:kUserDefaultsKey_ReleaseChannel];\n  self.selectedChannel = channel;\n}\n\n- (void)showWindow:(id)sender {\n  [self loadUserDefaults];\n  [self selectPreferencePane:self];\n  [super showWindow:sender];\n}\n\n#pragma mark - PopUp Buttons\n- (void)setChannelTitles:(NSArray<NSString*>*)channelTitles {\n  [self.channelPopUpButton.menu removeAllItems];\n  for (NSString* string in channelTitles) {\n    NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(string, nil) action:NULL keyEquivalent:@\"\"];\n    item.representedObject = string;\n    [self.channelPopUpButton.menu addItem:item];\n  }\n}\n\n- (void)setThemesTitles:(NSArray<NSString*>*)themesTitles {\n  [self.themePopUpButton.menu removeAllItems];\n  for (NSString* string in themesTitles) {\n    NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(string, nil) action:NULL keyEquivalent:@\"\"];\n    item.representedObject = string;\n    [self.themePopUpButton.menu addItem:item];\n  }\n}\n\n- (NSArray<NSString*>*)channelTitles {\n  return self.channelPopUpButton.itemTitles;\n}\n\n- (NSArray<NSString*>*)themesTitles {\n  return self.themePopUpButton.itemTitles;\n}\n\n- (void)setSelectedChannel:(NSString*)selectedChannel {\n  for (NSMenuItem* item in self.channelPopUpButton.itemArray) {\n    if ([item.representedObject isEqualToString:selectedChannel]) {\n      [self.channelPopUpButton selectItem:item];\n      break;\n    }\n  }\n}\n\n- (void)setSelectedTheme:(NSString*)selectedTheme {\n  for (NSMenuItem* item in self.themePopUpButton.itemArray) {\n    if ([item.representedObject isEqualToString:selectedTheme]) {\n      [self.themePopUpButton selectItem:item];\n      break;\n    }\n  }\n}\n\n- (NSString*)selectedChannel {\n  return self.channelPopUpButton.selectedItem.representedObject;\n}\n\n- (NSString*)selectedTheme {\n  return self.themePopUpButton.selectedItem.representedObject;\n}\n\n#pragma mark - Selection\n- (void)setSelectedItemIdentifier:(NSString*)selectedItemIdentifier {\n  self.preferencesToolbar.selectedItemIdentifier = selectedItemIdentifier;\n  [self selectPreferencePane:nil];\n}\n\n- (NSString*)selectedItemIdentifier {\n  return self.preferencesToolbar.selectedItemIdentifier;\n}\n\n#pragma mark - Actions\n#pragma mark - Actions / Select Preference Pane\n- (IBAction)selectPreferencePane:(id)sender {\n  NSWindow* window = self.window;\n  [_preferencesTabView selectTabViewItemWithIdentifier:_preferencesToolbar.selectedItemIdentifier];\n  NSSize size = NSSizeFromString(_preferencesTabView.selectedTabViewItem.label);\n  NSRect rect = [window contentRectForFrameRect:window.frame];\n  if (sender) {\n    rect.origin.y += rect.size.height;\n  }\n  rect.size.width = size.width;\n  rect.size.height = size.height;\n  if (sender) {\n    rect.origin.y -= rect.size.height;\n  }\n  [window setFrame:[window frameRectForContentRect:rect] display:YES animate:(sender ? YES : NO)];\n}\n\n#pragma mark - Actions / Change Theme\n- (IBAction)changeTheme:(id)sender {\n  NSString* theme = self.selectedTheme;\n  [PreferencesThemeService applyTheme:theme];\n}\n\n#pragma mark - Actions / Change Release Channel\n- (IBAction)changeReleaseChannel:(id)sender {\n  NSString* newChannel = self.selectedChannel;\n  NSString* oldChannel = [NSUserDefaults.standardUserDefaults stringForKey:kUserDefaultsKey_ReleaseChannel];\n  BOOL didChangeReleaseChannel = ![newChannel isEqualToString:oldChannel];\n  if (didChangeReleaseChannel) {\n    [NSUserDefaults.standardUserDefaults setObject:newChannel forKey:kUserDefaultsKey_ReleaseChannel];\n    if (self.didChangeReleaseChannel) {\n      self.didChangeReleaseChannel(didChangeReleaseChannel);\n    }\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/ServicesProvider.h",
    "content": "//\n//  ServicesProvider.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 17/09/2019.\n//\n\n#import <Foundation/Foundation.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ServicesProvider : NSObject\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/ServicesProvider.m",
    "content": "//\n//  ServicesProvider.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 17/09/2019.\n//\n\n#import \"ServicesProvider.h\"\n#import <AppKit/AppKit.h>\n#import \"AppDelegate.h\"\n#import \"Document.h\"\n#import <GitUpKit/GitUpKit.h>\n\n@interface AppDelegate (ServicesProvider)\n- (void)_openRepositoryWithURL:(NSURL*)url withCloneMode:(CloneMode)cloneMode windowModeID:(WindowModeID)windowModeID;\n@end\n\n@interface ServicesProvider ()\n@property(weak, nonatomic, readonly) AppDelegate* appDelegate;\n@end\n\n@implementation ServicesProvider\n\n#pragma mark - Accessors\n- (AppDelegate*)appDelegate {\n  return [AppDelegate sharedDelegate];\n}\n\n#pragma mark - Check pasteboard\n- (BOOL)canOpenItem:(NSPasteboard*)pasteboard {\n  return [self items:pasteboard].count > 0;\n}\n\n- (BOOL)isValidGitRepositoryAtURL:(NSURL*)url error:(NSError* __autoreleasing*)error {\n  GCRepository* repository = [[GCRepository alloc] initWithExistingLocalRepository:url.path error:error];\n  return repository != nil && (error == NULL || (*error) == nil);\n}\n\n- (NSArray<NSURL*>*)items:(NSPasteboard*)pasteboard {\n  return [pasteboard readObjectsForClasses:@[ NSURL.class ] options:nil];\n}\n\n#pragma mark - Services Provider\n// the minimum method which consists of 3 parameters.\n// 1. methodName: NSPasteboard\n// 2. userData: NSString\n// 3. error: *NSError\n// methodName ( first part ) will be used in .plist to advertise service.\n\n// NOTE:\n// To debug services functionailty.\n// 1. Be sure that methodName ( openRepository ) is used as instance method in plist.\n// 2. Set correct send types in plist. ( NSURLPboardType for urls. )\n// 3. Open Derived data and put .app into ~/Application directory. ( Or make a link to that app ).\n// 4. Rename app if necessary.\n// 5. Use pbs utility to refresh services.\n// 5.1. /System/Library/CoreServices/pbs -update\n// 5.2. /System/Library/CoreServices/pbs -flush\n// 5.3. /System/Library/CoreServices/pbs -dump_cache\n// 6. Be sure that your .app is appearing in dump_cache output.\n// 7. Check finder contextual menu.\n- (void)openRepository:(NSPasteboard*)pasteboard userData:(NSString*)userData error:(NSError* __autoreleasing*)error {\n  if (![self canOpenItem:pasteboard]) {\n    return;\n  }\n\n  // check that we have a directory.\n\n  NSURL* url = [self items:pasteboard].firstObject;\n  if ([self isValidGitRepositoryAtURL:url error:error]) {\n    [self.appDelegate _openRepositoryWithURL:url withCloneMode:kCloneMode_None windowModeID:NSNotFound];\n  } else {\n    // item is not a valid git repository.\n    if (error && *error) {\n      [[NSDocumentController sharedDocumentController] presentError:*error];\n    }\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/ToolbarItemWrapperView.h",
    "content": "//  Copyright (C) 2018 Rob Mayoff <gitup@rob.dqd.com>.\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@interface ToolbarItemWrapperView : NSView\n\n@end\n"
  },
  {
    "path": "GitUp/Application/ToolbarItemWrapperView.m",
    "content": "//  Copyright (C) 2018 Rob Mayoff <gitup@rob.dqd.com>.\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"ToolbarItemWrapperView.h\"\n\n@implementation ToolbarItemWrapperView\n\n- (NSView*)hitTest:(NSPoint)point {\n  // Normally, a double-click in a window title bar zooms the window on the second mouse-up. In a unified title/toolbar window, if a mouse-up hit-tests into a subview of a toolbar item, the mouse-up cannot zoom the window. This subclass selectively suppresses hits to allow a double-click to zoom its window.\n  NSView* hit = [super hitTest:point];\n\n  for (NSView* child = hit; child != nil && child != self; child = [child superview]) {\n    if ([child isKindOfClass:[NSTextField class]]) {\n      NSTextField* field = (NSTextField*)child;\n      if (field.enabled && field.selectable) {\n        return hit;\n      }\n\n      // We recognised the view but it is not enabled and selectable, so we need to break this loop iteration\n      continue;\n    }\n\n    if ([child isKindOfClass:[NSControl class]]) {\n      NSControl* control = (NSControl*)child;\n      if (control.enabled) {\n        return hit;\n      }\n    }\n\n    if ([child isKindOfClass:[NSTextView class]]) {\n      // The search field adds the field editor, an NSTextView, as a subview when it's being edited.\n      NSTextView* textView = (NSTextView*)child;\n      if (textView.selectable) {\n        return hit;\n      }\n    }\n  }\n\n  return nil;\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/WelcomeWindowController.h",
    "content": "//\n//  WelcomeWindowController.h\n//  Application\n//\n//  Created by Dmitry Lobanov on 10/09/2019.\n//\n\n#import <Cocoa/Cocoa.h>\n#import <GitUpKit/GitUpKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface WelcomeWindowController : NSWindowController\n\n// Hide and Show\n@property(assign, nonatomic, readonly) BOOL shouldShow;\n@property(assign, nonatomic, readonly) BOOL notActivedYet;\n- (void)setShouldShow;\n- (void)setShouldHide;\n\n// Recent items configuration\n@property(nonatomic, copy) void (^openDocumentAtURL)(NSURL* url);\n\n// UserDefaultsKeys\n@property(nonatomic, copy) NSString* keyShouldShowWindow;\n\n// Actions\n- (void)handleDocumentCountChanged;\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUp/Application/WelcomeWindowController.m",
    "content": "//\n//  WelcomeWindowController.m\n//  Application\n//\n//  Created by Dmitry Lobanov on 10/09/2019.\n//\n\n#import \"WelcomeWindowController.h\"\n\n#define kURL_Twitter @\"https://twitter.com/GitUpApp\"\n\n@interface WelcomeWindowView : NSView <NSDraggingDestination>\n\n// Drag and Drop\n@property(weak, nonatomic) IBOutlet NSImageView* imageView;\n@property(assign, nonatomic) BOOL receivingDrag;\n\n// Open document\n@property(copy, nonatomic) void (^openDocumentAtURL)(NSURL* url);\n@end\n\n@implementation WelcomeWindowView\n\n#pragma mark - Setup\n- (void)setup {\n  [self.imageView unregisterDraggedTypes];\n  [self registerForDraggedTypes:@[ NSPasteboardTypeURL ]];\n}\n\n- (void)awakeFromNib {\n  [super awakeFromNib];\n  [self setup];\n}\n\n#pragma mark - Drawing\n- (void)setReceivingDrag:(BOOL)receivingDrag {\n  _receivingDrag = receivingDrag;\n  [self setNeedsDisplay:YES];\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  if (self.receivingDrag) {\n    [NSColor.selectedControlColor set];\n    NSBezierPath* path = [NSBezierPath bezierPathWithRoundedRect:self.bounds xRadius:10 yRadius:10];\n    path.lineWidth = 5;\n    [path stroke];\n  }\n}\n\n#pragma mark - Dragging Data Extraction\n- (BOOL)canDragItem:(id<NSDraggingInfo>)sender {\n  return [self draggingItems:sender].count > 0;\n}\n\n- (NSArray<NSURL*>*)draggingItems:(id<NSDraggingInfo>)sender {\n  return [[sender draggingPasteboard] readObjectsForClasses:@[ NSURL.class ] options:nil];\n}\n\n#pragma mark - NSDraggingDestination\n- (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender {\n  BOOL canDragItem = [self canDragItem:sender];\n  self.receivingDrag = canDragItem;\n  return canDragItem ? NSDragOperationCopy : NSDragOperationNone;\n}\n\n- (void)draggingEnded:(id<NSDraggingInfo>)sender {\n  self.receivingDrag = NO;\n}\n\n- (void)draggingExited:(id<NSDraggingInfo>)sender {\n  self.receivingDrag = NO;\n}\n\n- (BOOL)prepareForDragOperation:(id<NSDraggingInfo>)sender {\n  return [self canDragItem:sender];\n}\n\n- (BOOL)performDragOperation:(id<NSDraggingInfo>)sender {\n  self.receivingDrag = NO;\n\n  NSURL* url = [self draggingItems:sender].firstObject;\n\n  if (self.openDocumentAtURL) {\n    self.openDocumentAtURL(url);\n  }\n\n  return YES;\n}\n\n- (void)concludeDragOperation:(id<NSDraggingInfo>)sender {\n  // necessary cleanup?\n}\n@end\n\n@interface WelcomeWindow : NSWindow\n@end\n\n@implementation WelcomeWindow\n\n#pragma mark - Setup\n- (void)setup {\n  self.opaque = NO;\n  self.backgroundColor = [NSColor clearColor];\n  self.movableByWindowBackground = YES;\n}\n\n- (void)awakeFromNib {\n  [self setup];\n}\n\n#pragma mark - Window\n- (BOOL)canBecomeKeyWindow {\n  return YES;\n}\n\n@end\n\ntypedef NS_ENUM(NSInteger, WelcomeWindowControllerWindowState) {\n  WelcomeWindowControllerWindowStateNotActivated,\n  WelcomeWindowControllerWindowStateClosed,\n  WelcomeWindowControllerWindowStateShouldBeOpened\n};\n\n@interface WelcomeWindowController ()\n@property(nonatomic, weak) IBOutlet NSButton* closeButton;\n@property(nonatomic, weak) IBOutlet NSPopUpButton* recentPopUpButton;\n@property(nonatomic, weak) IBOutlet GILinkButton* twitterButton;\n@property(nonatomic, weak) IBOutlet GILinkButton* forumsButton;\n@property(nonatomic, weak) IBOutlet WelcomeWindowView* destinationView;\n@property(assign, nonatomic, readwrite) WelcomeWindowControllerWindowState state;\n@end\n\n@implementation WelcomeWindowController\n#pragma mark - States\n#pragma mark - States / Setters\n- (void)setShouldShow {\n  self.state = WelcomeWindowControllerWindowStateShouldBeOpened;\n}\n- (void)setShouldHide {\n  self.state = WelcomeWindowControllerWindowStateClosed;\n}\n\n#pragma mark - States / Getters\n- (BOOL)notActivedYet {\n  return self.state == WelcomeWindowControllerWindowStateNotActivated;\n}\n- (BOOL)shouldShow {\n  return self.state == WelcomeWindowControllerWindowStateShouldBeOpened;\n}\n\n#pragma mark - Initialization\n- (instancetype)init {\n  return [super initWithWindowNibName:@\"WelcomeWindowController\"];\n}\n\n#pragma mark - Setup\n- (void)setupUIElements {\n  self.twitterButton.textAlignment = NSTextAlignmentLeft;\n  self.twitterButton.textFont = [NSFont boldSystemFontOfSize:11];\n  self.forumsButton.textAlignment = NSTextAlignmentLeft;\n  self.forumsButton.textFont = [NSFont boldSystemFontOfSize:11];\n\n  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willShowPopUpMenu) name:NSPopUpButtonWillPopUpNotification object:self.recentPopUpButton];\n\n  self.closeButton.action = @selector(closeButtonPressed);\n  self.twitterButton.action = @selector(openTwitter);\n\n  self.closeButton.target = self;\n  self.twitterButton.target = self;\n\n  self.destinationView.openDocumentAtURL = self.openDocumentAtURL;\n}\n\n#pragma mark - Window Lifecycle\n- (void)windowDidLoad {\n  [super windowDidLoad];\n  [self setupUIElements];\n}\n\n#pragma mark - Reactions\n- (void)handleDocumentCountChanged {\n  BOOL showWelcomeWindow = [NSUserDefaults.standardUserDefaults boolForKey:self.keyShouldShowWindow];\n  if (showWelcomeWindow && (self.shouldShow) && !NSDocumentController.sharedDocumentController.documents.count) {\n    [self showWindow:nil];\n  } else {\n    [self close];\n  }\n}\n\n#pragma mark - Actions/Close\n- (void)closeButtonPressed {\n  [self setShouldHide];\n  [self close];\n}\n\n#pragma mark - Actions/Recent\n- (void)cleanupRecentEntries {\n  NSMenu* menu = self.recentPopUpButton.menu;\n  NSMenuItem* item = menu.itemArray.firstObject;\n  [menu removeAllItems];\n  if (item) {\n    [menu addItem:item];\n  }\n}\n\n- (void)didPressPopUpItem:(NSMenuItem*)item {\n  if ([item.representedObject isKindOfClass:NSURL.class]) {\n    if (self.openDocumentAtURL) {\n      self.openDocumentAtURL(item.representedObject);\n    }\n  }\n}\n\n- (void)willShowPopUpMenu {\n  [self cleanupRecentEntries];\n  NSMenu* menu = self.recentPopUpButton.menu;\n  NSArray* array = NSDocumentController.sharedDocumentController.recentDocumentURLs;\n  if (array.count) {\n    for (NSURL* url in array) {\n      NSString* path = url.path;\n      NSString* title = path.lastPathComponent;\n      for (NSMenuItem* item in menu.itemArray) {  // TODO: Handle identical second-to-last path component\n        if ([item.title caseInsensitiveCompare:title] == NSOrderedSame) {\n          title = [NSString stringWithFormat:@\"%@ — %@\", path.lastPathComponent, path.stringByDeletingLastPathComponent.lastPathComponent];\n          path = [(NSURL*)item.representedObject path];\n          item.title = [NSString stringWithFormat:@\"%@ — %@\", path.lastPathComponent, path.stringByDeletingLastPathComponent.lastPathComponent];\n          break;\n        }\n      }\n      NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:title action:NULL keyEquivalent:@\"\"];\n      item.representedObject = url;\n      item.target = self;\n      item.action = @selector(didPressPopUpItem:);\n      [menu addItem:item];\n    }\n  } else {\n    NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"No Repositories\", nil) action:NULL keyEquivalent:@\"\"];\n    item.enabled = NO;\n    [menu addItem:item];\n  }\n}\n\n#pragma mark - Actions/Twitter&Issues\n- (void)openTwitter {\n  [NSWorkspace.sharedWorkspace openURL:[NSURL URLWithString:kURL_Twitter]];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/WindowController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <GitUpKit/GitUpKit.h>\n\n@interface WindowController : GIWindowController <NSWindowDelegate>\n@end\n"
  },
  {
    "path": "GitUp/Application/WindowController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"WindowController.h\"\n#import \"Document.h\"\n\n@implementation WindowController\n\n- (void)dealloc {\n  self.window.contentView = nil;  // Work around a strange bug in OS X 10.10 affected restored windows only where they remain retained for a couple seconds after the NSDocument was closed\n}\n\n- (void)windowDidLoad {\n  [super windowDidLoad];\n\n  self.window.delegate = self;\n}\n\n- (NSUndoManager*)windowWillReturnUndoManager:(NSWindow*)window {\n  return [(Document*)self.document undoManager];\n}\n\n@end\n"
  },
  {
    "path": "GitUp/Application/en.lproj/Help.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>map</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>The GitUp Map view lets you visualize the entire history of your repository and reflects its changes in real-time.\nYou can customize what is shown in the Map using the &quot;Show&quot; menu at the bottom of the window.</string>\n\t\t\t<string>GitUp lets you instantaneously view the detailed information and diff of any commit with Quick View.\nSelect a commit in the Map and then press [Spacebar] to enter Quick View.</string>\n\t\t\t<string>Branch and commit operations that used to be complex with the command line become intuitive, faster and safer with GitUp.\nRight-click on a commit in the Map to show a list of available actions and their associated keyboard shortcuts.</string>\n\t\t\t<string>For instance, to edit an incorrect commit message with GitUp, just select the commit in the Map then press [E].\nRight-click on a commit to see all editing operations. You can undo / redo your edits at any time with [Cmd-Z] / [Cmd-Shift-Z].</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Map-View</string>\n\t</dict>\n\t<key>commit</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>The GitUp Commit view is where you create new commits in your repository - it has an &quot;Advanced&quot; mode and a &quot;Simple&quot; mode.\nThe Simple mode uses a unified index and workdir and you can enable it in GitUp preferences.</string>\n\t\t\t<string>The Advanced Commit view has intuitive keyboard shortcuts that let you prepare your commits very fast.\nYou can stage or unstage selected lines (click on line numbers), or selected files, just by pressing [Return].</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Advanced-Commit-View</string>\n\t</dict>\n\t<key>stashes</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>The GitUp Stashes view lets you browse stashes from your repository and see their diff.\nYou can also re-apply stashes, delete them or save new ones.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Stashes-View</string>\n\t</dict>\n\t<key>config</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>The Git Configuration Editor lets your browse and edit all the Git configuration options affecting your repository.\nBe sure to only edit options you understand or you may prevent your repository to work correctly.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Configuration-Editor</string>\n\t</dict>\n\t<key>quickview</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>Quick View shows you detailed information about a specific commit in the repository along with its full diff.\nPress [Cmd-Arrow-Up] or [Cmd-Arrow-Down] to select the previous or next commit, or [Spacebar] or [Esc] to exit.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Quick-View</string>\n\t</dict>\n\t<key>diff</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>The Diff view shows you the diff between the current HEAD of the repository and any other commit.\nPress [i] or [Esc] to exit.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Viewing-Diffs-in-GitUp</string>\n\t</dict>\n\t<key>search</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>GitUp can search branches, tags, users, commit messages, and even commit diffs (must be enabled first in repository settings).\nSelect a result to jump to it in the Map, or press [Spacebar] to view its diff with Quick View.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Search</string>\n\t</dict>\n\t<key>tags</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>Select a tag to jump to it in the Map view or press [Spacebar] to enter Quick View for its commit.\nIf you have lots of tags in your repository, you can use the search field to find a specific tag faster.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Browsing-Tags-with-GitUp</string>\n\t</dict>\n\t<key>ancestors</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>See at a glance summaries, authors and dates for the first 1,000 ancestor commits of the current HEAD.\nSelect an ancestor commit to jump to it in the Map view or press [Spacebar] to enter Quick View.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Browsing-HEAD-Ancestors-with-GitUp</string>\n\t</dict>\n\t<key>snapshots</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>Snapshots are like Time Machine for Git: they automatically capture the state of your repository before any significant change.\nSelect a Snapshot to preview the state of the repository at that time and then click &quot;Restore&quot; to roll back to it.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Snapshots</string>\n\t</dict>\n\t<key>reflog</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>GitUp shows the reflogs of the repository as a single deduplicated list of all the entries.\nUnreachable commits are indicated in darker text and can be made reachable again by clicking on &quot;Restore&quot;.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Using-GitUp-Reflog</string>\n\t</dict>\n\t<key>rewrite</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>Your repository has been rolled back to the commit to rewrite, and the files in the working directory are now as they were in that commit.\nAdd, remove or edit files in the working directory as you would normally do, then click &quot;Continue&quot;.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Rewriting-Commits-with-GitUp</string>\n\t</dict>\n\t<key>split</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>You are now splitting an existing commit by moving its changes between an &quot;old&quot; commit and a &quot;new&quot; one.\nChanges can only be moved, not removed or added. Use the diff area to review the moved changes, then click &quot;Continue&quot; when done.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Splitting-Commits-with-GitUp</string>\n\t</dict>\n\t<key>resolve</key>\n\t<dict>\n\t\t<key>contents</key>\n\t\t<array>\n\t\t\t<string>Resolve the files with merge conflicts by opening them with their usual editors, fixing the conflicts, then marking them as resolved.\nOnce you have resolved all the conflicts, click &quot;Commit&quot; to complete the editing operation.</string>\n\t\t</array>\n\t\t<key>link</key>\n\t\t<string>https://github.com/git-up/GitUp/wiki/Handling-Merge-Conflicts-in-GitUp</string>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUp/Application/en.lproj/InfoPlist.strings",
    "content": "/* \n  InfoPlist.strings\n  GitUp\n\n  Created by Dmitry Lobanov on 25/08/2019.\n  \n*/\n\n\"NSAppleEventsUsageDescription\" = \"Please give access to Terminal via Apple Script.\";\n"
  },
  {
    "path": "GitUp/Application/en.lproj/Localizable.strings",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n\"stable\" = \"Stable\";\n\"continuous\" = \"Continuous\";\n\n\"systemTheme\" = \"According to System Preference\";\n\"darkTheme\" = \"Always use Dark theme\";\n\"lightTheme\" = \"Always use Light theme\";\n\n\"map\" = \"Map\";\n\"quickview\" = \"Quick View\";\n\"diff\" = \"Diff\";\n\"rewrite\" = \"Rewrite Commit\";\n\"split\" = \"Split Commit\";\n\"resolve\" = \"Resolve Conflicts\";\n\"config\" = \"Configuration\";\n\"commit\" = \"Commit\";\n\"stashes\" = \"Stashes\";\n"
  },
  {
    "path": "GitUp/Application/main.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, const char* argv[]) {\n  return NSApplicationMain(argc, argv);\n}\n"
  },
  {
    "path": "GitUp/Export-Options.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>method</key>\n\t<string>developer-id</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUp/GitUp.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 54;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t0A01676A2330CABD0069961E /* ServicesProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0167692330CABD0069961E /* ServicesProvider.m */; };\n\t\t0A0C5ACB23720BAE000D84A1 /* KeychainAccessor.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0C5ACA23720BAE000D84A1 /* KeychainAccessor.m */; };\n\t\t0A0D211B23579888003A2B5F /* AboutWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A0D211723579887003A2B5F /* AboutWindowController.m */; };\n\t\t0A2BBECB235F9B2400912B65 /* AboutWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0A2BBEC9235F9B2400912B65 /* AboutWindowController.xib */; };\n\t\t0A2F488F23683DC90072C6FB /* AuthenticationWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A2F488E23683DC90072C6FB /* AuthenticationWindowController.m */; };\n\t\t0A2F489223683DD60072C6FB /* AuthenticationWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0A2F489023683DD60072C6FB /* AuthenticationWindowController.xib */; };\n\t\t0A3388BC2353BD630022528D /* WelcomeWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0A3388BA2353BD630022528D /* WelcomeWindowController.xib */; };\n\t\t0A4881DC26C7B98D00289CF9 /* Libgit2Origin in Frameworks */ = {isa = PBXBuildFile; productRef = 0A4881DB26C7B98D00289CF9 /* Libgit2Origin */; };\n\t\t0A58CD77237B4F4B00C2BDD0 /* CloneWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0A58CD73237B4F4B00C2BDD0 /* CloneWindowController.m */; };\n\t\t0A58CD7A237B4F9600C2BDD0 /* CloneWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0A58CD78237B4F9600C2BDD0 /* CloneWindowController.xib */; };\n\t\t0AC8525123A11F2F00479160 /* PreferencesWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AC8525023A11F2F00479160 /* PreferencesWindowController.m */; };\n\t\t0AC8525423A11F3700479160 /* PreferencesWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0AC8525223A11F3700479160 /* PreferencesWindowController.xib */; };\n\t\t0AD4625B232711B000BE28D1 /* WelcomeWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AD4625A232711B000BE28D1 /* WelcomeWindowController.m */; };\n\t\t0AE7F5F12312C1B000B06050 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 0AE7F5ED2312C1B000B06050 /* InfoPlist.strings */; };\n\t\t1DE066042C3781AF00540818 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 1DE066032C3781AF00540818 /* Sparkle */; };\n\t\t31CD50E3203E2E2800360B3A /* ToolbarItemWrapperView.m in Sources */ = {isa = PBXBuildFile; fileRef = 31CD50E2203E2E2800360B3A /* ToolbarItemWrapperView.m */; };\n\t\tA53C6D0C1E61A9CF0070387E /* FontSizeTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = A53C6D0B1E61A9CF0070387E /* FontSizeTransformer.m */; };\n\t\tDBBEE685256B0A0200F96DAF /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE684256B0A0200F96DAF /* libiconv.tbd */; };\n\t\tDBBEE688256B0A0A00F96DAF /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE687256B0A0A00F96DAF /* libz.tbd */; };\n\t\tE21739F71A5080DD00EC6777 /* DocumentController.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739F61A5080DD00EC6777 /* DocumentController.m */; };\n\t\tE21DCAEB1B253847006424E8 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E21DCAEA1B253847006424E8 /* main.m */; };\n\t\tE21DCAF31B253919006424E8 /* gitup in Copy Tool */ = {isa = PBXBuildFile; fileRef = E21DCAE81B253847006424E8 /* gitup */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };\n\t\tE21DCAF51B254117006424E8 /* install.sh in Copy Tool */ = {isa = PBXBuildFile; fileRef = E21DCAF41B254112006424E8 /* install.sh */; };\n\t\tE25EBCEB1AA3F8B700D3AF44 /* Application.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E25EBCEA1AA3F8B700D3AF44 /* Application.xcassets */; };\n\t\tE267E2741B84E42A00BAB377 /* Help.plist in Resources */ = {isa = PBXBuildFile; fileRef = E2BDA0671AD47A2F00E69729 /* Help.plist */; };\n\t\tE28A16E51B87023200218332 /* GitUpKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E28A16E01B87021600218332 /* GitUpKit.framework */; };\n\t\tE28A16E61B87023C00218332 /* GitUpKit.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = E28A16E01B87021600218332 /* GitUpKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };\n\t\tE2A5BE701A814970008DD47F /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = E2A5BE6E1A814970008DD47F /* Localizable.strings */; };\n\t\tE2C338B219F8562F00063D95 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338B119F8562F00063D95 /* AppDelegate.m */; };\n\t\tE2C338B419F8562F00063D95 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338B319F8562F00063D95 /* main.m */; };\n\t\tE2C338B719F8562F00063D95 /* Document.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338B619F8562F00063D95 /* Document.m */; };\n\t\tE2C338BA19F8562F00063D95 /* Document.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2C338B819F8562F00063D95 /* Document.xib */; };\n\t\tE2C338BF19F8562F00063D95 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2C338BD19F8562F00063D95 /* MainMenu.xib */; };\n\t\tE2C5672D1A6D98BC00ECFE07 /* WindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C5672C1A6D98BC00ECFE07 /* WindowController.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tDBBEE6BE256B0B1C00F96DAF /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E28A16DA1B87021600218332 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = E267E1A71B84D6C500BAB377;\n\t\t\tremoteInfo = \"GitUpKit (macOS)\";\n\t\t};\n\t\tE217538A1B91641F00BE234A /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E28A16DA1B87021600218332 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E217531B1B91613300BE234A;\n\t\t\tremoteInfo = \"GitUpKit (iOS)\";\n\t\t};\n\t\tE21DCAF01B2538C5006424E8 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E2C338A319F8562F00063D95 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = E21DCAE71B253847006424E8;\n\t\t\tremoteInfo = Tool;\n\t\t};\n\t\tE28A16DF1B87021600218332 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E28A16DA1B87021600218332 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E267E1A81B84D6C500BAB377;\n\t\t\tremoteInfo = GitUpKit;\n\t\t};\n\t\tE28A16E11B87021600218332 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = E28A16DA1B87021600218332 /* GitUpKit.xcodeproj */;\n\t\t\tproxyType = 2;\n\t\t\tremoteGlobalIDString = E2C338C419F8562F00063D95;\n\t\t\tremoteInfo = Tests;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\tE21DCAF21B2538FB006424E8 /* Copy Tool */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 12;\n\t\t\tfiles = (\n\t\t\t\tE21DCAF31B253919006424E8 /* gitup in Copy Tool */,\n\t\t\t\tE21DCAF51B254117006424E8 /* install.sh in Copy Tool */,\n\t\t\t);\n\t\t\tname = \"Copy Tool\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE2653D271A5B3298006A9871 /* Copy Frameworks */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = \"\";\n\t\t\tdstSubfolderSpec = 10;\n\t\t\tfiles = (\n\t\t\t\tE28A16E61B87023C00218332 /* GitUpKit.framework in Copy Frameworks */,\n\t\t\t);\n\t\t\tname = \"Copy Frameworks\";\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t0A0167682330CABD0069961E /* ServicesProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ServicesProvider.h; sourceTree = \"<group>\"; };\n\t\t0A0167692330CABD0069961E /* ServicesProvider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ServicesProvider.m; sourceTree = \"<group>\"; };\n\t\t0A0C5AC923720BAE000D84A1 /* KeychainAccessor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeychainAccessor.h; sourceTree = \"<group>\"; };\n\t\t0A0C5ACA23720BAE000D84A1 /* KeychainAccessor.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeychainAccessor.m; sourceTree = \"<group>\"; };\n\t\t0A0D211723579887003A2B5F /* AboutWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AboutWindowController.m; sourceTree = \"<group>\"; };\n\t\t0A0D211A23579887003A2B5F /* AboutWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AboutWindowController.h; sourceTree = \"<group>\"; };\n\t\t0A2BBECA235F9B2400912B65 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AboutWindowController.xib; sourceTree = \"<group>\"; };\n\t\t0A2F488B23683DC90072C6FB /* AuthenticationWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AuthenticationWindowController.h; sourceTree = \"<group>\"; };\n\t\t0A2F488E23683DC90072C6FB /* AuthenticationWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AuthenticationWindowController.m; sourceTree = \"<group>\"; };\n\t\t0A2F489123683DD60072C6FB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/AuthenticationWindowController.xib; sourceTree = \"<group>\"; };\n\t\t0A3388BB2353BD630022528D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/WelcomeWindowController.xib; sourceTree = \"<group>\"; };\n\t\t0A58CD73237B4F4B00C2BDD0 /* CloneWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CloneWindowController.m; sourceTree = \"<group>\"; };\n\t\t0A58CD76237B4F4B00C2BDD0 /* CloneWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CloneWindowController.h; sourceTree = \"<group>\"; };\n\t\t0A58CD79237B4F9600C2BDD0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/CloneWindowController.xib; sourceTree = \"<group>\"; };\n\t\t0AC8524D23A11F2F00479160 /* PreferencesWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PreferencesWindowController.h; sourceTree = \"<group>\"; };\n\t\t0AC8525023A11F2F00479160 /* PreferencesWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PreferencesWindowController.m; sourceTree = \"<group>\"; };\n\t\t0AC8525323A11F3700479160 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/PreferencesWindowController.xib; sourceTree = \"<group>\"; };\n\t\t0AD46259232711B000BE28D1 /* WelcomeWindowController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WelcomeWindowController.h; sourceTree = \"<group>\"; };\n\t\t0AD4625A232711B000BE28D1 /* WelcomeWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WelcomeWindowController.m; sourceTree = \"<group>\"; };\n\t\t0AE7F5EE2312C1B000B06050 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = \"<group>\"; };\n\t\t1D2DA2F923E9E99700691DEF /* GitUp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = GitUp.entitlements; sourceTree = \"<group>\"; };\n\t\t31CD50E1203E2E2800360B3A /* ToolbarItemWrapperView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ToolbarItemWrapperView.h; sourceTree = \"<group>\"; };\n\t\t31CD50E2203E2E2800360B3A /* ToolbarItemWrapperView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ToolbarItemWrapperView.m; sourceTree = \"<group>\"; };\n\t\t3DB98C7D23E091650039B454 /* DEVELOPMENT_TEAM.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = DEVELOPMENT_TEAM.xcconfig; sourceTree = \"<group>\"; };\n\t\tA53C6D0A1E61A9CF0070387E /* FontSizeTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FontSizeTransformer.h; sourceTree = \"<group>\"; };\n\t\tA53C6D0B1E61A9CF0070387E /* FontSizeTransformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FontSizeTransformer.m; sourceTree = \"<group>\"; };\n\t\tDB0D250E256738F600E6F48A /* libgit2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libgit2.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tDBBEE684256B0A0200F96DAF /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = \"sourcecode.text-based-dylib-definition\"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };\n\t\tDBBEE687256B0A0A00F96DAF /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = \"sourcecode.text-based-dylib-definition\"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };\n\t\tE21739F51A5080DD00EC6777 /* DocumentController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DocumentController.h; sourceTree = \"<group>\"; };\n\t\tE21739F61A5080DD00EC6777 /* DocumentController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DocumentController.m; sourceTree = \"<group>\"; };\n\t\tE21DCAE81B253847006424E8 /* gitup */ = {isa = PBXFileReference; explicitFileType = \"compiled.mach-o.executable\"; includeInIndex = 0; path = gitup; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE21DCAEA1B253847006424E8 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tE21DCAF41B254112006424E8 /* install.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = install.sh; sourceTree = \"<group>\"; };\n\t\tE24306981B276D0B00CE8CCB /* ToolProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ToolProtocol.h; sourceTree = \"<group>\"; };\n\t\tE25EBCEA1AA3F8B700D3AF44 /* Application.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Application.xcassets; sourceTree = \"<group>\"; };\n\t\tE2653D241A5B2FBD006A9871 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = \"Third-Party/Sparkle.framework\"; sourceTree = SOURCE_ROOT; };\n\t\tE27E37561B86F670000A551A /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE27E37571B86F670000A551A /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tE27E37591B86F670000A551A /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tE28A16DA1B87021600218332 /* GitUpKit.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = \"wrapper.pb-project\"; name = GitUpKit.xcodeproj; path = ../GitUpKit/GitUpKit.xcodeproj; sourceTree = \"<group>\"; };\n\t\tE2A5BE6C1A80E560008DD47F /* Common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Common.h; sourceTree = \"<group>\"; };\n\t\tE2A5BE6F1A814970008DD47F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = \"<group>\"; };\n\t\tE2BDA0681AD47A2F00E69729 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = en; path = en.lproj/Help.plist; sourceTree = \"<group>\"; };\n\t\tE2C338AB19F8562F00063D95 /* GitUp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GitUp.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE2C338AF19F8562F00063D95 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tE2C338B019F8562F00063D95 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\tE2C338B119F8562F00063D95 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\tE2C338B319F8562F00063D95 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\tE2C338B519F8562F00063D95 /* Document.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Document.h; sourceTree = \"<group>\"; };\n\t\tE2C338B619F8562F00063D95 /* Document.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Document.m; sourceTree = \"<group>\"; };\n\t\tE2C5672B1A6D98BC00ECFE07 /* WindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WindowController.h; sourceTree = \"<group>\"; };\n\t\tE2C5672C1A6D98BC00ECFE07 /* WindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WindowController.m; sourceTree = \"<group>\"; };\n\t\tE2C8C91519FABC5100DA54AA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Document.xib; sourceTree = \"<group>\"; };\n\t\tE2C8C91619FABC5100DA54AA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE21DCAE51B253847006424E8 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDBBEE685256B0A0200F96DAF /* libiconv.tbd in Frameworks */,\n\t\t\t\t0A4881DC26C7B98D00289CF9 /* Libgit2Origin in Frameworks */,\n\t\t\t\tDBBEE688256B0A0A00F96DAF /* libz.tbd in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE2C338A819F8562F00063D95 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE28A16E51B87023200218332 /* GitUpKit.framework in Frameworks */,\n\t\t\t\t1DE066042C3781AF00540818 /* Sparkle in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tDB0D250D256738F600E6F48A /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB0D250E256738F600E6F48A /* libgit2.a */,\n\t\t\t\tDBBEE684256B0A0200F96DAF /* libiconv.tbd */,\n\t\t\t\tDBBEE687256B0A0A00F96DAF /* libz.tbd */,\n\t\t\t\tE2653D241A5B2FBD006A9871 /* Sparkle.framework */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21DCAE91B253847006424E8 /* Tool */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21DCAF41B254112006424E8 /* install.sh */,\n\t\t\t\tE21DCAEA1B253847006424E8 /* main.m */,\n\t\t\t);\n\t\t\tpath = Tool;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE27E37551B86F670000A551A /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE27E37561B86F670000A551A /* Base.xcconfig */,\n\t\t\t\tE27E37571B86F670000A551A /* Debug.xcconfig */,\n\t\t\t\tE27E37591B86F670000A551A /* Release.xcconfig */,\n\t\t\t\t3DB98C7D23E091650039B454 /* DEVELOPMENT_TEAM.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE28A16DB1B87021600218332 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE28A16E01B87021600218332 /* GitUpKit.framework */,\n\t\t\t\tE217538B1B91641F00BE234A /* GitUpKit.framework */,\n\t\t\t\tE28A16E21B87021600218332 /* GitUpTests.xctest */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2C338A219F8562F00063D95 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE28A16DA1B87021600218332 /* GitUpKit.xcodeproj */,\n\t\t\t\tE24306981B276D0B00CE8CCB /* ToolProtocol.h */,\n\t\t\t\tE21DCAE91B253847006424E8 /* Tool */,\n\t\t\t\tE2C338AD19F8562F00063D95 /* Application */,\n\t\t\t\tDB0D250D256738F600E6F48A /* Frameworks */,\n\t\t\t\tE27E37551B86F670000A551A /* Xcode-Configurations */,\n\t\t\t\tE2C338AC19F8562F00063D95 /* Products */,\n\t\t\t);\n\t\t\tindentWidth = 2;\n\t\t\tsourceTree = \"<group>\";\n\t\t\ttabWidth = 2;\n\t\t\tusesTabs = 0;\n\t\t};\n\t\tE2C338AC19F8562F00063D95 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2C338AB19F8562F00063D95 /* GitUp.app */,\n\t\t\t\tE21DCAE81B253847006424E8 /* gitup */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2C338AD19F8562F00063D95 /* Application */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t1D2DA2F923E9E99700691DEF /* GitUp.entitlements */,\n\t\t\t\tE2C338B019F8562F00063D95 /* AppDelegate.h */,\n\t\t\t\tE2C338B119F8562F00063D95 /* AppDelegate.m */,\n\t\t\t\tE25EBCEA1AA3F8B700D3AF44 /* Application.xcassets */,\n\t\t\t\tE2A5BE6C1A80E560008DD47F /* Common.h */,\n\t\t\t\tE2C338B519F8562F00063D95 /* Document.h */,\n\t\t\t\tE2C338B619F8562F00063D95 /* Document.m */,\n\t\t\t\tE2C338B819F8562F00063D95 /* Document.xib */,\n\t\t\t\tE21739F51A5080DD00EC6777 /* DocumentController.h */,\n\t\t\t\tE21739F61A5080DD00EC6777 /* DocumentController.m */,\n\t\t\t\tE2BDA0671AD47A2F00E69729 /* Help.plist */,\n\t\t\t\tE2C338AF19F8562F00063D95 /* Info.plist */,\n\t\t\t\tE2A5BE6E1A814970008DD47F /* Localizable.strings */,\n\t\t\t\t0AE7F5ED2312C1B000B06050 /* InfoPlist.strings */,\n\t\t\t\tE2C338B319F8562F00063D95 /* main.m */,\n\t\t\t\tE2C338BD19F8562F00063D95 /* MainMenu.xib */,\n\t\t\t\tA53C6D0A1E61A9CF0070387E /* FontSizeTransformer.h */,\n\t\t\t\tA53C6D0B1E61A9CF0070387E /* FontSizeTransformer.m */,\n\t\t\t\tE2C5672B1A6D98BC00ECFE07 /* WindowController.h */,\n\t\t\t\tE2C5672C1A6D98BC00ECFE07 /* WindowController.m */,\n\t\t\t\t31CD50E1203E2E2800360B3A /* ToolbarItemWrapperView.h */,\n\t\t\t\t31CD50E2203E2E2800360B3A /* ToolbarItemWrapperView.m */,\n\t\t\t\t0A0167682330CABD0069961E /* ServicesProvider.h */,\n\t\t\t\t0A0167692330CABD0069961E /* ServicesProvider.m */,\n\t\t\t\t0A0D211A23579887003A2B5F /* AboutWindowController.h */,\n\t\t\t\t0A0D211723579887003A2B5F /* AboutWindowController.m */,\n\t\t\t\t0A2BBEC9235F9B2400912B65 /* AboutWindowController.xib */,\n\t\t\t\t0A2F488B23683DC90072C6FB /* AuthenticationWindowController.h */,\n\t\t\t\t0A2F488E23683DC90072C6FB /* AuthenticationWindowController.m */,\n\t\t\t\t0A2F489023683DD60072C6FB /* AuthenticationWindowController.xib */,\n\t\t\t\t0A58CD76237B4F4B00C2BDD0 /* CloneWindowController.h */,\n\t\t\t\t0A58CD73237B4F4B00C2BDD0 /* CloneWindowController.m */,\n\t\t\t\t0A58CD78237B4F9600C2BDD0 /* CloneWindowController.xib */,\n\t\t\t\t0AC8524D23A11F2F00479160 /* PreferencesWindowController.h */,\n\t\t\t\t0AC8525023A11F2F00479160 /* PreferencesWindowController.m */,\n\t\t\t\t0AC8525223A11F3700479160 /* PreferencesWindowController.xib */,\n\t\t\t\t0AD46259232711B000BE28D1 /* WelcomeWindowController.h */,\n\t\t\t\t0AD4625A232711B000BE28D1 /* WelcomeWindowController.m */,\n\t\t\t\t0A3388BA2353BD630022528D /* WelcomeWindowController.xib */,\n\t\t\t\t0A0C5AC923720BAE000D84A1 /* KeychainAccessor.h */,\n\t\t\t\t0A0C5ACA23720BAE000D84A1 /* KeychainAccessor.m */,\n\t\t\t);\n\t\t\tpath = Application;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE21DCAE71B253847006424E8 /* Tool */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E21DCAEF1B253847006424E8 /* Build configuration list for PBXNativeTarget \"Tool\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE21DCAE41B253847006424E8 /* Sources */,\n\t\t\t\tE21DCAE51B253847006424E8 /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tDBBEE6BF256B0B1C00F96DAF /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = Tool;\n\t\t\tpackageProductDependencies = (\n\t\t\t\t0A4881DB26C7B98D00289CF9 /* Libgit2Origin */,\n\t\t\t);\n\t\t\tproductName = Tool;\n\t\t\tproductReference = E21DCAE81B253847006424E8 /* gitup */;\n\t\t\tproductType = \"com.apple.product-type.tool\";\n\t\t};\n\t\tE2C338AA19F8562F00063D95 /* Application */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E2C338CE19F8562F00063D95 /* Build configuration list for PBXNativeTarget \"Application\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE2C338A719F8562F00063D95 /* Sources */,\n\t\t\t\tE2C338A819F8562F00063D95 /* Frameworks */,\n\t\t\t\tE2C338A919F8562F00063D95 /* Resources */,\n\t\t\t\tE2653D271A5B3298006A9871 /* Copy Frameworks */,\n\t\t\t\tE21DCAF21B2538FB006424E8 /* Copy Tool */,\n\t\t\t\t1D7D03E724528390002C1736 /* Sparkle Code Sign */,\n\t\t\t\t1DE5583E2B9D89BF006BA332 /* Xcode 15 Framework Patching */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\tE21DCAF11B2538C5006424E8 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = Application;\n\t\t\tpackageProductDependencies = (\n\t\t\t\t1DE066032C3781AF00540818 /* Sparkle */,\n\t\t\t);\n\t\t\tproductName = GitUp;\n\t\t\tproductReference = E2C338AB19F8562F00063D95 /* GitUp.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE2C338A319F8562F00063D95 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1340;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE21DCAE71B253847006424E8 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.3.2;\n\t\t\t\t\t\tProvisioningStyle = Manual;\n\t\t\t\t\t};\n\t\t\t\t\tE2C338AA19F8562F00063D95 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1;\n\t\t\t\t\t\tProvisioningStyle = Manual;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E2C338A619F8562F00063D95 /* Build configuration list for PBXProject \"GitUp\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E2C338A219F8562F00063D95;\n\t\t\tpackageReferences = (\n\t\t\t\t1DE066022C3781AF00540818 /* XCRemoteSwiftPackageReference \"Sparkle\" */,\n\t\t\t);\n\t\t\tproductRefGroup = E2C338AC19F8562F00063D95 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectReferences = (\n\t\t\t\t{\n\t\t\t\t\tProductGroup = E28A16DB1B87021600218332 /* Products */;\n\t\t\t\t\tProjectRef = E28A16DA1B87021600218332 /* GitUpKit.xcodeproj */;\n\t\t\t\t},\n\t\t\t);\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE2C338AA19F8562F00063D95 /* Application */,\n\t\t\t\tE21DCAE71B253847006424E8 /* Tool */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXReferenceProxy section */\n\t\tE217538B1B91641F00BE234A /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E217538A1B91641F00BE234A /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE28A16E01B87021600218332 /* GitUpKit.framework */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.framework;\n\t\t\tpath = GitUpKit.framework;\n\t\t\tremoteRef = E28A16DF1B87021600218332 /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n\t\tE28A16E21B87021600218332 /* GitUpTests.xctest */ = {\n\t\t\tisa = PBXReferenceProxy;\n\t\t\tfileType = wrapper.cfbundle;\n\t\t\tpath = GitUpTests.xctest;\n\t\t\tremoteRef = E28A16E11B87021600218332 /* PBXContainerItemProxy */;\n\t\t\tsourceTree = BUILT_PRODUCTS_DIR;\n\t\t};\n/* End PBXReferenceProxy section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE2C338A919F8562F00063D95 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE25EBCEB1AA3F8B700D3AF44 /* Application.xcassets in Resources */,\n\t\t\t\t0A58CD7A237B4F9600C2BDD0 /* CloneWindowController.xib in Resources */,\n\t\t\t\t0A3388BC2353BD630022528D /* WelcomeWindowController.xib in Resources */,\n\t\t\t\t0A2BBECB235F9B2400912B65 /* AboutWindowController.xib in Resources */,\n\t\t\t\t0AE7F5F12312C1B000B06050 /* InfoPlist.strings in Resources */,\n\t\t\t\tE2A5BE701A814970008DD47F /* Localizable.strings in Resources */,\n\t\t\t\tE2C338BA19F8562F00063D95 /* Document.xib in Resources */,\n\t\t\t\t0AC8525423A11F3700479160 /* PreferencesWindowController.xib in Resources */,\n\t\t\t\t0A2F489223683DD60072C6FB /* AuthenticationWindowController.xib in Resources */,\n\t\t\t\tE2C338BF19F8562F00063D95 /* MainMenu.xib in Resources */,\n\t\t\t\tE267E2741B84E42A00BAB377 /* Help.plist in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t1D7D03E724528390002C1736 /* Sparkle Code Sign */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Sparkle Code Sign\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"# Code sign sparkle app\\nLOCATION=\\\"${BUILT_PRODUCTS_DIR}\\\"/\\\"${FRAMEWORKS_FOLDER_PATH}\\\"\\n\\n# By default, use the configured code signing identity for the project/target\\nIDENTITY=\\\"${EXPANDED_CODE_SIGN_IDENTITY}\\\"\\nif [ \\\"$IDENTITY\\\" == \\\"\\\" ]\\nthen\\n  # If a code signing identity is not specified, use ad hoc signing\\n  IDENTITY=\\\"-\\\"\\nfi\\n\\n# Sparkle Code Signing https://sparkle-project.org/documentation/sandboxing/#code-signing\\ncodesign -f -s \\\"$IDENTITY\\\" -o runtime \\\"$LOCATION/Sparkle.framework/Versions/B/XPCServices/Installer.xpc\\\"\\n\\n# For Sparkle versions >= 2.6\\ncodesign -f -s \\\"$IDENTITY\\\" -o runtime --preserve-metadata=entitlements \\\"$LOCATION/Sparkle.framework/Versions/B/XPCServices/Downloader.xpc\\\"\\n\\ncodesign -f -s \\\"$IDENTITY\\\" -o runtime \\\"$LOCATION/Sparkle.framework/Versions/B/Autoupdate\\\"\\ncodesign -f -s \\\"$IDENTITY\\\" -o runtime \\\"$LOCATION/Sparkle.framework/Versions/B/Updater.app\\\"\\n\\ncodesign -f -s \\\"$IDENTITY\\\" -o runtime \\\"$LOCATION/Sparkle.framework\\\"\\n\";\n\t\t};\n\t\t1DE5583E2B9D89BF006BA332 /* Xcode 15 Framework Patching */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 8;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Xcode 15 Framework Patching\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 1;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"# Information derived from https://stackoverflow.com/questions/77397157/mapbox-xcframework-ios-signature-couldn-t-be-copied-to-signatures-because-an-i\\nif [ \\\"$XCODE_VERSION_MAJOR\\\" -ge \\\"1500\\\" ]; then\\n  echo \\\"Remove signature files (Xcode 15 workaround)\\\"\\n  find \\\"$BUILD_DIR/${CONFIGURATION}/libssl.xcframework-macos.signature\\\" -name \\\"*.signature\\\" -type f | xargs -r rm\\n  find \\\"$BUILD_DIR/${CONFIGURATION}/libcrypto.xcframework-macos.signature\\\" -name \\\"*.signature\\\" -type f | xargs -r rm\\n  find \\\"$BUILD_DIR/${CONFIGURATION}/libssh2.xcframework-macos.signature\\\" -name \\\"*.signature\\\" -type f | xargs -r rm\\n  find \\\"$BUILD_DIR/${CONFIGURATION}/Sparkle.xcframework-macos.signature\\\" -name \\\"*.signature\\\" -type f | xargs -r rm\\nelse\\n  echo \\\"No signature files to remove (Xcode version is less than 1500)\\\"\\nfi\\n\";\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE21DCAE41B253847006424E8 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE21DCAEB1B253847006424E8 /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE2C338A719F8562F00063D95 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t0A01676A2330CABD0069961E /* ServicesProvider.m in Sources */,\n\t\t\t\tE21739F71A5080DD00EC6777 /* DocumentController.m in Sources */,\n\t\t\t\tE2C338B419F8562F00063D95 /* main.m in Sources */,\n\t\t\t\tE2C5672D1A6D98BC00ECFE07 /* WindowController.m in Sources */,\n\t\t\t\tA53C6D0C1E61A9CF0070387E /* FontSizeTransformer.m in Sources */,\n\t\t\t\tE2C338B219F8562F00063D95 /* AppDelegate.m in Sources */,\n\t\t\t\t0A58CD77237B4F4B00C2BDD0 /* CloneWindowController.m in Sources */,\n\t\t\t\tE2C338B719F8562F00063D95 /* Document.m in Sources */,\n\t\t\t\t0AD4625B232711B000BE28D1 /* WelcomeWindowController.m in Sources */,\n\t\t\t\t0A0D211B23579888003A2B5F /* AboutWindowController.m in Sources */,\n\t\t\t\t0AC8525123A11F2F00479160 /* PreferencesWindowController.m in Sources */,\n\t\t\t\t31CD50E3203E2E2800360B3A /* ToolbarItemWrapperView.m in Sources */,\n\t\t\t\t0A2F488F23683DC90072C6FB /* AuthenticationWindowController.m in Sources */,\n\t\t\t\t0A0C5ACB23720BAE000D84A1 /* KeychainAccessor.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\tDBBEE6BF256B0B1C00F96DAF /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = \"GitUpKit (macOS)\";\n\t\t\ttargetProxy = DBBEE6BE256B0B1C00F96DAF /* PBXContainerItemProxy */;\n\t\t};\n\t\tE21DCAF11B2538C5006424E8 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = E21DCAE71B253847006424E8 /* Tool */;\n\t\t\ttargetProxy = E21DCAF01B2538C5006424E8 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t0A2BBEC9235F9B2400912B65 /* AboutWindowController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0A2BBECA235F9B2400912B65 /* Base */,\n\t\t\t);\n\t\t\tname = AboutWindowController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0A2F489023683DD60072C6FB /* AuthenticationWindowController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0A2F489123683DD60072C6FB /* Base */,\n\t\t\t);\n\t\t\tname = AuthenticationWindowController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0A3388BA2353BD630022528D /* WelcomeWindowController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0A3388BB2353BD630022528D /* Base */,\n\t\t\t);\n\t\t\tname = WelcomeWindowController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0A58CD78237B4F9600C2BDD0 /* CloneWindowController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0A58CD79237B4F9600C2BDD0 /* Base */,\n\t\t\t);\n\t\t\tname = CloneWindowController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0AC8525223A11F3700479160 /* PreferencesWindowController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0AC8525323A11F3700479160 /* Base */,\n\t\t\t);\n\t\t\tname = PreferencesWindowController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t0AE7F5ED2312C1B000B06050 /* InfoPlist.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t0AE7F5EE2312C1B000B06050 /* en */,\n\t\t\t);\n\t\t\tname = InfoPlist.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2A5BE6E1A814970008DD47F /* Localizable.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2A5BE6F1A814970008DD47F /* en */,\n\t\t\t);\n\t\t\tname = Localizable.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2BDA0671AD47A2F00E69729 /* Help.plist */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2BDA0681AD47A2F00E69729 /* en */,\n\t\t\t);\n\t\t\tname = Help.plist;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2C338B819F8562F00063D95 /* Document.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2C8C91519FABC5100DA54AA /* Base */,\n\t\t\t);\n\t\t\tname = Document.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2C338BD19F8562F00063D95 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2C8C91619FABC5100DA54AA /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE21DCAEC1B253847006424E8 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tHEADER_SEARCH_PATHS = \"../GitUpKit/Third-Party/libgit2/include\";\n\t\t\t\tPRODUCT_NAME = gitup;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE21DCAED1B253847006424E8 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tHEADER_SEARCH_PATHS = \"../GitUpKit/Third-Party/libgit2/include\";\n\t\t\t\tPRODUCT_NAME = gitup;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE2C338CC19F8562F00063D95 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = E27E37571B86F670000A551A /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2C338CD19F8562F00063D95 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = E27E37591B86F670000A551A /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE2C338CF19F8562F00063D95 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tBUNDLE_VERSION = 0;\n\t\t\t\tBUNDLE_VERSION_STRING = 1.1;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;\n\t\t\t\t\"DEVELOPMENT_TEAM[sdk=macosx*]\" = \"\";\n\t\t\t\tINFOPLIST_FILE = Application/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.5;\n\t\t\t\tMARKETING_VERSION = 1.5.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"co.gitup.mac-debug\";\n\t\t\t\tPRODUCT_NAME = GitUp;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2C338D019F8562F00063D95 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tBUNDLE_VERSION = 0;\n\t\t\t\tBUNDLE_VERSION_STRING = 1.1;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = Application/GitUp.entitlements;\n\t\t\t\t\"DEVELOPMENT_TEAM[sdk=macosx*]\" = \"\";\n\t\t\t\tINFOPLIST_FILE = Application/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.5;\n\t\t\t\tMARKETING_VERSION = 1.5.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.mac;\n\t\t\t\tPRODUCT_NAME = GitUp;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE21DCAEF1B253847006424E8 /* Build configuration list for PBXNativeTarget \"Tool\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE21DCAEC1B253847006424E8 /* Debug */,\n\t\t\t\tE21DCAED1B253847006424E8 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE2C338A619F8562F00063D95 /* Build configuration list for PBXProject \"GitUp\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2C338CC19F8562F00063D95 /* Debug */,\n\t\t\t\tE2C338CD19F8562F00063D95 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE2C338CE19F8562F00063D95 /* Build configuration list for PBXNativeTarget \"Application\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2C338CF19F8562F00063D95 /* Debug */,\n\t\t\t\tE2C338D019F8562F00063D95 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\n/* Begin XCRemoteSwiftPackageReference section */\n\t\t1DE066022C3781AF00540818 /* XCRemoteSwiftPackageReference \"Sparkle\" */ = {\n\t\t\tisa = XCRemoteSwiftPackageReference;\n\t\t\trepositoryURL = \"https://github.com/sparkle-project/Sparkle\";\n\t\t\trequirement = {\n\t\t\t\tkind = exactVersion;\n\t\t\t\tversion = 2.8.1;\n\t\t\t};\n\t\t};\n/* End XCRemoteSwiftPackageReference section */\n\n/* Begin XCSwiftPackageProductDependency section */\n\t\t0A4881DB26C7B98D00289CF9 /* Libgit2Origin */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tproductName = Libgit2Origin;\n\t\t};\n\t\t1DE066032C3781AF00540818 /* Sparkle */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tpackage = 1DE066022C3781AF00540818 /* XCRemoteSwiftPackageReference \"Sparkle\" */;\n\t\t\tproductName = Sparkle;\n\t\t};\n/* End XCSwiftPackageProductDependency section */\n\t};\n\trootObject = E2C338A319F8562F00063D95 /* Project object */;\n}\n"
  },
  {
    "path": "GitUp/GitUp.xcodeproj/xcshareddata/xcschemes/Application.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1340\"\n   version = \"2.0\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E2C338AA19F8562F00063D95\"\n               BuildableName = \"GitUp.app\"\n               BlueprintName = \"Application\"\n               ReferencedContainer = \"container:GitUp.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"NO\">\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      enableAddressSanitizer = \"YES\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"NO\"\n      debugXPCServices = \"NO\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"NO\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E2C338AA19F8562F00063D95\"\n            BuildableName = \"GitUp.app\"\n            BlueprintName = \"Application\"\n            ReferencedContainer = \"container:GitUp.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n      <EnvironmentVariables>\n         <EnvironmentVariable\n            key = \"XLFacilityMinLogLevel\"\n            value = \"1\"\n            isEnabled = \"YES\">\n         </EnvironmentVariable>\n      </EnvironmentVariables>\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E2C338AA19F8562F00063D95\"\n            BuildableName = \"GitUp.app\"\n            BlueprintName = \"Application\"\n            ReferencedContainer = \"container:GitUp.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Distribution\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "GitUp/GitUp.xcodeproj/xcshareddata/xcschemes/Tool.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1340\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"NO\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E21DCAE71B253847006424E8\"\n               BuildableName = \"gitup\"\n               BlueprintName = \"Tool\"\n               ReferencedContainer = \"container:GitUp.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E21DCAE71B253847006424E8\"\n            BuildableName = \"gitup\"\n            BlueprintName = \"Tool\"\n            ReferencedContainer = \"container:GitUp.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E21DCAE71B253847006424E8\"\n            BuildableName = \"gitup\"\n            BlueprintName = \"Tool\"\n            ReferencedContainer = \"container:GitUp.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Distribution\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "GitUp/SparkleAppcast.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" version=\"2.0\">\n  <channel>\n    <title>__APPCAST_TITLE__</title>\n    <link>__APPCAST_URL__</link>\n    <item>\n      <enclosure url=\"__ARCHIVE_URL__\" sparkle:version=\"__VERSION_ID__\" sparkle:shortVersionString=\"__VERSION_STRING__\" length=\"__ARCHIVE_SIZE__\" type=\"application/zip\"/>\n      <sparkle:minimumSystemVersion>__MIN_OS__</sparkle:minimumSystemVersion>\n    </item>\n  </channel>\n</rss>\n"
  },
  {
    "path": "GitUp/Tool/install.sh",
    "content": "#!/bin/sh -ex\n\nTOOL_PATH=\"$1\"\nINSTALL_PATH=\"$2\"\nINSTALL_DIR=`dirname \"$INSTALL_PATH\"`\n\nmkdir -p \"$INSTALL_DIR\"\nln -sf \"$TOOL_PATH\" \"$INSTALL_PATH\"\n\nprintf \"OK\"\n"
  },
  {
    "path": "GitUp/Tool/main.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n#import <libgen.h>\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wdocumentation\"\n#import <git2.h>\n#pragma clang diagnostic pop\n\n#import \"ToolProtocol.h\"\n\n#define kCommunicationTimeOut 3.0\n\nstatic char* _help = \"\\\nUsage: %s [command] [options]\\n\\\n\\n\\\nExamples:\\n\\\n  gitup\\n\\\n  gitup stash\\n\\\n  gitup commit -t\\n\\\n\\n\\\nCommands:\\n\\\n\" kToolCommand_Help \"\\n\\\n  Show this help.\\n\\\n\\n\\\n\" kToolCommand_Open \" (default, can be omitted)\\n\\\n  Open the current Git repository in GitUp.\\n\\\n\\n\\\n\" kToolCommand_Map \"\\n\\\n  Open the current Git repository in GitUp in Map view.\\n\\\n\\n\\\n\" kToolCommand_Commit \"\\n\\\n  Open the current Git repository in GitUp in Commit view.\\n\\\n\\n\\\n\" kToolCommand_Stash \"\\n\\\n  Open the current Git repository in GitUp in Stashes view.\\n\\\n\\n\\\nOptions:\\n\\\n\" kToolOption_Help \"\\n\\\n  Show this help.\\n\\\n\\n\\\n\" kToolOption_Tab \"\\n\\\n  Open the current Git repository as a tab in GitUp.\\n\\\n\";\n\nBOOL isEqual(const char* stringA, const char* stringB);\nBOOL isEqualToAny(const char* string, int count, ...);\n\n// We don't care about free'ing resources since the tool is one-shot\nint main(int argc, const char* argv[]) {\n  BOOL success = NO;\n  @autoreleasepool {\n    const char* command = \"open\";\n    const char* option = \"\";\n\n    for (int i = 1; i < argc; i++) {\n      const char* arg = argv[i];\n      // Commands\n      if (isEqualToAny(arg, 5, kToolCommand_Help, kToolCommand_Open, kToolCommand_Map, kToolCommand_Commit, kToolCommand_Stash)) {\n        command = arg;\n      }\n      // Options\n      if (isEqualToAny(arg, 2, kToolOption_Help, kToolOption_Tab)) {\n        option = arg;\n      }\n    }\n\n    if (isEqual(command, kToolCommand_Help) || isEqual(option, kToolOption_Help)) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wformat-nonliteral\"\n      fprintf(stdout, _help, basename((char*)argv[0]));\n#pragma clang diagnostic pop\n      success = YES;\n    }\n\n    else {\n      assert(git_libgit2_init() >= 1);\n\n      // Find and open repo\n      char wdBuffer[MAXPATHLEN];\n      git_buf repoBuffer = {0};\n      int result = git_repository_discover(&repoBuffer, getwd(wdBuffer), false, NULL);\n      if (result == GIT_OK) {\n        git_repository* repository;\n        result = git_repository_open(&repository, repoBuffer.ptr);\n        if (result == GIT_OK) {\n          if (!git_repository_is_bare(repository)) {\n            const char* path = git_repository_workdir(repository);\n            NSString* repositoryPath = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:path length:strlen(path)];\n\n            // Launch app and / or bring it to front\n            NSString* executablePath = [[[NSBundle mainBundle] executablePath] stringByResolvingSymlinksInPath];  // -executablePath is returning the symlink instead of the actual executable\n            NSString* appPath = [[[executablePath stringByDeletingLastPathComponent] stringByDeletingLastPathComponent] stringByDeletingLastPathComponent];  // Remove \"Contents/SharedSupport/{executable}\"\n            LSLaunchURLSpec spec = {0};\n            spec.appURL = (__bridge CFURLRef)[NSURL fileURLWithPath:appPath isDirectory:YES];\n            spec.launchFlags = kLSLaunchAndDisplayErrors;\n            OSStatus status = LSOpenFromURLSpec(&spec, NULL);\n            if (status == noErr) {\n              CFAbsoluteTime startTime = CFAbsoluteTimeGetCurrent();\n              while (1) {\n                CFMessagePortRef messagePort = CFMessagePortCreateRemote(kCFAllocatorDefault, CFSTR(kToolPortName));\n                if (messagePort) {\n                  // Send message\n                  NSMutableDictionary* message = [[NSMutableDictionary alloc] init];\n                  [message setObject:[NSString stringWithUTF8String:command] forKey:kToolDictionaryKey_Command];\n                  [message setObject:[NSString stringWithUTF8String:option] forKey:kToolDictionaryKey_Option];\n                  [message setObject:repositoryPath forKey:kToolDictionaryKey_Repository];\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wunguarded-availability\"\n                  // The deprecation for this method in the macOS 10.14 SDK\n                  // marks the incorrect version for its introduction. However,\n                  // it is useful to keep availability guards on in general.\n                  // FB6233110\n                  NSData* sendData = [NSKeyedArchiver archivedDataWithRootObject:message];\n#pragma clang diagnostic pop\n                  CFDataRef returnData = NULL;\n                  status = CFMessagePortSendRequest(messagePort, 0, (CFDataRef)sendData, kCommunicationTimeOut, kCommunicationTimeOut, kCFRunLoopDefaultMode, &returnData);\n                  if (status == kCFMessagePortSuccess) {\n                    NSDictionary* response = [NSKeyedUnarchiver unarchiveObjectWithData:(__bridge NSData*)returnData];\n                    NSString* error = [response objectForKey:kToolDictionaryKey_Error];\n                    if (error) {\n                      fprintf(stderr, \"%s\\n\", error.UTF8String);\n                    } else {\n                      success = YES;\n                    }\n                  } else {\n                    fprintf(stderr, \"Failed communicating with GitUp application (%i)\\n\", status);\n                  }\n                  CFMessagePortInvalidate(messagePort);\n                  CFRelease(messagePort);\n                  break;\n\n                } else {\n                  if (CFAbsoluteTimeGetCurrent() >= startTime + kCommunicationTimeOut) {\n                    fprintf(stderr, \"Failed connecting to GitUp application\\n\");\n                    break;\n                  }\n                  usleep(100 * 1000);  // Sleep 100ms and try connecting again\n                }\n              }\n            } else {\n              fprintf(stderr, \"Failed launching GitUp application (%i)\\n\", status);\n            }\n\n          } else {\n            fprintf(stderr, \"Bare repositories are not supported at this time\\n\");\n          }\n        } else {\n          const git_error* error = giterr_last();\n          fprintf(stderr, \"Failed opening repository at current path (%s)\\n\", error ? error->message : NULL);\n        }\n      } else {\n        fprintf(stderr, \"No repository found at current path\\n\");\n      }\n    }\n  }\n  return success ? 0 : 1;\n}\n\nBOOL isEqual(const char* stringA, const char* stringB) {\n  return strcmp(stringA, stringB) == 0;\n}\n\nBOOL isEqualToAny(const char* string, int count, ...) {\n  va_list ap;\n  va_start(ap, count); /* Initialize the argument list. */\n\n  for (int i = 0; i < count; i++) {\n    const char* aString = va_arg(ap, const char*);\n    if (isEqual(string, aString)) {\n      return YES;\n    }\n  }\n  va_end(ap); /* Clean up. */\n  return NO;\n}\n"
  },
  {
    "path": "GitUp/ToolProtocol.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if DEBUG\n#define kToolPortName \"co.gitup.mac-debug\"\n#else\n#define kToolPortName \"co.gitup.mac\"\n#endif\n\n#define kToolCommand_Help \"help\"\n#define kToolCommand_Open \"open\"\n#define kToolCommand_Map \"map\"\n#define kToolCommand_Commit \"commit\"\n#define kToolCommand_Stash \"stash\"\n\n#define kToolOption_Help \"-h\"\n#define kToolOption_Tab \"-t\"\n\n#define kToolDictionaryKey_Command @\"command\"  // NSString\n#define kToolDictionaryKey_Repository @\"repository\"  // NSString\n#define kToolDictionaryKey_Option @\"option\"  // NSString\n\n#define kToolDictionaryKey_Error @\"error\"  // NSString\n"
  },
  {
    "path": "GitUpKit/Components/Base.lproj/GICommitListViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GICommitListViewController\">\n            <connections>\n                <outlet property=\"emptyTextField\" destination=\"2ZB-wM-XaF\" id=\"MUr-ix-RFn\"/>\n                <outlet property=\"tableView\" destination=\"XD8-on-AQk\" id=\"fBV-wf-oND\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"494\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <scrollView borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"71\" horizontalPageScroll=\"10\" verticalLineScroll=\"71\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"AJL-NY-aX0\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"494\"/>\n                    <clipView key=\"contentView\" id=\"rt3-aj-SED\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"494\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" tableStyle=\"fullWidth\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"71\" usesAutomaticRowHeights=\"YES\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"XD8-on-AQk\" customClass=\"GITableView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"494\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableViewGridLines key=\"gridStyleMask\" horizontal=\"YES\"/>\n                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableColumns>\n                                    <tableColumn editable=\"NO\" width=\"298\" minWidth=\"40\" maxWidth=\"1000\" id=\"jYE-Dh-d6l\">\n                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </tableHeaderCell>\n                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"yLW-HB-7q3\">\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </textFieldCell>\n                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                        <prototypeCellViews>\n                                            <tableCellView identifier=\"commit\" id=\"lNu-SG-CeF\" customClass=\"GICommitCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"68\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"aSE-41-Faa\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"49\" width=\"46\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;SHA1&gt;\" id=\"vGZ-yd-Q3L\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"l20-Zd-aeU\">\n                                                        <rect key=\"frame\" x=\"258\" y=\"49\" width=\"46\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"&lt;DATE&gt;\" id=\"fnB-nM-Xez\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"T2M-SH-2iE\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"27\" width=\"294\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;SUMMARY&gt;\" id=\"ldy-6V-89y\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hoX-uL-0Vn\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"5\" width=\"298\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;AUTHOR&gt;\" id=\"Wfd-kf-H2a\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                </subviews>\n                                                <constraints>\n                                                    <constraint firstItem=\"T2M-SH-2iE\" firstAttribute=\"leading\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"leading\" constant=\"8\" id=\"10f-qw-Mfb\"/>\n                                                    <constraint firstItem=\"l20-Zd-aeU\" firstAttribute=\"top\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"top\" constant=\"5\" id=\"5Go-SF-0T0\"/>\n                                                    <constraint firstItem=\"aSE-41-Faa\" firstAttribute=\"top\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"top\" constant=\"5\" id=\"9ga-6g-Ncv\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"l20-Zd-aeU\" secondAttribute=\"trailing\" constant=\"8\" id=\"C7j-Cn-1Gf\"/>\n                                                    <constraint firstItem=\"aSE-41-Faa\" firstAttribute=\"leading\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"leading\" constant=\"8\" id=\"HQs-6v-Rg5\"/>\n                                                    <constraint firstItem=\"hoX-uL-0Vn\" firstAttribute=\"top\" secondItem=\"T2M-SH-2iE\" secondAttribute=\"bottom\" constant=\"8\" symbolic=\"YES\" id=\"LJK-Nv-jLt\"/>\n                                                    <constraint firstAttribute=\"bottom\" secondItem=\"hoX-uL-0Vn\" secondAttribute=\"bottom\" constant=\"5\" id=\"MaV-NG-AQx\"/>\n                                                    <constraint firstItem=\"hoX-uL-0Vn\" firstAttribute=\"leading\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"leading\" constant=\"8\" id=\"TWf-ca-2SD\"/>\n                                                    <constraint firstItem=\"l20-Zd-aeU\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"aSE-41-Faa\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"Y3e-UU-YjO\"/>\n                                                    <constraint firstItem=\"T2M-SH-2iE\" firstAttribute=\"top\" secondItem=\"aSE-41-Faa\" secondAttribute=\"bottom\" constant=\"8\" symbolic=\"YES\" id=\"f1y-jt-c0b\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"hoX-uL-0Vn\" secondAttribute=\"trailing\" constant=\"8\" id=\"tde-gs-0be\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"T2M-SH-2iE\" secondAttribute=\"trailing\" constant=\"12\" id=\"uPQ-wI-ICY\"/>\n                                                </constraints>\n                                                <connections>\n                                                    <outlet property=\"authorTextField\" destination=\"hoX-uL-0Vn\" id=\"Ccm-tG-ywu\"/>\n                                                    <outlet property=\"dateTextField\" destination=\"l20-Zd-aeU\" id=\"3Xf-W2-AhL\"/>\n                                                    <outlet property=\"sha1TextField\" destination=\"aSE-41-Faa\" id=\"94G-8S-uag\"/>\n                                                    <outlet property=\"summaryTextField\" destination=\"T2M-SH-2iE\" id=\"kkQ-NG-QU3\"/>\n                                                </connections>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"reference\" id=\"pva-Jf-kwZ\" customClass=\"GIReferenceCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"68\" width=\"310\" height=\"46\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"n3I-nl-DwW\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"27\" width=\"298\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;TYPE&gt;\" id=\"opM-4b-OCF\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mTb-0f-1hd\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"5\" width=\"298\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;NAME&gt;\" id=\"HEY-qh-9fe\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                </subviews>\n                                                <constraints>\n                                                    <constraint firstItem=\"n3I-nl-DwW\" firstAttribute=\"top\" secondItem=\"pva-Jf-kwZ\" secondAttribute=\"top\" constant=\"5\" id=\"4AK-gI-8AQ\"/>\n                                                    <constraint firstItem=\"mTb-0f-1hd\" firstAttribute=\"leading\" secondItem=\"pva-Jf-kwZ\" secondAttribute=\"leading\" constant=\"8\" id=\"6jS-25-lO5\"/>\n                                                    <constraint firstItem=\"n3I-nl-DwW\" firstAttribute=\"leading\" secondItem=\"pva-Jf-kwZ\" secondAttribute=\"leading\" constant=\"8\" id=\"HqE-Pa-zjK\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"mTb-0f-1hd\" secondAttribute=\"trailing\" constant=\"8\" id=\"aYK-HF-4up\"/>\n                                                    <constraint firstAttribute=\"bottom\" secondItem=\"mTb-0f-1hd\" secondAttribute=\"bottom\" constant=\"5\" id=\"pvg-H4-AOG\"/>\n                                                    <constraint firstItem=\"mTb-0f-1hd\" firstAttribute=\"top\" secondItem=\"n3I-nl-DwW\" secondAttribute=\"bottom\" constant=\"8\" symbolic=\"YES\" id=\"tH7-My-KIo\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"n3I-nl-DwW\" secondAttribute=\"trailing\" constant=\"8\" id=\"ytT-MN-YXM\"/>\n                                                </constraints>\n                                                <connections>\n                                                    <outlet property=\"nameTextField\" destination=\"mTb-0f-1hd\" id=\"cUR-ox-PBt\"/>\n                                                    <outlet property=\"typeTextField\" destination=\"n3I-nl-DwW\" id=\"EaU-uI-XZN\"/>\n                                                </connections>\n                                            </tableCellView>\n                                        </prototypeCellViews>\n                                    </tableColumn>\n                                </tableColumns>\n                                <connections>\n                                    <action trigger=\"doubleAction\" selector=\"doubleClicked:\" target=\"-2\" id=\"o2z-8a-lK5\"/>\n                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"aXy-CE-1i1\"/>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"RSX-r7-nqv\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"vWX-FO-oiY\">\n                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"ppU-d5-YKa\">\n                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2ZB-wM-XaF\">\n                    <rect key=\"frame\" x=\"119\" y=\"239\" width=\"73\" height=\"17\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;EMPTY&gt;\" id=\"t3C-dG-D6U\">\n                        <font key=\"font\" metaFont=\"system\" size=\"14\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"bottom\" secondItem=\"AJL-NY-aX0\" secondAttribute=\"bottom\" id=\"I6B-iU-joi\"/>\n                <constraint firstItem=\"2ZB-wM-XaF\" firstAttribute=\"centerY\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"centerY\" id=\"Kd4-iF-O86\"/>\n                <constraint firstItem=\"2ZB-wM-XaF\" firstAttribute=\"centerX\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"centerX\" id=\"Xf7-IF-FAo\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"AJL-NY-aX0\" secondAttribute=\"trailing\" id=\"jOW-2A-7cQ\"/>\n                <constraint firstItem=\"AJL-NY-aX0\" firstAttribute=\"top\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"top\" id=\"k6d-vn-sif\"/>\n                <constraint firstItem=\"AJL-NY-aX0\" firstAttribute=\"leading\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"leading\" id=\"qMQ-oO-afy\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"40\" y=\"536\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Components/Base.lproj/GIDiffContentsViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"32700.99.1234\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"22690\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIDiffContentsViewController\">\n            <connections>\n                <outlet property=\"emptyTextField\" destination=\"esO-al-uQm\" id=\"Za9-RL-sPc\"/>\n                <outlet property=\"scrollView\" destination=\"OCe-0p-vJs\" id=\"V9R-ru-cq4\"/>\n                <outlet property=\"tableView\" destination=\"vcn-19-sDY\" id=\"yYF-N8-kit\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"704\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <scrollView fixedFrame=\"YES\" borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"100\" horizontalPageScroll=\"10\" verticalLineScroll=\"100\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OCe-0p-vJs\" customClass=\"GIDiffContentScrollView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"704\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <clipView key=\"contentView\" id=\"KvI-YZ-5JJ\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"704\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" tableStyle=\"plain\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"100\" rowSizeStyle=\"automatic\" viewBased=\"YES\" id=\"vcn-19-sDY\" customClass=\"GIContentsTableView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"704\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableColumns>\n                                    <tableColumn editable=\"NO\" width=\"700\" minWidth=\"40\" maxWidth=\"10000\" id=\"M5W-6M-rLe\">\n                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </tableHeaderCell>\n                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"MRV-6t-S9o\">\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </textFieldCell>\n                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                        <prototypeCellViews>\n                                            <tableCellView identifier=\"header\" id=\"Qbv-2x-cjI\" customClass=\"GIHeaderDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"34\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Y1E-lo-5Dv\">\n                                                        <rect key=\"frame\" x=\"31\" y=\"10\" width=\"540\" height=\"16\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <textFieldCell key=\"cell\" lineBreakMode=\"truncatingHead\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Label\" id=\"nPK-ee-7Lf\">\n                                                            <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                                            <color key=\"textColor\" name=\"alternateSelectedControlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Zb1-BY-EEo\">\n                                                        <rect key=\"frame\" x=\"10\" y=\"10\" width=\"15\" height=\"15\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" image=\"icon_file_a\" id=\"KWC-dz-6Or\"/>\n                                                    </imageView>\n                                                    <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bOi-6n-v6r\">\n                                                        <rect key=\"frame\" x=\"676\" y=\"11\" width=\"12\" height=\"12\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"square\" bezelStyle=\"shadowlessSquare\" image=\"icon_gear\" imagePosition=\"only\" alignment=\"center\" inset=\"2\" id=\"m6t-8O-cFd\">\n                                                            <behavior key=\"behavior\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"showActionMenu:\" target=\"-2\" id=\"hqU-SU-GJQ\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Eig-8E-1uy\">\n                                                        <rect key=\"frame\" x=\"577\" y=\"7\" width=\"90\" height=\"19\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"roundRect\" title=\"&lt;ACTION&gt;\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"VeI-zL-X3B\">\n                                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"performAction:\" target=\"-2\" id=\"Wbt-vP-fPC\"/>\n                                                        </connections>\n                                                    </button>\n                                                </subviews>\n                                                <connections>\n                                                    <outlet property=\"actionButton\" destination=\"Eig-8E-1uy\" id=\"rHE-pa-aWl\"/>\n                                                    <outlet property=\"imageView\" destination=\"Zb1-BY-EEo\" id=\"jZU-d3-rbR\"/>\n                                                    <outlet property=\"menuButton\" destination=\"bOi-6n-v6r\" id=\"pZy-e5-MDX\"/>\n                                                    <outlet property=\"titleField\" destination=\"Y1E-lo-5Dv\" id=\"Yn2-nO-6NQ\"/>\n                                                </connections>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"text\" id=\"6zJ-8v-jV4\" customClass=\"GITextDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"34\" width=\"700\" height=\"100\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"image\" id=\"Az3-mF-xSz\" customClass=\"GIImageDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"134\" width=\"700\" height=\"100\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"empty\" id=\"JmW-sf-koG\" customClass=\"GIEmptyDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"234\" width=\"700\" height=\"50\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vEH-U7-166\">\n                                                        <rect key=\"frame\" x=\"170\" y=\"17\" width=\"360\" height=\"17\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <textFieldCell key=\"cell\" lineBreakMode=\"truncatingMiddle\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"This file is empty or its content has not changed\" id=\"gub-Hg-Iqn\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                </subviews>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"binary\" id=\"OJg-Sv-XTo\" customClass=\"GIBinaryDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"284\" width=\"700\" height=\"100\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jMk-52-KEf\">\n                                                        <rect key=\"frame\" x=\"318\" y=\"18\" width=\"64\" height=\"64\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" imageScaling=\"proportionallyDown\" image=\"NSApplicationIcon\" id=\"LNY-Ju-mOz\"/>\n                                                    </imageView>\n                                                </subviews>\n                                                <connections>\n                                                    <outlet property=\"imageView\" destination=\"jMk-52-KEf\" id=\"eB8-Zt-lNU\"/>\n                                                </connections>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"submodule\" id=\"cNk-N6-wN7\" customClass=\"GISubmoduleDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"384\" width=\"700\" height=\"80\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eWx-eZ-o0j\">\n                                                        <rect key=\"frame\" x=\"100\" y=\"14\" width=\"500\" height=\"80\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <subviews>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YVB-XK-AIP\">\n                                                                <rect key=\"frame\" x=\"180\" y=\"23\" width=\"300\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;NEW SHA1&gt;\" id=\"PPM-zU-FYS\">\n                                                                    <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"L5g-ca-cZO\">\n                                                                <rect key=\"frame\" x=\"23\" y=\"20\" width=\"155\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"New Submodule Commit:\" id=\"Nk1-ps-66X\">\n                                                                    <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Hyb-p0-Qcj\">\n                                                                <rect key=\"frame\" x=\"180\" y=\"44\" width=\"300\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;OLD SHA1&gt;\" id=\"gOr-Fw-yLH\">\n                                                                    <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8lM-kt-fK1\">\n                                                                <rect key=\"frame\" x=\"23\" y=\"41\" width=\"155\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Old Submodule Commit:\" id=\"T3Y-iO-ztA\">\n                                                                    <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                        </subviews>\n                                                    </customView>\n                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"wbK-Cy-wpg\">\n                                                        <rect key=\"frame\" x=\"98\" y=\"47\" width=\"504\" height=\"17\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <textFieldCell key=\"cell\" lineBreakMode=\"truncatingMiddle\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;CUSTOM&gt;\" id=\"3fm-2P-o1t\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                </subviews>\n                                                <connections>\n                                                    <outlet property=\"contentView\" destination=\"eWx-eZ-o0j\" id=\"tA0-0B-xnu\"/>\n                                                    <outlet property=\"customTextField\" destination=\"wbK-Cy-wpg\" id=\"4mc-uB-s4i\"/>\n                                                    <outlet property=\"newSHA1TextField\" destination=\"YVB-XK-AIP\" id=\"5wO-Fy-xIA\"/>\n                                                    <outlet property=\"oldSHA1TextField\" destination=\"Hyb-p0-Qcj\" id=\"WPA-Xa-Ayx\"/>\n                                                </connections>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"conflict\" id=\"hYN-9E-rxQ\" customClass=\"GIConflictDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"464\" width=\"700\" height=\"60\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IHV-Ry-isd\">\n                                                        <rect key=\"frame\" x=\"100\" y=\"0.0\" width=\"500\" height=\"60\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <subviews>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IRV-hg-pLs\">\n                                                                <rect key=\"frame\" x=\"58\" y=\"36\" width=\"384\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" lineBreakMode=\"truncatingMiddle\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;STATUS&gt;\" id=\"da8-F9-EbA\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ExV-md-eBo\">\n                                                                <rect key=\"frame\" x=\"195\" y=\"10\" width=\"140\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Resolve In Merge Tool\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"2hY-W8-dmT\">\n                                                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                </buttonCell>\n                                                                <connections>\n                                                                    <action selector=\"resolveWithTool:\" target=\"-2\" id=\"eCp-oZ-6IS\"/>\n                                                                </connections>\n                                                            </button>\n                                                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"tzT-vz-KNa\">\n                                                                <rect key=\"frame\" x=\"343\" y=\"10\" width=\"120\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Mark as Resolved\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"02c-Oc-Qz1\">\n                                                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                </buttonCell>\n                                                                <connections>\n                                                                    <action selector=\"markAsResolved:\" target=\"-2\" id=\"3Lm-ej-j9V\"/>\n                                                                </connections>\n                                                            </button>\n                                                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"71g-yK-uy8\">\n                                                                <rect key=\"frame\" x=\"37\" y=\"10\" width=\"150\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Open with Default Editor\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"fuY-XZ-7Ig\">\n                                                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                </buttonCell>\n                                                                <connections>\n                                                                    <action selector=\"openWithEditor:\" target=\"-2\" id=\"t8s-DW-SZd\"/>\n                                                                </connections>\n                                                            </button>\n                                                        </subviews>\n                                                    </customView>\n                                                </subviews>\n                                                <connections>\n                                                    <outlet property=\"mergeButton\" destination=\"ExV-md-eBo\" id=\"vXC-Mn-IE7\"/>\n                                                    <outlet property=\"openButton\" destination=\"71g-yK-uy8\" id=\"NKa-el-yRt\"/>\n                                                    <outlet property=\"resolveButton\" destination=\"tzT-vz-KNa\" id=\"soo-K5-3B8\"/>\n                                                    <outlet property=\"statusTextField\" destination=\"IRV-hg-pLs\" id=\"gRO-Kl-ff5\"/>\n                                                </connections>\n                                            </tableCellView>\n                                            <tableCellView identifier=\"submodule_conflict\" id=\"BzI-8D-d6N\" userLabel=\"Submodule Conflict Diff Cell View\" customClass=\"GISubmoduleConflictDiffCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"524\" width=\"700\" height=\"105\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"57U-X4-Thl\">\n                                                        <rect key=\"frame\" x=\"100\" y=\"0.0\" width=\"500\" height=\"108\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                        <subviews>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Dqh-34-tmL\">\n                                                                <rect key=\"frame\" x=\"58\" y=\"84\" width=\"384\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" lineBreakMode=\"truncatingMiddle\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;STATUS&gt;\" id=\"Rzt-1Q-Zm6\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JuB-G8-hG2\" userLabel=\"Choose Ours Button\">\n                                                                <rect key=\"frame\" x=\"106\" y=\"10\" width=\"140\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Choose Ours\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"CQT-IB-4eo\">\n                                                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                </buttonCell>\n                                                                <connections>\n                                                                    <action selector=\"chooseOurs:\" target=\"-2\" id=\"LY2-a1-ajJ\"/>\n                                                                </connections>\n                                                            </button>\n                                                            <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"9Un-yc-6qx\" userLabel=\"Choose Theirs Button\">\n                                                                <rect key=\"frame\" x=\"254\" y=\"10\" width=\"140\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <buttonCell key=\"cell\" type=\"roundRect\" title=\"Choose Theirs\" bezelStyle=\"roundedRect\" alignment=\"center\" controlSize=\"small\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"pv1-Qs-qUh\">\n                                                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                </buttonCell>\n                                                                <connections>\n                                                                    <action selector=\"chooseTheirs:\" target=\"-2\" id=\"1tk-wO-T7L\"/>\n                                                                </connections>\n                                                            </button>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7H8-BQ-WBn\" userLabel=\"&lt;OURS SHA1&gt;\">\n                                                                <rect key=\"frame\" x=\"123\" y=\"61\" width=\"300\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;OLD SHA1&gt;\" id=\"98R-9C-80x\" userLabel=\"&lt;OURS SHA1&gt;\">\n                                                                    <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MJE-MH-NqZ\">\n                                                                <rect key=\"frame\" x=\"77\" y=\"58\" width=\"44\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Ours:\" id=\"B8P-fk-f1o\">\n                                                                    <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cZ1-1f-A7i\" userLabel=\"&lt;THEIRS SHA1&gt;\">\n                                                                <rect key=\"frame\" x=\"123\" y=\"40\" width=\"300\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;NEW SHA1&gt;\" id=\"WDM-jT-bbJ\" userLabel=\"&lt;THEIRS SHA1&gt;\">\n                                                                    <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2dj-Qu-d0J\">\n                                                                <rect key=\"frame\" x=\"77\" y=\"37\" width=\"44\" height=\"17\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Theirs:\" id=\"a4e-qe-VRy\">\n                                                                    <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                        </subviews>\n                                                    </customView>\n                                                </subviews>\n                                                <connections>\n                                                    <outlet property=\"chooseOursButton\" destination=\"JuB-G8-hG2\" id=\"lHH-7c-PX2\"/>\n                                                    <outlet property=\"chooseTheirsButton\" destination=\"9Un-yc-6qx\" id=\"zMn-Td-hzx\"/>\n                                                    <outlet property=\"oursTextField\" destination=\"7H8-BQ-WBn\" id=\"gEA-Vb-DYa\"/>\n                                                    <outlet property=\"statusTextField\" destination=\"Dqh-34-tmL\" id=\"wej-oZ-BYX\"/>\n                                                    <outlet property=\"theirsTextField\" destination=\"cZ1-1f-A7i\" id=\"zUP-zt-dj1\"/>\n                                                </connections>\n                                            </tableCellView>\n                                        </prototypeCellViews>\n                                    </tableColumn>\n                                </tableColumns>\n                                <connections>\n                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"Dd0-aS-Zn2\"/>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"eXA-Bc-6BQ\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"Zog-jE-wv1\">\n                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"clH-MG-Ca7\">\n                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"esO-al-uQm\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"359\" width=\"700\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\" flexibleMaxY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;EMPTY&gt;\" id=\"vil-2I-MOS\">\n                        <font key=\"font\" metaFont=\"system\" size=\"14\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"232\" y=\"638\"/>\n        </view>\n    </objects>\n    <resources>\n        <image name=\"NSApplicationIcon\" width=\"32\" height=\"32\"/>\n        <image name=\"icon_file_a\" width=\"15\" height=\"15\"/>\n        <image name=\"icon_gear\" width=\"12\" height=\"12\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUpKit/Components/Base.lproj/GIDiffFilesViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"17701\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"17701\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIDiffFilesViewController\">\n            <connections>\n                <outlet property=\"emptyTextField\" destination=\"vnq-Fj-lPE\" id=\"r2f-Ry-dA5\"/>\n                <outlet property=\"tableView\" destination=\"JAA-xU-zC6\" id=\"c3k-F7-X13\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <scrollView fixedFrame=\"YES\" borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"22\" horizontalPageScroll=\"10\" verticalLineScroll=\"22\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2cJ-J8-eFZ\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <clipView key=\"contentView\" id=\"16E-vQ-UeQ\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"500\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"22\" rowSizeStyle=\"automatic\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"JAA-xU-zC6\" customClass=\"GIFilesTableView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"500\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableColumns>\n                                    <tableColumn editable=\"NO\" width=\"228\" minWidth=\"40\" maxWidth=\"1000\" id=\"E3R-WO-zSK\">\n                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </tableHeaderCell>\n                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"hk3-2q-zGM\">\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </textFieldCell>\n                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                        <prototypeCellViews>\n                                            <tableCellView id=\"R5f-Ja-Xvl\" customClass=\"GIFileCellView\">\n                                                <rect key=\"frame\" x=\"10\" y=\"0.0\" width=\"240\" height=\"22\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"KaL-xa-jc5\">\n                                                        <rect key=\"frame\" x=\"25\" y=\"4\" width=\"211\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingHead\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;FILE&gt;\" id=\"u2i-DH-hTo\">\n                                                            <font key=\"font\" metaFont=\"controlContent\" size=\"11\"/>\n                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"14a-au-pfU\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"4\" width=\"15\" height=\"15\"/>\n                                                        <constraints>\n                                                            <constraint firstAttribute=\"height\" constant=\"15\" id=\"mLe-Se-Jq8\"/>\n                                                            <constraint firstAttribute=\"width\" constant=\"15\" id=\"zQ9-zT-ZEq\"/>\n                                                        </constraints>\n                                                        <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" image=\"icon_file_a\" id=\"V2R-ya-Hy4\"/>\n                                                    </imageView>\n                                                </subviews>\n                                                <constraints>\n                                                    <constraint firstItem=\"KaL-xa-jc5\" firstAttribute=\"leading\" secondItem=\"14a-au-pfU\" secondAttribute=\"trailing\" constant=\"6\" id=\"5L4-7k-yQc\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"KaL-xa-jc5\" secondAttribute=\"trailing\" constant=\"6\" id=\"B7F-k3-d8m\"/>\n                                                    <constraint firstItem=\"KaL-xa-jc5\" firstAttribute=\"centerY\" secondItem=\"R5f-Ja-Xvl\" secondAttribute=\"centerY\" id=\"SbP-sl-Ckd\"/>\n                                                    <constraint firstItem=\"14a-au-pfU\" firstAttribute=\"centerY\" secondItem=\"R5f-Ja-Xvl\" secondAttribute=\"centerY\" id=\"rWZ-Ar-YC0\"/>\n                                                    <constraint firstItem=\"14a-au-pfU\" firstAttribute=\"leading\" secondItem=\"R5f-Ja-Xvl\" secondAttribute=\"leading\" constant=\"6\" id=\"y2a-7f-Dkh\"/>\n                                                </constraints>\n                                                <connections>\n                                                    <outlet property=\"imageView\" destination=\"14a-au-pfU\" id=\"3Kc-s3-koR\"/>\n                                                    <outlet property=\"textField\" destination=\"KaL-xa-jc5\" id=\"1gl-uS-YRe\"/>\n                                                </connections>\n                                            </tableCellView>\n                                        </prototypeCellViews>\n                                    </tableColumn>\n                                </tableColumns>\n                                <connections>\n                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"lBI-Cw-jYV\"/>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"IMo-Qc-4Rd\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"0Oq-P1-RRf\">\n                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"1zv-Ip-esL\">\n                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vnq-Fj-lPE\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"242\" width=\"260\" height=\"17\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;EMPTY&gt;\" id=\"sc9-uZ-UTx\">\n                        <font key=\"font\" metaFont=\"menu\" size=\"14\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"trailing\" secondItem=\"vnq-Fj-lPE\" secondAttribute=\"trailing\" constant=\"2\" id=\"jnn-7q-f1E\"/>\n                <constraint firstItem=\"vnq-Fj-lPE\" firstAttribute=\"leading\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"leading\" constant=\"2\" id=\"olW-V7-PdZ\"/>\n                <constraint firstItem=\"vnq-Fj-lPE\" firstAttribute=\"centerY\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"centerY\" id=\"sVi-xY-m9v\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"-95\" y=\"289\"/>\n        </view>\n    </objects>\n    <resources>\n        <image name=\"icon_file_a\" width=\"15\" height=\"15\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUpKit/Components/Base.lproj/GISnapshotListViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GISnapshotListViewController\">\n            <connections>\n                <outlet property=\"tableView\" destination=\"XD8-on-AQk\" id=\"fBV-wf-oND\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <scrollView borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"67\" horizontalPageScroll=\"10\" verticalLineScroll=\"67\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"AJL-NY-aX0\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n                    <clipView key=\"contentView\" id=\"rt3-aj-SED\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" tableStyle=\"fullWidth\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"67\" usesAutomaticRowHeights=\"YES\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"XD8-on-AQk\" customClass=\"GITableView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableViewGridLines key=\"gridStyleMask\" horizontal=\"YES\"/>\n                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableColumns>\n                                    <tableColumn editable=\"NO\" width=\"298\" minWidth=\"40\" maxWidth=\"1000\" id=\"jYE-Dh-d6l\">\n                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </tableHeaderCell>\n                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"yLW-HB-7q3\">\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </textFieldCell>\n                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                        <prototypeCellViews>\n                                            <tableCellView id=\"lNu-SG-CeF\" customClass=\"GISnapshotCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"67\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"bottom\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YsR-F7-VqX\">\n                                                        <rect key=\"frame\" x=\"8\" y=\"27\" width=\"294\" height=\"35\"/>\n                                                        <subviews>\n                                                            <stackView distribution=\"fill\" orientation=\"vertical\" alignment=\"leading\" spacing=\"6\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"BHa-Ww-hl9\">\n                                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"225\" height=\"35\"/>\n                                                                <subviews>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"l20-Zd-aeU\">\n                                                                        <rect key=\"frame\" x=\"-2\" y=\"20\" width=\"50\" height=\"15\"/>\n                                                                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;DATE&gt;\" id=\"fnB-nM-Xez\">\n                                                                            <font key=\"font\" metaFont=\"cellTitle\"/>\n                                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"aSE-41-Faa\">\n                                                                        <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"65\" height=\"14\"/>\n                                                                        <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;BRANCH&gt;\" id=\"vGZ-yd-Q3L\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                </subviews>\n                                                                <visibilityPriorities>\n                                                                    <integer value=\"1000\"/>\n                                                                    <integer value=\"1000\"/>\n                                                                </visibilityPriorities>\n                                                                <customSpacing>\n                                                                    <real value=\"3.4028234663852886e+38\"/>\n                                                                    <real value=\"3.4028234663852886e+38\"/>\n                                                                </customSpacing>\n                                                            </stackView>\n                                                            <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cJ8-TQ-t4A\">\n                                                                <rect key=\"frame\" x=\"232\" y=\"-2\" width=\"63\" height=\"23\"/>\n                                                                <buttonCell key=\"cell\" type=\"roundTextured\" title=\"Restore\" bezelStyle=\"texturedRounded\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"P9e-AC-Ggf\">\n                                                                    <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                </buttonCell>\n                                                                <connections>\n                                                                    <action selector=\"restoreSnapshot:\" target=\"-2\" id=\"ZF4-iu-W4N\"/>\n                                                                </connections>\n                                                            </button>\n                                                        </subviews>\n                                                        <visibilityPriorities>\n                                                            <integer value=\"1000\"/>\n                                                            <integer value=\"1000\"/>\n                                                        </visibilityPriorities>\n                                                        <customSpacing>\n                                                            <real value=\"3.4028234663852886e+38\"/>\n                                                            <real value=\"3.4028234663852886e+38\"/>\n                                                        </customSpacing>\n                                                    </stackView>\n                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"31p-sM-rNo\">\n                                                        <rect key=\"frame\" x=\"6\" y=\"7\" width=\"298\" height=\"14\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;REASON&gt;\" id=\"4To-hs-ccb\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                </subviews>\n                                                <constraints>\n                                                    <constraint firstAttribute=\"bottom\" secondItem=\"31p-sM-rNo\" secondAttribute=\"bottom\" constant=\"7\" id=\"1rV-5q-7v9\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"YsR-F7-VqX\" secondAttribute=\"trailing\" constant=\"8\" id=\"FyL-tD-UZ5\"/>\n                                                    <constraint firstItem=\"31p-sM-rNo\" firstAttribute=\"leading\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"leading\" constant=\"8\" id=\"P06-4m-NVX\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"31p-sM-rNo\" secondAttribute=\"trailing\" constant=\"8\" id=\"Zx8-Ed-unx\"/>\n                                                    <constraint firstItem=\"YsR-F7-VqX\" firstAttribute=\"top\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"top\" constant=\"5\" id=\"aIS-bG-B8e\"/>\n                                                    <constraint firstItem=\"YsR-F7-VqX\" firstAttribute=\"leading\" secondItem=\"lNu-SG-CeF\" secondAttribute=\"leading\" constant=\"8\" id=\"sYq-Ns-XBG\"/>\n                                                </constraints>\n                                                <connections>\n                                                    <outlet property=\"branchTextField\" destination=\"aSE-41-Faa\" id=\"HJo-Hl-TO6\"/>\n                                                    <outlet property=\"dateTextField\" destination=\"l20-Zd-aeU\" id=\"3Xf-W2-AhL\"/>\n                                                    <outlet property=\"reasonTextField\" destination=\"31p-sM-rNo\" id=\"Aeb-zX-KSi\"/>\n                                                    <outlet property=\"restoreButton\" destination=\"cJ8-TQ-t4A\" id=\"buk-ax-rtY\"/>\n                                                </connections>\n                                            </tableCellView>\n                                        </prototypeCellViews>\n                                    </tableColumn>\n                                </tableColumns>\n                                <connections>\n                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"aXy-CE-1i1\"/>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"RSX-r7-nqv\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"vWX-FO-oiY\">\n                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"ppU-d5-YKa\">\n                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"AJL-NY-aX0\" firstAttribute=\"leading\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"leading\" id=\"28t-5C-WgL\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"AJL-NY-aX0\" secondAttribute=\"trailing\" id=\"Y4j-om-Xln\"/>\n                <constraint firstItem=\"AJL-NY-aX0\" firstAttribute=\"top\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"top\" id=\"uI5-T2-fNs\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"AJL-NY-aX0\" secondAttribute=\"bottom\" id=\"uxQ-8B-RE3\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"40\" y=\"536\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Components/Base.lproj/GIUnifiedReflogViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"17506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"17506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIUnifiedReflogViewController\">\n            <connections>\n                <outlet property=\"nameTextField\" destination=\"1Ft-qn-oYj\" id=\"qVR-HU-CDF\"/>\n                <outlet property=\"restoreView\" destination=\"hZQ-gb-8kq\" id=\"wJe-5i-wGW\"/>\n                <outlet property=\"tableView\" destination=\"eCC-8p-v0T\" id=\"q3h-5Q-soa\"/>\n                <outlet property=\"view\" destination=\"MH8-8v-gCw\" id=\"kx9-pr-QVY\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"MH8-8v-gCw\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <scrollView fixedFrame=\"YES\" borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"64\" horizontalPageScroll=\"10\" verticalLineScroll=\"64\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bhy-go-cbZ\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <clipView key=\"contentView\" id=\"hSz-33-pAu\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" tableStyle=\"fullWidth\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"64\" rowSizeStyle=\"automatic\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"eCC-8p-v0T\" customClass=\"GITableView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"500\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableViewGridLines key=\"gridStyleMask\" horizontal=\"YES\"/>\n                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableColumns>\n                                    <tableColumn editable=\"NO\" width=\"298\" minWidth=\"40\" maxWidth=\"1000\" id=\"Utu-ea-oof\">\n                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </tableHeaderCell>\n                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"L4X-Jg-1cA\">\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </textFieldCell>\n                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                        <prototypeCellViews>\n                                            <tableCellView id=\"2ET-JP-j9K\" customClass=\"GIReflogCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"310\" height=\"64\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"UUH-Ya-qgL\">\n                                                        <rect key=\"frame\" x=\"12\" y=\"43\" width=\"215\" height=\"16\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;DATE&gt;\" id=\"CAx-qO-hcQ\">\n                                                            <font key=\"font\" metaFont=\"cellTitle\"/>\n                                                            <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gN3-DV-uz9\">\n                                                        <rect key=\"frame\" x=\"12\" y=\"6\" width=\"290\" height=\"14\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"mini\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;MESSAGE&gt;\" id=\"tIJ-TL-cTH\">\n                                                            <font key=\"font\" metaFont=\"miniSystem\"/>\n                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"XZF-t8-MmI\">\n                                                        <rect key=\"frame\" x=\"238\" y=\"27\" width=\"62\" height=\"23\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"roundTextured\" title=\"Restore\" bezelStyle=\"texturedRounded\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"kM9-bW-ZyX\">\n                                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"restoreEntry:\" target=\"-2\" id=\"9vW-4e-Rhc\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cAX-w7-opq\">\n                                                        <rect key=\"frame\" x=\"12\" y=\"25\" width=\"215\" height=\"14\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;ACTION&gt;\" id=\"aCu-57-Md1\">\n                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                </subviews>\n                                                <connections>\n                                                    <outlet property=\"actionTextField\" destination=\"cAX-w7-opq\" id=\"3V3-1e-eRy\"/>\n                                                    <outlet property=\"dateTextField\" destination=\"UUH-Ya-qgL\" id=\"x1t-kH-Bo4\"/>\n                                                    <outlet property=\"messageTextField\" destination=\"gN3-DV-uz9\" id=\"uK6-oI-nJn\"/>\n                                                    <outlet property=\"restoreButton\" destination=\"XZF-t8-MmI\" id=\"YOb-NV-MOi\"/>\n                                                </connections>\n                                            </tableCellView>\n                                        </prototypeCellViews>\n                                    </tableColumn>\n                                </tableColumns>\n                                <connections>\n                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"8AL-0M-rGQ\"/>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"Dfw-7K-pau\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"Vyp-Pl-FhK\">\n                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"0MP-1d-GTK\">\n                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"232\" y=\"388\"/>\n        </view>\n        <customView id=\"hZQ-gb-8kq\" userLabel=\"Restore View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"358\" height=\"22\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"1Ft-qn-oYj\">\n                    <rect key=\"frame\" x=\"113\" y=\"0.0\" width=\"240\" height=\"22\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" id=\"68O-Ht-dLG\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FMA-JZ-b0c\">\n                    <rect key=\"frame\" x=\"-2\" y=\"2\" width=\"109\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Branch Name:\" id=\"VGx-PL-1V0\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"718\" y=\"423\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"provides-namespace\" : true\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/added_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.609\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.501\",\n          \"green\" : \"0.798\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.309\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.201\",\n          \"green\" : \"0.498\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/conflict_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"1.000\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.150\",\n          \"green\" : \"0.590\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.700\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.000\",\n          \"green\" : \"0.290\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/deleted_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"1.000\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.630\",\n          \"green\" : \"0.627\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.700\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.330\",\n          \"green\" : \"0.327\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/modified_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.475\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"1.000\",\n          \"green\" : \"0.687\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.175\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.700\",\n          \"green\" : \"0.387\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/renamed_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.656\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.759\",\n          \"green\" : \"0.547\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.356\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.459\",\n          \"green\" : \"0.247\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/diff/untracked_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.750\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.750\",\n          \"green\" : \"0.750\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.450\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.450\",\n          \"green\" : \"0.450\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_file_a.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_file_a.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_file_a@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_file_conflict.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_file_conflict.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_file_conflict@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_file_d.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_file_d.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_file_d@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_file_m.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_file_m.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_file_m@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_file_r.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_file_r.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_file_r@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_file_u.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_file_u.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_file_u@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/Components.xcassets/icon_gear.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_gear.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_gear@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Components/GICommitListViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@class GICommitListViewController, GCHistoryCommit;\n\n@protocol GICommitListViewControllerDelegate <NSObject>\n@optional\n- (void)commitListViewControllerDidChangeSelection:(GICommitListViewController*)controller;\n@end\n\n@interface GICommitListViewController : GIViewController\n@property(nonatomic, weak) id<GICommitListViewControllerDelegate> delegate;\n@property(nonatomic, copy) NSArray* results;  // Can contain GCHistoryCommit, GCHistoryLocalBranch, GCHistoryRemoteBranch or GCHistoryTag\n@property(nonatomic, readonly) NSArray* commits;  // Converted results to GCHistoryCommits\n@property(nonatomic, weak) id selectedResult;\n@property(nonatomic, weak) GCHistoryCommit* selectedCommit;\n@property(nonatomic, copy) NSString* emptyLabel;\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GICommitListViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GICommitListViewController.h\"\n\n#import \"GCLiveRepository+Utilities.h\"\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GICommitListViewController () <NSTableViewDataSource>\n@property(nonatomic, weak) IBOutlet GITableView* tableView;\n@property(nonatomic, weak) IBOutlet NSTextField* emptyTextField;\n@end\n\n@interface GICommitCellView : GITableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* dateTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* sha1TextField;\n@property(nonatomic, weak) IBOutlet NSTextField* summaryTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* authorTextField;\n@end\n\n@implementation GICommitCellView\n@end\n\n@interface GIReferenceCellView : GITableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* typeTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* nameTextField;\n@end\n\n@implementation GIReferenceCellView\n@end\n\n@implementation GICommitListViewController {\n  NSDateFormatter* _dateFormatter;\n  GICommitCellView* _cachedCommitCellView;\n  CGFloat _referenceCellHeight;\n  NSMutableArray* _commits;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n    if ([_dateFormatter.locale.localeIdentifier hasPrefix:@\"en_\"]) {\n      _dateFormatter.doesRelativeDateFormatting = YES;\n    }\n  }\n  return self;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _emptyTextField.stringValue = @\"\";\n\n  _cachedCommitCellView = [_tableView makeViewWithIdentifier:@\"commit\" owner:self];\n\n  GIReferenceCellView* view = [_tableView makeViewWithIdentifier:@\"reference\" owner:self];\n  _referenceCellHeight = view.frame.size.height;\n}\n\n- (void)setResults:(NSArray*)results {\n  _results = [results copy];\n  if (_results) {\n    _commits = [[NSMutableArray alloc] initWithCapacity:_results.count];\n    for (id result in _results) {\n      if ([result isKindOfClass:[GCCommit class]]) {\n        [_commits addObject:result];\n      } else if ([result isKindOfClass:[GCHistoryLocalBranch class]]) {\n        [_commits addObject:[(GCHistoryLocalBranch*)result tipCommit]];\n      } else if ([result isKindOfClass:[GCHistoryRemoteBranch class]]) {\n        [_commits addObject:[(GCHistoryRemoteBranch*)result tipCommit]];\n      } else if ([result isKindOfClass:[GCHistoryTag class]]) {\n        [_commits addObject:[(GCHistoryTag*)result commit]];\n      } else {\n        XLOG_DEBUG_UNREACHABLE();\n      }\n    }\n  } else {\n    _commits = nil;\n  }\n\n  [self _reloadResults];\n\n  if (_commits.count) {\n    [_tableView scrollRowToVisible:0];\n  }\n}\n\n- (void)_reloadResults {\n  [_tableView reloadData];\n\n  if (_results.count) {\n    _tableView.hidden = NO;\n    _emptyTextField.hidden = YES;\n    [self tableViewSelectionDidChange:nil];  // Work around a bug where -tableViewSelectionDidChange is not called when emptying the table\n  } else {\n    _tableView.hidden = YES;  // Hide table to prevent it to become first responder\n    _emptyTextField.hidden = NO;\n  }\n}\n\n- (void)_selectIndex:(NSUInteger)index {\n  if (index != NSNotFound) {\n    [_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:index] byExtendingSelection:NO];\n    [_tableView scrollRowToVisible:index];\n  } else {\n    [_tableView deselectAll:nil];\n  }\n}\n\n- (void)setSelectedResult:(id)result {\n  if (result) {\n    [self _selectIndex:[_results indexOfObjectIdenticalTo:result]];\n  } else {\n    [_tableView deselectAll:nil];\n  }\n}\n\n- (id)selectedResult {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    return _results[row];\n  }\n  return nil;\n}\n\n- (void)setSelectedCommit:(GCHistoryCommit*)commit {\n  if (commit) {\n    [self _selectIndex:[_commits indexOfObjectIdenticalTo:commit]];\n  } else {\n    [_tableView deselectAll:nil];\n  }\n}\n\n- (GCHistoryCommit*)selectedCommit {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    return _commits[row];\n  }\n  return nil;\n}\n\n- (NSString*)emptyLabel {\n  return _emptyTextField.stringValue;\n}\n\n- (void)setEmptyLabel:(NSString*)label {\n  _emptyTextField.stringValue = label;\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return _results.count;\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  id result = _results[row];\n\n  if ([result isKindOfClass:[GCCommit class]]) {\n    GCCommit* commit = result;\n    GICommitCellView* view = [tableView makeViewWithIdentifier:@\"commit\" owner:self];\n    view.row = row;\n    view.dateTextField.stringValue = [_dateFormatter stringFromDate:commit.date];\n    view.sha1TextField.stringValue = commit.shortSHA1;\n    view.summaryTextField.stringValue = commit.summary;\n    NSMutableAttributedString* author = [[NSMutableAttributedString alloc] init];\n    CGFloat fontSize = view.authorTextField.font.pointSize;\n    [author beginEditing];\n    [author appendString:commit.authorName withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n    [author appendString:@\" \" withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n    [author appendString:commit.authorEmail withAttributes:nil];\n    [author endEditing];\n    view.authorTextField.attributedStringValue = author;\n    return view;\n  }\n\n  if ([result isKindOfClass:[GCReference class]]) {\n    GCReference* reference = result;\n    GIReferenceCellView* view = [tableView makeViewWithIdentifier:@\"reference\" owner:self];\n    view.row = row;\n    if ([reference isKindOfClass:[GCHistoryLocalBranch class]]) {\n      view.typeTextField.stringValue = NSLocalizedString(@\"Local Branch\", nil);\n    } else if ([reference isKindOfClass:[GCHistoryRemoteBranch class]]) {\n      view.typeTextField.stringValue = NSLocalizedString(@\"Remote Branch\", nil);\n    } else if ([reference isKindOfClass:[GCHistoryTag class]]) {\n      view.typeTextField.stringValue = [(GCHistoryTag*)reference annotation] ? NSLocalizedString(@\"Annotated Tag\", nil) : NSLocalizedString(@\"Tag\", nil);\n    } else {\n      view.typeTextField.stringValue = @\"\";\n      XLOG_DEBUG_UNREACHABLE();\n    }\n    view.nameTextField.stringValue = reference.name;\n    return view;\n  }\n\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  if ([_delegate respondsToSelector:@selector(commitListViewControllerDidChangeSelection:)]) {\n    [_delegate commitListViewControllerDidChangeSelection:self];\n  }\n}\n\n- (void)smartCheckoutSelectedCommit {\n  GCHistoryCommit* commit = [self selectedCommit];\n  if (commit) {\n    [self.repository smartCheckoutCommit:commit window:self.view.window];\n  }\n}\n\n- (void)keyDown:(NSEvent*)event {\n  if (event.keyCode == kGIKeyCode_Return) {\n    [self smartCheckoutSelectedCommit];\n  } else {\n    [super keyDown:event];\n  }\n}\n\n#pragma mark - Actions\n\n- (IBAction)doubleClicked:(id)sender {\n  [self smartCheckoutSelectedCommit];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GIDiffContentsViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n#import \"GCDiff.h\"\n\nextern NSString* const GIDiffContentsViewControllerUserDefaultKey_DiffViewMode;  // Integer (-1, 0 or 1)\n\n@class GIDiffContentsViewController, GCIndexConflict;\n\n@protocol GIDiffContentsViewControllerDelegate <NSObject>\n@optional\n- (CGFloat)diffContentsViewController:(GIDiffContentsViewController*)controller headerViewHeightForWidth:(CGFloat)width;\n- (void)diffContentsViewControllerDidScroll:(GIDiffContentsViewController*)controller;\n- (void)diffContentsViewControllerDidChangeSelection:(GIDiffContentsViewController*)controller;\n- (BOOL)diffContentsViewController:(GIDiffContentsViewController*)controller handleKeyDownEvent:(NSEvent*)event;\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict;\n- (NSString*)diffContentsViewController:(GIDiffContentsViewController*)controller actionButtonLabelForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict;\n- (void)diffContentsViewController:(GIDiffContentsViewController*)controller didClickActionButtonForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict;\n@end\n\n@interface GIDiffContentsViewController : GIViewController\n@property(nonatomic, weak) id<GIDiffContentsViewControllerDelegate> delegate;\n@property(nonatomic) BOOL showsUntrackedAsAdded;  // Default is NO\n@property(nonatomic, copy) NSString* emptyLabel;\n@property(nonatomic, strong) NSView* headerView;\n\n@property(nonatomic, readonly) NSArray* deltas;\n@property(nonatomic, readonly) NSDictionary* conflicts;\n- (void)setDeltas:(NSArray*)deltas usingConflicts:(NSDictionary*)conflicts;\n\n- (GCDiffDelta*)topVisibleDelta:(CGFloat*)offset;\n- (void)setTopVisibleDelta:(GCDiffDelta*)delta offset:(CGFloat)offset;\n\n- (BOOL)getSelectedLinesForDelta:(GCDiffDelta*)delta oldLines:(NSIndexSet**)oldLines newLines:(NSIndexSet**)newLines;\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GIDiffContentsViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIDiffContentsViewController.h\"\n\n#import \"GIInterface.h\"\n#import \"GIViewController+Utilities.h\"\n#import \"GCRepository+Index.h\"\n#import \"XLFacilityMacros.h\"\n\n// Units ems: a multiple of the font point size, so the width threshold is 100 * 10 = 1000 for a 10 point font.\n#define kMinSplitDiffViewWidthEms 100\n\n#define kContextualMenuOffsetX 0\n#define kContextualMenuOffsetY -6\n\n@interface GIDiffContentScrollView : NSScrollView\n@end\n\n@interface GIDiffContentData : NSObject\n@property(nonatomic, strong) GCDiffDelta* delta;\n@property(nonatomic, strong) GCIndexConflict* conflict;\n@property(nonatomic, strong) GIDiffView* diffView;\n@property(nonatomic, strong) GIImageDiffView* imageDiffView;\n@property(nonatomic, getter=isEmpty) BOOL empty;\n@end\n\n@interface GIHeaderDiffCellView : NSTableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* titleField;\n@property(nonatomic, weak) IBOutlet NSButton* menuButton;\n@property(nonatomic, weak) IBOutlet NSButton* actionButton;\n@property(nonatomic, strong) NSColor* backgroundColor;\n@end\n\n@interface GIEmptyDiffCellView : NSTableCellView\n@end\n\n@interface GITextDiffCellView : NSTableCellView\n@property(nonatomic, weak) GIDiffView* diffView;\n@end\n\n@interface GIImageDiffCellView : NSTableCellView\n@property(nonatomic, weak) GIImageDiffView* imageDiffView;\n@end\n\n@interface GIBinaryDiffCellView : NSTableCellView\n@end\n\n@interface GIConflictDiffCellView : NSTableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* statusTextField;\n@property(nonatomic, weak) IBOutlet NSButton* openButton;\n@property(nonatomic, weak) IBOutlet NSButton* mergeButton;\n@property(nonatomic, weak) IBOutlet NSButton* resolveButton;\n@end\n\n@interface GISubmoduleConflictDiffCellView : NSTableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* statusTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* oursTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* theirsTextField;\n@property(nonatomic, weak) IBOutlet NSButton* chooseOursButton;\n@property(nonatomic, weak) IBOutlet NSButton* chooseTheirsButton;\n@end\n\n@interface GISubmoduleDiffCellView : NSTableCellView\n@property(nonatomic, weak) IBOutlet NSView* contentView;\n@property(nonatomic, weak) IBOutlet NSTextField* oldSHA1TextField;\n@property(nonatomic, weak) IBOutlet NSTextField* newSHA1TextField;\n@property(nonatomic, weak) IBOutlet NSTextField* customTextField;\n- (NSTextField*)newSHA1TextField __attribute__((objc_method_family(none)));  // Work around Clang error for property starting with \"new\" under ARC\n@end\n\n@interface GIContentsTableView : GITableView\n@property(nonatomic, weak) GIDiffContentsViewController* controller;\n@end\n\n@interface GIDiffContentsViewController () <NSTableViewDataSource, GIDiffViewDelegate>\n@property(nonatomic, weak) IBOutlet GIDiffContentScrollView* scrollView;\n@property(nonatomic, weak) IBOutlet GIContentsTableView* tableView;\n@property(nonatomic, weak) IBOutlet NSTextField* emptyTextField;\n@end\n\nNSString* const GIDiffContentsViewControllerUserDefaultKey_DiffViewMode = @\"GIDiffContentsViewController_DiffViewMode\";\n\n@implementation GIDiffContentScrollView\n\n+ (BOOL)isCompatibleWithResponsiveScrolling {\n  return NO;  // Responsive scrolling can reveal blank areas while scrolling rapidly which looks ugly\n}\n\n@end\n\n@implementation GIDiffContentData\n@end\n\n@implementation GIHeaderDiffCellView\n\n- (BOOL)isOpaque {\n  return YES;\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  CGContextRef context = [[NSGraphicsContext currentContext] CGContext];\n  NSRect bounds = self.bounds;\n\n  CGContextSaveGState(context);\n  [_backgroundColor set];\n\n  CGContextFillRect(context, dirtyRect);\n\n  CGContextSetStrokeColorWithColor(context, NSColor.gitUpSeparatorColor.CGColor);\n  CGContextMoveToPoint(context, bounds.origin.x, bounds.origin.y + 0.5);\n  CGContextAddLineToPoint(context, bounds.origin.x + bounds.size.width, bounds.origin.y + 0.5);\n  CGContextStrokePath(context);\n\n  CGContextRestoreGState(context);\n}\n\n- (void)setActionButtonLabel:(NSString*)label {\n  NSTextField* titleField = self.titleField;\n  NSRect titleFrame = titleField.frame;\n  NSRect buttonFrame = _actionButton.frame;\n  if (label.length) {\n    _actionButton.title = label;\n    [_actionButton sizeToFit];\n    NSSize size = _actionButton.frame.size;\n    buttonFrame = NSMakeRect(buttonFrame.origin.x + buttonFrame.size.width - size.width - 10, buttonFrame.origin.y, size.width + 10, buttonFrame.size.height);\n    _actionButton.frame = buttonFrame;\n    _actionButton.hidden = NO;\n    titleField.frame = NSMakeRect(titleFrame.origin.x, titleFrame.origin.y, buttonFrame.origin.x - titleFrame.origin.x - 10, titleFrame.size.height);\n  } else {\n    _actionButton.hidden = YES;\n    titleField.frame = NSMakeRect(titleFrame.origin.x, titleFrame.origin.y, buttonFrame.origin.x + buttonFrame.size.width - titleFrame.origin.x, titleFrame.size.height);\n  }\n}\n\n@end\n\n@implementation GIEmptyDiffCellView\n@end\n\n@implementation GITextDiffCellView\n@end\n\n@implementation GIImageDiffCellView\n@end\n\n@implementation GIBinaryDiffCellView\n@end\n\n@implementation GIConflictDiffCellView\n@end\n\n@implementation GISubmoduleConflictDiffCellView\n@end\n\n@implementation GISubmoduleDiffCellView\n@end\n\n@implementation GIContentsTableView\n\n- (void)keyDown:(NSEvent*)event {\n  if (![_controller.delegate respondsToSelector:@selector(diffContentsViewController:handleKeyDownEvent:)] || ![_controller.delegate diffContentsViewController:_controller handleKeyDownEvent:event]) {\n    [super keyDown:event];\n  }\n}\n\n@end\n\nstatic NSImage* _conflictImage = nil;\nstatic NSImage* _addedImage = nil;\nstatic NSImage* _modifiedImage = nil;\nstatic NSImage* _deletedImage = nil;\nstatic NSImage* _renamedImage = nil;\nstatic NSImage* _untrackedImage = nil;\n\n@implementation GIDiffContentsViewController {\n  NSMutableArray* _data;\n  CGFloat _headerViewHeight;\n  CGFloat _emptyViewHeight;\n  CGFloat _conflictViewHeight;\n  CGFloat _submoduleConflictViewHeight;\n  CGFloat _submoduleViewHeight;\n  CGFloat _binaryViewHeight;\n}\n\n+ (void)initialize {\n  _conflictImage = [[NSBundle bundleForClass:[GIDiffContentsViewController class]] imageForResource:@\"icon_file_conflict\"];\n  _addedImage = [[NSBundle bundleForClass:[GIDiffContentsViewController class]] imageForResource:@\"icon_file_a\"];\n  _modifiedImage = [[NSBundle bundleForClass:[GIDiffContentsViewController class]] imageForResource:@\"icon_file_m\"];\n  _deletedImage = [[NSBundle bundleForClass:[GIDiffContentsViewController class]] imageForResource:@\"icon_file_d\"];\n  _renamedImage = [[NSBundle bundleForClass:[GIDiffContentsViewController class]] imageForResource:@\"icon_file_r\"];\n  _untrackedImage = [[NSBundle bundleForClass:[GIDiffContentsViewController class]] imageForResource:@\"icon_file_u\"];\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    [[NSUserDefaults standardUserDefaults] addObserver:self forKeyPath:GIDiffContentsViewControllerUserDefaultKey_DiffViewMode options:0 context:(__bridge void*)[GIDiffContentsViewController class]];\n    [[NSUserDefaults standardUserDefaults] addObserver:self forKeyPath:GIUserDefaultKey_FontSize options:0 context:(__bridge void*)[GIDiffContentsViewController class]];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSViewBoundsDidChangeNotification object:_tableView.superview];\n\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GIUserDefaultKey_FontSize context:(__bridge void*)[GIDiffContentsViewController class]];\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GIDiffContentsViewControllerUserDefaultKey_DiffViewMode context:(__bridge void*)[GIDiffContentsViewController class]];\n}\n\n- (void)_viewBoundsDidChange:(NSNotification*)notification {\n  if ([_delegate respondsToSelector:@selector(diffContentsViewControllerDidScroll:)]) {\n    [_delegate diffContentsViewControllerDidScroll:self];\n  }\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _tableView.controller = self;\n\n  _emptyTextField.stringValue = @\"\";\n\n  _headerViewHeight = [[_tableView makeViewWithIdentifier:@\"header\" owner:self] frame].size.height;\n  _emptyViewHeight = [[_tableView makeViewWithIdentifier:@\"empty\" owner:self] frame].size.height;\n  _conflictViewHeight = [[_tableView makeViewWithIdentifier:@\"conflict\" owner:self] frame].size.height;\n  _submoduleConflictViewHeight = [[_tableView makeViewWithIdentifier:@\"submodule_conflict\" owner:self] frame].size.height;\n  _submoduleViewHeight = [[_tableView makeViewWithIdentifier:@\"submodule\" owner:self] frame].size.height;\n  _binaryViewHeight = [[_tableView makeViewWithIdentifier:@\"binary\" owner:self] frame].size.height;\n\n  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_viewBoundsDidChange:) name:NSViewBoundsDidChangeNotification object:_tableView.superview];\n}\n\n- (Class)_diffViewClassForChange:(GCFileDiffChange)change {\n  NSInteger mode = [[NSUserDefaults standardUserDefaults] integerForKey:GIDiffContentsViewControllerUserDefaultKey_DiffViewMode];\n  if (mode == 0) {\n    if ((change == kGCFileDiffChange_Untracked) || (change == kGCFileDiffChange_Added) || (change == kGCFileDiffChange_Deleted)) {\n      return [GIUnifiedDiffView class];\n    }\n    return self.view.bounds.size.width < kMinSplitDiffViewWidthEms * GIFontSize() ? [GIUnifiedDiffView class] : [GISplitDiffView class];\n  }\n  return mode > 0 ? [GISplitDiffView class] : [GIUnifiedDiffView class];\n}\n\n- (void)_updateDiffViewsForcingReload:(BOOL)forceReload {\n  BOOL reload = forceReload;\n  for (GIDiffContentData* data in _data) {\n    if (!data.diffView) {\n      continue;\n    }\n    Class diffViewClass = [self _diffViewClassForChange:data.delta.change];\n    if (![data.diffView isKindOfClass:diffViewClass]) {\n      GIDiffView* diffView = [[diffViewClass alloc] initWithFrame:NSZeroRect];\n      diffView.delegate = self;\n      diffView.patch = data.diffView.patch;\n      data.diffView.delegate = nil;\n      data.diffView.patch = nil;\n      data.diffView = diffView;\n      reload = YES;\n    }\n  }\n  if (reload) {\n    [_tableView reloadData];\n  }\n}\n\n- (void)viewDidResize {\n  if (self.viewVisible && !self.liveResizing) {\n    [self _updateDiffViewsForcingReload:NO];\n    [NSAnimationContext beginGrouping];\n    [[NSAnimationContext currentContext] setDuration:0.0];  // Prevent animations in case the view is actually not on screen yet (e.g. in a hidden tab)\n    [_tableView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfRowsInTableView:_tableView])]];\n    [NSAnimationContext endGrouping];\n  }\n}\n\n- (void)viewDidFinishLiveResize {\n  [self _updateDiffViewsForcingReload:NO];\n  [_tableView noteHeightOfRowsWithIndexesChanged:[NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0, [self numberOfRowsInTableView:_tableView])]];\n}\n\n// WARNING: This is called *several* times when the default has been changed\n- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context {\n  if (context == (__bridge void*)[GIDiffContentsViewController class]) {\n    BOOL isFontSizeChange = [keyPath isEqualToString:GIUserDefaultKey_FontSize];\n    if (self.viewVisible || isFontSizeChange) {\n      [self _updateDiffViewsForcingReload:isFontSizeChange];  // This is idempotent\n    }\n  } else {\n    [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];\n  }\n}\n\n- (void)setDeltas:(NSArray*)deltas usingConflicts:(NSDictionary*)conflicts {\n  if ((deltas != _deltas) || (conflicts != _conflicts)) {\n    _deltas = deltas;\n    _conflicts = conflicts;\n    [self _reloadDeltas];\n  }\n}\n\n- (void)_reloadDeltas {\n  BOOL flashScrollers = NO;\n\n  if (_deltas.count) {\n    CFMutableDictionaryRef cache = NULL;\n    if (_data) {\n      CFDictionaryKeyCallBacks callbacks = {0, NULL, NULL, NULL, CFEqual, CFHash};\n      cache = CFDictionaryCreateMutable(kCFAllocatorDefault, _data.count, &callbacks, NULL);\n      for (GIDiffContentData* data in _data) {\n        CFDictionarySetValue(cache, (__bridge const void*)data.delta.canonicalPath, (__bridge const void*)data);\n      }\n    } else {\n      flashScrollers = YES;\n    }\n\n    NSMutableArray* array = [[NSMutableArray alloc] init];\n    for (GCDiffDelta* delta in _deltas) {\n      GCIndexConflict* conflict = [_conflicts objectForKey:delta.canonicalPath];\n      GIDiffContentData* data = nil;\n      if (cache) {\n        GIDiffContentData* oldData = CFDictionaryGetValue(cache, (__bridge const void*)delta.canonicalPath);\n        if (!conflict && !oldData.conflict && [oldData.delta isEqualToDelta:delta]) {  // Ignore cache for conflicts\n          data = oldData;\n        }\n        if (!oldData) {\n          flashScrollers = YES;\n        }\n      }\n      if (data == nil) {\n        data = [[GIDiffContentData alloc] init];\n        data.delta = delta;\n        data.conflict = conflict;\n\n        if (!conflict && !GC_FILE_MODE_IS_SUBMODULE(delta.oldFile.mode) && !GC_FILE_MODE_IS_SUBMODULE(delta.newFile.mode)) {\n          NSError* error;\n          BOOL isBinary;\n          GCDiffPatch* patch = [self.repository makePatchForDiffDelta:delta isBinary:&isBinary error:&error];\n          if (patch) {\n            XLOG_DEBUG_CHECK(!isBinary || patch.empty);\n\n            CFStringRef fileExtension = (__bridge CFStringRef)delta.canonicalPath.pathExtension;\n            CFStringRef fileUTI = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, fileExtension, NULL);\n            BOOL isImage = [NSImage.imageTypes containsObject:(__bridge NSString*)(fileUTI)];\n            CFRelease(fileUTI);\n            if (isImage) {\n              GIImageDiffView* imageDiffView = [[GIImageDiffView alloc] initWithRepository:self.repository];\n              imageDiffView.delta = delta;\n              data.imageDiffView = imageDiffView;\n            } else if (patch.empty) {\n              data.empty = !isBinary;\n            } else {\n              GIDiffView* diffView = [[[self _diffViewClassForChange:delta.change] alloc] initWithFrame:NSZeroRect];\n              diffView.delegate = self;\n              diffView.patch = patch;\n              data.diffView = diffView;\n            }\n          } else {\n            [self presentError:error];\n          }\n        }\n      }\n      [array addObject:data];\n    }\n\n    _data = array;\n    if (cache) {\n      CFRelease(cache);\n    }\n  } else {\n    _data = nil;\n  }\n  [_tableView reloadData];\n\n  _emptyTextField.hidden = _data.count ? YES : NO;\n\n  if (flashScrollers && self.viewVisible) {\n    [_scrollView flashScrollers];\n  }\n}\n\n- (NSString*)emptyLabel {\n  return _emptyTextField.stringValue;\n}\n\n- (void)setEmptyLabel:(NSString*)label {\n  _emptyTextField.stringValue = label;\n}\n\n- (GCDiffDelta*)topVisibleDelta:(CGFloat*)offset {\n  NSClipView* clipView = (NSClipView*)_tableView.superview;\n  NSInteger row = [_tableView rowAtPoint:clipView.bounds.origin];\n  if (_headerView) {\n    row -= 1;\n  }\n  if (row >= 0) {\n    if (offset) {\n      NSRect rect = [_tableView rectOfRow:(2 * (row / 2))];\n      *offset = clipView.bounds.origin.y - rect.origin.y;\n    }\n    GIDiffContentData* data = _data[row / 2];\n    return data.delta;\n  }\n  return nil;\n}\n\n- (void)setTopVisibleDelta:(GCDiffDelta*)delta offset:(CGFloat)offset {\n  NSInteger row = _headerView ? 1 : 0;\n  for (GIDiffContentData* data in _data) {\n    if ([data.delta.canonicalPath isEqualToString:delta.canonicalPath]) {  // Don't use -isEqualToDelta:\n      NSRect rect = [_tableView rectOfRow:row];\n      NSClipView* clipView = (NSClipView*)_tableView.superview;\n      [clipView setBoundsOrigin:NSMakePoint(0, rect.origin.y + offset)];  // Work around -[NSView scrollPoint:] bug on OS X 10.10 where target is not always reached\n      break;\n    }\n    row += 2;\n  }\n}\n\n- (BOOL)getSelectedLinesForDelta:(GCDiffDelta*)delta oldLines:(NSIndexSet**)oldLines newLines:(NSIndexSet**)newLines {\n  for (GIDiffContentData* data in _data) {\n    if ([data.delta.canonicalPath isEqualToString:delta.canonicalPath]) {  // Don't use -isEqualToDelta:\n      if (data.diffView.hasSelectedLines) {\n        [data.diffView getSelectedText:NULL oldLines:oldLines newLines:newLines];\n        return YES;\n      }\n      return NO;\n    }\n  }\n  return NO;\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return (_headerView ? 1 : 0) + 2 * _data.count;\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (BOOL)tableView:(NSTableView*)tableView isGroupRow:(NSInteger)row {\n  if (_headerView) {\n    if (row == 0) {\n      return NO;\n    }\n    row -= 1;\n  }\n  return row % 2 == 0;\n}\n\n- (void)tableView:(NSTableView*)tableView didRemoveRowView:(NSTableRowView*)rowView forRow:(NSInteger)row {\n  if (_headerView) {\n    row -= 1;\n  }\n  if (row % 2) {\n    GITextDiffCellView* textDiffView = [rowView viewAtColumn:0];\n    GIImageDiffCellView* imageDiffView = [rowView viewAtColumn:0];\n    if ([textDiffView isKindOfClass:[GITextDiffCellView class]]) {\n      [textDiffView.diffView removeFromSuperview];\n      textDiffView.diffView = nil;\n    } else if ([imageDiffView isKindOfClass:[GIImageDiffCellView class]]) {\n      [imageDiffView.imageDiffView removeFromSuperview];\n      imageDiffView.imageDiffView = nil;\n    }\n  }\n}\n\nstatic inline NSString* _StringFromFileMode(GCFileMode mode) {\n  switch (mode) {\n    case kGCFileMode_Unreadable:\n      return NSLocalizedString(@\"Unreadable\", nil);\n    case kGCFileMode_Tree:\n      return NSLocalizedString(@\"Tree\", nil);\n    case kGCFileMode_Blob:\n      return NSLocalizedString(@\"Blob\", nil);\n    case kGCFileMode_BlobExecutable:\n      return NSLocalizedString(@\"Executable\", nil);\n    case kGCFileMode_Link:\n      return NSLocalizedString(@\"Link\", nil);\n    case kGCFileMode_Commit:\n      return NSLocalizedString(@\"Commit\", nil);\n  }\n  return nil;\n}\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  if (_headerView) {\n    if (row == 0) {\n      return _headerView;\n    }\n    row -= 1;\n  }\n\n  GIDiffContentData* data = _data[row / 2];\n  GCDiffDelta* delta = data.delta;\n\n  if (row % 2) {\n    if (data.diffView) {\n      GITextDiffCellView* view = [_tableView makeViewWithIdentifier:@\"text\" owner:self];\n      XLOG_DEBUG_CHECK(view.diffView == nil);\n      XLOG_DEBUG_CHECK(data.diffView.superview == nil);\n      data.diffView.frame = view.bounds;\n      data.diffView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;\n      [view addSubview:data.diffView];\n      view.diffView = data.diffView;\n      return view;\n    } else if (data.imageDiffView) {\n      GIImageDiffCellView* view = [_tableView makeViewWithIdentifier:@\"image\" owner:self];\n      XLOG_DEBUG_CHECK(view.imageDiffView == nil);\n      XLOG_DEBUG_CHECK(data.imageDiffView.superview == nil);\n      data.imageDiffView.frame = view.bounds;\n      data.imageDiffView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;\n      [view addSubview:data.imageDiffView];\n      view.imageDiffView = data.imageDiffView;\n      return view;\n    } else if (data.empty) {\n      GIEmptyDiffCellView* view = [_tableView makeViewWithIdentifier:@\"empty\" owner:self];\n      return view;\n    } else if (data.conflict) {\n      NSString* status = nil;\n      switch (data.conflict.status) {\n        case kGCIndexConflictStatus_None:\n          XLOG_DEBUG_UNREACHABLE();\n          break;\n        case kGCIndexConflictStatus_BothModified:\n          status = NSLocalizedString(@\"both modified\", nil);\n          break;\n        case kGCIndexConflictStatus_BothAdded:\n          status = NSLocalizedString(@\"both added\", nil);\n          break;\n        case kGCIndexConflictStatus_DeletedByUs:\n          status = NSLocalizedString(@\"deleted by us\", nil);\n          break;\n        case kGCIndexConflictStatus_DeletedByThem:\n          status = NSLocalizedString(@\"deleted by them\", nil);\n          break;\n      }\n      if (data.conflict.ancestorFileMode == kGCFileMode_Commit) {\n        //  Submodule conflict\n        GISubmoduleConflictDiffCellView* view = [_tableView makeViewWithIdentifier:@\"submodule_conflict\" owner:self];\n        view.statusTextField.stringValue = [NSString stringWithFormat:NSLocalizedString(@\"This submodule has conflicts (%@)\", nil), status];\n        view.oursTextField.stringValue = data.conflict.ourBlobSHA1;\n        view.theirsTextField.stringValue = data.conflict.theirBlobSHA1;\n        view.chooseOursButton.tag = (uintptr_t)data;\n        view.chooseTheirsButton.tag = (uintptr_t)data;\n        return view;\n      } else {\n        GIConflictDiffCellView* view = [_tableView makeViewWithIdentifier:@\"conflict\" owner:self];\n        view.statusTextField.stringValue = [NSString stringWithFormat:NSLocalizedString(@\"This file has conflicts (%@)\", nil), status];\n        view.openButton.tag = (uintptr_t)data;\n        view.mergeButton.tag = (uintptr_t)data;\n        view.resolveButton.tag = (uintptr_t)data;\n        return view;\n      }\n    } else if (GC_FILE_MODE_IS_SUBMODULE(delta.oldFile.mode) || GC_FILE_MODE_IS_SUBMODULE(delta.newFile.mode)) {\n      GISubmoduleDiffCellView* view = [_tableView makeViewWithIdentifier:@\"submodule\" owner:self];\n      NSString* oldSHA1 = delta.oldFile ? delta.oldFile.SHA1 : nil;\n      NSString* newSHA1 = delta.newFile ? delta.newFile.SHA1 : nil;\n      if ((oldSHA1 && newSHA1) && [newSHA1 isEqualToString:oldSHA1]) {\n        view.customTextField.stringValue = NSLocalizedString(@\"Submodule contents have been modified\", nil);\n        view.customTextField.hidden = NO;\n        view.contentView.hidden = YES;\n      } else {\n        view.oldSHA1TextField.stringValue = oldSHA1 ? oldSHA1 : NSLocalizedString(@\"(missing)\", nil);\n        view.newSHA1TextField.stringValue = newSHA1 ? newSHA1 : NSLocalizedString(@\"(missing)\", nil);\n        view.contentView.hidden = NO;\n        view.customTextField.hidden = YES;\n      }\n      return view;\n    } else {\n      GIBinaryDiffCellView* view = [_tableView makeViewWithIdentifier:@\"binary\" owner:self];\n      NSImage* image = [[NSWorkspace sharedWorkspace] iconForFileType:data.delta.canonicalPath.pathExtension];  // TODO: Can we use a lower-level API?\n      image.size = view.imageView.bounds.size;\n      view.imageView.image = image;  // Required or the image is always at 32x32\n      return view;\n    }\n  }\n\n  GIHeaderDiffCellView* view = [_tableView makeViewWithIdentifier:@\"header\" owner:self];\n  NSRange oldPathRange = {0, 0};\n  NSRange newPathRange = {0, 0};\n  NSString* label = data.delta.canonicalPath;\n  if (data.conflict) {\n    view.backgroundColor = NSColor.gitUpDiffConflictBackgroundColor;\n    view.imageView.image = _conflictImage;\n  } else {\n    switch (delta.change) {\n      case kGCFileDiffChange_Added:\n        view.backgroundColor = NSColor.gitUpDiffAddedBackgroundColor;\n        view.imageView.image = _addedImage;\n        break;\n\n      case kGCFileDiffChange_Deleted:\n        view.backgroundColor = NSColor.gitUpDiffDeletedBackgroundColor;\n        view.imageView.image = _deletedImage;\n        break;\n\n      case kGCFileDiffChange_Modified:\n        view.backgroundColor = NSColor.gitUpDiffModifiedBackgroundColor;\n        view.imageView.image = _modifiedImage;\n        break;\n\n      case kGCFileDiffChange_Renamed: {\n        NSString* oldPath = delta.oldFile.path;\n        NSString* newPath = delta.newFile.path;\n        view.backgroundColor = NSColor.gitUpDiffRenamedBackgroundColor;\n        view.imageView.image = _renamedImage;\n        label = [NSString stringWithFormat:@\"%@ ▶ %@\", oldPath, newPath];  // TODO: Handle truncation\n        GIComputeModifiedRanges(oldPath, &oldPathRange, newPath, &newPathRange);\n        newPathRange.location += oldPath.length + 3;\n        break;\n      }\n\n      case kGCFileDiffChange_Untracked:\n        if (_showsUntrackedAsAdded) {\n          view.backgroundColor = NSColor.gitUpDiffAddedBackgroundColor;\n          view.imageView.image = _addedImage;\n        } else {\n          view.backgroundColor = NSColor.gitUpDiffUntrackedBackgroundColor;\n          view.imageView.image = _untrackedImage;\n        }\n        break;\n\n      default:\n        view.imageView.image = nil;\n        XLOG_DEBUG_UNREACHABLE();\n        break;\n    }\n  }\n  if (!data.conflict && delta.oldFile && delta.newFile && (delta.oldFile.mode != delta.newFile.mode)) {\n    label = [label stringByAppendingFormat:@\" (%@ ▶ %@)\", _StringFromFileMode(delta.oldFile.mode), _StringFromFileMode(delta.newFile.mode)];\n  }\n  if (oldPathRange.length || newPathRange.length) {\n    NSDictionary* attributes = @{NSUnderlineStyleAttributeName : @(NSUnderlineStyleSingle)};\n    NSMutableAttributedString* string = [[NSMutableAttributedString alloc] initWithString:label attributes:nil];\n    [string beginEditing];\n    [string setAttributes:attributes range:oldPathRange];\n    [string setAttributes:attributes range:newPathRange];\n    [string endEditing];\n    view.titleField.attributedStringValue = string;\n  } else {\n    view.titleField.stringValue = label;\n  }\n  BOOL hasActionMenu = [_delegate respondsToSelector:@selector(diffContentsViewController:willShowContextualMenuForDelta:conflict:)];\n  view.menuButton.hidden = !hasActionMenu;\n  view.menuButton.tag = (uintptr_t)data;\n  BOOL hasActionButton = [_delegate respondsToSelector:@selector(diffContentsViewController:actionButtonLabelForDelta:conflict:)];\n  [view setActionButtonLabel:(hasActionButton ? [_delegate diffContentsViewController:self actionButtonLabelForDelta:delta conflict:data.conflict] : nil)];\n  view.actionButton.tag = (uintptr_t)data;\n  return view;\n}\n\n- (CGFloat)tableView:(NSTableView*)tableView heightOfRow:(NSInteger)row {\n  if (_headerView) {\n    if (row == 0) {\n      if ([_delegate respondsToSelector:@selector(diffContentsViewController:headerViewHeightForWidth:)]) {\n        return [_delegate diffContentsViewController:self headerViewHeightForWidth:[_tableView.tableColumns[0] width]];\n      }\n      return _headerView.frame.size.height;\n    }\n    row -= 1;\n  }\n  if (row % 2) {\n    GIDiffContentData* data = _data[row / 2];\n    GCDiffDelta* delta = data.delta;\n    if (data.diffView) {\n      return [data.diffView updateLayoutForWidth:[_tableView.tableColumns[0] width]];\n    } else if (data.imageDiffView) {\n      return [data.imageDiffView desiredHeightForWidth:[_tableView.tableColumns[0] width]];\n    } else if (data.empty) {\n      return _emptyViewHeight;\n    } else if (data.conflict && data.conflict.ancestorFileMode == kGCFileMode_Commit) {\n      return _submoduleConflictViewHeight;\n    } else if (data.conflict) {\n      return _conflictViewHeight;\n    } else if (GC_FILE_MODE_IS_SUBMODULE(delta.oldFile.mode) || GC_FILE_MODE_IS_SUBMODULE(delta.newFile.mode)) {\n      return _submoduleViewHeight;\n    } else {\n      return _binaryViewHeight;\n    }\n  }\n  return _headerViewHeight;\n}\n\n- (BOOL)selectionShouldChangeInTableView:(NSTableView*)tableView {\n  return NO;\n}\n\n#pragma mark - GIDiffViewDelegate\n\n// TODO: Avoid scanning all data\n- (void)diffViewDidChangeSelection:(GIDiffView*)view {\n  NSUInteger row = _headerView ? 1 : 0;\n  for (GIDiffContentData* data in _data) {\n    if (data.diffView == view) {\n      GIHeaderDiffCellView* headerView = [_tableView viewAtColumn:0 row:row makeIfNecessary:NO];\n      if (headerView) {\n        if (!headerView.actionButton.hidden) {\n          [headerView setActionButtonLabel:[_delegate diffContentsViewController:self actionButtonLabelForDelta:data.delta conflict:data.conflict]];\n        }\n      } else {\n        XLOG_DEBUG_UNREACHABLE();\n      }\n      break;\n    }\n    row += 2;\n  }\n  if ([_delegate respondsToSelector:@selector(diffContentsViewControllerDidChangeSelection:)]) {\n    [_delegate diffContentsViewControllerDidChangeSelection:self];\n  }\n}\n\n#pragma mark - Actions\n\n- (IBAction)showActionMenu:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  GIHeaderDiffCellView* headerView = (GIHeaderDiffCellView*)[(NSButton*)sender superview];\n  XLOG_DEBUG_CHECK([headerView isKindOfClass:[GIHeaderDiffCellView class]]);\n  NSMenu* menu = [_delegate diffContentsViewController:self willShowContextualMenuForDelta:data.delta conflict:data.conflict];\n  NSPoint point = headerView.menuButton.frame.origin;\n  [menu popUpMenuPositioningItem:nil atLocation:NSMakePoint(point.x + kContextualMenuOffsetX, point.y + kContextualMenuOffsetY) inView:headerView];\n}\n\n- (IBAction)performAction:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  [_delegate diffContentsViewController:self didClickActionButtonForDelta:data.delta conflict:data.conflict];\n}\n\n- (IBAction)openWithEditor:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  [self openFileWithDefaultEditor:data.delta.canonicalPath];\n}\n\n- (IBAction)resolveWithTool:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  [self resolveConflictInMergeTool:data.conflict];\n}\n\n- (IBAction)markAsResolved:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  [self markConflictAsResolved:data.conflict];\n}\n\n- (IBAction)chooseOurs:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  NSError* error;\n\n  [self.repository updateSubmoduleReferenceAtPath:data.conflict.path toCommitSHA1:data.conflict.ourBlobSHA1 error:&error];\n\n  if (!error) {\n    [self markConflictAsResolved:data.conflict];\n  } else {\n    [self presentError:error];\n  }\n\n  [self.repository notifyWorkingDirectoryChanged];\n}\n\n- (IBAction)chooseTheirs:(id)sender {\n  GIDiffContentData* data = (__bridge GIDiffContentData*)(void*)[(NSButton*)sender tag];\n  NSError* error;\n\n  [self.repository updateSubmoduleReferenceAtPath:data.conflict.path toCommitSHA1:data.conflict.theirBlobSHA1 error:&error];\n\n  if (!error) {\n    [self markConflictAsResolved:data.conflict];\n  } else {\n    [self presentError:error];\n  }\n\n  [self.repository notifyWorkingDirectoryChanged];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GIDiffFilesViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n#import \"GCDiff.h\"\n\n@class GIDiffFilesViewController;\n\n@protocol GIDiffFilesViewControllerDelegate <NSObject>\n@optional\n- (void)diffFilesViewControllerDidBecomeFirstResponder:(GIDiffFilesViewController*)controller;\n- (void)diffFilesViewControllerDidChangeSelection:(GIDiffFilesViewController*)controller;\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller didDoubleClickDeltas:(NSArray*)deltas;\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event;\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller willSelectDelta:(GCDiffDelta*)delta;\n- (BOOL)diffFilesViewControllerShouldAcceptDeltas:(GIDiffFilesViewController*)controller fromOtherController:(GIDiffFilesViewController*)otherController;\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller didReceiveDeltas:(NSArray*)deltas fromOtherController:(GIDiffFilesViewController*)otherController;\n@end\n\n@interface GIDiffFilesViewController : GIViewController\n@property(nonatomic, weak) id<GIDiffFilesViewControllerDelegate> delegate;\n@property(nonatomic) BOOL showsUntrackedAsAdded;  // Default is NO\n@property(nonatomic, copy) NSString* emptyLabel;\n@property(nonatomic) BOOL allowsMultipleSelection;  // Default is NO\n\n@property(nonatomic, readonly) NSArray* deltas;\n@property(nonatomic, readonly) NSDictionary* conflicts;\n- (void)setDeltas:(NSArray*)deltas usingConflicts:(NSDictionary*)conflicts;\n\n@property(nonatomic, weak) GCDiffDelta* selectedDelta;\n@property(nonatomic, weak) NSArray* selectedDeltas;\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GIDiffFilesViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIDiffFilesViewController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\nstatic const NSPasteboardType GIPasteboardTypeFileRowIndex = @\"co.gitup.mac.file-row-index\";\nstatic const NSPasteboardType GIPasteboardTypeFileURL = @\"public.file-url\";\n\n@interface GIFileCellView : GITableCellView\n@end\n\n@interface GIFilesTableView : GITableView\n@property(nonatomic, weak) GIDiffFilesViewController* controller;\n@end\n\n@interface GIDiffFilesViewController () <NSFilePromiseProviderDelegate>\n@property(nonatomic, weak) IBOutlet GIFilesTableView* tableView;\n@property(nonatomic, weak) IBOutlet NSTextField* emptyTextField;\n@property(nonatomic, readonly) NSArray* items;\n@end\n\n/// Allows augmenting a file promise with custom intra-app data.\n@interface GIDiffFileProvider : NSFilePromiseProvider\n@property(strong) id<NSPasteboardWriting> overridePasteboardWriter;\n@end\n\n@implementation GIFileCellView\n@end\n\n@implementation GIFilesTableView\n\n- (BOOL)becomeFirstResponder {\n  if (![super becomeFirstResponder]) {\n    return NO;\n  }\n  if ([_controller.delegate respondsToSelector:@selector(diffFilesViewControllerDidBecomeFirstResponder:)]) {\n    [_controller.delegate diffFilesViewControllerDidBecomeFirstResponder:_controller];\n  }\n  return YES;\n}\n\n- (void)keyDown:(NSEvent*)event {\n  if (![_controller.delegate respondsToSelector:@selector(diffFilesViewController:handleKeyDownEvent:)] || ![_controller.delegate diffFilesViewController:_controller handleKeyDownEvent:event]) {\n    [super keyDown:event];\n  }\n}\n\n@end\n\nstatic NSImage* _conflictImage = nil;\nstatic NSImage* _addedImage = nil;\nstatic NSImage* _modifiedImage = nil;\nstatic NSImage* _deletedImage = nil;\nstatic NSImage* _renamedImage = nil;\nstatic NSImage* _untrackedImage = nil;\n\n@implementation GIDiffFilesViewController\n\n+ (void)initialize {\n  _conflictImage = [[NSBundle bundleForClass:[GIDiffFilesViewController class]] imageForResource:@\"icon_file_conflict\"];\n  _addedImage = [[NSBundle bundleForClass:[GIDiffFilesViewController class]] imageForResource:@\"icon_file_a\"];\n  _modifiedImage = [[NSBundle bundleForClass:[GIDiffFilesViewController class]] imageForResource:@\"icon_file_m\"];\n  _deletedImage = [[NSBundle bundleForClass:[GIDiffFilesViewController class]] imageForResource:@\"icon_file_d\"];\n  _renamedImage = [[NSBundle bundleForClass:[GIDiffFilesViewController class]] imageForResource:@\"icon_file_r\"];\n  _untrackedImage = [[NSBundle bundleForClass:[GIDiffFilesViewController class]] imageForResource:@\"icon_file_u\"];\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _tableView.controller = self;\n  _tableView.target = self;\n  _tableView.doubleAction = @selector(doubleClick:);\n  [_tableView registerForDraggedTypes:@[ GIPasteboardTypeFileRowIndex ]];\n  [_tableView setDraggingSourceOperationMask:NSDragOperationMove forLocal:YES];\n  [_tableView setDraggingSourceOperationMask:NSDragOperationGeneric forLocal:NO];\n\n  _emptyTextField.stringValue = @\"\";\n\n  self.allowsMultipleSelection = NO;\n}\n\n- (NSArray*)items {\n  return self.deltas;\n}\n\n- (void)setDeltas:(NSArray*)deltas usingConflicts:(NSDictionary*)conflicts {\n  if ((deltas != _deltas) || (conflicts != _conflicts)) {\n    _conflicts = [conflicts copy];\n    // Sort deltas with conflicts first\n    if (deltas && conflicts.count) {\n      _deltas = [deltas sortedArrayUsingComparator:^NSComparisonResult(GCDiffDelta* delta1, GCDiffDelta* delta2) {\n        BOOL hasConflict1 = (conflicts[delta1.canonicalPath] != nil);\n        BOOL hasConflict2 = (conflicts[delta2.canonicalPath] != nil);\n        if (hasConflict1 && !hasConflict2) {\n          return NSOrderedAscending;\n        } else if (!hasConflict1 && hasConflict2) {\n          return NSOrderedDescending;\n        }\n        return NSOrderedSame;\n      }];\n    } else {\n      _deltas = [deltas copy];\n    }\n    [self _reloadDeltas];\n  }\n}\n\n- (void)_reloadDeltas {\n  [_tableView reloadData];\n\n  _emptyTextField.hidden = self.deltas.count ? YES : NO;\n}\n\n- (void)setAllowsMultipleSelection:(BOOL)flag {\n  _tableView.allowsEmptySelection = flag;\n  _tableView.allowsMultipleSelection = flag;\n}\n\n- (BOOL)allowsMultipleSelection {\n  return _tableView.allowsMultipleSelection;\n}\n\n- (NSString*)emptyLabel {\n  return _emptyTextField.stringValue;\n}\n\n- (void)setEmptyLabel:(NSString*)label {\n  _emptyTextField.stringValue = label;\n}\n\n- (GCDiffDelta*)selectedDelta {\n  NSInteger row = _tableView.selectedRow;\n  GCDiffDelta* delta = row >= 0 ? self.items[row] : nil;\n  return delta;\n}\n\n- (void)setSelectedDelta:(GCDiffDelta*)delta {\n  self.selectedDeltas = delta ? @[ delta ] : @[];\n}\n\n- (NSArray*)selectedDeltas {\n  return [self.items objectsAtIndexes:self.tableView.selectedRowIndexes];\n}\n\n- (void)setSelectedDeltas:(NSArray*)deltas {\n  NSIndexSet* indexes = [self.items indexesOfObjectsPassingTest:^(GCDiffDelta* delta, NSUInteger row, BOOL* stop) {\n    for (GCDiffDelta* deltaToSelect in deltas) {\n      if ((delta == deltaToSelect) || [delta.canonicalPath isEqualToString:deltaToSelect.canonicalPath]) {  // Don't use -isEqualToDelta:\n        return YES;\n      }\n    }\n\n    return NO;\n  }];\n\n  [_tableView selectRowIndexes:indexes byExtendingSelection:NO];\n  [_tableView scrollRowToVisible:indexes.firstIndex];\n}\n\n#pragma mark - Actions\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  if (item.action == @selector(copy:)) {\n    return (_tableView.selectedRow >= 0);\n  }\n\n  return NO;\n}\n\n- (IBAction)copy:(id)sender {\n  NSMutableArray* objects = [NSMutableArray array];\n  [_tableView.selectedRowIndexes enumerateIndexesUsingBlock:^(NSUInteger index, BOOL* stop) {\n    id<NSPasteboardWriting> pasteboardWriter = [self tableView:_tableView pasteboardWriterForRow:index];\n    if (!pasteboardWriter) {\n      return;\n    }\n    [objects addObject:pasteboardWriter];\n  }];\n  [[NSPasteboard generalPasteboard] clearContents];\n  [[NSPasteboard generalPasteboard] writeObjects:objects];\n}\n\n- (IBAction)doubleClick:(id)sender {\n  if ([_delegate respondsToSelector:@selector(diffFilesViewController:didDoubleClickDeltas:)]) {\n    [_delegate diffFilesViewController:self didDoubleClickDeltas:self.selectedDeltas];\n  }\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return self.items.count;\n}\n\n- (id<NSPasteboardWriting>)tableView:(NSTableView*)tableView pasteboardWriterForRow:(NSInteger)row {\n  GCDiffDelta* delta = self.items[row];\n\n  NSPasteboardItem* pasteboardItem = [[NSPasteboardItem alloc] init];\n  [pasteboardItem setPropertyList:@(row) forType:GIPasteboardTypeFileRowIndex];\n  [pasteboardItem setString:delta.canonicalPath forType:NSPasteboardTypeString];\n\n  NSString* path = [delta.diff.repository absolutePathForFile:delta.canonicalPath];\n  NSURL* url = [NSURL fileURLWithPath:path isDirectory:NO];\n  [pasteboardItem setString:url.absoluteString forType:GIPasteboardTypeFileURL];\n\n  if (GC_FILE_MODE_IS_FILE(delta.oldFile.mode) || GC_FILE_MODE_IS_FILE(delta.newFile.mode)) {\n    NSString* pathExtension = delta.canonicalPath.pathExtension;\n    NSString* utType = (__bridge_transfer NSString*)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)pathExtension, kUTTypeData);\n\n    if (utType) {\n      GIDiffFileProvider* provider = [[GIDiffFileProvider alloc] initWithFileType:utType delegate:self];\n      provider.userInfo = delta;\n      provider.overridePasteboardWriter = pasteboardItem;\n      return provider;\n    }\n  }\n\n  return pasteboardItem;\n}\n\n- (NSDragOperation)tableView:(NSTableView*)tableView validateDrop:(id<NSDraggingInfo>)info proposedRow:(NSInteger)row proposedDropOperation:(NSTableViewDropOperation)dropOperation {\n  // Don't allow dropping directly on to rows.\n  if (dropOperation != NSTableViewDropAbove) {\n    return NSDragOperationNone;\n  }\n\n  // The drag must include the private pasteboard type.\n  NSPasteboard* pasteboard = info.draggingPasteboard;\n  if (![pasteboard canReadItemWithDataConformingToTypes:@[ GIPasteboardTypeFileRowIndex ]]) {\n    return NSDragOperationNone;\n  }\n\n  // Source must be another compatible files list.\n  GIFilesTableView* source = info.draggingSource;\n  if (source == tableView || ![self.delegate respondsToSelector:@selector(diffFilesViewControllerShouldAcceptDeltas:fromOtherController:)] || ![self.delegate respondsToSelector:@selector(diffFilesViewController:didReceiveDeltas:fromOtherController:)] || ![self.delegate diffFilesViewControllerShouldAcceptDeltas:self fromOtherController:source.controller]) {\n    return NSDragOperationNone;\n  }\n\n  // Having passed all those checks, approve the drop.\n  [tableView setDropRow:-1 dropOperation:NSTableViewDropAbove];\n  return NSDragOperationMove;\n}\n\n- (BOOL)tableView:(NSTableView*)tableView acceptDrop:(id<NSDraggingInfo>)info row:(NSInteger)row dropOperation:(NSTableViewDropOperation)dropOperation {\n  NSArray* pasteboardItems = [info.draggingPasteboard readObjectsForClasses:@[ NSPasteboardItem.self ] options:nil];\n  NSMutableIndexSet* indexes = [[NSMutableIndexSet alloc] init];\n  for (NSPasteboardItem* pasteboardItem in pasteboardItems) {\n    NSNumber* sourceRowNumber = [pasteboardItem propertyListForType:GIPasteboardTypeFileRowIndex];\n    if (!sourceRowNumber) continue;\n    [indexes addIndex:sourceRowNumber.unsignedIntegerValue];\n  }\n  GIFilesTableView* source = info.draggingSource;\n  NSArray* deltas = [source.controller.items objectsAtIndexes:indexes];\n  return [self.delegate diffFilesViewController:self didReceiveDeltas:deltas fromOtherController:source.controller];\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  GCDiffDelta* delta = self.items[row];\n  GCIndexConflict* conflict = self.conflicts[delta.canonicalPath];\n  GIFileCellView* view = [_tableView makeViewWithIdentifier:tableColumn.identifier owner:self];\n  view.textField.stringValue = delta.canonicalPath;\n  if (conflict) {\n    view.imageView.image = _conflictImage;\n  } else {\n    switch (delta.change) {\n      case kGCFileDiffChange_Added:\n        view.imageView.image = _addedImage;\n        break;\n\n      case kGCFileDiffChange_Deleted:\n        view.imageView.image = _deletedImage;\n        break;\n\n      case kGCFileDiffChange_Modified:\n        view.imageView.image = _modifiedImage;\n        break;\n\n      case kGCFileDiffChange_Renamed:\n        view.imageView.image = _renamedImage;\n        break;\n\n      case kGCFileDiffChange_Untracked:\n        if (_showsUntrackedAsAdded) {\n          view.imageView.image = _addedImage;\n        } else {\n          view.imageView.image = _untrackedImage;\n        }\n        break;\n\n      default:\n        view.imageView.image = nil;\n        XLOG_DEBUG_UNREACHABLE();\n        break;\n    }\n  }\n  return view;\n}\n\n- (BOOL)tableView:(NSTableView*)tableView shouldSelectRow:(NSInteger)row {\n  GCDiffDelta* delta = row >= 0 ? self.items[row] : nil;\n  if ([_delegate respondsToSelector:@selector(diffFilesViewController:willSelectDelta:)]) {\n    [_delegate diffFilesViewController:self willSelectDelta:delta];\n  }\n  return YES;\n}\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  if ([_delegate respondsToSelector:@selector(diffFilesViewControllerDidChangeSelection:)]) {\n    [_delegate diffFilesViewControllerDidChangeSelection:self];\n  }\n}\n\n#pragma mark - NSFilePromiseProviderDelegate\n\n- (NSString*)_SHA1ForDelta:(GCDiffDelta*)delta {\n  switch (delta.change) {\n    case kGCFileDiffChange_Deleted:\n    case kGCFileDiffChange_Unmodified:\n    case kGCFileDiffChange_Ignored:\n    case kGCFileDiffChange_Untracked:\n    case kGCFileDiffChange_Unreadable:\n      return delta.oldFile.SHA1;\n    case kGCFileDiffChange_Added:\n    case kGCFileDiffChange_Modified:\n    case kGCFileDiffChange_Renamed:\n    case kGCFileDiffChange_Copied:\n    case kGCFileDiffChange_TypeChanged:\n    case kGCFileDiffChange_Conflicted:\n      return delta.newFile.SHA1;\n  }\n}\n\n- (NSString*)filePromiseProvider:(NSFilePromiseProvider*)filePromiseProvider fileNameForType:(NSString*)fileType {\n  GCDiffDelta* delta = filePromiseProvider.userInfo;\n  NSString* SHA1 = [[self _SHA1ForDelta:delta] substringToIndex:7];\n  NSString* basename = delta.canonicalPath.stringByDeletingPathExtension.lastPathComponent;\n  NSString* pathExtension = delta.canonicalPath.pathExtension;\n  NSString* filename = [[NSString stringWithFormat:@\"%@ (%@)\", basename, SHA1] stringByAppendingPathExtension:pathExtension];\n  return filename;\n}\n\n- (void)filePromiseProvider:(NSFilePromiseProvider*)filePromiseProvider writePromiseToURL:(NSURL*)url completionHandler:(void (^)(NSError* errorOrNil))completionHandler {\n  GCDiffDelta* delta = filePromiseProvider.userInfo;\n  NSString* SHA1 = [self _SHA1ForDelta:delta];\n  NSError* error;\n  BOOL success = [delta.diff.repository exportBlobWithSHA1:SHA1 toPath:url.path error:&error];\n  completionHandler(success ? nil : error);\n}\n\n@end\n\n@implementation GIDiffFileProvider\n\n- (NSArray<NSPasteboardType>*)writableTypesForPasteboard:(NSPasteboard*)pasteboard {\n  return [[self.overridePasteboardWriter writableTypesForPasteboard:pasteboard] arrayByAddingObjectsFromArray:[super writableTypesForPasteboard:pasteboard]];\n}\n\n- (NSPasteboardWritingOptions)writingOptionsForType:(NSPasteboardType)type pasteboard:(NSPasteboard*)pasteboard {\n  return [self.overridePasteboardWriter writingOptionsForType:type pasteboard:pasteboard] ?: [super writingOptionsForType:type pasteboard:pasteboard];\n}\n\n- (id)pasteboardPropertyListForType:(NSPasteboardType)type {\n  return [self.overridePasteboardWriter pasteboardPropertyListForType:type] ?: [super pasteboardPropertyListForType:type];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GISnapshotListViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@class GISnapshotListViewController, GCSnapshot;\n\n@protocol GISnapshotListViewControllerDelegate <NSObject>\n@optional\n- (void)snapshotListViewControllerDidChangeSelection:(GISnapshotListViewController*)controller;\n- (void)snapshotListViewController:(GISnapshotListViewController*)controller didRestoreSnapshot:(GCSnapshot*)snapshot;\n@end\n\n@interface GISnapshotListViewController : GIViewController\n@property(nonatomic, weak) id<GISnapshotListViewControllerDelegate> delegate;\n@property(nonatomic, readonly) GCSnapshot* selectedSnapshot;\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GISnapshotListViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GISnapshotListViewController.h\"\n#import \"GIWindowController.h\"\n\n#import \"GIInterface.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GISnapshotListViewController () <NSTableViewDataSource>\n@property(nonatomic, weak) IBOutlet GITableView* tableView;\n@end\n\n@interface GISnapshotCellView : GITableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* dateTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* branchTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* reasonTextField;\n@property(nonatomic, weak) IBOutlet NSButton* restoreButton;\n@end\n\n@implementation GISnapshotCellView\n\n- (void)awakeFromNib {\n  [super awakeFromNib];\n\n  _restoreButton.hidden = YES;\n}\n\n@end\n\n@implementation GISnapshotListViewController {\n  NSArray* _snapshots;\n  NSDateFormatter* _dateFormatter;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n    if ([_dateFormatter.locale.localeIdentifier hasPrefix:@\"en_\"]) {\n      _dateFormatter.doesRelativeDateFormatting = YES;\n    }\n  }\n  return self;\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  [self _reloadSnapshots];\n}\n\n- (void)repositorySnapshotsDidUpdate {\n  if (self.viewVisible) {\n    [self _reloadSnapshots];\n  }\n}\n\n- (void)_reloadSnapshots {\n  _snapshots = self.repository.snapshots;\n  [_tableView reloadData];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _snapshots = nil;\n  [_tableView reloadData];\n}\n\n- (GCSnapshot*)selectedSnapshot {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    return _snapshots[row];\n  }\n  return nil;\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return _snapshots.count;\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  GISnapshotCellView* view = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];\n  view.row = row;\n  GCSnapshot* snapshot = _snapshots[row];\n  view.dateTextField.stringValue = [_dateFormatter stringFromDate:snapshot.date];\n  if (snapshot.empty) {\n    view.branchTextField.stringValue = NSLocalizedString(@\"Empty Repository\", nil);\n  } else {\n    NSString* name = snapshot.HEADBranchName;\n    view.branchTextField.stringValue = name ? [NSString stringWithFormat:NSLocalizedString(@\"On '%@'\", nil), name] : NSLocalizedString(@\"HEAD Detached\", nil);\n  }\n  view.reasonTextField.stringValue = [NSString stringWithFormat:NSLocalizedStringFromTable(snapshot.reason, @\"Reasons\", nil), snapshot.argument];\n  view.restoreButton.hidden = ![_tableView isRowSelected:row];\n  return view;\n}\n\n// Required to ensure the restore button remains only visible on the selected row even when selection is dynamically changing\n- (BOOL)tableView:(NSTableView*)tableView shouldSelectRow:(NSInteger)row {\n  GISnapshotCellView* view = [_tableView viewAtColumn:0 row:row makeIfNecessary:NO];\n  view.restoreButton.hidden = NO;\n  row = _tableView.selectedRow;\n  if (row >= 0) {\n    view = [_tableView viewAtColumn:0 row:row makeIfNecessary:NO];\n    view.restoreButton.hidden = YES;\n  }\n  return YES;\n}\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  if ([_delegate respondsToSelector:@selector(snapshotListViewControllerDidChangeSelection:)]) {\n    [_delegate snapshotListViewControllerDidChangeSelection:self];\n  }\n}\n\n#pragma mark - Actions\n\n- (IBAction)restoreSnapshot:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row < 0) {\n    return;\n  }\n  GCSnapshot* snapshot = _snapshots[row];\n  BOOL success = NO;\n  NSError* error;\n  __block BOOL didUpdate = NO;\n  if ([self.repository checkClean:0 error:&error]) {\n    [self.repository setUndoActionName:NSLocalizedString(@\"Restore Snapshot\", nil)];\n    success = [self.repository performOperationWithReason:@\"restore_snapshot\"\n                                                 argument:snapshot.date\n                                       skipCheckoutOnUndo:NO\n                                                    error:&error\n                                               usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                                 BOOL didUpdateReferences;\n                                                 if (![repository restoreSnapshot:snapshot\n                                                                      withOptions:(kGCSnapshotOption_IncludeHEAD | kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)\n                                                                    reflogMessage:kGCReflogMessageFormat_GitUp_RestoreSnapshot\n                                                              didUpdateReferences:&didUpdateReferences\n                                                                            error:outError]) {\n                                                   return NO;\n                                                 }\n                                                 if (didUpdateReferences) {\n                                                   if (!repository.HEADUnborn && ![repository forceCheckoutHEAD:YES error:outError]) {\n                                                     return NO;\n                                                   }\n                                                   didUpdate = YES;\n                                                 }\n                                                 return YES;\n                                               }];\n  }\n  if (success) {\n    if (didUpdate) {\n      if ([_delegate respondsToSelector:@selector(snapshotListViewController:didRestoreSnapshot:)]) {\n        [_delegate snapshotListViewController:self didRestoreSnapshot:snapshot];\n      }\n    } else {\n      [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:NSLocalizedString(@\"Repository present state is already the same as the snapshot!\", nil)];\n    }\n  } else {\n    [self presentError:error];\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GIUnifiedReflogViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@class GIUnifiedReflogViewController, GCReflogEntry, GCCommit;\n\n@protocol GIUnifiedReflogViewControllerDelegate <NSObject>\n@optional\n- (void)unifiedReflogViewControllerDidChangeSelection:(GIUnifiedReflogViewController*)controller;\n- (void)unifiedReflogViewController:(GIUnifiedReflogViewController*)controller didRestoreReflogEntry:(GCReflogEntry*)entry;\n@end\n\n@interface GIUnifiedReflogViewController : GIViewController\n@property(nonatomic, weak) id<GIUnifiedReflogViewControllerDelegate> delegate;\n@property(nonatomic, readonly) GCReflogEntry* selectedReflogEntry;\n@end\n"
  },
  {
    "path": "GitUpKit/Components/GIUnifiedReflogViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIUnifiedReflogViewController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIUnifiedReflogViewController () <NSTableViewDataSource>\n@property(nonatomic, weak) IBOutlet GITableView* tableView;\n\n@property(nonatomic, strong) IBOutlet NSView* restoreView;\n@property(nonatomic, weak) IBOutlet NSTextField* nameTextField;\n@end\n\n@interface GIReflogCellView : GITableCellView\n@property(nonatomic) NSInteger mode;\n@property(nonatomic, weak) IBOutlet NSTextField* dateTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* actionTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* messageTextField;\n@property(nonatomic, weak) IBOutlet NSButton* restoreButton;\n@end\n\n@implementation GIReflogCellView\n@end\n\n@implementation GIUnifiedReflogViewController {\n  NSArray* _entries;\n  NSDateFormatter* _dateFormatter;\n  GIReflogCellView* _cachedCellView;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n    if ([_dateFormatter.locale.localeIdentifier hasPrefix:@\"en_\"]) {\n      _dateFormatter.doesRelativeDateFormatting = YES;\n    }\n  }\n  return self;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _cachedCellView = [_tableView makeViewWithIdentifier:[_tableView.tableColumns[0] identifier] owner:self];\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  [self _reloadUnifiedReflog];\n}\n\n- (void)repositoryDidChange {\n  if (self.viewVisible) {\n    [self _reloadUnifiedReflog];\n  }\n}\n\n// Since GCReflogEntry objects are all new on reload, attempt to preserve selected one as NSTableView can't do it\n- (void)_reloadUnifiedReflog {\n  NSError* error;\n  NSArray* entries = [self.repository loadAllReflogEntries:&error];\n  if (entries) {\n    if (![_entries isEqualToArray:entries]) {\n      NSInteger row = _tableView.selectedRow;\n      GCReflogEntry* selectedEntry = (row >= 0 ? _entries[row] : nil);\n      _entries = entries;\n      [_tableView reloadData];\n      if (selectedEntry) {\n        NSUInteger index = [_entries indexOfObject:selectedEntry];\n        if (index != NSNotFound) {\n          [_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:index] byExtendingSelection:NO];\n        }\n      }\n    }\n    XLOG_VERBOSE(@\"Reloaded unified reflog for \\\"%@\\\"\", self.repository.repositoryPath);\n  } else {\n    [self presentError:error];\n    _entries = nil;\n    [_tableView reloadData];\n  }\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _entries = nil;\n  [_tableView reloadData];\n}\n\n- (GCReflogEntry*)selectedReflogEntry {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    return _entries[row];\n  }\n  return nil;\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return _entries.count;\n}\n\n#pragma mark - NSTableViewDelegate\n\nstatic NSAttributedString* _AttributedStringFromReflogEntry(GCReflogEntry* entry, CGFloat fontSize) {\n  NSMutableParagraphStyle* style = [[NSMutableParagraphStyle alloc] init];\n  style.paragraphSpacing = 4.0;\n  NSMutableAttributedString* string = [[NSMutableAttributedString alloc] init];\n  [string beginEditing];\n  for (NSUInteger i = 0, count = entry.messages.count; i < count; ++i) {\n    NSString* message = entry.messages[i];\n    if ([message hasPrefix:@kGCReflogCustomPrefix]) {\n      message = [message substringFromIndex:(sizeof(kGCReflogCustomPrefix) - 1)];\n    }\n    GCReference* reference = entry.references[i];\n    [string appendString:reference.name withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n    [string appendString:@\" • \" withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n    [string appendString:message withAttributes:nil];\n    if (i < count - 1) {\n      [string appendString:@\"\\n\" withAttributes:nil];\n    }\n  }\n  [string addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, string.length)];\n  [string endEditing];\n  return string;\n}\n\nstatic NSString* _StringFromActions(GCReflogActions actions) {\n  if (actions & kGCReflogAction_GitUp) {\n    return NSLocalizedString(@\"Made by GitUp\", nil);\n  }\n  if (actions & kGCReflogAction_Checkout) {\n    return NSLocalizedString(@\"Checkout\", nil);\n  }\n  if (actions & (kGCReflogAction_InitialCommit | kGCReflogAction_Commit)) {\n    return NSLocalizedString(@\"New Commit\", nil);\n  }\n  if (actions & kGCReflogAction_AmendCommit) {\n    return NSLocalizedString(@\"Amend Commit\", nil);\n  }\n  if (actions & kGCReflogAction_CherryPick) {\n    return NSLocalizedString(@\"Cherry-Pick Commit\", nil);\n  }\n  if (actions & kGCReflogAction_Revert) {\n    return NSLocalizedString(@\"Revert Commit\", nil);\n  }\n  if (actions & kGCReflogAction_CreateBranch) {\n    return NSLocalizedString(@\"New Branch\", nil);\n  }\n  if (actions & kGCReflogAction_Merge) {\n    return NSLocalizedString(@\"Merge\", nil);\n  }\n  if (actions & kGCReflogAction_Rebase) {\n    return NSLocalizedString(@\"Rebase\", nil);\n  }\n  if (actions & kGCReflogAction_Fetch) {\n    return NSLocalizedString(@\"Fetch\", nil);\n  }\n  if (actions & kGCReflogAction_Push) {\n    return NSLocalizedString(@\"Push\", nil);\n  }\n  if (actions & kGCReflogAction_Pull) {\n    return NSLocalizedString(@\"Pull\", nil);\n  }\n  if (actions & kGCReflogAction_Reset) {\n    return NSLocalizedString(@\"Reset\", nil);\n  }\n  return NSLocalizedString(@\"Other Git Operation\", nil);  // kGCReflogAction_RenameBranch kGCReflogAction_Clone\n}\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  GIReflogCellView* view = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];\n  view.row = row;\n  GCReflogEntry* entry = _entries[row];\n  GCCommit* commit = entry.toCommit;\n  NSColor* color;\n  if (commit) {\n    if ([self.repository.history historyCommitForCommit:entry.toCommit]) {\n      view.mode = 1;\n      color = NSColor.secondaryLabelColor;\n    } else {\n      view.mode = 0;\n      color = NSColor.labelColor;\n    }\n  } else {\n    view.mode = -1;\n    color = NSColor.systemRedColor;\n  }\n  view.dateTextField.stringValue = [_dateFormatter stringFromDate:entry.date];\n  view.dateTextField.textColor = color;\n  view.actionTextField.stringValue = _StringFromActions(entry.actions);\n  view.actionTextField.textColor = color;\n  view.messageTextField.attributedStringValue = _AttributedStringFromReflogEntry(entry, view.messageTextField.font.pointSize);\n  view.messageTextField.textColor = color;\n  view.restoreButton.hidden = ![_tableView isRowSelected:row] || (view.mode > 0);\n  view.restoreButton.enabled = (view.mode == 0);\n  return view;\n}\n\n- (CGFloat)tableView:(NSTableView*)tableView heightOfRow:(NSInteger)row {\n  GCReflogEntry* entry = _entries[row];\n  _cachedCellView.frame = NSMakeRect(0, 0, [_tableView.tableColumns[0] width], 1000);\n  NSTextField* textField = _cachedCellView.messageTextField;\n  NSRect frame = textField.frame;\n  textField.attributedStringValue = _AttributedStringFromReflogEntry(entry, textField.font.pointSize);\n  NSSize size = [textField.cell cellSizeForBounds:NSMakeRect(0, 0, frame.size.width, HUGE_VALF)];\n  CGFloat delta = ceilf(size.height) - frame.size.height;\n  return _cachedCellView.frame.size.height + delta;\n}\n\n// Required to ensure the restore button remains only visible on the selected row even when selection is dynamically changing\n- (BOOL)tableView:(NSTableView*)tableView shouldSelectRow:(NSInteger)row {\n  GIReflogCellView* view = [_tableView viewAtColumn:0 row:row makeIfNecessary:NO];\n  view.restoreButton.hidden = (view.mode > 0);\n  view.restoreButton.enabled = (view.mode == 0);\n  row = _tableView.selectedRow;\n  if (row >= 0) {\n    view = [_tableView viewAtColumn:0 row:row makeIfNecessary:NO];\n    view.restoreButton.hidden = YES;\n  }\n  return YES;\n}\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  if ([_delegate respondsToSelector:@selector(unifiedReflogViewControllerDidChangeSelection:)]) {\n    [_delegate unifiedReflogViewControllerDidChangeSelection:self];\n  }\n}\n\n#pragma mark - Actions\n\n- (IBAction)restoreEntry:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row < 0) {\n    NSBeep();\n    return;\n  }\n  GCReflogEntry* entry = _entries[row];\n  if (!entry.toCommit) {\n    NSBeep();\n    return;\n  }\n  _nameTextField.stringValue = @\"\";\n  NSAlert* alert = [[NSAlert alloc] init];\n  alert.type = kGIAlertType_Note;\n  alert.messageText = NSLocalizedString(@\"Create New Branch for Reflog Entry\", nil);\n  alert.informativeText = NSLocalizedString(@\"This will create and checkout a new local branch at the commit of the selected reflog entry, making it reachable again.\", nil);\n  alert.accessoryView = _restoreView;\n  [alert addButtonWithTitle:NSLocalizedString(@\"Create Branch\", nil)];\n  [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n  [self presentAlert:alert\n      completionHandler:^(NSInteger returnCode) {\n        if (returnCode == NSAlertFirstButtonReturn) {\n          NSString* name = [_nameTextField.stringValue stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n          if (name.length) {\n            BOOL success = NO;\n            NSError* error;\n            if ([self.repository checkClean:0 error:&error]) {\n              [self.repository setUndoActionName:NSLocalizedString(@\"Restore Reflog Entry\", nil)];\n              success = [self.repository performOperationWithReason:@\"restore_reflog_entry\"\n                                                           argument:entry.toCommit.SHA1\n                                                 skipCheckoutOnUndo:NO\n                                                              error:&error\n                                                         usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                                           GCLocalBranch* branch = [repository createLocalBranchFromCommit:entry.toCommit withName:name force:NO error:outError];\n                                                           if (branch == nil) {\n                                                             return NO;\n                                                           }\n                                                           if (![repository checkoutLocalBranch:branch options:kGCCheckoutOption_UpdateSubmodulesRecursively error:outError]) {\n                                                             [repository deleteLocalBranch:branch error:NULL];  // Ignore errors\n                                                             return NO;\n                                                           }\n                                                           return YES;\n                                                         }];\n            }\n            if (success) {\n              if ([_delegate respondsToSelector:@selector(unifiedReflogViewController:didRestoreReflogEntry:)]) {\n                [_delegate unifiedReflogViewController:self didRestoreReflogEntry:entry];\n              }\n            } else {\n              [self presentError:error];\n            }\n          } else {\n            NSBeep();\n          }\n        }\n      }];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Components/en.lproj/Reasons.strings",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n\"initial\"                       = \"Initial Snapshot\";\n\"clone\"                         = \"Clone\";\n\"open\"                          = \"Changed Outside GitUp\";\n\"automatic\"                     = \"Changed Outside GitUp\";\n\"commit\"                        = \"Created Commit\";\n\"amend\"                         = \"Amended Commit\";\n\"checkout_commit\"               = \"Checked Out Commit\";\n\"checkout_branch\"               = \"Checked Out '%@'\";\n\"create_tag\"                    = \"Created Tag '%@'\";\n\"edit_commit_message\"           = \"Edited Commit Message\";\n\"rewrite_commit\"                = \"Rewrote Commit\";\n\"split_commit\"                  = \"Split Commit\";\n\"revert_commit\"                 = \"Reverted Commit\";\n\"delete_commit\"                 = \"Deleted Commit\";\n\"fixup_commit\"                  = \"Fixed Up Commit\";\n\"squash_commit\"                 = \"Squashed Commit\";\n\"swap_commits\"                  = \"Swapped Commits\";\n\"cherry_pick_commit\"            = \"Cherry-Picked Commit\";\n\"fast_forward_merge_branch\"     = \"Fast-Forward Merged '%@'\";\n\"fast_forward_merge_commit\"     = \"Fast-Forward Merged Commit\";\n\"merge_branch\"                  = \"Merged '%@'\";\n\"merge_commit\"                  = \"Merged Commit\";\n\"rebase_branch\"                 = \"Rebased '%@' Branch\";\n\"set_branch_tip\"                = \"Set '%@' Branch Tip\";\n\"move_branch_tip\"               = \"Move '%@' Branch Tip\";\n\"create_branch\"                 = \"Created Branch '%@'\";\n\"delete_tag\"                    = \"Deleted Tag '%@'\";\n\"checkout_remote_branch\"        = \"Checked Out '%@'\";\n\"set_branch_upstream\"           = \"Set '%@' Upstream\";\n\"unset_branch_upstream\"         = \"Unset '%@' Upstream\";\n\"rename_branch\"                 = \"Renamed Branch '%@'\";\n\"delete_branch\"                 = \"Deleted Branch '%@'\";\n\"restore_snapshot\"              = \"Restored Snapshot\";\n\"restore_reflog_entry\"          = \"Restored Reflog Entry\";\n\"fetch_remote_tags\"             = \"Fetch Remote Tags\";\n\"rename_tag\"                    = \"Renamed Tag '%@'\";\n"
  },
  {
    "path": "GitUpKit/Core/GCBranch-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCMultipleCommitsRepositoryTests (GCBranch)\n\n- (void)testBranches {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Test branch names\n  XCTAssertFalse([GCRepository isValidBranchName:@\"my^branch\"]);\n  XCTAssertTrue([GCRepository isValidBranchName:@\"my_branch\"]);\n\n  // Create bare local repo with empty commit\n  GCRepository* bare = [self createLocalRepositoryAtPath:path bare:YES];\n  XCTAssertNotNil(bare);\n  GCCommit* emptyCommit = [bare createCommitFromHEADWithMessage:@\"Empty\" error:NULL];\n  XCTAssertNotNil(emptyCommit);\n\n  // Add remote from bare and fetch\n  GCRemote* remote = [self.repository addRemoteWithName:@\"origin\" url:[NSURL fileURLWithPath:path] error:NULL];\n  XCTAssertNotNil(remote);\n  NSUInteger updatedTips;\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:NO updatedTips:&updatedTips error:NULL]);\n  XCTAssertEqual(updatedTips, 1);\n\n  // Find branches\n  GCLocalBranch* localMaster = [self.repository findLocalBranchWithName:@\"master\" error:NULL];\n  XCTAssertEqualObjects(localMaster, self.masterBranch);\n  GCRemoteBranch* remoteMaster = [self.repository findRemoteBranchWithName:@\"origin/master\" error:NULL];\n  XCTAssertNotNil(remoteMaster);\n\n  // List branches\n  NSArray* branches1 = @[ self.masterBranch, self.topicBranch ];\n  XCTAssertEqualObjects([self.repository listLocalBranches:NULL], branches1);\n  XCTAssertEqualObjects([self.repository listRemoteBranches:NULL], @[ remoteMaster ]);\n  NSArray* branches2 = @[ self.masterBranch, self.topicBranch, remoteMaster ];\n  XCTAssertEqualObjects([self.repository listAllBranches:NULL], branches2);\n\n  // Configure upstream\n  XCTAssertTrue([self.repository setUpstream:remoteMaster forLocalBranch:localMaster error:NULL]);\n  XCTAssertEqualObjects([self.repository lookupUpstreamForLocalBranch:localMaster error:NULL], remoteMaster);\n  XCTAssertTrue([self.repository unsetUpstreamForLocalBranch:localMaster error:NULL]);\n  XCTAssertNil([self.repository lookupUpstreamForLocalBranch:localMaster error:NULL]);\n\n  // Check branch tip\n  GCCommit* tipCommit = [self.repository lookupTipCommitForBranch:self.masterBranch error:NULL];\n  XCTAssertEqualObjects(tipCommit, self.commit3);\n\n  // Set branch tip\n  XCTAssertTrue([self.repository setTipCommit:self.commit2 forBranch:self.topicBranch reflogMessage:nil error:NULL]);\n  XCTAssertEqualObjects([self.repository lookupTipCommitForBranch:self.topicBranch error:NULL], self.commit2);\n\n  // Create temp branch\n  GCLocalBranch* tempBranch = [self.repository createLocalBranchFromCommit:self.commit1 withName:@\"temp\" force:NO error:NULL];\n  XCTAssertNotNil(tempBranch);\n  XCTAssertTrue([self.repository setName:@\"test\" forLocalBranch:tempBranch force:NO error:NULL]);\n  XCTAssertEqualObjects([self.repository findLocalBranchWithName:@\"test\" error:NULL], tempBranch);\n  XCTAssertTrue([self.repository deleteLocalBranch:tempBranch error:NULL]);\n\n  // Destroy bare local repo\n  [self destroyLocalRepository:bare];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCBranch.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCReference.h\"\n#import \"GCRepository.h\"\n\n@class GCCommit;\n\n@interface GCBranch : GCReference\n@end\n\n@interface GCLocalBranch : GCBranch\n@end\n\n@interface GCRemoteBranch : GCBranch\n@end\n\n@interface GCBranch (Extensions)\n- (BOOL)isEqualToBranch:(GCBranch*)branch;\n@end\n\n@interface GCRemoteBranch (Extensions)\n@property(nonatomic, readonly) NSString* remoteName;  // \"origin\" in \"origin/master\"\n@property(nonatomic, readonly) NSString* branchName;  // \"master\" in \"origin/master\"\n@end\n\n@interface GCRepository (GCBranch)\n+ (BOOL)isValidBranchName:(NSString*)name;\n\n- (GCLocalBranch*)findLocalBranchWithName:(NSString*)name error:(NSError**)error;\n- (GCRemoteBranch*)findRemoteBranchWithName:(NSString*)name error:(NSError**)error;\n- (NSArray*)listLocalBranches:(NSError**)error;  // git branch\n- (NSArray*)listRemoteBranches:(NSError**)error;  // git branch -r\n- (NSArray*)listAllBranches:(NSError**)error;  // git branch -a\n\n- (GCCommit*)lookupTipCommitForBranch:(GCBranch*)branch error:(NSError**)error;  // git show-ref {branch}\n\n- (GCLocalBranch*)createLocalBranchFromCommit:(GCCommit*)commit withName:(NSString*)name force:(BOOL)force error:(NSError**)error;  // git branch {name} {commit}\n- (BOOL)setTipCommit:(GCCommit*)commit forBranch:(GCBranch*)branch reflogMessage:(NSString*)message error:(NSError**)error;  // git update-ref {branch} {commit}\n- (BOOL)setName:(NSString*)name forLocalBranch:(GCLocalBranch*)branch force:(BOOL)force error:(NSError**)error;  // git branch -m {branch} {new_name}\n- (BOOL)deleteLocalBranch:(GCLocalBranch*)branch error:(NSError**)error;  // git branch -D {branch}\n\n- (GCBranch*)lookupUpstreamForLocalBranch:(GCLocalBranch*)branch error:(NSError**)error;\n- (BOOL)setUpstream:(GCBranch*)upstreamBranch forLocalBranch:(GCLocalBranch*)branchBranch error:(NSError**)error;  // git branch -u {remote}/{branch} {branch}\n- (BOOL)unsetUpstreamForLocalBranch:(GCLocalBranch*)branchBranch error:(NSError**)error;  // git branch --unset-upstream {branch}\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCBranch.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCBranch\n@end\n\n@implementation GCLocalBranch\n\n#if DEBUG\n\n- (void)updateReference:(git_reference*)reference {\n  XLOG_DEBUG_CHECK(git_reference_is_branch(reference));\n  [super updateReference:reference];\n}\n\n#endif\n\n@end\n\n@implementation GCRemoteBranch\n\n#if DEBUG\n\n- (void)updateReference:(git_reference*)reference {\n  XLOG_DEBUG_CHECK(git_reference_is_remote(reference));\n  [super updateReference:reference];\n}\n\n#endif\n\n@end\n\n@implementation GCBranch (Extensions)\n\n- (BOOL)isEqualToBranch:(GCBranch*)branch {\n  return [self isEqualToReference:branch];\n}\n\n@end\n\n@implementation GCRemoteBranch (Extensions)\n\n- (NSString*)remoteName {\n  NSString* name = self.name;\n  NSRange range = [name rangeOfString:@\"/\"];\n  if (range.location == NSNotFound) {\n    return nil;\n  }\n  return [name substringToIndex:range.location];\n}\n\n- (NSString*)branchName {\n  NSString* name = self.name;\n  NSRange range = [name rangeOfString:@\"/\"];\n  if (range.location == NSNotFound) {\n    return nil;\n  }\n  return [name substringFromIndex:(range.location + 1)];\n}\n\n@end\n\n@implementation GCRepository (GCBranch)\n\n+ (BOOL)isValidBranchName:(NSString*)name {\n  return (git_reference_is_valid_name([[@kHeadsNamespace stringByAppendingString:name] UTF8String]) == 1);\n}\n\n#pragma mark - Browsing\n\n- (GCLocalBranch*)findLocalBranchWithName:(NSString*)name error:(NSError**)error {\n  return [self findReferenceWithFullName:[@kHeadsNamespace stringByAppendingString:name] class:[GCLocalBranch class] error:error];\n}\n\n- (GCRemoteBranch*)findRemoteBranchWithName:(NSString*)name error:(NSError**)error {\n  return [self findReferenceWithFullName:[@kRemotesNamespace stringByAppendingString:name] class:[GCRemoteBranch class] error:error];\n}\n\n- (NSArray*)_listBranches:(NSError**)error flags:(git_branch_t)flags {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  BOOL success = [self enumerateReferencesWithOptions:kGCReferenceEnumerationOption_RetainReferences\n                                                error:error\n                                           usingBlock:^BOOL(git_reference* reference) {\n                                             if ((flags & GIT_BRANCH_LOCAL) && git_reference_is_branch(reference)) {\n                                               GCLocalBranch* branch = [[GCLocalBranch alloc] initWithRepository:self reference:reference];\n                                               [array addObject:branch];\n                                             } else if ((flags & GIT_BRANCH_REMOTE) && git_reference_is_remote(reference)) {\n                                               GCRemoteBranch* branch = [[GCRemoteBranch alloc] initWithRepository:self reference:reference];\n                                               [array addObject:branch];\n                                             } else {\n                                               git_reference_free(reference);\n                                             }\n                                             return YES;\n                                           }];\n  return success ? array : nil;\n}\n\n- (NSArray*)listLocalBranches:(NSError**)error {\n  return [self _listBranches:error flags:GIT_BRANCH_LOCAL];\n}\n\n- (NSArray*)listRemoteBranches:(NSError**)error {\n  return [self _listBranches:error flags:GIT_BRANCH_REMOTE];\n}\n\n- (NSArray*)listAllBranches:(NSError**)error {\n  return [self _listBranches:error flags:GIT_BRANCH_ALL];\n}\n\n#pragma mark - Utilities\n\n- (GCCommit*)lookupTipCommitForBranch:(GCBranch*)branch error:(NSError**)error {\n  if (![self refreshReference:branch error:error]) {\n    return nil;\n  }\n  git_commit* commit = [self loadCommitFromBranchReference:branch.private error:error];\n  return commit ? [[GCCommit alloc] initWithRepository:self commit:commit] : nil;\n}\n\n#pragma mark - Editing\n\n- (GCLocalBranch*)createLocalBranchFromCommit:(GCCommit*)commit withName:(NSString*)name force:(BOOL)force error:(NSError**)error {\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_branch_create, &reference, self.private, name.UTF8String, commit.private, force);\n  return [[GCLocalBranch alloc] initWithRepository:self reference:reference];\n}\n\n- (BOOL)setTipCommit:(GCCommit*)commit forBranch:(GCBranch*)branch reflogMessage:(NSString*)message error:(NSError**)error {\n  git_reference* reference;\n  if (![self setTargetOID:git_commit_id(commit.private) forReference:branch.private reflogMessage:message newReference:&reference error:error]) {  // TODO: Should we pass a reflog message?\n    return NO;\n  }\n  [branch updateReference:reference];\n  return YES;\n}\n\n// We have to use the official API instead of directly git_reference_rename() as renaming a branch reference requires a lot of additional bookkeeping\n- (BOOL)setName:(NSString*)name forLocalBranch:(GCLocalBranch*)branch force:(BOOL)force error:(NSError**)error {\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_branch_move, &reference, branch.private, name.UTF8String, force);  // This uses git_reference_rename() under the hood\n  [branch updateReference:reference];\n  return YES;\n}\n\n- (BOOL)deleteLocalBranch:(GCLocalBranch*)branch error:(NSError**)error {\n  if (![self refreshReference:branch error:error]) {  // Works around \"old reference value does not match\" errors if underlying reference is out of sync\n    return NO;\n  }\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_branch_delete, branch.private);  // This uses git_reference_delete() under the hood\n  return YES;\n}\n\n#pragma mark - Upstream\n\n- (GCBranch*)lookupUpstreamForLocalBranch:(GCLocalBranch*)branch error:(NSError**)error {\n  git_reference* upstream;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_branch_upstream, &upstream, branch.private);\n  if (git_reference_is_branch(upstream)) {\n    return [[GCLocalBranch alloc] initWithRepository:self reference:upstream];\n  } else if (git_reference_is_remote(upstream)) {\n    return [[GCRemoteBranch alloc] initWithRepository:self reference:upstream];\n  }\n  git_reference_free(upstream);\n  GC_SET_GENERIC_ERROR(@\"Unexpected branch upstream\");\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\n- (BOOL)setUpstream:(GCBranch*)upstreamBranch forLocalBranch:(GCLocalBranch*)branchBranch error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_branch_set_upstream, branchBranch.private, git_reference_shorthand(upstreamBranch.private));\n  return YES;\n}\n\n- (BOOL)unsetUpstreamForLocalBranch:(GCLocalBranch*)branchBranch error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_branch_set_upstream, branchBranch.private, NULL);\n  return YES;\n}\n\n@end\n\n@implementation GCRepository (GCBranch_Private)\n\n- (git_commit*)loadCommitFromBranchReference:(git_reference*)reference error:(NSError**)error {\n  git_oid oid;\n  if (![self loadTargetOID:&oid fromReference:reference error:error]) {\n    return nil;\n  }\n  git_commit* commit;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_lookup, &commit, self.private, &oid);\n  return commit;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCommit-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCCommit)\n\n- (void)testCommits {\n  // Make a commit\n  GCCommit* commit = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Bonjour le monde!\\n\" message:@\"Test\"];\n  XCTAssertEqualObjects([self.repository findCommitWithSHA1:commit.SHA1 error:NULL], commit);\n  XCTAssertNil([self.repository findCommitWithSHA1:@\"123456\" error:NULL]);\n  XCTAssertEqualObjects([self.repository findCommitWithSHA1Prefix:commit.shortSHA1 error:NULL], commit);\n  XCTAssertEqualObjects([self.repository lookupParentsForCommit:commit error:NULL], @[ self.initialCommit ]);\n\n  // Check short-SHA computation\n  [self assertGitCLTOutputEqualsString:[NSString stringWithFormat:@\"%@\\n\", [self.repository computeUniqueShortSHA1ForCommit:commit error:NULL]] withRepository:self.repository command:@\"rev-parse\", @\"--short\", @\"HEAD\", nil];\n\n  // Check file in commmit\n  XCTAssertNotNil([self.repository checkTreeForCommit:commit containsFile:@\"hello_world.txt\" error:NULL]);\n  XCTAssertNil([self.repository checkTreeForCommit:commit containsFile:@\"missing.txt\" error:NULL]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCommit.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCObject.h\"\n#import \"GCRepository.h\"\n\n@interface GCCommit : GCObject\n@property(nonatomic, readonly) NSString* message;\n@property(nonatomic, readonly) NSString* summary;  // Cleaned first paragraph of the message\n@property(nonatomic, readonly) NSDate* date;\n@property(nonatomic, readonly) NSTimeZone* timeZone;\n@property(nonatomic, readonly) NSString* authorName;\n@property(nonatomic, readonly) NSString* authorEmail;\n@property(nonatomic, readonly) NSDate* authorDate;\n@property(nonatomic, readonly) NSString* committerName;\n@property(nonatomic, readonly) NSString* committerEmail;\n@property(nonatomic, readonly) NSDate* committerDate;\n@property(nonatomic, readonly) NSString* treeSHA1;\n@end\n\n@interface GCCommit (Extensions)\n@property(nonatomic, readonly) NSString* author;\n@property(nonatomic, readonly) NSString* committer;\n@property(nonatomic, readonly) NSTimeInterval timeIntervalSinceReferenceDate;  // Faster than -date\n- (BOOL)isEqualToCommit:(GCCommit*)commit;\n- (NSComparisonResult)timeCompare:(GCCommit*)commit;  // Sorts chronologically or by SHA1 if equal\n- (NSComparisonResult)reverseTimeCompare:(GCCommit*)commit;  // Sorts reverse chronologically or by SHA1 if equal\n@end\n\n@interface GCRepository (GCCommit)\n- (NSString*)computeUniqueShortSHA1ForCommit:(GCCommit*)commit error:(NSError**)error;  // (?)\n- (GCCommit*)findCommitWithSHA1:(NSString*)sha1 error:(NSError**)error;  // (?)\n- (GCCommit*)findCommitWithSHA1Prefix:(NSString*)prefix error:(NSError**)error;  // (?)\n- (NSArray*)lookupParentsForCommit:(GCCommit*)commit error:(NSError**)error;  // git log -n 1 {commit_id}\n- (NSString*)checkTreeForCommit:(GCCommit*)commit containsFile:(NSString*)path error:(NSError**)error;  // (?) - Returns SHA1 if present\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCommit.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n#define kTruncatedDescriptionThreshold 50\n\n@implementation GCCommit\n\n@dynamic private;\n\n- (instancetype)initWithRepository:(GCRepository*)repository commit:(git_commit*)commit {\n  return [self initWithRepository:repository object:(git_object*)commit];\n}\n\n// TODO: Handle non-UTF-8 encodings\nstatic inline NSString* _ConvertMessage(GCCommit* commit, const char* message, size_t length, const char* encoding) {\n  NSString* string = encoding ? nil : [[NSString alloc] initWithBytesNoCopy:(void*)message length:length encoding:NSUTF8StringEncoding freeWhenDone:NO];  // Indicates UTF-8 if NULL\n  if (string == nil) {\n    string = [[NSString alloc] initWithBytesNoCopy:(void*)message length:length encoding:NSASCIIStringEncoding freeWhenDone:NO];\n    if (string) {\n      XLOG_WARNING(@\"Using ASCII encoding instead of UTF-8 to interpret message for commit %@\", commit.shortSHA1);\n    } else {\n      XLOG_WARNING(@\"Failed interpreting message for commit %@ using ASCII encoding\", commit.shortSHA1);\n      XLOG_DEBUG_UNREACHABLE();\n      string = @\"\";\n    }\n  }\n  return string;\n}\n\n- (NSString*)message {\n  const char* message = git_commit_message((git_commit*)_private);  // This already trims leading newlines\n  size_t length = strlen(message);\n  if (length) {\n    while (message[length - 1] == '\\n') {  // Trim trailing newlines\n      --length;\n    }\n  } else {\n    XLOG_WARNING(@\"Empty message for commit %s\", git_oid_tostr_s(git_commit_id((git_commit*)_private)));\n  }\n  return _ConvertMessage(self, message, length, git_commit_message_encoding((git_commit*)_private));\n}\n\n- (NSString*)summary {\n  const char* summary = git_commit_summary((git_commit*)_private);\n  return _ConvertMessage(self, summary, strlen(summary), git_commit_message_encoding((git_commit*)_private));\n}\n\n- (NSDate*)date {\n  return self.committerDate;\n}\n\n// Reimplementation of git_commit_time_offset()\n- (NSTimeZone*)timeZone {\n  const git_signature* signature = git_commit_committer((git_commit*)_private);\n  return [NSTimeZone timeZoneForSecondsFromGMT:(signature->when.offset * 60)];\n}\n\n- (NSString*)authorName {\n  const git_signature* signature = git_commit_author((git_commit*)_private);\n  return [NSString stringWithUTF8String:signature->name];\n}\n\n- (NSString*)authorEmail {\n  const git_signature* signature = git_commit_author((git_commit*)_private);\n  return [NSString stringWithUTF8String:signature->email];\n}\n\n- (NSDate*)authorDate {\n  const git_signature* signature = git_commit_author((git_commit*)_private);\n  return [NSDate dateWithTimeIntervalSince1970:signature->when.time];\n}\n\n- (NSString*)committerName {\n  const git_signature* signature = git_commit_committer((git_commit*)_private);\n  return [NSString stringWithUTF8String:signature->name];\n}\n\n- (NSString*)committerEmail {\n  const git_signature* signature = git_commit_committer((git_commit*)_private);\n  return [NSString stringWithUTF8String:signature->email];\n}\n\n// Reimplementation of git_commit_time()\n- (NSDate*)committerDate {\n  const git_signature* signature = git_commit_committer((git_commit*)_private);\n  return [NSDate dateWithTimeIntervalSince1970:signature->when.time];\n}\n\n- (NSString*)treeSHA1 {\n  return GCGitOIDToSHA1(git_commit_tree_id((git_commit*)_private));\n}\n\n- (NSString*)description {\n  NSString* summary = self.summary;\n  return [NSString stringWithFormat:@\"[%@] %@ '%@' %@ '%@%@'\", self.class,\n                                    self.shortSHA1,\n                                    self.date,\n                                    [[self.author componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] firstObject],\n                                    summary.length > kTruncatedDescriptionThreshold ? [summary substringToIndex:kTruncatedDescriptionThreshold] : summary,\n                                    summary.length > kTruncatedDescriptionThreshold ? @\"...\" : @\"\"];\n}\n\n@end\n\n@implementation GCCommit (Extensions)\n\n- (NSString*)author {\n  return GCUserFromSignature(git_commit_author((git_commit*)_private));\n}\n\n- (NSString*)committer {\n  return GCUserFromSignature(git_commit_committer((git_commit*)_private));\n}\n\n- (NSTimeInterval)timeIntervalSinceReferenceDate {\n  const git_signature* signature = git_commit_committer((git_commit*)_private);\n  return signature->when.time - NSTimeIntervalSince1970;\n}\n\n- (BOOL)isEqualToCommit:(GCCommit*)commit {\n  return [self isEqualToObject:commit];\n}\n\nstatic inline NSComparisonResult _TimeCompare(GCCommit* commit1, GCCommit* commit2) {\n  XLOG_DEBUG_CHECK(commit1 != commit2);\n  git_time_t time1 = git_commit_time((git_commit*)commit1->_private);\n  git_time_t time2 = git_commit_time((git_commit*)commit2->_private);\n  if (time1 < time2) {\n    return NSOrderedAscending;\n  } else if (time1 > time2) {\n    return NSOrderedDescending;\n  }\n  const git_oid* oid1 = git_commit_id((git_commit*)commit1->_private);\n  const git_oid* oid2 = git_commit_id((git_commit*)commit2->_private);\n  return git_oid_cmp(oid1, oid2);  // Ensure stable ordering\n}\n\n- (NSComparisonResult)timeCompare:(GCCommit*)commit {\n  return _TimeCompare(self, commit);\n}\n\n- (NSComparisonResult)reverseTimeCompare:(GCCommit*)commit {\n  return _TimeCompare(commit, self);\n}\n\n@end\n\n@implementation GCRepository (GCCommit)\n\n- (NSString*)computeUniqueShortSHA1ForCommit:(GCCommit*)commit error:(NSError**)error {\n  return [self computeUniqueOIDForCommit:commit.private error:error];\n}\n\n- (GCCommit*)findCommitWithSHA1:(NSString*)sha1 error:(NSError**)error {\n  git_oid oid;\n  if (!GCGitOIDFromSHA1(sha1, &oid, NULL)) {\n    return nil;\n  }\n  git_commit* commit;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_lookup, &commit, self.private, &oid);\n  return [[GCCommit alloc] initWithRepository:self commit:commit];\n}\n\n- (GCCommit*)findCommitWithSHA1Prefix:(NSString*)prefix error:(NSError**)error {\n  size_t length = strlen(prefix.UTF8String);\n  XLOG_DEBUG_CHECK(length >= GIT_OID_MINPREFIXLEN);\n  git_oid oid;\n  if (!GCGitOIDFromSHA1Prefix(prefix, &oid, error)) {\n    return nil;\n  }\n  git_commit* commit;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_lookup_prefix, &commit, self.private, &oid, length);\n  return [[GCCommit alloc] initWithRepository:self commit:commit];\n}\n\n- (NSArray*)lookupParentsForCommit:(GCCommit*)commit error:(NSError**)error {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  for (unsigned int i = 0, count = git_commit_parentcount(commit.private); i < count; ++i) {\n    git_commit* gitCommit;\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_parent, &gitCommit, commit.private, i);\n    GCCommit* parentCommit = [[GCCommit alloc] initWithRepository:self commit:gitCommit];\n    [array addObject:parentCommit];\n  }\n  return array;\n}\n\n- (NSString*)checkTreeForCommit:(GCCommit*)commit containsFile:(NSString*)path error:(NSError**)error {\n  NSString* sha1 = nil;\n  git_tree* tree = NULL;\n  git_tree_entry* entry = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &tree, commit.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_tree_entry_bypath, &entry, tree, GCGitPathFromFileSystemPath(path));\n  sha1 = GCGitOIDToSHA1(git_tree_entry_id(entry));\n\ncleanup:\n  git_tree_entry_free(entry);\n  git_tree_free(tree);\n  return sha1;\n}\n\n@end\n\n@implementation GCRepository (GCCommit_Private)\n\n- (NSString*)computeUniqueOIDForCommit:(git_commit*)commit error:(NSError**)error {\n  git_buf buffer = {0};\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_object_short_id, &buffer, (git_object*)commit);\n  NSString* string = [NSString stringWithCString:buffer.ptr encoding:NSASCIIStringEncoding];\n  git_buf_free(&buffer);\n  return string;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCommitDatabase-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCMultipleCommitsRepositoryTests (GCCommitDatabase)\n\n// TODO: Test users table\n- (void)testCommitDatabase {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[[NSProcessInfo processInfo] globallyUniqueString] stringByAppendingPathExtension:@\"db\"]];\n\n  // Create database\n  GCCommitDatabase* database = [[GCCommitDatabase alloc] initWithRepository:self.repository databasePath:path options:0 error:NULL];\n  XCTAssertNotNil(database);\n  XCTAssertEqual([database countTips], 0);\n  XCTAssertEqual([database countCommits], 0);\n  XCTAssertEqual([database countRelations], 0);\n  XCTAssertEqual([database totalCommitRetainCount], 0);\n\n  // Re-open database in read-write\n  GCCommitDatabase* database2 = [[GCCommitDatabase alloc] initWithRepository:self.repository databasePath:path options:0 error:NULL];\n  XCTAssertNotNil(database2);\n  database2 = nil;\n\n  // Re-open database in read-only\n  GCCommitDatabase* database3 = [[GCCommitDatabase alloc] initWithRepository:self.repository databasePath:path options:kGCCommitDatabaseOptions_QueryOnly error:NULL];\n  XCTAssertNotNil(database3);\n  database3 = nil;\n\n  // Populate database\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 2);\n  XCTAssertEqual([database countCommits], 5);\n  XCTAssertEqual([database countRelations], 4);\n  XCTAssertEqual([database totalCommitRetainCount], 6);  // 5 commits with 1 common\n\n  // Re-populate database (should be no-op)\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 2);\n  XCTAssertEqual([database countCommits], 5);\n  XCTAssertEqual([database countRelations], 4);\n  XCTAssertEqual([database totalCommitRetainCount], 5 + 1);\n\n  // Create a new branch that does NOT create a new tip\n  GCLocalBranch* otherBranch1 = [self.repository createLocalBranchFromCommit:[self.repository lookupTipCommitForBranch:self.topicBranch error:NULL] withName:@\"other1\" force:NO error:NULL];\n  XCTAssertNotNil(otherBranch1);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 2);\n  XCTAssertEqual([database countCommits], 5);\n  XCTAssertEqual([database countRelations], 4);\n  XCTAssertEqual([database totalCommitRetainCount], 5 + 1);\n\n  // Delete branch\n  XCTAssertTrue([self.repository deleteLocalBranch:otherBranch1 error:NULL]);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 2);\n  XCTAssertEqual([database countCommits], 5);\n  XCTAssertEqual([database countRelations], 4);\n  XCTAssertEqual([database totalCommitRetainCount], 5 + 1);\n\n  // Create a new branch that creates a new tip\n  GCLocalBranch* otherBranch2 = [self.repository createLocalBranchFromCommit:self.commit2 withName:@\"other2\" force:NO error:NULL];\n  XCTAssertNotNil(otherBranch2);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 3);\n  XCTAssertEqual([database countCommits], 5);\n  XCTAssertEqual([database countRelations], 4);\n  XCTAssertEqual([database totalCommitRetainCount], 5 + 1 + 1);\n\n  // Delete branch\n  XCTAssertTrue([self.repository deleteLocalBranch:otherBranch2 error:NULL]);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 2);\n  XCTAssertEqual([database countCommits], 5);\n  XCTAssertEqual([database countRelations], 4);\n  XCTAssertEqual([database totalCommitRetainCount], 5 + 1);\n\n  // Create commit on topic branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.topicBranch options:0 error:NULL]);\n  XCTAssertNotNil([self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"\" message:@\"Nothing\"]);\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 2);\n  XCTAssertEqual([database countCommits], 6);\n  XCTAssertEqual([database countRelations], 5);\n  XCTAssertEqual([database totalCommitRetainCount], 6 + 1);\n\n  // Delete topic branch\n  XCTAssertTrue([self.repository deleteLocalBranch:self.topicBranch error:NULL]);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 1);\n  XCTAssertEqual([database countCommits], 4);\n  XCTAssertEqual([database countRelations], 3);\n  XCTAssertEqual([database totalCommitRetainCount], 4 + 0);\n\n  // Create and merge branch\n  GCLocalBranch* mergeBranch = [self.repository createLocalBranchFromCommit:self.commit1 withName:@\"merge\" force:NO error:NULL];\n  XCTAssertNotNil(mergeBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:mergeBranch options:0 error:NULL]);\n  GCCommit* mergeCommit = [self makeCommitWithUpdatedFileAtPath:@\"merge.txt\" string:@\"\" message:@\"MERGE\"];\n  XCTAssertNotNil(mergeCommit);\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n  XCTAssertTrue([self.repository mergeCommitToHEAD:mergeCommit error:NULL]);\n  XCTAssertNotNil([self.repository createCommitFromHEADAndOtherParent:mergeCommit withMessage:@\"merged\" error:NULL]);\n  XCTAssertTrue([self.repository deleteLocalBranch:mergeBranch error:NULL]);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 1);\n  XCTAssertEqual([database countCommits], 6);\n  XCTAssertEqual([database countRelations], 6);\n  XCTAssertEqual([database totalCommitRetainCount], 6 + 1);\n\n  // Create degenerated commit with duplicated parents\n  GCCommit* tempCommit = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"TEMP\" message:@\"TEMP\"];\n  XCTAssertNotNil(tempCommit);\n  XCTAssertNotNil([self.repository createCommitFromHEADAndOtherParent:tempCommit withMessage:@\"merged\" error:NULL]);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 1);\n  XCTAssertEqual([database countCommits], 8);\n  XCTAssertEqual([database countRelations], 8);\n  XCTAssertEqual([database totalCommitRetainCount], 8 + 1);\n\n  // Delete database\n  database = nil;\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n}\n\n@end\n\n@implementation GCEmptyRepositoryTests (GCCommitDatabase)\n\n/*\n  0---1----2----3----5 (master)\n       \\            /\n        4-----------\n*/\n- (void)testCommitDatabase {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[[NSProcessInfo processInfo] globallyUniqueString] stringByAppendingPathExtension:@\"db\"]];\n\n  // Create mock hierarchy\n  NSArray* commits = [self.repository createMockCommitHierarchyFromNotation:@\"0 1(0) 2(1) 3(2) 4(1) 5(3,4)<master>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n\n  // Create and populate database\n  GCCommitDatabase* database = [[GCCommitDatabase alloc] initWithRepository:self.repository databasePath:path options:0 error:NULL];\n  XCTAssertNotNil(database);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n  XCTAssertEqual([database countTips], 1);\n  XCTAssertEqual([database countCommits], 6);\n  XCTAssertEqual([database countRelations], 6);\n  XCTAssertEqual([database totalCommitRetainCount], 6 + 1);\n\n  // Delete database\n  database = nil;\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTests (GCCommitDatabase)\n\n// TODO: Test diff search\n- (void)testCommitDatabase {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[[NSProcessInfo processInfo] globallyUniqueString] stringByAppendingPathExtension:@\"db\"]];\n\n  // Make commits\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"This is a test\" error:NULL];\n  XCTAssertNotNil(commit1);\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"This is\\n\\nanother TEST\" error:NULL];\n  XCTAssertNotNil(commit2);\n  GCCommit* commit3 = [self.repository createCommitFromHEADWithMessage:@\"ThisTESTishere\" error:NULL];\n  XCTAssertNotNil(commit3);\n  GCCommit* commit4 = [self.repository createCommitFromHEADWithMessage:@\"Merge pull request #60 from pvblivs/master\" error:NULL];\n  XCTAssertNotNil(commit4);\n  GCCommit* commit5 = [self.repository createCommitFromHEADWithMessage:@\"Un essai en français les amis!\" error:NULL];\n  XCTAssertNotNil(commit5);\n  GCCommit* commit6 = [self.repository createCommitFromHEADWithMessage:@\"Hey test_this\" error:NULL];\n  XCTAssertNotNil(commit6);\n\n  // Create and populate database\n  GCCommitDatabase* database = [[GCCommitDatabase alloc] initWithRepository:self.repository databasePath:path options:0 error:NULL];\n  XCTAssertNotNil(database);\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n\n  // Test search\n  XCTAssertEqualObjects([database findCommitsMatching:@\"nothing\" error:NULL], @[]);\n  NSSet* results1 = [NSSet setWithObjects:commit1, commit2, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:[database findCommitsMatching:@\"Test\" error:NULL]], results1);\n  XCTAssertEqualObjects([database findCommitsMatching:@\"#60\" error:NULL], @[ commit4 ]);\n  XCTAssertEqualObjects([database findCommitsMatching:@\"pvblivs/master\" error:NULL], @[ commit4 ]);\n  XCTAssertEqualObjects([database findCommitsMatching:@\"essai français\" error:NULL], @[ commit5 ]);\n  XCTAssertEqualObjects([database findCommitsMatching:@\"test_this\" error:NULL], @[ commit6 ]);\n\n  // Make more commits\n  GCCommit* commit7 = [self.repository createCommitFromHEADWithMessage:@\"Un autre essai\" error:NULL];\n  XCTAssertNotNil(commit7);\n\n  // Update database\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n\n  // Test search again\n  NSSet* results2 = [NSSet setWithObjects:commit5, commit7, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:[database findCommitsMatching:@\"essai\" error:NULL]], results2);\n\n  // Delete last commit\n  XCTAssertTrue([self.repository setTipCommit:commit6 forBranch:self.masterBranch reflogMessage:nil error:NULL]);\n\n  // Update database\n  XCTAssertTrue([database updateWithProgressHandler:NULL error:NULL]);\n\n  // Test search again\n  XCTAssertEqualObjects([database findCommitsMatching:@\"essai\" error:NULL], @[ commit5 ]);\n\n  // Delete database\n  database = nil;\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCommitDatabase.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_OPTIONS(NSUInteger, GCCommitDatabaseOptions) {\n  kGCCommitDatabaseOptions_IndexDiffs = (1 << 0),\n  kGCCommitDatabaseOptions_QueryOnly = (1 << 1)\n};\n\ntypedef BOOL (^GCCommitDatabaseProgressHandler)(BOOL firstUpdate, NSUInteger addedCommits, NSUInteger removedCommits);\n\n@class GCRepository;\n\nextern NSString* const SQLiteErrorDomain;\n\n// This class CANNOT be used from multiple threads simultaneously\n@interface GCCommitDatabase : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) NSString* databasePath;\n@property(nonatomic, readonly) GCCommitDatabaseOptions options;\n- (instancetype)initWithRepository:(GCRepository*)repository databasePath:(NSString*)path options:(GCCommitDatabaseOptions)options error:(NSError**)error;\n- (BOOL)updateWithProgressHandler:(GCCommitDatabaseProgressHandler)handler error:(NSError**)error;  // Handler can be NULL - Return NO from handler to cancel\n- (NSArray*)findCommitsMatching:(NSString*)match error:(NSError**)error;  // Search commit messages, authors and committers and orders results from newest to oldest - Returns nil on error\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCommitDatabase.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import <sqlite3.h>\n\n#import \"GCPrivate.h\"\n\n#define __UNIQUE_RELATIONS__ 1\n#define __CHECK_CONSISTENCY__ 0\n\n#define kSchemaVersion 3\n\n#define kTipsTableName \"tips\"\n#define kCommitsTableName \"commits\"\n#define kRelationsTableName \"relations\"\n#define kUsersTableName \"users\"\n\n#define kFTSPrefix \"fts_\"\n#define kFTSMessagesTableName kFTSPrefix \"messages\"\n#define kFTSDiffsTableName kFTSPrefix \"diffs\"\n#define kFTSUsersTableName kFTSPrefix \"users\"\n\n#define kMinWordLength 2\n#define kWordCacheSize 1024\n\n#define kMaxFileSizeForTextDiff (32 * 1024 * 1024)  // libgit2 default is 512 MiB\n\n#define IS_ALPHANUMERICAL(c) (((c) >= '0' && (c) <= '9') || ((c) >= 'A' && (c) <= 'Z') || ((c) >= 'a' && (c) <= 'z'))\n#define IS_DELIMITER(c) (((c) < 0x80) && !IS_ALPHANUMERICAL(c) && ((c) != '_'))  // Don't split tokens on '_'\n\n#define SET_BIT(a, n) (a[(n) / CHAR_BIT] |= (1 << ((n) % CHAR_BIT)))\n#define GET_BIT(a, n) (a[(n) / CHAR_BIT] & (1 << ((n) % CHAR_BIT)))\n\n#define LOG_SQLITE_ERROR(__CODE__)                                              \\\n  do {                                                                          \\\n    XLOG_DEBUG_CHECK((__CODE__ != SQLITE_OK) && (__CODE__ != SQLITE_DONE));     \\\n    XLOG_ERROR(@\"sqlite3 error (%i): %s\", __CODE__, sqlite3_errmsg(_database)); \\\n  } while (0)\n\n#define CHECK_SQLITE_FUNCTION_CALL(__FAIL_ACTION__, __STATUS__, __COMPARISON__) \\\n  do {                                                                          \\\n    if (!(__STATUS__ __COMPARISON__)) {                                         \\\n      LOG_SQLITE_ERROR(__STATUS__);                                             \\\n      if (error) {                                                              \\\n        *error = _NewSQLiteError(__STATUS__, sqlite3_errmsg(_database));        \\\n      }                                                                         \\\n      __FAIL_ACTION__;                                                          \\\n    }                                                                           \\\n  } while (0)\n\n#define CALL_SQLITE_FUNCTION_RETURN(__RETURN_VALUE_ON_ERROR__, __FUNCTION__, ...)             \\\n  do {                                                                                        \\\n    int __callResult = __FUNCTION__(__VA_ARGS__);                                             \\\n    CHECK_SQLITE_FUNCTION_CALL(return __RETURN_VALUE_ON_ERROR__, __callResult, == SQLITE_OK); \\\n  } while (0)\n\n#define CALL_SQLITE_FUNCTION_GOTO(__GOTO_LABEL__, __FUNCTION__, ...)             \\\n  do {                                                                           \\\n    int __callResult = __FUNCTION__(__VA_ARGS__);                                \\\n    CHECK_SQLITE_FUNCTION_CALL(goto __GOTO_LABEL__, __callResult, == SQLITE_OK); \\\n  } while (0)\n\ntypedef NS_ENUM(int, Statement) {\n  kStatement_BeginTransaction = 0,\n  kStatement_ListTipSHA1s,\n  kStatement_FindCommitID,\n  kStatement_LookupCommitParentIDs,\n  kStatement_AddTip,\n  kStatement_AddCommit,\n  kStatement_FindUserID,\n  kStatement_AddUser,\n  kStatement_AddRelation,\n  kStatement_DeleteTip,\n  kStatement_RetainCommit,\n  kStatement_ReleaseCommit,\n  kStatement_DeleteOrphanCommit,\n  kStatement_DeleteCommitRelations,\n  kStatement_AddFTSUser,\n  kStatement_AddFTSMessage,\n  kStatement_AddFTSDiff,\n  kStatement_EndTransaction,\n  kStatement_SearchCommits,\n  kNumStatements\n};\n\ntypedef struct {\n  const unsigned char* start;\n  size_t length;\n} Word;\n\ntypedef struct {\n  git_commit* commit;\n  sqlite3_int64 childID;\n} Item;\n\nNSString* const SQLiteErrorDomain = @\"SQLiteErrorDomain\";\n\nstatic NSError* _NewSQLiteError(int code, const char* message) {\n  return [NSError errorWithDomain:SQLiteErrorDomain\n                             code:code\n                         userInfo:@{NSLocalizedDescriptionKey : [NSString stringWithUTF8String:message]}];\n}\n\n// TODO: Consider using triggers to handle retain/release\n// TODO: Garbage collect users table\n@implementation GCCommitDatabase {\n  sqlite3* _database;\n  sqlite3_stmt** _statements;\n  BOOL _ready;\n}\n\nstatic void _SQLiteLog(void* unused, int error, const char* message) {\n  if ((error & 0xFF) == SQLITE_NOTICE) {\n    XLOG_INFO(@\"SQLite (%i): %s\", error, message);\n  } else if ((error & 0xFF) == SQLITE_WARNING) {\n    const char* ignore = \"2file renamed while open\";  // TODO: This is sometimes triggered by sqlite3_step()?\n    if (strncmp(message, ignore, sizeof(ignore) - 1)) {\n      XLOG_WARNING(@\"SQLite (%i): %s\", error, message);\n    }\n  }\n}\n\n+ (void)initialize {\n  XLOG_CHECK(sqlite3_compileoption_used(\"THREADSAFE=2\"));\n  XLOG_CHECK(sqlite3_compileoption_used(\"ENABLE_FTS3\"));\n  XLOG_CHECK(sqlite3_compileoption_used(\"ENABLE_FTS3_PARENTHESIS\"));\n\n  sqlite3_config(SQLITE_CONFIG_LOG, _SQLiteLog, NULL);\n}\n\nstatic int _CaseInsensitiveUTF8Compare(void* context, int length1, const void* bytes1, int length2, const void* bytes2) {\n  CFStringRef string1 = CFStringCreateWithBytesNoCopy(kCFAllocatorDefault, bytes1, length1, kCFStringEncodingUTF8, false, kCFAllocatorNull);\n  CFStringRef string2 = CFStringCreateWithBytesNoCopy(kCFAllocatorDefault, bytes2, length2, kCFStringEncodingUTF8, false, kCFAllocatorNull);\n  CFComparisonResult result;\n  if (string1 && string2) {\n    result = CFStringCompare(string1, string2, kCFCompareCaseInsensitive);\n    CFRelease(string2);\n    CFRelease(string1);\n  } else if (string1) {\n    result = 1;\n    CFRelease(string1);\n  } else if (string2) {\n    result = -1;\n    CFRelease(string2);\n  } else {\n    result = 0;\n  }\n  return (int)result;\n}\n\n- (BOOL)_initializeDatabase:(NSString*)path error:(NSError**)error {\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_open_v2, path.fileSystemRepresentation, &_database, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE | SQLITE_OPEN_NOMUTEX | SQLITE_OPEN_SHAREDCACHE, NULL);\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_extended_result_codes, _database, true);\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"PRAGMA page_size = 32768\", NULL, NULL, NULL);  // Default appears to be 4096 on OS X\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"PRAGMA cache_size = 500\", NULL, NULL, NULL);  // Default appears to be 500 on OS X\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"PRAGMA journal_mode = WAL\", NULL, NULL, NULL);\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_wal_autocheckpoint, _database, 0);\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_create_collation, _database, \"utf8\", SQLITE_UTF8, NULL, _CaseInsensitiveUTF8Compare);\n  if (_options & kGCCommitDatabaseOptions_QueryOnly) {\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"PRAGMA query_only = 1\", NULL, NULL, NULL);\n  }\n  return YES;\n}\n\n// Emails are considered case-insensitive with \"COLLATE NOCASE\" which only works with ASCII characters but that should be fine for emails\n// TODO: Does the order of columns inside a table affect performance?\n- (BOOL)_initializeSchema:(int)version error:(NSError**)error {\n  // Users table\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE TABLE \" kUsersTableName \"(\"\n                                                           \"_id_ INTEGER PRIMARY KEY,\"\n                                                           \"email TEXT NOT NULL COLLATE NOCASE,\"\n                                                           \"name TEXT COLLATE utf8\"\n                                                           \")\",\n                              NULL, NULL, NULL);\n\n  // Index to ensure unique email/name combinations and to search for users\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE UNIQUE INDEX \" kUsersTableName \"_email_name on \" kUsersTableName \"(email, name)\", NULL, NULL, NULL);\n\n  // Commits table (with implicit index for \"sha1\")\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE TABLE \" kCommitsTableName \"(\"\n                                                           \"_id_ INTEGER PRIMARY KEY,\"\n                                                           \"retain_count INTEGER NOT NULL,\"\n                                                           \"sha1 BLOB UNIQUE NOT NULL,\"\n                                                           \"time INTEGER NOT NULL,\"\n                                                           \"offset INTEGER NOT NULL,\"\n                                                           \"author INTEGER NOT NULL,\"\n                                                           \"committer INTEGER NOT NULL,\"\n                                                           \"parent_sha1s BLOB NOT NULL,\"\n                                                           \"message TEXT NOT NULL\"\n                                                           \")\",\n                              NULL, NULL, NULL);\n\n  // Relations table\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE TABLE \" kRelationsTableName \"(\"\n                                                           \"_id_ INTEGER PRIMARY KEY,\"\n                                                           \"child INTEGER NOT NULL,\"\n                                                           \"parent INTEGER NOT NULL\"\n                                                           \")\",\n                              NULL, NULL, NULL);\n\n// Index for finding parents of a given child (works as a covering index too)\n#if __UNIQUE_RELATIONS__\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE UNIQUE INDEX \" kRelationsTableName \"_child_parent on \" kRelationsTableName \"(child, parent)\", NULL, NULL, NULL);\n#endif\n\n  // Tips table\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE TABLE \" kTipsTableName \"(\"\n                                                           \"_id_ INTEGER PRIMARY KEY,\"\n                                                           \"`commit` INTEGER NOT NULL\"\n                                                           \")\",\n                              NULL, NULL, NULL);\n\n  // FTS for commit messages (external content)\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE VIRTUAL TABLE \" kFTSMessagesTableName \" USING fts4(content='\" kCommitsTableName \"', message, tokenize=unicode61 'tokenchars=_')\", NULL, NULL, NULL);  // Don't split tokens on '_'\n\n  // FTS for commit diffs (stored content)\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE VIRTUAL TABLE \" kFTSDiffsTableName \" USING fts4(added, deleted, tokenize=unicode61 'tokenchars=_')\", NULL, NULL, NULL);  // Don't split tokens on '_'\n\n  // FTS for users (external content)\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE VIRTUAL TABLE \" kFTSUsersTableName \" USING fts4(content='\" kUsersTableName \"', email, name, tokenize=unicode61)\", NULL, NULL, NULL);\n\n  // Save version\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, [[NSString stringWithFormat:@\"PRAGMA user_version = %i\", version] UTF8String], NULL, NULL, NULL);\n\n  return YES;\n}\n\n// DELETE triggers are required because we must delete from FTS *before* deleting from content table which is impractical to do in -_removeCommitsForTip\n// We don't need INSERT or UPDATE triggers since we never update content that is indexed by FTS\n- (BOOL)_initializeTriggers:(NSError**)error {\n  // Triggers for FTS commits\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"\\\n    CREATE TRIGGER \" kCommitsTableName \"_before_delete BEFORE DELETE ON \" kCommitsTableName \" BEGIN \\\n      DELETE FROM \" kFTSMessagesTableName \" WHERE docid=old.rowid; \\\n      DELETE FROM \" kFTSDiffsTableName \" WHERE docid=old.rowid; \\\n    END; \\\n  \",\n                              NULL, NULL, NULL);\n\n  // Triggers for FTS users\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"\\\n    CREATE TRIGGER \" kUsersTableName \"_before_delete BEFORE DELETE ON \" kUsersTableName \" BEGIN \\\n      DELETE FROM \" kFTSUsersTableName \" WHERE docid=old.rowid; \\\n    END; \\\n  \",\n                              NULL, NULL, NULL);\n\n  return YES;\n}\n\n- (BOOL)_initializeDeferredIndexes:(NSError**)error {\n  // Indexes for finding commits by author or comitter\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE INDEX \" kCommitsTableName \"_author on \" kCommitsTableName \"(author)\", NULL, NULL, NULL);\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE INDEX \" kCommitsTableName \"_committer on \" kCommitsTableName \"(committer)\", NULL, NULL, NULL);\n\n#if !__UNIQUE_RELATIONS__\n  // Index for finding parents of a given child (works as a covering index too)\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE INDEX \" kRelationsTableName \"_child_parent on \" kRelationsTableName \"(child, parent)\", NULL, NULL, NULL);\n#endif\n\n  // Index for deleting tips by commit ID\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_exec, _database, \"CREATE INDEX \" kTipsTableName \"_commit on \" kTipsTableName \"(`commit`)\", NULL, NULL, NULL);\n\n  return YES;\n}\n\n- (BOOL)_initializeStatements:(NSError**)error {\n  _statements = calloc(kNumStatements, sizeof(sqlite3_stmt*));\n\n  if (!(_options & kGCCommitDatabaseOptions_QueryOnly)) {\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"BEGIN IMMEDIATE TRANSACTION\", -1, &_statements[kStatement_BeginTransaction], NULL);\n\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"SELECT \" kCommitsTableName \".sha1 FROM \" kCommitsTableName \" JOIN \" kTipsTableName \" ON \" kTipsTableName \".`commit`=\" kCommitsTableName \"._id_\", -1, &_statements[kStatement_ListTipSHA1s], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"SELECT _id_ FROM \" kCommitsTableName \" WHERE sha1=?1\", -1, &_statements[kStatement_FindCommitID], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"SELECT parent FROM \" kRelationsTableName \" WHERE child=?1\", -1, &_statements[kStatement_LookupCommitParentIDs], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"SELECT _id_ FROM \" kUsersTableName \" WHERE email=?1 AND name=?2\", -1, &_statements[kStatement_FindUserID], NULL);\n\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kTipsTableName \" VALUES (NULL, ?1)\", -1, &_statements[kStatement_AddTip], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kCommitsTableName \" VALUES (NULL, ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)\", -1, &_statements[kStatement_AddCommit], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kUsersTableName \" VALUES (NULL, ?1, ?2)\", -1, &_statements[kStatement_AddUser], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kRelationsTableName \" VALUES (NULL, ?1, ?2)\", -1, &_statements[kStatement_AddRelation], NULL);\n\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"UPDATE \" kCommitsTableName \" SET retain_count=retain_count+1 WHERE _id_=?1\", -1, &_statements[kStatement_RetainCommit], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"UPDATE \" kCommitsTableName \" SET retain_count=retain_count-1 WHERE _id_=?1\", -1, &_statements[kStatement_ReleaseCommit], NULL);\n\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"DELETE FROM \" kTipsTableName \" WHERE `commit`=?1\", -1, &_statements[kStatement_DeleteTip], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"DELETE FROM \" kCommitsTableName \" WHERE _id_=?1 AND retain_count=0\", -1, &_statements[kStatement_DeleteOrphanCommit], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"DELETE FROM \" kRelationsTableName \" WHERE child=?1 OR parent=?1\", -1, &_statements[kStatement_DeleteCommitRelations], NULL);\n\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kFTSUsersTableName \"(docid, email, name) VALUES(?1, ?2, ?3)\", -1, &_statements[kStatement_AddFTSUser], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kFTSMessagesTableName \"(docid, message) VALUES(?1, ?2)\", -1, &_statements[kStatement_AddFTSMessage], NULL);\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"INSERT INTO \" kFTSDiffsTableName \"(docid, added, deleted) VALUES(?1, ?2, ?3)\", -1, &_statements[kStatement_AddFTSDiff], NULL);\n\n    CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"END TRANSACTION\", -1, &_statements[kStatement_EndTransaction], NULL);\n  }\n\n  CALL_SQLITE_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \" \\\n                              SELECT sha1, time FROM \" kFTSMessagesTableName \" JOIN \" kCommitsTableName \" ON \" kCommitsTableName \".rowid=\" kFTSMessagesTableName \".docid WHERE \" kFTSMessagesTableName \" MATCH ?1 \\\n                              UNION \\\n                              SELECT sha1, time FROM \" kFTSDiffsTableName \" JOIN \" kCommitsTableName \" ON \" kCommitsTableName \".rowid=\" kFTSDiffsTableName \".docid WHERE \" kFTSDiffsTableName \" MATCH ?1 \\\n                              UNION \\\n                              SELECT sha1, time FROM \" kFTSUsersTableName \" JOIN \" kUsersTableName \" ON \" kUsersTableName \".rowid=\" kFTSUsersTableName \".docid JOIN \" kCommitsTableName \" ON \" kCommitsTableName \".author=\" kUsersTableName \"._id_ WHERE \" kFTSUsersTableName \" MATCH ?1 \\\n                              UNION \\\n                              SELECT sha1, time FROM \" kFTSUsersTableName \" JOIN \" kUsersTableName \" ON \" kUsersTableName \".rowid=\" kFTSUsersTableName \".docid JOIN \" kCommitsTableName \" ON \" kCommitsTableName \".committer=\" kUsersTableName \"._id_ WHERE \" kFTSUsersTableName \" MATCH ?1 \\\n                              ORDER BY time DESC\",\n                              -1, &_statements[kStatement_SearchCommits], NULL);\n\n  return YES;\n}\n\n- (BOOL)_hasTables {\n  BOOL result = NO;\n  sqlite3_stmt* statement;\n  if (sqlite3_prepare_v2(_database, \"SELECT 1 FROM sqlite_master\", -1, &statement, NULL) == SQLITE_OK) {\n    if (sqlite3_step(statement) == SQLITE_ROW) {\n      result = YES;\n    }\n    sqlite3_finalize(statement);\n  }\n  return result;\n}\n\n- (int)_readVersion {\n  int version = 0;\n  sqlite3_stmt* statement;\n  if (sqlite3_prepare_v2(_database, \"PRAGMA user_version\", -1, &statement, NULL) == SQLITE_OK) {\n    if (sqlite3_step(statement) == SQLITE_ROW) {\n      version = sqlite3_column_int(statement, 0);\n    }\n    sqlite3_finalize(statement);\n  }\n  return version;\n}\n\n- (BOOL)_checkReady:(NSError**)error {\n  sqlite3_stmt* statement;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, sqlite3_prepare_v2, _database, \"SELECT 1 FROM sqlite_master WHERE type='trigger'\", -1, &statement, NULL);\n  int result = sqlite3_step(statement);\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, sqlite3_finalize, statement);\n  if (result == SQLITE_ROW) {\n    _ready = YES;\n  } else {\n    XLOG_DEBUG_CHECK(result == SQLITE_DONE);\n  }\n  return YES;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository databasePath:(NSString*)path options:(GCCommitDatabaseOptions)options error:(NSError**)error {\n  if ((self = [super init])) {\n    _repository = repository;\n    _databasePath = [path copy];\n    _options = options;\n\n    if (![self _initializeDatabase:path error:error]) {\n      [self release];\n      return nil;\n    }\n\n    int version = 2 * kSchemaVersion + (_options & kGCCommitDatabaseOptions_IndexDiffs ? 1 : 0);\n    if ([self _hasTables]) {\n      NSInteger currentVersion = [self _readVersion];\n      if (currentVersion == version) {\n        if (![self _checkReady:error]) {\n          [self release];\n          return nil;\n        }\n      } else {\n        if (_options & kGCCommitDatabaseOptions_QueryOnly) {\n          GC_SET_GENERIC_ERROR(@\"Database is query-only\");\n          [self release];\n          return nil;\n        }\n        sqlite3_close(_database);\n        _database = NULL;\n        XLOG_WARNING(@\"Commit database for \\\"%@\\\" has an incompatible version (%li) and must be regenerated\", _repository.repositoryPath, (long)currentVersion);\n        if (![[NSFileManager defaultManager] removeItemAtPath:path error:error] || ![self _initializeDatabase:path error:error] || ![self _initializeSchema:version error:error]) {\n          [self release];\n          return nil;\n        }\n      }\n    } else {\n      if (![self _initializeSchema:version error:error]) {\n        [self release];\n        return nil;\n      }\n    }\n\n    if (![self _initializeStatements:error]) {\n      [self release];\n      return nil;\n    }\n  }\n  return self;\n}\n\n- (void)dealloc {\n  if (_statements) {\n    for (int i = 0; i < kNumStatements; ++i) {\n      sqlite3_finalize(_statements[i]);\n    }\n    free(_statements);\n  }\n  sqlite3_close(_database);\n\n  [_databasePath release];\n\n  [super dealloc];\n}\n\n#if DEBUG\nstatic  // Ensure function is inlined per C99 specs by leaving \"static\" out\n#endif\n    inline unsigned int\n    _hash_buffer(const unsigned char* key, size_t length) {\n  unsigned int h = 0;\n  const unsigned char* max = key + length;\n  while (key < max) {\n#if 1\n    h = *key++ + (h << 6) + (h << 16) - h;  // SDBM (seems to produces fewer false positives for about the same speed as SAX)\n#else\n    h ^= (h << 5) + (h >> 2) + *key++;  // SAX\n#endif\n  }\n  return h;\n}\n\n// TODO: Skip common English words\n// TODO: Skip programming keywords\n// This uses a simple hash-based cache to reduce the lines to their unique words\n// There can be false positives i.e. words repeated more than once in the result, but that's an acceptable speed trade-off considering SQLite FTS will fix this anyway\nstatic void _ExtractUniqueWordsFromLines(NSMutableData* lines, NSMutableData* words) {\n  GC_LIST_ALLOCATE(list, kWordCacheSize, Word);\n  unsigned char* cache = calloc(kWordCacheSize / CHAR_BIT, sizeof(unsigned char));\n  Word* wordPtr;\n\n  const unsigned char* max = (unsigned char*)lines.bytes + lines.length;\n  const unsigned char* current = lines.bytes;\n  const unsigned char* start = NULL;\n  do {\n    if ((current == max) || IS_DELIMITER(*current)) {\n      if (start != NULL) {\n        size_t length = current - start;\n        unsigned int hash = _hash_buffer(start, length);\n        if (length >= kMinWordLength) {\n          if (!GET_BIT(cache, hash % kWordCacheSize)) {\n            Word word = {start, length};\n            GC_LIST_APPEND(list, &word);\n            SET_BIT(cache, hash % kWordCacheSize);\n          }\n        }\n        start = NULL;\n      }\n    } else {\n      if (start == NULL) {\n        start = current;\n      }\n    }\n    ++current;\n  } while (current <= max);\n\n  char space = ' ';\n  GC_LIST_FOR_LOOP_POINTER(list, wordPtr) {\n    [words appendBytes:wordPtr->start length:wordPtr->length];\n    [words appendBytes:&space length:1];\n  }\n\n  free(cache);\n  GC_LIST_FREE(list);\n}\n\n// We don't use the GCDiff wrappers because we need the best possible performance\n// TODO: Consider indexing file names\nstatic BOOL _ProcessDiff(git_repository* repo, git_commit* commit, git_commit* parent, NSMutableData* addedLines, NSMutableData* deletedLines) {\n  BOOL success = NO;\n  git_tree* newTree;\n  int status = git_commit_tree(&newTree, commit);\n  if (status == GIT_OK) {\n    git_tree* oldTree = NULL;\n    if (parent) {\n      status = git_commit_tree(&oldTree, parent);\n    }\n    if (status == GIT_OK) {\n      git_diff_options diffOptions = GIT_DIFF_OPTIONS_INIT;\n      diffOptions.ignore_submodules = GIT_SUBMODULE_IGNORE_ALL;\n      diffOptions.max_size = kMaxFileSizeForTextDiff;\n      diffOptions.context_lines = 0;\n      diffOptions.interhunk_lines = 0;\n      git_diff* diff;\n      status = git_diff_tree_to_tree(&diff, repo, oldTree, newTree, &diffOptions);\n      if (status == GIT_OK) {\n        git_diff_find_options findOptions = GIT_DIFF_FIND_OPTIONS_INIT;\n        findOptions.flags = GIT_DIFF_FIND_RENAMES;  // We need to find renames to avoid generated added/deleted lines when just renaming a file\n        status = git_diff_find_similar(diff, &findOptions);\n        if (status == GIT_OK) {\n          success = YES;\n          for (size_t i = 0, iMax = git_diff_num_deltas(diff); i < iMax; ++i) {\n            git_patch* patch;\n            status = git_patch_from_diff(&patch, diff, i);\n            if (status == GIT_OK) {\n              for (size_t j = 0, jMax = git_patch_num_hunks(patch); j < jMax; ++j) {\n                for (size_t k = 0, kMax = git_patch_num_lines_in_hunk(patch, j); k < kMax; ++k) {\n                  const git_diff_line* line;\n                  if (git_patch_get_line_in_hunk(&line, patch, j, k) == GIT_OK) {\n                    if (line->origin == GIT_DIFF_LINE_ADDITION) {\n                      [addedLines appendBytes:line->content length:line->content_len];\n                    } else if (line->origin == GIT_DIFF_LINE_DELETION) {\n                      [deletedLines appendBytes:line->content length:line->content_len];\n                    }\n                  } else {\n                    XLOG_DEBUG_UNREACHABLE();\n                    success = NO;\n                  }\n                }\n              }\n              git_patch_free(patch);\n            } else {\n              LOG_LIBGIT2_ERROR(status);\n              success = NO;\n              break;\n            }\n          }\n        } else {\n          LOG_LIBGIT2_ERROR(status);\n        }\n        git_diff_free(diff);\n      } else {\n        LOG_LIBGIT2_ERROR(status);\n      }\n      git_tree_free(oldTree);\n    } else {\n      LOG_LIBGIT2_ERROR(status);\n    }\n    git_tree_free(newTree);\n  } else {\n    LOG_LIBGIT2_ERROR(status);\n  }\n  return success;\n}\n\n- (BOOL)_addCommitsForTip:(const git_oid*)tipOID handler:(BOOL (^)())handler error:(NSError**)error {\n  BOOL success = NO;\n  GC_LIST_ALLOCATE(row, 16, Item);\n  GC_LIST_ALLOCATE(newRow, 16, Item);\n  git_commit* mainParent = NULL;\n  NSMutableData* addedLines = [[NSMutableData alloc] initWithCapacity:(64 * 1024)];\n  NSMutableData* deletedLines = [[NSMutableData alloc] initWithCapacity:(64 * 1024)];\n  NSMutableData* addedWords = [[NSMutableData alloc] initWithCapacity:(32 * 1024)];\n  NSMutableData* deletedWords = [[NSMutableData alloc] initWithCapacity:(32 * 1024)];\n  sqlite3_stmt** statements = _statements;\n  BOOL indexDiffs = _options & kGCCommitDatabaseOptions_IndexDiffs ? YES : NO;\n  git_commit* commit;\n  int result;\n  int status;\n  Item item;\n  const Item* itemPtr;\n\n  // Check if commit is already in database\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_FindCommitID], 1, tipOID, GIT_OID_RAWSZ, SQLITE_STATIC);\n  result = sqlite3_step(statements[kStatement_FindCommitID]);\n  if (result == SQLITE_ROW) {\n    sqlite3_int64 tipID = sqlite3_column_int64(statements[kStatement_FindCommitID], 0);\n    CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindCommitID]);\n\n    // Create tip\n    CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddTip], 1, tipID);\n    result = sqlite3_step(statements[kStatement_AddTip]);\n    CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n    CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddTip]);\n    XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n    // Retain commit\n    CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_RetainCommit], 1, tipID);\n    result = sqlite3_step(statements[kStatement_RetainCommit]);\n    CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n    CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_RetainCommit]);\n    XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n    success = YES;\n    goto cleanup;\n  }\n  CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindCommitID]);\n\n  // Load tip commit and queue it\n  status = git_commit_lookup(&commit, _repository.private, tipOID);\n  if (status == GIT_ENOTFOUND) {\n    XLOG_WARNING(@\"Missing tip commit %s from repository \\\"%@\\\"\", git_oid_tostr_s(tipOID), _repository.repositoryPath);\n    success = YES;\n    goto cleanup;\n  }\n  CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n  item.commit = commit;\n  item.childID = 0;\n  GC_LIST_APPEND(row, &item);\n\n  // Create commits for the tip and its ancestors\n  while (1) {\n    for (size_t i = 0; i < GC_LIST_COUNT(row); ++i) {\n      itemPtr = GC_LIST_ITEM_POINTER(row, i);\n      unsigned int parentCount = git_commit_parentcount(itemPtr->commit);\n      const git_signature* author = git_commit_author(itemPtr->commit);\n      const git_signature* committer = git_commit_committer(itemPtr->commit);\n\n      // Bind retain count (always 1 as the commit is either retained by the tip or by its parent)\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int, statements[kStatement_AddCommit], 1, 1);\n\n      // Bind commit SHA1\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_AddCommit], 2, git_commit_id(itemPtr->commit), GIT_OID_RAWSZ, SQLITE_STATIC);\n\n      // Bind commit date\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddCommit], 3, committer->when.time);\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int, statements[kStatement_AddCommit], 4, committer->when.offset);\n\n      // Bind commit author\n      sqlite3_int64 authorID;\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_FindUserID], 1, author->email, -1, SQLITE_STATIC);\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_FindUserID], 2, author->name, -1, SQLITE_STATIC);\n      result = sqlite3_step(statements[kStatement_FindUserID]);\n      if (result == SQLITE_ROW) {\n        authorID = sqlite3_column_int64(statements[kStatement_FindUserID], 0);\n      } else {\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n\n        // Create user\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddUser], 1, author->email, -1, SQLITE_STATIC);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddUser], 2, author->name, -1, SQLITE_STATIC);\n        result = sqlite3_step(statements[kStatement_AddUser]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        authorID = sqlite3_last_insert_rowid(_database);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddUser]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n        // Update users FTS\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddFTSUser], 1, authorID);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddFTSUser], 2, author->email, -1, SQLITE_STATIC);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddFTSUser], 3, author->name, -1, SQLITE_STATIC);\n        result = sqlite3_step(statements[kStatement_AddFTSUser]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddFTSUser]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n      }\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddCommit], 5, authorID);\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindUserID]);\n\n      // Bind commit committer\n      sqlite3_int64 committerID;\n      if (!strcmp(committer->email, author->email) && ((committer->name == author->name) || (committer->name && author->name && !strcmp(committer->name, author->name)))) {\n        committerID = authorID;  // Fast path for common case\n      } else {\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_FindUserID], 1, committer->email, -1, SQLITE_STATIC);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_FindUserID], 2, committer->name, -1, SQLITE_STATIC);\n        result = sqlite3_step(statements[kStatement_FindUserID]);\n        if (result == SQLITE_ROW) {\n          committerID = sqlite3_column_int64(statements[kStatement_FindUserID], 0);\n        } else {\n          CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n\n          // Create user\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddUser], 1, committer->email, -1, SQLITE_STATIC);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddUser], 2, committer->name, -1, SQLITE_STATIC);\n          result = sqlite3_step(statements[kStatement_AddUser]);\n          CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n          committerID = sqlite3_last_insert_rowid(_database);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddUser]);\n          XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n          // Update users FTS\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddFTSUser], 1, committerID);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddFTSUser], 2, committer->email, -1, SQLITE_STATIC);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddFTSUser], 3, committer->name, -1, SQLITE_STATIC);\n          result = sqlite3_step(statements[kStatement_AddFTSUser]);\n          CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddFTSUser]);\n          XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n        }\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindUserID]);\n      }\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddCommit], 6, committerID);\n\n// Bind commit parent SHA1s\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wvla\"\n      git_oid parents[parentCount];\n#pragma clang diagnostic pop\n      for (unsigned int j = 0; j < parentCount; ++j) {\n        git_oid_cpy(&parents[j], git_commit_parent_id(itemPtr->commit, j));\n      }\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_AddCommit], 7, parents, (int)sizeof(parents), SQLITE_STATIC);\n\n      // Bind commit message\n      const char* message = git_commit_message(itemPtr->commit);  // This already trims leading newlines\n      size_t length = strlen(message);\n      if (length) {\n        while (message[length - 1] == '\\n') {  // Trim trailing newlines\n          --length;\n        }\n      }\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddCommit], 8, message, (int)length, SQLITE_STATIC);\n\n      // Create commit\n      sqlite3_int64 commitID;\n      result = sqlite3_step(statements[kStatement_AddCommit]);\n      if (result == SQLITE_CONSTRAINT_UNIQUE) {  // This can happen when a row contains a commit that was already created while processing an earlier row\n        XLOG_DEBUG_CHECK(itemPtr->childID);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 0);\n        sqlite3_reset(statements[kStatement_AddCommit]);\n\n        // Commit already exists in database so just fetch its ID...\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_FindCommitID], 1, git_commit_id(itemPtr->commit), GIT_OID_RAWSZ, SQLITE_STATIC);\n        result = sqlite3_step(statements[kStatement_FindCommitID]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_ROW);\n        commitID = sqlite3_column_int64(statements[kStatement_FindCommitID], 0);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindCommitID]);\n\n        // ...and retain it because of relation we are about to create\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_RetainCommit], 1, commitID);\n        result = sqlite3_step(statements[kStatement_RetainCommit]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_RetainCommit]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n        // Don't follow parents later on\n        parentCount = 0;\n\n      } else {\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        commitID = sqlite3_last_insert_rowid(_database);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddCommit]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n        // Update messages FTS\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddFTSMessage], 1, commitID);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_AddFTSMessage], 2, message, (int)length, SQLITE_STATIC);\n        result = sqlite3_step(statements[kStatement_AddFTSMessage]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddFTSMessage]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n        // Update diffs FTS\n        if (indexDiffs) {\n          if (parentCount) {\n            status = git_commit_parent(&mainParent, itemPtr->commit, 0);\n          } else {\n            status = GIT_OK;\n          }\n          addedLines.length = 0;\n          deletedLines.length = 0;\n          if ((status == GIT_OK) && _ProcessDiff(_repository.private, itemPtr->commit, mainParent, addedLines, deletedLines)) {\n            if (addedLines.length || deletedLines.length) {\n              CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddFTSDiff], 1, commitID);\n              addedWords.length = 0;\n              _ExtractUniqueWordsFromLines(addedLines, addedWords);\n              CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_AddFTSDiff], 2, addedWords.bytes, (int)addedWords.length, SQLITE_STATIC);\n              deletedWords.length = 0;\n              _ExtractUniqueWordsFromLines(deletedLines, deletedWords);\n              CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_AddFTSDiff], 3, deletedWords.bytes, (int)deletedWords.length, SQLITE_STATIC);\n              result = sqlite3_step(statements[kStatement_AddFTSDiff]);\n              CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n              CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddFTSDiff]);\n              XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n            }\n          } else {\n            XLOG_WARNING(@\"Unable to compute diff for commit %s from repository \\\"%@\\\"\", git_oid_tostr_s(git_commit_id(itemPtr->commit)), _repository.repositoryPath);\n          }\n        }\n\n        // Call handler\n        if (!handler()) {\n          if (error) {\n            *error = GCNewError(kGCErrorCode_UserCancelled, @\"\");\n          }\n          goto cleanup;\n        }\n      }\n\n      // Create relation with child unless currently processing tip commit...\n      if (itemPtr->childID) {\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddRelation], 1, itemPtr->childID);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddRelation], 2, commitID);\n        result = sqlite3_step(statements[kStatement_AddRelation]);\n#if __UNIQUE_RELATIONS__\n        if (result == SQLITE_CONSTRAINT_UNIQUE) {  // This can happen for degenerated commits with duplicate parents\n          XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 0);\n          sqlite3_reset(statements[kStatement_AddRelation]);\n\n          // Release commit that was previously retained\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_ReleaseCommit], 1, commitID);\n          result = sqlite3_step(statements[kStatement_ReleaseCommit]);\n          CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_ReleaseCommit]);\n          XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n        } else\n#endif\n        {\n          CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddRelation]);\n          XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n        }\n      }\n      // ...in which case create tip instead\n      else {\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddTip], 1, commitID);\n        result = sqlite3_step(statements[kStatement_AddTip]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddTip]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n      }\n\n      // Follow parents unless already in database\n      for (unsigned int j = 0; j < parentCount; ++j) {\n        const git_oid* parentOID = git_commit_parent_id(itemPtr->commit, j);\n\n        // Check if parent is already in database\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_FindCommitID], 1, parentOID, GIT_OID_RAWSZ, SQLITE_STATIC);\n        result = sqlite3_step(statements[kStatement_FindCommitID]);\n        if (result == SQLITE_DONE) {\n          // Load parent commit and queue it\n          git_commit* parentCommit;\n          if (indexDiffs && (j == 0)) {\n            if (mainParent) {\n              parentCommit = mainParent;  // Fast path\n              mainParent = NULL;\n              status = GIT_OK;\n            } else {\n              parentCommit = NULL;  // Required to silence warning\n              status = GIT_ENOTFOUND;\n            }\n          } else {\n            status = git_commit_lookup(&parentCommit, _repository.private, parentOID);\n          }\n          if (status != GIT_ENOTFOUND) {\n            CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n            item.commit = parentCommit;\n            item.childID = commitID;\n            GC_LIST_APPEND(newRow, &item);\n          } else {\n            XLOG_WARNING(@\"Missing commit %s from repository \\\"%@\\\"\", git_oid_tostr_s(parentOID), _repository.repositoryPath);\n          }\n\n        } else {\n          CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_ROW);\n          sqlite3_int64 parentID = sqlite3_column_int64(statements[kStatement_FindCommitID], 0);\n\n          // Create relation with existing parent\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddRelation], 1, commitID);\n          CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_AddRelation], 2, parentID);\n          result = sqlite3_step(statements[kStatement_AddRelation]);\n#if __UNIQUE_RELATIONS__\n          if (result == SQLITE_CONSTRAINT_UNIQUE) {  // This can happen for degenerated commits with duplicate parents\n            XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 0);\n            sqlite3_reset(statements[kStatement_AddRelation]);\n          } else\n#endif\n          {\n            CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n            CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_AddRelation]);\n            XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n            // Retain existing parent\n            CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_RetainCommit], 1, parentID);\n            result = sqlite3_step(statements[kStatement_RetainCommit]);\n            CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n            CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_RetainCommit]);\n            XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n          }\n        }\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindCommitID]);\n      }\n\n      git_commit_free(mainParent);\n      mainParent = NULL;\n    }\n    GC_LIST_FOR_LOOP_POINTER(row, itemPtr) {\n      git_commit_free(itemPtr->commit);\n    }\n    GC_LIST_RESET(row);\n\n    // Check if there are no more commits to follow\n    if (GC_LIST_COUNT(newRow) == 0) {\n      break;\n    }\n    GC_LIST_SWAP(newRow, row);\n  }\n\n  // We're done\n  success = YES;\n\ncleanup:\n  [deletedWords release];\n  [addedWords release];\n  [deletedLines release];\n  [addedLines release];\n  git_commit_free(mainParent);\n  GC_LIST_FOR_LOOP_POINTER(newRow, itemPtr) {\n    git_commit_free(itemPtr->commit);\n  }\n  GC_LIST_FREE(newRow);\n  GC_LIST_FOR_LOOP_POINTER(row, itemPtr) {\n    git_commit_free(itemPtr->commit);\n  }\n  GC_LIST_FREE(row);\n  return success;\n}\n\n- (BOOL)_removeCommitsForTip:(const git_oid*)tipOID handler:(BOOL (^)())handler error:(NSError**)error {\n  BOOL success = NO;\n  GC_LIST_ALLOCATE(row, 16, sqlite3_int64);\n  GC_LIST_ALLOCATE(newRow, 16, sqlite3_int64);\n  sqlite3_stmt** statements = _statements;\n  sqlite3_int64* int64Ptr;\n  int result;\n\n  // Convert tip commit OID to tip commit ID and queue it\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_blob, statements[kStatement_FindCommitID], 1, tipOID, GIT_OID_RAWSZ, SQLITE_STATIC);\n  result = sqlite3_step(statements[kStatement_FindCommitID]);\n  if (result == SQLITE_DONE) {\n    XLOG_DEBUG_UNREACHABLE();\n    CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindCommitID]);\n    success = YES;\n    goto cleanup;\n  }\n  CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_ROW);\n  sqlite3_int64 tipID = sqlite3_column_int64(statements[kStatement_FindCommitID], 0);\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_FindCommitID]);\n  GC_LIST_APPEND(row, &tipID);\n\n  // Delete tip\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_DeleteTip], 1, tipID);\n  result = sqlite3_step(statements[kStatement_DeleteTip]);\n  CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_DeleteTip]);\n  XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n  // Release commit and all its ancestors\n  while (1) {\n    GC_LIST_FOR_LOOP_POINTER(row, int64Ptr) {\n      sqlite3_int64 commitID = *int64Ptr;\n      size_t oldCount = GC_LIST_COUNT(newRow);\n\n      // Follow and queue parents\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_LookupCommitParentIDs], 1, commitID);\n      result = sqlite3_step(statements[kStatement_LookupCommitParentIDs]);\n      while (result == SQLITE_ROW) {\n        sqlite3_int64 parentID = sqlite3_column_int64(statements[kStatement_LookupCommitParentIDs], 0);\n        GC_LIST_APPEND(newRow, &parentID);\n        result = sqlite3_step(statements[kStatement_LookupCommitParentIDs]);\n      }\n      CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_LookupCommitParentIDs]);\n\n      // Release commit\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_ReleaseCommit], 1, commitID);\n      result = sqlite3_step(statements[kStatement_ReleaseCommit]);\n      CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_ReleaseCommit]);\n      XLOG_DEBUG_CHECK(sqlite3_changes(_database) == 1);\n\n      // Attempt to delete commit if retain count is zero\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_DeleteOrphanCommit], 1, commitID);\n      result = sqlite3_step(statements[kStatement_DeleteOrphanCommit]);\n      CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n      CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_DeleteOrphanCommit]);\n      if (sqlite3_changes(_database) == 0) {\n        GC_LIST_TRUNCATE(newRow, oldCount);  // Dequeue parents if commit is still in use\n      } else {\n        // Delete corresponding relations\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_int64, statements[kStatement_DeleteCommitRelations], 1, commitID);\n        result = sqlite3_step(statements[kStatement_DeleteCommitRelations]);\n        CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n        CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_DeleteCommitRelations]);\n        XLOG_DEBUG_CHECK(sqlite3_changes(_database) > 0);\n\n        // Call handler\n        if (!handler()) {\n          if (error) {\n            *error = GCNewError(kGCErrorCode_UserCancelled, @\"\");\n          }\n          goto cleanup;\n        }\n      }\n    }\n    if (GC_LIST_COUNT(newRow) == 0) {\n      break;\n    }\n    GC_LIST_SWAP(newRow, row);\n    GC_LIST_RESET(newRow);\n  }\n\n  // We're done\n  success = YES;\n\ncleanup:\n  GC_LIST_FREE(newRow);\n  GC_LIST_FREE(row);\n  return success;\n}\n\n// TODO: Use a custom container instead of GC_LIST + CFSet combo\n// TODO: Vacuum database when needed (this is expensive as it actually copies the database to rebuild it)\n- (BOOL)updateWithProgressHandler:(GCCommitDatabaseProgressHandler)handler error:(NSError**)error {\n  XLOG_DEBUG_CHECK(!(_options & kGCCommitDatabaseOptions_QueryOnly));\n  BOOL success = NO;\n  GC_LIST_ALLOCATE(oldTips, 64, git_oid);\n  GC_LIST_ALLOCATE(newTips, 64, git_oid);\n  CFSetCallBacks callbacks = {0, GCOIDCopyCallBack, GCFreeReleaseCallBack, NULL, GCOIDEqualCallBack, GCOIDHashCallBack};\n  CFMutableSetRef oldSet = CFSetCreateMutable(kCFAllocatorDefault, 0, &callbacks);\n  CFMutableSetRef newSet = CFSetCreateMutable(kCFAllocatorDefault, 0, &callbacks);\n  sqlite3_stmt** statements = _statements;\n  __block NSUInteger addedCommits = 0;\n  __block NSUInteger removedCommits = 0;\n  CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n  int result;\n\n  // Load old tip SHA1 (already unique)\n  while (1) {\n    result = sqlite3_step(statements[kStatement_ListTipSHA1s]);\n    if (result == SQLITE_DONE) {\n      break;\n    }\n    CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_ROW);\n    XLOG_DEBUG_CHECK(sqlite3_column_bytes(statements[kStatement_ListTipSHA1s], 0) == GIT_OID_RAWSZ);\n    const git_oid* oid = sqlite3_column_blob(statements[kStatement_ListTipSHA1s], 0);\n    GC_LIST_APPEND(oldTips, oid);\n    XLOG_DEBUG_CHECK(!CFSetContainsValue(oldSet, oid));\n    CFSetAddValue(oldSet, oid);\n  }\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_ListTipSHA1s]);\n  XLOG_DEBUG_CHECK(_ready || !GC_LIST_COUNT(oldTips));\n\n  // Load new tips (ensure unique)\n  if (![_repository enumerateReferencesWithOptions:kGCReferenceEnumerationOption_IncludeHEAD\n                                             error:error\n                                        usingBlock:^BOOL(git_reference* reference) {\n                                          if (git_reference_type(reference) == GIT_REF_OID) {  // We don't care about symbolic references as they eventually point to a direct one anyway\n                                            const git_oid* oid = git_reference_target(reference);\n                                            git_object* object = NULL;\n                                            git_commit* commit = NULL;\n                                            int status = git_object_lookup(&object, _repository.private, oid, GIT_OBJ_ANY);\n                                            if (status == GIT_OK) {\n                                              if (git_object_type(object) == GIT_OBJ_COMMIT) {\n                                                commit = (git_commit*)object;\n                                                object = NULL;\n                                              } else if (git_object_type(object) == GIT_OBJ_TAG) {\n                                                status = git_object_peel((git_object**)&commit, object, GIT_OBJ_COMMIT);\n                                              } else {\n                                                XLOG_DEBUG_UNREACHABLE();\n                                                status = GIT_EUSER;\n                                              }\n                                            }\n                                            if (status == GIT_OK) {\n                                              oid = git_commit_id(commit);\n                                              if (!CFSetContainsValue(newSet, oid)) {\n                                                GC_LIST_APPEND(newTips, oid);\n                                                CFSetAddValue(newSet, oid);\n                                              }\n                                            } else if (status != GIT_EUSER) {\n                                              LOG_LIBGIT2_ERROR(status);\n                                            }\n                                            git_commit_free(commit);\n                                            git_object_free(object);\n                                          }\n                                          return YES;\n                                        }]) {\n    goto cleanup;\n  }\n\n  // Begin transaction\n  result = sqlite3_step(statements[kStatement_BeginTransaction]);\n  CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_BeginTransaction]);\n\n  // Find added tips\n  const git_oid* newTip;\n  GC_LIST_FOR_LOOP_POINTER(newTips, newTip) {\n    if (!CFSetContainsValue(oldSet, newTip)) {\n      if (![self _addCommitsForTip:newTip\n                           handler:^BOOL {\n                             ++addedCommits;\n                             return !handler || handler(!_ready, addedCommits, removedCommits);\n                           }\n                             error:error]) {\n        goto cleanup;\n      }\n    }\n  }\n\n  // Find removed tips\n  const git_oid* oldTip;\n  GC_LIST_FOR_LOOP_POINTER(oldTips, oldTip) {\n    if (!CFSetContainsValue(newSet, oldTip)) {\n      if (![self _removeCommitsForTip:oldTip\n                              handler:^BOOL {\n                                ++removedCommits;\n                                return !handler || handler(!_ready, addedCommits, removedCommits);\n                              }\n                                error:error]) {\n        goto cleanup;\n      }\n    }\n  }\n\n  // Finish database initialization if needed\n  if (!_ready) {\n    if (![self _initializeDeferredIndexes:error] || ![self _initializeTriggers:error]) {\n      goto cleanup;\n    }\n  }\n\n  // End transaction\n  result = sqlite3_step(statements[kStatement_EndTransaction]);\n  CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_EndTransaction]);\n\n  // WAL manual checkpoint (ignore errors)\n  result = sqlite3_wal_checkpoint_v2(_database, NULL, _ready ? SQLITE_CHECKPOINT_FULL : SQLITE_CHECKPOINT_TRUNCATE, NULL, NULL);\n  if (result != SQLITE_OK) {\n    XLOG_ERROR(@\"Failed checkpointing commit database at \\\"%@\\\" (%i): %s\", _databasePath, result, sqlite3_errmsg(_database));\n    XLOG_DEBUG_UNREACHABLE();\n  }\n\n  // We're done\n  XLOG_VERBOSE(@\"Commit database for \\\"%@\\\" %s in %.3f seconds (%lu added, %lu removed)\", _repository.repositoryPath, _ready ? \"updated\" : \"initialized\", CFAbsoluteTimeGetCurrent() - time, (unsigned long)addedCommits, (unsigned long)removedCommits);\n  _ready = YES;\n  success = YES;\n\n#if __CHECK_CONSISTENCY__\n  // Check consistency\n  [self _checkConsistency];\n#endif\n\ncleanup:\n  if (!success) {\n    for (int i = 0; i < kNumStatements; ++i) {\n      sqlite3_reset(_statements[i]);  // If the update failed, make sure to reset all statements to ensure they are in clean state for next time and release the database writer lock\n    }\n  }\n  CFRelease(newSet);\n  CFRelease(oldSet);\n  GC_LIST_FREE(newTips);\n  GC_LIST_FREE(oldTips);\n  return success;\n}\n\n- (NSArray*)findCommitsMatching:(NSString*)match error:(NSError**)error {\n  return [self findCommitsUsingHistory:nil matching:match error:error];\n}\n\n- (NSArray*)findCommitsUsingHistory:(GCHistory*)history matching:(NSString*)match error:(NSError**)error {\n  BOOL success = NO;\n  NSMutableArray* results = [NSMutableArray array];\n  sqlite3_stmt** statements = _statements;\n\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_bind_text, statements[kStatement_SearchCommits], 1, match.UTF8String, -1, SQLITE_STATIC);\n  while (1) {\n    int result = sqlite3_step(statements[kStatement_SearchCommits]);\n    if (result != SQLITE_ROW) {\n      CHECK_SQLITE_FUNCTION_CALL(goto cleanup, result, == SQLITE_DONE);\n      break;\n    }\n    XLOG_DEBUG_CHECK(sqlite3_column_bytes(statements[kStatement_SearchCommits], 0) == GIT_OID_RAWSZ);\n    const git_oid* oid = sqlite3_column_blob(statements[kStatement_SearchCommits], 0);\n    if (history) {\n      GCHistoryCommit* commit = [history historyCommitForOID:oid];\n      if (commit) {\n        [results addObject:commit];\n      }\n    } else {\n      git_commit* rawCommit;\n      int status = git_commit_lookup(&rawCommit, _repository.private, oid);\n      if (status == GIT_ENOTFOUND) {\n        continue;\n      }\n      CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n      GCCommit* commit = [[GCCommit alloc] initWithRepository:_repository commit:rawCommit];\n      [results addObject:commit];\n      [commit release];\n    }\n  }\n  CALL_SQLITE_FUNCTION_GOTO(cleanup, sqlite3_reset, statements[kStatement_SearchCommits]);\n  success = YES;\n\ncleanup:\n  if (!success) {\n    sqlite3_reset(statements[kStatement_SearchCommits]);\n  }\n  return success ? results : nil;\n}\n\n#if __CHECK_CONSISTENCY__\n\n// TODO: Test users table consistency\n- (void)_checkConsistency {\n  sqlite3_stmt* statement1;\n  if (sqlite3_prepare_v2(_database, \"SELECT _id_, retain_count FROM \" kCommitsTableName, -1, &statement1, NULL) == SQLITE_OK) {\n    sqlite3_stmt* statement2;\n    if (sqlite3_prepare_v2(_database, \"SELECT COUNT(*) FROM \" kRelationsTableName \" WHERE parent=?1\", -1, &statement2, NULL) == SQLITE_OK) {\n      sqlite3_stmt* statement3;\n      if (sqlite3_prepare_v2(_database, \"SELECT 1 FROM \" kTipsTableName \" WHERE `commit`=?1\", -1, &statement3, NULL) == SQLITE_OK) {\n        while (1) {\n          int result = sqlite3_step(statement1);\n          if (result != SQLITE_ROW) {\n            XLOG_DEBUG_CHECK(result == SQLITE_DONE);\n            break;\n          }\n          sqlite3_int64 commitID = sqlite3_column_int64(statement1, 0);\n          int retainCount = sqlite3_column_int(statement1, 1);\n\n          sqlite3_bind_int64(statement2, 1, commitID);\n          if (sqlite3_step(statement2) != SQLITE_ROW) {\n            XLOG_DEBUG_UNREACHABLE();\n            break;\n          }\n          int count = sqlite3_column_int(statement2, 0);\n          sqlite3_reset(statement2);\n\n          sqlite3_bind_int64(statement3, 1, commitID);\n          result = sqlite3_step(statement3);\n          if (result == SQLITE_ROW) {\n            count += 1;\n          } else {\n            XLOG_DEBUG_CHECK(result == SQLITE_DONE);\n          }\n          sqlite3_reset(statement3);\n\n          XLOG_DEBUG_CHECK(count == retainCount);\n        }\n        sqlite3_finalize(statement3);\n      }\n      sqlite3_finalize(statement2);\n    }\n    sqlite3_finalize(statement1);\n  }\n}\n\n#endif\n\n#if DEBUG\n\n- (NSUInteger)_countRowsForTable:(const char*)table {\n  NSUInteger count = NSNotFound;\n  sqlite3_stmt* statement;\n  if (sqlite3_prepare_v2(_database, [[NSString stringWithFormat:@\"SELECT COUNT(*) FROM %s\", table] UTF8String], -1, &statement, NULL) == SQLITE_OK) {\n    if (sqlite3_step(statement) == SQLITE_ROW) {\n      count = sqlite3_column_int(statement, 0);\n    }\n    sqlite3_finalize(statement);\n  }\n  return count;\n}\n\n- (NSUInteger)countTips {\n  return [self _countRowsForTable:kTipsTableName];\n}\n\n- (NSUInteger)countCommits {\n  return [self _countRowsForTable:kCommitsTableName];\n}\n\n- (NSUInteger)countRelations {\n  return [self _countRowsForTable:kRelationsTableName];\n}\n\n- (NSUInteger)totalCommitRetainCount {\n  NSUInteger count = NSNotFound;\n  sqlite3_stmt* statement;\n  if (sqlite3_prepare_v2(_database, \"SELECT SUM(retain_count) FROM \" kCommitsTableName, -1, &statement, NULL) == SQLITE_OK) {\n    if (sqlite3_step(statement) == SQLITE_ROW) {\n      count = sqlite3_column_int(statement, 0);\n    }\n    sqlite3_finalize(statement);\n  }\n  return count;\n}\n\n#endif\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"[%@] \\\"%@\\\"\", self.class, _databasePath];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCCore.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCBranch.h\"\n#import \"GCCommit.h\"\n#import \"GCCommitDatabase.h\"\n#import \"GCDiff.h\"\n#import \"GCError.h\"\n#import \"GCFoundation.h\"\n#import \"GCFunctions.h\"\n#import \"GCHistory.h\"\n#import \"GCIndex.h\"\n#if !TARGET_OS_IPHONE\n#import \"GCLiveRepository.h\"\n#endif\n#import \"GCMacros.h\"\n#import \"GCObject.h\"\n#import \"GCOrderedSet.h\"\n#import \"GCReference.h\"\n#import \"GCSnapshot.h\"\n#import \"GCReferenceTransform.h\"\n#import \"GCReflogMessages.h\"\n#import \"GCRemote.h\"\n#import \"GCRepository.h\"\n#import \"GCRepository+Bare.h\"\n#import \"GCRepository+Config.h\"\n#import \"GCRepository+HEAD.h\"\n#import \"GCRepository+Mock.h\"\n#import \"GCRepository+Reflog.h\"\n#import \"GCRepository+Reset.h\"\n#import \"GCRepository+Status.h\"\n#import \"GCSQLiteRepository.h\"\n#import \"GCStash.h\"\n#import \"GCSubmodule.h\"\n#import \"GCTag.h\"\n"
  },
  {
    "path": "GitUpKit/Core/GCDiff-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCRepository_Diffs)\n\n- (NSString*)_stringFromDiff:(GCDiff*)diff includeFile:(BOOL)includeFile {\n  NSMutableString* string = [[NSMutableString alloc] init];\n  for (GCDiffDelta* delta in diff.deltas) {\n    if (includeFile) {\n      [string appendFormat:@\"%@ > %@\\n\", delta.oldFile.path, delta.newFile.path];\n    }\n    GCDiffPatch* patch = [self.repository makePatchForDiffDelta:delta isBinary:NULL error:NULL];\n    [patch enumerateUsingBeginHunkHandler:NULL\n                              lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n                                switch (change) {\n                                  case kGCLineDiffChange_Unmodified:\n                                    [string appendString:@\"  \"];\n                                    break;\n                                  case kGCLineDiffChange_Added:\n                                    [string appendString:@\"+ \"];\n                                    break;\n                                  case kGCLineDiffChange_Deleted:\n                                    [string appendString:@\"- \"];\n                                    break;\n                                }\n                                NSString* line = [[NSString alloc] initWithBytes:contentBytes length:contentLength encoding:NSUTF8StringEncoding];\n                                [string appendString:line];\n                              }\n                           endHunkHandler:NULL];\n  }\n  return string;\n}\n\n- (NSString*)_stringFromDiffingFileInWorkingDirectoryWithIndex:(NSString*)path {\n  GCDiff* diff = [self.repository diffWorkingDirectoryWithRepositoryIndex:path options:kGCDiffOption_IncludeUntracked maxInterHunkLines:0 maxContextLines:0 error:NULL];\n  return [self _stringFromDiff:diff includeFile:NO];\n}\n\n- (NSString*)_stringFromDiffingFileInIndexWithHEAD:(NSString*)path {\n  GCDiff* diff = [self.repository diffRepositoryIndexWithHEAD:path options:0 maxInterHunkLines:0 maxContextLines:0 error:NULL];\n  return [self _stringFromDiff:diff includeFile:NO];\n}\n\n- (NSString*)_stringFromDiffingWorkingDirectoryWithIndex {\n  GCDiff* diff = [self.repository diffWorkingDirectoryWithRepositoryIndex:nil options:kGCDiffOption_IncludeUntracked maxInterHunkLines:0 maxContextLines:0 error:NULL];\n  return [self _stringFromDiff:diff includeFile:YES];\n}\n\n- (NSString*)_stringFromDiffingIndexWithHEAD {\n  GCDiff* diff = [self.repository diffRepositoryIndexWithHEAD:nil options:0 maxInterHunkLines:0 maxContextLines:0 error:NULL];\n  return [self _stringFromDiff:diff includeFile:YES];\n}\n\n- (void)testDiffs {\n  // Make sure we have no diffs\n  XCTAssertEqualObjects([self _stringFromDiffingFileInWorkingDirectoryWithIndex:@\"hello_world.txt\"], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingFileInIndexWithHEAD:@\"hello_world.txt\"], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingWorkingDirectoryWithIndex], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingIndexWithHEAD], @\"\");\n\n  // Modify file in working directory\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\\n\"];\n  XCTAssertEqualObjects([self _stringFromDiffingFileInWorkingDirectoryWithIndex:@\"hello_world.txt\"], @\"- Hello World!\\n+ Bonjour le monde!\\n\");\n  XCTAssertEqualObjects([self _stringFromDiffingFileInIndexWithHEAD:@\"hello_world.txt\"], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingWorkingDirectoryWithIndex], @\"hello_world.txt > hello_world.txt\\n- Hello World!\\n+ Bonjour le monde!\\n\");\n  XCTAssertEqualObjects([self _stringFromDiffingIndexWithHEAD], @\"\");\n\n  // Add modified file to index\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n  XCTAssertEqualObjects([self _stringFromDiffingFileInWorkingDirectoryWithIndex:@\"hello_world.txt\"], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingFileInIndexWithHEAD:@\"hello_world.txt\"], @\"- Hello World!\\n+ Bonjour le monde!\\n\");\n  XCTAssertEqualObjects([self _stringFromDiffingWorkingDirectoryWithIndex], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingIndexWithHEAD], @\"hello_world.txt > hello_world.txt\\n- Hello World!\\n+ Bonjour le monde!\\n\");\n\n  // Add new file to working directory\n  [self updateFileAtPath:@\"test.txt\" withString:@\"This is a test\\n\"];\n  XCTAssertEqualObjects([self _stringFromDiffingFileInWorkingDirectoryWithIndex:@\"test.txt\"], @\"+ This is a test\\n\");\n  XCTAssertEqualObjects([self _stringFromDiffingFileInIndexWithHEAD:@\"test.txt\"], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingWorkingDirectoryWithIndex], @\"test.txt > (null)\\n+ This is a test\\n\");\n  XCTAssertEqualObjects([self _stringFromDiffingIndexWithHEAD], @\"hello_world.txt > hello_world.txt\\n- Hello World!\\n+ Bonjour le monde!\\n\");\n\n  // Add new file to index\n  XCTAssertTrue([self.repository addFileToIndex:@\"test.txt\" error:NULL]);\n  XCTAssertEqualObjects([self _stringFromDiffingFileInWorkingDirectoryWithIndex:@\"test.txt\"], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingFileInIndexWithHEAD:@\"test.txt\"], @\"+ This is a test\\n\");\n  XCTAssertEqualObjects([self _stringFromDiffingWorkingDirectoryWithIndex], @\"\");\n  XCTAssertEqualObjects([self _stringFromDiffingIndexWithHEAD], @\"hello_world.txt > hello_world.txt\\n- Hello World!\\n+ Bonjour le monde!\\n(null) > test.txt\\n+ This is a test\\n\");\n\n  // Strip trailing newline from file in working directory\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\"];\n  XCTAssertEqualObjects([self _stringFromDiffingFileInWorkingDirectoryWithIndex:@\"hello_world.txt\"], @\"- Bonjour le monde!\\n+ Bonjour le monde!\");\n\n  // Commit changes\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n  GCCommit* newCommit = [self.repository createCommitFromHEADWithMessage:@\"Update\" error:NULL];\n  XCTAssertNotNil(newCommit);\n\n  // Diff commits\n  GCDiff* diff = [self.repository diffCommit:newCommit\n                                  withCommit:self.initialCommit\n                                 filePattern:nil\n                                     options:(kGCDiffOption_FindRenames | kGCDiffOption_FindCopies)\n                           maxInterHunkLines:0\n                             maxContextLines:0\n                                       error:NULL];\n  XCTAssertNotNil(diff);\n  XCTAssertEqual(diff.deltas.count, 2);\n  __block int count = 0;\n  for (GCDiffDelta* delta in diff.deltas) {\n    GCDiffPatch* patch = [self.repository makePatchForDiffDelta:delta isBinary:NULL error:NULL];\n    XCTAssertNotNil(patch);\n    [patch\n        enumerateUsingBeginHunkHandler:^(NSUInteger oldLineNumber, NSUInteger oldLineCount, NSUInteger newLineNumber, NSUInteger newLineCount) {\n          ++count;  // 2 x 1 hunks\n        }\n        lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n          ++count;  // 2 + 1 lines\n        }\n        endHunkHandler:^{\n          ;\n        }];\n  }\n  XCTAssertEqual(count, 5);\n\n  // Diff commits again\n  GCDiff* diff2 = [self.repository diffCommit:newCommit\n                                   withCommit:self.initialCommit\n                                  filePattern:nil\n                                      options:(kGCDiffOption_FindRenames | kGCDiffOption_FindCopies)\n                            maxInterHunkLines:0\n                              maxContextLines:0\n                                        error:NULL];\n  XCTAssertNotNil(diff2);\n  XCTAssertTrue([diff2 isEqualToDiff:diff]);\n}\n\n- (void)testUnifiedDiff {\n  // Add some files & commit changes\n  [self updateFileAtPath:@\".gitignore\" withString:@\"ignored.txt\\n\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\".gitignore\" error:NULL]);\n  [self updateFileAtPath:@\"modified.txt\" withString:@\"\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"modified.txt\" error:NULL]);\n  [self updateFileAtPath:@\"deleted.txt\" withString:@\"\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"deleted.txt\" error:NULL]);\n  [self updateFileAtPath:@\"renamed1.txt\" withString:@\"Nothing to see here!\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"renamed1.txt\" error:NULL]);\n  [self updateFileAtPath:@\"type-changed.txt\" withString:@\"\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"type-changed.txt\" error:NULL]);\n\n  NSArray* files = @[ @\".gitignore\", @\"modified.txt\", @\"deleted.txt\", @\"renamed1.txt\", @\"type-changed.txt\" ];\n\n  // Test adding and removing multiple files\n  XCTAssertTrue([self.repository removeFilesFromIndex:files error:NULL]);\n  XCTAssertEqual([self.repository checkIndexStatus:NULL].deltas.count, 0);\n\n  XCTAssertTrue([self.repository addFilesToIndex:files error:NULL]);\n  XCTAssertEqual([self.repository checkIndexStatus:NULL].deltas.count, 5);\n\n  XCTAssertNotNil([self.repository createCommitFromHEADWithMessage:@\"Update\" error:NULL]);\n\n  // Touch files\n  [self updateFileAtPath:@\"ignored.txt\" withString:@\"\"];\n  [self updateFileAtPath:@\"modified.txt\" withString:@\"Hi there!\"];\n  [self updateFileAtPath:@\"added.txt\" withString:@\"This is a test\"];\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"deleted.txt\"] error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] moveItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"renamed1.txt\"] toPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"renamed2.txt\"] error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"type-changed.txt\"] error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] createSymbolicLinkAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"type-changed.txt\"] withDestinationPath:@\"hello_world.txt\" error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] copyItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"hello_world.txt\"] toPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"copied.txt\"] error:NULL]);\n\n  // Stage some files\n  XCTAssertTrue([self.repository addFileToIndex:@\"modified.txt\" error:NULL]);\n  files = @[ @\"deleted.txt\", @\"renamed1.txt\" ];\n  XCTAssertTrue([self.repository removeFilesFromIndex:files error:NULL]);\n  XCTAssertTrue([self.repository addFileToIndex:@\"renamed2.txt\" error:NULL]);\n  XCTAssertTrue([self.repository addFileToIndex:@\"added.txt\" error:NULL]);\n\n  GCDiff* diff = [self.repository diffWorkingDirectoryWithHEAD:nil\n                                                       options:(kGCDiffOption_FindTypeChanges | kGCDiffOption_FindRenames | kGCDiffOption_FindCopies | kGCDiffOption_IncludeUnmodified | kGCDiffOption_IncludeUntracked | kGCDiffOption_IncludeIgnored)\n                                             maxInterHunkLines:0\n                                               maxContextLines:3\n                                                         error:NULL];\n  XCTAssertNotNil(diff);\n  XCTAssertEqual([diff changeForFile:@\".gitignore\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([diff changeForFile:@\"added.txt\"], kGCFileDiffChange_Added);\n  XCTAssertEqual([diff changeForFile:@\"copied.txt\"], kGCFileDiffChange_Copied);\n  XCTAssertEqual([diff changeForFile:@\"deleted.txt\"], kGCFileDiffChange_Deleted);\n  XCTAssertEqual([diff changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([diff changeForFile:@\"ignored.txt\"], kGCFileDiffChange_Ignored);\n  XCTAssertEqual([diff changeForFile:@\"modified.txt\"], kGCFileDiffChange_Modified);\n  XCTAssertEqual([diff changeForFile:@\"renamed1.txt\"], NSNotFound);  // ?\n  XCTAssertEqual([diff changeForFile:@\"renamed2.txt\"], kGCFileDiffChange_Renamed);\n  XCTAssertEqual([diff changeForFile:@\"type-changed.txt\"], kGCFileDiffChange_TypeChanged);\n}\n\n- (void)testDiffFileExport {\n  GCDiff* diff = [self.repository diffWorkingDirectoryWithHEAD:nil options:kGCDiffOption_IncludeUnmodified maxInterHunkLines:0 maxContextLines:0 error:NULL];\n  XCTAssertNotNil(diff);\n  XCTAssertEqual(diff.deltas.count, 1);\n  GCDiffDelta* delta = diff.deltas[0];\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n  XCTAssertTrue([self.repository exportBlobWithSHA1:delta.oldFile.SHA1 toPath:path error:NULL]);\n}\n\n- (void)testDiffIndexes {\n  GCIndex* repositoryIndex = [self.repository readRepositoryIndex:NULL];\n  XCTAssertNotNil(repositoryIndex);\n  GCIndex* memoryIndex = [self.repository createInMemoryIndex:NULL];\n  XCTAssertNotNil(memoryIndex);\n  GCDiff* diff = [self.repository diffIndex:memoryIndex withIndex:repositoryIndex filePattern:nil options:0 maxInterHunkLines:0 maxContextLines:0 error:NULL];\n  XCTAssertNotNil(diff);\n  XCTAssertEqual(diff.deltas.count, 1);\n  GCDiffDelta* delta = diff.deltas[0];\n  XCTAssertEqual(delta.change, kGCFileDiffChange_Deleted);\n  XCTAssertEqualObjects(delta.canonicalPath, @\"hello_world.txt\");\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCDiff.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_ENUM(NSUInteger, GCDiffType) {\n  kGCDiffType_WorkingDirectoryWithCommit = 0,\n  kGCDiffType_WorkingDirectoryWithIndex,\n  kGCDiffType_IndexWithCommit,\n  kGCDiffType_CommitWithCommit,\n  kGCDiffType_IndexWithIndex\n};\n\ntypedef NS_OPTIONS(NSUInteger, GCDiffOptions) {\n  kGCDiffOption_IncludeUnmodified = (1 << 0),\n  kGCDiffOption_IncludeUntracked = (1 << 1),\n  kGCDiffOption_IncludeIgnored = (1 << 2),\n  kGCDiffOption_FindTypeChanges = (1 << 3),\n  kGCDiffOption_FindRenames = (1 << 4),\n  kGCDiffOption_FindCopies = (1 << 5),  // Requires kGCDiffOption_IncludeUnmodified for best results\n  kGCDiffOption_Reverse = (1 << 6),\n  kGCDiffOption_IgnoreSpaceChanges = (1 << 7),\n  kGCDiffOption_IgnoreAllSpaces = (1 << 8)\n};\n\ntypedef NS_ENUM(NSUInteger, GCLineDiffChange) {\n  kGCLineDiffChange_Unmodified = 0,\n  kGCLineDiffChange_Added,\n  kGCLineDiffChange_Deleted\n};\n\ntypedef NS_ENUM(NSUInteger, GCFileDiffChange) {\n  kGCFileDiffChange_Unmodified = 0,\n  kGCFileDiffChange_Ignored,\n  kGCFileDiffChange_Untracked,\n  kGCFileDiffChange_Unreadable,\n\n  kGCFileDiffChange_Added,\n  kGCFileDiffChange_Deleted,\n  kGCFileDiffChange_Modified,\n\n  kGCFileDiffChange_Renamed,\n  kGCFileDiffChange_Copied,\n  kGCFileDiffChange_TypeChanged,\n\n  kGCFileDiffChange_Conflicted\n};\n\n@class GCIndex, GCCommit, GCDiff, GCDiffFile;\n\ntypedef void (^GCDiffBeginHunkHandler)(NSUInteger oldLineNumber, NSUInteger oldLineCount, NSUInteger newLineNumber, NSUInteger newLineCount);\ntypedef void (^GCDiffLineHandler)(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength);\ntypedef void (^GCDiffEndHunkHandler)(void);\n\n@interface GCDiffFile : NSObject\n@property(nonatomic, readonly) NSString* path;\n@property(nonatomic, readonly) GCFileMode mode;\n@property(nonatomic, readonly) NSString* SHA1;  // May be nil if not in index\n@end\n\n/* \"x\" means non-nil, \"-\" means nil and [X] means canonical path\n\n                Old       New\n Unmodified     [X]        -\n Ignored        [X]        -\n Untracked      [X]        -\n Unreadable     [X]        -\n\n Added           -        [X]\n Deleted        [X]        -\n Modified        x        [X]\n\n Renamed         x        [X]\n Copied          x        [X]\n TypeChanged     x        [X]\n\n Conflicted      x        [X]\n */\n@interface GCDiffDelta : NSObject\n@property(nonatomic, readonly) GCDiff* diff;  // NOT RETAINED\n@property(nonatomic) GCFileDiffChange change;\n@property(nonatomic, readonly) GCDiffFile* oldFile;\n@property(nonatomic, readonly) GCDiffFile* newFile;\n@property(nonatomic, readonly) NSString* canonicalPath;\n- (GCDiffFile*)newFile __attribute__((objc_method_family(none)));  // Work around Clang error for property starting with \"new\" under ARC\n@end\n\n@interface GCDiffDelta (Extensions)\n@property(nonatomic, readonly, getter=isSubmodule) BOOL submodule;\n- (BOOL)isEqualToDelta:(GCDiffDelta*)delta;\n@end\n\n@interface GCDiff : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) GCDiffType type;\n@property(nonatomic, readonly) GCDiffOptions options;\n@property(nonatomic, readonly) NSUInteger maxInterHunkLines;\n@property(nonatomic, readonly) NSUInteger maxContextLines;\n@property(nonatomic, readonly, getter=isModified) BOOL modified;  // Ignores unmodified files\n@property(nonatomic, readonly) BOOL hasChanges;  // Ignores unmodified and untracked files\n@property(nonatomic, readonly) NSArray* deltas;\n@end\n\n@interface GCDiff (Extensions)\n- (BOOL)isEqualToDiff:(GCDiff*)diff;\n@end\n\n@interface GCDiffPatch : NSObject\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;\n- (void)enumerateUsingBeginHunkHandler:(GCDiffBeginHunkHandler)beginHunkHandler\n                           lineHandler:(GCDiffLineHandler)lineHandler\n                        endHunkHandler:(GCDiffEndHunkHandler)endHunkHandler;\n@end\n\n@interface GCRepository (GCDiff)\n- (GCDiff*)diffWorkingDirectoryWithCommit:(GCCommit*)commit  // May be nil\n                               usingIndex:(GCIndex*)index  // Pass nil for repository index\n                              filePattern:(NSString*)filePattern  // May be nil\n                                  options:(GCDiffOptions)options\n                        maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                          maxContextLines:(NSUInteger)maxContextLines\n                                    error:(NSError**)error;  // (?)\n\n- (GCDiff*)diffWorkingDirectoryWithIndex:(GCIndex*)index  // Pass nil for repository index\n                             filePattern:(NSString*)filePattern  // May be nil\n                                 options:(GCDiffOptions)options\n                       maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                         maxContextLines:(NSUInteger)maxContextLines\n                                   error:(NSError**)error;  // (?)\n\n- (GCDiff*)diffIndex:(GCIndex*)index  // Pass nil for repository index\n           withCommit:(GCCommit*)commit  // May be nil\n          filePattern:(NSString*)filePattern  // May be nil\n              options:(GCDiffOptions)options\n    maxInterHunkLines:(NSUInteger)maxInterHunkLines\n      maxContextLines:(NSUInteger)maxContextLines\n                error:(NSError**)error;  // (?)\n\n- (GCDiff*)diffCommit:(GCCommit*)newCommit\n           withCommit:(GCCommit*)oldCommit  // May be nil\n          filePattern:(NSString*)filePattern  // May be nil\n              options:(GCDiffOptions)options\n    maxInterHunkLines:(NSUInteger)maxInterHunkLines\n      maxContextLines:(NSUInteger)maxContextLines\n                error:(NSError**)error;  // git diff {old_commit} {new_commit}\n\n- (GCDiff*)diffIndex:(GCIndex*)newIndex\n            withIndex:(GCIndex*)oldIndex\n          filePattern:(NSString*)filePattern  // May be nil\n              options:(GCDiffOptions)options\n    maxInterHunkLines:(NSUInteger)maxInterHunkLines\n      maxContextLines:(NSUInteger)maxContextLines\n                error:(NSError**)error;  // (?)\n\n- (GCDiff*)diffWorkingDirectoryWithHEAD:(NSString*)filePattern  // May be nil\n                                options:(GCDiffOptions)options\n                      maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                        maxContextLines:(NSUInteger)maxContextLines\n                                  error:(NSError**)error;  // git diff HEAD\n\n- (GCDiff*)diffWorkingDirectoryWithRepositoryIndex:(NSString*)filePattern  // May be nil\n                                           options:(GCDiffOptions)options\n                                 maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                                   maxContextLines:(NSUInteger)maxContextLines\n                                             error:(NSError**)error;  // git diff\n\n- (GCDiff*)diffRepositoryIndexWithHEAD:(NSString*)filePattern  // May be nil\n                               options:(GCDiffOptions)options\n                     maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                       maxContextLines:(NSUInteger)maxContextLines\n                                 error:(NSError**)error;  // git diff --cached\n\n- (BOOL)mergeDiff:(GCDiff*)diff ontoDiff:(GCDiff*)ontoDiff error:(NSError**)error;  // Merge diffs the same way Git does for \"git diff <sha>\"\n\n- (GCDiffPatch*)makePatchForDiffDelta:(GCDiffDelta*)delta isBinary:(BOOL*)isBinary error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCDiff.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n#define kMaxFileSizeForTextDiff (8 * 1024 * 1024)  // libgit2 default is 512 MiB\n\nstatic inline GCFileDiffChange _FileDiffChangeFromStatus(git_delta_t status) {\n  switch (status) {\n    case GIT_DELTA_UNMODIFIED:\n      return kGCFileDiffChange_Unmodified;\n    case GIT_DELTA_ADDED:\n      return kGCFileDiffChange_Added;\n    case GIT_DELTA_DELETED:\n      return kGCFileDiffChange_Deleted;\n    case GIT_DELTA_MODIFIED:\n      return kGCFileDiffChange_Modified;\n    case GIT_DELTA_RENAMED:\n      return kGCFileDiffChange_Renamed;\n    case GIT_DELTA_COPIED:\n      return kGCFileDiffChange_Copied;\n    case GIT_DELTA_IGNORED:\n      return kGCFileDiffChange_Ignored;\n    case GIT_DELTA_UNTRACKED:\n      return kGCFileDiffChange_Untracked;\n    case GIT_DELTA_TYPECHANGE:\n      return kGCFileDiffChange_TypeChanged;\n    case GIT_DELTA_UNREADABLE:\n      return kGCFileDiffChange_Unreadable;\n    case GIT_DELTA_CONFLICTED:\n      return kGCFileDiffChange_Conflicted;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\n@implementation GCDiffFile {\n  git_oid _oid;\n}\n\n- (id)initWithDiffFile:(const git_diff_file*)file {\n  if ((self = [super init])) {\n    _path = GCFileSystemPathFromGitPath(file->path);\n    _mode = GCFileModeFromMode(file->mode);\n    git_oid_cpy(&_oid, &file->id);\n    if (_path == nil) {\n      XLOG_DEBUG_UNREACHABLE();\n      return nil;\n    }\n  }\n  return self;\n}\n\n- (const git_oid*)OID {\n  return &_oid;\n}\n\n- (NSString*)SHA1 {\n  return GCGitOIDToSHA1(&_oid);\n}\n\n- (NSString*)description {\n  static char modes[] = {' ', 'T', 'B', 'X', 'L', 'C'};\n  return [NSString stringWithFormat:@\"%@ \\\"%@\\\" (%c) {%s}\", self.class, _path, modes[_mode], git_oid_tostr_s(&_oid)];\n}\n\n@end\n\n@implementation GCDiffPatch\n\n- (instancetype)initWithPatch:(git_patch*)patch {\n  if ((self = [super init])) {\n    _private = patch;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_patch_free(_private);\n}\n\n- (BOOL)isEmpty {\n  return (git_patch_num_hunks(_private) == 0);\n}\n\n- (void)enumerateUsingBeginHunkHandler:(GCDiffBeginHunkHandler)beginHunkHandler\n                           lineHandler:(GCDiffLineHandler)lineHandler\n                        endHunkHandler:(GCDiffEndHunkHandler)endHunkHandler {\n  for (size_t i = 0, iMax = git_patch_num_hunks(_private); i < iMax; ++i) {\n    if (beginHunkHandler) {\n      const git_diff_hunk* hunk;\n      if (git_patch_get_hunk(&hunk, NULL, _private, i) == GIT_OK) {\n        beginHunkHandler(hunk->old_start, hunk->old_lines, hunk->new_start, hunk->new_lines);\n      } else {\n        XLOG_DEBUG_UNREACHABLE();\n        continue;\n      }\n    }\n    if (lineHandler) {\n      for (size_t j = 0, jMax = git_patch_num_lines_in_hunk(_private, i); j < jMax; ++j) {\n        const git_diff_line* line;\n        if (git_patch_get_line_in_hunk(&line, _private, i, j) == GIT_OK) {\n          switch (line->origin) {\n            case GIT_DIFF_LINE_CONTEXT:\n              lineHandler(kGCLineDiffChange_Unmodified, line->old_lineno, line->new_lineno, line->content, line->content_len);\n              break;\n\n            case GIT_DIFF_LINE_ADDITION:\n              lineHandler(kGCLineDiffChange_Added, NSNotFound, line->new_lineno, line->content, line->content_len);\n              break;\n\n            case GIT_DIFF_LINE_DELETION:\n              lineHandler(kGCLineDiffChange_Deleted, line->old_lineno, NSNotFound, line->content, line->content_len);\n              break;\n\n            case GIT_DIFF_LINE_CONTEXT_EOFNL:\n            case GIT_DIFF_LINE_ADD_EOFNL:\n            case GIT_DIFF_LINE_DEL_EOFNL:\n              break;\n\n            default:\n              XLOG_DEBUG_UNREACHABLE();\n              break;\n          }\n        } else {\n          XLOG_DEBUG_UNREACHABLE();\n        }\n      }\n    }\n    if (endHunkHandler) {\n      endHunkHandler();\n    }\n  }\n}\n\n- (NSString*)description {\n  size_t additions = 0;\n  size_t deletions = 0;\n  git_patch_line_stats(NULL, &additions, &deletions, _private);\n  return [NSString stringWithFormat:@\"%@ +%lu -%lu\", self.class, additions, deletions];\n}\n\n@end\n\n@implementation GCDiffDelta {\n  __unsafe_unretained GCDiff* _diff;\n  size_t _index;\n  GCDiffPatch* _patch;\n  GCDiffOptions _options;\n}\n\n- (instancetype)initWithDiff:(GCDiff*)diff delta:(const git_diff_delta*)delta index:(size_t)index {\n  if ((self = [super init])) {\n    _diff = diff;\n    _private = delta;\n    _index = index;\n    _change = _FileDiffChangeFromStatus(delta->status);\n    if (delta->nfiles == 1) {\n      if (delta->status == GIT_DELTA_DELETED) {\n        _oldFile = [[GCDiffFile alloc] initWithDiffFile:&delta->old_file];\n      } else if (delta->status == GIT_DELTA_ADDED) {\n        _newFile = [[GCDiffFile alloc] initWithDiffFile:&delta->new_file];\n      } else if (delta->status == GIT_DELTA_CONFLICTED) {  // For conflicted deltas, either old, new or old & new can be set depending on the circumstances\n        _oldFile = [[GCDiffFile alloc] initWithDiffFile:&delta->old_file];\n        _newFile = [[GCDiffFile alloc] initWithDiffFile:&delta->new_file];\n      } else {\n        XLOG_DEBUG_CHECK((delta->status == GIT_DELTA_IGNORED) || (delta->status == GIT_DELTA_UNTRACKED) || (delta->status == GIT_DELTA_UNREADABLE));\n        _oldFile = [[GCDiffFile alloc] initWithDiffFile:&delta->new_file];  // For single-file deltas, libgit2 only sets the \"new\" side except for \"deleted\"\n      }\n    } else {\n      XLOG_DEBUG_CHECK(delta->nfiles == 2);\n      if (delta->status == GIT_DELTA_UNMODIFIED) {\n        _oldFile = [[GCDiffFile alloc] initWithDiffFile:&delta->old_file];  // For dual-file deltas, libgit2 considers the \"old\" side as the primary one\n      } else {\n        XLOG_DEBUG_CHECK((delta->status == GIT_DELTA_MODIFIED) || (delta->status == GIT_DELTA_RENAMED) || (delta->status == GIT_DELTA_COPIED) || (delta->status == GIT_DELTA_TYPECHANGE) || (delta->status == GIT_DELTA_CONFLICTED));\n        _oldFile = [[GCDiffFile alloc] initWithDiffFile:&delta->old_file];\n        _newFile = [[GCDiffFile alloc] initWithDiffFile:&delta->new_file];\n      }\n    }\n    _canonicalPath = _newFile ? _newFile.path : _oldFile.path;\n    if (_canonicalPath == nil) {\n      XLOG_DEBUG_UNREACHABLE();\n      return nil;\n    }\n    _options = diff.options;\n  }\n  return self;\n}\n\n- (GCDiffPatch*)makePatch:(BOOL*)isBinary error:(NSError**)error {\n  if (_patch == nil) {\n    git_patch* patch;\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_patch_from_diff, &patch, _diff.private, _index);\n    _patch = [[GCDiffPatch alloc] initWithPatch:patch];\n  }\n  if (isBinary) {\n    *isBinary = _private->flags & GIT_DIFF_FLAG_BINARY ? YES : NO;\n  }\n  return _patch;\n}\n\n- (NSString*)description {\n  static char modes[] = {' ', 'T', 'B', 'X', 'L', 'C'};  // WARNING: Must match GCFileModeFromMode\n  static char status[] = {  // WARNING: Must match GCFileDiffChange\n      ' ', 'I', '?', 'X',\n      'A', 'D', 'M',\n      'R', 'C', 'T',\n      '!'};\n  return [NSString stringWithFormat:@\"%c \\\"%s\\\" (%c) -> \\\"%s\\\" (%c)\", status[_FileDiffChangeFromStatus(_private->status)],\n                                    _private->old_file.path, modes[GCFileModeFromMode(_private->old_file.mode)],\n                                    _private->new_file.path, modes[GCFileModeFromMode(_private->new_file.mode)]];\n}\n\n@end\n\n@implementation GCDiffDelta (Extensions)\n\n// This must match the logic for the canonical path\n- (BOOL)isSubmodule {\n  switch (_change) {\n    case kGCFileDiffChange_Deleted:\n    case kGCFileDiffChange_Unmodified:\n    case kGCFileDiffChange_Ignored:\n    case kGCFileDiffChange_Untracked:\n    case kGCFileDiffChange_Unreadable:\n    case kGCFileDiffChange_Conflicted:\n      return GC_FILE_MODE_IS_SUBMODULE(_oldFile.mode);\n\n    case kGCFileDiffChange_Added:\n    case kGCFileDiffChange_Modified:\n    case kGCFileDiffChange_Renamed:\n    case kGCFileDiffChange_Copied:\n    case kGCFileDiffChange_TypeChanged:\n      return GC_FILE_MODE_IS_SUBMODULE(_newFile.mode);\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return NO;\n}\n\nstatic inline BOOL _SafeEqualStrings(const char* string1, const char* string2) {\n  if (string1 && string2) {\n    return strcmp(string1, string2) == 0;\n  }\n  return string1 == string2;\n}\n\nstatic inline BOOL _EqualDeltas(const git_diff_delta* delta1, const git_diff_delta* delta2) {\n  if (delta1->status != delta2->status) {\n    return NO;\n  }\n\n  if (!_SafeEqualStrings(delta1->old_file.path, delta2->old_file.path) || !_SafeEqualStrings(delta1->new_file.path, delta2->new_file.path)) {\n    return NO;\n  }\n\n  if ((delta1->old_file.flags & GIT_DIFF_FLAG_VALID_ID) && (delta2->old_file.flags & GIT_DIFF_FLAG_VALID_ID)) {\n    if (!git_oid_equal(&delta1->old_file.id, &delta2->old_file.id)) {\n      return NO;\n    }\n  } else {\n    if ((delta1->old_file.size != delta2->old_file.size) || (delta1->old_file.ctime != delta2->old_file.ctime) || (delta1->old_file.mtime != delta2->old_file.mtime)) {\n      return NO;\n    }\n  }\n\n  if ((delta1->new_file.flags & GIT_DIFF_FLAG_VALID_ID) && (delta2->new_file.flags & GIT_DIFF_FLAG_VALID_ID)) {\n    if (!git_oid_equal(&delta1->new_file.id, &delta2->new_file.id)) {\n      return NO;\n    }\n  } else {\n    if ((delta1->new_file.size != delta2->new_file.size) || (delta1->new_file.ctime != delta2->new_file.ctime) || (delta1->new_file.mtime != delta2->new_file.mtime)) {\n      return NO;\n    }\n  }\n\n  return YES;\n}\n\n- (BOOL)isEqualToDelta:(GCDiffDelta*)delta {\n  return (self == delta) || ((_options == delta->_options) && _EqualDeltas(_private, delta->_private));\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCDiffDelta class]]) {\n    return NO;\n  }\n  return [self isEqualToDelta:object];\n}\n\n@end\n\n@implementation GCDiff {\n  __unsafe_unretained GCRepository* _repository;\n  NSMutableArray* _deltas;\n  BOOL _modified;\n  BOOL _changed;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository\n                              diff:(git_diff*)diff\n                              type:(GCDiffType)type\n                           options:(GCDiffOptions)options\n                 maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                   maxContextLines:(NSUInteger)maxContextLines {\n  if ((self = [super init])) {\n    _repository = repository;\n    _private = diff;\n    _type = type;\n    _options = options;\n    _maxInterHunkLines = maxInterHunkLines;\n    _maxContextLines = maxContextLines;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_diff_free(_private);\n}\n\n// Generate deltas lazily in case the diff is modified after being created e.g. with git_diff_merge()\n- (void)_cacheDeltasIfNeeded {\n  if (_deltas == nil) {\n    size_t count = git_diff_num_deltas(_private);\n    _deltas = [[NSMutableArray alloc] initWithCapacity:count];\n    for (size_t i = 0; i < count; ++i) {\n      const git_diff_delta* delta = git_diff_get_delta(_private, i);\n      GCDiffDelta* diffDelta = [[GCDiffDelta alloc] initWithDiff:self delta:delta index:i];\n      if (diffDelta) {\n        [_deltas addObject:diffDelta];\n        if (delta->status != GIT_DELTA_UNMODIFIED) {\n          _modified = YES;\n          if (delta->status != GIT_DELTA_UNTRACKED) {\n            _changed = YES;\n          }\n        }\n      } else {\n        XLOG_WARNING(@\"Invalid delta generated for diff in repository \\\"%@\\\"\", _repository.repositoryPath);\n        XLOG_DEBUG_UNREACHABLE();\n      }\n    }\n\n    // Remove superfluous \"untracked\" deltas for conflicting submodules\n    // Needed when the input _deltas looks like this:\n    // 1: [Conflicted] \"submodule\"\n    //  2: [Untracked] \"submodule/\"\n    // Which happens every time there's a submodule entry that's a conflict\n    NSMutableArray<GCDiffDelta*>* deltasToFilterOut = [NSMutableArray array];\n    for (GCDiffDelta* delta in _deltas) {\n      if (delta.change == kGCFileDiffChange_Conflicted && delta.isSubmodule) {\n        //  see if there's a superfluous untracked diff for that submodule and remove it\n        NSString* pathWithTrailingSlash = [NSString stringWithFormat:@\"%@/\", delta.canonicalPath];\n        for (GCDiffDelta* delta in _deltas) {\n          if (delta.isSubmodule && [delta.canonicalPath isEqualToString:pathWithTrailingSlash]) {\n            [deltasToFilterOut addObject:delta];\n            break;  //  there's only one so we can break out early if we've found it\n          }\n        }\n      }\n    }\n\n    [_deltas removeObjectsInArray:deltasToFilterOut];\n  }\n}\n\n- (NSArray*)deltas {\n  [self _cacheDeltasIfNeeded];\n  return _deltas;\n}\n\n- (BOOL)isModified {\n  [self _cacheDeltasIfNeeded];\n  return _modified;\n}\n\n- (BOOL)hasChanges {\n  [self _cacheDeltasIfNeeded];\n  return _changed;\n}\n\n#if DEBUG\n\n- (GCFileDiffChange)changeForFile:(NSString*)path {\n  const char* cPath = GCGitPathFromFileSystemPath(path);\n  for (size_t i = 0, count = git_diff_num_deltas(_private); i < count; ++i) {\n    const git_diff_delta* delta = git_diff_get_delta(_private, i);\n    if (delta->new_file.path && !strcmp(cPath, delta->new_file.path)) {\n      return _FileDiffChangeFromStatus(delta->status);\n    }\n  }\n  return NSNotFound;\n}\n\n#endif\n\n- (NSString*)description {\n  NSMutableString* string = [NSMutableString stringWithFormat:@\"[%@] %lu deltas\", self.class, git_diff_num_deltas(_private)];\n  for (GCDiffDelta* delta in _deltas) {\n    [string appendString:@\"\\n  \"];\n    [string appendString:delta.description];\n  }\n  return string;\n}\n\n@end\n\n@implementation GCDiff (Extensions)\n\nstatic inline BOOL _EqualDiffs(git_diff* diff1, git_diff* diff2) {\n  if (git_diff_num_deltas(diff1) != git_diff_num_deltas(diff2)) {\n    return NO;\n  }\n  for (size_t i = 0, count = git_diff_num_deltas(diff1); i < count; ++i) {\n    const git_diff_delta* delta1 = git_diff_get_delta(diff1, i);\n    const git_diff_delta* delta2 = git_diff_get_delta(diff2, i);\n    if (!_EqualDeltas(delta1, delta2)) {\n      return NO;\n    }\n  }\n  return YES;\n}\n\n- (BOOL)isEqualToDiff:(GCDiff*)diff {\n  return (self == diff) || ((_options == diff->_options) && _EqualDiffs(_private, diff->_private));\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCDiff class]]) {\n    return NO;\n  }\n  return [self isEqualToDiff:object];\n}\n\n@end\n\n@implementation GCRepository (GCDiff)\n\n// GIT_DIFF_SKIP_BINARY_CHECK only matters if creating patches from the diff either with git_diff_foreach() if passing non-NULL hunk or line callbacks or with git_patch_from_diff()\n// For libgit2, which mirrors Core Git, a file is binary if non-empty and it contains a NUL byte in the first 8000 bytes\n// However the GIT_DIFF_FLAG_BINARY flag will NOT be set on old_file.flags / new_file.flags / delta.flags unless a patch is generated\n- (GCDiff*)_diffWithType:(GCDiffType)type\n             filePattern:(NSString*)filePattern\n                 options:(GCDiffOptions)options\n       maxInterHunkLines:(NSUInteger)maxInterHunkLines\n         maxContextLines:(NSUInteger)maxContextLines\n                   error:(NSError**)error\n                   block:(int (^)(git_diff** outDiff, git_diff_options* diffOptions))block {\n  GCDiff* gcDiff = nil;\n  git_diff* diff = NULL;\n\n  // Make sure filePath lives until the end of scope\n  const char* filePath = GCGitPathFromFileSystemPath(filePattern);\n\n  git_diff_options diffOptions = GIT_DIFF_OPTIONS_INIT;\n  if (options & kGCDiffOption_IncludeUnmodified) {\n    diffOptions.flags |= GIT_DIFF_INCLUDE_UNMODIFIED;\n  }\n  if (options & kGCDiffOption_IncludeUntracked) {\n    diffOptions.flags |= GIT_DIFF_INCLUDE_UNTRACKED | GIT_DIFF_RECURSE_UNTRACKED_DIRS | GIT_DIFF_SHOW_UNTRACKED_CONTENT;\n  }\n  if (options & kGCDiffOption_IncludeIgnored) {\n    diffOptions.flags |= GIT_DIFF_INCLUDE_IGNORED | GIT_DIFF_RECURSE_IGNORED_DIRS;\n  }\n  if (options & kGCDiffOption_FindTypeChanges) {\n    diffOptions.flags |= GIT_DIFF_INCLUDE_TYPECHANGE | GIT_DIFF_INCLUDE_TYPECHANGE_TREES;\n  }\n  if (options & kGCDiffOption_Reverse) {\n    diffOptions.flags |= GIT_DIFF_REVERSE;\n  }\n  if (options & kGCDiffOption_IgnoreSpaceChanges) {\n    diffOptions.flags |= GIT_DIFF_IGNORE_WHITESPACE_CHANGE;\n  }\n  if (options & kGCDiffOption_IgnoreAllSpaces) {\n    diffOptions.flags |= GIT_DIFF_IGNORE_WHITESPACE;\n  }\n  if (filePattern) {\n    diffOptions.pathspec.count = 1;\n    diffOptions.pathspec.strings = (char**)&filePath;\n\n    static NSCharacterSet* set = nil;\n    if (set == nil) {\n      set = [NSCharacterSet characterSetWithCharactersInString:@\"?*[]\"];\n    }\n    if ([filePattern rangeOfCharacterFromSet:set].location == NSNotFound) {\n      diffOptions.flags |= GIT_DIFF_DISABLE_PATHSPEC_MATCH;\n    }\n  }\n  diffOptions.ignore_submodules = GIT_SUBMODULE_IGNORE_NONE;  // If unset, libgit2 will fall back to \"diff.ignoresubmodules\" from the config or GIT_SUBMODULE_IGNORE_DEFAULT if absent, which itself stands for GIT_SUBMODULE_IGNORE_NONE\n  diffOptions.max_size = kMaxFileSizeForTextDiff;\n  diffOptions.context_lines = (uint32_t)MIN(maxContextLines, (NSUInteger)UINT32_MAX);\n  diffOptions.interhunk_lines = (uint32_t)MIN(maxInterHunkLines, (NSUInteger)UINT32_MAX);\n  int status = block(&diff, &diffOptions);\n  CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n  if (options & (kGCDiffOption_FindRenames | kGCDiffOption_FindCopies)) {\n    git_diff_find_options findOptions = GIT_DIFF_FIND_OPTIONS_INIT;\n    findOptions.flags = 0;\n    if (options & kGCDiffOption_FindRenames) {\n      findOptions.flags |= GIT_DIFF_FIND_RENAMES;\n    }\n    if (options & kGCDiffOption_FindCopies) {\n      findOptions.flags |= GIT_DIFF_FIND_COPIES;\n      if (options & kGCDiffOption_IncludeUnmodified) {\n        findOptions.flags |= GIT_DIFF_FIND_COPIES_FROM_UNMODIFIED;\n      }\n    }\n    if (options & kGCDiffOption_IncludeUntracked) {\n      findOptions.flags |= GIT_DIFF_FIND_FOR_UNTRACKED;\n    }\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_diff_find_similar, diff, &findOptions);\n  }\n  gcDiff = [[GCDiff alloc] initWithRepository:self diff:diff type:type options:options maxInterHunkLines:diffOptions.interhunk_lines maxContextLines:diffOptions.context_lines];\n  diff = NULL;\n\ncleanup:\n  git_diff_free(diff);\n  return gcDiff;\n}\n\n- (GCDiff*)diffWorkingDirectoryWithCommit:(GCCommit*)commit\n                               usingIndex:(GCIndex*)index\n                              filePattern:(NSString*)filePattern\n                                  options:(GCDiffOptions)options\n                        maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                          maxContextLines:(NSUInteger)maxContextLines\n                                    error:(NSError**)error {\n  if (index == nil) {\n    index = [self readRepositoryIndex:error];\n    if (index == nil) {\n      return nil;\n    }\n  }\n  git_tree* tree = NULL;\n  if (commit) {\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_tree, &tree, commit.private);\n  }\n  GCDiff* diff = [self _diffWithType:kGCDiffType_WorkingDirectoryWithCommit\n                         filePattern:filePattern\n                             options:options\n                   maxInterHunkLines:maxInterHunkLines\n                     maxContextLines:maxContextLines\n                               error:error\n                               block:^int(git_diff** outDiff, git_diff_options* diffOptions) {\n                                 int status = git_diff_tree_to_index(outDiff, self.private, tree, index.private, diffOptions);\n                                 if (status == GIT_OK) {\n                                   git_diff* diff2;\n                                   diffOptions->flags |= GIT_DIFF_UPDATE_INDEX;\n                                   status = git_diff_index_to_workdir(&diff2, self.private, index.private, diffOptions);\n                                   if (status == GIT_ELOCKED) {\n                                     status = GIT_OK;  // Passing GIT_DIFF_UPDATE_INDEX means git_diff_index_to_workdir() may attempt to write the index and this could fail if it is currently locked by another process but that's OK to ignore this failure\n                                   }\n                                   if (status == GIT_OK) {\n                                     status = git_diff_merge(*outDiff, diff2);\n                                     if (status != GIT_OK) {\n                                       git_diff_free(*outDiff);\n                                     }\n                                     git_diff_free(diff2);\n                                   } else {\n                                     git_diff_free(*outDiff);\n                                   }\n                                 }\n                                 return status;\n                               }];\n  git_tree_free(tree);\n  return diff;\n}\n\n- (GCDiff*)diffWorkingDirectoryWithIndex:(GCIndex*)index\n                             filePattern:(NSString*)filePattern\n                                 options:(GCDiffOptions)options\n                       maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                         maxContextLines:(NSUInteger)maxContextLines\n                                   error:(NSError**)error {\n  if (index == nil) {\n    index = [self readRepositoryIndex:error];\n    if (index == nil) {\n      return nil;\n    }\n  }\n  return [self _diffWithType:kGCDiffType_WorkingDirectoryWithIndex\n                 filePattern:filePattern\n                     options:options\n           maxInterHunkLines:maxInterHunkLines\n             maxContextLines:maxContextLines\n                       error:error\n                       block:^int(git_diff** outDiff, git_diff_options* diffOptions) {\n                         diffOptions->flags |= GIT_DIFF_UPDATE_INDEX;\n                         int status = git_diff_index_to_workdir(outDiff, self.private, index.private, diffOptions);\n                         if (status == GIT_ELOCKED) {\n                           status = GIT_OK;  // Passing GIT_DIFF_UPDATE_INDEX means git_diff_index_to_workdir() will attempt to write the index even if there are no changes and this could fail if it is currently locked by another process\n                         }\n                         return status;\n                       }];\n}\n\n- (GCDiff*)diffIndex:(GCIndex*)index\n           withCommit:(GCCommit*)commit\n          filePattern:(NSString*)filePattern\n              options:(GCDiffOptions)options\n    maxInterHunkLines:(NSUInteger)maxInterHunkLines\n      maxContextLines:(NSUInteger)maxContextLines\n                error:(NSError**)error {\n  if (index == nil) {\n    index = [self readRepositoryIndex:error];\n    if (index == nil) {\n      return nil;\n    }\n  }\n  git_tree* tree = NULL;\n  if (commit) {\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_tree, &tree, commit.private);\n  }\n  GCDiff* diff = [self _diffWithType:kGCDiffType_IndexWithCommit\n                         filePattern:filePattern\n                             options:options\n                   maxInterHunkLines:maxInterHunkLines\n                     maxContextLines:maxContextLines\n                               error:error\n                               block:^int(git_diff** outDiff, git_diff_options* diffOptions) {\n                                 return git_diff_tree_to_index(outDiff, self.private, tree, index.private, diffOptions);\n                               }];\n  git_tree_free(tree);\n  return diff;\n}\n\n- (GCDiff*)diffCommit:(GCCommit*)newCommit\n           withCommit:(GCCommit*)oldCommit\n          filePattern:(NSString*)filePattern\n              options:(GCDiffOptions)options\n    maxInterHunkLines:(NSUInteger)maxInterHunkLines\n      maxContextLines:(NSUInteger)maxContextLines\n                error:(NSError**)error {\n  git_tree* oldTree = NULL;\n  if (oldCommit) {\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_tree, &oldTree, oldCommit.private);\n  }\n  git_tree* newTree = NULL;\n  int status = git_commit_tree(&newTree, newCommit.private);  // Work around \"goto into protected scope\" Clang error\n  if (status != GIT_OK) {\n    CHECK_LIBGIT2_FUNCTION_CALL(return nil, status, == GIT_OK);\n    git_tree_free(oldTree);\n  }\n  GCDiff* diff = [self _diffWithType:kGCDiffType_CommitWithCommit\n                         filePattern:filePattern\n                             options:options\n                   maxInterHunkLines:maxInterHunkLines\n                     maxContextLines:maxContextLines\n                               error:error\n                               block:^int(git_diff** outDiff, git_diff_options* diffOptions) {\n                                 return git_diff_tree_to_tree(outDiff, self.private, oldTree, newTree, diffOptions);\n                               }];\n  git_tree_free(newTree);\n  git_tree_free(oldTree);\n  return diff;\n}\n\n- (GCDiff*)diffIndex:(GCIndex*)newIndex\n            withIndex:(GCIndex*)oldIndex\n          filePattern:(NSString*)filePattern\n              options:(GCDiffOptions)options\n    maxInterHunkLines:(NSUInteger)maxInterHunkLines\n      maxContextLines:(NSUInteger)maxContextLines\n                error:(NSError**)error {\n  return [self _diffWithType:kGCDiffType_IndexWithIndex\n                 filePattern:filePattern\n                     options:options\n           maxInterHunkLines:maxInterHunkLines\n             maxContextLines:maxContextLines\n                       error:error\n                       block:^int(git_diff** outDiff, git_diff_options* diffOptions) {\n                         return git_diff_index_to_index(outDiff, self.private, oldIndex.private, newIndex.private, diffOptions);\n                       }];\n}\n\n- (BOOL)mergeDiff:(GCDiff*)diff ontoDiff:(GCDiff*)ontoDiff error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_diff_merge, ontoDiff.private, diff.private);\n  return YES;\n}\n\n- (GCDiffPatch*)makePatchForDiffDelta:(GCDiffDelta*)delta isBinary:(BOOL*)isBinary error:(NSError**)error {\n  return [delta makePatch:isBinary error:error];\n}\n\n#pragma mark - Convenience\n\n- (GCDiff*)diffWorkingDirectoryWithHEAD:(NSString*)filePattern\n                                options:(GCDiffOptions)options\n                      maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                        maxContextLines:(NSUInteger)maxContextLines\n                                  error:(NSError**)error {\n  GCCommit* headCommit;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n    return nil;\n  }\n  return [self diffWorkingDirectoryWithCommit:headCommit usingIndex:nil filePattern:filePattern options:options maxInterHunkLines:maxInterHunkLines maxContextLines:maxContextLines error:error];\n}\n\n- (GCDiff*)diffWorkingDirectoryWithRepositoryIndex:(NSString*)filePattern\n                                           options:(GCDiffOptions)options\n                                 maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                                   maxContextLines:(NSUInteger)maxContextLines\n                                             error:(NSError**)error {\n  return [self diffWorkingDirectoryWithIndex:nil filePattern:filePattern options:options maxInterHunkLines:maxInterHunkLines maxContextLines:maxContextLines error:error];\n}\n\n- (GCDiff*)diffRepositoryIndexWithHEAD:(NSString*)filePattern\n                               options:(GCDiffOptions)options\n                     maxInterHunkLines:(NSUInteger)maxInterHunkLines\n                       maxContextLines:(NSUInteger)maxContextLines\n                                 error:(NSError**)error {\n  GCCommit* headCommit;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n    return nil;\n  }\n  return [self diffIndex:nil withCommit:headCommit filePattern:filePattern options:options maxInterHunkLines:maxInterHunkLines maxContextLines:maxContextLines error:error];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCError.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSInteger, GCErrorCode) {\n  kGCErrorCode_SubmoduleUninitialized = 3,\n  kGCErrorCode_RepositoryDirty = 2,\n  kGCErrorCode_Generic = 1,\n  kGCErrorCode_UserCancelled = 0,\n  kGCErrorCode_NotFound = -3,  // GIT_ENOTFOUND,\n  kGCErrorCode_User = -7,  // GIT_EUSER\n  kGCErrorCode_NonFastForward = -11,  // GIT_ENONFASTFORWARD\n  kGCErrorCode_CheckoutConflicts = -13,  // GIT_ECONFLICT\n  kGCErrorCode_Authentication = -16  // GIT_EAUTH\n};\n\n// Negative errors are from libgit2 and positive errors from the API\nextern NSString* const GCErrorDomain;\n"
  },
  {
    "path": "GitUpKit/Core/GCFoundation-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <XCTest/XCTest.h>\n#import \"GCFoundation.h\"\n\n@interface GCFoundation_Tests : XCTestCase\n\n@end\n\n@implementation GCFoundation_Tests {\n  NSFileManager* _fileManager;\n  NSString* _sandboxPath;\n  NSString* _realFilePath;\n  NSString* _absentFilePath;\n  NSString* _symlinkPath;\n  NSString* _symlinkToSymlinkPath;\n}\n\n- (void)createSymlinkAtPath:(NSString*)symlinkPath toPath:(NSString*)sourcePath {\n  NSError* error;\n  XCTAssertTrue([_fileManager createSymbolicLinkAtPath:symlinkPath\n                                   withDestinationPath:sourcePath\n                                                 error:&error],\n                @\"Couldn't create symlink due to an error %@\", error);\n}\n\n- (void)createFileAtPath:(NSString*)path {\n  XCTAssertTrue([_fileManager createFileAtPath:path\n                                      contents:nil\n                                    attributes:nil],\n                @\"Couldn't create file at path '%@' due to to an error\", path);\n}\n\n- (void)createDirectoryAtPath:(NSString*)path {\n  NSError* error;\n  XCTAssertTrue([_fileManager createDirectoryAtPath:path\n                        withIntermediateDirectories:NO\n                                         attributes:NULL\n                                              error:&error],\n                @\"Couldn't create directory at path '%@' due to an error %@\", path, error);\n}\n\n- (void)setUp {\n  [super setUp];\n\n  _fileManager = [NSFileManager new];\n\n  NSUUID* uuid = [NSUUID UUID];\n  _sandboxPath = [NSTemporaryDirectory() stringByAppendingPathComponent:uuid.UUIDString];\n  [self createDirectoryAtPath:_sandboxPath];\n\n  _realFilePath = [_sandboxPath stringByAppendingPathComponent:@\"file\"];\n  [self createFileAtPath:_realFilePath];\n\n  _absentFilePath = [_sandboxPath stringByAppendingPathComponent:@\"absent\"];\n  _symlinkPath = [_sandboxPath stringByAppendingPathComponent:@\"symlink\"];\n  _symlinkToSymlinkPath = [_sandboxPath stringByAppendingPathComponent:@\"symlink_to_symlink\"];\n}\n\n- (void)tearDown {\n  [_fileManager removeItemAtPath:_sandboxPath error:NULL];\n\n  [super tearDown];\n}\n\n#pragma mark - File\n\n- (void)testFileExistsAtPath_FollowLastSymlink_ExistingFile_returnsYES {\n  XCTAssertTrue([_fileManager fileExistsAtPath:_realFilePath followLastSymlink:YES]);\n}\n\n- (void)testFileExistsAtPath_DoNotFollowLastSymlink_ExistingFile_returnsYES {\n  XCTAssertTrue([_fileManager fileExistsAtPath:_realFilePath followLastSymlink:NO]);\n}\n\n- (void)testFileExistsAtPath_AbsentFile_returnsNO {\n  XCTAssertFalse([_fileManager fileExistsAtPath:_absentFilePath followLastSymlink:NO]);\n  XCTAssertFalse([_fileManager fileExistsAtPath:_absentFilePath followLastSymlink:YES]);\n}\n\n#pragma mark - Symlink to file\n\n- (void)testFileExistsAtPath_FollowLastSymlink_ExistingSymlink_ExistingSymlinkDestination_returnsYES {\n  [self createSymlinkAtPath:_symlinkPath toPath:_realFilePath];\n\n  XCTAssertTrue([_fileManager fileExistsAtPath:_symlinkPath followLastSymlink:YES]);\n}\n\n- (void)testFileExistsAtPath_FollowLastSymlink_ExistingSymlink_MadeUpSymlinkDestination_returnsNO {\n  [self createSymlinkAtPath:_symlinkPath toPath:_absentFilePath];\n\n  XCTAssertFalse([_fileManager fileExistsAtPath:_symlinkPath followLastSymlink:YES]);\n}\n\n- (void)testFileExistsAtPath_DoNotFollowLastSymlink_ExistingSymlink_MadeUpSymlinkDestination_returnsYES {\n  [self createSymlinkAtPath:_symlinkPath toPath:_absentFilePath];\n\n  XCTAssertTrue([_fileManager fileExistsAtPath:_symlinkPath followLastSymlink:NO]);\n}\n\n- (void)testFileExistsAtPath_AbsentSymlink_returnsNO {\n  XCTAssertFalse([_fileManager fileExistsAtPath:_symlinkPath followLastSymlink:NO]);\n  XCTAssertFalse([_fileManager fileExistsAtPath:_symlinkPath followLastSymlink:YES]);\n}\n\n#pragma mark - Symlink to symlink to file\n\n- (void)testFileExistsAtPath_FollowLastSymlink_ExistingSymlinkToSymlink_ExistingFinalSymlinkDestination_returnsYES {\n  NSString* lastSymlinkPath = _symlinkPath;\n  NSString* firstSymlinkPath = _symlinkToSymlinkPath;\n\n  [self createSymlinkAtPath:lastSymlinkPath toPath:_realFilePath];\n  [self createSymlinkAtPath:firstSymlinkPath toPath:lastSymlinkPath];\n\n  XCTAssertTrue([_fileManager fileExistsAtPath:firstSymlinkPath followLastSymlink:YES]);\n}\n\n- (void)testFileExistsAtPath_FollowLastSymlink_ExistingSymlinkToSymlink_AbsentFinalSymlinkDestination_returnsNO {\n  NSString* lastSymlinkPath = _symlinkPath;\n  NSString* firstSymlinkPath = _symlinkToSymlinkPath;\n\n  [self createSymlinkAtPath:lastSymlinkPath toPath:_absentFilePath];\n  [self createSymlinkAtPath:firstSymlinkPath toPath:lastSymlinkPath];\n\n  XCTAssertFalse([_fileManager fileExistsAtPath:firstSymlinkPath followLastSymlink:YES]);\n}\n\n- (void)testFileExistsAtPath_DoesNotFollowLastSymlink_ExistingSymlinkToSymlink_returnsYES {\n  NSString* lastSymlinkPath = _symlinkPath;\n  NSString* firstSymlinkPath = _symlinkToSymlinkPath;\n\n  [self createSymlinkAtPath:lastSymlinkPath toPath:_absentFilePath];\n  [self createSymlinkAtPath:firstSymlinkPath toPath:lastSymlinkPath];\n\n  XCTAssertTrue([_fileManager fileExistsAtPath:firstSymlinkPath followLastSymlink:NO]);\n}\n\n#pragma mark - Intermediate symlink\n\n- (void)testFileExistsAtPath_PathWithIntermediateSymlink_AlwaysFollowsIntermediateSymlink {\n  NSString* directoryPath = [_sandboxPath stringByAppendingPathComponent:@\"folder\"];\n  NSString* fileInDirectoryPath = [directoryPath stringByAppendingPathComponent:@\"file\"];\n\n  [self createDirectoryAtPath:directoryPath];\n  [self createFileAtPath:fileInDirectoryPath];\n  [self createSymlinkAtPath:_symlinkPath toPath:directoryPath];\n\n  NSString* filePathWithSymlink = [_symlinkPath stringByAppendingPathComponent:@\"file\"];\n\n  XCTAssertTrue([_fileManager fileExistsAtPath:filePathWithSymlink followLastSymlink:NO]);\n  XCTAssertTrue([_fileManager fileExistsAtPath:filePathWithSymlink followLastSymlink:YES]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCFoundation.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@interface NSFileManager (GCFoundation)\n- (BOOL)fileExistsAtPath:(NSString*)path followLastSymlink:(BOOL)followLastSymlink;\n\n#if !TARGET_OS_IPHONE\n\n- (BOOL)moveItemAtPathToTrash:(NSString*)path error:(NSError**)error;\n\n#endif\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCFoundation.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation NSFileManager (GCFoundation)\n\n- (BOOL)fileExistsAtPath:(NSString*)path followLastSymlink:(BOOL)followLastSymlink {\n  NSDictionary* pathAttributes = [self attributesOfItemAtPath:path error:NULL];\n\n  if (followLastSymlink && [[pathAttributes fileType] isEqualToString:NSFileTypeSymbolicLink]) {\n    path = [self destinationOfSymbolicLinkAtPath:path error:NULL];\n    if (!path) {\n      return NO;\n    }\n\n    return [self fileExistsAtPath:path followLastSymlink:YES];\n  }\n\n  return pathAttributes != nil;\n}\n\n#if !TARGET_OS_IPHONE\n\n- (BOOL)moveItemAtPathToTrash:(NSString*)path error:(NSError**)error {\n  NSString* trashPath = [NSSearchPathForDirectoriesInDomains(NSTrashDirectory, NSUserDomainMask, YES) firstObject];\n  if (!trashPath) {\n    GC_SET_GENERIC_ERROR(@\"Unable to find Trash\");\n    return NO;\n  }\n  NSString* extension = path.pathExtension;\n  NSString* name = [path.lastPathComponent stringByDeletingPathExtension];\n  NSString* destinationPath = [trashPath stringByAppendingPathComponent:[name stringByAppendingPathExtension:extension]];\n  NSUInteger counter = 0;\n  while ([self fileExistsAtPath:destinationPath followLastSymlink:NO]) {\n    destinationPath = [trashPath stringByAppendingPathComponent:[[NSString stringWithFormat:@\"%@ (%lu)\", name, ++counter] stringByAppendingPathExtension:extension]];\n  }\n  return [self moveItemAtPath:path toPath:destinationPath error:error];\n}\n\n#endif\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCFunctions.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCError.h\"\n\n#define GC_SET_ERROR(code, ...)                                    \\\n  do {                                                             \\\n    NSString* __message = [NSString stringWithFormat:__VA_ARGS__]; \\\n    if (error) {                                                   \\\n      *error = GCNewError(code, __message);                        \\\n    }                                                              \\\n  } while (0)\n\n#define GC_SET_GENERIC_ERROR(...) GC_SET_ERROR(kGCErrorCode_Generic, __VA_ARGS__)\n\n#define GC_SET_USER_CANCELLED_ERROR() GC_SET_ERROR(kGCErrorCode_UserCancelled, @\"\")\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nNSError* GCNewError(NSInteger code, NSString* message);\n\nconst char* GCGitPathFromFileSystemPath(NSString* string);\nNSString* GCFileSystemPathFromGitPath(const char* string);\n\nNSURL* GCURLFromGitURL(NSString* url);\nNSString* GCGitURLFromURL(NSURL* url);\n\nint GCExchangeFileData(const char* path1, const char* path2);\n\nvoid GCArrayApplyBlock(CFArrayRef array, void (^block)(const void* value));\nvoid GCSetApplyBlock(CFSetRef set, void (^block)(const void* value));\nvoid GCDictionaryApplyBlock(CFDictionaryRef dict, void (^block)(const void* key, const void* value));\n\n#ifdef __cplusplus\n}\n#endif\n"
  },
  {
    "path": "GitUpKit/Core/GCFunctions.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n#import <sys/stat.h>\n#import <sys/attr.h>\n#import <sys/mount.h>\n\nNSString* const GCErrorDomain = @\"GCErrorDomain\";\n\nNSError* GCNewError(NSInteger code, NSString* message) {\n  return [NSError errorWithDomain:GCErrorDomain\n                             code:code\n                         userInfo:@{NSLocalizedDescriptionKey : message}];\n}\n\nNSError* GCNewPosixError(int code, NSString* message) {\n  return [NSError errorWithDomain:NSPOSIXErrorDomain\n                             code:code\n                         userInfo:@{NSLocalizedDescriptionKey : message}];\n}\n\nNSString* GCGitOIDToSHA1(const git_oid* oid) {\n  if (git_oid_iszero(oid)) {\n    return nil;\n  }\n  char sha1[GIT_OID_HEXSZ + 1];\n  git_oid_tostr(sha1, sizeof(sha1), oid);\n  return [NSString stringWithCString:sha1 encoding:NSASCIIStringEncoding];\n}\n\nBOOL GCGitOIDFromSHA1(NSString* sha1, git_oid* oid, NSError** error) {\n  const char* string = sha1.UTF8String;\n  if (strlen(string) != GIT_OID_HEXSZ) {\n    if (error) {\n      GC_SET_GENERIC_ERROR(@\"Invalid SHA1 length\");\n    }\n    return NO;\n  }\n  int status = git_oid_fromstr(oid, string);\n  if (status != GIT_OK) {\n    if (error) {\n      CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);  // Prevent logging unless \"error\" is set\n    }\n    return NO;\n  }\n  return YES;\n}\n\nBOOL GCGitOIDFromSHA1Prefix(NSString* prefix, git_oid* oid, NSError** error) {\n  const char* string = prefix.UTF8String;\n  int status = git_oid_fromstrp(oid, string);\n  if (status != GIT_OK) {\n    if (error) {\n      CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);  // Prevent logging unless \"error\" is set\n    }\n    return NO;\n  }\n  return YES;\n}\n\nNSData* GCCleanedUpCommitMessage(NSString* message) {\n  NSData* data = nil;\n  if (message.length) {\n    git_buf buffer = {0};\n    if (git_message_prettify(&buffer, message.UTF8String, 0, 0) == GIT_OK) {\n      XLOG_DEBUG_CHECK(buffer.ptr[buffer.size] == 0);\n      data = [[NSData alloc] initWithBytes:buffer.ptr length:(buffer.size + 1)];\n      git_buf_free(&buffer);\n    }\n  }\n  return data;\n}\n\nNSString* GCUserFromSignature(const git_signature* signature) {\n  return [NSString stringWithFormat:@\"%@ <%@>\", @(signature->name), @(signature->email)];\n}\n\n// We can't use -[NSString fileSystemRepresentation] as it returns decomposed UTF8 while everything in Git is composed UTF8\n// (unless the \"core.precomposeUnicode\" configuration option is false which shouldn't happen on OS X)\nconst char* GCGitPathFromFileSystemPath(NSString* string) {\n  return string.UTF8String;\n}\n\n// We shouldn't use -[NSFileManager stringWithFileSystemRepresentation:length:] for the same reason as above\nNSString* GCFileSystemPathFromGitPath(const char* string) {\n  return string ? [NSString stringWithUTF8String:string] : nil;\n}\n\n/* Valid Git URLs from http://git-scm.com/docs/git-clone:\n - ssh://[user@]host.xz[:port]/path/to/repo.git/\n - [user@]host.xz:path/to/repo.git/\n - git://host.xz[:port]/path/to/repo.git/\n - http[s]://host.xz[:port]/path/to/repo.git/\n - ftp[s]://host.xz[:port]/path/to/repo.git/\n - rsync://host.xz/path/to/repo.git/\n - /path/to/repo.git/\n - \\file:///path/to/repo.git/\n */\nNSURL* GCURLFromGitURL(NSString* url) {\n  NSURL* URL = nil;\n  if (url.length) {\n    if ([url characterAtIndex:0] == '/') {\n      URL = [NSURL fileURLWithPath:url];\n    } else {\n      URL = [NSURL URLWithString:url];\n    }\n  }\n  XLOG_DEBUG_CHECK(URL);\n  return URL;\n}\n\nNSString* GCGitURLFromURL(NSURL* url) {\n  if (url.isFileURL) {\n    return url.path;\n  }\n  return url.absoluteString;\n}\n\nint GCExchangeFileData(const char* path1, const char* path2) {\n  struct statfs stat;\n  int statStatus = statfs(path2, &stat);\n  if (statStatus != 0) {\n    return statStatus;\n  }\n  struct attrlist attrList = {ATTR_BIT_MAP_COUNT, 0, 0, ATTR_VOL_CAPABILITIES, 0, 0, 0};\n  struct {\n    u_int32_t length;\n    vol_capabilities_attr_t attr;\n  } attrBuf;\n  int attrListStatus = getattrlist(stat.f_mntonname, &attrList, &attrBuf, sizeof(attrBuf), 0);\n  if (attrListStatus != 0) {\n    return attrListStatus;\n  }\n\n  if ((attrBuf.attr.capabilities[VOL_CAPABILITIES_INTERFACES] & VOL_CAP_INT_RENAME_SWAP) == VOL_CAP_INT_RENAME_SWAP) {\n    return renamex_np(path1, path2, RENAME_SWAP);\n  }\n\n  if ((attrBuf.attr.capabilities[VOL_CAPABILITIES_INTERFACES] & VOL_CAP_INT_EXCHANGEDATA) == VOL_CAP_INT_EXCHANGEDATA) {\n    return exchangedata(path1, path2, FSOPT_NOFOLLOW);\n  }\n\n  return -1;\n};\n\nGCFileMode GCFileModeFromMode(git_filemode_t mode) {\n  switch (mode) {\n    case GIT_FILEMODE_UNREADABLE:\n      return kGCFileMode_Unreadable;\n    case GIT_FILEMODE_TREE:\n      return kGCFileMode_Tree;\n    case GIT_FILEMODE_BLOB:\n      return kGCFileMode_Blob;\n    case GIT_FILEMODE_BLOB_EXECUTABLE:\n      return kGCFileMode_BlobExecutable;\n    case GIT_FILEMODE_LINK:\n      return kGCFileMode_Link;\n    case GIT_FILEMODE_COMMIT:\n      return kGCFileMode_Commit;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\nstatic int _HideCallback(const git_oid* commit_id, void* payload) {\n  int (^block)(const git_oid* commit_id) = (__bridge int (^)(const git_oid*))payload;\n  return block(commit_id);\n}\n\nint git_revwalk_add_hide_block(git_revwalk* walk, int (^block)(const git_oid* commit_id)) {\n  return git_revwalk_add_hide_cb(walk, _HideCallback, (__bridge void*)block);\n}\n\nstatic int _StashCallback(size_t index, const char* message, const git_oid* stash_id, void* payload) {\n  int (^block)(size_t index, const char* message, const git_oid* stash_id) = (__bridge int (^)(size_t index, const char* message, const git_oid* stash_id))payload;\n  return block(index, message, stash_id);\n}\n\nint git_stash_foreach_block(git_repository* repo, int (^block)(size_t index, const char* message, const git_oid* stash_id)) {\n  return git_stash_foreach(repo, _StashCallback, (__bridge void*)block);\n}\n\nstatic int _SubmoduleCallback(git_submodule* sm, const char* name, void* payload) {\n  int (^block)(git_submodule* submodule, const char* name) = (__bridge int (^)(git_submodule* submodule, const char* name))payload;\n  return block(sm, name);\n}\n\nint git_submodule_foreach_block(git_repository* repo, int (^block)(git_submodule* submodule, const char* name)) {\n  return git_submodule_foreach(repo, _SubmoduleCallback, (__bridge void*)block);\n}\n\nstatic void _ArrayApplierFunction(const void* value, void* context) {\n  void (^block)(const void*) = (__bridge void (^)(const void*))context;\n  block(value);\n}\n\nvoid GCArrayApplyBlock(CFArrayRef array, void (^block)(const void* value)) {\n  CFArrayApplyFunction(array, CFRangeMake(0, CFArrayGetCount(array)), _ArrayApplierFunction, (void*)block);\n}\n\nstatic void _SetApplierFunction(const void* value, void* context) {\n  void (^block)(const void*) = (__bridge void (^)(const void*))context;\n  block(value);\n}\n\nvoid GCSetApplyBlock(CFSetRef set, void (^block)(const void* value)) {\n  CFSetApplyFunction(set, _SetApplierFunction, (void*)block);\n}\n\nstatic void _DictionaryApplierFunction(const void* key, const void* value, void* context) {\n  void (^block)(const void*, const void*) = (__bridge void (^)(const void*, const void*))context;\n  block(key, value);\n}\n\nvoid GCDictionaryApplyBlock(CFDictionaryRef dict, void (^block)(const void* key, const void* value)) {\n  CFDictionaryApplyFunction(dict, _DictionaryApplierFunction, (void*)block);\n}\n\nconst void* GCOIDCopyCallBack(CFAllocatorRef allocator, const void* value) {\n  void* oid = malloc(sizeof(git_oid));\n  git_oid_cpy(oid, value);\n  return oid;\n}\n\nBoolean GCOIDEqualCallBack(const void* value1, const void* value2) {\n  const git_oid* oid1 = (const git_oid*)value1;\n  const git_oid* oid2 = (const git_oid*)value2;\n  return git_oid_equal(oid1, oid2);\n}\n\nCFHashCode GCOIDHashCallBack(const void* value) {\n  const git_oid* oid = (const git_oid*)value;\n  return *(CFHashCode*)oid->id;  // Use the first bytes\n}\n\nBoolean GCCStringEqualCallBack(const void* value1, const void* value2) {\n  return !strcmp(value1, value2);\n}\n\n// From http://www.cse.yorku.ca/~oz/hash.html\nCFHashCode GCCStringHashCallBack(const void* value) {\n  const char* str = value;\n  unsigned long hash = 5381;\n  unsigned long c;\n  while ((c = *str++)) {\n    hash = ((hash << 5) + hash) + c; /* hash * 33 + c */\n  }\n  return hash;\n}\n\nconst void* GCCStringCopyCallBack(CFAllocatorRef allocator, const void* value) {\n  return strdup(value);\n}\n\nvoid GCFreeReleaseCallBack(CFAllocatorRef allocator, const void* value) {\n  free((void*)value);\n}\n"
  },
  {
    "path": "GitUpKit/Core/GCHistory-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n@implementation GCSQLiteRepositoryTests (GCHistory)\n\n/*\n  0---1----2----4----7 (master)\n       \\         \\\n        3----5----6----8 (topic)\n*/\n- (void)testHistory_Snapshots {\n  // Create commit history\n  NSArray* commits = [self.repository createMockCommitHierarchyFromNotation:@\"0 1(0) 2(1) 3(1) 4(2) 5(3) 6(5,4) 7(4)<master> 8(6)<topic>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n\n  // Take snapshot\n  GCSnapshot* snapshot = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(snapshot);\n\n  // Check history in reverse chronological order\n  GCHistory* historyTime = [self.repository loadHistoryFromSnapshot:snapshot usingSorting:kGCHistorySorting_ReverseChronological error:NULL];\n  XCTAssertNotNil(historyTime);\n  NSMutableArray* commitsTime = [NSMutableArray array];\n  for (GCCommit* commit in commits) {\n    [commitsTime insertObject:commit atIndex:0];\n  }\n  XCTAssertEqualObjects(historyTime.allCommits, commitsTime);\n  NSArray* roots = @[ commits[0] ];\n  XCTAssertEqualObjects(historyTime.rootCommits, roots);\n  NSArray* leaves = @[ commits[8], commits[7] ];\n  XCTAssertEqualObjects(historyTime.leafCommits, leaves);\n}\n\n/*\n  0---1----2----4----7 (master)\n       \\         \\\n        3----5----6----8 (topic)\n*/\n- (void)testHistory_Order {\n  // Create commit history\n  NSArray* commits = [self.repository createMockCommitHierarchyFromNotation:@\"0 1(0) 2(1) 3(1) 4(2) 5(3) 6(5,4) 7(4)<master> 8(6)<topic>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n\n  // Check history in reverse chronological order\n  GCHistory* historyTime = [self.repository loadHistoryUsingSorting:kGCHistorySorting_ReverseChronological error:NULL];\n  XCTAssertNotNil(historyTime);\n  NSMutableArray* commitsTime = [NSMutableArray array];\n  for (GCCommit* commit in commits) {\n    [commitsTime insertObject:commit atIndex:0];\n  }\n  XCTAssertEqualObjects(historyTime.allCommits, commitsTime);\n  NSArray* roots = @[ commits[0] ];\n  XCTAssertEqualObjects(historyTime.rootCommits, roots);\n  NSArray* leaves = @[ commits[8], commits[7] ];\n  XCTAssertEqualObjects(historyTime.leafCommits, leaves);\n}\n\n/*\n  0---1----2----4----7 (master)\n       \\   |     \\\n        3----5----6----8 (topic)\n           |            \\\n           |-------------9 (test)\n*/\n- (void)testHistory_Enumeration {\n  // Create commit history\n  NSArray* commits = [self.repository createMockCommitHierarchyFromNotation:@\"0 1(0) 2(1) 3(1) 4(2) 5(3) 6(5,4) 7(4)<master> 8(6)<topic> 9(8,2)<test>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n\n  // Load history\n  GCHistory* history = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history);\n\n  // Check walking entire history through children\n  NSMutableArray* walk2 = [NSMutableArray array];\n  [history walkAllCommitsFromRootsUsingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n    [walk2 addObject:commit];\n  }];\n  NSArray* array2 = @[ commits[0], commits[1], commits[3], commits[2], commits[5], commits[4], commits[6], commits[7], commits[8], commits[9] ];\n  XCTAssertTrue([walk2 isEqualToArray:array2]);\n\n  // Check walking history through children from commit #2\n  NSMutableArray* walk3 = [NSMutableArray array];\n  [history walkDescendantsOfCommits:@[ [history historyCommitForCommit:commits[2]] ]\n                         usingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n                           [walk3 addObject:commit];\n                         }];\n  NSArray* array3 = @[ commits[4], commits[7], commits[6], commits[8], commits[9] ];\n  XCTAssertEqualObjects(walk3, array3);\n\n  // Check walking entire history through parents\n  NSMutableArray* walk4 = [NSMutableArray array];\n  [history walkAllCommitsFromLeavesUsingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n    [walk4 addObject:commit];\n  }];\n  NSArray* array4 = @[ commits[7], commits[9], commits[8], commits[6], commits[4], commits[5], commits[2], commits[3], commits[1], commits[0] ];\n  XCTAssertTrue([walk4 isEqualToArray:array4]);\n\n  // Check walking history through parents from commit #8\n  NSMutableArray* walk5 = [NSMutableArray array];\n  [history walkAncestorsOfCommits:@[ [history historyCommitForCommit:commits[8]] ]\n                       usingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n                         [walk5 addObject:commit];\n                       }];\n  NSArray* array5 = @[ commits[6], commits[5], commits[3], commits[4], commits[2], commits[1], commits[0] ];\n  XCTAssertEqualObjects(walk5, array5);\n\n  // Check walking history through children from commit #6\n  NSMutableArray* walk6 = [NSMutableArray array];\n  [history walkDescendantsOfCommits:@[ [history historyCommitForCommit:commits[6]] ]\n                         usingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n                           [walk6 addObject:commit];\n                         }];\n  NSArray* array6 = @[ commits[8], commits[9] ];\n  XCTAssertEqualObjects(walk6, array6);\n\n  // Check counting ancestors\n  XCTAssertEqual([history countAncestorCommitsFromCommit:[history historyCommitForCommit:commits[9]] toCommit:[history historyCommitForCommit:commits[6]]], 2);\n  XCTAssertEqual([history countAncestorCommitsFromCommit:[history historyCommitForCommit:commits[9]] toCommit:[history historyCommitForCommit:commits[2]]], 6);\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTests (GCHistory)\n\n// TODO: Test -historyRemoteBranchForLocalBranch:\n- (void)testHistory_Reload {\n  BOOL referencesDidChange;\n  NSArray* addedCommits;\n  NSArray* removedCommits;\n\n  // Make a commit\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"1\" error:NULL];\n  XCTAssertNotNil(commit1);\n\n  // Revert commit\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"2\" error:NULL];\n  XCTAssertNotNil(commit2);\n  XCTAssertEqual(self.repository.state, kGCRepositoryState_None);\n\n  // Create local branch and check it out\n  GCLocalBranch* topicBranch = [self.repository createLocalBranchFromCommit:commit1 withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n\n  // Make a commit\n  GCCommit* commit3 = [self.repository createCommitFromHEADWithMessage:@\"3\" error:NULL];\n  XCTAssertNotNil(commit3);\n\n  /*\n    c0 -> c1 -> c2 (master)\n           \\\n            \\-> c3 (topic*)\n  */\n\n  // Check history\n  GCHistory* history = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  NSSet* commits = [NSSet setWithObjects:commit3, commit1, commit2, self.initialCommit, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits);\n  XCTAssertEqualObjects(history.rootCommits, @[ self.initialCommit ]);\n  NSSet* leaves = [NSSet setWithObjects:commit2, commit3, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.leafCommits], leaves);\n  XCTAssertFalse([[history historyCommitForCommit:self.initialCommit] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] parents], @[]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] children], @[ commit1 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit1] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] parents], @[ self.initialCommit ]);\n  NSSet* children = [NSSet setWithObjects:commit2, commit3, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:[[history historyCommitForCommit:commit1] children]], children);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] localBranches], @[ self.masterBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] children], @[]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] localBranches], @[ topicBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] children], @[]);\n  XCTAssertEqualObjects([history historyLocalBranchForLocalBranch:topicBranch], topicBranch);\n\n  // Check reloading history without changes\n  XCTAssertTrue([self.repository reloadHistory:history referencesDidChange:&referencesDidChange addedCommits:&addedCommits removedCommits:&removedCommits error:NULL]);\n  XCTAssertFalse(referencesDidChange);\n  XCTAssertEqual(addedCommits.count, 0);\n  XCTAssertEqual(removedCommits.count, 0);\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits);\n\n  // Make a couple commits\n  GCCommit* commit4 = [self.repository createCommitFromHEADWithMessage:@\"4\" error:NULL];\n  XCTAssertNotNil(commit4);\n  GCCommit* commit5 = [self.repository createCommitFromHEADWithMessage:@\"5\" error:NULL];\n  XCTAssertNotNil(commit5);\n\n  /*\n    c0 -> c1 -> c2 (master)\n           \\\n            \\-> c3 -> c4 -> c5 (topic*)\n  */\n\n  // Check reloading history with new commits\n  XCTAssertTrue([self.repository reloadHistory:history referencesDidChange:&referencesDidChange addedCommits:&addedCommits removedCommits:&removedCommits error:NULL]);\n  XCTAssertTrue(referencesDidChange);\n  XCTAssertEqual(addedCommits.count, 2);\n  XCTAssertEqual(removedCommits.count, 0);\n  NSSet* commits3 = [NSSet setWithObjects:commit5, commit4, commit3, commit2, commit1, self.initialCommit, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits3);\n  XCTAssertEqualObjects(history.rootCommits, @[ self.initialCommit ]);\n  NSSet* leafs2 = [NSSet setWithObjects:commit2, commit5, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.leafCommits], leafs2);\n  XCTAssertFalse([[history historyCommitForCommit:self.initialCommit] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] parents], @[]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] children], @[ commit1 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit1] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] parents], @[ self.initialCommit ]);\n  XCTAssertEqualObjects([NSSet setWithArray:[[history historyCommitForCommit:commit1] children]], children);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] localBranches], @[ self.masterBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] children], @[]);\n  XCTAssertFalse([[history historyCommitForCommit:commit3] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] children], @[ commit4 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit4] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit4] parents], @[ commit3 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit4] children], @[ commit5 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit5] localBranches], @[ topicBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit5] parents], @[ commit4 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit5] children], @[]);\n\n  // Make a temp branch with a couple commits and fast-forward merge it on master\n  GCLocalBranch* tempBranch = [self.repository createLocalBranchFromCommit:commit2 withName:@\"temp\" force:NO error:NULL];\n  XCTAssertNotNil(tempBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:tempBranch options:0 error:NULL]);\n  GCCommit* commit6 = [self.repository createCommitFromHEADWithMessage:@\"6\" error:NULL];\n  XCTAssertNotNil(commit6);\n  GCCommit* commit7 = [self.repository createCommitFromHEADWithMessage:@\"7\" error:NULL];\n  XCTAssertNotNil(commit7);\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n  XCTAssertTrue([self.repository resetToCommit:commit7 mode:kGCResetMode_Hard error:NULL]);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n\n  /*\n                  /-> c6 -> c7 (temp)\n                 /            \\\n    c0 -> c1 -> c2 -> c6 ---> c7 (master)\n           \\\n            \\-> c3 -> c4 -> c5 (topic*)\n  */\n\n  // Check reloading history with merged branch\n  XCTAssertTrue([self.repository reloadHistory:history referencesDidChange:&referencesDidChange addedCommits:&addedCommits removedCommits:&removedCommits error:NULL]);\n  XCTAssertTrue(referencesDidChange);\n  XCTAssertEqual(addedCommits.count, 2);\n  XCTAssertEqual(removedCommits.count, 0);\n  NSSet* commits4 = [NSSet setWithObjects:commit7, commit6, commit5, commit4, commit3, commit2, commit1, self.initialCommit, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits4);\n  XCTAssertEqualObjects(history.rootCommits, @[ self.initialCommit ]);\n  NSSet* leafs4 = [NSSet setWithObjects:commit7, commit5, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.leafCommits], leafs4);\n\n  // Amend commit\n  commit5 = [self.repository copyCommit:commit5 withUpdatedMessage:@\"5'\" updatedParents:nil updatedTreeFromIndex:nil updateCommitter:YES error:NULL];\n  XCTAssertNotNil(commit5);\n  XCTAssertTrue([self.repository resetToCommit:commit5 mode:kGCResetMode_Soft error:NULL]);  // Required to update HEAD and branch\n\n  /*\n                  /-> c6 -> c7 (temp)\n                 /            \\\n    c0 -> c1 -> c2 -> c6 ---> c7 (master)\n           \\\n            \\-> c3 -> c4 -> c5' (topic*)\n  */\n\n  // Check reloading history with rewritten commit\n  XCTAssertTrue([self.repository reloadHistory:history referencesDidChange:&referencesDidChange addedCommits:&addedCommits removedCommits:&removedCommits error:NULL]);\n  XCTAssertTrue(referencesDidChange);\n  XCTAssertEqual(addedCommits.count, 1);\n  XCTAssertEqual(removedCommits.count, 1);\n  NSSet* commits5 = [NSSet setWithObjects:commit7, commit6, commit5, commit4, commit3, commit2, commit1, self.initialCommit, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits5);\n  XCTAssertEqualObjects(history.rootCommits, @[ self.initialCommit ]);\n  NSSet* leafs5 = [NSSet setWithObjects:commit7, commit5, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.leafCommits], leafs5);\n  XCTAssertFalse([[history historyCommitForCommit:self.initialCommit] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] parents], @[]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] children], @[ commit1 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit1] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] parents], @[ self.initialCommit ]);\n  XCTAssertEqualObjects([NSSet setWithArray:[[history historyCommitForCommit:commit1] children]], children);\n  XCTAssertFalse([[history historyCommitForCommit:commit2] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] children], @[ commit6 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit3] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit3] children], @[ commit4 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit4] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit4] parents], @[ commit3 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit4] children], @[ commit5 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit5] localBranches], @[ topicBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit5] parents], @[ commit4 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit5] children], @[]);\n  XCTAssertFalse([[history historyCommitForCommit:commit6] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit6] parents], @[ commit2 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit6] children], @[ commit7 ]);\n  NSSet* references = [NSSet setWithObjects:self.masterBranch, tempBranch, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:[[history historyCommitForCommit:commit7] localBranches]], references);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] parents], @[ commit6 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] children], @[]);\n\n  /*\n            c2 -> c6 -> c7 (temp)\n           /\n    c0 -> c1 (master)\n  */\n\n  // Switch back to master branch, reset to commit 1 and delete topic branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n  XCTAssertTrue([self.repository resetToCommit:commit1 mode:kGCResetMode_Hard error:NULL]);\n  XCTAssertTrue([self.repository deleteLocalBranch:topicBranch error:NULL]);\n  XCTAssertTrue([self.repository reloadHistory:history referencesDidChange:&referencesDidChange addedCommits:&addedCommits removedCommits:&removedCommits error:NULL]);\n  XCTAssertTrue(referencesDidChange);\n  XCTAssertEqual(addedCommits.count, 0);\n  XCTAssertEqual(removedCommits.count, 3);\n  NSSet* commits6 = [NSSet setWithObjects:commit7, commit6, commit2, commit1, self.initialCommit, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits6);\n  XCTAssertEqualObjects(history.rootCommits, @[ self.initialCommit ]);\n  XCTAssertEqualObjects(history.leafCommits, @[ commit7 ]);\n  XCTAssertFalse([[history historyCommitForCommit:self.initialCommit] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] parents], @[]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] children], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] localBranches], @[ self.masterBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] parents], @[ self.initialCommit ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] children], @[ commit2 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit2] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] children], @[ commit6 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit6] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit6] parents], @[ commit2 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit6] children], @[ commit7 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] localBranches], @[ tempBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] parents], @[ commit6 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] children], @[]);\n\n  // Add a branch\n  GCLocalBranch* test = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"test\" force:NO error:NULL];\n  XCTAssertNotNil(test);\n  XCTAssertTrue([self.repository checkoutLocalBranch:test options:0 error:NULL]);\n  GCCommit* commit8 = [self.repository createCommitFromHEADWithMessage:@\"8\" error:NULL];\n  XCTAssertNotNil(commit8);\n\n  /*\n            c2 -> c6 -> c7 (temp)\n           /\n    c0 -> c1 (master)\n     \\\n      c8 (test)\n  */\n\n  // Reload history with new branch\n  XCTAssertTrue([self.repository reloadHistory:history referencesDidChange:&referencesDidChange addedCommits:&addedCommits removedCommits:&removedCommits error:NULL]);\n  XCTAssertTrue(referencesDidChange);\n  XCTAssertEqual(addedCommits.count, 1);\n  XCTAssertEqual(removedCommits.count, 0);\n  NSSet* commits7 = [NSSet setWithObjects:commit8, commit7, commit6, commit2, commit1, self.initialCommit, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.allCommits], commits7);\n  XCTAssertEqualObjects(history.rootCommits, @[ self.initialCommit ]);\n  NSSet* leafs6 = [NSSet setWithObjects:commit8, commit7, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:history.leafCommits], leafs6);\n  XCTAssertFalse([[history historyCommitForCommit:self.initialCommit] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:self.initialCommit] parents], @[]);\n  NSSet* children2 = [NSSet setWithObjects:commit8, commit1, nil];\n  XCTAssertEqualObjects([NSSet setWithArray:[[history historyCommitForCommit:self.initialCommit] children]], children2);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] localBranches], @[ self.masterBranch ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] parents], @[ self.initialCommit ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit1] children], @[ commit2 ]);\n  XCTAssertFalse([[history historyCommitForCommit:commit2] hasReferences]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] parents], @[ commit1 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit2] children], @[ commit6 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit6] parents], @[ commit2 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit6] children], @[ commit7 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] parents], @[ commit6 ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit7] children], @[]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit8] parents], @[ self.initialCommit ]);\n  XCTAssertEqualObjects([[history historyCommitForCommit:commit8] children], @[]);\n}\n\n- (void)testHistory_Tags {\n  // Make some commits\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"1\" error:NULL];\n  XCTAssertNotNil(commit1);\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"2\" error:NULL];\n  XCTAssertNotNil(commit2);\n\n  // Create tags\n  GCTag* tag1 = [self.repository createLightweightTagWithCommit:commit1 name:@\"Lightweight_Tag\" force:NO error:NULL];\n  XCTAssertNotNil(tag1);\n  GCTagAnnotation* annotation;\n  GCTag* tag2 = [self.repository createAnnotatedTagWithCommit:commit2 name:@\"Annotated_Tag\" message:@\"This is a test\" force:NO annotation:&annotation error:NULL];\n  XCTAssertNotNil(tag2);\n\n  // Load history\n  GCHistory* history = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history);\n\n  // Check tags\n  NSArray* tags = @[ tag2, tag1 ];\n  XCTAssertEqualObjects(history.tags, tags);\n  XCTAssertEqualObjects([(GCHistoryTag*)history.tags[0] commit], commit2);\n  XCTAssertEqualObjects([(GCHistoryTag*)history.tags[0] annotation], annotation);\n  XCTAssertEqualObjects([(GCHistoryTag*)history.tags[1] commit], commit1);\n  XCTAssertNil([(GCHistoryTag*)history.tags[1] annotation]);\n}\n\n- (void)testHistory_Files {\n  // Make a commit\n  NSMutableArray* lines = [NSMutableArray array];\n  for (NSUInteger i = 0; i < 100; ++i) {\n    [lines addObject:[NSString stringWithFormat:@\"GILine %lu\", (unsigned long)i]];\n  }\n  GCCommit* commit1 = [self makeCommitWithUpdatedFileAtPath:@\"lines.txt\" string:[lines componentsJoinedByString:@\"\\n\"] message:@\"0) Added\"];\n\n  // Make a commit\n  [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Bonjour le monde!\\n\" message:@\"French\"];\n\n  // Make a commit\n  [lines removeObjectAtIndex:50];\n  GCCommit* commit3 = [self makeCommitWithUpdatedFileAtPath:@\"lines.txt\" string:[lines componentsJoinedByString:@\"\\n\"] message:@\"1) Modified\"];\n\n  // Make a commit\n  [lines removeObjectAtIndex:10];\n  [lines removeObjectAtIndex:90];\n  [self updateFileAtPath:@\"lines2.txt\" withString:[lines componentsJoinedByString:@\"\\n\"]];\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"lines.txt\"] error:NULL]);\n  XCTAssertTrue([self.repository removeFileFromIndex:@\"lines.txt\" error:NULL]);\n  XCTAssertTrue([self.repository addFileToIndex:@\"lines2.txt\" error:NULL]);\n  GCCommit* commit4 = [self.repository createCommitFromHEADWithMessage:@\"2) Modified and renamed\" error:NULL];\n  XCTAssertNotNil(commit4);\n\n  // Make a commit\n  [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Guten Tag Welt!\\n\" message:@\"German\"];\n\n  // Make a commit\n  [lines insertObject:@\"Prelude\" atIndex:0];\n  [lines addObject:@\"Postlude\"];\n  GCCommit* commit6 = [self makeCommitWithUpdatedFileAtPath:@\"lines2.txt\" string:[lines componentsJoinedByString:@\"\\n\"] message:@\"3) Modified\"];\n\n  // Check file history (no follow)\n  NSArray* commits1 = [self.repository lookupCommitsForFile:@\"lines2.txt\" followRenames:NO error:NULL];\n  NSArray* array1 = @[ commit6, commit4 ];\n  XCTAssertEqualObjects(commits1, array1);\n\n  // Check file history (follow)\n  NSArray* commits2 = [self.repository lookupCommitsForFile:@\"lines2.txt\" followRenames:YES error:NULL];\n  NSArray* array2 = @[ commit6, commit4, commit3, commit1 ];\n  XCTAssertEqualObjects(commits2, array2);\n}\n\n@end\n\n@implementation GCEmptyRepositoryTests (GCHistory)\n\n- (void)testHistory_Empty {\n  GCHistory* history = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history);\n  XCTAssertTrue(history.empty);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCHistory.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n#import \"GCCommit.h\"\n#import \"GCTag.h\"\n#import \"GCBranch.h\"\n\ntypedef NS_ENUM(NSUInteger, GCHistorySorting) {\n  kGCHistorySorting_None = 0,\n  kGCHistorySorting_ReverseChronological\n};\n\n@class GCSearchIndex, GCSnapshot;\n\n@interface GCHistoryCommit : GCCommit\n@property(nonatomic, readonly) NSUInteger autoIncrementID;  // Uniquely increasing ID for each GCHistoryCommit instantiated for a GCHistory (can be used for LUTs)\n@property(nonatomic, readonly) NSArray* parents;  // Sorting is defined by hierarchy\n@property(nonatomic, readonly) NSArray* children;  // Sorting is arbitrary and not guaranteed to be stable\n@property(nonatomic, readonly) NSArray* localBranches;\n@property(nonatomic, readonly) NSArray* remoteBranches;\n@property(nonatomic, readonly) NSArray* tags;\n@property(nonatomic, readonly, getter=isRoot) BOOL root;\n@property(nonatomic, readonly, getter=isLeaf) BOOL leaf;\n@property(nonatomic, readonly) BOOL hasReferences;\n@end\n\n@interface GCHistoryTag : GCTag\n@property(nonatomic, weak, readonly) GCHistoryCommit* commit;  // Cached at time of last history update and DOES NOT automatically update (use -lookupCommitForTag:annotation:error: instead)\n@property(nonatomic, readonly) GCTagAnnotation* annotation;  // Cached at time of last history update and DOES NOT automatically update (use -lookupCommitForTag:annotation:error: instead)\n@end\n\n@interface GCHistoryLocalBranch : GCLocalBranch\n@property(nonatomic, weak, readonly) GCHistoryCommit* tipCommit;  // Cached at time of last history update and DOES NOT automatically update (use -lookupTipCommitForBranch:error: instead)\n@property(nonatomic, weak, readonly) GCBranch* upstream;  // Cached at time of last history update and DOES NOT automatically update (use -lookupUpstreamForLocalBranch:error: instead) - Will be a GCHistoryLocalBranch or GCHistoryRemoteBranch\n@end\n\n@interface GCHistoryRemoteBranch : GCRemoteBranch\n@property(nonatomic, weak, readonly) GCHistoryCommit* tipCommit;  // Cached at time of last history update and DOES NOT automatically update (use -lookupTipCommitForBranch:error: instead)\n@end\n\n@interface GCHistory : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) GCHistorySorting sorting;\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;  // Convenience method\n@property(nonatomic, readonly) NSArray* allCommits;\n@property(nonatomic, readonly) NSArray* rootCommits;\n@property(nonatomic, readonly) NSArray* leafCommits;\n@property(nonatomic, weak, readonly) GCHistoryCommit* HEADCommit;  // nil if HEAD is unborn\n@property(nonatomic, weak, readonly) GCHistoryLocalBranch* HEADBranch;  // nil if HEAD is detached\n@property(nonatomic, readonly, getter=isHEADDetached) BOOL HEADDetached;  // Convenience method\n@property(nonatomic, readonly) NSArray* tags;  // Always sorted alphabetically\n@property(nonatomic, readonly) NSArray* localBranches;  // Always sorted alphabetically\n@property(nonatomic, readonly) NSArray* remoteBranches;  // Always sorted alphabetically\n@property(nonatomic, readonly) NSUInteger nextAutoIncrementID;  // See @autoIncrementID on GCHistoryCommit\n- (GCHistoryCommit*)historyCommitWithSHA1:(NSString*)sha1;\n- (GCHistoryCommit*)historyCommitForCommit:(GCCommit*)commit;\n- (GCHistoryLocalBranch*)historyLocalBranchForLocalBranch:(GCLocalBranch*)branch;\n- (GCHistoryLocalBranch*)historyLocalBranchWithName:(NSString*)name;\n- (GCHistoryRemoteBranch*)historyRemoteBranchForRemoteBranch:(GCRemoteBranch*)branch;\n- (GCHistoryRemoteBranch*)historyRemoteBranchWithName:(NSString*)name;\n\n- (NSUInteger)countAncestorCommitsFromCommit:(GCHistoryCommit*)fromCommit toCommit:(GCHistoryCommit*)toCommit;  // Returns NSNotFound if \"toCommit\" is not an ancestor of \"fromCommit\"\n@end\n\n@interface GCHistoryWalker : NSObject\n- (BOOL)iterateWithCommitBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block;  // Returns NO if over or if stopped\n@end\n\n@interface GCHistory (GCHistoryWalker)\n- (void)walkAncestorsOfCommits:(NSArray*)commits usingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block;  // Commits are walked so that parents are guaranteed not to be called before all their children have been called (however the order between siblings is undefined)\n- (void)walkDescendantsOfCommits:(NSArray*)commits usingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block;  // Commits are walked so that children are guaranteed not to be called before all their parents have been called (however the order between siblings is undefined)\n\n- (void)walkAllCommitsFromLeavesUsingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block;  // Convenience wrapper for walking all ancestors from the history leaves\n- (void)walkAllCommitsFromRootsUsingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block;  // Convenience wrapper for walking all descendants from the history roots\n\n- (GCHistoryWalker*)walkerForAncestorsOfCommits:(NSArray*)commits;  // Low-level API - DO NOT update the history while iterating the walker\n- (GCHistoryWalker*)walkerForDescendantsOfCommits:(NSArray*)commits;  // Low-level API - DO NOT update the history while iterating the walker\n@end\n\n@interface GCRepository (GCHistory)\n- (GCHistory*)loadHistoryUsingSorting:(GCHistorySorting)sorting error:(NSError**)error;  // git log {--all}\n- (BOOL)reloadHistory:(GCHistory*)history referencesDidChange:(BOOL*)referencesDidChange addedCommits:(NSArray**)addedCommits removedCommits:(NSArray**)removedCommits error:(NSError**)error;\n\n- (GCHistory*)loadHistoryFromSnapshot:(GCSnapshot*)snapshot usingSorting:(GCHistorySorting)sorting error:(NSError**)error;\n\n- (NSArray*)lookupCommitsForFile:(NSString*)path followRenames:(BOOL)follow error:(NSError**)error;  // git log {--follow} -p {file}\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCHistory.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import <objc/runtime.h>\n#import <CommonCrypto/CommonDigest.h>\n\n#import \"GCPrivate.h\"\n\n#define COMMIT_STATE(c) states[c->_autoIncrementID]\n#define SET_COMMIT_PROCESSED(c) COMMIT_STATE(c) = iteration\n#define COMMIT_IS_PROCESSED(c) (COMMIT_STATE(c) > 0)\n#define COMMIT_WAS_JUST_PROCESSED(c) (COMMIT_STATE(c) == iteration)\n#define SET_COMMIT_SKIPPED(c) COMMIT_STATE(c) = -iteration\n#define COMMIT_WAS_JUST_SKIPPED(c) (COMMIT_STATE(c) == -iteration)\n\nstatic const void* _associatedObjectCommitKey = &_associatedObjectCommitKey;\nstatic const void* _associatedObjectAnnotationKey = &_associatedObjectAnnotationKey;\nstatic const void* _associatedObjectUpstreamNameKey = &_associatedObjectUpstreamNameKey;\n\n@interface GCHistoryCommit () {\n@public\n  NSUInteger generation;\n}\n@end\n\n@implementation GCHistoryCommit {\n@public\n  NSUInteger _autoIncrementID;\n  CFMutableArrayRef _parents;\n  CFMutableArrayRef _children;\n  CFMutableArrayRef _localBranches;\n  CFMutableArrayRef _remoteBranches;\n  CFMutableArrayRef _tags;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository commit:(git_commit*)commit autoIncrementID:(NSUInteger)autoIncrementID {\n  if ((self = [super initWithRepository:repository commit:commit])) {\n    _autoIncrementID = autoIncrementID;\n    _parents = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n    _children = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  return self;\n}\n\n- (void)dealloc {\n  if (_localBranches) {\n    CFRelease(_localBranches);\n  }\n  if (_remoteBranches) {\n    CFRelease(_remoteBranches);\n  }\n  if (_tags) {\n    CFRelease(_tags);\n  }\n  CFRelease(_children);\n  CFRelease(_parents);\n\n  [super dealloc];\n}\n\n- (NSArray*)parents {\n  return (NSArray*)_parents;\n}\n\n- (NSArray*)children {\n  return (NSArray*)_children;\n}\n\n- (NSArray*)localBranches {\n  return (NSArray*)_localBranches;\n}\n\n- (NSArray*)remoteBranches {\n  return (NSArray*)_remoteBranches;\n}\n\n- (NSArray*)tags {\n  return (NSArray*)_tags;\n}\n\n- (void)addParent:(GCHistoryCommit*)commit {\n  CFArrayAppendValue(_parents, (const void*)commit);\n}\n\n- (void)removeParent:(GCHistoryCommit*)commit {\n  CFIndex index = CFArrayGetFirstIndexOfValue(_parents, CFRangeMake(0, CFArrayGetCount(_parents)), (const void*)commit);\n  if (index != kCFNotFound) {\n    CFArrayRemoveValueAtIndex(_parents, index);\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)addChild:(GCHistoryCommit*)commit {\n  CFArrayAppendValue(_children, (const void*)commit);\n}\n\n- (void)removeChild:(GCHistoryCommit*)commit {\n  CFIndex index = CFArrayGetFirstIndexOfValue(_children, CFRangeMake(0, CFArrayGetCount(_children)), (const void*)commit);\n  if (index != kCFNotFound) {\n    CFArrayRemoveValueAtIndex(_children, index);\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)addLocalBranch:(GCHistoryLocalBranch*)branch {\n  if (_localBranches == NULL) {\n    _localBranches = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  CFArrayAppendValue(_localBranches, (const void*)branch);\n}\n\n- (void)addRemoteBranch:(GCHistoryRemoteBranch*)branch {\n  if (_remoteBranches == NULL) {\n    _remoteBranches = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  CFArrayAppendValue(_remoteBranches, (const void*)branch);\n}\n\n- (void)addTag:(GCHistoryTag*)tag {\n  if (_tags == NULL) {\n    _tags = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  CFArrayAppendValue(_tags, (const void*)tag);\n}\n\n- (void)removeAllReferences {\n  if (_localBranches) {\n    CFRelease(_localBranches);\n    _localBranches = NULL;\n  }\n  if (_remoteBranches) {\n    CFRelease(_remoteBranches);\n    _remoteBranches = NULL;\n  }\n  if (_tags) {\n    CFRelease(_tags);\n    _tags = NULL;\n  }\n}\n\n- (BOOL)isRoot {\n  return CFArrayGetCount(_parents) ? NO : YES;\n}\n\n- (BOOL)isLeaf {\n  return CFArrayGetCount(_children) ? NO : YES;\n}\n\n- (BOOL)hasReferences {\n  return _localBranches || _remoteBranches || _tags;\n}\n\n@end\n\n@interface GCHistoryTag ()\n@property(nonatomic, weak) GCHistoryCommit* commit;\n@property(nonatomic, strong) GCTagAnnotation* annotation;\n@end\n\n@implementation GCHistoryTag\n\n- (void)dealloc {\n  [_annotation release];\n\n  [super dealloc];\n}\n\n@end\n\n@interface GCHistoryLocalBranch ()\n@property(nonatomic, weak) GCHistoryCommit* tipCommit;\n@property(nonatomic, weak) GCBranch* upstream;\n@end\n\n@implementation GCHistoryLocalBranch\n@end\n\n@interface GCHistoryRemoteBranch ()\n@property(nonatomic, weak) GCHistoryCommit* tipCommit;\n@end\n\n@implementation GCHistoryRemoteBranch\n@end\n\n@interface GCHistory ()\n@property(nonatomic) NSUInteger nextGeneration;\n@property(nonatomic, strong) NSArray* tags;\n@property(nonatomic, strong) NSArray* localBranches;\n@property(nonatomic, strong) NSArray* remoteBranches;\n@property(nonatomic) NSUInteger nextAutoIncrementID;\n@property(nonatomic, readonly) NSMutableArray* commits;\n@property(nonatomic, readonly) NSMutableArray* roots;\n@property(nonatomic, readonly) NSMutableArray* leaves;\n@property(nonatomic, readonly) CFMutableDictionaryRef lookup;\n@property(nonatomic, strong) NSSet* tips;\n@property(nonatomic, weak) GCHistoryCommit* HEADCommit;\n@property(nonatomic, weak) GCHistoryLocalBranch* HEADBranch;\n@property(nonatomic, strong) NSData* md5;\n@end\n\n@implementation GCHistory {\n  GCSearchIndex* _searchIndex;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository sorting:(GCHistorySorting)sorting {\n  if ((self = [super init])) {\n    _repository = repository;\n    _sorting = sorting;\n    _commits = [[NSMutableArray alloc] initWithCapacity:4096];\n    _roots = [[NSMutableArray alloc] init];\n    _leaves = [[NSMutableArray alloc] init];\n    CFDictionaryKeyCallBacks callbacks = {0, NULL, NULL, NULL, GCOIDEqualCallBack, GCOIDHashCallBack};\n    _lookup = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &callbacks, NULL);\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [_tags release];\n  [_localBranches release];\n  [_remoteBranches release];\n  [_tips release];\n  [_md5 release];\n\n  CFRelease(_lookup);\n  [_leaves release];\n  [_roots release];\n  [_commits release];\n\n  [super dealloc];\n}\n\n#pragma mark - Accessors\n\n- (BOOL)isEmpty {\n  return !_commits.count;\n}\n\n- (NSArray*)allCommits {\n  return _commits;\n}\n\n- (NSArray*)rootCommits {\n  return _roots;\n}\n\n- (NSArray*)leafCommits {\n  return _leaves;\n}\n\n- (BOOL)isHEADDetached {\n  return _HEADBranch ? NO : YES;\n}\n\n#pragma mark - Utilities\n\n- (GCHistoryCommit*)historyCommitForOID:(const git_oid*)oid {\n  return CFDictionaryGetValue(_lookup, oid);\n}\n\n- (GCHistoryCommit*)historyCommitWithSHA1:(NSString*)sha1 {\n  git_oid oid;\n  if (!GCGitOIDFromSHA1(sha1, &oid, NULL)) {\n    XLOG_DEBUG_UNREACHABLE();\n    return nil;\n  }\n  return [self historyCommitForOID:&oid];\n}\n\n- (GCHistoryCommit*)historyCommitForCommit:(GCCommit*)commit {\n  return [self historyCommitForOID:git_commit_id(commit.private)];\n}\n\n- (GCHistoryLocalBranch*)historyLocalBranchForLocalBranch:(GCLocalBranch*)branch {\n  for (GCHistoryLocalBranch* localBranch in _localBranches) {\n    if ([localBranch isEqualToBranch:branch]) {\n      return localBranch;\n    }\n  }\n  return nil;\n}\n\n- (GCHistoryLocalBranch*)historyLocalBranchWithName:(NSString*)name {\n  for (GCHistoryLocalBranch* localBranch in _localBranches) {\n    if ([localBranch.name isEqualToString:name]) {\n      return localBranch;\n    }\n  }\n  return nil;\n}\n\n- (GCHistoryRemoteBranch*)historyRemoteBranchForRemoteBranch:(GCRemoteBranch*)branch {\n  for (GCHistoryRemoteBranch* remoteBranch in _remoteBranches) {\n    if ([remoteBranch isEqualToBranch:branch]) {\n      return remoteBranch;\n    }\n  }\n  return nil;\n}\n\n- (GCHistoryRemoteBranch*)historyRemoteBranchWithName:(NSString*)name {\n  for (GCHistoryRemoteBranch* remoteBranch in _remoteBranches) {\n    if ([remoteBranch.name isEqualToString:name]) {\n      return remoteBranch;\n    }\n  }\n  return nil;\n}\n\n#pragma mark - Misc\n\n- (NSUInteger)countAncestorCommitsFromCommit:(GCHistoryCommit*)fromCommit toCommit:(GCHistoryCommit*)toCommit {\n  if (![fromCommit isEqualToCommit:toCommit]) {\n    __block NSUInteger counter = 1;\n    BOOL* states = calloc(_nextAutoIncrementID, sizeof(BOOL));\n\n    COMMIT_STATE(toCommit) = YES;\n    GCHistoryWalker* walker = [self walkerForAncestorsOfCommits:@[ fromCommit ]];\n    while (1) {\n      NSUInteger oldCounter = counter;\n      if (![walker iterateWithCommitBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n            if (!COMMIT_STATE(commit)) {\n              BOOL skip = NO;\n              CFArrayRef children = commit->_children;\n              for (CFIndex i = 0, count = CFArrayGetCount(children); i < count; ++i) {\n                GCHistoryCommit* childCommit = CFArrayGetValueAtIndex(children, i);\n                if (COMMIT_STATE(childCommit)) {\n                  skip = YES;\n                  break;\n                }\n              }\n              if (skip) {\n                COMMIT_STATE(commit) = YES;\n              } else {\n                ++counter;\n              }\n            }\n          }] ||\n          (counter == oldCounter)) {\n        break;\n      }\n    }\n\n    free(states);\n    return counter;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"[%@] %lu commits\\n HEAD Commit: %@\\nHEAD Branch: %@\\nRoots: %@\\nLeafs:\\n%@\", self.class, (unsigned long)_commits.count, _HEADCommit, _HEADBranch, _roots, _leaves];\n}\n\n@end\n\n@implementation GCHistoryWalker {\n  GCHistory* _history;\n  NSUInteger _nextGeneration;\n  NSArray* _commits;\n  BOOL _followParents;\n  BOOL _entireHistory;\n  BOOL _done;\n\n  int* states;\n  GCPointerList row;\n  GCPointerList previousRow;\n  GCPointerList candidates;\n  int iteration;\n}\n\n- (id)initWithHistory:(GCHistory*)history\n              commits:(NSArray*)commits\n        followParents:(BOOL)followParents\n        entireHistory:(BOOL)entireHistory {\n  if ((self = [super init])) {\n    _history = [history retain];\n    _nextGeneration = history.nextGeneration;\n    _commits = [commits retain];\n    _followParents = followParents;\n    _entireHistory = entireHistory;\n\n    states = calloc(history.nextAutoIncrementID, sizeof(int));\n    GC_POINTER_LIST_INITIALIZE(row, 32);\n    GC_POINTER_LIST_INITIALIZE(previousRow, GC_POINTER_LIST_MAX(row));\n    GC_POINTER_LIST_INITIALIZE(candidates, 4);\n    iteration = 1;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  GC_POINTER_LIST_FREE(candidates);\n  GC_POINTER_LIST_FREE(previousRow);\n  GC_POINTER_LIST_FREE(row);\n  free(states);\n\n  [_commits release];\n  [_history release];\n\n  [super dealloc];\n}\n\n- (BOOL)iterateWithCommitBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block {\n  if (_done) {\n    XLOG_DEBUG_UNREACHABLE();  // We were already done iterating before!\n    return NO;\n  }\n\n  if (_history.nextGeneration != _nextGeneration) {\n    XLOG_DEBUG_UNREACHABLE();  // The history has changed from under us!\n    return NO;\n  }\n\n  // Seed first row with initial commits\n  if (_commits) {\n    for (GCHistoryCommit* commit in _commits) {\n      if (_entireHistory) {\n        BOOL stop = NO;\n        block(commit, &stop);\n        if (stop) {\n          _done = YES;\n          return NO;\n        }\n      }\n      SET_COMMIT_PROCESSED(commit);\n      GC_POINTER_LIST_APPEND(previousRow, commit);\n    }\n    [_commits release];\n    _commits = nil;\n    if (GC_POINTER_LIST_COUNT(previousRow) == 0) {\n      XLOG_DEBUG_UNREACHABLE();\n      _done = YES;\n      return NO;\n    }\n    if (_entireHistory) {\n      return YES;\n    }\n  }\n\n  // Keep generating commit rows following parents (respectively children)\n  if (GC_POINTER_LIST_COUNT(previousRow)) {\n    __block BOOL success = NO;\n    BOOL (^commitBlock)(GCHistoryCommit*) = ^(GCHistoryCommit* commit) {\n      XLOG_DEBUG_CHECK(!COMMIT_IS_PROCESSED(commit));\n      BOOL ready = YES;\n\n      // Check if this commit is \"ready\" i.e. all its children (respectively parents) have been processed (but not on the current iteration)\n      CFArrayRef relations = _followParents ? commit->_children : commit->_parents;\n      for (CFIndex j = 0, jMax = CFArrayGetCount(relations); j < jMax; ++j) {\n        GCHistoryCommit* relation = CFArrayGetValueAtIndex(relations, j);\n        ready = COMMIT_IS_PROCESSED(relation) && !COMMIT_WAS_JUST_PROCESSED(relation);\n        if (!ready) {\n          break;\n        }\n      }\n\n      // Process commit if ready or skip it otherwise\n      if (ready) {\n        BOOL stop = NO;\n        block(commit, &stop);\n        if (stop) {\n          return NO;\n        }\n        SET_COMMIT_PROCESSED(commit);\n        success = YES;\n      } else {\n        SET_COMMIT_SKIPPED(commit);\n      }\n      GC_POINTER_LIST_APPEND(row, commit);\n      return YES;\n    };\n    ++iteration;\n\n    // Iterate over commits from previous row\n    GC_POINTER_LIST_FOR_LOOP(previousRow, GCHistoryCommit*, previousCommit) {\n      // If commit was processed, attempt to process its parents (respectively children)\n      if (COMMIT_IS_PROCESSED(previousCommit)) {\n        if (!COMMIT_WAS_JUST_PROCESSED(previousCommit)) {\n          CFArrayRef relations = _followParents ? previousCommit->_parents : previousCommit->_children;\n          for (CFIndex i = 0, iMax = CFArrayGetCount(relations); i < iMax; ++i) {\n            GCHistoryCommit* relation = CFArrayGetValueAtIndex(relations, i);\n            if (!COMMIT_WAS_JUST_PROCESSED(relation) && !COMMIT_WAS_JUST_SKIPPED(relation)) {\n              XLOG_DEBUG_CHECK(!GC_POINTER_LIST_CONTAINS(row, relation));\n              if (!commitBlock(relation)) {\n                _done = YES;\n                return NO;\n              }\n            }\n          }\n        }\n      }\n      // Otherwise, commit was skipped, attempt to reprocess it\n      else {\n        if (!COMMIT_WAS_JUST_SKIPPED(previousCommit)) {\n          XLOG_DEBUG_CHECK(!GC_POINTER_LIST_CONTAINS(row, previousCommit));\n          if (!commitBlock(previousCommit)) {\n            _done = YES;\n            return NO;\n          }\n        }\n      }\n    }\n\n    // If row is empty we're done\n    if (!GC_POINTER_LIST_COUNT(row)) {\n      _done = YES;\n      return NO;\n    }\n\n    // If row only contains only skipped commits (this can only happen when not walking the entire history),\n    // break the deadlock by force processing the newest (respectively oldest) skipped commit\n    if (!success) {\n      XLOG_DEBUG_CHECK(!_entireHistory);\n      XLOG_DEBUG_CHECK(sizeof(git_time_t) == sizeof(int64_t));\n\n      // Find newest (respectively oldest) skipped commit(s)\n      git_time_t boundaryTime = _followParents ? LONG_LONG_MIN : LONG_LONG_MAX;\n      GC_POINTER_LIST_FOR_LOOP(row, GCHistoryCommit*, timeCommit) {\n        git_time_t time = git_commit_time(timeCommit.private);\n        if (time == boundaryTime) {\n          GC_POINTER_LIST_APPEND(candidates, timeCommit);\n        } else if ((_followParents && (time > boundaryTime)) || (!_followParents && (time < boundaryTime))) {\n          GC_POINTER_LIST_RESET(candidates);\n          GC_POINTER_LIST_APPEND(candidates, timeCommit);\n          boundaryTime = time;\n        }\n      }\n\n      // If we have multiple candidates, remove the ones that are parents (respectively children) of the others\n      if (GC_POINTER_LIST_COUNT(candidates) > 1) {\n        GC_POINTER_LIST_ALLOCATE(temp, GC_POINTER_LIST_MAX(candidates));\n        GC_POINTER_LIST_FOR_LOOP(candidates, GCHistoryCommit*, candidate1) {\n          BOOL isParent = NO;\n          GC_POINTER_LIST_FOR_LOOP(candidates, GCHistoryCommit*, candidate2) {\n            if (candidate2 != candidate1) {\n              CFArrayRef relations = _followParents ? candidate2->_parents : candidate2->_children;\n              if (CFArrayContainsValue(relations, CFRangeMake(0, CFArrayGetCount(relations)), candidate1)) {\n                isParent = YES;\n                break;\n              }\n            }\n          }\n          if (!isParent) {\n            GC_POINTER_LIST_APPEND(temp, candidate1);\n          }\n        }\n        GC_POINTER_LIST_SWAP(temp, candidates);\n        GC_POINTER_LIST_FREE(temp);\n\n        // Bail if we still have more than a single candidate since it's not possible to guarantee the following commits won't be processed out-of-order\n        if (GC_POINTER_LIST_COUNT(candidates) != 1) {\n          XLOG_ERROR(@\"Unable to continue walking history in \\\"%@\\\" due to unsolvable deadlock\", _history.repository.repositoryPath);\n          _done = YES;\n          return NO;\n        }\n      }\n\n      // Force process commit\n      GCHistoryCommit* commit = GC_POINTER_LIST_GET(candidates, 0);\n      BOOL stop = NO;\n      block(commit, &stop);\n      if (stop) {\n        _done = YES;\n        return NO;\n      }\n      SET_COMMIT_PROCESSED(commit);\n    }\n\n    // Save row\n    GC_POINTER_LIST_SWAP(row, previousRow);\n    GC_POINTER_LIST_RESET(row);\n  } else {\n    _done = YES;\n    return NO;\n  }\n\n  return YES;\n}\n\n@end\n\n@implementation GCHistory (GCHistoryWalker)\n\n- (void)walkAncestorsOfCommits:(NSArray*)commits usingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block {\n  GCHistoryWalker* walker = [[GCHistoryWalker alloc] initWithHistory:self commits:commits followParents:YES entireHistory:NO];\n  while ([walker iterateWithCommitBlock:block]) {\n    ;\n  }\n  [walker release];\n}\n\n- (void)walkDescendantsOfCommits:(NSArray*)commits usingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block {\n  GCHistoryWalker* walker = [[GCHistoryWalker alloc] initWithHistory:self commits:commits followParents:NO entireHistory:NO];\n  while ([walker iterateWithCommitBlock:block]) {\n    ;\n  }\n  [walker release];\n}\n\n- (void)walkAllCommitsFromLeavesUsingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block {\n  GCHistoryWalker* walker = [[GCHistoryWalker alloc] initWithHistory:self commits:_leaves followParents:YES entireHistory:YES];\n  while ([walker iterateWithCommitBlock:block]) {\n    ;\n  }\n  [walker release];\n}\n\n- (void)walkAllCommitsFromRootsUsingBlock:(void (^)(GCHistoryCommit* commit, BOOL* stop))block {\n  GCHistoryWalker* walker = [[GCHistoryWalker alloc] initWithHistory:self commits:_roots followParents:NO entireHistory:YES];\n  while ([walker iterateWithCommitBlock:block]) {\n    ;\n  }\n  [walker release];\n}\n\n- (GCHistoryWalker*)walkerForAncestorsOfCommits:(NSArray*)commits {\n  return [[[GCHistoryWalker alloc] initWithHistory:self commits:commits followParents:YES entireHistory:NO] autorelease];\n}\n\n- (GCHistoryWalker*)walkerForDescendantsOfCommits:(NSArray*)commits {\n  return [[[GCHistoryWalker alloc] initWithHistory:self commits:commits followParents:NO entireHistory:NO] autorelease];\n}\n\n@end\n\n@implementation GCRepository (GCHistory)\n\n#pragma mark - Repository\n\n- (void)_walkAncestorsFromCommit:(GCHistoryCommit*)commit usingBlock:(BOOL (^)(GCHistoryCommit* commit, GCHistoryCommit* childCommit))block {\n  GC_POINTER_LIST_ALLOCATE(parentsCommits, 32);\n  GC_POINTER_LIST_ALLOCATE(childrenCommits, 32);\n  GC_POINTER_LIST_APPEND(parentsCommits, commit);\n  GC_POINTER_LIST_APPEND(childrenCommits, NULL);\n  while (1) {\n    size_t count = GC_POINTER_LIST_COUNT(parentsCommits);\n    XLOG_DEBUG_CHECK(GC_POINTER_LIST_COUNT(childrenCommits) == count);\n    if (count == 0) {\n      break;\n    }\n    GCHistoryCommit* parentCommit = GC_POINTER_LIST_POP(parentsCommits);\n    GCHistoryCommit* childCommit = GC_POINTER_LIST_POP(childrenCommits);\n    while (1) {\n      if (!block(parentCommit, childCommit)) {\n        break;\n      }\n      CFArrayRef grandParents = parentCommit->_parents;\n      CFIndex grandCount = CFArrayGetCount(grandParents);\n      if (grandCount) {\n        childCommit = parentCommit;\n        parentCommit = CFArrayGetValueAtIndex(grandParents, 0);\n        for (CFIndex i = 1; i < grandCount; ++i) {\n          GC_POINTER_LIST_APPEND(parentsCommits, (GCHistoryCommit*)CFArrayGetValueAtIndex(grandParents, i));\n          GC_POINTER_LIST_APPEND(childrenCommits, childCommit);\n        }\n      } else {\n        break;\n      }\n    }\n  }\n  GC_POINTER_LIST_FREE(parentsCommits);\n  GC_POINTER_LIST_FREE(childrenCommits);\n}\n\n- (BOOL)_reloadHistory:(GCHistory*)history\n          usingSnapshot:(GCSnapshot*)snapshot\n    referencesDidChange:(BOOL*)outReferencesDidChange\n           addedCommits:(NSArray**)outAddedCommits\n         removedCommits:(NSArray**)outRemovedCommits\n                  error:(NSError**)error {\n  XLOG_DEBUG_CHECK([NSThread isMainThread]);  // This could work from any thread but it really shouldn't happen in practice\n  BOOL success = NO;\n  NSUInteger nextAutoIncrementID = history.nextAutoIncrementID;\n  NSUInteger generation = history.nextGeneration;\n  GCCommit* headTip = nil;\n  __block GCHistoryLocalBranch* headBranch = nil;\n  git_reference* headReference = NULL;\n  NSMutableSet* tips = [[NSMutableSet alloc] init];\n  NSSet* historyTips = history.tips;\n  NSMutableArray* tags = [[NSMutableArray alloc] init];\n  NSMutableArray* localBranches = [[NSMutableArray alloc] init];\n  NSMutableArray* remoteBranches = [[NSMutableArray alloc] init];\n  git_revwalk* walker = NULL;\n  CFMutableDictionaryRef lookup = history.lookup;\n  NSMutableArray* commits = historyTips ? [NSMutableArray array] : history.commits;\n  NSMutableArray* roots = history.roots;\n  NSMutableArray* leaves = history.leaves;\n  NSMutableArray* addedCommits = nil;\n  NSMutableArray* removedCommits = nil;\n\n  // Reset output arguments\n  if (outReferencesDidChange) {\n    *outReferencesDidChange = NO;\n  }\n  if (outAddedCommits) {\n    *outAddedCommits = nil;\n  }\n  if (outRemovedCommits) {\n    *outRemovedCommits = nil;\n  }\n\n  // Load local config\n  if (!snapshot) {\n    NSDictionary* config = nil;\n    NSArray* options = [self readConfigForLevel:kGCConfigLevel_Local error:error];\n    if (options == nil) {\n      goto cleanup;\n    }\n    config = [NSMutableDictionary dictionary];\n    for (GCConfigOption* option in options) {\n      [(NSMutableDictionary*)config setObject:option.value forKey:option.variable];  // TODO: Handle duplicate config entries for the same variable\n    }\n  }\n\n  // Initialize MD5\n  CC_MD5_CTX md5Context;\n  CC_MD5_CTX* md5ContextPtr = &md5Context;  // Required for use within block\n  CC_MD5_Init(md5ContextPtr);\n\n  // Find HEAD tip\n  git_commit* headCommit = NULL;\n  if (snapshot) {\n    for (GCSerializedReference* serializedReference in snapshot.serializedReferences) {\n      if ([serializedReference isHEAD]) {\n        GCSerializedReference* resolvedReference = serializedReference;\n        while (resolvedReference.type == GIT_REF_SYMBOLIC) {\n          resolvedReference = [snapshot serializedReferenceWithName:resolvedReference.symbolicTarget];\n        }\n        if (resolvedReference) {  // Allow unborn HEAD\n          CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &headCommit, self.private, resolvedReference.resolvedTarget);\n          headTip = [[GCCommit alloc] initWithRepository:self commit:headCommit];\n          if (resolvedReference != serializedReference) {\n            CALL_LIBGIT2_FUNCTION_GOTO(cleanup, gitup_reference_create_virtual, &headReference, self.private, resolvedReference.name, resolvedReference.resolvedTarget);\n          }\n        }\n        break;\n      }\n    }\n  } else {\n    if (![self loadHEADCommit:&headCommit resolvedReference:&headReference error:error]) {  // Allow unborn HEAD\n      goto cleanup;\n    }\n    if (headCommit) {\n      headTip = [[GCCommit alloc] initWithRepository:self commit:headCommit];\n    }\n  }\n  if (headTip) {\n    [tips addObject:headTip];\n  }\n  if (headReference) {\n    CC_MD5_Update(md5ContextPtr, git_reference_name(headReference), (CC_LONG)strlen(git_reference_name(headReference)));\n  }\n  if (headCommit) {\n    CC_MD5_Update(md5ContextPtr, git_commit_id(headCommit), sizeof(git_oid));\n  }\n\n  // Find all other tips\n  BOOL (^enumerateBlock)(git_reference*) = ^(git_reference* reference) {\n    GCReference* referenceObject = nil;\n    if (git_reference_type(reference) != GIT_REF_SYMBOLIC) {  // Skip symbolic refs like \"remote/origin/HEAD\"\n      git_commit* commit = NULL;\n      git_tag* tag = NULL;\n      git_oid oid;\n      if ([self loadTargetOID:&oid fromReference:reference error:NULL]) {  // Ignore errors since repositories can have invalid references\n        git_object* object;\n        int status = git_object_lookup(&object, self.private, &oid, GIT_OBJ_ANY);\n        if (status == GIT_OK) {\n          if (git_object_type(object) == GIT_OBJ_COMMIT) {\n            commit = (git_commit*)object;\n            object = NULL;\n          } else if (git_object_type(object) == GIT_OBJ_TAG) {\n            status = git_object_peel((git_object**)&commit, object, GIT_OBJ_COMMIT);\n            if (status == GIT_OK) {\n              tag = (git_tag*)object;\n            } else {\n              git_object_free(object);\n            }\n          } else {\n            XLOG_DEBUG_UNREACHABLE();\n            git_object_free(object);\n          }\n        }\n        if (status != GIT_OK) {\n          LOG_LIBGIT2_ERROR(status);\n        }\n      }\n      if (commit) {\n        GCCommit* referenceCommit = [[GCCommit alloc] initWithRepository:self commit:commit];\n        GCTagAnnotation* referenceAnnotation = tag ? [[GCTagAnnotation alloc] initWithRepository:self tag:tag] : nil;\n        git_buf upstreamName = {0};\n        if (git_reference_is_tag(reference)) {\n          referenceObject = [[GCHistoryTag alloc] initWithRepository:self reference:reference];\n          [tags addObject:referenceObject];\n        } else if (git_reference_is_branch(reference)) {\n          referenceObject = [[GCHistoryLocalBranch alloc] initWithRepository:self reference:reference];\n          [localBranches addObject:referenceObject];\n          if (headReference && ([referenceObject compareWithReference:headReference] == NSOrderedSame)) {\n            XLOG_DEBUG_CHECK(headBranch == nil);\n            headBranch = (GCHistoryLocalBranch*)referenceObject;\n          }\n\n          int status = gitup_branch_upstream_name(&upstreamName, self.private, git_reference_name(reference));\n          if ((status != GIT_OK) && (status != GIT_ENOTFOUND)) {\n            LOG_LIBGIT2_ERROR(status);  // Don't fail because of corrupted config\n          }\n        } else if (git_reference_is_remote(reference)) {\n          referenceObject = [[GCHistoryRemoteBranch alloc] initWithRepository:self reference:reference];\n          [remoteBranches addObject:referenceObject];\n        } else {\n          XLOG_VERBOSE(@\"Ignoring reference \\\"%s\\\" for history of \\\"%@\\\"\", git_reference_name(reference), self.repositoryPath);\n        }\n        if (referenceObject) {\n          [tips addObject:referenceCommit];\n          objc_setAssociatedObject(referenceObject, _associatedObjectCommitKey, referenceCommit, OBJC_ASSOCIATION_RETAIN_NONATOMIC);  // Must be retained since commit is not necessarily retained by tips set\n          objc_setAssociatedObject(referenceObject, _associatedObjectAnnotationKey, referenceAnnotation, OBJC_ASSOCIATION_RETAIN_NONATOMIC);  // Must be retained since commit is not necessarily retained by tips set\n          if (upstreamName.ptr) {\n            objc_setAssociatedObject(referenceObject, _associatedObjectUpstreamNameKey, [NSString stringWithUTF8String:upstreamName.ptr], OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n          }\n\n          CC_MD5_Update(md5ContextPtr, git_reference_name(reference), (CC_LONG)strlen(git_reference_name(reference)));\n          CC_MD5_Update(md5ContextPtr, git_commit_id(commit), sizeof(git_oid));\n          if (upstreamName.ptr) {\n            CC_MD5_Update(md5ContextPtr, upstreamName.ptr, (CC_LONG)upstreamName.size);\n          }\n        }\n        git_buf_free(&upstreamName);\n        if (referenceAnnotation) {\n          [referenceAnnotation release];\n        }\n        [referenceCommit release];\n      } else {\n        XLOG_WARNING(@\"Dangling direct reference \\\"%s\\\" without commit in \\\"%@\\\"\", git_reference_name(reference), self.repositoryPath);\n      }\n    }\n    if (referenceObject) {\n      [referenceObject release];\n    } else {\n      git_reference_free(reference);\n    }\n    return YES;\n  };\n  if (snapshot) {\n    for (GCSerializedReference* serializedReference in snapshot.serializedReferences) {\n      if ([serializedReference isHEAD]) {\n        continue;\n      }\n      git_reference* reference = NULL;\n      switch (serializedReference.type) {\n        case GIT_REF_OID:\n          CALL_LIBGIT2_FUNCTION_GOTO(cleanup, gitup_reference_create_virtual, &reference, self.private, serializedReference.name, serializedReference.directTarget);\n          break;\n\n        case GIT_REF_SYMBOLIC:\n          CALL_LIBGIT2_FUNCTION_GOTO(cleanup, gitup_reference_symbolic_create_virtual, &reference, self.private, serializedReference.name, serializedReference.symbolicTarget);\n          break;\n\n        default:\n          XLOG_DEBUG_UNREACHABLE();\n          goto cleanup;\n      }\n      if (!enumerateBlock(reference)) {\n        git_reference_free(reference);\n        goto cleanup;\n      }\n    }\n  } else {\n    if (![self enumerateReferencesWithOptions:kGCReferenceEnumerationOption_RetainReferences error:error usingBlock:enumerateBlock]) {\n      goto cleanup;\n    }\n  }\n\n  // Check if there were any modified references compared to previous version of history\n  NSMutableData* md5 = [NSMutableData dataWithLength:CC_MD5_DIGEST_LENGTH];\n  CC_MD5_Final(md5.mutableBytes, md5ContextPtr);\n  if ([history.md5 isEqualToData:md5]) {\n    success = YES;\n    goto cleanup;\n  }\n\n  // Configure commit tree walker to start from tips\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_revwalk_new, &walker, self.private);\n  git_revwalk_sorting(walker, GIT_SORT_NONE);\n  git_revwalk_add_hide_block(walker, ^int(const git_oid* commit_id) {\n    return CFDictionaryContainsKey(lookup, commit_id);\n  });\n  if (historyTips) {\n    for (GCCommit* tip in tips) {\n      if (![historyTips containsObject:tip]) {\n        const git_oid* oid = git_commit_id(tip.private);\n        if (!CFDictionaryContainsKey(lookup, oid)) {\n          CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_revwalk_push, walker, oid);\n        }\n      }\n    }\n  } else {\n    for (GCCommit* tip in tips) {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_revwalk_push, walker, git_commit_id(tip.private));\n    }\n  }\n\n  // Generate commits by walking commit tree\n  while (1) {\n    git_oid oid;\n    int status = git_revwalk_next(&oid, walker);\n    if (status == GIT_ITEROVER) {\n      break;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    git_commit* walkCommit;\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &walkCommit, self.private, &oid);\n    GCHistoryCommit* commit = [[GCHistoryCommit alloc] initWithRepository:self commit:walkCommit autoIncrementID:nextAutoIncrementID++];\n    [commits addObject:commit];\n    [commit release];\n    CFDictionarySetValue(lookup, git_commit_id(walkCommit), (const void*)commit);  // Use the git_oid stored in the object itself (and retained by GCHistoryCommit) as the key, so no need to copy it\n  }\n\n  // Add parent / child relations to commits\n  for (GCHistoryCommit* commit in commits) {\n    git_commit* walkCommit = commit.private;\n    for (unsigned int i = 0, count = git_commit_parentcount(walkCommit); i < count; ++i) {\n      const git_oid* parentOID = git_commit_parent_id(walkCommit, i);\n      GCHistoryCommit* parent = (GCHistoryCommit*)CFDictionaryGetValue(lookup, parentOID);\n      if (parent) {  // We can't distinguish between a commit missing from the Git database and one that was hidden explicitly\n        [commit addParent:parent];\n        [parent addChild:commit];  // TODO: Find a way to make this ordering deterministic\n      }\n    }\n  }\n\n  // Merge newfound commits into old history\n  if (historyTips) {\n    [history.commits addObjectsFromArray:commits];\n    addedCommits = commits;\n    commits = history.commits;\n  }\n\n  // Clear old references\n  if (historyTips) {\n    for (GCHistoryTag* tag in history.tags) {\n      [tag.commit removeAllReferences];\n    }\n    for (GCHistoryLocalBranch* branch in history.localBranches) {\n      [branch.tipCommit removeAllReferences];\n    }\n    for (GCHistoryRemoteBranch* branch in history.remoteBranches) {\n      [branch.tipCommit removeAllReferences];\n    }\n  }\n\n  // Find and remove orphan commits from old history\n  if (historyTips) {\n    // Update generation for all commits reachable from new tips\n    for (GCCommit* tip in tips) {\n      GCHistoryCommit* tipCommit = (GCHistoryCommit*)CFDictionaryGetValue(lookup, git_commit_id(tip.private));\n      XLOG_DEBUG_CHECK(tipCommit);\n      [self _walkAncestorsFromCommit:tipCommit\n                          usingBlock:^BOOL(GCHistoryCommit* commit, GCHistoryCommit* previousCommit) {\n                            if (commit->generation == generation) {\n                              return NO;\n                            }\n                            commit->generation = generation;\n                            return YES;\n                          }];\n    }\n\n    // Scan all commits reachable from old tips and check if still reachable from new tips\n    removedCommits = [[NSMutableArray alloc] init];  // Make sure to retain removed commits as they can be accessed several times through the scan\n    for (GCCommit* tip in historyTips) {\n      GCHistoryCommit* tipCommit = (GCHistoryCommit*)CFDictionaryGetValue(lookup, git_commit_id(tip.private));\n      if (tipCommit == nil) {\n        continue;  // Commit might have already been removed\n      }\n      [self _walkAncestorsFromCommit:tipCommit\n                          usingBlock:^BOOL(GCHistoryCommit* commit, GCHistoryCommit* childCommit) {\n                            if (commit->generation == generation) {\n                              if (childCommit) {\n                                [childCommit removeParent:commit];\n                                [commit removeChild:childCommit];\n                              }\n                              return NO;\n                            }\n                            if (CFDictionaryContainsKey(lookup, git_commit_id(commit.private))) {  // Using -indexOfObjectIdenticalTo: on a large array can be quite slow so make sure the commit is in there first\n                              NSUInteger index = [commits indexOfObjectIdenticalTo:commit];  // Pointer comparison is enough here, no need for -isEqual\n                              if (index != NSNotFound) {\n                                [removedCommits addObject:commit];\n                                CFDictionaryRemoveValue(lookup, git_commit_id(commit.private));\n                                [commits removeObjectAtIndex:index];  // Should be a bit faster than calling -removeObjectIdenticalTo: since it will stop on the first (and unique) match\n                                XLOG_DEBUG_CHECK(![commits containsObject:commit]);\n                              } else {\n                                XLOG_DEBUG_UNREACHABLE();\n                              }\n                            }\n                            return YES;\n                          }];\n    }\n  }\n\n  // Sort commits\n  if (history.sorting == kGCHistorySorting_ReverseChronological) {\n    [commits sortUsingSelector:@selector(reverseTimeCompare:)];  // Newest first\n  } else {\n    XLOG_DEBUG_CHECK(history.sorting == kGCHistorySorting_None);\n  }\n\n  // Update roots and leaves\n  if (historyTips) {\n    [roots removeAllObjects];\n    [leaves removeAllObjects];\n  }\n  for (GCHistoryCommit* commit in commits) {\n    if (commit.root) {\n      [roots addObject:commit];\n    }\n    if (commit.leaf) {\n      XLOG_DEBUG_CHECK([tips containsObject:commit]);\n      [leaves addObject:commit];\n    }\n  }\n\n  // Add new references\n  for (NSUInteger i = 0, count = tags.count; i < count; ++i) {\n    GCHistoryTag* tag = tags[i];\n    GCCommit* referenceCommit = objc_getAssociatedObject(tag, _associatedObjectCommitKey);\n    GCHistoryCommit* commit = CFDictionaryGetValue(lookup, git_commit_id(referenceCommit.private));\n    objc_setAssociatedObject(tag, _associatedObjectCommitKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    if (commit) {\n      tag.commit = commit;\n      tag.annotation = objc_getAssociatedObject(tag, _associatedObjectAnnotationKey);\n      [commit addTag:tag];\n      objc_setAssociatedObject(tag, _associatedObjectAnnotationKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    } else {\n      XLOG_WARNING(@\"Missing commit for tag \\\"%@\\\" in \\\"%@\\\"\", tag.name, self.repositoryPath);\n      [tags removeObjectAtIndex:i];\n      --i;\n      --count;\n    }\n  }\n  [tags sortUsingSelector:@selector(nameCompare:)];\n  for (NSUInteger i = 0, count = localBranches.count; i < count; ++i) {\n    GCHistoryLocalBranch* branch = localBranches[i];\n    GCCommit* referenceCommit = objc_getAssociatedObject(branch, _associatedObjectCommitKey);\n    XLOG_DEBUG_CHECK(!objc_getAssociatedObject(branch, _associatedObjectAnnotationKey));\n    GCHistoryCommit* commit = CFDictionaryGetValue(lookup, git_commit_id(referenceCommit.private));\n    objc_setAssociatedObject(branch, _associatedObjectCommitKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    if (commit) {\n      branch.tipCommit = commit;\n      [commit addLocalBranch:branch];\n    } else {\n      XLOG_WARNING(@\"Missing commit for branch \\\"%@\\\" in \\\"%@\\\"\", branch.name, self.repositoryPath);\n      if (branch == headBranch) {\n        headBranch = nil;\n      }\n      [localBranches removeObjectAtIndex:i];\n      --i;\n      --count;\n    }\n  }\n  [localBranches sortUsingSelector:@selector(nameCompare:)];\n  for (NSUInteger i = 0, count = remoteBranches.count; i < count; ++i) {\n    GCHistoryRemoteBranch* branch = remoteBranches[i];\n    GCCommit* referenceCommit = objc_getAssociatedObject(branch, _associatedObjectCommitKey);\n    XLOG_DEBUG_CHECK(!objc_getAssociatedObject(branch, _associatedObjectAnnotationKey));\n    GCHistoryCommit* commit = CFDictionaryGetValue(lookup, git_commit_id(referenceCommit.private));\n    objc_setAssociatedObject(branch, _associatedObjectCommitKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    if (commit) {\n      branch.tipCommit = commit;\n      [commit addRemoteBranch:branch];\n    } else {\n      XLOG_WARNING(@\"Missing commit for branch \\\"%@\\\" in \\\"%@\\\"\", branch.name, self.repositoryPath);\n      [remoteBranches removeObjectAtIndex:i];\n      --i;\n      --count;\n    }\n  }\n  [remoteBranches sortUsingSelector:@selector(nameCompare:)];\n  for (GCHistoryLocalBranch* branch in localBranches) {\n    NSString* upstreamName = objc_getAssociatedObject(branch, _associatedObjectUpstreamNameKey);\n    if (upstreamName) {\n      for (GCHistoryRemoteBranch* remoteBranch in remoteBranches) {\n        if ([remoteBranch.fullName isEqualToString:upstreamName]) {\n          branch.upstream = remoteBranch;\n          break;\n        }\n      }\n      if (branch.upstream == nil) {\n        for (GCHistoryLocalBranch* localBranch in localBranches) {\n          if ([localBranch.fullName isEqualToString:upstreamName]) {\n            branch.upstream = localBranch;\n            break;\n          }\n        }\n      }\n      objc_setAssociatedObject(branch, _associatedObjectUpstreamNameKey, nil, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    }\n  }\n\n  // Finish saving state in history\n  history.nextAutoIncrementID = nextAutoIncrementID;\n  history.nextGeneration = generation + 1;\n  history.tags = tags;\n  history.localBranches = localBranches;\n  history.remoteBranches = remoteBranches;\n  history.tips = tips;\n  if (headTip) {\n    history.HEADCommit = (GCHistoryCommit*)CFDictionaryGetValue(lookup, git_commit_id(headTip.private));\n    if (history.HEADCommit == nil) {\n      XLOG_WARNING(@\"Missing commit for HEAD in \\\"%@\\\"\", self.repositoryPath);\n    }\n  } else {\n    history.HEADCommit = nil;\n  }\n  history.HEADBranch = headBranch;\n  XLOG_DEBUG_CHECK(!headReference || !history.HEADCommit || history.HEADBranch);\n  history.md5 = md5;\n\n  // We're done!\n  if (outReferencesDidChange) {\n    *outReferencesDidChange = YES;\n  }\n  if (outAddedCommits) {\n    *outAddedCommits = addedCommits;\n  }\n  if (outRemovedCommits) {\n    *outRemovedCommits = removedCommits;\n  }\n  [removedCommits autorelease];  // Don't release remove commits immediately as client may still depend on them!\n  success = YES;\n\n#if DEBUG\n  // Check history consistency\n  XLOG_DEBUG_CHECK((NSUInteger)CFDictionaryGetCount(lookup) == commits.count);\n  for (GCHistoryCommit* commit in commits) {\n    XLOG_DEBUG_CHECK(CFDictionaryContainsKey(lookup, git_commit_id(commit.private)));\n    for (GCHistoryCommit* parent in commit.parents) {\n      XLOG_DEBUG_CHECK(CFDictionaryContainsKey(lookup, git_commit_id(parent.private)));\n    }\n    for (GCHistoryCommit* child in commit.children) {\n      XLOG_DEBUG_CHECK(CFDictionaryContainsKey(lookup, git_commit_id(child.private)));\n    }\n    for (GCHistoryLocalBranch* branch in commit.localBranches) {\n      XLOG_DEBUG_CHECK(branch.tipCommit == commit);\n    }\n    for (GCHistoryRemoteBranch* branch in commit.remoteBranches) {\n      XLOG_DEBUG_CHECK(branch.tipCommit == commit);\n    }\n    for (GCHistoryTag* tag in commit.tags) {\n      XLOG_DEBUG_CHECK(tag.commit == commit);\n    }\n  }\n#endif\n\ncleanup:\n  [headTip release];\n  [tips release];\n  [tags release];\n  [localBranches release];\n  [remoteBranches release];\n  git_revwalk_free(walker);\n  git_reference_free(headReference);\n  return success;\n}\n\n- (GCHistory*)loadHistoryUsingSorting:(GCHistorySorting)sorting error:(NSError**)error {\n  GCHistory* history = [[[GCHistory alloc] initWithRepository:self sorting:sorting] autorelease];\n  return [self _reloadHistory:history usingSnapshot:nil referencesDidChange:NULL addedCommits:NULL removedCommits:NULL error:error] ? history : nil;\n}\n\n- (BOOL)reloadHistory:(GCHistory*)history referencesDidChange:(BOOL*)referencesDidChange addedCommits:(NSArray**)addedCommits removedCommits:(NSArray**)removedCommits error:(NSError**)error {\n  return [self _reloadHistory:history usingSnapshot:nil referencesDidChange:referencesDidChange addedCommits:addedCommits removedCommits:removedCommits error:error];\n}\n\n- (GCHistory*)loadHistoryFromSnapshot:(GCSnapshot*)snapshot usingSorting:(GCHistorySorting)sorting error:(NSError**)error {\n  GCHistory* history = [[[GCHistory alloc] initWithRepository:self sorting:sorting] autorelease];\n  return [self _reloadHistory:history usingSnapshot:snapshot referencesDidChange:NULL addedCommits:NULL removedCommits:NULL error:error] ? history : nil;\n}\n\n#pragma mark - File\n\n- (NSArray*)lookupCommitsForFile:(NSString*)path followRenames:(BOOL)follow error:(NSError**)error {\n  NSMutableArray* commits = nil;\n  char* fileName = strdup(GCGitPathFromFileSystemPath(path));\n  git_revwalk* walker = NULL;\n  git_oid oid;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_revwalk_new, &walker, self.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_revwalk_push_head, walker);\n  git_revwalk_sorting(walker, GIT_SORT_TOPOLOGICAL);\n  commits = [[NSMutableArray alloc] init];\n  git_diff_options diffOptions = GIT_DIFF_OPTIONS_INIT;\n  diffOptions.flags = GIT_DIFF_SKIP_BINARY_CHECK;  // This should not be needed since not generating patches anyway\n  git_diff_find_options findOptions = GIT_DIFF_FIND_OPTIONS_INIT;\n  findOptions.flags = GIT_DIFF_FIND_RENAMES;\n  while (1) {\n    int status = git_revwalk_next(&oid, walker);\n    if (status == GIT_OK) {\n      git_commit* commit;\n      status = git_commit_lookup(&commit, self.private, &oid);\n      if (status == GIT_OK) {\n        git_tree* tree;\n        status = git_commit_tree(&tree, commit);\n        if (status == GIT_OK) {\n          git_tree_entry* entry;\n          status = git_tree_entry_bypath(&entry, tree, fileName);\n          if (status == GIT_OK) {\n            for (unsigned int i = 0, count = git_commit_parentcount(commit); i < count; ++i) {\n              git_commit* parentCommit;\n              status = git_commit_parent(&parentCommit, commit, i);\n              if (status == GIT_OK) {\n                git_tree* parentTree;\n                status = git_commit_tree(&parentTree, parentCommit);\n                if (status == GIT_OK) {\n                  git_diff* diff = NULL;\n                  status = git_diff_tree_to_tree(&diff, self.private, parentTree, tree, &diffOptions);\n                  if ((status == GIT_OK) && follow) {\n                    status = git_diff_find_similar(diff, &findOptions);\n                  }\n                  if (status == GIT_OK) {\n                    for (size_t i2 = 0, count2 = git_diff_num_deltas(diff); i2 < count2; ++i2) {\n                      const git_diff_delta* delta = git_diff_get_delta(diff, i2);\n                      if (strcmp(delta->new_file.path, fileName) == 0) {\n                        GCCommit* newCommit = [[GCCommit alloc] initWithRepository:self commit:commit];\n                        [commits addObject:newCommit];\n                        [newCommit release];\n                        commit = NULL;\n                        if (delta->status == GIT_DELTA_RENAMED) {\n                          free(fileName);\n                          fileName = strdup(delta->old_file.path);\n                        } else if (delta->status == GIT_DELTA_ADDED) {\n                          status = GIT_ITEROVER;\n                        } else {\n                          XLOG_DEBUG_CHECK(delta->status == GIT_DELTA_MODIFIED);\n                        }\n                      }\n                    }\n                  }\n                  git_diff_free(diff);\n                  git_tree_free(parentTree);\n                }\n                git_commit_free(parentCommit);\n              }\n            }\n            git_tree_entry_free(entry);\n          } else if (status == GIT_ENOTFOUND) {\n            status = GIT_ITEROVER;\n          }\n          git_tree_free(tree);\n        }\n        git_commit_free(commit);\n      }\n    }\n    if (status == GIT_ITEROVER) {\n      break;\n    }\n    if (status != GIT_OK) {\n      [commits release];\n      commits = nil;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n  }\n\ncleanup:\n  git_revwalk_free(walker);\n  free(fileName);\n  return [commits autorelease];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCIndex.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCDiff.h\"\n\n// The cases \"Both Deleted\", \"Added by Us\" and \"Added by Them\" are not possible in practice as they are automatically resolved by the trivial merge machinery\n// http://permalink.gmane.org/gmane.comp.version-control.git/245661\ntypedef NS_ENUM(NSUInteger, GCIndexConflictStatus) {\n  kGCIndexConflictStatus_None = 0,\n  kGCIndexConflictStatus_BothModified,\n  kGCIndexConflictStatus_BothAdded,\n  kGCIndexConflictStatus_DeletedByUs,\n  kGCIndexConflictStatus_DeletedByThem\n};\n\ntypedef BOOL (^GCIndexLineFilter)(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber);\n\n@interface GCIndexConflict : NSObject\n@property(nonatomic, readonly) NSString* path;\n@property(nonatomic, readonly) GCIndexConflictStatus status;\n@property(nonatomic, readonly) NSString* ancestorBlobSHA1;  // May be nil\n@property(nonatomic, readonly) GCFileMode ancestorFileMode;\n@property(nonatomic, readonly) NSString* ourBlobSHA1;  // May be nil\n@property(nonatomic, readonly) GCFileMode ourFileMode;\n@property(nonatomic, readonly) NSString* theirBlobSHA1;  // May be nil\n@property(nonatomic, readonly) GCFileMode theirFileMode;\n@end\n\n@interface GCIndex : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED - nil if in-memory index\n@property(nonatomic, readonly, getter=isInMemory) BOOL inMemory;\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;\n@property(nonatomic, readonly) BOOL hasConflicts;\n- (NSString*)SHA1ForFile:(NSString*)path mode:(GCFileMode*)mode;  // Returns nil if file is not in index\n- (void)enumerateFilesUsingBlock:(void (^)(NSString* path, GCFileMode mode, NSString* sha1, BOOL* stop))block;\n- (void)enumerateConflictsUsingBlock:(void (^)(GCIndexConflict* conflict, BOOL* stop))block;\n@end\n\n@interface GCRepository (GCIndex)\n- (GCIndex*)createInMemoryIndex:(NSError**)error;\n- (GCIndex*)readRepositoryIndex:(NSError**)error;\n- (BOOL)writeRepositoryIndex:(GCIndex*)index error:(NSError**)error;\n\n- (BOOL)resetIndex:(GCIndex*)index toTreeForCommit:(GCCommit*)commit error:(NSError**)error;\n- (BOOL)clearIndex:(GCIndex*)index error:(NSError**)error;\n\n- (NSData*)readContentsForFile:(NSString*)path inIndex:(GCIndex*)index error:(NSError**)error;\n\n- (BOOL)addFile:(NSString*)path withContents:(NSData*)contents toIndex:(GCIndex*)index error:(NSError**)error;\n- (BOOL)addFileInWorkingDirectory:(NSString*)path toIndex:(GCIndex*)index error:(NSError**)error;\n- (BOOL)addLinesInWorkingDirectoryFile:(NSString*)path toIndex:(GCIndex*)index error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;\n\n- (BOOL)resetFile:(NSString*)path inIndex:(GCIndex*)index toCommit:(GCCommit*)commit error:(NSError**)error;\n- (BOOL)resetLinesInFile:(NSString*)path index:(GCIndex*)index toCommit:(GCCommit*)commit error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;\n\n- (BOOL)checkoutFileToWorkingDirectory:(NSString*)path fromIndex:(GCIndex*)index error:(NSError**)error;\n- (BOOL)checkoutFilesToWorkingDirectory:(NSArray<NSString*>*)paths fromIndex:(GCIndex*)index error:(NSError**)error;\n- (BOOL)checkoutLinesInFileToWorkingDirectory:(NSString*)path fromIndex:(GCIndex*)index error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;\n\n- (BOOL)clearConflictForFile:(NSString*)path inIndex:(GCIndex*)index error:(NSError**)error;\n- (BOOL)removeFile:(NSString*)path fromIndex:(GCIndex*)index error:(NSError**)error;\n\n- (BOOL)copyFile:(NSString*)path fromOtherIndex:(GCIndex*)otherIndex toIndex:(GCIndex*)index error:(NSError**)error;\n- (BOOL)copyLinesInFile:(NSString*)path fromOtherIndex:(GCIndex*)otherIndex toIndex:(GCIndex*)index error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCIndex.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <copyfile.h>\n#import <sys/attr.h>\n#import <sys/stat.h>\n\n#import \"GCPrivate.h\"\n\n// libgit2 SPI\nextern void git_index_entry__init_from_stat(git_index_entry* entry, struct stat* st, bool trust_mode);\n\n@implementation GCIndexConflict {\n  git_oid _ancestorOID;\n  git_oid _ourOID;\n  git_oid _theirOID;\n}\n\n- (id)initWithAncestor:(const git_index_entry*)ancestor our:(const git_index_entry*)our their:(const git_index_entry*)their {\n  if ((self = [super init])) {\n    if (our && their) {\n      XLOG_DEBUG_CHECK(!strcmp(our->path, their->path));\n      _status = ancestor ? kGCIndexConflictStatus_BothModified : kGCIndexConflictStatus_BothAdded;\n\n      git_oid_cpy(&_ourOID, &our->id);\n      XLOG_DEBUG_CHECK((our->mode == GIT_FILEMODE_BLOB) || (our->mode == GIT_FILEMODE_BLOB_EXECUTABLE) || (our->mode == GIT_FILEMODE_LINK) || (our->mode == GIT_FILEMODE_COMMIT));\n      _ourFileMode = GCFileModeFromMode(our->mode);\n\n      git_oid_cpy(&_theirOID, &their->id);\n      XLOG_DEBUG_CHECK((their->mode == GIT_FILEMODE_BLOB) || (their->mode == GIT_FILEMODE_BLOB_EXECUTABLE) || (their->mode == GIT_FILEMODE_LINK) || (their->mode == GIT_FILEMODE_COMMIT));\n      _theirFileMode = GCFileModeFromMode(their->mode);\n    } else if (our) {\n      XLOG_DEBUG_CHECK(!strcmp(our->path, ancestor->path));\n      _status = kGCIndexConflictStatus_DeletedByThem;\n\n      git_oid_cpy(&_ourOID, &our->id);\n      XLOG_DEBUG_CHECK((our->mode == GIT_FILEMODE_BLOB) || (our->mode == GIT_FILEMODE_BLOB_EXECUTABLE) || (our->mode == GIT_FILEMODE_LINK));\n      _ourFileMode = GCFileModeFromMode(our->mode);\n    } else if (their) {\n      XLOG_DEBUG_CHECK(!strcmp(their->path, ancestor->path));\n      _status = kGCIndexConflictStatus_DeletedByUs;\n\n      git_oid_cpy(&_theirOID, &their->id);\n      XLOG_DEBUG_CHECK((their->mode == GIT_FILEMODE_BLOB) || (their->mode == GIT_FILEMODE_BLOB_EXECUTABLE) || (their->mode == GIT_FILEMODE_LINK));\n      _theirFileMode = GCFileModeFromMode(their->mode);\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n    if (ancestor) {\n      git_oid_cpy(&_ancestorOID, &ancestor->id);\n      XLOG_DEBUG_CHECK((ancestor->mode == GIT_FILEMODE_BLOB) || (ancestor->mode == GIT_FILEMODE_BLOB_EXECUTABLE) || (ancestor->mode == GIT_FILEMODE_LINK) || (ancestor->mode == GIT_FILEMODE_COMMIT));\n      _ancestorFileMode = GCFileModeFromMode(ancestor->mode);\n    }\n    if (our) {\n      _path = GCFileSystemPathFromGitPath(our->path);\n    } else if (their) {\n      _path = GCFileSystemPathFromGitPath(their->path);\n    } else if (ancestor) {\n      _path = GCFileSystemPathFromGitPath(ancestor->path);\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n      return nil;\n    }\n  }\n  return self;\n}\n\n- (const git_oid*)ancestorOID {\n  return &_ancestorOID;\n}\n\n- (NSString*)ancestorBlobSHA1 {\n  return GCGitOIDToSHA1(&_ancestorOID);\n}\n\n- (const git_oid*)ourOID {\n  return &_ourOID;\n}\n\n- (NSString*)ourBlobSHA1 {\n  return GCGitOIDToSHA1(&_ourOID);\n}\n\n- (const git_oid*)theirOID {\n  return &_theirOID;\n}\n\n- (NSString*)theirBlobSHA1 {\n  return GCGitOIDToSHA1(&_theirOID);\n}\n\nstatic inline BOOL _EqualConflicts(GCIndexConflict* conflict1, GCIndexConflict* conflict2) {\n  if (conflict1->_status != conflict2->_status) {\n    return NO;\n  }\n  return [conflict1->_path isEqualToString:conflict2->_path];\n}\n\n- (BOOL)isEqualToIndexConflict:(GCIndexConflict*)conflict {\n  return (self == conflict) || _EqualConflicts(self, conflict);\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCIndexConflict class]]) {\n    return NO;\n  }\n  return [self isEqualToIndexConflict:object];\n}\n\n- (NSString*)description {\n  const char* statuses[] = {\"None\", \"Both Modified\", \"Both Added\", \"Deleted By Us\", \"Deleted By Them\"};\n  return [NSString stringWithFormat:@\"%@ %s \\\"%@\\\"\\n  Ancestor: %@\\n  Ours: %@\\n  Theirs: %@\", self.class, statuses[_status], _path, self.ancestorBlobSHA1, self.ourBlobSHA1, self.theirBlobSHA1];\n}\n\n@end\n\n@implementation GCIndex\n\n- (instancetype)initWithRepository:(GCRepository*)repository index:(git_index*)index {\n  if ((self = [super init])) {\n    _repository = repository;\n    _private = index;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_index_free(_private);\n}\n\n- (BOOL)isInMemory {\n  return _repository ? NO : YES;\n}\n\n- (BOOL)isEmpty {\n  return (git_index_entrycount(_private) == 0);\n}\n\n- (const git_oid*)OIDForFile:(NSString*)path {\n  const git_index_entry* entry = git_index_get_bypath(_private, GCGitPathFromFileSystemPath(path), 0);\n  return entry ? &entry->id : NULL;\n}\n\n- (NSString*)SHA1ForFile:(NSString*)path mode:(GCFileMode*)mode {\n  const git_index_entry* entry = git_index_get_bypath(_private, GCGitPathFromFileSystemPath(path), 0);\n  if (entry == NULL) {\n    return nil;\n  }\n  if (mode) {\n    *mode = GCFileModeFromMode(entry->mode);\n  }\n  return GCGitOIDToSHA1(&entry->id);\n}\n\n- (void)enumerateFilesUsingBlock:(void (^)(NSString* path, GCFileMode mode, NSString* sha1, BOOL* stop))block {\n  size_t count = git_index_entrycount(_private);\n  for (size_t i = 0; i < count; ++i) {\n    const git_index_entry* entry = git_index_get_byindex(_private, i);\n    if (git_index_entry_stage(entry) == 0) {\n      BOOL stop = NO;\n      block(GCFileSystemPathFromGitPath(entry->path), GCFileModeFromMode(entry->mode), GCGitOIDToSHA1(&entry->id), &stop);\n      if (stop) {\n        break;\n      }\n    }\n  }\n}\n\n- (BOOL)hasConflicts {\n  return git_index_has_conflicts(_private) ? YES : NO;\n}\n\n- (void)enumerateConflictsUsingBlock:(void (^)(GCIndexConflict* conflict, BOOL* stop))block {\n  git_index_conflict_iterator* iterator;\n  int status = git_index_conflict_iterator_new(&iterator, _private);  // This cannot fail in practice\n  if (status < 0) {\n    XLOG_DEBUG_UNREACHABLE();\n    return;\n  }\n  while (1) {\n    const git_index_entry* ancestor;\n    const git_index_entry* our;\n    const git_index_entry* their;\n    status = git_index_conflict_next(&ancestor, &our, &their, iterator);  // This cannot fail in practice\n    if (status < 0) {\n      XLOG_DEBUG_CHECK(status == GIT_ITEROVER);\n      break;\n    }\n    GCIndexConflict* conflict = [[GCIndexConflict alloc] initWithAncestor:ancestor our:our their:their];\n    if (conflict) {\n      BOOL stop = NO;\n      block(conflict, &stop);\n      if (stop) {\n        break;\n      }\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  }\n  git_index_conflict_iterator_free(iterator);\n}\n\n- (NSString*)description {\n  size_t count = git_index_entrycount(_private);\n  NSMutableString* string = [[NSMutableString alloc] initWithFormat:@\"%@ (%lu entries)\", self.class, count];\n  for (size_t i = 0; i < count; ++i) {\n    const git_index_entry* entry = git_index_get_byindex(_private, i);\n    if (git_index_entry_stage(entry) == 0) {\n      [string appendFormat:@\"\\n[%s] %s\", git_oid_tostr_s(&entry->id), entry->path];\n    }\n  }\n  return string;\n}\n\n@end\n\n@implementation GCRepository (GCIndex)\n\n- (GCIndex*)createInMemoryIndex:(NSError**)error {\n  git_index* memoryIndex;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_index_new, &memoryIndex);\n  GCIndex* index = [[GCIndex alloc] initWithRepository:nil index:memoryIndex];\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_index_set_caps, memoryIndex, GIT_INDEXCAP_IGNORE_CASE);\n  return index;\n}\n\n- (GCIndex*)readRepositoryIndex:(NSError**)error {\n  git_index* index = [self reloadRepositoryIndex:error];\n  return index ? [[GCIndex alloc] initWithRepository:self index:index] : nil;\n}\n\n- (BOOL)writeRepositoryIndex:(GCIndex*)index error:(NSError**)error {\n  XLOG_DEBUG_CHECK(!index.inMemory);\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_write, index.private);\n  return YES;\n}\n\n- (BOOL)resetIndex:(GCIndex*)index toTreeForCommit:(GCCommit*)commit error:(NSError**)error {\n  BOOL success = NO;\n  git_tree* tree = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &tree, commit.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_read_tree, index.private, tree);\n  success = YES;\n\ncleanup:\n  git_tree_free(tree);\n  return success;\n}\n\n- (BOOL)clearIndex:(GCIndex*)index error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_clear, index.private);\n  return YES;\n}\n\n- (NSData*)readContentsForFile:(NSString*)path inIndex:(GCIndex*)index error:(NSError**)error {\n  const git_index_entry* entry = git_index_get_bypath(index.private, GCGitPathFromFileSystemPath(path), 0);\n  if ((entry == NULL) || ((entry->mode != GIT_FILEMODE_BLOB) && (entry->mode != GIT_FILEMODE_BLOB_EXECUTABLE))) {\n    GC_SET_GENERIC_ERROR(@\"File not found\");\n    return nil;\n  }\n  return [self exportBlobWithOID:&entry->id error:error];\n}\n\n// Like git_index_add_frombuffer() but works with memory indexes and doesn't clear any conflict at path\n- (BOOL)_addEntry:(const git_index_entry*)entry toIndex:(git_index*)index withData:(NSData*)data error:(NSError**)error {\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_blob_create_frombuffer, &oid, self.private, data.bytes, data.length);\n  git_index_entry copyEntry;\n  bcopy(entry, &copyEntry, sizeof(git_index_entry));\n  git_oid_cpy(&copyEntry.id, &oid);\n  copyEntry.file_size = (uint32_t)data.length;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_add, index, &copyEntry);\n  return YES;\n}\n\n// Like git_index_add_bypath() but works with memory indexes and doesn't clear any conflict at path\n- (BOOL)_addEntry:(const git_index_entry*)entry toIndex:(git_index*)index error:(NSError**)error {\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_blob_create_fromworkdir, &oid, self.private, entry->path);\n  git_index_entry copyEntry;\n  bcopy(entry, &copyEntry, sizeof(git_index_entry));\n  git_oid_cpy(&copyEntry.id, &oid);\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_add, index, &copyEntry);\n  return YES;\n}\n\n// This function adapts to handle submodules by directly using the commit OID and setting the correct file mode for submodules.\n- (BOOL)_addSubmoduleEntry:(const git_index_entry*)entry toIndex:(git_index*)index withCommitOid:(const git_oid*)commitOid error:(NSError**)error {\n  git_index_entry copyEntry;\n  bcopy(entry, &copyEntry, sizeof(git_index_entry));\n  git_oid_cpy(&copyEntry.id, commitOid);\n  copyEntry.mode = GIT_FILEMODE_COMMIT;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_add, index, &copyEntry);\n  return YES;\n}\n\n- (BOOL)addFile:(NSString*)path withContents:(NSData*)contents toIndex:(GCIndex*)index error:(NSError**)error {\n  git_index_entry entry;\n  bzero(&entry, sizeof(git_index_entry));\n  entry.path = GCGitPathFromFileSystemPath(path);\n  entry.mode = GIT_FILEMODE_BLOB;\n  return [self _addEntry:&entry toIndex:index.private withData:contents error:error];\n}\n\n- (BOOL)addFileInWorkingDirectory:(NSString*)path toIndex:(GCIndex*)index error:(NSError**)error {\n  struct stat info;\n  CALL_POSIX_FUNCTION_RETURN(NO, lstat, [[self absolutePathForFile:path] fileSystemRepresentation], &info);\n  git_index_entry entry;\n  bzero(&entry, sizeof(git_index_entry));\n  entry.path = GCGitPathFromFileSystemPath(path);\n  git_index_entry__init_from_stat(&entry, &info, true);\n\n  if (entry.mode == GIT_FILEMODE_COMMIT) {\n    GCSubmodule* submodule = [self lookupSubmoduleWithName:path error:error];\n    if (!submodule) {\n      return NO;\n    }\n\n    GCRepository* submoduleRepository = [[GCRepository alloc] initWithSubmodule:submodule error:error];\n    if (!submoduleRepository) {\n      return NO;\n    }\n\n    GCCommit* headCommit;\n    if (![submoduleRepository lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n      return NO;\n    }\n\n    git_oid oid;\n    if (!GCGitOIDFromSHA1(headCommit.SHA1, &oid, error)) {\n      return NO;\n    }\n\n    return [self _addSubmoduleEntry:&entry toIndex:index.private withCommitOid:&oid error:error];\n  } else {\n    return [self _addEntry:&entry toIndex:index.private error:error];\n  }\n}\n\n- (BOOL)addLinesInWorkingDirectoryFile:(NSString*)path toIndex:(GCIndex*)index error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  const char* filePath = GCGitPathFromFileSystemPath(path);\n\n  // If the file is already in the index, mutate the entry, otherwise create a new entry from the file metadata\n  git_index_entry entry;\n  const git_index_entry* entryPtr = git_index_get_bypath(index.private, filePath, 0);\n  if (entryPtr == NULL) {\n    struct stat info;\n    CALL_POSIX_FUNCTION_RETURN(NO, lstat, [[self absolutePathForFile:path] fileSystemRepresentation], &info);\n    bzero(&entry, sizeof(git_index_entry));\n    entry.path = filePath;\n    git_index_entry__init_from_stat(&entry, &info, true);\n    entryPtr = &entry;\n  } else {\n    // Null out the entry's modification date: otherwise Git might assume the file is unchanged from the on-disk version, and produce incorrect diffs\n    bcopy(entryPtr, &entry, sizeof(git_index_entry));\n    entry.mtime = (git_index_time){.seconds = 0, .nanoseconds = 0};\n    entryPtr = &entry;\n  }\n  NSMutableData* data = [[NSMutableData alloc] initWithCapacity:(1024 * 1024)];\n\n  // Diff file in working directory with index and create in-memory file copy excluding the lines we don't want\n  GCDiff* diff = [self diffWorkingDirectoryWithIndex:index\n                                         filePattern:path\n                                             options:(kGCDiffOption_IncludeUntracked | kGCDiffOption_IncludeIgnored)\n                                   maxInterHunkLines:NSUIntegerMax\n                                     maxContextLines:NSUIntegerMax\n                                               error:error];\n  if (diff == nil) {\n    return NO;\n  }\n  if (diff.deltas.count != 1) {\n    GC_SET_GENERIC_ERROR(@\"Internal inconsistency\");\n    return NO;\n  }\n  GCDiffPatch* patch = [self makePatchForDiffDelta:diff.deltas[0] isBinary:NULL error:error];\n  if (patch == nil) {\n    return NO;\n  }\n  [patch enumerateUsingBeginHunkHandler:NULL\n                            lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n                              /* Comparing workdir to index:\n\n     Change      | Filter     | Write?\n     ------------|------------|------------\n     Unmodified  | -          | YES\n     ------------|------------|------------\n     Added       | YES        | YES\n                 | NO         | NO\n     ------------|------------|------------\n     Deleted     | YES        | NO\n                 | NO         | YES\n\n     */\n                              BOOL shouldWrite = YES;\n                              switch (change) {\n                                case kGCLineDiffChange_Unmodified:\n                                  break;\n                                case kGCLineDiffChange_Added:\n                                  shouldWrite = filter(change, oldLineNumber, newLineNumber);\n                                  break;\n                                case kGCLineDiffChange_Deleted:\n                                  shouldWrite = !filter(change, oldLineNumber, newLineNumber);\n                                  break;\n                              }\n                              if (shouldWrite) {\n                                [data appendBytes:contentBytes length:contentLength];\n                              }\n                            }\n                         endHunkHandler:NULL];\n\n  return [self _addEntry:entryPtr toIndex:index.private withData:data error:error];\n}\n\n- (BOOL)resetFile:(NSString*)path inIndex:(GCIndex*)index toCommit:(GCCommit*)commit error:(NSError**)error {\n  BOOL success = NO;\n  git_tree* tree = NULL;\n  git_tree_entry* treeEntry = NULL;\n  const char* filePath = GCGitPathFromFileSystemPath(path);\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &tree, commit.private);\n  int status = git_tree_entry_bypath(&treeEntry, tree, filePath);\n  if (status == GIT_ENOTFOUND) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_remove, index.private, filePath, 0);\n  } else {\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    git_index_entry indexEntry;\n    bzero(&indexEntry, sizeof(git_index_entry));\n    indexEntry.path = filePath;\n    indexEntry.mode = git_tree_entry_filemode(treeEntry);\n    git_oid_cpy(&indexEntry.id, git_tree_entry_id(treeEntry));\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_add, index.private, &indexEntry);\n  }\n  success = YES;\n\ncleanup:\n  git_tree_entry_free(treeEntry);\n  git_tree_free(tree);\n  return success;\n}\n\n- (BOOL)resetLinesInFile:(NSString*)path index:(GCIndex*)index toCommit:(GCCommit*)commit error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  const char* filePath = GCGitPathFromFileSystemPath(path);\n\n  // If the file is already in the index, mutate the entry, otherwise create a new entry from the file blob\n  git_index_entry entry;\n  const git_index_entry* entryPtr = git_index_get_bypath(index.private, filePath, 0);\n  if (entryPtr == NULL) {\n    git_tree* tree;\n    CALL_LIBGIT2_FUNCTION_RETURN(NO, git_commit_tree, &tree, commit.private);\n    git_tree_entry* treeEntry;\n    int status = git_tree_entry_bypath(&treeEntry, tree, filePath);\n    git_tree_free(tree);\n    CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);\n    bzero(&entry, sizeof(git_index_entry));\n    entry.path = filePath;\n    entry.mode = git_tree_entry_filemode(treeEntry);\n    entryPtr = &entry;\n    git_tree_entry_free(treeEntry);\n  } else {\n    // Null out the entry's modification date: otherwise Git might assume the file is unchanged from the on-disk version, and produce incorrect diffs\n    bcopy(entryPtr, &entry, sizeof(git_index_entry));\n    entry.mtime = (git_index_time){.seconds = 0, .nanoseconds = 0};\n    entryPtr = &entry;\n  }\n  NSMutableData* data = [[NSMutableData alloc] initWithCapacity:(1024 * 1024)];\n\n  // Diff file in index directory with commit and create temporary file in memory excluding the lines we don't want\n  GCDiff* diff = [self diffIndex:index withCommit:commit filePattern:path options:0 maxInterHunkLines:NSUIntegerMax maxContextLines:NSUIntegerMax error:error];\n  if (diff == nil) {\n    return NO;\n  }\n  if (diff.deltas.count != 1) {\n    GC_SET_GENERIC_ERROR(@\"Internal inconsistency\");\n    return NO;\n  }\n  GCDiffPatch* patch = [self makePatchForDiffDelta:diff.deltas[0] isBinary:NULL error:error];\n  if (patch == nil) {\n    return NO;\n  }\n  [patch enumerateUsingBeginHunkHandler:NULL\n                            lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n                              /* Comparing index to commit:\n\n     Change      | Filter     | Write?\n     ------------|------------|------------\n     Unmodified  | -          | YES\n     ------------|------------|------------\n     Added       | YES        | NO\n                 | NO         | YES\n     ------------|------------|------------\n     Deleted     | YES        | YES\n                 | NO         | NO\n\n     */\n                              BOOL shouldWrite = YES;\n                              switch (change) {\n                                case kGCLineDiffChange_Unmodified:\n                                  break;\n                                case kGCLineDiffChange_Added:\n                                  shouldWrite = !filter(change, oldLineNumber, newLineNumber);\n                                  break;\n                                case kGCLineDiffChange_Deleted:\n                                  shouldWrite = filter(change, oldLineNumber, newLineNumber);\n                                  break;\n                              }\n                              if (shouldWrite) {\n                                [data appendBytes:contentBytes length:contentLength];\n                              }\n                            }\n                         endHunkHandler:NULL];\n\n  return [self _addEntry:entryPtr toIndex:index.private withData:data error:error];\n}\n\n- (BOOL)checkoutFileToWorkingDirectory:(NSString*)path fromIndex:(GCIndex*)index error:(NSError**)error {\n  return [self checkoutFilesToWorkingDirectory:@[ path ]\n                                     fromIndex:index\n                                         error:error];\n}\n\n- (BOOL)checkoutFilesToWorkingDirectory:(NSArray<NSString*>*)paths fromIndex:(GCIndex*)index error:(NSError**)error {\n  if ([paths count] == 0) {\n    return YES;\n  }\n\n  git_checkout_options options = GIT_CHECKOUT_OPTIONS_INIT;\n  options.checkout_strategy = GIT_CHECKOUT_FORCE | GIT_CHECKOUT_DONT_UPDATE_INDEX;  // There's no reason to update the index\n  options.paths.count = paths.count;\n  char** pathStrings = malloc(paths.count * sizeof(char*));\n  options.paths.strings = pathStrings;\n  for (NSUInteger i = 0; i < paths.count; i++) {\n    const char* filePath = GCGitPathFromFileSystemPath([NSRegularExpression escapedPatternForString:paths[i]]);\n    options.paths.strings[i] = (char*)filePath;\n  }\n\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_checkout_index, self.private, index.private, &options);\n  free(pathStrings);\n  return YES;\n}\n\n- (BOOL)checkoutLinesInFileToWorkingDirectory:(NSString*)path fromIndex:(GCIndex*)index error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  BOOL success = NO;\n  const char* fullPath = [[self absolutePathForFile:path] fileSystemRepresentation];\n  int fd = -1;\n  GCDiff* diff;\n  GCDiffPatch* patch;\n\n  // Create temporary path\n  const char* tempPath = self.privateTemporaryFilePath.fileSystemRepresentation;\n  if (!tempPath) {\n    GC_SET_GENERIC_ERROR(@\"Failed creating temporary path\");\n    return NO;\n  }\n  fd = open(tempPath, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR);\n  CHECK_POSIX_FUNCTION_CALL(goto cleanup, fd, >= 0);\n\n  // Diff file in working directory with index and create temporary file copy excluding the lines we don't want\n  diff = [self diffWorkingDirectoryWithIndex:index\n                                 filePattern:path\n                                     options:(kGCDiffOption_IncludeUntracked | kGCDiffOption_IncludeIgnored)\n                           maxInterHunkLines:NSUIntegerMax\n                             maxContextLines:NSUIntegerMax\n                                       error:error];\n  if (diff == nil) {\n    goto cleanup;\n  }\n  if (diff.deltas.count != 1) {\n    GC_SET_GENERIC_ERROR(@\"Internal inconsistency\");\n    goto cleanup;\n  }\n  patch = [self makePatchForDiffDelta:diff.deltas[0] isBinary:NULL error:error];\n  if (patch) {\n    __block BOOL failed = NO;\n    [patch enumerateUsingBeginHunkHandler:NULL\n                              lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n                                /* Comparing workdir to index:\n\n       Change      | Filter     | Write?\n       ------------|------------|------------\n       Unmodified  | -          | YES\n       ------------|------------|------------\n       Added       | YES        | NO\n                   | NO         | YES\n       ------------|------------|------------\n       Deleted     | YES        | YES\n                   | NO         | NO\n\n       */\n                                BOOL shouldWrite = YES;\n                                switch (change) {\n                                  case kGCLineDiffChange_Unmodified:\n                                    break;\n                                  case kGCLineDiffChange_Added:\n                                    shouldWrite = !filter(change, oldLineNumber, newLineNumber);\n                                    break;\n                                  case kGCLineDiffChange_Deleted:\n                                    shouldWrite = filter(change, oldLineNumber, newLineNumber);\n                                    break;\n                                }\n                                if (shouldWrite && (write(fd, contentBytes, contentLength) != (ssize_t)contentLength)) {\n                                  GC_SET_GENERIC_ERROR(@\"%s\", strerror(errno));\n                                  failed = YES;\n                                  XLOG_DEBUG_UNREACHABLE();\n                                }\n                              }\n                           endHunkHandler:NULL];\n    if (failed) {\n      goto cleanup;\n    }\n  } else {\n    goto cleanup;\n  }\n  close(fd);\n  fd = -1;\n\n  // Copy file metadata onto the temporary copy\n  copyfile_state_t state = copyfile_state_alloc();\n  int copyStatus = copyfile(fullPath, tempPath, state, COPYFILE_METADATA);\n  copyfile_state_free(state);\n  CHECK_POSIX_FUNCTION_CALL(goto cleanup, copyStatus, == 0);\n\n  // Swap temporary copy and original file\n  int exchangeStatus = GCExchangeFileData(tempPath, fullPath);\n  CHECK_POSIX_FUNCTION_CALL(goto cleanup, exchangeStatus, == 0);\n  CALL_POSIX_FUNCTION_GOTO(cleanup, utimes, fullPath, NULL);  // Touch file to make sure any cached information in the index gets invalidated\n\n  success = YES;\n\ncleanup:\n  if (fd >= 0) {\n    close(fd);\n  }\n  unlink(tempPath);  // Ignore error\n  return success;\n}\n\n// TODO: We should update the resolve undo extension like libgit2 does by default (see https://github.com/git/git/blob/master/Documentation/technical/index-format.txt#L177)\n- (BOOL)clearConflictForFile:(NSString*)path inIndex:(GCIndex*)index error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_conflict_remove, index.private, GCGitPathFromFileSystemPath(path));\n  return YES;\n}\n\n- (BOOL)removeFile:(NSString*)path fromIndex:(GCIndex*)index error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_remove, index.private, GCGitPathFromFileSystemPath(path), 0);\n  return YES;\n}\n\n- (BOOL)copyFile:(NSString*)path fromOtherIndex:(GCIndex*)otherIndex toIndex:(GCIndex*)index error:(NSError**)error {\n  const git_index_entry* entry = git_index_get_bypath(otherIndex.private, GCGitPathFromFileSystemPath(path), 0);\n  if (entry == NULL) {\n    GC_SET_GENERIC_ERROR(@\"File not in index\");\n    return NO;\n  }\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_index_add, index.private, entry);\n  return YES;\n}\n\n- (BOOL)copyLinesInFile:(NSString*)path fromOtherIndex:(GCIndex*)otherIndex toIndex:(GCIndex*)index error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  const char* filePath = GCGitPathFromFileSystemPath(path);\n\n  // Just grab entry from other index\n  const git_index_entry* entry = git_index_get_bypath(otherIndex.private, filePath, 0);\n  if (entry == NULL) {\n    GC_SET_GENERIC_ERROR(@\"File not in index\");\n    return NO;\n  }\n  NSMutableData* data = [[NSMutableData alloc] initWithCapacity:(1024 * 1024)];\n\n  // Diff file in other index with index and create temporary file in memory excluding the lines we don't want\n  GCDiff* diff = [self diffIndex:otherIndex withIndex:index filePattern:path options:0 maxInterHunkLines:NSUIntegerMax maxContextLines:NSUIntegerMax error:error];\n  if (diff == nil) {\n    return NO;\n  }\n  if (diff.deltas.count != 1) {\n    GC_SET_GENERIC_ERROR(@\"Internal inconsistency\");\n    return NO;\n  }\n  GCDiffPatch* patch = [self makePatchForDiffDelta:diff.deltas[0] isBinary:NULL error:error];\n  if (patch == nil) {\n    return NO;\n  }\n  [patch enumerateUsingBeginHunkHandler:NULL\n                            lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n                              /* Comparing other index to index:\n\n     Change      | Filter     | Write?\n     ------------|------------|------------\n     Unmodified  | -          | YES\n     ------------|------------|------------\n     Added       | YES        | YES\n                 | NO         | NO\n     ------------|------------|------------\n     Deleted     | YES        | NO\n                 | NO         | YES\n\n     */\n                              BOOL shouldWrite = YES;\n                              switch (change) {\n                                case kGCLineDiffChange_Unmodified:\n                                  break;\n                                case kGCLineDiffChange_Added:\n                                  shouldWrite = filter(change, oldLineNumber, newLineNumber);\n                                  break;\n                                case kGCLineDiffChange_Deleted:\n                                  shouldWrite = !filter(change, oldLineNumber, newLineNumber);\n                                  break;\n                              }\n                              if (shouldWrite) {\n                                [data appendBytes:contentBytes length:contentLength];\n                              }\n                            }\n                         endHunkHandler:NULL];\n\n  return [self _addEntry:entry toIndex:index.private withData:data error:error];\n}\n\n@end\n\n@implementation GCRepository (GCIndex_Private)\n\n- (git_index*)reloadRepositoryIndex:(NSError**)error {\n  git_index* index = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_index, &index, self.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_read, index, false);  // Force reading shouldn't be needed\n  return index;\n\ncleanup:\n  XLOG_DEBUG_UNREACHABLE();\n  git_index_free(index);\n  return NULL;\n}\n\n#if DEBUG\n\n// See https://github.com/libgit2/libgit2/issues/2687\n- (BOOL)addAllFilesToIndex:(NSError**)error {\n  BOOL success = NO;\n  git_index* index = NULL;\n  git_status_list* list = NULL;\n\n  index = [self reloadRepositoryIndex:error];\n  if (index == NULL) {\n    goto cleanup;\n  }\n  git_status_options options = GIT_STATUS_OPTIONS_INIT;\n  options.show = GIT_STATUS_SHOW_WORKDIR_ONLY;\n  options.flags = GIT_STATUS_OPT_INCLUDE_UNTRACKED | GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_status_list_new, &list, self.private, &options);\n  for (size_t i = 0, count = git_status_list_entrycount(list); i < count; ++i) {\n    const git_status_entry* entry = git_status_byindex(list, i);\n    switch (entry->status) {\n      case GIT_STATUS_WT_NEW:\n      case GIT_STATUS_WT_MODIFIED:\n      case GIT_STATUS_WT_TYPECHANGE:\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_add_bypath, index, entry->index_to_workdir->new_file.path);\n        break;\n\n      case GIT_STATUS_WT_DELETED:\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_remove_bypath, index, entry->index_to_workdir->old_file.path);\n        break;\n\n      case GIT_STATUS_CONFLICTED:\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_add_bypath, index, entry->index_to_workdir->new_file.path);  // Resolve conflict\n        break;\n\n      default:\n        XLOG_DEBUG_UNREACHABLE();\n        break;\n    }\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_write, index);\n  success = YES;\n\ncleanup:\n  git_status_list_free(list);\n  git_index_free(index);\n  return success;\n}\n\n#endif\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCLiveRepository+Conflicts.h",
    "content": "//\n//  GCLiveRepository+Conflicts.h\n//  GitUpKit (macOS)\n//\n//  Created by Felix Lapalme on 2024-04-13.\n//\n\n#import <GitUpKit/GitUpKit.h>\n\n@protocol GCMergeConflictResolver <NSObject>\n- (BOOL)resolveMergeConflictsWithOurCommit:(GCCommit*)ourCommit theirCommit:(GCCommit*)theirCommit;\n@end\n\n@interface GCLiveRepository (Conflicts)\n\n- (GCCommit*)resolveConflictsWithResolver:(id<GCMergeConflictResolver>)resolver\n                                    index:(GCIndex*)index\n                                ourCommit:(GCCommit*)ourCommit\n                              theirCommit:(GCCommit*)theirCommit\n                            parentCommits:(NSArray*)parentCommits\n                                  message:(NSString*)message\n                                    error:(NSError**)error;\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCLiveRepository+Conflicts.m",
    "content": "//\n//  GCLiveRepository+Conflicts.m\n//  GitUpKit (macOS)\n//\n//  Created by Felix Lapalme on 2024-04-13.\n//\n\n#import \"GCLiveRepository+Conflicts.h\"\n\n#import \"GCRepository+Utilities.h\"\n#import \"GCRepository+HEAD.h\"\n\n@implementation GCLiveRepository (Conflicts)\n\n- (GCCommit*)resolveConflictsWithResolver:(id<GCMergeConflictResolver>)resolver\n                                    index:(GCIndex*)index\n                                ourCommit:(GCCommit*)ourCommit\n                              theirCommit:(GCCommit*)theirCommit\n                            parentCommits:(NSArray*)parentCommits\n                                  message:(NSString*)message\n                                    error:(NSError**)error {\n  // Save HEAD\n  GCCommit* headCommit;\n  GCLocalBranch* headBranch;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:&headBranch error:error]) {\n    return nil;\n  }\n\n  // Detach HEAD to \"ours\" commit\n  if (![self checkoutCommit:parentCommits[0] options:0 error:error]) {\n    return nil;\n  }\n\n  // Check out index with conflicts\n  if (![self checkoutIndex:index withOptions:kGCCheckoutOption_UpdateSubmodulesRecursively error:error]) {\n    return nil;\n  }\n\n  // Have user resolve conflicts\n  BOOL resolved = [resolver resolveMergeConflictsWithOurCommit:ourCommit theirCommit:theirCommit];\n\n  // Unless user cancelled, create commit with \"ours\" and \"theirs\" parent commits (if applicable)\n  GCCommit* commit = nil;\n  if (resolved) {\n    if (![self syncIndexWithWorkingDirectory:error]) {\n      return nil;\n    }\n    commit = [self createCommitFromHEADAndOtherParent:(parentCommits.count > 1 ? parentCommits[1] : nil) withMessage:message error:error];\n    if (commit == nil) {\n      return nil;\n    }\n  }\n\n  // Restore HEAD\n  if ((headBranch && ![self setHEADToReference:headBranch error:error]) || (!headBranch && ![self setDetachedHEADToCommit:headCommit error:error])) {\n    return nil;\n  }\n  if (![self forceCheckoutHEAD:YES error:error]) {\n    return nil;\n  }\n\n  // Check if user cancelled\n  if (!resolved) {\n    GC_SET_USER_CANCELLED_ERROR();\n    return nil;\n  }\n\n  return commit;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCLiveRepository-Tests.m",
    "content": "//\n//  GCLiveRepository-Tests.m\n//  Tests\n//\n//  Created by Felix Lapalme on 2024-04-12.\n//\n\n#import <XCTest/XCTest.h>\n#import \"GCTestCase.h\"\n#import \"GCHistory+Rewrite.h\"\n#import \"GCRepository+Index.h\"\n#import \"GCLiveRepository+Conflicts.h\"\n#import \"GIViewController+Utilities.h\"\n\n// block based object that conforms to GCMergeConflictResolver\n@interface GCBlockConflictResolver : NSObject <GCMergeConflictResolver>\n@property(nonatomic, copy) BOOL (^resolveBlock)(GCCommit* ourCommit, GCCommit* theirCommit);\n\n- (instancetype)initWithBlock:(BOOL (^)(GCCommit* ourCommit, GCCommit* theirCommit))resolveBlock;\n@end\n\n@implementation GCBlockConflictResolver\n\n- (instancetype)initWithBlock:(BOOL (^)(GCCommit* ourCommit, GCCommit* theirCommit))resolveBlock {\n  self = [super init];\n  if (self) {\n    self.resolveBlock = resolveBlock;\n  }\n  return self;\n}\n\n- (BOOL)resolveMergeConflictsWithOurCommit:(GCCommit*)ourCommit theirCommit:(GCCommit*)theirCommit {\n  return self.resolveBlock(ourCommit, theirCommit);\n}\n\n@end\n\n@implementation GCEmptyLiveRepositoryTestCase (GCLiveRepository)\n\n- (void)testRebase {\n  // Initial setup: create a base commit on master.\n  GCCommit* baseCommit = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\n\" message:@\"Base commit\"];\n\n  // Create a new branch from the base commit.\n  XCTAssertTrue([self.liveRepository createLocalBranchFromCommit:baseCommit withName:@\"other_branch\" force:NO error:NULL]);\n\n  GCLocalBranch* masterBranch = [self.liveRepository findLocalBranchWithName:@\"master\" error:NULL];\n  GCLocalBranch* otherBranch = [self.liveRepository findLocalBranchWithName:@\"other_branch\" error:NULL];\n\n  XCTAssertTrue([self.liveRepository checkoutLocalBranch:masterBranch options:0 error:NULL]);\n  GCCommit* masterCommit = [self makeCommitWithUpdatedFileAtPath:@\"shared2.txt\" string:@\"new text file\\n\" message:@\"Master commit 1\"];\n  XCTAssertNotNil(masterCommit);\n\n  NSError* error;\n\n  // Make a commit on the other branch that also modifies the same shared file.\n  XCTAssertTrue([self.liveRepository checkoutLocalBranch:otherBranch options:0 error:NULL]);\n  GCCommit* otherCommit1 = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\nAnd a new line\\n\" message:@\"Other commit 1\"];\n  XCTAssertNotNil(otherCommit1);\n\n  XCTAssertNil(error);\n\n  [self rebaseAndSolveConflictsWithBaseCommit:baseCommit expectedCommitTotalCount:3];\n\n  // Verify the results of the rebase.\n  NSString* finalContent = [NSString stringWithContentsOfFile:[self.liveRepository.workingDirectoryPath stringByAppendingPathComponent:@\"shared.txt\"] encoding:NSUTF8StringEncoding error:NULL];\n  XCTAssertEqualObjects(finalContent, @\"Initial content\\nAnd a new line\\n\");\n}\n\n- (void)testRebaseConflict {\n  // Initial setup: create a base commit on master.\n  GCCommit* baseCommit = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\n\" message:@\"Base commit\"];\n\n  // Create a new branch from the base commit.\n  XCTAssertTrue([self.liveRepository createLocalBranchFromCommit:baseCommit withName:@\"other_branch\" force:NO error:NULL]);\n\n  GCLocalBranch* masterBranch = [self.liveRepository findLocalBranchWithName:@\"master\" error:NULL];\n  GCLocalBranch* otherBranch = [self.liveRepository findLocalBranchWithName:@\"other_branch\" error:NULL];\n\n  XCTAssertTrue([self.liveRepository checkoutLocalBranch:masterBranch options:0 error:NULL]);\n  GCCommit* masterCommit = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\nMaster modification 1\\n\" message:@\"Master commit 1\"];\n  XCTAssertNotNil(masterCommit);\n\n  NSError* error;\n\n  // Make a commit on the other branch that also modifies the same shared file.\n  XCTAssertTrue([self.liveRepository checkoutLocalBranch:otherBranch options:0 error:NULL]);\n  GCCommit* otherCommit1 = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\nOther modification 1\\n\" message:@\"Other commit 1\"];\n  XCTAssertNotNil(otherCommit1);\n\n  XCTAssertNil(error);\n\n  [self rebaseAndSolveConflictsWithBaseCommit:baseCommit expectedCommitTotalCount:3];\n\n  // Verify the results of the rebase.\n  NSString* finalContent = [NSString stringWithContentsOfFile:[self.liveRepository.workingDirectoryPath stringByAppendingPathComponent:@\"shared.txt\"] encoding:NSUTF8StringEncoding error:NULL];\n  XCTAssertEqualObjects(finalContent, @\"Conflict resolved\\n\", @\"File content should reflect resolved conflict.\");\n}\n\n- (void)testMultipleCommitsRebaseWithConflict {\n  // Initial setup: create a base commit on master.\n  GCCommit* baseCommit = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\n\" message:@\"Base commit\"];\n\n  // Create a new branch from the base commit.\n  XCTAssertTrue([self.liveRepository createLocalBranchFromCommit:baseCommit withName:@\"other_branch\" force:NO error:NULL]);\n\n  GCLocalBranch* masterBranch = [self.liveRepository findLocalBranchWithName:@\"master\" error:NULL];\n  GCLocalBranch* otherBranch = [self.liveRepository findLocalBranchWithName:@\"other_branch\" error:NULL];\n\n  XCTAssertTrue([self.liveRepository checkoutLocalBranch:masterBranch options:0 error:NULL]);\n  GCCommit* masterCommit = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\nMaster modification 1\\n\" message:@\"Master commit 1\"];\n  XCTAssertNotNil(masterCommit);\n\n  // create other changed files\n  GCCommit* masterCommit2 = [self makeCommitWithUpdatedFileAtPath:@\"shared2.txt\" string:@\"Initial content\\nMaster modification 2\\n\" message:@\"Master commit 2\"];\n  XCTAssertNotNil(masterCommit2);\n\n  GCCommit* masterCommit3 = [self makeCommitWithUpdatedFileAtPath:@\"shared3.txt\" string:@\"Initial content\\nMaster modification 3\\n\" message:@\"Master commit 3\"];\n  XCTAssertNotNil(masterCommit3);\n\n  NSError* error;\n\n  // Make a commit on the other branch that also modifies the same shared file.\n  XCTAssertTrue([self.liveRepository checkoutLocalBranch:otherBranch options:0 error:NULL]);\n  GCCommit* otherCommit1 = [self makeCommitWithUpdatedFileAtPath:@\"shared.txt\" string:@\"Initial content\\nOther modification 1\\n\" message:@\"Other commit 1\"];\n  XCTAssertNotNil(otherCommit1);\n\n  // create other changed files\n  GCCommit* otherCommit2 = [self makeCommitWithUpdatedFileAtPath:@\"shared4.txt\" string:@\"Initial content\\nOther modification 2\\n\" message:@\"Other commit 2\"];\n  XCTAssertNotNil(otherCommit2);\n\n  GCCommit* otherCommit3 = [self makeCommitWithUpdatedFileAtPath:@\"shared5.txt\" string:@\"Initial content\\nOther modification 3\\n\" message:@\"Other commit 3\"];\n  XCTAssertNotNil(otherCommit3);\n\n  XCTAssertNil(error);\n\n  [self rebaseAndSolveConflictsWithBaseCommit:baseCommit expectedCommitTotalCount:7];\n\n  // Verify the results of the rebase.\n  NSString* finalContent = [NSString stringWithContentsOfFile:[self.liveRepository.workingDirectoryPath stringByAppendingPathComponent:@\"shared.txt\"] encoding:NSUTF8StringEncoding error:NULL];\n  XCTAssertEqualObjects(finalContent, @\"Conflict resolved\\n\", @\"File content should reflect resolved conflict.\");\n}\n\n- (void)rebaseAndSolveConflictsWithBaseCommit:(GCCommit*)baseCommit expectedCommitTotalCount:(int)expectedTotalCommitCount {\n  NSError* error;\n  GCHistory* history = [self.liveRepository loadHistoryUsingSorting:kGCHistorySorting_ReverseChronological error:&error];\n  GCHistoryLocalBranch* otherHistoryBranch = history.HEADBranch;\n  GCHistoryLocalBranch* masterHistoryBranch = [history.localBranches filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(GCHistoryLocalBranch* _Nullable localBranch, NSDictionary<NSString*, id>* _Nullable bindings) {\n                                                                       return [localBranch.name isEqualToString:@\"master\"];\n                                                                     }]]\n                                                  .firstObject;\n  GCHistoryCommit* otherHistoryCommit = otherHistoryBranch.tipCommit;\n  GCHistoryCommit* masterHistoryCommit = masterHistoryBranch.tipCommit;\n\n  GCCommit* foundBaseCommit = [self.liveRepository findMergeBaseForCommits:@[ otherHistoryCommit, masterHistoryCommit ] error:&error];\n  XCTAssertNotNil(foundBaseCommit);\n  GCHistoryCommit* fromCommit = [history historyCommitForCommit:baseCommit];\n\n  // Attempt to rebase the other branch onto master.\n  NSError* rebaseError = NULL;\n  [self.liveRepository suspendHistoryUpdates];\n\n  [self.liveRepository setStatusMode:kGCLiveRepositoryStatusMode_Normal];\n\n  __block GCCommit* newCommit = nil;\n  [self.liveRepository setUndoActionName:NSLocalizedString(@\"Rebase test\", nil)];\n\n  BOOL rebaseSuccess = [self.liveRepository performReferenceTransformWithReason:@\"rebase_branch\"\n                                                                       argument:masterHistoryBranch.name\n                                                                          error:&rebaseError\n                                                                     usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                                       return [history rebaseBranch:otherHistoryBranch\n                                                                                         fromCommit:fromCommit\n                                                                                         ontoCommit:masterHistoryCommit\n                                                                                    conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError2) {\n                                                                                      GCBlockConflictResolver* blockResolver = [[GCBlockConflictResolver alloc] initWithBlock:^BOOL(GCCommit* ourCommit, GCCommit* theirCommit) {\n                                                                                        XCTAssertTrue([index hasConflicts]);\n                                                                                        [index enumerateConflictsUsingBlock:^(GCIndexConflict* conflict, BOOL* stop) {\n                                                                                          [self updateFileAtPath:conflict.path withString:@\"Conflict resolved\\n\"];\n                                                                                          NSError* conflictResolutionError;\n                                                                                          [self.liveRepository resolveConflictAtPath:conflict.path error:&conflictResolutionError];\n                                                                                          XCTAssertNil(conflictResolutionError);\n                                                                                        }];\n\n                                                                                        return YES;\n                                                                                      }];\n\n                                                                                      return [self.liveRepository resolveConflictsWithResolver:blockResolver\n                                                                                                                                         index:index\n                                                                                                                                     ourCommit:ourCommit\n                                                                                                                                   theirCommit:theirCommit\n                                                                                                                                 parentCommits:parentCommits\n                                                                                                                                       message:message\n                                                                                                                                         error:outError2];\n                                                                                    }\n                                                                                       newTipCommit:&newCommit\n                                                                                              error:outError1];\n                                                                     }];\n  [self.liveRepository resumeHistoryUpdates];\n\n  XCTAssertNil(rebaseError, @\"Rebase should not error out with proper conflict handling.\");\n  XCTAssertTrue(rebaseSuccess, @\"Rebase should complete successfully.\");\n\n  // make sure the working directory is still clean\n  XCTAssertEqual(self.liveRepository.workingDirectoryStatus.deltas.count, 0);\n\n  //  count to make sure the number of parents makes sense\n  GCHistoryCommit* currentCommit = self.liveRepository.history.HEADCommit;\n  int numberOfCommits = 0;\n  while (true) {\n    numberOfCommits++;\n    currentCommit = currentCommit.parents.firstObject;\n    if (!currentCommit) {\n      break;\n    }\n  }\n\n  XCTAssertEqual(numberOfCommits, expectedTotalCommitCount);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCLiveRepository.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository+Status.h\"\n#import \"GCHistory.h\"\n#import \"GCSnapshot.h\"\n#import \"GCCommitDatabase.h\"\n\ntypedef NS_ENUM(NSUInteger, GCLiveRepositoryStatusMode) {\n  kGCLiveRepositoryStatusMode_Disabled = 0,\n  kGCLiveRepositoryStatusMode_Normal,\n  kGCLiveRepositoryStatusMode_Unified\n};\n\ntypedef NS_ENUM(NSUInteger, GCLiveRepositoryDiffWhitespaceMode) {\n  kGCLiveRepositoryDiffWhitespaceMode_Normal = 0,\n  kGCLiveRepositoryDiffWhitespaceMode_IgnoreChanges,\n  kGCLiveRepositoryDiffWhitespaceMode_IgnoreAll\n};\n\nextern NSString* const GCLiveRepositoryDidChangeNotification;\nextern NSString* const GCLiveRepositoryWorkingDirectoryDidChangeNotification;\n\nextern NSString* const GCLiveRepositoryStateDidUpdateNotification;\nextern NSString* const GCLiveRepositoryHistoryDidUpdateNotification;\nextern NSString* const GCLiveRepositoryStashesDidUpdateNotification;\nextern NSString* const GCLiveRepositoryStatusDidUpdateNotification;\nextern NSString* const GCLiveRepositorySnapshotsDidUpdateNotification;\nextern NSString* const GCLiveRepositorySearchDidUpdateNotification;\n\nextern NSString* const GCLiveRepositoryCommitOperationReason;\nextern NSString* const GCLiveRepositoryAmendOperationReason;\n\n@class GCLiveRepository, GCDiff, GCReferenceTransform;\n\n@protocol GCLiveRepositoryDelegate <GCRepositoryDelegate>\n@optional\n- (void)repositoryDidChange:(GCRepository*)repository;\n- (void)repositoryWorkingDirectoryDidChange:(GCRepository*)repository;\n\n- (void)repositoryDidUpdateState:(GCLiveRepository*)repository;\n\n- (void)repositoryDidUpdateHistory:(GCLiveRepository*)repository;\n- (void)repository:(GCLiveRepository*)repository historyUpdateDidFailWithError:(NSError*)error;\n- (void)repositoryDidUpdateStashes:(GCLiveRepository*)repository;\n- (void)repository:(GCLiveRepository*)repository stashesUpdateDidFailWithError:(NSError*)error;\n- (void)repositoryDidUpdateStatus:(GCLiveRepository*)repository;\n- (void)repository:(GCLiveRepository*)repository statusUpdateDidFailWithError:(NSError*)error;\n\n- (void)repositoryDidUpdateSnapshots:(GCLiveRepository*)repository;\n- (void)repository:(GCLiveRepository*)repository snapshotsUpdateDidFailWithError:(NSError*)error;\n\n- (void)repositoryDidUpdateSearch:(GCLiveRepository*)repository;\n- (void)repository:(GCLiveRepository*)repository searchUpdateDidFailWithError:(NSError*)error;\n\n- (void)repositoryBackgroundOperationInProgressDidChange:(GCLiveRepository*)repository;\n\n- (void)repository:(GCLiveRepository*)repository undoOperationDidFailWithError:(NSError*)error;\n@end\n\n@interface GCLiveRepository : GCRepository\n#if DEBUG\n+ (NSUInteger)allocatedCount;  // For debugging only\n#endif\n@property(nonatomic, weak) id<GCLiveRepositoryDelegate> delegate;\n\n- (void)notifyRepositoryChanged;  // Calling this method is required when manipulating the repository from this process as live-updates don't apply\n- (void)notifyWorkingDirectoryChanged;  // Calling this method is required when manipulating the working directory from this process as live-updates don't apply\n\n+ (GCHistorySorting)historySorting;  // Default is kGCHistorySorting_None\n@property(nonatomic, readonly) GCHistory* history;\n@property(nonatomic, readonly, getter=areHistoryUpdatesSuspended) BOOL historyUpdatesSuspended;\n- (void)suspendHistoryUpdates;  // Nestable\n- (void)resumeHistoryUpdates;  // Nestable\n\n@property(nonatomic, getter=areSnapshotsEnabled) BOOL snapshotsEnabled;  // Default is NO - Should be enabled *after* setting delegate so any error can be received\n@property(nonatomic, getter=areAutomaticSnapshotsEnabled) BOOL automaticSnapshotsEnabled;  // Requires @snapshotsEnabled to be YES\n@property(nonatomic, readonly) NSArray* snapshots;  // Nil if snapshots are disabled\n\n@property(nonatomic) GCLiveRepositoryDiffWhitespaceMode diffWhitespaceMode;  // Default is kGCLiveRepositoryDiffWhitespaceMode_Normal\n@property(nonatomic) NSUInteger diffMaxInterHunkLines;  // Default is 0\n@property(nonatomic) NSUInteger diffMaxContextLines;  // Default is 3\n@property(nonatomic, readonly) GCDiffOptions diffBaseOptions;  // For convenience\n\n@property(nonatomic) GCLiveRepositoryStatusMode statusMode;  // Default is kGCLiveRepositoryStatusMode_Disabled - Should be changed *after* setting delegate so any error can be received\n@property(nonatomic, readonly) GCDiff* unifiedStatus;  // Nil on error\n@property(nonatomic, readonly) GCDiff* workingDirectoryStatus;  // Nil on error\n@property(nonatomic, readonly) GCDiff* indexStatus;  // Nil on error\n@property(nonatomic, readonly) NSDictionary* indexConflicts;  // Nil on error\n\n@property(nonatomic, getter=areStashesEnabled) BOOL stashesEnabled;  // Default is NO - Should be enabled *after* setting delegate so any error can be received\n@property(nonatomic, readonly) NSArray* stashes;  // Nil on error\n\n@property(nonatomic, strong) NSUndoManager* undoManager;  // Default is nil\n- (void)setUndoActionName:(NSString*)name;  // Wrapper for -[NSUndoManager setActionName:] that doesn't open an undo block\n\n- (BOOL)performOperationWithReason:(NSString*)reason  // Pass nil to disable automatic snapshots and undo\n                          argument:(id<NSCoding>)argument  // May be nil\n                skipCheckoutOnUndo:(BOOL)skipCheckout\n                             error:(NSError**)error\n                        usingBlock:(BOOL (^)(GCLiveRepository* repository, NSError** outError))block;  // Automatically updates snapshots and register undo action with NSUndoManager\n\n@property(nonatomic, readonly) BOOL hasBackgroundOperationInProgress;\n- (void)performOperationInBackgroundWithReason:(NSString*)reason  // Pass nil to disable automatic snapshots and undo\n                                      argument:(id<NSCoding>)argument  // May be nil\n                           usingOperationBlock:(BOOL (^)(GCRepository* repository, NSError** outError))operationBlock  // \"repository\" is a new instance\n                               completionBlock:(void (^)(BOOL success, NSError* error))completionBlock;\n@end\n\n@interface GCLiveRepository (Extensions)\n- (BOOL)performReferenceTransformWithReason:(NSString*)reason\n                                   argument:(id<NSCoding>)argument\n                                      error:(NSError**)error\n                                 usingBlock:(GCReferenceTransform* (^)(GCLiveRepository* repository, NSError** outError))block;  // Convenience method for transform operations\n\n- (GCCommit*)performCommitCreationFromHEADAndOtherParent:(GCCommit*)parent withMessage:(NSString*)message error:(NSError**)error;  // Convenience method for creating a commit with custom undo/redo that only moves the HEAD and does not checkout\n- (GCCommit*)performHEADCommitAmendingWithMessage:(NSString*)message error:(NSError**)error;  // Convenience method for amending HEAD commit with custom undo/redo that only moves the HEAD and does not checkout\n@end\n\n@interface GCLiveRepository (Search)\n- (void)prepareSearchInBackground:(BOOL)indexDiffs\n              withProgressHandler:(GCCommitDatabaseProgressHandler)handler  // Called from background thread!\n                       completion:(void (^)(BOOL success, NSError* error))completion;\n- (NSArray*)findCommitsMatching:(NSString*)match;  // Returns GCHistoryCommit, GCHistoryLocalBranch, GCHistoryRemoteBranch or GCHistoryTag (references are guaranteed to have a corresponding commit)\n@end\n\n@interface GCSnapshot (GCLiveRepository)\n- (NSDate*)date;\n- (NSString*)reason;\n- (id<NSCoding>)argument;  // May be nil\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCLiveRepository.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <sys/stat.h>\n#import <sys/attr.h>\n\n#if DEBUG\n#import <stdatomic.h>\n#endif\n\n#import \"GCPrivate.h\"\n\n#import \"XLFacilityMacros.h\"\n\n#define kFSLatency 0.5\n#define kUpdateLatency 0.5\n\n#define kMaxSnapshots 100\n#define kSnapshotsFileName @\"snapshots.data\"\n#define kSnapshotKey_Date @\"date\"  // NSDate\n#define kSnapshotKey_Reason @\"reason\"  // NSString\n#define kSnapshotKey_Argument @\"argument\"  // id<NSCoding>\n\n#define kAutomaticSnapshotDelay (5 - kFSLatency - kUpdateLatency)\n\n#define kCommitDatabaseFileName @\"cache.db\"\n\n#define kMinSearchLength 2  // SQLite FTS indexes tokens down to a single characters but it's just impractical to allow that in the UI\n\nNSString* const GCLiveRepositoryDidChangeNotification = @\"GCLiveRepositoryDidChangeNotification\";\nNSString* const GCLiveRepositoryWorkingDirectoryDidChangeNotification = @\"GCLiveRepositoryWorkingDirectoryDidChangeNotification\";\n\nNSString* const GCLiveRepositoryStateDidUpdateNotification = @\"GCLiveRepositoryStateDidUpdateNotification\";\nNSString* const GCLiveRepositoryHistoryDidUpdateNotification = @\"GCLiveRepositoryHistoryDidUpdateNotification\";\nNSString* const GCLiveRepositoryStashesDidUpdateNotification = @\"GCLiveRepositoryStashesDidUpdateNotification\";\nNSString* const GCLiveRepositoryStatusDidUpdateNotification = @\"GCLiveRepositoryStatusDidUpdateNotification\";\nNSString* const GCLiveRepositorySnapshotsDidUpdateNotification = @\"GCLiveRepositorySnapshotsDidUpdateNotification\";\nNSString* const GCLiveRepositorySearchDidUpdateNotification = @\"GCLiveRepositorySearchDidUpdateNotification\";\n\nNSString* const GCLiveRepositoryCommitOperationReason = @\"commit\";\nNSString* const GCLiveRepositoryAmendOperationReason = @\"amend\";\n\n#if DEBUG\nstatic _Atomic int32_t _allocatedCount = ATOMIC_VAR_INIT(0);\n#endif\n\n@implementation GCLiveRepository {\n  int _gitDirectory;\n  FSEventStreamRef _gitDirectoryStream;\n  BOOL _gitDirectoryChanged;\n  FSEventStreamRef _workingDirectoryStream;\n  BOOL _workingDirectoryChanged;\n  CFRunLoopTimerRef _updateTimer;  // Can't use a NSTimer because of retain-cycle\n  GCRepositoryState _state;\n  NSInteger _historyUpdatesSuspended;\n  BOOL _historyUpdatePending;\n\n  NSMutableArray* _snapshots;\n  CFRunLoopTimerRef _snapshotsTimer;\n  GCSnapshot* _lastSnapshot;\n  BOOL _snapshotPending;\n\n  GCCommitDatabase* _database;\n  BOOL _databaseIndexesDiffs;\n  BOOL _updatingDatabase;\n  BOOL _databaseUpdatePending;\n\n  NSString* _undoActionName;\n}\n\n@dynamic delegate;\n\n+ (instancetype)allocWithZone:(struct _NSZone*)zone {\n  GCLiveRepository* repository = [super allocWithZone:zone];\n  if (repository) {\n    repository->_gitDirectory = -1;  // Prevents calling close(0) in -dealloc in case super returns nil\n#if DEBUG\n    atomic_fetch_add(&_allocatedCount, 1);\n#endif\n  }\n  return repository;\n}\n\n#if DEBUG\n\n+ (NSUInteger)allocatedCount {\n  int32_t count = atomic_load(&_allocatedCount);\n  return count;\n}\n\n#endif\n\n- (void)_timer:(CFRunLoopTimerRef)timer {\n  if (timer == _updateTimer) {\n    [self _notifyWorkingDirectoryChanged:_workingDirectoryChanged gitDirectoryChanged:_gitDirectoryChanged];\n    _workingDirectoryChanged = NO;\n    _gitDirectoryChanged = NO;\n  } else if (timer == _snapshotsTimer) {\n    [self _saveAutomaticSnapshotIfPending];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\nstatic void _TimerCallBack(CFRunLoopTimerRef timer, void* info) {\n  @autoreleasepool {\n    [(__bridge GCLiveRepository*)info _timer:timer];\n  }\n}\n\n- (void)_stream:(ConstFSEventStreamRef)stream didReceiveEvents:(size_t)numEvents withPaths:(void*)eventPaths flags:(const FSEventStreamEventFlags*)eventFlags {\n  for (size_t i = 0; i < numEvents; ++i) {\n    const char* path = ((const char**)eventPaths)[i];\n    if (eventFlags[i] & kFSEventStreamEventFlagMustScanSubDirs) {\n      XLOG_WARNING(@\"Ignoring event stream request to rescan \\\"%s\\\"\", path);  // Note that this directory path can be missing the trailing slash\n\n    } else {  // Documentation says \"eventFlags\" should be 0x0 for regular events but that's not the case on OS X 10.10 at least\n\n      const char* gitDirectoryPath = git_repository_path(self.private);\n      size_t length = strlen(gitDirectoryPath);\n      XLOG_DEBUG_CHECK(gitDirectoryPath[length - 1] == '/');\n      if (stream == _gitDirectoryStream) {\n        if (!strncmp(path, gitDirectoryPath, length)) {\n          const char* subPath = &path[length];\n          if (!subPath[0] || !strncmp(subPath, \"refs/\", 5) || !strncmp(subPath, \"logs/\", 5)) {  // We only care about \".git/\", \".git/refs/*\" and \".git/logs/*\"\n            XLOG_DEBUG(@\"Processed file system event for '%s'\", path);\n            _gitDirectoryChanged = YES;\n            CFRunLoopTimerSetNextFireDate(_updateTimer, CFAbsoluteTimeGetCurrent() + kUpdateLatency);\n          } else {\n            XLOG_DEBUG(@\"Dropped file system event for '%s'\", path);\n          }\n        } else {\n          XLOG_DEBUG_UNREACHABLE();\n        }\n      } else {\n        if (strncmp(path, gitDirectoryPath, length)) {  // Make sure change is not inside \".git\" directory if itself inside workdir\n          int ignored = 0;\n          int status = git_ignore_path_is_ignored(&ignored, self.private, path);  // Make sure path is not ignored\n          if (status != GIT_OK) {\n            LOG_LIBGIT2_ERROR(status);\n          }\n          if (!ignored) {\n            XLOG_DEBUG(@\"Processed file system event for '%s'\", path);\n            _workingDirectoryChanged = YES;\n            CFRunLoopTimerSetNextFireDate(_updateTimer, CFAbsoluteTimeGetCurrent() + kUpdateLatency);\n          } else {\n            XLOG_DEBUG(@\"Dropped file system event for '%s'\", path);\n          }\n        }\n      }\n    }\n  }\n}\n\nstatic void _StreamCallback(ConstFSEventStreamRef streamRef, void* clientCallBackInfo, size_t numEvents, void* eventPaths,\n                            const FSEventStreamEventFlags eventFlags[], const FSEventStreamEventId eventIds[]) {\n  @autoreleasepool {\n    [(__bridge GCLiveRepository*)clientCallBackInfo _stream:streamRef didReceiveEvents:numEvents withPaths:eventPaths flags:eventFlags];\n  }\n}\n\n- (void)_reloadWorkingDirectoryStream {\n  if (_workingDirectoryStream) {\n    FSEventStreamStop(_workingDirectoryStream);\n    FSEventStreamInvalidate(_workingDirectoryStream);\n    FSEventStreamRelease(_workingDirectoryStream);\n    _workingDirectoryStream = NULL;\n  }\n  NSString* path = self.workingDirectoryPath;  // nil for bare repositories\n  if (path) {\n    FSEventStreamContext streamContext = {0, (__bridge void*)self, NULL, NULL, NULL};\n    _workingDirectoryStream = FSEventStreamCreate(kCFAllocatorDefault, _StreamCallback, &streamContext,\n                                                  (__bridge CFArrayRef) @[ path ], kFSEventStreamEventIdSinceNow,\n                                                  kFSLatency, kFSEventStreamCreateFlagIgnoreSelf);  // This opens the path\n    if (_workingDirectoryStream) {\n      FSEventStreamScheduleWithRunLoop(_workingDirectoryStream, CFRunLoopGetMain(), kCFRunLoopCommonModes);\n      if (!FSEventStreamStart(_workingDirectoryStream)) {\n        XLOG_ERROR(@\"Failed starting event stream at \\\"%@\\\"\", path);\n      }\n    } else {\n      XLOG_ERROR(@\"Failed creating event stream at \\\"%@\\\"\", path);\n    }\n  }\n}\n\n- (instancetype)initWithRepository:(git_repository*)repository error:(NSError**)error {\n  if ((self = [super initWithRepository:repository error:error])) {\n    _diffWhitespaceMode = kGCLiveRepositoryDiffWhitespaceMode_Normal;\n    _diffMaxInterHunkLines = 0;\n    _diffMaxContextLines = 3;\n\n    _state = [super state];\n\n    CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n    _history = [self loadHistoryUsingSorting:[self.class historySorting] error:error];\n    if (_history == nil) {\n      return nil;\n    }\n    XLOG_VERBOSE(@\"History loaded for \\\"%@\\\" (%lu commits scanned in %.3f seconds)\", self.repositoryPath, _history.allCommits.count, CFAbsoluteTimeGetCurrent() - time);\n\n    NSString* path = self.repositoryPath;\n    _gitDirectory = open(path.fileSystemRepresentation, O_RDONLY);  // Don't use O_EVTONLY as we do want to prevent unmounting the volume that contains the directory\n    CHECK_POSIX_FUNCTION_CALL(return nil, _gitDirectory, >= 0);\n\n    CFRunLoopTimerContext context = {0, (__bridge void*)self, NULL, NULL, NULL};\n    _updateTimer = CFRunLoopTimerCreate(kCFAllocatorDefault, HUGE_VALF, HUGE_VALF, 0, 0, _TimerCallBack, &context);\n    CFRunLoopAddTimer(CFRunLoopGetMain(), _updateTimer, kCFRunLoopCommonModes);\n\n    FSEventStreamContext streamContext = {0, (__bridge void*)self, NULL, NULL, NULL};\n    _gitDirectoryStream = FSEventStreamCreate(kCFAllocatorDefault, _StreamCallback, &streamContext,\n                                              (__bridge CFArrayRef) @[ path ], kFSEventStreamEventIdSinceNow,\n                                              kFSLatency, kFSEventStreamCreateFlagIgnoreSelf);  // This opens the path\n    if (_gitDirectoryStream == NULL) {\n      XLOG_ERROR(@\"Failed creating event stream at \\\"%@\\\"\", path);\n      return nil;\n    }\n    FSEventStreamScheduleWithRunLoop(_gitDirectoryStream, CFRunLoopGetMain(), kCFRunLoopCommonModes);\n    if (!FSEventStreamStart(_gitDirectoryStream)) {\n      XLOG_ERROR(@\"Failed starting event stream at \\\"%@\\\"\", path);\n      return nil;\n    }\n\n    [self _reloadWorkingDirectoryStream];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [_undoManager removeAllActionsWithTarget:self];\n  if (_workingDirectoryStream) {\n    FSEventStreamStop(_workingDirectoryStream);\n    FSEventStreamInvalidate(_workingDirectoryStream);\n    FSEventStreamRelease(_workingDirectoryStream);\n  }\n  if (_gitDirectoryStream) {\n    FSEventStreamStop(_gitDirectoryStream);\n    FSEventStreamInvalidate(_gitDirectoryStream);\n    FSEventStreamRelease(_gitDirectoryStream);\n  }\n  if (_snapshotsTimer) {\n    CFRunLoopTimerInvalidate(_snapshotsTimer);\n    CFRelease(_snapshotsTimer);\n  }\n  if (_updateTimer) {\n    CFRunLoopTimerInvalidate(_updateTimer);\n    CFRelease(_updateTimer);\n  }\n  if (_gitDirectory >= 0) {\n    close(_gitDirectory);\n  }\n#if DEBUG\n  atomic_fetch_sub(&_allocatedCount, 1);\n#endif\n}\n\n- (void)_notifyWorkingDirectoryChanged:(BOOL)workingDirectoryChanged gitDirectoryChanged:(BOOL)gitDirectoryChanged {\n  if (workingDirectoryChanged) {\n    if (_statusMode != kGCLiveRepositoryStatusMode_Disabled) {\n      [self _updateStatus:YES];\n    }\n\n    if ([self.delegate respondsToSelector:@selector(repositoryWorkingDirectoryDidChange:)]) {\n      [self.delegate repositoryWorkingDirectoryDidChange:self];\n    }\n    [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositoryWorkingDirectoryDidChangeNotification object:self];\n  }\n  if (gitDirectoryChanged) {\n    [self _updateState];\n    if (_historyUpdatesSuspended > 0) {\n      _historyUpdatePending = YES;\n    } else {\n      [self _updateHistory];\n    }\n    if (_stashesEnabled) {\n      [self _updateStashes:YES];\n    }\n    if ((_statusMode != kGCLiveRepositoryStatusMode_Disabled) && !workingDirectoryChanged) {  // Don't update status twice!\n      [self _updateStatus:YES];\n    }\n\n    if ([self.delegate respondsToSelector:@selector(repositoryDidChange:)]) {\n      [self.delegate repositoryDidChange:self];\n    }\n    [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositoryDidChangeNotification object:self];\n  }\n}\n\n- (void)notifyRepositoryChanged {\n  [self _notifyWorkingDirectoryChanged:NO gitDirectoryChanged:YES];\n}\n\n- (void)notifyWorkingDirectoryChanged {\n  [self _notifyWorkingDirectoryChanged:YES gitDirectoryChanged:NO];\n}\n\n#pragma mark - Diffs\n\n- (void)setDiffWhitespaceMode:(GCLiveRepositoryDiffWhitespaceMode)mode {\n  if (mode != _diffWhitespaceMode) {\n    _diffWhitespaceMode = mode;\n    if (_statusMode != kGCLiveRepositoryStatusMode_Disabled) {\n      [self _updateStatus:YES];\n    }\n  }\n}\n\n- (void)setDiffMaxInterHunkLines:(NSUInteger)lines {\n  if (lines != _diffMaxInterHunkLines) {\n    _diffMaxInterHunkLines = lines;\n    if (_statusMode != kGCLiveRepositoryStatusMode_Disabled) {\n      [self _updateStatus:YES];\n    }\n  }\n}\n\n- (void)setDiffMaxContextLines:(NSUInteger)lines {\n  if (lines != _diffMaxContextLines) {\n    _diffMaxContextLines = lines;\n    if (_statusMode != kGCLiveRepositoryStatusMode_Disabled) {\n      [self _updateStatus:YES];\n    }\n  }\n}\n\n- (GCDiffOptions)diffBaseOptions {\n  switch (_diffWhitespaceMode) {\n    case kGCLiveRepositoryDiffWhitespaceMode_Normal:\n      return 0;\n    case kGCLiveRepositoryDiffWhitespaceMode_IgnoreChanges:\n      return kGCDiffOption_IgnoreSpaceChanges;\n    case kGCLiveRepositoryDiffWhitespaceMode_IgnoreAll:\n      return kGCDiffOption_IgnoreAllSpaces;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\n#pragma mark - State\n\n- (void)_updateState {\n  GCRepositoryState state = [super state];\n  if (state != _state) {\n    _state = state;\n\n    if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateState:)]) {\n      [self.delegate repositoryDidUpdateState:self];\n    }\n    [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositoryStateDidUpdateNotification object:self];\n  }\n}\n\n// Override super implementation and return cached state\n- (GCRepositoryState)state {\n  return _state;\n}\n\n#pragma mark - History\n\n+ (GCHistorySorting)historySorting {\n  return kGCHistorySorting_None;\n}\n\n- (BOOL)areHistoryUpdatesSuspended {\n  return _historyUpdatesSuspended > 0;\n}\n\n- (void)suspendHistoryUpdates {\n  _historyUpdatesSuspended += 1;\n}\n\n- (void)resumeHistoryUpdates {\n  XLOG_DEBUG_CHECK(_historyUpdatesSuspended > 0);\n  _historyUpdatesSuspended -= 1;\n  if (_historyUpdatesSuspended == 0) {\n    if (_historyUpdatePending) {\n      [self _updateHistory];\n      _historyUpdatePending = NO;\n    }\n  }\n}\n\n- (void)_updateHistory {\n  NSError* error;\n  BOOL referencesDidChange;\n  CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n  if ([self reloadHistory:_history referencesDidChange:&referencesDidChange addedCommits:NULL removedCommits:NULL error:&error]) {\n    if (referencesDidChange) {\n      XLOG_VERBOSE(@\"History updated for \\\"%@\\\" (%lu commits scanned in %.3f seconds)\", self.repositoryPath, _history.allCommits.count, CFAbsoluteTimeGetCurrent() - time);\n\n      if (_snapshotsTimer) {\n        CFRunLoopTimerSetNextFireDate(_snapshotsTimer, CFAbsoluteTimeGetCurrent() + kAutomaticSnapshotDelay);\n        _snapshotPending = YES;\n      }\n\n      if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateHistory:)]) {\n        [self.delegate repositoryDidUpdateHistory:self];\n      }\n      [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositoryHistoryDidUpdateNotification object:self];\n\n      if (_database) {\n        [self _updateSearch];\n      }\n    }\n  } else {\n    if ([self.delegate respondsToSelector:@selector(repository:historyUpdateDidFailWithError:)]) {\n      [self.delegate repository:self historyUpdateDidFailWithError:error];\n    }\n  }\n}\n\n- (void)_updateDatabaseInBackgroundWithProgressHandler:(GCCommitDatabaseProgressHandler)handler\n                                            completion:(void (^)(BOOL success, NSError* error))completion {\n  XLOG_DEBUG_CHECK(!_updatingDatabase);\n  NSString* path = [self.privateAppDirectoryPath stringByAppendingPathComponent:kCommitDatabaseFileName];\n  _updatingDatabase = YES;\n  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{\n    NSError* error;\n    GCRepository* repository = [[GCRepository alloc] initWithExistingLocalRepository:self.repositoryPath error:&error];  // We cannot use self because we access the repo on a background thread\n    GCCommitDatabase* database = repository ? [[GCCommitDatabase alloc] initWithRepository:repository\n                                                                              databasePath:path\n                                                                                   options:(_databaseIndexesDiffs ? kGCCommitDatabaseOptions_IndexDiffs : 0)\n                                                                                   error:&error]\n                                            : nil;\n    BOOL success = [database updateWithProgressHandler:handler error:&error];\n    database = nil;  // Release and close immediately\n    dispatch_async(dispatch_get_main_queue(), ^{\n      XLOG_DEBUG_CHECK(_updatingDatabase);\n      _updatingDatabase = NO;\n      completion(success, error);\n    });\n  });\n}\n\n- (void)_updateSearch {\n  XLOG_DEBUG_CHECK(_database);\n  if (_updatingDatabase) {\n    _databaseUpdatePending = YES;\n  } else {\n    [self _updateDatabaseInBackgroundWithProgressHandler:NULL\n                                              completion:^(BOOL success, NSError* error) {\n                                                if (success) {\n                                                  if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateSearch:)]) {\n                                                    [self.delegate repositoryDidUpdateSearch:self];\n                                                  }\n                                                  [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositorySearchDidUpdateNotification object:self];\n\n                                                  if (_databaseUpdatePending) {\n                                                    [self _updateSearch];\n                                                    _databaseUpdatePending = NO;\n                                                  }\n                                                } else {\n                                                  if ([self.delegate respondsToSelector:@selector(repository:searchUpdateDidFailWithError:)]) {\n                                                    [self.delegate repository:self searchUpdateDidFailWithError:error];\n                                                  }\n                                                }\n                                              }];\n  }\n}\n\n#pragma mark - Snapshots\n\n- (void)_writeSnapshots {\n  BOOL success = NO;\n  NSString* path = [self.privateAppDirectoryPath stringByAppendingPathComponent:kSnapshotsFileName];\n  if (path) {\n    NSString* tempPath = [path stringByAppendingString:@\"~\"];\n    if ([NSKeyedArchiver archiveRootObject:_snapshots toFile:tempPath]) {\n      if (GCExchangeFileData(tempPath.fileSystemRepresentation, path.fileSystemRepresentation) == 0) {\n        success = YES;\n      } else if (rename(tempPath.fileSystemRepresentation, path.fileSystemRepresentation) == 0) {\n        success = YES;\n      }\n      if (!success) {\n        XLOG_ERROR(@\"Failed archiving snapshots: %s\", strerror(errno));\n      }\n    }\n  }\n  if (!success && [self.delegate respondsToSelector:@selector(repository:snapshotsUpdateDidFailWithError:)]) {\n    [self.delegate repository:self snapshotsUpdateDidFailWithError:GCNewError(kGCErrorCode_Generic, @\"Failed writing snapshots\")];\n  }\n}\n\n- (void)_readSnapshots {\n  NSString* path = [self.privateAppDirectoryPath stringByAppendingPathComponent:kSnapshotsFileName];\n  if (path) {\n    if ([[NSFileManager defaultManager] fileExistsAtPath:path followLastSymlink:NO]) {\n      NSArray* array = [NSKeyedUnarchiver unarchiveObjectWithFile:path];\n      if (array) {\n        [_snapshots addObjectsFromArray:array];\n      } else if ([self.delegate respondsToSelector:@selector(repository:snapshotsUpdateDidFailWithError:)]) {\n        [self.delegate repository:self snapshotsUpdateDidFailWithError:GCNewError(kGCErrorCode_Generic, @\"Failed reading snapshots\")];\n      }\n    }\n  } else if ([self.delegate respondsToSelector:@selector(repository:snapshotsUpdateDidFailWithError:)]) {\n    [self.delegate repository:self snapshotsUpdateDidFailWithError:GCNewError(kGCErrorCode_Generic, @\"Failed accessing snapshots\")];\n  }\n}\n\n- (BOOL)_saveSnapshot:(GCSnapshot*)snapshot withReason:(NSString*)reason argument:(id<NSCoding>)argument {\n  if ([_snapshots.firstObject isEqualToSnapshot:snapshot usingOptions:(kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)]) {\n    return NO;\n  }\n  snapshot[kSnapshotKey_Date] = [NSDate date];\n  snapshot[kSnapshotKey_Reason] = reason;\n  if (argument) {\n    snapshot[kSnapshotKey_Argument] = argument;\n  }\n  [_snapshots insertObject:snapshot atIndex:0];\n  if (_snapshots.count > kMaxSnapshots) {\n    [_snapshots removeObjectsInRange:NSMakeRange(kMaxSnapshots, _snapshots.count - kMaxSnapshots)];\n  }\n  XLOG_VERBOSE(@\"Saved snapshot with reason '%@' for \\\"%@\\\"\", reason, self.repositoryPath);\n  if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateSnapshots:)]) {\n    [self.delegate repositoryDidUpdateSnapshots:self];\n  }\n  [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositorySnapshotsDidUpdateNotification object:self];\n\n  [self _writeSnapshots];\n  return YES;\n}\n\n- (BOOL)_saveAutomaticSnapshotIfNeeded:(BOOL)isFirst {\n  NSError* error;\n  GCSnapshot* snapshot = [self takeSnapshot:&error];\n  if (snapshot) {\n    if (![_snapshots.firstObject isEqualToSnapshot:snapshot usingOptions:(kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)]) {\n      NSString* reason = isFirst ? (_snapshots.count ? @\"open\" : @\"initial\") : @\"automatic\";\n      [self _saveSnapshot:snapshot withReason:reason argument:nil];\n      return YES;\n    }\n  } else if ([self.delegate respondsToSelector:@selector(repository:snapshotsUpdateDidFailWithError:)]) {\n    [self.delegate repository:self snapshotsUpdateDidFailWithError:error];\n  }\n  return NO;\n}\n\n- (void)_saveAutomaticSnapshotIfPending {\n  if (_snapshotPending) {\n    [self _saveAutomaticSnapshotIfNeeded:NO];\n    _snapshotPending = NO;\n  }\n}\n\n- (void)setSnapshotsEnabled:(BOOL)flag {\n  BOOL notify = NO;\n  if (flag && !_snapshots) {\n    _snapshots = [[NSMutableArray alloc] init];\n    [self _readSnapshots];\n    if (![self _saveAutomaticSnapshotIfNeeded:YES]) {\n      notify = YES;\n    }\n  } else if (!flag && _snapshots) {\n    _snapshots = nil;\n    notify = YES;\n  }\n  if (notify) {\n    if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateSnapshots:)]) {\n      [self.delegate repositoryDidUpdateSnapshots:self];\n    }\n    [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositorySnapshotsDidUpdateNotification object:self];\n  }\n}\n\n- (BOOL)areSnapshotsEnabled {\n  return _snapshots ? YES : NO;\n}\n\n- (void)setAutomaticSnapshotsEnabled:(BOOL)flag {\n  if (flag && !_snapshotsTimer) {\n    XLOG_DEBUG_CHECK(_snapshotPending == NO);\n    CFRunLoopTimerContext context = {0, (__bridge void*)self, NULL, NULL, NULL};\n    _snapshotsTimer = CFRunLoopTimerCreate(kCFAllocatorDefault, HUGE_VALF, HUGE_VALF, 0, 0, _TimerCallBack, &context);\n    CFRunLoopAddTimer(CFRunLoopGetMain(), _snapshotsTimer, kCFRunLoopCommonModes);\n    _lastSnapshot = _snapshots.firstObject;\n  } else if (!flag && _snapshotsTimer) {\n    [self _saveAutomaticSnapshotIfPending];\n\n    if (_lastSnapshot && ![_snapshots.firstObject isEqualToSnapshot:_lastSnapshot usingOptions:(kGCSnapshotOption_IncludeHEAD | kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)]) {\n      XLOG_DEBUG_CHECK(_undoActionName);\n      [_undoManager setActionName:_undoActionName];\n      [[_undoManager prepareWithInvocationTarget:self] _undoOperationWithReason:@\"automatic\" beforeSnapshot:_lastSnapshot afterSnapshot:_snapshots.firstObject checkoutIfNeeded:YES ignore:NO];\n      _undoActionName = nil;\n    }\n\n    CFRunLoopTimerInvalidate(_snapshotsTimer);\n    CFRelease(_snapshotsTimer);\n    _snapshotsTimer = NULL;\n  }\n}\n\n- (BOOL)areAutomaticSnapshotsEnabled {\n  return _snapshotsTimer ? YES : NO;\n}\n\n#pragma mark - Status\n\n- (void)setStatusMode:(GCLiveRepositoryStatusMode)mode {\n  if (mode != _statusMode) {\n    _statusMode = mode;\n    if (_statusMode != kGCLiveRepositoryStatusMode_Disabled) {\n      [self _updateStatus:NO];\n    } else {\n      _unifiedStatus = nil;\n      _indexStatus = nil;\n      _indexConflicts = nil;\n      _workingDirectoryStatus = nil;\n    }\n  }\n}\n\n- (void)_updateStatus:(BOOL)notify {\n  BOOL success = YES;\n  GCDiff* unifiedDiff = nil;\n  GCDiff* indexDiff = nil;\n  GCDiff* workdirDiff = nil;\n  NSDictionary* conflicts = nil;\n  NSError* error;\n\n  CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n  if (_statusMode == kGCLiveRepositoryStatusMode_Unified) {\n    unifiedDiff = [self diffWorkingDirectoryWithHEAD:nil\n                                             options:(self.diffBaseOptions | kGCDiffOption_IncludeUntracked | kGCDiffOption_FindRenames)\n                                   maxInterHunkLines:_diffMaxInterHunkLines\n                                     maxContextLines:_diffMaxContextLines\n                                               error:&error];\n    if (!unifiedDiff) {\n      success = NO;\n    }\n  } else {\n    XLOG_DEBUG_CHECK(_statusMode == kGCLiveRepositoryStatusMode_Normal);\n    indexDiff = [self diffRepositoryIndexWithHEAD:nil\n                                          options:(self.diffBaseOptions | kGCDiffOption_FindRenames)\n                                maxInterHunkLines:_diffMaxInterHunkLines\n                                  maxContextLines:_diffMaxContextLines\n                                            error:&error];\n    if (indexDiff) {\n      workdirDiff = [self diffWorkingDirectoryWithRepositoryIndex:nil\n                                                          options:(self.diffBaseOptions | kGCDiffOption_IncludeUntracked)\n                                                maxInterHunkLines:_diffMaxInterHunkLines\n                                                  maxContextLines:_diffMaxContextLines\n                                                            error:&error];\n    }\n    if (!indexDiff || !workdirDiff) {\n      success = NO;\n    }\n  }\n  if (success) {\n    conflicts = [self checkConflicts:&error];\n    if (!conflicts) {\n      success = NO;\n    }\n  }\n\n  if (success) {\n    if (((_statusMode == kGCLiveRepositoryStatusMode_Unified) && ![_unifiedStatus isEqualToDiff:unifiedDiff]) || ((_statusMode != kGCLiveRepositoryStatusMode_Unified) && (![_indexStatus isEqualToDiff:indexDiff] || ![_workingDirectoryStatus isEqualToDiff:workdirDiff])) || ![_indexConflicts isEqualToDictionary:conflicts]) {\n      XLOG_VERBOSE(@\"Status updated for \\\"%@\\\" in %.3f seconds\", self.repositoryPath, CFAbsoluteTimeGetCurrent() - time);\n      _unifiedStatus = unifiedDiff;\n      _indexStatus = indexDiff;\n      _indexConflicts = conflicts;\n      _workingDirectoryStatus = workdirDiff;\n\n      if (notify) {\n        if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateStatus:)]) {\n          [self.delegate repositoryDidUpdateStatus:self];\n        }\n        [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositoryStatusDidUpdateNotification object:self];\n      }\n    } else {\n      XLOG_VERBOSE(@\"Status checked for \\\"%@\\\" in %.3f seconds\", self.repositoryPath, CFAbsoluteTimeGetCurrent() - time);\n    }\n  } else {\n    _unifiedStatus = nil;\n    _indexStatus = nil;\n    _indexConflicts = nil;\n    _workingDirectoryStatus = nil;\n    if ([self.delegate respondsToSelector:@selector(repository:statusUpdateDidFailWithError:)]) {\n      [self.delegate repository:self statusUpdateDidFailWithError:error];\n    }\n  }\n}\n\n#pragma mark - Stashes\n\n- (void)setStashesEnabled:(BOOL)flag {\n  if (flag && !_stashesEnabled) {\n    _stashesEnabled = YES;\n    [self _updateStashes:NO];\n  } else if (!flag && _stashesEnabled) {\n    _stashes = nil;\n    _stashesEnabled = NO;\n  }\n}\n\n- (void)_updateStashes:(BOOL)notify {\n  NSError* error;\n  NSArray* stashes = [self listStashes:&error];\n  if (stashes) {\n    if (![_stashes isEqualToArray:stashes]) {\n      XLOG_VERBOSE(@\"Stashes updated for \\\"%@\\\"\", self.repositoryPath);\n      _stashes = stashes;\n\n      if (notify) {\n        if ([self.delegate respondsToSelector:@selector(repositoryDidUpdateStashes:)]) {\n          [self.delegate repositoryDidUpdateStashes:self];\n        }\n        [[NSNotificationCenter defaultCenter] postNotificationName:GCLiveRepositoryStashesDidUpdateNotification object:self];\n      }\n    }\n  } else {\n    _stashes = nil;\n    if ([self.delegate respondsToSelector:@selector(repository:stashesUpdateDidFailWithError:)]) {\n      [self.delegate repository:self stashesUpdateDidFailWithError:error];\n    }\n  }\n}\n\n#pragma mark - Operations\n\n- (void)setUndoManager:(NSUndoManager*)undoManager {\n  if (_undoManager && !undoManager) {\n    [_undoManager removeAllActionsWithTarget:self];\n  }\n  _undoManager = undoManager;\n}\n\n- (void)setUndoActionName:(NSString*)name {\n  _undoActionName = name;\n}\n\n- (void)_undoOperationWithReason:(NSString*)reason beforeSnapshot:(GCSnapshot*)beforeSnapshot afterSnapshot:(GCSnapshot*)afterSnapshot checkoutIfNeeded:(BOOL)checkoutIfNeeded ignore:(BOOL)ignore {\n  if (ignore) {\n    [[_undoManager prepareWithInvocationTarget:self] _undoOperationWithReason:reason beforeSnapshot:beforeSnapshot afterSnapshot:afterSnapshot checkoutIfNeeded:checkoutIfNeeded ignore:NO];\n    return;\n  }\n\n  BOOL success = NO;\n  NSError* error;\n  GCCommit* oldHeadCommit;\n  if (!checkoutIfNeeded || [self lookupHEADCurrentCommit:&oldHeadCommit branch:NULL error:&error]) {\n    NSString* message = [NSString stringWithFormat:(_undoManager.redoing ? kGCReflogMessageFormat_GitUp_Redo : kGCReflogMessageFormat_GitUp_Undo), reason, nil];\n    if ([self applyDeltaFromSnapshot:afterSnapshot\n                          toSnapshot:beforeSnapshot\n                         withOptions:(kGCSnapshotOption_IncludeHEAD | kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)\n                       reflogMessage:message\n                 didUpdateReferences:NULL\n                               error:&error]) {\n      GCCommit* newHeadCommit;\n      if (!checkoutIfNeeded || [self lookupHEADCurrentCommit:&newHeadCommit branch:NULL error:&error]) {\n        if (!checkoutIfNeeded || !newHeadCommit || (oldHeadCommit && [newHeadCommit isEqualToCommit:oldHeadCommit]) || [self checkoutTreeForCommit:nil withBaseline:oldHeadCommit options:kGCCheckoutOption_UpdateSubmodulesRecursively error:&error]) {\n          [[_undoManager prepareWithInvocationTarget:self] _undoOperationWithReason:reason beforeSnapshot:afterSnapshot afterSnapshot:beforeSnapshot checkoutIfNeeded:checkoutIfNeeded ignore:NO];\n          success = YES;\n        }\n      }\n    }\n    [self notifyRepositoryChanged];\n  }\n\n  if (!success) {  // In case of error, put a dummy operation on the undo stack since we *must* put something, but pop it at the next runloop iteration\n    [[_undoManager prepareWithInvocationTarget:self] _undoOperationWithReason:reason beforeSnapshot:beforeSnapshot afterSnapshot:afterSnapshot checkoutIfNeeded:checkoutIfNeeded ignore:YES];\n    [_undoManager performSelector:(self.undoManager.isRedoing ? @selector(undo) : @selector(redo)) withObject:nil afterDelay:0.0];\n    if ([self.delegate respondsToSelector:@selector(repository:undoOperationDidFailWithError:)]) {\n      [self.delegate repository:self undoOperationDidFailWithError:error];\n    }\n  }\n}\n\n- (void)_registerUndoWithReason:(NSString*)reason\n                       argument:(id<NSCoding>)argument\n                 beforeSnapshot:(GCSnapshot*)beforeSnapshot\n                  afterSnapshot:(GCSnapshot*)afterSnapshot\n               checkoutIfNeeded:(BOOL)checkoutIfNeeded {\n  if (![_snapshots.firstObject isEqualToSnapshot:afterSnapshot usingOptions:(kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)]) {\n    [self _saveSnapshot:afterSnapshot withReason:reason argument:argument];  // Only save snapshot if different from last one (excluding HEAD)\n  }\n\n#if DEBUG\n  if ([afterSnapshot isEqualToSnapshot:beforeSnapshot usingOptions:(kGCSnapshotOption_IncludeHEAD | kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags)]) {\n    kill(getpid(), SIGSTOP);  // Break into debugger - only works on main thread\n  }\n#endif\n  XLOG_DEBUG_CHECK(_undoActionName);\n  [_undoManager setActionName:_undoActionName];\n  [[_undoManager prepareWithInvocationTarget:self] _undoOperationWithReason:reason beforeSnapshot:beforeSnapshot afterSnapshot:afterSnapshot checkoutIfNeeded:checkoutIfNeeded ignore:NO];\n  _undoActionName = nil;\n}\n\n- (BOOL)performOperationWithReason:(NSString*)reason\n                          argument:(id<NSCoding>)argument\n                skipCheckoutOnUndo:(BOOL)skipCheckout\n                             error:(NSError**)error\n                        usingBlock:(BOOL (^)(GCLiveRepository* repository, NSError** outError))block {\n  XLOG_DEBUG_CHECK(!_hasBackgroundOperationInProgress);\n  BOOL success = NO;\n  GCSnapshot* beforeSnapshot = reason ? [self takeSnapshot:error] : nil;\n  if (!reason || beforeSnapshot) {\n    CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n    if (block(self, error)) {\n      XLOG_VERBOSE(@\"Performed operation '%@' in \\\"%@\\\" in %.3f seconds\", reason, self.repositoryPath, CFAbsoluteTimeGetCurrent() - time);\n      GCSnapshot* afterSnapshot = reason ? [self takeSnapshot:error] : nil;\n      if (!reason || afterSnapshot) {\n        if (reason) {\n          [self _registerUndoWithReason:reason argument:argument beforeSnapshot:beforeSnapshot afterSnapshot:afterSnapshot checkoutIfNeeded:!skipCheckout];\n        }\n        success = YES;\n      }\n    }\n    [self notifyRepositoryChanged];\n  }\n  return success;\n}\n\n// In practice this should only be used for remote operations\n- (void)performOperationInBackgroundWithReason:(NSString*)reason\n                                      argument:(id<NSCoding>)argument\n                           usingOperationBlock:(BOOL (^)(GCRepository* repository, NSError** outError))operationBlock\n                               completionBlock:(void (^)(BOOL success, NSError* error))completionBlock {\n  XLOG_DEBUG_CHECK(!_hasBackgroundOperationInProgress);\n  __block NSError* error = nil;\n  GCSnapshot* beforeSnapshot = reason ? [self takeSnapshot:&error] : nil;\n  if (!reason || beforeSnapshot) {\n    [[NSProcessInfo processInfo] disableSuddenTermination];\n    _hasBackgroundOperationInProgress = YES;\n    if ([self.delegate respondsToSelector:@selector(repositoryBackgroundOperationInProgressDidChange:)]) {\n      [self.delegate repositoryBackgroundOperationInProgressDidChange:self];\n    }\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\n      GCRepository* repository = [[GCRepository alloc] initWithExistingLocalRepository:self.repositoryPath error:&error];\n      repository.delegate = self.delegate;\n      __block BOOL success = repository && operationBlock(repository, &error);\n      dispatch_async(dispatch_get_main_queue(), ^{\n        if (success) {\n          GCSnapshot* afterSnapshot = reason ? [self takeSnapshot:&error] : nil;\n          if (!reason || afterSnapshot) {\n            if (reason) {\n              [self _registerUndoWithReason:reason argument:argument beforeSnapshot:beforeSnapshot afterSnapshot:afterSnapshot checkoutIfNeeded:YES];\n            }\n            success = YES;\n          }\n        }\n        [self notifyRepositoryChanged];\n        _hasBackgroundOperationInProgress = NO;\n        if ([self.delegate respondsToSelector:@selector(repositoryBackgroundOperationInProgressDidChange:)]) {\n          [self.delegate repositoryBackgroundOperationInProgressDidChange:self];\n        }\n        [[NSProcessInfo processInfo] enableSuddenTermination];\n        completionBlock(success, error);\n      });\n    });\n  } else {\n    dispatch_async(dispatch_get_main_queue(), ^{\n      completionBlock(NO, error);\n    });\n  }\n}\n\n@end\n\n@implementation GCLiveRepository (Extensions)\n\n- (BOOL)performReferenceTransformWithReason:(NSString*)reason\n                                   argument:(id<NSCoding>)argument\n                                      error:(NSError**)error\n                                 usingBlock:(GCReferenceTransform* (^)(GCLiveRepository* repository, NSError** outError))block {\n  return [self performOperationWithReason:reason\n                                 argument:argument\n                       skipCheckoutOnUndo:NO\n                                    error:error\n                               usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                 GCReferenceTransform* transform = block(repository, outError);\n                                 if (!transform) {\n                                   return NO;\n                                 }\n                                 GCCommit* oldHeadCommit;\n                                 if (![repository lookupHEADCurrentCommit:&oldHeadCommit branch:NULL error:error]) {\n                                   return NO;\n                                 }\n                                 if (![repository applyReferenceTransform:transform error:outError]) {\n                                   return NO;\n                                 }\n                                 GCCommit* newHeadCommit;\n                                 if (![repository lookupHEADCurrentCommit:&newHeadCommit branch:NULL error:error]) {\n                                   return NO;\n                                 }\n                                 if (newHeadCommit && (!oldHeadCommit || ![newHeadCommit isEqualToCommit:oldHeadCommit])) {\n                                   return [self checkoutTreeForCommit:nil withBaseline:oldHeadCommit options:kGCCheckoutOption_UpdateSubmodulesRecursively error:outError];\n                                 }\n                                 return YES;\n                               }];\n}\n\n- (GCCommit*)performCommitCreationFromHEADAndOtherParent:(GCCommit*)parent withMessage:(NSString*)message error:(NSError**)error {\n  __block GCCommit* newCommit = nil;\n  if (![self performOperationWithReason:GCLiveRepositoryCommitOperationReason\n                               argument:nil\n                     skipCheckoutOnUndo:YES\n                                  error:error\n                             usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                               newCommit = [repository createCommitFromHEADAndOtherParent:parent withMessage:message error:outError];\n                               return newCommit ? YES : NO;\n                             }]) {\n    return nil;\n  }\n  return newCommit;\n}\n\n- (GCCommit*)performHEADCommitAmendingWithMessage:(NSString*)message error:(NSError**)error {\n  __block GCCommit* newCommit = nil;\n  if (![self performOperationWithReason:GCLiveRepositoryAmendOperationReason\n                               argument:nil\n                     skipCheckoutOnUndo:YES\n                                  error:error\n                             usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                               newCommit = [repository createCommitByAmendingHEADWithMessage:message error:error];\n                               return newCommit ? YES : NO;\n                             }]) {\n    return nil;\n  }\n  return newCommit;\n}\n\n@end\n\n@implementation GCLiveRepository (GCCommitDatabase)\n\n- (void)prepareSearchInBackground:(BOOL)indexDiffs\n              withProgressHandler:(GCCommitDatabaseProgressHandler)handler\n                       completion:(void (^)(BOOL success, NSError* error))completion {\n  if (_database == nil) {\n    _databaseIndexesDiffs = indexDiffs;\n    [self _updateDatabaseInBackgroundWithProgressHandler:handler\n                                              completion:^(BOOL success, NSError* error) {\n                                                if (success) {\n                                                  NSString* path = [self.privateAppDirectoryPath stringByAppendingPathComponent:kCommitDatabaseFileName];\n                                                  _database = [[GCCommitDatabase alloc] initWithRepository:self\n                                                                                              databasePath:path\n                                                                                                   options:((_databaseIndexesDiffs ? kGCCommitDatabaseOptions_IndexDiffs : 0) | kGCCommitDatabaseOptions_QueryOnly)\n                                                                                                     error:&error];\n                                                  if (_database) {\n                                                    if (_databaseUpdatePending) {\n                                                      [self _updateSearch];\n                                                      _databaseUpdatePending = NO;\n                                                    }\n                                                  } else {\n                                                    success = NO;\n                                                  }\n                                                }\n                                                completion(success, error);\n                                              }];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n    completion(NO, GCNewError(-1, [NSString stringWithFormat:@\"No database when calling %@\", NSStringFromSelector(_cmd)]));\n  }\n}\n\nstatic BOOL _MatchReference(NSString* match, NSString* name) {\n  NSRange range = [name rangeOfString:match options:NSCaseInsensitiveSearch];\n  return range.location != NSNotFound;\n}\n\n- (NSArray*)findCommitsMatching:(NSString*)match {\n  XLOG_DEBUG_CHECK(_database);\n  NSMutableArray* results = [[NSMutableArray alloc] init];\n\n  match = [match stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n  bool searchFileHistoryOnly = [match hasPrefix:@\"/\"];\n  // Search file history directly\n  if (match.length >= (kMinSearchLength + 1) && searchFileHistoryOnly) {\n    NSArray* fileCommits = [_history.repository lookupCommitsForFile:[match substringFromIndex:1] followRenames:YES error:NULL];\n    if (fileCommits.count > 0) {\n      [results addObjectsFromArray:fileCommits];\n    }\n  }\n\n  if (match.length >= kMinSearchLength && !searchFileHistoryOnly) {\n    // Search SHA1s directly\n    NSArray* words = [match componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n    for (NSString* prefix in words) {\n      if (prefix.length >= GIT_OID_MINPREFIXLEN) {\n        GCCommit* commit = [_history.repository findCommitWithSHA1Prefix:prefix error:NULL];\n        if (commit) {\n          GCHistoryCommit* historyCommit = [_history historyCommitForCommit:commit];\n          if (historyCommit) {\n            [results addObject:historyCommit];\n          } else {\n            XLOG_DEBUG_UNREACHABLE();\n          }\n        }\n      }\n    }\n\n    // Search references\n    for (GCHistoryLocalBranch* branch in _history.localBranches) {\n      if (_MatchReference(match, branch.name)) {\n        if (branch.tipCommit) {\n          [results addObject:branch];\n        } else {\n          XLOG_DEBUG_UNREACHABLE();\n        }\n      }\n    }\n    for (GCHistoryRemoteBranch* branch in _history.remoteBranches) {\n      if (_MatchReference(match, branch.name)) {\n        if (branch.tipCommit) {\n          [results addObject:branch];\n        } else {\n          XLOG_DEBUG_UNREACHABLE();\n        }\n      }\n    }\n    for (GCHistoryTag* tag in _history.tags) {\n      if (_MatchReference(match, tag.name)) {\n        if (tag.commit) {\n          [results addObject:tag];\n        } else {\n          XLOG_DEBUG_UNREACHABLE();\n        }\n      }\n    }\n\n    // Search commits\n    [results addObjectsFromArray:[_database findCommitsUsingHistory:_history matching:match error:NULL]];  // Ignore errors\n  }\n  return results;\n}\n\n@end\n\n@implementation GCSnapshot (GCLiveRepository)\n\n- (NSDate*)date {\n  return self[kSnapshotKey_Date];\n}\n\n- (NSString*)reason {\n  return self[kSnapshotKey_Reason];\n}\n\n- (id<NSCoding>)argument {\n  return self[kSnapshotKey_Argument];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCMacros.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <stdlib.h>\n\n#pragma mark - GCItemList\n\ntypedef struct {\n  void* items;\n  size_t size;\n  size_t capacity;\n  size_t count;\n} GCItemList;\n\nstatic inline void __GCItemListInitialize(GCItemList* list, size_t initialCapacity, size_t itemSize) {\n  list->count = 0;\n  list->capacity = initialCapacity;\n#ifdef __clang_analyzer__\n  list->capacity += 1;  // Prevent clang from complaining about calling malloc() with a size of 0\n#endif\n  list->items = malloc(list->capacity * itemSize);\n  list->size = itemSize;\n}\n\n#define GC_LIST_INITIALIZE(name, initialCapacity, itemType) __GCItemListInitialize(&name, initialCapacity, sizeof(itemType))\n\n#define GC_LIST_ALLOCATE(name, initialCapacity, itemType) \\\n  __block GCItemList name;                                \\\n  GC_LIST_INITIALIZE(name, initialCapacity, itemType)\n\n#define GC_LIST_ROOT_POINTER(name) name.items\n\n#define GC_LIST_COUNT(name) name.count\n\n#define GC_LIST_CAPACITY(name) name.capacity\n\n#define GC_LIST_ITEM_POINTER(name, index) (name.items + (index) * name.size)\n\nstatic inline void __GCItemListAppend(GCItemList* list, const void* itemPointer) {\n  if (list->count == list->capacity) {\n    list->capacity *= 2;\n#ifdef __clang_analyzer__\n    list->capacity += 1;  // Prevent clang from complaining about calling realloc() with a size of 0\n#endif\n    list->items = realloc(list->items, list->capacity * list->size);\n  }\n  if (list->size == sizeof(unsigned long)) {  // Fast path for 32 and 64 bit architectures\n    *(unsigned long*)(list->items + list->count * list->size) = *(unsigned long*)itemPointer;\n  } else {\n    bcopy(itemPointer, list->items + list->count * list->size, list->size);\n  }\n  list->count += 1;\n}\n\n#define GC_LIST_APPEND(name, itemPointer) __GCItemListAppend(&name, itemPointer)\n\n#define GC_LIST_FOR_LOOP_POINTER(name, pointer) \\\n  pointer = (typeof(pointer))name.items;        \\\n  for (size_t __##name = 0; (__##name < name.count) && (pointer = (typeof(pointer))GC_LIST_ITEM_POINTER(name, __##name), 1); ++__##name)\n\n#define GC_LIST_TRUNCATE(name, newCount) name.count = newCount\n\n#define GC_LIST_RESET(name) name.count = 0\n\nstatic inline void __GCItemListFree(GCItemList* list) {\n  free(list->items);\n}\n\n#define GC_LIST_FREE(name) __GCItemListFree(&name)\n\nstatic inline void __GCItemListSwap(GCItemList* list1, GCItemList* list2) {\n  GCItemList list = *list1;\n  *list1 = *list2;\n  *list2 = list;\n}\n\n#define GC_LIST_SWAP(name1, name2) __GCItemListSwap(&name1, &name2)\n\n#pragma mark - GCPointerList\n\ntypedef struct {\n  void** pointers;\n  size_t max;\n  size_t count;\n} GCPointerList;\n\nstatic inline void __GCPointerListInitialize(GCPointerList* list, size_t initialSize) {\n  list->count = 0;\n  list->max = initialSize;\n#ifdef __clang_analyzer__\n  list->max += 1;  // Prevent clang from complaining about calling malloc() with a size of 0\n#endif\n  list->pointers = malloc(list->max * sizeof(void*));\n}\n\n#define GC_POINTER_LIST_INITIALIZE(name, initialSize) __GCPointerListInitialize(&name, initialSize)\n\n#define GC_POINTER_LIST_ALLOCATE(name, initialSize) \\\n  __block GCPointerList name;                       \\\n  GC_POINTER_LIST_INITIALIZE(name, initialSize)\n\n#define GC_POINTER_LIST_ROOT(name) name.pointers\n\n#define GC_POINTER_LIST_COUNT(name) name.count\n\n#define GC_POINTER_LIST_MAX(name) name.max\n\n#define GC_POINTER_LIST_GET(name, index) name.pointers[index]\n\nstatic inline void __GCPointerListAppend(GCPointerList* list, void* pointer) {\n  if (list->count == list->max) {\n    list->max *= 2;\n#ifdef __clang_analyzer__\n    list->max += 1;  // Prevent clang from complaining about calling realloc() with a size of 0\n#endif\n    list->pointers = realloc(list->pointers, list->max * sizeof(void*));\n  }\n  list->pointers[list->count] = pointer;\n  list->count += 1;\n}\n\n#define GC_POINTER_LIST_APPEND(name, pointer) __GCPointerListAppend(&name, pointer)\n\nstatic inline void __GCPointerListPrepend(GCPointerList* list, void* pointer) {\n  if (list->count == list->max) {\n    list->max *= 2;\n#ifdef __clang_analyzer__\n    list->max += 1;  // Prevent clang from complaining about calling realloc() with a size of 0\n#endif\n    list->pointers = realloc(list->pointers, list->max * sizeof(void*));\n  }\n  for (size_t i = list->count; i > 0; --i) {\n    list->pointers[i] = list->pointers[i - 1];\n  }\n  list->pointers[0] = pointer;\n  list->count += 1;\n}\n\n#define GC_POINTER_LIST_PREPEND(name, pointer) __GCPointerListPrepend(&name, pointer)\n\nstatic inline void __GCPointerListRemove(GCPointerList* list, size_t index) {\n  list->count -= 1;\n  for (size_t i = index; i < list->count; ++i) {\n    list->pointers[i] = list->pointers[i + 1];\n  }\n}\n\n#define GC_POINTER_LIST_REMOVE(name, index) __GCPointerListRemove(&name, index)\n\nstatic inline void* __GCPointerListPop(GCPointerList* list) {\n  list->count -= 1;\n  return list->pointers[list->count];\n}\n\n#define GC_POINTER_LIST_POP(name) __GCPointerListPop(&name)\n\nstatic inline BOOL __GCPointerListContains(GCPointerList* list, void* pointer) {\n  for (size_t i = 0; i < list->count; ++i) {\n    if (list->pointers[i] == pointer) {\n      return YES;\n    }\n  }\n  return NO;\n}\n\n#define GC_POINTER_LIST_CONTAINS(name, pointer) __GCPointerListContains(&name, pointer)\n\n#define GC_POINTER_LIST_FOR_LOOP_NO_BRIDGE(name, type, variable) \\\n  type variable = (type)GC_POINTER_LIST_GET(name, 0);            \\\n  for (size_t __##variable = 0; (__##variable < name.count) && (variable = (type)GC_POINTER_LIST_GET(name, __##variable), 1); ++__##variable)\n\n#define GC_POINTER_LIST_FOR_LOOP(name, type, variable)         \\\n  type variable = (__bridge type)GC_POINTER_LIST_GET(name, 0); \\\n  for (size_t __##variable = 0; (__##variable < name.count) && (variable = (__bridge type)GC_POINTER_LIST_GET(name, __##variable), 1); ++__##variable)\n\n#define GC_POINTER_LIST_REVERSE_FOR_LOOP(name, type, variable)                   \\\n  type variable = name.count ? GC_POINTER_LIST_GET(name, name.count - 1) : NULL; \\\n  for (ssize_t __##variable = name.count - 1; (__##variable >= 0) && (variable = GC_POINTER_LIST_GET(name, __##variable), 1); --__##variable)\n\n#define GC_POINTER_LIST_RESET(name) name.count = 0\n\nstatic inline void __GCPointerListFree(GCPointerList* list) {\n  free(list->pointers);\n}\n\n#define GC_POINTER_LIST_FREE(name) __GCPointerListFree(&name)\n\nstatic inline void __GCPointerListSwap(GCPointerList* list1, GCPointerList* list2) {\n  GCPointerList list = *list1;\n  *list1 = *list2;\n  *list2 = list;\n}\n\n#define GC_POINTER_LIST_SWAP(name1, name2) __GCPointerListSwap(&name1, &name2)\n"
  },
  {
    "path": "GitUpKit/Core/GCObject.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@class GCRepository;\n\n@interface GCObject : NSObject <NSCopying>\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) NSString* SHA1;\n@property(nonatomic, readonly) NSString* shortSHA1;  // First 7 characters (not computed!)\n@end\n\n@interface GCObject (Extensions)\n- (BOOL)isEqualToObject:(GCObject*)object;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCObject.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCObject {\n  __unsafe_unretained GCRepository* _repository;\n  NSString* _sha1;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository object:(git_object*)object {\n  if ((self = [super init])) {\n    _repository = repository;\n    _private = object;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_object_free(_private);\n}\n\n- (instancetype)copyWithZone:(NSZone*)zone {\n  return self;\n}\n\n- (NSString*)SHA1 {\n  if (_sha1 == nil) {\n    _sha1 = GCGitOIDToSHA1(git_object_id(_private));\n  }\n  return _sha1;\n}\n\n- (NSString*)shortSHA1 {\n  return [self.SHA1 substringToIndex:7];\n}\n\n- (NSString*)description {\n  [self doesNotRecognizeSelector:_cmd];\n  return nil;\n}\n\n@end\n\n@implementation GCObject (Extensions)\n\n- (NSUInteger)hash {\n  const git_oid* oid = git_object_id(_private);\n  return *((NSUInteger*)oid->id);  // Use the first bytes of the SHA1\n}\n\nstatic inline BOOL _EqualObjects(GCObject* object1, GCObject* object2) {\n  return (object1 == object2) || git_oid_equal(git_object_id(object1->_private), git_object_id(object2->_private));\n}\n\n- (BOOL)isEqualToObject:(GCObject*)object {\n  return _EqualObjects(self, object);\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCObject class]]) {\n    return NO;\n  }\n  return _EqualObjects(self, object);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCOrderedSet-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCTestCase.h\"\n#import \"GCOrderedSet.h\"\n\n@implementation GCMultipleCommitsRepositoryTests (GCOrderedSetTests)\n\n- (void)testOrderedSetAddObject {\n  GCOrderedSet* collection = [[GCOrderedSet alloc] init];\n  [collection addObject:self.commit1];\n  XCTAssertTrue([collection containsObject:self.commit1]);\n  NSArray* commits = collection.objects;\n  XCTAssertEqual(commits.count, 1);\n  XCTAssertEqual(commits[0], self.commit1);\n}\n\n- (void)testOrderedSetAddDuplicateObject {\n  GCOrderedSet* collection = [[GCOrderedSet alloc] init];\n  [collection addObject:self.commit1];\n  [collection addObject:self.commit1];\n  [collection addObject:self.commit2];\n  XCTAssertTrue([collection containsObject:self.commit1]);\n  NSArray* commits = collection.objects;\n  XCTAssertEqual(commits.count, 2);\n  XCTAssertEqual(commits[0], self.commit1);\n  XCTAssertEqual(commits[1], self.commit2);\n}\n\n- (void)testOrderedSetRemoveObject {\n  GCOrderedSet* collection = [[GCOrderedSet alloc] init];\n  [collection addObject:self.commit1];\n  [collection addObject:self.commit2];\n  XCTAssertTrue([collection containsObject:self.commit1]);\n  XCTAssertTrue([collection containsObject:self.commit2]);\n  [collection removeObject:self.commit1];\n  XCTAssertFalse([collection containsObject:self.commit1]);\n  XCTAssertTrue([collection containsObject:self.commit2]);\n  NSArray* commits = collection.objects;\n  XCTAssertEqual(commits.count, 1);\n  XCTAssertEqual(commits[0], self.commit2);\n}\n\n- (void)testOrderedSetReAddObject {\n  GCOrderedSet* collection = [[GCOrderedSet alloc] init];\n  [collection addObject:self.commit1];\n  [collection addObject:self.commit2];\n  XCTAssertTrue([collection containsObject:self.commit1]);\n  XCTAssertTrue([collection containsObject:self.commit2]);\n  [collection removeObject:self.commit1];\n  XCTAssertFalse([collection containsObject:self.commit1]);\n  XCTAssertTrue([collection containsObject:self.commit2]);\n  [collection addObject:self.commit1];\n  XCTAssertTrue([collection containsObject:self.commit1]);\n  XCTAssertTrue([collection containsObject:self.commit2]);\n  // NOTE: this collection preserves the original place of commit if re-added\n  NSArray* commits = collection.objects;\n  XCTAssertEqual(commits.count, 2);\n  XCTAssertEqual(commits[0], self.commit1);\n  XCTAssertEqual(commits[1], self.commit2);\n}\n\n- (void)testOrderedSetObjectsOrdering {\n  GCOrderedSet* collection = [[GCOrderedSet alloc] init];\n  [collection addObject:self.commit1];\n  [collection addObject:self.commit2];\n  [collection addObject:self.commit3];\n  NSArray* commits = collection.objects;\n  XCTAssertEqual(commits.count, 3);\n  XCTAssertEqual(commits[0], self.commit1);\n  XCTAssertEqual(commits[1], self.commit2);\n  XCTAssertEqual(commits[2], self.commit3);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCOrderedSet.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@class GCObject;\n\n/**\n * This class is optimized to be fast when you have a lot of calls to\n * - addObject: , -containsObject: and -removeObject: methods.\n */\n@interface GCOrderedSet : NSObject\n\n/**\n * Accessing this property is CPU-expensive.\n * It makes a copy of internal storage, filtered by existing objects.\n * Try to store the value somewhere else and don't access this property if you don't have to.\n */\n@property(nonatomic, readonly) NSArray* objects;\n\n/**\n * NOTE: Usually it is unnecessary to add an object, then remove it, then add it again.\n * But if you will do this, it will appear in the object array\n * at the SAME PLACE AS IT WAS ADDED.\n */\n- (void)addObject:(GCObject*)object;\n- (BOOL)containsObject:(GCObject*)object;\n- (void)removeObject:(GCObject*)object;\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCOrderedSet.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCOrderedSet {\n  NSMutableArray* _objects;  // Contains all the objects, even removed ones\n  CFMutableSetRef _actualObjectHashes;  // Objects that were added but have not been removed\n  CFMutableSetRef _removedObjectHashes;\n}\n\n- (instancetype)init {\n  if ((self = [super init])) {\n    _objects = [[NSMutableArray alloc] init];\n    _actualObjectHashes = CFSetCreateMutable(kCFAllocatorDefault, 0, NULL);\n    _removedObjectHashes = CFSetCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  return self;\n}\n\n- (void)dealloc {\n  CFRelease(_actualObjectHashes);\n  CFRelease(_removedObjectHashes);\n}\n\n- (void)addObject:(GCObject*)object {\n  if (![self containsObject:object]) {\n    if (CFSetContainsValue(_removedObjectHashes, (__bridge const void*)(object.SHA1))) {\n      CFSetRemoveValue(_removedObjectHashes, (__bridge const void*)(object.SHA1));\n    } else {\n      [_objects addObject:object];\n    }\n    CFSetAddValue(_actualObjectHashes, (__bridge const void*)(object.SHA1));\n  }\n}\n\n- (void)removeObject:(GCObject*)object {\n  if ([self containsObject:object]) {\n    // Removing object from NSMutableArray is expensive,\n    // so we just moving SHA from one set to another.\n    CFSetRemoveValue(_actualObjectHashes, (__bridge const void*)(object.SHA1));\n    CFSetAddValue(_removedObjectHashes, (__bridge const void*)(object.SHA1));\n  }\n}\n\n- (BOOL)containsObject:(GCObject*)object {\n  return CFSetContainsValue(_actualObjectHashes, (__bridge const void*)(object.SHA1));\n}\n\n- (NSArray*)objects {\n  NSMutableArray* result = [[NSMutableArray alloc] initWithCapacity:_objects.count];\n  for (GCObject* object in _objects) {\n    if ([self containsObject:object]) {  // Return only objects that were not removed\n      [result addObject:object];\n    }\n  }\n  return result;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCPrivate.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wdocumentation\"\n#pragma clang diagnostic ignored \"-Wpadded\"\n#import <git2.h>\n#import <gitup_extensions.h>\n#import <git2/transaction.h>\n#import <git2/sys/commit.h>\n#import <git2/sys/odb_backend.h>\n#import <git2/sys/openssl.h>\n#import <git2/sys/refdb_backend.h>\n#import <git2/sys/refs.h>\n#import <git2/sys/repository.h>\n#pragma clang diagnostic pop\n\n#import \"GCCore.h\"\n\n#import \"XLFacilityMacros.h\"\n\n#define kRefsNamespace \"refs/\"\n#define kTagsNamespace \"refs/tags/\"\n#define kHeadsNamespace \"refs/heads/\"\n#define kRemotesNamespace \"refs/remotes/\"\n\n#define kHEADReferenceFullName \"HEAD\"\n#define kStashReferenceFullName \"refs/stash\"\n\nstatic inline NSString* GetLastGitErrorMessage() {\n  const git_error* __git_error = giterr_last();\n  return __git_error && __git_error->message ? [NSString stringWithUTF8String:__git_error->message] : @\"<Unknown error>\";\n}\n\n#define LOG_LIBGIT2_ERROR(__CODE__)                                            \\\n  do {                                                                         \\\n    XLOG_DEBUG_CHECK(__CODE__ != GIT_OK);                                      \\\n    XLOG_ERROR(@\"libgit2 error (%i): %@\", __CODE__, GetLastGitErrorMessage()); \\\n  } while (0)\n\n#ifdef __clang_analyzer__\n\n#define CHECK_LIBGIT2_FUNCTION_CALL(__FAIL_ACTION__, __STATUS__, __COMPARISON__) \\\n  do {                                                                           \\\n    if (__STATUS__) NSLog(@\"OK\");                                                \\\n  } while (0)\n\n#else\n\n#define CHECK_LIBGIT2_FUNCTION_CALL(__FAIL_ACTION__, __STATUS__, __COMPARISON__) \\\n  do {                                                                           \\\n    if (!(__STATUS__ __COMPARISON__)) {                                          \\\n      LOG_LIBGIT2_ERROR(__STATUS__);                                             \\\n      if (error) {                                                               \\\n        *error = GCNewError(__STATUS__, GetLastGitErrorMessage());               \\\n      }                                                                          \\\n      __FAIL_ACTION__;                                                           \\\n    }                                                                            \\\n  } while (0)\n\n#endif\n\n#define CALL_LIBGIT2_FUNCTION_RETURN(__RETURN_VALUE_ON_ERROR__, __FUNCTION__, ...)         \\\n  do {                                                                                     \\\n    int __callError = __FUNCTION__(__VA_ARGS__);                                           \\\n    CHECK_LIBGIT2_FUNCTION_CALL(return __RETURN_VALUE_ON_ERROR__, __callError, == GIT_OK); \\\n  } while (0)\n\n#define CALL_LIBGIT2_FUNCTION_GOTO(__GOTO_LABEL__, __FUNCTION__, ...)         \\\n  do {                                                                        \\\n    int __callError = __FUNCTION__(__VA_ARGS__);                              \\\n    CHECK_LIBGIT2_FUNCTION_CALL(goto __GOTO_LABEL__, __callError, == GIT_OK); \\\n  } while (0)\n\n#define CHECK_POSIX_FUNCTION_CALL(__FAIL_ACTION__, __STATUS__, __COMPARISON__)                 \\\n  do {                                                                                         \\\n    if (!(__STATUS__ __COMPARISON__)) {                                                        \\\n      if (error) {                                                                             \\\n        *error = GCNewPosixError(__STATUS__, [NSString stringWithUTF8String:strerror(errno)]); \\\n      }                                                                                        \\\n      __FAIL_ACTION__;                                                                         \\\n    }                                                                                          \\\n  } while (0)\n\n#define CALL_POSIX_FUNCTION_RETURN(__RETURN_VALUE_ON_ERROR__, __FUNCTION__, ...)    \\\n  do {                                                                              \\\n    int __callError = __FUNCTION__(__VA_ARGS__);                                    \\\n    CHECK_POSIX_FUNCTION_CALL(return __RETURN_VALUE_ON_ERROR__, __callError, == 0); \\\n  } while (0)\n\n#define CALL_POSIX_FUNCTION_GOTO(__GOTO_LABEL__, __FUNCTION__, ...)    \\\n  do {                                                                 \\\n    int __callError = __FUNCTION__(__VA_ARGS__);                       \\\n    CHECK_POSIX_FUNCTION_CALL(goto __GOTO_LABEL__, __callError, == 0); \\\n  } while (0)\n\ntypedef NS_OPTIONS(NSUInteger, GCReferenceEnumerationOptions) {\n  kGCReferenceEnumerationOption_IncludeHEAD = (1 << 0),\n  kGCReferenceEnumerationOption_RetainReferences = (1 << 1)\n};\n\nextern NSError* GCNewPosixError(int code, NSString* message);\nextern NSString* GCGitOIDToSHA1(const git_oid* oid);\nextern BOOL GCGitOIDFromSHA1(NSString* sha1, git_oid* oid, NSError** error);\nextern BOOL GCGitOIDFromSHA1Prefix(NSString* prefix, git_oid* oid, NSError** error);\nextern NSData* GCCleanedUpCommitMessage(NSString* message);\nextern NSString* GCUserFromSignature(const git_signature* signature);\nextern const void* GCOIDCopyCallBack(CFAllocatorRef allocator, const void* value);\nextern Boolean GCOIDEqualCallBack(const void* value1, const void* value2);\nextern CFHashCode GCOIDHashCallBack(const void* value);\nextern Boolean GCCStringEqualCallBack(const void* value1, const void* value2);\nextern CFHashCode GCCStringHashCallBack(const void* value);\nextern const void* GCCStringCopyCallBack(CFAllocatorRef allocator, const void* value);\nextern void GCFreeReleaseCallBack(CFAllocatorRef allocator, const void* value);\nextern GCFileMode GCFileModeFromMode(git_filemode_t mode);\n\nextern int git_revwalk_add_hide_block(git_revwalk* walk, int (^block)(const git_oid* commit_id));\nextern int git_stash_foreach_block(git_repository* repo, int (^block)(size_t index, const char* message, const git_oid* stash_id));\nextern int git_submodule_foreach_block(git_repository* repo, int (^block)(git_submodule* submodule, const char* name));\n\n#if !TARGET_OS_IPHONE\n\n@interface GCTask : NSObject\n@property(nonatomic, readonly) NSString* executablePath;\n@property(nonatomic) NSTimeInterval executionTimeOut;  // Default is 0.0 i.e. no timeout\n@property(nonatomic, copy) NSDictionary* additionalEnvironment;\n@property(nonatomic, copy) NSString* currentDirectoryPath;\n@property(nonatomic) BOOL fallBackToDefaultInterpreter;\n- (instancetype)initWithExecutablePath:(NSString*)path;\n- (BOOL)runWithArguments:(NSArray*)arguments stdin:(NSData*)stdin stdout:(NSData**)stdout stderr:(NSData**)stderr exitStatus:(int*)exitStatus error:(NSError**)error;  // Returns NO if \"exitStatus\" is NULL and executable exits with a non-zero status\n@end\n\n#endif\n\n@interface GCObject () {\n@public\n  git_object* _private;\n}\n@property(nonatomic, readonly) git_object* private NS_RETURNS_INNER_POINTER;\n- (instancetype)initWithRepository:(GCRepository*)repository object:(git_object*)object;\n@end\n\n@interface GCCommit ()\n@property(nonatomic, readonly) git_commit* private NS_RETURNS_INNER_POINTER;\n- (instancetype)initWithRepository:(GCRepository*)repository commit:(git_commit*)commit;\n@end\n\n@interface GCTagAnnotation ()\n@property(nonatomic, readonly) git_tag* private NS_RETURNS_INNER_POINTER;\n- (instancetype)initWithRepository:(GCRepository*)repository tag:(git_tag*)tag;\n@end\n\n@interface GCReference ()\n@property(nonatomic, readonly) git_reference* private NS_RETURNS_INNER_POINTER;\n- (instancetype)initWithRepository:(GCRepository*)repository reference:(git_reference*)reference;\n- (void)updateReference:(git_reference*)reference;\n- (NSComparisonResult)compareWithReference:(git_reference*)reference;\n@end\n\n@interface GCIndex ()\n@property(nonatomic, readonly) git_index* private NS_RETURNS_INNER_POINTER;\n- (instancetype)initWithRepository:(GCRepository*)repository index:(git_index*)index;\n- (const git_oid*)OIDForFile:(NSString*)path NS_RETURNS_INNER_POINTER;  // Returns NULL if file is not in index\n@end\n\n@interface GCDiffFile ()\n@property(nonatomic, readonly) const git_oid* OID NS_RETURNS_INNER_POINTER;\n@end\n\n@interface GCDiffPatch ()\n@property(nonatomic, readonly) git_patch* private NS_RETURNS_INNER_POINTER;\n@end\n\n@interface GCDiffDelta ()\n@property(nonatomic, readonly) const git_diff_delta* private NS_RETURNS_INNER_POINTER;\n@end\n\n@interface GCDiff ()\n@property(nonatomic, readonly) git_diff* private NS_RETURNS_INNER_POINTER;\n#if DEBUG\n- (GCFileDiffChange)changeForFile:(NSString*)path;  // For unit tests only - Returns NSNotFound if file not in diff\n#endif\n@end\n\n@interface GCReflogEntry ()\n@property(nonatomic, readonly) const git_oid* fromOID NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) const git_oid* toOID NS_RETURNS_INNER_POINTER;\n@end\n\n@interface GCReferenceTransform ()\n- (void)setSymbolicTarget:(const char*)target forReferenceWithName:(const char*)name;\n- (void)setDirectTarget:(const git_oid*)oid forReferenceWithName:(const char*)name;\n- (void)deleteReferenceWithName:(const char*)name;\n@end\n\n@interface GCSerializedReference : NSObject <NSSecureCoding>\n@property(nonatomic, readonly) const char* name NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) const char* shortHand NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) git_ref_t type;\n@property(nonatomic, readonly) const git_oid* directTarget NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) const char* symbolicTarget NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) git_otype resolvedType;\n@property(nonatomic, readonly) const git_oid* resolvedTarget NS_RETURNS_INNER_POINTER;  // May be NULL\n- (BOOL)isHEAD;\n- (BOOL)isLocalBranch;\n- (BOOL)isRemoteBranch;\n- (BOOL)isTag;\n@end\n\n@interface GCSnapshot ()\n@property(nonatomic, readonly) NSDictionary* config;\n@property(nonatomic, readonly) NSArray* serializedReferences;\n- (id)initWithRepository:(GCRepository*)repository error:(NSError**)error;\n- (GCSerializedReference*)serializedReferenceWithName:(const char*)name;\n@end\n\n@interface GCRemote ()\n@property(nonatomic, readonly) git_remote* private NS_RETURNS_INNER_POINTER;\n- (NSComparisonResult)compareWithRemote:(git_remote*)remote;\n@end\n\n@interface GCSubmodule ()\n- (instancetype)initWithRepository:(GCRepository*)repository submodule:(git_submodule*)submodule;\n@property(nonatomic, readonly) git_submodule* private NS_RETURNS_INNER_POINTER;\n@end\n\n@interface GCIndexConflict ()\n@property(nonatomic, readonly) const git_oid* ancestorOID NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) const git_oid* ourOID NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) const git_oid* theirOID NS_RETURNS_INNER_POINTER;\n- (BOOL)isEqualToIndexConflict:(GCIndexConflict*)conflict;\n@end\n\n@interface GCRepository ()\n@property(nonatomic, readonly) git_repository* private NS_RETURNS_INNER_POINTER;\n@property(nonatomic, readonly) NSUInteger lastUpdatedTips;  // Reset before fetching and updated during fetching\n- (instancetype)initWithRepository:(git_repository*)repository error:(NSError**)error;\n- (NSString*)privateTemporaryFilePath;\n#if DEBUG\n- (GCDiff*)checkUnifiedStatus:(NSError**)error;\n- (GCDiff*)checkIndexStatus:(NSError**)error;\n- (GCDiff*)checkWorkingDirectoryStatus:(NSError**)error;\n- (BOOL)checkRepositoryDirty:(BOOL)includeUntracked;\n- (instancetype)initWithClonedRepositoryFromURL:(NSURL*)url toPath:(NSString*)path usingDelegate:(id<GCRepositoryDelegate>)delegate recursive:(BOOL)recursive error:(NSError**)error;\n#endif\n- (void)willStartRemoteTransferWithURL:(NSURL*)url;\n- (void)didFinishRemoteTransferWithURL:(NSURL*)url success:(BOOL)success;\n- (void)setRemoteCallbacks:(git_remote_callbacks*)callbacks;\n- (NSData*)exportBlobWithOID:(const git_oid*)oid error:(NSError**)error;\n- (BOOL)exportBlobWithOID:(const git_oid*)oid toPath:(NSString*)path error:(NSError**)error;\n@end\n\n@interface GCHistory ()\n- (GCHistoryCommit*)historyCommitForOID:(const git_oid*)oid;\n@end\n\n@interface GCCommitDatabase ()\n- (NSArray*)findCommitsUsingHistory:(GCHistory*)history matching:(NSString*)match error:(NSError**)error;\n#if DEBUG\n- (NSUInteger)countCommits;  // Returns NSNotFound on error\n- (NSUInteger)countTips;  // Returns NSNotFound on error\n- (NSUInteger)countRelations;  // Returns NSNotFound on error\n- (NSUInteger)totalCommitRetainCount;  // Returns NSNotFound on error\n#endif\n@end\n\n@interface GCRepository (Bare_Private)\n- (GCCommit*)createCommitFromTree:(git_tree*)tree\n                      withParents:(const git_commit**)parents\n                            count:(NSUInteger)count\n                           author:(const git_signature*)author\n                          message:(NSString*)message\n                            error:(NSError**)error;\n\n- (GCCommit*)createCommitFromIndex:(git_index*)index\n                       withParents:(const git_commit**)parents\n                             count:(NSUInteger)count\n                            author:(const git_signature*)author\n                           message:(NSString*)message\n                             error:(NSError**)error;\n\n- (GCCommit*)createCommitFromCommit:(git_commit*)commit\n                          withIndex:(git_index*)index\n                     updatedMessage:(NSString*)message\n                     updatedParents:(NSArray*)parents\n                    updateCommitter:(BOOL)updateCommitter\n                              error:(NSError**)error;\n\n- (GCCommit*)createCommitFromCommit:(git_commit*)commit\n                           withTree:(git_tree*)tree\n                     updatedMessage:(NSString*)message\n                     updatedParents:(NSArray*)parents\n                    updateCommitter:(BOOL)updateCommitter\n                              error:(NSError**)error;\n@end\n\n@interface GCRepository (GCCommit_Private)\n- (NSString*)computeUniqueOIDForCommit:(git_commit*)commit error:(NSError**)error;\n@end\n\n@interface GCRepository (GCBranch_Private)\n- (git_commit*)loadCommitFromBranchReference:(git_reference*)reference error:(NSError**)error;\n@end\n\n@interface GCRepository (GCReference_Private)\n- (id)findReferenceWithFullName:(NSString*)fullname class:(Class)class error:(NSError**)error;\n- (BOOL)refreshReference:(GCReference*)reference error:(NSError**)error;\n- (BOOL)enumerateReferencesWithOptions:(GCReferenceEnumerationOptions)options error:(NSError**)error usingBlock:(BOOL (^)(git_reference* reference))block;\n- (BOOL)loadTargetOID:(git_oid*)oid fromReference:(git_reference*)reference error:(NSError**)error;\n- (BOOL)setTargetOID:(const git_oid*)oid forReference:(git_reference*)reference reflogMessage:(NSString*)message newReference:(git_reference**)newReference error:(NSError**)error;  // Follows reference chain until a direct reference and force update its target\n- (GCReference*)createDirectReferenceWithFullName:(NSString*)name target:(GCObject*)target force:(BOOL)force error:(NSError**)error;\n- (GCReference*)createSymbolicReferenceWithFullName:(NSString*)name target:(NSString*)target force:(BOOL)force error:(NSError**)error;\n@end\n\n@interface GCRepository (GCIndex_Private)\n- (git_index*)reloadRepositoryIndex:(NSError**)error;\n#if DEBUG\n- (BOOL)addAllFilesToIndex:(NSError**)error;  // For unit tests only\n#endif\n@end\n\n@interface GCRepository (HEAD_Private)\n- (git_commit*)loadHEADCommit:(git_reference**)resolvedReference error:(NSError**)error;  // \"resolvedReference\" is optional and will be set to NULL if HEAD is detached\n- (BOOL)loadHEADCommit:(git_commit**)commit resolvedReference:(git_reference**)resolvedReference error:(NSError**)error;  // \"commit\" is optional and will be set to NULL if HEAD is unborn and \"resolvedReference\" is optional and will be set to NULL if HEAD is unborn or detached\n#if DEBUG\n- (BOOL)mergeCommitToHEAD:(GCCommit*)commit error:(NSError**)error;  // For unit tests only\n#endif\n@end\n\n#if DEBUG\n\n@interface GCRepository (Remote_Private)\n- (NSUInteger)checkForChangesInRemote:(GCRemote*)remote withOptions:(GCRemoteCheckOptions)options error:(NSError**)error;\n@end\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Core/GCPrivate.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n#if !TARGET_OS_IPHONE\n\n@implementation GCTask {\n  NSFileHandle* _outFileHandle;\n  NSMutableData* _outData;\n  NSFileHandle* _errorFileHandle;\n  NSMutableData* _errorData;\n}\n\n- (instancetype)initWithExecutablePath:(NSString*)path {\n  if ((self = [super init])) {\n    _executablePath = [path copy];\n  }\n  return self;\n}\n\n- (void)_timer:(NSTimer*)timer {\n  [(NSTask*)timer.userInfo terminate];\n  [(NSTask*)timer.userInfo interrupt];\n}\n\n- (void)_fileHandleDataAvailable:(NSNotification*)notification {\n  @autoreleasepool {\n    NSFileHandle* fileHandle = notification.object;\n    NSData* data = fileHandle.availableData;\n\n    if (fileHandle == _outFileHandle) {\n      if (data.length) {\n        [_outData appendData:data];\n      } else {\n        _outFileHandle = nil;\n      }\n    } else if (fileHandle == _errorFileHandle) {\n      if (data.length) {\n        [_errorData appendData:data];\n      } else {\n        _errorFileHandle = nil;\n      }\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n\n    if (data.length) {\n      [fileHandle waitForDataInBackgroundAndNotify];\n    }\n  }\n}\n\n- (BOOL)_runWithDefaultInterpreter:(BOOL)useSH arguments:(NSArray*)arguments stdin:(NSData*)stdin stdout:(NSData**)stdout stderr:(NSData**)stderr exitStatus:(int*)exitStatus error:(NSError**)error {\n  BOOL success = NO;\n  NSPipe* inPipe = nil;\n  NSPipe* outPipe = nil;\n  NSPipe* errorPipe = nil;\n  NSTimer* timer = nil;\n\n  NSTask* task = [[NSTask alloc] init];\n  task.launchPath = useSH ? @\"/bin/sh\" : _executablePath;\n  NSMutableDictionary* environment = [[NSMutableDictionary alloc] initWithDictionary:[[NSProcessInfo processInfo] environment]];\n  [environment addEntriesFromDictionary:_additionalEnvironment];\n  task.environment = environment;\n  task.currentDirectoryPath = _currentDirectoryPath ? _currentDirectoryPath : [[NSFileManager defaultManager] currentDirectoryPath];\n  NSArray* interpreterArguments = useSH ? @[ _executablePath ] : @[];\n  task.arguments = [interpreterArguments arrayByAddingObjectsFromArray:arguments];\n\n  if (stdin) {\n    inPipe = [[NSPipe alloc] init];\n    XLOG_DEBUG_CHECK(inPipe);\n    task.standardInput = inPipe;\n  }\n  if (stdout) {\n    outPipe = [[NSPipe alloc] init];\n    XLOG_DEBUG_CHECK(outPipe);\n    task.standardOutput = outPipe;\n  }\n  if (stderr) {\n    errorPipe = [[NSPipe alloc] init];\n    XLOG_DEBUG_CHECK(errorPipe);\n    task.standardError = errorPipe;\n  }\n\n  @try {\n    [task launch];\n  }\n  @catch (NSException* exception) {\n    GC_SET_GENERIC_ERROR(@\"%@\", exception.reason);\n    goto cleanup;\n  }\n\n  if (inPipe) {\n    NSFileHandle* fileHandle = inPipe.fileHandleForWriting;\n    @try {\n      [fileHandle writeData:stdin];\n      [fileHandle closeFile];\n    }\n    @catch (NSException* exception) {\n      [task terminate];\n      [task interrupt];\n      GC_SET_GENERIC_ERROR(@\"%@\", exception.reason);\n      goto cleanup;\n    }\n  }\n\n  if (_executionTimeOut > 0.0) {\n    timer = [[NSTimer alloc] initWithFireDate:[NSDate dateWithTimeIntervalSinceNow:_executionTimeOut] interval:0.0 target:self selector:@selector(_timer:) userInfo:task repeats:NO];\n    [[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];\n  }\n  if (outPipe) {\n    _outFileHandle = outPipe.fileHandleForReading;\n    _outData = [NSMutableData data];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_fileHandleDataAvailable:) name:NSFileHandleDataAvailableNotification object:_outFileHandle];\n    [_outFileHandle waitForDataInBackgroundAndNotify];\n    *stdout = _outData;\n  }\n  if (errorPipe) {\n    _errorFileHandle = errorPipe.fileHandleForReading;\n    _errorData = [NSMutableData data];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_fileHandleDataAvailable:) name:NSFileHandleDataAvailableNotification object:_errorFileHandle];\n    [_errorFileHandle waitForDataInBackgroundAndNotify];\n    *stderr = _errorData;\n  }\n  [task waitUntilExit];\n  while (_outFileHandle || _errorFileHandle) {\n    CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1.0, true);\n  }\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSFileHandleDataAvailableNotification object:nil];\n  [timer invalidate];\n  if (exitStatus) {\n    *exitStatus = task.terminationStatus;\n  } else if (task.terminationStatus) {\n    GC_SET_GENERIC_ERROR(@\"Non-zero exit status (%i)\", task.terminationStatus);\n    goto cleanup;\n  }\n  success = YES;\n\ncleanup:\n  if (inPipe) {\n    [inPipe.fileHandleForReading closeFile];\n    [inPipe.fileHandleForWriting closeFile];\n  }\n  if (outPipe) {\n    [outPipe.fileHandleForReading closeFile];\n    [outPipe.fileHandleForWriting closeFile];\n  }\n  if (errorPipe) {\n    [errorPipe.fileHandleForReading closeFile];\n    [errorPipe.fileHandleForWriting closeFile];\n  }\n  _outData = nil;\n  _errorData = nil;\n  return success;\n}\n\n- (BOOL)runWithArguments:(NSArray*)arguments stdin:(NSData*)stdin stdout:(NSData**)stdout stderr:(NSData**)stderr exitStatus:(int*)exitStatus error:(NSError**)error {\n  return [self _runWithDefaultInterpreter:NO arguments:arguments stdin:stdin stdout:stdout stderr:stderr exitStatus:exitStatus error:error] || (self.fallBackToDefaultInterpreter && [self _runWithDefaultInterpreter:YES arguments:arguments stdin:stdin stdout:stdout stderr:stderr exitStatus:exitStatus error:error]);\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Core/GCReference.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\n@interface GCReference : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) NSString* fullName;\n@property(nonatomic, readonly) NSString* name;\n@property(nonatomic, readonly, getter=isSymbolic) BOOL symbolic;\n@end\n\n@interface GCReference (Extensions)\n- (BOOL)isEqualToReference:(GCReference*)reference;\n- (NSComparisonResult)nameCompare:(GCReference*)reference;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCReference.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n#define kMaxReferenceNestingLevels 10  // Same as MAX_NESTING_LEVEL in libgit2 source\n\n@implementation GCReference {\n  __unsafe_unretained GCRepository* _repository;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository reference:(git_reference*)reference {\n  if ((self = [super init])) {\n    _repository = repository;\n    [self updateReference:reference];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_reference_free(_private);\n}\n\n- (void)updateReference:(git_reference*)reference {\n  git_reference_free(_private);\n  _private = reference;\n  _fullName = [NSString stringWithUTF8String:git_reference_name(reference)];\n  _name = [NSString stringWithUTF8String:git_reference_shorthand(reference)];\n}\n\n- (BOOL)isSymbolic {\n  return (git_reference_type(_private) == GIT_REF_SYMBOLIC);\n}\n\n- (NSComparisonResult)compareWithReference:(git_reference*)reference {\n  return strcmp(git_reference_name(_private), git_reference_name(reference));\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"[%@] %@ (%@)\", self.class, _fullName, _name];\n}\n\n@end\n\n@implementation GCReference (Extensions)\n\n- (NSUInteger)hash {\n  return _name.hash;\n}\n\n- (BOOL)isEqualToReference:(GCReference*)reference {\n  return (self == reference) || ([self compareWithReference:reference->_private] == NSOrderedSame);\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCReference class]]) {\n    return NO;\n  }\n  return [self isEqualToReference:object];\n}\n\n- (NSComparisonResult)nameCompare:(GCReference*)reference {\n  return [_name localizedStandardCompare:reference->_name];\n}\n\n@end\n\n@implementation GCRepository (GCReference_Private)\n\n- (id)findReferenceWithFullName:(NSString*)fullname class:(Class)class error:(NSError**)error {\n  XLOG_DEBUG_CHECK([class isSubclassOfClass:[GCReference class]]);\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reference_lookup, &reference, self.private, fullname.UTF8String);\n  return [[class alloc] initWithRepository:self reference:reference];\n}\n\n- (BOOL)refreshReference:(GCReference*)reference error:(NSError**)error {\n  git_reference* newReference;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reference_lookup, &newReference, self.private, git_reference_name(reference.private));\n  [reference updateReference:newReference];\n  return YES;\n}\n\n- (BOOL)enumerateReferencesWithOptions:(GCReferenceEnumerationOptions)options error:(NSError**)error usingBlock:(BOOL (^)(git_reference* reference))block {\n  BOOL success = NO;\n  git_reference_iterator* iterator = NULL;\n\n  if (options & kGCReferenceEnumerationOption_IncludeHEAD) {\n    git_reference* headReference;\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_lookup, &headReference, self.private, kHEADReferenceFullName);\n    BOOL result = block(headReference);\n    if (!(options & kGCReferenceEnumerationOption_RetainReferences)) {\n      git_reference_free(headReference);\n    }\n    if (!result) {\n      goto cleanup;\n    }\n  }\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_iterator_new, &iterator, self.private);\n  while (1) {\n    git_reference* reference;\n    int status = git_reference_next(&reference, iterator);\n    if (status == GIT_ITEROVER) {\n      break;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    BOOL result = block(reference);\n    if (!(options & kGCReferenceEnumerationOption_RetainReferences)) {\n      git_reference_free(reference);\n    }\n    if (!result) {\n      goto cleanup;\n    }\n  }\n  success = YES;\n\ncleanup:\n  git_reference_iterator_free(iterator);\n  return success;\n}\n\n- (BOOL)loadTargetOID:(git_oid*)oid fromReference:(git_reference*)reference error:(NSError**)error {\n  BOOL success = NO;\n  git_reference* resolvedReference = reference;\n\n  if (git_reference_type(reference) == GIT_REF_SYMBOLIC) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_resolve, &resolvedReference, reference);\n  }\n  XLOG_DEBUG_CHECK(git_reference_type(resolvedReference) == GIT_REF_OID);\n  git_oid_cpy(oid, git_reference_target(resolvedReference));\n  success = YES;\n\ncleanup:\n  if (resolvedReference != reference) {\n    git_reference_free(resolvedReference);\n  }\n  return success;\n}\n\n// Reimplementation of the SPI git_reference__update_for_commit()\n- (BOOL)setTargetOID:(const git_oid*)oid forReference:(git_reference*)reference reflogMessage:(NSString*)message newReference:(git_reference**)newReference error:(NSError**)error {\n  BOOL success = NO;\n  NSUInteger level = 0;\n  git_reference* currentReference = reference;\n  const char* referenceName = NULL;\n  git_reference* localNewReference = NULL;\n\n  while (1) {\n    if (git_reference_type(currentReference) == GIT_REF_OID) {\n      referenceName = git_reference_name(currentReference);\n      break;\n    }\n\n    XLOG_DEBUG_CHECK(git_reference_type(currentReference) == GIT_REF_SYMBOLIC);\n    const char* targetName = git_reference_symbolic_target(currentReference);\n    git_reference* targetReference;\n    int status = git_reference_lookup(&targetReference, self.private, targetName);\n    if (status == GIT_ENOTFOUND) {\n      referenceName = targetName;\n      break;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    if (currentReference != reference) {\n      git_reference_free(currentReference);\n    }\n    currentReference = targetReference;\n\n    ++level;\n    if (level > kMaxReferenceNestingLevels) {\n      GC_SET_GENERIC_ERROR(@\"Too many reference nesting levels\");\n      break;\n    }\n  }\n  if (referenceName) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_create, &localNewReference, self.private, referenceName, oid, true, message.UTF8String);  // This actually calls git_reference_create_matching() passing NULL for \"current_id\"\n    success = YES;\n  }\n\ncleanup:\n  if (success && newReference) {\n    *newReference = localNewReference;\n    localNewReference = NULL;\n  }\n  git_reference_free(localNewReference);\n  if (currentReference != reference) {\n    git_reference_free(currentReference);\n  }\n  return success;\n}\n\n- (GCReference*)createDirectReferenceWithFullName:(NSString*)name target:(GCObject*)target force:(BOOL)force error:(NSError**)error {\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reference_create, &reference, self.private, name.UTF8String, git_object_id(target.private), force, NULL);\n  return [[GCReference alloc] initWithRepository:self reference:reference];\n}\n\n- (GCReference*)createSymbolicReferenceWithFullName:(NSString*)name target:(NSString*)target force:(BOOL)force error:(NSError**)error {\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reference_symbolic_create, &reference, self.private, name.UTF8String, target.UTF8String, force, NULL);\n  return [[GCReference alloc] initWithRepository:self reference:reference];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCReferenceTransform.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\n@class GCObject, GCCommit;\n\n@interface GCReferenceTransform : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly, getter=isIdentity) BOOL identity;  // Transform is empty and does nothing\n- (instancetype)initWithRepository:(GCRepository*)repository reflogMessage:(NSString*)message;\n- (void)setSymbolicTarget:(NSString*)target forReference:(GCReference*)reference;\n- (void)setDirectTarget:(GCObject*)target forReference:(GCReference*)reference;\n- (void)deleteReference:(GCReference*)reference;\n- (void)setSymbolicTargetForHEAD:(NSString*)target;\n- (void)setDirectTargetForHEAD:(GCObject*)target;\n@end\n\n@interface GCRepository (GCReferenceTransform)\n- (BOOL)applyReferenceTransform:(GCReferenceTransform*)transform error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCReferenceTransform.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\ntypedef struct {\n  const char* referenceName;\n  const char* targetName;\n  git_oid targetOID;\n} Operation;\n\nstatic void _ArrayReleaseCallBack(CFAllocatorRef allocator, const void* value) {\n  const Operation* operation = (const Operation*)value;\n  free((void*)operation->referenceName);\n  if (operation->targetName) {\n    free((void*)operation->targetName);\n  }\n  free((void*)operation);\n}\n\nstatic Boolean _ArrayEqualCallBack(const void* value1, const void* value2) {\n  const Operation* operation1 = (const Operation*)value1;\n  const Operation* operation2 = (const Operation*)value2;\n  return !strcmp(operation1->referenceName, operation2->referenceName);\n}\n\n@implementation GCReferenceTransform {\n  __unsafe_unretained GCRepository* _repository;\n  NSString* _message;\n  CFMutableArrayRef _operations;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository reflogMessage:(NSString*)message {\n  if ((self = [super init])) {\n    _repository = repository;\n    _message = message;\n    CFArrayCallBacks callbacks = {0, NULL, _ArrayReleaseCallBack, NULL, _ArrayEqualCallBack};\n    _operations = CFArrayCreateMutable(kCFAllocatorDefault, 0, &callbacks);\n  }\n  return self;\n}\n\n- (void)dealloc {\n  CFRelease(_operations);\n}\n\n- (BOOL)isIdentity {\n  return CFArrayGetCount(_operations) == 0;\n}\n\n- (void)_addOperation:(Operation*)operation {\n  CFIndex index = CFArrayGetFirstIndexOfValue(_operations, CFRangeMake(0, CFArrayGetCount(_operations)), operation);\n  if (index == kCFNotFound) {\n    CFArrayAppendValue(_operations, operation);\n  } else {\n    CFArrayReplaceValues(_operations, CFRangeMake(index, 1), (const void**)&operation, 1);\n  }\n}\n\n- (void)setSymbolicTarget:(const char*)target forReferenceWithName:(const char*)name {\n  Operation* operation = calloc(1, sizeof(Operation));\n  operation->referenceName = strdup(name);\n  operation->targetName = strdup(target);\n  [self _addOperation:operation];\n}\n\n- (void)setSymbolicTarget:(NSString*)target forReference:(GCReference*)reference {\n  [self setSymbolicTarget:target.UTF8String forReferenceWithName:git_reference_name(reference.private)];\n}\n\n- (void)setDirectTarget:(const git_oid*)oid forReferenceWithName:(const char*)name {\n  Operation* operation = calloc(1, sizeof(Operation));\n  operation->referenceName = strdup(name);\n  git_oid_cpy(&operation->targetOID, oid);\n  [self _addOperation:operation];\n}\n\n- (void)setDirectTarget:(GCObject*)target forReference:(GCReference*)reference {\n  [self setDirectTarget:git_object_id(target.private) forReferenceWithName:git_reference_name(reference.private)];\n}\n\n- (void)deleteReferenceWithName:(const char*)name {\n  Operation* operation = calloc(1, sizeof(Operation));\n  operation->referenceName = strdup(name);\n  [self _addOperation:operation];\n}\n\n- (void)deleteReference:(GCReference*)reference {\n  [self deleteReferenceWithName:git_reference_name(reference.private)];\n}\n\n- (void)setSymbolicTargetForHEAD:(NSString*)target {\n  [self setSymbolicTarget:target.UTF8String forReferenceWithName:kHEADReferenceFullName];\n}\n\n- (void)setDirectTargetForHEAD:(GCObject*)target {\n  [self setDirectTarget:git_object_id(target.private) forReferenceWithName:kHEADReferenceFullName];\n}\n\n- (BOOL)apply:(NSError**)error {\n  BOOL success = NO;\n  git_transaction* transaction = NULL;\n  const char* message = _message.UTF8String;\n\n  // Apply transform\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_transaction_new, &transaction, _repository.private);\n  for (CFIndex i = 0; i < CFArrayGetCount(_operations); ++i) {\n    const Operation* operation = CFArrayGetValueAtIndex(_operations, i);\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_transaction_lock_ref, transaction, operation->referenceName);\n    if (operation->targetName) {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_transaction_set_symbolic_target, transaction, operation->referenceName, operation->targetName, NULL, message);\n    } else if (!git_oid_iszero(&operation->targetOID)) {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_transaction_set_target, transaction, operation->referenceName, &operation->targetOID, NULL, message);\n    } else {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_transaction_remove, transaction, operation->referenceName);\n    }\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_transaction_commit, transaction);\n  success = YES;\n\ncleanup:\n  git_transaction_free(transaction);\n  return success;\n}\n\n- (NSString*)description {\n  NSMutableString* string = [[NSMutableString alloc] initWithFormat:@\"%@ with %li operations\", self.class, CFArrayGetCount(_operations)];\n  for (CFIndex i = 0; i < CFArrayGetCount(_operations); ++i) {\n    const Operation* operation = CFArrayGetValueAtIndex(_operations, i);\n    if (operation->targetName) {\n      [string appendFormat:@\"\\n  %s -> %s\", operation->referenceName, operation->targetName];\n    } else if (!git_oid_iszero(&operation->targetOID)) {\n      [string appendFormat:@\"\\n  %s -> %s\", operation->referenceName, git_oid_tostr_s(&operation->targetOID)];\n    } else {\n      [string appendFormat:@\"\\n  %s -> (NULL)\", operation->referenceName];\n    }\n  }\n  return string;\n}\n\n@end\n\n@implementation GCRepository (GCReferenceTransform)\n\n- (BOOL)applyReferenceTransform:(GCReferenceTransform*)transform error:(NSError**)error {\n  return [transform apply:error];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCReflogMessages.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n/***** These reflog messages are the ones used by Git as of version 1.9.3 *****/\n\n#define kGCReflogMessagePrefix_Git_Checkout \"checkout: \"\n#define kGCReflogMessageFormat_Git_Checkout @kGCReflogMessagePrefix_Git_Checkout \"moving from %@ to %@\"\n\n#define kGCReflogMessagePrefix_Git_Commit \"commit: \"\n#define kGCReflogMessageFormat_Git_Commit @kGCReflogMessagePrefix_Git_Commit \"%@\"\n\n#define kGCReflogMessagePrefix_Git_Commit_Initial \"commit (initial): \"\n#define kGCReflogMessageFormat_Git_Commit_Initial @kGCReflogMessagePrefix_Git_Commit_Initial \"%@\"\n\n#define kGCReflogMessagePrefix_Git_Commit_Amend \"commit (amend): \"\n#define kGCReflogMessageFormat_Git_Commit_Amend @kGCReflogMessagePrefix_Git_Commit_Amend \"%@\"\n\n#define kGCReflogMessagePrefix_Git_Branch_Created \"branch: Created \"\n#define kGCReflogMessageFormat_Git_Branch_Created @kGCReflogMessagePrefix_Git_Branch_Created \"from %@\"\n\n#define kGCReflogMessagePrefix_Git_Branch_Renamed \"Branch: renamed \"\n#define kGCReflogMessageFormat_Git_Branch_Renamed @kGCReflogMessagePrefix_Git_Branch_Renamed \"%@ to %@\"\n\n#define kGCReflogMessagePrefix_Git_Revert \"revert: \"\n#define kGCReflogMessageFormat_Git_Revert @kGCReflogMessagePrefix_Git_Revert \"Revert \\\"%@\\\"\"\n\n#define kGCReflogMessagePrefix_Git_Merge \"merge \"\n#define kGCReflogMessageFormat_Git_Merge @kGCReflogMessagePrefix_Git_Merge \"%@: Merge made by the 'recursive' strategy.\"\n#define kGCReflogMessageFormat_Git_Merge_FastForward @kGCReflogMessagePrefix_Git_Merge \"%@: Fast-forward\"\n\n#define kGCReflogMessagePrefix_Rebase \"rebase\"  // Could be \"rebase: \" or \"rebase finished: \" and maybe more\n\n#define kGCReflogMessagePrefix_Git_CherryPick \"cherry-pick: \"\n#define kGCReflogMessageFormat_Git_CherryPick @kGCReflogMessagePrefix_Git_CherryPick \"%@\"\n\n#define kGCReflogMessagePrefix_Git_Reset \"reset: \"\n#define kGCReflogMessageFormat_Git_Reset @kGCReflogMessagePrefix_Git_Reset \"moving to %@\"\n\n#define kGCReflogMessagePrefix_Git_Fetch \"fetch \"\n#define kGCReflogMessageFormat_Git_Fetch @kGCReflogMessagePrefix_Git_Fetch \"%@\"\n\n#define kGCReflogMessagePrefix_Git_Push \"push \"\n#define kGCReflogMessageFormat_Git_Push @kGCReflogMessagePrefix_Git_Push \"%@\"\n\n#define kGCReflogMessagePrefix_Git_Pull \"pull: \"\n\n#define kGCReflogMessagePrefix_Git_Clone \"clone: \"\n\n/***** These reflog messages are used by GitUp *****/\n\n#define kGCReflogCustomPrefix \"[gitup] \"\n\n#define kGCReflogMessageFormat_GitUp_Merge @kGCReflogCustomPrefix @\"merge %@\"\n#define kGCReflogMessageFormat_GitUp_Merge_FastForward @kGCReflogCustomPrefix \"merge %@: Fast-forward\"\n#define kGCReflogMessageFormat_GitUp_Rebase @kGCReflogCustomPrefix @\"rebase %@ onto %@\"\n#define kGCReflogMessageFormat_GitUp_Swap @kGCReflogCustomPrefix @\"swap %@ with parent %@\"\n#define kGCReflogMessageFormat_GitUp_RestoreSnapshot @kGCReflogCustomPrefix @\"restore snapshot\"\n#define kGCReflogMessageFormat_GitUp_Rewrite @kGCReflogCustomPrefix @\"rewrite %@\"\n#define kGCReflogMessageFormat_GitUp_Delete @kGCReflogCustomPrefix @\"delete %@\"\n#define kGCReflogMessageFormat_GitUp_Squash @kGCReflogCustomPrefix @\"squash %@\"\n#define kGCReflogMessageFormat_GitUp_Fixup @kGCReflogCustomPrefix @\"fixup %@\"\n#define kGCReflogMessageFormat_GitUp_Revert @kGCReflogCustomPrefix @\"revert %@\"\n#define kGCReflogMessageFormat_GitUp_CherryPick @kGCReflogCustomPrefix @\"cherry-pick %@\"\n#define kGCReflogMessageFormat_GitUp_SetTip @kGCReflogCustomPrefix @\"set tip\"\n#define kGCReflogMessageFormat_GitUp_MoveTip @kGCReflogCustomPrefix @\"move tip\"\n\n// #define kGCReflogMessageFormat_GitUp_HardReset @kGCReflogCustomPrefix @\"hard reset for '%@'\"\n#define kGCReflogMessageFormat_GitUp_Undo @kGCReflogCustomPrefix @\"undo '%@'\"\n#define kGCReflogMessageFormat_GitUp_Redo @kGCReflogCustomPrefix @\"redo '%@'\"\n"
  },
  {
    "path": "GitUpKit/Core/GCRemote-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCRemote)\n\n// TODO: Test -setPushURL:forRemote:error:\n// TODO: Test -fetchRemoteBranch:tagMode:force:error:\n// TODO: Test -fetchDefaultRemoteBranchesFromRemote:tagMode:prune:error:\n// -cloneUsingRemote:error: is tested elsewhere\n- (void)testRemotes {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create bare local repo\n  GCRepository* bare = [self createLocalRepositoryAtPath:path bare:YES];\n  XCTAssertNotNil(bare);\n\n  // Check remotes\n  XCTAssertEqualObjects([self.repository listRemotes:NULL], @[]);\n\n  // Add a fake remote\n  GCRemote* remote = [self.repository addRemoteWithName:@\"origin\" url:GCURLFromGitURL(@\"git@github.com:swisspol/SANDBOX.git\") error:NULL];\n  XCTAssertNotNil(remote);\n  XCTAssertEqualObjects(remote.name, @\"origin\");\n  XCTAssertEqualObjects(remote.URL, GCURLFromGitURL(@\"git@github.com:swisspol/SANDBOX.git\"));\n  XCTAssertNil(remote.pushURL);\n  XCTAssertEqualObjects([self.repository lookupRemoteWithName:@\"origin\" error:NULL], remote);\n  XCTAssertEqualObjects([self.repository listRemotes:NULL], @[ remote ]);\n  NSString* output1 = [NSString stringWithFormat:@\"origin\\t%@ (fetch)\\norigin\\t%@ (push)\\n\", @\"git@github.com:swisspol/SANDBOX.git\", @\"git@github.com:swisspol/SANDBOX.git\"];\n  [self assertGitCLTOutputEqualsString:output1 withRepository:self.repository command:@\"remote\", @\"-v\", nil];\n\n  // Reconfigure remote to point to local bare repo\n  XCTAssertTrue([self.repository setURL:[NSURL fileURLWithPath:path] forRemote:remote error:NULL]);\n  XCTAssertTrue([self.repository setName:@\"backup\" forRemote:remote error:NULL]);\n  XCTAssertNil(remote.pushURL);\n\n  // Fetch from remote\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:NO updatedTips:NULL error:NULL]);\n  XCTAssertEqualObjects([self.repository listRemoteBranches:NULL], @[]);\n  XCTAssertNil([self.repository findRemoteBranchWithName:@\"backup/master\" error:NULL]);\n\n  // Push to remote\n  XCTAssertTrue([self.repository pushAllLocalBranchesToRemote:remote force:NO setUpstream:NO error:NULL]);\n  NSString* string1 = [self runGitCLTWithRepository:bare command:@\"branch\", @\"-avv\", nil];\n  NSString* string2 = [NSString stringWithFormat:@\"* master %@ Initial commit\\n\", [self.repository computeUniqueShortSHA1ForCommit:self.initialCommit error:NULL]];\n  XCTAssertEqualObjects(string1, string2);\n  GCRemoteBranch* remoteMasterBranch = [self.repository findRemoteBranchWithName:@\"backup/master\" error:NULL];\n  XCTAssertNotNil(remoteMasterBranch);\n  XCTAssertEqualObjects([self.repository listRemoteBranches:NULL], @[ remoteMasterBranch ]);\n  NSString* name;\n  XCTAssertEqualObjects([self.repository lookupRemoteForRemoteBranch:remoteMasterBranch sourceBranchName:&name error:NULL], remote);\n  XCTAssertEqualObjects(name, @\"master\");\n  XCTAssertNil([self.repository lookupUpstreamForLocalBranch:self.masterBranch error:NULL]);\n\n  // Configure local branch to track remote one\n  XCTAssertTrue([self.repository setUpstream:remoteMasterBranch forLocalBranch:self.masterBranch error:NULL]);\n  XCTAssertEqualObjects([self.repository lookupUpstreamForLocalBranch:self.masterBranch error:NULL], remoteMasterBranch);\n  NSString* output2 = [NSString stringWithFormat:@\"* master                %@ [backup/master] Initial commit\\n  remotes/backup/master %@ Initial commit\\n\",\n                                                 [self.repository computeUniqueShortSHA1ForCommit:self.initialCommit\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:self.initialCommit\n                                                                                            error:NULL]];\n  [self assertGitCLTOutputEqualsString:output2 withRepository:self.repository command:@\"branch\", @\"-avv\", nil];\n\n  // Make a commit\n  GCCommit* commit1 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Bonjour le monde!\\n\" message:@\"French\"];\n\n  // Unset upstream on master branch\n  XCTAssertTrue([self.repository unsetUpstreamForLocalBranch:self.masterBranch error:NULL]);\n  XCTAssertNil([self.repository lookupUpstreamForLocalBranch:self.masterBranch error:NULL]);\n\n  // Create topic branch and check it out\n  GCLocalBranch* topicBranch = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n\n  // Make a commit\n  GCCommit* commit2 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Guten Tag Welt!\\n\" message:@\"German\"];\n\n  // Push topic branch and set upstream automatically\n  XCTAssertNil([self.repository lookupUpstreamForLocalBranch:topicBranch error:NULL]);\n  XCTAssertTrue([self.repository pushLocalBranch:topicBranch toRemote:remote force:NO setUpstream:YES error:NULL]);\n  XCTAssertNotNil([self.repository lookupUpstreamForLocalBranch:topicBranch error:NULL]);\n\n  // Push all branches and set all upstreams automatically\n  XCTAssertTrue([self.repository pushAllLocalBranchesToRemote:remote force:NO setUpstream:YES error:NULL]);\n  XCTAssertNotNil([self.repository lookupUpstreamForLocalBranch:self.masterBranch error:NULL]);\n  NSString* output3 = [NSString stringWithFormat:@\"\\\n  master                %@ [backup/master] French\\n\\\n* topic                 %@ [backup/topic] German\\n\\\n  remotes/backup/master %@ French\\n\\\n  remotes/backup/topic  %@ German\\n\\\n\",\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit1\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit2\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit1\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit2\n                                                                                            error:NULL]];\n  [self assertGitCLTOutputEqualsString:output3 withRepository:self.repository command:@\"branch\", @\"-avv\", nil];\n\n  // Checkout master branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n\n  // Delete topic branch\n  XCTAssertTrue([self.repository deleteLocalBranch:topicBranch error:NULL]);\n  XCTAssertEqualObjects([self.repository listLocalBranches:NULL], @[ self.masterBranch ]);\n  XCTAssertNil([self.repository findLocalBranchWithName:@\"topic\" error:NULL]);\n\n  // Remove remote\n  XCTAssertTrue([self.repository removeRemote:remote error:NULL]);\n  XCTAssertEqualObjects([self.repository listRemotes:NULL], @[]);\n  NSString* output4 = [NSString stringWithFormat:@\"* master %@ French\\n\", [self.repository computeUniqueShortSHA1ForCommit:commit1 error:NULL]];\n  [self assertGitCLTOutputEqualsString:output4 withRepository:self.repository command:@\"branch\", @\"-avv\", nil];\n  XCTAssertNil([self.repository lookupUpstreamForLocalBranch:self.masterBranch error:NULL]);\n\n  // Re-add remote and fetch again\n  remote = [self.repository addRemoteWithName:@\"backup\" url:[NSURL fileURLWithPath:path] error:NULL];\n  XCTAssertNotNil(remote);\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:NO updatedTips:NULL error:NULL]);\n\n  // Verify topic branch is back\n  GCRemoteBranch* remoteTopicBranch = [self.repository findRemoteBranchWithName:@\"backup/topic\" error:NULL];\n  XCTAssertNotNil(remoteTopicBranch);\n  topicBranch = [self.repository createLocalBranchFromCommit:[self.repository lookupTipCommitForBranch:remoteTopicBranch error:NULL] withName:remoteTopicBranch.branchName force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n  XCTAssertTrue([self.repository setUpstream:remoteTopicBranch forLocalBranch:topicBranch error:NULL]);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n  NSString* output5 = [NSString stringWithFormat:@\"\\\n  master                %@ French\\n\\\n* topic                 %@ [backup/topic] German\\n\\\n  remotes/backup/master %@ French\\n\\\n  remotes/backup/topic  %@ German\\n\\\n\",\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit1\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit2\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit1\n                                                                                            error:NULL],\n                                                 [self.repository computeUniqueShortSHA1ForCommit:commit2\n                                                                                            error:NULL]];\n  [self assertGitCLTOutputEqualsString:output5 withRepository:self.repository command:@\"branch\", @\"-avv\", nil];\n\n  // Checkout master branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n\n  // Delete topic branch on the remote\n  XCTAssertNotNil([bare findLocalBranchWithName:@\"topic\" error:NULL]);\n  XCTAssertNotNil([self.repository findRemoteBranchWithName:@\"backup/topic\" error:NULL]);\n  XCTAssertTrue([self.repository deleteRemoteBranchFromRemote:remoteTopicBranch error:NULL]);\n  XCTAssertNil([bare findRemoteBranchWithName:@\"topic\" error:NULL]);\n  XCTAssertNil([self.repository findRemoteBranchWithName:@\"backup/topic\" error:NULL]);\n\n  // Push again to recreate branch\n  XCTAssertTrue([self.repository pushAllLocalBranchesToRemote:remote force:NO setUpstream:YES error:NULL]);\n\n  // Delete topic branch directly on remote repo\n  NSString* output6 = [self runGitCLTWithRepository:bare command:@\"branch\", @\"-D\", @\"topic\", nil];\n  XCTAssertNotNil(output6);\n\n  // Fetch again\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:YES updatedTips:NULL error:NULL]);\n  XCTAssertNil([self.repository findRemoteBranchWithName:@\"backup/topic\" error:NULL]);\n\n  // Make another commit\n  GCCommit* commit3 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Gutten Tag Welt!\\n\" message:@\"German\"];\n\n  // Create tags and push to remote\n  XCTAssertTrue([self.repository createLightweightTagWithCommit:self.initialCommit name:@\"FIRST\" force:NO error:NULL]);\n  XCTAssertTrue([self.repository createLightweightTagWithCommit:commit3 name:@\"LAST\" force:NO error:NULL]);\n  XCTAssertTrue([self.repository pushAllTagsToRemote:remote force:NO error:NULL]);\n  NSString* output7 = [self runGitCLTWithRepository:bare command:@\"tag\", nil];\n  XCTAssertEqualObjects(output7, @\"FIRST\\nLAST\\n\");\n\n  // Delete tag in remote\n  XCTAssertTrue([self.repository deleteTag:[self.repository findTagWithName:@\"FIRST\" error:NULL] fromRemote:remote error:NULL]);\n  NSString* output8 = [self runGitCLTWithRepository:bare command:@\"tag\", nil];\n  XCTAssertEqualObjects(output8, @\"LAST\\n\");\n\n  // Delete tags locally\n  XCTAssertTrue([self.repository deleteTag:[self.repository findTagWithName:@\"FIRST\" error:NULL] error:NULL]);\n  XCTAssertTrue([self.repository deleteTag:[self.repository findTagWithName:@\"LAST\" error:NULL] error:NULL]);\n  XCTAssertEqualObjects([self.repository listTags:NULL], @[]);\n\n  // Fetch again\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_All prune:NO updatedTips:NULL error:NULL]);\n  XCTAssertNotNil([self.repository findTagWithName:@\"LAST\" error:NULL]);\n\n  // Delete tag locally\n  XCTAssertTrue([self.repository deleteTag:[self.repository findTagWithName:@\"LAST\" error:NULL] error:NULL]);\n\n  // Fetch again but tags only this time\n  XCTAssertNotNil([self.repository fetchTagsFromRemote:remote prune:NO updatedTips:NULL error:NULL]);\n  XCTAssertNotNil([self.repository findTagWithName:@\"LAST\" error:NULL]);\n\n  // Force push overriden tag\n  GCTag* tag1 = [self.repository createLightweightTagWithCommit:self.initialCommit name:@\"LAST\" force:YES error:NULL];\n  XCTAssertNotNil(tag1);\n  XCTAssertFalse([self.repository pushTag:tag1 toRemote:remote force:NO error:NULL]);\n  XCTAssertTrue([self.repository pushTag:tag1 toRemote:remote force:YES error:NULL]);\n\n  // Push single annotated tag\n  GCTag* tag2 = [self.repository createAnnotatedTagWithCommit:commit2 name:@\"ANNOTATED\" message:@\"Nothing to see here\" force:NO annotation:NULL error:NULL];\n  XCTAssertNotNil(tag2);\n  XCTAssertTrue([self.repository pushTag:tag2 toRemote:remote force:NO error:NULL]);\n  NSString* output9 = [self runGitCLTWithRepository:bare command:@\"tag\", nil];\n  XCTAssertEqualObjects(output9, @\"ANNOTATED\\nLAST\\n\");\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 0);\n\n  // Make a commit directly on remote\n  XCTAssertNotNil([bare createCommitFromHEADWithMessage:@\"EMPTY\" error:NULL]);\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 1);\n\n  // Fetch again\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:YES updatedTips:NULL error:NULL]);\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 0);\n\n  // Create branch directly on remote\n  GCLocalBranch* remoteBranch = [bare createLocalBranchFromCommit:[bare lookupHEAD:NULL error:NULL] withName:@\"remote\" force:NO error:NULL];\n  XCTAssertNotNil(remoteBranch);\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 1);\n\n  // Fetch again\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:YES updatedTips:NULL error:NULL]);\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 0);\n\n  // Delete branch directly on remote\n  XCTAssertTrue([bare deleteLocalBranch:remoteBranch error:NULL]);\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 1);\n\n  // Fetch again\n  XCTAssertTrue([self.repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:kGCFetchTagMode_None prune:YES updatedTips:NULL error:NULL]);\n\n  // Check for remote changes\n  XCTAssertEqual([self.repository checkForChangesInRemote:remote withOptions:kGCRemoteCheckOption_IncludeBranches error:NULL], 0);\n\n  // Destroy bare local repo\n  [self destroyLocalRepository:bare];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRemote.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_ENUM(NSUInteger, GCFetchTagMode) {\n  kGCFetchTagMode_Automatic = 0,\n  kGCFetchTagMode_None,\n  kGCFetchTagMode_All\n};\n\ntypedef NS_OPTIONS(NSUInteger, GCRemoteCheckOptions) {\n  kGCRemoteCheckOption_IncludeBranches = (1 << 0),\n  kGCRemoteCheckOption_IncludeTags = (1 << 1)\n};\n\n@interface GCRemote : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) NSString* name;\n@property(nonatomic, readonly) NSURL* URL;  // May be nil\n@property(nonatomic, readonly) NSURL* pushURL;  // May be nil (if so libgit2 falls back to using URL)\n@end\n\n@interface GCRemote (Extensions)\n- (BOOL)isEqualToRemote:(GCRemote*)remote;\n- (NSComparisonResult)nameCompare:(GCRemote*)remote;\n@end\n\n@interface GCRepository (GCRemote)\n- (NSArray*)listRemotes:(NSError**)error;  // git remote -v\n- (GCRemote*)lookupRemoteWithName:(NSString*)name error:(NSError**)error;  // git remote -v\n\n- (GCRemote*)addRemoteWithName:(NSString*)name url:(NSURL*)url error:(NSError**)error;  // git remote add {name} {url}\n- (BOOL)setName:(NSString*)name forRemote:(GCRemote*)remote error:(NSError**)error;  // git remote rename {remote} {new name}\n- (BOOL)setURL:(NSURL*)url forRemote:(GCRemote*)remote error:(NSError**)error;  // git remote set-url {remote} {new URL}\n- (BOOL)setPushURL:(NSURL*)url forRemote:(GCRemote*)remote error:(NSError**)error;  // git remote set-url --push {remote} {new URL} - Pass nil to clear\n- (BOOL)removeRemote:(GCRemote*)remote error:(NSError**)error;  // git remote remove {remote}\n\n- (BOOL)checkForChangesInRemote:(GCRemote*)remote\n                    withOptions:(GCRemoteCheckOptions)options\n                addedReferences:(NSDictionary**)addedReferences  // Full-names / SHA1s\n             modifiedReferences:(NSDictionary**)modifiedReferences  // Full-names / SHA1s\n              deletedReferences:(NSDictionary**)deletedReferences  // Full-names / SHA1s\n                          error:(NSError**)error;\n\n- (BOOL)fetchRemoteBranch:(GCRemoteBranch*)branch tagMode:(GCFetchTagMode)mode updatedTips:(NSUInteger*)updatedTips error:(NSError**)error;  // git fetch {-n|-t} {-p} {remote} 'refs/heads/{branch}:refs/remotes/{remote}/{branch}'\n- (BOOL)fetchDefaultRemoteBranchesFromRemote:(GCRemote*)remote tagMode:(GCFetchTagMode)mode prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error;  // git fetch {-n|-t} {-p} {remote}\n- (NSArray*)fetchTagsFromRemote:(GCRemote*)remote prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error;  // git fetch {remote} 'refs/tags/*:refs/tags/*' - Returns the tags in the remote\n\n- (BOOL)pushLocalBranchToUpstream:(GCLocalBranch*)branch force:(BOOL)force usedRemote:(GCRemote**)usedRemote error:(NSError**)error;  // git push\n- (BOOL)pushLocalBranch:(GCLocalBranch*)branch toRemote:(GCRemote*)remote force:(BOOL)force setUpstream:(BOOL)setUpstream error:(NSError**)error;  // git push {-f} {-u} {remote} 'refs/heads/{branch}:refs/heads/{branch}'\n- (BOOL)pushTag:(GCTag*)tag toRemote:(GCRemote*)remote force:(BOOL)force error:(NSError**)error;  // git push {-f} {remote} 'refs/tags/{tag}:refs/tags/{tag}'\n- (BOOL)pushAllLocalBranchesToRemote:(GCRemote*)remote force:(BOOL)force setUpstream:(BOOL)setUpstream error:(NSError**)error;  // git push {-f} {-u} {remote} 'refs/heads/*:refs/heads/*'\n- (BOOL)pushAllTagsToRemote:(GCRemote*)remote force:(BOOL)force error:(NSError**)error;  // git push {-f} {remote} 'refs/tags/*:refs/tags/*'\n\n- (BOOL)deleteRemoteBranchFromRemote:(GCRemoteBranch*)branch error:(NSError**)error;  // git push {remote} ':refs/heads/{branch}'\n- (BOOL)deleteTag:(GCTag*)tag fromRemote:(GCRemote*)remote error:(NSError**)error;  // git push {remote} ':refs/tags/{tag}'\n\n- (GCRemote*)lookupRemoteForRemoteBranch:(GCRemoteBranch*)branch sourceBranchName:(NSString**)name error:(NSError**)error;  // git branch -avv\n\n- (BOOL)cloneUsingRemote:(GCRemote*)remote recursive:(BOOL)recursive error:(NSError**)error;  // (?) - Requires repository to be empty\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRemote.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n// SPIs from libgit2\nextern int git_reference__is_branch(const char* ref_name);\nextern int git_reference__is_remote(const char* ref_name);\nextern int git_reference__is_tag(const char* ref_name);\n\n@implementation GCRemote {\n  __unsafe_unretained GCRepository* _repository;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository remote:(git_remote*)remote {\n  if ((self = [super init])) {\n    _repository = repository;\n    [self _updateRemote:remote];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_remote_free(_private);\n}\n\n- (void)_updateRemote:(git_remote*)remote {\n  git_remote_free(_private);\n  _private = remote;\n  [self _reload];\n}\n\n- (void)_reload {\n  _name = [NSString stringWithUTF8String:git_remote_name(_private)];\n\n  const char* URL = git_remote_url(_private);\n  if (URL) {\n    _URL = GCURLFromGitURL([NSString stringWithUTF8String:URL]);\n  } else {\n    _URL = nil;\n  }\n\n  const char* pushURL = git_remote_pushurl(_private);\n  if (pushURL) {\n    _pushURL = GCURLFromGitURL([NSString stringWithUTF8String:pushURL]);\n  } else {\n    _pushURL = nil;\n  }\n}\n\n- (NSComparisonResult)compareWithRemote:(git_remote*)remote {\n  return strcmp(git_remote_name(_private), git_remote_name(remote));\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"[%@] %@ (%@)\", self.class, _name, GCGitURLFromURL(_URL)];\n}\n\n@end\n\n@implementation GCRemote (Extensions)\n\n- (NSUInteger)hash {\n  return _name.hash;\n}\n\n- (BOOL)isEqualToRemote:(GCRemote*)remote {\n  return (self == remote) || ([self compareWithRemote:remote.private] == NSOrderedSame);\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isMemberOfClass:[GCRemote class]]) {\n    return NO;\n  }\n  return [self isEqualToRemote:object];\n}\n\n- (NSComparisonResult)nameCompare:(GCRemote*)remote {\n  return [_name localizedStandardCompare:remote->_name];\n}\n\n@end\n\n@implementation GCRepository (GCRemote)\n\n#pragma mark - Browsing\n\n- (NSArray*)listRemotes:(NSError**)error {\n  NSMutableArray* array = nil;\n  git_strarray names = {0};\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_list, &names, self.private);\n  array = [[NSMutableArray alloc] init];\n  for (size_t i = 0; i < names.count; ++i) {\n    git_remote* loadedRemote;\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_lookup, &loadedRemote, self.private, names.strings[i]);\n    GCRemote* remote = [[GCRemote alloc] initWithRepository:self remote:loadedRemote];\n    [array addObject:remote];\n  }\n\ncleanup:\n  git_strarray_free(&names);\n  return array;\n}\n\n- (GCRemote*)lookupRemoteWithName:(NSString*)name error:(NSError**)error {\n  git_remote* remote;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_remote_lookup, &remote, self.private, name.UTF8String);\n  return [[GCRemote alloc] initWithRepository:self remote:remote];\n}\n\n#pragma mark - Operations\n\n- (GCRemote*)addRemoteWithName:(NSString*)name url:(NSURL*)url error:(NSError**)error {\n  git_remote* remote;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_remote_create, &remote, self.private, name.UTF8String, GCGitURLFromURL(url).UTF8String);\n  return [[GCRemote alloc] initWithRepository:self remote:remote];\n}\n\n- (BOOL)setName:(NSString*)name forRemote:(GCRemote*)remote error:(NSError**)error {\n  const char* nameUTF8 = name.UTF8String;\n  git_strarray problems;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_remote_rename, &problems, self.private, git_remote_name(remote.private), nameUTF8);\n  XLOG_DEBUG_CHECK(problems.count == 0);  // TODO: What should we do in case of problems?\n  git_strarray_free(&problems);\n  git_remote* newRemote;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_remote_lookup, &newRemote, self.private, nameUTF8);\n  [remote _updateRemote:newRemote];\n  return YES;\n}\n\n- (BOOL)setURL:(NSURL*)url forRemote:(GCRemote*)remote error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_remote_set_url, self.private, git_remote_name(remote.private), GCGitURLFromURL(url).UTF8String);\n  [remote _reload];\n  return YES;\n}\n\n- (BOOL)setPushURL:(NSURL*)url forRemote:(GCRemote*)remote error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_remote_set_pushurl, self.private, git_remote_name(remote.private), GCGitURLFromURL(url).UTF8String);\n  [remote _reload];\n  return YES;\n}\n\n- (BOOL)removeRemote:(GCRemote*)remote error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_remote_delete, self.private, git_remote_name(remote.private));\n  return YES;\n}\n\n#pragma mark - Transfer\n\n- (NSUInteger)_transfer:(git_direction)direction withRemote:(git_remote*)remote refspecs:(const char**)refspecs count:(size_t)count tagMode:(GCFetchTagMode)tagMode prune:(BOOL)prune error:(NSError**)error {\n  XLOG_DEBUG_CHECK(!git_remote_connected(remote));\n  NSUInteger updatedTips = NSNotFound;\n  const char* remoteURL = git_remote_url(remote);\n  NSURL* url = remoteURL ? GCURLFromGitURL([NSString stringWithUTF8String:remoteURL]) : nil;\n  [self willStartRemoteTransferWithURL:url];\n\n  git_remote_callbacks callbacks = GIT_REMOTE_CALLBACKS_INIT;\n  [self setRemoteCallbacks:&callbacks];\n  int status = git_remote_connect(remote, direction, &callbacks, NULL, NULL);\n  if (status != GIT_OK) {\n    LOG_LIBGIT2_ERROR(status);\n    if (error) {\n      *error = GCNewError(status, [NSString stringWithFormat:@\"Failed connecting to \\\"%s\\\" remote: %@\", git_remote_name(remote), GetLastGitErrorMessage()]);  // We can't use CALL_LIBGIT2_FUNCTION_GOTO() as we need to customize the error message\n    }\n    goto cleanup;\n  }\n  if (refspecs) {\n    git_strarray array = {(char**)refspecs, count};\n    if (direction == GIT_DIRECTION_FETCH) {\n      git_fetch_options options = GIT_FETCH_OPTIONS_INIT;\n      options.callbacks = callbacks;\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_download, remote, &array, &options);  // Passing NULL or 0 refspecs is equivalent to using the built-in \"fetch\" refspecs of the remote (typically \"+refs/heads/*:refs/remotes/{REMOTE_NAME}/*\")\n\n      /*\n       When fetching:\n       - This only updates tips matching the active refspecs of the remote i.e. the ones passed to git_remote_download() and possibly some (GIT_REMOTE_DOWNLOAD_TAGS_AUTO) or *all* tags (GIT_REMOTE_DOWNLOAD_TAGS_ALL)\n       - The force parameter of the refspecs is ignored and assume to always be true\n       */\n      git_remote_autotag_option_t mode = GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED;\n      switch (tagMode) {\n        case kGCFetchTagMode_Automatic:\n          mode = GIT_REMOTE_DOWNLOAD_TAGS_AUTO;\n          break;\n        case kGCFetchTagMode_None:\n          mode = GIT_REMOTE_DOWNLOAD_TAGS_NONE;\n          break;\n        case kGCFetchTagMode_All:\n          mode = GIT_REMOTE_DOWNLOAD_TAGS_ALL;\n          break;\n      }\n      NSString* message = [NSString stringWithFormat:kGCReflogMessageFormat_Git_Fetch, [NSString stringWithUTF8String:git_remote_name(remote)]];\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_update_tips, remote, &callbacks, true, mode, message.UTF8String);\n\n      if (prune) {\n        // This only prunes based on the active refspecs i.e. the ones passed to git_remote_download()\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_prune, remote, &callbacks);\n      }\n    } else {\n      git_push_options options = GIT_PUSH_OPTIONS_INIT;\n      options.callbacks = callbacks;\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_upload, remote, &array, &options);  // Passing NULL or 0 refspecs is equivalent to using the built-in \"push\" refspecs of the remote (typically none)\n\n      /*\n       When pushing:\n       - This only updates tips matching the ones passed to git_remote_upload() AND also matching the built-in refspecs of the remote\n       - This behavior is due to the fact libgit2 needs to be able to convert the updated references remote-side to repository-side ones in order to update them, and this requires some \"fetch\" refspecs to do the transform\n       */\n      NSString* message = [NSString stringWithFormat:kGCReflogMessageFormat_Git_Push, [NSString stringWithUTF8String:git_remote_name(remote)]];\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_update_tips, remote, &callbacks, false, 0, message.UTF8String);\n    }\n  }\n  updatedTips = self.lastUpdatedTips;\n\ncleanup:\n  git_remote_disconnect(remote);  // Ignore error\n  [self didFinishRemoteTransferWithURL:url success:(updatedTips != NSNotFound)];\n  return updatedTips;\n}\n\n#pragma mark - Check\n\n// TODO: Handle symbolic references (watch out for HEAD)\n// Inspired from git_remote_prune()\n- (BOOL)checkForChangesInRemote:(GCRemote*)remote\n                    withOptions:(GCRemoteCheckOptions)options\n                addedReferences:(NSDictionary**)addedReferences\n             modifiedReferences:(NSDictionary**)modifiedReferences\n              deletedReferences:(NSDictionary**)deletedReferences\n                          error:(NSError**)error {\n  BOOL success = NO;\n  CFDictionaryKeyCallBacks keyCallbacks = {0, GCCStringCopyCallBack, GCFreeReleaseCallBack, NULL, GCCStringEqualCallBack, GCCStringHashCallBack};\n  CFDictionaryValueCallBacks valueCallbacks = {0, GCOIDCopyCallBack, GCFreeReleaseCallBack, NULL, GCOIDEqualCallBack};\n  CFMutableDictionaryRef localReferences = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &keyCallbacks, &valueCallbacks);\n  CFMutableDictionaryRef remoteReferences = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &keyCallbacks, &valueCallbacks);\n\n  // Build list of remote branches matching this remote's refspecs (excluding symbolic ones)\n  if (![self enumerateReferencesWithOptions:0\n                                      error:error\n                                 usingBlock:^BOOL(git_reference* reference) {\n                                   const char* name = git_reference_name(reference);\n                                   if (((options & kGCRemoteCheckOption_IncludeBranches) && git_reference__is_remote(name)) ||\n                                       ((options & kGCRemoteCheckOption_IncludeTags) && git_reference__is_tag(name))) {\n                                     if (git_reference_type(reference) == GIT_REF_OID) {\n                                       for (size_t i = 0; i < git_remote_refspec_count(remote.private); ++i) {\n                                         const git_refspec* refspec = git_remote_get_refspec(remote.private, i);\n                                         if ((git_refspec_direction(refspec) == GIT_DIRECTION_FETCH) && git_refspec_dst_matches(refspec, name)) {\n                                           CFDictionarySetValue(localReferences, name, git_reference_target(reference));\n                                           break;\n                                         }\n                                       }\n                                     }\n                                   }\n                                   return YES;\n                                 }]) {\n    goto cleanup;\n  }\n\n  // Build list of branches on remotes filtered by remote refspecs (excluding symbolic ones)\n  if ([self _transfer:GIT_DIRECTION_FETCH withRemote:remote.private refspecs:NULL count:0 tagMode:kGCFetchTagMode_None prune:NO error:error] == NSNotFound) {\n    goto cleanup;\n  }\n  const git_remote_head** headList;\n  size_t headCount;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_ls, &headList, &headCount, remote.private);\n  for (size_t i = 0; i < headCount; ++i) {\n    const git_remote_head* head = headList[i];\n    if (((options & kGCRemoteCheckOption_IncludeBranches) && git_reference__is_branch(head->name)) ||\n        ((options & kGCRemoteCheckOption_IncludeTags) && git_reference__is_tag(head->name))) {\n      if (!head->symref_target) {\n        for (size_t j = 0; j < git_remote_refspec_count(remote.private); ++j) {\n          const git_refspec* refspec = git_remote_get_refspec(remote.private, j);\n          if ((git_refspec_direction(refspec) == GIT_DIRECTION_FETCH) && git_refspec_src_matches(refspec, head->name)) {\n            git_buf buffer = {0};\n            CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_refspec_transform, &buffer, refspec, head->name);\n            CFDictionarySetValue(remoteReferences, buffer.ptr, &head->oid);\n            git_buf_free(&buffer);\n          }\n        }\n      }\n    }\n  }\n\n  // Compare lists\n  if (addedReferences) {\n    *addedReferences = [[NSMutableDictionary alloc] init];\n  }\n  if (modifiedReferences) {\n    *modifiedReferences = [[NSMutableDictionary alloc] init];\n  }\n  if (deletedReferences) {\n    *deletedReferences = [[NSMutableDictionary alloc] init];\n  }\n  GCDictionaryApplyBlock(remoteReferences, ^(const void* key, const void* value) {\n    const char* name = key;\n    const git_oid* remoteOID = value;\n    const git_oid* localOID = CFDictionaryGetValue(localReferences, name);\n    if (!localOID) {\n      [(NSMutableDictionary*)*addedReferences setObject:GCGitOIDToSHA1(remoteOID) forKey:[NSString stringWithUTF8String:name]];  // Reference is in remote but not in repository\n    } else {\n      if (git_oid_cmp(localOID, remoteOID)) {\n        [(NSMutableDictionary*)*modifiedReferences setObject:GCGitOIDToSHA1(remoteOID) forKey:[NSString stringWithUTF8String:name]];  // Reference is in remote and repository but with different targets\n      }\n      CFDictionaryRemoveValue(localReferences, name);\n    }\n  });\n  GCDictionaryApplyBlock(localReferences, ^(const void* key, const void* value) {\n    const char* name = key;\n    const git_oid* localOID = value;\n    [(NSMutableDictionary*)*deletedReferences setObject:GCGitOIDToSHA1(localOID) forKey:[NSString stringWithUTF8String:name]];  // Reference is not in remote anymore but still in repository\n  });\n  success = YES;\n\ncleanup:\n  CFRelease(remoteReferences);\n  CFRelease(localReferences);\n  return success;\n}\n\n#pragma mark - Fetch\n\n- (NSUInteger)_fetchFromRemote:(git_remote*)remote refspecs:(const char**)refspecs count:(size_t)count tagMode:(GCFetchTagMode)tagMode prune:(BOOL)prune error:(NSError**)error {\n  return [self _transfer:GIT_DIRECTION_FETCH withRemote:remote refspecs:refspecs count:count tagMode:tagMode prune:prune error:error];\n}\n\n- (BOOL)fetchRemoteBranch:(GCRemoteBranch*)branch tagMode:(GCFetchTagMode)mode updatedTips:(NSUInteger*)updatedTips error:(NSError**)error {\n  NSUInteger result = NSNotFound;\n  git_remote* remote = [self _loadRemoteForRemoteBranch:branch.private error:error];\n  if (remote == NULL) {\n    return NO;\n  }\n\n  const char* dstName = git_reference_name(branch.private);\n  for (size_t i = 0; i < git_remote_refspec_count(remote); ++i) {\n    const git_refspec* refspec = git_remote_get_refspec(remote, i);\n    if ((git_refspec_direction(refspec) == GIT_DIRECTION_FETCH) && git_refspec_dst_matches(refspec, dstName)) {\n      git_buf srcBuffer = {0};\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_refspec_rtransform, &srcBuffer, refspec, dstName);\n      char* buffer;\n      asprintf(&buffer, \"%s:%s\", srcBuffer.ptr, dstName);\n      result = [self _fetchFromRemote:remote refspecs:(const char**)&buffer count:1 tagMode:mode prune:NO error:error];\n      free(buffer);\n      git_buf_free(&srcBuffer);\n      goto cleanup;  // TODO: What if there is more than one match?\n    }\n  }\n  GC_SET_GENERIC_ERROR(@\"No matching refspec for \\\"%@\\\"\", branch.name);\n\ncleanup:\n  git_remote_free(remote);\n  if (result == NSNotFound) {\n    return NO;\n  }\n  if (updatedTips) {\n    *updatedTips = result;\n  }\n  return YES;\n}\n\n- (BOOL)fetchDefaultRemoteBranchesFromRemote:(GCRemote*)remote tagMode:(GCFetchTagMode)mode prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error {\n  git_strarray refspecs = {0};\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_remote_get_fetch_refspecs, &refspecs, remote.private);\n  NSUInteger result = [self _fetchFromRemote:remote.private refspecs:(const char**)refspecs.strings count:refspecs.count tagMode:mode prune:prune error:error];\n  git_strarray_free(&refspecs);\n  if (result == NSNotFound) {\n    return NO;\n  }\n  if (updatedTips) {\n    *updatedTips = result;\n  }\n  return YES;\n}\n\n// We need to pass the special tags refspec which matches the libgit2 behavior of GIT_REMOTE_DOWNLOAD_TAGS_ALL to avoid passing no refspec and having libgit2 fall back to the default ones\n- (NSArray*)fetchTagsFromRemote:(GCRemote*)remote prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error {\n  const char* buffer = \"refs/tags/*:refs/tags/*\";\n  NSUInteger result = [self _fetchFromRemote:remote.private refspecs:&buffer count:1 tagMode:kGCFetchTagMode_All prune:prune error:error];\n  if (result == NSNotFound) {\n    return nil;\n  }\n\n  const git_remote_head** headList;\n  size_t headCount;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_remote_ls, &headList, &headCount, remote.private);\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  for (size_t i = 0; i < headCount; ++i) {\n    const git_remote_head* head = headList[i];\n    if (git_reference__is_tag(head->name)) {\n      if (head->symref_target || !git_reference_is_valid_name(head->name)) {\n        continue;\n      }\n      git_reference* reference;\n      int status = git_reference_lookup(&reference, self.private, head->name);\n      if (status == GIT_ENOTFOUND) {\n        XLOG_DEBUG_UNREACHABLE();\n        continue;\n      }\n      CHECK_LIBGIT2_FUNCTION_CALL(return nil, status, == GIT_OK);\n      [array addObject:[[GCTag alloc] initWithRepository:self reference:reference]];\n    }\n  }\n  if (updatedTips) {\n    *updatedTips = result;\n  }\n  return array;\n}\n\n#pragma mark - Push\n\n- (BOOL)_pushToRemote:(git_remote*)remote refspecs:(const char**)refspecs count:(size_t)count error:(NSError**)error {\n  return ([self _transfer:GIT_DIRECTION_PUSH withRemote:remote refspecs:refspecs count:count tagMode:kGCFetchTagMode_None prune:NO error:error] != NSNotFound);\n}\n\n- (BOOL)_pushSourceReference:(const char*)srcName\n                    toRemote:(git_remote*)remote\n        destinationReference:(const char*)dstName\n                       force:(BOOL)force\n                       error:(NSError**)error {\n  char* buffer;\n  asprintf(&buffer, \"%s%s:%s\", force ? \"+\" : \"\", srcName, dstName);\n  BOOL success = [self _pushToRemote:remote refspecs:(const char**)&buffer count:1 error:error];\n  free(buffer);\n  return success;\n}\n\n- (BOOL)pushLocalBranchToUpstream:(GCLocalBranch*)branch force:(BOOL)force usedRemote:(GCRemote**)usedRemote error:(NSError**)error {\n  BOOL success = NO;\n  const char* name = git_reference_name(branch.private);\n  git_buf remoteBuffer = {0};\n  git_buf mergeBuffer = {0};\n  git_remote* remote = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, gitup_branch_upstream_remote, &remoteBuffer, self.private, name);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, gitup_branch_upstream_merge, &mergeBuffer, self.private, name);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_remote_lookup, &remote, self.private, remoteBuffer.ptr);\n  if (![self _pushSourceReference:name toRemote:remote destinationReference:mergeBuffer.ptr force:force error:error]) {\n    goto cleanup;\n  }\n  success = YES;\n\ncleanup:\n  if (remote && usedRemote) {\n    *usedRemote = [[GCRemote alloc] initWithRepository:self remote:remote];  // Return even on error\n    remote = NULL;\n  }\n  git_remote_free(remote);\n  git_buf_free(&mergeBuffer);\n  git_buf_free(&remoteBuffer);\n  return success;\n}\n\n// TODO: Add low-level API to libgit2\nstatic BOOL _SetBranchDefaultUpstream(git_repository* repository, git_remote* remote, git_reference* branch, NSError** error) {\n  XLOG_DEBUG_CHECK(git_reference_is_branch(branch));\n  const char* name = git_reference_name(branch);\n  const char* shortName = git_reference_shorthand(branch);\n  char* buffer1;\n  char* buffer2;\n  asprintf(&buffer1, \"branch.%s.remote\", shortName);\n  asprintf(&buffer2, \"branch.%s.merge\", shortName);\n  git_config* config;\n  int status = git_repository_config(&config, repository);\n  if (status == GIT_OK) {\n    status = git_config_set_string(config, buffer1, git_remote_name(remote));\n    if (status == GIT_OK) {\n      status = git_config_set_string(config, buffer2, name);\n    }\n    git_config_free(config);\n  }\n  free(buffer2);\n  free(buffer1);\n  CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);\n  return YES;\n}\n\n// Use the same \"default\" behavior as Git i.e push to a branch with the same name on the remote\n- (BOOL)pushLocalBranch:(GCLocalBranch*)branch toRemote:(GCRemote*)remote force:(BOOL)force setUpstream:(BOOL)setUpstream error:(NSError**)error {\n  const char* name = git_reference_name(branch.private);\n  if (![self _pushSourceReference:name toRemote:remote.private destinationReference:name force:force error:error]) {\n    return NO;\n  }\n  if (setUpstream && !_SetBranchDefaultUpstream(self.private, remote.private, branch.private, error)) {\n    return NO;\n  }\n  return YES;\n}\n\n// Use the same \"default\" behavior as Git i.e push to a tag with the same name on the remote\n- (BOOL)pushTag:(GCTag*)tag toRemote:(GCRemote*)remote force:(BOOL)force error:(NSError**)error {\n  const char* name = git_reference_name(tag.private);\n  return [self _pushSourceReference:name toRemote:remote.private destinationReference:name force:force error:error];\n}\n\n// TODO: libgit2 doesn't support pattern based push refspecs like \"refs/heads/*:refs/heads/*\"\n- (BOOL)_pushAllReferencesToRemote:(git_remote*)remote branches:(BOOL)branches tags:(BOOL)tags force:(BOOL)force error:(NSError**)error {\n  GC_POINTER_LIST_ALLOCATE(buffers, 128);\n  BOOL success = [self enumerateReferencesWithOptions:0\n                                                error:error\n                                           usingBlock:^BOOL(git_reference* reference) {\n                                             if ((branches && git_reference_is_branch(reference)) || (tags && git_reference_is_tag(reference))) {\n                                               char* buffer;\n                                               asprintf(&buffer, \"%s%s:%s\", force ? \"+\" : \"\", git_reference_name(reference), git_reference_name(reference));\n                                               GC_POINTER_LIST_APPEND(buffers, buffer);\n                                             }\n                                             return YES;\n                                           }];\n  if (success) {\n    success = [self _pushToRemote:remote refspecs:(const char**)GC_POINTER_LIST_ROOT(buffers) count:GC_POINTER_LIST_COUNT(buffers) error:error];\n  }\n  GC_POINTER_LIST_FOR_LOOP_NO_BRIDGE(buffers, char*, buffer) {\n    free(buffer);\n  }\n  GC_POINTER_LIST_FREE(buffers);\n  return success;\n}\n\n// Use the same \"default\" behavior as Git i.e push to branches with the same names on the remote\n- (BOOL)pushAllLocalBranchesToRemote:(GCRemote*)remote force:(BOOL)force setUpstream:(BOOL)setUpstream error:(NSError**)error {\n  if (![self _pushAllReferencesToRemote:remote.private branches:YES tags:NO force:force error:error]) {\n    return NO;\n  }\n  if (setUpstream && ![self enumerateReferencesWithOptions:0\n                                                     error:error\n                                                usingBlock:^BOOL(git_reference* reference) {\n                                                  if (git_reference_is_branch(reference) && !_SetBranchDefaultUpstream(self.private, remote.private, reference, error)) {\n                                                    return NO;\n                                                  }\n                                                  return YES;\n                                                }]) {\n    return NO;\n  }\n  return YES;\n}\n\n// Use the same \"default\" behavior as Git i.e push to tags with the same names on the remote\n- (BOOL)pushAllTagsToRemote:(GCRemote*)remote force:(BOOL)force error:(NSError**)error {\n  return [self _pushAllReferencesToRemote:remote.private branches:NO tags:YES force:force error:error];\n}\n\n- (BOOL)deleteRemoteBranchFromRemote:(GCRemoteBranch*)branch error:(NSError**)error {\n  BOOL success = NO;\n  git_remote* remote = NULL;\n\n  remote = [self _loadRemoteForRemoteBranch:branch.private error:error];\n  if (remote == NULL) {\n    goto cleanup;\n  }\n  const char* dstName = git_reference_name(branch.private);\n  for (size_t i = 0; i < git_remote_refspec_count(remote); ++i) {\n    const git_refspec* refspec = git_remote_get_refspec(remote, i);\n    if ((git_refspec_direction(refspec) == GIT_DIRECTION_FETCH) && git_refspec_dst_matches(refspec, dstName)) {\n      git_buf srcBuffer = {0};\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_refspec_rtransform, &srcBuffer, refspec, dstName);\n      char* buffer;\n      asprintf(&buffer, \":%s\", srcBuffer.ptr);\n      success = [self _pushToRemote:remote refspecs:(const char**)&buffer count:1 error:error];\n      free(buffer);\n      git_buf_free(&srcBuffer);\n      goto cleanup;  // TODO: What if there is more than one match?\n    }\n  }\n\ncleanup:\n  git_remote_free(remote);\n  return success;\n}\n\n- (BOOL)deleteTag:(GCTag*)tag fromRemote:(GCRemote*)remote error:(NSError**)error {\n  const char* name = git_reference_name(tag.private);\n  char* buffer;\n  asprintf(&buffer, \":%s\", name);\n  BOOL success = [self _pushToRemote:remote.private refspecs:(const char**)&buffer count:1 error:error];\n  free(buffer);\n  return success;\n}\n\n#pragma mark - Utilities\n\n- (git_remote*)_loadRemoteForRemoteBranch:(git_reference*)branch error:(NSError**)error {\n  git_buf buffer = {0};\n  CALL_LIBGIT2_FUNCTION_RETURN(NULL, git_branch_remote_name, &buffer, self.private, git_reference_name(branch));\n  git_remote* remote;\n  int status = git_remote_lookup(&remote, self.private, buffer.ptr);\n  git_buf_free(&buffer);\n  CHECK_LIBGIT2_FUNCTION_CALL(return NULL, status, == GIT_OK);\n  return remote;\n}\n\n- (GCRemote*)lookupRemoteForRemoteBranch:(GCRemoteBranch*)branch sourceBranchName:(NSString**)name error:(NSError**)error {\n  git_remote* remote = [self _loadRemoteForRemoteBranch:branch.private error:error];\n  if (remote == NULL) {\n    return nil;\n  }\n  if (name) {\n    *name = nil;\n    const char* dstName = git_reference_name(branch.private);\n    for (size_t i = 0; i < git_remote_refspec_count(remote); ++i) {\n      const git_refspec* refspec = git_remote_get_refspec(remote, i);\n      if ((git_refspec_direction(refspec) == GIT_DIRECTION_FETCH) && git_refspec_dst_matches(refspec, dstName)) {\n        git_buf srcBuffer = {0};\n        int status = git_refspec_rtransform(&srcBuffer, refspec, dstName);\n        if ((status == GIT_OK) && !strncmp(srcBuffer.ptr, \"refs/heads/\", 11)) {\n          *name = [NSString stringWithUTF8String:(srcBuffer.ptr + 11)];\n        }\n        git_buf_free(&srcBuffer);\n        if (status != GIT_OK) {\n          git_remote_free(remote);\n          CHECK_LIBGIT2_FUNCTION_CALL(return nil, status, == GIT_OK);\n        }\n        break;\n      }\n    }\n    XLOG_DEBUG_CHECK(*name);\n  }\n  return [[GCRemote alloc] initWithRepository:self remote:remote];\n}\n\n- (BOOL)cloneUsingRemote:(GCRemote*)remote recursive:(BOOL)recursive error:(NSError**)error {\n  [self willStartRemoteTransferWithURL:remote.URL];\n\n  //  git_fetch_options fetchOptions = GIT_FETCH_OPTIONS_INIT;\n  //  [self setRemoteCallbacks:&fetchOptions.callbacks];\n  //  git_checkout_options checkoutOptions = GIT_CHECKOUT_OPTIONS_INIT;\n  //  checkoutOptions.checkout_strategy = GIT_CHECKOUT_SAFE;\n\n  git_fetch_options fetchOptions = GIT_FETCH_OPTIONS_INIT;\n  [self setRemoteCallbacks:&fetchOptions.callbacks];\n  git_checkout_options checkoutOptions = GIT_CHECKOUT_OPTIONS_INIT;\n  checkoutOptions.checkout_strategy = GIT_CHECKOUT_SAFE;\n  int status = gitup_clone_into(self.private, remote.private, &fetchOptions, &checkoutOptions, NULL);  // This will fail if the repository is not empty\n\n  [self didFinishRemoteTransferWithURL:remote.URL success:(status == GIT_OK)];\n  CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);\n\n  return recursive ? [self initializeAllSubmodules:YES error:error] : YES;\n}\n\n@end\n\n#if DEBUG\n\n@implementation GCRepository (Remote_Private)\n\n- (NSUInteger)checkForChangesInRemote:(GCRemote*)remote withOptions:(GCRemoteCheckOptions)options error:(NSError**)error {\n  NSDictionary* added;\n  NSDictionary* modified;\n  NSDictionary* deleted;\n  if (![self checkForChangesInRemote:remote withOptions:options addedReferences:&added modifiedReferences:&modified deletedReferences:&deleted error:error]) {\n    return NSNotFound;\n  }\n  return added.count + modified.count + deleted.count;\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Bare-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCRepository_Bare)\n\n/*\n  c0 -> c1 -> c2(R) -> c3(P) (master)\n   \\\n    \\-> c4 (topic)\n*/\n- (void)testBare_Base {\n  // Make commit\n  GCCommit* commit1 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Bonjour le monde!\\n\\nHello World!\\n\" message:@\"French\"];\n\n  // Revert commit\n  GCCommit* commit2 = [self.repository revertCommit:commit1 againstCommit:commit1 withAncestorCommit:[[self.repository lookupParentsForCommit:commit1 error:NULL] firstObject] message:@\"Revert\" conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commit2);\n\n  // Cherry pick commit\n  GCCommit* commit3 = [self.repository cherryPickCommit:commit1 againstCommit:commit2 withAncestorCommit:[[self.repository lookupParentsForCommit:commit1 error:NULL] firstObject] message:@\"Pick\" conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commit3);\n\n  // Update branch\n  XCTAssertTrue([self.repository setTipCommit:commit3 forBranch:self.masterBranch reflogMessage:nil error:NULL]);\n\n  // Check head is up-to-date\n  XCTAssertEqualObjects([self.repository lookupHEAD:NULL error:NULL], commit3);\n\n  // Create topic branch and switch to it\n  GCLocalBranch* topicBranch = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n\n  // Make commit\n  GCCommit* commit4 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Hello World!\\n\\nGutten Tag Welt!\\n\" message:@\"German\"];\n\n  // Switch back to master\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n\n  // Analyze merge topic on master\n  GCCommit* ancestor;\n  GCMergeAnalysisResult result = [self.repository analyzeMergingCommit:commit4 intoCommit:commit3 ancestorCommit:&ancestor error:NULL];  // This calls -findMergeBaseForCommits:error:\n  XCTAssertEqual(result, kGCMergeAnalysisResult_Normal);\n  XCTAssertEqualObjects(ancestor, self.initialCommit);\n\n  // Merge topic on master\n  GCCommit* commit5 = [self.repository mergeCommit:commit4 intoCommit:commit3 withAncestorCommit:ancestor message:@\"Merge\" conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commit5);\n\n  // Replay commit\n  GCCommit* commit6 = [self.repository replayCommit:commit4 ontoCommit:commit3 withAncestorCommit:[[self.repository lookupParentsForCommit:commit4 error:NULL] firstObject] updatedMessage:nil updatedParents:@[ commit3 ] updateCommitter:YES skipIdentical:NO conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commit6);\n\n  // Copy commit\n  GCCommit* commit7 = [self.repository copyCommit:commit5 withUpdatedMessage:@\"Merge 2\" updatedParents:nil updatedTreeFromIndex:nil updateCommitter:YES error:NULL];\n  XCTAssertNotNil(commit7);\n\n  // Squash commit\n  GCCommit* commit8 = [self.repository squashCommitOntoParent:commit1 withUpdatedMessage:nil error:NULL];\n  XCTAssertNotNil(commit8);\n\n  // Replay mainline commits\n  GCCommit* commit9 = [self.repository replayMainLineParentsFromCommit:commit3 uptoCommit:self.initialCommit ontoCommit:commit4 preserveMerges:NO updateCommitter:YES skipIdentical:NO conflictHandler:NULL error:NULL];\n  XCTAssertEqualObjects(commit9.summary, @\"Pick\");\n  NSArray* parents = [self.repository lookupParentsForCommit:commit9 error:NULL];\n  XCTAssertEqual(parents.count, 1);\n  XCTAssertEqualObjects([(GCCommit*)parents[0] summary], @\"Revert\");\n  NSArray* grandParents = [self.repository lookupParentsForCommit:parents[0] error:NULL];\n  XCTAssertEqual(grandParents.count, 1);\n  XCTAssertEqualObjects([(GCCommit*)grandParents[0] summary], @\"French\");\n  NSArray* grandGrandParents = [self.repository lookupParentsForCommit:grandParents[0] error:NULL];\n  XCTAssertEqual(grandGrandParents.count, 1);\n  XCTAssertEqualObjects(grandGrandParents[0], commit4);\n}\n\n- (void)testBare_Replay {\n  // Make commits\n  GCCommit* commit1 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"1\\n\" message:@\"1\"];\n  [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"2\\n\" message:@\"2\"];\n\n  sleep(1);  // Make sure timestamp has changed and committer signature will be different\n\n  // Copy commit\n  GCCommit* commitA = [self.repository copyCommit:commit1 withUpdatedMessage:nil updatedParents:@[ self.initialCommit ] updatedTreeFromIndex:nil updateCommitter:YES error:NULL];\n  XCTAssertNotNil(commitA);\n  XCTAssertTrue([self.repository resetToCommit:commitA mode:kGCResetMode_Hard error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"1\\n\"];\n\n  // Replay commit\n  GCCommit* commitB = [self.repository replayCommit:commit1 ontoCommit:self.initialCommit withAncestorCommit:self.initialCommit updatedMessage:nil updatedParents:@[ self.initialCommit ] updateCommitter:YES skipIdentical:YES conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commitB);\n  XCTAssertNotEqual(commitB, commit1);  // Verify not skipped\n  XCTAssertTrue([self.repository resetToCommit:commitB mode:kGCResetMode_Hard error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"1\\n\"];\n\n  // Replay commit (skip)\n  GCCommit* commit3 = [self.repository cherryPickCommit:commit1 againstCommit:self.initialCommit withAncestorCommit:self.initialCommit message:@\"Pick\" conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commit3);\n  GCCommit* commitC = [self.repository replayCommit:commit1 ontoCommit:commit3 withAncestorCommit:self.initialCommit updatedMessage:nil updatedParents:@[ self.initialCommit ] updateCommitter:YES skipIdentical:NO conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commitC);\n  XCTAssertNotEqual(commitC, commit3);  // Verify not skipped\n  GCCommit* commitD = [self.repository replayCommit:commit1 ontoCommit:commit3 withAncestorCommit:self.initialCommit updatedMessage:nil updatedParents:@[ self.initialCommit ] updateCommitter:YES skipIdentical:YES conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(commitD);\n  XCTAssertEqual(commitD, commit3);  // Verify skipped\n  XCTAssertTrue([self.repository resetToCommit:commitD mode:kGCResetMode_Hard error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"1\\n\"];\n}\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wformat-nonliteral\"\n\n- (void)testBare_ResolveConflicts {\n  // Make commits\n  GCCommit* commit1 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"1\\n\" message:@\"1\"];\n  GCLocalBranch* topicBranch = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n  GCCommit* commit2 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"2\\n\" message:@\"2\"];\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n\n  // Merge topic branch (don't handle conflicts)\n  XCTAssertNil([self.repository mergeCommit:commit2 intoCommit:commit1 withAncestorCommit:self.initialCommit message:@\"MERGE\" conflictHandler:NULL error:NULL]);\n\n  // Merge topic branch (cancel conflict resolution)\n  XCTAssertNil([self.repository mergeCommit:commit2\n                                 intoCommit:commit1\n                         withAncestorCommit:self.initialCommit\n                                    message:@\"MERGE\"\n                            conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError) {\n                              return nil;\n                            }\n                                      error:NULL]);\n\n  // Merge topic branch (don't resolve conflict)\n  XCTAssertNil([self.repository mergeCommit:commit2\n                                 intoCommit:commit1\n                         withAncestorCommit:self.initialCommit\n                                    message:@\"MERGE\"\n                            conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError) {\n                              BOOL success = [self.repository checkoutIndex:index withOptions:0 error:NULL];\n                              XCTAssertEqual(success, YES);  // Why is XCTAssertTrue() not working here?\n                              return [self.repository createCommitFromHEADAndOtherParent:parentCommits[1] withMessage:message error:NULL];\n                            }\n                                      error:NULL]);\n\n  // Reset\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:kGCCheckoutOption_Force error:NULL]);\n\n  // Merge topic branch (don't resolve conflict)\n  XCTAssertNotNil([self.repository mergeCommit:commit2\n                                    intoCommit:commit1\n                            withAncestorCommit:self.initialCommit\n                                       message:@\"MERGE\"\n                               conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError) {\n                                 XCTAssertEqual(parentCommits.count, 2);\n                                 XCTAssertEqualObjects(parentCommits[0], commit1);\n                                 XCTAssertEqualObjects(parentCommits[1], commit2);\n                                 BOOL success = [self.repository checkoutCommit:parentCommits[0] options:0 error:NULL] && [self.repository checkoutIndex:index withOptions:0 error:NULL] && [self.repository addAllFilesToIndex:NULL];\n                                 XCTAssertEqual(success, YES);  // Why is XCTAssertTrue() not working here?\n                                 return [self.repository createCommitFromHEADAndOtherParent:parentCommits[1] withMessage:message error:NULL];\n                               }\n                                         error:NULL]);\n}\n\n#pragma clang diagnostic pop\n\n@end\n\n@implementation GCMultipleCommitsRepositoryTests (GCRepository_Bare)\n\n// TODO: Test kGCCommitRelation_Unrelated\n- (void)testBare_Relations {\n  XCTAssertEqual([self.repository findRelationOfCommit:self.initialCommit relativeToCommit:self.initialCommit error:NULL], kGCCommitRelation_Identical);\n  XCTAssertEqual([self.repository findRelationOfCommit:self.commit3 relativeToCommit:self.commit1 error:NULL], kGCCommitRelation_Descendant);\n  XCTAssertEqual([self.repository findRelationOfCommit:self.commit1 relativeToCommit:self.commit3 error:NULL], kGCCommitRelation_Ancestor);\n  XCTAssertEqual([self.repository findRelationOfCommit:self.commitA relativeToCommit:self.commit2 error:NULL], kGCCommitRelation_Cousin);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Bare.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_ENUM(NSUInteger, GCMergeAnalysisResult) {\n  kGCMergeAnalysisResult_Unknown = 0,\n  kGCMergeAnalysisResult_UpToDate,\n  kGCMergeAnalysisResult_FastForward,\n  kGCMergeAnalysisResult_Normal\n};\n\ntypedef NS_ENUM(NSUInteger, GCCommitRelation) {\n  kGCCommitRelation_Unknown = 0,\n  kGCCommitRelation_Identical,\n  kGCCommitRelation_Ancestor,\n  kGCCommitRelation_Descendant,\n  kGCCommitRelation_Cousin,\n  kGCCommitRelation_Unrelated\n};\n\n@class GCCommit, GCIndex;\n\ntypedef GCCommit* (^GCConflictHandler)(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError);\n\n@interface GCRepository (Bare)\n- (GCCommit*)squashCommitOntoParent:(GCCommit*)squashCommit withUpdatedMessage:(NSString*)message error:(NSError**)error;\n\n- (GCCommit*)cherryPickCommit:(GCCommit*)pickCommit\n                againstCommit:(GCCommit*)againstCommit\n           withAncestorCommit:(GCCommit*)ancestorCommit  // Typically a parent of \"pickCommit\" (the first one to use the main line)\n                      message:(NSString*)message\n              conflictHandler:(GCConflictHandler)handler  // May be NULL\n                        error:(NSError**)error;\n\n- (GCCommit*)revertCommit:(GCCommit*)revertCommit\n            againstCommit:(GCCommit*)againstCommit\n       withAncestorCommit:(GCCommit*)ancestorCommit  // Typically a parent of \"revertCommit\" (the first one to use the main line)\n                  message:(NSString*)message\n          conflictHandler:(GCConflictHandler)handler  // May be NULL\n                    error:(NSError**)error;\n\n- (GCCommitRelation)findRelationOfCommit:(GCCommit*)ofCommit relativeToCommit:(GCCommit*)toCommit error:(NSError**)error;\n\n- (GCCommit*)findMergeBaseForCommits:(NSArray*)commits error:(NSError**)error;\n- (GCMergeAnalysisResult)analyzeMergingCommit:(GCCommit*)mergeCommit intoCommit:(GCCommit*)intoCommit ancestorCommit:(GCCommit**)ancestorCommit error:(NSError**)error;\n- (GCCommit*)mergeCommit:(GCCommit*)mergeCommit\n              intoCommit:(GCCommit*)intoCommit\n      withAncestorCommit:(GCCommit*)ancestorCommit  // Typically a parent of both \"mergeCommit\" and \"intoCommit\"\n                 message:(NSString*)message\n         conflictHandler:(GCConflictHandler)handler  // May be NULL\n                   error:(NSError**)error;\n\n- (GCCommit*)createCommitFromIndex:(GCIndex*)index\n                       withParents:(NSArray*)parents\n                           message:(NSString*)message\n                             error:(NSError**)error;\n\n- (GCCommit*)copyCommit:(GCCommit*)copyCommit\n      withUpdatedMessage:(NSString*)message\n          updatedParents:(NSArray*)parents\n    updatedTreeFromIndex:(GCIndex*)index\n         updateCommitter:(BOOL)updateCommitter\n                   error:(NSError**)error;\n\n- (GCCommit*)replayCommit:(GCCommit*)replayCommit\n               ontoCommit:(GCCommit*)ontoCommit\n       withAncestorCommit:(GCCommit*)ancestorCommit  // Typically a parent of \"replayCommit\" (the first one to use the main line)\n           updatedMessage:(NSString*)message\n           updatedParents:(NSArray*)parents\n          updateCommitter:(BOOL)updateCommitter\n            skipIdentical:(BOOL)skipIdentical\n          conflictHandler:(GCConflictHandler)handler\n                    error:(NSError**)error;\n\n- (GCCommit*)replayMainLineParentsFromCommit:(GCCommit*)fromCommit\n                                  uptoCommit:(GCCommit*)uptoCommit  // Must be an ancestor of \"fromCommit\"\n                                  ontoCommit:(GCCommit*)ontoCommit\n                              preserveMerges:(BOOL)preserveMerges\n                             updateCommitter:(BOOL)updateCommitter\n                               skipIdentical:(BOOL)skipIdentical\n                             conflictHandler:(GCConflictHandler)handler\n                                       error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Bare.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCRepository (Bare)\n\n- (GCCommit*)squashCommitOntoParent:(GCCommit*)squashCommit withUpdatedMessage:(NSString*)message error:(NSError**)error {\n  GCCommit* newCommit = nil;\n  git_commit* parentCommit = NULL;\n  git_tree* tree = NULL;\n\n  if (git_commit_parentcount(squashCommit.private) != 1) {\n    GC_SET_GENERIC_ERROR(@\"Commit to squash must have a single parent\");\n    goto cleanup;\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_parent, &parentCommit, squashCommit.private, 0);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &tree, squashCommit.private);\n  newCommit = [self createCommitFromCommit:parentCommit withTree:tree updatedMessage:message updatedParents:nil updateCommitter:YES error:error];\n\ncleanup:\n  git_tree_free(tree);\n  git_commit_free(parentCommit);\n  return newCommit;\n}\n\nstatic inline GCCommit* _CopyCommit(GCRepository* repository, git_commit* commit) {\n  git_commit* copy;\n  git_object_dup((git_object**)&copy, (git_object*)commit);  // This just increases the retain count and cannot fail\n  return [[GCCommit alloc] initWithRepository:repository commit:copy];\n}\n\n- (GCCommit*)_mergeTheirCommit:(git_commit*)theirCommit\n                 intoOurCommit:(git_commit*)ourCommit\n            withAncestorCommit:(git_commit*)ancestorCommit\n                       parents:(const git_commit**)parents\n                         count:(NSUInteger)count\n                        author:(const git_signature*)author\n                       message:(NSString*)message\n               conflictHandler:(GCConflictHandler)handler\n                         error:(NSError**)error {\n  GCCommit* commit = nil;\n  git_tree* ancestorTree = NULL;\n  git_tree* ourTree = NULL;\n  git_tree* theirTree = NULL;\n  git_index* index = NULL;\n\n  if (ancestorCommit) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &ancestorTree, ancestorCommit);\n  }\n  if (ourCommit) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &ourTree, ourCommit);\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &theirTree, theirCommit);\n  git_merge_options mergeOptions = GIT_MERGE_OPTIONS_INIT;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_merge_trees, &index, self.private, ancestorTree, ourTree, theirTree, &mergeOptions);\n  if (git_index_has_conflicts(index) && handler) {\n    NSMutableArray* array = [[NSMutableArray alloc] init];\n    for (NSUInteger i = 0; i < count; ++i) {\n      [array addObject:_CopyCommit(self, (git_commit*)parents[i])];\n    }\n    commit = handler([[GCIndex alloc] initWithRepository:nil index:index], ourCommit ? _CopyCommit(self, ourCommit) : nil, _CopyCommit(self, theirCommit), array, message, error);  // Doesn't make sense to specify a custom author on conflict anyway\n    index = NULL;  // Ownership has been transferred to GCIndex instance\n  } else {\n    commit = [self createCommitFromIndex:index withParents:parents count:count author:author message:message error:error];\n  }\n\ncleanup:\n  git_index_free(index);\n  git_tree_free(theirTree);\n  git_tree_free(ourTree);\n  git_tree_free(ancestorTree);\n  return commit;\n}\n\n- (GCCommit*)cherryPickCommit:(GCCommit*)pickCommit\n                againstCommit:(GCCommit*)againstCommit\n           withAncestorCommit:(GCCommit*)ancestorCommit\n                      message:(NSString*)message\n              conflictHandler:(GCConflictHandler)handler\n                        error:(NSError**)error {\n  const git_commit** parents = (againstCommit != nil) ? (git_commit*[]){againstCommit.private} : (git_commit*[]){};\n  return [self _mergeTheirCommit:pickCommit.private\n                   intoOurCommit:againstCommit.private\n              withAncestorCommit:ancestorCommit.private\n                         parents:parents\n                           count:(againstCommit != nil) ? 1 : 0\n                          author:git_commit_author(pickCommit.private)\n                         message:message\n                 conflictHandler:handler\n                           error:error];\n}\n\n- (GCCommit*)revertCommit:(GCCommit*)revertCommit\n            againstCommit:(GCCommit*)againstCommit\n       withAncestorCommit:(GCCommit*)ancestorCommit\n                  message:(NSString*)message\n          conflictHandler:(GCConflictHandler)handler\n                    error:(NSError**)error {\n  const git_commit** parents = (againstCommit != nil) ? (git_commit*[]){againstCommit.private} : (git_commit*[]){};\n  return [self _mergeTheirCommit:ancestorCommit.private\n                   intoOurCommit:againstCommit.private\n              withAncestorCommit:revertCommit.private\n                         parents:parents\n                           count:(againstCommit != nil) ? 1 : 0\n                          author:NULL\n                         message:message\n                 conflictHandler:handler\n                           error:error];\n}\n\n- (GCCommitRelation)findRelationOfCommit:(GCCommit*)ofCommit relativeToCommit:(GCCommit*)toCommit error:(NSError**)error {\n  const git_oid* ofOID = git_commit_id(ofCommit.private);\n  const git_oid* toOID = git_commit_id(toCommit.private);\n  if (!git_oid_equal(ofOID, toOID)) {\n    git_oid bases[] = {*ofOID, *toOID};\n    git_oid oid;\n    int status = git_merge_base_many(&oid, self.private, 2, bases);\n    if (status == GIT_ENOTFOUND) {\n      return kGCCommitRelation_Unrelated;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(return kGCCommitRelation_Unknown, status, == GIT_OK);\n    if (git_oid_equal(&oid, ofOID)) {\n      return kGCCommitRelation_Ancestor;\n    }\n    if (git_oid_equal(&oid, toOID)) {\n      return kGCCommitRelation_Descendant;\n    }\n    return kGCCommitRelation_Cousin;\n  }\n  return kGCCommitRelation_Identical;\n}\n\n- (GCCommit*)findMergeBaseForCommits:(NSArray*)commits error:(NSError**)error {\n  git_commit* commit = NULL;\n  size_t count = commits.count;\n  git_oid* bases = malloc(count * sizeof(git_oid));\n\n  for (size_t i = 0; i < count; ++i) {\n    bases[i] = *git_commit_id([(GCCommit*)commits[i] private]);\n  }\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_merge_base_many, &oid, self.private, count, bases);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &commit, self.private, &oid);\n\ncleanup:\n  free(bases);\n  return commit ? [[GCCommit alloc] initWithRepository:self commit:commit] : nil;\n}\n\n// Generic re-implementation of git_merge_analysis()\n- (GCMergeAnalysisResult)analyzeMergingCommit:(GCCommit*)mergeCommit intoCommit:(GCCommit*)intoCommit ancestorCommit:(GCCommit**)ancestorCommit error:(NSError**)error {\n  GCCommit* ancestor = [self findMergeBaseForCommits:@[ intoCommit, mergeCommit ] error:error];\n  if (ancestor == nil) {\n    return kGCMergeAnalysisResult_Unknown;\n  }\n  GCMergeAnalysisResult result;\n  if ([ancestor isEqualToCommit:mergeCommit]) {\n    result = kGCMergeAnalysisResult_UpToDate;\n  } else if ([ancestor isEqualToCommit:intoCommit]) {\n    result = kGCMergeAnalysisResult_FastForward;\n  } else {\n    result = kGCMergeAnalysisResult_Normal;\n  }\n  if (ancestorCommit) {\n    *ancestorCommit = ancestor;\n  }\n  return result;\n}\n\n- (GCCommit*)mergeCommit:(GCCommit*)mergeCommit\n              intoCommit:(GCCommit*)intoCommit\n      withAncestorCommit:(GCCommit*)ancestorCommit\n                 message:(NSString*)message\n         conflictHandler:(GCConflictHandler)handler\n                   error:(NSError**)error {\n  const git_commit* parents[] = {intoCommit.private, mergeCommit.private};\n  return [self _mergeTheirCommit:mergeCommit.private\n                   intoOurCommit:intoCommit.private\n              withAncestorCommit:ancestorCommit.private\n                         parents:parents\n                           count:2\n                          author:NULL\n                         message:message\n                 conflictHandler:handler\n                           error:error];\n}\n\n- (GCCommit*)createCommitFromIndex:(GCIndex*)index\n                       withParents:(NSArray*)parents\n                           message:(NSString*)message\n                             error:(NSError**)error {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wvla\"\n  const git_commit* commits[parents.count];\n#pragma clang diagnostic pop\n  NSUInteger count = 0;\n  for (GCCommit* parent in parents) {\n    commits[count++] = parent.private;\n  }\n  return [self createCommitFromIndex:index.private withParents:commits count:count author:NULL message:message error:error];\n}\n\n- (GCCommit*)copyCommit:(GCCommit*)copyCommit\n      withUpdatedMessage:(NSString*)message\n          updatedParents:(NSArray*)parents\n    updatedTreeFromIndex:(GCIndex*)index\n         updateCommitter:(BOOL)updateCommitter\n                   error:(NSError**)error {\n  GCCommit* newCommit = nil;\n  git_commit* commit = copyCommit.private;\n  git_tree* tree = NULL;\n  git_oid oid;\n\n  if (index) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_write_tree_to, &oid, index.private, self.private);\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_tree_lookup, &tree, self.private, &oid);\n  } else {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &tree, commit);\n  }\n  newCommit = [self createCommitFromCommit:commit withTree:tree updatedMessage:message updatedParents:parents updateCommitter:updateCommitter error:error];\n\ncleanup:\n  git_tree_free(tree);\n  return newCommit;\n}\n\n- (GCCommit*)replayCommit:(GCCommit*)replayCommit\n               ontoCommit:(GCCommit*)ontoCommit\n       withAncestorCommit:(GCCommit*)ancestorCommit\n           updatedMessage:(NSString*)message\n           updatedParents:(NSArray*)parents\n          updateCommitter:(BOOL)updateCommitter\n            skipIdentical:(BOOL)skipIdentical\n          conflictHandler:(GCConflictHandler)handler\n                    error:(NSError**)error {\n  GCCommit* newCommit = nil;\n  git_tree* replayTree = NULL;\n  git_tree* ontoTree = NULL;\n  git_tree* ancestorTree = NULL;\n  git_index* mergeIndex = NULL;\n  git_tree* mergeTree = NULL;\n  git_diff* diff = NULL;\n  git_oid oid;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &replayTree, replayCommit.private);\n  if (ontoCommit) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &ontoTree, ontoCommit.private);\n  }\n  if (ancestorCommit) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &ancestorTree, ancestorCommit.private);\n  }\n  git_merge_options mergeOptions = GIT_MERGE_OPTIONS_INIT;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_merge_trees, &mergeIndex, self.private, ancestorTree, ontoTree, replayTree, &mergeOptions);\n  if (git_index_has_conflicts(mergeIndex) && handler) {\n    if (parents == nil) {\n      parents = [[NSMutableArray alloc] init];\n      for (unsigned int i = 0, count = git_commit_parentcount(replayCommit.private); i < count; ++i) {\n        git_commit* commit;\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_parent, &commit, replayCommit.private, i);\n        [(NSMutableArray*)parents addObject:[[GCCommit alloc] initWithRepository:self commit:commit]];\n      }\n    }\n    if (message == nil) {\n      message = replayCommit.message;\n    }\n    newCommit = handler([[GCIndex alloc] initWithRepository:nil index:mergeIndex], ontoCommit, replayCommit, parents, message, error);  // TODO: This ignores \"updateCommitter\" and \"skipIdentical\"\n    mergeIndex = NULL;  // Ownership has been transferred to GCIndex instance\n  } else {\n    if (skipIdentical) {\n      git_diff_options diffOptions = GIT_DIFF_OPTIONS_INIT;\n      diffOptions.flags = GIT_DIFF_SKIP_BINARY_CHECK;  // This should not be needed since not generating patches anyway\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_diff_tree_to_index, &diff, self.private, ontoTree, mergeIndex, &diffOptions);\n    }\n    if (!diff || git_diff_num_deltas(diff)) {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_write_tree_to, &oid, mergeIndex, self.private);\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_tree_lookup, &mergeTree, self.private, &oid);\n      newCommit = [self createCommitFromCommit:replayCommit.private withTree:mergeTree updatedMessage:message updatedParents:parents updateCommitter:updateCommitter error:error];\n    } else {\n      newCommit = ontoCommit;\n      XLOG_VERBOSE(@\"Skipping replay of already applied commit \\\"%@\\\" (%@) onto commit \\\"%@\\\" (%@)\", replayCommit.summary, replayCommit.shortSHA1, ontoCommit.summary, ontoCommit.shortSHA1);\n    }\n  }\n\ncleanup:\n  git_diff_free(diff);\n  git_tree_free(mergeTree);\n  git_index_free(mergeIndex);\n  git_tree_free(ancestorTree);\n  git_tree_free(ontoTree);\n  git_tree_free(replayTree);\n  return newCommit;\n}\n\n- (GCCommit*)replayMainLineParentsFromCommit:(GCCommit*)fromCommit\n                                  uptoCommit:(GCCommit*)uptoCommit\n                                  ontoCommit:(GCCommit*)ontoCommit\n                              preserveMerges:(BOOL)preserveMerges\n                             updateCommitter:(BOOL)updateCommitter\n                               skipIdentical:(BOOL)skipIdentical\n                             conflictHandler:(GCConflictHandler)handler\n                                       error:(NSError**)error {\n  NSMutableArray* stack = [[NSMutableArray alloc] init];\n  GCCommit* walkCommit = fromCommit;\n  while (1) {\n    NSArray* parents = [self lookupParentsForCommit:walkCommit error:error];\n    if (parents == nil) {\n      return nil;\n    }\n    [stack insertObject:@[ walkCommit, parents ] atIndex:0];\n    walkCommit = parents.firstObject;  // Follow main line\n    if (walkCommit == nil) {\n      XLOG_DEBUG_UNREACHABLE();\n      GC_SET_GENERIC_ERROR(@\"Unable to reach ancestor commit\");\n      return nil;\n    }\n    if ([walkCommit isEqualToCommit:uptoCommit]) {\n      break;\n    }\n  }\n\n  GCCommit* tipCommit = ontoCommit;\n  for (NSArray* array in stack) {\n    GCCommit* replayCommit = array[0];\n    NSArray* replayParents = array[1];\n    GCCommit* ancestor = replayParents[0];  // Use main line\n    NSMutableArray* parents = nil;\n    if (preserveMerges) {\n      parents = [[NSMutableArray alloc] initWithArray:replayParents];\n      [parents replaceObjectAtIndex:0 withObject:tipCommit];  // Only replace first parent and preserve others\n    }\n    tipCommit = [self replayCommit:replayCommit ontoCommit:tipCommit withAncestorCommit:ancestor updatedMessage:nil updatedParents:(parents ? parents : @[ tipCommit ])updateCommitter:updateCommitter skipIdentical:skipIdentical conflictHandler:handler error:error];\n    if (tipCommit == nil) {\n      return nil;\n    }\n  }\n  return tipCommit;\n}\n\n@end\n\n@implementation GCRepository (Bare_Private)\n\n- (GCCommit*)createCommitFromTree:(git_tree*)tree\n                      withParents:(const git_commit**)parents\n                            count:(NSUInteger)count\n                           author:(const git_signature*)author\n                          message:(NSString*)message\n                            error:(NSError**)error {\n  GCCommit* commit = nil;\n  git_signature* signature = NULL;\n\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_signature_default, &signature, self.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_create, &oid, self.private, NULL, author ? author : signature, signature, NULL, GCCleanedUpCommitMessage(message).bytes, tree, count, parents);\n  git_commit* newCommit = NULL;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &newCommit, self.private, &oid);\n  commit = [[GCCommit alloc] initWithRepository:self commit:newCommit];\n\ncleanup:\n  git_signature_free(signature);\n  return commit;\n}\n\n- (GCCommit*)createCommitFromIndex:(git_index*)index\n                       withParents:(const git_commit**)parents\n                             count:(NSUInteger)count\n                            author:(const git_signature*)author\n                           message:(NSString*)message\n                             error:(NSError**)error {\n  GCCommit* commit = nil;\n  git_tree* tree = NULL;\n\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_index_write_tree_to, &oid, index, self.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_tree_lookup, &tree, self.private, &oid);\n\n  commit = [self createCommitFromTree:tree withParents:parents count:count author:author message:message error:error];\n\ncleanup:\n  git_tree_free(tree);\n  return commit;\n}\n\nstatic const git_oid* _CommitParentCallback_Parents(size_t idx, void* payload) {\n  NSArray* parents = (__bridge NSArray*)payload;\n  if (idx < parents.count) {\n    return git_commit_id([(GCCommit*)parents[idx] private]);\n  }\n  return NULL;\n}\n\nstatic const git_oid* _CommitParentCallback_Commit(size_t idx, void* payload) {\n  git_commit* commit = (git_commit*)payload;\n  if (idx < git_commit_parentcount(commit)) {\n    return git_commit_parent_id(commit, (unsigned int)idx);\n  }\n  return NULL;\n}\n\n- (GCCommit*)createCommitFromCommit:(git_commit*)commit\n                          withIndex:(git_index*)index\n                     updatedMessage:(NSString*)message\n                     updatedParents:(NSArray*)parents\n                    updateCommitter:(BOOL)updateCommitter\n                              error:(NSError**)error {\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_index_write_tree_to, &oid, index, self.private);\n  git_tree* tree;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_tree_lookup, &tree, self.private, &oid);\n  GCCommit* newCommit = [self createCommitFromCommit:commit withTree:tree updatedMessage:message updatedParents:parents updateCommitter:updateCommitter error:error];\n  git_tree_free(tree);\n  return newCommit;\n}\n\n- (GCCommit*)createCommitFromCommit:(git_commit*)commit\n                           withTree:(git_tree*)tree\n                     updatedMessage:(NSString*)message\n                     updatedParents:(NSArray*)parents\n                    updateCommitter:(BOOL)updateCommitter\n                              error:(NSError**)error {\n  git_commit* newCommit = NULL;\n  git_signature* signature = NULL;\n  git_oid oid;\n\n  if (updateCommitter) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_signature_default, &signature, self.private);\n  }\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_create_from_callback, &oid, self.private, NULL,\n                             git_commit_author(commit),\n                             updateCommitter ? signature : git_commit_committer(commit),\n                             message ? NULL : git_commit_message_encoding(commit), message ? GCCleanedUpCommitMessage(message).bytes : git_commit_message(commit),\n                             git_tree_id(tree),\n                             parents ? _CommitParentCallback_Parents : _CommitParentCallback_Commit, parents ? (__bridge void*)parents : (void*)commit);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &newCommit, self.private, &oid);\n  XLOG_DEBUG_CHECK(!git_oid_equal(git_commit_id(newCommit), git_commit_id(commit)));\n\ncleanup:\n  git_signature_free(signature);\n  return newCommit ? [[GCCommit alloc] initWithRepository:self commit:newCommit] : nil;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Config-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCEmptyRepositoryTests (GCConfig)\n\n- (void)testConfig {\n  if (!self.botMode) {\n    XCTAssertNotNil([self.repository findFilePathForConfigurationLevel:kGCConfigLevel_Global error:NULL]);\n  }\n  XCTAssertNotNil([self.repository findFilePathForConfigurationLevel:kGCConfigLevel_Local error:NULL]);\n\n  XCTAssertNil([self.repository readConfigOptionForVariable:@\"unknown\" error:NULL]);\n\n  GCConfigOption* option = [self.repository readConfigOptionForVariable:@\"core.bare\" error:NULL];\n  XCTAssertEqualObjects(option.value, @\"false\");\n  XCTAssertEqual(option.level, kGCConfigLevel_Local);\n\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"foo.bar\" withValue:@\"hello world\" error:NULL]);\n  option = [self.repository readConfigOptionForVariable:@\"foo.bar\" error:NULL];\n  XCTAssertEqual(option.level, kGCConfigLevel_Local);\n  XCTAssertEqualObjects(option.variable, @\"foo.bar\");\n  XCTAssertEqualObjects(option.value, @\"hello world\");\n  XCTAssertNil([self.repository readConfigOptionForLevel:kGCConfigLevel_Global variable:@\"foo.bar\" error:NULL]);\n  XCTAssertNotNil([self.repository readConfigOptionForLevel:kGCConfigLevel_Local variable:@\"foo.bar\" error:NULL]);\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"foo.bar\" withValue:nil error:NULL]);\n  XCTAssertNil([self.repository readConfigOptionForVariable:@\"foo.bar\" error:NULL]);\n\n  NSArray* config1 = [self.repository readConfigForLevel:kGCConfigLevel_Local error:NULL];\n  XCTAssertEqual(config1.count, 6);\n\n  NSArray* config2 = [self.repository readAllConfigs:NULL];\n  XCTAssertEqual(config2.count, 8);\n  NSUInteger index = [config2 indexOfObjectPassingTest:^BOOL(GCConfigOption* obj, NSUInteger idx, BOOL* stop) {\n    return [obj.variable isEqualToString:@\"core.repositoryformatversion\"];\n  }];\n  option = config2[index];\n  XCTAssertEqualObjects(option.variable, @\"core.repositoryformatversion\");\n  XCTAssertEqualObjects(option.value, @\"0\");\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Config.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_ENUM(NSUInteger, GCConfigLevel) {\n  kGCConfigLevel_System = 0,  // $(prefix)/etc/gitconfig: system-wide configuration file\n  kGCConfigLevel_XDG,  // $XDG_CONFIG_HOME/git/config: second user-specific configuration file\n  kGCConfigLevel_Global,  // ~/.gitconfig: user-specific configuration file\n  kGCConfigLevel_Local  // $GIT_DIR/config: repository specific configuration file\n};\n\n@interface GCConfigOption : NSObject\n@property(nonatomic, readonly) GCConfigLevel level;\n@property(nonatomic, readonly) NSString* variable;  // Normalized to lower-case\n@property(nonatomic, readonly) NSString* value;  // May be nil\n@end\n\n@interface GCRepository (GCConfig)\n- (NSString*)findFilePathForConfigurationLevel:(GCConfigLevel)level error:(NSError**)error;\n\n- (GCConfigOption*)readConfigOptionForVariable:(NSString*)variable error:(NSError**)error;\n- (GCConfigOption*)readConfigOptionForLevel:(GCConfigLevel)level variable:(NSString*)variable error:(NSError**)error;\n- (BOOL)writeConfigOptionForLevel:(GCConfigLevel)level variable:(NSString*)variable withValue:(NSString*)value error:(NSError**)error;  // Pass a nil value to delete the option\n\n- (NSArray*)readConfigForLevel:(GCConfigLevel)level error:(NSError**)error;\n- (NSArray*)readAllConfigs:(NSError**)error;  // Does not de-duplicate variables\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Config.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\nstatic inline GCConfigLevel _ConfigLevelFromLevel(git_config_level_t level) {\n  switch (level) {\n    case GIT_CONFIG_LEVEL_PROGRAMDATA:\n      break;\n    case GIT_CONFIG_LEVEL_SYSTEM:\n      return kGCConfigLevel_System;\n    case GIT_CONFIG_LEVEL_XDG:\n      return kGCConfigLevel_XDG;\n    case GIT_CONFIG_LEVEL_GLOBAL:\n      return kGCConfigLevel_Global;\n    case GIT_CONFIG_LEVEL_LOCAL:\n      return kGCConfigLevel_Local;\n#if DEBUG\n    case GIT_CONFIG_LEVEL_APP:\n      return kGCConfigLevel_XDG;  // For unit tests only\n#else\n    case GIT_CONFIG_LEVEL_APP:\n      break;\n#endif\n    case GIT_CONFIG_HIGHEST_LEVEL:\n      break;\n    case GIT_CONFIG_LEVEL_WORKTREE:\n      break;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\nstatic inline git_config_level_t _ConfigLevelToLevel(GCConfigLevel level) {\n  switch (level) {\n    case kGCConfigLevel_System:\n      return GIT_CONFIG_LEVEL_SYSTEM;\n    case kGCConfigLevel_XDG:\n      return GIT_CONFIG_LEVEL_XDG;\n    case kGCConfigLevel_Global:\n      return GIT_CONFIG_LEVEL_GLOBAL;\n    case kGCConfigLevel_Local:\n      return GIT_CONFIG_LEVEL_LOCAL;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\n@implementation GCConfigOption\n\n- (id)initWithLevel:(GCConfigLevel)level variable:(NSString*)variable value:(NSString*)value {\n  if ((self = [super init])) {\n    _level = level;\n    _variable = variable;\n    _value = value;\n  }\n  return self;\n}\n\n- (id)initWithEntry:(const git_config_entry*)entry {\n  return [self initWithLevel:_ConfigLevelFromLevel(entry->level) variable:[NSString stringWithUTF8String:entry->name] value:[NSString stringWithUTF8String:entry->value]];\n}\n\n- (NSString*)description {\n  const char* levels[] = {\"System\", \"XDG\", \"Global\", \"Local\"};\n  return [NSString stringWithFormat:@\"[%s] %@ = \\\"%@\\\"\", levels[_level], _variable, _value];\n}\n\n@end\n\n@implementation GCRepository (GCConfig)\n\nstatic inline int _FindConfig(git_repository* repo, GCConfigLevel level, git_buf* buffer) {\n  switch (level) {\n    case kGCConfigLevel_System:\n      return git_config_find_system(buffer);\n    case kGCConfigLevel_XDG:\n      return git_config_find_xdg(buffer);\n    case kGCConfigLevel_Global:\n      return git_config_find_global(buffer);\n    case kGCConfigLevel_Local:\n      return gitup_repository_local_config_path(buffer, repo);\n  }\n  return GIT_ERROR;\n}\n\n- (NSString*)findFilePathForConfigurationLevel:(GCConfigLevel)level error:(NSError**)error {\n  git_buf buffer = {0};\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, _FindConfig, self.private, level, &buffer);\n  NSString* path = [NSString stringWithUTF8String:buffer.ptr];\n  git_buf_free(&buffer);\n  return path;\n}\n\n- (GCConfigOption*)readConfigOptionForVariable:(NSString*)variable error:(NSError**)error {\n  return [self readConfigOptionForLevel:NSNotFound variable:variable error:error];\n}\n\n- (GCConfigOption*)readConfigOptionForLevel:(GCConfigLevel)level variable:(NSString*)variable error:(NSError**)error {\n  GCConfigOption* option = nil;\n  git_config* multiConfig = NULL;\n  git_config* levelConfig = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_config, &multiConfig, self.private);\n  git_config_entry* entry;\n  if (level == (GCConfigLevel)NSNotFound) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_get_entry, &entry, multiConfig, variable.UTF8String);\n  } else {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_open_level, &levelConfig, multiConfig, _ConfigLevelToLevel(level));\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_get_entry, &entry, levelConfig, variable.UTF8String);\n  }\n  option = [[GCConfigOption alloc] initWithEntry:entry];\n  git_config_entry_free(entry);\n\ncleanup:\n  git_config_free(levelConfig);\n  git_config_free(multiConfig);\n  return option;\n}\n\n- (BOOL)writeConfigOptionForLevel:(GCConfigLevel)level variable:(NSString*)variable withValue:(NSString*)value error:(NSError**)error {\n  BOOL success = NO;\n  git_config* multiConfig = NULL;\n  git_config* levelConfig = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_config, &multiConfig, self.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_open_level, &levelConfig, multiConfig, _ConfigLevelToLevel(level));\n  if (value) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_set_string, levelConfig, variable.UTF8String, value.UTF8String);  // git_config_set_string() is the primitive\n  } else {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_delete_entry, levelConfig, variable.UTF8String);\n  }\n  success = YES;\n\ncleanup:\n  git_config_free(levelConfig);\n  git_config_free(multiConfig);\n  return success;\n}\n\nstatic NSArray* _ReadConfig(git_config* config, NSError** error) {\n  BOOL success = NO;\n  NSMutableArray* array = [NSMutableArray array];\n  git_config_iterator* iterator = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_iterator_new, &iterator, config);  // This takes a snapshot internally\n  while (1) {\n    git_config_entry* entry;\n    int status = git_config_next(&entry, iterator);\n    if (status == GIT_ITEROVER) {\n      break;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    [array addObject:[[GCConfigOption alloc] initWithEntry:entry]];\n  }\n  success = YES;\n\ncleanup:\n  git_config_iterator_free(iterator);\n  return success ? array : nil;\n}\n\n- (NSArray*)readConfigForLevel:(GCConfigLevel)level error:(NSError**)error {\n  NSArray* array = nil;\n  git_config* config1 = NULL;\n  git_config* config2 = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_config, &config1, self.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_open_level, &config2, config1, _ConfigLevelToLevel(level));\n  array = _ReadConfig(config2, error);\n\ncleanup:\n  git_config_free(config1);\n  git_config_free(config2);\n  return array;\n}\n\n- (NSArray*)readAllConfigs:(NSError**)error {\n  NSArray* array = nil;\n  git_config* config = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_config, &config, self.private);\n  array = _ReadConfig(config, error);\n\ncleanup:\n  git_config_free(config);\n  return array;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+HEAD-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"GCRepository+Index.h\"\n\n@implementation GCEmptyRepositoryTests (GCRepository_HEAD)\n\n- (void)testUnbornHEAD {\n  // Check unborn\n  XCTAssertTrue(self.repository.HEADUnborn);\n\n  // Make commit\n  XCTAssertNotNil([self.repository createCommitFromHEADWithMessage:@\"Initial commit\" error:NULL]);\n\n  // Check unborn again\n  XCTAssertFalse(self.repository.HEADUnborn);\n}\n\n@end\n\n@implementation GCMultipleCommitsRepositoryTests (GCRepository_HEAD)\n\n// -checkoutIndex:withOptions:error: is tested in GCRepository+Bare\n- (void)testHEAD {\n  // Load HEAD reference\n  GCReference* headReference = [self.repository lookupHEADReference:NULL];\n  XCTAssertNotNil(headReference);\n  XCTAssertTrue(headReference.symbolic);\n\n  // Checkout topic branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.topicBranch options:kGCCheckoutOption_Force error:NULL]);\n  GCLocalBranch* branch1;\n  GCCommit* commit1 = [self.repository lookupHEAD:&branch1 error:NULL];\n  XCTAssertEqualObjects(commit1, self.commitA);\n  XCTAssertEqualObjects(branch1, self.topicBranch);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Goodbye World!\\n\"];\n\n  // Checkout detached HEAD\n  XCTAssertTrue([self.repository checkoutCommit:self.commit2 options:kGCCheckoutOption_Force error:NULL]);\n  GCLocalBranch* branch2;\n  GCCommit* commit2 = [self.repository lookupHEAD:&branch2 error:NULL];\n  XCTAssertEqualObjects(commit2, self.commit2);\n  XCTAssertNil(branch2);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Gutentag Welt!\\n\"];\n\n  // Move HEAD to reference\n  XCTAssertTrue([self.repository setHEADToReference:self.topicBranch error:NULL]);\n  GCLocalBranch* branch3;\n  GCCommit* commit3 = [self.repository lookupHEAD:&branch3 error:NULL];\n  XCTAssertEqualObjects(commit3, self.commitA);\n  XCTAssertEqualObjects(branch3, self.topicBranch);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Gutentag Welt!\\n\"];\n\n  // Move HEAD to commit\n  XCTAssertTrue([self.repository setDetachedHEADToCommit:self.commit1 error:NULL]);\n  GCLocalBranch* branch4;\n  GCCommit* commit4 = [self.repository lookupHEAD:&branch4 error:NULL];\n  XCTAssertEqualObjects(commit4, self.commit1);\n  XCTAssertNil(branch4);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Gutentag Welt!\\n\"];\n\n  // Checkout HEAD\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Bonjour Monde!\\n\"];\n\n  // Checkout master branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:kGCCheckoutOption_Force error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Hola Mundo!\\n\"];\n\n  // Create empty commit\n  GCCommit* emptyCommit = [self.repository createCommitFromHEADWithMessage:@\"Empty\" error:NULL];\n  XCTAssertNotNil(emptyCommit);\n  XCTAssertEqualObjects([self.repository lookupParentsForCommit:emptyCommit error:NULL], @[ self.commit3 ]);\n\n  // Create merge commit\n  GCCommit* mergeCommit = [self.repository createCommitFromHEADAndOtherParent:self.commitA withMessage:@\"Merge\" error:NULL];\n  XCTAssertNotNil(mergeCommit);\n  NSArray* parents = @[ emptyCommit, self.commitA ];\n  XCTAssertEqualObjects([self.repository lookupParentsForCommit:mergeCommit error:NULL], parents);\n\n  // Amend HEAD commit\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"BONJOUR!\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n  GCCommit* amendCommit = [self.repository createCommitByAmendingHEADWithMessage:@\"TEST\" error:NULL];\n  XCTAssertNotNil(amendCommit);\n  GCCommit* newHEAD = [self.repository lookupHEAD:NULL error:NULL];\n  XCTAssertEqualObjects(newHEAD.message, @\"TEST\");\n  XCTAssertEqualObjects([self.repository lookupParentsForCommit:amendCommit error:NULL], parents);\n\n  // Move HEAD\n  XCTAssertTrue([self.repository checkClean:0 error:NULL]);\n  XCTAssertTrue([self.repository moveHEADToCommit:self.commit2 reflogMessage:nil error:NULL]);\n  XCTAssertFalse([self.repository checkClean:0 error:NULL]);\n}\n\n- (void)testCheckoutFileToWorkingDirectory {\n  // Working directory should have content from commit3 (master)\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Hola Mundo!\\n\"];\n\n  // Checkout file from commit1 (earlier version)\n  XCTAssertTrue([self.repository checkoutFileToWorkingDirectory:@\"hello_world.txt\" fromCommit:self.commit1 skipIndex:YES error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Bonjour Monde!\\n\"];\n\n  // Checkout file from initialCommit\n  XCTAssertTrue([self.repository checkoutFileToWorkingDirectory:@\"hello_world.txt\" fromCommit:self.initialCommit skipIndex:YES error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Hello World!\\n\"];\n\n  // Checkout file from commit2\n  XCTAssertTrue([self.repository checkoutFileToWorkingDirectory:@\"hello_world.txt\" fromCommit:self.commit2 skipIndex:YES error:NULL]);\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Gutentag Welt!\\n\"];\n}\n\n- (void)testLookupParentsForCommit {\n  // Test parent of commit1 is initialCommit\n  NSArray* parentsOfCommit1 = [self.repository lookupParentsForCommit:self.commit1 error:NULL];\n  XCTAssertEqual(parentsOfCommit1.count, 1);\n  XCTAssertEqualObjects(parentsOfCommit1.firstObject, self.initialCommit);\n\n  // Test parent of commit2 is commit1\n  NSArray* parentsOfCommit2 = [self.repository lookupParentsForCommit:self.commit2 error:NULL];\n  XCTAssertEqual(parentsOfCommit2.count, 1);\n  XCTAssertEqualObjects(parentsOfCommit2.firstObject, self.commit1);\n\n  // Test parent of commit3 is commit2\n  NSArray* parentsOfCommit3 = [self.repository lookupParentsForCommit:self.commit3 error:NULL];\n  XCTAssertEqual(parentsOfCommit3.count, 1);\n  XCTAssertEqualObjects(parentsOfCommit3.firstObject, self.commit2);\n\n  // Test parent of commitA is initialCommit (branched from there)\n  NSArray* parentsOfCommitA = [self.repository lookupParentsForCommit:self.commitA error:NULL];\n  XCTAssertEqual(parentsOfCommitA.count, 1);\n  XCTAssertEqualObjects(parentsOfCommitA.firstObject, self.initialCommit);\n\n  // Test parent of initialCommit is empty (root commit)\n  NSArray* parentsOfInitial = [self.repository lookupParentsForCommit:self.initialCommit error:NULL];\n  XCTAssertEqual(parentsOfInitial.count, 0);\n}\n\n- (void)testCheckTreeForCommitContainsFile {\n  // hello_world.txt should exist in all commits\n  XCTAssertNotNil([self.repository checkTreeForCommit:self.initialCommit containsFile:@\"hello_world.txt\" error:NULL]);\n  XCTAssertNotNil([self.repository checkTreeForCommit:self.commit1 containsFile:@\"hello_world.txt\" error:NULL]);\n  XCTAssertNotNil([self.repository checkTreeForCommit:self.commit2 containsFile:@\"hello_world.txt\" error:NULL]);\n  XCTAssertNotNil([self.repository checkTreeForCommit:self.commit3 containsFile:@\"hello_world.txt\" error:NULL]);\n  XCTAssertNotNil([self.repository checkTreeForCommit:self.commitA containsFile:@\"hello_world.txt\" error:NULL]);\n\n  // A non-existent file should return nil\n  XCTAssertNil([self.repository checkTreeForCommit:self.commit1 containsFile:@\"nonexistent.txt\" error:NULL]);\n}\n\n- (void)testRestoreFileToParentVersion {\n  // Create a new file in a new commit\n  GCCommit* addCommit = [self makeCommitWithUpdatedFileAtPath:@\"new_file.txt\" string:@\"New Content\\n\" message:@\"Add new file\"];\n  XCTAssertNotNil(addCommit);\n  [self assertContentsOfFileAtPath:@\"new_file.txt\" equalsString:@\"New Content\\n\"];\n\n  // Verify the file exists in addCommit\n  XCTAssertNotNil([self.repository checkTreeForCommit:addCommit containsFile:@\"new_file.txt\" error:NULL]);\n\n  // Verify the file doesn't exist in commit3 (before addCommit)\n  XCTAssertNil([self.repository checkTreeForCommit:self.commit3 containsFile:@\"new_file.txt\" error:NULL]);\n\n  // Make another commit modifying the file\n  GCCommit* modifyCommit = [self makeCommitWithUpdatedFileAtPath:@\"new_file.txt\" string:@\"Modified Content\\n\" message:@\"Modify file\"];\n  XCTAssertNotNil(modifyCommit);\n  [self assertContentsOfFileAtPath:@\"new_file.txt\" equalsString:@\"Modified Content\\n\"];\n\n  // Restore file to version before modifyCommit (should get addCommit's version)\n  NSArray* parentsOfModify = [self.repository lookupParentsForCommit:modifyCommit error:NULL];\n  GCCommit* parentCommit = parentsOfModify.firstObject;\n  XCTAssertNotNil(parentCommit);\n  XCTAssertEqualObjects(parentCommit, addCommit);\n\n  // Checkout file from parent commit\n  XCTAssertTrue([self.repository checkoutFileToWorkingDirectory:@\"new_file.txt\" fromCommit:parentCommit skipIndex:YES error:NULL]);\n  [self assertContentsOfFileAtPath:@\"new_file.txt\" equalsString:@\"New Content\\n\"];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+HEAD.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_OPTIONS(NSUInteger, GCCheckoutOptions) {\n  kGCCheckoutOption_Force = (1 << 0),\n  kGCCheckoutOption_UpdateSubmodulesRecursively = (1 << 1),\n  kGCCheckoutOption_RemoveUntrackedFiles = (1 << 2),\n};\n\n@interface GCRepository (HEAD)\n@property(nonatomic, readonly, getter=isHEADUnborn) BOOL HEADUnborn;\n\n- (GCReference*)lookupHEADReference:(NSError**)error;  // Returns the \"raw\" reference for HEAD\n- (GCCommit*)lookupHEAD:(GCLocalBranch**)currentBranch error:(NSError**)error;  // \"currentBranch\" is optional and will be set to nil if the HEAD is detached\n- (BOOL)lookupHEADCurrentCommit:(GCCommit**)commit branch:(GCLocalBranch**)branch error:(NSError**)error;  // \"commit\" is optional and will be set to nil if HEAD is unborn and \"branch\" is optional and will be set to nil if HEAD is unborn or detached\n\n- (BOOL)setHEADToReference:(GCReference*)reference error:(NSError**)error;  // git update-ref --no-deref HEAD {branch}\n- (BOOL)setDetachedHEADToCommit:(GCCommit*)commit error:(NSError**)error;  // git update-ref HEAD {commit}\n\n- (BOOL)moveHEADToCommit:(GCCommit*)commit reflogMessage:(NSString*)message error:(NSError**)error;  // git reset --soft {commit} (but with custom reflog message)\n- (BOOL)updateSubmoduleReferenceAtPath:(NSString*)submodulePath toCommitSHA1:(NSString*)commitSHA1 error:(NSError**)error;\n\n- (BOOL)checkoutCommit:(GCCommit*)commit options:(GCCheckoutOptions)options error:(NSError**)error;  // git checkout {commit}\n- (BOOL)checkoutLocalBranch:(GCLocalBranch*)branch options:(GCCheckoutOptions)options error:(NSError**)error;  // git checkout {branch}\n- (BOOL)checkoutTreeForCommit:(GCCommit*)commit  // Pass nil for HEAD\n                 withBaseline:(GCCommit*)baseline  // Pass nil for HEAD\n                      options:(GCCheckoutOptions)options\n                        error:(NSError**)error;\n- (BOOL)checkoutIndex:(GCIndex*)index withOptions:(GCCheckoutOptions)options error:(NSError**)error;  // This will checkout conflicts\n\n- (BOOL)checkoutFileToWorkingDirectory:(NSString*)path fromCommit:(GCCommit*)commit skipIndex:(BOOL)skipIndex error:(NSError**)error;  // git checkout {commit} {file}\n\n- (GCCommit*)createCommitFromHEADWithMessage:(NSString*)message error:(NSError**)error;  // git commit --allow-empty -m {message}\n- (GCCommit*)createCommitFromHEADAndOtherParent:(GCCommit*)parent withMessage:(NSString*)message error:(NSError**)error;  // git commit --allow-empty -m {message}\n- (GCCommit*)createCommitByAmendingHEADWithMessage:(NSString*)message error:(NSError**)error;  // git commit --amend -m {message}\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+HEAD.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCRepository (HEAD)\n\n#pragma mark - HEAD Manipulation\n\n- (BOOL)isHEADUnborn {\n  int status = git_repository_head_unborn(self.private);\n  if (status > 0) {\n    return YES;\n  }\n  if (status < 0) {\n    XLOG_DEBUG_UNREACHABLE();\n    LOG_LIBGIT2_ERROR(status);\n  }\n  return NO;\n}\n\n- (GCReference*)lookupHEADReference:(NSError**)error {\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reference_lookup, &reference, self.private, kHEADReferenceFullName);\n  return [[GCReference alloc] initWithRepository:self reference:reference];\n}\n\n- (GCCommit*)lookupHEAD:(GCLocalBranch**)currentBranch error:(NSError**)error {\n  git_reference* headReference = NULL;\n  git_commit* headCommit = [self loadHEADCommit:(currentBranch ? &headReference : NULL) error:error];\n  if (headCommit == NULL) {\n    return NULL;\n  }\n  if (currentBranch) {\n    *currentBranch = headReference ? [[GCLocalBranch alloc] initWithRepository:self reference:headReference] : nil;\n  }\n  return [[GCCommit alloc] initWithRepository:self commit:headCommit];\n}\n\n- (BOOL)lookupHEADCurrentCommit:(GCCommit**)commit branch:(GCLocalBranch**)branch error:(NSError**)error {\n  git_commit* headCommit = NULL;\n  git_reference* headReference = NULL;\n  if (![self loadHEADCommit:(commit ? &headCommit : NULL) resolvedReference:(branch ? &headReference : NULL)error:error]) {\n    return NO;\n  }\n  if (commit) {\n    *commit = headCommit ? [[GCCommit alloc] initWithRepository:self commit:headCommit] : nil;\n  }\n  if (branch) {\n    *branch = headReference ? [[GCLocalBranch alloc] initWithRepository:self reference:headReference] : nil;\n  }\n  return YES;\n}\n\n- (BOOL)setHEADToReference:(GCReference*)reference error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_repository_set_head, self.private, git_reference_name(reference.private));  // This uses a \"checkout: \" reflog message\n  return YES;\n}\n\n- (BOOL)setDetachedHEADToCommit:(GCCommit*)commit error:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_repository_set_head_detached, self.private, git_commit_id(commit.private));  // This uses a \"checkout: \" reflog message\n  return YES;\n}\n\n- (BOOL)moveHEADToCommit:(GCCommit*)commit reflogMessage:(NSString*)message error:(NSError**)error {\n  git_reference* headReference;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_repository_head, &headReference, self.private);\n  BOOL success = [self setTargetOID:git_commit_id(commit.private) forReference:headReference reflogMessage:message newReference:NULL error:error];\n  git_reference_free(headReference);\n  return success;\n}\n\n#pragma mark - Commit Creation\n\n- (GCCommit*)createCommitFromHEADWithMessage:(NSString*)message error:(NSError**)error {\n  return [self createCommitFromHEADAndOtherParent:nil withMessage:message error:error];\n}\n\n- (GCCommit*)createCommitFromHEADAndOtherParent:(GCCommit*)parent withMessage:(NSString*)message error:(NSError**)error {\n  BOOL success = NO;\n  GCCommit* commit = nil;\n  git_reference* headReference = NULL;\n  git_commit* headCommit = NULL;\n  git_index* index = NULL;\n  NSString* reflogMessage;\n\n  int status = git_repository_head(&headReference, self.private);  // Returns a direct reference or GIT_EUNBORNBRANCH\n  if (status != GIT_EUNBORNBRANCH) {\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    XLOG_DEBUG_CHECK(git_reference_type(headReference) == GIT_REF_OID);\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &headCommit, self.private, git_reference_target(headReference));\n  } else if (parent) {\n    GC_SET_GENERIC_ERROR(@\"Secondary parent not allowed for unborn HEAD\");\n    goto cleanup;\n  }\n\n  index = [self reloadRepositoryIndex:error];\n  if (index == NULL) {\n    goto cleanup;\n  }\n\n  const git_commit* parents[2] = {headCommit, parent.private};\n  commit = [self createCommitFromIndex:index withParents:parents count:(headCommit ? (parent ? 2 : 1) : 0)author:NULL message:message error:error];\n  if (commit == nil) {\n    goto cleanup;\n  }\n\n  if (headReference == NULL) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_lookup, &headReference, self.private, kHEADReferenceFullName);\n  }\n  if (headCommit) {\n    reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_Git_Commit, commit.summary];\n  } else {\n    reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_Git_Commit_Initial, commit.summary];\n  }\n  if (![self setTargetOID:git_commit_id(commit.private) forReference:headReference reflogMessage:reflogMessage newReference:NULL error:error]) {\n    goto cleanup;\n  }\n\n  if (![self cleanupState:error]) {\n    goto cleanup;\n  }\n  success = YES;\n\ncleanup:\n  git_index_free(index);\n  git_commit_free(headCommit);\n  git_reference_free(headReference);\n  return success ? commit : nil;\n}\n\n- (GCCommit*)createCommitByAmendingHEADWithMessage:(NSString*)message error:(NSError**)error {\n  BOOL success = NO;\n  GCCommit* commit = nil;\n  git_reference* headReference = NULL;\n  git_commit* headCommit = NULL;\n  git_index* index = NULL;\n  NSString* reflogMessage;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_head, &headReference, self.private);  // Returns a direct reference or GIT_EUNBORNBRANCH\n  XLOG_DEBUG_CHECK(git_reference_type(headReference) == GIT_REF_OID);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &headCommit, self.private, git_reference_target(headReference));\n\n  index = [self reloadRepositoryIndex:error];\n  if (index == NULL) {\n    goto cleanup;\n  }\n\n  commit = [self createCommitFromCommit:headCommit withIndex:index updatedMessage:message updatedParents:nil updateCommitter:YES error:error];\n  if (commit == nil) {\n    goto cleanup;\n  }\n\n  reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_Git_Commit_Amend, commit.summary];\n  if (![self setTargetOID:git_commit_id(commit.private) forReference:headReference reflogMessage:reflogMessage newReference:NULL error:error]) {\n    goto cleanup;\n  }\n\n  if (![self cleanupState:error]) {\n    goto cleanup;\n  }\n  success = YES;\n\ncleanup:\n  git_index_free(index);\n  git_commit_free(headCommit);\n  git_reference_free(headReference);\n  return success ? commit : nil;\n}\n\n#pragma mark - Checkout\n\n- (BOOL)_checkoutTreeForCommit:(GCCommit*)commit\n                  withBaseline:(GCCommit*)baseline\n                       options:(GCCheckoutOptions)options\n                         error:(NSError**)error {\n  CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n  git_tree* tree = NULL;\n  git_checkout_options checkoutOptions = GIT_CHECKOUT_OPTIONS_INIT;\n  checkoutOptions.checkout_strategy = options & kGCCheckoutOption_Force ? GIT_CHECKOUT_FORCE : GIT_CHECKOUT_SAFE;\n\n  if (options & kGCCheckoutOption_RemoveUntrackedFiles) {\n    checkoutOptions.checkout_strategy |= GIT_CHECKOUT_REMOVE_UNTRACKED;\n  }\n\n  if (baseline) {\n    CALL_LIBGIT2_FUNCTION_RETURN(NO, git_commit_tree, &tree, baseline.private);\n    checkoutOptions.baseline = tree;\n  }\n  int status = git_checkout_tree(self.private, (git_object*)commit.private, &checkoutOptions);\n  git_tree_free(tree);\n  CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);\n  XLOG_VERBOSE(@\"Checked out %@ from \\\"%@\\\" in %.3f seconds\", commit ? commit.shortSHA1 : @\"HEAD\", self.repositoryPath, CFAbsoluteTimeGetCurrent() - time);\n  return YES;\n}\n\n// Because by default git_checkout_tree() assumes the baseline (i.e. expected content of workdir) is HEAD we must checkout first, then update HEAD\n- (BOOL)checkoutCommit:(GCCommit*)commit options:(GCCheckoutOptions)options error:(NSError**)error {\n  if (![self _checkoutTreeForCommit:commit withBaseline:nil options:options error:error] || ![self setDetachedHEADToCommit:commit error:error]) {\n    return NO;\n  }\n  if (options & kGCCheckoutOption_UpdateSubmodulesRecursively) {\n    return [self updateAllSubmodulesResursively:(options & kGCCheckoutOption_Force ? YES : NO) error:error];  // This must happen after moving HEAD\n  }\n  return YES;\n}\n\n- (BOOL)updateSubmoduleReferenceAtPath:(NSString*)submodulePath toCommitSHA1:(NSString*)commitSHA1 error:(NSError**)error {\n  GCSubmodule* submodule = [self lookupSubmoduleWithName:submodulePath error:error];\n  if (!submodule) {\n    return NO;\n  }\n\n  GCRepository* submoduleRepository = [[GCRepository alloc] initWithSubmodule:submodule error:error];\n  if (!submoduleRepository) {\n    return NO;\n  }\n\n  GCCommit* targetCommit = [submoduleRepository findCommitWithSHA1:commitSHA1 error:error];\n  if (!targetCommit) {\n    return NO;\n  }\n\n  return [submoduleRepository checkoutCommit:targetCommit options:kGCCheckoutOption_UpdateSubmodulesRecursively error:error];\n}\n\n// Because by default git_checkout_tree() assumes the baseline (i.e. expected content of workdir) is HEAD we must checkout first, then update HEAD\n- (BOOL)checkoutLocalBranch:(GCLocalBranch*)branch options:(GCCheckoutOptions)options error:(NSError**)error {\n  GCCommit* tipCommit = [self lookupTipCommitForBranch:branch error:error];\n  if (!tipCommit || ![self _checkoutTreeForCommit:tipCommit withBaseline:nil options:options error:error] || ![self setHEADToReference:branch error:error]) {\n    return NO;\n  }\n  if (options & kGCCheckoutOption_UpdateSubmodulesRecursively) {\n    return [self updateAllSubmodulesResursively:(options & kGCCheckoutOption_Force ? YES : NO) error:error];  // This must happen after moving HEAD\n  }\n  return YES;\n}\n\n- (BOOL)checkoutTreeForCommit:(GCCommit*)commit\n                 withBaseline:(GCCommit*)baseline\n                      options:(GCCheckoutOptions)options\n                        error:(NSError**)error {\n  if (![self _checkoutTreeForCommit:commit withBaseline:baseline options:options error:error]) {\n    return NO;\n  }\n  if (options & kGCCheckoutOption_UpdateSubmodulesRecursively) {\n    return [self updateAllSubmodulesResursively:(options & kGCCheckoutOption_Force ? YES : NO) error:error];\n  }\n  return YES;\n}\n\n- (BOOL)checkoutIndex:(GCIndex*)index withOptions:(GCCheckoutOptions)options error:(NSError**)error {\n  git_checkout_options checkoutOptions = GIT_CHECKOUT_OPTIONS_INIT;\n  checkoutOptions.checkout_strategy = options & kGCCheckoutOption_Force ? GIT_CHECKOUT_FORCE : GIT_CHECKOUT_SAFE;\n  checkoutOptions.checkout_strategy |= GIT_CHECKOUT_ALLOW_CONFLICTS;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_checkout_index, self.private, index.private, &checkoutOptions);\n  if (options & kGCCheckoutOption_UpdateSubmodulesRecursively) {\n    return [self updateAllSubmodulesResursively:(options & kGCCheckoutOption_Force ? YES : NO) error:error];\n  }\n  return YES;\n}\n\n- (BOOL)checkoutFileToWorkingDirectory:(NSString*)path fromCommit:(GCCommit*)commit skipIndex:(BOOL)skipIndex error:(NSError**)error {\n  git_checkout_options options = GIT_CHECKOUT_OPTIONS_INIT;\n  options.checkout_strategy = GIT_CHECKOUT_FORCE | GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH;\n  if (skipIndex) {\n    options.checkout_strategy |= GIT_CHECKOUT_DONT_UPDATE_INDEX;\n  }\n  options.paths.count = 1;\n  const char* filePath = GCGitPathFromFileSystemPath(path);\n  options.paths.strings = (char**)&filePath;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_checkout_tree, self.private, (git_object*)commit.private, &options);\n  return YES;\n}\n\n@end\n\n@implementation GCRepository (HEAD_Private)\n\n- (git_commit*)loadHEADCommit:(git_reference**)resolvedReference error:(NSError**)error {\n  git_commit* commit;\n  if (![self loadHEADCommit:&commit resolvedReference:resolvedReference error:error]) {\n    return NULL;\n  }\n  if (commit == NULL) {\n    GC_SET_GENERIC_ERROR(@\"HEAD is unborn\");\n    return NULL;\n  }\n  return commit;\n}\n\n- (BOOL)loadHEADCommit:(git_commit**)commit resolvedReference:(git_reference**)resolvedReference error:(NSError**)error {\n  BOOL success = NO;\n  git_reference* headReference = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_lookup, &headReference, self.private, kHEADReferenceFullName);\n  // Check if HEAD is attached or unborn\n  if (git_reference_type(headReference) == GIT_REF_SYMBOLIC) {\n    git_reference* branchReference;\n    int status = git_reference_resolve(&branchReference, headReference);\n    // Check if HEAD is unborn\n    if (status == GIT_ENOTFOUND) {\n      if (commit) {\n        *commit = NULL;\n      }\n      if (resolvedReference) {\n        *resolvedReference = NULL;\n      }\n    }\n    // Otherwise HEAD is attached\n    else {\n      CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n      if (commit) {\n        *commit = [self loadCommitFromBranchReference:branchReference error:error];\n        if (*commit == NULL) {\n          goto cleanup;\n        }\n      }\n      if (resolvedReference) {\n        *resolvedReference = branchReference;\n      } else {\n        git_reference_free(branchReference);\n      }\n    }\n  }\n  // Otherwise HEAD is detached\n  else {\n    XLOG_DEBUG_CHECK(git_reference_type(headReference) == GIT_REF_OID);\n    if (commit) {\n      *commit = [self loadCommitFromBranchReference:headReference error:error];\n      if (*commit == NULL) {\n        goto cleanup;\n      }\n    }\n    if (resolvedReference) {\n      *resolvedReference = NULL;\n    }\n  }\n  success = YES;\n\ncleanup:\n  git_reference_free(headReference);\n  return success;\n}\n\n#if DEBUG\n\n- (BOOL)mergeCommitToHEAD:(GCCommit*)commit error:(NSError**)error {\n  BOOL success = NO;\n  git_annotated_commit* annotatedCommit = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_annotated_commit_lookup, &annotatedCommit, self.private, git_commit_id(commit.private));\n  git_merge_options mergeOptions = GIT_MERGE_OPTIONS_INIT;\n  git_checkout_options checkoutOptions = GIT_CHECKOUT_OPTIONS_INIT;\n  checkoutOptions.checkout_strategy = GIT_CHECKOUT_SAFE;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_merge, self.private, (const git_annotated_commit**)&annotatedCommit, 1, &mergeOptions, &checkoutOptions);\n  success = YES;\n\ncleanup:\n  git_annotated_commit_free(annotatedCommit);\n  return success;\n}\n\n#endif\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Mock-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCEmptyRepositoryTests (GCRepository_Mock)\n\n- (void)testNotation {\n  // Create mock commits\n  NSString* notation = @\"\\\nm0 - m1<master> - m2 - m3[origin/master] \\n\\\n \\\\ \\n\\\n  \\\\ \\n\\\n  t0(m0) - t1 - t2{temp} - t3 - t4<topic>\";\n  XCTAssertNotNil([self.repository createMockCommitHierarchyFromNotation:notation force:NO error:NULL]);\n\n  // Load history\n  GCHistory* history = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history);\n\n  // Dump notation\n  XCTAssertEqualObjects([history notationFromMockCommitHierarchy], @\"m0 m1(m0)<master> m2(m1) m3(m2)[origin/master] t0(m0) t1(t0) t2(t1){temp} t3(t2) t4(t3)<topic>\");\n\n  // Check commits\n  NSMutableSet* messages = [[NSMutableSet alloc] init];\n  for (GCHistoryCommit* commit in history.allCommits) {\n    [messages addObject:commit.summary];\n  }\n  NSSet* set = [NSSet setWithObjects:@\"m0\", @\"m1\", @\"m2\", @\"m3\", @\"t0\", @\"t1\", @\"t2\", @\"t3\", @\"t4\", nil];\n  XCTAssertEqualObjects(messages, set);\n\n  // Check tags\n  XCTAssertEqual(history.tags.count, 1);\n  GCHistoryTag* tag = history.tags[0];\n  XCTAssertEqualObjects(tag.name, @\"temp\");\n  XCTAssertEqualObjects(tag.commit.message, @\"t2\");\n\n  // Check local branches\n  XCTAssertEqual(history.localBranches.count, 2);\n  GCHistoryLocalBranch* masterBranch = history.localBranches[0];\n  XCTAssertEqualObjects(masterBranch.name, @\"master\");\n  XCTAssertEqualObjects(masterBranch.tipCommit.message, @\"m1\");\n  GCHistoryLocalBranch* topicBranch = history.localBranches[1];\n  XCTAssertEqualObjects(topicBranch.name, @\"topic\");\n  XCTAssertEqualObjects(topicBranch.tipCommit.message, @\"t4\");\n\n  // Check remote branches\n  XCTAssertEqual(history.remoteBranches.count, 1);\n  GCHistoryRemoteBranch* originBranch = history.remoteBranches[0];\n  XCTAssertEqualObjects(originBranch.name, @\"origin/master\");\n  XCTAssertEqualObjects(originBranch.tipCommit.message, @\"m3\");\n\n  // Attempt to re-create mock commits again\n  XCTAssertNil([self.repository createMockCommitHierarchyFromNotation:notation force:NO error:NULL]);\n  XCTAssertNotNil([self.repository createMockCommitHierarchyFromNotation:notation force:YES error:NULL]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Mock.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\n/*\n The notation for a mock commit hierarchy is described using a simple plain text format:\n\n m0 - m1<master> - m2 - m3[origin/master]\n  \\\n  t0(m0) - t1 - t2{temp} - t3 - t4<topic>\n\n - Each line describes a series of commits to be created in order from left to right\n - Lines are processed in order from top to bottom\n - Empty lines or lines starting with \"#\" are ignored\n - A commit is formatted as \"message(parents){tag}<local_branch>[remote_branch]\"\n  - \"message\" is required and *must* be unique (it *cannot* contain whitespace characters either)\n  - \"(parents)\" is optional\n   - If present, it must be a comma separated list of *previously* created commits identified by their messages\n   - If not present and if the commit message has a numerical suffix greater than zero, then a single parent is automatically assumed by decrementing the suffix e.g. \"foo12\" -> \"foo11\"\n  - \"{tag}\" is optional and if present indicates the name of a lightweight tag to be created that points to this commit\n  - \"<local_branch>\" is optional and if present indicates the name of a local branch to be created that points to this commit\n  - \"[remote_branch]\" is optional and if present indicates the name of a local branch to be created that points to this commit\n  - The commit author and committer are always set to \"user <user@domain.com>\"\n  - The commit date is automatically set to 2001-01-01 00:00:00 GMT for the very first commit created and increased by 1 second for each commit created afterwards\n - All whitespace and non-alphanumerical characters are ignored (for instance the \"-\" and \"\\\" are only present to help visualizing the notation result)\n*/\n\n@interface GCRepository (Mock)\n- (NSArray*)createMockCommitHierarchyFromNotation:(NSString*)notation force:(BOOL)force error:(NSError**)error;\n@end\n\n@interface GCHistory (Mock)\n- (NSString*)notationFromMockCommitHierarchy;\n- (GCHistoryCommit*)mockCommitWithName:(NSString*)name;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Mock.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCRepository (Mock)\n\nstatic const git_oid* _CommitParentCallback(size_t idx, void* payload) {\n  void** params = (void**)payload;\n  CFDictionaryRef commits = params[0];\n  NSArray* parents = (__bridge NSArray*)params[1];\n  if (idx < parents.count) {\n    GCCommit* commit = CFDictionaryGetValue(commits, (__bridge void*)parents[idx]);\n    XLOG_DEBUG_CHECK(commit);\n    return git_commit_id(commit.private);\n  }\n  return NULL;\n}\n\n- (NSArray*)createMockCommitHierarchyFromNotation:(NSString*)notation force:(BOOL)force error:(NSError**)error {\n  BOOL success = NO;\n  NSMutableArray* commits = [[NSMutableArray alloc] init];\n  CFMutableDictionaryRef cache = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, NULL);\n  git_signature* signature = NULL;\n  git_treebuilder* builder = NULL;\n  git_oid treeOID;\n\n  // Create empty tree\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_treebuilder_new, &builder, self.private, NULL);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_treebuilder_write, &treeOID, builder);\n\n  // Parse notation lines\n  for (NSString* line in [notation componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]]) {\n    if (!line.length || ([line characterAtIndex:0] == '#')) {\n      continue;\n    }\n    NSScanner* scanner = [[NSScanner alloc] initWithString:line];\n    scanner.charactersToBeSkipped = nil;\n    while (1) {\n      [scanner scanUpToCharactersFromSet:[NSCharacterSet alphanumericCharacterSet] intoString:NULL];\n      NSString* string;\n      if (![scanner scanUpToCharactersFromSet:[NSCharacterSet whitespaceCharacterSet] intoString:&string]) {\n        break;\n      }\n\n      // Parse commit description\n      NSString* message = nil;\n      NSString* tag = nil;\n      NSString* localBranch = nil;\n      NSString* remoteBranch = nil;\n      NSMutableArray* parents = [[NSMutableArray alloc] init];\n      NSRange range = [string rangeOfCharacterFromSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]];\n      if (range.location != NSNotFound) {\n        message = [string substringToIndex:range.location];\n        NSUInteger index = range.location;\n        while (index < string.length) {\n          switch ([string characterAtIndex:index]) {\n            // Parents\n            case '(': {\n              range = [string rangeOfString:@\")\" options:0 range:NSMakeRange(index, string.length - index)];\n              if (range.location == NSNotFound) {\n                GC_SET_GENERIC_ERROR(@\"Missing closing token\");\n                goto cleanup;\n              }\n              for (NSString* parent in [[string substringWithRange:NSMakeRange(index + 1, range.location - index - 1)] componentsSeparatedByString:@\",\"]) {\n                [parents addObject:[parent stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]];\n              }\n              index = range.location + range.length;\n              break;\n            }\n\n            // Tag\n            case '{': {\n              range = [string rangeOfString:@\"}\" options:0 range:NSMakeRange(index, string.length - index)];\n              if (range.location == NSNotFound) {\n                GC_SET_GENERIC_ERROR(@\"Missing closing token\");\n                goto cleanup;\n              }\n              tag = [string substringWithRange:NSMakeRange(index + 1, range.location - index - 1)];\n              index = range.location + range.length;\n              break;\n            }\n\n            // Local branch\n            case '<': {\n              range = [string rangeOfString:@\">\" options:0 range:NSMakeRange(index, string.length - index)];\n              if (range.location == NSNotFound) {\n                GC_SET_GENERIC_ERROR(@\"Missing closing token\");\n                goto cleanup;\n              }\n              localBranch = [string substringWithRange:NSMakeRange(index + 1, range.location - index - 1)];\n              index = range.location + range.length;\n              break;\n            }\n\n            // Remote branch\n            case '[': {\n              range = [string rangeOfString:@\"]\" options:0 range:NSMakeRange(index, string.length - index)];\n              if (range.location == NSNotFound) {\n                GC_SET_GENERIC_ERROR(@\"Missing closing token\");\n                goto cleanup;\n              }\n              remoteBranch = [string substringWithRange:NSMakeRange(index + 1, range.location - index - 1)];\n              index = range.location + range.length;\n              break;\n            }\n\n            default: {\n              XLOG_DEBUG_UNREACHABLE();\n              GC_SET_GENERIC_ERROR(@\"Invalid token\");\n              goto cleanup;\n            }\n          }\n        }\n      } else {\n        message = string;\n      }\n      if (!parents.count) {\n        range = [message rangeOfCharacterFromSet:[NSCharacterSet decimalDigitCharacterSet]];\n        if (range.location != NSNotFound) {\n          NSInteger index = [[message substringFromIndex:range.location] integerValue];\n          if (index) {\n            [parents addObject:[NSString stringWithFormat:@\"%@%li\", [message substringToIndex:range.location], (long)(index - 1)]];\n          }\n        }\n      }\n\n      // Create commit with empty tree\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_signature_new, &signature, \"user\", \"user@domain.com\", NSTimeIntervalSince1970 + commits.count, 0);\n      git_oid oid;\n      void* params[] = {cache, (__bridge void*)parents};\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_create_from_callback, &oid, self.private, NULL, signature, signature, NULL, message.UTF8String, &treeOID, _CommitParentCallback, params);\n      git_signature_free(signature);\n      signature = NULL;\n      git_commit* emptyCommit;\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &emptyCommit, self.private, &oid);\n      GCCommit* commit = [[GCCommit alloc] initWithRepository:self commit:emptyCommit];\n      [commits addObject:commit];\n      XLOG_DEBUG_CHECK(!CFDictionaryContainsValue(cache, (__bridge const void*)message));\n      CFDictionarySetValue(cache, (__bridge const void*)message, (__bridge const void*)commit);\n\n      // Create lightweight tag if necessary\n      if (tag) {\n        const char* refName = [[@kTagsNamespace stringByAppendingString:tag] UTF8String];\n        git_reference* reference;\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_create, &reference, self.private, refName, &oid, force, NULL);\n        git_reference_free(reference);\n      }\n\n      // Create local branch if necessary\n      if (localBranch) {\n        const char* refName = [[@kHeadsNamespace stringByAppendingString:localBranch] UTF8String];\n        git_reference* reference;\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_create, &reference, self.private, refName, &oid, force, NULL);\n        git_reference_free(reference);\n      }\n\n      // Create remote branch if necessary\n      if (remoteBranch) {\n        const char* refName = [[@kRemotesNamespace stringByAppendingString:remoteBranch] UTF8String];\n        git_reference* reference;\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_create, &reference, self.private, refName, &oid, force, NULL);\n        git_reference_free(reference);\n      }\n    }\n  }\n  success = YES;\n\ncleanup:\n  git_treebuilder_free(builder);\n  git_signature_free(signature);\n  CFRelease(cache);\n  return success ? commits : nil;\n}\n\n@end\n\n@implementation GCHistory (Mock)\n\n- (NSString*)notationFromMockCommitHierarchy {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  for (GCHistoryCommit* commit in self.allCommits) {\n    NSMutableString* string = [[NSMutableString alloc] init];\n    [string appendString:commit.summary];\n\n    NSArray* parents = commit.parents;\n    if (parents.count) {\n      [string appendString:@\"(\"];\n      for (NSUInteger i = 0; i < parents.count; ++i) {\n        GCHistoryCommit* parent = parents[i];\n        if (i > 0) {\n          [string appendString:@\",\"];\n        }\n        [string appendString:parent.summary];\n      }\n      [string appendString:@\")\"];\n    }\n\n    for (GCHistoryTag* tag in commit.tags) {\n      [string appendFormat:@\"{%@}\", tag.name];\n    }\n    for (GCHistoryLocalBranch* localBranch in commit.localBranches) {\n      [string appendFormat:@\"<%@>\", localBranch.name];\n    }\n    for (GCHistoryRemoteBranch* remoteBranch in commit.remoteBranches) {\n      [string appendFormat:@\"[%@]\", remoteBranch.name];\n    }\n\n    [array addObject:string];\n  }\n  return [[array sortedArrayUsingSelector:@selector(localizedStandardCompare:)] componentsJoinedByString:@\" \"];\n}\n\n// TODO: Should we optimize this?\n- (GCHistoryCommit*)mockCommitWithName:(NSString*)name {\n  for (GCHistoryCommit* commit in self.allCommits) {\n    if ([commit.summary isEqualToString:name]) {\n      return commit;\n    }\n  }\n  return nil;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Reflog-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCMultipleCommitsRepositoryTests (GCRepository_Reflog)\n\n- (void)testReflogs {\n  // Load reflog entries for HEAD\n  NSArray* entries0 = [self.repository loadReflogEntriesForReference:[self.repository lookupHEADReference:NULL] error:NULL];\n  XCTAssertEqual(entries0.count, 7);\n  XCTAssertEqualObjects([entries0.lastObject messages][0], @\"commit (initial): Initial commit\");\n\n  // Load reflog entries for \"master\" branch\n  NSArray* entries1 = [self.repository loadReflogEntriesForReference:self.masterBranch error:NULL];\n  XCTAssertEqual(entries1.count, 4);\n\n  // Load reflog entries for \"topic\" branch\n  NSArray* entries2 = [self.repository loadReflogEntriesForReference:self.topicBranch error:NULL];\n  XCTAssertEqual(entries2.count, 2);\n\n  // Load unified reflog\n  NSArray* entries3 = [self.repository loadAllReflogEntries:NULL];\n  XCTAssertNotNil(entries3);\n  XCTAssertGreaterThanOrEqual(entries3.count, 6);\n  XCTAssertEqualObjects([entries3.lastObject messages][0], @\"commit (initial): Initial commit\");\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Reflog.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\n@class GCCommit;\n\ntypedef NS_OPTIONS(NSUInteger, GCReflogActions) {\n  kGCReflogAction_GitUp = (1 << 0),\n  kGCReflogAction_InitialCommit = (1 << 1),\n  kGCReflogAction_Commit = (1 << 2),\n  kGCReflogAction_AmendCommit = (1 << 3),\n  kGCReflogAction_Checkout = (1 << 4),\n  kGCReflogAction_CreateBranch = (1 << 5),\n  kGCReflogAction_RenameBranch = (1 << 6),\n  kGCReflogAction_Merge = (1 << 7),\n  kGCReflogAction_Reset = (1 << 8),\n  kGCReflogAction_Rebase = (1 << 9),\n  kGCReflogAction_CherryPick = (1 << 10),\n  kGCReflogAction_Revert = (1 << 11),\n  kGCReflogAction_Fetch = (1 << 12),\n  kGCReflogAction_Push = (1 << 13),\n  kGCReflogAction_Pull = (1 << 14),\n  kGCReflogAction_Clone = (1 << 15)\n};\n\n@interface GCReflogEntry : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) NSString* fromSHA1;  // May be nil\n@property(nonatomic, readonly) GCCommit* fromCommit;  // May be nil\n@property(nonatomic, readonly) NSString* toSHA1;\n@property(nonatomic, readonly) GCCommit* toCommit;  // May be nil\n@property(nonatomic, readonly) NSDate* date;\n@property(nonatomic, readonly) NSTimeZone* timeZone;\n@property(nonatomic, readonly) NSString* committerName;\n@property(nonatomic, readonly) NSString* committerEmail;\n@property(nonatomic, readonly) NSArray* references;  // Matches @messages\n@property(nonatomic, readonly) NSArray* messages;  // Matches @references\n@property(nonatomic, readonly) GCReflogActions actions;  // Guessed from messages (might not be reliable)\n@end\n\n@interface GCReflogEntry (Extensions)\n- (BOOL)isEqualToReflogEntry:(GCReflogEntry*)entry;\n@end\n\n@interface GCRepository (Reflog)\n- (NSArray*)loadReflogEntriesForReference:(GCReference*)reference error:(NSError**)error;  // git reflog {reference}\n- (NSArray*)loadAllReflogEntries:(NSError**)error;  // This deduplicate entries\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Reflog.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCReflogEntry {\n  GCRepository* _repository;\n  NSMutableArray* _references;\n  NSMutableArray* _messages;\n  git_oid _fromOID;\n  git_oid _toOID;\n  git_time _time;\n}\n\nstatic inline GCCommit* _LoadCommit(GCRepository* repository, const git_oid* oid) {\n  git_commit* commit;\n  int status = git_commit_lookup(&commit, repository.private, oid);\n  if (status != GIT_OK) {\n    XLOG_WARNING(@\"Unable to find commit %s in \\\"%@\\\" (%i): %@\", git_oid_tostr_s(oid), repository.repositoryPath, status, GetLastGitErrorMessage());\n    return nil;\n  }\n  return [[GCCommit alloc] initWithRepository:repository commit:commit];\n}\n\n- (id)initWithRepository:(GCRepository*)repository entry:(const git_reflog_entry*)entry {\n  if ((self = [super init])) {\n    _repository = repository;\n\n    git_oid_cpy(&_fromOID, git_reflog_entry_id_old(entry));\n    if (!git_oid_iszero(&_fromOID)) {\n      _fromSHA1 = [GCGitOIDToSHA1(&_fromOID) retain];\n      _fromCommit = _LoadCommit(_repository, &_fromOID);\n    }\n    git_oid_cpy(&_toOID, git_reflog_entry_id_new(entry));\n    if (!git_oid_iszero(&_toOID)) {\n      _toSHA1 = [GCGitOIDToSHA1(&_toOID) retain];\n      _toCommit = _LoadCommit(_repository, &_toOID);\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n    const git_signature* signature = git_reflog_entry_committer(entry);\n    _time = signature->when;\n    _committerName = [[NSString alloc] initWithUTF8String:signature->name];\n    _committerEmail = [[NSString alloc] initWithUTF8String:signature->email];\n\n    _references = [[NSMutableArray alloc] init];\n    _messages = [[NSMutableArray alloc] init];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [_fromSHA1 release];\n  [_fromCommit release];\n  [_toSHA1 release];\n  [_toCommit release];\n  [_committerName release];\n  [_committerEmail release];\n\n  [_references release];\n  [_messages release];\n\n  [super dealloc];\n}\n\n- (const git_oid*)fromOID {\n  return &_fromOID;\n}\n\n- (const git_oid*)toOID {\n  return &_toOID;\n}\n\n- (NSDate*)date {\n  return [NSDate dateWithTimeIntervalSince1970:_time.time];\n}\n\n- (NSTimeZone*)timeZone {\n  return [NSTimeZone timeZoneForSecondsFromGMT:(_time.offset * 60)];\n}\n\nstatic inline BOOL _CStringHasPrefix(const char* string, const char* prefix) {\n  return !strncmp(string, prefix, strlen(prefix));\n}\n\nstatic inline GCReflogActions _ActionsFromMessage(const char* message) {\n  if (_CStringHasPrefix(message, kGCReflogCustomPrefix)) {\n    return kGCReflogAction_GitUp;\n  }\n\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Commit)) {\n    return kGCReflogAction_Commit;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Commit_Initial)) {\n    return kGCReflogAction_InitialCommit;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Commit_Amend)) {\n    return kGCReflogAction_AmendCommit;\n  }\n\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Checkout)) {\n    return kGCReflogAction_Checkout;\n  }\n\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Branch_Created)) {\n    return kGCReflogAction_CreateBranch;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Branch_Renamed)) {\n    return kGCReflogAction_RenameBranch;\n  }\n\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Merge)) {\n    return kGCReflogAction_Merge;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Reset)) {\n    return kGCReflogAction_Reset;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Rebase)) {\n    return kGCReflogAction_Rebase;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_CherryPick)) {\n    return kGCReflogAction_CherryPick;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Revert)) {\n    return kGCReflogAction_Revert;\n  }\n\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Fetch)) {\n    return kGCReflogAction_Fetch;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Push)) {\n    return kGCReflogAction_Push;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Pull)) {\n    return kGCReflogAction_Pull;\n  }\n  if (_CStringHasPrefix(message, kGCReflogMessagePrefix_Git_Clone)) {\n    return kGCReflogAction_Clone;\n  }\n\n  return 0;\n}\n\n- (void)addReference:(GCReference*)reference withMessage:(const char*)message {\n  XLOG_DEBUG_CHECK(reference.repository == _repository);\n  NSString* string = message ? [NSString stringWithUTF8String:message] : @\"\";\n  NSUInteger index = [_references indexOfObject:reference];\n  if (index == NSNotFound) {\n    [_references addObject:reference];\n    [_messages addObject:string];\n  } else if (![_messages[index] isEqualToString:string]) {\n    XLOG_WARNING(@\"Reflog for reference '%@' has mismatching entries\", reference.name);\n  }\n  if (message && message[0]) {\n    _actions |= _ActionsFromMessage(message);\n  }\n}\n\n- (NSComparisonResult)reverseTimeCompare:(GCReflogEntry*)entry {\n  git_time_t time1 = _time.time;\n  git_time_t time2 = entry->_time.time;\n  if (time1 < time2) {\n    return NSOrderedDescending;\n  } else if (time1 > time2) {\n    return NSOrderedAscending;\n  }\n  return NSOrderedSame;\n}\n\n- (NSString*)description {\n  NSMutableString* string = [NSMutableString stringWithFormat:@\"%@ -> %@\", _fromSHA1, _toSHA1];\n  NSUInteger index = 0;\n  for (GCReference* reference in _references) {\n    [string appendFormat:@\"\\n  %@: %@\", reference.fullName, _messages[index]];\n    ++index;\n  }\n  return string;\n}\n\nstatic inline BOOL _EqualEntries(GCReflogEntry* entry1, GCReflogEntry* entry2) {\n  return git_oid_equal(&entry1->_fromOID, &entry2->_fromOID) && git_oid_equal(&entry1->_toOID, &entry2->_toOID) && (entry1->_time.time == entry2->_time.time);\n}\n\nstatic Boolean _EntryEqualCallBack(const void* value1, const void* value2) {\n  GCReflogEntry* entry1 = (GCReflogEntry*)value1;\n  GCReflogEntry* entry2 = (GCReflogEntry*)value2;\n  return _EqualEntries(entry1, entry2);\n}\n\nstatic CFHashCode _EntryHashCallBack(const void* value) {\n  GCReflogEntry* entry = (GCReflogEntry*)value;\n  return *((CFHashCode*)&entry->_fromOID);\n}\n\n@end\n\n@implementation GCReflogEntry (Extensions)\n\n- (BOOL)isEqualToReflogEntry:(GCReflogEntry*)entry {\n  return (self == entry) || _EqualEntries(self, entry);\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCReflogEntry class]]) {\n    return NO;\n  }\n  return [self isEqualToReflogEntry:object];\n}\n\n@end\n\n@implementation GCRepository (Reflog)\n\n- (NSArray*)loadReflogEntriesForReference:(GCReference*)reference error:(NSError**)error {\n  NSMutableArray* entries = [[NSMutableArray alloc] init];\n  if (git_reference_has_log(self.private, git_reference_name(reference.private))) {\n    git_reflog* reflog;\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reflog_read, &reflog, self.private, git_reference_name(reference.private));\n    for (size_t i = 0, count = git_reflog_entrycount(reflog); i < count; ++i) {\n      const git_reflog_entry* entry = git_reflog_entry_byindex(reflog, i);\n      if (!git_oid_equal(git_reflog_entry_id_new(entry), git_reflog_entry_id_old(entry))) {  // Skip no-op entries\n        GCReflogEntry* reflogEntry = [[GCReflogEntry alloc] initWithRepository:self entry:entry];\n        [reflogEntry addReference:reference withMessage:git_reflog_entry_message(entry)];\n        [entries addObject:reflogEntry];\n        [reflogEntry release];\n      }\n    }\n    git_reflog_free(reflog);\n    [entries sortUsingSelector:@selector(reverseTimeCompare:)];\n  }\n  return [entries autorelease];\n}\n\n- (NSArray*)loadAllReflogEntries:(NSError**)error {\n  NSMutableArray* entries = [[NSMutableArray alloc] init];\n  CFSetCallBacks callbacks = {0, NULL, NULL, NULL, _EntryEqualCallBack, _EntryHashCallBack};\n  CFMutableSetRef cache = CFSetCreateMutable(kCFAllocatorDefault, 0, &callbacks);\n  BOOL success = [self enumerateReferencesWithOptions:(kGCReferenceEnumerationOption_IncludeHEAD | kGCReferenceEnumerationOption_RetainReferences)\n                                                error:error\n                                           usingBlock:^BOOL(git_reference* rawReference) {\n                                             if (git_reference_has_log(self.private, git_reference_name(rawReference))) {\n                                               git_reflog* reflog;\n                                               CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reflog_read, &reflog, self.private, git_reference_name(rawReference));\n                                               GCReference* reference = nil;\n                                               if (git_reference_is_tag(rawReference)) {\n                                                 reference = [[GCHistoryTag alloc] initWithRepository:self reference:rawReference];\n                                               } else if (git_reference_is_branch(rawReference)) {\n                                                 reference = [[GCHistoryLocalBranch alloc] initWithRepository:self reference:rawReference];\n                                               } else if (git_reference_is_remote(rawReference)) {\n                                                 reference = [[GCHistoryRemoteBranch alloc] initWithRepository:self reference:rawReference];\n                                               } else {\n                                                 reference = [[GCReference alloc] initWithRepository:self reference:rawReference];\n                                               }\n\n                                               for (size_t i = 0, count = git_reflog_entrycount(reflog); i < count; ++i) {\n                                                 const git_reflog_entry* entry = git_reflog_entry_byindex(reflog, i);\n                                                 if (!git_oid_equal(git_reflog_entry_id_new(entry), git_reflog_entry_id_old(entry))) {  // Skip no-op entries\n                                                   GCReflogEntry* reflogEntry = [[GCReflogEntry alloc] initWithRepository:self entry:entry];\n                                                   GCReflogEntry* existingEntry = CFSetGetValue(cache, (const void*)reflogEntry);\n                                                   if (existingEntry) {\n                                                     XLOG_DEBUG_CHECK([existingEntry.date isEqualToDate:reflogEntry.date]);\n                                                     XLOG_DEBUG_CHECK([existingEntry.committerName isEqualToString:reflogEntry.committerName]);\n                                                     XLOG_DEBUG_CHECK([existingEntry.committerEmail isEqualToString:reflogEntry.committerEmail]);\n                                                     [existingEntry addReference:reference withMessage:git_reflog_entry_message(entry)];\n                                                   } else {\n                                                     [reflogEntry addReference:reference withMessage:git_reflog_entry_message(entry)];\n                                                     [entries addObject:reflogEntry];\n                                                     CFSetAddValue(cache, (const void*)reflogEntry);\n                                                   }\n                                                   [reflogEntry release];\n                                                 }\n                                               }\n\n                                               [reference release];\n                                               git_reflog_free(reflog);\n                                             } else {\n                                               git_reference_free(rawReference);\n                                             }\n                                             return YES;\n                                           }];\n  CFRelease(cache);\n  if (!success) {\n    [entries release];\n    return nil;\n  }\n  [entries sortUsingSelector:@selector(reverseTimeCompare:)];\n  return [entries autorelease];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Reset-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n// We only test resetting to commit since resetting to HEAD or tag is the same implementation codepath\n@implementation GCSingleCommitRepositoryTests (GCRepository_Reset)\n\n- (void)testReset {\n  // Modify and add files to working directory\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\\n\"];\n  [self updateFileAtPath:@\"test.txt\" withString:@\"This is a test\\n\"];\n  [self assertGitCLTOutputEqualsString:@\" M hello_world.txt\\n?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Hard reset\n  XCTAssertTrue([self.repository resetToCommit:self.initialCommit mode:kGCResetMode_Hard error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Modify file in working directory again\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\\n\"];\n\n  // Update index and commit changes\n  XCTAssertTrue([self.repository addAllFilesToIndex:NULL]);\n  GCCommit* commit = [self.repository createCommitFromHEADWithMessage:@\"Update 1\" error:NULL];\n  XCTAssertNotNil(commit);\n  [self assertGitCLTOutputEqualsString:@\"\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Soft reset\n  XCTAssertTrue([self.repository resetToCommit:self.initialCommit mode:kGCResetMode_Soft error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"M  hello_world.txt\\nA  test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Reset.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCDiff.h\"\n\ntypedef NS_ENUM(NSUInteger, GCResetMode) {\n  kGCResetMode_Soft = 0,\n  kGCResetMode_Mixed,\n  kGCResetMode_Hard\n};\n\n@interface GCRepository (Reset)\n- (BOOL)resetToHEAD:(GCResetMode)mode error:(NSError**)error;  // git reset {--soft | --mixed | --hard} HEAD\n- (BOOL)resetToTag:(GCTag*)tag mode:(GCResetMode)mode error:(NSError**)error;  // git reset {--soft | --mixed | --hard} {tag}\n- (BOOL)resetToCommit:(GCCommit*)commit mode:(GCResetMode)mode error:(NSError**)error;  // git reset {--soft | --mixed | --hard} {commit}\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Reset.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCRepository (Reset)\n\n- (BOOL)_resetToCommit:(git_commit*)commit mode:(GCResetMode)mode error:(NSError**)error {\n  git_checkout_options options = GIT_CHECKOUT_OPTIONS_INIT;\n  git_reset_t resetMode;\n  switch (mode) {\n    case kGCResetMode_Soft:\n      resetMode = GIT_RESET_SOFT;\n      break;\n    case kGCResetMode_Mixed:\n      resetMode = GIT_RESET_MIXED;\n      break;\n    case kGCResetMode_Hard:\n      resetMode = GIT_RESET_HARD;\n      break;\n  }\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reset, self.private, (git_object*)commit, resetMode, &options);  // This calls git_repository_state_cleanup() if MIXED or HARD\n  return YES;\n}\n\n- (BOOL)resetToHEAD:(GCResetMode)mode error:(NSError**)error {\n  git_commit* commit = [self loadHEADCommit:NULL error:error];\n  return commit ? [self _resetToCommit:commit mode:mode error:error] : NO;\n}\n\n- (BOOL)resetToTag:(GCTag*)tag mode:(GCResetMode)mode error:(NSError**)error {\n  GCCommit* commit = [self lookupCommitForTag:tag annotation:NULL error:error];\n  return commit ? [self _resetToCommit:commit.private mode:mode error:error] : NO;\n}\n\n- (BOOL)resetToCommit:(GCCommit*)commit mode:(GCResetMode)mode error:(NSError**)error {\n  return [self _resetToCommit:commit.private mode:mode error:error];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Status-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCRepository_Status)\n\n- (void)testStatus_Base {\n  // Check clean\n  XCTAssertTrue([self.repository checkClean:kGCCleanCheckOption_IgnoreUntrackedFiles error:NULL]);\n\n  // Add some files & commit changes\n  [self updateFileAtPath:@\".gitignore\" withString:@\"ignored.txt\\n\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\".gitignore\" error:NULL]);\n  [self updateFileAtPath:@\"modified.txt\" withString:@\"\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"modified.txt\" error:NULL]);\n  [self updateFileAtPath:@\"deleted.txt\" withString:@\"\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"deleted.txt\" error:NULL]);\n  [self updateFileAtPath:@\"renamed1.txt\" withString:@\"Nothing to see here!\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"renamed1.txt\" error:NULL]);\n  [self updateFileAtPath:@\"type-changed.txt\" withString:@\"\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"type-changed.txt\" error:NULL]);\n  XCTAssertNotNil([self.repository createCommitFromHEADWithMessage:@\"Update\" error:NULL]);\n\n  // Check clean\n  XCTAssertTrue([self.repository checkClean:kGCCleanCheckOption_IgnoreUntrackedFiles error:NULL]);\n\n  // Touch files\n  [self updateFileAtPath:@\"ignored.txt\" withString:@\"\"];\n  [self updateFileAtPath:@\"modified.txt\" withString:@\"Hi there!\"];\n  [self updateFileAtPath:@\"added.txt\" withString:@\"This is a test\"];\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"deleted.txt\"] error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] moveItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"renamed1.txt\"] toPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"renamed2.txt\"] error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"type-changed.txt\"] error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] createSymbolicLinkAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"type-changed.txt\"] withDestinationPath:@\"hello_world.txt\" error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] copyItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"hello_world.txt\"] toPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"copied.txt\"] error:NULL]);\n\n  // Check clean\n  XCTAssertFalse([self.repository checkClean:kGCCleanCheckOption_IgnoreUntrackedFiles error:NULL]);\n\n  // Diff index\n  GCDiff* indexStatus1 = [self.repository diffRepositoryIndexWithHEAD:nil\n                                                              options:(kGCDiffOption_FindRenames | kGCDiffOption_FindCopies | kGCDiffOption_IncludeUnmodified)\n                                                    maxInterHunkLines:0\n                                                      maxContextLines:0\n                                                                error:NULL];\n  XCTAssertNotNil(indexStatus1);\n  XCTAssertEqual([indexStatus1 changeForFile:@\".gitignore\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"added.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"copied.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"deleted.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"ignored.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"modified.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"renamed1.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"renamed2.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"type-changed.txt\"], kGCFileDiffChange_Unmodified);\n\n  // Diff workdir\n  GCDiff* workdirStatus1 = [self.repository diffWorkingDirectoryWithRepositoryIndex:nil\n                                                                            options:(kGCDiffOption_FindTypeChanges | kGCDiffOption_FindRenames | kGCDiffOption_FindCopies | kGCDiffOption_IncludeUnmodified | kGCDiffOption_IncludeUntracked | kGCDiffOption_IncludeIgnored)\n                                                                  maxInterHunkLines:0\n                                                                    maxContextLines:0\n                                                                              error:NULL];\n  XCTAssertNotNil(workdirStatus1);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\".gitignore\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"added.txt\"], kGCFileDiffChange_Untracked);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"copied.txt\"], kGCFileDiffChange_Copied);  // TODO: Check source is \"hello_world.txt\"\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"deleted.txt\"], kGCFileDiffChange_Deleted);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"ignored.txt\"], kGCFileDiffChange_Ignored);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"modified.txt\"], kGCFileDiffChange_Modified);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"renamed2.txt\"], kGCFileDiffChange_Renamed);  // TODO: Check source is \"renamed1.txt\"\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"type-changed.txt\"], kGCFileDiffChange_TypeChanged);\n\n  // Check conflicts\n  XCTAssertEqualObjects([self.repository checkConflicts:NULL], @{});\n\n  // Update index\n  XCTAssertTrue([self.repository addAllFilesToIndex:NULL]);\n\n  // Check clean\n  XCTAssertFalse([self.repository checkClean:kGCCleanCheckOption_IgnoreUntrackedFiles error:NULL]);\n\n  // Diff index\n  GCDiff* indexStatus2 = [self.repository diffRepositoryIndexWithHEAD:nil\n                                                              options:(kGCDiffOption_FindTypeChanges | kGCDiffOption_FindRenames | kGCDiffOption_FindCopies | kGCDiffOption_IncludeUnmodified)\n                                                    maxInterHunkLines:0\n                                                      maxContextLines:0\n                                                                error:NULL];\n  XCTAssertNotNil(indexStatus2);\n  XCTAssertEqual([indexStatus2 changeForFile:@\".gitignore\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"added.txt\"], kGCFileDiffChange_Added);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"copied.txt\"], kGCFileDiffChange_Copied);  // TODO: Check source is \"hello_world.txt\"\n  XCTAssertEqual([indexStatus2 changeForFile:@\"deleted.txt\"], kGCFileDiffChange_Deleted);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"ignored.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"modified.txt\"], kGCFileDiffChange_Modified);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"renamed1.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"renamed2.txt\"], kGCFileDiffChange_Renamed);  // TODO: Check source is \"renamed1.txt\"\n  XCTAssertEqual([indexStatus2 changeForFile:@\"type-changed.txt\"], kGCFileDiffChange_TypeChanged);\n\n  // Diff workdir\n  GCDiff* workdirStatus2 = [self.repository diffWorkingDirectoryWithRepositoryIndex:nil\n                                                                            options:(kGCDiffOption_FindRenames | kGCDiffOption_FindCopies | kGCDiffOption_IncludeUnmodified | kGCDiffOption_IncludeUntracked | kGCDiffOption_IncludeIgnored)\n                                                                  maxInterHunkLines:0\n                                                                    maxContextLines:0\n                                                                              error:NULL];\n  XCTAssertNotNil(workdirStatus2);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\".gitignore\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"added.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"copied.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"deleted.txt\"], NSNotFound);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"ignored.txt\"], kGCFileDiffChange_Ignored);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"modified.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"renamed2.txt\"], kGCFileDiffChange_Unmodified);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"type-changed.txt\"], kGCFileDiffChange_Unmodified);\n\n  // Check conflicts\n  XCTAssertEqualObjects([self.repository checkConflicts:NULL], @{});\n}\n\n- (void)testStatus_Conflicts {\n  // Check initial state\n  XCTAssertEqualObjects([self.repository checkConflicts:NULL], @{});\n\n  // Modify file\n  GCCommit* newCommit = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Bonjour le monde!\\n\" message:@\"Modified\"];\n\n  // Create test branch with commit\n  GCLocalBranch* branch1 = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"b1\" force:NO error:NULL];\n  XCTAssertNotNil(branch1);\n  XCTAssertTrue([self.repository checkoutLocalBranch:branch1 options:0 error:NULL]);\n  [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Hola Mundo!\\n\" message:@\"c1\"];\n\n  // Test \"both modified\"\n  XCTAssertTrue([self.repository mergeCommitToHEAD:newCommit error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"UU hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n  GCDiff* indexStatus1 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus1);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Conflicted);\n  GCDiff* workdirStatus1 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus1);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Conflicted);\n  NSDictionary* conflicts1 = [self.repository checkConflicts:NULL];\n  XCTAssertEqual(conflicts1.count, 1);\n  XCTAssertEqual([(GCIndexConflict*)conflicts1[@\"hello_world.txt\"] status], kGCIndexConflictStatus_BothModified);\n\n  // Reset\n  XCTAssertTrue([self.repository resetToHEAD:kGCResetMode_Hard error:NULL]);\n\n  // Create test branch with commit\n  GCLocalBranch* branch2 = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"b2\" force:NO error:NULL];\n  XCTAssertNotNil(branch2);\n  XCTAssertTrue([self.repository checkoutLocalBranch:branch2 options:0 error:NULL]);\n  GCCommit* commit2 = [self makeCommitWithDeletedFileAtPath:@\"hello_world.txt\" message:@\"c2\"];\n\n  // Test \"deleted by us\"\n  XCTAssertTrue([self.repository mergeCommitToHEAD:newCommit error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"DU hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n  GCDiff* indexStatus2 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus2);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Conflicted);\n  GCDiff* workdirStatus2 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus2);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Conflicted);\n  NSDictionary* conflicts2 = [self.repository checkConflicts:NULL];\n  XCTAssertEqual(conflicts2.count, 1);\n  XCTAssertEqual([(GCIndexConflict*)conflicts2[@\"hello_world.txt\"] status], kGCIndexConflictStatus_DeletedByUs);\n\n  // Reset\n  XCTAssertTrue([self.repository resetToHEAD:kGCResetMode_Hard error:NULL]);\n\n  // Test \"deleted by them\"\n  XCTAssertTrue([self.repository checkoutLocalBranch:[self.repository findLocalBranchWithName:@\"master\" error:NULL] options:0 error:NULL]);\n  XCTAssertTrue([self.repository mergeCommitToHEAD:commit2 error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"UD hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n  GCDiff* indexStatus3 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus3);\n  XCTAssertEqual([indexStatus3 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Conflicted);\n  GCDiff* workdirStatus3 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus3);\n  XCTAssertEqual([workdirStatus3 changeForFile:@\"hello_world.txt\"], kGCFileDiffChange_Conflicted);\n  NSDictionary* conflicts3 = [self.repository checkConflicts:NULL];\n  XCTAssertEqual(conflicts3.count, 1);\n  XCTAssertEqual([(GCIndexConflict*)conflicts3[@\"hello_world.txt\"] status], kGCIndexConflictStatus_DeletedByThem);\n\n  // Reset\n  XCTAssertTrue([self.repository resetToHEAD:kGCResetMode_Hard error:NULL]);\n\n  // Create test branch with commit\n  GCLocalBranch* branch3 = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"b3\" force:NO error:NULL];\n  XCTAssertNotNil(branch3);\n  XCTAssertTrue([self.repository checkoutLocalBranch:branch3 options:0 error:NULL]);\n  GCCommit* commit3 = [self makeCommitWithUpdatedFileAtPath:@\"test.txt\" string:@\"Hello\\n\" message:@\"c3\"];\n\n  // Test \"both added\"\n  XCTAssertTrue([self.repository checkoutLocalBranch:[self.repository findLocalBranchWithName:@\"master\" error:NULL] options:0 error:NULL]);\n  [self makeCommitWithUpdatedFileAtPath:@\"test.txt\" string:@\"Bonjour\\n\" message:@\"c4\"];\n  XCTAssertTrue([self.repository mergeCommitToHEAD:commit3 error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"AA test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n  GCDiff* indexStatus4 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus4);\n  XCTAssertEqual([indexStatus4 changeForFile:@\"hello_world.txt\"], NSNotFound);\n  XCTAssertEqual([indexStatus4 changeForFile:@\"test.txt\"], kGCFileDiffChange_Conflicted);\n  GCDiff* workdirStatus4 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus4);\n  XCTAssertEqual([workdirStatus4 changeForFile:@\"hello_world.txt\"], NSNotFound);\n  XCTAssertEqual([workdirStatus4 changeForFile:@\"test.txt\"], kGCFileDiffChange_Conflicted);\n  NSDictionary* conflicts4 = [self.repository checkConflicts:NULL];\n  XCTAssertEqual(conflicts4.count, 1);\n  XCTAssertEqual([(GCIndexConflict*)conflicts4[@\"test.txt\"] status], kGCIndexConflictStatus_BothAdded);\n}\n\n- (void)testStatus_Modified {\n  // Check index\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  GCDiff* indexStatus1 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus1);\n  XCTAssertFalse(indexStatus1.modified);\n  GCDiff* workdirStatus1 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus1);\n  XCTAssertFalse(workdirStatus1.modified);\n\n  // Modify file in working directory\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\\n\"];\n  XCTAssertTrue([self.repository checkRepositoryDirty:YES]);\n  GCDiff* indexStatus2 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus2);\n  XCTAssertFalse(indexStatus2.modified);\n  GCDiff* workdirStatus2 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus2);\n  XCTAssertTrue(workdirStatus2.modified);\n\n  // Add file to index\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n  XCTAssertTrue([self.repository checkRepositoryDirty:YES]);\n  GCDiff* indexStatus3 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus3);\n  XCTAssertTrue(indexStatus3.modified);\n  GCDiff* workdirStatus3 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus3);\n  XCTAssertFalse(workdirStatus3.modified);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Status.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_OPTIONS(NSUInteger, GCCleanCheckOptions) {\n  kGCCleanCheckOption_IgnoreState = (1 << 0),\n  kGCCleanCheckOption_IgnoreIndexConflicts = (1 << 1),\n  kGCCleanCheckOption_IgnoreIndexChanges = (1 << 2),\n  kGCCleanCheckOption_IgnoreWorkingDirectoryChanges = (1 << 3),\n  kGCCleanCheckOption_IgnoreUntrackedFiles = (1 << 4)\n};\n\n@interface GCRepository (Status)\n- (NSDictionary*)checkConflicts:(NSError**)error;  // Keys are paths and values are GCIndexConflicts\n\n- (BOOL)checkClean:(GCCleanCheckOptions)options error:(NSError**)error;  // git status\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository+Status.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@implementation GCRepository (Status)\n\n- (NSDictionary*)checkConflicts:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return nil;\n  }\n  NSMutableDictionary* result = [[NSMutableDictionary alloc] init];\n  [index enumerateConflictsUsingBlock:^(GCIndexConflict* conflict, BOOL* stop) {\n    [result setObject:conflict forKey:conflict.path];\n  }];\n  return result;\n}\n\n// Because we don't set GIT_DIFF_ENABLE_FAST_UNTRACKED_DIRS, the callback can still be called when poking inside an untracked dir that may actually only contain ignored files\nstatic int _DiffNotifyCallback(const git_diff* diff_so_far, const git_diff_delta* delta_to_add, const char* matched_pathspec, void* payload) {\n  if ((delta_to_add->nfiles == 1) && (delta_to_add->status == GIT_DELTA_UNTRACKED) && (delta_to_add->new_file.path[strlen(delta_to_add->new_file.path) - 1] == '/')) {\n    return GIT_OK;\n  }\n  *(git_delta_t*)payload = delta_to_add->status;\n  return GIT_EUSER;\n}\n\n- (BOOL)checkClean:(GCCleanCheckOptions)options error:(NSError**)error {\n  BOOL clean = NO;\n  git_commit* commit = NULL;\n  git_tree* tree = NULL;\n  git_diff* diff1 = NULL;\n  git_diff* diff2 = NULL;\n  git_diff_options diffOptions = GIT_DIFF_OPTIONS_INIT;\n  git_delta_t delta_status = GIT_DELTA_UNMODIFIED;\n  int status;\n\n  // Prepare\n  diffOptions.flags = GIT_DIFF_SKIP_BINARY_CHECK;  // This should not be needed since not generating patches anyway\n  diffOptions.notify_cb = _DiffNotifyCallback;\n  diffOptions.payload = &delta_status;\n  git_index* index = [self reloadRepositoryIndex:error];\n  if (index == NULL) {\n    goto cleanup;\n  }\n\n  // Check repository state\n  if (!(options & kGCCleanCheckOption_IgnoreState)) {\n    if (git_repository_state(self.private) != GIT_REPOSITORY_STATE_NONE) {\n      GC_SET_ERROR(kGCErrorCode_RepositoryDirty, @\"Repository has an in-progress operation\");\n      goto cleanup;\n    }\n  }\n\n  // Check index conflicts\n  if (!(options & kGCCleanCheckOption_IgnoreIndexConflicts)) {\n    if (git_index_has_conflicts(index)) {\n      GC_SET_ERROR(kGCErrorCode_RepositoryDirty, @\"Index has conflicts\");\n      goto cleanup;\n    }\n  }\n\n  // Check index changes\n  if (!(options & kGCCleanCheckOption_IgnoreIndexChanges)) {\n    if (![self loadHEADCommit:&commit resolvedReference:NULL error:error]) {\n      goto cleanup;\n    }\n    if (commit) {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_tree, &tree, commit);\n    }\n    status = git_diff_tree_to_index(&diff1, self.private, tree, index, &diffOptions);\n    if ((status == GIT_EUSER) || ((status == GIT_OK) && (git_diff_num_deltas(diff1) > 0))) {\n      GC_SET_ERROR(kGCErrorCode_RepositoryDirty, @\"Index has changes\");\n      goto cleanup;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n  }\n\n  // Check working directory changes\n  if (!(options & kGCCleanCheckOption_IgnoreWorkingDirectoryChanges)) {\n    if (!(options & kGCCleanCheckOption_IgnoreUntrackedFiles)) {\n      diffOptions.flags |= GIT_DIFF_INCLUDE_UNTRACKED;\n    }\n    status = git_diff_index_to_workdir(&diff2, self.private, index, &diffOptions);  // TODO: Should we set GIT_DIFF_UPDATE_INDEX?\n    if ((status == GIT_EUSER) || ((status == GIT_OK) && (git_diff_num_deltas(diff2) > 0))) {\n      if (status == GIT_OK) {\n        delta_status = git_diff_get_delta(diff2, 0)->status;\n      }\n      if (delta_status == GIT_DELTA_UNTRACKED) {\n        GC_SET_ERROR(kGCErrorCode_RepositoryDirty, @\"Working directory contains untracked files\");\n      } else {\n        XLOG_DEBUG_CHECK(delta_status != GIT_DELTA_UNMODIFIED);\n        GC_SET_ERROR(kGCErrorCode_RepositoryDirty, @\"Working directory contains modified files\");\n      }\n      goto cleanup;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n  }\n\n  // We're clean\n  clean = YES;\n\ncleanup:\n  git_diff_free(diff2);\n  git_diff_free(diff1);\n  git_tree_free(tree);\n  git_commit_free(commit);\n  git_index_free(index);\n  return clean;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCTests (GCRepository)\n\n- (void)testPrecompose {\n  NSString* string = @\"héllo Wôrld\";\n  const char* composed = \"héllo Wôrld\";\n  const char* decomposed = \"héllo Wôrld\";\n  XCTAssertNotEqual(strcmp(composed, decomposed), 0);\n  XCTAssertEqual(strcmp(string.UTF8String, composed), 0);\n  XCTAssertEqual(strcmp(string.fileSystemRepresentation, decomposed), 0);\n}\n\n- (void)testOpen {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create repository\n  NSString* output = [self runGitCLTWithRepository:nil command:@\"init\", path, nil];\n  XCTAssertNotNil(output);\n\n  // Open repository\n  GCRepository* repo1 = [[GCRepository alloc] initWithExistingLocalRepository:path error:NULL];\n  XCTAssertNotNil(repo1);\n  XCTAssertFalse(repo1.readOnly);\n  repo1 = nil;\n\n  // Test read-only\n  XCTAssertTrue([[NSFileManager defaultManager] setAttributes:@{NSFilePosixPermissions : @(0500)} ofItemAtPath:[path stringByAppendingPathComponent:@\".git\"] error:NULL]);\n  GCRepository* repo2 = [[GCRepository alloc] initWithExistingLocalRepository:path error:NULL];\n  XCTAssertNotNil(repo2);\n  XCTAssertTrue(repo2.readOnly);\n  repo2 = nil;\n  XCTAssertTrue([[NSFileManager defaultManager] setAttributes:@{NSFilePosixPermissions : @(0700)} ofItemAtPath:[path stringByAppendingPathComponent:@\".git\"] error:NULL]);\n\n  // Destroy repository\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n}\n\n@end\n\n@implementation GCEmptyRepositoryTests (GCRepository)\n\n// -initWithNewLocalRepository:bare:error: is called in -setUp\n- (void)testInitialization {\n  // Check initialization result\n  NSString* result = [self runGitCLTWithRepository:self.repository command:@\"status\", nil];\n  XCTAssertTrue([result hasPrefix:@\"On branch master\"]);\n  XCTAssertTrue([result containsString:@\"Initial commit\"] || [result containsString:@\"No commits yet\"]);\n\n  // Check properties\n  XCTAssertEqualObjects([self.repository.repositoryPath stringByStandardizingPath], [self.temporaryPath stringByAppendingPathComponent:@\".git\"]);\n  XCTAssertEqualObjects([self.repository.workingDirectoryPath stringByStandardizingPath], self.temporaryPath);\n  XCTAssertFalse(self.repository.bare);\n  XCTAssertTrue(self.repository.empty);\n  XCTAssertEqual(self.repository.state, kGCRepositoryState_None);\n\n  // Test re-initializing\n  XCTAssertFalse([[GCRepository alloc] initWithNewLocalRepository:self.repository.workingDirectoryPath bare:NO error:NULL]);\n}\n\n- (void)testPathForHookWithName {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create dummy local repo\n  GCRepository* repository = [self createLocalRepositoryAtPath:path bare:NO];\n\n  NSString* hookName = @\"pre-commit\";\n  XCTAssertEqualObjects([repository pathForHookWithName:hookName], NULL);\n\n  // Create dummy hook file\n  NSString* hookFilePath = [[repository.repositoryPath stringByAppendingPathComponent:@\"hooks\"] stringByAppendingPathComponent:hookName];\n  [self _createDummyHookFile:hookFilePath];\n\n  XCTAssertEqualObjects([repository pathForHookWithName:hookName], hookFilePath);\n\n  // Destroy dummy local repository\n  [self destroyLocalRepository:repository];\n}\n\n- (void)testPathForHookWithName_AbsoluteCustomHooksPath {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create dummy local repo\n  GCRepository* repository = [self createLocalRepositoryAtPath:path bare:NO];\n\n  // Set absolute path to core.hooksPath\n  NSString* hooksPath = [path stringByAppendingPathComponent:@\"custom-hooks-path\"];\n  XCTAssertTrue([repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"core.hooksPath\" withValue:hooksPath error:NULL]);\n\n  NSString* hookName = @\"pre-commit\";\n  XCTAssertEqualObjects([repository pathForHookWithName:hookName], NULL);\n\n  // Create dummy hook file\n  NSString* hookFilePath = [hooksPath stringByAppendingPathComponent:hookName];\n  [self _createDummyHookFile:hookFilePath];\n\n  XCTAssertEqualObjects([repository pathForHookWithName:hookName], hookFilePath);\n\n  // Destroy dummy local repository\n  [self destroyLocalRepository:repository];\n}\n\n- (void)testPathForHookWithName_RelativeCustomHooksPath {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create dummy local repo\n  GCRepository* repository = [self createLocalRepositoryAtPath:path bare:NO];\n\n  // Set relative path to core.hooksPath\n  NSString* hooksPath = @\"./custom-hooks-path\";\n  XCTAssertTrue([repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"core.hooksPath\" withValue:hooksPath error:NULL]);\n\n  NSString* hookName = @\"pre-commit\";\n  XCTAssertEqualObjects([repository pathForHookWithName:hookName], NULL);\n\n  // Create dummy hook file\n  NSString* hookFilePath = [[repository.workingDirectoryPath stringByAppendingPathComponent:hooksPath] stringByAppendingPathComponent:hookName];\n  [self _createDummyHookFile:hookFilePath];\n\n  XCTAssertEqualObjects([repository pathForHookWithName:hookName], hookFilePath);\n\n  // Destroy dummy local repository\n  [self destroyLocalRepository:repository];\n}\n\n- (void)_createDummyHookFile:(NSString*)path {\n  [[NSFileManager defaultManager] createDirectoryAtPath:[path stringByDeletingLastPathComponent]\n                            withIntermediateDirectories:NO\n                                             attributes:NULL\n                                                  error:NULL];\n  [[NSFileManager defaultManager] createFileAtPath:path\n                                          contents:[@\"echo 'Hello world'\\n\" dataUsingEncoding:NSUTF8StringEncoding]\n                                        attributes:@{NSFilePosixPermissions : @0x755}];\n  XCTAssertTrue([[NSFileManager defaultManager] fileExistsAtPath:path]);\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTests (GCRepository)\n\n- (void)testClone {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Clone repo using HTTPS\n  GCRepository* repo1 = [[GCRepository alloc] initWithClonedRepositoryFromURL:GCURLFromGitURL(@\"https://github.com/git-up/test-repo-base.git\") toPath:path usingDelegate:nil recursive:NO error:NULL];\n  XCTAssertNotNil(repo1);\n  XCTAssertFalse(repo1.empty);\n  repo1 = nil;\n  XCTAssert([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n\n  // Clone repo using SSH (scp-like syntax)\n  if (!self.botMode) {\n    GCRepository* repo2 = [[GCRepository alloc] initWithClonedRepositoryFromURL:GCURLFromGitURL(@\"git@github.com:git-up/test-repo-base.git\") toPath:path usingDelegate:nil recursive:NO error:NULL];\n    XCTAssertNotNil(repo2);\n    XCTAssertFalse(repo2.empty);\n    repo2 = nil;\n    XCTAssert([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n  }\n\n  // Clone repo using local path\n  GCRepository* repo3 = [[GCRepository alloc] initWithClonedRepositoryFromURL:[NSURL fileURLWithPath:self.repository.workingDirectoryPath] toPath:path usingDelegate:nil recursive:NO error:NULL];\n  XCTAssertNotNil(repo3);\n  XCTAssertFalse(repo3.empty);\n  repo3 = nil;\n  XCTAssert([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n\n  // Clone repo with submodules not recursively\n  GCRepository* repo4 = [[GCRepository alloc] initWithClonedRepositoryFromURL:GCURLFromGitURL(@\"https://github.com/git-up/test-repo-submodules.git\") toPath:path usingDelegate:nil recursive:NO error:NULL];\n  XCTAssertNotNil(repo4);\n  XCTAssertFalse(repo4.empty);\n  NSArray* contents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:[path stringByAppendingPathComponent:@\"base\"] error:NULL];\n  XCTAssertEqualObjects(contents, @[]);  // Submodule directory should be empty\n  repo4 = nil;\n  XCTAssert([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n\n  // Clone repo with recursive submodules recursively\n  GCRepository* repo5 = [[GCRepository alloc] initWithClonedRepositoryFromURL:GCURLFromGitURL(@\"https://github.com/git-up/test-repo-recursive-submodules.git\") toPath:path usingDelegate:nil recursive:YES error:NULL];\n  XCTAssertNotNil(repo5);\n  XCTAssertFalse(repo5.empty);\n  XCTAssertTrue([[NSFileManager defaultManager] fileExistsAtPath:[path stringByAppendingPathComponent:@\"rebase/.git\"] isDirectory:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] fileExistsAtPath:[path stringByAppendingPathComponent:@\"rebase/base/.git\"] isDirectory:NULL]);\n  repo5 = nil;\n  XCTAssert([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n}\n\n@end\n\n@implementation GCMultipleCommitsRepositoryTests (GCRepository)\n\n- (void)testState {\n  // Check initial state\n  XCTAssertEqual(self.repository.state, kGCRepositoryState_None);\n\n  // Merge topic branch and check state\n  XCTAssertTrue([self.repository mergeCommitToHEAD:self.commitA error:NULL]);\n  XCTAssertEqual(self.repository.state, kGCRepositoryState_Merge);\n\n  // Reset state\n  XCTAssertTrue([self.repository cleanupState:NULL]);\n  XCTAssertEqual(self.repository.state, kGCRepositoryState_None);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(NSUInteger, GCRepositoryState) {\n  kGCRepositoryState_None = 0,\n  kGCRepositoryState_Merge,\n  kGCRepositoryState_Revert,\n  kGCRepositoryState_CherryPick,\n  kGCRepositoryState_Bisect,\n  kGCRepositoryState_Rebase,\n  kGCRepositoryState_RebaseInteractive,\n  kGCRepositoryState_RebaseMerge,\n  kGCRepositoryState_ApplyMailbox,\n  kGCRepositoryState_ApplyMailboxOrRebase\n};\n\ntypedef NS_ENUM(NSUInteger, GCFileMode) {\n  kGCFileMode_Unreadable = 0,\n  kGCFileMode_Tree,\n  kGCFileMode_Blob,\n  kGCFileMode_BlobExecutable,\n  kGCFileMode_Link,\n  kGCFileMode_Commit\n};\n\n#define GC_FILE_MODE_IS_FILE(m) (((m) == kGCFileMode_Blob) || ((m) == kGCFileMode_BlobExecutable) || ((m) == kGCFileMode_Link))\n#define GC_FILE_MODE_IS_SUBMODULE(m) (((m) == kGCFileMode_Tree) || ((m) == kGCFileMode_Commit))\n\n@class GCRepository;\n\n@protocol GCRepositoryDelegate <NSObject>\n@optional\n- (void)repository:(GCRepository*)repository willStartTransferWithURL:(NSURL*)url;\n- (BOOL)repository:(GCRepository*)repository requiresPlainTextAuthenticationForURL:(NSURL*)url user:(NSString*)user username:(NSString**)username password:(NSString**)password;\n- (BOOL)repository:(GCRepository*)repository requiresSSHAuthenticationForURL:(NSURL*)url user:(NSString*)user username:(NSString**)username publicKeyPath:(NSString**)publicPath privateKeyPath:(NSString**)privatePath passphrase:(NSString**)passphrase;\n- (void)repository:(GCRepository*)repository updateTransferProgress:(float)progress transferredBytes:(NSUInteger)bytes;  // Progress is in [0,1] range\n- (void)repository:(GCRepository*)repository didFinishTransferWithURL:(NSURL*)url success:(BOOL)success;\n@end\n\n@interface GCRepository : NSObject\n@property(nonatomic, weak) id<GCRepositoryDelegate> delegate;\n@property(nonatomic, readonly) NSString* repositoryPath;\n@property(nonatomic, readonly) NSString* workingDirectoryPath;  // nil for a bare repository\n@property(nonatomic, readonly, getter=isReadOnly) BOOL readOnly;\n@property(nonatomic, readonly, getter=isBare) BOOL bare;\n@property(nonatomic, readonly, getter=isShallow) BOOL shallow;\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;  // Repository has no references and HEAD is unborn\n@property(nonatomic, readonly) GCRepositoryState state;  // Do NOT use on a bare repository\n- (instancetype)initWithExistingLocalRepository:(NSString*)path error:(NSError**)error;\n- (instancetype)initWithNewLocalRepository:(NSString*)path bare:(BOOL)bare error:(NSError**)error;  // git init {path}\n- (instancetype)initWithNewLocalRepository:(NSString*)path bare:(BOOL)bare defaultBranchName:(NSString*)defaultBranchName error:(NSError**)error;\n\n- (BOOL)cleanupState:(NSError**)error;  // Do NOT use on a bare repository\n\n- (BOOL)checkPathNotIgnored:(NSString*)path error:(NSError**)error;\n\n- (NSURL*)absoluteURLForFile:(NSString*)path;\n- (NSString*)absolutePathForFile:(NSString*)path;\n\n- (BOOL)safeDeleteFile:(NSString*)path error:(NSError**)error;  // Moves file to Trash (OS X only)\n\n- (NSString*)privateAppDirectoryPath;  // May return nil e.g. if repository is read-only\n\n- (BOOL)exportBlobWithSHA1:(NSString*)sha1 toPath:(NSString*)path error:(NSError**)error;\n\n#if !TARGET_OS_IPHONE\n- (NSString*)pathForHookWithName:(NSString*)name;  // Returns nil if hook doesn't exist\n- (BOOL)runHookWithName:(NSString*)name arguments:(NSArray*)arguments standardInput:(NSString*)standardInput error:(NSError**)error;  // Silently ignores non-existing hooks\n#endif\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCRepository.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <TargetConditionals.h>\n#import <libssh2.h>\n#import <pthread.h>\n#if !TARGET_OS_IPHONE\n#import <git2/sys/filter.h>\n#import <sys/stat.h>\n#endif\n\n#import \"GCPrivate.h\"\n\n#if !TARGET_OS_IPHONE\nstatic const char* _GitLFSPath = \"/usr/local/bin/git-lfs\";\n#endif\n\nstatic inline BOOL _IsDirectoryWritable(const char* path) {\n  int status = access(path, W_OK);\n  if (status == 0) {\n    return YES;\n  }\n  XLOG_DEBUG_CHECK(errno == EACCES);\n  return NO;\n}\n\nstatic inline NSString* _MakeDirectoryPath(const char* path) {\n  if (!path) {\n    return nil;\n  }\n  size_t length = strlen(path);\n  if (length && (path[length - 1] == '/')) {\n    --length;\n  }\n  if (!length) {\n    XLOG_DEBUG_UNREACHABLE();\n    return nil;\n  }\n  return [[NSFileManager defaultManager] stringWithFileSystemRepresentation:path length:length];\n}\n\n#if !TARGET_OS_IPHONE\n\nstatic int _GitLFSApply(git_filter* self, void** payload, git_buf* to, const git_buf* from, const git_filter_source* src) {\n  if (from->size > 0) {\n    @autoreleasepool {\n      CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n      NSMutableArray* arguments = [[NSMutableArray alloc] init];\n      if (git_filter_source_mode(src) == GIT_FILTER_SMUDGE) {  // ODB -> Worktree\n        [arguments addObject:@\"smudge\"];\n      } else if (git_filter_source_mode(src) == GIT_FILTER_CLEAN) {  // Worktree -> ODB\n        [arguments addObject:@\"clean\"];\n      } else {\n        XLOG_DEBUG_UNREACHABLE();\n        return -1;\n      }\n      [arguments addObject:@\"--\"];\n      [arguments addObject:GCFileSystemPathFromGitPath(git_filter_source_path(src))];\n      GCTask* task = [[GCTask alloc] initWithExecutablePath:[NSString stringWithUTF8String:_GitLFSPath]];\n      task.currentDirectoryPath = _MakeDirectoryPath(git_repository_workdir(git_filter_source_repo(src)));\n      int status;\n      NSData* stdinData = [[NSData alloc] initWithBytesNoCopy:from->ptr length:from->size freeWhenDone:NO];\n      NSData* stdoutData;\n      if (![task runWithArguments:arguments stdin:stdinData stdout:&stdoutData stderr:NULL exitStatus:&status error:NULL]) {\n        XLOG_ERROR(@\"git-lfs tool failed executing\");\n        giterr_set_str(GITERR_FILTER, \"git-lfs tool failed executing\");\n        return -1;\n      }\n      XLOG_VERBOSE(@\"Executed git-lfs tool in %.3f seconds\", CFAbsoluteTimeGetCurrent() - time);\n      if (status != 0) {\n        XLOG_ERROR(@\"git-lfs tool exited with non-zero status (%i)\", status);\n        giterr_set_str(GITERR_FILTER, \"git-lfs tool exited with non-zero status\");\n        return -1;\n      }\n      if (git_buf_set(to, stdoutData.bytes, stdoutData.length) < 0) {  // TODO: Avoid copying data\n        return -1;\n      }\n    }\n  }\n  return 0;\n}\n\n#endif\n\n@implementation GCRepository {\n#if !TARGET_OS_IPHONE\n  BOOL _didTrySSHAgent;\n  NSMutableArray* _privateKeyList;\n  NSUInteger _privateKeyIndex;\n#endif\n\n  BOOL _hasFetchProgressDelegate;\n  float _lastFetchProgress;\n  BOOL _hasPushProgressDelegate;\n  float _lastPushProgress;\n}\n\n// We can't guarantee XLFacility has been initialized yet as +load method can be called in arbitrary order\n+ (void)load {\n  assert(pthread_main_np() > 0);\n\n  assert(git_libgit2_features() & GIT_FEATURE_THREADS);\n  assert(git_libgit2_features() & GIT_FEATURE_HTTPS);\n  assert(git_libgit2_features() & GIT_FEATURE_SSH);\n  assert(git_libgit2_init() >= 1);\n  assert(libssh2_init(0) == 0);  // We can't have libgit2 using libssh2_session_init() and in turn calling this function on an arbitrary thread later on\n\n#if !TARGET_OS_IPHONE\n  struct stat info;\n  if (lstat(_GitLFSPath, &info) == 0) {\n    git_filter* filter = calloc(1, sizeof(git_filter));\n    filter->version = GIT_FILTER_VERSION;\n    filter->attributes = \"filter=lfs\";\n    filter->apply = _GitLFSApply;\n    assert(git_filter_register(\"lfs\", filter, -1) == 0);  // Priority must be lower than CRLF and IDENT built-in filters\n  }\n#endif\n}\n\n- (instancetype)initWithRepository:(git_repository*)repository error:(NSError**)error {\n  if ((self = [super init])) {\n    _private = repository;\n    _repositoryPath = _MakeDirectoryPath(git_repository_path(_private));\n    _workingDirectoryPath = _MakeDirectoryPath(git_repository_workdir(_private));\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_repository_free(_private);\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"%@ at path \\\"%@\\\"\", self.class, _repositoryPath];\n}\n\n#pragma mark - Initialization\n\n- (instancetype)initWithExistingLocalRepository:(NSString*)path error:(NSError**)error {\n  git_repository* repository;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_repository_open, &repository, path.fileSystemRepresentation);\n  return [self initWithRepository:repository error:error];\n}\n\n- (instancetype)initWithNewLocalRepository:(NSString*)path bare:(BOOL)bare error:(NSError**)error {\n  return [self initWithNewLocalRepository:path bare:bare defaultBranchName:nil error:error];\n}\n\n- (instancetype)initWithNewLocalRepository:(NSString*)path bare:(BOOL)bare defaultBranchName:(NSString*)defaultBranchName error:(NSError**)error {\n  git_repository_init_options options = GIT_REPOSITORY_INIT_OPTIONS_INIT;\n  options.flags = GIT_REPOSITORY_INIT_NO_REINIT | GIT_REPOSITORY_INIT_MKPATH;\n  if (bare) {\n    options.flags |= GIT_REPOSITORY_INIT_BARE;\n  }\n\n  if (defaultBranchName) {\n    options.initial_head = defaultBranchName.UTF8String;\n  }\n\n  git_repository* repository;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_repository_init_ext, &repository, path.fileSystemRepresentation, &options);\n  return [self initWithRepository:repository error:error];\n}\n\n#pragma mark - Accessors\n\n- (BOOL)isReadOnly {\n  return !_IsDirectoryWritable(git_repository_path(_private));\n}\n\n- (BOOL)isBare {\n  return (git_repository_is_bare(_private) > 0 ? YES : NO);\n}\n\n- (BOOL)isShallow {\n  return (git_repository_is_shallow(_private) > 0 ? YES : NO);  // TODO: This could actually fail\n}\n\nstatic int _ReferenceForEachCallback(const char* refname, void* payload) {\n  return GIT_PASSTHROUGH;\n}\n\n// Reimplementation of git_repository_is_empty() that accepts the unborn HEAD to point to any branch\n- (BOOL)isEmpty {\n  BOOL empty = YES;\n  int status = git_reference_foreach_name(_private, _ReferenceForEachCallback, NULL);\n  if (status == GIT_PASSTHROUGH) {\n    empty = NO;\n  } else if (status != GIT_OK) {\n    XLOG_DEBUG_UNREACHABLE();\n    LOG_LIBGIT2_ERROR(status);\n    empty = NO;\n  } else {\n    status = git_repository_head_unborn(_private);\n    if (status == 0) {\n      empty = NO;\n    } else if (status < 0) {\n      XLOG_DEBUG_UNREACHABLE();\n      LOG_LIBGIT2_ERROR(status);\n      empty = NO;\n    }\n  }\n  return empty;\n}\n\n- (GCRepositoryState)state {\n  switch (git_repository_state(_private)) {\n    case GIT_REPOSITORY_STATE_NONE:\n      return kGCRepositoryState_None;\n    case GIT_REPOSITORY_STATE_MERGE:\n      return kGCRepositoryState_Merge;\n    case GIT_REPOSITORY_STATE_REVERT:\n      return kGCRepositoryState_Revert;\n    case GIT_REPOSITORY_STATE_CHERRYPICK:\n      return kGCRepositoryState_CherryPick;\n    case GIT_REPOSITORY_STATE_BISECT:\n      return kGCRepositoryState_Bisect;\n    case GIT_REPOSITORY_STATE_REBASE:\n      return kGCRepositoryState_Rebase;\n    case GIT_REPOSITORY_STATE_REBASE_INTERACTIVE:\n      return kGCRepositoryState_RebaseInteractive;\n    case GIT_REPOSITORY_STATE_REBASE_MERGE:\n      return kGCRepositoryState_RebaseMerge;\n    case GIT_REPOSITORY_STATE_APPLY_MAILBOX:\n      return kGCRepositoryState_ApplyMailbox;\n    case GIT_REPOSITORY_STATE_APPLY_MAILBOX_OR_REBASE:\n      return kGCRepositoryState_ApplyMailboxOrRebase;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return 0;\n}\n\n#pragma mark - Utilities\n\n- (BOOL)cleanupState:(NSError**)error {\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_repository_state_cleanup, _private);\n  return YES;\n}\n\n- (BOOL)checkPathNotIgnored:(NSString*)path error:(NSError**)error {\n  int ignored;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_ignore_path_is_ignored, &ignored, self.private, GCGitPathFromFileSystemPath(path));\n  if (ignored) {\n    GC_SET_GENERIC_ERROR(@\"Path is ignored\");\n    return NO;\n  }\n  return YES;\n}\n\n- (NSURL*)absoluteURLForFile:(NSString*)path {\n  NSString* absolutePath = [self absolutePathForFile:path];\n  return [NSURL fileURLWithPath:absolutePath];\n}\n\n- (NSString*)absolutePathForFile:(NSString*)path {\n  XLOG_CHECK(_workingDirectoryPath && path.length);\n  return [_workingDirectoryPath stringByAppendingPathComponent:path];\n}\n\n- (BOOL)safeDeleteFile:(NSString*)path error:(NSError**)error {\n#if TARGET_OS_IPHONE\n  return [[NSFileManager defaultManager] removeItemAtPath:[self absolutePathForFile:path] error:error];\n#else\n  return [[NSFileManager defaultManager] moveItemAtPathToTrash:[self absolutePathForFile:path] error:error];\n#endif\n}\n\n- (NSString*)privateAppDirectoryPath {\n  NSString* path = [_repositoryPath stringByAppendingPathComponent:[[NSBundle mainBundle] bundleIdentifier]];\n\n  BOOL isDirectory;\n  if ([[NSFileManager defaultManager] fileExistsAtPath:path isDirectory:&isDirectory]) {\n    if (!isDirectory) {\n      XLOG_DEBUG_UNREACHABLE();\n      return nil;\n    }\n  } else {\n    NSError* error;\n    if (![[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:&error]) {\n      XLOG_ERROR(@\"Failed creating private app directory at \\\"%@\\\"\", path);\n      return nil;\n    }\n  }\n\n  if (!_IsDirectoryWritable(path.fileSystemRepresentation)) {\n    XLOG_ERROR(@\"Private app directory at \\\"%@\\\" is not writable\", path);\n    return nil;\n  }\n  return path;\n}\n\n- (NSString*)privateTemporaryFilePath {\n  return [self.privateAppDirectoryPath stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];  // Ignore errors\n}\n\n- (BOOL)exportBlobWithSHA1:(NSString*)sha1 toPath:(NSString*)path error:(NSError**)error {\n  git_oid oid;\n  if (!GCGitOIDFromSHA1(sha1, &oid, error)) {\n    return NO;\n  }\n  return [self exportBlobWithOID:&oid toPath:path error:error];\n}\n\n#if !TARGET_OS_IPHONE\n\n- (NSString*)pathForHookWithName:(NSString*)name {\n  NSString* hooksPath = [[self readConfigOptionForVariable:@\"core.hooksPath\" error:NULL] value];\n  if (hooksPath.length > 0) {\n    hooksPath = hooksPath.stringByExpandingTildeInPath;\n    if (!hooksPath.absolutePath) {\n      hooksPath = [self.workingDirectoryPath stringByAppendingPathComponent:hooksPath];\n    }\n  } else {\n    hooksPath = [self.repositoryPath stringByAppendingPathComponent:@\"hooks\"];\n  }\n  NSString* path = [hooksPath stringByAppendingPathComponent:name];\n  return [[NSFileManager defaultManager] isExecutableFileAtPath:path] ? path : nil;\n}\n\n- (NSString*)getPATHUsingShell:(NSString*)shell error:(NSError**)error {\n  GCTask* task = [[GCTask alloc] initWithExecutablePath:shell];\n  NSData* data;\n  // `-l` is not supported with `-c` in all shells (tcsh), so try without.\n  // Some shells use quoting of $PATH to trigger POSIX compatibility behavior (fish).\n  // Not all shells support `-n` on `echo`.\n  if (![task runWithArguments:@[ @\"-l\", @\"-c\", @\"echo \\\"$PATH\\\"\" ] stdin:NULL stdout:&data stderr:NULL exitStatus:NULL error:error] && ![task runWithArguments:@[ @\"-c\", @\"echo \\\"$PATH\\\"\" ] stdin:NULL stdout:&data stderr:NULL exitStatus:NULL error:error]) {\n    return nil;\n  }\n  return [[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];\n}\n\n- (BOOL)runHookWithName:(NSString*)name arguments:(NSArray*)arguments standardInput:(NSString*)standardInput error:(NSError**)error {\n  NSString* path = [self pathForHookWithName:name];\n  if (path) {\n    static NSString* cachedPATH = nil;\n    if (cachedPATH == nil) {\n      cachedPATH = [self getPATHUsingShell:NSProcessInfo.processInfo.environment[@\"SHELL\"] error:error] ?: [self getPATHUsingShell:@\"/bin/sh\" error:error];\n      XLOG_DEBUG_CHECK(cachedPATH);\n    }\n\n    CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n    GCTask* task = [[GCTask alloc] initWithExecutablePath:path];\n    task.currentDirectoryPath = self.workingDirectoryPath;  // TODO: Is this the right working directory?\n    task.additionalEnvironment = @{@\"PATH\" : cachedPATH};\n    task.fallBackToDefaultInterpreter = YES;\n    int status;\n    NSData* stdoutData;\n    NSData* stderrData;\n    if (![task runWithArguments:arguments stdin:[standardInput dataUsingEncoding:NSUTF8StringEncoding] stdout:&stdoutData stderr:&stderrData exitStatus:&status error:error]) {\n      XLOG_ERROR(@\"Failed executing '%@' hook\", name);\n      return NO;\n    }\n    XLOG_VERBOSE(@\"Executed '%@' hook in %.3f seconds\", name, CFAbsoluteTimeGetCurrent() - time);\n    if (status != 0) {\n      if (error) {\n        NSString* string = [[[NSString alloc] initWithData:(stderrData.length ? stderrData : stdoutData) encoding:NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n        XLOG_DEBUG_CHECK(string);\n        NSDictionary* info = @{\n          NSLocalizedDescriptionKey : [NSString stringWithFormat:@\"Hook '%@' exited with non-zero status (%i)\", name, status],\n          NSLocalizedRecoverySuggestionErrorKey : (string ? string : @\"\")\n        };\n        *error = [NSError errorWithDomain:GCErrorDomain code:status userInfo:info];\n      }\n      return NO;\n    }\n  }\n  return YES;\n}\n\n#endif\n\n#if DEBUG\n\n- (GCDiff*)checkUnifiedStatus:(NSError**)error {\n  return [self diffWorkingDirectoryWithHEAD:nil options:(kGCDiffOption_IncludeUntracked | kGCDiffOption_FindRenames) maxInterHunkLines:0 maxContextLines:0 error:error];\n}\n\n- (GCDiff*)checkIndexStatus:(NSError**)error {\n  return [self diffRepositoryIndexWithHEAD:nil options:kGCDiffOption_FindRenames maxInterHunkLines:0 maxContextLines:0 error:error];\n}\n\n- (GCDiff*)checkWorkingDirectoryStatus:(NSError**)error {\n  return [self diffWorkingDirectoryWithRepositoryIndex:nil options:kGCDiffOption_IncludeUntracked maxInterHunkLines:0 maxContextLines:0 error:error];\n}\n\n- (BOOL)checkRepositoryDirty:(BOOL)includeUntracked {\n  git_status_options options = GIT_STATUS_OPTIONS_INIT;\n  options.show = GIT_STATUS_SHOW_INDEX_AND_WORKDIR;\n  options.flags = includeUntracked ? GIT_STATUS_OPT_INCLUDE_UNTRACKED : 0;\n  git_status_list* list;\n  int status = git_status_list_new(&list, self.private, &options);\n  if (status != GIT_OK) {\n    LOG_LIBGIT2_ERROR(status);\n    XLOG_DEBUG_UNREACHABLE();\n    return NO;\n  }\n  BOOL dirty = git_status_list_entrycount(list) > 0;\n  git_status_list_free(list);\n  return dirty;\n}\n\n- (instancetype)initWithClonedRepositoryFromURL:(NSURL*)url toPath:(NSString*)path usingDelegate:(id<GCRepositoryDelegate>)delegate recursive:(BOOL)recursive error:(NSError**)error {\n  if ((self = [self initWithNewLocalRepository:path bare:NO error:error])) {\n    _delegate = delegate;\n    GCRemote* remote = [self addRemoteWithName:@\"origin\" url:url error:error];\n    if (!remote || ![self cloneUsingRemote:remote recursive:recursive error:error]) {\n      return nil;\n    }\n  }\n  return self;\n}\n\n#endif\n\n#pragma mark Remote Callbacks\n\n- (void)willStartRemoteTransferWithURL:(NSURL*)url {\n  if ([_delegate respondsToSelector:@selector(repository:willStartTransferWithURL:)]) {\n    if ([NSThread isMainThread]) {\n      [_delegate repository:self willStartTransferWithURL:url];\n    } else {\n      dispatch_async(dispatch_get_main_queue(), ^{\n        [_delegate repository:self willStartTransferWithURL:url];\n      });\n    }\n  }\n}\n\n- (void)didFinishRemoteTransferWithURL:(NSURL*)url success:(BOOL)success {\n  if ([_delegate respondsToSelector:@selector(repository:didFinishTransferWithURL:success:)]) {\n    if ([NSThread isMainThread]) {\n      [_delegate repository:self didFinishTransferWithURL:url success:success];\n    } else {\n      dispatch_async(dispatch_get_main_queue(), ^{\n        [_delegate repository:self didFinishTransferWithURL:url success:success];\n      });\n    }\n  }\n}\n\nstatic int _CredentialsCallback(git_cred** cred, const char* url, const char* user, unsigned int allowed_types, void* payload) {\n  GCRepository* repository = (__bridge GCRepository*)payload;\n  if (allowed_types & GIT_CREDTYPE_SSH_KEY) {\n#if !TARGET_OS_IPHONE\n    if (!repository->_didTrySSHAgent) {\n      repository->_didTrySSHAgent = YES;\n      return git_cred_ssh_key_from_agent(cred, user);\n    }\n#endif\n\n#if !TARGET_OS_IPHONE\n    if (repository->_privateKeyList == nil) {\n      XLOG_WARNING(@\"SSH Agent did not find any key for \\\"%s\\\"\", url);\n      NSMutableArray* array = [[NSMutableArray alloc] init];\n      NSString* basePath = [NSHomeDirectory() stringByAppendingPathComponent:@\".ssh\"];\n      for (NSString* file in [[NSFileManager defaultManager] contentsOfDirectoryAtPath:basePath error:NULL]) {\n        if ([file hasPrefix:@\".\"]) {\n          continue;\n        }\n        if ([file hasSuffix:@\".pub\"]) {\n          continue;\n        }\n        if ([file isEqualToString:@\"authorized_keys\"] || [file isEqualToString:@\"config\"] || [file isEqualToString:@\"known_hosts\"]) {\n          continue;\n        }\n        NSString* path = [basePath stringByAppendingPathComponent:file];\n        if ([[[[NSFileManager defaultManager] attributesOfItemAtPath:path error:NULL] fileType] isEqualToString:NSFileTypeRegular]) {\n          [array addObject:path];\n        }\n      }\n      repository->_privateKeyList = array;\n    }\n    if (repository->_privateKeyIndex < [repository->_privateKeyList count]) {\n      const char* path = [[repository->_privateKeyList objectAtIndex:repository->_privateKeyIndex++] fileSystemRepresentation];\n      XLOG_VERBOSE(@\"Trying SSH key \\\"%s\\\" for \\\"%s\\\"\", path, url);\n      return git_cred_ssh_key_new(cred, user, NULL, path, NULL);  // TODO: Handle passphrases\n    }\n#endif\n\n    __block NSString* username = nil;\n    __block NSString* publicPath = nil;\n    __block NSString* privatePath = nil;\n    __block NSString* passphrase = nil;\n    __block BOOL success;\n    if ([repository.delegate respondsToSelector:@selector(repository:requiresSSHAuthenticationForURL:user:username:publicKeyPath:privateKeyPath:passphrase:)]) {  // Must use sync dispatch\n      if ([NSThread isMainThread]) {\n        success = [repository.delegate repository:repository\n                  requiresSSHAuthenticationForURL:GCURLFromGitURL([NSString stringWithUTF8String:url])\n                                             user:[NSString stringWithUTF8String:user]\n                                         username:&username\n                                    publicKeyPath:&publicPath\n                                   privateKeyPath:&privatePath\n                                       passphrase:&passphrase];\n      } else {\n        dispatch_sync(dispatch_get_main_queue(), ^{\n          success = [repository.delegate repository:repository\n                    requiresSSHAuthenticationForURL:GCURLFromGitURL([NSString stringWithUTF8String:url])\n                                               user:[NSString stringWithUTF8String:user]\n                                           username:&username\n                                      publicKeyPath:&publicPath\n                                     privateKeyPath:&privatePath\n                                         passphrase:&passphrase];\n        });\n      }\n      if (success) {\n        return git_cred_ssh_key_new(cred, username.UTF8String, publicPath.fileSystemRepresentation, privatePath.fileSystemRepresentation, passphrase.UTF8String);\n      }\n      return GIT_EUSER;\n    }\n  }\n  if (allowed_types & GIT_CREDTYPE_USERPASS_PLAINTEXT) {\n    if ([repository.delegate respondsToSelector:@selector(repository:requiresPlainTextAuthenticationForURL:user:username:password:)]) {  // Must use sync dispatch\n      __block NSString* username = nil;\n      __block NSString* password = nil;\n      __block BOOL success;\n      if ([NSThread isMainThread]) {\n        success = [repository.delegate repository:repository\n            requiresPlainTextAuthenticationForURL:GCURLFromGitURL([NSString stringWithUTF8String:url])\n                                             user:(user ? [NSString stringWithUTF8String:user] : nil)\n                                             username:&username\n                                         password:&password];\n      } else {\n        dispatch_sync(dispatch_get_main_queue(), ^{\n          success = [repository.delegate repository:repository\n              requiresPlainTextAuthenticationForURL:GCURLFromGitURL([NSString stringWithUTF8String:url])\n                                               user:(user ? [NSString stringWithUTF8String:user] : nil)\n                                               username:&username\n                                           password:&password];\n        });\n      }\n      if (success) {\n        return git_cred_userpass_plaintext_new(cred, username.UTF8String, password.UTF8String);\n      }\n      return GIT_EUSER;\n    }\n  }\n  return GIT_PASSTHROUGH;\n}\n\n// Called when fetching only\nstatic int _TransportMessageCallback(const char* str, int len, void* payload) {\n  XLOG_VERBOSE(@\"Remote transport message: %@\", [[[NSString alloc] initWithBytes:str length:len encoding:NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]]);\n  return GIT_OK;\n}\n\n// Called when fetching only\nstatic int _FetchTransferProgressCallback(const git_transfer_progress* stats, void* payload) {\n  XLOG_DEBUG(@\"Remote fetched %u / %u objects (%zu bytes)\", stats->received_objects, stats->total_objects, stats->received_bytes);\n  GCRepository* repository = (__bridge GCRepository*)payload;\n  if (repository->_hasFetchProgressDelegate) {\n    float progress = roundf(100.0 * (float)(stats->received_objects + stats->indexed_objects) / (float)(2 * stats->total_objects));\n    if (progress > repository->_lastFetchProgress) {\n      if ([NSThread isMainThread]) {\n        [repository.delegate repository:repository updateTransferProgress:(progress / 100.0) transferredBytes:stats->received_bytes];\n      } else {\n        dispatch_async(dispatch_get_main_queue(), ^{\n          [repository.delegate repository:repository updateTransferProgress:(progress / 100.0) transferredBytes:stats->received_bytes];\n        });\n      }\n      repository->_lastFetchProgress = progress;\n    }\n  }\n  return GIT_OK;\n}\n\n// Called when fetching or pushing\nstatic int _UpdateTipsCallback(const char* refname, const git_oid* a, const git_oid* b, void* data) {\n  char bufferA[8];\n  char bufferB[8];\n  XLOG_VERBOSE(@\"Remote updated \\\"%s\\\" from %s to %s\", refname, git_oid_tostr(bufferA, sizeof(bufferA), a), git_oid_tostr(bufferB, sizeof(bufferB), b));\n  GCRepository* repository = (__bridge GCRepository*)data;\n  repository->_lastUpdatedTips += 1;\n  return GIT_OK;\n}\n\n// Called when pushing only\nstatic int _PackbuilderProgressCallback(int stage, unsigned int current, unsigned int total, void* payload) {\n  XLOG_DEBUG(@\"Remote packed %u / %u objects\", current, total);\n  return GIT_OK;\n}\n\n// Called when pushing only\nstatic int _PushTransferProgressCallback(unsigned int current, unsigned int total, size_t bytes, void* payload) {\n  XLOG_DEBUG(@\"Pushed %u / %u objects (%zu bytes)\", current, total, bytes);\n  GCRepository* repository = (__bridge GCRepository*)payload;\n  if (repository->_hasPushProgressDelegate) {\n    float progress = roundf(100.0 * (float)current / (float)total);\n    if (progress > repository->_lastPushProgress) {\n      if ([NSThread isMainThread]) {\n        [repository.delegate repository:repository updateTransferProgress:(progress / 100.0) transferredBytes:bytes];\n      } else {\n        dispatch_async(dispatch_get_main_queue(), ^{\n          [repository.delegate repository:repository updateTransferProgress:(progress / 100.0) transferredBytes:bytes];\n        });\n      }\n      repository->_lastPushProgress = progress;\n    }\n  }\n  return GIT_OK;\n}\n\n// Called when pushing only\nstatic int _PushUpdateReferenceCallback(const char* refspec, const char* message, void* data) {\n  if (message) {\n    XLOG_ERROR(@\"Failed updating remote reference '%s': %s\", refspec, message);\n    giterr_set_str(GITERR_NET, [[NSString stringWithFormat:@\"remote reference '%s' failed to update: %s\", refspec, message] UTF8String]);\n    return GIT_ERROR;\n  }\n  return GIT_OK;\n}\n\n// Called when pushing only\nstatic int _PushNegotiationCallback(git_remote* remote, const git_push_update** updates, size_t len, void* payload) {\n#if !TARGET_OS_IPHONE\n  GCRepository* repository = (__bridge GCRepository*)payload;\n  if ([repository pathForHookWithName:@\"pre-push\"]) {\n    NSMutableString* string = [[NSMutableString alloc] init];  // Format is \"<local ref> SP <local sha1> SP <remote ref> SP <remote sha1> LF\"\n    for (size_t i = 0; i < len; ++i) {\n      const git_push_update* update = updates[i];\n      if (update->src_refname[0]) {\n        XLOG_DEBUG_CHECK(update->dst_refname[0] && !git_oid_iszero(&update->dst));\n        if (git_oid_iszero(&update->src)) {  // Adding ref: \"'src_refname' 0 'dst_refname' OID\" -> \"refs/heads/master 67890 refs/heads/foreign 0\"\n          [string appendFormat:@\"%s %s \", update->src_refname, git_oid_tostr_s(&update->dst)];\n          [string appendFormat:@\"%s %s\\n\", update->dst_refname, git_oid_tostr_s(&update->src)];\n        } else {  // Updating ref: \"'src_refname' OID 'dst_refname' OID\" -> \"refs/heads/master 67890 refs/heads/foreign 12345\"\n          [string appendFormat:@\"%s %s \", update->src_refname, git_oid_tostr_s(&update->dst)];\n          [string appendFormat:@\"%s %s\\n\", update->dst_refname, git_oid_tostr_s(&update->src)];\n        }\n      } else {  // Deleting ref: \"'' OID 'dst_refname' 0\" -> \"(delete) 0 refs/heads/foreign 12345\"\n        XLOG_DEBUG_CHECK(!git_oid_iszero(&update->src) && update->dst_refname[0] && git_oid_iszero(&update->dst));\n        [string appendFormat:@\"(delete) %s \", git_oid_tostr_s(&update->dst)];\n        [string appendFormat:@\"%s %s\\n\", update->dst_refname, git_oid_tostr_s(&update->src)];\n      }\n    }\n\n    NSError* error;\n    const char* remoteURL = git_remote_url(remote);\n    if (![repository runHookWithName:@\"pre-push\"\n                           arguments:@[ [NSString stringWithUTF8String:git_remote_name(remote)], remoteURL ? [NSString stringWithUTF8String:remoteURL] : @\"\" ]\n                       standardInput:string\n                               error:&error]) {\n      const char* message = error.localizedRecoverySuggestion.UTF8String;\n      if (message == NULL) {\n        message = \"pre-push hook exited with non-zero status\";\n      }\n      giterr_set_str(GITERR_NET, message);\n      return GIT_ERROR;\n    }\n  }\n#endif\n  return GIT_OK;\n}\n\n- (void)setRemoteCallbacks:(git_remote_callbacks*)callbacks {\n  callbacks->sideband_progress = _TransportMessageCallback;\n  // callbacks->completion =\n  callbacks->credentials = _CredentialsCallback;\n  // callbacks->certificate_check =\n  callbacks->transfer_progress = _FetchTransferProgressCallback;\n  callbacks->update_tips = _UpdateTipsCallback;\n  callbacks->pack_progress = _PackbuilderProgressCallback;\n  callbacks->push_transfer_progress = _PushTransferProgressCallback;\n  callbacks->push_update_reference = _PushUpdateReferenceCallback;\n  callbacks->push_negotiation = _PushNegotiationCallback;\n  callbacks->payload = (__bridge void*)self;\n\n#if !TARGET_OS_IPHONE\n  _didTrySSHAgent = NO;\n  _privateKeyList = nil;\n  _privateKeyIndex = 0;\n#endif\n\n  _hasFetchProgressDelegate = [_delegate respondsToSelector:@selector(repository:updateTransferProgress:transferredBytes:)];\n  _lastFetchProgress = -1.0;\n  _hasPushProgressDelegate = [_delegate respondsToSelector:@selector(repository:updateTransferProgress:transferredBytes:)];\n  _lastPushProgress = -1.0;\n\n  _lastUpdatedTips = 0;\n}\n\n- (NSData*)exportBlobWithOID:(const git_oid*)oid error:(NSError**)error {\n  git_blob* blob;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_blob_lookup, &blob, self.private, oid);\n  NSData* data = [[NSData alloc] initWithBytes:git_blob_rawcontent(blob) length:(NSUInteger)git_blob_rawsize(blob)];\n  git_blob_free(blob);\n  return data;\n}\n\n- (BOOL)exportBlobWithOID:(const git_oid*)oid toPath:(NSString*)path error:(NSError**)error {\n  BOOL success = NO;\n  git_blob* blob = NULL;\n  int fd = -1;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_blob_lookup, &blob, self.private, oid);\n  fd = open(path.fileSystemRepresentation, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR);\n  CHECK_POSIX_FUNCTION_CALL(goto cleanup, fd, >= 0);\n  if (write(fd, git_blob_rawcontent(blob), (size_t)git_blob_rawsize(blob)) == git_blob_rawsize(blob)) {\n    success = YES;\n  } else {\n    GC_SET_GENERIC_ERROR(@\"%s\", strerror(errno));\n    XLOG_DEBUG_UNREACHABLE();\n  }\n\ncleanup:\n  if (fd >= 0) {\n    close(fd);\n  }\n  git_blob_free(blob);\n  return success;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSQLiteRepository-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCSQLiteRepositoryTests (GCSQLiteRepository)\n\n// TODO: Test read_header() and foreach()\n- (void)testSQLite_Objects {\n  // Test exists(), write() and read()\n  GCCommit* commit = [self.repository createCommitFromHEADWithMessage:@\"0\" error:NULL];\n  XCTAssertNotNil(commit);\n\n  // Test exists_prefix()\n  XCTAssertNotNil([self.repository computeUniqueShortSHA1ForCommit:commit error:NULL]);\n\n  // Test read_prefix()\n  git_object* object;\n  XCTAssertEqual(git_object_lookup_prefix(&object, self.repository.private, git_commit_id(commit.private), 10, GIT_OBJ_COMMIT), GIT_OK);\n}\n\n// TODO: libgit2 doesn't call exists() at all\n- (void)testSQLite_References {\n  // Test lookup()\n  XCTAssertNil([self.repository lookupHEAD:NULL error:NULL]);\n\n  // Test write() - Symbolic\n  XCTAssertNotNil([self.repository createSymbolicReferenceWithFullName:@\"HEAD\" target:@\"refs/heads/master\" force:YES error:NULL]);\n\n  // Test write() - Direct\n  GCCommit* commit = [self.repository createCommitFromHEADWithMessage:@\"0\" error:NULL];\n  XCTAssertNotNil(commit);\n  GCLocalBranch* masterBranch;\n  XCTAssertNotNil([self.repository lookupHEAD:&masterBranch error:NULL]);\n\n  // Create topic branch\n  GCLocalBranch* topicBranch = [self.repository createLocalBranchFromCommit:commit withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n\n  // Test iterator()\n  NSArray* branches = @[ masterBranch, topicBranch ];\n  XCTAssertEqualObjects([self.repository listAllBranches:NULL], branches);\n\n  // Test rename() (and indirectly exists())\n  XCTAssertTrue([self.repository setName:@\"temp\" forLocalBranch:topicBranch force:NO error:NULL]);\n\n  // Test del()\n  XCTAssertTrue([self.repository deleteLocalBranch:topicBranch error:NULL]);\n}\n\n@end\n\n@implementation GCMultipleCommitsRepositoryTests (GCSQLiteRepository)\n\n- (void)testSQLite_Copy {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Copy repo from test repo\n  [[NSFileManager defaultManager] removeItemAtPath:path error:NULL];\n  GCSQLiteRepository* repository = [[GCSQLiteRepository alloc] initWithDatabase:path config:nil localRepositoryContents:self.repository.repositoryPath error:NULL];\n  XCTAssertNotNil(repository);\n  XCTAssertNotNil([repository findCommitWithSHA1:self.commit2.SHA1 error:NULL]);\n  XCTAssertNotNil([repository findCommitWithSHA1:self.commitA.SHA1 error:NULL]);\n  XCTAssertNotNil([repository findLocalBranchWithName:@\"topic\" error:NULL]);\n  GCLocalBranch* branch;\n  XCTAssertNotNil([repository lookupHEAD:&branch error:NULL]);\n  XCTAssertEqualObjects(branch.name, @\"master\");\n\n  // Clean up\n  repository = nil;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSQLiteRepository.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\n@interface GCSQLiteRepository : GCRepository\n- (instancetype)initWithDatabase:(NSString*)databasePath error:(NSError**)error;\n- (instancetype)initWithDatabase:(NSString*)databasePath config:(NSString*)configPath localRepositoryContents:(NSString*)localPath error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSQLiteRepository.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n/* Original license from https://github.com/libgit2/libgit2-backends/ follows */\n\n/*\n * This file is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License, version 2,\n * as published by the Free Software Foundation.\n *\n * In addition to the permissions in the GNU General Public License,\n * the authors give you unlimited permission to link the compiled\n * version of this file into combinations with other programs,\n * and to distribute those combinations without any restriction\n * coming from the use of this file.  (The General Public License\n * restrictions do apply in other respects; for example, they cover\n * modification of the file, and distribution when not linked into\n * a combined executable.)\n *\n * This file is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; see the file COPYING.  If not, write to\n * the Free Software Foundation, 51 Franklin Street, Fifth Floor,\n * Boston, MA 02110-1301, USA.\n */\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <sqlite3.h>\n\n#import \"GCPrivate.h\"\n\n#define ODB_TABLE_NAME \"libgit2_odb\"\n#define REFDB_TABLE_NAME \"libgit2_refdb\"\n\n#pragma mark - odb_backend\n\ntypedef struct {\n  git_odb_backend parent;\n  sqlite3* db;\n  sqlite3_stmt* exists;\n  sqlite3_stmt* exists_prefix;\n  sqlite3_stmt* read;\n  sqlite3_stmt* read_prefix;\n  sqlite3_stmt* read_header;\n  sqlite3_stmt* write;\n  sqlite3_stmt* foreach;\n} sqlite3_odb;\n\nstatic int _odb_backend_init_db(sqlite3* db) {\n  static const char* sql_check = \"SELECT name FROM sqlite_master WHERE type='table' AND name='\" ODB_TABLE_NAME \"';\";\n  static const char* sql_creat =\n      \"CREATE TABLE '\" ODB_TABLE_NAME \"' (\"\n      \"'oid' CHARACTER(20) PRIMARY KEY NOT NULL,\"\n      \"'type' INTEGER NOT NULL,\"\n      \"'size' INTEGER NOT NULL,\"\n      \"'data' BLOB);\";\n\n  sqlite3_stmt* st_check;\n  if (sqlite3_prepare_v2(db, sql_check, -1, &st_check, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n\n  int error;\n  switch (sqlite3_step(st_check)) {\n    case SQLITE_DONE:\n      if (sqlite3_exec(db, sql_creat, NULL, NULL, NULL) != SQLITE_OK) {\n        error = GIT_ERROR;\n      } else {\n        error = GIT_OK;\n      }\n      break;\n\n    case SQLITE_ROW:\n      error = GIT_OK;\n      break;\n\n    default:\n      error = GIT_ERROR;\n      break;\n  }\n\n  sqlite3_finalize(st_check);\n  return error;\n}\n\nstatic int _odb_backend_init_statements(sqlite3_odb* backend) {\n  static const char* sql_exists =\n      \"SELECT 1 FROM '\" ODB_TABLE_NAME \"' WHERE oid = ?1\";\n  static const char* sql_exists_prefix =\n      \"SELECT oid FROM '\" ODB_TABLE_NAME \"' WHERE substr(HEX(oid), 1, ?1) = UPPER(?2)\";\n  static const char* sql_read =\n      \"SELECT type, size, data FROM '\" ODB_TABLE_NAME \"' WHERE oid = ?1\";\n  static const char* sql_read_prefix =\n      \"SELECT oid, type, size, data FROM '\" ODB_TABLE_NAME \"' WHERE substr(HEX(oid), 1, ?1) = UPPER(?2)\";\n  static const char* sql_read_header =\n      \"SELECT type, size FROM '\" ODB_TABLE_NAME \"' WHERE oid = ?1\";\n  static const char* sql_write =\n      \"INSERT OR IGNORE INTO '\" ODB_TABLE_NAME \"' VALUES (?1, ?2, ?3, ?4)\";  // Just ignore if attempting to insert an already existing object\n  static const char* sql_foreach =\n      \"SELECT oid FROM '\" ODB_TABLE_NAME \"'\";\n\n  if (sqlite3_prepare_v2(backend->db, sql_exists, -1, &backend->exists, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_exists_prefix, -1, &backend->exists_prefix, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_read, -1, &backend->read, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_read_prefix, -1, &backend->read_prefix, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_read_header, -1, &backend->read_header, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_write, -1, &backend->write, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_foreach, -1, &backend->foreach, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n\n  return GIT_OK;\n}\n\nstatic int _odb_read_header(size_t* len_out, git_otype* type_out, git_odb_backend* _backend, const git_oid* oid) {\n  XLOG_DEBUG_CHECK(len_out && type_out && _backend && oid);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int error = GIT_ERROR;\n\n  if (sqlite3_bind_blob(backend->read_header, 1, oid->id, GIT_OID_RAWSZ, SQLITE_STATIC) == SQLITE_OK) {\n    if (sqlite3_step(backend->read_header) == SQLITE_ROW) {\n      *type_out = sqlite3_column_int(backend->read_header, 0);\n      *len_out = sqlite3_column_int(backend->read_header, 1);\n      // assert(sqlite3_step(backend->read_header) == SQLITE_DONE);\n      error = GIT_OK;\n    } else {\n      error = GIT_ENOTFOUND;\n    }\n  }\n  sqlite3_reset(backend->read_header);\n\n  return error;\n}\n\nstatic int _odb_read(void** data_out, size_t* len_out, git_otype* type_out, git_odb_backend* _backend, const git_oid* oid) {\n  XLOG_DEBUG_CHECK(data_out && len_out && type_out && _backend && oid);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int error = GIT_ERROR;\n\n  if (sqlite3_bind_blob(backend->read, 1, oid->id, GIT_OID_RAWSZ, SQLITE_STATIC) == SQLITE_OK) {\n    if (sqlite3_step(backend->read) == SQLITE_ROW) {\n      *type_out = sqlite3_column_int(backend->read, 0);\n      *len_out = sqlite3_column_int(backend->read, 1);\n      *data_out = git_odb_backend_malloc(_backend, *len_out);\n      bcopy(sqlite3_column_blob(backend->read, 2), *data_out, *len_out);\n      // assert(sqlite3_step(backend->read) == SQLITE_DONE);\n      error = GIT_OK;\n    } else {\n      error = GIT_ENOTFOUND;\n    }\n  }\n  sqlite3_reset(backend->read);\n\n  return error;\n}\n\n// TODO: Optimize lookup avoiding HEX conversion\nstatic int _odb_read_prefix(git_oid* oid_out, void** data_out, size_t* len_out, git_otype* type_out, git_odb_backend* _backend, const git_oid* short_oid, size_t len) {\n  XLOG_DEBUG_CHECK(oid_out && data_out && len_out && type_out && _backend && short_oid);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int error = GIT_ERROR;\n\n  if (len >= GIT_OID_HEXSZ) {\n    error = _odb_read(data_out, len_out, type_out, _backend, short_oid);\n    if (error == GIT_OK) {\n      git_oid_cpy(oid_out, short_oid);\n    }\n  } else {\n    if (sqlite3_bind_int(backend->read_prefix, 1, (int)len) == SQLITE_OK) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wvla\"\n      char buffer[len + 1];\n#pragma clang diagnostic pop\n      assert(git_oid_tostr(buffer, len + 1, short_oid));\n      if (sqlite3_bind_text(backend->read_prefix, 2, buffer, (int)len, SQLITE_STATIC) == SQLITE_OK) {\n        int result = sqlite3_step(backend->read_prefix);\n        if (result == SQLITE_ROW) {\n          XLOG_DEBUG_CHECK(sqlite3_column_bytes(backend->read_prefix, 0) == GIT_OID_RAWSZ);\n          const void* oid = sqlite3_column_blob(backend->read_prefix, 0);\n          git_oid_cpy(oid_out, oid);\n          *type_out = sqlite3_column_int(backend->read_prefix, 1);\n          *len_out = sqlite3_column_int(backend->read_prefix, 2);\n          *data_out = git_odb_backend_malloc(_backend, *len_out);\n          bcopy(sqlite3_column_blob(backend->read_prefix, 3), *data_out, *len_out);\n          // assert(sqlite3_step(backend->read_prefix) == SQLITE_DONE);\n          error = GIT_OK;\n        } else if (result == SQLITE_DONE) {\n          error = GIT_ENOTFOUND;\n        }\n      }\n    }\n    sqlite3_reset(backend->read_prefix);\n  }\n\n  return error;\n}\n\nstatic int _odb_exists(git_odb_backend* _backend, const git_oid* oid) {\n  XLOG_DEBUG_CHECK(_backend && oid);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int exists = 0;\n\n  if (sqlite3_bind_blob(backend->exists, 1, oid->id, GIT_OID_RAWSZ, SQLITE_STATIC) == SQLITE_OK) {\n    if (sqlite3_step(backend->exists) == SQLITE_ROW) {\n      // assert(sqlite3_step(backend->exists) == SQLITE_DONE);\n      exists = 1;\n    }\n  }\n  sqlite3_reset(backend->exists);\n\n  return exists;\n}\n\n// TODO: Optimize lookup avoiding HEX conversion\nstatic int _odb_exists_prefix(git_oid* oid_out, git_odb_backend* _backend, const git_oid* short_oid, size_t len) {  // WARNING: \"len\" is in hexadecimal characters, not bytes!\n  XLOG_DEBUG_CHECK(oid_out && _backend && short_oid);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int error = GIT_ERROR;\n\n  if (len >= GIT_OID_HEXSZ) {\n    if (_odb_exists(_backend, short_oid)) {\n      git_oid_cpy(oid_out, short_oid);\n      error = GIT_OK;\n    } else {\n      error = GIT_ENOTFOUND;\n    }\n  } else {\n    if (sqlite3_bind_int(backend->exists_prefix, 1, (int)len) == SQLITE_OK) {\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wvla\"\n      char buffer[len + 1];\n#pragma clang diagnostic pop\n      assert(git_oid_tostr(buffer, len + 1, short_oid));\n      if (sqlite3_bind_text(backend->exists_prefix, 2, buffer, (int)len, SQLITE_STATIC) == SQLITE_OK) {\n        int result = sqlite3_step(backend->exists_prefix);\n        if (result == SQLITE_ROW) {\n          XLOG_DEBUG_CHECK(sqlite3_column_bytes(backend->exists_prefix, 0) == GIT_OID_RAWSZ);\n          const void* oid = sqlite3_column_blob(backend->exists_prefix, 0);\n          git_oid_cpy(oid_out, oid);\n          // assert(sqlite3_step(backend->exists_prefix) == SQLITE_DONE);\n          error = GIT_OK;\n        } else if (result == SQLITE_DONE) {\n          error = GIT_ENOTFOUND;\n        }\n      }\n    }\n    sqlite3_reset(backend->exists_prefix);\n  }\n\n  return error;\n}\n\nstatic int _odb_write(git_odb_backend* _backend, const git_oid* oid, const void* data, size_t len, git_otype type) {\n  XLOG_DEBUG_CHECK(_backend && oid && data);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int error = GIT_ERROR;\n\n  if (sqlite3_bind_blob(backend->write, 1, oid->id, GIT_OID_RAWSZ, SQLITE_STATIC) == SQLITE_OK) {\n    if (sqlite3_bind_int(backend->write, 2, type) == SQLITE_OK) {\n      if (sqlite3_bind_int(backend->write, 3, (int)len) == SQLITE_OK) {\n        if (sqlite3_bind_blob(backend->write, 4, data, (int)len, SQLITE_STATIC) == SQLITE_OK) {\n          if (sqlite3_step(backend->write) == SQLITE_DONE) {\n            error = GIT_OK;\n          }\n        }\n      }\n    }\n  }\n  sqlite3_reset(backend->write);\n\n  return error;\n}\n\nstatic void _odb_free(git_odb_backend* _backend) {\n  XLOG_DEBUG_CHECK(_backend);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n\n  sqlite3_finalize(backend->exists);\n  sqlite3_finalize(backend->exists_prefix);\n  sqlite3_finalize(backend->read);\n  sqlite3_finalize(backend->read_prefix);\n  sqlite3_finalize(backend->read_header);\n  sqlite3_finalize(backend->write);\n  sqlite3_finalize(backend->foreach);\n  sqlite3_close(backend->db);\n\n  free(backend);\n}\n\nstatic int _odb_foreach(git_odb_backend* _backend, git_odb_foreach_cb cb, void* payload) {\n  XLOG_DEBUG_CHECK(_backend && cb);\n  sqlite3_odb* backend = (sqlite3_odb*)_backend;\n  int error = GIT_ERROR;\n\n  while (1) {\n    int result = sqlite3_step(backend->foreach);\n    if (result == SQLITE_ROW) {\n      XLOG_DEBUG_CHECK(sqlite3_column_bytes(backend->foreach, 0) == GIT_OID_RAWSZ);\n      error = cb(sqlite3_column_blob(backend->foreach, 0), payload);\n      if (error) {\n        break;\n      }\n    } else if (result == SQLITE_DONE) {\n      error = GIT_OK;\n      break;\n    } else {\n      break;\n    }\n  }\n  sqlite3_reset(backend->foreach);\n\n  return error;\n}\n\n// TODO: Add debug lock to ensure only used by one thread at a time\n// TODO: Use transactions for write if matching operations\nstatic int git_odb_backend_sqlite3(git_odb_backend** backend_out, const char* sqlite_db) {\n  int error = GIT_ERROR;\n\n  sqlite3_odb* backend = calloc(1, sizeof(sqlite3_odb));\n  git_odb_init_backend(&backend->parent, GIT_ODB_BACKEND_VERSION);\n  if (sqlite3_open_v2(sqlite_db, &backend->db, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE | SQLITE_OPEN_NOMUTEX, NULL) != SQLITE_OK) {\n    goto cleanup;\n  }\n  error = _odb_backend_init_db(backend->db);\n  if (error < 0) {\n    goto cleanup;\n  }\n  error = _odb_backend_init_statements(backend);\n  if (error < 0) {\n    goto cleanup;\n  }\n\n  backend->parent.read = &_odb_read;\n  backend->parent.read_prefix = &_odb_read_prefix;\n  backend->parent.read_header = &_odb_read_header;  // This is actually optional and if not implemented read() will be used instead\n  backend->parent.write = &_odb_write;\n  //  backend->parent.writestream =\n  //  backend->parent.readstream =\n  backend->parent.exists = &_odb_exists;\n  backend->parent.exists_prefix = &_odb_exists_prefix;\n  //  backend->parent.refresh =\n  backend->parent.foreach = &_odb_foreach;\n  //  backend->parent.writepack =\n  backend->parent.free = &_odb_free;\n\n  *backend_out = (git_odb_backend*)backend;\n  return GIT_OK;\n\ncleanup:\n  _odb_free((git_odb_backend*)backend);\n  return error;\n}\n\n#pragma mark - refdb_backend\n\ntypedef struct {\n  git_refdb_backend parent;\n  sqlite3* db;\n\n  sqlite3_stmt* exists;\n  sqlite3_stmt* lookup;\n  sqlite3_stmt* iterate;\n  sqlite3_stmt* write;\n  sqlite3_stmt* rename;\n  sqlite3_stmt* delete;\n  sqlite3_stmt* delete_oid;\n  sqlite3_stmt* delete_target;\n} sqlite3_refdb;\n\ntypedef struct {\n  git_reference_iterator parent;\n  sqlite3_stmt* statement;\n} sqlite3_refdb_iterator;\n\nstatic int _refdb_backend_init_db(sqlite3* db) {\n  static const char* sql_check = \"SELECT name FROM sqlite_master WHERE type='table' AND name='\" REFDB_TABLE_NAME \"';\";\n  static const char* sql_creat =\n      \"CREATE TABLE '\" REFDB_TABLE_NAME \"' (\"\n      \"'name' TEXT PRIMARY KEY NOT NULL,\"\n      \"'oid' CHARACTER(20),\"\n      \"'target' TEXT);\";\n\n  sqlite3_stmt* st_check;\n  if (sqlite3_prepare_v2(db, sql_check, -1, &st_check, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n\n  int error;\n  switch (sqlite3_step(st_check)) {\n    case SQLITE_DONE:\n      if (sqlite3_exec(db, sql_creat, NULL, NULL, NULL) != SQLITE_OK) {\n        error = GIT_ERROR;\n      } else {\n        error = GIT_OK;\n      }\n      break;\n\n    case SQLITE_ROW:\n      error = GIT_OK;\n      break;\n\n    default:\n      error = GIT_ERROR;\n      break;\n  }\n\n  sqlite3_finalize(st_check);\n  return error;\n}\n\nstatic int _refdb_backend_init_statements(sqlite3_refdb* backend) {\n  static const char* sql_exists =\n      \"SELECT 1 FROM '\" REFDB_TABLE_NAME \"' WHERE name = ?1\";\n  static const char* sql_lookup =\n      \"SELECT name, oid, target FROM '\" REFDB_TABLE_NAME \"' WHERE name = ?1\";\n  static const char* sql_iterate =\n      \"SELECT name, oid, target FROM '\" REFDB_TABLE_NAME \"' WHERE name != 'HEAD' ORDER BY name ASC\";\n  static const char* sql_delete =\n      \"DELETE FROM '\" REFDB_TABLE_NAME \"' WHERE name = ?1\";\n  static const char* sql_delete_oid =\n      \"DELETE FROM '\" REFDB_TABLE_NAME \"' WHERE name = ?1 AND oid = ?2\";\n  static const char* sql_delete_target =\n      \"DELETE FROM '\" REFDB_TABLE_NAME \"' WHERE name = ?1 AND target = ?2\";\n  static const char* sql_write =\n      \"INSERT OR REPLACE INTO '\" REFDB_TABLE_NAME \"' (name, oid, target) VALUES (?1, ?2, ?3)\";\n  static const char* sql_rename =\n      \"UPDATE '\" REFDB_TABLE_NAME \"' SET name = ?2 WHERE name = ?1\";\n\n  if (sqlite3_prepare_v2(backend->db, sql_exists, -1, &backend->exists, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_lookup, -1, &backend->lookup, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_iterate, -1, &backend->iterate, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_delete, -1, &backend->delete, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_delete_oid, -1, &backend->delete_oid, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_delete_target, -1, &backend->delete_target, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_write, -1, &backend->write, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n  if (sqlite3_prepare_v2(backend->db, sql_rename, -1, &backend->rename, NULL) != SQLITE_OK) {\n    return GIT_ERROR;\n  }\n\n  return GIT_OK;\n}\n\nstatic int _refdb_exists(int* exists, git_refdb_backend* _backend, const char* ref_name) {\n  XLOG_DEBUG_CHECK(exists && _backend && ref_name);\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n  int error = GIT_ERROR;\n\n  *exists = 0;\n  if (sqlite3_bind_text(backend->exists, 1, ref_name, -1, SQLITE_STATIC) == SQLITE_OK) {\n    int result = sqlite3_step(backend->exists);\n    if (result == SQLITE_ROW) {\n      *exists = 1;\n      // assert(sqlite3_step(backend->exists) == SQLITE_DONE);\n      error = GIT_OK;\n    } else if (result == SQLITE_DONE) {\n      error = GIT_OK;\n    }\n  }\n  sqlite3_reset(backend->exists);\n\n  return error;\n}\n\nstatic int _refdb_create_reference(git_reference** reference_out, sqlite3_stmt* statement) {\n  int error = GIT_ERROR;\n  const char* name = (const char*)sqlite3_column_text(statement, 0);\n  const void* oid = sqlite3_column_blob(statement, 1);\n  XLOG_DEBUG_CHECK(!oid || (sqlite3_column_bytes(statement, 1) == GIT_OID_RAWSZ));\n  const char* target = (const char*)sqlite3_column_text(statement, 2);\n  if (target) {\n    *reference_out = git_reference__alloc_symbolic(name, target);\n    error = GIT_OK;\n  } else if (oid) {\n    *reference_out = git_reference__alloc(name, oid, NULL);\n    error = GIT_OK;\n  }\n  return error;\n}\n\nstatic int _refdb_lookup(git_reference** reference_out, git_refdb_backend* _backend, const char* ref_name) {\n  XLOG_DEBUG_CHECK(reference_out && _backend && ref_name);\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n  int error = GIT_ERROR;\n\n  *reference_out = NULL;\n\n  if (sqlite3_bind_text(backend->lookup, 1, ref_name, -1, SQLITE_STATIC) == SQLITE_OK) {\n    int result = sqlite3_step(backend->lookup);\n    if (result == SQLITE_ROW) {\n      error = _refdb_create_reference(reference_out, backend->lookup);\n      // assert(sqlite3_step(backend->lookup) == SQLITE_DONE);\n    } else if (result == SQLITE_DONE) {\n      error = GIT_ENOTFOUND;\n    }\n  }\n  sqlite3_reset(backend->lookup);\n\n  return error;\n}\n\nstatic int _refdb_iterator_next(git_reference** reference_out, git_reference_iterator* _iterator) {\n  XLOG_DEBUG_CHECK(reference_out && _iterator);\n  sqlite3_refdb_iterator* iterator = (sqlite3_refdb_iterator*)_iterator;\n  int error = GIT_ERROR;\n\n  *reference_out = NULL;\n\n  int result = sqlite3_step(iterator->statement);\n  if (result == SQLITE_ROW) {\n    error = _refdb_create_reference(reference_out, iterator->statement);\n  } else if (result == SQLITE_DONE) {\n    error = GIT_ITEROVER;\n  }\n\n  return error;\n}\n\nstatic int _refdb_iterator_next_name(const char** ref_name_out, git_reference_iterator* _iterator) {\n  XLOG_DEBUG_CHECK(ref_name_out && _iterator);\n  sqlite3_refdb_iterator* iterator = (sqlite3_refdb_iterator*)_iterator;\n  int error = GIT_ERROR;\n\n  *ref_name_out = NULL;\n\n  int result = sqlite3_step(iterator->statement);\n  if (result == SQLITE_ROW) {\n    *ref_name_out = (const char*)sqlite3_column_text(iterator->statement, 0);  // TODO: Should we copy the string?\n    error = GIT_OK;\n  } else if (result == SQLITE_DONE) {\n    error = GIT_ITEROVER;\n  }\n\n  return error;\n}\n\nstatic void _refdb_iterator_free(git_reference_iterator* _iterator) {\n  XLOG_DEBUG_CHECK(_iterator);\n  sqlite3_refdb_iterator* iterator = (sqlite3_refdb_iterator*)_iterator;\n\n  sqlite3_reset(iterator->statement);\n\n  free(iterator);\n}\n\nstatic int _refdb_iterator(git_reference_iterator** iterator_out, git_refdb_backend* _backend, const char* glob) {\n  XLOG_DEBUG_CHECK(iterator_out && _backend && !glob);\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n\n  sqlite3_refdb_iterator* iterator = calloc(1, sizeof(sqlite3_refdb_iterator));\n  iterator->parent.next = &_refdb_iterator_next;\n  iterator->parent.next_name = &_refdb_iterator_next_name;\n  iterator->parent.free = &_refdb_iterator_free;\n  iterator->statement = backend->iterate;\n  *iterator_out = (git_reference_iterator*)iterator;\n\n  return GIT_OK;\n}\n\nstatic int _refdb_write(git_refdb_backend* _backend, const git_reference* ref, int force, const git_signature* who, const char* message, const git_oid* old_id, const char* old_target) {\n  XLOG_DEBUG_CHECK(_backend && ref && (old_id || old_target || (!old_id && !old_target)));\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n\n  git_reference* oldRef;\n  int error = _refdb_lookup(&oldRef, _backend, git_reference_name(ref));\n  if (error == GIT_OK) {\n    if (force) {\n      if (old_id) {\n        if ((git_reference_type(oldRef) != GIT_REF_OID) || !git_oid_equal(git_reference_target(oldRef), old_id)) {\n          error = GIT_EMODIFIED;\n        }\n      } else if (old_target) {\n        if ((git_reference_type(oldRef) != GIT_REF_SYMBOLIC) && strcmp(git_reference_symbolic_target(oldRef), old_target)) {\n          error = GIT_EMODIFIED;\n        }\n      }\n    } else {\n      error = GIT_EEXISTS;\n    }\n    git_reference_free(oldRef);\n  } else if (error == GIT_ENOTFOUND) {\n    error = GIT_OK;\n  }\n\n  if (error == GIT_OK) {\n    error = GIT_ERROR;\n    if (sqlite3_bind_text(backend->write, 1, git_reference_name(ref), -1, SQLITE_STATIC) == SQLITE_OK) {\n      int result = SQLITE_ERROR;\n      if (git_reference_type(ref) == GIT_REF_OID) {\n        result = sqlite3_bind_blob(backend->write, 2, git_reference_target(ref)->id, GIT_OID_RAWSZ, SQLITE_STATIC);\n        if (result == SQLITE_OK) {\n          result = sqlite3_bind_null(backend->write, 3);\n        }\n      } else if (git_reference_type(ref) == GIT_REF_SYMBOLIC) {\n        result = sqlite3_bind_null(backend->write, 2);\n        if (result == SQLITE_OK) {\n          result = sqlite3_bind_text(backend->write, 3, git_reference_symbolic_target(ref), -1, SQLITE_STATIC);\n        }\n      }\n      if (result == SQLITE_OK) {\n        result = sqlite3_step(backend->write);\n        if (result == SQLITE_DONE) {\n          error = GIT_OK;\n        }\n      }\n    }\n    sqlite3_reset(backend->write);\n  }\n\n  return error;\n}\n\n// TODO: Update reflog if available\nstatic int _refdb_rename(git_reference** reference_out, git_refdb_backend* _backend, const char* old_name, const char* new_name, int force, const git_signature* who, const char* message) {\n  XLOG_DEBUG_CHECK(reference_out && _backend && old_name && new_name);\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n\n  *reference_out = NULL;\n\n  int exists;\n  int error = _refdb_exists(&exists, _backend, new_name);\n  if (error == GIT_OK) {\n    if (exists && !force) {\n      error = GIT_EEXISTS;\n    } else {\n      if (exists) {\n        if (sqlite3_bind_text(backend->delete, 1, new_name, -1, SQLITE_STATIC) == SQLITE_OK) {\n          if (sqlite3_step(backend->delete) == SQLITE_DONE) {\n            error = GIT_OK;\n          }\n        }\n        sqlite3_reset(backend->delete);\n      }\n\n      if (error == GIT_OK) {\n        error = GIT_ERROR;\n        if (sqlite3_bind_text(backend->rename, 1, old_name, -1, SQLITE_STATIC) == SQLITE_OK) {\n          if (sqlite3_bind_text(backend->rename, 2, new_name, -1, SQLITE_STATIC) == SQLITE_OK) {\n            if (sqlite3_step(backend->rename) == SQLITE_DONE) {\n              if (sqlite3_changes(backend->db) == 1) {\n                error = _refdb_lookup(reference_out, _backend, new_name);\n              } else {\n                error = GIT_ENOTFOUND;\n              }\n            }\n          }\n        }\n        sqlite3_reset(backend->rename);\n      }\n    }\n  }\n\n  return error;\n}\n\nstatic int _refdb_del(git_refdb_backend* _backend, const char* ref_name, const git_oid* old_id, const char* old_target) {\n  XLOG_DEBUG_CHECK(_backend && ref_name && (old_id || old_target || (!old_id && !old_target)));\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n  BOOL shouldDelete = NO;\n\n  git_reference* oldRef;\n  int error = _refdb_lookup(&oldRef, _backend, ref_name);\n  if (error == GIT_OK) {\n    if (old_id) {\n      if ((git_reference_type(oldRef) == GIT_REF_OID) && git_oid_equal(git_reference_target(oldRef), old_id)) {\n        shouldDelete = YES;\n      }\n    } else if (old_target) {\n      if ((git_reference_type(oldRef) == GIT_REF_SYMBOLIC) && !strcmp(git_reference_symbolic_target(oldRef), old_target)) {\n        shouldDelete = YES;\n      }\n    } else {\n      shouldDelete = YES;\n    }\n    git_reference_free(oldRef);\n  }\n\n  if (shouldDelete) {\n    if (sqlite3_bind_text(backend->delete, 1, ref_name, -1, SQLITE_STATIC) == SQLITE_OK) {\n      if (sqlite3_step(backend->delete) == SQLITE_DONE) {\n        error = sqlite3_changes(backend->db) == 1 ? GIT_OK : GIT_ENOTFOUND;\n      }\n    }\n    sqlite3_reset(backend->delete);\n  }\n\n  return error;\n}\n\nstatic int _refdb_has_log(git_refdb_backend* _backend, const char* refname) {\n  return 0;\n}\n\nstatic int _refdb_ensure_log(git_refdb_backend* _backend, const char* refname) {\n  XLOG_DEBUG_UNREACHABLE();\n  return GIT_ERROR;\n}\n\nstatic void _refdb_free(git_refdb_backend* _backend) {\n  XLOG_DEBUG_CHECK(_backend);\n  sqlite3_refdb* backend = (sqlite3_refdb*)_backend;\n\n  sqlite3_finalize(backend->exists);\n  sqlite3_finalize(backend->lookup);\n  sqlite3_finalize(backend->iterate);\n  sqlite3_finalize(backend->write);\n  sqlite3_finalize(backend->rename);\n  sqlite3_finalize(backend->delete);\n  sqlite3_finalize(backend->delete_oid);\n  sqlite3_finalize(backend->delete_target);\n  sqlite3_close(backend->db);\n\n  free(backend);\n}\n\nstatic int _refdb_reflog_read(git_reflog** reflog_out, git_refdb_backend* _backend, const char* name) {\n  XLOG_DEBUG_UNREACHABLE();\n  return GIT_ERROR;\n}\n\nstatic int _refdb_reflog_write(git_refdb_backend* _backend, git_reflog* reflog) {\n  XLOG_DEBUG_UNREACHABLE();\n  return GIT_ERROR;\n}\n\nstatic int _refdb_reflog_rename(git_refdb_backend* _backend, const char* old_name, const char* new_name) {\n  XLOG_DEBUG_UNREACHABLE();\n  return GIT_ERROR;\n}\n\nstatic int _refdb_reflog_delete(git_refdb_backend* _backend, const char* name) {\n  return GIT_OK;\n}\n\n// TODO: Add debug lock to ensure only used by one thread at a time\n// TODO: Use transactions for write if matching operations\nstatic int git_refdb_backend_sqlite3(git_refdb_backend** backend_out, const char* sqlite_db) {\n  int error = GIT_ERROR;\n\n  sqlite3_refdb* backend = calloc(1, sizeof(sqlite3_refdb));\n  git_refdb_init_backend(&backend->parent, GIT_REFDB_BACKEND_VERSION);\n\n  if (sqlite3_open_v2(sqlite_db, &backend->db, SQLITE_OPEN_CREATE | SQLITE_OPEN_READWRITE | SQLITE_OPEN_NOMUTEX, NULL) != SQLITE_OK) {\n    goto cleanup;\n  }\n  error = _refdb_backend_init_db(backend->db);\n  if (error < 0) {\n    goto cleanup;\n  }\n  error = _refdb_backend_init_statements(backend);\n  if (error < 0) {\n    goto cleanup;\n  }\n\n  backend->parent.exists = &_refdb_exists;\n  backend->parent.lookup = &_refdb_lookup;\n  backend->parent.iterator = &_refdb_iterator;\n  backend->parent.write = &_refdb_write;\n  backend->parent.rename = &_refdb_rename;\n  backend->parent.del = &_refdb_del;\n  //  backend->parent.compress\n  backend->parent.has_log = &_refdb_has_log;\n  backend->parent.ensure_log = &_refdb_ensure_log;\n  backend->parent.free = &_refdb_free;\n  backend->parent.reflog_read = &_refdb_reflog_read;\n  backend->parent.reflog_write = &_refdb_reflog_write;\n  backend->parent.reflog_rename = &_refdb_reflog_rename;\n  backend->parent.reflog_delete = &_refdb_reflog_delete;\n  //  backend->parent.lock\n  //  backend->parent.unlock\n\n  *backend_out = (git_refdb_backend*)backend;\n  return GIT_OK;\n\ncleanup:\n  _refdb_free((git_refdb_backend*)backend);\n  return error;\n}\n\n#pragma mark - GCSQLiteRepository\n\n@implementation GCSQLiteRepository {\n  git_odb* _objectDB;\n  git_odb_backend* _objectBackend;  // Not retained\n  git_refdb* _referenceDB;\n  git_refdb_backend* _referenceBackend;  // Not retained\n  NSString* _configPath;\n}\n\n- (instancetype)initWithDatabase:(NSString*)databasePath error:(NSError**)error {\n  return [self initWithDatabase:databasePath config:nil localRepositoryContents:nil error:error];\n}\n\nstatic int _ForeachCallback(const git_oid* oid, void* payload) {\n  void** params = (void**)payload;\n  git_odb* sourceODB = params[0];\n  git_odb_backend* destBackend = params[1];\n\n  git_odb_object* object;\n  int error = git_odb_read(&object, sourceODB, oid);\n  if (error == GIT_OK) {\n    XLOG_DEBUG_CHECK(git_oid_equal(git_odb_object_id(object), oid));\n    error = _odb_write(destBackend, oid, git_odb_object_data(object), git_odb_object_size(object), git_odb_object_type(object));\n    git_odb_object_free(object);\n  }\n  return error;\n}\n\n- (BOOL)_copyLocalRepository:(NSString*)path error:(NSError**)error {\n  BOOL success = NO;\n  git_repository* repository = NULL;\n  git_odb* odb = NULL;\n  git_reference* headReference = NULL;\n  git_reference_iterator* iterator = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_open, &repository, path.fileSystemRepresentation);\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_odb, &odb, repository);\n  void* params[] = {odb, _objectBackend};\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_odb_foreach, odb, _ForeachCallback, params);\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_lookup, &headReference, repository, kHEADReferenceFullName);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, _refdb_write, _referenceBackend, headReference, 0, NULL, NULL, NULL, NULL);\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_iterator_new, &iterator, repository);\n  while (1) {\n    git_reference* reference;\n    int status = git_reference_next(&reference, iterator);\n    if (status == GIT_ITEROVER) {\n      break;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, _refdb_write, _referenceBackend, reference, 0, NULL, NULL, NULL, NULL);\n    git_reference_free(reference);\n  }\n\n  success = YES;\n\ncleanup:\n  git_reference_iterator_free(iterator);\n  git_reference_free(headReference);\n  git_odb_free(odb);\n  git_repository_free(repository);\n  return success;\n}\n\n- (instancetype)initWithDatabase:(NSString*)databasePath config:(NSString*)configPath localRepositoryContents:(NSString*)localPath error:(NSError**)error {\n  BOOL success = NO;\n  git_repository* repository = NULL;\n  git_config* config = NULL;\n\n  if (sqlite3_threadsafe() == 0) {\n    GC_SET_GENERIC_ERROR(@\"SQLite3 not thread safe\");\n    goto cleanup;\n  }\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_odb_new, &_objectDB);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_odb_backend_sqlite3, &_objectBackend, databasePath.fileSystemRepresentation);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_odb_add_backend, _objectDB, _objectBackend, 0);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_wrap_odb, &repository, _objectDB);  // This just allocates a git_repository structure and calls git_repository_set_odb()\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_refdb_new, &_referenceDB, repository);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_refdb_backend_sqlite3, &_referenceBackend, databasePath.fileSystemRepresentation);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_refdb_set_backend, _referenceDB, _referenceBackend);\n  git_repository_set_refdb(repository, _referenceDB);\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_new, &config);\n  if (configPath) {\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_add_file_ondisk, config, configPath.fileSystemRepresentation, GIT_CONFIG_LEVEL_LOCAL, repository, false);\n  } else {\n    _configPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_add_file_ondisk, config, _configPath.fileSystemRepresentation, GIT_CONFIG_LEVEL_LOCAL, repository, false);\n  }\n  git_repository_set_config(repository, config);\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_set_bare, repository);  // Repository is blank at this point and has no index so no need to remove it\n\n  if (localPath) {\n    if (![self _copyLocalRepository:localPath error:error]) {\n      goto cleanup;\n    }\n  } else {\n    git_reference* reference;\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_reference_symbolic_create, &reference, repository, kHEADReferenceFullName, \"refs/heads/master\", false, NULL);\n    git_reference_free(reference);\n  }\n  success = YES;\n\ncleanup:\n  git_config_free(config);\n  if (success) {\n    return [super initWithRepository:repository error:error];\n  }\n  git_repository_free(repository);\n  return nil;\n}\n\n- (void)dealloc {\n  if (_configPath) {\n    unlink(_configPath.fileSystemRepresentation);\n  }\n  git_refdb_free(_referenceDB);\n  git_odb_free(_objectDB);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSnapshot-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCEmptyRepositoryTests (GCSnapshot)\n\n- (void)testEmptySnapshots {\n  // Create snapshot\n  GCSnapshot* snapshot = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(snapshot);\n\n  // Make commit\n  XCTAssertNotNil([self.repository createCommitFromHEADWithMessage:@\"Initial\" error:NULL]);\n\n  // Restore snapshot\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot withOptions:kGCSnapshotOption_IncludeAll reflogMessage:nil didUpdateReferences:NULL error:NULL]);\n}\n\n/*\n  m0 - m1<master> - m2[origin/master] - m3\n    \\\n    t4(m0) - t5{temp} - t6<topic>\n*/\n- (void)testRegularSnapshots {\n  BOOL didUpdateReferences;\n\n  // Create commits\n  NSArray* commits = [self.repository createMockCommitHierarchyFromNotation:@\"m0 - m1<master> - m2 - m3[origin/master]\\nt4(m0) - t5{temp} - t6<topic>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n\n  // Save references\n  NSString* output1 = [self runGitCLTWithRepository:self.repository command:@\"show-ref\", @\"--head\", nil];\n  XCTAssertNotNil(output1);\n\n  // Create snapshot\n  GCSnapshot* snapshot1 = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(snapshot1);\n\n  // Create tag\n  XCTAssertTrue([self.repository createLightweightTagWithCommit:commits[0] name:@\"test\" force:NO error:NULL]);\n\n  // Create snapshot\n  GCSnapshot* snapshot2 = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(snapshot2);\n\n  // Compare snapshots\n  XCTAssertFalse([snapshot1 isEqual:snapshot2]);\n  XCTAssertFalse([snapshot2 isEqual:snapshot1]);\n  XCTAssertTrue([snapshot1 isEqualToSnapshot:snapshot2 usingOptions:0]);\n  XCTAssertTrue([snapshot2 isEqualToSnapshot:snapshot1 usingOptions:0]);\n  XCTAssertFalse([snapshot1 isEqualToSnapshot:snapshot2 usingOptions:kGCSnapshotOption_IncludeTags]);\n  XCTAssertFalse([snapshot2 isEqualToSnapshot:snapshot1 usingOptions:kGCSnapshotOption_IncludeTags]);\n\n  // Switch branch\n  XCTAssertTrue([self.repository setHEADToReference:[self.repository findLocalBranchWithName:@\"topic\" error:NULL] error:NULL]);\n\n  // Delete tag\n  XCTAssertTrue([self.repository deleteTag:[self.repository findTagWithName:@\"temp\" error:NULL] error:NULL]);\n\n  // Move remote branch\n  XCTAssertTrue([self.repository setTipCommit:commits[3] forBranch:[self.repository findRemoteBranchWithName:@\"origin/master\" error:nil] reflogMessage:nil error:NULL]);\n\n  // Verify expected references\n  NSString* output2 = [self runGitCLTWithRepository:self.repository command:@\"show-ref\", @\"--head\", nil];\n  NSString* string1 = [NSString stringWithFormat:@\"\\\n%@ HEAD\\n\\\n%@ refs/heads/master\\n\\\n%@ refs/heads/topic\\n\\\n%@ refs/remotes/origin/master\\n\\\n%@ refs/tags/test\\n\\\n\",\n                                                 [commits[6] SHA1], [commits[1] SHA1], [commits[6] SHA1], [commits[3] SHA1], [commits[0] SHA1]];\n  XCTAssertEqualObjects(output2, string1);\n\n  // Create snapshot\n  GCSnapshot* snapshot3 = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(snapshot3);\n\n  // Restore snapshot with all references\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot1 withOptions:kGCSnapshotOption_IncludeAll reflogMessage:nil didUpdateReferences:&didUpdateReferences error:NULL]);\n  XCTAssertTrue(didUpdateReferences);\n\n  // Verify restored references\n  NSString* output3 = [self runGitCLTWithRepository:self.repository command:@\"show-ref\", @\"--head\", nil];\n  XCTAssertEqualObjects(output3, output1);\n\n  // Rollback\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot3 withOptions:kGCSnapshotOption_IncludeAll reflogMessage:nil didUpdateReferences:NULL error:NULL]);\n\n  // Restore snapshot with tags only\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot1 withOptions:kGCSnapshotOption_IncludeTags reflogMessage:nil didUpdateReferences:&didUpdateReferences error:NULL]);\n  XCTAssertTrue(didUpdateReferences);\n\n  // Verify restored references\n  NSString* output4 = [self runGitCLTWithRepository:self.repository command:@\"show-ref\", @\"--head\", nil];\n  NSString* string2 = [NSString stringWithFormat:@\"\\\n%@ HEAD\\n\\\n%@ refs/heads/master\\n\\\n%@ refs/heads/topic\\n\\\n%@ refs/remotes/origin/master\\n\\\n%@ refs/tags/temp\\n\\\n\",\n                                                 [commits[6] SHA1], [commits[1] SHA1], [commits[6] SHA1], [commits[3] SHA1], [commits[5] SHA1]];\n  XCTAssertEqualObjects(output4, string2);\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTests (GCSnapshot)\n\n- (void)testDeltaSnapshots {\n  // Take \"from\" snapshot\n  GCSnapshot* fromSnaphot = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(fromSnaphot);\n\n  // Create topic branch\n  GCLocalBranch* branch1 = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic1\" force:NO error:NULL];\n  XCTAssertNotNil(branch1);\n\n  // Take \"to\" snapshot\n  GCSnapshot* toSnaphot = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(toSnaphot);\n\n  // Create other topic branch\n  GCLocalBranch* branch2 = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic2\" force:NO error:NULL];\n  XCTAssertNotNil(branch2);\n\n  // Apply reverse delta\n  NSArray* array1 = @[ self.masterBranch, branch1, branch2 ];\n  XCTAssertEqualObjects([self.repository listAllBranches:NULL], array1);\n  XCTAssertTrue([self.repository applyDeltaFromSnapshot:toSnaphot toSnapshot:fromSnaphot withOptions:(kGCSnapshotOption_IncludeHEAD | kGCSnapshotOption_IncludeLocalBranches | kGCSnapshotOption_IncludeTags) reflogMessage:nil didUpdateReferences:NULL error:NULL]);\n  NSArray* array2 = @[ self.masterBranch, branch2 ];\n  XCTAssertEqualObjects([self.repository listAllBranches:NULL], array2);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSnapshot.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_OPTIONS(NSUInteger, GCSnapshotOptions) {\n  kGCSnapshotOption_IncludeHEAD = (1 << 0),\n  kGCSnapshotOption_IncludeLocalBranches = (1 << 1),\n  kGCSnapshotOption_IncludeRemoteBranches = (1 << 2),\n  kGCSnapshotOption_IncludeTags = (1 << 3),\n  kGCSnapshotOption_IncludeOthers = (1 << 4),  // E.g. \"refs/stash\"\n  kGCSnapshotOption_IncludeAll = 0xFF\n};\n\n@class GCCommit;\n\n@interface GCSnapshot : NSObject <NSSecureCoding>\n@end\n\n@interface GCSnapshot (Extensions)\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;  // Snapshot has no references and HEAD is unborn\n@property(nonatomic, readonly) NSString* HEADBranchName;  // Nil if HEAD is detached\n\n- (id)objectForKeyedSubscript:(NSString*)key;  // To retrieve arbitrary user info\n- (void)setObject:(id)object forKeyedSubscript:(NSString*)key;  // To set arbitrary user info\n\n- (BOOL)isEqualToSnapshot:(GCSnapshot*)snapshot usingOptions:(GCSnapshotOptions)options;\n@end\n\n@interface GCRepository (GCSnapshot)\n- (GCSnapshot*)takeSnapshot:(NSError**)error;\n\n- (BOOL)restoreSnapshot:(GCSnapshot*)snapshot\n            withOptions:(GCSnapshotOptions)options\n          reflogMessage:(NSString*)message\n    didUpdateReferences:(BOOL*)didUpdateReferences\n                  error:(NSError**)error;\n\n- (BOOL)applyDeltaFromSnapshot:(GCSnapshot*)fromSnapshot\n                    toSnapshot:(GCSnapshot*)toSnapshot\n                   withOptions:(GCSnapshotOptions)options\n                 reflogMessage:(NSString*)message\n           didUpdateReferences:(BOOL*)didUpdateReferences\n                         error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSnapshot.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import \"GCPrivate.h\"\n\n// SPIs from libgit2\nextern int git_reference__is_branch(const char* ref_name);\nextern int git_reference__is_remote(const char* ref_name);\nextern int git_reference__is_tag(const char* ref_name);\n\n@interface GCSnapshot ()\n@property(nonatomic, readonly) CFMutableDictionaryRef cache;\n@end\n\nstatic inline NSData* _NSDataFromCString(const char* string) {\n  return [NSData dataWithBytes:string length:(strlen(string) + 1)];\n}\n\nstatic inline const char* _NSDataToCString(NSData* data) {\n  return data.bytes;\n}\n\nstatic inline BOOL _ShouldSkipReference(const char* referenceFullName, GCSnapshotOptions options) {\n  if (!strcmp(referenceFullName, kHEADReferenceFullName)) {\n    return options & kGCSnapshotOption_IncludeHEAD ? NO : YES;\n  }\n  if (git_reference__is_branch(referenceFullName)) {\n    return options & kGCSnapshotOption_IncludeLocalBranches ? NO : YES;\n  }\n  if (git_reference__is_remote(referenceFullName)) {\n    return options & kGCSnapshotOption_IncludeRemoteBranches ? NO : YES;\n  }\n  if (git_reference__is_tag(referenceFullName)) {\n    return options & kGCSnapshotOption_IncludeTags ? NO : YES;\n  }\n  return options & kGCSnapshotOption_IncludeOthers ? NO : YES;\n}\n\nstatic BOOL _CompareSerializedReferences(GCSerializedReference* serializedReference1, GCSerializedReference* serializedReference2) {\n  switch (serializedReference1.type) {\n    case GIT_REF_OID: {\n      if ((serializedReference2.type != GIT_REF_OID) || !git_oid_equal(serializedReference2.directTarget, serializedReference1.directTarget)) {\n        return NO;\n      }\n      break;\n    }\n\n    case GIT_REF_SYMBOLIC: {\n      if ((serializedReference2.type != GIT_REF_SYMBOLIC) || strcmp(serializedReference2.symbolicTarget, serializedReference1.symbolicTarget)) {\n        return NO;\n      }\n      break;\n    }\n\n    default:\n      XLOG_DEBUG_UNREACHABLE();\n      return NO;\n  }\n  return YES;\n}\n\n@implementation GCSerializedReference {\n  NSData* _name;\n  git_oid _OID;\n  NSData* _symbol;\n  git_otype _resolvedType;\n  git_oid _resolvedOID;\n}\n\n+ (BOOL)supportsSecureCoding {\n  return YES;\n}\n\n- (id)initWithReference:(git_reference*)reference resolvedObject:(git_object*)object {\n  if ((self = [super init])) {\n    _name = [_NSDataFromCString(git_reference_name(reference)) retain];\n    _type = git_reference_type(reference);\n    switch (_type) {\n      case GIT_REF_OID: {\n        git_oid_cpy(&_OID, git_reference_target(reference));\n        XLOG_DEBUG_CHECK(!git_oid_iszero(&_OID));\n        break;\n      }\n\n      case GIT_REF_SYMBOLIC: {\n        _symbol = [_NSDataFromCString(git_reference_symbolic_target(reference)) retain];\n        XLOG_DEBUG_CHECK(_symbol.length);\n        break;\n      }\n\n      default: {\n        XLOG_DEBUG_UNREACHABLE();\n        [self release];\n        return nil;\n      }\n    }\n    if (object) {\n      XLOG_DEBUG_CHECK((_type == GIT_REF_SYMBOLIC) || git_oid_equal(git_object_id(object), &_OID));\n      _resolvedType = git_object_type(object);\n      XLOG_DEBUG_CHECK(_resolvedType != GIT_OBJ_BAD);\n      git_oid_cpy(&_resolvedOID, git_object_id(object));\n    } else {\n      _resolvedType = GIT_OBJ_BAD;\n    }\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [_symbol release];\n  [_name release];\n\n  [super dealloc];\n}\n\n- (void)encodeWithCoder:(NSCoder*)coder {\n  [coder encodeObject:_name forKey:@\"name\"];\n  [coder encodeInt:_type forKey:@\"type\"];\n  [coder encodeBytes:(const uint8_t*)&_OID length:sizeof(git_oid) forKey:@\"oid\"];\n  [coder encodeObject:_symbol forKey:@\"symbol\"];\n  [coder encodeInt:_resolvedType forKey:@\"resolved_type\"];\n  [coder encodeBytes:(const uint8_t*)&_resolvedOID length:sizeof(git_oid) forKey:@\"resolved_oid\"];\n}\n\n- (id)initWithCoder:(NSCoder*)decoder {\n  if ((self = [super init])) {\n    _name = [[decoder decodeObjectOfClass:[NSData class] forKey:@\"name\"] retain];\n    XLOG_DEBUG_CHECK(_name);\n    _type = [decoder decodeIntForKey:@\"type\"];\n    XLOG_DEBUG_CHECK((_type == GIT_REF_OID) || (_type == GIT_REF_SYMBOLIC));\n\n    NSUInteger length1;\n    const uint8_t* bytes1 = [decoder decodeBytesForKey:@\"oid\" returnedLength:&length1];\n    if (bytes1 && (length1 == sizeof(git_oid))) {\n      bcopy(bytes1, &_OID, sizeof(git_oid));\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n\n    _symbol = [[decoder decodeObjectOfClass:[NSData class] forKey:@\"symbol\"] retain];\n\n    _resolvedType = [decoder decodeIntForKey:@\"resolved_type\"];\n\n    NSUInteger length2;\n    const uint8_t* bytes2 = [decoder decodeBytesForKey:@\"resolved_oid\" returnedLength:&length2];\n    if (bytes2 && (length2 == sizeof(git_oid))) {\n      bcopy(bytes2, &_resolvedOID, sizeof(git_oid));\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n\n    XLOG_DEBUG_CHECK(_symbol || (_type != GIT_REF_SYMBOLIC));\n  }\n  return self;\n}\n\n- (const char*)name {\n  return _NSDataToCString(_name);\n}\n\n// Unfortunate reimplementation of git_reference_shorthand()\n- (const char*)shortHand {\n  const char* name = _NSDataToCString(_name);\n  if (!strncmp(name, kHeadsNamespace, sizeof(kHeadsNamespace) - 1)) {\n    return &name[sizeof(kHeadsNamespace) - 1];\n  }\n  if (!strncmp(name, kTagsNamespace, sizeof(kTagsNamespace) - 1)) {\n    return &name[sizeof(kTagsNamespace) - 1];\n  }\n  if (!strncmp(name, kRemotesNamespace, sizeof(kRemotesNamespace) - 1)) {\n    return &name[sizeof(kRemotesNamespace) - 1];\n  }\n  if (!strncmp(name, kRefsNamespace, sizeof(kRefsNamespace) - 1)) {\n    return &name[sizeof(kRefsNamespace) - 1];\n  }\n  return name;\n}\n\n- (const git_oid*)directTarget {\n  return &_OID;\n}\n\n- (const char*)symbolicTarget {\n  return _NSDataToCString(_symbol);\n}\n\n- (const git_oid*)resolvedTarget {\n  return git_oid_iszero(&_resolvedOID) ? NULL : &_resolvedOID;\n}\n\n- (BOOL)isHEAD {\n  return !strcmp(_NSDataToCString(_name), kHEADReferenceFullName);\n}\n\n- (BOOL)isLocalBranch {\n  return git_reference__is_branch(_NSDataToCString(_name));\n}\n\n- (BOOL)isRemoteBranch {\n  return git_reference__is_remote(_NSDataToCString(_name));\n}\n\n- (BOOL)isTag {\n  return git_reference__is_tag(_NSDataToCString(_name));\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"%@ %s = %s\", self.class, _NSDataToCString(_name), _symbol ? _NSDataToCString(_symbol) : git_oid_tostr_s(&_OID)];\n}\n\n@end\n\n@implementation GCSnapshot {\n  NSMutableDictionary* _config;\n  NSMutableArray* _serializedReferences;\n  NSMutableDictionary* _info;\n}\n\n+ (BOOL)supportsSecureCoding {\n  return YES;\n}\n\n// TODO: Handle duplicate config entries for the same variable\nstatic NSMutableDictionary* _LoadRepositoryConfig(GCRepository* repository, NSError** error) {\n  NSMutableDictionary* dictionary = [NSMutableDictionary dictionary];\n  BOOL success = NO;\n  git_config* config1 = NULL;\n  git_config* config2 = NULL;\n  git_config_iterator* iterator = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_config, &config1, repository.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_open_level, &config2, config1, GIT_CONFIG_LEVEL_LOCAL);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_iterator_new, &iterator, config2);  // This takes a snapshot internally\n  while (1) {\n    git_config_entry* entry;\n    int status = git_config_next(&entry, iterator);\n    if (status == GIT_ITEROVER) {\n      break;\n    }\n    CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n    [dictionary setObject:[NSString stringWithUTF8String:entry->value] forKey:[NSString stringWithUTF8String:entry->name]];\n  }\n  success = YES;\n\ncleanup:\n  git_config_iterator_free(iterator);\n  git_config_free(config1);\n  git_config_free(config2);\n  return success ? dictionary : nil;\n}\n\n- (id)initWithRepository:(GCRepository*)repository error:(NSError**)error {\n  if ((self = [super init])) {\n    // Capture local config\n    _config = [_LoadRepositoryConfig(repository, error) retain];\n    if (_config == nil) {\n      return nil;\n    }\n\n    // Capture all references\n    _serializedReferences = [[NSMutableArray alloc] init];\n    CFDictionaryKeyCallBacks callbacks = {0, NULL, NULL, NULL, GCCStringEqualCallBack, GCCStringHashCallBack};\n    _cache = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &callbacks, NULL);\n    BOOL success = [repository enumerateReferencesWithOptions:kGCReferenceEnumerationOption_IncludeHEAD\n                                                        error:error\n                                                   usingBlock:^BOOL(git_reference* reference) {\n                                                     git_object* object = NULL;\n                                                     git_oid oid;\n                                                     if ([repository loadTargetOID:&oid fromReference:reference error:NULL]) {  // Ignore errors since repositories can have invalid references\n                                                       int status = git_object_lookup(&object, repository.private, &oid, GIT_OBJ_ANY);\n                                                       if (status != GIT_OK) {\n                                                         LOG_LIBGIT2_ERROR(status);  // Ignore errors since repositories can have invalid references\n                                                       }\n                                                     }\n\n                                                     GCSerializedReference* serializedReference = [[GCSerializedReference alloc] initWithReference:reference resolvedObject:object];\n                                                     [_serializedReferences addObject:serializedReference];\n                                                     XLOG_DEBUG_CHECK(!CFDictionaryContainsKey(_cache, serializedReference.name));\n                                                     CFDictionarySetValue(_cache, serializedReference.name, serializedReference);\n                                                     [serializedReference release];\n\n                                                     git_object_free(object);\n                                                     return YES;\n                                                   }];\n    if (!success) {\n      return nil;\n    }\n\n    _info = [[NSMutableDictionary alloc] init];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  CFRelease(_cache);\n  [_info release];\n  [_serializedReferences release];\n  [_config release];\n\n  [super dealloc];\n}\n\n- (void)encodeWithCoder:(NSCoder*)coder {\n  [coder encodeObject:_config forKey:@\"config\"];\n  [coder encodeObject:_serializedReferences forKey:@\"serialized_references\"];\n  [coder encodeObject:_info forKey:@\"info\"];\n}\n\n- (id)initWithCoder:(NSCoder*)decoder {\n  if ((self = [super init])) {\n    _config = [[decoder decodeObjectOfClass:[NSMutableDictionary class] forKey:@\"config\"] retain];\n    XLOG_DEBUG_CHECK(_config);\n    _serializedReferences = [[decoder decodeObjectOfClass:[NSMutableArray class] forKey:@\"serialized_references\"] retain];\n    XLOG_DEBUG_CHECK(_serializedReferences);\n    _info = [[decoder decodeObjectOfClass:[NSMutableDictionary class] forKey:@\"info\"] retain];\n    XLOG_DEBUG_CHECK(_info);\n\n    CFDictionaryKeyCallBacks callbacks = {0, NULL, NULL, NULL, GCCStringEqualCallBack, GCCStringHashCallBack};\n    _cache = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &callbacks, NULL);\n    for (GCSerializedReference* serializedReference in _serializedReferences) {\n      XLOG_DEBUG_CHECK(!CFDictionaryContainsKey(_cache, serializedReference.name));\n      CFDictionarySetValue(_cache, serializedReference.name, serializedReference);\n    }\n  }\n  return self;\n}\n\n- (GCSerializedReference*)serializedReferenceWithName:(const char*)name {\n  return CFDictionaryGetValue(_cache, name);\n}\n\n- (NSString*)description {\n  NSMutableString* description = [[NSMutableString alloc] initWithFormat:@\"%@\", self.class];\n  for (GCSerializedReference* serializedReference in _serializedReferences) {\n    [description appendFormat:@\"\\n  %s = %s\", serializedReference.name, serializedReference.symbolicTarget ? serializedReference.symbolicTarget : git_oid_tostr_s(serializedReference.directTarget)];\n  }\n  return [description autorelease];\n}\n\n@end\n\n@implementation GCSnapshot (Extensions)\n\n// Mirror implementation of -[GCRepository isEmpty]\n- (BOOL)isEmpty {\n  BOOL empty = YES;\n  GCSerializedReference* headReference = CFDictionaryGetValue(_cache, kHEADReferenceFullName);\n  if (headReference == nil) {\n    XLOG_DEBUG_UNREACHABLE();\n    empty = NO;\n  } else if (CFDictionaryGetCount(_cache) > 1) {\n    empty = NO;\n  } else {\n    while (headReference.type == GIT_REF_SYMBOLIC) {\n      headReference = CFDictionaryGetValue(_cache, headReference.symbolicTarget);\n    }\n    if (headReference) {\n      empty = NO;\n    }\n  }\n  return empty;\n}\n\n- (NSString*)HEADBranchName {\n  GCSerializedReference* headReference = CFDictionaryGetValue(_cache, kHEADReferenceFullName);\n  if (headReference) {\n    if (headReference.type == GIT_REF_SYMBOLIC) {\n      GCSerializedReference* branchReference = CFDictionaryGetValue(_cache, headReference.symbolicTarget);\n      if (branchReference) {\n        XLOG_DEBUG_CHECK(branchReference.type == GIT_REF_OID);\n        return [NSString stringWithUTF8String:branchReference.shortHand];\n      }\n      return nil;  // Unborn HEAD\n    }\n    return nil;  // Detached HEAD\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;  // No HEAD\n}\n\n- (id)objectForKeyedSubscript:(NSString*)key {\n  return [_info objectForKey:key];\n}\n\n- (void)setObject:(id)object forKeyedSubscript:(NSString*)key {\n  [_info setValue:object forKey:key];\n}\n\nstatic inline BOOL _EqualSnapshots(GCSnapshot* snapshot1, GCSnapshot* snapshot2, GCSnapshotOptions options) {\n  if ((options == kGCSnapshotOption_IncludeAll) && (snapshot1->_serializedReferences.count != snapshot2->_serializedReferences.count)) {\n    return NO;\n  }\n\n  // Make sure all non-skippable references in \"self\" are in \"snapshot\" and equal\n  for (GCSerializedReference* reference1 in snapshot1->_serializedReferences) {\n    if (_ShouldSkipReference(reference1.name, options)) {\n      continue;\n    }\n    GCSerializedReference* reference2 = CFDictionaryGetValue(snapshot2->_cache, reference1.name);\n    if (!reference2 || !_CompareSerializedReferences(reference1, reference2)) {\n      return NO;\n    }\n  }\n\n  // Make sure all non-skippable references in \"snapshot\" are in \"self\"\n  for (GCSerializedReference* reference2 in snapshot2->_serializedReferences) {\n    if (_ShouldSkipReference(reference2.name, options)) {\n      continue;\n    }\n    if (!CFDictionaryContainsKey(snapshot1->_cache, reference2.name)) {\n      return NO;\n    }\n  }\n\n  // Make sure branch config variables are the same\n  if (options & kGCSnapshotOption_IncludeLocalBranches) {\n    for (NSString* variable in snapshot1->_config) {\n      if (![variable hasPrefix:@\"branch.\"]) {\n        continue;\n      }\n      NSString* value1 = snapshot1->_config[variable];\n      NSString* value2 = snapshot2->_config[variable];\n      if (!value2 || ![value1 isEqualToString:value2]) {\n        return NO;\n      }\n    }\n    for (NSString* variable in snapshot2->_config) {\n      if (![variable hasPrefix:@\"branch.\"]) {\n        continue;\n      }\n      if (!snapshot1->_config[variable]) {\n        return NO;\n      }\n    }\n  }\n\n  return YES;\n}\n\n- (BOOL)isEqualToSnapshot:(GCSnapshot*)snapshot usingOptions:(GCSnapshotOptions)options {\n  return (self == snapshot) || _EqualSnapshots(self, snapshot, options);\n}\n\n- (BOOL)isEqual:(id)object {\n  if (![object isKindOfClass:[GCSnapshot class]]) {\n    return NO;\n  }\n  return [self isEqualToSnapshot:object usingOptions:kGCSnapshotOption_IncludeAll];\n}\n\n@end\n\n@implementation GCRepository (GCSnapshot)\n\n- (GCSnapshot*)takeSnapshot:(NSError**)error {\n  return [[[GCSnapshot alloc] initWithRepository:self error:error] autorelease];\n}\n\nstatic BOOL _UpdateRepositoryConfig(GCRepository* repository, NSDictionary* changes, NSError** error) {\n  BOOL success = NO;\n  git_config* config1 = NULL;\n  git_config* config2 = NULL;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_config, &config1, repository.private);\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_open_level, &config2, config1, GIT_CONFIG_LEVEL_LOCAL);\n  for (NSString* variable in changes) {\n    id value = changes[variable];\n    if ([value isEqual:[NSNull null]]) {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_delete_entry, config2, variable.UTF8String);\n    } else {\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_config_set_string, config2, variable.UTF8String, [value UTF8String]);  // git_config_set_string() is the primitive\n    }\n  }\n  success = YES;\n\ncleanup:\n  git_config_free(config1);\n  git_config_free(config2);\n  return success;\n}\n\nstatic void _DiffConfigsForLocalBranch(const char* name, NSDictionary* fromConfig, NSDictionary* toConfig, NSMutableDictionary* changes) {\n  NSString* prefix = [NSString stringWithFormat:@\"branch.%s.\", name];\n  NSMutableDictionary* copy = [[NSMutableDictionary alloc] initWithDictionary:toConfig];\n\n  // Compare variables between \"from\" and \"to\"\n  for (NSString* fromVariable in fromConfig) {\n    if ([fromVariable hasPrefix:prefix]) {\n      NSString* fromValue = fromConfig[fromVariable];\n      NSString* toValue = toConfig[fromVariable];\n      // If variable is present in both \"from\" and \"to\", compare both versions and update \"from\" to \"to\" if they differ\n      if (toValue) {\n        if (![toValue isEqualToString:fromValue]) {\n          [changes setObject:toValue forKey:fromVariable];\n        }\n        [copy removeObjectForKey:fromVariable];\n      }\n      // Otherwise variable is present in \"from\" but missing from \"to\" so it needs to be deleted\n      else {\n        [changes setObject:[NSNull null] forKey:fromVariable];\n      }\n    }\n  }\n\n  // Finally recreate variables present in \"to\" but missing in \"from\"\n  for (NSString* toVariable in copy) {\n    if ([toVariable hasPrefix:prefix]) {\n      [changes setObject:copy[toVariable] forKey:toVariable];\n    }\n  }\n\n  [copy release];\n}\n\n- (BOOL)_restoreFromReferences:(NSArray*)fromReferences\n                     andConfig:(NSDictionary*)config\n                    toSnapshot:(GCSnapshot*)toSnapshot\n                   withOptions:(GCSnapshotOptions)options\n                 reflogMessage:(NSString*)message\n           didUpdateReferences:(BOOL*)didUpdateReferences\n                         error:(NSError**)error {\n  BOOL success = NO;\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self reflogMessage:message];\n  CFMutableDictionaryRef copy = CFDictionaryCreateMutableCopy(kCFAllocatorDefault, 0, toSnapshot.cache);\n  NSMutableDictionary* changes = [[NSMutableDictionary alloc] init];\n\n  // Compare references between \"from\" and \"to\"\n  for (GCSerializedReference* fromSerializedReference in fromReferences) {\n    if (!_ShouldSkipReference(fromSerializedReference.name, options)) {\n      GCSerializedReference* toSerializedReference = [toSnapshot serializedReferenceWithName:fromSerializedReference.name];\n\n      // If reference is present in both \"from\" and \"to\", compare both versions and update \"from\" to \"to\" if they differ\n      if (toSerializedReference) {\n        if (!_CompareSerializedReferences(fromSerializedReference, toSerializedReference)) {\n          switch (toSerializedReference.type) {\n            case GIT_REF_OID:\n              [transform setDirectTarget:toSerializedReference.directTarget forReferenceWithName:toSerializedReference.name];\n              break;\n\n            case GIT_REF_SYMBOLIC:\n              [transform setSymbolicTarget:toSerializedReference.symbolicTarget forReferenceWithName:toSerializedReference.name];\n              break;\n\n            default:\n              XLOG_DEBUG_UNREACHABLE();\n              break;\n          }\n        }\n        if ([toSerializedReference isLocalBranch]) {\n          _DiffConfigsForLocalBranch(toSerializedReference.shortHand, config, toSnapshot.config, changes);\n        }\n        CFDictionaryRemoveValue(copy, toSerializedReference.name);\n      }\n      // Otherwise reference is present in \"from\" but missing from \"to\" so it needs to be deleted\n      else {\n        [transform deleteReferenceWithName:fromSerializedReference.name];\n        if ([fromSerializedReference isLocalBranch]) {\n          _DiffConfigsForLocalBranch(fromSerializedReference.shortHand, config, nil, changes);\n        }\n      }\n    }\n  }\n\n  // Finally recreate references present in \"to\" but missing in \"from\"\n  GCDictionaryApplyBlock(copy, ^(const void* key, const void* value) {\n    GCSerializedReference* toSerializedReference = (const void*)value;\n    if (!_ShouldSkipReference(toSerializedReference.name, options)) {\n      switch (toSerializedReference.type) {\n        case GIT_REF_OID:\n          [transform setDirectTarget:toSerializedReference.directTarget forReferenceWithName:toSerializedReference.name];\n          break;\n\n        case GIT_REF_SYMBOLIC:\n          [transform setSymbolicTarget:toSerializedReference.symbolicTarget forReferenceWithName:toSerializedReference.name];\n          break;\n\n        default:\n          XLOG_DEBUG_UNREACHABLE();\n          break;\n      }\n      if ([toSerializedReference isLocalBranch]) {\n        _DiffConfigsForLocalBranch(toSerializedReference.shortHand, nil, toSnapshot.config, changes);\n      }\n    }\n  });\n\n  // Apply transform if necessary\n  if (transform.identity) {\n    if (didUpdateReferences) {\n      *didUpdateReferences = NO;\n    }\n  } else {\n    if (![self applyReferenceTransform:transform error:error]) {\n      goto cleanup;\n    }\n    if (didUpdateReferences) {\n      *didUpdateReferences = YES;\n    }\n  }\n\n  // Update config if necessary\n  if (changes.count) {\n    _UpdateRepositoryConfig(self, changes, NULL);  // TODO: Should we really ignore errors here?\n  }\n\n  // We're done\n  success = YES;\n\ncleanup:\n  [changes release];\n  CFRelease(copy);\n  [transform release];\n  return success;\n}\n\n- (BOOL)restoreSnapshot:(GCSnapshot*)snapshot\n            withOptions:(GCSnapshotOptions)options\n          reflogMessage:(NSString*)message\n    didUpdateReferences:(BOOL*)didUpdateReferences\n                  error:(NSError**)error {\n  NSMutableDictionary* config = _LoadRepositoryConfig(self, error);\n  if (config == nil) {\n    return NO;\n  }\n  NSMutableArray* references = [[NSMutableArray alloc] init];\n  BOOL result = [self enumerateReferencesWithOptions:kGCReferenceEnumerationOption_IncludeHEAD\n                                               error:error\n                                          usingBlock:^BOOL(git_reference* reference) {\n                                            GCSerializedReference* serializedReference = [[GCSerializedReference alloc] initWithReference:reference resolvedObject:NULL];\n                                            [references addObject:serializedReference];\n                                            [serializedReference release];\n                                            return YES;\n                                          }];\n  if (result) {\n    result = [self _restoreFromReferences:references andConfig:config toSnapshot:snapshot withOptions:options reflogMessage:message didUpdateReferences:didUpdateReferences error:error];\n  }\n  [references release];\n  return result;\n}\n\n- (BOOL)applyDeltaFromSnapshot:(GCSnapshot*)fromSnapshot\n                    toSnapshot:(GCSnapshot*)toSnapshot\n                   withOptions:(GCSnapshotOptions)options\n                 reflogMessage:(NSString*)message\n           didUpdateReferences:(BOOL*)didUpdateReferences\n                         error:(NSError**)error {\n  return [self _restoreFromReferences:fromSnapshot.serializedReferences andConfig:fromSnapshot.config toSnapshot:toSnapshot withOptions:options reflogMessage:message didUpdateReferences:didUpdateReferences error:error];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCStash-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n// TODO: Test stash file list and content diff\n@implementation GCSingleCommitRepositoryTests (GCStash)\n\n- (void)testStashes {\n  // Add new file to working directory and commit it\n  GCCommit* commit = [self makeCommitWithUpdatedFileAtPath:@\"foo.txt\" string:@\"Guten Tag\\n\" message:@\"Added file\"];\n\n  // Attempt to stash no changes\n  GCStash* stash0 = [self.repository saveStashWithMessage:@\"Just testing\" keepIndex:NO includeUntracked:NO error:NULL];\n  XCTAssertNil(stash0);\n\n  // Modify file in working directory\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\\n\"];\n\n  // Save stash\n  GCStash* stash1 = [self.repository saveStashWithMessage:@\"Just testing\" keepIndex:NO includeUntracked:NO error:NULL];\n  XCTAssertTrue([stash1.message rangeOfString:@\"Just testing\"].location != NSNotFound);\n  XCTAssertEqualObjects(stash1.baseCommit, commit);\n  XCTAssertNotNil(stash1.indexCommit);\n  XCTAssertNil(stash1.untrackedCommit);\n  XCTAssertEqualObjects([self.repository listStashes:NULL], @[ stash1 ]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n\n  // Attempt to pop stash on top of re-modified file\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Hola Mundo!\\n\"];\n  XCTAssertFalse([self.repository popStash:stash1 restoreIndex:NO error:NULL]);\n  XCTAssertTrue([self.repository checkoutFileFromIndex:@\"hello_world.txt\" error:NULL]);\n\n  // Pop stash\n  XCTAssertTrue([self.repository popStash:stash1 restoreIndex:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\" M hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Add new file to working directory\n  [self updateFileAtPath:@\"test.txt\" withString:@\"This is a test\\n\"];\n\n  // Save stash\n  GCStash* stash2 = [self.repository saveStashWithMessage:@\"Testing again\" keepIndex:NO includeUntracked:YES error:NULL];\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n\n  // Attempt to pop stash on top of re-modified new file\n  [self updateFileAtPath:@\"test.txt\" withString:@\"Nothing to see here\\n\"];\n  XCTAssertFalse([self.repository popStash:stash2 restoreIndex:NO error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"test.txt\"] error:NULL]);\n\n  // Pop stash\n  XCTAssertTrue([self.repository popStash:stash2 restoreIndex:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\" M hello_world.txt\\n?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Add modified file to index\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n\n  // Add new file to index\n  [self updateFileAtPath:@\"bar.txt\" withString:@\"Bar\\n\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"bar.txt\" error:NULL]);\n\n  // Modify other file\n  [self updateFileAtPath:@\"foo.txt\" withString:@\"Welt\\n\"];\n\n  // Save stash\n  GCStash* stash3 = [self.repository saveStashWithMessage:@\"Testing again\" keepIndex:NO includeUntracked:YES error:NULL];\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n\n  // Apply stash - TODO: https://github.com/libgit2/libgit2/issues/3230\n  XCTAssertTrue([self.repository applyStash:stash3 restoreIndex:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"A  bar.txt\\n M foo.txt\\n M hello_world.txt\\n?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit mode:kGCResetMode_Hard error:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"test.txt\"] error:NULL]);\n\n  // Add modified file to index\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Hola Mundo!\\n\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n\n  // Attempt to apply stash again and restore index on top of modified index\n  XCTAssertFalse([self.repository applyStash:stash3 restoreIndex:YES error:NULL]);\n\n  // Attempt to apply stash again on top of modified index but don't restore index\n  XCTAssertFalse([self.repository applyStash:stash3 restoreIndex:NO error:NULL]);\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit mode:kGCResetMode_Hard error:NULL]);\n\n  // Apply stash again and restore index\n  XCTAssertTrue([self.repository applyStash:stash3 restoreIndex:YES error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"A  bar.txt\\n M foo.txt\\nM  hello_world.txt\\n?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Drop stash\n  XCTAssertTrue([self.repository dropStash:stash3 error:NULL]);\n\n  // Check stash list\n  XCTAssertEqualObjects([self.repository listStashes:NULL], @[]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCStash.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCCommit.h\"\n\n@interface GCStash : GCCommit\n@property(nonatomic, readonly) GCCommit* baseCommit;\n@property(nonatomic, readonly) GCCommit* indexCommit;\n@property(nonatomic, readonly) GCCommit* untrackedCommit;  // May be nil\n@end\n\n@interface GCStashState : NSObject\n@end\n\n@interface GCRepository (GCStash)\n- (GCStash*)saveStashWithMessage:(NSString*)message keepIndex:(BOOL)keepIndex includeUntracked:(BOOL)includeUntracked error:(NSError**)error;  // git stash {-k} {-u}\n- (NSArray*)listStashes:(NSError**)error;  // git stash list\n- (BOOL)applyStash:(GCStash*)stash restoreIndex:(BOOL)restoreIndex error:(NSError**)error;  // git stash apply {--index} {stash}\n- (BOOL)dropStash:(GCStash*)stash error:(NSError**)error;  // git stash drop {stash}\n- (BOOL)popStash:(GCStash*)stash restoreIndex:(BOOL)restoreIndex error:(NSError**)error;  // git stash pop {--index} {stash}\n\n- (GCStashState*)saveStashState:(NSError**)error;\n- (BOOL)restoreStashState:(GCStashState*)state error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCStash.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n@interface GCStash ()\n@property(nonatomic, strong) GCCommit* baseCommit;\n@property(nonatomic, strong) GCCommit* indexCommit;\n@property(nonatomic, strong) GCCommit* untrackedCommit;\n@end\n\n@implementation GCStashState {\n  git_oid _target;\n  git_reflog* _reflog;\n}\n\n- (id)initWithRepository:(git_repository*)repository error:(NSError**)error {\n  if ((self = [super init])) {\n    git_reference* reference;\n    int status = git_reference_lookup(&reference, repository, kStashReferenceFullName);\n    if (status != GIT_ENOTFOUND) {\n      CHECK_LIBGIT2_FUNCTION_CALL(return nil, status, == GIT_OK);\n      if (git_reference_type(reference) == GIT_REF_OID) {\n        git_oid_cpy(&_target, git_reference_target(reference));\n      }\n      git_reference_free(reference);\n      if (git_oid_iszero(&_target)) {\n        XLOG_DEBUG_UNREACHABLE();\n        GC_SET_GENERIC_ERROR(@\"Invalid stash reference\");\n        return nil;\n      }\n      CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reflog_read, &_reflog, repository, kStashReferenceFullName);\n    }\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_reflog_free(_reflog);\n}\n\n- (BOOL)restoreWithRepository:(git_repository*)repository error:(NSError**)error {\n  if (_reflog) {\n    git_reference* reference;\n    CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reference_create, &reference, repository, kStashReferenceFullName, &_target, 1, NULL);  // Reflog message doesn't matter\n    git_reference_free(reference);\n    CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reflog_write, _reflog);\n  } else {\n    CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reference_remove, repository, kStashReferenceFullName);  // TODO: Should we delete the reflog too?\n  }\n  return YES;\n}\n\n@end\n\n@implementation GCStash\n@end\n\n// TODO: Handle submodules\n@implementation GCRepository (GCStash)\n\n- (GCStash*)_newStashFromOID:(const git_oid*)oid error:(NSError**)error {\n  git_commit* commit;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_lookup, &commit, self.private, oid);\n  GCStash* stash = [[GCStash alloc] initWithRepository:self commit:commit];\n\n  git_commit* baseCommit;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_parent, &baseCommit, commit, 0);\n  stash.baseCommit = [[GCCommit alloc] initWithRepository:self commit:baseCommit];\n\n  git_commit* indexCommit;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_parent, &indexCommit, commit, 1);\n  stash.indexCommit = [[GCCommit alloc] initWithRepository:self commit:indexCommit];\n\n  if (git_commit_parentcount(commit) == 3) {\n    git_commit* untrackedCommit;\n    CALL_LIBGIT2_FUNCTION_RETURN(nil, git_commit_parent, &untrackedCommit, commit, 2);\n    stash.untrackedCommit = [[GCCommit alloc] initWithRepository:self commit:untrackedCommit];\n  }\n\n  return stash;\n}\n\n/* Git stash does the following and in this order:\n - Retrieve the HEAD as the \"base commit\"\n - Create a new commit from the current index tree\n  - This commit has the base commit as its only parent\n - If requested, create a new commit with a special tree that contains only the files present in the working directory but not in the current index tree (i.e. \"untracked files\")\n  - This commit has no parent\n - Create a new commit with the deleted or modified files between the base commit and the working directory\n  - This commit has the base commit as its first parent, the index commit as the second parent and the optional untracked commit as the third parent\n*/\n- (GCStash*)saveStashWithMessage:(NSString*)message keepIndex:(BOOL)keepIndex includeUntracked:(BOOL)includeUntracked error:(NSError**)error {\n  GCStash* stash = nil;\n  git_index* index = NULL;\n  git_signature* signature = NULL;\n\n  index = [self reloadRepositoryIndex:error];  // git_stash_save() doesn't reload the repository index\n  if (index == NULL) {\n    goto cleanup;\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_signature_default, &signature, self.private);\n  int flags = 0;\n  if (keepIndex) {\n    flags |= GIT_STASH_KEEP_INDEX;\n  }\n  if (includeUntracked) {\n    flags |= GIT_STASH_INCLUDE_UNTRACKED;\n  }\n  git_oid oid;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_stash_save, &oid, self.private, signature, GCCleanedUpCommitMessage(message).bytes, flags);\n  stash = [self _newStashFromOID:&oid error:error];\n\ncleanup:\n  git_signature_free(signature);\n  git_index_free(index);\n  return stash;\n}\n\n- (NSArray*)listStashes:(NSError**)error {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_stash_foreach_block, self.private, ^int(size_t index, const char* message, const git_oid* stash_id) {\n    XLOG_DEBUG_CHECK(array.count == index);\n    GCStash* stash = [self _newStashFromOID:stash_id error:error];\n    if (stash == nil) {\n      return GIT_ERROR;\n    }\n    [array addObject:stash];\n    return GIT_OK;\n  });\n  return array;\n}\n\n- (NSUInteger)_indexOfStash:(GCStash*)stash error:(NSError**)error {\n  const git_oid* oid = git_commit_id(stash.private);\n  __block NSUInteger stashIndex = NSNotFound;\n  CALL_LIBGIT2_FUNCTION_RETURN(NSNotFound, git_stash_foreach_block, self.private, ^int(size_t index, const char* message, const git_oid* stash_id) {\n    if (git_oid_equal(stash_id, oid)) {\n      XLOG_DEBUG_CHECK(stashIndex == NSNotFound);\n      stashIndex = index;\n    }\n    return GIT_OK;\n  });\n  if (stashIndex == NSNotFound) {\n    GC_SET_GENERIC_ERROR(@\"Stash does not exist\");\n  }\n  return stashIndex;\n}\n\n- (BOOL)applyStash:(GCStash*)stash restoreIndex:(BOOL)restoreIndex error:(NSError**)error {\n  git_index* index = [self reloadRepositoryIndex:error];  // git_stash_apply() doesn't reload the repository index\n  if (index == NULL) {\n    return NO;\n  }\n  git_index_free(index);\n\n  NSUInteger i = [self _indexOfStash:stash error:error];\n  if (i == NSNotFound) {\n    return NO;\n  }\n\n  git_stash_apply_options options = GIT_STASH_APPLY_OPTIONS_INIT;\n  if (restoreIndex) {\n    options.flags |= GIT_STASH_APPLY_REINSTATE_INDEX;\n  }\n  options.checkout_options.checkout_strategy = GIT_CHECKOUT_SAFE;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_stash_apply, self.private, i, &options);\n  return YES;\n}\n\n- (BOOL)dropStash:(GCStash*)stash error:(NSError**)error {\n  NSUInteger i = [self _indexOfStash:stash error:error];\n  if (i == NSNotFound) {\n    return NO;\n  }\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_stash_drop, self.private, i);\n  return YES;\n}\n\n- (BOOL)popStash:(GCStash*)stash restoreIndex:(BOOL)restoreIndex error:(NSError**)error {\n  git_index* index = [self reloadRepositoryIndex:error];  // git_stash_pop() doesn't reload the repository index\n  if (index == NULL) {\n    return NO;\n  }\n  git_index_free(index);\n\n  NSUInteger i = [self _indexOfStash:stash error:error];\n  if (i == NSNotFound) {\n    return NO;\n  }\n\n  git_stash_apply_options options = GIT_STASH_APPLY_OPTIONS_INIT;\n  if (restoreIndex) {\n    options.flags |= GIT_STASH_APPLY_REINSTATE_INDEX;\n  }\n  options.checkout_options.checkout_strategy = GIT_CHECKOUT_SAFE;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_stash_pop, self.private, i, &options);\n  return YES;\n}\n\n- (GCStashState*)saveStashState:(NSError**)error {\n  return [[GCStashState alloc] initWithRepository:self.private error:error];\n}\n\n- (BOOL)restoreStashState:(GCStashState*)state error:(NSError**)error {\n  return [state restoreWithRepository:self.private error:error];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSubmodule-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n@implementation GCTests (GCSubmodule)\n\n// TODO: Test -checkAllSubmodulesInitialized:error:\n// TODO: Test -initializeAllSubmodules:error:\n- (void)testInitializeSubmodule {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  NSURL* url = [NSURL URLWithString:@\"https://github.com/git-up/test-repo-submodules.git\"];\n  GCRepository* repository = [[GCRepository alloc] initWithClonedRepositoryFromURL:url toPath:path usingDelegate:nil recursive:NO error:NULL];\n  XCTAssertNotNil(repository);\n\n  NSArray* submodules = [repository listSubmodules:NULL];\n  XCTAssertEqual(submodules.count, 1);\n  GCSubmodule* submodule = submodules[0];\n  XCTAssertFalse([repository checkSubmoduleInitialized:submodule error:NULL]);\n  XCTAssertTrue([repository initializeSubmodule:submodule recursive:NO error:NULL]);\n  XCTAssertTrue([repository checkSubmoduleInitialized:submodule error:NULL]);\n\n  [[NSFileManager defaultManager] removeItemAtPath:path error:NULL];\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTests (GCSubmodule)\n\n- (void)testAddSubmodule {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create submodule repo with dummy commit\n  GCRepository* repository = [self createLocalRepositoryAtPath:path bare:NO];\n  XCTAssertTrue([@\"Hello World!\\n\" writeToFile:[path stringByAppendingPathComponent:@\"file.txt\"] atomically:YES encoding:NSUTF8StringEncoding error:NULL]);\n  XCTAssertTrue([repository addAllFilesToIndex:NULL]);\n  XCTAssertNotNil([repository createCommitFromHEADWithMessage:@\"0\" error:NULL]);\n\n  // Add submodule\n  GCSubmodule* submodule = [self.repository addSubmoduleWithURL:[NSURL fileURLWithPath:path] atPath:@\"submodule\" recursive:NO error:NULL];\n  XCTAssertNotNil(submodule);\n\n  // Commit\n  XCTAssertNotNil([self.repository createCommitFromHEADWithMessage:@\"Test\" error:NULL]);\n\n  // Check submodule\n  XCTAssertNotNil([self.repository lookupSubmoduleWithName:@\"submodule\" error:NULL]);\n\n  // Destroy submodule repo\n  [self destroyLocalRepository:repository];\n}\n\n- (void)testSubmodules {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Create submodule repo with dummy commit\n  GCRepository* repository = [self createLocalRepositoryAtPath:path bare:NO];\n  XCTAssertTrue([@\"Hello World!\\n\" writeToFile:[path stringByAppendingPathComponent:@\"file.txt\"] atomically:YES encoding:NSUTF8StringEncoding error:NULL]);\n  XCTAssertTrue([repository addAllFilesToIndex:NULL]);\n  XCTAssertNotNil([repository createCommitFromHEADWithMessage:@\"0\" error:NULL]);\n\n  // Add submodule\n  NSString* output = [self runGitCLTWithRepository:self.repository command:@\"-c\", @\"protocol.file.allow=always\", @\"submodule\", @\"add\", path, @\"submodule\", nil];\n  XCTAssertNotNil(output);\n\n  // Check status\n  XCTAssertTrue([self.repository checkRepositoryDirty:NO]);\n  GCDiff* indexStatus1 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus1);\n  XCTAssertEqual([indexStatus1 changeForFile:@\"submodule\"], kGCFileDiffChange_Added);\n  GCDiff* workdirStatus1 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus1);\n  XCTAssertEqual([workdirStatus1 changeForFile:@\"submodule\"], NSNotFound);\n\n  // Commit submodule\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"Added submodule\" error:NULL];\n  XCTAssertNotNil(commit1);\n  XCTAssertFalse([self.repository checkRepositoryDirty:NO]);\n\n  // List submodules\n  NSArray* submodules = [self.repository listSubmodules:NULL];\n  XCTAssertEqual(submodules.count, 1);\n  GCSubmodule* submodule = submodules[0];\n  XCTAssertEqualObjects(submodule.name, @\"submodule\");\n  XCTAssertEqualObjects(submodule.path, @\"submodule\");\n  XCTAssertEqualObjects(submodule.URL, GCURLFromGitURL(path));\n  XCTAssertNil(submodule.remoteBranchName);\n  XCTAssertEqual(submodule.ignoreMode, kGCSubmoduleIgnoreMode_None);\n  XCTAssertEqual(submodule.fetchRecurseMode, kGCSubmoduleFetchRecurseMode_No);\n  XCTAssertEqual(submodule.updateMode, kGCSubmoduleUpdateMode_Checkout);\n\n  // Open submodule\n  GCRepository* subRepo = [[GCRepository alloc] initWithSubmodule:submodule error:NULL];\n  XCTAssertNotNil(subRepo);\n  XCTAssertFalse([subRepo checkRepositoryDirty:YES]);\n  if (1) {\n    git_config* config;\n    XCTAssertEqual(git_repository_config(&config, subRepo.private), GIT_OK);\n    XCTAssertEqual(git_config_set_string(config, \"user.name\", \"Bot\"), GIT_OK);\n    XCTAssertEqual(git_config_set_string(config, \"user.email\", \"bot@example.com\"), GIT_OK);\n    git_config_free(config);\n  }\n\n  // Make commit in submodule\n  XCTAssertTrue([@\"Bonjour le Monde!\\n\" writeToFile:[subRepo.workingDirectoryPath stringByAppendingPathComponent:@\"file.txt\"] atomically:YES encoding:NSUTF8StringEncoding error:NULL]);\n  XCTAssertTrue([subRepo addAllFilesToIndex:NULL]);\n  XCTAssertNotNil([subRepo createCommitFromHEADWithMessage:@\"1\" error:NULL]);\n\n  // Check status\n  XCTAssertTrue([self.repository checkRepositoryDirty:NO]);\n  GCDiff* indexStatus2 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus2);\n  XCTAssertEqual([indexStatus2 changeForFile:@\"submodule\"], NSNotFound);\n  GCDiff* workdirStatus2 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus2);\n  XCTAssertEqual([workdirStatus2 changeForFile:@\"submodule\"], kGCFileDiffChange_Modified);\n\n  // Add submodule to index\n  XCTAssertTrue([self.repository addSubmoduleToRepositoryIndex:submodule error:NULL]);\n  GCDiff* indexStatus3 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus3);\n  XCTAssertEqual([indexStatus3 changeForFile:@\"submodule\"], kGCFileDiffChange_Modified);\n  GCDiff* workdirStatus3 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus3);\n  XCTAssertEqual([workdirStatus3 changeForFile:@\"submodule\"], NSNotFound);\n\n  // Unstage submodule from index\n  XCTAssertTrue([self.repository resetFileInIndexToHEAD:@\"submodule\" error:NULL]);\n  GCDiff* indexStatus4 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus4);\n  XCTAssertEqual([indexStatus4 changeForFile:@\"submodule\"], NSNotFound);\n  GCDiff* workdirStatus4 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus4);\n  XCTAssertEqual([workdirStatus4 changeForFile:@\"submodule\"], kGCFileDiffChange_Modified);\n\n  // Re-stage submodule into index\n  XCTAssertTrue([self.repository addSubmoduleToRepositoryIndex:submodule error:NULL]);\n\n  // Commit submodule again\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"Updated submodule\" error:NULL];\n  XCTAssertNotNil(commit2);\n  XCTAssertFalse([self.repository checkRepositoryDirty:NO]);\n\n  // Checkout previous commit\n  XCTAssertTrue([self.repository checkoutCommit:commit1 options:kGCCheckoutOption_Force error:NULL]);\n  GCDiff* indexStatus5 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus5);\n  XCTAssertEqual([indexStatus5 changeForFile:@\"submodule\"], NSNotFound);\n  GCDiff* workdirStatus5 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus5);\n  XCTAssertEqual([workdirStatus5 changeForFile:@\"submodule\"], kGCFileDiffChange_Modified);\n\n  // Update submodule\n  XCTAssertTrue([self.repository updateSubmodule:submodule force:NO error:NULL]);\n  GCDiff* indexStatus6 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus6);\n  XCTAssertEqual([indexStatus6 changeForFile:@\"submodule\"], NSNotFound);\n  GCDiff* workdirStatus6 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus6);\n  XCTAssertEqual([workdirStatus6 changeForFile:@\"submodule\"], NSNotFound);\n\n  // Reset to latest commit\n  XCTAssertTrue([self.repository resetToCommit:commit2 mode:kGCResetMode_Hard error:NULL]);\n  GCDiff* indexStatus7 = [self.repository checkIndexStatus:NULL];\n  XCTAssertNotNil(indexStatus7);\n  XCTAssertEqual([indexStatus7 changeForFile:@\"submodule\"], NSNotFound);\n  GCDiff* workdirStatus7 = [self.repository checkWorkingDirectoryStatus:NULL];\n  XCTAssertNotNil(workdirStatus7);\n  XCTAssertEqual([workdirStatus7 changeForFile:@\"submodule\"], kGCFileDiffChange_Modified);\n\n  // Destroy submodule repo\n  [self destroyLocalRepository:repository];\n}\n\n- (void)testRecursiveSubmoduleUpdate {\n  NSString* path1 = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n  NSString* path2 = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n  NSString* output;\n  git_config* config;\n\n  // Create submodule repo\n  GCRepository* repo1 = [self createLocalRepositoryAtPath:path1 bare:NO];\n  XCTAssertNotNil(repo1);\n  NSArray* commits = [repo1 createMockCommitHierarchyFromNotation:@\"m0 - m1 - m2<master>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n  XCTAssertTrue([repo1 setDetachedHEADToCommit:commits[1] error:NULL]);\n\n  // Create wrapper repo\n  GCRepository* repo2 = [self createLocalRepositoryAtPath:path2 bare:NO];\n  XCTAssertNotNil(repo2);\n  output = [self runGitCLTWithRepository:repo2 command:@\"-c\", @\"protocol.file.allow=always\", @\"submodule\", @\"add\", path1, @\"repo1\", nil];\n  XCTAssertNotNil(output);\n  XCTAssertNotNil([repo2 createCommitFromHEADWithMessage:@\"Added submodule\" error:NULL]);\n\n  // Wrap the wrapper repo\n  output = [self runGitCLTWithRepository:self.repository command:@\"-c\", @\"protocol.file.allow=always\", @\"submodule\", @\"add\", path2, @\"repo2\", nil];\n  XCTAssertNotNil(output);\n  output = [self runGitCLTWithRepository:self.repository command:@\"-c\", @\"protocol.file.allow=always\", @\"submodule\", @\"update\", @\"--init\", @\"--recursive\", nil];\n  XCTAssertNotNil(output);\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"Added submodule\" error:NULL];\n  XCTAssertNotNil(commit1);\n\n  // Load submodules and subrepos\n  GCSubmodule* submodule2 = [[self.repository listSubmodules:NULL] firstObject];\n  XCTAssertNotNil(submodule2);\n  GCRepository* subrepo2 = [[GCRepository alloc] initWithSubmodule:submodule2 error:NULL];\n  XCTAssertNotNil(subrepo2);\n  XCTAssertEqual(git_repository_config(&config, subrepo2.private), GIT_OK);\n  XCTAssertEqual(git_config_set_string(config, \"user.name\", \"Bot\"), GIT_OK);\n  XCTAssertEqual(git_config_set_string(config, \"user.email\", \"bot@example.com\"), GIT_OK);\n  git_config_free(config);\n  GCSubmodule* submodule1 = [[subrepo2 listSubmodules:NULL] firstObject];\n  XCTAssertNotNil(submodule1);\n  GCRepository* subrepo1 = [[GCRepository alloc] initWithSubmodule:submodule1 error:NULL];\n  XCTAssertNotNil(subrepo1);\n  XCTAssertEqual(git_repository_config(&config, subrepo1.private), GIT_OK);\n  XCTAssertEqual(git_config_set_string(config, \"user.name\", \"Bot\"), GIT_OK);\n  XCTAssertEqual(git_config_set_string(config, \"user.email\", \"bot@example.com\"), GIT_OK);\n  git_config_free(config);\n\n  // Move HEAD in submodule repo\n  XCTAssertTrue([subrepo1 setDetachedHEADToCommit:commits[2] error:NULL]);\n  XCTAssertTrue([self.repository checkRepositoryDirty:NO]);\n  XCTAssertTrue([subrepo2 addSubmoduleToRepositoryIndex:submodule1 error:NULL]);\n  XCTAssertNotNil([subrepo2 createCommitFromHEADWithMessage:@\"Updated submodule\" error:NULL]);\n  XCTAssertTrue([self.repository checkRepositoryDirty:NO]);\n  XCTAssertTrue([self.repository addSubmoduleToRepositoryIndex:submodule2 error:NULL]);\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"Updated submodule\" error:NULL];\n  XCTAssertNotNil(commit2);\n  XCTAssertFalse([self.repository checkRepositoryDirty:NO]);\n\n  // Roll back commit\n  XCTAssertTrue([self.repository resetToCommit:commit1 mode:kGCResetMode_Hard error:NULL]);\n  XCTAssertTrue([self.repository checkRepositoryDirty:NO]);\n  XCTAssertTrue([self.repository updateAllSubmodulesResursively:NO error:NULL]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:NO]);\n  XCTAssertEqualObjects([subrepo1 lookupHEAD:NULL error:NULL], commits[1]);\n\n  // Clean up\n  [self destroyLocalRepository:repo2];\n  [self destroyLocalRepository:repo1];\n}\n\n- (void)testSubmoduleEdgeCases {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n  NSString* output;\n\n  // Create submodule repo\n  GCRepository* repo = [self createLocalRepositoryAtPath:path bare:NO];\n  XCTAssertNotNil(repo);\n  XCTAssertNotNil([repo createMockCommitHierarchyFromNotation:@\"m0 - m1 - m2<master>\" force:NO error:NULL]);\n\n  // Add submodule and commit\n  output = [self runGitCLTWithRepository:self.repository command:@\"-c\", @\"protocol.file.allow=always\", @\"submodule\", @\"add\", path, @\"repo\", nil];\n  XCTAssertNotNil(output);\n  output = [self runGitCLTWithRepository:self.repository command:@\"submodule\", @\"update\", @\"--init\", nil];\n  XCTAssertNotNil(output);\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"Added submodule\" error:NULL];\n  XCTAssertNotNil(commit1);\n\n  // Checkout commit before submodule was added\n  XCTAssertTrue([self.repository checkoutCommit:self.initialCommit options:kGCCheckoutOption_UpdateSubmodulesRecursively error:NULL]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  XCTAssertEqualObjects([self.repository listSubmodules:NULL], @[]);\n\n  // Checkout commit when submodule was added\n  XCTAssertTrue([self.repository checkoutLocalBranch:[self.repository findLocalBranchWithName:@\"master\" error:NULL] options:kGCCheckoutOption_UpdateSubmodulesRecursively error:NULL]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  XCTAssertEqual([[self.repository listSubmodules:NULL] count], 1);\n\n  // Delete submodule and commit\n  output = [self runGitCLTWithRepository:self.repository command:@\"submodule\", @\"deinit\", @\"repo\", nil];\n  XCTAssertNotNil(output);\n  output = [self runGitCLTWithRepository:self.repository command:@\"rm\", @\"repo\", nil];\n  XCTAssertNotNil(output);\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"Removed submodule\" error:NULL];\n  XCTAssertNotNil(commit2);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  XCTAssertEqualObjects([self.repository listSubmodules:NULL], @[]);\n\n  // Checkout commit when submodule was added\n  XCTAssertTrue([self.repository checkoutCommit:commit1 options:kGCCheckoutOption_UpdateSubmodulesRecursively error:NULL]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  XCTAssertEqual([[self.repository listSubmodules:NULL] count], 1);\n\n  // Checkout commit when submodule was deleted\n  XCTAssertTrue([self.repository checkoutLocalBranch:[self.repository findLocalBranchWithName:@\"master\" error:NULL] options:kGCCheckoutOption_UpdateSubmodulesRecursively error:NULL]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  XCTAssertEqualObjects([self.repository listSubmodules:NULL], @[]);\n\n  // Checkin file where submodule was\n  [self makeCommitWithUpdatedFileAtPath:@\"repo\" string:@\"nothing\" message:@\"NOTHING\"];\n\n  // Checkout commit when submodule was added\n  XCTAssertTrue([self.repository checkoutCommit:commit1 options:kGCCheckoutOption_UpdateSubmodulesRecursively error:NULL]);\n  XCTAssertFalse([self.repository checkRepositoryDirty:YES]);\n  XCTAssertEqual([[self.repository listSubmodules:NULL] count], 1);\n\n  // Destroy submodule repo\n  [self destroyLocalRepository:repo];\n}\n\n- (void)testRenameSubmodule {\n  NSArray* submodules;\n  GCSubmodule* submodule;\n\n  // Add submodule\n  NSString* output1 = [self runGitCLTWithRepository:self.repository command:@\"submodule\", @\"add\", @\"https://github.com/git-up/test-repo-base.git\", nil];\n  XCTAssertNotNil(output1);\n\n  // Verify name & path\n  submodules = [self.repository listSubmodules:NULL];\n  XCTAssertEqual(submodules.count, 1);\n  submodule = submodules.firstObject;\n  XCTAssertEqualObjects(submodule.name, @\"test-repo-base\");\n  XCTAssertEqualObjects(submodule.path, @\"test-repo-base\");\n\n  // Commit submodule\n  GCCommit* commit1 = [self.repository createCommitFromHEADWithMessage:@\"Added submodule\" error:NULL];\n  XCTAssertNotNil(commit1);\n  XCTAssertFalse([self.repository checkRepositoryDirty:NO]);\n\n  // Verify name & path\n  submodules = [self.repository listSubmodules:NULL];\n  XCTAssertEqual(submodules.count, 1);\n  submodule = submodules.firstObject;\n  XCTAssertEqualObjects(submodule.name, @\"test-repo-base\");\n  XCTAssertEqualObjects(submodule.path, @\"test-repo-base\");\n\n  // Move submodule\n  NSString* output2 = [self runGitCLTWithRepository:self.repository command:@\"mv\", @\"test-repo-base\", @\"base\", nil];\n  XCTAssertNotNil(output2);\n\n  // Verify name & path\n  submodules = [self.repository listSubmodules:NULL];\n  XCTAssertEqual(submodules.count, 1);\n  submodule = submodules.firstObject;\n  XCTAssertEqualObjects(submodule.name, @\"test-repo-base\");\n  XCTAssertEqualObjects(submodule.path, @\"base\");\n\n  // Commit submodule\n  GCCommit* commit2 = [self.repository createCommitFromHEADWithMessage:@\"Moved submodule\" error:NULL];\n  XCTAssertNotNil(commit2);\n  XCTAssertFalse([self.repository checkRepositoryDirty:NO]);\n\n  // Verify name & path\n  submodules = [self.repository listSubmodules:NULL];\n  XCTAssertEqual(submodules.count, 1);\n  submodule = submodules.firstObject;\n  XCTAssertEqualObjects(submodule.name, @\"test-repo-base\");\n  XCTAssertEqualObjects(submodule.path, @\"base\");\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSubmodule.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCRepository.h\"\n\ntypedef NS_ENUM(NSUInteger, GCSubmoduleIgnoreMode) {\n  kGCSubmoduleIgnoreMode_None = 0,  // Default in Git\n  kGCSubmoduleIgnoreMode_Untracked,\n  kGCSubmoduleIgnoreMode_Dirty,\n  kGCSubmoduleIgnoreMode_All\n};\n\ntypedef NS_ENUM(NSUInteger, GCSubmoduleFetchRecurseMode) {\n  kGCSubmoduleFetchRecurseMode_No = 0,  // Default in Git\n  kGCSubmoduleFetchRecurseMode_Yes,\n  kGCSubmoduleFetchRecurseMode_OnDemand  // Only fetch if superproject points to an unknown submodule commit\n};\n\ntypedef NS_ENUM(NSUInteger, GCSubmoduleUpdateMode) {\n  kGCSubmoduleUpdateMode_None = 0,\n  kGCSubmoduleUpdateMode_Checkout,  // Default in Git\n  kGCSubmoduleUpdateMode_Rebase,\n  kGCSubmoduleUpdateMode_Merge,\n};\n\n@interface GCSubmodule : NSObject\n@property(nonatomic, readonly) GCRepository* repository;  // NOT RETAINED\n@property(nonatomic, readonly) NSString* name;\n@property(nonatomic, readonly) NSString* path;\n@property(nonatomic, readonly) NSURL* URL;  // May be nil\n@property(nonatomic, readonly) NSString* remoteBranchName;  // From .gitmodules (may be nil)\n@property(nonatomic, readonly) GCSubmoduleIgnoreMode ignoreMode;  // From .gitmodules\n@property(nonatomic, readonly) GCSubmoduleFetchRecurseMode fetchRecurseMode;  // From .gitmodules\n@property(nonatomic, readonly) GCSubmoduleUpdateMode updateMode;  // From .gitmodules\n@end\n\n@interface GCRepository (GCSubmodule)\n- (instancetype)initWithSubmodule:(GCSubmodule*)submodule error:(NSError**)error;  // (?)\n\n- (BOOL)checkSubmoduleInitialized:(GCSubmodule*)submodule error:(NSError**)error;  // (?)\n- (BOOL)checkAllSubmodulesInitialized:(BOOL)recursive error:(NSError**)error;  // (?)\n\n- (GCSubmodule*)addSubmoduleWithURL:(NSURL*)url atPath:(NSString*)path recursive:(BOOL)recursive error:(NSError**)error;  // git submodule add {url} {path}\n- (BOOL)initializeSubmodule:(GCSubmodule*)submodule recursive:(BOOL)recursive error:(NSError**)error;  // git submodule update --init {--recursive} {path}\n- (BOOL)initializeAllSubmodules:(BOOL)recursive error:(NSError**)error;  // git submodule update --init {--recursive} - This will skip already initialized submodules\n\n- (GCSubmodule*)lookupSubmoduleWithName:(NSString*)name error:(NSError**)error;  // git submodule\n- (NSArray*)listSubmodules:(NSError**)error;  // git submodule\n- (BOOL)updateSubmodule:(GCSubmodule*)submodule force:(BOOL)force error:(NSError**)error;  // git submodule update {--force} {submodule}\n- (BOOL)updateAllSubmodulesResursively:(BOOL)force error:(NSError**)error;  // git submodule update --recursive {--force} (except this does not fetch) - This will skip uninitialized submodules\n\n- (BOOL)addSubmoduleToRepositoryIndex:(GCSubmodule*)submodule error:(NSError**)error;  // git add {submodule}\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCSubmodule.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\nextern int git_path_make_relative(git_buf* path, const char* parent);  // SPI\n\n@implementation GCSubmodule {\n  __unsafe_unretained GCRepository* _repository;\n}\n\n- (instancetype)initWithRepository:(GCRepository*)repository submodule:(git_submodule*)submodule {\n  if ((self = [super init])) {\n    _repository = repository;\n    _private = submodule;\n    [self _reload];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  git_submodule_free(_private);\n}\n\n- (void)_reload {\n  _name = [NSString stringWithUTF8String:git_submodule_name(_private)];\n  const char* path = git_submodule_path(_private);\n  _path = GCFileSystemPathFromGitPath(path);\n  const char* url = git_submodule_url(_private);\n  _URL = url ? GCURLFromGitURL([NSString stringWithUTF8String:url]) : nil;\n  const char* branch = git_submodule_branch(_private);\n  _remoteBranchName = branch ? [NSString stringWithUTF8String:branch] : nil;\n  switch (git_submodule_ignore(_private)) {\n    case GIT_SUBMODULE_IGNORE_NONE:\n      _ignoreMode = kGCSubmoduleIgnoreMode_None;\n      break;\n    case GIT_SUBMODULE_IGNORE_UNTRACKED:\n      _ignoreMode = kGCSubmoduleIgnoreMode_Untracked;\n      break;\n    case GIT_SUBMODULE_IGNORE_DIRTY:\n      _ignoreMode = kGCSubmoduleIgnoreMode_Dirty;\n      break;\n    case GIT_SUBMODULE_IGNORE_ALL:\n      _ignoreMode = kGCSubmoduleIgnoreMode_All;\n      break;\n    case GIT_SUBMODULE_IGNORE_UNSPECIFIED:\n      XLOG_DEBUG_UNREACHABLE();\n  }\n  switch (git_submodule_fetch_recurse_submodules(_private)) {\n    case GIT_SUBMODULE_RECURSE_NO:\n      _fetchRecurseMode = kGCSubmoduleFetchRecurseMode_No;\n      break;\n    case GIT_SUBMODULE_RECURSE_YES:\n      _fetchRecurseMode = kGCSubmoduleFetchRecurseMode_Yes;\n      break;\n    case GIT_SUBMODULE_RECURSE_ONDEMAND:\n      _fetchRecurseMode = kGCSubmoduleFetchRecurseMode_OnDemand;\n      break;\n  }\n  switch (git_submodule_update_strategy(_private)) {\n    case GIT_SUBMODULE_UPDATE_CHECKOUT:\n      _updateMode = kGCSubmoduleUpdateMode_Checkout;\n      break;\n    case GIT_SUBMODULE_UPDATE_REBASE:\n      _updateMode = kGCSubmoduleUpdateMode_Rebase;\n      break;\n    case GIT_SUBMODULE_UPDATE_MERGE:\n      _updateMode = kGCSubmoduleUpdateMode_Merge;\n      break;\n    case GIT_SUBMODULE_UPDATE_NONE:\n      _updateMode = kGCSubmoduleUpdateMode_None;\n      break;\n    case GIT_SUBMODULE_UPDATE_DEFAULT:\n      XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"[%@] %@ = \\\"%@\\\" (%@)\", self.class, _name, _path, GCGitURLFromURL(_URL)];\n}\n\n@end\n\n@implementation GCRepository (GCSubmodule)\n\n- (instancetype)initWithSubmodule:(GCSubmodule*)submodule error:(NSError**)error {\n  git_repository* repository;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_submodule_open, &repository, submodule.private);\n  return [self initWithRepository:repository error:error];\n}\n\n- (BOOL)checkSubmoduleInitialized:(GCSubmodule*)submodule error:(NSError**)error {\n  unsigned int status;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_submodule_status, &status, self.private, git_submodule_name(submodule.private), GIT_SUBMODULE_IGNORE_DIRTY);\n  if (status & GIT_SUBMODULE_STATUS_WD_UNINITIALIZED) {\n    GC_SET_ERROR(kGCErrorCode_SubmoduleUninitialized, @\"Submodule is not initialized\");\n    return NO;\n  }\n  return YES;\n}\n\n- (BOOL)checkAllSubmodulesInitialized:(BOOL)recursive error:(NSError**)error {\n  NSArray* submodules = [self listSubmodules:error];\n  if (submodules == nil) {\n    return NO;\n  }\n  for (GCSubmodule* submodule in submodules) {\n    if (![self checkSubmoduleInitialized:submodule error:error]) {\n      return NO;\n    }\n    if (recursive) {\n      NSError* localError;\n      GCRepository* repository = [[GCRepository alloc] initWithSubmodule:submodule error:&localError];\n      if (repository == nil) {\n        if ([localError.domain isEqualToString:GCErrorDomain] && (localError.code == kGCErrorCode_NotFound)) {\n          continue;\n        }\n        if (error) {\n          *error = localError;\n        }\n        return NO;\n      }\n      if (![repository checkAllSubmodulesInitialized:recursive error:error]) {\n        return NO;\n      }\n    }\n  }\n  return YES;\n}\n\n- (GCSubmodule*)addSubmoduleWithURL:(NSURL*)url atPath:(NSString*)path recursive:(BOOL)recursive error:(NSError**)error {\n  BOOL success = NO;\n  git_submodule* submodule = NULL;\n  GCRepository* repository;\n  GCRemote* remote;\n\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_submodule_add_setup, &submodule, self.private, GCGitURLFromURL(url).UTF8String, GCGitPathFromFileSystemPath(path), true);\n  git_repository* subRepository;\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_submodule_open, &subRepository, submodule);\n  repository = [[GCRepository alloc] initWithRepository:subRepository error:error];\n  if (repository == nil) {\n    goto cleanup;\n  }\n  repository.delegate = self.delegate;\n  remote = [repository lookupRemoteWithName:@\"origin\" error:error];\n  if (remote == nil) {\n    goto cleanup;\n  }\n  if (![repository cloneUsingRemote:remote recursive:recursive error:error]) {\n    goto cleanup;\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_submodule_add_finalize, submodule);  // This just calls git_submodule_add_to_index()\n  success = YES;\n\ncleanup:\n  if (!success) {\n    git_submodule_free(submodule);\n  }\n  return success ? [[GCSubmodule alloc] initWithRepository:self submodule:submodule] : nil;\n}\n\n- (BOOL)initializeSubmodule:(GCSubmodule*)submodule recursive:(BOOL)recursive error:(NSError**)error {\n  XLOG_DEBUG_CHECK(![self checkSubmoduleInitialized:submodule error:NULL]);\n\n  NSString* modulePath = [[self.repositoryPath stringByAppendingPathComponent:@\"modules\"] stringByAppendingPathComponent:submodule.path];\n  if ([[NSFileManager defaultManager] fileExistsAtPath:modulePath followLastSymlink:NO] && ![[NSFileManager defaultManager] removeItemAtPath:modulePath error:error]) {\n    return NO;\n  }\n\n  git_submodule_update_options options = GIT_SUBMODULE_UPDATE_OPTIONS_INIT;\n  [self setRemoteCallbacks:&options.fetch_opts.callbacks];\n  [self willStartRemoteTransferWithURL:submodule.URL];\n  int status = git_submodule_update(submodule.private, true, &options);  // This actually does a clone if the submodule is not initialized\n  [self didFinishRemoteTransferWithURL:submodule.URL success:(status == GIT_OK)];\n  CHECK_LIBGIT2_FUNCTION_CALL(return NO, status, == GIT_OK);\n\n  if (recursive) {\n    GCRepository* repository = [[GCRepository alloc] initWithSubmodule:submodule error:error];\n    if (repository == nil) {\n      return NO;\n    }\n    repository.delegate = self.delegate;\n    if (![repository initializeAllSubmodules:recursive error:error]) {\n      return NO;\n    }\n  }\n\n  return YES;\n}\n\n- (BOOL)initializeAllSubmodules:(BOOL)recursive error:(NSError**)error {\n  NSArray* submodules = [self listSubmodules:error];\n  if (submodules == nil) {\n    return NO;\n  }\n  for (GCSubmodule* submodule in submodules) {\n    if (![self checkSubmoduleInitialized:submodule error:NULL]) {  // Ignore errors\n      if (![self initializeSubmodule:submodule recursive:recursive error:error]) {\n        return NO;\n      }\n    }\n    if (recursive) {\n      GCRepository* repository = [[GCRepository alloc] initWithSubmodule:submodule error:error];\n      if (repository == nil) {\n        return NO;\n      }\n      if (![repository initializeAllSubmodules:recursive error:error]) {\n        return NO;\n      }\n    }\n  }\n  return YES;\n}\n\n- (GCSubmodule*)lookupSubmoduleWithName:(NSString*)name error:(NSError**)error {\n  git_submodule* submodule;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_submodule_lookup, &submodule, self.private, name.UTF8String);\n  return [[GCSubmodule alloc] initWithRepository:self submodule:submodule];\n}\n\n- (NSArray*)listSubmodules:(NSError**)error {\n  NSMutableArray* submodules = [[NSMutableArray alloc] init];\n  int status = git_submodule_foreach_block(self.private, ^int(git_submodule* submodule, const char* name) {  // This calls git_submodule_reload_all(false)\n    gitup_submodule_dup(submodule);\n    [submodules addObject:[[GCSubmodule alloc] initWithRepository:self submodule:submodule]];\n    return GIT_OK;\n  });\n  CHECK_LIBGIT2_FUNCTION_CALL(return nil, status, == GIT_OK);\n  return submodules;\n}\n\n- (BOOL)updateSubmodule:(GCSubmodule*)submodule force:(BOOL)force error:(NSError**)error {\n  BOOL success = NO;\n  git_repository* subRepository = NULL;\n  git_index* index = NULL;\n  git_commit* commit = NULL;\n\n  switch (git_submodule_update_strategy(submodule.private)) {\n    case GIT_SUBMODULE_UPDATE_NONE: {\n      success = YES;\n      break;\n    }\n\n    // Reimplement git_submodule_update() when no submodule initialization is needed\n    case GIT_SUBMODULE_UPDATE_CHECKOUT: {\n      CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n      BOOL recreate = NO;\n      index = [self reloadRepositoryIndex:error];\n      if (index == NULL) {\n        goto cleanup;\n      }\n      const git_index_entry* entry = git_index_get_bypath(index, git_submodule_path(submodule.private), 0);  // We cannot use git_submodule_index_id() as it returns cached information which may be out-of-date and requires an expensive call to git_submodule_reload()\n      if (!entry || (entry->mode != GIT_FILEMODE_COMMIT)) {\n        GC_SET_GENERIC_ERROR(@\"Submodule not in index\");\n        goto cleanup;\n      }\n      int status = git_submodule_open(&subRepository, submodule.private);\n      if (status == GIT_ENOTFOUND) {  // This means the repository was not initialized or its working directory is gone\n        NSString* modulePath = [[self.repositoryPath stringByAppendingPathComponent:@\"modules\"] stringByAppendingPathComponent:submodule.path];\n        git_repository* moduleRepository;\n        CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_open, &moduleRepository, modulePath.fileSystemRepresentation);  // If the working directory is gone, then we must have a module around, otherwise the submodule was not initialized\n        status = gitup_repository_update_gitlink(moduleRepository, true);  // This re-creates the workdir and its parent directories and the gitlink inside\n        git_repository_free(moduleRepository);\n        CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n        status = git_submodule_open(&subRepository, submodule.private);\n        recreate = YES;\n      }\n      CHECK_LIBGIT2_FUNCTION_CALL(goto cleanup, status, == GIT_OK);\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_commit_lookup, &commit, subRepository, &entry->id);\n      git_checkout_options options = GIT_CHECKOUT_OPTIONS_INIT;\n      options.checkout_strategy = force ? GIT_CHECKOUT_FORCE : (recreate ? GIT_CHECKOUT_RECREATE_MISSING : GIT_CHECKOUT_SAFE);\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_checkout_tree, subRepository, (git_object*)commit, &options);\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_repository_set_head_detached, subRepository, &entry->id);\n      CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_submodule_reload, submodule.private, false);  // \"force\" argument is unused anyway!\n      success = YES;\n      XLOG_VERBOSE(@\"Updated submodule \\\"%@\\\" in \\\"%@\\\" in %.3f seconds\", submodule.name, self.repositoryPath, CFAbsoluteTimeGetCurrent() - time);\n      break;\n    }\n\n    default:\n      GC_SET_GENERIC_ERROR(@\"Unsupported update mode for submodule \\\"%@\\\"\", submodule.name);\n      break;\n  }\n\ncleanup:\n  git_commit_free(commit);\n  git_index_free(index);\n  git_repository_free(subRepository);\n  return success;\n}\n\n- (BOOL)updateAllSubmodulesResursively:(BOOL)force error:(NSError**)error {\n  NSArray* submodules = [self listSubmodules:error];\n  if (submodules == nil) {\n    return NO;\n  }\n\n  NSArray<NSString*>* conflictPaths = @[];\n\n  git_index* index = [self reloadRepositoryIndex:error];\n\n  if (index && git_index_has_conflicts(index)) {\n    conflictPaths = [self checkConflicts:nil].allKeys;\n  }\n\n  git_index_free(index);\n\n  for (GCSubmodule* submodule in submodules) {\n    if ([conflictPaths containsObject:submodule.path]) {\n      // conflict needs to be resolved first, will be handled elsewhere but we shouldn't return an error\n      continue;\n    }\n\n    NSError* localError;\n    if (![self updateSubmodule:submodule force:force error:&localError]) {\n      if ([localError.domain isEqualToString:GCErrorDomain] && (localError.code == kGCErrorCode_NotFound)) {\n        continue;\n      }\n      if (error) {\n        *error = localError;\n      }\n      return NO;\n    }\n    GCRepository* repository = [[GCRepository alloc] initWithSubmodule:submodule error:error];\n    if (![repository updateAllSubmodulesResursively:force error:error]) {\n      return NO;\n    }\n  }\n  return YES;\n}\n\n- (BOOL)addSubmoduleToRepositoryIndex:(GCSubmodule*)submodule error:(NSError**)error {\n  git_index* index = [self reloadRepositoryIndex:error];\n  if (index == NULL) {\n    return NO;\n  }\n  git_index_free(index);\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_submodule_add_to_index, submodule.private, true);  // This doesn't reload the index before adding to it\n  return YES;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCTag-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCTag)\n\n- (void)testTags {\n  // Test valid names\n  XCTAssertTrue([GCRepository isValidTagName:@\"My_Tag\"]);\n  XCTAssertFalse([GCRepository isValidTagName:@\"^Tag%\"]);\n\n  // Create lightweight tag (should fail)\n  XCTAssertNil([self.repository createLightweightTagWithCommit:self.initialCommit name:@\"^Tag%\" force:NO error:NULL]);\n\n  // Create lightweight tag (should pass)\n  GCTag* tag1 = [self.repository createLightweightTagWithCommit:self.initialCommit name:@\"Mark\" force:NO error:NULL];\n  XCTAssertNotNil(tag1);\n  XCTAssertEqualObjects([self.repository lookupCommitForTag:tag1 annotation:NULL error:NULL], self.initialCommit);\n  XCTAssertEqualObjects([self.repository findTagWithName:@\"Mark\" error:NULL], tag1);\n\n  // Create annotated tag\n  GCTag* tag2 = [self.repository createAnnotatedTagWithCommit:self.initialCommit name:@\"Demo\" message:@\"This is a test\" force:NO annotation:NULL error:NULL];\n  GCTagAnnotation* annotation;\n  XCTAssertEqualObjects([self.repository lookupCommitForTag:tag2 annotation:&annotation error:NULL], self.initialCommit);\n  XCTAssertEqualObjects(annotation.message, @\"This is a test\\n\");\n  XCTAssertEqualObjects([self.repository findTagWithName:@\"Demo\" error:NULL], tag2);\n\n  // Delete tag\n  XCTAssertTrue([self.repository deleteTag:tag2 error:NULL]);\n\n  // Re-create annotated tag\n  GCTag* tag3 = [self.repository createAnnotatedTagWithAnnotation:annotation force:NO error:NULL];\n  XCTAssertNotNil(tag3);\n\n  // Check tags\n  [self assertGitCLTOutputEqualsString:@\"Demo\\nMark\\n\" withRepository:self.repository command:@\"tag\", nil];\n  NSArray* tags1 = @[ tag3, tag1 ];\n  XCTAssertEqualObjects([self.repository listTags:NULL], tags1);\n\n  // Rename tag\n  XCTAssertTrue([self.repository setName:@\"TEST\" forTag:tag1 force:NO error:NULL]);\n  XCTAssertEqualObjects([self.repository findTagWithName:@\"TEST\" error:NULL], tag1);\n\n  // Check tags\n  [self assertGitCLTOutputEqualsString:@\"Demo\\nTEST\\n\" withRepository:self.repository command:@\"tag\", nil];\n  NSArray* tags2 = @[ tag3, tag1 ];\n  XCTAssertEqualObjects([self.repository listTags:NULL], tags2);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCTag.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCObject.h\"\n#import \"GCReference.h\"\n#import \"GCRepository.h\"\n\n@class GCCommit;\n\n@interface GCTagAnnotation : GCObject\n@property(nonatomic, readonly) NSString* name;\n@property(nonatomic, readonly) NSString* message;  // Raw message including trailing newline\n@property(nonatomic, readonly) NSString* tagger;\n@end\n\n@interface GCTagAnnotation (Extensions)\n- (BOOL)isEqualToTagAnnotation:(GCTagAnnotation*)annotation;\n@end\n\n@interface GCTag : GCReference\n@end\n\n@interface GCTag (Extensions)\n- (BOOL)isEqualToTag:(GCTag*)tag;\n@end\n\n// Changing the commit of a tag is not supported since this wouldn't be reliable for annotated tags e.g. if tag is signed\n@interface GCRepository (GCTag)\n+ (BOOL)isValidTagName:(NSString*)name;\n\n- (GCTag*)findTagWithName:(NSString*)name error:(NSError**)error;\n- (NSArray*)listTags:(NSError**)error;  // git tag\n\n- (GCCommit*)lookupCommitForTag:(GCTag*)tag annotation:(GCTagAnnotation**)annotation error:(NSError**)error;  // git show-ref {tag}\n\n- (GCTag*)createLightweightTagWithCommit:(GCCommit*)commit name:(NSString*)name force:(BOOL)force error:(NSError**)error;  // git tag {-f} {name} {commit}\n- (GCTag*)createAnnotatedTagWithAnnotation:(GCTagAnnotation*)annotation force:(BOOL)force error:(NSError**)error;  // (?)\n- (GCTag*)createAnnotatedTagWithCommit:(GCCommit*)commit name:(NSString*)name message:(NSString*)message force:(BOOL)force annotation:(GCTagAnnotation**)annotation error:(NSError**)error;  // git tag {-f} -a {name} -m {message} {commit}\n- (BOOL)setName:(NSString*)name forTag:(GCTag*)tag force:(BOOL)force error:(NSError**)error;  // (?)\n- (BOOL)deleteTag:(GCTag*)tag error:(NSError**)error;  // git tag -d {tag}\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCTag.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCPrivate.h\"\n\n#define kTruncatedDescriptionThreshold 50\n\n@implementation GCTagAnnotation\n\n@dynamic private;\n\n- (instancetype)initWithRepository:(GCRepository*)repository tag:(git_tag*)tag {\n  return [self initWithRepository:repository object:(git_object*)tag];\n}\n\n- (NSString*)name {\n  const char* name = git_tag_name((git_tag*)_private);\n  return [[NSString alloc] initWithBytesNoCopy:(void*)name length:strlen(name) encoding:NSUTF8StringEncoding freeWhenDone:NO];\n}\n\n- (NSString*)message {\n  const char* message = git_tag_message((git_tag*)_private);\n  return [[NSString alloc] initWithBytesNoCopy:(void*)message length:strlen(message) encoding:NSUTF8StringEncoding freeWhenDone:NO];\n}\n\n- (NSString*)tagger {\n  return GCUserFromSignature(git_tag_tagger((git_tag*)_private));\n}\n\n- (NSString*)description {\n  NSString* message = [self.message stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];  // Trim ending newline\n  return [NSString stringWithFormat:@\"[%@] '%@' %@ '%@%@'\", self.class,\n                                    self.shortSHA1,\n                                    [[self.tagger componentsSeparatedByCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] firstObject],\n                                    message.length > kTruncatedDescriptionThreshold ? [message substringToIndex:kTruncatedDescriptionThreshold] : message,\n                                    message.length > kTruncatedDescriptionThreshold ? @\"...\" : @\"\"];\n}\n\n@end\n\n@implementation GCTagAnnotation (Extensions)\n\n- (BOOL)isEqualToTagAnnotation:(GCTagAnnotation*)annotation {\n  return [self isEqualToObject:annotation];\n}\n\n@end\n\n@implementation GCTag\n\n#if DEBUG\n\n- (void)updateReference:(git_reference*)reference {\n  XLOG_DEBUG_CHECK(git_reference_is_tag(reference));\n  XLOG_DEBUG_CHECK(git_reference_type(reference) == GIT_REF_OID);\n  [super updateReference:reference];\n}\n\n#endif\n\n@end\n\n@implementation GCTag (Extensions)\n\n- (BOOL)isEqualToTag:(GCTag*)tag {\n  return [self isEqualToReference:tag];\n}\n\n@end\n\n@implementation GCRepository (GCTag)\n\n+ (BOOL)isValidTagName:(NSString*)name {\n  return (git_reference_is_valid_name([[@kTagsNamespace stringByAppendingString:name] UTF8String]) == 1);\n}\n\n#pragma mark - Browsing\n\n- (GCTag*)findTagWithName:(NSString*)name error:(NSError**)error {\n  return [self findReferenceWithFullName:[@kTagsNamespace stringByAppendingString:name] class:[GCTag class] error:error];\n}\n\n- (NSArray*)listTags:(NSError**)error {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  BOOL success = [self enumerateReferencesWithOptions:kGCReferenceEnumerationOption_RetainReferences\n                                                error:error\n                                           usingBlock:^BOOL(git_reference* reference) {\n                                             if (git_reference_is_tag(reference)) {\n                                               GCTag* tag = [[GCTag alloc] initWithRepository:self reference:reference];\n                                               [array addObject:tag];\n                                             } else {\n                                               git_reference_free(reference);\n                                             }\n                                             return YES;\n                                           }];\n  return success ? array : nil;\n}\n\n#pragma mark - Utilities\n\n- (GCCommit*)lookupCommitForTag:(GCTag*)tag annotation:(GCTagAnnotation**)annotation error:(NSError**)error {\n  git_object* object = NULL;\n  GCCommit* commit = nil;\n\n  if (![self refreshReference:tag error:error]) {\n    goto cleanup;\n  }\n  git_oid oid;\n  if (![self loadTargetOID:&oid fromReference:tag.private error:error]) {\n    goto cleanup;\n  }\n  CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_object_lookup, &object, self.private, &oid, GIT_OBJ_ANY);\n  if (git_object_type(object) == GIT_OBJ_COMMIT) {\n    commit = [[GCCommit alloc] initWithRepository:self commit:(git_commit*)object];\n    object = NULL;\n    if (annotation) {\n      *annotation = nil;\n    }\n  } else if (git_object_type(object) == GIT_OBJ_TAG) {\n    git_object* peeledObject;\n    CALL_LIBGIT2_FUNCTION_GOTO(cleanup, git_object_peel, &peeledObject, object, GIT_OBJ_COMMIT);\n    commit = [[GCCommit alloc] initWithRepository:self commit:(git_commit*)peeledObject];\n    if (annotation) {\n      *annotation = [[GCTagAnnotation alloc] initWithRepository:self tag:(git_tag*)object];\n      object = NULL;\n    }\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n    GC_SET_GENERIC_ERROR(@\"Unexpected reference target\");\n  }\n\ncleanup:\n  git_object_free(object);\n  return commit;\n}\n\n#pragma mark - Editing\n\n- (GCTag*)_createTagReference:(const git_oid*)oid name:(NSString*)name force:(BOOL)force error:(NSError**)error {\n  const char* refName = [[@kTagsNamespace stringByAppendingString:name] UTF8String];\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_reference_create, &reference, self.private, refName, oid, force, NULL);  // Use default reflog message for tag references\n  return [[GCTag alloc] initWithRepository:self reference:reference];\n}\n\n// Re-implementation of git_tag_create_lightweight()\n- (GCTag*)createLightweightTagWithCommit:(GCCommit*)commit name:(NSString*)name force:(BOOL)force error:(NSError**)error {\n  return [self _createTagReference:git_commit_id(commit.private) name:name force:force error:error];\n}\n\n- (GCTag*)createAnnotatedTagWithAnnotation:(GCTagAnnotation*)annotation force:(BOOL)force error:(NSError**)error {\n  return [self _createTagReference:git_tag_id(annotation.private) name:annotation.name force:force error:error];\n}\n\n// Re-implementation of git_tag_create()\n- (GCTag*)createAnnotatedTagWithCommit:(GCCommit*)commit name:(NSString*)name message:(NSString*)message force:(BOOL)force annotation:(GCTagAnnotation**)annotation error:(NSError**)error {\n  if (message.length == 0) {\n    GC_SET_GENERIC_ERROR(@\"Message cannot be an empty string\");\n    return nil;\n  }\n\n  git_oid oid;\n  git_signature* signature;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_signature_default, &signature, self.private);\n  int status = git_tag_annotation_create(&oid, self.private, name.UTF8String, (git_object*)commit.private, signature, GCCleanedUpCommitMessage(message).bytes);  // Use default signature - This uses the tag name not reference name\n  git_signature_free(signature);\n  CHECK_LIBGIT2_FUNCTION_CALL(return nil, status, == GIT_OK);\n  git_tag* object;\n  CALL_LIBGIT2_FUNCTION_RETURN(nil, git_tag_lookup, &object, self.private, &oid);\n  GCTag* tag = [self _createTagReference:&oid name:name force:force error:error];\n  if (annotation) {\n    *annotation = [[GCTagAnnotation alloc] initWithRepository:self tag:object];\n  } else {\n    git_tag_free(object);\n  }\n  return tag;\n}\n\n// Contrary to branches, tags don't carry extra metadata so we can use git_reference_rename()\n- (BOOL)setName:(NSString*)name forTag:(GCTag*)tag force:(BOOL)force error:(NSError**)error {\n  const char* refName = [[@kTagsNamespace stringByAppendingString:name] UTF8String];\n  git_reference* reference;\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reference_rename, &reference, tag.private, refName, force, NULL);  // Use default reflog message for tag reference renames\n  [tag updateReference:reference];\n  return YES;  // No need to deal with reflog since we are updating a tag\n}\n\n// Re-implementation of git_tag_delete()\n- (BOOL)deleteTag:(GCTag*)tag error:(NSError**)error {\n  if (![self refreshReference:tag error:error]) {  // Works around \"old reference value does not match\" errors if underlying reference is out of sync\n    return NO;\n  }\n  CALL_LIBGIT2_FUNCTION_RETURN(NO, git_reference_delete, tag.private);\n  return YES;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCTestCase.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <XCTest/XCTest.h>\n\n#import \"GCPrivate.h\"\n\n#pragma clang diagnostic ignored \"-Wgnu-zero-variadic-macro-arguments\"\n#pragma clang diagnostic ignored \"-Wsign-compare\"\n\n@interface GCTestCase : XCTestCase\n@property(nonatomic, readonly, getter=isBotMode) BOOL botMode;\n- (GCRepository*)createLocalRepositoryAtPath:(NSString*)path bare:(BOOL)bare;\n- (void)destroyLocalRepository:(GCRepository*)repository;\n- (NSString*)runGitCLTWithRepository:(GCRepository*)repository command:(NSString*)command, ... NS_REQUIRES_NIL_TERMINATION;\n@end\n\n@interface GCTestCase (Extensions)\n- (void)assertGitCLTOutputEqualsString:(NSString*)string withRepository:(GCRepository*)repository command:(NSString*)command, ... NS_REQUIRES_NIL_TERMINATION;\n- (void)assertGitCLTOutputContainsString:(NSString*)string withRepository:(GCRepository*)repository command:(NSString*)command, ... NS_REQUIRES_NIL_TERMINATION;\n- (void)assertGitCLTOutputEndsWithString:(NSString*)string withRepository:(GCRepository*)repository command:(NSString*)command, ... NS_REQUIRES_NIL_TERMINATION;\n@end\n\n@interface GCTests : GCTestCase\n@end\n\n@interface GCEmptyRepositoryTestCase : GCTestCase\n@property(nonatomic, readonly) NSString* temporaryPath;\n@property(nonatomic, readonly) GCRepository* repository;\n@end\n\n@interface GCEmptyRepositoryTestCase (Extensions)\n- (void)updateFileAtPath:(NSString*)path withString:(NSString*)string;\n- (void)deleteFileAtPath:(NSString*)path;\n- (GCCommit*)makeCommitWithUpdatedFileAtPath:(NSString*)path string:(NSString*)string message:(NSString*)message;\n- (GCCommit*)makeCommitWithDeletedFileAtPath:(NSString*)path message:(NSString*)message;\n- (void)assertContentsOfFileAtPath:(NSString*)path equalsString:(NSString*)string;\n@end\n\n@interface GCEmptyLiveRepositoryTestCase : GCEmptyRepositoryTestCase <GCLiveRepositoryDelegate>\n@property(nonatomic, readonly) GCLiveRepository* liveRepository;\n@end\n\n@interface GCEmptyRepositoryTests : GCEmptyRepositoryTestCase\n@end\n\n/*\n  c0 (master)\n*/\n@interface GCSingleCommitRepositoryTestCase : GCEmptyRepositoryTestCase\n@property(nonatomic, readonly) GCLocalBranch* masterBranch;\n@property(nonatomic, readonly) GCCommit* initialCommit;\n@end\n\n@interface GCSingleCommitRepositoryTests : GCSingleCommitRepositoryTestCase\n@end\n\n/*\n  c0 -> c1 -> c2 -> c3 (master)\n   \\\n    \\-> cA (topic)\n*/\n@interface GCMultipleCommitsRepositoryTestCase : GCSingleCommitRepositoryTestCase\n@property(nonatomic, readonly) GCLocalBranch* topicBranch;\n@property(nonatomic, readonly) GCCommit* commit1;\n@property(nonatomic, readonly) GCCommit* commit2;\n@property(nonatomic, readonly) GCCommit* commit3;\n@property(nonatomic, readonly) GCCommit* commitA;\n@end\n\n@interface GCMultipleCommitsRepositoryTests : GCMultipleCommitsRepositoryTestCase\n@end\n\n@interface GCSQLiteRepositoryTestCase : GCTestCase\n@property(nonatomic, readonly) GCSQLiteRepository* repository;\n@property(nonatomic, readonly) NSString* databasePath;\n@property(nonatomic, readonly) NSString* configPath;\n@end\n\n@interface GCSQLiteRepositoryTests : GCSQLiteRepositoryTestCase\n@end\n"
  },
  {
    "path": "GitUpKit/Core/GCTestCase.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <objc/runtime.h>\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n#define kGitCLTPath @\"/usr/bin/git\"\n\nstatic const void* _associatedObjectKey = &_associatedObjectKey;\n\n@implementation GCTestCase\n\n- (void)setUp {\n  [super setUp];\n\n  // Figure out if running via GitHub Actions. This runner value is the user used by GitHub Actions.\n  _botMode = [NSProcessInfo.processInfo.environment[@\"USER\"] isEqualToString:@\"runner\"];\n}\n\n- (GCRepository*)createLocalRepositoryAtPath:(NSString*)path bare:(BOOL)bare {\n  GCRepository* repo = [[GCRepository alloc] initWithNewLocalRepository:path bare:bare defaultBranchName:@\"master\" error:NULL];\n  XCTAssertNotNil(repo);\n\n  NSString* configDirectory = [[NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]] stringByAppendingPathComponent:@\"git\"];\n  XCTAssertTrue([[NSFileManager defaultManager] createDirectoryAtPath:configDirectory withIntermediateDirectories:YES attributes:nil error:NULL]);\n  NSString* configPath = [configDirectory stringByAppendingPathComponent:@\"config\"];\n  NSString* configString = @\"[user]\\n\\\n  name = Bot\\n\\\n  email = bot@example.com\\n\\\n\";\n  XCTAssertTrue([configString writeToFile:configPath atomically:YES encoding:NSASCIIStringEncoding error:NULL]);\n\n  git_config* config;\n  XCTAssertEqual(git_config_new(&config), GIT_OK);\n  if (!repo.bare) {\n    XCTAssertEqual(git_config_add_file_ondisk(config, [[repo.repositoryPath stringByAppendingPathComponent:@\"config\"] fileSystemRepresentation], GIT_CONFIG_LEVEL_LOCAL, repo.private, true), GIT_OK);\n  }\n  XCTAssertEqual(git_config_add_file_ondisk(config, configPath.fileSystemRepresentation, GIT_CONFIG_LEVEL_APP, repo.private, true), GIT_OK);\n  git_repository_set_config(repo.private, config);\n  git_config_free(config);\n\n  objc_setAssociatedObject(repo, _associatedObjectKey, [configDirectory stringByDeletingLastPathComponent], OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n\n  return repo;\n}\n\n- (void)destroyLocalRepository:(GCRepository*)repository {\n  XCTAssert([[NSFileManager defaultManager] removeItemAtPath:(repository.bare ? repository.repositoryPath : repository.workingDirectoryPath) error:NULL]);\n}\n\n- (NSString*)_runCLTWithPath:(NSString*)path arguments:(NSArray*)arguments currentDirectory:(NSString*)currentDirectory environment:(NSDictionary*)environment {\n  GCTask* task = [[GCTask alloc] initWithExecutablePath:path];\n  task.currentDirectoryPath = currentDirectory;\n  task.additionalEnvironment = environment;\n  NSData* data;\n  return [task runWithArguments:arguments stdin:nil stdout:&data stderr:NULL exitStatus:NULL error:NULL] ? [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding] : nil;\n}\n\n- (NSString*)_runGitCLTWithRepository:(GCRepository*)repository command:(NSString*)command arguments:(va_list)arguments {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  for (NSString* arg = command; arg != nil; arg = va_arg(arguments, NSString*)) {\n    [array addObject:arg];\n  }\n  return [self _runCLTWithPath:kGitCLTPath\n                     arguments:array\n              currentDirectory:(repository ? (repository.bare ? repository.repositoryPath : repository.workingDirectoryPath) : [[NSFileManager defaultManager] currentDirectoryPath])\n              environment:(repository ? @{@\"XDG_CONFIG_HOME\" : objc_getAssociatedObject(repository, _associatedObjectKey)} : @{})];\n}\n\n- (NSString*)runGitCLTWithRepository:(GCRepository*)repository command:(NSString*)command, ... {\n  va_list arguments;\n  va_start(arguments, command);\n  NSString* result = [self _runGitCLTWithRepository:repository command:command arguments:arguments];\n  va_end(arguments);\n  return result;\n}\n\n@end\n\n@implementation GCTestCase (Extensions)\n\n- (void)assertGitCLTOutputEqualsString:(NSString*)string withRepository:(GCRepository*)repository command:(NSString*)command, ... {\n  va_list arguments;\n  va_start(arguments, command);\n  NSString* result = [self _runGitCLTWithRepository:repository command:command arguments:arguments];\n  va_end(arguments);\n  XCTAssertTrue([result isEqualToString:string]);\n}\n\n- (void)assertGitCLTOutputContainsString:(NSString*)string withRepository:(GCRepository*)repository command:(NSString*)command, ... {\n  va_list arguments;\n  va_start(arguments, command);\n  NSString* result = [self _runGitCLTWithRepository:repository command:command arguments:arguments];\n  va_end(arguments);\n  XCTAssertTrue([result containsString:string]);\n}\n\n- (void)assertGitCLTOutputEndsWithString:(NSString*)string withRepository:(GCRepository*)repository command:(NSString*)command, ... {\n  va_list arguments;\n  va_start(arguments, command);\n  NSString* result = [self _runGitCLTWithRepository:repository command:command arguments:arguments];\n  va_end(arguments);\n  XCTAssertTrue([result hasSuffix:string]);\n}\n\n@end\n\n@implementation GCTests\n@end\n\n@implementation GCEmptyRepositoryTestCase\n\n- (void)setUp {\n  [super setUp];\n\n  // Create working directory\n  if (self.botMode) {\n    _temporaryPath = [NSString stringWithFormat:@\"/tmp/gitup-%i\", getpid()];\n  } else {\n    _temporaryPath = @\"/tmp/gitup\";\n  }\n  if ([[NSFileManager defaultManager] fileExistsAtPath:_temporaryPath followLastSymlink:NO]) {\n    XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:_temporaryPath error:NULL]);\n  }\n  XCTAssertTrue([[NSFileManager defaultManager] createDirectoryAtPath:_temporaryPath withIntermediateDirectories:NO attributes:nil error:NULL]);\n\n  // Initialize new repository\n  _repository = [self createLocalRepositoryAtPath:_temporaryPath bare:NO];\n  XCTAssertNotNil(_repository);\n}\n\n- (void)tearDown {\n  // Destroy repository\n  [self destroyLocalRepository:_repository];\n  _repository = nil;\n  _temporaryPath = nil;\n\n  [super tearDown];\n}\n\n@end\n\n@implementation GCEmptyRepositoryTestCase (Extensions)\n\n- (void)updateFileAtPath:(NSString*)path withString:(NSString*)string {\n  XCTAssertTrue([string writeToFile:[_repository.workingDirectoryPath stringByAppendingPathComponent:path] atomically:YES encoding:NSUTF8StringEncoding error:NULL]);\n}\n\n- (void)deleteFileAtPath:(NSString*)path {\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[_repository.workingDirectoryPath stringByAppendingPathComponent:path] error:NULL]);\n}\n\n- (GCCommit*)makeCommitWithUpdatedFileAtPath:(NSString*)path string:(NSString*)string message:(NSString*)message {\n  [self updateFileAtPath:path withString:string];\n  XCTAssertTrue([self.repository addFileToIndex:path error:NULL]);\n  GCCommit* commit = [self.repository createCommitFromHEADWithMessage:message error:NULL];\n  XCTAssertNotNil(commit);\n  return commit;\n}\n\n- (GCCommit*)makeCommitWithDeletedFileAtPath:(NSString*)path message:(NSString*)message {\n  [self deleteFileAtPath:path];\n  XCTAssertTrue([self.repository removeFileFromIndex:path error:NULL]);\n  GCCommit* commit = [self.repository createCommitFromHEADWithMessage:message error:NULL];\n  XCTAssertNotNil(commit);\n  return commit;\n}\n\n- (void)assertContentsOfFileAtPath:(NSString*)path equalsString:(NSString*)string {\n  NSString* contents = [NSString stringWithContentsOfFile:[self.repository.workingDirectoryPath stringByAppendingPathComponent:path] encoding:NSUTF8StringEncoding error:NULL];\n  XCTAssertEqualObjects(contents, string);\n}\n\n@end\n\n@implementation GCEmptyRepositoryTests\n@end\n\n@implementation GCEmptyLiveRepositoryTestCase\n\n- (GCLiveRepository*)liveRepository {\n  return (GCLiveRepository*)self.repository;\n}\n\n- (GCRepository*)createLocalRepositoryAtPath:(NSString*)path bare:(BOOL)bare {\n  GCLiveRepository* repo = [[GCLiveRepository alloc] initWithNewLocalRepository:path bare:bare defaultBranchName:@\"master\" error:NULL];\n  XCTAssertNotNil(repo);\n\n  repo.delegate = self;\n\n  NSString* configDirectory = [[NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]] stringByAppendingPathComponent:@\"git\"];\n  XCTAssertTrue([[NSFileManager defaultManager] createDirectoryAtPath:configDirectory withIntermediateDirectories:YES attributes:nil error:NULL]);\n  NSString* configPath = [configDirectory stringByAppendingPathComponent:@\"config\"];\n  NSString* configString = @\"[user]\\n\\\n  name = Bot\\n\\\n  email = bot@example.com\\n\\\n\";\n  XCTAssertTrue([configString writeToFile:configPath atomically:YES encoding:NSASCIIStringEncoding error:NULL]);\n\n  git_config* config;\n  XCTAssertEqual(git_config_new(&config), GIT_OK);\n  if (!repo.bare) {\n    XCTAssertEqual(git_config_add_file_ondisk(config, [[repo.repositoryPath stringByAppendingPathComponent:@\"config\"] fileSystemRepresentation], GIT_CONFIG_LEVEL_LOCAL, repo.private, true), GIT_OK);\n  }\n  XCTAssertEqual(git_config_add_file_ondisk(config, configPath.fileSystemRepresentation, GIT_CONFIG_LEVEL_APP, repo.private, true), GIT_OK);\n  git_repository_set_config(repo.private, config);\n  git_config_free(config);\n\n  objc_setAssociatedObject(repo, _associatedObjectKey, [configDirectory stringByDeletingLastPathComponent], OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n\n  return repo;\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTestCase\n\n- (void)setUp {\n  [super setUp];\n\n  // Make commits\n  _initialCommit = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Hello World!\\n\" message:@\"Initial commit\"];\n\n  // Look up HEAD\n  GCLocalBranch* branch;  // Use local variable to work around ARC limitation\n  GCCommit* commit = [self.repository lookupHEAD:&branch error:NULL];\n  XCTAssertEqualObjects(commit, _initialCommit);\n  XCTAssertEqualObjects(branch.name, @\"master\");\n  _masterBranch = branch;\n}\n\n- (void)tearDown {\n  _masterBranch = nil;\n  _initialCommit = nil;\n\n  [super tearDown];\n}\n\n@end\n\n@implementation GCSingleCommitRepositoryTests\n@end\n\n@implementation GCMultipleCommitsRepositoryTestCase\n\n- (void)setUp {\n  [super setUp];\n\n  // Make commits\n  _commit1 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Bonjour Monde!\\n\" message:@\"1\"];\n  _commit2 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Gutentag Welt!\\n\" message:@\"2\"];\n  _commit3 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Hola Mundo!\\n\" message:@\"3\"];\n\n  // Create topic branch\n  _topicBranch = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(_topicBranch);\n\n  // Make commit on topic branch\n  XCTAssertTrue([self.repository checkoutLocalBranch:_topicBranch options:0 error:NULL]);\n  _commitA = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"Goodbye World!\\n\" message:@\"A\"];\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n}\n\n- (void)tearDown {\n  _topicBranch = nil;\n  _commit1 = nil;\n  _commit2 = nil;\n  _commit3 = nil;\n  _commitA = nil;\n\n  [super tearDown];\n}\n\n@end\n\n@implementation GCMultipleCommitsRepositoryTests\n@end\n\n@implementation GCSQLiteRepositoryTestCase\n\n- (void)setUp {\n  [super setUp];\n\n  NSString* path;\n  if (self.botMode) {\n    path = [NSString stringWithFormat:@\"/tmp/sqlite-repository-%i\", getpid()];\n  } else {\n    path = @\"/tmp/sqlite-repository\";\n  }\n  _configPath = [path stringByAppendingPathExtension:@\"config\"];\n  _databasePath = [path stringByAppendingPathExtension:@\"db\"];\n  [[NSFileManager defaultManager] removeItemAtPath:_databasePath error:NULL];\n  NSString* configString = @\"[user]\\n\\\n\tname = Bot\\n\\\n\temail = bot@example.com\\n\\\n\";\n  XCTAssertTrue([configString writeToFile:_configPath atomically:YES encoding:NSASCIIStringEncoding error:NULL]);\n  _repository = [[GCSQLiteRepository alloc] initWithDatabase:_databasePath config:_configPath localRepositoryContents:nil error:NULL];\n  XCTAssertNotNil(_repository);\n  XCTAssertTrue(_repository.bare);\n  XCTAssertTrue(_repository.empty);\n}\n\n- (void)tearDown {\n  _repository = nil;\n  if ([[NSFileManager defaultManager] fileExistsAtPath:_configPath isDirectory:NULL]) {\n    XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:_configPath error:NULL]);\n  }\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:_databasePath error:NULL]);\n\n  [super tearDown];\n}\n\n@end\n\n@implementation GCSQLiteRepositoryTests\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCHistory+Rewrite-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCHistory+Rewrite.h\"\n#import \"GCRepository+Utilities.h\"\n\n// TODO: Test updating detached HEAD and references\n@implementation GCSingleCommitRepositoryTests (GCHistory_Rewrite)\n\n/*\n  c0 -> c1 -> c2 -> c3 (master)\n   \\\n    \\-> c4 (topic)\n*/\n- (void)testRewrite {\n  GCReferenceTransform* transform;\n\n  // Make a commit\n  GCCommit* commit1 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"A\\n\\nB\\n\\nC\\n\" message:@\"1\"];\n\n  // Make another commit\n  GCCommit* commit2 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"A\\n\\nB'\\n\\nC\\n\" message:@\"2\"];\n\n  // Make another commit\n  GCCommit* commit3 = [self makeCommitWithUpdatedFileAtPath:@\"hello_world.txt\" string:@\"A\\n\\nB'\\n\\nC'\\n\" message:@\"3\"];\n\n  // Create topic branch with temp commit\n  GCLocalBranch* topicBranch = [self.repository createLocalBranchFromCommit:self.initialCommit withName:@\"topic\" force:NO error:NULL];\n  XCTAssertNotNil(topicBranch);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n  GCCommit* commit4 = [self makeCommitWithUpdatedFileAtPath:@\"test.txt\" string:@\"TEST\" message:@\"T\"];\n  XCTAssertTrue([self.repository checkoutLocalBranch:self.masterBranch options:0 error:NULL]);\n\n  // Load history\n  GCHistory* history = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history);\n\n  // Edit commit message\n  GCCommit* newCommit = [self.repository copyCommit:commit1 withUpdatedMessage:@\"TEST\" updatedParents:nil updatedTreeFromIndex:nil updateCommitter:YES error:NULL];\n  XCTAssertNotNil(newCommit);\n  transform = [history rewriteCommit:[history historyCommitForCommit:commit1] withUpdatedCommit:newCommit copyTrees:YES conflictHandler:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"3\\n2\\nTEST\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Delete commit\n  transform = [history deleteCommit:[history historyCommitForCommit:commit2] withConflictHandler:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"3\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB\\n\\nC'\\n\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Fixup commit\n  transform = [history fixupCommit:[history historyCommitForCommit:commit2] newCommit:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"3\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Squash commit\n  transform = [history squashCommit:[history historyCommitForCommit:commit2] withMessage:@\"TEST\" newCommit:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"3\\nTEST\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Swap commits\n  GCCommit* commitA;\n  GCCommit* commitB;\n  transform = [history swapCommitWithItsParent:[history historyCommitForCommit:commit3] conflictHandler:NULL newChildCommit:&commitA newParentCommit:&commitB error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertNotNil(commitA);\n  XCTAssertNotNil(commitB);\n  [self assertGitCLTOutputEqualsString:@\"2\\n3\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Revert commit\n  transform = [history revertCommit:[history historyCommitForCommit:commit3] againstBranch:history.localBranches[0] withMessage:@\"R\" conflictHandler:NULL newCommit:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"R\\n3\\n2\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC\\n\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Cherry-pick commit\n  transform = [history cherryPickCommit:[history historyCommitForCommit:commit4] againstBranch:history.localBranches[0] withMessage:@\"T\" conflictHandler:NULL newCommit:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"T\\n3\\n2\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n  [self assertContentsOfFileAtPath:@\"test.txt\" equalsString:@\"TEST\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Fast-forward\n  transform = [history fastForwardBranch:history.localBranches[0] toCommit:[history historyCommitForCommit:commit4] error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"T\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"Hello World!\\n\"];\n  [self assertContentsOfFileAtPath:@\"test.txt\" equalsString:@\"TEST\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n\n  // Merge commit\n  GCCommit* ancestorCommit = [self.repository findMergeBaseForCommits:@[ [history.localBranches[0] tipCommit], commit4 ] error:NULL];\n  XCTAssertNotNil(ancestorCommit);\n  transform = [history mergeCommit:[history historyCommitForCommit:commit4] intoBranch:history.localBranches[0] withAncestorCommit:[history historyCommitForCommit:ancestorCommit] message:@\"M\" conflictHandler:NULL newCommit:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"M\\nT\\n3\\n2\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", @\"--topo-order\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n  [self assertContentsOfFileAtPath:@\"test.txt\" equalsString:@\"TEST\"];\n\n  // Reset\n  XCTAssertTrue([self.repository resetToCommit:commit3 mode:kGCResetMode_Hard error:NULL]);\n  XCTAssertTrue([self.repository checkoutLocalBranch:topicBranch options:0 error:NULL]);\n\n  // Rebase commit\n  GCCommit* fromCommit = [self.repository findMergeBaseForCommits:@[ [history.localBranches[1] tipCommit], commit3 ] error:NULL];\n  XCTAssertNotNil(fromCommit);\n  transform = [history rebaseBranch:history.localBranches[1] fromCommit:[history historyCommitForCommit:fromCommit] ontoCommit:[history historyCommitForCommit:commit3] conflictHandler:NULL newTipCommit:NULL error:NULL];\n  XCTAssertNotNil(transform);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform error:NULL]);\n  XCTAssertTrue([self.repository forceCheckoutHEAD:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"T\\n3\\n2\\n1\\nInitial commit\" withRepository:self.repository command:@\"log\", @\"--pretty=format:%s\", nil];\n  [self assertContentsOfFileAtPath:@\"hello_world.txt\" equalsString:@\"A\\n\\nB'\\n\\nC'\\n\"];\n  [self assertContentsOfFileAtPath:@\"test.txt\" equalsString:@\"TEST\"];\n}\n\n@end\n\n@implementation GCEmptyRepositoryTests (GCHistory_Rewrite)\n\n/*\n  0---1----2----4----7 (master)\n       \\         \\\n        3----5----6----8----9----10 (topic)\n*/\n- (void)testSwapCommits {\n  // Create commit history\n  NSArray* commits = [self.repository createMockCommitHierarchyFromNotation:@\"0 1(0) 2(1) 3(1) 4(2) 5(3) 6(5,4) 7(4)<master> 8(6) 9(8) 10(9)<topic>\" force:NO error:NULL];\n  XCTAssertNotNil(commits);\n  GCHistory* history0 = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history0);\n  GCSnapshot* snapshot = [self.repository takeSnapshot:NULL];\n  XCTAssertNotNil(snapshot);\n\n  // Swap 0\n  XCTAssertNil([history0 swapCommitWithItsParent:[history0 mockCommitWithName:@\"0\"] conflictHandler:NULL newChildCommit:NULL newParentCommit:NULL error:NULL]);\n\n  // Swap 1\n  XCTAssertNil([history0 swapCommitWithItsParent:[history0 mockCommitWithName:@\"1\"] conflictHandler:NULL newChildCommit:NULL newParentCommit:NULL error:NULL]);\n\n  // Swap 9 and 8\n  GCReferenceTransform* transform1 = [history0 swapCommitWithItsParent:[history0 mockCommitWithName:@\"9\"] conflictHandler:NULL newChildCommit:NULL newParentCommit:NULL error:NULL];\n  XCTAssertNotNil(transform1);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform1 error:NULL]);\n  GCHistory* history1 = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history1);\n  XCTAssertEqualObjects([history1 notationFromMockCommitHierarchy], @\"0 1(0) 2(1) 3(1) 4(2) 5(3) 6(5,4) 7(4)<master> 8(9) 9(6) 10(8)<topic>\");\n\n  // Reset\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot withOptions:kGCSnapshotOption_IncludeAll reflogMessage:nil didUpdateReferences:NULL error:NULL]);\n\n  // Swap 10 and 9\n  GCReferenceTransform* transform2 = [history0 swapCommitWithItsParent:[history0 mockCommitWithName:@\"10\"] conflictHandler:NULL newChildCommit:NULL newParentCommit:NULL error:NULL];\n  XCTAssertNotNil(transform2);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform2 error:NULL]);\n  GCHistory* history2 = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history2);\n  XCTAssertEqualObjects([history2 notationFromMockCommitHierarchy], @\"0 1(0) 2(1) 3(1) 4(2) 5(3) 6(5,4) 7(4)<master> 8(6) 9(10)<topic> 10(8)\");\n\n  // Reset\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot withOptions:kGCSnapshotOption_IncludeAll reflogMessage:nil didUpdateReferences:NULL error:NULL]);\n\n  // Swap 7 and 4\n  GCReferenceTransform* transform3 = [history0 swapCommitWithItsParent:[history0 mockCommitWithName:@\"7\"] conflictHandler:NULL newChildCommit:NULL newParentCommit:NULL error:NULL];\n  XCTAssertNotNil(transform3);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform3 error:NULL]);\n  GCHistory* history3 = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history3);\n  XCTAssertEqualObjects([history3 notationFromMockCommitHierarchy], @\"0 1(0) 2(1) 3(1) 4(7)<master> 5(3) 6(5,7) 7(2) 8(6) 9(8) 10(9)<topic>\");\n\n  // Reset\n  XCTAssertTrue([self.repository restoreSnapshot:snapshot withOptions:kGCSnapshotOption_IncludeAll reflogMessage:nil didUpdateReferences:NULL error:NULL]);\n\n  // Swap 2 and 1\n  GCReferenceTransform* transform4 = [history0 swapCommitWithItsParent:[history0 mockCommitWithName:@\"2\"] conflictHandler:NULL newChildCommit:NULL newParentCommit:NULL error:NULL];\n  XCTAssertNotNil(transform4);\n  XCTAssertTrue([self.repository applyReferenceTransform:transform4 error:NULL]);\n  GCHistory* history4 = [self.repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history4);\n  XCTAssertEqualObjects([history4 notationFromMockCommitHierarchy], @\"0 1(2) 2(0) 3(2) 4(1) 5(3) 6(5,4) 7(4)<master> 8(6) 9(8) 10(9)<topic>\");\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCHistory+Rewrite.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCCore.h\"\n\n@interface GCHistory (Rewrite)\n- (BOOL)isCommitOnAnyLocalBranch:(GCHistoryCommit*)commit;\n\n- (GCReferenceTransform*)revertCommit:(GCHistoryCommit*)commit\n                        againstBranch:(GCHistoryLocalBranch*)branch\n                          withMessage:(NSString*)message\n                      conflictHandler:(GCConflictHandler)handler\n                            newCommit:(GCCommit**)newCommit\n                                error:(NSError**)error;\n- (GCReferenceTransform*)cherryPickCommit:(GCHistoryCommit*)commit\n                            againstBranch:(GCHistoryLocalBranch*)branch\n                              withMessage:(NSString*)message\n                          conflictHandler:(GCConflictHandler)handler\n                                newCommit:(GCCommit**)newCommit\n                                    error:(NSError**)error;\n\n- (GCReferenceTransform*)fastForwardBranch:(GCHistoryLocalBranch*)branch\n                                  toCommit:(GCHistoryCommit*)commit\n                                     error:(NSError**)error;\n- (GCReferenceTransform*)mergeCommit:(GCHistoryCommit*)commit\n                          intoBranch:(GCHistoryLocalBranch*)branch\n                  withAncestorCommit:(GCHistoryCommit*)ancestorCommit\n                             message:(NSString*)message\n                     conflictHandler:(GCConflictHandler)handler\n                           newCommit:(GCCommit**)newCommit\n                               error:(NSError**)error;\n- (GCReferenceTransform*)rebaseBranch:(GCHistoryLocalBranch*)branch\n                           fromCommit:(GCHistoryCommit*)fromCommit\n                           ontoCommit:(GCHistoryCommit*)commit\n                      conflictHandler:(GCConflictHandler)handler\n                         newTipCommit:(GCCommit**)newTipCommit\n                                error:(NSError**)error;\n\n- (GCReferenceTransform*)rewriteCommit:(GCHistoryCommit*)commit\n                     withUpdatedCommit:(GCCommit*)updatedCommit\n                             copyTrees:(BOOL)copyTrees\n                       conflictHandler:(GCConflictHandler)handler\n                                 error:(NSError**)error;\n- (GCReferenceTransform*)deleteCommit:(GCHistoryCommit*)commit\n                  withConflictHandler:(GCConflictHandler)handler\n                                error:(NSError**)error;\n- (GCReferenceTransform*)fixupCommit:(GCHistoryCommit*)commit\n                           newCommit:(GCCommit**)newCommit\n                               error:(NSError**)error;\n- (GCReferenceTransform*)squashCommit:(GCHistoryCommit*)commit\n                          withMessage:(NSString*)message\n                            newCommit:(GCCommit**)newCommit\n                                error:(NSError**)error;\n- (GCReferenceTransform*)swapCommitWithItsParent:(GCHistoryCommit*)commit\n                                 conflictHandler:(GCConflictHandler)handler\n                                  newChildCommit:(GCCommit**)newChildCommit\n                                 newParentCommit:(GCCommit**)newParentCommit\n                                           error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCHistory+Rewrite.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCHistory+Rewrite.h\"\n\n#import \"XLFacilityMacros.h\"\n\ntypedef NS_ENUM(NSUInteger, ReplayMode) {\n  kReplayMode_CopyTrees = 0,\n  kReplayMode_ApplyPatches,\n  kReplayMode_ApplyNewPatchesOnly\n};\n\n@implementation GCHistory (GCRewrite)\n\n- (BOOL)isCommitOnAnyLocalBranch:(GCHistoryCommit*)commit {\n  if (commit.localBranches.count) {\n    return YES;\n  }\n  __block BOOL result = NO;\n  [self walkDescendantsOfCommits:@[ commit ]\n                      usingBlock:^(GCHistoryCommit* descendantCommit, BOOL* stop) {\n                        if (descendantCommit.localBranches.count) {\n                          result = YES;\n                          *stop = YES;\n                        }\n                      }];\n  return result;\n}\n\n- (GCReferenceTransform*)revertCommit:(GCHistoryCommit*)commit\n                        againstBranch:(GCHistoryLocalBranch*)branch\n                          withMessage:(NSString*)message\n                      conflictHandler:(GCConflictHandler)handler\n                            newCommit:(GCCommit**)newCommit\n                                error:(NSError**)error {\n  GCCommit* revertedCommit = [self.repository revertCommit:commit againstCommit:branch.tipCommit withAncestorCommit:commit.parents.firstObject message:message conflictHandler:handler error:error];\n  if (revertedCommit == nil) {\n    return nil;\n  }\n\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Revert, commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [transform setDirectTarget:revertedCommit forReference:branch];\n  if (newCommit) {\n    *newCommit = revertedCommit;\n  }\n  return transform;\n}\n\n- (GCReferenceTransform*)cherryPickCommit:(GCHistoryCommit*)commit\n                            againstBranch:(GCHistoryLocalBranch*)branch\n                              withMessage:(NSString*)message\n                          conflictHandler:(GCConflictHandler)handler\n                                newCommit:(GCCommit**)newCommit\n                                    error:(NSError**)error {\n  GCCommit* pickedCommit = [self.repository cherryPickCommit:commit againstCommit:branch.tipCommit withAncestorCommit:commit.parents.firstObject message:message conflictHandler:handler error:error];\n  if (pickedCommit == nil) {\n    return nil;\n  }\n\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_CherryPick, commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [transform setDirectTarget:pickedCommit forReference:branch];\n  if (newCommit) {\n    *newCommit = pickedCommit;\n  }\n  return transform;\n}\n\n- (GCReferenceTransform*)fastForwardBranch:(GCHistoryLocalBranch*)branch\n                                  toCommit:(GCHistoryCommit*)commit\n                                     error:(NSError**)error {\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Merge_FastForward, commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [transform setDirectTarget:commit forReference:branch];\n  return transform;\n}\n\n- (GCReferenceTransform*)mergeCommit:(GCHistoryCommit*)commit\n                          intoBranch:(GCHistoryLocalBranch*)branch\n                  withAncestorCommit:(GCHistoryCommit*)ancestorCommit\n                             message:(NSString*)message\n                     conflictHandler:(GCConflictHandler)handler\n                           newCommit:(GCCommit**)newCommit\n                               error:(NSError**)error {\n  GCCommit* mergedCommit = [self.repository mergeCommit:commit intoCommit:branch.tipCommit withAncestorCommit:ancestorCommit message:message conflictHandler:handler error:error];\n  if (mergedCommit == nil) {\n    return nil;\n  }\n\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Merge, commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [transform setDirectTarget:mergedCommit forReference:branch];\n  if (newCommit) {\n    *newCommit = mergedCommit;\n  }\n  return transform;\n}\n\n- (GCReferenceTransform*)rebaseBranch:(GCHistoryLocalBranch*)branch\n                           fromCommit:(GCHistoryCommit*)fromCommit\n                           ontoCommit:(GCHistoryCommit*)commit\n                      conflictHandler:(GCConflictHandler)handler\n                         newTipCommit:(GCCommit**)newTipCommit\n                                error:(NSError**)error {\n  GCCommit* tipCommit = [self.repository replayMainLineParentsFromCommit:branch.tipCommit uptoCommit:fromCommit ontoCommit:commit preserveMerges:YES updateCommitter:YES skipIdentical:YES conflictHandler:handler error:error];\n  if (tipCommit == nil) {\n    return nil;\n  }\n\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Rebase, commit.shortSHA1, branch.name];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [transform setDirectTarget:tipCommit forReference:branch];\n  if (newTipCommit) {\n    *newTipCommit = tipCommit;\n  }\n  return transform;\n}\n\n- (void)_updateTransform:(GCReferenceTransform*)transform forNewCommit:(GCCommit*)newCommit withBaseCommit:(GCHistoryCommit*)baseCommit {\n  if (self.HEADDetached && [baseCommit isEqualToCommit:self.HEADCommit]) {\n    if (newCommit) {\n      [transform setDirectTargetForHEAD:newCommit];\n    } else {\n      [transform setSymbolicTargetForHEAD:@\"refs/heads/master\"];  // Make HEAD unborn\n    }\n  }\n\n  if (newCommit) {\n    for (GCHistoryLocalBranch* branch in baseCommit.localBranches) {\n      [transform setDirectTarget:newCommit forReference:branch];\n    }\n  } else {\n    for (GCHistoryLocalBranch* branch in baseCommit.localBranches) {\n      [transform deleteReference:branch];\n    }\n  }\n}\n\n// This will only replay descendants leading to local branch tips\n- (BOOL)_replayDescendantsFromCommit:(GCHistoryCommit*)fromCommit\n                          ontoCommit:(GCCommit*)ontoCommit\n                  withInitialMapping:(NSDictionary*)initialMapping\n                      usingTransform:(GCReferenceTransform*)transform\n                          replayMode:(ReplayMode)replayMode\n                     conflictHandler:(GCConflictHandler)handler\n                               error:(NSError**)error {\n  CFMutableDictionaryRef mapping = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, NULL, &kCFTypeDictionaryValueCallBacks);\n  CFDictionarySetValue(mapping, (__bridge const void*)fromCommit, ontoCommit ? (__bridge const void*)ontoCommit : kCFNull);\n  for (GCHistoryCommit* commit in initialMapping) {\n    CFDictionarySetValue(mapping, (__bridge const void*)commit, (__bridge const void*)initialMapping[commit]);\n  }\n  __block BOOL success = YES;\n  [self walkDescendantsOfCommits:@[ fromCommit ]\n                      usingBlock:^(GCHistoryCommit* commit, BOOL* stop) {\n                        if ([self isCommitOnAnyLocalBranch:commit]) {\n                          if (CFDictionaryContainsKey(mapping, (__bridge const void*)commit)) {\n                            return;\n                          }\n\n                          NSMutableArray* parents = [[NSMutableArray alloc] init];\n                          GCHistoryCommit* ancestorCommit = nil;\n                          GCCommit* tipCommit = nil;\n                          for (GCHistoryCommit* parent in commit.parents) {\n                            GCCommit* newParent = CFDictionaryGetValue(mapping, (__bridge const void*)parent);\n                            if ((__bridge void*)newParent != kCFNull) {\n                              if (newParent) {\n                                if (ancestorCommit == nil) {  // Replay on top of first found replayed parent\n                                  ancestorCommit = parent;\n                                  tipCommit = newParent;\n                                }\n                                [parents addObject:newParent];\n                              } else {\n                                [parents addObject:parent];\n                              }\n                            }\n                          }\n                          GCCommit* newCommit;\n                          if (replayMode == kReplayMode_CopyTrees) {\n                            newCommit = [self.repository copyCommit:commit\n                                                 withUpdatedMessage:nil\n                                                     updatedParents:parents\n                                               updatedTreeFromIndex:nil\n                                                    updateCommitter:YES\n                                                              error:error];\n                          } else {\n                            newCommit = [self.repository replayCommit:commit\n                                                           ontoCommit:tipCommit\n                                                   withAncestorCommit:ancestorCommit\n                                                       updatedMessage:nil\n                                                       updatedParents:parents\n                                                      updateCommitter:YES\n                                                        skipIdentical:(replayMode == kReplayMode_ApplyNewPatchesOnly)\n                                                      conflictHandler:handler\n                                                                error:error];\n                          }\n                          if (newCommit == nil) {\n                            success = NO;\n                            *stop = YES;\n                            return;\n                          }\n                          [self _updateTransform:transform forNewCommit:newCommit withBaseCommit:commit];\n                          CFDictionarySetValue(mapping, (__bridge const void*)commit, (__bridge const void*)newCommit);\n                        } else {\n                          XLOG_DEBUG(@\"Skipping replay of commit \\\"%@\\\" (%@) not on local branch\", commit.summary, commit.shortSHA1);\n                        }\n                      }];\n  CFRelease(mapping);\n  return success;\n}\n\n- (GCReferenceTransform*)rewriteCommit:(GCHistoryCommit*)commit\n                     withUpdatedCommit:(GCCommit*)updatedCommit\n                             copyTrees:(BOOL)copyTrees\n                       conflictHandler:(GCConflictHandler)handler\n                                 error:(NSError**)error {\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Rewrite, commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [self _updateTransform:transform forNewCommit:updatedCommit withBaseCommit:commit];\n  if (![self _replayDescendantsFromCommit:commit\n                               ontoCommit:updatedCommit\n                       withInitialMapping:nil\n                           usingTransform:transform\n                               replayMode:(copyTrees ? kReplayMode_CopyTrees : kReplayMode_ApplyPatches)\n                               conflictHandler:handler\n                                    error:error]) {\n    return nil;\n  }\n  return transform;\n}\n\n- (GCReferenceTransform*)deleteCommit:(GCHistoryCommit*)commit\n                  withConflictHandler:(GCConflictHandler)handler\n                                error:(NSError**)error {\n  GCHistoryCommit* newCommit = commit.parents.firstObject;\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Delete, commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [self _updateTransform:transform forNewCommit:newCommit withBaseCommit:commit];\n  if (![self _replayDescendantsFromCommit:commit\n                               ontoCommit:newCommit\n                       withInitialMapping:nil\n                           usingTransform:transform\n                               replayMode:kReplayMode_ApplyPatches\n                          conflictHandler:handler\n                                    error:error]) {\n    return nil;\n  }\n  return transform;\n}\n\n- (GCReferenceTransform*)_squashCommit:(GCHistoryCommit*)commit withMessage:(NSString*)message newCommit:(GCCommit**)newCommit error:(NSError**)error {\n  GCCommit* squashedCommit = [self.repository squashCommitOntoParent:commit withUpdatedMessage:message error:error];\n  if (squashedCommit == nil) {\n    return nil;\n  }\n  NSString* reflogMessage = [NSString stringWithFormat:(message ? kGCReflogMessageFormat_GitUp_Squash : kGCReflogMessageFormat_GitUp_Fixup), commit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n  [self _updateTransform:transform forNewCommit:squashedCommit withBaseCommit:commit];\n  if (![self _replayDescendantsFromCommit:commit\n                               ontoCommit:squashedCommit\n                       withInitialMapping:nil\n                           usingTransform:transform\n                               replayMode:kReplayMode_CopyTrees  // Tree content should not have changed\n                          conflictHandler:NULL  // Squashing should not generate conflicts\n                                    error:error]) {\n    return nil;\n  }\n  if (newCommit) {\n    *newCommit = squashedCommit;\n  }\n  return transform;\n}\n\n- (GCReferenceTransform*)fixupCommit:(GCHistoryCommit*)commit\n                           newCommit:(GCCommit**)newCommit\n                               error:(NSError**)error {\n  return [self _squashCommit:commit withMessage:nil newCommit:newCommit error:error];\n}\n\n- (GCReferenceTransform*)squashCommit:(GCHistoryCommit*)commit\n                          withMessage:(NSString*)message\n                            newCommit:(GCCommit**)newCommit\n                                error:(NSError**)error {\n  return [self _squashCommit:commit withMessage:message newCommit:newCommit error:error];\n}\n\n- (GCReferenceTransform*)swapCommitWithItsParent:(GCHistoryCommit*)commit\n                                 conflictHandler:(GCConflictHandler)handler\n                                  newChildCommit:(GCCommit**)newChildCommit\n                                 newParentCommit:(GCCommit**)newParentCommit\n                                           error:(NSError**)error {\n  if (commit.parents.count == 0) {\n    GC_SET_GENERIC_ERROR(@\"Commit cannot be a root commit\");\n    return nil;\n  }\n  GCHistoryCommit* parentCommit = commit.parents[0];\n  if (parentCommit.parents.count == 0) {\n    GC_SET_GENERIC_ERROR(@\"Root parent commit is not currently supported\");\n    return nil;\n  }\n  GCHistoryCommit* grandParentCommit = parentCommit.parents[0];\n  NSString* reflogMessage = [NSString stringWithFormat:kGCReflogMessageFormat_GitUp_Swap, commit.shortSHA1, parentCommit.shortSHA1];\n  GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:self.repository reflogMessage:reflogMessage];\n\n  // Replay commit on top of its grandparent preserving other parents\n  NSMutableArray* parents = [[NSMutableArray alloc] initWithArray:commit.parents];\n  [parents replaceObjectAtIndex:0 withObject:grandParentCommit];\n  GCCommit* swappedParentCommit = [self.repository replayCommit:commit\n                                                     ontoCommit:grandParentCommit\n                                             withAncestorCommit:parentCommit\n                                                 updatedMessage:nil\n                                                 updatedParents:parents\n                                                updateCommitter:YES\n                                                  skipIdentical:NO\n                                                conflictHandler:handler\n                                                          error:error];\n  if (swappedParentCommit == nil) {\n    return nil;\n  }\n  [self _updateTransform:transform forNewCommit:swappedParentCommit withBaseCommit:commit];\n\n  // Replay parent commit on top of just replayed commit preserving other parents\n  NSMutableArray* grandParents = [[NSMutableArray alloc] initWithArray:parentCommit.parents];\n  [grandParents replaceObjectAtIndex:0 withObject:swappedParentCommit];\n  GCCommit* swappedCommit = [self.repository replayCommit:parentCommit\n                                               ontoCommit:swappedParentCommit\n                                       withAncestorCommit:grandParentCommit\n                                           updatedMessage:nil\n                                           updatedParents:grandParents\n                                          updateCommitter:YES\n                                            skipIdentical:NO\n                                          conflictHandler:handler\n                                                    error:error];\n  if (swappedCommit == nil) {\n    return nil;\n  }\n  [self _updateTransform:transform forNewCommit:swappedCommit withBaseCommit:parentCommit];\n\n  // Replay descendants from parents onto replayed parent skipping commit\n  if (![self _replayDescendantsFromCommit:parentCommit\n                               ontoCommit:swappedParentCommit\n                       withInitialMapping:@{commit : swappedCommit}\n                           usingTransform:transform\n                               replayMode:kReplayMode_ApplyPatches\n                          conflictHandler:handler\n                                    error:error]) {\n    return nil;\n  }\n\n  // If the commit to swap was a leaf, move its references to the commit that replaces it\n  if (commit.leaf) {\n    for (GCHistoryLocalBranch* branch in commit.localBranches) {  // Force-update its branch references to point to the new tip instead of following their old commits so that new commits are reachable\n      [transform setDirectTarget:swappedCommit forReference:branch];\n    }\n    if (self.HEADDetached && [self.HEADCommit isEqualToCommit:commit] && !commit.hasReferences) {  // Force-update the HEAD if detached and pointing to it and no other references point to the new tip\n      [transform setDirectTargetForHEAD:swappedCommit];\n    }\n  }\n\n  if (newChildCommit) {\n    *newChildCommit = swappedCommit;\n  }\n  if (newParentCommit) {\n    *newParentCommit = swappedParentCommit;\n  }\n  return transform;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCLiveRepository+Utilities.h",
    "content": "//\n//  GCLiveRepository+Utilities.h\n//  GitUpKit (OSX)\n//\n//  Created by Lucas Derraugh on 8/2/19.\n//\n\n#import <GitUpKit/GitUpKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface GCLiveRepository (Utilities)\n\n/// Attempt to checkout branch matching commit or fallback to commit. Window is used to present modal dialog.\n- (void)smartCheckoutCommit:(GCHistoryCommit*)commit window:(NSWindow*)window;\n\n/// Returns target for smart checkout\n- (id)smartCheckoutTarget:(GCHistoryCommit*)commit;\n\n/// Checkout remote branch and ask user to create local branch if none exists. Window is used to present modal dialog.\n- (void)checkoutRemoteBranch:(GCHistoryRemoteBranch*)remoteBranch window:(NSWindow*)window;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUpKit/Extensions/GCLiveRepository+Utilities.m",
    "content": "//\n//  GCLiveRepository+Utilities.m\n//  GitUpKit (OSX)\n//\n//  Created by Lucas Derraugh on 8/2/19.\n//\n\n#import \"GCLiveRepository+Utilities.h\"\n\n@implementation GCLiveRepository (Utilities)\n\n- (void)smartCheckoutCommit:(GCHistoryCommit*)commit window:(NSWindow*)window {\n  if (![self validateCheckoutCommit:commit]) {\n    NSBeep();\n    return;\n  }\n  id target = [self smartCheckoutTarget:commit];\n  if ([target isKindOfClass:[GCLocalBranch class]]) {\n    [self _checkoutLocalBranch:target window:window];\n  } else {\n    GCHistoryRemoteBranch* branch = commit.remoteBranches.firstObject;\n    if (branch && ![self.history historyLocalBranchWithName:branch.branchName]) {\n      NSAlert* alert = [[NSAlert alloc] init];\n      alert.messageText = NSLocalizedString(@\"Do you want to just checkout the commit or also create a new local branch?\", nil);\n      alert.informativeText = [NSString stringWithFormat:NSLocalizedString(@\"The selected commit is also the tip of the remote branch \\\"%@\\\".\", nil), branch.name];\n      [alert addButtonWithTitle:NSLocalizedString(@\"Create Local Branch\", nil)];\n      [alert addButtonWithTitle:NSLocalizedString(@\"Checkout Commit\", nil)];\n      [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n      alert.type = kGIAlertType_Note;\n      [alert beginSheetModalForWindow:window\n                    completionHandler:^(NSModalResponse returnCode) {\n                      if (returnCode == NSAlertFirstButtonReturn) {\n                        [self checkoutRemoteBranch:branch window:window];\n                      } else if (returnCode == NSAlertSecondButtonReturn) {\n                        [self _checkoutCommit:target window:window];\n                      }\n                    }];\n    } else {\n      [self _checkoutCommit:target window:window];\n    }\n  }\n}\n\n// This will abort on conflicts in workdir or index so there's no need to require a clean repo\n- (void)checkoutRemoteBranch:(GCHistoryRemoteBranch*)remoteBranch window:(NSWindow*)window {\n  NSError* error;\n  [self setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Checkout Remote Branch \\\"%@\\\"\", nil), remoteBranch.name]];\n  if (![self performOperationWithReason:@\"checkout_remote_branch\"\n                               argument:remoteBranch.name\n                     skipCheckoutOnUndo:NO\n                                  error:&error\n                             usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                               GCLocalBranch* localBranch = [repository createLocalBranchFromCommit:remoteBranch.tipCommit withName:remoteBranch.branchName force:NO error:outError];\n                               if (localBranch == nil) {\n                                 return NO;\n                               }\n                               if (![repository setUpstream:remoteBranch forLocalBranch:localBranch error:outError]) {\n                                 return NO;\n                               }\n                               if (![repository checkoutLocalBranch:localBranch options:kGCCheckoutOption_UpdateSubmodulesRecursively error:outError]) {\n                                 [repository deleteLocalBranch:localBranch error:NULL];  // Ignore errors\n                                 return NO;\n                               }\n                               return YES;\n                             }]) {\n    [window presentError:error];\n  }\n}\n\n// This will preemptively abort on conflicts in workdir or index so there's no need to require a clean repo\n- (void)_checkoutLocalBranch:(GCHistoryLocalBranch*)branch window:(NSWindow*)window {\n  NSError* error;\n  [self setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Checkout Branch \\\"%@\\\"\", nil), branch.name]];\n  if (![self performOperationWithReason:@\"checkout_branch\"\n                               argument:branch.name\n                     skipCheckoutOnUndo:NO\n                                  error:&error\n                             usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                               return [repository checkoutLocalBranch:branch options:kGCCheckoutOption_UpdateSubmodulesRecursively error:outError];\n                             }]) {\n    [window presentError:error];\n  }\n}\n\n// This will preemptively abort on conflicts in workdir or index so there's no need to require a clean repo\n- (void)_checkoutCommit:(GCHistoryCommit*)commit window:(NSWindow*)window {\n  NSError* error;\n  [self setUndoActionName:NSLocalizedString(@\"Checkout Commit\", nil)];\n  if (![self performOperationWithReason:@\"checkout_commit\"\n                               argument:commit.SHA1\n                     skipCheckoutOnUndo:NO\n                                  error:&error\n                             usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                               return [repository checkoutCommit:commit options:kGCCheckoutOption_UpdateSubmodulesRecursively error:outError];\n                             }]) {\n    [window presentError:error];\n  }\n}\n\n- (id)smartCheckoutTarget:(GCHistoryCommit*)commit {\n  NSArray* branches = commit.localBranches;\n  if (branches.count > 1) {\n    GCHistoryLocalBranch* headBranch = self.history.HEADBranch;\n    NSUInteger index = [branches indexOfObject:headBranch];\n    if (index != NSNotFound) {\n      return [branches objectAtIndex:((index + 1) % branches.count)];\n    }\n  }\n  GCHistoryLocalBranch* branch = branches.firstObject;\n  return branch ? branch : commit;\n}\n\n- (BOOL)validateCheckoutCommit:(GCHistoryCommit*)commit {\n  id target = [self smartCheckoutTarget:commit];\n  if ([target isKindOfClass:[GCLocalBranch class]]) {\n    return ![self.history.HEADBranch isEqualToBranch:target];\n  } else {\n    return ![self.history.HEADCommit isEqualToCommit:target];\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCRepository+Index-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Index.h\"\n\n@implementation GCSingleCommitRepositoryTests (GCRepository_Index)\n\n- (void)testIndex {\n  // Modify file in working directory and add to index\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"Bonjour le monde!\\n\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"hello_world.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"M  hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Read back file from index\n  GCIndex* index = [self.repository readRepositoryIndex:NULL];\n  XCTAssertNotNil(index);\n  XCTAssertNil([self.repository readContentsForFile:@\"hello-world.txt\" inIndex:index error:NULL]);\n  NSData* data = [self.repository readContentsForFile:@\"hello_world.txt\" inIndex:index error:NULL];\n  XCTAssertEqualObjects(data, [@\"Bonjour le monde!\\n\" dataUsingEncoding:NSUTF8StringEncoding]);\n\n  // Remove file from index\n  XCTAssertTrue([self.repository removeFileFromIndex:@\"hello_world.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"D  hello_world.txt\\n?? hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Add new file to working directory\n  [self updateFileAtPath:@\"test.txt\" withString:@\"This is a test\\n\"];\n\n  // Add all working directory files to index\n  XCTAssertTrue([self.repository addAllFilesToIndex:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"M  hello_world.txt\\nA  test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Delete / update working directory files\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"hello_world.txt\"] error:NULL]);\n  [self updateFileAtPath:@\"test.txt\" withString:@\"This is another test\\n\"];\n  XCTAssertTrue([self.repository removeFileFromIndex:@\"hello_world.txt\" error:NULL]);\n  XCTAssertTrue([self.repository addFileToIndex:@\"test.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"D  hello_world.txt\\nA  test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Remove all files from index\n  XCTAssertTrue([self.repository removeFileFromIndex:@\"test.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"D  hello_world.txt\\n?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Unstage deleted file\n  XCTAssertTrue([self.repository resetFileInIndexToHEAD:@\"hello_world.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\" D hello_world.txt\\n?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Restore deleted file from index to working directory\n  XCTAssertTrue([self.repository checkoutFileFromIndex:@\"hello_world.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"?? test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Re-add file to index\n  XCTAssertTrue([self.repository addFileToIndex:@\"test.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"A  test.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Add multiple files to working directory\n  NSMutableArray* filePaths = [[NSMutableArray alloc] init];\n  NSString* expectedGitCLTOutput = [[NSString alloc] init];\n  for (int i = 0; i < 50; i++) {\n    NSString* filePath = [NSString stringWithFormat:@\"hello_world%02d.txt\", i];\n    [self updateFileAtPath:filePath withString:@\"Bonjour le monde!\\n\"];\n    [filePaths addObject:filePath];\n    expectedGitCLTOutput = [expectedGitCLTOutput stringByAppendingFormat:@\"A  %@\\n\", filePath];\n  }\n  expectedGitCLTOutput = [expectedGitCLTOutput stringByAppendingString:@\"A  test.txt\\n\"];\n\n  // Add multiple files to index\n  XCTAssertTrue([self.repository addFilesToIndex:filePaths error:NULL]);\n  [self assertGitCLTOutputEqualsString:expectedGitCLTOutput withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Add remove multiple files from index\n  XCTAssertTrue([self.repository removeFilesFromIndex:filePaths error:NULL]);\n  expectedGitCLTOutput = [expectedGitCLTOutput stringByReplacingOccurrencesOfString:@\"A  test.txt\\n\" withString:@\"\"];\n  expectedGitCLTOutput = [expectedGitCLTOutput stringByReplacingOccurrencesOfString:@\"A  hello_world\" withString:@\"?? hello_world\"];\n  expectedGitCLTOutput = [@\"A  test.txt\\n\" stringByAppendingString:expectedGitCLTOutput];\n  [self assertGitCLTOutputEqualsString:expectedGitCLTOutput withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Reset index\n  XCTAssertTrue([self.repository resetIndexToHEAD:NULL]);\n  expectedGitCLTOutput = [expectedGitCLTOutput stringByReplacingOccurrencesOfString:@\"A  test.txt\\n\" withString:@\"\"];\n  expectedGitCLTOutput = [expectedGitCLTOutput stringByAppendingString:@\"?? test.txt\\n\"];\n  [self assertGitCLTOutputEqualsString:expectedGitCLTOutput withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n}\n\n- (void)testIndex_Lines {\n  // Create test multiline file and commit it\n  NSMutableArray* content0 = [[NSMutableArray alloc] init];\n  for (int i = 0; i < 1000; ++i) {\n    [content0 addObject:[NSString stringWithFormat:@\"Line %i\", i + 1]];\n  }\n  [self makeCommitWithUpdatedFileAtPath:@\"lines.txt\" string:[content0 componentsJoinedByString:@\"\\n\"] message:@\"Update\"];\n\n  // Edit various lines in the file\n  NSMutableArray* content1 = [content0 mutableCopy];\n  [content1 replaceObjectAtIndex:799 withObject:@\"Test\"];  // Replace line 800\n  [content1 removeObjectAtIndex:199];  // Delete line 200\n  [content1 insertObject:@\"Hello World!\" atIndex:499];  // Add line 500\n  [self updateFileAtPath:@\"lines.txt\" withString:[content1 componentsJoinedByString:@\"\\n\"]];\n\n  // Stage some lines\n  XCTAssertTrue([self.repository addLinesFromFileToIndex:@\"lines.txt\"\n                                                   error:NULL\n                                             usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                               if ((oldLineNumber == 200) || (newLineNumber == 500)) {\n                                                 return YES;\n                                               }\n                                               return NO;\n                                             }]);\n  NSString* output1 = @\"\\\n--- a/lines.txt\\n\\\n+++ b/lines.txt\\n\\\n@@ -200 +199,0 @@ Line 199\\n\\\n-Line 200\\n\\\n@@ -500,0 +500 @@ Line 500\\n\\\n+Hello World!\\n\\\n\";\n  [self assertGitCLTOutputEndsWithString:output1 withRepository:self.repository command:@\"diff\", @\"--cached\", @\"--unified=0\", nil];\n  NSString* output2 = @\"\\\n--- a/lines.txt\\n\\\n+++ b/lines.txt\\n\\\n@@ -800 +800 @@ Line 799\\n\\\n-Line 800\\n\\\n+Test\\n\\\n\";\n  [self assertGitCLTOutputEndsWithString:output2 withRepository:self.repository command:@\"diff\", @\"--unified=0\", nil];\n\n  // Unstage some lines\n  XCTAssertTrue([self.repository resetLinesFromFileInIndexToHEAD:@\"lines.txt\"\n                                                           error:NULL\n                                                     usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                                       if (newLineNumber == 500) {\n                                                         return YES;\n                                                       }\n                                                       return NO;\n                                                     }]);\n  NSString* output3 = @\"\\\n--- a/lines.txt\\n\\\n+++ b/lines.txt\\n\\\n@@ -200 +199,0 @@ Line 199\\n\\\n-Line 200\\n\\\n\";\n  [self assertGitCLTOutputEndsWithString:output3 withRepository:self.repository command:@\"diff\", @\"--cached\", @\"--unified=0\", nil];\n  NSString* output4 = @\"\\\n--- a/lines.txt\\n\\\n+++ b/lines.txt\\n\\\n@@ -499,0 +500 @@ Line 500\\n\\\n+Hello World!\\n\\\n@@ -799 +800 @@ Line 799\\n\\\n-Line 800\\n\\\n+Test\\n\\\n\";\n  [self assertGitCLTOutputEndsWithString:output4 withRepository:self.repository command:@\"diff\", @\"--unified=0\", nil];\n\n  // Discard some lines\n  XCTAssertTrue([self.repository checkoutLinesFromFileFromIndex:@\"lines.txt\"\n                                                          error:NULL\n                                                    usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                                      if ((oldLineNumber == 799) || (newLineNumber == 800)) {\n                                                        return YES;\n                                                      }\n                                                      return NO;\n                                                    }]);\n  NSString* output5 = @\"\\\n--- a/lines.txt\\n\\\n+++ b/lines.txt\\n\\\n@@ -200 +199,0 @@ Line 199\\n\\\n-Line 200\\n\\\n\";\n  [self assertGitCLTOutputEndsWithString:output5 withRepository:self.repository command:@\"diff\", @\"--cached\", @\"--unified=0\", nil];\n  NSString* output6 = @\"\\\n--- a/lines.txt\\n\\\n+++ b/lines.txt\\n\\\n@@ -499,0 +500 @@ Line 500\\n\\\n+Hello World!\\n\\\n\";\n  [self assertGitCLTOutputEndsWithString:output6 withRepository:self.repository command:@\"diff\", @\"--unified=0\", nil];\n}\n\n@end\n\n@implementation GCEmptyRepositoryTests (GCRepository_Index)\n\n- (void)testIndex_Copies {\n  GCFileMode mode;\n  NSMutableArray* lines = [[NSMutableArray alloc] init];\n  for (int i = 0; i < 10; ++i) {\n    [lines addObject:[NSString stringWithFormat:@\"Line %i\", i + 1]];\n  }\n  NSData* data = [[lines componentsJoinedByString:@\"\\n\"] dataUsingEncoding:NSUTF8StringEncoding];\n\n  GCIndex* index1 = [self.repository createInMemoryIndex:NULL];\n  XCTAssertNotNil(index1);\n  XCTAssertTrue(index1.empty);\n\n  GCIndex* index2 = [self.repository createInMemoryIndex:NULL];\n  XCTAssertNotNil(index2);\n  XCTAssertTrue(index2.empty);\n\n  XCTAssertTrue([self.repository addFile:@\"lines.txt\" withContents:data toIndex:index1 error:NULL]);\n  XCTAssertFalse(index1.empty);\n  XCTAssertNotNil([index1 SHA1ForFile:@\"lines.txt\" mode:&mode]);\n  XCTAssertEqual(mode, kGCFileMode_Blob);\n\n  XCTAssertTrue([self.repository copyFile:@\"lines.txt\" fromOtherIndex:index1 toIndex:index2 error:NULL]);\n  XCTAssertFalse(index2.empty);\n  XCTAssertNotNil([index2 SHA1ForFile:@\"lines.txt\" mode:&mode]);\n  XCTAssertEqual(mode, kGCFileMode_Blob);\n\n  XCTAssertTrue([self.repository clearIndex:index2 error:NULL]);\n  XCTAssertTrue(index2.empty);\n  XCTAssertNil([index2 SHA1ForFile:@\"lines.txt\" mode:NULL]);\n\n  XCTAssertTrue([self.repository copyLinesInFile:@\"lines.txt\"\n                                  fromOtherIndex:index1\n                                         toIndex:index2\n                                           error:NULL\n                                     usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                       return (newLineNumber % 2);\n                                     }]);\n  XCTAssertFalse(index2.empty);\n  NSData* data2 = [self.repository exportBlobWithOID:[index2 OIDForFile:@\"lines.txt\"] error:NULL];\n  XCTAssertNotNil(data2);\n  NSString* string2 = [[NSString alloc] initWithData:data2 encoding:NSUTF8StringEncoding];\n  XCTAssertEqualObjects(string2, @\"Line 1\\nLine 3\\nLine 5\\nLine 7\\nLine 9\\n\");\n\n  XCTAssertTrue([self.repository clearIndex:index2 error:NULL]);\n  [lines replaceObjectAtIndex:4 withObject:@\"Line ?\"];\n  XCTAssertTrue([self.repository addFile:@\"lines.txt\" withContents:[[lines componentsJoinedByString:@\"\\n\"] dataUsingEncoding:NSUTF8StringEncoding] toIndex:index2 error:NULL]);\n  XCTAssertTrue([self.repository copyLinesInFile:@\"lines.txt\"\n                                  fromOtherIndex:index1\n                                         toIndex:index2\n                                           error:NULL\n                                     usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                       return YES;\n                                     }]);\n  NSData* data3 = [self.repository exportBlobWithOID:[index2 OIDForFile:@\"lines.txt\"] error:NULL];\n  XCTAssertNotNil(data3);\n  NSString* string3 = [[NSString alloc] initWithData:data3 encoding:NSUTF8StringEncoding];\n  XCTAssertEqualObjects(string3, @\"Line 1\\nLine 2\\nLine 3\\nLine 4\\nLine 5\\nLine 6\\nLine 7\\nLine 8\\nLine 9\\nLine 10\");\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCRepository+Index.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCCore.h\"\n\n@interface GCRepository (Index)\n- (BOOL)resetIndexToHEAD:(NSError**)error;  // Like git reset --mixed HEAD but does not update reflog\n\n- (BOOL)removeFileFromIndex:(NSString*)path error:(NSError**)error;  // git rm --cached {file} - Delete file from index\n- (BOOL)removeFilesFromIndex:(NSArray<NSString*>*)paths error:(NSError**)error;  // git rm --cached {file} - Delete files from index\n\n- (BOOL)addFileToIndex:(NSString*)path error:(NSError**)error;  // git add {file} - Copy file from workdir to index (aka stage file)\n- (BOOL)addFilesToIndex:(NSArray<NSString*>*)paths error:(NSError**)error;\n- (BOOL)resetFileInIndexToHEAD:(NSString*)path error:(NSError**)error;  // git reset --mixed {file} - Copy file from HEAD to index (aka unstage file)\n- (BOOL)resetFilesInIndexToHEAD:(NSArray<NSString*>*)paths error:(NSError**)error;\n- (BOOL)checkoutFileFromIndex:(NSString*)path error:(NSError**)error;  // git checkout {file} - Copy file from index to workdir (aka discard file)\n- (BOOL)checkoutFilesFromIndex:(NSArray<NSString*>*)paths error:(NSError**)error;\n\n- (BOOL)addLinesFromFileToIndex:(NSString*)path error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;  // git add -p {file} - Copy only some lines of file from workdir to index (aka stage lines)\n- (BOOL)resetLinesFromFileInIndexToHEAD:(NSString*)path error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;  // git reset -p {file} - Copy only some lines of file from HEAD to index (aka unstage lines)\n- (BOOL)checkoutLinesFromFileFromIndex:(NSString*)path error:(NSError**)error usingFilter:(GCIndexLineFilter)filter;  // git checkout -p {file} - Copy only some lines of file from index to workdir (aka discard lines)\n\n- (BOOL)resolveConflictAtPath:(NSString*)path error:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCRepository+Index.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCRepository+Index.h\"\n\n#import \"XLFacilityMacros.h\"\n\n@implementation GCRepository (Index)\n\n- (BOOL)resetIndexToHEAD:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  GCCommit* headCommit;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n    return NO;\n  }\n  if ((headCommit && ![self resetIndex:index toTreeForCommit:headCommit error:error]) || (!headCommit && ![self clearIndex:index error:error])) {\n    return NO;\n  }\n  return [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)removeFileFromIndex:(NSString*)path error:(NSError**)error {\n  return [self removeFilesFromIndex:@[ path ] error:error];\n}\n\n- (BOOL)removeFilesFromIndex:(NSArray<NSString*>*)paths error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n\n  for (NSString* path in paths) {\n    if (![self removeFile:path fromIndex:index error:error] || (error && *error != nil)) {\n      [self writeRepositoryIndex:index error:error];\n      return NO;\n    }\n  }\n\n  return [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)addFileToIndex:(NSString*)path error:(NSError**)error {\n  return [self addFilesToIndex:@[ path ] error:error];\n}\n\n- (BOOL)addFilesToIndex:(NSArray<NSString*>*)paths error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n\n  BOOL failed = NO;\n  BOOL needsToWriteIndex = NO;\n  for (NSString* path in paths) {\n    if (![self addFileInWorkingDirectory:path toIndex:index error:error] || (error && *error != nil)) {\n      failed = YES;\n      continue;\n    }\n\n    needsToWriteIndex = YES;\n  }\n\n  if (needsToWriteIndex) {\n    if (failed) {\n      [self writeRepositoryIndex:index error:NULL];\n      return NO;\n    }\n\n    return [self writeRepositoryIndex:index error:error];\n  }\n\n  return !failed;\n}\n\n- (BOOL)resetFileInIndexToHEAD:(NSString*)path error:(NSError**)error {\n  return [self resetFilesInIndexToHEAD:@[ path ] error:error];\n}\n\n- (BOOL)resetFilesInIndexToHEAD:(NSArray<NSString*>*)paths error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  GCCommit* headCommit;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n    return NO;\n  }\n\n  for (NSString* path in paths) {\n    if (headCommit) {\n      if (![self resetFile:path inIndex:index toCommit:headCommit error:error]) {\n        [self writeRepositoryIndex:index error:error];\n        return NO;\n      }\n    } else {\n      if (![self removeFile:path fromIndex:index error:error]) {\n        [self writeRepositoryIndex:index error:error];\n        return NO;\n      }\n    }\n  }\n\n  return [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)checkoutFileFromIndex:(NSString*)path error:(NSError**)error {\n  return [self checkoutFilesFromIndex:@[ path ] error:error];\n}\n\n- (BOOL)checkoutFilesFromIndex:(NSArray<NSString*>*)paths error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  return [self checkoutFilesToWorkingDirectory:paths fromIndex:index error:error];\n}\n\n- (BOOL)addLinesFromFileToIndex:(NSString*)path error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  return [self addLinesInWorkingDirectoryFile:path toIndex:index error:error usingFilter:filter] && [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)resetLinesFromFileInIndexToHEAD:(NSString*)path error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  GCCommit* headCommit;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n    return NO;\n  }\n  return [self resetLinesInFile:path index:index toCommit:headCommit error:error usingFilter:filter] && [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)checkoutLinesFromFileFromIndex:(NSString*)path error:(NSError**)error usingFilter:(GCIndexLineFilter)filter {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  return [self checkoutLinesInFileToWorkingDirectory:path fromIndex:index error:error usingFilter:filter];\n}\n\n- (BOOL)resolveConflictAtPath:(NSString*)path error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (index == nil) {\n    return NO;\n  }\n  if ([[NSFileManager defaultManager] fileExistsAtPath:[self absolutePathForFile:path] followLastSymlink:NO] && ![self addFileInWorkingDirectory:path toIndex:index error:error]) {\n    return NO;\n  }\n  return [self clearConflictForFile:path inIndex:index error:error] && [self writeRepositoryIndex:index error:error];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCRepository+Utilities-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"GCRepository+Index.h\"\n\n// TODO: Test -fetchDefaultRemoteBranchesFromAllRemotes:\n// TODO: Test -fetchAllTagsFromAllRemotes:\n// TODO: Test -hostingURLForCommit:\n// TODO: Test -hostingURLForRemoteBranch:\n// TODO: Test -hostingURLForPullRequestFromRemoteBranch:\n@implementation GCSingleCommitRepositoryTests (GCRepository_Utilities)\n\n- (void)testUtilities {\n  // Move file\n  XCTAssertTrue([self.repository moveFileFromPath:@\"hello_world.txt\" toPath:@\"goodbye_world.txt\" force:NO error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"R  hello_world.txt -> goodbye_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Remove file\n  XCTAssertTrue([self.repository removeFile:@\"goodbye_world.txt\" error:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"D  hello_world.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n\n  // Hosting service URLs\n  GCHostingService service;\n  XCTAssertNil([self.repository hostingURLForProject:&service error:NULL]);\n\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"remote.origin.url\" withValue:@\"git@github.com:git-up/GitUp-Mac.git\" error:NULL]);\n  XCTAssertEqualObjects([self.repository hostingURLForProject:&service error:NULL], [NSURL URLWithString:@\"https://github.com/git-up/GitUp-Mac\"]);\n  XCTAssertEqual(service, kGCHostingService_GitHub);\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"remote.origin.url\" withValue:@\"https://github.com/git-up/GitUp-Mac.git\" error:NULL]);\n  XCTAssertEqualObjects([self.repository hostingURLForProject:&service error:NULL], [NSURL URLWithString:@\"https://github.com/git-up/GitUp-Mac\"]);\n  XCTAssertEqual(service, kGCHostingService_GitHub);\n\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"remote.origin.url\" withValue:@\"git@bitbucket.org:gitup/test.git\" error:NULL]);\n  XCTAssertEqualObjects([self.repository hostingURLForProject:&service error:NULL], [NSURL URLWithString:@\"https://bitbucket.org/gitup/test\"]);\n  XCTAssertEqual(service, kGCHostingService_BitBucket);\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"remote.origin.url\" withValue:@\"https://user@bitbucket.org/gitup/test.git\" error:NULL]);\n  XCTAssertEqualObjects([self.repository hostingURLForProject:&service error:NULL], [NSURL URLWithString:@\"https://bitbucket.org/gitup/test\"]);\n  XCTAssertEqual(service, kGCHostingService_BitBucket);\n\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"remote.origin.url\" withValue:@\"git@gitlab.com:gitup/GitUp-Mac.git\" error:NULL]);\n  XCTAssertEqualObjects([self.repository hostingURLForProject:&service error:NULL], [NSURL URLWithString:@\"https://gitlab.com/gitup/GitUp-Mac\"]);\n  XCTAssertEqual(service, kGCHostingService_GitLab);\n  XCTAssertTrue([self.repository writeConfigOptionForLevel:kGCConfigLevel_Local variable:@\"remote.origin.url\" withValue:@\"https://gitlab.com/gitup/GitUp-Mac.git\" error:NULL]);\n  XCTAssertEqualObjects([self.repository hostingURLForProject:&service error:NULL], [NSURL URLWithString:@\"https://gitlab.com/gitup/GitUp-Mac\"]);\n  XCTAssertEqual(service, kGCHostingService_GitLab);\n}\n\n- (void)testSyncIndexWithWorkdir {\n  [self updateFileAtPath:@\"temp.txt\" withString:@\"temp\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"temp.txt\" error:NULL]);\n  XCTAssertTrue([self.repository createCommitFromHEADWithMessage:@\"temp\" error:NULL]);\n\n  [self updateFileAtPath:@\"new.txt\" withString:@\"new\"];\n  [self deleteFileAtPath:@\"temp.txt\"];\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"COUCOU\"];\n  [self assertGitCLTOutputEqualsString:@\" M hello_world.txt\\n D temp.txt\\n?? new.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n  XCTAssertTrue([self.repository syncIndexWithWorkingDirectory:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"M  hello_world.txt\\nA  new.txt\\nD  temp.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n}\n\n- (void)testSyncWorkdirWithIndex {\n  [self updateFileAtPath:@\"temp.txt\" withString:@\"temp\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"temp.txt\" error:NULL]);\n  XCTAssertTrue([self.repository createCommitFromHEADWithMessage:@\"temp\" error:NULL]);\n\n  [self updateFileAtPath:@\"new.txt\" withString:@\"new\"];\n  [self deleteFileAtPath:@\"temp.txt\"];\n  [self updateFileAtPath:@\"hello_world.txt\" withString:@\"COUCOU\"];\n  [self assertGitCLTOutputEqualsString:@\" M hello_world.txt\\n D temp.txt\\n?? new.txt\\n\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n  XCTAssertTrue([self.repository syncWorkingDirectoryWithIndex:NULL]);\n  [self assertGitCLTOutputEqualsString:@\"\" withRepository:self.repository command:@\"status\", @\"--ignored\", @\"--porcelain\", nil];\n}\n\n- (void)testCleanWorkingDirectory {\n  [self updateFileAtPath:@\"file1\" withString:@\"1\"];\n  XCTAssertTrue([self.repository addFileToIndex:@\"file1\" error:NULL]);\n  [self updateFileAtPath:@\"file2\" withString:@\"2\"];\n  XCTAssertTrue([self.repository cleanWorkingDirectory:NULL]);\n  XCTAssertTrue([[NSFileManager defaultManager] fileExistsAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"file1\"] followLastSymlink:NO]);\n  XCTAssertFalse([[NSFileManager defaultManager] fileExistsAtPath:[self.repository.workingDirectoryPath stringByAppendingPathComponent:@\"file2\"]]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCRepository+Utilities.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GCCore.h\"\n\ntypedef NS_ENUM(NSUInteger, GCHostingService) {\n  kGCHostingService_Unknown = 0,\n  kGCHostingService_GitHub,\n  kGCHostingService_BitBucket,\n  kGCHostingService_GitLab\n};\n\nextern NSString* GCNameFromHostingService(GCHostingService service);\n\n@interface GCRepository (Utilities)\n- (BOOL)fetchDefaultRemoteBranchesFromAllRemotes:(GCFetchTagMode)mode recursive:(BOOL)recursive prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error;  // git fetch --all --recurse-submodules=yes\n- (BOOL)fetchAllTagsFromAllRemotes:(BOOL)recursive prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error;  // git fetch -f --all --recurse-submodules=yes 'refs/tags/*:refs/tags/*'\n\n- (BOOL)moveFileFromPath:(NSString*)fromPath toPath:(NSString*)toPath force:(BOOL)force error:(NSError**)error;  // git mv {-f} {from_file} {to_file}\n- (BOOL)removeFile:(NSString*)path error:(NSError**)error;  // git rm {file}\n\n- (BOOL)syncIndexWithWorkingDirectory:(NSError**)error;  // git add -A\n- (BOOL)cleanWorkingDirectory:(NSError**)error;  // git clean -f -d\n- (BOOL)syncWorkingDirectoryWithIndex:(NSError**)error;  // git checkout -- .\n\n- (BOOL)forceCheckoutHEAD:(BOOL)recursive error:(NSError**)error;  // (?) - Equivalent to \"git reset --hard\" but without the resetting the repository state and updating the reflog\n\n- (NSURL*)hostingURLForProject:(GCHostingService*)service error:(NSError**)error;  // This only looks at the \"origin\" remote\n- (NSURL*)hostingURLForCommit:(GCCommit*)commit service:(GCHostingService*)service error:(NSError**)error;  // This only looks at the \"origin\" remote\n- (NSURL*)hostingURLForRemoteBranch:(GCRemoteBranch*)branch service:(GCHostingService*)service error:(NSError**)error;\n- (NSURL*)hostingURLForPullRequestFromRemoteBranch:(GCRemoteBranch*)fromBranch toBranch:(GCRemoteBranch*)toBranch service:(GCHostingService*)service error:(NSError**)error;\n\n- (BOOL)safeDeleteFileIfExists:(NSString*)path error:(NSError**)error;\n\n- (void)setUserInfo:(id)info forKey:(NSString*)key;  // Persistent on disk in the private app directory - Pass nil to delete a key\n- (id)userInfoForKey:(NSString*)key;\n@end\n"
  },
  {
    "path": "GitUpKit/Extensions/GCRepository+Utilities.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <objc/runtime.h>\n\n#import \"GCRepository+Utilities.h\"\n#import \"GCRepository+Index.h\"\n\n#import \"XLFacilityMacros.h\"\n\n#define kUserInfoFileName @\"info.plist\"\n\nstatic const void* _associatedObjectKey = &_associatedObjectKey;\n\nNSString* GCNameFromHostingService(GCHostingService service) {\n  switch (service) {\n    case kGCHostingService_Unknown:\n      return nil;\n    case kGCHostingService_GitHub:\n      return @\"GitHub\";\n    case kGCHostingService_GitLab:\n      return @\"GitLab\";\n    case kGCHostingService_BitBucket:\n      return @\"BitBucket\";\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\n@implementation GCRepository (Utilities)\n\n// TODO: Take into account @fetchRecurseMode\n- (BOOL)_fetchRepository:(GCRepository*)repository recursive:(BOOL)recursive error:(NSError**)error block:(BOOL (^)(GCRepository* repository, NSArray* remotes, NSError** error))block {\n  NSArray* remotes = [repository listRemotes:error];\n  if (remotes == nil) {\n    return NO;\n  }\n  if (!block(repository, remotes, error)) {\n    return NO;\n  }\n\n  if (recursive) {\n    NSArray* submodules = [repository listSubmodules:error];\n    if (submodules == nil) {\n      return NO;\n    }\n    for (GCSubmodule* submodule in submodules) {\n      GCRepository* subRepository = [[GCRepository alloc] initWithSubmodule:submodule error:error];\n      subRepository.delegate = self.delegate;\n      if (subRepository == nil) {\n        return NO;\n      }\n      if (![self _fetchRepository:subRepository recursive:recursive error:error block:block]) {\n        return NO;\n      }\n    }\n  }\n  return YES;\n}\n\n- (BOOL)fetchDefaultRemoteBranchesFromAllRemotes:(GCFetchTagMode)mode recursive:(BOOL)recursive prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error {\n  __block NSUInteger total = 0;\n  if (![self _fetchRepository:self\n                    recursive:recursive\n                        error:error\n                        block:^BOOL(GCRepository* repository, NSArray* remotes, NSError** blockError) {\n                          for (GCRemote* remote in remotes) {\n                            NSUInteger count;\n                            if (![repository fetchDefaultRemoteBranchesFromRemote:remote tagMode:mode prune:prune updatedTips:&count error:blockError]) {\n                              return NO;\n                            }\n                            total += count;\n                          }\n                          return YES;\n                        }]) {\n    return NO;\n  }\n  if (updatedTips) {\n    *updatedTips = total;\n  }\n  return YES;\n}\n\n- (BOOL)fetchAllTagsFromAllRemotes:(BOOL)recursive prune:(BOOL)prune updatedTips:(NSUInteger*)updatedTips error:(NSError**)error {\n  __block NSUInteger total = 0;\n  if (![self _fetchRepository:self\n                    recursive:recursive\n                        error:error\n                        block:^BOOL(GCRepository* repository, NSArray* remotes, NSError** blockError) {\n                          NSMutableArray* remoteTags = prune ? [[NSMutableArray alloc] init] : nil;\n                          for (GCRemote* remote in remotes) {\n                            NSUInteger count;\n                            NSArray* tags = [repository fetchTagsFromRemote:remote prune:NO updatedTips:&count error:blockError];  // Don't prune at this time!\n                            if (tags == nil) {\n                              return NO;\n                            }\n                            [remoteTags addObjectsFromArray:tags];\n                            total += count;\n                          }\n                          if (remoteTags) {\n                            NSArray* repositoryTags = [repository listTags:blockError];\n                            if (repositoryTags == nil) {\n                              return NO;\n                            }\n                            for (GCTag* tag in repositoryTags) {\n                              if (![remoteTags containsObject:tag]) {\n                                if (![repository deleteTag:tag error:blockError]) {\n                                  return NO;\n                                }\n                                total += 1;\n                              }\n                            }\n                          }\n                          return YES;\n                        }]) {\n    return NO;\n  }\n  if (updatedTips) {\n    *updatedTips = total;\n  }\n  return YES;\n}\n\n- (BOOL)moveFileFromPath:(NSString*)fromPath toPath:(NSString*)toPath force:(BOOL)force error:(NSError**)error {\n  NSString* sourcePath = [self absolutePathForFile:fromPath];\n  NSString* destinationPath = [self absolutePathForFile:toPath];\n  BOOL isDirectory;\n\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (!index) {\n    return NO;\n  }\n\n  if (![[NSFileManager defaultManager] fileExistsAtPath:sourcePath isDirectory:&isDirectory] || isDirectory) {\n    GC_SET_GENERIC_ERROR(@\"No file at \\\"%@\\\"\", sourcePath);\n    return NO;\n  }\n\n  if (force && ![self safeDeleteFileIfExists:toPath error:error]) {\n    return NO;\n  }\n\n  if (![[NSFileManager defaultManager] moveItemAtPath:sourcePath toPath:destinationPath error:error]) {\n    return NO;\n  }\n\n  return [self removeFile:fromPath fromIndex:index error:error] && [self addFileInWorkingDirectory:toPath toIndex:index error:error] && [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)removeFile:(NSString*)path error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (!index) {\n    return NO;\n  }\n  if (![self safeDeleteFile:path error:error]) {\n    return NO;\n  }\n  return [self removeFile:path fromIndex:index error:error] && [self writeRepositoryIndex:index error:error];\n}\n\n// We can't use git_index_update_all() in libgit2 which blindly calls git_index_add_bypath() on every file which is very slow\n- (BOOL)syncIndexWithWorkingDirectory:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (!index) {\n    return NO;\n  }\n  GCDiff* diff = [self diffWorkingDirectoryWithIndex:index filePattern:nil options:kGCDiffOption_IncludeUntracked maxInterHunkLines:0 maxContextLines:0 error:error];\n  if (diff == nil) {\n    return NO;\n  }\n  for (GCDiffDelta* delta in diff.deltas) {\n    switch (delta.change) {\n      case kGCFileDiffChange_Deleted: {\n        if (![self clearConflictForFile:delta.canonicalPath inIndex:index error:error]) {\n          return NO;\n        }\n        if (![self removeFile:delta.canonicalPath fromIndex:index error:error]) {\n          return NO;\n        }\n        break;\n      }\n\n      case kGCFileDiffChange_Modified:\n      case kGCFileDiffChange_Untracked:\n      case kGCFileDiffChange_Conflicted: {\n        if ((delta.change != kGCFileDiffChange_Untracked) && ![self clearConflictForFile:delta.canonicalPath inIndex:index error:error]) {\n          return NO;\n        }\n        if (delta.submodule) {\n          GCSubmodule* submodule = [self lookupSubmoduleWithName:delta.canonicalPath error:error];\n          if (!submodule || ![self addSubmoduleToRepositoryIndex:submodule error:error]) {\n            BOOL wasJustTryingToStageAnUntrackedSubmodule = error && [[*error localizedDescription] hasSuffix:@\"' has not been added yet\"];\n\n            if (!wasJustTryingToStageAnUntrackedSubmodule) {\n              return NO;\n            }\n          }\n        } else {\n          if (![self addFileInWorkingDirectory:delta.canonicalPath toIndex:index error:error]) {\n            BOOL wasJustTryingToStageADeletedConflictingFile =\n                delta.change == kGCFileDiffChange_Conflicted && (error && [[*error localizedDescription] isEqualToString:@\"No such file or directory\"]);\n\n            if (!wasJustTryingToStageADeletedConflictingFile) {\n              return NO;\n            }\n          }\n        }\n        break;\n      }\n\n      default:\n        XLOG_DEBUG_UNREACHABLE();\n        break;\n    }\n  }\n  return [self writeRepositoryIndex:index error:error];\n}\n\n- (BOOL)cleanWorkingDirectory:(NSError**)error {\n  GCDiff* diff = [self diffWorkingDirectoryWithRepositoryIndex:nil options:kGCDiffOption_IncludeUntracked maxInterHunkLines:0 maxContextLines:0 error:error];\n  if (diff == nil) {\n    return NO;\n  }\n  for (GCDiffDelta* delta in diff.deltas) {\n    if (delta.change == kGCFileDiffChange_Untracked) {\n      if (![self safeDeleteFile:delta.canonicalPath error:error]) {\n        return NO;\n      }\n    }\n  }\n  return YES;\n}\n\n// We can't use git_checkout_tree() because it updates the working directory according to the target not the index\n- (BOOL)syncWorkingDirectoryWithIndex:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (!index) {\n    return NO;\n  }\n  GCDiff* diff = [self diffWorkingDirectoryWithIndex:index filePattern:nil options:kGCDiffOption_IncludeUntracked maxInterHunkLines:0 maxContextLines:0 error:error];\n  if (diff == nil) {\n    return NO;\n  }\n  for (GCDiffDelta* delta in diff.deltas) {\n    switch (delta.change) {\n      case kGCFileDiffChange_Untracked:\n        if (![self safeDeleteFile:delta.canonicalPath error:error]) {\n          return NO;\n        }\n        break;\n\n      case kGCFileDiffChange_Deleted:\n      case kGCFileDiffChange_Modified:\n      case kGCFileDiffChange_Conflicted:\n        if (![self clearConflictForFile:delta.canonicalPath inIndex:index error:error]) {\n          return NO;\n        }\n        if (delta.submodule) {\n          GCSubmodule* submodule = [self lookupSubmoduleWithName:delta.canonicalPath error:error];\n          if (!submodule || ![self updateSubmodule:submodule force:YES error:error]) {\n            return NO;\n          }\n        } else {\n          if (![self safeDeleteFileIfExists:delta.canonicalPath error:error] || ![self checkoutFileToWorkingDirectory:delta.canonicalPath fromIndex:index error:error]) {\n            return NO;\n          }\n        }\n        break;\n\n      default:\n        XLOG_DEBUG_UNREACHABLE();\n        break;\n    }\n  }\n  return YES;\n}\n\n// Partial reimplementation of git_reset(GIT_RESET_HARD)\n- (BOOL)forceCheckoutHEAD:(BOOL)recursive error:(NSError**)error {\n  GCIndex* index = [self readRepositoryIndex:error];\n  if (!index) {\n    return NO;\n  }\n  GCCommit* headCommit;\n  if (![self lookupHEADCurrentCommit:&headCommit branch:NULL error:error]) {\n    return NO;\n  }\n  GCCheckoutOptions options = kGCCheckoutOption_Force | kGCCheckoutOption_RemoveUntrackedFiles;\n  if (recursive) {\n    options |= kGCCheckoutOption_UpdateSubmodulesRecursively;\n  }\n  return [self resetIndex:index toTreeForCommit:headCommit error:error] && [self checkoutTreeForCommit:nil withBaseline:nil options:options error:error];\n}\n\n/*\n - GitHub: https://github.com/git-up/git-up.github.io\n - BitBucket: https://bitbucket.org/gitup/test\n - GitLab: https://gitlab.com/gitup/GitUp-Mac\n*/\n- (NSURL*)_projectHostingURLForRemote:(GCRemote*)remote service:(GCHostingService*)service error:(NSError**)error {\n  NSString* value = GCGitURLFromURL(remote.URL);\n  if (value == nil) {\n    XLOG_DEBUG_UNREACHABLE();\n    GC_SET_GENERIC_ERROR(@\"Invalid remote URL\");\n    return nil;\n  }\n  if ([value hasSuffix:@\".git\"]) {\n    if ([value hasPrefix:@\"ssh://\"]) {\n      value = [value substringFromIndex:6];\n    }\n    if ([value hasPrefix:@\"git@\"]) {\n      if ([value hasPrefix:@\"git@github.com:\"] && [value hasSuffix:@\".git\"]) {  // git@github.com:git-up/git-up.github.io.git\n        if (service) {\n          *service = kGCHostingService_GitHub;\n        }\n        return [NSURL URLWithString:[@\"https://github.com/\" stringByAppendingString:[value substringWithRange:NSMakeRange(15, value.length - 15 - 4)]]];\n      }\n      if ([value hasPrefix:@\"git@bitbucket.org:\"] && [value hasSuffix:@\".git\"]) {  // git@bitbucket.org:gitup/test.git\n        if (service) {\n          *service = kGCHostingService_BitBucket;\n        }\n        return [NSURL URLWithString:[@\"https://bitbucket.org/\" stringByAppendingString:[value substringWithRange:NSMakeRange(18, value.length - 18 - 4)]]];\n      }\n      if ([value hasPrefix:@\"git@gitlab.com:\"] && [value hasSuffix:@\".git\"]) {  // git@gitlab.com:gitup/GitUp-Mac.git\n        if (service) {\n          *service = kGCHostingService_GitLab;\n        }\n        return [NSURL URLWithString:[@\"https://gitlab.com/\" stringByAppendingString:[value substringWithRange:NSMakeRange(15, value.length - 15 - 4)]]];\n      }\n    }\n    if ([value hasPrefix:@\"https://\"]) {\n      NSURL* url = [NSURL URLWithString:value];\n\n      if ([url.host isEqualToString:@\"github.com\"]) {  // https://github.com/git-up/git-up.github.io.git\n        if (service) {\n          *service = kGCHostingService_GitHub;\n        }\n        return [NSURL URLWithString:[NSString stringWithFormat:@\"https://github.com%@\", [url.path substringToIndex:(url.path.length - 4)]]];\n      }\n      if ([url.host isEqualToString:@\"bitbucket.org\"]) {  // https://user@bitbucket.org/gitup/test.git\n        if (service) {\n          *service = kGCHostingService_BitBucket;\n        }\n        return [NSURL URLWithString:[NSString stringWithFormat:@\"https://bitbucket.org%@\", [url.path substringToIndex:(url.path.length - 4)]]];\n      }\n      if ([url.host isEqualToString:@\"gitlab.com\"]) {  // https://gitlab.com/gitup/GitUp-Mac.git\n        if (service) {\n          *service = kGCHostingService_GitLab;\n        }\n        return [NSURL URLWithString:[NSString stringWithFormat:@\"https://gitlab.com%@\", [url.path substringToIndex:(url.path.length - 4)]]];\n      }\n    }\n  }\n\n  GC_SET_GENERIC_ERROR(@\"Origin remote on unknown service\");\n  return nil;\n}\n\n- (NSURL*)hostingURLForProject:(GCHostingService*)service error:(NSError**)error {\n  GCRemote* remote = [self lookupRemoteWithName:@\"origin\" error:error];\n  return remote ? [self _projectHostingURLForRemote:remote service:service error:error] : nil;\n}\n\n/*\n - GitHub: https://github.com/git-up/libgit2/commit/53f05c1c471a30a69a5bf2a6684fe713b2a87051\n - BitBucket: https://bitbucket.org/gitup/test/commits/27ecc64aacbdded365e2d4624aa32fad1a46a73d\n - GitLab: https://gitlab.com/gitup/GitUp-Mac/commit/ff9de47bc9a6aea05a96d5352701966b6928d949\n*/\n// TODO: This assumes the commit is available on the \"origin\" remote\n- (NSURL*)hostingURLForCommit:(GCCommit*)commit service:(GCHostingService*)service error:(NSError**)error {\n  GCHostingService localService;\n  NSURL* url = [self hostingURLForProject:&localService error:error];\n  if (url == nil) {\n    return nil;\n  }\n  switch (localService) {\n    case kGCHostingService_GitHub:\n    case kGCHostingService_GitLab:\n      url = [NSURL URLWithString:[url.absoluteString stringByAppendingFormat:@\"/commit/%@\", commit.SHA1]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_BitBucket:\n      url = [NSURL URLWithString:[url.absoluteString stringByAppendingFormat:@\"/commits/%@\", commit.SHA1]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_Unknown:\n      XLOG_DEBUG_UNREACHABLE();\n      break;\n  }\n  if (service) {\n    *service = localService;\n  }\n  return url;\n}\n\n/*\n - GitHub: https://github.com/git-up/libgit2/tree/gitup\n - BitBucket: https://bitbucket.org/gitup/test/branch/topic\n - GitLab: https://gitlab.com/gitup/GitUp-Mac/tree/igraph\n*/\n- (NSURL*)hostingURLForRemoteBranch:(GCRemoteBranch*)branch service:(GCHostingService*)service error:(NSError**)error {\n  NSString* name;\n  GCRemote* remote = [self lookupRemoteForRemoteBranch:branch sourceBranchName:&name error:error];\n  if (remote == nil) {\n    return nil;\n  }\n  GCHostingService localService;\n  NSURL* url = [self _projectHostingURLForRemote:remote service:&localService error:error];\n  if (url == nil) {\n    return nil;\n  }\n  switch (localService) {\n    case kGCHostingService_GitHub:\n    case kGCHostingService_GitLab:\n      url = [NSURL URLWithString:[url.absoluteString stringByAppendingFormat:@\"/tree/%@\", name]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_BitBucket:\n      url = [NSURL URLWithString:[url.absoluteString stringByAppendingFormat:@\"/branch/%@\", name]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_Unknown:\n      XLOG_DEBUG_UNREACHABLE();\n      break;\n  }\n  if (service) {\n    *service = localService;\n  }\n  return url;\n}\n\n/*\n - GitHub: https://github.com/git-up/libgit2/pull/new/gitup\n           https://github.com/git-up/libgit2/compare/gitup?expand=1\n           https://github.com/git-up/libgit2/compare/master...gitup?expand=1\n           https://github.com/libgit2/libgit2/compare/master...git-up:gitup?expand=1\n - BitBucket: https://bitbucket.org/gitup/test/pull-request/new?source=gitup/test%3A%3Atopic&dest=gitup/test%3A%3Amaster\n              https://bitbucket.org/gitup/test/pull-request/new?source=gitup/test::topic&dest=gitup/test::master\n - GitLab: https://gitlab.com/gitup/GitUp-Mac/merge_requests/new?merge_request%5Bsource_branch%5D=igraph&merge_request%5Btarget_branch%5D=master\n           https://gitlab.com/gitup/GitUp-Mac/merge_requests/new?merge_request[source_branch]=igraph&merge_request[target_branch]=master\n           https://gitlab.com/gitup/GitUp-Mac/merge_requests/new?merge_request%5Bsource_branch%5D=new_graph&merge_request%5Bsource_project_id%5D=251119&merge_request%5Btarget_branch%5D=&merge_request%5Btarget_project_id%5D=251119\n           https://gitlab.com/gitup/GitUp-Mac/merge_requests/new?merge_request[source_branch]=new_graph&merge_request[source_project_id]=251119&merge_request[target_branch]=&merge_request[target_project_id]=251119\n*/\n- (NSURL*)hostingURLForPullRequestFromRemoteBranch:(GCRemoteBranch*)fromBranch toBranch:(GCRemoteBranch*)toBranch service:(GCHostingService*)service error:(NSError**)error {\n  NSString* fromName;\n  GCRemote* fromRemote = [self lookupRemoteForRemoteBranch:fromBranch sourceBranchName:&fromName error:error];\n  if (fromRemote == nil) {\n    return nil;\n  }\n  GCHostingService fromService;\n  NSURL* fromURL = [self _projectHostingURLForRemote:fromRemote service:&fromService error:error];\n  if (fromURL == nil) {\n    return nil;\n  }\n\n  NSString* toName;\n  GCRemote* toRemote = [self lookupRemoteForRemoteBranch:toBranch sourceBranchName:&toName error:error];\n  if (toRemote == nil) {\n    return nil;\n  }\n  GCHostingService toService;\n  NSURL* toURL = [self _projectHostingURLForRemote:toRemote service:&toService error:error];\n  if (toURL == nil) {\n    return nil;\n  }\n\n  if (fromService != toService) {\n    GC_SET_GENERIC_ERROR(@\"Branches are on different hosting services\");\n    return nil;\n  }\n\n  NSURL* url = nil;\n  switch (fromService) {\n    case kGCHostingService_GitHub:\n      url = [NSURL URLWithString:[toURL.absoluteString stringByAppendingFormat:@\"/compare/%@...%@:%@?expand=1\", toName, fromURL.path.pathComponents[1], fromName]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_BitBucket:\n      url = [NSURL URLWithString:[fromURL.absoluteString stringByAppendingFormat:@\"/pull-request/new?source=%@%%3A%%3A%@&dest=%@%%3A%%3A%@\", [fromURL.path substringFromIndex:1], fromName, [toURL.path substringFromIndex:1], toName]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_GitLab:\n      if (![toURL.path isEqualToString:fromURL.path]) {\n        GC_SET_GENERIC_ERROR(@\"Branches for GitLab merge request are not in the same project\");  // TODO: GitLab supports cross-project merge requests but we need to know the project IDs\n        return nil;\n      }\n      url = [NSURL URLWithString:[fromURL.absoluteString stringByAppendingFormat:@\"/merge_requests/new?merge_request%%5Bsource_branch%%5D=%@&merge_request%%5Btarget_branch%%5D=%@\", fromName, toName]];  // Using relative URLs doesn't work\n      break;\n\n    case kGCHostingService_Unknown:\n      XLOG_DEBUG_UNREACHABLE();\n      break;\n  }\n  if (service) {\n    *service = fromService;\n  }\n  return url;\n}\n\n- (BOOL)safeDeleteFileIfExists:(NSString*)path error:(NSError**)error {\n  return ![[NSFileManager defaultManager] fileExistsAtPath:[self absolutePathForFile:path] followLastSymlink:NO] || [self safeDeleteFile:path error:error];\n}\n\n- (NSMutableDictionary*)_readUserInfo {\n  NSMutableDictionary* dictionary = objc_getAssociatedObject(self, _associatedObjectKey);\n  if (dictionary == nil) {\n    dictionary = [[NSMutableDictionary alloc] init];\n    objc_setAssociatedObject(self, _associatedObjectKey, dictionary, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n\n    NSString* path = [self.privateAppDirectoryPath stringByAppendingPathComponent:kUserInfoFileName];\n    if (path) {\n      NSData* data = [NSData dataWithContentsOfFile:path];\n      if (data) {\n        NSError* error;\n        NSDictionary* plist = [NSPropertyListSerialization propertyListWithData:data options:NSPropertyListImmutable format:NULL error:&error];\n        if (plist) {\n          [dictionary addEntriesFromDictionary:plist];\n        } else {\n          XLOG_ERROR(@\"Failed reading user info for repository \\\"%@\\\": %@\", self.repositoryPath, error);\n        }\n      }\n    }\n  }\n  return dictionary;\n}\n\n- (void)_writeUserInfo {\n  NSMutableDictionary* dictionary = objc_getAssociatedObject(self, _associatedObjectKey);\n  NSString* path = [self.privateAppDirectoryPath stringByAppendingPathComponent:kUserInfoFileName];\n  if (path) {\n    NSError* error;\n    NSData* data = [NSPropertyListSerialization dataWithPropertyList:dictionary format:NSPropertyListXMLFormat_v1_0 options:0 error:&error];\n    if (![data writeToFile:path options:NSDataWritingAtomic error:&error]) {\n      XLOG_ERROR(@\"Failed writing user info for repository \\\"%@\\\": %@\", self.repositoryPath, error);\n    }\n  }\n}\n\n- (void)setUserInfo:(id)info forKey:(NSString*)key {\n  [[self _readUserInfo] setValue:info forKey:key];\n  [self _writeUserInfo];\n}\n\n- (id)userInfoForKey:(NSString*)key {\n  return [[self _readUserInfo] objectForKey:key];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/GitUpKit.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n// Core\n#import <GitUpKit/GCCore.h>\n\n// Extensions\n#import <GitUpKit/GCHistory+Rewrite.h>\n#import <GitUpKit/GCRepository+Index.h>\n#import <GitUpKit/GCRepository+Utilities.h>\n\n// Interface\n#import <GitUpKit/GIInterface.h>\n\n#if __GI_HAS_APPKIT__\n\n// Utilities\n#import <GitUpKit/GIAppKit.h>\n#import <GitUpKit/GIColorView.h>\n#import <GitUpKit/GICustomToolbarItem.h>\n#import <GitUpKit/GILaunchServicesLocator.h>\n#import <GitUpKit/GILinkButton.h>\n#import <GitUpKit/GIModalView.h>\n#import <GitUpKit/GIViewController.h>\n#import <GitUpKit/GIViewController+Utilities.h>\n#import <GitUpKit/GIWindowController.h>\n\n// Components\n#import <GitUpKit/GICommitListViewController.h>\n#import <GitUpKit/GIDiffContentsViewController.h>\n#import <GitUpKit/GIDiffFilesViewController.h>\n#import <GitUpKit/GISnapshotListViewController.h>\n#import <GitUpKit/GIUnifiedReflogViewController.h>\n\n// Views\n#import <GitUpKit/GIAdvancedCommitViewController.h>\n#import <GitUpKit/GICommitRewriterViewController.h>\n#import <GitUpKit/GICommitSplitterViewController.h>\n#import <GitUpKit/GICommitViewController.h>\n#import <GitUpKit/GIConfigViewController.h>\n#import <GitUpKit/GIConflictResolverViewController.h>\n#import <GitUpKit/GIDiffViewController.h>\n#import <GitUpKit/GIMapViewController.h>\n#import <GitUpKit/GIMapViewController+Operations.h>\n#import <GitUpKit/GIQuickViewController.h>\n#import <GitUpKit/GISimpleCommitViewController.h>\n#import <GitUpKit/GIStashListViewController.h>\n\n#import <GitUpKit/XLFacilityMacros.h>\n\n#endif\n"
  },
  {
    "path": "GitUpKit/GitUpKit.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 54;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t0A1DA51E265806140041E737 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A1DA51D265806140041E737 /* Security.framework */; };\n\t\t0A4881D726C7B4CF00289CF9 /* Libgit2Origin in Frameworks */ = {isa = PBXBuildFile; productRef = 0A4881D626C7B4CF00289CF9 /* Libgit2Origin */; };\n\t\t0AC8525923A122C400479160 /* GILaunchServicesLocator.h in Headers */ = {isa = PBXBuildFile; fileRef = 0AC8525723A122C400479160 /* GILaunchServicesLocator.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t0AC8525A23A122C400479160 /* GILaunchServicesLocator.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AC8525823A122C400479160 /* GILaunchServicesLocator.m */; };\n\t\t1D615D81286BEDC600FFF7E7 /* XLFacilityMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 1D615D7E286BE79200FFF7E7 /* XLFacilityMacros.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t1D615D82286BEDCE00FFF7E7 /* XLFacilityMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = 1D615D7E286BE79200FFF7E7 /* XLFacilityMacros.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t1D841F782B955C3800E4FCCC /* GIRemappingExplanationPopover.h in Headers */ = {isa = PBXBuildFile; fileRef = 1D841F752B955C3800E4FCCC /* GIRemappingExplanationPopover.h */; };\n\t\t1D841F792B955C3800E4FCCC /* GIRemappingExplanationPopover.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D841F762B955C3800E4FCCC /* GIRemappingExplanationPopover.m */; };\n\t\t1D841F7A2B955C3800E4FCCC /* GIRemappingExplanationViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1D841F772B955C3800E4FCCC /* GIRemappingExplanationViewController.xib */; };\n\t\t1DADC0DA25A25D54008C2C35 /* libsqlite3.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE637256B08D300F96DAF /* libsqlite3.xcframework */; };\n\t\t1DADC0DE25A25D5D008C2C35 /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE654256B095000F96DAF /* libiconv.tbd */; };\n\t\t1DADC0E225A25D63008C2C35 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE64C256B094000F96DAF /* libz.tbd */; };\n\t\t1DC7FB2A28748D1200D2FD4C /* Libgit2Origin in Frameworks */ = {isa = PBXBuildFile; productRef = 1DC7FB2928748D1200D2FD4C /* Libgit2Origin */; };\n\t\t1DF371CD22F5262300EF7BD9 /* GCLiveRepository+Utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = 1DF371CB22F5262300EF7BD9 /* GCLiveRepository+Utilities.h */; };\n\t\t1DF371CE22F5262300EF7BD9 /* GCLiveRepository+Utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 1DF371CC22F5262300EF7BD9 /* GCLiveRepository+Utilities.m */; };\n\t\t6D8E3F0B25D90E1300AAFC17 /* GIImageDiffView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D8E3F0A25D90E1300AAFC17 /* GIImageDiffView.m */; };\n\t\t6D8E3F1025D90E3400AAFC17 /* GIImageDiffView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6D8E3F0F25D90E3400AAFC17 /* GIImageDiffView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t743BF1841B871C0200E1CA49 /* GCOrderedSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 74EDB5D01B84D4C400F00E79 /* GCOrderedSet.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t749335CA1B9B7FF200225513 /* GCOrderedSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 74EDB5D11B84D4C400F00E79 /* GCOrderedSet.m */; };\n\t\t749786941B85AAB10065BD55 /* GCOrderedSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 74EDB5D11B84D4C400F00E79 /* GCOrderedSet.m */; };\n\t\t74EDB5D61B84E06500F00E79 /* GCOrderedSet-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 74EDB5D51B84E06500F00E79 /* GCOrderedSet-Tests.m */; };\n\t\t74EDB5D71B8517F500F00E79 /* GCOrderedSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 74EDB5D11B84D4C400F00E79 /* GCOrderedSet.m */; };\n\t\tDB7CBCA225762721001185AA /* GICustomToolbarItem.h in Headers */ = {isa = PBXBuildFile; fileRef = DB7CBCA025762721001185AA /* GICustomToolbarItem.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tDB7CBCA325762721001185AA /* GICustomToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = DB7CBCA125762721001185AA /* GICustomToolbarItem.m */; };\n\t\tDBBEE638256B08D300F96DAF /* libsqlite3.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE637256B08D300F96DAF /* libsqlite3.xcframework */; };\n\t\tDBBEE64D256B094000F96DAF /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE64C256B094000F96DAF /* libz.tbd */; };\n\t\tDBBEE655256B095000F96DAF /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE654256B095000F96DAF /* libiconv.tbd */; };\n\t\tDBBEE66A256B099300F96DAF /* libsqlite3.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE637256B08D300F96DAF /* libsqlite3.xcframework */; };\n\t\tDBBEE674256B09B500F96DAF /* libiconv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE654256B095000F96DAF /* libiconv.tbd */; };\n\t\tDBBEE675256B09B500F96DAF /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = DBBEE64C256B094000F96DAF /* libz.tbd */; };\n\t\tDBCF675722CAE12500969D4A /* NSColor+GINamedColors.h in Headers */ = {isa = PBXBuildFile; fileRef = DBDFBC1A22B61290003EEC6C /* NSColor+GINamedColors.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tDBDFBC0C22B610F1003EEC6C /* Interface.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DBDFBC0B22B610F1003EEC6C /* Interface.xcassets */; };\n\t\tDBDFBC0F22B61135003EEC6C /* NSBundle+GitUpKit.h in Headers */ = {isa = PBXBuildFile; fileRef = DBDFBC0D22B61135003EEC6C /* NSBundle+GitUpKit.h */; };\n\t\tDBDFBC1022B61135003EEC6C /* NSBundle+GitUpKit.h in Headers */ = {isa = PBXBuildFile; fileRef = DBDFBC0D22B61135003EEC6C /* NSBundle+GitUpKit.h */; };\n\t\tDBDFBC1122B61135003EEC6C /* NSBundle+GitUpKit.m in Sources */ = {isa = PBXBuildFile; fileRef = DBDFBC0E22B61135003EEC6C /* NSBundle+GitUpKit.m */; };\n\t\tDBDFBC1222B61135003EEC6C /* NSBundle+GitUpKit.m in Sources */ = {isa = PBXBuildFile; fileRef = DBDFBC0E22B61135003EEC6C /* NSBundle+GitUpKit.m */; };\n\t\tDBDFBC1D22B61290003EEC6C /* NSColor+GINamedColors.m in Sources */ = {isa = PBXBuildFile; fileRef = DBDFBC1B22B61290003EEC6C /* NSColor+GINamedColors.m */; };\n\t\tDC040FC52BC9FECC00DF54D5 /* GCLiveRepository-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = DC040FC42BC9FECC00DF54D5 /* GCLiveRepository-Tests.m */; };\n\t\tDC040FCA2BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m in Sources */ = {isa = PBXBuildFile; fileRef = DC040FC92BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m */; };\n\t\tDC040FCB2BCB21D000DF54D5 /* GCLiveRepository+Conflicts.h in Headers */ = {isa = PBXBuildFile; fileRef = DC040FC82BCB21D000DF54D5 /* GCLiveRepository+Conflicts.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tDC040FCC2BCB22FC00DF54D5 /* GCLiveRepository+Conflicts.m in Sources */ = {isa = PBXBuildFile; fileRef = DC040FC92BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m */; };\n\t\tDC040FCD2BCB417A00DF54D5 /* GCLiveRepository+Conflicts.m in Sources */ = {isa = PBXBuildFile; fileRef = DC040FC92BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m */; };\n\t\tE200A3BA1B02DDA100C4E39D /* GCPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = E200A3B81B02DDA100C4E39D /* GCPrivate.m */; };\n\t\tE20EB08C19FC75CA0031A075 /* GCRepository+Reset.m in Sources */ = {isa = PBXBuildFile; fileRef = E20EB08A19FC75CA0031A075 /* GCRepository+Reset.m */; };\n\t\tE20EB09019FC76160031A075 /* GCRepository+Status.m in Sources */ = {isa = PBXBuildFile; fileRef = E20EB08E19FC76160031A075 /* GCRepository+Status.m */; };\n\t\tE20F10F41A043E2100076AAC /* GCHistory.m in Sources */ = {isa = PBXBuildFile; fileRef = E20F10F21A043E2100076AAC /* GCHistory.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE2146C8F1A57F3BC00F4550B /* GCObject.m in Sources */ = {isa = PBXBuildFile; fileRef = E2146C8D1A57F3BC00F4550B /* GCObject.m */; };\n\t\tE21739F41A4FE39E00EC6777 /* GCFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739F21A4FE39E00EC6777 /* GCFunctions.m */; };\n\t\tE21739FF1A51FA6200EC6777 /* GCSubmodule.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739FD1A51FA6200EC6777 /* GCSubmodule.m */; };\n\t\tE21753421B91626B00BE234A /* GCBranch.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338DB19F85C8600063D95 /* GCBranch.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753431B91626B00BE234A /* GCCommit.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338DD19F85C8600063D95 /* GCCommit.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753441B91626B00BE234A /* GCCommitDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = E2FEED441AEAA6AD00CBED80 /* GCCommitDatabase.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753451B91626B00BE234A /* GCCore.h in Headers */ = {isa = PBXBuildFile; fileRef = E20EB09519FC76AE0031A075 /* GCCore.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753461B91626B00BE234A /* GCDiff.h in Headers */ = {isa = PBXBuildFile; fileRef = E2B14B5C1A8A764400003E64 /* GCDiff.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753471B91626B00BE234A /* GCError.h in Headers */ = {isa = PBXBuildFile; fileRef = E2146C901A58849F00F4550B /* GCError.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753481B91626B00BE234A /* GCFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = E2790D401ACB1B1100965A98 /* GCFoundation.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753491B91626B00BE234A /* GCFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = E21739F11A4FE39E00EC6777 /* GCFunctions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217534A1B91626B00BE234A /* GCHistory.h in Headers */ = {isa = PBXBuildFile; fileRef = E20F10F11A043E2100076AAC /* GCHistory.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217534B1B91626B00BE234A /* GCIndex.h in Headers */ = {isa = PBXBuildFile; fileRef = E2790D4B1ACF130A00965A98 /* GCIndex.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217534D1B91626B00BE234A /* GCMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = E244538F1A70CDA200E61DE7 /* GCMacros.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217534E1B91626B00BE234A /* GCObject.h in Headers */ = {isa = PBXBuildFile; fileRef = E2146C8C1A57F3BC00F4550B /* GCObject.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217534F1B91626B00BE234A /* GCReference.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E019F85C8600063D95 /* GCReference.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753501B91626B00BE234A /* GCReferenceTransform.h in Headers */ = {isa = PBXBuildFile; fileRef = E218A5881A566F6A00DFF1DF /* GCReferenceTransform.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753511B91626C00BE234A /* GCReflogMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = E2146C911A58D83100F4550B /* GCReflogMessages.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753521B91626C00BE234A /* GCRemote.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E219F85C8600063D95 /* GCRemote.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753531B91626C00BE234A /* GCRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E419F85C8600063D95 /* GCRepository.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753541B91626C00BE234A /* GCRepository+Bare.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C3AA5919FF0B0600BA89F3 /* GCRepository+Bare.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753551B91626C00BE234A /* GCRepository+Config.h in Headers */ = {isa = PBXBuildFile; fileRef = E24508FE1A9A50EA003E602D /* GCRepository+Config.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753561B91626C00BE234A /* GCRepository+HEAD.h in Headers */ = {isa = PBXBuildFile; fileRef = E27F9B721A549097009C9B3D /* GCRepository+HEAD.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753571B91626C00BE234A /* GCRepository+Mock.h in Headers */ = {isa = PBXBuildFile; fileRef = E299D0111A749C26005035F7 /* GCRepository+Mock.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753581B91626C00BE234A /* GCRepository+Reflog.h in Headers */ = {isa = PBXBuildFile; fileRef = E27B6D641A84451900D05452 /* GCRepository+Reflog.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753591B91626C00BE234A /* GCRepository+Reset.h in Headers */ = {isa = PBXBuildFile; fileRef = E20EB08919FC75CA0031A075 /* GCRepository+Reset.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217535A1B91626C00BE234A /* GCRepository+Status.h in Headers */ = {isa = PBXBuildFile; fileRef = E20EB08D19FC76160031A075 /* GCRepository+Status.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217535B1B91626C00BE234A /* GCSnapshot.h in Headers */ = {isa = PBXBuildFile; fileRef = E2F5C27C1A8171C900C30739 /* GCSnapshot.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217535C1B91626C00BE234A /* GCSQLiteRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = E299D00D1A71F937005035F7 /* GCSQLiteRepository.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217535D1B91626C00BE234A /* GCStash.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E619F85C8600063D95 /* GCStash.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217535E1B91626C00BE234A /* GCSubmodule.h in Headers */ = {isa = PBXBuildFile; fileRef = E21739FC1A51FA6200EC6777 /* GCSubmodule.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE217535F1B91626C00BE234A /* GCTag.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E819F85C8600063D95 /* GCTag.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753601B9162B600BE234A /* GCHistory+Rewrite.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D414891A02D68700B99634 /* GCHistory+Rewrite.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753611B9162B600BE234A /* GCRepository+Index.h in Headers */ = {isa = PBXBuildFile; fileRef = E2790D451ACF12E200965A98 /* GCRepository+Index.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753621B9162B600BE234A /* GCRepository+Utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = E218A58C1A56706600DFF1DF /* GCRepository+Utilities.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753631B9162D100BE234A /* GitUpKit.h in Headers */ = {isa = PBXBuildFile; fileRef = E267E1AA1B84D6C500BAB377 /* GitUpKit.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE21753661B91634C00BE234A /* GCBranch.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338DC19F85C8600063D95 /* GCBranch.m */; };\n\t\tE21753671B91634C00BE234A /* GCCommit.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338DE19F85C8600063D95 /* GCCommit.m */; };\n\t\tE21753681B91634C00BE234A /* GCCommitDatabase.m in Sources */ = {isa = PBXBuildFile; fileRef = E2FEED451AEAA6AD00CBED80 /* GCCommitDatabase.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE21753691B91634C00BE234A /* GCDiff.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B14B5D1A8A764400003E64 /* GCDiff.m */; };\n\t\tE217536A1B91634C00BE234A /* GCFoundation.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D411ACB1B1100965A98 /* GCFoundation.m */; };\n\t\tE217536B1B91634C00BE234A /* GCFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739F21A4FE39E00EC6777 /* GCFunctions.m */; };\n\t\tE217536C1B91634C00BE234A /* GCHistory.m in Sources */ = {isa = PBXBuildFile; fileRef = E20F10F21A043E2100076AAC /* GCHistory.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE217536D1B91634C00BE234A /* GCIndex.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D4C1ACF130A00965A98 /* GCIndex.m */; };\n\t\tE217536F1B91634C00BE234A /* GCObject.m in Sources */ = {isa = PBXBuildFile; fileRef = E2146C8D1A57F3BC00F4550B /* GCObject.m */; };\n\t\tE21753701B91634C00BE234A /* GCPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = E200A3B81B02DDA100C4E39D /* GCPrivate.m */; };\n\t\tE21753711B91634C00BE234A /* GCReference.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E119F85C8600063D95 /* GCReference.m */; };\n\t\tE21753721B91634C00BE234A /* GCReferenceTransform.m in Sources */ = {isa = PBXBuildFile; fileRef = E218A5891A566F6A00DFF1DF /* GCReferenceTransform.m */; };\n\t\tE21753741B91634C00BE234A /* GCRemote.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E319F85C8600063D95 /* GCRemote.m */; };\n\t\tE21753751B91634C00BE234A /* GCRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E519F85C8600063D95 /* GCRepository.m */; };\n\t\tE21753761B91634C00BE234A /* GCRepository+Bare.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C3AA5A19FF0B0600BA89F3 /* GCRepository+Bare.m */; };\n\t\tE21753771B91634C00BE234A /* GCRepository+Config.m in Sources */ = {isa = PBXBuildFile; fileRef = E24508FF1A9A50EA003E602D /* GCRepository+Config.m */; };\n\t\tE21753781B91634C00BE234A /* GCRepository+HEAD.m in Sources */ = {isa = PBXBuildFile; fileRef = E27F9B731A549097009C9B3D /* GCRepository+HEAD.m */; };\n\t\tE21753791B91634C00BE234A /* GCRepository+Mock.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D0121A749C26005035F7 /* GCRepository+Mock.m */; };\n\t\tE217537A1B91634C00BE234A /* GCRepository+Reflog.m in Sources */ = {isa = PBXBuildFile; fileRef = E27B6D651A84451900D05452 /* GCRepository+Reflog.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE217537B1B91634C00BE234A /* GCRepository+Reset.m in Sources */ = {isa = PBXBuildFile; fileRef = E20EB08A19FC75CA0031A075 /* GCRepository+Reset.m */; };\n\t\tE217537C1B91634C00BE234A /* GCRepository+Status.m in Sources */ = {isa = PBXBuildFile; fileRef = E20EB08E19FC76160031A075 /* GCRepository+Status.m */; };\n\t\tE217537D1B91634C00BE234A /* GCSnapshot.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F5C27D1A8171C900C30739 /* GCSnapshot.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE217537E1B91634C00BE234A /* GCSQLiteRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D00A1A71F0E9005035F7 /* GCSQLiteRepository.m */; };\n\t\tE217537F1B91634C00BE234A /* GCStash.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E719F85C8600063D95 /* GCStash.m */; };\n\t\tE21753801B91634C00BE234A /* GCSubmodule.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739FD1A51FA6200EC6777 /* GCSubmodule.m */; };\n\t\tE21753811B91634C00BE234A /* GCTag.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E919F85C8600063D95 /* GCTag.m */; };\n\t\tE21753821B91635800BE234A /* GCHistory+Rewrite.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4148A1A02D68700B99634 /* GCHistory+Rewrite.m */; };\n\t\tE21753831B91635800BE234A /* GCRepository+Index.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D461ACF12E200965A98 /* GCRepository+Index.m */; };\n\t\tE21753841B91635800BE234A /* GCRepository+Utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = E218A58D1A56706600DFF1DF /* GCRepository+Utilities.m */; };\n\t\tE218A58B1A566F6A00DFF1DF /* GCReferenceTransform.m in Sources */ = {isa = PBXBuildFile; fileRef = E218A5891A566F6A00DFF1DF /* GCReferenceTransform.m */; };\n\t\tE218A58F1A56706600DFF1DF /* GCRepository+Utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = E218A58D1A56706600DFF1DF /* GCRepository+Utilities.m */; };\n\t\tE21A88F41A9471B300255AC3 /* GIPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = E21A88F21A9471B300255AC3 /* GIPrivate.m */; };\n\t\tE23C1A8C1A9019610060F6AD /* GCLiveRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E23C1A8A1A9019610060F6AD /* GCLiveRepository.m */; };\n\t\tE24509031A9A50F3003E602D /* GCRepository+Config-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E24509021A9A50F3003E602D /* GCRepository+Config-Tests.m */; };\n\t\tE24509041A9A5F1D003E602D /* GCRepository+Config.m in Sources */ = {isa = PBXBuildFile; fileRef = E24508FF1A9A50EA003E602D /* GCRepository+Config.m */; };\n\t\tE259C2C51A64C8EA0079616B /* GCTestCase.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2C41A64C8EA0079616B /* GCTestCase.m */; };\n\t\tE259C2C71A64C9980079616B /* GCRepository-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2C61A64C9980079616B /* GCRepository-Tests.m */; };\n\t\tE259C2C91A64CAB30079616B /* GCSubmodule-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2C81A64CAB30079616B /* GCSubmodule-Tests.m */; };\n\t\tE259C2CB1A64D27F0079616B /* GCTag-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2CA1A64D27F0079616B /* GCTag-Tests.m */; };\n\t\tE259C2CD1A64D30A0079616B /* GCStash-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2CC1A64D30A0079616B /* GCStash-Tests.m */; };\n\t\tE259C2CF1A64F7D00079616B /* GCBranch-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2CE1A64F7D00079616B /* GCBranch-Tests.m */; };\n\t\tE259C2D11A64F9050079616B /* GCRemote-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2D01A64F9050079616B /* GCRemote-Tests.m */; };\n\t\tE259C2D31A64F9FF0079616B /* GCHistory-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2D21A64F9FF0079616B /* GCHistory-Tests.m */; };\n\t\tE259C2D51A64FAA40079616B /* GCHistory+Rewrite-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2D41A64FAA40079616B /* GCHistory+Rewrite-Tests.m */; };\n\t\tE259C2D71A64FAEA0079616B /* GCRepository+Utilities-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2D61A64FAEA0079616B /* GCRepository+Utilities-Tests.m */; };\n\t\tE259C2D91A64FD640079616B /* GCRepository+Bare-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2D81A64FD640079616B /* GCRepository+Bare-Tests.m */; };\n\t\tE259C2DB1A64FDA60079616B /* GCDiff-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2DA1A64FDA60079616B /* GCDiff-Tests.m */; };\n\t\tE259C2DD1A64FDD00079616B /* GCRepository+HEAD-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2DC1A64FDD00079616B /* GCRepository+HEAD-Tests.m */; };\n\t\tE259C2E11A64FE4C0079616B /* GCRepository+Status-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2E01A64FE4C0079616B /* GCRepository+Status-Tests.m */; };\n\t\tE259C2E31A64FE710079616B /* GCRepository+Reset-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2E21A64FE710079616B /* GCRepository+Reset-Tests.m */; };\n\t\tE259C2E51A6624DC0079616B /* GCCommit-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E259C2E41A6624DC0079616B /* GCCommit-Tests.m */; };\n\t\tE267E1AB1B84D6C500BAB377 /* GitUpKit.h in Headers */ = {isa = PBXBuildFile; fileRef = E267E1AA1B84D6C500BAB377 /* GitUpKit.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1B51B84D7D200BAB377 /* GCTag.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E819F85C8600063D95 /* GCTag.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1B61B84D7D500BAB377 /* GCSubmodule.h in Headers */ = {isa = PBXBuildFile; fileRef = E21739FC1A51FA6200EC6777 /* GCSubmodule.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1B71B84D7D800BAB377 /* GCStash.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E619F85C8600063D95 /* GCStash.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1B81B84D7DE00BAB377 /* GCSQLiteRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = E299D00D1A71F937005035F7 /* GCSQLiteRepository.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1B91B84D7E100BAB377 /* GCSnapshot.h in Headers */ = {isa = PBXBuildFile; fileRef = E2F5C27C1A8171C900C30739 /* GCSnapshot.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1BA1B84D80500BAB377 /* GCBranch.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338DB19F85C8600063D95 /* GCBranch.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1BB1B84D80500BAB377 /* GCCommit.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338DD19F85C8600063D95 /* GCCommit.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1BC1B84D80500BAB377 /* GCCommitDatabase.h in Headers */ = {isa = PBXBuildFile; fileRef = E2FEED441AEAA6AD00CBED80 /* GCCommitDatabase.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1BD1B84D80500BAB377 /* GCCore.h in Headers */ = {isa = PBXBuildFile; fileRef = E20EB09519FC76AE0031A075 /* GCCore.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1BE1B84D80500BAB377 /* GCDiff.h in Headers */ = {isa = PBXBuildFile; fileRef = E2B14B5C1A8A764400003E64 /* GCDiff.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1BF1B84D80500BAB377 /* GCFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = E2790D401ACB1B1100965A98 /* GCFoundation.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C01B84D80500BAB377 /* GCFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = E21739F11A4FE39E00EC6777 /* GCFunctions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C11B84D80500BAB377 /* GCHistory.h in Headers */ = {isa = PBXBuildFile; fileRef = E20F10F11A043E2100076AAC /* GCHistory.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C21B84D80500BAB377 /* GCIndex.h in Headers */ = {isa = PBXBuildFile; fileRef = E2790D4B1ACF130A00965A98 /* GCIndex.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C31B84D80500BAB377 /* GCLiveRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = E23C1A891A9019610060F6AD /* GCLiveRepository.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C41B84D80500BAB377 /* GCObject.h in Headers */ = {isa = PBXBuildFile; fileRef = E2146C8C1A57F3BC00F4550B /* GCObject.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C51B84D80500BAB377 /* GCReference.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E019F85C8600063D95 /* GCReference.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C61B84D80500BAB377 /* GCReferenceTransform.h in Headers */ = {isa = PBXBuildFile; fileRef = E218A5881A566F6A00DFF1DF /* GCReferenceTransform.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C71B84D80500BAB377 /* GCReflogMessages.h in Headers */ = {isa = PBXBuildFile; fileRef = E2146C911A58D83100F4550B /* GCReflogMessages.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C81B84D80500BAB377 /* GCRemote.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E219F85C8600063D95 /* GCRemote.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1C91B84D80500BAB377 /* GCRepository.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C338E419F85C8600063D95 /* GCRepository.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1CA1B84D80500BAB377 /* GCRepository+Bare.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C3AA5919FF0B0600BA89F3 /* GCRepository+Bare.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1CB1B84D80500BAB377 /* GCRepository+Config.h in Headers */ = {isa = PBXBuildFile; fileRef = E24508FE1A9A50EA003E602D /* GCRepository+Config.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1CC1B84D80500BAB377 /* GCRepository+HEAD.h in Headers */ = {isa = PBXBuildFile; fileRef = E27F9B721A549097009C9B3D /* GCRepository+HEAD.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1CD1B84D80500BAB377 /* GCRepository+Mock.h in Headers */ = {isa = PBXBuildFile; fileRef = E299D0111A749C26005035F7 /* GCRepository+Mock.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1CE1B84D80500BAB377 /* GCRepository+Reflog.h in Headers */ = {isa = PBXBuildFile; fileRef = E27B6D641A84451900D05452 /* GCRepository+Reflog.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1CF1B84D80500BAB377 /* GCRepository+Reset.h in Headers */ = {isa = PBXBuildFile; fileRef = E20EB08919FC75CA0031A075 /* GCRepository+Reset.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1D01B84D80500BAB377 /* GCRepository+Status.h in Headers */ = {isa = PBXBuildFile; fileRef = E20EB08D19FC76160031A075 /* GCRepository+Status.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1D11B84D83100BAB377 /* GCBranch.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338DC19F85C8600063D95 /* GCBranch.m */; };\n\t\tE267E1D21B84D83100BAB377 /* GCCommit.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338DE19F85C8600063D95 /* GCCommit.m */; };\n\t\tE267E1D31B84D83100BAB377 /* GCCommitDatabase.m in Sources */ = {isa = PBXBuildFile; fileRef = E2FEED451AEAA6AD00CBED80 /* GCCommitDatabase.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E1D41B84D83100BAB377 /* GCDiff.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B14B5D1A8A764400003E64 /* GCDiff.m */; };\n\t\tE267E1D51B84D83100BAB377 /* GCFoundation.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D411ACB1B1100965A98 /* GCFoundation.m */; };\n\t\tE267E1D61B84D83100BAB377 /* GCFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739F21A4FE39E00EC6777 /* GCFunctions.m */; };\n\t\tE267E1D71B84D83100BAB377 /* GCHistory.m in Sources */ = {isa = PBXBuildFile; fileRef = E20F10F21A043E2100076AAC /* GCHistory.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E1D81B84D83100BAB377 /* GCIndex.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D4C1ACF130A00965A98 /* GCIndex.m */; };\n\t\tE267E1D91B84D83100BAB377 /* GCLiveRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E23C1A8A1A9019610060F6AD /* GCLiveRepository.m */; };\n\t\tE267E1DA1B84D83100BAB377 /* GCObject.m in Sources */ = {isa = PBXBuildFile; fileRef = E2146C8D1A57F3BC00F4550B /* GCObject.m */; };\n\t\tE267E1DB1B84D83100BAB377 /* GCPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = E200A3B81B02DDA100C4E39D /* GCPrivate.m */; };\n\t\tE267E1DC1B84D83100BAB377 /* GCReference.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E119F85C8600063D95 /* GCReference.m */; };\n\t\tE267E1DD1B84D83100BAB377 /* GCReferenceTransform.m in Sources */ = {isa = PBXBuildFile; fileRef = E218A5891A566F6A00DFF1DF /* GCReferenceTransform.m */; };\n\t\tE267E1DF1B84D83100BAB377 /* GCRemote.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E319F85C8600063D95 /* GCRemote.m */; };\n\t\tE267E1E01B84D83100BAB377 /* GCRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E519F85C8600063D95 /* GCRepository.m */; };\n\t\tE267E1E11B84D83100BAB377 /* GCRepository+Bare.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C3AA5A19FF0B0600BA89F3 /* GCRepository+Bare.m */; };\n\t\tE267E1E21B84D83100BAB377 /* GCRepository+Config.m in Sources */ = {isa = PBXBuildFile; fileRef = E24508FF1A9A50EA003E602D /* GCRepository+Config.m */; };\n\t\tE267E1E31B84D83100BAB377 /* GCRepository+HEAD.m in Sources */ = {isa = PBXBuildFile; fileRef = E27F9B731A549097009C9B3D /* GCRepository+HEAD.m */; };\n\t\tE267E1E41B84D83100BAB377 /* GCRepository+Mock.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D0121A749C26005035F7 /* GCRepository+Mock.m */; };\n\t\tE267E1E51B84D83100BAB377 /* GCRepository+Reflog.m in Sources */ = {isa = PBXBuildFile; fileRef = E27B6D651A84451900D05452 /* GCRepository+Reflog.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E1E61B84D83100BAB377 /* GCRepository+Reset.m in Sources */ = {isa = PBXBuildFile; fileRef = E20EB08A19FC75CA0031A075 /* GCRepository+Reset.m */; };\n\t\tE267E1E71B84D83100BAB377 /* GCRepository+Status.m in Sources */ = {isa = PBXBuildFile; fileRef = E20EB08E19FC76160031A075 /* GCRepository+Status.m */; };\n\t\tE267E1E81B84D83100BAB377 /* GCSnapshot.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F5C27D1A8171C900C30739 /* GCSnapshot.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E1E91B84D83100BAB377 /* GCSQLiteRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D00A1A71F0E9005035F7 /* GCSQLiteRepository.m */; };\n\t\tE267E1EA1B84D83100BAB377 /* GCStash.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E719F85C8600063D95 /* GCStash.m */; };\n\t\tE267E1EB1B84D83100BAB377 /* GCSubmodule.m in Sources */ = {isa = PBXBuildFile; fileRef = E21739FD1A51FA6200EC6777 /* GCSubmodule.m */; };\n\t\tE267E1EC1B84D83100BAB377 /* GCTag.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E919F85C8600063D95 /* GCTag.m */; };\n\t\tE267E1ED1B84D84900BAB377 /* GCHistory+Rewrite.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4148A1A02D68700B99634 /* GCHistory+Rewrite.m */; };\n\t\tE267E1EE1B84D84900BAB377 /* GCRepository+Index.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D461ACF12E200965A98 /* GCRepository+Index.m */; };\n\t\tE267E1EF1B84D84900BAB377 /* GCRepository+Utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = E218A58D1A56706600DFF1DF /* GCRepository+Utilities.m */; };\n\t\tE267E1F01B84D85500BAB377 /* GCHistory+Rewrite.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D414891A02D68700B99634 /* GCHistory+Rewrite.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1F11B84D85500BAB377 /* GCRepository+Index.h in Headers */ = {isa = PBXBuildFile; fileRef = E2790D451ACF12E200965A98 /* GCRepository+Index.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E1F21B84D85500BAB377 /* GCRepository+Utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = E218A58C1A56706600DFF1DF /* GCRepository+Utilities.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2091B84DB4200BAB377 /* GIBranch.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEAD1A4D592000B6AF66 /* GIBranch.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E20A1B84DB4200BAB377 /* GIConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = E23186031B139CB900A93CCF /* GIConstants.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E20B1B84DB4200BAB377 /* GIDiffView.h in Headers */ = {isa = PBXBuildFile; fileRef = E2891AB41AE1684A00E58C77 /* GIDiffView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E20C1B84DB4200BAB377 /* GIFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = E2B1BF311A85923800A999DF /* GIFunctions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E20D1B84DB4200BAB377 /* GIGraph.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEA01A4D562300B6AF66 /* GIGraph.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E20E1B84DB4200BAB377 /* GIGraphView.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEA21A4D562300B6AF66 /* GIGraphView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E20F1B84DB4200BAB377 /* GIInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEB31A4D5AC600B6AF66 /* GIInterface.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2101B84DB4200BAB377 /* GILayer.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEB01A4D599200B6AF66 /* GILayer.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2111B84DB4200BAB377 /* GILine.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEAA1A4D587800B6AF66 /* GILine.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2121B84DB4200BAB377 /* GINode.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEA61A4D57AA00B6AF66 /* GINode.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2131B84DB4200BAB377 /* GISplitDiffView.h in Headers */ = {isa = PBXBuildFile; fileRef = E2891AB11AE15BB600E58C77 /* GISplitDiffView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2141B84DB4200BAB377 /* GIUnifiedDiffView.h in Headers */ = {isa = PBXBuildFile; fileRef = E2C9FF861AA510170051B2AE /* GIUnifiedDiffView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2151B84DB6E00BAB377 /* GIBranch.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEAE1A4D592000B6AF66 /* GIBranch.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E2161B84DB6E00BAB377 /* GIDiffView.m in Sources */ = {isa = PBXBuildFile; fileRef = E2891AB51AE1684A00E58C77 /* GIDiffView.m */; };\n\t\tE267E2171B84DB6E00BAB377 /* GIFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B1BF321A85923800A999DF /* GIFunctions.m */; };\n\t\tE267E2181B84DB6E00BAB377 /* GIGraph.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA11A4D562300B6AF66 /* GIGraph.m */; };\n\t\tE267E2191B84DB6E00BAB377 /* GIGraphView.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA31A4D562300B6AF66 /* GIGraphView.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E21A1B84DB6E00BAB377 /* GILayer.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEB11A4D599200B6AF66 /* GILayer.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E21B1B84DB6E00BAB377 /* GILine.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEAB1A4D587800B6AF66 /* GILine.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E21C1B84DB6E00BAB377 /* GINode.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA71A4D57AA00B6AF66 /* GINode.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE267E21D1B84DB6E00BAB377 /* GIPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = E21A88F21A9471B300255AC3 /* GIPrivate.m */; };\n\t\tE267E21E1B84DB6E00BAB377 /* GISplitDiffView.m in Sources */ = {isa = PBXBuildFile; fileRef = E2891AB21AE15BB600E58C77 /* GISplitDiffView.m */; };\n\t\tE267E21F1B84DB6E00BAB377 /* GIUnifiedDiffView.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C9FF871AA510170051B2AE /* GIUnifiedDiffView.m */; };\n\t\tE267E2201B84DBD600BAB377 /* Utilities.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E22941E11AC11E79000A83AF /* Utilities.xcassets */; };\n\t\tE267E2211B84DBD900BAB377 /* GIWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941DE1AC11E4E000A83AF /* GIWindowController.xib */; };\n\t\tE267E2221B84DBE700BAB377 /* GIAppKit.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941D31AC11E31000A83AF /* GIAppKit.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2231B84DBE700BAB377 /* GIColorView.h in Headers */ = {isa = PBXBuildFile; fileRef = E22942251AC12E5C000A83AF /* GIColorView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2241B84DBE700BAB377 /* GILinkButton.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941E31AC11EBB000A83AF /* GILinkButton.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2251B84DBE700BAB377 /* GIModalView.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941D51AC11E31000A83AF /* GIModalView.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2261B84DBE700BAB377 /* GIViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941D71AC11E31000A83AF /* GIViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2271B84DBE700BAB377 /* GIViewController+Utilities.h in Headers */ = {isa = PBXBuildFile; fileRef = E2BDA06A1AD5AF2F00E69729 /* GIViewController+Utilities.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2281B84DBE700BAB377 /* GIWindowController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941DC1AC11E4E000A83AF /* GIWindowController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2291B84DBF800BAB377 /* GIAppKit.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941D41AC11E31000A83AF /* GIAppKit.m */; };\n\t\tE267E22A1B84DBF800BAB377 /* GIColorView.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942261AC12E5C000A83AF /* GIColorView.m */; };\n\t\tE267E22B1B84DBF800BAB377 /* GILinkButton.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941E41AC11EBB000A83AF /* GILinkButton.m */; };\n\t\tE267E22C1B84DBF800BAB377 /* GIModalView.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941D61AC11E31000A83AF /* GIModalView.m */; };\n\t\tE267E22D1B84DBF800BAB377 /* GIViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941D81AC11E31000A83AF /* GIViewController.m */; };\n\t\tE267E22E1B84DBF800BAB377 /* GIViewController+Utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = E2BDA06B1AD5AF2F00E69729 /* GIViewController+Utilities.m */; };\n\t\tE267E22F1B84DBF800BAB377 /* GIWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941DD1AC11E4E000A83AF /* GIWindowController.m */; };\n\t\tE267E2311B84DC2600BAB377 /* GICommitListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E230DEEC1AA11CF7006EE09F /* GICommitListViewController.m */; };\n\t\tE267E2321B84DC2600BAB377 /* GIDiffContentsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D5AB331AA502E000BE9FFC /* GIDiffContentsViewController.m */; };\n\t\tE267E2331B84DC2600BAB377 /* GIDiffFilesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2E4CA1A1AB0F3F000D225D3 /* GIDiffFilesViewController.m */; };\n\t\tE267E2341B84DC2600BAB377 /* GISnapshotListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E21A88FC1A97A67900255AC3 /* GISnapshotListViewController.m */; };\n\t\tE267E2351B84DC2600BAB377 /* GIUnifiedReflogViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E21A88F61A97172D00255AC3 /* GIUnifiedReflogViewController.m */; };\n\t\tE267E2361B84DC3900BAB377 /* GICommitListViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E230DEEB1AA11CF7006EE09F /* GICommitListViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2371B84DC3900BAB377 /* GIDiffContentsViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D5AB321AA502E000BE9FFC /* GIDiffContentsViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2381B84DC3900BAB377 /* GIDiffFilesViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E2E4CA191AB0F3F000D225D3 /* GIDiffFilesViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2391B84DC3900BAB377 /* GISnapshotListViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E21A88FB1A97A67900255AC3 /* GISnapshotListViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E23A1B84DC3900BAB377 /* GIUnifiedReflogViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E21A88F51A97172D00255AC3 /* GIUnifiedReflogViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E23B1B84DC4B00BAB377 /* Components.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E2D899991AA411430081FE66 /* Components.xcassets */; };\n\t\tE267E23C1B84DC4B00BAB377 /* Reasons.strings in Resources */ = {isa = PBXBuildFile; fileRef = E22942281AC2160E000A83AF /* Reasons.strings */; };\n\t\tE267E23D1B84DC4B00BAB377 /* GICommitListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E230DEE81AA11CE9006EE09F /* GICommitListViewController.xib */; };\n\t\tE267E23E1B84DC4B00BAB377 /* GIDiffContentsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2D5AB2F1AA502D400BE9FFC /* GIDiffContentsViewController.xib */; };\n\t\tE267E23F1B84DC4B00BAB377 /* GIDiffFilesViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2E4CA1C1AB0F3F500D225D3 /* GIDiffFilesViewController.xib */; };\n\t\tE267E2401B84DC4B00BAB377 /* GISnapshotListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E21A88FE1A97A67E00255AC3 /* GISnapshotListViewController.xib */; };\n\t\tE267E2411B84DC4B00BAB377 /* GIUnifiedReflogViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E21A88F81A97173300255AC3 /* GIUnifiedReflogViewController.xib */; };\n\t\tE267E2421B84DC6300BAB377 /* Views.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E229421A1AC11FF6000A83AF /* Views.xcassets */; };\n\t\tE267E2431B84DC6300BAB377 /* GIAdvancedCommitViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941E71AC11F56000A83AF /* GIAdvancedCommitViewController.xib */; };\n\t\tE267E2441B84DC6400BAB377 /* GICommitRewriterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E229421C1AC120A8000A83AF /* GICommitRewriterViewController.xib */; };\n\t\tE267E2451B84DC6400BAB377 /* GICommitSplitterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E229421E1AC120A8000A83AF /* GICommitSplitterViewController.xib */; };\n\t\tE267E2461B84DC6400BAB377 /* GIConfigViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941EB1AC11F56000A83AF /* GIConfigViewController.xib */; };\n\t\tE267E2471B84DC6400BAB377 /* GIConflictResolverViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E2BDA0731AD5B98A00E69729 /* GIConflictResolverViewController.xib */; };\n\t\tE267E2481B84DC6400BAB377 /* GIDiffViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941ED1AC11F56000A83AF /* GIDiffViewController.xib */; };\n\t\tE267E2491B84DC6400BAB377 /* GIMapViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941EF1AC11F56000A83AF /* GIMapViewController.xib */; };\n\t\tE267E24A1B84DC6400BAB377 /* GIQuickViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941F11AC11F56000A83AF /* GIQuickViewController.xib */; };\n\t\tE267E24B1B84DC6400BAB377 /* GISimpleCommitViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941F31AC11F56000A83AF /* GISimpleCommitViewController.xib */; };\n\t\tE267E24C1B84DC6400BAB377 /* GIStashListViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E22941F51AC11F56000A83AF /* GIStashListViewController.xib */; };\n\t\tE267E24D1B84DC7D00BAB377 /* GIAdvancedCommitViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941F71AC11F56000A83AF /* GIAdvancedCommitViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E24E1B84DC7D00BAB377 /* GICommitRewriterViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22942221AC12145000A83AF /* GICommitRewriterViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E24F1B84DC7D00BAB377 /* GICommitSplitterViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E229D8F61ACF313E00D5F0AC /* GICommitSplitterViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2501B84DC7D00BAB377 /* GICommitViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941F91AC11F56000A83AF /* GICommitViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2511B84DC7D00BAB377 /* GIConfigViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941FB1AC11F56000A83AF /* GIConfigViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2521B84DC7D00BAB377 /* GIConflictResolverViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E2BDA0701AD5B97B00E69729 /* GIConflictResolverViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2531B84DC7D00BAB377 /* GIDiffViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941FD1AC11F56000A83AF /* GIDiffViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2541B84DC7D00BAB377 /* GIMapViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22942011AC11F56000A83AF /* GIMapViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2551B84DC7D00BAB377 /* GIMapViewController+Operations.h in Headers */ = {isa = PBXBuildFile; fileRef = E22941FF1AC11F56000A83AF /* GIMapViewController+Operations.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2561B84DC7D00BAB377 /* GIQuickViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22942031AC11F56000A83AF /* GIQuickViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2571B84DC7D00BAB377 /* GISimpleCommitViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22942051AC11F56000A83AF /* GISimpleCommitViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2581B84DC7D00BAB377 /* GIStashListViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = E22942071AC11F56000A83AF /* GIStashListViewController.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2591B84DCA100BAB377 /* GIAdvancedCommitViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941F81AC11F56000A83AF /* GIAdvancedCommitViewController.m */; };\n\t\tE267E25A1B84DCA100BAB377 /* GICommitRewriterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942231AC12145000A83AF /* GICommitRewriterViewController.m */; };\n\t\tE267E25B1B84DCA100BAB377 /* GICommitSplitterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E229D8F71ACF313E00D5F0AC /* GICommitSplitterViewController.m */; };\n\t\tE267E25C1B84DCA100BAB377 /* GICommitViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941FA1AC11F56000A83AF /* GICommitViewController.m */; };\n\t\tE267E25D1B84DCA100BAB377 /* GIConfigViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941FC1AC11F56000A83AF /* GIConfigViewController.m */; };\n\t\tE267E25E1B84DCA100BAB377 /* GIConflictResolverViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E2BDA0711AD5B97B00E69729 /* GIConflictResolverViewController.m */; };\n\t\tE267E25F1B84DCA100BAB377 /* GIDiffViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22941FE1AC11F56000A83AF /* GIDiffViewController.m */; };\n\t\tE267E2601B84DCA100BAB377 /* GIMapViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942021AC11F56000A83AF /* GIMapViewController.m */; };\n\t\tE267E2611B84DCA100BAB377 /* GIMapViewController+Operations.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942001AC11F56000A83AF /* GIMapViewController+Operations.m */; };\n\t\tE267E2621B84DCA100BAB377 /* GIQuickViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942041AC11F56000A83AF /* GIQuickViewController.m */; };\n\t\tE267E2631B84DCA100BAB377 /* GISimpleCommitViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942061AC11F56000A83AF /* GISimpleCommitViewController.m */; };\n\t\tE267E2641B84DCA100BAB377 /* GIStashListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E22942081AC11F56000A83AF /* GIStashListViewController.m */; };\n\t\tE267E2651B84DCA700BAB377 /* GIConfigViewController-Help.txt in Resources */ = {isa = PBXBuildFile; fileRef = E22941E91AC11F56000A83AF /* GIConfigViewController-Help.txt */; };\n\t\tE267E2A61B84F02A00BAB377 /* GCError.h in Headers */ = {isa = PBXBuildFile; fileRef = E2146C901A58849F00F4550B /* GCError.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE267E2A71B84F03600BAB377 /* GCMacros.h in Headers */ = {isa = PBXBuildFile; fileRef = E244538F1A70CDA200E61DE7 /* GCMacros.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE26CDF261B9B86250050C920 /* GCOrderedSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 74EDB5D01B84D4C400F00E79 /* GCOrderedSet.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2790D431ACB1B1100965A98 /* GCFoundation.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D411ACB1B1100965A98 /* GCFoundation.m */; };\n\t\tE2790D481ACF12E200965A98 /* GCRepository+Index-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D441ACF12E200965A98 /* GCRepository+Index-Tests.m */; };\n\t\tE2790D4A1ACF12E200965A98 /* GCRepository+Index.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D461ACF12E200965A98 /* GCRepository+Index.m */; };\n\t\tE2790D4E1ACF130A00965A98 /* GCIndex.m in Sources */ = {isa = PBXBuildFile; fileRef = E2790D4C1ACF130A00965A98 /* GCIndex.m */; };\n\t\tE27B6D671A84451900D05452 /* GCRepository+Reflog.m in Sources */ = {isa = PBXBuildFile; fileRef = E27B6D651A84451900D05452 /* GCRepository+Reflog.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE27E43021A74A94700D04ED1 /* GIGraph-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E27E43011A74A94700D04ED1 /* GIGraph-Tests.m */; };\n\t\tE27E43031A74A96000D04ED1 /* GIBranch.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEAE1A4D592000B6AF66 /* GIBranch.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE27E43041A74A96000D04ED1 /* GIGraph.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA11A4D562300B6AF66 /* GIGraph.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE27E43061A74A96000D04ED1 /* GILayer.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEB11A4D599200B6AF66 /* GILayer.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE27E43071A74A96000D04ED1 /* GILine.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEAB1A4D587800B6AF66 /* GILine.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE27E43081A74A96000D04ED1 /* GINode.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA71A4D57AA00B6AF66 /* GINode.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE27F9B751A549097009C9B3D /* GCRepository+HEAD.m in Sources */ = {isa = PBXBuildFile; fileRef = E27F9B731A549097009C9B3D /* GCRepository+HEAD.m */; };\n\t\tE299D00C1A71F0E9005035F7 /* GCSQLiteRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D00A1A71F0E9005035F7 /* GCSQLiteRepository.m */; };\n\t\tE299D00F1A7206E7005035F7 /* GCSQLiteRepository-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D00E1A7206E7005035F7 /* GCSQLiteRepository-Tests.m */; };\n\t\tE299D0141A749C26005035F7 /* GCRepository+Mock.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D0121A749C26005035F7 /* GCRepository+Mock.m */; };\n\t\tE299D0161A749D27005035F7 /* GCRepository+Mock-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E299D0151A749D27005035F7 /* GCRepository+Mock-Tests.m */; };\n\t\tE2B14B5F1A8A764400003E64 /* GCDiff.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B14B5D1A8A764400003E64 /* GCDiff.m */; };\n\t\tE2B1BF341A85923800A999DF /* GIFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B1BF321A85923800A999DF /* GIFunctions.m */; };\n\t\tE2B1BF361A85C5ED00A999DF /* GIFunctions-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B1BF351A85C5ED00A999DF /* GIFunctions-Tests.m */; };\n\t\tE2B9878F1B9171D20097629D /* GIBranch.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEAE1A4D592000B6AF66 /* GIBranch.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE2B987901B9171D20097629D /* GIFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = E2B1BF321A85923800A999DF /* GIFunctions.m */; };\n\t\tE2B987911B9171D20097629D /* GIGraph.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA11A4D562300B6AF66 /* GIGraph.m */; };\n\t\tE2B987921B9171D20097629D /* GILayer.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEB11A4D599200B6AF66 /* GILayer.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE2B987931B9171D20097629D /* GILine.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEAB1A4D587800B6AF66 /* GILine.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE2B987941B9171D20097629D /* GINode.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4DEA71A4D57AA00B6AF66 /* GINode.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE2B987951B9171D20097629D /* GIPrivate.m in Sources */ = {isa = PBXBuildFile; fileRef = E21A88F21A9471B300255AC3 /* GIPrivate.m */; };\n\t\tE2B987961B9172470097629D /* GIBranch.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEAD1A4D592000B6AF66 /* GIBranch.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B987971B9172470097629D /* GIConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = E23186031B139CB900A93CCF /* GIConstants.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B987981B9172470097629D /* GIFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = E2B1BF311A85923800A999DF /* GIFunctions.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B987991B9172470097629D /* GIGraph.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEA01A4D562300B6AF66 /* GIGraph.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B9879A1B9172470097629D /* GIInterface.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEB31A4D5AC600B6AF66 /* GIInterface.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B9879B1B9172470097629D /* GILayer.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEB01A4D599200B6AF66 /* GILayer.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B9879C1B9172470097629D /* GILine.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEAA1A4D587800B6AF66 /* GILine.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2B9879D1B9172470097629D /* GINode.h in Headers */ = {isa = PBXBuildFile; fileRef = E2D4DEA61A4D57AA00B6AF66 /* GINode.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE2C338EC19F85C8600063D95 /* GCBranch.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338DC19F85C8600063D95 /* GCBranch.m */; };\n\t\tE2C338EE19F85C8600063D95 /* GCCommit.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338DE19F85C8600063D95 /* GCCommit.m */; };\n\t\tE2C338F019F85C8600063D95 /* GCReference.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E119F85C8600063D95 /* GCReference.m */; };\n\t\tE2C338F219F85C8600063D95 /* GCRemote.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E319F85C8600063D95 /* GCRemote.m */; };\n\t\tE2C338F419F85C8600063D95 /* GCRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E519F85C8600063D95 /* GCRepository.m */; };\n\t\tE2C338F619F85C8600063D95 /* GCStash.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E719F85C8600063D95 /* GCStash.m */; };\n\t\tE2C338F819F85C8600063D95 /* GCTag.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C338E919F85C8600063D95 /* GCTag.m */; };\n\t\tE2C3AA5C19FF0B0600BA89F3 /* GCRepository+Bare.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C3AA5A19FF0B0600BA89F3 /* GCRepository+Bare.m */; };\n\t\tE2C56CC41D71B3730011960D /* GCFoundation-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2C56CC31D71B3730011960D /* GCFoundation-Tests.m */; };\n\t\tE2D4148C1A02D68700B99634 /* GCHistory+Rewrite.m in Sources */ = {isa = PBXBuildFile; fileRef = E2D4148A1A02D68700B99634 /* GCHistory+Rewrite.m */; };\n\t\tE2F5C27F1A8171C900C30739 /* GCSnapshot.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F5C27D1A8171C900C30739 /* GCSnapshot.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n\t\tE2F5C2811A8186C200C30739 /* GCSnapshot-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F5C2801A8186C200C30739 /* GCSnapshot-Tests.m */; };\n\t\tE2F5C2831A81C53A00C30739 /* GCRepository+Reflog-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2F5C2821A81C53A00C30739 /* GCRepository+Reflog-Tests.m */; };\n\t\tE2FEED491AEAA6B500CBED80 /* GCCommitDatabase-Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = E2FEED481AEAA6B500CBED80 /* GCCommitDatabase-Tests.m */; };\n\t\tE2FEED4A1AEAA75F00CBED80 /* GCCommitDatabase.m in Sources */ = {isa = PBXBuildFile; fileRef = E2FEED451AEAA6AD00CBED80 /* GCCommitDatabase.m */; settings = {COMPILER_FLAGS = \"-fno-objc-arc\"; }; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t0A1DA512265805C30041E737 /* libcommonCrypto.tbd */ = {isa = PBXFileReference; lastKnownFileType = \"sourcecode.text-based-dylib-definition\"; name = libcommonCrypto.tbd; path = usr/lib/system/libcommonCrypto.tbd; sourceTree = SDKROOT; };\n\t\t0A1DA51D265806140041E737 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };\n\t\t0AC8525723A122C400479160 /* GILaunchServicesLocator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GILaunchServicesLocator.h; sourceTree = \"<group>\"; };\n\t\t0AC8525823A122C400479160 /* GILaunchServicesLocator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GILaunchServicesLocator.m; sourceTree = \"<group>\"; };\n\t\t0AD01C0B26D6A11C0068A02E /* Third-Party */ = {isa = PBXFileReference; lastKnownFileType = folder; path = \"Third-Party\"; sourceTree = \"<group>\"; };\n\t\t1D615D7E286BE79200FFF7E7 /* XLFacilityMacros.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XLFacilityMacros.h; sourceTree = \"<group>\"; };\n\t\t1D841F752B955C3800E4FCCC /* GIRemappingExplanationPopover.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GIRemappingExplanationPopover.h; sourceTree = \"<group>\"; };\n\t\t1D841F762B955C3800E4FCCC /* GIRemappingExplanationPopover.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIRemappingExplanationPopover.m; sourceTree = \"<group>\"; };\n\t\t1D841F772B955C3800E4FCCC /* GIRemappingExplanationViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GIRemappingExplanationViewController.xib; sourceTree = \"<group>\"; };\n\t\t1DF371CB22F5262300EF7BD9 /* GCLiveRepository+Utilities.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"GCLiveRepository+Utilities.h\"; sourceTree = \"<group>\"; };\n\t\t1DF371CC22F5262300EF7BD9 /* GCLiveRepository+Utilities.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = \"GCLiveRepository+Utilities.m\"; sourceTree = \"<group>\"; };\n\t\t6D8E3F0A25D90E1300AAFC17 /* GIImageDiffView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIImageDiffView.m; sourceTree = \"<group>\"; };\n\t\t6D8E3F0F25D90E3400AAFC17 /* GIImageDiffView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GIImageDiffView.h; sourceTree = \"<group>\"; };\n\t\t74EDB5D01B84D4C400F00E79 /* GCOrderedSet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCOrderedSet.h; sourceTree = \"<group>\"; };\n\t\t74EDB5D11B84D4C400F00E79 /* GCOrderedSet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCOrderedSet.m; sourceTree = \"<group>\"; };\n\t\t74EDB5D51B84E06500F00E79 /* GCOrderedSet-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCOrderedSet-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tDB7CBCA025762721001185AA /* GICustomToolbarItem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GICustomToolbarItem.h; sourceTree = \"<group>\"; };\n\t\tDB7CBCA125762721001185AA /* GICustomToolbarItem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GICustomToolbarItem.m; sourceTree = \"<group>\"; };\n\t\tDBBEE637256B08D300F96DAF /* libsqlite3.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = libsqlite3.xcframework; path = \"Third-Party/libsqlite3.xcframework\"; sourceTree = \"<group>\"; };\n\t\tDBBEE64C256B094000F96DAF /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = \"sourcecode.text-based-dylib-definition\"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };\n\t\tDBBEE654256B095000F96DAF /* libiconv.tbd */ = {isa = PBXFileReference; lastKnownFileType = \"sourcecode.text-based-dylib-definition\"; name = libiconv.tbd; path = usr/lib/libiconv.tbd; sourceTree = SDKROOT; };\n\t\tDBDFBC0B22B610F1003EEC6C /* Interface.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Interface.xcassets; sourceTree = \"<group>\"; };\n\t\tDBDFBC0D22B61135003EEC6C /* NSBundle+GitUpKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"NSBundle+GitUpKit.h\"; sourceTree = \"<group>\"; };\n\t\tDBDFBC0E22B61135003EEC6C /* NSBundle+GitUpKit.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = \"NSBundle+GitUpKit.m\"; sourceTree = \"<group>\"; };\n\t\tDBDFBC1A22B61290003EEC6C /* NSColor+GINamedColors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"NSColor+GINamedColors.h\"; sourceTree = \"<group>\"; };\n\t\tDBDFBC1B22B61290003EEC6C /* NSColor+GINamedColors.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"NSColor+GINamedColors.m\"; sourceTree = \"<group>\"; };\n\t\tDC040FC42BC9FECC00DF54D5 /* GCLiveRepository-Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = \"GCLiveRepository-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tDC040FC82BCB21D000DF54D5 /* GCLiveRepository+Conflicts.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"GCLiveRepository+Conflicts.h\"; sourceTree = \"<group>\"; };\n\t\tDC040FC92BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = \"GCLiveRepository+Conflicts.m\"; sourceTree = \"<group>\"; };\n\t\tE200A3B81B02DDA100C4E39D /* GCPrivate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCPrivate.m; sourceTree = \"<group>\"; };\n\t\tE20EB08919FC75CA0031A075 /* GCRepository+Reset.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Reset.h\"; sourceTree = \"<group>\"; };\n\t\tE20EB08A19FC75CA0031A075 /* GCRepository+Reset.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Reset.m\"; sourceTree = \"<group>\"; };\n\t\tE20EB08D19FC76160031A075 /* GCRepository+Status.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Status.h\"; sourceTree = \"<group>\"; };\n\t\tE20EB08E19FC76160031A075 /* GCRepository+Status.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Status.m\"; sourceTree = \"<group>\"; };\n\t\tE20EB09519FC76AE0031A075 /* GCCore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GCCore.h; sourceTree = \"<group>\"; };\n\t\tE20F10F11A043E2100076AAC /* GCHistory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCHistory.h; sourceTree = \"<group>\"; };\n\t\tE20F10F21A043E2100076AAC /* GCHistory.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCHistory.m; sourceTree = \"<group>\"; };\n\t\tE2146C8C1A57F3BC00F4550B /* GCObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCObject.h; sourceTree = \"<group>\"; };\n\t\tE2146C8D1A57F3BC00F4550B /* GCObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCObject.m; sourceTree = \"<group>\"; };\n\t\tE2146C901A58849F00F4550B /* GCError.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GCError.h; sourceTree = \"<group>\"; };\n\t\tE2146C911A58D83100F4550B /* GCReflogMessages.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GCReflogMessages.h; sourceTree = \"<group>\"; };\n\t\tE21739F11A4FE39E00EC6777 /* GCFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCFunctions.h; sourceTree = \"<group>\"; };\n\t\tE21739F21A4FE39E00EC6777 /* GCFunctions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCFunctions.m; sourceTree = \"<group>\"; };\n\t\tE21739FC1A51FA6200EC6777 /* GCSubmodule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCSubmodule.h; sourceTree = \"<group>\"; };\n\t\tE21739FD1A51FA6200EC6777 /* GCSubmodule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCSubmodule.m; sourceTree = \"<group>\"; };\n\t\tE217531B1B91613300BE234A /* GitUpKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GitUpKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE218A5881A566F6A00DFF1DF /* GCReferenceTransform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCReferenceTransform.h; sourceTree = \"<group>\"; };\n\t\tE218A5891A566F6A00DFF1DF /* GCReferenceTransform.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCReferenceTransform.m; sourceTree = \"<group>\"; };\n\t\tE218A58C1A56706600DFF1DF /* GCRepository+Utilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Utilities.h\"; sourceTree = \"<group>\"; };\n\t\tE218A58D1A56706600DFF1DF /* GCRepository+Utilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Utilities.m\"; sourceTree = \"<group>\"; };\n\t\tE21A88F21A9471B300255AC3 /* GIPrivate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIPrivate.m; sourceTree = \"<group>\"; };\n\t\tE21A88F51A97172D00255AC3 /* GIUnifiedReflogViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIUnifiedReflogViewController.h; sourceTree = \"<group>\"; };\n\t\tE21A88F61A97172D00255AC3 /* GIUnifiedReflogViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIUnifiedReflogViewController.m; sourceTree = \"<group>\"; };\n\t\tE21A88F91A97173300255AC3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIUnifiedReflogViewController.xib; sourceTree = \"<group>\"; };\n\t\tE21A88FB1A97A67900255AC3 /* GISnapshotListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GISnapshotListViewController.h; sourceTree = \"<group>\"; };\n\t\tE21A88FC1A97A67900255AC3 /* GISnapshotListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GISnapshotListViewController.m; sourceTree = \"<group>\"; };\n\t\tE21A88FF1A97A67E00255AC3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GISnapshotListViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941D31AC11E31000A83AF /* GIAppKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIAppKit.h; sourceTree = \"<group>\"; };\n\t\tE22941D41AC11E31000A83AF /* GIAppKit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIAppKit.m; sourceTree = \"<group>\"; };\n\t\tE22941D51AC11E31000A83AF /* GIModalView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIModalView.h; sourceTree = \"<group>\"; };\n\t\tE22941D61AC11E31000A83AF /* GIModalView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIModalView.m; sourceTree = \"<group>\"; };\n\t\tE22941D71AC11E31000A83AF /* GIViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIViewController.h; sourceTree = \"<group>\"; };\n\t\tE22941D81AC11E31000A83AF /* GIViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIViewController.m; sourceTree = \"<group>\"; };\n\t\tE22941DC1AC11E4E000A83AF /* GIWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIWindowController.h; sourceTree = \"<group>\"; };\n\t\tE22941DD1AC11E4E000A83AF /* GIWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIWindowController.m; sourceTree = \"<group>\"; };\n\t\tE22941DE1AC11E4E000A83AF /* GIWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = GIWindowController.xib; sourceTree = \"<group>\"; };\n\t\tE22941E11AC11E79000A83AF /* Utilities.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Utilities.xcassets; sourceTree = \"<group>\"; };\n\t\tE22941E31AC11EBB000A83AF /* GILinkButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GILinkButton.h; sourceTree = \"<group>\"; };\n\t\tE22941E41AC11EBB000A83AF /* GILinkButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GILinkButton.m; sourceTree = \"<group>\"; };\n\t\tE22941E81AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIAdvancedCommitViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941EA1AC11F56000A83AF /* en */ = {isa = PBXFileReference; lastKnownFileType = text; name = en; path = \"en.lproj/GIConfigViewController-Help.txt\"; sourceTree = \"<group>\"; };\n\t\tE22941EC1AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIConfigViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941EE1AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIDiffViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941F01AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIMapViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941F21AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIQuickViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941F41AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GISimpleCommitViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941F61AC11F56000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIStashListViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22941F71AC11F56000A83AF /* GIAdvancedCommitViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIAdvancedCommitViewController.h; sourceTree = \"<group>\"; };\n\t\tE22941F81AC11F56000A83AF /* GIAdvancedCommitViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIAdvancedCommitViewController.m; sourceTree = \"<group>\"; };\n\t\tE22941F91AC11F56000A83AF /* GICommitViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GICommitViewController.h; sourceTree = \"<group>\"; };\n\t\tE22941FA1AC11F56000A83AF /* GICommitViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GICommitViewController.m; sourceTree = \"<group>\"; };\n\t\tE22941FB1AC11F56000A83AF /* GIConfigViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIConfigViewController.h; sourceTree = \"<group>\"; };\n\t\tE22941FC1AC11F56000A83AF /* GIConfigViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIConfigViewController.m; sourceTree = \"<group>\"; };\n\t\tE22941FD1AC11F56000A83AF /* GIDiffViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIDiffViewController.h; sourceTree = \"<group>\"; };\n\t\tE22941FE1AC11F56000A83AF /* GIDiffViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIDiffViewController.m; sourceTree = \"<group>\"; };\n\t\tE22941FF1AC11F56000A83AF /* GIMapViewController+Operations.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GIMapViewController+Operations.h\"; sourceTree = \"<group>\"; };\n\t\tE22942001AC11F56000A83AF /* GIMapViewController+Operations.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GIMapViewController+Operations.m\"; sourceTree = \"<group>\"; };\n\t\tE22942011AC11F56000A83AF /* GIMapViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIMapViewController.h; sourceTree = \"<group>\"; };\n\t\tE22942021AC11F56000A83AF /* GIMapViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIMapViewController.m; sourceTree = \"<group>\"; };\n\t\tE22942031AC11F56000A83AF /* GIQuickViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIQuickViewController.h; sourceTree = \"<group>\"; };\n\t\tE22942041AC11F56000A83AF /* GIQuickViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIQuickViewController.m; sourceTree = \"<group>\"; };\n\t\tE22942051AC11F56000A83AF /* GISimpleCommitViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GISimpleCommitViewController.h; sourceTree = \"<group>\"; };\n\t\tE22942061AC11F56000A83AF /* GISimpleCommitViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GISimpleCommitViewController.m; sourceTree = \"<group>\"; };\n\t\tE22942071AC11F56000A83AF /* GIStashListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIStashListViewController.h; sourceTree = \"<group>\"; };\n\t\tE22942081AC11F56000A83AF /* GIStashListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIStashListViewController.m; sourceTree = \"<group>\"; };\n\t\tE229421A1AC11FF6000A83AF /* Views.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Views.xcassets; sourceTree = \"<group>\"; };\n\t\tE229421D1AC120A8000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GICommitRewriterViewController.xib; sourceTree = \"<group>\"; };\n\t\tE229421F1AC120A8000A83AF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GICommitSplitterViewController.xib; sourceTree = \"<group>\"; };\n\t\tE22942221AC12145000A83AF /* GICommitRewriterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GICommitRewriterViewController.h; sourceTree = \"<group>\"; };\n\t\tE22942231AC12145000A83AF /* GICommitRewriterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GICommitRewriterViewController.m; sourceTree = \"<group>\"; };\n\t\tE22942251AC12E5C000A83AF /* GIColorView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIColorView.h; sourceTree = \"<group>\"; };\n\t\tE22942261AC12E5C000A83AF /* GIColorView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIColorView.m; sourceTree = \"<group>\"; };\n\t\tE22942291AC2160E000A83AF /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Reasons.strings; sourceTree = \"<group>\"; };\n\t\tE229D8F61ACF313E00D5F0AC /* GICommitSplitterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GICommitSplitterViewController.h; sourceTree = \"<group>\"; };\n\t\tE229D8F71ACF313E00D5F0AC /* GICommitSplitterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GICommitSplitterViewController.m; sourceTree = \"<group>\"; };\n\t\tE230DEE91AA11CE9006EE09F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GICommitListViewController.xib; sourceTree = \"<group>\"; };\n\t\tE230DEEB1AA11CF7006EE09F /* GICommitListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GICommitListViewController.h; sourceTree = \"<group>\"; };\n\t\tE230DEEC1AA11CF7006EE09F /* GICommitListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GICommitListViewController.m; sourceTree = \"<group>\"; };\n\t\tE23186031B139CB900A93CCF /* GIConstants.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GIConstants.h; sourceTree = \"<group>\"; };\n\t\tE23C1A891A9019610060F6AD /* GCLiveRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCLiveRepository.h; sourceTree = \"<group>\"; };\n\t\tE23C1A8A1A9019610060F6AD /* GCLiveRepository.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCLiveRepository.m; sourceTree = \"<group>\"; };\n\t\tE244538F1A70CDA200E61DE7 /* GCMacros.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GCMacros.h; sourceTree = \"<group>\"; };\n\t\tE24508FE1A9A50EA003E602D /* GCRepository+Config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Config.h\"; sourceTree = \"<group>\"; };\n\t\tE24508FF1A9A50EA003E602D /* GCRepository+Config.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Config.m\"; sourceTree = \"<group>\"; };\n\t\tE24509021A9A50F3003E602D /* GCRepository+Config-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Config-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2C31A64C8EA0079616B /* GCTestCase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCTestCase.h; sourceTree = \"<group>\"; };\n\t\tE259C2C41A64C8EA0079616B /* GCTestCase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCTestCase.m; sourceTree = \"<group>\"; };\n\t\tE259C2C61A64C9980079616B /* GCRepository-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2C81A64CAB30079616B /* GCSubmodule-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCSubmodule-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2CA1A64D27F0079616B /* GCTag-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCTag-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2CC1A64D30A0079616B /* GCStash-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCStash-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2CE1A64F7D00079616B /* GCBranch-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCBranch-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2D01A64F9050079616B /* GCRemote-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRemote-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2D21A64F9FF0079616B /* GCHistory-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCHistory-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2D41A64FAA40079616B /* GCHistory+Rewrite-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCHistory+Rewrite-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2D61A64FAEA0079616B /* GCRepository+Utilities-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Utilities-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2D81A64FD640079616B /* GCRepository+Bare-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Bare-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2DA1A64FDA60079616B /* GCDiff-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCDiff-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2DC1A64FDD00079616B /* GCRepository+HEAD-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+HEAD-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2E01A64FE4C0079616B /* GCRepository+Status-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Status-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2E21A64FE710079616B /* GCRepository+Reset-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Reset-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE259C2E41A6624DC0079616B /* GCCommit-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCCommit-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE267E1A81B84D6C500BAB377 /* GitUpKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = GitUpKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE267E1AA1B84D6C500BAB377 /* GitUpKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GitUpKit.h; sourceTree = \"<group>\"; };\n\t\tE267E1AC1B84D6C500BAB377 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\tE2790D401ACB1B1100965A98 /* GCFoundation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCFoundation.h; sourceTree = \"<group>\"; };\n\t\tE2790D411ACB1B1100965A98 /* GCFoundation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCFoundation.m; sourceTree = \"<group>\"; };\n\t\tE2790D441ACF12E200965A98 /* GCRepository+Index-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Index-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE2790D451ACF12E200965A98 /* GCRepository+Index.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Index.h\"; sourceTree = \"<group>\"; };\n\t\tE2790D461ACF12E200965A98 /* GCRepository+Index.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Index.m\"; sourceTree = \"<group>\"; };\n\t\tE2790D4B1ACF130A00965A98 /* GCIndex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCIndex.h; sourceTree = \"<group>\"; };\n\t\tE2790D4C1ACF130A00965A98 /* GCIndex.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCIndex.m; sourceTree = \"<group>\"; };\n\t\tE27B6D641A84451900D05452 /* GCRepository+Reflog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Reflog.h\"; sourceTree = \"<group>\"; };\n\t\tE27B6D651A84451900D05452 /* GCRepository+Reflog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Reflog.m\"; sourceTree = \"<group>\"; };\n\t\tE27E374F1B86F5D1000A551A /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE27E37501B86F5D1000A551A /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tE27E37521B86F5D1000A551A /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tE27E43011A74A94700D04ED1 /* GIGraph-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GIGraph-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE27F9B721A549097009C9B3D /* GCRepository+HEAD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+HEAD.h\"; sourceTree = \"<group>\"; };\n\t\tE27F9B731A549097009C9B3D /* GCRepository+HEAD.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+HEAD.m\"; sourceTree = \"<group>\"; };\n\t\tE2891AB11AE15BB600E58C77 /* GISplitDiffView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GISplitDiffView.h; sourceTree = \"<group>\"; };\n\t\tE2891AB21AE15BB600E58C77 /* GISplitDiffView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GISplitDiffView.m; sourceTree = \"<group>\"; };\n\t\tE2891AB41AE1684A00E58C77 /* GIDiffView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIDiffView.h; sourceTree = \"<group>\"; };\n\t\tE2891AB51AE1684A00E58C77 /* GIDiffView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIDiffView.m; sourceTree = \"<group>\"; };\n\t\tE299D00A1A71F0E9005035F7 /* GCSQLiteRepository.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCSQLiteRepository.m; sourceTree = \"<group>\"; };\n\t\tE299D00D1A71F937005035F7 /* GCSQLiteRepository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GCSQLiteRepository.h; sourceTree = \"<group>\"; };\n\t\tE299D00E1A7206E7005035F7 /* GCSQLiteRepository-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCSQLiteRepository-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE299D0111A749C26005035F7 /* GCRepository+Mock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Mock.h\"; sourceTree = \"<group>\"; };\n\t\tE299D0121A749C26005035F7 /* GCRepository+Mock.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Mock.m\"; sourceTree = \"<group>\"; };\n\t\tE299D0151A749D27005035F7 /* GCRepository+Mock-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Mock-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE2B14B5C1A8A764400003E64 /* GCDiff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDiff.h; sourceTree = \"<group>\"; };\n\t\tE2B14B5D1A8A764400003E64 /* GCDiff.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDiff.m; sourceTree = \"<group>\"; };\n\t\tE2B1BF311A85923800A999DF /* GIFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIFunctions.h; sourceTree = \"<group>\"; };\n\t\tE2B1BF321A85923800A999DF /* GIFunctions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIFunctions.m; sourceTree = \"<group>\"; };\n\t\tE2B1BF351A85C5ED00A999DF /* GIFunctions-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GIFunctions-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE2BDA06A1AD5AF2F00E69729 /* GIViewController+Utilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GIViewController+Utilities.h\"; sourceTree = \"<group>\"; };\n\t\tE2BDA06B1AD5AF2F00E69729 /* GIViewController+Utilities.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GIViewController+Utilities.m\"; sourceTree = \"<group>\"; };\n\t\tE2BDA0701AD5B97B00E69729 /* GIConflictResolverViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIConflictResolverViewController.h; sourceTree = \"<group>\"; };\n\t\tE2BDA0711AD5B97B00E69729 /* GIConflictResolverViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIConflictResolverViewController.m; sourceTree = \"<group>\"; };\n\t\tE2BDA0741AD5B98A00E69729 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIConflictResolverViewController.xib; sourceTree = \"<group>\"; };\n\t\tE2C338C419F8562F00063D95 /* GitUpTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GitUpTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE2C338DB19F85C8600063D95 /* GCBranch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCBranch.h; sourceTree = \"<group>\"; };\n\t\tE2C338DC19F85C8600063D95 /* GCBranch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCBranch.m; sourceTree = \"<group>\"; };\n\t\tE2C338DD19F85C8600063D95 /* GCCommit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCCommit.h; sourceTree = \"<group>\"; };\n\t\tE2C338DE19F85C8600063D95 /* GCCommit.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCCommit.m; sourceTree = \"<group>\"; };\n\t\tE2C338DF19F85C8600063D95 /* GCPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCPrivate.h; sourceTree = \"<group>\"; };\n\t\tE2C338E019F85C8600063D95 /* GCReference.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCReference.h; sourceTree = \"<group>\"; };\n\t\tE2C338E119F85C8600063D95 /* GCReference.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCReference.m; sourceTree = \"<group>\"; };\n\t\tE2C338E219F85C8600063D95 /* GCRemote.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCRemote.h; sourceTree = \"<group>\"; };\n\t\tE2C338E319F85C8600063D95 /* GCRemote.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCRemote.m; sourceTree = \"<group>\"; };\n\t\tE2C338E419F85C8600063D95 /* GCRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCRepository.h; sourceTree = \"<group>\"; };\n\t\tE2C338E519F85C8600063D95 /* GCRepository.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCRepository.m; sourceTree = \"<group>\"; };\n\t\tE2C338E619F85C8600063D95 /* GCStash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCStash.h; sourceTree = \"<group>\"; };\n\t\tE2C338E719F85C8600063D95 /* GCStash.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCStash.m; sourceTree = \"<group>\"; };\n\t\tE2C338E819F85C8600063D95 /* GCTag.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCTag.h; sourceTree = \"<group>\"; };\n\t\tE2C338E919F85C8600063D95 /* GCTag.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCTag.m; sourceTree = \"<group>\"; };\n\t\tE2C3AA5919FF0B0600BA89F3 /* GCRepository+Bare.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCRepository+Bare.h\"; sourceTree = \"<group>\"; };\n\t\tE2C3AA5A19FF0B0600BA89F3 /* GCRepository+Bare.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Bare.m\"; sourceTree = \"<group>\"; };\n\t\tE2C56CC31D71B3730011960D /* GCFoundation-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCFoundation-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE2C9FF861AA510170051B2AE /* GIUnifiedDiffView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIUnifiedDiffView.h; sourceTree = \"<group>\"; };\n\t\tE2C9FF871AA510170051B2AE /* GIUnifiedDiffView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIUnifiedDiffView.m; sourceTree = \"<group>\"; };\n\t\tE2D414891A02D68700B99634 /* GCHistory+Rewrite.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"GCHistory+Rewrite.h\"; sourceTree = \"<group>\"; };\n\t\tE2D4148A1A02D68700B99634 /* GCHistory+Rewrite.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCHistory+Rewrite.m\"; sourceTree = \"<group>\"; };\n\t\tE2D4DEA01A4D562300B6AF66 /* GIGraph.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIGraph.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEA11A4D562300B6AF66 /* GIGraph.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIGraph.m; sourceTree = \"<group>\"; };\n\t\tE2D4DEA21A4D562300B6AF66 /* GIGraphView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIGraphView.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEA31A4D562300B6AF66 /* GIGraphView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIGraphView.m; sourceTree = \"<group>\"; };\n\t\tE2D4DEA61A4D57AA00B6AF66 /* GINode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GINode.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEA71A4D57AA00B6AF66 /* GINode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GINode.m; sourceTree = \"<group>\"; };\n\t\tE2D4DEA91A4D581600B6AF66 /* GIPrivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GIPrivate.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEAA1A4D587800B6AF66 /* GILine.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GILine.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEAB1A4D587800B6AF66 /* GILine.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GILine.m; sourceTree = \"<group>\"; };\n\t\tE2D4DEAD1A4D592000B6AF66 /* GIBranch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIBranch.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEAE1A4D592000B6AF66 /* GIBranch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIBranch.m; sourceTree = \"<group>\"; };\n\t\tE2D4DEB01A4D599200B6AF66 /* GILayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GILayer.h; sourceTree = \"<group>\"; };\n\t\tE2D4DEB11A4D599200B6AF66 /* GILayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GILayer.m; sourceTree = \"<group>\"; };\n\t\tE2D4DEB31A4D5AC600B6AF66 /* GIInterface.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GIInterface.h; sourceTree = \"<group>\"; };\n\t\tE2D5AB301AA502D400BE9FFC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIDiffContentsViewController.xib; sourceTree = \"<group>\"; };\n\t\tE2D5AB321AA502E000BE9FFC /* GIDiffContentsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIDiffContentsViewController.h; sourceTree = \"<group>\"; };\n\t\tE2D5AB331AA502E000BE9FFC /* GIDiffContentsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIDiffContentsViewController.m; sourceTree = \"<group>\"; };\n\t\tE2D899991AA411430081FE66 /* Components.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Components.xcassets; sourceTree = \"<group>\"; };\n\t\tE2E4CA191AB0F3F000D225D3 /* GIDiffFilesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GIDiffFilesViewController.h; sourceTree = \"<group>\"; };\n\t\tE2E4CA1A1AB0F3F000D225D3 /* GIDiffFilesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GIDiffFilesViewController.m; sourceTree = \"<group>\"; };\n\t\tE2E4CA1D1AB0F3F500D225D3 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/GIDiffFilesViewController.xib; sourceTree = \"<group>\"; };\n\t\tE2F5C27C1A8171C900C30739 /* GCSnapshot.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCSnapshot.h; sourceTree = \"<group>\"; };\n\t\tE2F5C27D1A8171C900C30739 /* GCSnapshot.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCSnapshot.m; sourceTree = \"<group>\"; };\n\t\tE2F5C2801A8186C200C30739 /* GCSnapshot-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCSnapshot-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE2F5C2821A81C53A00C30739 /* GCRepository+Reflog-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCRepository+Reflog-Tests.m\"; sourceTree = \"<group>\"; };\n\t\tE2FEED441AEAA6AD00CBED80 /* GCCommitDatabase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCCommitDatabase.h; sourceTree = \"<group>\"; };\n\t\tE2FEED451AEAA6AD00CBED80 /* GCCommitDatabase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCCommitDatabase.m; sourceTree = \"<group>\"; };\n\t\tE2FEED481AEAA6B500CBED80 /* GCCommitDatabase-Tests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = \"GCCommitDatabase-Tests.m\"; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE21753171B91613300BE234A /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDBBEE674256B09B500F96DAF /* libiconv.tbd in Frameworks */,\n\t\t\t\tDBBEE66A256B099300F96DAF /* libsqlite3.xcframework in Frameworks */,\n\t\t\t\tDBBEE675256B09B500F96DAF /* libz.tbd in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE267E1A41B84D6C500BAB377 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t0A1DA51E265806140041E737 /* Security.framework in Frameworks */,\n\t\t\t\tDBBEE655256B095000F96DAF /* libiconv.tbd in Frameworks */,\n\t\t\t\t0A4881D726C7B4CF00289CF9 /* Libgit2Origin in Frameworks */,\n\t\t\t\tDBBEE64D256B094000F96DAF /* libz.tbd in Frameworks */,\n\t\t\t\tDBBEE638256B08D300F96DAF /* libsqlite3.xcframework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE2C338C119F8562F00063D95 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t1DADC0DE25A25D5D008C2C35 /* libiconv.tbd in Frameworks */,\n\t\t\t\t1DADC0DA25A25D54008C2C35 /* libsqlite3.xcframework in Frameworks */,\n\t\t\t\t1DC7FB2A28748D1200D2FD4C /* Libgit2Origin in Frameworks */,\n\t\t\t\t1DADC0E225A25D63008C2C35 /* libz.tbd in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t1D615D7D286BE77700FFF7E7 /* Logging */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t1D615D7E286BE79200FFF7E7 /* XLFacilityMacros.h */,\n\t\t\t);\n\t\t\tpath = Logging;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDBBFFF4E2567370900AE139C /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0A1DA51D265806140041E737 /* Security.framework */,\n\t\t\t\t0A1DA512265805C30041E737 /* libcommonCrypto.tbd */,\n\t\t\t\tDBBEE654256B095000F96DAF /* libiconv.tbd */,\n\t\t\t\tDBBEE637256B08D300F96DAF /* libsqlite3.xcframework */,\n\t\t\t\tDBBEE64C256B094000F96DAF /* libz.tbd */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21A88DC1A942CCA00255AC3 /* Components */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2D899991AA411430081FE66 /* Components.xcassets */,\n\t\t\t\tE22942281AC2160E000A83AF /* Reasons.strings */,\n\t\t\t\tE230DEEB1AA11CF7006EE09F /* GICommitListViewController.h */,\n\t\t\t\tE230DEEC1AA11CF7006EE09F /* GICommitListViewController.m */,\n\t\t\t\tE230DEE81AA11CE9006EE09F /* GICommitListViewController.xib */,\n\t\t\t\tE2D5AB321AA502E000BE9FFC /* GIDiffContentsViewController.h */,\n\t\t\t\tE2D5AB331AA502E000BE9FFC /* GIDiffContentsViewController.m */,\n\t\t\t\tE2D5AB2F1AA502D400BE9FFC /* GIDiffContentsViewController.xib */,\n\t\t\t\tE2E4CA191AB0F3F000D225D3 /* GIDiffFilesViewController.h */,\n\t\t\t\tE2E4CA1A1AB0F3F000D225D3 /* GIDiffFilesViewController.m */,\n\t\t\t\tE2E4CA1C1AB0F3F500D225D3 /* GIDiffFilesViewController.xib */,\n\t\t\t\tE21A88FB1A97A67900255AC3 /* GISnapshotListViewController.h */,\n\t\t\t\tE21A88FC1A97A67900255AC3 /* GISnapshotListViewController.m */,\n\t\t\t\tE21A88FE1A97A67E00255AC3 /* GISnapshotListViewController.xib */,\n\t\t\t\tE21A88F51A97172D00255AC3 /* GIUnifiedReflogViewController.h */,\n\t\t\t\tE21A88F61A97172D00255AC3 /* GIUnifiedReflogViewController.m */,\n\t\t\t\tE21A88F81A97173300255AC3 /* GIUnifiedReflogViewController.xib */,\n\t\t\t);\n\t\t\tpath = Components;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941D21AC11E31000A83AF /* Utilities */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941E11AC11E79000A83AF /* Utilities.xcassets */,\n\t\t\t\tE22941D31AC11E31000A83AF /* GIAppKit.h */,\n\t\t\t\tE22941D41AC11E31000A83AF /* GIAppKit.m */,\n\t\t\t\tE22942251AC12E5C000A83AF /* GIColorView.h */,\n\t\t\t\tE22942261AC12E5C000A83AF /* GIColorView.m */,\n\t\t\t\tDB7CBCA025762721001185AA /* GICustomToolbarItem.h */,\n\t\t\t\tDB7CBCA125762721001185AA /* GICustomToolbarItem.m */,\n\t\t\t\t0AC8525723A122C400479160 /* GILaunchServicesLocator.h */,\n\t\t\t\t0AC8525823A122C400479160 /* GILaunchServicesLocator.m */,\n\t\t\t\tE22941E31AC11EBB000A83AF /* GILinkButton.h */,\n\t\t\t\tE22941E41AC11EBB000A83AF /* GILinkButton.m */,\n\t\t\t\tE22941D51AC11E31000A83AF /* GIModalView.h */,\n\t\t\t\tE22941D61AC11E31000A83AF /* GIModalView.m */,\n\t\t\t\tE22941D71AC11E31000A83AF /* GIViewController.h */,\n\t\t\t\tE22941D81AC11E31000A83AF /* GIViewController.m */,\n\t\t\t\tE2BDA06A1AD5AF2F00E69729 /* GIViewController+Utilities.h */,\n\t\t\t\tE2BDA06B1AD5AF2F00E69729 /* GIViewController+Utilities.m */,\n\t\t\t\tE22941DC1AC11E4E000A83AF /* GIWindowController.h */,\n\t\t\t\tE22941DD1AC11E4E000A83AF /* GIWindowController.m */,\n\t\t\t\tE22941DE1AC11E4E000A83AF /* GIWindowController.xib */,\n\t\t\t\tDBDFBC0D22B61135003EEC6C /* NSBundle+GitUpKit.h */,\n\t\t\t\tDBDFBC0E22B61135003EEC6C /* NSBundle+GitUpKit.m */,\n\t\t\t\tDBDFBC1A22B61290003EEC6C /* NSColor+GINamedColors.h */,\n\t\t\t\tDBDFBC1B22B61290003EEC6C /* NSColor+GINamedColors.m */,\n\t\t\t);\n\t\t\tpath = Utilities;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941E61AC11F56000A83AF /* Views */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE229421A1AC11FF6000A83AF /* Views.xcassets */,\n\t\t\t\tE22941F71AC11F56000A83AF /* GIAdvancedCommitViewController.h */,\n\t\t\t\tE22941F81AC11F56000A83AF /* GIAdvancedCommitViewController.m */,\n\t\t\t\tE22941E71AC11F56000A83AF /* GIAdvancedCommitViewController.xib */,\n\t\t\t\tE22942221AC12145000A83AF /* GICommitRewriterViewController.h */,\n\t\t\t\tE22942231AC12145000A83AF /* GICommitRewriterViewController.m */,\n\t\t\t\tE229421C1AC120A8000A83AF /* GICommitRewriterViewController.xib */,\n\t\t\t\tE229D8F61ACF313E00D5F0AC /* GICommitSplitterViewController.h */,\n\t\t\t\tE229D8F71ACF313E00D5F0AC /* GICommitSplitterViewController.m */,\n\t\t\t\tE229421E1AC120A8000A83AF /* GICommitSplitterViewController.xib */,\n\t\t\t\tE22941F91AC11F56000A83AF /* GICommitViewController.h */,\n\t\t\t\tE22941FA1AC11F56000A83AF /* GICommitViewController.m */,\n\t\t\t\tE22941FB1AC11F56000A83AF /* GIConfigViewController.h */,\n\t\t\t\tE22941FC1AC11F56000A83AF /* GIConfigViewController.m */,\n\t\t\t\tE22941EB1AC11F56000A83AF /* GIConfigViewController.xib */,\n\t\t\t\tE22941E91AC11F56000A83AF /* GIConfigViewController-Help.txt */,\n\t\t\t\tE2BDA0701AD5B97B00E69729 /* GIConflictResolverViewController.h */,\n\t\t\t\tE2BDA0711AD5B97B00E69729 /* GIConflictResolverViewController.m */,\n\t\t\t\tE2BDA0731AD5B98A00E69729 /* GIConflictResolverViewController.xib */,\n\t\t\t\tE22941FD1AC11F56000A83AF /* GIDiffViewController.h */,\n\t\t\t\tE22941FE1AC11F56000A83AF /* GIDiffViewController.m */,\n\t\t\t\tE22941ED1AC11F56000A83AF /* GIDiffViewController.xib */,\n\t\t\t\tE22942011AC11F56000A83AF /* GIMapViewController.h */,\n\t\t\t\tE22942021AC11F56000A83AF /* GIMapViewController.m */,\n\t\t\t\tE22941FF1AC11F56000A83AF /* GIMapViewController+Operations.h */,\n\t\t\t\tE22942001AC11F56000A83AF /* GIMapViewController+Operations.m */,\n\t\t\t\tE22941EF1AC11F56000A83AF /* GIMapViewController.xib */,\n\t\t\t\tE22942031AC11F56000A83AF /* GIQuickViewController.h */,\n\t\t\t\tE22942041AC11F56000A83AF /* GIQuickViewController.m */,\n\t\t\t\tE22941F11AC11F56000A83AF /* GIQuickViewController.xib */,\n\t\t\t\t1D841F752B955C3800E4FCCC /* GIRemappingExplanationPopover.h */,\n\t\t\t\t1D841F762B955C3800E4FCCC /* GIRemappingExplanationPopover.m */,\n\t\t\t\t1D841F772B955C3800E4FCCC /* GIRemappingExplanationViewController.xib */,\n\t\t\t\tE22942051AC11F56000A83AF /* GISimpleCommitViewController.h */,\n\t\t\t\tE22942061AC11F56000A83AF /* GISimpleCommitViewController.m */,\n\t\t\t\tE22941F31AC11F56000A83AF /* GISimpleCommitViewController.xib */,\n\t\t\t\tE22942071AC11F56000A83AF /* GIStashListViewController.h */,\n\t\t\t\tE22942081AC11F56000A83AF /* GIStashListViewController.m */,\n\t\t\t\tE22941F51AC11F56000A83AF /* GIStashListViewController.xib */,\n\t\t\t);\n\t\t\tpath = Views;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2735B2119FF763300ED0CC4 /* Extensions */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE259C2D41A64FAA40079616B /* GCHistory+Rewrite-Tests.m */,\n\t\t\t\tE2D414891A02D68700B99634 /* GCHistory+Rewrite.h */,\n\t\t\t\tE2D4148A1A02D68700B99634 /* GCHistory+Rewrite.m */,\n\t\t\t\tE2790D441ACF12E200965A98 /* GCRepository+Index-Tests.m */,\n\t\t\t\tE2790D451ACF12E200965A98 /* GCRepository+Index.h */,\n\t\t\t\tE2790D461ACF12E200965A98 /* GCRepository+Index.m */,\n\t\t\t\tE259C2D61A64FAEA0079616B /* GCRepository+Utilities-Tests.m */,\n\t\t\t\tE218A58C1A56706600DFF1DF /* GCRepository+Utilities.h */,\n\t\t\t\tE218A58D1A56706600DFF1DF /* GCRepository+Utilities.m */,\n\t\t\t\t1DF371CB22F5262300EF7BD9 /* GCLiveRepository+Utilities.h */,\n\t\t\t\t1DF371CC22F5262300EF7BD9 /* GCLiveRepository+Utilities.m */,\n\t\t\t);\n\t\t\tpath = Extensions;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE27E374E1B86F5D1000A551A /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE27E374F1B86F5D1000A551A /* Base.xcconfig */,\n\t\t\t\tE27E37501B86F5D1000A551A /* Debug.xcconfig */,\n\t\t\t\tE27E37521B86F5D1000A551A /* Release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2C338A219F8562F00063D95 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t0AD01C0B26D6A11C0068A02E /* Third-Party */,\n\t\t\t\tE267E1AA1B84D6C500BAB377 /* GitUpKit.h */,\n\t\t\t\tE267E1AC1B84D6C500BAB377 /* Info.plist */,\n\t\t\t\tE22941E61AC11F56000A83AF /* Views */,\n\t\t\t\tE21A88DC1A942CCA00255AC3 /* Components */,\n\t\t\t\tE22941D21AC11E31000A83AF /* Utilities */,\n\t\t\t\tE2D4DE9F1A4D562300B6AF66 /* Interface */,\n\t\t\t\tE2735B2119FF763300ED0CC4 /* Extensions */,\n\t\t\t\t1D615D7D286BE77700FFF7E7 /* Logging */,\n\t\t\t\tE2C338DA19F85C8600063D95 /* Core */,\n\t\t\t\tDBBFFF4E2567370900AE139C /* Frameworks */,\n\t\t\t\tE27E374E1B86F5D1000A551A /* Xcode-Configurations */,\n\t\t\t\tE2C338AC19F8562F00063D95 /* Products */,\n\t\t\t);\n\t\t\tindentWidth = 2;\n\t\t\tsourceTree = \"<group>\";\n\t\t\ttabWidth = 2;\n\t\t};\n\t\tE2C338AC19F8562F00063D95 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2C338C419F8562F00063D95 /* GitUpTests.xctest */,\n\t\t\t\tE267E1A81B84D6C500BAB377 /* GitUpKit.framework */,\n\t\t\t\tE217531B1B91613300BE234A /* GitUpKit.framework */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2C338DA19F85C8600063D95 /* Core */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE259C2CE1A64F7D00079616B /* GCBranch-Tests.m */,\n\t\t\t\tE2C338DB19F85C8600063D95 /* GCBranch.h */,\n\t\t\t\tE2C338DC19F85C8600063D95 /* GCBranch.m */,\n\t\t\t\tE259C2E41A6624DC0079616B /* GCCommit-Tests.m */,\n\t\t\t\tE2C338DD19F85C8600063D95 /* GCCommit.h */,\n\t\t\t\tE2C338DE19F85C8600063D95 /* GCCommit.m */,\n\t\t\t\tE2FEED441AEAA6AD00CBED80 /* GCCommitDatabase.h */,\n\t\t\t\tE2FEED451AEAA6AD00CBED80 /* GCCommitDatabase.m */,\n\t\t\t\tE2FEED481AEAA6B500CBED80 /* GCCommitDatabase-Tests.m */,\n\t\t\t\tE20EB09519FC76AE0031A075 /* GCCore.h */,\n\t\t\t\tE259C2DA1A64FDA60079616B /* GCDiff-Tests.m */,\n\t\t\t\tE2B14B5C1A8A764400003E64 /* GCDiff.h */,\n\t\t\t\tE2B14B5D1A8A764400003E64 /* GCDiff.m */,\n\t\t\t\tE2146C901A58849F00F4550B /* GCError.h */,\n\t\t\t\tE2790D401ACB1B1100965A98 /* GCFoundation.h */,\n\t\t\t\tE2790D411ACB1B1100965A98 /* GCFoundation.m */,\n\t\t\t\tE2C56CC31D71B3730011960D /* GCFoundation-Tests.m */,\n\t\t\t\tE21739F11A4FE39E00EC6777 /* GCFunctions.h */,\n\t\t\t\tE21739F21A4FE39E00EC6777 /* GCFunctions.m */,\n\t\t\t\tE259C2D21A64F9FF0079616B /* GCHistory-Tests.m */,\n\t\t\t\tE20F10F11A043E2100076AAC /* GCHistory.h */,\n\t\t\t\tE20F10F21A043E2100076AAC /* GCHistory.m */,\n\t\t\t\tE2790D4B1ACF130A00965A98 /* GCIndex.h */,\n\t\t\t\tE2790D4C1ACF130A00965A98 /* GCIndex.m */,\n\t\t\t\tE23C1A891A9019610060F6AD /* GCLiveRepository.h */,\n\t\t\t\tE23C1A8A1A9019610060F6AD /* GCLiveRepository.m */,\n\t\t\t\tDC040FC82BCB21D000DF54D5 /* GCLiveRepository+Conflicts.h */,\n\t\t\t\tDC040FC92BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m */,\n\t\t\t\tDC040FC42BC9FECC00DF54D5 /* GCLiveRepository-Tests.m */,\n\t\t\t\tE244538F1A70CDA200E61DE7 /* GCMacros.h */,\n\t\t\t\tE2146C8C1A57F3BC00F4550B /* GCObject.h */,\n\t\t\t\tE2146C8D1A57F3BC00F4550B /* GCObject.m */,\n\t\t\t\t74EDB5D01B84D4C400F00E79 /* GCOrderedSet.h */,\n\t\t\t\t74EDB5D11B84D4C400F00E79 /* GCOrderedSet.m */,\n\t\t\t\t74EDB5D51B84E06500F00E79 /* GCOrderedSet-Tests.m */,\n\t\t\t\tE2C338DF19F85C8600063D95 /* GCPrivate.h */,\n\t\t\t\tE200A3B81B02DDA100C4E39D /* GCPrivate.m */,\n\t\t\t\tE2C338E019F85C8600063D95 /* GCReference.h */,\n\t\t\t\tE2C338E119F85C8600063D95 /* GCReference.m */,\n\t\t\t\tE218A5881A566F6A00DFF1DF /* GCReferenceTransform.h */,\n\t\t\t\tE218A5891A566F6A00DFF1DF /* GCReferenceTransform.m */,\n\t\t\t\tE2146C911A58D83100F4550B /* GCReflogMessages.h */,\n\t\t\t\tE259C2D01A64F9050079616B /* GCRemote-Tests.m */,\n\t\t\t\tE2C338E219F85C8600063D95 /* GCRemote.h */,\n\t\t\t\tE2C338E319F85C8600063D95 /* GCRemote.m */,\n\t\t\t\tE259C2C61A64C9980079616B /* GCRepository-Tests.m */,\n\t\t\t\tE2C338E419F85C8600063D95 /* GCRepository.h */,\n\t\t\t\tE2C338E519F85C8600063D95 /* GCRepository.m */,\n\t\t\t\tE259C2D81A64FD640079616B /* GCRepository+Bare-Tests.m */,\n\t\t\t\tE2C3AA5919FF0B0600BA89F3 /* GCRepository+Bare.h */,\n\t\t\t\tE2C3AA5A19FF0B0600BA89F3 /* GCRepository+Bare.m */,\n\t\t\t\tE24509021A9A50F3003E602D /* GCRepository+Config-Tests.m */,\n\t\t\t\tE24508FE1A9A50EA003E602D /* GCRepository+Config.h */,\n\t\t\t\tE24508FF1A9A50EA003E602D /* GCRepository+Config.m */,\n\t\t\t\tE259C2DC1A64FDD00079616B /* GCRepository+HEAD-Tests.m */,\n\t\t\t\tE27F9B721A549097009C9B3D /* GCRepository+HEAD.h */,\n\t\t\t\tE27F9B731A549097009C9B3D /* GCRepository+HEAD.m */,\n\t\t\t\tE299D0151A749D27005035F7 /* GCRepository+Mock-Tests.m */,\n\t\t\t\tE299D0111A749C26005035F7 /* GCRepository+Mock.h */,\n\t\t\t\tE299D0121A749C26005035F7 /* GCRepository+Mock.m */,\n\t\t\t\tE2F5C2821A81C53A00C30739 /* GCRepository+Reflog-Tests.m */,\n\t\t\t\tE27B6D641A84451900D05452 /* GCRepository+Reflog.h */,\n\t\t\t\tE27B6D651A84451900D05452 /* GCRepository+Reflog.m */,\n\t\t\t\tE259C2E21A64FE710079616B /* GCRepository+Reset-Tests.m */,\n\t\t\t\tE20EB08919FC75CA0031A075 /* GCRepository+Reset.h */,\n\t\t\t\tE20EB08A19FC75CA0031A075 /* GCRepository+Reset.m */,\n\t\t\t\tE259C2E01A64FE4C0079616B /* GCRepository+Status-Tests.m */,\n\t\t\t\tE20EB08D19FC76160031A075 /* GCRepository+Status.h */,\n\t\t\t\tE20EB08E19FC76160031A075 /* GCRepository+Status.m */,\n\t\t\t\tE2F5C2801A8186C200C30739 /* GCSnapshot-Tests.m */,\n\t\t\t\tE2F5C27C1A8171C900C30739 /* GCSnapshot.h */,\n\t\t\t\tE2F5C27D1A8171C900C30739 /* GCSnapshot.m */,\n\t\t\t\tE299D00E1A7206E7005035F7 /* GCSQLiteRepository-Tests.m */,\n\t\t\t\tE299D00D1A71F937005035F7 /* GCSQLiteRepository.h */,\n\t\t\t\tE299D00A1A71F0E9005035F7 /* GCSQLiteRepository.m */,\n\t\t\t\tE259C2CC1A64D30A0079616B /* GCStash-Tests.m */,\n\t\t\t\tE2C338E619F85C8600063D95 /* GCStash.h */,\n\t\t\t\tE2C338E719F85C8600063D95 /* GCStash.m */,\n\t\t\t\tE259C2C81A64CAB30079616B /* GCSubmodule-Tests.m */,\n\t\t\t\tE21739FC1A51FA6200EC6777 /* GCSubmodule.h */,\n\t\t\t\tE21739FD1A51FA6200EC6777 /* GCSubmodule.m */,\n\t\t\t\tE259C2CA1A64D27F0079616B /* GCTag-Tests.m */,\n\t\t\t\tE2C338E819F85C8600063D95 /* GCTag.h */,\n\t\t\t\tE2C338E919F85C8600063D95 /* GCTag.m */,\n\t\t\t\tE259C2C31A64C8EA0079616B /* GCTestCase.h */,\n\t\t\t\tE259C2C41A64C8EA0079616B /* GCTestCase.m */,\n\t\t\t);\n\t\t\tpath = Core;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2D4DE9F1A4D562300B6AF66 /* Interface */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDBDFBC0B22B610F1003EEC6C /* Interface.xcassets */,\n\t\t\t\tE2D4DEAD1A4D592000B6AF66 /* GIBranch.h */,\n\t\t\t\tE2D4DEAE1A4D592000B6AF66 /* GIBranch.m */,\n\t\t\t\t6D8E3F0A25D90E1300AAFC17 /* GIImageDiffView.m */,\n\t\t\t\t6D8E3F0F25D90E3400AAFC17 /* GIImageDiffView.h */,\n\t\t\t\tE23186031B139CB900A93CCF /* GIConstants.h */,\n\t\t\t\tE2891AB41AE1684A00E58C77 /* GIDiffView.h */,\n\t\t\t\tE2891AB51AE1684A00E58C77 /* GIDiffView.m */,\n\t\t\t\tE2B1BF351A85C5ED00A999DF /* GIFunctions-Tests.m */,\n\t\t\t\tE2B1BF311A85923800A999DF /* GIFunctions.h */,\n\t\t\t\tE2B1BF321A85923800A999DF /* GIFunctions.m */,\n\t\t\t\tE27E43011A74A94700D04ED1 /* GIGraph-Tests.m */,\n\t\t\t\tE2D4DEA01A4D562300B6AF66 /* GIGraph.h */,\n\t\t\t\tE2D4DEA11A4D562300B6AF66 /* GIGraph.m */,\n\t\t\t\tE2D4DEA21A4D562300B6AF66 /* GIGraphView.h */,\n\t\t\t\tE2D4DEA31A4D562300B6AF66 /* GIGraphView.m */,\n\t\t\t\tE2D4DEB31A4D5AC600B6AF66 /* GIInterface.h */,\n\t\t\t\tE2D4DEB01A4D599200B6AF66 /* GILayer.h */,\n\t\t\t\tE2D4DEB11A4D599200B6AF66 /* GILayer.m */,\n\t\t\t\tE2D4DEAA1A4D587800B6AF66 /* GILine.h */,\n\t\t\t\tE2D4DEAB1A4D587800B6AF66 /* GILine.m */,\n\t\t\t\tE2D4DEA61A4D57AA00B6AF66 /* GINode.h */,\n\t\t\t\tE2D4DEA71A4D57AA00B6AF66 /* GINode.m */,\n\t\t\t\tE2D4DEA91A4D581600B6AF66 /* GIPrivate.h */,\n\t\t\t\tE21A88F21A9471B300255AC3 /* GIPrivate.m */,\n\t\t\t\tE2891AB11AE15BB600E58C77 /* GISplitDiffView.h */,\n\t\t\t\tE2891AB21AE15BB600E58C77 /* GISplitDiffView.m */,\n\t\t\t\tE2C9FF861AA510170051B2AE /* GIUnifiedDiffView.h */,\n\t\t\t\tE2C9FF871AA510170051B2AE /* GIUnifiedDiffView.m */,\n\t\t\t);\n\t\t\tpath = Interface;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXHeadersBuildPhase section */\n\t\tE21753181B91613300BE234A /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE21753631B9162D100BE234A /* GitUpKit.h in Headers */,\n\t\t\t\tE21753421B91626B00BE234A /* GCBranch.h in Headers */,\n\t\t\t\tE21753431B91626B00BE234A /* GCCommit.h in Headers */,\n\t\t\t\tE21753441B91626B00BE234A /* GCCommitDatabase.h in Headers */,\n\t\t\t\tDBDFBC1022B61135003EEC6C /* NSBundle+GitUpKit.h in Headers */,\n\t\t\t\tE21753451B91626B00BE234A /* GCCore.h in Headers */,\n\t\t\t\tE21753461B91626B00BE234A /* GCDiff.h in Headers */,\n\t\t\t\tE21753471B91626B00BE234A /* GCError.h in Headers */,\n\t\t\t\tE21753481B91626B00BE234A /* GCFoundation.h in Headers */,\n\t\t\t\tE21753491B91626B00BE234A /* GCFunctions.h in Headers */,\n\t\t\t\t1D615D82286BEDCE00FFF7E7 /* XLFacilityMacros.h in Headers */,\n\t\t\t\tE217534A1B91626B00BE234A /* GCHistory.h in Headers */,\n\t\t\t\tE217534B1B91626B00BE234A /* GCIndex.h in Headers */,\n\t\t\t\tE217534D1B91626B00BE234A /* GCMacros.h in Headers */,\n\t\t\t\tE217534E1B91626B00BE234A /* GCObject.h in Headers */,\n\t\t\t\tE217534F1B91626B00BE234A /* GCReference.h in Headers */,\n\t\t\t\tE21753501B91626B00BE234A /* GCReferenceTransform.h in Headers */,\n\t\t\t\tE21753511B91626C00BE234A /* GCReflogMessages.h in Headers */,\n\t\t\t\tE21753521B91626C00BE234A /* GCRemote.h in Headers */,\n\t\t\t\tE21753531B91626C00BE234A /* GCRepository.h in Headers */,\n\t\t\t\tE21753541B91626C00BE234A /* GCRepository+Bare.h in Headers */,\n\t\t\t\tE21753551B91626C00BE234A /* GCRepository+Config.h in Headers */,\n\t\t\t\tE21753561B91626C00BE234A /* GCRepository+HEAD.h in Headers */,\n\t\t\t\tE21753571B91626C00BE234A /* GCRepository+Mock.h in Headers */,\n\t\t\t\tE21753581B91626C00BE234A /* GCRepository+Reflog.h in Headers */,\n\t\t\t\tE21753591B91626C00BE234A /* GCRepository+Reset.h in Headers */,\n\t\t\t\tE217535A1B91626C00BE234A /* GCRepository+Status.h in Headers */,\n\t\t\t\tE217535B1B91626C00BE234A /* GCSnapshot.h in Headers */,\n\t\t\t\tE217535C1B91626C00BE234A /* GCSQLiteRepository.h in Headers */,\n\t\t\t\tE21753611B9162B600BE234A /* GCRepository+Index.h in Headers */,\n\t\t\t\tE217535D1B91626C00BE234A /* GCStash.h in Headers */,\n\t\t\t\tE217535E1B91626C00BE234A /* GCSubmodule.h in Headers */,\n\t\t\t\tE217535F1B91626C00BE234A /* GCTag.h in Headers */,\n\t\t\t\tE21753621B9162B600BE234A /* GCRepository+Utilities.h in Headers */,\n\t\t\t\tE21753601B9162B600BE234A /* GCHistory+Rewrite.h in Headers */,\n\t\t\t\tE26CDF261B9B86250050C920 /* GCOrderedSet.h in Headers */,\n\t\t\t\tE2B987961B9172470097629D /* GIBranch.h in Headers */,\n\t\t\t\tE2B987971B9172470097629D /* GIConstants.h in Headers */,\n\t\t\t\tE2B987981B9172470097629D /* GIFunctions.h in Headers */,\n\t\t\t\tE2B987991B9172470097629D /* GIGraph.h in Headers */,\n\t\t\t\tE2B9879A1B9172470097629D /* GIInterface.h in Headers */,\n\t\t\t\tE2B9879B1B9172470097629D /* GILayer.h in Headers */,\n\t\t\t\tE2B9879C1B9172470097629D /* GILine.h in Headers */,\n\t\t\t\tE2B9879D1B9172470097629D /* GINode.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE267E1A51B84D6C500BAB377 /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE267E1AB1B84D6C500BAB377 /* GitUpKit.h in Headers */,\n\t\t\t\tE267E1B51B84D7D200BAB377 /* GCTag.h in Headers */,\n\t\t\t\tE267E1B61B84D7D500BAB377 /* GCSubmodule.h in Headers */,\n\t\t\t\tE267E1B71B84D7D800BAB377 /* GCStash.h in Headers */,\n\t\t\t\tE267E1B81B84D7DE00BAB377 /* GCSQLiteRepository.h in Headers */,\n\t\t\t\tE267E1B91B84D7E100BAB377 /* GCSnapshot.h in Headers */,\n\t\t\t\tE267E1BA1B84D80500BAB377 /* GCBranch.h in Headers */,\n\t\t\t\tE267E1BB1B84D80500BAB377 /* GCCommit.h in Headers */,\n\t\t\t\tE267E1BC1B84D80500BAB377 /* GCCommitDatabase.h in Headers */,\n\t\t\t\t1D841F782B955C3800E4FCCC /* GIRemappingExplanationPopover.h in Headers */,\n\t\t\t\tE267E1BD1B84D80500BAB377 /* GCCore.h in Headers */,\n\t\t\t\tE267E1BE1B84D80500BAB377 /* GCDiff.h in Headers */,\n\t\t\t\tE267E2A61B84F02A00BAB377 /* GCError.h in Headers */,\n\t\t\t\tE267E1BF1B84D80500BAB377 /* GCFoundation.h in Headers */,\n\t\t\t\tE267E1C01B84D80500BAB377 /* GCFunctions.h in Headers */,\n\t\t\t\tE267E1C11B84D80500BAB377 /* GCHistory.h in Headers */,\n\t\t\t\tE267E1C21B84D80500BAB377 /* GCIndex.h in Headers */,\n\t\t\t\tE267E1C31B84D80500BAB377 /* GCLiveRepository.h in Headers */,\n\t\t\t\tE267E2A71B84F03600BAB377 /* GCMacros.h in Headers */,\n\t\t\t\tE267E1C41B84D80500BAB377 /* GCObject.h in Headers */,\n\t\t\t\tDBCF675722CAE12500969D4A /* NSColor+GINamedColors.h in Headers */,\n\t\t\t\tE267E1C51B84D80500BAB377 /* GCReference.h in Headers */,\n\t\t\t\tE267E1C61B84D80500BAB377 /* GCReferenceTransform.h in Headers */,\n\t\t\t\tE267E1C71B84D80500BAB377 /* GCReflogMessages.h in Headers */,\n\t\t\t\tE267E1C81B84D80500BAB377 /* GCRemote.h in Headers */,\n\t\t\t\tE267E1C91B84D80500BAB377 /* GCRepository.h in Headers */,\n\t\t\t\tE267E1CA1B84D80500BAB377 /* GCRepository+Bare.h in Headers */,\n\t\t\t\tE267E1CB1B84D80500BAB377 /* GCRepository+Config.h in Headers */,\n\t\t\t\tE267E1CC1B84D80500BAB377 /* GCRepository+HEAD.h in Headers */,\n\t\t\t\tE267E1CD1B84D80500BAB377 /* GCRepository+Mock.h in Headers */,\n\t\t\t\tE267E1CE1B84D80500BAB377 /* GCRepository+Reflog.h in Headers */,\n\t\t\t\tE267E1CF1B84D80500BAB377 /* GCRepository+Reset.h in Headers */,\n\t\t\t\tE267E1D01B84D80500BAB377 /* GCRepository+Status.h in Headers */,\n\t\t\t\tE267E1F01B84D85500BAB377 /* GCHistory+Rewrite.h in Headers */,\n\t\t\t\tE267E1F11B84D85500BAB377 /* GCRepository+Index.h in Headers */,\n\t\t\t\t743BF1841B871C0200E1CA49 /* GCOrderedSet.h in Headers */,\n\t\t\t\tE267E2091B84DB4200BAB377 /* GIBranch.h in Headers */,\n\t\t\t\tE267E20A1B84DB4200BAB377 /* GIConstants.h in Headers */,\n\t\t\t\tE267E20B1B84DB4200BAB377 /* GIDiffView.h in Headers */,\n\t\t\t\tE267E20C1B84DB4200BAB377 /* GIFunctions.h in Headers */,\n\t\t\t\tE267E20D1B84DB4200BAB377 /* GIGraph.h in Headers */,\n\t\t\t\tE267E20E1B84DB4200BAB377 /* GIGraphView.h in Headers */,\n\t\t\t\tE267E20F1B84DB4200BAB377 /* GIInterface.h in Headers */,\n\t\t\t\tE267E2101B84DB4200BAB377 /* GILayer.h in Headers */,\n\t\t\t\tE267E2111B84DB4200BAB377 /* GILine.h in Headers */,\n\t\t\t\tE267E2121B84DB4200BAB377 /* GINode.h in Headers */,\n\t\t\t\tE267E2131B84DB4200BAB377 /* GISplitDiffView.h in Headers */,\n\t\t\t\tE267E2141B84DB4200BAB377 /* GIUnifiedDiffView.h in Headers */,\n\t\t\t\tE267E1F21B84D85500BAB377 /* GCRepository+Utilities.h in Headers */,\n\t\t\t\tE267E2221B84DBE700BAB377 /* GIAppKit.h in Headers */,\n\t\t\t\tE267E2231B84DBE700BAB377 /* GIColorView.h in Headers */,\n\t\t\t\t0AC8525923A122C400479160 /* GILaunchServicesLocator.h in Headers */,\n\t\t\t\tE267E2241B84DBE700BAB377 /* GILinkButton.h in Headers */,\n\t\t\t\tE267E2251B84DBE700BAB377 /* GIModalView.h in Headers */,\n\t\t\t\tE267E2261B84DBE700BAB377 /* GIViewController.h in Headers */,\n\t\t\t\tE267E2271B84DBE700BAB377 /* GIViewController+Utilities.h in Headers */,\n\t\t\t\tE267E2281B84DBE700BAB377 /* GIWindowController.h in Headers */,\n\t\t\t\tE267E2361B84DC3900BAB377 /* GICommitListViewController.h in Headers */,\n\t\t\t\tE267E2371B84DC3900BAB377 /* GIDiffContentsViewController.h in Headers */,\n\t\t\t\tE267E2381B84DC3900BAB377 /* GIDiffFilesViewController.h in Headers */,\n\t\t\t\tE267E2391B84DC3900BAB377 /* GISnapshotListViewController.h in Headers */,\n\t\t\t\t1DF371CD22F5262300EF7BD9 /* GCLiveRepository+Utilities.h in Headers */,\n\t\t\t\tE267E23A1B84DC3900BAB377 /* GIUnifiedReflogViewController.h in Headers */,\n\t\t\t\t6D8E3F1025D90E3400AAFC17 /* GIImageDiffView.h in Headers */,\n\t\t\t\tE267E24D1B84DC7D00BAB377 /* GIAdvancedCommitViewController.h in Headers */,\n\t\t\t\tE267E24E1B84DC7D00BAB377 /* GICommitRewriterViewController.h in Headers */,\n\t\t\t\tE267E24F1B84DC7D00BAB377 /* GICommitSplitterViewController.h in Headers */,\n\t\t\t\t1D615D81286BEDC600FFF7E7 /* XLFacilityMacros.h in Headers */,\n\t\t\t\tE267E2501B84DC7D00BAB377 /* GICommitViewController.h in Headers */,\n\t\t\t\tDBDFBC0F22B61135003EEC6C /* NSBundle+GitUpKit.h in Headers */,\n\t\t\t\tE267E2511B84DC7D00BAB377 /* GIConfigViewController.h in Headers */,\n\t\t\t\tE267E2521B84DC7D00BAB377 /* GIConflictResolverViewController.h in Headers */,\n\t\t\t\tE267E2531B84DC7D00BAB377 /* GIDiffViewController.h in Headers */,\n\t\t\t\tE267E2541B84DC7D00BAB377 /* GIMapViewController.h in Headers */,\n\t\t\t\tE267E2551B84DC7D00BAB377 /* GIMapViewController+Operations.h in Headers */,\n\t\t\t\tE267E2561B84DC7D00BAB377 /* GIQuickViewController.h in Headers */,\n\t\t\t\tDC040FCB2BCB21D000DF54D5 /* GCLiveRepository+Conflicts.h in Headers */,\n\t\t\t\tE267E2571B84DC7D00BAB377 /* GISimpleCommitViewController.h in Headers */,\n\t\t\t\tE267E2581B84DC7D00BAB377 /* GIStashListViewController.h in Headers */,\n\t\t\t\tDB7CBCA225762721001185AA /* GICustomToolbarItem.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXHeadersBuildPhase section */\n\n/* Begin PBXNativeTarget section */\n\t\tE217531A1B91613300BE234A /* GitUpKit (iOS) */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E217532E1B91613300BE234A /* Build configuration list for PBXNativeTarget \"GitUpKit (iOS)\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE21753161B91613300BE234A /* Sources */,\n\t\t\t\tE21753171B91613300BE234A /* Frameworks */,\n\t\t\t\tE21753181B91613300BE234A /* Headers */,\n\t\t\t\tE21753361B9161FE00BE234A /* Set 'GitSHA1' Key in Info.plist */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"GitUpKit (iOS)\";\n\t\t\tproductName = \"GitUpKit (iOS)\";\n\t\t\tproductReference = E217531B1B91613300BE234A /* GitUpKit.framework */;\n\t\t\tproductType = \"com.apple.product-type.framework\";\n\t\t};\n\t\tE267E1A71B84D6C500BAB377 /* GitUpKit (macOS) */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E267E1B41B84D6C500BAB377 /* Build configuration list for PBXNativeTarget \"GitUpKit (macOS)\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE267E1A31B84D6C500BAB377 /* Sources */,\n\t\t\t\tE267E1A41B84D6C500BAB377 /* Frameworks */,\n\t\t\t\tE267E1A51B84D6C500BAB377 /* Headers */,\n\t\t\t\tE267E1A61B84D6C500BAB377 /* Resources */,\n\t\t\t\tE267E2751B84EC0700BAB377 /* Set 'GitSHA1' Key in Info.plist */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"GitUpKit (macOS)\";\n\t\t\tpackageProductDependencies = (\n\t\t\t\t0A4881D626C7B4CF00289CF9 /* Libgit2Origin */,\n\t\t\t);\n\t\t\tproductName = GitUpKit;\n\t\t\tproductReference = E267E1A81B84D6C500BAB377 /* GitUpKit.framework */;\n\t\t\tproductType = \"com.apple.product-type.framework\";\n\t\t};\n\t\tE2C338C319F8562F00063D95 /* Tests */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E2C338D119F8562F00063D95 /* Build configuration list for PBXNativeTarget \"Tests\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE2C338C019F8562F00063D95 /* Sources */,\n\t\t\t\tE2C338C119F8562F00063D95 /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = Tests;\n\t\t\tpackageProductDependencies = (\n\t\t\t\t1DC7FB2928748D1200D2FD4C /* Libgit2Origin */,\n\t\t\t);\n\t\t\tproductName = GitUpTests;\n\t\t\tproductReference = E2C338C419F8562F00063D95 /* GitUpTests.xctest */;\n\t\t\tproductType = \"com.apple.product-type.bundle.unit-test\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE2C338A319F8562F00063D95 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1340;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\tE217531A1B91613300BE234A = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.4;\n\t\t\t\t\t\tProvisioningStyle = Manual;\n\t\t\t\t\t};\n\t\t\t\t\tE267E1A71B84D6C500BAB377 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.0;\n\t\t\t\t\t\tDevelopmentTeam = 88W3E55T4B;\n\t\t\t\t\t};\n\t\t\t\t\tE2C338C319F8562F00063D95 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 6.1;\n\t\t\t\t\t\tTestTargetID = E2C338AA19F8562F00063D95;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = E2C338A619F8562F00063D95 /* Build configuration list for PBXProject \"GitUpKit\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = E2C338A219F8562F00063D95;\n\t\t\tproductRefGroup = E2C338AC19F8562F00063D95 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE267E1A71B84D6C500BAB377 /* GitUpKit (macOS) */,\n\t\t\t\tE217531A1B91613300BE234A /* GitUpKit (iOS) */,\n\t\t\t\tE2C338C319F8562F00063D95 /* Tests */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tE267E1A61B84D6C500BAB377 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE267E2201B84DBD600BAB377 /* Utilities.xcassets in Resources */,\n\t\t\t\tDBDFBC0C22B610F1003EEC6C /* Interface.xcassets in Resources */,\n\t\t\t\tE267E2211B84DBD900BAB377 /* GIWindowController.xib in Resources */,\n\t\t\t\t1D841F7A2B955C3800E4FCCC /* GIRemappingExplanationViewController.xib in Resources */,\n\t\t\t\tE267E23B1B84DC4B00BAB377 /* Components.xcassets in Resources */,\n\t\t\t\tE267E23C1B84DC4B00BAB377 /* Reasons.strings in Resources */,\n\t\t\t\tE267E23D1B84DC4B00BAB377 /* GICommitListViewController.xib in Resources */,\n\t\t\t\tE267E23E1B84DC4B00BAB377 /* GIDiffContentsViewController.xib in Resources */,\n\t\t\t\tE267E23F1B84DC4B00BAB377 /* GIDiffFilesViewController.xib in Resources */,\n\t\t\t\tE267E2401B84DC4B00BAB377 /* GISnapshotListViewController.xib in Resources */,\n\t\t\t\tE267E2411B84DC4B00BAB377 /* GIUnifiedReflogViewController.xib in Resources */,\n\t\t\t\tE267E2421B84DC6300BAB377 /* Views.xcassets in Resources */,\n\t\t\t\tE267E2431B84DC6300BAB377 /* GIAdvancedCommitViewController.xib in Resources */,\n\t\t\t\tE267E2441B84DC6400BAB377 /* GICommitRewriterViewController.xib in Resources */,\n\t\t\t\tE267E2451B84DC6400BAB377 /* GICommitSplitterViewController.xib in Resources */,\n\t\t\t\tE267E2461B84DC6400BAB377 /* GIConfigViewController.xib in Resources */,\n\t\t\t\tE267E2651B84DCA700BAB377 /* GIConfigViewController-Help.txt in Resources */,\n\t\t\t\tE267E2471B84DC6400BAB377 /* GIConflictResolverViewController.xib in Resources */,\n\t\t\t\tE267E2481B84DC6400BAB377 /* GIDiffViewController.xib in Resources */,\n\t\t\t\tE267E2491B84DC6400BAB377 /* GIMapViewController.xib in Resources */,\n\t\t\t\tE267E24A1B84DC6400BAB377 /* GIQuickViewController.xib in Resources */,\n\t\t\t\tE267E24B1B84DC6400BAB377 /* GISimpleCommitViewController.xib in Resources */,\n\t\t\t\tE267E24C1B84DC6400BAB377 /* GIStashListViewController.xib in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\tE21753361B9161FE00BE234A /* Set 'GitSHA1' Key in Info.plist */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Set 'GitSHA1' Key in Info.plist\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = \"/bin/bash -ex\";\n\t\t\tshellScript = \"GIT_SHA1=`git rev-parse HEAD`\\n\\nINFO_PLIST_PATH=\\\"$CONFIGURATION_BUILD_DIR/$INFOPLIST_PATH\\\"\\n\\ndefaults write \\\"$INFO_PLIST_PATH\\\" \\\"GitSHA1\\\" -string \\\"$GIT_SHA1\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tE267E2751B84EC0700BAB377 /* Set 'GitSHA1' Key in Info.plist */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Set 'GitSHA1' Key in Info.plist\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = \"/bin/bash -ex\";\n\t\t\tshellScript = \"GIT_SHA1=`git rev-parse HEAD`\\n\\nINFO_PLIST_PATH=\\\"$CONFIGURATION_BUILD_DIR/$INFOPLIST_PATH\\\"\\n\\ndefaults write \\\"$INFO_PLIST_PATH\\\" \\\"GitSHA1\\\" -string \\\"$GIT_SHA1\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE21753161B91613300BE234A /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE21753661B91634C00BE234A /* GCBranch.m in Sources */,\n\t\t\t\tE21753671B91634C00BE234A /* GCCommit.m in Sources */,\n\t\t\t\tE21753681B91634C00BE234A /* GCCommitDatabase.m in Sources */,\n\t\t\t\tE21753691B91634C00BE234A /* GCDiff.m in Sources */,\n\t\t\t\tE217536A1B91634C00BE234A /* GCFoundation.m in Sources */,\n\t\t\t\tE217536B1B91634C00BE234A /* GCFunctions.m in Sources */,\n\t\t\t\tE217536C1B91634C00BE234A /* GCHistory.m in Sources */,\n\t\t\t\tE217536D1B91634C00BE234A /* GCIndex.m in Sources */,\n\t\t\t\tE217536F1B91634C00BE234A /* GCObject.m in Sources */,\n\t\t\t\t749335CA1B9B7FF200225513 /* GCOrderedSet.m in Sources */,\n\t\t\t\tE21753701B91634C00BE234A /* GCPrivate.m in Sources */,\n\t\t\t\tE21753711B91634C00BE234A /* GCReference.m in Sources */,\n\t\t\t\tE21753721B91634C00BE234A /* GCReferenceTransform.m in Sources */,\n\t\t\t\tE21753741B91634C00BE234A /* GCRemote.m in Sources */,\n\t\t\t\tE21753751B91634C00BE234A /* GCRepository.m in Sources */,\n\t\t\t\tE21753761B91634C00BE234A /* GCRepository+Bare.m in Sources */,\n\t\t\t\tE21753771B91634C00BE234A /* GCRepository+Config.m in Sources */,\n\t\t\t\tE21753781B91634C00BE234A /* GCRepository+HEAD.m in Sources */,\n\t\t\t\tE21753791B91634C00BE234A /* GCRepository+Mock.m in Sources */,\n\t\t\t\tE217537A1B91634C00BE234A /* GCRepository+Reflog.m in Sources */,\n\t\t\t\tE217537B1B91634C00BE234A /* GCRepository+Reset.m in Sources */,\n\t\t\t\tE217537C1B91634C00BE234A /* GCRepository+Status.m in Sources */,\n\t\t\t\tE217537D1B91634C00BE234A /* GCSnapshot.m in Sources */,\n\t\t\t\tE217537E1B91634C00BE234A /* GCSQLiteRepository.m in Sources */,\n\t\t\t\tE217537F1B91634C00BE234A /* GCStash.m in Sources */,\n\t\t\t\tE21753801B91634C00BE234A /* GCSubmodule.m in Sources */,\n\t\t\t\tE21753811B91634C00BE234A /* GCTag.m in Sources */,\n\t\t\t\tE21753821B91635800BE234A /* GCHistory+Rewrite.m in Sources */,\n\t\t\t\tE21753831B91635800BE234A /* GCRepository+Index.m in Sources */,\n\t\t\t\tE21753841B91635800BE234A /* GCRepository+Utilities.m in Sources */,\n\t\t\t\tE2B9878F1B9171D20097629D /* GIBranch.m in Sources */,\n\t\t\t\tDC040FCD2BCB417A00DF54D5 /* GCLiveRepository+Conflicts.m in Sources */,\n\t\t\t\tE2B987901B9171D20097629D /* GIFunctions.m in Sources */,\n\t\t\t\tE2B987911B9171D20097629D /* GIGraph.m in Sources */,\n\t\t\t\tE2B987921B9171D20097629D /* GILayer.m in Sources */,\n\t\t\t\tE2B987931B9171D20097629D /* GILine.m in Sources */,\n\t\t\t\tE2B987941B9171D20097629D /* GINode.m in Sources */,\n\t\t\t\tE2B987951B9171D20097629D /* GIPrivate.m in Sources */,\n\t\t\t\tDBDFBC1222B61135003EEC6C /* NSBundle+GitUpKit.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE267E1A31B84D6C500BAB377 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE267E1D11B84D83100BAB377 /* GCBranch.m in Sources */,\n\t\t\t\tE267E1D21B84D83100BAB377 /* GCCommit.m in Sources */,\n\t\t\t\tE267E1D31B84D83100BAB377 /* GCCommitDatabase.m in Sources */,\n\t\t\t\tE267E1D41B84D83100BAB377 /* GCDiff.m in Sources */,\n\t\t\t\tE267E1D51B84D83100BAB377 /* GCFoundation.m in Sources */,\n\t\t\t\tE267E1D61B84D83100BAB377 /* GCFunctions.m in Sources */,\n\t\t\t\tE267E1D71B84D83100BAB377 /* GCHistory.m in Sources */,\n\t\t\t\tE267E1D81B84D83100BAB377 /* GCIndex.m in Sources */,\n\t\t\t\tE267E1D91B84D83100BAB377 /* GCLiveRepository.m in Sources */,\n\t\t\t\tDBDFBC1D22B61290003EEC6C /* NSColor+GINamedColors.m in Sources */,\n\t\t\t\tE267E1DA1B84D83100BAB377 /* GCObject.m in Sources */,\n\t\t\t\t749786941B85AAB10065BD55 /* GCOrderedSet.m in Sources */,\n\t\t\t\tE267E1DB1B84D83100BAB377 /* GCPrivate.m in Sources */,\n\t\t\t\tE267E1DC1B84D83100BAB377 /* GCReference.m in Sources */,\n\t\t\t\tE267E1DD1B84D83100BAB377 /* GCReferenceTransform.m in Sources */,\n\t\t\t\tE267E1DF1B84D83100BAB377 /* GCRemote.m in Sources */,\n\t\t\t\tE267E1E01B84D83100BAB377 /* GCRepository.m in Sources */,\n\t\t\t\tE267E1E11B84D83100BAB377 /* GCRepository+Bare.m in Sources */,\n\t\t\t\tE267E1E21B84D83100BAB377 /* GCRepository+Config.m in Sources */,\n\t\t\t\tE267E1E31B84D83100BAB377 /* GCRepository+HEAD.m in Sources */,\n\t\t\t\tE267E1E41B84D83100BAB377 /* GCRepository+Mock.m in Sources */,\n\t\t\t\tE267E1E51B84D83100BAB377 /* GCRepository+Reflog.m in Sources */,\n\t\t\t\tE267E1E61B84D83100BAB377 /* GCRepository+Reset.m in Sources */,\n\t\t\t\tE267E1E71B84D83100BAB377 /* GCRepository+Status.m in Sources */,\n\t\t\t\tE267E1E81B84D83100BAB377 /* GCSnapshot.m in Sources */,\n\t\t\t\tE267E1E91B84D83100BAB377 /* GCSQLiteRepository.m in Sources */,\n\t\t\t\tE267E1EA1B84D83100BAB377 /* GCStash.m in Sources */,\n\t\t\t\tDC040FCA2BCB21D000DF54D5 /* GCLiveRepository+Conflicts.m in Sources */,\n\t\t\t\tE267E1EB1B84D83100BAB377 /* GCSubmodule.m in Sources */,\n\t\t\t\tE267E1EC1B84D83100BAB377 /* GCTag.m in Sources */,\n\t\t\t\tE267E1ED1B84D84900BAB377 /* GCHistory+Rewrite.m in Sources */,\n\t\t\t\tE267E1EE1B84D84900BAB377 /* GCRepository+Index.m in Sources */,\n\t\t\t\tE267E1EF1B84D84900BAB377 /* GCRepository+Utilities.m in Sources */,\n\t\t\t\tE267E2151B84DB6E00BAB377 /* GIBranch.m in Sources */,\n\t\t\t\tE267E2161B84DB6E00BAB377 /* GIDiffView.m in Sources */,\n\t\t\t\tE267E2171B84DB6E00BAB377 /* GIFunctions.m in Sources */,\n\t\t\t\tE267E2181B84DB6E00BAB377 /* GIGraph.m in Sources */,\n\t\t\t\tE267E2191B84DB6E00BAB377 /* GIGraphView.m in Sources */,\n\t\t\t\tE267E21A1B84DB6E00BAB377 /* GILayer.m in Sources */,\n\t\t\t\tE267E21B1B84DB6E00BAB377 /* GILine.m in Sources */,\n\t\t\t\tE267E21C1B84DB6E00BAB377 /* GINode.m in Sources */,\n\t\t\t\tE267E21D1B84DB6E00BAB377 /* GIPrivate.m in Sources */,\n\t\t\t\tE267E21E1B84DB6E00BAB377 /* GISplitDiffView.m in Sources */,\n\t\t\t\tE267E21F1B84DB6E00BAB377 /* GIUnifiedDiffView.m in Sources */,\n\t\t\t\tE267E2291B84DBF800BAB377 /* GIAppKit.m in Sources */,\n\t\t\t\tE267E22A1B84DBF800BAB377 /* GIColorView.m in Sources */,\n\t\t\t\tE267E22B1B84DBF800BAB377 /* GILinkButton.m in Sources */,\n\t\t\t\t6D8E3F0B25D90E1300AAFC17 /* GIImageDiffView.m in Sources */,\n\t\t\t\tDBDFBC1122B61135003EEC6C /* NSBundle+GitUpKit.m in Sources */,\n\t\t\t\tE267E22C1B84DBF800BAB377 /* GIModalView.m in Sources */,\n\t\t\t\tE267E22D1B84DBF800BAB377 /* GIViewController.m in Sources */,\n\t\t\t\tE267E22E1B84DBF800BAB377 /* GIViewController+Utilities.m in Sources */,\n\t\t\t\tE267E22F1B84DBF800BAB377 /* GIWindowController.m in Sources */,\n\t\t\t\tE267E2311B84DC2600BAB377 /* GICommitListViewController.m in Sources */,\n\t\t\t\t1D841F792B955C3800E4FCCC /* GIRemappingExplanationPopover.m in Sources */,\n\t\t\t\tE267E2321B84DC2600BAB377 /* GIDiffContentsViewController.m in Sources */,\n\t\t\t\tE267E2331B84DC2600BAB377 /* GIDiffFilesViewController.m in Sources */,\n\t\t\t\t1DF371CE22F5262300EF7BD9 /* GCLiveRepository+Utilities.m in Sources */,\n\t\t\t\tE267E2341B84DC2600BAB377 /* GISnapshotListViewController.m in Sources */,\n\t\t\t\tE267E2351B84DC2600BAB377 /* GIUnifiedReflogViewController.m in Sources */,\n\t\t\t\tE267E2591B84DCA100BAB377 /* GIAdvancedCommitViewController.m in Sources */,\n\t\t\t\tE267E25A1B84DCA100BAB377 /* GICommitRewriterViewController.m in Sources */,\n\t\t\t\tE267E25B1B84DCA100BAB377 /* GICommitSplitterViewController.m in Sources */,\n\t\t\t\tE267E25C1B84DCA100BAB377 /* GICommitViewController.m in Sources */,\n\t\t\t\tDB7CBCA325762721001185AA /* GICustomToolbarItem.m in Sources */,\n\t\t\t\tE267E25D1B84DCA100BAB377 /* GIConfigViewController.m in Sources */,\n\t\t\t\tE267E25E1B84DCA100BAB377 /* GIConflictResolverViewController.m in Sources */,\n\t\t\t\tE267E25F1B84DCA100BAB377 /* GIDiffViewController.m in Sources */,\n\t\t\t\tE267E2601B84DCA100BAB377 /* GIMapViewController.m in Sources */,\n\t\t\t\tE267E2611B84DCA100BAB377 /* GIMapViewController+Operations.m in Sources */,\n\t\t\t\tE267E2621B84DCA100BAB377 /* GIQuickViewController.m in Sources */,\n\t\t\t\tE267E2631B84DCA100BAB377 /* GISimpleCommitViewController.m in Sources */,\n\t\t\t\tE267E2641B84DCA100BAB377 /* GIStashListViewController.m in Sources */,\n\t\t\t\t0AC8525A23A122C400479160 /* GILaunchServicesLocator.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tE2C338C019F8562F00063D95 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE259C2CF1A64F7D00079616B /* GCBranch-Tests.m in Sources */,\n\t\t\t\tE2FEED4A1AEAA75F00CBED80 /* GCCommitDatabase.m in Sources */,\n\t\t\t\tE259C2CB1A64D27F0079616B /* GCTag-Tests.m in Sources */,\n\t\t\t\tE20EB09019FC76160031A075 /* GCRepository+Status.m in Sources */,\n\t\t\t\tE27B6D671A84451900D05452 /* GCRepository+Reflog.m in Sources */,\n\t\t\t\tE2C338F819F85C8600063D95 /* GCTag.m in Sources */,\n\t\t\t\tE23C1A8C1A9019610060F6AD /* GCLiveRepository.m in Sources */,\n\t\t\t\tE24509041A9A5F1D003E602D /* GCRepository+Config.m in Sources */,\n\t\t\t\tE259C2D11A64F9050079616B /* GCRemote-Tests.m in Sources */,\n\t\t\t\tE2C3AA5C19FF0B0600BA89F3 /* GCRepository+Bare.m in Sources */,\n\t\t\t\tE27E43071A74A96000D04ED1 /* GILine.m in Sources */,\n\t\t\t\tE259C2E31A64FE710079616B /* GCRepository+Reset-Tests.m in Sources */,\n\t\t\t\tE259C2D51A64FAA40079616B /* GCHistory+Rewrite-Tests.m in Sources */,\n\t\t\t\tE2790D4E1ACF130A00965A98 /* GCIndex.m in Sources */,\n\t\t\t\tE2790D4A1ACF12E200965A98 /* GCRepository+Index.m in Sources */,\n\t\t\t\tDC040FC52BC9FECC00DF54D5 /* GCLiveRepository-Tests.m in Sources */,\n\t\t\t\tE27E43021A74A94700D04ED1 /* GIGraph-Tests.m in Sources */,\n\t\t\t\tE259C2C71A64C9980079616B /* GCRepository-Tests.m in Sources */,\n\t\t\t\tE24509031A9A50F3003E602D /* GCRepository+Config-Tests.m in Sources */,\n\t\t\t\tE2B1BF361A85C5ED00A999DF /* GIFunctions-Tests.m in Sources */,\n\t\t\t\tE299D0141A749C26005035F7 /* GCRepository+Mock.m in Sources */,\n\t\t\t\t74EDB5D71B8517F500F00E79 /* GCOrderedSet.m in Sources */,\n\t\t\t\t74EDB5D61B84E06500F00E79 /* GCOrderedSet-Tests.m in Sources */,\n\t\t\t\tE27E43031A74A96000D04ED1 /* GIBranch.m in Sources */,\n\t\t\t\tE27E43081A74A96000D04ED1 /* GINode.m in Sources */,\n\t\t\t\tE2C56CC41D71B3730011960D /* GCFoundation-Tests.m in Sources */,\n\t\t\t\tE299D0161A749D27005035F7 /* GCRepository+Mock-Tests.m in Sources */,\n\t\t\t\tE2D4148C1A02D68700B99634 /* GCHistory+Rewrite.m in Sources */,\n\t\t\t\tE2146C8F1A57F3BC00F4550B /* GCObject.m in Sources */,\n\t\t\t\tE2C338F419F85C8600063D95 /* GCRepository.m in Sources */,\n\t\t\t\tE2F5C2811A8186C200C30739 /* GCSnapshot-Tests.m in Sources */,\n\t\t\t\tE218A58F1A56706600DFF1DF /* GCRepository+Utilities.m in Sources */,\n\t\t\t\tE2C338F019F85C8600063D95 /* GCReference.m in Sources */,\n\t\t\t\tE259C2DD1A64FDD00079616B /* GCRepository+HEAD-Tests.m in Sources */,\n\t\t\t\tE259C2C51A64C8EA0079616B /* GCTestCase.m in Sources */,\n\t\t\t\tE259C2E51A6624DC0079616B /* GCCommit-Tests.m in Sources */,\n\t\t\t\tE299D00C1A71F0E9005035F7 /* GCSQLiteRepository.m in Sources */,\n\t\t\t\tE2C338F619F85C8600063D95 /* GCStash.m in Sources */,\n\t\t\t\tE2F5C2831A81C53A00C30739 /* GCRepository+Reflog-Tests.m in Sources */,\n\t\t\t\tE2B1BF341A85923800A999DF /* GIFunctions.m in Sources */,\n\t\t\t\tE259C2E11A64FE4C0079616B /* GCRepository+Status-Tests.m in Sources */,\n\t\t\t\tE27E43041A74A96000D04ED1 /* GIGraph.m in Sources */,\n\t\t\t\tDC040FCC2BCB22FC00DF54D5 /* GCLiveRepository+Conflicts.m in Sources */,\n\t\t\t\tE21A88F41A9471B300255AC3 /* GIPrivate.m in Sources */,\n\t\t\t\tE2B14B5F1A8A764400003E64 /* GCDiff.m in Sources */,\n\t\t\t\tE2F5C27F1A8171C900C30739 /* GCSnapshot.m in Sources */,\n\t\t\t\tE218A58B1A566F6A00DFF1DF /* GCReferenceTransform.m in Sources */,\n\t\t\t\tE259C2DB1A64FDA60079616B /* GCDiff-Tests.m in Sources */,\n\t\t\t\tE21739FF1A51FA6200EC6777 /* GCSubmodule.m in Sources */,\n\t\t\t\tE27F9B751A549097009C9B3D /* GCRepository+HEAD.m in Sources */,\n\t\t\t\tE2C338EE19F85C8600063D95 /* GCCommit.m in Sources */,\n\t\t\t\tE200A3BA1B02DDA100C4E39D /* GCPrivate.m in Sources */,\n\t\t\t\tE259C2D71A64FAEA0079616B /* GCRepository+Utilities-Tests.m in Sources */,\n\t\t\t\tE2FEED491AEAA6B500CBED80 /* GCCommitDatabase-Tests.m in Sources */,\n\t\t\t\tE20F10F41A043E2100076AAC /* GCHistory.m in Sources */,\n\t\t\t\tE259C2CD1A64D30A0079616B /* GCStash-Tests.m in Sources */,\n\t\t\t\tE2790D481ACF12E200965A98 /* GCRepository+Index-Tests.m in Sources */,\n\t\t\t\tE259C2D91A64FD640079616B /* GCRepository+Bare-Tests.m in Sources */,\n\t\t\t\tE259C2C91A64CAB30079616B /* GCSubmodule-Tests.m in Sources */,\n\t\t\t\tE2C338EC19F85C8600063D95 /* GCBranch.m in Sources */,\n\t\t\t\tE299D00F1A7206E7005035F7 /* GCSQLiteRepository-Tests.m in Sources */,\n\t\t\t\tE2790D431ACB1B1100965A98 /* GCFoundation.m in Sources */,\n\t\t\t\tE20EB08C19FC75CA0031A075 /* GCRepository+Reset.m in Sources */,\n\t\t\t\tE259C2D31A64F9FF0079616B /* GCHistory-Tests.m in Sources */,\n\t\t\t\tE27E43061A74A96000D04ED1 /* GILayer.m in Sources */,\n\t\t\t\tE2C338F219F85C8600063D95 /* GCRemote.m in Sources */,\n\t\t\t\tE21739F41A4FE39E00EC6777 /* GCFunctions.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXVariantGroup section */\n\t\tE21A88F81A97173300255AC3 /* GIUnifiedReflogViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE21A88F91A97173300255AC3 /* Base */,\n\t\t\t);\n\t\t\tname = GIUnifiedReflogViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21A88FE1A97A67E00255AC3 /* GISnapshotListViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE21A88FF1A97A67E00255AC3 /* Base */,\n\t\t\t);\n\t\t\tname = GISnapshotListViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941E71AC11F56000A83AF /* GIAdvancedCommitViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941E81AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GIAdvancedCommitViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941E91AC11F56000A83AF /* GIConfigViewController-Help.txt */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941EA1AC11F56000A83AF /* en */,\n\t\t\t);\n\t\t\tname = \"GIConfigViewController-Help.txt\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941EB1AC11F56000A83AF /* GIConfigViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941EC1AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GIConfigViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941ED1AC11F56000A83AF /* GIDiffViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941EE1AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GIDiffViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941EF1AC11F56000A83AF /* GIMapViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941F01AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GIMapViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941F11AC11F56000A83AF /* GIQuickViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941F21AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GIQuickViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941F31AC11F56000A83AF /* GISimpleCommitViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941F41AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GISimpleCommitViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22941F51AC11F56000A83AF /* GIStashListViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22941F61AC11F56000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GIStashListViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE229421C1AC120A8000A83AF /* GICommitRewriterViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE229421D1AC120A8000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GICommitRewriterViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE229421E1AC120A8000A83AF /* GICommitSplitterViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE229421F1AC120A8000A83AF /* Base */,\n\t\t\t);\n\t\t\tname = GICommitSplitterViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE22942281AC2160E000A83AF /* Reasons.strings */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE22942291AC2160E000A83AF /* en */,\n\t\t\t);\n\t\t\tname = Reasons.strings;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE230DEE81AA11CE9006EE09F /* GICommitListViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE230DEE91AA11CE9006EE09F /* Base */,\n\t\t\t);\n\t\t\tname = GICommitListViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2BDA0731AD5B98A00E69729 /* GIConflictResolverViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2BDA0741AD5B98A00E69729 /* Base */,\n\t\t\t);\n\t\t\tname = GIConflictResolverViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2D5AB2F1AA502D400BE9FFC /* GIDiffContentsViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2D5AB301AA502D400BE9FFC /* Base */,\n\t\t\t);\n\t\t\tname = GIDiffContentsViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2E4CA1C1AB0F3F500D225D3 /* GIDiffFilesViewController.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\tE2E4CA1D1AB0F3F500D225D3 /* Base */,\n\t\t\t);\n\t\t\tname = GIDiffFilesViewController.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE217532F1B91613300BE234A /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.kit;\n\t\t\t\tPRODUCT_NAME = GitUpKit;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE21753301B91613300BE234A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.kit;\n\t\t\t\tPRODUCT_NAME = GitUpKit;\n\t\t\t\tSDKROOT = iphoneos;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE267E1B11B84D6C500BAB377 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tLIBRARY_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(SDKROOT)/usr/lib/system\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.5;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.kit;\n\t\t\t\tPRODUCT_NAME = GitUpKit;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE267E1B21B84D6C500BAB377 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tLIBRARY_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"$(SDKROOT)/usr/lib/system\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.5;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = co.gitup.kit;\n\t\t\t\tPRODUCT_NAME = GitUpKit;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE2C338CC19F8562F00063D95 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = E27E37501B86F5D1000A551A /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2C338CD19F8562F00063D95 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = E27E37521B86F5D1000A551A /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE2C338D219F8562F00063D95 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(DEVELOPER_FRAMEWORKS_DIR)\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"__GI_HAS_APPKIT__=0\",\n\t\t\t\t);\n\t\t\t\tGENERATE_INFOPLIST_FILE = YES;\n\t\t\t\tPRODUCT_NAME = GitUpTests;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2C338D319F8562F00063D95 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tFRAMEWORK_SEARCH_PATHS = (\n\t\t\t\t\t\"$(DEVELOPER_FRAMEWORKS_DIR)\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"__GI_HAS_APPKIT__=0\",\n\t\t\t\t);\n\t\t\t\tGENERATE_INFOPLIST_FILE = YES;\n\t\t\t\tPRODUCT_NAME = GitUpTests;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE217532E1B91613300BE234A /* Build configuration list for PBXNativeTarget \"GitUpKit (iOS)\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE217532F1B91613300BE234A /* Debug */,\n\t\t\t\tE21753301B91613300BE234A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE267E1B41B84D6C500BAB377 /* Build configuration list for PBXNativeTarget \"GitUpKit (macOS)\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE267E1B11B84D6C500BAB377 /* Debug */,\n\t\t\t\tE267E1B21B84D6C500BAB377 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE2C338A619F8562F00063D95 /* Build configuration list for PBXProject \"GitUpKit\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2C338CC19F8562F00063D95 /* Debug */,\n\t\t\t\tE2C338CD19F8562F00063D95 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE2C338D119F8562F00063D95 /* Build configuration list for PBXNativeTarget \"Tests\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2C338D219F8562F00063D95 /* Debug */,\n\t\t\t\tE2C338D319F8562F00063D95 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\n/* Begin XCSwiftPackageProductDependency section */\n\t\t0A4881D626C7B4CF00289CF9 /* Libgit2Origin */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tproductName = Libgit2Origin;\n\t\t};\n\t\t1DC7FB2928748D1200D2FD4C /* Libgit2Origin */ = {\n\t\t\tisa = XCSwiftPackageProductDependency;\n\t\t\tproductName = Libgit2Origin;\n\t\t};\n/* End XCSwiftPackageProductDependency section */\n\t};\n\trootObject = E2C338A319F8562F00063D95 /* Project object */;\n}\n"
  },
  {
    "path": "GitUpKit/GitUpKit.xcodeproj/xcshareddata/xcschemes/GitUpKit (iOS).xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1340\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E217531A1B91613300BE234A\"\n               BuildableName = \"GitUpKit.framework\"\n               BlueprintName = \"GitUpKit (iOS)\"\n               ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E217531A1B91613300BE234A\"\n            BuildableName = \"GitUpKit.framework\"\n            BlueprintName = \"GitUpKit (iOS)\"\n            ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E217531A1B91613300BE234A\"\n            BuildableName = \"GitUpKit.framework\"\n            BlueprintName = \"GitUpKit (iOS)\"\n            ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Distribution\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "GitUpKit/GitUpKit.xcodeproj/xcshareddata/xcschemes/GitUpKit (macOS).xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1340\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"NO\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"NO\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E267E1A71B84D6C500BAB377\"\n               BuildableName = \"GitUpKit.framework\"\n               BlueprintName = \"GitUpKit (macOS)\"\n               ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"NO\"\n      enableAddressSanitizer = \"YES\">\n      <AdditionalOptions>\n         <AdditionalOption\n            key = \"NSZombieEnabled\"\n            value = \"YES\"\n            isEnabled = \"YES\">\n         </AdditionalOption>\n      </AdditionalOptions>\n      <Testables>\n         <TestableReference\n            skipped = \"NO\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E2C338C319F8562F00063D95\"\n               BuildableName = \"GitUpTests.xctest\"\n               BlueprintName = \"Tests\"\n               ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n            </BuildableReference>\n            <SkippedTests>\n               <Test\n                  Identifier = \"GCSQLiteRepositoryTests\">\n               </Test>\n            </SkippedTests>\n         </TestableReference>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E1A71B84D6C500BAB377\"\n            BuildableName = \"GitUpKit.framework\"\n            BlueprintName = \"GitUpKit (macOS)\"\n            ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E267E1A71B84D6C500BAB377\"\n            BuildableName = \"GitUpKit.framework\"\n            BlueprintName = \"GitUpKit (macOS)\"\n            ReferencedContainer = \"container:GitUpKit.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Distribution\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "GitUpKit/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>FMWK</string>\n\t<key>NSAppTransportSecurity</key>\n\t<dict>\n\t\t<key>NSExceptionDomains</key>\n\t\t<dict>\n\t\t\t<key>s3.amazonaws.com</key>\n\t\t\t<dict>\n\t\t\t\t<key>NSIncludesSubdomains</key>\n\t\t\t\t<true/>\n\t\t\t\t<key>NSExceptionAllowsInsecureHTTPLoads</key>\n\t\t\t\t<true/>\n\t\t\t</dict>\n\t\t</dict>\n\t</dict>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>Copyright © 2015-2024 Pierre-Olivier Latour. All rights reserved.</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUpKit/Interface/GIBranch.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@class GINode, GILine;\n\n@interface GIBranch : NSObject\n@property(nonatomic, weak, readonly) GILine* mainLine;  // NOT RETAINED\n\n// Computed properties\n@property(nonatomic, readonly) GINode* tipNode;\n@property(nonatomic, readonly) NSArray* localBranches;\n@property(nonatomic, readonly) NSArray* remoteBranches;\n@property(nonatomic, readonly) NSArray* tags;\n@property(nonatomic, readonly) GIBranch* parentBranch;\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIBranch.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import \"GIPrivate.h\"\n\n@implementation GIBranch\n\n- (GINode*)tipNode {\n  return _mainLine.nodes[0];\n}\n\n- (NSArray*)localBranches {\n  return self.tipNode.commit.localBranches;\n}\n\n- (NSArray*)remoteBranches {\n  return self.tipNode.commit.remoteBranches;\n}\n\n- (NSArray*)tags {\n  return self.tipNode.commit.tags;\n}\n\n- (GIBranch*)parentBranch {\n  GINode* lastNode = _mainLine.nodes.lastObject;\n  GIBranch* branch = lastNode.primaryLine.branch;\n  return (branch != self ? branch : nil);\n}\n\n- (NSString*)description {\n  GINode* firstNode = _mainLine.nodes.firstObject;\n  GINode* lastNode = _mainLine.nodes.lastObject;\n  GCHistoryCommit* tipCommit = self.tipNode.commit;\n  return [NSString stringWithFormat:@\"[%@] Range=%lu-%lu TIP=%@\", self.class, (unsigned long)firstNode.layer.index, (unsigned long)lastNode.layer.index, tipCommit];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIConstants.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/NSEvent.h>\n#import <Foundation/Foundation.h>\n\ntypedef NS_ENUM(unsigned short, GIKeyCode) {\n  kGIKeyCode_Tab = 0x30,\n  kGIKeyCode_Esc = 0x35,\n  kGIKeyCode_Left = 0x7B,\n  kGIKeyCode_Right = 0x7C,\n  kGIKeyCode_Down = 0x7D,\n  kGIKeyCode_PageUp = 0x74,\n  kGIKeyCode_PageDown = 0x79,\n  kGIKeyCode_Up = 0x7E,\n  kGIKeyCode_Home = 0x73,\n  kGIKeyCode_End = 0x77,\n  kGIKeyCode_Return = 0x24,\n  kGIKeyCode_Delete = 0x33\n};\n\nstatic const NSEventModifierFlags kGIKeyModifiersAll = NSEventModifierFlagShift | NSEventModifierFlagControl | NSEventModifierFlagCommand | NSEventModifierFlagOption;\n"
  },
  {
    "path": "GitUpKit/Interface/GIDiffView.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@class GIDiffView, GCDiffPatch;\n\n@protocol GIDiffViewDelegate <NSObject>\n- (void)diffViewDidChangeSelection:(GIDiffView*)view;\n@end\n\n// Base class\n@interface GIDiffView : NSView <NSUserInterfaceValidations>\n- (void)didFinishInitializing;  // For subclasses only\n- (void)didUpdatePatch;  // For subclasses only\n\n@property(nonatomic, weak) id<GIDiffViewDelegate> delegate;\n@property(nonatomic, strong) NSColor* backgroundColor;\n@property(nonatomic, strong) GCDiffPatch* patch;\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;\n- (CGFloat)updateLayoutForWidth:(CGFloat)width;\n\n@property(nonatomic, readonly) CFDictionaryRef textAttributes;\n@property(nonatomic, readonly) CTLineRef addedLine;\n@property(nonatomic, readonly) CTLineRef deletedLine;\n@property(nonatomic, readonly) CGFloat lineHeight;\n@property(nonatomic, readonly) CGFloat lineDescent;\n\n@property(nonatomic, readonly) BOOL hasSelection;\n@property(nonatomic, readonly) BOOL hasSelectedText;\n@property(nonatomic, readonly) BOOL hasSelectedLines;\n- (void)clearSelection;\n- (void)getSelectedText:(NSString**)text oldLines:(NSIndexSet**)oldLines newLines:(NSIndexSet**)newLines;\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIDiffView.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIPrivate.h\"\n#import \"GIAppKit.h\"\n\n#define kTextLineHeightPadding 3\n#define kTextLineDescentAdjustment 1\n\nconst char* GIDiffViewMissingNewlinePlaceholder = \"🚫\\n\";\n\n@interface GIDiffView ()\n\n@property(nonatomic, assign) CGFloat lastFontSize;\n\n@end\n\n@implementation GIDiffView\n\n- (void)updateMetricsFromCurrentFontSize {\n  CGFloat newSize = GIFontSize();\n// This comparison is safe because the values being compared are both read from user defaults with no additional floating point operations.\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wfloat-equal\"\n  if (newSize == _lastFontSize) {\n#pragma clang diagnostic pop\n    return;\n  }\n  _lastFontSize = newSize;\n\n  NSFont* font = [NSFont userFixedPitchFontOfSize:newSize];\n  if (_textAttributes) CFRelease(_textAttributes);\n  _textAttributes = CFBridgingRetain(@{(id)kCTFontAttributeName : font, (id)kCTForegroundColorFromContextAttributeName : (id)kCFBooleanTrue});\n\n  CFAttributedStringRef addedString = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"+\"), _textAttributes);\n  if (_addedLine) CFRelease(_addedLine);\n  _addedLine = CTLineCreateWithAttributedString(addedString);\n  CFRelease(addedString);\n\n  CFAttributedStringRef deletedString = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"-\"), _textAttributes);\n  if (_deletedLine) CFRelease(_deletedLine);\n  _deletedLine = CTLineCreateWithAttributedString(deletedString);\n  CFRelease(deletedString);\n\n  CGFloat ascent;\n  CGFloat descent;\n  CGFloat leading;\n  CTLineGetTypographicBounds(_addedLine, &ascent, &descent, &leading);\n  _lineHeight = ceilf(ascent + descent + leading) + kTextLineHeightPadding;\n  _lineDescent = ceilf(descent) + kTextLineDescentAdjustment;\n\n  [self setNeedsDisplay:YES];\n}\n\n// WARNING: This is called *several* times when the default has been changed\n- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context {\n  if (context == (__bridge void*)[GIDiffView class]) {\n    if ([keyPath isEqualToString:GIUserDefaultKey_FontSize]) {\n      [self updateMetricsFromCurrentFontSize];\n    } else {\n      XLOG_UNREACHABLE();\n    }\n  } else {\n    [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];\n  }\n}\n\n- (void)_windowKeyDidChange:(NSNotification*)notification {\n  if ([self hasSelection]) {\n    [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n  }\n}\n\n- (void)viewDidMoveToWindow {\n  [super viewDidMoveToWindow];\n\n  if (self.window) {\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_windowKeyDidChange:) name:NSWindowDidBecomeKeyNotification object:self.window];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_windowKeyDidChange:) name:NSWindowDidResignKeyNotification object:self.window];\n  } else {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidResignKeyNotification object:nil];\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];\n  }\n}\n\n- (void)didFinishInitializing {\n  _backgroundColor = NSColor.textBackgroundColor;\n  [[NSUserDefaults standardUserDefaults] addObserver:self forKeyPath:GIUserDefaultKey_FontSize options:NSKeyValueObservingOptionInitial context:(__bridge void*)[GIDiffView class]];\n}\n\n- (instancetype)initWithFrame:(NSRect)frameRect {\n  if ((self = [super initWithFrame:frameRect])) {\n    [self didFinishInitializing];\n  }\n  return self;\n}\n\n- (instancetype)initWithCoder:(NSCoder*)coder {\n  if ((self = [super initWithCoder:coder])) {\n    [self didFinishInitializing];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidResignKeyNotification object:nil];\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];\n\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GIUserDefaultKey_FontSize context:(__bridge void*)[GIDiffView class]];\n\n  if (_textAttributes) CFRelease(_textAttributes);\n  if (_addedLine) CFRelease(_addedLine);\n  if (_deletedLine) CFRelease(_deletedLine);\n}\n\n- (BOOL)isOpaque {\n  return YES;\n}\n\n- (BOOL)isEmpty {\n  [self doesNotRecognizeSelector:_cmd];\n  return NO;\n}\n\n- (void)didUpdatePatch {\n  [self clearSelection];\n}\n\n- (void)setPatch:(GCDiffPatch*)patch {\n  if (patch != _patch) {\n    _patch = patch;\n    [self didUpdatePatch];\n\n    [self setNeedsDisplay:YES];\n  }\n}\n\n- (CGFloat)updateLayoutForWidth:(CGFloat)width {\n  [self doesNotRecognizeSelector:_cmd];\n  return 0.0;\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  [self doesNotRecognizeSelector:_cmd];\n}\n\n- (BOOL)hasSelection {\n  [self doesNotRecognizeSelector:_cmd];\n  return NO;\n}\n\n- (BOOL)hasSelectedText {\n  [self doesNotRecognizeSelector:_cmd];\n  return NO;\n}\n\n- (BOOL)hasSelectedLines {\n  [self doesNotRecognizeSelector:_cmd];\n  return NO;\n}\n\n- (void)clearSelection {\n  [self doesNotRecognizeSelector:_cmd];\n}\n\n- (void)getSelectedText:(NSString**)text oldLines:(NSIndexSet**)oldLines newLines:(NSIndexSet**)newLines {\n  [self doesNotRecognizeSelector:_cmd];\n}\n\n- (BOOL)acceptsFirstResponder {\n  return YES;\n}\n\n- (BOOL)becomeFirstResponder {\n  if (self.hasSelection) {\n    [self setNeedsDisplay:YES];\n  }\n  return YES;\n}\n\n- (BOOL)resignFirstResponder {\n  if (self.hasSelection) {\n    [self setNeedsDisplay:YES];\n  }\n  return YES;\n}\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  if (item.action == @selector(copy:)) {\n    return [self hasSelection];\n  }\n\n  return NO;\n}\n\n- (void)copy:(id)sender {\n  [[NSPasteboard generalPasteboard] declareTypes:@[ NSPasteboardTypeString ] owner:nil];\n  NSString* text;\n  [self getSelectedText:&text oldLines:NULL newLines:NULL];\n  [[NSPasteboard generalPasteboard] setString:text forType:NSPasteboardTypeString];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIFunctions-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GIPrivate.h\"\n\n@implementation GCTests (GIFunctions)\n\n#define TEST_DATE_FORMATTING(year1, month1, day1, hour1, minute1, second1, year2, month2, day2, hour2, minute2, second2, expected) \\\n  do {                                                                                                                             \\\n    NSCalendar* calendar = [NSCalendar currentCalendar];                                                                           \\\n                                                                                                                                   \\\n    NSDateComponents* components1 = [[NSDateComponents alloc] init];                                                               \\\n    components1.year = year1;                                                                                                      \\\n    components1.month = month1;                                                                                                    \\\n    components1.day = day1;                                                                                                        \\\n    components1.hour = hour1;                                                                                                      \\\n    components1.minute = minute1;                                                                                                  \\\n    components1.second = second1;                                                                                                  \\\n    NSDate* date1 = [calendar dateFromComponents:components1];                                                                     \\\n                                                                                                                                   \\\n    NSDateComponents* components2 = [[NSDateComponents alloc] init];                                                               \\\n    components2.year = year2;                                                                                                      \\\n    components2.month = month2;                                                                                                    \\\n    components2.day = day2;                                                                                                        \\\n    components2.hour = hour2;                                                                                                      \\\n    components2.minute = minute2;                                                                                                  \\\n    components2.second = second2;                                                                                                  \\\n    NSDate* date2 = [calendar dateFromComponents:components2];                                                                     \\\n                                                                                                                                   \\\n    XCTAssertEqualObjects(GIFormatRelativeDateDifference(date1, date2, YES), expected);                                            \\\n  } while (0)\n\n- (void)testDateFormatting {\n  TEST_DATE_FORMATTING(2000, 1, 1, 0, 0, 0,\n                       2001, 1, 1, 0, 0, 0,\n                       @\"Future\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 0, 0, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"Just now\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 0, 2, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"Minutes ago\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 0, 5, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"5 minutes ago\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 0, 29, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"25 minutes ago\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 1, 10, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"An hour ago\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 3, 30, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"3 hours ago\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 4, 30, 0,\n                       2000, 1, 1, 0, 0, 0,\n                       @\"Today, 12 AM\");\n  TEST_DATE_FORMATTING(2000, 1, 1, 22, 30, 0,\n                       2000, 1, 1, 13, 10, 0,\n                       @\"Today, 1 PM\");\n  TEST_DATE_FORMATTING(2000, 1, 2, 4, 30, 0,\n                       2000, 1, 1, 1, 10, 0,\n                       @\"Yesterday\");\n  TEST_DATE_FORMATTING(2000, 1, 5, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"This Monday\");\n  TEST_DATE_FORMATTING(2000, 1, 9, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"Last Monday\");\n  TEST_DATE_FORMATTING(2000, 1, 11, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"A week ago\");\n  TEST_DATE_FORMATTING(2000, 1, 18, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"2 weeks ago\");\n  TEST_DATE_FORMATTING(2000, 1, 28, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"3 weeks ago\");\n  TEST_DATE_FORMATTING(2000, 2, 1, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"4 weeks ago\");\n  TEST_DATE_FORMATTING(2000, 2, 20, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"A month ago\");\n  TEST_DATE_FORMATTING(2000, 7, 1, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"5 months ago\");\n  TEST_DATE_FORMATTING(2001, 3, 1, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"A year ago\");\n  TEST_DATE_FORMATTING(2002, 4, 1, 0, 0, 0,\n                       2000, 1, 3, 0, 0, 0,\n                       @\"2 years ago\");\n}\n\n- (void)testHighlightingRange {\n  CFRange deletedRange;\n  CFRange addedRange;\n  {\n    const char* before = \"____\\n\";\n    const char* after = \"__added__\\n\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 2);\n    XCTAssertEqual(deletedRange.length, 0);\n    XCTAssertEqual(addedRange.location, 2);\n    XCTAssertEqual(addedRange.length, 5);\n  }\n  {\n    const char* before = \"__deleted__\\n\";\n    const char* after = \"____\\n\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 2);\n    XCTAssertEqual(deletedRange.length, 7);\n    XCTAssertEqual(addedRange.location, 2);\n    XCTAssertEqual(addedRange.length, 0);\n  }\n  {\n    const char* before = \"__before__\\n\";\n    const char* after = \"__after__\\n\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 2);\n    XCTAssertEqual(deletedRange.length, 6);\n    XCTAssertEqual(addedRange.location, 2);\n    XCTAssertEqual(addedRange.length, 5);\n  }\n  {\n    const char* before = \"The 2010 year\";\n    const char* after = \"The 2011 year\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 7);\n    XCTAssertEqual(deletedRange.length, 1);\n    XCTAssertEqual(addedRange.location, 7);\n    XCTAssertEqual(addedRange.length, 1);\n  }\n  {\n    const char* before = \"succesfully\";\n    const char* after = \"successfully\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 6);\n    XCTAssertEqual(deletedRange.length, 0);\n    XCTAssertEqual(addedRange.location, 6);\n    XCTAssertEqual(addedRange.length, 1);\n  }\n  {\n    const char* before = \"francais\";\n    const char* after = \"français\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 4);\n    XCTAssertEqual(deletedRange.length, 1);\n    XCTAssertEqual(addedRange.location, 4);\n    XCTAssertEqual(addedRange.length, 1);\n  }\n  {\n    const char* before = \"_é_äu_è_\";\n    const char* after = \"_é_aü_è_\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 3);\n    XCTAssertEqual(deletedRange.length, 2);\n    XCTAssertEqual(addedRange.location, 3);\n    XCTAssertEqual(addedRange.length, 2);\n  }\n  {\n    // Fix for issue #2740\n    const char* before = \"中文命名.md\";\n    const char* after = \"中文命名1.md\";\n    GIComputeHighlightRanges(before, strlen(before), [[NSString stringWithUTF8String:before] length], &deletedRange, after, strlen(after), [[NSString stringWithUTF8String:after] length], &addedRange);\n    XCTAssertEqual(deletedRange.location, 4);\n    XCTAssertEqual(deletedRange.length, 0);\n    XCTAssertEqual(addedRange.location, 4);\n    XCTAssertEqual(addedRange.length, 1);\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIFunctions.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n#import <CoreGraphics/CoreGraphics.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\nvoid GIComputeModifiedRanges(NSString* beforeString, NSRange* beforeRange, NSString* afterString, NSRange* afterRange);\nNSString* GIFormatDateRelativelyFromNow(NSDate* date, BOOL showApproximateTime);\nNSString* GIFormatRelativeDateDifference(NSDate* fromDate, NSDate* toDate, BOOL showApproximateTime);\nvoid GICGContextAddRoundedRect(CGContextRef context, CGRect rect, CGFloat radius);\n\n#ifdef __cplusplus\n}\n#endif\n"
  },
  {
    "path": "GitUpKit/Interface/GIFunctions.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIPrivate.h\"\n\n#define TEST_BITS(c, m) ((c & (m)) == (m))\n\nvoid GIComputeHighlightRanges(const char* deletedBytes, NSUInteger deletedCount, CFIndex deletedLength, CFRange* deletedRange, const char* addedBytes, NSUInteger addedCount, CFIndex addedLength, CFRange* addedRange) {\n  const char* deletedMin = deletedBytes;\n  const char* deletedMax = deletedBytes + deletedCount;\n  const char* addedMin = addedBytes;\n  const char* addedMax = addedBytes + addedCount;\n\n  CFIndex start = 0;\n  size_t remaining = 0;\n  while ((deletedMin < deletedMax) && (addedMin < addedMax)) {\n    if (*deletedMin != *addedMin) {\n      break;\n    }\n    if (remaining == 0) {\n      unsigned char byte = *(unsigned char*)deletedMin;\n      if (TEST_BITS(byte, 0b11111100)) {\n        remaining = 6;\n      } else if (TEST_BITS(byte, 0b11111000)) {\n        remaining = 5;\n      } else if (TEST_BITS(byte, 0b11110000)) {\n        remaining = 4;\n      } else if (TEST_BITS(byte, 0b11100000)) {\n        remaining = 3;\n      } else if (TEST_BITS(byte, 0b11000000)) {\n        remaining = 2;\n      } else {\n        XLOG_DEBUG_CHECK(!(byte & (1 << 7)));\n        remaining = 1;\n      }\n    }\n    ++deletedMin;\n    ++addedMin;\n    --remaining;\n    if (remaining == 0) {\n      ++start;\n    }\n  }\n\n  CFIndex end = 0;\n  const char* deletedByte = deletedMax - 1;\n  const char* addedByte = addedMax - 1;\n  while ((deletedByte >= deletedMin) && (addedByte >= addedMin)) {\n    if (*deletedByte != *addedByte) {\n      break;\n    }\n    unsigned char byte = *(unsigned char*)deletedByte;\n    if ((!(byte & (1 << 7))) || TEST_BITS(byte, 0b11000000)) {  // 0xxxxxxx or 11xxxxxx indicates a UTF-8 single byte or multi-byte start\n      ++end;\n    }\n    --deletedByte;\n    --addedByte;\n  }\n\n  *deletedRange = CFRangeMake(start, deletedLength - end - start);\n  XLOG_DEBUG_CHECK(deletedRange->length >= 0);\n  *addedRange = CFRangeMake(start, addedLength - end - start);\n  XLOG_DEBUG_CHECK(addedRange->length >= 0);\n}\n\nvoid GIComputeModifiedRanges(NSString* beforeString, NSRange* beforeRange, NSString* afterString, NSRange* afterRange) {\n  const char* before = beforeString.UTF8String;\n  const char* after = afterString.UTF8String;\n  GIComputeHighlightRanges(before, strlen(before), beforeString.length, (CFRange*)beforeRange, after, strlen(after), afterString.length, (CFRange*)afterRange);\n}\n\nNSString* GIFormatDateRelativelyFromNow(NSDate* date, BOOL showApproximateTime) {\n  return GIFormatRelativeDateDifference([NSDate date], date, showApproximateTime);\n}\n\nstatic NSString* _WeekdayName(NSInteger index) {\n  switch (index) {\n    case 1:\n      return NSLocalizedString(@\"Sunday\", nil);\n    case 2:\n      return NSLocalizedString(@\"Monday\", nil);\n    case 3:\n      return NSLocalizedString(@\"Tuesday\", nil);\n    case 4:\n      return NSLocalizedString(@\"Wednesday\", nil);\n    case 5:\n      return NSLocalizedString(@\"Thursday\", nil);\n    case 6:\n      return NSLocalizedString(@\"Friday\", nil);\n    case 7:\n      return NSLocalizedString(@\"Saturday\", nil);\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\nNSString* GIFormatRelativeDateDifference(NSDate* fromDate, NSDate* toDate, BOOL showApproximateTime) {\n  if (toDate.timeIntervalSinceReferenceDate <= fromDate.timeIntervalSinceReferenceDate) {\n    NSCalendar* calendar = [NSCalendar currentCalendar];\n    NSDateComponents* components = [calendar components:(NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitWeekOfYear | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute) fromDate:fromDate toDate:toDate options:0];\n    if (components.year == 0) {  // Dates are less than 1 year apart\n      if (components.month == 0) {  // Dates are less than 1 month apart\n        NSDateComponents* fromComponents = [calendar components:(NSCalendarUnitWeekday | NSCalendarUnitWeekOfYear) fromDate:fromDate];\n        NSDateComponents* toComponents = [calendar components:(NSCalendarUnitWeekday | NSCalendarUnitWeekOfYear | NSCalendarUnitHour) fromDate:toDate];\n        if (components.weekOfYear == 0) {  // Dates are less than 1 week apart\n\n          if (components.day == 0) {  // Dates are less than 1 day apart\n            if (components.hour == 0) {  // Dates are less than 1 hour apart\n              if (components.minute >= -1) {\n                return NSLocalizedString(@\"Just now\", nil);\n              }\n              if (components.minute >= -4) {\n                return NSLocalizedString(@\"Minutes ago\", nil);\n              }\n              return [NSString stringWithFormat:NSLocalizedString(@\"%li minutes ago\", nil), 5 * (-components.minute / 5)];  // Rounded to 5 minutes intervals\n            }\n            if (components.hour == -1) {\n              return NSLocalizedString(@\"An hour ago\", nil);\n            }\n            if (components.hour >= -3) {\n              return [NSString stringWithFormat:NSLocalizedString(@\"%li hours ago\", nil), -components.hour];\n            }\n            // Pass through!\n          }\n\n          if ((toComponents.weekOfYear == fromComponents.weekOfYear) && (toComponents.weekday == fromComponents.weekday)) {  // Dates are on the same day\n            if (showApproximateTime) {\n              if (toComponents.hour < 12) {\n                return [NSString stringWithFormat:NSLocalizedString(@\"Today, %li AM\", nil), toComponents.hour == 0 ? 12 : toComponents.hour];\n              }\n              return [NSString stringWithFormat:NSLocalizedString(@\"Today, %li PM\", nil), toComponents.hour == 12 ? 12 : toComponents.hour - 12];\n            }\n            return NSLocalizedString(@\"Today\", nil);\n          }\n\n          if ((toComponents.weekday == fromComponents.weekday - 1) || ((fromComponents.weekday == 1) && (toComponents.weekday == 7))) {  // Dates are on consecutive days\n            return NSLocalizedString(@\"Yesterday\", nil);\n          }\n\n          if (toComponents.weekOfYear == fromComponents.weekOfYear) {  // Dates are in the same week\n            return [NSString stringWithFormat:NSLocalizedString(@\"This %@\", nil), _WeekdayName(toComponents.weekday)];\n          }\n\n          return [NSString stringWithFormat:NSLocalizedString(@\"Last %@\", nil), _WeekdayName(toComponents.weekday)];\n        }\n        if (components.weekOfYear == -1) {\n          return NSLocalizedString(@\"A week ago\", nil);\n        }\n        return [NSString stringWithFormat:NSLocalizedString(@\"%li weeks ago\", nil), -components.weekOfYear];\n      }\n      if (components.month == -1) {\n        return NSLocalizedString(@\"A month ago\", nil);\n      }\n      return [NSString stringWithFormat:NSLocalizedString(@\"%li months ago\", nil), -components.month];\n    }\n    if (components.year == -1) {\n      return NSLocalizedString(@\"A year ago\", nil);\n    }\n    return [NSString stringWithFormat:NSLocalizedString(@\"%li years ago\", nil), -components.year];\n  }\n  return NSLocalizedString(@\"Future\", nil);\n}\n\nvoid GICGContextAddRoundedRect(CGContextRef context, CGRect rect, CGFloat radius) {\n  CGContextMoveToPoint(context, rect.origin.x + radius, rect.origin.y);\n  CGContextAddLineToPoint(context, rect.origin.x + rect.size.width - radius, rect.origin.y);\n  CGContextAddQuadCurveToPoint(context, rect.origin.x + rect.size.width, rect.origin.y, rect.origin.x + rect.size.width, rect.origin.y + radius);\n  CGContextAddLineToPoint(context, rect.origin.x + rect.size.width, rect.origin.y + rect.size.height - radius);\n  CGContextAddQuadCurveToPoint(context, rect.origin.x + rect.size.width, rect.origin.y + rect.size.height, rect.origin.x + rect.size.width - radius, rect.origin.y + rect.size.height);\n  CGContextAddLineToPoint(context, rect.origin.x + radius, rect.origin.y + rect.size.height);\n  CGContextAddQuadCurveToPoint(context, rect.origin.x, rect.origin.y + rect.size.height, rect.origin.x, rect.origin.y + rect.size.height - radius);\n  CGContextAddLineToPoint(context, rect.origin.x, rect.origin.y + radius);\n  CGContextAddQuadCurveToPoint(context, rect.origin.x, rect.origin.y, rect.origin.x + radius, rect.origin.y);\n}\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph-Tests/simple.txt",
    "content": "# Test notation syntax\n\n##### NOTATION #####\n\nm0 - m1 - m2<master>\n \\\n t1(m0) - t2 - t3 - t4<topic>\n\n##### GRAPH #####\n\n[0000] m2 t4\n[0001] m1 t3\n[0002] (m0) t2\n[0003] (m0) t1\n[0004] m0\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph-Tests/skip_remote_branches_1.txt",
    "content": "# Test skipping commits works when they start before the local branch\n\n{\n  \"skipRemoteBranchTips\": true\n}\n\n##### NOTATION #####\n\nm0 - m1 - m2<master>\n      \\\n      t1(m1) - t2 - t3 - t4 - t5[origin/topic]\n\n##### GRAPH #####\n\n[0000] m2\n[0001] m1\n[0002] m0\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph-Tests/skip_remote_branches_2.txt",
    "content": "# Test skipping commits stops when reaching a local branch \n\n{\n  \"skipRemoteBranchTips\": true\n}\n\n##### NOTATION #####\n\nm0 - m1 - m2<master>\n      \\\n      t1(m1) - t2<topic> - t3 - t4 - t5[origin/topic]\n\n##### GRAPH #####\n\n[0000] m2 t2\n[0001] (m1) t1\n[0002] m1\n[0003] m0\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph-Tests/skip_remote_branches_3.txt",
    "content": "# Test skipping commits stops when reaching a local branch but does not resuscitate it\n# as a tip unless all children are skipped\n\n{\n  \"skipRemoteBranchTips\": true\n}\n\n##### NOTATION #####\n\nm0 - m1<topic> - m2 - m3<master>[origin/master]\n           \\\n            t1(m1) - t2[origin/topic]\n            \n##### GRAPH #####\n\n[0000] m3\n[0001] m2\n[0002] m1\n[0003] m0\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph-Tests/virtual_tip.txt",
    "content": "# Test that a virtual tip is created for a branch that's not pointing to a tip-commit\n\n{\n  \"showVirtualTips\": true\n}\n\n##### NOTATION #####\n\nm0 - m1<master> - m2[origin/master]\n\n##### GRAPH #####\n\n[0000] m2 (m1)\n[0001] m1\n[0002] m0\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph-Tests.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GCTestCase.h\"\n#import \"GIPrivate.h\"\n\n#define kNotationSeparator @\"##### NOTATION #####\\n\\n\"\n#define kGraphSeparator @\"##### GRAPH #####\\n\\n\"\n\n@interface GIGraphTests : XCTestCase\n@end\n\n@implementation GIGraphTests\n\n+ (NSArray*)testInvocations {\n  NSMutableArray* array = [NSMutableArray arrayWithArray:[super testInvocations]];\n  NSString* folder = [[@__FILE__ stringByDeletingLastPathComponent] stringByAppendingPathComponent:@\"GIGraph-Tests\"];\n  NSArray* files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:folder error:NULL];\n  XLOG_DEBUG_CHECK(files);\n  for (NSString* file in files) {\n    if (![file.pathExtension isEqualToString:@\"txt\"]) {\n      continue;\n    }\n    NSString* name = [file stringByDeletingPathExtension];\n    NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:[self instanceMethodSignatureForSelector:@selector(_test:)]];\n    invocation.selector = NSSelectorFromString([NSString stringWithFormat:@\"%@:\", name]);\n    NSString* path = [folder stringByAppendingPathComponent:file];\n    [invocation setArgument:&path atIndex:2];\n    [invocation retainArguments];\n    [array addObject:invocation];\n  }\n  return array;\n}\n\n- (NSMethodSignature*)methodSignatureForSelector:(SEL)selector {\n  return [super methodSignatureForSelector:@selector(_test:)];\n}\n\n- (void)forwardInvocation:(NSInvocation*)invocation {\n  invocation.selector = @selector(_test:);\n  [invocation invokeWithTarget:self];\n}\n\n- (void)_test:(NSString*)file {\n  NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n\n  // Parse file\n  NSString* contents = [[NSString alloc] initWithContentsOfFile:file encoding:NSUTF8StringEncoding error:NULL];\n  XCTAssertNotNil(contents);\n  NSRange range1 = [contents rangeOfString:kNotationSeparator options:0 range:NSMakeRange(0, contents.length)];\n  XCTAssertNotEqual(range1.location, NSNotFound);\n  NSRange range2 = [contents rangeOfString:kGraphSeparator options:0 range:NSMakeRange(range1.location + range1.length, contents.length - range1.location - range1.length)];\n  XCTAssertNotEqual(range2.location, NSNotFound);\n  NSDictionary* options = nil;\n  if (range1.location > 0) {\n    NSMutableString* json = [NSMutableString string];\n    for (NSString* line in [[contents substringWithRange:NSMakeRange(0, range1.location)] componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]]) {\n      if (line.length && ([line characterAtIndex:0] != '#')) {\n        [json appendString:line];\n        [json appendString:@\"\\n\"];\n      }\n    }\n    options = [NSJSONSerialization JSONObjectWithData:[json dataUsingEncoding:NSUTF8StringEncoding] options:0 error:NULL];\n  }\n  NSString* notation = [contents substringWithRange:NSMakeRange(range1.location + range1.length, range2.location - range1.location - range1.length)];\n  NSString* expected = [contents substringWithRange:NSMakeRange(range2.location + range2.length, contents.length - range2.location - range2.length)];\n\n  // Create mock repository from notation\n  GCRepository* repository = [[GCSQLiteRepository alloc] initWithDatabase:path error:NULL];\n  XCTAssertNotNil(repository);\n  XCTAssertNotNil([repository createMockCommitHierarchyFromNotation:notation force:NO error:NULL]);\n\n  // Load history\n  GCHistory* history = [repository loadHistoryUsingSorting:kGCHistorySorting_None error:NULL];\n  XCTAssertNotNil(history);\n\n  // Create graph\n  GIGraphOptions graphOptions = 0;\n  if ([[options valueForKey:@\"showVirtualTips\"] boolValue]) {\n    graphOptions |= kGIGraphOption_ShowVirtualTips;\n  }\n  if ([[options valueForKey:@\"skipTagTips\"] boolValue]) {\n    graphOptions |= kGIGraphOption_SkipStandaloneTagTips;\n  }\n  if ([[options valueForKey:@\"skipRemoteBranchTips\"] boolValue]) {\n    graphOptions |= kGIGraphOption_SkipStandaloneRemoteBranchTips;\n  }\n  if ([[options valueForKey:@\"preserveUpstreamTips\"] boolValue]) {\n    graphOptions |= kGIGraphOption_PreserveUpstreamRemoteBranchTips;\n  }\n  GIGraph* graph = [[GIGraph alloc] initWithHistory:history options:graphOptions];\n  XCTAssertNotNil(graph);\n\n  // Compare graph with expected\n  NSMutableString* string = [[NSMutableString alloc] init];\n  NSUInteger index = 0;\n  for (GILayer* layer in graph.layers) {\n    [string appendFormat:@\"[%04lu]\", index];\n    for (GINode* node in layer.nodes) {\n      if (node.dummy) {\n        [string appendFormat:@\" (%@)\", node.commit.message];\n      } else {\n        [string appendFormat:@\" %@\", node.commit.message];\n      }\n    }\n    [string appendString:@\"\\n\"];\n    ++index;\n  }\n  XCTAssertEqualObjects(string, expected);\n\n  // Destroy repository\n  repository = nil;\n  XCTAssertTrue([[NSFileManager defaultManager] removeItemAtPath:path error:NULL]);\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n#import <CoreGraphics/CoreGraphics.h>\n\n@class GCHistory, GCHistoryCommit, GILayer, GINode;\n\ntypedef NS_OPTIONS(NSUInteger, GIGraphOptions) {\n  kGIGraphOption_ShowVirtualTips = (1 << 0),\n  kGIGraphOption_SkipStaleBranchTips = (1 << 1),\n  kGIGraphOption_SkipStandaloneTagTips = (1 << 2),\n  kGIGraphOption_SkipStandaloneRemoteBranchTips = (1 << 3),\n  kGIGraphOption_PreserveUpstreamRemoteBranchTips = (1 << 4)\n};\n\n@interface GIGraph : NSObject\n- (instancetype)initWithHistory:(GCHistory*)history options:(GIGraphOptions)options;  // The history sorting order is irrelevant as the graph is generated starting from the leaves\n@property(nonatomic, readonly) GCHistory* history;\n@property(nonatomic, readonly) GIGraphOptions options;\n@property(nonatomic, readonly, getter=isEmpty) BOOL empty;\n\n@property(nonatomic, readonly) NSArray* branches;\n@property(nonatomic, readonly) NSArray* layers;\n@property(nonatomic, readonly) NSArray* lines;\n@property(nonatomic, readonly) NSArray* nodes;\n\n@property(nonatomic, readonly) NSUInteger numberOfDummyNodes;\n@property(nonatomic, readonly) NSArray* nodesWithReferences;\n@property(nonatomic, readonly) CGSize size;\n\n- (GINode*)nodeForCommit:(GCHistoryCommit*)commit;\n\n- (void)walkMainLineForAncestorsOfNode:(GINode*)node usingBlock:(void (^)(GINode* node, BOOL* stop))block;\n- (void)walkAncestorsOfNode:(GINode*)node\n            layerBeginBlock:(void (^)(GILayer* layer, BOOL* stop))beginBlock  // May be NULL\n             layerNodeBlock:(void (^)(GILayer* layer, GINode* node, BOOL* stop))nodeBlock\n              layerEndBlock:(void (^)(GILayer* layer, BOOL* stop))endBlock;  // May be NULL\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraph.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIPrivate.h\"\n\n#if __GI_HAS_APPKIT__\n#define __COLORIZE_BRANCHES__ 0\n#endif\n\n#define kStaleBranchInterval (60 * 24 * 3600)  // 60 days\n\n#define COMMIT_SKIPPED(c) skipped[c.autoIncrementID]\n#define MAP_COMMIT_TO_NODE(c) _mapping[c.autoIncrementID]\n\n@implementation GIGraph {\n  GINode* __unsafe_unretained* _mapping;\n  NSMutableArray* _branches;\n  NSMutableArray* _layers;\n  NSMutableArray* _lines;\n  NSMutableArray* _nodes;\n  NSMutableArray* _nodesWithReferences;\n}\n\n- (instancetype)initWithHistory:(GCHistory*)history options:(GIGraphOptions)options {\n  if ((self = [super init])) {\n    _history = history;\n    _options = options;\n\n    _branches = [NSMutableArray array];\n    _layers = [NSMutableArray array];\n    _lines = [NSMutableArray array];\n    _nodes = [NSMutableArray array];\n    _nodesWithReferences = [NSMutableArray array];\n    _mapping = (GINode * __unsafe_unretained*)calloc(_history.nextAutoIncrementID, sizeof(GINode*));\n\n    [self _generateGraph];\n#if DEBUG\n    [self _validateTopology];\n#endif\n\n    [self _computeNodePositions];\n#if __GI_HAS_APPKIT__\n    [self _computeNodeAndLineColors];\n#endif\n#if DEBUG\n    [self _validateStyle];\n#endif\n  }\n  return self;\n}\n\n- (void)dealloc {\n  free(_mapping);\n\n  _history = nil;\n}\n\n- (BOOL)isEmpty {\n  return self.layers.count == 0;\n}\n\n- (void)_generateGraph {\n  NSTimeInterval staleTime = [NSDate timeIntervalSinceReferenceDate] - kStaleBranchInterval;\n  GCOrderedSet* tips = [[GCOrderedSet alloc] init];\n  NSMutableSet* upstreamTips = [[NSMutableSet alloc] init];\n  GC_POINTER_LIST_ALLOCATE(skipList, 32);\n  GC_POINTER_LIST_ALLOCATE(newSkipList, 32);\n  BOOL* skipped = NULL;\n  if (_options & (kGIGraphOption_SkipStaleBranchTips | kGIGraphOption_SkipStandaloneTagTips | kGIGraphOption_SkipStandaloneRemoteBranchTips)) {\n    skipped = calloc(_history.nextAutoIncrementID, sizeof(BOOL));\n  }\n  GCHistoryCommit* headCommit = _history.HEADCommit;\n\n  // Add HEAD first to tips\n  if (headCommit && (((_options & kGIGraphOption_ShowVirtualTips) && !_history.HEADDetached) ||\n                     (headCommit.leaf && !headCommit.localBranches && !headCommit.remoteBranches && !headCommit.tags))) {\n    [tips addObject:headCommit];\n  }\n\n  // Add local branches to tips (with their upstreams first if applicable)\n  for (GCHistoryLocalBranch* branch in _history.localBranches) {\n    if (_options & kGIGraphOption_PreserveUpstreamRemoteBranchTips) {\n      GCHistoryCommit* upstreamTip = [(GCHistoryLocalBranch*)branch.upstream tipCommit];\n      if (upstreamTip && ((_options & kGIGraphOption_ShowVirtualTips) || upstreamTip.leaf)) {\n        [upstreamTips addObject:upstreamTip];\n        [tips addObject:upstreamTip];\n      }\n    }\n\n    if (((_options & kGIGraphOption_ShowVirtualTips) || branch.tipCommit.leaf)) {\n      [tips addObject:branch.tipCommit];\n    }\n  }\n\n  // Add remote branches to tips\n  for (GCHistoryRemoteBranch* branch in _history.remoteBranches) {\n    if (((_options & kGIGraphOption_ShowVirtualTips) || branch.tipCommit.leaf)) {\n      [tips addObject:branch.tipCommit];\n    }\n  }\n\n  // Add leaf tags\n  for (GCHistoryTag* tag in _history.tags) {\n    if (tag.commit.leaf) {\n      [tips addObject:tag.commit];\n    }\n  }\n\n  // Verify all leaves are included in tips\n  XLOG_DEBUG_CHECK([[NSSet setWithArray:_history.leafCommits] isSubsetOfSet:[NSSet setWithArray:tips.objects]]);\n\n  // Remove stale branch tips if needed\n  if (_options & kGIGraphOption_SkipStaleBranchTips) {\n    for (GCHistoryLocalBranch* branch in _history.localBranches) {\n      GCHistoryCommit* commit = branch.tipCommit;\n      if ((commit.timeIntervalSinceReferenceDate < staleTime) && ![headCommit isEqualToCommit:commit]) {\n        [tips removeObject:commit];\n        if (commit.leaf && !COMMIT_SKIPPED(commit)) {\n          GC_POINTER_LIST_APPEND(skipList, (__bridge void*)(commit));\n          COMMIT_SKIPPED(commit) = YES;\n        }\n      }\n    }\n    for (GCHistoryLocalBranch* branch in _history.remoteBranches) {\n      GCHistoryCommit* commit = branch.tipCommit;\n      if ((commit.timeIntervalSinceReferenceDate < staleTime) && ![headCommit isEqualToCommit:commit]) {\n        [tips removeObject:commit];\n        if (commit.leaf && !COMMIT_SKIPPED(commit)) {\n          GC_POINTER_LIST_APPEND(skipList, (__bridge void*)(commit));\n          COMMIT_SKIPPED(commit) = YES;\n        }\n      }\n    }\n  }\n\n  // Remove standalone tag tips if needed\n  if (_options & kGIGraphOption_SkipStandaloneTagTips) {\n    for (GCHistoryTag* tag in _history.tags) {\n      GCHistoryCommit* commit = tag.commit;\n      if (commit.leaf && !commit.localBranches && ![headCommit isEqualToCommit:commit]) {\n        if (!commit.remoteBranches || (_options & kGIGraphOption_SkipStandaloneRemoteBranchTips)) {\n          [tips removeObject:commit];\n          if (!COMMIT_SKIPPED(commit)) {\n            GC_POINTER_LIST_APPEND(skipList, (__bridge void*)(commit));\n            COMMIT_SKIPPED(commit) = YES;\n          }\n        }\n      }\n    }\n  }\n\n  // Remove remote standalone remote branch tips if needed (unless upstream)\n  if (_options & kGIGraphOption_SkipStandaloneRemoteBranchTips) {\n    for (GCHistoryRemoteBranch* branch in _history.remoteBranches) {\n      GCHistoryCommit* commit = branch.tipCommit;\n      if (!commit.localBranches && ![headCommit isEqualToCommit:commit]) {\n        if (!commit.tags || (_options & kGIGraphOption_SkipStandaloneTagTips)) {\n          if (!(_options & kGIGraphOption_PreserveUpstreamRemoteBranchTips) || ![upstreamTips containsObject:commit]) {\n            [tips removeObject:commit];\n            if (commit.leaf && !COMMIT_SKIPPED(commit)) {\n              GC_POINTER_LIST_APPEND(skipList, (__bridge void*)(commit));\n              COMMIT_SKIPPED(commit) = YES;\n            }\n          }\n        }\n      }\n    }\n  }\n\n  // Walk skipped commits ancestors\n  void (^skipBlock)(BOOL) = ^(BOOL updateTips) {\n    while (1) {\n      // Iterate over commits from list\n      GC_POINTER_LIST_FOR_LOOP(skipList, GCHistoryCommit*, commit) {\n        for (GCHistoryCommit* parent in commit.parents) {\n          // Check if commit was already skipped\n          if (COMMIT_SKIPPED(parent)) {\n            continue;\n          }\n\n          // If updating tips, make sure HEAD or references that are not leaves are not skipped\n          if (updateTips) {\n            XLOG_DEBUG_CHECK(!parent.leaf);\n            if ([headCommit isEqualToCommit:parent]) {\n              [tips addObject:parent];\n              continue;\n            }\n            if (!(_options & kGIGraphOption_SkipStaleBranchTips) || (parent.timeIntervalSinceReferenceDate >= staleTime)) {\n              if (parent.localBranches) {\n                BOOL resuscitate = YES;\n                for (GCHistoryCommit* child in parent.children) {\n                  if (!COMMIT_SKIPPED(child)) {\n                    resuscitate = NO;\n                    break;\n                  }\n                }\n                if (resuscitate) {\n                  [tips addObject:parent];\n                  continue;\n                }\n              }\n              if (parent.remoteBranches && !(_options & kGIGraphOption_SkipStandaloneRemoteBranchTips)) {\n                BOOL resuscitate = YES;\n                for (GCHistoryCommit* child in parent.children) {\n                  if (!COMMIT_SKIPPED(child)) {\n                    resuscitate = NO;\n                    break;\n                  }\n                }\n                if (resuscitate) {\n                  [tips addObject:parent];\n                  continue;\n                }\n              }\n\n              // Also make sure references that are upstream tips are not skipped\n              if ((_options & kGIGraphOption_PreserveUpstreamRemoteBranchTips) && [upstreamTips containsObject:parent]) {\n                continue;\n              }\n            }\n          }\n\n          // A commit can be skipped if all its children are skipped\n          BOOL skip = YES;\n          for (GCHistoryCommit* child in parent.children) {\n            skip = COMMIT_SKIPPED(child);\n            if (!skip) {\n              break;\n            }\n          }\n\n          // Skip commit if applicable\n          if (skip) {\n            XLOG_DEBUG_CHECK(!updateTips || ![tips containsObject:parent]);\n            XLOG_DEBUG_CHECK(!GC_POINTER_LIST_CONTAINS(newSkipList, (__bridge void*)(parent)));\n            GC_POINTER_LIST_APPEND(newSkipList, (__bridge void*)(parent));\n            COMMIT_SKIPPED(parent) = YES;\n          }\n        }\n      }\n\n      // If new list is empty we're done\n      if (!GC_POINTER_LIST_COUNT(newSkipList)) {\n        GC_POINTER_LIST_RESET(skipList);\n        break;\n      }\n\n      // Replace current list with new list\n      GC_POINTER_LIST_SWAP(newSkipList, skipList);\n      GC_POINTER_LIST_RESET(newSkipList);\n    }\n  };\n  if (skipped) {\n    skipBlock(YES);\n  }\n\n  NSArray* tipsArray = tips.objects;\n\n  // Make sure we have some tips left\n  if (tipsArray.count == 0) {\n    if (skipped) {\n      free(skipped);\n    }\n    GC_POINTER_LIST_FREE(newSkipList);\n    GC_POINTER_LIST_FREE(skipList);\n    upstreamTips = nil;\n    tips = nil;\n    return;\n  }\n\n  // Re-sort all tips in descending chronological order (this ensures virtual tips will be on the rightside of the tips descending from the same commits)\n  if (_options & kGIGraphOption_ShowVirtualTips) {\n    tipsArray = [tipsArray sortedArrayUsingSelector:@selector(reverseTimeCompare:)];\n  }\n\n  // Create initial layer made of tips\n  GILayer* layer = [[GILayer alloc] initWithIndex:self.layers.count];\n  @autoreleasepool {\n    for (GCHistoryCommit* commit in tipsArray) {\n      // Create new branch\n      GIBranch* branch = [[GIBranch alloc] init];\n      [_branches addObject:branch];\n\n      // Create new line\n      GILine* line = [[GILine alloc] initWithBranch:branch];\n      [_lines addObject:line];\n      branch.mainLine = line;\n      [layer addLine:line];\n\n      // Create new node\n      GINode* node;\n      BOOL ready = YES;\n      if (!commit.leaf) {\n        // If skipping commits, a tip is ready only if all its children are skipped\n        if (skipped) {\n          for (GCHistoryCommit* child in commit.children) {\n            if (!COMMIT_SKIPPED(child)) {\n              ready = NO;\n              break;\n            }\n          }\n        }\n        // Otherwise any non-leaf tip commit must be dummy\n        else {\n          ready = NO;\n        }\n      }\n      if (ready) {\n        node = [[GINode alloc] initWithLayer:layer primaryLine:line commit:commit dummy:NO alternateCommit:nil];\n        MAP_COMMIT_TO_NODE(commit) = node;  // Associate node with commit\n      } else {\n        node = [[GINode alloc] initWithLayer:layer primaryLine:line commit:commit dummy:YES alternateCommit:nil];\n        ++_numberOfDummyNodes;\n      }\n      [_nodes addObject:node];\n      [layer addNode:node];\n      [line addNode:node];\n    }\n  }\n  [_layers addObject:layer];\n\n  // Add next layers following commit parent hierarchy\n  GILayer* previousLayer = layer;\n  while (1) {\n    @autoreleasepool {\n      // Create a new empty layer\n      layer = [[GILayer alloc] initWithIndex:self.layers.count];\n\n      // Iterate over nodes from previous layer\n      for (GINode* previousNode in previousLayer.nodes) {\n        GINode* (^nodeBlock)(GILine*, GCHistoryCommit*, GCHistoryCommit*) = ^(GILine* line, GCHistoryCommit* commit, GCHistoryCommit* alternateCommit) {\n          XLOG_DEBUG_CHECK(!MAP_COMMIT_TO_NODE(commit));\n\n          // Check if this commit is \"ready\" to be a node i.e. all its children have non-dummy nodes associated (but not on the current layer)\n          BOOL ready = YES;\n          for (GCHistoryCommit* child in commit.children) {\n            if (skipped && COMMIT_SKIPPED(child)) {\n              continue;\n            }\n            GINode* node = MAP_COMMIT_TO_NODE(child);\n            ready = node && (node.layer != layer);\n            if (!ready) {\n              break;\n            }\n          }\n\n          // Create new node (dummy if the commit is not ready)\n          GINode* node;\n          if (ready) {\n            node = [[GINode alloc] initWithLayer:layer primaryLine:line commit:commit dummy:NO alternateCommit:nil];\n            MAP_COMMIT_TO_NODE(commit) = node;  // Associate node with commit\n          } else {\n            node = [[GINode alloc] initWithLayer:layer primaryLine:line commit:commit dummy:YES alternateCommit:alternateCommit];\n            ++_numberOfDummyNodes;\n          }\n          [_nodes addObject:node];\n          [layer addNode:node];\n          [line addNode:node];\n\n          return node;\n        };\n\n        // If the previous node is a dummy one reprocess its commit\n        GCHistoryCommit* commit = previousNode.commit;\n        GILine* line = previousNode.primaryLine;\n        if (previousNode.dummy) {\n          XLOG_DEBUG_CHECK(!skipped || !COMMIT_SKIPPED(commit));\n          GINode* node = MAP_COMMIT_TO_NODE(commit);  // Check if commit has already been reprocessed\n          if (node) {\n            XLOG_DEBUG_CHECK(node.layer == layer);\n            [line addNode:node];\n            [previousNode addParent:node];\n          } else {\n            [previousNode addParent:nodeBlock(line, commit, previousNode.alternateCommit)];\n          }\n          [layer addLine:line];\n        }\n        // Otherwise process its parent commit(s)\n        else {\n          NSUInteger index = 0;\n          for (GCHistoryCommit* parent in commit.parents) {\n            XLOG_DEBUG_CHECK(!skipped || !COMMIT_SKIPPED(parent));\n            GINode* node = MAP_COMMIT_TO_NODE(parent);  // Check if commit has already been processed\n            GILine* parentLine = line;\n            if (index) {  // Start a new line if not the first parent\n              GILine* newLine = [[GILine alloc] initWithBranch:line.branch];\n              [_lines addObject:newLine];\n\n              [newLine addNode:previousNode];\n              [previousLayer addLine:newLine];\n              parentLine = newLine;\n            }\n            if (node) {\n              XLOG_DEBUG_CHECK(node.layer == layer);\n              [parentLine addNode:node];\n              [previousNode addParent:node];\n            } else {\n              [previousNode addParent:nodeBlock(parentLine, parent, commit)];\n            }\n            [layer addLine:parentLine];\n            ++index;\n          }\n\n          // Cache node if it has references\n          if (commit.hasReferences) {\n            [_nodesWithReferences addObject:previousNode];\n          }\n        }\n      }\n\n      // If new layer is empty, we're done\n      if (layer.nodes.count == 0) {\n        break;\n      }\n\n#if DEBUG\n      // Make sure new layer contains at least one non-dummy node\n      BOOL found = NO;\n      for (GINode* node in layer.nodes) {\n        if (!node.dummy) {\n          found = YES;\n          break;\n        }\n      }\n      XLOG_DEBUG_CHECK(found);\n#endif\n\n      // Save new layer\n      [_layers addObject:layer];\n      previousLayer = layer;\n    }\n  }\n\n  if (skipped) {\n    free(skipped);\n  }\n  GC_POINTER_LIST_FREE(newSkipList);\n  GC_POINTER_LIST_FREE(skipList);\n}\n\n- (void)_computeNodePositions {\n  CGFloat maxX = 0.0;\n  for (CFIndex i = 0, count = self.layers.count; i < count; ++i) {\n    GILayer* layer = self.layers[i];\n\n    CGFloat lastX = 0.0;\n    NSUInteger index = 0;\n    for (GINode* node in layer.nodes) {\n      if (index) {\n        CGFloat x = node.primaryLine.x;\n        if (node.primaryLine.branchMainLine) {\n          lastX += 2;\n        }\n        if (x <= lastX) {\n          x = lastX + 1;\n        }\n        node.x = x;\n        node.primaryLine.x = x;\n        maxX = MAX(x, maxX);\n        lastX = x;\n      }\n      ++index;\n    }\n\n    layer.y = layer.index;\n  }\n  _size = CGSizeMake(maxX, self.layers.count - 1);\n}\n\n#if __GI_HAS_APPKIT__\n\n- (void)_computeNodeAndLineColors {\n  NSArray* colors = [NSColor.gitUpGraphAlternatingBranchColors copy];\n  NSUInteger numColors = colors.count;\n\n#if __COLORIZE_BRANCHES__\n  CFMutableDictionaryRef dictionary = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, NULL, NULL);\n  NSUInteger index = 0;\n  for (CFIndex i = 0, count = CFArrayGetCount(_branches); i < count; ++i) {\n    GIBranch* branch = CFArrayGetValueAtIndex(_branches, i);\n    NSColor* color = colors[index];\n    index = (index + 1) % numColors;\n    CFDictionarySetValue(dictionary, branch, color);\n  }\n  for (CFIndex i = 0, count = CFArrayGetCount(_lines); i < count; ++i) {\n    GILine* line = CFArrayGetValueAtIndex(_lines, i);\n    line.color = CFDictionaryGetValue(dictionary, line.branch);\n  }\n  CFRelease(dictionary);\n#else\n  NSUInteger index = 0;\n  for (CFIndex i = 0, count = self.lines.count; i < count; ++i) {\n    GILine* line = self.lines[i];\n    NSColor* color;\n    do {\n      color = colors[index];\n      index = (index + 1) % numColors;\n    } while ((line.parentLine.color == color) || (line.childLine.color == color));\n    line.color = color;\n  }\n#endif\n\n  colors = nil;\n}\n\n#endif\n\n#if DEBUG\n\n- (void)_validateTopology {\n  // Validate nodes - TODO: Find a way to validate \"alternateCommit\"\n  for (CFIndex i = 0, count = self.nodes.count; i < count; ++i) {\n    GINode* node = self.nodes[i];\n    XLOG_DEBUG_CHECK(node.layer);\n    XLOG_DEBUG_CHECK(node.primaryLine);\n    XLOG_DEBUG_CHECK(node.commit);\n    XLOG_DEBUG_CHECK((node.dummy && (node.parentCount == 1)) || (!node.dummy && (node.parentCount == node.commit.parents.count)));\n  }\n\n  // Validate lines\n  for (CFIndex i = 0, count = self.lines.count; i < count; ++i) {\n    GILine* line = self.lines[i];\n    XLOG_DEBUG_CHECK(line.branch);\n    NSArray* nodes = line.nodes;\n    XLOG_DEBUG_CHECK(nodes.count >= 1);\n    XLOG_DEBUG_CHECK(![(GINode*)nodes.firstObject isDummy] || ![[(GINode*)nodes.firstObject commit] isLeaf]);\n    XLOG_DEBUG_CHECK(![(GINode*)nodes.lastObject isDummy]);\n    for (NSUInteger i2 = 0, count2 = nodes.count; i2 < count2; ++i2) {\n      GINode* node = nodes[i2];\n      if (i2 == 0) {\n        XLOG_DEBUG_CHECK(node.commit.hasReferences || node.commit.leaf || (node.primaryLine == line.childLine) || [_history.HEADCommit isEqualToCommit:node.commit]);\n      } else if (i2 == count2 - 1) {\n        XLOG_DEBUG_CHECK(node.commit.root || (node.primaryLine == line.parentLine));\n      } else {\n        XLOG_DEBUG_CHECK(node.primaryLine == line);\n      }\n    }\n  }\n\n  // Validate branches\n  for (CFIndex i = 0, count = self.branches.count; i < count; ++i) {\n    GIBranch* branch = self.branches[i];\n    XLOG_DEBUG_CHECK(branch.mainLine);\n    XLOG_DEBUG_CHECK(branch.mainLine.branch == branch);\n  }\n\n  // Validate layers - TODO: Find a way to validate lines in layers\n  for (CFIndex i = 0, count = self.layers.count; i < count; ++i) {\n    GILayer* layer = self.layers[i];\n    XLOG_DEBUG_CHECK(layer.index == (NSUInteger)i);\n    XLOG_DEBUG_CHECK(layer.nodes.count >= 1);\n    XLOG_DEBUG_CHECK([[NSSet setWithArray:layer.lines] count] == layer.lines.count);\n  }\n\n  // Make sure HEAD has an associated non-dummy node\n  if (_history.HEADCommit) {\n    GINode* node = MAP_COMMIT_TO_NODE(_history.HEADCommit);\n    if (node) {\n      XLOG_DEBUG_CHECK(!node.dummy);\n    }\n  }\n\n  // Make sure all commits have a non-dummy node associated and that there are no orphan non-dummy nodes\n  NSMutableSet* orphanNodes = [NSMutableSet setWithCapacity:self.nodes.count];\n  for (CFIndex i = 0, count = self.nodes.count; i < count; ++i) {\n    GINode* node = self.nodes[i];\n    if (!node.dummy) {\n      [orphanNodes addObject:node];\n    }\n  }\n  for (GCHistoryCommit* commit in _history.allCommits) {\n    GINode* node = MAP_COMMIT_TO_NODE(commit);\n    if (node) {\n      XLOG_DEBUG_CHECK(!node.dummy);\n      XLOG_DEBUG_CHECK(node.commit == commit);\n      [orphanNodes removeObject:node];\n    }\n  }\n  XLOG_DEBUG_CHECK(orphanNodes.count == 0);\n\n  // Make sure global node list matches all line nodes\n  NSMutableSet* lineNodes = [NSMutableSet setWithCapacity:self.nodes.count];\n  for (CFIndex i = 0, count = self.lines.count; i < count; ++i) {\n    GILine* line = self.lines[i];\n    [lineNodes addObjectsFromArray:line.nodes];\n  }\n  XLOG_DEBUG_CHECK([lineNodes isEqualToSet:[NSSet setWithArray:self.nodes]]);\n\n  // Make sure global node list matches all layer nodes\n  NSMutableSet* layerNodes = [NSMutableSet setWithCapacity:self.nodes.count];\n  for (CFIndex i = 0, count = self.layers.count; i < count; ++i) {\n    GILayer* layer = self.layers[i];\n    [layerNodes addObjectsFromArray:layer.nodes];\n  }\n  XLOG_DEBUG_CHECK([layerNodes isEqualToSet:[NSSet setWithArray:self.nodes]]);\n\n  // Make sure all lines are a hierarchy of nodes and end with a non-dummy node\n  for (CFIndex i = 0, count = self.lines.count; i < count; ++i) {\n    GILine* line = self.lines[i];\n    NSArray* nodes = line.nodes;\n    NSUInteger index = 0;\n    while ([nodes[index] isDummy] && (index < nodes.count - 1)) {\n      ++index;\n    }\n    while (index < nodes.count - 1) {\n      GINode* node = nodes[index];\n      GINode* nextNode;\n      do {\n        ++index;\n        nextNode = nodes[index];\n      } while (nextNode.dummy);\n      XLOG_DEBUG_CHECK([node.commit.parents containsObject:nextNode.commit]);\n    }\n    XLOG_DEBUG_CHECK(![(GINode*)line.nodes.lastObject isDummy]);\n  }\n}\n\n- (void)_validateStyle {\n  // Make sure there are no duplicate node positions\n  for (CFIndex i = 0, count = self.layers.count; i < count; ++i) {\n    GILayer* layer = self.layers[i];\n    NSMutableSet* set = [NSMutableSet set];\n    for (GINode* node in layer.nodes) {\n      [set addObject:@(node.x)];\n    }\n    XLOG_DEBUG_CHECK(set.count == layer.nodes.count);\n  }\n\n  // Make sure children nodes are above parent nodes\n  for (GCHistoryCommit* commit in _history.allCommits) {\n    GINode* node = MAP_COMMIT_TO_NODE(commit);\n    if (node) {\n      for (GCHistoryCommit* childCommit in commit.children) {\n        GINode* childNode = MAP_COMMIT_TO_NODE(childCommit);\n        if (childNode) {\n          XLOG_DEBUG_CHECK(childNode.layer.y < node.layer.y);\n        }\n      }\n    }\n  }\n\n  // Make sure all lines have a color and their nodes are laid out upwards\n  for (CFIndex i = 0, count = self.lines.count; i < count; ++i) {\n    GILine* line = self.lines[i];\n#if __GI_HAS_APPKIT__\n    XLOG_DEBUG_CHECK(line.color);\n#endif\n    CGFloat lastY = -HUGE_VAL;\n    for (GINode* node in line.nodes) {\n      XLOG_DEBUG_CHECK(node.layer.y > lastY);\n      lastY = node.layer.y;\n    }\n  }\n}\n\n#endif\n\n- (GINode*)nodeForCommit:(GCHistoryCommit*)commit {\n  XLOG_DEBUG_CHECK(commit);\n  return MAP_COMMIT_TO_NODE(commit);\n}\n\n- (void)walkMainLineForAncestorsOfNode:(GINode*)node usingBlock:(void (^)(GINode* node, BOOL* stop))block {\n  while (1) {\n    if (node.parentCount) {\n      node = [node parentAtIndex:0];\n      BOOL stop = NO;\n      block(node, &stop);\n      if (stop) {\n        break;\n      }\n    } else {\n      break;\n    }\n  }\n}\n\n- (void)walkAncestorsOfNode:(GINode*)node\n            layerBeginBlock:(void (^)(GILayer* layer, BOOL* stop))beginBlock\n             layerNodeBlock:(void (^)(GILayer* layer, GINode* node, BOOL* stop))nodeBlock\n              layerEndBlock:(void (^)(GILayer* layer, BOOL* stop))endBlock {\n  GC_POINTER_LIST_ALLOCATE(row, 32);\n  GC_POINTER_LIST_ALLOCATE(tempRow, 32);\n\n  __block CFIndex index = node.layer.index;\n  CFIndex maxIndex = self.layers.count;\n  GC_POINTER_LIST_APPEND(row, (__bridge void*)(node));\n  while (1) {\n    ++index;\n    if (index == maxIndex) {\n      break;\n    }\n    GILayer* layer = self.layers[index];\n    if (beginBlock) {\n      BOOL stop = NO;\n      beginBlock(layer, &stop);\n      if (stop) {\n        goto cleanup;\n      }\n    }\n    GC_POINTER_LIST_FOR_LOOP(row, GINode*, previousNode) {\n      for (NSUInteger i = 0, count = previousNode.parentCount; i < count; ++i) {\n        GINode* parent = [previousNode parentAtIndex:i];\n        XLOG_DEBUG_CHECK(parent.layer == layer);\n        if (!GC_POINTER_LIST_CONTAINS(tempRow, (__bridge void*)(parent))) {\n          BOOL stop = NO;\n          nodeBlock(layer, parent, &stop);\n          if (stop) {\n            goto cleanup;\n          }\n          GC_POINTER_LIST_APPEND(tempRow, (__bridge void*)(parent));\n        }\n      }\n    }\n    if (endBlock) {\n      BOOL stop = NO;\n      endBlock(layer, &stop);\n      if (stop) {\n        goto cleanup;\n      }\n    }\n    if (!GC_POINTER_LIST_COUNT(tempRow)) {\n      break;\n    }\n    GC_POINTER_LIST_SWAP(tempRow, row);\n    GC_POINTER_LIST_RESET(tempRow);\n  }\n\ncleanup:\n  GC_POINTER_LIST_FREE(tempRow);\n  GC_POINTER_LIST_FREE(row);\n}\n\n- (NSString*)description {\n  NSMutableString* description = [[NSMutableString alloc] initWithString:[super description]];\n  for (CFIndex i = 0, count = self.layers.count; i < count; ++i) {\n    GILayer* layer = self.layers[i];\n    [description appendFormat:@\"\\nLayer %lu\", (unsigned long)layer.index];\n    for (GINode* node in layer.nodes) {\n      [description appendFormat:@\"\\n [%c] %@ \\\"%@\\\" (%@)\", node.dummy ? ' ' : 'X', node.commit.shortSHA1, node.commit.summary, node.alternateCommit.shortSHA1];\n    }\n  }\n  return description;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraphView.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@class GIGraphView, GILayer, GINode, GIGraph, GCHistoryCommit;\n\n@protocol GIGraphViewDelegate <NSObject>\n- (void)graphViewDidChangeSelection:(GIGraphView*)graphView;\n- (void)graphView:(GIGraphView*)graphView didDoubleClickOnNode:(GINode*)node;\n- (NSMenu*)graphView:(GIGraphView*)graphView willShowContextualMenuForNode:(GINode*)node;\n@end\n\n@interface GIGraphView : NSView <NSUserInterfaceValidations>\n@property(nonatomic, weak) id<GIGraphViewDelegate> delegate;\n@property(nonatomic, strong) GIGraph* graph;\n@property(nonatomic) BOOL showsTagLabels;\n@property(nonatomic) BOOL showsBranchLabels;\n\n@property(nonatomic, weak) GINode* selectedNode;  // Setting this property directly does not call the delegate\n@property(nonatomic, weak) GCHistoryCommit* selectedCommit;  // Convenience method that wraps @selectedNode\n@property(nonatomic, weak) GINode* lastSelectedNode;\n\n@property(nonatomic, readonly) NSSize minSize;\n\n- (GILayer*)findLayerAtPosition:(CGFloat)position;\n- (CGFloat)positionForLayer:(GILayer*)layer;\n- (GINode*)findNodeAtPosition:(NSPoint)position;\n- (NSPoint)positionForNode:(GINode*)node;\n\n- (void)showContextualMenuForSelectedNode;\n@end\n\n// Requires GIGraphView to be embedded in a NSScrollView -> NSClipView hierarchy\n@interface GIGraphView (NSScrollView)\n@property(nonatomic, readonly) GINode* focusedNode;  // Closest node centered in visible area of scrollview\n- (void)scrollToNode:(GINode*)node;\n- (void)scrollToSelection;  // Convenience method that calls -scrollToNode:\n- (void)scrollToTip;  // Scroll to tip of graph\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIGraphView.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import <objc/runtime.h>\n\n#import \"GIPrivate.h\"\n\n#define __SHIFT_CORNERS__ 0\n\n#define __DEBUG_DRAWING__ 0\n#define __DEBUG_BOXES__ 0\n#define __DEBUG_TITLE_CORNERS__ 0\n#define __DEBUG_MAIN_LINE__ 0\n#define __DEBUG_DESCENDANTS__ 0\n#define __DEBUG_ANCESTORS__ 0\n\n#define kSpacingX 30\n#define kSpacingY 30\n\n#define kMainLineWidth 8\n#define kMainLineNodeSmallDiameter 6\n#define kMainLineNodeLargeDiameter 10\n\n#define kSubLineWidth 2\n#define kSubNodeDiameter 8\n\n#define kEpsilon 0.001\n#define kLineCornerSize 6\n#define kOverdrawMargin (kSpacingY / 2)\n#if __SHIFT_CORNERS__\n#define kFocusBranchCornerSize 0.5  // Must be <= 0.5\n#endif\n\n#define kTitleSpacing 200\n#define kTitleOffsetX 7\n#define kTitleOffsetY 7\n\n#define kLabelOffsetX 18\n#define kLabelOffsetY 10\n\n#define kSelectedOffsetX 28\n#define kSelectedCornerRadius 5.0\n#define kSelectedTipHeight 8.0\n#define kSelectedBorderWidth 2.0\n\n#define kContextualMenuOffsetX 10\n#define kContextualMenuOffsetY -10\n\n#define kSelectedLabelMaxWidth 400\n#define kSelectedLabelMaxHeight 80\n\n#define kNodeLabelMaxWidth 200\n#define kNodeLabelMaxHeight 50\n\n#define kMaxBranchTitleWidth 250\n\n#define kScrollingInset kSpacingY\n\n#define CONVERT_X(x) (kSpacingX + (x) * kSpacingX)\n#define CONVERT_Y(y) (kSpacingY + (y) * kSpacingY)\n#define SQUARE(x) ((x) * (x))\n#define SELECTED_NODE_BOUNDS(x, y) NSMakeRect(x - kSpacingX / 2, y - (kSelectedLabelMaxHeight / 2) - kSelectedBorderWidth, kSelectedLabelMaxWidth + kSpacingX / 2 + 40, kSelectedLabelMaxHeight + (kSelectedBorderWidth * 2))\n#define NODE_LABEL_BOUNDS(x, y) NSMakeRect(x - kSpacingX / 2, y - kSpacingY / 2, kNodeLabelMaxWidth + kSpacingX / 2 + 30, kNodeLabelMaxHeight + kSpacingY / 2)\n#define HEAD_BOUNDS(x, y) NSMakeRect(x - 20, y - 10, 40, 20)\n\n@interface GIGraphView (Private)\n- (void)_scrollToTop;\n- (void)_scrollToBottom;\n- (void)_scrollToLeft;\n- (void)_scrollToRight;\n@end\n\nstatic const void* _associatedObjectDataKey = &_associatedObjectDataKey;\n\n@implementation GIGraphView {\n  NSDateFormatter* _dateFormatter;\n}\n\n#pragma mark Initialization\n\n- (void)_initialize {\n  _dateFormatter = [[NSDateFormatter alloc] init];\n  _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n  _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n\n  self.graph = nil;\n}\n\n- (instancetype)initWithFrame:(NSRect)frameRect {\n  if ((self = [super initWithFrame:frameRect])) {\n    [self _initialize];\n  }\n  return self;\n}\n\n- (instancetype)initWithCoder:(NSCoder*)coder {\n  if ((self = [super initWithCoder:coder])) {\n    [self _initialize];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [self _setSelectedNode:nil display:NO scroll:NO notify:NO];\n\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidResignKeyNotification object:nil];\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];\n\n  [_graph release];\n  [_dateFormatter release];\n\n  [super dealloc];\n}\n\n#pragma mark - Subclassing\n\n- (BOOL)acceptsFirstResponder {\n  return YES;\n}\n\n- (BOOL)becomeFirstResponder {\n  if (_selectedNode) {\n    NSPoint point = [self positionForNode:_selectedNode];\n    [self setNeedsDisplayInRect:SELECTED_NODE_BOUNDS(point.x, point.y)];\n  }\n  return YES;\n}\n\n- (BOOL)resignFirstResponder {\n  if (_selectedNode) {\n    NSPoint point = [self positionForNode:_selectedNode];\n    [self setNeedsDisplayInRect:SELECTED_NODE_BOUNDS(point.x, point.y)];\n  }\n  return YES;\n}\n\n- (void)_windowKeyDidChange:(NSNotification*)notification {\n  if (_selectedNode) {\n    NSPoint point = [self positionForNode:_selectedNode];\n    [self setNeedsDisplayInRect:SELECTED_NODE_BOUNDS(point.x, point.y)];\n  }\n}\n\n- (void)viewDidMoveToWindow {\n  [super viewDidMoveToWindow];\n\n  if (self.window) {\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_windowKeyDidChange:) name:NSWindowDidBecomeKeyNotification object:self.window];\n    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_windowKeyDidChange:) name:NSWindowDidResignKeyNotification object:self.window];\n  } else {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidResignKeyNotification object:nil];\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];\n  }\n}\n\n- (void)resizeWithOldSuperviewSize:(NSSize)oldSize {\n  NSRect bounds = self.superview.bounds;\n  if (_graph) {\n    self.frame = NSMakeRect(0, 0, MAX(_minSize.width, bounds.size.width), MAX(_minSize.height, bounds.size.height));\n  } else {\n    self.frame = NSMakeRect(0, 0, bounds.size.width, bounds.size.height);\n  }\n}\n\n#pragma mark - Actions\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  if (item.action == @selector(copy:)) {\n    return _selectedNode ? YES : NO;\n  }\n\n  return NO;\n}\n\n- (void)copy:(id)sender {\n  [[NSPasteboard generalPasteboard] declareTypes:@[ NSPasteboardTypeString ] owner:nil];\n  [[NSPasteboard generalPasteboard] setString:_selectedNode.commit.SHA1 forType:NSPasteboardTypeString];\n}\n\n#pragma mark - Properties\n\n- (void)_updateView {\n  _minSize = NSMakeSize(CONVERT_X(_graph.size.width + 1) + kSelectedLabelMaxWidth, CONVERT_Y(_graph.size.height + 1) + kTitleSpacing);\n  [self resizeWithOldSuperviewSize:NSZeroSize];\n  [self setNeedsDisplay:YES];\n}\n\n- (void)setGraph:(GIGraph*)graph {\n  if (graph != _graph) {\n    _selectedNode = nil;\n    [_graph autorelease];\n    _graph = [graph retain];\n\n    [self _updateView];\n\n    [self _setSelectedNode:nil display:NO scroll:NO notify:YES];\n  }\n}\n\n- (void)setShowsTagLabels:(BOOL)flag {\n  _showsTagLabels = flag;\n\n  [self setNeedsDisplay:YES];\n}\n\n- (void)setShowsBranchLabels:(BOOL)flag {\n  _showsBranchLabels = flag;\n\n  [self setNeedsDisplay:YES];\n}\n\n#pragma mark - Utilities\n\n- (GILayer*)_findLayerAtPosition:(CGFloat)position closest:(BOOL)closest {\n  NSArray* layers = _graph.layers;\n  if (layers.count) {\n    CGFloat offset = _graph.size.height;\n\n    GILayer* firstLayer = layers.firstObject;\n    if (position > CONVERT_Y(offset - firstLayer.y) + kSpacingY / 2) {\n      return closest ? firstLayer : nil;\n    }\n\n    GILayer* lastLayer = layers.lastObject;\n    if (position < CONVERT_Y(offset - lastLayer.y) - kSpacingY / 2) {\n      return closest ? lastLayer : nil;\n    }\n\n    NSRange range = NSMakeRange(0, layers.count);\n    while (range.length) {\n      NSUInteger index = range.location + range.length / 2;\n      GILayer* layer = layers[index];\n      CGFloat y = CONVERT_Y(offset - layer.y);\n      if (position > y + kSpacingY / 2) {\n        range = NSMakeRange(range.location, index - range.location);\n      } else if (position < y - kSpacingY / 2) {\n        if (range.length == 1) {\n          break;\n        }\n        range = NSMakeRange(index, range.location + range.length - index);\n      } else {\n        return layer;\n      }\n    }\n  }\n  return nil;\n}\n\n- (GILayer*)findLayerAtPosition:(CGFloat)position {\n  return [self _findLayerAtPosition:position closest:NO];\n}\n\n- (CGFloat)positionForLayer:(GILayer*)layer {\n  return CONVERT_Y(_graph.size.height - layer.y);\n}\n\n- (GINode*)_findNodeAtPosition:(NSPoint)position closest:(BOOL)closest {\n  GILayer* layer = [self _findLayerAtPosition:position.y closest:closest];\n  if (layer) {\n    NSArray* nodes = layer.nodes;\n\n    GINode* firstNode = nodes.firstObject;\n    if (position.x < CONVERT_X(firstNode.x) - kSpacingX / 2) {\n      return closest ? firstNode : nil;\n    }\n\n    GINode* lastNode = nodes.lastObject;\n    if (position.x > CONVERT_X(lastNode.x) + kSpacingX / 2) {\n      return closest ? lastNode : nil;\n    }\n\n    for (GINode* node in nodes) {\n      CGFloat x = CONVERT_X(node.x);\n      if ((position.x >= x - kSpacingX / 2) && (position.x <= x + kSpacingX / 2)) {\n        return node;\n      }\n    }\n  }\n  return nil;\n}\n\n- (GINode*)findNodeAtPosition:(NSPoint)position {\n  return [self _findNodeAtPosition:position closest:NO];\n}\n\n- (NSPoint)positionForNode:(GINode*)node {\n  CGFloat x = CONVERT_X(node.x);\n  CGFloat y = CONVERT_Y(_graph.size.height - node.layer.y);\n  return CGPointMake(x, y);\n}\n\n- (void)showContextualMenuForSelectedNode {\n  if (_selectedNode) {\n    [self _showContextualMenuForNode:_selectedNode];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n#pragma mark - Selection\n\n- (void)setSelectedCommit:(GCHistoryCommit*)commit {\n  [self setSelectedNode:(commit ? [_graph nodeForCommit:commit] : nil)];\n}\n\n- (GCHistoryCommit*)selectedCommit {\n  return _selectedNode.commit;\n}\n\n- (void)setSelectedNode:(GINode*)node {\n  [self _setSelectedNode:node display:YES scroll:NO notify:YES];\n}\n\n// We need to retain the underlying commit for later as GINode doesn't retain its commit\n- (void)_setSelectedNode:(GINode*)node display:(BOOL)display scroll:(BOOL)scroll notify:(BOOL)notify {\n  XLOG_DEBUG_CHECK(!node.dummy);\n  if (display && _lastSelectedNode) {\n    NSPoint point = [self positionForNode:_lastSelectedNode];\n    [self setNeedsDisplayInRect:SELECTED_NODE_BOUNDS(point.x, point.y)];\n  }\n  _lastSelectedNode = nil;\n  if (node != _selectedNode) {\n    if (display && _selectedNode) {\n      NSPoint point = [self positionForNode:_selectedNode];\n      [self setNeedsDisplayInRect:SELECTED_NODE_BOUNDS(point.x, point.y)];\n    }\n    _selectedNode = node;\n    if (display && _selectedNode) {\n      NSPoint point = [self positionForNode:_selectedNode];\n      [self setNeedsDisplayInRect:SELECTED_NODE_BOUNDS(point.x, point.y)];\n    }\n#if __DEBUG_MAIN_LINE__ || __DEBUG_DESCENDANTS__ || __DEBUG_ANCESTORS__\n    [self setNeedsDisplay:YES];\n#endif\n    if (scroll) {\n      XLOG_DEBUG_CHECK(_selectedNode);\n      [self scrollToSelection];\n    }\n    if (notify) {\n      [_delegate graphViewDidChangeSelection:self];\n    }\n  }\n}\n\n- (void)_selectParentNode {\n  NSArray* nodes = _selectedNode.primaryLine.nodes;\n  NSUInteger index = [nodes indexOfObject:_selectedNode];\n  while (index < nodes.count - 1) {\n    GINode* node = nodes[++index];\n    if (!node.dummy) {\n      [self _setSelectedNode:node display:YES scroll:YES notify:YES];\n      break;\n    }\n  }\n}\n\n- (void)_selectChildNode {\n  NSArray* nodes = _selectedNode.primaryLine.nodes;\n  NSUInteger index = [nodes indexOfObject:_selectedNode];\n  while (index > 0) {\n    GINode* node = nodes[--index];\n    if (!node.dummy) {\n      [self _setSelectedNode:node display:YES scroll:YES notify:YES];\n      break;\n    }\n  }\n}\n\n- (void)_selectSideNodeAtPosition:(NSPoint)point {\n  GILayer* layer = [self findLayerAtPosition:point.y];\n  if (layer == nil) {\n    return;\n  }\n  NSUInteger index = [layer.nodes indexOfObjectPassingTest:^BOOL(GINode* _Nonnull obj, NSUInteger idx, BOOL* _Nonnull stop) {\n    return obj != _selectedNode && !obj.dummy;\n  }];\n  if (index != NSNotFound) {\n    [self _setSelectedNode:layer.nodes[index] display:YES scroll:YES notify:YES];\n  }\n}\n\n- (void)_selectUncleNode {\n  NSPoint position = [self positionForNode:_selectedNode];\n  NSPoint targetPosition = NSMakePoint(position.x + kSpacingX, position.y - kSpacingY);\n  [self _selectSideNodeAtPosition:targetPosition];\n}\n\n- (void)_selectNephewNode {\n  NSPoint position = [self positionForNode:_selectedNode];\n  NSPoint targetPosition = NSMakePoint(position.x + kSpacingX, position.y + kSpacingY);\n  [self _selectSideNodeAtPosition:targetPosition];\n}\n\n- (void)_selectPreviousSiblingNode {\n  NSArray* nodes = _selectedNode.layer.nodes;\n  NSInteger index = [nodes indexOfObject:_selectedNode];\n  while (index > 0) {\n    GINode* node = nodes[--index];\n    if (!node.dummy) {\n      [self _setSelectedNode:node display:YES scroll:YES notify:YES];\n      break;\n    }\n  }\n}\n\n- (void)_selectNextSiblingNode {\n  NSArray* nodes = _selectedNode.layer.nodes;\n  NSInteger index = [nodes indexOfObject:_selectedNode];\n  while (index < (NSInteger)nodes.count - 1) {\n    GINode* node = nodes[++index];\n    if (!node.dummy) {\n      [self _setSelectedNode:node display:YES scroll:YES notify:YES];\n      break;\n    }\n  }\n}\n\n- (void)_selectDefaultNode {\n  GCHistoryCommit* headCommit = _graph.history.HEADCommit;\n  [self _setSelectedNode:(headCommit ? [_graph nodeForCommit:headCommit] : nil) display:YES scroll:YES notify:YES];\n}\n\n- (void)_showContextualMenuForNode:(GINode*)node {\n  [self _setSelectedNode:node display:YES scroll:NO notify:YES];\n  NSMenu* menu = [_delegate graphView:self willShowContextualMenuForNode:node];\n  if (menu) {\n    NSPoint point = [self positionForNode:node];\n    [menu popUpMenuPositioningItem:nil atLocation:NSMakePoint(point.x + kContextualMenuOffsetX, point.y + kContextualMenuOffsetY) inView:self];\n  }\n}\n\n#pragma mark - Events\n\n- (void)mouseDown:(NSEvent*)event {\n  GINode* node = [self findNodeAtPosition:[self convertPoint:event.locationInWindow fromView:nil]];\n  if (event.clickCount > 1) {\n    if (node) {\n      if (node.layer.index == 0) {\n        node = [_graph nodeForCommit:node.commit];  // Convert virtual node from top layer to real one\n        XLOG_DEBUG_CHECK(node);\n      }\n      [_delegate graphView:self didDoubleClickOnNode:node];\n    }\n  } else if (event.modifierFlags & NSEventModifierFlagControl) {\n    if (node && !node.dummy) {\n      [self _showContextualMenuForNode:node];\n    }\n  } else {\n    BOOL scroll = NO;\n    if (node.dummy) {\n      if (node.layer.index == 0) {\n        node = [_graph nodeForCommit:node.commit];  // Convert virtual node from top layer to real one\n        XLOG_DEBUG_CHECK(node);\n        scroll = YES;\n      } else {\n        node = nil;\n      }\n    }\n\n    GINode* selectedNode = _selectedNode;\n    GINode* lastSelectedNode = _lastSelectedNode;\n    [self _setSelectedNode:node display:YES scroll:NO notify:YES];\n    if (event.modifierFlags & NSEventModifierFlagCommand) {\n      if (lastSelectedNode == nil) {\n        _lastSelectedNode = selectedNode;\n      } else {\n        _lastSelectedNode = lastSelectedNode;\n      }\n    }\n\n    if (scroll) {\n      [self scrollToSelection];\n    }\n  }\n}\n\n- (void)rightMouseDown:(NSEvent*)event {\n  GINode* node = [self findNodeAtPosition:[self convertPoint:event.locationInWindow fromView:nil]];\n  if (node && !node.dummy) {\n    [self _showContextualMenuForNode:node];\n  }\n}\n\n- (void)keyDown:(NSEvent*)event {\n  switch (event.keyCode) {\n    case kGIKeyCode_Tab:\n      if (event.modifierFlags & NSEventModifierFlagShift) {\n        [self.window selectPreviousKeyView:nil];\n      } else {\n        [self.window selectNextKeyView:nil];\n      }\n      return;\n\n    case kGIKeyCode_Esc:\n      [self _setSelectedNode:nil display:YES scroll:NO notify:YES];\n      return;\n\n    case kGIKeyCode_Left:\n      if (event.modifierFlags & NSEventModifierFlagCommand) {\n        [self _scrollToLeft];\n      } else if (_selectedNode) {\n        [self _selectPreviousSiblingNode];\n      } else {\n        [self _selectDefaultNode];\n      }\n      return;\n\n    case kGIKeyCode_Right:\n      if (event.modifierFlags & NSEventModifierFlagCommand) {\n        [self _scrollToRight];\n      } else if (_selectedNode) {\n        [self _selectNextSiblingNode];\n      } else {\n        [self _selectDefaultNode];\n      }\n      return;\n\n    case kGIKeyCode_Down:\n      if (event.modifierFlags & NSEventModifierFlagOption) {\n        [self _selectUncleNode];\n      } else if (event.modifierFlags & NSEventModifierFlagCommand) {\n        [self _scrollToBottom];\n      } else if (_selectedNode) {\n        [self _selectParentNode];\n      } else {\n        [self _selectDefaultNode];\n      }\n      return;\n\n    case kGIKeyCode_Up:\n      if (event.modifierFlags & NSEventModifierFlagOption) {\n        [self _selectNephewNode];\n      } else if (event.modifierFlags & NSEventModifierFlagCommand) {\n        [self _scrollToTop];\n      } else if (_selectedNode) {\n        [self _selectChildNode];\n      } else {\n        [self _selectDefaultNode];\n      }\n      return;\n\n    case kGIKeyCode_Home:\n      [self _scrollToTop];\n      return;\n\n    case kGIKeyCode_End:\n      [self _scrollToBottom];\n      return;\n  }\n  [self.nextResponder tryToPerform:@selector(keyDown:) with:event];\n}\n\n#pragma mark - Drawing\n\nstatic void _DrawNode(GINode* node, CGContextRef context, CGFloat x, CGFloat y) {\n  BOOL onBranchMainLine = node.primaryLine.branchMainLine;\n  NSUInteger childrenCount = node.commit.children.count;\n  NSUInteger parentCount = node.commit.parents.count;\n  if ((childrenCount > 1) || (parentCount > 1)) {\n    CGColorRef color = onBranchMainLine ? node.primaryLine.color.CGColor : [[NSColor darkGrayColor] CGColor];\n    CGFloat diameter = onBranchMainLine ? kMainLineNodeLargeDiameter : kSubNodeDiameter;\n    diameter -= 1;  // TODO: Why is this needed?\n    CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n    CGContextFillEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n    CGContextSetStrokeColorWithColor(context, color);\n    CGContextStrokeEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n  } else if (onBranchMainLine) {\n    CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n    CGContextFillEllipseInRect(context, CGRectMake(x - kMainLineNodeSmallDiameter / 2, y - kMainLineNodeSmallDiameter / 2, kMainLineNodeSmallDiameter, kMainLineNodeSmallDiameter));\n  } else {\n    CGContextSetFillColorWithColor(context, node.primaryLine.color.CGColor);\n    CGContextFillEllipseInRect(context, CGRectMake(x - kSubNodeDiameter / 2, y - kSubNodeDiameter / 2, kSubNodeDiameter, kSubNodeDiameter));\n  }\n}\n\nstatic void _DrawTipNode(GINode* node, CGContextRef context, CGFloat x, CGFloat y) {\n  BOOL onBranchMainLine = node.primaryLine.branchMainLine;\n  XLOG_DEBUG_CHECK(onBranchMainLine);\n  CGColorRef color = onBranchMainLine ? node.primaryLine.color.CGColor : [[NSColor darkGrayColor] CGColor];\n  CGFloat diameter = onBranchMainLine ? kMainLineNodeLargeDiameter : kSubNodeDiameter;\n  if (node.dummy) {\n    diameter -= 4;\n    CGContextSetFillColorWithColor(context, color);\n    CGContextFillEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n    CGContextFillPath(context);\n  } else {\n    diameter -= 1;  // TODO: Why is this needed?\n    CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n    CGContextFillEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n    CGContextSetStrokeColorWithColor(context, color);\n    CGContextStrokeEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n  }\n}\n\nstatic void _DrawRootNode(GINode* node, CGContextRef context, CGFloat x, CGFloat y) {\n  BOOL onBranchMainLine = node.primaryLine.branchMainLine;\n  CGColorRef color = onBranchMainLine ? node.primaryLine.color.CGColor : [[NSColor darkGrayColor] CGColor];\n  CGFloat diameter = onBranchMainLine ? kMainLineNodeLargeDiameter : kSubNodeDiameter;\n  diameter -= 1;  // TODO: Why is this needed?\n  CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n  CGContextFillEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n  CGContextSetStrokeColorWithColor(context, color);\n  CGContextStrokeEllipseInRect(context, CGRectMake(x - diameter / 2, y - diameter / 2, diameter, diameter));\n}\n\n// Return square distance from P1 to (P0, P2) line\nstatic inline CGFloat _SquareDistanceFromPointToLine(CGFloat x0, CGFloat y0, CGFloat x1, CGFloat y1, CGFloat x2, CGFloat y2) {\n  return SQUARE(x1 * (y2 - y0) - y1 * (x2 - x0) + x2 * y0 - y2 * x0) / (SQUARE(y2 - y0) + SQUARE(x2 - x0));\n}\n\n- (void)drawLine:(GILine*)line inContext:(CGContextRef)context clampedToRect:(CGRect)dirtyRect {\n  CGFloat offset = _graph.size.height;\n  NSArray* nodes = line.nodes;\n  NSUInteger count = nodes.count;\n  CGFloat minY = CGRectGetMinY(dirtyRect);\n  CGFloat maxY = CGRectGetMaxY(dirtyRect);\n  BOOL recompute = YES;\n\n  // Generate list of node coordinates aka points\n  size_t pointCount;\n  CGPoint* pointList;\n  NSData* data = objc_getAssociatedObject(line, _associatedObjectDataKey);\n  if (data) {\n    XLOG_DEBUG_CHECK(data.length % sizeof(CGPoint) == 0);\n    pointCount = data.length / sizeof(CGPoint);\n    pointList = (CGPoint*)data.bytes;\n    recompute = NO;\n  } else {\n    pointCount = 0;\n    pointList = malloc(count * sizeof(CGPoint));\n  }\n  if (recompute) {\n    if (count > 2) {\n      GINode* node = nodes[0];\n      pointList[pointCount].x = CONVERT_X(node.x);\n      pointList[pointCount].y = CONVERT_Y(offset - node.layer.y);\n      ++pointCount;\n      for (NSUInteger i = 1; i < count; ++i) {\n        node = nodes[i];\n        CGFloat x = CONVERT_X(node.x);\n        CGFloat y = CONVERT_Y(offset - node.layer.y);\n\n        pointList[pointCount].x = x;\n        pointList[pointCount].y = y;\n        ++pointCount;\n      }\n      XLOG_DEBUG_CHECK(pointCount == count);\n    } else if (count == 2) {\n      GINode* node0 = nodes[0];\n      pointList[pointCount].x = CONVERT_X(node0.x);\n      pointList[pointCount].y = CONVERT_Y(offset - node0.layer.y);\n      ++pointCount;\n      GINode* node1 = nodes[1];\n      pointList[pointCount].x = CONVERT_X(node1.x);\n      pointList[pointCount].y = CONVERT_Y(offset - node1.layer.y);\n      ++pointCount;\n      XLOG_DEBUG_CHECK(pointCount == count);\n    } else {\n      XLOG_DEBUG_CHECK(count == 1);\n      XLOG_DEBUG_CHECK(pointCount == 0);\n    }\n  }\n  if (pointCount == 0) {\n    free(pointList);\n    return;\n  }\n\n  // Shift corner point positions\n  if (recompute) {\n    CGPoint* newPointList = malloc(pointCount * sizeof(CGPoint));\n    size_t newPointCount = 0;\n    newPointList[newPointCount].x = pointList[0].x;\n    newPointList[newPointCount].y = pointList[0].y;\n    ++newPointCount;\n    CGFloat x0 = 0.0;\n    CGFloat y0 = 0.0;\n    CGFloat x1 = 0.0;\n    CGFloat y1 = 0.0;\n    for (size_t i = 1; i < pointCount - 1; ++i) {\n#if __SHIFT_CORNERS__\n      CGFloat previousX = pointList[i - 1].x;\n#endif\n      CGFloat x2 = pointList[i].x;\n      CGFloat y2 = pointList[i].y;\n#if __SHIFT_CORNERS__\n      CGFloat nextX = pointList[i + 1].x;\n#endif\n\n#if __SHIFT_CORNERS__\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wfloat-equal\"\n      if ((x2 > previousX) && (nextX < x2)) {\n        x2 += 2;\n      } else if ((x2 > previousX) && (nextX == x2)) {\n        y2 += 4;\n      } else if ((x2 == previousX) && (nextX != x2)) {\n        y2 -= 4;\n      }\n#pragma clang diagnostic pop\n#endif\n\n      if (newPointCount >= 2) {\n        if (_SquareDistanceFromPointToLine(x0, y0, x2, y2, x1, y1) < kEpsilon * kEpsilon) {  // If P2 is very close to the line from P0 to P1, then they are aligned and we can remove P1\n          --newPointCount;\n          x1 = x0;\n          y1 = y0;\n        }\n      }\n\n      newPointList[newPointCount].x = x2;\n      newPointList[newPointCount].y = y2;\n      ++newPointCount;\n\n      x0 = x1;\n      y0 = y1;\n      x1 = x2;\n      y1 = y2;\n    }\n    newPointList[newPointCount].x = pointList[pointCount - 1].x;\n    newPointList[newPointCount].y = pointList[pointCount - 1].y;\n    ++newPointCount;\n    XLOG_DEBUG_CHECK(newPointCount <= pointCount);\n    free(pointList);\n    pointList = newPointList;\n    pointCount = newPointCount;\n  }\n\n  // Add intermediary points to line for corners\n  if (recompute) {\n    size_t newMaxPoints = 2 * (pointCount - 1) + pointCount;\n    size_t newPointCount = 0;\n    CGPoint* newPointList = malloc(newMaxPoints * sizeof(CGPoint));\n    CGFloat x0 = pointList[0].x;\n    CGFloat y0 = pointList[0].y;\n    newPointList[newPointCount].x = x0;\n    newPointList[newPointCount].y = y0;\n    ++newPointCount;\n    for (size_t i = 1; i < pointCount; ++i) {\n      CGFloat x1 = pointList[i].x;\n      CGFloat y1 = pointList[i].y;\n\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wfloat-equal\"\n      CGFloat D = kLineCornerSize;\n\n      XLOG_DEBUG_CHECK(y1 != y0);\n      CGFloat X0;\n      CGFloat Y0;\n      CGFloat X1;\n      CGFloat Y1;\n      if (x1 == x0) {\n        X0 = x0;\n        Y0 = y0 - D;\n\n        X1 = x1;\n        Y1 = y1 + D;\n      } else {\n        CGFloat A = (y0 - y1) / (x0 - x1);\n        CGFloat B = y1 - A * x1;\n\n        CGFloat K0 = sqrt(A * A * D * D - A * A * x0 * x0 - 2 * A * B * x0 + 2 * A * x0 * y0 - B * B + 2 * B * y0 + D * D - y0 * y0);\n        X0 = (K0 - A * B + A * y0 + x0) / (A * A + 1);\n        Y0 = A * X0 + B;\n        if (Y0 >= y0) {\n          X0 = (-K0 - A * B + A * y0 + x0) / (A * A + 1);\n          Y0 = A * X0 + B;\n          XLOG_DEBUG_CHECK(Y0 < y0);\n        }\n\n        CGFloat K1 = sqrt(A * A * D * D - A * A * x1 * x1 - 2 * A * B * x1 + 2 * A * x1 * y1 - B * B + 2 * B * y1 + D * D - y1 * y1);\n        X1 = (K1 - A * B + A * y1 + x1) / (A * A + 1);\n        Y1 = A * X1 + B;\n        if (Y1 <= y1) {\n          X1 = (-K1 - A * B + A * y1 + x1) / (A * A + 1);\n          Y1 = A * X1 + B;\n          XLOG_DEBUG_CHECK(Y1 > y1);\n        }\n      }\n      XLOG_DEBUG_CHECK(Y1 < Y0);\n#pragma clang diagnostic pop\n\n      newPointList[newPointCount].x = X0;\n      newPointList[newPointCount].y = Y0;\n      ++newPointCount;\n      newPointList[newPointCount].x = X1;\n      newPointList[newPointCount].y = Y1;\n      ++newPointCount;\n      newPointList[newPointCount].x = x1;\n      newPointList[newPointCount].y = y1;\n      ++newPointCount;\n\n      x0 = x1;\n      y0 = y1;\n    }\n    XLOG_DEBUG_CHECK(newPointCount == newMaxPoints);\n    free(pointList);\n    pointList = newPointList;\n    pointCount = newPointCount;\n  }\n\n  // Draw line\n  CGContextBeginPath(context);\n  BOOL visible = NO;\n  size_t i = 0;\n  while (1) {\n    // Skip points until entering visible area\n    if (!visible) {\n      CGFloat y = pointList[i + 3].y;\n      if (y > maxY) {\n        i += 3;\n        if (i == pointCount - 1) {\n          break;  // TODO: Why is this happening?\n        }\n        continue;\n      }\n    }\n\n    CGFloat x0 = pointList[i].x;\n    CGFloat y0 = pointList[i].y;\n    CGFloat x1 = pointList[i + 1].x;\n    CGFloat y1 = pointList[i + 1].y;\n\n    // Draw line start\n    if (!visible) {\n      CGContextMoveToPoint(context, x0, y0);\n      CGContextAddLineToPoint(context, x1, y1);\n\n      x0 = x1;\n      y0 = y1;\n      x1 = pointList[i + 2].x;\n      y1 = pointList[i + 2].y;\n      i += 1;\n    }\n\n    // Draw line segment\n    CGContextMoveToPoint(context, x0, y0);\n    CGContextAddLineToPoint(context, x1, y1);\n\n    // Check if exiting visible area\n    if (y0 < minY) {\n      i = pointCount - 3;\n    }\n\n    // Draw line end\n    if (i == pointCount - 3) {\n      x0 = x1;\n      y0 = y1;\n      x1 = pointList[i + 2].x;\n      y1 = pointList[i + 2].y;\n      CGContextMoveToPoint(context, x0, y0);\n      CGContextAddLineToPoint(context, x1, y1);\n\n      visible = YES;\n      break;  // We're done\n    }\n\n    // Draw line corner\n    x0 = x1;\n    y0 = y1;\n    x1 = pointList[i + 2].x;\n    y1 = pointList[i + 2].y;\n    CGFloat x2 = pointList[i + 3].x;\n    CGFloat y2 = pointList[i + 3].y;\n    CGContextMoveToPoint(context, x0, y0);\n    CGContextAddQuadCurveToPoint(context, x1, y1, x2, y2);\n\n    i += 3;\n    visible = YES;\n  }\n\n  BOOL shouldDraw = visible && [self needsToDrawRect:CGRectInset(CGContextGetPathBoundingBox(context), -kMainLineWidth, -kMainLineWidth)];\n  if (shouldDraw) {\n    XLOG_DEBUG_CHECK(!line.virtual || [[(GINode*)line.nodes[0] layer] index] == 0);\n    CGContextSaveGState(context);\n    CGContextSetLineWidth(context, line.branchMainLine && !line.virtual ? kMainLineWidth : kSubLineWidth);\n    CGContextSetLineJoin(context, kCGLineJoinRound);\n    if (line.virtual) {\n      const CGFloat pattern[] = {4, 2};\n      CGContextSetLineDash(context, 0, pattern, 2);\n    }\n    CGContextSetStrokeColorWithColor(context, line.color.CGColor);\n    CGContextStrokePath(context);\n    CGContextRestoreGState(context);\n  }\n\n  if (recompute) {\n    data = [[NSData alloc] initWithBytesNoCopy:pointList length:(pointCount * sizeof(CGPoint)) freeWhenDone:YES];\n    objc_setAssociatedObject(line, _associatedObjectDataKey, data, OBJC_ASSOCIATION_RETAIN_NONATOMIC);\n    [data release];\n  }\n}\n\nstatic void _DrawBranchTitle(CGContextRef context, CGFloat x, CGFloat y, CGPoint* previousBranchCorner, GIBranch* branch, NSColor* color, GIGraphOptions options) {\n  // Cache common format for multiline string\n  static NSMutableDictionary* multilineTitleAttributes = nil;\n  if (multilineTitleAttributes == nil) {\n    multilineTitleAttributes = [[NSMutableDictionary alloc] init];\n\n    CTFontRef titleFont = CTFontCreateUIFontForLanguage(kCTFontUIFontSystem, 13.0, CFSTR(\"en-US\"));\n    multilineTitleAttributes[NSFontAttributeName] = (id)titleFont;\n    CFRelease(titleFont);\n\n    NSMutableParagraphStyle* style = [[NSMutableParagraphStyle alloc] init];\n    style.lineHeightMultiple = 0.85;\n    multilineTitleAttributes[NSParagraphStyleAttributeName] = style;\n    [style release];\n  }\n  multilineTitleAttributes[NSForegroundColorAttributeName] = [color shadowWithLevel:0.2];\n  // Cache bold font and calculate darker color for building multiline string\n  static CTFontRef boldFont = NULL;\n  if (boldFont == NULL) {\n    boldFont = CTFontCreateUIFontForLanguage(kCTFontUIFontEmphasizedSystem, 13.0, CFSTR(\"en-US\"));\n  }\n  NSColor* darkColor = NSColor.labelColor;\n\n  // Start new attributed string for the branch title\n  NSMutableAttributedString* multilineTitle = [[NSMutableAttributedString alloc] initWithString:@\"\"];\n  [multilineTitle beginEditing];\n\n  for (GCHistoryLocalBranch* localBranch in branch.localBranches) {\n    NSString* branchName = localBranch.name;\n    NSRange branchNameRange = NSMakeRange(multilineTitle.length, branchName.length);\n    _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, [NSString stringWithFormat:@\"%@\\n\", branchName], multilineTitleAttributes);\n    [multilineTitle addAttribute:NSFontAttributeName value:(id)boldFont range:branchNameRange];\n    [multilineTitle addAttribute:NSForegroundColorAttributeName value:darkColor range:branchNameRange];\n\n    GCBranch* upstream = localBranch.upstream;\n    if (upstream) {\n      _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, [NSString stringWithFormat:@\"⬅ %@\\n\", upstream.name], multilineTitleAttributes);\n\n      NSString* upstreamName = [upstream isKindOfClass:GCRemoteBranch.class] ? [(GCRemoteBranch*)upstream branchName] : upstream.name;\n      NSRange upstreamNameRange = NSMakeRange(multilineTitle.length - upstreamName.length - 1, upstreamName.length);  // -1 to exclude '\\n'\n      [multilineTitle addAttribute:NSForegroundColorAttributeName value:darkColor range:upstreamNameRange];\n    }\n\n    _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, @\"\\n\", nil);\n  }\n\n  for (GCHistoryRemoteBranch* remoteBranch in branch.remoteBranches) {\n    NSString* branchName = remoteBranch.branchName;\n    _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, [NSString stringWithFormat:@\"%@\\n\", remoteBranch.name], multilineTitleAttributes);\n    NSRange branchNameRange = NSMakeRange(multilineTitle.length - branchName.length - 1, branchName.length);  // -1 to exclude '\\n'\n    [multilineTitle addAttribute:NSFontAttributeName value:(id)boldFont range:branchNameRange];\n    [multilineTitle addAttribute:NSForegroundColorAttributeName value:darkColor range:branchNameRange];\n  }\n\n  if (branch.remoteBranches.count) {\n    _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, @\"\\n\", nil);\n  }\n\n  for (GCHistoryTag* tag in branch.tags) {\n    NSString* tagName = tag.name;\n    _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, [NSString stringWithFormat:@\"[%@]\\n\", tagName], multilineTitleAttributes);\n    NSRange tagNameRange = NSMakeRange(multilineTitle.length - tagName.length - 2, tagName.length);  // -2 to exclude char ']' plus '\\n'\n    [multilineTitle addAttribute:NSFontAttributeName value:(id)boldFont range:tagNameRange];\n    [multilineTitle addAttribute:NSForegroundColorAttributeName value:darkColor range:tagNameRange];\n  }\n\n  if (branch.tags.count) {\n    _AppendAttributedString((CFMutableAttributedStringRef)multilineTitle, @\"\\n\", nil);\n  }\n\n  [multilineTitle endEditing];\n  if (multilineTitle.length == 0) {\n    [multilineTitle release];\n    return;  // This should only happen if we have a detached HEAD with no other references pointing to the commit\n  }\n\n  // Prepare CoreText string from the rich attributed title\n  CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString((CFAttributedStringRef)multilineTitle);\n  CGSize size = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, CFRangeMake(0, multilineTitle.length), NULL, CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX), NULL);\n  CGRect textRect = CGRectMake(kTitleOffsetX, kTitleOffsetY, ceil(size.width), ceil(size.height));\n  CGPathRef path = CGPathCreateWithRect(textRect, NULL);\n  CTFrameRef frame = CTFramesetterCreateFrame(framesetter, CFRangeMake(0, multilineTitle.length), path, NULL);\n  CFAttributedStringRef ellipsis = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"\\u2026\"), (CFDictionaryRef)multilineTitleAttributes);\n  CTLineRef ellipsisToken = CTLineCreateWithAttributedString(ellipsis);\n\n  // Rotate context to draw labels with angle\n  CGContextSaveGState(context);\n  CGContextTranslateCTM(context, x, y);\n  CGFloat radians = 45.0 / 180.0 * M_PI;\n  CGContextRotateCTM(context, radians);\n\n  // Make a transform copy to calculate rotated corner coordinates\n  CGAffineTransform transform = CGAffineTransformRotate(CGAffineTransformTranslate(CGAffineTransformIdentity, x, y), radians);\n\n  // Draw text and separators\n  NSColor* separatorColor = [color colorWithAlphaComponent:0.6];\n  CGFloat lastLineWidth = 0.0;\n  CFArrayRef lines = CTFrameGetLines(frame);\n  for (CFIndex i = 0, count = CFArrayGetCount(lines); i < count; ++i) {\n    CTLineRef line = CFArrayGetValueAtIndex(lines, i);\n    CGPoint origin;\n    CTFrameGetLineOrigins(frame, CFRangeMake(i, 1), &origin);\n\n    origin.x += textRect.origin.x + origin.y;\n    origin.y += textRect.origin.y;\n\n    CGFloat ascent;\n    CGFloat descent;\n    CGFloat lineWidth = CTLineGetTypographicBounds(line, &ascent, &descent, NULL);\n\n    // Draw separator in case of new line which is guaranteed by the building algorithm\n    CFRange stringRange = CTLineGetStringRange(line);\n    if (stringRange.length == 1) {\n      CGRect underlineRect = CGRectMake(floor(origin.x - 1.0), floor(origin.y - 1.0), ceil(lastLineWidth + ascent - descent), ceil(ascent - descent - 1.0));\n      CGContextMoveToPoint(context, underlineRect.origin.x + 0.5, underlineRect.origin.y);\n      CGContextAddLineToPoint(context, underlineRect.origin.x + underlineRect.size.height + 0.5, underlineRect.origin.y + underlineRect.size.height);\n      CGContextAddLineToPoint(context, underlineRect.origin.x + underlineRect.size.width, underlineRect.origin.y + underlineRect.size.height);\n      CGContextSetStrokeColorWithColor(context, separatorColor.CGColor);\n      CGContextStrokePath(context);\n      continue;\n    }\n\n#if __DEBUG_BOXES__\n    CGRect labelRect = CGRectMake(origin.x, origin.y - descent, lineWidth, ascent + descent);\n    CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 0.333);\n    CGContextFillRect(context, labelRect);\n#endif\n\n    // Max width will be reduced if it crosses titles of the next branch\n    CGFloat maxBranchTitleWidth = kMaxBranchTitleWidth;\n    if (previousBranchCorner) {\n      // Calculate the bottom-right coordinates for current line in rotated context\n      CGPoint currentTitleCorner = CGPointMake(origin.x + lineWidth, origin.y - descent);\n      CGPoint rotatedTitleCorner = CGPointApplyAffineTransform(currentTitleCorner, transform);\n\n      // Calculate angle between bottom-right corner of the current line and top-left corner of the first title in the next branch\n      CGFloat angleInRadians = atan2(rotatedTitleCorner.y - previousBranchCorner->y, rotatedTitleCorner.x - previousBranchCorner->x);\n      if ((angleInRadians < M_PI / 4.0) && (angleInRadians > -M_PI / 2.0)) {\n        // Reduce allowed width to avoid overlapping\n        maxBranchTitleWidth = (previousBranchCorner->x - x - kTitleOffsetX) * sqrt(2.0);\n\n#if __DEBUG_TITLE_CORNERS__\n        // Draw a red point where the tail would be\n        CGRect dotRect = CGRectMake(currentBranchCorner.x - 1.0, currentBranchCorner.y - 1.0, 2.0, 2.0);\n        CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0);\n        CGContextFillRect(context, dotRect);\n#endif\n      }\n    }\n\n    // Draw line with ellipsis in the end if needed\n    CGContextSetTextPosition(context, origin.x, origin.y);\n    if (lineWidth <= maxBranchTitleWidth) {\n      CTLineDraw(line, context);\n    } else {\n      CTLineRef drawLine = CTLineCreateTruncatedLine(line, maxBranchTitleWidth, kCTLineTruncationEnd, ellipsisToken);\n      CTLineDraw(drawLine, context);\n      CFRelease(drawLine);\n    }\n\n    // Remember last line width for the next separator below\n    lastLineWidth = MIN(lineWidth, maxBranchTitleWidth);\n  }\n\n  // Reset context\n  CGContextRestoreGState(context);\n\n  if (previousBranchCorner) {\n#if __DEBUG_TITLE_CORNERS__\n    // Draw previous corner using semi-transparent red dot for debugging needs\n    CGRect dotRect = CGRectMake(previousBranchCorner->x - 1.0, previousBranchCorner->y - 1.0, 2.0, 2.0);\n    CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 0.333);\n    CGContextFillRect(context, dotRect);\n#endif\n\n    // Remember top-left title coordinates to limit drawing area for the left branch\n    previousBranchCorner->x = x - kTitleOffsetX;\n    previousBranchCorner->y = y + (size.height + kTitleOffsetY) * sqrt(2.0);\n  }\n\n  // Clean up\n  [multilineTitle release];\n  CGPathRelease(path);\n  CFRelease(ellipsisToken);\n  CFRelease(ellipsis);\n  CFRelease(frame);\n  CFRelease(framesetter);\n}\n\nstatic void _DrawNodeLabels(CGContextRef context, CGFloat x, CGFloat y, GINode* node, NSDictionary* tagAttributes, NSDictionary* branchAttributes) {\n  GCHistoryCommit* commit = node.commit;\n\n  // Generate text\n  NSMutableString* label = [[NSMutableString alloc] init];\n  NSUInteger separator = NSNotFound;\n  if (tagAttributes) {\n    NSUInteger index = 0;\n    for (GCHistoryTag* tag in commit.tags) {\n      if (index) {\n        [label appendString:@\", \"];\n      }\n      [label appendString:tag.name];\n      if (tag.annotation) {\n        [label appendString:@\"*\"];\n      }\n      ++index;\n    }\n  }\n  if (branchAttributes) {\n    NSUInteger index = 0;\n    for (GCHistoryLocalBranch* branch in commit.localBranches) {\n      if (separator == NSNotFound) {\n        separator = label.length;\n        if (separator) {\n          [label appendString:@\"\\n\"];\n        }\n      }\n      if (index) {\n        [label appendString:@\", \"];\n      }\n      [label appendString:branch.name];\n      ++index;\n    }\n    for (GCHistoryRemoteBranch* branch in commit.remoteBranches) {\n      if (separator == NSNotFound) {\n        separator = label.length;\n        if (separator) {\n          [label appendString:@\"\\n\"];\n        }\n      }\n      if (index) {\n        [label appendString:@\", \"];\n      }\n      [label appendString:branch.name];\n      ++index;\n    }\n  }\n\n  if (label.length) {\n    // Prepare text\n\n    CFMutableAttributedStringRef string = CFAttributedStringCreateMutable(kCFAllocatorDefault, label.length);\n    CFAttributedStringBeginEditing(string);\n    CFAttributedStringReplaceString(string, CFRangeMake(0, 0), (CFStringRef)label);\n    if (separator != NSNotFound) {\n      CFAttributedStringSetAttributes(string, CFRangeMake(0, separator), (CFDictionaryRef)tagAttributes, true);\n      CFAttributedStringSetAttributes(string, CFRangeMake(separator, label.length - separator), (CFDictionaryRef)branchAttributes, true);\n    } else {\n      CFAttributedStringSetAttributes(string, CFRangeMake(0, label.length), (CFDictionaryRef)tagAttributes, true);\n    }\n    CFAttributedStringEndEditing(string);\n\n    CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString(string);\n    CGSize size = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, CFRangeMake(0, CFAttributedStringGetLength(string)), NULL, CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX), NULL);\n    XLOG_DEBUG_CHECK(size.height <= kNodeLabelMaxHeight);\n    CGRect textRect = CGRectMake(kLabelOffsetX, kLabelOffsetY, ceil(size.width), ceil(size.height));\n    CGPathRef path = CGPathCreateWithRect(textRect, NULL);\n    CTFrameRef frame = CTFramesetterCreateFrame(framesetter, CFRangeMake(0, CFAttributedStringGetLength(string)), path, NULL);\n    CFAttributedStringRef tagCharacter = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"\\u2026\"), (CFDictionaryRef)tagAttributes);\n    CTLineRef tagToken = CTLineCreateWithAttributedString(tagCharacter);\n    CFAttributedStringRef branchCharacter = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"\\u2026\"), (CFDictionaryRef)branchAttributes);\n    CTLineRef branchToken = CTLineCreateWithAttributedString(branchCharacter);\n\n    // Prepare context\n\n    CGContextSaveGState(context);\n    CGContextTranslateCTM(context, x, y);\n\n    // Draw label\n\n    CGRect labelRect = CGRectInset(CGRectMake(textRect.origin.x, textRect.origin.y, MIN(textRect.size.width, kNodeLabelMaxWidth), textRect.size.height), -3.5, -2.5);\n    CGContextSetFillColorWithColor(context, [NSColor.textBackgroundColor colorWithAlphaComponent:0.85].CGColor);\n    GICGContextAddRoundedRect(context, labelRect, 4.0);\n    CGContextFillPath(context);\n    CGContextSetStrokeColorWithColor(context, NSColor.secondaryLabelColor.CGColor);\n    GICGContextAddRoundedRect(context, labelRect, 4.0);\n    CGContextStrokePath(context);\n\n    CGContextMoveToPoint(context, 0, 0);\n    CGContextAddLineToPoint(context, labelRect.origin.x + 1, labelRect.origin.y + 1);\n    CGContextStrokePath(context);\n\n    CGContextSetFillColorWithColor(context, NSColor.secondaryLabelColor.CGColor);\n    CGContextFillEllipseInRect(context, CGRectMake(-2, -2, 4, 4));\n\n    // Draw text\n\n    CGContextSetFillColorWithColor(context, NSColor.secondaryLabelColor.CGColor);\n    CFArrayRef lines = CTFrameGetLines(frame);\n    for (CFIndex i = 0, count = CFArrayGetCount(lines); i < count; ++i) {\n      CTLineRef line = CFArrayGetValueAtIndex(lines, i);\n      CGPoint origin;\n      CTFrameGetLineOrigins(frame, CFRangeMake(i, 1), &origin);\n      CGContextSetTextPosition(context, textRect.origin.x + origin.x, textRect.origin.y + origin.y);\n      if (size.width <= kNodeLabelMaxWidth) {\n        CTLineDraw(line, context);\n      } else {\n        CFRange range = CTLineGetStringRange(line);\n        CTLineRef drawLine = CTLineCreateTruncatedLine(line, kNodeLabelMaxWidth, kCTLineTruncationEnd, range.location >= (CFIndex)separator ? branchToken : tagToken);\n        CTLineDraw(drawLine, context);\n        CFRelease(drawLine);\n      }\n    }\n\n    // Reset context\n\n    CGContextRestoreGState(context);\n\n    // Clean up\n\n    CFRelease(branchToken);\n    CFRelease(branchCharacter);\n    CFRelease(tagToken);\n    CFRelease(tagCharacter);\n    CFRelease(frame);\n    CGPathRelease(path);\n    CFRelease(framesetter);\n    CFRelease(string);\n  }\n\n  // Clean up\n  [label release];\n}\n\nstatic void _DrawHead(CGContextRef context, CGFloat x, CGFloat y, BOOL isDetached, CGColorRef color, NSDictionary* attributes) {\n  CGRect rect = CGRectMake(-18, -9, 36, 18);\n\n  // Prepare context\n\n  CGContextSaveGState(context);\n  CGContextTranslateCTM(context, x, y);\n\n  // Draw label\n\n  if (isDetached) {\n    // This looks bad if transparent (e.g. secondary label colour). Looks a bit odd if light in dark mode too, so just use fixed colour for now.\n    CGContextSetRGBFillColor(context, 0.4, 0.4, 0.4, 1.0);\n  } else {\n    CGContextSetFillColorWithColor(context, color);\n  }\n  GICGContextAddRoundedRect(context, rect, 4.0);\n  CGContextFillPath(context);\n\n  if (!isDetached) {\n    // This looks bad if transparent (e.g. secondary label colour). Looks a bit odd if light in dark mode too, so just use fixed colour for now.\n    CGContextSetRGBStrokeColor(context, 0.4, 0.4, 0.4, 1.0);\n    CGContextSetLineWidth(context, 2);\n    GICGContextAddRoundedRect(context, rect, 4.0);\n    CGContextStrokePath(context);\n  }\n\n  // Draw text\n\n  CFAttributedStringRef string = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"HEAD\"), (CFDictionaryRef)attributes);\n  CTLineRef line = CTLineCreateWithAttributedString(string);\n  CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n  CGContextSetTextPosition(context, -15, -4);\n  CTLineDraw(line, context);\n  CFRelease(line);\n  CFRelease(string);\n\n  // Reset context\n\n  CGContextRestoreGState(context);\n}\n\nstatic inline void _AppendAttributedString(CFMutableAttributedStringRef string, NSString* text, NSDictionary* attributes) {\n  CFIndex length = CFAttributedStringGetLength(string);\n  CFAttributedStringReplaceString(string, CFRangeMake(length, 0), (CFStringRef)text);\n  if (attributes) {\n    CFAttributedStringSetAttributes(string, CFRangeMake(length, text.length), (CFDictionaryRef)attributes, true);\n  }\n}\n\nstatic void _DrawSelectedNode(CGContextRef context, CGFloat x, CGFloat y, GINode* node, NSDictionary* attributes1, NSDictionary* attributes2, NSDateFormatter* dateFormatter, BOOL isFirstResponder) {\n  GCHistoryCommit* commit = node.commit;\n\n  // Generate text\n\n  CFMutableAttributedStringRef string = CFAttributedStringCreateMutable(kCFAllocatorDefault, 0);\n  CFAttributedStringBeginEditing(string);\n#if DEBUG\n  _AppendAttributedString(string, [NSString stringWithFormat:@\"{%lu} \", node.layer.index], attributes2);\n#endif\n  _AppendAttributedString(string, [NSString stringWithFormat:@\"%@: \", commit.shortSHA1], attributes2);\n  _AppendAttributedString(string, commit.summary, attributes1);\n  _AppendAttributedString(string, @\"\\nAuthor: \", attributes2);\n  _AppendAttributedString(string, commit.author, attributes1);\n  _AppendAttributedString(string, @\"\\nDate: \", attributes2);\n  _AppendAttributedString(string, [NSString stringWithFormat:@\"%@ (%@)\", [dateFormatter stringFromDate:commit.date], GIFormatDateRelativelyFromNow(commit.date, NO)], attributes1);\n  if (commit.hasReferences) {\n    if (commit.localBranches.count) {\n      _AppendAttributedString(string, @\"\\nLocal Branches: \", attributes2);\n      NSUInteger index = 0;\n      for (GCHistoryTag* branch in commit.localBranches) {\n        if (index > 0) {\n          _AppendAttributedString(string, @\", \", attributes1);\n        }\n        _AppendAttributedString(string, branch.name, attributes1);\n        ++index;\n      }\n    }\n    if (commit.remoteBranches.count) {\n      _AppendAttributedString(string, @\"\\nRemote Branches: \", attributes2);\n      NSUInteger index = 0;\n      for (GCHistoryTag* branch in commit.remoteBranches) {\n        if (index > 0) {\n          _AppendAttributedString(string, @\", \", attributes1);\n        }\n        _AppendAttributedString(string, branch.name, attributes1);\n        ++index;\n      }\n    }\n    if (commit.tags.count) {\n      _AppendAttributedString(string, @\"\\nTags: \", attributes2);\n      NSUInteger index = 0;\n      for (GCHistoryTag* tag in commit.tags) {\n        if (index > 0) {\n          _AppendAttributedString(string, @\", \", attributes1);\n        }\n        _AppendAttributedString(string, tag.name, attributes1);\n        ++index;\n      }\n    }\n  }\n  CFAttributedStringEndEditing(string);\n\n  // Prepare text\n\n  CTFramesetterRef framesetter = CTFramesetterCreateWithAttributedString(string);\n  CGSize size = CTFramesetterSuggestFrameSizeWithConstraints(framesetter, CFRangeMake(0, CFAttributedStringGetLength(string)), NULL, CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX), NULL);\n  XLOG_DEBUG_CHECK(size.height <= kSelectedLabelMaxHeight);\n  CGRect textRect = CGRectMake(kSelectedOffsetX, -ceil(size.height) / 2, ceil(size.width), ceil(size.height));\n  CGPathRef path = CGPathCreateWithRect(textRect, NULL);\n  CTFrameRef frame = CTFramesetterCreateFrame(framesetter, CFRangeMake(0, CFAttributedStringGetLength(string)), path, NULL);\n  CFAttributedStringRef character = CFAttributedStringCreate(kCFAllocatorDefault, CFSTR(\"\\u2026\"), (CFDictionaryRef)attributes1);\n  CTLineRef token = CTLineCreateWithAttributedString(character);\n\n  // Prepare label\n\n  CGRect labelRect = CGRectMake(textRect.origin.x, textRect.origin.y, MIN(textRect.size.width, kSelectedLabelMaxWidth), textRect.size.height);\n  labelRect.origin.x -= 1;\n  labelRect.size.width += 5;\n  labelRect.origin.y -= 4;\n  labelRect.size.height += 8;\n\n  CGMutablePathRef labelPath = CGPathCreateMutable();\n\n  CGPathMoveToPoint(labelPath, NULL, labelRect.origin.x + kSelectedCornerRadius, labelRect.origin.y);\n  CGPathAddLineToPoint(labelPath, NULL, labelRect.origin.x + labelRect.size.width - kSelectedCornerRadius, labelRect.origin.y);\n  CGPathAddQuadCurveToPoint(labelPath, NULL, labelRect.origin.x + labelRect.size.width, labelRect.origin.y, labelRect.origin.x + labelRect.size.width, labelRect.origin.y + kSelectedCornerRadius);\n  CGPathAddLineToPoint(labelPath, NULL, labelRect.origin.x + labelRect.size.width, labelRect.origin.y + labelRect.size.height - kSelectedCornerRadius);\n  CGPathAddQuadCurveToPoint(labelPath, NULL, labelRect.origin.x + labelRect.size.width, labelRect.origin.y + labelRect.size.height, labelRect.origin.x + labelRect.size.width - kSelectedCornerRadius, labelRect.origin.y + labelRect.size.height);\n  CGPathAddLineToPoint(labelPath, NULL, labelRect.origin.x + kSelectedCornerRadius, labelRect.origin.y + labelRect.size.height);\n\n  CGPathAddCurveToPoint(labelPath, NULL, 14, labelRect.origin.y + labelRect.size.height, labelRect.origin.x + kSelectedCornerRadius, kSelectedTipHeight, 5, kSelectedTipHeight);\n  CGPathAddLineToPoint(labelPath, NULL, 0, kSelectedTipHeight);\n  CGPathAddArc(labelPath, NULL, 0, 0, kSelectedTipHeight, M_PI_2, -M_PI_2, false);\n  CGPathAddLineToPoint(labelPath, NULL, 5, -kSelectedTipHeight);\n  CGPathAddCurveToPoint(labelPath, NULL, labelRect.origin.x + kSelectedCornerRadius, -kSelectedTipHeight, 14, labelRect.origin.y, labelRect.origin.x + kSelectedCornerRadius, labelRect.origin.y);\n\n  // Prepare context\n\n  CGContextSaveGState(context);\n  CGContextTranslateCTM(context, x, y);\n\n  // Draw label\n\n  if (isFirstResponder) {\n    CGContextSetFillColorWithColor(context, NSColor.selectedContentBackgroundColor.CGColor);  // NSTableView focused highlight color\n  } else {\n    CGContextSetFillColorWithColor(context, NSColor.unemphasizedSelectedContentBackgroundColor.CGColor);  // NSTableView unfocused highlight color\n  }\n  CGContextAddPath(context, labelPath);\n  CGContextFillPath(context);\n\n  CGContextSetStrokeColorWithColor(context, NSColor.textBackgroundColor.CGColor);\n  CGContextSetLineWidth(context, kSelectedBorderWidth);\n  CGContextAddPath(context, labelPath);\n  CGContextStrokePath(context);\n\n  // Draw node\n\n  CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n  CGContextFillEllipseInRect(context, CGRectMake(-4, -4, 8, 8));\n\n  // Draw text\n\n  if (isFirstResponder) {\n    CGContextSetFillColorWithColor(context, [[NSColor alternateSelectedControlTextColor] CGColor]);\n  } else {\n    CGContextSetFillColorWithColor(context, NSColor.secondaryLabelColor.CGColor);\n  }\n  CFArrayRef lines = CTFrameGetLines(frame);\n  for (CFIndex i = 0, count = CFArrayGetCount(lines); i < count; ++i) {\n    CTLineRef line = CFArrayGetValueAtIndex(lines, i);\n    CGPoint origin;\n    CTFrameGetLineOrigins(frame, CFRangeMake(i, 1), &origin);\n    CGContextSetTextPosition(context, textRect.origin.x + origin.x, textRect.origin.y + origin.y);\n    if (size.width <= kSelectedLabelMaxWidth) {\n      CTLineDraw(line, context);\n    } else {\n      CTLineRef drawLine = CTLineCreateTruncatedLine(line, kSelectedLabelMaxWidth, kCTLineTruncationEnd, token);\n      CTLineDraw(drawLine, context);\n      CFRelease(drawLine);\n    }\n  }\n\n  // Reset context\n\n  CGContextRestoreGState(context);\n\n  // Clean up\n\n  CGPathRelease(labelPath);\n  CFRelease(token);\n  CFRelease(character);\n  CFRelease(frame);\n  CGPathRelease(path);\n  CFRelease(framesetter);\n  CFRelease(string);\n}\n\n- (NSUInteger)_indexOfLayerContainingPosition:(CGFloat)position {\n  XLOG_DEBUG_CHECK(_graph.layers.count);\n  NSArray* layers = _graph.layers;\n  CGFloat offset = _graph.size.height;\n\n  GILayer* firstLayer = layers.firstObject;\n  if (position > CONVERT_Y(offset - firstLayer.y)) {\n    return firstLayer.index;\n  }\n\n  GILayer* lastLayer = layers.lastObject;\n  if (position < CONVERT_Y(offset - lastLayer.y)) {\n    return lastLayer.index;\n  }\n\n  NSRange range = NSMakeRange(0, layers.count);\n  while (1) {\n    NSUInteger index = range.location + range.length / 2;\n    GILayer* layer = layers[index];\n    CGFloat y = CONVERT_Y(offset - layer.y);\n    if (position > y) {\n      range = NSMakeRange(range.location, index - range.location);\n    } else {\n      range = NSMakeRange(index, range.location + range.length - index);\n    }\n    if (range.length == 1) {\n      return range.location;\n    }\n  }\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  GIGraphOptions graphOptions = _graph.options;\n  NSArray* layers = _graph.layers;\n  NSUInteger layerCount = layers.count;\n  NSUInteger startIndex = layerCount ? [self _indexOfLayerContainingPosition:(dirtyRect.origin.y + dirtyRect.size.height + kOverdrawMargin)] : NSNotFound;\n  NSUInteger endIndex = layerCount ? [self _indexOfLayerContainingPosition:dirtyRect.origin.y - kOverdrawMargin] : 0;\n  NSIndexSet* indexes = layerCount ? [[NSIndexSet alloc] initWithIndexesInRange:NSMakeRange(startIndex, MIN(endIndex + 1, layerCount) - startIndex)] : [[NSIndexSet alloc] init];\n  CGFloat offset = _graph.size.height;\n  NSMutableSet* lines = [[NSMutableSet alloc] init];\n\n  // Cache attributes\n  static NSDictionary* tagAttributes = nil;\n  if (tagAttributes == nil) {\n    CTFontRef font = CTFontCreateUIFontForLanguage(kCTFontUIFontSystem, 11.0, CFSTR(\"en-US\"));\n    tagAttributes = [@{(id)kCTForegroundColorFromContextAttributeName : (id)kCFBooleanTrue,\n                       (id)kCTFontAttributeName : (id)font} retain];\n    CFRelease(font);\n  }\n  static NSDictionary* branchAttributes = nil;\n  if (branchAttributes == nil) {\n    CTFontRef font = CTFontCreateUIFontForLanguage(kCTFontUIFontEmphasizedSystem, 11.0, CFSTR(\"en-US\"));\n    branchAttributes = [@{(id)kCTForegroundColorFromContextAttributeName : (id)kCFBooleanTrue,\n                          (id)kCTFontAttributeName : (id)font} retain];\n    CFRelease(font);\n  }\n  static NSDictionary* selectedAttributes1 = nil;\n  if (selectedAttributes1 == nil) {\n    CTFontRef font = CTFontCreateUIFontForLanguage(kCTFontUIFontSystem, 10.0, CFSTR(\"en-US\"));\n    selectedAttributes1 = [@{(id)kCTForegroundColorFromContextAttributeName : (id)kCFBooleanTrue,\n                             (id)kCTFontAttributeName : (id)font} retain];\n    CFRelease(font);\n  }\n  static NSDictionary* selectedAttributes2 = nil;\n  if (selectedAttributes2 == nil) {\n    CTFontRef font = CTFontCreateUIFontForLanguage(kCTFontUIFontEmphasizedSystem, 10.0, CFSTR(\"en-US\"));\n    selectedAttributes2 = [@{(id)kCTForegroundColorFromContextAttributeName : (id)kCFBooleanTrue,\n                             (id)kCTFontAttributeName : (id)font} retain];\n    CFRelease(font);\n  }\n\n  // Set up graphics context\n  CGContextRef context = [[NSGraphicsContext currentContext] CGContext];\n  CGContextSaveGState(context);\n  CGContextSetTextDrawingMode(context, kCGTextFill);\n  CGContextSetTextMatrix(context, CGAffineTransformIdentity);\n\n#if __DEBUG_DRAWING__\n  // Draw background\n  CGContextSetFillColorWithColor(context, [[NSColor colorWithDeviceHue:(CGFloat)(random() % 1000) / 1000.0 saturation:0.25 brightness:0.75 alpha:1.0] CGColor]);\n  CGContextFillRect(context, dirtyRect);\n\n  // Draw grid\n  CGContextSetLineWidth(context, 1);\n  CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 0.25);\n  [layers enumerateObjectsAtIndexes:indexes\n                            options:0\n                         usingBlock:^(GILayer* layer, NSUInteger index, BOOL* stop) {\n                           CGFloat y = CONVERT_Y(offset - layer.y);\n                           CGContextMoveToPoint(context, dirtyRect.origin.x, y);\n                           CGContextAddLineToPoint(context, dirtyRect.origin.x + dirtyRect.size.width, y);\n                           CGContextStrokePath(context);\n                         }];\n  for (NSUInteger i = 0; i < 100; ++i) {\n    CGFloat x = CONVERT_X(i);\n    CGContextMoveToPoint(context, x, dirtyRect.origin.y);\n    CGContextAddLineToPoint(context, x, dirtyRect.origin.y + dirtyRect.size.height);\n    CGContextStrokePath(context);\n  }\n#endif\n\n  // Draw all lines in the drawing area\n  {\n    if (@available(macOS 26, *)) {\n      CGContextSetBlendMode(context, self.effectiveAppearance.matchesDarkAppearance ? kCGBlendModeLighten : kCGBlendModeMultiply);\n    } else {\n      // See issue #1042 for more context: I think this was just a macOS 15.2 bug though, so the condition could be made more specific\n      CGContextSetBlendMode(context, kCGBlendModeMultiply);\n    }\n\n    [layers enumerateObjectsAtIndexes:indexes\n                              options:0\n                           usingBlock:^(GILayer* layer, NSUInteger index, BOOL* stop) {\n                             for (GILine* line in layer.lines) {\n                               if ([lines containsObject:line]) {\n                                 continue;\n                               }\n                               [self drawLine:line inContext:context clampedToRect:dirtyRect];\n                               [lines addObject:line];\n                             }\n                           }];\n\n    CGContextSetBlendMode(context, kCGBlendModeNormal);\n  }\n\n  // Draw nodes\n  CGContextSetLineWidth(context, 1);\n  [layers enumerateObjectsAtIndexes:indexes\n                            options:0\n                         usingBlock:^(GILayer* layer, NSUInteger index, BOOL* stop) {\n                           CGFloat y = CONVERT_Y(offset - layer.y);\n                           for (GINode* node in layer.nodes) {\n                             CGFloat x = CONVERT_X(node.x);\n\n                             if (layer.index == 0) {\n                               _DrawTipNode(node, context, x, y);\n                               continue;\n                             }\n\n                             if (node.dummy) {\n#if __DEBUG_DRAWING__\n                               CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 1.0);\n                               CGContextFillRect(context, CGRectMake(x - 2, y - 2, 4, 4));\n                               CGContextSetRGBFillColor(context, 0.0, 0.0, 0.0, 1.0);\n                               CGContextFillRect(context, CGRectMake(x - 1, y - 1, 2, 2));\n#endif\n                               continue;\n                             }\n\n                             if (node.commit.root) {\n                               _DrawRootNode(node, context, x, y);\n                               continue;\n                             }\n\n                             _DrawNode(node, context, x, y);\n                           }\n                         }];\n\n#if __DEBUG_MAIN_LINE__ || __DEBUG_DESCENDANTS__ || __DEBUG_ANCESTORS__\n  // Draw highlighted debug nodes\n  if (_selectedNode) {\n    CGContextSetLineWidth(context, 3);\n    CGContextSetRGBStrokeColor(context, 0.0, 0.0, 0.0, 1.0);\n#if __DEBUG_MAIN_LINE__\n    [_graph walkMainLineForAncestorsOfNode:_selectedNode\n                                usingBlock:^(GINode* node, BOOL* stop) {\n                                  CGFloat x = CONVERT_X(node.x);\n                                  CGFloat y = CONVERT_Y(offset - node.layer.y);\n                                  if (y < dirtyRect.origin.y + dirtyRect.size.height + kSpacingY / 2) {\n                                    CGContextStrokeEllipseInRect(context, CGRectMake(x - 5, y - 5, 10, 10));\n                                    if (y < dirtyRect.origin.y - kSpacingY / 2) {\n                                      *stop = YES;\n                                    }\n                                  }\n                                }];\n#elif __DEBUG_DESCENDANTS__ || __DEBUG_ANCESTORS__\n    __block NSUInteger count = 1;\n    void (^commitBlock)(GCHistoryCommit*, BOOL*) = ^(GCHistoryCommit* commit, BOOL* stop) {\n      GINode* node = [_graph nodeForCommit:commit];\n      if (node) {\n        CGFloat x = CONVERT_X(node.x);\n        CGFloat y = CONVERT_Y(offset - node.layer.y);\n        if ((y < dirtyRect.origin.y + dirtyRect.size.height + kSpacingY / 2) && (y > dirtyRect.origin.y - kSpacingY / 2)) {\n          CGContextStrokeEllipseInRect(context, CGRectMake(x - 5, y - 5, 10, 10));\n          CFAttributedStringRef string = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)[NSString stringWithFormat:@\"%lu\", count], NULL);\n          CTLineRef line = CTLineCreateWithAttributedString(string);\n          CGContextSetTextPosition(context, x + 8, y);\n          CTLineDraw(line, context);\n          CFRelease(line);\n          CFRelease(string);\n        }\n        ++count;\n      }\n    };\n#if __DEBUG_DESCENDANTS__\n    [_graph.history walkDescendantsOfCommits:@[ _selectedNode.commit ]\n                                  usingBlock:commitBlock];\n#elif __DEBUG_ANCESTORS__\n    [_graph.history walkAncestorsOfCommits:@[ _selectedNode.commit ]\n                                usingBlock:commitBlock];\n#else\n#error\n#endif\n#else\n#error\n#endif\n  }\n#endif\n\n  // Draw node labels\n  if (_showsTagLabels || _showsBranchLabels) {\n    CGContextSetLineWidth(context, 1);\n    for (GINode* node in _graph.nodesWithReferences) {\n      if (node == _selectedNode) {\n        continue;\n      }\n      CGFloat x = CONVERT_X(node.x);\n      CGFloat y = CONVERT_Y(offset - node.layer.y);\n      if (NSIntersectsRect(NODE_LABEL_BOUNDS(x, y), dirtyRect)) {\n#if __DEBUG_BOXES__\n        CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 0.666);\n        CGContextFillRect(context, NODE_LABEL_BOUNDS(x, y));\n#endif\n        _DrawNodeLabels(context, x, y, node,\n                        _showsTagLabels && (node.layer.index > 0) ? tagAttributes : nil,\n                        _showsBranchLabels && (node.layer.index > 0) ? branchAttributes : nil);\n      }\n    }\n  }\n\n  // Draw HEAD\n  GCHistoryCommit* headCommit = _graph.history.HEADCommit;\n  if (headCommit) {\n    GINode* headNode = nil;\n    if (!_graph.history.HEADDetached && layers.count) {\n      for (GINode* node in [(GILayer*)layers[0] nodes]) {\n        if ([node.commit isEqualToCommit:headCommit]) {\n          headNode = node;\n        }\n      }\n    }\n    if (headNode == nil) {\n      headNode = [_graph nodeForCommit:headCommit];\n    }\n    if (headNode) {\n      CGFloat x = CONVERT_X(headNode.x);\n      CGFloat y = CONVERT_Y(offset - headNode.layer.y);\n      if (NSIntersectsRect(HEAD_BOUNDS(x, y), dirtyRect)) {\n#if __DEBUG_BOXES__\n        CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 0.666);\n        CGContextFillRect(context, HEAD_BOUNDS(x, y));\n#endif\n        _DrawHead(context, x, y, !_graph.history.HEADBranch, headNode.primaryLine.color.CGColor, tagAttributes);\n      }\n    }\n  }\n\n  // Draw branch titles in reverse order\n  if (startIndex == 0) {\n    // Avoid overlapping by remembering coordinates of the previous title corner\n    CGPoint previousBranchCorner = CGPointMake(CGFLOAT_MAX, 0.0);\n    for (GIBranch* branch in _graph.branches.reverseObjectEnumerator) {\n      GINode* node = branch.tipNode;\n      CGFloat x = CONVERT_X(node.x);\n      CGFloat y = CONVERT_Y(offset - node.layer.y);\n      _DrawBranchTitle(context, x, y, &previousBranchCorner, branch, node.primaryLine.color, graphOptions);\n    }\n  }\n\n  // Draw selected node if any\n  if (_selectedNode) {\n    CGFloat x = CONVERT_X(_selectedNode.x);\n    CGFloat y = CONVERT_Y(offset - _selectedNode.layer.y);\n    if (NSIntersectsRect(SELECTED_NODE_BOUNDS(x, y), dirtyRect)) {\n#if __DEBUG_BOXES__\n      CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 0.666);\n      CGContextFillRect(context, SELECTED_NODE_BOUNDS(x, y));\n#endif\n      _DrawSelectedNode(context, x, y, _selectedNode, selectedAttributes1, selectedAttributes2, _dateFormatter, self.window.keyWindow && (self.window.firstResponder == self));\n    }\n  }\n\n  // Draw selected node if any\n  if (_lastSelectedNode) {\n    CGFloat x = CONVERT_X(_lastSelectedNode.x);\n    CGFloat y = CONVERT_Y(offset - _lastSelectedNode.layer.y);\n    if (NSIntersectsRect(SELECTED_NODE_BOUNDS(x, y), dirtyRect)) {\n#if __DEBUG_BOXES__\n      CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 0.666);\n      CGContextFillRect(context, SELECTED_NODE_BOUNDS(x, y));\n#endif\n      _DrawSelectedNode(context, x, y, _lastSelectedNode, selectedAttributes1, selectedAttributes2, _dateFormatter, self.window.keyWindow && (self.window.firstResponder == self));\n    }\n  }\n\n  // Restore graphics context\n  CGContextRestoreGState(context);\n\n  // Clean up\n  [lines release];\n}\n\n@end\n\n@implementation GIGraphView (NSScrollView)\n\n- (GINode*)focusedNode {\n  NSScrollView* scrollView = self.enclosingScrollView;\n  NSRect rect = scrollView.documentVisibleRect;\n  return [self _findNodeAtPosition:NSMakePoint(rect.origin.x + rect.size.width / 2, rect.origin.y + rect.size.height / 2) closest:YES];\n}\n\n- (void)_scrollToRect:(NSRect)rect {\n  NSScrollView* scrollView = self.enclosingScrollView;\n  if (!NSContainsRect(scrollView.documentVisibleRect, NSInsetRect(rect, 0, -kScrollingInset))) {\n    [scrollView scrollToVisibleRect:rect];\n    [scrollView flashScrollers];\n  }\n}\n\n- (void)scrollToNode:(GINode*)node {\n  NSPoint position = [self positionForNode:node];\n  [self _scrollToRect:NSMakeRect(position.x - kSpacingX / 2, position.y - kSpacingY / 2, kSpacingX, kSpacingY)];\n}\n\n- (void)scrollToSelection {\n  if (_selectedNode) {\n    NSPoint position = [self positionForNode:_selectedNode];\n    [self _scrollToRect:SELECTED_NODE_BOUNDS(position.x, position.y)];\n  }\n}\n\n- (void)_scrollToTop {\n  NSScrollView* scrollView = self.enclosingScrollView;\n  NSRect bounds = scrollView.contentView.bounds;\n  [scrollView scrollToPoint:NSMakePoint(bounds.origin.x, _minSize.height - bounds.size.height)];\n  [scrollView flashScrollers];\n}\n\n- (void)_scrollToBottom {\n  NSScrollView* scrollView = self.enclosingScrollView;\n  NSRect bounds = scrollView.contentView.bounds;\n  [scrollView scrollToPoint:NSMakePoint(bounds.origin.x, 0)];\n  [scrollView flashScrollers];\n}\n\n- (void)_scrollToLeft {\n  NSScrollView* scrollView = self.enclosingScrollView;\n  NSRect bounds = scrollView.contentView.bounds;\n  [scrollView scrollToPoint:NSMakePoint(0, bounds.origin.y)];\n  [scrollView flashScrollers];\n}\n\n- (void)_scrollToRight {\n  NSScrollView* scrollView = self.enclosingScrollView;\n  NSRect bounds = scrollView.contentView.bounds;\n  [scrollView scrollToPoint:NSMakePoint(_minSize.width - bounds.size.width, bounds.origin.y)];\n  [scrollView flashScrollers];\n}\n\n- (void)scrollToTip {\n  [self _scrollToTop];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIImageDiffView.h",
    "content": "#import <AppKit/AppKit.h>\n\n@interface GIImageDiffView : NSView\n@property(nonatomic, strong) GCDiffDelta* delta;\n\n- (id)initWithRepository:(GCLiveRepository*)repository;\n- (CGFloat)desiredHeightForWidth:(CGFloat)width;\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIImageDiffView.m",
    "content": "#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIPrivate.h\"\n#import \"GILaunchServicesLocator.h\"\n#import <QuartzCore/CATransaction.h>\n#import <ImageIO/ImageIO.h>\n\n#define kImageInset 10\n#define kBorderWidth 8\n#define kDividerWidth 2\n#define kMaxImageDimension 4000\n\n@interface GIImageDiffView ()\n@property(nonatomic, strong) NSPanGestureRecognizer* panGestureRecognizer;\n@property(nonatomic, strong) NSClickGestureRecognizer* clickGestureRecognizer;\n@property(nonatomic, strong) GCLiveRepository* repository;\n@property(nonatomic, strong) NSImageView* oldImageView;\n@property(nonatomic, strong) NSImageView* currentImageView;\n@property(nonatomic, strong) CALayer* oldImageMaskLayer;\n@property(nonatomic, strong) CALayer* currentImageMaskLayer;\n@property(nonatomic, strong) CALayer* oldImageBorderLayer;\n@property(nonatomic, strong) CALayer* currentImageBorderLayer;\n@property(nonatomic, strong) NSView* dividerView;\n@property(nonatomic, strong) CALayer* transparencyCheckerboardLayer;\n@property(nonatomic, strong) NSColor* checkerboardColor;\n@property(nonatomic, strong) NSProgressIndicator* progressIndicator;\n@property(nonatomic) CGFloat percentage;\n@property(nonatomic) NSSize oldImageSize;\n@property(nonatomic) NSSize currentImageSize;\n@end\n\n@implementation GIImageDiffView\n- (id)initWithRepository:(GCLiveRepository*)repository {\n  self = [super initWithFrame:CGRectZero];\n  self.repository = repository;\n  _percentage = 0.5;\n  [self setupView];\n  return self;\n}\n\n- (void)setupView {\n  self.wantsLayer = true;\n\n  _oldImageBorderLayer = [[CALayer alloc] init];\n  _currentImageBorderLayer = [[CALayer alloc] init];\n  [self.layer addSublayer:_oldImageBorderLayer];\n  [self.layer addSublayer:_currentImageBorderLayer];\n\n  _transparencyCheckerboardLayer = [[CALayer alloc] init];\n  NSBundle* bundle = NSBundle.gitUpKitBundle;\n  NSImage* patternImage = [bundle imageForResource:@\"background_pattern\"];\n  _checkerboardColor = [NSColor colorWithPatternImage:patternImage];\n  _transparencyCheckerboardLayer.backgroundColor = _checkerboardColor.CGColor;\n  [self.layer addSublayer:_transparencyCheckerboardLayer];\n\n  _currentImageView = [[NSImageView alloc] init];\n  _oldImageView = [[NSImageView alloc] init];\n  [self addSubview:_currentImageView];\n  [self addSubview:_oldImageView];\n\n  _oldImageMaskLayer = [[CALayer alloc] init];\n  _oldImageMaskLayer.backgroundColor = NSColor.blackColor.CGColor;\n  _oldImageView.wantsLayer = true;\n  _oldImageView.layer.mask = _oldImageMaskLayer;\n\n  _currentImageMaskLayer = [[CALayer alloc] init];\n  _currentImageMaskLayer.backgroundColor = NSColor.blackColor.CGColor;\n  _currentImageView.wantsLayer = true;\n  _currentImageView.layer.mask = _currentImageMaskLayer;\n\n  _dividerView = [[NSView alloc] init];\n  [self addSubview:_dividerView];\n\n  _progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0, 0, 30, 30)];\n  _progressIndicator.style = NSProgressIndicatorStyleSpinning;\n  [self addSubview:_progressIndicator];\n  [_progressIndicator startAnimation:self];\n  _progressIndicator.hidden = true;\n\n  _panGestureRecognizer = [[NSPanGestureRecognizer alloc] initWithTarget:self action:@selector(didMoveSplit:)];\n  _clickGestureRecognizer = [[NSClickGestureRecognizer alloc] initWithTarget:self action:@selector(didMoveSplit:)];\n  [self addGestureRecognizer:_panGestureRecognizer];\n  [self addGestureRecognizer:_clickGestureRecognizer];\n}\n\n- (void)setDelta:(GCDiffDelta*)delta {\n  if (delta != _delta) {\n    _delta = delta;\n    [self updateCurrentImage];\n    [self updateOldImage];\n    self.percentage = 0.5;\n  }\n}\n\n- (void)setPercentage:(CGFloat)percentage {\n  _percentage = percentage;\n  [self setNeedsDisplay:true];\n}\n\n- (void)updateCurrentImage {\n  NSError* error;\n  NSString* newPath;\n  if (_delta.newFile.SHA1 != nil) {\n    newPath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:_delta.newFile.SHA1];\n    NSString* newExtension = _delta.newFile.path.pathExtension;\n    if (newExtension.length) {\n      newPath = [newPath stringByAppendingPathExtension:newExtension];\n    }\n    if (![[NSFileManager defaultManager] fileExistsAtPath:newPath]) {\n      [self.repository exportBlobWithSHA1:_delta.newFile.SHA1 toPath:newPath error:&error];\n    }\n  } else {\n    newPath = [self.repository absolutePathForFile:_delta.canonicalPath];\n  }\n  _currentImageSize = [self imageSizeWithoutLoadingFromPath:newPath];\n  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\n    NSImage* limitedSizeImage = [self generateLimitedSizeImageFromPath:newPath];\n    dispatch_async(dispatch_get_main_queue(), ^{\n      _currentImageView.image = limitedSizeImage;\n      [self setNeedsDisplay:true];\n    });\n  });\n}\n\n- (void)updateOldImage {\n  NSError* error;\n  if (_delta.oldFile.SHA1 != nil) {\n    NSString* oldPath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:_delta.oldFile.SHA1];\n    NSString* oldExtension = _delta.oldFile.path.pathExtension;\n    if (oldExtension.length) {\n      oldPath = [oldPath stringByAppendingPathExtension:oldExtension];\n    }\n    if (![[NSFileManager defaultManager] fileExistsAtPath:oldPath]) {\n      [self.repository exportBlobWithSHA1:_delta.oldFile.SHA1 toPath:oldPath error:&error];\n    }\n    _oldImageSize = [self imageSizeWithoutLoadingFromPath:oldPath];\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\n      NSImage* limitedSizeImage = [self generateLimitedSizeImageFromPath:oldPath];\n      dispatch_async(dispatch_get_main_queue(), ^{\n        _oldImageView.image = limitedSizeImage;\n        [self setNeedsDisplay:true];\n      });\n    });\n  } else {\n    _oldImageView.image = nil;\n  }\n}\n\n- (NSSize)imageSizeWithoutLoadingFromPath:(NSString*)path {\n  NSURL* imageFileURL = [NSURL fileURLWithPath:path];\n  CFStringRef fileUTI = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, (__bridge CFStringRef)path.pathExtension, NULL);\n  BOOL isPDF = [(__bridge NSString*)fileUTI isEqualToString:@\"com.adobe.pdf\"];\n  CFRelease(fileUTI);\n\n  CGFloat width = 0.0f;\n  CGFloat height = 0.0f;\n\n  if (isPDF) {\n    CGPDFDocumentRef document = CGPDFDocumentCreateWithURL((CFURLRef)imageFileURL);\n    CGPDFPageRef page = CGPDFDocumentGetPage(document, 1);\n    CGRect mediaBox = CGPDFPageGetBoxRect(page, kCGPDFMediaBox);\n    width = mediaBox.size.width;\n    height = mediaBox.size.height;\n    CGPDFDocumentRelease(document);\n  } else {\n    CGImageSourceRef imageSource = CGImageSourceCreateWithURL((CFURLRef)imageFileURL, NULL);\n    if (imageSource == NULL) {\n      return NSZeroSize;\n    }\n    CFDictionaryRef imageProperties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);\n    CFRelease(imageSource);\n\n    if (imageProperties != NULL) {\n      CFNumberRef widthNum = CFDictionaryGetValue(imageProperties, kCGImagePropertyPixelWidth);\n      if (widthNum != NULL) {\n        CFNumberGetValue(widthNum, kCFNumberCGFloatType, &width);\n      }\n      CFNumberRef heightNum = CFDictionaryGetValue(imageProperties, kCGImagePropertyPixelHeight);\n      if (heightNum != NULL) {\n        CFNumberGetValue(heightNum, kCFNumberCGFloatType, &height);\n      }\n      CFNumberRef orientationNum = CFDictionaryGetValue(imageProperties, kCGImagePropertyOrientation);\n      if (orientationNum != NULL) {\n        int orientation;\n        CFNumberGetValue(orientationNum, kCFNumberIntType, &orientation);\n        if (orientation > 4) {\n          CGFloat temp = width;\n          width = height;\n          height = temp;\n        }\n      }\n      CFRelease(imageProperties);\n    }\n  }\n\n  return NSMakeSize(width, height);\n}\n\n- (NSImage*)generateLimitedSizeImageFromPath:(NSString*)path {\n  CGImageSourceRef imageSource = CGImageSourceCreateWithURL((CFURLRef)[NSURL fileURLWithPath:path], NULL);\n  if (!imageSource) {\n    return nil;\n  }\n\n  CFDictionaryRef options = (CFDictionaryRef)CFBridgingRetain(@{\n    (id)kCGImageSourceCreateThumbnailWithTransform : @YES,\n    (id)kCGImageSourceCreateThumbnailFromImageAlways : @YES,\n    (id)kCGImageSourceThumbnailMaxPixelSize : @(kMaxImageDimension)\n  });\n  CGImageRef image = CGImageSourceCreateThumbnailAtIndex(imageSource, 0, options);\n  NSImage* convertedImage = [[NSImage alloc] initWithCGImage:image size:NSZeroSize];\n\n  CGImageRelease(image);\n  CFRelease(options);\n  CFRelease(imageSource);\n\n  return convertedImage;\n}\n\n- (CGFloat)desiredHeightForWidth:(CGFloat)width {\n  return [self desiredImageFrame:width].size.height + 2 * kImageInset;\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  [CATransaction begin];\n  [CATransaction setDisableActions:YES];\n  [self updateColors];\n  [self updateFrames];\n  _progressIndicator.hidden = _currentImageView.image != nil || _oldImageView.image != nil;\n  [CATransaction commit];\n}\n\n- (void)updateColors {\n  _oldImageBorderLayer.backgroundColor = NSColor.gitUpDiffDeletedTextHighlightColor.CGColor;\n  _currentImageBorderLayer.backgroundColor = NSColor.gitUpDiffAddedTextHighlightColor.CGColor;\n  _dividerView.layer.backgroundColor = NSColor.gitUpDiffModifiedBackgroundColor.CGColor;\n  _transparencyCheckerboardLayer.backgroundColor = _checkerboardColor.CGColor;\n}\n\n- (void)updateFrames {\n  CGRect fittedImageFrame = [self fittedImageFrame];\n  _progressIndicator.frame = CGRectMake(\n      (fittedImageFrame.size.width - _progressIndicator.frame.size.width) / 2,\n      (fittedImageFrame.size.height - _progressIndicator.frame.size.height) / 2,\n      _progressIndicator.frame.size.width,\n      _progressIndicator.frame.size.height);\n  _transparencyCheckerboardLayer.frame = fittedImageFrame;\n  _currentImageView.frame = fittedImageFrame;\n  if (_oldImageView.image != nil && _currentImageView.image != nil) {\n    _oldImageView.frame = fittedImageFrame;\n    [_oldImageView setHidden:false];\n    CGFloat dividerOffset = fittedImageFrame.size.width * _percentage;\n    _oldImageMaskLayer.frame = CGRectMake(0,\n                                          0,\n                                          dividerOffset,\n                                          fittedImageFrame.size.height);\n    _currentImageMaskLayer.frame = CGRectMake(dividerOffset,\n                                              0,\n                                              fittedImageFrame.size.width * (1 - _percentage),\n                                              fittedImageFrame.size.height);\n    _oldImageBorderLayer.frame = CGRectMake(fittedImageFrame.origin.x - kBorderWidth,\n                                            fittedImageFrame.origin.y - kBorderWidth,\n                                            dividerOffset + kBorderWidth,\n                                            fittedImageFrame.size.height + 2 * kBorderWidth);\n    _currentImageBorderLayer.frame = CGRectMake(fittedImageFrame.origin.x + dividerOffset,\n                                                fittedImageFrame.origin.y - kBorderWidth,\n                                                fittedImageFrame.size.width * (1 - _percentage) + kBorderWidth,\n                                                fittedImageFrame.size.height + 2 * kBorderWidth);\n    _dividerView.frame = CGRectMake(fittedImageFrame.origin.x + dividerOffset - kDividerWidth / 2,\n                                    fittedImageFrame.origin.y - kBorderWidth,\n                                    kDividerWidth,\n                                    fittedImageFrame.size.height + 2 * kBorderWidth);\n  } else if (_oldImageView.image != nil) {\n    [_oldImageView setHidden:false];\n    _oldImageView.frame = fittedImageFrame;\n    _oldImageMaskLayer.frame = CGRectMake(0,\n                                          0,\n                                          fittedImageFrame.size.width,\n                                          fittedImageFrame.size.height);\n    _oldImageBorderLayer.frame = CGRectMake(fittedImageFrame.origin.x - kBorderWidth,\n                                            fittedImageFrame.origin.y - kBorderWidth,\n                                            fittedImageFrame.size.width + 2 * kBorderWidth,\n                                            fittedImageFrame.size.height + 2 * kBorderWidth);\n  } else {\n    _currentImageMaskLayer.frame = CGRectMake(0,\n                                              0,\n                                              fittedImageFrame.size.width,\n                                              fittedImageFrame.size.height);\n    [_oldImageView setHidden:true];\n  }\n}\n\n- (CGRect)desiredImageFrame:(CGFloat)width {\n  CGFloat maxContentWidth = width - 2 * kImageInset;\n  CGSize originalImageSize = [self originalDiffImageSize];\n  CGFloat adjustedImageWidth = originalImageSize.width;\n  CGFloat adjustedImageHeight = originalImageSize.height;\n\n  if (adjustedImageWidth < CGFLOAT_EPSILON) {\n    adjustedImageWidth = 200;\n  }\n  if (adjustedImageHeight < CGFLOAT_EPSILON) {\n    adjustedImageHeight = 200;\n  }\n\n  CGFloat scaledImageWidth = MIN(adjustedImageWidth, maxContentWidth);\n  CGFloat scaledImageHeight = adjustedImageHeight * scaledImageWidth / adjustedImageWidth;\n\n  CGFloat x = (width - scaledImageWidth) / 2;\n  return CGRectMake(x, self.bounds.size.height - scaledImageHeight - kImageInset, scaledImageWidth, scaledImageHeight);\n}\n\n- (CGRect)fittedImageFrame {\n  CGFloat maxContentWidth = self.frame.size.width - 2 * kImageInset;\n  CGFloat maxContentHeight = self.frame.size.height - 2 * kImageInset;\n  CGSize originalImageSize = [self originalDiffImageSize];\n  CGFloat adjustedImageWidth = originalImageSize.width;\n  CGFloat adjustedImageHeight = originalImageSize.height;\n\n  if (adjustedImageWidth < CGFLOAT_EPSILON) {\n    adjustedImageWidth = 200;\n  }\n  if (adjustedImageHeight < CGFLOAT_EPSILON) {\n    adjustedImageHeight = 200;\n  }\n\n  CGFloat scaledImageWidth = MIN(adjustedImageWidth, maxContentWidth);\n  CGFloat scaledImageHeight = MIN(adjustedImageHeight, maxContentHeight);\n  CGFloat widthScalingFactor = scaledImageWidth / adjustedImageWidth;\n  CGFloat heightScalingFactor = scaledImageHeight / adjustedImageHeight;\n  CGFloat minimumScalingFactor = MIN(widthScalingFactor, heightScalingFactor);\n\n  CGFloat actualImageWidth = adjustedImageWidth * minimumScalingFactor;\n  CGFloat actualImageHeight = adjustedImageHeight * minimumScalingFactor;\n\n  return CGRectMake((self.frame.size.width - actualImageWidth) / 2,\n                    self.bounds.size.height - actualImageHeight - kImageInset,\n                    actualImageWidth,\n                    actualImageHeight);\n}\n\n- (NSSize)originalDiffImageSize {\n  CGFloat maxHeight = MAX(_currentImageSize.height, _oldImageSize.height);\n  CGFloat maxWidth = MAX(_currentImageSize.width, _oldImageSize.width);\n  return NSMakeSize(maxWidth, maxHeight);\n}\n\n- (void)didMoveSplit:(NSGestureRecognizer*)gestureRecognizer {\n  CGRect imageFrame = [self fittedImageFrame];\n  CGFloat unboundPercentage = ([gestureRecognizer locationInView:self].x - imageFrame.origin.x) / imageFrame.size.width;\n  self.percentage = MIN(1, MAX(0, unboundPercentage));\n}\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIInterface.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#ifndef __GI_HAS_APPKIT__\n// clang-format off\n#if defined(__has_include) && __has_include(<AppKit/AppKit.h>)\n// clang-format on\n#define __GI_HAS_APPKIT__ 1\n#else\n#define __GI_HAS_APPKIT__ 0\n#endif\n#endif\n\n#import \"GCCore.h\"\n\n#import \"GIBranch.h\"\n#import \"GIConstants.h\"\n#import \"GIFunctions.h\"\n#import \"GIGraph.h\"\n#import \"GILayer.h\"\n#import \"GILine.h\"\n#import \"GINode.h\"\n\n#if __GI_HAS_APPKIT__\n#import \"GIDiffView.h\"\n#import \"GIGraphView.h\"\n#import \"GISplitDiffView.h\"\n#import \"GIUnifiedDiffView.h\"\n#import \"NSColor+GINamedColors.h\"\n#import \"GIImageDiffView.h\"\n#endif\n"
  },
  {
    "path": "GitUpKit/Interface/GILayer.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@interface GILayer : NSObject\n@property(nonatomic, readonly) NSArray* nodes;  // NOT RETAINED\n@property(nonatomic, readonly) NSArray* lines;  // NOT RETAINED\n@property(nonatomic, readonly) NSUInteger index;  // Matches index in layers array\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GILayer.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import \"GIPrivate.h\"\n\n@implementation GILayer {\n  CFMutableArrayRef _nodes;\n  CFMutableArrayRef _lines;\n}\n\n- (instancetype)initWithIndex:(NSUInteger)index {\n  if ((self = [super init])) {\n    _index = index;\n\n    _nodes = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n    _lines = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  return self;\n}\n\n- (void)dealloc {\n  CFRelease(_lines);\n  CFRelease(_nodes);\n\n  [super dealloc];\n}\n\n- (NSArray*)nodes {\n  return (NSArray*)_nodes;\n}\n\n- (NSArray*)lines {\n  return (NSArray*)_lines;\n}\n\n- (void)addNode:(GINode*)node {\n  CFArrayAppendValue(_nodes, (const void*)node);\n}\n\n- (void)addLine:(GILine*)line {\n  CFArrayAppendValue(_lines, (const void*)line);\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"[%@] Index=%lu Y=%g Nodes=%lu Lines=%lu\", self.class, (unsigned long)_index, _y, (unsigned long)self.nodes.count, (unsigned long)self.lines.count];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GILine.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@class GIBranch;\n\n@interface GILine : NSObject\n@property(nonatomic, readonly) GIBranch* branch;  // NOT RETAINED\n@property(nonatomic, readonly) NSArray* nodes;  // NOT RETAINED\n\n// Computed properties\n@property(nonatomic, readonly, getter=isVirtual) BOOL virtual;\n@property(nonatomic, readonly) GILine* parentLine;\n@property(nonatomic, readonly, getter=isBranchMainLine) BOOL branchMainLine;\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GILine.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import \"GIPrivate.h\"\n\n@implementation GILine {\n  GIBranch* _branch;\n  CFMutableArrayRef _nodes;\n}\n\n- (instancetype)initWithBranch:(GIBranch*)branch {\n  if ((self = [super init])) {\n    _branch = branch;\n\n    _nodes = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n  }\n  return self;\n}\n\n- (void)dealloc {\n#if __GI_HAS_APPKIT__\n  [_color release];\n#endif\n  CFRelease(_nodes);\n\n  [super dealloc];\n}\n\n- (NSArray*)nodes {\n  return (NSArray*)_nodes;\n}\n\n- (void)addNode:(GINode*)node {\n  CFArrayAppendValue(_nodes, (const void*)node);\n}\n\n- (BOOL)isVirtual {\n  GINode* firstNode = self.nodes.firstObject;\n  return firstNode.dummy;\n}\n\n- (GILine*)childLine {\n  GINode* firstNode = self.nodes.firstObject;\n  GILine* line = firstNode.primaryLine;\n  return (line != self ? line : nil);\n}\n\n- (GILine*)parentLine {\n  GINode* lastNode = self.nodes.lastObject;\n  GILine* line = lastNode.primaryLine;\n  return (line != self ? line : nil);\n}\n\n- (BOOL)isBranchMainLine {\n  return (_branch.mainLine == self);\n}\n\n- (NSString*)description {\n  GINode* firstNode = self.nodes.firstObject;\n  GINode* lastNode = self.nodes.lastObject;\n  return [NSString stringWithFormat:@\"[%@] Range=%lu-%lu Nodes=%lu\", self.class, (unsigned long)firstNode.layer.index, (unsigned long)lastNode.layer.index, (unsigned long)self.nodes.count];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GINode.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@class GCHistoryCommit, GILine, GILayer;\n\n@interface GINode : NSObject\n@property(nonatomic, readonly) GILayer* layer;  // NOT RETAINED\n@property(nonatomic, readonly) GILine* primaryLine;  // NOT RETAINED\n@property(nonatomic, readonly) GCHistoryCommit* commit;\n@property(nonatomic, readonly, getter=isDummy) BOOL dummy;\n@property(nonatomic, readonly) NSUInteger parentCount;\n- (GINode*)parentAtIndex:(NSUInteger)index;  // NOT RETAINED\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GINode.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if __has_feature(objc_arc)\n#error This file requires MRC\n#endif\n\n#import \"GIPrivate.h\"\n\n@implementation GINode {\n  GINode* _mainParent;\n  void* _additionalParents;\n}\n\n- (instancetype)initWithLayer:(GILayer*)layer primaryLine:(GILine*)line commit:(GCHistoryCommit*)commit dummy:(BOOL)dummy alternateCommit:(GCHistoryCommit*)alternateCommit {\n  if ((self = [super init])) {\n    _primaryLine = line;\n    _layer = layer;\n    _commit = [commit retain];\n    _dummy = dummy;\n    _alternateCommit = [alternateCommit retain];\n  }\n  return self;\n}\n\n- (void)dealloc {\n  if (_parentCount > 2) {\n    CFRelease(_additionalParents);\n  }\n  [_alternateCommit release];\n  [_commit release];\n\n  [super dealloc];\n}\n\n- (GINode*)parentAtIndex:(NSUInteger)index {\n  XLOG_DEBUG_CHECK(index < _parentCount);\n  if (_parentCount == 1) {\n    return _mainParent;\n  }\n  if (_parentCount == 2) {\n    return index ? _additionalParents : _mainParent;\n  }\n  return CFArrayGetValueAtIndex(_additionalParents, index);\n}\n\n- (void)addParent:(GINode*)parent {\n  if (_parentCount == 0) {\n    _mainParent = parent;\n  } else if (_parentCount == 1) {\n    _additionalParents = parent;\n  } else if (_parentCount == 2) {\n    CFMutableArrayRef array = CFArrayCreateMutable(kCFAllocatorDefault, 0, NULL);\n    CFArrayAppendValue(array, _mainParent);\n    CFArrayAppendValue(array, _additionalParents);\n    CFArrayAppendValue(array, parent);\n    _additionalParents = array;\n  } else {\n    XLOG_DEBUG_CHECK(CFArrayGetCount(_additionalParents) == (CFIndex)_parentCount);\n    CFArrayAppendValue(_additionalParents, parent);\n  }\n  _parentCount += 1;\n}\n\n- (NSString*)description {\n  return [NSString stringWithFormat:@\"%c%04lu%c %@\", _dummy ? '(' : ' ', (unsigned long)_layer.index, _dummy ? ')' : ' ', _commit];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIPrivate.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIInterface.h\"\n\n#import \"XLFacilityMacros.h\"\n#import \"NSBundle+GitUpKit.h\"\n\n#if __GI_HAS_APPKIT__\n\nextern const char* GIDiffViewMissingNewlinePlaceholder;\n\n#endif\n\nextern void GIComputeHighlightRanges(const char* deletedBytes, NSUInteger deletedCount, CFIndex deletedLength, CFRange* deletedRange, const char* addedBytes, NSUInteger addedCount, CFIndex addedLength, CFRange* addedRange);  // Assumes UTF-8 buffers\n\n@interface GINode ()\n@property(nonatomic, readonly) GCHistoryCommit* alternateCommit;  // Dummy nodes only and may be nil\n@property(nonatomic) CGFloat x;\n- (instancetype)initWithLayer:(GILayer*)layer primaryLine:(GILine*)line commit:(GCHistoryCommit*)commit dummy:(BOOL)dummy alternateCommit:(GCHistoryCommit*)alternateCommit;\n- (void)addParent:(GINode*)parent;\n@end\n\n@interface GILine ()\n#if __GI_HAS_APPKIT__\n@property(nonatomic, strong) NSColor* color;\n#endif\n@property(nonatomic) CGFloat x;\n@property(nonatomic, readonly) GILine* childLine;  // Computed\n- (instancetype)initWithBranch:(GIBranch*)branch;\n- (void)addNode:(GINode*)node;\n@end\n\n@interface GIBranch ()\n@property(nonatomic, weak) GILine* mainLine;\n@end\n\n@interface GILayer ()\n@property(nonatomic) CGFloat y;\n@property(nonatomic) CGFloat maxX;\n- (instancetype)initWithIndex:(NSUInteger)index;\n- (void)addNode:(GINode*)node;\n- (void)addLine:(GILine*)line;\n@end\n\n#if __GI_HAS_APPKIT__\n\n@interface NSScrollView (GIPrivate)\n- (void)scrollToPoint:(NSPoint)point;  // Like -[NSView scrollPoint:] but doesn't animate scrolling and works around OS X 10.10 bug where target is not always reached\n- (void)scrollToVisibleRect:(NSRect)rect;  // Like -[NSView scrollRectToVisible:] but doesn't animate scrolling and works around OS X 10.10 bug where target is not always reached\n@end\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Interface/GIPrivate.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIPrivate.h\"\n\n#if __GI_HAS_APPKIT__\n\n@implementation NSScrollView (GIPrivate)\n\n- (void)scrollToPoint:(NSPoint)point {\n  NSClipView* clipView = self.contentView;\n  [clipView setBoundsOrigin:point];\n}\n\n- (void)scrollToVisibleRect:(NSRect)rect {\n  NSClipView* clipView = self.contentView;\n  NSRect bounds = clipView.bounds;\n  if (rect.origin.x < bounds.origin.x) {\n    bounds.origin.x = rect.origin.x;\n  } else if (rect.origin.x + rect.size.width > bounds.origin.x + bounds.size.width) {\n    bounds.origin.x = rect.origin.x + rect.size.width - bounds.size.width;\n  }\n  if (rect.origin.y < bounds.origin.y) {\n    bounds.origin.y = rect.origin.y;\n  } else if (rect.origin.y + rect.size.height > bounds.origin.y + bounds.size.height) {\n    bounds.origin.y = rect.origin.y + rect.size.height - bounds.size.height;\n  }\n  [clipView setBoundsOrigin:bounds.origin];\n}\n\n@end\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Interface/GISplitDiffView.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIDiffView.h\"\n\n@interface GISplitDiffView : GIDiffView\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GISplitDiffView.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIPrivate.h\"\n#import \"GIAppKit.h\"\n\n#define kTextBottomPadding 0\n\nstatic CGFloat textLineNumberMargin(void) {\n  return round(4 * GIFontSize());\n}\n\nstatic CGFloat textInsetLeft(void) {\n  return round(1.5 * GIFontSize());\n}\n\nstatic CGFloat textInsetRight(void) {\n  return round(0.5 * GIFontSize());\n}\n\nstatic CGFloat textLineStartX(void) {\n  return textLineNumberMargin() + textInsetLeft();\n}\n\ntypedef NS_ENUM(NSUInteger, DiffLineType) {\n  kDiffLineType_Separator = 0,\n  kDiffLineType_Context,\n  kDiffLineType_Change\n};\n\ntypedef NS_ENUM(NSUInteger, SelectionMode) {\n  kSelectionMode_None = 0,\n  kSelectionMode_Replace,\n  kSelectionMode_Extend,\n  kSelectionMode_Inverse\n};\n\n@interface GISplitDiffLine : NSObject\n@property(nonatomic, readonly) DiffLineType type;\n\n@property(nonatomic) NSUInteger leftNumber;\n@property(nonatomic, strong) NSString* leftString;\n@property(nonatomic) CTLineRef leftLine;\n@property(nonatomic) BOOL leftWrapped;\n@property(nonatomic) CFRange leftHighlighted;\n\n@property(nonatomic) const char* leftContentBytes;  // Not valid outside of patch generation\n@property(nonatomic) NSUInteger leftContentLength;  // Not valid outside of patch generation\n\n@property(nonatomic) NSUInteger rightNumber;\n@property(nonatomic, strong) NSString* rightString;\n@property(nonatomic) CTLineRef rightLine;\n@property(nonatomic) BOOL rightWrapped;\n@property(nonatomic) CFRange rightHighlighted;\n\n@property(nonatomic) const char* rightContentBytes;  // Not valid outside of patch generation\n@property(nonatomic) NSUInteger rightContentLength;  // Not valid outside of patch generation\n@end\n\n@implementation GISplitDiffLine\n\n- (id)initWithType:(DiffLineType)type {\n  if ((self = [super init])) {\n    _type = type;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  if (_leftLine) {\n    CFRelease(_leftLine);\n  }\n  if (_rightLine) {\n    CFRelease(_rightLine);\n  }\n}\n\n- (NSString*)description {\n  switch (_type) {\n    case kDiffLineType_Separator:\n      return _leftString;\n    case kDiffLineType_Context:\n      return [NSString stringWithFormat:@\"[%lu] '%@' | [%lu] '%@'\", _leftNumber, _leftString, _rightNumber, _rightString];\n    case kDiffLineType_Change:\n      return [NSString stringWithFormat:@\"[%lu] '%@' | [%lu] '%@'\", _leftNumber, _leftString, _rightNumber, _rightString];\n  }\n  return nil;\n}\n\n@end\n\n@implementation GISplitDiffView {\n  NSMutableArray* _lines;\n  NSSize _size;\n  CGFloat _layoutFontSize;\n\n  BOOL _rightSelection;\n  NSMutableIndexSet* _selectedLines;\n  NSRange _selectedText;\n  NSUInteger _selectedTextStart;\n  NSUInteger _selectedTextEnd;\n  SelectionMode _selectionMode;\n  NSIndexSet* _startLines;\n  NSUInteger _startIndex;\n  NSUInteger _startOffset;\n}\n\n- (void)didFinishInitializing {\n  [super didFinishInitializing];\n\n  _lines = [[NSMutableArray alloc] initWithCapacity:1024];\n  _selectedLines = [[NSMutableIndexSet alloc] init];\n  _layoutFontSize = GIFontSize();\n}\n\n- (BOOL)isEmpty {\n  return (_lines.count == 0);\n}\n\n- (void)didUpdatePatch {\n  [super didUpdatePatch];\n\n  [_lines removeAllObjects];\n}\n\n- (CGFloat)updateLayoutForWidth:(CGFloat)width {\n  CGFloat fontSize = GIFontSize();\n  if (self.patch && (((NSInteger)width != (NSInteger)_size.width) || (fontSize != _layoutFontSize))) {\n    _layoutFontSize = fontSize;\n    [_lines removeAllObjects];\n\n    CGFloat lineWidth = floor((width - 2 * textLineNumberMargin() - 2 * textInsetLeft() - 2 * textInsetRight()) / 2);\n    __block NSUInteger lineIndex = NSNotFound;\n    __block NSUInteger startIndex = NSNotFound;\n    __block NSUInteger addedCount = 0;\n    __block NSUInteger deletedCount = 0;\n    void (^highlightBlock)() = ^() {\n      if ((addedCount == deletedCount) && (startIndex != NSNotFound)) {\n        NSUInteger deletedIndex = startIndex;\n        NSUInteger addedIndex = startIndex;\n        while (addedCount) {\n          GISplitDiffLine* deletedLine = [_lines objectAtIndex:deletedIndex++];\n          while (deletedLine.leftWrapped) {\n            deletedLine = [_lines objectAtIndex:deletedIndex++];\n          }\n          GISplitDiffLine* addedLine = [_lines objectAtIndex:addedIndex++];\n          while (addedLine.rightWrapped) {\n            addedLine = [_lines objectAtIndex:addedIndex++];\n          }\n          CFRange deletedRange;\n          CFRange addedRange;\n          GIComputeHighlightRanges(deletedLine.leftContentBytes, deletedLine.leftContentLength, deletedLine.leftString.length, &deletedRange,\n                                   addedLine.rightContentBytes, addedLine.rightContentLength, addedLine.rightString.length, &addedRange);\n          while (deletedRange.length > 0) {\n            CFRange range = CTLineGetStringRange(deletedLine.leftLine);\n            if ((deletedRange.location >= range.location) && (deletedRange.location < range.location + range.length)) {\n              if (deletedRange.location + deletedRange.length <= range.location + range.length) {\n                deletedLine.leftHighlighted = CFRangeMake(deletedRange.location - range.location, deletedRange.length);\n                break;\n              }\n              deletedLine.leftHighlighted = CFRangeMake(deletedRange.location - range.location, range.location + range.length - deletedRange.location);\n              deletedRange = CFRangeMake(range.location + range.length, deletedRange.location + deletedRange.length - range.location - range.length);\n            }\n            deletedLine = [_lines objectAtIndex:deletedIndex++];\n            XLOG_DEBUG_CHECK(deletedLine.leftWrapped);\n          }\n          while (addedRange.length > 0) {\n            CFRange range = CTLineGetStringRange(addedLine.rightLine);\n            if ((addedRange.location >= range.location) && (addedRange.location < range.location + range.length)) {\n              if (addedRange.location + addedRange.length <= range.location + range.length) {\n                addedLine.rightHighlighted = CFRangeMake(addedRange.location - range.location, addedRange.length);\n                break;\n              }\n              addedLine.rightHighlighted = CFRangeMake(addedRange.location - range.location, range.location + range.length - addedRange.location);\n              addedRange = CFRangeMake(range.location + range.length, addedRange.location + addedRange.length - range.location - range.length);\n            }\n            addedLine = [_lines objectAtIndex:addedIndex++];\n            XLOG_DEBUG_CHECK(addedLine.rightWrapped);\n          }\n          --addedCount;\n        }\n      }\n    };\n    [self.patch\n        enumerateUsingBeginHunkHandler:^(NSUInteger oldLineNumber, NSUInteger oldLineCount, NSUInteger newLineNumber, NSUInteger newLineCount) {\n          NSString* string = [[NSString alloc] initWithFormat:@\"@@ -%lu,%lu +%lu,%lu @@\", oldLineNumber, oldLineCount, newLineNumber, newLineCount];\n          CFAttributedStringRef attributedString = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)string, self.textAttributes);\n          CTLineRef line = CTLineCreateWithAttributedString(attributedString);\n          CFRelease(attributedString);\n\n          GISplitDiffLine* diffLine = [[GISplitDiffLine alloc] initWithType:kDiffLineType_Separator];\n          diffLine.leftString = string;\n          diffLine.leftLine = line;  // Transfer ownership to GISplitDiffLine\n          [_lines addObject:diffLine];\n\n          addedCount = 0;\n          deletedCount = 0;\n          startIndex = NSNotFound;\n        }\n        lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n          NSString* string;\n          if (contentBytes[contentLength - 1] != '\\n') {\n            size_t length = strlen(GIDiffViewMissingNewlinePlaceholder);\n            char* buffer = malloc(contentLength + length);\n            bcopy(contentBytes, buffer, contentLength);\n            bcopy(GIDiffViewMissingNewlinePlaceholder, &buffer[contentLength], length);\n            string = [[NSString alloc] initWithBytesNoCopy:buffer length:(contentLength + length) encoding:NSUTF8StringEncoding freeWhenDone:YES];\n          } else {\n            string = [[NSString alloc] initWithBytesNoCopy:(void*)contentBytes length:contentLength encoding:NSUTF8StringEncoding freeWhenDone:NO];\n          }\n          if (string == nil) {\n            string = @\"<LINE IS NOT VALID UTF-8>\\n\";\n            XLOG_DEBUG_UNREACHABLE();\n          }\n\n          switch (change) {\n            case kGCLineDiffChange_Unmodified:\n              highlightBlock();\n              addedCount = 0;\n              deletedCount = 0;\n              startIndex = NSNotFound;\n              break;\n\n            case kGCLineDiffChange_Deleted:\n              ++deletedCount;\n              break;\n\n            case kGCLineDiffChange_Added:\n              ++addedCount;\n              break;\n          }\n\n          CFAttributedStringRef attributedString = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)string, self.textAttributes);\n          CTTypesetterRef typeSetter = CTTypesetterCreateWithAttributedString(attributedString);\n          CFIndex length = CFAttributedStringGetLength(attributedString);\n          CFIndex offset = 0;\n          BOOL isWrappedLine = NO;\n          do {\n            CFIndex index = CTTypesetterSuggestLineBreak(typeSetter, offset, lineWidth);\n            CTLineRef line = CTTypesetterCreateLine(typeSetter, CFRangeMake(offset, index));\n            switch (change) {  // Assume the order of repeating changes is always [unmodified -> deleted -> added -> unmodified]\n\n              case kGCLineDiffChange_Unmodified: {\n                GISplitDiffLine* diffLine = [[GISplitDiffLine alloc] initWithType:kDiffLineType_Context];\n                [_lines addObject:diffLine];\n                diffLine.leftNumber = oldLineNumber;\n                diffLine.leftString = string;\n                diffLine.leftLine = line;  // Transfer ownership to GISplitDiffLine\n                diffLine.leftWrapped = isWrappedLine;\n                diffLine.rightNumber = newLineNumber;\n                diffLine.rightString = string;\n                diffLine.rightLine = CFRetain(line);  // Transfer ownership to GISplitDiffLine\n                diffLine.rightWrapped = isWrappedLine;\n                lineIndex = NSNotFound;\n                break;\n              }\n\n              case kGCLineDiffChange_Deleted: {\n                if (lineIndex == NSNotFound) {\n                  XLOG_DEBUG_CHECK(!isWrappedLine);\n                  lineIndex = _lines.count;\n                }\n                GISplitDiffLine* diffLine = [[GISplitDiffLine alloc] initWithType:kDiffLineType_Change];\n                [_lines addObject:diffLine];\n                diffLine.leftNumber = oldLineNumber;\n                diffLine.leftString = string;\n                diffLine.leftLine = line;  // Transfer ownership to GISplitDiffLine\n                diffLine.leftWrapped = isWrappedLine;\n                if (!isWrappedLine) {\n                  diffLine.leftContentBytes = contentBytes;\n                  diffLine.leftContentLength = contentLength;\n                }\n                break;\n              }\n\n              case kGCLineDiffChange_Added: {\n                GISplitDiffLine* diffLine;\n                if (lineIndex != NSNotFound) {\n                  if (startIndex == NSNotFound) {\n                    startIndex = lineIndex;\n                  }\n                  diffLine = _lines[lineIndex];\n                  lineIndex += 1;\n                  if (lineIndex == _lines.count) {\n                    lineIndex = NSNotFound;\n                  }\n                } else {\n                  diffLine = [[GISplitDiffLine alloc] initWithType:kDiffLineType_Change];\n                  [_lines addObject:diffLine];\n                }\n                diffLine.rightNumber = newLineNumber;\n                diffLine.rightString = string;\n                diffLine.rightLine = line;  // Transfer ownership to GISplitDiffLine\n                diffLine.rightWrapped = isWrappedLine;\n                if (!isWrappedLine) {\n                  diffLine.rightContentBytes = contentBytes;\n                  diffLine.rightContentLength = contentLength;\n                }\n                break;\n              }\n            }\n            offset += index;\n            isWrappedLine = YES;\n          } while (offset < length);\n          CFRelease(typeSetter);\n          CFRelease(attributedString);\n        }\n        endHunkHandler:^{\n          highlightBlock();\n        }];\n    _size = NSMakeSize(width, _lines.count * self.lineHeight + kTextBottomPadding);\n  }\n  return _size.height;\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  NSRect bounds = self.bounds;\n  CGFloat offset = floor(bounds.size.width / 2);\n  CGFloat lineStartX = textLineStartX();\n  CGFloat lineNumberMargin = textLineNumberMargin();\n\n  CGContextRef context = [[NSGraphicsContext currentContext] CGContext];\n  CGContextSaveGState(context);\n\n  [self updateLayoutForWidth:bounds.size.width];\n\n  [self.backgroundColor setFill];\n  CGContextFillRect(context, dirtyRect);\n\n  void (^drawHorizontalSeparator)(CGFloat) = ^(CGFloat y) {\n    CGContextSaveGState(context);\n    CGContextSetStrokeColorWithColor(context, NSColor.gridColor.CGColor);\n\n    CGFloat pattern[] = {lineNumberMargin - 1, 1, offset - lineNumberMargin - 1, 1, lineNumberMargin - 1, 1, CGFLOAT_MAX};\n    size_t count = sizeof(pattern) / sizeof(*pattern);\n    CGContextSetLineDash(context, 0, pattern, count);\n\n    CGContextMoveToPoint(context, 0, y);\n    CGContextAddLineToPoint(context, bounds.size.width, y);\n    CGContextStrokePath(context);\n\n    CGContextRestoreGState(context);\n  };\n\n  if (_lines.count) {\n    drawHorizontalSeparator(0.5);\n\n    NSColor* selectedColor = self.window.keyWindow && (self.window.firstResponder == self) ? NSColor.selectedControlColor : NSColor.unemphasizedSelectedContentBackgroundColor;\n    CGContextSetTextMatrix(context, CGAffineTransformIdentity);\n    NSUInteger count = _lines.count;\n    NSUInteger start = MIN(MAX(count - (dirtyRect.origin.y + dirtyRect.size.height - kTextBottomPadding) / self.lineHeight, 0), count);\n    NSUInteger end = MIN(MAX(count - (dirtyRect.origin.y - kTextBottomPadding) / self.lineHeight + 1, 0), count);\n    for (NSUInteger i = start; i < end; ++i) {\n      __unsafe_unretained GISplitDiffLine* diffLine = _lines[i];\n      CTLineRef leftLine = diffLine.leftLine;\n      CTLineRef rightLine = diffLine.rightLine;\n      CGFloat linePosition = (count - 1 - i) * self.lineHeight + kTextBottomPadding;\n      CGFloat textPosition = linePosition + self.lineDescent;\n      if (diffLine.type == kDiffLineType_Separator) {\n        [NSColor.gitUpDiffSeparatorBackgroundColor setFill];\n        CGContextFillRect(context, CGRectMake(0, linePosition + 1, bounds.size.width, self.lineHeight - 2));\n\n        drawHorizontalSeparator(linePosition + 0.5);\n        drawHorizontalSeparator(linePosition + self.lineHeight - 0.5);\n\n        [NSColor.tertiaryLabelColor setFill];\n        CGContextSetTextPosition(context, lineNumberMargin + round(0.4 * GIFontSize()), textPosition);\n        CTLineDraw(leftLine, context);\n      } else {\n        if (leftLine) {\n          if (!_rightSelection && [_selectedLines containsIndex:diffLine.leftNumber]) {\n            [selectedColor setFill];\n            CGContextFillRect(context, CGRectMake(0, linePosition, offset, self.lineHeight));\n          } else if (diffLine.type != kDiffLineType_Context) {\n            [NSColor.gitUpDiffDeletedTextBackgroundColor setFill];\n            CGContextFillRect(context, CGRectMake(0, linePosition, offset, self.lineHeight));\n\n            CFRange highlighted = diffLine.leftHighlighted;\n            if (highlighted.length) {\n              [NSColor.gitUpDiffDeletedTextHighlightColor setFill];\n              CFRange range = CTLineGetStringRange(leftLine);\n              CGFloat startX = lineStartX + round(CTLineGetOffsetForStringIndex(leftLine, range.location + highlighted.location, NULL));\n              CGFloat endX = lineStartX + round(CTLineGetOffsetForStringIndex(leftLine, range.location + highlighted.location + highlighted.length, NULL));\n              CGContextFillRect(context, CGRectMake(startX, linePosition, endX - startX, self.lineHeight));\n            }\n          }\n        }\n        if (rightLine) {\n          if (_rightSelection && [_selectedLines containsIndex:diffLine.rightNumber]) {\n            [selectedColor setFill];\n            CGContextFillRect(context, CGRectMake(offset, linePosition, bounds.size.width, self.lineHeight));\n          } else if (diffLine.type != kDiffLineType_Context) {\n            [NSColor.gitUpDiffAddedTextBackgroundColor setFill];\n            CGContextFillRect(context, CGRectMake(offset, linePosition, bounds.size.width, self.lineHeight));\n\n            CFRange highlighted = diffLine.rightHighlighted;\n            if (highlighted.length) {\n              [NSColor.gitUpDiffAddedTextHighlightColor setFill];\n              CFRange range = CTLineGetStringRange(rightLine);\n              CGFloat startX = offset + lineStartX + round(CTLineGetOffsetForStringIndex(rightLine, range.location + highlighted.location, NULL));\n              CGFloat endX = offset + lineStartX + round(CTLineGetOffsetForStringIndex(rightLine, range.location + highlighted.location + highlighted.length, NULL));\n              CGContextFillRect(context, CGRectMake(startX, linePosition, endX - startX, self.lineHeight));\n            }\n          }\n        }\n\n        if (leftLine) {\n          if (!diffLine.leftWrapped) {\n            [NSColor.tertiaryLabelColor setFill];\n            CFAttributedStringRef string = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)(diffLine.leftNumber >= 100000 ? @\"9999…\" : [NSString stringWithFormat:@\"%5lu\", diffLine.leftNumber]), self.textAttributes);\n            CTLineRef prefix = CTLineCreateWithAttributedString(string);\n            CGContextSetTextPosition(context, 5, textPosition);\n            CTLineDraw(prefix, context);\n            CFRelease(prefix);\n            CFRelease(string);\n          }\n\n          if (!_rightSelection && _selectedText.length && (i >= _selectedText.location) && (i < _selectedText.location + _selectedText.length)) {\n            [selectedColor setFill];\n            CGFloat startX = lineStartX;\n            CGFloat endX = offset;\n            if (i == _selectedText.location) {\n              startX = lineStartX + round(CTLineGetOffsetForStringIndex(leftLine, _selectedTextStart, NULL));\n            }\n            if (i == _selectedText.location + _selectedText.length - 1) {\n              endX = lineStartX + round(CTLineGetOffsetForStringIndex(leftLine, _selectedTextEnd, NULL));\n            }\n            CGContextFillRect(context, CGRectMake(startX, linePosition, endX - startX, self.lineHeight));\n          }\n\n          [NSColor.labelColor set];\n          CGContextSetTextPosition(context, lineStartX, textPosition);\n          CTLineDraw(leftLine, context);\n        }\n        if (rightLine) {\n          if (!diffLine.rightWrapped) {\n            [NSColor.tertiaryLabelColor setFill];\n            CFAttributedStringRef string = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)(diffLine.rightNumber >= 100000 ? @\"9999…\" : [NSString stringWithFormat:@\"%5lu\", diffLine.rightNumber]), self.textAttributes);\n            CTLineRef prefix = CTLineCreateWithAttributedString(string);\n            CGContextSetTextPosition(context, offset + 5, textPosition);\n            CTLineDraw(prefix, context);\n            CFRelease(prefix);\n            CFRelease(string);\n          }\n\n          if (_rightSelection && _selectedText.length && (i >= _selectedText.location) && (i < _selectedText.location + _selectedText.length)) {\n            [selectedColor setFill];\n            CGFloat startX = offset + lineStartX;\n            CGFloat endX = bounds.size.width;\n            if (i == _selectedText.location) {\n              startX = offset + lineStartX + round(CTLineGetOffsetForStringIndex(rightLine, _selectedTextStart, NULL));\n            }\n            if (i == _selectedText.location + _selectedText.length - 1) {\n              endX = offset + lineStartX + round(CTLineGetOffsetForStringIndex(rightLine, _selectedTextEnd, NULL));\n            }\n            CGContextFillRect(context, CGRectMake(startX, linePosition, endX - startX, self.lineHeight));\n          }\n\n          [NSColor.labelColor set];\n          CGContextSetTextPosition(context, offset + lineStartX, textPosition);\n          CTLineDraw(rightLine, context);\n        }\n      }\n    }\n  }\n\n  [NSColor.gridColor setStroke];\n  CGContextMoveToPoint(context, lineNumberMargin - 0.5, 0);\n  CGContextAddLineToPoint(context, lineNumberMargin - 0.5, bounds.size.height);\n  CGContextStrokePath(context);\n  CGContextMoveToPoint(context, offset - 0.5, 0);\n  CGContextAddLineToPoint(context, offset - 0.5, bounds.size.height);\n  CGContextStrokePath(context);\n  CGContextMoveToPoint(context, offset + lineNumberMargin - 0.5, 0);\n  CGContextAddLineToPoint(context, offset + lineNumberMargin - 0.5, bounds.size.height);\n  CGContextStrokePath(context);\n\n  CGContextRestoreGState(context);\n}\n\n- (void)resetCursorRects {\n  NSRect bounds = self.bounds;\n  CGFloat offset = floor(bounds.size.width / 2);\n  CGFloat lineStartX = textLineStartX();\n  [self addCursorRect:NSMakeRect(lineStartX, 0, offset - lineStartX, bounds.size.height)\n               cursor:[NSCursor IBeamCursor]];\n  [self addCursorRect:NSMakeRect(offset + lineStartX, 0, bounds.size.width - offset - lineStartX, bounds.size.height)\n               cursor:[NSCursor IBeamCursor]];\n}\n\n- (BOOL)hasSelection {\n  return _selectedLines.count || _selectedText.length;\n}\n\n- (BOOL)hasSelectedText {\n  return _selectedText.length ? YES : NO;\n}\n\n- (BOOL)hasSelectedLines {\n  return _selectedLines.count ? YES : NO;\n}\n\n- (void)clearSelection {\n  if (_selectedLines.count) {\n    [_selectedLines removeAllIndexes];\n    _selectedText.length = 0;\n    [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n\n    [self.delegate diffViewDidChangeSelection:self];\n  }\n}\n\n- (void)getSelectedText:(NSString**)text oldLines:(NSIndexSet**)oldLines newLines:(NSIndexSet**)newLines {\n  if (text) {\n    if (_selectedText.length > 0) {\n      XLOG_DEBUG_CHECK(!_selectedLines.count);\n      if (_selectedText.length == 1) {\n        GISplitDiffLine* diffLine = _lines[_selectedText.location];\n        NSString* string = _rightSelection ? diffLine.rightString : diffLine.leftString;\n        *text = [string substringWithRange:NSMakeRange(_selectedTextStart, _selectedTextEnd - _selectedTextStart)];\n      } else {\n        *text = [[NSMutableString alloc] init];\n        for (NSUInteger i = _selectedText.location; i < _selectedText.location + _selectedText.length; ++i) {\n          GISplitDiffLine* diffLine = _lines[i];\n          NSString* string = _rightSelection ? diffLine.rightString : diffLine.leftString;\n          if (string) {\n            CFRange range = CTLineGetStringRange(_rightSelection ? diffLine.rightLine : diffLine.leftLine);\n            if (i == _selectedText.location) {\n              [(NSMutableString*)*text appendString:[string substringWithRange:NSMakeRange(_selectedTextStart, range.location + range.length - _selectedTextStart)]];\n            } else if (i == _selectedText.location + _selectedText.length - 1) {\n              [(NSMutableString*)*text appendString:[string substringWithRange:NSMakeRange(range.location, _selectedTextEnd - range.location)]];\n            } else {\n              [(NSMutableString*)*text appendString:[string substringWithRange:NSMakeRange(range.location, range.length)]];\n            }\n          }\n        }\n      }\n    }\n    if (_selectedLines.count) {\n      XLOG_DEBUG_CHECK(!_selectedText.length);\n      *text = [[NSMutableString alloc] init];\n      NSUInteger lastLineNumber = NSNotFound;\n      for (GISplitDiffLine* diffLine in _lines) {\n        if (_rightSelection) {\n          if ([_selectedLines containsIndex:diffLine.rightNumber] && (lastLineNumber != diffLine.rightNumber)) {\n            [(NSMutableString*)*text appendString:diffLine.rightString];\n            lastLineNumber = diffLine.rightNumber;\n          }\n        } else {\n          if ([_selectedLines containsIndex:diffLine.leftNumber] && (lastLineNumber != diffLine.leftNumber)) {\n            [(NSMutableString*)*text appendString:diffLine.leftString];\n            lastLineNumber = diffLine.leftNumber;\n          }\n        }\n      }\n    }\n  }\n  if (oldLines) {\n    *oldLines = [NSMutableIndexSet indexSet];\n  }\n  if (newLines) {\n    *newLines = [NSMutableIndexSet indexSet];\n  }\n  if (oldLines || newLines) {\n    [_selectedLines enumerateIndexesUsingBlock:^(NSUInteger index, BOOL* stop) {\n      if (_rightSelection) {\n        [(NSMutableIndexSet*)*newLines addIndex:index];\n      } else {\n        [(NSMutableIndexSet*)*oldLines addIndex:index];\n      }\n    }];\n  }\n}\n\n- (void)mouseDown:(NSEvent*)event {\n  NSRect bounds = self.bounds;\n  CGFloat offset = floor(bounds.size.width / 2);\n  NSPoint location = [self convertPoint:event.locationInWindow fromView:nil];\n\n  // Reset state\n  _selectionMode = kSelectionMode_None;\n  _startLines = nil;\n  _startIndex = NSNotFound;\n  if (!_lines.count) {\n    return;\n  }\n\n  // Check if mouse is in the content area\n  NSInteger y = _lines.count - (location.y - kTextBottomPadding) / self.lineHeight;\n  if ((y >= 0) && (y < (NSInteger)_lines.count)) {\n    GISplitDiffLine* diffLine = _lines[y];\n\n    // Clear selection if changing side\n    BOOL rightSelection = (location.x >= offset);\n    if (rightSelection != _rightSelection) {\n      [_selectedLines removeAllIndexes];\n      _selectedText.length = 0;\n    }\n    _rightSelection = rightSelection;\n\n    // Set selection mode according to modifier flags\n    if (event.modifierFlags & NSEventModifierFlagCommand) {\n      _selectionMode = kSelectionMode_Inverse;\n    } else if ((event.modifierFlags & NSEventModifierFlagShift) && _selectedLines.count) {\n      _selectionMode = kSelectionMode_Extend;\n    } else {\n      _selectionMode = kSelectionMode_Replace;\n    }\n\n    CGFloat lineStartX = textLineStartX();\n    CGFloat lineNumberMargin = textLineNumberMargin();\n\n    // Check if mouse is in the margin area\n    if (((location.x >= 0) && (location.x < lineNumberMargin)) || ((location.x >= offset) && (location.x < offset + lineNumberMargin))) {\n      // Reset selection\n      _selectedText.length = 0;\n      if (_selectionMode == kSelectionMode_Replace) {\n        [_selectedLines removeAllIndexes];\n      }\n\n      // Update selected lines\n      NSUInteger index = (_rightSelection ? diffLine.rightNumber : diffLine.leftNumber);\n      if (diffLine.type != kDiffLineType_Separator) {  // Ignore separators\n        _startIndex = index;\n      } else {\n        _selectionMode = kSelectionMode_None;\n      }\n      switch (_selectionMode) {\n        case kSelectionMode_None:\n          break;\n\n        case kSelectionMode_Replace: {\n          XLOG_DEBUG_CHECK(_selectedLines.count == 0);\n          [_selectedLines addIndex:index];\n          _startLines = [_selectedLines copy];\n          break;\n        }\n\n        case kSelectionMode_Extend: {\n          XLOG_DEBUG_CHECK(_selectedLines.count > 0);\n          _startLines = [_selectedLines copy];\n          if (index > _startLines.lastIndex) {\n            [_selectedLines addIndexesInRange:NSMakeRange(_startLines.lastIndex, index - _startLines.lastIndex + 1)];\n          } else if (index < _startLines.firstIndex) {\n            [_selectedLines addIndexesInRange:NSMakeRange(index, _startLines.firstIndex - index + 1)];\n          }\n          break;\n        }\n\n        case kSelectionMode_Inverse: {\n          _startLines = [_selectedLines copy];\n          if ([_selectedLines containsIndex:index]) {\n            [_selectedLines removeIndex:index];\n          } else {\n            [_selectedLines addIndex:index];\n          }\n          break;\n        }\n      }\n      [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n\n    }\n    // Otherwise check if mouse is is in the diff area\n    else if (((location.x >= lineStartX) && (location.x < offset)) || (location.x >= offset + lineStartX)) {\n      // Reset selection\n      _selectedText.length = 0;\n      [_selectedLines removeAllIndexes];\n\n      // Update selected text\n      CTLineRef line = _rightSelection ? diffLine.rightLine : diffLine.leftLine;\n      CFIndex index = CTLineGetStringIndexForPosition(line, CGPointMake(location.x - ((_rightSelection ? offset : 0) + lineStartX), self.lineHeight / 2));\n      if (index != kCFNotFound) {\n        _startIndex = y;\n        _startOffset = index;\n        if (event.clickCount > 1) {\n          NSString* string = _rightSelection ? diffLine.rightString : diffLine.leftString;\n          CFRange range = CTLineGetStringRange(line);\n          [string enumerateSubstringsInRange:NSMakeRange(range.location, range.length)\n                                     options:NSStringEnumerationByWords\n                                  usingBlock:^(NSString* substring, NSRange substringRange, NSRange enclosingRange, BOOL* stop) {\n                                    if ((index >= (CFIndex)substringRange.location) && (index <= (CFIndex)(substringRange.location + substringRange.length))) {\n                                      _selectedText = NSMakeRange(y, 1);\n                                      _selectedTextStart = substringRange.location;\n                                      _selectedTextEnd = substringRange.location + substringRange.length;\n                                      _startIndex = _selectedText.location;\n                                      _startOffset = _selectedTextStart;\n                                      *stop = YES;\n                                    }\n                                  }];\n        }\n      } else {\n        _selectionMode = kSelectionMode_None;\n      }\n      [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n\n    } else {\n      _selectionMode = kSelectionMode_None;\n    }\n\n  }\n  // Otherwise clear entire selection\n  else {\n    [self clearSelection];\n  }\n}\n\n- (void)mouseDragged:(NSEvent*)event {\n  if (_selectionMode == kSelectionMode_None) {\n    return;\n  }\n  NSRect bounds = self.bounds;\n  CGFloat offset = floor(bounds.size.width / 2);\n  NSPoint location = [self convertPoint:event.locationInWindow fromView:nil];\n\n  // Check if mouse is in the content area\n  NSInteger y = _lines.count - (location.y - kTextBottomPadding) / self.lineHeight;\n  if ((y >= 0) && (y < (NSInteger)_lines.count)) {\n    GISplitDiffLine* diffLine = _lines[y];\n\n    // Check if we are in line-selection mode\n    if (_startLines) {\n      if (diffLine.type != kDiffLineType_Separator) {  // Ignore separators\n\n        // Update selected lines\n        if (_rightSelection ? diffLine.rightLine : diffLine.leftLine) {\n          NSUInteger index = (_rightSelection ? diffLine.rightNumber : diffLine.leftNumber);\n          switch (_selectionMode) {\n            case kSelectionMode_None:\n              break;\n\n            case kSelectionMode_Replace:\n            case kSelectionMode_Extend: {\n              XLOG_DEBUG_CHECK(_startLines.count > 0);\n              [_selectedLines removeAllIndexes];\n              [_selectedLines addIndexes:_startLines];\n              if (index > _startLines.lastIndex) {\n                [_selectedLines addIndexesInRange:NSMakeRange(_startLines.lastIndex, index - _startLines.lastIndex + 1)];\n              } else if (index < _startLines.firstIndex) {\n                [_selectedLines addIndexesInRange:NSMakeRange(index, _startLines.firstIndex - index + 1)];\n              }\n              break;\n            }\n\n            case kSelectionMode_Inverse: {\n              [_selectedLines removeAllIndexes];\n              [_selectedLines addIndexes:_startLines];\n              for (NSUInteger i = MIN(_startIndex, index); i <= MAX(_startIndex, index); ++i) {\n                if (![_selectedLines containsIndex:i]) {\n                  [_selectedLines addIndex:i];\n                } else {\n                  [_selectedLines removeIndex:i];\n                }\n              }\n              break;\n            }\n          }\n          [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n        }\n      }\n    }\n    // Otherwise we are in text-selection mode\n    else {\n      CTLineRef line = _rightSelection ? diffLine.rightLine : diffLine.leftLine;\n      CFIndex index = CTLineGetStringIndexForPosition(line, CGPointMake(location.x - ((_rightSelection ? offset : 0) + textLineStartX()), self.lineHeight / 2));\n      if (index != kCFNotFound) {\n        // Update selected text\n        if ((NSUInteger)y > _startIndex) {\n          _selectedText = NSMakeRange(_startIndex, y - _startIndex + 1);\n          _selectedTextStart = _startOffset;\n          _selectedTextEnd = index;\n        } else if ((NSUInteger)y < _startIndex) {\n          _selectedText = NSMakeRange(y, _startIndex - y + 1);\n          _selectedTextStart = index;\n          _selectedTextEnd = _startOffset;\n        } else {\n          _selectedText = NSMakeRange(_startIndex, 1);\n          if ((NSUInteger)index > _startOffset) {\n            _selectedTextStart = _startOffset;\n            _selectedTextEnd = index;\n          } else if ((NSUInteger)index < _startOffset) {\n            _selectedTextStart = index;\n            _selectedTextEnd = _startOffset;\n          }\n        }\n        [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n      }\n    }\n  }\n\n  // Scroll if needed\n  [self autoscroll:event];\n}\n\n- (void)mouseUp:(NSEvent*)event {\n  if (_lines.count) {\n    [self.delegate diffViewDidChangeSelection:self];  // TODO: Avoid calling delegate if seleciton hasn't actually changed\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIUnifiedDiffView.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIDiffView.h\"\n\n@interface GIUnifiedDiffView : GIDiffView\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/GIUnifiedDiffView.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIPrivate.h\"\n#import \"GIAppKit.h\"\n\n#define kTextBottomPadding 0\n\nstatic CGFloat textLineNumberMargin(void) {\n  return round(4 * GIFontSize());\n}\n\nstatic CGFloat textInsetLeft(void) {\n  return round(1.5 * GIFontSize());\n}\n\nstatic CGFloat textInsetRight(void) {\n  return round(0.5 * GIFontSize());\n}\n\nstatic CGFloat textLineStartX(void) {\n  return 2 * textLineNumberMargin() + textInsetLeft();\n}\n\ntypedef NS_ENUM(NSUInteger, SelectionMode) {\n  kSelectionMode_None = 0,\n  kSelectionMode_Replace,\n  kSelectionMode_Extend,\n  kSelectionMode_Inverse\n};\n\ntypedef struct {\n  NSUInteger index;\n  CFRange range;  // Absolute\n  GCLineDiffChange change;\n  NSUInteger oldLineNumber;\n  NSUInteger newLineNumber;\n  CFRange highlighted;  // Relative to line\n\n  const char* contentBytes;  // Not valid outside of patch generation\n  NSUInteger contentLength;  // Not valid outside of patch generation\n} LineInfo;\n\n@implementation GIUnifiedDiffView {\n  CFMutableAttributedStringRef _string;\n  NSUInteger _lineInfoMax;\n  NSUInteger _lineInfoCount;\n  LineInfo* _lineInfoList;\n  CTFramesetterRef _framesetter;\n  CTFrameRef _frame;\n  NSSize _size;\n\n  NSMutableIndexSet* _selectedLines;\n  CFRange _selectedText;\n  SelectionMode _selectionMode;\n  NSIndexSet* _startLines;\n  NSUInteger _deletedIndex;\n}\n\n- (void)didFinishInitializing {\n  [super didFinishInitializing];\n\n  _selectedLines = [[NSMutableIndexSet alloc] init];\n}\n\n- (void)dealloc {\n  if (_frame) {\n    CFRelease(_frame);\n  }\n  if (_framesetter) {\n    CFRelease(_framesetter);\n  }\n  if (_string) {\n    CFRelease(_string);\n  }\n  if (_lineInfoList) {\n    free(_lineInfoList);\n  }\n}\n\n- (BOOL)isEmpty {\n  return (_string && !CFAttributedStringGetLength(_string));\n}\n\n- (void)_addLineWithString:(CFStringRef)string\n                    change:(GCLineDiffChange)change\n             oldLineNumber:(NSUInteger)oldLineNumber\n             newLineNumber:(NSUInteger)newLineNumber\n              contentBytes:(const char*)contentBytes\n             contentLength:(NSUInteger)contentLength {\n  CFIndex length = CFAttributedStringGetLength(_string);\n  CFAttributedStringReplaceString(_string, CFRangeMake(length, 0), string);\n\n  if (_lineInfoCount == _lineInfoMax) {\n    _lineInfoMax *= 2;\n    _lineInfoList = realloc(_lineInfoList, _lineInfoMax * sizeof(LineInfo));\n  }\n  LineInfo* info = &_lineInfoList[_lineInfoCount];\n  info->index = _lineInfoCount;\n  info->range = CFRangeMake(length, CFStringGetLength(string));\n  info->change = change;\n  info->oldLineNumber = oldLineNumber;\n  info->newLineNumber = newLineNumber;\n  info->highlighted.length = 0;\n  info->contentBytes = contentBytes;\n  info->contentLength = contentLength;\n  _lineInfoCount += 1;\n}\n\n- (void)didUpdatePatch {\n  [super didUpdatePatch];\n\n  if (_frame) {\n    CFRelease(_frame);\n    _frame = NULL;\n  }\n  if (_framesetter) {\n    CFRelease(_framesetter);\n    _framesetter = NULL;\n  }\n  if (_string) {\n    CFRelease(_string);\n    _string = NULL;\n  }\n  if (_lineInfoList) {\n    free(_lineInfoList);\n    _lineInfoList = NULL;\n  }\n\n  if (self.patch) {\n    _string = CFAttributedStringCreateMutable(kCFAllocatorDefault, 0);\n    _lineInfoCount = 0;\n    _lineInfoMax = 512;\n    _lineInfoList = malloc(_lineInfoMax * sizeof(LineInfo));\n\n    __block NSUInteger deletedIndex = NSNotFound;\n    __block NSUInteger addedIndex = NSNotFound;\n    void (^highlightBlock)(NSUInteger) = ^(NSUInteger index) {\n      if ((deletedIndex != NSNotFound) && (addedIndex != NSNotFound) && (index - addedIndex == addedIndex - deletedIndex)) {\n        for (NSUInteger i = 0; i < addedIndex - deletedIndex; ++i) {\n          LineInfo* deletedInfo = &_lineInfoList[deletedIndex + i];\n          LineInfo* addedInfo = &_lineInfoList[addedIndex + i];\n          GIComputeHighlightRanges(deletedInfo->contentBytes, deletedInfo->contentLength, deletedInfo->range.length, &deletedInfo->highlighted,\n                                   addedInfo->contentBytes, addedInfo->contentLength, addedInfo->range.length, &addedInfo->highlighted);\n        }\n      }\n    };\n    [self.patch\n        enumerateUsingBeginHunkHandler:^(NSUInteger oldLineNumber, NSUInteger oldLineCount, NSUInteger newLineNumber, NSUInteger newLineCount) {\n          CFStringRef string = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR(\"@@ -%lu,%lu +%lu,%lu @@\\n\"), oldLineNumber, oldLineCount, newLineNumber, newLineCount);\n          [self _addLineWithString:string change:NSNotFound oldLineNumber:oldLineNumber newLineNumber:newLineNumber contentBytes:NULL contentLength:0];\n          CFRelease(string);\n\n          deletedIndex = NSNotFound;\n          addedIndex = NSNotFound;\n        }\n        lineHandler:^(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber, const char* contentBytes, NSUInteger contentLength) {\n          CFStringRef string;\n          if (contentBytes[contentLength - 1] != '\\n') {\n            size_t length = strlen(GIDiffViewMissingNewlinePlaceholder);\n            char* buffer = malloc(contentLength + length);\n            bcopy(contentBytes, buffer, contentLength);\n            bcopy(GIDiffViewMissingNewlinePlaceholder, &buffer[contentLength], length);\n            string = CFStringCreateWithBytesNoCopy(kCFAllocatorDefault, (const UInt8*)buffer, (contentLength + length), kCFStringEncodingUTF8, false, kCFAllocatorMalloc);\n          } else {\n            string = CFStringCreateWithBytesNoCopy(kCFAllocatorDefault, (const UInt8*)contentBytes, contentLength, kCFStringEncodingUTF8, false, kCFAllocatorNull);\n          }\n          if (string == NULL) {\n            string = CFSTR(\"<LINE IS NOT VALID UTF-8>\\n\");\n            XLOG_DEBUG_UNREACHABLE();\n          }\n          [self _addLineWithString:string change:change oldLineNumber:oldLineNumber newLineNumber:newLineNumber contentBytes:contentBytes contentLength:contentLength];\n          CFRelease(string);\n\n          if (change == kGCLineDiffChange_Deleted) {\n            if (deletedIndex == NSNotFound) {\n              deletedIndex = _lineInfoCount - 1;\n            }\n          } else if (change == kGCLineDiffChange_Added) {\n            if (addedIndex == NSNotFound) {\n              addedIndex = _lineInfoCount - 1;\n            }\n          } else {\n            highlightBlock(_lineInfoCount - 1);\n            deletedIndex = NSNotFound;\n            addedIndex = NSNotFound;\n          }\n        }\n        endHunkHandler:^{\n          highlightBlock(_lineInfoCount);\n        }];\n  }\n}\n\n- (CGFloat)updateLayoutForWidth:(CGFloat)width {\n  if (_string &&\n      ((NSInteger)width != (NSInteger)_size.width ||\n       (CFAttributedStringGetLength(_string) > 0 && !CFEqual(CFAttributedStringGetAttributes(_string, 0, NULL), self.textAttributes)))) {\n    if (_frame) {\n      CFRelease(_frame);\n    }\n    if (_framesetter) {\n      CFRelease(_framesetter);\n    }\n    CFAttributedStringSetAttributes(_string, CFRangeMake(0, CFAttributedStringGetLength(_string)), self.textAttributes, false);\n    _framesetter = CTFramesetterCreateWithAttributedString(_string);\n    CGFloat textWidth = width - 2 * textLineNumberMargin() - textInsetLeft() - textInsetRight();\n    CGPathRef path = CGPathCreateWithRect(CGRectMake(0, 0, textWidth, CGFLOAT_MAX), NULL);\n    _frame = CTFramesetterCreateFrame(_framesetter, CFRangeMake(0, CFAttributedStringGetLength(_string)), path, NULL);\n    CGPathRelease(path);\n    _size = NSMakeSize(width, CFArrayGetCount(CTFrameGetLines(_frame)) * self.lineHeight + kTextBottomPadding);\n  }\n  return _size.height;\n}\n\n- (const LineInfo*)_infoForLineRange:(CFRange)lineRange {\n  const LineInfo* info = NULL;\n  CFRange range = CFRangeMake(0, _lineInfoCount);\n  while (range.length) {\n    CFIndex index = range.location + range.length / 2;\n    info = &_lineInfoList[index];\n    if (lineRange.location >= info->range.location + info->range.length) {\n      range = CFRangeMake(index, range.location + range.length - index);\n    } else if (lineRange.location + lineRange.length <= info->range.location) {\n      range = CFRangeMake(range.location, index - range.location);\n    } else {\n      break;\n    }\n  }\n  return info;\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  NSRect bounds = self.bounds;\n  CGContextRef context = [[NSGraphicsContext currentContext] CGContext];\n  CGContextSaveGState(context);\n\n  [self updateLayoutForWidth:bounds.size.width];\n\n  [self.backgroundColor setFill];\n  CGContextFillRect(context, dirtyRect);\n\n  CGFloat lineNumberMargin = textLineNumberMargin();\n  CGFloat lineStartX = textLineStartX();\n\n  void (^drawHorizontalSeparator)(CGFloat) = ^(CGFloat y) {\n    CGContextSaveGState(context);\n    CGContextSetStrokeColorWithColor(context, NSColor.gridColor.CGColor);\n\n    CGFloat pattern[] = {lineNumberMargin - 1, 1, lineNumberMargin - 1, 1, CGFLOAT_MAX};\n    size_t count = sizeof(pattern) / sizeof(*pattern);\n    CGContextSetLineDash(context, 0, pattern, count);\n\n    CGContextMoveToPoint(context, 0, y);\n    CGContextAddLineToPoint(context, bounds.size.width, y);\n    CGContextStrokePath(context);\n\n    CGContextRestoreGState(context);\n  };\n\n  if (_frame) {\n    drawHorizontalSeparator(0.5);\n\n    NSColor* selectedColor = self.window.keyWindow && (self.window.firstResponder == self) ? NSColor.selectedControlColor : NSColor.unemphasizedSelectedContentBackgroundColor;\n    CGContextSetTextMatrix(context, CGAffineTransformIdentity);\n    CFArrayRef lines = CTFrameGetLines(_frame);\n    CFIndex count = CFArrayGetCount(lines);\n    CFIndex start = MIN(MAX(count - (dirtyRect.origin.y + dirtyRect.size.height - kTextBottomPadding) / self.lineHeight, 0), count);\n    CFIndex end = MIN(MAX(count - (dirtyRect.origin.y - kTextBottomPadding) / self.lineHeight + 1, 0), count);\n    const LineInfo* info = NULL;\n    for (CFIndex i = start; i < end; ++i) {\n      CTLineRef line = CFArrayGetValueAtIndex(lines, i);\n      CFRange lineRange = CTLineGetStringRange(line);\n      CGFloat linePosition = (count - 1 - i) * self.lineHeight + kTextBottomPadding;\n      CGFloat textPosition = linePosition + self.lineDescent;\n\n      if (info) {\n        while (lineRange.location >= info->range.location + info->range.length) {\n          XLOG_DEBUG_CHECK(info != &_lineInfoList[_lineInfoCount - 1]);\n          ++info;\n        }\n      } else {\n        info = [self _infoForLineRange:lineRange];\n      }\n#ifdef __clang_analyzer__\n      if (!info) break;\n#endif\n\n      CGFloat lineTextInset = 2 * lineNumberMargin + round(0.4 * GIFontSize());\n\n      if ((NSUInteger)info->change != NSNotFound) {\n        if ([_selectedLines containsIndex:info->index]) {\n          [selectedColor setFill];\n          CGContextFillRect(context, CGRectMake(0, linePosition, bounds.size.width, self.lineHeight));\n        } else if (info->change != kGCLineDiffChange_Unmodified) {\n          if (info->change == kGCLineDiffChange_Deleted) {\n            [NSColor.gitUpDiffDeletedTextBackgroundColor setFill];\n          } else {\n            [NSColor.gitUpDiffAddedTextBackgroundColor setFill];\n          }\n          CGContextFillRect(context, CGRectMake(0, linePosition, bounds.size.width, self.lineHeight));\n\n          if (info->highlighted.length) {\n            if (info->change == kGCLineDiffChange_Deleted) {\n              [NSColor.gitUpDiffDeletedTextHighlightColor setFill];\n            } else {\n              [NSColor.gitUpDiffAddedTextHighlightColor setFill];\n            }\n            CGFloat startX = CTLineGetOffsetForStringIndex(line, info->range.location + info->highlighted.location, NULL);\n            CGFloat endX = CTLineGetOffsetForStringIndex(line, info->range.location + info->highlighted.location + info->highlighted.length, NULL);\n            if (endX > startX) {\n              startX = lineStartX + round(startX);\n              endX = lineStartX + round(endX);\n              CGContextFillRect(context, CGRectMake(startX, linePosition, endX - startX, self.lineHeight));\n            }\n          }\n        }\n\n        CGFloat lineNumberTextInset = round(0.5 * GIFontSize());\n\n        [NSColor.tertiaryLabelColor setFill];\n        if ((lineRange.location == info->range.location) && (info->oldLineNumber != NSNotFound)) {\n          CFAttributedStringRef string = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)(info->oldLineNumber >= 100000 ? @\"9999…\" : [NSString stringWithFormat:@\"%5lu\", info->oldLineNumber]), self.textAttributes);\n          CTLineRef prefix = CTLineCreateWithAttributedString(string);\n          CGContextSetTextPosition(context, lineNumberTextInset, textPosition);\n          CTLineDraw(prefix, context);\n          CFRelease(prefix);\n          CFRelease(string);\n\n          if (info->change == kGCLineDiffChange_Deleted) {\n            CGContextSetTextPosition(context, lineTextInset, textPosition);\n            CTLineDraw(self.deletedLine, context);\n          }\n        }\n        if ((lineRange.location == info->range.location) && (info->newLineNumber != NSNotFound)) {\n          CFAttributedStringRef string = CFAttributedStringCreate(kCFAllocatorDefault, (CFStringRef)(info->newLineNumber >= 100000 ? @\"9999…\" : [NSString stringWithFormat:@\"%5lu\", info->newLineNumber]), self.textAttributes);\n          CTLineRef prefix = CTLineCreateWithAttributedString(string);\n          CGContextSetTextPosition(context, lineNumberMargin + lineNumberTextInset, textPosition);\n          CTLineDraw(prefix, context);\n          CFRelease(prefix);\n          CFRelease(string);\n\n          if (info->change == kGCLineDiffChange_Added) {\n            CGContextSetTextPosition(context, lineTextInset, textPosition);\n            CTLineDraw(self.addedLine, context);\n          }\n        }\n\n        if (_selectedText.length && (_selectedText.location < lineRange.location + lineRange.length) && (_selectedText.location + _selectedText.length > lineRange.location)) {\n          [selectedColor setFill];\n          CGFloat startX = lineStartX;\n          CGFloat endX = bounds.size.width;\n          if (_selectedText.location > lineRange.location) {\n            startX = lineStartX + round(CTLineGetOffsetForStringIndex(line, _selectedText.location, NULL));\n          }\n          if (_selectedText.location + _selectedText.length < lineRange.location + lineRange.length) {\n            endX = lineStartX + round(CTLineGetOffsetForStringIndex(line, _selectedText.location + _selectedText.length, NULL));\n          }\n          CGContextFillRect(context, CGRectMake(startX, linePosition, endX - startX, self.lineHeight));\n        }\n\n        [NSColor.labelColor set];\n        CGContextSetTextPosition(context, lineStartX, textPosition);\n        CTLineDraw(line, context);\n      } else {\n        [NSColor.gitUpDiffSeparatorBackgroundColor setFill];\n        CGContextFillRect(context, CGRectMake(0, linePosition + 1, bounds.size.width, self.lineHeight - 2));\n\n        drawHorizontalSeparator(linePosition + 0.5);\n        drawHorizontalSeparator(linePosition + self.lineHeight - 0.5);\n\n        [NSColor.tertiaryLabelColor setFill];\n        CGContextSetTextPosition(context, lineTextInset, textPosition);\n        CTLineDraw(line, context);\n      }\n    }\n  }\n\n  [NSColor.gridColor setStroke];\n  CGFloat lineHorizontalPosition = lineNumberMargin - 0.5;\n  CGContextMoveToPoint(context, lineHorizontalPosition, 0);\n  CGContextAddLineToPoint(context, lineHorizontalPosition, bounds.size.height);\n  CGContextStrokePath(context);\n  CGContextMoveToPoint(context, 2 * lineHorizontalPosition, 0);\n  CGContextAddLineToPoint(context, 2 * lineHorizontalPosition, bounds.size.height);\n  CGContextStrokePath(context);\n\n  CGContextRestoreGState(context);\n}\n\n- (void)resetCursorRects {\n  NSRect bounds = self.bounds;\n  CGFloat lineNumberMargin = textLineNumberMargin();\n  [self addCursorRect:NSMakeRect(textLineStartX(), 0, bounds.size.width - 2 * lineNumberMargin - textInsetLeft(), bounds.size.height)\n               cursor:[NSCursor IBeamCursor]];\n}\n\n- (BOOL)hasSelection {\n  return _selectedLines.count || _selectedText.length;\n}\n\n- (BOOL)hasSelectedText {\n  return _selectedText.length ? YES : NO;\n}\n\n- (BOOL)hasSelectedLines {\n  return _selectedLines.count ? YES : NO;\n}\n\n- (void)clearSelection {\n  if (_selectedLines.count || _selectedText.length) {\n    [_selectedLines removeAllIndexes];\n    _selectedText.length = 0;\n    [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n\n    [self.delegate diffViewDidChangeSelection:self];\n  }\n}\n\n- (void)getSelectedText:(NSString**)text oldLines:(NSIndexSet**)oldLines newLines:(NSIndexSet**)newLines {\n  if (text) {\n    if (_selectedText.length > 0) {\n      XLOG_DEBUG_CHECK(!_selectedLines.count);\n      *text = [(NSString*)CFAttributedStringGetString(_string) substringWithRange:NSMakeRange(_selectedText.location, _selectedText.length)];\n    }\n    if (_selectedLines.count) {\n      XLOG_DEBUG_CHECK(!_selectedText.length);\n      *text = [[NSMutableString alloc] init];\n      [_selectedLines enumerateIndexesUsingBlock:^(NSUInteger index, BOOL* stop) {\n        const LineInfo* info = &_lineInfoList[index];\n        if ((NSUInteger)info->change != NSNotFound) {\n          [(NSMutableString*)*text appendString:[(NSString*)CFAttributedStringGetString(_string) substringWithRange:NSMakeRange(info->range.location, info->range.length)]];\n        }\n      }];\n    }\n  }\n  if (oldLines) {\n    *oldLines = [NSMutableIndexSet indexSet];\n  }\n  if (newLines) {\n    *newLines = [NSMutableIndexSet indexSet];\n  }\n  if (oldLines || newLines) {\n    [_selectedLines enumerateIndexesUsingBlock:^(NSUInteger index, BOOL* stop) {\n      const LineInfo* info = &_lineInfoList[index];\n      if ((NSUInteger)info->change != NSNotFound) {\n        if (oldLines && (info->oldLineNumber != NSNotFound)) {\n          [(NSMutableIndexSet*)*oldLines addIndex:info->oldLineNumber];\n        }\n        if (newLines && (info->newLineNumber != NSNotFound)) {\n          [(NSMutableIndexSet*)*newLines addIndex:info->newLineNumber];\n        }\n      }\n    }];\n  }\n}\n\n- (void)mouseDown:(NSEvent*)event {\n  NSPoint location = [self convertPoint:event.locationInWindow fromView:nil];\n\n  // Reset state\n  _selectionMode = kSelectionMode_None;\n  _startLines = nil;\n  _deletedIndex = NSNotFound;\n  if (_string == NULL) {\n    return;\n  }\n\n  // Check if mouse is in the content area\n  CFArrayRef lines = CTFrameGetLines(_frame);\n  CFIndex index = CFArrayGetCount(lines) - (location.y - kTextBottomPadding) / self.lineHeight;\n  if ((index >= 0) && (index < CFArrayGetCount(lines))) {\n    CTLineRef line = CFArrayGetValueAtIndex(lines, index);\n\n    // Set selection mode according to modifier flags\n    if (event.modifierFlags & NSEventModifierFlagCommand) {\n      _selectionMode = kSelectionMode_Inverse;\n    } else if ((event.modifierFlags & NSEventModifierFlagShift) && _selectedLines.count) {\n      _selectionMode = kSelectionMode_Extend;\n    } else {\n      _selectionMode = kSelectionMode_Replace;\n    }\n\n    CGFloat lineNumberMargin = textLineNumberMargin();\n\n    // Check if mouse is in the margin area\n    if (location.x < 2 * lineNumberMargin) {\n      // Reset selection\n      _selectedText.length = 0;\n      if (_selectionMode == kSelectionMode_Replace) {\n        [_selectedLines removeAllIndexes];\n      }\n\n      // Update selected lines\n      const LineInfo* info = [self _infoForLineRange:CTLineGetStringRange(line)];\n      if ((NSUInteger)info->change != NSNotFound) {  // Ignore separators\n        _deletedIndex = info->index;\n      } else {\n        _selectionMode = kSelectionMode_None;\n      }\n      switch (_selectionMode) {\n        case kSelectionMode_None:\n          break;\n\n        case kSelectionMode_Replace: {\n          XLOG_DEBUG_CHECK(_selectedLines.count == 0);\n          [_selectedLines addIndex:info->index];\n          _startLines = [_selectedLines copy];\n          break;\n        }\n\n        case kSelectionMode_Extend: {\n          XLOG_DEBUG_CHECK(_selectedLines.count > 0);\n          _startLines = [_selectedLines copy];\n          if (info->index > _startLines.lastIndex) {\n            [_selectedLines addIndexesInRange:NSMakeRange(_startLines.lastIndex, info->index - _startLines.lastIndex + 1)];\n          } else if (info->index < _startLines.firstIndex) {\n            [_selectedLines addIndexesInRange:NSMakeRange(info->index, _startLines.firstIndex - info->index + 1)];\n          }\n          break;\n        }\n\n        case kSelectionMode_Inverse: {\n          _startLines = [_selectedLines copy];\n          if ([_selectedLines containsIndex:info->index]) {\n            [_selectedLines removeIndex:info->index];\n          } else {\n            [_selectedLines addIndex:info->index];\n          }\n          break;\n        }\n      }\n      [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n\n    }\n    // Otherwise check if mouse is is in the diff area\n    else if (location.x >= textLineStartX()) {\n      // Reset selection\n      _selectedText.length = 0;\n      [_selectedLines removeAllIndexes];\n\n      // Update selected text\n      index = CTLineGetStringIndexForPosition(line, CGPointMake(location.x - (textLineStartX()), self.lineHeight / 2));\n      if (index != kCFNotFound) {\n        _deletedIndex = index;\n        if (event.clickCount > 1) {\n          CFRange range = CTLineGetStringRange(line);\n          NSString* string = (NSString*)CFAttributedStringGetString(_string);\n          [string enumerateSubstringsInRange:NSMakeRange(range.location, range.length)\n                                     options:NSStringEnumerationByWords\n                                  usingBlock:^(NSString* substring, NSRange substringRange, NSRange enclosingRange, BOOL* stop) {\n                                    if ((index >= (CFIndex)substringRange.location) && (index <= (CFIndex)(substringRange.location + substringRange.length))) {\n                                      _selectedText = CFRangeMake(substringRange.location, substringRange.length);\n                                      _deletedIndex = _selectedText.location;\n                                      *stop = YES;\n                                    }\n                                  }];\n        }\n      } else {\n        _selectionMode = kSelectionMode_None;\n      }\n      [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n\n    } else {\n      _selectionMode = kSelectionMode_None;\n    }\n\n  }\n  // Otherwise clear entire selection\n  else {\n    [self clearSelection];\n  }\n}\n\n- (void)mouseDragged:(NSEvent*)event {\n  if (_selectionMode == kSelectionMode_None) {\n    return;\n  }\n  NSPoint location = [self convertPoint:event.locationInWindow fromView:nil];\n\n  // Check if mouse is in the content area\n  CFArrayRef lines = CTFrameGetLines(_frame);\n  CFIndex index = CFArrayGetCount(lines) - (location.y - kTextBottomPadding) / self.lineHeight;\n  if ((index >= 0) && (index < CFArrayGetCount(lines))) {\n    CTLineRef line = CFArrayGetValueAtIndex(lines, index);\n\n    // Check if we are in line-selection mode\n    if (_startLines) {\n      const LineInfo* info = [self _infoForLineRange:CTLineGetStringRange(line)];\n      if ((NSUInteger)info->change != NSNotFound) {  // Ignore separators\n\n        // Update selected lines\n        switch (_selectionMode) {\n          case kSelectionMode_None:\n            break;\n\n          case kSelectionMode_Replace:\n          case kSelectionMode_Extend: {\n            XLOG_DEBUG_CHECK(_startLines.count > 0);\n            [_selectedLines removeAllIndexes];\n            [_selectedLines addIndexes:_startLines];\n            if (info->index > _startLines.lastIndex) {\n              [_selectedLines addIndexesInRange:NSMakeRange(_startLines.lastIndex, info->index - _startLines.lastIndex + 1)];\n            } else if (info->index < _startLines.firstIndex) {\n              [_selectedLines addIndexesInRange:NSMakeRange(info->index, _startLines.firstIndex - info->index + 1)];\n            }\n            break;\n          }\n\n          case kSelectionMode_Inverse: {\n            [_selectedLines removeAllIndexes];\n            [_selectedLines addIndexes:_startLines];\n            for (NSUInteger i = MIN(_deletedIndex, info->index); i <= MAX(_deletedIndex, info->index); ++i) {\n              if (![_selectedLines containsIndex:i]) {\n                [_selectedLines addIndex:i];\n              } else {\n                [_selectedLines removeIndex:i];\n              }\n            }\n            break;\n          }\n        }\n        [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n      }\n    }\n    // Otherwise we are in text-selection mode\n    else {\n      index = CTLineGetStringIndexForPosition(line, CGPointMake(location.x - (textLineStartX()), self.lineHeight / 2));\n      if (index != kCFNotFound) {\n        // Update selected text\n        if (index > (CFIndex)_deletedIndex) {\n          _selectedText = CFRangeMake((CFIndex)_deletedIndex, index - (CFIndex)_deletedIndex);\n        } else if (index < (CFIndex)_deletedIndex) {\n          _selectedText = CFRangeMake(index, (CFIndex)_deletedIndex - index);\n        }\n        [self setNeedsDisplay:YES];  // TODO: Only redraw what's needed\n      }\n    }\n  }\n\n  // Scroll if needed\n  [self autoscroll:event];\n}\n\n- (void)mouseUp:(NSEvent*)event {\n  if (_string) {\n    [self.delegate diffViewDidChangeSelection:self];  // TODO: Avoid calling delegate if seleciton hasn't actually changed\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/1.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.900\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.535\",\n          \"green\" : \"0.536\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.851\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.392\",\n          \"green\" : \"0.392\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/2.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.900\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.495\",\n          \"green\" : \"0.714\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.800\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.263\",\n          \"green\" : \"0.533\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/3.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.900\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.450\",\n          \"green\" : \"0.801\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.820\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.204\",\n          \"green\" : \"0.647\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/4.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.508\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.482\",\n          \"green\" : \"0.810\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.333\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.302\",\n          \"green\" : \"0.702\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/5.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.495\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.851\",\n          \"green\" : \"0.900\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.282\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.741\",\n          \"green\" : \"0.741\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/6.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.494\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.898\",\n          \"green\" : \"0.678\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.329\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.780\",\n          \"green\" : \"0.537\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/7.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.752\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.850\",\n          \"green\" : \"0.544\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.600\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.722\",\n          \"green\" : \"0.380\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/8.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.900\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.742\",\n          \"green\" : \"0.558\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.812\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.612\",\n          \"green\" : \"0.388\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/branch/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"provides-namespace\" : true\n  }\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/diff/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"provides-namespace\" : true\n  }\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/diff/added_text_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.850\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.850\",\n          \"green\" : \"1.000\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.150\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.150\",\n          \"green\" : \"0.350\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/diff/added_text_highlight.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.700\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.700\",\n          \"green\" : \"1.000\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.100\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.100\",\n          \"green\" : \"0.500\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/diff/deleted_text_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"1.000\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.900\",\n          \"green\" : \"0.900\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.350\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.150\",\n          \"green\" : \"0.150\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/diff/deleted_text_highlight.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"1.000\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.700\",\n          \"green\" : \"0.700\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.550\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.200\",\n          \"green\" : \"0.200\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Interface/Interface.xcassets/diff/separator_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.970\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.970\",\n          \"green\" : \"0.970\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.030\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.030\",\n          \"green\" : \"0.030\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Logging/XLFacilityMacros.h",
    "content": "//\n//  XLFacilityMacros.h\n//  GitUpKit\n//\n//  Created by Lucas Derraugh on 6/28/22.\n//\n\n// This file is a conversion of XLFacilityMacros in https://github.com/swisspol/XLFacility\n// In an attempt to use \"modern\" logging with OSLog, we're reusing the macro names but using os_log under the hood\n\n#import <OSLog/OSLog.h>\n#import <Foundation/Foundation.h>\n\n#define XLOG_DEBUG(...)                                                                                \\\n  do {                                                                                                 \\\n    os_log_debug(OS_LOG_DEFAULT, \"%{public}s\", [[NSString stringWithFormat: __VA_ARGS__] UTF8String]); \\\n  } while (0)\n#define XLOG_VERBOSE(...)                                                                              \\\n  do {                                                                                                 \\\n    os_log_debug(OS_LOG_DEFAULT, \"%{public}s\", [[NSString stringWithFormat: __VA_ARGS__] UTF8String]); \\\n  } while (0)\n#define XLOG_INFO(...)                                                                                 \\\n  do {                                                                                                 \\\n    os_log_info(OS_LOG_DEFAULT, \"%{public}s\", [[NSString stringWithFormat: __VA_ARGS__] UTF8String]);  \\\n  } while (0)\n#define XLOG_WARNING(...)                                                                              \\\n  do {                                                                                                 \\\n    os_log_error(OS_LOG_DEFAULT, \"%{public}s\", [[NSString stringWithFormat: __VA_ARGS__] UTF8String]); \\\n  } while (0)\n#define XLOG_ERROR(...)                                                                                \\\n  do {                                                                                                 \\\n    os_log_error(OS_LOG_DEFAULT, \"%{public}s\", [[NSString stringWithFormat: __VA_ARGS__] UTF8String]); \\\n  } while (0)\n#define XLOG_EXCEPTION(__EXCEPTION__)                                              \\\n  do {                                                                             \\\n    os_log_fault(OS_LOG_DEFAULT, \"%{public}s\", [[__EXCEPTION__ name] UTF8String]); \\\n  } while (0)\n#define XLOG_ABORT(...)                                                                                \\\n  do {                                                                                                 \\\n    os_log_fault(OS_LOG_DEFAULT, \"%{public}s\", [[NSString stringWithFormat: __VA_ARGS__] UTF8String]); \\\n  } while (0)\n\n/**\n *  These other macros let you easily check conditions inside your code and\n *  log messages with XLFacility on failure.\n *\n *  You can use them instead of assert() or NSAssert().\n */\n\n#define XLOG_CHECK(__CONDITION__)                                          \\\n  do {                                                                     \\\n    NSCAssert(__CONDITION__, @\"Condition failed: \\\"%s\\\"\", #__CONDITION__); \\\n  } while (0)\n\n#define XLOG_UNREACHABLE()                                                                              \\\n  do {                                                                                                  \\\n    NSCAssert(NO, @\"Unreachable code executed in '%s': %s:%i\", __FUNCTION__, __FILE__, (int)__LINE__);  \\\n  } while (0)\n\n#if DEBUG\n#define XLOG_DEBUG_CHECK(__CONDITION__) XLOG_CHECK(__CONDITION__)\n#define XLOG_DEBUG_UNREACHABLE() XLOG_UNREACHABLE()\n#else\n#define XLOG_DEBUG_CHECK(__CONDITION__)\n#define XLOG_DEBUG_UNREACHABLE()\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/Package.swift",
    "content": "// swift-tools-version:5.3\n// The swift-tools-version declares the minimum version of Swift required to build this package.\n\nimport PackageDescription\nimport Foundation\n\nlet libgit2OriginPath = \"./libgit2\"\nlet llhttpPath = \"\\(libgit2OriginPath)/deps/llhttp\"\nlet ntlmClientPath = \"\\(libgit2OriginPath)/deps/ntlmclient\"\n\nlet librariesPath = \".\"\nlet libssh2Path = \"\\(librariesPath)/libssh2.xcframework\"\nlet libsslPath = \"\\(librariesPath)/libssl.xcframework\"\nlet libcryptoPath = \"\\(librariesPath)/libcrypto.xcframework\"\n\nlet silenceWarningsCSettings: [CSetting] = [ // to see libgit2 warnings, set to empty array\n    CSetting.unsafeFlags([\"-w\"])\n]\n\nenum FeaturesExtractor {\n    private struct Define: CustomStringConvertible {\n        let define: String\n        let value: String\n        var description: String {\n            \"\\(define) \\(value)\"\n        }\n    }\n    private static var packageSwiftDirectory: URL? {\n        var directory = URL.init(fileURLWithPath: \"\\(#file)\")\n        if directory.lastPathComponent == \"Package.swift\" {\n            directory.deleteLastPathComponent()\n        }\n        return directory\n    }\n    \n    private static var libgit2Directory: URL? {\n        packageSwiftDirectory?.appendingPathComponent(\"libgit2\")\n    }\n    \n    private static var featuresPath: URL {\n        libgit2Directory?.appendingPathComponent(\"include/git2/sys/features.h\") ?? .init(fileURLWithPath: \"\")\n    }\n    \n    private static func shouldAddExtraDefine(featuresPath: URL, define: Define) -> Bool {\n        \n        guard let string = try? String.init(contentsOf: featuresPath, encoding: .utf8) else {\n            return false\n        }\n        \n        return !string.contains(\"#define \\(define)\")\n    }\n    \n    private static func fixedExtraDefine(featuresPath: URL, define: Define) -> [CSetting] {\n        shouldAddExtraDefine(featuresPath: featuresPath, define: define) ? [ .define(define.define, to: define.value) ] : []\n    }\n    \n    private static func fixedExtraDefine(define: Define) -> [CSetting] { fixedExtraDefine(featuresPath: featuresPath, define: define) }\n\n    private static func fixedExtraSSHDefines() -> [CSetting] {\n        let defines: [Define] = [\n            .init(define: \"GIT_SSH\", value: \"1\"),\n            .init(define: \"GIT_SSH_MEMORY_CREDENTIALS\", value: \"1\")\n        ]\n        return defines.flatMap(fixedExtraDefine(define:))\n    }\n    \n    static func extraLibgit2CSettings() -> [CSetting] {\n        let fixedLibgit2CSettings = fixedExtraSSHDefines()\n        return fixedLibgit2CSettings\n    }\n}\n\nlet package = Package(\n    name: \"SwiftPackage\",\n    platforms: [.macOS(.v10_13)],\n    products: [\n        .library(name: \"Libgit2Origin\",\n                 targets: [\"Libgit2Origin\"]\n        ),\n        .library(name: \"llhttp\",\n                 targets: [\"llhttp\"]\n        ),\n        .library(name: \"ntlmclient\",\n                 targets: [\"ntlmclient\"]\n        ),\n    ],\n    dependencies: [\n    ],\n    targets: [\n        // Since we don't run libgit2's actual CMake build, we need to replicate its effects here: the files it includes, and the options it resolves\n        .target(name: \"Libgit2Origin\",\n                dependencies: [\n                    \"libssl\", \"libcrypto\", \"llhttp\", \"ntlmclient\"\n                ],\n                path: libgit2OriginPath,\n                exclude: [\n                    // ./\n                    \"ci\",\n                    \"cmake\",\n                    \"docs\",\n                    \"examples\",\n                    \"fuzzers\",\n                    \"script\",\n                    \"tests\",\n                    \"api.docurium\",\n                    \"AUTHORS\",\n                    \"CMakeLists.txt\",\n                    \"COPYING\",\n                    \"git.git-authors\",\n                    \"package.json\",\n                    \"README.md\",\n                    \"SECURITY.md\",\n                    \"update-xcode.sh\",\n                    \n                    // ./deps/\n                    \"deps/chromium-zlib\",\n                    \"deps/llhttp\",\n                    \"deps/ntlmclient\",\n                    \"deps/pcre\",\n                    \"deps/winhttp\",\n                    // xdiff is the only dependency we're building as part of the Libgit2Origin target, because it seems to need access to some libgit2 files\n                    \"deps/zlib\",\n                    \n                    // ./deps/\n                    \"deps/xdiff/CMakeLists.txt\",\n                    \n                    // ./src/\n                    \"src/cli\",\n                    \"src/CMakeLists.txt\",\n                    \"src/README.md\",\n                    \n                    // ./src/libgit2/\n                    \"src/libgit2/CMakeLists.txt\",\n                    \"src/libgit2/config.cmake.in\",\n                    \"src/libgit2/experimental.h.in\",\n                    \"src/libgit2/git2.rc\",\n                    \n                    // ./src/util/\n                    \"src/util/CMakeLists.txt\",\n                    \"src/util/git2_features.h.in\",\n                    \"src/util/win32\",\n                    \n                    // ./src/util/hash/\n                    \"src/util/hash/builtin.h\",\n                    \"src/util/hash/builtin.c\",\n                    \"src/util/hash/mbedtls.h\",\n                    \"src/util/hash/mbedtls.c\",\n                    \"src/util/hash/openssl.h\",\n                    \"src/util/hash/openssl.c\",\n                    \"src/util/hash/sha1dc/sha1.h\",\n                    \"src/util/hash/win32.h\",\n                    \"src/util/hash/win32.c\",\n                    \n                    // ./include/git2/\n                    \"include/git2/stdint.h\",\n                    \n                ],\n                sources: [\"deps/xdiff\", \"src\"],\n                resources: nil,\n                publicHeadersPath: \"include\",\n                cSettings: [\n                    .headerSearchPath(\"src\"),\n                    .headerSearchPath(\"src/libgit2\"),\n                    .headerSearchPath(\"src/util\"),\n                    .headerSearchPath(\"deps/llhttp\"),\n                    .headerSearchPath(\"deps/ntlmclient\"),\n                    .headerSearchPath(\"deps/xdiff\"),\n                    \n                    .define(\"HAVE_QSORT_R_BSD\"),\n                    .define(\"_FILE_OFFSET_BITS\", to: \"64\"),\n                    .define(\"GIT_IO_POLL\", to: \"1\"),\n                    .define(\"GIT_IO_SELECT\", to: \"1\"),\n                    .define(\"GIT_HTTPPARSER_BUILTIN\", to: \"1\"),\n                    \n                    // Above we exclude git2_features.h.in, which is a template suppose to set feature flags.\n                    // So we need to 1. tell libgit2 the file isn't included and 2. manually set the flags here.\n                    .define(\"LIBGIT2_NO_FEATURES_H\", to: \"1\"),\n                    \n                    .define(\"GIT_TRACE\", to: \"1\"),\n                    .define(\"GIT_THREADS\", to: \"1\"),\n                    .define(\"GIT_ARCH_64\", to: \"1\"),\n                    .define(\"GIT_USE_ICONV\", to: \"1\"),\n                    .define(\"GIT_USE_NSEC\", to: \"1\"),\n                    .define(\"GIT_USE_STAT_MTIMESPEC\", to: \"1\"),\n                    .define(\"GIT_USE_FUTIMENS\", to: \"1\"),\n                    .define(\"GIT_REGEX_REGCOMP_L\"),\n                    .define(\"GIT_NTLM\", to: \"1\"),\n                    .define(\"GIT_HTTPS\", to: \"1\"),\n                    .define(\"GIT_SECURE_TRANSPORT\", to: \"1\"),\n                    .define(\"GIT_SHA1_COLLISIONDETECT\", to: \"1\"),\n                    .define(\"GIT_SSH_MEMORY_CREDENTIALS\", to: \"1\"),\n                    .define(\"GIT_SSH\", to: \"1\"),\n                    \n                    // See libgit2/cmake/SelectRegex.cmake\n                    .define(\"GIT_REGEX_REGCOMP_L\", to: \"1\"),\n                    \n                    // Options set when USE_SSH=\"exec\" (default value is ON. exec uses OpenSSH, which supports SSH config files)\n                    // See libgit2/cmake/SelectSSH.cmake\n                    .define(\"USE_SSH\", to: \"exec\"),\n                    .define(\"GIT_SSH\", to: \"1\"),\n                    .define(\"GIT_SSH_EXEC\", to: \"1\"),\n                    \n                    // Options set when USE_HTTPS=\"ON\" (default value)\n                    // See libgit2/cmake/SelectHTTPSBackend.cmake\n                    .define(\"USE_HTTPS\", to: \"SecureTransport\"),\n                    \n                    // Options set when USE_SHA1=\"CollisionDetection\" (default value)\n                    // See libgit2/cmake/SelectHashes.cmake, libgit2/src/util/CMakeLists.txt\n                    .define(\"USE_SHA1\", to: \"CollisionDetection\"),\n                    .define(\"GIT_SHA1_COLLISIONDETECT\", to: \"1\"),\n                    .define(\"SHA1DC_NO_STANDARD_INCLUDES\", to: \"1\"),\n                    .define(\"SHA1DC_CUSTOM_INCLUDE_SHA1_C\", to: \"\\\"git2_util.h\\\"\"),\n                    .define(\"SHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C\", to: \"\\\"git2_util.h\\\"\"),\n                    \n                    // Options set when USE_SHA256=\"ON\" (default value)\n                    // See libgit2/cmake/SelectHashes.cmake\n                    .define(\"USE_SHA256\", to: \"CommonCrypto\"),\n                    .define(\"GIT_SHA256_COMMON_CRYPTO\", to: \"1\"),\n                    \n                    // Options set when USE_THREADS=\"ON\" (default value)\n                    // See libgit2/src/CMakeLists.txt\n                    .define(\"GIT_THREADS\", to: \"1\"),\n                    \n                ]\n                + FeaturesExtractor.extraLibgit2CSettings()\n                + silenceWarningsCSettings,\n                cxxSettings: nil,\n                swiftSettings: nil,\n                linkerSettings: [\n                    .linkedFramework(\"CoreFoundation\"),\n                    .linkedFramework(\"Security\"),\n                    .linkedLibrary(\"z\"),\n                    .linkedLibrary(\"iconv\"),\n                ]\n        ),\n        \n        .target(name: \"llhttp\",\n                dependencies: [],\n                path: llhttpPath,\n                exclude: [\n                    \"CMakeLists.txt\"\n                ],\n                sources: nil,\n                resources: nil,\n                publicHeadersPath: \".\",\n                cSettings: silenceWarningsCSettings,\n                cxxSettings: nil,\n                swiftSettings: nil,\n                linkerSettings: []\n        ),\n        \n        .target(name: \"ntlmclient\",\n                dependencies: [\"libssh2\"],\n                path: ntlmClientPath,\n                exclude: [\n                    \"crypt_openssl.h\",\n                    \"crypt_openssl.c\",\n                    \"crypt_mbedtls.h\",\n                    \"crypt_mbedtls.c\",\n                    \"unicode_builtin.c\",\n                    \"CMakeLists.txt\",\n                ],\n                sources: [\n                    \"ntlm.c\",\n                    \"unicode_iconv.c\",\n                    \"util.c\",\n                    \"crypt_commoncrypto.c\"// maybe include\n                ],\n                resources: nil,\n                publicHeadersPath: \".\",\n                cSettings: [\n                    .define(\"NTLM_STATIC\", to: \"1\"),\n                    .define(\"CRYPT_COMMONCRYPTO\"),\n                    .define(\"UNICODE_ICONV\", to: \"1\")\n                ]\n                + silenceWarningsCSettings,\n                cxxSettings: nil,\n                swiftSettings: nil,\n                linkerSettings: []\n        ),\n        \n        .binaryTarget(name: \"libssh2\", path: libssh2Path),\n        .binaryTarget(name: \"libssl\", path: libsslPath),\n        .binaryTarget(name: \"libcrypto\", path: libcryptoPath),\n    ]\n)\n"
  },
  {
    "path": "GitUpKit/Third-Party/common.sh",
    "content": "#!/bin/sh -ex -o pipefail\n\nMACOS_VERSION_MIN=\"10.13\"\nMACOS_ARCHS=\"arm64 x86_64\"\n\nIOS_VERSION_MIN=\"12.0\"\nIOS_SIMULATOR_ARCHS=\"arm64 x86_64\"\nIOS_DEVICE_ARCHS=\"arm64\"\n\nPREFIXES=()\n\nfunction configure_environment() {\n  local PLATFORM=\"$1\"\n  local ARCH=\"$2\"\n  local XCRUN=\"xcrun --sdk $PLATFORM\"\n  local SDKROOT=`$XCRUN --show-sdk-path`\n\n  # Find tools\n  export CC=`$XCRUN -find clang`\n  export CPP=\"$CC -E\"\n  export CXX=`$XCRUN -find clang++`\n  export CXXCPP=\"$CC -E\"\n  export LD=`$XCRUN -find ld`\n  export AR=`$XCRUN -find ar`\n  export RANLIB=`$XCRUN -find ranlib`\n  export LIPO=`$XCRUN -find lipo`\n  export CC_FOR_BUILD=`$CC`\n\n  # Override tools to compile for SDK\n  CC_FLAGS=\"-isysroot $SDKROOT -arch $ARCH\"\n  LD_FLAGS=\"-isysroot $SDKROOT -arch $ARCH\"\n  if [[ \"$PLATFORM\" == \"macosx\" ]]; then\n    CC_FLAGS=\"$CC_FLAGS -mmacosx-version-min=$MACOS_VERSION_MIN\"\n  elif [[ \"$PLATFORM\" == \"iphonesimulator\" ]]; then\n    CC_FLAGS=\"$CC_FLAGS -mios-simulator-version-min=$IOS_VERSION_MIN\"\n  elif [[ \"$PLATFORM\" == \"iphoneos\" ]]; then\n    CC_FLAGS=\"$CC_FLAGS -fembed-bitcode -mios-version-min=$IOS_VERSION_MIN\"\n  else\n    exit 1\n  fi\n  export CFLAGS=\"$CC_FLAGS $EXTRA_CFLAGS\"\n  export LDFLAGS=\"$LD_FLAGS $EXTRA_LDFLAGS\"\n}\n\nfunction build_fat_library() {\n  local PLATFORM=\"$1\"\n  local ARCHS=\"$2\"\n  local DESTINATION=\"$3/$PLATFORM\"\n  local LIPO=`xcrun -find lipo`\n\n  mkdir -p \"$DESTINATION\"\n  for ARCH in $ARCHS; do\n    local PREFIX=\"$3/$PLATFORM/$ARCH\"\n\n    build_arch_library \"$PLATFORM\" \"$ARCH\" \"$PREFIX\"\n\n    if [[ ! -d \"$DESTINATION/include\" ]]; then\n      mv \"$PREFIX/include\" \"$DESTINATION/include\"\n    fi\n\n    mkdir -p \"$DESTINATION/lib\"\n    pushd \"$PREFIX/lib\"\n    for LIBRARY in *.a; do\n      if [[ -L \"$LIBRARY\" ]]; then  # Preserve symbolic link as-is\n        if [[ ! -e \"$DESTINATION/lib/$LIBRARY\" ]]; then\n          mv \"$LIBRARY\" \"$DESTINATION/lib/$LIBRARY\"\n        fi\n      else\n        if [[ -e \"$DESTINATION/lib/$LIBRARY\" ]]; then\n          $LIPO -create \"$DESTINATION/lib/$LIBRARY\" \"$LIBRARY\" -output \"$DESTINATION/lib/$LIBRARY\"\n        else\n          mv \"$LIBRARY\" \"$DESTINATION/lib/$LIBRARY\"\n        fi\n      fi\n    done\n    popd\n  done\n\n  PREFIXES+=(\"$DESTINATION\")\n}\n\nfunction build_xcframework() {\n  local DESTINATION=\"$1\"\n  local TARGETS=($2)\n  local NAME=\"${TARGETS[0]}\"\n\n  for TARGET in \"${TARGETS[@]}\"; do\n    local XCFRAMEWORK=\"$DESTINATION/$TARGET.xcframework\"\n    local XCODEBUILD_ARGUMENTS=(\"-create-xcframework\" \"-output\" \"$XCFRAMEWORK\")\n\n    rm -rf \"$XCFRAMEWORK\"\n    for PREFIX in \"${PREFIXES[@]}\"; do\n      XCODEBUILD_ARGUMENTS+=(\"-library\" \"$PREFIX/lib/$TARGET.a\")\n      echo \"$TARGET $NAME\"\n      if [[ \"$TARGET\" == \"$NAME\" ]]; then\n        XCODEBUILD_ARGUMENTS+=(\"-headers\" \"$PREFIX/include\")\n      fi\n    done\n    xcodebuild \"${XCODEBUILD_ARGUMENTS[@]}\"\n  done\n}\n\nfunction build_libraries() {\n  local DESTINATION=\"$1\"\n  local TARGETS=\"${@:2}\"\n  local ROOT=\"`mktemp -d`\"\n\n  build_fat_library \"macosx\" \"$MACOS_ARCHS\" \"$ROOT\"\n  build_fat_library \"iphonesimulator\" \"$IOS_SIMULATOR_ARCHS\" \"$ROOT\"\n  build_fat_library \"iphoneos\" \"$IOS_DEVICE_ARCHS\" \"$ROOT\"\n  build_xcframework \"$DESTINATION\" \"${TARGETS[@]}\"\n  rm -rf \"$ROOT\"\n}\n"
  },
  {
    "path": "GitUpKit/Third-Party/libcrypto.xcframework/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>AvailableLibraries</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64_x86_64-simulator</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libcrypto.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t\t<key>SupportedPlatformVariant</key>\n\t\t\t<string>simulator</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>macos-arm64_x86_64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libcrypto.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>macos</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libcrypto.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t</dict>\n\t</array>\n\t<key>CFBundlePackageType</key>\n\t<string>XFWK</string>\n\t<key>XCFrameworkFormatVersion</key>\n\t<string>1.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libgit2.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 52;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\tDB4464862567228400D36981 /* tsort.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750051B912B6C00BE234A /* tsort.c */; };\n\t\tDB4464872567228400D36981 /* merge.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F8E1B912B6B00BE234A /* merge.c */; };\n\t\tDB4464882567228400D36981 /* mwindow.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F941B912B6B00BE234A /* mwindow.c */; };\n\t\tDB4464892567228400D36981 /* refspec.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FC31B912B6B00BE234A /* refspec.c */; };\n\t\tDB44648A2567228400D36981 /* patch_parse.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC03061E126E7700CC091F /* patch_parse.c */; };\n\t\tDB44648B2567228400D36981 /* pack.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FAC1B912B6B00BE234A /* pack.c */; };\n\t\tDB44648C2567228400D36981 /* posix.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FB41B912B6B00BE234A /* posix.c */; };\n\t\tDB44648D2567228400D36981 /* diff_stats.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F651B912B6B00BE234A /* diff_stats.c */; };\n\t\tDB44648E2567228400D36981 /* idxmap.c in Sources */ = {isa = PBXBuildFile; fileRef = E2B332B12027906300CD10B3 /* idxmap.c */; };\n\t\tDB44648F2567228400D36981 /* ssh.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FFF1B912B6C00BE234A /* ssh.c */; };\n\t\tDB4464902567228400D36981 /* path.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FAE1B912B6B00BE234A /* path.c */; };\n\t\tDB4464912567228400D36981 /* stash.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FD81B912B6C00BE234A /* stash.c */; };\n\t\tDB4464922567228400D36981 /* diff.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F5C1B912B6B00BE234A /* diff.c */; };\n\t\tDB4464932567228400D36981 /* reset.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FCA1B912B6C00BE234A /* reset.c */; };\n\t\tDB4464942567228400D36981 /* attr.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F2E1B912B6B00BE234A /* attr.c */; };\n\t\tDB4464952567228400D36981 /* tls_stream.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FE91B912B6C00BE234A /* tls_stream.c */; };\n\t\tDB4464962567228400D36981 /* refs.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FC11B912B6B00BE234A /* refs.c */; };\n\t\tDB4464972567228400D36981 /* annotated_commit.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F2B1B912B6B00BE234A /* annotated_commit.c */; };\n\t\tDB4464982567228400D36981 /* xdiffi.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750301B912B6C00BE234A /* xdiffi.c */; };\n\t\tDB4464992567228400D36981 /* status.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FD91B912B6C00BE234A /* status.c */; };\n\t\tDB44649A2567228400D36981 /* merge_driver.c in Sources */ = {isa = PBXBuildFile; fileRef = E228B2B11CA997DD00A026FC /* merge_driver.c */; };\n\t\tDB44649B2567228400D36981 /* openssl_stream.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FA81B912B6B00BE234A /* openssl_stream.c */; };\n\t\tDB44649C2567228400D36981 /* commit_list.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F4B1B912B6B00BE234A /* commit_list.c */; };\n\t\tDB44649D2567228400D36981 /* smart_pkt.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FFD1B912B6C00BE234A /* smart_pkt.c */; };\n\t\tDB44649E2567228400D36981 /* realpath.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750091B912B6C00BE234A /* realpath.c */; };\n\t\tDB44649F2567228400D36981 /* blob.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F391B912B6B00BE234A /* blob.c */; };\n\t\tDB4464A02567228400D36981 /* transport.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FEF1B912B6C00BE234A /* transport.c */; };\n\t\tDB4464A12567228400D36981 /* errors.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F691B912B6B00BE234A /* errors.c */; };\n\t\tDB4464A22567228400D36981 /* rebase.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FBA1B912B6B00BE234A /* rebase.c */; };\n\t\tDB4464A32567228400D36981 /* diff_parse.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC02FD1E126E4D00CC091F /* diff_parse.c */; };\n\t\tDB4464A42567228400D36981 /* zstream.c in Sources */ = {isa = PBXBuildFile; fileRef = E217503E1B912B6C00BE234A /* zstream.c */; };\n\t\tDB4464A52567228400D36981 /* curl_stream.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F541B912B6B00BE234A /* curl_stream.c */; };\n\t\tDB4464A62567228400D36981 /* pool.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FB21B912B6B00BE234A /* pool.c */; };\n\t\tDB4464A72567228400D36981 /* commit.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F491B912B6B00BE234A /* commit.c */; };\n\t\tDB4464A82567228400D36981 /* global.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F761B912B6B00BE234A /* global.c */; };\n\t\tDB4464A92567228400D36981 /* pathspec.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FB01B912B6B00BE234A /* pathspec.c */; };\n\t\tDB4464AA2567228400D36981 /* odb_loose.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F9F1B912B6B00BE234A /* odb_loose.c */; };\n\t\tDB4464AB2567228400D36981 /* settings.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FCF1B912B6C00BE234A /* settings.c */; };\n\t\tDB4464AC2567228400D36981 /* tree-cache.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750011B912B6C00BE234A /* tree-cache.c */; };\n\t\tDB4464AD2567228400D36981 /* object_api.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F9C1B912B6B00BE234A /* object_api.c */; };\n\t\tDB4464AE2567228400D36981 /* odb_mempack.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FA01B912B6B00BE234A /* odb_mempack.c */; };\n\t\tDB4464AF2567228400D36981 /* clone.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F471B912B6B00BE234A /* clone.c */; };\n\t\tDB4464B02567228400D36981 /* proxy.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC02F31E126E0F00CC091F /* proxy.c */; };\n\t\tDB4464B12567228400D36981 /* revwalk.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FCD1B912B6C00BE234A /* revwalk.c */; };\n\t\tDB4464B22567228400D36981 /* date.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F561B912B6B00BE234A /* date.c */; };\n\t\tDB4464B32567228400D36981 /* object.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F9A1B912B6B00BE234A /* object.c */; };\n\t\tDB4464B42567228400D36981 /* oid.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FA31B912B6B00BE234A /* oid.c */; };\n\t\tDB4464B52567228400D36981 /* cred.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FF51B912B6C00BE234A /* cred.c */; };\n\t\tDB4464B62567228400D36981 /* map.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750071B912B6C00BE234A /* map.c */; };\n\t\tDB4464B72567228400D36981 /* winhttp.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750001B912B6C00BE234A /* winhttp.c */; };\n\t\tDB4464B82567228400D36981 /* xpatience.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750381B912B6C00BE234A /* xpatience.c */; };\n\t\tDB4464B92567228400D36981 /* smart_protocol.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FFE1B912B6C00BE234A /* smart_protocol.c */; };\n\t\tDB4464BA2567228400D36981 /* smart.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FFB1B912B6C00BE234A /* smart.c */; };\n\t\tDB4464BB2567228400D36981 /* pqueue.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FB61B912B6B00BE234A /* pqueue.c */; };\n\t\tDB4464BC2567228400D36981 /* socket_stream.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FD41B912B6C00BE234A /* socket_stream.c */; };\n\t\tDB4464BD2567228400D36981 /* auth_negotiate.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FF31B912B6C00BE234A /* auth_negotiate.c */; };\n\t\tDB4464BE2567228400D36981 /* cherrypick.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F461B912B6B00BE234A /* cherrypick.c */; };\n\t\tDB4464BF2567228400D36981 /* iterator.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F8A1B912B6B00BE234A /* iterator.c */; };\n\t\tDB4464C02567228400D36981 /* repository.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FC81B912B6C00BE234A /* repository.c */; };\n\t\tDB4464C12567228400D36981 /* hashsig.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F821B912B6B00BE234A /* hashsig.c */; };\n\t\tDB4464C22567228400D36981 /* sha1_lookup.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FD01B912B6C00BE234A /* sha1_lookup.c */; };\n\t\tDB4464C32567228400D36981 /* revparse.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FCC1B912B6C00BE234A /* revparse.c */; };\n\t\tDB4464C42567228400D36981 /* sortedcache.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FD61B912B6C00BE234A /* sortedcache.c */; };\n\t\tDB4464C52567228400D36981 /* push.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FB81B912B6B00BE234A /* push.c */; };\n\t\tDB4464C62567228400D36981 /* vector.c in Sources */ = {isa = PBXBuildFile; fileRef = E217500D1B912B6C00BE234A /* vector.c */; };\n\t\tDB4464C72567228400D36981 /* diff_driver.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F5E1B912B6B00BE234A /* diff_driver.c */; };\n\t\tDB4464C82567228400D36981 /* submodule.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FE11B912B6C00BE234A /* submodule.c */; };\n\t\tDB4464C92567228400D36981 /* sysdir.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FE31B912B6C00BE234A /* sysdir.c */; };\n\t\tDB4464CA2567228400D36981 /* config_file.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F511B912B6B00BE234A /* config_file.c */; };\n\t\tDB4464CB2567228400D36981 /* buffer.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F3F1B912B6B00BE234A /* buffer.c */; };\n\t\tDB4464CC2567228400D36981 /* diff_generate.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC02FB1E126E4D00CC091F /* diff_generate.c */; };\n\t\tDB4464CD2567228400D36981 /* index.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F861B912B6B00BE234A /* index.c */; };\n\t\tDB4464CE2567228400D36981 /* indexer.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F881B912B6B00BE234A /* indexer.c */; };\n\t\tDB4464CF2567228400D36981 /* fetchhead.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F6C1B912B6B00BE234A /* fetchhead.c */; };\n\t\tDB4464D02567228400D36981 /* worktree.c in Sources */ = {isa = PBXBuildFile; fileRef = E2B332BB202790C000CD10B3 /* worktree.c */; };\n\t\tDB4464D12567228400D36981 /* attr_file.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F301B912B6B00BE234A /* attr_file.c */; };\n\t\tDB4464D22567228400D36981 /* remote.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FC51B912B6C00BE234A /* remote.c */; };\n\t\tDB4464D32567228400D36981 /* odb.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F9D1B912B6B00BE234A /* odb.c */; };\n\t\tDB4464D42567228400D36981 /* strmap.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FDE1B912B6C00BE234A /* strmap.c */; };\n\t\tDB4464D52567228400D36981 /* describe.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F5B1B912B6B00BE234A /* describe.c */; };\n\t\tDB4464D62567228400D36981 /* netops.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F961B912B6B00BE234A /* netops.c */; };\n\t\tDB4464D72567228400D36981 /* odb_pack.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FA11B912B6B00BE234A /* odb_pack.c */; };\n\t\tDB4464D82567228400D36981 /* pack-objects.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FAA1B912B6B00BE234A /* pack-objects.c */; };\n\t\tDB4464D92567228400D36981 /* fnmatch.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F741B912B6B00BE234A /* fnmatch.c */; };\n\t\tDB4464DA2567228400D36981 /* crlf.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F531B912B6B00BE234A /* crlf.c */; };\n\t\tDB4464DB2567228400D36981 /* patch_generate.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC03041E126E7700CC091F /* patch_generate.c */; };\n\t\tDB4464DC2567228400D36981 /* message.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F921B912B6B00BE234A /* message.c */; };\n\t\tDB4464DD2567228400D36981 /* auth.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FF11B912B6C00BE234A /* auth.c */; };\n\t\tDB4464DE2567228400D36981 /* transaction.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FED1B912B6C00BE234A /* transaction.c */; };\n\t\tDB4464DF2567228400D36981 /* fileops.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F701B912B6B00BE234A /* fileops.c */; };\n\t\tDB4464E02567228400D36981 /* checkout.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F441B912B6B00BE234A /* checkout.c */; };\n\t\tDB4464E12567228400D36981 /* fetch.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F6A1B912B6B00BE234A /* fetch.c */; };\n\t\tDB4464E22567228400D36981 /* tree.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750031B912B6C00BE234A /* tree.c */; };\n\t\tDB4464E32567228400D36981 /* http.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FF91B912B6C00BE234A /* http.c */; };\n\t\tDB4464E42567228400D36981 /* apply.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC02F71E126E3E00CC091F /* apply.c */; };\n\t\tDB4464E52567228400D36981 /* varint.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC03131E126F6100CC091F /* varint.c */; };\n\t\tDB4464E62567228400D36981 /* oidmap.c in Sources */ = {isa = PBXBuildFile; fileRef = E2B332B42027908C00CD10B3 /* oidmap.c */; };\n\t\tDB4464E72567228400D36981 /* xhistogram.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750341B912B6C00BE234A /* xhistogram.c */; };\n\t\tDB4464E82567228400D36981 /* signature.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FD21B912B6C00BE234A /* signature.c */; };\n\t\tDB4464E92567228400D36981 /* oidarray.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FA51B912B6B00BE234A /* oidarray.c */; };\n\t\tDB4464EA2567228400D36981 /* util.c in Sources */ = {isa = PBXBuildFile; fileRef = E217500B1B912B6C00BE234A /* util.c */; };\n\t\tDB4464EB2567228400D36981 /* notes.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F981B912B6B00BE234A /* notes.c */; };\n\t\tDB4464EC2567228400D36981 /* hash.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F801B912B6B00BE234A /* hash.c */; };\n\t\tDB4464ED2567228400D36981 /* tag.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FE51B912B6C00BE234A /* tag.c */; };\n\t\tDB4464EE2567228400D36981 /* diff_xdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F671B912B6B00BE234A /* diff_xdiff.c */; };\n\t\tDB4464EF2567228400D36981 /* xprepare.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750391B912B6C00BE234A /* xprepare.c */; };\n\t\tDB4464F02567228400D36981 /* blame.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F351B912B6B00BE234A /* blame.c */; };\n\t\tDB4464F12567228400D36981 /* thread-utils.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FE71B912B6C00BE234A /* thread-utils.c */; };\n\t\tDB4464F22567228400D36981 /* cred_helpers.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FF71B912B6C00BE234A /* cred_helpers.c */; };\n\t\tDB4464F32567228400D36981 /* xemit.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750321B912B6C00BE234A /* xemit.c */; };\n\t\tDB4464F42567228400D36981 /* refdb.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FBB1B912B6B00BE234A /* refdb.c */; };\n\t\tDB4464F52567228400D36981 /* xutils.c in Sources */ = {isa = PBXBuildFile; fileRef = E217503C1B912B6C00BE234A /* xutils.c */; };\n\t\tDB4464F62567228400D36981 /* patch.c in Sources */ = {isa = PBXBuildFile; fileRef = E2DC03081E126E7700CC091F /* patch.c */; };\n\t\tDB4464F72567228400D36981 /* local.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FFA1B912B6C00BE234A /* local.c */; };\n\t\tDB4464F82567228400D36981 /* trace.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FEB1B912B6C00BE234A /* trace.c */; };\n\t\tDB4464F92567228400D36981 /* cache.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F411B912B6B00BE234A /* cache.c */; };\n\t\tDB4464FA2567228400D36981 /* config_cache.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F501B912B6B00BE234A /* config_cache.c */; };\n\t\tDB4464FB2567228400D36981 /* merge_file.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F901B912B6B00BE234A /* merge_file.c */; };\n\t\tDB4464FC2567228400D36981 /* buf_text.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F3D1B912B6B00BE234A /* buf_text.c */; };\n\t\tDB4464FD2567228400D36981 /* diff_print.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F641B912B6B00BE234A /* diff_print.c */; };\n\t\tDB4464FE2567228400D36981 /* filebuf.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F6E1B912B6B00BE234A /* filebuf.c */; };\n\t\tDB4464FF2567228400D36981 /* refdb_fs.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FBD1B912B6B00BE234A /* refdb_fs.c */; };\n\t\tDB4465002567228400D36981 /* revert.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FCB1B912B6C00BE234A /* revert.c */; };\n\t\tDB4465012567228400D36981 /* delta.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F591B912B6B00BE234A /* delta.c */; };\n\t\tDB4465022567228400D36981 /* blame_git.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F371B912B6B00BE234A /* blame_git.c */; };\n\t\tDB4465032567228400D36981 /* config.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F4E1B912B6B00BE234A /* config.c */; };\n\t\tDB4465042567228400D36981 /* diff_file.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F601B912B6B00BE234A /* diff_file.c */; };\n\t\tDB4465052567228400D36981 /* offmap.c in Sources */ = {isa = PBXBuildFile; fileRef = E2B332B7202790A400CD10B3 /* offmap.c */; };\n\t\tDB4465062567228400D36981 /* graph.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F781B912B6B00BE234A /* graph.c */; };\n\t\tDB4465072567228400D36981 /* attrcache.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F321B912B6B00BE234A /* attrcache.c */; };\n\t\tDB4465082567228400D36981 /* stransport_stream.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FDB1B912B6C00BE234A /* stransport_stream.c */; };\n\t\tDB4465092567228400D36981 /* reflog.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FBF1B912B6B00BE234A /* reflog.c */; };\n\t\tDB44650A2567228400D36981 /* diff_tform.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F661B912B6B00BE234A /* diff_tform.c */; };\n\t\tDB44650B2567228400D36981 /* git.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174FF81B912B6C00BE234A /* git.c */; };\n\t\tDB44650C2567228400D36981 /* xmerge.c in Sources */ = {isa = PBXBuildFile; fileRef = E21750371B912B6C00BE234A /* xmerge.c */; };\n\t\tDB44650D2567228400D36981 /* http_parser.c in Sources */ = {isa = PBXBuildFile; fileRef = E21751601B912B8E00BE234A /* http_parser.c */; };\n\t\tDB44650E2567228400D36981 /* branch.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F3B1B912B6B00BE234A /* branch.c */; };\n\t\tDB44650F2567228400D36981 /* ident.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F831B912B6B00BE234A /* ident.c */; };\n\t\tDB4465102567228400D36981 /* ignore.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F841B912B6B00BE234A /* ignore.c */; };\n\t\tDB4465112567228400D36981 /* filter.c in Sources */ = {isa = PBXBuildFile; fileRef = E2174F721B912B6B00BE234A /* filter.c */; };\n\t\tDB4465762567262400D36981 /* libssh2.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB4465732567262400D36981 /* libssh2.xcframework */; };\n\t\tDB4465772567262400D36981 /* libcrypto.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB4465742567262400D36981 /* libcrypto.xcframework */; };\n\t\tDB4465782567262400D36981 /* libssl.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB4465752567262400D36981 /* libssl.xcframework */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\tDB4465732567262400D36981 /* libssh2.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = libssh2.xcframework; sourceTree = \"<group>\"; };\n\t\tDB4465742567262400D36981 /* libcrypto.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = libcrypto.xcframework; sourceTree = \"<group>\"; };\n\t\tDB4465752567262400D36981 /* libssl.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; path = libssl.xcframework; sourceTree = \"<group>\"; };\n\t\tDB72906522C83EB1007AB8F7 /* Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72906622C83EB1007AB8F7 /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = \"<group>\"; };\n\t\tDB72906722C83EB1007AB8F7 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = \"<group>\"; };\n\t\tE2174BD51B91240400BE234A /* libgit2.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libgit2.a; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tE2174F2B1B912B6B00BE234A /* annotated_commit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = annotated_commit.c; sourceTree = \"<group>\"; };\n\t\tE2174F2C1B912B6B00BE234A /* annotated_commit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = annotated_commit.h; sourceTree = \"<group>\"; };\n\t\tE2174F2D1B912B6B00BE234A /* array.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = array.h; sourceTree = \"<group>\"; };\n\t\tE2174F2E1B912B6B00BE234A /* attr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = attr.c; sourceTree = \"<group>\"; };\n\t\tE2174F2F1B912B6B00BE234A /* attr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = attr.h; sourceTree = \"<group>\"; };\n\t\tE2174F301B912B6B00BE234A /* attr_file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = attr_file.c; sourceTree = \"<group>\"; };\n\t\tE2174F311B912B6B00BE234A /* attr_file.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = attr_file.h; sourceTree = \"<group>\"; };\n\t\tE2174F321B912B6B00BE234A /* attrcache.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = attrcache.c; sourceTree = \"<group>\"; };\n\t\tE2174F331B912B6B00BE234A /* attrcache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = attrcache.h; sourceTree = \"<group>\"; };\n\t\tE2174F341B912B6B00BE234A /* bitvec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bitvec.h; sourceTree = \"<group>\"; };\n\t\tE2174F351B912B6B00BE234A /* blame.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = blame.c; sourceTree = \"<group>\"; };\n\t\tE2174F361B912B6B00BE234A /* blame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = blame.h; sourceTree = \"<group>\"; };\n\t\tE2174F371B912B6B00BE234A /* blame_git.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = blame_git.c; sourceTree = \"<group>\"; };\n\t\tE2174F381B912B6B00BE234A /* blame_git.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = blame_git.h; sourceTree = \"<group>\"; };\n\t\tE2174F391B912B6B00BE234A /* blob.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = blob.c; sourceTree = \"<group>\"; };\n\t\tE2174F3A1B912B6B00BE234A /* blob.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = blob.h; sourceTree = \"<group>\"; };\n\t\tE2174F3B1B912B6B00BE234A /* branch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = branch.c; sourceTree = \"<group>\"; };\n\t\tE2174F3C1B912B6B00BE234A /* branch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = branch.h; sourceTree = \"<group>\"; };\n\t\tE2174F3D1B912B6B00BE234A /* buf_text.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = buf_text.c; sourceTree = \"<group>\"; };\n\t\tE2174F3E1B912B6B00BE234A /* buf_text.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = buf_text.h; sourceTree = \"<group>\"; };\n\t\tE2174F3F1B912B6B00BE234A /* buffer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = buffer.c; sourceTree = \"<group>\"; };\n\t\tE2174F401B912B6B00BE234A /* buffer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = buffer.h; sourceTree = \"<group>\"; };\n\t\tE2174F411B912B6B00BE234A /* cache.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cache.c; sourceTree = \"<group>\"; };\n\t\tE2174F421B912B6B00BE234A /* cache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cache.h; sourceTree = \"<group>\"; };\n\t\tE2174F431B912B6B00BE234A /* cc-compat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"cc-compat.h\"; sourceTree = \"<group>\"; };\n\t\tE2174F441B912B6B00BE234A /* checkout.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = checkout.c; sourceTree = \"<group>\"; };\n\t\tE2174F451B912B6B00BE234A /* checkout.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = checkout.h; sourceTree = \"<group>\"; };\n\t\tE2174F461B912B6B00BE234A /* cherrypick.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cherrypick.c; sourceTree = \"<group>\"; };\n\t\tE2174F471B912B6B00BE234A /* clone.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = clone.c; sourceTree = \"<group>\"; };\n\t\tE2174F481B912B6B00BE234A /* clone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = clone.h; sourceTree = \"<group>\"; };\n\t\tE2174F491B912B6B00BE234A /* commit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = commit.c; sourceTree = \"<group>\"; };\n\t\tE2174F4A1B912B6B00BE234A /* commit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = commit.h; sourceTree = \"<group>\"; };\n\t\tE2174F4B1B912B6B00BE234A /* commit_list.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = commit_list.c; sourceTree = \"<group>\"; };\n\t\tE2174F4C1B912B6B00BE234A /* commit_list.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = commit_list.h; sourceTree = \"<group>\"; };\n\t\tE2174F4D1B912B6B00BE234A /* common.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = common.h; sourceTree = \"<group>\"; };\n\t\tE2174F4E1B912B6B00BE234A /* config.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = config.c; sourceTree = \"<group>\"; };\n\t\tE2174F4F1B912B6B00BE234A /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = \"<group>\"; };\n\t\tE2174F501B912B6B00BE234A /* config_cache.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = config_cache.c; sourceTree = \"<group>\"; };\n\t\tE2174F511B912B6B00BE234A /* config_file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = config_file.c; sourceTree = \"<group>\"; };\n\t\tE2174F521B912B6B00BE234A /* config_file.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = config_file.h; sourceTree = \"<group>\"; };\n\t\tE2174F531B912B6B00BE234A /* crlf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = crlf.c; sourceTree = \"<group>\"; };\n\t\tE2174F541B912B6B00BE234A /* curl_stream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = curl_stream.c; sourceTree = \"<group>\"; };\n\t\tE2174F551B912B6B00BE234A /* curl_stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = curl_stream.h; sourceTree = \"<group>\"; };\n\t\tE2174F561B912B6B00BE234A /* date.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = date.c; sourceTree = \"<group>\"; };\n\t\tE2174F591B912B6B00BE234A /* delta.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = delta.c; sourceTree = \"<group>\"; };\n\t\tE2174F5A1B912B6B00BE234A /* delta.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = delta.h; sourceTree = \"<group>\"; };\n\t\tE2174F5B1B912B6B00BE234A /* describe.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = describe.c; sourceTree = \"<group>\"; };\n\t\tE2174F5C1B912B6B00BE234A /* diff.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff.c; sourceTree = \"<group>\"; };\n\t\tE2174F5D1B912B6B00BE234A /* diff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diff.h; sourceTree = \"<group>\"; };\n\t\tE2174F5E1B912B6B00BE234A /* diff_driver.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_driver.c; sourceTree = \"<group>\"; };\n\t\tE2174F5F1B912B6B00BE234A /* diff_driver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diff_driver.h; sourceTree = \"<group>\"; };\n\t\tE2174F601B912B6B00BE234A /* diff_file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_file.c; sourceTree = \"<group>\"; };\n\t\tE2174F611B912B6B00BE234A /* diff_file.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diff_file.h; sourceTree = \"<group>\"; };\n\t\tE2174F641B912B6B00BE234A /* diff_print.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_print.c; sourceTree = \"<group>\"; };\n\t\tE2174F651B912B6B00BE234A /* diff_stats.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_stats.c; sourceTree = \"<group>\"; };\n\t\tE2174F661B912B6B00BE234A /* diff_tform.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_tform.c; sourceTree = \"<group>\"; };\n\t\tE2174F671B912B6B00BE234A /* diff_xdiff.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_xdiff.c; sourceTree = \"<group>\"; };\n\t\tE2174F681B912B6B00BE234A /* diff_xdiff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diff_xdiff.h; sourceTree = \"<group>\"; };\n\t\tE2174F691B912B6B00BE234A /* errors.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = errors.c; sourceTree = \"<group>\"; };\n\t\tE2174F6A1B912B6B00BE234A /* fetch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fetch.c; sourceTree = \"<group>\"; };\n\t\tE2174F6B1B912B6B00BE234A /* fetch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fetch.h; sourceTree = \"<group>\"; };\n\t\tE2174F6C1B912B6B00BE234A /* fetchhead.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fetchhead.c; sourceTree = \"<group>\"; };\n\t\tE2174F6D1B912B6B00BE234A /* fetchhead.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fetchhead.h; sourceTree = \"<group>\"; };\n\t\tE2174F6E1B912B6B00BE234A /* filebuf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = filebuf.c; sourceTree = \"<group>\"; };\n\t\tE2174F6F1B912B6B00BE234A /* filebuf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = filebuf.h; sourceTree = \"<group>\"; };\n\t\tE2174F701B912B6B00BE234A /* fileops.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fileops.c; sourceTree = \"<group>\"; };\n\t\tE2174F711B912B6B00BE234A /* fileops.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fileops.h; sourceTree = \"<group>\"; };\n\t\tE2174F721B912B6B00BE234A /* filter.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = filter.c; sourceTree = \"<group>\"; };\n\t\tE2174F731B912B6B00BE234A /* filter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = filter.h; sourceTree = \"<group>\"; };\n\t\tE2174F741B912B6B00BE234A /* fnmatch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = fnmatch.c; sourceTree = \"<group>\"; };\n\t\tE2174F751B912B6B00BE234A /* fnmatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = fnmatch.h; sourceTree = \"<group>\"; };\n\t\tE2174F761B912B6B00BE234A /* global.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = global.c; sourceTree = \"<group>\"; };\n\t\tE2174F771B912B6B00BE234A /* global.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = global.h; sourceTree = \"<group>\"; };\n\t\tE2174F781B912B6B00BE234A /* graph.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = graph.c; sourceTree = \"<group>\"; };\n\t\tE2174F7A1B912B6B00BE234A /* hash_common_crypto.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = hash_common_crypto.h; sourceTree = \"<group>\"; };\n\t\tE2174F7D1B912B6B00BE234A /* hash_openssl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = hash_openssl.h; sourceTree = \"<group>\"; };\n\t\tE2174F801B912B6B00BE234A /* hash.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = hash.c; sourceTree = \"<group>\"; };\n\t\tE2174F811B912B6B00BE234A /* hash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = hash.h; sourceTree = \"<group>\"; };\n\t\tE2174F821B912B6B00BE234A /* hashsig.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = hashsig.c; sourceTree = \"<group>\"; };\n\t\tE2174F831B912B6B00BE234A /* ident.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ident.c; sourceTree = \"<group>\"; };\n\t\tE2174F841B912B6B00BE234A /* ignore.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ignore.c; sourceTree = \"<group>\"; };\n\t\tE2174F851B912B6B00BE234A /* ignore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ignore.h; sourceTree = \"<group>\"; };\n\t\tE2174F861B912B6B00BE234A /* index.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = index.c; sourceTree = \"<group>\"; };\n\t\tE2174F871B912B6B00BE234A /* index.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = index.h; sourceTree = \"<group>\"; };\n\t\tE2174F881B912B6B00BE234A /* indexer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = indexer.c; sourceTree = \"<group>\"; };\n\t\tE2174F891B912B6B00BE234A /* integer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = integer.h; sourceTree = \"<group>\"; };\n\t\tE2174F8A1B912B6B00BE234A /* iterator.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = iterator.c; sourceTree = \"<group>\"; };\n\t\tE2174F8B1B912B6B00BE234A /* iterator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iterator.h; sourceTree = \"<group>\"; };\n\t\tE2174F8C1B912B6B00BE234A /* khash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = khash.h; sourceTree = \"<group>\"; };\n\t\tE2174F8D1B912B6B00BE234A /* map.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = map.h; sourceTree = \"<group>\"; };\n\t\tE2174F8E1B912B6B00BE234A /* merge.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = merge.c; sourceTree = \"<group>\"; };\n\t\tE2174F8F1B912B6B00BE234A /* merge.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = merge.h; sourceTree = \"<group>\"; };\n\t\tE2174F901B912B6B00BE234A /* merge_file.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = merge_file.c; sourceTree = \"<group>\"; };\n\t\tE2174F921B912B6B00BE234A /* message.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = message.c; sourceTree = \"<group>\"; };\n\t\tE2174F931B912B6B00BE234A /* message.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = \"<group>\"; };\n\t\tE2174F941B912B6B00BE234A /* mwindow.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mwindow.c; sourceTree = \"<group>\"; };\n\t\tE2174F951B912B6B00BE234A /* mwindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mwindow.h; sourceTree = \"<group>\"; };\n\t\tE2174F961B912B6B00BE234A /* netops.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = netops.c; sourceTree = \"<group>\"; };\n\t\tE2174F971B912B6B00BE234A /* netops.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = netops.h; sourceTree = \"<group>\"; };\n\t\tE2174F981B912B6B00BE234A /* notes.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = notes.c; sourceTree = \"<group>\"; };\n\t\tE2174F991B912B6B00BE234A /* notes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = notes.h; sourceTree = \"<group>\"; };\n\t\tE2174F9A1B912B6B00BE234A /* object.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = object.c; sourceTree = \"<group>\"; };\n\t\tE2174F9B1B912B6B00BE234A /* object.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = object.h; sourceTree = \"<group>\"; };\n\t\tE2174F9C1B912B6B00BE234A /* object_api.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = object_api.c; sourceTree = \"<group>\"; };\n\t\tE2174F9D1B912B6B00BE234A /* odb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = odb.c; sourceTree = \"<group>\"; };\n\t\tE2174F9E1B912B6B00BE234A /* odb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = odb.h; sourceTree = \"<group>\"; };\n\t\tE2174F9F1B912B6B00BE234A /* odb_loose.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = odb_loose.c; sourceTree = \"<group>\"; };\n\t\tE2174FA01B912B6B00BE234A /* odb_mempack.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = odb_mempack.c; sourceTree = \"<group>\"; };\n\t\tE2174FA11B912B6B00BE234A /* odb_pack.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = odb_pack.c; sourceTree = \"<group>\"; };\n\t\tE2174FA21B912B6B00BE234A /* offmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = offmap.h; sourceTree = \"<group>\"; };\n\t\tE2174FA31B912B6B00BE234A /* oid.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = oid.c; sourceTree = \"<group>\"; };\n\t\tE2174FA41B912B6B00BE234A /* oid.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = oid.h; sourceTree = \"<group>\"; };\n\t\tE2174FA51B912B6B00BE234A /* oidarray.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = oidarray.c; sourceTree = \"<group>\"; };\n\t\tE2174FA61B912B6B00BE234A /* oidarray.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = oidarray.h; sourceTree = \"<group>\"; };\n\t\tE2174FA71B912B6B00BE234A /* oidmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = oidmap.h; sourceTree = \"<group>\"; };\n\t\tE2174FA81B912B6B00BE234A /* openssl_stream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = openssl_stream.c; sourceTree = \"<group>\"; };\n\t\tE2174FA91B912B6B00BE234A /* openssl_stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = openssl_stream.h; sourceTree = \"<group>\"; };\n\t\tE2174FAA1B912B6B00BE234A /* pack-objects.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = \"pack-objects.c\"; sourceTree = \"<group>\"; };\n\t\tE2174FAB1B912B6B00BE234A /* pack-objects.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"pack-objects.h\"; sourceTree = \"<group>\"; };\n\t\tE2174FAC1B912B6B00BE234A /* pack.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pack.c; sourceTree = \"<group>\"; };\n\t\tE2174FAD1B912B6B00BE234A /* pack.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pack.h; sourceTree = \"<group>\"; };\n\t\tE2174FAE1B912B6B00BE234A /* path.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = path.c; sourceTree = \"<group>\"; };\n\t\tE2174FAF1B912B6B00BE234A /* path.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = path.h; sourceTree = \"<group>\"; };\n\t\tE2174FB01B912B6B00BE234A /* pathspec.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pathspec.c; sourceTree = \"<group>\"; };\n\t\tE2174FB11B912B6B00BE234A /* pathspec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pathspec.h; sourceTree = \"<group>\"; };\n\t\tE2174FB21B912B6B00BE234A /* pool.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pool.c; sourceTree = \"<group>\"; };\n\t\tE2174FB31B912B6B00BE234A /* pool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pool.h; sourceTree = \"<group>\"; };\n\t\tE2174FB41B912B6B00BE234A /* posix.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = posix.c; sourceTree = \"<group>\"; };\n\t\tE2174FB51B912B6B00BE234A /* posix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = posix.h; sourceTree = \"<group>\"; };\n\t\tE2174FB61B912B6B00BE234A /* pqueue.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = pqueue.c; sourceTree = \"<group>\"; };\n\t\tE2174FB71B912B6B00BE234A /* pqueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = pqueue.h; sourceTree = \"<group>\"; };\n\t\tE2174FB81B912B6B00BE234A /* push.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = push.c; sourceTree = \"<group>\"; };\n\t\tE2174FB91B912B6B00BE234A /* push.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = push.h; sourceTree = \"<group>\"; };\n\t\tE2174FBA1B912B6B00BE234A /* rebase.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = rebase.c; sourceTree = \"<group>\"; };\n\t\tE2174FBB1B912B6B00BE234A /* refdb.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = refdb.c; sourceTree = \"<group>\"; };\n\t\tE2174FBC1B912B6B00BE234A /* refdb.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = refdb.h; sourceTree = \"<group>\"; };\n\t\tE2174FBD1B912B6B00BE234A /* refdb_fs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = refdb_fs.c; sourceTree = \"<group>\"; };\n\t\tE2174FBE1B912B6B00BE234A /* refdb_fs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = refdb_fs.h; sourceTree = \"<group>\"; };\n\t\tE2174FBF1B912B6B00BE234A /* reflog.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = reflog.c; sourceTree = \"<group>\"; };\n\t\tE2174FC01B912B6B00BE234A /* reflog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = reflog.h; sourceTree = \"<group>\"; };\n\t\tE2174FC11B912B6B00BE234A /* refs.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = refs.c; sourceTree = \"<group>\"; };\n\t\tE2174FC21B912B6B00BE234A /* refs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = refs.h; sourceTree = \"<group>\"; };\n\t\tE2174FC31B912B6B00BE234A /* refspec.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = refspec.c; sourceTree = \"<group>\"; };\n\t\tE2174FC41B912B6B00BE234A /* refspec.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = refspec.h; sourceTree = \"<group>\"; };\n\t\tE2174FC51B912B6C00BE234A /* remote.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = remote.c; sourceTree = \"<group>\"; };\n\t\tE2174FC61B912B6C00BE234A /* remote.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = remote.h; sourceTree = \"<group>\"; };\n\t\tE2174FC71B912B6C00BE234A /* repo_template.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = repo_template.h; sourceTree = \"<group>\"; };\n\t\tE2174FC81B912B6C00BE234A /* repository.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = repository.c; sourceTree = \"<group>\"; };\n\t\tE2174FC91B912B6C00BE234A /* repository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = repository.h; sourceTree = \"<group>\"; };\n\t\tE2174FCA1B912B6C00BE234A /* reset.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = reset.c; sourceTree = \"<group>\"; };\n\t\tE2174FCB1B912B6C00BE234A /* revert.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = revert.c; sourceTree = \"<group>\"; };\n\t\tE2174FCC1B912B6C00BE234A /* revparse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = revparse.c; sourceTree = \"<group>\"; };\n\t\tE2174FCD1B912B6C00BE234A /* revwalk.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = revwalk.c; sourceTree = \"<group>\"; };\n\t\tE2174FCE1B912B6C00BE234A /* revwalk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = revwalk.h; sourceTree = \"<group>\"; };\n\t\tE2174FCF1B912B6C00BE234A /* settings.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = settings.c; sourceTree = \"<group>\"; };\n\t\tE2174FD01B912B6C00BE234A /* sha1_lookup.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sha1_lookup.c; sourceTree = \"<group>\"; };\n\t\tE2174FD11B912B6C00BE234A /* sha1_lookup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sha1_lookup.h; sourceTree = \"<group>\"; };\n\t\tE2174FD21B912B6C00BE234A /* signature.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = signature.c; sourceTree = \"<group>\"; };\n\t\tE2174FD31B912B6C00BE234A /* signature.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = signature.h; sourceTree = \"<group>\"; };\n\t\tE2174FD41B912B6C00BE234A /* socket_stream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = socket_stream.c; sourceTree = \"<group>\"; };\n\t\tE2174FD51B912B6C00BE234A /* socket_stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = socket_stream.h; sourceTree = \"<group>\"; };\n\t\tE2174FD61B912B6C00BE234A /* sortedcache.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sortedcache.c; sourceTree = \"<group>\"; };\n\t\tE2174FD71B912B6C00BE234A /* sortedcache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sortedcache.h; sourceTree = \"<group>\"; };\n\t\tE2174FD81B912B6C00BE234A /* stash.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = stash.c; sourceTree = \"<group>\"; };\n\t\tE2174FD91B912B6C00BE234A /* status.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = status.c; sourceTree = \"<group>\"; };\n\t\tE2174FDA1B912B6C00BE234A /* status.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = status.h; sourceTree = \"<group>\"; };\n\t\tE2174FDB1B912B6C00BE234A /* stransport_stream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = stransport_stream.c; sourceTree = \"<group>\"; };\n\t\tE2174FDC1B912B6C00BE234A /* stransport_stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = stransport_stream.h; sourceTree = \"<group>\"; };\n\t\tE2174FDD1B912B6C00BE234A /* stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = stream.h; sourceTree = \"<group>\"; };\n\t\tE2174FDE1B912B6C00BE234A /* strmap.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = strmap.c; sourceTree = \"<group>\"; };\n\t\tE2174FDF1B912B6C00BE234A /* strmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = strmap.h; sourceTree = \"<group>\"; };\n\t\tE2174FE01B912B6C00BE234A /* strnlen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = strnlen.h; sourceTree = \"<group>\"; };\n\t\tE2174FE11B912B6C00BE234A /* submodule.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = submodule.c; sourceTree = \"<group>\"; };\n\t\tE2174FE21B912B6C00BE234A /* submodule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = submodule.h; sourceTree = \"<group>\"; };\n\t\tE2174FE31B912B6C00BE234A /* sysdir.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sysdir.c; sourceTree = \"<group>\"; };\n\t\tE2174FE41B912B6C00BE234A /* sysdir.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sysdir.h; sourceTree = \"<group>\"; };\n\t\tE2174FE51B912B6C00BE234A /* tag.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tag.c; sourceTree = \"<group>\"; };\n\t\tE2174FE61B912B6C00BE234A /* tag.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tag.h; sourceTree = \"<group>\"; };\n\t\tE2174FE71B912B6C00BE234A /* thread-utils.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = \"thread-utils.c\"; sourceTree = \"<group>\"; };\n\t\tE2174FE81B912B6C00BE234A /* thread-utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"thread-utils.h\"; sourceTree = \"<group>\"; };\n\t\tE2174FE91B912B6C00BE234A /* tls_stream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tls_stream.c; sourceTree = \"<group>\"; };\n\t\tE2174FEA1B912B6C00BE234A /* tls_stream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tls_stream.h; sourceTree = \"<group>\"; };\n\t\tE2174FEB1B912B6C00BE234A /* trace.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = trace.c; sourceTree = \"<group>\"; };\n\t\tE2174FEC1B912B6C00BE234A /* trace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = trace.h; sourceTree = \"<group>\"; };\n\t\tE2174FED1B912B6C00BE234A /* transaction.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = transaction.c; sourceTree = \"<group>\"; };\n\t\tE2174FEE1B912B6C00BE234A /* transaction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = transaction.h; sourceTree = \"<group>\"; };\n\t\tE2174FEF1B912B6C00BE234A /* transport.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = transport.c; sourceTree = \"<group>\"; };\n\t\tE2174FF11B912B6C00BE234A /* auth.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = auth.c; sourceTree = \"<group>\"; };\n\t\tE2174FF21B912B6C00BE234A /* auth.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = auth.h; sourceTree = \"<group>\"; };\n\t\tE2174FF31B912B6C00BE234A /* auth_negotiate.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = auth_negotiate.c; sourceTree = \"<group>\"; };\n\t\tE2174FF41B912B6C00BE234A /* auth_negotiate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = auth_negotiate.h; sourceTree = \"<group>\"; };\n\t\tE2174FF51B912B6C00BE234A /* cred.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cred.c; sourceTree = \"<group>\"; };\n\t\tE2174FF61B912B6C00BE234A /* cred.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = cred.h; sourceTree = \"<group>\"; };\n\t\tE2174FF71B912B6C00BE234A /* cred_helpers.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = cred_helpers.c; sourceTree = \"<group>\"; };\n\t\tE2174FF81B912B6C00BE234A /* git.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = git.c; sourceTree = \"<group>\"; };\n\t\tE2174FF91B912B6C00BE234A /* http.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = http.c; sourceTree = \"<group>\"; };\n\t\tE2174FFA1B912B6C00BE234A /* local.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = local.c; sourceTree = \"<group>\"; };\n\t\tE2174FFB1B912B6C00BE234A /* smart.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = smart.c; sourceTree = \"<group>\"; };\n\t\tE2174FFC1B912B6C00BE234A /* smart.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = smart.h; sourceTree = \"<group>\"; };\n\t\tE2174FFD1B912B6C00BE234A /* smart_pkt.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = smart_pkt.c; sourceTree = \"<group>\"; };\n\t\tE2174FFE1B912B6C00BE234A /* smart_protocol.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = smart_protocol.c; sourceTree = \"<group>\"; };\n\t\tE2174FFF1B912B6C00BE234A /* ssh.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = ssh.c; sourceTree = \"<group>\"; };\n\t\tE21750001B912B6C00BE234A /* winhttp.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = winhttp.c; sourceTree = \"<group>\"; };\n\t\tE21750011B912B6C00BE234A /* tree-cache.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = \"tree-cache.c\"; sourceTree = \"<group>\"; };\n\t\tE21750021B912B6C00BE234A /* tree-cache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = \"tree-cache.h\"; sourceTree = \"<group>\"; };\n\t\tE21750031B912B6C00BE234A /* tree.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tree.c; sourceTree = \"<group>\"; };\n\t\tE21750041B912B6C00BE234A /* tree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = tree.h; sourceTree = \"<group>\"; };\n\t\tE21750051B912B6C00BE234A /* tsort.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = tsort.c; sourceTree = \"<group>\"; };\n\t\tE21750071B912B6C00BE234A /* map.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = map.c; sourceTree = \"<group>\"; };\n\t\tE21750081B912B6C00BE234A /* posix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = posix.h; sourceTree = \"<group>\"; };\n\t\tE21750091B912B6C00BE234A /* realpath.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = realpath.c; sourceTree = \"<group>\"; };\n\t\tE217500A1B912B6C00BE234A /* userdiff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = userdiff.h; sourceTree = \"<group>\"; };\n\t\tE217500B1B912B6C00BE234A /* util.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = util.c; sourceTree = \"<group>\"; };\n\t\tE217500C1B912B6C00BE234A /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = util.h; sourceTree = \"<group>\"; };\n\t\tE217500D1B912B6C00BE234A /* vector.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = vector.c; sourceTree = \"<group>\"; };\n\t\tE217500E1B912B6C00BE234A /* vector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = vector.h; sourceTree = \"<group>\"; };\n\t\tE217502F1B912B6C00BE234A /* xdiff.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xdiff.h; sourceTree = \"<group>\"; };\n\t\tE21750301B912B6C00BE234A /* xdiffi.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xdiffi.c; sourceTree = \"<group>\"; };\n\t\tE21750311B912B6C00BE234A /* xdiffi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xdiffi.h; sourceTree = \"<group>\"; };\n\t\tE21750321B912B6C00BE234A /* xemit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xemit.c; sourceTree = \"<group>\"; };\n\t\tE21750331B912B6C00BE234A /* xemit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xemit.h; sourceTree = \"<group>\"; };\n\t\tE21750341B912B6C00BE234A /* xhistogram.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xhistogram.c; sourceTree = \"<group>\"; };\n\t\tE21750351B912B6C00BE234A /* xinclude.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xinclude.h; sourceTree = \"<group>\"; };\n\t\tE21750361B912B6C00BE234A /* xmacros.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xmacros.h; sourceTree = \"<group>\"; };\n\t\tE21750371B912B6C00BE234A /* xmerge.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xmerge.c; sourceTree = \"<group>\"; };\n\t\tE21750381B912B6C00BE234A /* xpatience.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xpatience.c; sourceTree = \"<group>\"; };\n\t\tE21750391B912B6C00BE234A /* xprepare.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xprepare.c; sourceTree = \"<group>\"; };\n\t\tE217503A1B912B6C00BE234A /* xprepare.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xprepare.h; sourceTree = \"<group>\"; };\n\t\tE217503B1B912B6C00BE234A /* xtypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xtypes.h; sourceTree = \"<group>\"; };\n\t\tE217503C1B912B6C00BE234A /* xutils.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = xutils.c; sourceTree = \"<group>\"; };\n\t\tE217503D1B912B6C00BE234A /* xutils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xutils.h; sourceTree = \"<group>\"; };\n\t\tE217503E1B912B6C00BE234A /* zstream.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = zstream.c; sourceTree = \"<group>\"; };\n\t\tE217503F1B912B6C00BE234A /* zstream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = zstream.h; sourceTree = \"<group>\"; };\n\t\tE21751601B912B8E00BE234A /* http_parser.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = http_parser.c; sourceTree = \"<group>\"; };\n\t\tE21751611B912B8E00BE234A /* http_parser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = http_parser.h; sourceTree = \"<group>\"; };\n\t\tE21752A11B914B9600BE234A /* annotated_commit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = annotated_commit.h; sourceTree = \"<group>\"; };\n\t\tE21752A21B914B9600BE234A /* attr.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = attr.h; sourceTree = \"<group>\"; };\n\t\tE21752A31B914B9600BE234A /* blame.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = blame.h; sourceTree = \"<group>\"; };\n\t\tE21752A41B914B9600BE234A /* blob.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = blob.h; sourceTree = \"<group>\"; };\n\t\tE21752A51B914B9600BE234A /* branch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = branch.h; sourceTree = \"<group>\"; };\n\t\tE21752A61B914B9600BE234A /* buffer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = buffer.h; sourceTree = \"<group>\"; };\n\t\tE21752A71B914B9600BE234A /* checkout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = checkout.h; sourceTree = \"<group>\"; };\n\t\tE21752A81B914B9600BE234A /* cherrypick.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cherrypick.h; sourceTree = \"<group>\"; };\n\t\tE21752A91B914B9600BE234A /* clone.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = clone.h; sourceTree = \"<group>\"; };\n\t\tE21752AA1B914B9600BE234A /* commit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = commit.h; sourceTree = \"<group>\"; };\n\t\tE21752AB1B914B9600BE234A /* common.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = common.h; sourceTree = \"<group>\"; };\n\t\tE21752AC1B914B9600BE234A /* config.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = \"<group>\"; };\n\t\tE21752AD1B914B9600BE234A /* cred_helpers.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cred_helpers.h; sourceTree = \"<group>\"; };\n\t\tE21752AE1B914B9600BE234A /* describe.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = describe.h; sourceTree = \"<group>\"; };\n\t\tE21752AF1B914B9600BE234A /* diff.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = diff.h; sourceTree = \"<group>\"; };\n\t\tE21752B01B914B9600BE234A /* errors.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = errors.h; sourceTree = \"<group>\"; };\n\t\tE21752B11B914B9600BE234A /* filter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = filter.h; sourceTree = \"<group>\"; };\n\t\tE21752B21B914B9600BE234A /* global.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = global.h; sourceTree = \"<group>\"; };\n\t\tE21752B31B914B9600BE234A /* graph.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = graph.h; sourceTree = \"<group>\"; };\n\t\tE21752B41B914B9600BE234A /* ignore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ignore.h; sourceTree = \"<group>\"; };\n\t\tE21752B51B914B9600BE234A /* index.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = index.h; sourceTree = \"<group>\"; };\n\t\tE21752B61B914B9600BE234A /* indexer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = indexer.h; sourceTree = \"<group>\"; };\n\t\tE21752B71B914B9600BE234A /* inttypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = inttypes.h; sourceTree = \"<group>\"; };\n\t\tE21752B81B914B9600BE234A /* merge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = merge.h; sourceTree = \"<group>\"; };\n\t\tE21752B91B914B9600BE234A /* message.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = message.h; sourceTree = \"<group>\"; };\n\t\tE21752BA1B914B9600BE234A /* net.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = net.h; sourceTree = \"<group>\"; };\n\t\tE21752BB1B914B9600BE234A /* notes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = notes.h; sourceTree = \"<group>\"; };\n\t\tE21752BC1B914B9600BE234A /* object.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = object.h; sourceTree = \"<group>\"; };\n\t\tE21752BD1B914B9600BE234A /* odb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = odb.h; sourceTree = \"<group>\"; };\n\t\tE21752BE1B914B9600BE234A /* odb_backend.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = odb_backend.h; sourceTree = \"<group>\"; };\n\t\tE21752BF1B914B9600BE234A /* oid.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = oid.h; sourceTree = \"<group>\"; };\n\t\tE21752C01B914B9600BE234A /* oidarray.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = oidarray.h; sourceTree = \"<group>\"; };\n\t\tE21752C11B914B9600BE234A /* pack.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pack.h; sourceTree = \"<group>\"; };\n\t\tE21752C21B914B9600BE234A /* patch.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = patch.h; sourceTree = \"<group>\"; };\n\t\tE21752C31B914B9600BE234A /* pathspec.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pathspec.h; sourceTree = \"<group>\"; };\n\t\tE21752C41B914B9600BE234A /* rebase.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rebase.h; sourceTree = \"<group>\"; };\n\t\tE21752C51B914B9600BE234A /* refdb.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = refdb.h; sourceTree = \"<group>\"; };\n\t\tE21752C61B914B9600BE234A /* reflog.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = reflog.h; sourceTree = \"<group>\"; };\n\t\tE21752C71B914B9600BE234A /* refs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = refs.h; sourceTree = \"<group>\"; };\n\t\tE21752C81B914B9600BE234A /* refspec.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = refspec.h; sourceTree = \"<group>\"; };\n\t\tE21752C91B914B9600BE234A /* remote.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = remote.h; sourceTree = \"<group>\"; };\n\t\tE21752CA1B914B9600BE234A /* repository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = repository.h; sourceTree = \"<group>\"; };\n\t\tE21752CB1B914B9600BE234A /* reset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = reset.h; sourceTree = \"<group>\"; };\n\t\tE21752CC1B914B9600BE234A /* revert.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = revert.h; sourceTree = \"<group>\"; };\n\t\tE21752CD1B914B9600BE234A /* revparse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = revparse.h; sourceTree = \"<group>\"; };\n\t\tE21752CE1B914B9600BE234A /* revwalk.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = revwalk.h; sourceTree = \"<group>\"; };\n\t\tE21752CF1B914B9600BE234A /* signature.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = signature.h; sourceTree = \"<group>\"; };\n\t\tE21752D01B914B9600BE234A /* stash.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stash.h; sourceTree = \"<group>\"; };\n\t\tE21752D11B914B9600BE234A /* status.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = status.h; sourceTree = \"<group>\"; };\n\t\tE21752D21B914B9600BE234A /* stdint.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stdint.h; sourceTree = \"<group>\"; };\n\t\tE21752D31B914B9600BE234A /* strarray.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = strarray.h; sourceTree = \"<group>\"; };\n\t\tE21752D41B914B9600BE234A /* submodule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = submodule.h; sourceTree = \"<group>\"; };\n\t\tE21752D61B914B9600BE234A /* commit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = commit.h; sourceTree = \"<group>\"; };\n\t\tE21752D71B914B9600BE234A /* config.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = \"<group>\"; };\n\t\tE21752D81B914B9600BE234A /* diff.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = diff.h; sourceTree = \"<group>\"; };\n\t\tE21752D91B914B9600BE234A /* filter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = filter.h; sourceTree = \"<group>\"; };\n\t\tE21752DA1B914B9600BE234A /* hashsig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = hashsig.h; sourceTree = \"<group>\"; };\n\t\tE21752DB1B914B9600BE234A /* index.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = index.h; sourceTree = \"<group>\"; };\n\t\tE21752DC1B914B9600BE234A /* mempack.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = mempack.h; sourceTree = \"<group>\"; };\n\t\tE21752DD1B914B9600BE234A /* odb_backend.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = odb_backend.h; sourceTree = \"<group>\"; };\n\t\tE21752DE1B914B9600BE234A /* openssl.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = openssl.h; sourceTree = \"<group>\"; };\n\t\tE21752DF1B914B9600BE234A /* refdb_backend.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = refdb_backend.h; sourceTree = \"<group>\"; };\n\t\tE21752E01B914B9600BE234A /* reflog.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = reflog.h; sourceTree = \"<group>\"; };\n\t\tE21752E11B914B9600BE234A /* refs.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = refs.h; sourceTree = \"<group>\"; };\n\t\tE21752E21B914B9600BE234A /* repository.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = repository.h; sourceTree = \"<group>\"; };\n\t\tE21752E31B914B9600BE234A /* stream.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = stream.h; sourceTree = \"<group>\"; };\n\t\tE21752E41B914B9600BE234A /* transport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = transport.h; sourceTree = \"<group>\"; };\n\t\tE21752E51B914B9600BE234A /* tag.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tag.h; sourceTree = \"<group>\"; };\n\t\tE21752E61B914B9600BE234A /* trace.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = trace.h; sourceTree = \"<group>\"; };\n\t\tE21752E71B914B9600BE234A /* transaction.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = transaction.h; sourceTree = \"<group>\"; };\n\t\tE21752E81B914B9600BE234A /* transport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = transport.h; sourceTree = \"<group>\"; };\n\t\tE21752E91B914B9600BE234A /* tree.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = tree.h; sourceTree = \"<group>\"; };\n\t\tE21752EA1B914B9600BE234A /* types.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = types.h; sourceTree = \"<group>\"; };\n\t\tE21752EB1B914B9600BE234A /* version.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = version.h; sourceTree = \"<group>\"; };\n\t\tE21752EC1B914B9600BE234A /* git2.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = git2.h; sourceTree = \"<group>\"; };\n\t\tE228B2B11CA997DD00A026FC /* merge_driver.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = merge_driver.c; sourceTree = \"<group>\"; };\n\t\tE228B2B21CA997DD00A026FC /* merge_driver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = merge_driver.h; sourceTree = \"<group>\"; };\n\t\tE2B332B02027906200CD10B3 /* idxmap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = idxmap.h; sourceTree = \"<group>\"; };\n\t\tE2B332B12027906300CD10B3 /* idxmap.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = idxmap.c; sourceTree = \"<group>\"; };\n\t\tE2B332B42027908C00CD10B3 /* oidmap.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = oidmap.c; sourceTree = \"<group>\"; };\n\t\tE2B332B7202790A400CD10B3 /* offmap.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = offmap.c; sourceTree = \"<group>\"; };\n\t\tE2B332BA202790C000CD10B3 /* worktree.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = worktree.h; sourceTree = \"<group>\"; };\n\t\tE2B332BB202790C000CD10B3 /* worktree.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = worktree.c; sourceTree = \"<group>\"; };\n\t\tE2B332BE202790DF00CD10B3 /* hash_collisiondetect.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = hash_collisiondetect.h; sourceTree = \"<group>\"; };\n\t\tE2DC02F31E126E0F00CC091F /* proxy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = proxy.c; sourceTree = \"<group>\"; };\n\t\tE2DC02F41E126E0F00CC091F /* proxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = proxy.h; sourceTree = \"<group>\"; };\n\t\tE2DC02F71E126E3E00CC091F /* apply.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = apply.c; sourceTree = \"<group>\"; };\n\t\tE2DC02F81E126E3E00CC091F /* apply.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = apply.h; sourceTree = \"<group>\"; };\n\t\tE2DC02FB1E126E4D00CC091F /* diff_generate.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_generate.c; sourceTree = \"<group>\"; };\n\t\tE2DC02FC1E126E4D00CC091F /* diff_generate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diff_generate.h; sourceTree = \"<group>\"; };\n\t\tE2DC02FD1E126E4D00CC091F /* diff_parse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = diff_parse.c; sourceTree = \"<group>\"; };\n\t\tE2DC02FE1E126E4D00CC091F /* diff_parse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = diff_parse.h; sourceTree = \"<group>\"; };\n\t\tE2DC03031E126E5C00CC091F /* diff_tform.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = diff_tform.h; sourceTree = \"<group>\"; };\n\t\tE2DC03041E126E7700CC091F /* patch_generate.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = patch_generate.c; sourceTree = \"<group>\"; };\n\t\tE2DC03051E126E7700CC091F /* patch_generate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = patch_generate.h; sourceTree = \"<group>\"; };\n\t\tE2DC03061E126E7700CC091F /* patch_parse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = patch_parse.c; sourceTree = \"<group>\"; };\n\t\tE2DC03071E126E7700CC091F /* patch_parse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = patch_parse.h; sourceTree = \"<group>\"; };\n\t\tE2DC03081E126E7700CC091F /* patch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = patch.c; sourceTree = \"<group>\"; };\n\t\tE2DC03091E126E7700CC091F /* patch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = patch.h; sourceTree = \"<group>\"; };\n\t\tE2DC03101E126ECE00CC091F /* proxy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = proxy.h; sourceTree = \"<group>\"; };\n\t\tE2DC03111E126EF900CC091F /* merge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = merge.h; sourceTree = \"<group>\"; };\n\t\tE2DC03121E126F0600CC091F /* remote.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = remote.h; sourceTree = \"<group>\"; };\n\t\tE2DC03131E126F6100CC091F /* varint.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = varint.c; sourceTree = \"<group>\"; };\n\t\tE2DC03141E126F6100CC091F /* varint.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = varint.h; sourceTree = \"<group>\"; };\n\t\tE2DC03171E126F7000CC091F /* pthread.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = pthread.h; sourceTree = \"<group>\"; };\n\t\tE2DC031A1E13C6E600CC091F /* time.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = time.h; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tE2174BD21B91240400BE234A /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDB4465762567262400D36981 /* libssh2.xcframework in Frameworks */,\n\t\t\t\tDB4465772567262400D36981 /* libcrypto.xcframework in Frameworks */,\n\t\t\t\tDB4465782567262400D36981 /* libssl.xcframework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\tDB4465722567262300D36981 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB4465742567262400D36981 /* libcrypto.xcframework */,\n\t\t\t\tDB4465732567262400D36981 /* libssh2.xcframework */,\n\t\t\t\tDB4465752567262400D36981 /* libssl.xcframework */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tDB72906422C83EB1007AB8F7 /* Xcode-Configurations */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tDB72906522C83EB1007AB8F7 /* Debug.xcconfig */,\n\t\t\t\tDB72906622C83EB1007AB8F7 /* Release.xcconfig */,\n\t\t\t\tDB72906722C83EB1007AB8F7 /* Base.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Xcode-Configurations\";\n\t\t\tpath = \"../../Xcode-Configurations\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE217485C1B911B5200BE234A = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE217529F1B914B9600BE234A /* Headers */,\n\t\t\t\tE2174F2A1B912B6B00BE234A /* Source */,\n\t\t\t\tE217515E1B912B8E00BE234A /* Dependencies */,\n\t\t\t\tDB72906422C83EB1007AB8F7 /* Xcode-Configurations */,\n\t\t\t\tDB4465722567262300D36981 /* Frameworks */,\n\t\t\t\tE21748661B911B5200BE234A /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21748661B911B5200BE234A /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2174BD51B91240400BE234A /* libgit2.a */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2174F2A1B912B6B00BE234A /* Source */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2174F2B1B912B6B00BE234A /* annotated_commit.c */,\n\t\t\t\tE2174F2C1B912B6B00BE234A /* annotated_commit.h */,\n\t\t\t\tE2DC02F71E126E3E00CC091F /* apply.c */,\n\t\t\t\tE2DC02F81E126E3E00CC091F /* apply.h */,\n\t\t\t\tE2174F2D1B912B6B00BE234A /* array.h */,\n\t\t\t\tE2174F2E1B912B6B00BE234A /* attr.c */,\n\t\t\t\tE2174F2F1B912B6B00BE234A /* attr.h */,\n\t\t\t\tE2174F301B912B6B00BE234A /* attr_file.c */,\n\t\t\t\tE2174F311B912B6B00BE234A /* attr_file.h */,\n\t\t\t\tE2174F321B912B6B00BE234A /* attrcache.c */,\n\t\t\t\tE2174F331B912B6B00BE234A /* attrcache.h */,\n\t\t\t\tE2174F341B912B6B00BE234A /* bitvec.h */,\n\t\t\t\tE2174F351B912B6B00BE234A /* blame.c */,\n\t\t\t\tE2174F361B912B6B00BE234A /* blame.h */,\n\t\t\t\tE2174F371B912B6B00BE234A /* blame_git.c */,\n\t\t\t\tE2174F381B912B6B00BE234A /* blame_git.h */,\n\t\t\t\tE2174F391B912B6B00BE234A /* blob.c */,\n\t\t\t\tE2174F3A1B912B6B00BE234A /* blob.h */,\n\t\t\t\tE2174F3B1B912B6B00BE234A /* branch.c */,\n\t\t\t\tE2174F3C1B912B6B00BE234A /* branch.h */,\n\t\t\t\tE2174F3D1B912B6B00BE234A /* buf_text.c */,\n\t\t\t\tE2174F3E1B912B6B00BE234A /* buf_text.h */,\n\t\t\t\tE2174F3F1B912B6B00BE234A /* buffer.c */,\n\t\t\t\tE2174F401B912B6B00BE234A /* buffer.h */,\n\t\t\t\tE2174F411B912B6B00BE234A /* cache.c */,\n\t\t\t\tE2174F421B912B6B00BE234A /* cache.h */,\n\t\t\t\tE2174F431B912B6B00BE234A /* cc-compat.h */,\n\t\t\t\tE2174F441B912B6B00BE234A /* checkout.c */,\n\t\t\t\tE2174F451B912B6B00BE234A /* checkout.h */,\n\t\t\t\tE2174F461B912B6B00BE234A /* cherrypick.c */,\n\t\t\t\tE2174F471B912B6B00BE234A /* clone.c */,\n\t\t\t\tE2174F481B912B6B00BE234A /* clone.h */,\n\t\t\t\tE2174F491B912B6B00BE234A /* commit.c */,\n\t\t\t\tE2174F4A1B912B6B00BE234A /* commit.h */,\n\t\t\t\tE2174F4B1B912B6B00BE234A /* commit_list.c */,\n\t\t\t\tE2174F4C1B912B6B00BE234A /* commit_list.h */,\n\t\t\t\tE2174F4D1B912B6B00BE234A /* common.h */,\n\t\t\t\tE2174F4E1B912B6B00BE234A /* config.c */,\n\t\t\t\tE2174F4F1B912B6B00BE234A /* config.h */,\n\t\t\t\tE2174F501B912B6B00BE234A /* config_cache.c */,\n\t\t\t\tE2174F511B912B6B00BE234A /* config_file.c */,\n\t\t\t\tE2174F521B912B6B00BE234A /* config_file.h */,\n\t\t\t\tE2174F531B912B6B00BE234A /* crlf.c */,\n\t\t\t\tE2174F541B912B6B00BE234A /* curl_stream.c */,\n\t\t\t\tE2174F551B912B6B00BE234A /* curl_stream.h */,\n\t\t\t\tE2174F561B912B6B00BE234A /* date.c */,\n\t\t\t\tE2174F591B912B6B00BE234A /* delta.c */,\n\t\t\t\tE2174F5A1B912B6B00BE234A /* delta.h */,\n\t\t\t\tE2174F5B1B912B6B00BE234A /* describe.c */,\n\t\t\t\tE2174F5C1B912B6B00BE234A /* diff.c */,\n\t\t\t\tE2174F5D1B912B6B00BE234A /* diff.h */,\n\t\t\t\tE2174F5E1B912B6B00BE234A /* diff_driver.c */,\n\t\t\t\tE2174F5F1B912B6B00BE234A /* diff_driver.h */,\n\t\t\t\tE2174F601B912B6B00BE234A /* diff_file.c */,\n\t\t\t\tE2174F611B912B6B00BE234A /* diff_file.h */,\n\t\t\t\tE2DC02FB1E126E4D00CC091F /* diff_generate.c */,\n\t\t\t\tE2DC02FC1E126E4D00CC091F /* diff_generate.h */,\n\t\t\t\tE2DC02FD1E126E4D00CC091F /* diff_parse.c */,\n\t\t\t\tE2DC02FE1E126E4D00CC091F /* diff_parse.h */,\n\t\t\t\tE2174F641B912B6B00BE234A /* diff_print.c */,\n\t\t\t\tE2174F651B912B6B00BE234A /* diff_stats.c */,\n\t\t\t\tE2174F661B912B6B00BE234A /* diff_tform.c */,\n\t\t\t\tE2DC03031E126E5C00CC091F /* diff_tform.h */,\n\t\t\t\tE2174F671B912B6B00BE234A /* diff_xdiff.c */,\n\t\t\t\tE2174F681B912B6B00BE234A /* diff_xdiff.h */,\n\t\t\t\tE2174F691B912B6B00BE234A /* errors.c */,\n\t\t\t\tE2174F6A1B912B6B00BE234A /* fetch.c */,\n\t\t\t\tE2174F6B1B912B6B00BE234A /* fetch.h */,\n\t\t\t\tE2174F6C1B912B6B00BE234A /* fetchhead.c */,\n\t\t\t\tE2174F6D1B912B6B00BE234A /* fetchhead.h */,\n\t\t\t\tE2174F6E1B912B6B00BE234A /* filebuf.c */,\n\t\t\t\tE2174F6F1B912B6B00BE234A /* filebuf.h */,\n\t\t\t\tE2174F701B912B6B00BE234A /* fileops.c */,\n\t\t\t\tE2174F711B912B6B00BE234A /* fileops.h */,\n\t\t\t\tE2174F721B912B6B00BE234A /* filter.c */,\n\t\t\t\tE2174F731B912B6B00BE234A /* filter.h */,\n\t\t\t\tE2174F741B912B6B00BE234A /* fnmatch.c */,\n\t\t\t\tE2174F751B912B6B00BE234A /* fnmatch.h */,\n\t\t\t\tE2174F761B912B6B00BE234A /* global.c */,\n\t\t\t\tE2174F771B912B6B00BE234A /* global.h */,\n\t\t\t\tE2174F781B912B6B00BE234A /* graph.c */,\n\t\t\t\tE2174F791B912B6B00BE234A /* hash */,\n\t\t\t\tE2174F801B912B6B00BE234A /* hash.c */,\n\t\t\t\tE2174F811B912B6B00BE234A /* hash.h */,\n\t\t\t\tE2174F821B912B6B00BE234A /* hashsig.c */,\n\t\t\t\tE2174F831B912B6B00BE234A /* ident.c */,\n\t\t\t\tE2B332B12027906300CD10B3 /* idxmap.c */,\n\t\t\t\tE2B332B02027906200CD10B3 /* idxmap.h */,\n\t\t\t\tE2174F841B912B6B00BE234A /* ignore.c */,\n\t\t\t\tE2174F851B912B6B00BE234A /* ignore.h */,\n\t\t\t\tE2174F861B912B6B00BE234A /* index.c */,\n\t\t\t\tE2174F871B912B6B00BE234A /* index.h */,\n\t\t\t\tE2174F881B912B6B00BE234A /* indexer.c */,\n\t\t\t\tE2174F891B912B6B00BE234A /* integer.h */,\n\t\t\t\tE2174F8A1B912B6B00BE234A /* iterator.c */,\n\t\t\t\tE2174F8B1B912B6B00BE234A /* iterator.h */,\n\t\t\t\tE2174F8C1B912B6B00BE234A /* khash.h */,\n\t\t\t\tE2174F8D1B912B6B00BE234A /* map.h */,\n\t\t\t\tE2174F8E1B912B6B00BE234A /* merge.c */,\n\t\t\t\tE2174F8F1B912B6B00BE234A /* merge.h */,\n\t\t\t\tE228B2B11CA997DD00A026FC /* merge_driver.c */,\n\t\t\t\tE228B2B21CA997DD00A026FC /* merge_driver.h */,\n\t\t\t\tE2174F901B912B6B00BE234A /* merge_file.c */,\n\t\t\t\tE2174F921B912B6B00BE234A /* message.c */,\n\t\t\t\tE2174F931B912B6B00BE234A /* message.h */,\n\t\t\t\tE2174F941B912B6B00BE234A /* mwindow.c */,\n\t\t\t\tE2174F951B912B6B00BE234A /* mwindow.h */,\n\t\t\t\tE2174F961B912B6B00BE234A /* netops.c */,\n\t\t\t\tE2174F971B912B6B00BE234A /* netops.h */,\n\t\t\t\tE2174F981B912B6B00BE234A /* notes.c */,\n\t\t\t\tE2174F991B912B6B00BE234A /* notes.h */,\n\t\t\t\tE2174F9A1B912B6B00BE234A /* object.c */,\n\t\t\t\tE2174F9B1B912B6B00BE234A /* object.h */,\n\t\t\t\tE2174F9C1B912B6B00BE234A /* object_api.c */,\n\t\t\t\tE2174F9D1B912B6B00BE234A /* odb.c */,\n\t\t\t\tE2174F9E1B912B6B00BE234A /* odb.h */,\n\t\t\t\tE2174F9F1B912B6B00BE234A /* odb_loose.c */,\n\t\t\t\tE2174FA01B912B6B00BE234A /* odb_mempack.c */,\n\t\t\t\tE2174FA11B912B6B00BE234A /* odb_pack.c */,\n\t\t\t\tE2B332B7202790A400CD10B3 /* offmap.c */,\n\t\t\t\tE2174FA21B912B6B00BE234A /* offmap.h */,\n\t\t\t\tE2174FA31B912B6B00BE234A /* oid.c */,\n\t\t\t\tE2174FA41B912B6B00BE234A /* oid.h */,\n\t\t\t\tE2174FA51B912B6B00BE234A /* oidarray.c */,\n\t\t\t\tE2174FA61B912B6B00BE234A /* oidarray.h */,\n\t\t\t\tE2B332B42027908C00CD10B3 /* oidmap.c */,\n\t\t\t\tE2174FA71B912B6B00BE234A /* oidmap.h */,\n\t\t\t\tE2174FA81B912B6B00BE234A /* openssl_stream.c */,\n\t\t\t\tE2174FA91B912B6B00BE234A /* openssl_stream.h */,\n\t\t\t\tE2174FAA1B912B6B00BE234A /* pack-objects.c */,\n\t\t\t\tE2174FAB1B912B6B00BE234A /* pack-objects.h */,\n\t\t\t\tE2174FAC1B912B6B00BE234A /* pack.c */,\n\t\t\t\tE2174FAD1B912B6B00BE234A /* pack.h */,\n\t\t\t\tE2DC03041E126E7700CC091F /* patch_generate.c */,\n\t\t\t\tE2DC03051E126E7700CC091F /* patch_generate.h */,\n\t\t\t\tE2DC03061E126E7700CC091F /* patch_parse.c */,\n\t\t\t\tE2DC03071E126E7700CC091F /* patch_parse.h */,\n\t\t\t\tE2DC03081E126E7700CC091F /* patch.c */,\n\t\t\t\tE2DC03091E126E7700CC091F /* patch.h */,\n\t\t\t\tE2174FAE1B912B6B00BE234A /* path.c */,\n\t\t\t\tE2174FAF1B912B6B00BE234A /* path.h */,\n\t\t\t\tE2174FB01B912B6B00BE234A /* pathspec.c */,\n\t\t\t\tE2174FB11B912B6B00BE234A /* pathspec.h */,\n\t\t\t\tE2174FB21B912B6B00BE234A /* pool.c */,\n\t\t\t\tE2174FB31B912B6B00BE234A /* pool.h */,\n\t\t\t\tE2174FB41B912B6B00BE234A /* posix.c */,\n\t\t\t\tE2174FB51B912B6B00BE234A /* posix.h */,\n\t\t\t\tE2174FB61B912B6B00BE234A /* pqueue.c */,\n\t\t\t\tE2174FB71B912B6B00BE234A /* pqueue.h */,\n\t\t\t\tE2DC02F31E126E0F00CC091F /* proxy.c */,\n\t\t\t\tE2DC02F41E126E0F00CC091F /* proxy.h */,\n\t\t\t\tE2174FB81B912B6B00BE234A /* push.c */,\n\t\t\t\tE2174FB91B912B6B00BE234A /* push.h */,\n\t\t\t\tE2174FBA1B912B6B00BE234A /* rebase.c */,\n\t\t\t\tE2174FBB1B912B6B00BE234A /* refdb.c */,\n\t\t\t\tE2174FBC1B912B6B00BE234A /* refdb.h */,\n\t\t\t\tE2174FBD1B912B6B00BE234A /* refdb_fs.c */,\n\t\t\t\tE2174FBE1B912B6B00BE234A /* refdb_fs.h */,\n\t\t\t\tE2174FBF1B912B6B00BE234A /* reflog.c */,\n\t\t\t\tE2174FC01B912B6B00BE234A /* reflog.h */,\n\t\t\t\tE2174FC11B912B6B00BE234A /* refs.c */,\n\t\t\t\tE2174FC21B912B6B00BE234A /* refs.h */,\n\t\t\t\tE2174FC31B912B6B00BE234A /* refspec.c */,\n\t\t\t\tE2174FC41B912B6B00BE234A /* refspec.h */,\n\t\t\t\tE2174FC51B912B6C00BE234A /* remote.c */,\n\t\t\t\tE2174FC61B912B6C00BE234A /* remote.h */,\n\t\t\t\tE2174FC71B912B6C00BE234A /* repo_template.h */,\n\t\t\t\tE2174FC81B912B6C00BE234A /* repository.c */,\n\t\t\t\tE2174FC91B912B6C00BE234A /* repository.h */,\n\t\t\t\tE2174FCA1B912B6C00BE234A /* reset.c */,\n\t\t\t\tE2174FCB1B912B6C00BE234A /* revert.c */,\n\t\t\t\tE2174FCC1B912B6C00BE234A /* revparse.c */,\n\t\t\t\tE2174FCD1B912B6C00BE234A /* revwalk.c */,\n\t\t\t\tE2174FCE1B912B6C00BE234A /* revwalk.h */,\n\t\t\t\tE2174FCF1B912B6C00BE234A /* settings.c */,\n\t\t\t\tE2174FD01B912B6C00BE234A /* sha1_lookup.c */,\n\t\t\t\tE2174FD11B912B6C00BE234A /* sha1_lookup.h */,\n\t\t\t\tE2174FD21B912B6C00BE234A /* signature.c */,\n\t\t\t\tE2174FD31B912B6C00BE234A /* signature.h */,\n\t\t\t\tE2174FD41B912B6C00BE234A /* socket_stream.c */,\n\t\t\t\tE2174FD51B912B6C00BE234A /* socket_stream.h */,\n\t\t\t\tE2174FD61B912B6C00BE234A /* sortedcache.c */,\n\t\t\t\tE2174FD71B912B6C00BE234A /* sortedcache.h */,\n\t\t\t\tE2174FD81B912B6C00BE234A /* stash.c */,\n\t\t\t\tE2174FD91B912B6C00BE234A /* status.c */,\n\t\t\t\tE2174FDA1B912B6C00BE234A /* status.h */,\n\t\t\t\tE2174FDB1B912B6C00BE234A /* stransport_stream.c */,\n\t\t\t\tE2174FDC1B912B6C00BE234A /* stransport_stream.h */,\n\t\t\t\tE2174FDD1B912B6C00BE234A /* stream.h */,\n\t\t\t\tE2174FDE1B912B6C00BE234A /* strmap.c */,\n\t\t\t\tE2174FDF1B912B6C00BE234A /* strmap.h */,\n\t\t\t\tE2174FE01B912B6C00BE234A /* strnlen.h */,\n\t\t\t\tE2174FE11B912B6C00BE234A /* submodule.c */,\n\t\t\t\tE2174FE21B912B6C00BE234A /* submodule.h */,\n\t\t\t\tE2174FE31B912B6C00BE234A /* sysdir.c */,\n\t\t\t\tE2174FE41B912B6C00BE234A /* sysdir.h */,\n\t\t\t\tE2174FE51B912B6C00BE234A /* tag.c */,\n\t\t\t\tE2174FE61B912B6C00BE234A /* tag.h */,\n\t\t\t\tE2174FE71B912B6C00BE234A /* thread-utils.c */,\n\t\t\t\tE2174FE81B912B6C00BE234A /* thread-utils.h */,\n\t\t\t\tE2174FE91B912B6C00BE234A /* tls_stream.c */,\n\t\t\t\tE2174FEA1B912B6C00BE234A /* tls_stream.h */,\n\t\t\t\tE2174FEB1B912B6C00BE234A /* trace.c */,\n\t\t\t\tE2174FEC1B912B6C00BE234A /* trace.h */,\n\t\t\t\tE2174FED1B912B6C00BE234A /* transaction.c */,\n\t\t\t\tE2174FEE1B912B6C00BE234A /* transaction.h */,\n\t\t\t\tE2174FEF1B912B6C00BE234A /* transport.c */,\n\t\t\t\tE2174FF01B912B6C00BE234A /* transports */,\n\t\t\t\tE21750011B912B6C00BE234A /* tree-cache.c */,\n\t\t\t\tE21750021B912B6C00BE234A /* tree-cache.h */,\n\t\t\t\tE21750031B912B6C00BE234A /* tree.c */,\n\t\t\t\tE21750041B912B6C00BE234A /* tree.h */,\n\t\t\t\tE21750051B912B6C00BE234A /* tsort.c */,\n\t\t\t\tE21750061B912B6C00BE234A /* unix */,\n\t\t\t\tE217500A1B912B6C00BE234A /* userdiff.h */,\n\t\t\t\tE217500B1B912B6C00BE234A /* util.c */,\n\t\t\t\tE217500C1B912B6C00BE234A /* util.h */,\n\t\t\t\tE2DC03131E126F6100CC091F /* varint.c */,\n\t\t\t\tE2DC03141E126F6100CC091F /* varint.h */,\n\t\t\t\tE217500D1B912B6C00BE234A /* vector.c */,\n\t\t\t\tE217500E1B912B6C00BE234A /* vector.h */,\n\t\t\t\tE2B332BB202790C000CD10B3 /* worktree.c */,\n\t\t\t\tE2B332BA202790C000CD10B3 /* worktree.h */,\n\t\t\t\tE217502E1B912B6C00BE234A /* xdiff */,\n\t\t\t\tE217503E1B912B6C00BE234A /* zstream.c */,\n\t\t\t\tE217503F1B912B6C00BE234A /* zstream.h */,\n\t\t\t);\n\t\t\tname = Source;\n\t\t\tpath = libgit2/src;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2174F791B912B6B00BE234A /* hash */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2B332BE202790DF00CD10B3 /* hash_collisiondetect.h */,\n\t\t\t\tE2174F7A1B912B6B00BE234A /* hash_common_crypto.h */,\n\t\t\t\tE2174F7D1B912B6B00BE234A /* hash_openssl.h */,\n\t\t\t);\n\t\t\tpath = hash;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2174FF01B912B6C00BE234A /* transports */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2174FF11B912B6C00BE234A /* auth.c */,\n\t\t\t\tE2174FF21B912B6C00BE234A /* auth.h */,\n\t\t\t\tE2174FF31B912B6C00BE234A /* auth_negotiate.c */,\n\t\t\t\tE2174FF41B912B6C00BE234A /* auth_negotiate.h */,\n\t\t\t\tE2174FF51B912B6C00BE234A /* cred.c */,\n\t\t\t\tE2174FF61B912B6C00BE234A /* cred.h */,\n\t\t\t\tE2174FF71B912B6C00BE234A /* cred_helpers.c */,\n\t\t\t\tE2174FF81B912B6C00BE234A /* git.c */,\n\t\t\t\tE2174FF91B912B6C00BE234A /* http.c */,\n\t\t\t\tE2174FFA1B912B6C00BE234A /* local.c */,\n\t\t\t\tE2174FFB1B912B6C00BE234A /* smart.c */,\n\t\t\t\tE2174FFC1B912B6C00BE234A /* smart.h */,\n\t\t\t\tE2174FFD1B912B6C00BE234A /* smart_pkt.c */,\n\t\t\t\tE2174FFE1B912B6C00BE234A /* smart_protocol.c */,\n\t\t\t\tE2174FFF1B912B6C00BE234A /* ssh.c */,\n\t\t\t\tE21750001B912B6C00BE234A /* winhttp.c */,\n\t\t\t);\n\t\t\tpath = transports;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21750061B912B6C00BE234A /* unix */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21750071B912B6C00BE234A /* map.c */,\n\t\t\t\tE21750081B912B6C00BE234A /* posix.h */,\n\t\t\t\tE2DC03171E126F7000CC091F /* pthread.h */,\n\t\t\t\tE21750091B912B6C00BE234A /* realpath.c */,\n\t\t\t);\n\t\t\tpath = unix;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE217502E1B912B6C00BE234A /* xdiff */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE217502F1B912B6C00BE234A /* xdiff.h */,\n\t\t\t\tE21750301B912B6C00BE234A /* xdiffi.c */,\n\t\t\t\tE21750311B912B6C00BE234A /* xdiffi.h */,\n\t\t\t\tE21750321B912B6C00BE234A /* xemit.c */,\n\t\t\t\tE21750331B912B6C00BE234A /* xemit.h */,\n\t\t\t\tE21750341B912B6C00BE234A /* xhistogram.c */,\n\t\t\t\tE21750351B912B6C00BE234A /* xinclude.h */,\n\t\t\t\tE21750361B912B6C00BE234A /* xmacros.h */,\n\t\t\t\tE21750371B912B6C00BE234A /* xmerge.c */,\n\t\t\t\tE21750381B912B6C00BE234A /* xpatience.c */,\n\t\t\t\tE21750391B912B6C00BE234A /* xprepare.c */,\n\t\t\t\tE217503A1B912B6C00BE234A /* xprepare.h */,\n\t\t\t\tE217503B1B912B6C00BE234A /* xtypes.h */,\n\t\t\t\tE217503C1B912B6C00BE234A /* xutils.c */,\n\t\t\t\tE217503D1B912B6C00BE234A /* xutils.h */,\n\t\t\t);\n\t\t\tpath = xdiff;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE217515E1B912B8E00BE234A /* Dependencies */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE217515F1B912B8E00BE234A /* http-parser */,\n\t\t\t);\n\t\t\tname = Dependencies;\n\t\t\tpath = libgit2/deps;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE217515F1B912B8E00BE234A /* http-parser */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21751601B912B8E00BE234A /* http_parser.c */,\n\t\t\t\tE21751611B912B8E00BE234A /* http_parser.h */,\n\t\t\t);\n\t\t\tpath = \"http-parser\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE217529F1B914B9600BE234A /* Headers */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21752A01B914B9600BE234A /* git2 */,\n\t\t\t\tE21752EC1B914B9600BE234A /* git2.h */,\n\t\t\t);\n\t\t\tname = Headers;\n\t\t\tpath = libgit2/include;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21752A01B914B9600BE234A /* git2 */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21752A11B914B9600BE234A /* annotated_commit.h */,\n\t\t\t\tE21752A21B914B9600BE234A /* attr.h */,\n\t\t\t\tE21752A31B914B9600BE234A /* blame.h */,\n\t\t\t\tE21752A41B914B9600BE234A /* blob.h */,\n\t\t\t\tE21752A51B914B9600BE234A /* branch.h */,\n\t\t\t\tE21752A61B914B9600BE234A /* buffer.h */,\n\t\t\t\tE21752A71B914B9600BE234A /* checkout.h */,\n\t\t\t\tE21752A81B914B9600BE234A /* cherrypick.h */,\n\t\t\t\tE21752A91B914B9600BE234A /* clone.h */,\n\t\t\t\tE21752AA1B914B9600BE234A /* commit.h */,\n\t\t\t\tE21752AB1B914B9600BE234A /* common.h */,\n\t\t\t\tE21752AC1B914B9600BE234A /* config.h */,\n\t\t\t\tE21752AD1B914B9600BE234A /* cred_helpers.h */,\n\t\t\t\tE21752AE1B914B9600BE234A /* describe.h */,\n\t\t\t\tE21752AF1B914B9600BE234A /* diff.h */,\n\t\t\t\tE21752B01B914B9600BE234A /* errors.h */,\n\t\t\t\tE21752B11B914B9600BE234A /* filter.h */,\n\t\t\t\tE21752B21B914B9600BE234A /* global.h */,\n\t\t\t\tE21752B31B914B9600BE234A /* graph.h */,\n\t\t\t\tE21752B41B914B9600BE234A /* ignore.h */,\n\t\t\t\tE21752B51B914B9600BE234A /* index.h */,\n\t\t\t\tE21752B61B914B9600BE234A /* indexer.h */,\n\t\t\t\tE21752B71B914B9600BE234A /* inttypes.h */,\n\t\t\t\tE21752B81B914B9600BE234A /* merge.h */,\n\t\t\t\tE21752B91B914B9600BE234A /* message.h */,\n\t\t\t\tE21752BA1B914B9600BE234A /* net.h */,\n\t\t\t\tE21752BB1B914B9600BE234A /* notes.h */,\n\t\t\t\tE21752BC1B914B9600BE234A /* object.h */,\n\t\t\t\tE21752BE1B914B9600BE234A /* odb_backend.h */,\n\t\t\t\tE21752BD1B914B9600BE234A /* odb.h */,\n\t\t\t\tE21752BF1B914B9600BE234A /* oid.h */,\n\t\t\t\tE21752C01B914B9600BE234A /* oidarray.h */,\n\t\t\t\tE21752C11B914B9600BE234A /* pack.h */,\n\t\t\t\tE21752C21B914B9600BE234A /* patch.h */,\n\t\t\t\tE21752C31B914B9600BE234A /* pathspec.h */,\n\t\t\t\tE2DC03101E126ECE00CC091F /* proxy.h */,\n\t\t\t\tE21752C41B914B9600BE234A /* rebase.h */,\n\t\t\t\tE21752C51B914B9600BE234A /* refdb.h */,\n\t\t\t\tE21752C61B914B9600BE234A /* reflog.h */,\n\t\t\t\tE21752C71B914B9600BE234A /* refs.h */,\n\t\t\t\tE21752C81B914B9600BE234A /* refspec.h */,\n\t\t\t\tE21752C91B914B9600BE234A /* remote.h */,\n\t\t\t\tE21752CA1B914B9600BE234A /* repository.h */,\n\t\t\t\tE21752CB1B914B9600BE234A /* reset.h */,\n\t\t\t\tE21752CC1B914B9600BE234A /* revert.h */,\n\t\t\t\tE21752CD1B914B9600BE234A /* revparse.h */,\n\t\t\t\tE21752CE1B914B9600BE234A /* revwalk.h */,\n\t\t\t\tE21752CF1B914B9600BE234A /* signature.h */,\n\t\t\t\tE21752D01B914B9600BE234A /* stash.h */,\n\t\t\t\tE21752D11B914B9600BE234A /* status.h */,\n\t\t\t\tE21752D21B914B9600BE234A /* stdint.h */,\n\t\t\t\tE21752D31B914B9600BE234A /* strarray.h */,\n\t\t\t\tE21752D41B914B9600BE234A /* submodule.h */,\n\t\t\t\tE21752D51B914B9600BE234A /* sys */,\n\t\t\t\tE21752E51B914B9600BE234A /* tag.h */,\n\t\t\t\tE21752E61B914B9600BE234A /* trace.h */,\n\t\t\t\tE21752E71B914B9600BE234A /* transaction.h */,\n\t\t\t\tE21752E81B914B9600BE234A /* transport.h */,\n\t\t\t\tE21752E91B914B9600BE234A /* tree.h */,\n\t\t\t\tE21752EA1B914B9600BE234A /* types.h */,\n\t\t\t\tE21752EB1B914B9600BE234A /* version.h */,\n\t\t\t);\n\t\t\tpath = git2;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE21752D51B914B9600BE234A /* sys */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE21752D61B914B9600BE234A /* commit.h */,\n\t\t\t\tE21752D71B914B9600BE234A /* config.h */,\n\t\t\t\tE21752D81B914B9600BE234A /* diff.h */,\n\t\t\t\tE21752D91B914B9600BE234A /* filter.h */,\n\t\t\t\tE21752DA1B914B9600BE234A /* hashsig.h */,\n\t\t\t\tE21752DB1B914B9600BE234A /* index.h */,\n\t\t\t\tE21752DC1B914B9600BE234A /* mempack.h */,\n\t\t\t\tE2DC03111E126EF900CC091F /* merge.h */,\n\t\t\t\tE21752DD1B914B9600BE234A /* odb_backend.h */,\n\t\t\t\tE21752DE1B914B9600BE234A /* openssl.h */,\n\t\t\t\tE21752DF1B914B9600BE234A /* refdb_backend.h */,\n\t\t\t\tE21752E01B914B9600BE234A /* reflog.h */,\n\t\t\t\tE21752E11B914B9600BE234A /* refs.h */,\n\t\t\t\tE2DC03121E126F0600CC091F /* remote.h */,\n\t\t\t\tE21752E21B914B9600BE234A /* repository.h */,\n\t\t\t\tE21752E31B914B9600BE234A /* stream.h */,\n\t\t\t\tE2DC031A1E13C6E600CC091F /* time.h */,\n\t\t\t\tE21752E41B914B9600BE234A /* transport.h */,\n\t\t\t);\n\t\t\tpath = sys;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\tE2174BD41B91240400BE234A /* libgit2 */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = E2174BD61B91240400BE234A /* Build configuration list for PBXNativeTarget \"libgit2\" */;\n\t\t\tbuildPhases = (\n\t\t\t\tE2174BD11B91240400BE234A /* Sources */,\n\t\t\t\tE2174BD21B91240400BE234A /* Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = libgit2;\n\t\t\tproductName = git2;\n\t\t\tproductReference = E2174BD51B91240400BE234A /* libgit2.a */;\n\t\t\tproductType = \"com.apple.product-type.library.static\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tE217485D1B911B5200BE234A /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 1340;\n\t\t\t\tORGANIZATIONNAME = \"\";\n\t\t\t};\n\t\t\tbuildConfigurationList = E21748601B911B5200BE234A /* Build configuration list for PBXProject \"libgit2\" */;\n\t\t\tcompatibilityVersion = \"Xcode 8.0\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\tBase,\n\t\t\t\ten,\n\t\t\t);\n\t\t\tmainGroup = E217485C1B911B5200BE234A;\n\t\t\tproductRefGroup = E21748661B911B5200BE234A /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tE2174BD41B91240400BE234A /* libgit2 */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\tE2174BD11B91240400BE234A /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tDB4464862567228400D36981 /* tsort.c in Sources */,\n\t\t\t\tDB4464872567228400D36981 /* merge.c in Sources */,\n\t\t\t\tDB4464882567228400D36981 /* mwindow.c in Sources */,\n\t\t\t\tDB4464892567228400D36981 /* refspec.c in Sources */,\n\t\t\t\tDB44648A2567228400D36981 /* patch_parse.c in Sources */,\n\t\t\t\tDB44648B2567228400D36981 /* pack.c in Sources */,\n\t\t\t\tDB44648C2567228400D36981 /* posix.c in Sources */,\n\t\t\t\tDB44648D2567228400D36981 /* diff_stats.c in Sources */,\n\t\t\t\tDB44648E2567228400D36981 /* idxmap.c in Sources */,\n\t\t\t\tDB44648F2567228400D36981 /* ssh.c in Sources */,\n\t\t\t\tDB4464902567228400D36981 /* path.c in Sources */,\n\t\t\t\tDB4464912567228400D36981 /* stash.c in Sources */,\n\t\t\t\tDB4464922567228400D36981 /* diff.c in Sources */,\n\t\t\t\tDB4464932567228400D36981 /* reset.c in Sources */,\n\t\t\t\tDB4464942567228400D36981 /* attr.c in Sources */,\n\t\t\t\tDB4464952567228400D36981 /* tls_stream.c in Sources */,\n\t\t\t\tDB4464962567228400D36981 /* refs.c in Sources */,\n\t\t\t\tDB4464972567228400D36981 /* annotated_commit.c in Sources */,\n\t\t\t\tDB4464982567228400D36981 /* xdiffi.c in Sources */,\n\t\t\t\tDB4464992567228400D36981 /* status.c in Sources */,\n\t\t\t\tDB44649A2567228400D36981 /* merge_driver.c in Sources */,\n\t\t\t\tDB44649B2567228400D36981 /* openssl_stream.c in Sources */,\n\t\t\t\tDB44649C2567228400D36981 /* commit_list.c in Sources */,\n\t\t\t\tDB44649D2567228400D36981 /* smart_pkt.c in Sources */,\n\t\t\t\tDB44649E2567228400D36981 /* realpath.c in Sources */,\n\t\t\t\tDB44649F2567228400D36981 /* blob.c in Sources */,\n\t\t\t\tDB4464A02567228400D36981 /* transport.c in Sources */,\n\t\t\t\tDB4464A12567228400D36981 /* errors.c in Sources */,\n\t\t\t\tDB4464A22567228400D36981 /* rebase.c in Sources */,\n\t\t\t\tDB4464A32567228400D36981 /* diff_parse.c in Sources */,\n\t\t\t\tDB4464A42567228400D36981 /* zstream.c in Sources */,\n\t\t\t\tDB4464A52567228400D36981 /* curl_stream.c in Sources */,\n\t\t\t\tDB4464A62567228400D36981 /* pool.c in Sources */,\n\t\t\t\tDB4464A72567228400D36981 /* commit.c in Sources */,\n\t\t\t\tDB4464A82567228400D36981 /* global.c in Sources */,\n\t\t\t\tDB4464A92567228400D36981 /* pathspec.c in Sources */,\n\t\t\t\tDB4464AA2567228400D36981 /* odb_loose.c in Sources */,\n\t\t\t\tDB4464AB2567228400D36981 /* settings.c in Sources */,\n\t\t\t\tDB4464AC2567228400D36981 /* tree-cache.c in Sources */,\n\t\t\t\tDB4464AD2567228400D36981 /* object_api.c in Sources */,\n\t\t\t\tDB4464AE2567228400D36981 /* odb_mempack.c in Sources */,\n\t\t\t\tDB4464AF2567228400D36981 /* clone.c in Sources */,\n\t\t\t\tDB4464B02567228400D36981 /* proxy.c in Sources */,\n\t\t\t\tDB4464B12567228400D36981 /* revwalk.c in Sources */,\n\t\t\t\tDB4464B22567228400D36981 /* date.c in Sources */,\n\t\t\t\tDB4464B32567228400D36981 /* object.c in Sources */,\n\t\t\t\tDB4464B42567228400D36981 /* oid.c in Sources */,\n\t\t\t\tDB4464B52567228400D36981 /* cred.c in Sources */,\n\t\t\t\tDB4464B62567228400D36981 /* map.c in Sources */,\n\t\t\t\tDB4464B72567228400D36981 /* winhttp.c in Sources */,\n\t\t\t\tDB4464B82567228400D36981 /* xpatience.c in Sources */,\n\t\t\t\tDB4464B92567228400D36981 /* smart_protocol.c in Sources */,\n\t\t\t\tDB4464BA2567228400D36981 /* smart.c in Sources */,\n\t\t\t\tDB4464BB2567228400D36981 /* pqueue.c in Sources */,\n\t\t\t\tDB4464BC2567228400D36981 /* socket_stream.c in Sources */,\n\t\t\t\tDB4464BD2567228400D36981 /* auth_negotiate.c in Sources */,\n\t\t\t\tDB4464BE2567228400D36981 /* cherrypick.c in Sources */,\n\t\t\t\tDB4464BF2567228400D36981 /* iterator.c in Sources */,\n\t\t\t\tDB4464C02567228400D36981 /* repository.c in Sources */,\n\t\t\t\tDB4464C12567228400D36981 /* hashsig.c in Sources */,\n\t\t\t\tDB4464C22567228400D36981 /* sha1_lookup.c in Sources */,\n\t\t\t\tDB4464C32567228400D36981 /* revparse.c in Sources */,\n\t\t\t\tDB4464C42567228400D36981 /* sortedcache.c in Sources */,\n\t\t\t\tDB4464C52567228400D36981 /* push.c in Sources */,\n\t\t\t\tDB4464C62567228400D36981 /* vector.c in Sources */,\n\t\t\t\tDB4464C72567228400D36981 /* diff_driver.c in Sources */,\n\t\t\t\tDB4464C82567228400D36981 /* submodule.c in Sources */,\n\t\t\t\tDB4464C92567228400D36981 /* sysdir.c in Sources */,\n\t\t\t\tDB4464CA2567228400D36981 /* config_file.c in Sources */,\n\t\t\t\tDB4464CB2567228400D36981 /* buffer.c in Sources */,\n\t\t\t\tDB4464CC2567228400D36981 /* diff_generate.c in Sources */,\n\t\t\t\tDB4464CD2567228400D36981 /* index.c in Sources */,\n\t\t\t\tDB4464CE2567228400D36981 /* indexer.c in Sources */,\n\t\t\t\tDB4464CF2567228400D36981 /* fetchhead.c in Sources */,\n\t\t\t\tDB4464D02567228400D36981 /* worktree.c in Sources */,\n\t\t\t\tDB4464D12567228400D36981 /* attr_file.c in Sources */,\n\t\t\t\tDB4464D22567228400D36981 /* remote.c in Sources */,\n\t\t\t\tDB4464D32567228400D36981 /* odb.c in Sources */,\n\t\t\t\tDB4464D42567228400D36981 /* strmap.c in Sources */,\n\t\t\t\tDB4464D52567228400D36981 /* describe.c in Sources */,\n\t\t\t\tDB4464D62567228400D36981 /* netops.c in Sources */,\n\t\t\t\tDB4464D72567228400D36981 /* odb_pack.c in Sources */,\n\t\t\t\tDB4464D82567228400D36981 /* pack-objects.c in Sources */,\n\t\t\t\tDB4464D92567228400D36981 /* fnmatch.c in Sources */,\n\t\t\t\tDB4464DA2567228400D36981 /* crlf.c in Sources */,\n\t\t\t\tDB4464DB2567228400D36981 /* patch_generate.c in Sources */,\n\t\t\t\tDB4464DC2567228400D36981 /* message.c in Sources */,\n\t\t\t\tDB4464DD2567228400D36981 /* auth.c in Sources */,\n\t\t\t\tDB4464DE2567228400D36981 /* transaction.c in Sources */,\n\t\t\t\tDB4464DF2567228400D36981 /* fileops.c in Sources */,\n\t\t\t\tDB4464E02567228400D36981 /* checkout.c in Sources */,\n\t\t\t\tDB4464E12567228400D36981 /* fetch.c in Sources */,\n\t\t\t\tDB4464E22567228400D36981 /* tree.c in Sources */,\n\t\t\t\tDB4464E32567228400D36981 /* http.c in Sources */,\n\t\t\t\tDB4464E42567228400D36981 /* apply.c in Sources */,\n\t\t\t\tDB4464E52567228400D36981 /* varint.c in Sources */,\n\t\t\t\tDB4464E62567228400D36981 /* oidmap.c in Sources */,\n\t\t\t\tDB4464E72567228400D36981 /* xhistogram.c in Sources */,\n\t\t\t\tDB4464E82567228400D36981 /* signature.c in Sources */,\n\t\t\t\tDB4464E92567228400D36981 /* oidarray.c in Sources */,\n\t\t\t\tDB4464EA2567228400D36981 /* util.c in Sources */,\n\t\t\t\tDB4464EB2567228400D36981 /* notes.c in Sources */,\n\t\t\t\tDB4464EC2567228400D36981 /* hash.c in Sources */,\n\t\t\t\tDB4464ED2567228400D36981 /* tag.c in Sources */,\n\t\t\t\tDB4464EE2567228400D36981 /* diff_xdiff.c in Sources */,\n\t\t\t\tDB4464EF2567228400D36981 /* xprepare.c in Sources */,\n\t\t\t\tDB4464F02567228400D36981 /* blame.c in Sources */,\n\t\t\t\tDB4464F12567228400D36981 /* thread-utils.c in Sources */,\n\t\t\t\tDB4464F22567228400D36981 /* cred_helpers.c in Sources */,\n\t\t\t\tDB4464F32567228400D36981 /* xemit.c in Sources */,\n\t\t\t\tDB4464F42567228400D36981 /* refdb.c in Sources */,\n\t\t\t\tDB4464F52567228400D36981 /* xutils.c in Sources */,\n\t\t\t\tDB4464F62567228400D36981 /* patch.c in Sources */,\n\t\t\t\tDB4464F72567228400D36981 /* local.c in Sources */,\n\t\t\t\tDB4464F82567228400D36981 /* trace.c in Sources */,\n\t\t\t\tDB4464F92567228400D36981 /* cache.c in Sources */,\n\t\t\t\tDB4464FA2567228400D36981 /* config_cache.c in Sources */,\n\t\t\t\tDB4464FB2567228400D36981 /* merge_file.c in Sources */,\n\t\t\t\tDB4464FC2567228400D36981 /* buf_text.c in Sources */,\n\t\t\t\tDB4464FD2567228400D36981 /* diff_print.c in Sources */,\n\t\t\t\tDB4464FE2567228400D36981 /* filebuf.c in Sources */,\n\t\t\t\tDB4464FF2567228400D36981 /* refdb_fs.c in Sources */,\n\t\t\t\tDB4465002567228400D36981 /* revert.c in Sources */,\n\t\t\t\tDB4465012567228400D36981 /* delta.c in Sources */,\n\t\t\t\tDB4465022567228400D36981 /* blame_git.c in Sources */,\n\t\t\t\tDB4465032567228400D36981 /* config.c in Sources */,\n\t\t\t\tDB4465042567228400D36981 /* diff_file.c in Sources */,\n\t\t\t\tDB4465052567228400D36981 /* offmap.c in Sources */,\n\t\t\t\tDB4465062567228400D36981 /* graph.c in Sources */,\n\t\t\t\tDB4465072567228400D36981 /* attrcache.c in Sources */,\n\t\t\t\tDB4465082567228400D36981 /* stransport_stream.c in Sources */,\n\t\t\t\tDB4465092567228400D36981 /* reflog.c in Sources */,\n\t\t\t\tDB44650A2567228400D36981 /* diff_tform.c in Sources */,\n\t\t\t\tDB44650B2567228400D36981 /* git.c in Sources */,\n\t\t\t\tDB44650C2567228400D36981 /* xmerge.c in Sources */,\n\t\t\t\tDB44650D2567228400D36981 /* http_parser.c in Sources */,\n\t\t\t\tDB44650E2567228400D36981 /* branch.c in Sources */,\n\t\t\t\tDB44650F2567228400D36981 /* ident.c in Sources */,\n\t\t\t\tDB4465102567228400D36981 /* ignore.c in Sources */,\n\t\t\t\tDB4465112567228400D36981 /* filter.c in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin XCBuildConfiguration section */\n\t\tE217486A1B911B5200BE234A /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72906522C83EB1007AB8F7 /* Debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ENABLE_MODULES = NO;\n\t\t\t\tCLANG_WARN_COMMA = NO;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"_FILE_OFFSET_BITS=64\",\n\t\t\t\t\tHAVE_QSORT_R,\n\t\t\t\t\tGIT_THREADS,\n\t\t\t\t\tGIT_USE_ICONV,\n\t\t\t\t\tGIT_SHA1_COMMON_CRYPTO,\n\t\t\t\t\tGIT_SECURE_TRANSPORT,\n\t\t\t\t\tGIT_HTTPS,\n\t\t\t\t\tGIT_SSH,\n\t\t\t\t\tGIT_USE_STAT_MTIMESPEC,\n\t\t\t\t\tGIT_USE_NSEC,\n\t\t\t\t\tGIT_ARCH_64,\n\t\t\t\t);\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = NO;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSUPPORTED_PLATFORMS = \"macosx iphoneos iphonesimulator\";\n\t\t\t\tWARNING_CFLAGS = (\n\t\t\t\t\t\"-Wall\",\n\t\t\t\t\t\"-Wextra\",\n\t\t\t\t\t\"-Wno-deprecated-declarations\",\n\t\t\t\t\t\"-Wno-missing-field-initializers\",\n\t\t\t\t\t\"-Wno-unused-function\",\n\t\t\t\t\t\"-Wno-unused-const-variable\",\n\t\t\t\t\t\"-Wno-incompatible-pointer-types\",\n\t\t\t\t\t\"-Wno-shorten-64-to-32\",\n\t\t\t\t\t\"-Wno-format\",\n\t\t\t\t\t\"-Wno-bool-operation\",\n\t\t\t\t);\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE217486B1B911B5200BE234A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = DB72906622C83EB1007AB8F7 /* Release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ENABLE_MODULES = NO;\n\t\t\t\tCLANG_WARN_COMMA = NO;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"_FILE_OFFSET_BITS=64\",\n\t\t\t\t\tHAVE_QSORT_R,\n\t\t\t\t\tGIT_THREADS,\n\t\t\t\t\tGIT_USE_ICONV,\n\t\t\t\t\tGIT_SHA1_COMMON_CRYPTO,\n\t\t\t\t\tGIT_SECURE_TRANSPORT,\n\t\t\t\t\tGIT_HTTPS,\n\t\t\t\t\tGIT_SSH,\n\t\t\t\t\tGIT_USE_STAT_MTIMESPEC,\n\t\t\t\t\tGIT_USE_NSEC,\n\t\t\t\t\tGIT_ARCH_64,\n\t\t\t\t);\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = NO;\n\t\t\t\tIPHONEOS_DEPLOYMENT_TARGET = 12.0;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSUPPORTED_PLATFORMS = \"macosx iphoneos iphonesimulator\";\n\t\t\t\tWARNING_CFLAGS = (\n\t\t\t\t\t\"-Wall\",\n\t\t\t\t\t\"-Wextra\",\n\t\t\t\t\t\"-Wno-deprecated-declarations\",\n\t\t\t\t\t\"-Wno-missing-field-initializers\",\n\t\t\t\t\t\"-Wno-unused-function\",\n\t\t\t\t\t\"-Wno-unused-const-variable\",\n\t\t\t\t\t\"-Wno-incompatible-pointer-types\",\n\t\t\t\t\t\"-Wno-shorten-64-to-32\",\n\t\t\t\t\t\"-Wno-format\",\n\t\t\t\t\t\"-Wno-bool-operation\",\n\t\t\t\t);\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tE2174BD71B91240400BE234A /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tEXECUTABLE_PREFIX = lib;\n\t\t\t\tHEADER_SEARCH_PATHS = (\n\t\t\t\t\tlibgit2/src,\n\t\t\t\t\tlibgit2/include,\n\t\t\t\t\t\"libgit2/deps/http-parser\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.github.libgit2;\n\t\t\t\tPRODUCT_NAME = git2;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tUSE_HEADERMAP = NO;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tE2174BD81B91240400BE234A /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tEXECUTABLE_PREFIX = lib;\n\t\t\t\tHEADER_SEARCH_PATHS = (\n\t\t\t\t\tlibgit2/src,\n\t\t\t\t\tlibgit2/include,\n\t\t\t\t\t\"libgit2/deps/http-parser\",\n\t\t\t\t);\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = com.github.libgit2;\n\t\t\t\tPRODUCT_NAME = git2;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tUSE_HEADERMAP = NO;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\tE21748601B911B5200BE234A /* Build configuration list for PBXProject \"libgit2\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE217486A1B911B5200BE234A /* Debug */,\n\t\t\t\tE217486B1B911B5200BE234A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tE2174BD61B91240400BE234A /* Build configuration list for PBXNativeTarget \"libgit2\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tE2174BD71B91240400BE234A /* Debug */,\n\t\t\t\tE2174BD81B91240400BE234A /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = E217485D1B911B5200BE234A /* Project object */;\n}\n"
  },
  {
    "path": "GitUpKit/Third-Party/libgit2.xcodeproj/xcshareddata/xcschemes/libgit2.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1340\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"E2174BD41B91240400BE234A\"\n               BuildableName = \"libgit2.a\"\n               BlueprintName = \"libgit2\"\n               ReferencedContainer = \"container:libgit2.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <MacroExpansion>\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"E2174BD41B91240400BE234A\"\n            BuildableName = \"libgit2.a\"\n            BlueprintName = \"libgit2\"\n            ReferencedContainer = \"container:libgit2.xcodeproj\">\n         </BuildableReference>\n      </MacroExpansion>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>AvailableLibraries</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>macos-arm64_x86_64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libsqlite3.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>macos</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libsqlite3.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64_x86_64-simulator</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libsqlite3.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t\t<key>SupportedPlatformVariant</key>\n\t\t\t<string>simulator</string>\n\t\t</dict>\n\t</array>\n\t<key>CFBundlePackageType</key>\n\t<string>XFWK</string>\n\t<key>XCFrameworkFormatVersion</key>\n\t<string>1.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/ios-arm64/Headers/sqlite3.h",
    "content": "/*\n** 2001-09-15\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n** This header file defines the interface that the SQLite library\n** presents to client programs.  If a C-function, structure, datatype,\n** or constant definition does not appear in this file, then it is\n** not a published API of SQLite, is subject to change without\n** notice, and should not be referenced by programs that use SQLite.\n**\n** Some of the definitions that are in this file are marked as\n** \"experimental\".  Experimental interfaces are normally new\n** features recently added to SQLite.  We do not anticipate changes\n** to experimental interfaces but reserve the right to make minor changes\n** if experience from use \"in the wild\" suggest such changes are prudent.\n**\n** The official C-language API documentation for SQLite is derived\n** from comments in this file.  This file is the authoritative source\n** on how SQLite interfaces are supposed to operate.\n**\n** The name of this file under configuration management is \"sqlite.h.in\".\n** The makefile makes some minor changes to this file (such as inserting\n** the version number) and changes its name to \"sqlite3.h\" as\n** part of the build process.\n*/\n#ifndef SQLITE3_H\n#define SQLITE3_H\n#include <stdarg.h>     /* Needed for the definition of va_list */\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n/*\n** Provide the ability to override linkage features of the interface.\n*/\n#ifndef SQLITE_EXTERN\n# define SQLITE_EXTERN extern\n#endif\n#ifndef SQLITE_API\n# define SQLITE_API\n#endif\n#ifndef SQLITE_CDECL\n# define SQLITE_CDECL\n#endif\n#ifndef SQLITE_APICALL\n# define SQLITE_APICALL\n#endif\n#ifndef SQLITE_STDCALL\n# define SQLITE_STDCALL SQLITE_APICALL\n#endif\n#ifndef SQLITE_CALLBACK\n# define SQLITE_CALLBACK\n#endif\n#ifndef SQLITE_SYSAPI\n# define SQLITE_SYSAPI\n#endif\n\n/*\n** These no-op macros are used in front of interfaces to mark those\n** interfaces as either deprecated or experimental.  New applications\n** should not use deprecated interfaces - they are supported for backwards\n** compatibility only.  Application writers should be aware that\n** experimental interfaces are subject to change in point releases.\n**\n** These macros used to resolve to various kinds of compiler magic that\n** would generate warning messages when they were used.  But that\n** compiler magic ended up generating such a flurry of bug reports\n** that we have taken it all out and gone back to using simple\n** noop macros.\n*/\n#define SQLITE_DEPRECATED\n#define SQLITE_EXPERIMENTAL\n\n/*\n** Ensure these symbols were not defined by some previous header file.\n*/\n#ifdef SQLITE_VERSION\n# undef SQLITE_VERSION\n#endif\n#ifdef SQLITE_VERSION_NUMBER\n# undef SQLITE_VERSION_NUMBER\n#endif\n\n/*\n** CAPI3REF: Compile-Time Library Version Numbers\n**\n** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header\n** evaluates to a string literal that is the SQLite version in the\n** format \"X.Y.Z\" where X is the major version number (always 3 for\n** SQLite3) and Y is the minor version number and Z is the release number.)^\n** ^(The [SQLITE_VERSION_NUMBER] C preprocessor macro resolves to an integer\n** with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same\n** numbers used in [SQLITE_VERSION].)^\n** The SQLITE_VERSION_NUMBER for any given release of SQLite will also\n** be larger than the release from which it is derived.  Either Y will\n** be held constant and Z will be incremented or else Y will be incremented\n** and Z will be reset to zero.\n**\n** Since [version 3.6.18] ([dateof:3.6.18]), \n** SQLite source code has been stored in the\n** <a href=\"http://www.fossil-scm.org/\">Fossil configuration management\n** system</a>.  ^The SQLITE_SOURCE_ID macro evaluates to\n** a string which identifies a particular check-in of SQLite\n** within its configuration management system.  ^The SQLITE_SOURCE_ID\n** string contains the date and time of the check-in (UTC) and a SHA1\n** or SHA3-256 hash of the entire source tree.  If the source code has\n** been edited in any way since it was last checked in, then the last\n** four hexadecimal digits of the hash may be modified.\n**\n** See also: [sqlite3_libversion()],\n** [sqlite3_libversion_number()], [sqlite3_sourceid()],\n** [sqlite_version()] and [sqlite_source_id()].\n*/\n#define SQLITE_VERSION        \"3.22.0\"\n#define SQLITE_VERSION_NUMBER 3022000\n#define SQLITE_SOURCE_ID      \"2018-01-22 18:45:57 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2171d\"\n\n/*\n** CAPI3REF: Run-Time Library Version Numbers\n** KEYWORDS: sqlite3_version sqlite3_sourceid\n**\n** These interfaces provide the same information as the [SQLITE_VERSION],\n** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros\n** but are associated with the library instead of the header file.  ^(Cautious\n** programmers might include assert() statements in their application to\n** verify that values returned by these interfaces match the macros in\n** the header, and thus ensure that the application is\n** compiled with matching library and header files.\n**\n** <blockquote><pre>\n** assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );\n** assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 );\n** assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );\n** </pre></blockquote>)^\n**\n** ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION]\n** macro.  ^The sqlite3_libversion() function returns a pointer to the\n** to the sqlite3_version[] string constant.  The sqlite3_libversion()\n** function is provided for use in DLLs since DLL users usually do not have\n** direct access to string constants within the DLL.  ^The\n** sqlite3_libversion_number() function returns an integer equal to\n** [SQLITE_VERSION_NUMBER].  ^(The sqlite3_sourceid() function returns \n** a pointer to a string constant whose value is the same as the \n** [SQLITE_SOURCE_ID] C preprocessor macro.  Except if SQLite is built\n** using an edited copy of [the amalgamation], then the last four characters\n** of the hash might be different from [SQLITE_SOURCE_ID].)^\n**\n** See also: [sqlite_version()] and [sqlite_source_id()].\n*/\nSQLITE_API SQLITE_EXTERN const char sqlite3_version[];\nSQLITE_API const char *sqlite3_libversion(void);\nSQLITE_API const char *sqlite3_sourceid(void);\nSQLITE_API int sqlite3_libversion_number(void);\n\n/*\n** CAPI3REF: Run-Time Library Compilation Options Diagnostics\n**\n** ^The sqlite3_compileoption_used() function returns 0 or 1 \n** indicating whether the specified option was defined at \n** compile time.  ^The SQLITE_ prefix may be omitted from the \n** option name passed to sqlite3_compileoption_used().  \n**\n** ^The sqlite3_compileoption_get() function allows iterating\n** over the list of options that were defined at compile time by\n** returning the N-th compile time option string.  ^If N is out of range,\n** sqlite3_compileoption_get() returns a NULL pointer.  ^The SQLITE_ \n** prefix is omitted from any strings returned by \n** sqlite3_compileoption_get().\n**\n** ^Support for the diagnostic functions sqlite3_compileoption_used()\n** and sqlite3_compileoption_get() may be omitted by specifying the \n** [SQLITE_OMIT_COMPILEOPTION_DIAGS] option at compile time.\n**\n** See also: SQL functions [sqlite_compileoption_used()] and\n** [sqlite_compileoption_get()] and the [compile_options pragma].\n*/\n#ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS\nSQLITE_API int sqlite3_compileoption_used(const char *zOptName);\nSQLITE_API const char *sqlite3_compileoption_get(int N);\n#endif\n\n/*\n** CAPI3REF: Test To See If The Library Is Threadsafe\n**\n** ^The sqlite3_threadsafe() function returns zero if and only if\n** SQLite was compiled with mutexing code omitted due to the\n** [SQLITE_THREADSAFE] compile-time option being set to 0.\n**\n** SQLite can be compiled with or without mutexes.  When\n** the [SQLITE_THREADSAFE] C preprocessor macro is 1 or 2, mutexes\n** are enabled and SQLite is threadsafe.  When the\n** [SQLITE_THREADSAFE] macro is 0, \n** the mutexes are omitted.  Without the mutexes, it is not safe\n** to use SQLite concurrently from more than one thread.\n**\n** Enabling mutexes incurs a measurable performance penalty.\n** So if speed is of utmost importance, it makes sense to disable\n** the mutexes.  But for maximum safety, mutexes should be enabled.\n** ^The default behavior is for mutexes to be enabled.\n**\n** This interface can be used by an application to make sure that the\n** version of SQLite that it is linking against was compiled with\n** the desired setting of the [SQLITE_THREADSAFE] macro.\n**\n** This interface only reports on the compile-time mutex setting\n** of the [SQLITE_THREADSAFE] flag.  If SQLite is compiled with\n** SQLITE_THREADSAFE=1 or =2 then mutexes are enabled by default but\n** can be fully or partially disabled using a call to [sqlite3_config()]\n** with the verbs [SQLITE_CONFIG_SINGLETHREAD], [SQLITE_CONFIG_MULTITHREAD],\n** or [SQLITE_CONFIG_SERIALIZED].  ^(The return value of the\n** sqlite3_threadsafe() function shows only the compile-time setting of\n** thread safety, not any run-time changes to that setting made by\n** sqlite3_config(). In other words, the return value from sqlite3_threadsafe()\n** is unchanged by calls to sqlite3_config().)^\n**\n** See the [threading mode] documentation for additional information.\n*/\nSQLITE_API int sqlite3_threadsafe(void);\n\n/*\n** CAPI3REF: Database Connection Handle\n** KEYWORDS: {database connection} {database connections}\n**\n** Each open SQLite database is represented by a pointer to an instance of\n** the opaque structure named \"sqlite3\".  It is useful to think of an sqlite3\n** pointer as an object.  The [sqlite3_open()], [sqlite3_open16()], and\n** [sqlite3_open_v2()] interfaces are its constructors, and [sqlite3_close()]\n** and [sqlite3_close_v2()] are its destructors.  There are many other\n** interfaces (such as\n** [sqlite3_prepare_v2()], [sqlite3_create_function()], and\n** [sqlite3_busy_timeout()] to name but three) that are methods on an\n** sqlite3 object.\n*/\ntypedef struct sqlite3 sqlite3;\n\n/*\n** CAPI3REF: 64-Bit Integer Types\n** KEYWORDS: sqlite_int64 sqlite_uint64\n**\n** Because there is no cross-platform way to specify 64-bit integer types\n** SQLite includes typedefs for 64-bit signed and unsigned integers.\n**\n** The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions.\n** The sqlite_int64 and sqlite_uint64 types are supported for backwards\n** compatibility only.\n**\n** ^The sqlite3_int64 and sqlite_int64 types can store integer values\n** between -9223372036854775808 and +9223372036854775807 inclusive.  ^The\n** sqlite3_uint64 and sqlite_uint64 types can store integer values \n** between 0 and +18446744073709551615 inclusive.\n*/\n#ifdef SQLITE_INT64_TYPE\n  typedef SQLITE_INT64_TYPE sqlite_int64;\n# ifdef SQLITE_UINT64_TYPE\n    typedef SQLITE_UINT64_TYPE sqlite_uint64;\n# else  \n    typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;\n# endif\n#elif defined(_MSC_VER) || defined(__BORLANDC__)\n  typedef __int64 sqlite_int64;\n  typedef unsigned __int64 sqlite_uint64;\n#else\n  typedef long long int sqlite_int64;\n  typedef unsigned long long int sqlite_uint64;\n#endif\ntypedef sqlite_int64 sqlite3_int64;\ntypedef sqlite_uint64 sqlite3_uint64;\n\n/*\n** If compiling for a processor that lacks floating point support,\n** substitute integer for floating-point.\n*/\n#ifdef SQLITE_OMIT_FLOATING_POINT\n# define double sqlite3_int64\n#endif\n\n/*\n** CAPI3REF: Closing A Database Connection\n** DESTRUCTOR: sqlite3\n**\n** ^The sqlite3_close() and sqlite3_close_v2() routines are destructors\n** for the [sqlite3] object.\n** ^Calls to sqlite3_close() and sqlite3_close_v2() return [SQLITE_OK] if\n** the [sqlite3] object is successfully destroyed and all associated\n** resources are deallocated.\n**\n** ^If the database connection is associated with unfinalized prepared\n** statements or unfinished sqlite3_backup objects then sqlite3_close()\n** will leave the database connection open and return [SQLITE_BUSY].\n** ^If sqlite3_close_v2() is called with unfinalized prepared statements\n** and/or unfinished sqlite3_backups, then the database connection becomes\n** an unusable \"zombie\" which will automatically be deallocated when the\n** last prepared statement is finalized or the last sqlite3_backup is\n** finished.  The sqlite3_close_v2() interface is intended for use with\n** host languages that are garbage collected, and where the order in which\n** destructors are called is arbitrary.\n**\n** Applications should [sqlite3_finalize | finalize] all [prepared statements],\n** [sqlite3_blob_close | close] all [BLOB handles], and \n** [sqlite3_backup_finish | finish] all [sqlite3_backup] objects associated\n** with the [sqlite3] object prior to attempting to close the object.  ^If\n** sqlite3_close_v2() is called on a [database connection] that still has\n** outstanding [prepared statements], [BLOB handles], and/or\n** [sqlite3_backup] objects then it returns [SQLITE_OK] and the deallocation\n** of resources is deferred until all [prepared statements], [BLOB handles],\n** and [sqlite3_backup] objects are also destroyed.\n**\n** ^If an [sqlite3] object is destroyed while a transaction is open,\n** the transaction is automatically rolled back.\n**\n** The C parameter to [sqlite3_close(C)] and [sqlite3_close_v2(C)]\n** must be either a NULL\n** pointer or an [sqlite3] object pointer obtained\n** from [sqlite3_open()], [sqlite3_open16()], or\n** [sqlite3_open_v2()], and not previously closed.\n** ^Calling sqlite3_close() or sqlite3_close_v2() with a NULL pointer\n** argument is a harmless no-op.\n*/\nSQLITE_API int sqlite3_close(sqlite3*);\nSQLITE_API int sqlite3_close_v2(sqlite3*);\n\n/*\n** The type for a callback function.\n** This is legacy and deprecated.  It is included for historical\n** compatibility and is not documented.\n*/\ntypedef int (*sqlite3_callback)(void*,int,char**, char**);\n\n/*\n** CAPI3REF: One-Step Query Execution Interface\n** METHOD: sqlite3\n**\n** The sqlite3_exec() interface is a convenience wrapper around\n** [sqlite3_prepare_v2()], [sqlite3_step()], and [sqlite3_finalize()],\n** that allows an application to run multiple statements of SQL\n** without having to use a lot of C code. \n**\n** ^The sqlite3_exec() interface runs zero or more UTF-8 encoded,\n** semicolon-separate SQL statements passed into its 2nd argument,\n** in the context of the [database connection] passed in as its 1st\n** argument.  ^If the callback function of the 3rd argument to\n** sqlite3_exec() is not NULL, then it is invoked for each result row\n** coming out of the evaluated SQL statements.  ^The 4th argument to\n** sqlite3_exec() is relayed through to the 1st argument of each\n** callback invocation.  ^If the callback pointer to sqlite3_exec()\n** is NULL, then no callback is ever invoked and result rows are\n** ignored.\n**\n** ^If an error occurs while evaluating the SQL statements passed into\n** sqlite3_exec(), then execution of the current statement stops and\n** subsequent statements are skipped.  ^If the 5th parameter to sqlite3_exec()\n** is not NULL then any error message is written into memory obtained\n** from [sqlite3_malloc()] and passed back through the 5th parameter.\n** To avoid memory leaks, the application should invoke [sqlite3_free()]\n** on error message strings returned through the 5th parameter of\n** sqlite3_exec() after the error message string is no longer needed.\n** ^If the 5th parameter to sqlite3_exec() is not NULL and no errors\n** occur, then sqlite3_exec() sets the pointer in its 5th parameter to\n** NULL before returning.\n**\n** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()\n** routine returns SQLITE_ABORT without invoking the callback again and\n** without running any subsequent SQL statements.\n**\n** ^The 2nd argument to the sqlite3_exec() callback function is the\n** number of columns in the result.  ^The 3rd argument to the sqlite3_exec()\n** callback is an array of pointers to strings obtained as if from\n** [sqlite3_column_text()], one for each column.  ^If an element of a\n** result row is NULL then the corresponding string pointer for the\n** sqlite3_exec() callback is a NULL pointer.  ^The 4th argument to the\n** sqlite3_exec() callback is an array of pointers to strings where each\n** entry represents the name of corresponding result column as obtained\n** from [sqlite3_column_name()].\n**\n** ^If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer\n** to an empty string, or a pointer that contains only whitespace and/or \n** SQL comments, then no SQL statements are evaluated and the database\n** is not changed.\n**\n** Restrictions:\n**\n** <ul>\n** <li> The application must ensure that the 1st parameter to sqlite3_exec()\n**      is a valid and open [database connection].\n** <li> The application must not close the [database connection] specified by\n**      the 1st parameter to sqlite3_exec() while sqlite3_exec() is running.\n** <li> The application must not modify the SQL statement text passed into\n**      the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running.\n** </ul>\n*/\nSQLITE_API int sqlite3_exec(\n  sqlite3*,                                  /* An open database */\n  const char *sql,                           /* SQL to be evaluated */\n  int (*callback)(void*,int,char**,char**),  /* Callback function */\n  void *,                                    /* 1st argument to callback */\n  char **errmsg                              /* Error msg written here */\n);\n\n/*\n** CAPI3REF: Result Codes\n** KEYWORDS: {result code definitions}\n**\n** Many SQLite functions return an integer result code from the set shown\n** here in order to indicate success or failure.\n**\n** New error codes may be added in future versions of SQLite.\n**\n** See also: [extended result code definitions]\n*/\n#define SQLITE_OK           0   /* Successful result */\n/* beginning-of-error-codes */\n#define SQLITE_ERROR        1   /* Generic error */\n#define SQLITE_INTERNAL     2   /* Internal logic error in SQLite */\n#define SQLITE_PERM         3   /* Access permission denied */\n#define SQLITE_ABORT        4   /* Callback routine requested an abort */\n#define SQLITE_BUSY         5   /* The database file is locked */\n#define SQLITE_LOCKED       6   /* A table in the database is locked */\n#define SQLITE_NOMEM        7   /* A malloc() failed */\n#define SQLITE_READONLY     8   /* Attempt to write a readonly database */\n#define SQLITE_INTERRUPT    9   /* Operation terminated by sqlite3_interrupt()*/\n#define SQLITE_IOERR       10   /* Some kind of disk I/O error occurred */\n#define SQLITE_CORRUPT     11   /* The database disk image is malformed */\n#define SQLITE_NOTFOUND    12   /* Unknown opcode in sqlite3_file_control() */\n#define SQLITE_FULL        13   /* Insertion failed because database is full */\n#define SQLITE_CANTOPEN    14   /* Unable to open the database file */\n#define SQLITE_PROTOCOL    15   /* Database lock protocol error */\n#define SQLITE_EMPTY       16   /* Internal use only */\n#define SQLITE_SCHEMA      17   /* The database schema changed */\n#define SQLITE_TOOBIG      18   /* String or BLOB exceeds size limit */\n#define SQLITE_CONSTRAINT  19   /* Abort due to constraint violation */\n#define SQLITE_MISMATCH    20   /* Data type mismatch */\n#define SQLITE_MISUSE      21   /* Library used incorrectly */\n#define SQLITE_NOLFS       22   /* Uses OS features not supported on host */\n#define SQLITE_AUTH        23   /* Authorization denied */\n#define SQLITE_FORMAT      24   /* Not used */\n#define SQLITE_RANGE       25   /* 2nd parameter to sqlite3_bind out of range */\n#define SQLITE_NOTADB      26   /* File opened that is not a database file */\n#define SQLITE_NOTICE      27   /* Notifications from sqlite3_log() */\n#define SQLITE_WARNING     28   /* Warnings from sqlite3_log() */\n#define SQLITE_ROW         100  /* sqlite3_step() has another row ready */\n#define SQLITE_DONE        101  /* sqlite3_step() has finished executing */\n/* end-of-error-codes */\n\n/*\n** CAPI3REF: Extended Result Codes\n** KEYWORDS: {extended result code definitions}\n**\n** In its default configuration, SQLite API routines return one of 30 integer\n** [result codes].  However, experience has shown that many of\n** these result codes are too coarse-grained.  They do not provide as\n** much information about problems as programmers might like.  In an effort to\n** address this, newer versions of SQLite (version 3.3.8 [dateof:3.3.8]\n** and later) include\n** support for additional result codes that provide more detailed information\n** about errors. These [extended result codes] are enabled or disabled\n** on a per database connection basis using the\n** [sqlite3_extended_result_codes()] API.  Or, the extended code for\n** the most recent error can be obtained using\n** [sqlite3_extended_errcode()].\n*/\n#define SQLITE_ERROR_MISSING_COLLSEQ   (SQLITE_ERROR | (1<<8))\n#define SQLITE_ERROR_RETRY             (SQLITE_ERROR | (2<<8))\n#define SQLITE_IOERR_READ              (SQLITE_IOERR | (1<<8))\n#define SQLITE_IOERR_SHORT_READ        (SQLITE_IOERR | (2<<8))\n#define SQLITE_IOERR_WRITE             (SQLITE_IOERR | (3<<8))\n#define SQLITE_IOERR_FSYNC             (SQLITE_IOERR | (4<<8))\n#define SQLITE_IOERR_DIR_FSYNC         (SQLITE_IOERR | (5<<8))\n#define SQLITE_IOERR_TRUNCATE          (SQLITE_IOERR | (6<<8))\n#define SQLITE_IOERR_FSTAT             (SQLITE_IOERR | (7<<8))\n#define SQLITE_IOERR_UNLOCK            (SQLITE_IOERR | (8<<8))\n#define SQLITE_IOERR_RDLOCK            (SQLITE_IOERR | (9<<8))\n#define SQLITE_IOERR_DELETE            (SQLITE_IOERR | (10<<8))\n#define SQLITE_IOERR_BLOCKED           (SQLITE_IOERR | (11<<8))\n#define SQLITE_IOERR_NOMEM             (SQLITE_IOERR | (12<<8))\n#define SQLITE_IOERR_ACCESS            (SQLITE_IOERR | (13<<8))\n#define SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8))\n#define SQLITE_IOERR_LOCK              (SQLITE_IOERR | (15<<8))\n#define SQLITE_IOERR_CLOSE             (SQLITE_IOERR | (16<<8))\n#define SQLITE_IOERR_DIR_CLOSE         (SQLITE_IOERR | (17<<8))\n#define SQLITE_IOERR_SHMOPEN           (SQLITE_IOERR | (18<<8))\n#define SQLITE_IOERR_SHMSIZE           (SQLITE_IOERR | (19<<8))\n#define SQLITE_IOERR_SHMLOCK           (SQLITE_IOERR | (20<<8))\n#define SQLITE_IOERR_SHMMAP            (SQLITE_IOERR | (21<<8))\n#define SQLITE_IOERR_SEEK              (SQLITE_IOERR | (22<<8))\n#define SQLITE_IOERR_DELETE_NOENT      (SQLITE_IOERR | (23<<8))\n#define SQLITE_IOERR_MMAP              (SQLITE_IOERR | (24<<8))\n#define SQLITE_IOERR_GETTEMPPATH       (SQLITE_IOERR | (25<<8))\n#define SQLITE_IOERR_CONVPATH          (SQLITE_IOERR | (26<<8))\n#define SQLITE_IOERR_VNODE             (SQLITE_IOERR | (27<<8))\n#define SQLITE_IOERR_AUTH              (SQLITE_IOERR | (28<<8))\n#define SQLITE_IOERR_BEGIN_ATOMIC      (SQLITE_IOERR | (29<<8))\n#define SQLITE_IOERR_COMMIT_ATOMIC     (SQLITE_IOERR | (30<<8))\n#define SQLITE_IOERR_ROLLBACK_ATOMIC   (SQLITE_IOERR | (31<<8))\n#define SQLITE_LOCKED_SHAREDCACHE      (SQLITE_LOCKED |  (1<<8))\n#define SQLITE_BUSY_RECOVERY           (SQLITE_BUSY   |  (1<<8))\n#define SQLITE_BUSY_SNAPSHOT           (SQLITE_BUSY   |  (2<<8))\n#define SQLITE_CANTOPEN_NOTEMPDIR      (SQLITE_CANTOPEN | (1<<8))\n#define SQLITE_CANTOPEN_ISDIR          (SQLITE_CANTOPEN | (2<<8))\n#define SQLITE_CANTOPEN_FULLPATH       (SQLITE_CANTOPEN | (3<<8))\n#define SQLITE_CANTOPEN_CONVPATH       (SQLITE_CANTOPEN | (4<<8))\n#define SQLITE_CORRUPT_VTAB            (SQLITE_CORRUPT | (1<<8))\n#define SQLITE_READONLY_RECOVERY       (SQLITE_READONLY | (1<<8))\n#define SQLITE_READONLY_CANTLOCK       (SQLITE_READONLY | (2<<8))\n#define SQLITE_READONLY_ROLLBACK       (SQLITE_READONLY | (3<<8))\n#define SQLITE_READONLY_DBMOVED        (SQLITE_READONLY | (4<<8))\n#define SQLITE_READONLY_CANTINIT       (SQLITE_READONLY | (5<<8))\n#define SQLITE_READONLY_DIRECTORY      (SQLITE_READONLY | (6<<8))\n#define SQLITE_ABORT_ROLLBACK          (SQLITE_ABORT | (2<<8))\n#define SQLITE_CONSTRAINT_CHECK        (SQLITE_CONSTRAINT | (1<<8))\n#define SQLITE_CONSTRAINT_COMMITHOOK   (SQLITE_CONSTRAINT | (2<<8))\n#define SQLITE_CONSTRAINT_FOREIGNKEY   (SQLITE_CONSTRAINT | (3<<8))\n#define SQLITE_CONSTRAINT_FUNCTION     (SQLITE_CONSTRAINT | (4<<8))\n#define SQLITE_CONSTRAINT_NOTNULL      (SQLITE_CONSTRAINT | (5<<8))\n#define SQLITE_CONSTRAINT_PRIMARYKEY   (SQLITE_CONSTRAINT | (6<<8))\n#define SQLITE_CONSTRAINT_TRIGGER      (SQLITE_CONSTRAINT | (7<<8))\n#define SQLITE_CONSTRAINT_UNIQUE       (SQLITE_CONSTRAINT | (8<<8))\n#define SQLITE_CONSTRAINT_VTAB         (SQLITE_CONSTRAINT | (9<<8))\n#define SQLITE_CONSTRAINT_ROWID        (SQLITE_CONSTRAINT |(10<<8))\n#define SQLITE_NOTICE_RECOVER_WAL      (SQLITE_NOTICE | (1<<8))\n#define SQLITE_NOTICE_RECOVER_ROLLBACK (SQLITE_NOTICE | (2<<8))\n#define SQLITE_WARNING_AUTOINDEX       (SQLITE_WARNING | (1<<8))\n#define SQLITE_AUTH_USER               (SQLITE_AUTH | (1<<8))\n#define SQLITE_OK_LOAD_PERMANENTLY     (SQLITE_OK | (1<<8))\n\n/*\n** CAPI3REF: Flags For File Open Operations\n**\n** These bit values are intended for use in the\n** 3rd parameter to the [sqlite3_open_v2()] interface and\n** in the 4th parameter to the [sqlite3_vfs.xOpen] method.\n*/\n#define SQLITE_OPEN_READONLY         0x00000001  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_READWRITE        0x00000002  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_CREATE           0x00000004  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_DELETEONCLOSE    0x00000008  /* VFS only */\n#define SQLITE_OPEN_EXCLUSIVE        0x00000010  /* VFS only */\n#define SQLITE_OPEN_AUTOPROXY        0x00000020  /* VFS only */\n#define SQLITE_OPEN_URI              0x00000040  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_MEMORY           0x00000080  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_MAIN_DB          0x00000100  /* VFS only */\n#define SQLITE_OPEN_TEMP_DB          0x00000200  /* VFS only */\n#define SQLITE_OPEN_TRANSIENT_DB     0x00000400  /* VFS only */\n#define SQLITE_OPEN_MAIN_JOURNAL     0x00000800  /* VFS only */\n#define SQLITE_OPEN_TEMP_JOURNAL     0x00001000  /* VFS only */\n#define SQLITE_OPEN_SUBJOURNAL       0x00002000  /* VFS only */\n#define SQLITE_OPEN_MASTER_JOURNAL   0x00004000  /* VFS only */\n#define SQLITE_OPEN_NOMUTEX          0x00008000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_FULLMUTEX        0x00010000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_SHAREDCACHE      0x00020000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_PRIVATECACHE     0x00040000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_WAL              0x00080000  /* VFS only */\n\n/* Reserved:                         0x00F00000 */\n\n/*\n** CAPI3REF: Device Characteristics\n**\n** The xDeviceCharacteristics method of the [sqlite3_io_methods]\n** object returns an integer which is a vector of these\n** bit values expressing I/O characteristics of the mass storage\n** device that holds the file that the [sqlite3_io_methods]\n** refers to.\n**\n** The SQLITE_IOCAP_ATOMIC property means that all writes of\n** any size are atomic.  The SQLITE_IOCAP_ATOMICnnn values\n** mean that writes of blocks that are nnn bytes in size and\n** are aligned to an address which is an integer multiple of\n** nnn are atomic.  The SQLITE_IOCAP_SAFE_APPEND value means\n** that when data is appended to a file, the data is appended\n** first then the size of the file is extended, never the other\n** way around.  The SQLITE_IOCAP_SEQUENTIAL property means that\n** information is written to disk in the same order as calls\n** to xWrite().  The SQLITE_IOCAP_POWERSAFE_OVERWRITE property means that\n** after reboot following a crash or power loss, the only bytes in a\n** file that were written at the application level might have changed\n** and that adjacent bytes, even bytes within the same sector are\n** guaranteed to be unchanged.  The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN\n** flag indicates that a file cannot be deleted when open.  The\n** SQLITE_IOCAP_IMMUTABLE flag indicates that the file is on\n** read-only media and cannot be changed even by processes with\n** elevated privileges.\n**\n** The SQLITE_IOCAP_BATCH_ATOMIC property means that the underlying\n** filesystem supports doing multiple write operations atomically when those\n** write operations are bracketed by [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] and\n** [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE].\n*/\n#define SQLITE_IOCAP_ATOMIC                 0x00000001\n#define SQLITE_IOCAP_ATOMIC512              0x00000002\n#define SQLITE_IOCAP_ATOMIC1K               0x00000004\n#define SQLITE_IOCAP_ATOMIC2K               0x00000008\n#define SQLITE_IOCAP_ATOMIC4K               0x00000010\n#define SQLITE_IOCAP_ATOMIC8K               0x00000020\n#define SQLITE_IOCAP_ATOMIC16K              0x00000040\n#define SQLITE_IOCAP_ATOMIC32K              0x00000080\n#define SQLITE_IOCAP_ATOMIC64K              0x00000100\n#define SQLITE_IOCAP_SAFE_APPEND            0x00000200\n#define SQLITE_IOCAP_SEQUENTIAL             0x00000400\n#define SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN  0x00000800\n#define SQLITE_IOCAP_POWERSAFE_OVERWRITE    0x00001000\n#define SQLITE_IOCAP_IMMUTABLE              0x00002000\n#define SQLITE_IOCAP_BATCH_ATOMIC           0x00004000\n\n/*\n** CAPI3REF: File Locking Levels\n**\n** SQLite uses one of these integer values as the second\n** argument to calls it makes to the xLock() and xUnlock() methods\n** of an [sqlite3_io_methods] object.\n*/\n#define SQLITE_LOCK_NONE          0\n#define SQLITE_LOCK_SHARED        1\n#define SQLITE_LOCK_RESERVED      2\n#define SQLITE_LOCK_PENDING       3\n#define SQLITE_LOCK_EXCLUSIVE     4\n\n/*\n** CAPI3REF: Synchronization Type Flags\n**\n** When SQLite invokes the xSync() method of an\n** [sqlite3_io_methods] object it uses a combination of\n** these integer values as the second argument.\n**\n** When the SQLITE_SYNC_DATAONLY flag is used, it means that the\n** sync operation only needs to flush data to mass storage.  Inode\n** information need not be flushed. If the lower four bits of the flag\n** equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics.\n** If the lower four bits equal SQLITE_SYNC_FULL, that means\n** to use Mac OS X style fullsync instead of fsync().\n**\n** Do not confuse the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags\n** with the [PRAGMA synchronous]=NORMAL and [PRAGMA synchronous]=FULL\n** settings.  The [synchronous pragma] determines when calls to the\n** xSync VFS method occur and applies uniformly across all platforms.\n** The SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags determine how\n** energetic or rigorous or forceful the sync operations are and\n** only make a difference on Mac OSX for the default SQLite code.\n** (Third-party VFS implementations might also make the distinction\n** between SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL, but among the\n** operating systems natively supported by SQLite, only Mac OSX\n** cares about the difference.)\n*/\n#define SQLITE_SYNC_NORMAL        0x00002\n#define SQLITE_SYNC_FULL          0x00003\n#define SQLITE_SYNC_DATAONLY      0x00010\n\n/*\n** CAPI3REF: OS Interface Open File Handle\n**\n** An [sqlite3_file] object represents an open file in the \n** [sqlite3_vfs | OS interface layer].  Individual OS interface\n** implementations will\n** want to subclass this object by appending additional fields\n** for their own use.  The pMethods entry is a pointer to an\n** [sqlite3_io_methods] object that defines methods for performing\n** I/O operations on the open file.\n*/\ntypedef struct sqlite3_file sqlite3_file;\nstruct sqlite3_file {\n  const struct sqlite3_io_methods *pMethods;  /* Methods for an open file */\n};\n\n/*\n** CAPI3REF: OS Interface File Virtual Methods Object\n**\n** Every file opened by the [sqlite3_vfs.xOpen] method populates an\n** [sqlite3_file] object (or, more commonly, a subclass of the\n** [sqlite3_file] object) with a pointer to an instance of this object.\n** This object defines the methods used to perform various operations\n** against the open file represented by the [sqlite3_file] object.\n**\n** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element \n** to a non-NULL pointer, then the sqlite3_io_methods.xClose method\n** may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed.  The\n** only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen]\n** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element\n** to NULL.\n**\n** The flags argument to xSync may be one of [SQLITE_SYNC_NORMAL] or\n** [SQLITE_SYNC_FULL].  The first choice is the normal fsync().\n** The second choice is a Mac OS X style fullsync.  The [SQLITE_SYNC_DATAONLY]\n** flag may be ORed in to indicate that only the data of the file\n** and not its inode needs to be synced.\n**\n** The integer values to xLock() and xUnlock() are one of\n** <ul>\n** <li> [SQLITE_LOCK_NONE],\n** <li> [SQLITE_LOCK_SHARED],\n** <li> [SQLITE_LOCK_RESERVED],\n** <li> [SQLITE_LOCK_PENDING], or\n** <li> [SQLITE_LOCK_EXCLUSIVE].\n** </ul>\n** xLock() increases the lock. xUnlock() decreases the lock.\n** The xCheckReservedLock() method checks whether any database connection,\n** either in this process or in some other process, is holding a RESERVED,\n** PENDING, or EXCLUSIVE lock on the file.  It returns true\n** if such a lock exists and false otherwise.\n**\n** The xFileControl() method is a generic interface that allows custom\n** VFS implementations to directly control an open file using the\n** [sqlite3_file_control()] interface.  The second \"op\" argument is an\n** integer opcode.  The third argument is a generic pointer intended to\n** point to a structure that may contain arguments or space in which to\n** write return values.  Potential uses for xFileControl() might be\n** functions to enable blocking locks with timeouts, to change the\n** locking strategy (for example to use dot-file locks), to inquire\n** about the status of a lock, or to break stale locks.  The SQLite\n** core reserves all opcodes less than 100 for its own use.\n** A [file control opcodes | list of opcodes] less than 100 is available.\n** Applications that define a custom xFileControl method should use opcodes\n** greater than 100 to avoid conflicts.  VFS implementations should\n** return [SQLITE_NOTFOUND] for file control opcodes that they do not\n** recognize.\n**\n** The xSectorSize() method returns the sector size of the\n** device that underlies the file.  The sector size is the\n** minimum write that can be performed without disturbing\n** other bytes in the file.  The xDeviceCharacteristics()\n** method returns a bit vector describing behaviors of the\n** underlying device:\n**\n** <ul>\n** <li> [SQLITE_IOCAP_ATOMIC]\n** <li> [SQLITE_IOCAP_ATOMIC512]\n** <li> [SQLITE_IOCAP_ATOMIC1K]\n** <li> [SQLITE_IOCAP_ATOMIC2K]\n** <li> [SQLITE_IOCAP_ATOMIC4K]\n** <li> [SQLITE_IOCAP_ATOMIC8K]\n** <li> [SQLITE_IOCAP_ATOMIC16K]\n** <li> [SQLITE_IOCAP_ATOMIC32K]\n** <li> [SQLITE_IOCAP_ATOMIC64K]\n** <li> [SQLITE_IOCAP_SAFE_APPEND]\n** <li> [SQLITE_IOCAP_SEQUENTIAL]\n** <li> [SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN]\n** <li> [SQLITE_IOCAP_POWERSAFE_OVERWRITE]\n** <li> [SQLITE_IOCAP_IMMUTABLE]\n** <li> [SQLITE_IOCAP_BATCH_ATOMIC]\n** </ul>\n**\n** The SQLITE_IOCAP_ATOMIC property means that all writes of\n** any size are atomic.  The SQLITE_IOCAP_ATOMICnnn values\n** mean that writes of blocks that are nnn bytes in size and\n** are aligned to an address which is an integer multiple of\n** nnn are atomic.  The SQLITE_IOCAP_SAFE_APPEND value means\n** that when data is appended to a file, the data is appended\n** first then the size of the file is extended, never the other\n** way around.  The SQLITE_IOCAP_SEQUENTIAL property means that\n** information is written to disk in the same order as calls\n** to xWrite().\n**\n** If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill\n** in the unread portions of the buffer with zeros.  A VFS that\n** fails to zero-fill short reads might seem to work.  However,\n** failure to zero-fill short reads will eventually lead to\n** database corruption.\n*/\ntypedef struct sqlite3_io_methods sqlite3_io_methods;\nstruct sqlite3_io_methods {\n  int iVersion;\n  int (*xClose)(sqlite3_file*);\n  int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);\n  int (*xWrite)(sqlite3_file*, const void*, int iAmt, sqlite3_int64 iOfst);\n  int (*xTruncate)(sqlite3_file*, sqlite3_int64 size);\n  int (*xSync)(sqlite3_file*, int flags);\n  int (*xFileSize)(sqlite3_file*, sqlite3_int64 *pSize);\n  int (*xLock)(sqlite3_file*, int);\n  int (*xUnlock)(sqlite3_file*, int);\n  int (*xCheckReservedLock)(sqlite3_file*, int *pResOut);\n  int (*xFileControl)(sqlite3_file*, int op, void *pArg);\n  int (*xSectorSize)(sqlite3_file*);\n  int (*xDeviceCharacteristics)(sqlite3_file*);\n  /* Methods above are valid for version 1 */\n  int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);\n  int (*xShmLock)(sqlite3_file*, int offset, int n, int flags);\n  void (*xShmBarrier)(sqlite3_file*);\n  int (*xShmUnmap)(sqlite3_file*, int deleteFlag);\n  /* Methods above are valid for version 2 */\n  int (*xFetch)(sqlite3_file*, sqlite3_int64 iOfst, int iAmt, void **pp);\n  int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p);\n  /* Methods above are valid for version 3 */\n  /* Additional methods may be added in future releases */\n};\n\n/*\n** CAPI3REF: Standard File Control Opcodes\n** KEYWORDS: {file control opcodes} {file control opcode}\n**\n** These integer constants are opcodes for the xFileControl method\n** of the [sqlite3_io_methods] object and for the [sqlite3_file_control()]\n** interface.\n**\n** <ul>\n** <li>[[SQLITE_FCNTL_LOCKSTATE]]\n** The [SQLITE_FCNTL_LOCKSTATE] opcode is used for debugging.  This\n** opcode causes the xFileControl method to write the current state of\n** the lock (one of [SQLITE_LOCK_NONE], [SQLITE_LOCK_SHARED],\n** [SQLITE_LOCK_RESERVED], [SQLITE_LOCK_PENDING], or [SQLITE_LOCK_EXCLUSIVE])\n** into an integer that the pArg argument points to. This capability\n** is used during testing and is only available when the SQLITE_TEST\n** compile-time option is used.\n**\n** <li>[[SQLITE_FCNTL_SIZE_HINT]]\n** The [SQLITE_FCNTL_SIZE_HINT] opcode is used by SQLite to give the VFS\n** layer a hint of how large the database file will grow to be during the\n** current transaction.  This hint is not guaranteed to be accurate but it\n** is often close.  The underlying VFS might choose to preallocate database\n** file space based on this hint in order to help writes to the database\n** file run faster.\n**\n** <li>[[SQLITE_FCNTL_CHUNK_SIZE]]\n** The [SQLITE_FCNTL_CHUNK_SIZE] opcode is used to request that the VFS\n** extends and truncates the database file in chunks of a size specified\n** by the user. The fourth argument to [sqlite3_file_control()] should \n** point to an integer (type int) containing the new chunk-size to use\n** for the nominated database. Allocating database file space in large\n** chunks (say 1MB at a time), may reduce file-system fragmentation and\n** improve performance on some systems.\n**\n** <li>[[SQLITE_FCNTL_FILE_POINTER]]\n** The [SQLITE_FCNTL_FILE_POINTER] opcode is used to obtain a pointer\n** to the [sqlite3_file] object associated with a particular database\n** connection.  See also [SQLITE_FCNTL_JOURNAL_POINTER].\n**\n** <li>[[SQLITE_FCNTL_JOURNAL_POINTER]]\n** The [SQLITE_FCNTL_JOURNAL_POINTER] opcode is used to obtain a pointer\n** to the [sqlite3_file] object associated with the journal file (either\n** the [rollback journal] or the [write-ahead log]) for a particular database\n** connection.  See also [SQLITE_FCNTL_FILE_POINTER].\n**\n** <li>[[SQLITE_FCNTL_SYNC_OMITTED]]\n** No longer in use.\n**\n** <li>[[SQLITE_FCNTL_SYNC]]\n** The [SQLITE_FCNTL_SYNC] opcode is generated internally by SQLite and\n** sent to the VFS immediately before the xSync method is invoked on a\n** database file descriptor. Or, if the xSync method is not invoked \n** because the user has configured SQLite with \n** [PRAGMA synchronous | PRAGMA synchronous=OFF] it is invoked in place \n** of the xSync method. In most cases, the pointer argument passed with\n** this file-control is NULL. However, if the database file is being synced\n** as part of a multi-database commit, the argument points to a nul-terminated\n** string containing the transactions master-journal file name. VFSes that \n** do not need this signal should silently ignore this opcode. Applications \n** should not call [sqlite3_file_control()] with this opcode as doing so may \n** disrupt the operation of the specialized VFSes that do require it.  \n**\n** <li>[[SQLITE_FCNTL_COMMIT_PHASETWO]]\n** The [SQLITE_FCNTL_COMMIT_PHASETWO] opcode is generated internally by SQLite\n** and sent to the VFS after a transaction has been committed immediately\n** but before the database is unlocked. VFSes that do not need this signal\n** should silently ignore this opcode. Applications should not call\n** [sqlite3_file_control()] with this opcode as doing so may disrupt the \n** operation of the specialized VFSes that do require it.  \n**\n** <li>[[SQLITE_FCNTL_WIN32_AV_RETRY]]\n** ^The [SQLITE_FCNTL_WIN32_AV_RETRY] opcode is used to configure automatic\n** retry counts and intervals for certain disk I/O operations for the\n** windows [VFS] in order to provide robustness in the presence of\n** anti-virus programs.  By default, the windows VFS will retry file read,\n** file write, and file delete operations up to 10 times, with a delay\n** of 25 milliseconds before the first retry and with the delay increasing\n** by an additional 25 milliseconds with each subsequent retry.  This\n** opcode allows these two values (10 retries and 25 milliseconds of delay)\n** to be adjusted.  The values are changed for all database connections\n** within the same process.  The argument is a pointer to an array of two\n** integers where the first integer is the new retry count and the second\n** integer is the delay.  If either integer is negative, then the setting\n** is not changed but instead the prior value of that setting is written\n** into the array entry, allowing the current retry settings to be\n** interrogated.  The zDbName parameter is ignored.\n**\n** <li>[[SQLITE_FCNTL_PERSIST_WAL]]\n** ^The [SQLITE_FCNTL_PERSIST_WAL] opcode is used to set or query the\n** persistent [WAL | Write Ahead Log] setting.  By default, the auxiliary\n** write ahead log and shared memory files used for transaction control\n** are automatically deleted when the latest connection to the database\n** closes.  Setting persistent WAL mode causes those files to persist after\n** close.  Persisting the files is useful when other processes that do not\n** have write permission on the directory containing the database file want\n** to read the database file, as the WAL and shared memory files must exist\n** in order for the database to be readable.  The fourth parameter to\n** [sqlite3_file_control()] for this opcode should be a pointer to an integer.\n** That integer is 0 to disable persistent WAL mode or 1 to enable persistent\n** WAL mode.  If the integer is -1, then it is overwritten with the current\n** WAL persistence setting.\n**\n** <li>[[SQLITE_FCNTL_POWERSAFE_OVERWRITE]]\n** ^The [SQLITE_FCNTL_POWERSAFE_OVERWRITE] opcode is used to set or query the\n** persistent \"powersafe-overwrite\" or \"PSOW\" setting.  The PSOW setting\n** determines the [SQLITE_IOCAP_POWERSAFE_OVERWRITE] bit of the\n** xDeviceCharacteristics methods. The fourth parameter to\n** [sqlite3_file_control()] for this opcode should be a pointer to an integer.\n** That integer is 0 to disable zero-damage mode or 1 to enable zero-damage\n** mode.  If the integer is -1, then it is overwritten with the current\n** zero-damage mode setting.\n**\n** <li>[[SQLITE_FCNTL_OVERWRITE]]\n** ^The [SQLITE_FCNTL_OVERWRITE] opcode is invoked by SQLite after opening\n** a write transaction to indicate that, unless it is rolled back for some\n** reason, the entire database file will be overwritten by the current \n** transaction. This is used by VACUUM operations.\n**\n** <li>[[SQLITE_FCNTL_VFSNAME]]\n** ^The [SQLITE_FCNTL_VFSNAME] opcode can be used to obtain the names of\n** all [VFSes] in the VFS stack.  The names are of all VFS shims and the\n** final bottom-level VFS are written into memory obtained from \n** [sqlite3_malloc()] and the result is stored in the char* variable\n** that the fourth parameter of [sqlite3_file_control()] points to.\n** The caller is responsible for freeing the memory when done.  As with\n** all file-control actions, there is no guarantee that this will actually\n** do anything.  Callers should initialize the char* variable to a NULL\n** pointer in case this file-control is not implemented.  This file-control\n** is intended for diagnostic use only.\n**\n** <li>[[SQLITE_FCNTL_VFS_POINTER]]\n** ^The [SQLITE_FCNTL_VFS_POINTER] opcode finds a pointer to the top-level\n** [VFSes] currently in use.  ^(The argument X in\n** sqlite3_file_control(db,SQLITE_FCNTL_VFS_POINTER,X) must be\n** of type \"[sqlite3_vfs] **\".  This opcodes will set *X\n** to a pointer to the top-level VFS.)^\n** ^When there are multiple VFS shims in the stack, this opcode finds the\n** upper-most shim only.\n**\n** <li>[[SQLITE_FCNTL_PRAGMA]]\n** ^Whenever a [PRAGMA] statement is parsed, an [SQLITE_FCNTL_PRAGMA] \n** file control is sent to the open [sqlite3_file] object corresponding\n** to the database file to which the pragma statement refers. ^The argument\n** to the [SQLITE_FCNTL_PRAGMA] file control is an array of\n** pointers to strings (char**) in which the second element of the array\n** is the name of the pragma and the third element is the argument to the\n** pragma or NULL if the pragma has no argument.  ^The handler for an\n** [SQLITE_FCNTL_PRAGMA] file control can optionally make the first element\n** of the char** argument point to a string obtained from [sqlite3_mprintf()]\n** or the equivalent and that string will become the result of the pragma or\n** the error message if the pragma fails. ^If the\n** [SQLITE_FCNTL_PRAGMA] file control returns [SQLITE_NOTFOUND], then normal \n** [PRAGMA] processing continues.  ^If the [SQLITE_FCNTL_PRAGMA]\n** file control returns [SQLITE_OK], then the parser assumes that the\n** VFS has handled the PRAGMA itself and the parser generates a no-op\n** prepared statement if result string is NULL, or that returns a copy\n** of the result string if the string is non-NULL.\n** ^If the [SQLITE_FCNTL_PRAGMA] file control returns\n** any result code other than [SQLITE_OK] or [SQLITE_NOTFOUND], that means\n** that the VFS encountered an error while handling the [PRAGMA] and the\n** compilation of the PRAGMA fails with an error.  ^The [SQLITE_FCNTL_PRAGMA]\n** file control occurs at the beginning of pragma statement analysis and so\n** it is able to override built-in [PRAGMA] statements.\n**\n** <li>[[SQLITE_FCNTL_BUSYHANDLER]]\n** ^The [SQLITE_FCNTL_BUSYHANDLER]\n** file-control may be invoked by SQLite on the database file handle\n** shortly after it is opened in order to provide a custom VFS with access\n** to the connections busy-handler callback. The argument is of type (void **)\n** - an array of two (void *) values. The first (void *) actually points\n** to a function of type (int (*)(void *)). In order to invoke the connections\n** busy-handler, this function should be invoked with the second (void *) in\n** the array as the only argument. If it returns non-zero, then the operation\n** should be retried. If it returns zero, the custom VFS should abandon the\n** current operation.\n**\n** <li>[[SQLITE_FCNTL_TEMPFILENAME]]\n** ^Application can invoke the [SQLITE_FCNTL_TEMPFILENAME] file-control\n** to have SQLite generate a\n** temporary filename using the same algorithm that is followed to generate\n** temporary filenames for TEMP tables and other internal uses.  The\n** argument should be a char** which will be filled with the filename\n** written into memory obtained from [sqlite3_malloc()].  The caller should\n** invoke [sqlite3_free()] on the result to avoid a memory leak.\n**\n** <li>[[SQLITE_FCNTL_MMAP_SIZE]]\n** The [SQLITE_FCNTL_MMAP_SIZE] file control is used to query or set the\n** maximum number of bytes that will be used for memory-mapped I/O.\n** The argument is a pointer to a value of type sqlite3_int64 that\n** is an advisory maximum number of bytes in the file to memory map.  The\n** pointer is overwritten with the old value.  The limit is not changed if\n** the value originally pointed to is negative, and so the current limit \n** can be queried by passing in a pointer to a negative number.  This\n** file-control is used internally to implement [PRAGMA mmap_size].\n**\n** <li>[[SQLITE_FCNTL_TRACE]]\n** The [SQLITE_FCNTL_TRACE] file control provides advisory information\n** to the VFS about what the higher layers of the SQLite stack are doing.\n** This file control is used by some VFS activity tracing [shims].\n** The argument is a zero-terminated string.  Higher layers in the\n** SQLite stack may generate instances of this file control if\n** the [SQLITE_USE_FCNTL_TRACE] compile-time option is enabled.\n**\n** <li>[[SQLITE_FCNTL_HAS_MOVED]]\n** The [SQLITE_FCNTL_HAS_MOVED] file control interprets its argument as a\n** pointer to an integer and it writes a boolean into that integer depending\n** on whether or not the file has been renamed, moved, or deleted since it\n** was first opened.\n**\n** <li>[[SQLITE_FCNTL_WIN32_GET_HANDLE]]\n** The [SQLITE_FCNTL_WIN32_GET_HANDLE] opcode can be used to obtain the\n** underlying native file handle associated with a file handle.  This file\n** control interprets its argument as a pointer to a native file handle and\n** writes the resulting value there.\n**\n** <li>[[SQLITE_FCNTL_WIN32_SET_HANDLE]]\n** The [SQLITE_FCNTL_WIN32_SET_HANDLE] opcode is used for debugging.  This\n** opcode causes the xFileControl method to swap the file handle with the one\n** pointed to by the pArg argument.  This capability is used during testing\n** and only needs to be supported when SQLITE_TEST is defined.\n**\n** <li>[[SQLITE_FCNTL_WAL_BLOCK]]\n** The [SQLITE_FCNTL_WAL_BLOCK] is a signal to the VFS layer that it might\n** be advantageous to block on the next WAL lock if the lock is not immediately\n** available.  The WAL subsystem issues this signal during rare\n** circumstances in order to fix a problem with priority inversion.\n** Applications should <em>not</em> use this file-control.\n**\n** <li>[[SQLITE_FCNTL_ZIPVFS]]\n** The [SQLITE_FCNTL_ZIPVFS] opcode is implemented by zipvfs only. All other\n** VFS should return SQLITE_NOTFOUND for this opcode.\n**\n** <li>[[SQLITE_FCNTL_RBU]]\n** The [SQLITE_FCNTL_RBU] opcode is implemented by the special VFS used by\n** the RBU extension only.  All other VFS should return SQLITE_NOTFOUND for\n** this opcode.  \n**\n** <li>[[SQLITE_FCNTL_BEGIN_ATOMIC_WRITE]]\n** If the [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] opcode returns SQLITE_OK, then\n** the file descriptor is placed in \"batch write mode\", which\n** means all subsequent write operations will be deferred and done\n** atomically at the next [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE].  Systems\n** that do not support batch atomic writes will return SQLITE_NOTFOUND.\n** ^Following a successful SQLITE_FCNTL_BEGIN_ATOMIC_WRITE and prior to\n** the closing [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE] or\n** [SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE], SQLite will make\n** no VFS interface calls on the same [sqlite3_file] file descriptor\n** except for calls to the xWrite method and the xFileControl method\n** with [SQLITE_FCNTL_SIZE_HINT].\n**\n** <li>[[SQLITE_FCNTL_COMMIT_ATOMIC_WRITE]]\n** The [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE] opcode causes all write\n** operations since the previous successful call to \n** [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] to be performed atomically.\n** This file control returns [SQLITE_OK] if and only if the writes were\n** all performed successfully and have been committed to persistent storage.\n** ^Regardless of whether or not it is successful, this file control takes\n** the file descriptor out of batch write mode so that all subsequent\n** write operations are independent.\n** ^SQLite will never invoke SQLITE_FCNTL_COMMIT_ATOMIC_WRITE without\n** a prior successful call to [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE].\n**\n** <li>[[SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE]]\n** The [SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE] opcode causes all write\n** operations since the previous successful call to \n** [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] to be rolled back.\n** ^This file control takes the file descriptor out of batch write mode\n** so that all subsequent write operations are independent.\n** ^SQLite will never invoke SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE without\n** a prior successful call to [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE].\n** </ul>\n*/\n#define SQLITE_FCNTL_LOCKSTATE               1\n#define SQLITE_FCNTL_GET_LOCKPROXYFILE       2\n#define SQLITE_FCNTL_SET_LOCKPROXYFILE       3\n#define SQLITE_FCNTL_LAST_ERRNO              4\n#define SQLITE_FCNTL_SIZE_HINT               5\n#define SQLITE_FCNTL_CHUNK_SIZE              6\n#define SQLITE_FCNTL_FILE_POINTER            7\n#define SQLITE_FCNTL_SYNC_OMITTED            8\n#define SQLITE_FCNTL_WIN32_AV_RETRY          9\n#define SQLITE_FCNTL_PERSIST_WAL            10\n#define SQLITE_FCNTL_OVERWRITE              11\n#define SQLITE_FCNTL_VFSNAME                12\n#define SQLITE_FCNTL_POWERSAFE_OVERWRITE    13\n#define SQLITE_FCNTL_PRAGMA                 14\n#define SQLITE_FCNTL_BUSYHANDLER            15\n#define SQLITE_FCNTL_TEMPFILENAME           16\n#define SQLITE_FCNTL_MMAP_SIZE              18\n#define SQLITE_FCNTL_TRACE                  19\n#define SQLITE_FCNTL_HAS_MOVED              20\n#define SQLITE_FCNTL_SYNC                   21\n#define SQLITE_FCNTL_COMMIT_PHASETWO        22\n#define SQLITE_FCNTL_WIN32_SET_HANDLE       23\n#define SQLITE_FCNTL_WAL_BLOCK              24\n#define SQLITE_FCNTL_ZIPVFS                 25\n#define SQLITE_FCNTL_RBU                    26\n#define SQLITE_FCNTL_VFS_POINTER            27\n#define SQLITE_FCNTL_JOURNAL_POINTER        28\n#define SQLITE_FCNTL_WIN32_GET_HANDLE       29\n#define SQLITE_FCNTL_PDB                    30\n#define SQLITE_FCNTL_BEGIN_ATOMIC_WRITE     31\n#define SQLITE_FCNTL_COMMIT_ATOMIC_WRITE    32\n#define SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE  33\n\n/* deprecated names */\n#define SQLITE_GET_LOCKPROXYFILE      SQLITE_FCNTL_GET_LOCKPROXYFILE\n#define SQLITE_SET_LOCKPROXYFILE      SQLITE_FCNTL_SET_LOCKPROXYFILE\n#define SQLITE_LAST_ERRNO             SQLITE_FCNTL_LAST_ERRNO\n\n\n/*\n** CAPI3REF: Mutex Handle\n**\n** The mutex module within SQLite defines [sqlite3_mutex] to be an\n** abstract type for a mutex object.  The SQLite core never looks\n** at the internal representation of an [sqlite3_mutex].  It only\n** deals with pointers to the [sqlite3_mutex] object.\n**\n** Mutexes are created using [sqlite3_mutex_alloc()].\n*/\ntypedef struct sqlite3_mutex sqlite3_mutex;\n\n/*\n** CAPI3REF: Loadable Extension Thunk\n**\n** A pointer to the opaque sqlite3_api_routines structure is passed as\n** the third parameter to entry points of [loadable extensions].  This\n** structure must be typedefed in order to work around compiler warnings\n** on some platforms.\n*/\ntypedef struct sqlite3_api_routines sqlite3_api_routines;\n\n/*\n** CAPI3REF: OS Interface Object\n**\n** An instance of the sqlite3_vfs object defines the interface between\n** the SQLite core and the underlying operating system.  The \"vfs\"\n** in the name of the object stands for \"virtual file system\".  See\n** the [VFS | VFS documentation] for further information.\n**\n** The VFS interface is sometimes extended by adding new methods onto\n** the end.  Each time such an extension occurs, the iVersion field\n** is incremented.  The iVersion value started out as 1 in\n** SQLite [version 3.5.0] on [dateof:3.5.0], then increased to 2\n** with SQLite [version 3.7.0] on [dateof:3.7.0], and then increased\n** to 3 with SQLite [version 3.7.6] on [dateof:3.7.6].  Additional fields\n** may be appended to the sqlite3_vfs object and the iVersion value\n** may increase again in future versions of SQLite.\n** Note that the structure\n** of the sqlite3_vfs object changes in the transition from\n** SQLite [version 3.5.9] to [version 3.6.0] on [dateof:3.6.0]\n** and yet the iVersion field was not modified.\n**\n** The szOsFile field is the size of the subclassed [sqlite3_file]\n** structure used by this VFS.  mxPathname is the maximum length of\n** a pathname in this VFS.\n**\n** Registered sqlite3_vfs objects are kept on a linked list formed by\n** the pNext pointer.  The [sqlite3_vfs_register()]\n** and [sqlite3_vfs_unregister()] interfaces manage this list\n** in a thread-safe way.  The [sqlite3_vfs_find()] interface\n** searches the list.  Neither the application code nor the VFS\n** implementation should use the pNext pointer.\n**\n** The pNext field is the only field in the sqlite3_vfs\n** structure that SQLite will ever modify.  SQLite will only access\n** or modify this field while holding a particular static mutex.\n** The application should never modify anything within the sqlite3_vfs\n** object once the object has been registered.\n**\n** The zName field holds the name of the VFS module.  The name must\n** be unique across all VFS modules.\n**\n** [[sqlite3_vfs.xOpen]]\n** ^SQLite guarantees that the zFilename parameter to xOpen\n** is either a NULL pointer or string obtained\n** from xFullPathname() with an optional suffix added.\n** ^If a suffix is added to the zFilename parameter, it will\n** consist of a single \"-\" character followed by no more than\n** 11 alphanumeric and/or \"-\" characters.\n** ^SQLite further guarantees that\n** the string will be valid and unchanged until xClose() is\n** called. Because of the previous sentence,\n** the [sqlite3_file] can safely store a pointer to the\n** filename if it needs to remember the filename for some reason.\n** If the zFilename parameter to xOpen is a NULL pointer then xOpen\n** must invent its own temporary name for the file.  ^Whenever the \n** xFilename parameter is NULL it will also be the case that the\n** flags parameter will include [SQLITE_OPEN_DELETEONCLOSE].\n**\n** The flags argument to xOpen() includes all bits set in\n** the flags argument to [sqlite3_open_v2()].  Or if [sqlite3_open()]\n** or [sqlite3_open16()] is used, then flags includes at least\n** [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]. \n** If xOpen() opens a file read-only then it sets *pOutFlags to\n** include [SQLITE_OPEN_READONLY].  Other bits in *pOutFlags may be set.\n**\n** ^(SQLite will also add one of the following flags to the xOpen()\n** call, depending on the object being opened:\n**\n** <ul>\n** <li>  [SQLITE_OPEN_MAIN_DB]\n** <li>  [SQLITE_OPEN_MAIN_JOURNAL]\n** <li>  [SQLITE_OPEN_TEMP_DB]\n** <li>  [SQLITE_OPEN_TEMP_JOURNAL]\n** <li>  [SQLITE_OPEN_TRANSIENT_DB]\n** <li>  [SQLITE_OPEN_SUBJOURNAL]\n** <li>  [SQLITE_OPEN_MASTER_JOURNAL]\n** <li>  [SQLITE_OPEN_WAL]\n** </ul>)^\n**\n** The file I/O implementation can use the object type flags to\n** change the way it deals with files.  For example, an application\n** that does not care about crash recovery or rollback might make\n** the open of a journal file a no-op.  Writes to this journal would\n** also be no-ops, and any attempt to read the journal would return\n** SQLITE_IOERR.  Or the implementation might recognize that a database\n** file will be doing page-aligned sector reads and writes in a random\n** order and set up its I/O subsystem accordingly.\n**\n** SQLite might also add one of the following flags to the xOpen method:\n**\n** <ul>\n** <li> [SQLITE_OPEN_DELETEONCLOSE]\n** <li> [SQLITE_OPEN_EXCLUSIVE]\n** </ul>\n**\n** The [SQLITE_OPEN_DELETEONCLOSE] flag means the file should be\n** deleted when it is closed.  ^The [SQLITE_OPEN_DELETEONCLOSE]\n** will be set for TEMP databases and their journals, transient\n** databases, and subjournals.\n**\n** ^The [SQLITE_OPEN_EXCLUSIVE] flag is always used in conjunction\n** with the [SQLITE_OPEN_CREATE] flag, which are both directly\n** analogous to the O_EXCL and O_CREAT flags of the POSIX open()\n** API.  The SQLITE_OPEN_EXCLUSIVE flag, when paired with the \n** SQLITE_OPEN_CREATE, is used to indicate that file should always\n** be created, and that it is an error if it already exists.\n** It is <i>not</i> used to indicate the file should be opened \n** for exclusive access.\n**\n** ^At least szOsFile bytes of memory are allocated by SQLite\n** to hold the  [sqlite3_file] structure passed as the third\n** argument to xOpen.  The xOpen method does not have to\n** allocate the structure; it should just fill it in.  Note that\n** the xOpen method must set the sqlite3_file.pMethods to either\n** a valid [sqlite3_io_methods] object or to NULL.  xOpen must do\n** this even if the open fails.  SQLite expects that the sqlite3_file.pMethods\n** element will be valid after xOpen returns regardless of the success\n** or failure of the xOpen call.\n**\n** [[sqlite3_vfs.xAccess]]\n** ^The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS]\n** to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to\n** test whether a file is readable and writable, or [SQLITE_ACCESS_READ]\n** to test whether a file is at least readable.   The file can be a\n** directory.\n**\n** ^SQLite will always allocate at least mxPathname+1 bytes for the\n** output buffer xFullPathname.  The exact size of the output buffer\n** is also passed as a parameter to both  methods. If the output buffer\n** is not large enough, [SQLITE_CANTOPEN] should be returned. Since this is\n** handled as a fatal error by SQLite, vfs implementations should endeavor\n** to prevent this by setting mxPathname to a sufficiently large value.\n**\n** The xRandomness(), xSleep(), xCurrentTime(), and xCurrentTimeInt64()\n** interfaces are not strictly a part of the filesystem, but they are\n** included in the VFS structure for completeness.\n** The xRandomness() function attempts to return nBytes bytes\n** of good-quality randomness into zOut.  The return value is\n** the actual number of bytes of randomness obtained.\n** The xSleep() method causes the calling thread to sleep for at\n** least the number of microseconds given.  ^The xCurrentTime()\n** method returns a Julian Day Number for the current date and time as\n** a floating point value.\n** ^The xCurrentTimeInt64() method returns, as an integer, the Julian\n** Day Number multiplied by 86400000 (the number of milliseconds in \n** a 24-hour day).  \n** ^SQLite will use the xCurrentTimeInt64() method to get the current\n** date and time if that method is available (if iVersion is 2 or \n** greater and the function pointer is not NULL) and will fall back\n** to xCurrentTime() if xCurrentTimeInt64() is unavailable.\n**\n** ^The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces\n** are not used by the SQLite core.  These optional interfaces are provided\n** by some VFSes to facilitate testing of the VFS code. By overriding \n** system calls with functions under its control, a test program can\n** simulate faults and error conditions that would otherwise be difficult\n** or impossible to induce.  The set of system calls that can be overridden\n** varies from one VFS to another, and from one version of the same VFS to the\n** next.  Applications that use these interfaces must be prepared for any\n** or all of these interfaces to be NULL or for their behavior to change\n** from one release to the next.  Applications must not attempt to access\n** any of these methods if the iVersion of the VFS is less than 3.\n*/\ntypedef struct sqlite3_vfs sqlite3_vfs;\ntypedef void (*sqlite3_syscall_ptr)(void);\nstruct sqlite3_vfs {\n  int iVersion;            /* Structure version number (currently 3) */\n  int szOsFile;            /* Size of subclassed sqlite3_file */\n  int mxPathname;          /* Maximum file pathname length */\n  sqlite3_vfs *pNext;      /* Next registered VFS */\n  const char *zName;       /* Name of this virtual file system */\n  void *pAppData;          /* Pointer to application-specific data */\n  int (*xOpen)(sqlite3_vfs*, const char *zName, sqlite3_file*,\n               int flags, int *pOutFlags);\n  int (*xDelete)(sqlite3_vfs*, const char *zName, int syncDir);\n  int (*xAccess)(sqlite3_vfs*, const char *zName, int flags, int *pResOut);\n  int (*xFullPathname)(sqlite3_vfs*, const char *zName, int nOut, char *zOut);\n  void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);\n  void (*xDlError)(sqlite3_vfs*, int nByte, char *zErrMsg);\n  void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);\n  void (*xDlClose)(sqlite3_vfs*, void*);\n  int (*xRandomness)(sqlite3_vfs*, int nByte, char *zOut);\n  int (*xSleep)(sqlite3_vfs*, int microseconds);\n  int (*xCurrentTime)(sqlite3_vfs*, double*);\n  int (*xGetLastError)(sqlite3_vfs*, int, char *);\n  /*\n  ** The methods above are in version 1 of the sqlite_vfs object\n  ** definition.  Those that follow are added in version 2 or later\n  */\n  int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);\n  /*\n  ** The methods above are in versions 1 and 2 of the sqlite_vfs object.\n  ** Those below are for version 3 and greater.\n  */\n  int (*xSetSystemCall)(sqlite3_vfs*, const char *zName, sqlite3_syscall_ptr);\n  sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*, const char *zName);\n  const char *(*xNextSystemCall)(sqlite3_vfs*, const char *zName);\n  /*\n  ** The methods above are in versions 1 through 3 of the sqlite_vfs object.\n  ** New fields may be appended in future versions.  The iVersion\n  ** value will increment whenever this happens. \n  */\n};\n\n/*\n** CAPI3REF: Flags for the xAccess VFS method\n**\n** These integer constants can be used as the third parameter to\n** the xAccess method of an [sqlite3_vfs] object.  They determine\n** what kind of permissions the xAccess method is looking for.\n** With SQLITE_ACCESS_EXISTS, the xAccess method\n** simply checks whether the file exists.\n** With SQLITE_ACCESS_READWRITE, the xAccess method\n** checks whether the named directory is both readable and writable\n** (in other words, if files can be added, removed, and renamed within\n** the directory).\n** The SQLITE_ACCESS_READWRITE constant is currently used only by the\n** [temp_store_directory pragma], though this could change in a future\n** release of SQLite.\n** With SQLITE_ACCESS_READ, the xAccess method\n** checks whether the file is readable.  The SQLITE_ACCESS_READ constant is\n** currently unused, though it might be used in a future release of\n** SQLite.\n*/\n#define SQLITE_ACCESS_EXISTS    0\n#define SQLITE_ACCESS_READWRITE 1   /* Used by PRAGMA temp_store_directory */\n#define SQLITE_ACCESS_READ      2   /* Unused */\n\n/*\n** CAPI3REF: Flags for the xShmLock VFS method\n**\n** These integer constants define the various locking operations\n** allowed by the xShmLock method of [sqlite3_io_methods].  The\n** following are the only legal combinations of flags to the\n** xShmLock method:\n**\n** <ul>\n** <li>  SQLITE_SHM_LOCK | SQLITE_SHM_SHARED\n** <li>  SQLITE_SHM_LOCK | SQLITE_SHM_EXCLUSIVE\n** <li>  SQLITE_SHM_UNLOCK | SQLITE_SHM_SHARED\n** <li>  SQLITE_SHM_UNLOCK | SQLITE_SHM_EXCLUSIVE\n** </ul>\n**\n** When unlocking, the same SHARED or EXCLUSIVE flag must be supplied as\n** was given on the corresponding lock.  \n**\n** The xShmLock method can transition between unlocked and SHARED or\n** between unlocked and EXCLUSIVE.  It cannot transition between SHARED\n** and EXCLUSIVE.\n*/\n#define SQLITE_SHM_UNLOCK       1\n#define SQLITE_SHM_LOCK         2\n#define SQLITE_SHM_SHARED       4\n#define SQLITE_SHM_EXCLUSIVE    8\n\n/*\n** CAPI3REF: Maximum xShmLock index\n**\n** The xShmLock method on [sqlite3_io_methods] may use values\n** between 0 and this upper bound as its \"offset\" argument.\n** The SQLite core will never attempt to acquire or release a\n** lock outside of this range\n*/\n#define SQLITE_SHM_NLOCK        8\n\n\n/*\n** CAPI3REF: Initialize The SQLite Library\n**\n** ^The sqlite3_initialize() routine initializes the\n** SQLite library.  ^The sqlite3_shutdown() routine\n** deallocates any resources that were allocated by sqlite3_initialize().\n** These routines are designed to aid in process initialization and\n** shutdown on embedded systems.  Workstation applications using\n** SQLite normally do not need to invoke either of these routines.\n**\n** A call to sqlite3_initialize() is an \"effective\" call if it is\n** the first time sqlite3_initialize() is invoked during the lifetime of\n** the process, or if it is the first time sqlite3_initialize() is invoked\n** following a call to sqlite3_shutdown().  ^(Only an effective call\n** of sqlite3_initialize() does any initialization.  All other calls\n** are harmless no-ops.)^\n**\n** A call to sqlite3_shutdown() is an \"effective\" call if it is the first\n** call to sqlite3_shutdown() since the last sqlite3_initialize().  ^(Only\n** an effective call to sqlite3_shutdown() does any deinitialization.\n** All other valid calls to sqlite3_shutdown() are harmless no-ops.)^\n**\n** The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown()\n** is not.  The sqlite3_shutdown() interface must only be called from a\n** single thread.  All open [database connections] must be closed and all\n** other SQLite resources must be deallocated prior to invoking\n** sqlite3_shutdown().\n**\n** Among other things, ^sqlite3_initialize() will invoke\n** sqlite3_os_init().  Similarly, ^sqlite3_shutdown()\n** will invoke sqlite3_os_end().\n**\n** ^The sqlite3_initialize() routine returns [SQLITE_OK] on success.\n** ^If for some reason, sqlite3_initialize() is unable to initialize\n** the library (perhaps it is unable to allocate a needed resource such\n** as a mutex) it returns an [error code] other than [SQLITE_OK].\n**\n** ^The sqlite3_initialize() routine is called internally by many other\n** SQLite interfaces so that an application usually does not need to\n** invoke sqlite3_initialize() directly.  For example, [sqlite3_open()]\n** calls sqlite3_initialize() so the SQLite library will be automatically\n** initialized when [sqlite3_open()] is called if it has not be initialized\n** already.  ^However, if SQLite is compiled with the [SQLITE_OMIT_AUTOINIT]\n** compile-time option, then the automatic calls to sqlite3_initialize()\n** are omitted and the application must call sqlite3_initialize() directly\n** prior to using any other SQLite interface.  For maximum portability,\n** it is recommended that applications always invoke sqlite3_initialize()\n** directly prior to using any other SQLite interface.  Future releases\n** of SQLite may require this.  In other words, the behavior exhibited\n** when SQLite is compiled with [SQLITE_OMIT_AUTOINIT] might become the\n** default behavior in some future release of SQLite.\n**\n** The sqlite3_os_init() routine does operating-system specific\n** initialization of the SQLite library.  The sqlite3_os_end()\n** routine undoes the effect of sqlite3_os_init().  Typical tasks\n** performed by these routines include allocation or deallocation\n** of static resources, initialization of global variables,\n** setting up a default [sqlite3_vfs] module, or setting up\n** a default configuration using [sqlite3_config()].\n**\n** The application should never invoke either sqlite3_os_init()\n** or sqlite3_os_end() directly.  The application should only invoke\n** sqlite3_initialize() and sqlite3_shutdown().  The sqlite3_os_init()\n** interface is called automatically by sqlite3_initialize() and\n** sqlite3_os_end() is called by sqlite3_shutdown().  Appropriate\n** implementations for sqlite3_os_init() and sqlite3_os_end()\n** are built into SQLite when it is compiled for Unix, Windows, or OS/2.\n** When [custom builds | built for other platforms]\n** (using the [SQLITE_OS_OTHER=1] compile-time\n** option) the application must supply a suitable implementation for\n** sqlite3_os_init() and sqlite3_os_end().  An application-supplied\n** implementation of sqlite3_os_init() or sqlite3_os_end()\n** must return [SQLITE_OK] on success and some other [error code] upon\n** failure.\n*/\nSQLITE_API int sqlite3_initialize(void);\nSQLITE_API int sqlite3_shutdown(void);\nSQLITE_API int sqlite3_os_init(void);\nSQLITE_API int sqlite3_os_end(void);\n\n/*\n** CAPI3REF: Configuring The SQLite Library\n**\n** The sqlite3_config() interface is used to make global configuration\n** changes to SQLite in order to tune SQLite to the specific needs of\n** the application.  The default configuration is recommended for most\n** applications and so this routine is usually not necessary.  It is\n** provided to support rare applications with unusual needs.\n**\n** <b>The sqlite3_config() interface is not threadsafe. The application\n** must ensure that no other SQLite interfaces are invoked by other\n** threads while sqlite3_config() is running.</b>\n**\n** The sqlite3_config() interface\n** may only be invoked prior to library initialization using\n** [sqlite3_initialize()] or after shutdown by [sqlite3_shutdown()].\n** ^If sqlite3_config() is called after [sqlite3_initialize()] and before\n** [sqlite3_shutdown()] then it will return SQLITE_MISUSE.\n** Note, however, that ^sqlite3_config() can be called as part of the\n** implementation of an application-defined [sqlite3_os_init()].\n**\n** The first argument to sqlite3_config() is an integer\n** [configuration option] that determines\n** what property of SQLite is to be configured.  Subsequent arguments\n** vary depending on the [configuration option]\n** in the first argument.\n**\n** ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK].\n** ^If the option is unknown or SQLite is unable to set the option\n** then this routine returns a non-zero [error code].\n*/\nSQLITE_API int sqlite3_config(int, ...);\n\n/*\n** CAPI3REF: Configure database connections\n** METHOD: sqlite3\n**\n** The sqlite3_db_config() interface is used to make configuration\n** changes to a [database connection].  The interface is similar to\n** [sqlite3_config()] except that the changes apply to a single\n** [database connection] (specified in the first argument).\n**\n** The second argument to sqlite3_db_config(D,V,...)  is the\n** [SQLITE_DBCONFIG_LOOKASIDE | configuration verb] - an integer code \n** that indicates what aspect of the [database connection] is being configured.\n** Subsequent arguments vary depending on the configuration verb.\n**\n** ^Calls to sqlite3_db_config() return SQLITE_OK if and only if\n** the call is considered successful.\n*/\nSQLITE_API int sqlite3_db_config(sqlite3*, int op, ...);\n\n/*\n** CAPI3REF: Memory Allocation Routines\n**\n** An instance of this object defines the interface between SQLite\n** and low-level memory allocation routines.\n**\n** This object is used in only one place in the SQLite interface.\n** A pointer to an instance of this object is the argument to\n** [sqlite3_config()] when the configuration option is\n** [SQLITE_CONFIG_MALLOC] or [SQLITE_CONFIG_GETMALLOC].  \n** By creating an instance of this object\n** and passing it to [sqlite3_config]([SQLITE_CONFIG_MALLOC])\n** during configuration, an application can specify an alternative\n** memory allocation subsystem for SQLite to use for all of its\n** dynamic memory needs.\n**\n** Note that SQLite comes with several [built-in memory allocators]\n** that are perfectly adequate for the overwhelming majority of applications\n** and that this object is only useful to a tiny minority of applications\n** with specialized memory allocation requirements.  This object is\n** also used during testing of SQLite in order to specify an alternative\n** memory allocator that simulates memory out-of-memory conditions in\n** order to verify that SQLite recovers gracefully from such\n** conditions.\n**\n** The xMalloc, xRealloc, and xFree methods must work like the\n** malloc(), realloc() and free() functions from the standard C library.\n** ^SQLite guarantees that the second argument to\n** xRealloc is always a value returned by a prior call to xRoundup.\n**\n** xSize should return the allocated size of a memory allocation\n** previously obtained from xMalloc or xRealloc.  The allocated size\n** is always at least as big as the requested size but may be larger.\n**\n** The xRoundup method returns what would be the allocated size of\n** a memory allocation given a particular requested size.  Most memory\n** allocators round up memory allocations at least to the next multiple\n** of 8.  Some allocators round up to a larger multiple or to a power of 2.\n** Every memory allocation request coming in through [sqlite3_malloc()]\n** or [sqlite3_realloc()] first calls xRoundup.  If xRoundup returns 0, \n** that causes the corresponding memory allocation to fail.\n**\n** The xInit method initializes the memory allocator.  For example,\n** it might allocate any require mutexes or initialize internal data\n** structures.  The xShutdown method is invoked (indirectly) by\n** [sqlite3_shutdown()] and should deallocate any resources acquired\n** by xInit.  The pAppData pointer is used as the only parameter to\n** xInit and xShutdown.\n**\n** SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes\n** the xInit method, so the xInit method need not be threadsafe.  The\n** xShutdown method is only called from [sqlite3_shutdown()] so it does\n** not need to be threadsafe either.  For all other methods, SQLite\n** holds the [SQLITE_MUTEX_STATIC_MEM] mutex as long as the\n** [SQLITE_CONFIG_MEMSTATUS] configuration option is turned on (which\n** it is by default) and so the methods are automatically serialized.\n** However, if [SQLITE_CONFIG_MEMSTATUS] is disabled, then the other\n** methods must be threadsafe or else make their own arrangements for\n** serialization.\n**\n** SQLite will never invoke xInit() more than once without an intervening\n** call to xShutdown().\n*/\ntypedef struct sqlite3_mem_methods sqlite3_mem_methods;\nstruct sqlite3_mem_methods {\n  void *(*xMalloc)(int);         /* Memory allocation function */\n  void (*xFree)(void*);          /* Free a prior allocation */\n  void *(*xRealloc)(void*,int);  /* Resize an allocation */\n  int (*xSize)(void*);           /* Return the size of an allocation */\n  int (*xRoundup)(int);          /* Round up request size to allocation size */\n  int (*xInit)(void*);           /* Initialize the memory allocator */\n  void (*xShutdown)(void*);      /* Deinitialize the memory allocator */\n  void *pAppData;                /* Argument to xInit() and xShutdown() */\n};\n\n/*\n** CAPI3REF: Configuration Options\n** KEYWORDS: {configuration option}\n**\n** These constants are the available integer configuration options that\n** can be passed as the first argument to the [sqlite3_config()] interface.\n**\n** New configuration options may be added in future releases of SQLite.\n** Existing configuration options might be discontinued.  Applications\n** should check the return code from [sqlite3_config()] to make sure that\n** the call worked.  The [sqlite3_config()] interface will return a\n** non-zero [error code] if a discontinued or unsupported configuration option\n** is invoked.\n**\n** <dl>\n** [[SQLITE_CONFIG_SINGLETHREAD]] <dt>SQLITE_CONFIG_SINGLETHREAD</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Single-thread.  In other words, it disables\n** all mutexing and puts SQLite into a mode where it can only be used\n** by a single thread.   ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to change the [threading mode] from its default\n** value of Single-thread and so [sqlite3_config()] will return \n** [SQLITE_ERROR] if called with the SQLITE_CONFIG_SINGLETHREAD\n** configuration option.</dd>\n**\n** [[SQLITE_CONFIG_MULTITHREAD]] <dt>SQLITE_CONFIG_MULTITHREAD</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Multi-thread.  In other words, it disables\n** mutexing on [database connection] and [prepared statement] objects.\n** The application is responsible for serializing access to\n** [database connections] and [prepared statements].  But other mutexes\n** are enabled so that SQLite will be safe to use in a multi-threaded\n** environment as long as no two threads attempt to use the same\n** [database connection] at the same time.  ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to set the Multi-thread [threading mode] and\n** [sqlite3_config()] will return [SQLITE_ERROR] if called with the\n** SQLITE_CONFIG_MULTITHREAD configuration option.</dd>\n**\n** [[SQLITE_CONFIG_SERIALIZED]] <dt>SQLITE_CONFIG_SERIALIZED</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Serialized. In other words, this option enables\n** all mutexes including the recursive\n** mutexes on [database connection] and [prepared statement] objects.\n** In this mode (which is the default when SQLite is compiled with\n** [SQLITE_THREADSAFE=1]) the SQLite library will itself serialize access\n** to [database connections] and [prepared statements] so that the\n** application is free to use the same [database connection] or the\n** same [prepared statement] in different threads at the same time.\n** ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to set the Serialized [threading mode] and\n** [sqlite3_config()] will return [SQLITE_ERROR] if called with the\n** SQLITE_CONFIG_SERIALIZED configuration option.</dd>\n**\n** [[SQLITE_CONFIG_MALLOC]] <dt>SQLITE_CONFIG_MALLOC</dt>\n** <dd> ^(The SQLITE_CONFIG_MALLOC option takes a single argument which is \n** a pointer to an instance of the [sqlite3_mem_methods] structure.\n** The argument specifies\n** alternative low-level memory allocation routines to be used in place of\n** the memory allocation routines built into SQLite.)^ ^SQLite makes\n** its own private copy of the content of the [sqlite3_mem_methods] structure\n** before the [sqlite3_config()] call returns.</dd>\n**\n** [[SQLITE_CONFIG_GETMALLOC]] <dt>SQLITE_CONFIG_GETMALLOC</dt>\n** <dd> ^(The SQLITE_CONFIG_GETMALLOC option takes a single argument which\n** is a pointer to an instance of the [sqlite3_mem_methods] structure.\n** The [sqlite3_mem_methods]\n** structure is filled with the currently defined memory allocation routines.)^\n** This option can be used to overload the default memory allocation\n** routines with a wrapper that simulations memory allocation failure or\n** tracks memory usage, for example. </dd>\n**\n** [[SQLITE_CONFIG_SMALL_MALLOC]] <dt>SQLITE_CONFIG_SMALL_MALLOC</dt>\n** <dd> ^The SQLITE_CONFIG_SMALL_MALLOC option takes single argument of\n** type int, interpreted as a boolean, which if true provides a hint to\n** SQLite that it should avoid large memory allocations if possible.\n** SQLite will run faster if it is free to make large memory allocations,\n** but some application might prefer to run slower in exchange for\n** guarantees about memory fragmentation that are possible if large\n** allocations are avoided.  This hint is normally off.\n** </dd>\n**\n** [[SQLITE_CONFIG_MEMSTATUS]] <dt>SQLITE_CONFIG_MEMSTATUS</dt>\n** <dd> ^The SQLITE_CONFIG_MEMSTATUS option takes single argument of type int,\n** interpreted as a boolean, which enables or disables the collection of\n** memory allocation statistics. ^(When memory allocation statistics are\n** disabled, the following SQLite interfaces become non-operational:\n**   <ul>\n**   <li> [sqlite3_memory_used()]\n**   <li> [sqlite3_memory_highwater()]\n**   <li> [sqlite3_soft_heap_limit64()]\n**   <li> [sqlite3_status64()]\n**   </ul>)^\n** ^Memory allocation statistics are enabled by default unless SQLite is\n** compiled with [SQLITE_DEFAULT_MEMSTATUS]=0 in which case memory\n** allocation statistics are disabled by default.\n** </dd>\n**\n** [[SQLITE_CONFIG_SCRATCH]] <dt>SQLITE_CONFIG_SCRATCH</dt>\n** <dd> The SQLITE_CONFIG_SCRATCH option is no longer used.\n** </dd>\n**\n** [[SQLITE_CONFIG_PAGECACHE]] <dt>SQLITE_CONFIG_PAGECACHE</dt>\n** <dd> ^The SQLITE_CONFIG_PAGECACHE option specifies a memory pool\n** that SQLite can use for the database page cache with the default page\n** cache implementation.  \n** This configuration option is a no-op if an application-define page\n** cache implementation is loaded using the [SQLITE_CONFIG_PCACHE2].\n** ^There are three arguments to SQLITE_CONFIG_PAGECACHE: A pointer to\n** 8-byte aligned memory (pMem), the size of each page cache line (sz),\n** and the number of cache lines (N).\n** The sz argument should be the size of the largest database page\n** (a power of two between 512 and 65536) plus some extra bytes for each\n** page header.  ^The number of extra bytes needed by the page header\n** can be determined using [SQLITE_CONFIG_PCACHE_HDRSZ].\n** ^It is harmless, apart from the wasted memory,\n** for the sz parameter to be larger than necessary.  The pMem\n** argument must be either a NULL pointer or a pointer to an 8-byte\n** aligned block of memory of at least sz*N bytes, otherwise\n** subsequent behavior is undefined.\n** ^When pMem is not NULL, SQLite will strive to use the memory provided\n** to satisfy page cache needs, falling back to [sqlite3_malloc()] if\n** a page cache line is larger than sz bytes or if all of the pMem buffer\n** is exhausted.\n** ^If pMem is NULL and N is non-zero, then each database connection\n** does an initial bulk allocation for page cache memory\n** from [sqlite3_malloc()] sufficient for N cache lines if N is positive or\n** of -1024*N bytes if N is negative, . ^If additional\n** page cache memory is needed beyond what is provided by the initial\n** allocation, then SQLite goes to [sqlite3_malloc()] separately for each\n** additional cache line. </dd>\n**\n** [[SQLITE_CONFIG_HEAP]] <dt>SQLITE_CONFIG_HEAP</dt>\n** <dd> ^The SQLITE_CONFIG_HEAP option specifies a static memory buffer \n** that SQLite will use for all of its dynamic memory allocation needs\n** beyond those provided for by [SQLITE_CONFIG_PAGECACHE].\n** ^The SQLITE_CONFIG_HEAP option is only available if SQLite is compiled\n** with either [SQLITE_ENABLE_MEMSYS3] or [SQLITE_ENABLE_MEMSYS5] and returns\n** [SQLITE_ERROR] if invoked otherwise.\n** ^There are three arguments to SQLITE_CONFIG_HEAP:\n** An 8-byte aligned pointer to the memory,\n** the number of bytes in the memory buffer, and the minimum allocation size.\n** ^If the first pointer (the memory pointer) is NULL, then SQLite reverts\n** to using its default memory allocator (the system malloc() implementation),\n** undoing any prior invocation of [SQLITE_CONFIG_MALLOC].  ^If the\n** memory pointer is not NULL then the alternative memory\n** allocator is engaged to handle all of SQLites memory allocation needs.\n** The first pointer (the memory pointer) must be aligned to an 8-byte\n** boundary or subsequent behavior of SQLite will be undefined.\n** The minimum allocation size is capped at 2**12. Reasonable values\n** for the minimum allocation size are 2**5 through 2**8.</dd>\n**\n** [[SQLITE_CONFIG_MUTEX]] <dt>SQLITE_CONFIG_MUTEX</dt>\n** <dd> ^(The SQLITE_CONFIG_MUTEX option takes a single argument which is a\n** pointer to an instance of the [sqlite3_mutex_methods] structure.\n** The argument specifies alternative low-level mutex routines to be used\n** in place the mutex routines built into SQLite.)^  ^SQLite makes a copy of\n** the content of the [sqlite3_mutex_methods] structure before the call to\n** [sqlite3_config()] returns. ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** the entire mutexing subsystem is omitted from the build and hence calls to\n** [sqlite3_config()] with the SQLITE_CONFIG_MUTEX configuration option will\n** return [SQLITE_ERROR].</dd>\n**\n** [[SQLITE_CONFIG_GETMUTEX]] <dt>SQLITE_CONFIG_GETMUTEX</dt>\n** <dd> ^(The SQLITE_CONFIG_GETMUTEX option takes a single argument which\n** is a pointer to an instance of the [sqlite3_mutex_methods] structure.  The\n** [sqlite3_mutex_methods]\n** structure is filled with the currently defined mutex routines.)^\n** This option can be used to overload the default mutex allocation\n** routines with a wrapper used to track mutex usage for performance\n** profiling or testing, for example.   ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** the entire mutexing subsystem is omitted from the build and hence calls to\n** [sqlite3_config()] with the SQLITE_CONFIG_GETMUTEX configuration option will\n** return [SQLITE_ERROR].</dd>\n**\n** [[SQLITE_CONFIG_LOOKASIDE]] <dt>SQLITE_CONFIG_LOOKASIDE</dt>\n** <dd> ^(The SQLITE_CONFIG_LOOKASIDE option takes two arguments that determine\n** the default size of lookaside memory on each [database connection].\n** The first argument is the\n** size of each lookaside buffer slot and the second is the number of\n** slots allocated to each database connection.)^  ^(SQLITE_CONFIG_LOOKASIDE\n** sets the <i>default</i> lookaside size. The [SQLITE_DBCONFIG_LOOKASIDE]\n** option to [sqlite3_db_config()] can be used to change the lookaside\n** configuration on individual connections.)^ </dd>\n**\n** [[SQLITE_CONFIG_PCACHE2]] <dt>SQLITE_CONFIG_PCACHE2</dt>\n** <dd> ^(The SQLITE_CONFIG_PCACHE2 option takes a single argument which is \n** a pointer to an [sqlite3_pcache_methods2] object.  This object specifies\n** the interface to a custom page cache implementation.)^\n** ^SQLite makes a copy of the [sqlite3_pcache_methods2] object.</dd>\n**\n** [[SQLITE_CONFIG_GETPCACHE2]] <dt>SQLITE_CONFIG_GETPCACHE2</dt>\n** <dd> ^(The SQLITE_CONFIG_GETPCACHE2 option takes a single argument which\n** is a pointer to an [sqlite3_pcache_methods2] object.  SQLite copies of\n** the current page cache implementation into that object.)^ </dd>\n**\n** [[SQLITE_CONFIG_LOG]] <dt>SQLITE_CONFIG_LOG</dt>\n** <dd> The SQLITE_CONFIG_LOG option is used to configure the SQLite\n** global [error log].\n** (^The SQLITE_CONFIG_LOG option takes two arguments: a pointer to a\n** function with a call signature of void(*)(void*,int,const char*), \n** and a pointer to void. ^If the function pointer is not NULL, it is\n** invoked by [sqlite3_log()] to process each logging event.  ^If the\n** function pointer is NULL, the [sqlite3_log()] interface becomes a no-op.\n** ^The void pointer that is the second argument to SQLITE_CONFIG_LOG is\n** passed through as the first parameter to the application-defined logger\n** function whenever that function is invoked.  ^The second parameter to\n** the logger function is a copy of the first parameter to the corresponding\n** [sqlite3_log()] call and is intended to be a [result code] or an\n** [extended result code].  ^The third parameter passed to the logger is\n** log message after formatting via [sqlite3_snprintf()].\n** The SQLite logging interface is not reentrant; the logger function\n** supplied by the application must not invoke any SQLite interface.\n** In a multi-threaded application, the application-defined logger\n** function must be threadsafe. </dd>\n**\n** [[SQLITE_CONFIG_URI]] <dt>SQLITE_CONFIG_URI\n** <dd>^(The SQLITE_CONFIG_URI option takes a single argument of type int.\n** If non-zero, then URI handling is globally enabled. If the parameter is zero,\n** then URI handling is globally disabled.)^ ^If URI handling is globally\n** enabled, all filenames passed to [sqlite3_open()], [sqlite3_open_v2()],\n** [sqlite3_open16()] or\n** specified as part of [ATTACH] commands are interpreted as URIs, regardless\n** of whether or not the [SQLITE_OPEN_URI] flag is set when the database\n** connection is opened. ^If it is globally disabled, filenames are\n** only interpreted as URIs if the SQLITE_OPEN_URI flag is set when the\n** database connection is opened. ^(By default, URI handling is globally\n** disabled. The default value may be changed by compiling with the\n** [SQLITE_USE_URI] symbol defined.)^\n**\n** [[SQLITE_CONFIG_COVERING_INDEX_SCAN]] <dt>SQLITE_CONFIG_COVERING_INDEX_SCAN\n** <dd>^The SQLITE_CONFIG_COVERING_INDEX_SCAN option takes a single integer\n** argument which is interpreted as a boolean in order to enable or disable\n** the use of covering indices for full table scans in the query optimizer.\n** ^The default setting is determined\n** by the [SQLITE_ALLOW_COVERING_INDEX_SCAN] compile-time option, or is \"on\"\n** if that compile-time option is omitted.\n** The ability to disable the use of covering indices for full table scans\n** is because some incorrectly coded legacy applications might malfunction\n** when the optimization is enabled.  Providing the ability to\n** disable the optimization allows the older, buggy application code to work\n** without change even with newer versions of SQLite.\n**\n** [[SQLITE_CONFIG_PCACHE]] [[SQLITE_CONFIG_GETPCACHE]]\n** <dt>SQLITE_CONFIG_PCACHE and SQLITE_CONFIG_GETPCACHE\n** <dd> These options are obsolete and should not be used by new code.\n** They are retained for backwards compatibility but are now no-ops.\n** </dd>\n**\n** [[SQLITE_CONFIG_SQLLOG]]\n** <dt>SQLITE_CONFIG_SQLLOG\n** <dd>This option is only available if sqlite is compiled with the\n** [SQLITE_ENABLE_SQLLOG] pre-processor macro defined. The first argument should\n** be a pointer to a function of type void(*)(void*,sqlite3*,const char*, int).\n** The second should be of type (void*). The callback is invoked by the library\n** in three separate circumstances, identified by the value passed as the\n** fourth parameter. If the fourth parameter is 0, then the database connection\n** passed as the second argument has just been opened. The third argument\n** points to a buffer containing the name of the main database file. If the\n** fourth parameter is 1, then the SQL statement that the third parameter\n** points to has just been executed. Or, if the fourth parameter is 2, then\n** the connection being passed as the second parameter is being closed. The\n** third parameter is passed NULL In this case.  An example of using this\n** configuration option can be seen in the \"test_sqllog.c\" source file in\n** the canonical SQLite source tree.</dd>\n**\n** [[SQLITE_CONFIG_MMAP_SIZE]]\n** <dt>SQLITE_CONFIG_MMAP_SIZE\n** <dd>^SQLITE_CONFIG_MMAP_SIZE takes two 64-bit integer (sqlite3_int64) values\n** that are the default mmap size limit (the default setting for\n** [PRAGMA mmap_size]) and the maximum allowed mmap size limit.\n** ^The default setting can be overridden by each database connection using\n** either the [PRAGMA mmap_size] command, or by using the\n** [SQLITE_FCNTL_MMAP_SIZE] file control.  ^(The maximum allowed mmap size\n** will be silently truncated if necessary so that it does not exceed the\n** compile-time maximum mmap size set by the\n** [SQLITE_MAX_MMAP_SIZE] compile-time option.)^\n** ^If either argument to this option is negative, then that argument is\n** changed to its compile-time default.\n**\n** [[SQLITE_CONFIG_WIN32_HEAPSIZE]]\n** <dt>SQLITE_CONFIG_WIN32_HEAPSIZE\n** <dd>^The SQLITE_CONFIG_WIN32_HEAPSIZE option is only available if SQLite is\n** compiled for Windows with the [SQLITE_WIN32_MALLOC] pre-processor macro\n** defined. ^SQLITE_CONFIG_WIN32_HEAPSIZE takes a 32-bit unsigned integer value\n** that specifies the maximum size of the created heap.\n**\n** [[SQLITE_CONFIG_PCACHE_HDRSZ]]\n** <dt>SQLITE_CONFIG_PCACHE_HDRSZ\n** <dd>^The SQLITE_CONFIG_PCACHE_HDRSZ option takes a single parameter which\n** is a pointer to an integer and writes into that integer the number of extra\n** bytes per page required for each page in [SQLITE_CONFIG_PAGECACHE].\n** The amount of extra space required can change depending on the compiler,\n** target platform, and SQLite version.\n**\n** [[SQLITE_CONFIG_PMASZ]]\n** <dt>SQLITE_CONFIG_PMASZ\n** <dd>^The SQLITE_CONFIG_PMASZ option takes a single parameter which\n** is an unsigned integer and sets the \"Minimum PMA Size\" for the multithreaded\n** sorter to that integer.  The default minimum PMA Size is set by the\n** [SQLITE_SORTER_PMASZ] compile-time option.  New threads are launched\n** to help with sort operations when multithreaded sorting\n** is enabled (using the [PRAGMA threads] command) and the amount of content\n** to be sorted exceeds the page size times the minimum of the\n** [PRAGMA cache_size] setting and this value.\n**\n** [[SQLITE_CONFIG_STMTJRNL_SPILL]]\n** <dt>SQLITE_CONFIG_STMTJRNL_SPILL\n** <dd>^The SQLITE_CONFIG_STMTJRNL_SPILL option takes a single parameter which\n** becomes the [statement journal] spill-to-disk threshold.  \n** [Statement journals] are held in memory until their size (in bytes)\n** exceeds this threshold, at which point they are written to disk.\n** Or if the threshold is -1, statement journals are always held\n** exclusively in memory.\n** Since many statement journals never become large, setting the spill\n** threshold to a value such as 64KiB can greatly reduce the amount of\n** I/O required to support statement rollback.\n** The default value for this setting is controlled by the\n** [SQLITE_STMTJRNL_SPILL] compile-time option.\n** </dl>\n*/\n#define SQLITE_CONFIG_SINGLETHREAD  1  /* nil */\n#define SQLITE_CONFIG_MULTITHREAD   2  /* nil */\n#define SQLITE_CONFIG_SERIALIZED    3  /* nil */\n#define SQLITE_CONFIG_MALLOC        4  /* sqlite3_mem_methods* */\n#define SQLITE_CONFIG_GETMALLOC     5  /* sqlite3_mem_methods* */\n#define SQLITE_CONFIG_SCRATCH       6  /* No longer used */\n#define SQLITE_CONFIG_PAGECACHE     7  /* void*, int sz, int N */\n#define SQLITE_CONFIG_HEAP          8  /* void*, int nByte, int min */\n#define SQLITE_CONFIG_MEMSTATUS     9  /* boolean */\n#define SQLITE_CONFIG_MUTEX        10  /* sqlite3_mutex_methods* */\n#define SQLITE_CONFIG_GETMUTEX     11  /* sqlite3_mutex_methods* */\n/* previously SQLITE_CONFIG_CHUNKALLOC 12 which is now unused. */ \n#define SQLITE_CONFIG_LOOKASIDE    13  /* int int */\n#define SQLITE_CONFIG_PCACHE       14  /* no-op */\n#define SQLITE_CONFIG_GETPCACHE    15  /* no-op */\n#define SQLITE_CONFIG_LOG          16  /* xFunc, void* */\n#define SQLITE_CONFIG_URI          17  /* int */\n#define SQLITE_CONFIG_PCACHE2      18  /* sqlite3_pcache_methods2* */\n#define SQLITE_CONFIG_GETPCACHE2   19  /* sqlite3_pcache_methods2* */\n#define SQLITE_CONFIG_COVERING_INDEX_SCAN 20  /* int */\n#define SQLITE_CONFIG_SQLLOG       21  /* xSqllog, void* */\n#define SQLITE_CONFIG_MMAP_SIZE    22  /* sqlite3_int64, sqlite3_int64 */\n#define SQLITE_CONFIG_WIN32_HEAPSIZE      23  /* int nByte */\n#define SQLITE_CONFIG_PCACHE_HDRSZ        24  /* int *psz */\n#define SQLITE_CONFIG_PMASZ               25  /* unsigned int szPma */\n#define SQLITE_CONFIG_STMTJRNL_SPILL      26  /* int nByte */\n#define SQLITE_CONFIG_SMALL_MALLOC        27  /* boolean */\n\n/*\n** CAPI3REF: Database Connection Configuration Options\n**\n** These constants are the available integer configuration options that\n** can be passed as the second argument to the [sqlite3_db_config()] interface.\n**\n** New configuration options may be added in future releases of SQLite.\n** Existing configuration options might be discontinued.  Applications\n** should check the return code from [sqlite3_db_config()] to make sure that\n** the call worked.  ^The [sqlite3_db_config()] interface will return a\n** non-zero [error code] if a discontinued or unsupported configuration option\n** is invoked.\n**\n** <dl>\n** <dt>SQLITE_DBCONFIG_LOOKASIDE</dt>\n** <dd> ^This option takes three additional arguments that determine the \n** [lookaside memory allocator] configuration for the [database connection].\n** ^The first argument (the third parameter to [sqlite3_db_config()] is a\n** pointer to a memory buffer to use for lookaside memory.\n** ^The first argument after the SQLITE_DBCONFIG_LOOKASIDE verb\n** may be NULL in which case SQLite will allocate the\n** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the\n** size of each lookaside buffer slot.  ^The third argument is the number of\n** slots.  The size of the buffer in the first argument must be greater than\n** or equal to the product of the second and third arguments.  The buffer\n** must be aligned to an 8-byte boundary.  ^If the second argument to\n** SQLITE_DBCONFIG_LOOKASIDE is not a multiple of 8, it is internally\n** rounded down to the next smaller multiple of 8.  ^(The lookaside memory\n** configuration for a database connection can only be changed when that\n** connection is not currently using lookaside memory, or in other words\n** when the \"current value\" returned by\n** [sqlite3_db_status](D,[SQLITE_CONFIG_LOOKASIDE],...) is zero.\n** Any attempt to change the lookaside memory configuration when lookaside\n** memory is in use leaves the configuration unchanged and returns \n** [SQLITE_BUSY].)^</dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_FKEY</dt>\n** <dd> ^This option is used to enable or disable the enforcement of\n** [foreign key constraints].  There should be two additional arguments.\n** The first argument is an integer which is 0 to disable FK enforcement,\n** positive to enable FK enforcement or negative to leave FK enforcement\n** unchanged.  The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether FK enforcement is off or on\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the FK enforcement setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_TRIGGER</dt>\n** <dd> ^This option is used to enable or disable [CREATE TRIGGER | triggers].\n** There should be two additional arguments.\n** The first argument is an integer which is 0 to disable triggers,\n** positive to enable triggers or negative to leave the setting unchanged.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether triggers are disabled or enabled\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the trigger setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>\n** <dd> ^This option is used to enable or disable the two-argument\n** version of the [fts3_tokenizer()] function which is part of the\n** [FTS3] full-text search engine extension.\n** There should be two additional arguments.\n** The first argument is an integer which is 0 to disable fts3_tokenizer() or\n** positive to enable fts3_tokenizer() or negative to leave the setting\n** unchanged.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether fts3_tokenizer is disabled or enabled\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the new setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION</dt>\n** <dd> ^This option is used to enable or disable the [sqlite3_load_extension()]\n** interface independently of the [load_extension()] SQL function.\n** The [sqlite3_enable_load_extension()] API enables or disables both the\n** C-API [sqlite3_load_extension()] and the SQL function [load_extension()].\n** There should be two additional arguments.\n** When the first argument to this interface is 1, then only the C-API is\n** enabled and the SQL function remains disabled.  If the first argument to\n** this interface is 0, then both the C-API and the SQL function are disabled.\n** If the first argument is -1, then no changes are made to state of either the\n** C-API or the SQL function.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether [sqlite3_load_extension()] interface\n** is disabled or enabled following this call.  The second parameter may\n** be a NULL pointer, in which case the new setting is not reported back.\n** </dd>\n**\n** <dt>SQLITE_DBCONFIG_MAINDBNAME</dt>\n** <dd> ^This option is used to change the name of the \"main\" database\n** schema.  ^The sole argument is a pointer to a constant UTF8 string\n** which will become the new schema name in place of \"main\".  ^SQLite\n** does not make a copy of the new main schema name string, so the application\n** must ensure that the argument passed into this DBCONFIG option is unchanged\n** until after the database connection closes.\n** </dd>\n**\n** <dt>SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE</dt>\n** <dd> Usually, when a database in wal mode is closed or detached from a \n** database handle, SQLite checks if this will mean that there are now no \n** connections at all to the database. If so, it performs a checkpoint \n** operation before closing the connection. This option may be used to\n** override this behaviour. The first parameter passed to this operation\n** is an integer - non-zero to disable checkpoints-on-close, or zero (the\n** default) to enable them. The second parameter is a pointer to an integer\n** into which is written 0 or 1 to indicate whether checkpoints-on-close\n** have been disabled - 0 if they are not disabled, 1 if they are.\n** </dd>\n** <dt>SQLITE_DBCONFIG_ENABLE_QPSG</dt>\n** <dd>^(The SQLITE_DBCONFIG_ENABLE_QPSG option activates or deactivates\n** the [query planner stability guarantee] (QPSG).  When the QPSG is active,\n** a single SQL query statement will always use the same algorithm regardless\n** of values of [bound parameters].)^ The QPSG disables some query optimizations\n** that look at the values of bound parameters, which can make some queries\n** slower.  But the QPSG has the advantage of more predictable behavior.  With\n** the QPSG active, SQLite will always use the same query plan in the field as\n** was used during testing in the lab.\n** </dd>\n** <dt>SQLITE_DBCONFIG_TRIGGER_EQP</dt>\n** <dd> By default, the output of EXPLAIN QUERY PLAN commands does not \n** include output for any operations performed by trigger programs. This\n** option is used to set or clear (the default) a flag that governs this\n** behavior. The first parameter passed to this operation is an integer -\n** non-zero to enable output for trigger programs, or zero to disable it.\n** The second parameter is a pointer to an integer into which is written \n** 0 or 1 to indicate whether output-for-triggers has been disabled - 0 if \n** it is not disabled, 1 if it is.  \n** </dd>\n** </dl>\n*/\n#define SQLITE_DBCONFIG_MAINDBNAME            1000 /* const char* */\n#define SQLITE_DBCONFIG_LOOKASIDE             1001 /* void* int int */\n#define SQLITE_DBCONFIG_ENABLE_FKEY           1002 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_TRIGGER        1003 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION 1005 /* int int* */\n#define SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE      1006 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_QPSG           1007 /* int int* */\n#define SQLITE_DBCONFIG_TRIGGER_EQP           1008 /* int int* */\n#define SQLITE_DBCONFIG_MAX                   1008 /* Largest DBCONFIG */\n\n/*\n** CAPI3REF: Enable Or Disable Extended Result Codes\n** METHOD: sqlite3\n**\n** ^The sqlite3_extended_result_codes() routine enables or disables the\n** [extended result codes] feature of SQLite. ^The extended result\n** codes are disabled by default for historical compatibility.\n*/\nSQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);\n\n/*\n** CAPI3REF: Last Insert Rowid\n** METHOD: sqlite3\n**\n** ^Each entry in most SQLite tables (except for [WITHOUT ROWID] tables)\n** has a unique 64-bit signed\n** integer key called the [ROWID | \"rowid\"]. ^The rowid is always available\n** as an undeclared column named ROWID, OID, or _ROWID_ as long as those\n** names are not also used by explicitly declared columns. ^If\n** the table has a column of type [INTEGER PRIMARY KEY] then that column\n** is another alias for the rowid.\n**\n** ^The sqlite3_last_insert_rowid(D) interface usually returns the [rowid] of\n** the most recent successful [INSERT] into a rowid table or [virtual table]\n** on database connection D. ^Inserts into [WITHOUT ROWID] tables are not\n** recorded. ^If no successful [INSERT]s into rowid tables have ever occurred \n** on the database connection D, then sqlite3_last_insert_rowid(D) returns \n** zero.\n**\n** As well as being set automatically as rows are inserted into database\n** tables, the value returned by this function may be set explicitly by\n** [sqlite3_set_last_insert_rowid()]\n**\n** Some virtual table implementations may INSERT rows into rowid tables as\n** part of committing a transaction (e.g. to flush data accumulated in memory\n** to disk). In this case subsequent calls to this function return the rowid\n** associated with these internal INSERT operations, which leads to \n** unintuitive results. Virtual table implementations that do write to rowid\n** tables in this way can avoid this problem by restoring the original \n** rowid value using [sqlite3_set_last_insert_rowid()] before returning \n** control to the user.\n**\n** ^(If an [INSERT] occurs within a trigger then this routine will \n** return the [rowid] of the inserted row as long as the trigger is \n** running. Once the trigger program ends, the value returned \n** by this routine reverts to what it was before the trigger was fired.)^\n**\n** ^An [INSERT] that fails due to a constraint violation is not a\n** successful [INSERT] and does not change the value returned by this\n** routine.  ^Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK,\n** and INSERT OR ABORT make no changes to the return value of this\n** routine when their insertion fails.  ^(When INSERT OR REPLACE\n** encounters a constraint violation, it does not fail.  The\n** INSERT continues to completion after deleting rows that caused\n** the constraint problem so INSERT OR REPLACE will always change\n** the return value of this interface.)^\n**\n** ^For the purposes of this routine, an [INSERT] is considered to\n** be successful even if it is subsequently rolled back.\n**\n** This function is accessible to SQL statements via the\n** [last_insert_rowid() SQL function].\n**\n** If a separate thread performs a new [INSERT] on the same\n** database connection while the [sqlite3_last_insert_rowid()]\n** function is running and thus changes the last insert [rowid],\n** then the value returned by [sqlite3_last_insert_rowid()] is\n** unpredictable and might not equal either the old or the new\n** last insert [rowid].\n*/\nSQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);\n\n/*\n** CAPI3REF: Set the Last Insert Rowid value.\n** METHOD: sqlite3\n**\n** The sqlite3_set_last_insert_rowid(D, R) method allows the application to\n** set the value returned by calling sqlite3_last_insert_rowid(D) to R \n** without inserting a row into the database.\n*/\nSQLITE_API void sqlite3_set_last_insert_rowid(sqlite3*,sqlite3_int64);\n\n/*\n** CAPI3REF: Count The Number Of Rows Modified\n** METHOD: sqlite3\n**\n** ^This function returns the number of rows modified, inserted or\n** deleted by the most recently completed INSERT, UPDATE or DELETE\n** statement on the database connection specified by the only parameter.\n** ^Executing any other type of SQL statement does not modify the value\n** returned by this function.\n**\n** ^Only changes made directly by the INSERT, UPDATE or DELETE statement are\n** considered - auxiliary changes caused by [CREATE TRIGGER | triggers], \n** [foreign key actions] or [REPLACE] constraint resolution are not counted.\n** \n** Changes to a view that are intercepted by \n** [INSTEAD OF trigger | INSTEAD OF triggers] are not counted. ^The value \n** returned by sqlite3_changes() immediately after an INSERT, UPDATE or \n** DELETE statement run on a view is always zero. Only changes made to real \n** tables are counted.\n**\n** Things are more complicated if the sqlite3_changes() function is\n** executed while a trigger program is running. This may happen if the\n** program uses the [changes() SQL function], or if some other callback\n** function invokes sqlite3_changes() directly. Essentially:\n** \n** <ul>\n**   <li> ^(Before entering a trigger program the value returned by\n**        sqlite3_changes() function is saved. After the trigger program \n**        has finished, the original value is restored.)^\n** \n**   <li> ^(Within a trigger program each INSERT, UPDATE and DELETE \n**        statement sets the value returned by sqlite3_changes() \n**        upon completion as normal. Of course, this value will not include \n**        any changes performed by sub-triggers, as the sqlite3_changes() \n**        value will be saved and restored after each sub-trigger has run.)^\n** </ul>\n** \n** ^This means that if the changes() SQL function (or similar) is used\n** by the first INSERT, UPDATE or DELETE statement within a trigger, it \n** returns the value as set when the calling statement began executing.\n** ^If it is used by the second or subsequent such statement within a trigger \n** program, the value returned reflects the number of rows modified by the \n** previous INSERT, UPDATE or DELETE statement within the same trigger.\n**\n** See also the [sqlite3_total_changes()] interface, the\n** [count_changes pragma], and the [changes() SQL function].\n**\n** If a separate thread makes changes on the same database connection\n** while [sqlite3_changes()] is running then the value returned\n** is unpredictable and not meaningful.\n*/\nSQLITE_API int sqlite3_changes(sqlite3*);\n\n/*\n** CAPI3REF: Total Number Of Rows Modified\n** METHOD: sqlite3\n**\n** ^This function returns the total number of rows inserted, modified or\n** deleted by all [INSERT], [UPDATE] or [DELETE] statements completed\n** since the database connection was opened, including those executed as\n** part of trigger programs. ^Executing any other type of SQL statement\n** does not affect the value returned by sqlite3_total_changes().\n** \n** ^Changes made as part of [foreign key actions] are included in the\n** count, but those made as part of REPLACE constraint resolution are\n** not. ^Changes to a view that are intercepted by INSTEAD OF triggers \n** are not counted.\n** \n** See also the [sqlite3_changes()] interface, the\n** [count_changes pragma], and the [total_changes() SQL function].\n**\n** If a separate thread makes changes on the same database connection\n** while [sqlite3_total_changes()] is running then the value\n** returned is unpredictable and not meaningful.\n*/\nSQLITE_API int sqlite3_total_changes(sqlite3*);\n\n/*\n** CAPI3REF: Interrupt A Long-Running Query\n** METHOD: sqlite3\n**\n** ^This function causes any pending database operation to abort and\n** return at its earliest opportunity. This routine is typically\n** called in response to a user action such as pressing \"Cancel\"\n** or Ctrl-C where the user wants a long query operation to halt\n** immediately.\n**\n** ^It is safe to call this routine from a thread different from the\n** thread that is currently running the database operation.  But it\n** is not safe to call this routine with a [database connection] that\n** is closed or might close before sqlite3_interrupt() returns.\n**\n** ^If an SQL operation is very nearly finished at the time when\n** sqlite3_interrupt() is called, then it might not have an opportunity\n** to be interrupted and might continue to completion.\n**\n** ^An SQL operation that is interrupted will return [SQLITE_INTERRUPT].\n** ^If the interrupted SQL operation is an INSERT, UPDATE, or DELETE\n** that is inside an explicit transaction, then the entire transaction\n** will be rolled back automatically.\n**\n** ^The sqlite3_interrupt(D) call is in effect until all currently running\n** SQL statements on [database connection] D complete.  ^Any new SQL statements\n** that are started after the sqlite3_interrupt() call and before the \n** running statements reaches zero are interrupted as if they had been\n** running prior to the sqlite3_interrupt() call.  ^New SQL statements\n** that are started after the running statement count reaches zero are\n** not effected by the sqlite3_interrupt().\n** ^A call to sqlite3_interrupt(D) that occurs when there are no running\n** SQL statements is a no-op and has no effect on SQL statements\n** that are started after the sqlite3_interrupt() call returns.\n*/\nSQLITE_API void sqlite3_interrupt(sqlite3*);\n\n/*\n** CAPI3REF: Determine If An SQL Statement Is Complete\n**\n** These routines are useful during command-line input to determine if the\n** currently entered text seems to form a complete SQL statement or\n** if additional input is needed before sending the text into\n** SQLite for parsing.  ^These routines return 1 if the input string\n** appears to be a complete SQL statement.  ^A statement is judged to be\n** complete if it ends with a semicolon token and is not a prefix of a\n** well-formed CREATE TRIGGER statement.  ^Semicolons that are embedded within\n** string literals or quoted identifier names or comments are not\n** independent tokens (they are part of the token in which they are\n** embedded) and thus do not count as a statement terminator.  ^Whitespace\n** and comments that follow the final semicolon are ignored.\n**\n** ^These routines return 0 if the statement is incomplete.  ^If a\n** memory allocation fails, then SQLITE_NOMEM is returned.\n**\n** ^These routines do not parse the SQL statements thus\n** will not detect syntactically incorrect SQL.\n**\n** ^(If SQLite has not been initialized using [sqlite3_initialize()] prior \n** to invoking sqlite3_complete16() then sqlite3_initialize() is invoked\n** automatically by sqlite3_complete16().  If that initialization fails,\n** then the return value from sqlite3_complete16() will be non-zero\n** regardless of whether or not the input SQL is complete.)^\n**\n** The input to [sqlite3_complete()] must be a zero-terminated\n** UTF-8 string.\n**\n** The input to [sqlite3_complete16()] must be a zero-terminated\n** UTF-16 string in native byte order.\n*/\nSQLITE_API int sqlite3_complete(const char *sql);\nSQLITE_API int sqlite3_complete16(const void *sql);\n\n/*\n** CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors\n** KEYWORDS: {busy-handler callback} {busy handler}\n** METHOD: sqlite3\n**\n** ^The sqlite3_busy_handler(D,X,P) routine sets a callback function X\n** that might be invoked with argument P whenever\n** an attempt is made to access a database table associated with\n** [database connection] D when another thread\n** or process has the table locked.\n** The sqlite3_busy_handler() interface is used to implement\n** [sqlite3_busy_timeout()] and [PRAGMA busy_timeout].\n**\n** ^If the busy callback is NULL, then [SQLITE_BUSY]\n** is returned immediately upon encountering the lock.  ^If the busy callback\n** is not NULL, then the callback might be invoked with two arguments.\n**\n** ^The first argument to the busy handler is a copy of the void* pointer which\n** is the third argument to sqlite3_busy_handler().  ^The second argument to\n** the busy handler callback is the number of times that the busy handler has\n** been invoked previously for the same locking event.  ^If the\n** busy callback returns 0, then no additional attempts are made to\n** access the database and [SQLITE_BUSY] is returned\n** to the application.\n** ^If the callback returns non-zero, then another attempt\n** is made to access the database and the cycle repeats.\n**\n** The presence of a busy handler does not guarantee that it will be invoked\n** when there is lock contention. ^If SQLite determines that invoking the busy\n** handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY]\n** to the application instead of invoking the \n** busy handler.\n** Consider a scenario where one process is holding a read lock that\n** it is trying to promote to a reserved lock and\n** a second process is holding a reserved lock that it is trying\n** to promote to an exclusive lock.  The first process cannot proceed\n** because it is blocked by the second and the second process cannot\n** proceed because it is blocked by the first.  If both processes\n** invoke the busy handlers, neither will make any progress.  Therefore,\n** SQLite returns [SQLITE_BUSY] for the first process, hoping that this\n** will induce the first process to release its read lock and allow\n** the second process to proceed.\n**\n** ^The default busy callback is NULL.\n**\n** ^(There can only be a single busy handler defined for each\n** [database connection].  Setting a new busy handler clears any\n** previously set handler.)^  ^Note that calling [sqlite3_busy_timeout()]\n** or evaluating [PRAGMA busy_timeout=N] will change the\n** busy handler and thus clear any previously set busy handler.\n**\n** The busy callback should not take any actions which modify the\n** database connection that invoked the busy handler.  In other words,\n** the busy handler is not reentrant.  Any such actions\n** result in undefined behavior.\n** \n** A busy handler must not close the database connection\n** or [prepared statement] that invoked the busy handler.\n*/\nSQLITE_API int sqlite3_busy_handler(sqlite3*,int(*)(void*,int),void*);\n\n/*\n** CAPI3REF: Set A Busy Timeout\n** METHOD: sqlite3\n**\n** ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps\n** for a specified amount of time when a table is locked.  ^The handler\n** will sleep multiple times until at least \"ms\" milliseconds of sleeping\n** have accumulated.  ^After at least \"ms\" milliseconds of sleeping,\n** the handler returns 0 which causes [sqlite3_step()] to return\n** [SQLITE_BUSY].\n**\n** ^Calling this routine with an argument less than or equal to zero\n** turns off all busy handlers.\n**\n** ^(There can only be a single busy handler for a particular\n** [database connection] at any given moment.  If another busy handler\n** was defined  (using [sqlite3_busy_handler()]) prior to calling\n** this routine, that other busy handler is cleared.)^\n**\n** See also:  [PRAGMA busy_timeout]\n*/\nSQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);\n\n/*\n** CAPI3REF: Convenience Routines For Running Queries\n** METHOD: sqlite3\n**\n** This is a legacy interface that is preserved for backwards compatibility.\n** Use of this interface is not recommended.\n**\n** Definition: A <b>result table</b> is memory data structure created by the\n** [sqlite3_get_table()] interface.  A result table records the\n** complete query results from one or more queries.\n**\n** The table conceptually has a number of rows and columns.  But\n** these numbers are not part of the result table itself.  These\n** numbers are obtained separately.  Let N be the number of rows\n** and M be the number of columns.\n**\n** A result table is an array of pointers to zero-terminated UTF-8 strings.\n** There are (N+1)*M elements in the array.  The first M pointers point\n** to zero-terminated strings that  contain the names of the columns.\n** The remaining entries all point to query results.  NULL values result\n** in NULL pointers.  All other values are in their UTF-8 zero-terminated\n** string representation as returned by [sqlite3_column_text()].\n**\n** A result table might consist of one or more memory allocations.\n** It is not safe to pass a result table directly to [sqlite3_free()].\n** A result table should be deallocated using [sqlite3_free_table()].\n**\n** ^(As an example of the result table format, suppose a query result\n** is as follows:\n**\n** <blockquote><pre>\n**        Name        | Age\n**        -----------------------\n**        Alice       | 43\n**        Bob         | 28\n**        Cindy       | 21\n** </pre></blockquote>\n**\n** There are two column (M==2) and three rows (N==3).  Thus the\n** result table has 8 entries.  Suppose the result table is stored\n** in an array names azResult.  Then azResult holds this content:\n**\n** <blockquote><pre>\n**        azResult&#91;0] = \"Name\";\n**        azResult&#91;1] = \"Age\";\n**        azResult&#91;2] = \"Alice\";\n**        azResult&#91;3] = \"43\";\n**        azResult&#91;4] = \"Bob\";\n**        azResult&#91;5] = \"28\";\n**        azResult&#91;6] = \"Cindy\";\n**        azResult&#91;7] = \"21\";\n** </pre></blockquote>)^\n**\n** ^The sqlite3_get_table() function evaluates one or more\n** semicolon-separated SQL statements in the zero-terminated UTF-8\n** string of its 2nd parameter and returns a result table to the\n** pointer given in its 3rd parameter.\n**\n** After the application has finished with the result from sqlite3_get_table(),\n** it must pass the result table pointer to sqlite3_free_table() in order to\n** release the memory that was malloced.  Because of the way the\n** [sqlite3_malloc()] happens within sqlite3_get_table(), the calling\n** function must not try to call [sqlite3_free()] directly.  Only\n** [sqlite3_free_table()] is able to release the memory properly and safely.\n**\n** The sqlite3_get_table() interface is implemented as a wrapper around\n** [sqlite3_exec()].  The sqlite3_get_table() routine does not have access\n** to any internal data structures of SQLite.  It uses only the public\n** interface defined here.  As a consequence, errors that occur in the\n** wrapper layer outside of the internal [sqlite3_exec()] call are not\n** reflected in subsequent calls to [sqlite3_errcode()] or\n** [sqlite3_errmsg()].\n*/\nSQLITE_API int sqlite3_get_table(\n  sqlite3 *db,          /* An open database */\n  const char *zSql,     /* SQL to be evaluated */\n  char ***pazResult,    /* Results of the query */\n  int *pnRow,           /* Number of result rows written here */\n  int *pnColumn,        /* Number of result columns written here */\n  char **pzErrmsg       /* Error msg written here */\n);\nSQLITE_API void sqlite3_free_table(char **result);\n\n/*\n** CAPI3REF: Formatted String Printing Functions\n**\n** These routines are work-alikes of the \"printf()\" family of functions\n** from the standard C library.\n** These routines understand most of the common K&R formatting options,\n** plus some additional non-standard formats, detailed below.\n** Note that some of the more obscure formatting options from recent\n** C-library standards are omitted from this implementation.\n**\n** ^The sqlite3_mprintf() and sqlite3_vmprintf() routines write their\n** results into memory obtained from [sqlite3_malloc()].\n** The strings returned by these two routines should be\n** released by [sqlite3_free()].  ^Both routines return a\n** NULL pointer if [sqlite3_malloc()] is unable to allocate enough\n** memory to hold the resulting string.\n**\n** ^(The sqlite3_snprintf() routine is similar to \"snprintf()\" from\n** the standard C library.  The result is written into the\n** buffer supplied as the second parameter whose size is given by\n** the first parameter. Note that the order of the\n** first two parameters is reversed from snprintf().)^  This is an\n** historical accident that cannot be fixed without breaking\n** backwards compatibility.  ^(Note also that sqlite3_snprintf()\n** returns a pointer to its buffer instead of the number of\n** characters actually written into the buffer.)^  We admit that\n** the number of characters written would be a more useful return\n** value but we cannot change the implementation of sqlite3_snprintf()\n** now without breaking compatibility.\n**\n** ^As long as the buffer size is greater than zero, sqlite3_snprintf()\n** guarantees that the buffer is always zero-terminated.  ^The first\n** parameter \"n\" is the total size of the buffer, including space for\n** the zero terminator.  So the longest string that can be completely\n** written will be n-1 characters.\n**\n** ^The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf().\n**\n** These routines all implement some additional formatting\n** options that are useful for constructing SQL statements.\n** All of the usual printf() formatting options apply.  In addition, there\n** is are \"%q\", \"%Q\", \"%w\" and \"%z\" options.\n**\n** ^(The %q option works like %s in that it substitutes a nul-terminated\n** string from the argument list.  But %q also doubles every '\\'' character.\n** %q is designed for use inside a string literal.)^  By doubling each '\\''\n** character it escapes that character and allows it to be inserted into\n** the string.\n**\n** For example, assume the string variable zText contains text as follows:\n**\n** <blockquote><pre>\n**  char *zText = \"It's a happy day!\";\n** </pre></blockquote>\n**\n** One can use this text in an SQL statement as follows:\n**\n** <blockquote><pre>\n**  char *zSQL = sqlite3_mprintf(\"INSERT INTO table VALUES('%q')\", zText);\n**  sqlite3_exec(db, zSQL, 0, 0, 0);\n**  sqlite3_free(zSQL);\n** </pre></blockquote>\n**\n** Because the %q format string is used, the '\\'' character in zText\n** is escaped and the SQL generated is as follows:\n**\n** <blockquote><pre>\n**  INSERT INTO table1 VALUES('It''s a happy day!')\n** </pre></blockquote>\n**\n** This is correct.  Had we used %s instead of %q, the generated SQL\n** would have looked like this:\n**\n** <blockquote><pre>\n**  INSERT INTO table1 VALUES('It's a happy day!');\n** </pre></blockquote>\n**\n** This second example is an SQL syntax error.  As a general rule you should\n** always use %q instead of %s when inserting text into a string literal.\n**\n** ^(The %Q option works like %q except it also adds single quotes around\n** the outside of the total string.  Additionally, if the parameter in the\n** argument list is a NULL pointer, %Q substitutes the text \"NULL\" (without\n** single quotes).)^  So, for example, one could say:\n**\n** <blockquote><pre>\n**  char *zSQL = sqlite3_mprintf(\"INSERT INTO table VALUES(%Q)\", zText);\n**  sqlite3_exec(db, zSQL, 0, 0, 0);\n**  sqlite3_free(zSQL);\n** </pre></blockquote>\n**\n** The code above will render a correct SQL statement in the zSQL\n** variable even if the zText variable is a NULL pointer.\n**\n** ^(The \"%w\" formatting option is like \"%q\" except that it expects to\n** be contained within double-quotes instead of single quotes, and it\n** escapes the double-quote character instead of the single-quote\n** character.)^  The \"%w\" formatting option is intended for safely inserting\n** table and column names into a constructed SQL statement.\n**\n** ^(The \"%z\" formatting option works like \"%s\" but with the\n** addition that after the string has been read and copied into\n** the result, [sqlite3_free()] is called on the input string.)^\n*/\nSQLITE_API char *sqlite3_mprintf(const char*,...);\nSQLITE_API char *sqlite3_vmprintf(const char*, va_list);\nSQLITE_API char *sqlite3_snprintf(int,char*,const char*, ...);\nSQLITE_API char *sqlite3_vsnprintf(int,char*,const char*, va_list);\n\n/*\n** CAPI3REF: Memory Allocation Subsystem\n**\n** The SQLite core uses these three routines for all of its own\n** internal memory allocation needs. \"Core\" in the previous sentence\n** does not include operating-system specific VFS implementation.  The\n** Windows VFS uses native malloc() and free() for some operations.\n**\n** ^The sqlite3_malloc() routine returns a pointer to a block\n** of memory at least N bytes in length, where N is the parameter.\n** ^If sqlite3_malloc() is unable to obtain sufficient free\n** memory, it returns a NULL pointer.  ^If the parameter N to\n** sqlite3_malloc() is zero or negative then sqlite3_malloc() returns\n** a NULL pointer.\n**\n** ^The sqlite3_malloc64(N) routine works just like\n** sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead\n** of a signed 32-bit integer.\n**\n** ^Calling sqlite3_free() with a pointer previously returned\n** by sqlite3_malloc() or sqlite3_realloc() releases that memory so\n** that it might be reused.  ^The sqlite3_free() routine is\n** a no-op if is called with a NULL pointer.  Passing a NULL pointer\n** to sqlite3_free() is harmless.  After being freed, memory\n** should neither be read nor written.  Even reading previously freed\n** memory might result in a segmentation fault or other severe error.\n** Memory corruption, a segmentation fault, or other severe error\n** might result if sqlite3_free() is called with a non-NULL pointer that\n** was not obtained from sqlite3_malloc() or sqlite3_realloc().\n**\n** ^The sqlite3_realloc(X,N) interface attempts to resize a\n** prior memory allocation X to be at least N bytes.\n** ^If the X parameter to sqlite3_realloc(X,N)\n** is a NULL pointer then its behavior is identical to calling\n** sqlite3_malloc(N).\n** ^If the N parameter to sqlite3_realloc(X,N) is zero or\n** negative then the behavior is exactly the same as calling\n** sqlite3_free(X).\n** ^sqlite3_realloc(X,N) returns a pointer to a memory allocation\n** of at least N bytes in size or NULL if insufficient memory is available.\n** ^If M is the size of the prior allocation, then min(N,M) bytes\n** of the prior allocation are copied into the beginning of buffer returned\n** by sqlite3_realloc(X,N) and the prior allocation is freed.\n** ^If sqlite3_realloc(X,N) returns NULL and N is positive, then the\n** prior allocation is not freed.\n**\n** ^The sqlite3_realloc64(X,N) interfaces works the same as\n** sqlite3_realloc(X,N) except that N is a 64-bit unsigned integer instead\n** of a 32-bit signed integer.\n**\n** ^If X is a memory allocation previously obtained from sqlite3_malloc(),\n** sqlite3_malloc64(), sqlite3_realloc(), or sqlite3_realloc64(), then\n** sqlite3_msize(X) returns the size of that memory allocation in bytes.\n** ^The value returned by sqlite3_msize(X) might be larger than the number\n** of bytes requested when X was allocated.  ^If X is a NULL pointer then\n** sqlite3_msize(X) returns zero.  If X points to something that is not\n** the beginning of memory allocation, or if it points to a formerly\n** valid memory allocation that has now been freed, then the behavior\n** of sqlite3_msize(X) is undefined and possibly harmful.\n**\n** ^The memory returned by sqlite3_malloc(), sqlite3_realloc(),\n** sqlite3_malloc64(), and sqlite3_realloc64()\n** is always aligned to at least an 8 byte boundary, or to a\n** 4 byte boundary if the [SQLITE_4_BYTE_ALIGNED_MALLOC] compile-time\n** option is used.\n**\n** In SQLite version 3.5.0 and 3.5.1, it was possible to define\n** the SQLITE_OMIT_MEMORY_ALLOCATION which would cause the built-in\n** implementation of these routines to be omitted.  That capability\n** is no longer provided.  Only built-in memory allocators can be used.\n**\n** Prior to SQLite version 3.7.10, the Windows OS interface layer called\n** the system malloc() and free() directly when converting\n** filenames between the UTF-8 encoding used by SQLite\n** and whatever filename encoding is used by the particular Windows\n** installation.  Memory allocation errors were detected, but\n** they were reported back as [SQLITE_CANTOPEN] or\n** [SQLITE_IOERR] rather than [SQLITE_NOMEM].\n**\n** The pointer arguments to [sqlite3_free()] and [sqlite3_realloc()]\n** must be either NULL or else pointers obtained from a prior\n** invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have\n** not yet been released.\n**\n** The application must not read or write any part of\n** a block of memory after it has been released using\n** [sqlite3_free()] or [sqlite3_realloc()].\n*/\nSQLITE_API void *sqlite3_malloc(int);\nSQLITE_API void *sqlite3_malloc64(sqlite3_uint64);\nSQLITE_API void *sqlite3_realloc(void*, int);\nSQLITE_API void *sqlite3_realloc64(void*, sqlite3_uint64);\nSQLITE_API void sqlite3_free(void*);\nSQLITE_API sqlite3_uint64 sqlite3_msize(void*);\n\n/*\n** CAPI3REF: Memory Allocator Statistics\n**\n** SQLite provides these two interfaces for reporting on the status\n** of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()]\n** routines, which form the built-in memory allocation subsystem.\n**\n** ^The [sqlite3_memory_used()] routine returns the number of bytes\n** of memory currently outstanding (malloced but not freed).\n** ^The [sqlite3_memory_highwater()] routine returns the maximum\n** value of [sqlite3_memory_used()] since the high-water mark\n** was last reset.  ^The values returned by [sqlite3_memory_used()] and\n** [sqlite3_memory_highwater()] include any overhead\n** added by SQLite in its implementation of [sqlite3_malloc()],\n** but not overhead added by the any underlying system library\n** routines that [sqlite3_malloc()] may call.\n**\n** ^The memory high-water mark is reset to the current value of\n** [sqlite3_memory_used()] if and only if the parameter to\n** [sqlite3_memory_highwater()] is true.  ^The value returned\n** by [sqlite3_memory_highwater(1)] is the high-water mark\n** prior to the reset.\n*/\nSQLITE_API sqlite3_int64 sqlite3_memory_used(void);\nSQLITE_API sqlite3_int64 sqlite3_memory_highwater(int resetFlag);\n\n/*\n** CAPI3REF: Pseudo-Random Number Generator\n**\n** SQLite contains a high-quality pseudo-random number generator (PRNG) used to\n** select random [ROWID | ROWIDs] when inserting new records into a table that\n** already uses the largest possible [ROWID].  The PRNG is also used for\n** the build-in random() and randomblob() SQL functions.  This interface allows\n** applications to access the same PRNG for other purposes.\n**\n** ^A call to this routine stores N bytes of randomness into buffer P.\n** ^The P parameter can be a NULL pointer.\n**\n** ^If this routine has not been previously called or if the previous\n** call had N less than one or a NULL pointer for P, then the PRNG is\n** seeded using randomness obtained from the xRandomness method of\n** the default [sqlite3_vfs] object.\n** ^If the previous call to this routine had an N of 1 or more and a\n** non-NULL P then the pseudo-randomness is generated\n** internally and without recourse to the [sqlite3_vfs] xRandomness\n** method.\n*/\nSQLITE_API void sqlite3_randomness(int N, void *P);\n\n/*\n** CAPI3REF: Compile-Time Authorization Callbacks\n** METHOD: sqlite3\n** KEYWORDS: {authorizer callback}\n**\n** ^This routine registers an authorizer callback with a particular\n** [database connection], supplied in the first argument.\n** ^The authorizer callback is invoked as SQL statements are being compiled\n** by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()],\n** [sqlite3_prepare_v3()], [sqlite3_prepare16()], [sqlite3_prepare16_v2()],\n** and [sqlite3_prepare16_v3()].  ^At various\n** points during the compilation process, as logic is being created\n** to perform various actions, the authorizer callback is invoked to\n** see if those actions are allowed.  ^The authorizer callback should\n** return [SQLITE_OK] to allow the action, [SQLITE_IGNORE] to disallow the\n** specific action but allow the SQL statement to continue to be\n** compiled, or [SQLITE_DENY] to cause the entire SQL statement to be\n** rejected with an error.  ^If the authorizer callback returns\n** any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY]\n** then the [sqlite3_prepare_v2()] or equivalent call that triggered\n** the authorizer will fail with an error message.\n**\n** When the callback returns [SQLITE_OK], that means the operation\n** requested is ok.  ^When the callback returns [SQLITE_DENY], the\n** [sqlite3_prepare_v2()] or equivalent call that triggered the\n** authorizer will fail with an error message explaining that\n** access is denied. \n**\n** ^The first parameter to the authorizer callback is a copy of the third\n** parameter to the sqlite3_set_authorizer() interface. ^The second parameter\n** to the callback is an integer [SQLITE_COPY | action code] that specifies\n** the particular action to be authorized. ^The third through sixth parameters\n** to the callback are either NULL pointers or zero-terminated strings\n** that contain additional details about the action to be authorized.\n** Applications must always be prepared to encounter a NULL pointer in any\n** of the third through the sixth parameters of the authorization callback.\n**\n** ^If the action code is [SQLITE_READ]\n** and the callback returns [SQLITE_IGNORE] then the\n** [prepared statement] statement is constructed to substitute\n** a NULL value in place of the table column that would have\n** been read if [SQLITE_OK] had been returned.  The [SQLITE_IGNORE]\n** return can be used to deny an untrusted user access to individual\n** columns of a table.\n** ^When a table is referenced by a [SELECT] but no column values are\n** extracted from that table (for example in a query like\n** \"SELECT count(*) FROM tab\") then the [SQLITE_READ] authorizer callback\n** is invoked once for that table with a column name that is an empty string.\n** ^If the action code is [SQLITE_DELETE] and the callback returns\n** [SQLITE_IGNORE] then the [DELETE] operation proceeds but the\n** [truncate optimization] is disabled and all rows are deleted individually.\n**\n** An authorizer is used when [sqlite3_prepare | preparing]\n** SQL statements from an untrusted source, to ensure that the SQL statements\n** do not try to access data they are not allowed to see, or that they do not\n** try to execute malicious statements that damage the database.  For\n** example, an application may allow a user to enter arbitrary\n** SQL queries for evaluation by a database.  But the application does\n** not want the user to be able to make arbitrary changes to the\n** database.  An authorizer could then be put in place while the\n** user-entered SQL is being [sqlite3_prepare | prepared] that\n** disallows everything except [SELECT] statements.\n**\n** Applications that need to process SQL from untrusted sources\n** might also consider lowering resource limits using [sqlite3_limit()]\n** and limiting database size using the [max_page_count] [PRAGMA]\n** in addition to using an authorizer.\n**\n** ^(Only a single authorizer can be in place on a database connection\n** at a time.  Each call to sqlite3_set_authorizer overrides the\n** previous call.)^  ^Disable the authorizer by installing a NULL callback.\n** The authorizer is disabled by default.\n**\n** The authorizer callback must not do anything that will modify\n** the database connection that invoked the authorizer callback.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^When [sqlite3_prepare_v2()] is used to prepare a statement, the\n** statement might be re-prepared during [sqlite3_step()] due to a \n** schema change.  Hence, the application should ensure that the\n** correct authorizer callback remains in place during the [sqlite3_step()].\n**\n** ^Note that the authorizer callback is invoked only during\n** [sqlite3_prepare()] or its variants.  Authorization is not\n** performed during statement evaluation in [sqlite3_step()], unless\n** as stated in the previous paragraph, sqlite3_step() invokes\n** sqlite3_prepare_v2() to reprepare a statement after a schema change.\n*/\nSQLITE_API int sqlite3_set_authorizer(\n  sqlite3*,\n  int (*xAuth)(void*,int,const char*,const char*,const char*,const char*),\n  void *pUserData\n);\n\n/*\n** CAPI3REF: Authorizer Return Codes\n**\n** The [sqlite3_set_authorizer | authorizer callback function] must\n** return either [SQLITE_OK] or one of these two constants in order\n** to signal SQLite whether or not the action is permitted.  See the\n** [sqlite3_set_authorizer | authorizer documentation] for additional\n** information.\n**\n** Note that SQLITE_IGNORE is also used as a [conflict resolution mode]\n** returned from the [sqlite3_vtab_on_conflict()] interface.\n*/\n#define SQLITE_DENY   1   /* Abort the SQL statement with an error */\n#define SQLITE_IGNORE 2   /* Don't allow access, but don't generate an error */\n\n/*\n** CAPI3REF: Authorizer Action Codes\n**\n** The [sqlite3_set_authorizer()] interface registers a callback function\n** that is invoked to authorize certain SQL statement actions.  The\n** second parameter to the callback is an integer code that specifies\n** what action is being authorized.  These are the integer action codes that\n** the authorizer callback may be passed.\n**\n** These action code values signify what kind of operation is to be\n** authorized.  The 3rd and 4th parameters to the authorization\n** callback function will be parameters or NULL depending on which of these\n** codes is used as the second parameter.  ^(The 5th parameter to the\n** authorizer callback is the name of the database (\"main\", \"temp\",\n** etc.) if applicable.)^  ^The 6th parameter to the authorizer callback\n** is the name of the inner-most trigger or view that is responsible for\n** the access attempt or NULL if this access attempt is directly from\n** top-level SQL code.\n*/\n/******************************************* 3rd ************ 4th ***********/\n#define SQLITE_CREATE_INDEX          1   /* Index Name      Table Name      */\n#define SQLITE_CREATE_TABLE          2   /* Table Name      NULL            */\n#define SQLITE_CREATE_TEMP_INDEX     3   /* Index Name      Table Name      */\n#define SQLITE_CREATE_TEMP_TABLE     4   /* Table Name      NULL            */\n#define SQLITE_CREATE_TEMP_TRIGGER   5   /* Trigger Name    Table Name      */\n#define SQLITE_CREATE_TEMP_VIEW      6   /* View Name       NULL            */\n#define SQLITE_CREATE_TRIGGER        7   /* Trigger Name    Table Name      */\n#define SQLITE_CREATE_VIEW           8   /* View Name       NULL            */\n#define SQLITE_DELETE                9   /* Table Name      NULL            */\n#define SQLITE_DROP_INDEX           10   /* Index Name      Table Name      */\n#define SQLITE_DROP_TABLE           11   /* Table Name      NULL            */\n#define SQLITE_DROP_TEMP_INDEX      12   /* Index Name      Table Name      */\n#define SQLITE_DROP_TEMP_TABLE      13   /* Table Name      NULL            */\n#define SQLITE_DROP_TEMP_TRIGGER    14   /* Trigger Name    Table Name      */\n#define SQLITE_DROP_TEMP_VIEW       15   /* View Name       NULL            */\n#define SQLITE_DROP_TRIGGER         16   /* Trigger Name    Table Name      */\n#define SQLITE_DROP_VIEW            17   /* View Name       NULL            */\n#define SQLITE_INSERT               18   /* Table Name      NULL            */\n#define SQLITE_PRAGMA               19   /* Pragma Name     1st arg or NULL */\n#define SQLITE_READ                 20   /* Table Name      Column Name     */\n#define SQLITE_SELECT               21   /* NULL            NULL            */\n#define SQLITE_TRANSACTION          22   /* Operation       NULL            */\n#define SQLITE_UPDATE               23   /* Table Name      Column Name     */\n#define SQLITE_ATTACH               24   /* Filename        NULL            */\n#define SQLITE_DETACH               25   /* Database Name   NULL            */\n#define SQLITE_ALTER_TABLE          26   /* Database Name   Table Name      */\n#define SQLITE_REINDEX              27   /* Index Name      NULL            */\n#define SQLITE_ANALYZE              28   /* Table Name      NULL            */\n#define SQLITE_CREATE_VTABLE        29   /* Table Name      Module Name     */\n#define SQLITE_DROP_VTABLE          30   /* Table Name      Module Name     */\n#define SQLITE_FUNCTION             31   /* NULL            Function Name   */\n#define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */\n#define SQLITE_COPY                  0   /* No longer used */\n#define SQLITE_RECURSIVE            33   /* NULL            NULL            */\n\n/*\n** CAPI3REF: Tracing And Profiling Functions\n** METHOD: sqlite3\n**\n** These routines are deprecated. Use the [sqlite3_trace_v2()] interface\n** instead of the routines described here.\n**\n** These routines register callback functions that can be used for\n** tracing and profiling the execution of SQL statements.\n**\n** ^The callback function registered by sqlite3_trace() is invoked at\n** various times when an SQL statement is being run by [sqlite3_step()].\n** ^The sqlite3_trace() callback is invoked with a UTF-8 rendering of the\n** SQL statement text as the statement first begins executing.\n** ^(Additional sqlite3_trace() callbacks might occur\n** as each triggered subprogram is entered.  The callbacks for triggers\n** contain a UTF-8 SQL comment that identifies the trigger.)^\n**\n** The [SQLITE_TRACE_SIZE_LIMIT] compile-time option can be used to limit\n** the length of [bound parameter] expansion in the output of sqlite3_trace().\n**\n** ^The callback function registered by sqlite3_profile() is invoked\n** as each SQL statement finishes.  ^The profile callback contains\n** the original statement text and an estimate of wall-clock time\n** of how long that statement took to run.  ^The profile callback\n** time is in units of nanoseconds, however the current implementation\n** is only capable of millisecond resolution so the six least significant\n** digits in the time are meaningless.  Future versions of SQLite\n** might provide greater resolution on the profiler callback.  The\n** sqlite3_profile() function is considered experimental and is\n** subject to change in future versions of SQLite.\n*/\nSQLITE_API SQLITE_DEPRECATED void *sqlite3_trace(sqlite3*,\n   void(*xTrace)(void*,const char*), void*);\nSQLITE_API SQLITE_DEPRECATED void *sqlite3_profile(sqlite3*,\n   void(*xProfile)(void*,const char*,sqlite3_uint64), void*);\n\n/*\n** CAPI3REF: SQL Trace Event Codes\n** KEYWORDS: SQLITE_TRACE\n**\n** These constants identify classes of events that can be monitored\n** using the [sqlite3_trace_v2()] tracing logic.  The M argument\n** to [sqlite3_trace_v2(D,M,X,P)] is an OR-ed combination of one or more of\n** the following constants.  ^The first argument to the trace callback\n** is one of the following constants.\n**\n** New tracing constants may be added in future releases.\n**\n** ^A trace callback has four arguments: xCallback(T,C,P,X).\n** ^The T argument is one of the integer type codes above.\n** ^The C argument is a copy of the context pointer passed in as the\n** fourth argument to [sqlite3_trace_v2()].\n** The P and X arguments are pointers whose meanings depend on T.\n**\n** <dl>\n** [[SQLITE_TRACE_STMT]] <dt>SQLITE_TRACE_STMT</dt>\n** <dd>^An SQLITE_TRACE_STMT callback is invoked when a prepared statement\n** first begins running and possibly at other times during the\n** execution of the prepared statement, such as at the start of each\n** trigger subprogram. ^The P argument is a pointer to the\n** [prepared statement]. ^The X argument is a pointer to a string which\n** is the unexpanded SQL text of the prepared statement or an SQL comment \n** that indicates the invocation of a trigger.  ^The callback can compute\n** the same text that would have been returned by the legacy [sqlite3_trace()]\n** interface by using the X argument when X begins with \"--\" and invoking\n** [sqlite3_expanded_sql(P)] otherwise.\n**\n** [[SQLITE_TRACE_PROFILE]] <dt>SQLITE_TRACE_PROFILE</dt>\n** <dd>^An SQLITE_TRACE_PROFILE callback provides approximately the same\n** information as is provided by the [sqlite3_profile()] callback.\n** ^The P argument is a pointer to the [prepared statement] and the\n** X argument points to a 64-bit integer which is the estimated of\n** the number of nanosecond that the prepared statement took to run.\n** ^The SQLITE_TRACE_PROFILE callback is invoked when the statement finishes.\n**\n** [[SQLITE_TRACE_ROW]] <dt>SQLITE_TRACE_ROW</dt>\n** <dd>^An SQLITE_TRACE_ROW callback is invoked whenever a prepared\n** statement generates a single row of result.  \n** ^The P argument is a pointer to the [prepared statement] and the\n** X argument is unused.\n**\n** [[SQLITE_TRACE_CLOSE]] <dt>SQLITE_TRACE_CLOSE</dt>\n** <dd>^An SQLITE_TRACE_CLOSE callback is invoked when a database\n** connection closes.\n** ^The P argument is a pointer to the [database connection] object\n** and the X argument is unused.\n** </dl>\n*/\n#define SQLITE_TRACE_STMT       0x01\n#define SQLITE_TRACE_PROFILE    0x02\n#define SQLITE_TRACE_ROW        0x04\n#define SQLITE_TRACE_CLOSE      0x08\n\n/*\n** CAPI3REF: SQL Trace Hook\n** METHOD: sqlite3\n**\n** ^The sqlite3_trace_v2(D,M,X,P) interface registers a trace callback\n** function X against [database connection] D, using property mask M\n** and context pointer P.  ^If the X callback is\n** NULL or if the M mask is zero, then tracing is disabled.  The\n** M argument should be the bitwise OR-ed combination of\n** zero or more [SQLITE_TRACE] constants.\n**\n** ^Each call to either sqlite3_trace() or sqlite3_trace_v2() overrides \n** (cancels) any prior calls to sqlite3_trace() or sqlite3_trace_v2().\n**\n** ^The X callback is invoked whenever any of the events identified by \n** mask M occur.  ^The integer return value from the callback is currently\n** ignored, though this may change in future releases.  Callback\n** implementations should return zero to ensure future compatibility.\n**\n** ^A trace callback is invoked with four arguments: callback(T,C,P,X).\n** ^The T argument is one of the [SQLITE_TRACE]\n** constants to indicate why the callback was invoked.\n** ^The C argument is a copy of the context pointer.\n** The P and X arguments are pointers whose meanings depend on T.\n**\n** The sqlite3_trace_v2() interface is intended to replace the legacy\n** interfaces [sqlite3_trace()] and [sqlite3_profile()], both of which\n** are deprecated.\n*/\nSQLITE_API int sqlite3_trace_v2(\n  sqlite3*,\n  unsigned uMask,\n  int(*xCallback)(unsigned,void*,void*,void*),\n  void *pCtx\n);\n\n/*\n** CAPI3REF: Query Progress Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_progress_handler(D,N,X,P) interface causes the callback\n** function X to be invoked periodically during long running calls to\n** [sqlite3_exec()], [sqlite3_step()] and [sqlite3_get_table()] for\n** database connection D.  An example use for this\n** interface is to keep a GUI updated during a large query.\n**\n** ^The parameter P is passed through as the only parameter to the \n** callback function X.  ^The parameter N is the approximate number of \n** [virtual machine instructions] that are evaluated between successive\n** invocations of the callback X.  ^If N is less than one then the progress\n** handler is disabled.\n**\n** ^Only a single progress handler may be defined at one time per\n** [database connection]; setting a new progress handler cancels the\n** old one.  ^Setting parameter X to NULL disables the progress handler.\n** ^The progress handler is also disabled by setting N to a value less\n** than 1.\n**\n** ^If the progress callback returns non-zero, the operation is\n** interrupted.  This feature can be used to implement a\n** \"Cancel\" button on a GUI progress dialog box.\n**\n** The progress handler callback must not do anything that will modify\n** the database connection that invoked the progress handler.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n*/\nSQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);\n\n/*\n** CAPI3REF: Opening A New Database Connection\n** CONSTRUCTOR: sqlite3\n**\n** ^These routines open an SQLite database file as specified by the \n** filename argument. ^The filename argument is interpreted as UTF-8 for\n** sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte\n** order for sqlite3_open16(). ^(A [database connection] handle is usually\n** returned in *ppDb, even if an error occurs.  The only exception is that\n** if SQLite is unable to allocate memory to hold the [sqlite3] object,\n** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]\n** object.)^ ^(If the database is opened (and/or created) successfully, then\n** [SQLITE_OK] is returned.  Otherwise an [error code] is returned.)^ ^The\n** [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain\n** an English language description of the error following a failure of any\n** of the sqlite3_open() routines.\n**\n** ^The default encoding will be UTF-8 for databases created using\n** sqlite3_open() or sqlite3_open_v2().  ^The default encoding for databases\n** created using sqlite3_open16() will be UTF-16 in the native byte order.\n**\n** Whether or not an error occurs when it is opened, resources\n** associated with the [database connection] handle should be released by\n** passing it to [sqlite3_close()] when it is no longer required.\n**\n** The sqlite3_open_v2() interface works like sqlite3_open()\n** except that it accepts two additional parameters for additional control\n** over the new database connection.  ^(The flags parameter to\n** sqlite3_open_v2() can take one of\n** the following three values, optionally combined with the \n** [SQLITE_OPEN_NOMUTEX], [SQLITE_OPEN_FULLMUTEX], [SQLITE_OPEN_SHAREDCACHE],\n** [SQLITE_OPEN_PRIVATECACHE], and/or [SQLITE_OPEN_URI] flags:)^\n**\n** <dl>\n** ^(<dt>[SQLITE_OPEN_READONLY]</dt>\n** <dd>The database is opened in read-only mode.  If the database does not\n** already exist, an error is returned.</dd>)^\n**\n** ^(<dt>[SQLITE_OPEN_READWRITE]</dt>\n** <dd>The database is opened for reading and writing if possible, or reading\n** only if the file is write protected by the operating system.  In either\n** case the database must already exist, otherwise an error is returned.</dd>)^\n**\n** ^(<dt>[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]</dt>\n** <dd>The database is opened for reading and writing, and is created if\n** it does not already exist. This is the behavior that is always used for\n** sqlite3_open() and sqlite3_open16().</dd>)^\n** </dl>\n**\n** If the 3rd parameter to sqlite3_open_v2() is not one of the\n** combinations shown above optionally combined with other\n** [SQLITE_OPEN_READONLY | SQLITE_OPEN_* bits]\n** then the behavior is undefined.\n**\n** ^If the [SQLITE_OPEN_NOMUTEX] flag is set, then the database connection\n** opens in the multi-thread [threading mode] as long as the single-thread\n** mode has not been set at compile-time or start-time.  ^If the\n** [SQLITE_OPEN_FULLMUTEX] flag is set then the database connection opens\n** in the serialized [threading mode] unless single-thread was\n** previously selected at compile-time or start-time.\n** ^The [SQLITE_OPEN_SHAREDCACHE] flag causes the database connection to be\n** eligible to use [shared cache mode], regardless of whether or not shared\n** cache is enabled using [sqlite3_enable_shared_cache()].  ^The\n** [SQLITE_OPEN_PRIVATECACHE] flag causes the database connection to not\n** participate in [shared cache mode] even if it is enabled.\n**\n** ^The fourth parameter to sqlite3_open_v2() is the name of the\n** [sqlite3_vfs] object that defines the operating system interface that\n** the new database connection should use.  ^If the fourth parameter is\n** a NULL pointer then the default [sqlite3_vfs] object is used.\n**\n** ^If the filename is \":memory:\", then a private, temporary in-memory database\n** is created for the connection.  ^This in-memory database will vanish when\n** the database connection is closed.  Future versions of SQLite might\n** make use of additional special filenames that begin with the \":\" character.\n** It is recommended that when a database filename actually does begin with\n** a \":\" character you should prefix the filename with a pathname such as\n** \"./\" to avoid ambiguity.\n**\n** ^If the filename is an empty string, then a private, temporary\n** on-disk database will be created.  ^This private database will be\n** automatically deleted as soon as the database connection is closed.\n**\n** [[URI filenames in sqlite3_open()]] <h3>URI Filenames</h3>\n**\n** ^If [URI filename] interpretation is enabled, and the filename argument\n** begins with \"file:\", then the filename is interpreted as a URI. ^URI\n** filename interpretation is enabled if the [SQLITE_OPEN_URI] flag is\n** set in the third argument to sqlite3_open_v2(), or if it has\n** been enabled globally using the [SQLITE_CONFIG_URI] option with the\n** [sqlite3_config()] method or by the [SQLITE_USE_URI] compile-time option.\n** URI filename interpretation is turned off\n** by default, but future releases of SQLite might enable URI filename\n** interpretation by default.  See \"[URI filenames]\" for additional\n** information.\n**\n** URI filenames are parsed according to RFC 3986. ^If the URI contains an\n** authority, then it must be either an empty string or the string \n** \"localhost\". ^If the authority is not an empty string or \"localhost\", an \n** error is returned to the caller. ^The fragment component of a URI, if \n** present, is ignored.\n**\n** ^SQLite uses the path component of the URI as the name of the disk file\n** which contains the database. ^If the path begins with a '/' character, \n** then it is interpreted as an absolute path. ^If the path does not begin \n** with a '/' (meaning that the authority section is omitted from the URI)\n** then the path is interpreted as a relative path. \n** ^(On windows, the first component of an absolute path \n** is a drive specification (e.g. \"C:\").)^\n**\n** [[core URI query parameters]]\n** The query component of a URI may contain parameters that are interpreted\n** either by SQLite itself, or by a [VFS | custom VFS implementation].\n** SQLite and its built-in [VFSes] interpret the\n** following query parameters:\n**\n** <ul>\n**   <li> <b>vfs</b>: ^The \"vfs\" parameter may be used to specify the name of\n**     a VFS object that provides the operating system interface that should\n**     be used to access the database file on disk. ^If this option is set to\n**     an empty string the default VFS object is used. ^Specifying an unknown\n**     VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is\n**     present, then the VFS specified by the option takes precedence over\n**     the value passed as the fourth parameter to sqlite3_open_v2().\n**\n**   <li> <b>mode</b>: ^(The mode parameter may be set to either \"ro\", \"rw\",\n**     \"rwc\", or \"memory\". Attempting to set it to any other value is\n**     an error)^. \n**     ^If \"ro\" is specified, then the database is opened for read-only \n**     access, just as if the [SQLITE_OPEN_READONLY] flag had been set in the \n**     third argument to sqlite3_open_v2(). ^If the mode option is set to \n**     \"rw\", then the database is opened for read-write (but not create) \n**     access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had \n**     been set. ^Value \"rwc\" is equivalent to setting both \n**     SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE.  ^If the mode option is\n**     set to \"memory\" then a pure [in-memory database] that never reads\n**     or writes from disk is used. ^It is an error to specify a value for\n**     the mode parameter that is less restrictive than that specified by\n**     the flags passed in the third parameter to sqlite3_open_v2().\n**\n**   <li> <b>cache</b>: ^The cache parameter may be set to either \"shared\" or\n**     \"private\". ^Setting it to \"shared\" is equivalent to setting the\n**     SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to\n**     sqlite3_open_v2(). ^Setting the cache parameter to \"private\" is \n**     equivalent to setting the SQLITE_OPEN_PRIVATECACHE bit.\n**     ^If sqlite3_open_v2() is used and the \"cache\" parameter is present in\n**     a URI filename, its value overrides any behavior requested by setting\n**     SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag.\n**\n**  <li> <b>psow</b>: ^The psow parameter indicates whether or not the\n**     [powersafe overwrite] property does or does not apply to the\n**     storage media on which the database file resides.\n**\n**  <li> <b>nolock</b>: ^The nolock parameter is a boolean query parameter\n**     which if set disables file locking in rollback journal modes.  This\n**     is useful for accessing a database on a filesystem that does not\n**     support locking.  Caution:  Database corruption might result if two\n**     or more processes write to the same database and any one of those\n**     processes uses nolock=1.\n**\n**  <li> <b>immutable</b>: ^The immutable parameter is a boolean query\n**     parameter that indicates that the database file is stored on\n**     read-only media.  ^When immutable is set, SQLite assumes that the\n**     database file cannot be changed, even by a process with higher\n**     privilege, and so the database is opened read-only and all locking\n**     and change detection is disabled.  Caution: Setting the immutable\n**     property on a database file that does in fact change can result\n**     in incorrect query results and/or [SQLITE_CORRUPT] errors.\n**     See also: [SQLITE_IOCAP_IMMUTABLE].\n**       \n** </ul>\n**\n** ^Specifying an unknown parameter in the query component of a URI is not an\n** error.  Future versions of SQLite might understand additional query\n** parameters.  See \"[query parameters with special meaning to SQLite]\" for\n** additional information.\n**\n** [[URI filename examples]] <h3>URI filename examples</h3>\n**\n** <table border=\"1\" align=center cellpadding=5>\n** <tr><th> URI filenames <th> Results\n** <tr><td> file:data.db <td> \n**          Open the file \"data.db\" in the current directory.\n** <tr><td> file:/home/fred/data.db<br>\n**          file:///home/fred/data.db <br> \n**          file://localhost/home/fred/data.db <br> <td> \n**          Open the database file \"/home/fred/data.db\".\n** <tr><td> file://darkstar/home/fred/data.db <td> \n**          An error. \"darkstar\" is not a recognized authority.\n** <tr><td style=\"white-space:nowrap\"> \n**          file:///C:/Documents%20and%20Settings/fred/Desktop/data.db\n**     <td> Windows only: Open the file \"data.db\" on fred's desktop on drive\n**          C:. Note that the %20 escaping in this example is not strictly \n**          necessary - space characters can be used literally\n**          in URI filenames.\n** <tr><td> file:data.db?mode=ro&cache=private <td> \n**          Open file \"data.db\" in the current directory for read-only access.\n**          Regardless of whether or not shared-cache mode is enabled by\n**          default, use a private cache.\n** <tr><td> file:/home/fred/data.db?vfs=unix-dotfile <td>\n**          Open file \"/home/fred/data.db\". Use the special VFS \"unix-dotfile\"\n**          that uses dot-files in place of posix advisory locking.\n** <tr><td> file:data.db?mode=readonly <td> \n**          An error. \"readonly\" is not a valid option for the \"mode\" parameter.\n** </table>\n**\n** ^URI hexadecimal escape sequences (%HH) are supported within the path and\n** query components of a URI. A hexadecimal escape sequence consists of a\n** percent sign - \"%\" - followed by exactly two hexadecimal digits \n** specifying an octet value. ^Before the path or query components of a\n** URI filename are interpreted, they are encoded using UTF-8 and all \n** hexadecimal escape sequences replaced by a single byte containing the\n** corresponding octet. If this process generates an invalid UTF-8 encoding,\n** the results are undefined.\n**\n** <b>Note to Windows users:</b>  The encoding used for the filename argument\n** of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever\n** codepage is currently defined.  Filenames containing international\n** characters must be converted to UTF-8 prior to passing them into\n** sqlite3_open() or sqlite3_open_v2().\n**\n** <b>Note to Windows Runtime users:</b>  The temporary directory must be set\n** prior to calling sqlite3_open() or sqlite3_open_v2().  Otherwise, various\n** features that require the use of temporary files may fail.\n**\n** See also: [sqlite3_temp_directory]\n*/\nSQLITE_API int sqlite3_open(\n  const char *filename,   /* Database filename (UTF-8) */\n  sqlite3 **ppDb          /* OUT: SQLite db handle */\n);\nSQLITE_API int sqlite3_open16(\n  const void *filename,   /* Database filename (UTF-16) */\n  sqlite3 **ppDb          /* OUT: SQLite db handle */\n);\nSQLITE_API int sqlite3_open_v2(\n  const char *filename,   /* Database filename (UTF-8) */\n  sqlite3 **ppDb,         /* OUT: SQLite db handle */\n  int flags,              /* Flags */\n  const char *zVfs        /* Name of VFS module to use */\n);\n\n/*\n** CAPI3REF: Obtain Values For URI Parameters\n**\n** These are utility routines, useful to VFS implementations, that check\n** to see if a database file was a URI that contained a specific query \n** parameter, and if so obtains the value of that query parameter.\n**\n** If F is the database filename pointer passed into the xOpen() method of \n** a VFS implementation when the flags parameter to xOpen() has one or \n** more of the [SQLITE_OPEN_URI] or [SQLITE_OPEN_MAIN_DB] bits set and\n** P is the name of the query parameter, then\n** sqlite3_uri_parameter(F,P) returns the value of the P\n** parameter if it exists or a NULL pointer if P does not appear as a \n** query parameter on F.  If P is a query parameter of F\n** has no explicit value, then sqlite3_uri_parameter(F,P) returns\n** a pointer to an empty string.\n**\n** The sqlite3_uri_boolean(F,P,B) routine assumes that P is a boolean\n** parameter and returns true (1) or false (0) according to the value\n** of P.  The sqlite3_uri_boolean(F,P,B) routine returns true (1) if the\n** value of query parameter P is one of \"yes\", \"true\", or \"on\" in any\n** case or if the value begins with a non-zero number.  The \n** sqlite3_uri_boolean(F,P,B) routines returns false (0) if the value of\n** query parameter P is one of \"no\", \"false\", or \"off\" in any case or\n** if the value begins with a numeric zero.  If P is not a query\n** parameter on F or if the value of P is does not match any of the\n** above, then sqlite3_uri_boolean(F,P,B) returns (B!=0).\n**\n** The sqlite3_uri_int64(F,P,D) routine converts the value of P into a\n** 64-bit signed integer and returns that integer, or D if P does not\n** exist.  If the value of P is something other than an integer, then\n** zero is returned.\n** \n** If F is a NULL pointer, then sqlite3_uri_parameter(F,P) returns NULL and\n** sqlite3_uri_boolean(F,P,B) returns B.  If F is not a NULL pointer and\n** is not a database file pathname pointer that SQLite passed into the xOpen\n** VFS method, then the behavior of this routine is undefined and probably\n** undesirable.\n*/\nSQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam);\nSQLITE_API int sqlite3_uri_boolean(const char *zFile, const char *zParam, int bDefault);\nSQLITE_API sqlite3_int64 sqlite3_uri_int64(const char*, const char*, sqlite3_int64);\n\n\n/*\n** CAPI3REF: Error Codes And Messages\n** METHOD: sqlite3\n**\n** ^If the most recent sqlite3_* API call associated with \n** [database connection] D failed, then the sqlite3_errcode(D) interface\n** returns the numeric [result code] or [extended result code] for that\n** API call.\n** If the most recent API call was successful,\n** then the return value from sqlite3_errcode() is undefined.\n** ^The sqlite3_extended_errcode()\n** interface is the same except that it always returns the \n** [extended result code] even when extended result codes are\n** disabled.\n**\n** ^The sqlite3_errmsg() and sqlite3_errmsg16() return English-language\n** text that describes the error, as either UTF-8 or UTF-16 respectively.\n** ^(Memory to hold the error message string is managed internally.\n** The application does not need to worry about freeing the result.\n** However, the error string might be overwritten or deallocated by\n** subsequent calls to other SQLite interface functions.)^\n**\n** ^The sqlite3_errstr() interface returns the English-language text\n** that describes the [result code], as UTF-8.\n** ^(Memory to hold the error message string is managed internally\n** and must not be freed by the application)^.\n**\n** When the serialized [threading mode] is in use, it might be the\n** case that a second error occurs on a separate thread in between\n** the time of the first error and the call to these interfaces.\n** When that happens, the second error will be reported since these\n** interfaces always report the most recent result.  To avoid\n** this, each thread can obtain exclusive use of the [database connection] D\n** by invoking [sqlite3_mutex_enter]([sqlite3_db_mutex](D)) before beginning\n** to use D and invoking [sqlite3_mutex_leave]([sqlite3_db_mutex](D)) after\n** all calls to the interfaces listed here are completed.\n**\n** If an interface fails with SQLITE_MISUSE, that means the interface\n** was invoked incorrectly by the application.  In that case, the\n** error code and message may or may not be set.\n*/\nSQLITE_API int sqlite3_errcode(sqlite3 *db);\nSQLITE_API int sqlite3_extended_errcode(sqlite3 *db);\nSQLITE_API const char *sqlite3_errmsg(sqlite3*);\nSQLITE_API const void *sqlite3_errmsg16(sqlite3*);\nSQLITE_API const char *sqlite3_errstr(int);\n\n/*\n** CAPI3REF: Prepared Statement Object\n** KEYWORDS: {prepared statement} {prepared statements}\n**\n** An instance of this object represents a single SQL statement that\n** has been compiled into binary form and is ready to be evaluated.\n**\n** Think of each SQL statement as a separate computer program.  The\n** original SQL text is source code.  A prepared statement object \n** is the compiled object code.  All SQL must be converted into a\n** prepared statement before it can be run.\n**\n** The life-cycle of a prepared statement object usually goes like this:\n**\n** <ol>\n** <li> Create the prepared statement object using [sqlite3_prepare_v2()].\n** <li> Bind values to [parameters] using the sqlite3_bind_*()\n**      interfaces.\n** <li> Run the SQL by calling [sqlite3_step()] one or more times.\n** <li> Reset the prepared statement using [sqlite3_reset()] then go back\n**      to step 2.  Do this zero or more times.\n** <li> Destroy the object using [sqlite3_finalize()].\n** </ol>\n*/\ntypedef struct sqlite3_stmt sqlite3_stmt;\n\n/*\n** CAPI3REF: Run-time Limits\n** METHOD: sqlite3\n**\n** ^(This interface allows the size of various constructs to be limited\n** on a connection by connection basis.  The first parameter is the\n** [database connection] whose limit is to be set or queried.  The\n** second parameter is one of the [limit categories] that define a\n** class of constructs to be size limited.  The third parameter is the\n** new limit for that construct.)^\n**\n** ^If the new limit is a negative number, the limit is unchanged.\n** ^(For each limit category SQLITE_LIMIT_<i>NAME</i> there is a \n** [limits | hard upper bound]\n** set at compile-time by a C preprocessor macro called\n** [limits | SQLITE_MAX_<i>NAME</i>].\n** (The \"_LIMIT_\" in the name is changed to \"_MAX_\".))^\n** ^Attempts to increase a limit above its hard upper bound are\n** silently truncated to the hard upper bound.\n**\n** ^Regardless of whether or not the limit was changed, the \n** [sqlite3_limit()] interface returns the prior value of the limit.\n** ^Hence, to find the current value of a limit without changing it,\n** simply invoke this interface with the third parameter set to -1.\n**\n** Run-time limits are intended for use in applications that manage\n** both their own internal database and also databases that are controlled\n** by untrusted external sources.  An example application might be a\n** web browser that has its own databases for storing history and\n** separate databases controlled by JavaScript applications downloaded\n** off the Internet.  The internal databases can be given the\n** large, default limits.  Databases managed by external sources can\n** be given much smaller limits designed to prevent a denial of service\n** attack.  Developers might also want to use the [sqlite3_set_authorizer()]\n** interface to further control untrusted SQL.  The size of the database\n** created by an untrusted script can be contained using the\n** [max_page_count] [PRAGMA].\n**\n** New run-time limit categories may be added in future releases.\n*/\nSQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);\n\n/*\n** CAPI3REF: Run-Time Limit Categories\n** KEYWORDS: {limit category} {*limit categories}\n**\n** These constants define various performance limits\n** that can be lowered at run-time using [sqlite3_limit()].\n** The synopsis of the meanings of the various limits is shown below.\n** Additional information is available at [limits | Limits in SQLite].\n**\n** <dl>\n** [[SQLITE_LIMIT_LENGTH]] ^(<dt>SQLITE_LIMIT_LENGTH</dt>\n** <dd>The maximum size of any string or BLOB or table row, in bytes.<dd>)^\n**\n** [[SQLITE_LIMIT_SQL_LENGTH]] ^(<dt>SQLITE_LIMIT_SQL_LENGTH</dt>\n** <dd>The maximum length of an SQL statement, in bytes.</dd>)^\n**\n** [[SQLITE_LIMIT_COLUMN]] ^(<dt>SQLITE_LIMIT_COLUMN</dt>\n** <dd>The maximum number of columns in a table definition or in the\n** result set of a [SELECT] or the maximum number of columns in an index\n** or in an ORDER BY or GROUP BY clause.</dd>)^\n**\n** [[SQLITE_LIMIT_EXPR_DEPTH]] ^(<dt>SQLITE_LIMIT_EXPR_DEPTH</dt>\n** <dd>The maximum depth of the parse tree on any expression.</dd>)^\n**\n** [[SQLITE_LIMIT_COMPOUND_SELECT]] ^(<dt>SQLITE_LIMIT_COMPOUND_SELECT</dt>\n** <dd>The maximum number of terms in a compound SELECT statement.</dd>)^\n**\n** [[SQLITE_LIMIT_VDBE_OP]] ^(<dt>SQLITE_LIMIT_VDBE_OP</dt>\n** <dd>The maximum number of instructions in a virtual machine program\n** used to implement an SQL statement.  If [sqlite3_prepare_v2()] or\n** the equivalent tries to allocate space for more than this many opcodes\n** in a single prepared statement, an SQLITE_NOMEM error is returned.</dd>)^\n**\n** [[SQLITE_LIMIT_FUNCTION_ARG]] ^(<dt>SQLITE_LIMIT_FUNCTION_ARG</dt>\n** <dd>The maximum number of arguments on a function.</dd>)^\n**\n** [[SQLITE_LIMIT_ATTACHED]] ^(<dt>SQLITE_LIMIT_ATTACHED</dt>\n** <dd>The maximum number of [ATTACH | attached databases].)^</dd>\n**\n** [[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]]\n** ^(<dt>SQLITE_LIMIT_LIKE_PATTERN_LENGTH</dt>\n** <dd>The maximum length of the pattern argument to the [LIKE] or\n** [GLOB] operators.</dd>)^\n**\n** [[SQLITE_LIMIT_VARIABLE_NUMBER]]\n** ^(<dt>SQLITE_LIMIT_VARIABLE_NUMBER</dt>\n** <dd>The maximum index number of any [parameter] in an SQL statement.)^\n**\n** [[SQLITE_LIMIT_TRIGGER_DEPTH]] ^(<dt>SQLITE_LIMIT_TRIGGER_DEPTH</dt>\n** <dd>The maximum depth of recursion for triggers.</dd>)^\n**\n** [[SQLITE_LIMIT_WORKER_THREADS]] ^(<dt>SQLITE_LIMIT_WORKER_THREADS</dt>\n** <dd>The maximum number of auxiliary worker threads that a single\n** [prepared statement] may start.</dd>)^\n** </dl>\n*/\n#define SQLITE_LIMIT_LENGTH                    0\n#define SQLITE_LIMIT_SQL_LENGTH                1\n#define SQLITE_LIMIT_COLUMN                    2\n#define SQLITE_LIMIT_EXPR_DEPTH                3\n#define SQLITE_LIMIT_COMPOUND_SELECT           4\n#define SQLITE_LIMIT_VDBE_OP                   5\n#define SQLITE_LIMIT_FUNCTION_ARG              6\n#define SQLITE_LIMIT_ATTACHED                  7\n#define SQLITE_LIMIT_LIKE_PATTERN_LENGTH       8\n#define SQLITE_LIMIT_VARIABLE_NUMBER           9\n#define SQLITE_LIMIT_TRIGGER_DEPTH            10\n#define SQLITE_LIMIT_WORKER_THREADS           11\n\n/*\n** CAPI3REF: Prepare Flags\n**\n** These constants define various flags that can be passed into\n** \"prepFlags\" parameter of the [sqlite3_prepare_v3()] and\n** [sqlite3_prepare16_v3()] interfaces.\n**\n** New flags may be added in future releases of SQLite.\n**\n** <dl>\n** [[SQLITE_PREPARE_PERSISTENT]] ^(<dt>SQLITE_PREPARE_PERSISTENT</dt>\n** <dd>The SQLITE_PREPARE_PERSISTENT flag is a hint to the query planner\n** that the prepared statement will be retained for a long time and\n** probably reused many times.)^ ^Without this flag, [sqlite3_prepare_v3()]\n** and [sqlite3_prepare16_v3()] assume that the prepared statement will \n** be used just once or at most a few times and then destroyed using\n** [sqlite3_finalize()] relatively soon. The current implementation acts\n** on this hint by avoiding the use of [lookaside memory] so as not to\n** deplete the limited store of lookaside memory. Future versions of\n** SQLite may act on this hint differently.\n** </dl>\n*/\n#define SQLITE_PREPARE_PERSISTENT              0x01\n\n/*\n** CAPI3REF: Compiling An SQL Statement\n** KEYWORDS: {SQL statement compiler}\n** METHOD: sqlite3\n** CONSTRUCTOR: sqlite3_stmt\n**\n** To execute an SQL statement, it must first be compiled into a byte-code\n** program using one of these routines.  Or, in other words, these routines\n** are constructors for the [prepared statement] object.\n**\n** The preferred routine to use is [sqlite3_prepare_v2()].  The\n** [sqlite3_prepare()] interface is legacy and should be avoided.\n** [sqlite3_prepare_v3()] has an extra \"prepFlags\" option that is used\n** for special purposes.\n**\n** The use of the UTF-8 interfaces is preferred, as SQLite currently\n** does all parsing using UTF-8.  The UTF-16 interfaces are provided\n** as a convenience.  The UTF-16 interfaces work by converting the\n** input text into UTF-8, then invoking the corresponding UTF-8 interface.\n**\n** The first argument, \"db\", is a [database connection] obtained from a\n** prior successful call to [sqlite3_open()], [sqlite3_open_v2()] or\n** [sqlite3_open16()].  The database connection must not have been closed.\n**\n** The second argument, \"zSql\", is the statement to be compiled, encoded\n** as either UTF-8 or UTF-16.  The sqlite3_prepare(), sqlite3_prepare_v2(),\n** and sqlite3_prepare_v3()\n** interfaces use UTF-8, and sqlite3_prepare16(), sqlite3_prepare16_v2(),\n** and sqlite3_prepare16_v3() use UTF-16.\n**\n** ^If the nByte argument is negative, then zSql is read up to the\n** first zero terminator. ^If nByte is positive, then it is the\n** number of bytes read from zSql.  ^If nByte is zero, then no prepared\n** statement is generated.\n** If the caller knows that the supplied string is nul-terminated, then\n** there is a small performance advantage to passing an nByte parameter that\n** is the number of bytes in the input string <i>including</i>\n** the nul-terminator.\n**\n** ^If pzTail is not NULL then *pzTail is made to point to the first byte\n** past the end of the first SQL statement in zSql.  These routines only\n** compile the first statement in zSql, so *pzTail is left pointing to\n** what remains uncompiled.\n**\n** ^*ppStmt is left pointing to a compiled [prepared statement] that can be\n** executed using [sqlite3_step()].  ^If there is an error, *ppStmt is set\n** to NULL.  ^If the input text contains no SQL (if the input is an empty\n** string or a comment) then *ppStmt is set to NULL.\n** The calling procedure is responsible for deleting the compiled\n** SQL statement using [sqlite3_finalize()] after it has finished with it.\n** ppStmt may not be NULL.\n**\n** ^On success, the sqlite3_prepare() family of routines return [SQLITE_OK];\n** otherwise an [error code] is returned.\n**\n** The sqlite3_prepare_v2(), sqlite3_prepare_v3(), sqlite3_prepare16_v2(),\n** and sqlite3_prepare16_v3() interfaces are recommended for all new programs.\n** The older interfaces (sqlite3_prepare() and sqlite3_prepare16())\n** are retained for backwards compatibility, but their use is discouraged.\n** ^In the \"vX\" interfaces, the prepared statement\n** that is returned (the [sqlite3_stmt] object) contains a copy of the\n** original SQL text. This causes the [sqlite3_step()] interface to\n** behave differently in three ways:\n**\n** <ol>\n** <li>\n** ^If the database schema changes, instead of returning [SQLITE_SCHEMA] as it\n** always used to do, [sqlite3_step()] will automatically recompile the SQL\n** statement and try to run it again. As many as [SQLITE_MAX_SCHEMA_RETRY]\n** retries will occur before sqlite3_step() gives up and returns an error.\n** </li>\n**\n** <li>\n** ^When an error occurs, [sqlite3_step()] will return one of the detailed\n** [error codes] or [extended error codes].  ^The legacy behavior was that\n** [sqlite3_step()] would only return a generic [SQLITE_ERROR] result code\n** and the application would have to make a second call to [sqlite3_reset()]\n** in order to find the underlying cause of the problem. With the \"v2\" prepare\n** interfaces, the underlying reason for the error is returned immediately.\n** </li>\n**\n** <li>\n** ^If the specific value bound to [parameter | host parameter] in the \n** WHERE clause might influence the choice of query plan for a statement,\n** then the statement will be automatically recompiled, as if there had been \n** a schema change, on the first  [sqlite3_step()] call following any change\n** to the [sqlite3_bind_text | bindings] of that [parameter]. \n** ^The specific value of WHERE-clause [parameter] might influence the \n** choice of query plan if the parameter is the left-hand side of a [LIKE]\n** or [GLOB] operator or if the parameter is compared to an indexed column\n** and the [SQLITE_ENABLE_STAT3] compile-time option is enabled.\n** </li>\n**\n** <p>^sqlite3_prepare_v3() differs from sqlite3_prepare_v2() only in having\n** the extra prepFlags parameter, which is a bit array consisting of zero or\n** more of the [SQLITE_PREPARE_PERSISTENT|SQLITE_PREPARE_*] flags.  ^The\n** sqlite3_prepare_v2() interface works exactly the same as\n** sqlite3_prepare_v3() with a zero prepFlags parameter.\n** </ol>\n*/\nSQLITE_API int sqlite3_prepare(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare_v2(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare_v3(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16_v2(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16_v3(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\n\n/*\n** CAPI3REF: Retrieving Statement SQL\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_sql(P) interface returns a pointer to a copy of the UTF-8\n** SQL text used to create [prepared statement] P if P was\n** created by [sqlite3_prepare_v2()], [sqlite3_prepare_v3()],\n** [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()].\n** ^The sqlite3_expanded_sql(P) interface returns a pointer to a UTF-8\n** string containing the SQL text of prepared statement P with\n** [bound parameters] expanded.\n**\n** ^(For example, if a prepared statement is created using the SQL\n** text \"SELECT $abc,:xyz\" and if parameter $abc is bound to integer 2345\n** and parameter :xyz is unbound, then sqlite3_sql() will return\n** the original string, \"SELECT $abc,:xyz\" but sqlite3_expanded_sql()\n** will return \"SELECT 2345,NULL\".)^\n**\n** ^The sqlite3_expanded_sql() interface returns NULL if insufficient memory\n** is available to hold the result, or if the result would exceed the\n** the maximum string length determined by the [SQLITE_LIMIT_LENGTH].\n**\n** ^The [SQLITE_TRACE_SIZE_LIMIT] compile-time option limits the size of\n** bound parameter expansions.  ^The [SQLITE_OMIT_TRACE] compile-time\n** option causes sqlite3_expanded_sql() to always return NULL.\n**\n** ^The string returned by sqlite3_sql(P) is managed by SQLite and is\n** automatically freed when the prepared statement is finalized.\n** ^The string returned by sqlite3_expanded_sql(P), on the other hand,\n** is obtained from [sqlite3_malloc()] and must be free by the application\n** by passing it to [sqlite3_free()].\n*/\nSQLITE_API const char *sqlite3_sql(sqlite3_stmt *pStmt);\nSQLITE_API char *sqlite3_expanded_sql(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Determine If An SQL Statement Writes The Database\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if\n** and only if the [prepared statement] X makes no direct changes to\n** the content of the database file.\n**\n** Note that [application-defined SQL functions] or\n** [virtual tables] might change the database indirectly as a side effect.  \n** ^(For example, if an application defines a function \"eval()\" that \n** calls [sqlite3_exec()], then the following SQL statement would\n** change the database file through side-effects:\n**\n** <blockquote><pre>\n**    SELECT eval('DELETE FROM t1') FROM t2;\n** </pre></blockquote>\n**\n** But because the [SELECT] statement does not change the database file\n** directly, sqlite3_stmt_readonly() would still return true.)^\n**\n** ^Transaction control statements such as [BEGIN], [COMMIT], [ROLLBACK],\n** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,\n** since the statements themselves do not actually modify the database but\n** rather they control the timing of when other statements modify the \n** database.  ^The [ATTACH] and [DETACH] statements also cause\n** sqlite3_stmt_readonly() to return true since, while those statements\n** change the configuration of a database connection, they do not make \n** changes to the content of the database files on disk.\n** ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since\n** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and\n** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so\n** sqlite3_stmt_readonly() returns false for those commands.\n*/\nSQLITE_API int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Determine If A Prepared Statement Has Been Reset\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_stmt_busy(S) interface returns true (non-zero) if the\n** [prepared statement] S has been stepped at least once using \n** [sqlite3_step(S)] but has neither run to completion (returned\n** [SQLITE_DONE] from [sqlite3_step(S)]) nor\n** been reset using [sqlite3_reset(S)].  ^The sqlite3_stmt_busy(S)\n** interface returns false if S is a NULL pointer.  If S is not a \n** NULL pointer and is not a pointer to a valid [prepared statement]\n** object, then the behavior is undefined and probably undesirable.\n**\n** This interface can be used in combination [sqlite3_next_stmt()]\n** to locate all prepared statements associated with a database \n** connection that are in need of being reset.  This can be used,\n** for example, in diagnostic routines to search for prepared \n** statements that are holding a transaction open.\n*/\nSQLITE_API int sqlite3_stmt_busy(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Dynamically Typed Value Object\n** KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}\n**\n** SQLite uses the sqlite3_value object to represent all values\n** that can be stored in a database table. SQLite uses dynamic typing\n** for the values it stores.  ^Values stored in sqlite3_value objects\n** can be integers, floating point values, strings, BLOBs, or NULL.\n**\n** An sqlite3_value object may be either \"protected\" or \"unprotected\".\n** Some interfaces require a protected sqlite3_value.  Other interfaces\n** will accept either a protected or an unprotected sqlite3_value.\n** Every interface that accepts sqlite3_value arguments specifies\n** whether or not it requires a protected sqlite3_value.  The\n** [sqlite3_value_dup()] interface can be used to construct a new \n** protected sqlite3_value from an unprotected sqlite3_value.\n**\n** The terms \"protected\" and \"unprotected\" refer to whether or not\n** a mutex is held.  An internal mutex is held for a protected\n** sqlite3_value object but no mutex is held for an unprotected\n** sqlite3_value object.  If SQLite is compiled to be single-threaded\n** (with [SQLITE_THREADSAFE=0] and with [sqlite3_threadsafe()] returning 0)\n** or if SQLite is run in one of reduced mutex modes \n** [SQLITE_CONFIG_SINGLETHREAD] or [SQLITE_CONFIG_MULTITHREAD]\n** then there is no distinction between protected and unprotected\n** sqlite3_value objects and they can be used interchangeably.  However,\n** for maximum code portability it is recommended that applications\n** still make the distinction between protected and unprotected\n** sqlite3_value objects even when not strictly required.\n**\n** ^The sqlite3_value objects that are passed as parameters into the\n** implementation of [application-defined SQL functions] are protected.\n** ^The sqlite3_value object returned by\n** [sqlite3_column_value()] is unprotected.\n** Unprotected sqlite3_value objects may only be used as arguments\n** to [sqlite3_result_value()], [sqlite3_bind_value()], and\n** [sqlite3_value_dup()].\n** The [sqlite3_value_blob | sqlite3_value_type()] family of\n** interfaces require protected sqlite3_value objects.\n*/\ntypedef struct sqlite3_value sqlite3_value;\n\n/*\n** CAPI3REF: SQL Function Context Object\n**\n** The context in which an SQL function executes is stored in an\n** sqlite3_context object.  ^A pointer to an sqlite3_context object\n** is always first parameter to [application-defined SQL functions].\n** The application-defined SQL function implementation will pass this\n** pointer through into calls to [sqlite3_result_int | sqlite3_result()],\n** [sqlite3_aggregate_context()], [sqlite3_user_data()],\n** [sqlite3_context_db_handle()], [sqlite3_get_auxdata()],\n** and/or [sqlite3_set_auxdata()].\n*/\ntypedef struct sqlite3_context sqlite3_context;\n\n/*\n** CAPI3REF: Binding Values To Prepared Statements\n** KEYWORDS: {host parameter} {host parameters} {host parameter name}\n** KEYWORDS: {SQL parameter} {SQL parameters} {parameter binding}\n** METHOD: sqlite3_stmt\n**\n** ^(In the SQL statement text input to [sqlite3_prepare_v2()] and its variants,\n** literals may be replaced by a [parameter] that matches one of following\n** templates:\n**\n** <ul>\n** <li>  ?\n** <li>  ?NNN\n** <li>  :VVV\n** <li>  @VVV\n** <li>  $VVV\n** </ul>\n**\n** In the templates above, NNN represents an integer literal,\n** and VVV represents an alphanumeric identifier.)^  ^The values of these\n** parameters (also called \"host parameter names\" or \"SQL parameters\")\n** can be set using the sqlite3_bind_*() routines defined here.\n**\n** ^The first argument to the sqlite3_bind_*() routines is always\n** a pointer to the [sqlite3_stmt] object returned from\n** [sqlite3_prepare_v2()] or its variants.\n**\n** ^The second argument is the index of the SQL parameter to be set.\n** ^The leftmost SQL parameter has an index of 1.  ^When the same named\n** SQL parameter is used more than once, second and subsequent\n** occurrences have the same index as the first occurrence.\n** ^The index for named parameters can be looked up using the\n** [sqlite3_bind_parameter_index()] API if desired.  ^The index\n** for \"?NNN\" parameters is the value of NNN.\n** ^The NNN value must be between 1 and the [sqlite3_limit()]\n** parameter [SQLITE_LIMIT_VARIABLE_NUMBER] (default value: 999).\n**\n** ^The third argument is the value to bind to the parameter.\n** ^If the third parameter to sqlite3_bind_text() or sqlite3_bind_text16()\n** or sqlite3_bind_blob() is a NULL pointer then the fourth parameter\n** is ignored and the end result is the same as sqlite3_bind_null().\n**\n** ^(In those routines that have a fourth argument, its value is the\n** number of bytes in the parameter.  To be clear: the value is the\n** number of <u>bytes</u> in the value, not the number of characters.)^\n** ^If the fourth parameter to sqlite3_bind_text() or sqlite3_bind_text16()\n** is negative, then the length of the string is\n** the number of bytes up to the first zero terminator.\n** If the fourth parameter to sqlite3_bind_blob() is negative, then\n** the behavior is undefined.\n** If a non-negative fourth parameter is provided to sqlite3_bind_text()\n** or sqlite3_bind_text16() or sqlite3_bind_text64() then\n** that parameter must be the byte offset\n** where the NUL terminator would occur assuming the string were NUL\n** terminated.  If any NUL characters occur at byte offsets less than \n** the value of the fourth parameter then the resulting string value will\n** contain embedded NULs.  The result of expressions involving strings\n** with embedded NULs is undefined.\n**\n** ^The fifth argument to the BLOB and string binding interfaces\n** is a destructor used to dispose of the BLOB or\n** string after SQLite has finished with it.  ^The destructor is called\n** to dispose of the BLOB or string even if the call to bind API fails.\n** ^If the fifth argument is\n** the special value [SQLITE_STATIC], then SQLite assumes that the\n** information is in static, unmanaged space and does not need to be freed.\n** ^If the fifth argument has the value [SQLITE_TRANSIENT], then\n** SQLite makes its own private copy of the data immediately, before\n** the sqlite3_bind_*() routine returns.\n**\n** ^The sixth argument to sqlite3_bind_text64() must be one of\n** [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]\n** to specify the encoding of the text in the third parameter.  If\n** the sixth argument to sqlite3_bind_text64() is not one of the\n** allowed values shown above, or if the text encoding is different\n** from the encoding specified by the sixth parameter, then the behavior\n** is undefined.\n**\n** ^The sqlite3_bind_zeroblob() routine binds a BLOB of length N that\n** is filled with zeroes.  ^A zeroblob uses a fixed amount of memory\n** (just an integer to hold its size) while it is being processed.\n** Zeroblobs are intended to serve as placeholders for BLOBs whose\n** content is later written using\n** [sqlite3_blob_open | incremental BLOB I/O] routines.\n** ^A negative value for the zeroblob results in a zero-length BLOB.\n**\n** ^The sqlite3_bind_pointer(S,I,P,T,D) routine causes the I-th parameter in\n** [prepared statement] S to have an SQL value of NULL, but to also be\n** associated with the pointer P of type T.  ^D is either a NULL pointer or\n** a pointer to a destructor function for P. ^SQLite will invoke the\n** destructor D with a single argument of P when it is finished using\n** P.  The T parameter should be a static string, preferably a string\n** literal. The sqlite3_bind_pointer() routine is part of the\n** [pointer passing interface] added for SQLite 3.20.0.\n**\n** ^If any of the sqlite3_bind_*() routines are called with a NULL pointer\n** for the [prepared statement] or with a prepared statement for which\n** [sqlite3_step()] has been called more recently than [sqlite3_reset()],\n** then the call will return [SQLITE_MISUSE].  If any sqlite3_bind_()\n** routine is passed a [prepared statement] that has been finalized, the\n** result is undefined and probably harmful.\n**\n** ^Bindings are not cleared by the [sqlite3_reset()] routine.\n** ^Unbound parameters are interpreted as NULL.\n**\n** ^The sqlite3_bind_* routines return [SQLITE_OK] on success or an\n** [error code] if anything goes wrong.\n** ^[SQLITE_TOOBIG] might be returned if the size of a string or BLOB\n** exceeds limits imposed by [sqlite3_limit]([SQLITE_LIMIT_LENGTH]) or\n** [SQLITE_MAX_LENGTH].\n** ^[SQLITE_RANGE] is returned if the parameter\n** index is out of range.  ^[SQLITE_NOMEM] is returned if malloc() fails.\n**\n** See also: [sqlite3_bind_parameter_count()],\n** [sqlite3_bind_parameter_name()], and [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*));\nSQLITE_API int sqlite3_bind_blob64(sqlite3_stmt*, int, const void*, sqlite3_uint64,\n                        void(*)(void*));\nSQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);\nSQLITE_API int sqlite3_bind_int(sqlite3_stmt*, int, int);\nSQLITE_API int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite3_int64);\nSQLITE_API int sqlite3_bind_null(sqlite3_stmt*, int);\nSQLITE_API int sqlite3_bind_text(sqlite3_stmt*,int,const char*,int,void(*)(void*));\nSQLITE_API int sqlite3_bind_text16(sqlite3_stmt*, int, const void*, int, void(*)(void*));\nSQLITE_API int sqlite3_bind_text64(sqlite3_stmt*, int, const char*, sqlite3_uint64,\n                         void(*)(void*), unsigned char encoding);\nSQLITE_API int sqlite3_bind_value(sqlite3_stmt*, int, const sqlite3_value*);\nSQLITE_API int sqlite3_bind_pointer(sqlite3_stmt*, int, void*, const char*,void(*)(void*));\nSQLITE_API int sqlite3_bind_zeroblob(sqlite3_stmt*, int, int n);\nSQLITE_API int sqlite3_bind_zeroblob64(sqlite3_stmt*, int, sqlite3_uint64);\n\n/*\n** CAPI3REF: Number Of SQL Parameters\n** METHOD: sqlite3_stmt\n**\n** ^This routine can be used to find the number of [SQL parameters]\n** in a [prepared statement].  SQL parameters are tokens of the\n** form \"?\", \"?NNN\", \":AAA\", \"$AAA\", or \"@AAA\" that serve as\n** placeholders for values that are [sqlite3_bind_blob | bound]\n** to the parameters at a later time.\n**\n** ^(This routine actually returns the index of the largest (rightmost)\n** parameter. For all forms except ?NNN, this will correspond to the\n** number of unique parameters.  If parameters of the ?NNN form are used,\n** there may be gaps in the list.)^\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_name()], and\n** [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API int sqlite3_bind_parameter_count(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Name Of A Host Parameter\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_bind_parameter_name(P,N) interface returns\n** the name of the N-th [SQL parameter] in the [prepared statement] P.\n** ^(SQL parameters of the form \"?NNN\" or \":AAA\" or \"@AAA\" or \"$AAA\"\n** have a name which is the string \"?NNN\" or \":AAA\" or \"@AAA\" or \"$AAA\"\n** respectively.\n** In other words, the initial \":\" or \"$\" or \"@\" or \"?\"\n** is included as part of the name.)^\n** ^Parameters of the form \"?\" without a following integer have no name\n** and are referred to as \"nameless\" or \"anonymous parameters\".\n**\n** ^The first host parameter has an index of 1, not 0.\n**\n** ^If the value N is out of range or if the N-th parameter is\n** nameless, then NULL is returned.  ^The returned string is\n** always in UTF-8 encoding even if the named parameter was\n** originally specified as UTF-16 in [sqlite3_prepare16()],\n** [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()].\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_count()], and\n** [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int);\n\n/*\n** CAPI3REF: Index Of A Parameter With A Given Name\n** METHOD: sqlite3_stmt\n**\n** ^Return the index of an SQL parameter given its name.  ^The\n** index value returned is suitable for use as the second\n** parameter to [sqlite3_bind_blob|sqlite3_bind()].  ^A zero\n** is returned if no matching parameter is found.  ^The parameter\n** name must be given in UTF-8 even if the original statement\n** was prepared from UTF-16 text using [sqlite3_prepare16_v2()] or\n** [sqlite3_prepare16_v3()].\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_count()], and\n** [sqlite3_bind_parameter_name()].\n*/\nSQLITE_API int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName);\n\n/*\n** CAPI3REF: Reset All Bindings On A Prepared Statement\n** METHOD: sqlite3_stmt\n**\n** ^Contrary to the intuition of many, [sqlite3_reset()] does not reset\n** the [sqlite3_bind_blob | bindings] on a [prepared statement].\n** ^Use this routine to reset all host parameters to NULL.\n*/\nSQLITE_API int sqlite3_clear_bindings(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Number Of Columns In A Result Set\n** METHOD: sqlite3_stmt\n**\n** ^Return the number of columns in the result set returned by the\n** [prepared statement]. ^If this routine returns 0, that means the \n** [prepared statement] returns no data (for example an [UPDATE]).\n** ^However, just because this routine returns a positive number does not\n** mean that one or more rows of data will be returned.  ^A SELECT statement\n** will always have a positive sqlite3_column_count() but depending on the\n** WHERE clause constraints and the table content, it might return no rows.\n**\n** See also: [sqlite3_data_count()]\n*/\nSQLITE_API int sqlite3_column_count(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Column Names In A Result Set\n** METHOD: sqlite3_stmt\n**\n** ^These routines return the name assigned to a particular column\n** in the result set of a [SELECT] statement.  ^The sqlite3_column_name()\n** interface returns a pointer to a zero-terminated UTF-8 string\n** and sqlite3_column_name16() returns a pointer to a zero-terminated\n** UTF-16 string.  ^The first parameter is the [prepared statement]\n** that implements the [SELECT] statement. ^The second parameter is the\n** column number.  ^The leftmost column is number 0.\n**\n** ^The returned string pointer is valid until either the [prepared statement]\n** is destroyed by [sqlite3_finalize()] or until the statement is automatically\n** reprepared by the first call to [sqlite3_step()] for a particular run\n** or until the next call to\n** sqlite3_column_name() or sqlite3_column_name16() on the same column.\n**\n** ^If sqlite3_malloc() fails during the processing of either routine\n** (for example during a conversion from UTF-8 to UTF-16) then a\n** NULL pointer is returned.\n**\n** ^The name of a result column is the value of the \"AS\" clause for\n** that column, if there is an AS clause.  If there is no AS clause\n** then the name of the column is unspecified and may change from\n** one release of SQLite to the next.\n*/\nSQLITE_API const char *sqlite3_column_name(sqlite3_stmt*, int N);\nSQLITE_API const void *sqlite3_column_name16(sqlite3_stmt*, int N);\n\n/*\n** CAPI3REF: Source Of Data In A Query Result\n** METHOD: sqlite3_stmt\n**\n** ^These routines provide a means to determine the database, table, and\n** table column that is the origin of a particular result column in\n** [SELECT] statement.\n** ^The name of the database or table or column can be returned as\n** either a UTF-8 or UTF-16 string.  ^The _database_ routines return\n** the database name, the _table_ routines return the table name, and\n** the origin_ routines return the column name.\n** ^The returned string is valid until the [prepared statement] is destroyed\n** using [sqlite3_finalize()] or until the statement is automatically\n** reprepared by the first call to [sqlite3_step()] for a particular run\n** or until the same information is requested\n** again in a different encoding.\n**\n** ^The names returned are the original un-aliased names of the\n** database, table, and column.\n**\n** ^The first argument to these interfaces is a [prepared statement].\n** ^These functions return information about the Nth result column returned by\n** the statement, where N is the second function argument.\n** ^The left-most column is column 0 for these routines.\n**\n** ^If the Nth column returned by the statement is an expression or\n** subquery and is not a column value, then all of these functions return\n** NULL.  ^These routine might also return NULL if a memory allocation error\n** occurs.  ^Otherwise, they return the name of the attached database, table,\n** or column that query result column was extracted from.\n**\n** ^As with all other SQLite APIs, those whose names end with \"16\" return\n** UTF-16 encoded strings and the other functions return UTF-8.\n**\n** ^These APIs are only available if the library was compiled with the\n** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol.\n**\n** If two or more threads call one or more of these routines against the same\n** prepared statement and column at the same time then the results are\n** undefined.\n**\n** If two or more threads call one or more\n** [sqlite3_column_database_name | column metadata interfaces]\n** for the same [prepared statement] and result column\n** at the same time then the results are undefined.\n*/\nSQLITE_API const char *sqlite3_column_database_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_database_name16(sqlite3_stmt*,int);\nSQLITE_API const char *sqlite3_column_table_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_table_name16(sqlite3_stmt*,int);\nSQLITE_API const char *sqlite3_column_origin_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_origin_name16(sqlite3_stmt*,int);\n\n/*\n** CAPI3REF: Declared Datatype Of A Query Result\n** METHOD: sqlite3_stmt\n**\n** ^(The first parameter is a [prepared statement].\n** If this statement is a [SELECT] statement and the Nth column of the\n** returned result set of that [SELECT] is a table column (not an\n** expression or subquery) then the declared type of the table\n** column is returned.)^  ^If the Nth column of the result set is an\n** expression or subquery, then a NULL pointer is returned.\n** ^The returned string is always UTF-8 encoded.\n**\n** ^(For example, given the database schema:\n**\n** CREATE TABLE t1(c1 VARIANT);\n**\n** and the following statement to be compiled:\n**\n** SELECT c1 + 1, c1 FROM t1;\n**\n** this routine would return the string \"VARIANT\" for the second result\n** column (i==1), and a NULL pointer for the first result column (i==0).)^\n**\n** ^SQLite uses dynamic run-time typing.  ^So just because a column\n** is declared to contain a particular type does not mean that the\n** data stored in that column is of the declared type.  SQLite is\n** strongly typed, but the typing is dynamic not static.  ^Type\n** is associated with individual values, not with the containers\n** used to hold those values.\n*/\nSQLITE_API const char *sqlite3_column_decltype(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_decltype16(sqlite3_stmt*,int);\n\n/*\n** CAPI3REF: Evaluate An SQL Statement\n** METHOD: sqlite3_stmt\n**\n** After a [prepared statement] has been prepared using any of\n** [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], [sqlite3_prepare16_v2()],\n** or [sqlite3_prepare16_v3()] or one of the legacy\n** interfaces [sqlite3_prepare()] or [sqlite3_prepare16()], this function\n** must be called one or more times to evaluate the statement.\n**\n** The details of the behavior of the sqlite3_step() interface depend\n** on whether the statement was prepared using the newer \"vX\" interfaces\n** [sqlite3_prepare_v3()], [sqlite3_prepare_v2()], [sqlite3_prepare16_v3()],\n** [sqlite3_prepare16_v2()] or the older legacy\n** interfaces [sqlite3_prepare()] and [sqlite3_prepare16()].  The use of the\n** new \"vX\" interface is recommended for new applications but the legacy\n** interface will continue to be supported.\n**\n** ^In the legacy interface, the return value will be either [SQLITE_BUSY],\n** [SQLITE_DONE], [SQLITE_ROW], [SQLITE_ERROR], or [SQLITE_MISUSE].\n** ^With the \"v2\" interface, any of the other [result codes] or\n** [extended result codes] might be returned as well.\n**\n** ^[SQLITE_BUSY] means that the database engine was unable to acquire the\n** database locks it needs to do its job.  ^If the statement is a [COMMIT]\n** or occurs outside of an explicit transaction, then you can retry the\n** statement.  If the statement is not a [COMMIT] and occurs within an\n** explicit transaction then you should rollback the transaction before\n** continuing.\n**\n** ^[SQLITE_DONE] means that the statement has finished executing\n** successfully.  sqlite3_step() should not be called again on this virtual\n** machine without first calling [sqlite3_reset()] to reset the virtual\n** machine back to its initial state.\n**\n** ^If the SQL statement being executed returns any data, then [SQLITE_ROW]\n** is returned each time a new row of data is ready for processing by the\n** caller. The values may be accessed using the [column access functions].\n** sqlite3_step() is called again to retrieve the next row of data.\n**\n** ^[SQLITE_ERROR] means that a run-time error (such as a constraint\n** violation) has occurred.  sqlite3_step() should not be called again on\n** the VM. More information may be found by calling [sqlite3_errmsg()].\n** ^With the legacy interface, a more specific error code (for example,\n** [SQLITE_INTERRUPT], [SQLITE_SCHEMA], [SQLITE_CORRUPT], and so forth)\n** can be obtained by calling [sqlite3_reset()] on the\n** [prepared statement].  ^In the \"v2\" interface,\n** the more specific error code is returned directly by sqlite3_step().\n**\n** [SQLITE_MISUSE] means that the this routine was called inappropriately.\n** Perhaps it was called on a [prepared statement] that has\n** already been [sqlite3_finalize | finalized] or on one that had\n** previously returned [SQLITE_ERROR] or [SQLITE_DONE].  Or it could\n** be the case that the same database connection is being used by two or\n** more threads at the same moment in time.\n**\n** For all versions of SQLite up to and including 3.6.23.1, a call to\n** [sqlite3_reset()] was required after sqlite3_step() returned anything\n** other than [SQLITE_ROW] before any subsequent invocation of\n** sqlite3_step().  Failure to reset the prepared statement using \n** [sqlite3_reset()] would result in an [SQLITE_MISUSE] return from\n** sqlite3_step().  But after [version 3.6.23.1] ([dateof:3.6.23.1],\n** sqlite3_step() began\n** calling [sqlite3_reset()] automatically in this circumstance rather\n** than returning [SQLITE_MISUSE].  This is not considered a compatibility\n** break because any application that ever receives an SQLITE_MISUSE error\n** is broken by definition.  The [SQLITE_OMIT_AUTORESET] compile-time option\n** can be used to restore the legacy behavior.\n**\n** <b>Goofy Interface Alert:</b> In the legacy interface, the sqlite3_step()\n** API always returns a generic error code, [SQLITE_ERROR], following any\n** error other than [SQLITE_BUSY] and [SQLITE_MISUSE].  You must call\n** [sqlite3_reset()] or [sqlite3_finalize()] in order to find one of the\n** specific [error codes] that better describes the error.\n** We admit that this is a goofy design.  The problem has been fixed\n** with the \"v2\" interface.  If you prepare all of your SQL statements\n** using [sqlite3_prepare_v3()] or [sqlite3_prepare_v2()]\n** or [sqlite3_prepare16_v2()] or [sqlite3_prepare16_v3()] instead\n** of the legacy [sqlite3_prepare()] and [sqlite3_prepare16()] interfaces,\n** then the more specific [error codes] are returned directly\n** by sqlite3_step().  The use of the \"vX\" interfaces is recommended.\n*/\nSQLITE_API int sqlite3_step(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Number of columns in a result set\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_data_count(P) interface returns the number of columns in the\n** current row of the result set of [prepared statement] P.\n** ^If prepared statement P does not have results ready to return\n** (via calls to the [sqlite3_column_int | sqlite3_column_*()] of\n** interfaces) then sqlite3_data_count(P) returns 0.\n** ^The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer.\n** ^The sqlite3_data_count(P) routine returns 0 if the previous call to\n** [sqlite3_step](P) returned [SQLITE_DONE].  ^The sqlite3_data_count(P)\n** will return non-zero if previous call to [sqlite3_step](P) returned\n** [SQLITE_ROW], except in the case of the [PRAGMA incremental_vacuum]\n** where it always returns zero since each step of that multi-step\n** pragma returns 0 columns of data.\n**\n** See also: [sqlite3_column_count()]\n*/\nSQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Fundamental Datatypes\n** KEYWORDS: SQLITE_TEXT\n**\n** ^(Every value in SQLite has one of five fundamental datatypes:\n**\n** <ul>\n** <li> 64-bit signed integer\n** <li> 64-bit IEEE floating point number\n** <li> string\n** <li> BLOB\n** <li> NULL\n** </ul>)^\n**\n** These constants are codes for each of those types.\n**\n** Note that the SQLITE_TEXT constant was also used in SQLite version 2\n** for a completely different meaning.  Software that links against both\n** SQLite version 2 and SQLite version 3 should use SQLITE3_TEXT, not\n** SQLITE_TEXT.\n*/\n#define SQLITE_INTEGER  1\n#define SQLITE_FLOAT    2\n#define SQLITE_BLOB     4\n#define SQLITE_NULL     5\n#ifdef SQLITE_TEXT\n# undef SQLITE_TEXT\n#else\n# define SQLITE_TEXT     3\n#endif\n#define SQLITE3_TEXT     3\n\n/*\n** CAPI3REF: Result Values From A Query\n** KEYWORDS: {column access functions}\n** METHOD: sqlite3_stmt\n**\n** <b>Summary:</b>\n** <blockquote><table border=0 cellpadding=0 cellspacing=0>\n** <tr><td><b>sqlite3_column_blob</b><td>&rarr;<td>BLOB result\n** <tr><td><b>sqlite3_column_double</b><td>&rarr;<td>REAL result\n** <tr><td><b>sqlite3_column_int</b><td>&rarr;<td>32-bit INTEGER result\n** <tr><td><b>sqlite3_column_int64</b><td>&rarr;<td>64-bit INTEGER result\n** <tr><td><b>sqlite3_column_text</b><td>&rarr;<td>UTF-8 TEXT result\n** <tr><td><b>sqlite3_column_text16</b><td>&rarr;<td>UTF-16 TEXT result\n** <tr><td><b>sqlite3_column_value</b><td>&rarr;<td>The result as an \n** [sqlite3_value|unprotected sqlite3_value] object.\n** <tr><td>&nbsp;<td>&nbsp;<td>&nbsp;\n** <tr><td><b>sqlite3_column_bytes</b><td>&rarr;<td>Size of a BLOB\n** or a UTF-8 TEXT result in bytes\n** <tr><td><b>sqlite3_column_bytes16&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Size of UTF-16\n** TEXT in bytes\n** <tr><td><b>sqlite3_column_type</b><td>&rarr;<td>Default\n** datatype of the result\n** </table></blockquote>\n**\n** <b>Details:</b>\n**\n** ^These routines return information about a single column of the current\n** result row of a query.  ^In every case the first argument is a pointer\n** to the [prepared statement] that is being evaluated (the [sqlite3_stmt*]\n** that was returned from [sqlite3_prepare_v2()] or one of its variants)\n** and the second argument is the index of the column for which information\n** should be returned. ^The leftmost column of the result set has the index 0.\n** ^The number of columns in the result can be determined using\n** [sqlite3_column_count()].\n**\n** If the SQL statement does not currently point to a valid row, or if the\n** column index is out of range, the result is undefined.\n** These routines may only be called when the most recent call to\n** [sqlite3_step()] has returned [SQLITE_ROW] and neither\n** [sqlite3_reset()] nor [sqlite3_finalize()] have been called subsequently.\n** If any of these routines are called after [sqlite3_reset()] or\n** [sqlite3_finalize()] or after [sqlite3_step()] has returned\n** something other than [SQLITE_ROW], the results are undefined.\n** If [sqlite3_step()] or [sqlite3_reset()] or [sqlite3_finalize()]\n** are called from a different thread while any of these routines\n** are pending, then the results are undefined.\n**\n** The first six interfaces (_blob, _double, _int, _int64, _text, and _text16)\n** each return the value of a result column in a specific data format.  If\n** the result column is not initially in the requested format (for example,\n** if the query returns an integer but the sqlite3_column_text() interface\n** is used to extract the value) then an automatic type conversion is performed.\n**\n** ^The sqlite3_column_type() routine returns the\n** [SQLITE_INTEGER | datatype code] for the initial data type\n** of the result column.  ^The returned value is one of [SQLITE_INTEGER],\n** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].\n** The return value of sqlite3_column_type() can be used to decide which\n** of the first six interface should be used to extract the column value.\n** The value returned by sqlite3_column_type() is only meaningful if no\n** automatic type conversions have occurred for the value in question.  \n** After a type conversion, the result of calling sqlite3_column_type()\n** is undefined, though harmless.  Future\n** versions of SQLite may change the behavior of sqlite3_column_type()\n** following a type conversion.\n**\n** If the result is a BLOB or a TEXT string, then the sqlite3_column_bytes()\n** or sqlite3_column_bytes16() interfaces can be used to determine the size\n** of that BLOB or string.\n**\n** ^If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes()\n** routine returns the number of bytes in that BLOB or string.\n** ^If the result is a UTF-16 string, then sqlite3_column_bytes() converts\n** the string to UTF-8 and then returns the number of bytes.\n** ^If the result is a numeric value then sqlite3_column_bytes() uses\n** [sqlite3_snprintf()] to convert that value to a UTF-8 string and returns\n** the number of bytes in that string.\n** ^If the result is NULL, then sqlite3_column_bytes() returns zero.\n**\n** ^If the result is a BLOB or UTF-16 string then the sqlite3_column_bytes16()\n** routine returns the number of bytes in that BLOB or string.\n** ^If the result is a UTF-8 string, then sqlite3_column_bytes16() converts\n** the string to UTF-16 and then returns the number of bytes.\n** ^If the result is a numeric value then sqlite3_column_bytes16() uses\n** [sqlite3_snprintf()] to convert that value to a UTF-16 string and returns\n** the number of bytes in that string.\n** ^If the result is NULL, then sqlite3_column_bytes16() returns zero.\n**\n** ^The values returned by [sqlite3_column_bytes()] and \n** [sqlite3_column_bytes16()] do not include the zero terminators at the end\n** of the string.  ^For clarity: the values returned by\n** [sqlite3_column_bytes()] and [sqlite3_column_bytes16()] are the number of\n** bytes in the string, not the number of characters.\n**\n** ^Strings returned by sqlite3_column_text() and sqlite3_column_text16(),\n** even empty strings, are always zero-terminated.  ^The return\n** value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer.\n**\n** <b>Warning:</b> ^The object returned by [sqlite3_column_value()] is an\n** [unprotected sqlite3_value] object.  In a multithreaded environment,\n** an unprotected sqlite3_value object may only be used safely with\n** [sqlite3_bind_value()] and [sqlite3_result_value()].\n** If the [unprotected sqlite3_value] object returned by\n** [sqlite3_column_value()] is used in any other way, including calls\n** to routines like [sqlite3_value_int()], [sqlite3_value_text()],\n** or [sqlite3_value_bytes()], the behavior is not threadsafe.\n** Hence, the sqlite3_column_value() interface\n** is normally only useful within the implementation of \n** [application-defined SQL functions] or [virtual tables], not within\n** top-level application code.\n**\n** The these routines may attempt to convert the datatype of the result.\n** ^For example, if the internal representation is FLOAT and a text result\n** is requested, [sqlite3_snprintf()] is used internally to perform the\n** conversion automatically.  ^(The following table details the conversions\n** that are applied:\n**\n** <blockquote>\n** <table border=\"1\">\n** <tr><th> Internal<br>Type <th> Requested<br>Type <th>  Conversion\n**\n** <tr><td>  NULL    <td> INTEGER   <td> Result is 0\n** <tr><td>  NULL    <td>  FLOAT    <td> Result is 0.0\n** <tr><td>  NULL    <td>   TEXT    <td> Result is a NULL pointer\n** <tr><td>  NULL    <td>   BLOB    <td> Result is a NULL pointer\n** <tr><td> INTEGER  <td>  FLOAT    <td> Convert from integer to float\n** <tr><td> INTEGER  <td>   TEXT    <td> ASCII rendering of the integer\n** <tr><td> INTEGER  <td>   BLOB    <td> Same as INTEGER->TEXT\n** <tr><td>  FLOAT   <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  FLOAT   <td>   TEXT    <td> ASCII rendering of the float\n** <tr><td>  FLOAT   <td>   BLOB    <td> [CAST] to BLOB\n** <tr><td>  TEXT    <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  TEXT    <td>  FLOAT    <td> [CAST] to REAL\n** <tr><td>  TEXT    <td>   BLOB    <td> No change\n** <tr><td>  BLOB    <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  BLOB    <td>  FLOAT    <td> [CAST] to REAL\n** <tr><td>  BLOB    <td>   TEXT    <td> Add a zero terminator if needed\n** </table>\n** </blockquote>)^\n**\n** Note that when type conversions occur, pointers returned by prior\n** calls to sqlite3_column_blob(), sqlite3_column_text(), and/or\n** sqlite3_column_text16() may be invalidated.\n** Type conversions and pointer invalidations might occur\n** in the following cases:\n**\n** <ul>\n** <li> The initial content is a BLOB and sqlite3_column_text() or\n**      sqlite3_column_text16() is called.  A zero-terminator might\n**      need to be added to the string.</li>\n** <li> The initial content is UTF-8 text and sqlite3_column_bytes16() or\n**      sqlite3_column_text16() is called.  The content must be converted\n**      to UTF-16.</li>\n** <li> The initial content is UTF-16 text and sqlite3_column_bytes() or\n**      sqlite3_column_text() is called.  The content must be converted\n**      to UTF-8.</li>\n** </ul>\n**\n** ^Conversions between UTF-16be and UTF-16le are always done in place and do\n** not invalidate a prior pointer, though of course the content of the buffer\n** that the prior pointer references will have been modified.  Other kinds\n** of conversion are done in place when it is possible, but sometimes they\n** are not possible and in those cases prior pointers are invalidated.\n**\n** The safest policy is to invoke these routines\n** in one of the following ways:\n**\n** <ul>\n**  <li>sqlite3_column_text() followed by sqlite3_column_bytes()</li>\n**  <li>sqlite3_column_blob() followed by sqlite3_column_bytes()</li>\n**  <li>sqlite3_column_text16() followed by sqlite3_column_bytes16()</li>\n** </ul>\n**\n** In other words, you should call sqlite3_column_text(),\n** sqlite3_column_blob(), or sqlite3_column_text16() first to force the result\n** into the desired format, then invoke sqlite3_column_bytes() or\n** sqlite3_column_bytes16() to find the size of the result.  Do not mix calls\n** to sqlite3_column_text() or sqlite3_column_blob() with calls to\n** sqlite3_column_bytes16(), and do not mix calls to sqlite3_column_text16()\n** with calls to sqlite3_column_bytes().\n**\n** ^The pointers returned are valid until a type conversion occurs as\n** described above, or until [sqlite3_step()] or [sqlite3_reset()] or\n** [sqlite3_finalize()] is called.  ^The memory space used to hold strings\n** and BLOBs is freed automatically.  Do not pass the pointers returned\n** from [sqlite3_column_blob()], [sqlite3_column_text()], etc. into\n** [sqlite3_free()].\n**\n** ^(If a memory allocation error occurs during the evaluation of any\n** of these routines, a default value is returned.  The default value\n** is either the integer 0, the floating point number 0.0, or a NULL\n** pointer.  Subsequent calls to [sqlite3_errcode()] will return\n** [SQLITE_NOMEM].)^\n*/\nSQLITE_API const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);\nSQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_int(sqlite3_stmt*, int iCol);\nSQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol);\nSQLITE_API const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol);\nSQLITE_API const void *sqlite3_column_text16(sqlite3_stmt*, int iCol);\nSQLITE_API sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_bytes(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_bytes16(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_type(sqlite3_stmt*, int iCol);\n\n/*\n** CAPI3REF: Destroy A Prepared Statement Object\n** DESTRUCTOR: sqlite3_stmt\n**\n** ^The sqlite3_finalize() function is called to delete a [prepared statement].\n** ^If the most recent evaluation of the statement encountered no errors\n** or if the statement is never been evaluated, then sqlite3_finalize() returns\n** SQLITE_OK.  ^If the most recent evaluation of statement S failed, then\n** sqlite3_finalize(S) returns the appropriate [error code] or\n** [extended error code].\n**\n** ^The sqlite3_finalize(S) routine can be called at any point during\n** the life cycle of [prepared statement] S:\n** before statement S is ever evaluated, after\n** one or more calls to [sqlite3_reset()], or after any call\n** to [sqlite3_step()] regardless of whether or not the statement has\n** completed execution.\n**\n** ^Invoking sqlite3_finalize() on a NULL pointer is a harmless no-op.\n**\n** The application must finalize every [prepared statement] in order to avoid\n** resource leaks.  It is a grievous error for the application to try to use\n** a prepared statement after it has been finalized.  Any use of a prepared\n** statement after it has been finalized can result in undefined and\n** undesirable behavior such as segfaults and heap corruption.\n*/\nSQLITE_API int sqlite3_finalize(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Reset A Prepared Statement Object\n** METHOD: sqlite3_stmt\n**\n** The sqlite3_reset() function is called to reset a [prepared statement]\n** object back to its initial state, ready to be re-executed.\n** ^Any SQL statement variables that had values bound to them using\n** the [sqlite3_bind_blob | sqlite3_bind_*() API] retain their values.\n** Use [sqlite3_clear_bindings()] to reset the bindings.\n**\n** ^The [sqlite3_reset(S)] interface resets the [prepared statement] S\n** back to the beginning of its program.\n**\n** ^If the most recent call to [sqlite3_step(S)] for the\n** [prepared statement] S returned [SQLITE_ROW] or [SQLITE_DONE],\n** or if [sqlite3_step(S)] has never before been called on S,\n** then [sqlite3_reset(S)] returns [SQLITE_OK].\n**\n** ^If the most recent call to [sqlite3_step(S)] for the\n** [prepared statement] S indicated an error, then\n** [sqlite3_reset(S)] returns an appropriate [error code].\n**\n** ^The [sqlite3_reset(S)] interface does not change the values\n** of any [sqlite3_bind_blob|bindings] on the [prepared statement] S.\n*/\nSQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Create Or Redefine SQL Functions\n** KEYWORDS: {function creation routines}\n** KEYWORDS: {application-defined SQL function}\n** KEYWORDS: {application-defined SQL functions}\n** METHOD: sqlite3\n**\n** ^These functions (collectively known as \"function creation routines\")\n** are used to add SQL functions or aggregates or to redefine the behavior\n** of existing SQL functions or aggregates.  The only differences between\n** these routines are the text encoding expected for\n** the second parameter (the name of the function being created)\n** and the presence or absence of a destructor callback for\n** the application data pointer.\n**\n** ^The first parameter is the [database connection] to which the SQL\n** function is to be added.  ^If an application uses more than one database\n** connection then application-defined SQL functions must be added\n** to each database connection separately.\n**\n** ^The second parameter is the name of the SQL function to be created or\n** redefined.  ^The length of the name is limited to 255 bytes in a UTF-8\n** representation, exclusive of the zero-terminator.  ^Note that the name\n** length limit is in UTF-8 bytes, not characters nor UTF-16 bytes.  \n** ^Any attempt to create a function with a longer name\n** will result in [SQLITE_MISUSE] being returned.\n**\n** ^The third parameter (nArg)\n** is the number of arguments that the SQL function or\n** aggregate takes. ^If this parameter is -1, then the SQL function or\n** aggregate may take any number of arguments between 0 and the limit\n** set by [sqlite3_limit]([SQLITE_LIMIT_FUNCTION_ARG]).  If the third\n** parameter is less than -1 or greater than 127 then the behavior is\n** undefined.\n**\n** ^The fourth parameter, eTextRep, specifies what\n** [SQLITE_UTF8 | text encoding] this SQL function prefers for\n** its parameters.  The application should set this parameter to\n** [SQLITE_UTF16LE] if the function implementation invokes \n** [sqlite3_value_text16le()] on an input, or [SQLITE_UTF16BE] if the\n** implementation invokes [sqlite3_value_text16be()] on an input, or\n** [SQLITE_UTF16] if [sqlite3_value_text16()] is used, or [SQLITE_UTF8]\n** otherwise.  ^The same SQL function may be registered multiple times using\n** different preferred text encodings, with different implementations for\n** each encoding.\n** ^When multiple implementations of the same function are available, SQLite\n** will pick the one that involves the least amount of data conversion.\n**\n** ^The fourth parameter may optionally be ORed with [SQLITE_DETERMINISTIC]\n** to signal that the function will always return the same result given\n** the same inputs within a single SQL statement.  Most SQL functions are\n** deterministic.  The built-in [random()] SQL function is an example of a\n** function that is not deterministic.  The SQLite query planner is able to\n** perform additional optimizations on deterministic functions, so use\n** of the [SQLITE_DETERMINISTIC] flag is recommended where possible.\n**\n** ^(The fifth parameter is an arbitrary pointer.  The implementation of the\n** function can gain access to this pointer using [sqlite3_user_data()].)^\n**\n** ^The sixth, seventh and eighth parameters, xFunc, xStep and xFinal, are\n** pointers to C-language functions that implement the SQL function or\n** aggregate. ^A scalar SQL function requires an implementation of the xFunc\n** callback only; NULL pointers must be passed as the xStep and xFinal\n** parameters. ^An aggregate SQL function requires an implementation of xStep\n** and xFinal and NULL pointer must be passed for xFunc. ^To delete an existing\n** SQL function or aggregate, pass NULL pointers for all three function\n** callbacks.\n**\n** ^(If the ninth parameter to sqlite3_create_function_v2() is not NULL,\n** then it is destructor for the application data pointer. \n** The destructor is invoked when the function is deleted, either by being\n** overloaded or when the database connection closes.)^\n** ^The destructor is also invoked if the call to\n** sqlite3_create_function_v2() fails.\n** ^When the destructor callback of the tenth parameter is invoked, it\n** is passed a single argument which is a copy of the application data \n** pointer which was the fifth parameter to sqlite3_create_function_v2().\n**\n** ^It is permitted to register multiple implementations of the same\n** functions with the same name but with either differing numbers of\n** arguments or differing preferred text encodings.  ^SQLite will use\n** the implementation that most closely matches the way in which the\n** SQL function is used.  ^A function implementation with a non-negative\n** nArg parameter is a better match than a function implementation with\n** a negative nArg.  ^A function where the preferred text encoding\n** matches the database encoding is a better\n** match than a function where the encoding is different.  \n** ^A function where the encoding difference is between UTF16le and UTF16be\n** is a closer match than a function where the encoding difference is\n** between UTF8 and UTF16.\n**\n** ^Built-in functions may be overloaded by new application-defined functions.\n**\n** ^An application-defined function is permitted to call other\n** SQLite interfaces.  However, such calls must not\n** close the database connection nor finalize or reset the prepared\n** statement in which the function is running.\n*/\nSQLITE_API int sqlite3_create_function(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n);\nSQLITE_API int sqlite3_create_function16(\n  sqlite3 *db,\n  const void *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n);\nSQLITE_API int sqlite3_create_function_v2(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*),\n  void(*xDestroy)(void*)\n);\n\n/*\n** CAPI3REF: Text Encodings\n**\n** These constant define integer codes that represent the various\n** text encodings supported by SQLite.\n*/\n#define SQLITE_UTF8           1    /* IMP: R-37514-35566 */\n#define SQLITE_UTF16LE        2    /* IMP: R-03371-37637 */\n#define SQLITE_UTF16BE        3    /* IMP: R-51971-34154 */\n#define SQLITE_UTF16          4    /* Use native byte order */\n#define SQLITE_ANY            5    /* Deprecated */\n#define SQLITE_UTF16_ALIGNED  8    /* sqlite3_create_collation only */\n\n/*\n** CAPI3REF: Function Flags\n**\n** These constants may be ORed together with the \n** [SQLITE_UTF8 | preferred text encoding] as the fourth argument\n** to [sqlite3_create_function()], [sqlite3_create_function16()], or\n** [sqlite3_create_function_v2()].\n*/\n#define SQLITE_DETERMINISTIC    0x800\n\n/*\n** CAPI3REF: Deprecated Functions\n** DEPRECATED\n**\n** These functions are [deprecated].  In order to maintain\n** backwards compatibility with older code, these functions continue \n** to be supported.  However, new applications should avoid\n** the use of these functions.  To encourage programmers to avoid\n** these functions, we will not explain what they do.\n*/\n#ifndef SQLITE_OMIT_DEPRECATED\nSQLITE_API SQLITE_DEPRECATED int sqlite3_aggregate_count(sqlite3_context*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_expired(sqlite3_stmt*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_global_recover(void);\nSQLITE_API SQLITE_DEPRECATED void sqlite3_thread_cleanup(void);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_memory_alarm(void(*)(void*,sqlite3_int64,int),\n                      void*,sqlite3_int64);\n#endif\n\n/*\n** CAPI3REF: Obtaining SQL Values\n** METHOD: sqlite3_value\n**\n** <b>Summary:</b>\n** <blockquote><table border=0 cellpadding=0 cellspacing=0>\n** <tr><td><b>sqlite3_value_blob</b><td>&rarr;<td>BLOB value\n** <tr><td><b>sqlite3_value_double</b><td>&rarr;<td>REAL value\n** <tr><td><b>sqlite3_value_int</b><td>&rarr;<td>32-bit INTEGER value\n** <tr><td><b>sqlite3_value_int64</b><td>&rarr;<td>64-bit INTEGER value\n** <tr><td><b>sqlite3_value_pointer</b><td>&rarr;<td>Pointer value\n** <tr><td><b>sqlite3_value_text</b><td>&rarr;<td>UTF-8 TEXT value\n** <tr><td><b>sqlite3_value_text16</b><td>&rarr;<td>UTF-16 TEXT value in\n** the native byteorder\n** <tr><td><b>sqlite3_value_text16be</b><td>&rarr;<td>UTF-16be TEXT value\n** <tr><td><b>sqlite3_value_text16le</b><td>&rarr;<td>UTF-16le TEXT value\n** <tr><td>&nbsp;<td>&nbsp;<td>&nbsp;\n** <tr><td><b>sqlite3_value_bytes</b><td>&rarr;<td>Size of a BLOB\n** or a UTF-8 TEXT in bytes\n** <tr><td><b>sqlite3_value_bytes16&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Size of UTF-16\n** TEXT in bytes\n** <tr><td><b>sqlite3_value_type</b><td>&rarr;<td>Default\n** datatype of the value\n** <tr><td><b>sqlite3_value_numeric_type&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Best numeric datatype of the value\n** <tr><td><b>sqlite3_value_nochange&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>True if the column is unchanged in an UPDATE\n** against a virtual table.\n** </table></blockquote>\n**\n** <b>Details:</b>\n**\n** These routines extract type, size, and content information from\n** [protected sqlite3_value] objects.  Protected sqlite3_value objects\n** are used to pass parameter information into implementation of\n** [application-defined SQL functions] and [virtual tables].\n**\n** These routines work only with [protected sqlite3_value] objects.\n** Any attempt to use these routines on an [unprotected sqlite3_value]\n** is not threadsafe.\n**\n** ^These routines work just like the corresponding [column access functions]\n** except that these routines take a single [protected sqlite3_value] object\n** pointer instead of a [sqlite3_stmt*] pointer and an integer column number.\n**\n** ^The sqlite3_value_text16() interface extracts a UTF-16 string\n** in the native byte-order of the host machine.  ^The\n** sqlite3_value_text16be() and sqlite3_value_text16le() interfaces\n** extract UTF-16 strings as big-endian and little-endian respectively.\n**\n** ^If [sqlite3_value] object V was initialized \n** using [sqlite3_bind_pointer(S,I,P,X,D)] or [sqlite3_result_pointer(C,P,X,D)]\n** and if X and Y are strings that compare equal according to strcmp(X,Y),\n** then sqlite3_value_pointer(V,Y) will return the pointer P.  ^Otherwise,\n** sqlite3_value_pointer(V,Y) returns a NULL. The sqlite3_bind_pointer() \n** routine is part of the [pointer passing interface] added for SQLite 3.20.0.\n**\n** ^(The sqlite3_value_type(V) interface returns the\n** [SQLITE_INTEGER | datatype code] for the initial datatype of the\n** [sqlite3_value] object V. The returned value is one of [SQLITE_INTEGER],\n** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].)^\n** Other interfaces might change the datatype for an sqlite3_value object.\n** For example, if the datatype is initially SQLITE_INTEGER and\n** sqlite3_value_text(V) is called to extract a text value for that\n** integer, then subsequent calls to sqlite3_value_type(V) might return\n** SQLITE_TEXT.  Whether or not a persistent internal datatype conversion\n** occurs is undefined and may change from one release of SQLite to the next.\n**\n** ^(The sqlite3_value_numeric_type() interface attempts to apply\n** numeric affinity to the value.  This means that an attempt is\n** made to convert the value to an integer or floating point.  If\n** such a conversion is possible without loss of information (in other\n** words, if the value is a string that looks like a number)\n** then the conversion is performed.  Otherwise no conversion occurs.\n** The [SQLITE_INTEGER | datatype] after conversion is returned.)^\n**\n** ^Within the [xUpdate] method of a [virtual table], the\n** sqlite3_value_nochange(X) interface returns true if and only if\n** the column corresponding to X is unchanged by the UPDATE operation\n** that the xUpdate method call was invoked to implement and if\n** and the prior [xColumn] method call that was invoked to extracted\n** the value for that column returned without setting a result (probably\n** because it queried [sqlite3_vtab_nochange()] and found that the column\n** was unchanging).  ^Within an [xUpdate] method, any value for which\n** sqlite3_value_nochange(X) is true will in all other respects appear\n** to be a NULL value.  If sqlite3_value_nochange(X) is invoked anywhere other\n** than within an [xUpdate] method call for an UPDATE statement, then\n** the return value is arbitrary and meaningless.\n**\n** Please pay particular attention to the fact that the pointer returned\n** from [sqlite3_value_blob()], [sqlite3_value_text()], or\n** [sqlite3_value_text16()] can be invalidated by a subsequent call to\n** [sqlite3_value_bytes()], [sqlite3_value_bytes16()], [sqlite3_value_text()],\n** or [sqlite3_value_text16()].\n**\n** These routines must be called from the same thread as\n** the SQL function that supplied the [sqlite3_value*] parameters.\n*/\nSQLITE_API const void *sqlite3_value_blob(sqlite3_value*);\nSQLITE_API double sqlite3_value_double(sqlite3_value*);\nSQLITE_API int sqlite3_value_int(sqlite3_value*);\nSQLITE_API sqlite3_int64 sqlite3_value_int64(sqlite3_value*);\nSQLITE_API void *sqlite3_value_pointer(sqlite3_value*, const char*);\nSQLITE_API const unsigned char *sqlite3_value_text(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16le(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16be(sqlite3_value*);\nSQLITE_API int sqlite3_value_bytes(sqlite3_value*);\nSQLITE_API int sqlite3_value_bytes16(sqlite3_value*);\nSQLITE_API int sqlite3_value_type(sqlite3_value*);\nSQLITE_API int sqlite3_value_numeric_type(sqlite3_value*);\nSQLITE_API int sqlite3_value_nochange(sqlite3_value*);\n\n/*\n** CAPI3REF: Finding The Subtype Of SQL Values\n** METHOD: sqlite3_value\n**\n** The sqlite3_value_subtype(V) function returns the subtype for\n** an [application-defined SQL function] argument V.  The subtype\n** information can be used to pass a limited amount of context from\n** one SQL function to another.  Use the [sqlite3_result_subtype()]\n** routine to set the subtype for the return value of an SQL function.\n*/\nSQLITE_API unsigned int sqlite3_value_subtype(sqlite3_value*);\n\n/*\n** CAPI3REF: Copy And Free SQL Values\n** METHOD: sqlite3_value\n**\n** ^The sqlite3_value_dup(V) interface makes a copy of the [sqlite3_value]\n** object D and returns a pointer to that copy.  ^The [sqlite3_value] returned\n** is a [protected sqlite3_value] object even if the input is not.\n** ^The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a\n** memory allocation fails.\n**\n** ^The sqlite3_value_free(V) interface frees an [sqlite3_value] object\n** previously obtained from [sqlite3_value_dup()].  ^If V is a NULL pointer\n** then sqlite3_value_free(V) is a harmless no-op.\n*/\nSQLITE_API sqlite3_value *sqlite3_value_dup(const sqlite3_value*);\nSQLITE_API void sqlite3_value_free(sqlite3_value*);\n\n/*\n** CAPI3REF: Obtain Aggregate Function Context\n** METHOD: sqlite3_context\n**\n** Implementations of aggregate SQL functions use this\n** routine to allocate memory for storing their state.\n**\n** ^The first time the sqlite3_aggregate_context(C,N) routine is called \n** for a particular aggregate function, SQLite\n** allocates N of memory, zeroes out that memory, and returns a pointer\n** to the new memory. ^On second and subsequent calls to\n** sqlite3_aggregate_context() for the same aggregate function instance,\n** the same buffer is returned.  Sqlite3_aggregate_context() is normally\n** called once for each invocation of the xStep callback and then one\n** last time when the xFinal callback is invoked.  ^(When no rows match\n** an aggregate query, the xStep() callback of the aggregate function\n** implementation is never called and xFinal() is called exactly once.\n** In those cases, sqlite3_aggregate_context() might be called for the\n** first time from within xFinal().)^\n**\n** ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer \n** when first called if N is less than or equal to zero or if a memory\n** allocate error occurs.\n**\n** ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is\n** determined by the N parameter on first successful call.  Changing the\n** value of N in subsequent call to sqlite3_aggregate_context() within\n** the same aggregate function instance will not resize the memory\n** allocation.)^  Within the xFinal callback, it is customary to set\n** N=0 in calls to sqlite3_aggregate_context(C,N) so that no \n** pointless memory allocations occur.\n**\n** ^SQLite automatically frees the memory allocated by \n** sqlite3_aggregate_context() when the aggregate query concludes.\n**\n** The first parameter must be a copy of the\n** [sqlite3_context | SQL function context] that is the first parameter\n** to the xStep or xFinal callback routine that implements the aggregate\n** function.\n**\n** This routine must be called from the same thread in which\n** the aggregate SQL function is running.\n*/\nSQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);\n\n/*\n** CAPI3REF: User Data For Functions\n** METHOD: sqlite3_context\n**\n** ^The sqlite3_user_data() interface returns a copy of\n** the pointer that was the pUserData parameter (the 5th parameter)\n** of the [sqlite3_create_function()]\n** and [sqlite3_create_function16()] routines that originally\n** registered the application defined function.\n**\n** This routine must be called from the same thread in which\n** the application-defined function is running.\n*/\nSQLITE_API void *sqlite3_user_data(sqlite3_context*);\n\n/*\n** CAPI3REF: Database Connection For Functions\n** METHOD: sqlite3_context\n**\n** ^The sqlite3_context_db_handle() interface returns a copy of\n** the pointer to the [database connection] (the 1st parameter)\n** of the [sqlite3_create_function()]\n** and [sqlite3_create_function16()] routines that originally\n** registered the application defined function.\n*/\nSQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context*);\n\n/*\n** CAPI3REF: Function Auxiliary Data\n** METHOD: sqlite3_context\n**\n** These functions may be used by (non-aggregate) SQL functions to\n** associate metadata with argument values. If the same value is passed to\n** multiple invocations of the same SQL function during query execution, under\n** some circumstances the associated metadata may be preserved.  An example\n** of where this might be useful is in a regular-expression matching\n** function. The compiled version of the regular expression can be stored as\n** metadata associated with the pattern string.  \n** Then as long as the pattern string remains the same,\n** the compiled regular expression can be reused on multiple\n** invocations of the same function.\n**\n** ^The sqlite3_get_auxdata(C,N) interface returns a pointer to the metadata\n** associated by the sqlite3_set_auxdata(C,N,P,X) function with the Nth argument\n** value to the application-defined function.  ^N is zero for the left-most\n** function argument.  ^If there is no metadata\n** associated with the function argument, the sqlite3_get_auxdata(C,N) interface\n** returns a NULL pointer.\n**\n** ^The sqlite3_set_auxdata(C,N,P,X) interface saves P as metadata for the N-th\n** argument of the application-defined function.  ^Subsequent\n** calls to sqlite3_get_auxdata(C,N) return P from the most recent\n** sqlite3_set_auxdata(C,N,P,X) call if the metadata is still valid or\n** NULL if the metadata has been discarded.\n** ^After each call to sqlite3_set_auxdata(C,N,P,X) where X is not NULL,\n** SQLite will invoke the destructor function X with parameter P exactly\n** once, when the metadata is discarded.\n** SQLite is free to discard the metadata at any time, including: <ul>\n** <li> ^(when the corresponding function parameter changes)^, or\n** <li> ^(when [sqlite3_reset()] or [sqlite3_finalize()] is called for the\n**      SQL statement)^, or\n** <li> ^(when sqlite3_set_auxdata() is invoked again on the same\n**       parameter)^, or\n** <li> ^(during the original sqlite3_set_auxdata() call when a memory \n**      allocation error occurs.)^ </ul>\n**\n** Note the last bullet in particular.  The destructor X in \n** sqlite3_set_auxdata(C,N,P,X) might be called immediately, before the\n** sqlite3_set_auxdata() interface even returns.  Hence sqlite3_set_auxdata()\n** should be called near the end of the function implementation and the\n** function implementation should not make any use of P after\n** sqlite3_set_auxdata() has been called.\n**\n** ^(In practice, metadata is preserved between function calls for\n** function parameters that are compile-time constants, including literal\n** values and [parameters] and expressions composed from the same.)^\n**\n** The value of the N parameter to these interfaces should be non-negative.\n** Future enhancements may make use of negative N values to define new\n** kinds of function caching behavior.\n**\n** These routines must be called from the same thread in which\n** the SQL function is running.\n*/\nSQLITE_API void *sqlite3_get_auxdata(sqlite3_context*, int N);\nSQLITE_API void sqlite3_set_auxdata(sqlite3_context*, int N, void*, void (*)(void*));\n\n\n/*\n** CAPI3REF: Constants Defining Special Destructor Behavior\n**\n** These are special values for the destructor that is passed in as the\n** final argument to routines like [sqlite3_result_blob()].  ^If the destructor\n** argument is SQLITE_STATIC, it means that the content pointer is constant\n** and will never change.  It does not need to be destroyed.  ^The\n** SQLITE_TRANSIENT value means that the content will likely change in\n** the near future and that SQLite should make its own private copy of\n** the content before returning.\n**\n** The typedef is necessary to work around problems in certain\n** C++ compilers.\n*/\ntypedef void (*sqlite3_destructor_type)(void*);\n#define SQLITE_STATIC      ((sqlite3_destructor_type)0)\n#define SQLITE_TRANSIENT   ((sqlite3_destructor_type)-1)\n\n/*\n** CAPI3REF: Setting The Result Of An SQL Function\n** METHOD: sqlite3_context\n**\n** These routines are used by the xFunc or xFinal callbacks that\n** implement SQL functions and aggregates.  See\n** [sqlite3_create_function()] and [sqlite3_create_function16()]\n** for additional information.\n**\n** These functions work very much like the [parameter binding] family of\n** functions used to bind values to host parameters in prepared statements.\n** Refer to the [SQL parameter] documentation for additional information.\n**\n** ^The sqlite3_result_blob() interface sets the result from\n** an application-defined function to be the BLOB whose content is pointed\n** to by the second parameter and which is N bytes long where N is the\n** third parameter.\n**\n** ^The sqlite3_result_zeroblob(C,N) and sqlite3_result_zeroblob64(C,N)\n** interfaces set the result of the application-defined function to be\n** a BLOB containing all zero bytes and N bytes in size.\n**\n** ^The sqlite3_result_double() interface sets the result from\n** an application-defined function to be a floating point value specified\n** by its 2nd argument.\n**\n** ^The sqlite3_result_error() and sqlite3_result_error16() functions\n** cause the implemented SQL function to throw an exception.\n** ^SQLite uses the string pointed to by the\n** 2nd parameter of sqlite3_result_error() or sqlite3_result_error16()\n** as the text of an error message.  ^SQLite interprets the error\n** message string from sqlite3_result_error() as UTF-8. ^SQLite\n** interprets the string from sqlite3_result_error16() as UTF-16 in native\n** byte order.  ^If the third parameter to sqlite3_result_error()\n** or sqlite3_result_error16() is negative then SQLite takes as the error\n** message all text up through the first zero character.\n** ^If the third parameter to sqlite3_result_error() or\n** sqlite3_result_error16() is non-negative then SQLite takes that many\n** bytes (not characters) from the 2nd parameter as the error message.\n** ^The sqlite3_result_error() and sqlite3_result_error16()\n** routines make a private copy of the error message text before\n** they return.  Hence, the calling function can deallocate or\n** modify the text after they return without harm.\n** ^The sqlite3_result_error_code() function changes the error code\n** returned by SQLite as a result of an error in a function.  ^By default,\n** the error code is SQLITE_ERROR.  ^A subsequent call to sqlite3_result_error()\n** or sqlite3_result_error16() resets the error code to SQLITE_ERROR.\n**\n** ^The sqlite3_result_error_toobig() interface causes SQLite to throw an\n** error indicating that a string or BLOB is too long to represent.\n**\n** ^The sqlite3_result_error_nomem() interface causes SQLite to throw an\n** error indicating that a memory allocation failed.\n**\n** ^The sqlite3_result_int() interface sets the return value\n** of the application-defined function to be the 32-bit signed integer\n** value given in the 2nd argument.\n** ^The sqlite3_result_int64() interface sets the return value\n** of the application-defined function to be the 64-bit signed integer\n** value given in the 2nd argument.\n**\n** ^The sqlite3_result_null() interface sets the return value\n** of the application-defined function to be NULL.\n**\n** ^The sqlite3_result_text(), sqlite3_result_text16(),\n** sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces\n** set the return value of the application-defined function to be\n** a text string which is represented as UTF-8, UTF-16 native byte order,\n** UTF-16 little endian, or UTF-16 big endian, respectively.\n** ^The sqlite3_result_text64() interface sets the return value of an\n** application-defined function to be a text string in an encoding\n** specified by the fifth (and last) parameter, which must be one\n** of [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE].\n** ^SQLite takes the text result from the application from\n** the 2nd parameter of the sqlite3_result_text* interfaces.\n** ^If the 3rd parameter to the sqlite3_result_text* interfaces\n** is negative, then SQLite takes result text from the 2nd parameter\n** through the first zero character.\n** ^If the 3rd parameter to the sqlite3_result_text* interfaces\n** is non-negative, then as many bytes (not characters) of the text\n** pointed to by the 2nd parameter are taken as the application-defined\n** function result.  If the 3rd parameter is non-negative, then it\n** must be the byte offset into the string where the NUL terminator would\n** appear if the string where NUL terminated.  If any NUL characters occur\n** in the string at a byte offset that is less than the value of the 3rd\n** parameter, then the resulting string will contain embedded NULs and the\n** result of expressions operating on strings with embedded NULs is undefined.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces\n** or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that\n** function as the destructor on the text or BLOB result when it has\n** finished using that result.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces or to\n** sqlite3_result_blob is the special constant SQLITE_STATIC, then SQLite\n** assumes that the text or BLOB result is in constant space and does not\n** copy the content of the parameter nor call a destructor on the content\n** when it has finished using that result.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces\n** or sqlite3_result_blob is the special constant SQLITE_TRANSIENT\n** then SQLite makes a copy of the result into space obtained\n** from [sqlite3_malloc()] before it returns.\n**\n** ^The sqlite3_result_value() interface sets the result of\n** the application-defined function to be a copy of the\n** [unprotected sqlite3_value] object specified by the 2nd parameter.  ^The\n** sqlite3_result_value() interface makes a copy of the [sqlite3_value]\n** so that the [sqlite3_value] specified in the parameter may change or\n** be deallocated after sqlite3_result_value() returns without harm.\n** ^A [protected sqlite3_value] object may always be used where an\n** [unprotected sqlite3_value] object is required, so either\n** kind of [sqlite3_value] object can be used with this interface.\n**\n** ^The sqlite3_result_pointer(C,P,T,D) interface sets the result to an\n** SQL NULL value, just like [sqlite3_result_null(C)], except that it\n** also associates the host-language pointer P or type T with that \n** NULL value such that the pointer can be retrieved within an\n** [application-defined SQL function] using [sqlite3_value_pointer()].\n** ^If the D parameter is not NULL, then it is a pointer to a destructor\n** for the P parameter.  ^SQLite invokes D with P as its only argument\n** when SQLite is finished with P.  The T parameter should be a static\n** string and preferably a string literal. The sqlite3_result_pointer()\n** routine is part of the [pointer passing interface] added for SQLite 3.20.0.\n**\n** If these routines are called from within the different thread\n** than the one containing the application-defined function that received\n** the [sqlite3_context] pointer, the results are undefined.\n*/\nSQLITE_API void sqlite3_result_blob(sqlite3_context*, const void*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_blob64(sqlite3_context*,const void*,\n                           sqlite3_uint64,void(*)(void*));\nSQLITE_API void sqlite3_result_double(sqlite3_context*, double);\nSQLITE_API void sqlite3_result_error(sqlite3_context*, const char*, int);\nSQLITE_API void sqlite3_result_error16(sqlite3_context*, const void*, int);\nSQLITE_API void sqlite3_result_error_toobig(sqlite3_context*);\nSQLITE_API void sqlite3_result_error_nomem(sqlite3_context*);\nSQLITE_API void sqlite3_result_error_code(sqlite3_context*, int);\nSQLITE_API void sqlite3_result_int(sqlite3_context*, int);\nSQLITE_API void sqlite3_result_int64(sqlite3_context*, sqlite3_int64);\nSQLITE_API void sqlite3_result_null(sqlite3_context*);\nSQLITE_API void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_text64(sqlite3_context*, const char*,sqlite3_uint64,\n                           void(*)(void*), unsigned char encoding);\nSQLITE_API void sqlite3_result_text16(sqlite3_context*, const void*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_text16le(sqlite3_context*, const void*, int,void(*)(void*));\nSQLITE_API void sqlite3_result_text16be(sqlite3_context*, const void*, int,void(*)(void*));\nSQLITE_API void sqlite3_result_value(sqlite3_context*, sqlite3_value*);\nSQLITE_API void sqlite3_result_pointer(sqlite3_context*, void*,const char*,void(*)(void*));\nSQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n);\nSQLITE_API int sqlite3_result_zeroblob64(sqlite3_context*, sqlite3_uint64 n);\n\n\n/*\n** CAPI3REF: Setting The Subtype Of An SQL Function\n** METHOD: sqlite3_context\n**\n** The sqlite3_result_subtype(C,T) function causes the subtype of\n** the result from the [application-defined SQL function] with \n** [sqlite3_context] C to be the value T.  Only the lower 8 bits \n** of the subtype T are preserved in current versions of SQLite;\n** higher order bits are discarded.\n** The number of subtype bytes preserved by SQLite might increase\n** in future releases of SQLite.\n*/\nSQLITE_API void sqlite3_result_subtype(sqlite3_context*,unsigned int);\n\n/*\n** CAPI3REF: Define New Collating Sequences\n** METHOD: sqlite3\n**\n** ^These functions add, remove, or modify a [collation] associated\n** with the [database connection] specified as the first argument.\n**\n** ^The name of the collation is a UTF-8 string\n** for sqlite3_create_collation() and sqlite3_create_collation_v2()\n** and a UTF-16 string in native byte order for sqlite3_create_collation16().\n** ^Collation names that compare equal according to [sqlite3_strnicmp()] are\n** considered to be the same name.\n**\n** ^(The third argument (eTextRep) must be one of the constants:\n** <ul>\n** <li> [SQLITE_UTF8],\n** <li> [SQLITE_UTF16LE],\n** <li> [SQLITE_UTF16BE],\n** <li> [SQLITE_UTF16], or\n** <li> [SQLITE_UTF16_ALIGNED].\n** </ul>)^\n** ^The eTextRep argument determines the encoding of strings passed\n** to the collating function callback, xCallback.\n** ^The [SQLITE_UTF16] and [SQLITE_UTF16_ALIGNED] values for eTextRep\n** force strings to be UTF16 with native byte order.\n** ^The [SQLITE_UTF16_ALIGNED] value for eTextRep forces strings to begin\n** on an even byte address.\n**\n** ^The fourth argument, pArg, is an application data pointer that is passed\n** through as the first argument to the collating function callback.\n**\n** ^The fifth argument, xCallback, is a pointer to the collating function.\n** ^Multiple collating functions can be registered using the same name but\n** with different eTextRep parameters and SQLite will use whichever\n** function requires the least amount of data transformation.\n** ^If the xCallback argument is NULL then the collating function is\n** deleted.  ^When all collating functions having the same name are deleted,\n** that collation is no longer usable.\n**\n** ^The collating function callback is invoked with a copy of the pArg \n** application data pointer and with two strings in the encoding specified\n** by the eTextRep argument.  The collating function must return an\n** integer that is negative, zero, or positive\n** if the first string is less than, equal to, or greater than the second,\n** respectively.  A collating function must always return the same answer\n** given the same inputs.  If two or more collating functions are registered\n** to the same collation name (using different eTextRep values) then all\n** must give an equivalent answer when invoked with equivalent strings.\n** The collating function must obey the following properties for all\n** strings A, B, and C:\n**\n** <ol>\n** <li> If A==B then B==A.\n** <li> If A==B and B==C then A==C.\n** <li> If A&lt;B THEN B&gt;A.\n** <li> If A&lt;B and B&lt;C then A&lt;C.\n** </ol>\n**\n** If a collating function fails any of the above constraints and that\n** collating function is  registered and used, then the behavior of SQLite\n** is undefined.\n**\n** ^The sqlite3_create_collation_v2() works like sqlite3_create_collation()\n** with the addition that the xDestroy callback is invoked on pArg when\n** the collating function is deleted.\n** ^Collating functions are deleted when they are overridden by later\n** calls to the collation creation functions or when the\n** [database connection] is closed using [sqlite3_close()].\n**\n** ^The xDestroy callback is <u>not</u> called if the \n** sqlite3_create_collation_v2() function fails.  Applications that invoke\n** sqlite3_create_collation_v2() with a non-NULL xDestroy argument should \n** check the return code and dispose of the application data pointer\n** themselves rather than expecting SQLite to deal with it for them.\n** This is different from every other SQLite interface.  The inconsistency \n** is unfortunate but cannot be changed without breaking backwards \n** compatibility.\n**\n** See also:  [sqlite3_collation_needed()] and [sqlite3_collation_needed16()].\n*/\nSQLITE_API int sqlite3_create_collation(\n  sqlite3*, \n  const char *zName, \n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n);\nSQLITE_API int sqlite3_create_collation_v2(\n  sqlite3*, \n  const char *zName, \n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*),\n  void(*xDestroy)(void*)\n);\nSQLITE_API int sqlite3_create_collation16(\n  sqlite3*, \n  const void *zName,\n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n);\n\n/*\n** CAPI3REF: Collation Needed Callbacks\n** METHOD: sqlite3\n**\n** ^To avoid having to register all collation sequences before a database\n** can be used, a single callback function may be registered with the\n** [database connection] to be invoked whenever an undefined collation\n** sequence is required.\n**\n** ^If the function is registered using the sqlite3_collation_needed() API,\n** then it is passed the names of undefined collation sequences as strings\n** encoded in UTF-8. ^If sqlite3_collation_needed16() is used,\n** the names are passed as UTF-16 in machine native byte order.\n** ^A call to either function replaces the existing collation-needed callback.\n**\n** ^(When the callback is invoked, the first argument passed is a copy\n** of the second argument to sqlite3_collation_needed() or\n** sqlite3_collation_needed16().  The second argument is the database\n** connection.  The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE],\n** or [SQLITE_UTF16LE], indicating the most desirable form of the collation\n** sequence function required.  The fourth parameter is the name of the\n** required collation sequence.)^\n**\n** The callback function should register the desired collation using\n** [sqlite3_create_collation()], [sqlite3_create_collation16()], or\n** [sqlite3_create_collation_v2()].\n*/\nSQLITE_API int sqlite3_collation_needed(\n  sqlite3*, \n  void*, \n  void(*)(void*,sqlite3*,int eTextRep,const char*)\n);\nSQLITE_API int sqlite3_collation_needed16(\n  sqlite3*, \n  void*,\n  void(*)(void*,sqlite3*,int eTextRep,const void*)\n);\n\n#ifdef SQLITE_HAS_CODEC\n/*\n** Specify the key for an encrypted database.  This routine should be\n** called right after sqlite3_open().\n**\n** The code to implement this API is not available in the public release\n** of SQLite.\n*/\nSQLITE_API int sqlite3_key(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const void *pKey, int nKey     /* The key */\n);\nSQLITE_API int sqlite3_key_v2(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const char *zDbName,           /* Name of the database */\n  const void *pKey, int nKey     /* The key */\n);\n\n/*\n** Change the key on an open database.  If the current database is not\n** encrypted, this routine will encrypt it.  If pNew==0 or nNew==0, the\n** database is decrypted.\n**\n** The code to implement this API is not available in the public release\n** of SQLite.\n*/\nSQLITE_API int sqlite3_rekey(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const void *pKey, int nKey     /* The new key */\n);\nSQLITE_API int sqlite3_rekey_v2(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const char *zDbName,           /* Name of the database */\n  const void *pKey, int nKey     /* The new key */\n);\n\n/*\n** Specify the activation key for a SEE database.  Unless \n** activated, none of the SEE routines will work.\n*/\nSQLITE_API void sqlite3_activate_see(\n  const char *zPassPhrase        /* Activation phrase */\n);\n#endif\n\n#ifdef SQLITE_ENABLE_CEROD\n/*\n** Specify the activation key for a CEROD database.  Unless \n** activated, none of the CEROD routines will work.\n*/\nSQLITE_API void sqlite3_activate_cerod(\n  const char *zPassPhrase        /* Activation phrase */\n);\n#endif\n\n/*\n** CAPI3REF: Suspend Execution For A Short Time\n**\n** The sqlite3_sleep() function causes the current thread to suspend execution\n** for at least a number of milliseconds specified in its parameter.\n**\n** If the operating system does not support sleep requests with\n** millisecond time resolution, then the time will be rounded up to\n** the nearest second. The number of milliseconds of sleep actually\n** requested from the operating system is returned.\n**\n** ^SQLite implements this interface by calling the xSleep()\n** method of the default [sqlite3_vfs] object.  If the xSleep() method\n** of the default VFS is not implemented correctly, or not implemented at\n** all, then the behavior of sqlite3_sleep() may deviate from the description\n** in the previous paragraphs.\n*/\nSQLITE_API int sqlite3_sleep(int);\n\n/*\n** CAPI3REF: Name Of The Folder Holding Temporary Files\n**\n** ^(If this global variable is made to point to a string which is\n** the name of a folder (a.k.a. directory), then all temporary files\n** created by SQLite when using a built-in [sqlite3_vfs | VFS]\n** will be placed in that directory.)^  ^If this variable\n** is a NULL pointer, then SQLite performs a search for an appropriate\n** temporary file directory.\n**\n** Applications are strongly discouraged from using this global variable.\n** It is required to set a temporary folder on Windows Runtime (WinRT).\n** But for all other platforms, it is highly recommended that applications\n** neither read nor write this variable.  This global variable is a relic\n** that exists for backwards compatibility of legacy applications and should\n** be avoided in new projects.\n**\n** It is not safe to read or modify this variable in more than one\n** thread at a time.  It is not safe to read or modify this variable\n** if a [database connection] is being used at the same time in a separate\n** thread.\n** It is intended that this variable be set once\n** as part of process initialization and before any SQLite interface\n** routines have been called and that this variable remain unchanged\n** thereafter.\n**\n** ^The [temp_store_directory pragma] may modify this variable and cause\n** it to point to memory obtained from [sqlite3_malloc].  ^Furthermore,\n** the [temp_store_directory pragma] always assumes that any string\n** that this variable points to is held in memory obtained from \n** [sqlite3_malloc] and the pragma may attempt to free that memory\n** using [sqlite3_free].\n** Hence, if this variable is modified directly, either it should be\n** made NULL or made to point to memory obtained from [sqlite3_malloc]\n** or else the use of the [temp_store_directory pragma] should be avoided.\n** Except when requested by the [temp_store_directory pragma], SQLite\n** does not free the memory that sqlite3_temp_directory points to.  If\n** the application wants that memory to be freed, it must do\n** so itself, taking care to only do so after all [database connection]\n** objects have been destroyed.\n**\n** <b>Note to Windows Runtime users:</b>  The temporary directory must be set\n** prior to calling [sqlite3_open] or [sqlite3_open_v2].  Otherwise, various\n** features that require the use of temporary files may fail.  Here is an\n** example of how to do this using C++ with the Windows Runtime:\n**\n** <blockquote><pre>\n** LPCWSTR zPath = Windows::Storage::ApplicationData::Current->\n** &nbsp;     TemporaryFolder->Path->Data();\n** char zPathBuf&#91;MAX_PATH + 1&#93;;\n** memset(zPathBuf, 0, sizeof(zPathBuf));\n** WideCharToMultiByte(CP_UTF8, 0, zPath, -1, zPathBuf, sizeof(zPathBuf),\n** &nbsp;     NULL, NULL);\n** sqlite3_temp_directory = sqlite3_mprintf(\"%s\", zPathBuf);\n** </pre></blockquote>\n*/\nSQLITE_API SQLITE_EXTERN char *sqlite3_temp_directory;\n\n/*\n** CAPI3REF: Name Of The Folder Holding Database Files\n**\n** ^(If this global variable is made to point to a string which is\n** the name of a folder (a.k.a. directory), then all database files\n** specified with a relative pathname and created or accessed by\n** SQLite when using a built-in windows [sqlite3_vfs | VFS] will be assumed\n** to be relative to that directory.)^ ^If this variable is a NULL\n** pointer, then SQLite assumes that all database files specified\n** with a relative pathname are relative to the current directory\n** for the process.  Only the windows VFS makes use of this global\n** variable; it is ignored by the unix VFS.\n**\n** Changing the value of this variable while a database connection is\n** open can result in a corrupt database.\n**\n** It is not safe to read or modify this variable in more than one\n** thread at a time.  It is not safe to read or modify this variable\n** if a [database connection] is being used at the same time in a separate\n** thread.\n** It is intended that this variable be set once\n** as part of process initialization and before any SQLite interface\n** routines have been called and that this variable remain unchanged\n** thereafter.\n**\n** ^The [data_store_directory pragma] may modify this variable and cause\n** it to point to memory obtained from [sqlite3_malloc].  ^Furthermore,\n** the [data_store_directory pragma] always assumes that any string\n** that this variable points to is held in memory obtained from \n** [sqlite3_malloc] and the pragma may attempt to free that memory\n** using [sqlite3_free].\n** Hence, if this variable is modified directly, either it should be\n** made NULL or made to point to memory obtained from [sqlite3_malloc]\n** or else the use of the [data_store_directory pragma] should be avoided.\n*/\nSQLITE_API SQLITE_EXTERN char *sqlite3_data_directory;\n\n/*\n** CAPI3REF: Test For Auto-Commit Mode\n** KEYWORDS: {autocommit mode}\n** METHOD: sqlite3\n**\n** ^The sqlite3_get_autocommit() interface returns non-zero or\n** zero if the given database connection is or is not in autocommit mode,\n** respectively.  ^Autocommit mode is on by default.\n** ^Autocommit mode is disabled by a [BEGIN] statement.\n** ^Autocommit mode is re-enabled by a [COMMIT] or [ROLLBACK].\n**\n** If certain kinds of errors occur on a statement within a multi-statement\n** transaction (errors including [SQLITE_FULL], [SQLITE_IOERR],\n** [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the\n** transaction might be rolled back automatically.  The only way to\n** find out whether SQLite automatically rolled back the transaction after\n** an error is to use this function.\n**\n** If another thread changes the autocommit status of the database\n** connection while this routine is running, then the return value\n** is undefined.\n*/\nSQLITE_API int sqlite3_get_autocommit(sqlite3*);\n\n/*\n** CAPI3REF: Find The Database Handle Of A Prepared Statement\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_db_handle interface returns the [database connection] handle\n** to which a [prepared statement] belongs.  ^The [database connection]\n** returned by sqlite3_db_handle is the same [database connection]\n** that was the first argument\n** to the [sqlite3_prepare_v2()] call (or its variants) that was used to\n** create the statement in the first place.\n*/\nSQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Return The Filename For A Database Connection\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_filename(D,N) interface returns a pointer to a filename\n** associated with database N of connection D.  ^The main database file\n** has the name \"main\".  If there is no attached database N on the database\n** connection D, or if database N is a temporary or in-memory database, then\n** a NULL pointer is returned.\n**\n** ^The filename returned by this function is the output of the\n** xFullPathname method of the [VFS].  ^In other words, the filename\n** will be an absolute pathname, even if the filename used\n** to open the database originally was a URI or relative pathname.\n*/\nSQLITE_API const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName);\n\n/*\n** CAPI3REF: Determine if a database is read-only\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_readonly(D,N) interface returns 1 if the database N\n** of connection D is read-only, 0 if it is read/write, or -1 if N is not\n** the name of a database on connection D.\n*/\nSQLITE_API int sqlite3_db_readonly(sqlite3 *db, const char *zDbName);\n\n/*\n** CAPI3REF: Find the next prepared statement\n** METHOD: sqlite3\n**\n** ^This interface returns a pointer to the next [prepared statement] after\n** pStmt associated with the [database connection] pDb.  ^If pStmt is NULL\n** then this interface returns a pointer to the first prepared statement\n** associated with the database connection pDb.  ^If no prepared statement\n** satisfies the conditions of this routine, it returns NULL.\n**\n** The [database connection] pointer D in a call to\n** [sqlite3_next_stmt(D,S)] must refer to an open database\n** connection and in particular must not be a NULL pointer.\n*/\nSQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Commit And Rollback Notification Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_commit_hook() interface registers a callback\n** function to be invoked whenever a transaction is [COMMIT | committed].\n** ^Any callback set by a previous call to sqlite3_commit_hook()\n** for the same database connection is overridden.\n** ^The sqlite3_rollback_hook() interface registers a callback\n** function to be invoked whenever a transaction is [ROLLBACK | rolled back].\n** ^Any callback set by a previous call to sqlite3_rollback_hook()\n** for the same database connection is overridden.\n** ^The pArg argument is passed through to the callback.\n** ^If the callback on a commit hook function returns non-zero,\n** then the commit is converted into a rollback.\n**\n** ^The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions\n** return the P argument from the previous call of the same function\n** on the same [database connection] D, or NULL for\n** the first call for each function on D.\n**\n** The commit and rollback hook callbacks are not reentrant.\n** The callback implementation must not do anything that will modify\n** the database connection that invoked the callback.  Any actions\n** to modify the database connection must be deferred until after the\n** completion of the [sqlite3_step()] call that triggered the commit\n** or rollback hook in the first place.\n** Note that running any other SQL statements, including SELECT statements,\n** or merely calling [sqlite3_prepare_v2()] and [sqlite3_step()] will modify\n** the database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^Registering a NULL function disables the callback.\n**\n** ^When the commit hook callback routine returns zero, the [COMMIT]\n** operation is allowed to continue normally.  ^If the commit hook\n** returns non-zero, then the [COMMIT] is converted into a [ROLLBACK].\n** ^The rollback hook is invoked on a rollback that results from a commit\n** hook returning non-zero, just as it would be with any other rollback.\n**\n** ^For the purposes of this API, a transaction is said to have been\n** rolled back if an explicit \"ROLLBACK\" statement is executed, or\n** an error or constraint causes an implicit rollback to occur.\n** ^The rollback callback is not invoked if a transaction is\n** automatically rolled back because the database connection is closed.\n**\n** See also the [sqlite3_update_hook()] interface.\n*/\nSQLITE_API void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);\nSQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);\n\n/*\n** CAPI3REF: Data Change Notification Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_update_hook() interface registers a callback function\n** with the [database connection] identified by the first argument\n** to be invoked whenever a row is updated, inserted or deleted in\n** a [rowid table].\n** ^Any callback set by a previous call to this function\n** for the same database connection is overridden.\n**\n** ^The second argument is a pointer to the function to invoke when a\n** row is updated, inserted or deleted in a rowid table.\n** ^The first argument to the callback is a copy of the third argument\n** to sqlite3_update_hook().\n** ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE],\n** or [SQLITE_UPDATE], depending on the operation that caused the callback\n** to be invoked.\n** ^The third and fourth arguments to the callback contain pointers to the\n** database and table name containing the affected row.\n** ^The final callback parameter is the [rowid] of the row.\n** ^In the case of an update, this is the [rowid] after the update takes place.\n**\n** ^(The update hook is not invoked when internal system tables are\n** modified (i.e. sqlite_master and sqlite_sequence).)^\n** ^The update hook is not invoked when [WITHOUT ROWID] tables are modified.\n**\n** ^In the current implementation, the update hook\n** is not invoked when conflicting rows are deleted because of an\n** [ON CONFLICT | ON CONFLICT REPLACE] clause.  ^Nor is the update hook\n** invoked when rows are deleted using the [truncate optimization].\n** The exceptions defined in this paragraph might change in a future\n** release of SQLite.\n**\n** The update hook implementation must not do anything that will modify\n** the database connection that invoked the update hook.  Any actions\n** to modify the database connection must be deferred until after the\n** completion of the [sqlite3_step()] call that triggered the update hook.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^The sqlite3_update_hook(D,C,P) function\n** returns the P argument from the previous call\n** on the same [database connection] D, or NULL for\n** the first call on D.\n**\n** See also the [sqlite3_commit_hook()], [sqlite3_rollback_hook()],\n** and [sqlite3_preupdate_hook()] interfaces.\n*/\nSQLITE_API void *sqlite3_update_hook(\n  sqlite3*, \n  void(*)(void *,int ,char const *,char const *,sqlite3_int64),\n  void*\n);\n\n/*\n** CAPI3REF: Enable Or Disable Shared Pager Cache\n**\n** ^(This routine enables or disables the sharing of the database cache\n** and schema data structures between [database connection | connections]\n** to the same database. Sharing is enabled if the argument is true\n** and disabled if the argument is false.)^\n**\n** ^Cache sharing is enabled and disabled for an entire process.\n** This is a change as of SQLite [version 3.5.0] ([dateof:3.5.0]). \n** In prior versions of SQLite,\n** sharing was enabled or disabled for each thread separately.\n**\n** ^(The cache sharing mode set by this interface effects all subsequent\n** calls to [sqlite3_open()], [sqlite3_open_v2()], and [sqlite3_open16()].\n** Existing database connections continue use the sharing mode\n** that was in effect at the time they were opened.)^\n**\n** ^(This routine returns [SQLITE_OK] if shared cache was enabled or disabled\n** successfully.  An [error code] is returned otherwise.)^\n**\n** ^Shared cache is disabled by default. But this might change in\n** future releases of SQLite.  Applications that care about shared\n** cache setting should set it explicitly.\n**\n** Note: This method is disabled on MacOS X 10.7 and iOS version 5.0\n** and will always return SQLITE_MISUSE. On those systems, \n** shared cache mode should be enabled per-database connection via \n** [sqlite3_open_v2()] with [SQLITE_OPEN_SHAREDCACHE].\n**\n** This interface is threadsafe on processors where writing a\n** 32-bit integer is atomic.\n**\n** See Also:  [SQLite Shared-Cache Mode]\n*/\nSQLITE_API int sqlite3_enable_shared_cache(int);\n\n/*\n** CAPI3REF: Attempt To Free Heap Memory\n**\n** ^The sqlite3_release_memory() interface attempts to free N bytes\n** of heap memory by deallocating non-essential memory allocations\n** held by the database library.   Memory used to cache database\n** pages to improve performance is an example of non-essential memory.\n** ^sqlite3_release_memory() returns the number of bytes actually freed,\n** which might be more or less than the amount requested.\n** ^The sqlite3_release_memory() routine is a no-op returning zero\n** if SQLite is not compiled with [SQLITE_ENABLE_MEMORY_MANAGEMENT].\n**\n** See also: [sqlite3_db_release_memory()]\n*/\nSQLITE_API int sqlite3_release_memory(int);\n\n/*\n** CAPI3REF: Free Memory Used By A Database Connection\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_release_memory(D) interface attempts to free as much heap\n** memory as possible from database connection D. Unlike the\n** [sqlite3_release_memory()] interface, this interface is in effect even\n** when the [SQLITE_ENABLE_MEMORY_MANAGEMENT] compile-time option is\n** omitted.\n**\n** See also: [sqlite3_release_memory()]\n*/\nSQLITE_API int sqlite3_db_release_memory(sqlite3*);\n\n/*\n** CAPI3REF: Impose A Limit On Heap Size\n**\n** ^The sqlite3_soft_heap_limit64() interface sets and/or queries the\n** soft limit on the amount of heap memory that may be allocated by SQLite.\n** ^SQLite strives to keep heap memory utilization below the soft heap\n** limit by reducing the number of pages held in the page cache\n** as heap memory usages approaches the limit.\n** ^The soft heap limit is \"soft\" because even though SQLite strives to stay\n** below the limit, it will exceed the limit rather than generate\n** an [SQLITE_NOMEM] error.  In other words, the soft heap limit \n** is advisory only.\n**\n** ^The return value from sqlite3_soft_heap_limit64() is the size of\n** the soft heap limit prior to the call, or negative in the case of an\n** error.  ^If the argument N is negative\n** then no change is made to the soft heap limit.  Hence, the current\n** size of the soft heap limit can be determined by invoking\n** sqlite3_soft_heap_limit64() with a negative argument.\n**\n** ^If the argument N is zero then the soft heap limit is disabled.\n**\n** ^(The soft heap limit is not enforced in the current implementation\n** if one or more of following conditions are true:\n**\n** <ul>\n** <li> The soft heap limit is set to zero.\n** <li> Memory accounting is disabled using a combination of the\n**      [sqlite3_config]([SQLITE_CONFIG_MEMSTATUS],...) start-time option and\n**      the [SQLITE_DEFAULT_MEMSTATUS] compile-time option.\n** <li> An alternative page cache implementation is specified using\n**      [sqlite3_config]([SQLITE_CONFIG_PCACHE2],...).\n** <li> The page cache allocates from its own memory pool supplied\n**      by [sqlite3_config]([SQLITE_CONFIG_PAGECACHE],...) rather than\n**      from the heap.\n** </ul>)^\n**\n** Beginning with SQLite [version 3.7.3] ([dateof:3.7.3]), \n** the soft heap limit is enforced\n** regardless of whether or not the [SQLITE_ENABLE_MEMORY_MANAGEMENT]\n** compile-time option is invoked.  With [SQLITE_ENABLE_MEMORY_MANAGEMENT],\n** the soft heap limit is enforced on every memory allocation.  Without\n** [SQLITE_ENABLE_MEMORY_MANAGEMENT], the soft heap limit is only enforced\n** when memory is allocated by the page cache.  Testing suggests that because\n** the page cache is the predominate memory user in SQLite, most\n** applications will achieve adequate soft heap limit enforcement without\n** the use of [SQLITE_ENABLE_MEMORY_MANAGEMENT].\n**\n** The circumstances under which SQLite will enforce the soft heap limit may\n** changes in future releases of SQLite.\n*/\nSQLITE_API sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 N);\n\n/*\n** CAPI3REF: Deprecated Soft Heap Limit Interface\n** DEPRECATED\n**\n** This is a deprecated version of the [sqlite3_soft_heap_limit64()]\n** interface.  This routine is provided for historical compatibility\n** only.  All new applications should use the\n** [sqlite3_soft_heap_limit64()] interface rather than this one.\n*/\nSQLITE_API SQLITE_DEPRECATED void sqlite3_soft_heap_limit(int N);\n\n\n/*\n** CAPI3REF: Extract Metadata About A Column Of A Table\n** METHOD: sqlite3\n**\n** ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns\n** information about column C of table T in database D\n** on [database connection] X.)^  ^The sqlite3_table_column_metadata()\n** interface returns SQLITE_OK and fills in the non-NULL pointers in\n** the final five arguments with appropriate values if the specified\n** column exists.  ^The sqlite3_table_column_metadata() interface returns\n** SQLITE_ERROR and if the specified column does not exist.\n** ^If the column-name parameter to sqlite3_table_column_metadata() is a\n** NULL pointer, then this routine simply checks for the existence of the\n** table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it\n** does not.  If the table name parameter T in a call to\n** sqlite3_table_column_metadata(X,D,T,C,...) is NULL then the result is\n** undefined behavior.\n**\n** ^The column is identified by the second, third and fourth parameters to\n** this function. ^(The second parameter is either the name of the database\n** (i.e. \"main\", \"temp\", or an attached database) containing the specified\n** table or NULL.)^ ^If it is NULL, then all attached databases are searched\n** for the table using the same algorithm used by the database engine to\n** resolve unqualified table references.\n**\n** ^The third and fourth parameters to this function are the table and column\n** name of the desired column, respectively.\n**\n** ^Metadata is returned by writing to the memory locations passed as the 5th\n** and subsequent parameters to this function. ^Any of these arguments may be\n** NULL, in which case the corresponding element of metadata is omitted.\n**\n** ^(<blockquote>\n** <table border=\"1\">\n** <tr><th> Parameter <th> Output<br>Type <th>  Description\n**\n** <tr><td> 5th <td> const char* <td> Data type\n** <tr><td> 6th <td> const char* <td> Name of default collation sequence\n** <tr><td> 7th <td> int         <td> True if column has a NOT NULL constraint\n** <tr><td> 8th <td> int         <td> True if column is part of the PRIMARY KEY\n** <tr><td> 9th <td> int         <td> True if column is [AUTOINCREMENT]\n** </table>\n** </blockquote>)^\n**\n** ^The memory pointed to by the character pointers returned for the\n** declaration type and collation sequence is valid until the next\n** call to any SQLite API function.\n**\n** ^If the specified table is actually a view, an [error code] is returned.\n**\n** ^If the specified column is \"rowid\", \"oid\" or \"_rowid_\" and the table \n** is not a [WITHOUT ROWID] table and an\n** [INTEGER PRIMARY KEY] column has been explicitly declared, then the output\n** parameters are set for the explicitly declared column. ^(If there is no\n** [INTEGER PRIMARY KEY] column, then the outputs\n** for the [rowid] are set as follows:\n**\n** <pre>\n**     data type: \"INTEGER\"\n**     collation sequence: \"BINARY\"\n**     not null: 0\n**     primary key: 1\n**     auto increment: 0\n** </pre>)^\n**\n** ^This function causes all database schemas to be read from disk and\n** parsed, if that has not already been done, and returns an error if\n** any errors are encountered while loading the schema.\n*/\nSQLITE_API int sqlite3_table_column_metadata(\n  sqlite3 *db,                /* Connection handle */\n  const char *zDbName,        /* Database name or NULL */\n  const char *zTableName,     /* Table name */\n  const char *zColumnName,    /* Column name */\n  char const **pzDataType,    /* OUTPUT: Declared data type */\n  char const **pzCollSeq,     /* OUTPUT: Collation sequence name */\n  int *pNotNull,              /* OUTPUT: True if NOT NULL constraint exists */\n  int *pPrimaryKey,           /* OUTPUT: True if column part of PK */\n  int *pAutoinc               /* OUTPUT: True if column is auto-increment */\n);\n\n/*\n** CAPI3REF: Load An Extension\n** METHOD: sqlite3\n**\n** ^This interface loads an SQLite extension library from the named file.\n**\n** ^The sqlite3_load_extension() interface attempts to load an\n** [SQLite extension] library contained in the file zFile.  If\n** the file cannot be loaded directly, attempts are made to load\n** with various operating-system specific extensions added.\n** So for example, if \"samplelib\" cannot be loaded, then names like\n** \"samplelib.so\" or \"samplelib.dylib\" or \"samplelib.dll\" might\n** be tried also.\n**\n** ^The entry point is zProc.\n** ^(zProc may be 0, in which case SQLite will try to come up with an\n** entry point name on its own.  It first tries \"sqlite3_extension_init\".\n** If that does not work, it constructs a name \"sqlite3_X_init\" where the\n** X is consists of the lower-case equivalent of all ASCII alphabetic\n** characters in the filename from the last \"/\" to the first following\n** \".\" and omitting any initial \"lib\".)^\n** ^The sqlite3_load_extension() interface returns\n** [SQLITE_OK] on success and [SQLITE_ERROR] if something goes wrong.\n** ^If an error occurs and pzErrMsg is not 0, then the\n** [sqlite3_load_extension()] interface shall attempt to\n** fill *pzErrMsg with error message text stored in memory\n** obtained from [sqlite3_malloc()]. The calling function\n** should free this memory by calling [sqlite3_free()].\n**\n** ^Extension loading must be enabled using\n** [sqlite3_enable_load_extension()] or\n** [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],1,NULL)\n** prior to calling this API,\n** otherwise an error will be returned.\n**\n** <b>Security warning:</b> It is recommended that the \n** [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method be used to enable only this\n** interface.  The use of the [sqlite3_enable_load_extension()] interface\n** should be avoided.  This will keep the SQL function [load_extension()]\n** disabled and prevent SQL injections from giving attackers\n** access to extension loading capabilities.\n**\n** See also the [load_extension() SQL function].\n*/\nSQLITE_API int sqlite3_load_extension(\n  sqlite3 *db,          /* Load the extension into this database connection */\n  const char *zFile,    /* Name of the shared library containing extension */\n  const char *zProc,    /* Entry point.  Derived from zFile if 0 */\n  char **pzErrMsg       /* Put error message here if not 0 */\n);\n\n/*\n** CAPI3REF: Enable Or Disable Extension Loading\n** METHOD: sqlite3\n**\n** ^So as not to open security holes in older applications that are\n** unprepared to deal with [extension loading], and as a means of disabling\n** [extension loading] while evaluating user-entered SQL, the following API\n** is provided to turn the [sqlite3_load_extension()] mechanism on and off.\n**\n** ^Extension loading is off by default.\n** ^Call the sqlite3_enable_load_extension() routine with onoff==1\n** to turn extension loading on and call it with onoff==0 to turn\n** it back off again.\n**\n** ^This interface enables or disables both the C-API\n** [sqlite3_load_extension()] and the SQL function [load_extension()].\n** ^(Use [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],..)\n** to enable or disable only the C-API.)^\n**\n** <b>Security warning:</b> It is recommended that extension loading\n** be disabled using the [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method\n** rather than this interface, so the [load_extension()] SQL function\n** remains disabled. This will prevent SQL injections from giving attackers\n** access to extension loading capabilities.\n*/\nSQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff);\n\n/*\n** CAPI3REF: Automatically Load Statically Linked Extensions\n**\n** ^This interface causes the xEntryPoint() function to be invoked for\n** each new [database connection] that is created.  The idea here is that\n** xEntryPoint() is the entry point for a statically linked [SQLite extension]\n** that is to be automatically loaded into all new database connections.\n**\n** ^(Even though the function prototype shows that xEntryPoint() takes\n** no arguments and returns void, SQLite invokes xEntryPoint() with three\n** arguments and expects an integer result as if the signature of the\n** entry point where as follows:\n**\n** <blockquote><pre>\n** &nbsp;  int xEntryPoint(\n** &nbsp;    sqlite3 *db,\n** &nbsp;    const char **pzErrMsg,\n** &nbsp;    const struct sqlite3_api_routines *pThunk\n** &nbsp;  );\n** </pre></blockquote>)^\n**\n** If the xEntryPoint routine encounters an error, it should make *pzErrMsg\n** point to an appropriate error message (obtained from [sqlite3_mprintf()])\n** and return an appropriate [error code].  ^SQLite ensures that *pzErrMsg\n** is NULL before calling the xEntryPoint().  ^SQLite will invoke\n** [sqlite3_free()] on *pzErrMsg after xEntryPoint() returns.  ^If any\n** xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()],\n** or [sqlite3_open_v2()] call that provoked the xEntryPoint() will fail.\n**\n** ^Calling sqlite3_auto_extension(X) with an entry point X that is already\n** on the list of automatic extensions is a harmless no-op. ^No entry point\n** will be called more than once for each database connection that is opened.\n**\n** See also: [sqlite3_reset_auto_extension()]\n** and [sqlite3_cancel_auto_extension()]\n*/\nSQLITE_API int sqlite3_auto_extension(void(*xEntryPoint)(void));\n\n/*\n** CAPI3REF: Cancel Automatic Extension Loading\n**\n** ^The [sqlite3_cancel_auto_extension(X)] interface unregisters the\n** initialization routine X that was registered using a prior call to\n** [sqlite3_auto_extension(X)].  ^The [sqlite3_cancel_auto_extension(X)]\n** routine returns 1 if initialization routine X was successfully \n** unregistered and it returns 0 if X was not on the list of initialization\n** routines.\n*/\nSQLITE_API int sqlite3_cancel_auto_extension(void(*xEntryPoint)(void));\n\n/*\n** CAPI3REF: Reset Automatic Extension Loading\n**\n** ^This interface disables all automatic extensions previously\n** registered using [sqlite3_auto_extension()].\n*/\nSQLITE_API void sqlite3_reset_auto_extension(void);\n\n/*\n** The interface to the virtual-table mechanism is currently considered\n** to be experimental.  The interface might change in incompatible ways.\n** If this is a problem for you, do not use the interface at this time.\n**\n** When the virtual-table mechanism stabilizes, we will declare the\n** interface fixed, support it indefinitely, and remove this comment.\n*/\n\n/*\n** Structures used by the virtual table interface\n*/\ntypedef struct sqlite3_vtab sqlite3_vtab;\ntypedef struct sqlite3_index_info sqlite3_index_info;\ntypedef struct sqlite3_vtab_cursor sqlite3_vtab_cursor;\ntypedef struct sqlite3_module sqlite3_module;\n\n/*\n** CAPI3REF: Virtual Table Object\n** KEYWORDS: sqlite3_module {virtual table module}\n**\n** This structure, sometimes called a \"virtual table module\", \n** defines the implementation of a [virtual tables].  \n** This structure consists mostly of methods for the module.\n**\n** ^A virtual table module is created by filling in a persistent\n** instance of this structure and passing a pointer to that instance\n** to [sqlite3_create_module()] or [sqlite3_create_module_v2()].\n** ^The registration remains valid until it is replaced by a different\n** module or until the [database connection] closes.  The content\n** of this structure must not change while it is registered with\n** any database connection.\n*/\nstruct sqlite3_module {\n  int iVersion;\n  int (*xCreate)(sqlite3*, void *pAux,\n               int argc, const char *const*argv,\n               sqlite3_vtab **ppVTab, char**);\n  int (*xConnect)(sqlite3*, void *pAux,\n               int argc, const char *const*argv,\n               sqlite3_vtab **ppVTab, char**);\n  int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);\n  int (*xDisconnect)(sqlite3_vtab *pVTab);\n  int (*xDestroy)(sqlite3_vtab *pVTab);\n  int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);\n  int (*xClose)(sqlite3_vtab_cursor*);\n  int (*xFilter)(sqlite3_vtab_cursor*, int idxNum, const char *idxStr,\n                int argc, sqlite3_value **argv);\n  int (*xNext)(sqlite3_vtab_cursor*);\n  int (*xEof)(sqlite3_vtab_cursor*);\n  int (*xColumn)(sqlite3_vtab_cursor*, sqlite3_context*, int);\n  int (*xRowid)(sqlite3_vtab_cursor*, sqlite3_int64 *pRowid);\n  int (*xUpdate)(sqlite3_vtab *, int, sqlite3_value **, sqlite3_int64 *);\n  int (*xBegin)(sqlite3_vtab *pVTab);\n  int (*xSync)(sqlite3_vtab *pVTab);\n  int (*xCommit)(sqlite3_vtab *pVTab);\n  int (*xRollback)(sqlite3_vtab *pVTab);\n  int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,\n                       void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),\n                       void **ppArg);\n  int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);\n  /* The methods above are in version 1 of the sqlite_module object. Those \n  ** below are for version 2 and greater. */\n  int (*xSavepoint)(sqlite3_vtab *pVTab, int);\n  int (*xRelease)(sqlite3_vtab *pVTab, int);\n  int (*xRollbackTo)(sqlite3_vtab *pVTab, int);\n};\n\n/*\n** CAPI3REF: Virtual Table Indexing Information\n** KEYWORDS: sqlite3_index_info\n**\n** The sqlite3_index_info structure and its substructures is used as part\n** of the [virtual table] interface to\n** pass information into and receive the reply from the [xBestIndex]\n** method of a [virtual table module].  The fields under **Inputs** are the\n** inputs to xBestIndex and are read-only.  xBestIndex inserts its\n** results into the **Outputs** fields.\n**\n** ^(The aConstraint[] array records WHERE clause constraints of the form:\n**\n** <blockquote>column OP expr</blockquote>\n**\n** where OP is =, &lt;, &lt;=, &gt;, or &gt;=.)^  ^(The particular operator is\n** stored in aConstraint[].op using one of the\n** [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^\n** ^(The index of the column is stored in\n** aConstraint[].iColumn.)^  ^(aConstraint[].usable is TRUE if the\n** expr on the right-hand side can be evaluated (and thus the constraint\n** is usable) and false if it cannot.)^\n**\n** ^The optimizer automatically inverts terms of the form \"expr OP column\"\n** and makes other simplifications to the WHERE clause in an attempt to\n** get as many WHERE clause terms into the form shown above as possible.\n** ^The aConstraint[] array only reports WHERE clause terms that are\n** relevant to the particular virtual table being queried.\n**\n** ^Information about the ORDER BY clause is stored in aOrderBy[].\n** ^Each term of aOrderBy records a column of the ORDER BY clause.\n**\n** The colUsed field indicates which columns of the virtual table may be\n** required by the current scan. Virtual table columns are numbered from\n** zero in the order in which they appear within the CREATE TABLE statement\n** passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62),\n** the corresponding bit is set within the colUsed mask if the column may be\n** required by SQLite. If the table has at least 64 columns and any column\n** to the right of the first 63 is required, then bit 63 of colUsed is also\n** set. In other words, column iCol may be required if the expression\n** (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to \n** non-zero.\n**\n** The [xBestIndex] method must fill aConstraintUsage[] with information\n** about what parameters to pass to xFilter.  ^If argvIndex>0 then\n** the right-hand side of the corresponding aConstraint[] is evaluated\n** and becomes the argvIndex-th entry in argv.  ^(If aConstraintUsage[].omit\n** is true, then the constraint is assumed to be fully handled by the\n** virtual table and is not checked again by SQLite.)^\n**\n** ^The idxNum and idxPtr values are recorded and passed into the\n** [xFilter] method.\n** ^[sqlite3_free()] is used to free idxPtr if and only if\n** needToFreeIdxPtr is true.\n**\n** ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in\n** the correct order to satisfy the ORDER BY clause so that no separate\n** sorting step is required.\n**\n** ^The estimatedCost value is an estimate of the cost of a particular\n** strategy. A cost of N indicates that the cost of the strategy is similar\n** to a linear scan of an SQLite table with N rows. A cost of log(N) \n** indicates that the expense of the operation is similar to that of a\n** binary search on a unique indexed field of an SQLite table with N rows.\n**\n** ^The estimatedRows value is an estimate of the number of rows that\n** will be returned by the strategy.\n**\n** The xBestIndex method may optionally populate the idxFlags field with a \n** mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag -\n** SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite\n** assumes that the strategy may visit at most one row. \n**\n** Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then\n** SQLite also assumes that if a call to the xUpdate() method is made as\n** part of the same statement to delete or update a virtual table row and the\n** implementation returns SQLITE_CONSTRAINT, then there is no need to rollback\n** any database changes. In other words, if the xUpdate() returns\n** SQLITE_CONSTRAINT, the database contents must be exactly as they were\n** before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not\n** set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by\n** the xUpdate method are automatically rolled back by SQLite.\n**\n** IMPORTANT: The estimatedRows field was added to the sqlite3_index_info\n** structure for SQLite [version 3.8.2] ([dateof:3.8.2]). \n** If a virtual table extension is\n** used with an SQLite version earlier than 3.8.2, the results of attempting \n** to read or write the estimatedRows field are undefined (but are likely \n** to included crashing the application). The estimatedRows field should\n** therefore only be used if [sqlite3_libversion_number()] returns a\n** value greater than or equal to 3008002. Similarly, the idxFlags field\n** was added for [version 3.9.0] ([dateof:3.9.0]). \n** It may therefore only be used if\n** sqlite3_libversion_number() returns a value greater than or equal to\n** 3009000.\n*/\nstruct sqlite3_index_info {\n  /* Inputs */\n  int nConstraint;           /* Number of entries in aConstraint */\n  struct sqlite3_index_constraint {\n     int iColumn;              /* Column constrained.  -1 for ROWID */\n     unsigned char op;         /* Constraint operator */\n     unsigned char usable;     /* True if this constraint is usable */\n     int iTermOffset;          /* Used internally - xBestIndex should ignore */\n  } *aConstraint;            /* Table of WHERE clause constraints */\n  int nOrderBy;              /* Number of terms in the ORDER BY clause */\n  struct sqlite3_index_orderby {\n     int iColumn;              /* Column number */\n     unsigned char desc;       /* True for DESC.  False for ASC. */\n  } *aOrderBy;               /* The ORDER BY clause */\n  /* Outputs */\n  struct sqlite3_index_constraint_usage {\n    int argvIndex;           /* if >0, constraint is part of argv to xFilter */\n    unsigned char omit;      /* Do not code a test for this constraint */\n  } *aConstraintUsage;\n  int idxNum;                /* Number used to identify the index */\n  char *idxStr;              /* String, possibly obtained from sqlite3_malloc */\n  int needToFreeIdxStr;      /* Free idxStr using sqlite3_free() if true */\n  int orderByConsumed;       /* True if output is already ordered */\n  double estimatedCost;           /* Estimated cost of using this index */\n  /* Fields below are only available in SQLite 3.8.2 and later */\n  sqlite3_int64 estimatedRows;    /* Estimated number of rows returned */\n  /* Fields below are only available in SQLite 3.9.0 and later */\n  int idxFlags;              /* Mask of SQLITE_INDEX_SCAN_* flags */\n  /* Fields below are only available in SQLite 3.10.0 and later */\n  sqlite3_uint64 colUsed;    /* Input: Mask of columns used by statement */\n};\n\n/*\n** CAPI3REF: Virtual Table Scan Flags\n*/\n#define SQLITE_INDEX_SCAN_UNIQUE      1     /* Scan visits at most 1 row */\n\n/*\n** CAPI3REF: Virtual Table Constraint Operator Codes\n**\n** These macros defined the allowed values for the\n** [sqlite3_index_info].aConstraint[].op field.  Each value represents\n** an operator that is part of a constraint term in the wHERE clause of\n** a query that uses a [virtual table].\n*/\n#define SQLITE_INDEX_CONSTRAINT_EQ         2\n#define SQLITE_INDEX_CONSTRAINT_GT         4\n#define SQLITE_INDEX_CONSTRAINT_LE         8\n#define SQLITE_INDEX_CONSTRAINT_LT        16\n#define SQLITE_INDEX_CONSTRAINT_GE        32\n#define SQLITE_INDEX_CONSTRAINT_MATCH     64\n#define SQLITE_INDEX_CONSTRAINT_LIKE      65\n#define SQLITE_INDEX_CONSTRAINT_GLOB      66\n#define SQLITE_INDEX_CONSTRAINT_REGEXP    67\n#define SQLITE_INDEX_CONSTRAINT_NE        68\n#define SQLITE_INDEX_CONSTRAINT_ISNOT     69\n#define SQLITE_INDEX_CONSTRAINT_ISNOTNULL 70\n#define SQLITE_INDEX_CONSTRAINT_ISNULL    71\n#define SQLITE_INDEX_CONSTRAINT_IS        72\n\n/*\n** CAPI3REF: Register A Virtual Table Implementation\n** METHOD: sqlite3\n**\n** ^These routines are used to register a new [virtual table module] name.\n** ^Module names must be registered before\n** creating a new [virtual table] using the module and before using a\n** preexisting [virtual table] for the module.\n**\n** ^The module name is registered on the [database connection] specified\n** by the first parameter.  ^The name of the module is given by the \n** second parameter.  ^The third parameter is a pointer to\n** the implementation of the [virtual table module].   ^The fourth\n** parameter is an arbitrary client data pointer that is passed through\n** into the [xCreate] and [xConnect] methods of the virtual table module\n** when a new virtual table is be being created or reinitialized.\n**\n** ^The sqlite3_create_module_v2() interface has a fifth parameter which\n** is a pointer to a destructor for the pClientData.  ^SQLite will\n** invoke the destructor function (if it is not NULL) when SQLite\n** no longer needs the pClientData pointer.  ^The destructor will also\n** be invoked if the call to sqlite3_create_module_v2() fails.\n** ^The sqlite3_create_module()\n** interface is equivalent to sqlite3_create_module_v2() with a NULL\n** destructor.\n*/\nSQLITE_API int sqlite3_create_module(\n  sqlite3 *db,               /* SQLite connection to register module with */\n  const char *zName,         /* Name of the module */\n  const sqlite3_module *p,   /* Methods for the module */\n  void *pClientData          /* Client data for xCreate/xConnect */\n);\nSQLITE_API int sqlite3_create_module_v2(\n  sqlite3 *db,               /* SQLite connection to register module with */\n  const char *zName,         /* Name of the module */\n  const sqlite3_module *p,   /* Methods for the module */\n  void *pClientData,         /* Client data for xCreate/xConnect */\n  void(*xDestroy)(void*)     /* Module destructor function */\n);\n\n/*\n** CAPI3REF: Virtual Table Instance Object\n** KEYWORDS: sqlite3_vtab\n**\n** Every [virtual table module] implementation uses a subclass\n** of this object to describe a particular instance\n** of the [virtual table].  Each subclass will\n** be tailored to the specific needs of the module implementation.\n** The purpose of this superclass is to define certain fields that are\n** common to all module implementations.\n**\n** ^Virtual tables methods can set an error message by assigning a\n** string obtained from [sqlite3_mprintf()] to zErrMsg.  The method should\n** take care that any prior string is freed by a call to [sqlite3_free()]\n** prior to assigning a new string to zErrMsg.  ^After the error message\n** is delivered up to the client application, the string will be automatically\n** freed by sqlite3_free() and the zErrMsg field will be zeroed.\n*/\nstruct sqlite3_vtab {\n  const sqlite3_module *pModule;  /* The module for this virtual table */\n  int nRef;                       /* Number of open cursors */\n  char *zErrMsg;                  /* Error message from sqlite3_mprintf() */\n  /* Virtual table implementations will typically add additional fields */\n};\n\n/*\n** CAPI3REF: Virtual Table Cursor Object\n** KEYWORDS: sqlite3_vtab_cursor {virtual table cursor}\n**\n** Every [virtual table module] implementation uses a subclass of the\n** following structure to describe cursors that point into the\n** [virtual table] and are used\n** to loop through the virtual table.  Cursors are created using the\n** [sqlite3_module.xOpen | xOpen] method of the module and are destroyed\n** by the [sqlite3_module.xClose | xClose] method.  Cursors are used\n** by the [xFilter], [xNext], [xEof], [xColumn], and [xRowid] methods\n** of the module.  Each module implementation will define\n** the content of a cursor structure to suit its own needs.\n**\n** This superclass exists in order to define fields of the cursor that\n** are common to all implementations.\n*/\nstruct sqlite3_vtab_cursor {\n  sqlite3_vtab *pVtab;      /* Virtual table of this cursor */\n  /* Virtual table implementations will typically add additional fields */\n};\n\n/*\n** CAPI3REF: Declare The Schema Of A Virtual Table\n**\n** ^The [xCreate] and [xConnect] methods of a\n** [virtual table module] call this interface\n** to declare the format (the names and datatypes of the columns) of\n** the virtual tables they implement.\n*/\nSQLITE_API int sqlite3_declare_vtab(sqlite3*, const char *zSQL);\n\n/*\n** CAPI3REF: Overload A Function For A Virtual Table\n** METHOD: sqlite3\n**\n** ^(Virtual tables can provide alternative implementations of functions\n** using the [xFindFunction] method of the [virtual table module].  \n** But global versions of those functions\n** must exist in order to be overloaded.)^\n**\n** ^(This API makes sure a global version of a function with a particular\n** name and number of parameters exists.  If no such function exists\n** before this API is called, a new function is created.)^  ^The implementation\n** of the new function always causes an exception to be thrown.  So\n** the new function is not good for anything by itself.  Its only\n** purpose is to be a placeholder function that can be overloaded\n** by a [virtual table].\n*/\nSQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);\n\n/*\n** The interface to the virtual-table mechanism defined above (back up\n** to a comment remarkably similar to this one) is currently considered\n** to be experimental.  The interface might change in incompatible ways.\n** If this is a problem for you, do not use the interface at this time.\n**\n** When the virtual-table mechanism stabilizes, we will declare the\n** interface fixed, support it indefinitely, and remove this comment.\n*/\n\n/*\n** CAPI3REF: A Handle To An Open BLOB\n** KEYWORDS: {BLOB handle} {BLOB handles}\n**\n** An instance of this object represents an open BLOB on which\n** [sqlite3_blob_open | incremental BLOB I/O] can be performed.\n** ^Objects of this type are created by [sqlite3_blob_open()]\n** and destroyed by [sqlite3_blob_close()].\n** ^The [sqlite3_blob_read()] and [sqlite3_blob_write()] interfaces\n** can be used to read or write small subsections of the BLOB.\n** ^The [sqlite3_blob_bytes()] interface returns the size of the BLOB in bytes.\n*/\ntypedef struct sqlite3_blob sqlite3_blob;\n\n/*\n** CAPI3REF: Open A BLOB For Incremental I/O\n** METHOD: sqlite3\n** CONSTRUCTOR: sqlite3_blob\n**\n** ^(This interfaces opens a [BLOB handle | handle] to the BLOB located\n** in row iRow, column zColumn, table zTable in database zDb;\n** in other words, the same BLOB that would be selected by:\n**\n** <pre>\n**     SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;\n** </pre>)^\n**\n** ^(Parameter zDb is not the filename that contains the database, but \n** rather the symbolic name of the database. For attached databases, this is\n** the name that appears after the AS keyword in the [ATTACH] statement.\n** For the main database file, the database name is \"main\". For TEMP\n** tables, the database name is \"temp\".)^\n**\n** ^If the flags parameter is non-zero, then the BLOB is opened for read\n** and write access. ^If the flags parameter is zero, the BLOB is opened for\n** read-only access.\n**\n** ^(On success, [SQLITE_OK] is returned and the new [BLOB handle] is stored\n** in *ppBlob. Otherwise an [error code] is returned and, unless the error\n** code is SQLITE_MISUSE, *ppBlob is set to NULL.)^ ^This means that, provided\n** the API is not misused, it is always safe to call [sqlite3_blob_close()] \n** on *ppBlob after this function it returns.\n**\n** This function fails with SQLITE_ERROR if any of the following are true:\n** <ul>\n**   <li> ^(Database zDb does not exist)^, \n**   <li> ^(Table zTable does not exist within database zDb)^, \n**   <li> ^(Table zTable is a WITHOUT ROWID table)^, \n**   <li> ^(Column zColumn does not exist)^,\n**   <li> ^(Row iRow is not present in the table)^,\n**   <li> ^(The specified column of row iRow contains a value that is not\n**         a TEXT or BLOB value)^,\n**   <li> ^(Column zColumn is part of an index, PRIMARY KEY or UNIQUE \n**         constraint and the blob is being opened for read/write access)^,\n**   <li> ^([foreign key constraints | Foreign key constraints] are enabled, \n**         column zColumn is part of a [child key] definition and the blob is\n**         being opened for read/write access)^.\n** </ul>\n**\n** ^Unless it returns SQLITE_MISUSE, this function sets the \n** [database connection] error code and message accessible via \n** [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. \n**\n** A BLOB referenced by sqlite3_blob_open() may be read using the\n** [sqlite3_blob_read()] interface and modified by using\n** [sqlite3_blob_write()].  The [BLOB handle] can be moved to a\n** different row of the same table using the [sqlite3_blob_reopen()]\n** interface.  However, the column, table, or database of a [BLOB handle]\n** cannot be changed after the [BLOB handle] is opened.\n**\n** ^(If the row that a BLOB handle points to is modified by an\n** [UPDATE], [DELETE], or by [ON CONFLICT] side-effects\n** then the BLOB handle is marked as \"expired\".\n** This is true if any column of the row is changed, even a column\n** other than the one the BLOB handle is open on.)^\n** ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for\n** an expired BLOB handle fail with a return code of [SQLITE_ABORT].\n** ^(Changes written into a BLOB prior to the BLOB expiring are not\n** rolled back by the expiration of the BLOB.  Such changes will eventually\n** commit if the transaction continues to completion.)^\n**\n** ^Use the [sqlite3_blob_bytes()] interface to determine the size of\n** the opened blob.  ^The size of a blob may not be changed by this\n** interface.  Use the [UPDATE] SQL command to change the size of a\n** blob.\n**\n** ^The [sqlite3_bind_zeroblob()] and [sqlite3_result_zeroblob()] interfaces\n** and the built-in [zeroblob] SQL function may be used to create a \n** zero-filled blob to read or write using the incremental-blob interface.\n**\n** To avoid a resource leak, every open [BLOB handle] should eventually\n** be released by a call to [sqlite3_blob_close()].\n**\n** See also: [sqlite3_blob_close()],\n** [sqlite3_blob_reopen()], [sqlite3_blob_read()],\n** [sqlite3_blob_bytes()], [sqlite3_blob_write()].\n*/\nSQLITE_API int sqlite3_blob_open(\n  sqlite3*,\n  const char *zDb,\n  const char *zTable,\n  const char *zColumn,\n  sqlite3_int64 iRow,\n  int flags,\n  sqlite3_blob **ppBlob\n);\n\n/*\n** CAPI3REF: Move a BLOB Handle to a New Row\n** METHOD: sqlite3_blob\n**\n** ^This function is used to move an existing [BLOB handle] so that it points\n** to a different row of the same database table. ^The new row is identified\n** by the rowid value passed as the second argument. Only the row can be\n** changed. ^The database, table and column on which the blob handle is open\n** remain the same. Moving an existing [BLOB handle] to a new row is\n** faster than closing the existing handle and opening a new one.\n**\n** ^(The new row must meet the same criteria as for [sqlite3_blob_open()] -\n** it must exist and there must be either a blob or text value stored in\n** the nominated column.)^ ^If the new row is not present in the table, or if\n** it does not contain a blob or text value, or if another error occurs, an\n** SQLite error code is returned and the blob handle is considered aborted.\n** ^All subsequent calls to [sqlite3_blob_read()], [sqlite3_blob_write()] or\n** [sqlite3_blob_reopen()] on an aborted blob handle immediately return\n** SQLITE_ABORT. ^Calling [sqlite3_blob_bytes()] on an aborted blob handle\n** always returns zero.\n**\n** ^This function sets the database handle error code and message.\n*/\nSQLITE_API int sqlite3_blob_reopen(sqlite3_blob *, sqlite3_int64);\n\n/*\n** CAPI3REF: Close A BLOB Handle\n** DESTRUCTOR: sqlite3_blob\n**\n** ^This function closes an open [BLOB handle]. ^(The BLOB handle is closed\n** unconditionally.  Even if this routine returns an error code, the \n** handle is still closed.)^\n**\n** ^If the blob handle being closed was opened for read-write access, and if\n** the database is in auto-commit mode and there are no other open read-write\n** blob handles or active write statements, the current transaction is\n** committed. ^If an error occurs while committing the transaction, an error\n** code is returned and the transaction rolled back.\n**\n** Calling this function with an argument that is not a NULL pointer or an\n** open blob handle results in undefined behaviour. ^Calling this routine \n** with a null pointer (such as would be returned by a failed call to \n** [sqlite3_blob_open()]) is a harmless no-op. ^Otherwise, if this function\n** is passed a valid open blob handle, the values returned by the \n** sqlite3_errcode() and sqlite3_errmsg() functions are set before returning.\n*/\nSQLITE_API int sqlite3_blob_close(sqlite3_blob *);\n\n/*\n** CAPI3REF: Return The Size Of An Open BLOB\n** METHOD: sqlite3_blob\n**\n** ^Returns the size in bytes of the BLOB accessible via the \n** successfully opened [BLOB handle] in its only argument.  ^The\n** incremental blob I/O routines can only read or overwriting existing\n** blob content; they cannot change the size of a blob.\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n*/\nSQLITE_API int sqlite3_blob_bytes(sqlite3_blob *);\n\n/*\n** CAPI3REF: Read Data From A BLOB Incrementally\n** METHOD: sqlite3_blob\n**\n** ^(This function is used to read data from an open [BLOB handle] into a\n** caller-supplied buffer. N bytes of data are copied into buffer Z\n** from the open BLOB, starting at offset iOffset.)^\n**\n** ^If offset iOffset is less than N bytes from the end of the BLOB,\n** [SQLITE_ERROR] is returned and no data is read.  ^If N or iOffset is\n** less than zero, [SQLITE_ERROR] is returned and no data is read.\n** ^The size of the blob (and hence the maximum value of N+iOffset)\n** can be determined using the [sqlite3_blob_bytes()] interface.\n**\n** ^An attempt to read from an expired [BLOB handle] fails with an\n** error code of [SQLITE_ABORT].\n**\n** ^(On success, sqlite3_blob_read() returns SQLITE_OK.\n** Otherwise, an [error code] or an [extended error code] is returned.)^\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n**\n** See also: [sqlite3_blob_write()].\n*/\nSQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset);\n\n/*\n** CAPI3REF: Write Data Into A BLOB Incrementally\n** METHOD: sqlite3_blob\n**\n** ^(This function is used to write data into an open [BLOB handle] from a\n** caller-supplied buffer. N bytes of data are copied from the buffer Z\n** into the open BLOB, starting at offset iOffset.)^\n**\n** ^(On success, sqlite3_blob_write() returns SQLITE_OK.\n** Otherwise, an  [error code] or an [extended error code] is returned.)^\n** ^Unless SQLITE_MISUSE is returned, this function sets the \n** [database connection] error code and message accessible via \n** [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. \n**\n** ^If the [BLOB handle] passed as the first argument was not opened for\n** writing (the flags parameter to [sqlite3_blob_open()] was zero),\n** this function returns [SQLITE_READONLY].\n**\n** This function may only modify the contents of the BLOB; it is\n** not possible to increase the size of a BLOB using this API.\n** ^If offset iOffset is less than N bytes from the end of the BLOB,\n** [SQLITE_ERROR] is returned and no data is written. The size of the \n** BLOB (and hence the maximum value of N+iOffset) can be determined \n** using the [sqlite3_blob_bytes()] interface. ^If N or iOffset are less \n** than zero [SQLITE_ERROR] is returned and no data is written.\n**\n** ^An attempt to write to an expired [BLOB handle] fails with an\n** error code of [SQLITE_ABORT].  ^Writes to the BLOB that occurred\n** before the [BLOB handle] expired are not rolled back by the\n** expiration of the handle, though of course those changes might\n** have been overwritten by the statement that expired the BLOB handle\n** or by other independent statements.\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n**\n** See also: [sqlite3_blob_read()].\n*/\nSQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);\n\n/*\n** CAPI3REF: Virtual File System Objects\n**\n** A virtual filesystem (VFS) is an [sqlite3_vfs] object\n** that SQLite uses to interact\n** with the underlying operating system.  Most SQLite builds come with a\n** single default VFS that is appropriate for the host computer.\n** New VFSes can be registered and existing VFSes can be unregistered.\n** The following interfaces are provided.\n**\n** ^The sqlite3_vfs_find() interface returns a pointer to a VFS given its name.\n** ^Names are case sensitive.\n** ^Names are zero-terminated UTF-8 strings.\n** ^If there is no match, a NULL pointer is returned.\n** ^If zVfsName is NULL then the default VFS is returned.\n**\n** ^New VFSes are registered with sqlite3_vfs_register().\n** ^Each new VFS becomes the default VFS if the makeDflt flag is set.\n** ^The same VFS can be registered multiple times without injury.\n** ^To make an existing VFS into the default VFS, register it again\n** with the makeDflt flag set.  If two different VFSes with the\n** same name are registered, the behavior is undefined.  If a\n** VFS is registered with a name that is NULL or an empty string,\n** then the behavior is undefined.\n**\n** ^Unregister a VFS with the sqlite3_vfs_unregister() interface.\n** ^(If the default VFS is unregistered, another VFS is chosen as\n** the default.  The choice for the new VFS is arbitrary.)^\n*/\nSQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName);\nSQLITE_API int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt);\nSQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*);\n\n/*\n** CAPI3REF: Mutexes\n**\n** The SQLite core uses these routines for thread\n** synchronization. Though they are intended for internal\n** use by SQLite, code that links against SQLite is\n** permitted to use any of these routines.\n**\n** The SQLite source code contains multiple implementations\n** of these mutex routines.  An appropriate implementation\n** is selected automatically at compile-time.  The following\n** implementations are available in the SQLite core:\n**\n** <ul>\n** <li>   SQLITE_MUTEX_PTHREADS\n** <li>   SQLITE_MUTEX_W32\n** <li>   SQLITE_MUTEX_NOOP\n** </ul>\n**\n** The SQLITE_MUTEX_NOOP implementation is a set of routines\n** that does no real locking and is appropriate for use in\n** a single-threaded application.  The SQLITE_MUTEX_PTHREADS and\n** SQLITE_MUTEX_W32 implementations are appropriate for use on Unix\n** and Windows.\n**\n** If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor\n** macro defined (with \"-DSQLITE_MUTEX_APPDEF=1\"), then no mutex\n** implementation is included with the library. In this case the\n** application must supply a custom mutex implementation using the\n** [SQLITE_CONFIG_MUTEX] option of the sqlite3_config() function\n** before calling sqlite3_initialize() or any other public sqlite3_\n** function that calls sqlite3_initialize().\n**\n** ^The sqlite3_mutex_alloc() routine allocates a new\n** mutex and returns a pointer to it. ^The sqlite3_mutex_alloc()\n** routine returns NULL if it is unable to allocate the requested\n** mutex.  The argument to sqlite3_mutex_alloc() must one of these\n** integer constants:\n**\n** <ul>\n** <li>  SQLITE_MUTEX_FAST\n** <li>  SQLITE_MUTEX_RECURSIVE\n** <li>  SQLITE_MUTEX_STATIC_MASTER\n** <li>  SQLITE_MUTEX_STATIC_MEM\n** <li>  SQLITE_MUTEX_STATIC_OPEN\n** <li>  SQLITE_MUTEX_STATIC_PRNG\n** <li>  SQLITE_MUTEX_STATIC_LRU\n** <li>  SQLITE_MUTEX_STATIC_PMEM\n** <li>  SQLITE_MUTEX_STATIC_APP1\n** <li>  SQLITE_MUTEX_STATIC_APP2\n** <li>  SQLITE_MUTEX_STATIC_APP3\n** <li>  SQLITE_MUTEX_STATIC_VFS1\n** <li>  SQLITE_MUTEX_STATIC_VFS2\n** <li>  SQLITE_MUTEX_STATIC_VFS3\n** </ul>\n**\n** ^The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE)\n** cause sqlite3_mutex_alloc() to create\n** a new mutex.  ^The new mutex is recursive when SQLITE_MUTEX_RECURSIVE\n** is used but not necessarily so when SQLITE_MUTEX_FAST is used.\n** The mutex implementation does not need to make a distinction\n** between SQLITE_MUTEX_RECURSIVE and SQLITE_MUTEX_FAST if it does\n** not want to.  SQLite will only request a recursive mutex in\n** cases where it really needs one.  If a faster non-recursive mutex\n** implementation is available on the host platform, the mutex subsystem\n** might return such a mutex in response to SQLITE_MUTEX_FAST.\n**\n** ^The other allowed parameters to sqlite3_mutex_alloc() (anything other\n** than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return\n** a pointer to a static preexisting mutex.  ^Nine static mutexes are\n** used by the current version of SQLite.  Future versions of SQLite\n** may add additional static mutexes.  Static mutexes are for internal\n** use by SQLite only.  Applications that use SQLite mutexes should\n** use only the dynamic mutexes returned by SQLITE_MUTEX_FAST or\n** SQLITE_MUTEX_RECURSIVE.\n**\n** ^Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST\n** or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc()\n** returns a different mutex on every call.  ^For the static\n** mutex types, the same mutex is returned on every call that has\n** the same type number.\n**\n** ^The sqlite3_mutex_free() routine deallocates a previously\n** allocated dynamic mutex.  Attempting to deallocate a static\n** mutex results in undefined behavior.\n**\n** ^The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt\n** to enter a mutex.  ^If another thread is already within the mutex,\n** sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return\n** SQLITE_BUSY.  ^The sqlite3_mutex_try() interface returns [SQLITE_OK]\n** upon successful entry.  ^(Mutexes created using\n** SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread.\n** In such cases, the\n** mutex must be exited an equal number of times before another thread\n** can enter.)^  If the same thread tries to enter any mutex other\n** than an SQLITE_MUTEX_RECURSIVE more than once, the behavior is undefined.\n**\n** ^(Some systems (for example, Windows 95) do not support the operation\n** implemented by sqlite3_mutex_try().  On those systems, sqlite3_mutex_try()\n** will always return SQLITE_BUSY. The SQLite core only ever uses\n** sqlite3_mutex_try() as an optimization so this is acceptable \n** behavior.)^\n**\n** ^The sqlite3_mutex_leave() routine exits a mutex that was\n** previously entered by the same thread.   The behavior\n** is undefined if the mutex is not currently entered by the\n** calling thread or is not currently allocated.\n**\n** ^If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or\n** sqlite3_mutex_leave() is a NULL pointer, then all three routines\n** behave as no-ops.\n**\n** See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()].\n*/\nSQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);\nSQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);\nSQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);\nSQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);\nSQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);\n\n/*\n** CAPI3REF: Mutex Methods Object\n**\n** An instance of this structure defines the low-level routines\n** used to allocate and use mutexes.\n**\n** Usually, the default mutex implementations provided by SQLite are\n** sufficient, however the application has the option of substituting a custom\n** implementation for specialized deployments or systems for which SQLite\n** does not provide a suitable implementation. In this case, the application\n** creates and populates an instance of this structure to pass\n** to sqlite3_config() along with the [SQLITE_CONFIG_MUTEX] option.\n** Additionally, an instance of this structure can be used as an\n** output variable when querying the system for the current mutex\n** implementation, using the [SQLITE_CONFIG_GETMUTEX] option.\n**\n** ^The xMutexInit method defined by this structure is invoked as\n** part of system initialization by the sqlite3_initialize() function.\n** ^The xMutexInit routine is called by SQLite exactly once for each\n** effective call to [sqlite3_initialize()].\n**\n** ^The xMutexEnd method defined by this structure is invoked as\n** part of system shutdown by the sqlite3_shutdown() function. The\n** implementation of this method is expected to release all outstanding\n** resources obtained by the mutex methods implementation, especially\n** those obtained by the xMutexInit method.  ^The xMutexEnd()\n** interface is invoked exactly once for each call to [sqlite3_shutdown()].\n**\n** ^(The remaining seven methods defined by this structure (xMutexAlloc,\n** xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and\n** xMutexNotheld) implement the following interfaces (respectively):\n**\n** <ul>\n**   <li>  [sqlite3_mutex_alloc()] </li>\n**   <li>  [sqlite3_mutex_free()] </li>\n**   <li>  [sqlite3_mutex_enter()] </li>\n**   <li>  [sqlite3_mutex_try()] </li>\n**   <li>  [sqlite3_mutex_leave()] </li>\n**   <li>  [sqlite3_mutex_held()] </li>\n**   <li>  [sqlite3_mutex_notheld()] </li>\n** </ul>)^\n**\n** The only difference is that the public sqlite3_XXX functions enumerated\n** above silently ignore any invocations that pass a NULL pointer instead\n** of a valid mutex handle. The implementations of the methods defined\n** by this structure are not required to handle this case, the results\n** of passing a NULL pointer instead of a valid mutex handle are undefined\n** (i.e. it is acceptable to provide an implementation that segfaults if\n** it is passed a NULL pointer).\n**\n** The xMutexInit() method must be threadsafe.  It must be harmless to\n** invoke xMutexInit() multiple times within the same process and without\n** intervening calls to xMutexEnd().  Second and subsequent calls to\n** xMutexInit() must be no-ops.\n**\n** xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()]\n** and its associates).  Similarly, xMutexAlloc() must not use SQLite memory\n** allocation for a static mutex.  ^However xMutexAlloc() may use SQLite\n** memory allocation for a fast or recursive mutex.\n**\n** ^SQLite will invoke the xMutexEnd() method when [sqlite3_shutdown()] is\n** called, but only if the prior call to xMutexInit returned SQLITE_OK.\n** If xMutexInit fails in any way, it is expected to clean up after itself\n** prior to returning.\n*/\ntypedef struct sqlite3_mutex_methods sqlite3_mutex_methods;\nstruct sqlite3_mutex_methods {\n  int (*xMutexInit)(void);\n  int (*xMutexEnd)(void);\n  sqlite3_mutex *(*xMutexAlloc)(int);\n  void (*xMutexFree)(sqlite3_mutex *);\n  void (*xMutexEnter)(sqlite3_mutex *);\n  int (*xMutexTry)(sqlite3_mutex *);\n  void (*xMutexLeave)(sqlite3_mutex *);\n  int (*xMutexHeld)(sqlite3_mutex *);\n  int (*xMutexNotheld)(sqlite3_mutex *);\n};\n\n/*\n** CAPI3REF: Mutex Verification Routines\n**\n** The sqlite3_mutex_held() and sqlite3_mutex_notheld() routines\n** are intended for use inside assert() statements.  The SQLite core\n** never uses these routines except inside an assert() and applications\n** are advised to follow the lead of the core.  The SQLite core only\n** provides implementations for these routines when it is compiled\n** with the SQLITE_DEBUG flag.  External mutex implementations\n** are only required to provide these routines if SQLITE_DEBUG is\n** defined and if NDEBUG is not defined.\n**\n** These routines should return true if the mutex in their argument\n** is held or not held, respectively, by the calling thread.\n**\n** The implementation is not required to provide versions of these\n** routines that actually work. If the implementation does not provide working\n** versions of these routines, it should at least provide stubs that always\n** return true so that one does not get spurious assertion failures.\n**\n** If the argument to sqlite3_mutex_held() is a NULL pointer then\n** the routine should return 1.   This seems counter-intuitive since\n** clearly the mutex cannot be held if it does not exist.  But\n** the reason the mutex does not exist is because the build is not\n** using mutexes.  And we do not want the assert() containing the\n** call to sqlite3_mutex_held() to fail, so a non-zero return is\n** the appropriate thing to do.  The sqlite3_mutex_notheld()\n** interface should also return 1 when given a NULL pointer.\n*/\n#ifndef NDEBUG\nSQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);\nSQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);\n#endif\n\n/*\n** CAPI3REF: Mutex Types\n**\n** The [sqlite3_mutex_alloc()] interface takes a single argument\n** which is one of these integer constants.\n**\n** The set of static mutexes may change from one SQLite release to the\n** next.  Applications that override the built-in mutex logic must be\n** prepared to accommodate additional static mutexes.\n*/\n#define SQLITE_MUTEX_FAST             0\n#define SQLITE_MUTEX_RECURSIVE        1\n#define SQLITE_MUTEX_STATIC_MASTER    2\n#define SQLITE_MUTEX_STATIC_MEM       3  /* sqlite3_malloc() */\n#define SQLITE_MUTEX_STATIC_MEM2      4  /* NOT USED */\n#define SQLITE_MUTEX_STATIC_OPEN      4  /* sqlite3BtreeOpen() */\n#define SQLITE_MUTEX_STATIC_PRNG      5  /* sqlite3_randomness() */\n#define SQLITE_MUTEX_STATIC_LRU       6  /* lru page list */\n#define SQLITE_MUTEX_STATIC_LRU2      7  /* NOT USED */\n#define SQLITE_MUTEX_STATIC_PMEM      7  /* sqlite3PageMalloc() */\n#define SQLITE_MUTEX_STATIC_APP1      8  /* For use by application */\n#define SQLITE_MUTEX_STATIC_APP2      9  /* For use by application */\n#define SQLITE_MUTEX_STATIC_APP3     10  /* For use by application */\n#define SQLITE_MUTEX_STATIC_VFS1     11  /* For use by built-in VFS */\n#define SQLITE_MUTEX_STATIC_VFS2     12  /* For use by extension VFS */\n#define SQLITE_MUTEX_STATIC_VFS3     13  /* For use by application VFS */\n\n/*\n** CAPI3REF: Retrieve the mutex for a database connection\n** METHOD: sqlite3\n**\n** ^This interface returns a pointer the [sqlite3_mutex] object that \n** serializes access to the [database connection] given in the argument\n** when the [threading mode] is Serialized.\n** ^If the [threading mode] is Single-thread or Multi-thread then this\n** routine returns a NULL pointer.\n*/\nSQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);\n\n/*\n** CAPI3REF: Low-Level Control Of Database Files\n** METHOD: sqlite3\n**\n** ^The [sqlite3_file_control()] interface makes a direct call to the\n** xFileControl method for the [sqlite3_io_methods] object associated\n** with a particular database identified by the second argument. ^The\n** name of the database is \"main\" for the main database or \"temp\" for the\n** TEMP database, or the name that appears after the AS keyword for\n** databases that are added using the [ATTACH] SQL command.\n** ^A NULL pointer can be used in place of \"main\" to refer to the\n** main database file.\n** ^The third and fourth parameters to this routine\n** are passed directly through to the second and third parameters of\n** the xFileControl method.  ^The return value of the xFileControl\n** method becomes the return value of this routine.\n**\n** ^The [SQLITE_FCNTL_FILE_POINTER] value for the op parameter causes\n** a pointer to the underlying [sqlite3_file] object to be written into\n** the space pointed to by the 4th parameter.  ^The [SQLITE_FCNTL_FILE_POINTER]\n** case is a short-circuit path which does not actually invoke the\n** underlying sqlite3_io_methods.xFileControl method.\n**\n** ^If the second parameter (zDbName) does not match the name of any\n** open database file, then SQLITE_ERROR is returned.  ^This error\n** code is not remembered and will not be recalled by [sqlite3_errcode()]\n** or [sqlite3_errmsg()].  The underlying xFileControl method might\n** also return SQLITE_ERROR.  There is no way to distinguish between\n** an incorrect zDbName and an SQLITE_ERROR return from the underlying\n** xFileControl method.\n**\n** See also: [file control opcodes]\n*/\nSQLITE_API int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);\n\n/*\n** CAPI3REF: Testing Interface\n**\n** ^The sqlite3_test_control() interface is used to read out internal\n** state of SQLite and to inject faults into SQLite for testing\n** purposes.  ^The first parameter is an operation code that determines\n** the number, meaning, and operation of all subsequent parameters.\n**\n** This interface is not for use by applications.  It exists solely\n** for verifying the correct operation of the SQLite library.  Depending\n** on how the SQLite library is compiled, this interface might not exist.\n**\n** The details of the operation codes, their meanings, the parameters\n** they take, and what they do are all subject to change without notice.\n** Unlike most of the SQLite API, this function is not guaranteed to\n** operate consistently from one release to the next.\n*/\nSQLITE_API int sqlite3_test_control(int op, ...);\n\n/*\n** CAPI3REF: Testing Interface Operation Codes\n**\n** These constants are the valid operation code parameters used\n** as the first argument to [sqlite3_test_control()].\n**\n** These parameters and their meanings are subject to change\n** without notice.  These values are for testing purposes only.\n** Applications should not use any of these parameters or the\n** [sqlite3_test_control()] interface.\n*/\n#define SQLITE_TESTCTRL_FIRST                    5\n#define SQLITE_TESTCTRL_PRNG_SAVE                5\n#define SQLITE_TESTCTRL_PRNG_RESTORE             6\n#define SQLITE_TESTCTRL_PRNG_RESET               7\n#define SQLITE_TESTCTRL_BITVEC_TEST              8\n#define SQLITE_TESTCTRL_FAULT_INSTALL            9\n#define SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS     10\n#define SQLITE_TESTCTRL_PENDING_BYTE            11\n#define SQLITE_TESTCTRL_ASSERT                  12\n#define SQLITE_TESTCTRL_ALWAYS                  13\n#define SQLITE_TESTCTRL_RESERVE                 14\n#define SQLITE_TESTCTRL_OPTIMIZATIONS           15\n#define SQLITE_TESTCTRL_ISKEYWORD               16\n#define SQLITE_TESTCTRL_SCRATCHMALLOC           17  /* NOT USED */\n#define SQLITE_TESTCTRL_LOCALTIME_FAULT         18\n#define SQLITE_TESTCTRL_EXPLAIN_STMT            19  /* NOT USED */\n#define SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD    19\n#define SQLITE_TESTCTRL_NEVER_CORRUPT           20\n#define SQLITE_TESTCTRL_VDBE_COVERAGE           21\n#define SQLITE_TESTCTRL_BYTEORDER               22\n#define SQLITE_TESTCTRL_ISINIT                  23\n#define SQLITE_TESTCTRL_SORTER_MMAP             24\n#define SQLITE_TESTCTRL_IMPOSTER                25\n#define SQLITE_TESTCTRL_PARSER_COVERAGE         26\n#define SQLITE_TESTCTRL_LAST                    26  /* Largest TESTCTRL */\n\n/*\n** CAPI3REF: SQLite Runtime Status\n**\n** ^These interfaces are used to retrieve runtime status information\n** about the performance of SQLite, and optionally to reset various\n** highwater marks.  ^The first argument is an integer code for\n** the specific parameter to measure.  ^(Recognized integer codes\n** are of the form [status parameters | SQLITE_STATUS_...].)^\n** ^The current value of the parameter is returned into *pCurrent.\n** ^The highest recorded value is returned in *pHighwater.  ^If the\n** resetFlag is true, then the highest record value is reset after\n** *pHighwater is written.  ^(Some parameters do not record the highest\n** value.  For those parameters\n** nothing is written into *pHighwater and the resetFlag is ignored.)^\n** ^(Other parameters record only the highwater mark and not the current\n** value.  For these latter parameters nothing is written into *pCurrent.)^\n**\n** ^The sqlite3_status() and sqlite3_status64() routines return\n** SQLITE_OK on success and a non-zero [error code] on failure.\n**\n** If either the current value or the highwater mark is too large to\n** be represented by a 32-bit integer, then the values returned by\n** sqlite3_status() are undefined.\n**\n** See also: [sqlite3_db_status()]\n*/\nSQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag);\nSQLITE_API int sqlite3_status64(\n  int op,\n  sqlite3_int64 *pCurrent,\n  sqlite3_int64 *pHighwater,\n  int resetFlag\n);\n\n\n/*\n** CAPI3REF: Status Parameters\n** KEYWORDS: {status parameters}\n**\n** These integer constants designate various run-time status parameters\n** that can be returned by [sqlite3_status()].\n**\n** <dl>\n** [[SQLITE_STATUS_MEMORY_USED]] ^(<dt>SQLITE_STATUS_MEMORY_USED</dt>\n** <dd>This parameter is the current amount of memory checked out\n** using [sqlite3_malloc()], either directly or indirectly.  The\n** figure includes calls made to [sqlite3_malloc()] by the application\n** and internal memory usage by the SQLite library.  Auxiliary page-cache\n** memory controlled by [SQLITE_CONFIG_PAGECACHE] is not included in\n** this parameter.  The amount returned is the sum of the allocation\n** sizes as reported by the xSize method in [sqlite3_mem_methods].</dd>)^\n**\n** [[SQLITE_STATUS_MALLOC_SIZE]] ^(<dt>SQLITE_STATUS_MALLOC_SIZE</dt>\n** <dd>This parameter records the largest memory allocation request\n** handed to [sqlite3_malloc()] or [sqlite3_realloc()] (or their\n** internal equivalents).  Only the value returned in the\n** *pHighwater parameter to [sqlite3_status()] is of interest.  \n** The value written into the *pCurrent parameter is undefined.</dd>)^\n**\n** [[SQLITE_STATUS_MALLOC_COUNT]] ^(<dt>SQLITE_STATUS_MALLOC_COUNT</dt>\n** <dd>This parameter records the number of separate memory allocations\n** currently checked out.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_USED]] ^(<dt>SQLITE_STATUS_PAGECACHE_USED</dt>\n** <dd>This parameter returns the number of pages used out of the\n** [pagecache memory allocator] that was configured using \n** [SQLITE_CONFIG_PAGECACHE].  The\n** value returned is in pages, not in bytes.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_OVERFLOW]] \n** ^(<dt>SQLITE_STATUS_PAGECACHE_OVERFLOW</dt>\n** <dd>This parameter returns the number of bytes of page cache\n** allocation which could not be satisfied by the [SQLITE_CONFIG_PAGECACHE]\n** buffer and where forced to overflow to [sqlite3_malloc()].  The\n** returned value includes allocations that overflowed because they\n** where too large (they were larger than the \"sz\" parameter to\n** [SQLITE_CONFIG_PAGECACHE]) and allocations that overflowed because\n** no space was left in the page cache.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_SIZE]] ^(<dt>SQLITE_STATUS_PAGECACHE_SIZE</dt>\n** <dd>This parameter records the largest memory allocation request\n** handed to [pagecache memory allocator].  Only the value returned in the\n** *pHighwater parameter to [sqlite3_status()] is of interest.  \n** The value written into the *pCurrent parameter is undefined.</dd>)^\n**\n** [[SQLITE_STATUS_SCRATCH_USED]] <dt>SQLITE_STATUS_SCRATCH_USED</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_SCRATCH_OVERFLOW]] ^(<dt>SQLITE_STATUS_SCRATCH_OVERFLOW</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_SCRATCH_SIZE]] <dt>SQLITE_STATUS_SCRATCH_SIZE</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_PARSER_STACK]] ^(<dt>SQLITE_STATUS_PARSER_STACK</dt>\n** <dd>The *pHighwater parameter records the deepest parser stack. \n** The *pCurrent value is undefined.  The *pHighwater value is only\n** meaningful if SQLite is compiled with [YYTRACKMAXSTACKDEPTH].</dd>)^\n** </dl>\n**\n** New status parameters may be added from time to time.\n*/\n#define SQLITE_STATUS_MEMORY_USED          0\n#define SQLITE_STATUS_PAGECACHE_USED       1\n#define SQLITE_STATUS_PAGECACHE_OVERFLOW   2\n#define SQLITE_STATUS_SCRATCH_USED         3  /* NOT USED */\n#define SQLITE_STATUS_SCRATCH_OVERFLOW     4  /* NOT USED */\n#define SQLITE_STATUS_MALLOC_SIZE          5\n#define SQLITE_STATUS_PARSER_STACK         6\n#define SQLITE_STATUS_PAGECACHE_SIZE       7\n#define SQLITE_STATUS_SCRATCH_SIZE         8  /* NOT USED */\n#define SQLITE_STATUS_MALLOC_COUNT         9\n\n/*\n** CAPI3REF: Database Connection Status\n** METHOD: sqlite3\n**\n** ^This interface is used to retrieve runtime status information \n** about a single [database connection].  ^The first argument is the\n** database connection object to be interrogated.  ^The second argument\n** is an integer constant, taken from the set of\n** [SQLITE_DBSTATUS options], that\n** determines the parameter to interrogate.  The set of \n** [SQLITE_DBSTATUS options] is likely\n** to grow in future releases of SQLite.\n**\n** ^The current value of the requested parameter is written into *pCur\n** and the highest instantaneous value is written into *pHiwtr.  ^If\n** the resetFlg is true, then the highest instantaneous value is\n** reset back down to the current value.\n**\n** ^The sqlite3_db_status() routine returns SQLITE_OK on success and a\n** non-zero [error code] on failure.\n**\n** See also: [sqlite3_status()] and [sqlite3_stmt_status()].\n*/\nSQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg);\n\n/*\n** CAPI3REF: Status Parameters for database connections\n** KEYWORDS: {SQLITE_DBSTATUS options}\n**\n** These constants are the available integer \"verbs\" that can be passed as\n** the second argument to the [sqlite3_db_status()] interface.\n**\n** New verbs may be added in future releases of SQLite. Existing verbs\n** might be discontinued. Applications should check the return code from\n** [sqlite3_db_status()] to make sure that the call worked.\n** The [sqlite3_db_status()] interface will return a non-zero error code\n** if a discontinued or unsupported verb is invoked.\n**\n** <dl>\n** [[SQLITE_DBSTATUS_LOOKASIDE_USED]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_USED</dt>\n** <dd>This parameter returns the number of lookaside memory slots currently\n** checked out.</dd>)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_HIT]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_HIT</dt>\n** <dd>This parameter returns the number malloc attempts that were \n** satisfied using lookaside memory. Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE]]\n** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</dt>\n** <dd>This parameter returns the number malloc attempts that might have\n** been satisfied using lookaside memory but failed due to the amount of\n** memory requested being larger than the lookaside slot size.\n** Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL]]\n** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</dt>\n** <dd>This parameter returns the number malloc attempts that might have\n** been satisfied using lookaside memory but failed due to all lookaside\n** memory already being in use.\n** Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_CACHE_USED]] ^(<dt>SQLITE_DBSTATUS_CACHE_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** memory used by all pager caches associated with the database connection.)^\n** ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0.\n**\n** [[SQLITE_DBSTATUS_CACHE_USED_SHARED]] \n** ^(<dt>SQLITE_DBSTATUS_CACHE_USED_SHARED</dt>\n** <dd>This parameter is similar to DBSTATUS_CACHE_USED, except that if a\n** pager cache is shared between two or more connections the bytes of heap\n** memory used by that pager cache is divided evenly between the attached\n** connections.)^  In other words, if none of the pager caches associated\n** with the database connection are shared, this request returns the same\n** value as DBSTATUS_CACHE_USED. Or, if one or more or the pager caches are\n** shared, the value returned by this call will be smaller than that returned\n** by DBSTATUS_CACHE_USED. ^The highwater mark associated with\n** SQLITE_DBSTATUS_CACHE_USED_SHARED is always 0.\n**\n** [[SQLITE_DBSTATUS_SCHEMA_USED]] ^(<dt>SQLITE_DBSTATUS_SCHEMA_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** memory used to store the schema for all databases associated\n** with the connection - main, temp, and any [ATTACH]-ed databases.)^ \n** ^The full amount of memory used by the schemas is reported, even if the\n** schema memory is shared with other database connections due to\n** [shared cache mode] being enabled.\n** ^The highwater mark associated with SQLITE_DBSTATUS_SCHEMA_USED is always 0.\n**\n** [[SQLITE_DBSTATUS_STMT_USED]] ^(<dt>SQLITE_DBSTATUS_STMT_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** and lookaside memory used by all prepared statements associated with\n** the database connection.)^\n** ^The highwater mark associated with SQLITE_DBSTATUS_STMT_USED is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_HIT]] ^(<dt>SQLITE_DBSTATUS_CACHE_HIT</dt>\n** <dd>This parameter returns the number of pager cache hits that have\n** occurred.)^ ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_HIT \n** is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_MISS]] ^(<dt>SQLITE_DBSTATUS_CACHE_MISS</dt>\n** <dd>This parameter returns the number of pager cache misses that have\n** occurred.)^ ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_MISS \n** is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_WRITE]] ^(<dt>SQLITE_DBSTATUS_CACHE_WRITE</dt>\n** <dd>This parameter returns the number of dirty cache entries that have\n** been written to disk. Specifically, the number of pages written to the\n** wal file in wal mode databases, or the number of pages written to the\n** database file in rollback mode databases. Any pages written as part of\n** transaction rollback or database recovery operations are not included.\n** If an IO or other error occurs while writing a page to disk, the effect\n** on subsequent SQLITE_DBSTATUS_CACHE_WRITE requests is undefined.)^ ^The\n** highwater mark associated with SQLITE_DBSTATUS_CACHE_WRITE is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_DEFERRED_FKS]] ^(<dt>SQLITE_DBSTATUS_DEFERRED_FKS</dt>\n** <dd>This parameter returns zero for the current value if and only if\n** all foreign key constraints (deferred or immediate) have been\n** resolved.)^  ^The highwater mark is always 0.\n** </dd>\n** </dl>\n*/\n#define SQLITE_DBSTATUS_LOOKASIDE_USED       0\n#define SQLITE_DBSTATUS_CACHE_USED           1\n#define SQLITE_DBSTATUS_SCHEMA_USED          2\n#define SQLITE_DBSTATUS_STMT_USED            3\n#define SQLITE_DBSTATUS_LOOKASIDE_HIT        4\n#define SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE  5\n#define SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL  6\n#define SQLITE_DBSTATUS_CACHE_HIT            7\n#define SQLITE_DBSTATUS_CACHE_MISS           8\n#define SQLITE_DBSTATUS_CACHE_WRITE          9\n#define SQLITE_DBSTATUS_DEFERRED_FKS        10\n#define SQLITE_DBSTATUS_CACHE_USED_SHARED   11\n#define SQLITE_DBSTATUS_MAX                 11   /* Largest defined DBSTATUS */\n\n\n/*\n** CAPI3REF: Prepared Statement Status\n** METHOD: sqlite3_stmt\n**\n** ^(Each prepared statement maintains various\n** [SQLITE_STMTSTATUS counters] that measure the number\n** of times it has performed specific operations.)^  These counters can\n** be used to monitor the performance characteristics of the prepared\n** statements.  For example, if the number of table steps greatly exceeds\n** the number of table searches or result rows, that would tend to indicate\n** that the prepared statement is using a full table scan rather than\n** an index.  \n**\n** ^(This interface is used to retrieve and reset counter values from\n** a [prepared statement].  The first argument is the prepared statement\n** object to be interrogated.  The second argument\n** is an integer code for a specific [SQLITE_STMTSTATUS counter]\n** to be interrogated.)^\n** ^The current value of the requested counter is returned.\n** ^If the resetFlg is true, then the counter is reset to zero after this\n** interface call returns.\n**\n** See also: [sqlite3_status()] and [sqlite3_db_status()].\n*/\nSQLITE_API int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg);\n\n/*\n** CAPI3REF: Status Parameters for prepared statements\n** KEYWORDS: {SQLITE_STMTSTATUS counter} {SQLITE_STMTSTATUS counters}\n**\n** These preprocessor macros define integer codes that name counter\n** values associated with the [sqlite3_stmt_status()] interface.\n** The meanings of the various counters are as follows:\n**\n** <dl>\n** [[SQLITE_STMTSTATUS_FULLSCAN_STEP]] <dt>SQLITE_STMTSTATUS_FULLSCAN_STEP</dt>\n** <dd>^This is the number of times that SQLite has stepped forward in\n** a table as part of a full table scan.  Large numbers for this counter\n** may indicate opportunities for performance improvement through \n** careful use of indices.</dd>\n**\n** [[SQLITE_STMTSTATUS_SORT]] <dt>SQLITE_STMTSTATUS_SORT</dt>\n** <dd>^This is the number of sort operations that have occurred.\n** A non-zero value in this counter may indicate an opportunity to\n** improvement performance through careful use of indices.</dd>\n**\n** [[SQLITE_STMTSTATUS_AUTOINDEX]] <dt>SQLITE_STMTSTATUS_AUTOINDEX</dt>\n** <dd>^This is the number of rows inserted into transient indices that\n** were created automatically in order to help joins run faster.\n** A non-zero value in this counter may indicate an opportunity to\n** improvement performance by adding permanent indices that do not\n** need to be reinitialized each time the statement is run.</dd>\n**\n** [[SQLITE_STMTSTATUS_VM_STEP]] <dt>SQLITE_STMTSTATUS_VM_STEP</dt>\n** <dd>^This is the number of virtual machine operations executed\n** by the prepared statement if that number is less than or equal\n** to 2147483647.  The number of virtual machine operations can be \n** used as a proxy for the total work done by the prepared statement.\n** If the number of virtual machine operations exceeds 2147483647\n** then the value returned by this statement status code is undefined.\n**\n** [[SQLITE_STMTSTATUS_REPREPARE]] <dt>SQLITE_STMTSTATUS_REPREPARE</dt>\n** <dd>^This is the number of times that the prepare statement has been\n** automatically regenerated due to schema changes or change to \n** [bound parameters] that might affect the query plan.\n**\n** [[SQLITE_STMTSTATUS_RUN]] <dt>SQLITE_STMTSTATUS_RUN</dt>\n** <dd>^This is the number of times that the prepared statement has\n** been run.  A single \"run\" for the purposes of this counter is one\n** or more calls to [sqlite3_step()] followed by a call to [sqlite3_reset()].\n** The counter is incremented on the first [sqlite3_step()] call of each\n** cycle.\n**\n** [[SQLITE_STMTSTATUS_MEMUSED]] <dt>SQLITE_STMTSTATUS_MEMUSED</dt>\n** <dd>^This is the approximate number of bytes of heap memory\n** used to store the prepared statement.  ^This value is not actually\n** a counter, and so the resetFlg parameter to sqlite3_stmt_status()\n** is ignored when the opcode is SQLITE_STMTSTATUS_MEMUSED.\n** </dd>\n** </dl>\n*/\n#define SQLITE_STMTSTATUS_FULLSCAN_STEP     1\n#define SQLITE_STMTSTATUS_SORT              2\n#define SQLITE_STMTSTATUS_AUTOINDEX         3\n#define SQLITE_STMTSTATUS_VM_STEP           4\n#define SQLITE_STMTSTATUS_REPREPARE         5\n#define SQLITE_STMTSTATUS_RUN               6\n#define SQLITE_STMTSTATUS_MEMUSED           99\n\n/*\n** CAPI3REF: Custom Page Cache Object\n**\n** The sqlite3_pcache type is opaque.  It is implemented by\n** the pluggable module.  The SQLite core has no knowledge of\n** its size or internal structure and never deals with the\n** sqlite3_pcache object except by holding and passing pointers\n** to the object.\n**\n** See [sqlite3_pcache_methods2] for additional information.\n*/\ntypedef struct sqlite3_pcache sqlite3_pcache;\n\n/*\n** CAPI3REF: Custom Page Cache Object\n**\n** The sqlite3_pcache_page object represents a single page in the\n** page cache.  The page cache will allocate instances of this\n** object.  Various methods of the page cache use pointers to instances\n** of this object as parameters or as their return value.\n**\n** See [sqlite3_pcache_methods2] for additional information.\n*/\ntypedef struct sqlite3_pcache_page sqlite3_pcache_page;\nstruct sqlite3_pcache_page {\n  void *pBuf;        /* The content of the page */\n  void *pExtra;      /* Extra information associated with the page */\n};\n\n/*\n** CAPI3REF: Application Defined Page Cache.\n** KEYWORDS: {page cache}\n**\n** ^(The [sqlite3_config]([SQLITE_CONFIG_PCACHE2], ...) interface can\n** register an alternative page cache implementation by passing in an \n** instance of the sqlite3_pcache_methods2 structure.)^\n** In many applications, most of the heap memory allocated by \n** SQLite is used for the page cache.\n** By implementing a \n** custom page cache using this API, an application can better control\n** the amount of memory consumed by SQLite, the way in which \n** that memory is allocated and released, and the policies used to \n** determine exactly which parts of a database file are cached and for \n** how long.\n**\n** The alternative page cache mechanism is an\n** extreme measure that is only needed by the most demanding applications.\n** The built-in page cache is recommended for most uses.\n**\n** ^(The contents of the sqlite3_pcache_methods2 structure are copied to an\n** internal buffer by SQLite within the call to [sqlite3_config].  Hence\n** the application may discard the parameter after the call to\n** [sqlite3_config()] returns.)^\n**\n** [[the xInit() page cache method]]\n** ^(The xInit() method is called once for each effective \n** call to [sqlite3_initialize()])^\n** (usually only once during the lifetime of the process). ^(The xInit()\n** method is passed a copy of the sqlite3_pcache_methods2.pArg value.)^\n** The intent of the xInit() method is to set up global data structures \n** required by the custom page cache implementation. \n** ^(If the xInit() method is NULL, then the \n** built-in default page cache is used instead of the application defined\n** page cache.)^\n**\n** [[the xShutdown() page cache method]]\n** ^The xShutdown() method is called by [sqlite3_shutdown()].\n** It can be used to clean up \n** any outstanding resources before process shutdown, if required.\n** ^The xShutdown() method may be NULL.\n**\n** ^SQLite automatically serializes calls to the xInit method,\n** so the xInit method need not be threadsafe.  ^The\n** xShutdown method is only called from [sqlite3_shutdown()] so it does\n** not need to be threadsafe either.  All other methods must be threadsafe\n** in multithreaded applications.\n**\n** ^SQLite will never invoke xInit() more than once without an intervening\n** call to xShutdown().\n**\n** [[the xCreate() page cache methods]]\n** ^SQLite invokes the xCreate() method to construct a new cache instance.\n** SQLite will typically create one cache instance for each open database file,\n** though this is not guaranteed. ^The\n** first parameter, szPage, is the size in bytes of the pages that must\n** be allocated by the cache.  ^szPage will always a power of two.  ^The\n** second parameter szExtra is a number of bytes of extra storage \n** associated with each page cache entry.  ^The szExtra parameter will\n** a number less than 250.  SQLite will use the\n** extra szExtra bytes on each page to store metadata about the underlying\n** database page on disk.  The value passed into szExtra depends\n** on the SQLite version, the target platform, and how SQLite was compiled.\n** ^The third argument to xCreate(), bPurgeable, is true if the cache being\n** created will be used to cache database pages of a file stored on disk, or\n** false if it is used for an in-memory database. The cache implementation\n** does not have to do anything special based with the value of bPurgeable;\n** it is purely advisory.  ^On a cache where bPurgeable is false, SQLite will\n** never invoke xUnpin() except to deliberately delete a page.\n** ^In other words, calls to xUnpin() on a cache with bPurgeable set to\n** false will always have the \"discard\" flag set to true.  \n** ^Hence, a cache created with bPurgeable false will\n** never contain any unpinned pages.\n**\n** [[the xCachesize() page cache method]]\n** ^(The xCachesize() method may be called at any time by SQLite to set the\n** suggested maximum cache-size (number of pages stored by) the cache\n** instance passed as the first argument. This is the value configured using\n** the SQLite \"[PRAGMA cache_size]\" command.)^  As with the bPurgeable\n** parameter, the implementation is not required to do anything with this\n** value; it is advisory only.\n**\n** [[the xPagecount() page cache methods]]\n** The xPagecount() method must return the number of pages currently\n** stored in the cache, both pinned and unpinned.\n** \n** [[the xFetch() page cache methods]]\n** The xFetch() method locates a page in the cache and returns a pointer to \n** an sqlite3_pcache_page object associated with that page, or a NULL pointer.\n** The pBuf element of the returned sqlite3_pcache_page object will be a\n** pointer to a buffer of szPage bytes used to store the content of a \n** single database page.  The pExtra element of sqlite3_pcache_page will be\n** a pointer to the szExtra bytes of extra storage that SQLite has requested\n** for each entry in the page cache.\n**\n** The page to be fetched is determined by the key. ^The minimum key value\n** is 1.  After it has been retrieved using xFetch, the page is considered\n** to be \"pinned\".\n**\n** If the requested page is already in the page cache, then the page cache\n** implementation must return a pointer to the page buffer with its content\n** intact.  If the requested page is not already in the cache, then the\n** cache implementation should use the value of the createFlag\n** parameter to help it determined what action to take:\n**\n** <table border=1 width=85% align=center>\n** <tr><th> createFlag <th> Behavior when page is not already in cache\n** <tr><td> 0 <td> Do not allocate a new page.  Return NULL.\n** <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so.\n**                 Otherwise return NULL.\n** <tr><td> 2 <td> Make every effort to allocate a new page.  Only return\n**                 NULL if allocating a new page is effectively impossible.\n** </table>\n**\n** ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1.  SQLite\n** will only use a createFlag of 2 after a prior call with a createFlag of 1\n** failed.)^  In between the to xFetch() calls, SQLite may\n** attempt to unpin one or more cache pages by spilling the content of\n** pinned pages to disk and synching the operating system disk cache.\n**\n** [[the xUnpin() page cache method]]\n** ^xUnpin() is called by SQLite with a pointer to a currently pinned page\n** as its second argument.  If the third parameter, discard, is non-zero,\n** then the page must be evicted from the cache.\n** ^If the discard parameter is\n** zero, then the page may be discarded or retained at the discretion of\n** page cache implementation. ^The page cache implementation\n** may choose to evict unpinned pages at any time.\n**\n** The cache must not perform any reference counting. A single \n** call to xUnpin() unpins the page regardless of the number of prior calls \n** to xFetch().\n**\n** [[the xRekey() page cache methods]]\n** The xRekey() method is used to change the key value associated with the\n** page passed as the second argument. If the cache\n** previously contains an entry associated with newKey, it must be\n** discarded. ^Any prior cache entry associated with newKey is guaranteed not\n** to be pinned.\n**\n** When SQLite calls the xTruncate() method, the cache must discard all\n** existing cache entries with page numbers (keys) greater than or equal\n** to the value of the iLimit parameter passed to xTruncate(). If any\n** of these pages are pinned, they are implicitly unpinned, meaning that\n** they can be safely discarded.\n**\n** [[the xDestroy() page cache method]]\n** ^The xDestroy() method is used to delete a cache allocated by xCreate().\n** All resources associated with the specified cache should be freed. ^After\n** calling the xDestroy() method, SQLite considers the [sqlite3_pcache*]\n** handle invalid, and will not use it with any other sqlite3_pcache_methods2\n** functions.\n**\n** [[the xShrink() page cache method]]\n** ^SQLite invokes the xShrink() method when it wants the page cache to\n** free up as much of heap memory as possible.  The page cache implementation\n** is not obligated to free any memory, but well-behaved implementations should\n** do their best.\n*/\ntypedef struct sqlite3_pcache_methods2 sqlite3_pcache_methods2;\nstruct sqlite3_pcache_methods2 {\n  int iVersion;\n  void *pArg;\n  int (*xInit)(void*);\n  void (*xShutdown)(void*);\n  sqlite3_pcache *(*xCreate)(int szPage, int szExtra, int bPurgeable);\n  void (*xCachesize)(sqlite3_pcache*, int nCachesize);\n  int (*xPagecount)(sqlite3_pcache*);\n  sqlite3_pcache_page *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);\n  void (*xUnpin)(sqlite3_pcache*, sqlite3_pcache_page*, int discard);\n  void (*xRekey)(sqlite3_pcache*, sqlite3_pcache_page*, \n      unsigned oldKey, unsigned newKey);\n  void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);\n  void (*xDestroy)(sqlite3_pcache*);\n  void (*xShrink)(sqlite3_pcache*);\n};\n\n/*\n** This is the obsolete pcache_methods object that has now been replaced\n** by sqlite3_pcache_methods2.  This object is not used by SQLite.  It is\n** retained in the header file for backwards compatibility only.\n*/\ntypedef struct sqlite3_pcache_methods sqlite3_pcache_methods;\nstruct sqlite3_pcache_methods {\n  void *pArg;\n  int (*xInit)(void*);\n  void (*xShutdown)(void*);\n  sqlite3_pcache *(*xCreate)(int szPage, int bPurgeable);\n  void (*xCachesize)(sqlite3_pcache*, int nCachesize);\n  int (*xPagecount)(sqlite3_pcache*);\n  void *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);\n  void (*xUnpin)(sqlite3_pcache*, void*, int discard);\n  void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);\n  void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);\n  void (*xDestroy)(sqlite3_pcache*);\n};\n\n\n/*\n** CAPI3REF: Online Backup Object\n**\n** The sqlite3_backup object records state information about an ongoing\n** online backup operation.  ^The sqlite3_backup object is created by\n** a call to [sqlite3_backup_init()] and is destroyed by a call to\n** [sqlite3_backup_finish()].\n**\n** See Also: [Using the SQLite Online Backup API]\n*/\ntypedef struct sqlite3_backup sqlite3_backup;\n\n/*\n** CAPI3REF: Online Backup API.\n**\n** The backup API copies the content of one database into another.\n** It is useful either for creating backups of databases or\n** for copying in-memory databases to or from persistent files. \n**\n** See Also: [Using the SQLite Online Backup API]\n**\n** ^SQLite holds a write transaction open on the destination database file\n** for the duration of the backup operation.\n** ^The source database is read-locked only while it is being read;\n** it is not locked continuously for the entire backup operation.\n** ^Thus, the backup may be performed on a live source database without\n** preventing other database connections from\n** reading or writing to the source database while the backup is underway.\n** \n** ^(To perform a backup operation: \n**   <ol>\n**     <li><b>sqlite3_backup_init()</b> is called once to initialize the\n**         backup, \n**     <li><b>sqlite3_backup_step()</b> is called one or more times to transfer \n**         the data between the two databases, and finally\n**     <li><b>sqlite3_backup_finish()</b> is called to release all resources \n**         associated with the backup operation. \n**   </ol>)^\n** There should be exactly one call to sqlite3_backup_finish() for each\n** successful call to sqlite3_backup_init().\n**\n** [[sqlite3_backup_init()]] <b>sqlite3_backup_init()</b>\n**\n** ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the \n** [database connection] associated with the destination database \n** and the database name, respectively.\n** ^The database name is \"main\" for the main database, \"temp\" for the\n** temporary database, or the name specified after the AS keyword in\n** an [ATTACH] statement for an attached database.\n** ^The S and M arguments passed to \n** sqlite3_backup_init(D,N,S,M) identify the [database connection]\n** and database name of the source database, respectively.\n** ^The source and destination [database connections] (parameters S and D)\n** must be different or else sqlite3_backup_init(D,N,S,M) will fail with\n** an error.\n**\n** ^A call to sqlite3_backup_init() will fail, returning NULL, if \n** there is already a read or read-write transaction open on the \n** destination database.\n**\n** ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is\n** returned and an error code and error message are stored in the\n** destination [database connection] D.\n** ^The error code and message for the failed call to sqlite3_backup_init()\n** can be retrieved using the [sqlite3_errcode()], [sqlite3_errmsg()], and/or\n** [sqlite3_errmsg16()] functions.\n** ^A successful call to sqlite3_backup_init() returns a pointer to an\n** [sqlite3_backup] object.\n** ^The [sqlite3_backup] object may be used with the sqlite3_backup_step() and\n** sqlite3_backup_finish() functions to perform the specified backup \n** operation.\n**\n** [[sqlite3_backup_step()]] <b>sqlite3_backup_step()</b>\n**\n** ^Function sqlite3_backup_step(B,N) will copy up to N pages between \n** the source and destination databases specified by [sqlite3_backup] object B.\n** ^If N is negative, all remaining source pages are copied. \n** ^If sqlite3_backup_step(B,N) successfully copies N pages and there\n** are still more pages to be copied, then the function returns [SQLITE_OK].\n** ^If sqlite3_backup_step(B,N) successfully finishes copying all pages\n** from source to destination, then it returns [SQLITE_DONE].\n** ^If an error occurs while running sqlite3_backup_step(B,N),\n** then an [error code] is returned. ^As well as [SQLITE_OK] and\n** [SQLITE_DONE], a call to sqlite3_backup_step() may return [SQLITE_READONLY],\n** [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an\n** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code.\n**\n** ^(The sqlite3_backup_step() might return [SQLITE_READONLY] if\n** <ol>\n** <li> the destination database was opened read-only, or\n** <li> the destination database is using write-ahead-log journaling\n** and the destination and source page sizes differ, or\n** <li> the destination database is an in-memory database and the\n** destination and source page sizes differ.\n** </ol>)^\n**\n** ^If sqlite3_backup_step() cannot obtain a required file-system lock, then\n** the [sqlite3_busy_handler | busy-handler function]\n** is invoked (if one is specified). ^If the \n** busy-handler returns non-zero before the lock is available, then \n** [SQLITE_BUSY] is returned to the caller. ^In this case the call to\n** sqlite3_backup_step() can be retried later. ^If the source\n** [database connection]\n** is being used to write to the source database when sqlite3_backup_step()\n** is called, then [SQLITE_LOCKED] is returned immediately. ^Again, in this\n** case the call to sqlite3_backup_step() can be retried later on. ^(If\n** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX], [SQLITE_NOMEM], or\n** [SQLITE_READONLY] is returned, then \n** there is no point in retrying the call to sqlite3_backup_step(). These \n** errors are considered fatal.)^  The application must accept \n** that the backup operation has failed and pass the backup operation handle \n** to the sqlite3_backup_finish() to release associated resources.\n**\n** ^The first call to sqlite3_backup_step() obtains an exclusive lock\n** on the destination file. ^The exclusive lock is not released until either \n** sqlite3_backup_finish() is called or the backup operation is complete \n** and sqlite3_backup_step() returns [SQLITE_DONE].  ^Every call to\n** sqlite3_backup_step() obtains a [shared lock] on the source database that\n** lasts for the duration of the sqlite3_backup_step() call.\n** ^Because the source database is not locked between calls to\n** sqlite3_backup_step(), the source database may be modified mid-way\n** through the backup process.  ^If the source database is modified by an\n** external process or via a database connection other than the one being\n** used by the backup operation, then the backup will be automatically\n** restarted by the next call to sqlite3_backup_step(). ^If the source \n** database is modified by the using the same database connection as is used\n** by the backup operation, then the backup database is automatically\n** updated at the same time.\n**\n** [[sqlite3_backup_finish()]] <b>sqlite3_backup_finish()</b>\n**\n** When sqlite3_backup_step() has returned [SQLITE_DONE], or when the \n** application wishes to abandon the backup operation, the application\n** should destroy the [sqlite3_backup] by passing it to sqlite3_backup_finish().\n** ^The sqlite3_backup_finish() interfaces releases all\n** resources associated with the [sqlite3_backup] object. \n** ^If sqlite3_backup_step() has not yet returned [SQLITE_DONE], then any\n** active write-transaction on the destination database is rolled back.\n** The [sqlite3_backup] object is invalid\n** and may not be used following a call to sqlite3_backup_finish().\n**\n** ^The value returned by sqlite3_backup_finish is [SQLITE_OK] if no\n** sqlite3_backup_step() errors occurred, regardless or whether or not\n** sqlite3_backup_step() completed.\n** ^If an out-of-memory condition or IO error occurred during any prior\n** sqlite3_backup_step() call on the same [sqlite3_backup] object, then\n** sqlite3_backup_finish() returns the corresponding [error code].\n**\n** ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step()\n** is not a permanent error and does not affect the return value of\n** sqlite3_backup_finish().\n**\n** [[sqlite3_backup_remaining()]] [[sqlite3_backup_pagecount()]]\n** <b>sqlite3_backup_remaining() and sqlite3_backup_pagecount()</b>\n**\n** ^The sqlite3_backup_remaining() routine returns the number of pages still\n** to be backed up at the conclusion of the most recent sqlite3_backup_step().\n** ^The sqlite3_backup_pagecount() routine returns the total number of pages\n** in the source database at the conclusion of the most recent\n** sqlite3_backup_step().\n** ^(The values returned by these functions are only updated by\n** sqlite3_backup_step(). If the source database is modified in a way that\n** changes the size of the source database or the number of pages remaining,\n** those changes are not reflected in the output of sqlite3_backup_pagecount()\n** and sqlite3_backup_remaining() until after the next\n** sqlite3_backup_step().)^\n**\n** <b>Concurrent Usage of Database Handles</b>\n**\n** ^The source [database connection] may be used by the application for other\n** purposes while a backup operation is underway or being initialized.\n** ^If SQLite is compiled and configured to support threadsafe database\n** connections, then the source database connection may be used concurrently\n** from within other threads.\n**\n** However, the application must guarantee that the destination \n** [database connection] is not passed to any other API (by any thread) after \n** sqlite3_backup_init() is called and before the corresponding call to\n** sqlite3_backup_finish().  SQLite does not currently check to see\n** if the application incorrectly accesses the destination [database connection]\n** and so no error code is reported, but the operations may malfunction\n** nevertheless.  Use of the destination database connection while a\n** backup is in progress might also also cause a mutex deadlock.\n**\n** If running in [shared cache mode], the application must\n** guarantee that the shared cache used by the destination database\n** is not accessed while the backup is running. In practice this means\n** that the application must guarantee that the disk file being \n** backed up to is not accessed by any connection within the process,\n** not just the specific connection that was passed to sqlite3_backup_init().\n**\n** The [sqlite3_backup] object itself is partially threadsafe. Multiple \n** threads may safely make multiple concurrent calls to sqlite3_backup_step().\n** However, the sqlite3_backup_remaining() and sqlite3_backup_pagecount()\n** APIs are not strictly speaking threadsafe. If they are invoked at the\n** same time as another thread is invoking sqlite3_backup_step() it is\n** possible that they return invalid values.\n*/\nSQLITE_API sqlite3_backup *sqlite3_backup_init(\n  sqlite3 *pDest,                        /* Destination database handle */\n  const char *zDestName,                 /* Destination database name */\n  sqlite3 *pSource,                      /* Source database handle */\n  const char *zSourceName                /* Source database name */\n);\nSQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage);\nSQLITE_API int sqlite3_backup_finish(sqlite3_backup *p);\nSQLITE_API int sqlite3_backup_remaining(sqlite3_backup *p);\nSQLITE_API int sqlite3_backup_pagecount(sqlite3_backup *p);\n\n/*\n** CAPI3REF: Unlock Notification\n** METHOD: sqlite3\n**\n** ^When running in shared-cache mode, a database operation may fail with\n** an [SQLITE_LOCKED] error if the required locks on the shared-cache or\n** individual tables within the shared-cache cannot be obtained. See\n** [SQLite Shared-Cache Mode] for a description of shared-cache locking. \n** ^This API may be used to register a callback that SQLite will invoke \n** when the connection currently holding the required lock relinquishes it.\n** ^This API is only available if the library was compiled with the\n** [SQLITE_ENABLE_UNLOCK_NOTIFY] C-preprocessor symbol defined.\n**\n** See Also: [Using the SQLite Unlock Notification Feature].\n**\n** ^Shared-cache locks are released when a database connection concludes\n** its current transaction, either by committing it or rolling it back. \n**\n** ^When a connection (known as the blocked connection) fails to obtain a\n** shared-cache lock and SQLITE_LOCKED is returned to the caller, the\n** identity of the database connection (the blocking connection) that\n** has locked the required resource is stored internally. ^After an \n** application receives an SQLITE_LOCKED error, it may call the\n** sqlite3_unlock_notify() method with the blocked connection handle as \n** the first argument to register for a callback that will be invoked\n** when the blocking connections current transaction is concluded. ^The\n** callback is invoked from within the [sqlite3_step] or [sqlite3_close]\n** call that concludes the blocking connections transaction.\n**\n** ^(If sqlite3_unlock_notify() is called in a multi-threaded application,\n** there is a chance that the blocking connection will have already\n** concluded its transaction by the time sqlite3_unlock_notify() is invoked.\n** If this happens, then the specified callback is invoked immediately,\n** from within the call to sqlite3_unlock_notify().)^\n**\n** ^If the blocked connection is attempting to obtain a write-lock on a\n** shared-cache table, and more than one other connection currently holds\n** a read-lock on the same table, then SQLite arbitrarily selects one of \n** the other connections to use as the blocking connection.\n**\n** ^(There may be at most one unlock-notify callback registered by a \n** blocked connection. If sqlite3_unlock_notify() is called when the\n** blocked connection already has a registered unlock-notify callback,\n** then the new callback replaces the old.)^ ^If sqlite3_unlock_notify() is\n** called with a NULL pointer as its second argument, then any existing\n** unlock-notify callback is canceled. ^The blocked connections \n** unlock-notify callback may also be canceled by closing the blocked\n** connection using [sqlite3_close()].\n**\n** The unlock-notify callback is not reentrant. If an application invokes\n** any sqlite3_xxx API functions from within an unlock-notify callback, a\n** crash or deadlock may be the result.\n**\n** ^Unless deadlock is detected (see below), sqlite3_unlock_notify() always\n** returns SQLITE_OK.\n**\n** <b>Callback Invocation Details</b>\n**\n** When an unlock-notify callback is registered, the application provides a \n** single void* pointer that is passed to the callback when it is invoked.\n** However, the signature of the callback function allows SQLite to pass\n** it an array of void* context pointers. The first argument passed to\n** an unlock-notify callback is a pointer to an array of void* pointers,\n** and the second is the number of entries in the array.\n**\n** When a blocking connections transaction is concluded, there may be\n** more than one blocked connection that has registered for an unlock-notify\n** callback. ^If two or more such blocked connections have specified the\n** same callback function, then instead of invoking the callback function\n** multiple times, it is invoked once with the set of void* context pointers\n** specified by the blocked connections bundled together into an array.\n** This gives the application an opportunity to prioritize any actions \n** related to the set of unblocked database connections.\n**\n** <b>Deadlock Detection</b>\n**\n** Assuming that after registering for an unlock-notify callback a \n** database waits for the callback to be issued before taking any further\n** action (a reasonable assumption), then using this API may cause the\n** application to deadlock. For example, if connection X is waiting for\n** connection Y's transaction to be concluded, and similarly connection\n** Y is waiting on connection X's transaction, then neither connection\n** will proceed and the system may remain deadlocked indefinitely.\n**\n** To avoid this scenario, the sqlite3_unlock_notify() performs deadlock\n** detection. ^If a given call to sqlite3_unlock_notify() would put the\n** system in a deadlocked state, then SQLITE_LOCKED is returned and no\n** unlock-notify callback is registered. The system is said to be in\n** a deadlocked state if connection A has registered for an unlock-notify\n** callback on the conclusion of connection B's transaction, and connection\n** B has itself registered for an unlock-notify callback when connection\n** A's transaction is concluded. ^Indirect deadlock is also detected, so\n** the system is also considered to be deadlocked if connection B has\n** registered for an unlock-notify callback on the conclusion of connection\n** C's transaction, where connection C is waiting on connection A. ^Any\n** number of levels of indirection are allowed.\n**\n** <b>The \"DROP TABLE\" Exception</b>\n**\n** When a call to [sqlite3_step()] returns SQLITE_LOCKED, it is almost \n** always appropriate to call sqlite3_unlock_notify(). There is however,\n** one exception. When executing a \"DROP TABLE\" or \"DROP INDEX\" statement,\n** SQLite checks if there are any currently executing SELECT statements\n** that belong to the same connection. If there are, SQLITE_LOCKED is\n** returned. In this case there is no \"blocking connection\", so invoking\n** sqlite3_unlock_notify() results in the unlock-notify callback being\n** invoked immediately. If the application then re-attempts the \"DROP TABLE\"\n** or \"DROP INDEX\" query, an infinite loop might be the result.\n**\n** One way around this problem is to check the extended error code returned\n** by an sqlite3_step() call. ^(If there is a blocking connection, then the\n** extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in\n** the special \"DROP TABLE/INDEX\" case, the extended error code is just \n** SQLITE_LOCKED.)^\n*/\nSQLITE_API int sqlite3_unlock_notify(\n  sqlite3 *pBlocked,                          /* Waiting connection */\n  void (*xNotify)(void **apArg, int nArg),    /* Callback function to invoke */\n  void *pNotifyArg                            /* Argument to pass to xNotify */\n);\n\n\n/*\n** CAPI3REF: String Comparison\n**\n** ^The [sqlite3_stricmp()] and [sqlite3_strnicmp()] APIs allow applications\n** and extensions to compare the contents of two buffers containing UTF-8\n** strings in a case-independent fashion, using the same definition of \"case\n** independence\" that SQLite uses internally when comparing identifiers.\n*/\nSQLITE_API int sqlite3_stricmp(const char *, const char *);\nSQLITE_API int sqlite3_strnicmp(const char *, const char *, int);\n\n/*\n** CAPI3REF: String Globbing\n*\n** ^The [sqlite3_strglob(P,X)] interface returns zero if and only if\n** string X matches the [GLOB] pattern P.\n** ^The definition of [GLOB] pattern matching used in\n** [sqlite3_strglob(P,X)] is the same as for the \"X GLOB P\" operator in the\n** SQL dialect understood by SQLite.  ^The [sqlite3_strglob(P,X)] function\n** is case sensitive.\n**\n** Note that this routine returns zero on a match and non-zero if the strings\n** do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()].\n**\n** See also: [sqlite3_strlike()].\n*/\nSQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr);\n\n/*\n** CAPI3REF: String LIKE Matching\n*\n** ^The [sqlite3_strlike(P,X,E)] interface returns zero if and only if\n** string X matches the [LIKE] pattern P with escape character E.\n** ^The definition of [LIKE] pattern matching used in\n** [sqlite3_strlike(P,X,E)] is the same as for the \"X LIKE P ESCAPE E\"\n** operator in the SQL dialect understood by SQLite.  ^For \"X LIKE P\" without\n** the ESCAPE clause, set the E parameter of [sqlite3_strlike(P,X,E)] to 0.\n** ^As with the LIKE operator, the [sqlite3_strlike(P,X,E)] function is case\n** insensitive - equivalent upper and lower case ASCII characters match\n** one another.\n**\n** ^The [sqlite3_strlike(P,X,E)] function matches Unicode characters, though\n** only ASCII characters are case folded.\n**\n** Note that this routine returns zero on a match and non-zero if the strings\n** do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()].\n**\n** See also: [sqlite3_strglob()].\n*/\nSQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc);\n\n/*\n** CAPI3REF: Error Logging Interface\n**\n** ^The [sqlite3_log()] interface writes a message into the [error log]\n** established by the [SQLITE_CONFIG_LOG] option to [sqlite3_config()].\n** ^If logging is enabled, the zFormat string and subsequent arguments are\n** used with [sqlite3_snprintf()] to generate the final output string.\n**\n** The sqlite3_log() interface is intended for use by extensions such as\n** virtual tables, collating functions, and SQL functions.  While there is\n** nothing to prevent an application from calling sqlite3_log(), doing so\n** is considered bad form.\n**\n** The zFormat string must not be NULL.\n**\n** To avoid deadlocks and other threading problems, the sqlite3_log() routine\n** will not use dynamically allocated memory.  The log message is stored in\n** a fixed-length buffer on the stack.  If the log message is longer than\n** a few hundred characters, it will be truncated to the length of the\n** buffer.\n*/\nSQLITE_API void sqlite3_log(int iErrCode, const char *zFormat, ...);\n\n/*\n** CAPI3REF: Write-Ahead Log Commit Hook\n** METHOD: sqlite3\n**\n** ^The [sqlite3_wal_hook()] function is used to register a callback that\n** is invoked each time data is committed to a database in wal mode.\n**\n** ^(The callback is invoked by SQLite after the commit has taken place and \n** the associated write-lock on the database released)^, so the implementation \n** may read, write or [checkpoint] the database as required.\n**\n** ^The first parameter passed to the callback function when it is invoked\n** is a copy of the third parameter passed to sqlite3_wal_hook() when\n** registering the callback. ^The second is a copy of the database handle.\n** ^The third parameter is the name of the database that was written to -\n** either \"main\" or the name of an [ATTACH]-ed database. ^The fourth parameter\n** is the number of pages currently in the write-ahead log file,\n** including those that were just committed.\n**\n** The callback function should normally return [SQLITE_OK].  ^If an error\n** code is returned, that error will propagate back up through the\n** SQLite code base to cause the statement that provoked the callback\n** to report an error, though the commit will have still occurred. If the\n** callback returns [SQLITE_ROW] or [SQLITE_DONE], or if it returns a value\n** that does not correspond to any valid SQLite error code, the results\n** are undefined.\n**\n** A single database handle may have at most a single write-ahead log callback \n** registered at one time. ^Calling [sqlite3_wal_hook()] replaces any\n** previously registered write-ahead log callback. ^Note that the\n** [sqlite3_wal_autocheckpoint()] interface and the\n** [wal_autocheckpoint pragma] both invoke [sqlite3_wal_hook()] and will\n** overwrite any prior [sqlite3_wal_hook()] settings.\n*/\nSQLITE_API void *sqlite3_wal_hook(\n  sqlite3*, \n  int(*)(void *,sqlite3*,const char*,int),\n  void*\n);\n\n/*\n** CAPI3REF: Configure an auto-checkpoint\n** METHOD: sqlite3\n**\n** ^The [sqlite3_wal_autocheckpoint(D,N)] is a wrapper around\n** [sqlite3_wal_hook()] that causes any database on [database connection] D\n** to automatically [checkpoint]\n** after committing a transaction if there are N or\n** more frames in the [write-ahead log] file.  ^Passing zero or \n** a negative value as the nFrame parameter disables automatic\n** checkpoints entirely.\n**\n** ^The callback registered by this function replaces any existing callback\n** registered using [sqlite3_wal_hook()].  ^Likewise, registering a callback\n** using [sqlite3_wal_hook()] disables the automatic checkpoint mechanism\n** configured by this function.\n**\n** ^The [wal_autocheckpoint pragma] can be used to invoke this interface\n** from SQL.\n**\n** ^Checkpoints initiated by this mechanism are\n** [sqlite3_wal_checkpoint_v2|PASSIVE].\n**\n** ^Every new [database connection] defaults to having the auto-checkpoint\n** enabled with a threshold of 1000 or [SQLITE_DEFAULT_WAL_AUTOCHECKPOINT]\n** pages.  The use of this interface\n** is only necessary if the default setting is found to be suboptimal\n** for a particular application.\n*/\nSQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);\n\n/*\n** CAPI3REF: Checkpoint a database\n** METHOD: sqlite3\n**\n** ^(The sqlite3_wal_checkpoint(D,X) is equivalent to\n** [sqlite3_wal_checkpoint_v2](D,X,[SQLITE_CHECKPOINT_PASSIVE],0,0).)^\n**\n** In brief, sqlite3_wal_checkpoint(D,X) causes the content in the \n** [write-ahead log] for database X on [database connection] D to be\n** transferred into the database file and for the write-ahead log to\n** be reset.  See the [checkpointing] documentation for addition\n** information.\n**\n** This interface used to be the only way to cause a checkpoint to\n** occur.  But then the newer and more powerful [sqlite3_wal_checkpoint_v2()]\n** interface was added.  This interface is retained for backwards\n** compatibility and as a convenience for applications that need to manually\n** start a callback but which do not need the full power (and corresponding\n** complication) of [sqlite3_wal_checkpoint_v2()].\n*/\nSQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);\n\n/*\n** CAPI3REF: Checkpoint a database\n** METHOD: sqlite3\n**\n** ^(The sqlite3_wal_checkpoint_v2(D,X,M,L,C) interface runs a checkpoint\n** operation on database X of [database connection] D in mode M.  Status\n** information is written back into integers pointed to by L and C.)^\n** ^(The M parameter must be a valid [checkpoint mode]:)^\n**\n** <dl>\n** <dt>SQLITE_CHECKPOINT_PASSIVE<dd>\n**   ^Checkpoint as many frames as possible without waiting for any database \n**   readers or writers to finish, then sync the database file if all frames \n**   in the log were checkpointed. ^The [busy-handler callback]\n**   is never invoked in the SQLITE_CHECKPOINT_PASSIVE mode.  \n**   ^On the other hand, passive mode might leave the checkpoint unfinished\n**   if there are concurrent readers or writers.\n**\n** <dt>SQLITE_CHECKPOINT_FULL<dd>\n**   ^This mode blocks (it invokes the\n**   [sqlite3_busy_handler|busy-handler callback]) until there is no\n**   database writer and all readers are reading from the most recent database\n**   snapshot. ^It then checkpoints all frames in the log file and syncs the\n**   database file. ^This mode blocks new database writers while it is pending,\n**   but new database readers are allowed to continue unimpeded.\n**\n** <dt>SQLITE_CHECKPOINT_RESTART<dd>\n**   ^This mode works the same way as SQLITE_CHECKPOINT_FULL with the addition\n**   that after checkpointing the log file it blocks (calls the \n**   [busy-handler callback])\n**   until all readers are reading from the database file only. ^This ensures \n**   that the next writer will restart the log file from the beginning.\n**   ^Like SQLITE_CHECKPOINT_FULL, this mode blocks new\n**   database writer attempts while it is pending, but does not impede readers.\n**\n** <dt>SQLITE_CHECKPOINT_TRUNCATE<dd>\n**   ^This mode works the same way as SQLITE_CHECKPOINT_RESTART with the\n**   addition that it also truncates the log file to zero bytes just prior\n**   to a successful return.\n** </dl>\n**\n** ^If pnLog is not NULL, then *pnLog is set to the total number of frames in\n** the log file or to -1 if the checkpoint could not run because\n** of an error or because the database is not in [WAL mode]. ^If pnCkpt is not\n** NULL,then *pnCkpt is set to the total number of checkpointed frames in the\n** log file (including any that were already checkpointed before the function\n** was called) or to -1 if the checkpoint could not run due to an error or\n** because the database is not in WAL mode. ^Note that upon successful\n** completion of an SQLITE_CHECKPOINT_TRUNCATE, the log file will have been\n** truncated to zero bytes and so both *pnLog and *pnCkpt will be set to zero.\n**\n** ^All calls obtain an exclusive \"checkpoint\" lock on the database file. ^If\n** any other process is running a checkpoint operation at the same time, the \n** lock cannot be obtained and SQLITE_BUSY is returned. ^Even if there is a \n** busy-handler configured, it will not be invoked in this case.\n**\n** ^The SQLITE_CHECKPOINT_FULL, RESTART and TRUNCATE modes also obtain the \n** exclusive \"writer\" lock on the database file. ^If the writer lock cannot be\n** obtained immediately, and a busy-handler is configured, it is invoked and\n** the writer lock retried until either the busy-handler returns 0 or the lock\n** is successfully obtained. ^The busy-handler is also invoked while waiting for\n** database readers as described above. ^If the busy-handler returns 0 before\n** the writer lock is obtained or while waiting for database readers, the\n** checkpoint operation proceeds from that point in the same way as \n** SQLITE_CHECKPOINT_PASSIVE - checkpointing as many frames as possible \n** without blocking any further. ^SQLITE_BUSY is returned in this case.\n**\n** ^If parameter zDb is NULL or points to a zero length string, then the\n** specified operation is attempted on all WAL databases [attached] to \n** [database connection] db.  In this case the\n** values written to output parameters *pnLog and *pnCkpt are undefined. ^If \n** an SQLITE_BUSY error is encountered when processing one or more of the \n** attached WAL databases, the operation is still attempted on any remaining \n** attached databases and SQLITE_BUSY is returned at the end. ^If any other \n** error occurs while processing an attached database, processing is abandoned \n** and the error code is returned to the caller immediately. ^If no error \n** (SQLITE_BUSY or otherwise) is encountered while processing the attached \n** databases, SQLITE_OK is returned.\n**\n** ^If database zDb is the name of an attached database that is not in WAL\n** mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. ^If\n** zDb is not NULL (or a zero length string) and is not the name of any\n** attached database, SQLITE_ERROR is returned to the caller.\n**\n** ^Unless it returns SQLITE_MISUSE,\n** the sqlite3_wal_checkpoint_v2() interface\n** sets the error information that is queried by\n** [sqlite3_errcode()] and [sqlite3_errmsg()].\n**\n** ^The [PRAGMA wal_checkpoint] command can be used to invoke this interface\n** from SQL.\n*/\nSQLITE_API int sqlite3_wal_checkpoint_v2(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of attached database (or NULL) */\n  int eMode,                      /* SQLITE_CHECKPOINT_* value */\n  int *pnLog,                     /* OUT: Size of WAL log in frames */\n  int *pnCkpt                     /* OUT: Total number of frames checkpointed */\n);\n\n/*\n** CAPI3REF: Checkpoint Mode Values\n** KEYWORDS: {checkpoint mode}\n**\n** These constants define all valid values for the \"checkpoint mode\" passed\n** as the third parameter to the [sqlite3_wal_checkpoint_v2()] interface.\n** See the [sqlite3_wal_checkpoint_v2()] documentation for details on the\n** meaning of each of these checkpoint modes.\n*/\n#define SQLITE_CHECKPOINT_PASSIVE  0  /* Do as much as possible w/o blocking */\n#define SQLITE_CHECKPOINT_FULL     1  /* Wait for writers, then checkpoint */\n#define SQLITE_CHECKPOINT_RESTART  2  /* Like FULL but wait for for readers */\n#define SQLITE_CHECKPOINT_TRUNCATE 3  /* Like RESTART but also truncate WAL */\n\n/*\n** CAPI3REF: Virtual Table Interface Configuration\n**\n** This function may be called by either the [xConnect] or [xCreate] method\n** of a [virtual table] implementation to configure\n** various facets of the virtual table interface.\n**\n** If this interface is invoked outside the context of an xConnect or\n** xCreate virtual table method then the behavior is undefined.\n**\n** At present, there is only one option that may be configured using\n** this function. (See [SQLITE_VTAB_CONSTRAINT_SUPPORT].)  Further options\n** may be added in the future.\n*/\nSQLITE_API int sqlite3_vtab_config(sqlite3*, int op, ...);\n\n/*\n** CAPI3REF: Virtual Table Configuration Options\n**\n** These macros define the various options to the\n** [sqlite3_vtab_config()] interface that [virtual table] implementations\n** can use to customize and optimize their behavior.\n**\n** <dl>\n** <dt>SQLITE_VTAB_CONSTRAINT_SUPPORT\n** <dd>Calls of the form\n** [sqlite3_vtab_config](db,SQLITE_VTAB_CONSTRAINT_SUPPORT,X) are supported,\n** where X is an integer.  If X is zero, then the [virtual table] whose\n** [xCreate] or [xConnect] method invoked [sqlite3_vtab_config()] does not\n** support constraints.  In this configuration (which is the default) if\n** a call to the [xUpdate] method returns [SQLITE_CONSTRAINT], then the entire\n** statement is rolled back as if [ON CONFLICT | OR ABORT] had been\n** specified as part of the users SQL statement, regardless of the actual\n** ON CONFLICT mode specified.\n**\n** If X is non-zero, then the virtual table implementation guarantees\n** that if [xUpdate] returns [SQLITE_CONSTRAINT], it will do so before\n** any modifications to internal or persistent data structures have been made.\n** If the [ON CONFLICT] mode is ABORT, FAIL, IGNORE or ROLLBACK, SQLite \n** is able to roll back a statement or database transaction, and abandon\n** or continue processing the current SQL statement as appropriate. \n** If the ON CONFLICT mode is REPLACE and the [xUpdate] method returns\n** [SQLITE_CONSTRAINT], SQLite handles this as if the ON CONFLICT mode\n** had been ABORT.\n**\n** Virtual table implementations that are required to handle OR REPLACE\n** must do so within the [xUpdate] method. If a call to the \n** [sqlite3_vtab_on_conflict()] function indicates that the current ON \n** CONFLICT policy is REPLACE, the virtual table implementation should \n** silently replace the appropriate rows within the xUpdate callback and\n** return SQLITE_OK. Or, if this is not possible, it may return\n** SQLITE_CONSTRAINT, in which case SQLite falls back to OR ABORT \n** constraint handling.\n** </dl>\n*/\n#define SQLITE_VTAB_CONSTRAINT_SUPPORT 1\n\n/*\n** CAPI3REF: Determine The Virtual Table Conflict Policy\n**\n** This function may only be called from within a call to the [xUpdate] method\n** of a [virtual table] implementation for an INSERT or UPDATE operation. ^The\n** value returned is one of [SQLITE_ROLLBACK], [SQLITE_IGNORE], [SQLITE_FAIL],\n** [SQLITE_ABORT], or [SQLITE_REPLACE], according to the [ON CONFLICT] mode\n** of the SQL statement that triggered the call to the [xUpdate] method of the\n** [virtual table].\n*/\nSQLITE_API int sqlite3_vtab_on_conflict(sqlite3 *);\n\n/*\n** CAPI3REF: Determine If Virtual Table Column Access Is For UPDATE\n**\n** If the sqlite3_vtab_nochange(X) routine is called within the [xColumn]\n** method of a [virtual table], then it returns true if and only if the\n** column is being fetched as part of an UPDATE operation during which the\n** column value will not change.  Applications might use this to substitute\n** a lighter-weight value to return that the corresponding [xUpdate] method\n** understands as a \"no-change\" value.\n**\n** If the [xColumn] method calls sqlite3_vtab_nochange() and finds that\n** the column is not changed by the UPDATE statement, they the xColumn\n** method can optionally return without setting a result, without calling\n** any of the [sqlite3_result_int|sqlite3_result_xxxxx() interfaces].\n** In that case, [sqlite3_value_nochange(X)] will return true for the\n** same column in the [xUpdate] method.\n*/\nSQLITE_API int sqlite3_vtab_nochange(sqlite3_context*);\n\n/*\n** CAPI3REF: Determine The Collation For a Virtual Table Constraint\n**\n** This function may only be called from within a call to the [xBestIndex]\n** method of a [virtual table]. \n**\n** The first argument must be the sqlite3_index_info object that is the\n** first parameter to the xBestIndex() method. The second argument must be\n** an index into the aConstraint[] array belonging to the sqlite3_index_info\n** structure passed to xBestIndex. This function returns a pointer to a buffer \n** containing the name of the collation sequence for the corresponding\n** constraint.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL const char *sqlite3_vtab_collation(sqlite3_index_info*,int);\n\n/*\n** CAPI3REF: Conflict resolution modes\n** KEYWORDS: {conflict resolution mode}\n**\n** These constants are returned by [sqlite3_vtab_on_conflict()] to\n** inform a [virtual table] implementation what the [ON CONFLICT] mode\n** is for the SQL statement being evaluated.\n**\n** Note that the [SQLITE_IGNORE] constant is also used as a potential\n** return value from the [sqlite3_set_authorizer()] callback and that\n** [SQLITE_ABORT] is also a [result code].\n*/\n#define SQLITE_ROLLBACK 1\n/* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */\n#define SQLITE_FAIL     3\n/* #define SQLITE_ABORT 4  // Also an error code */\n#define SQLITE_REPLACE  5\n\n/*\n** CAPI3REF: Prepared Statement Scan Status Opcodes\n** KEYWORDS: {scanstatus options}\n**\n** The following constants can be used for the T parameter to the\n** [sqlite3_stmt_scanstatus(S,X,T,V)] interface.  Each constant designates a\n** different metric for sqlite3_stmt_scanstatus() to return.\n**\n** When the value returned to V is a string, space to hold that string is\n** managed by the prepared statement S and will be automatically freed when\n** S is finalized.\n**\n** <dl>\n** [[SQLITE_SCANSTAT_NLOOP]] <dt>SQLITE_SCANSTAT_NLOOP</dt>\n** <dd>^The [sqlite3_int64] variable pointed to by the T parameter will be\n** set to the total number of times that the X-th loop has run.</dd>\n**\n** [[SQLITE_SCANSTAT_NVISIT]] <dt>SQLITE_SCANSTAT_NVISIT</dt>\n** <dd>^The [sqlite3_int64] variable pointed to by the T parameter will be set\n** to the total number of rows examined by all iterations of the X-th loop.</dd>\n**\n** [[SQLITE_SCANSTAT_EST]] <dt>SQLITE_SCANSTAT_EST</dt>\n** <dd>^The \"double\" variable pointed to by the T parameter will be set to the\n** query planner's estimate for the average number of rows output from each\n** iteration of the X-th loop.  If the query planner's estimates was accurate,\n** then this value will approximate the quotient NVISIT/NLOOP and the\n** product of this value for all prior loops with the same SELECTID will\n** be the NLOOP value for the current loop.\n**\n** [[SQLITE_SCANSTAT_NAME]] <dt>SQLITE_SCANSTAT_NAME</dt>\n** <dd>^The \"const char *\" variable pointed to by the T parameter will be set\n** to a zero-terminated UTF-8 string containing the name of the index or table\n** used for the X-th loop.\n**\n** [[SQLITE_SCANSTAT_EXPLAIN]] <dt>SQLITE_SCANSTAT_EXPLAIN</dt>\n** <dd>^The \"const char *\" variable pointed to by the T parameter will be set\n** to a zero-terminated UTF-8 string containing the [EXPLAIN QUERY PLAN]\n** description for the X-th loop.\n**\n** [[SQLITE_SCANSTAT_SELECTID]] <dt>SQLITE_SCANSTAT_SELECT</dt>\n** <dd>^The \"int\" variable pointed to by the T parameter will be set to the\n** \"select-id\" for the X-th loop.  The select-id identifies which query or\n** subquery the loop is part of.  The main query has a select-id of zero.\n** The select-id is the same value as is output in the first column\n** of an [EXPLAIN QUERY PLAN] query.\n** </dl>\n*/\n#define SQLITE_SCANSTAT_NLOOP    0\n#define SQLITE_SCANSTAT_NVISIT   1\n#define SQLITE_SCANSTAT_EST      2\n#define SQLITE_SCANSTAT_NAME     3\n#define SQLITE_SCANSTAT_EXPLAIN  4\n#define SQLITE_SCANSTAT_SELECTID 5\n\n/*\n** CAPI3REF: Prepared Statement Scan Status\n** METHOD: sqlite3_stmt\n**\n** This interface returns information about the predicted and measured\n** performance for pStmt.  Advanced applications can use this\n** interface to compare the predicted and the measured performance and\n** issue warnings and/or rerun [ANALYZE] if discrepancies are found.\n**\n** Since this interface is expected to be rarely used, it is only\n** available if SQLite is compiled using the [SQLITE_ENABLE_STMT_SCANSTATUS]\n** compile-time option.\n**\n** The \"iScanStatusOp\" parameter determines which status information to return.\n** The \"iScanStatusOp\" must be one of the [scanstatus options] or the behavior\n** of this interface is undefined.\n** ^The requested measurement is written into a variable pointed to by\n** the \"pOut\" parameter.\n** Parameter \"idx\" identifies the specific loop to retrieve statistics for.\n** Loops are numbered starting from zero. ^If idx is out of range - less than\n** zero or greater than or equal to the total number of loops used to implement\n** the statement - a non-zero value is returned and the variable that pOut\n** points to is unchanged.\n**\n** ^Statistics might not be available for all loops in all statements. ^In cases\n** where there exist loops with no available statistics, this function behaves\n** as if the loop did not exist - it returns non-zero and leave the variable\n** that pOut points to unchanged.\n**\n** See also: [sqlite3_stmt_scanstatus_reset()]\n*/\nSQLITE_API int sqlite3_stmt_scanstatus(\n  sqlite3_stmt *pStmt,      /* Prepared statement for which info desired */\n  int idx,                  /* Index of loop to report on */\n  int iScanStatusOp,        /* Information desired.  SQLITE_SCANSTAT_* */\n  void *pOut                /* Result written here */\n);     \n\n/*\n** CAPI3REF: Zero Scan-Status Counters\n** METHOD: sqlite3_stmt\n**\n** ^Zero all [sqlite3_stmt_scanstatus()] related event counters.\n**\n** This API is only available if the library is built with pre-processor\n** symbol [SQLITE_ENABLE_STMT_SCANSTATUS] defined.\n*/\nSQLITE_API void sqlite3_stmt_scanstatus_reset(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Flush caches to disk mid-transaction\n**\n** ^If a write-transaction is open on [database connection] D when the\n** [sqlite3_db_cacheflush(D)] interface invoked, any dirty\n** pages in the pager-cache that are not currently in use are written out \n** to disk. A dirty page may be in use if a database cursor created by an\n** active SQL statement is reading from it, or if it is page 1 of a database\n** file (page 1 is always \"in use\").  ^The [sqlite3_db_cacheflush(D)]\n** interface flushes caches for all schemas - \"main\", \"temp\", and\n** any [attached] databases.\n**\n** ^If this function needs to obtain extra database locks before dirty pages \n** can be flushed to disk, it does so. ^If those locks cannot be obtained \n** immediately and there is a busy-handler callback configured, it is invoked\n** in the usual manner. ^If the required lock still cannot be obtained, then\n** the database is skipped and an attempt made to flush any dirty pages\n** belonging to the next (if any) database. ^If any databases are skipped\n** because locks cannot be obtained, but no other error occurs, this\n** function returns SQLITE_BUSY.\n**\n** ^If any other error occurs while flushing dirty pages to disk (for\n** example an IO error or out-of-memory condition), then processing is\n** abandoned and an SQLite [error code] is returned to the caller immediately.\n**\n** ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK.\n**\n** ^This function does not set the database handle error code or message\n** returned by the [sqlite3_errcode()] and [sqlite3_errmsg()] functions.\n*/\nSQLITE_API int sqlite3_db_cacheflush(sqlite3*);\n\n/*\n** CAPI3REF: The pre-update hook.\n**\n** ^These interfaces are only available if SQLite is compiled using the\n** [SQLITE_ENABLE_PREUPDATE_HOOK] compile-time option.\n**\n** ^The [sqlite3_preupdate_hook()] interface registers a callback function\n** that is invoked prior to each [INSERT], [UPDATE], and [DELETE] operation\n** on a database table.\n** ^At most one preupdate hook may be registered at a time on a single\n** [database connection]; each call to [sqlite3_preupdate_hook()] overrides\n** the previous setting.\n** ^The preupdate hook is disabled by invoking [sqlite3_preupdate_hook()]\n** with a NULL pointer as the second parameter.\n** ^The third parameter to [sqlite3_preupdate_hook()] is passed through as\n** the first parameter to callbacks.\n**\n** ^The preupdate hook only fires for changes to real database tables; the\n** preupdate hook is not invoked for changes to [virtual tables] or to\n** system tables like sqlite_master or sqlite_stat1.\n**\n** ^The second parameter to the preupdate callback is a pointer to\n** the [database connection] that registered the preupdate hook.\n** ^The third parameter to the preupdate callback is one of the constants\n** [SQLITE_INSERT], [SQLITE_DELETE], or [SQLITE_UPDATE] to identify the\n** kind of update operation that is about to occur.\n** ^(The fourth parameter to the preupdate callback is the name of the\n** database within the database connection that is being modified.  This\n** will be \"main\" for the main database or \"temp\" for TEMP tables or \n** the name given after the AS keyword in the [ATTACH] statement for attached\n** databases.)^\n** ^The fifth parameter to the preupdate callback is the name of the\n** table that is being modified.\n**\n** For an UPDATE or DELETE operation on a [rowid table], the sixth\n** parameter passed to the preupdate callback is the initial [rowid] of the \n** row being modified or deleted. For an INSERT operation on a rowid table,\n** or any operation on a WITHOUT ROWID table, the value of the sixth \n** parameter is undefined. For an INSERT or UPDATE on a rowid table the\n** seventh parameter is the final rowid value of the row being inserted\n** or updated. The value of the seventh parameter passed to the callback\n** function is not defined for operations on WITHOUT ROWID tables, or for\n** INSERT operations on rowid tables.\n**\n** The [sqlite3_preupdate_old()], [sqlite3_preupdate_new()],\n** [sqlite3_preupdate_count()], and [sqlite3_preupdate_depth()] interfaces\n** provide additional information about a preupdate event. These routines\n** may only be called from within a preupdate callback.  Invoking any of\n** these routines from outside of a preupdate callback or with a\n** [database connection] pointer that is different from the one supplied\n** to the preupdate callback results in undefined and probably undesirable\n** behavior.\n**\n** ^The [sqlite3_preupdate_count(D)] interface returns the number of columns\n** in the row that is being inserted, updated, or deleted.\n**\n** ^The [sqlite3_preupdate_old(D,N,P)] interface writes into P a pointer to\n** a [protected sqlite3_value] that contains the value of the Nth column of\n** the table row before it is updated.  The N parameter must be between 0\n** and one less than the number of columns or the behavior will be\n** undefined. This must only be used within SQLITE_UPDATE and SQLITE_DELETE\n** preupdate callbacks; if it is used by an SQLITE_INSERT callback then the\n** behavior is undefined.  The [sqlite3_value] that P points to\n** will be destroyed when the preupdate callback returns.\n**\n** ^The [sqlite3_preupdate_new(D,N,P)] interface writes into P a pointer to\n** a [protected sqlite3_value] that contains the value of the Nth column of\n** the table row after it is updated.  The N parameter must be between 0\n** and one less than the number of columns or the behavior will be\n** undefined. This must only be used within SQLITE_INSERT and SQLITE_UPDATE\n** preupdate callbacks; if it is used by an SQLITE_DELETE callback then the\n** behavior is undefined.  The [sqlite3_value] that P points to\n** will be destroyed when the preupdate callback returns.\n**\n** ^The [sqlite3_preupdate_depth(D)] interface returns 0 if the preupdate\n** callback was invoked as a result of a direct insert, update, or delete\n** operation; or 1 for inserts, updates, or deletes invoked by top-level \n** triggers; or 2 for changes resulting from triggers called by top-level\n** triggers; and so forth.\n**\n** See also:  [sqlite3_update_hook()]\n*/\n#if defined(SQLITE_ENABLE_PREUPDATE_HOOK)\nSQLITE_API void *sqlite3_preupdate_hook(\n  sqlite3 *db,\n  void(*xPreUpdate)(\n    void *pCtx,                   /* Copy of third arg to preupdate_hook() */\n    sqlite3 *db,                  /* Database handle */\n    int op,                       /* SQLITE_UPDATE, DELETE or INSERT */\n    char const *zDb,              /* Database name */\n    char const *zName,            /* Table name */\n    sqlite3_int64 iKey1,          /* Rowid of row about to be deleted/updated */\n    sqlite3_int64 iKey2           /* New rowid value (for a rowid UPDATE) */\n  ),\n  void*\n);\nSQLITE_API int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);\nSQLITE_API int sqlite3_preupdate_count(sqlite3 *);\nSQLITE_API int sqlite3_preupdate_depth(sqlite3 *);\nSQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);\n#endif\n\n/*\n** CAPI3REF: Low-level system error code\n**\n** ^Attempt to return the underlying operating system error code or error\n** number that caused the most recent I/O error or failure to open a file.\n** The return value is OS-dependent.  For example, on unix systems, after\n** [sqlite3_open_v2()] returns [SQLITE_CANTOPEN], this interface could be\n** called to get back the underlying \"errno\" that caused the problem, such\n** as ENOSPC, EAUTH, EISDIR, and so forth.  \n*/\nSQLITE_API int sqlite3_system_errno(sqlite3*);\n\n/*\n** CAPI3REF: Database Snapshot\n** KEYWORDS: {snapshot} {sqlite3_snapshot}\n** EXPERIMENTAL\n**\n** An instance of the snapshot object records the state of a [WAL mode]\n** database for some specific point in history.\n**\n** In [WAL mode], multiple [database connections] that are open on the\n** same database file can each be reading a different historical version\n** of the database file.  When a [database connection] begins a read\n** transaction, that connection sees an unchanging copy of the database\n** as it existed for the point in time when the transaction first started.\n** Subsequent changes to the database from other connections are not seen\n** by the reader until a new read transaction is started.\n**\n** The sqlite3_snapshot object records state information about an historical\n** version of the database file so that it is possible to later open a new read\n** transaction that sees that historical version of the database rather than\n** the most recent version.\n**\n** The constructor for this object is [sqlite3_snapshot_get()].  The\n** [sqlite3_snapshot_open()] method causes a fresh read transaction to refer\n** to an historical snapshot (if possible).  The destructor for \n** sqlite3_snapshot objects is [sqlite3_snapshot_free()].\n*/\ntypedef struct sqlite3_snapshot {\n  unsigned char hidden[48];\n} sqlite3_snapshot;\n\n/*\n** CAPI3REF: Record A Database Snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_get(D,S,P)] interface attempts to make a\n** new [sqlite3_snapshot] object that records the current state of\n** schema S in database connection D.  ^On success, the\n** [sqlite3_snapshot_get(D,S,P)] interface writes a pointer to the newly\n** created [sqlite3_snapshot] object into *P and returns SQLITE_OK.\n** If there is not already a read-transaction open on schema S when\n** this function is called, one is opened automatically. \n**\n** The following must be true for this function to succeed. If any of\n** the following statements are false when sqlite3_snapshot_get() is\n** called, SQLITE_ERROR is returned. The final value of *P is undefined\n** in this case. \n**\n** <ul>\n**   <li> The database handle must be in [autocommit mode].\n**\n**   <li> Schema S of [database connection] D must be a [WAL mode] database.\n**\n**   <li> There must not be a write transaction open on schema S of database\n**        connection D.\n**\n**   <li> One or more transactions must have been written to the current wal\n**        file since it was created on disk (by any connection). This means\n**        that a snapshot cannot be taken on a wal mode database with no wal \n**        file immediately after it is first opened. At least one transaction\n**        must be written to it first.\n** </ul>\n**\n** This function may also return SQLITE_NOMEM.  If it is called with the\n** database handle in autocommit mode but fails for some other reason, \n** whether or not a read transaction is opened on schema S is undefined.\n**\n** The [sqlite3_snapshot] object returned from a successful call to\n** [sqlite3_snapshot_get()] must be freed using [sqlite3_snapshot_free()]\n** to avoid a memory leak.\n**\n** The [sqlite3_snapshot_get()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_get(\n  sqlite3 *db,\n  const char *zSchema,\n  sqlite3_snapshot **ppSnapshot\n);\n\n/*\n** CAPI3REF: Start a read transaction on an historical snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_open(D,S,P)] interface starts a\n** read transaction for schema S of\n** [database connection] D such that the read transaction\n** refers to historical [snapshot] P, rather than the most\n** recent change to the database.\n** ^The [sqlite3_snapshot_open()] interface returns SQLITE_OK on success\n** or an appropriate [error code] if it fails.\n**\n** ^In order to succeed, a call to [sqlite3_snapshot_open(D,S,P)] must be\n** the first operation following the [BEGIN] that takes the schema S\n** out of [autocommit mode].\n** ^In other words, schema S must not currently be in\n** a transaction for [sqlite3_snapshot_open(D,S,P)] to work, but the\n** database connection D must be out of [autocommit mode].\n** ^A [snapshot] will fail to open if it has been overwritten by a\n** [checkpoint].\n** ^(A call to [sqlite3_snapshot_open(D,S,P)] will fail if the\n** database connection D does not know that the database file for\n** schema S is in [WAL mode].  A database connection might not know\n** that the database file is in [WAL mode] if there has been no prior\n** I/O on that database connection, or if the database entered [WAL mode] \n** after the most recent I/O on the database connection.)^\n** (Hint: Run \"[PRAGMA application_id]\" against a newly opened\n** database connection in order to make it ready to use snapshots.)\n**\n** The [sqlite3_snapshot_open()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_open(\n  sqlite3 *db,\n  const char *zSchema,\n  sqlite3_snapshot *pSnapshot\n);\n\n/*\n** CAPI3REF: Destroy a snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_free(P)] interface destroys [sqlite3_snapshot] P.\n** The application must eventually free every [sqlite3_snapshot] object\n** using this routine to avoid a memory leak.\n**\n** The [sqlite3_snapshot_free()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL void sqlite3_snapshot_free(sqlite3_snapshot*);\n\n/*\n** CAPI3REF: Compare the ages of two snapshot handles.\n** EXPERIMENTAL\n**\n** The sqlite3_snapshot_cmp(P1, P2) interface is used to compare the ages\n** of two valid snapshot handles. \n**\n** If the two snapshot handles are not associated with the same database \n** file, the result of the comparison is undefined. \n**\n** Additionally, the result of the comparison is only valid if both of the\n** snapshot handles were obtained by calling sqlite3_snapshot_get() since the\n** last time the wal file was deleted. The wal file is deleted when the\n** database is changed back to rollback mode or when the number of database\n** clients drops to zero. If either snapshot handle was obtained before the \n** wal file was last deleted, the value returned by this function \n** is undefined.\n**\n** Otherwise, this API returns a negative value if P1 refers to an older\n** snapshot than P2, zero if the two handles refer to the same database\n** snapshot, and a positive value if P1 is a newer snapshot than P2.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_cmp(\n  sqlite3_snapshot *p1,\n  sqlite3_snapshot *p2\n);\n\n/*\n** CAPI3REF: Recover snapshots from a wal file\n** EXPERIMENTAL\n**\n** If all connections disconnect from a database file but do not perform\n** a checkpoint, the existing wal file is opened along with the database\n** file the next time the database is opened. At this point it is only\n** possible to successfully call sqlite3_snapshot_open() to open the most\n** recent snapshot of the database (the one at the head of the wal file),\n** even though the wal file may contain other valid snapshots for which\n** clients have sqlite3_snapshot handles.\n**\n** This function attempts to scan the wal file associated with database zDb\n** of database handle db and make all valid snapshots available to\n** sqlite3_snapshot_open(). It is an error if there is already a read\n** transaction open on the database, or if the database is not a wal mode\n** database.\n**\n** SQLITE_OK is returned if successful, or an SQLite error code otherwise.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb);\n\n/*\n** Undo the hack that converts floating point types to integer for\n** builds on processors without floating point support.\n*/\n#ifdef SQLITE_OMIT_FLOATING_POINT\n# undef double\n#endif\n\n#ifdef __cplusplus\n}  /* End of the 'extern \"C\"' block */\n#endif\n#endif /* SQLITE3_H */\n\n/******** Begin file sqlite3rtree.h *********/\n/*\n** 2010 August 30\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n*/\n\n#ifndef _SQLITE3RTREE_H_\n#define _SQLITE3RTREE_H_\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct sqlite3_rtree_geometry sqlite3_rtree_geometry;\ntypedef struct sqlite3_rtree_query_info sqlite3_rtree_query_info;\n\n/* The double-precision datatype used by RTree depends on the\n** SQLITE_RTREE_INT_ONLY compile-time option.\n*/\n#ifdef SQLITE_RTREE_INT_ONLY\n  typedef sqlite3_int64 sqlite3_rtree_dbl;\n#else\n  typedef double sqlite3_rtree_dbl;\n#endif\n\n/*\n** Register a geometry callback named zGeom that can be used as part of an\n** R-Tree geometry query as follows:\n**\n**   SELECT ... FROM <rtree> WHERE <rtree col> MATCH $zGeom(... params ...)\n*/\nSQLITE_API int sqlite3_rtree_geometry_callback(\n  sqlite3 *db,\n  const char *zGeom,\n  int (*xGeom)(sqlite3_rtree_geometry*, int, sqlite3_rtree_dbl*,int*),\n  void *pContext\n);\n\n\n/*\n** A pointer to a structure of the following type is passed as the first\n** argument to callbacks registered using rtree_geometry_callback().\n*/\nstruct sqlite3_rtree_geometry {\n  void *pContext;                 /* Copy of pContext passed to s_r_g_c() */\n  int nParam;                     /* Size of array aParam[] */\n  sqlite3_rtree_dbl *aParam;      /* Parameters passed to SQL geom function */\n  void *pUser;                    /* Callback implementation user data */\n  void (*xDelUser)(void *);       /* Called by SQLite to clean up pUser */\n};\n\n/*\n** Register a 2nd-generation geometry callback named zScore that can be \n** used as part of an R-Tree geometry query as follows:\n**\n**   SELECT ... FROM <rtree> WHERE <rtree col> MATCH $zQueryFunc(... params ...)\n*/\nSQLITE_API int sqlite3_rtree_query_callback(\n  sqlite3 *db,\n  const char *zQueryFunc,\n  int (*xQueryFunc)(sqlite3_rtree_query_info*),\n  void *pContext,\n  void (*xDestructor)(void*)\n);\n\n\n/*\n** A pointer to a structure of the following type is passed as the \n** argument to scored geometry callback registered using\n** sqlite3_rtree_query_callback().\n**\n** Note that the first 5 fields of this structure are identical to\n** sqlite3_rtree_geometry.  This structure is a subclass of\n** sqlite3_rtree_geometry.\n*/\nstruct sqlite3_rtree_query_info {\n  void *pContext;                   /* pContext from when function registered */\n  int nParam;                       /* Number of function parameters */\n  sqlite3_rtree_dbl *aParam;        /* value of function parameters */\n  void *pUser;                      /* callback can use this, if desired */\n  void (*xDelUser)(void*);          /* function to free pUser */\n  sqlite3_rtree_dbl *aCoord;        /* Coordinates of node or entry to check */\n  unsigned int *anQueue;            /* Number of pending entries in the queue */\n  int nCoord;                       /* Number of coordinates */\n  int iLevel;                       /* Level of current node or entry */\n  int mxLevel;                      /* The largest iLevel value in the tree */\n  sqlite3_int64 iRowid;             /* Rowid for current entry */\n  sqlite3_rtree_dbl rParentScore;   /* Score of parent node */\n  int eParentWithin;                /* Visibility of parent node */\n  int eWithin;                      /* OUT: Visiblity */\n  sqlite3_rtree_dbl rScore;         /* OUT: Write the score here */\n  /* The following fields are only available in 3.8.11 and later */\n  sqlite3_value **apSqlParam;       /* Original SQL values of parameters */\n};\n\n/*\n** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.\n*/\n#define NOT_WITHIN       0   /* Object completely outside of query region */\n#define PARTLY_WITHIN    1   /* Object partially overlaps query region */\n#define FULLY_WITHIN     2   /* Object fully contained within query region */\n\n\n#ifdef __cplusplus\n}  /* end of the 'extern \"C\"' block */\n#endif\n\n#endif  /* ifndef _SQLITE3RTREE_H_ */\n\n/******** End of sqlite3rtree.h *********/\n/******** Begin file sqlite3session.h *********/\n\n#if !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION)\n#define __SQLITESESSION_H_ 1\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n/*\n** CAPI3REF: Session Object Handle\n*/\ntypedef struct sqlite3_session sqlite3_session;\n\n/*\n** CAPI3REF: Changeset Iterator Handle\n*/\ntypedef struct sqlite3_changeset_iter sqlite3_changeset_iter;\n\n/*\n** CAPI3REF: Create A New Session Object\n**\n** Create a new session object attached to database handle db. If successful,\n** a pointer to the new object is written to *ppSession and SQLITE_OK is\n** returned. If an error occurs, *ppSession is set to NULL and an SQLite\n** error code (e.g. SQLITE_NOMEM) is returned.\n**\n** It is possible to create multiple session objects attached to a single\n** database handle.\n**\n** Session objects created using this function should be deleted using the\n** [sqlite3session_delete()] function before the database handle that they\n** are attached to is itself closed. If the database handle is closed before\n** the session object is deleted, then the results of calling any session\n** module function, including [sqlite3session_delete()] on the session object\n** are undefined.\n**\n** Because the session module uses the [sqlite3_preupdate_hook()] API, it\n** is not possible for an application to register a pre-update hook on a\n** database handle that has one or more session objects attached. Nor is\n** it possible to create a session object attached to a database handle for\n** which a pre-update hook is already defined. The results of attempting \n** either of these things are undefined.\n**\n** The session object will be used to create changesets for tables in\n** database zDb, where zDb is either \"main\", or \"temp\", or the name of an\n** attached database. It is not an error if database zDb is not attached\n** to the database when the session object is created.\n*/\nSQLITE_API int sqlite3session_create(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of db (e.g. \"main\") */\n  sqlite3_session **ppSession     /* OUT: New session object */\n);\n\n/*\n** CAPI3REF: Delete A Session Object\n**\n** Delete a session object previously allocated using \n** [sqlite3session_create()]. Once a session object has been deleted, the\n** results of attempting to use pSession with any other session module\n** function are undefined.\n**\n** Session objects must be deleted before the database handle to which they\n** are attached is closed. Refer to the documentation for \n** [sqlite3session_create()] for details.\n*/\nSQLITE_API void sqlite3session_delete(sqlite3_session *pSession);\n\n\n/*\n** CAPI3REF: Enable Or Disable A Session Object\n**\n** Enable or disable the recording of changes by a session object. When\n** enabled, a session object records changes made to the database. When\n** disabled - it does not. A newly created session object is enabled.\n** Refer to the documentation for [sqlite3session_changeset()] for further\n** details regarding how enabling and disabling a session object affects\n** the eventual changesets.\n**\n** Passing zero to this function disables the session. Passing a value\n** greater than zero enables it. Passing a value less than zero is a \n** no-op, and may be used to query the current state of the session.\n**\n** The return value indicates the final state of the session object: 0 if \n** the session is disabled, or 1 if it is enabled.\n*/\nSQLITE_API int sqlite3session_enable(sqlite3_session *pSession, int bEnable);\n\n/*\n** CAPI3REF: Set Or Clear the Indirect Change Flag\n**\n** Each change recorded by a session object is marked as either direct or\n** indirect. A change is marked as indirect if either:\n**\n** <ul>\n**   <li> The session object \"indirect\" flag is set when the change is\n**        made, or\n**   <li> The change is made by an SQL trigger or foreign key action \n**        instead of directly as a result of a users SQL statement.\n** </ul>\n**\n** If a single row is affected by more than one operation within a session,\n** then the change is considered indirect if all operations meet the criteria\n** for an indirect change above, or direct otherwise.\n**\n** This function is used to set, clear or query the session object indirect\n** flag.  If the second argument passed to this function is zero, then the\n** indirect flag is cleared. If it is greater than zero, the indirect flag\n** is set. Passing a value less than zero does not modify the current value\n** of the indirect flag, and may be used to query the current state of the \n** indirect flag for the specified session object.\n**\n** The return value indicates the final state of the indirect flag: 0 if \n** it is clear, or 1 if it is set.\n*/\nSQLITE_API int sqlite3session_indirect(sqlite3_session *pSession, int bIndirect);\n\n/*\n** CAPI3REF: Attach A Table To A Session Object\n**\n** If argument zTab is not NULL, then it is the name of a table to attach\n** to the session object passed as the first argument. All subsequent changes \n** made to the table while the session object is enabled will be recorded. See \n** documentation for [sqlite3session_changeset()] for further details.\n**\n** Or, if argument zTab is NULL, then changes are recorded for all tables\n** in the database. If additional tables are added to the database (by \n** executing \"CREATE TABLE\" statements) after this call is made, changes for \n** the new tables are also recorded.\n**\n** Changes can only be recorded for tables that have a PRIMARY KEY explicitly\n** defined as part of their CREATE TABLE statement. It does not matter if the \n** PRIMARY KEY is an \"INTEGER PRIMARY KEY\" (rowid alias) or not. The PRIMARY\n** KEY may consist of a single column, or may be a composite key.\n** \n** It is not an error if the named table does not exist in the database. Nor\n** is it an error if the named table does not have a PRIMARY KEY. However,\n** no changes will be recorded in either of these scenarios.\n**\n** Changes are not recorded for individual rows that have NULL values stored\n** in one or more of their PRIMARY KEY columns.\n**\n** SQLITE_OK is returned if the call completes without error. Or, if an error \n** occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.\n**\n** <h3>Special sqlite_stat1 Handling</h3>\n**\n** As of SQLite version 3.22.0, the \"sqlite_stat1\" table is an exception to \n** some of the rules above. In SQLite, the schema of sqlite_stat1 is:\n**  <pre>\n**  &nbsp;     CREATE TABLE sqlite_stat1(tbl,idx,stat)  \n**  </pre>\n**\n** Even though sqlite_stat1 does not have a PRIMARY KEY, changes are \n** recorded for it as if the PRIMARY KEY is (tbl,idx). Additionally, changes \n** are recorded for rows for which (idx IS NULL) is true. However, for such\n** rows a zero-length blob (SQL value X'') is stored in the changeset or\n** patchset instead of a NULL value. This allows such changesets to be\n** manipulated by legacy implementations of sqlite3changeset_invert(),\n** concat() and similar.\n**\n** The sqlite3changeset_apply() function automatically converts the \n** zero-length blob back to a NULL value when updating the sqlite_stat1\n** table. However, if the application calls sqlite3changeset_new(),\n** sqlite3changeset_old() or sqlite3changeset_conflict on a changeset \n** iterator directly (including on a changeset iterator passed to a\n** conflict-handler callback) then the X'' value is returned. The application\n** must translate X'' to NULL itself if required.\n**\n** Legacy (older than 3.22.0) versions of the sessions module cannot capture\n** changes made to the sqlite_stat1 table. Legacy versions of the\n** sqlite3changeset_apply() function silently ignore any modifications to the\n** sqlite_stat1 table that are part of a changeset or patchset.\n*/\nSQLITE_API int sqlite3session_attach(\n  sqlite3_session *pSession,      /* Session object */\n  const char *zTab                /* Table name */\n);\n\n/*\n** CAPI3REF: Set a table filter on a Session Object.\n**\n** The second argument (xFilter) is the \"filter callback\". For changes to rows \n** in tables that are not attached to the Session object, the filter is called\n** to determine whether changes to the table's rows should be tracked or not. \n** If xFilter returns 0, changes is not tracked. Note that once a table is \n** attached, xFilter will not be called again.\n*/\nSQLITE_API void sqlite3session_table_filter(\n  sqlite3_session *pSession,      /* Session object */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of third arg to _filter_table() */\n    const char *zTab              /* Table name */\n  ),\n  void *pCtx                      /* First argument passed to xFilter */\n);\n\n/*\n** CAPI3REF: Generate A Changeset From A Session Object\n**\n** Obtain a changeset containing changes to the tables attached to the \n** session object passed as the first argument. If successful, \n** set *ppChangeset to point to a buffer containing the changeset \n** and *pnChangeset to the size of the changeset in bytes before returning\n** SQLITE_OK. If an error occurs, set both *ppChangeset and *pnChangeset to\n** zero and return an SQLite error code.\n**\n** A changeset consists of zero or more INSERT, UPDATE and/or DELETE changes,\n** each representing a change to a single row of an attached table. An INSERT\n** change contains the values of each field of a new database row. A DELETE\n** contains the original values of each field of a deleted database row. An\n** UPDATE change contains the original values of each field of an updated\n** database row along with the updated values for each updated non-primary-key\n** column. It is not possible for an UPDATE change to represent a change that\n** modifies the values of primary key columns. If such a change is made, it\n** is represented in a changeset as a DELETE followed by an INSERT.\n**\n** Changes are not recorded for rows that have NULL values stored in one or \n** more of their PRIMARY KEY columns. If such a row is inserted or deleted,\n** no corresponding change is present in the changesets returned by this\n** function. If an existing row with one or more NULL values stored in\n** PRIMARY KEY columns is updated so that all PRIMARY KEY columns are non-NULL,\n** only an INSERT is appears in the changeset. Similarly, if an existing row\n** with non-NULL PRIMARY KEY values is updated so that one or more of its\n** PRIMARY KEY columns are set to NULL, the resulting changeset contains a\n** DELETE change only.\n**\n** The contents of a changeset may be traversed using an iterator created\n** using the [sqlite3changeset_start()] API. A changeset may be applied to\n** a database with a compatible schema using the [sqlite3changeset_apply()]\n** API.\n**\n** Within a changeset generated by this function, all changes related to a\n** single table are grouped together. In other words, when iterating through\n** a changeset or when applying a changeset to a database, all changes related\n** to a single table are processed before moving on to the next table. Tables\n** are sorted in the same order in which they were attached (or auto-attached)\n** to the sqlite3_session object. The order in which the changes related to\n** a single table are stored is undefined.\n**\n** Following a successful call to this function, it is the responsibility of\n** the caller to eventually free the buffer that *ppChangeset points to using\n** [sqlite3_free()].\n**\n** <h3>Changeset Generation</h3>\n**\n** Once a table has been attached to a session object, the session object\n** records the primary key values of all new rows inserted into the table.\n** It also records the original primary key and other column values of any\n** deleted or updated rows. For each unique primary key value, data is only\n** recorded once - the first time a row with said primary key is inserted,\n** updated or deleted in the lifetime of the session.\n**\n** There is one exception to the previous paragraph: when a row is inserted,\n** updated or deleted, if one or more of its primary key columns contain a\n** NULL value, no record of the change is made.\n**\n** The session object therefore accumulates two types of records - those\n** that consist of primary key values only (created when the user inserts\n** a new record) and those that consist of the primary key values and the\n** original values of other table columns (created when the users deletes\n** or updates a record).\n**\n** When this function is called, the requested changeset is created using\n** both the accumulated records and the current contents of the database\n** file. Specifically:\n**\n** <ul>\n**   <li> For each record generated by an insert, the database is queried\n**        for a row with a matching primary key. If one is found, an INSERT\n**        change is added to the changeset. If no such row is found, no change \n**        is added to the changeset.\n**\n**   <li> For each record generated by an update or delete, the database is \n**        queried for a row with a matching primary key. If such a row is\n**        found and one or more of the non-primary key fields have been\n**        modified from their original values, an UPDATE change is added to \n**        the changeset. Or, if no such row is found in the table, a DELETE \n**        change is added to the changeset. If there is a row with a matching\n**        primary key in the database, but all fields contain their original\n**        values, no change is added to the changeset.\n** </ul>\n**\n** This means, amongst other things, that if a row is inserted and then later\n** deleted while a session object is active, neither the insert nor the delete\n** will be present in the changeset. Or if a row is deleted and then later a \n** row with the same primary key values inserted while a session object is\n** active, the resulting changeset will contain an UPDATE change instead of\n** a DELETE and an INSERT.\n**\n** When a session object is disabled (see the [sqlite3session_enable()] API),\n** it does not accumulate records when rows are inserted, updated or deleted.\n** This may appear to have some counter-intuitive effects if a single row\n** is written to more than once during a session. For example, if a row\n** is inserted while a session object is enabled, then later deleted while \n** the same session object is disabled, no INSERT record will appear in the\n** changeset, even though the delete took place while the session was disabled.\n** Or, if one field of a row is updated while a session is disabled, and \n** another field of the same row is updated while the session is enabled, the\n** resulting changeset will contain an UPDATE change that updates both fields.\n*/\nSQLITE_API int sqlite3session_changeset(\n  sqlite3_session *pSession,      /* Session object */\n  int *pnChangeset,               /* OUT: Size of buffer at *ppChangeset */\n  void **ppChangeset              /* OUT: Buffer containing changeset */\n);\n\n/*\n** CAPI3REF: Load The Difference Between Tables Into A Session \n**\n** If it is not already attached to the session object passed as the first\n** argument, this function attaches table zTbl in the same manner as the\n** [sqlite3session_attach()] function. If zTbl does not exist, or if it\n** does not have a primary key, this function is a no-op (but does not return\n** an error).\n**\n** Argument zFromDb must be the name of a database (\"main\", \"temp\" etc.)\n** attached to the same database handle as the session object that contains \n** a table compatible with the table attached to the session by this function.\n** A table is considered compatible if it:\n**\n** <ul>\n**   <li> Has the same name,\n**   <li> Has the same set of columns declared in the same order, and\n**   <li> Has the same PRIMARY KEY definition.\n** </ul>\n**\n** If the tables are not compatible, SQLITE_SCHEMA is returned. If the tables\n** are compatible but do not have any PRIMARY KEY columns, it is not an error\n** but no changes are added to the session object. As with other session\n** APIs, tables without PRIMARY KEYs are simply ignored.\n**\n** This function adds a set of changes to the session object that could be\n** used to update the table in database zFrom (call this the \"from-table\") \n** so that its content is the same as the table attached to the session \n** object (call this the \"to-table\"). Specifically:\n**\n** <ul>\n**   <li> For each row (primary key) that exists in the to-table but not in \n**     the from-table, an INSERT record is added to the session object.\n**\n**   <li> For each row (primary key) that exists in the to-table but not in \n**     the from-table, a DELETE record is added to the session object.\n**\n**   <li> For each row (primary key) that exists in both tables, but features \n**     different non-PK values in each, an UPDATE record is added to the\n**     session.  \n** </ul>\n**\n** To clarify, if this function is called and then a changeset constructed\n** using [sqlite3session_changeset()], then after applying that changeset to \n** database zFrom the contents of the two compatible tables would be \n** identical.\n**\n** It an error if database zFrom does not exist or does not contain the\n** required compatible table.\n**\n** If the operation successful, SQLITE_OK is returned. Otherwise, an SQLite\n** error code. In this case, if argument pzErrMsg is not NULL, *pzErrMsg\n** may be set to point to a buffer containing an English language error \n** message. It is the responsibility of the caller to free this buffer using\n** sqlite3_free().\n*/\nSQLITE_API int sqlite3session_diff(\n  sqlite3_session *pSession,\n  const char *zFromDb,\n  const char *zTbl,\n  char **pzErrMsg\n);\n\n\n/*\n** CAPI3REF: Generate A Patchset From A Session Object\n**\n** The differences between a patchset and a changeset are that:\n**\n** <ul>\n**   <li> DELETE records consist of the primary key fields only. The \n**        original values of other fields are omitted.\n**   <li> The original values of any modified fields are omitted from \n**        UPDATE records.\n** </ul>\n**\n** A patchset blob may be used with up to date versions of all \n** sqlite3changeset_xxx API functions except for sqlite3changeset_invert(), \n** which returns SQLITE_CORRUPT if it is passed a patchset. Similarly,\n** attempting to use a patchset blob with old versions of the\n** sqlite3changeset_xxx APIs also provokes an SQLITE_CORRUPT error. \n**\n** Because the non-primary key \"old.*\" fields are omitted, no \n** SQLITE_CHANGESET_DATA conflicts can be detected or reported if a patchset\n** is passed to the sqlite3changeset_apply() API. Other conflict types work\n** in the same way as for changesets.\n**\n** Changes within a patchset are ordered in the same way as for changesets\n** generated by the sqlite3session_changeset() function (i.e. all changes for\n** a single table are grouped together, tables appear in the order in which\n** they were attached to the session object).\n*/\nSQLITE_API int sqlite3session_patchset(\n  sqlite3_session *pSession,      /* Session object */\n  int *pnPatchset,                /* OUT: Size of buffer at *ppPatchset */\n  void **ppPatchset               /* OUT: Buffer containing patchset */\n);\n\n/*\n** CAPI3REF: Test if a changeset has recorded any changes.\n**\n** Return non-zero if no changes to attached tables have been recorded by \n** the session object passed as the first argument. Otherwise, if one or \n** more changes have been recorded, return zero.\n**\n** Even if this function returns zero, it is possible that calling\n** [sqlite3session_changeset()] on the session handle may still return a\n** changeset that contains no changes. This can happen when a row in \n** an attached table is modified and then later on the original values \n** are restored. However, if this function returns non-zero, then it is\n** guaranteed that a call to sqlite3session_changeset() will return a \n** changeset containing zero changes.\n*/\nSQLITE_API int sqlite3session_isempty(sqlite3_session *pSession);\n\n/*\n** CAPI3REF: Create An Iterator To Traverse A Changeset \n**\n** Create an iterator used to iterate through the contents of a changeset.\n** If successful, *pp is set to point to the iterator handle and SQLITE_OK\n** is returned. Otherwise, if an error occurs, *pp is set to zero and an\n** SQLite error code is returned.\n**\n** The following functions can be used to advance and query a changeset \n** iterator created by this function:\n**\n** <ul>\n**   <li> [sqlite3changeset_next()]\n**   <li> [sqlite3changeset_op()]\n**   <li> [sqlite3changeset_new()]\n**   <li> [sqlite3changeset_old()]\n** </ul>\n**\n** It is the responsibility of the caller to eventually destroy the iterator\n** by passing it to [sqlite3changeset_finalize()]. The buffer containing the\n** changeset (pChangeset) must remain valid until after the iterator is\n** destroyed.\n**\n** Assuming the changeset blob was created by one of the\n** [sqlite3session_changeset()], [sqlite3changeset_concat()] or\n** [sqlite3changeset_invert()] functions, all changes within the changeset \n** that apply to a single table are grouped together. This means that when \n** an application iterates through a changeset using an iterator created by \n** this function, all changes that relate to a single table are visited \n** consecutively. There is no chance that the iterator will visit a change \n** the applies to table X, then one for table Y, and then later on visit \n** another change for table X.\n*/\nSQLITE_API int sqlite3changeset_start(\n  sqlite3_changeset_iter **pp,    /* OUT: New changeset iterator handle */\n  int nChangeset,                 /* Size of changeset blob in bytes */\n  void *pChangeset                /* Pointer to blob containing changeset */\n);\n\n\n/*\n** CAPI3REF: Advance A Changeset Iterator\n**\n** This function may only be used with iterators created by function\n** [sqlite3changeset_start()]. If it is called on an iterator passed to\n** a conflict-handler callback by [sqlite3changeset_apply()], SQLITE_MISUSE\n** is returned and the call has no effect.\n**\n** Immediately after an iterator is created by sqlite3changeset_start(), it\n** does not point to any change in the changeset. Assuming the changeset\n** is not empty, the first call to this function advances the iterator to\n** point to the first change in the changeset. Each subsequent call advances\n** the iterator to point to the next change in the changeset (if any). If\n** no error occurs and the iterator points to a valid change after a call\n** to sqlite3changeset_next() has advanced it, SQLITE_ROW is returned. \n** Otherwise, if all changes in the changeset have already been visited,\n** SQLITE_DONE is returned.\n**\n** If an error occurs, an SQLite error code is returned. Possible error \n** codes include SQLITE_CORRUPT (if the changeset buffer is corrupt) or \n** SQLITE_NOMEM.\n*/\nSQLITE_API int sqlite3changeset_next(sqlite3_changeset_iter *pIter);\n\n/*\n** CAPI3REF: Obtain The Current Operation From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned [SQLITE_ROW]. If this\n** is not the case, this function returns [SQLITE_MISUSE].\n**\n** If argument pzTab is not NULL, then *pzTab is set to point to a\n** nul-terminated utf-8 encoded string containing the name of the table\n** affected by the current change. The buffer remains valid until either\n** sqlite3changeset_next() is called on the iterator or until the \n** conflict-handler function returns. If pnCol is not NULL, then *pnCol is \n** set to the number of columns in the table affected by the change. If\n** pbIncorrect is not NULL, then *pbIndirect is set to true (1) if the change\n** is an indirect change, or false (0) otherwise. See the documentation for\n** [sqlite3session_indirect()] for a description of direct and indirect\n** changes. Finally, if pOp is not NULL, then *pOp is set to one of \n** [SQLITE_INSERT], [SQLITE_DELETE] or [SQLITE_UPDATE], depending on the \n** type of change that the iterator currently points to.\n**\n** If no error occurs, SQLITE_OK is returned. If an error does occur, an\n** SQLite error code is returned. The values of the output variables may not\n** be trusted in this case.\n*/\nSQLITE_API int sqlite3changeset_op(\n  sqlite3_changeset_iter *pIter,  /* Iterator object */\n  const char **pzTab,             /* OUT: Pointer to table name */\n  int *pnCol,                     /* OUT: Number of columns in table */\n  int *pOp,                       /* OUT: SQLITE_INSERT, DELETE or UPDATE */\n  int *pbIndirect                 /* OUT: True for an 'indirect' change */\n);\n\n/*\n** CAPI3REF: Obtain The Primary Key Definition Of A Table\n**\n** For each modified table, a changeset includes the following:\n**\n** <ul>\n**   <li> The number of columns in the table, and\n**   <li> Which of those columns make up the tables PRIMARY KEY.\n** </ul>\n**\n** This function is used to find which columns comprise the PRIMARY KEY of\n** the table modified by the change that iterator pIter currently points to.\n** If successful, *pabPK is set to point to an array of nCol entries, where\n** nCol is the number of columns in the table. Elements of *pabPK are set to\n** 0x01 if the corresponding column is part of the tables primary key, or\n** 0x00 if it is not.\n**\n** If argument pnCol is not NULL, then *pnCol is set to the number of columns\n** in the table.\n**\n** If this function is called when the iterator does not point to a valid\n** entry, SQLITE_MISUSE is returned and the output variables zeroed. Otherwise,\n** SQLITE_OK is returned and the output variables populated as described\n** above.\n*/\nSQLITE_API int sqlite3changeset_pk(\n  sqlite3_changeset_iter *pIter,  /* Iterator object */\n  unsigned char **pabPK,          /* OUT: Array of boolean - true for PK cols */\n  int *pnCol                      /* OUT: Number of entries in output array */\n);\n\n/*\n** CAPI3REF: Obtain old.* Values From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned SQLITE_ROW. \n** Furthermore, it may only be called if the type of change that the iterator\n** currently points to is either [SQLITE_DELETE] or [SQLITE_UPDATE]. Otherwise,\n** this function returns [SQLITE_MISUSE] and sets *ppValue to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the vector of \n** original row values stored as part of the UPDATE or DELETE change and\n** returns SQLITE_OK. The name of the function comes from the fact that this \n** is similar to the \"old.*\" columns available to update or delete triggers.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_old(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: Old value (or NULL pointer) */\n);\n\n/*\n** CAPI3REF: Obtain new.* Values From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned SQLITE_ROW. \n** Furthermore, it may only be called if the type of change that the iterator\n** currently points to is either [SQLITE_UPDATE] or [SQLITE_INSERT]. Otherwise,\n** this function returns [SQLITE_MISUSE] and sets *ppValue to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the vector of \n** new row values stored as part of the UPDATE or INSERT change and\n** returns SQLITE_OK. If the change is an UPDATE and does not include\n** a new value for the requested column, *ppValue is set to NULL and \n** SQLITE_OK returned. The name of the function comes from the fact that \n** this is similar to the \"new.*\" columns available to update or delete \n** triggers.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_new(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: New value (or NULL pointer) */\n);\n\n/*\n** CAPI3REF: Obtain Conflicting Row Values From A Changeset Iterator\n**\n** This function should only be used with iterator objects passed to a\n** conflict-handler callback by [sqlite3changeset_apply()] with either\n** [SQLITE_CHANGESET_DATA] or [SQLITE_CHANGESET_CONFLICT]. If this function\n** is called on any other iterator, [SQLITE_MISUSE] is returned and *ppValue\n** is set to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the \n** \"conflicting row\" associated with the current conflict-handler callback\n** and returns SQLITE_OK.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_conflict(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: Value from conflicting row */\n);\n\n/*\n** CAPI3REF: Determine The Number Of Foreign Key Constraint Violations\n**\n** This function may only be called with an iterator passed to an\n** SQLITE_CHANGESET_FOREIGN_KEY conflict handler callback. In this case\n** it sets the output variable to the total number of known foreign key\n** violations in the destination database and returns SQLITE_OK.\n**\n** In all other cases this function returns SQLITE_MISUSE.\n*/\nSQLITE_API int sqlite3changeset_fk_conflicts(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int *pnOut                      /* OUT: Number of FK violations */\n);\n\n\n/*\n** CAPI3REF: Finalize A Changeset Iterator\n**\n** This function is used to finalize an iterator allocated with\n** [sqlite3changeset_start()].\n**\n** This function should only be called on iterators created using the\n** [sqlite3changeset_start()] function. If an application calls this\n** function with an iterator passed to a conflict-handler by\n** [sqlite3changeset_apply()], [SQLITE_MISUSE] is immediately returned and the\n** call has no effect.\n**\n** If an error was encountered within a call to an sqlite3changeset_xxx()\n** function (for example an [SQLITE_CORRUPT] in [sqlite3changeset_next()] or an \n** [SQLITE_NOMEM] in [sqlite3changeset_new()]) then an error code corresponding\n** to that error is returned by this function. Otherwise, SQLITE_OK is\n** returned. This is to allow the following pattern (pseudo-code):\n**\n**   sqlite3changeset_start();\n**   while( SQLITE_ROW==sqlite3changeset_next() ){\n**     // Do something with change.\n**   }\n**   rc = sqlite3changeset_finalize();\n**   if( rc!=SQLITE_OK ){\n**     // An error has occurred \n**   }\n*/\nSQLITE_API int sqlite3changeset_finalize(sqlite3_changeset_iter *pIter);\n\n/*\n** CAPI3REF: Invert A Changeset\n**\n** This function is used to \"invert\" a changeset object. Applying an inverted\n** changeset to a database reverses the effects of applying the uninverted\n** changeset. Specifically:\n**\n** <ul>\n**   <li> Each DELETE change is changed to an INSERT, and\n**   <li> Each INSERT change is changed to a DELETE, and\n**   <li> For each UPDATE change, the old.* and new.* values are exchanged.\n** </ul>\n**\n** This function does not change the order in which changes appear within\n** the changeset. It merely reverses the sense of each individual change.\n**\n** If successful, a pointer to a buffer containing the inverted changeset\n** is stored in *ppOut, the size of the same buffer is stored in *pnOut, and\n** SQLITE_OK is returned. If an error occurs, both *pnOut and *ppOut are\n** zeroed and an SQLite error code returned.\n**\n** It is the responsibility of the caller to eventually call sqlite3_free()\n** on the *ppOut pointer to free the buffer allocation following a successful \n** call to this function.\n**\n** WARNING/TODO: This function currently assumes that the input is a valid\n** changeset. If it is not, the results are undefined.\n*/\nSQLITE_API int sqlite3changeset_invert(\n  int nIn, const void *pIn,       /* Input changeset */\n  int *pnOut, void **ppOut        /* OUT: Inverse of input */\n);\n\n/*\n** CAPI3REF: Concatenate Two Changeset Objects\n**\n** This function is used to concatenate two changesets, A and B, into a \n** single changeset. The result is a changeset equivalent to applying\n** changeset A followed by changeset B. \n**\n** This function combines the two input changesets using an \n** sqlite3_changegroup object. Calling it produces similar results as the\n** following code fragment:\n**\n**   sqlite3_changegroup *pGrp;\n**   rc = sqlite3_changegroup_new(&pGrp);\n**   if( rc==SQLITE_OK ) rc = sqlite3changegroup_add(pGrp, nA, pA);\n**   if( rc==SQLITE_OK ) rc = sqlite3changegroup_add(pGrp, nB, pB);\n**   if( rc==SQLITE_OK ){\n**     rc = sqlite3changegroup_output(pGrp, pnOut, ppOut);\n**   }else{\n**     *ppOut = 0;\n**     *pnOut = 0;\n**   }\n**\n** Refer to the sqlite3_changegroup documentation below for details.\n*/\nSQLITE_API int sqlite3changeset_concat(\n  int nA,                         /* Number of bytes in buffer pA */\n  void *pA,                       /* Pointer to buffer containing changeset A */\n  int nB,                         /* Number of bytes in buffer pB */\n  void *pB,                       /* Pointer to buffer containing changeset B */\n  int *pnOut,                     /* OUT: Number of bytes in output changeset */\n  void **ppOut                    /* OUT: Buffer containing output changeset */\n);\n\n\n/*\n** CAPI3REF: Changegroup Handle\n*/\ntypedef struct sqlite3_changegroup sqlite3_changegroup;\n\n/*\n** CAPI3REF: Create A New Changegroup Object\n**\n** An sqlite3_changegroup object is used to combine two or more changesets\n** (or patchsets) into a single changeset (or patchset). A single changegroup\n** object may combine changesets or patchsets, but not both. The output is\n** always in the same format as the input.\n**\n** If successful, this function returns SQLITE_OK and populates (*pp) with\n** a pointer to a new sqlite3_changegroup object before returning. The caller\n** should eventually free the returned object using a call to \n** sqlite3changegroup_delete(). If an error occurs, an SQLite error code\n** (i.e. SQLITE_NOMEM) is returned and *pp is set to NULL.\n**\n** The usual usage pattern for an sqlite3_changegroup object is as follows:\n**\n** <ul>\n**   <li> It is created using a call to sqlite3changegroup_new().\n**\n**   <li> Zero or more changesets (or patchsets) are added to the object\n**        by calling sqlite3changegroup_add().\n**\n**   <li> The result of combining all input changesets together is obtained \n**        by the application via a call to sqlite3changegroup_output().\n**\n**   <li> The object is deleted using a call to sqlite3changegroup_delete().\n** </ul>\n**\n** Any number of calls to add() and output() may be made between the calls to\n** new() and delete(), and in any order.\n**\n** As well as the regular sqlite3changegroup_add() and \n** sqlite3changegroup_output() functions, also available are the streaming\n** versions sqlite3changegroup_add_strm() and sqlite3changegroup_output_strm().\n*/\nSQLITE_API int sqlite3changegroup_new(sqlite3_changegroup **pp);\n\n/*\n** CAPI3REF: Add A Changeset To A Changegroup\n**\n** Add all changes within the changeset (or patchset) in buffer pData (size\n** nData bytes) to the changegroup. \n**\n** If the buffer contains a patchset, then all prior calls to this function\n** on the same changegroup object must also have specified patchsets. Or, if\n** the buffer contains a changeset, so must have the earlier calls to this\n** function. Otherwise, SQLITE_ERROR is returned and no changes are added\n** to the changegroup.\n**\n** Rows within the changeset and changegroup are identified by the values in\n** their PRIMARY KEY columns. A change in the changeset is considered to\n** apply to the same row as a change already present in the changegroup if\n** the two rows have the same primary key.\n**\n** Changes to rows that do not already appear in the changegroup are\n** simply copied into it. Or, if both the new changeset and the changegroup\n** contain changes that apply to a single row, the final contents of the\n** changegroup depends on the type of each change, as follows:\n**\n** <table border=1 style=\"margin-left:8ex;margin-right:8ex\">\n**   <tr><th style=\"white-space:pre\">Existing Change  </th>\n**       <th style=\"white-space:pre\">New Change       </th>\n**       <th>Output Change\n**   <tr><td>INSERT <td>INSERT <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>INSERT <td>UPDATE <td>\n**       The INSERT change remains in the changegroup. The values in the \n**       INSERT change are modified as if the row was inserted by the\n**       existing change and then updated according to the new change.\n**   <tr><td>INSERT <td>DELETE <td>\n**       The existing INSERT is removed from the changegroup. The DELETE is\n**       not added.\n**   <tr><td>UPDATE <td>INSERT <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>UPDATE <td>UPDATE <td>\n**       The existing UPDATE remains within the changegroup. It is amended \n**       so that the accompanying values are as if the row was updated once \n**       by the existing change and then again by the new change.\n**   <tr><td>UPDATE <td>DELETE <td>\n**       The existing UPDATE is replaced by the new DELETE within the\n**       changegroup.\n**   <tr><td>DELETE <td>INSERT <td>\n**       If one or more of the column values in the row inserted by the\n**       new change differ from those in the row deleted by the existing \n**       change, the existing DELETE is replaced by an UPDATE within the\n**       changegroup. Otherwise, if the inserted row is exactly the same \n**       as the deleted row, the existing DELETE is simply discarded.\n**   <tr><td>DELETE <td>UPDATE <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>DELETE <td>DELETE <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n** </table>\n**\n** If the new changeset contains changes to a table that is already present\n** in the changegroup, then the number of columns and the position of the\n** primary key columns for the table must be consistent. If this is not the\n** case, this function fails with SQLITE_SCHEMA. If the input changeset\n** appears to be corrupt and the corruption is detected, SQLITE_CORRUPT is\n** returned. Or, if an out-of-memory condition occurs during processing, this\n** function returns SQLITE_NOMEM. In all cases, if an error occurs the\n** final contents of the changegroup is undefined.\n**\n** If no error occurs, SQLITE_OK is returned.\n*/\nSQLITE_API int sqlite3changegroup_add(sqlite3_changegroup*, int nData, void *pData);\n\n/*\n** CAPI3REF: Obtain A Composite Changeset From A Changegroup\n**\n** Obtain a buffer containing a changeset (or patchset) representing the\n** current contents of the changegroup. If the inputs to the changegroup\n** were themselves changesets, the output is a changeset. Or, if the\n** inputs were patchsets, the output is also a patchset.\n**\n** As with the output of the sqlite3session_changeset() and\n** sqlite3session_patchset() functions, all changes related to a single\n** table are grouped together in the output of this function. Tables appear\n** in the same order as for the very first changeset added to the changegroup.\n** If the second or subsequent changesets added to the changegroup contain\n** changes for tables that do not appear in the first changeset, they are\n** appended onto the end of the output changeset, again in the order in\n** which they are first encountered.\n**\n** If an error occurs, an SQLite error code is returned and the output\n** variables (*pnData) and (*ppData) are set to 0. Otherwise, SQLITE_OK\n** is returned and the output variables are set to the size of and a \n** pointer to the output buffer, respectively. In this case it is the\n** responsibility of the caller to eventually free the buffer using a\n** call to sqlite3_free().\n*/\nSQLITE_API int sqlite3changegroup_output(\n  sqlite3_changegroup*,\n  int *pnData,                    /* OUT: Size of output buffer in bytes */\n  void **ppData                   /* OUT: Pointer to output buffer */\n);\n\n/*\n** CAPI3REF: Delete A Changegroup Object\n*/\nSQLITE_API void sqlite3changegroup_delete(sqlite3_changegroup*);\n\n/*\n** CAPI3REF: Apply A Changeset To A Database\n**\n** Apply a changeset to a database. This function attempts to update the\n** \"main\" database attached to handle db with the changes found in the\n** changeset passed via the second and third arguments.\n**\n** The fourth argument (xFilter) passed to this function is the \"filter\n** callback\". If it is not NULL, then for each table affected by at least one\n** change in the changeset, the filter callback is invoked with\n** the table name as the second argument, and a copy of the context pointer\n** passed as the sixth argument to this function as the first. If the \"filter\n** callback\" returns zero, then no attempt is made to apply any changes to \n** the table. Otherwise, if the return value is non-zero or the xFilter\n** argument to this function is NULL, all changes related to the table are\n** attempted.\n**\n** For each table that is not excluded by the filter callback, this function \n** tests that the target database contains a compatible table. A table is \n** considered compatible if all of the following are true:\n**\n** <ul>\n**   <li> The table has the same name as the name recorded in the \n**        changeset, and\n**   <li> The table has at least as many columns as recorded in the \n**        changeset, and\n**   <li> The table has primary key columns in the same position as \n**        recorded in the changeset.\n** </ul>\n**\n** If there is no compatible table, it is not an error, but none of the\n** changes associated with the table are applied. A warning message is issued\n** via the sqlite3_log() mechanism with the error code SQLITE_SCHEMA. At most\n** one such warning is issued for each table in the changeset.\n**\n** For each change for which there is a compatible table, an attempt is made \n** to modify the table contents according to the UPDATE, INSERT or DELETE \n** change. If a change cannot be applied cleanly, the conflict handler \n** function passed as the fifth argument to sqlite3changeset_apply() may be \n** invoked. A description of exactly when the conflict handler is invoked for \n** each type of change is below.\n**\n** Unlike the xFilter argument, xConflict may not be passed NULL. The results\n** of passing anything other than a valid function pointer as the xConflict\n** argument are undefined.\n**\n** Each time the conflict handler function is invoked, it must return one\n** of [SQLITE_CHANGESET_OMIT], [SQLITE_CHANGESET_ABORT] or \n** [SQLITE_CHANGESET_REPLACE]. SQLITE_CHANGESET_REPLACE may only be returned\n** if the second argument passed to the conflict handler is either\n** SQLITE_CHANGESET_DATA or SQLITE_CHANGESET_CONFLICT. If the conflict-handler\n** returns an illegal value, any changes already made are rolled back and\n** the call to sqlite3changeset_apply() returns SQLITE_MISUSE. Different \n** actions are taken by sqlite3changeset_apply() depending on the value\n** returned by each invocation of the conflict-handler function. Refer to\n** the documentation for the three \n** [SQLITE_CHANGESET_OMIT|available return values] for details.\n**\n** <dl>\n** <dt>DELETE Changes<dd>\n**   For each DELETE change, this function checks if the target database \n**   contains a row with the same primary key value (or values) as the \n**   original row values stored in the changeset. If it does, and the values \n**   stored in all non-primary key columns also match the values stored in \n**   the changeset the row is deleted from the target database.\n**\n**   If a row with matching primary key values is found, but one or more of\n**   the non-primary key fields contains a value different from the original\n**   row value stored in the changeset, the conflict-handler function is\n**   invoked with [SQLITE_CHANGESET_DATA] as the second argument. If the\n**   database table has more columns than are recorded in the changeset,\n**   only the values of those non-primary key fields are compared against\n**   the current database contents - any trailing database table columns\n**   are ignored.\n**\n**   If no row with matching primary key values is found in the database,\n**   the conflict-handler function is invoked with [SQLITE_CHANGESET_NOTFOUND]\n**   passed as the second argument.\n**\n**   If the DELETE operation is attempted, but SQLite returns SQLITE_CONSTRAINT\n**   (which can only happen if a foreign key constraint is violated), the\n**   conflict-handler function is invoked with [SQLITE_CHANGESET_CONSTRAINT]\n**   passed as the second argument. This includes the case where the DELETE\n**   operation is attempted because an earlier call to the conflict handler\n**   function returned [SQLITE_CHANGESET_REPLACE].\n**\n** <dt>INSERT Changes<dd>\n**   For each INSERT change, an attempt is made to insert the new row into\n**   the database. If the changeset row contains fewer fields than the\n**   database table, the trailing fields are populated with their default\n**   values.\n**\n**   If the attempt to insert the row fails because the database already \n**   contains a row with the same primary key values, the conflict handler\n**   function is invoked with the second argument set to \n**   [SQLITE_CHANGESET_CONFLICT].\n**\n**   If the attempt to insert the row fails because of some other constraint\n**   violation (e.g. NOT NULL or UNIQUE), the conflict handler function is \n**   invoked with the second argument set to [SQLITE_CHANGESET_CONSTRAINT].\n**   This includes the case where the INSERT operation is re-attempted because \n**   an earlier call to the conflict handler function returned \n**   [SQLITE_CHANGESET_REPLACE].\n**\n** <dt>UPDATE Changes<dd>\n**   For each UPDATE change, this function checks if the target database \n**   contains a row with the same primary key value (or values) as the \n**   original row values stored in the changeset. If it does, and the values \n**   stored in all modified non-primary key columns also match the values\n**   stored in the changeset the row is updated within the target database.\n**\n**   If a row with matching primary key values is found, but one or more of\n**   the modified non-primary key fields contains a value different from an\n**   original row value stored in the changeset, the conflict-handler function\n**   is invoked with [SQLITE_CHANGESET_DATA] as the second argument. Since\n**   UPDATE changes only contain values for non-primary key fields that are\n**   to be modified, only those fields need to match the original values to\n**   avoid the SQLITE_CHANGESET_DATA conflict-handler callback.\n**\n**   If no row with matching primary key values is found in the database,\n**   the conflict-handler function is invoked with [SQLITE_CHANGESET_NOTFOUND]\n**   passed as the second argument.\n**\n**   If the UPDATE operation is attempted, but SQLite returns \n**   SQLITE_CONSTRAINT, the conflict-handler function is invoked with \n**   [SQLITE_CHANGESET_CONSTRAINT] passed as the second argument.\n**   This includes the case where the UPDATE operation is attempted after \n**   an earlier call to the conflict handler function returned\n**   [SQLITE_CHANGESET_REPLACE].  \n** </dl>\n**\n** It is safe to execute SQL statements, including those that write to the\n** table that the callback related to, from within the xConflict callback.\n** This can be used to further customize the applications conflict\n** resolution strategy.\n**\n** All changes made by this function are enclosed in a savepoint transaction.\n** If any other error (aside from a constraint failure when attempting to\n** write to the target database) occurs, then the savepoint transaction is\n** rolled back, restoring the target database to its original state, and an \n** SQLite error code returned.\n*/\nSQLITE_API int sqlite3changeset_apply(\n  sqlite3 *db,                    /* Apply change to \"main\" db of this handle */\n  int nChangeset,                 /* Size of changeset in bytes */\n  void *pChangeset,               /* Changeset blob */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    const char *zTab              /* Table name */\n  ),\n  int(*xConflict)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    int eConflict,                /* DATA, MISSING, CONFLICT, CONSTRAINT */\n    sqlite3_changeset_iter *p     /* Handle describing change and conflict */\n  ),\n  void *pCtx                      /* First argument passed to xConflict */\n);\n\n/* \n** CAPI3REF: Constants Passed To The Conflict Handler\n**\n** Values that may be passed as the second argument to a conflict-handler.\n**\n** <dl>\n** <dt>SQLITE_CHANGESET_DATA<dd>\n**   The conflict handler is invoked with CHANGESET_DATA as the second argument\n**   when processing a DELETE or UPDATE change if a row with the required\n**   PRIMARY KEY fields is present in the database, but one or more other \n**   (non primary-key) fields modified by the update do not contain the \n**   expected \"before\" values.\n** \n**   The conflicting row, in this case, is the database row with the matching\n**   primary key.\n** \n** <dt>SQLITE_CHANGESET_NOTFOUND<dd>\n**   The conflict handler is invoked with CHANGESET_NOTFOUND as the second\n**   argument when processing a DELETE or UPDATE change if a row with the\n**   required PRIMARY KEY fields is not present in the database.\n** \n**   There is no conflicting row in this case. The results of invoking the\n**   sqlite3changeset_conflict() API are undefined.\n** \n** <dt>SQLITE_CHANGESET_CONFLICT<dd>\n**   CHANGESET_CONFLICT is passed as the second argument to the conflict\n**   handler while processing an INSERT change if the operation would result \n**   in duplicate primary key values.\n** \n**   The conflicting row in this case is the database row with the matching\n**   primary key.\n**\n** <dt>SQLITE_CHANGESET_FOREIGN_KEY<dd>\n**   If foreign key handling is enabled, and applying a changeset leaves the\n**   database in a state containing foreign key violations, the conflict \n**   handler is invoked with CHANGESET_FOREIGN_KEY as the second argument\n**   exactly once before the changeset is committed. If the conflict handler\n**   returns CHANGESET_OMIT, the changes, including those that caused the\n**   foreign key constraint violation, are committed. Or, if it returns\n**   CHANGESET_ABORT, the changeset is rolled back.\n**\n**   No current or conflicting row information is provided. The only function\n**   it is possible to call on the supplied sqlite3_changeset_iter handle\n**   is sqlite3changeset_fk_conflicts().\n** \n** <dt>SQLITE_CHANGESET_CONSTRAINT<dd>\n**   If any other constraint violation occurs while applying a change (i.e. \n**   a UNIQUE, CHECK or NOT NULL constraint), the conflict handler is \n**   invoked with CHANGESET_CONSTRAINT as the second argument.\n** \n**   There is no conflicting row in this case. The results of invoking the\n**   sqlite3changeset_conflict() API are undefined.\n**\n** </dl>\n*/\n#define SQLITE_CHANGESET_DATA        1\n#define SQLITE_CHANGESET_NOTFOUND    2\n#define SQLITE_CHANGESET_CONFLICT    3\n#define SQLITE_CHANGESET_CONSTRAINT  4\n#define SQLITE_CHANGESET_FOREIGN_KEY 5\n\n/* \n** CAPI3REF: Constants Returned By The Conflict Handler\n**\n** A conflict handler callback must return one of the following three values.\n**\n** <dl>\n** <dt>SQLITE_CHANGESET_OMIT<dd>\n**   If a conflict handler returns this value no special action is taken. The\n**   change that caused the conflict is not applied. The session module \n**   continues to the next change in the changeset.\n**\n** <dt>SQLITE_CHANGESET_REPLACE<dd>\n**   This value may only be returned if the second argument to the conflict\n**   handler was SQLITE_CHANGESET_DATA or SQLITE_CHANGESET_CONFLICT. If this\n**   is not the case, any changes applied so far are rolled back and the \n**   call to sqlite3changeset_apply() returns SQLITE_MISUSE.\n**\n**   If CHANGESET_REPLACE is returned by an SQLITE_CHANGESET_DATA conflict\n**   handler, then the conflicting row is either updated or deleted, depending\n**   on the type of change.\n**\n**   If CHANGESET_REPLACE is returned by an SQLITE_CHANGESET_CONFLICT conflict\n**   handler, then the conflicting row is removed from the database and a\n**   second attempt to apply the change is made. If this second attempt fails,\n**   the original row is restored to the database before continuing.\n**\n** <dt>SQLITE_CHANGESET_ABORT<dd>\n**   If this value is returned, any changes applied so far are rolled back \n**   and the call to sqlite3changeset_apply() returns SQLITE_ABORT.\n** </dl>\n*/\n#define SQLITE_CHANGESET_OMIT       0\n#define SQLITE_CHANGESET_REPLACE    1\n#define SQLITE_CHANGESET_ABORT      2\n\n/*\n** CAPI3REF: Streaming Versions of API functions.\n**\n** The six streaming API xxx_strm() functions serve similar purposes to the \n** corresponding non-streaming API functions:\n**\n** <table border=1 style=\"margin-left:8ex;margin-right:8ex\">\n**   <tr><th>Streaming function<th>Non-streaming equivalent</th>\n**   <tr><td>sqlite3changeset_apply_strm<td>[sqlite3changeset_apply] \n**   <tr><td>sqlite3changeset_concat_strm<td>[sqlite3changeset_concat] \n**   <tr><td>sqlite3changeset_invert_strm<td>[sqlite3changeset_invert] \n**   <tr><td>sqlite3changeset_start_strm<td>[sqlite3changeset_start] \n**   <tr><td>sqlite3session_changeset_strm<td>[sqlite3session_changeset] \n**   <tr><td>sqlite3session_patchset_strm<td>[sqlite3session_patchset] \n** </table>\n**\n** Non-streaming functions that accept changesets (or patchsets) as input\n** require that the entire changeset be stored in a single buffer in memory. \n** Similarly, those that return a changeset or patchset do so by returning \n** a pointer to a single large buffer allocated using sqlite3_malloc(). \n** Normally this is convenient. However, if an application running in a \n** low-memory environment is required to handle very large changesets, the\n** large contiguous memory allocations required can become onerous.\n**\n** In order to avoid this problem, instead of a single large buffer, input\n** is passed to a streaming API functions by way of a callback function that\n** the sessions module invokes to incrementally request input data as it is\n** required. In all cases, a pair of API function parameters such as\n**\n**  <pre>\n**  &nbsp;     int nChangeset,\n**  &nbsp;     void *pChangeset,\n**  </pre>\n**\n** Is replaced by:\n**\n**  <pre>\n**  &nbsp;     int (*xInput)(void *pIn, void *pData, int *pnData),\n**  &nbsp;     void *pIn,\n**  </pre>\n**\n** Each time the xInput callback is invoked by the sessions module, the first\n** argument passed is a copy of the supplied pIn context pointer. The second \n** argument, pData, points to a buffer (*pnData) bytes in size. Assuming no \n** error occurs the xInput method should copy up to (*pnData) bytes of data \n** into the buffer and set (*pnData) to the actual number of bytes copied \n** before returning SQLITE_OK. If the input is completely exhausted, (*pnData) \n** should be set to zero to indicate this. Or, if an error occurs, an SQLite \n** error code should be returned. In all cases, if an xInput callback returns\n** an error, all processing is abandoned and the streaming API function\n** returns a copy of the error code to the caller.\n**\n** In the case of sqlite3changeset_start_strm(), the xInput callback may be\n** invoked by the sessions module at any point during the lifetime of the\n** iterator. If such an xInput callback returns an error, the iterator enters\n** an error state, whereby all subsequent calls to iterator functions \n** immediately fail with the same error code as returned by xInput.\n**\n** Similarly, streaming API functions that return changesets (or patchsets)\n** return them in chunks by way of a callback function instead of via a\n** pointer to a single large buffer. In this case, a pair of parameters such\n** as:\n**\n**  <pre>\n**  &nbsp;     int *pnChangeset,\n**  &nbsp;     void **ppChangeset,\n**  </pre>\n**\n** Is replaced by:\n**\n**  <pre>\n**  &nbsp;     int (*xOutput)(void *pOut, const void *pData, int nData),\n**  &nbsp;     void *pOut\n**  </pre>\n**\n** The xOutput callback is invoked zero or more times to return data to\n** the application. The first parameter passed to each call is a copy of the\n** pOut pointer supplied by the application. The second parameter, pData,\n** points to a buffer nData bytes in size containing the chunk of output\n** data being returned. If the xOutput callback successfully processes the\n** supplied data, it should return SQLITE_OK to indicate success. Otherwise,\n** it should return some other SQLite error code. In this case processing\n** is immediately abandoned and the streaming API function returns a copy\n** of the xOutput error code to the application.\n**\n** The sessions module never invokes an xOutput callback with the third \n** parameter set to a value less than or equal to zero. Other than this,\n** no guarantees are made as to the size of the chunks of data returned.\n*/\nSQLITE_API int sqlite3changeset_apply_strm(\n  sqlite3 *db,                    /* Apply change to \"main\" db of this handle */\n  int (*xInput)(void *pIn, void *pData, int *pnData), /* Input function */\n  void *pIn,                                          /* First arg for xInput */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    const char *zTab              /* Table name */\n  ),\n  int(*xConflict)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    int eConflict,                /* DATA, MISSING, CONFLICT, CONSTRAINT */\n    sqlite3_changeset_iter *p     /* Handle describing change and conflict */\n  ),\n  void *pCtx                      /* First argument passed to xConflict */\n);\nSQLITE_API int sqlite3changeset_concat_strm(\n  int (*xInputA)(void *pIn, void *pData, int *pnData),\n  void *pInA,\n  int (*xInputB)(void *pIn, void *pData, int *pnData),\n  void *pInB,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changeset_invert_strm(\n  int (*xInput)(void *pIn, void *pData, int *pnData),\n  void *pIn,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changeset_start_strm(\n  sqlite3_changeset_iter **pp,\n  int (*xInput)(void *pIn, void *pData, int *pnData),\n  void *pIn\n);\nSQLITE_API int sqlite3session_changeset_strm(\n  sqlite3_session *pSession,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3session_patchset_strm(\n  sqlite3_session *pSession,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changegroup_add_strm(sqlite3_changegroup*, \n    int (*xInput)(void *pIn, void *pData, int *pnData),\n    void *pIn\n);\nSQLITE_API int sqlite3changegroup_output_strm(sqlite3_changegroup*,\n    int (*xOutput)(void *pOut, const void *pData, int nData), \n    void *pOut\n);\n\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\n}\n#endif\n\n#endif  /* !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION) */\n\n/******** End of sqlite3session.h *********/\n/******** Begin file fts5.h *********/\n/*\n** 2014 May 31\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n******************************************************************************\n**\n** Interfaces to extend FTS5. Using the interfaces defined in this file, \n** FTS5 may be extended with:\n**\n**     * custom tokenizers, and\n**     * custom auxiliary functions.\n*/\n\n\n#ifndef _FTS5_H\n#define _FTS5_H\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/*************************************************************************\n** CUSTOM AUXILIARY FUNCTIONS\n**\n** Virtual table implementations may overload SQL functions by implementing\n** the sqlite3_module.xFindFunction() method.\n*/\n\ntypedef struct Fts5ExtensionApi Fts5ExtensionApi;\ntypedef struct Fts5Context Fts5Context;\ntypedef struct Fts5PhraseIter Fts5PhraseIter;\n\ntypedef void (*fts5_extension_function)(\n  const Fts5ExtensionApi *pApi,   /* API offered by current FTS version */\n  Fts5Context *pFts,              /* First arg to pass to pApi functions */\n  sqlite3_context *pCtx,          /* Context for returning result/error */\n  int nVal,                       /* Number of values in apVal[] array */\n  sqlite3_value **apVal           /* Array of trailing arguments */\n);\n\nstruct Fts5PhraseIter {\n  const unsigned char *a;\n  const unsigned char *b;\n};\n\n/*\n** EXTENSION API FUNCTIONS\n**\n** xUserData(pFts):\n**   Return a copy of the context pointer the extension function was \n**   registered with.\n**\n** xColumnTotalSize(pFts, iCol, pnToken):\n**   If parameter iCol is less than zero, set output variable *pnToken\n**   to the total number of tokens in the FTS5 table. Or, if iCol is\n**   non-negative but less than the number of columns in the table, return\n**   the total number of tokens in column iCol, considering all rows in \n**   the FTS5 table.\n**\n**   If parameter iCol is greater than or equal to the number of columns\n**   in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.\n**   an OOM condition or IO error), an appropriate SQLite error code is \n**   returned.\n**\n** xColumnCount(pFts):\n**   Return the number of columns in the table.\n**\n** xColumnSize(pFts, iCol, pnToken):\n**   If parameter iCol is less than zero, set output variable *pnToken\n**   to the total number of tokens in the current row. Or, if iCol is\n**   non-negative but less than the number of columns in the table, set\n**   *pnToken to the number of tokens in column iCol of the current row.\n**\n**   If parameter iCol is greater than or equal to the number of columns\n**   in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.\n**   an OOM condition or IO error), an appropriate SQLite error code is \n**   returned.\n**\n**   This function may be quite inefficient if used with an FTS5 table\n**   created with the \"columnsize=0\" option.\n**\n** xColumnText:\n**   This function attempts to retrieve the text of column iCol of the\n**   current document. If successful, (*pz) is set to point to a buffer\n**   containing the text in utf-8 encoding, (*pn) is set to the size in bytes\n**   (not characters) of the buffer and SQLITE_OK is returned. Otherwise,\n**   if an error occurs, an SQLite error code is returned and the final values\n**   of (*pz) and (*pn) are undefined.\n**\n** xPhraseCount:\n**   Returns the number of phrases in the current query expression.\n**\n** xPhraseSize:\n**   Returns the number of tokens in phrase iPhrase of the query. Phrases\n**   are numbered starting from zero.\n**\n** xInstCount:\n**   Set *pnInst to the total number of occurrences of all phrases within\n**   the query within the current row. Return SQLITE_OK if successful, or\n**   an error code (i.e. SQLITE_NOMEM) if an error occurs.\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. If the FTS5 table is created \n**   with either \"detail=none\" or \"detail=column\" and \"content=\" option \n**   (i.e. if it is a contentless table), then this API always returns 0.\n**\n** xInst:\n**   Query for the details of phrase match iIdx within the current row.\n**   Phrase matches are numbered starting from zero, so the iIdx argument\n**   should be greater than or equal to zero and smaller than the value\n**   output by xInstCount().\n**\n**   Usually, output parameter *piPhrase is set to the phrase number, *piCol\n**   to the column in which it occurs and *piOff the token offset of the\n**   first token of the phrase. The exception is if the table was created\n**   with the offsets=0 option specified. In this case *piOff is always\n**   set to -1.\n**\n**   Returns SQLITE_OK if successful, or an error code (i.e. SQLITE_NOMEM) \n**   if an error occurs.\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. \n**\n** xRowid:\n**   Returns the rowid of the current row.\n**\n** xTokenize:\n**   Tokenize text using the tokenizer belonging to the FTS5 table.\n**\n** xQueryPhrase(pFts5, iPhrase, pUserData, xCallback):\n**   This API function is used to query the FTS table for phrase iPhrase\n**   of the current query. Specifically, a query equivalent to:\n**\n**       ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid\n**\n**   with $p set to a phrase equivalent to the phrase iPhrase of the\n**   current query is executed. Any column filter that applies to\n**   phrase iPhrase of the current query is included in $p. For each \n**   row visited, the callback function passed as the fourth argument \n**   is invoked. The context and API objects passed to the callback \n**   function may be used to access the properties of each matched row.\n**   Invoking Api.xUserData() returns a copy of the pointer passed as \n**   the third argument to pUserData.\n**\n**   If the callback function returns any value other than SQLITE_OK, the\n**   query is abandoned and the xQueryPhrase function returns immediately.\n**   If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK.\n**   Otherwise, the error code is propagated upwards.\n**\n**   If the query runs to completion without incident, SQLITE_OK is returned.\n**   Or, if some error occurs before the query completes or is aborted by\n**   the callback, an SQLite error code is returned.\n**\n**\n** xSetAuxdata(pFts5, pAux, xDelete)\n**\n**   Save the pointer passed as the second argument as the extension functions \n**   \"auxiliary data\". The pointer may then be retrieved by the current or any\n**   future invocation of the same fts5 extension function made as part of\n**   of the same MATCH query using the xGetAuxdata() API.\n**\n**   Each extension function is allocated a single auxiliary data slot for\n**   each FTS query (MATCH expression). If the extension function is invoked \n**   more than once for a single FTS query, then all invocations share a \n**   single auxiliary data context.\n**\n**   If there is already an auxiliary data pointer when this function is\n**   invoked, then it is replaced by the new pointer. If an xDelete callback\n**   was specified along with the original pointer, it is invoked at this\n**   point.\n**\n**   The xDelete callback, if one is specified, is also invoked on the\n**   auxiliary data pointer after the FTS5 query has finished.\n**\n**   If an error (e.g. an OOM condition) occurs within this function, an\n**   the auxiliary data is set to NULL and an error code returned. If the\n**   xDelete parameter was not NULL, it is invoked on the auxiliary data\n**   pointer before returning.\n**\n**\n** xGetAuxdata(pFts5, bClear)\n**\n**   Returns the current auxiliary data pointer for the fts5 extension \n**   function. See the xSetAuxdata() method for details.\n**\n**   If the bClear argument is non-zero, then the auxiliary data is cleared\n**   (set to NULL) before this function returns. In this case the xDelete,\n**   if any, is not invoked.\n**\n**\n** xRowCount(pFts5, pnRow)\n**\n**   This function is used to retrieve the total number of rows in the table.\n**   In other words, the same value that would be returned by:\n**\n**        SELECT count(*) FROM ftstable;\n**\n** xPhraseFirst()\n**   This function is used, along with type Fts5PhraseIter and the xPhraseNext\n**   method, to iterate through all instances of a single query phrase within\n**   the current row. This is the same information as is accessible via the\n**   xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient\n**   to use, this API may be faster under some circumstances. To iterate \n**   through instances of phrase iPhrase, use the following code:\n**\n**       Fts5PhraseIter iter;\n**       int iCol, iOff;\n**       for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff);\n**           iCol>=0;\n**           pApi->xPhraseNext(pFts, &iter, &iCol, &iOff)\n**       ){\n**         // An instance of phrase iPhrase at offset iOff of column iCol\n**       }\n**\n**   The Fts5PhraseIter structure is defined above. Applications should not\n**   modify this structure directly - it should only be used as shown above\n**   with the xPhraseFirst() and xPhraseNext() API methods (and by\n**   xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below).\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. If the FTS5 table is created \n**   with either \"detail=none\" or \"detail=column\" and \"content=\" option \n**   (i.e. if it is a contentless table), then this API always iterates\n**   through an empty set (all calls to xPhraseFirst() set iCol to -1).\n**\n** xPhraseNext()\n**   See xPhraseFirst above.\n**\n** xPhraseFirstColumn()\n**   This function and xPhraseNextColumn() are similar to the xPhraseFirst()\n**   and xPhraseNext() APIs described above. The difference is that instead\n**   of iterating through all instances of a phrase in the current row, these\n**   APIs are used to iterate through the set of columns in the current row\n**   that contain one or more instances of a specified phrase. For example:\n**\n**       Fts5PhraseIter iter;\n**       int iCol;\n**       for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol);\n**           iCol>=0;\n**           pApi->xPhraseNextColumn(pFts, &iter, &iCol)\n**       ){\n**         // Column iCol contains at least one instance of phrase iPhrase\n**       }\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" option. If the FTS5 table is created with either \n**   \"detail=none\" \"content=\" option (i.e. if it is a contentless table), \n**   then this API always iterates through an empty set (all calls to \n**   xPhraseFirstColumn() set iCol to -1).\n**\n**   The information accessed using this API and its companion\n**   xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext\n**   (or xInst/xInstCount). The chief advantage of this API is that it is\n**   significantly more efficient than those alternatives when used with\n**   \"detail=column\" tables.  \n**\n** xPhraseNextColumn()\n**   See xPhraseFirstColumn above.\n*/\nstruct Fts5ExtensionApi {\n  int iVersion;                   /* Currently always set to 3 */\n\n  void *(*xUserData)(Fts5Context*);\n\n  int (*xColumnCount)(Fts5Context*);\n  int (*xRowCount)(Fts5Context*, sqlite3_int64 *pnRow);\n  int (*xColumnTotalSize)(Fts5Context*, int iCol, sqlite3_int64 *pnToken);\n\n  int (*xTokenize)(Fts5Context*, \n    const char *pText, int nText, /* Text to tokenize */\n    void *pCtx,                   /* Context passed to xToken() */\n    int (*xToken)(void*, int, const char*, int, int, int)       /* Callback */\n  );\n\n  int (*xPhraseCount)(Fts5Context*);\n  int (*xPhraseSize)(Fts5Context*, int iPhrase);\n\n  int (*xInstCount)(Fts5Context*, int *pnInst);\n  int (*xInst)(Fts5Context*, int iIdx, int *piPhrase, int *piCol, int *piOff);\n\n  sqlite3_int64 (*xRowid)(Fts5Context*);\n  int (*xColumnText)(Fts5Context*, int iCol, const char **pz, int *pn);\n  int (*xColumnSize)(Fts5Context*, int iCol, int *pnToken);\n\n  int (*xQueryPhrase)(Fts5Context*, int iPhrase, void *pUserData,\n    int(*)(const Fts5ExtensionApi*,Fts5Context*,void*)\n  );\n  int (*xSetAuxdata)(Fts5Context*, void *pAux, void(*xDelete)(void*));\n  void *(*xGetAuxdata)(Fts5Context*, int bClear);\n\n  int (*xPhraseFirst)(Fts5Context*, int iPhrase, Fts5PhraseIter*, int*, int*);\n  void (*xPhraseNext)(Fts5Context*, Fts5PhraseIter*, int *piCol, int *piOff);\n\n  int (*xPhraseFirstColumn)(Fts5Context*, int iPhrase, Fts5PhraseIter*, int*);\n  void (*xPhraseNextColumn)(Fts5Context*, Fts5PhraseIter*, int *piCol);\n};\n\n/* \n** CUSTOM AUXILIARY FUNCTIONS\n*************************************************************************/\n\n/*************************************************************************\n** CUSTOM TOKENIZERS\n**\n** Applications may also register custom tokenizer types. A tokenizer \n** is registered by providing fts5 with a populated instance of the \n** following structure. All structure methods must be defined, setting\n** any member of the fts5_tokenizer struct to NULL leads to undefined\n** behaviour. The structure methods are expected to function as follows:\n**\n** xCreate:\n**   This function is used to allocate and initialize a tokenizer instance.\n**   A tokenizer instance is required to actually tokenize text.\n**\n**   The first argument passed to this function is a copy of the (void*)\n**   pointer provided by the application when the fts5_tokenizer object\n**   was registered with FTS5 (the third argument to xCreateTokenizer()). \n**   The second and third arguments are an array of nul-terminated strings\n**   containing the tokenizer arguments, if any, specified following the\n**   tokenizer name as part of the CREATE VIRTUAL TABLE statement used\n**   to create the FTS5 table.\n**\n**   The final argument is an output variable. If successful, (*ppOut) \n**   should be set to point to the new tokenizer handle and SQLITE_OK\n**   returned. If an error occurs, some value other than SQLITE_OK should\n**   be returned. In this case, fts5 assumes that the final value of *ppOut \n**   is undefined.\n**\n** xDelete:\n**   This function is invoked to delete a tokenizer handle previously\n**   allocated using xCreate(). Fts5 guarantees that this function will\n**   be invoked exactly once for each successful call to xCreate().\n**\n** xTokenize:\n**   This function is expected to tokenize the nText byte string indicated \n**   by argument pText. pText may or may not be nul-terminated. The first\n**   argument passed to this function is a pointer to an Fts5Tokenizer object\n**   returned by an earlier call to xCreate().\n**\n**   The second argument indicates the reason that FTS5 is requesting\n**   tokenization of the supplied text. This is always one of the following\n**   four values:\n**\n**   <ul><li> <b>FTS5_TOKENIZE_DOCUMENT</b> - A document is being inserted into\n**            or removed from the FTS table. The tokenizer is being invoked to\n**            determine the set of tokens to add to (or delete from) the\n**            FTS index.\n**\n**       <li> <b>FTS5_TOKENIZE_QUERY</b> - A MATCH query is being executed \n**            against the FTS index. The tokenizer is being called to tokenize \n**            a bareword or quoted string specified as part of the query.\n**\n**       <li> <b>(FTS5_TOKENIZE_QUERY | FTS5_TOKENIZE_PREFIX)</b> - Same as\n**            FTS5_TOKENIZE_QUERY, except that the bareword or quoted string is\n**            followed by a \"*\" character, indicating that the last token\n**            returned by the tokenizer will be treated as a token prefix.\n**\n**       <li> <b>FTS5_TOKENIZE_AUX</b> - The tokenizer is being invoked to \n**            satisfy an fts5_api.xTokenize() request made by an auxiliary\n**            function. Or an fts5_api.xColumnSize() request made by the same\n**            on a columnsize=0 database.  \n**   </ul>\n**\n**   For each token in the input string, the supplied callback xToken() must\n**   be invoked. The first argument to it should be a copy of the pointer\n**   passed as the second argument to xTokenize(). The third and fourth\n**   arguments are a pointer to a buffer containing the token text, and the\n**   size of the token in bytes. The 4th and 5th arguments are the byte offsets\n**   of the first byte of and first byte immediately following the text from\n**   which the token is derived within the input.\n**\n**   The second argument passed to the xToken() callback (\"tflags\") should\n**   normally be set to 0. The exception is if the tokenizer supports \n**   synonyms. In this case see the discussion below for details.\n**\n**   FTS5 assumes the xToken() callback is invoked for each token in the \n**   order that they occur within the input text.\n**\n**   If an xToken() callback returns any value other than SQLITE_OK, then\n**   the tokenization should be abandoned and the xTokenize() method should\n**   immediately return a copy of the xToken() return value. Or, if the\n**   input buffer is exhausted, xTokenize() should return SQLITE_OK. Finally,\n**   if an error occurs with the xTokenize() implementation itself, it\n**   may abandon the tokenization and return any error code other than\n**   SQLITE_OK or SQLITE_DONE.\n**\n** SYNONYM SUPPORT\n**\n**   Custom tokenizers may also support synonyms. Consider a case in which a\n**   user wishes to query for a phrase such as \"first place\". Using the \n**   built-in tokenizers, the FTS5 query 'first + place' will match instances\n**   of \"first place\" within the document set, but not alternative forms\n**   such as \"1st place\". In some applications, it would be better to match\n**   all instances of \"first place\" or \"1st place\" regardless of which form\n**   the user specified in the MATCH query text.\n**\n**   There are several ways to approach this in FTS5:\n**\n**   <ol><li> By mapping all synonyms to a single token. In this case, the \n**            In the above example, this means that the tokenizer returns the\n**            same token for inputs \"first\" and \"1st\". Say that token is in\n**            fact \"first\", so that when the user inserts the document \"I won\n**            1st place\" entries are added to the index for tokens \"i\", \"won\",\n**            \"first\" and \"place\". If the user then queries for '1st + place',\n**            the tokenizer substitutes \"first\" for \"1st\" and the query works\n**            as expected.\n**\n**       <li> By adding multiple synonyms for a single term to the FTS index.\n**            In this case, when tokenizing query text, the tokenizer may \n**            provide multiple synonyms for a single term within the document.\n**            FTS5 then queries the index for each synonym individually. For\n**            example, faced with the query:\n**\n**   <codeblock>\n**     ... MATCH 'first place'</codeblock>\n**\n**            the tokenizer offers both \"1st\" and \"first\" as synonyms for the\n**            first token in the MATCH query and FTS5 effectively runs a query \n**            similar to:\n**\n**   <codeblock>\n**     ... MATCH '(first OR 1st) place'</codeblock>\n**\n**            except that, for the purposes of auxiliary functions, the query\n**            still appears to contain just two phrases - \"(first OR 1st)\" \n**            being treated as a single phrase.\n**\n**       <li> By adding multiple synonyms for a single term to the FTS index.\n**            Using this method, when tokenizing document text, the tokenizer\n**            provides multiple synonyms for each token. So that when a \n**            document such as \"I won first place\" is tokenized, entries are\n**            added to the FTS index for \"i\", \"won\", \"first\", \"1st\" and\n**            \"place\".\n**\n**            This way, even if the tokenizer does not provide synonyms\n**            when tokenizing query text (it should not - to do would be\n**            inefficient), it doesn't matter if the user queries for \n**            'first + place' or '1st + place', as there are entires in the\n**            FTS index corresponding to both forms of the first token.\n**   </ol>\n**\n**   Whether it is parsing document or query text, any call to xToken that\n**   specifies a <i>tflags</i> argument with the FTS5_TOKEN_COLOCATED bit\n**   is considered to supply a synonym for the previous token. For example,\n**   when parsing the document \"I won first place\", a tokenizer that supports\n**   synonyms would call xToken() 5 times, as follows:\n**\n**   <codeblock>\n**       xToken(pCtx, 0, \"i\",                      1,  0,  1);\n**       xToken(pCtx, 0, \"won\",                    3,  2,  5);\n**       xToken(pCtx, 0, \"first\",                  5,  6, 11);\n**       xToken(pCtx, FTS5_TOKEN_COLOCATED, \"1st\", 3,  6, 11);\n**       xToken(pCtx, 0, \"place\",                  5, 12, 17);\n**</codeblock>\n**\n**   It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time\n**   xToken() is called. Multiple synonyms may be specified for a single token\n**   by making multiple calls to xToken(FTS5_TOKEN_COLOCATED) in sequence. \n**   There is no limit to the number of synonyms that may be provided for a\n**   single token.\n**\n**   In many cases, method (1) above is the best approach. It does not add \n**   extra data to the FTS index or require FTS5 to query for multiple terms,\n**   so it is efficient in terms of disk space and query speed. However, it\n**   does not support prefix queries very well. If, as suggested above, the\n**   token \"first\" is subsituted for \"1st\" by the tokenizer, then the query:\n**\n**   <codeblock>\n**     ... MATCH '1s*'</codeblock>\n**\n**   will not match documents that contain the token \"1st\" (as the tokenizer\n**   will probably not map \"1s\" to any prefix of \"first\").\n**\n**   For full prefix support, method (3) may be preferred. In this case, \n**   because the index contains entries for both \"first\" and \"1st\", prefix\n**   queries such as 'fi*' or '1s*' will match correctly. However, because\n**   extra entries are added to the FTS index, this method uses more space\n**   within the database.\n**\n**   Method (2) offers a midpoint between (1) and (3). Using this method,\n**   a query such as '1s*' will match documents that contain the literal \n**   token \"1st\", but not \"first\" (assuming the tokenizer is not able to\n**   provide synonyms for prefixes). However, a non-prefix query like '1st'\n**   will match against \"1st\" and \"first\". This method does not require\n**   extra disk space, as no extra entries are added to the FTS index. \n**   On the other hand, it may require more CPU cycles to run MATCH queries,\n**   as separate queries of the FTS index are required for each synonym.\n**\n**   When using methods (2) or (3), it is important that the tokenizer only\n**   provide synonyms when tokenizing document text (method (2)) or query\n**   text (method (3)), not both. Doing so will not cause any errors, but is\n**   inefficient.\n*/\ntypedef struct Fts5Tokenizer Fts5Tokenizer;\ntypedef struct fts5_tokenizer fts5_tokenizer;\nstruct fts5_tokenizer {\n  int (*xCreate)(void*, const char **azArg, int nArg, Fts5Tokenizer **ppOut);\n  void (*xDelete)(Fts5Tokenizer*);\n  int (*xTokenize)(Fts5Tokenizer*, \n      void *pCtx,\n      int flags,            /* Mask of FTS5_TOKENIZE_* flags */\n      const char *pText, int nText, \n      int (*xToken)(\n        void *pCtx,         /* Copy of 2nd argument to xTokenize() */\n        int tflags,         /* Mask of FTS5_TOKEN_* flags */\n        const char *pToken, /* Pointer to buffer containing token */\n        int nToken,         /* Size of token in bytes */\n        int iStart,         /* Byte offset of token within input text */\n        int iEnd            /* Byte offset of end of token within input text */\n      )\n  );\n};\n\n/* Flags that may be passed as the third argument to xTokenize() */\n#define FTS5_TOKENIZE_QUERY     0x0001\n#define FTS5_TOKENIZE_PREFIX    0x0002\n#define FTS5_TOKENIZE_DOCUMENT  0x0004\n#define FTS5_TOKENIZE_AUX       0x0008\n\n/* Flags that may be passed by the tokenizer implementation back to FTS5\n** as the third argument to the supplied xToken callback. */\n#define FTS5_TOKEN_COLOCATED    0x0001      /* Same position as prev. token */\n\n/*\n** END OF CUSTOM TOKENIZERS\n*************************************************************************/\n\n/*************************************************************************\n** FTS5 EXTENSION REGISTRATION API\n*/\ntypedef struct fts5_api fts5_api;\nstruct fts5_api {\n  int iVersion;                   /* Currently always set to 2 */\n\n  /* Create a new tokenizer */\n  int (*xCreateTokenizer)(\n    fts5_api *pApi,\n    const char *zName,\n    void *pContext,\n    fts5_tokenizer *pTokenizer,\n    void (*xDestroy)(void*)\n  );\n\n  /* Find an existing tokenizer */\n  int (*xFindTokenizer)(\n    fts5_api *pApi,\n    const char *zName,\n    void **ppContext,\n    fts5_tokenizer *pTokenizer\n  );\n\n  /* Create a new auxiliary function */\n  int (*xCreateFunction)(\n    fts5_api *pApi,\n    const char *zName,\n    void *pContext,\n    fts5_extension_function xFunction,\n    void (*xDestroy)(void*)\n  );\n};\n\n/*\n** END OF REGISTRATION API\n*************************************************************************/\n\n#ifdef __cplusplus\n}  /* end of the 'extern \"C\"' block */\n#endif\n\n#endif /* _FTS5_H */\n\n/******** End of fts5.h *********/\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/ios-arm64/Headers/sqlite3ext.h",
    "content": "/*\n** 2006 June 7\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n** This header file defines the SQLite interface for use by\n** shared libraries that want to be imported as extensions into\n** an SQLite instance.  Shared libraries that intend to be loaded\n** as extensions by SQLite should #include this file instead of \n** sqlite3.h.\n*/\n#ifndef SQLITE3EXT_H\n#define SQLITE3EXT_H\n#include \"sqlite3.h\"\n\n/*\n** The following structure holds pointers to all of the SQLite API\n** routines.\n**\n** WARNING:  In order to maintain backwards compatibility, add new\n** interfaces to the end of this structure only.  If you insert new\n** interfaces in the middle of this structure, then older different\n** versions of SQLite will not be able to load each other's shared\n** libraries!\n*/\nstruct sqlite3_api_routines {\n  void * (*aggregate_context)(sqlite3_context*,int nBytes);\n  int  (*aggregate_count)(sqlite3_context*);\n  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));\n  int  (*bind_double)(sqlite3_stmt*,int,double);\n  int  (*bind_int)(sqlite3_stmt*,int,int);\n  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);\n  int  (*bind_null)(sqlite3_stmt*,int);\n  int  (*bind_parameter_count)(sqlite3_stmt*);\n  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);\n  const char * (*bind_parameter_name)(sqlite3_stmt*,int);\n  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));\n  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));\n  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);\n  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);\n  int  (*busy_timeout)(sqlite3*,int ms);\n  int  (*changes)(sqlite3*);\n  int  (*close)(sqlite3*);\n  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,\n                           int eTextRep,const char*));\n  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,\n                             int eTextRep,const void*));\n  const void * (*column_blob)(sqlite3_stmt*,int iCol);\n  int  (*column_bytes)(sqlite3_stmt*,int iCol);\n  int  (*column_bytes16)(sqlite3_stmt*,int iCol);\n  int  (*column_count)(sqlite3_stmt*pStmt);\n  const char * (*column_database_name)(sqlite3_stmt*,int);\n  const void * (*column_database_name16)(sqlite3_stmt*,int);\n  const char * (*column_decltype)(sqlite3_stmt*,int i);\n  const void * (*column_decltype16)(sqlite3_stmt*,int);\n  double  (*column_double)(sqlite3_stmt*,int iCol);\n  int  (*column_int)(sqlite3_stmt*,int iCol);\n  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);\n  const char * (*column_name)(sqlite3_stmt*,int);\n  const void * (*column_name16)(sqlite3_stmt*,int);\n  const char * (*column_origin_name)(sqlite3_stmt*,int);\n  const void * (*column_origin_name16)(sqlite3_stmt*,int);\n  const char * (*column_table_name)(sqlite3_stmt*,int);\n  const void * (*column_table_name16)(sqlite3_stmt*,int);\n  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);\n  const void * (*column_text16)(sqlite3_stmt*,int iCol);\n  int  (*column_type)(sqlite3_stmt*,int iCol);\n  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);\n  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);\n  int  (*complete)(const char*sql);\n  int  (*complete16)(const void*sql);\n  int  (*create_collation)(sqlite3*,const char*,int,void*,\n                           int(*)(void*,int,const void*,int,const void*));\n  int  (*create_collation16)(sqlite3*,const void*,int,void*,\n                             int(*)(void*,int,const void*,int,const void*));\n  int  (*create_function)(sqlite3*,const char*,int,int,void*,\n                          void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                          void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                          void (*xFinal)(sqlite3_context*));\n  int  (*create_function16)(sqlite3*,const void*,int,int,void*,\n                            void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xFinal)(sqlite3_context*));\n  int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);\n  int  (*data_count)(sqlite3_stmt*pStmt);\n  sqlite3 * (*db_handle)(sqlite3_stmt*);\n  int (*declare_vtab)(sqlite3*,const char*);\n  int  (*enable_shared_cache)(int);\n  int  (*errcode)(sqlite3*db);\n  const char * (*errmsg)(sqlite3*);\n  const void * (*errmsg16)(sqlite3*);\n  int  (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);\n  int  (*expired)(sqlite3_stmt*);\n  int  (*finalize)(sqlite3_stmt*pStmt);\n  void  (*free)(void*);\n  void  (*free_table)(char**result);\n  int  (*get_autocommit)(sqlite3*);\n  void * (*get_auxdata)(sqlite3_context*,int);\n  int  (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);\n  int  (*global_recover)(void);\n  void  (*interruptx)(sqlite3*);\n  sqlite_int64  (*last_insert_rowid)(sqlite3*);\n  const char * (*libversion)(void);\n  int  (*libversion_number)(void);\n  void *(*malloc)(int);\n  char * (*mprintf)(const char*,...);\n  int  (*open)(const char*,sqlite3**);\n  int  (*open16)(const void*,sqlite3**);\n  int  (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);\n  int  (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);\n  void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);\n  void  (*progress_handler)(sqlite3*,int,int(*)(void*),void*);\n  void *(*realloc)(void*,int);\n  int  (*reset)(sqlite3_stmt*pStmt);\n  void  (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_double)(sqlite3_context*,double);\n  void  (*result_error)(sqlite3_context*,const char*,int);\n  void  (*result_error16)(sqlite3_context*,const void*,int);\n  void  (*result_int)(sqlite3_context*,int);\n  void  (*result_int64)(sqlite3_context*,sqlite_int64);\n  void  (*result_null)(sqlite3_context*);\n  void  (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));\n  void  (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_value)(sqlite3_context*,sqlite3_value*);\n  void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);\n  int  (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,\n                         const char*,const char*),void*);\n  void  (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));\n  char * (*xsnprintf)(int,char*,const char*,...);\n  int  (*step)(sqlite3_stmt*);\n  int  (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,\n                                char const**,char const**,int*,int*,int*);\n  void  (*thread_cleanup)(void);\n  int  (*total_changes)(sqlite3*);\n  void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);\n  int  (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);\n  void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,\n                                         sqlite_int64),void*);\n  void * (*user_data)(sqlite3_context*);\n  const void * (*value_blob)(sqlite3_value*);\n  int  (*value_bytes)(sqlite3_value*);\n  int  (*value_bytes16)(sqlite3_value*);\n  double  (*value_double)(sqlite3_value*);\n  int  (*value_int)(sqlite3_value*);\n  sqlite_int64  (*value_int64)(sqlite3_value*);\n  int  (*value_numeric_type)(sqlite3_value*);\n  const unsigned char * (*value_text)(sqlite3_value*);\n  const void * (*value_text16)(sqlite3_value*);\n  const void * (*value_text16be)(sqlite3_value*);\n  const void * (*value_text16le)(sqlite3_value*);\n  int  (*value_type)(sqlite3_value*);\n  char *(*vmprintf)(const char*,va_list);\n  /* Added ??? */\n  int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);\n  /* Added by 3.3.13 */\n  int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);\n  int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);\n  int (*clear_bindings)(sqlite3_stmt*);\n  /* Added by 3.4.1 */\n  int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,\n                          void (*xDestroy)(void *));\n  /* Added by 3.5.0 */\n  int (*bind_zeroblob)(sqlite3_stmt*,int,int);\n  int (*blob_bytes)(sqlite3_blob*);\n  int (*blob_close)(sqlite3_blob*);\n  int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,\n                   int,sqlite3_blob**);\n  int (*blob_read)(sqlite3_blob*,void*,int,int);\n  int (*blob_write)(sqlite3_blob*,const void*,int,int);\n  int (*create_collation_v2)(sqlite3*,const char*,int,void*,\n                             int(*)(void*,int,const void*,int,const void*),\n                             void(*)(void*));\n  int (*file_control)(sqlite3*,const char*,int,void*);\n  sqlite3_int64 (*memory_highwater)(int);\n  sqlite3_int64 (*memory_used)(void);\n  sqlite3_mutex *(*mutex_alloc)(int);\n  void (*mutex_enter)(sqlite3_mutex*);\n  void (*mutex_free)(sqlite3_mutex*);\n  void (*mutex_leave)(sqlite3_mutex*);\n  int (*mutex_try)(sqlite3_mutex*);\n  int (*open_v2)(const char*,sqlite3**,int,const char*);\n  int (*release_memory)(int);\n  void (*result_error_nomem)(sqlite3_context*);\n  void (*result_error_toobig)(sqlite3_context*);\n  int (*sleep)(int);\n  void (*soft_heap_limit)(int);\n  sqlite3_vfs *(*vfs_find)(const char*);\n  int (*vfs_register)(sqlite3_vfs*,int);\n  int (*vfs_unregister)(sqlite3_vfs*);\n  int (*xthreadsafe)(void);\n  void (*result_zeroblob)(sqlite3_context*,int);\n  void (*result_error_code)(sqlite3_context*,int);\n  int (*test_control)(int, ...);\n  void (*randomness)(int,void*);\n  sqlite3 *(*context_db_handle)(sqlite3_context*);\n  int (*extended_result_codes)(sqlite3*,int);\n  int (*limit)(sqlite3*,int,int);\n  sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);\n  const char *(*sql)(sqlite3_stmt*);\n  int (*status)(int,int*,int*,int);\n  int (*backup_finish)(sqlite3_backup*);\n  sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);\n  int (*backup_pagecount)(sqlite3_backup*);\n  int (*backup_remaining)(sqlite3_backup*);\n  int (*backup_step)(sqlite3_backup*,int);\n  const char *(*compileoption_get)(int);\n  int (*compileoption_used)(const char*);\n  int (*create_function_v2)(sqlite3*,const char*,int,int,void*,\n                            void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xFinal)(sqlite3_context*),\n                            void(*xDestroy)(void*));\n  int (*db_config)(sqlite3*,int,...);\n  sqlite3_mutex *(*db_mutex)(sqlite3*);\n  int (*db_status)(sqlite3*,int,int*,int*,int);\n  int (*extended_errcode)(sqlite3*);\n  void (*log)(int,const char*,...);\n  sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64);\n  const char *(*sourceid)(void);\n  int (*stmt_status)(sqlite3_stmt*,int,int);\n  int (*strnicmp)(const char*,const char*,int);\n  int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);\n  int (*wal_autocheckpoint)(sqlite3*,int);\n  int (*wal_checkpoint)(sqlite3*,const char*);\n  void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);\n  int (*blob_reopen)(sqlite3_blob*,sqlite3_int64);\n  int (*vtab_config)(sqlite3*,int op,...);\n  int (*vtab_on_conflict)(sqlite3*);\n  /* Version 3.7.16 and later */\n  int (*close_v2)(sqlite3*);\n  const char *(*db_filename)(sqlite3*,const char*);\n  int (*db_readonly)(sqlite3*,const char*);\n  int (*db_release_memory)(sqlite3*);\n  const char *(*errstr)(int);\n  int (*stmt_busy)(sqlite3_stmt*);\n  int (*stmt_readonly)(sqlite3_stmt*);\n  int (*stricmp)(const char*,const char*);\n  int (*uri_boolean)(const char*,const char*,int);\n  sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64);\n  const char *(*uri_parameter)(const char*,const char*);\n  char *(*xvsnprintf)(int,char*,const char*,va_list);\n  int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);\n  /* Version 3.8.7 and later */\n  int (*auto_extension)(void(*)(void));\n  int (*bind_blob64)(sqlite3_stmt*,int,const void*,sqlite3_uint64,\n                     void(*)(void*));\n  int (*bind_text64)(sqlite3_stmt*,int,const char*,sqlite3_uint64,\n                      void(*)(void*),unsigned char);\n  int (*cancel_auto_extension)(void(*)(void));\n  int (*load_extension)(sqlite3*,const char*,const char*,char**);\n  void *(*malloc64)(sqlite3_uint64);\n  sqlite3_uint64 (*msize)(void*);\n  void *(*realloc64)(void*,sqlite3_uint64);\n  void (*reset_auto_extension)(void);\n  void (*result_blob64)(sqlite3_context*,const void*,sqlite3_uint64,\n                        void(*)(void*));\n  void (*result_text64)(sqlite3_context*,const char*,sqlite3_uint64,\n                         void(*)(void*), unsigned char);\n  int (*strglob)(const char*,const char*);\n  /* Version 3.8.11 and later */\n  sqlite3_value *(*value_dup)(const sqlite3_value*);\n  void (*value_free)(sqlite3_value*);\n  int (*result_zeroblob64)(sqlite3_context*,sqlite3_uint64);\n  int (*bind_zeroblob64)(sqlite3_stmt*, int, sqlite3_uint64);\n  /* Version 3.9.0 and later */\n  unsigned int (*value_subtype)(sqlite3_value*);\n  void (*result_subtype)(sqlite3_context*,unsigned int);\n  /* Version 3.10.0 and later */\n  int (*status64)(int,sqlite3_int64*,sqlite3_int64*,int);\n  int (*strlike)(const char*,const char*,unsigned int);\n  int (*db_cacheflush)(sqlite3*);\n  /* Version 3.12.0 and later */\n  int (*system_errno)(sqlite3*);\n  /* Version 3.14.0 and later */\n  int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*);\n  char *(*expanded_sql)(sqlite3_stmt*);\n  /* Version 3.18.0 and later */\n  void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64);\n  /* Version 3.20.0 and later */\n  int (*prepare_v3)(sqlite3*,const char*,int,unsigned int,\n                    sqlite3_stmt**,const char**);\n  int (*prepare16_v3)(sqlite3*,const void*,int,unsigned int,\n                      sqlite3_stmt**,const void**);\n  int (*bind_pointer)(sqlite3_stmt*,int,void*,const char*,void(*)(void*));\n  void (*result_pointer)(sqlite3_context*,void*,const char*,void(*)(void*));\n  void *(*value_pointer)(sqlite3_value*,const char*);\n  int (*vtab_nochange)(sqlite3_context*);\n  int (*value_nochange)(sqlite3_value*);\n  const char *(*vtab_collation)(sqlite3_index_info*,int);\n};\n\n/*\n** This is the function signature used for all extension entry points.  It\n** is also defined in the file \"loadext.c\".\n*/\ntypedef int (*sqlite3_loadext_entry)(\n  sqlite3 *db,                       /* Handle to the database. */\n  char **pzErrMsg,                   /* Used to set error string on failure. */\n  const sqlite3_api_routines *pThunk /* Extension API function pointers. */\n);\n\n/*\n** The following macros redefine the API routines so that they are\n** redirected through the global sqlite3_api structure.\n**\n** This header file is also used by the loadext.c source file\n** (part of the main SQLite library - not an extension) so that\n** it can get access to the sqlite3_api_routines structure\n** definition.  But the main library does not want to redefine\n** the API.  So the redefinition macros are only valid if the\n** SQLITE_CORE macros is undefined.\n*/\n#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)\n#define sqlite3_aggregate_context      sqlite3_api->aggregate_context\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_aggregate_count        sqlite3_api->aggregate_count\n#endif\n#define sqlite3_bind_blob              sqlite3_api->bind_blob\n#define sqlite3_bind_double            sqlite3_api->bind_double\n#define sqlite3_bind_int               sqlite3_api->bind_int\n#define sqlite3_bind_int64             sqlite3_api->bind_int64\n#define sqlite3_bind_null              sqlite3_api->bind_null\n#define sqlite3_bind_parameter_count   sqlite3_api->bind_parameter_count\n#define sqlite3_bind_parameter_index   sqlite3_api->bind_parameter_index\n#define sqlite3_bind_parameter_name    sqlite3_api->bind_parameter_name\n#define sqlite3_bind_text              sqlite3_api->bind_text\n#define sqlite3_bind_text16            sqlite3_api->bind_text16\n#define sqlite3_bind_value             sqlite3_api->bind_value\n#define sqlite3_busy_handler           sqlite3_api->busy_handler\n#define sqlite3_busy_timeout           sqlite3_api->busy_timeout\n#define sqlite3_changes                sqlite3_api->changes\n#define sqlite3_close                  sqlite3_api->close\n#define sqlite3_collation_needed       sqlite3_api->collation_needed\n#define sqlite3_collation_needed16     sqlite3_api->collation_needed16\n#define sqlite3_column_blob            sqlite3_api->column_blob\n#define sqlite3_column_bytes           sqlite3_api->column_bytes\n#define sqlite3_column_bytes16         sqlite3_api->column_bytes16\n#define sqlite3_column_count           sqlite3_api->column_count\n#define sqlite3_column_database_name   sqlite3_api->column_database_name\n#define sqlite3_column_database_name16 sqlite3_api->column_database_name16\n#define sqlite3_column_decltype        sqlite3_api->column_decltype\n#define sqlite3_column_decltype16      sqlite3_api->column_decltype16\n#define sqlite3_column_double          sqlite3_api->column_double\n#define sqlite3_column_int             sqlite3_api->column_int\n#define sqlite3_column_int64           sqlite3_api->column_int64\n#define sqlite3_column_name            sqlite3_api->column_name\n#define sqlite3_column_name16          sqlite3_api->column_name16\n#define sqlite3_column_origin_name     sqlite3_api->column_origin_name\n#define sqlite3_column_origin_name16   sqlite3_api->column_origin_name16\n#define sqlite3_column_table_name      sqlite3_api->column_table_name\n#define sqlite3_column_table_name16    sqlite3_api->column_table_name16\n#define sqlite3_column_text            sqlite3_api->column_text\n#define sqlite3_column_text16          sqlite3_api->column_text16\n#define sqlite3_column_type            sqlite3_api->column_type\n#define sqlite3_column_value           sqlite3_api->column_value\n#define sqlite3_commit_hook            sqlite3_api->commit_hook\n#define sqlite3_complete               sqlite3_api->complete\n#define sqlite3_complete16             sqlite3_api->complete16\n#define sqlite3_create_collation       sqlite3_api->create_collation\n#define sqlite3_create_collation16     sqlite3_api->create_collation16\n#define sqlite3_create_function        sqlite3_api->create_function\n#define sqlite3_create_function16      sqlite3_api->create_function16\n#define sqlite3_create_module          sqlite3_api->create_module\n#define sqlite3_create_module_v2       sqlite3_api->create_module_v2\n#define sqlite3_data_count             sqlite3_api->data_count\n#define sqlite3_db_handle              sqlite3_api->db_handle\n#define sqlite3_declare_vtab           sqlite3_api->declare_vtab\n#define sqlite3_enable_shared_cache    sqlite3_api->enable_shared_cache\n#define sqlite3_errcode                sqlite3_api->errcode\n#define sqlite3_errmsg                 sqlite3_api->errmsg\n#define sqlite3_errmsg16               sqlite3_api->errmsg16\n#define sqlite3_exec                   sqlite3_api->exec\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_expired                sqlite3_api->expired\n#endif\n#define sqlite3_finalize               sqlite3_api->finalize\n#define sqlite3_free                   sqlite3_api->free\n#define sqlite3_free_table             sqlite3_api->free_table\n#define sqlite3_get_autocommit         sqlite3_api->get_autocommit\n#define sqlite3_get_auxdata            sqlite3_api->get_auxdata\n#define sqlite3_get_table              sqlite3_api->get_table\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_global_recover         sqlite3_api->global_recover\n#endif\n#define sqlite3_interrupt              sqlite3_api->interruptx\n#define sqlite3_last_insert_rowid      sqlite3_api->last_insert_rowid\n#define sqlite3_libversion             sqlite3_api->libversion\n#define sqlite3_libversion_number      sqlite3_api->libversion_number\n#define sqlite3_malloc                 sqlite3_api->malloc\n#define sqlite3_mprintf                sqlite3_api->mprintf\n#define sqlite3_open                   sqlite3_api->open\n#define sqlite3_open16                 sqlite3_api->open16\n#define sqlite3_prepare                sqlite3_api->prepare\n#define sqlite3_prepare16              sqlite3_api->prepare16\n#define sqlite3_prepare_v2             sqlite3_api->prepare_v2\n#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2\n#define sqlite3_profile                sqlite3_api->profile\n#define sqlite3_progress_handler       sqlite3_api->progress_handler\n#define sqlite3_realloc                sqlite3_api->realloc\n#define sqlite3_reset                  sqlite3_api->reset\n#define sqlite3_result_blob            sqlite3_api->result_blob\n#define sqlite3_result_double          sqlite3_api->result_double\n#define sqlite3_result_error           sqlite3_api->result_error\n#define sqlite3_result_error16         sqlite3_api->result_error16\n#define sqlite3_result_int             sqlite3_api->result_int\n#define sqlite3_result_int64           sqlite3_api->result_int64\n#define sqlite3_result_null            sqlite3_api->result_null\n#define sqlite3_result_text            sqlite3_api->result_text\n#define sqlite3_result_text16          sqlite3_api->result_text16\n#define sqlite3_result_text16be        sqlite3_api->result_text16be\n#define sqlite3_result_text16le        sqlite3_api->result_text16le\n#define sqlite3_result_value           sqlite3_api->result_value\n#define sqlite3_rollback_hook          sqlite3_api->rollback_hook\n#define sqlite3_set_authorizer         sqlite3_api->set_authorizer\n#define sqlite3_set_auxdata            sqlite3_api->set_auxdata\n#define sqlite3_snprintf               sqlite3_api->xsnprintf\n#define sqlite3_step                   sqlite3_api->step\n#define sqlite3_table_column_metadata  sqlite3_api->table_column_metadata\n#define sqlite3_thread_cleanup         sqlite3_api->thread_cleanup\n#define sqlite3_total_changes          sqlite3_api->total_changes\n#define sqlite3_trace                  sqlite3_api->trace\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_transfer_bindings      sqlite3_api->transfer_bindings\n#endif\n#define sqlite3_update_hook            sqlite3_api->update_hook\n#define sqlite3_user_data              sqlite3_api->user_data\n#define sqlite3_value_blob             sqlite3_api->value_blob\n#define sqlite3_value_bytes            sqlite3_api->value_bytes\n#define sqlite3_value_bytes16          sqlite3_api->value_bytes16\n#define sqlite3_value_double           sqlite3_api->value_double\n#define sqlite3_value_int              sqlite3_api->value_int\n#define sqlite3_value_int64            sqlite3_api->value_int64\n#define sqlite3_value_numeric_type     sqlite3_api->value_numeric_type\n#define sqlite3_value_text             sqlite3_api->value_text\n#define sqlite3_value_text16           sqlite3_api->value_text16\n#define sqlite3_value_text16be         sqlite3_api->value_text16be\n#define sqlite3_value_text16le         sqlite3_api->value_text16le\n#define sqlite3_value_type             sqlite3_api->value_type\n#define sqlite3_vmprintf               sqlite3_api->vmprintf\n#define sqlite3_vsnprintf              sqlite3_api->xvsnprintf\n#define sqlite3_overload_function      sqlite3_api->overload_function\n#define sqlite3_prepare_v2             sqlite3_api->prepare_v2\n#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2\n#define sqlite3_clear_bindings         sqlite3_api->clear_bindings\n#define sqlite3_bind_zeroblob          sqlite3_api->bind_zeroblob\n#define sqlite3_blob_bytes             sqlite3_api->blob_bytes\n#define sqlite3_blob_close             sqlite3_api->blob_close\n#define sqlite3_blob_open              sqlite3_api->blob_open\n#define sqlite3_blob_read              sqlite3_api->blob_read\n#define sqlite3_blob_write             sqlite3_api->blob_write\n#define sqlite3_create_collation_v2    sqlite3_api->create_collation_v2\n#define sqlite3_file_control           sqlite3_api->file_control\n#define sqlite3_memory_highwater       sqlite3_api->memory_highwater\n#define sqlite3_memory_used            sqlite3_api->memory_used\n#define sqlite3_mutex_alloc            sqlite3_api->mutex_alloc\n#define sqlite3_mutex_enter            sqlite3_api->mutex_enter\n#define sqlite3_mutex_free             sqlite3_api->mutex_free\n#define sqlite3_mutex_leave            sqlite3_api->mutex_leave\n#define sqlite3_mutex_try              sqlite3_api->mutex_try\n#define sqlite3_open_v2                sqlite3_api->open_v2\n#define sqlite3_release_memory         sqlite3_api->release_memory\n#define sqlite3_result_error_nomem     sqlite3_api->result_error_nomem\n#define sqlite3_result_error_toobig    sqlite3_api->result_error_toobig\n#define sqlite3_sleep                  sqlite3_api->sleep\n#define sqlite3_soft_heap_limit        sqlite3_api->soft_heap_limit\n#define sqlite3_vfs_find               sqlite3_api->vfs_find\n#define sqlite3_vfs_register           sqlite3_api->vfs_register\n#define sqlite3_vfs_unregister         sqlite3_api->vfs_unregister\n#define sqlite3_threadsafe             sqlite3_api->xthreadsafe\n#define sqlite3_result_zeroblob        sqlite3_api->result_zeroblob\n#define sqlite3_result_error_code      sqlite3_api->result_error_code\n#define sqlite3_test_control           sqlite3_api->test_control\n#define sqlite3_randomness             sqlite3_api->randomness\n#define sqlite3_context_db_handle      sqlite3_api->context_db_handle\n#define sqlite3_extended_result_codes  sqlite3_api->extended_result_codes\n#define sqlite3_limit                  sqlite3_api->limit\n#define sqlite3_next_stmt              sqlite3_api->next_stmt\n#define sqlite3_sql                    sqlite3_api->sql\n#define sqlite3_status                 sqlite3_api->status\n#define sqlite3_backup_finish          sqlite3_api->backup_finish\n#define sqlite3_backup_init            sqlite3_api->backup_init\n#define sqlite3_backup_pagecount       sqlite3_api->backup_pagecount\n#define sqlite3_backup_remaining       sqlite3_api->backup_remaining\n#define sqlite3_backup_step            sqlite3_api->backup_step\n#define sqlite3_compileoption_get      sqlite3_api->compileoption_get\n#define sqlite3_compileoption_used     sqlite3_api->compileoption_used\n#define sqlite3_create_function_v2     sqlite3_api->create_function_v2\n#define sqlite3_db_config              sqlite3_api->db_config\n#define sqlite3_db_mutex               sqlite3_api->db_mutex\n#define sqlite3_db_status              sqlite3_api->db_status\n#define sqlite3_extended_errcode       sqlite3_api->extended_errcode\n#define sqlite3_log                    sqlite3_api->log\n#define sqlite3_soft_heap_limit64      sqlite3_api->soft_heap_limit64\n#define sqlite3_sourceid               sqlite3_api->sourceid\n#define sqlite3_stmt_status            sqlite3_api->stmt_status\n#define sqlite3_strnicmp               sqlite3_api->strnicmp\n#define sqlite3_unlock_notify          sqlite3_api->unlock_notify\n#define sqlite3_wal_autocheckpoint     sqlite3_api->wal_autocheckpoint\n#define sqlite3_wal_checkpoint         sqlite3_api->wal_checkpoint\n#define sqlite3_wal_hook               sqlite3_api->wal_hook\n#define sqlite3_blob_reopen            sqlite3_api->blob_reopen\n#define sqlite3_vtab_config            sqlite3_api->vtab_config\n#define sqlite3_vtab_on_conflict       sqlite3_api->vtab_on_conflict\n/* Version 3.7.16 and later */\n#define sqlite3_close_v2               sqlite3_api->close_v2\n#define sqlite3_db_filename            sqlite3_api->db_filename\n#define sqlite3_db_readonly            sqlite3_api->db_readonly\n#define sqlite3_db_release_memory      sqlite3_api->db_release_memory\n#define sqlite3_errstr                 sqlite3_api->errstr\n#define sqlite3_stmt_busy              sqlite3_api->stmt_busy\n#define sqlite3_stmt_readonly          sqlite3_api->stmt_readonly\n#define sqlite3_stricmp                sqlite3_api->stricmp\n#define sqlite3_uri_boolean            sqlite3_api->uri_boolean\n#define sqlite3_uri_int64              sqlite3_api->uri_int64\n#define sqlite3_uri_parameter          sqlite3_api->uri_parameter\n#define sqlite3_uri_vsnprintf          sqlite3_api->xvsnprintf\n#define sqlite3_wal_checkpoint_v2      sqlite3_api->wal_checkpoint_v2\n/* Version 3.8.7 and later */\n#define sqlite3_auto_extension         sqlite3_api->auto_extension\n#define sqlite3_bind_blob64            sqlite3_api->bind_blob64\n#define sqlite3_bind_text64            sqlite3_api->bind_text64\n#define sqlite3_cancel_auto_extension  sqlite3_api->cancel_auto_extension\n#define sqlite3_load_extension         sqlite3_api->load_extension\n#define sqlite3_malloc64               sqlite3_api->malloc64\n#define sqlite3_msize                  sqlite3_api->msize\n#define sqlite3_realloc64              sqlite3_api->realloc64\n#define sqlite3_reset_auto_extension   sqlite3_api->reset_auto_extension\n#define sqlite3_result_blob64          sqlite3_api->result_blob64\n#define sqlite3_result_text64          sqlite3_api->result_text64\n#define sqlite3_strglob                sqlite3_api->strglob\n/* Version 3.8.11 and later */\n#define sqlite3_value_dup              sqlite3_api->value_dup\n#define sqlite3_value_free             sqlite3_api->value_free\n#define sqlite3_result_zeroblob64      sqlite3_api->result_zeroblob64\n#define sqlite3_bind_zeroblob64        sqlite3_api->bind_zeroblob64\n/* Version 3.9.0 and later */\n#define sqlite3_value_subtype          sqlite3_api->value_subtype\n#define sqlite3_result_subtype         sqlite3_api->result_subtype\n/* Version 3.10.0 and later */\n#define sqlite3_status64               sqlite3_api->status64\n#define sqlite3_strlike                sqlite3_api->strlike\n#define sqlite3_db_cacheflush          sqlite3_api->db_cacheflush\n/* Version 3.12.0 and later */\n#define sqlite3_system_errno           sqlite3_api->system_errno\n/* Version 3.14.0 and later */\n#define sqlite3_trace_v2               sqlite3_api->trace_v2\n#define sqlite3_expanded_sql           sqlite3_api->expanded_sql\n/* Version 3.18.0 and later */\n#define sqlite3_set_last_insert_rowid  sqlite3_api->set_last_insert_rowid\n/* Version 3.20.0 and later */\n#define sqlite3_prepare_v3             sqlite3_api->prepare_v3\n#define sqlite3_prepare16_v3           sqlite3_api->prepare16_v3\n#define sqlite3_bind_pointer           sqlite3_api->bind_pointer\n#define sqlite3_result_pointer         sqlite3_api->result_pointer\n#define sqlite3_value_pointer          sqlite3_api->value_pointer\n/* Version 3.22.0 and later */\n#define sqlite3_vtab_nochange          sqlite3_api->vtab_nochange\n#define sqlite3_value_nochange         sqltie3_api->value_nochange\n#define sqlite3_vtab_collation         sqltie3_api->vtab_collation\n#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */\n\n#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)\n  /* This case when the file really is being compiled as a loadable \n  ** extension */\n# define SQLITE_EXTENSION_INIT1     const sqlite3_api_routines *sqlite3_api=0;\n# define SQLITE_EXTENSION_INIT2(v)  sqlite3_api=v;\n# define SQLITE_EXTENSION_INIT3     \\\n    extern const sqlite3_api_routines *sqlite3_api;\n#else\n  /* This case when the file is being statically linked into the \n  ** application */\n# define SQLITE_EXTENSION_INIT1     /*no-op*/\n# define SQLITE_EXTENSION_INIT2(v)  (void)v; /* unused parameter */\n# define SQLITE_EXTENSION_INIT3     /*no-op*/\n#endif\n\n#endif /* SQLITE3EXT_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/ios-arm64_x86_64-simulator/Headers/sqlite3.h",
    "content": "/*\n** 2001-09-15\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n** This header file defines the interface that the SQLite library\n** presents to client programs.  If a C-function, structure, datatype,\n** or constant definition does not appear in this file, then it is\n** not a published API of SQLite, is subject to change without\n** notice, and should not be referenced by programs that use SQLite.\n**\n** Some of the definitions that are in this file are marked as\n** \"experimental\".  Experimental interfaces are normally new\n** features recently added to SQLite.  We do not anticipate changes\n** to experimental interfaces but reserve the right to make minor changes\n** if experience from use \"in the wild\" suggest such changes are prudent.\n**\n** The official C-language API documentation for SQLite is derived\n** from comments in this file.  This file is the authoritative source\n** on how SQLite interfaces are supposed to operate.\n**\n** The name of this file under configuration management is \"sqlite.h.in\".\n** The makefile makes some minor changes to this file (such as inserting\n** the version number) and changes its name to \"sqlite3.h\" as\n** part of the build process.\n*/\n#ifndef SQLITE3_H\n#define SQLITE3_H\n#include <stdarg.h>     /* Needed for the definition of va_list */\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n/*\n** Provide the ability to override linkage features of the interface.\n*/\n#ifndef SQLITE_EXTERN\n# define SQLITE_EXTERN extern\n#endif\n#ifndef SQLITE_API\n# define SQLITE_API\n#endif\n#ifndef SQLITE_CDECL\n# define SQLITE_CDECL\n#endif\n#ifndef SQLITE_APICALL\n# define SQLITE_APICALL\n#endif\n#ifndef SQLITE_STDCALL\n# define SQLITE_STDCALL SQLITE_APICALL\n#endif\n#ifndef SQLITE_CALLBACK\n# define SQLITE_CALLBACK\n#endif\n#ifndef SQLITE_SYSAPI\n# define SQLITE_SYSAPI\n#endif\n\n/*\n** These no-op macros are used in front of interfaces to mark those\n** interfaces as either deprecated or experimental.  New applications\n** should not use deprecated interfaces - they are supported for backwards\n** compatibility only.  Application writers should be aware that\n** experimental interfaces are subject to change in point releases.\n**\n** These macros used to resolve to various kinds of compiler magic that\n** would generate warning messages when they were used.  But that\n** compiler magic ended up generating such a flurry of bug reports\n** that we have taken it all out and gone back to using simple\n** noop macros.\n*/\n#define SQLITE_DEPRECATED\n#define SQLITE_EXPERIMENTAL\n\n/*\n** Ensure these symbols were not defined by some previous header file.\n*/\n#ifdef SQLITE_VERSION\n# undef SQLITE_VERSION\n#endif\n#ifdef SQLITE_VERSION_NUMBER\n# undef SQLITE_VERSION_NUMBER\n#endif\n\n/*\n** CAPI3REF: Compile-Time Library Version Numbers\n**\n** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header\n** evaluates to a string literal that is the SQLite version in the\n** format \"X.Y.Z\" where X is the major version number (always 3 for\n** SQLite3) and Y is the minor version number and Z is the release number.)^\n** ^(The [SQLITE_VERSION_NUMBER] C preprocessor macro resolves to an integer\n** with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same\n** numbers used in [SQLITE_VERSION].)^\n** The SQLITE_VERSION_NUMBER for any given release of SQLite will also\n** be larger than the release from which it is derived.  Either Y will\n** be held constant and Z will be incremented or else Y will be incremented\n** and Z will be reset to zero.\n**\n** Since [version 3.6.18] ([dateof:3.6.18]), \n** SQLite source code has been stored in the\n** <a href=\"http://www.fossil-scm.org/\">Fossil configuration management\n** system</a>.  ^The SQLITE_SOURCE_ID macro evaluates to\n** a string which identifies a particular check-in of SQLite\n** within its configuration management system.  ^The SQLITE_SOURCE_ID\n** string contains the date and time of the check-in (UTC) and a SHA1\n** or SHA3-256 hash of the entire source tree.  If the source code has\n** been edited in any way since it was last checked in, then the last\n** four hexadecimal digits of the hash may be modified.\n**\n** See also: [sqlite3_libversion()],\n** [sqlite3_libversion_number()], [sqlite3_sourceid()],\n** [sqlite_version()] and [sqlite_source_id()].\n*/\n#define SQLITE_VERSION        \"3.22.0\"\n#define SQLITE_VERSION_NUMBER 3022000\n#define SQLITE_SOURCE_ID      \"2018-01-22 18:45:57 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2171d\"\n\n/*\n** CAPI3REF: Run-Time Library Version Numbers\n** KEYWORDS: sqlite3_version sqlite3_sourceid\n**\n** These interfaces provide the same information as the [SQLITE_VERSION],\n** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros\n** but are associated with the library instead of the header file.  ^(Cautious\n** programmers might include assert() statements in their application to\n** verify that values returned by these interfaces match the macros in\n** the header, and thus ensure that the application is\n** compiled with matching library and header files.\n**\n** <blockquote><pre>\n** assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );\n** assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 );\n** assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );\n** </pre></blockquote>)^\n**\n** ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION]\n** macro.  ^The sqlite3_libversion() function returns a pointer to the\n** to the sqlite3_version[] string constant.  The sqlite3_libversion()\n** function is provided for use in DLLs since DLL users usually do not have\n** direct access to string constants within the DLL.  ^The\n** sqlite3_libversion_number() function returns an integer equal to\n** [SQLITE_VERSION_NUMBER].  ^(The sqlite3_sourceid() function returns \n** a pointer to a string constant whose value is the same as the \n** [SQLITE_SOURCE_ID] C preprocessor macro.  Except if SQLite is built\n** using an edited copy of [the amalgamation], then the last four characters\n** of the hash might be different from [SQLITE_SOURCE_ID].)^\n**\n** See also: [sqlite_version()] and [sqlite_source_id()].\n*/\nSQLITE_API SQLITE_EXTERN const char sqlite3_version[];\nSQLITE_API const char *sqlite3_libversion(void);\nSQLITE_API const char *sqlite3_sourceid(void);\nSQLITE_API int sqlite3_libversion_number(void);\n\n/*\n** CAPI3REF: Run-Time Library Compilation Options Diagnostics\n**\n** ^The sqlite3_compileoption_used() function returns 0 or 1 \n** indicating whether the specified option was defined at \n** compile time.  ^The SQLITE_ prefix may be omitted from the \n** option name passed to sqlite3_compileoption_used().  \n**\n** ^The sqlite3_compileoption_get() function allows iterating\n** over the list of options that were defined at compile time by\n** returning the N-th compile time option string.  ^If N is out of range,\n** sqlite3_compileoption_get() returns a NULL pointer.  ^The SQLITE_ \n** prefix is omitted from any strings returned by \n** sqlite3_compileoption_get().\n**\n** ^Support for the diagnostic functions sqlite3_compileoption_used()\n** and sqlite3_compileoption_get() may be omitted by specifying the \n** [SQLITE_OMIT_COMPILEOPTION_DIAGS] option at compile time.\n**\n** See also: SQL functions [sqlite_compileoption_used()] and\n** [sqlite_compileoption_get()] and the [compile_options pragma].\n*/\n#ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS\nSQLITE_API int sqlite3_compileoption_used(const char *zOptName);\nSQLITE_API const char *sqlite3_compileoption_get(int N);\n#endif\n\n/*\n** CAPI3REF: Test To See If The Library Is Threadsafe\n**\n** ^The sqlite3_threadsafe() function returns zero if and only if\n** SQLite was compiled with mutexing code omitted due to the\n** [SQLITE_THREADSAFE] compile-time option being set to 0.\n**\n** SQLite can be compiled with or without mutexes.  When\n** the [SQLITE_THREADSAFE] C preprocessor macro is 1 or 2, mutexes\n** are enabled and SQLite is threadsafe.  When the\n** [SQLITE_THREADSAFE] macro is 0, \n** the mutexes are omitted.  Without the mutexes, it is not safe\n** to use SQLite concurrently from more than one thread.\n**\n** Enabling mutexes incurs a measurable performance penalty.\n** So if speed is of utmost importance, it makes sense to disable\n** the mutexes.  But for maximum safety, mutexes should be enabled.\n** ^The default behavior is for mutexes to be enabled.\n**\n** This interface can be used by an application to make sure that the\n** version of SQLite that it is linking against was compiled with\n** the desired setting of the [SQLITE_THREADSAFE] macro.\n**\n** This interface only reports on the compile-time mutex setting\n** of the [SQLITE_THREADSAFE] flag.  If SQLite is compiled with\n** SQLITE_THREADSAFE=1 or =2 then mutexes are enabled by default but\n** can be fully or partially disabled using a call to [sqlite3_config()]\n** with the verbs [SQLITE_CONFIG_SINGLETHREAD], [SQLITE_CONFIG_MULTITHREAD],\n** or [SQLITE_CONFIG_SERIALIZED].  ^(The return value of the\n** sqlite3_threadsafe() function shows only the compile-time setting of\n** thread safety, not any run-time changes to that setting made by\n** sqlite3_config(). In other words, the return value from sqlite3_threadsafe()\n** is unchanged by calls to sqlite3_config().)^\n**\n** See the [threading mode] documentation for additional information.\n*/\nSQLITE_API int sqlite3_threadsafe(void);\n\n/*\n** CAPI3REF: Database Connection Handle\n** KEYWORDS: {database connection} {database connections}\n**\n** Each open SQLite database is represented by a pointer to an instance of\n** the opaque structure named \"sqlite3\".  It is useful to think of an sqlite3\n** pointer as an object.  The [sqlite3_open()], [sqlite3_open16()], and\n** [sqlite3_open_v2()] interfaces are its constructors, and [sqlite3_close()]\n** and [sqlite3_close_v2()] are its destructors.  There are many other\n** interfaces (such as\n** [sqlite3_prepare_v2()], [sqlite3_create_function()], and\n** [sqlite3_busy_timeout()] to name but three) that are methods on an\n** sqlite3 object.\n*/\ntypedef struct sqlite3 sqlite3;\n\n/*\n** CAPI3REF: 64-Bit Integer Types\n** KEYWORDS: sqlite_int64 sqlite_uint64\n**\n** Because there is no cross-platform way to specify 64-bit integer types\n** SQLite includes typedefs for 64-bit signed and unsigned integers.\n**\n** The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions.\n** The sqlite_int64 and sqlite_uint64 types are supported for backwards\n** compatibility only.\n**\n** ^The sqlite3_int64 and sqlite_int64 types can store integer values\n** between -9223372036854775808 and +9223372036854775807 inclusive.  ^The\n** sqlite3_uint64 and sqlite_uint64 types can store integer values \n** between 0 and +18446744073709551615 inclusive.\n*/\n#ifdef SQLITE_INT64_TYPE\n  typedef SQLITE_INT64_TYPE sqlite_int64;\n# ifdef SQLITE_UINT64_TYPE\n    typedef SQLITE_UINT64_TYPE sqlite_uint64;\n# else  \n    typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;\n# endif\n#elif defined(_MSC_VER) || defined(__BORLANDC__)\n  typedef __int64 sqlite_int64;\n  typedef unsigned __int64 sqlite_uint64;\n#else\n  typedef long long int sqlite_int64;\n  typedef unsigned long long int sqlite_uint64;\n#endif\ntypedef sqlite_int64 sqlite3_int64;\ntypedef sqlite_uint64 sqlite3_uint64;\n\n/*\n** If compiling for a processor that lacks floating point support,\n** substitute integer for floating-point.\n*/\n#ifdef SQLITE_OMIT_FLOATING_POINT\n# define double sqlite3_int64\n#endif\n\n/*\n** CAPI3REF: Closing A Database Connection\n** DESTRUCTOR: sqlite3\n**\n** ^The sqlite3_close() and sqlite3_close_v2() routines are destructors\n** for the [sqlite3] object.\n** ^Calls to sqlite3_close() and sqlite3_close_v2() return [SQLITE_OK] if\n** the [sqlite3] object is successfully destroyed and all associated\n** resources are deallocated.\n**\n** ^If the database connection is associated with unfinalized prepared\n** statements or unfinished sqlite3_backup objects then sqlite3_close()\n** will leave the database connection open and return [SQLITE_BUSY].\n** ^If sqlite3_close_v2() is called with unfinalized prepared statements\n** and/or unfinished sqlite3_backups, then the database connection becomes\n** an unusable \"zombie\" which will automatically be deallocated when the\n** last prepared statement is finalized or the last sqlite3_backup is\n** finished.  The sqlite3_close_v2() interface is intended for use with\n** host languages that are garbage collected, and where the order in which\n** destructors are called is arbitrary.\n**\n** Applications should [sqlite3_finalize | finalize] all [prepared statements],\n** [sqlite3_blob_close | close] all [BLOB handles], and \n** [sqlite3_backup_finish | finish] all [sqlite3_backup] objects associated\n** with the [sqlite3] object prior to attempting to close the object.  ^If\n** sqlite3_close_v2() is called on a [database connection] that still has\n** outstanding [prepared statements], [BLOB handles], and/or\n** [sqlite3_backup] objects then it returns [SQLITE_OK] and the deallocation\n** of resources is deferred until all [prepared statements], [BLOB handles],\n** and [sqlite3_backup] objects are also destroyed.\n**\n** ^If an [sqlite3] object is destroyed while a transaction is open,\n** the transaction is automatically rolled back.\n**\n** The C parameter to [sqlite3_close(C)] and [sqlite3_close_v2(C)]\n** must be either a NULL\n** pointer or an [sqlite3] object pointer obtained\n** from [sqlite3_open()], [sqlite3_open16()], or\n** [sqlite3_open_v2()], and not previously closed.\n** ^Calling sqlite3_close() or sqlite3_close_v2() with a NULL pointer\n** argument is a harmless no-op.\n*/\nSQLITE_API int sqlite3_close(sqlite3*);\nSQLITE_API int sqlite3_close_v2(sqlite3*);\n\n/*\n** The type for a callback function.\n** This is legacy and deprecated.  It is included for historical\n** compatibility and is not documented.\n*/\ntypedef int (*sqlite3_callback)(void*,int,char**, char**);\n\n/*\n** CAPI3REF: One-Step Query Execution Interface\n** METHOD: sqlite3\n**\n** The sqlite3_exec() interface is a convenience wrapper around\n** [sqlite3_prepare_v2()], [sqlite3_step()], and [sqlite3_finalize()],\n** that allows an application to run multiple statements of SQL\n** without having to use a lot of C code. \n**\n** ^The sqlite3_exec() interface runs zero or more UTF-8 encoded,\n** semicolon-separate SQL statements passed into its 2nd argument,\n** in the context of the [database connection] passed in as its 1st\n** argument.  ^If the callback function of the 3rd argument to\n** sqlite3_exec() is not NULL, then it is invoked for each result row\n** coming out of the evaluated SQL statements.  ^The 4th argument to\n** sqlite3_exec() is relayed through to the 1st argument of each\n** callback invocation.  ^If the callback pointer to sqlite3_exec()\n** is NULL, then no callback is ever invoked and result rows are\n** ignored.\n**\n** ^If an error occurs while evaluating the SQL statements passed into\n** sqlite3_exec(), then execution of the current statement stops and\n** subsequent statements are skipped.  ^If the 5th parameter to sqlite3_exec()\n** is not NULL then any error message is written into memory obtained\n** from [sqlite3_malloc()] and passed back through the 5th parameter.\n** To avoid memory leaks, the application should invoke [sqlite3_free()]\n** on error message strings returned through the 5th parameter of\n** sqlite3_exec() after the error message string is no longer needed.\n** ^If the 5th parameter to sqlite3_exec() is not NULL and no errors\n** occur, then sqlite3_exec() sets the pointer in its 5th parameter to\n** NULL before returning.\n**\n** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()\n** routine returns SQLITE_ABORT without invoking the callback again and\n** without running any subsequent SQL statements.\n**\n** ^The 2nd argument to the sqlite3_exec() callback function is the\n** number of columns in the result.  ^The 3rd argument to the sqlite3_exec()\n** callback is an array of pointers to strings obtained as if from\n** [sqlite3_column_text()], one for each column.  ^If an element of a\n** result row is NULL then the corresponding string pointer for the\n** sqlite3_exec() callback is a NULL pointer.  ^The 4th argument to the\n** sqlite3_exec() callback is an array of pointers to strings where each\n** entry represents the name of corresponding result column as obtained\n** from [sqlite3_column_name()].\n**\n** ^If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer\n** to an empty string, or a pointer that contains only whitespace and/or \n** SQL comments, then no SQL statements are evaluated and the database\n** is not changed.\n**\n** Restrictions:\n**\n** <ul>\n** <li> The application must ensure that the 1st parameter to sqlite3_exec()\n**      is a valid and open [database connection].\n** <li> The application must not close the [database connection] specified by\n**      the 1st parameter to sqlite3_exec() while sqlite3_exec() is running.\n** <li> The application must not modify the SQL statement text passed into\n**      the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running.\n** </ul>\n*/\nSQLITE_API int sqlite3_exec(\n  sqlite3*,                                  /* An open database */\n  const char *sql,                           /* SQL to be evaluated */\n  int (*callback)(void*,int,char**,char**),  /* Callback function */\n  void *,                                    /* 1st argument to callback */\n  char **errmsg                              /* Error msg written here */\n);\n\n/*\n** CAPI3REF: Result Codes\n** KEYWORDS: {result code definitions}\n**\n** Many SQLite functions return an integer result code from the set shown\n** here in order to indicate success or failure.\n**\n** New error codes may be added in future versions of SQLite.\n**\n** See also: [extended result code definitions]\n*/\n#define SQLITE_OK           0   /* Successful result */\n/* beginning-of-error-codes */\n#define SQLITE_ERROR        1   /* Generic error */\n#define SQLITE_INTERNAL     2   /* Internal logic error in SQLite */\n#define SQLITE_PERM         3   /* Access permission denied */\n#define SQLITE_ABORT        4   /* Callback routine requested an abort */\n#define SQLITE_BUSY         5   /* The database file is locked */\n#define SQLITE_LOCKED       6   /* A table in the database is locked */\n#define SQLITE_NOMEM        7   /* A malloc() failed */\n#define SQLITE_READONLY     8   /* Attempt to write a readonly database */\n#define SQLITE_INTERRUPT    9   /* Operation terminated by sqlite3_interrupt()*/\n#define SQLITE_IOERR       10   /* Some kind of disk I/O error occurred */\n#define SQLITE_CORRUPT     11   /* The database disk image is malformed */\n#define SQLITE_NOTFOUND    12   /* Unknown opcode in sqlite3_file_control() */\n#define SQLITE_FULL        13   /* Insertion failed because database is full */\n#define SQLITE_CANTOPEN    14   /* Unable to open the database file */\n#define SQLITE_PROTOCOL    15   /* Database lock protocol error */\n#define SQLITE_EMPTY       16   /* Internal use only */\n#define SQLITE_SCHEMA      17   /* The database schema changed */\n#define SQLITE_TOOBIG      18   /* String or BLOB exceeds size limit */\n#define SQLITE_CONSTRAINT  19   /* Abort due to constraint violation */\n#define SQLITE_MISMATCH    20   /* Data type mismatch */\n#define SQLITE_MISUSE      21   /* Library used incorrectly */\n#define SQLITE_NOLFS       22   /* Uses OS features not supported on host */\n#define SQLITE_AUTH        23   /* Authorization denied */\n#define SQLITE_FORMAT      24   /* Not used */\n#define SQLITE_RANGE       25   /* 2nd parameter to sqlite3_bind out of range */\n#define SQLITE_NOTADB      26   /* File opened that is not a database file */\n#define SQLITE_NOTICE      27   /* Notifications from sqlite3_log() */\n#define SQLITE_WARNING     28   /* Warnings from sqlite3_log() */\n#define SQLITE_ROW         100  /* sqlite3_step() has another row ready */\n#define SQLITE_DONE        101  /* sqlite3_step() has finished executing */\n/* end-of-error-codes */\n\n/*\n** CAPI3REF: Extended Result Codes\n** KEYWORDS: {extended result code definitions}\n**\n** In its default configuration, SQLite API routines return one of 30 integer\n** [result codes].  However, experience has shown that many of\n** these result codes are too coarse-grained.  They do not provide as\n** much information about problems as programmers might like.  In an effort to\n** address this, newer versions of SQLite (version 3.3.8 [dateof:3.3.8]\n** and later) include\n** support for additional result codes that provide more detailed information\n** about errors. These [extended result codes] are enabled or disabled\n** on a per database connection basis using the\n** [sqlite3_extended_result_codes()] API.  Or, the extended code for\n** the most recent error can be obtained using\n** [sqlite3_extended_errcode()].\n*/\n#define SQLITE_ERROR_MISSING_COLLSEQ   (SQLITE_ERROR | (1<<8))\n#define SQLITE_ERROR_RETRY             (SQLITE_ERROR | (2<<8))\n#define SQLITE_IOERR_READ              (SQLITE_IOERR | (1<<8))\n#define SQLITE_IOERR_SHORT_READ        (SQLITE_IOERR | (2<<8))\n#define SQLITE_IOERR_WRITE             (SQLITE_IOERR | (3<<8))\n#define SQLITE_IOERR_FSYNC             (SQLITE_IOERR | (4<<8))\n#define SQLITE_IOERR_DIR_FSYNC         (SQLITE_IOERR | (5<<8))\n#define SQLITE_IOERR_TRUNCATE          (SQLITE_IOERR | (6<<8))\n#define SQLITE_IOERR_FSTAT             (SQLITE_IOERR | (7<<8))\n#define SQLITE_IOERR_UNLOCK            (SQLITE_IOERR | (8<<8))\n#define SQLITE_IOERR_RDLOCK            (SQLITE_IOERR | (9<<8))\n#define SQLITE_IOERR_DELETE            (SQLITE_IOERR | (10<<8))\n#define SQLITE_IOERR_BLOCKED           (SQLITE_IOERR | (11<<8))\n#define SQLITE_IOERR_NOMEM             (SQLITE_IOERR | (12<<8))\n#define SQLITE_IOERR_ACCESS            (SQLITE_IOERR | (13<<8))\n#define SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8))\n#define SQLITE_IOERR_LOCK              (SQLITE_IOERR | (15<<8))\n#define SQLITE_IOERR_CLOSE             (SQLITE_IOERR | (16<<8))\n#define SQLITE_IOERR_DIR_CLOSE         (SQLITE_IOERR | (17<<8))\n#define SQLITE_IOERR_SHMOPEN           (SQLITE_IOERR | (18<<8))\n#define SQLITE_IOERR_SHMSIZE           (SQLITE_IOERR | (19<<8))\n#define SQLITE_IOERR_SHMLOCK           (SQLITE_IOERR | (20<<8))\n#define SQLITE_IOERR_SHMMAP            (SQLITE_IOERR | (21<<8))\n#define SQLITE_IOERR_SEEK              (SQLITE_IOERR | (22<<8))\n#define SQLITE_IOERR_DELETE_NOENT      (SQLITE_IOERR | (23<<8))\n#define SQLITE_IOERR_MMAP              (SQLITE_IOERR | (24<<8))\n#define SQLITE_IOERR_GETTEMPPATH       (SQLITE_IOERR | (25<<8))\n#define SQLITE_IOERR_CONVPATH          (SQLITE_IOERR | (26<<8))\n#define SQLITE_IOERR_VNODE             (SQLITE_IOERR | (27<<8))\n#define SQLITE_IOERR_AUTH              (SQLITE_IOERR | (28<<8))\n#define SQLITE_IOERR_BEGIN_ATOMIC      (SQLITE_IOERR | (29<<8))\n#define SQLITE_IOERR_COMMIT_ATOMIC     (SQLITE_IOERR | (30<<8))\n#define SQLITE_IOERR_ROLLBACK_ATOMIC   (SQLITE_IOERR | (31<<8))\n#define SQLITE_LOCKED_SHAREDCACHE      (SQLITE_LOCKED |  (1<<8))\n#define SQLITE_BUSY_RECOVERY           (SQLITE_BUSY   |  (1<<8))\n#define SQLITE_BUSY_SNAPSHOT           (SQLITE_BUSY   |  (2<<8))\n#define SQLITE_CANTOPEN_NOTEMPDIR      (SQLITE_CANTOPEN | (1<<8))\n#define SQLITE_CANTOPEN_ISDIR          (SQLITE_CANTOPEN | (2<<8))\n#define SQLITE_CANTOPEN_FULLPATH       (SQLITE_CANTOPEN | (3<<8))\n#define SQLITE_CANTOPEN_CONVPATH       (SQLITE_CANTOPEN | (4<<8))\n#define SQLITE_CORRUPT_VTAB            (SQLITE_CORRUPT | (1<<8))\n#define SQLITE_READONLY_RECOVERY       (SQLITE_READONLY | (1<<8))\n#define SQLITE_READONLY_CANTLOCK       (SQLITE_READONLY | (2<<8))\n#define SQLITE_READONLY_ROLLBACK       (SQLITE_READONLY | (3<<8))\n#define SQLITE_READONLY_DBMOVED        (SQLITE_READONLY | (4<<8))\n#define SQLITE_READONLY_CANTINIT       (SQLITE_READONLY | (5<<8))\n#define SQLITE_READONLY_DIRECTORY      (SQLITE_READONLY | (6<<8))\n#define SQLITE_ABORT_ROLLBACK          (SQLITE_ABORT | (2<<8))\n#define SQLITE_CONSTRAINT_CHECK        (SQLITE_CONSTRAINT | (1<<8))\n#define SQLITE_CONSTRAINT_COMMITHOOK   (SQLITE_CONSTRAINT | (2<<8))\n#define SQLITE_CONSTRAINT_FOREIGNKEY   (SQLITE_CONSTRAINT | (3<<8))\n#define SQLITE_CONSTRAINT_FUNCTION     (SQLITE_CONSTRAINT | (4<<8))\n#define SQLITE_CONSTRAINT_NOTNULL      (SQLITE_CONSTRAINT | (5<<8))\n#define SQLITE_CONSTRAINT_PRIMARYKEY   (SQLITE_CONSTRAINT | (6<<8))\n#define SQLITE_CONSTRAINT_TRIGGER      (SQLITE_CONSTRAINT | (7<<8))\n#define SQLITE_CONSTRAINT_UNIQUE       (SQLITE_CONSTRAINT | (8<<8))\n#define SQLITE_CONSTRAINT_VTAB         (SQLITE_CONSTRAINT | (9<<8))\n#define SQLITE_CONSTRAINT_ROWID        (SQLITE_CONSTRAINT |(10<<8))\n#define SQLITE_NOTICE_RECOVER_WAL      (SQLITE_NOTICE | (1<<8))\n#define SQLITE_NOTICE_RECOVER_ROLLBACK (SQLITE_NOTICE | (2<<8))\n#define SQLITE_WARNING_AUTOINDEX       (SQLITE_WARNING | (1<<8))\n#define SQLITE_AUTH_USER               (SQLITE_AUTH | (1<<8))\n#define SQLITE_OK_LOAD_PERMANENTLY     (SQLITE_OK | (1<<8))\n\n/*\n** CAPI3REF: Flags For File Open Operations\n**\n** These bit values are intended for use in the\n** 3rd parameter to the [sqlite3_open_v2()] interface and\n** in the 4th parameter to the [sqlite3_vfs.xOpen] method.\n*/\n#define SQLITE_OPEN_READONLY         0x00000001  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_READWRITE        0x00000002  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_CREATE           0x00000004  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_DELETEONCLOSE    0x00000008  /* VFS only */\n#define SQLITE_OPEN_EXCLUSIVE        0x00000010  /* VFS only */\n#define SQLITE_OPEN_AUTOPROXY        0x00000020  /* VFS only */\n#define SQLITE_OPEN_URI              0x00000040  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_MEMORY           0x00000080  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_MAIN_DB          0x00000100  /* VFS only */\n#define SQLITE_OPEN_TEMP_DB          0x00000200  /* VFS only */\n#define SQLITE_OPEN_TRANSIENT_DB     0x00000400  /* VFS only */\n#define SQLITE_OPEN_MAIN_JOURNAL     0x00000800  /* VFS only */\n#define SQLITE_OPEN_TEMP_JOURNAL     0x00001000  /* VFS only */\n#define SQLITE_OPEN_SUBJOURNAL       0x00002000  /* VFS only */\n#define SQLITE_OPEN_MASTER_JOURNAL   0x00004000  /* VFS only */\n#define SQLITE_OPEN_NOMUTEX          0x00008000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_FULLMUTEX        0x00010000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_SHAREDCACHE      0x00020000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_PRIVATECACHE     0x00040000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_WAL              0x00080000  /* VFS only */\n\n/* Reserved:                         0x00F00000 */\n\n/*\n** CAPI3REF: Device Characteristics\n**\n** The xDeviceCharacteristics method of the [sqlite3_io_methods]\n** object returns an integer which is a vector of these\n** bit values expressing I/O characteristics of the mass storage\n** device that holds the file that the [sqlite3_io_methods]\n** refers to.\n**\n** The SQLITE_IOCAP_ATOMIC property means that all writes of\n** any size are atomic.  The SQLITE_IOCAP_ATOMICnnn values\n** mean that writes of blocks that are nnn bytes in size and\n** are aligned to an address which is an integer multiple of\n** nnn are atomic.  The SQLITE_IOCAP_SAFE_APPEND value means\n** that when data is appended to a file, the data is appended\n** first then the size of the file is extended, never the other\n** way around.  The SQLITE_IOCAP_SEQUENTIAL property means that\n** information is written to disk in the same order as calls\n** to xWrite().  The SQLITE_IOCAP_POWERSAFE_OVERWRITE property means that\n** after reboot following a crash or power loss, the only bytes in a\n** file that were written at the application level might have changed\n** and that adjacent bytes, even bytes within the same sector are\n** guaranteed to be unchanged.  The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN\n** flag indicates that a file cannot be deleted when open.  The\n** SQLITE_IOCAP_IMMUTABLE flag indicates that the file is on\n** read-only media and cannot be changed even by processes with\n** elevated privileges.\n**\n** The SQLITE_IOCAP_BATCH_ATOMIC property means that the underlying\n** filesystem supports doing multiple write operations atomically when those\n** write operations are bracketed by [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] and\n** [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE].\n*/\n#define SQLITE_IOCAP_ATOMIC                 0x00000001\n#define SQLITE_IOCAP_ATOMIC512              0x00000002\n#define SQLITE_IOCAP_ATOMIC1K               0x00000004\n#define SQLITE_IOCAP_ATOMIC2K               0x00000008\n#define SQLITE_IOCAP_ATOMIC4K               0x00000010\n#define SQLITE_IOCAP_ATOMIC8K               0x00000020\n#define SQLITE_IOCAP_ATOMIC16K              0x00000040\n#define SQLITE_IOCAP_ATOMIC32K              0x00000080\n#define SQLITE_IOCAP_ATOMIC64K              0x00000100\n#define SQLITE_IOCAP_SAFE_APPEND            0x00000200\n#define SQLITE_IOCAP_SEQUENTIAL             0x00000400\n#define SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN  0x00000800\n#define SQLITE_IOCAP_POWERSAFE_OVERWRITE    0x00001000\n#define SQLITE_IOCAP_IMMUTABLE              0x00002000\n#define SQLITE_IOCAP_BATCH_ATOMIC           0x00004000\n\n/*\n** CAPI3REF: File Locking Levels\n**\n** SQLite uses one of these integer values as the second\n** argument to calls it makes to the xLock() and xUnlock() methods\n** of an [sqlite3_io_methods] object.\n*/\n#define SQLITE_LOCK_NONE          0\n#define SQLITE_LOCK_SHARED        1\n#define SQLITE_LOCK_RESERVED      2\n#define SQLITE_LOCK_PENDING       3\n#define SQLITE_LOCK_EXCLUSIVE     4\n\n/*\n** CAPI3REF: Synchronization Type Flags\n**\n** When SQLite invokes the xSync() method of an\n** [sqlite3_io_methods] object it uses a combination of\n** these integer values as the second argument.\n**\n** When the SQLITE_SYNC_DATAONLY flag is used, it means that the\n** sync operation only needs to flush data to mass storage.  Inode\n** information need not be flushed. If the lower four bits of the flag\n** equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics.\n** If the lower four bits equal SQLITE_SYNC_FULL, that means\n** to use Mac OS X style fullsync instead of fsync().\n**\n** Do not confuse the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags\n** with the [PRAGMA synchronous]=NORMAL and [PRAGMA synchronous]=FULL\n** settings.  The [synchronous pragma] determines when calls to the\n** xSync VFS method occur and applies uniformly across all platforms.\n** The SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags determine how\n** energetic or rigorous or forceful the sync operations are and\n** only make a difference on Mac OSX for the default SQLite code.\n** (Third-party VFS implementations might also make the distinction\n** between SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL, but among the\n** operating systems natively supported by SQLite, only Mac OSX\n** cares about the difference.)\n*/\n#define SQLITE_SYNC_NORMAL        0x00002\n#define SQLITE_SYNC_FULL          0x00003\n#define SQLITE_SYNC_DATAONLY      0x00010\n\n/*\n** CAPI3REF: OS Interface Open File Handle\n**\n** An [sqlite3_file] object represents an open file in the \n** [sqlite3_vfs | OS interface layer].  Individual OS interface\n** implementations will\n** want to subclass this object by appending additional fields\n** for their own use.  The pMethods entry is a pointer to an\n** [sqlite3_io_methods] object that defines methods for performing\n** I/O operations on the open file.\n*/\ntypedef struct sqlite3_file sqlite3_file;\nstruct sqlite3_file {\n  const struct sqlite3_io_methods *pMethods;  /* Methods for an open file */\n};\n\n/*\n** CAPI3REF: OS Interface File Virtual Methods Object\n**\n** Every file opened by the [sqlite3_vfs.xOpen] method populates an\n** [sqlite3_file] object (or, more commonly, a subclass of the\n** [sqlite3_file] object) with a pointer to an instance of this object.\n** This object defines the methods used to perform various operations\n** against the open file represented by the [sqlite3_file] object.\n**\n** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element \n** to a non-NULL pointer, then the sqlite3_io_methods.xClose method\n** may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed.  The\n** only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen]\n** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element\n** to NULL.\n**\n** The flags argument to xSync may be one of [SQLITE_SYNC_NORMAL] or\n** [SQLITE_SYNC_FULL].  The first choice is the normal fsync().\n** The second choice is a Mac OS X style fullsync.  The [SQLITE_SYNC_DATAONLY]\n** flag may be ORed in to indicate that only the data of the file\n** and not its inode needs to be synced.\n**\n** The integer values to xLock() and xUnlock() are one of\n** <ul>\n** <li> [SQLITE_LOCK_NONE],\n** <li> [SQLITE_LOCK_SHARED],\n** <li> [SQLITE_LOCK_RESERVED],\n** <li> [SQLITE_LOCK_PENDING], or\n** <li> [SQLITE_LOCK_EXCLUSIVE].\n** </ul>\n** xLock() increases the lock. xUnlock() decreases the lock.\n** The xCheckReservedLock() method checks whether any database connection,\n** either in this process or in some other process, is holding a RESERVED,\n** PENDING, or EXCLUSIVE lock on the file.  It returns true\n** if such a lock exists and false otherwise.\n**\n** The xFileControl() method is a generic interface that allows custom\n** VFS implementations to directly control an open file using the\n** [sqlite3_file_control()] interface.  The second \"op\" argument is an\n** integer opcode.  The third argument is a generic pointer intended to\n** point to a structure that may contain arguments or space in which to\n** write return values.  Potential uses for xFileControl() might be\n** functions to enable blocking locks with timeouts, to change the\n** locking strategy (for example to use dot-file locks), to inquire\n** about the status of a lock, or to break stale locks.  The SQLite\n** core reserves all opcodes less than 100 for its own use.\n** A [file control opcodes | list of opcodes] less than 100 is available.\n** Applications that define a custom xFileControl method should use opcodes\n** greater than 100 to avoid conflicts.  VFS implementations should\n** return [SQLITE_NOTFOUND] for file control opcodes that they do not\n** recognize.\n**\n** The xSectorSize() method returns the sector size of the\n** device that underlies the file.  The sector size is the\n** minimum write that can be performed without disturbing\n** other bytes in the file.  The xDeviceCharacteristics()\n** method returns a bit vector describing behaviors of the\n** underlying device:\n**\n** <ul>\n** <li> [SQLITE_IOCAP_ATOMIC]\n** <li> [SQLITE_IOCAP_ATOMIC512]\n** <li> [SQLITE_IOCAP_ATOMIC1K]\n** <li> [SQLITE_IOCAP_ATOMIC2K]\n** <li> [SQLITE_IOCAP_ATOMIC4K]\n** <li> [SQLITE_IOCAP_ATOMIC8K]\n** <li> [SQLITE_IOCAP_ATOMIC16K]\n** <li> [SQLITE_IOCAP_ATOMIC32K]\n** <li> [SQLITE_IOCAP_ATOMIC64K]\n** <li> [SQLITE_IOCAP_SAFE_APPEND]\n** <li> [SQLITE_IOCAP_SEQUENTIAL]\n** <li> [SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN]\n** <li> [SQLITE_IOCAP_POWERSAFE_OVERWRITE]\n** <li> [SQLITE_IOCAP_IMMUTABLE]\n** <li> [SQLITE_IOCAP_BATCH_ATOMIC]\n** </ul>\n**\n** The SQLITE_IOCAP_ATOMIC property means that all writes of\n** any size are atomic.  The SQLITE_IOCAP_ATOMICnnn values\n** mean that writes of blocks that are nnn bytes in size and\n** are aligned to an address which is an integer multiple of\n** nnn are atomic.  The SQLITE_IOCAP_SAFE_APPEND value means\n** that when data is appended to a file, the data is appended\n** first then the size of the file is extended, never the other\n** way around.  The SQLITE_IOCAP_SEQUENTIAL property means that\n** information is written to disk in the same order as calls\n** to xWrite().\n**\n** If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill\n** in the unread portions of the buffer with zeros.  A VFS that\n** fails to zero-fill short reads might seem to work.  However,\n** failure to zero-fill short reads will eventually lead to\n** database corruption.\n*/\ntypedef struct sqlite3_io_methods sqlite3_io_methods;\nstruct sqlite3_io_methods {\n  int iVersion;\n  int (*xClose)(sqlite3_file*);\n  int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);\n  int (*xWrite)(sqlite3_file*, const void*, int iAmt, sqlite3_int64 iOfst);\n  int (*xTruncate)(sqlite3_file*, sqlite3_int64 size);\n  int (*xSync)(sqlite3_file*, int flags);\n  int (*xFileSize)(sqlite3_file*, sqlite3_int64 *pSize);\n  int (*xLock)(sqlite3_file*, int);\n  int (*xUnlock)(sqlite3_file*, int);\n  int (*xCheckReservedLock)(sqlite3_file*, int *pResOut);\n  int (*xFileControl)(sqlite3_file*, int op, void *pArg);\n  int (*xSectorSize)(sqlite3_file*);\n  int (*xDeviceCharacteristics)(sqlite3_file*);\n  /* Methods above are valid for version 1 */\n  int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);\n  int (*xShmLock)(sqlite3_file*, int offset, int n, int flags);\n  void (*xShmBarrier)(sqlite3_file*);\n  int (*xShmUnmap)(sqlite3_file*, int deleteFlag);\n  /* Methods above are valid for version 2 */\n  int (*xFetch)(sqlite3_file*, sqlite3_int64 iOfst, int iAmt, void **pp);\n  int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p);\n  /* Methods above are valid for version 3 */\n  /* Additional methods may be added in future releases */\n};\n\n/*\n** CAPI3REF: Standard File Control Opcodes\n** KEYWORDS: {file control opcodes} {file control opcode}\n**\n** These integer constants are opcodes for the xFileControl method\n** of the [sqlite3_io_methods] object and for the [sqlite3_file_control()]\n** interface.\n**\n** <ul>\n** <li>[[SQLITE_FCNTL_LOCKSTATE]]\n** The [SQLITE_FCNTL_LOCKSTATE] opcode is used for debugging.  This\n** opcode causes the xFileControl method to write the current state of\n** the lock (one of [SQLITE_LOCK_NONE], [SQLITE_LOCK_SHARED],\n** [SQLITE_LOCK_RESERVED], [SQLITE_LOCK_PENDING], or [SQLITE_LOCK_EXCLUSIVE])\n** into an integer that the pArg argument points to. This capability\n** is used during testing and is only available when the SQLITE_TEST\n** compile-time option is used.\n**\n** <li>[[SQLITE_FCNTL_SIZE_HINT]]\n** The [SQLITE_FCNTL_SIZE_HINT] opcode is used by SQLite to give the VFS\n** layer a hint of how large the database file will grow to be during the\n** current transaction.  This hint is not guaranteed to be accurate but it\n** is often close.  The underlying VFS might choose to preallocate database\n** file space based on this hint in order to help writes to the database\n** file run faster.\n**\n** <li>[[SQLITE_FCNTL_CHUNK_SIZE]]\n** The [SQLITE_FCNTL_CHUNK_SIZE] opcode is used to request that the VFS\n** extends and truncates the database file in chunks of a size specified\n** by the user. The fourth argument to [sqlite3_file_control()] should \n** point to an integer (type int) containing the new chunk-size to use\n** for the nominated database. Allocating database file space in large\n** chunks (say 1MB at a time), may reduce file-system fragmentation and\n** improve performance on some systems.\n**\n** <li>[[SQLITE_FCNTL_FILE_POINTER]]\n** The [SQLITE_FCNTL_FILE_POINTER] opcode is used to obtain a pointer\n** to the [sqlite3_file] object associated with a particular database\n** connection.  See also [SQLITE_FCNTL_JOURNAL_POINTER].\n**\n** <li>[[SQLITE_FCNTL_JOURNAL_POINTER]]\n** The [SQLITE_FCNTL_JOURNAL_POINTER] opcode is used to obtain a pointer\n** to the [sqlite3_file] object associated with the journal file (either\n** the [rollback journal] or the [write-ahead log]) for a particular database\n** connection.  See also [SQLITE_FCNTL_FILE_POINTER].\n**\n** <li>[[SQLITE_FCNTL_SYNC_OMITTED]]\n** No longer in use.\n**\n** <li>[[SQLITE_FCNTL_SYNC]]\n** The [SQLITE_FCNTL_SYNC] opcode is generated internally by SQLite and\n** sent to the VFS immediately before the xSync method is invoked on a\n** database file descriptor. Or, if the xSync method is not invoked \n** because the user has configured SQLite with \n** [PRAGMA synchronous | PRAGMA synchronous=OFF] it is invoked in place \n** of the xSync method. In most cases, the pointer argument passed with\n** this file-control is NULL. However, if the database file is being synced\n** as part of a multi-database commit, the argument points to a nul-terminated\n** string containing the transactions master-journal file name. VFSes that \n** do not need this signal should silently ignore this opcode. Applications \n** should not call [sqlite3_file_control()] with this opcode as doing so may \n** disrupt the operation of the specialized VFSes that do require it.  \n**\n** <li>[[SQLITE_FCNTL_COMMIT_PHASETWO]]\n** The [SQLITE_FCNTL_COMMIT_PHASETWO] opcode is generated internally by SQLite\n** and sent to the VFS after a transaction has been committed immediately\n** but before the database is unlocked. VFSes that do not need this signal\n** should silently ignore this opcode. Applications should not call\n** [sqlite3_file_control()] with this opcode as doing so may disrupt the \n** operation of the specialized VFSes that do require it.  \n**\n** <li>[[SQLITE_FCNTL_WIN32_AV_RETRY]]\n** ^The [SQLITE_FCNTL_WIN32_AV_RETRY] opcode is used to configure automatic\n** retry counts and intervals for certain disk I/O operations for the\n** windows [VFS] in order to provide robustness in the presence of\n** anti-virus programs.  By default, the windows VFS will retry file read,\n** file write, and file delete operations up to 10 times, with a delay\n** of 25 milliseconds before the first retry and with the delay increasing\n** by an additional 25 milliseconds with each subsequent retry.  This\n** opcode allows these two values (10 retries and 25 milliseconds of delay)\n** to be adjusted.  The values are changed for all database connections\n** within the same process.  The argument is a pointer to an array of two\n** integers where the first integer is the new retry count and the second\n** integer is the delay.  If either integer is negative, then the setting\n** is not changed but instead the prior value of that setting is written\n** into the array entry, allowing the current retry settings to be\n** interrogated.  The zDbName parameter is ignored.\n**\n** <li>[[SQLITE_FCNTL_PERSIST_WAL]]\n** ^The [SQLITE_FCNTL_PERSIST_WAL] opcode is used to set or query the\n** persistent [WAL | Write Ahead Log] setting.  By default, the auxiliary\n** write ahead log and shared memory files used for transaction control\n** are automatically deleted when the latest connection to the database\n** closes.  Setting persistent WAL mode causes those files to persist after\n** close.  Persisting the files is useful when other processes that do not\n** have write permission on the directory containing the database file want\n** to read the database file, as the WAL and shared memory files must exist\n** in order for the database to be readable.  The fourth parameter to\n** [sqlite3_file_control()] for this opcode should be a pointer to an integer.\n** That integer is 0 to disable persistent WAL mode or 1 to enable persistent\n** WAL mode.  If the integer is -1, then it is overwritten with the current\n** WAL persistence setting.\n**\n** <li>[[SQLITE_FCNTL_POWERSAFE_OVERWRITE]]\n** ^The [SQLITE_FCNTL_POWERSAFE_OVERWRITE] opcode is used to set or query the\n** persistent \"powersafe-overwrite\" or \"PSOW\" setting.  The PSOW setting\n** determines the [SQLITE_IOCAP_POWERSAFE_OVERWRITE] bit of the\n** xDeviceCharacteristics methods. The fourth parameter to\n** [sqlite3_file_control()] for this opcode should be a pointer to an integer.\n** That integer is 0 to disable zero-damage mode or 1 to enable zero-damage\n** mode.  If the integer is -1, then it is overwritten with the current\n** zero-damage mode setting.\n**\n** <li>[[SQLITE_FCNTL_OVERWRITE]]\n** ^The [SQLITE_FCNTL_OVERWRITE] opcode is invoked by SQLite after opening\n** a write transaction to indicate that, unless it is rolled back for some\n** reason, the entire database file will be overwritten by the current \n** transaction. This is used by VACUUM operations.\n**\n** <li>[[SQLITE_FCNTL_VFSNAME]]\n** ^The [SQLITE_FCNTL_VFSNAME] opcode can be used to obtain the names of\n** all [VFSes] in the VFS stack.  The names are of all VFS shims and the\n** final bottom-level VFS are written into memory obtained from \n** [sqlite3_malloc()] and the result is stored in the char* variable\n** that the fourth parameter of [sqlite3_file_control()] points to.\n** The caller is responsible for freeing the memory when done.  As with\n** all file-control actions, there is no guarantee that this will actually\n** do anything.  Callers should initialize the char* variable to a NULL\n** pointer in case this file-control is not implemented.  This file-control\n** is intended for diagnostic use only.\n**\n** <li>[[SQLITE_FCNTL_VFS_POINTER]]\n** ^The [SQLITE_FCNTL_VFS_POINTER] opcode finds a pointer to the top-level\n** [VFSes] currently in use.  ^(The argument X in\n** sqlite3_file_control(db,SQLITE_FCNTL_VFS_POINTER,X) must be\n** of type \"[sqlite3_vfs] **\".  This opcodes will set *X\n** to a pointer to the top-level VFS.)^\n** ^When there are multiple VFS shims in the stack, this opcode finds the\n** upper-most shim only.\n**\n** <li>[[SQLITE_FCNTL_PRAGMA]]\n** ^Whenever a [PRAGMA] statement is parsed, an [SQLITE_FCNTL_PRAGMA] \n** file control is sent to the open [sqlite3_file] object corresponding\n** to the database file to which the pragma statement refers. ^The argument\n** to the [SQLITE_FCNTL_PRAGMA] file control is an array of\n** pointers to strings (char**) in which the second element of the array\n** is the name of the pragma and the third element is the argument to the\n** pragma or NULL if the pragma has no argument.  ^The handler for an\n** [SQLITE_FCNTL_PRAGMA] file control can optionally make the first element\n** of the char** argument point to a string obtained from [sqlite3_mprintf()]\n** or the equivalent and that string will become the result of the pragma or\n** the error message if the pragma fails. ^If the\n** [SQLITE_FCNTL_PRAGMA] file control returns [SQLITE_NOTFOUND], then normal \n** [PRAGMA] processing continues.  ^If the [SQLITE_FCNTL_PRAGMA]\n** file control returns [SQLITE_OK], then the parser assumes that the\n** VFS has handled the PRAGMA itself and the parser generates a no-op\n** prepared statement if result string is NULL, or that returns a copy\n** of the result string if the string is non-NULL.\n** ^If the [SQLITE_FCNTL_PRAGMA] file control returns\n** any result code other than [SQLITE_OK] or [SQLITE_NOTFOUND], that means\n** that the VFS encountered an error while handling the [PRAGMA] and the\n** compilation of the PRAGMA fails with an error.  ^The [SQLITE_FCNTL_PRAGMA]\n** file control occurs at the beginning of pragma statement analysis and so\n** it is able to override built-in [PRAGMA] statements.\n**\n** <li>[[SQLITE_FCNTL_BUSYHANDLER]]\n** ^The [SQLITE_FCNTL_BUSYHANDLER]\n** file-control may be invoked by SQLite on the database file handle\n** shortly after it is opened in order to provide a custom VFS with access\n** to the connections busy-handler callback. The argument is of type (void **)\n** - an array of two (void *) values. The first (void *) actually points\n** to a function of type (int (*)(void *)). In order to invoke the connections\n** busy-handler, this function should be invoked with the second (void *) in\n** the array as the only argument. If it returns non-zero, then the operation\n** should be retried. If it returns zero, the custom VFS should abandon the\n** current operation.\n**\n** <li>[[SQLITE_FCNTL_TEMPFILENAME]]\n** ^Application can invoke the [SQLITE_FCNTL_TEMPFILENAME] file-control\n** to have SQLite generate a\n** temporary filename using the same algorithm that is followed to generate\n** temporary filenames for TEMP tables and other internal uses.  The\n** argument should be a char** which will be filled with the filename\n** written into memory obtained from [sqlite3_malloc()].  The caller should\n** invoke [sqlite3_free()] on the result to avoid a memory leak.\n**\n** <li>[[SQLITE_FCNTL_MMAP_SIZE]]\n** The [SQLITE_FCNTL_MMAP_SIZE] file control is used to query or set the\n** maximum number of bytes that will be used for memory-mapped I/O.\n** The argument is a pointer to a value of type sqlite3_int64 that\n** is an advisory maximum number of bytes in the file to memory map.  The\n** pointer is overwritten with the old value.  The limit is not changed if\n** the value originally pointed to is negative, and so the current limit \n** can be queried by passing in a pointer to a negative number.  This\n** file-control is used internally to implement [PRAGMA mmap_size].\n**\n** <li>[[SQLITE_FCNTL_TRACE]]\n** The [SQLITE_FCNTL_TRACE] file control provides advisory information\n** to the VFS about what the higher layers of the SQLite stack are doing.\n** This file control is used by some VFS activity tracing [shims].\n** The argument is a zero-terminated string.  Higher layers in the\n** SQLite stack may generate instances of this file control if\n** the [SQLITE_USE_FCNTL_TRACE] compile-time option is enabled.\n**\n** <li>[[SQLITE_FCNTL_HAS_MOVED]]\n** The [SQLITE_FCNTL_HAS_MOVED] file control interprets its argument as a\n** pointer to an integer and it writes a boolean into that integer depending\n** on whether or not the file has been renamed, moved, or deleted since it\n** was first opened.\n**\n** <li>[[SQLITE_FCNTL_WIN32_GET_HANDLE]]\n** The [SQLITE_FCNTL_WIN32_GET_HANDLE] opcode can be used to obtain the\n** underlying native file handle associated with a file handle.  This file\n** control interprets its argument as a pointer to a native file handle and\n** writes the resulting value there.\n**\n** <li>[[SQLITE_FCNTL_WIN32_SET_HANDLE]]\n** The [SQLITE_FCNTL_WIN32_SET_HANDLE] opcode is used for debugging.  This\n** opcode causes the xFileControl method to swap the file handle with the one\n** pointed to by the pArg argument.  This capability is used during testing\n** and only needs to be supported when SQLITE_TEST is defined.\n**\n** <li>[[SQLITE_FCNTL_WAL_BLOCK]]\n** The [SQLITE_FCNTL_WAL_BLOCK] is a signal to the VFS layer that it might\n** be advantageous to block on the next WAL lock if the lock is not immediately\n** available.  The WAL subsystem issues this signal during rare\n** circumstances in order to fix a problem with priority inversion.\n** Applications should <em>not</em> use this file-control.\n**\n** <li>[[SQLITE_FCNTL_ZIPVFS]]\n** The [SQLITE_FCNTL_ZIPVFS] opcode is implemented by zipvfs only. All other\n** VFS should return SQLITE_NOTFOUND for this opcode.\n**\n** <li>[[SQLITE_FCNTL_RBU]]\n** The [SQLITE_FCNTL_RBU] opcode is implemented by the special VFS used by\n** the RBU extension only.  All other VFS should return SQLITE_NOTFOUND for\n** this opcode.  \n**\n** <li>[[SQLITE_FCNTL_BEGIN_ATOMIC_WRITE]]\n** If the [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] opcode returns SQLITE_OK, then\n** the file descriptor is placed in \"batch write mode\", which\n** means all subsequent write operations will be deferred and done\n** atomically at the next [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE].  Systems\n** that do not support batch atomic writes will return SQLITE_NOTFOUND.\n** ^Following a successful SQLITE_FCNTL_BEGIN_ATOMIC_WRITE and prior to\n** the closing [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE] or\n** [SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE], SQLite will make\n** no VFS interface calls on the same [sqlite3_file] file descriptor\n** except for calls to the xWrite method and the xFileControl method\n** with [SQLITE_FCNTL_SIZE_HINT].\n**\n** <li>[[SQLITE_FCNTL_COMMIT_ATOMIC_WRITE]]\n** The [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE] opcode causes all write\n** operations since the previous successful call to \n** [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] to be performed atomically.\n** This file control returns [SQLITE_OK] if and only if the writes were\n** all performed successfully and have been committed to persistent storage.\n** ^Regardless of whether or not it is successful, this file control takes\n** the file descriptor out of batch write mode so that all subsequent\n** write operations are independent.\n** ^SQLite will never invoke SQLITE_FCNTL_COMMIT_ATOMIC_WRITE without\n** a prior successful call to [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE].\n**\n** <li>[[SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE]]\n** The [SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE] opcode causes all write\n** operations since the previous successful call to \n** [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] to be rolled back.\n** ^This file control takes the file descriptor out of batch write mode\n** so that all subsequent write operations are independent.\n** ^SQLite will never invoke SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE without\n** a prior successful call to [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE].\n** </ul>\n*/\n#define SQLITE_FCNTL_LOCKSTATE               1\n#define SQLITE_FCNTL_GET_LOCKPROXYFILE       2\n#define SQLITE_FCNTL_SET_LOCKPROXYFILE       3\n#define SQLITE_FCNTL_LAST_ERRNO              4\n#define SQLITE_FCNTL_SIZE_HINT               5\n#define SQLITE_FCNTL_CHUNK_SIZE              6\n#define SQLITE_FCNTL_FILE_POINTER            7\n#define SQLITE_FCNTL_SYNC_OMITTED            8\n#define SQLITE_FCNTL_WIN32_AV_RETRY          9\n#define SQLITE_FCNTL_PERSIST_WAL            10\n#define SQLITE_FCNTL_OVERWRITE              11\n#define SQLITE_FCNTL_VFSNAME                12\n#define SQLITE_FCNTL_POWERSAFE_OVERWRITE    13\n#define SQLITE_FCNTL_PRAGMA                 14\n#define SQLITE_FCNTL_BUSYHANDLER            15\n#define SQLITE_FCNTL_TEMPFILENAME           16\n#define SQLITE_FCNTL_MMAP_SIZE              18\n#define SQLITE_FCNTL_TRACE                  19\n#define SQLITE_FCNTL_HAS_MOVED              20\n#define SQLITE_FCNTL_SYNC                   21\n#define SQLITE_FCNTL_COMMIT_PHASETWO        22\n#define SQLITE_FCNTL_WIN32_SET_HANDLE       23\n#define SQLITE_FCNTL_WAL_BLOCK              24\n#define SQLITE_FCNTL_ZIPVFS                 25\n#define SQLITE_FCNTL_RBU                    26\n#define SQLITE_FCNTL_VFS_POINTER            27\n#define SQLITE_FCNTL_JOURNAL_POINTER        28\n#define SQLITE_FCNTL_WIN32_GET_HANDLE       29\n#define SQLITE_FCNTL_PDB                    30\n#define SQLITE_FCNTL_BEGIN_ATOMIC_WRITE     31\n#define SQLITE_FCNTL_COMMIT_ATOMIC_WRITE    32\n#define SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE  33\n\n/* deprecated names */\n#define SQLITE_GET_LOCKPROXYFILE      SQLITE_FCNTL_GET_LOCKPROXYFILE\n#define SQLITE_SET_LOCKPROXYFILE      SQLITE_FCNTL_SET_LOCKPROXYFILE\n#define SQLITE_LAST_ERRNO             SQLITE_FCNTL_LAST_ERRNO\n\n\n/*\n** CAPI3REF: Mutex Handle\n**\n** The mutex module within SQLite defines [sqlite3_mutex] to be an\n** abstract type for a mutex object.  The SQLite core never looks\n** at the internal representation of an [sqlite3_mutex].  It only\n** deals with pointers to the [sqlite3_mutex] object.\n**\n** Mutexes are created using [sqlite3_mutex_alloc()].\n*/\ntypedef struct sqlite3_mutex sqlite3_mutex;\n\n/*\n** CAPI3REF: Loadable Extension Thunk\n**\n** A pointer to the opaque sqlite3_api_routines structure is passed as\n** the third parameter to entry points of [loadable extensions].  This\n** structure must be typedefed in order to work around compiler warnings\n** on some platforms.\n*/\ntypedef struct sqlite3_api_routines sqlite3_api_routines;\n\n/*\n** CAPI3REF: OS Interface Object\n**\n** An instance of the sqlite3_vfs object defines the interface between\n** the SQLite core and the underlying operating system.  The \"vfs\"\n** in the name of the object stands for \"virtual file system\".  See\n** the [VFS | VFS documentation] for further information.\n**\n** The VFS interface is sometimes extended by adding new methods onto\n** the end.  Each time such an extension occurs, the iVersion field\n** is incremented.  The iVersion value started out as 1 in\n** SQLite [version 3.5.0] on [dateof:3.5.0], then increased to 2\n** with SQLite [version 3.7.0] on [dateof:3.7.0], and then increased\n** to 3 with SQLite [version 3.7.6] on [dateof:3.7.6].  Additional fields\n** may be appended to the sqlite3_vfs object and the iVersion value\n** may increase again in future versions of SQLite.\n** Note that the structure\n** of the sqlite3_vfs object changes in the transition from\n** SQLite [version 3.5.9] to [version 3.6.0] on [dateof:3.6.0]\n** and yet the iVersion field was not modified.\n**\n** The szOsFile field is the size of the subclassed [sqlite3_file]\n** structure used by this VFS.  mxPathname is the maximum length of\n** a pathname in this VFS.\n**\n** Registered sqlite3_vfs objects are kept on a linked list formed by\n** the pNext pointer.  The [sqlite3_vfs_register()]\n** and [sqlite3_vfs_unregister()] interfaces manage this list\n** in a thread-safe way.  The [sqlite3_vfs_find()] interface\n** searches the list.  Neither the application code nor the VFS\n** implementation should use the pNext pointer.\n**\n** The pNext field is the only field in the sqlite3_vfs\n** structure that SQLite will ever modify.  SQLite will only access\n** or modify this field while holding a particular static mutex.\n** The application should never modify anything within the sqlite3_vfs\n** object once the object has been registered.\n**\n** The zName field holds the name of the VFS module.  The name must\n** be unique across all VFS modules.\n**\n** [[sqlite3_vfs.xOpen]]\n** ^SQLite guarantees that the zFilename parameter to xOpen\n** is either a NULL pointer or string obtained\n** from xFullPathname() with an optional suffix added.\n** ^If a suffix is added to the zFilename parameter, it will\n** consist of a single \"-\" character followed by no more than\n** 11 alphanumeric and/or \"-\" characters.\n** ^SQLite further guarantees that\n** the string will be valid and unchanged until xClose() is\n** called. Because of the previous sentence,\n** the [sqlite3_file] can safely store a pointer to the\n** filename if it needs to remember the filename for some reason.\n** If the zFilename parameter to xOpen is a NULL pointer then xOpen\n** must invent its own temporary name for the file.  ^Whenever the \n** xFilename parameter is NULL it will also be the case that the\n** flags parameter will include [SQLITE_OPEN_DELETEONCLOSE].\n**\n** The flags argument to xOpen() includes all bits set in\n** the flags argument to [sqlite3_open_v2()].  Or if [sqlite3_open()]\n** or [sqlite3_open16()] is used, then flags includes at least\n** [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]. \n** If xOpen() opens a file read-only then it sets *pOutFlags to\n** include [SQLITE_OPEN_READONLY].  Other bits in *pOutFlags may be set.\n**\n** ^(SQLite will also add one of the following flags to the xOpen()\n** call, depending on the object being opened:\n**\n** <ul>\n** <li>  [SQLITE_OPEN_MAIN_DB]\n** <li>  [SQLITE_OPEN_MAIN_JOURNAL]\n** <li>  [SQLITE_OPEN_TEMP_DB]\n** <li>  [SQLITE_OPEN_TEMP_JOURNAL]\n** <li>  [SQLITE_OPEN_TRANSIENT_DB]\n** <li>  [SQLITE_OPEN_SUBJOURNAL]\n** <li>  [SQLITE_OPEN_MASTER_JOURNAL]\n** <li>  [SQLITE_OPEN_WAL]\n** </ul>)^\n**\n** The file I/O implementation can use the object type flags to\n** change the way it deals with files.  For example, an application\n** that does not care about crash recovery or rollback might make\n** the open of a journal file a no-op.  Writes to this journal would\n** also be no-ops, and any attempt to read the journal would return\n** SQLITE_IOERR.  Or the implementation might recognize that a database\n** file will be doing page-aligned sector reads and writes in a random\n** order and set up its I/O subsystem accordingly.\n**\n** SQLite might also add one of the following flags to the xOpen method:\n**\n** <ul>\n** <li> [SQLITE_OPEN_DELETEONCLOSE]\n** <li> [SQLITE_OPEN_EXCLUSIVE]\n** </ul>\n**\n** The [SQLITE_OPEN_DELETEONCLOSE] flag means the file should be\n** deleted when it is closed.  ^The [SQLITE_OPEN_DELETEONCLOSE]\n** will be set for TEMP databases and their journals, transient\n** databases, and subjournals.\n**\n** ^The [SQLITE_OPEN_EXCLUSIVE] flag is always used in conjunction\n** with the [SQLITE_OPEN_CREATE] flag, which are both directly\n** analogous to the O_EXCL and O_CREAT flags of the POSIX open()\n** API.  The SQLITE_OPEN_EXCLUSIVE flag, when paired with the \n** SQLITE_OPEN_CREATE, is used to indicate that file should always\n** be created, and that it is an error if it already exists.\n** It is <i>not</i> used to indicate the file should be opened \n** for exclusive access.\n**\n** ^At least szOsFile bytes of memory are allocated by SQLite\n** to hold the  [sqlite3_file] structure passed as the third\n** argument to xOpen.  The xOpen method does not have to\n** allocate the structure; it should just fill it in.  Note that\n** the xOpen method must set the sqlite3_file.pMethods to either\n** a valid [sqlite3_io_methods] object or to NULL.  xOpen must do\n** this even if the open fails.  SQLite expects that the sqlite3_file.pMethods\n** element will be valid after xOpen returns regardless of the success\n** or failure of the xOpen call.\n**\n** [[sqlite3_vfs.xAccess]]\n** ^The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS]\n** to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to\n** test whether a file is readable and writable, or [SQLITE_ACCESS_READ]\n** to test whether a file is at least readable.   The file can be a\n** directory.\n**\n** ^SQLite will always allocate at least mxPathname+1 bytes for the\n** output buffer xFullPathname.  The exact size of the output buffer\n** is also passed as a parameter to both  methods. If the output buffer\n** is not large enough, [SQLITE_CANTOPEN] should be returned. Since this is\n** handled as a fatal error by SQLite, vfs implementations should endeavor\n** to prevent this by setting mxPathname to a sufficiently large value.\n**\n** The xRandomness(), xSleep(), xCurrentTime(), and xCurrentTimeInt64()\n** interfaces are not strictly a part of the filesystem, but they are\n** included in the VFS structure for completeness.\n** The xRandomness() function attempts to return nBytes bytes\n** of good-quality randomness into zOut.  The return value is\n** the actual number of bytes of randomness obtained.\n** The xSleep() method causes the calling thread to sleep for at\n** least the number of microseconds given.  ^The xCurrentTime()\n** method returns a Julian Day Number for the current date and time as\n** a floating point value.\n** ^The xCurrentTimeInt64() method returns, as an integer, the Julian\n** Day Number multiplied by 86400000 (the number of milliseconds in \n** a 24-hour day).  \n** ^SQLite will use the xCurrentTimeInt64() method to get the current\n** date and time if that method is available (if iVersion is 2 or \n** greater and the function pointer is not NULL) and will fall back\n** to xCurrentTime() if xCurrentTimeInt64() is unavailable.\n**\n** ^The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces\n** are not used by the SQLite core.  These optional interfaces are provided\n** by some VFSes to facilitate testing of the VFS code. By overriding \n** system calls with functions under its control, a test program can\n** simulate faults and error conditions that would otherwise be difficult\n** or impossible to induce.  The set of system calls that can be overridden\n** varies from one VFS to another, and from one version of the same VFS to the\n** next.  Applications that use these interfaces must be prepared for any\n** or all of these interfaces to be NULL or for their behavior to change\n** from one release to the next.  Applications must not attempt to access\n** any of these methods if the iVersion of the VFS is less than 3.\n*/\ntypedef struct sqlite3_vfs sqlite3_vfs;\ntypedef void (*sqlite3_syscall_ptr)(void);\nstruct sqlite3_vfs {\n  int iVersion;            /* Structure version number (currently 3) */\n  int szOsFile;            /* Size of subclassed sqlite3_file */\n  int mxPathname;          /* Maximum file pathname length */\n  sqlite3_vfs *pNext;      /* Next registered VFS */\n  const char *zName;       /* Name of this virtual file system */\n  void *pAppData;          /* Pointer to application-specific data */\n  int (*xOpen)(sqlite3_vfs*, const char *zName, sqlite3_file*,\n               int flags, int *pOutFlags);\n  int (*xDelete)(sqlite3_vfs*, const char *zName, int syncDir);\n  int (*xAccess)(sqlite3_vfs*, const char *zName, int flags, int *pResOut);\n  int (*xFullPathname)(sqlite3_vfs*, const char *zName, int nOut, char *zOut);\n  void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);\n  void (*xDlError)(sqlite3_vfs*, int nByte, char *zErrMsg);\n  void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);\n  void (*xDlClose)(sqlite3_vfs*, void*);\n  int (*xRandomness)(sqlite3_vfs*, int nByte, char *zOut);\n  int (*xSleep)(sqlite3_vfs*, int microseconds);\n  int (*xCurrentTime)(sqlite3_vfs*, double*);\n  int (*xGetLastError)(sqlite3_vfs*, int, char *);\n  /*\n  ** The methods above are in version 1 of the sqlite_vfs object\n  ** definition.  Those that follow are added in version 2 or later\n  */\n  int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);\n  /*\n  ** The methods above are in versions 1 and 2 of the sqlite_vfs object.\n  ** Those below are for version 3 and greater.\n  */\n  int (*xSetSystemCall)(sqlite3_vfs*, const char *zName, sqlite3_syscall_ptr);\n  sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*, const char *zName);\n  const char *(*xNextSystemCall)(sqlite3_vfs*, const char *zName);\n  /*\n  ** The methods above are in versions 1 through 3 of the sqlite_vfs object.\n  ** New fields may be appended in future versions.  The iVersion\n  ** value will increment whenever this happens. \n  */\n};\n\n/*\n** CAPI3REF: Flags for the xAccess VFS method\n**\n** These integer constants can be used as the third parameter to\n** the xAccess method of an [sqlite3_vfs] object.  They determine\n** what kind of permissions the xAccess method is looking for.\n** With SQLITE_ACCESS_EXISTS, the xAccess method\n** simply checks whether the file exists.\n** With SQLITE_ACCESS_READWRITE, the xAccess method\n** checks whether the named directory is both readable and writable\n** (in other words, if files can be added, removed, and renamed within\n** the directory).\n** The SQLITE_ACCESS_READWRITE constant is currently used only by the\n** [temp_store_directory pragma], though this could change in a future\n** release of SQLite.\n** With SQLITE_ACCESS_READ, the xAccess method\n** checks whether the file is readable.  The SQLITE_ACCESS_READ constant is\n** currently unused, though it might be used in a future release of\n** SQLite.\n*/\n#define SQLITE_ACCESS_EXISTS    0\n#define SQLITE_ACCESS_READWRITE 1   /* Used by PRAGMA temp_store_directory */\n#define SQLITE_ACCESS_READ      2   /* Unused */\n\n/*\n** CAPI3REF: Flags for the xShmLock VFS method\n**\n** These integer constants define the various locking operations\n** allowed by the xShmLock method of [sqlite3_io_methods].  The\n** following are the only legal combinations of flags to the\n** xShmLock method:\n**\n** <ul>\n** <li>  SQLITE_SHM_LOCK | SQLITE_SHM_SHARED\n** <li>  SQLITE_SHM_LOCK | SQLITE_SHM_EXCLUSIVE\n** <li>  SQLITE_SHM_UNLOCK | SQLITE_SHM_SHARED\n** <li>  SQLITE_SHM_UNLOCK | SQLITE_SHM_EXCLUSIVE\n** </ul>\n**\n** When unlocking, the same SHARED or EXCLUSIVE flag must be supplied as\n** was given on the corresponding lock.  \n**\n** The xShmLock method can transition between unlocked and SHARED or\n** between unlocked and EXCLUSIVE.  It cannot transition between SHARED\n** and EXCLUSIVE.\n*/\n#define SQLITE_SHM_UNLOCK       1\n#define SQLITE_SHM_LOCK         2\n#define SQLITE_SHM_SHARED       4\n#define SQLITE_SHM_EXCLUSIVE    8\n\n/*\n** CAPI3REF: Maximum xShmLock index\n**\n** The xShmLock method on [sqlite3_io_methods] may use values\n** between 0 and this upper bound as its \"offset\" argument.\n** The SQLite core will never attempt to acquire or release a\n** lock outside of this range\n*/\n#define SQLITE_SHM_NLOCK        8\n\n\n/*\n** CAPI3REF: Initialize The SQLite Library\n**\n** ^The sqlite3_initialize() routine initializes the\n** SQLite library.  ^The sqlite3_shutdown() routine\n** deallocates any resources that were allocated by sqlite3_initialize().\n** These routines are designed to aid in process initialization and\n** shutdown on embedded systems.  Workstation applications using\n** SQLite normally do not need to invoke either of these routines.\n**\n** A call to sqlite3_initialize() is an \"effective\" call if it is\n** the first time sqlite3_initialize() is invoked during the lifetime of\n** the process, or if it is the first time sqlite3_initialize() is invoked\n** following a call to sqlite3_shutdown().  ^(Only an effective call\n** of sqlite3_initialize() does any initialization.  All other calls\n** are harmless no-ops.)^\n**\n** A call to sqlite3_shutdown() is an \"effective\" call if it is the first\n** call to sqlite3_shutdown() since the last sqlite3_initialize().  ^(Only\n** an effective call to sqlite3_shutdown() does any deinitialization.\n** All other valid calls to sqlite3_shutdown() are harmless no-ops.)^\n**\n** The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown()\n** is not.  The sqlite3_shutdown() interface must only be called from a\n** single thread.  All open [database connections] must be closed and all\n** other SQLite resources must be deallocated prior to invoking\n** sqlite3_shutdown().\n**\n** Among other things, ^sqlite3_initialize() will invoke\n** sqlite3_os_init().  Similarly, ^sqlite3_shutdown()\n** will invoke sqlite3_os_end().\n**\n** ^The sqlite3_initialize() routine returns [SQLITE_OK] on success.\n** ^If for some reason, sqlite3_initialize() is unable to initialize\n** the library (perhaps it is unable to allocate a needed resource such\n** as a mutex) it returns an [error code] other than [SQLITE_OK].\n**\n** ^The sqlite3_initialize() routine is called internally by many other\n** SQLite interfaces so that an application usually does not need to\n** invoke sqlite3_initialize() directly.  For example, [sqlite3_open()]\n** calls sqlite3_initialize() so the SQLite library will be automatically\n** initialized when [sqlite3_open()] is called if it has not be initialized\n** already.  ^However, if SQLite is compiled with the [SQLITE_OMIT_AUTOINIT]\n** compile-time option, then the automatic calls to sqlite3_initialize()\n** are omitted and the application must call sqlite3_initialize() directly\n** prior to using any other SQLite interface.  For maximum portability,\n** it is recommended that applications always invoke sqlite3_initialize()\n** directly prior to using any other SQLite interface.  Future releases\n** of SQLite may require this.  In other words, the behavior exhibited\n** when SQLite is compiled with [SQLITE_OMIT_AUTOINIT] might become the\n** default behavior in some future release of SQLite.\n**\n** The sqlite3_os_init() routine does operating-system specific\n** initialization of the SQLite library.  The sqlite3_os_end()\n** routine undoes the effect of sqlite3_os_init().  Typical tasks\n** performed by these routines include allocation or deallocation\n** of static resources, initialization of global variables,\n** setting up a default [sqlite3_vfs] module, or setting up\n** a default configuration using [sqlite3_config()].\n**\n** The application should never invoke either sqlite3_os_init()\n** or sqlite3_os_end() directly.  The application should only invoke\n** sqlite3_initialize() and sqlite3_shutdown().  The sqlite3_os_init()\n** interface is called automatically by sqlite3_initialize() and\n** sqlite3_os_end() is called by sqlite3_shutdown().  Appropriate\n** implementations for sqlite3_os_init() and sqlite3_os_end()\n** are built into SQLite when it is compiled for Unix, Windows, or OS/2.\n** When [custom builds | built for other platforms]\n** (using the [SQLITE_OS_OTHER=1] compile-time\n** option) the application must supply a suitable implementation for\n** sqlite3_os_init() and sqlite3_os_end().  An application-supplied\n** implementation of sqlite3_os_init() or sqlite3_os_end()\n** must return [SQLITE_OK] on success and some other [error code] upon\n** failure.\n*/\nSQLITE_API int sqlite3_initialize(void);\nSQLITE_API int sqlite3_shutdown(void);\nSQLITE_API int sqlite3_os_init(void);\nSQLITE_API int sqlite3_os_end(void);\n\n/*\n** CAPI3REF: Configuring The SQLite Library\n**\n** The sqlite3_config() interface is used to make global configuration\n** changes to SQLite in order to tune SQLite to the specific needs of\n** the application.  The default configuration is recommended for most\n** applications and so this routine is usually not necessary.  It is\n** provided to support rare applications with unusual needs.\n**\n** <b>The sqlite3_config() interface is not threadsafe. The application\n** must ensure that no other SQLite interfaces are invoked by other\n** threads while sqlite3_config() is running.</b>\n**\n** The sqlite3_config() interface\n** may only be invoked prior to library initialization using\n** [sqlite3_initialize()] or after shutdown by [sqlite3_shutdown()].\n** ^If sqlite3_config() is called after [sqlite3_initialize()] and before\n** [sqlite3_shutdown()] then it will return SQLITE_MISUSE.\n** Note, however, that ^sqlite3_config() can be called as part of the\n** implementation of an application-defined [sqlite3_os_init()].\n**\n** The first argument to sqlite3_config() is an integer\n** [configuration option] that determines\n** what property of SQLite is to be configured.  Subsequent arguments\n** vary depending on the [configuration option]\n** in the first argument.\n**\n** ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK].\n** ^If the option is unknown or SQLite is unable to set the option\n** then this routine returns a non-zero [error code].\n*/\nSQLITE_API int sqlite3_config(int, ...);\n\n/*\n** CAPI3REF: Configure database connections\n** METHOD: sqlite3\n**\n** The sqlite3_db_config() interface is used to make configuration\n** changes to a [database connection].  The interface is similar to\n** [sqlite3_config()] except that the changes apply to a single\n** [database connection] (specified in the first argument).\n**\n** The second argument to sqlite3_db_config(D,V,...)  is the\n** [SQLITE_DBCONFIG_LOOKASIDE | configuration verb] - an integer code \n** that indicates what aspect of the [database connection] is being configured.\n** Subsequent arguments vary depending on the configuration verb.\n**\n** ^Calls to sqlite3_db_config() return SQLITE_OK if and only if\n** the call is considered successful.\n*/\nSQLITE_API int sqlite3_db_config(sqlite3*, int op, ...);\n\n/*\n** CAPI3REF: Memory Allocation Routines\n**\n** An instance of this object defines the interface between SQLite\n** and low-level memory allocation routines.\n**\n** This object is used in only one place in the SQLite interface.\n** A pointer to an instance of this object is the argument to\n** [sqlite3_config()] when the configuration option is\n** [SQLITE_CONFIG_MALLOC] or [SQLITE_CONFIG_GETMALLOC].  \n** By creating an instance of this object\n** and passing it to [sqlite3_config]([SQLITE_CONFIG_MALLOC])\n** during configuration, an application can specify an alternative\n** memory allocation subsystem for SQLite to use for all of its\n** dynamic memory needs.\n**\n** Note that SQLite comes with several [built-in memory allocators]\n** that are perfectly adequate for the overwhelming majority of applications\n** and that this object is only useful to a tiny minority of applications\n** with specialized memory allocation requirements.  This object is\n** also used during testing of SQLite in order to specify an alternative\n** memory allocator that simulates memory out-of-memory conditions in\n** order to verify that SQLite recovers gracefully from such\n** conditions.\n**\n** The xMalloc, xRealloc, and xFree methods must work like the\n** malloc(), realloc() and free() functions from the standard C library.\n** ^SQLite guarantees that the second argument to\n** xRealloc is always a value returned by a prior call to xRoundup.\n**\n** xSize should return the allocated size of a memory allocation\n** previously obtained from xMalloc or xRealloc.  The allocated size\n** is always at least as big as the requested size but may be larger.\n**\n** The xRoundup method returns what would be the allocated size of\n** a memory allocation given a particular requested size.  Most memory\n** allocators round up memory allocations at least to the next multiple\n** of 8.  Some allocators round up to a larger multiple or to a power of 2.\n** Every memory allocation request coming in through [sqlite3_malloc()]\n** or [sqlite3_realloc()] first calls xRoundup.  If xRoundup returns 0, \n** that causes the corresponding memory allocation to fail.\n**\n** The xInit method initializes the memory allocator.  For example,\n** it might allocate any require mutexes or initialize internal data\n** structures.  The xShutdown method is invoked (indirectly) by\n** [sqlite3_shutdown()] and should deallocate any resources acquired\n** by xInit.  The pAppData pointer is used as the only parameter to\n** xInit and xShutdown.\n**\n** SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes\n** the xInit method, so the xInit method need not be threadsafe.  The\n** xShutdown method is only called from [sqlite3_shutdown()] so it does\n** not need to be threadsafe either.  For all other methods, SQLite\n** holds the [SQLITE_MUTEX_STATIC_MEM] mutex as long as the\n** [SQLITE_CONFIG_MEMSTATUS] configuration option is turned on (which\n** it is by default) and so the methods are automatically serialized.\n** However, if [SQLITE_CONFIG_MEMSTATUS] is disabled, then the other\n** methods must be threadsafe or else make their own arrangements for\n** serialization.\n**\n** SQLite will never invoke xInit() more than once without an intervening\n** call to xShutdown().\n*/\ntypedef struct sqlite3_mem_methods sqlite3_mem_methods;\nstruct sqlite3_mem_methods {\n  void *(*xMalloc)(int);         /* Memory allocation function */\n  void (*xFree)(void*);          /* Free a prior allocation */\n  void *(*xRealloc)(void*,int);  /* Resize an allocation */\n  int (*xSize)(void*);           /* Return the size of an allocation */\n  int (*xRoundup)(int);          /* Round up request size to allocation size */\n  int (*xInit)(void*);           /* Initialize the memory allocator */\n  void (*xShutdown)(void*);      /* Deinitialize the memory allocator */\n  void *pAppData;                /* Argument to xInit() and xShutdown() */\n};\n\n/*\n** CAPI3REF: Configuration Options\n** KEYWORDS: {configuration option}\n**\n** These constants are the available integer configuration options that\n** can be passed as the first argument to the [sqlite3_config()] interface.\n**\n** New configuration options may be added in future releases of SQLite.\n** Existing configuration options might be discontinued.  Applications\n** should check the return code from [sqlite3_config()] to make sure that\n** the call worked.  The [sqlite3_config()] interface will return a\n** non-zero [error code] if a discontinued or unsupported configuration option\n** is invoked.\n**\n** <dl>\n** [[SQLITE_CONFIG_SINGLETHREAD]] <dt>SQLITE_CONFIG_SINGLETHREAD</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Single-thread.  In other words, it disables\n** all mutexing and puts SQLite into a mode where it can only be used\n** by a single thread.   ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to change the [threading mode] from its default\n** value of Single-thread and so [sqlite3_config()] will return \n** [SQLITE_ERROR] if called with the SQLITE_CONFIG_SINGLETHREAD\n** configuration option.</dd>\n**\n** [[SQLITE_CONFIG_MULTITHREAD]] <dt>SQLITE_CONFIG_MULTITHREAD</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Multi-thread.  In other words, it disables\n** mutexing on [database connection] and [prepared statement] objects.\n** The application is responsible for serializing access to\n** [database connections] and [prepared statements].  But other mutexes\n** are enabled so that SQLite will be safe to use in a multi-threaded\n** environment as long as no two threads attempt to use the same\n** [database connection] at the same time.  ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to set the Multi-thread [threading mode] and\n** [sqlite3_config()] will return [SQLITE_ERROR] if called with the\n** SQLITE_CONFIG_MULTITHREAD configuration option.</dd>\n**\n** [[SQLITE_CONFIG_SERIALIZED]] <dt>SQLITE_CONFIG_SERIALIZED</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Serialized. In other words, this option enables\n** all mutexes including the recursive\n** mutexes on [database connection] and [prepared statement] objects.\n** In this mode (which is the default when SQLite is compiled with\n** [SQLITE_THREADSAFE=1]) the SQLite library will itself serialize access\n** to [database connections] and [prepared statements] so that the\n** application is free to use the same [database connection] or the\n** same [prepared statement] in different threads at the same time.\n** ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to set the Serialized [threading mode] and\n** [sqlite3_config()] will return [SQLITE_ERROR] if called with the\n** SQLITE_CONFIG_SERIALIZED configuration option.</dd>\n**\n** [[SQLITE_CONFIG_MALLOC]] <dt>SQLITE_CONFIG_MALLOC</dt>\n** <dd> ^(The SQLITE_CONFIG_MALLOC option takes a single argument which is \n** a pointer to an instance of the [sqlite3_mem_methods] structure.\n** The argument specifies\n** alternative low-level memory allocation routines to be used in place of\n** the memory allocation routines built into SQLite.)^ ^SQLite makes\n** its own private copy of the content of the [sqlite3_mem_methods] structure\n** before the [sqlite3_config()] call returns.</dd>\n**\n** [[SQLITE_CONFIG_GETMALLOC]] <dt>SQLITE_CONFIG_GETMALLOC</dt>\n** <dd> ^(The SQLITE_CONFIG_GETMALLOC option takes a single argument which\n** is a pointer to an instance of the [sqlite3_mem_methods] structure.\n** The [sqlite3_mem_methods]\n** structure is filled with the currently defined memory allocation routines.)^\n** This option can be used to overload the default memory allocation\n** routines with a wrapper that simulations memory allocation failure or\n** tracks memory usage, for example. </dd>\n**\n** [[SQLITE_CONFIG_SMALL_MALLOC]] <dt>SQLITE_CONFIG_SMALL_MALLOC</dt>\n** <dd> ^The SQLITE_CONFIG_SMALL_MALLOC option takes single argument of\n** type int, interpreted as a boolean, which if true provides a hint to\n** SQLite that it should avoid large memory allocations if possible.\n** SQLite will run faster if it is free to make large memory allocations,\n** but some application might prefer to run slower in exchange for\n** guarantees about memory fragmentation that are possible if large\n** allocations are avoided.  This hint is normally off.\n** </dd>\n**\n** [[SQLITE_CONFIG_MEMSTATUS]] <dt>SQLITE_CONFIG_MEMSTATUS</dt>\n** <dd> ^The SQLITE_CONFIG_MEMSTATUS option takes single argument of type int,\n** interpreted as a boolean, which enables or disables the collection of\n** memory allocation statistics. ^(When memory allocation statistics are\n** disabled, the following SQLite interfaces become non-operational:\n**   <ul>\n**   <li> [sqlite3_memory_used()]\n**   <li> [sqlite3_memory_highwater()]\n**   <li> [sqlite3_soft_heap_limit64()]\n**   <li> [sqlite3_status64()]\n**   </ul>)^\n** ^Memory allocation statistics are enabled by default unless SQLite is\n** compiled with [SQLITE_DEFAULT_MEMSTATUS]=0 in which case memory\n** allocation statistics are disabled by default.\n** </dd>\n**\n** [[SQLITE_CONFIG_SCRATCH]] <dt>SQLITE_CONFIG_SCRATCH</dt>\n** <dd> The SQLITE_CONFIG_SCRATCH option is no longer used.\n** </dd>\n**\n** [[SQLITE_CONFIG_PAGECACHE]] <dt>SQLITE_CONFIG_PAGECACHE</dt>\n** <dd> ^The SQLITE_CONFIG_PAGECACHE option specifies a memory pool\n** that SQLite can use for the database page cache with the default page\n** cache implementation.  \n** This configuration option is a no-op if an application-define page\n** cache implementation is loaded using the [SQLITE_CONFIG_PCACHE2].\n** ^There are three arguments to SQLITE_CONFIG_PAGECACHE: A pointer to\n** 8-byte aligned memory (pMem), the size of each page cache line (sz),\n** and the number of cache lines (N).\n** The sz argument should be the size of the largest database page\n** (a power of two between 512 and 65536) plus some extra bytes for each\n** page header.  ^The number of extra bytes needed by the page header\n** can be determined using [SQLITE_CONFIG_PCACHE_HDRSZ].\n** ^It is harmless, apart from the wasted memory,\n** for the sz parameter to be larger than necessary.  The pMem\n** argument must be either a NULL pointer or a pointer to an 8-byte\n** aligned block of memory of at least sz*N bytes, otherwise\n** subsequent behavior is undefined.\n** ^When pMem is not NULL, SQLite will strive to use the memory provided\n** to satisfy page cache needs, falling back to [sqlite3_malloc()] if\n** a page cache line is larger than sz bytes or if all of the pMem buffer\n** is exhausted.\n** ^If pMem is NULL and N is non-zero, then each database connection\n** does an initial bulk allocation for page cache memory\n** from [sqlite3_malloc()] sufficient for N cache lines if N is positive or\n** of -1024*N bytes if N is negative, . ^If additional\n** page cache memory is needed beyond what is provided by the initial\n** allocation, then SQLite goes to [sqlite3_malloc()] separately for each\n** additional cache line. </dd>\n**\n** [[SQLITE_CONFIG_HEAP]] <dt>SQLITE_CONFIG_HEAP</dt>\n** <dd> ^The SQLITE_CONFIG_HEAP option specifies a static memory buffer \n** that SQLite will use for all of its dynamic memory allocation needs\n** beyond those provided for by [SQLITE_CONFIG_PAGECACHE].\n** ^The SQLITE_CONFIG_HEAP option is only available if SQLite is compiled\n** with either [SQLITE_ENABLE_MEMSYS3] or [SQLITE_ENABLE_MEMSYS5] and returns\n** [SQLITE_ERROR] if invoked otherwise.\n** ^There are three arguments to SQLITE_CONFIG_HEAP:\n** An 8-byte aligned pointer to the memory,\n** the number of bytes in the memory buffer, and the minimum allocation size.\n** ^If the first pointer (the memory pointer) is NULL, then SQLite reverts\n** to using its default memory allocator (the system malloc() implementation),\n** undoing any prior invocation of [SQLITE_CONFIG_MALLOC].  ^If the\n** memory pointer is not NULL then the alternative memory\n** allocator is engaged to handle all of SQLites memory allocation needs.\n** The first pointer (the memory pointer) must be aligned to an 8-byte\n** boundary or subsequent behavior of SQLite will be undefined.\n** The minimum allocation size is capped at 2**12. Reasonable values\n** for the minimum allocation size are 2**5 through 2**8.</dd>\n**\n** [[SQLITE_CONFIG_MUTEX]] <dt>SQLITE_CONFIG_MUTEX</dt>\n** <dd> ^(The SQLITE_CONFIG_MUTEX option takes a single argument which is a\n** pointer to an instance of the [sqlite3_mutex_methods] structure.\n** The argument specifies alternative low-level mutex routines to be used\n** in place the mutex routines built into SQLite.)^  ^SQLite makes a copy of\n** the content of the [sqlite3_mutex_methods] structure before the call to\n** [sqlite3_config()] returns. ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** the entire mutexing subsystem is omitted from the build and hence calls to\n** [sqlite3_config()] with the SQLITE_CONFIG_MUTEX configuration option will\n** return [SQLITE_ERROR].</dd>\n**\n** [[SQLITE_CONFIG_GETMUTEX]] <dt>SQLITE_CONFIG_GETMUTEX</dt>\n** <dd> ^(The SQLITE_CONFIG_GETMUTEX option takes a single argument which\n** is a pointer to an instance of the [sqlite3_mutex_methods] structure.  The\n** [sqlite3_mutex_methods]\n** structure is filled with the currently defined mutex routines.)^\n** This option can be used to overload the default mutex allocation\n** routines with a wrapper used to track mutex usage for performance\n** profiling or testing, for example.   ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** the entire mutexing subsystem is omitted from the build and hence calls to\n** [sqlite3_config()] with the SQLITE_CONFIG_GETMUTEX configuration option will\n** return [SQLITE_ERROR].</dd>\n**\n** [[SQLITE_CONFIG_LOOKASIDE]] <dt>SQLITE_CONFIG_LOOKASIDE</dt>\n** <dd> ^(The SQLITE_CONFIG_LOOKASIDE option takes two arguments that determine\n** the default size of lookaside memory on each [database connection].\n** The first argument is the\n** size of each lookaside buffer slot and the second is the number of\n** slots allocated to each database connection.)^  ^(SQLITE_CONFIG_LOOKASIDE\n** sets the <i>default</i> lookaside size. The [SQLITE_DBCONFIG_LOOKASIDE]\n** option to [sqlite3_db_config()] can be used to change the lookaside\n** configuration on individual connections.)^ </dd>\n**\n** [[SQLITE_CONFIG_PCACHE2]] <dt>SQLITE_CONFIG_PCACHE2</dt>\n** <dd> ^(The SQLITE_CONFIG_PCACHE2 option takes a single argument which is \n** a pointer to an [sqlite3_pcache_methods2] object.  This object specifies\n** the interface to a custom page cache implementation.)^\n** ^SQLite makes a copy of the [sqlite3_pcache_methods2] object.</dd>\n**\n** [[SQLITE_CONFIG_GETPCACHE2]] <dt>SQLITE_CONFIG_GETPCACHE2</dt>\n** <dd> ^(The SQLITE_CONFIG_GETPCACHE2 option takes a single argument which\n** is a pointer to an [sqlite3_pcache_methods2] object.  SQLite copies of\n** the current page cache implementation into that object.)^ </dd>\n**\n** [[SQLITE_CONFIG_LOG]] <dt>SQLITE_CONFIG_LOG</dt>\n** <dd> The SQLITE_CONFIG_LOG option is used to configure the SQLite\n** global [error log].\n** (^The SQLITE_CONFIG_LOG option takes two arguments: a pointer to a\n** function with a call signature of void(*)(void*,int,const char*), \n** and a pointer to void. ^If the function pointer is not NULL, it is\n** invoked by [sqlite3_log()] to process each logging event.  ^If the\n** function pointer is NULL, the [sqlite3_log()] interface becomes a no-op.\n** ^The void pointer that is the second argument to SQLITE_CONFIG_LOG is\n** passed through as the first parameter to the application-defined logger\n** function whenever that function is invoked.  ^The second parameter to\n** the logger function is a copy of the first parameter to the corresponding\n** [sqlite3_log()] call and is intended to be a [result code] or an\n** [extended result code].  ^The third parameter passed to the logger is\n** log message after formatting via [sqlite3_snprintf()].\n** The SQLite logging interface is not reentrant; the logger function\n** supplied by the application must not invoke any SQLite interface.\n** In a multi-threaded application, the application-defined logger\n** function must be threadsafe. </dd>\n**\n** [[SQLITE_CONFIG_URI]] <dt>SQLITE_CONFIG_URI\n** <dd>^(The SQLITE_CONFIG_URI option takes a single argument of type int.\n** If non-zero, then URI handling is globally enabled. If the parameter is zero,\n** then URI handling is globally disabled.)^ ^If URI handling is globally\n** enabled, all filenames passed to [sqlite3_open()], [sqlite3_open_v2()],\n** [sqlite3_open16()] or\n** specified as part of [ATTACH] commands are interpreted as URIs, regardless\n** of whether or not the [SQLITE_OPEN_URI] flag is set when the database\n** connection is opened. ^If it is globally disabled, filenames are\n** only interpreted as URIs if the SQLITE_OPEN_URI flag is set when the\n** database connection is opened. ^(By default, URI handling is globally\n** disabled. The default value may be changed by compiling with the\n** [SQLITE_USE_URI] symbol defined.)^\n**\n** [[SQLITE_CONFIG_COVERING_INDEX_SCAN]] <dt>SQLITE_CONFIG_COVERING_INDEX_SCAN\n** <dd>^The SQLITE_CONFIG_COVERING_INDEX_SCAN option takes a single integer\n** argument which is interpreted as a boolean in order to enable or disable\n** the use of covering indices for full table scans in the query optimizer.\n** ^The default setting is determined\n** by the [SQLITE_ALLOW_COVERING_INDEX_SCAN] compile-time option, or is \"on\"\n** if that compile-time option is omitted.\n** The ability to disable the use of covering indices for full table scans\n** is because some incorrectly coded legacy applications might malfunction\n** when the optimization is enabled.  Providing the ability to\n** disable the optimization allows the older, buggy application code to work\n** without change even with newer versions of SQLite.\n**\n** [[SQLITE_CONFIG_PCACHE]] [[SQLITE_CONFIG_GETPCACHE]]\n** <dt>SQLITE_CONFIG_PCACHE and SQLITE_CONFIG_GETPCACHE\n** <dd> These options are obsolete and should not be used by new code.\n** They are retained for backwards compatibility but are now no-ops.\n** </dd>\n**\n** [[SQLITE_CONFIG_SQLLOG]]\n** <dt>SQLITE_CONFIG_SQLLOG\n** <dd>This option is only available if sqlite is compiled with the\n** [SQLITE_ENABLE_SQLLOG] pre-processor macro defined. The first argument should\n** be a pointer to a function of type void(*)(void*,sqlite3*,const char*, int).\n** The second should be of type (void*). The callback is invoked by the library\n** in three separate circumstances, identified by the value passed as the\n** fourth parameter. If the fourth parameter is 0, then the database connection\n** passed as the second argument has just been opened. The third argument\n** points to a buffer containing the name of the main database file. If the\n** fourth parameter is 1, then the SQL statement that the third parameter\n** points to has just been executed. Or, if the fourth parameter is 2, then\n** the connection being passed as the second parameter is being closed. The\n** third parameter is passed NULL In this case.  An example of using this\n** configuration option can be seen in the \"test_sqllog.c\" source file in\n** the canonical SQLite source tree.</dd>\n**\n** [[SQLITE_CONFIG_MMAP_SIZE]]\n** <dt>SQLITE_CONFIG_MMAP_SIZE\n** <dd>^SQLITE_CONFIG_MMAP_SIZE takes two 64-bit integer (sqlite3_int64) values\n** that are the default mmap size limit (the default setting for\n** [PRAGMA mmap_size]) and the maximum allowed mmap size limit.\n** ^The default setting can be overridden by each database connection using\n** either the [PRAGMA mmap_size] command, or by using the\n** [SQLITE_FCNTL_MMAP_SIZE] file control.  ^(The maximum allowed mmap size\n** will be silently truncated if necessary so that it does not exceed the\n** compile-time maximum mmap size set by the\n** [SQLITE_MAX_MMAP_SIZE] compile-time option.)^\n** ^If either argument to this option is negative, then that argument is\n** changed to its compile-time default.\n**\n** [[SQLITE_CONFIG_WIN32_HEAPSIZE]]\n** <dt>SQLITE_CONFIG_WIN32_HEAPSIZE\n** <dd>^The SQLITE_CONFIG_WIN32_HEAPSIZE option is only available if SQLite is\n** compiled for Windows with the [SQLITE_WIN32_MALLOC] pre-processor macro\n** defined. ^SQLITE_CONFIG_WIN32_HEAPSIZE takes a 32-bit unsigned integer value\n** that specifies the maximum size of the created heap.\n**\n** [[SQLITE_CONFIG_PCACHE_HDRSZ]]\n** <dt>SQLITE_CONFIG_PCACHE_HDRSZ\n** <dd>^The SQLITE_CONFIG_PCACHE_HDRSZ option takes a single parameter which\n** is a pointer to an integer and writes into that integer the number of extra\n** bytes per page required for each page in [SQLITE_CONFIG_PAGECACHE].\n** The amount of extra space required can change depending on the compiler,\n** target platform, and SQLite version.\n**\n** [[SQLITE_CONFIG_PMASZ]]\n** <dt>SQLITE_CONFIG_PMASZ\n** <dd>^The SQLITE_CONFIG_PMASZ option takes a single parameter which\n** is an unsigned integer and sets the \"Minimum PMA Size\" for the multithreaded\n** sorter to that integer.  The default minimum PMA Size is set by the\n** [SQLITE_SORTER_PMASZ] compile-time option.  New threads are launched\n** to help with sort operations when multithreaded sorting\n** is enabled (using the [PRAGMA threads] command) and the amount of content\n** to be sorted exceeds the page size times the minimum of the\n** [PRAGMA cache_size] setting and this value.\n**\n** [[SQLITE_CONFIG_STMTJRNL_SPILL]]\n** <dt>SQLITE_CONFIG_STMTJRNL_SPILL\n** <dd>^The SQLITE_CONFIG_STMTJRNL_SPILL option takes a single parameter which\n** becomes the [statement journal] spill-to-disk threshold.  \n** [Statement journals] are held in memory until their size (in bytes)\n** exceeds this threshold, at which point they are written to disk.\n** Or if the threshold is -1, statement journals are always held\n** exclusively in memory.\n** Since many statement journals never become large, setting the spill\n** threshold to a value such as 64KiB can greatly reduce the amount of\n** I/O required to support statement rollback.\n** The default value for this setting is controlled by the\n** [SQLITE_STMTJRNL_SPILL] compile-time option.\n** </dl>\n*/\n#define SQLITE_CONFIG_SINGLETHREAD  1  /* nil */\n#define SQLITE_CONFIG_MULTITHREAD   2  /* nil */\n#define SQLITE_CONFIG_SERIALIZED    3  /* nil */\n#define SQLITE_CONFIG_MALLOC        4  /* sqlite3_mem_methods* */\n#define SQLITE_CONFIG_GETMALLOC     5  /* sqlite3_mem_methods* */\n#define SQLITE_CONFIG_SCRATCH       6  /* No longer used */\n#define SQLITE_CONFIG_PAGECACHE     7  /* void*, int sz, int N */\n#define SQLITE_CONFIG_HEAP          8  /* void*, int nByte, int min */\n#define SQLITE_CONFIG_MEMSTATUS     9  /* boolean */\n#define SQLITE_CONFIG_MUTEX        10  /* sqlite3_mutex_methods* */\n#define SQLITE_CONFIG_GETMUTEX     11  /* sqlite3_mutex_methods* */\n/* previously SQLITE_CONFIG_CHUNKALLOC 12 which is now unused. */ \n#define SQLITE_CONFIG_LOOKASIDE    13  /* int int */\n#define SQLITE_CONFIG_PCACHE       14  /* no-op */\n#define SQLITE_CONFIG_GETPCACHE    15  /* no-op */\n#define SQLITE_CONFIG_LOG          16  /* xFunc, void* */\n#define SQLITE_CONFIG_URI          17  /* int */\n#define SQLITE_CONFIG_PCACHE2      18  /* sqlite3_pcache_methods2* */\n#define SQLITE_CONFIG_GETPCACHE2   19  /* sqlite3_pcache_methods2* */\n#define SQLITE_CONFIG_COVERING_INDEX_SCAN 20  /* int */\n#define SQLITE_CONFIG_SQLLOG       21  /* xSqllog, void* */\n#define SQLITE_CONFIG_MMAP_SIZE    22  /* sqlite3_int64, sqlite3_int64 */\n#define SQLITE_CONFIG_WIN32_HEAPSIZE      23  /* int nByte */\n#define SQLITE_CONFIG_PCACHE_HDRSZ        24  /* int *psz */\n#define SQLITE_CONFIG_PMASZ               25  /* unsigned int szPma */\n#define SQLITE_CONFIG_STMTJRNL_SPILL      26  /* int nByte */\n#define SQLITE_CONFIG_SMALL_MALLOC        27  /* boolean */\n\n/*\n** CAPI3REF: Database Connection Configuration Options\n**\n** These constants are the available integer configuration options that\n** can be passed as the second argument to the [sqlite3_db_config()] interface.\n**\n** New configuration options may be added in future releases of SQLite.\n** Existing configuration options might be discontinued.  Applications\n** should check the return code from [sqlite3_db_config()] to make sure that\n** the call worked.  ^The [sqlite3_db_config()] interface will return a\n** non-zero [error code] if a discontinued or unsupported configuration option\n** is invoked.\n**\n** <dl>\n** <dt>SQLITE_DBCONFIG_LOOKASIDE</dt>\n** <dd> ^This option takes three additional arguments that determine the \n** [lookaside memory allocator] configuration for the [database connection].\n** ^The first argument (the third parameter to [sqlite3_db_config()] is a\n** pointer to a memory buffer to use for lookaside memory.\n** ^The first argument after the SQLITE_DBCONFIG_LOOKASIDE verb\n** may be NULL in which case SQLite will allocate the\n** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the\n** size of each lookaside buffer slot.  ^The third argument is the number of\n** slots.  The size of the buffer in the first argument must be greater than\n** or equal to the product of the second and third arguments.  The buffer\n** must be aligned to an 8-byte boundary.  ^If the second argument to\n** SQLITE_DBCONFIG_LOOKASIDE is not a multiple of 8, it is internally\n** rounded down to the next smaller multiple of 8.  ^(The lookaside memory\n** configuration for a database connection can only be changed when that\n** connection is not currently using lookaside memory, or in other words\n** when the \"current value\" returned by\n** [sqlite3_db_status](D,[SQLITE_CONFIG_LOOKASIDE],...) is zero.\n** Any attempt to change the lookaside memory configuration when lookaside\n** memory is in use leaves the configuration unchanged and returns \n** [SQLITE_BUSY].)^</dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_FKEY</dt>\n** <dd> ^This option is used to enable or disable the enforcement of\n** [foreign key constraints].  There should be two additional arguments.\n** The first argument is an integer which is 0 to disable FK enforcement,\n** positive to enable FK enforcement or negative to leave FK enforcement\n** unchanged.  The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether FK enforcement is off or on\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the FK enforcement setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_TRIGGER</dt>\n** <dd> ^This option is used to enable or disable [CREATE TRIGGER | triggers].\n** There should be two additional arguments.\n** The first argument is an integer which is 0 to disable triggers,\n** positive to enable triggers or negative to leave the setting unchanged.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether triggers are disabled or enabled\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the trigger setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>\n** <dd> ^This option is used to enable or disable the two-argument\n** version of the [fts3_tokenizer()] function which is part of the\n** [FTS3] full-text search engine extension.\n** There should be two additional arguments.\n** The first argument is an integer which is 0 to disable fts3_tokenizer() or\n** positive to enable fts3_tokenizer() or negative to leave the setting\n** unchanged.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether fts3_tokenizer is disabled or enabled\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the new setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION</dt>\n** <dd> ^This option is used to enable or disable the [sqlite3_load_extension()]\n** interface independently of the [load_extension()] SQL function.\n** The [sqlite3_enable_load_extension()] API enables or disables both the\n** C-API [sqlite3_load_extension()] and the SQL function [load_extension()].\n** There should be two additional arguments.\n** When the first argument to this interface is 1, then only the C-API is\n** enabled and the SQL function remains disabled.  If the first argument to\n** this interface is 0, then both the C-API and the SQL function are disabled.\n** If the first argument is -1, then no changes are made to state of either the\n** C-API or the SQL function.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether [sqlite3_load_extension()] interface\n** is disabled or enabled following this call.  The second parameter may\n** be a NULL pointer, in which case the new setting is not reported back.\n** </dd>\n**\n** <dt>SQLITE_DBCONFIG_MAINDBNAME</dt>\n** <dd> ^This option is used to change the name of the \"main\" database\n** schema.  ^The sole argument is a pointer to a constant UTF8 string\n** which will become the new schema name in place of \"main\".  ^SQLite\n** does not make a copy of the new main schema name string, so the application\n** must ensure that the argument passed into this DBCONFIG option is unchanged\n** until after the database connection closes.\n** </dd>\n**\n** <dt>SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE</dt>\n** <dd> Usually, when a database in wal mode is closed or detached from a \n** database handle, SQLite checks if this will mean that there are now no \n** connections at all to the database. If so, it performs a checkpoint \n** operation before closing the connection. This option may be used to\n** override this behaviour. The first parameter passed to this operation\n** is an integer - non-zero to disable checkpoints-on-close, or zero (the\n** default) to enable them. The second parameter is a pointer to an integer\n** into which is written 0 or 1 to indicate whether checkpoints-on-close\n** have been disabled - 0 if they are not disabled, 1 if they are.\n** </dd>\n** <dt>SQLITE_DBCONFIG_ENABLE_QPSG</dt>\n** <dd>^(The SQLITE_DBCONFIG_ENABLE_QPSG option activates or deactivates\n** the [query planner stability guarantee] (QPSG).  When the QPSG is active,\n** a single SQL query statement will always use the same algorithm regardless\n** of values of [bound parameters].)^ The QPSG disables some query optimizations\n** that look at the values of bound parameters, which can make some queries\n** slower.  But the QPSG has the advantage of more predictable behavior.  With\n** the QPSG active, SQLite will always use the same query plan in the field as\n** was used during testing in the lab.\n** </dd>\n** <dt>SQLITE_DBCONFIG_TRIGGER_EQP</dt>\n** <dd> By default, the output of EXPLAIN QUERY PLAN commands does not \n** include output for any operations performed by trigger programs. This\n** option is used to set or clear (the default) a flag that governs this\n** behavior. The first parameter passed to this operation is an integer -\n** non-zero to enable output for trigger programs, or zero to disable it.\n** The second parameter is a pointer to an integer into which is written \n** 0 or 1 to indicate whether output-for-triggers has been disabled - 0 if \n** it is not disabled, 1 if it is.  \n** </dd>\n** </dl>\n*/\n#define SQLITE_DBCONFIG_MAINDBNAME            1000 /* const char* */\n#define SQLITE_DBCONFIG_LOOKASIDE             1001 /* void* int int */\n#define SQLITE_DBCONFIG_ENABLE_FKEY           1002 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_TRIGGER        1003 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION 1005 /* int int* */\n#define SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE      1006 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_QPSG           1007 /* int int* */\n#define SQLITE_DBCONFIG_TRIGGER_EQP           1008 /* int int* */\n#define SQLITE_DBCONFIG_MAX                   1008 /* Largest DBCONFIG */\n\n/*\n** CAPI3REF: Enable Or Disable Extended Result Codes\n** METHOD: sqlite3\n**\n** ^The sqlite3_extended_result_codes() routine enables or disables the\n** [extended result codes] feature of SQLite. ^The extended result\n** codes are disabled by default for historical compatibility.\n*/\nSQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);\n\n/*\n** CAPI3REF: Last Insert Rowid\n** METHOD: sqlite3\n**\n** ^Each entry in most SQLite tables (except for [WITHOUT ROWID] tables)\n** has a unique 64-bit signed\n** integer key called the [ROWID | \"rowid\"]. ^The rowid is always available\n** as an undeclared column named ROWID, OID, or _ROWID_ as long as those\n** names are not also used by explicitly declared columns. ^If\n** the table has a column of type [INTEGER PRIMARY KEY] then that column\n** is another alias for the rowid.\n**\n** ^The sqlite3_last_insert_rowid(D) interface usually returns the [rowid] of\n** the most recent successful [INSERT] into a rowid table or [virtual table]\n** on database connection D. ^Inserts into [WITHOUT ROWID] tables are not\n** recorded. ^If no successful [INSERT]s into rowid tables have ever occurred \n** on the database connection D, then sqlite3_last_insert_rowid(D) returns \n** zero.\n**\n** As well as being set automatically as rows are inserted into database\n** tables, the value returned by this function may be set explicitly by\n** [sqlite3_set_last_insert_rowid()]\n**\n** Some virtual table implementations may INSERT rows into rowid tables as\n** part of committing a transaction (e.g. to flush data accumulated in memory\n** to disk). In this case subsequent calls to this function return the rowid\n** associated with these internal INSERT operations, which leads to \n** unintuitive results. Virtual table implementations that do write to rowid\n** tables in this way can avoid this problem by restoring the original \n** rowid value using [sqlite3_set_last_insert_rowid()] before returning \n** control to the user.\n**\n** ^(If an [INSERT] occurs within a trigger then this routine will \n** return the [rowid] of the inserted row as long as the trigger is \n** running. Once the trigger program ends, the value returned \n** by this routine reverts to what it was before the trigger was fired.)^\n**\n** ^An [INSERT] that fails due to a constraint violation is not a\n** successful [INSERT] and does not change the value returned by this\n** routine.  ^Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK,\n** and INSERT OR ABORT make no changes to the return value of this\n** routine when their insertion fails.  ^(When INSERT OR REPLACE\n** encounters a constraint violation, it does not fail.  The\n** INSERT continues to completion after deleting rows that caused\n** the constraint problem so INSERT OR REPLACE will always change\n** the return value of this interface.)^\n**\n** ^For the purposes of this routine, an [INSERT] is considered to\n** be successful even if it is subsequently rolled back.\n**\n** This function is accessible to SQL statements via the\n** [last_insert_rowid() SQL function].\n**\n** If a separate thread performs a new [INSERT] on the same\n** database connection while the [sqlite3_last_insert_rowid()]\n** function is running and thus changes the last insert [rowid],\n** then the value returned by [sqlite3_last_insert_rowid()] is\n** unpredictable and might not equal either the old or the new\n** last insert [rowid].\n*/\nSQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);\n\n/*\n** CAPI3REF: Set the Last Insert Rowid value.\n** METHOD: sqlite3\n**\n** The sqlite3_set_last_insert_rowid(D, R) method allows the application to\n** set the value returned by calling sqlite3_last_insert_rowid(D) to R \n** without inserting a row into the database.\n*/\nSQLITE_API void sqlite3_set_last_insert_rowid(sqlite3*,sqlite3_int64);\n\n/*\n** CAPI3REF: Count The Number Of Rows Modified\n** METHOD: sqlite3\n**\n** ^This function returns the number of rows modified, inserted or\n** deleted by the most recently completed INSERT, UPDATE or DELETE\n** statement on the database connection specified by the only parameter.\n** ^Executing any other type of SQL statement does not modify the value\n** returned by this function.\n**\n** ^Only changes made directly by the INSERT, UPDATE or DELETE statement are\n** considered - auxiliary changes caused by [CREATE TRIGGER | triggers], \n** [foreign key actions] or [REPLACE] constraint resolution are not counted.\n** \n** Changes to a view that are intercepted by \n** [INSTEAD OF trigger | INSTEAD OF triggers] are not counted. ^The value \n** returned by sqlite3_changes() immediately after an INSERT, UPDATE or \n** DELETE statement run on a view is always zero. Only changes made to real \n** tables are counted.\n**\n** Things are more complicated if the sqlite3_changes() function is\n** executed while a trigger program is running. This may happen if the\n** program uses the [changes() SQL function], or if some other callback\n** function invokes sqlite3_changes() directly. Essentially:\n** \n** <ul>\n**   <li> ^(Before entering a trigger program the value returned by\n**        sqlite3_changes() function is saved. After the trigger program \n**        has finished, the original value is restored.)^\n** \n**   <li> ^(Within a trigger program each INSERT, UPDATE and DELETE \n**        statement sets the value returned by sqlite3_changes() \n**        upon completion as normal. Of course, this value will not include \n**        any changes performed by sub-triggers, as the sqlite3_changes() \n**        value will be saved and restored after each sub-trigger has run.)^\n** </ul>\n** \n** ^This means that if the changes() SQL function (or similar) is used\n** by the first INSERT, UPDATE or DELETE statement within a trigger, it \n** returns the value as set when the calling statement began executing.\n** ^If it is used by the second or subsequent such statement within a trigger \n** program, the value returned reflects the number of rows modified by the \n** previous INSERT, UPDATE or DELETE statement within the same trigger.\n**\n** See also the [sqlite3_total_changes()] interface, the\n** [count_changes pragma], and the [changes() SQL function].\n**\n** If a separate thread makes changes on the same database connection\n** while [sqlite3_changes()] is running then the value returned\n** is unpredictable and not meaningful.\n*/\nSQLITE_API int sqlite3_changes(sqlite3*);\n\n/*\n** CAPI3REF: Total Number Of Rows Modified\n** METHOD: sqlite3\n**\n** ^This function returns the total number of rows inserted, modified or\n** deleted by all [INSERT], [UPDATE] or [DELETE] statements completed\n** since the database connection was opened, including those executed as\n** part of trigger programs. ^Executing any other type of SQL statement\n** does not affect the value returned by sqlite3_total_changes().\n** \n** ^Changes made as part of [foreign key actions] are included in the\n** count, but those made as part of REPLACE constraint resolution are\n** not. ^Changes to a view that are intercepted by INSTEAD OF triggers \n** are not counted.\n** \n** See also the [sqlite3_changes()] interface, the\n** [count_changes pragma], and the [total_changes() SQL function].\n**\n** If a separate thread makes changes on the same database connection\n** while [sqlite3_total_changes()] is running then the value\n** returned is unpredictable and not meaningful.\n*/\nSQLITE_API int sqlite3_total_changes(sqlite3*);\n\n/*\n** CAPI3REF: Interrupt A Long-Running Query\n** METHOD: sqlite3\n**\n** ^This function causes any pending database operation to abort and\n** return at its earliest opportunity. This routine is typically\n** called in response to a user action such as pressing \"Cancel\"\n** or Ctrl-C where the user wants a long query operation to halt\n** immediately.\n**\n** ^It is safe to call this routine from a thread different from the\n** thread that is currently running the database operation.  But it\n** is not safe to call this routine with a [database connection] that\n** is closed or might close before sqlite3_interrupt() returns.\n**\n** ^If an SQL operation is very nearly finished at the time when\n** sqlite3_interrupt() is called, then it might not have an opportunity\n** to be interrupted and might continue to completion.\n**\n** ^An SQL operation that is interrupted will return [SQLITE_INTERRUPT].\n** ^If the interrupted SQL operation is an INSERT, UPDATE, or DELETE\n** that is inside an explicit transaction, then the entire transaction\n** will be rolled back automatically.\n**\n** ^The sqlite3_interrupt(D) call is in effect until all currently running\n** SQL statements on [database connection] D complete.  ^Any new SQL statements\n** that are started after the sqlite3_interrupt() call and before the \n** running statements reaches zero are interrupted as if they had been\n** running prior to the sqlite3_interrupt() call.  ^New SQL statements\n** that are started after the running statement count reaches zero are\n** not effected by the sqlite3_interrupt().\n** ^A call to sqlite3_interrupt(D) that occurs when there are no running\n** SQL statements is a no-op and has no effect on SQL statements\n** that are started after the sqlite3_interrupt() call returns.\n*/\nSQLITE_API void sqlite3_interrupt(sqlite3*);\n\n/*\n** CAPI3REF: Determine If An SQL Statement Is Complete\n**\n** These routines are useful during command-line input to determine if the\n** currently entered text seems to form a complete SQL statement or\n** if additional input is needed before sending the text into\n** SQLite for parsing.  ^These routines return 1 if the input string\n** appears to be a complete SQL statement.  ^A statement is judged to be\n** complete if it ends with a semicolon token and is not a prefix of a\n** well-formed CREATE TRIGGER statement.  ^Semicolons that are embedded within\n** string literals or quoted identifier names or comments are not\n** independent tokens (they are part of the token in which they are\n** embedded) and thus do not count as a statement terminator.  ^Whitespace\n** and comments that follow the final semicolon are ignored.\n**\n** ^These routines return 0 if the statement is incomplete.  ^If a\n** memory allocation fails, then SQLITE_NOMEM is returned.\n**\n** ^These routines do not parse the SQL statements thus\n** will not detect syntactically incorrect SQL.\n**\n** ^(If SQLite has not been initialized using [sqlite3_initialize()] prior \n** to invoking sqlite3_complete16() then sqlite3_initialize() is invoked\n** automatically by sqlite3_complete16().  If that initialization fails,\n** then the return value from sqlite3_complete16() will be non-zero\n** regardless of whether or not the input SQL is complete.)^\n**\n** The input to [sqlite3_complete()] must be a zero-terminated\n** UTF-8 string.\n**\n** The input to [sqlite3_complete16()] must be a zero-terminated\n** UTF-16 string in native byte order.\n*/\nSQLITE_API int sqlite3_complete(const char *sql);\nSQLITE_API int sqlite3_complete16(const void *sql);\n\n/*\n** CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors\n** KEYWORDS: {busy-handler callback} {busy handler}\n** METHOD: sqlite3\n**\n** ^The sqlite3_busy_handler(D,X,P) routine sets a callback function X\n** that might be invoked with argument P whenever\n** an attempt is made to access a database table associated with\n** [database connection] D when another thread\n** or process has the table locked.\n** The sqlite3_busy_handler() interface is used to implement\n** [sqlite3_busy_timeout()] and [PRAGMA busy_timeout].\n**\n** ^If the busy callback is NULL, then [SQLITE_BUSY]\n** is returned immediately upon encountering the lock.  ^If the busy callback\n** is not NULL, then the callback might be invoked with two arguments.\n**\n** ^The first argument to the busy handler is a copy of the void* pointer which\n** is the third argument to sqlite3_busy_handler().  ^The second argument to\n** the busy handler callback is the number of times that the busy handler has\n** been invoked previously for the same locking event.  ^If the\n** busy callback returns 0, then no additional attempts are made to\n** access the database and [SQLITE_BUSY] is returned\n** to the application.\n** ^If the callback returns non-zero, then another attempt\n** is made to access the database and the cycle repeats.\n**\n** The presence of a busy handler does not guarantee that it will be invoked\n** when there is lock contention. ^If SQLite determines that invoking the busy\n** handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY]\n** to the application instead of invoking the \n** busy handler.\n** Consider a scenario where one process is holding a read lock that\n** it is trying to promote to a reserved lock and\n** a second process is holding a reserved lock that it is trying\n** to promote to an exclusive lock.  The first process cannot proceed\n** because it is blocked by the second and the second process cannot\n** proceed because it is blocked by the first.  If both processes\n** invoke the busy handlers, neither will make any progress.  Therefore,\n** SQLite returns [SQLITE_BUSY] for the first process, hoping that this\n** will induce the first process to release its read lock and allow\n** the second process to proceed.\n**\n** ^The default busy callback is NULL.\n**\n** ^(There can only be a single busy handler defined for each\n** [database connection].  Setting a new busy handler clears any\n** previously set handler.)^  ^Note that calling [sqlite3_busy_timeout()]\n** or evaluating [PRAGMA busy_timeout=N] will change the\n** busy handler and thus clear any previously set busy handler.\n**\n** The busy callback should not take any actions which modify the\n** database connection that invoked the busy handler.  In other words,\n** the busy handler is not reentrant.  Any such actions\n** result in undefined behavior.\n** \n** A busy handler must not close the database connection\n** or [prepared statement] that invoked the busy handler.\n*/\nSQLITE_API int sqlite3_busy_handler(sqlite3*,int(*)(void*,int),void*);\n\n/*\n** CAPI3REF: Set A Busy Timeout\n** METHOD: sqlite3\n**\n** ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps\n** for a specified amount of time when a table is locked.  ^The handler\n** will sleep multiple times until at least \"ms\" milliseconds of sleeping\n** have accumulated.  ^After at least \"ms\" milliseconds of sleeping,\n** the handler returns 0 which causes [sqlite3_step()] to return\n** [SQLITE_BUSY].\n**\n** ^Calling this routine with an argument less than or equal to zero\n** turns off all busy handlers.\n**\n** ^(There can only be a single busy handler for a particular\n** [database connection] at any given moment.  If another busy handler\n** was defined  (using [sqlite3_busy_handler()]) prior to calling\n** this routine, that other busy handler is cleared.)^\n**\n** See also:  [PRAGMA busy_timeout]\n*/\nSQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);\n\n/*\n** CAPI3REF: Convenience Routines For Running Queries\n** METHOD: sqlite3\n**\n** This is a legacy interface that is preserved for backwards compatibility.\n** Use of this interface is not recommended.\n**\n** Definition: A <b>result table</b> is memory data structure created by the\n** [sqlite3_get_table()] interface.  A result table records the\n** complete query results from one or more queries.\n**\n** The table conceptually has a number of rows and columns.  But\n** these numbers are not part of the result table itself.  These\n** numbers are obtained separately.  Let N be the number of rows\n** and M be the number of columns.\n**\n** A result table is an array of pointers to zero-terminated UTF-8 strings.\n** There are (N+1)*M elements in the array.  The first M pointers point\n** to zero-terminated strings that  contain the names of the columns.\n** The remaining entries all point to query results.  NULL values result\n** in NULL pointers.  All other values are in their UTF-8 zero-terminated\n** string representation as returned by [sqlite3_column_text()].\n**\n** A result table might consist of one or more memory allocations.\n** It is not safe to pass a result table directly to [sqlite3_free()].\n** A result table should be deallocated using [sqlite3_free_table()].\n**\n** ^(As an example of the result table format, suppose a query result\n** is as follows:\n**\n** <blockquote><pre>\n**        Name        | Age\n**        -----------------------\n**        Alice       | 43\n**        Bob         | 28\n**        Cindy       | 21\n** </pre></blockquote>\n**\n** There are two column (M==2) and three rows (N==3).  Thus the\n** result table has 8 entries.  Suppose the result table is stored\n** in an array names azResult.  Then azResult holds this content:\n**\n** <blockquote><pre>\n**        azResult&#91;0] = \"Name\";\n**        azResult&#91;1] = \"Age\";\n**        azResult&#91;2] = \"Alice\";\n**        azResult&#91;3] = \"43\";\n**        azResult&#91;4] = \"Bob\";\n**        azResult&#91;5] = \"28\";\n**        azResult&#91;6] = \"Cindy\";\n**        azResult&#91;7] = \"21\";\n** </pre></blockquote>)^\n**\n** ^The sqlite3_get_table() function evaluates one or more\n** semicolon-separated SQL statements in the zero-terminated UTF-8\n** string of its 2nd parameter and returns a result table to the\n** pointer given in its 3rd parameter.\n**\n** After the application has finished with the result from sqlite3_get_table(),\n** it must pass the result table pointer to sqlite3_free_table() in order to\n** release the memory that was malloced.  Because of the way the\n** [sqlite3_malloc()] happens within sqlite3_get_table(), the calling\n** function must not try to call [sqlite3_free()] directly.  Only\n** [sqlite3_free_table()] is able to release the memory properly and safely.\n**\n** The sqlite3_get_table() interface is implemented as a wrapper around\n** [sqlite3_exec()].  The sqlite3_get_table() routine does not have access\n** to any internal data structures of SQLite.  It uses only the public\n** interface defined here.  As a consequence, errors that occur in the\n** wrapper layer outside of the internal [sqlite3_exec()] call are not\n** reflected in subsequent calls to [sqlite3_errcode()] or\n** [sqlite3_errmsg()].\n*/\nSQLITE_API int sqlite3_get_table(\n  sqlite3 *db,          /* An open database */\n  const char *zSql,     /* SQL to be evaluated */\n  char ***pazResult,    /* Results of the query */\n  int *pnRow,           /* Number of result rows written here */\n  int *pnColumn,        /* Number of result columns written here */\n  char **pzErrmsg       /* Error msg written here */\n);\nSQLITE_API void sqlite3_free_table(char **result);\n\n/*\n** CAPI3REF: Formatted String Printing Functions\n**\n** These routines are work-alikes of the \"printf()\" family of functions\n** from the standard C library.\n** These routines understand most of the common K&R formatting options,\n** plus some additional non-standard formats, detailed below.\n** Note that some of the more obscure formatting options from recent\n** C-library standards are omitted from this implementation.\n**\n** ^The sqlite3_mprintf() and sqlite3_vmprintf() routines write their\n** results into memory obtained from [sqlite3_malloc()].\n** The strings returned by these two routines should be\n** released by [sqlite3_free()].  ^Both routines return a\n** NULL pointer if [sqlite3_malloc()] is unable to allocate enough\n** memory to hold the resulting string.\n**\n** ^(The sqlite3_snprintf() routine is similar to \"snprintf()\" from\n** the standard C library.  The result is written into the\n** buffer supplied as the second parameter whose size is given by\n** the first parameter. Note that the order of the\n** first two parameters is reversed from snprintf().)^  This is an\n** historical accident that cannot be fixed without breaking\n** backwards compatibility.  ^(Note also that sqlite3_snprintf()\n** returns a pointer to its buffer instead of the number of\n** characters actually written into the buffer.)^  We admit that\n** the number of characters written would be a more useful return\n** value but we cannot change the implementation of sqlite3_snprintf()\n** now without breaking compatibility.\n**\n** ^As long as the buffer size is greater than zero, sqlite3_snprintf()\n** guarantees that the buffer is always zero-terminated.  ^The first\n** parameter \"n\" is the total size of the buffer, including space for\n** the zero terminator.  So the longest string that can be completely\n** written will be n-1 characters.\n**\n** ^The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf().\n**\n** These routines all implement some additional formatting\n** options that are useful for constructing SQL statements.\n** All of the usual printf() formatting options apply.  In addition, there\n** is are \"%q\", \"%Q\", \"%w\" and \"%z\" options.\n**\n** ^(The %q option works like %s in that it substitutes a nul-terminated\n** string from the argument list.  But %q also doubles every '\\'' character.\n** %q is designed for use inside a string literal.)^  By doubling each '\\''\n** character it escapes that character and allows it to be inserted into\n** the string.\n**\n** For example, assume the string variable zText contains text as follows:\n**\n** <blockquote><pre>\n**  char *zText = \"It's a happy day!\";\n** </pre></blockquote>\n**\n** One can use this text in an SQL statement as follows:\n**\n** <blockquote><pre>\n**  char *zSQL = sqlite3_mprintf(\"INSERT INTO table VALUES('%q')\", zText);\n**  sqlite3_exec(db, zSQL, 0, 0, 0);\n**  sqlite3_free(zSQL);\n** </pre></blockquote>\n**\n** Because the %q format string is used, the '\\'' character in zText\n** is escaped and the SQL generated is as follows:\n**\n** <blockquote><pre>\n**  INSERT INTO table1 VALUES('It''s a happy day!')\n** </pre></blockquote>\n**\n** This is correct.  Had we used %s instead of %q, the generated SQL\n** would have looked like this:\n**\n** <blockquote><pre>\n**  INSERT INTO table1 VALUES('It's a happy day!');\n** </pre></blockquote>\n**\n** This second example is an SQL syntax error.  As a general rule you should\n** always use %q instead of %s when inserting text into a string literal.\n**\n** ^(The %Q option works like %q except it also adds single quotes around\n** the outside of the total string.  Additionally, if the parameter in the\n** argument list is a NULL pointer, %Q substitutes the text \"NULL\" (without\n** single quotes).)^  So, for example, one could say:\n**\n** <blockquote><pre>\n**  char *zSQL = sqlite3_mprintf(\"INSERT INTO table VALUES(%Q)\", zText);\n**  sqlite3_exec(db, zSQL, 0, 0, 0);\n**  sqlite3_free(zSQL);\n** </pre></blockquote>\n**\n** The code above will render a correct SQL statement in the zSQL\n** variable even if the zText variable is a NULL pointer.\n**\n** ^(The \"%w\" formatting option is like \"%q\" except that it expects to\n** be contained within double-quotes instead of single quotes, and it\n** escapes the double-quote character instead of the single-quote\n** character.)^  The \"%w\" formatting option is intended for safely inserting\n** table and column names into a constructed SQL statement.\n**\n** ^(The \"%z\" formatting option works like \"%s\" but with the\n** addition that after the string has been read and copied into\n** the result, [sqlite3_free()] is called on the input string.)^\n*/\nSQLITE_API char *sqlite3_mprintf(const char*,...);\nSQLITE_API char *sqlite3_vmprintf(const char*, va_list);\nSQLITE_API char *sqlite3_snprintf(int,char*,const char*, ...);\nSQLITE_API char *sqlite3_vsnprintf(int,char*,const char*, va_list);\n\n/*\n** CAPI3REF: Memory Allocation Subsystem\n**\n** The SQLite core uses these three routines for all of its own\n** internal memory allocation needs. \"Core\" in the previous sentence\n** does not include operating-system specific VFS implementation.  The\n** Windows VFS uses native malloc() and free() for some operations.\n**\n** ^The sqlite3_malloc() routine returns a pointer to a block\n** of memory at least N bytes in length, where N is the parameter.\n** ^If sqlite3_malloc() is unable to obtain sufficient free\n** memory, it returns a NULL pointer.  ^If the parameter N to\n** sqlite3_malloc() is zero or negative then sqlite3_malloc() returns\n** a NULL pointer.\n**\n** ^The sqlite3_malloc64(N) routine works just like\n** sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead\n** of a signed 32-bit integer.\n**\n** ^Calling sqlite3_free() with a pointer previously returned\n** by sqlite3_malloc() or sqlite3_realloc() releases that memory so\n** that it might be reused.  ^The sqlite3_free() routine is\n** a no-op if is called with a NULL pointer.  Passing a NULL pointer\n** to sqlite3_free() is harmless.  After being freed, memory\n** should neither be read nor written.  Even reading previously freed\n** memory might result in a segmentation fault or other severe error.\n** Memory corruption, a segmentation fault, or other severe error\n** might result if sqlite3_free() is called with a non-NULL pointer that\n** was not obtained from sqlite3_malloc() or sqlite3_realloc().\n**\n** ^The sqlite3_realloc(X,N) interface attempts to resize a\n** prior memory allocation X to be at least N bytes.\n** ^If the X parameter to sqlite3_realloc(X,N)\n** is a NULL pointer then its behavior is identical to calling\n** sqlite3_malloc(N).\n** ^If the N parameter to sqlite3_realloc(X,N) is zero or\n** negative then the behavior is exactly the same as calling\n** sqlite3_free(X).\n** ^sqlite3_realloc(X,N) returns a pointer to a memory allocation\n** of at least N bytes in size or NULL if insufficient memory is available.\n** ^If M is the size of the prior allocation, then min(N,M) bytes\n** of the prior allocation are copied into the beginning of buffer returned\n** by sqlite3_realloc(X,N) and the prior allocation is freed.\n** ^If sqlite3_realloc(X,N) returns NULL and N is positive, then the\n** prior allocation is not freed.\n**\n** ^The sqlite3_realloc64(X,N) interfaces works the same as\n** sqlite3_realloc(X,N) except that N is a 64-bit unsigned integer instead\n** of a 32-bit signed integer.\n**\n** ^If X is a memory allocation previously obtained from sqlite3_malloc(),\n** sqlite3_malloc64(), sqlite3_realloc(), or sqlite3_realloc64(), then\n** sqlite3_msize(X) returns the size of that memory allocation in bytes.\n** ^The value returned by sqlite3_msize(X) might be larger than the number\n** of bytes requested when X was allocated.  ^If X is a NULL pointer then\n** sqlite3_msize(X) returns zero.  If X points to something that is not\n** the beginning of memory allocation, or if it points to a formerly\n** valid memory allocation that has now been freed, then the behavior\n** of sqlite3_msize(X) is undefined and possibly harmful.\n**\n** ^The memory returned by sqlite3_malloc(), sqlite3_realloc(),\n** sqlite3_malloc64(), and sqlite3_realloc64()\n** is always aligned to at least an 8 byte boundary, or to a\n** 4 byte boundary if the [SQLITE_4_BYTE_ALIGNED_MALLOC] compile-time\n** option is used.\n**\n** In SQLite version 3.5.0 and 3.5.1, it was possible to define\n** the SQLITE_OMIT_MEMORY_ALLOCATION which would cause the built-in\n** implementation of these routines to be omitted.  That capability\n** is no longer provided.  Only built-in memory allocators can be used.\n**\n** Prior to SQLite version 3.7.10, the Windows OS interface layer called\n** the system malloc() and free() directly when converting\n** filenames between the UTF-8 encoding used by SQLite\n** and whatever filename encoding is used by the particular Windows\n** installation.  Memory allocation errors were detected, but\n** they were reported back as [SQLITE_CANTOPEN] or\n** [SQLITE_IOERR] rather than [SQLITE_NOMEM].\n**\n** The pointer arguments to [sqlite3_free()] and [sqlite3_realloc()]\n** must be either NULL or else pointers obtained from a prior\n** invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have\n** not yet been released.\n**\n** The application must not read or write any part of\n** a block of memory after it has been released using\n** [sqlite3_free()] or [sqlite3_realloc()].\n*/\nSQLITE_API void *sqlite3_malloc(int);\nSQLITE_API void *sqlite3_malloc64(sqlite3_uint64);\nSQLITE_API void *sqlite3_realloc(void*, int);\nSQLITE_API void *sqlite3_realloc64(void*, sqlite3_uint64);\nSQLITE_API void sqlite3_free(void*);\nSQLITE_API sqlite3_uint64 sqlite3_msize(void*);\n\n/*\n** CAPI3REF: Memory Allocator Statistics\n**\n** SQLite provides these two interfaces for reporting on the status\n** of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()]\n** routines, which form the built-in memory allocation subsystem.\n**\n** ^The [sqlite3_memory_used()] routine returns the number of bytes\n** of memory currently outstanding (malloced but not freed).\n** ^The [sqlite3_memory_highwater()] routine returns the maximum\n** value of [sqlite3_memory_used()] since the high-water mark\n** was last reset.  ^The values returned by [sqlite3_memory_used()] and\n** [sqlite3_memory_highwater()] include any overhead\n** added by SQLite in its implementation of [sqlite3_malloc()],\n** but not overhead added by the any underlying system library\n** routines that [sqlite3_malloc()] may call.\n**\n** ^The memory high-water mark is reset to the current value of\n** [sqlite3_memory_used()] if and only if the parameter to\n** [sqlite3_memory_highwater()] is true.  ^The value returned\n** by [sqlite3_memory_highwater(1)] is the high-water mark\n** prior to the reset.\n*/\nSQLITE_API sqlite3_int64 sqlite3_memory_used(void);\nSQLITE_API sqlite3_int64 sqlite3_memory_highwater(int resetFlag);\n\n/*\n** CAPI3REF: Pseudo-Random Number Generator\n**\n** SQLite contains a high-quality pseudo-random number generator (PRNG) used to\n** select random [ROWID | ROWIDs] when inserting new records into a table that\n** already uses the largest possible [ROWID].  The PRNG is also used for\n** the build-in random() and randomblob() SQL functions.  This interface allows\n** applications to access the same PRNG for other purposes.\n**\n** ^A call to this routine stores N bytes of randomness into buffer P.\n** ^The P parameter can be a NULL pointer.\n**\n** ^If this routine has not been previously called or if the previous\n** call had N less than one or a NULL pointer for P, then the PRNG is\n** seeded using randomness obtained from the xRandomness method of\n** the default [sqlite3_vfs] object.\n** ^If the previous call to this routine had an N of 1 or more and a\n** non-NULL P then the pseudo-randomness is generated\n** internally and without recourse to the [sqlite3_vfs] xRandomness\n** method.\n*/\nSQLITE_API void sqlite3_randomness(int N, void *P);\n\n/*\n** CAPI3REF: Compile-Time Authorization Callbacks\n** METHOD: sqlite3\n** KEYWORDS: {authorizer callback}\n**\n** ^This routine registers an authorizer callback with a particular\n** [database connection], supplied in the first argument.\n** ^The authorizer callback is invoked as SQL statements are being compiled\n** by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()],\n** [sqlite3_prepare_v3()], [sqlite3_prepare16()], [sqlite3_prepare16_v2()],\n** and [sqlite3_prepare16_v3()].  ^At various\n** points during the compilation process, as logic is being created\n** to perform various actions, the authorizer callback is invoked to\n** see if those actions are allowed.  ^The authorizer callback should\n** return [SQLITE_OK] to allow the action, [SQLITE_IGNORE] to disallow the\n** specific action but allow the SQL statement to continue to be\n** compiled, or [SQLITE_DENY] to cause the entire SQL statement to be\n** rejected with an error.  ^If the authorizer callback returns\n** any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY]\n** then the [sqlite3_prepare_v2()] or equivalent call that triggered\n** the authorizer will fail with an error message.\n**\n** When the callback returns [SQLITE_OK], that means the operation\n** requested is ok.  ^When the callback returns [SQLITE_DENY], the\n** [sqlite3_prepare_v2()] or equivalent call that triggered the\n** authorizer will fail with an error message explaining that\n** access is denied. \n**\n** ^The first parameter to the authorizer callback is a copy of the third\n** parameter to the sqlite3_set_authorizer() interface. ^The second parameter\n** to the callback is an integer [SQLITE_COPY | action code] that specifies\n** the particular action to be authorized. ^The third through sixth parameters\n** to the callback are either NULL pointers or zero-terminated strings\n** that contain additional details about the action to be authorized.\n** Applications must always be prepared to encounter a NULL pointer in any\n** of the third through the sixth parameters of the authorization callback.\n**\n** ^If the action code is [SQLITE_READ]\n** and the callback returns [SQLITE_IGNORE] then the\n** [prepared statement] statement is constructed to substitute\n** a NULL value in place of the table column that would have\n** been read if [SQLITE_OK] had been returned.  The [SQLITE_IGNORE]\n** return can be used to deny an untrusted user access to individual\n** columns of a table.\n** ^When a table is referenced by a [SELECT] but no column values are\n** extracted from that table (for example in a query like\n** \"SELECT count(*) FROM tab\") then the [SQLITE_READ] authorizer callback\n** is invoked once for that table with a column name that is an empty string.\n** ^If the action code is [SQLITE_DELETE] and the callback returns\n** [SQLITE_IGNORE] then the [DELETE] operation proceeds but the\n** [truncate optimization] is disabled and all rows are deleted individually.\n**\n** An authorizer is used when [sqlite3_prepare | preparing]\n** SQL statements from an untrusted source, to ensure that the SQL statements\n** do not try to access data they are not allowed to see, or that they do not\n** try to execute malicious statements that damage the database.  For\n** example, an application may allow a user to enter arbitrary\n** SQL queries for evaluation by a database.  But the application does\n** not want the user to be able to make arbitrary changes to the\n** database.  An authorizer could then be put in place while the\n** user-entered SQL is being [sqlite3_prepare | prepared] that\n** disallows everything except [SELECT] statements.\n**\n** Applications that need to process SQL from untrusted sources\n** might also consider lowering resource limits using [sqlite3_limit()]\n** and limiting database size using the [max_page_count] [PRAGMA]\n** in addition to using an authorizer.\n**\n** ^(Only a single authorizer can be in place on a database connection\n** at a time.  Each call to sqlite3_set_authorizer overrides the\n** previous call.)^  ^Disable the authorizer by installing a NULL callback.\n** The authorizer is disabled by default.\n**\n** The authorizer callback must not do anything that will modify\n** the database connection that invoked the authorizer callback.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^When [sqlite3_prepare_v2()] is used to prepare a statement, the\n** statement might be re-prepared during [sqlite3_step()] due to a \n** schema change.  Hence, the application should ensure that the\n** correct authorizer callback remains in place during the [sqlite3_step()].\n**\n** ^Note that the authorizer callback is invoked only during\n** [sqlite3_prepare()] or its variants.  Authorization is not\n** performed during statement evaluation in [sqlite3_step()], unless\n** as stated in the previous paragraph, sqlite3_step() invokes\n** sqlite3_prepare_v2() to reprepare a statement after a schema change.\n*/\nSQLITE_API int sqlite3_set_authorizer(\n  sqlite3*,\n  int (*xAuth)(void*,int,const char*,const char*,const char*,const char*),\n  void *pUserData\n);\n\n/*\n** CAPI3REF: Authorizer Return Codes\n**\n** The [sqlite3_set_authorizer | authorizer callback function] must\n** return either [SQLITE_OK] or one of these two constants in order\n** to signal SQLite whether or not the action is permitted.  See the\n** [sqlite3_set_authorizer | authorizer documentation] for additional\n** information.\n**\n** Note that SQLITE_IGNORE is also used as a [conflict resolution mode]\n** returned from the [sqlite3_vtab_on_conflict()] interface.\n*/\n#define SQLITE_DENY   1   /* Abort the SQL statement with an error */\n#define SQLITE_IGNORE 2   /* Don't allow access, but don't generate an error */\n\n/*\n** CAPI3REF: Authorizer Action Codes\n**\n** The [sqlite3_set_authorizer()] interface registers a callback function\n** that is invoked to authorize certain SQL statement actions.  The\n** second parameter to the callback is an integer code that specifies\n** what action is being authorized.  These are the integer action codes that\n** the authorizer callback may be passed.\n**\n** These action code values signify what kind of operation is to be\n** authorized.  The 3rd and 4th parameters to the authorization\n** callback function will be parameters or NULL depending on which of these\n** codes is used as the second parameter.  ^(The 5th parameter to the\n** authorizer callback is the name of the database (\"main\", \"temp\",\n** etc.) if applicable.)^  ^The 6th parameter to the authorizer callback\n** is the name of the inner-most trigger or view that is responsible for\n** the access attempt or NULL if this access attempt is directly from\n** top-level SQL code.\n*/\n/******************************************* 3rd ************ 4th ***********/\n#define SQLITE_CREATE_INDEX          1   /* Index Name      Table Name      */\n#define SQLITE_CREATE_TABLE          2   /* Table Name      NULL            */\n#define SQLITE_CREATE_TEMP_INDEX     3   /* Index Name      Table Name      */\n#define SQLITE_CREATE_TEMP_TABLE     4   /* Table Name      NULL            */\n#define SQLITE_CREATE_TEMP_TRIGGER   5   /* Trigger Name    Table Name      */\n#define SQLITE_CREATE_TEMP_VIEW      6   /* View Name       NULL            */\n#define SQLITE_CREATE_TRIGGER        7   /* Trigger Name    Table Name      */\n#define SQLITE_CREATE_VIEW           8   /* View Name       NULL            */\n#define SQLITE_DELETE                9   /* Table Name      NULL            */\n#define SQLITE_DROP_INDEX           10   /* Index Name      Table Name      */\n#define SQLITE_DROP_TABLE           11   /* Table Name      NULL            */\n#define SQLITE_DROP_TEMP_INDEX      12   /* Index Name      Table Name      */\n#define SQLITE_DROP_TEMP_TABLE      13   /* Table Name      NULL            */\n#define SQLITE_DROP_TEMP_TRIGGER    14   /* Trigger Name    Table Name      */\n#define SQLITE_DROP_TEMP_VIEW       15   /* View Name       NULL            */\n#define SQLITE_DROP_TRIGGER         16   /* Trigger Name    Table Name      */\n#define SQLITE_DROP_VIEW            17   /* View Name       NULL            */\n#define SQLITE_INSERT               18   /* Table Name      NULL            */\n#define SQLITE_PRAGMA               19   /* Pragma Name     1st arg or NULL */\n#define SQLITE_READ                 20   /* Table Name      Column Name     */\n#define SQLITE_SELECT               21   /* NULL            NULL            */\n#define SQLITE_TRANSACTION          22   /* Operation       NULL            */\n#define SQLITE_UPDATE               23   /* Table Name      Column Name     */\n#define SQLITE_ATTACH               24   /* Filename        NULL            */\n#define SQLITE_DETACH               25   /* Database Name   NULL            */\n#define SQLITE_ALTER_TABLE          26   /* Database Name   Table Name      */\n#define SQLITE_REINDEX              27   /* Index Name      NULL            */\n#define SQLITE_ANALYZE              28   /* Table Name      NULL            */\n#define SQLITE_CREATE_VTABLE        29   /* Table Name      Module Name     */\n#define SQLITE_DROP_VTABLE          30   /* Table Name      Module Name     */\n#define SQLITE_FUNCTION             31   /* NULL            Function Name   */\n#define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */\n#define SQLITE_COPY                  0   /* No longer used */\n#define SQLITE_RECURSIVE            33   /* NULL            NULL            */\n\n/*\n** CAPI3REF: Tracing And Profiling Functions\n** METHOD: sqlite3\n**\n** These routines are deprecated. Use the [sqlite3_trace_v2()] interface\n** instead of the routines described here.\n**\n** These routines register callback functions that can be used for\n** tracing and profiling the execution of SQL statements.\n**\n** ^The callback function registered by sqlite3_trace() is invoked at\n** various times when an SQL statement is being run by [sqlite3_step()].\n** ^The sqlite3_trace() callback is invoked with a UTF-8 rendering of the\n** SQL statement text as the statement first begins executing.\n** ^(Additional sqlite3_trace() callbacks might occur\n** as each triggered subprogram is entered.  The callbacks for triggers\n** contain a UTF-8 SQL comment that identifies the trigger.)^\n**\n** The [SQLITE_TRACE_SIZE_LIMIT] compile-time option can be used to limit\n** the length of [bound parameter] expansion in the output of sqlite3_trace().\n**\n** ^The callback function registered by sqlite3_profile() is invoked\n** as each SQL statement finishes.  ^The profile callback contains\n** the original statement text and an estimate of wall-clock time\n** of how long that statement took to run.  ^The profile callback\n** time is in units of nanoseconds, however the current implementation\n** is only capable of millisecond resolution so the six least significant\n** digits in the time are meaningless.  Future versions of SQLite\n** might provide greater resolution on the profiler callback.  The\n** sqlite3_profile() function is considered experimental and is\n** subject to change in future versions of SQLite.\n*/\nSQLITE_API SQLITE_DEPRECATED void *sqlite3_trace(sqlite3*,\n   void(*xTrace)(void*,const char*), void*);\nSQLITE_API SQLITE_DEPRECATED void *sqlite3_profile(sqlite3*,\n   void(*xProfile)(void*,const char*,sqlite3_uint64), void*);\n\n/*\n** CAPI3REF: SQL Trace Event Codes\n** KEYWORDS: SQLITE_TRACE\n**\n** These constants identify classes of events that can be monitored\n** using the [sqlite3_trace_v2()] tracing logic.  The M argument\n** to [sqlite3_trace_v2(D,M,X,P)] is an OR-ed combination of one or more of\n** the following constants.  ^The first argument to the trace callback\n** is one of the following constants.\n**\n** New tracing constants may be added in future releases.\n**\n** ^A trace callback has four arguments: xCallback(T,C,P,X).\n** ^The T argument is one of the integer type codes above.\n** ^The C argument is a copy of the context pointer passed in as the\n** fourth argument to [sqlite3_trace_v2()].\n** The P and X arguments are pointers whose meanings depend on T.\n**\n** <dl>\n** [[SQLITE_TRACE_STMT]] <dt>SQLITE_TRACE_STMT</dt>\n** <dd>^An SQLITE_TRACE_STMT callback is invoked when a prepared statement\n** first begins running and possibly at other times during the\n** execution of the prepared statement, such as at the start of each\n** trigger subprogram. ^The P argument is a pointer to the\n** [prepared statement]. ^The X argument is a pointer to a string which\n** is the unexpanded SQL text of the prepared statement or an SQL comment \n** that indicates the invocation of a trigger.  ^The callback can compute\n** the same text that would have been returned by the legacy [sqlite3_trace()]\n** interface by using the X argument when X begins with \"--\" and invoking\n** [sqlite3_expanded_sql(P)] otherwise.\n**\n** [[SQLITE_TRACE_PROFILE]] <dt>SQLITE_TRACE_PROFILE</dt>\n** <dd>^An SQLITE_TRACE_PROFILE callback provides approximately the same\n** information as is provided by the [sqlite3_profile()] callback.\n** ^The P argument is a pointer to the [prepared statement] and the\n** X argument points to a 64-bit integer which is the estimated of\n** the number of nanosecond that the prepared statement took to run.\n** ^The SQLITE_TRACE_PROFILE callback is invoked when the statement finishes.\n**\n** [[SQLITE_TRACE_ROW]] <dt>SQLITE_TRACE_ROW</dt>\n** <dd>^An SQLITE_TRACE_ROW callback is invoked whenever a prepared\n** statement generates a single row of result.  \n** ^The P argument is a pointer to the [prepared statement] and the\n** X argument is unused.\n**\n** [[SQLITE_TRACE_CLOSE]] <dt>SQLITE_TRACE_CLOSE</dt>\n** <dd>^An SQLITE_TRACE_CLOSE callback is invoked when a database\n** connection closes.\n** ^The P argument is a pointer to the [database connection] object\n** and the X argument is unused.\n** </dl>\n*/\n#define SQLITE_TRACE_STMT       0x01\n#define SQLITE_TRACE_PROFILE    0x02\n#define SQLITE_TRACE_ROW        0x04\n#define SQLITE_TRACE_CLOSE      0x08\n\n/*\n** CAPI3REF: SQL Trace Hook\n** METHOD: sqlite3\n**\n** ^The sqlite3_trace_v2(D,M,X,P) interface registers a trace callback\n** function X against [database connection] D, using property mask M\n** and context pointer P.  ^If the X callback is\n** NULL or if the M mask is zero, then tracing is disabled.  The\n** M argument should be the bitwise OR-ed combination of\n** zero or more [SQLITE_TRACE] constants.\n**\n** ^Each call to either sqlite3_trace() or sqlite3_trace_v2() overrides \n** (cancels) any prior calls to sqlite3_trace() or sqlite3_trace_v2().\n**\n** ^The X callback is invoked whenever any of the events identified by \n** mask M occur.  ^The integer return value from the callback is currently\n** ignored, though this may change in future releases.  Callback\n** implementations should return zero to ensure future compatibility.\n**\n** ^A trace callback is invoked with four arguments: callback(T,C,P,X).\n** ^The T argument is one of the [SQLITE_TRACE]\n** constants to indicate why the callback was invoked.\n** ^The C argument is a copy of the context pointer.\n** The P and X arguments are pointers whose meanings depend on T.\n**\n** The sqlite3_trace_v2() interface is intended to replace the legacy\n** interfaces [sqlite3_trace()] and [sqlite3_profile()], both of which\n** are deprecated.\n*/\nSQLITE_API int sqlite3_trace_v2(\n  sqlite3*,\n  unsigned uMask,\n  int(*xCallback)(unsigned,void*,void*,void*),\n  void *pCtx\n);\n\n/*\n** CAPI3REF: Query Progress Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_progress_handler(D,N,X,P) interface causes the callback\n** function X to be invoked periodically during long running calls to\n** [sqlite3_exec()], [sqlite3_step()] and [sqlite3_get_table()] for\n** database connection D.  An example use for this\n** interface is to keep a GUI updated during a large query.\n**\n** ^The parameter P is passed through as the only parameter to the \n** callback function X.  ^The parameter N is the approximate number of \n** [virtual machine instructions] that are evaluated between successive\n** invocations of the callback X.  ^If N is less than one then the progress\n** handler is disabled.\n**\n** ^Only a single progress handler may be defined at one time per\n** [database connection]; setting a new progress handler cancels the\n** old one.  ^Setting parameter X to NULL disables the progress handler.\n** ^The progress handler is also disabled by setting N to a value less\n** than 1.\n**\n** ^If the progress callback returns non-zero, the operation is\n** interrupted.  This feature can be used to implement a\n** \"Cancel\" button on a GUI progress dialog box.\n**\n** The progress handler callback must not do anything that will modify\n** the database connection that invoked the progress handler.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n*/\nSQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);\n\n/*\n** CAPI3REF: Opening A New Database Connection\n** CONSTRUCTOR: sqlite3\n**\n** ^These routines open an SQLite database file as specified by the \n** filename argument. ^The filename argument is interpreted as UTF-8 for\n** sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte\n** order for sqlite3_open16(). ^(A [database connection] handle is usually\n** returned in *ppDb, even if an error occurs.  The only exception is that\n** if SQLite is unable to allocate memory to hold the [sqlite3] object,\n** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]\n** object.)^ ^(If the database is opened (and/or created) successfully, then\n** [SQLITE_OK] is returned.  Otherwise an [error code] is returned.)^ ^The\n** [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain\n** an English language description of the error following a failure of any\n** of the sqlite3_open() routines.\n**\n** ^The default encoding will be UTF-8 for databases created using\n** sqlite3_open() or sqlite3_open_v2().  ^The default encoding for databases\n** created using sqlite3_open16() will be UTF-16 in the native byte order.\n**\n** Whether or not an error occurs when it is opened, resources\n** associated with the [database connection] handle should be released by\n** passing it to [sqlite3_close()] when it is no longer required.\n**\n** The sqlite3_open_v2() interface works like sqlite3_open()\n** except that it accepts two additional parameters for additional control\n** over the new database connection.  ^(The flags parameter to\n** sqlite3_open_v2() can take one of\n** the following three values, optionally combined with the \n** [SQLITE_OPEN_NOMUTEX], [SQLITE_OPEN_FULLMUTEX], [SQLITE_OPEN_SHAREDCACHE],\n** [SQLITE_OPEN_PRIVATECACHE], and/or [SQLITE_OPEN_URI] flags:)^\n**\n** <dl>\n** ^(<dt>[SQLITE_OPEN_READONLY]</dt>\n** <dd>The database is opened in read-only mode.  If the database does not\n** already exist, an error is returned.</dd>)^\n**\n** ^(<dt>[SQLITE_OPEN_READWRITE]</dt>\n** <dd>The database is opened for reading and writing if possible, or reading\n** only if the file is write protected by the operating system.  In either\n** case the database must already exist, otherwise an error is returned.</dd>)^\n**\n** ^(<dt>[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]</dt>\n** <dd>The database is opened for reading and writing, and is created if\n** it does not already exist. This is the behavior that is always used for\n** sqlite3_open() and sqlite3_open16().</dd>)^\n** </dl>\n**\n** If the 3rd parameter to sqlite3_open_v2() is not one of the\n** combinations shown above optionally combined with other\n** [SQLITE_OPEN_READONLY | SQLITE_OPEN_* bits]\n** then the behavior is undefined.\n**\n** ^If the [SQLITE_OPEN_NOMUTEX] flag is set, then the database connection\n** opens in the multi-thread [threading mode] as long as the single-thread\n** mode has not been set at compile-time or start-time.  ^If the\n** [SQLITE_OPEN_FULLMUTEX] flag is set then the database connection opens\n** in the serialized [threading mode] unless single-thread was\n** previously selected at compile-time or start-time.\n** ^The [SQLITE_OPEN_SHAREDCACHE] flag causes the database connection to be\n** eligible to use [shared cache mode], regardless of whether or not shared\n** cache is enabled using [sqlite3_enable_shared_cache()].  ^The\n** [SQLITE_OPEN_PRIVATECACHE] flag causes the database connection to not\n** participate in [shared cache mode] even if it is enabled.\n**\n** ^The fourth parameter to sqlite3_open_v2() is the name of the\n** [sqlite3_vfs] object that defines the operating system interface that\n** the new database connection should use.  ^If the fourth parameter is\n** a NULL pointer then the default [sqlite3_vfs] object is used.\n**\n** ^If the filename is \":memory:\", then a private, temporary in-memory database\n** is created for the connection.  ^This in-memory database will vanish when\n** the database connection is closed.  Future versions of SQLite might\n** make use of additional special filenames that begin with the \":\" character.\n** It is recommended that when a database filename actually does begin with\n** a \":\" character you should prefix the filename with a pathname such as\n** \"./\" to avoid ambiguity.\n**\n** ^If the filename is an empty string, then a private, temporary\n** on-disk database will be created.  ^This private database will be\n** automatically deleted as soon as the database connection is closed.\n**\n** [[URI filenames in sqlite3_open()]] <h3>URI Filenames</h3>\n**\n** ^If [URI filename] interpretation is enabled, and the filename argument\n** begins with \"file:\", then the filename is interpreted as a URI. ^URI\n** filename interpretation is enabled if the [SQLITE_OPEN_URI] flag is\n** set in the third argument to sqlite3_open_v2(), or if it has\n** been enabled globally using the [SQLITE_CONFIG_URI] option with the\n** [sqlite3_config()] method or by the [SQLITE_USE_URI] compile-time option.\n** URI filename interpretation is turned off\n** by default, but future releases of SQLite might enable URI filename\n** interpretation by default.  See \"[URI filenames]\" for additional\n** information.\n**\n** URI filenames are parsed according to RFC 3986. ^If the URI contains an\n** authority, then it must be either an empty string or the string \n** \"localhost\". ^If the authority is not an empty string or \"localhost\", an \n** error is returned to the caller. ^The fragment component of a URI, if \n** present, is ignored.\n**\n** ^SQLite uses the path component of the URI as the name of the disk file\n** which contains the database. ^If the path begins with a '/' character, \n** then it is interpreted as an absolute path. ^If the path does not begin \n** with a '/' (meaning that the authority section is omitted from the URI)\n** then the path is interpreted as a relative path. \n** ^(On windows, the first component of an absolute path \n** is a drive specification (e.g. \"C:\").)^\n**\n** [[core URI query parameters]]\n** The query component of a URI may contain parameters that are interpreted\n** either by SQLite itself, or by a [VFS | custom VFS implementation].\n** SQLite and its built-in [VFSes] interpret the\n** following query parameters:\n**\n** <ul>\n**   <li> <b>vfs</b>: ^The \"vfs\" parameter may be used to specify the name of\n**     a VFS object that provides the operating system interface that should\n**     be used to access the database file on disk. ^If this option is set to\n**     an empty string the default VFS object is used. ^Specifying an unknown\n**     VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is\n**     present, then the VFS specified by the option takes precedence over\n**     the value passed as the fourth parameter to sqlite3_open_v2().\n**\n**   <li> <b>mode</b>: ^(The mode parameter may be set to either \"ro\", \"rw\",\n**     \"rwc\", or \"memory\". Attempting to set it to any other value is\n**     an error)^. \n**     ^If \"ro\" is specified, then the database is opened for read-only \n**     access, just as if the [SQLITE_OPEN_READONLY] flag had been set in the \n**     third argument to sqlite3_open_v2(). ^If the mode option is set to \n**     \"rw\", then the database is opened for read-write (but not create) \n**     access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had \n**     been set. ^Value \"rwc\" is equivalent to setting both \n**     SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE.  ^If the mode option is\n**     set to \"memory\" then a pure [in-memory database] that never reads\n**     or writes from disk is used. ^It is an error to specify a value for\n**     the mode parameter that is less restrictive than that specified by\n**     the flags passed in the third parameter to sqlite3_open_v2().\n**\n**   <li> <b>cache</b>: ^The cache parameter may be set to either \"shared\" or\n**     \"private\". ^Setting it to \"shared\" is equivalent to setting the\n**     SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to\n**     sqlite3_open_v2(). ^Setting the cache parameter to \"private\" is \n**     equivalent to setting the SQLITE_OPEN_PRIVATECACHE bit.\n**     ^If sqlite3_open_v2() is used and the \"cache\" parameter is present in\n**     a URI filename, its value overrides any behavior requested by setting\n**     SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag.\n**\n**  <li> <b>psow</b>: ^The psow parameter indicates whether or not the\n**     [powersafe overwrite] property does or does not apply to the\n**     storage media on which the database file resides.\n**\n**  <li> <b>nolock</b>: ^The nolock parameter is a boolean query parameter\n**     which if set disables file locking in rollback journal modes.  This\n**     is useful for accessing a database on a filesystem that does not\n**     support locking.  Caution:  Database corruption might result if two\n**     or more processes write to the same database and any one of those\n**     processes uses nolock=1.\n**\n**  <li> <b>immutable</b>: ^The immutable parameter is a boolean query\n**     parameter that indicates that the database file is stored on\n**     read-only media.  ^When immutable is set, SQLite assumes that the\n**     database file cannot be changed, even by a process with higher\n**     privilege, and so the database is opened read-only and all locking\n**     and change detection is disabled.  Caution: Setting the immutable\n**     property on a database file that does in fact change can result\n**     in incorrect query results and/or [SQLITE_CORRUPT] errors.\n**     See also: [SQLITE_IOCAP_IMMUTABLE].\n**       \n** </ul>\n**\n** ^Specifying an unknown parameter in the query component of a URI is not an\n** error.  Future versions of SQLite might understand additional query\n** parameters.  See \"[query parameters with special meaning to SQLite]\" for\n** additional information.\n**\n** [[URI filename examples]] <h3>URI filename examples</h3>\n**\n** <table border=\"1\" align=center cellpadding=5>\n** <tr><th> URI filenames <th> Results\n** <tr><td> file:data.db <td> \n**          Open the file \"data.db\" in the current directory.\n** <tr><td> file:/home/fred/data.db<br>\n**          file:///home/fred/data.db <br> \n**          file://localhost/home/fred/data.db <br> <td> \n**          Open the database file \"/home/fred/data.db\".\n** <tr><td> file://darkstar/home/fred/data.db <td> \n**          An error. \"darkstar\" is not a recognized authority.\n** <tr><td style=\"white-space:nowrap\"> \n**          file:///C:/Documents%20and%20Settings/fred/Desktop/data.db\n**     <td> Windows only: Open the file \"data.db\" on fred's desktop on drive\n**          C:. Note that the %20 escaping in this example is not strictly \n**          necessary - space characters can be used literally\n**          in URI filenames.\n** <tr><td> file:data.db?mode=ro&cache=private <td> \n**          Open file \"data.db\" in the current directory for read-only access.\n**          Regardless of whether or not shared-cache mode is enabled by\n**          default, use a private cache.\n** <tr><td> file:/home/fred/data.db?vfs=unix-dotfile <td>\n**          Open file \"/home/fred/data.db\". Use the special VFS \"unix-dotfile\"\n**          that uses dot-files in place of posix advisory locking.\n** <tr><td> file:data.db?mode=readonly <td> \n**          An error. \"readonly\" is not a valid option for the \"mode\" parameter.\n** </table>\n**\n** ^URI hexadecimal escape sequences (%HH) are supported within the path and\n** query components of a URI. A hexadecimal escape sequence consists of a\n** percent sign - \"%\" - followed by exactly two hexadecimal digits \n** specifying an octet value. ^Before the path or query components of a\n** URI filename are interpreted, they are encoded using UTF-8 and all \n** hexadecimal escape sequences replaced by a single byte containing the\n** corresponding octet. If this process generates an invalid UTF-8 encoding,\n** the results are undefined.\n**\n** <b>Note to Windows users:</b>  The encoding used for the filename argument\n** of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever\n** codepage is currently defined.  Filenames containing international\n** characters must be converted to UTF-8 prior to passing them into\n** sqlite3_open() or sqlite3_open_v2().\n**\n** <b>Note to Windows Runtime users:</b>  The temporary directory must be set\n** prior to calling sqlite3_open() or sqlite3_open_v2().  Otherwise, various\n** features that require the use of temporary files may fail.\n**\n** See also: [sqlite3_temp_directory]\n*/\nSQLITE_API int sqlite3_open(\n  const char *filename,   /* Database filename (UTF-8) */\n  sqlite3 **ppDb          /* OUT: SQLite db handle */\n);\nSQLITE_API int sqlite3_open16(\n  const void *filename,   /* Database filename (UTF-16) */\n  sqlite3 **ppDb          /* OUT: SQLite db handle */\n);\nSQLITE_API int sqlite3_open_v2(\n  const char *filename,   /* Database filename (UTF-8) */\n  sqlite3 **ppDb,         /* OUT: SQLite db handle */\n  int flags,              /* Flags */\n  const char *zVfs        /* Name of VFS module to use */\n);\n\n/*\n** CAPI3REF: Obtain Values For URI Parameters\n**\n** These are utility routines, useful to VFS implementations, that check\n** to see if a database file was a URI that contained a specific query \n** parameter, and if so obtains the value of that query parameter.\n**\n** If F is the database filename pointer passed into the xOpen() method of \n** a VFS implementation when the flags parameter to xOpen() has one or \n** more of the [SQLITE_OPEN_URI] or [SQLITE_OPEN_MAIN_DB] bits set and\n** P is the name of the query parameter, then\n** sqlite3_uri_parameter(F,P) returns the value of the P\n** parameter if it exists or a NULL pointer if P does not appear as a \n** query parameter on F.  If P is a query parameter of F\n** has no explicit value, then sqlite3_uri_parameter(F,P) returns\n** a pointer to an empty string.\n**\n** The sqlite3_uri_boolean(F,P,B) routine assumes that P is a boolean\n** parameter and returns true (1) or false (0) according to the value\n** of P.  The sqlite3_uri_boolean(F,P,B) routine returns true (1) if the\n** value of query parameter P is one of \"yes\", \"true\", or \"on\" in any\n** case or if the value begins with a non-zero number.  The \n** sqlite3_uri_boolean(F,P,B) routines returns false (0) if the value of\n** query parameter P is one of \"no\", \"false\", or \"off\" in any case or\n** if the value begins with a numeric zero.  If P is not a query\n** parameter on F or if the value of P is does not match any of the\n** above, then sqlite3_uri_boolean(F,P,B) returns (B!=0).\n**\n** The sqlite3_uri_int64(F,P,D) routine converts the value of P into a\n** 64-bit signed integer and returns that integer, or D if P does not\n** exist.  If the value of P is something other than an integer, then\n** zero is returned.\n** \n** If F is a NULL pointer, then sqlite3_uri_parameter(F,P) returns NULL and\n** sqlite3_uri_boolean(F,P,B) returns B.  If F is not a NULL pointer and\n** is not a database file pathname pointer that SQLite passed into the xOpen\n** VFS method, then the behavior of this routine is undefined and probably\n** undesirable.\n*/\nSQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam);\nSQLITE_API int sqlite3_uri_boolean(const char *zFile, const char *zParam, int bDefault);\nSQLITE_API sqlite3_int64 sqlite3_uri_int64(const char*, const char*, sqlite3_int64);\n\n\n/*\n** CAPI3REF: Error Codes And Messages\n** METHOD: sqlite3\n**\n** ^If the most recent sqlite3_* API call associated with \n** [database connection] D failed, then the sqlite3_errcode(D) interface\n** returns the numeric [result code] or [extended result code] for that\n** API call.\n** If the most recent API call was successful,\n** then the return value from sqlite3_errcode() is undefined.\n** ^The sqlite3_extended_errcode()\n** interface is the same except that it always returns the \n** [extended result code] even when extended result codes are\n** disabled.\n**\n** ^The sqlite3_errmsg() and sqlite3_errmsg16() return English-language\n** text that describes the error, as either UTF-8 or UTF-16 respectively.\n** ^(Memory to hold the error message string is managed internally.\n** The application does not need to worry about freeing the result.\n** However, the error string might be overwritten or deallocated by\n** subsequent calls to other SQLite interface functions.)^\n**\n** ^The sqlite3_errstr() interface returns the English-language text\n** that describes the [result code], as UTF-8.\n** ^(Memory to hold the error message string is managed internally\n** and must not be freed by the application)^.\n**\n** When the serialized [threading mode] is in use, it might be the\n** case that a second error occurs on a separate thread in between\n** the time of the first error and the call to these interfaces.\n** When that happens, the second error will be reported since these\n** interfaces always report the most recent result.  To avoid\n** this, each thread can obtain exclusive use of the [database connection] D\n** by invoking [sqlite3_mutex_enter]([sqlite3_db_mutex](D)) before beginning\n** to use D and invoking [sqlite3_mutex_leave]([sqlite3_db_mutex](D)) after\n** all calls to the interfaces listed here are completed.\n**\n** If an interface fails with SQLITE_MISUSE, that means the interface\n** was invoked incorrectly by the application.  In that case, the\n** error code and message may or may not be set.\n*/\nSQLITE_API int sqlite3_errcode(sqlite3 *db);\nSQLITE_API int sqlite3_extended_errcode(sqlite3 *db);\nSQLITE_API const char *sqlite3_errmsg(sqlite3*);\nSQLITE_API const void *sqlite3_errmsg16(sqlite3*);\nSQLITE_API const char *sqlite3_errstr(int);\n\n/*\n** CAPI3REF: Prepared Statement Object\n** KEYWORDS: {prepared statement} {prepared statements}\n**\n** An instance of this object represents a single SQL statement that\n** has been compiled into binary form and is ready to be evaluated.\n**\n** Think of each SQL statement as a separate computer program.  The\n** original SQL text is source code.  A prepared statement object \n** is the compiled object code.  All SQL must be converted into a\n** prepared statement before it can be run.\n**\n** The life-cycle of a prepared statement object usually goes like this:\n**\n** <ol>\n** <li> Create the prepared statement object using [sqlite3_prepare_v2()].\n** <li> Bind values to [parameters] using the sqlite3_bind_*()\n**      interfaces.\n** <li> Run the SQL by calling [sqlite3_step()] one or more times.\n** <li> Reset the prepared statement using [sqlite3_reset()] then go back\n**      to step 2.  Do this zero or more times.\n** <li> Destroy the object using [sqlite3_finalize()].\n** </ol>\n*/\ntypedef struct sqlite3_stmt sqlite3_stmt;\n\n/*\n** CAPI3REF: Run-time Limits\n** METHOD: sqlite3\n**\n** ^(This interface allows the size of various constructs to be limited\n** on a connection by connection basis.  The first parameter is the\n** [database connection] whose limit is to be set or queried.  The\n** second parameter is one of the [limit categories] that define a\n** class of constructs to be size limited.  The third parameter is the\n** new limit for that construct.)^\n**\n** ^If the new limit is a negative number, the limit is unchanged.\n** ^(For each limit category SQLITE_LIMIT_<i>NAME</i> there is a \n** [limits | hard upper bound]\n** set at compile-time by a C preprocessor macro called\n** [limits | SQLITE_MAX_<i>NAME</i>].\n** (The \"_LIMIT_\" in the name is changed to \"_MAX_\".))^\n** ^Attempts to increase a limit above its hard upper bound are\n** silently truncated to the hard upper bound.\n**\n** ^Regardless of whether or not the limit was changed, the \n** [sqlite3_limit()] interface returns the prior value of the limit.\n** ^Hence, to find the current value of a limit without changing it,\n** simply invoke this interface with the third parameter set to -1.\n**\n** Run-time limits are intended for use in applications that manage\n** both their own internal database and also databases that are controlled\n** by untrusted external sources.  An example application might be a\n** web browser that has its own databases for storing history and\n** separate databases controlled by JavaScript applications downloaded\n** off the Internet.  The internal databases can be given the\n** large, default limits.  Databases managed by external sources can\n** be given much smaller limits designed to prevent a denial of service\n** attack.  Developers might also want to use the [sqlite3_set_authorizer()]\n** interface to further control untrusted SQL.  The size of the database\n** created by an untrusted script can be contained using the\n** [max_page_count] [PRAGMA].\n**\n** New run-time limit categories may be added in future releases.\n*/\nSQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);\n\n/*\n** CAPI3REF: Run-Time Limit Categories\n** KEYWORDS: {limit category} {*limit categories}\n**\n** These constants define various performance limits\n** that can be lowered at run-time using [sqlite3_limit()].\n** The synopsis of the meanings of the various limits is shown below.\n** Additional information is available at [limits | Limits in SQLite].\n**\n** <dl>\n** [[SQLITE_LIMIT_LENGTH]] ^(<dt>SQLITE_LIMIT_LENGTH</dt>\n** <dd>The maximum size of any string or BLOB or table row, in bytes.<dd>)^\n**\n** [[SQLITE_LIMIT_SQL_LENGTH]] ^(<dt>SQLITE_LIMIT_SQL_LENGTH</dt>\n** <dd>The maximum length of an SQL statement, in bytes.</dd>)^\n**\n** [[SQLITE_LIMIT_COLUMN]] ^(<dt>SQLITE_LIMIT_COLUMN</dt>\n** <dd>The maximum number of columns in a table definition or in the\n** result set of a [SELECT] or the maximum number of columns in an index\n** or in an ORDER BY or GROUP BY clause.</dd>)^\n**\n** [[SQLITE_LIMIT_EXPR_DEPTH]] ^(<dt>SQLITE_LIMIT_EXPR_DEPTH</dt>\n** <dd>The maximum depth of the parse tree on any expression.</dd>)^\n**\n** [[SQLITE_LIMIT_COMPOUND_SELECT]] ^(<dt>SQLITE_LIMIT_COMPOUND_SELECT</dt>\n** <dd>The maximum number of terms in a compound SELECT statement.</dd>)^\n**\n** [[SQLITE_LIMIT_VDBE_OP]] ^(<dt>SQLITE_LIMIT_VDBE_OP</dt>\n** <dd>The maximum number of instructions in a virtual machine program\n** used to implement an SQL statement.  If [sqlite3_prepare_v2()] or\n** the equivalent tries to allocate space for more than this many opcodes\n** in a single prepared statement, an SQLITE_NOMEM error is returned.</dd>)^\n**\n** [[SQLITE_LIMIT_FUNCTION_ARG]] ^(<dt>SQLITE_LIMIT_FUNCTION_ARG</dt>\n** <dd>The maximum number of arguments on a function.</dd>)^\n**\n** [[SQLITE_LIMIT_ATTACHED]] ^(<dt>SQLITE_LIMIT_ATTACHED</dt>\n** <dd>The maximum number of [ATTACH | attached databases].)^</dd>\n**\n** [[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]]\n** ^(<dt>SQLITE_LIMIT_LIKE_PATTERN_LENGTH</dt>\n** <dd>The maximum length of the pattern argument to the [LIKE] or\n** [GLOB] operators.</dd>)^\n**\n** [[SQLITE_LIMIT_VARIABLE_NUMBER]]\n** ^(<dt>SQLITE_LIMIT_VARIABLE_NUMBER</dt>\n** <dd>The maximum index number of any [parameter] in an SQL statement.)^\n**\n** [[SQLITE_LIMIT_TRIGGER_DEPTH]] ^(<dt>SQLITE_LIMIT_TRIGGER_DEPTH</dt>\n** <dd>The maximum depth of recursion for triggers.</dd>)^\n**\n** [[SQLITE_LIMIT_WORKER_THREADS]] ^(<dt>SQLITE_LIMIT_WORKER_THREADS</dt>\n** <dd>The maximum number of auxiliary worker threads that a single\n** [prepared statement] may start.</dd>)^\n** </dl>\n*/\n#define SQLITE_LIMIT_LENGTH                    0\n#define SQLITE_LIMIT_SQL_LENGTH                1\n#define SQLITE_LIMIT_COLUMN                    2\n#define SQLITE_LIMIT_EXPR_DEPTH                3\n#define SQLITE_LIMIT_COMPOUND_SELECT           4\n#define SQLITE_LIMIT_VDBE_OP                   5\n#define SQLITE_LIMIT_FUNCTION_ARG              6\n#define SQLITE_LIMIT_ATTACHED                  7\n#define SQLITE_LIMIT_LIKE_PATTERN_LENGTH       8\n#define SQLITE_LIMIT_VARIABLE_NUMBER           9\n#define SQLITE_LIMIT_TRIGGER_DEPTH            10\n#define SQLITE_LIMIT_WORKER_THREADS           11\n\n/*\n** CAPI3REF: Prepare Flags\n**\n** These constants define various flags that can be passed into\n** \"prepFlags\" parameter of the [sqlite3_prepare_v3()] and\n** [sqlite3_prepare16_v3()] interfaces.\n**\n** New flags may be added in future releases of SQLite.\n**\n** <dl>\n** [[SQLITE_PREPARE_PERSISTENT]] ^(<dt>SQLITE_PREPARE_PERSISTENT</dt>\n** <dd>The SQLITE_PREPARE_PERSISTENT flag is a hint to the query planner\n** that the prepared statement will be retained for a long time and\n** probably reused many times.)^ ^Without this flag, [sqlite3_prepare_v3()]\n** and [sqlite3_prepare16_v3()] assume that the prepared statement will \n** be used just once or at most a few times and then destroyed using\n** [sqlite3_finalize()] relatively soon. The current implementation acts\n** on this hint by avoiding the use of [lookaside memory] so as not to\n** deplete the limited store of lookaside memory. Future versions of\n** SQLite may act on this hint differently.\n** </dl>\n*/\n#define SQLITE_PREPARE_PERSISTENT              0x01\n\n/*\n** CAPI3REF: Compiling An SQL Statement\n** KEYWORDS: {SQL statement compiler}\n** METHOD: sqlite3\n** CONSTRUCTOR: sqlite3_stmt\n**\n** To execute an SQL statement, it must first be compiled into a byte-code\n** program using one of these routines.  Or, in other words, these routines\n** are constructors for the [prepared statement] object.\n**\n** The preferred routine to use is [sqlite3_prepare_v2()].  The\n** [sqlite3_prepare()] interface is legacy and should be avoided.\n** [sqlite3_prepare_v3()] has an extra \"prepFlags\" option that is used\n** for special purposes.\n**\n** The use of the UTF-8 interfaces is preferred, as SQLite currently\n** does all parsing using UTF-8.  The UTF-16 interfaces are provided\n** as a convenience.  The UTF-16 interfaces work by converting the\n** input text into UTF-8, then invoking the corresponding UTF-8 interface.\n**\n** The first argument, \"db\", is a [database connection] obtained from a\n** prior successful call to [sqlite3_open()], [sqlite3_open_v2()] or\n** [sqlite3_open16()].  The database connection must not have been closed.\n**\n** The second argument, \"zSql\", is the statement to be compiled, encoded\n** as either UTF-8 or UTF-16.  The sqlite3_prepare(), sqlite3_prepare_v2(),\n** and sqlite3_prepare_v3()\n** interfaces use UTF-8, and sqlite3_prepare16(), sqlite3_prepare16_v2(),\n** and sqlite3_prepare16_v3() use UTF-16.\n**\n** ^If the nByte argument is negative, then zSql is read up to the\n** first zero terminator. ^If nByte is positive, then it is the\n** number of bytes read from zSql.  ^If nByte is zero, then no prepared\n** statement is generated.\n** If the caller knows that the supplied string is nul-terminated, then\n** there is a small performance advantage to passing an nByte parameter that\n** is the number of bytes in the input string <i>including</i>\n** the nul-terminator.\n**\n** ^If pzTail is not NULL then *pzTail is made to point to the first byte\n** past the end of the first SQL statement in zSql.  These routines only\n** compile the first statement in zSql, so *pzTail is left pointing to\n** what remains uncompiled.\n**\n** ^*ppStmt is left pointing to a compiled [prepared statement] that can be\n** executed using [sqlite3_step()].  ^If there is an error, *ppStmt is set\n** to NULL.  ^If the input text contains no SQL (if the input is an empty\n** string or a comment) then *ppStmt is set to NULL.\n** The calling procedure is responsible for deleting the compiled\n** SQL statement using [sqlite3_finalize()] after it has finished with it.\n** ppStmt may not be NULL.\n**\n** ^On success, the sqlite3_prepare() family of routines return [SQLITE_OK];\n** otherwise an [error code] is returned.\n**\n** The sqlite3_prepare_v2(), sqlite3_prepare_v3(), sqlite3_prepare16_v2(),\n** and sqlite3_prepare16_v3() interfaces are recommended for all new programs.\n** The older interfaces (sqlite3_prepare() and sqlite3_prepare16())\n** are retained for backwards compatibility, but their use is discouraged.\n** ^In the \"vX\" interfaces, the prepared statement\n** that is returned (the [sqlite3_stmt] object) contains a copy of the\n** original SQL text. This causes the [sqlite3_step()] interface to\n** behave differently in three ways:\n**\n** <ol>\n** <li>\n** ^If the database schema changes, instead of returning [SQLITE_SCHEMA] as it\n** always used to do, [sqlite3_step()] will automatically recompile the SQL\n** statement and try to run it again. As many as [SQLITE_MAX_SCHEMA_RETRY]\n** retries will occur before sqlite3_step() gives up and returns an error.\n** </li>\n**\n** <li>\n** ^When an error occurs, [sqlite3_step()] will return one of the detailed\n** [error codes] or [extended error codes].  ^The legacy behavior was that\n** [sqlite3_step()] would only return a generic [SQLITE_ERROR] result code\n** and the application would have to make a second call to [sqlite3_reset()]\n** in order to find the underlying cause of the problem. With the \"v2\" prepare\n** interfaces, the underlying reason for the error is returned immediately.\n** </li>\n**\n** <li>\n** ^If the specific value bound to [parameter | host parameter] in the \n** WHERE clause might influence the choice of query plan for a statement,\n** then the statement will be automatically recompiled, as if there had been \n** a schema change, on the first  [sqlite3_step()] call following any change\n** to the [sqlite3_bind_text | bindings] of that [parameter]. \n** ^The specific value of WHERE-clause [parameter] might influence the \n** choice of query plan if the parameter is the left-hand side of a [LIKE]\n** or [GLOB] operator or if the parameter is compared to an indexed column\n** and the [SQLITE_ENABLE_STAT3] compile-time option is enabled.\n** </li>\n**\n** <p>^sqlite3_prepare_v3() differs from sqlite3_prepare_v2() only in having\n** the extra prepFlags parameter, which is a bit array consisting of zero or\n** more of the [SQLITE_PREPARE_PERSISTENT|SQLITE_PREPARE_*] flags.  ^The\n** sqlite3_prepare_v2() interface works exactly the same as\n** sqlite3_prepare_v3() with a zero prepFlags parameter.\n** </ol>\n*/\nSQLITE_API int sqlite3_prepare(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare_v2(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare_v3(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16_v2(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16_v3(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\n\n/*\n** CAPI3REF: Retrieving Statement SQL\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_sql(P) interface returns a pointer to a copy of the UTF-8\n** SQL text used to create [prepared statement] P if P was\n** created by [sqlite3_prepare_v2()], [sqlite3_prepare_v3()],\n** [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()].\n** ^The sqlite3_expanded_sql(P) interface returns a pointer to a UTF-8\n** string containing the SQL text of prepared statement P with\n** [bound parameters] expanded.\n**\n** ^(For example, if a prepared statement is created using the SQL\n** text \"SELECT $abc,:xyz\" and if parameter $abc is bound to integer 2345\n** and parameter :xyz is unbound, then sqlite3_sql() will return\n** the original string, \"SELECT $abc,:xyz\" but sqlite3_expanded_sql()\n** will return \"SELECT 2345,NULL\".)^\n**\n** ^The sqlite3_expanded_sql() interface returns NULL if insufficient memory\n** is available to hold the result, or if the result would exceed the\n** the maximum string length determined by the [SQLITE_LIMIT_LENGTH].\n**\n** ^The [SQLITE_TRACE_SIZE_LIMIT] compile-time option limits the size of\n** bound parameter expansions.  ^The [SQLITE_OMIT_TRACE] compile-time\n** option causes sqlite3_expanded_sql() to always return NULL.\n**\n** ^The string returned by sqlite3_sql(P) is managed by SQLite and is\n** automatically freed when the prepared statement is finalized.\n** ^The string returned by sqlite3_expanded_sql(P), on the other hand,\n** is obtained from [sqlite3_malloc()] and must be free by the application\n** by passing it to [sqlite3_free()].\n*/\nSQLITE_API const char *sqlite3_sql(sqlite3_stmt *pStmt);\nSQLITE_API char *sqlite3_expanded_sql(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Determine If An SQL Statement Writes The Database\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if\n** and only if the [prepared statement] X makes no direct changes to\n** the content of the database file.\n**\n** Note that [application-defined SQL functions] or\n** [virtual tables] might change the database indirectly as a side effect.  \n** ^(For example, if an application defines a function \"eval()\" that \n** calls [sqlite3_exec()], then the following SQL statement would\n** change the database file through side-effects:\n**\n** <blockquote><pre>\n**    SELECT eval('DELETE FROM t1') FROM t2;\n** </pre></blockquote>\n**\n** But because the [SELECT] statement does not change the database file\n** directly, sqlite3_stmt_readonly() would still return true.)^\n**\n** ^Transaction control statements such as [BEGIN], [COMMIT], [ROLLBACK],\n** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,\n** since the statements themselves do not actually modify the database but\n** rather they control the timing of when other statements modify the \n** database.  ^The [ATTACH] and [DETACH] statements also cause\n** sqlite3_stmt_readonly() to return true since, while those statements\n** change the configuration of a database connection, they do not make \n** changes to the content of the database files on disk.\n** ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since\n** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and\n** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so\n** sqlite3_stmt_readonly() returns false for those commands.\n*/\nSQLITE_API int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Determine If A Prepared Statement Has Been Reset\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_stmt_busy(S) interface returns true (non-zero) if the\n** [prepared statement] S has been stepped at least once using \n** [sqlite3_step(S)] but has neither run to completion (returned\n** [SQLITE_DONE] from [sqlite3_step(S)]) nor\n** been reset using [sqlite3_reset(S)].  ^The sqlite3_stmt_busy(S)\n** interface returns false if S is a NULL pointer.  If S is not a \n** NULL pointer and is not a pointer to a valid [prepared statement]\n** object, then the behavior is undefined and probably undesirable.\n**\n** This interface can be used in combination [sqlite3_next_stmt()]\n** to locate all prepared statements associated with a database \n** connection that are in need of being reset.  This can be used,\n** for example, in diagnostic routines to search for prepared \n** statements that are holding a transaction open.\n*/\nSQLITE_API int sqlite3_stmt_busy(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Dynamically Typed Value Object\n** KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}\n**\n** SQLite uses the sqlite3_value object to represent all values\n** that can be stored in a database table. SQLite uses dynamic typing\n** for the values it stores.  ^Values stored in sqlite3_value objects\n** can be integers, floating point values, strings, BLOBs, or NULL.\n**\n** An sqlite3_value object may be either \"protected\" or \"unprotected\".\n** Some interfaces require a protected sqlite3_value.  Other interfaces\n** will accept either a protected or an unprotected sqlite3_value.\n** Every interface that accepts sqlite3_value arguments specifies\n** whether or not it requires a protected sqlite3_value.  The\n** [sqlite3_value_dup()] interface can be used to construct a new \n** protected sqlite3_value from an unprotected sqlite3_value.\n**\n** The terms \"protected\" and \"unprotected\" refer to whether or not\n** a mutex is held.  An internal mutex is held for a protected\n** sqlite3_value object but no mutex is held for an unprotected\n** sqlite3_value object.  If SQLite is compiled to be single-threaded\n** (with [SQLITE_THREADSAFE=0] and with [sqlite3_threadsafe()] returning 0)\n** or if SQLite is run in one of reduced mutex modes \n** [SQLITE_CONFIG_SINGLETHREAD] or [SQLITE_CONFIG_MULTITHREAD]\n** then there is no distinction between protected and unprotected\n** sqlite3_value objects and they can be used interchangeably.  However,\n** for maximum code portability it is recommended that applications\n** still make the distinction between protected and unprotected\n** sqlite3_value objects even when not strictly required.\n**\n** ^The sqlite3_value objects that are passed as parameters into the\n** implementation of [application-defined SQL functions] are protected.\n** ^The sqlite3_value object returned by\n** [sqlite3_column_value()] is unprotected.\n** Unprotected sqlite3_value objects may only be used as arguments\n** to [sqlite3_result_value()], [sqlite3_bind_value()], and\n** [sqlite3_value_dup()].\n** The [sqlite3_value_blob | sqlite3_value_type()] family of\n** interfaces require protected sqlite3_value objects.\n*/\ntypedef struct sqlite3_value sqlite3_value;\n\n/*\n** CAPI3REF: SQL Function Context Object\n**\n** The context in which an SQL function executes is stored in an\n** sqlite3_context object.  ^A pointer to an sqlite3_context object\n** is always first parameter to [application-defined SQL functions].\n** The application-defined SQL function implementation will pass this\n** pointer through into calls to [sqlite3_result_int | sqlite3_result()],\n** [sqlite3_aggregate_context()], [sqlite3_user_data()],\n** [sqlite3_context_db_handle()], [sqlite3_get_auxdata()],\n** and/or [sqlite3_set_auxdata()].\n*/\ntypedef struct sqlite3_context sqlite3_context;\n\n/*\n** CAPI3REF: Binding Values To Prepared Statements\n** KEYWORDS: {host parameter} {host parameters} {host parameter name}\n** KEYWORDS: {SQL parameter} {SQL parameters} {parameter binding}\n** METHOD: sqlite3_stmt\n**\n** ^(In the SQL statement text input to [sqlite3_prepare_v2()] and its variants,\n** literals may be replaced by a [parameter] that matches one of following\n** templates:\n**\n** <ul>\n** <li>  ?\n** <li>  ?NNN\n** <li>  :VVV\n** <li>  @VVV\n** <li>  $VVV\n** </ul>\n**\n** In the templates above, NNN represents an integer literal,\n** and VVV represents an alphanumeric identifier.)^  ^The values of these\n** parameters (also called \"host parameter names\" or \"SQL parameters\")\n** can be set using the sqlite3_bind_*() routines defined here.\n**\n** ^The first argument to the sqlite3_bind_*() routines is always\n** a pointer to the [sqlite3_stmt] object returned from\n** [sqlite3_prepare_v2()] or its variants.\n**\n** ^The second argument is the index of the SQL parameter to be set.\n** ^The leftmost SQL parameter has an index of 1.  ^When the same named\n** SQL parameter is used more than once, second and subsequent\n** occurrences have the same index as the first occurrence.\n** ^The index for named parameters can be looked up using the\n** [sqlite3_bind_parameter_index()] API if desired.  ^The index\n** for \"?NNN\" parameters is the value of NNN.\n** ^The NNN value must be between 1 and the [sqlite3_limit()]\n** parameter [SQLITE_LIMIT_VARIABLE_NUMBER] (default value: 999).\n**\n** ^The third argument is the value to bind to the parameter.\n** ^If the third parameter to sqlite3_bind_text() or sqlite3_bind_text16()\n** or sqlite3_bind_blob() is a NULL pointer then the fourth parameter\n** is ignored and the end result is the same as sqlite3_bind_null().\n**\n** ^(In those routines that have a fourth argument, its value is the\n** number of bytes in the parameter.  To be clear: the value is the\n** number of <u>bytes</u> in the value, not the number of characters.)^\n** ^If the fourth parameter to sqlite3_bind_text() or sqlite3_bind_text16()\n** is negative, then the length of the string is\n** the number of bytes up to the first zero terminator.\n** If the fourth parameter to sqlite3_bind_blob() is negative, then\n** the behavior is undefined.\n** If a non-negative fourth parameter is provided to sqlite3_bind_text()\n** or sqlite3_bind_text16() or sqlite3_bind_text64() then\n** that parameter must be the byte offset\n** where the NUL terminator would occur assuming the string were NUL\n** terminated.  If any NUL characters occur at byte offsets less than \n** the value of the fourth parameter then the resulting string value will\n** contain embedded NULs.  The result of expressions involving strings\n** with embedded NULs is undefined.\n**\n** ^The fifth argument to the BLOB and string binding interfaces\n** is a destructor used to dispose of the BLOB or\n** string after SQLite has finished with it.  ^The destructor is called\n** to dispose of the BLOB or string even if the call to bind API fails.\n** ^If the fifth argument is\n** the special value [SQLITE_STATIC], then SQLite assumes that the\n** information is in static, unmanaged space and does not need to be freed.\n** ^If the fifth argument has the value [SQLITE_TRANSIENT], then\n** SQLite makes its own private copy of the data immediately, before\n** the sqlite3_bind_*() routine returns.\n**\n** ^The sixth argument to sqlite3_bind_text64() must be one of\n** [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]\n** to specify the encoding of the text in the third parameter.  If\n** the sixth argument to sqlite3_bind_text64() is not one of the\n** allowed values shown above, or if the text encoding is different\n** from the encoding specified by the sixth parameter, then the behavior\n** is undefined.\n**\n** ^The sqlite3_bind_zeroblob() routine binds a BLOB of length N that\n** is filled with zeroes.  ^A zeroblob uses a fixed amount of memory\n** (just an integer to hold its size) while it is being processed.\n** Zeroblobs are intended to serve as placeholders for BLOBs whose\n** content is later written using\n** [sqlite3_blob_open | incremental BLOB I/O] routines.\n** ^A negative value for the zeroblob results in a zero-length BLOB.\n**\n** ^The sqlite3_bind_pointer(S,I,P,T,D) routine causes the I-th parameter in\n** [prepared statement] S to have an SQL value of NULL, but to also be\n** associated with the pointer P of type T.  ^D is either a NULL pointer or\n** a pointer to a destructor function for P. ^SQLite will invoke the\n** destructor D with a single argument of P when it is finished using\n** P.  The T parameter should be a static string, preferably a string\n** literal. The sqlite3_bind_pointer() routine is part of the\n** [pointer passing interface] added for SQLite 3.20.0.\n**\n** ^If any of the sqlite3_bind_*() routines are called with a NULL pointer\n** for the [prepared statement] or with a prepared statement for which\n** [sqlite3_step()] has been called more recently than [sqlite3_reset()],\n** then the call will return [SQLITE_MISUSE].  If any sqlite3_bind_()\n** routine is passed a [prepared statement] that has been finalized, the\n** result is undefined and probably harmful.\n**\n** ^Bindings are not cleared by the [sqlite3_reset()] routine.\n** ^Unbound parameters are interpreted as NULL.\n**\n** ^The sqlite3_bind_* routines return [SQLITE_OK] on success or an\n** [error code] if anything goes wrong.\n** ^[SQLITE_TOOBIG] might be returned if the size of a string or BLOB\n** exceeds limits imposed by [sqlite3_limit]([SQLITE_LIMIT_LENGTH]) or\n** [SQLITE_MAX_LENGTH].\n** ^[SQLITE_RANGE] is returned if the parameter\n** index is out of range.  ^[SQLITE_NOMEM] is returned if malloc() fails.\n**\n** See also: [sqlite3_bind_parameter_count()],\n** [sqlite3_bind_parameter_name()], and [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*));\nSQLITE_API int sqlite3_bind_blob64(sqlite3_stmt*, int, const void*, sqlite3_uint64,\n                        void(*)(void*));\nSQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);\nSQLITE_API int sqlite3_bind_int(sqlite3_stmt*, int, int);\nSQLITE_API int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite3_int64);\nSQLITE_API int sqlite3_bind_null(sqlite3_stmt*, int);\nSQLITE_API int sqlite3_bind_text(sqlite3_stmt*,int,const char*,int,void(*)(void*));\nSQLITE_API int sqlite3_bind_text16(sqlite3_stmt*, int, const void*, int, void(*)(void*));\nSQLITE_API int sqlite3_bind_text64(sqlite3_stmt*, int, const char*, sqlite3_uint64,\n                         void(*)(void*), unsigned char encoding);\nSQLITE_API int sqlite3_bind_value(sqlite3_stmt*, int, const sqlite3_value*);\nSQLITE_API int sqlite3_bind_pointer(sqlite3_stmt*, int, void*, const char*,void(*)(void*));\nSQLITE_API int sqlite3_bind_zeroblob(sqlite3_stmt*, int, int n);\nSQLITE_API int sqlite3_bind_zeroblob64(sqlite3_stmt*, int, sqlite3_uint64);\n\n/*\n** CAPI3REF: Number Of SQL Parameters\n** METHOD: sqlite3_stmt\n**\n** ^This routine can be used to find the number of [SQL parameters]\n** in a [prepared statement].  SQL parameters are tokens of the\n** form \"?\", \"?NNN\", \":AAA\", \"$AAA\", or \"@AAA\" that serve as\n** placeholders for values that are [sqlite3_bind_blob | bound]\n** to the parameters at a later time.\n**\n** ^(This routine actually returns the index of the largest (rightmost)\n** parameter. For all forms except ?NNN, this will correspond to the\n** number of unique parameters.  If parameters of the ?NNN form are used,\n** there may be gaps in the list.)^\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_name()], and\n** [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API int sqlite3_bind_parameter_count(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Name Of A Host Parameter\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_bind_parameter_name(P,N) interface returns\n** the name of the N-th [SQL parameter] in the [prepared statement] P.\n** ^(SQL parameters of the form \"?NNN\" or \":AAA\" or \"@AAA\" or \"$AAA\"\n** have a name which is the string \"?NNN\" or \":AAA\" or \"@AAA\" or \"$AAA\"\n** respectively.\n** In other words, the initial \":\" or \"$\" or \"@\" or \"?\"\n** is included as part of the name.)^\n** ^Parameters of the form \"?\" without a following integer have no name\n** and are referred to as \"nameless\" or \"anonymous parameters\".\n**\n** ^The first host parameter has an index of 1, not 0.\n**\n** ^If the value N is out of range or if the N-th parameter is\n** nameless, then NULL is returned.  ^The returned string is\n** always in UTF-8 encoding even if the named parameter was\n** originally specified as UTF-16 in [sqlite3_prepare16()],\n** [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()].\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_count()], and\n** [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int);\n\n/*\n** CAPI3REF: Index Of A Parameter With A Given Name\n** METHOD: sqlite3_stmt\n**\n** ^Return the index of an SQL parameter given its name.  ^The\n** index value returned is suitable for use as the second\n** parameter to [sqlite3_bind_blob|sqlite3_bind()].  ^A zero\n** is returned if no matching parameter is found.  ^The parameter\n** name must be given in UTF-8 even if the original statement\n** was prepared from UTF-16 text using [sqlite3_prepare16_v2()] or\n** [sqlite3_prepare16_v3()].\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_count()], and\n** [sqlite3_bind_parameter_name()].\n*/\nSQLITE_API int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName);\n\n/*\n** CAPI3REF: Reset All Bindings On A Prepared Statement\n** METHOD: sqlite3_stmt\n**\n** ^Contrary to the intuition of many, [sqlite3_reset()] does not reset\n** the [sqlite3_bind_blob | bindings] on a [prepared statement].\n** ^Use this routine to reset all host parameters to NULL.\n*/\nSQLITE_API int sqlite3_clear_bindings(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Number Of Columns In A Result Set\n** METHOD: sqlite3_stmt\n**\n** ^Return the number of columns in the result set returned by the\n** [prepared statement]. ^If this routine returns 0, that means the \n** [prepared statement] returns no data (for example an [UPDATE]).\n** ^However, just because this routine returns a positive number does not\n** mean that one or more rows of data will be returned.  ^A SELECT statement\n** will always have a positive sqlite3_column_count() but depending on the\n** WHERE clause constraints and the table content, it might return no rows.\n**\n** See also: [sqlite3_data_count()]\n*/\nSQLITE_API int sqlite3_column_count(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Column Names In A Result Set\n** METHOD: sqlite3_stmt\n**\n** ^These routines return the name assigned to a particular column\n** in the result set of a [SELECT] statement.  ^The sqlite3_column_name()\n** interface returns a pointer to a zero-terminated UTF-8 string\n** and sqlite3_column_name16() returns a pointer to a zero-terminated\n** UTF-16 string.  ^The first parameter is the [prepared statement]\n** that implements the [SELECT] statement. ^The second parameter is the\n** column number.  ^The leftmost column is number 0.\n**\n** ^The returned string pointer is valid until either the [prepared statement]\n** is destroyed by [sqlite3_finalize()] or until the statement is automatically\n** reprepared by the first call to [sqlite3_step()] for a particular run\n** or until the next call to\n** sqlite3_column_name() or sqlite3_column_name16() on the same column.\n**\n** ^If sqlite3_malloc() fails during the processing of either routine\n** (for example during a conversion from UTF-8 to UTF-16) then a\n** NULL pointer is returned.\n**\n** ^The name of a result column is the value of the \"AS\" clause for\n** that column, if there is an AS clause.  If there is no AS clause\n** then the name of the column is unspecified and may change from\n** one release of SQLite to the next.\n*/\nSQLITE_API const char *sqlite3_column_name(sqlite3_stmt*, int N);\nSQLITE_API const void *sqlite3_column_name16(sqlite3_stmt*, int N);\n\n/*\n** CAPI3REF: Source Of Data In A Query Result\n** METHOD: sqlite3_stmt\n**\n** ^These routines provide a means to determine the database, table, and\n** table column that is the origin of a particular result column in\n** [SELECT] statement.\n** ^The name of the database or table or column can be returned as\n** either a UTF-8 or UTF-16 string.  ^The _database_ routines return\n** the database name, the _table_ routines return the table name, and\n** the origin_ routines return the column name.\n** ^The returned string is valid until the [prepared statement] is destroyed\n** using [sqlite3_finalize()] or until the statement is automatically\n** reprepared by the first call to [sqlite3_step()] for a particular run\n** or until the same information is requested\n** again in a different encoding.\n**\n** ^The names returned are the original un-aliased names of the\n** database, table, and column.\n**\n** ^The first argument to these interfaces is a [prepared statement].\n** ^These functions return information about the Nth result column returned by\n** the statement, where N is the second function argument.\n** ^The left-most column is column 0 for these routines.\n**\n** ^If the Nth column returned by the statement is an expression or\n** subquery and is not a column value, then all of these functions return\n** NULL.  ^These routine might also return NULL if a memory allocation error\n** occurs.  ^Otherwise, they return the name of the attached database, table,\n** or column that query result column was extracted from.\n**\n** ^As with all other SQLite APIs, those whose names end with \"16\" return\n** UTF-16 encoded strings and the other functions return UTF-8.\n**\n** ^These APIs are only available if the library was compiled with the\n** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol.\n**\n** If two or more threads call one or more of these routines against the same\n** prepared statement and column at the same time then the results are\n** undefined.\n**\n** If two or more threads call one or more\n** [sqlite3_column_database_name | column metadata interfaces]\n** for the same [prepared statement] and result column\n** at the same time then the results are undefined.\n*/\nSQLITE_API const char *sqlite3_column_database_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_database_name16(sqlite3_stmt*,int);\nSQLITE_API const char *sqlite3_column_table_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_table_name16(sqlite3_stmt*,int);\nSQLITE_API const char *sqlite3_column_origin_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_origin_name16(sqlite3_stmt*,int);\n\n/*\n** CAPI3REF: Declared Datatype Of A Query Result\n** METHOD: sqlite3_stmt\n**\n** ^(The first parameter is a [prepared statement].\n** If this statement is a [SELECT] statement and the Nth column of the\n** returned result set of that [SELECT] is a table column (not an\n** expression or subquery) then the declared type of the table\n** column is returned.)^  ^If the Nth column of the result set is an\n** expression or subquery, then a NULL pointer is returned.\n** ^The returned string is always UTF-8 encoded.\n**\n** ^(For example, given the database schema:\n**\n** CREATE TABLE t1(c1 VARIANT);\n**\n** and the following statement to be compiled:\n**\n** SELECT c1 + 1, c1 FROM t1;\n**\n** this routine would return the string \"VARIANT\" for the second result\n** column (i==1), and a NULL pointer for the first result column (i==0).)^\n**\n** ^SQLite uses dynamic run-time typing.  ^So just because a column\n** is declared to contain a particular type does not mean that the\n** data stored in that column is of the declared type.  SQLite is\n** strongly typed, but the typing is dynamic not static.  ^Type\n** is associated with individual values, not with the containers\n** used to hold those values.\n*/\nSQLITE_API const char *sqlite3_column_decltype(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_decltype16(sqlite3_stmt*,int);\n\n/*\n** CAPI3REF: Evaluate An SQL Statement\n** METHOD: sqlite3_stmt\n**\n** After a [prepared statement] has been prepared using any of\n** [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], [sqlite3_prepare16_v2()],\n** or [sqlite3_prepare16_v3()] or one of the legacy\n** interfaces [sqlite3_prepare()] or [sqlite3_prepare16()], this function\n** must be called one or more times to evaluate the statement.\n**\n** The details of the behavior of the sqlite3_step() interface depend\n** on whether the statement was prepared using the newer \"vX\" interfaces\n** [sqlite3_prepare_v3()], [sqlite3_prepare_v2()], [sqlite3_prepare16_v3()],\n** [sqlite3_prepare16_v2()] or the older legacy\n** interfaces [sqlite3_prepare()] and [sqlite3_prepare16()].  The use of the\n** new \"vX\" interface is recommended for new applications but the legacy\n** interface will continue to be supported.\n**\n** ^In the legacy interface, the return value will be either [SQLITE_BUSY],\n** [SQLITE_DONE], [SQLITE_ROW], [SQLITE_ERROR], or [SQLITE_MISUSE].\n** ^With the \"v2\" interface, any of the other [result codes] or\n** [extended result codes] might be returned as well.\n**\n** ^[SQLITE_BUSY] means that the database engine was unable to acquire the\n** database locks it needs to do its job.  ^If the statement is a [COMMIT]\n** or occurs outside of an explicit transaction, then you can retry the\n** statement.  If the statement is not a [COMMIT] and occurs within an\n** explicit transaction then you should rollback the transaction before\n** continuing.\n**\n** ^[SQLITE_DONE] means that the statement has finished executing\n** successfully.  sqlite3_step() should not be called again on this virtual\n** machine without first calling [sqlite3_reset()] to reset the virtual\n** machine back to its initial state.\n**\n** ^If the SQL statement being executed returns any data, then [SQLITE_ROW]\n** is returned each time a new row of data is ready for processing by the\n** caller. The values may be accessed using the [column access functions].\n** sqlite3_step() is called again to retrieve the next row of data.\n**\n** ^[SQLITE_ERROR] means that a run-time error (such as a constraint\n** violation) has occurred.  sqlite3_step() should not be called again on\n** the VM. More information may be found by calling [sqlite3_errmsg()].\n** ^With the legacy interface, a more specific error code (for example,\n** [SQLITE_INTERRUPT], [SQLITE_SCHEMA], [SQLITE_CORRUPT], and so forth)\n** can be obtained by calling [sqlite3_reset()] on the\n** [prepared statement].  ^In the \"v2\" interface,\n** the more specific error code is returned directly by sqlite3_step().\n**\n** [SQLITE_MISUSE] means that the this routine was called inappropriately.\n** Perhaps it was called on a [prepared statement] that has\n** already been [sqlite3_finalize | finalized] or on one that had\n** previously returned [SQLITE_ERROR] or [SQLITE_DONE].  Or it could\n** be the case that the same database connection is being used by two or\n** more threads at the same moment in time.\n**\n** For all versions of SQLite up to and including 3.6.23.1, a call to\n** [sqlite3_reset()] was required after sqlite3_step() returned anything\n** other than [SQLITE_ROW] before any subsequent invocation of\n** sqlite3_step().  Failure to reset the prepared statement using \n** [sqlite3_reset()] would result in an [SQLITE_MISUSE] return from\n** sqlite3_step().  But after [version 3.6.23.1] ([dateof:3.6.23.1],\n** sqlite3_step() began\n** calling [sqlite3_reset()] automatically in this circumstance rather\n** than returning [SQLITE_MISUSE].  This is not considered a compatibility\n** break because any application that ever receives an SQLITE_MISUSE error\n** is broken by definition.  The [SQLITE_OMIT_AUTORESET] compile-time option\n** can be used to restore the legacy behavior.\n**\n** <b>Goofy Interface Alert:</b> In the legacy interface, the sqlite3_step()\n** API always returns a generic error code, [SQLITE_ERROR], following any\n** error other than [SQLITE_BUSY] and [SQLITE_MISUSE].  You must call\n** [sqlite3_reset()] or [sqlite3_finalize()] in order to find one of the\n** specific [error codes] that better describes the error.\n** We admit that this is a goofy design.  The problem has been fixed\n** with the \"v2\" interface.  If you prepare all of your SQL statements\n** using [sqlite3_prepare_v3()] or [sqlite3_prepare_v2()]\n** or [sqlite3_prepare16_v2()] or [sqlite3_prepare16_v3()] instead\n** of the legacy [sqlite3_prepare()] and [sqlite3_prepare16()] interfaces,\n** then the more specific [error codes] are returned directly\n** by sqlite3_step().  The use of the \"vX\" interfaces is recommended.\n*/\nSQLITE_API int sqlite3_step(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Number of columns in a result set\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_data_count(P) interface returns the number of columns in the\n** current row of the result set of [prepared statement] P.\n** ^If prepared statement P does not have results ready to return\n** (via calls to the [sqlite3_column_int | sqlite3_column_*()] of\n** interfaces) then sqlite3_data_count(P) returns 0.\n** ^The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer.\n** ^The sqlite3_data_count(P) routine returns 0 if the previous call to\n** [sqlite3_step](P) returned [SQLITE_DONE].  ^The sqlite3_data_count(P)\n** will return non-zero if previous call to [sqlite3_step](P) returned\n** [SQLITE_ROW], except in the case of the [PRAGMA incremental_vacuum]\n** where it always returns zero since each step of that multi-step\n** pragma returns 0 columns of data.\n**\n** See also: [sqlite3_column_count()]\n*/\nSQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Fundamental Datatypes\n** KEYWORDS: SQLITE_TEXT\n**\n** ^(Every value in SQLite has one of five fundamental datatypes:\n**\n** <ul>\n** <li> 64-bit signed integer\n** <li> 64-bit IEEE floating point number\n** <li> string\n** <li> BLOB\n** <li> NULL\n** </ul>)^\n**\n** These constants are codes for each of those types.\n**\n** Note that the SQLITE_TEXT constant was also used in SQLite version 2\n** for a completely different meaning.  Software that links against both\n** SQLite version 2 and SQLite version 3 should use SQLITE3_TEXT, not\n** SQLITE_TEXT.\n*/\n#define SQLITE_INTEGER  1\n#define SQLITE_FLOAT    2\n#define SQLITE_BLOB     4\n#define SQLITE_NULL     5\n#ifdef SQLITE_TEXT\n# undef SQLITE_TEXT\n#else\n# define SQLITE_TEXT     3\n#endif\n#define SQLITE3_TEXT     3\n\n/*\n** CAPI3REF: Result Values From A Query\n** KEYWORDS: {column access functions}\n** METHOD: sqlite3_stmt\n**\n** <b>Summary:</b>\n** <blockquote><table border=0 cellpadding=0 cellspacing=0>\n** <tr><td><b>sqlite3_column_blob</b><td>&rarr;<td>BLOB result\n** <tr><td><b>sqlite3_column_double</b><td>&rarr;<td>REAL result\n** <tr><td><b>sqlite3_column_int</b><td>&rarr;<td>32-bit INTEGER result\n** <tr><td><b>sqlite3_column_int64</b><td>&rarr;<td>64-bit INTEGER result\n** <tr><td><b>sqlite3_column_text</b><td>&rarr;<td>UTF-8 TEXT result\n** <tr><td><b>sqlite3_column_text16</b><td>&rarr;<td>UTF-16 TEXT result\n** <tr><td><b>sqlite3_column_value</b><td>&rarr;<td>The result as an \n** [sqlite3_value|unprotected sqlite3_value] object.\n** <tr><td>&nbsp;<td>&nbsp;<td>&nbsp;\n** <tr><td><b>sqlite3_column_bytes</b><td>&rarr;<td>Size of a BLOB\n** or a UTF-8 TEXT result in bytes\n** <tr><td><b>sqlite3_column_bytes16&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Size of UTF-16\n** TEXT in bytes\n** <tr><td><b>sqlite3_column_type</b><td>&rarr;<td>Default\n** datatype of the result\n** </table></blockquote>\n**\n** <b>Details:</b>\n**\n** ^These routines return information about a single column of the current\n** result row of a query.  ^In every case the first argument is a pointer\n** to the [prepared statement] that is being evaluated (the [sqlite3_stmt*]\n** that was returned from [sqlite3_prepare_v2()] or one of its variants)\n** and the second argument is the index of the column for which information\n** should be returned. ^The leftmost column of the result set has the index 0.\n** ^The number of columns in the result can be determined using\n** [sqlite3_column_count()].\n**\n** If the SQL statement does not currently point to a valid row, or if the\n** column index is out of range, the result is undefined.\n** These routines may only be called when the most recent call to\n** [sqlite3_step()] has returned [SQLITE_ROW] and neither\n** [sqlite3_reset()] nor [sqlite3_finalize()] have been called subsequently.\n** If any of these routines are called after [sqlite3_reset()] or\n** [sqlite3_finalize()] or after [sqlite3_step()] has returned\n** something other than [SQLITE_ROW], the results are undefined.\n** If [sqlite3_step()] or [sqlite3_reset()] or [sqlite3_finalize()]\n** are called from a different thread while any of these routines\n** are pending, then the results are undefined.\n**\n** The first six interfaces (_blob, _double, _int, _int64, _text, and _text16)\n** each return the value of a result column in a specific data format.  If\n** the result column is not initially in the requested format (for example,\n** if the query returns an integer but the sqlite3_column_text() interface\n** is used to extract the value) then an automatic type conversion is performed.\n**\n** ^The sqlite3_column_type() routine returns the\n** [SQLITE_INTEGER | datatype code] for the initial data type\n** of the result column.  ^The returned value is one of [SQLITE_INTEGER],\n** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].\n** The return value of sqlite3_column_type() can be used to decide which\n** of the first six interface should be used to extract the column value.\n** The value returned by sqlite3_column_type() is only meaningful if no\n** automatic type conversions have occurred for the value in question.  \n** After a type conversion, the result of calling sqlite3_column_type()\n** is undefined, though harmless.  Future\n** versions of SQLite may change the behavior of sqlite3_column_type()\n** following a type conversion.\n**\n** If the result is a BLOB or a TEXT string, then the sqlite3_column_bytes()\n** or sqlite3_column_bytes16() interfaces can be used to determine the size\n** of that BLOB or string.\n**\n** ^If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes()\n** routine returns the number of bytes in that BLOB or string.\n** ^If the result is a UTF-16 string, then sqlite3_column_bytes() converts\n** the string to UTF-8 and then returns the number of bytes.\n** ^If the result is a numeric value then sqlite3_column_bytes() uses\n** [sqlite3_snprintf()] to convert that value to a UTF-8 string and returns\n** the number of bytes in that string.\n** ^If the result is NULL, then sqlite3_column_bytes() returns zero.\n**\n** ^If the result is a BLOB or UTF-16 string then the sqlite3_column_bytes16()\n** routine returns the number of bytes in that BLOB or string.\n** ^If the result is a UTF-8 string, then sqlite3_column_bytes16() converts\n** the string to UTF-16 and then returns the number of bytes.\n** ^If the result is a numeric value then sqlite3_column_bytes16() uses\n** [sqlite3_snprintf()] to convert that value to a UTF-16 string and returns\n** the number of bytes in that string.\n** ^If the result is NULL, then sqlite3_column_bytes16() returns zero.\n**\n** ^The values returned by [sqlite3_column_bytes()] and \n** [sqlite3_column_bytes16()] do not include the zero terminators at the end\n** of the string.  ^For clarity: the values returned by\n** [sqlite3_column_bytes()] and [sqlite3_column_bytes16()] are the number of\n** bytes in the string, not the number of characters.\n**\n** ^Strings returned by sqlite3_column_text() and sqlite3_column_text16(),\n** even empty strings, are always zero-terminated.  ^The return\n** value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer.\n**\n** <b>Warning:</b> ^The object returned by [sqlite3_column_value()] is an\n** [unprotected sqlite3_value] object.  In a multithreaded environment,\n** an unprotected sqlite3_value object may only be used safely with\n** [sqlite3_bind_value()] and [sqlite3_result_value()].\n** If the [unprotected sqlite3_value] object returned by\n** [sqlite3_column_value()] is used in any other way, including calls\n** to routines like [sqlite3_value_int()], [sqlite3_value_text()],\n** or [sqlite3_value_bytes()], the behavior is not threadsafe.\n** Hence, the sqlite3_column_value() interface\n** is normally only useful within the implementation of \n** [application-defined SQL functions] or [virtual tables], not within\n** top-level application code.\n**\n** The these routines may attempt to convert the datatype of the result.\n** ^For example, if the internal representation is FLOAT and a text result\n** is requested, [sqlite3_snprintf()] is used internally to perform the\n** conversion automatically.  ^(The following table details the conversions\n** that are applied:\n**\n** <blockquote>\n** <table border=\"1\">\n** <tr><th> Internal<br>Type <th> Requested<br>Type <th>  Conversion\n**\n** <tr><td>  NULL    <td> INTEGER   <td> Result is 0\n** <tr><td>  NULL    <td>  FLOAT    <td> Result is 0.0\n** <tr><td>  NULL    <td>   TEXT    <td> Result is a NULL pointer\n** <tr><td>  NULL    <td>   BLOB    <td> Result is a NULL pointer\n** <tr><td> INTEGER  <td>  FLOAT    <td> Convert from integer to float\n** <tr><td> INTEGER  <td>   TEXT    <td> ASCII rendering of the integer\n** <tr><td> INTEGER  <td>   BLOB    <td> Same as INTEGER->TEXT\n** <tr><td>  FLOAT   <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  FLOAT   <td>   TEXT    <td> ASCII rendering of the float\n** <tr><td>  FLOAT   <td>   BLOB    <td> [CAST] to BLOB\n** <tr><td>  TEXT    <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  TEXT    <td>  FLOAT    <td> [CAST] to REAL\n** <tr><td>  TEXT    <td>   BLOB    <td> No change\n** <tr><td>  BLOB    <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  BLOB    <td>  FLOAT    <td> [CAST] to REAL\n** <tr><td>  BLOB    <td>   TEXT    <td> Add a zero terminator if needed\n** </table>\n** </blockquote>)^\n**\n** Note that when type conversions occur, pointers returned by prior\n** calls to sqlite3_column_blob(), sqlite3_column_text(), and/or\n** sqlite3_column_text16() may be invalidated.\n** Type conversions and pointer invalidations might occur\n** in the following cases:\n**\n** <ul>\n** <li> The initial content is a BLOB and sqlite3_column_text() or\n**      sqlite3_column_text16() is called.  A zero-terminator might\n**      need to be added to the string.</li>\n** <li> The initial content is UTF-8 text and sqlite3_column_bytes16() or\n**      sqlite3_column_text16() is called.  The content must be converted\n**      to UTF-16.</li>\n** <li> The initial content is UTF-16 text and sqlite3_column_bytes() or\n**      sqlite3_column_text() is called.  The content must be converted\n**      to UTF-8.</li>\n** </ul>\n**\n** ^Conversions between UTF-16be and UTF-16le are always done in place and do\n** not invalidate a prior pointer, though of course the content of the buffer\n** that the prior pointer references will have been modified.  Other kinds\n** of conversion are done in place when it is possible, but sometimes they\n** are not possible and in those cases prior pointers are invalidated.\n**\n** The safest policy is to invoke these routines\n** in one of the following ways:\n**\n** <ul>\n**  <li>sqlite3_column_text() followed by sqlite3_column_bytes()</li>\n**  <li>sqlite3_column_blob() followed by sqlite3_column_bytes()</li>\n**  <li>sqlite3_column_text16() followed by sqlite3_column_bytes16()</li>\n** </ul>\n**\n** In other words, you should call sqlite3_column_text(),\n** sqlite3_column_blob(), or sqlite3_column_text16() first to force the result\n** into the desired format, then invoke sqlite3_column_bytes() or\n** sqlite3_column_bytes16() to find the size of the result.  Do not mix calls\n** to sqlite3_column_text() or sqlite3_column_blob() with calls to\n** sqlite3_column_bytes16(), and do not mix calls to sqlite3_column_text16()\n** with calls to sqlite3_column_bytes().\n**\n** ^The pointers returned are valid until a type conversion occurs as\n** described above, or until [sqlite3_step()] or [sqlite3_reset()] or\n** [sqlite3_finalize()] is called.  ^The memory space used to hold strings\n** and BLOBs is freed automatically.  Do not pass the pointers returned\n** from [sqlite3_column_blob()], [sqlite3_column_text()], etc. into\n** [sqlite3_free()].\n**\n** ^(If a memory allocation error occurs during the evaluation of any\n** of these routines, a default value is returned.  The default value\n** is either the integer 0, the floating point number 0.0, or a NULL\n** pointer.  Subsequent calls to [sqlite3_errcode()] will return\n** [SQLITE_NOMEM].)^\n*/\nSQLITE_API const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);\nSQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_int(sqlite3_stmt*, int iCol);\nSQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol);\nSQLITE_API const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol);\nSQLITE_API const void *sqlite3_column_text16(sqlite3_stmt*, int iCol);\nSQLITE_API sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_bytes(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_bytes16(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_type(sqlite3_stmt*, int iCol);\n\n/*\n** CAPI3REF: Destroy A Prepared Statement Object\n** DESTRUCTOR: sqlite3_stmt\n**\n** ^The sqlite3_finalize() function is called to delete a [prepared statement].\n** ^If the most recent evaluation of the statement encountered no errors\n** or if the statement is never been evaluated, then sqlite3_finalize() returns\n** SQLITE_OK.  ^If the most recent evaluation of statement S failed, then\n** sqlite3_finalize(S) returns the appropriate [error code] or\n** [extended error code].\n**\n** ^The sqlite3_finalize(S) routine can be called at any point during\n** the life cycle of [prepared statement] S:\n** before statement S is ever evaluated, after\n** one or more calls to [sqlite3_reset()], or after any call\n** to [sqlite3_step()] regardless of whether or not the statement has\n** completed execution.\n**\n** ^Invoking sqlite3_finalize() on a NULL pointer is a harmless no-op.\n**\n** The application must finalize every [prepared statement] in order to avoid\n** resource leaks.  It is a grievous error for the application to try to use\n** a prepared statement after it has been finalized.  Any use of a prepared\n** statement after it has been finalized can result in undefined and\n** undesirable behavior such as segfaults and heap corruption.\n*/\nSQLITE_API int sqlite3_finalize(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Reset A Prepared Statement Object\n** METHOD: sqlite3_stmt\n**\n** The sqlite3_reset() function is called to reset a [prepared statement]\n** object back to its initial state, ready to be re-executed.\n** ^Any SQL statement variables that had values bound to them using\n** the [sqlite3_bind_blob | sqlite3_bind_*() API] retain their values.\n** Use [sqlite3_clear_bindings()] to reset the bindings.\n**\n** ^The [sqlite3_reset(S)] interface resets the [prepared statement] S\n** back to the beginning of its program.\n**\n** ^If the most recent call to [sqlite3_step(S)] for the\n** [prepared statement] S returned [SQLITE_ROW] or [SQLITE_DONE],\n** or if [sqlite3_step(S)] has never before been called on S,\n** then [sqlite3_reset(S)] returns [SQLITE_OK].\n**\n** ^If the most recent call to [sqlite3_step(S)] for the\n** [prepared statement] S indicated an error, then\n** [sqlite3_reset(S)] returns an appropriate [error code].\n**\n** ^The [sqlite3_reset(S)] interface does not change the values\n** of any [sqlite3_bind_blob|bindings] on the [prepared statement] S.\n*/\nSQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Create Or Redefine SQL Functions\n** KEYWORDS: {function creation routines}\n** KEYWORDS: {application-defined SQL function}\n** KEYWORDS: {application-defined SQL functions}\n** METHOD: sqlite3\n**\n** ^These functions (collectively known as \"function creation routines\")\n** are used to add SQL functions or aggregates or to redefine the behavior\n** of existing SQL functions or aggregates.  The only differences between\n** these routines are the text encoding expected for\n** the second parameter (the name of the function being created)\n** and the presence or absence of a destructor callback for\n** the application data pointer.\n**\n** ^The first parameter is the [database connection] to which the SQL\n** function is to be added.  ^If an application uses more than one database\n** connection then application-defined SQL functions must be added\n** to each database connection separately.\n**\n** ^The second parameter is the name of the SQL function to be created or\n** redefined.  ^The length of the name is limited to 255 bytes in a UTF-8\n** representation, exclusive of the zero-terminator.  ^Note that the name\n** length limit is in UTF-8 bytes, not characters nor UTF-16 bytes.  \n** ^Any attempt to create a function with a longer name\n** will result in [SQLITE_MISUSE] being returned.\n**\n** ^The third parameter (nArg)\n** is the number of arguments that the SQL function or\n** aggregate takes. ^If this parameter is -1, then the SQL function or\n** aggregate may take any number of arguments between 0 and the limit\n** set by [sqlite3_limit]([SQLITE_LIMIT_FUNCTION_ARG]).  If the third\n** parameter is less than -1 or greater than 127 then the behavior is\n** undefined.\n**\n** ^The fourth parameter, eTextRep, specifies what\n** [SQLITE_UTF8 | text encoding] this SQL function prefers for\n** its parameters.  The application should set this parameter to\n** [SQLITE_UTF16LE] if the function implementation invokes \n** [sqlite3_value_text16le()] on an input, or [SQLITE_UTF16BE] if the\n** implementation invokes [sqlite3_value_text16be()] on an input, or\n** [SQLITE_UTF16] if [sqlite3_value_text16()] is used, or [SQLITE_UTF8]\n** otherwise.  ^The same SQL function may be registered multiple times using\n** different preferred text encodings, with different implementations for\n** each encoding.\n** ^When multiple implementations of the same function are available, SQLite\n** will pick the one that involves the least amount of data conversion.\n**\n** ^The fourth parameter may optionally be ORed with [SQLITE_DETERMINISTIC]\n** to signal that the function will always return the same result given\n** the same inputs within a single SQL statement.  Most SQL functions are\n** deterministic.  The built-in [random()] SQL function is an example of a\n** function that is not deterministic.  The SQLite query planner is able to\n** perform additional optimizations on deterministic functions, so use\n** of the [SQLITE_DETERMINISTIC] flag is recommended where possible.\n**\n** ^(The fifth parameter is an arbitrary pointer.  The implementation of the\n** function can gain access to this pointer using [sqlite3_user_data()].)^\n**\n** ^The sixth, seventh and eighth parameters, xFunc, xStep and xFinal, are\n** pointers to C-language functions that implement the SQL function or\n** aggregate. ^A scalar SQL function requires an implementation of the xFunc\n** callback only; NULL pointers must be passed as the xStep and xFinal\n** parameters. ^An aggregate SQL function requires an implementation of xStep\n** and xFinal and NULL pointer must be passed for xFunc. ^To delete an existing\n** SQL function or aggregate, pass NULL pointers for all three function\n** callbacks.\n**\n** ^(If the ninth parameter to sqlite3_create_function_v2() is not NULL,\n** then it is destructor for the application data pointer. \n** The destructor is invoked when the function is deleted, either by being\n** overloaded or when the database connection closes.)^\n** ^The destructor is also invoked if the call to\n** sqlite3_create_function_v2() fails.\n** ^When the destructor callback of the tenth parameter is invoked, it\n** is passed a single argument which is a copy of the application data \n** pointer which was the fifth parameter to sqlite3_create_function_v2().\n**\n** ^It is permitted to register multiple implementations of the same\n** functions with the same name but with either differing numbers of\n** arguments or differing preferred text encodings.  ^SQLite will use\n** the implementation that most closely matches the way in which the\n** SQL function is used.  ^A function implementation with a non-negative\n** nArg parameter is a better match than a function implementation with\n** a negative nArg.  ^A function where the preferred text encoding\n** matches the database encoding is a better\n** match than a function where the encoding is different.  \n** ^A function where the encoding difference is between UTF16le and UTF16be\n** is a closer match than a function where the encoding difference is\n** between UTF8 and UTF16.\n**\n** ^Built-in functions may be overloaded by new application-defined functions.\n**\n** ^An application-defined function is permitted to call other\n** SQLite interfaces.  However, such calls must not\n** close the database connection nor finalize or reset the prepared\n** statement in which the function is running.\n*/\nSQLITE_API int sqlite3_create_function(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n);\nSQLITE_API int sqlite3_create_function16(\n  sqlite3 *db,\n  const void *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n);\nSQLITE_API int sqlite3_create_function_v2(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*),\n  void(*xDestroy)(void*)\n);\n\n/*\n** CAPI3REF: Text Encodings\n**\n** These constant define integer codes that represent the various\n** text encodings supported by SQLite.\n*/\n#define SQLITE_UTF8           1    /* IMP: R-37514-35566 */\n#define SQLITE_UTF16LE        2    /* IMP: R-03371-37637 */\n#define SQLITE_UTF16BE        3    /* IMP: R-51971-34154 */\n#define SQLITE_UTF16          4    /* Use native byte order */\n#define SQLITE_ANY            5    /* Deprecated */\n#define SQLITE_UTF16_ALIGNED  8    /* sqlite3_create_collation only */\n\n/*\n** CAPI3REF: Function Flags\n**\n** These constants may be ORed together with the \n** [SQLITE_UTF8 | preferred text encoding] as the fourth argument\n** to [sqlite3_create_function()], [sqlite3_create_function16()], or\n** [sqlite3_create_function_v2()].\n*/\n#define SQLITE_DETERMINISTIC    0x800\n\n/*\n** CAPI3REF: Deprecated Functions\n** DEPRECATED\n**\n** These functions are [deprecated].  In order to maintain\n** backwards compatibility with older code, these functions continue \n** to be supported.  However, new applications should avoid\n** the use of these functions.  To encourage programmers to avoid\n** these functions, we will not explain what they do.\n*/\n#ifndef SQLITE_OMIT_DEPRECATED\nSQLITE_API SQLITE_DEPRECATED int sqlite3_aggregate_count(sqlite3_context*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_expired(sqlite3_stmt*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_global_recover(void);\nSQLITE_API SQLITE_DEPRECATED void sqlite3_thread_cleanup(void);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_memory_alarm(void(*)(void*,sqlite3_int64,int),\n                      void*,sqlite3_int64);\n#endif\n\n/*\n** CAPI3REF: Obtaining SQL Values\n** METHOD: sqlite3_value\n**\n** <b>Summary:</b>\n** <blockquote><table border=0 cellpadding=0 cellspacing=0>\n** <tr><td><b>sqlite3_value_blob</b><td>&rarr;<td>BLOB value\n** <tr><td><b>sqlite3_value_double</b><td>&rarr;<td>REAL value\n** <tr><td><b>sqlite3_value_int</b><td>&rarr;<td>32-bit INTEGER value\n** <tr><td><b>sqlite3_value_int64</b><td>&rarr;<td>64-bit INTEGER value\n** <tr><td><b>sqlite3_value_pointer</b><td>&rarr;<td>Pointer value\n** <tr><td><b>sqlite3_value_text</b><td>&rarr;<td>UTF-8 TEXT value\n** <tr><td><b>sqlite3_value_text16</b><td>&rarr;<td>UTF-16 TEXT value in\n** the native byteorder\n** <tr><td><b>sqlite3_value_text16be</b><td>&rarr;<td>UTF-16be TEXT value\n** <tr><td><b>sqlite3_value_text16le</b><td>&rarr;<td>UTF-16le TEXT value\n** <tr><td>&nbsp;<td>&nbsp;<td>&nbsp;\n** <tr><td><b>sqlite3_value_bytes</b><td>&rarr;<td>Size of a BLOB\n** or a UTF-8 TEXT in bytes\n** <tr><td><b>sqlite3_value_bytes16&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Size of UTF-16\n** TEXT in bytes\n** <tr><td><b>sqlite3_value_type</b><td>&rarr;<td>Default\n** datatype of the value\n** <tr><td><b>sqlite3_value_numeric_type&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Best numeric datatype of the value\n** <tr><td><b>sqlite3_value_nochange&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>True if the column is unchanged in an UPDATE\n** against a virtual table.\n** </table></blockquote>\n**\n** <b>Details:</b>\n**\n** These routines extract type, size, and content information from\n** [protected sqlite3_value] objects.  Protected sqlite3_value objects\n** are used to pass parameter information into implementation of\n** [application-defined SQL functions] and [virtual tables].\n**\n** These routines work only with [protected sqlite3_value] objects.\n** Any attempt to use these routines on an [unprotected sqlite3_value]\n** is not threadsafe.\n**\n** ^These routines work just like the corresponding [column access functions]\n** except that these routines take a single [protected sqlite3_value] object\n** pointer instead of a [sqlite3_stmt*] pointer and an integer column number.\n**\n** ^The sqlite3_value_text16() interface extracts a UTF-16 string\n** in the native byte-order of the host machine.  ^The\n** sqlite3_value_text16be() and sqlite3_value_text16le() interfaces\n** extract UTF-16 strings as big-endian and little-endian respectively.\n**\n** ^If [sqlite3_value] object V was initialized \n** using [sqlite3_bind_pointer(S,I,P,X,D)] or [sqlite3_result_pointer(C,P,X,D)]\n** and if X and Y are strings that compare equal according to strcmp(X,Y),\n** then sqlite3_value_pointer(V,Y) will return the pointer P.  ^Otherwise,\n** sqlite3_value_pointer(V,Y) returns a NULL. The sqlite3_bind_pointer() \n** routine is part of the [pointer passing interface] added for SQLite 3.20.0.\n**\n** ^(The sqlite3_value_type(V) interface returns the\n** [SQLITE_INTEGER | datatype code] for the initial datatype of the\n** [sqlite3_value] object V. The returned value is one of [SQLITE_INTEGER],\n** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].)^\n** Other interfaces might change the datatype for an sqlite3_value object.\n** For example, if the datatype is initially SQLITE_INTEGER and\n** sqlite3_value_text(V) is called to extract a text value for that\n** integer, then subsequent calls to sqlite3_value_type(V) might return\n** SQLITE_TEXT.  Whether or not a persistent internal datatype conversion\n** occurs is undefined and may change from one release of SQLite to the next.\n**\n** ^(The sqlite3_value_numeric_type() interface attempts to apply\n** numeric affinity to the value.  This means that an attempt is\n** made to convert the value to an integer or floating point.  If\n** such a conversion is possible without loss of information (in other\n** words, if the value is a string that looks like a number)\n** then the conversion is performed.  Otherwise no conversion occurs.\n** The [SQLITE_INTEGER | datatype] after conversion is returned.)^\n**\n** ^Within the [xUpdate] method of a [virtual table], the\n** sqlite3_value_nochange(X) interface returns true if and only if\n** the column corresponding to X is unchanged by the UPDATE operation\n** that the xUpdate method call was invoked to implement and if\n** and the prior [xColumn] method call that was invoked to extracted\n** the value for that column returned without setting a result (probably\n** because it queried [sqlite3_vtab_nochange()] and found that the column\n** was unchanging).  ^Within an [xUpdate] method, any value for which\n** sqlite3_value_nochange(X) is true will in all other respects appear\n** to be a NULL value.  If sqlite3_value_nochange(X) is invoked anywhere other\n** than within an [xUpdate] method call for an UPDATE statement, then\n** the return value is arbitrary and meaningless.\n**\n** Please pay particular attention to the fact that the pointer returned\n** from [sqlite3_value_blob()], [sqlite3_value_text()], or\n** [sqlite3_value_text16()] can be invalidated by a subsequent call to\n** [sqlite3_value_bytes()], [sqlite3_value_bytes16()], [sqlite3_value_text()],\n** or [sqlite3_value_text16()].\n**\n** These routines must be called from the same thread as\n** the SQL function that supplied the [sqlite3_value*] parameters.\n*/\nSQLITE_API const void *sqlite3_value_blob(sqlite3_value*);\nSQLITE_API double sqlite3_value_double(sqlite3_value*);\nSQLITE_API int sqlite3_value_int(sqlite3_value*);\nSQLITE_API sqlite3_int64 sqlite3_value_int64(sqlite3_value*);\nSQLITE_API void *sqlite3_value_pointer(sqlite3_value*, const char*);\nSQLITE_API const unsigned char *sqlite3_value_text(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16le(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16be(sqlite3_value*);\nSQLITE_API int sqlite3_value_bytes(sqlite3_value*);\nSQLITE_API int sqlite3_value_bytes16(sqlite3_value*);\nSQLITE_API int sqlite3_value_type(sqlite3_value*);\nSQLITE_API int sqlite3_value_numeric_type(sqlite3_value*);\nSQLITE_API int sqlite3_value_nochange(sqlite3_value*);\n\n/*\n** CAPI3REF: Finding The Subtype Of SQL Values\n** METHOD: sqlite3_value\n**\n** The sqlite3_value_subtype(V) function returns the subtype for\n** an [application-defined SQL function] argument V.  The subtype\n** information can be used to pass a limited amount of context from\n** one SQL function to another.  Use the [sqlite3_result_subtype()]\n** routine to set the subtype for the return value of an SQL function.\n*/\nSQLITE_API unsigned int sqlite3_value_subtype(sqlite3_value*);\n\n/*\n** CAPI3REF: Copy And Free SQL Values\n** METHOD: sqlite3_value\n**\n** ^The sqlite3_value_dup(V) interface makes a copy of the [sqlite3_value]\n** object D and returns a pointer to that copy.  ^The [sqlite3_value] returned\n** is a [protected sqlite3_value] object even if the input is not.\n** ^The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a\n** memory allocation fails.\n**\n** ^The sqlite3_value_free(V) interface frees an [sqlite3_value] object\n** previously obtained from [sqlite3_value_dup()].  ^If V is a NULL pointer\n** then sqlite3_value_free(V) is a harmless no-op.\n*/\nSQLITE_API sqlite3_value *sqlite3_value_dup(const sqlite3_value*);\nSQLITE_API void sqlite3_value_free(sqlite3_value*);\n\n/*\n** CAPI3REF: Obtain Aggregate Function Context\n** METHOD: sqlite3_context\n**\n** Implementations of aggregate SQL functions use this\n** routine to allocate memory for storing their state.\n**\n** ^The first time the sqlite3_aggregate_context(C,N) routine is called \n** for a particular aggregate function, SQLite\n** allocates N of memory, zeroes out that memory, and returns a pointer\n** to the new memory. ^On second and subsequent calls to\n** sqlite3_aggregate_context() for the same aggregate function instance,\n** the same buffer is returned.  Sqlite3_aggregate_context() is normally\n** called once for each invocation of the xStep callback and then one\n** last time when the xFinal callback is invoked.  ^(When no rows match\n** an aggregate query, the xStep() callback of the aggregate function\n** implementation is never called and xFinal() is called exactly once.\n** In those cases, sqlite3_aggregate_context() might be called for the\n** first time from within xFinal().)^\n**\n** ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer \n** when first called if N is less than or equal to zero or if a memory\n** allocate error occurs.\n**\n** ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is\n** determined by the N parameter on first successful call.  Changing the\n** value of N in subsequent call to sqlite3_aggregate_context() within\n** the same aggregate function instance will not resize the memory\n** allocation.)^  Within the xFinal callback, it is customary to set\n** N=0 in calls to sqlite3_aggregate_context(C,N) so that no \n** pointless memory allocations occur.\n**\n** ^SQLite automatically frees the memory allocated by \n** sqlite3_aggregate_context() when the aggregate query concludes.\n**\n** The first parameter must be a copy of the\n** [sqlite3_context | SQL function context] that is the first parameter\n** to the xStep or xFinal callback routine that implements the aggregate\n** function.\n**\n** This routine must be called from the same thread in which\n** the aggregate SQL function is running.\n*/\nSQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);\n\n/*\n** CAPI3REF: User Data For Functions\n** METHOD: sqlite3_context\n**\n** ^The sqlite3_user_data() interface returns a copy of\n** the pointer that was the pUserData parameter (the 5th parameter)\n** of the [sqlite3_create_function()]\n** and [sqlite3_create_function16()] routines that originally\n** registered the application defined function.\n**\n** This routine must be called from the same thread in which\n** the application-defined function is running.\n*/\nSQLITE_API void *sqlite3_user_data(sqlite3_context*);\n\n/*\n** CAPI3REF: Database Connection For Functions\n** METHOD: sqlite3_context\n**\n** ^The sqlite3_context_db_handle() interface returns a copy of\n** the pointer to the [database connection] (the 1st parameter)\n** of the [sqlite3_create_function()]\n** and [sqlite3_create_function16()] routines that originally\n** registered the application defined function.\n*/\nSQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context*);\n\n/*\n** CAPI3REF: Function Auxiliary Data\n** METHOD: sqlite3_context\n**\n** These functions may be used by (non-aggregate) SQL functions to\n** associate metadata with argument values. If the same value is passed to\n** multiple invocations of the same SQL function during query execution, under\n** some circumstances the associated metadata may be preserved.  An example\n** of where this might be useful is in a regular-expression matching\n** function. The compiled version of the regular expression can be stored as\n** metadata associated with the pattern string.  \n** Then as long as the pattern string remains the same,\n** the compiled regular expression can be reused on multiple\n** invocations of the same function.\n**\n** ^The sqlite3_get_auxdata(C,N) interface returns a pointer to the metadata\n** associated by the sqlite3_set_auxdata(C,N,P,X) function with the Nth argument\n** value to the application-defined function.  ^N is zero for the left-most\n** function argument.  ^If there is no metadata\n** associated with the function argument, the sqlite3_get_auxdata(C,N) interface\n** returns a NULL pointer.\n**\n** ^The sqlite3_set_auxdata(C,N,P,X) interface saves P as metadata for the N-th\n** argument of the application-defined function.  ^Subsequent\n** calls to sqlite3_get_auxdata(C,N) return P from the most recent\n** sqlite3_set_auxdata(C,N,P,X) call if the metadata is still valid or\n** NULL if the metadata has been discarded.\n** ^After each call to sqlite3_set_auxdata(C,N,P,X) where X is not NULL,\n** SQLite will invoke the destructor function X with parameter P exactly\n** once, when the metadata is discarded.\n** SQLite is free to discard the metadata at any time, including: <ul>\n** <li> ^(when the corresponding function parameter changes)^, or\n** <li> ^(when [sqlite3_reset()] or [sqlite3_finalize()] is called for the\n**      SQL statement)^, or\n** <li> ^(when sqlite3_set_auxdata() is invoked again on the same\n**       parameter)^, or\n** <li> ^(during the original sqlite3_set_auxdata() call when a memory \n**      allocation error occurs.)^ </ul>\n**\n** Note the last bullet in particular.  The destructor X in \n** sqlite3_set_auxdata(C,N,P,X) might be called immediately, before the\n** sqlite3_set_auxdata() interface even returns.  Hence sqlite3_set_auxdata()\n** should be called near the end of the function implementation and the\n** function implementation should not make any use of P after\n** sqlite3_set_auxdata() has been called.\n**\n** ^(In practice, metadata is preserved between function calls for\n** function parameters that are compile-time constants, including literal\n** values and [parameters] and expressions composed from the same.)^\n**\n** The value of the N parameter to these interfaces should be non-negative.\n** Future enhancements may make use of negative N values to define new\n** kinds of function caching behavior.\n**\n** These routines must be called from the same thread in which\n** the SQL function is running.\n*/\nSQLITE_API void *sqlite3_get_auxdata(sqlite3_context*, int N);\nSQLITE_API void sqlite3_set_auxdata(sqlite3_context*, int N, void*, void (*)(void*));\n\n\n/*\n** CAPI3REF: Constants Defining Special Destructor Behavior\n**\n** These are special values for the destructor that is passed in as the\n** final argument to routines like [sqlite3_result_blob()].  ^If the destructor\n** argument is SQLITE_STATIC, it means that the content pointer is constant\n** and will never change.  It does not need to be destroyed.  ^The\n** SQLITE_TRANSIENT value means that the content will likely change in\n** the near future and that SQLite should make its own private copy of\n** the content before returning.\n**\n** The typedef is necessary to work around problems in certain\n** C++ compilers.\n*/\ntypedef void (*sqlite3_destructor_type)(void*);\n#define SQLITE_STATIC      ((sqlite3_destructor_type)0)\n#define SQLITE_TRANSIENT   ((sqlite3_destructor_type)-1)\n\n/*\n** CAPI3REF: Setting The Result Of An SQL Function\n** METHOD: sqlite3_context\n**\n** These routines are used by the xFunc or xFinal callbacks that\n** implement SQL functions and aggregates.  See\n** [sqlite3_create_function()] and [sqlite3_create_function16()]\n** for additional information.\n**\n** These functions work very much like the [parameter binding] family of\n** functions used to bind values to host parameters in prepared statements.\n** Refer to the [SQL parameter] documentation for additional information.\n**\n** ^The sqlite3_result_blob() interface sets the result from\n** an application-defined function to be the BLOB whose content is pointed\n** to by the second parameter and which is N bytes long where N is the\n** third parameter.\n**\n** ^The sqlite3_result_zeroblob(C,N) and sqlite3_result_zeroblob64(C,N)\n** interfaces set the result of the application-defined function to be\n** a BLOB containing all zero bytes and N bytes in size.\n**\n** ^The sqlite3_result_double() interface sets the result from\n** an application-defined function to be a floating point value specified\n** by its 2nd argument.\n**\n** ^The sqlite3_result_error() and sqlite3_result_error16() functions\n** cause the implemented SQL function to throw an exception.\n** ^SQLite uses the string pointed to by the\n** 2nd parameter of sqlite3_result_error() or sqlite3_result_error16()\n** as the text of an error message.  ^SQLite interprets the error\n** message string from sqlite3_result_error() as UTF-8. ^SQLite\n** interprets the string from sqlite3_result_error16() as UTF-16 in native\n** byte order.  ^If the third parameter to sqlite3_result_error()\n** or sqlite3_result_error16() is negative then SQLite takes as the error\n** message all text up through the first zero character.\n** ^If the third parameter to sqlite3_result_error() or\n** sqlite3_result_error16() is non-negative then SQLite takes that many\n** bytes (not characters) from the 2nd parameter as the error message.\n** ^The sqlite3_result_error() and sqlite3_result_error16()\n** routines make a private copy of the error message text before\n** they return.  Hence, the calling function can deallocate or\n** modify the text after they return without harm.\n** ^The sqlite3_result_error_code() function changes the error code\n** returned by SQLite as a result of an error in a function.  ^By default,\n** the error code is SQLITE_ERROR.  ^A subsequent call to sqlite3_result_error()\n** or sqlite3_result_error16() resets the error code to SQLITE_ERROR.\n**\n** ^The sqlite3_result_error_toobig() interface causes SQLite to throw an\n** error indicating that a string or BLOB is too long to represent.\n**\n** ^The sqlite3_result_error_nomem() interface causes SQLite to throw an\n** error indicating that a memory allocation failed.\n**\n** ^The sqlite3_result_int() interface sets the return value\n** of the application-defined function to be the 32-bit signed integer\n** value given in the 2nd argument.\n** ^The sqlite3_result_int64() interface sets the return value\n** of the application-defined function to be the 64-bit signed integer\n** value given in the 2nd argument.\n**\n** ^The sqlite3_result_null() interface sets the return value\n** of the application-defined function to be NULL.\n**\n** ^The sqlite3_result_text(), sqlite3_result_text16(),\n** sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces\n** set the return value of the application-defined function to be\n** a text string which is represented as UTF-8, UTF-16 native byte order,\n** UTF-16 little endian, or UTF-16 big endian, respectively.\n** ^The sqlite3_result_text64() interface sets the return value of an\n** application-defined function to be a text string in an encoding\n** specified by the fifth (and last) parameter, which must be one\n** of [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE].\n** ^SQLite takes the text result from the application from\n** the 2nd parameter of the sqlite3_result_text* interfaces.\n** ^If the 3rd parameter to the sqlite3_result_text* interfaces\n** is negative, then SQLite takes result text from the 2nd parameter\n** through the first zero character.\n** ^If the 3rd parameter to the sqlite3_result_text* interfaces\n** is non-negative, then as many bytes (not characters) of the text\n** pointed to by the 2nd parameter are taken as the application-defined\n** function result.  If the 3rd parameter is non-negative, then it\n** must be the byte offset into the string where the NUL terminator would\n** appear if the string where NUL terminated.  If any NUL characters occur\n** in the string at a byte offset that is less than the value of the 3rd\n** parameter, then the resulting string will contain embedded NULs and the\n** result of expressions operating on strings with embedded NULs is undefined.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces\n** or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that\n** function as the destructor on the text or BLOB result when it has\n** finished using that result.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces or to\n** sqlite3_result_blob is the special constant SQLITE_STATIC, then SQLite\n** assumes that the text or BLOB result is in constant space and does not\n** copy the content of the parameter nor call a destructor on the content\n** when it has finished using that result.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces\n** or sqlite3_result_blob is the special constant SQLITE_TRANSIENT\n** then SQLite makes a copy of the result into space obtained\n** from [sqlite3_malloc()] before it returns.\n**\n** ^The sqlite3_result_value() interface sets the result of\n** the application-defined function to be a copy of the\n** [unprotected sqlite3_value] object specified by the 2nd parameter.  ^The\n** sqlite3_result_value() interface makes a copy of the [sqlite3_value]\n** so that the [sqlite3_value] specified in the parameter may change or\n** be deallocated after sqlite3_result_value() returns without harm.\n** ^A [protected sqlite3_value] object may always be used where an\n** [unprotected sqlite3_value] object is required, so either\n** kind of [sqlite3_value] object can be used with this interface.\n**\n** ^The sqlite3_result_pointer(C,P,T,D) interface sets the result to an\n** SQL NULL value, just like [sqlite3_result_null(C)], except that it\n** also associates the host-language pointer P or type T with that \n** NULL value such that the pointer can be retrieved within an\n** [application-defined SQL function] using [sqlite3_value_pointer()].\n** ^If the D parameter is not NULL, then it is a pointer to a destructor\n** for the P parameter.  ^SQLite invokes D with P as its only argument\n** when SQLite is finished with P.  The T parameter should be a static\n** string and preferably a string literal. The sqlite3_result_pointer()\n** routine is part of the [pointer passing interface] added for SQLite 3.20.0.\n**\n** If these routines are called from within the different thread\n** than the one containing the application-defined function that received\n** the [sqlite3_context] pointer, the results are undefined.\n*/\nSQLITE_API void sqlite3_result_blob(sqlite3_context*, const void*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_blob64(sqlite3_context*,const void*,\n                           sqlite3_uint64,void(*)(void*));\nSQLITE_API void sqlite3_result_double(sqlite3_context*, double);\nSQLITE_API void sqlite3_result_error(sqlite3_context*, const char*, int);\nSQLITE_API void sqlite3_result_error16(sqlite3_context*, const void*, int);\nSQLITE_API void sqlite3_result_error_toobig(sqlite3_context*);\nSQLITE_API void sqlite3_result_error_nomem(sqlite3_context*);\nSQLITE_API void sqlite3_result_error_code(sqlite3_context*, int);\nSQLITE_API void sqlite3_result_int(sqlite3_context*, int);\nSQLITE_API void sqlite3_result_int64(sqlite3_context*, sqlite3_int64);\nSQLITE_API void sqlite3_result_null(sqlite3_context*);\nSQLITE_API void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_text64(sqlite3_context*, const char*,sqlite3_uint64,\n                           void(*)(void*), unsigned char encoding);\nSQLITE_API void sqlite3_result_text16(sqlite3_context*, const void*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_text16le(sqlite3_context*, const void*, int,void(*)(void*));\nSQLITE_API void sqlite3_result_text16be(sqlite3_context*, const void*, int,void(*)(void*));\nSQLITE_API void sqlite3_result_value(sqlite3_context*, sqlite3_value*);\nSQLITE_API void sqlite3_result_pointer(sqlite3_context*, void*,const char*,void(*)(void*));\nSQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n);\nSQLITE_API int sqlite3_result_zeroblob64(sqlite3_context*, sqlite3_uint64 n);\n\n\n/*\n** CAPI3REF: Setting The Subtype Of An SQL Function\n** METHOD: sqlite3_context\n**\n** The sqlite3_result_subtype(C,T) function causes the subtype of\n** the result from the [application-defined SQL function] with \n** [sqlite3_context] C to be the value T.  Only the lower 8 bits \n** of the subtype T are preserved in current versions of SQLite;\n** higher order bits are discarded.\n** The number of subtype bytes preserved by SQLite might increase\n** in future releases of SQLite.\n*/\nSQLITE_API void sqlite3_result_subtype(sqlite3_context*,unsigned int);\n\n/*\n** CAPI3REF: Define New Collating Sequences\n** METHOD: sqlite3\n**\n** ^These functions add, remove, or modify a [collation] associated\n** with the [database connection] specified as the first argument.\n**\n** ^The name of the collation is a UTF-8 string\n** for sqlite3_create_collation() and sqlite3_create_collation_v2()\n** and a UTF-16 string in native byte order for sqlite3_create_collation16().\n** ^Collation names that compare equal according to [sqlite3_strnicmp()] are\n** considered to be the same name.\n**\n** ^(The third argument (eTextRep) must be one of the constants:\n** <ul>\n** <li> [SQLITE_UTF8],\n** <li> [SQLITE_UTF16LE],\n** <li> [SQLITE_UTF16BE],\n** <li> [SQLITE_UTF16], or\n** <li> [SQLITE_UTF16_ALIGNED].\n** </ul>)^\n** ^The eTextRep argument determines the encoding of strings passed\n** to the collating function callback, xCallback.\n** ^The [SQLITE_UTF16] and [SQLITE_UTF16_ALIGNED] values for eTextRep\n** force strings to be UTF16 with native byte order.\n** ^The [SQLITE_UTF16_ALIGNED] value for eTextRep forces strings to begin\n** on an even byte address.\n**\n** ^The fourth argument, pArg, is an application data pointer that is passed\n** through as the first argument to the collating function callback.\n**\n** ^The fifth argument, xCallback, is a pointer to the collating function.\n** ^Multiple collating functions can be registered using the same name but\n** with different eTextRep parameters and SQLite will use whichever\n** function requires the least amount of data transformation.\n** ^If the xCallback argument is NULL then the collating function is\n** deleted.  ^When all collating functions having the same name are deleted,\n** that collation is no longer usable.\n**\n** ^The collating function callback is invoked with a copy of the pArg \n** application data pointer and with two strings in the encoding specified\n** by the eTextRep argument.  The collating function must return an\n** integer that is negative, zero, or positive\n** if the first string is less than, equal to, or greater than the second,\n** respectively.  A collating function must always return the same answer\n** given the same inputs.  If two or more collating functions are registered\n** to the same collation name (using different eTextRep values) then all\n** must give an equivalent answer when invoked with equivalent strings.\n** The collating function must obey the following properties for all\n** strings A, B, and C:\n**\n** <ol>\n** <li> If A==B then B==A.\n** <li> If A==B and B==C then A==C.\n** <li> If A&lt;B THEN B&gt;A.\n** <li> If A&lt;B and B&lt;C then A&lt;C.\n** </ol>\n**\n** If a collating function fails any of the above constraints and that\n** collating function is  registered and used, then the behavior of SQLite\n** is undefined.\n**\n** ^The sqlite3_create_collation_v2() works like sqlite3_create_collation()\n** with the addition that the xDestroy callback is invoked on pArg when\n** the collating function is deleted.\n** ^Collating functions are deleted when they are overridden by later\n** calls to the collation creation functions or when the\n** [database connection] is closed using [sqlite3_close()].\n**\n** ^The xDestroy callback is <u>not</u> called if the \n** sqlite3_create_collation_v2() function fails.  Applications that invoke\n** sqlite3_create_collation_v2() with a non-NULL xDestroy argument should \n** check the return code and dispose of the application data pointer\n** themselves rather than expecting SQLite to deal with it for them.\n** This is different from every other SQLite interface.  The inconsistency \n** is unfortunate but cannot be changed without breaking backwards \n** compatibility.\n**\n** See also:  [sqlite3_collation_needed()] and [sqlite3_collation_needed16()].\n*/\nSQLITE_API int sqlite3_create_collation(\n  sqlite3*, \n  const char *zName, \n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n);\nSQLITE_API int sqlite3_create_collation_v2(\n  sqlite3*, \n  const char *zName, \n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*),\n  void(*xDestroy)(void*)\n);\nSQLITE_API int sqlite3_create_collation16(\n  sqlite3*, \n  const void *zName,\n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n);\n\n/*\n** CAPI3REF: Collation Needed Callbacks\n** METHOD: sqlite3\n**\n** ^To avoid having to register all collation sequences before a database\n** can be used, a single callback function may be registered with the\n** [database connection] to be invoked whenever an undefined collation\n** sequence is required.\n**\n** ^If the function is registered using the sqlite3_collation_needed() API,\n** then it is passed the names of undefined collation sequences as strings\n** encoded in UTF-8. ^If sqlite3_collation_needed16() is used,\n** the names are passed as UTF-16 in machine native byte order.\n** ^A call to either function replaces the existing collation-needed callback.\n**\n** ^(When the callback is invoked, the first argument passed is a copy\n** of the second argument to sqlite3_collation_needed() or\n** sqlite3_collation_needed16().  The second argument is the database\n** connection.  The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE],\n** or [SQLITE_UTF16LE], indicating the most desirable form of the collation\n** sequence function required.  The fourth parameter is the name of the\n** required collation sequence.)^\n**\n** The callback function should register the desired collation using\n** [sqlite3_create_collation()], [sqlite3_create_collation16()], or\n** [sqlite3_create_collation_v2()].\n*/\nSQLITE_API int sqlite3_collation_needed(\n  sqlite3*, \n  void*, \n  void(*)(void*,sqlite3*,int eTextRep,const char*)\n);\nSQLITE_API int sqlite3_collation_needed16(\n  sqlite3*, \n  void*,\n  void(*)(void*,sqlite3*,int eTextRep,const void*)\n);\n\n#ifdef SQLITE_HAS_CODEC\n/*\n** Specify the key for an encrypted database.  This routine should be\n** called right after sqlite3_open().\n**\n** The code to implement this API is not available in the public release\n** of SQLite.\n*/\nSQLITE_API int sqlite3_key(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const void *pKey, int nKey     /* The key */\n);\nSQLITE_API int sqlite3_key_v2(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const char *zDbName,           /* Name of the database */\n  const void *pKey, int nKey     /* The key */\n);\n\n/*\n** Change the key on an open database.  If the current database is not\n** encrypted, this routine will encrypt it.  If pNew==0 or nNew==0, the\n** database is decrypted.\n**\n** The code to implement this API is not available in the public release\n** of SQLite.\n*/\nSQLITE_API int sqlite3_rekey(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const void *pKey, int nKey     /* The new key */\n);\nSQLITE_API int sqlite3_rekey_v2(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const char *zDbName,           /* Name of the database */\n  const void *pKey, int nKey     /* The new key */\n);\n\n/*\n** Specify the activation key for a SEE database.  Unless \n** activated, none of the SEE routines will work.\n*/\nSQLITE_API void sqlite3_activate_see(\n  const char *zPassPhrase        /* Activation phrase */\n);\n#endif\n\n#ifdef SQLITE_ENABLE_CEROD\n/*\n** Specify the activation key for a CEROD database.  Unless \n** activated, none of the CEROD routines will work.\n*/\nSQLITE_API void sqlite3_activate_cerod(\n  const char *zPassPhrase        /* Activation phrase */\n);\n#endif\n\n/*\n** CAPI3REF: Suspend Execution For A Short Time\n**\n** The sqlite3_sleep() function causes the current thread to suspend execution\n** for at least a number of milliseconds specified in its parameter.\n**\n** If the operating system does not support sleep requests with\n** millisecond time resolution, then the time will be rounded up to\n** the nearest second. The number of milliseconds of sleep actually\n** requested from the operating system is returned.\n**\n** ^SQLite implements this interface by calling the xSleep()\n** method of the default [sqlite3_vfs] object.  If the xSleep() method\n** of the default VFS is not implemented correctly, or not implemented at\n** all, then the behavior of sqlite3_sleep() may deviate from the description\n** in the previous paragraphs.\n*/\nSQLITE_API int sqlite3_sleep(int);\n\n/*\n** CAPI3REF: Name Of The Folder Holding Temporary Files\n**\n** ^(If this global variable is made to point to a string which is\n** the name of a folder (a.k.a. directory), then all temporary files\n** created by SQLite when using a built-in [sqlite3_vfs | VFS]\n** will be placed in that directory.)^  ^If this variable\n** is a NULL pointer, then SQLite performs a search for an appropriate\n** temporary file directory.\n**\n** Applications are strongly discouraged from using this global variable.\n** It is required to set a temporary folder on Windows Runtime (WinRT).\n** But for all other platforms, it is highly recommended that applications\n** neither read nor write this variable.  This global variable is a relic\n** that exists for backwards compatibility of legacy applications and should\n** be avoided in new projects.\n**\n** It is not safe to read or modify this variable in more than one\n** thread at a time.  It is not safe to read or modify this variable\n** if a [database connection] is being used at the same time in a separate\n** thread.\n** It is intended that this variable be set once\n** as part of process initialization and before any SQLite interface\n** routines have been called and that this variable remain unchanged\n** thereafter.\n**\n** ^The [temp_store_directory pragma] may modify this variable and cause\n** it to point to memory obtained from [sqlite3_malloc].  ^Furthermore,\n** the [temp_store_directory pragma] always assumes that any string\n** that this variable points to is held in memory obtained from \n** [sqlite3_malloc] and the pragma may attempt to free that memory\n** using [sqlite3_free].\n** Hence, if this variable is modified directly, either it should be\n** made NULL or made to point to memory obtained from [sqlite3_malloc]\n** or else the use of the [temp_store_directory pragma] should be avoided.\n** Except when requested by the [temp_store_directory pragma], SQLite\n** does not free the memory that sqlite3_temp_directory points to.  If\n** the application wants that memory to be freed, it must do\n** so itself, taking care to only do so after all [database connection]\n** objects have been destroyed.\n**\n** <b>Note to Windows Runtime users:</b>  The temporary directory must be set\n** prior to calling [sqlite3_open] or [sqlite3_open_v2].  Otherwise, various\n** features that require the use of temporary files may fail.  Here is an\n** example of how to do this using C++ with the Windows Runtime:\n**\n** <blockquote><pre>\n** LPCWSTR zPath = Windows::Storage::ApplicationData::Current->\n** &nbsp;     TemporaryFolder->Path->Data();\n** char zPathBuf&#91;MAX_PATH + 1&#93;;\n** memset(zPathBuf, 0, sizeof(zPathBuf));\n** WideCharToMultiByte(CP_UTF8, 0, zPath, -1, zPathBuf, sizeof(zPathBuf),\n** &nbsp;     NULL, NULL);\n** sqlite3_temp_directory = sqlite3_mprintf(\"%s\", zPathBuf);\n** </pre></blockquote>\n*/\nSQLITE_API SQLITE_EXTERN char *sqlite3_temp_directory;\n\n/*\n** CAPI3REF: Name Of The Folder Holding Database Files\n**\n** ^(If this global variable is made to point to a string which is\n** the name of a folder (a.k.a. directory), then all database files\n** specified with a relative pathname and created or accessed by\n** SQLite when using a built-in windows [sqlite3_vfs | VFS] will be assumed\n** to be relative to that directory.)^ ^If this variable is a NULL\n** pointer, then SQLite assumes that all database files specified\n** with a relative pathname are relative to the current directory\n** for the process.  Only the windows VFS makes use of this global\n** variable; it is ignored by the unix VFS.\n**\n** Changing the value of this variable while a database connection is\n** open can result in a corrupt database.\n**\n** It is not safe to read or modify this variable in more than one\n** thread at a time.  It is not safe to read or modify this variable\n** if a [database connection] is being used at the same time in a separate\n** thread.\n** It is intended that this variable be set once\n** as part of process initialization and before any SQLite interface\n** routines have been called and that this variable remain unchanged\n** thereafter.\n**\n** ^The [data_store_directory pragma] may modify this variable and cause\n** it to point to memory obtained from [sqlite3_malloc].  ^Furthermore,\n** the [data_store_directory pragma] always assumes that any string\n** that this variable points to is held in memory obtained from \n** [sqlite3_malloc] and the pragma may attempt to free that memory\n** using [sqlite3_free].\n** Hence, if this variable is modified directly, either it should be\n** made NULL or made to point to memory obtained from [sqlite3_malloc]\n** or else the use of the [data_store_directory pragma] should be avoided.\n*/\nSQLITE_API SQLITE_EXTERN char *sqlite3_data_directory;\n\n/*\n** CAPI3REF: Test For Auto-Commit Mode\n** KEYWORDS: {autocommit mode}\n** METHOD: sqlite3\n**\n** ^The sqlite3_get_autocommit() interface returns non-zero or\n** zero if the given database connection is or is not in autocommit mode,\n** respectively.  ^Autocommit mode is on by default.\n** ^Autocommit mode is disabled by a [BEGIN] statement.\n** ^Autocommit mode is re-enabled by a [COMMIT] or [ROLLBACK].\n**\n** If certain kinds of errors occur on a statement within a multi-statement\n** transaction (errors including [SQLITE_FULL], [SQLITE_IOERR],\n** [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the\n** transaction might be rolled back automatically.  The only way to\n** find out whether SQLite automatically rolled back the transaction after\n** an error is to use this function.\n**\n** If another thread changes the autocommit status of the database\n** connection while this routine is running, then the return value\n** is undefined.\n*/\nSQLITE_API int sqlite3_get_autocommit(sqlite3*);\n\n/*\n** CAPI3REF: Find The Database Handle Of A Prepared Statement\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_db_handle interface returns the [database connection] handle\n** to which a [prepared statement] belongs.  ^The [database connection]\n** returned by sqlite3_db_handle is the same [database connection]\n** that was the first argument\n** to the [sqlite3_prepare_v2()] call (or its variants) that was used to\n** create the statement in the first place.\n*/\nSQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Return The Filename For A Database Connection\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_filename(D,N) interface returns a pointer to a filename\n** associated with database N of connection D.  ^The main database file\n** has the name \"main\".  If there is no attached database N on the database\n** connection D, or if database N is a temporary or in-memory database, then\n** a NULL pointer is returned.\n**\n** ^The filename returned by this function is the output of the\n** xFullPathname method of the [VFS].  ^In other words, the filename\n** will be an absolute pathname, even if the filename used\n** to open the database originally was a URI or relative pathname.\n*/\nSQLITE_API const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName);\n\n/*\n** CAPI3REF: Determine if a database is read-only\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_readonly(D,N) interface returns 1 if the database N\n** of connection D is read-only, 0 if it is read/write, or -1 if N is not\n** the name of a database on connection D.\n*/\nSQLITE_API int sqlite3_db_readonly(sqlite3 *db, const char *zDbName);\n\n/*\n** CAPI3REF: Find the next prepared statement\n** METHOD: sqlite3\n**\n** ^This interface returns a pointer to the next [prepared statement] after\n** pStmt associated with the [database connection] pDb.  ^If pStmt is NULL\n** then this interface returns a pointer to the first prepared statement\n** associated with the database connection pDb.  ^If no prepared statement\n** satisfies the conditions of this routine, it returns NULL.\n**\n** The [database connection] pointer D in a call to\n** [sqlite3_next_stmt(D,S)] must refer to an open database\n** connection and in particular must not be a NULL pointer.\n*/\nSQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Commit And Rollback Notification Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_commit_hook() interface registers a callback\n** function to be invoked whenever a transaction is [COMMIT | committed].\n** ^Any callback set by a previous call to sqlite3_commit_hook()\n** for the same database connection is overridden.\n** ^The sqlite3_rollback_hook() interface registers a callback\n** function to be invoked whenever a transaction is [ROLLBACK | rolled back].\n** ^Any callback set by a previous call to sqlite3_rollback_hook()\n** for the same database connection is overridden.\n** ^The pArg argument is passed through to the callback.\n** ^If the callback on a commit hook function returns non-zero,\n** then the commit is converted into a rollback.\n**\n** ^The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions\n** return the P argument from the previous call of the same function\n** on the same [database connection] D, or NULL for\n** the first call for each function on D.\n**\n** The commit and rollback hook callbacks are not reentrant.\n** The callback implementation must not do anything that will modify\n** the database connection that invoked the callback.  Any actions\n** to modify the database connection must be deferred until after the\n** completion of the [sqlite3_step()] call that triggered the commit\n** or rollback hook in the first place.\n** Note that running any other SQL statements, including SELECT statements,\n** or merely calling [sqlite3_prepare_v2()] and [sqlite3_step()] will modify\n** the database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^Registering a NULL function disables the callback.\n**\n** ^When the commit hook callback routine returns zero, the [COMMIT]\n** operation is allowed to continue normally.  ^If the commit hook\n** returns non-zero, then the [COMMIT] is converted into a [ROLLBACK].\n** ^The rollback hook is invoked on a rollback that results from a commit\n** hook returning non-zero, just as it would be with any other rollback.\n**\n** ^For the purposes of this API, a transaction is said to have been\n** rolled back if an explicit \"ROLLBACK\" statement is executed, or\n** an error or constraint causes an implicit rollback to occur.\n** ^The rollback callback is not invoked if a transaction is\n** automatically rolled back because the database connection is closed.\n**\n** See also the [sqlite3_update_hook()] interface.\n*/\nSQLITE_API void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);\nSQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);\n\n/*\n** CAPI3REF: Data Change Notification Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_update_hook() interface registers a callback function\n** with the [database connection] identified by the first argument\n** to be invoked whenever a row is updated, inserted or deleted in\n** a [rowid table].\n** ^Any callback set by a previous call to this function\n** for the same database connection is overridden.\n**\n** ^The second argument is a pointer to the function to invoke when a\n** row is updated, inserted or deleted in a rowid table.\n** ^The first argument to the callback is a copy of the third argument\n** to sqlite3_update_hook().\n** ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE],\n** or [SQLITE_UPDATE], depending on the operation that caused the callback\n** to be invoked.\n** ^The third and fourth arguments to the callback contain pointers to the\n** database and table name containing the affected row.\n** ^The final callback parameter is the [rowid] of the row.\n** ^In the case of an update, this is the [rowid] after the update takes place.\n**\n** ^(The update hook is not invoked when internal system tables are\n** modified (i.e. sqlite_master and sqlite_sequence).)^\n** ^The update hook is not invoked when [WITHOUT ROWID] tables are modified.\n**\n** ^In the current implementation, the update hook\n** is not invoked when conflicting rows are deleted because of an\n** [ON CONFLICT | ON CONFLICT REPLACE] clause.  ^Nor is the update hook\n** invoked when rows are deleted using the [truncate optimization].\n** The exceptions defined in this paragraph might change in a future\n** release of SQLite.\n**\n** The update hook implementation must not do anything that will modify\n** the database connection that invoked the update hook.  Any actions\n** to modify the database connection must be deferred until after the\n** completion of the [sqlite3_step()] call that triggered the update hook.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^The sqlite3_update_hook(D,C,P) function\n** returns the P argument from the previous call\n** on the same [database connection] D, or NULL for\n** the first call on D.\n**\n** See also the [sqlite3_commit_hook()], [sqlite3_rollback_hook()],\n** and [sqlite3_preupdate_hook()] interfaces.\n*/\nSQLITE_API void *sqlite3_update_hook(\n  sqlite3*, \n  void(*)(void *,int ,char const *,char const *,sqlite3_int64),\n  void*\n);\n\n/*\n** CAPI3REF: Enable Or Disable Shared Pager Cache\n**\n** ^(This routine enables or disables the sharing of the database cache\n** and schema data structures between [database connection | connections]\n** to the same database. Sharing is enabled if the argument is true\n** and disabled if the argument is false.)^\n**\n** ^Cache sharing is enabled and disabled for an entire process.\n** This is a change as of SQLite [version 3.5.0] ([dateof:3.5.0]). \n** In prior versions of SQLite,\n** sharing was enabled or disabled for each thread separately.\n**\n** ^(The cache sharing mode set by this interface effects all subsequent\n** calls to [sqlite3_open()], [sqlite3_open_v2()], and [sqlite3_open16()].\n** Existing database connections continue use the sharing mode\n** that was in effect at the time they were opened.)^\n**\n** ^(This routine returns [SQLITE_OK] if shared cache was enabled or disabled\n** successfully.  An [error code] is returned otherwise.)^\n**\n** ^Shared cache is disabled by default. But this might change in\n** future releases of SQLite.  Applications that care about shared\n** cache setting should set it explicitly.\n**\n** Note: This method is disabled on MacOS X 10.7 and iOS version 5.0\n** and will always return SQLITE_MISUSE. On those systems, \n** shared cache mode should be enabled per-database connection via \n** [sqlite3_open_v2()] with [SQLITE_OPEN_SHAREDCACHE].\n**\n** This interface is threadsafe on processors where writing a\n** 32-bit integer is atomic.\n**\n** See Also:  [SQLite Shared-Cache Mode]\n*/\nSQLITE_API int sqlite3_enable_shared_cache(int);\n\n/*\n** CAPI3REF: Attempt To Free Heap Memory\n**\n** ^The sqlite3_release_memory() interface attempts to free N bytes\n** of heap memory by deallocating non-essential memory allocations\n** held by the database library.   Memory used to cache database\n** pages to improve performance is an example of non-essential memory.\n** ^sqlite3_release_memory() returns the number of bytes actually freed,\n** which might be more or less than the amount requested.\n** ^The sqlite3_release_memory() routine is a no-op returning zero\n** if SQLite is not compiled with [SQLITE_ENABLE_MEMORY_MANAGEMENT].\n**\n** See also: [sqlite3_db_release_memory()]\n*/\nSQLITE_API int sqlite3_release_memory(int);\n\n/*\n** CAPI3REF: Free Memory Used By A Database Connection\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_release_memory(D) interface attempts to free as much heap\n** memory as possible from database connection D. Unlike the\n** [sqlite3_release_memory()] interface, this interface is in effect even\n** when the [SQLITE_ENABLE_MEMORY_MANAGEMENT] compile-time option is\n** omitted.\n**\n** See also: [sqlite3_release_memory()]\n*/\nSQLITE_API int sqlite3_db_release_memory(sqlite3*);\n\n/*\n** CAPI3REF: Impose A Limit On Heap Size\n**\n** ^The sqlite3_soft_heap_limit64() interface sets and/or queries the\n** soft limit on the amount of heap memory that may be allocated by SQLite.\n** ^SQLite strives to keep heap memory utilization below the soft heap\n** limit by reducing the number of pages held in the page cache\n** as heap memory usages approaches the limit.\n** ^The soft heap limit is \"soft\" because even though SQLite strives to stay\n** below the limit, it will exceed the limit rather than generate\n** an [SQLITE_NOMEM] error.  In other words, the soft heap limit \n** is advisory only.\n**\n** ^The return value from sqlite3_soft_heap_limit64() is the size of\n** the soft heap limit prior to the call, or negative in the case of an\n** error.  ^If the argument N is negative\n** then no change is made to the soft heap limit.  Hence, the current\n** size of the soft heap limit can be determined by invoking\n** sqlite3_soft_heap_limit64() with a negative argument.\n**\n** ^If the argument N is zero then the soft heap limit is disabled.\n**\n** ^(The soft heap limit is not enforced in the current implementation\n** if one or more of following conditions are true:\n**\n** <ul>\n** <li> The soft heap limit is set to zero.\n** <li> Memory accounting is disabled using a combination of the\n**      [sqlite3_config]([SQLITE_CONFIG_MEMSTATUS],...) start-time option and\n**      the [SQLITE_DEFAULT_MEMSTATUS] compile-time option.\n** <li> An alternative page cache implementation is specified using\n**      [sqlite3_config]([SQLITE_CONFIG_PCACHE2],...).\n** <li> The page cache allocates from its own memory pool supplied\n**      by [sqlite3_config]([SQLITE_CONFIG_PAGECACHE],...) rather than\n**      from the heap.\n** </ul>)^\n**\n** Beginning with SQLite [version 3.7.3] ([dateof:3.7.3]), \n** the soft heap limit is enforced\n** regardless of whether or not the [SQLITE_ENABLE_MEMORY_MANAGEMENT]\n** compile-time option is invoked.  With [SQLITE_ENABLE_MEMORY_MANAGEMENT],\n** the soft heap limit is enforced on every memory allocation.  Without\n** [SQLITE_ENABLE_MEMORY_MANAGEMENT], the soft heap limit is only enforced\n** when memory is allocated by the page cache.  Testing suggests that because\n** the page cache is the predominate memory user in SQLite, most\n** applications will achieve adequate soft heap limit enforcement without\n** the use of [SQLITE_ENABLE_MEMORY_MANAGEMENT].\n**\n** The circumstances under which SQLite will enforce the soft heap limit may\n** changes in future releases of SQLite.\n*/\nSQLITE_API sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 N);\n\n/*\n** CAPI3REF: Deprecated Soft Heap Limit Interface\n** DEPRECATED\n**\n** This is a deprecated version of the [sqlite3_soft_heap_limit64()]\n** interface.  This routine is provided for historical compatibility\n** only.  All new applications should use the\n** [sqlite3_soft_heap_limit64()] interface rather than this one.\n*/\nSQLITE_API SQLITE_DEPRECATED void sqlite3_soft_heap_limit(int N);\n\n\n/*\n** CAPI3REF: Extract Metadata About A Column Of A Table\n** METHOD: sqlite3\n**\n** ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns\n** information about column C of table T in database D\n** on [database connection] X.)^  ^The sqlite3_table_column_metadata()\n** interface returns SQLITE_OK and fills in the non-NULL pointers in\n** the final five arguments with appropriate values if the specified\n** column exists.  ^The sqlite3_table_column_metadata() interface returns\n** SQLITE_ERROR and if the specified column does not exist.\n** ^If the column-name parameter to sqlite3_table_column_metadata() is a\n** NULL pointer, then this routine simply checks for the existence of the\n** table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it\n** does not.  If the table name parameter T in a call to\n** sqlite3_table_column_metadata(X,D,T,C,...) is NULL then the result is\n** undefined behavior.\n**\n** ^The column is identified by the second, third and fourth parameters to\n** this function. ^(The second parameter is either the name of the database\n** (i.e. \"main\", \"temp\", or an attached database) containing the specified\n** table or NULL.)^ ^If it is NULL, then all attached databases are searched\n** for the table using the same algorithm used by the database engine to\n** resolve unqualified table references.\n**\n** ^The third and fourth parameters to this function are the table and column\n** name of the desired column, respectively.\n**\n** ^Metadata is returned by writing to the memory locations passed as the 5th\n** and subsequent parameters to this function. ^Any of these arguments may be\n** NULL, in which case the corresponding element of metadata is omitted.\n**\n** ^(<blockquote>\n** <table border=\"1\">\n** <tr><th> Parameter <th> Output<br>Type <th>  Description\n**\n** <tr><td> 5th <td> const char* <td> Data type\n** <tr><td> 6th <td> const char* <td> Name of default collation sequence\n** <tr><td> 7th <td> int         <td> True if column has a NOT NULL constraint\n** <tr><td> 8th <td> int         <td> True if column is part of the PRIMARY KEY\n** <tr><td> 9th <td> int         <td> True if column is [AUTOINCREMENT]\n** </table>\n** </blockquote>)^\n**\n** ^The memory pointed to by the character pointers returned for the\n** declaration type and collation sequence is valid until the next\n** call to any SQLite API function.\n**\n** ^If the specified table is actually a view, an [error code] is returned.\n**\n** ^If the specified column is \"rowid\", \"oid\" or \"_rowid_\" and the table \n** is not a [WITHOUT ROWID] table and an\n** [INTEGER PRIMARY KEY] column has been explicitly declared, then the output\n** parameters are set for the explicitly declared column. ^(If there is no\n** [INTEGER PRIMARY KEY] column, then the outputs\n** for the [rowid] are set as follows:\n**\n** <pre>\n**     data type: \"INTEGER\"\n**     collation sequence: \"BINARY\"\n**     not null: 0\n**     primary key: 1\n**     auto increment: 0\n** </pre>)^\n**\n** ^This function causes all database schemas to be read from disk and\n** parsed, if that has not already been done, and returns an error if\n** any errors are encountered while loading the schema.\n*/\nSQLITE_API int sqlite3_table_column_metadata(\n  sqlite3 *db,                /* Connection handle */\n  const char *zDbName,        /* Database name or NULL */\n  const char *zTableName,     /* Table name */\n  const char *zColumnName,    /* Column name */\n  char const **pzDataType,    /* OUTPUT: Declared data type */\n  char const **pzCollSeq,     /* OUTPUT: Collation sequence name */\n  int *pNotNull,              /* OUTPUT: True if NOT NULL constraint exists */\n  int *pPrimaryKey,           /* OUTPUT: True if column part of PK */\n  int *pAutoinc               /* OUTPUT: True if column is auto-increment */\n);\n\n/*\n** CAPI3REF: Load An Extension\n** METHOD: sqlite3\n**\n** ^This interface loads an SQLite extension library from the named file.\n**\n** ^The sqlite3_load_extension() interface attempts to load an\n** [SQLite extension] library contained in the file zFile.  If\n** the file cannot be loaded directly, attempts are made to load\n** with various operating-system specific extensions added.\n** So for example, if \"samplelib\" cannot be loaded, then names like\n** \"samplelib.so\" or \"samplelib.dylib\" or \"samplelib.dll\" might\n** be tried also.\n**\n** ^The entry point is zProc.\n** ^(zProc may be 0, in which case SQLite will try to come up with an\n** entry point name on its own.  It first tries \"sqlite3_extension_init\".\n** If that does not work, it constructs a name \"sqlite3_X_init\" where the\n** X is consists of the lower-case equivalent of all ASCII alphabetic\n** characters in the filename from the last \"/\" to the first following\n** \".\" and omitting any initial \"lib\".)^\n** ^The sqlite3_load_extension() interface returns\n** [SQLITE_OK] on success and [SQLITE_ERROR] if something goes wrong.\n** ^If an error occurs and pzErrMsg is not 0, then the\n** [sqlite3_load_extension()] interface shall attempt to\n** fill *pzErrMsg with error message text stored in memory\n** obtained from [sqlite3_malloc()]. The calling function\n** should free this memory by calling [sqlite3_free()].\n**\n** ^Extension loading must be enabled using\n** [sqlite3_enable_load_extension()] or\n** [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],1,NULL)\n** prior to calling this API,\n** otherwise an error will be returned.\n**\n** <b>Security warning:</b> It is recommended that the \n** [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method be used to enable only this\n** interface.  The use of the [sqlite3_enable_load_extension()] interface\n** should be avoided.  This will keep the SQL function [load_extension()]\n** disabled and prevent SQL injections from giving attackers\n** access to extension loading capabilities.\n**\n** See also the [load_extension() SQL function].\n*/\nSQLITE_API int sqlite3_load_extension(\n  sqlite3 *db,          /* Load the extension into this database connection */\n  const char *zFile,    /* Name of the shared library containing extension */\n  const char *zProc,    /* Entry point.  Derived from zFile if 0 */\n  char **pzErrMsg       /* Put error message here if not 0 */\n);\n\n/*\n** CAPI3REF: Enable Or Disable Extension Loading\n** METHOD: sqlite3\n**\n** ^So as not to open security holes in older applications that are\n** unprepared to deal with [extension loading], and as a means of disabling\n** [extension loading] while evaluating user-entered SQL, the following API\n** is provided to turn the [sqlite3_load_extension()] mechanism on and off.\n**\n** ^Extension loading is off by default.\n** ^Call the sqlite3_enable_load_extension() routine with onoff==1\n** to turn extension loading on and call it with onoff==0 to turn\n** it back off again.\n**\n** ^This interface enables or disables both the C-API\n** [sqlite3_load_extension()] and the SQL function [load_extension()].\n** ^(Use [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],..)\n** to enable or disable only the C-API.)^\n**\n** <b>Security warning:</b> It is recommended that extension loading\n** be disabled using the [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method\n** rather than this interface, so the [load_extension()] SQL function\n** remains disabled. This will prevent SQL injections from giving attackers\n** access to extension loading capabilities.\n*/\nSQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff);\n\n/*\n** CAPI3REF: Automatically Load Statically Linked Extensions\n**\n** ^This interface causes the xEntryPoint() function to be invoked for\n** each new [database connection] that is created.  The idea here is that\n** xEntryPoint() is the entry point for a statically linked [SQLite extension]\n** that is to be automatically loaded into all new database connections.\n**\n** ^(Even though the function prototype shows that xEntryPoint() takes\n** no arguments and returns void, SQLite invokes xEntryPoint() with three\n** arguments and expects an integer result as if the signature of the\n** entry point where as follows:\n**\n** <blockquote><pre>\n** &nbsp;  int xEntryPoint(\n** &nbsp;    sqlite3 *db,\n** &nbsp;    const char **pzErrMsg,\n** &nbsp;    const struct sqlite3_api_routines *pThunk\n** &nbsp;  );\n** </pre></blockquote>)^\n**\n** If the xEntryPoint routine encounters an error, it should make *pzErrMsg\n** point to an appropriate error message (obtained from [sqlite3_mprintf()])\n** and return an appropriate [error code].  ^SQLite ensures that *pzErrMsg\n** is NULL before calling the xEntryPoint().  ^SQLite will invoke\n** [sqlite3_free()] on *pzErrMsg after xEntryPoint() returns.  ^If any\n** xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()],\n** or [sqlite3_open_v2()] call that provoked the xEntryPoint() will fail.\n**\n** ^Calling sqlite3_auto_extension(X) with an entry point X that is already\n** on the list of automatic extensions is a harmless no-op. ^No entry point\n** will be called more than once for each database connection that is opened.\n**\n** See also: [sqlite3_reset_auto_extension()]\n** and [sqlite3_cancel_auto_extension()]\n*/\nSQLITE_API int sqlite3_auto_extension(void(*xEntryPoint)(void));\n\n/*\n** CAPI3REF: Cancel Automatic Extension Loading\n**\n** ^The [sqlite3_cancel_auto_extension(X)] interface unregisters the\n** initialization routine X that was registered using a prior call to\n** [sqlite3_auto_extension(X)].  ^The [sqlite3_cancel_auto_extension(X)]\n** routine returns 1 if initialization routine X was successfully \n** unregistered and it returns 0 if X was not on the list of initialization\n** routines.\n*/\nSQLITE_API int sqlite3_cancel_auto_extension(void(*xEntryPoint)(void));\n\n/*\n** CAPI3REF: Reset Automatic Extension Loading\n**\n** ^This interface disables all automatic extensions previously\n** registered using [sqlite3_auto_extension()].\n*/\nSQLITE_API void sqlite3_reset_auto_extension(void);\n\n/*\n** The interface to the virtual-table mechanism is currently considered\n** to be experimental.  The interface might change in incompatible ways.\n** If this is a problem for you, do not use the interface at this time.\n**\n** When the virtual-table mechanism stabilizes, we will declare the\n** interface fixed, support it indefinitely, and remove this comment.\n*/\n\n/*\n** Structures used by the virtual table interface\n*/\ntypedef struct sqlite3_vtab sqlite3_vtab;\ntypedef struct sqlite3_index_info sqlite3_index_info;\ntypedef struct sqlite3_vtab_cursor sqlite3_vtab_cursor;\ntypedef struct sqlite3_module sqlite3_module;\n\n/*\n** CAPI3REF: Virtual Table Object\n** KEYWORDS: sqlite3_module {virtual table module}\n**\n** This structure, sometimes called a \"virtual table module\", \n** defines the implementation of a [virtual tables].  \n** This structure consists mostly of methods for the module.\n**\n** ^A virtual table module is created by filling in a persistent\n** instance of this structure and passing a pointer to that instance\n** to [sqlite3_create_module()] or [sqlite3_create_module_v2()].\n** ^The registration remains valid until it is replaced by a different\n** module or until the [database connection] closes.  The content\n** of this structure must not change while it is registered with\n** any database connection.\n*/\nstruct sqlite3_module {\n  int iVersion;\n  int (*xCreate)(sqlite3*, void *pAux,\n               int argc, const char *const*argv,\n               sqlite3_vtab **ppVTab, char**);\n  int (*xConnect)(sqlite3*, void *pAux,\n               int argc, const char *const*argv,\n               sqlite3_vtab **ppVTab, char**);\n  int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);\n  int (*xDisconnect)(sqlite3_vtab *pVTab);\n  int (*xDestroy)(sqlite3_vtab *pVTab);\n  int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);\n  int (*xClose)(sqlite3_vtab_cursor*);\n  int (*xFilter)(sqlite3_vtab_cursor*, int idxNum, const char *idxStr,\n                int argc, sqlite3_value **argv);\n  int (*xNext)(sqlite3_vtab_cursor*);\n  int (*xEof)(sqlite3_vtab_cursor*);\n  int (*xColumn)(sqlite3_vtab_cursor*, sqlite3_context*, int);\n  int (*xRowid)(sqlite3_vtab_cursor*, sqlite3_int64 *pRowid);\n  int (*xUpdate)(sqlite3_vtab *, int, sqlite3_value **, sqlite3_int64 *);\n  int (*xBegin)(sqlite3_vtab *pVTab);\n  int (*xSync)(sqlite3_vtab *pVTab);\n  int (*xCommit)(sqlite3_vtab *pVTab);\n  int (*xRollback)(sqlite3_vtab *pVTab);\n  int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,\n                       void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),\n                       void **ppArg);\n  int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);\n  /* The methods above are in version 1 of the sqlite_module object. Those \n  ** below are for version 2 and greater. */\n  int (*xSavepoint)(sqlite3_vtab *pVTab, int);\n  int (*xRelease)(sqlite3_vtab *pVTab, int);\n  int (*xRollbackTo)(sqlite3_vtab *pVTab, int);\n};\n\n/*\n** CAPI3REF: Virtual Table Indexing Information\n** KEYWORDS: sqlite3_index_info\n**\n** The sqlite3_index_info structure and its substructures is used as part\n** of the [virtual table] interface to\n** pass information into and receive the reply from the [xBestIndex]\n** method of a [virtual table module].  The fields under **Inputs** are the\n** inputs to xBestIndex and are read-only.  xBestIndex inserts its\n** results into the **Outputs** fields.\n**\n** ^(The aConstraint[] array records WHERE clause constraints of the form:\n**\n** <blockquote>column OP expr</blockquote>\n**\n** where OP is =, &lt;, &lt;=, &gt;, or &gt;=.)^  ^(The particular operator is\n** stored in aConstraint[].op using one of the\n** [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^\n** ^(The index of the column is stored in\n** aConstraint[].iColumn.)^  ^(aConstraint[].usable is TRUE if the\n** expr on the right-hand side can be evaluated (and thus the constraint\n** is usable) and false if it cannot.)^\n**\n** ^The optimizer automatically inverts terms of the form \"expr OP column\"\n** and makes other simplifications to the WHERE clause in an attempt to\n** get as many WHERE clause terms into the form shown above as possible.\n** ^The aConstraint[] array only reports WHERE clause terms that are\n** relevant to the particular virtual table being queried.\n**\n** ^Information about the ORDER BY clause is stored in aOrderBy[].\n** ^Each term of aOrderBy records a column of the ORDER BY clause.\n**\n** The colUsed field indicates which columns of the virtual table may be\n** required by the current scan. Virtual table columns are numbered from\n** zero in the order in which they appear within the CREATE TABLE statement\n** passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62),\n** the corresponding bit is set within the colUsed mask if the column may be\n** required by SQLite. If the table has at least 64 columns and any column\n** to the right of the first 63 is required, then bit 63 of colUsed is also\n** set. In other words, column iCol may be required if the expression\n** (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to \n** non-zero.\n**\n** The [xBestIndex] method must fill aConstraintUsage[] with information\n** about what parameters to pass to xFilter.  ^If argvIndex>0 then\n** the right-hand side of the corresponding aConstraint[] is evaluated\n** and becomes the argvIndex-th entry in argv.  ^(If aConstraintUsage[].omit\n** is true, then the constraint is assumed to be fully handled by the\n** virtual table and is not checked again by SQLite.)^\n**\n** ^The idxNum and idxPtr values are recorded and passed into the\n** [xFilter] method.\n** ^[sqlite3_free()] is used to free idxPtr if and only if\n** needToFreeIdxPtr is true.\n**\n** ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in\n** the correct order to satisfy the ORDER BY clause so that no separate\n** sorting step is required.\n**\n** ^The estimatedCost value is an estimate of the cost of a particular\n** strategy. A cost of N indicates that the cost of the strategy is similar\n** to a linear scan of an SQLite table with N rows. A cost of log(N) \n** indicates that the expense of the operation is similar to that of a\n** binary search on a unique indexed field of an SQLite table with N rows.\n**\n** ^The estimatedRows value is an estimate of the number of rows that\n** will be returned by the strategy.\n**\n** The xBestIndex method may optionally populate the idxFlags field with a \n** mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag -\n** SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite\n** assumes that the strategy may visit at most one row. \n**\n** Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then\n** SQLite also assumes that if a call to the xUpdate() method is made as\n** part of the same statement to delete or update a virtual table row and the\n** implementation returns SQLITE_CONSTRAINT, then there is no need to rollback\n** any database changes. In other words, if the xUpdate() returns\n** SQLITE_CONSTRAINT, the database contents must be exactly as they were\n** before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not\n** set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by\n** the xUpdate method are automatically rolled back by SQLite.\n**\n** IMPORTANT: The estimatedRows field was added to the sqlite3_index_info\n** structure for SQLite [version 3.8.2] ([dateof:3.8.2]). \n** If a virtual table extension is\n** used with an SQLite version earlier than 3.8.2, the results of attempting \n** to read or write the estimatedRows field are undefined (but are likely \n** to included crashing the application). The estimatedRows field should\n** therefore only be used if [sqlite3_libversion_number()] returns a\n** value greater than or equal to 3008002. Similarly, the idxFlags field\n** was added for [version 3.9.0] ([dateof:3.9.0]). \n** It may therefore only be used if\n** sqlite3_libversion_number() returns a value greater than or equal to\n** 3009000.\n*/\nstruct sqlite3_index_info {\n  /* Inputs */\n  int nConstraint;           /* Number of entries in aConstraint */\n  struct sqlite3_index_constraint {\n     int iColumn;              /* Column constrained.  -1 for ROWID */\n     unsigned char op;         /* Constraint operator */\n     unsigned char usable;     /* True if this constraint is usable */\n     int iTermOffset;          /* Used internally - xBestIndex should ignore */\n  } *aConstraint;            /* Table of WHERE clause constraints */\n  int nOrderBy;              /* Number of terms in the ORDER BY clause */\n  struct sqlite3_index_orderby {\n     int iColumn;              /* Column number */\n     unsigned char desc;       /* True for DESC.  False for ASC. */\n  } *aOrderBy;               /* The ORDER BY clause */\n  /* Outputs */\n  struct sqlite3_index_constraint_usage {\n    int argvIndex;           /* if >0, constraint is part of argv to xFilter */\n    unsigned char omit;      /* Do not code a test for this constraint */\n  } *aConstraintUsage;\n  int idxNum;                /* Number used to identify the index */\n  char *idxStr;              /* String, possibly obtained from sqlite3_malloc */\n  int needToFreeIdxStr;      /* Free idxStr using sqlite3_free() if true */\n  int orderByConsumed;       /* True if output is already ordered */\n  double estimatedCost;           /* Estimated cost of using this index */\n  /* Fields below are only available in SQLite 3.8.2 and later */\n  sqlite3_int64 estimatedRows;    /* Estimated number of rows returned */\n  /* Fields below are only available in SQLite 3.9.0 and later */\n  int idxFlags;              /* Mask of SQLITE_INDEX_SCAN_* flags */\n  /* Fields below are only available in SQLite 3.10.0 and later */\n  sqlite3_uint64 colUsed;    /* Input: Mask of columns used by statement */\n};\n\n/*\n** CAPI3REF: Virtual Table Scan Flags\n*/\n#define SQLITE_INDEX_SCAN_UNIQUE      1     /* Scan visits at most 1 row */\n\n/*\n** CAPI3REF: Virtual Table Constraint Operator Codes\n**\n** These macros defined the allowed values for the\n** [sqlite3_index_info].aConstraint[].op field.  Each value represents\n** an operator that is part of a constraint term in the wHERE clause of\n** a query that uses a [virtual table].\n*/\n#define SQLITE_INDEX_CONSTRAINT_EQ         2\n#define SQLITE_INDEX_CONSTRAINT_GT         4\n#define SQLITE_INDEX_CONSTRAINT_LE         8\n#define SQLITE_INDEX_CONSTRAINT_LT        16\n#define SQLITE_INDEX_CONSTRAINT_GE        32\n#define SQLITE_INDEX_CONSTRAINT_MATCH     64\n#define SQLITE_INDEX_CONSTRAINT_LIKE      65\n#define SQLITE_INDEX_CONSTRAINT_GLOB      66\n#define SQLITE_INDEX_CONSTRAINT_REGEXP    67\n#define SQLITE_INDEX_CONSTRAINT_NE        68\n#define SQLITE_INDEX_CONSTRAINT_ISNOT     69\n#define SQLITE_INDEX_CONSTRAINT_ISNOTNULL 70\n#define SQLITE_INDEX_CONSTRAINT_ISNULL    71\n#define SQLITE_INDEX_CONSTRAINT_IS        72\n\n/*\n** CAPI3REF: Register A Virtual Table Implementation\n** METHOD: sqlite3\n**\n** ^These routines are used to register a new [virtual table module] name.\n** ^Module names must be registered before\n** creating a new [virtual table] using the module and before using a\n** preexisting [virtual table] for the module.\n**\n** ^The module name is registered on the [database connection] specified\n** by the first parameter.  ^The name of the module is given by the \n** second parameter.  ^The third parameter is a pointer to\n** the implementation of the [virtual table module].   ^The fourth\n** parameter is an arbitrary client data pointer that is passed through\n** into the [xCreate] and [xConnect] methods of the virtual table module\n** when a new virtual table is be being created or reinitialized.\n**\n** ^The sqlite3_create_module_v2() interface has a fifth parameter which\n** is a pointer to a destructor for the pClientData.  ^SQLite will\n** invoke the destructor function (if it is not NULL) when SQLite\n** no longer needs the pClientData pointer.  ^The destructor will also\n** be invoked if the call to sqlite3_create_module_v2() fails.\n** ^The sqlite3_create_module()\n** interface is equivalent to sqlite3_create_module_v2() with a NULL\n** destructor.\n*/\nSQLITE_API int sqlite3_create_module(\n  sqlite3 *db,               /* SQLite connection to register module with */\n  const char *zName,         /* Name of the module */\n  const sqlite3_module *p,   /* Methods for the module */\n  void *pClientData          /* Client data for xCreate/xConnect */\n);\nSQLITE_API int sqlite3_create_module_v2(\n  sqlite3 *db,               /* SQLite connection to register module with */\n  const char *zName,         /* Name of the module */\n  const sqlite3_module *p,   /* Methods for the module */\n  void *pClientData,         /* Client data for xCreate/xConnect */\n  void(*xDestroy)(void*)     /* Module destructor function */\n);\n\n/*\n** CAPI3REF: Virtual Table Instance Object\n** KEYWORDS: sqlite3_vtab\n**\n** Every [virtual table module] implementation uses a subclass\n** of this object to describe a particular instance\n** of the [virtual table].  Each subclass will\n** be tailored to the specific needs of the module implementation.\n** The purpose of this superclass is to define certain fields that are\n** common to all module implementations.\n**\n** ^Virtual tables methods can set an error message by assigning a\n** string obtained from [sqlite3_mprintf()] to zErrMsg.  The method should\n** take care that any prior string is freed by a call to [sqlite3_free()]\n** prior to assigning a new string to zErrMsg.  ^After the error message\n** is delivered up to the client application, the string will be automatically\n** freed by sqlite3_free() and the zErrMsg field will be zeroed.\n*/\nstruct sqlite3_vtab {\n  const sqlite3_module *pModule;  /* The module for this virtual table */\n  int nRef;                       /* Number of open cursors */\n  char *zErrMsg;                  /* Error message from sqlite3_mprintf() */\n  /* Virtual table implementations will typically add additional fields */\n};\n\n/*\n** CAPI3REF: Virtual Table Cursor Object\n** KEYWORDS: sqlite3_vtab_cursor {virtual table cursor}\n**\n** Every [virtual table module] implementation uses a subclass of the\n** following structure to describe cursors that point into the\n** [virtual table] and are used\n** to loop through the virtual table.  Cursors are created using the\n** [sqlite3_module.xOpen | xOpen] method of the module and are destroyed\n** by the [sqlite3_module.xClose | xClose] method.  Cursors are used\n** by the [xFilter], [xNext], [xEof], [xColumn], and [xRowid] methods\n** of the module.  Each module implementation will define\n** the content of a cursor structure to suit its own needs.\n**\n** This superclass exists in order to define fields of the cursor that\n** are common to all implementations.\n*/\nstruct sqlite3_vtab_cursor {\n  sqlite3_vtab *pVtab;      /* Virtual table of this cursor */\n  /* Virtual table implementations will typically add additional fields */\n};\n\n/*\n** CAPI3REF: Declare The Schema Of A Virtual Table\n**\n** ^The [xCreate] and [xConnect] methods of a\n** [virtual table module] call this interface\n** to declare the format (the names and datatypes of the columns) of\n** the virtual tables they implement.\n*/\nSQLITE_API int sqlite3_declare_vtab(sqlite3*, const char *zSQL);\n\n/*\n** CAPI3REF: Overload A Function For A Virtual Table\n** METHOD: sqlite3\n**\n** ^(Virtual tables can provide alternative implementations of functions\n** using the [xFindFunction] method of the [virtual table module].  \n** But global versions of those functions\n** must exist in order to be overloaded.)^\n**\n** ^(This API makes sure a global version of a function with a particular\n** name and number of parameters exists.  If no such function exists\n** before this API is called, a new function is created.)^  ^The implementation\n** of the new function always causes an exception to be thrown.  So\n** the new function is not good for anything by itself.  Its only\n** purpose is to be a placeholder function that can be overloaded\n** by a [virtual table].\n*/\nSQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);\n\n/*\n** The interface to the virtual-table mechanism defined above (back up\n** to a comment remarkably similar to this one) is currently considered\n** to be experimental.  The interface might change in incompatible ways.\n** If this is a problem for you, do not use the interface at this time.\n**\n** When the virtual-table mechanism stabilizes, we will declare the\n** interface fixed, support it indefinitely, and remove this comment.\n*/\n\n/*\n** CAPI3REF: A Handle To An Open BLOB\n** KEYWORDS: {BLOB handle} {BLOB handles}\n**\n** An instance of this object represents an open BLOB on which\n** [sqlite3_blob_open | incremental BLOB I/O] can be performed.\n** ^Objects of this type are created by [sqlite3_blob_open()]\n** and destroyed by [sqlite3_blob_close()].\n** ^The [sqlite3_blob_read()] and [sqlite3_blob_write()] interfaces\n** can be used to read or write small subsections of the BLOB.\n** ^The [sqlite3_blob_bytes()] interface returns the size of the BLOB in bytes.\n*/\ntypedef struct sqlite3_blob sqlite3_blob;\n\n/*\n** CAPI3REF: Open A BLOB For Incremental I/O\n** METHOD: sqlite3\n** CONSTRUCTOR: sqlite3_blob\n**\n** ^(This interfaces opens a [BLOB handle | handle] to the BLOB located\n** in row iRow, column zColumn, table zTable in database zDb;\n** in other words, the same BLOB that would be selected by:\n**\n** <pre>\n**     SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;\n** </pre>)^\n**\n** ^(Parameter zDb is not the filename that contains the database, but \n** rather the symbolic name of the database. For attached databases, this is\n** the name that appears after the AS keyword in the [ATTACH] statement.\n** For the main database file, the database name is \"main\". For TEMP\n** tables, the database name is \"temp\".)^\n**\n** ^If the flags parameter is non-zero, then the BLOB is opened for read\n** and write access. ^If the flags parameter is zero, the BLOB is opened for\n** read-only access.\n**\n** ^(On success, [SQLITE_OK] is returned and the new [BLOB handle] is stored\n** in *ppBlob. Otherwise an [error code] is returned and, unless the error\n** code is SQLITE_MISUSE, *ppBlob is set to NULL.)^ ^This means that, provided\n** the API is not misused, it is always safe to call [sqlite3_blob_close()] \n** on *ppBlob after this function it returns.\n**\n** This function fails with SQLITE_ERROR if any of the following are true:\n** <ul>\n**   <li> ^(Database zDb does not exist)^, \n**   <li> ^(Table zTable does not exist within database zDb)^, \n**   <li> ^(Table zTable is a WITHOUT ROWID table)^, \n**   <li> ^(Column zColumn does not exist)^,\n**   <li> ^(Row iRow is not present in the table)^,\n**   <li> ^(The specified column of row iRow contains a value that is not\n**         a TEXT or BLOB value)^,\n**   <li> ^(Column zColumn is part of an index, PRIMARY KEY or UNIQUE \n**         constraint and the blob is being opened for read/write access)^,\n**   <li> ^([foreign key constraints | Foreign key constraints] are enabled, \n**         column zColumn is part of a [child key] definition and the blob is\n**         being opened for read/write access)^.\n** </ul>\n**\n** ^Unless it returns SQLITE_MISUSE, this function sets the \n** [database connection] error code and message accessible via \n** [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. \n**\n** A BLOB referenced by sqlite3_blob_open() may be read using the\n** [sqlite3_blob_read()] interface and modified by using\n** [sqlite3_blob_write()].  The [BLOB handle] can be moved to a\n** different row of the same table using the [sqlite3_blob_reopen()]\n** interface.  However, the column, table, or database of a [BLOB handle]\n** cannot be changed after the [BLOB handle] is opened.\n**\n** ^(If the row that a BLOB handle points to is modified by an\n** [UPDATE], [DELETE], or by [ON CONFLICT] side-effects\n** then the BLOB handle is marked as \"expired\".\n** This is true if any column of the row is changed, even a column\n** other than the one the BLOB handle is open on.)^\n** ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for\n** an expired BLOB handle fail with a return code of [SQLITE_ABORT].\n** ^(Changes written into a BLOB prior to the BLOB expiring are not\n** rolled back by the expiration of the BLOB.  Such changes will eventually\n** commit if the transaction continues to completion.)^\n**\n** ^Use the [sqlite3_blob_bytes()] interface to determine the size of\n** the opened blob.  ^The size of a blob may not be changed by this\n** interface.  Use the [UPDATE] SQL command to change the size of a\n** blob.\n**\n** ^The [sqlite3_bind_zeroblob()] and [sqlite3_result_zeroblob()] interfaces\n** and the built-in [zeroblob] SQL function may be used to create a \n** zero-filled blob to read or write using the incremental-blob interface.\n**\n** To avoid a resource leak, every open [BLOB handle] should eventually\n** be released by a call to [sqlite3_blob_close()].\n**\n** See also: [sqlite3_blob_close()],\n** [sqlite3_blob_reopen()], [sqlite3_blob_read()],\n** [sqlite3_blob_bytes()], [sqlite3_blob_write()].\n*/\nSQLITE_API int sqlite3_blob_open(\n  sqlite3*,\n  const char *zDb,\n  const char *zTable,\n  const char *zColumn,\n  sqlite3_int64 iRow,\n  int flags,\n  sqlite3_blob **ppBlob\n);\n\n/*\n** CAPI3REF: Move a BLOB Handle to a New Row\n** METHOD: sqlite3_blob\n**\n** ^This function is used to move an existing [BLOB handle] so that it points\n** to a different row of the same database table. ^The new row is identified\n** by the rowid value passed as the second argument. Only the row can be\n** changed. ^The database, table and column on which the blob handle is open\n** remain the same. Moving an existing [BLOB handle] to a new row is\n** faster than closing the existing handle and opening a new one.\n**\n** ^(The new row must meet the same criteria as for [sqlite3_blob_open()] -\n** it must exist and there must be either a blob or text value stored in\n** the nominated column.)^ ^If the new row is not present in the table, or if\n** it does not contain a blob or text value, or if another error occurs, an\n** SQLite error code is returned and the blob handle is considered aborted.\n** ^All subsequent calls to [sqlite3_blob_read()], [sqlite3_blob_write()] or\n** [sqlite3_blob_reopen()] on an aborted blob handle immediately return\n** SQLITE_ABORT. ^Calling [sqlite3_blob_bytes()] on an aborted blob handle\n** always returns zero.\n**\n** ^This function sets the database handle error code and message.\n*/\nSQLITE_API int sqlite3_blob_reopen(sqlite3_blob *, sqlite3_int64);\n\n/*\n** CAPI3REF: Close A BLOB Handle\n** DESTRUCTOR: sqlite3_blob\n**\n** ^This function closes an open [BLOB handle]. ^(The BLOB handle is closed\n** unconditionally.  Even if this routine returns an error code, the \n** handle is still closed.)^\n**\n** ^If the blob handle being closed was opened for read-write access, and if\n** the database is in auto-commit mode and there are no other open read-write\n** blob handles or active write statements, the current transaction is\n** committed. ^If an error occurs while committing the transaction, an error\n** code is returned and the transaction rolled back.\n**\n** Calling this function with an argument that is not a NULL pointer or an\n** open blob handle results in undefined behaviour. ^Calling this routine \n** with a null pointer (such as would be returned by a failed call to \n** [sqlite3_blob_open()]) is a harmless no-op. ^Otherwise, if this function\n** is passed a valid open blob handle, the values returned by the \n** sqlite3_errcode() and sqlite3_errmsg() functions are set before returning.\n*/\nSQLITE_API int sqlite3_blob_close(sqlite3_blob *);\n\n/*\n** CAPI3REF: Return The Size Of An Open BLOB\n** METHOD: sqlite3_blob\n**\n** ^Returns the size in bytes of the BLOB accessible via the \n** successfully opened [BLOB handle] in its only argument.  ^The\n** incremental blob I/O routines can only read or overwriting existing\n** blob content; they cannot change the size of a blob.\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n*/\nSQLITE_API int sqlite3_blob_bytes(sqlite3_blob *);\n\n/*\n** CAPI3REF: Read Data From A BLOB Incrementally\n** METHOD: sqlite3_blob\n**\n** ^(This function is used to read data from an open [BLOB handle] into a\n** caller-supplied buffer. N bytes of data are copied into buffer Z\n** from the open BLOB, starting at offset iOffset.)^\n**\n** ^If offset iOffset is less than N bytes from the end of the BLOB,\n** [SQLITE_ERROR] is returned and no data is read.  ^If N or iOffset is\n** less than zero, [SQLITE_ERROR] is returned and no data is read.\n** ^The size of the blob (and hence the maximum value of N+iOffset)\n** can be determined using the [sqlite3_blob_bytes()] interface.\n**\n** ^An attempt to read from an expired [BLOB handle] fails with an\n** error code of [SQLITE_ABORT].\n**\n** ^(On success, sqlite3_blob_read() returns SQLITE_OK.\n** Otherwise, an [error code] or an [extended error code] is returned.)^\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n**\n** See also: [sqlite3_blob_write()].\n*/\nSQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset);\n\n/*\n** CAPI3REF: Write Data Into A BLOB Incrementally\n** METHOD: sqlite3_blob\n**\n** ^(This function is used to write data into an open [BLOB handle] from a\n** caller-supplied buffer. N bytes of data are copied from the buffer Z\n** into the open BLOB, starting at offset iOffset.)^\n**\n** ^(On success, sqlite3_blob_write() returns SQLITE_OK.\n** Otherwise, an  [error code] or an [extended error code] is returned.)^\n** ^Unless SQLITE_MISUSE is returned, this function sets the \n** [database connection] error code and message accessible via \n** [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. \n**\n** ^If the [BLOB handle] passed as the first argument was not opened for\n** writing (the flags parameter to [sqlite3_blob_open()] was zero),\n** this function returns [SQLITE_READONLY].\n**\n** This function may only modify the contents of the BLOB; it is\n** not possible to increase the size of a BLOB using this API.\n** ^If offset iOffset is less than N bytes from the end of the BLOB,\n** [SQLITE_ERROR] is returned and no data is written. The size of the \n** BLOB (and hence the maximum value of N+iOffset) can be determined \n** using the [sqlite3_blob_bytes()] interface. ^If N or iOffset are less \n** than zero [SQLITE_ERROR] is returned and no data is written.\n**\n** ^An attempt to write to an expired [BLOB handle] fails with an\n** error code of [SQLITE_ABORT].  ^Writes to the BLOB that occurred\n** before the [BLOB handle] expired are not rolled back by the\n** expiration of the handle, though of course those changes might\n** have been overwritten by the statement that expired the BLOB handle\n** or by other independent statements.\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n**\n** See also: [sqlite3_blob_read()].\n*/\nSQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);\n\n/*\n** CAPI3REF: Virtual File System Objects\n**\n** A virtual filesystem (VFS) is an [sqlite3_vfs] object\n** that SQLite uses to interact\n** with the underlying operating system.  Most SQLite builds come with a\n** single default VFS that is appropriate for the host computer.\n** New VFSes can be registered and existing VFSes can be unregistered.\n** The following interfaces are provided.\n**\n** ^The sqlite3_vfs_find() interface returns a pointer to a VFS given its name.\n** ^Names are case sensitive.\n** ^Names are zero-terminated UTF-8 strings.\n** ^If there is no match, a NULL pointer is returned.\n** ^If zVfsName is NULL then the default VFS is returned.\n**\n** ^New VFSes are registered with sqlite3_vfs_register().\n** ^Each new VFS becomes the default VFS if the makeDflt flag is set.\n** ^The same VFS can be registered multiple times without injury.\n** ^To make an existing VFS into the default VFS, register it again\n** with the makeDflt flag set.  If two different VFSes with the\n** same name are registered, the behavior is undefined.  If a\n** VFS is registered with a name that is NULL or an empty string,\n** then the behavior is undefined.\n**\n** ^Unregister a VFS with the sqlite3_vfs_unregister() interface.\n** ^(If the default VFS is unregistered, another VFS is chosen as\n** the default.  The choice for the new VFS is arbitrary.)^\n*/\nSQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName);\nSQLITE_API int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt);\nSQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*);\n\n/*\n** CAPI3REF: Mutexes\n**\n** The SQLite core uses these routines for thread\n** synchronization. Though they are intended for internal\n** use by SQLite, code that links against SQLite is\n** permitted to use any of these routines.\n**\n** The SQLite source code contains multiple implementations\n** of these mutex routines.  An appropriate implementation\n** is selected automatically at compile-time.  The following\n** implementations are available in the SQLite core:\n**\n** <ul>\n** <li>   SQLITE_MUTEX_PTHREADS\n** <li>   SQLITE_MUTEX_W32\n** <li>   SQLITE_MUTEX_NOOP\n** </ul>\n**\n** The SQLITE_MUTEX_NOOP implementation is a set of routines\n** that does no real locking and is appropriate for use in\n** a single-threaded application.  The SQLITE_MUTEX_PTHREADS and\n** SQLITE_MUTEX_W32 implementations are appropriate for use on Unix\n** and Windows.\n**\n** If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor\n** macro defined (with \"-DSQLITE_MUTEX_APPDEF=1\"), then no mutex\n** implementation is included with the library. In this case the\n** application must supply a custom mutex implementation using the\n** [SQLITE_CONFIG_MUTEX] option of the sqlite3_config() function\n** before calling sqlite3_initialize() or any other public sqlite3_\n** function that calls sqlite3_initialize().\n**\n** ^The sqlite3_mutex_alloc() routine allocates a new\n** mutex and returns a pointer to it. ^The sqlite3_mutex_alloc()\n** routine returns NULL if it is unable to allocate the requested\n** mutex.  The argument to sqlite3_mutex_alloc() must one of these\n** integer constants:\n**\n** <ul>\n** <li>  SQLITE_MUTEX_FAST\n** <li>  SQLITE_MUTEX_RECURSIVE\n** <li>  SQLITE_MUTEX_STATIC_MASTER\n** <li>  SQLITE_MUTEX_STATIC_MEM\n** <li>  SQLITE_MUTEX_STATIC_OPEN\n** <li>  SQLITE_MUTEX_STATIC_PRNG\n** <li>  SQLITE_MUTEX_STATIC_LRU\n** <li>  SQLITE_MUTEX_STATIC_PMEM\n** <li>  SQLITE_MUTEX_STATIC_APP1\n** <li>  SQLITE_MUTEX_STATIC_APP2\n** <li>  SQLITE_MUTEX_STATIC_APP3\n** <li>  SQLITE_MUTEX_STATIC_VFS1\n** <li>  SQLITE_MUTEX_STATIC_VFS2\n** <li>  SQLITE_MUTEX_STATIC_VFS3\n** </ul>\n**\n** ^The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE)\n** cause sqlite3_mutex_alloc() to create\n** a new mutex.  ^The new mutex is recursive when SQLITE_MUTEX_RECURSIVE\n** is used but not necessarily so when SQLITE_MUTEX_FAST is used.\n** The mutex implementation does not need to make a distinction\n** between SQLITE_MUTEX_RECURSIVE and SQLITE_MUTEX_FAST if it does\n** not want to.  SQLite will only request a recursive mutex in\n** cases where it really needs one.  If a faster non-recursive mutex\n** implementation is available on the host platform, the mutex subsystem\n** might return such a mutex in response to SQLITE_MUTEX_FAST.\n**\n** ^The other allowed parameters to sqlite3_mutex_alloc() (anything other\n** than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return\n** a pointer to a static preexisting mutex.  ^Nine static mutexes are\n** used by the current version of SQLite.  Future versions of SQLite\n** may add additional static mutexes.  Static mutexes are for internal\n** use by SQLite only.  Applications that use SQLite mutexes should\n** use only the dynamic mutexes returned by SQLITE_MUTEX_FAST or\n** SQLITE_MUTEX_RECURSIVE.\n**\n** ^Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST\n** or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc()\n** returns a different mutex on every call.  ^For the static\n** mutex types, the same mutex is returned on every call that has\n** the same type number.\n**\n** ^The sqlite3_mutex_free() routine deallocates a previously\n** allocated dynamic mutex.  Attempting to deallocate a static\n** mutex results in undefined behavior.\n**\n** ^The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt\n** to enter a mutex.  ^If another thread is already within the mutex,\n** sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return\n** SQLITE_BUSY.  ^The sqlite3_mutex_try() interface returns [SQLITE_OK]\n** upon successful entry.  ^(Mutexes created using\n** SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread.\n** In such cases, the\n** mutex must be exited an equal number of times before another thread\n** can enter.)^  If the same thread tries to enter any mutex other\n** than an SQLITE_MUTEX_RECURSIVE more than once, the behavior is undefined.\n**\n** ^(Some systems (for example, Windows 95) do not support the operation\n** implemented by sqlite3_mutex_try().  On those systems, sqlite3_mutex_try()\n** will always return SQLITE_BUSY. The SQLite core only ever uses\n** sqlite3_mutex_try() as an optimization so this is acceptable \n** behavior.)^\n**\n** ^The sqlite3_mutex_leave() routine exits a mutex that was\n** previously entered by the same thread.   The behavior\n** is undefined if the mutex is not currently entered by the\n** calling thread or is not currently allocated.\n**\n** ^If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or\n** sqlite3_mutex_leave() is a NULL pointer, then all three routines\n** behave as no-ops.\n**\n** See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()].\n*/\nSQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);\nSQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);\nSQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);\nSQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);\nSQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);\n\n/*\n** CAPI3REF: Mutex Methods Object\n**\n** An instance of this structure defines the low-level routines\n** used to allocate and use mutexes.\n**\n** Usually, the default mutex implementations provided by SQLite are\n** sufficient, however the application has the option of substituting a custom\n** implementation for specialized deployments or systems for which SQLite\n** does not provide a suitable implementation. In this case, the application\n** creates and populates an instance of this structure to pass\n** to sqlite3_config() along with the [SQLITE_CONFIG_MUTEX] option.\n** Additionally, an instance of this structure can be used as an\n** output variable when querying the system for the current mutex\n** implementation, using the [SQLITE_CONFIG_GETMUTEX] option.\n**\n** ^The xMutexInit method defined by this structure is invoked as\n** part of system initialization by the sqlite3_initialize() function.\n** ^The xMutexInit routine is called by SQLite exactly once for each\n** effective call to [sqlite3_initialize()].\n**\n** ^The xMutexEnd method defined by this structure is invoked as\n** part of system shutdown by the sqlite3_shutdown() function. The\n** implementation of this method is expected to release all outstanding\n** resources obtained by the mutex methods implementation, especially\n** those obtained by the xMutexInit method.  ^The xMutexEnd()\n** interface is invoked exactly once for each call to [sqlite3_shutdown()].\n**\n** ^(The remaining seven methods defined by this structure (xMutexAlloc,\n** xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and\n** xMutexNotheld) implement the following interfaces (respectively):\n**\n** <ul>\n**   <li>  [sqlite3_mutex_alloc()] </li>\n**   <li>  [sqlite3_mutex_free()] </li>\n**   <li>  [sqlite3_mutex_enter()] </li>\n**   <li>  [sqlite3_mutex_try()] </li>\n**   <li>  [sqlite3_mutex_leave()] </li>\n**   <li>  [sqlite3_mutex_held()] </li>\n**   <li>  [sqlite3_mutex_notheld()] </li>\n** </ul>)^\n**\n** The only difference is that the public sqlite3_XXX functions enumerated\n** above silently ignore any invocations that pass a NULL pointer instead\n** of a valid mutex handle. The implementations of the methods defined\n** by this structure are not required to handle this case, the results\n** of passing a NULL pointer instead of a valid mutex handle are undefined\n** (i.e. it is acceptable to provide an implementation that segfaults if\n** it is passed a NULL pointer).\n**\n** The xMutexInit() method must be threadsafe.  It must be harmless to\n** invoke xMutexInit() multiple times within the same process and without\n** intervening calls to xMutexEnd().  Second and subsequent calls to\n** xMutexInit() must be no-ops.\n**\n** xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()]\n** and its associates).  Similarly, xMutexAlloc() must not use SQLite memory\n** allocation for a static mutex.  ^However xMutexAlloc() may use SQLite\n** memory allocation for a fast or recursive mutex.\n**\n** ^SQLite will invoke the xMutexEnd() method when [sqlite3_shutdown()] is\n** called, but only if the prior call to xMutexInit returned SQLITE_OK.\n** If xMutexInit fails in any way, it is expected to clean up after itself\n** prior to returning.\n*/\ntypedef struct sqlite3_mutex_methods sqlite3_mutex_methods;\nstruct sqlite3_mutex_methods {\n  int (*xMutexInit)(void);\n  int (*xMutexEnd)(void);\n  sqlite3_mutex *(*xMutexAlloc)(int);\n  void (*xMutexFree)(sqlite3_mutex *);\n  void (*xMutexEnter)(sqlite3_mutex *);\n  int (*xMutexTry)(sqlite3_mutex *);\n  void (*xMutexLeave)(sqlite3_mutex *);\n  int (*xMutexHeld)(sqlite3_mutex *);\n  int (*xMutexNotheld)(sqlite3_mutex *);\n};\n\n/*\n** CAPI3REF: Mutex Verification Routines\n**\n** The sqlite3_mutex_held() and sqlite3_mutex_notheld() routines\n** are intended for use inside assert() statements.  The SQLite core\n** never uses these routines except inside an assert() and applications\n** are advised to follow the lead of the core.  The SQLite core only\n** provides implementations for these routines when it is compiled\n** with the SQLITE_DEBUG flag.  External mutex implementations\n** are only required to provide these routines if SQLITE_DEBUG is\n** defined and if NDEBUG is not defined.\n**\n** These routines should return true if the mutex in their argument\n** is held or not held, respectively, by the calling thread.\n**\n** The implementation is not required to provide versions of these\n** routines that actually work. If the implementation does not provide working\n** versions of these routines, it should at least provide stubs that always\n** return true so that one does not get spurious assertion failures.\n**\n** If the argument to sqlite3_mutex_held() is a NULL pointer then\n** the routine should return 1.   This seems counter-intuitive since\n** clearly the mutex cannot be held if it does not exist.  But\n** the reason the mutex does not exist is because the build is not\n** using mutexes.  And we do not want the assert() containing the\n** call to sqlite3_mutex_held() to fail, so a non-zero return is\n** the appropriate thing to do.  The sqlite3_mutex_notheld()\n** interface should also return 1 when given a NULL pointer.\n*/\n#ifndef NDEBUG\nSQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);\nSQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);\n#endif\n\n/*\n** CAPI3REF: Mutex Types\n**\n** The [sqlite3_mutex_alloc()] interface takes a single argument\n** which is one of these integer constants.\n**\n** The set of static mutexes may change from one SQLite release to the\n** next.  Applications that override the built-in mutex logic must be\n** prepared to accommodate additional static mutexes.\n*/\n#define SQLITE_MUTEX_FAST             0\n#define SQLITE_MUTEX_RECURSIVE        1\n#define SQLITE_MUTEX_STATIC_MASTER    2\n#define SQLITE_MUTEX_STATIC_MEM       3  /* sqlite3_malloc() */\n#define SQLITE_MUTEX_STATIC_MEM2      4  /* NOT USED */\n#define SQLITE_MUTEX_STATIC_OPEN      4  /* sqlite3BtreeOpen() */\n#define SQLITE_MUTEX_STATIC_PRNG      5  /* sqlite3_randomness() */\n#define SQLITE_MUTEX_STATIC_LRU       6  /* lru page list */\n#define SQLITE_MUTEX_STATIC_LRU2      7  /* NOT USED */\n#define SQLITE_MUTEX_STATIC_PMEM      7  /* sqlite3PageMalloc() */\n#define SQLITE_MUTEX_STATIC_APP1      8  /* For use by application */\n#define SQLITE_MUTEX_STATIC_APP2      9  /* For use by application */\n#define SQLITE_MUTEX_STATIC_APP3     10  /* For use by application */\n#define SQLITE_MUTEX_STATIC_VFS1     11  /* For use by built-in VFS */\n#define SQLITE_MUTEX_STATIC_VFS2     12  /* For use by extension VFS */\n#define SQLITE_MUTEX_STATIC_VFS3     13  /* For use by application VFS */\n\n/*\n** CAPI3REF: Retrieve the mutex for a database connection\n** METHOD: sqlite3\n**\n** ^This interface returns a pointer the [sqlite3_mutex] object that \n** serializes access to the [database connection] given in the argument\n** when the [threading mode] is Serialized.\n** ^If the [threading mode] is Single-thread or Multi-thread then this\n** routine returns a NULL pointer.\n*/\nSQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);\n\n/*\n** CAPI3REF: Low-Level Control Of Database Files\n** METHOD: sqlite3\n**\n** ^The [sqlite3_file_control()] interface makes a direct call to the\n** xFileControl method for the [sqlite3_io_methods] object associated\n** with a particular database identified by the second argument. ^The\n** name of the database is \"main\" for the main database or \"temp\" for the\n** TEMP database, or the name that appears after the AS keyword for\n** databases that are added using the [ATTACH] SQL command.\n** ^A NULL pointer can be used in place of \"main\" to refer to the\n** main database file.\n** ^The third and fourth parameters to this routine\n** are passed directly through to the second and third parameters of\n** the xFileControl method.  ^The return value of the xFileControl\n** method becomes the return value of this routine.\n**\n** ^The [SQLITE_FCNTL_FILE_POINTER] value for the op parameter causes\n** a pointer to the underlying [sqlite3_file] object to be written into\n** the space pointed to by the 4th parameter.  ^The [SQLITE_FCNTL_FILE_POINTER]\n** case is a short-circuit path which does not actually invoke the\n** underlying sqlite3_io_methods.xFileControl method.\n**\n** ^If the second parameter (zDbName) does not match the name of any\n** open database file, then SQLITE_ERROR is returned.  ^This error\n** code is not remembered and will not be recalled by [sqlite3_errcode()]\n** or [sqlite3_errmsg()].  The underlying xFileControl method might\n** also return SQLITE_ERROR.  There is no way to distinguish between\n** an incorrect zDbName and an SQLITE_ERROR return from the underlying\n** xFileControl method.\n**\n** See also: [file control opcodes]\n*/\nSQLITE_API int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);\n\n/*\n** CAPI3REF: Testing Interface\n**\n** ^The sqlite3_test_control() interface is used to read out internal\n** state of SQLite and to inject faults into SQLite for testing\n** purposes.  ^The first parameter is an operation code that determines\n** the number, meaning, and operation of all subsequent parameters.\n**\n** This interface is not for use by applications.  It exists solely\n** for verifying the correct operation of the SQLite library.  Depending\n** on how the SQLite library is compiled, this interface might not exist.\n**\n** The details of the operation codes, their meanings, the parameters\n** they take, and what they do are all subject to change without notice.\n** Unlike most of the SQLite API, this function is not guaranteed to\n** operate consistently from one release to the next.\n*/\nSQLITE_API int sqlite3_test_control(int op, ...);\n\n/*\n** CAPI3REF: Testing Interface Operation Codes\n**\n** These constants are the valid operation code parameters used\n** as the first argument to [sqlite3_test_control()].\n**\n** These parameters and their meanings are subject to change\n** without notice.  These values are for testing purposes only.\n** Applications should not use any of these parameters or the\n** [sqlite3_test_control()] interface.\n*/\n#define SQLITE_TESTCTRL_FIRST                    5\n#define SQLITE_TESTCTRL_PRNG_SAVE                5\n#define SQLITE_TESTCTRL_PRNG_RESTORE             6\n#define SQLITE_TESTCTRL_PRNG_RESET               7\n#define SQLITE_TESTCTRL_BITVEC_TEST              8\n#define SQLITE_TESTCTRL_FAULT_INSTALL            9\n#define SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS     10\n#define SQLITE_TESTCTRL_PENDING_BYTE            11\n#define SQLITE_TESTCTRL_ASSERT                  12\n#define SQLITE_TESTCTRL_ALWAYS                  13\n#define SQLITE_TESTCTRL_RESERVE                 14\n#define SQLITE_TESTCTRL_OPTIMIZATIONS           15\n#define SQLITE_TESTCTRL_ISKEYWORD               16\n#define SQLITE_TESTCTRL_SCRATCHMALLOC           17  /* NOT USED */\n#define SQLITE_TESTCTRL_LOCALTIME_FAULT         18\n#define SQLITE_TESTCTRL_EXPLAIN_STMT            19  /* NOT USED */\n#define SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD    19\n#define SQLITE_TESTCTRL_NEVER_CORRUPT           20\n#define SQLITE_TESTCTRL_VDBE_COVERAGE           21\n#define SQLITE_TESTCTRL_BYTEORDER               22\n#define SQLITE_TESTCTRL_ISINIT                  23\n#define SQLITE_TESTCTRL_SORTER_MMAP             24\n#define SQLITE_TESTCTRL_IMPOSTER                25\n#define SQLITE_TESTCTRL_PARSER_COVERAGE         26\n#define SQLITE_TESTCTRL_LAST                    26  /* Largest TESTCTRL */\n\n/*\n** CAPI3REF: SQLite Runtime Status\n**\n** ^These interfaces are used to retrieve runtime status information\n** about the performance of SQLite, and optionally to reset various\n** highwater marks.  ^The first argument is an integer code for\n** the specific parameter to measure.  ^(Recognized integer codes\n** are of the form [status parameters | SQLITE_STATUS_...].)^\n** ^The current value of the parameter is returned into *pCurrent.\n** ^The highest recorded value is returned in *pHighwater.  ^If the\n** resetFlag is true, then the highest record value is reset after\n** *pHighwater is written.  ^(Some parameters do not record the highest\n** value.  For those parameters\n** nothing is written into *pHighwater and the resetFlag is ignored.)^\n** ^(Other parameters record only the highwater mark and not the current\n** value.  For these latter parameters nothing is written into *pCurrent.)^\n**\n** ^The sqlite3_status() and sqlite3_status64() routines return\n** SQLITE_OK on success and a non-zero [error code] on failure.\n**\n** If either the current value or the highwater mark is too large to\n** be represented by a 32-bit integer, then the values returned by\n** sqlite3_status() are undefined.\n**\n** See also: [sqlite3_db_status()]\n*/\nSQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag);\nSQLITE_API int sqlite3_status64(\n  int op,\n  sqlite3_int64 *pCurrent,\n  sqlite3_int64 *pHighwater,\n  int resetFlag\n);\n\n\n/*\n** CAPI3REF: Status Parameters\n** KEYWORDS: {status parameters}\n**\n** These integer constants designate various run-time status parameters\n** that can be returned by [sqlite3_status()].\n**\n** <dl>\n** [[SQLITE_STATUS_MEMORY_USED]] ^(<dt>SQLITE_STATUS_MEMORY_USED</dt>\n** <dd>This parameter is the current amount of memory checked out\n** using [sqlite3_malloc()], either directly or indirectly.  The\n** figure includes calls made to [sqlite3_malloc()] by the application\n** and internal memory usage by the SQLite library.  Auxiliary page-cache\n** memory controlled by [SQLITE_CONFIG_PAGECACHE] is not included in\n** this parameter.  The amount returned is the sum of the allocation\n** sizes as reported by the xSize method in [sqlite3_mem_methods].</dd>)^\n**\n** [[SQLITE_STATUS_MALLOC_SIZE]] ^(<dt>SQLITE_STATUS_MALLOC_SIZE</dt>\n** <dd>This parameter records the largest memory allocation request\n** handed to [sqlite3_malloc()] or [sqlite3_realloc()] (or their\n** internal equivalents).  Only the value returned in the\n** *pHighwater parameter to [sqlite3_status()] is of interest.  \n** The value written into the *pCurrent parameter is undefined.</dd>)^\n**\n** [[SQLITE_STATUS_MALLOC_COUNT]] ^(<dt>SQLITE_STATUS_MALLOC_COUNT</dt>\n** <dd>This parameter records the number of separate memory allocations\n** currently checked out.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_USED]] ^(<dt>SQLITE_STATUS_PAGECACHE_USED</dt>\n** <dd>This parameter returns the number of pages used out of the\n** [pagecache memory allocator] that was configured using \n** [SQLITE_CONFIG_PAGECACHE].  The\n** value returned is in pages, not in bytes.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_OVERFLOW]] \n** ^(<dt>SQLITE_STATUS_PAGECACHE_OVERFLOW</dt>\n** <dd>This parameter returns the number of bytes of page cache\n** allocation which could not be satisfied by the [SQLITE_CONFIG_PAGECACHE]\n** buffer and where forced to overflow to [sqlite3_malloc()].  The\n** returned value includes allocations that overflowed because they\n** where too large (they were larger than the \"sz\" parameter to\n** [SQLITE_CONFIG_PAGECACHE]) and allocations that overflowed because\n** no space was left in the page cache.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_SIZE]] ^(<dt>SQLITE_STATUS_PAGECACHE_SIZE</dt>\n** <dd>This parameter records the largest memory allocation request\n** handed to [pagecache memory allocator].  Only the value returned in the\n** *pHighwater parameter to [sqlite3_status()] is of interest.  \n** The value written into the *pCurrent parameter is undefined.</dd>)^\n**\n** [[SQLITE_STATUS_SCRATCH_USED]] <dt>SQLITE_STATUS_SCRATCH_USED</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_SCRATCH_OVERFLOW]] ^(<dt>SQLITE_STATUS_SCRATCH_OVERFLOW</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_SCRATCH_SIZE]] <dt>SQLITE_STATUS_SCRATCH_SIZE</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_PARSER_STACK]] ^(<dt>SQLITE_STATUS_PARSER_STACK</dt>\n** <dd>The *pHighwater parameter records the deepest parser stack. \n** The *pCurrent value is undefined.  The *pHighwater value is only\n** meaningful if SQLite is compiled with [YYTRACKMAXSTACKDEPTH].</dd>)^\n** </dl>\n**\n** New status parameters may be added from time to time.\n*/\n#define SQLITE_STATUS_MEMORY_USED          0\n#define SQLITE_STATUS_PAGECACHE_USED       1\n#define SQLITE_STATUS_PAGECACHE_OVERFLOW   2\n#define SQLITE_STATUS_SCRATCH_USED         3  /* NOT USED */\n#define SQLITE_STATUS_SCRATCH_OVERFLOW     4  /* NOT USED */\n#define SQLITE_STATUS_MALLOC_SIZE          5\n#define SQLITE_STATUS_PARSER_STACK         6\n#define SQLITE_STATUS_PAGECACHE_SIZE       7\n#define SQLITE_STATUS_SCRATCH_SIZE         8  /* NOT USED */\n#define SQLITE_STATUS_MALLOC_COUNT         9\n\n/*\n** CAPI3REF: Database Connection Status\n** METHOD: sqlite3\n**\n** ^This interface is used to retrieve runtime status information \n** about a single [database connection].  ^The first argument is the\n** database connection object to be interrogated.  ^The second argument\n** is an integer constant, taken from the set of\n** [SQLITE_DBSTATUS options], that\n** determines the parameter to interrogate.  The set of \n** [SQLITE_DBSTATUS options] is likely\n** to grow in future releases of SQLite.\n**\n** ^The current value of the requested parameter is written into *pCur\n** and the highest instantaneous value is written into *pHiwtr.  ^If\n** the resetFlg is true, then the highest instantaneous value is\n** reset back down to the current value.\n**\n** ^The sqlite3_db_status() routine returns SQLITE_OK on success and a\n** non-zero [error code] on failure.\n**\n** See also: [sqlite3_status()] and [sqlite3_stmt_status()].\n*/\nSQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg);\n\n/*\n** CAPI3REF: Status Parameters for database connections\n** KEYWORDS: {SQLITE_DBSTATUS options}\n**\n** These constants are the available integer \"verbs\" that can be passed as\n** the second argument to the [sqlite3_db_status()] interface.\n**\n** New verbs may be added in future releases of SQLite. Existing verbs\n** might be discontinued. Applications should check the return code from\n** [sqlite3_db_status()] to make sure that the call worked.\n** The [sqlite3_db_status()] interface will return a non-zero error code\n** if a discontinued or unsupported verb is invoked.\n**\n** <dl>\n** [[SQLITE_DBSTATUS_LOOKASIDE_USED]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_USED</dt>\n** <dd>This parameter returns the number of lookaside memory slots currently\n** checked out.</dd>)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_HIT]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_HIT</dt>\n** <dd>This parameter returns the number malloc attempts that were \n** satisfied using lookaside memory. Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE]]\n** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</dt>\n** <dd>This parameter returns the number malloc attempts that might have\n** been satisfied using lookaside memory but failed due to the amount of\n** memory requested being larger than the lookaside slot size.\n** Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL]]\n** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</dt>\n** <dd>This parameter returns the number malloc attempts that might have\n** been satisfied using lookaside memory but failed due to all lookaside\n** memory already being in use.\n** Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_CACHE_USED]] ^(<dt>SQLITE_DBSTATUS_CACHE_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** memory used by all pager caches associated with the database connection.)^\n** ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0.\n**\n** [[SQLITE_DBSTATUS_CACHE_USED_SHARED]] \n** ^(<dt>SQLITE_DBSTATUS_CACHE_USED_SHARED</dt>\n** <dd>This parameter is similar to DBSTATUS_CACHE_USED, except that if a\n** pager cache is shared between two or more connections the bytes of heap\n** memory used by that pager cache is divided evenly between the attached\n** connections.)^  In other words, if none of the pager caches associated\n** with the database connection are shared, this request returns the same\n** value as DBSTATUS_CACHE_USED. Or, if one or more or the pager caches are\n** shared, the value returned by this call will be smaller than that returned\n** by DBSTATUS_CACHE_USED. ^The highwater mark associated with\n** SQLITE_DBSTATUS_CACHE_USED_SHARED is always 0.\n**\n** [[SQLITE_DBSTATUS_SCHEMA_USED]] ^(<dt>SQLITE_DBSTATUS_SCHEMA_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** memory used to store the schema for all databases associated\n** with the connection - main, temp, and any [ATTACH]-ed databases.)^ \n** ^The full amount of memory used by the schemas is reported, even if the\n** schema memory is shared with other database connections due to\n** [shared cache mode] being enabled.\n** ^The highwater mark associated with SQLITE_DBSTATUS_SCHEMA_USED is always 0.\n**\n** [[SQLITE_DBSTATUS_STMT_USED]] ^(<dt>SQLITE_DBSTATUS_STMT_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** and lookaside memory used by all prepared statements associated with\n** the database connection.)^\n** ^The highwater mark associated with SQLITE_DBSTATUS_STMT_USED is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_HIT]] ^(<dt>SQLITE_DBSTATUS_CACHE_HIT</dt>\n** <dd>This parameter returns the number of pager cache hits that have\n** occurred.)^ ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_HIT \n** is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_MISS]] ^(<dt>SQLITE_DBSTATUS_CACHE_MISS</dt>\n** <dd>This parameter returns the number of pager cache misses that have\n** occurred.)^ ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_MISS \n** is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_WRITE]] ^(<dt>SQLITE_DBSTATUS_CACHE_WRITE</dt>\n** <dd>This parameter returns the number of dirty cache entries that have\n** been written to disk. Specifically, the number of pages written to the\n** wal file in wal mode databases, or the number of pages written to the\n** database file in rollback mode databases. Any pages written as part of\n** transaction rollback or database recovery operations are not included.\n** If an IO or other error occurs while writing a page to disk, the effect\n** on subsequent SQLITE_DBSTATUS_CACHE_WRITE requests is undefined.)^ ^The\n** highwater mark associated with SQLITE_DBSTATUS_CACHE_WRITE is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_DEFERRED_FKS]] ^(<dt>SQLITE_DBSTATUS_DEFERRED_FKS</dt>\n** <dd>This parameter returns zero for the current value if and only if\n** all foreign key constraints (deferred or immediate) have been\n** resolved.)^  ^The highwater mark is always 0.\n** </dd>\n** </dl>\n*/\n#define SQLITE_DBSTATUS_LOOKASIDE_USED       0\n#define SQLITE_DBSTATUS_CACHE_USED           1\n#define SQLITE_DBSTATUS_SCHEMA_USED          2\n#define SQLITE_DBSTATUS_STMT_USED            3\n#define SQLITE_DBSTATUS_LOOKASIDE_HIT        4\n#define SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE  5\n#define SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL  6\n#define SQLITE_DBSTATUS_CACHE_HIT            7\n#define SQLITE_DBSTATUS_CACHE_MISS           8\n#define SQLITE_DBSTATUS_CACHE_WRITE          9\n#define SQLITE_DBSTATUS_DEFERRED_FKS        10\n#define SQLITE_DBSTATUS_CACHE_USED_SHARED   11\n#define SQLITE_DBSTATUS_MAX                 11   /* Largest defined DBSTATUS */\n\n\n/*\n** CAPI3REF: Prepared Statement Status\n** METHOD: sqlite3_stmt\n**\n** ^(Each prepared statement maintains various\n** [SQLITE_STMTSTATUS counters] that measure the number\n** of times it has performed specific operations.)^  These counters can\n** be used to monitor the performance characteristics of the prepared\n** statements.  For example, if the number of table steps greatly exceeds\n** the number of table searches or result rows, that would tend to indicate\n** that the prepared statement is using a full table scan rather than\n** an index.  \n**\n** ^(This interface is used to retrieve and reset counter values from\n** a [prepared statement].  The first argument is the prepared statement\n** object to be interrogated.  The second argument\n** is an integer code for a specific [SQLITE_STMTSTATUS counter]\n** to be interrogated.)^\n** ^The current value of the requested counter is returned.\n** ^If the resetFlg is true, then the counter is reset to zero after this\n** interface call returns.\n**\n** See also: [sqlite3_status()] and [sqlite3_db_status()].\n*/\nSQLITE_API int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg);\n\n/*\n** CAPI3REF: Status Parameters for prepared statements\n** KEYWORDS: {SQLITE_STMTSTATUS counter} {SQLITE_STMTSTATUS counters}\n**\n** These preprocessor macros define integer codes that name counter\n** values associated with the [sqlite3_stmt_status()] interface.\n** The meanings of the various counters are as follows:\n**\n** <dl>\n** [[SQLITE_STMTSTATUS_FULLSCAN_STEP]] <dt>SQLITE_STMTSTATUS_FULLSCAN_STEP</dt>\n** <dd>^This is the number of times that SQLite has stepped forward in\n** a table as part of a full table scan.  Large numbers for this counter\n** may indicate opportunities for performance improvement through \n** careful use of indices.</dd>\n**\n** [[SQLITE_STMTSTATUS_SORT]] <dt>SQLITE_STMTSTATUS_SORT</dt>\n** <dd>^This is the number of sort operations that have occurred.\n** A non-zero value in this counter may indicate an opportunity to\n** improvement performance through careful use of indices.</dd>\n**\n** [[SQLITE_STMTSTATUS_AUTOINDEX]] <dt>SQLITE_STMTSTATUS_AUTOINDEX</dt>\n** <dd>^This is the number of rows inserted into transient indices that\n** were created automatically in order to help joins run faster.\n** A non-zero value in this counter may indicate an opportunity to\n** improvement performance by adding permanent indices that do not\n** need to be reinitialized each time the statement is run.</dd>\n**\n** [[SQLITE_STMTSTATUS_VM_STEP]] <dt>SQLITE_STMTSTATUS_VM_STEP</dt>\n** <dd>^This is the number of virtual machine operations executed\n** by the prepared statement if that number is less than or equal\n** to 2147483647.  The number of virtual machine operations can be \n** used as a proxy for the total work done by the prepared statement.\n** If the number of virtual machine operations exceeds 2147483647\n** then the value returned by this statement status code is undefined.\n**\n** [[SQLITE_STMTSTATUS_REPREPARE]] <dt>SQLITE_STMTSTATUS_REPREPARE</dt>\n** <dd>^This is the number of times that the prepare statement has been\n** automatically regenerated due to schema changes or change to \n** [bound parameters] that might affect the query plan.\n**\n** [[SQLITE_STMTSTATUS_RUN]] <dt>SQLITE_STMTSTATUS_RUN</dt>\n** <dd>^This is the number of times that the prepared statement has\n** been run.  A single \"run\" for the purposes of this counter is one\n** or more calls to [sqlite3_step()] followed by a call to [sqlite3_reset()].\n** The counter is incremented on the first [sqlite3_step()] call of each\n** cycle.\n**\n** [[SQLITE_STMTSTATUS_MEMUSED]] <dt>SQLITE_STMTSTATUS_MEMUSED</dt>\n** <dd>^This is the approximate number of bytes of heap memory\n** used to store the prepared statement.  ^This value is not actually\n** a counter, and so the resetFlg parameter to sqlite3_stmt_status()\n** is ignored when the opcode is SQLITE_STMTSTATUS_MEMUSED.\n** </dd>\n** </dl>\n*/\n#define SQLITE_STMTSTATUS_FULLSCAN_STEP     1\n#define SQLITE_STMTSTATUS_SORT              2\n#define SQLITE_STMTSTATUS_AUTOINDEX         3\n#define SQLITE_STMTSTATUS_VM_STEP           4\n#define SQLITE_STMTSTATUS_REPREPARE         5\n#define SQLITE_STMTSTATUS_RUN               6\n#define SQLITE_STMTSTATUS_MEMUSED           99\n\n/*\n** CAPI3REF: Custom Page Cache Object\n**\n** The sqlite3_pcache type is opaque.  It is implemented by\n** the pluggable module.  The SQLite core has no knowledge of\n** its size or internal structure and never deals with the\n** sqlite3_pcache object except by holding and passing pointers\n** to the object.\n**\n** See [sqlite3_pcache_methods2] for additional information.\n*/\ntypedef struct sqlite3_pcache sqlite3_pcache;\n\n/*\n** CAPI3REF: Custom Page Cache Object\n**\n** The sqlite3_pcache_page object represents a single page in the\n** page cache.  The page cache will allocate instances of this\n** object.  Various methods of the page cache use pointers to instances\n** of this object as parameters or as their return value.\n**\n** See [sqlite3_pcache_methods2] for additional information.\n*/\ntypedef struct sqlite3_pcache_page sqlite3_pcache_page;\nstruct sqlite3_pcache_page {\n  void *pBuf;        /* The content of the page */\n  void *pExtra;      /* Extra information associated with the page */\n};\n\n/*\n** CAPI3REF: Application Defined Page Cache.\n** KEYWORDS: {page cache}\n**\n** ^(The [sqlite3_config]([SQLITE_CONFIG_PCACHE2], ...) interface can\n** register an alternative page cache implementation by passing in an \n** instance of the sqlite3_pcache_methods2 structure.)^\n** In many applications, most of the heap memory allocated by \n** SQLite is used for the page cache.\n** By implementing a \n** custom page cache using this API, an application can better control\n** the amount of memory consumed by SQLite, the way in which \n** that memory is allocated and released, and the policies used to \n** determine exactly which parts of a database file are cached and for \n** how long.\n**\n** The alternative page cache mechanism is an\n** extreme measure that is only needed by the most demanding applications.\n** The built-in page cache is recommended for most uses.\n**\n** ^(The contents of the sqlite3_pcache_methods2 structure are copied to an\n** internal buffer by SQLite within the call to [sqlite3_config].  Hence\n** the application may discard the parameter after the call to\n** [sqlite3_config()] returns.)^\n**\n** [[the xInit() page cache method]]\n** ^(The xInit() method is called once for each effective \n** call to [sqlite3_initialize()])^\n** (usually only once during the lifetime of the process). ^(The xInit()\n** method is passed a copy of the sqlite3_pcache_methods2.pArg value.)^\n** The intent of the xInit() method is to set up global data structures \n** required by the custom page cache implementation. \n** ^(If the xInit() method is NULL, then the \n** built-in default page cache is used instead of the application defined\n** page cache.)^\n**\n** [[the xShutdown() page cache method]]\n** ^The xShutdown() method is called by [sqlite3_shutdown()].\n** It can be used to clean up \n** any outstanding resources before process shutdown, if required.\n** ^The xShutdown() method may be NULL.\n**\n** ^SQLite automatically serializes calls to the xInit method,\n** so the xInit method need not be threadsafe.  ^The\n** xShutdown method is only called from [sqlite3_shutdown()] so it does\n** not need to be threadsafe either.  All other methods must be threadsafe\n** in multithreaded applications.\n**\n** ^SQLite will never invoke xInit() more than once without an intervening\n** call to xShutdown().\n**\n** [[the xCreate() page cache methods]]\n** ^SQLite invokes the xCreate() method to construct a new cache instance.\n** SQLite will typically create one cache instance for each open database file,\n** though this is not guaranteed. ^The\n** first parameter, szPage, is the size in bytes of the pages that must\n** be allocated by the cache.  ^szPage will always a power of two.  ^The\n** second parameter szExtra is a number of bytes of extra storage \n** associated with each page cache entry.  ^The szExtra parameter will\n** a number less than 250.  SQLite will use the\n** extra szExtra bytes on each page to store metadata about the underlying\n** database page on disk.  The value passed into szExtra depends\n** on the SQLite version, the target platform, and how SQLite was compiled.\n** ^The third argument to xCreate(), bPurgeable, is true if the cache being\n** created will be used to cache database pages of a file stored on disk, or\n** false if it is used for an in-memory database. The cache implementation\n** does not have to do anything special based with the value of bPurgeable;\n** it is purely advisory.  ^On a cache where bPurgeable is false, SQLite will\n** never invoke xUnpin() except to deliberately delete a page.\n** ^In other words, calls to xUnpin() on a cache with bPurgeable set to\n** false will always have the \"discard\" flag set to true.  \n** ^Hence, a cache created with bPurgeable false will\n** never contain any unpinned pages.\n**\n** [[the xCachesize() page cache method]]\n** ^(The xCachesize() method may be called at any time by SQLite to set the\n** suggested maximum cache-size (number of pages stored by) the cache\n** instance passed as the first argument. This is the value configured using\n** the SQLite \"[PRAGMA cache_size]\" command.)^  As with the bPurgeable\n** parameter, the implementation is not required to do anything with this\n** value; it is advisory only.\n**\n** [[the xPagecount() page cache methods]]\n** The xPagecount() method must return the number of pages currently\n** stored in the cache, both pinned and unpinned.\n** \n** [[the xFetch() page cache methods]]\n** The xFetch() method locates a page in the cache and returns a pointer to \n** an sqlite3_pcache_page object associated with that page, or a NULL pointer.\n** The pBuf element of the returned sqlite3_pcache_page object will be a\n** pointer to a buffer of szPage bytes used to store the content of a \n** single database page.  The pExtra element of sqlite3_pcache_page will be\n** a pointer to the szExtra bytes of extra storage that SQLite has requested\n** for each entry in the page cache.\n**\n** The page to be fetched is determined by the key. ^The minimum key value\n** is 1.  After it has been retrieved using xFetch, the page is considered\n** to be \"pinned\".\n**\n** If the requested page is already in the page cache, then the page cache\n** implementation must return a pointer to the page buffer with its content\n** intact.  If the requested page is not already in the cache, then the\n** cache implementation should use the value of the createFlag\n** parameter to help it determined what action to take:\n**\n** <table border=1 width=85% align=center>\n** <tr><th> createFlag <th> Behavior when page is not already in cache\n** <tr><td> 0 <td> Do not allocate a new page.  Return NULL.\n** <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so.\n**                 Otherwise return NULL.\n** <tr><td> 2 <td> Make every effort to allocate a new page.  Only return\n**                 NULL if allocating a new page is effectively impossible.\n** </table>\n**\n** ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1.  SQLite\n** will only use a createFlag of 2 after a prior call with a createFlag of 1\n** failed.)^  In between the to xFetch() calls, SQLite may\n** attempt to unpin one or more cache pages by spilling the content of\n** pinned pages to disk and synching the operating system disk cache.\n**\n** [[the xUnpin() page cache method]]\n** ^xUnpin() is called by SQLite with a pointer to a currently pinned page\n** as its second argument.  If the third parameter, discard, is non-zero,\n** then the page must be evicted from the cache.\n** ^If the discard parameter is\n** zero, then the page may be discarded or retained at the discretion of\n** page cache implementation. ^The page cache implementation\n** may choose to evict unpinned pages at any time.\n**\n** The cache must not perform any reference counting. A single \n** call to xUnpin() unpins the page regardless of the number of prior calls \n** to xFetch().\n**\n** [[the xRekey() page cache methods]]\n** The xRekey() method is used to change the key value associated with the\n** page passed as the second argument. If the cache\n** previously contains an entry associated with newKey, it must be\n** discarded. ^Any prior cache entry associated with newKey is guaranteed not\n** to be pinned.\n**\n** When SQLite calls the xTruncate() method, the cache must discard all\n** existing cache entries with page numbers (keys) greater than or equal\n** to the value of the iLimit parameter passed to xTruncate(). If any\n** of these pages are pinned, they are implicitly unpinned, meaning that\n** they can be safely discarded.\n**\n** [[the xDestroy() page cache method]]\n** ^The xDestroy() method is used to delete a cache allocated by xCreate().\n** All resources associated with the specified cache should be freed. ^After\n** calling the xDestroy() method, SQLite considers the [sqlite3_pcache*]\n** handle invalid, and will not use it with any other sqlite3_pcache_methods2\n** functions.\n**\n** [[the xShrink() page cache method]]\n** ^SQLite invokes the xShrink() method when it wants the page cache to\n** free up as much of heap memory as possible.  The page cache implementation\n** is not obligated to free any memory, but well-behaved implementations should\n** do their best.\n*/\ntypedef struct sqlite3_pcache_methods2 sqlite3_pcache_methods2;\nstruct sqlite3_pcache_methods2 {\n  int iVersion;\n  void *pArg;\n  int (*xInit)(void*);\n  void (*xShutdown)(void*);\n  sqlite3_pcache *(*xCreate)(int szPage, int szExtra, int bPurgeable);\n  void (*xCachesize)(sqlite3_pcache*, int nCachesize);\n  int (*xPagecount)(sqlite3_pcache*);\n  sqlite3_pcache_page *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);\n  void (*xUnpin)(sqlite3_pcache*, sqlite3_pcache_page*, int discard);\n  void (*xRekey)(sqlite3_pcache*, sqlite3_pcache_page*, \n      unsigned oldKey, unsigned newKey);\n  void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);\n  void (*xDestroy)(sqlite3_pcache*);\n  void (*xShrink)(sqlite3_pcache*);\n};\n\n/*\n** This is the obsolete pcache_methods object that has now been replaced\n** by sqlite3_pcache_methods2.  This object is not used by SQLite.  It is\n** retained in the header file for backwards compatibility only.\n*/\ntypedef struct sqlite3_pcache_methods sqlite3_pcache_methods;\nstruct sqlite3_pcache_methods {\n  void *pArg;\n  int (*xInit)(void*);\n  void (*xShutdown)(void*);\n  sqlite3_pcache *(*xCreate)(int szPage, int bPurgeable);\n  void (*xCachesize)(sqlite3_pcache*, int nCachesize);\n  int (*xPagecount)(sqlite3_pcache*);\n  void *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);\n  void (*xUnpin)(sqlite3_pcache*, void*, int discard);\n  void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);\n  void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);\n  void (*xDestroy)(sqlite3_pcache*);\n};\n\n\n/*\n** CAPI3REF: Online Backup Object\n**\n** The sqlite3_backup object records state information about an ongoing\n** online backup operation.  ^The sqlite3_backup object is created by\n** a call to [sqlite3_backup_init()] and is destroyed by a call to\n** [sqlite3_backup_finish()].\n**\n** See Also: [Using the SQLite Online Backup API]\n*/\ntypedef struct sqlite3_backup sqlite3_backup;\n\n/*\n** CAPI3REF: Online Backup API.\n**\n** The backup API copies the content of one database into another.\n** It is useful either for creating backups of databases or\n** for copying in-memory databases to or from persistent files. \n**\n** See Also: [Using the SQLite Online Backup API]\n**\n** ^SQLite holds a write transaction open on the destination database file\n** for the duration of the backup operation.\n** ^The source database is read-locked only while it is being read;\n** it is not locked continuously for the entire backup operation.\n** ^Thus, the backup may be performed on a live source database without\n** preventing other database connections from\n** reading or writing to the source database while the backup is underway.\n** \n** ^(To perform a backup operation: \n**   <ol>\n**     <li><b>sqlite3_backup_init()</b> is called once to initialize the\n**         backup, \n**     <li><b>sqlite3_backup_step()</b> is called one or more times to transfer \n**         the data between the two databases, and finally\n**     <li><b>sqlite3_backup_finish()</b> is called to release all resources \n**         associated with the backup operation. \n**   </ol>)^\n** There should be exactly one call to sqlite3_backup_finish() for each\n** successful call to sqlite3_backup_init().\n**\n** [[sqlite3_backup_init()]] <b>sqlite3_backup_init()</b>\n**\n** ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the \n** [database connection] associated with the destination database \n** and the database name, respectively.\n** ^The database name is \"main\" for the main database, \"temp\" for the\n** temporary database, or the name specified after the AS keyword in\n** an [ATTACH] statement for an attached database.\n** ^The S and M arguments passed to \n** sqlite3_backup_init(D,N,S,M) identify the [database connection]\n** and database name of the source database, respectively.\n** ^The source and destination [database connections] (parameters S and D)\n** must be different or else sqlite3_backup_init(D,N,S,M) will fail with\n** an error.\n**\n** ^A call to sqlite3_backup_init() will fail, returning NULL, if \n** there is already a read or read-write transaction open on the \n** destination database.\n**\n** ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is\n** returned and an error code and error message are stored in the\n** destination [database connection] D.\n** ^The error code and message for the failed call to sqlite3_backup_init()\n** can be retrieved using the [sqlite3_errcode()], [sqlite3_errmsg()], and/or\n** [sqlite3_errmsg16()] functions.\n** ^A successful call to sqlite3_backup_init() returns a pointer to an\n** [sqlite3_backup] object.\n** ^The [sqlite3_backup] object may be used with the sqlite3_backup_step() and\n** sqlite3_backup_finish() functions to perform the specified backup \n** operation.\n**\n** [[sqlite3_backup_step()]] <b>sqlite3_backup_step()</b>\n**\n** ^Function sqlite3_backup_step(B,N) will copy up to N pages between \n** the source and destination databases specified by [sqlite3_backup] object B.\n** ^If N is negative, all remaining source pages are copied. \n** ^If sqlite3_backup_step(B,N) successfully copies N pages and there\n** are still more pages to be copied, then the function returns [SQLITE_OK].\n** ^If sqlite3_backup_step(B,N) successfully finishes copying all pages\n** from source to destination, then it returns [SQLITE_DONE].\n** ^If an error occurs while running sqlite3_backup_step(B,N),\n** then an [error code] is returned. ^As well as [SQLITE_OK] and\n** [SQLITE_DONE], a call to sqlite3_backup_step() may return [SQLITE_READONLY],\n** [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an\n** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code.\n**\n** ^(The sqlite3_backup_step() might return [SQLITE_READONLY] if\n** <ol>\n** <li> the destination database was opened read-only, or\n** <li> the destination database is using write-ahead-log journaling\n** and the destination and source page sizes differ, or\n** <li> the destination database is an in-memory database and the\n** destination and source page sizes differ.\n** </ol>)^\n**\n** ^If sqlite3_backup_step() cannot obtain a required file-system lock, then\n** the [sqlite3_busy_handler | busy-handler function]\n** is invoked (if one is specified). ^If the \n** busy-handler returns non-zero before the lock is available, then \n** [SQLITE_BUSY] is returned to the caller. ^In this case the call to\n** sqlite3_backup_step() can be retried later. ^If the source\n** [database connection]\n** is being used to write to the source database when sqlite3_backup_step()\n** is called, then [SQLITE_LOCKED] is returned immediately. ^Again, in this\n** case the call to sqlite3_backup_step() can be retried later on. ^(If\n** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX], [SQLITE_NOMEM], or\n** [SQLITE_READONLY] is returned, then \n** there is no point in retrying the call to sqlite3_backup_step(). These \n** errors are considered fatal.)^  The application must accept \n** that the backup operation has failed and pass the backup operation handle \n** to the sqlite3_backup_finish() to release associated resources.\n**\n** ^The first call to sqlite3_backup_step() obtains an exclusive lock\n** on the destination file. ^The exclusive lock is not released until either \n** sqlite3_backup_finish() is called or the backup operation is complete \n** and sqlite3_backup_step() returns [SQLITE_DONE].  ^Every call to\n** sqlite3_backup_step() obtains a [shared lock] on the source database that\n** lasts for the duration of the sqlite3_backup_step() call.\n** ^Because the source database is not locked between calls to\n** sqlite3_backup_step(), the source database may be modified mid-way\n** through the backup process.  ^If the source database is modified by an\n** external process or via a database connection other than the one being\n** used by the backup operation, then the backup will be automatically\n** restarted by the next call to sqlite3_backup_step(). ^If the source \n** database is modified by the using the same database connection as is used\n** by the backup operation, then the backup database is automatically\n** updated at the same time.\n**\n** [[sqlite3_backup_finish()]] <b>sqlite3_backup_finish()</b>\n**\n** When sqlite3_backup_step() has returned [SQLITE_DONE], or when the \n** application wishes to abandon the backup operation, the application\n** should destroy the [sqlite3_backup] by passing it to sqlite3_backup_finish().\n** ^The sqlite3_backup_finish() interfaces releases all\n** resources associated with the [sqlite3_backup] object. \n** ^If sqlite3_backup_step() has not yet returned [SQLITE_DONE], then any\n** active write-transaction on the destination database is rolled back.\n** The [sqlite3_backup] object is invalid\n** and may not be used following a call to sqlite3_backup_finish().\n**\n** ^The value returned by sqlite3_backup_finish is [SQLITE_OK] if no\n** sqlite3_backup_step() errors occurred, regardless or whether or not\n** sqlite3_backup_step() completed.\n** ^If an out-of-memory condition or IO error occurred during any prior\n** sqlite3_backup_step() call on the same [sqlite3_backup] object, then\n** sqlite3_backup_finish() returns the corresponding [error code].\n**\n** ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step()\n** is not a permanent error and does not affect the return value of\n** sqlite3_backup_finish().\n**\n** [[sqlite3_backup_remaining()]] [[sqlite3_backup_pagecount()]]\n** <b>sqlite3_backup_remaining() and sqlite3_backup_pagecount()</b>\n**\n** ^The sqlite3_backup_remaining() routine returns the number of pages still\n** to be backed up at the conclusion of the most recent sqlite3_backup_step().\n** ^The sqlite3_backup_pagecount() routine returns the total number of pages\n** in the source database at the conclusion of the most recent\n** sqlite3_backup_step().\n** ^(The values returned by these functions are only updated by\n** sqlite3_backup_step(). If the source database is modified in a way that\n** changes the size of the source database or the number of pages remaining,\n** those changes are not reflected in the output of sqlite3_backup_pagecount()\n** and sqlite3_backup_remaining() until after the next\n** sqlite3_backup_step().)^\n**\n** <b>Concurrent Usage of Database Handles</b>\n**\n** ^The source [database connection] may be used by the application for other\n** purposes while a backup operation is underway or being initialized.\n** ^If SQLite is compiled and configured to support threadsafe database\n** connections, then the source database connection may be used concurrently\n** from within other threads.\n**\n** However, the application must guarantee that the destination \n** [database connection] is not passed to any other API (by any thread) after \n** sqlite3_backup_init() is called and before the corresponding call to\n** sqlite3_backup_finish().  SQLite does not currently check to see\n** if the application incorrectly accesses the destination [database connection]\n** and so no error code is reported, but the operations may malfunction\n** nevertheless.  Use of the destination database connection while a\n** backup is in progress might also also cause a mutex deadlock.\n**\n** If running in [shared cache mode], the application must\n** guarantee that the shared cache used by the destination database\n** is not accessed while the backup is running. In practice this means\n** that the application must guarantee that the disk file being \n** backed up to is not accessed by any connection within the process,\n** not just the specific connection that was passed to sqlite3_backup_init().\n**\n** The [sqlite3_backup] object itself is partially threadsafe. Multiple \n** threads may safely make multiple concurrent calls to sqlite3_backup_step().\n** However, the sqlite3_backup_remaining() and sqlite3_backup_pagecount()\n** APIs are not strictly speaking threadsafe. If they are invoked at the\n** same time as another thread is invoking sqlite3_backup_step() it is\n** possible that they return invalid values.\n*/\nSQLITE_API sqlite3_backup *sqlite3_backup_init(\n  sqlite3 *pDest,                        /* Destination database handle */\n  const char *zDestName,                 /* Destination database name */\n  sqlite3 *pSource,                      /* Source database handle */\n  const char *zSourceName                /* Source database name */\n);\nSQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage);\nSQLITE_API int sqlite3_backup_finish(sqlite3_backup *p);\nSQLITE_API int sqlite3_backup_remaining(sqlite3_backup *p);\nSQLITE_API int sqlite3_backup_pagecount(sqlite3_backup *p);\n\n/*\n** CAPI3REF: Unlock Notification\n** METHOD: sqlite3\n**\n** ^When running in shared-cache mode, a database operation may fail with\n** an [SQLITE_LOCKED] error if the required locks on the shared-cache or\n** individual tables within the shared-cache cannot be obtained. See\n** [SQLite Shared-Cache Mode] for a description of shared-cache locking. \n** ^This API may be used to register a callback that SQLite will invoke \n** when the connection currently holding the required lock relinquishes it.\n** ^This API is only available if the library was compiled with the\n** [SQLITE_ENABLE_UNLOCK_NOTIFY] C-preprocessor symbol defined.\n**\n** See Also: [Using the SQLite Unlock Notification Feature].\n**\n** ^Shared-cache locks are released when a database connection concludes\n** its current transaction, either by committing it or rolling it back. \n**\n** ^When a connection (known as the blocked connection) fails to obtain a\n** shared-cache lock and SQLITE_LOCKED is returned to the caller, the\n** identity of the database connection (the blocking connection) that\n** has locked the required resource is stored internally. ^After an \n** application receives an SQLITE_LOCKED error, it may call the\n** sqlite3_unlock_notify() method with the blocked connection handle as \n** the first argument to register for a callback that will be invoked\n** when the blocking connections current transaction is concluded. ^The\n** callback is invoked from within the [sqlite3_step] or [sqlite3_close]\n** call that concludes the blocking connections transaction.\n**\n** ^(If sqlite3_unlock_notify() is called in a multi-threaded application,\n** there is a chance that the blocking connection will have already\n** concluded its transaction by the time sqlite3_unlock_notify() is invoked.\n** If this happens, then the specified callback is invoked immediately,\n** from within the call to sqlite3_unlock_notify().)^\n**\n** ^If the blocked connection is attempting to obtain a write-lock on a\n** shared-cache table, and more than one other connection currently holds\n** a read-lock on the same table, then SQLite arbitrarily selects one of \n** the other connections to use as the blocking connection.\n**\n** ^(There may be at most one unlock-notify callback registered by a \n** blocked connection. If sqlite3_unlock_notify() is called when the\n** blocked connection already has a registered unlock-notify callback,\n** then the new callback replaces the old.)^ ^If sqlite3_unlock_notify() is\n** called with a NULL pointer as its second argument, then any existing\n** unlock-notify callback is canceled. ^The blocked connections \n** unlock-notify callback may also be canceled by closing the blocked\n** connection using [sqlite3_close()].\n**\n** The unlock-notify callback is not reentrant. If an application invokes\n** any sqlite3_xxx API functions from within an unlock-notify callback, a\n** crash or deadlock may be the result.\n**\n** ^Unless deadlock is detected (see below), sqlite3_unlock_notify() always\n** returns SQLITE_OK.\n**\n** <b>Callback Invocation Details</b>\n**\n** When an unlock-notify callback is registered, the application provides a \n** single void* pointer that is passed to the callback when it is invoked.\n** However, the signature of the callback function allows SQLite to pass\n** it an array of void* context pointers. The first argument passed to\n** an unlock-notify callback is a pointer to an array of void* pointers,\n** and the second is the number of entries in the array.\n**\n** When a blocking connections transaction is concluded, there may be\n** more than one blocked connection that has registered for an unlock-notify\n** callback. ^If two or more such blocked connections have specified the\n** same callback function, then instead of invoking the callback function\n** multiple times, it is invoked once with the set of void* context pointers\n** specified by the blocked connections bundled together into an array.\n** This gives the application an opportunity to prioritize any actions \n** related to the set of unblocked database connections.\n**\n** <b>Deadlock Detection</b>\n**\n** Assuming that after registering for an unlock-notify callback a \n** database waits for the callback to be issued before taking any further\n** action (a reasonable assumption), then using this API may cause the\n** application to deadlock. For example, if connection X is waiting for\n** connection Y's transaction to be concluded, and similarly connection\n** Y is waiting on connection X's transaction, then neither connection\n** will proceed and the system may remain deadlocked indefinitely.\n**\n** To avoid this scenario, the sqlite3_unlock_notify() performs deadlock\n** detection. ^If a given call to sqlite3_unlock_notify() would put the\n** system in a deadlocked state, then SQLITE_LOCKED is returned and no\n** unlock-notify callback is registered. The system is said to be in\n** a deadlocked state if connection A has registered for an unlock-notify\n** callback on the conclusion of connection B's transaction, and connection\n** B has itself registered for an unlock-notify callback when connection\n** A's transaction is concluded. ^Indirect deadlock is also detected, so\n** the system is also considered to be deadlocked if connection B has\n** registered for an unlock-notify callback on the conclusion of connection\n** C's transaction, where connection C is waiting on connection A. ^Any\n** number of levels of indirection are allowed.\n**\n** <b>The \"DROP TABLE\" Exception</b>\n**\n** When a call to [sqlite3_step()] returns SQLITE_LOCKED, it is almost \n** always appropriate to call sqlite3_unlock_notify(). There is however,\n** one exception. When executing a \"DROP TABLE\" or \"DROP INDEX\" statement,\n** SQLite checks if there are any currently executing SELECT statements\n** that belong to the same connection. If there are, SQLITE_LOCKED is\n** returned. In this case there is no \"blocking connection\", so invoking\n** sqlite3_unlock_notify() results in the unlock-notify callback being\n** invoked immediately. If the application then re-attempts the \"DROP TABLE\"\n** or \"DROP INDEX\" query, an infinite loop might be the result.\n**\n** One way around this problem is to check the extended error code returned\n** by an sqlite3_step() call. ^(If there is a blocking connection, then the\n** extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in\n** the special \"DROP TABLE/INDEX\" case, the extended error code is just \n** SQLITE_LOCKED.)^\n*/\nSQLITE_API int sqlite3_unlock_notify(\n  sqlite3 *pBlocked,                          /* Waiting connection */\n  void (*xNotify)(void **apArg, int nArg),    /* Callback function to invoke */\n  void *pNotifyArg                            /* Argument to pass to xNotify */\n);\n\n\n/*\n** CAPI3REF: String Comparison\n**\n** ^The [sqlite3_stricmp()] and [sqlite3_strnicmp()] APIs allow applications\n** and extensions to compare the contents of two buffers containing UTF-8\n** strings in a case-independent fashion, using the same definition of \"case\n** independence\" that SQLite uses internally when comparing identifiers.\n*/\nSQLITE_API int sqlite3_stricmp(const char *, const char *);\nSQLITE_API int sqlite3_strnicmp(const char *, const char *, int);\n\n/*\n** CAPI3REF: String Globbing\n*\n** ^The [sqlite3_strglob(P,X)] interface returns zero if and only if\n** string X matches the [GLOB] pattern P.\n** ^The definition of [GLOB] pattern matching used in\n** [sqlite3_strglob(P,X)] is the same as for the \"X GLOB P\" operator in the\n** SQL dialect understood by SQLite.  ^The [sqlite3_strglob(P,X)] function\n** is case sensitive.\n**\n** Note that this routine returns zero on a match and non-zero if the strings\n** do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()].\n**\n** See also: [sqlite3_strlike()].\n*/\nSQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr);\n\n/*\n** CAPI3REF: String LIKE Matching\n*\n** ^The [sqlite3_strlike(P,X,E)] interface returns zero if and only if\n** string X matches the [LIKE] pattern P with escape character E.\n** ^The definition of [LIKE] pattern matching used in\n** [sqlite3_strlike(P,X,E)] is the same as for the \"X LIKE P ESCAPE E\"\n** operator in the SQL dialect understood by SQLite.  ^For \"X LIKE P\" without\n** the ESCAPE clause, set the E parameter of [sqlite3_strlike(P,X,E)] to 0.\n** ^As with the LIKE operator, the [sqlite3_strlike(P,X,E)] function is case\n** insensitive - equivalent upper and lower case ASCII characters match\n** one another.\n**\n** ^The [sqlite3_strlike(P,X,E)] function matches Unicode characters, though\n** only ASCII characters are case folded.\n**\n** Note that this routine returns zero on a match and non-zero if the strings\n** do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()].\n**\n** See also: [sqlite3_strglob()].\n*/\nSQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc);\n\n/*\n** CAPI3REF: Error Logging Interface\n**\n** ^The [sqlite3_log()] interface writes a message into the [error log]\n** established by the [SQLITE_CONFIG_LOG] option to [sqlite3_config()].\n** ^If logging is enabled, the zFormat string and subsequent arguments are\n** used with [sqlite3_snprintf()] to generate the final output string.\n**\n** The sqlite3_log() interface is intended for use by extensions such as\n** virtual tables, collating functions, and SQL functions.  While there is\n** nothing to prevent an application from calling sqlite3_log(), doing so\n** is considered bad form.\n**\n** The zFormat string must not be NULL.\n**\n** To avoid deadlocks and other threading problems, the sqlite3_log() routine\n** will not use dynamically allocated memory.  The log message is stored in\n** a fixed-length buffer on the stack.  If the log message is longer than\n** a few hundred characters, it will be truncated to the length of the\n** buffer.\n*/\nSQLITE_API void sqlite3_log(int iErrCode, const char *zFormat, ...);\n\n/*\n** CAPI3REF: Write-Ahead Log Commit Hook\n** METHOD: sqlite3\n**\n** ^The [sqlite3_wal_hook()] function is used to register a callback that\n** is invoked each time data is committed to a database in wal mode.\n**\n** ^(The callback is invoked by SQLite after the commit has taken place and \n** the associated write-lock on the database released)^, so the implementation \n** may read, write or [checkpoint] the database as required.\n**\n** ^The first parameter passed to the callback function when it is invoked\n** is a copy of the third parameter passed to sqlite3_wal_hook() when\n** registering the callback. ^The second is a copy of the database handle.\n** ^The third parameter is the name of the database that was written to -\n** either \"main\" or the name of an [ATTACH]-ed database. ^The fourth parameter\n** is the number of pages currently in the write-ahead log file,\n** including those that were just committed.\n**\n** The callback function should normally return [SQLITE_OK].  ^If an error\n** code is returned, that error will propagate back up through the\n** SQLite code base to cause the statement that provoked the callback\n** to report an error, though the commit will have still occurred. If the\n** callback returns [SQLITE_ROW] or [SQLITE_DONE], or if it returns a value\n** that does not correspond to any valid SQLite error code, the results\n** are undefined.\n**\n** A single database handle may have at most a single write-ahead log callback \n** registered at one time. ^Calling [sqlite3_wal_hook()] replaces any\n** previously registered write-ahead log callback. ^Note that the\n** [sqlite3_wal_autocheckpoint()] interface and the\n** [wal_autocheckpoint pragma] both invoke [sqlite3_wal_hook()] and will\n** overwrite any prior [sqlite3_wal_hook()] settings.\n*/\nSQLITE_API void *sqlite3_wal_hook(\n  sqlite3*, \n  int(*)(void *,sqlite3*,const char*,int),\n  void*\n);\n\n/*\n** CAPI3REF: Configure an auto-checkpoint\n** METHOD: sqlite3\n**\n** ^The [sqlite3_wal_autocheckpoint(D,N)] is a wrapper around\n** [sqlite3_wal_hook()] that causes any database on [database connection] D\n** to automatically [checkpoint]\n** after committing a transaction if there are N or\n** more frames in the [write-ahead log] file.  ^Passing zero or \n** a negative value as the nFrame parameter disables automatic\n** checkpoints entirely.\n**\n** ^The callback registered by this function replaces any existing callback\n** registered using [sqlite3_wal_hook()].  ^Likewise, registering a callback\n** using [sqlite3_wal_hook()] disables the automatic checkpoint mechanism\n** configured by this function.\n**\n** ^The [wal_autocheckpoint pragma] can be used to invoke this interface\n** from SQL.\n**\n** ^Checkpoints initiated by this mechanism are\n** [sqlite3_wal_checkpoint_v2|PASSIVE].\n**\n** ^Every new [database connection] defaults to having the auto-checkpoint\n** enabled with a threshold of 1000 or [SQLITE_DEFAULT_WAL_AUTOCHECKPOINT]\n** pages.  The use of this interface\n** is only necessary if the default setting is found to be suboptimal\n** for a particular application.\n*/\nSQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);\n\n/*\n** CAPI3REF: Checkpoint a database\n** METHOD: sqlite3\n**\n** ^(The sqlite3_wal_checkpoint(D,X) is equivalent to\n** [sqlite3_wal_checkpoint_v2](D,X,[SQLITE_CHECKPOINT_PASSIVE],0,0).)^\n**\n** In brief, sqlite3_wal_checkpoint(D,X) causes the content in the \n** [write-ahead log] for database X on [database connection] D to be\n** transferred into the database file and for the write-ahead log to\n** be reset.  See the [checkpointing] documentation for addition\n** information.\n**\n** This interface used to be the only way to cause a checkpoint to\n** occur.  But then the newer and more powerful [sqlite3_wal_checkpoint_v2()]\n** interface was added.  This interface is retained for backwards\n** compatibility and as a convenience for applications that need to manually\n** start a callback but which do not need the full power (and corresponding\n** complication) of [sqlite3_wal_checkpoint_v2()].\n*/\nSQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);\n\n/*\n** CAPI3REF: Checkpoint a database\n** METHOD: sqlite3\n**\n** ^(The sqlite3_wal_checkpoint_v2(D,X,M,L,C) interface runs a checkpoint\n** operation on database X of [database connection] D in mode M.  Status\n** information is written back into integers pointed to by L and C.)^\n** ^(The M parameter must be a valid [checkpoint mode]:)^\n**\n** <dl>\n** <dt>SQLITE_CHECKPOINT_PASSIVE<dd>\n**   ^Checkpoint as many frames as possible without waiting for any database \n**   readers or writers to finish, then sync the database file if all frames \n**   in the log were checkpointed. ^The [busy-handler callback]\n**   is never invoked in the SQLITE_CHECKPOINT_PASSIVE mode.  \n**   ^On the other hand, passive mode might leave the checkpoint unfinished\n**   if there are concurrent readers or writers.\n**\n** <dt>SQLITE_CHECKPOINT_FULL<dd>\n**   ^This mode blocks (it invokes the\n**   [sqlite3_busy_handler|busy-handler callback]) until there is no\n**   database writer and all readers are reading from the most recent database\n**   snapshot. ^It then checkpoints all frames in the log file and syncs the\n**   database file. ^This mode blocks new database writers while it is pending,\n**   but new database readers are allowed to continue unimpeded.\n**\n** <dt>SQLITE_CHECKPOINT_RESTART<dd>\n**   ^This mode works the same way as SQLITE_CHECKPOINT_FULL with the addition\n**   that after checkpointing the log file it blocks (calls the \n**   [busy-handler callback])\n**   until all readers are reading from the database file only. ^This ensures \n**   that the next writer will restart the log file from the beginning.\n**   ^Like SQLITE_CHECKPOINT_FULL, this mode blocks new\n**   database writer attempts while it is pending, but does not impede readers.\n**\n** <dt>SQLITE_CHECKPOINT_TRUNCATE<dd>\n**   ^This mode works the same way as SQLITE_CHECKPOINT_RESTART with the\n**   addition that it also truncates the log file to zero bytes just prior\n**   to a successful return.\n** </dl>\n**\n** ^If pnLog is not NULL, then *pnLog is set to the total number of frames in\n** the log file or to -1 if the checkpoint could not run because\n** of an error or because the database is not in [WAL mode]. ^If pnCkpt is not\n** NULL,then *pnCkpt is set to the total number of checkpointed frames in the\n** log file (including any that were already checkpointed before the function\n** was called) or to -1 if the checkpoint could not run due to an error or\n** because the database is not in WAL mode. ^Note that upon successful\n** completion of an SQLITE_CHECKPOINT_TRUNCATE, the log file will have been\n** truncated to zero bytes and so both *pnLog and *pnCkpt will be set to zero.\n**\n** ^All calls obtain an exclusive \"checkpoint\" lock on the database file. ^If\n** any other process is running a checkpoint operation at the same time, the \n** lock cannot be obtained and SQLITE_BUSY is returned. ^Even if there is a \n** busy-handler configured, it will not be invoked in this case.\n**\n** ^The SQLITE_CHECKPOINT_FULL, RESTART and TRUNCATE modes also obtain the \n** exclusive \"writer\" lock on the database file. ^If the writer lock cannot be\n** obtained immediately, and a busy-handler is configured, it is invoked and\n** the writer lock retried until either the busy-handler returns 0 or the lock\n** is successfully obtained. ^The busy-handler is also invoked while waiting for\n** database readers as described above. ^If the busy-handler returns 0 before\n** the writer lock is obtained or while waiting for database readers, the\n** checkpoint operation proceeds from that point in the same way as \n** SQLITE_CHECKPOINT_PASSIVE - checkpointing as many frames as possible \n** without blocking any further. ^SQLITE_BUSY is returned in this case.\n**\n** ^If parameter zDb is NULL or points to a zero length string, then the\n** specified operation is attempted on all WAL databases [attached] to \n** [database connection] db.  In this case the\n** values written to output parameters *pnLog and *pnCkpt are undefined. ^If \n** an SQLITE_BUSY error is encountered when processing one or more of the \n** attached WAL databases, the operation is still attempted on any remaining \n** attached databases and SQLITE_BUSY is returned at the end. ^If any other \n** error occurs while processing an attached database, processing is abandoned \n** and the error code is returned to the caller immediately. ^If no error \n** (SQLITE_BUSY or otherwise) is encountered while processing the attached \n** databases, SQLITE_OK is returned.\n**\n** ^If database zDb is the name of an attached database that is not in WAL\n** mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. ^If\n** zDb is not NULL (or a zero length string) and is not the name of any\n** attached database, SQLITE_ERROR is returned to the caller.\n**\n** ^Unless it returns SQLITE_MISUSE,\n** the sqlite3_wal_checkpoint_v2() interface\n** sets the error information that is queried by\n** [sqlite3_errcode()] and [sqlite3_errmsg()].\n**\n** ^The [PRAGMA wal_checkpoint] command can be used to invoke this interface\n** from SQL.\n*/\nSQLITE_API int sqlite3_wal_checkpoint_v2(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of attached database (or NULL) */\n  int eMode,                      /* SQLITE_CHECKPOINT_* value */\n  int *pnLog,                     /* OUT: Size of WAL log in frames */\n  int *pnCkpt                     /* OUT: Total number of frames checkpointed */\n);\n\n/*\n** CAPI3REF: Checkpoint Mode Values\n** KEYWORDS: {checkpoint mode}\n**\n** These constants define all valid values for the \"checkpoint mode\" passed\n** as the third parameter to the [sqlite3_wal_checkpoint_v2()] interface.\n** See the [sqlite3_wal_checkpoint_v2()] documentation for details on the\n** meaning of each of these checkpoint modes.\n*/\n#define SQLITE_CHECKPOINT_PASSIVE  0  /* Do as much as possible w/o blocking */\n#define SQLITE_CHECKPOINT_FULL     1  /* Wait for writers, then checkpoint */\n#define SQLITE_CHECKPOINT_RESTART  2  /* Like FULL but wait for for readers */\n#define SQLITE_CHECKPOINT_TRUNCATE 3  /* Like RESTART but also truncate WAL */\n\n/*\n** CAPI3REF: Virtual Table Interface Configuration\n**\n** This function may be called by either the [xConnect] or [xCreate] method\n** of a [virtual table] implementation to configure\n** various facets of the virtual table interface.\n**\n** If this interface is invoked outside the context of an xConnect or\n** xCreate virtual table method then the behavior is undefined.\n**\n** At present, there is only one option that may be configured using\n** this function. (See [SQLITE_VTAB_CONSTRAINT_SUPPORT].)  Further options\n** may be added in the future.\n*/\nSQLITE_API int sqlite3_vtab_config(sqlite3*, int op, ...);\n\n/*\n** CAPI3REF: Virtual Table Configuration Options\n**\n** These macros define the various options to the\n** [sqlite3_vtab_config()] interface that [virtual table] implementations\n** can use to customize and optimize their behavior.\n**\n** <dl>\n** <dt>SQLITE_VTAB_CONSTRAINT_SUPPORT\n** <dd>Calls of the form\n** [sqlite3_vtab_config](db,SQLITE_VTAB_CONSTRAINT_SUPPORT,X) are supported,\n** where X is an integer.  If X is zero, then the [virtual table] whose\n** [xCreate] or [xConnect] method invoked [sqlite3_vtab_config()] does not\n** support constraints.  In this configuration (which is the default) if\n** a call to the [xUpdate] method returns [SQLITE_CONSTRAINT], then the entire\n** statement is rolled back as if [ON CONFLICT | OR ABORT] had been\n** specified as part of the users SQL statement, regardless of the actual\n** ON CONFLICT mode specified.\n**\n** If X is non-zero, then the virtual table implementation guarantees\n** that if [xUpdate] returns [SQLITE_CONSTRAINT], it will do so before\n** any modifications to internal or persistent data structures have been made.\n** If the [ON CONFLICT] mode is ABORT, FAIL, IGNORE or ROLLBACK, SQLite \n** is able to roll back a statement or database transaction, and abandon\n** or continue processing the current SQL statement as appropriate. \n** If the ON CONFLICT mode is REPLACE and the [xUpdate] method returns\n** [SQLITE_CONSTRAINT], SQLite handles this as if the ON CONFLICT mode\n** had been ABORT.\n**\n** Virtual table implementations that are required to handle OR REPLACE\n** must do so within the [xUpdate] method. If a call to the \n** [sqlite3_vtab_on_conflict()] function indicates that the current ON \n** CONFLICT policy is REPLACE, the virtual table implementation should \n** silently replace the appropriate rows within the xUpdate callback and\n** return SQLITE_OK. Or, if this is not possible, it may return\n** SQLITE_CONSTRAINT, in which case SQLite falls back to OR ABORT \n** constraint handling.\n** </dl>\n*/\n#define SQLITE_VTAB_CONSTRAINT_SUPPORT 1\n\n/*\n** CAPI3REF: Determine The Virtual Table Conflict Policy\n**\n** This function may only be called from within a call to the [xUpdate] method\n** of a [virtual table] implementation for an INSERT or UPDATE operation. ^The\n** value returned is one of [SQLITE_ROLLBACK], [SQLITE_IGNORE], [SQLITE_FAIL],\n** [SQLITE_ABORT], or [SQLITE_REPLACE], according to the [ON CONFLICT] mode\n** of the SQL statement that triggered the call to the [xUpdate] method of the\n** [virtual table].\n*/\nSQLITE_API int sqlite3_vtab_on_conflict(sqlite3 *);\n\n/*\n** CAPI3REF: Determine If Virtual Table Column Access Is For UPDATE\n**\n** If the sqlite3_vtab_nochange(X) routine is called within the [xColumn]\n** method of a [virtual table], then it returns true if and only if the\n** column is being fetched as part of an UPDATE operation during which the\n** column value will not change.  Applications might use this to substitute\n** a lighter-weight value to return that the corresponding [xUpdate] method\n** understands as a \"no-change\" value.\n**\n** If the [xColumn] method calls sqlite3_vtab_nochange() and finds that\n** the column is not changed by the UPDATE statement, they the xColumn\n** method can optionally return without setting a result, without calling\n** any of the [sqlite3_result_int|sqlite3_result_xxxxx() interfaces].\n** In that case, [sqlite3_value_nochange(X)] will return true for the\n** same column in the [xUpdate] method.\n*/\nSQLITE_API int sqlite3_vtab_nochange(sqlite3_context*);\n\n/*\n** CAPI3REF: Determine The Collation For a Virtual Table Constraint\n**\n** This function may only be called from within a call to the [xBestIndex]\n** method of a [virtual table]. \n**\n** The first argument must be the sqlite3_index_info object that is the\n** first parameter to the xBestIndex() method. The second argument must be\n** an index into the aConstraint[] array belonging to the sqlite3_index_info\n** structure passed to xBestIndex. This function returns a pointer to a buffer \n** containing the name of the collation sequence for the corresponding\n** constraint.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL const char *sqlite3_vtab_collation(sqlite3_index_info*,int);\n\n/*\n** CAPI3REF: Conflict resolution modes\n** KEYWORDS: {conflict resolution mode}\n**\n** These constants are returned by [sqlite3_vtab_on_conflict()] to\n** inform a [virtual table] implementation what the [ON CONFLICT] mode\n** is for the SQL statement being evaluated.\n**\n** Note that the [SQLITE_IGNORE] constant is also used as a potential\n** return value from the [sqlite3_set_authorizer()] callback and that\n** [SQLITE_ABORT] is also a [result code].\n*/\n#define SQLITE_ROLLBACK 1\n/* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */\n#define SQLITE_FAIL     3\n/* #define SQLITE_ABORT 4  // Also an error code */\n#define SQLITE_REPLACE  5\n\n/*\n** CAPI3REF: Prepared Statement Scan Status Opcodes\n** KEYWORDS: {scanstatus options}\n**\n** The following constants can be used for the T parameter to the\n** [sqlite3_stmt_scanstatus(S,X,T,V)] interface.  Each constant designates a\n** different metric for sqlite3_stmt_scanstatus() to return.\n**\n** When the value returned to V is a string, space to hold that string is\n** managed by the prepared statement S and will be automatically freed when\n** S is finalized.\n**\n** <dl>\n** [[SQLITE_SCANSTAT_NLOOP]] <dt>SQLITE_SCANSTAT_NLOOP</dt>\n** <dd>^The [sqlite3_int64] variable pointed to by the T parameter will be\n** set to the total number of times that the X-th loop has run.</dd>\n**\n** [[SQLITE_SCANSTAT_NVISIT]] <dt>SQLITE_SCANSTAT_NVISIT</dt>\n** <dd>^The [sqlite3_int64] variable pointed to by the T parameter will be set\n** to the total number of rows examined by all iterations of the X-th loop.</dd>\n**\n** [[SQLITE_SCANSTAT_EST]] <dt>SQLITE_SCANSTAT_EST</dt>\n** <dd>^The \"double\" variable pointed to by the T parameter will be set to the\n** query planner's estimate for the average number of rows output from each\n** iteration of the X-th loop.  If the query planner's estimates was accurate,\n** then this value will approximate the quotient NVISIT/NLOOP and the\n** product of this value for all prior loops with the same SELECTID will\n** be the NLOOP value for the current loop.\n**\n** [[SQLITE_SCANSTAT_NAME]] <dt>SQLITE_SCANSTAT_NAME</dt>\n** <dd>^The \"const char *\" variable pointed to by the T parameter will be set\n** to a zero-terminated UTF-8 string containing the name of the index or table\n** used for the X-th loop.\n**\n** [[SQLITE_SCANSTAT_EXPLAIN]] <dt>SQLITE_SCANSTAT_EXPLAIN</dt>\n** <dd>^The \"const char *\" variable pointed to by the T parameter will be set\n** to a zero-terminated UTF-8 string containing the [EXPLAIN QUERY PLAN]\n** description for the X-th loop.\n**\n** [[SQLITE_SCANSTAT_SELECTID]] <dt>SQLITE_SCANSTAT_SELECT</dt>\n** <dd>^The \"int\" variable pointed to by the T parameter will be set to the\n** \"select-id\" for the X-th loop.  The select-id identifies which query or\n** subquery the loop is part of.  The main query has a select-id of zero.\n** The select-id is the same value as is output in the first column\n** of an [EXPLAIN QUERY PLAN] query.\n** </dl>\n*/\n#define SQLITE_SCANSTAT_NLOOP    0\n#define SQLITE_SCANSTAT_NVISIT   1\n#define SQLITE_SCANSTAT_EST      2\n#define SQLITE_SCANSTAT_NAME     3\n#define SQLITE_SCANSTAT_EXPLAIN  4\n#define SQLITE_SCANSTAT_SELECTID 5\n\n/*\n** CAPI3REF: Prepared Statement Scan Status\n** METHOD: sqlite3_stmt\n**\n** This interface returns information about the predicted and measured\n** performance for pStmt.  Advanced applications can use this\n** interface to compare the predicted and the measured performance and\n** issue warnings and/or rerun [ANALYZE] if discrepancies are found.\n**\n** Since this interface is expected to be rarely used, it is only\n** available if SQLite is compiled using the [SQLITE_ENABLE_STMT_SCANSTATUS]\n** compile-time option.\n**\n** The \"iScanStatusOp\" parameter determines which status information to return.\n** The \"iScanStatusOp\" must be one of the [scanstatus options] or the behavior\n** of this interface is undefined.\n** ^The requested measurement is written into a variable pointed to by\n** the \"pOut\" parameter.\n** Parameter \"idx\" identifies the specific loop to retrieve statistics for.\n** Loops are numbered starting from zero. ^If idx is out of range - less than\n** zero or greater than or equal to the total number of loops used to implement\n** the statement - a non-zero value is returned and the variable that pOut\n** points to is unchanged.\n**\n** ^Statistics might not be available for all loops in all statements. ^In cases\n** where there exist loops with no available statistics, this function behaves\n** as if the loop did not exist - it returns non-zero and leave the variable\n** that pOut points to unchanged.\n**\n** See also: [sqlite3_stmt_scanstatus_reset()]\n*/\nSQLITE_API int sqlite3_stmt_scanstatus(\n  sqlite3_stmt *pStmt,      /* Prepared statement for which info desired */\n  int idx,                  /* Index of loop to report on */\n  int iScanStatusOp,        /* Information desired.  SQLITE_SCANSTAT_* */\n  void *pOut                /* Result written here */\n);     \n\n/*\n** CAPI3REF: Zero Scan-Status Counters\n** METHOD: sqlite3_stmt\n**\n** ^Zero all [sqlite3_stmt_scanstatus()] related event counters.\n**\n** This API is only available if the library is built with pre-processor\n** symbol [SQLITE_ENABLE_STMT_SCANSTATUS] defined.\n*/\nSQLITE_API void sqlite3_stmt_scanstatus_reset(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Flush caches to disk mid-transaction\n**\n** ^If a write-transaction is open on [database connection] D when the\n** [sqlite3_db_cacheflush(D)] interface invoked, any dirty\n** pages in the pager-cache that are not currently in use are written out \n** to disk. A dirty page may be in use if a database cursor created by an\n** active SQL statement is reading from it, or if it is page 1 of a database\n** file (page 1 is always \"in use\").  ^The [sqlite3_db_cacheflush(D)]\n** interface flushes caches for all schemas - \"main\", \"temp\", and\n** any [attached] databases.\n**\n** ^If this function needs to obtain extra database locks before dirty pages \n** can be flushed to disk, it does so. ^If those locks cannot be obtained \n** immediately and there is a busy-handler callback configured, it is invoked\n** in the usual manner. ^If the required lock still cannot be obtained, then\n** the database is skipped and an attempt made to flush any dirty pages\n** belonging to the next (if any) database. ^If any databases are skipped\n** because locks cannot be obtained, but no other error occurs, this\n** function returns SQLITE_BUSY.\n**\n** ^If any other error occurs while flushing dirty pages to disk (for\n** example an IO error or out-of-memory condition), then processing is\n** abandoned and an SQLite [error code] is returned to the caller immediately.\n**\n** ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK.\n**\n** ^This function does not set the database handle error code or message\n** returned by the [sqlite3_errcode()] and [sqlite3_errmsg()] functions.\n*/\nSQLITE_API int sqlite3_db_cacheflush(sqlite3*);\n\n/*\n** CAPI3REF: The pre-update hook.\n**\n** ^These interfaces are only available if SQLite is compiled using the\n** [SQLITE_ENABLE_PREUPDATE_HOOK] compile-time option.\n**\n** ^The [sqlite3_preupdate_hook()] interface registers a callback function\n** that is invoked prior to each [INSERT], [UPDATE], and [DELETE] operation\n** on a database table.\n** ^At most one preupdate hook may be registered at a time on a single\n** [database connection]; each call to [sqlite3_preupdate_hook()] overrides\n** the previous setting.\n** ^The preupdate hook is disabled by invoking [sqlite3_preupdate_hook()]\n** with a NULL pointer as the second parameter.\n** ^The third parameter to [sqlite3_preupdate_hook()] is passed through as\n** the first parameter to callbacks.\n**\n** ^The preupdate hook only fires for changes to real database tables; the\n** preupdate hook is not invoked for changes to [virtual tables] or to\n** system tables like sqlite_master or sqlite_stat1.\n**\n** ^The second parameter to the preupdate callback is a pointer to\n** the [database connection] that registered the preupdate hook.\n** ^The third parameter to the preupdate callback is one of the constants\n** [SQLITE_INSERT], [SQLITE_DELETE], or [SQLITE_UPDATE] to identify the\n** kind of update operation that is about to occur.\n** ^(The fourth parameter to the preupdate callback is the name of the\n** database within the database connection that is being modified.  This\n** will be \"main\" for the main database or \"temp\" for TEMP tables or \n** the name given after the AS keyword in the [ATTACH] statement for attached\n** databases.)^\n** ^The fifth parameter to the preupdate callback is the name of the\n** table that is being modified.\n**\n** For an UPDATE or DELETE operation on a [rowid table], the sixth\n** parameter passed to the preupdate callback is the initial [rowid] of the \n** row being modified or deleted. For an INSERT operation on a rowid table,\n** or any operation on a WITHOUT ROWID table, the value of the sixth \n** parameter is undefined. For an INSERT or UPDATE on a rowid table the\n** seventh parameter is the final rowid value of the row being inserted\n** or updated. The value of the seventh parameter passed to the callback\n** function is not defined for operations on WITHOUT ROWID tables, or for\n** INSERT operations on rowid tables.\n**\n** The [sqlite3_preupdate_old()], [sqlite3_preupdate_new()],\n** [sqlite3_preupdate_count()], and [sqlite3_preupdate_depth()] interfaces\n** provide additional information about a preupdate event. These routines\n** may only be called from within a preupdate callback.  Invoking any of\n** these routines from outside of a preupdate callback or with a\n** [database connection] pointer that is different from the one supplied\n** to the preupdate callback results in undefined and probably undesirable\n** behavior.\n**\n** ^The [sqlite3_preupdate_count(D)] interface returns the number of columns\n** in the row that is being inserted, updated, or deleted.\n**\n** ^The [sqlite3_preupdate_old(D,N,P)] interface writes into P a pointer to\n** a [protected sqlite3_value] that contains the value of the Nth column of\n** the table row before it is updated.  The N parameter must be between 0\n** and one less than the number of columns or the behavior will be\n** undefined. This must only be used within SQLITE_UPDATE and SQLITE_DELETE\n** preupdate callbacks; if it is used by an SQLITE_INSERT callback then the\n** behavior is undefined.  The [sqlite3_value] that P points to\n** will be destroyed when the preupdate callback returns.\n**\n** ^The [sqlite3_preupdate_new(D,N,P)] interface writes into P a pointer to\n** a [protected sqlite3_value] that contains the value of the Nth column of\n** the table row after it is updated.  The N parameter must be between 0\n** and one less than the number of columns or the behavior will be\n** undefined. This must only be used within SQLITE_INSERT and SQLITE_UPDATE\n** preupdate callbacks; if it is used by an SQLITE_DELETE callback then the\n** behavior is undefined.  The [sqlite3_value] that P points to\n** will be destroyed when the preupdate callback returns.\n**\n** ^The [sqlite3_preupdate_depth(D)] interface returns 0 if the preupdate\n** callback was invoked as a result of a direct insert, update, or delete\n** operation; or 1 for inserts, updates, or deletes invoked by top-level \n** triggers; or 2 for changes resulting from triggers called by top-level\n** triggers; and so forth.\n**\n** See also:  [sqlite3_update_hook()]\n*/\n#if defined(SQLITE_ENABLE_PREUPDATE_HOOK)\nSQLITE_API void *sqlite3_preupdate_hook(\n  sqlite3 *db,\n  void(*xPreUpdate)(\n    void *pCtx,                   /* Copy of third arg to preupdate_hook() */\n    sqlite3 *db,                  /* Database handle */\n    int op,                       /* SQLITE_UPDATE, DELETE or INSERT */\n    char const *zDb,              /* Database name */\n    char const *zName,            /* Table name */\n    sqlite3_int64 iKey1,          /* Rowid of row about to be deleted/updated */\n    sqlite3_int64 iKey2           /* New rowid value (for a rowid UPDATE) */\n  ),\n  void*\n);\nSQLITE_API int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);\nSQLITE_API int sqlite3_preupdate_count(sqlite3 *);\nSQLITE_API int sqlite3_preupdate_depth(sqlite3 *);\nSQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);\n#endif\n\n/*\n** CAPI3REF: Low-level system error code\n**\n** ^Attempt to return the underlying operating system error code or error\n** number that caused the most recent I/O error or failure to open a file.\n** The return value is OS-dependent.  For example, on unix systems, after\n** [sqlite3_open_v2()] returns [SQLITE_CANTOPEN], this interface could be\n** called to get back the underlying \"errno\" that caused the problem, such\n** as ENOSPC, EAUTH, EISDIR, and so forth.  \n*/\nSQLITE_API int sqlite3_system_errno(sqlite3*);\n\n/*\n** CAPI3REF: Database Snapshot\n** KEYWORDS: {snapshot} {sqlite3_snapshot}\n** EXPERIMENTAL\n**\n** An instance of the snapshot object records the state of a [WAL mode]\n** database for some specific point in history.\n**\n** In [WAL mode], multiple [database connections] that are open on the\n** same database file can each be reading a different historical version\n** of the database file.  When a [database connection] begins a read\n** transaction, that connection sees an unchanging copy of the database\n** as it existed for the point in time when the transaction first started.\n** Subsequent changes to the database from other connections are not seen\n** by the reader until a new read transaction is started.\n**\n** The sqlite3_snapshot object records state information about an historical\n** version of the database file so that it is possible to later open a new read\n** transaction that sees that historical version of the database rather than\n** the most recent version.\n**\n** The constructor for this object is [sqlite3_snapshot_get()].  The\n** [sqlite3_snapshot_open()] method causes a fresh read transaction to refer\n** to an historical snapshot (if possible).  The destructor for \n** sqlite3_snapshot objects is [sqlite3_snapshot_free()].\n*/\ntypedef struct sqlite3_snapshot {\n  unsigned char hidden[48];\n} sqlite3_snapshot;\n\n/*\n** CAPI3REF: Record A Database Snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_get(D,S,P)] interface attempts to make a\n** new [sqlite3_snapshot] object that records the current state of\n** schema S in database connection D.  ^On success, the\n** [sqlite3_snapshot_get(D,S,P)] interface writes a pointer to the newly\n** created [sqlite3_snapshot] object into *P and returns SQLITE_OK.\n** If there is not already a read-transaction open on schema S when\n** this function is called, one is opened automatically. \n**\n** The following must be true for this function to succeed. If any of\n** the following statements are false when sqlite3_snapshot_get() is\n** called, SQLITE_ERROR is returned. The final value of *P is undefined\n** in this case. \n**\n** <ul>\n**   <li> The database handle must be in [autocommit mode].\n**\n**   <li> Schema S of [database connection] D must be a [WAL mode] database.\n**\n**   <li> There must not be a write transaction open on schema S of database\n**        connection D.\n**\n**   <li> One or more transactions must have been written to the current wal\n**        file since it was created on disk (by any connection). This means\n**        that a snapshot cannot be taken on a wal mode database with no wal \n**        file immediately after it is first opened. At least one transaction\n**        must be written to it first.\n** </ul>\n**\n** This function may also return SQLITE_NOMEM.  If it is called with the\n** database handle in autocommit mode but fails for some other reason, \n** whether or not a read transaction is opened on schema S is undefined.\n**\n** The [sqlite3_snapshot] object returned from a successful call to\n** [sqlite3_snapshot_get()] must be freed using [sqlite3_snapshot_free()]\n** to avoid a memory leak.\n**\n** The [sqlite3_snapshot_get()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_get(\n  sqlite3 *db,\n  const char *zSchema,\n  sqlite3_snapshot **ppSnapshot\n);\n\n/*\n** CAPI3REF: Start a read transaction on an historical snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_open(D,S,P)] interface starts a\n** read transaction for schema S of\n** [database connection] D such that the read transaction\n** refers to historical [snapshot] P, rather than the most\n** recent change to the database.\n** ^The [sqlite3_snapshot_open()] interface returns SQLITE_OK on success\n** or an appropriate [error code] if it fails.\n**\n** ^In order to succeed, a call to [sqlite3_snapshot_open(D,S,P)] must be\n** the first operation following the [BEGIN] that takes the schema S\n** out of [autocommit mode].\n** ^In other words, schema S must not currently be in\n** a transaction for [sqlite3_snapshot_open(D,S,P)] to work, but the\n** database connection D must be out of [autocommit mode].\n** ^A [snapshot] will fail to open if it has been overwritten by a\n** [checkpoint].\n** ^(A call to [sqlite3_snapshot_open(D,S,P)] will fail if the\n** database connection D does not know that the database file for\n** schema S is in [WAL mode].  A database connection might not know\n** that the database file is in [WAL mode] if there has been no prior\n** I/O on that database connection, or if the database entered [WAL mode] \n** after the most recent I/O on the database connection.)^\n** (Hint: Run \"[PRAGMA application_id]\" against a newly opened\n** database connection in order to make it ready to use snapshots.)\n**\n** The [sqlite3_snapshot_open()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_open(\n  sqlite3 *db,\n  const char *zSchema,\n  sqlite3_snapshot *pSnapshot\n);\n\n/*\n** CAPI3REF: Destroy a snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_free(P)] interface destroys [sqlite3_snapshot] P.\n** The application must eventually free every [sqlite3_snapshot] object\n** using this routine to avoid a memory leak.\n**\n** The [sqlite3_snapshot_free()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL void sqlite3_snapshot_free(sqlite3_snapshot*);\n\n/*\n** CAPI3REF: Compare the ages of two snapshot handles.\n** EXPERIMENTAL\n**\n** The sqlite3_snapshot_cmp(P1, P2) interface is used to compare the ages\n** of two valid snapshot handles. \n**\n** If the two snapshot handles are not associated with the same database \n** file, the result of the comparison is undefined. \n**\n** Additionally, the result of the comparison is only valid if both of the\n** snapshot handles were obtained by calling sqlite3_snapshot_get() since the\n** last time the wal file was deleted. The wal file is deleted when the\n** database is changed back to rollback mode or when the number of database\n** clients drops to zero. If either snapshot handle was obtained before the \n** wal file was last deleted, the value returned by this function \n** is undefined.\n**\n** Otherwise, this API returns a negative value if P1 refers to an older\n** snapshot than P2, zero if the two handles refer to the same database\n** snapshot, and a positive value if P1 is a newer snapshot than P2.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_cmp(\n  sqlite3_snapshot *p1,\n  sqlite3_snapshot *p2\n);\n\n/*\n** CAPI3REF: Recover snapshots from a wal file\n** EXPERIMENTAL\n**\n** If all connections disconnect from a database file but do not perform\n** a checkpoint, the existing wal file is opened along with the database\n** file the next time the database is opened. At this point it is only\n** possible to successfully call sqlite3_snapshot_open() to open the most\n** recent snapshot of the database (the one at the head of the wal file),\n** even though the wal file may contain other valid snapshots for which\n** clients have sqlite3_snapshot handles.\n**\n** This function attempts to scan the wal file associated with database zDb\n** of database handle db and make all valid snapshots available to\n** sqlite3_snapshot_open(). It is an error if there is already a read\n** transaction open on the database, or if the database is not a wal mode\n** database.\n**\n** SQLITE_OK is returned if successful, or an SQLite error code otherwise.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb);\n\n/*\n** Undo the hack that converts floating point types to integer for\n** builds on processors without floating point support.\n*/\n#ifdef SQLITE_OMIT_FLOATING_POINT\n# undef double\n#endif\n\n#ifdef __cplusplus\n}  /* End of the 'extern \"C\"' block */\n#endif\n#endif /* SQLITE3_H */\n\n/******** Begin file sqlite3rtree.h *********/\n/*\n** 2010 August 30\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n*/\n\n#ifndef _SQLITE3RTREE_H_\n#define _SQLITE3RTREE_H_\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct sqlite3_rtree_geometry sqlite3_rtree_geometry;\ntypedef struct sqlite3_rtree_query_info sqlite3_rtree_query_info;\n\n/* The double-precision datatype used by RTree depends on the\n** SQLITE_RTREE_INT_ONLY compile-time option.\n*/\n#ifdef SQLITE_RTREE_INT_ONLY\n  typedef sqlite3_int64 sqlite3_rtree_dbl;\n#else\n  typedef double sqlite3_rtree_dbl;\n#endif\n\n/*\n** Register a geometry callback named zGeom that can be used as part of an\n** R-Tree geometry query as follows:\n**\n**   SELECT ... FROM <rtree> WHERE <rtree col> MATCH $zGeom(... params ...)\n*/\nSQLITE_API int sqlite3_rtree_geometry_callback(\n  sqlite3 *db,\n  const char *zGeom,\n  int (*xGeom)(sqlite3_rtree_geometry*, int, sqlite3_rtree_dbl*,int*),\n  void *pContext\n);\n\n\n/*\n** A pointer to a structure of the following type is passed as the first\n** argument to callbacks registered using rtree_geometry_callback().\n*/\nstruct sqlite3_rtree_geometry {\n  void *pContext;                 /* Copy of pContext passed to s_r_g_c() */\n  int nParam;                     /* Size of array aParam[] */\n  sqlite3_rtree_dbl *aParam;      /* Parameters passed to SQL geom function */\n  void *pUser;                    /* Callback implementation user data */\n  void (*xDelUser)(void *);       /* Called by SQLite to clean up pUser */\n};\n\n/*\n** Register a 2nd-generation geometry callback named zScore that can be \n** used as part of an R-Tree geometry query as follows:\n**\n**   SELECT ... FROM <rtree> WHERE <rtree col> MATCH $zQueryFunc(... params ...)\n*/\nSQLITE_API int sqlite3_rtree_query_callback(\n  sqlite3 *db,\n  const char *zQueryFunc,\n  int (*xQueryFunc)(sqlite3_rtree_query_info*),\n  void *pContext,\n  void (*xDestructor)(void*)\n);\n\n\n/*\n** A pointer to a structure of the following type is passed as the \n** argument to scored geometry callback registered using\n** sqlite3_rtree_query_callback().\n**\n** Note that the first 5 fields of this structure are identical to\n** sqlite3_rtree_geometry.  This structure is a subclass of\n** sqlite3_rtree_geometry.\n*/\nstruct sqlite3_rtree_query_info {\n  void *pContext;                   /* pContext from when function registered */\n  int nParam;                       /* Number of function parameters */\n  sqlite3_rtree_dbl *aParam;        /* value of function parameters */\n  void *pUser;                      /* callback can use this, if desired */\n  void (*xDelUser)(void*);          /* function to free pUser */\n  sqlite3_rtree_dbl *aCoord;        /* Coordinates of node or entry to check */\n  unsigned int *anQueue;            /* Number of pending entries in the queue */\n  int nCoord;                       /* Number of coordinates */\n  int iLevel;                       /* Level of current node or entry */\n  int mxLevel;                      /* The largest iLevel value in the tree */\n  sqlite3_int64 iRowid;             /* Rowid for current entry */\n  sqlite3_rtree_dbl rParentScore;   /* Score of parent node */\n  int eParentWithin;                /* Visibility of parent node */\n  int eWithin;                      /* OUT: Visiblity */\n  sqlite3_rtree_dbl rScore;         /* OUT: Write the score here */\n  /* The following fields are only available in 3.8.11 and later */\n  sqlite3_value **apSqlParam;       /* Original SQL values of parameters */\n};\n\n/*\n** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.\n*/\n#define NOT_WITHIN       0   /* Object completely outside of query region */\n#define PARTLY_WITHIN    1   /* Object partially overlaps query region */\n#define FULLY_WITHIN     2   /* Object fully contained within query region */\n\n\n#ifdef __cplusplus\n}  /* end of the 'extern \"C\"' block */\n#endif\n\n#endif  /* ifndef _SQLITE3RTREE_H_ */\n\n/******** End of sqlite3rtree.h *********/\n/******** Begin file sqlite3session.h *********/\n\n#if !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION)\n#define __SQLITESESSION_H_ 1\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n/*\n** CAPI3REF: Session Object Handle\n*/\ntypedef struct sqlite3_session sqlite3_session;\n\n/*\n** CAPI3REF: Changeset Iterator Handle\n*/\ntypedef struct sqlite3_changeset_iter sqlite3_changeset_iter;\n\n/*\n** CAPI3REF: Create A New Session Object\n**\n** Create a new session object attached to database handle db. If successful,\n** a pointer to the new object is written to *ppSession and SQLITE_OK is\n** returned. If an error occurs, *ppSession is set to NULL and an SQLite\n** error code (e.g. SQLITE_NOMEM) is returned.\n**\n** It is possible to create multiple session objects attached to a single\n** database handle.\n**\n** Session objects created using this function should be deleted using the\n** [sqlite3session_delete()] function before the database handle that they\n** are attached to is itself closed. If the database handle is closed before\n** the session object is deleted, then the results of calling any session\n** module function, including [sqlite3session_delete()] on the session object\n** are undefined.\n**\n** Because the session module uses the [sqlite3_preupdate_hook()] API, it\n** is not possible for an application to register a pre-update hook on a\n** database handle that has one or more session objects attached. Nor is\n** it possible to create a session object attached to a database handle for\n** which a pre-update hook is already defined. The results of attempting \n** either of these things are undefined.\n**\n** The session object will be used to create changesets for tables in\n** database zDb, where zDb is either \"main\", or \"temp\", or the name of an\n** attached database. It is not an error if database zDb is not attached\n** to the database when the session object is created.\n*/\nSQLITE_API int sqlite3session_create(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of db (e.g. \"main\") */\n  sqlite3_session **ppSession     /* OUT: New session object */\n);\n\n/*\n** CAPI3REF: Delete A Session Object\n**\n** Delete a session object previously allocated using \n** [sqlite3session_create()]. Once a session object has been deleted, the\n** results of attempting to use pSession with any other session module\n** function are undefined.\n**\n** Session objects must be deleted before the database handle to which they\n** are attached is closed. Refer to the documentation for \n** [sqlite3session_create()] for details.\n*/\nSQLITE_API void sqlite3session_delete(sqlite3_session *pSession);\n\n\n/*\n** CAPI3REF: Enable Or Disable A Session Object\n**\n** Enable or disable the recording of changes by a session object. When\n** enabled, a session object records changes made to the database. When\n** disabled - it does not. A newly created session object is enabled.\n** Refer to the documentation for [sqlite3session_changeset()] for further\n** details regarding how enabling and disabling a session object affects\n** the eventual changesets.\n**\n** Passing zero to this function disables the session. Passing a value\n** greater than zero enables it. Passing a value less than zero is a \n** no-op, and may be used to query the current state of the session.\n**\n** The return value indicates the final state of the session object: 0 if \n** the session is disabled, or 1 if it is enabled.\n*/\nSQLITE_API int sqlite3session_enable(sqlite3_session *pSession, int bEnable);\n\n/*\n** CAPI3REF: Set Or Clear the Indirect Change Flag\n**\n** Each change recorded by a session object is marked as either direct or\n** indirect. A change is marked as indirect if either:\n**\n** <ul>\n**   <li> The session object \"indirect\" flag is set when the change is\n**        made, or\n**   <li> The change is made by an SQL trigger or foreign key action \n**        instead of directly as a result of a users SQL statement.\n** </ul>\n**\n** If a single row is affected by more than one operation within a session,\n** then the change is considered indirect if all operations meet the criteria\n** for an indirect change above, or direct otherwise.\n**\n** This function is used to set, clear or query the session object indirect\n** flag.  If the second argument passed to this function is zero, then the\n** indirect flag is cleared. If it is greater than zero, the indirect flag\n** is set. Passing a value less than zero does not modify the current value\n** of the indirect flag, and may be used to query the current state of the \n** indirect flag for the specified session object.\n**\n** The return value indicates the final state of the indirect flag: 0 if \n** it is clear, or 1 if it is set.\n*/\nSQLITE_API int sqlite3session_indirect(sqlite3_session *pSession, int bIndirect);\n\n/*\n** CAPI3REF: Attach A Table To A Session Object\n**\n** If argument zTab is not NULL, then it is the name of a table to attach\n** to the session object passed as the first argument. All subsequent changes \n** made to the table while the session object is enabled will be recorded. See \n** documentation for [sqlite3session_changeset()] for further details.\n**\n** Or, if argument zTab is NULL, then changes are recorded for all tables\n** in the database. If additional tables are added to the database (by \n** executing \"CREATE TABLE\" statements) after this call is made, changes for \n** the new tables are also recorded.\n**\n** Changes can only be recorded for tables that have a PRIMARY KEY explicitly\n** defined as part of their CREATE TABLE statement. It does not matter if the \n** PRIMARY KEY is an \"INTEGER PRIMARY KEY\" (rowid alias) or not. The PRIMARY\n** KEY may consist of a single column, or may be a composite key.\n** \n** It is not an error if the named table does not exist in the database. Nor\n** is it an error if the named table does not have a PRIMARY KEY. However,\n** no changes will be recorded in either of these scenarios.\n**\n** Changes are not recorded for individual rows that have NULL values stored\n** in one or more of their PRIMARY KEY columns.\n**\n** SQLITE_OK is returned if the call completes without error. Or, if an error \n** occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.\n**\n** <h3>Special sqlite_stat1 Handling</h3>\n**\n** As of SQLite version 3.22.0, the \"sqlite_stat1\" table is an exception to \n** some of the rules above. In SQLite, the schema of sqlite_stat1 is:\n**  <pre>\n**  &nbsp;     CREATE TABLE sqlite_stat1(tbl,idx,stat)  \n**  </pre>\n**\n** Even though sqlite_stat1 does not have a PRIMARY KEY, changes are \n** recorded for it as if the PRIMARY KEY is (tbl,idx). Additionally, changes \n** are recorded for rows for which (idx IS NULL) is true. However, for such\n** rows a zero-length blob (SQL value X'') is stored in the changeset or\n** patchset instead of a NULL value. This allows such changesets to be\n** manipulated by legacy implementations of sqlite3changeset_invert(),\n** concat() and similar.\n**\n** The sqlite3changeset_apply() function automatically converts the \n** zero-length blob back to a NULL value when updating the sqlite_stat1\n** table. However, if the application calls sqlite3changeset_new(),\n** sqlite3changeset_old() or sqlite3changeset_conflict on a changeset \n** iterator directly (including on a changeset iterator passed to a\n** conflict-handler callback) then the X'' value is returned. The application\n** must translate X'' to NULL itself if required.\n**\n** Legacy (older than 3.22.0) versions of the sessions module cannot capture\n** changes made to the sqlite_stat1 table. Legacy versions of the\n** sqlite3changeset_apply() function silently ignore any modifications to the\n** sqlite_stat1 table that are part of a changeset or patchset.\n*/\nSQLITE_API int sqlite3session_attach(\n  sqlite3_session *pSession,      /* Session object */\n  const char *zTab                /* Table name */\n);\n\n/*\n** CAPI3REF: Set a table filter on a Session Object.\n**\n** The second argument (xFilter) is the \"filter callback\". For changes to rows \n** in tables that are not attached to the Session object, the filter is called\n** to determine whether changes to the table's rows should be tracked or not. \n** If xFilter returns 0, changes is not tracked. Note that once a table is \n** attached, xFilter will not be called again.\n*/\nSQLITE_API void sqlite3session_table_filter(\n  sqlite3_session *pSession,      /* Session object */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of third arg to _filter_table() */\n    const char *zTab              /* Table name */\n  ),\n  void *pCtx                      /* First argument passed to xFilter */\n);\n\n/*\n** CAPI3REF: Generate A Changeset From A Session Object\n**\n** Obtain a changeset containing changes to the tables attached to the \n** session object passed as the first argument. If successful, \n** set *ppChangeset to point to a buffer containing the changeset \n** and *pnChangeset to the size of the changeset in bytes before returning\n** SQLITE_OK. If an error occurs, set both *ppChangeset and *pnChangeset to\n** zero and return an SQLite error code.\n**\n** A changeset consists of zero or more INSERT, UPDATE and/or DELETE changes,\n** each representing a change to a single row of an attached table. An INSERT\n** change contains the values of each field of a new database row. A DELETE\n** contains the original values of each field of a deleted database row. An\n** UPDATE change contains the original values of each field of an updated\n** database row along with the updated values for each updated non-primary-key\n** column. It is not possible for an UPDATE change to represent a change that\n** modifies the values of primary key columns. If such a change is made, it\n** is represented in a changeset as a DELETE followed by an INSERT.\n**\n** Changes are not recorded for rows that have NULL values stored in one or \n** more of their PRIMARY KEY columns. If such a row is inserted or deleted,\n** no corresponding change is present in the changesets returned by this\n** function. If an existing row with one or more NULL values stored in\n** PRIMARY KEY columns is updated so that all PRIMARY KEY columns are non-NULL,\n** only an INSERT is appears in the changeset. Similarly, if an existing row\n** with non-NULL PRIMARY KEY values is updated so that one or more of its\n** PRIMARY KEY columns are set to NULL, the resulting changeset contains a\n** DELETE change only.\n**\n** The contents of a changeset may be traversed using an iterator created\n** using the [sqlite3changeset_start()] API. A changeset may be applied to\n** a database with a compatible schema using the [sqlite3changeset_apply()]\n** API.\n**\n** Within a changeset generated by this function, all changes related to a\n** single table are grouped together. In other words, when iterating through\n** a changeset or when applying a changeset to a database, all changes related\n** to a single table are processed before moving on to the next table. Tables\n** are sorted in the same order in which they were attached (or auto-attached)\n** to the sqlite3_session object. The order in which the changes related to\n** a single table are stored is undefined.\n**\n** Following a successful call to this function, it is the responsibility of\n** the caller to eventually free the buffer that *ppChangeset points to using\n** [sqlite3_free()].\n**\n** <h3>Changeset Generation</h3>\n**\n** Once a table has been attached to a session object, the session object\n** records the primary key values of all new rows inserted into the table.\n** It also records the original primary key and other column values of any\n** deleted or updated rows. For each unique primary key value, data is only\n** recorded once - the first time a row with said primary key is inserted,\n** updated or deleted in the lifetime of the session.\n**\n** There is one exception to the previous paragraph: when a row is inserted,\n** updated or deleted, if one or more of its primary key columns contain a\n** NULL value, no record of the change is made.\n**\n** The session object therefore accumulates two types of records - those\n** that consist of primary key values only (created when the user inserts\n** a new record) and those that consist of the primary key values and the\n** original values of other table columns (created when the users deletes\n** or updates a record).\n**\n** When this function is called, the requested changeset is created using\n** both the accumulated records and the current contents of the database\n** file. Specifically:\n**\n** <ul>\n**   <li> For each record generated by an insert, the database is queried\n**        for a row with a matching primary key. If one is found, an INSERT\n**        change is added to the changeset. If no such row is found, no change \n**        is added to the changeset.\n**\n**   <li> For each record generated by an update or delete, the database is \n**        queried for a row with a matching primary key. If such a row is\n**        found and one or more of the non-primary key fields have been\n**        modified from their original values, an UPDATE change is added to \n**        the changeset. Or, if no such row is found in the table, a DELETE \n**        change is added to the changeset. If there is a row with a matching\n**        primary key in the database, but all fields contain their original\n**        values, no change is added to the changeset.\n** </ul>\n**\n** This means, amongst other things, that if a row is inserted and then later\n** deleted while a session object is active, neither the insert nor the delete\n** will be present in the changeset. Or if a row is deleted and then later a \n** row with the same primary key values inserted while a session object is\n** active, the resulting changeset will contain an UPDATE change instead of\n** a DELETE and an INSERT.\n**\n** When a session object is disabled (see the [sqlite3session_enable()] API),\n** it does not accumulate records when rows are inserted, updated or deleted.\n** This may appear to have some counter-intuitive effects if a single row\n** is written to more than once during a session. For example, if a row\n** is inserted while a session object is enabled, then later deleted while \n** the same session object is disabled, no INSERT record will appear in the\n** changeset, even though the delete took place while the session was disabled.\n** Or, if one field of a row is updated while a session is disabled, and \n** another field of the same row is updated while the session is enabled, the\n** resulting changeset will contain an UPDATE change that updates both fields.\n*/\nSQLITE_API int sqlite3session_changeset(\n  sqlite3_session *pSession,      /* Session object */\n  int *pnChangeset,               /* OUT: Size of buffer at *ppChangeset */\n  void **ppChangeset              /* OUT: Buffer containing changeset */\n);\n\n/*\n** CAPI3REF: Load The Difference Between Tables Into A Session \n**\n** If it is not already attached to the session object passed as the first\n** argument, this function attaches table zTbl in the same manner as the\n** [sqlite3session_attach()] function. If zTbl does not exist, or if it\n** does not have a primary key, this function is a no-op (but does not return\n** an error).\n**\n** Argument zFromDb must be the name of a database (\"main\", \"temp\" etc.)\n** attached to the same database handle as the session object that contains \n** a table compatible with the table attached to the session by this function.\n** A table is considered compatible if it:\n**\n** <ul>\n**   <li> Has the same name,\n**   <li> Has the same set of columns declared in the same order, and\n**   <li> Has the same PRIMARY KEY definition.\n** </ul>\n**\n** If the tables are not compatible, SQLITE_SCHEMA is returned. If the tables\n** are compatible but do not have any PRIMARY KEY columns, it is not an error\n** but no changes are added to the session object. As with other session\n** APIs, tables without PRIMARY KEYs are simply ignored.\n**\n** This function adds a set of changes to the session object that could be\n** used to update the table in database zFrom (call this the \"from-table\") \n** so that its content is the same as the table attached to the session \n** object (call this the \"to-table\"). Specifically:\n**\n** <ul>\n**   <li> For each row (primary key) that exists in the to-table but not in \n**     the from-table, an INSERT record is added to the session object.\n**\n**   <li> For each row (primary key) that exists in the to-table but not in \n**     the from-table, a DELETE record is added to the session object.\n**\n**   <li> For each row (primary key) that exists in both tables, but features \n**     different non-PK values in each, an UPDATE record is added to the\n**     session.  \n** </ul>\n**\n** To clarify, if this function is called and then a changeset constructed\n** using [sqlite3session_changeset()], then after applying that changeset to \n** database zFrom the contents of the two compatible tables would be \n** identical.\n**\n** It an error if database zFrom does not exist or does not contain the\n** required compatible table.\n**\n** If the operation successful, SQLITE_OK is returned. Otherwise, an SQLite\n** error code. In this case, if argument pzErrMsg is not NULL, *pzErrMsg\n** may be set to point to a buffer containing an English language error \n** message. It is the responsibility of the caller to free this buffer using\n** sqlite3_free().\n*/\nSQLITE_API int sqlite3session_diff(\n  sqlite3_session *pSession,\n  const char *zFromDb,\n  const char *zTbl,\n  char **pzErrMsg\n);\n\n\n/*\n** CAPI3REF: Generate A Patchset From A Session Object\n**\n** The differences between a patchset and a changeset are that:\n**\n** <ul>\n**   <li> DELETE records consist of the primary key fields only. The \n**        original values of other fields are omitted.\n**   <li> The original values of any modified fields are omitted from \n**        UPDATE records.\n** </ul>\n**\n** A patchset blob may be used with up to date versions of all \n** sqlite3changeset_xxx API functions except for sqlite3changeset_invert(), \n** which returns SQLITE_CORRUPT if it is passed a patchset. Similarly,\n** attempting to use a patchset blob with old versions of the\n** sqlite3changeset_xxx APIs also provokes an SQLITE_CORRUPT error. \n**\n** Because the non-primary key \"old.*\" fields are omitted, no \n** SQLITE_CHANGESET_DATA conflicts can be detected or reported if a patchset\n** is passed to the sqlite3changeset_apply() API. Other conflict types work\n** in the same way as for changesets.\n**\n** Changes within a patchset are ordered in the same way as for changesets\n** generated by the sqlite3session_changeset() function (i.e. all changes for\n** a single table are grouped together, tables appear in the order in which\n** they were attached to the session object).\n*/\nSQLITE_API int sqlite3session_patchset(\n  sqlite3_session *pSession,      /* Session object */\n  int *pnPatchset,                /* OUT: Size of buffer at *ppPatchset */\n  void **ppPatchset               /* OUT: Buffer containing patchset */\n);\n\n/*\n** CAPI3REF: Test if a changeset has recorded any changes.\n**\n** Return non-zero if no changes to attached tables have been recorded by \n** the session object passed as the first argument. Otherwise, if one or \n** more changes have been recorded, return zero.\n**\n** Even if this function returns zero, it is possible that calling\n** [sqlite3session_changeset()] on the session handle may still return a\n** changeset that contains no changes. This can happen when a row in \n** an attached table is modified and then later on the original values \n** are restored. However, if this function returns non-zero, then it is\n** guaranteed that a call to sqlite3session_changeset() will return a \n** changeset containing zero changes.\n*/\nSQLITE_API int sqlite3session_isempty(sqlite3_session *pSession);\n\n/*\n** CAPI3REF: Create An Iterator To Traverse A Changeset \n**\n** Create an iterator used to iterate through the contents of a changeset.\n** If successful, *pp is set to point to the iterator handle and SQLITE_OK\n** is returned. Otherwise, if an error occurs, *pp is set to zero and an\n** SQLite error code is returned.\n**\n** The following functions can be used to advance and query a changeset \n** iterator created by this function:\n**\n** <ul>\n**   <li> [sqlite3changeset_next()]\n**   <li> [sqlite3changeset_op()]\n**   <li> [sqlite3changeset_new()]\n**   <li> [sqlite3changeset_old()]\n** </ul>\n**\n** It is the responsibility of the caller to eventually destroy the iterator\n** by passing it to [sqlite3changeset_finalize()]. The buffer containing the\n** changeset (pChangeset) must remain valid until after the iterator is\n** destroyed.\n**\n** Assuming the changeset blob was created by one of the\n** [sqlite3session_changeset()], [sqlite3changeset_concat()] or\n** [sqlite3changeset_invert()] functions, all changes within the changeset \n** that apply to a single table are grouped together. This means that when \n** an application iterates through a changeset using an iterator created by \n** this function, all changes that relate to a single table are visited \n** consecutively. There is no chance that the iterator will visit a change \n** the applies to table X, then one for table Y, and then later on visit \n** another change for table X.\n*/\nSQLITE_API int sqlite3changeset_start(\n  sqlite3_changeset_iter **pp,    /* OUT: New changeset iterator handle */\n  int nChangeset,                 /* Size of changeset blob in bytes */\n  void *pChangeset                /* Pointer to blob containing changeset */\n);\n\n\n/*\n** CAPI3REF: Advance A Changeset Iterator\n**\n** This function may only be used with iterators created by function\n** [sqlite3changeset_start()]. If it is called on an iterator passed to\n** a conflict-handler callback by [sqlite3changeset_apply()], SQLITE_MISUSE\n** is returned and the call has no effect.\n**\n** Immediately after an iterator is created by sqlite3changeset_start(), it\n** does not point to any change in the changeset. Assuming the changeset\n** is not empty, the first call to this function advances the iterator to\n** point to the first change in the changeset. Each subsequent call advances\n** the iterator to point to the next change in the changeset (if any). If\n** no error occurs and the iterator points to a valid change after a call\n** to sqlite3changeset_next() has advanced it, SQLITE_ROW is returned. \n** Otherwise, if all changes in the changeset have already been visited,\n** SQLITE_DONE is returned.\n**\n** If an error occurs, an SQLite error code is returned. Possible error \n** codes include SQLITE_CORRUPT (if the changeset buffer is corrupt) or \n** SQLITE_NOMEM.\n*/\nSQLITE_API int sqlite3changeset_next(sqlite3_changeset_iter *pIter);\n\n/*\n** CAPI3REF: Obtain The Current Operation From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned [SQLITE_ROW]. If this\n** is not the case, this function returns [SQLITE_MISUSE].\n**\n** If argument pzTab is not NULL, then *pzTab is set to point to a\n** nul-terminated utf-8 encoded string containing the name of the table\n** affected by the current change. The buffer remains valid until either\n** sqlite3changeset_next() is called on the iterator or until the \n** conflict-handler function returns. If pnCol is not NULL, then *pnCol is \n** set to the number of columns in the table affected by the change. If\n** pbIncorrect is not NULL, then *pbIndirect is set to true (1) if the change\n** is an indirect change, or false (0) otherwise. See the documentation for\n** [sqlite3session_indirect()] for a description of direct and indirect\n** changes. Finally, if pOp is not NULL, then *pOp is set to one of \n** [SQLITE_INSERT], [SQLITE_DELETE] or [SQLITE_UPDATE], depending on the \n** type of change that the iterator currently points to.\n**\n** If no error occurs, SQLITE_OK is returned. If an error does occur, an\n** SQLite error code is returned. The values of the output variables may not\n** be trusted in this case.\n*/\nSQLITE_API int sqlite3changeset_op(\n  sqlite3_changeset_iter *pIter,  /* Iterator object */\n  const char **pzTab,             /* OUT: Pointer to table name */\n  int *pnCol,                     /* OUT: Number of columns in table */\n  int *pOp,                       /* OUT: SQLITE_INSERT, DELETE or UPDATE */\n  int *pbIndirect                 /* OUT: True for an 'indirect' change */\n);\n\n/*\n** CAPI3REF: Obtain The Primary Key Definition Of A Table\n**\n** For each modified table, a changeset includes the following:\n**\n** <ul>\n**   <li> The number of columns in the table, and\n**   <li> Which of those columns make up the tables PRIMARY KEY.\n** </ul>\n**\n** This function is used to find which columns comprise the PRIMARY KEY of\n** the table modified by the change that iterator pIter currently points to.\n** If successful, *pabPK is set to point to an array of nCol entries, where\n** nCol is the number of columns in the table. Elements of *pabPK are set to\n** 0x01 if the corresponding column is part of the tables primary key, or\n** 0x00 if it is not.\n**\n** If argument pnCol is not NULL, then *pnCol is set to the number of columns\n** in the table.\n**\n** If this function is called when the iterator does not point to a valid\n** entry, SQLITE_MISUSE is returned and the output variables zeroed. Otherwise,\n** SQLITE_OK is returned and the output variables populated as described\n** above.\n*/\nSQLITE_API int sqlite3changeset_pk(\n  sqlite3_changeset_iter *pIter,  /* Iterator object */\n  unsigned char **pabPK,          /* OUT: Array of boolean - true for PK cols */\n  int *pnCol                      /* OUT: Number of entries in output array */\n);\n\n/*\n** CAPI3REF: Obtain old.* Values From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned SQLITE_ROW. \n** Furthermore, it may only be called if the type of change that the iterator\n** currently points to is either [SQLITE_DELETE] or [SQLITE_UPDATE]. Otherwise,\n** this function returns [SQLITE_MISUSE] and sets *ppValue to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the vector of \n** original row values stored as part of the UPDATE or DELETE change and\n** returns SQLITE_OK. The name of the function comes from the fact that this \n** is similar to the \"old.*\" columns available to update or delete triggers.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_old(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: Old value (or NULL pointer) */\n);\n\n/*\n** CAPI3REF: Obtain new.* Values From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned SQLITE_ROW. \n** Furthermore, it may only be called if the type of change that the iterator\n** currently points to is either [SQLITE_UPDATE] or [SQLITE_INSERT]. Otherwise,\n** this function returns [SQLITE_MISUSE] and sets *ppValue to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the vector of \n** new row values stored as part of the UPDATE or INSERT change and\n** returns SQLITE_OK. If the change is an UPDATE and does not include\n** a new value for the requested column, *ppValue is set to NULL and \n** SQLITE_OK returned. The name of the function comes from the fact that \n** this is similar to the \"new.*\" columns available to update or delete \n** triggers.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_new(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: New value (or NULL pointer) */\n);\n\n/*\n** CAPI3REF: Obtain Conflicting Row Values From A Changeset Iterator\n**\n** This function should only be used with iterator objects passed to a\n** conflict-handler callback by [sqlite3changeset_apply()] with either\n** [SQLITE_CHANGESET_DATA] or [SQLITE_CHANGESET_CONFLICT]. If this function\n** is called on any other iterator, [SQLITE_MISUSE] is returned and *ppValue\n** is set to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the \n** \"conflicting row\" associated with the current conflict-handler callback\n** and returns SQLITE_OK.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_conflict(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: Value from conflicting row */\n);\n\n/*\n** CAPI3REF: Determine The Number Of Foreign Key Constraint Violations\n**\n** This function may only be called with an iterator passed to an\n** SQLITE_CHANGESET_FOREIGN_KEY conflict handler callback. In this case\n** it sets the output variable to the total number of known foreign key\n** violations in the destination database and returns SQLITE_OK.\n**\n** In all other cases this function returns SQLITE_MISUSE.\n*/\nSQLITE_API int sqlite3changeset_fk_conflicts(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int *pnOut                      /* OUT: Number of FK violations */\n);\n\n\n/*\n** CAPI3REF: Finalize A Changeset Iterator\n**\n** This function is used to finalize an iterator allocated with\n** [sqlite3changeset_start()].\n**\n** This function should only be called on iterators created using the\n** [sqlite3changeset_start()] function. If an application calls this\n** function with an iterator passed to a conflict-handler by\n** [sqlite3changeset_apply()], [SQLITE_MISUSE] is immediately returned and the\n** call has no effect.\n**\n** If an error was encountered within a call to an sqlite3changeset_xxx()\n** function (for example an [SQLITE_CORRUPT] in [sqlite3changeset_next()] or an \n** [SQLITE_NOMEM] in [sqlite3changeset_new()]) then an error code corresponding\n** to that error is returned by this function. Otherwise, SQLITE_OK is\n** returned. This is to allow the following pattern (pseudo-code):\n**\n**   sqlite3changeset_start();\n**   while( SQLITE_ROW==sqlite3changeset_next() ){\n**     // Do something with change.\n**   }\n**   rc = sqlite3changeset_finalize();\n**   if( rc!=SQLITE_OK ){\n**     // An error has occurred \n**   }\n*/\nSQLITE_API int sqlite3changeset_finalize(sqlite3_changeset_iter *pIter);\n\n/*\n** CAPI3REF: Invert A Changeset\n**\n** This function is used to \"invert\" a changeset object. Applying an inverted\n** changeset to a database reverses the effects of applying the uninverted\n** changeset. Specifically:\n**\n** <ul>\n**   <li> Each DELETE change is changed to an INSERT, and\n**   <li> Each INSERT change is changed to a DELETE, and\n**   <li> For each UPDATE change, the old.* and new.* values are exchanged.\n** </ul>\n**\n** This function does not change the order in which changes appear within\n** the changeset. It merely reverses the sense of each individual change.\n**\n** If successful, a pointer to a buffer containing the inverted changeset\n** is stored in *ppOut, the size of the same buffer is stored in *pnOut, and\n** SQLITE_OK is returned. If an error occurs, both *pnOut and *ppOut are\n** zeroed and an SQLite error code returned.\n**\n** It is the responsibility of the caller to eventually call sqlite3_free()\n** on the *ppOut pointer to free the buffer allocation following a successful \n** call to this function.\n**\n** WARNING/TODO: This function currently assumes that the input is a valid\n** changeset. If it is not, the results are undefined.\n*/\nSQLITE_API int sqlite3changeset_invert(\n  int nIn, const void *pIn,       /* Input changeset */\n  int *pnOut, void **ppOut        /* OUT: Inverse of input */\n);\n\n/*\n** CAPI3REF: Concatenate Two Changeset Objects\n**\n** This function is used to concatenate two changesets, A and B, into a \n** single changeset. The result is a changeset equivalent to applying\n** changeset A followed by changeset B. \n**\n** This function combines the two input changesets using an \n** sqlite3_changegroup object. Calling it produces similar results as the\n** following code fragment:\n**\n**   sqlite3_changegroup *pGrp;\n**   rc = sqlite3_changegroup_new(&pGrp);\n**   if( rc==SQLITE_OK ) rc = sqlite3changegroup_add(pGrp, nA, pA);\n**   if( rc==SQLITE_OK ) rc = sqlite3changegroup_add(pGrp, nB, pB);\n**   if( rc==SQLITE_OK ){\n**     rc = sqlite3changegroup_output(pGrp, pnOut, ppOut);\n**   }else{\n**     *ppOut = 0;\n**     *pnOut = 0;\n**   }\n**\n** Refer to the sqlite3_changegroup documentation below for details.\n*/\nSQLITE_API int sqlite3changeset_concat(\n  int nA,                         /* Number of bytes in buffer pA */\n  void *pA,                       /* Pointer to buffer containing changeset A */\n  int nB,                         /* Number of bytes in buffer pB */\n  void *pB,                       /* Pointer to buffer containing changeset B */\n  int *pnOut,                     /* OUT: Number of bytes in output changeset */\n  void **ppOut                    /* OUT: Buffer containing output changeset */\n);\n\n\n/*\n** CAPI3REF: Changegroup Handle\n*/\ntypedef struct sqlite3_changegroup sqlite3_changegroup;\n\n/*\n** CAPI3REF: Create A New Changegroup Object\n**\n** An sqlite3_changegroup object is used to combine two or more changesets\n** (or patchsets) into a single changeset (or patchset). A single changegroup\n** object may combine changesets or patchsets, but not both. The output is\n** always in the same format as the input.\n**\n** If successful, this function returns SQLITE_OK and populates (*pp) with\n** a pointer to a new sqlite3_changegroup object before returning. The caller\n** should eventually free the returned object using a call to \n** sqlite3changegroup_delete(). If an error occurs, an SQLite error code\n** (i.e. SQLITE_NOMEM) is returned and *pp is set to NULL.\n**\n** The usual usage pattern for an sqlite3_changegroup object is as follows:\n**\n** <ul>\n**   <li> It is created using a call to sqlite3changegroup_new().\n**\n**   <li> Zero or more changesets (or patchsets) are added to the object\n**        by calling sqlite3changegroup_add().\n**\n**   <li> The result of combining all input changesets together is obtained \n**        by the application via a call to sqlite3changegroup_output().\n**\n**   <li> The object is deleted using a call to sqlite3changegroup_delete().\n** </ul>\n**\n** Any number of calls to add() and output() may be made between the calls to\n** new() and delete(), and in any order.\n**\n** As well as the regular sqlite3changegroup_add() and \n** sqlite3changegroup_output() functions, also available are the streaming\n** versions sqlite3changegroup_add_strm() and sqlite3changegroup_output_strm().\n*/\nSQLITE_API int sqlite3changegroup_new(sqlite3_changegroup **pp);\n\n/*\n** CAPI3REF: Add A Changeset To A Changegroup\n**\n** Add all changes within the changeset (or patchset) in buffer pData (size\n** nData bytes) to the changegroup. \n**\n** If the buffer contains a patchset, then all prior calls to this function\n** on the same changegroup object must also have specified patchsets. Or, if\n** the buffer contains a changeset, so must have the earlier calls to this\n** function. Otherwise, SQLITE_ERROR is returned and no changes are added\n** to the changegroup.\n**\n** Rows within the changeset and changegroup are identified by the values in\n** their PRIMARY KEY columns. A change in the changeset is considered to\n** apply to the same row as a change already present in the changegroup if\n** the two rows have the same primary key.\n**\n** Changes to rows that do not already appear in the changegroup are\n** simply copied into it. Or, if both the new changeset and the changegroup\n** contain changes that apply to a single row, the final contents of the\n** changegroup depends on the type of each change, as follows:\n**\n** <table border=1 style=\"margin-left:8ex;margin-right:8ex\">\n**   <tr><th style=\"white-space:pre\">Existing Change  </th>\n**       <th style=\"white-space:pre\">New Change       </th>\n**       <th>Output Change\n**   <tr><td>INSERT <td>INSERT <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>INSERT <td>UPDATE <td>\n**       The INSERT change remains in the changegroup. The values in the \n**       INSERT change are modified as if the row was inserted by the\n**       existing change and then updated according to the new change.\n**   <tr><td>INSERT <td>DELETE <td>\n**       The existing INSERT is removed from the changegroup. The DELETE is\n**       not added.\n**   <tr><td>UPDATE <td>INSERT <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>UPDATE <td>UPDATE <td>\n**       The existing UPDATE remains within the changegroup. It is amended \n**       so that the accompanying values are as if the row was updated once \n**       by the existing change and then again by the new change.\n**   <tr><td>UPDATE <td>DELETE <td>\n**       The existing UPDATE is replaced by the new DELETE within the\n**       changegroup.\n**   <tr><td>DELETE <td>INSERT <td>\n**       If one or more of the column values in the row inserted by the\n**       new change differ from those in the row deleted by the existing \n**       change, the existing DELETE is replaced by an UPDATE within the\n**       changegroup. Otherwise, if the inserted row is exactly the same \n**       as the deleted row, the existing DELETE is simply discarded.\n**   <tr><td>DELETE <td>UPDATE <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>DELETE <td>DELETE <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n** </table>\n**\n** If the new changeset contains changes to a table that is already present\n** in the changegroup, then the number of columns and the position of the\n** primary key columns for the table must be consistent. If this is not the\n** case, this function fails with SQLITE_SCHEMA. If the input changeset\n** appears to be corrupt and the corruption is detected, SQLITE_CORRUPT is\n** returned. Or, if an out-of-memory condition occurs during processing, this\n** function returns SQLITE_NOMEM. In all cases, if an error occurs the\n** final contents of the changegroup is undefined.\n**\n** If no error occurs, SQLITE_OK is returned.\n*/\nSQLITE_API int sqlite3changegroup_add(sqlite3_changegroup*, int nData, void *pData);\n\n/*\n** CAPI3REF: Obtain A Composite Changeset From A Changegroup\n**\n** Obtain a buffer containing a changeset (or patchset) representing the\n** current contents of the changegroup. If the inputs to the changegroup\n** were themselves changesets, the output is a changeset. Or, if the\n** inputs were patchsets, the output is also a patchset.\n**\n** As with the output of the sqlite3session_changeset() and\n** sqlite3session_patchset() functions, all changes related to a single\n** table are grouped together in the output of this function. Tables appear\n** in the same order as for the very first changeset added to the changegroup.\n** If the second or subsequent changesets added to the changegroup contain\n** changes for tables that do not appear in the first changeset, they are\n** appended onto the end of the output changeset, again in the order in\n** which they are first encountered.\n**\n** If an error occurs, an SQLite error code is returned and the output\n** variables (*pnData) and (*ppData) are set to 0. Otherwise, SQLITE_OK\n** is returned and the output variables are set to the size of and a \n** pointer to the output buffer, respectively. In this case it is the\n** responsibility of the caller to eventually free the buffer using a\n** call to sqlite3_free().\n*/\nSQLITE_API int sqlite3changegroup_output(\n  sqlite3_changegroup*,\n  int *pnData,                    /* OUT: Size of output buffer in bytes */\n  void **ppData                   /* OUT: Pointer to output buffer */\n);\n\n/*\n** CAPI3REF: Delete A Changegroup Object\n*/\nSQLITE_API void sqlite3changegroup_delete(sqlite3_changegroup*);\n\n/*\n** CAPI3REF: Apply A Changeset To A Database\n**\n** Apply a changeset to a database. This function attempts to update the\n** \"main\" database attached to handle db with the changes found in the\n** changeset passed via the second and third arguments.\n**\n** The fourth argument (xFilter) passed to this function is the \"filter\n** callback\". If it is not NULL, then for each table affected by at least one\n** change in the changeset, the filter callback is invoked with\n** the table name as the second argument, and a copy of the context pointer\n** passed as the sixth argument to this function as the first. If the \"filter\n** callback\" returns zero, then no attempt is made to apply any changes to \n** the table. Otherwise, if the return value is non-zero or the xFilter\n** argument to this function is NULL, all changes related to the table are\n** attempted.\n**\n** For each table that is not excluded by the filter callback, this function \n** tests that the target database contains a compatible table. A table is \n** considered compatible if all of the following are true:\n**\n** <ul>\n**   <li> The table has the same name as the name recorded in the \n**        changeset, and\n**   <li> The table has at least as many columns as recorded in the \n**        changeset, and\n**   <li> The table has primary key columns in the same position as \n**        recorded in the changeset.\n** </ul>\n**\n** If there is no compatible table, it is not an error, but none of the\n** changes associated with the table are applied. A warning message is issued\n** via the sqlite3_log() mechanism with the error code SQLITE_SCHEMA. At most\n** one such warning is issued for each table in the changeset.\n**\n** For each change for which there is a compatible table, an attempt is made \n** to modify the table contents according to the UPDATE, INSERT or DELETE \n** change. If a change cannot be applied cleanly, the conflict handler \n** function passed as the fifth argument to sqlite3changeset_apply() may be \n** invoked. A description of exactly when the conflict handler is invoked for \n** each type of change is below.\n**\n** Unlike the xFilter argument, xConflict may not be passed NULL. The results\n** of passing anything other than a valid function pointer as the xConflict\n** argument are undefined.\n**\n** Each time the conflict handler function is invoked, it must return one\n** of [SQLITE_CHANGESET_OMIT], [SQLITE_CHANGESET_ABORT] or \n** [SQLITE_CHANGESET_REPLACE]. SQLITE_CHANGESET_REPLACE may only be returned\n** if the second argument passed to the conflict handler is either\n** SQLITE_CHANGESET_DATA or SQLITE_CHANGESET_CONFLICT. If the conflict-handler\n** returns an illegal value, any changes already made are rolled back and\n** the call to sqlite3changeset_apply() returns SQLITE_MISUSE. Different \n** actions are taken by sqlite3changeset_apply() depending on the value\n** returned by each invocation of the conflict-handler function. Refer to\n** the documentation for the three \n** [SQLITE_CHANGESET_OMIT|available return values] for details.\n**\n** <dl>\n** <dt>DELETE Changes<dd>\n**   For each DELETE change, this function checks if the target database \n**   contains a row with the same primary key value (or values) as the \n**   original row values stored in the changeset. If it does, and the values \n**   stored in all non-primary key columns also match the values stored in \n**   the changeset the row is deleted from the target database.\n**\n**   If a row with matching primary key values is found, but one or more of\n**   the non-primary key fields contains a value different from the original\n**   row value stored in the changeset, the conflict-handler function is\n**   invoked with [SQLITE_CHANGESET_DATA] as the second argument. If the\n**   database table has more columns than are recorded in the changeset,\n**   only the values of those non-primary key fields are compared against\n**   the current database contents - any trailing database table columns\n**   are ignored.\n**\n**   If no row with matching primary key values is found in the database,\n**   the conflict-handler function is invoked with [SQLITE_CHANGESET_NOTFOUND]\n**   passed as the second argument.\n**\n**   If the DELETE operation is attempted, but SQLite returns SQLITE_CONSTRAINT\n**   (which can only happen if a foreign key constraint is violated), the\n**   conflict-handler function is invoked with [SQLITE_CHANGESET_CONSTRAINT]\n**   passed as the second argument. This includes the case where the DELETE\n**   operation is attempted because an earlier call to the conflict handler\n**   function returned [SQLITE_CHANGESET_REPLACE].\n**\n** <dt>INSERT Changes<dd>\n**   For each INSERT change, an attempt is made to insert the new row into\n**   the database. If the changeset row contains fewer fields than the\n**   database table, the trailing fields are populated with their default\n**   values.\n**\n**   If the attempt to insert the row fails because the database already \n**   contains a row with the same primary key values, the conflict handler\n**   function is invoked with the second argument set to \n**   [SQLITE_CHANGESET_CONFLICT].\n**\n**   If the attempt to insert the row fails because of some other constraint\n**   violation (e.g. NOT NULL or UNIQUE), the conflict handler function is \n**   invoked with the second argument set to [SQLITE_CHANGESET_CONSTRAINT].\n**   This includes the case where the INSERT operation is re-attempted because \n**   an earlier call to the conflict handler function returned \n**   [SQLITE_CHANGESET_REPLACE].\n**\n** <dt>UPDATE Changes<dd>\n**   For each UPDATE change, this function checks if the target database \n**   contains a row with the same primary key value (or values) as the \n**   original row values stored in the changeset. If it does, and the values \n**   stored in all modified non-primary key columns also match the values\n**   stored in the changeset the row is updated within the target database.\n**\n**   If a row with matching primary key values is found, but one or more of\n**   the modified non-primary key fields contains a value different from an\n**   original row value stored in the changeset, the conflict-handler function\n**   is invoked with [SQLITE_CHANGESET_DATA] as the second argument. Since\n**   UPDATE changes only contain values for non-primary key fields that are\n**   to be modified, only those fields need to match the original values to\n**   avoid the SQLITE_CHANGESET_DATA conflict-handler callback.\n**\n**   If no row with matching primary key values is found in the database,\n**   the conflict-handler function is invoked with [SQLITE_CHANGESET_NOTFOUND]\n**   passed as the second argument.\n**\n**   If the UPDATE operation is attempted, but SQLite returns \n**   SQLITE_CONSTRAINT, the conflict-handler function is invoked with \n**   [SQLITE_CHANGESET_CONSTRAINT] passed as the second argument.\n**   This includes the case where the UPDATE operation is attempted after \n**   an earlier call to the conflict handler function returned\n**   [SQLITE_CHANGESET_REPLACE].  \n** </dl>\n**\n** It is safe to execute SQL statements, including those that write to the\n** table that the callback related to, from within the xConflict callback.\n** This can be used to further customize the applications conflict\n** resolution strategy.\n**\n** All changes made by this function are enclosed in a savepoint transaction.\n** If any other error (aside from a constraint failure when attempting to\n** write to the target database) occurs, then the savepoint transaction is\n** rolled back, restoring the target database to its original state, and an \n** SQLite error code returned.\n*/\nSQLITE_API int sqlite3changeset_apply(\n  sqlite3 *db,                    /* Apply change to \"main\" db of this handle */\n  int nChangeset,                 /* Size of changeset in bytes */\n  void *pChangeset,               /* Changeset blob */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    const char *zTab              /* Table name */\n  ),\n  int(*xConflict)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    int eConflict,                /* DATA, MISSING, CONFLICT, CONSTRAINT */\n    sqlite3_changeset_iter *p     /* Handle describing change and conflict */\n  ),\n  void *pCtx                      /* First argument passed to xConflict */\n);\n\n/* \n** CAPI3REF: Constants Passed To The Conflict Handler\n**\n** Values that may be passed as the second argument to a conflict-handler.\n**\n** <dl>\n** <dt>SQLITE_CHANGESET_DATA<dd>\n**   The conflict handler is invoked with CHANGESET_DATA as the second argument\n**   when processing a DELETE or UPDATE change if a row with the required\n**   PRIMARY KEY fields is present in the database, but one or more other \n**   (non primary-key) fields modified by the update do not contain the \n**   expected \"before\" values.\n** \n**   The conflicting row, in this case, is the database row with the matching\n**   primary key.\n** \n** <dt>SQLITE_CHANGESET_NOTFOUND<dd>\n**   The conflict handler is invoked with CHANGESET_NOTFOUND as the second\n**   argument when processing a DELETE or UPDATE change if a row with the\n**   required PRIMARY KEY fields is not present in the database.\n** \n**   There is no conflicting row in this case. The results of invoking the\n**   sqlite3changeset_conflict() API are undefined.\n** \n** <dt>SQLITE_CHANGESET_CONFLICT<dd>\n**   CHANGESET_CONFLICT is passed as the second argument to the conflict\n**   handler while processing an INSERT change if the operation would result \n**   in duplicate primary key values.\n** \n**   The conflicting row in this case is the database row with the matching\n**   primary key.\n**\n** <dt>SQLITE_CHANGESET_FOREIGN_KEY<dd>\n**   If foreign key handling is enabled, and applying a changeset leaves the\n**   database in a state containing foreign key violations, the conflict \n**   handler is invoked with CHANGESET_FOREIGN_KEY as the second argument\n**   exactly once before the changeset is committed. If the conflict handler\n**   returns CHANGESET_OMIT, the changes, including those that caused the\n**   foreign key constraint violation, are committed. Or, if it returns\n**   CHANGESET_ABORT, the changeset is rolled back.\n**\n**   No current or conflicting row information is provided. The only function\n**   it is possible to call on the supplied sqlite3_changeset_iter handle\n**   is sqlite3changeset_fk_conflicts().\n** \n** <dt>SQLITE_CHANGESET_CONSTRAINT<dd>\n**   If any other constraint violation occurs while applying a change (i.e. \n**   a UNIQUE, CHECK or NOT NULL constraint), the conflict handler is \n**   invoked with CHANGESET_CONSTRAINT as the second argument.\n** \n**   There is no conflicting row in this case. The results of invoking the\n**   sqlite3changeset_conflict() API are undefined.\n**\n** </dl>\n*/\n#define SQLITE_CHANGESET_DATA        1\n#define SQLITE_CHANGESET_NOTFOUND    2\n#define SQLITE_CHANGESET_CONFLICT    3\n#define SQLITE_CHANGESET_CONSTRAINT  4\n#define SQLITE_CHANGESET_FOREIGN_KEY 5\n\n/* \n** CAPI3REF: Constants Returned By The Conflict Handler\n**\n** A conflict handler callback must return one of the following three values.\n**\n** <dl>\n** <dt>SQLITE_CHANGESET_OMIT<dd>\n**   If a conflict handler returns this value no special action is taken. The\n**   change that caused the conflict is not applied. The session module \n**   continues to the next change in the changeset.\n**\n** <dt>SQLITE_CHANGESET_REPLACE<dd>\n**   This value may only be returned if the second argument to the conflict\n**   handler was SQLITE_CHANGESET_DATA or SQLITE_CHANGESET_CONFLICT. If this\n**   is not the case, any changes applied so far are rolled back and the \n**   call to sqlite3changeset_apply() returns SQLITE_MISUSE.\n**\n**   If CHANGESET_REPLACE is returned by an SQLITE_CHANGESET_DATA conflict\n**   handler, then the conflicting row is either updated or deleted, depending\n**   on the type of change.\n**\n**   If CHANGESET_REPLACE is returned by an SQLITE_CHANGESET_CONFLICT conflict\n**   handler, then the conflicting row is removed from the database and a\n**   second attempt to apply the change is made. If this second attempt fails,\n**   the original row is restored to the database before continuing.\n**\n** <dt>SQLITE_CHANGESET_ABORT<dd>\n**   If this value is returned, any changes applied so far are rolled back \n**   and the call to sqlite3changeset_apply() returns SQLITE_ABORT.\n** </dl>\n*/\n#define SQLITE_CHANGESET_OMIT       0\n#define SQLITE_CHANGESET_REPLACE    1\n#define SQLITE_CHANGESET_ABORT      2\n\n/*\n** CAPI3REF: Streaming Versions of API functions.\n**\n** The six streaming API xxx_strm() functions serve similar purposes to the \n** corresponding non-streaming API functions:\n**\n** <table border=1 style=\"margin-left:8ex;margin-right:8ex\">\n**   <tr><th>Streaming function<th>Non-streaming equivalent</th>\n**   <tr><td>sqlite3changeset_apply_strm<td>[sqlite3changeset_apply] \n**   <tr><td>sqlite3changeset_concat_strm<td>[sqlite3changeset_concat] \n**   <tr><td>sqlite3changeset_invert_strm<td>[sqlite3changeset_invert] \n**   <tr><td>sqlite3changeset_start_strm<td>[sqlite3changeset_start] \n**   <tr><td>sqlite3session_changeset_strm<td>[sqlite3session_changeset] \n**   <tr><td>sqlite3session_patchset_strm<td>[sqlite3session_patchset] \n** </table>\n**\n** Non-streaming functions that accept changesets (or patchsets) as input\n** require that the entire changeset be stored in a single buffer in memory. \n** Similarly, those that return a changeset or patchset do so by returning \n** a pointer to a single large buffer allocated using sqlite3_malloc(). \n** Normally this is convenient. However, if an application running in a \n** low-memory environment is required to handle very large changesets, the\n** large contiguous memory allocations required can become onerous.\n**\n** In order to avoid this problem, instead of a single large buffer, input\n** is passed to a streaming API functions by way of a callback function that\n** the sessions module invokes to incrementally request input data as it is\n** required. In all cases, a pair of API function parameters such as\n**\n**  <pre>\n**  &nbsp;     int nChangeset,\n**  &nbsp;     void *pChangeset,\n**  </pre>\n**\n** Is replaced by:\n**\n**  <pre>\n**  &nbsp;     int (*xInput)(void *pIn, void *pData, int *pnData),\n**  &nbsp;     void *pIn,\n**  </pre>\n**\n** Each time the xInput callback is invoked by the sessions module, the first\n** argument passed is a copy of the supplied pIn context pointer. The second \n** argument, pData, points to a buffer (*pnData) bytes in size. Assuming no \n** error occurs the xInput method should copy up to (*pnData) bytes of data \n** into the buffer and set (*pnData) to the actual number of bytes copied \n** before returning SQLITE_OK. If the input is completely exhausted, (*pnData) \n** should be set to zero to indicate this. Or, if an error occurs, an SQLite \n** error code should be returned. In all cases, if an xInput callback returns\n** an error, all processing is abandoned and the streaming API function\n** returns a copy of the error code to the caller.\n**\n** In the case of sqlite3changeset_start_strm(), the xInput callback may be\n** invoked by the sessions module at any point during the lifetime of the\n** iterator. If such an xInput callback returns an error, the iterator enters\n** an error state, whereby all subsequent calls to iterator functions \n** immediately fail with the same error code as returned by xInput.\n**\n** Similarly, streaming API functions that return changesets (or patchsets)\n** return them in chunks by way of a callback function instead of via a\n** pointer to a single large buffer. In this case, a pair of parameters such\n** as:\n**\n**  <pre>\n**  &nbsp;     int *pnChangeset,\n**  &nbsp;     void **ppChangeset,\n**  </pre>\n**\n** Is replaced by:\n**\n**  <pre>\n**  &nbsp;     int (*xOutput)(void *pOut, const void *pData, int nData),\n**  &nbsp;     void *pOut\n**  </pre>\n**\n** The xOutput callback is invoked zero or more times to return data to\n** the application. The first parameter passed to each call is a copy of the\n** pOut pointer supplied by the application. The second parameter, pData,\n** points to a buffer nData bytes in size containing the chunk of output\n** data being returned. If the xOutput callback successfully processes the\n** supplied data, it should return SQLITE_OK to indicate success. Otherwise,\n** it should return some other SQLite error code. In this case processing\n** is immediately abandoned and the streaming API function returns a copy\n** of the xOutput error code to the application.\n**\n** The sessions module never invokes an xOutput callback with the third \n** parameter set to a value less than or equal to zero. Other than this,\n** no guarantees are made as to the size of the chunks of data returned.\n*/\nSQLITE_API int sqlite3changeset_apply_strm(\n  sqlite3 *db,                    /* Apply change to \"main\" db of this handle */\n  int (*xInput)(void *pIn, void *pData, int *pnData), /* Input function */\n  void *pIn,                                          /* First arg for xInput */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    const char *zTab              /* Table name */\n  ),\n  int(*xConflict)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    int eConflict,                /* DATA, MISSING, CONFLICT, CONSTRAINT */\n    sqlite3_changeset_iter *p     /* Handle describing change and conflict */\n  ),\n  void *pCtx                      /* First argument passed to xConflict */\n);\nSQLITE_API int sqlite3changeset_concat_strm(\n  int (*xInputA)(void *pIn, void *pData, int *pnData),\n  void *pInA,\n  int (*xInputB)(void *pIn, void *pData, int *pnData),\n  void *pInB,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changeset_invert_strm(\n  int (*xInput)(void *pIn, void *pData, int *pnData),\n  void *pIn,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changeset_start_strm(\n  sqlite3_changeset_iter **pp,\n  int (*xInput)(void *pIn, void *pData, int *pnData),\n  void *pIn\n);\nSQLITE_API int sqlite3session_changeset_strm(\n  sqlite3_session *pSession,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3session_patchset_strm(\n  sqlite3_session *pSession,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changegroup_add_strm(sqlite3_changegroup*, \n    int (*xInput)(void *pIn, void *pData, int *pnData),\n    void *pIn\n);\nSQLITE_API int sqlite3changegroup_output_strm(sqlite3_changegroup*,\n    int (*xOutput)(void *pOut, const void *pData, int nData), \n    void *pOut\n);\n\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\n}\n#endif\n\n#endif  /* !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION) */\n\n/******** End of sqlite3session.h *********/\n/******** Begin file fts5.h *********/\n/*\n** 2014 May 31\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n******************************************************************************\n**\n** Interfaces to extend FTS5. Using the interfaces defined in this file, \n** FTS5 may be extended with:\n**\n**     * custom tokenizers, and\n**     * custom auxiliary functions.\n*/\n\n\n#ifndef _FTS5_H\n#define _FTS5_H\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/*************************************************************************\n** CUSTOM AUXILIARY FUNCTIONS\n**\n** Virtual table implementations may overload SQL functions by implementing\n** the sqlite3_module.xFindFunction() method.\n*/\n\ntypedef struct Fts5ExtensionApi Fts5ExtensionApi;\ntypedef struct Fts5Context Fts5Context;\ntypedef struct Fts5PhraseIter Fts5PhraseIter;\n\ntypedef void (*fts5_extension_function)(\n  const Fts5ExtensionApi *pApi,   /* API offered by current FTS version */\n  Fts5Context *pFts,              /* First arg to pass to pApi functions */\n  sqlite3_context *pCtx,          /* Context for returning result/error */\n  int nVal,                       /* Number of values in apVal[] array */\n  sqlite3_value **apVal           /* Array of trailing arguments */\n);\n\nstruct Fts5PhraseIter {\n  const unsigned char *a;\n  const unsigned char *b;\n};\n\n/*\n** EXTENSION API FUNCTIONS\n**\n** xUserData(pFts):\n**   Return a copy of the context pointer the extension function was \n**   registered with.\n**\n** xColumnTotalSize(pFts, iCol, pnToken):\n**   If parameter iCol is less than zero, set output variable *pnToken\n**   to the total number of tokens in the FTS5 table. Or, if iCol is\n**   non-negative but less than the number of columns in the table, return\n**   the total number of tokens in column iCol, considering all rows in \n**   the FTS5 table.\n**\n**   If parameter iCol is greater than or equal to the number of columns\n**   in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.\n**   an OOM condition or IO error), an appropriate SQLite error code is \n**   returned.\n**\n** xColumnCount(pFts):\n**   Return the number of columns in the table.\n**\n** xColumnSize(pFts, iCol, pnToken):\n**   If parameter iCol is less than zero, set output variable *pnToken\n**   to the total number of tokens in the current row. Or, if iCol is\n**   non-negative but less than the number of columns in the table, set\n**   *pnToken to the number of tokens in column iCol of the current row.\n**\n**   If parameter iCol is greater than or equal to the number of columns\n**   in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.\n**   an OOM condition or IO error), an appropriate SQLite error code is \n**   returned.\n**\n**   This function may be quite inefficient if used with an FTS5 table\n**   created with the \"columnsize=0\" option.\n**\n** xColumnText:\n**   This function attempts to retrieve the text of column iCol of the\n**   current document. If successful, (*pz) is set to point to a buffer\n**   containing the text in utf-8 encoding, (*pn) is set to the size in bytes\n**   (not characters) of the buffer and SQLITE_OK is returned. Otherwise,\n**   if an error occurs, an SQLite error code is returned and the final values\n**   of (*pz) and (*pn) are undefined.\n**\n** xPhraseCount:\n**   Returns the number of phrases in the current query expression.\n**\n** xPhraseSize:\n**   Returns the number of tokens in phrase iPhrase of the query. Phrases\n**   are numbered starting from zero.\n**\n** xInstCount:\n**   Set *pnInst to the total number of occurrences of all phrases within\n**   the query within the current row. Return SQLITE_OK if successful, or\n**   an error code (i.e. SQLITE_NOMEM) if an error occurs.\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. If the FTS5 table is created \n**   with either \"detail=none\" or \"detail=column\" and \"content=\" option \n**   (i.e. if it is a contentless table), then this API always returns 0.\n**\n** xInst:\n**   Query for the details of phrase match iIdx within the current row.\n**   Phrase matches are numbered starting from zero, so the iIdx argument\n**   should be greater than or equal to zero and smaller than the value\n**   output by xInstCount().\n**\n**   Usually, output parameter *piPhrase is set to the phrase number, *piCol\n**   to the column in which it occurs and *piOff the token offset of the\n**   first token of the phrase. The exception is if the table was created\n**   with the offsets=0 option specified. In this case *piOff is always\n**   set to -1.\n**\n**   Returns SQLITE_OK if successful, or an error code (i.e. SQLITE_NOMEM) \n**   if an error occurs.\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. \n**\n** xRowid:\n**   Returns the rowid of the current row.\n**\n** xTokenize:\n**   Tokenize text using the tokenizer belonging to the FTS5 table.\n**\n** xQueryPhrase(pFts5, iPhrase, pUserData, xCallback):\n**   This API function is used to query the FTS table for phrase iPhrase\n**   of the current query. Specifically, a query equivalent to:\n**\n**       ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid\n**\n**   with $p set to a phrase equivalent to the phrase iPhrase of the\n**   current query is executed. Any column filter that applies to\n**   phrase iPhrase of the current query is included in $p. For each \n**   row visited, the callback function passed as the fourth argument \n**   is invoked. The context and API objects passed to the callback \n**   function may be used to access the properties of each matched row.\n**   Invoking Api.xUserData() returns a copy of the pointer passed as \n**   the third argument to pUserData.\n**\n**   If the callback function returns any value other than SQLITE_OK, the\n**   query is abandoned and the xQueryPhrase function returns immediately.\n**   If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK.\n**   Otherwise, the error code is propagated upwards.\n**\n**   If the query runs to completion without incident, SQLITE_OK is returned.\n**   Or, if some error occurs before the query completes or is aborted by\n**   the callback, an SQLite error code is returned.\n**\n**\n** xSetAuxdata(pFts5, pAux, xDelete)\n**\n**   Save the pointer passed as the second argument as the extension functions \n**   \"auxiliary data\". The pointer may then be retrieved by the current or any\n**   future invocation of the same fts5 extension function made as part of\n**   of the same MATCH query using the xGetAuxdata() API.\n**\n**   Each extension function is allocated a single auxiliary data slot for\n**   each FTS query (MATCH expression). If the extension function is invoked \n**   more than once for a single FTS query, then all invocations share a \n**   single auxiliary data context.\n**\n**   If there is already an auxiliary data pointer when this function is\n**   invoked, then it is replaced by the new pointer. If an xDelete callback\n**   was specified along with the original pointer, it is invoked at this\n**   point.\n**\n**   The xDelete callback, if one is specified, is also invoked on the\n**   auxiliary data pointer after the FTS5 query has finished.\n**\n**   If an error (e.g. an OOM condition) occurs within this function, an\n**   the auxiliary data is set to NULL and an error code returned. If the\n**   xDelete parameter was not NULL, it is invoked on the auxiliary data\n**   pointer before returning.\n**\n**\n** xGetAuxdata(pFts5, bClear)\n**\n**   Returns the current auxiliary data pointer for the fts5 extension \n**   function. See the xSetAuxdata() method for details.\n**\n**   If the bClear argument is non-zero, then the auxiliary data is cleared\n**   (set to NULL) before this function returns. In this case the xDelete,\n**   if any, is not invoked.\n**\n**\n** xRowCount(pFts5, pnRow)\n**\n**   This function is used to retrieve the total number of rows in the table.\n**   In other words, the same value that would be returned by:\n**\n**        SELECT count(*) FROM ftstable;\n**\n** xPhraseFirst()\n**   This function is used, along with type Fts5PhraseIter and the xPhraseNext\n**   method, to iterate through all instances of a single query phrase within\n**   the current row. This is the same information as is accessible via the\n**   xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient\n**   to use, this API may be faster under some circumstances. To iterate \n**   through instances of phrase iPhrase, use the following code:\n**\n**       Fts5PhraseIter iter;\n**       int iCol, iOff;\n**       for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff);\n**           iCol>=0;\n**           pApi->xPhraseNext(pFts, &iter, &iCol, &iOff)\n**       ){\n**         // An instance of phrase iPhrase at offset iOff of column iCol\n**       }\n**\n**   The Fts5PhraseIter structure is defined above. Applications should not\n**   modify this structure directly - it should only be used as shown above\n**   with the xPhraseFirst() and xPhraseNext() API methods (and by\n**   xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below).\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. If the FTS5 table is created \n**   with either \"detail=none\" or \"detail=column\" and \"content=\" option \n**   (i.e. if it is a contentless table), then this API always iterates\n**   through an empty set (all calls to xPhraseFirst() set iCol to -1).\n**\n** xPhraseNext()\n**   See xPhraseFirst above.\n**\n** xPhraseFirstColumn()\n**   This function and xPhraseNextColumn() are similar to the xPhraseFirst()\n**   and xPhraseNext() APIs described above. The difference is that instead\n**   of iterating through all instances of a phrase in the current row, these\n**   APIs are used to iterate through the set of columns in the current row\n**   that contain one or more instances of a specified phrase. For example:\n**\n**       Fts5PhraseIter iter;\n**       int iCol;\n**       for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol);\n**           iCol>=0;\n**           pApi->xPhraseNextColumn(pFts, &iter, &iCol)\n**       ){\n**         // Column iCol contains at least one instance of phrase iPhrase\n**       }\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" option. If the FTS5 table is created with either \n**   \"detail=none\" \"content=\" option (i.e. if it is a contentless table), \n**   then this API always iterates through an empty set (all calls to \n**   xPhraseFirstColumn() set iCol to -1).\n**\n**   The information accessed using this API and its companion\n**   xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext\n**   (or xInst/xInstCount). The chief advantage of this API is that it is\n**   significantly more efficient than those alternatives when used with\n**   \"detail=column\" tables.  \n**\n** xPhraseNextColumn()\n**   See xPhraseFirstColumn above.\n*/\nstruct Fts5ExtensionApi {\n  int iVersion;                   /* Currently always set to 3 */\n\n  void *(*xUserData)(Fts5Context*);\n\n  int (*xColumnCount)(Fts5Context*);\n  int (*xRowCount)(Fts5Context*, sqlite3_int64 *pnRow);\n  int (*xColumnTotalSize)(Fts5Context*, int iCol, sqlite3_int64 *pnToken);\n\n  int (*xTokenize)(Fts5Context*, \n    const char *pText, int nText, /* Text to tokenize */\n    void *pCtx,                   /* Context passed to xToken() */\n    int (*xToken)(void*, int, const char*, int, int, int)       /* Callback */\n  );\n\n  int (*xPhraseCount)(Fts5Context*);\n  int (*xPhraseSize)(Fts5Context*, int iPhrase);\n\n  int (*xInstCount)(Fts5Context*, int *pnInst);\n  int (*xInst)(Fts5Context*, int iIdx, int *piPhrase, int *piCol, int *piOff);\n\n  sqlite3_int64 (*xRowid)(Fts5Context*);\n  int (*xColumnText)(Fts5Context*, int iCol, const char **pz, int *pn);\n  int (*xColumnSize)(Fts5Context*, int iCol, int *pnToken);\n\n  int (*xQueryPhrase)(Fts5Context*, int iPhrase, void *pUserData,\n    int(*)(const Fts5ExtensionApi*,Fts5Context*,void*)\n  );\n  int (*xSetAuxdata)(Fts5Context*, void *pAux, void(*xDelete)(void*));\n  void *(*xGetAuxdata)(Fts5Context*, int bClear);\n\n  int (*xPhraseFirst)(Fts5Context*, int iPhrase, Fts5PhraseIter*, int*, int*);\n  void (*xPhraseNext)(Fts5Context*, Fts5PhraseIter*, int *piCol, int *piOff);\n\n  int (*xPhraseFirstColumn)(Fts5Context*, int iPhrase, Fts5PhraseIter*, int*);\n  void (*xPhraseNextColumn)(Fts5Context*, Fts5PhraseIter*, int *piCol);\n};\n\n/* \n** CUSTOM AUXILIARY FUNCTIONS\n*************************************************************************/\n\n/*************************************************************************\n** CUSTOM TOKENIZERS\n**\n** Applications may also register custom tokenizer types. A tokenizer \n** is registered by providing fts5 with a populated instance of the \n** following structure. All structure methods must be defined, setting\n** any member of the fts5_tokenizer struct to NULL leads to undefined\n** behaviour. The structure methods are expected to function as follows:\n**\n** xCreate:\n**   This function is used to allocate and initialize a tokenizer instance.\n**   A tokenizer instance is required to actually tokenize text.\n**\n**   The first argument passed to this function is a copy of the (void*)\n**   pointer provided by the application when the fts5_tokenizer object\n**   was registered with FTS5 (the third argument to xCreateTokenizer()). \n**   The second and third arguments are an array of nul-terminated strings\n**   containing the tokenizer arguments, if any, specified following the\n**   tokenizer name as part of the CREATE VIRTUAL TABLE statement used\n**   to create the FTS5 table.\n**\n**   The final argument is an output variable. If successful, (*ppOut) \n**   should be set to point to the new tokenizer handle and SQLITE_OK\n**   returned. If an error occurs, some value other than SQLITE_OK should\n**   be returned. In this case, fts5 assumes that the final value of *ppOut \n**   is undefined.\n**\n** xDelete:\n**   This function is invoked to delete a tokenizer handle previously\n**   allocated using xCreate(). Fts5 guarantees that this function will\n**   be invoked exactly once for each successful call to xCreate().\n**\n** xTokenize:\n**   This function is expected to tokenize the nText byte string indicated \n**   by argument pText. pText may or may not be nul-terminated. The first\n**   argument passed to this function is a pointer to an Fts5Tokenizer object\n**   returned by an earlier call to xCreate().\n**\n**   The second argument indicates the reason that FTS5 is requesting\n**   tokenization of the supplied text. This is always one of the following\n**   four values:\n**\n**   <ul><li> <b>FTS5_TOKENIZE_DOCUMENT</b> - A document is being inserted into\n**            or removed from the FTS table. The tokenizer is being invoked to\n**            determine the set of tokens to add to (or delete from) the\n**            FTS index.\n**\n**       <li> <b>FTS5_TOKENIZE_QUERY</b> - A MATCH query is being executed \n**            against the FTS index. The tokenizer is being called to tokenize \n**            a bareword or quoted string specified as part of the query.\n**\n**       <li> <b>(FTS5_TOKENIZE_QUERY | FTS5_TOKENIZE_PREFIX)</b> - Same as\n**            FTS5_TOKENIZE_QUERY, except that the bareword or quoted string is\n**            followed by a \"*\" character, indicating that the last token\n**            returned by the tokenizer will be treated as a token prefix.\n**\n**       <li> <b>FTS5_TOKENIZE_AUX</b> - The tokenizer is being invoked to \n**            satisfy an fts5_api.xTokenize() request made by an auxiliary\n**            function. Or an fts5_api.xColumnSize() request made by the same\n**            on a columnsize=0 database.  \n**   </ul>\n**\n**   For each token in the input string, the supplied callback xToken() must\n**   be invoked. The first argument to it should be a copy of the pointer\n**   passed as the second argument to xTokenize(). The third and fourth\n**   arguments are a pointer to a buffer containing the token text, and the\n**   size of the token in bytes. The 4th and 5th arguments are the byte offsets\n**   of the first byte of and first byte immediately following the text from\n**   which the token is derived within the input.\n**\n**   The second argument passed to the xToken() callback (\"tflags\") should\n**   normally be set to 0. The exception is if the tokenizer supports \n**   synonyms. In this case see the discussion below for details.\n**\n**   FTS5 assumes the xToken() callback is invoked for each token in the \n**   order that they occur within the input text.\n**\n**   If an xToken() callback returns any value other than SQLITE_OK, then\n**   the tokenization should be abandoned and the xTokenize() method should\n**   immediately return a copy of the xToken() return value. Or, if the\n**   input buffer is exhausted, xTokenize() should return SQLITE_OK. Finally,\n**   if an error occurs with the xTokenize() implementation itself, it\n**   may abandon the tokenization and return any error code other than\n**   SQLITE_OK or SQLITE_DONE.\n**\n** SYNONYM SUPPORT\n**\n**   Custom tokenizers may also support synonyms. Consider a case in which a\n**   user wishes to query for a phrase such as \"first place\". Using the \n**   built-in tokenizers, the FTS5 query 'first + place' will match instances\n**   of \"first place\" within the document set, but not alternative forms\n**   such as \"1st place\". In some applications, it would be better to match\n**   all instances of \"first place\" or \"1st place\" regardless of which form\n**   the user specified in the MATCH query text.\n**\n**   There are several ways to approach this in FTS5:\n**\n**   <ol><li> By mapping all synonyms to a single token. In this case, the \n**            In the above example, this means that the tokenizer returns the\n**            same token for inputs \"first\" and \"1st\". Say that token is in\n**            fact \"first\", so that when the user inserts the document \"I won\n**            1st place\" entries are added to the index for tokens \"i\", \"won\",\n**            \"first\" and \"place\". If the user then queries for '1st + place',\n**            the tokenizer substitutes \"first\" for \"1st\" and the query works\n**            as expected.\n**\n**       <li> By adding multiple synonyms for a single term to the FTS index.\n**            In this case, when tokenizing query text, the tokenizer may \n**            provide multiple synonyms for a single term within the document.\n**            FTS5 then queries the index for each synonym individually. For\n**            example, faced with the query:\n**\n**   <codeblock>\n**     ... MATCH 'first place'</codeblock>\n**\n**            the tokenizer offers both \"1st\" and \"first\" as synonyms for the\n**            first token in the MATCH query and FTS5 effectively runs a query \n**            similar to:\n**\n**   <codeblock>\n**     ... MATCH '(first OR 1st) place'</codeblock>\n**\n**            except that, for the purposes of auxiliary functions, the query\n**            still appears to contain just two phrases - \"(first OR 1st)\" \n**            being treated as a single phrase.\n**\n**       <li> By adding multiple synonyms for a single term to the FTS index.\n**            Using this method, when tokenizing document text, the tokenizer\n**            provides multiple synonyms for each token. So that when a \n**            document such as \"I won first place\" is tokenized, entries are\n**            added to the FTS index for \"i\", \"won\", \"first\", \"1st\" and\n**            \"place\".\n**\n**            This way, even if the tokenizer does not provide synonyms\n**            when tokenizing query text (it should not - to do would be\n**            inefficient), it doesn't matter if the user queries for \n**            'first + place' or '1st + place', as there are entires in the\n**            FTS index corresponding to both forms of the first token.\n**   </ol>\n**\n**   Whether it is parsing document or query text, any call to xToken that\n**   specifies a <i>tflags</i> argument with the FTS5_TOKEN_COLOCATED bit\n**   is considered to supply a synonym for the previous token. For example,\n**   when parsing the document \"I won first place\", a tokenizer that supports\n**   synonyms would call xToken() 5 times, as follows:\n**\n**   <codeblock>\n**       xToken(pCtx, 0, \"i\",                      1,  0,  1);\n**       xToken(pCtx, 0, \"won\",                    3,  2,  5);\n**       xToken(pCtx, 0, \"first\",                  5,  6, 11);\n**       xToken(pCtx, FTS5_TOKEN_COLOCATED, \"1st\", 3,  6, 11);\n**       xToken(pCtx, 0, \"place\",                  5, 12, 17);\n**</codeblock>\n**\n**   It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time\n**   xToken() is called. Multiple synonyms may be specified for a single token\n**   by making multiple calls to xToken(FTS5_TOKEN_COLOCATED) in sequence. \n**   There is no limit to the number of synonyms that may be provided for a\n**   single token.\n**\n**   In many cases, method (1) above is the best approach. It does not add \n**   extra data to the FTS index or require FTS5 to query for multiple terms,\n**   so it is efficient in terms of disk space and query speed. However, it\n**   does not support prefix queries very well. If, as suggested above, the\n**   token \"first\" is subsituted for \"1st\" by the tokenizer, then the query:\n**\n**   <codeblock>\n**     ... MATCH '1s*'</codeblock>\n**\n**   will not match documents that contain the token \"1st\" (as the tokenizer\n**   will probably not map \"1s\" to any prefix of \"first\").\n**\n**   For full prefix support, method (3) may be preferred. In this case, \n**   because the index contains entries for both \"first\" and \"1st\", prefix\n**   queries such as 'fi*' or '1s*' will match correctly. However, because\n**   extra entries are added to the FTS index, this method uses more space\n**   within the database.\n**\n**   Method (2) offers a midpoint between (1) and (3). Using this method,\n**   a query such as '1s*' will match documents that contain the literal \n**   token \"1st\", but not \"first\" (assuming the tokenizer is not able to\n**   provide synonyms for prefixes). However, a non-prefix query like '1st'\n**   will match against \"1st\" and \"first\". This method does not require\n**   extra disk space, as no extra entries are added to the FTS index. \n**   On the other hand, it may require more CPU cycles to run MATCH queries,\n**   as separate queries of the FTS index are required for each synonym.\n**\n**   When using methods (2) or (3), it is important that the tokenizer only\n**   provide synonyms when tokenizing document text (method (2)) or query\n**   text (method (3)), not both. Doing so will not cause any errors, but is\n**   inefficient.\n*/\ntypedef struct Fts5Tokenizer Fts5Tokenizer;\ntypedef struct fts5_tokenizer fts5_tokenizer;\nstruct fts5_tokenizer {\n  int (*xCreate)(void*, const char **azArg, int nArg, Fts5Tokenizer **ppOut);\n  void (*xDelete)(Fts5Tokenizer*);\n  int (*xTokenize)(Fts5Tokenizer*, \n      void *pCtx,\n      int flags,            /* Mask of FTS5_TOKENIZE_* flags */\n      const char *pText, int nText, \n      int (*xToken)(\n        void *pCtx,         /* Copy of 2nd argument to xTokenize() */\n        int tflags,         /* Mask of FTS5_TOKEN_* flags */\n        const char *pToken, /* Pointer to buffer containing token */\n        int nToken,         /* Size of token in bytes */\n        int iStart,         /* Byte offset of token within input text */\n        int iEnd            /* Byte offset of end of token within input text */\n      )\n  );\n};\n\n/* Flags that may be passed as the third argument to xTokenize() */\n#define FTS5_TOKENIZE_QUERY     0x0001\n#define FTS5_TOKENIZE_PREFIX    0x0002\n#define FTS5_TOKENIZE_DOCUMENT  0x0004\n#define FTS5_TOKENIZE_AUX       0x0008\n\n/* Flags that may be passed by the tokenizer implementation back to FTS5\n** as the third argument to the supplied xToken callback. */\n#define FTS5_TOKEN_COLOCATED    0x0001      /* Same position as prev. token */\n\n/*\n** END OF CUSTOM TOKENIZERS\n*************************************************************************/\n\n/*************************************************************************\n** FTS5 EXTENSION REGISTRATION API\n*/\ntypedef struct fts5_api fts5_api;\nstruct fts5_api {\n  int iVersion;                   /* Currently always set to 2 */\n\n  /* Create a new tokenizer */\n  int (*xCreateTokenizer)(\n    fts5_api *pApi,\n    const char *zName,\n    void *pContext,\n    fts5_tokenizer *pTokenizer,\n    void (*xDestroy)(void*)\n  );\n\n  /* Find an existing tokenizer */\n  int (*xFindTokenizer)(\n    fts5_api *pApi,\n    const char *zName,\n    void **ppContext,\n    fts5_tokenizer *pTokenizer\n  );\n\n  /* Create a new auxiliary function */\n  int (*xCreateFunction)(\n    fts5_api *pApi,\n    const char *zName,\n    void *pContext,\n    fts5_extension_function xFunction,\n    void (*xDestroy)(void*)\n  );\n};\n\n/*\n** END OF REGISTRATION API\n*************************************************************************/\n\n#ifdef __cplusplus\n}  /* end of the 'extern \"C\"' block */\n#endif\n\n#endif /* _FTS5_H */\n\n/******** End of fts5.h *********/\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/ios-arm64_x86_64-simulator/Headers/sqlite3ext.h",
    "content": "/*\n** 2006 June 7\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n** This header file defines the SQLite interface for use by\n** shared libraries that want to be imported as extensions into\n** an SQLite instance.  Shared libraries that intend to be loaded\n** as extensions by SQLite should #include this file instead of \n** sqlite3.h.\n*/\n#ifndef SQLITE3EXT_H\n#define SQLITE3EXT_H\n#include \"sqlite3.h\"\n\n/*\n** The following structure holds pointers to all of the SQLite API\n** routines.\n**\n** WARNING:  In order to maintain backwards compatibility, add new\n** interfaces to the end of this structure only.  If you insert new\n** interfaces in the middle of this structure, then older different\n** versions of SQLite will not be able to load each other's shared\n** libraries!\n*/\nstruct sqlite3_api_routines {\n  void * (*aggregate_context)(sqlite3_context*,int nBytes);\n  int  (*aggregate_count)(sqlite3_context*);\n  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));\n  int  (*bind_double)(sqlite3_stmt*,int,double);\n  int  (*bind_int)(sqlite3_stmt*,int,int);\n  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);\n  int  (*bind_null)(sqlite3_stmt*,int);\n  int  (*bind_parameter_count)(sqlite3_stmt*);\n  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);\n  const char * (*bind_parameter_name)(sqlite3_stmt*,int);\n  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));\n  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));\n  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);\n  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);\n  int  (*busy_timeout)(sqlite3*,int ms);\n  int  (*changes)(sqlite3*);\n  int  (*close)(sqlite3*);\n  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,\n                           int eTextRep,const char*));\n  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,\n                             int eTextRep,const void*));\n  const void * (*column_blob)(sqlite3_stmt*,int iCol);\n  int  (*column_bytes)(sqlite3_stmt*,int iCol);\n  int  (*column_bytes16)(sqlite3_stmt*,int iCol);\n  int  (*column_count)(sqlite3_stmt*pStmt);\n  const char * (*column_database_name)(sqlite3_stmt*,int);\n  const void * (*column_database_name16)(sqlite3_stmt*,int);\n  const char * (*column_decltype)(sqlite3_stmt*,int i);\n  const void * (*column_decltype16)(sqlite3_stmt*,int);\n  double  (*column_double)(sqlite3_stmt*,int iCol);\n  int  (*column_int)(sqlite3_stmt*,int iCol);\n  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);\n  const char * (*column_name)(sqlite3_stmt*,int);\n  const void * (*column_name16)(sqlite3_stmt*,int);\n  const char * (*column_origin_name)(sqlite3_stmt*,int);\n  const void * (*column_origin_name16)(sqlite3_stmt*,int);\n  const char * (*column_table_name)(sqlite3_stmt*,int);\n  const void * (*column_table_name16)(sqlite3_stmt*,int);\n  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);\n  const void * (*column_text16)(sqlite3_stmt*,int iCol);\n  int  (*column_type)(sqlite3_stmt*,int iCol);\n  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);\n  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);\n  int  (*complete)(const char*sql);\n  int  (*complete16)(const void*sql);\n  int  (*create_collation)(sqlite3*,const char*,int,void*,\n                           int(*)(void*,int,const void*,int,const void*));\n  int  (*create_collation16)(sqlite3*,const void*,int,void*,\n                             int(*)(void*,int,const void*,int,const void*));\n  int  (*create_function)(sqlite3*,const char*,int,int,void*,\n                          void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                          void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                          void (*xFinal)(sqlite3_context*));\n  int  (*create_function16)(sqlite3*,const void*,int,int,void*,\n                            void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xFinal)(sqlite3_context*));\n  int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);\n  int  (*data_count)(sqlite3_stmt*pStmt);\n  sqlite3 * (*db_handle)(sqlite3_stmt*);\n  int (*declare_vtab)(sqlite3*,const char*);\n  int  (*enable_shared_cache)(int);\n  int  (*errcode)(sqlite3*db);\n  const char * (*errmsg)(sqlite3*);\n  const void * (*errmsg16)(sqlite3*);\n  int  (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);\n  int  (*expired)(sqlite3_stmt*);\n  int  (*finalize)(sqlite3_stmt*pStmt);\n  void  (*free)(void*);\n  void  (*free_table)(char**result);\n  int  (*get_autocommit)(sqlite3*);\n  void * (*get_auxdata)(sqlite3_context*,int);\n  int  (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);\n  int  (*global_recover)(void);\n  void  (*interruptx)(sqlite3*);\n  sqlite_int64  (*last_insert_rowid)(sqlite3*);\n  const char * (*libversion)(void);\n  int  (*libversion_number)(void);\n  void *(*malloc)(int);\n  char * (*mprintf)(const char*,...);\n  int  (*open)(const char*,sqlite3**);\n  int  (*open16)(const void*,sqlite3**);\n  int  (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);\n  int  (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);\n  void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);\n  void  (*progress_handler)(sqlite3*,int,int(*)(void*),void*);\n  void *(*realloc)(void*,int);\n  int  (*reset)(sqlite3_stmt*pStmt);\n  void  (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_double)(sqlite3_context*,double);\n  void  (*result_error)(sqlite3_context*,const char*,int);\n  void  (*result_error16)(sqlite3_context*,const void*,int);\n  void  (*result_int)(sqlite3_context*,int);\n  void  (*result_int64)(sqlite3_context*,sqlite_int64);\n  void  (*result_null)(sqlite3_context*);\n  void  (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));\n  void  (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_value)(sqlite3_context*,sqlite3_value*);\n  void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);\n  int  (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,\n                         const char*,const char*),void*);\n  void  (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));\n  char * (*xsnprintf)(int,char*,const char*,...);\n  int  (*step)(sqlite3_stmt*);\n  int  (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,\n                                char const**,char const**,int*,int*,int*);\n  void  (*thread_cleanup)(void);\n  int  (*total_changes)(sqlite3*);\n  void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);\n  int  (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);\n  void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,\n                                         sqlite_int64),void*);\n  void * (*user_data)(sqlite3_context*);\n  const void * (*value_blob)(sqlite3_value*);\n  int  (*value_bytes)(sqlite3_value*);\n  int  (*value_bytes16)(sqlite3_value*);\n  double  (*value_double)(sqlite3_value*);\n  int  (*value_int)(sqlite3_value*);\n  sqlite_int64  (*value_int64)(sqlite3_value*);\n  int  (*value_numeric_type)(sqlite3_value*);\n  const unsigned char * (*value_text)(sqlite3_value*);\n  const void * (*value_text16)(sqlite3_value*);\n  const void * (*value_text16be)(sqlite3_value*);\n  const void * (*value_text16le)(sqlite3_value*);\n  int  (*value_type)(sqlite3_value*);\n  char *(*vmprintf)(const char*,va_list);\n  /* Added ??? */\n  int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);\n  /* Added by 3.3.13 */\n  int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);\n  int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);\n  int (*clear_bindings)(sqlite3_stmt*);\n  /* Added by 3.4.1 */\n  int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,\n                          void (*xDestroy)(void *));\n  /* Added by 3.5.0 */\n  int (*bind_zeroblob)(sqlite3_stmt*,int,int);\n  int (*blob_bytes)(sqlite3_blob*);\n  int (*blob_close)(sqlite3_blob*);\n  int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,\n                   int,sqlite3_blob**);\n  int (*blob_read)(sqlite3_blob*,void*,int,int);\n  int (*blob_write)(sqlite3_blob*,const void*,int,int);\n  int (*create_collation_v2)(sqlite3*,const char*,int,void*,\n                             int(*)(void*,int,const void*,int,const void*),\n                             void(*)(void*));\n  int (*file_control)(sqlite3*,const char*,int,void*);\n  sqlite3_int64 (*memory_highwater)(int);\n  sqlite3_int64 (*memory_used)(void);\n  sqlite3_mutex *(*mutex_alloc)(int);\n  void (*mutex_enter)(sqlite3_mutex*);\n  void (*mutex_free)(sqlite3_mutex*);\n  void (*mutex_leave)(sqlite3_mutex*);\n  int (*mutex_try)(sqlite3_mutex*);\n  int (*open_v2)(const char*,sqlite3**,int,const char*);\n  int (*release_memory)(int);\n  void (*result_error_nomem)(sqlite3_context*);\n  void (*result_error_toobig)(sqlite3_context*);\n  int (*sleep)(int);\n  void (*soft_heap_limit)(int);\n  sqlite3_vfs *(*vfs_find)(const char*);\n  int (*vfs_register)(sqlite3_vfs*,int);\n  int (*vfs_unregister)(sqlite3_vfs*);\n  int (*xthreadsafe)(void);\n  void (*result_zeroblob)(sqlite3_context*,int);\n  void (*result_error_code)(sqlite3_context*,int);\n  int (*test_control)(int, ...);\n  void (*randomness)(int,void*);\n  sqlite3 *(*context_db_handle)(sqlite3_context*);\n  int (*extended_result_codes)(sqlite3*,int);\n  int (*limit)(sqlite3*,int,int);\n  sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);\n  const char *(*sql)(sqlite3_stmt*);\n  int (*status)(int,int*,int*,int);\n  int (*backup_finish)(sqlite3_backup*);\n  sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);\n  int (*backup_pagecount)(sqlite3_backup*);\n  int (*backup_remaining)(sqlite3_backup*);\n  int (*backup_step)(sqlite3_backup*,int);\n  const char *(*compileoption_get)(int);\n  int (*compileoption_used)(const char*);\n  int (*create_function_v2)(sqlite3*,const char*,int,int,void*,\n                            void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xFinal)(sqlite3_context*),\n                            void(*xDestroy)(void*));\n  int (*db_config)(sqlite3*,int,...);\n  sqlite3_mutex *(*db_mutex)(sqlite3*);\n  int (*db_status)(sqlite3*,int,int*,int*,int);\n  int (*extended_errcode)(sqlite3*);\n  void (*log)(int,const char*,...);\n  sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64);\n  const char *(*sourceid)(void);\n  int (*stmt_status)(sqlite3_stmt*,int,int);\n  int (*strnicmp)(const char*,const char*,int);\n  int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);\n  int (*wal_autocheckpoint)(sqlite3*,int);\n  int (*wal_checkpoint)(sqlite3*,const char*);\n  void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);\n  int (*blob_reopen)(sqlite3_blob*,sqlite3_int64);\n  int (*vtab_config)(sqlite3*,int op,...);\n  int (*vtab_on_conflict)(sqlite3*);\n  /* Version 3.7.16 and later */\n  int (*close_v2)(sqlite3*);\n  const char *(*db_filename)(sqlite3*,const char*);\n  int (*db_readonly)(sqlite3*,const char*);\n  int (*db_release_memory)(sqlite3*);\n  const char *(*errstr)(int);\n  int (*stmt_busy)(sqlite3_stmt*);\n  int (*stmt_readonly)(sqlite3_stmt*);\n  int (*stricmp)(const char*,const char*);\n  int (*uri_boolean)(const char*,const char*,int);\n  sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64);\n  const char *(*uri_parameter)(const char*,const char*);\n  char *(*xvsnprintf)(int,char*,const char*,va_list);\n  int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);\n  /* Version 3.8.7 and later */\n  int (*auto_extension)(void(*)(void));\n  int (*bind_blob64)(sqlite3_stmt*,int,const void*,sqlite3_uint64,\n                     void(*)(void*));\n  int (*bind_text64)(sqlite3_stmt*,int,const char*,sqlite3_uint64,\n                      void(*)(void*),unsigned char);\n  int (*cancel_auto_extension)(void(*)(void));\n  int (*load_extension)(sqlite3*,const char*,const char*,char**);\n  void *(*malloc64)(sqlite3_uint64);\n  sqlite3_uint64 (*msize)(void*);\n  void *(*realloc64)(void*,sqlite3_uint64);\n  void (*reset_auto_extension)(void);\n  void (*result_blob64)(sqlite3_context*,const void*,sqlite3_uint64,\n                        void(*)(void*));\n  void (*result_text64)(sqlite3_context*,const char*,sqlite3_uint64,\n                         void(*)(void*), unsigned char);\n  int (*strglob)(const char*,const char*);\n  /* Version 3.8.11 and later */\n  sqlite3_value *(*value_dup)(const sqlite3_value*);\n  void (*value_free)(sqlite3_value*);\n  int (*result_zeroblob64)(sqlite3_context*,sqlite3_uint64);\n  int (*bind_zeroblob64)(sqlite3_stmt*, int, sqlite3_uint64);\n  /* Version 3.9.0 and later */\n  unsigned int (*value_subtype)(sqlite3_value*);\n  void (*result_subtype)(sqlite3_context*,unsigned int);\n  /* Version 3.10.0 and later */\n  int (*status64)(int,sqlite3_int64*,sqlite3_int64*,int);\n  int (*strlike)(const char*,const char*,unsigned int);\n  int (*db_cacheflush)(sqlite3*);\n  /* Version 3.12.0 and later */\n  int (*system_errno)(sqlite3*);\n  /* Version 3.14.0 and later */\n  int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*);\n  char *(*expanded_sql)(sqlite3_stmt*);\n  /* Version 3.18.0 and later */\n  void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64);\n  /* Version 3.20.0 and later */\n  int (*prepare_v3)(sqlite3*,const char*,int,unsigned int,\n                    sqlite3_stmt**,const char**);\n  int (*prepare16_v3)(sqlite3*,const void*,int,unsigned int,\n                      sqlite3_stmt**,const void**);\n  int (*bind_pointer)(sqlite3_stmt*,int,void*,const char*,void(*)(void*));\n  void (*result_pointer)(sqlite3_context*,void*,const char*,void(*)(void*));\n  void *(*value_pointer)(sqlite3_value*,const char*);\n  int (*vtab_nochange)(sqlite3_context*);\n  int (*value_nochange)(sqlite3_value*);\n  const char *(*vtab_collation)(sqlite3_index_info*,int);\n};\n\n/*\n** This is the function signature used for all extension entry points.  It\n** is also defined in the file \"loadext.c\".\n*/\ntypedef int (*sqlite3_loadext_entry)(\n  sqlite3 *db,                       /* Handle to the database. */\n  char **pzErrMsg,                   /* Used to set error string on failure. */\n  const sqlite3_api_routines *pThunk /* Extension API function pointers. */\n);\n\n/*\n** The following macros redefine the API routines so that they are\n** redirected through the global sqlite3_api structure.\n**\n** This header file is also used by the loadext.c source file\n** (part of the main SQLite library - not an extension) so that\n** it can get access to the sqlite3_api_routines structure\n** definition.  But the main library does not want to redefine\n** the API.  So the redefinition macros are only valid if the\n** SQLITE_CORE macros is undefined.\n*/\n#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)\n#define sqlite3_aggregate_context      sqlite3_api->aggregate_context\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_aggregate_count        sqlite3_api->aggregate_count\n#endif\n#define sqlite3_bind_blob              sqlite3_api->bind_blob\n#define sqlite3_bind_double            sqlite3_api->bind_double\n#define sqlite3_bind_int               sqlite3_api->bind_int\n#define sqlite3_bind_int64             sqlite3_api->bind_int64\n#define sqlite3_bind_null              sqlite3_api->bind_null\n#define sqlite3_bind_parameter_count   sqlite3_api->bind_parameter_count\n#define sqlite3_bind_parameter_index   sqlite3_api->bind_parameter_index\n#define sqlite3_bind_parameter_name    sqlite3_api->bind_parameter_name\n#define sqlite3_bind_text              sqlite3_api->bind_text\n#define sqlite3_bind_text16            sqlite3_api->bind_text16\n#define sqlite3_bind_value             sqlite3_api->bind_value\n#define sqlite3_busy_handler           sqlite3_api->busy_handler\n#define sqlite3_busy_timeout           sqlite3_api->busy_timeout\n#define sqlite3_changes                sqlite3_api->changes\n#define sqlite3_close                  sqlite3_api->close\n#define sqlite3_collation_needed       sqlite3_api->collation_needed\n#define sqlite3_collation_needed16     sqlite3_api->collation_needed16\n#define sqlite3_column_blob            sqlite3_api->column_blob\n#define sqlite3_column_bytes           sqlite3_api->column_bytes\n#define sqlite3_column_bytes16         sqlite3_api->column_bytes16\n#define sqlite3_column_count           sqlite3_api->column_count\n#define sqlite3_column_database_name   sqlite3_api->column_database_name\n#define sqlite3_column_database_name16 sqlite3_api->column_database_name16\n#define sqlite3_column_decltype        sqlite3_api->column_decltype\n#define sqlite3_column_decltype16      sqlite3_api->column_decltype16\n#define sqlite3_column_double          sqlite3_api->column_double\n#define sqlite3_column_int             sqlite3_api->column_int\n#define sqlite3_column_int64           sqlite3_api->column_int64\n#define sqlite3_column_name            sqlite3_api->column_name\n#define sqlite3_column_name16          sqlite3_api->column_name16\n#define sqlite3_column_origin_name     sqlite3_api->column_origin_name\n#define sqlite3_column_origin_name16   sqlite3_api->column_origin_name16\n#define sqlite3_column_table_name      sqlite3_api->column_table_name\n#define sqlite3_column_table_name16    sqlite3_api->column_table_name16\n#define sqlite3_column_text            sqlite3_api->column_text\n#define sqlite3_column_text16          sqlite3_api->column_text16\n#define sqlite3_column_type            sqlite3_api->column_type\n#define sqlite3_column_value           sqlite3_api->column_value\n#define sqlite3_commit_hook            sqlite3_api->commit_hook\n#define sqlite3_complete               sqlite3_api->complete\n#define sqlite3_complete16             sqlite3_api->complete16\n#define sqlite3_create_collation       sqlite3_api->create_collation\n#define sqlite3_create_collation16     sqlite3_api->create_collation16\n#define sqlite3_create_function        sqlite3_api->create_function\n#define sqlite3_create_function16      sqlite3_api->create_function16\n#define sqlite3_create_module          sqlite3_api->create_module\n#define sqlite3_create_module_v2       sqlite3_api->create_module_v2\n#define sqlite3_data_count             sqlite3_api->data_count\n#define sqlite3_db_handle              sqlite3_api->db_handle\n#define sqlite3_declare_vtab           sqlite3_api->declare_vtab\n#define sqlite3_enable_shared_cache    sqlite3_api->enable_shared_cache\n#define sqlite3_errcode                sqlite3_api->errcode\n#define sqlite3_errmsg                 sqlite3_api->errmsg\n#define sqlite3_errmsg16               sqlite3_api->errmsg16\n#define sqlite3_exec                   sqlite3_api->exec\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_expired                sqlite3_api->expired\n#endif\n#define sqlite3_finalize               sqlite3_api->finalize\n#define sqlite3_free                   sqlite3_api->free\n#define sqlite3_free_table             sqlite3_api->free_table\n#define sqlite3_get_autocommit         sqlite3_api->get_autocommit\n#define sqlite3_get_auxdata            sqlite3_api->get_auxdata\n#define sqlite3_get_table              sqlite3_api->get_table\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_global_recover         sqlite3_api->global_recover\n#endif\n#define sqlite3_interrupt              sqlite3_api->interruptx\n#define sqlite3_last_insert_rowid      sqlite3_api->last_insert_rowid\n#define sqlite3_libversion             sqlite3_api->libversion\n#define sqlite3_libversion_number      sqlite3_api->libversion_number\n#define sqlite3_malloc                 sqlite3_api->malloc\n#define sqlite3_mprintf                sqlite3_api->mprintf\n#define sqlite3_open                   sqlite3_api->open\n#define sqlite3_open16                 sqlite3_api->open16\n#define sqlite3_prepare                sqlite3_api->prepare\n#define sqlite3_prepare16              sqlite3_api->prepare16\n#define sqlite3_prepare_v2             sqlite3_api->prepare_v2\n#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2\n#define sqlite3_profile                sqlite3_api->profile\n#define sqlite3_progress_handler       sqlite3_api->progress_handler\n#define sqlite3_realloc                sqlite3_api->realloc\n#define sqlite3_reset                  sqlite3_api->reset\n#define sqlite3_result_blob            sqlite3_api->result_blob\n#define sqlite3_result_double          sqlite3_api->result_double\n#define sqlite3_result_error           sqlite3_api->result_error\n#define sqlite3_result_error16         sqlite3_api->result_error16\n#define sqlite3_result_int             sqlite3_api->result_int\n#define sqlite3_result_int64           sqlite3_api->result_int64\n#define sqlite3_result_null            sqlite3_api->result_null\n#define sqlite3_result_text            sqlite3_api->result_text\n#define sqlite3_result_text16          sqlite3_api->result_text16\n#define sqlite3_result_text16be        sqlite3_api->result_text16be\n#define sqlite3_result_text16le        sqlite3_api->result_text16le\n#define sqlite3_result_value           sqlite3_api->result_value\n#define sqlite3_rollback_hook          sqlite3_api->rollback_hook\n#define sqlite3_set_authorizer         sqlite3_api->set_authorizer\n#define sqlite3_set_auxdata            sqlite3_api->set_auxdata\n#define sqlite3_snprintf               sqlite3_api->xsnprintf\n#define sqlite3_step                   sqlite3_api->step\n#define sqlite3_table_column_metadata  sqlite3_api->table_column_metadata\n#define sqlite3_thread_cleanup         sqlite3_api->thread_cleanup\n#define sqlite3_total_changes          sqlite3_api->total_changes\n#define sqlite3_trace                  sqlite3_api->trace\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_transfer_bindings      sqlite3_api->transfer_bindings\n#endif\n#define sqlite3_update_hook            sqlite3_api->update_hook\n#define sqlite3_user_data              sqlite3_api->user_data\n#define sqlite3_value_blob             sqlite3_api->value_blob\n#define sqlite3_value_bytes            sqlite3_api->value_bytes\n#define sqlite3_value_bytes16          sqlite3_api->value_bytes16\n#define sqlite3_value_double           sqlite3_api->value_double\n#define sqlite3_value_int              sqlite3_api->value_int\n#define sqlite3_value_int64            sqlite3_api->value_int64\n#define sqlite3_value_numeric_type     sqlite3_api->value_numeric_type\n#define sqlite3_value_text             sqlite3_api->value_text\n#define sqlite3_value_text16           sqlite3_api->value_text16\n#define sqlite3_value_text16be         sqlite3_api->value_text16be\n#define sqlite3_value_text16le         sqlite3_api->value_text16le\n#define sqlite3_value_type             sqlite3_api->value_type\n#define sqlite3_vmprintf               sqlite3_api->vmprintf\n#define sqlite3_vsnprintf              sqlite3_api->xvsnprintf\n#define sqlite3_overload_function      sqlite3_api->overload_function\n#define sqlite3_prepare_v2             sqlite3_api->prepare_v2\n#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2\n#define sqlite3_clear_bindings         sqlite3_api->clear_bindings\n#define sqlite3_bind_zeroblob          sqlite3_api->bind_zeroblob\n#define sqlite3_blob_bytes             sqlite3_api->blob_bytes\n#define sqlite3_blob_close             sqlite3_api->blob_close\n#define sqlite3_blob_open              sqlite3_api->blob_open\n#define sqlite3_blob_read              sqlite3_api->blob_read\n#define sqlite3_blob_write             sqlite3_api->blob_write\n#define sqlite3_create_collation_v2    sqlite3_api->create_collation_v2\n#define sqlite3_file_control           sqlite3_api->file_control\n#define sqlite3_memory_highwater       sqlite3_api->memory_highwater\n#define sqlite3_memory_used            sqlite3_api->memory_used\n#define sqlite3_mutex_alloc            sqlite3_api->mutex_alloc\n#define sqlite3_mutex_enter            sqlite3_api->mutex_enter\n#define sqlite3_mutex_free             sqlite3_api->mutex_free\n#define sqlite3_mutex_leave            sqlite3_api->mutex_leave\n#define sqlite3_mutex_try              sqlite3_api->mutex_try\n#define sqlite3_open_v2                sqlite3_api->open_v2\n#define sqlite3_release_memory         sqlite3_api->release_memory\n#define sqlite3_result_error_nomem     sqlite3_api->result_error_nomem\n#define sqlite3_result_error_toobig    sqlite3_api->result_error_toobig\n#define sqlite3_sleep                  sqlite3_api->sleep\n#define sqlite3_soft_heap_limit        sqlite3_api->soft_heap_limit\n#define sqlite3_vfs_find               sqlite3_api->vfs_find\n#define sqlite3_vfs_register           sqlite3_api->vfs_register\n#define sqlite3_vfs_unregister         sqlite3_api->vfs_unregister\n#define sqlite3_threadsafe             sqlite3_api->xthreadsafe\n#define sqlite3_result_zeroblob        sqlite3_api->result_zeroblob\n#define sqlite3_result_error_code      sqlite3_api->result_error_code\n#define sqlite3_test_control           sqlite3_api->test_control\n#define sqlite3_randomness             sqlite3_api->randomness\n#define sqlite3_context_db_handle      sqlite3_api->context_db_handle\n#define sqlite3_extended_result_codes  sqlite3_api->extended_result_codes\n#define sqlite3_limit                  sqlite3_api->limit\n#define sqlite3_next_stmt              sqlite3_api->next_stmt\n#define sqlite3_sql                    sqlite3_api->sql\n#define sqlite3_status                 sqlite3_api->status\n#define sqlite3_backup_finish          sqlite3_api->backup_finish\n#define sqlite3_backup_init            sqlite3_api->backup_init\n#define sqlite3_backup_pagecount       sqlite3_api->backup_pagecount\n#define sqlite3_backup_remaining       sqlite3_api->backup_remaining\n#define sqlite3_backup_step            sqlite3_api->backup_step\n#define sqlite3_compileoption_get      sqlite3_api->compileoption_get\n#define sqlite3_compileoption_used     sqlite3_api->compileoption_used\n#define sqlite3_create_function_v2     sqlite3_api->create_function_v2\n#define sqlite3_db_config              sqlite3_api->db_config\n#define sqlite3_db_mutex               sqlite3_api->db_mutex\n#define sqlite3_db_status              sqlite3_api->db_status\n#define sqlite3_extended_errcode       sqlite3_api->extended_errcode\n#define sqlite3_log                    sqlite3_api->log\n#define sqlite3_soft_heap_limit64      sqlite3_api->soft_heap_limit64\n#define sqlite3_sourceid               sqlite3_api->sourceid\n#define sqlite3_stmt_status            sqlite3_api->stmt_status\n#define sqlite3_strnicmp               sqlite3_api->strnicmp\n#define sqlite3_unlock_notify          sqlite3_api->unlock_notify\n#define sqlite3_wal_autocheckpoint     sqlite3_api->wal_autocheckpoint\n#define sqlite3_wal_checkpoint         sqlite3_api->wal_checkpoint\n#define sqlite3_wal_hook               sqlite3_api->wal_hook\n#define sqlite3_blob_reopen            sqlite3_api->blob_reopen\n#define sqlite3_vtab_config            sqlite3_api->vtab_config\n#define sqlite3_vtab_on_conflict       sqlite3_api->vtab_on_conflict\n/* Version 3.7.16 and later */\n#define sqlite3_close_v2               sqlite3_api->close_v2\n#define sqlite3_db_filename            sqlite3_api->db_filename\n#define sqlite3_db_readonly            sqlite3_api->db_readonly\n#define sqlite3_db_release_memory      sqlite3_api->db_release_memory\n#define sqlite3_errstr                 sqlite3_api->errstr\n#define sqlite3_stmt_busy              sqlite3_api->stmt_busy\n#define sqlite3_stmt_readonly          sqlite3_api->stmt_readonly\n#define sqlite3_stricmp                sqlite3_api->stricmp\n#define sqlite3_uri_boolean            sqlite3_api->uri_boolean\n#define sqlite3_uri_int64              sqlite3_api->uri_int64\n#define sqlite3_uri_parameter          sqlite3_api->uri_parameter\n#define sqlite3_uri_vsnprintf          sqlite3_api->xvsnprintf\n#define sqlite3_wal_checkpoint_v2      sqlite3_api->wal_checkpoint_v2\n/* Version 3.8.7 and later */\n#define sqlite3_auto_extension         sqlite3_api->auto_extension\n#define sqlite3_bind_blob64            sqlite3_api->bind_blob64\n#define sqlite3_bind_text64            sqlite3_api->bind_text64\n#define sqlite3_cancel_auto_extension  sqlite3_api->cancel_auto_extension\n#define sqlite3_load_extension         sqlite3_api->load_extension\n#define sqlite3_malloc64               sqlite3_api->malloc64\n#define sqlite3_msize                  sqlite3_api->msize\n#define sqlite3_realloc64              sqlite3_api->realloc64\n#define sqlite3_reset_auto_extension   sqlite3_api->reset_auto_extension\n#define sqlite3_result_blob64          sqlite3_api->result_blob64\n#define sqlite3_result_text64          sqlite3_api->result_text64\n#define sqlite3_strglob                sqlite3_api->strglob\n/* Version 3.8.11 and later */\n#define sqlite3_value_dup              sqlite3_api->value_dup\n#define sqlite3_value_free             sqlite3_api->value_free\n#define sqlite3_result_zeroblob64      sqlite3_api->result_zeroblob64\n#define sqlite3_bind_zeroblob64        sqlite3_api->bind_zeroblob64\n/* Version 3.9.0 and later */\n#define sqlite3_value_subtype          sqlite3_api->value_subtype\n#define sqlite3_result_subtype         sqlite3_api->result_subtype\n/* Version 3.10.0 and later */\n#define sqlite3_status64               sqlite3_api->status64\n#define sqlite3_strlike                sqlite3_api->strlike\n#define sqlite3_db_cacheflush          sqlite3_api->db_cacheflush\n/* Version 3.12.0 and later */\n#define sqlite3_system_errno           sqlite3_api->system_errno\n/* Version 3.14.0 and later */\n#define sqlite3_trace_v2               sqlite3_api->trace_v2\n#define sqlite3_expanded_sql           sqlite3_api->expanded_sql\n/* Version 3.18.0 and later */\n#define sqlite3_set_last_insert_rowid  sqlite3_api->set_last_insert_rowid\n/* Version 3.20.0 and later */\n#define sqlite3_prepare_v3             sqlite3_api->prepare_v3\n#define sqlite3_prepare16_v3           sqlite3_api->prepare16_v3\n#define sqlite3_bind_pointer           sqlite3_api->bind_pointer\n#define sqlite3_result_pointer         sqlite3_api->result_pointer\n#define sqlite3_value_pointer          sqlite3_api->value_pointer\n/* Version 3.22.0 and later */\n#define sqlite3_vtab_nochange          sqlite3_api->vtab_nochange\n#define sqlite3_value_nochange         sqltie3_api->value_nochange\n#define sqlite3_vtab_collation         sqltie3_api->vtab_collation\n#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */\n\n#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)\n  /* This case when the file really is being compiled as a loadable \n  ** extension */\n# define SQLITE_EXTENSION_INIT1     const sqlite3_api_routines *sqlite3_api=0;\n# define SQLITE_EXTENSION_INIT2(v)  sqlite3_api=v;\n# define SQLITE_EXTENSION_INIT3     \\\n    extern const sqlite3_api_routines *sqlite3_api;\n#else\n  /* This case when the file is being statically linked into the \n  ** application */\n# define SQLITE_EXTENSION_INIT1     /*no-op*/\n# define SQLITE_EXTENSION_INIT2(v)  (void)v; /* unused parameter */\n# define SQLITE_EXTENSION_INIT3     /*no-op*/\n#endif\n\n#endif /* SQLITE3EXT_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/macos-arm64_x86_64/Headers/sqlite3.h",
    "content": "/*\n** 2001-09-15\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n** This header file defines the interface that the SQLite library\n** presents to client programs.  If a C-function, structure, datatype,\n** or constant definition does not appear in this file, then it is\n** not a published API of SQLite, is subject to change without\n** notice, and should not be referenced by programs that use SQLite.\n**\n** Some of the definitions that are in this file are marked as\n** \"experimental\".  Experimental interfaces are normally new\n** features recently added to SQLite.  We do not anticipate changes\n** to experimental interfaces but reserve the right to make minor changes\n** if experience from use \"in the wild\" suggest such changes are prudent.\n**\n** The official C-language API documentation for SQLite is derived\n** from comments in this file.  This file is the authoritative source\n** on how SQLite interfaces are supposed to operate.\n**\n** The name of this file under configuration management is \"sqlite.h.in\".\n** The makefile makes some minor changes to this file (such as inserting\n** the version number) and changes its name to \"sqlite3.h\" as\n** part of the build process.\n*/\n#ifndef SQLITE3_H\n#define SQLITE3_H\n#include <stdarg.h>     /* Needed for the definition of va_list */\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n/*\n** Provide the ability to override linkage features of the interface.\n*/\n#ifndef SQLITE_EXTERN\n# define SQLITE_EXTERN extern\n#endif\n#ifndef SQLITE_API\n# define SQLITE_API\n#endif\n#ifndef SQLITE_CDECL\n# define SQLITE_CDECL\n#endif\n#ifndef SQLITE_APICALL\n# define SQLITE_APICALL\n#endif\n#ifndef SQLITE_STDCALL\n# define SQLITE_STDCALL SQLITE_APICALL\n#endif\n#ifndef SQLITE_CALLBACK\n# define SQLITE_CALLBACK\n#endif\n#ifndef SQLITE_SYSAPI\n# define SQLITE_SYSAPI\n#endif\n\n/*\n** These no-op macros are used in front of interfaces to mark those\n** interfaces as either deprecated or experimental.  New applications\n** should not use deprecated interfaces - they are supported for backwards\n** compatibility only.  Application writers should be aware that\n** experimental interfaces are subject to change in point releases.\n**\n** These macros used to resolve to various kinds of compiler magic that\n** would generate warning messages when they were used.  But that\n** compiler magic ended up generating such a flurry of bug reports\n** that we have taken it all out and gone back to using simple\n** noop macros.\n*/\n#define SQLITE_DEPRECATED\n#define SQLITE_EXPERIMENTAL\n\n/*\n** Ensure these symbols were not defined by some previous header file.\n*/\n#ifdef SQLITE_VERSION\n# undef SQLITE_VERSION\n#endif\n#ifdef SQLITE_VERSION_NUMBER\n# undef SQLITE_VERSION_NUMBER\n#endif\n\n/*\n** CAPI3REF: Compile-Time Library Version Numbers\n**\n** ^(The [SQLITE_VERSION] C preprocessor macro in the sqlite3.h header\n** evaluates to a string literal that is the SQLite version in the\n** format \"X.Y.Z\" where X is the major version number (always 3 for\n** SQLite3) and Y is the minor version number and Z is the release number.)^\n** ^(The [SQLITE_VERSION_NUMBER] C preprocessor macro resolves to an integer\n** with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same\n** numbers used in [SQLITE_VERSION].)^\n** The SQLITE_VERSION_NUMBER for any given release of SQLite will also\n** be larger than the release from which it is derived.  Either Y will\n** be held constant and Z will be incremented or else Y will be incremented\n** and Z will be reset to zero.\n**\n** Since [version 3.6.18] ([dateof:3.6.18]), \n** SQLite source code has been stored in the\n** <a href=\"http://www.fossil-scm.org/\">Fossil configuration management\n** system</a>.  ^The SQLITE_SOURCE_ID macro evaluates to\n** a string which identifies a particular check-in of SQLite\n** within its configuration management system.  ^The SQLITE_SOURCE_ID\n** string contains the date and time of the check-in (UTC) and a SHA1\n** or SHA3-256 hash of the entire source tree.  If the source code has\n** been edited in any way since it was last checked in, then the last\n** four hexadecimal digits of the hash may be modified.\n**\n** See also: [sqlite3_libversion()],\n** [sqlite3_libversion_number()], [sqlite3_sourceid()],\n** [sqlite_version()] and [sqlite_source_id()].\n*/\n#define SQLITE_VERSION        \"3.22.0\"\n#define SQLITE_VERSION_NUMBER 3022000\n#define SQLITE_SOURCE_ID      \"2018-01-22 18:45:57 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2171d\"\n\n/*\n** CAPI3REF: Run-Time Library Version Numbers\n** KEYWORDS: sqlite3_version sqlite3_sourceid\n**\n** These interfaces provide the same information as the [SQLITE_VERSION],\n** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] C preprocessor macros\n** but are associated with the library instead of the header file.  ^(Cautious\n** programmers might include assert() statements in their application to\n** verify that values returned by these interfaces match the macros in\n** the header, and thus ensure that the application is\n** compiled with matching library and header files.\n**\n** <blockquote><pre>\n** assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER );\n** assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 );\n** assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );\n** </pre></blockquote>)^\n**\n** ^The sqlite3_version[] string constant contains the text of [SQLITE_VERSION]\n** macro.  ^The sqlite3_libversion() function returns a pointer to the\n** to the sqlite3_version[] string constant.  The sqlite3_libversion()\n** function is provided for use in DLLs since DLL users usually do not have\n** direct access to string constants within the DLL.  ^The\n** sqlite3_libversion_number() function returns an integer equal to\n** [SQLITE_VERSION_NUMBER].  ^(The sqlite3_sourceid() function returns \n** a pointer to a string constant whose value is the same as the \n** [SQLITE_SOURCE_ID] C preprocessor macro.  Except if SQLite is built\n** using an edited copy of [the amalgamation], then the last four characters\n** of the hash might be different from [SQLITE_SOURCE_ID].)^\n**\n** See also: [sqlite_version()] and [sqlite_source_id()].\n*/\nSQLITE_API SQLITE_EXTERN const char sqlite3_version[];\nSQLITE_API const char *sqlite3_libversion(void);\nSQLITE_API const char *sqlite3_sourceid(void);\nSQLITE_API int sqlite3_libversion_number(void);\n\n/*\n** CAPI3REF: Run-Time Library Compilation Options Diagnostics\n**\n** ^The sqlite3_compileoption_used() function returns 0 or 1 \n** indicating whether the specified option was defined at \n** compile time.  ^The SQLITE_ prefix may be omitted from the \n** option name passed to sqlite3_compileoption_used().  \n**\n** ^The sqlite3_compileoption_get() function allows iterating\n** over the list of options that were defined at compile time by\n** returning the N-th compile time option string.  ^If N is out of range,\n** sqlite3_compileoption_get() returns a NULL pointer.  ^The SQLITE_ \n** prefix is omitted from any strings returned by \n** sqlite3_compileoption_get().\n**\n** ^Support for the diagnostic functions sqlite3_compileoption_used()\n** and sqlite3_compileoption_get() may be omitted by specifying the \n** [SQLITE_OMIT_COMPILEOPTION_DIAGS] option at compile time.\n**\n** See also: SQL functions [sqlite_compileoption_used()] and\n** [sqlite_compileoption_get()] and the [compile_options pragma].\n*/\n#ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS\nSQLITE_API int sqlite3_compileoption_used(const char *zOptName);\nSQLITE_API const char *sqlite3_compileoption_get(int N);\n#endif\n\n/*\n** CAPI3REF: Test To See If The Library Is Threadsafe\n**\n** ^The sqlite3_threadsafe() function returns zero if and only if\n** SQLite was compiled with mutexing code omitted due to the\n** [SQLITE_THREADSAFE] compile-time option being set to 0.\n**\n** SQLite can be compiled with or without mutexes.  When\n** the [SQLITE_THREADSAFE] C preprocessor macro is 1 or 2, mutexes\n** are enabled and SQLite is threadsafe.  When the\n** [SQLITE_THREADSAFE] macro is 0, \n** the mutexes are omitted.  Without the mutexes, it is not safe\n** to use SQLite concurrently from more than one thread.\n**\n** Enabling mutexes incurs a measurable performance penalty.\n** So if speed is of utmost importance, it makes sense to disable\n** the mutexes.  But for maximum safety, mutexes should be enabled.\n** ^The default behavior is for mutexes to be enabled.\n**\n** This interface can be used by an application to make sure that the\n** version of SQLite that it is linking against was compiled with\n** the desired setting of the [SQLITE_THREADSAFE] macro.\n**\n** This interface only reports on the compile-time mutex setting\n** of the [SQLITE_THREADSAFE] flag.  If SQLite is compiled with\n** SQLITE_THREADSAFE=1 or =2 then mutexes are enabled by default but\n** can be fully or partially disabled using a call to [sqlite3_config()]\n** with the verbs [SQLITE_CONFIG_SINGLETHREAD], [SQLITE_CONFIG_MULTITHREAD],\n** or [SQLITE_CONFIG_SERIALIZED].  ^(The return value of the\n** sqlite3_threadsafe() function shows only the compile-time setting of\n** thread safety, not any run-time changes to that setting made by\n** sqlite3_config(). In other words, the return value from sqlite3_threadsafe()\n** is unchanged by calls to sqlite3_config().)^\n**\n** See the [threading mode] documentation for additional information.\n*/\nSQLITE_API int sqlite3_threadsafe(void);\n\n/*\n** CAPI3REF: Database Connection Handle\n** KEYWORDS: {database connection} {database connections}\n**\n** Each open SQLite database is represented by a pointer to an instance of\n** the opaque structure named \"sqlite3\".  It is useful to think of an sqlite3\n** pointer as an object.  The [sqlite3_open()], [sqlite3_open16()], and\n** [sqlite3_open_v2()] interfaces are its constructors, and [sqlite3_close()]\n** and [sqlite3_close_v2()] are its destructors.  There are many other\n** interfaces (such as\n** [sqlite3_prepare_v2()], [sqlite3_create_function()], and\n** [sqlite3_busy_timeout()] to name but three) that are methods on an\n** sqlite3 object.\n*/\ntypedef struct sqlite3 sqlite3;\n\n/*\n** CAPI3REF: 64-Bit Integer Types\n** KEYWORDS: sqlite_int64 sqlite_uint64\n**\n** Because there is no cross-platform way to specify 64-bit integer types\n** SQLite includes typedefs for 64-bit signed and unsigned integers.\n**\n** The sqlite3_int64 and sqlite3_uint64 are the preferred type definitions.\n** The sqlite_int64 and sqlite_uint64 types are supported for backwards\n** compatibility only.\n**\n** ^The sqlite3_int64 and sqlite_int64 types can store integer values\n** between -9223372036854775808 and +9223372036854775807 inclusive.  ^The\n** sqlite3_uint64 and sqlite_uint64 types can store integer values \n** between 0 and +18446744073709551615 inclusive.\n*/\n#ifdef SQLITE_INT64_TYPE\n  typedef SQLITE_INT64_TYPE sqlite_int64;\n# ifdef SQLITE_UINT64_TYPE\n    typedef SQLITE_UINT64_TYPE sqlite_uint64;\n# else  \n    typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;\n# endif\n#elif defined(_MSC_VER) || defined(__BORLANDC__)\n  typedef __int64 sqlite_int64;\n  typedef unsigned __int64 sqlite_uint64;\n#else\n  typedef long long int sqlite_int64;\n  typedef unsigned long long int sqlite_uint64;\n#endif\ntypedef sqlite_int64 sqlite3_int64;\ntypedef sqlite_uint64 sqlite3_uint64;\n\n/*\n** If compiling for a processor that lacks floating point support,\n** substitute integer for floating-point.\n*/\n#ifdef SQLITE_OMIT_FLOATING_POINT\n# define double sqlite3_int64\n#endif\n\n/*\n** CAPI3REF: Closing A Database Connection\n** DESTRUCTOR: sqlite3\n**\n** ^The sqlite3_close() and sqlite3_close_v2() routines are destructors\n** for the [sqlite3] object.\n** ^Calls to sqlite3_close() and sqlite3_close_v2() return [SQLITE_OK] if\n** the [sqlite3] object is successfully destroyed and all associated\n** resources are deallocated.\n**\n** ^If the database connection is associated with unfinalized prepared\n** statements or unfinished sqlite3_backup objects then sqlite3_close()\n** will leave the database connection open and return [SQLITE_BUSY].\n** ^If sqlite3_close_v2() is called with unfinalized prepared statements\n** and/or unfinished sqlite3_backups, then the database connection becomes\n** an unusable \"zombie\" which will automatically be deallocated when the\n** last prepared statement is finalized or the last sqlite3_backup is\n** finished.  The sqlite3_close_v2() interface is intended for use with\n** host languages that are garbage collected, and where the order in which\n** destructors are called is arbitrary.\n**\n** Applications should [sqlite3_finalize | finalize] all [prepared statements],\n** [sqlite3_blob_close | close] all [BLOB handles], and \n** [sqlite3_backup_finish | finish] all [sqlite3_backup] objects associated\n** with the [sqlite3] object prior to attempting to close the object.  ^If\n** sqlite3_close_v2() is called on a [database connection] that still has\n** outstanding [prepared statements], [BLOB handles], and/or\n** [sqlite3_backup] objects then it returns [SQLITE_OK] and the deallocation\n** of resources is deferred until all [prepared statements], [BLOB handles],\n** and [sqlite3_backup] objects are also destroyed.\n**\n** ^If an [sqlite3] object is destroyed while a transaction is open,\n** the transaction is automatically rolled back.\n**\n** The C parameter to [sqlite3_close(C)] and [sqlite3_close_v2(C)]\n** must be either a NULL\n** pointer or an [sqlite3] object pointer obtained\n** from [sqlite3_open()], [sqlite3_open16()], or\n** [sqlite3_open_v2()], and not previously closed.\n** ^Calling sqlite3_close() or sqlite3_close_v2() with a NULL pointer\n** argument is a harmless no-op.\n*/\nSQLITE_API int sqlite3_close(sqlite3*);\nSQLITE_API int sqlite3_close_v2(sqlite3*);\n\n/*\n** The type for a callback function.\n** This is legacy and deprecated.  It is included for historical\n** compatibility and is not documented.\n*/\ntypedef int (*sqlite3_callback)(void*,int,char**, char**);\n\n/*\n** CAPI3REF: One-Step Query Execution Interface\n** METHOD: sqlite3\n**\n** The sqlite3_exec() interface is a convenience wrapper around\n** [sqlite3_prepare_v2()], [sqlite3_step()], and [sqlite3_finalize()],\n** that allows an application to run multiple statements of SQL\n** without having to use a lot of C code. \n**\n** ^The sqlite3_exec() interface runs zero or more UTF-8 encoded,\n** semicolon-separate SQL statements passed into its 2nd argument,\n** in the context of the [database connection] passed in as its 1st\n** argument.  ^If the callback function of the 3rd argument to\n** sqlite3_exec() is not NULL, then it is invoked for each result row\n** coming out of the evaluated SQL statements.  ^The 4th argument to\n** sqlite3_exec() is relayed through to the 1st argument of each\n** callback invocation.  ^If the callback pointer to sqlite3_exec()\n** is NULL, then no callback is ever invoked and result rows are\n** ignored.\n**\n** ^If an error occurs while evaluating the SQL statements passed into\n** sqlite3_exec(), then execution of the current statement stops and\n** subsequent statements are skipped.  ^If the 5th parameter to sqlite3_exec()\n** is not NULL then any error message is written into memory obtained\n** from [sqlite3_malloc()] and passed back through the 5th parameter.\n** To avoid memory leaks, the application should invoke [sqlite3_free()]\n** on error message strings returned through the 5th parameter of\n** sqlite3_exec() after the error message string is no longer needed.\n** ^If the 5th parameter to sqlite3_exec() is not NULL and no errors\n** occur, then sqlite3_exec() sets the pointer in its 5th parameter to\n** NULL before returning.\n**\n** ^If an sqlite3_exec() callback returns non-zero, the sqlite3_exec()\n** routine returns SQLITE_ABORT without invoking the callback again and\n** without running any subsequent SQL statements.\n**\n** ^The 2nd argument to the sqlite3_exec() callback function is the\n** number of columns in the result.  ^The 3rd argument to the sqlite3_exec()\n** callback is an array of pointers to strings obtained as if from\n** [sqlite3_column_text()], one for each column.  ^If an element of a\n** result row is NULL then the corresponding string pointer for the\n** sqlite3_exec() callback is a NULL pointer.  ^The 4th argument to the\n** sqlite3_exec() callback is an array of pointers to strings where each\n** entry represents the name of corresponding result column as obtained\n** from [sqlite3_column_name()].\n**\n** ^If the 2nd parameter to sqlite3_exec() is a NULL pointer, a pointer\n** to an empty string, or a pointer that contains only whitespace and/or \n** SQL comments, then no SQL statements are evaluated and the database\n** is not changed.\n**\n** Restrictions:\n**\n** <ul>\n** <li> The application must ensure that the 1st parameter to sqlite3_exec()\n**      is a valid and open [database connection].\n** <li> The application must not close the [database connection] specified by\n**      the 1st parameter to sqlite3_exec() while sqlite3_exec() is running.\n** <li> The application must not modify the SQL statement text passed into\n**      the 2nd parameter of sqlite3_exec() while sqlite3_exec() is running.\n** </ul>\n*/\nSQLITE_API int sqlite3_exec(\n  sqlite3*,                                  /* An open database */\n  const char *sql,                           /* SQL to be evaluated */\n  int (*callback)(void*,int,char**,char**),  /* Callback function */\n  void *,                                    /* 1st argument to callback */\n  char **errmsg                              /* Error msg written here */\n);\n\n/*\n** CAPI3REF: Result Codes\n** KEYWORDS: {result code definitions}\n**\n** Many SQLite functions return an integer result code from the set shown\n** here in order to indicate success or failure.\n**\n** New error codes may be added in future versions of SQLite.\n**\n** See also: [extended result code definitions]\n*/\n#define SQLITE_OK           0   /* Successful result */\n/* beginning-of-error-codes */\n#define SQLITE_ERROR        1   /* Generic error */\n#define SQLITE_INTERNAL     2   /* Internal logic error in SQLite */\n#define SQLITE_PERM         3   /* Access permission denied */\n#define SQLITE_ABORT        4   /* Callback routine requested an abort */\n#define SQLITE_BUSY         5   /* The database file is locked */\n#define SQLITE_LOCKED       6   /* A table in the database is locked */\n#define SQLITE_NOMEM        7   /* A malloc() failed */\n#define SQLITE_READONLY     8   /* Attempt to write a readonly database */\n#define SQLITE_INTERRUPT    9   /* Operation terminated by sqlite3_interrupt()*/\n#define SQLITE_IOERR       10   /* Some kind of disk I/O error occurred */\n#define SQLITE_CORRUPT     11   /* The database disk image is malformed */\n#define SQLITE_NOTFOUND    12   /* Unknown opcode in sqlite3_file_control() */\n#define SQLITE_FULL        13   /* Insertion failed because database is full */\n#define SQLITE_CANTOPEN    14   /* Unable to open the database file */\n#define SQLITE_PROTOCOL    15   /* Database lock protocol error */\n#define SQLITE_EMPTY       16   /* Internal use only */\n#define SQLITE_SCHEMA      17   /* The database schema changed */\n#define SQLITE_TOOBIG      18   /* String or BLOB exceeds size limit */\n#define SQLITE_CONSTRAINT  19   /* Abort due to constraint violation */\n#define SQLITE_MISMATCH    20   /* Data type mismatch */\n#define SQLITE_MISUSE      21   /* Library used incorrectly */\n#define SQLITE_NOLFS       22   /* Uses OS features not supported on host */\n#define SQLITE_AUTH        23   /* Authorization denied */\n#define SQLITE_FORMAT      24   /* Not used */\n#define SQLITE_RANGE       25   /* 2nd parameter to sqlite3_bind out of range */\n#define SQLITE_NOTADB      26   /* File opened that is not a database file */\n#define SQLITE_NOTICE      27   /* Notifications from sqlite3_log() */\n#define SQLITE_WARNING     28   /* Warnings from sqlite3_log() */\n#define SQLITE_ROW         100  /* sqlite3_step() has another row ready */\n#define SQLITE_DONE        101  /* sqlite3_step() has finished executing */\n/* end-of-error-codes */\n\n/*\n** CAPI3REF: Extended Result Codes\n** KEYWORDS: {extended result code definitions}\n**\n** In its default configuration, SQLite API routines return one of 30 integer\n** [result codes].  However, experience has shown that many of\n** these result codes are too coarse-grained.  They do not provide as\n** much information about problems as programmers might like.  In an effort to\n** address this, newer versions of SQLite (version 3.3.8 [dateof:3.3.8]\n** and later) include\n** support for additional result codes that provide more detailed information\n** about errors. These [extended result codes] are enabled or disabled\n** on a per database connection basis using the\n** [sqlite3_extended_result_codes()] API.  Or, the extended code for\n** the most recent error can be obtained using\n** [sqlite3_extended_errcode()].\n*/\n#define SQLITE_ERROR_MISSING_COLLSEQ   (SQLITE_ERROR | (1<<8))\n#define SQLITE_ERROR_RETRY             (SQLITE_ERROR | (2<<8))\n#define SQLITE_IOERR_READ              (SQLITE_IOERR | (1<<8))\n#define SQLITE_IOERR_SHORT_READ        (SQLITE_IOERR | (2<<8))\n#define SQLITE_IOERR_WRITE             (SQLITE_IOERR | (3<<8))\n#define SQLITE_IOERR_FSYNC             (SQLITE_IOERR | (4<<8))\n#define SQLITE_IOERR_DIR_FSYNC         (SQLITE_IOERR | (5<<8))\n#define SQLITE_IOERR_TRUNCATE          (SQLITE_IOERR | (6<<8))\n#define SQLITE_IOERR_FSTAT             (SQLITE_IOERR | (7<<8))\n#define SQLITE_IOERR_UNLOCK            (SQLITE_IOERR | (8<<8))\n#define SQLITE_IOERR_RDLOCK            (SQLITE_IOERR | (9<<8))\n#define SQLITE_IOERR_DELETE            (SQLITE_IOERR | (10<<8))\n#define SQLITE_IOERR_BLOCKED           (SQLITE_IOERR | (11<<8))\n#define SQLITE_IOERR_NOMEM             (SQLITE_IOERR | (12<<8))\n#define SQLITE_IOERR_ACCESS            (SQLITE_IOERR | (13<<8))\n#define SQLITE_IOERR_CHECKRESERVEDLOCK (SQLITE_IOERR | (14<<8))\n#define SQLITE_IOERR_LOCK              (SQLITE_IOERR | (15<<8))\n#define SQLITE_IOERR_CLOSE             (SQLITE_IOERR | (16<<8))\n#define SQLITE_IOERR_DIR_CLOSE         (SQLITE_IOERR | (17<<8))\n#define SQLITE_IOERR_SHMOPEN           (SQLITE_IOERR | (18<<8))\n#define SQLITE_IOERR_SHMSIZE           (SQLITE_IOERR | (19<<8))\n#define SQLITE_IOERR_SHMLOCK           (SQLITE_IOERR | (20<<8))\n#define SQLITE_IOERR_SHMMAP            (SQLITE_IOERR | (21<<8))\n#define SQLITE_IOERR_SEEK              (SQLITE_IOERR | (22<<8))\n#define SQLITE_IOERR_DELETE_NOENT      (SQLITE_IOERR | (23<<8))\n#define SQLITE_IOERR_MMAP              (SQLITE_IOERR | (24<<8))\n#define SQLITE_IOERR_GETTEMPPATH       (SQLITE_IOERR | (25<<8))\n#define SQLITE_IOERR_CONVPATH          (SQLITE_IOERR | (26<<8))\n#define SQLITE_IOERR_VNODE             (SQLITE_IOERR | (27<<8))\n#define SQLITE_IOERR_AUTH              (SQLITE_IOERR | (28<<8))\n#define SQLITE_IOERR_BEGIN_ATOMIC      (SQLITE_IOERR | (29<<8))\n#define SQLITE_IOERR_COMMIT_ATOMIC     (SQLITE_IOERR | (30<<8))\n#define SQLITE_IOERR_ROLLBACK_ATOMIC   (SQLITE_IOERR | (31<<8))\n#define SQLITE_LOCKED_SHAREDCACHE      (SQLITE_LOCKED |  (1<<8))\n#define SQLITE_BUSY_RECOVERY           (SQLITE_BUSY   |  (1<<8))\n#define SQLITE_BUSY_SNAPSHOT           (SQLITE_BUSY   |  (2<<8))\n#define SQLITE_CANTOPEN_NOTEMPDIR      (SQLITE_CANTOPEN | (1<<8))\n#define SQLITE_CANTOPEN_ISDIR          (SQLITE_CANTOPEN | (2<<8))\n#define SQLITE_CANTOPEN_FULLPATH       (SQLITE_CANTOPEN | (3<<8))\n#define SQLITE_CANTOPEN_CONVPATH       (SQLITE_CANTOPEN | (4<<8))\n#define SQLITE_CORRUPT_VTAB            (SQLITE_CORRUPT | (1<<8))\n#define SQLITE_READONLY_RECOVERY       (SQLITE_READONLY | (1<<8))\n#define SQLITE_READONLY_CANTLOCK       (SQLITE_READONLY | (2<<8))\n#define SQLITE_READONLY_ROLLBACK       (SQLITE_READONLY | (3<<8))\n#define SQLITE_READONLY_DBMOVED        (SQLITE_READONLY | (4<<8))\n#define SQLITE_READONLY_CANTINIT       (SQLITE_READONLY | (5<<8))\n#define SQLITE_READONLY_DIRECTORY      (SQLITE_READONLY | (6<<8))\n#define SQLITE_ABORT_ROLLBACK          (SQLITE_ABORT | (2<<8))\n#define SQLITE_CONSTRAINT_CHECK        (SQLITE_CONSTRAINT | (1<<8))\n#define SQLITE_CONSTRAINT_COMMITHOOK   (SQLITE_CONSTRAINT | (2<<8))\n#define SQLITE_CONSTRAINT_FOREIGNKEY   (SQLITE_CONSTRAINT | (3<<8))\n#define SQLITE_CONSTRAINT_FUNCTION     (SQLITE_CONSTRAINT | (4<<8))\n#define SQLITE_CONSTRAINT_NOTNULL      (SQLITE_CONSTRAINT | (5<<8))\n#define SQLITE_CONSTRAINT_PRIMARYKEY   (SQLITE_CONSTRAINT | (6<<8))\n#define SQLITE_CONSTRAINT_TRIGGER      (SQLITE_CONSTRAINT | (7<<8))\n#define SQLITE_CONSTRAINT_UNIQUE       (SQLITE_CONSTRAINT | (8<<8))\n#define SQLITE_CONSTRAINT_VTAB         (SQLITE_CONSTRAINT | (9<<8))\n#define SQLITE_CONSTRAINT_ROWID        (SQLITE_CONSTRAINT |(10<<8))\n#define SQLITE_NOTICE_RECOVER_WAL      (SQLITE_NOTICE | (1<<8))\n#define SQLITE_NOTICE_RECOVER_ROLLBACK (SQLITE_NOTICE | (2<<8))\n#define SQLITE_WARNING_AUTOINDEX       (SQLITE_WARNING | (1<<8))\n#define SQLITE_AUTH_USER               (SQLITE_AUTH | (1<<8))\n#define SQLITE_OK_LOAD_PERMANENTLY     (SQLITE_OK | (1<<8))\n\n/*\n** CAPI3REF: Flags For File Open Operations\n**\n** These bit values are intended for use in the\n** 3rd parameter to the [sqlite3_open_v2()] interface and\n** in the 4th parameter to the [sqlite3_vfs.xOpen] method.\n*/\n#define SQLITE_OPEN_READONLY         0x00000001  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_READWRITE        0x00000002  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_CREATE           0x00000004  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_DELETEONCLOSE    0x00000008  /* VFS only */\n#define SQLITE_OPEN_EXCLUSIVE        0x00000010  /* VFS only */\n#define SQLITE_OPEN_AUTOPROXY        0x00000020  /* VFS only */\n#define SQLITE_OPEN_URI              0x00000040  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_MEMORY           0x00000080  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_MAIN_DB          0x00000100  /* VFS only */\n#define SQLITE_OPEN_TEMP_DB          0x00000200  /* VFS only */\n#define SQLITE_OPEN_TRANSIENT_DB     0x00000400  /* VFS only */\n#define SQLITE_OPEN_MAIN_JOURNAL     0x00000800  /* VFS only */\n#define SQLITE_OPEN_TEMP_JOURNAL     0x00001000  /* VFS only */\n#define SQLITE_OPEN_SUBJOURNAL       0x00002000  /* VFS only */\n#define SQLITE_OPEN_MASTER_JOURNAL   0x00004000  /* VFS only */\n#define SQLITE_OPEN_NOMUTEX          0x00008000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_FULLMUTEX        0x00010000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_SHAREDCACHE      0x00020000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_PRIVATECACHE     0x00040000  /* Ok for sqlite3_open_v2() */\n#define SQLITE_OPEN_WAL              0x00080000  /* VFS only */\n\n/* Reserved:                         0x00F00000 */\n\n/*\n** CAPI3REF: Device Characteristics\n**\n** The xDeviceCharacteristics method of the [sqlite3_io_methods]\n** object returns an integer which is a vector of these\n** bit values expressing I/O characteristics of the mass storage\n** device that holds the file that the [sqlite3_io_methods]\n** refers to.\n**\n** The SQLITE_IOCAP_ATOMIC property means that all writes of\n** any size are atomic.  The SQLITE_IOCAP_ATOMICnnn values\n** mean that writes of blocks that are nnn bytes in size and\n** are aligned to an address which is an integer multiple of\n** nnn are atomic.  The SQLITE_IOCAP_SAFE_APPEND value means\n** that when data is appended to a file, the data is appended\n** first then the size of the file is extended, never the other\n** way around.  The SQLITE_IOCAP_SEQUENTIAL property means that\n** information is written to disk in the same order as calls\n** to xWrite().  The SQLITE_IOCAP_POWERSAFE_OVERWRITE property means that\n** after reboot following a crash or power loss, the only bytes in a\n** file that were written at the application level might have changed\n** and that adjacent bytes, even bytes within the same sector are\n** guaranteed to be unchanged.  The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN\n** flag indicates that a file cannot be deleted when open.  The\n** SQLITE_IOCAP_IMMUTABLE flag indicates that the file is on\n** read-only media and cannot be changed even by processes with\n** elevated privileges.\n**\n** The SQLITE_IOCAP_BATCH_ATOMIC property means that the underlying\n** filesystem supports doing multiple write operations atomically when those\n** write operations are bracketed by [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] and\n** [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE].\n*/\n#define SQLITE_IOCAP_ATOMIC                 0x00000001\n#define SQLITE_IOCAP_ATOMIC512              0x00000002\n#define SQLITE_IOCAP_ATOMIC1K               0x00000004\n#define SQLITE_IOCAP_ATOMIC2K               0x00000008\n#define SQLITE_IOCAP_ATOMIC4K               0x00000010\n#define SQLITE_IOCAP_ATOMIC8K               0x00000020\n#define SQLITE_IOCAP_ATOMIC16K              0x00000040\n#define SQLITE_IOCAP_ATOMIC32K              0x00000080\n#define SQLITE_IOCAP_ATOMIC64K              0x00000100\n#define SQLITE_IOCAP_SAFE_APPEND            0x00000200\n#define SQLITE_IOCAP_SEQUENTIAL             0x00000400\n#define SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN  0x00000800\n#define SQLITE_IOCAP_POWERSAFE_OVERWRITE    0x00001000\n#define SQLITE_IOCAP_IMMUTABLE              0x00002000\n#define SQLITE_IOCAP_BATCH_ATOMIC           0x00004000\n\n/*\n** CAPI3REF: File Locking Levels\n**\n** SQLite uses one of these integer values as the second\n** argument to calls it makes to the xLock() and xUnlock() methods\n** of an [sqlite3_io_methods] object.\n*/\n#define SQLITE_LOCK_NONE          0\n#define SQLITE_LOCK_SHARED        1\n#define SQLITE_LOCK_RESERVED      2\n#define SQLITE_LOCK_PENDING       3\n#define SQLITE_LOCK_EXCLUSIVE     4\n\n/*\n** CAPI3REF: Synchronization Type Flags\n**\n** When SQLite invokes the xSync() method of an\n** [sqlite3_io_methods] object it uses a combination of\n** these integer values as the second argument.\n**\n** When the SQLITE_SYNC_DATAONLY flag is used, it means that the\n** sync operation only needs to flush data to mass storage.  Inode\n** information need not be flushed. If the lower four bits of the flag\n** equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics.\n** If the lower four bits equal SQLITE_SYNC_FULL, that means\n** to use Mac OS X style fullsync instead of fsync().\n**\n** Do not confuse the SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags\n** with the [PRAGMA synchronous]=NORMAL and [PRAGMA synchronous]=FULL\n** settings.  The [synchronous pragma] determines when calls to the\n** xSync VFS method occur and applies uniformly across all platforms.\n** The SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL flags determine how\n** energetic or rigorous or forceful the sync operations are and\n** only make a difference on Mac OSX for the default SQLite code.\n** (Third-party VFS implementations might also make the distinction\n** between SQLITE_SYNC_NORMAL and SQLITE_SYNC_FULL, but among the\n** operating systems natively supported by SQLite, only Mac OSX\n** cares about the difference.)\n*/\n#define SQLITE_SYNC_NORMAL        0x00002\n#define SQLITE_SYNC_FULL          0x00003\n#define SQLITE_SYNC_DATAONLY      0x00010\n\n/*\n** CAPI3REF: OS Interface Open File Handle\n**\n** An [sqlite3_file] object represents an open file in the \n** [sqlite3_vfs | OS interface layer].  Individual OS interface\n** implementations will\n** want to subclass this object by appending additional fields\n** for their own use.  The pMethods entry is a pointer to an\n** [sqlite3_io_methods] object that defines methods for performing\n** I/O operations on the open file.\n*/\ntypedef struct sqlite3_file sqlite3_file;\nstruct sqlite3_file {\n  const struct sqlite3_io_methods *pMethods;  /* Methods for an open file */\n};\n\n/*\n** CAPI3REF: OS Interface File Virtual Methods Object\n**\n** Every file opened by the [sqlite3_vfs.xOpen] method populates an\n** [sqlite3_file] object (or, more commonly, a subclass of the\n** [sqlite3_file] object) with a pointer to an instance of this object.\n** This object defines the methods used to perform various operations\n** against the open file represented by the [sqlite3_file] object.\n**\n** If the [sqlite3_vfs.xOpen] method sets the sqlite3_file.pMethods element \n** to a non-NULL pointer, then the sqlite3_io_methods.xClose method\n** may be invoked even if the [sqlite3_vfs.xOpen] reported that it failed.  The\n** only way to prevent a call to xClose following a failed [sqlite3_vfs.xOpen]\n** is for the [sqlite3_vfs.xOpen] to set the sqlite3_file.pMethods element\n** to NULL.\n**\n** The flags argument to xSync may be one of [SQLITE_SYNC_NORMAL] or\n** [SQLITE_SYNC_FULL].  The first choice is the normal fsync().\n** The second choice is a Mac OS X style fullsync.  The [SQLITE_SYNC_DATAONLY]\n** flag may be ORed in to indicate that only the data of the file\n** and not its inode needs to be synced.\n**\n** The integer values to xLock() and xUnlock() are one of\n** <ul>\n** <li> [SQLITE_LOCK_NONE],\n** <li> [SQLITE_LOCK_SHARED],\n** <li> [SQLITE_LOCK_RESERVED],\n** <li> [SQLITE_LOCK_PENDING], or\n** <li> [SQLITE_LOCK_EXCLUSIVE].\n** </ul>\n** xLock() increases the lock. xUnlock() decreases the lock.\n** The xCheckReservedLock() method checks whether any database connection,\n** either in this process or in some other process, is holding a RESERVED,\n** PENDING, or EXCLUSIVE lock on the file.  It returns true\n** if such a lock exists and false otherwise.\n**\n** The xFileControl() method is a generic interface that allows custom\n** VFS implementations to directly control an open file using the\n** [sqlite3_file_control()] interface.  The second \"op\" argument is an\n** integer opcode.  The third argument is a generic pointer intended to\n** point to a structure that may contain arguments or space in which to\n** write return values.  Potential uses for xFileControl() might be\n** functions to enable blocking locks with timeouts, to change the\n** locking strategy (for example to use dot-file locks), to inquire\n** about the status of a lock, or to break stale locks.  The SQLite\n** core reserves all opcodes less than 100 for its own use.\n** A [file control opcodes | list of opcodes] less than 100 is available.\n** Applications that define a custom xFileControl method should use opcodes\n** greater than 100 to avoid conflicts.  VFS implementations should\n** return [SQLITE_NOTFOUND] for file control opcodes that they do not\n** recognize.\n**\n** The xSectorSize() method returns the sector size of the\n** device that underlies the file.  The sector size is the\n** minimum write that can be performed without disturbing\n** other bytes in the file.  The xDeviceCharacteristics()\n** method returns a bit vector describing behaviors of the\n** underlying device:\n**\n** <ul>\n** <li> [SQLITE_IOCAP_ATOMIC]\n** <li> [SQLITE_IOCAP_ATOMIC512]\n** <li> [SQLITE_IOCAP_ATOMIC1K]\n** <li> [SQLITE_IOCAP_ATOMIC2K]\n** <li> [SQLITE_IOCAP_ATOMIC4K]\n** <li> [SQLITE_IOCAP_ATOMIC8K]\n** <li> [SQLITE_IOCAP_ATOMIC16K]\n** <li> [SQLITE_IOCAP_ATOMIC32K]\n** <li> [SQLITE_IOCAP_ATOMIC64K]\n** <li> [SQLITE_IOCAP_SAFE_APPEND]\n** <li> [SQLITE_IOCAP_SEQUENTIAL]\n** <li> [SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN]\n** <li> [SQLITE_IOCAP_POWERSAFE_OVERWRITE]\n** <li> [SQLITE_IOCAP_IMMUTABLE]\n** <li> [SQLITE_IOCAP_BATCH_ATOMIC]\n** </ul>\n**\n** The SQLITE_IOCAP_ATOMIC property means that all writes of\n** any size are atomic.  The SQLITE_IOCAP_ATOMICnnn values\n** mean that writes of blocks that are nnn bytes in size and\n** are aligned to an address which is an integer multiple of\n** nnn are atomic.  The SQLITE_IOCAP_SAFE_APPEND value means\n** that when data is appended to a file, the data is appended\n** first then the size of the file is extended, never the other\n** way around.  The SQLITE_IOCAP_SEQUENTIAL property means that\n** information is written to disk in the same order as calls\n** to xWrite().\n**\n** If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill\n** in the unread portions of the buffer with zeros.  A VFS that\n** fails to zero-fill short reads might seem to work.  However,\n** failure to zero-fill short reads will eventually lead to\n** database corruption.\n*/\ntypedef struct sqlite3_io_methods sqlite3_io_methods;\nstruct sqlite3_io_methods {\n  int iVersion;\n  int (*xClose)(sqlite3_file*);\n  int (*xRead)(sqlite3_file*, void*, int iAmt, sqlite3_int64 iOfst);\n  int (*xWrite)(sqlite3_file*, const void*, int iAmt, sqlite3_int64 iOfst);\n  int (*xTruncate)(sqlite3_file*, sqlite3_int64 size);\n  int (*xSync)(sqlite3_file*, int flags);\n  int (*xFileSize)(sqlite3_file*, sqlite3_int64 *pSize);\n  int (*xLock)(sqlite3_file*, int);\n  int (*xUnlock)(sqlite3_file*, int);\n  int (*xCheckReservedLock)(sqlite3_file*, int *pResOut);\n  int (*xFileControl)(sqlite3_file*, int op, void *pArg);\n  int (*xSectorSize)(sqlite3_file*);\n  int (*xDeviceCharacteristics)(sqlite3_file*);\n  /* Methods above are valid for version 1 */\n  int (*xShmMap)(sqlite3_file*, int iPg, int pgsz, int, void volatile**);\n  int (*xShmLock)(sqlite3_file*, int offset, int n, int flags);\n  void (*xShmBarrier)(sqlite3_file*);\n  int (*xShmUnmap)(sqlite3_file*, int deleteFlag);\n  /* Methods above are valid for version 2 */\n  int (*xFetch)(sqlite3_file*, sqlite3_int64 iOfst, int iAmt, void **pp);\n  int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p);\n  /* Methods above are valid for version 3 */\n  /* Additional methods may be added in future releases */\n};\n\n/*\n** CAPI3REF: Standard File Control Opcodes\n** KEYWORDS: {file control opcodes} {file control opcode}\n**\n** These integer constants are opcodes for the xFileControl method\n** of the [sqlite3_io_methods] object and for the [sqlite3_file_control()]\n** interface.\n**\n** <ul>\n** <li>[[SQLITE_FCNTL_LOCKSTATE]]\n** The [SQLITE_FCNTL_LOCKSTATE] opcode is used for debugging.  This\n** opcode causes the xFileControl method to write the current state of\n** the lock (one of [SQLITE_LOCK_NONE], [SQLITE_LOCK_SHARED],\n** [SQLITE_LOCK_RESERVED], [SQLITE_LOCK_PENDING], or [SQLITE_LOCK_EXCLUSIVE])\n** into an integer that the pArg argument points to. This capability\n** is used during testing and is only available when the SQLITE_TEST\n** compile-time option is used.\n**\n** <li>[[SQLITE_FCNTL_SIZE_HINT]]\n** The [SQLITE_FCNTL_SIZE_HINT] opcode is used by SQLite to give the VFS\n** layer a hint of how large the database file will grow to be during the\n** current transaction.  This hint is not guaranteed to be accurate but it\n** is often close.  The underlying VFS might choose to preallocate database\n** file space based on this hint in order to help writes to the database\n** file run faster.\n**\n** <li>[[SQLITE_FCNTL_CHUNK_SIZE]]\n** The [SQLITE_FCNTL_CHUNK_SIZE] opcode is used to request that the VFS\n** extends and truncates the database file in chunks of a size specified\n** by the user. The fourth argument to [sqlite3_file_control()] should \n** point to an integer (type int) containing the new chunk-size to use\n** for the nominated database. Allocating database file space in large\n** chunks (say 1MB at a time), may reduce file-system fragmentation and\n** improve performance on some systems.\n**\n** <li>[[SQLITE_FCNTL_FILE_POINTER]]\n** The [SQLITE_FCNTL_FILE_POINTER] opcode is used to obtain a pointer\n** to the [sqlite3_file] object associated with a particular database\n** connection.  See also [SQLITE_FCNTL_JOURNAL_POINTER].\n**\n** <li>[[SQLITE_FCNTL_JOURNAL_POINTER]]\n** The [SQLITE_FCNTL_JOURNAL_POINTER] opcode is used to obtain a pointer\n** to the [sqlite3_file] object associated with the journal file (either\n** the [rollback journal] or the [write-ahead log]) for a particular database\n** connection.  See also [SQLITE_FCNTL_FILE_POINTER].\n**\n** <li>[[SQLITE_FCNTL_SYNC_OMITTED]]\n** No longer in use.\n**\n** <li>[[SQLITE_FCNTL_SYNC]]\n** The [SQLITE_FCNTL_SYNC] opcode is generated internally by SQLite and\n** sent to the VFS immediately before the xSync method is invoked on a\n** database file descriptor. Or, if the xSync method is not invoked \n** because the user has configured SQLite with \n** [PRAGMA synchronous | PRAGMA synchronous=OFF] it is invoked in place \n** of the xSync method. In most cases, the pointer argument passed with\n** this file-control is NULL. However, if the database file is being synced\n** as part of a multi-database commit, the argument points to a nul-terminated\n** string containing the transactions master-journal file name. VFSes that \n** do not need this signal should silently ignore this opcode. Applications \n** should not call [sqlite3_file_control()] with this opcode as doing so may \n** disrupt the operation of the specialized VFSes that do require it.  \n**\n** <li>[[SQLITE_FCNTL_COMMIT_PHASETWO]]\n** The [SQLITE_FCNTL_COMMIT_PHASETWO] opcode is generated internally by SQLite\n** and sent to the VFS after a transaction has been committed immediately\n** but before the database is unlocked. VFSes that do not need this signal\n** should silently ignore this opcode. Applications should not call\n** [sqlite3_file_control()] with this opcode as doing so may disrupt the \n** operation of the specialized VFSes that do require it.  \n**\n** <li>[[SQLITE_FCNTL_WIN32_AV_RETRY]]\n** ^The [SQLITE_FCNTL_WIN32_AV_RETRY] opcode is used to configure automatic\n** retry counts and intervals for certain disk I/O operations for the\n** windows [VFS] in order to provide robustness in the presence of\n** anti-virus programs.  By default, the windows VFS will retry file read,\n** file write, and file delete operations up to 10 times, with a delay\n** of 25 milliseconds before the first retry and with the delay increasing\n** by an additional 25 milliseconds with each subsequent retry.  This\n** opcode allows these two values (10 retries and 25 milliseconds of delay)\n** to be adjusted.  The values are changed for all database connections\n** within the same process.  The argument is a pointer to an array of two\n** integers where the first integer is the new retry count and the second\n** integer is the delay.  If either integer is negative, then the setting\n** is not changed but instead the prior value of that setting is written\n** into the array entry, allowing the current retry settings to be\n** interrogated.  The zDbName parameter is ignored.\n**\n** <li>[[SQLITE_FCNTL_PERSIST_WAL]]\n** ^The [SQLITE_FCNTL_PERSIST_WAL] opcode is used to set or query the\n** persistent [WAL | Write Ahead Log] setting.  By default, the auxiliary\n** write ahead log and shared memory files used for transaction control\n** are automatically deleted when the latest connection to the database\n** closes.  Setting persistent WAL mode causes those files to persist after\n** close.  Persisting the files is useful when other processes that do not\n** have write permission on the directory containing the database file want\n** to read the database file, as the WAL and shared memory files must exist\n** in order for the database to be readable.  The fourth parameter to\n** [sqlite3_file_control()] for this opcode should be a pointer to an integer.\n** That integer is 0 to disable persistent WAL mode or 1 to enable persistent\n** WAL mode.  If the integer is -1, then it is overwritten with the current\n** WAL persistence setting.\n**\n** <li>[[SQLITE_FCNTL_POWERSAFE_OVERWRITE]]\n** ^The [SQLITE_FCNTL_POWERSAFE_OVERWRITE] opcode is used to set or query the\n** persistent \"powersafe-overwrite\" or \"PSOW\" setting.  The PSOW setting\n** determines the [SQLITE_IOCAP_POWERSAFE_OVERWRITE] bit of the\n** xDeviceCharacteristics methods. The fourth parameter to\n** [sqlite3_file_control()] for this opcode should be a pointer to an integer.\n** That integer is 0 to disable zero-damage mode or 1 to enable zero-damage\n** mode.  If the integer is -1, then it is overwritten with the current\n** zero-damage mode setting.\n**\n** <li>[[SQLITE_FCNTL_OVERWRITE]]\n** ^The [SQLITE_FCNTL_OVERWRITE] opcode is invoked by SQLite after opening\n** a write transaction to indicate that, unless it is rolled back for some\n** reason, the entire database file will be overwritten by the current \n** transaction. This is used by VACUUM operations.\n**\n** <li>[[SQLITE_FCNTL_VFSNAME]]\n** ^The [SQLITE_FCNTL_VFSNAME] opcode can be used to obtain the names of\n** all [VFSes] in the VFS stack.  The names are of all VFS shims and the\n** final bottom-level VFS are written into memory obtained from \n** [sqlite3_malloc()] and the result is stored in the char* variable\n** that the fourth parameter of [sqlite3_file_control()] points to.\n** The caller is responsible for freeing the memory when done.  As with\n** all file-control actions, there is no guarantee that this will actually\n** do anything.  Callers should initialize the char* variable to a NULL\n** pointer in case this file-control is not implemented.  This file-control\n** is intended for diagnostic use only.\n**\n** <li>[[SQLITE_FCNTL_VFS_POINTER]]\n** ^The [SQLITE_FCNTL_VFS_POINTER] opcode finds a pointer to the top-level\n** [VFSes] currently in use.  ^(The argument X in\n** sqlite3_file_control(db,SQLITE_FCNTL_VFS_POINTER,X) must be\n** of type \"[sqlite3_vfs] **\".  This opcodes will set *X\n** to a pointer to the top-level VFS.)^\n** ^When there are multiple VFS shims in the stack, this opcode finds the\n** upper-most shim only.\n**\n** <li>[[SQLITE_FCNTL_PRAGMA]]\n** ^Whenever a [PRAGMA] statement is parsed, an [SQLITE_FCNTL_PRAGMA] \n** file control is sent to the open [sqlite3_file] object corresponding\n** to the database file to which the pragma statement refers. ^The argument\n** to the [SQLITE_FCNTL_PRAGMA] file control is an array of\n** pointers to strings (char**) in which the second element of the array\n** is the name of the pragma and the third element is the argument to the\n** pragma or NULL if the pragma has no argument.  ^The handler for an\n** [SQLITE_FCNTL_PRAGMA] file control can optionally make the first element\n** of the char** argument point to a string obtained from [sqlite3_mprintf()]\n** or the equivalent and that string will become the result of the pragma or\n** the error message if the pragma fails. ^If the\n** [SQLITE_FCNTL_PRAGMA] file control returns [SQLITE_NOTFOUND], then normal \n** [PRAGMA] processing continues.  ^If the [SQLITE_FCNTL_PRAGMA]\n** file control returns [SQLITE_OK], then the parser assumes that the\n** VFS has handled the PRAGMA itself and the parser generates a no-op\n** prepared statement if result string is NULL, or that returns a copy\n** of the result string if the string is non-NULL.\n** ^If the [SQLITE_FCNTL_PRAGMA] file control returns\n** any result code other than [SQLITE_OK] or [SQLITE_NOTFOUND], that means\n** that the VFS encountered an error while handling the [PRAGMA] and the\n** compilation of the PRAGMA fails with an error.  ^The [SQLITE_FCNTL_PRAGMA]\n** file control occurs at the beginning of pragma statement analysis and so\n** it is able to override built-in [PRAGMA] statements.\n**\n** <li>[[SQLITE_FCNTL_BUSYHANDLER]]\n** ^The [SQLITE_FCNTL_BUSYHANDLER]\n** file-control may be invoked by SQLite on the database file handle\n** shortly after it is opened in order to provide a custom VFS with access\n** to the connections busy-handler callback. The argument is of type (void **)\n** - an array of two (void *) values. The first (void *) actually points\n** to a function of type (int (*)(void *)). In order to invoke the connections\n** busy-handler, this function should be invoked with the second (void *) in\n** the array as the only argument. If it returns non-zero, then the operation\n** should be retried. If it returns zero, the custom VFS should abandon the\n** current operation.\n**\n** <li>[[SQLITE_FCNTL_TEMPFILENAME]]\n** ^Application can invoke the [SQLITE_FCNTL_TEMPFILENAME] file-control\n** to have SQLite generate a\n** temporary filename using the same algorithm that is followed to generate\n** temporary filenames for TEMP tables and other internal uses.  The\n** argument should be a char** which will be filled with the filename\n** written into memory obtained from [sqlite3_malloc()].  The caller should\n** invoke [sqlite3_free()] on the result to avoid a memory leak.\n**\n** <li>[[SQLITE_FCNTL_MMAP_SIZE]]\n** The [SQLITE_FCNTL_MMAP_SIZE] file control is used to query or set the\n** maximum number of bytes that will be used for memory-mapped I/O.\n** The argument is a pointer to a value of type sqlite3_int64 that\n** is an advisory maximum number of bytes in the file to memory map.  The\n** pointer is overwritten with the old value.  The limit is not changed if\n** the value originally pointed to is negative, and so the current limit \n** can be queried by passing in a pointer to a negative number.  This\n** file-control is used internally to implement [PRAGMA mmap_size].\n**\n** <li>[[SQLITE_FCNTL_TRACE]]\n** The [SQLITE_FCNTL_TRACE] file control provides advisory information\n** to the VFS about what the higher layers of the SQLite stack are doing.\n** This file control is used by some VFS activity tracing [shims].\n** The argument is a zero-terminated string.  Higher layers in the\n** SQLite stack may generate instances of this file control if\n** the [SQLITE_USE_FCNTL_TRACE] compile-time option is enabled.\n**\n** <li>[[SQLITE_FCNTL_HAS_MOVED]]\n** The [SQLITE_FCNTL_HAS_MOVED] file control interprets its argument as a\n** pointer to an integer and it writes a boolean into that integer depending\n** on whether or not the file has been renamed, moved, or deleted since it\n** was first opened.\n**\n** <li>[[SQLITE_FCNTL_WIN32_GET_HANDLE]]\n** The [SQLITE_FCNTL_WIN32_GET_HANDLE] opcode can be used to obtain the\n** underlying native file handle associated with a file handle.  This file\n** control interprets its argument as a pointer to a native file handle and\n** writes the resulting value there.\n**\n** <li>[[SQLITE_FCNTL_WIN32_SET_HANDLE]]\n** The [SQLITE_FCNTL_WIN32_SET_HANDLE] opcode is used for debugging.  This\n** opcode causes the xFileControl method to swap the file handle with the one\n** pointed to by the pArg argument.  This capability is used during testing\n** and only needs to be supported when SQLITE_TEST is defined.\n**\n** <li>[[SQLITE_FCNTL_WAL_BLOCK]]\n** The [SQLITE_FCNTL_WAL_BLOCK] is a signal to the VFS layer that it might\n** be advantageous to block on the next WAL lock if the lock is not immediately\n** available.  The WAL subsystem issues this signal during rare\n** circumstances in order to fix a problem with priority inversion.\n** Applications should <em>not</em> use this file-control.\n**\n** <li>[[SQLITE_FCNTL_ZIPVFS]]\n** The [SQLITE_FCNTL_ZIPVFS] opcode is implemented by zipvfs only. All other\n** VFS should return SQLITE_NOTFOUND for this opcode.\n**\n** <li>[[SQLITE_FCNTL_RBU]]\n** The [SQLITE_FCNTL_RBU] opcode is implemented by the special VFS used by\n** the RBU extension only.  All other VFS should return SQLITE_NOTFOUND for\n** this opcode.  \n**\n** <li>[[SQLITE_FCNTL_BEGIN_ATOMIC_WRITE]]\n** If the [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] opcode returns SQLITE_OK, then\n** the file descriptor is placed in \"batch write mode\", which\n** means all subsequent write operations will be deferred and done\n** atomically at the next [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE].  Systems\n** that do not support batch atomic writes will return SQLITE_NOTFOUND.\n** ^Following a successful SQLITE_FCNTL_BEGIN_ATOMIC_WRITE and prior to\n** the closing [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE] or\n** [SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE], SQLite will make\n** no VFS interface calls on the same [sqlite3_file] file descriptor\n** except for calls to the xWrite method and the xFileControl method\n** with [SQLITE_FCNTL_SIZE_HINT].\n**\n** <li>[[SQLITE_FCNTL_COMMIT_ATOMIC_WRITE]]\n** The [SQLITE_FCNTL_COMMIT_ATOMIC_WRITE] opcode causes all write\n** operations since the previous successful call to \n** [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] to be performed atomically.\n** This file control returns [SQLITE_OK] if and only if the writes were\n** all performed successfully and have been committed to persistent storage.\n** ^Regardless of whether or not it is successful, this file control takes\n** the file descriptor out of batch write mode so that all subsequent\n** write operations are independent.\n** ^SQLite will never invoke SQLITE_FCNTL_COMMIT_ATOMIC_WRITE without\n** a prior successful call to [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE].\n**\n** <li>[[SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE]]\n** The [SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE] opcode causes all write\n** operations since the previous successful call to \n** [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE] to be rolled back.\n** ^This file control takes the file descriptor out of batch write mode\n** so that all subsequent write operations are independent.\n** ^SQLite will never invoke SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE without\n** a prior successful call to [SQLITE_FCNTL_BEGIN_ATOMIC_WRITE].\n** </ul>\n*/\n#define SQLITE_FCNTL_LOCKSTATE               1\n#define SQLITE_FCNTL_GET_LOCKPROXYFILE       2\n#define SQLITE_FCNTL_SET_LOCKPROXYFILE       3\n#define SQLITE_FCNTL_LAST_ERRNO              4\n#define SQLITE_FCNTL_SIZE_HINT               5\n#define SQLITE_FCNTL_CHUNK_SIZE              6\n#define SQLITE_FCNTL_FILE_POINTER            7\n#define SQLITE_FCNTL_SYNC_OMITTED            8\n#define SQLITE_FCNTL_WIN32_AV_RETRY          9\n#define SQLITE_FCNTL_PERSIST_WAL            10\n#define SQLITE_FCNTL_OVERWRITE              11\n#define SQLITE_FCNTL_VFSNAME                12\n#define SQLITE_FCNTL_POWERSAFE_OVERWRITE    13\n#define SQLITE_FCNTL_PRAGMA                 14\n#define SQLITE_FCNTL_BUSYHANDLER            15\n#define SQLITE_FCNTL_TEMPFILENAME           16\n#define SQLITE_FCNTL_MMAP_SIZE              18\n#define SQLITE_FCNTL_TRACE                  19\n#define SQLITE_FCNTL_HAS_MOVED              20\n#define SQLITE_FCNTL_SYNC                   21\n#define SQLITE_FCNTL_COMMIT_PHASETWO        22\n#define SQLITE_FCNTL_WIN32_SET_HANDLE       23\n#define SQLITE_FCNTL_WAL_BLOCK              24\n#define SQLITE_FCNTL_ZIPVFS                 25\n#define SQLITE_FCNTL_RBU                    26\n#define SQLITE_FCNTL_VFS_POINTER            27\n#define SQLITE_FCNTL_JOURNAL_POINTER        28\n#define SQLITE_FCNTL_WIN32_GET_HANDLE       29\n#define SQLITE_FCNTL_PDB                    30\n#define SQLITE_FCNTL_BEGIN_ATOMIC_WRITE     31\n#define SQLITE_FCNTL_COMMIT_ATOMIC_WRITE    32\n#define SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE  33\n\n/* deprecated names */\n#define SQLITE_GET_LOCKPROXYFILE      SQLITE_FCNTL_GET_LOCKPROXYFILE\n#define SQLITE_SET_LOCKPROXYFILE      SQLITE_FCNTL_SET_LOCKPROXYFILE\n#define SQLITE_LAST_ERRNO             SQLITE_FCNTL_LAST_ERRNO\n\n\n/*\n** CAPI3REF: Mutex Handle\n**\n** The mutex module within SQLite defines [sqlite3_mutex] to be an\n** abstract type for a mutex object.  The SQLite core never looks\n** at the internal representation of an [sqlite3_mutex].  It only\n** deals with pointers to the [sqlite3_mutex] object.\n**\n** Mutexes are created using [sqlite3_mutex_alloc()].\n*/\ntypedef struct sqlite3_mutex sqlite3_mutex;\n\n/*\n** CAPI3REF: Loadable Extension Thunk\n**\n** A pointer to the opaque sqlite3_api_routines structure is passed as\n** the third parameter to entry points of [loadable extensions].  This\n** structure must be typedefed in order to work around compiler warnings\n** on some platforms.\n*/\ntypedef struct sqlite3_api_routines sqlite3_api_routines;\n\n/*\n** CAPI3REF: OS Interface Object\n**\n** An instance of the sqlite3_vfs object defines the interface between\n** the SQLite core and the underlying operating system.  The \"vfs\"\n** in the name of the object stands for \"virtual file system\".  See\n** the [VFS | VFS documentation] for further information.\n**\n** The VFS interface is sometimes extended by adding new methods onto\n** the end.  Each time such an extension occurs, the iVersion field\n** is incremented.  The iVersion value started out as 1 in\n** SQLite [version 3.5.0] on [dateof:3.5.0], then increased to 2\n** with SQLite [version 3.7.0] on [dateof:3.7.0], and then increased\n** to 3 with SQLite [version 3.7.6] on [dateof:3.7.6].  Additional fields\n** may be appended to the sqlite3_vfs object and the iVersion value\n** may increase again in future versions of SQLite.\n** Note that the structure\n** of the sqlite3_vfs object changes in the transition from\n** SQLite [version 3.5.9] to [version 3.6.0] on [dateof:3.6.0]\n** and yet the iVersion field was not modified.\n**\n** The szOsFile field is the size of the subclassed [sqlite3_file]\n** structure used by this VFS.  mxPathname is the maximum length of\n** a pathname in this VFS.\n**\n** Registered sqlite3_vfs objects are kept on a linked list formed by\n** the pNext pointer.  The [sqlite3_vfs_register()]\n** and [sqlite3_vfs_unregister()] interfaces manage this list\n** in a thread-safe way.  The [sqlite3_vfs_find()] interface\n** searches the list.  Neither the application code nor the VFS\n** implementation should use the pNext pointer.\n**\n** The pNext field is the only field in the sqlite3_vfs\n** structure that SQLite will ever modify.  SQLite will only access\n** or modify this field while holding a particular static mutex.\n** The application should never modify anything within the sqlite3_vfs\n** object once the object has been registered.\n**\n** The zName field holds the name of the VFS module.  The name must\n** be unique across all VFS modules.\n**\n** [[sqlite3_vfs.xOpen]]\n** ^SQLite guarantees that the zFilename parameter to xOpen\n** is either a NULL pointer or string obtained\n** from xFullPathname() with an optional suffix added.\n** ^If a suffix is added to the zFilename parameter, it will\n** consist of a single \"-\" character followed by no more than\n** 11 alphanumeric and/or \"-\" characters.\n** ^SQLite further guarantees that\n** the string will be valid and unchanged until xClose() is\n** called. Because of the previous sentence,\n** the [sqlite3_file] can safely store a pointer to the\n** filename if it needs to remember the filename for some reason.\n** If the zFilename parameter to xOpen is a NULL pointer then xOpen\n** must invent its own temporary name for the file.  ^Whenever the \n** xFilename parameter is NULL it will also be the case that the\n** flags parameter will include [SQLITE_OPEN_DELETEONCLOSE].\n**\n** The flags argument to xOpen() includes all bits set in\n** the flags argument to [sqlite3_open_v2()].  Or if [sqlite3_open()]\n** or [sqlite3_open16()] is used, then flags includes at least\n** [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]. \n** If xOpen() opens a file read-only then it sets *pOutFlags to\n** include [SQLITE_OPEN_READONLY].  Other bits in *pOutFlags may be set.\n**\n** ^(SQLite will also add one of the following flags to the xOpen()\n** call, depending on the object being opened:\n**\n** <ul>\n** <li>  [SQLITE_OPEN_MAIN_DB]\n** <li>  [SQLITE_OPEN_MAIN_JOURNAL]\n** <li>  [SQLITE_OPEN_TEMP_DB]\n** <li>  [SQLITE_OPEN_TEMP_JOURNAL]\n** <li>  [SQLITE_OPEN_TRANSIENT_DB]\n** <li>  [SQLITE_OPEN_SUBJOURNAL]\n** <li>  [SQLITE_OPEN_MASTER_JOURNAL]\n** <li>  [SQLITE_OPEN_WAL]\n** </ul>)^\n**\n** The file I/O implementation can use the object type flags to\n** change the way it deals with files.  For example, an application\n** that does not care about crash recovery or rollback might make\n** the open of a journal file a no-op.  Writes to this journal would\n** also be no-ops, and any attempt to read the journal would return\n** SQLITE_IOERR.  Or the implementation might recognize that a database\n** file will be doing page-aligned sector reads and writes in a random\n** order and set up its I/O subsystem accordingly.\n**\n** SQLite might also add one of the following flags to the xOpen method:\n**\n** <ul>\n** <li> [SQLITE_OPEN_DELETEONCLOSE]\n** <li> [SQLITE_OPEN_EXCLUSIVE]\n** </ul>\n**\n** The [SQLITE_OPEN_DELETEONCLOSE] flag means the file should be\n** deleted when it is closed.  ^The [SQLITE_OPEN_DELETEONCLOSE]\n** will be set for TEMP databases and their journals, transient\n** databases, and subjournals.\n**\n** ^The [SQLITE_OPEN_EXCLUSIVE] flag is always used in conjunction\n** with the [SQLITE_OPEN_CREATE] flag, which are both directly\n** analogous to the O_EXCL and O_CREAT flags of the POSIX open()\n** API.  The SQLITE_OPEN_EXCLUSIVE flag, when paired with the \n** SQLITE_OPEN_CREATE, is used to indicate that file should always\n** be created, and that it is an error if it already exists.\n** It is <i>not</i> used to indicate the file should be opened \n** for exclusive access.\n**\n** ^At least szOsFile bytes of memory are allocated by SQLite\n** to hold the  [sqlite3_file] structure passed as the third\n** argument to xOpen.  The xOpen method does not have to\n** allocate the structure; it should just fill it in.  Note that\n** the xOpen method must set the sqlite3_file.pMethods to either\n** a valid [sqlite3_io_methods] object or to NULL.  xOpen must do\n** this even if the open fails.  SQLite expects that the sqlite3_file.pMethods\n** element will be valid after xOpen returns regardless of the success\n** or failure of the xOpen call.\n**\n** [[sqlite3_vfs.xAccess]]\n** ^The flags argument to xAccess() may be [SQLITE_ACCESS_EXISTS]\n** to test for the existence of a file, or [SQLITE_ACCESS_READWRITE] to\n** test whether a file is readable and writable, or [SQLITE_ACCESS_READ]\n** to test whether a file is at least readable.   The file can be a\n** directory.\n**\n** ^SQLite will always allocate at least mxPathname+1 bytes for the\n** output buffer xFullPathname.  The exact size of the output buffer\n** is also passed as a parameter to both  methods. If the output buffer\n** is not large enough, [SQLITE_CANTOPEN] should be returned. Since this is\n** handled as a fatal error by SQLite, vfs implementations should endeavor\n** to prevent this by setting mxPathname to a sufficiently large value.\n**\n** The xRandomness(), xSleep(), xCurrentTime(), and xCurrentTimeInt64()\n** interfaces are not strictly a part of the filesystem, but they are\n** included in the VFS structure for completeness.\n** The xRandomness() function attempts to return nBytes bytes\n** of good-quality randomness into zOut.  The return value is\n** the actual number of bytes of randomness obtained.\n** The xSleep() method causes the calling thread to sleep for at\n** least the number of microseconds given.  ^The xCurrentTime()\n** method returns a Julian Day Number for the current date and time as\n** a floating point value.\n** ^The xCurrentTimeInt64() method returns, as an integer, the Julian\n** Day Number multiplied by 86400000 (the number of milliseconds in \n** a 24-hour day).  \n** ^SQLite will use the xCurrentTimeInt64() method to get the current\n** date and time if that method is available (if iVersion is 2 or \n** greater and the function pointer is not NULL) and will fall back\n** to xCurrentTime() if xCurrentTimeInt64() is unavailable.\n**\n** ^The xSetSystemCall(), xGetSystemCall(), and xNestSystemCall() interfaces\n** are not used by the SQLite core.  These optional interfaces are provided\n** by some VFSes to facilitate testing of the VFS code. By overriding \n** system calls with functions under its control, a test program can\n** simulate faults and error conditions that would otherwise be difficult\n** or impossible to induce.  The set of system calls that can be overridden\n** varies from one VFS to another, and from one version of the same VFS to the\n** next.  Applications that use these interfaces must be prepared for any\n** or all of these interfaces to be NULL or for their behavior to change\n** from one release to the next.  Applications must not attempt to access\n** any of these methods if the iVersion of the VFS is less than 3.\n*/\ntypedef struct sqlite3_vfs sqlite3_vfs;\ntypedef void (*sqlite3_syscall_ptr)(void);\nstruct sqlite3_vfs {\n  int iVersion;            /* Structure version number (currently 3) */\n  int szOsFile;            /* Size of subclassed sqlite3_file */\n  int mxPathname;          /* Maximum file pathname length */\n  sqlite3_vfs *pNext;      /* Next registered VFS */\n  const char *zName;       /* Name of this virtual file system */\n  void *pAppData;          /* Pointer to application-specific data */\n  int (*xOpen)(sqlite3_vfs*, const char *zName, sqlite3_file*,\n               int flags, int *pOutFlags);\n  int (*xDelete)(sqlite3_vfs*, const char *zName, int syncDir);\n  int (*xAccess)(sqlite3_vfs*, const char *zName, int flags, int *pResOut);\n  int (*xFullPathname)(sqlite3_vfs*, const char *zName, int nOut, char *zOut);\n  void *(*xDlOpen)(sqlite3_vfs*, const char *zFilename);\n  void (*xDlError)(sqlite3_vfs*, int nByte, char *zErrMsg);\n  void (*(*xDlSym)(sqlite3_vfs*,void*, const char *zSymbol))(void);\n  void (*xDlClose)(sqlite3_vfs*, void*);\n  int (*xRandomness)(sqlite3_vfs*, int nByte, char *zOut);\n  int (*xSleep)(sqlite3_vfs*, int microseconds);\n  int (*xCurrentTime)(sqlite3_vfs*, double*);\n  int (*xGetLastError)(sqlite3_vfs*, int, char *);\n  /*\n  ** The methods above are in version 1 of the sqlite_vfs object\n  ** definition.  Those that follow are added in version 2 or later\n  */\n  int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*);\n  /*\n  ** The methods above are in versions 1 and 2 of the sqlite_vfs object.\n  ** Those below are for version 3 and greater.\n  */\n  int (*xSetSystemCall)(sqlite3_vfs*, const char *zName, sqlite3_syscall_ptr);\n  sqlite3_syscall_ptr (*xGetSystemCall)(sqlite3_vfs*, const char *zName);\n  const char *(*xNextSystemCall)(sqlite3_vfs*, const char *zName);\n  /*\n  ** The methods above are in versions 1 through 3 of the sqlite_vfs object.\n  ** New fields may be appended in future versions.  The iVersion\n  ** value will increment whenever this happens. \n  */\n};\n\n/*\n** CAPI3REF: Flags for the xAccess VFS method\n**\n** These integer constants can be used as the third parameter to\n** the xAccess method of an [sqlite3_vfs] object.  They determine\n** what kind of permissions the xAccess method is looking for.\n** With SQLITE_ACCESS_EXISTS, the xAccess method\n** simply checks whether the file exists.\n** With SQLITE_ACCESS_READWRITE, the xAccess method\n** checks whether the named directory is both readable and writable\n** (in other words, if files can be added, removed, and renamed within\n** the directory).\n** The SQLITE_ACCESS_READWRITE constant is currently used only by the\n** [temp_store_directory pragma], though this could change in a future\n** release of SQLite.\n** With SQLITE_ACCESS_READ, the xAccess method\n** checks whether the file is readable.  The SQLITE_ACCESS_READ constant is\n** currently unused, though it might be used in a future release of\n** SQLite.\n*/\n#define SQLITE_ACCESS_EXISTS    0\n#define SQLITE_ACCESS_READWRITE 1   /* Used by PRAGMA temp_store_directory */\n#define SQLITE_ACCESS_READ      2   /* Unused */\n\n/*\n** CAPI3REF: Flags for the xShmLock VFS method\n**\n** These integer constants define the various locking operations\n** allowed by the xShmLock method of [sqlite3_io_methods].  The\n** following are the only legal combinations of flags to the\n** xShmLock method:\n**\n** <ul>\n** <li>  SQLITE_SHM_LOCK | SQLITE_SHM_SHARED\n** <li>  SQLITE_SHM_LOCK | SQLITE_SHM_EXCLUSIVE\n** <li>  SQLITE_SHM_UNLOCK | SQLITE_SHM_SHARED\n** <li>  SQLITE_SHM_UNLOCK | SQLITE_SHM_EXCLUSIVE\n** </ul>\n**\n** When unlocking, the same SHARED or EXCLUSIVE flag must be supplied as\n** was given on the corresponding lock.  \n**\n** The xShmLock method can transition between unlocked and SHARED or\n** between unlocked and EXCLUSIVE.  It cannot transition between SHARED\n** and EXCLUSIVE.\n*/\n#define SQLITE_SHM_UNLOCK       1\n#define SQLITE_SHM_LOCK         2\n#define SQLITE_SHM_SHARED       4\n#define SQLITE_SHM_EXCLUSIVE    8\n\n/*\n** CAPI3REF: Maximum xShmLock index\n**\n** The xShmLock method on [sqlite3_io_methods] may use values\n** between 0 and this upper bound as its \"offset\" argument.\n** The SQLite core will never attempt to acquire or release a\n** lock outside of this range\n*/\n#define SQLITE_SHM_NLOCK        8\n\n\n/*\n** CAPI3REF: Initialize The SQLite Library\n**\n** ^The sqlite3_initialize() routine initializes the\n** SQLite library.  ^The sqlite3_shutdown() routine\n** deallocates any resources that were allocated by sqlite3_initialize().\n** These routines are designed to aid in process initialization and\n** shutdown on embedded systems.  Workstation applications using\n** SQLite normally do not need to invoke either of these routines.\n**\n** A call to sqlite3_initialize() is an \"effective\" call if it is\n** the first time sqlite3_initialize() is invoked during the lifetime of\n** the process, or if it is the first time sqlite3_initialize() is invoked\n** following a call to sqlite3_shutdown().  ^(Only an effective call\n** of sqlite3_initialize() does any initialization.  All other calls\n** are harmless no-ops.)^\n**\n** A call to sqlite3_shutdown() is an \"effective\" call if it is the first\n** call to sqlite3_shutdown() since the last sqlite3_initialize().  ^(Only\n** an effective call to sqlite3_shutdown() does any deinitialization.\n** All other valid calls to sqlite3_shutdown() are harmless no-ops.)^\n**\n** The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown()\n** is not.  The sqlite3_shutdown() interface must only be called from a\n** single thread.  All open [database connections] must be closed and all\n** other SQLite resources must be deallocated prior to invoking\n** sqlite3_shutdown().\n**\n** Among other things, ^sqlite3_initialize() will invoke\n** sqlite3_os_init().  Similarly, ^sqlite3_shutdown()\n** will invoke sqlite3_os_end().\n**\n** ^The sqlite3_initialize() routine returns [SQLITE_OK] on success.\n** ^If for some reason, sqlite3_initialize() is unable to initialize\n** the library (perhaps it is unable to allocate a needed resource such\n** as a mutex) it returns an [error code] other than [SQLITE_OK].\n**\n** ^The sqlite3_initialize() routine is called internally by many other\n** SQLite interfaces so that an application usually does not need to\n** invoke sqlite3_initialize() directly.  For example, [sqlite3_open()]\n** calls sqlite3_initialize() so the SQLite library will be automatically\n** initialized when [sqlite3_open()] is called if it has not be initialized\n** already.  ^However, if SQLite is compiled with the [SQLITE_OMIT_AUTOINIT]\n** compile-time option, then the automatic calls to sqlite3_initialize()\n** are omitted and the application must call sqlite3_initialize() directly\n** prior to using any other SQLite interface.  For maximum portability,\n** it is recommended that applications always invoke sqlite3_initialize()\n** directly prior to using any other SQLite interface.  Future releases\n** of SQLite may require this.  In other words, the behavior exhibited\n** when SQLite is compiled with [SQLITE_OMIT_AUTOINIT] might become the\n** default behavior in some future release of SQLite.\n**\n** The sqlite3_os_init() routine does operating-system specific\n** initialization of the SQLite library.  The sqlite3_os_end()\n** routine undoes the effect of sqlite3_os_init().  Typical tasks\n** performed by these routines include allocation or deallocation\n** of static resources, initialization of global variables,\n** setting up a default [sqlite3_vfs] module, or setting up\n** a default configuration using [sqlite3_config()].\n**\n** The application should never invoke either sqlite3_os_init()\n** or sqlite3_os_end() directly.  The application should only invoke\n** sqlite3_initialize() and sqlite3_shutdown().  The sqlite3_os_init()\n** interface is called automatically by sqlite3_initialize() and\n** sqlite3_os_end() is called by sqlite3_shutdown().  Appropriate\n** implementations for sqlite3_os_init() and sqlite3_os_end()\n** are built into SQLite when it is compiled for Unix, Windows, or OS/2.\n** When [custom builds | built for other platforms]\n** (using the [SQLITE_OS_OTHER=1] compile-time\n** option) the application must supply a suitable implementation for\n** sqlite3_os_init() and sqlite3_os_end().  An application-supplied\n** implementation of sqlite3_os_init() or sqlite3_os_end()\n** must return [SQLITE_OK] on success and some other [error code] upon\n** failure.\n*/\nSQLITE_API int sqlite3_initialize(void);\nSQLITE_API int sqlite3_shutdown(void);\nSQLITE_API int sqlite3_os_init(void);\nSQLITE_API int sqlite3_os_end(void);\n\n/*\n** CAPI3REF: Configuring The SQLite Library\n**\n** The sqlite3_config() interface is used to make global configuration\n** changes to SQLite in order to tune SQLite to the specific needs of\n** the application.  The default configuration is recommended for most\n** applications and so this routine is usually not necessary.  It is\n** provided to support rare applications with unusual needs.\n**\n** <b>The sqlite3_config() interface is not threadsafe. The application\n** must ensure that no other SQLite interfaces are invoked by other\n** threads while sqlite3_config() is running.</b>\n**\n** The sqlite3_config() interface\n** may only be invoked prior to library initialization using\n** [sqlite3_initialize()] or after shutdown by [sqlite3_shutdown()].\n** ^If sqlite3_config() is called after [sqlite3_initialize()] and before\n** [sqlite3_shutdown()] then it will return SQLITE_MISUSE.\n** Note, however, that ^sqlite3_config() can be called as part of the\n** implementation of an application-defined [sqlite3_os_init()].\n**\n** The first argument to sqlite3_config() is an integer\n** [configuration option] that determines\n** what property of SQLite is to be configured.  Subsequent arguments\n** vary depending on the [configuration option]\n** in the first argument.\n**\n** ^When a configuration option is set, sqlite3_config() returns [SQLITE_OK].\n** ^If the option is unknown or SQLite is unable to set the option\n** then this routine returns a non-zero [error code].\n*/\nSQLITE_API int sqlite3_config(int, ...);\n\n/*\n** CAPI3REF: Configure database connections\n** METHOD: sqlite3\n**\n** The sqlite3_db_config() interface is used to make configuration\n** changes to a [database connection].  The interface is similar to\n** [sqlite3_config()] except that the changes apply to a single\n** [database connection] (specified in the first argument).\n**\n** The second argument to sqlite3_db_config(D,V,...)  is the\n** [SQLITE_DBCONFIG_LOOKASIDE | configuration verb] - an integer code \n** that indicates what aspect of the [database connection] is being configured.\n** Subsequent arguments vary depending on the configuration verb.\n**\n** ^Calls to sqlite3_db_config() return SQLITE_OK if and only if\n** the call is considered successful.\n*/\nSQLITE_API int sqlite3_db_config(sqlite3*, int op, ...);\n\n/*\n** CAPI3REF: Memory Allocation Routines\n**\n** An instance of this object defines the interface between SQLite\n** and low-level memory allocation routines.\n**\n** This object is used in only one place in the SQLite interface.\n** A pointer to an instance of this object is the argument to\n** [sqlite3_config()] when the configuration option is\n** [SQLITE_CONFIG_MALLOC] or [SQLITE_CONFIG_GETMALLOC].  \n** By creating an instance of this object\n** and passing it to [sqlite3_config]([SQLITE_CONFIG_MALLOC])\n** during configuration, an application can specify an alternative\n** memory allocation subsystem for SQLite to use for all of its\n** dynamic memory needs.\n**\n** Note that SQLite comes with several [built-in memory allocators]\n** that are perfectly adequate for the overwhelming majority of applications\n** and that this object is only useful to a tiny minority of applications\n** with specialized memory allocation requirements.  This object is\n** also used during testing of SQLite in order to specify an alternative\n** memory allocator that simulates memory out-of-memory conditions in\n** order to verify that SQLite recovers gracefully from such\n** conditions.\n**\n** The xMalloc, xRealloc, and xFree methods must work like the\n** malloc(), realloc() and free() functions from the standard C library.\n** ^SQLite guarantees that the second argument to\n** xRealloc is always a value returned by a prior call to xRoundup.\n**\n** xSize should return the allocated size of a memory allocation\n** previously obtained from xMalloc or xRealloc.  The allocated size\n** is always at least as big as the requested size but may be larger.\n**\n** The xRoundup method returns what would be the allocated size of\n** a memory allocation given a particular requested size.  Most memory\n** allocators round up memory allocations at least to the next multiple\n** of 8.  Some allocators round up to a larger multiple or to a power of 2.\n** Every memory allocation request coming in through [sqlite3_malloc()]\n** or [sqlite3_realloc()] first calls xRoundup.  If xRoundup returns 0, \n** that causes the corresponding memory allocation to fail.\n**\n** The xInit method initializes the memory allocator.  For example,\n** it might allocate any require mutexes or initialize internal data\n** structures.  The xShutdown method is invoked (indirectly) by\n** [sqlite3_shutdown()] and should deallocate any resources acquired\n** by xInit.  The pAppData pointer is used as the only parameter to\n** xInit and xShutdown.\n**\n** SQLite holds the [SQLITE_MUTEX_STATIC_MASTER] mutex when it invokes\n** the xInit method, so the xInit method need not be threadsafe.  The\n** xShutdown method is only called from [sqlite3_shutdown()] so it does\n** not need to be threadsafe either.  For all other methods, SQLite\n** holds the [SQLITE_MUTEX_STATIC_MEM] mutex as long as the\n** [SQLITE_CONFIG_MEMSTATUS] configuration option is turned on (which\n** it is by default) and so the methods are automatically serialized.\n** However, if [SQLITE_CONFIG_MEMSTATUS] is disabled, then the other\n** methods must be threadsafe or else make their own arrangements for\n** serialization.\n**\n** SQLite will never invoke xInit() more than once without an intervening\n** call to xShutdown().\n*/\ntypedef struct sqlite3_mem_methods sqlite3_mem_methods;\nstruct sqlite3_mem_methods {\n  void *(*xMalloc)(int);         /* Memory allocation function */\n  void (*xFree)(void*);          /* Free a prior allocation */\n  void *(*xRealloc)(void*,int);  /* Resize an allocation */\n  int (*xSize)(void*);           /* Return the size of an allocation */\n  int (*xRoundup)(int);          /* Round up request size to allocation size */\n  int (*xInit)(void*);           /* Initialize the memory allocator */\n  void (*xShutdown)(void*);      /* Deinitialize the memory allocator */\n  void *pAppData;                /* Argument to xInit() and xShutdown() */\n};\n\n/*\n** CAPI3REF: Configuration Options\n** KEYWORDS: {configuration option}\n**\n** These constants are the available integer configuration options that\n** can be passed as the first argument to the [sqlite3_config()] interface.\n**\n** New configuration options may be added in future releases of SQLite.\n** Existing configuration options might be discontinued.  Applications\n** should check the return code from [sqlite3_config()] to make sure that\n** the call worked.  The [sqlite3_config()] interface will return a\n** non-zero [error code] if a discontinued or unsupported configuration option\n** is invoked.\n**\n** <dl>\n** [[SQLITE_CONFIG_SINGLETHREAD]] <dt>SQLITE_CONFIG_SINGLETHREAD</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Single-thread.  In other words, it disables\n** all mutexing and puts SQLite into a mode where it can only be used\n** by a single thread.   ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to change the [threading mode] from its default\n** value of Single-thread and so [sqlite3_config()] will return \n** [SQLITE_ERROR] if called with the SQLITE_CONFIG_SINGLETHREAD\n** configuration option.</dd>\n**\n** [[SQLITE_CONFIG_MULTITHREAD]] <dt>SQLITE_CONFIG_MULTITHREAD</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Multi-thread.  In other words, it disables\n** mutexing on [database connection] and [prepared statement] objects.\n** The application is responsible for serializing access to\n** [database connections] and [prepared statements].  But other mutexes\n** are enabled so that SQLite will be safe to use in a multi-threaded\n** environment as long as no two threads attempt to use the same\n** [database connection] at the same time.  ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to set the Multi-thread [threading mode] and\n** [sqlite3_config()] will return [SQLITE_ERROR] if called with the\n** SQLITE_CONFIG_MULTITHREAD configuration option.</dd>\n**\n** [[SQLITE_CONFIG_SERIALIZED]] <dt>SQLITE_CONFIG_SERIALIZED</dt>\n** <dd>There are no arguments to this option.  ^This option sets the\n** [threading mode] to Serialized. In other words, this option enables\n** all mutexes including the recursive\n** mutexes on [database connection] and [prepared statement] objects.\n** In this mode (which is the default when SQLite is compiled with\n** [SQLITE_THREADSAFE=1]) the SQLite library will itself serialize access\n** to [database connections] and [prepared statements] so that the\n** application is free to use the same [database connection] or the\n** same [prepared statement] in different threads at the same time.\n** ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** it is not possible to set the Serialized [threading mode] and\n** [sqlite3_config()] will return [SQLITE_ERROR] if called with the\n** SQLITE_CONFIG_SERIALIZED configuration option.</dd>\n**\n** [[SQLITE_CONFIG_MALLOC]] <dt>SQLITE_CONFIG_MALLOC</dt>\n** <dd> ^(The SQLITE_CONFIG_MALLOC option takes a single argument which is \n** a pointer to an instance of the [sqlite3_mem_methods] structure.\n** The argument specifies\n** alternative low-level memory allocation routines to be used in place of\n** the memory allocation routines built into SQLite.)^ ^SQLite makes\n** its own private copy of the content of the [sqlite3_mem_methods] structure\n** before the [sqlite3_config()] call returns.</dd>\n**\n** [[SQLITE_CONFIG_GETMALLOC]] <dt>SQLITE_CONFIG_GETMALLOC</dt>\n** <dd> ^(The SQLITE_CONFIG_GETMALLOC option takes a single argument which\n** is a pointer to an instance of the [sqlite3_mem_methods] structure.\n** The [sqlite3_mem_methods]\n** structure is filled with the currently defined memory allocation routines.)^\n** This option can be used to overload the default memory allocation\n** routines with a wrapper that simulations memory allocation failure or\n** tracks memory usage, for example. </dd>\n**\n** [[SQLITE_CONFIG_SMALL_MALLOC]] <dt>SQLITE_CONFIG_SMALL_MALLOC</dt>\n** <dd> ^The SQLITE_CONFIG_SMALL_MALLOC option takes single argument of\n** type int, interpreted as a boolean, which if true provides a hint to\n** SQLite that it should avoid large memory allocations if possible.\n** SQLite will run faster if it is free to make large memory allocations,\n** but some application might prefer to run slower in exchange for\n** guarantees about memory fragmentation that are possible if large\n** allocations are avoided.  This hint is normally off.\n** </dd>\n**\n** [[SQLITE_CONFIG_MEMSTATUS]] <dt>SQLITE_CONFIG_MEMSTATUS</dt>\n** <dd> ^The SQLITE_CONFIG_MEMSTATUS option takes single argument of type int,\n** interpreted as a boolean, which enables or disables the collection of\n** memory allocation statistics. ^(When memory allocation statistics are\n** disabled, the following SQLite interfaces become non-operational:\n**   <ul>\n**   <li> [sqlite3_memory_used()]\n**   <li> [sqlite3_memory_highwater()]\n**   <li> [sqlite3_soft_heap_limit64()]\n**   <li> [sqlite3_status64()]\n**   </ul>)^\n** ^Memory allocation statistics are enabled by default unless SQLite is\n** compiled with [SQLITE_DEFAULT_MEMSTATUS]=0 in which case memory\n** allocation statistics are disabled by default.\n** </dd>\n**\n** [[SQLITE_CONFIG_SCRATCH]] <dt>SQLITE_CONFIG_SCRATCH</dt>\n** <dd> The SQLITE_CONFIG_SCRATCH option is no longer used.\n** </dd>\n**\n** [[SQLITE_CONFIG_PAGECACHE]] <dt>SQLITE_CONFIG_PAGECACHE</dt>\n** <dd> ^The SQLITE_CONFIG_PAGECACHE option specifies a memory pool\n** that SQLite can use for the database page cache with the default page\n** cache implementation.  \n** This configuration option is a no-op if an application-define page\n** cache implementation is loaded using the [SQLITE_CONFIG_PCACHE2].\n** ^There are three arguments to SQLITE_CONFIG_PAGECACHE: A pointer to\n** 8-byte aligned memory (pMem), the size of each page cache line (sz),\n** and the number of cache lines (N).\n** The sz argument should be the size of the largest database page\n** (a power of two between 512 and 65536) plus some extra bytes for each\n** page header.  ^The number of extra bytes needed by the page header\n** can be determined using [SQLITE_CONFIG_PCACHE_HDRSZ].\n** ^It is harmless, apart from the wasted memory,\n** for the sz parameter to be larger than necessary.  The pMem\n** argument must be either a NULL pointer or a pointer to an 8-byte\n** aligned block of memory of at least sz*N bytes, otherwise\n** subsequent behavior is undefined.\n** ^When pMem is not NULL, SQLite will strive to use the memory provided\n** to satisfy page cache needs, falling back to [sqlite3_malloc()] if\n** a page cache line is larger than sz bytes or if all of the pMem buffer\n** is exhausted.\n** ^If pMem is NULL and N is non-zero, then each database connection\n** does an initial bulk allocation for page cache memory\n** from [sqlite3_malloc()] sufficient for N cache lines if N is positive or\n** of -1024*N bytes if N is negative, . ^If additional\n** page cache memory is needed beyond what is provided by the initial\n** allocation, then SQLite goes to [sqlite3_malloc()] separately for each\n** additional cache line. </dd>\n**\n** [[SQLITE_CONFIG_HEAP]] <dt>SQLITE_CONFIG_HEAP</dt>\n** <dd> ^The SQLITE_CONFIG_HEAP option specifies a static memory buffer \n** that SQLite will use for all of its dynamic memory allocation needs\n** beyond those provided for by [SQLITE_CONFIG_PAGECACHE].\n** ^The SQLITE_CONFIG_HEAP option is only available if SQLite is compiled\n** with either [SQLITE_ENABLE_MEMSYS3] or [SQLITE_ENABLE_MEMSYS5] and returns\n** [SQLITE_ERROR] if invoked otherwise.\n** ^There are three arguments to SQLITE_CONFIG_HEAP:\n** An 8-byte aligned pointer to the memory,\n** the number of bytes in the memory buffer, and the minimum allocation size.\n** ^If the first pointer (the memory pointer) is NULL, then SQLite reverts\n** to using its default memory allocator (the system malloc() implementation),\n** undoing any prior invocation of [SQLITE_CONFIG_MALLOC].  ^If the\n** memory pointer is not NULL then the alternative memory\n** allocator is engaged to handle all of SQLites memory allocation needs.\n** The first pointer (the memory pointer) must be aligned to an 8-byte\n** boundary or subsequent behavior of SQLite will be undefined.\n** The minimum allocation size is capped at 2**12. Reasonable values\n** for the minimum allocation size are 2**5 through 2**8.</dd>\n**\n** [[SQLITE_CONFIG_MUTEX]] <dt>SQLITE_CONFIG_MUTEX</dt>\n** <dd> ^(The SQLITE_CONFIG_MUTEX option takes a single argument which is a\n** pointer to an instance of the [sqlite3_mutex_methods] structure.\n** The argument specifies alternative low-level mutex routines to be used\n** in place the mutex routines built into SQLite.)^  ^SQLite makes a copy of\n** the content of the [sqlite3_mutex_methods] structure before the call to\n** [sqlite3_config()] returns. ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** the entire mutexing subsystem is omitted from the build and hence calls to\n** [sqlite3_config()] with the SQLITE_CONFIG_MUTEX configuration option will\n** return [SQLITE_ERROR].</dd>\n**\n** [[SQLITE_CONFIG_GETMUTEX]] <dt>SQLITE_CONFIG_GETMUTEX</dt>\n** <dd> ^(The SQLITE_CONFIG_GETMUTEX option takes a single argument which\n** is a pointer to an instance of the [sqlite3_mutex_methods] structure.  The\n** [sqlite3_mutex_methods]\n** structure is filled with the currently defined mutex routines.)^\n** This option can be used to overload the default mutex allocation\n** routines with a wrapper used to track mutex usage for performance\n** profiling or testing, for example.   ^If SQLite is compiled with\n** the [SQLITE_THREADSAFE | SQLITE_THREADSAFE=0] compile-time option then\n** the entire mutexing subsystem is omitted from the build and hence calls to\n** [sqlite3_config()] with the SQLITE_CONFIG_GETMUTEX configuration option will\n** return [SQLITE_ERROR].</dd>\n**\n** [[SQLITE_CONFIG_LOOKASIDE]] <dt>SQLITE_CONFIG_LOOKASIDE</dt>\n** <dd> ^(The SQLITE_CONFIG_LOOKASIDE option takes two arguments that determine\n** the default size of lookaside memory on each [database connection].\n** The first argument is the\n** size of each lookaside buffer slot and the second is the number of\n** slots allocated to each database connection.)^  ^(SQLITE_CONFIG_LOOKASIDE\n** sets the <i>default</i> lookaside size. The [SQLITE_DBCONFIG_LOOKASIDE]\n** option to [sqlite3_db_config()] can be used to change the lookaside\n** configuration on individual connections.)^ </dd>\n**\n** [[SQLITE_CONFIG_PCACHE2]] <dt>SQLITE_CONFIG_PCACHE2</dt>\n** <dd> ^(The SQLITE_CONFIG_PCACHE2 option takes a single argument which is \n** a pointer to an [sqlite3_pcache_methods2] object.  This object specifies\n** the interface to a custom page cache implementation.)^\n** ^SQLite makes a copy of the [sqlite3_pcache_methods2] object.</dd>\n**\n** [[SQLITE_CONFIG_GETPCACHE2]] <dt>SQLITE_CONFIG_GETPCACHE2</dt>\n** <dd> ^(The SQLITE_CONFIG_GETPCACHE2 option takes a single argument which\n** is a pointer to an [sqlite3_pcache_methods2] object.  SQLite copies of\n** the current page cache implementation into that object.)^ </dd>\n**\n** [[SQLITE_CONFIG_LOG]] <dt>SQLITE_CONFIG_LOG</dt>\n** <dd> The SQLITE_CONFIG_LOG option is used to configure the SQLite\n** global [error log].\n** (^The SQLITE_CONFIG_LOG option takes two arguments: a pointer to a\n** function with a call signature of void(*)(void*,int,const char*), \n** and a pointer to void. ^If the function pointer is not NULL, it is\n** invoked by [sqlite3_log()] to process each logging event.  ^If the\n** function pointer is NULL, the [sqlite3_log()] interface becomes a no-op.\n** ^The void pointer that is the second argument to SQLITE_CONFIG_LOG is\n** passed through as the first parameter to the application-defined logger\n** function whenever that function is invoked.  ^The second parameter to\n** the logger function is a copy of the first parameter to the corresponding\n** [sqlite3_log()] call and is intended to be a [result code] or an\n** [extended result code].  ^The third parameter passed to the logger is\n** log message after formatting via [sqlite3_snprintf()].\n** The SQLite logging interface is not reentrant; the logger function\n** supplied by the application must not invoke any SQLite interface.\n** In a multi-threaded application, the application-defined logger\n** function must be threadsafe. </dd>\n**\n** [[SQLITE_CONFIG_URI]] <dt>SQLITE_CONFIG_URI\n** <dd>^(The SQLITE_CONFIG_URI option takes a single argument of type int.\n** If non-zero, then URI handling is globally enabled. If the parameter is zero,\n** then URI handling is globally disabled.)^ ^If URI handling is globally\n** enabled, all filenames passed to [sqlite3_open()], [sqlite3_open_v2()],\n** [sqlite3_open16()] or\n** specified as part of [ATTACH] commands are interpreted as URIs, regardless\n** of whether or not the [SQLITE_OPEN_URI] flag is set when the database\n** connection is opened. ^If it is globally disabled, filenames are\n** only interpreted as URIs if the SQLITE_OPEN_URI flag is set when the\n** database connection is opened. ^(By default, URI handling is globally\n** disabled. The default value may be changed by compiling with the\n** [SQLITE_USE_URI] symbol defined.)^\n**\n** [[SQLITE_CONFIG_COVERING_INDEX_SCAN]] <dt>SQLITE_CONFIG_COVERING_INDEX_SCAN\n** <dd>^The SQLITE_CONFIG_COVERING_INDEX_SCAN option takes a single integer\n** argument which is interpreted as a boolean in order to enable or disable\n** the use of covering indices for full table scans in the query optimizer.\n** ^The default setting is determined\n** by the [SQLITE_ALLOW_COVERING_INDEX_SCAN] compile-time option, or is \"on\"\n** if that compile-time option is omitted.\n** The ability to disable the use of covering indices for full table scans\n** is because some incorrectly coded legacy applications might malfunction\n** when the optimization is enabled.  Providing the ability to\n** disable the optimization allows the older, buggy application code to work\n** without change even with newer versions of SQLite.\n**\n** [[SQLITE_CONFIG_PCACHE]] [[SQLITE_CONFIG_GETPCACHE]]\n** <dt>SQLITE_CONFIG_PCACHE and SQLITE_CONFIG_GETPCACHE\n** <dd> These options are obsolete and should not be used by new code.\n** They are retained for backwards compatibility but are now no-ops.\n** </dd>\n**\n** [[SQLITE_CONFIG_SQLLOG]]\n** <dt>SQLITE_CONFIG_SQLLOG\n** <dd>This option is only available if sqlite is compiled with the\n** [SQLITE_ENABLE_SQLLOG] pre-processor macro defined. The first argument should\n** be a pointer to a function of type void(*)(void*,sqlite3*,const char*, int).\n** The second should be of type (void*). The callback is invoked by the library\n** in three separate circumstances, identified by the value passed as the\n** fourth parameter. If the fourth parameter is 0, then the database connection\n** passed as the second argument has just been opened. The third argument\n** points to a buffer containing the name of the main database file. If the\n** fourth parameter is 1, then the SQL statement that the third parameter\n** points to has just been executed. Or, if the fourth parameter is 2, then\n** the connection being passed as the second parameter is being closed. The\n** third parameter is passed NULL In this case.  An example of using this\n** configuration option can be seen in the \"test_sqllog.c\" source file in\n** the canonical SQLite source tree.</dd>\n**\n** [[SQLITE_CONFIG_MMAP_SIZE]]\n** <dt>SQLITE_CONFIG_MMAP_SIZE\n** <dd>^SQLITE_CONFIG_MMAP_SIZE takes two 64-bit integer (sqlite3_int64) values\n** that are the default mmap size limit (the default setting for\n** [PRAGMA mmap_size]) and the maximum allowed mmap size limit.\n** ^The default setting can be overridden by each database connection using\n** either the [PRAGMA mmap_size] command, or by using the\n** [SQLITE_FCNTL_MMAP_SIZE] file control.  ^(The maximum allowed mmap size\n** will be silently truncated if necessary so that it does not exceed the\n** compile-time maximum mmap size set by the\n** [SQLITE_MAX_MMAP_SIZE] compile-time option.)^\n** ^If either argument to this option is negative, then that argument is\n** changed to its compile-time default.\n**\n** [[SQLITE_CONFIG_WIN32_HEAPSIZE]]\n** <dt>SQLITE_CONFIG_WIN32_HEAPSIZE\n** <dd>^The SQLITE_CONFIG_WIN32_HEAPSIZE option is only available if SQLite is\n** compiled for Windows with the [SQLITE_WIN32_MALLOC] pre-processor macro\n** defined. ^SQLITE_CONFIG_WIN32_HEAPSIZE takes a 32-bit unsigned integer value\n** that specifies the maximum size of the created heap.\n**\n** [[SQLITE_CONFIG_PCACHE_HDRSZ]]\n** <dt>SQLITE_CONFIG_PCACHE_HDRSZ\n** <dd>^The SQLITE_CONFIG_PCACHE_HDRSZ option takes a single parameter which\n** is a pointer to an integer and writes into that integer the number of extra\n** bytes per page required for each page in [SQLITE_CONFIG_PAGECACHE].\n** The amount of extra space required can change depending on the compiler,\n** target platform, and SQLite version.\n**\n** [[SQLITE_CONFIG_PMASZ]]\n** <dt>SQLITE_CONFIG_PMASZ\n** <dd>^The SQLITE_CONFIG_PMASZ option takes a single parameter which\n** is an unsigned integer and sets the \"Minimum PMA Size\" for the multithreaded\n** sorter to that integer.  The default minimum PMA Size is set by the\n** [SQLITE_SORTER_PMASZ] compile-time option.  New threads are launched\n** to help with sort operations when multithreaded sorting\n** is enabled (using the [PRAGMA threads] command) and the amount of content\n** to be sorted exceeds the page size times the minimum of the\n** [PRAGMA cache_size] setting and this value.\n**\n** [[SQLITE_CONFIG_STMTJRNL_SPILL]]\n** <dt>SQLITE_CONFIG_STMTJRNL_SPILL\n** <dd>^The SQLITE_CONFIG_STMTJRNL_SPILL option takes a single parameter which\n** becomes the [statement journal] spill-to-disk threshold.  \n** [Statement journals] are held in memory until their size (in bytes)\n** exceeds this threshold, at which point they are written to disk.\n** Or if the threshold is -1, statement journals are always held\n** exclusively in memory.\n** Since many statement journals never become large, setting the spill\n** threshold to a value such as 64KiB can greatly reduce the amount of\n** I/O required to support statement rollback.\n** The default value for this setting is controlled by the\n** [SQLITE_STMTJRNL_SPILL] compile-time option.\n** </dl>\n*/\n#define SQLITE_CONFIG_SINGLETHREAD  1  /* nil */\n#define SQLITE_CONFIG_MULTITHREAD   2  /* nil */\n#define SQLITE_CONFIG_SERIALIZED    3  /* nil */\n#define SQLITE_CONFIG_MALLOC        4  /* sqlite3_mem_methods* */\n#define SQLITE_CONFIG_GETMALLOC     5  /* sqlite3_mem_methods* */\n#define SQLITE_CONFIG_SCRATCH       6  /* No longer used */\n#define SQLITE_CONFIG_PAGECACHE     7  /* void*, int sz, int N */\n#define SQLITE_CONFIG_HEAP          8  /* void*, int nByte, int min */\n#define SQLITE_CONFIG_MEMSTATUS     9  /* boolean */\n#define SQLITE_CONFIG_MUTEX        10  /* sqlite3_mutex_methods* */\n#define SQLITE_CONFIG_GETMUTEX     11  /* sqlite3_mutex_methods* */\n/* previously SQLITE_CONFIG_CHUNKALLOC 12 which is now unused. */ \n#define SQLITE_CONFIG_LOOKASIDE    13  /* int int */\n#define SQLITE_CONFIG_PCACHE       14  /* no-op */\n#define SQLITE_CONFIG_GETPCACHE    15  /* no-op */\n#define SQLITE_CONFIG_LOG          16  /* xFunc, void* */\n#define SQLITE_CONFIG_URI          17  /* int */\n#define SQLITE_CONFIG_PCACHE2      18  /* sqlite3_pcache_methods2* */\n#define SQLITE_CONFIG_GETPCACHE2   19  /* sqlite3_pcache_methods2* */\n#define SQLITE_CONFIG_COVERING_INDEX_SCAN 20  /* int */\n#define SQLITE_CONFIG_SQLLOG       21  /* xSqllog, void* */\n#define SQLITE_CONFIG_MMAP_SIZE    22  /* sqlite3_int64, sqlite3_int64 */\n#define SQLITE_CONFIG_WIN32_HEAPSIZE      23  /* int nByte */\n#define SQLITE_CONFIG_PCACHE_HDRSZ        24  /* int *psz */\n#define SQLITE_CONFIG_PMASZ               25  /* unsigned int szPma */\n#define SQLITE_CONFIG_STMTJRNL_SPILL      26  /* int nByte */\n#define SQLITE_CONFIG_SMALL_MALLOC        27  /* boolean */\n\n/*\n** CAPI3REF: Database Connection Configuration Options\n**\n** These constants are the available integer configuration options that\n** can be passed as the second argument to the [sqlite3_db_config()] interface.\n**\n** New configuration options may be added in future releases of SQLite.\n** Existing configuration options might be discontinued.  Applications\n** should check the return code from [sqlite3_db_config()] to make sure that\n** the call worked.  ^The [sqlite3_db_config()] interface will return a\n** non-zero [error code] if a discontinued or unsupported configuration option\n** is invoked.\n**\n** <dl>\n** <dt>SQLITE_DBCONFIG_LOOKASIDE</dt>\n** <dd> ^This option takes three additional arguments that determine the \n** [lookaside memory allocator] configuration for the [database connection].\n** ^The first argument (the third parameter to [sqlite3_db_config()] is a\n** pointer to a memory buffer to use for lookaside memory.\n** ^The first argument after the SQLITE_DBCONFIG_LOOKASIDE verb\n** may be NULL in which case SQLite will allocate the\n** lookaside buffer itself using [sqlite3_malloc()]. ^The second argument is the\n** size of each lookaside buffer slot.  ^The third argument is the number of\n** slots.  The size of the buffer in the first argument must be greater than\n** or equal to the product of the second and third arguments.  The buffer\n** must be aligned to an 8-byte boundary.  ^If the second argument to\n** SQLITE_DBCONFIG_LOOKASIDE is not a multiple of 8, it is internally\n** rounded down to the next smaller multiple of 8.  ^(The lookaside memory\n** configuration for a database connection can only be changed when that\n** connection is not currently using lookaside memory, or in other words\n** when the \"current value\" returned by\n** [sqlite3_db_status](D,[SQLITE_CONFIG_LOOKASIDE],...) is zero.\n** Any attempt to change the lookaside memory configuration when lookaside\n** memory is in use leaves the configuration unchanged and returns \n** [SQLITE_BUSY].)^</dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_FKEY</dt>\n** <dd> ^This option is used to enable or disable the enforcement of\n** [foreign key constraints].  There should be two additional arguments.\n** The first argument is an integer which is 0 to disable FK enforcement,\n** positive to enable FK enforcement or negative to leave FK enforcement\n** unchanged.  The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether FK enforcement is off or on\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the FK enforcement setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_TRIGGER</dt>\n** <dd> ^This option is used to enable or disable [CREATE TRIGGER | triggers].\n** There should be two additional arguments.\n** The first argument is an integer which is 0 to disable triggers,\n** positive to enable triggers or negative to leave the setting unchanged.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether triggers are disabled or enabled\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the trigger setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</dt>\n** <dd> ^This option is used to enable or disable the two-argument\n** version of the [fts3_tokenizer()] function which is part of the\n** [FTS3] full-text search engine extension.\n** There should be two additional arguments.\n** The first argument is an integer which is 0 to disable fts3_tokenizer() or\n** positive to enable fts3_tokenizer() or negative to leave the setting\n** unchanged.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether fts3_tokenizer is disabled or enabled\n** following this call.  The second parameter may be a NULL pointer, in\n** which case the new setting is not reported back. </dd>\n**\n** <dt>SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION</dt>\n** <dd> ^This option is used to enable or disable the [sqlite3_load_extension()]\n** interface independently of the [load_extension()] SQL function.\n** The [sqlite3_enable_load_extension()] API enables or disables both the\n** C-API [sqlite3_load_extension()] and the SQL function [load_extension()].\n** There should be two additional arguments.\n** When the first argument to this interface is 1, then only the C-API is\n** enabled and the SQL function remains disabled.  If the first argument to\n** this interface is 0, then both the C-API and the SQL function are disabled.\n** If the first argument is -1, then no changes are made to state of either the\n** C-API or the SQL function.\n** The second parameter is a pointer to an integer into which\n** is written 0 or 1 to indicate whether [sqlite3_load_extension()] interface\n** is disabled or enabled following this call.  The second parameter may\n** be a NULL pointer, in which case the new setting is not reported back.\n** </dd>\n**\n** <dt>SQLITE_DBCONFIG_MAINDBNAME</dt>\n** <dd> ^This option is used to change the name of the \"main\" database\n** schema.  ^The sole argument is a pointer to a constant UTF8 string\n** which will become the new schema name in place of \"main\".  ^SQLite\n** does not make a copy of the new main schema name string, so the application\n** must ensure that the argument passed into this DBCONFIG option is unchanged\n** until after the database connection closes.\n** </dd>\n**\n** <dt>SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE</dt>\n** <dd> Usually, when a database in wal mode is closed or detached from a \n** database handle, SQLite checks if this will mean that there are now no \n** connections at all to the database. If so, it performs a checkpoint \n** operation before closing the connection. This option may be used to\n** override this behaviour. The first parameter passed to this operation\n** is an integer - non-zero to disable checkpoints-on-close, or zero (the\n** default) to enable them. The second parameter is a pointer to an integer\n** into which is written 0 or 1 to indicate whether checkpoints-on-close\n** have been disabled - 0 if they are not disabled, 1 if they are.\n** </dd>\n** <dt>SQLITE_DBCONFIG_ENABLE_QPSG</dt>\n** <dd>^(The SQLITE_DBCONFIG_ENABLE_QPSG option activates or deactivates\n** the [query planner stability guarantee] (QPSG).  When the QPSG is active,\n** a single SQL query statement will always use the same algorithm regardless\n** of values of [bound parameters].)^ The QPSG disables some query optimizations\n** that look at the values of bound parameters, which can make some queries\n** slower.  But the QPSG has the advantage of more predictable behavior.  With\n** the QPSG active, SQLite will always use the same query plan in the field as\n** was used during testing in the lab.\n** </dd>\n** <dt>SQLITE_DBCONFIG_TRIGGER_EQP</dt>\n** <dd> By default, the output of EXPLAIN QUERY PLAN commands does not \n** include output for any operations performed by trigger programs. This\n** option is used to set or clear (the default) a flag that governs this\n** behavior. The first parameter passed to this operation is an integer -\n** non-zero to enable output for trigger programs, or zero to disable it.\n** The second parameter is a pointer to an integer into which is written \n** 0 or 1 to indicate whether output-for-triggers has been disabled - 0 if \n** it is not disabled, 1 if it is.  \n** </dd>\n** </dl>\n*/\n#define SQLITE_DBCONFIG_MAINDBNAME            1000 /* const char* */\n#define SQLITE_DBCONFIG_LOOKASIDE             1001 /* void* int int */\n#define SQLITE_DBCONFIG_ENABLE_FKEY           1002 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_TRIGGER        1003 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER 1004 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION 1005 /* int int* */\n#define SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE      1006 /* int int* */\n#define SQLITE_DBCONFIG_ENABLE_QPSG           1007 /* int int* */\n#define SQLITE_DBCONFIG_TRIGGER_EQP           1008 /* int int* */\n#define SQLITE_DBCONFIG_MAX                   1008 /* Largest DBCONFIG */\n\n/*\n** CAPI3REF: Enable Or Disable Extended Result Codes\n** METHOD: sqlite3\n**\n** ^The sqlite3_extended_result_codes() routine enables or disables the\n** [extended result codes] feature of SQLite. ^The extended result\n** codes are disabled by default for historical compatibility.\n*/\nSQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);\n\n/*\n** CAPI3REF: Last Insert Rowid\n** METHOD: sqlite3\n**\n** ^Each entry in most SQLite tables (except for [WITHOUT ROWID] tables)\n** has a unique 64-bit signed\n** integer key called the [ROWID | \"rowid\"]. ^The rowid is always available\n** as an undeclared column named ROWID, OID, or _ROWID_ as long as those\n** names are not also used by explicitly declared columns. ^If\n** the table has a column of type [INTEGER PRIMARY KEY] then that column\n** is another alias for the rowid.\n**\n** ^The sqlite3_last_insert_rowid(D) interface usually returns the [rowid] of\n** the most recent successful [INSERT] into a rowid table or [virtual table]\n** on database connection D. ^Inserts into [WITHOUT ROWID] tables are not\n** recorded. ^If no successful [INSERT]s into rowid tables have ever occurred \n** on the database connection D, then sqlite3_last_insert_rowid(D) returns \n** zero.\n**\n** As well as being set automatically as rows are inserted into database\n** tables, the value returned by this function may be set explicitly by\n** [sqlite3_set_last_insert_rowid()]\n**\n** Some virtual table implementations may INSERT rows into rowid tables as\n** part of committing a transaction (e.g. to flush data accumulated in memory\n** to disk). In this case subsequent calls to this function return the rowid\n** associated with these internal INSERT operations, which leads to \n** unintuitive results. Virtual table implementations that do write to rowid\n** tables in this way can avoid this problem by restoring the original \n** rowid value using [sqlite3_set_last_insert_rowid()] before returning \n** control to the user.\n**\n** ^(If an [INSERT] occurs within a trigger then this routine will \n** return the [rowid] of the inserted row as long as the trigger is \n** running. Once the trigger program ends, the value returned \n** by this routine reverts to what it was before the trigger was fired.)^\n**\n** ^An [INSERT] that fails due to a constraint violation is not a\n** successful [INSERT] and does not change the value returned by this\n** routine.  ^Thus INSERT OR FAIL, INSERT OR IGNORE, INSERT OR ROLLBACK,\n** and INSERT OR ABORT make no changes to the return value of this\n** routine when their insertion fails.  ^(When INSERT OR REPLACE\n** encounters a constraint violation, it does not fail.  The\n** INSERT continues to completion after deleting rows that caused\n** the constraint problem so INSERT OR REPLACE will always change\n** the return value of this interface.)^\n**\n** ^For the purposes of this routine, an [INSERT] is considered to\n** be successful even if it is subsequently rolled back.\n**\n** This function is accessible to SQL statements via the\n** [last_insert_rowid() SQL function].\n**\n** If a separate thread performs a new [INSERT] on the same\n** database connection while the [sqlite3_last_insert_rowid()]\n** function is running and thus changes the last insert [rowid],\n** then the value returned by [sqlite3_last_insert_rowid()] is\n** unpredictable and might not equal either the old or the new\n** last insert [rowid].\n*/\nSQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);\n\n/*\n** CAPI3REF: Set the Last Insert Rowid value.\n** METHOD: sqlite3\n**\n** The sqlite3_set_last_insert_rowid(D, R) method allows the application to\n** set the value returned by calling sqlite3_last_insert_rowid(D) to R \n** without inserting a row into the database.\n*/\nSQLITE_API void sqlite3_set_last_insert_rowid(sqlite3*,sqlite3_int64);\n\n/*\n** CAPI3REF: Count The Number Of Rows Modified\n** METHOD: sqlite3\n**\n** ^This function returns the number of rows modified, inserted or\n** deleted by the most recently completed INSERT, UPDATE or DELETE\n** statement on the database connection specified by the only parameter.\n** ^Executing any other type of SQL statement does not modify the value\n** returned by this function.\n**\n** ^Only changes made directly by the INSERT, UPDATE or DELETE statement are\n** considered - auxiliary changes caused by [CREATE TRIGGER | triggers], \n** [foreign key actions] or [REPLACE] constraint resolution are not counted.\n** \n** Changes to a view that are intercepted by \n** [INSTEAD OF trigger | INSTEAD OF triggers] are not counted. ^The value \n** returned by sqlite3_changes() immediately after an INSERT, UPDATE or \n** DELETE statement run on a view is always zero. Only changes made to real \n** tables are counted.\n**\n** Things are more complicated if the sqlite3_changes() function is\n** executed while a trigger program is running. This may happen if the\n** program uses the [changes() SQL function], or if some other callback\n** function invokes sqlite3_changes() directly. Essentially:\n** \n** <ul>\n**   <li> ^(Before entering a trigger program the value returned by\n**        sqlite3_changes() function is saved. After the trigger program \n**        has finished, the original value is restored.)^\n** \n**   <li> ^(Within a trigger program each INSERT, UPDATE and DELETE \n**        statement sets the value returned by sqlite3_changes() \n**        upon completion as normal. Of course, this value will not include \n**        any changes performed by sub-triggers, as the sqlite3_changes() \n**        value will be saved and restored after each sub-trigger has run.)^\n** </ul>\n** \n** ^This means that if the changes() SQL function (or similar) is used\n** by the first INSERT, UPDATE or DELETE statement within a trigger, it \n** returns the value as set when the calling statement began executing.\n** ^If it is used by the second or subsequent such statement within a trigger \n** program, the value returned reflects the number of rows modified by the \n** previous INSERT, UPDATE or DELETE statement within the same trigger.\n**\n** See also the [sqlite3_total_changes()] interface, the\n** [count_changes pragma], and the [changes() SQL function].\n**\n** If a separate thread makes changes on the same database connection\n** while [sqlite3_changes()] is running then the value returned\n** is unpredictable and not meaningful.\n*/\nSQLITE_API int sqlite3_changes(sqlite3*);\n\n/*\n** CAPI3REF: Total Number Of Rows Modified\n** METHOD: sqlite3\n**\n** ^This function returns the total number of rows inserted, modified or\n** deleted by all [INSERT], [UPDATE] or [DELETE] statements completed\n** since the database connection was opened, including those executed as\n** part of trigger programs. ^Executing any other type of SQL statement\n** does not affect the value returned by sqlite3_total_changes().\n** \n** ^Changes made as part of [foreign key actions] are included in the\n** count, but those made as part of REPLACE constraint resolution are\n** not. ^Changes to a view that are intercepted by INSTEAD OF triggers \n** are not counted.\n** \n** See also the [sqlite3_changes()] interface, the\n** [count_changes pragma], and the [total_changes() SQL function].\n**\n** If a separate thread makes changes on the same database connection\n** while [sqlite3_total_changes()] is running then the value\n** returned is unpredictable and not meaningful.\n*/\nSQLITE_API int sqlite3_total_changes(sqlite3*);\n\n/*\n** CAPI3REF: Interrupt A Long-Running Query\n** METHOD: sqlite3\n**\n** ^This function causes any pending database operation to abort and\n** return at its earliest opportunity. This routine is typically\n** called in response to a user action such as pressing \"Cancel\"\n** or Ctrl-C where the user wants a long query operation to halt\n** immediately.\n**\n** ^It is safe to call this routine from a thread different from the\n** thread that is currently running the database operation.  But it\n** is not safe to call this routine with a [database connection] that\n** is closed or might close before sqlite3_interrupt() returns.\n**\n** ^If an SQL operation is very nearly finished at the time when\n** sqlite3_interrupt() is called, then it might not have an opportunity\n** to be interrupted and might continue to completion.\n**\n** ^An SQL operation that is interrupted will return [SQLITE_INTERRUPT].\n** ^If the interrupted SQL operation is an INSERT, UPDATE, or DELETE\n** that is inside an explicit transaction, then the entire transaction\n** will be rolled back automatically.\n**\n** ^The sqlite3_interrupt(D) call is in effect until all currently running\n** SQL statements on [database connection] D complete.  ^Any new SQL statements\n** that are started after the sqlite3_interrupt() call and before the \n** running statements reaches zero are interrupted as if they had been\n** running prior to the sqlite3_interrupt() call.  ^New SQL statements\n** that are started after the running statement count reaches zero are\n** not effected by the sqlite3_interrupt().\n** ^A call to sqlite3_interrupt(D) that occurs when there are no running\n** SQL statements is a no-op and has no effect on SQL statements\n** that are started after the sqlite3_interrupt() call returns.\n*/\nSQLITE_API void sqlite3_interrupt(sqlite3*);\n\n/*\n** CAPI3REF: Determine If An SQL Statement Is Complete\n**\n** These routines are useful during command-line input to determine if the\n** currently entered text seems to form a complete SQL statement or\n** if additional input is needed before sending the text into\n** SQLite for parsing.  ^These routines return 1 if the input string\n** appears to be a complete SQL statement.  ^A statement is judged to be\n** complete if it ends with a semicolon token and is not a prefix of a\n** well-formed CREATE TRIGGER statement.  ^Semicolons that are embedded within\n** string literals or quoted identifier names or comments are not\n** independent tokens (they are part of the token in which they are\n** embedded) and thus do not count as a statement terminator.  ^Whitespace\n** and comments that follow the final semicolon are ignored.\n**\n** ^These routines return 0 if the statement is incomplete.  ^If a\n** memory allocation fails, then SQLITE_NOMEM is returned.\n**\n** ^These routines do not parse the SQL statements thus\n** will not detect syntactically incorrect SQL.\n**\n** ^(If SQLite has not been initialized using [sqlite3_initialize()] prior \n** to invoking sqlite3_complete16() then sqlite3_initialize() is invoked\n** automatically by sqlite3_complete16().  If that initialization fails,\n** then the return value from sqlite3_complete16() will be non-zero\n** regardless of whether or not the input SQL is complete.)^\n**\n** The input to [sqlite3_complete()] must be a zero-terminated\n** UTF-8 string.\n**\n** The input to [sqlite3_complete16()] must be a zero-terminated\n** UTF-16 string in native byte order.\n*/\nSQLITE_API int sqlite3_complete(const char *sql);\nSQLITE_API int sqlite3_complete16(const void *sql);\n\n/*\n** CAPI3REF: Register A Callback To Handle SQLITE_BUSY Errors\n** KEYWORDS: {busy-handler callback} {busy handler}\n** METHOD: sqlite3\n**\n** ^The sqlite3_busy_handler(D,X,P) routine sets a callback function X\n** that might be invoked with argument P whenever\n** an attempt is made to access a database table associated with\n** [database connection] D when another thread\n** or process has the table locked.\n** The sqlite3_busy_handler() interface is used to implement\n** [sqlite3_busy_timeout()] and [PRAGMA busy_timeout].\n**\n** ^If the busy callback is NULL, then [SQLITE_BUSY]\n** is returned immediately upon encountering the lock.  ^If the busy callback\n** is not NULL, then the callback might be invoked with two arguments.\n**\n** ^The first argument to the busy handler is a copy of the void* pointer which\n** is the third argument to sqlite3_busy_handler().  ^The second argument to\n** the busy handler callback is the number of times that the busy handler has\n** been invoked previously for the same locking event.  ^If the\n** busy callback returns 0, then no additional attempts are made to\n** access the database and [SQLITE_BUSY] is returned\n** to the application.\n** ^If the callback returns non-zero, then another attempt\n** is made to access the database and the cycle repeats.\n**\n** The presence of a busy handler does not guarantee that it will be invoked\n** when there is lock contention. ^If SQLite determines that invoking the busy\n** handler could result in a deadlock, it will go ahead and return [SQLITE_BUSY]\n** to the application instead of invoking the \n** busy handler.\n** Consider a scenario where one process is holding a read lock that\n** it is trying to promote to a reserved lock and\n** a second process is holding a reserved lock that it is trying\n** to promote to an exclusive lock.  The first process cannot proceed\n** because it is blocked by the second and the second process cannot\n** proceed because it is blocked by the first.  If both processes\n** invoke the busy handlers, neither will make any progress.  Therefore,\n** SQLite returns [SQLITE_BUSY] for the first process, hoping that this\n** will induce the first process to release its read lock and allow\n** the second process to proceed.\n**\n** ^The default busy callback is NULL.\n**\n** ^(There can only be a single busy handler defined for each\n** [database connection].  Setting a new busy handler clears any\n** previously set handler.)^  ^Note that calling [sqlite3_busy_timeout()]\n** or evaluating [PRAGMA busy_timeout=N] will change the\n** busy handler and thus clear any previously set busy handler.\n**\n** The busy callback should not take any actions which modify the\n** database connection that invoked the busy handler.  In other words,\n** the busy handler is not reentrant.  Any such actions\n** result in undefined behavior.\n** \n** A busy handler must not close the database connection\n** or [prepared statement] that invoked the busy handler.\n*/\nSQLITE_API int sqlite3_busy_handler(sqlite3*,int(*)(void*,int),void*);\n\n/*\n** CAPI3REF: Set A Busy Timeout\n** METHOD: sqlite3\n**\n** ^This routine sets a [sqlite3_busy_handler | busy handler] that sleeps\n** for a specified amount of time when a table is locked.  ^The handler\n** will sleep multiple times until at least \"ms\" milliseconds of sleeping\n** have accumulated.  ^After at least \"ms\" milliseconds of sleeping,\n** the handler returns 0 which causes [sqlite3_step()] to return\n** [SQLITE_BUSY].\n**\n** ^Calling this routine with an argument less than or equal to zero\n** turns off all busy handlers.\n**\n** ^(There can only be a single busy handler for a particular\n** [database connection] at any given moment.  If another busy handler\n** was defined  (using [sqlite3_busy_handler()]) prior to calling\n** this routine, that other busy handler is cleared.)^\n**\n** See also:  [PRAGMA busy_timeout]\n*/\nSQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);\n\n/*\n** CAPI3REF: Convenience Routines For Running Queries\n** METHOD: sqlite3\n**\n** This is a legacy interface that is preserved for backwards compatibility.\n** Use of this interface is not recommended.\n**\n** Definition: A <b>result table</b> is memory data structure created by the\n** [sqlite3_get_table()] interface.  A result table records the\n** complete query results from one or more queries.\n**\n** The table conceptually has a number of rows and columns.  But\n** these numbers are not part of the result table itself.  These\n** numbers are obtained separately.  Let N be the number of rows\n** and M be the number of columns.\n**\n** A result table is an array of pointers to zero-terminated UTF-8 strings.\n** There are (N+1)*M elements in the array.  The first M pointers point\n** to zero-terminated strings that  contain the names of the columns.\n** The remaining entries all point to query results.  NULL values result\n** in NULL pointers.  All other values are in their UTF-8 zero-terminated\n** string representation as returned by [sqlite3_column_text()].\n**\n** A result table might consist of one or more memory allocations.\n** It is not safe to pass a result table directly to [sqlite3_free()].\n** A result table should be deallocated using [sqlite3_free_table()].\n**\n** ^(As an example of the result table format, suppose a query result\n** is as follows:\n**\n** <blockquote><pre>\n**        Name        | Age\n**        -----------------------\n**        Alice       | 43\n**        Bob         | 28\n**        Cindy       | 21\n** </pre></blockquote>\n**\n** There are two column (M==2) and three rows (N==3).  Thus the\n** result table has 8 entries.  Suppose the result table is stored\n** in an array names azResult.  Then azResult holds this content:\n**\n** <blockquote><pre>\n**        azResult&#91;0] = \"Name\";\n**        azResult&#91;1] = \"Age\";\n**        azResult&#91;2] = \"Alice\";\n**        azResult&#91;3] = \"43\";\n**        azResult&#91;4] = \"Bob\";\n**        azResult&#91;5] = \"28\";\n**        azResult&#91;6] = \"Cindy\";\n**        azResult&#91;7] = \"21\";\n** </pre></blockquote>)^\n**\n** ^The sqlite3_get_table() function evaluates one or more\n** semicolon-separated SQL statements in the zero-terminated UTF-8\n** string of its 2nd parameter and returns a result table to the\n** pointer given in its 3rd parameter.\n**\n** After the application has finished with the result from sqlite3_get_table(),\n** it must pass the result table pointer to sqlite3_free_table() in order to\n** release the memory that was malloced.  Because of the way the\n** [sqlite3_malloc()] happens within sqlite3_get_table(), the calling\n** function must not try to call [sqlite3_free()] directly.  Only\n** [sqlite3_free_table()] is able to release the memory properly and safely.\n**\n** The sqlite3_get_table() interface is implemented as a wrapper around\n** [sqlite3_exec()].  The sqlite3_get_table() routine does not have access\n** to any internal data structures of SQLite.  It uses only the public\n** interface defined here.  As a consequence, errors that occur in the\n** wrapper layer outside of the internal [sqlite3_exec()] call are not\n** reflected in subsequent calls to [sqlite3_errcode()] or\n** [sqlite3_errmsg()].\n*/\nSQLITE_API int sqlite3_get_table(\n  sqlite3 *db,          /* An open database */\n  const char *zSql,     /* SQL to be evaluated */\n  char ***pazResult,    /* Results of the query */\n  int *pnRow,           /* Number of result rows written here */\n  int *pnColumn,        /* Number of result columns written here */\n  char **pzErrmsg       /* Error msg written here */\n);\nSQLITE_API void sqlite3_free_table(char **result);\n\n/*\n** CAPI3REF: Formatted String Printing Functions\n**\n** These routines are work-alikes of the \"printf()\" family of functions\n** from the standard C library.\n** These routines understand most of the common K&R formatting options,\n** plus some additional non-standard formats, detailed below.\n** Note that some of the more obscure formatting options from recent\n** C-library standards are omitted from this implementation.\n**\n** ^The sqlite3_mprintf() and sqlite3_vmprintf() routines write their\n** results into memory obtained from [sqlite3_malloc()].\n** The strings returned by these two routines should be\n** released by [sqlite3_free()].  ^Both routines return a\n** NULL pointer if [sqlite3_malloc()] is unable to allocate enough\n** memory to hold the resulting string.\n**\n** ^(The sqlite3_snprintf() routine is similar to \"snprintf()\" from\n** the standard C library.  The result is written into the\n** buffer supplied as the second parameter whose size is given by\n** the first parameter. Note that the order of the\n** first two parameters is reversed from snprintf().)^  This is an\n** historical accident that cannot be fixed without breaking\n** backwards compatibility.  ^(Note also that sqlite3_snprintf()\n** returns a pointer to its buffer instead of the number of\n** characters actually written into the buffer.)^  We admit that\n** the number of characters written would be a more useful return\n** value but we cannot change the implementation of sqlite3_snprintf()\n** now without breaking compatibility.\n**\n** ^As long as the buffer size is greater than zero, sqlite3_snprintf()\n** guarantees that the buffer is always zero-terminated.  ^The first\n** parameter \"n\" is the total size of the buffer, including space for\n** the zero terminator.  So the longest string that can be completely\n** written will be n-1 characters.\n**\n** ^The sqlite3_vsnprintf() routine is a varargs version of sqlite3_snprintf().\n**\n** These routines all implement some additional formatting\n** options that are useful for constructing SQL statements.\n** All of the usual printf() formatting options apply.  In addition, there\n** is are \"%q\", \"%Q\", \"%w\" and \"%z\" options.\n**\n** ^(The %q option works like %s in that it substitutes a nul-terminated\n** string from the argument list.  But %q also doubles every '\\'' character.\n** %q is designed for use inside a string literal.)^  By doubling each '\\''\n** character it escapes that character and allows it to be inserted into\n** the string.\n**\n** For example, assume the string variable zText contains text as follows:\n**\n** <blockquote><pre>\n**  char *zText = \"It's a happy day!\";\n** </pre></blockquote>\n**\n** One can use this text in an SQL statement as follows:\n**\n** <blockquote><pre>\n**  char *zSQL = sqlite3_mprintf(\"INSERT INTO table VALUES('%q')\", zText);\n**  sqlite3_exec(db, zSQL, 0, 0, 0);\n**  sqlite3_free(zSQL);\n** </pre></blockquote>\n**\n** Because the %q format string is used, the '\\'' character in zText\n** is escaped and the SQL generated is as follows:\n**\n** <blockquote><pre>\n**  INSERT INTO table1 VALUES('It''s a happy day!')\n** </pre></blockquote>\n**\n** This is correct.  Had we used %s instead of %q, the generated SQL\n** would have looked like this:\n**\n** <blockquote><pre>\n**  INSERT INTO table1 VALUES('It's a happy day!');\n** </pre></blockquote>\n**\n** This second example is an SQL syntax error.  As a general rule you should\n** always use %q instead of %s when inserting text into a string literal.\n**\n** ^(The %Q option works like %q except it also adds single quotes around\n** the outside of the total string.  Additionally, if the parameter in the\n** argument list is a NULL pointer, %Q substitutes the text \"NULL\" (without\n** single quotes).)^  So, for example, one could say:\n**\n** <blockquote><pre>\n**  char *zSQL = sqlite3_mprintf(\"INSERT INTO table VALUES(%Q)\", zText);\n**  sqlite3_exec(db, zSQL, 0, 0, 0);\n**  sqlite3_free(zSQL);\n** </pre></blockquote>\n**\n** The code above will render a correct SQL statement in the zSQL\n** variable even if the zText variable is a NULL pointer.\n**\n** ^(The \"%w\" formatting option is like \"%q\" except that it expects to\n** be contained within double-quotes instead of single quotes, and it\n** escapes the double-quote character instead of the single-quote\n** character.)^  The \"%w\" formatting option is intended for safely inserting\n** table and column names into a constructed SQL statement.\n**\n** ^(The \"%z\" formatting option works like \"%s\" but with the\n** addition that after the string has been read and copied into\n** the result, [sqlite3_free()] is called on the input string.)^\n*/\nSQLITE_API char *sqlite3_mprintf(const char*,...);\nSQLITE_API char *sqlite3_vmprintf(const char*, va_list);\nSQLITE_API char *sqlite3_snprintf(int,char*,const char*, ...);\nSQLITE_API char *sqlite3_vsnprintf(int,char*,const char*, va_list);\n\n/*\n** CAPI3REF: Memory Allocation Subsystem\n**\n** The SQLite core uses these three routines for all of its own\n** internal memory allocation needs. \"Core\" in the previous sentence\n** does not include operating-system specific VFS implementation.  The\n** Windows VFS uses native malloc() and free() for some operations.\n**\n** ^The sqlite3_malloc() routine returns a pointer to a block\n** of memory at least N bytes in length, where N is the parameter.\n** ^If sqlite3_malloc() is unable to obtain sufficient free\n** memory, it returns a NULL pointer.  ^If the parameter N to\n** sqlite3_malloc() is zero or negative then sqlite3_malloc() returns\n** a NULL pointer.\n**\n** ^The sqlite3_malloc64(N) routine works just like\n** sqlite3_malloc(N) except that N is an unsigned 64-bit integer instead\n** of a signed 32-bit integer.\n**\n** ^Calling sqlite3_free() with a pointer previously returned\n** by sqlite3_malloc() or sqlite3_realloc() releases that memory so\n** that it might be reused.  ^The sqlite3_free() routine is\n** a no-op if is called with a NULL pointer.  Passing a NULL pointer\n** to sqlite3_free() is harmless.  After being freed, memory\n** should neither be read nor written.  Even reading previously freed\n** memory might result in a segmentation fault or other severe error.\n** Memory corruption, a segmentation fault, or other severe error\n** might result if sqlite3_free() is called with a non-NULL pointer that\n** was not obtained from sqlite3_malloc() or sqlite3_realloc().\n**\n** ^The sqlite3_realloc(X,N) interface attempts to resize a\n** prior memory allocation X to be at least N bytes.\n** ^If the X parameter to sqlite3_realloc(X,N)\n** is a NULL pointer then its behavior is identical to calling\n** sqlite3_malloc(N).\n** ^If the N parameter to sqlite3_realloc(X,N) is zero or\n** negative then the behavior is exactly the same as calling\n** sqlite3_free(X).\n** ^sqlite3_realloc(X,N) returns a pointer to a memory allocation\n** of at least N bytes in size or NULL if insufficient memory is available.\n** ^If M is the size of the prior allocation, then min(N,M) bytes\n** of the prior allocation are copied into the beginning of buffer returned\n** by sqlite3_realloc(X,N) and the prior allocation is freed.\n** ^If sqlite3_realloc(X,N) returns NULL and N is positive, then the\n** prior allocation is not freed.\n**\n** ^The sqlite3_realloc64(X,N) interfaces works the same as\n** sqlite3_realloc(X,N) except that N is a 64-bit unsigned integer instead\n** of a 32-bit signed integer.\n**\n** ^If X is a memory allocation previously obtained from sqlite3_malloc(),\n** sqlite3_malloc64(), sqlite3_realloc(), or sqlite3_realloc64(), then\n** sqlite3_msize(X) returns the size of that memory allocation in bytes.\n** ^The value returned by sqlite3_msize(X) might be larger than the number\n** of bytes requested when X was allocated.  ^If X is a NULL pointer then\n** sqlite3_msize(X) returns zero.  If X points to something that is not\n** the beginning of memory allocation, or if it points to a formerly\n** valid memory allocation that has now been freed, then the behavior\n** of sqlite3_msize(X) is undefined and possibly harmful.\n**\n** ^The memory returned by sqlite3_malloc(), sqlite3_realloc(),\n** sqlite3_malloc64(), and sqlite3_realloc64()\n** is always aligned to at least an 8 byte boundary, or to a\n** 4 byte boundary if the [SQLITE_4_BYTE_ALIGNED_MALLOC] compile-time\n** option is used.\n**\n** In SQLite version 3.5.0 and 3.5.1, it was possible to define\n** the SQLITE_OMIT_MEMORY_ALLOCATION which would cause the built-in\n** implementation of these routines to be omitted.  That capability\n** is no longer provided.  Only built-in memory allocators can be used.\n**\n** Prior to SQLite version 3.7.10, the Windows OS interface layer called\n** the system malloc() and free() directly when converting\n** filenames between the UTF-8 encoding used by SQLite\n** and whatever filename encoding is used by the particular Windows\n** installation.  Memory allocation errors were detected, but\n** they were reported back as [SQLITE_CANTOPEN] or\n** [SQLITE_IOERR] rather than [SQLITE_NOMEM].\n**\n** The pointer arguments to [sqlite3_free()] and [sqlite3_realloc()]\n** must be either NULL or else pointers obtained from a prior\n** invocation of [sqlite3_malloc()] or [sqlite3_realloc()] that have\n** not yet been released.\n**\n** The application must not read or write any part of\n** a block of memory after it has been released using\n** [sqlite3_free()] or [sqlite3_realloc()].\n*/\nSQLITE_API void *sqlite3_malloc(int);\nSQLITE_API void *sqlite3_malloc64(sqlite3_uint64);\nSQLITE_API void *sqlite3_realloc(void*, int);\nSQLITE_API void *sqlite3_realloc64(void*, sqlite3_uint64);\nSQLITE_API void sqlite3_free(void*);\nSQLITE_API sqlite3_uint64 sqlite3_msize(void*);\n\n/*\n** CAPI3REF: Memory Allocator Statistics\n**\n** SQLite provides these two interfaces for reporting on the status\n** of the [sqlite3_malloc()], [sqlite3_free()], and [sqlite3_realloc()]\n** routines, which form the built-in memory allocation subsystem.\n**\n** ^The [sqlite3_memory_used()] routine returns the number of bytes\n** of memory currently outstanding (malloced but not freed).\n** ^The [sqlite3_memory_highwater()] routine returns the maximum\n** value of [sqlite3_memory_used()] since the high-water mark\n** was last reset.  ^The values returned by [sqlite3_memory_used()] and\n** [sqlite3_memory_highwater()] include any overhead\n** added by SQLite in its implementation of [sqlite3_malloc()],\n** but not overhead added by the any underlying system library\n** routines that [sqlite3_malloc()] may call.\n**\n** ^The memory high-water mark is reset to the current value of\n** [sqlite3_memory_used()] if and only if the parameter to\n** [sqlite3_memory_highwater()] is true.  ^The value returned\n** by [sqlite3_memory_highwater(1)] is the high-water mark\n** prior to the reset.\n*/\nSQLITE_API sqlite3_int64 sqlite3_memory_used(void);\nSQLITE_API sqlite3_int64 sqlite3_memory_highwater(int resetFlag);\n\n/*\n** CAPI3REF: Pseudo-Random Number Generator\n**\n** SQLite contains a high-quality pseudo-random number generator (PRNG) used to\n** select random [ROWID | ROWIDs] when inserting new records into a table that\n** already uses the largest possible [ROWID].  The PRNG is also used for\n** the build-in random() and randomblob() SQL functions.  This interface allows\n** applications to access the same PRNG for other purposes.\n**\n** ^A call to this routine stores N bytes of randomness into buffer P.\n** ^The P parameter can be a NULL pointer.\n**\n** ^If this routine has not been previously called or if the previous\n** call had N less than one or a NULL pointer for P, then the PRNG is\n** seeded using randomness obtained from the xRandomness method of\n** the default [sqlite3_vfs] object.\n** ^If the previous call to this routine had an N of 1 or more and a\n** non-NULL P then the pseudo-randomness is generated\n** internally and without recourse to the [sqlite3_vfs] xRandomness\n** method.\n*/\nSQLITE_API void sqlite3_randomness(int N, void *P);\n\n/*\n** CAPI3REF: Compile-Time Authorization Callbacks\n** METHOD: sqlite3\n** KEYWORDS: {authorizer callback}\n**\n** ^This routine registers an authorizer callback with a particular\n** [database connection], supplied in the first argument.\n** ^The authorizer callback is invoked as SQL statements are being compiled\n** by [sqlite3_prepare()] or its variants [sqlite3_prepare_v2()],\n** [sqlite3_prepare_v3()], [sqlite3_prepare16()], [sqlite3_prepare16_v2()],\n** and [sqlite3_prepare16_v3()].  ^At various\n** points during the compilation process, as logic is being created\n** to perform various actions, the authorizer callback is invoked to\n** see if those actions are allowed.  ^The authorizer callback should\n** return [SQLITE_OK] to allow the action, [SQLITE_IGNORE] to disallow the\n** specific action but allow the SQL statement to continue to be\n** compiled, or [SQLITE_DENY] to cause the entire SQL statement to be\n** rejected with an error.  ^If the authorizer callback returns\n** any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY]\n** then the [sqlite3_prepare_v2()] or equivalent call that triggered\n** the authorizer will fail with an error message.\n**\n** When the callback returns [SQLITE_OK], that means the operation\n** requested is ok.  ^When the callback returns [SQLITE_DENY], the\n** [sqlite3_prepare_v2()] or equivalent call that triggered the\n** authorizer will fail with an error message explaining that\n** access is denied. \n**\n** ^The first parameter to the authorizer callback is a copy of the third\n** parameter to the sqlite3_set_authorizer() interface. ^The second parameter\n** to the callback is an integer [SQLITE_COPY | action code] that specifies\n** the particular action to be authorized. ^The third through sixth parameters\n** to the callback are either NULL pointers or zero-terminated strings\n** that contain additional details about the action to be authorized.\n** Applications must always be prepared to encounter a NULL pointer in any\n** of the third through the sixth parameters of the authorization callback.\n**\n** ^If the action code is [SQLITE_READ]\n** and the callback returns [SQLITE_IGNORE] then the\n** [prepared statement] statement is constructed to substitute\n** a NULL value in place of the table column that would have\n** been read if [SQLITE_OK] had been returned.  The [SQLITE_IGNORE]\n** return can be used to deny an untrusted user access to individual\n** columns of a table.\n** ^When a table is referenced by a [SELECT] but no column values are\n** extracted from that table (for example in a query like\n** \"SELECT count(*) FROM tab\") then the [SQLITE_READ] authorizer callback\n** is invoked once for that table with a column name that is an empty string.\n** ^If the action code is [SQLITE_DELETE] and the callback returns\n** [SQLITE_IGNORE] then the [DELETE] operation proceeds but the\n** [truncate optimization] is disabled and all rows are deleted individually.\n**\n** An authorizer is used when [sqlite3_prepare | preparing]\n** SQL statements from an untrusted source, to ensure that the SQL statements\n** do not try to access data they are not allowed to see, or that they do not\n** try to execute malicious statements that damage the database.  For\n** example, an application may allow a user to enter arbitrary\n** SQL queries for evaluation by a database.  But the application does\n** not want the user to be able to make arbitrary changes to the\n** database.  An authorizer could then be put in place while the\n** user-entered SQL is being [sqlite3_prepare | prepared] that\n** disallows everything except [SELECT] statements.\n**\n** Applications that need to process SQL from untrusted sources\n** might also consider lowering resource limits using [sqlite3_limit()]\n** and limiting database size using the [max_page_count] [PRAGMA]\n** in addition to using an authorizer.\n**\n** ^(Only a single authorizer can be in place on a database connection\n** at a time.  Each call to sqlite3_set_authorizer overrides the\n** previous call.)^  ^Disable the authorizer by installing a NULL callback.\n** The authorizer is disabled by default.\n**\n** The authorizer callback must not do anything that will modify\n** the database connection that invoked the authorizer callback.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^When [sqlite3_prepare_v2()] is used to prepare a statement, the\n** statement might be re-prepared during [sqlite3_step()] due to a \n** schema change.  Hence, the application should ensure that the\n** correct authorizer callback remains in place during the [sqlite3_step()].\n**\n** ^Note that the authorizer callback is invoked only during\n** [sqlite3_prepare()] or its variants.  Authorization is not\n** performed during statement evaluation in [sqlite3_step()], unless\n** as stated in the previous paragraph, sqlite3_step() invokes\n** sqlite3_prepare_v2() to reprepare a statement after a schema change.\n*/\nSQLITE_API int sqlite3_set_authorizer(\n  sqlite3*,\n  int (*xAuth)(void*,int,const char*,const char*,const char*,const char*),\n  void *pUserData\n);\n\n/*\n** CAPI3REF: Authorizer Return Codes\n**\n** The [sqlite3_set_authorizer | authorizer callback function] must\n** return either [SQLITE_OK] or one of these two constants in order\n** to signal SQLite whether or not the action is permitted.  See the\n** [sqlite3_set_authorizer | authorizer documentation] for additional\n** information.\n**\n** Note that SQLITE_IGNORE is also used as a [conflict resolution mode]\n** returned from the [sqlite3_vtab_on_conflict()] interface.\n*/\n#define SQLITE_DENY   1   /* Abort the SQL statement with an error */\n#define SQLITE_IGNORE 2   /* Don't allow access, but don't generate an error */\n\n/*\n** CAPI3REF: Authorizer Action Codes\n**\n** The [sqlite3_set_authorizer()] interface registers a callback function\n** that is invoked to authorize certain SQL statement actions.  The\n** second parameter to the callback is an integer code that specifies\n** what action is being authorized.  These are the integer action codes that\n** the authorizer callback may be passed.\n**\n** These action code values signify what kind of operation is to be\n** authorized.  The 3rd and 4th parameters to the authorization\n** callback function will be parameters or NULL depending on which of these\n** codes is used as the second parameter.  ^(The 5th parameter to the\n** authorizer callback is the name of the database (\"main\", \"temp\",\n** etc.) if applicable.)^  ^The 6th parameter to the authorizer callback\n** is the name of the inner-most trigger or view that is responsible for\n** the access attempt or NULL if this access attempt is directly from\n** top-level SQL code.\n*/\n/******************************************* 3rd ************ 4th ***********/\n#define SQLITE_CREATE_INDEX          1   /* Index Name      Table Name      */\n#define SQLITE_CREATE_TABLE          2   /* Table Name      NULL            */\n#define SQLITE_CREATE_TEMP_INDEX     3   /* Index Name      Table Name      */\n#define SQLITE_CREATE_TEMP_TABLE     4   /* Table Name      NULL            */\n#define SQLITE_CREATE_TEMP_TRIGGER   5   /* Trigger Name    Table Name      */\n#define SQLITE_CREATE_TEMP_VIEW      6   /* View Name       NULL            */\n#define SQLITE_CREATE_TRIGGER        7   /* Trigger Name    Table Name      */\n#define SQLITE_CREATE_VIEW           8   /* View Name       NULL            */\n#define SQLITE_DELETE                9   /* Table Name      NULL            */\n#define SQLITE_DROP_INDEX           10   /* Index Name      Table Name      */\n#define SQLITE_DROP_TABLE           11   /* Table Name      NULL            */\n#define SQLITE_DROP_TEMP_INDEX      12   /* Index Name      Table Name      */\n#define SQLITE_DROP_TEMP_TABLE      13   /* Table Name      NULL            */\n#define SQLITE_DROP_TEMP_TRIGGER    14   /* Trigger Name    Table Name      */\n#define SQLITE_DROP_TEMP_VIEW       15   /* View Name       NULL            */\n#define SQLITE_DROP_TRIGGER         16   /* Trigger Name    Table Name      */\n#define SQLITE_DROP_VIEW            17   /* View Name       NULL            */\n#define SQLITE_INSERT               18   /* Table Name      NULL            */\n#define SQLITE_PRAGMA               19   /* Pragma Name     1st arg or NULL */\n#define SQLITE_READ                 20   /* Table Name      Column Name     */\n#define SQLITE_SELECT               21   /* NULL            NULL            */\n#define SQLITE_TRANSACTION          22   /* Operation       NULL            */\n#define SQLITE_UPDATE               23   /* Table Name      Column Name     */\n#define SQLITE_ATTACH               24   /* Filename        NULL            */\n#define SQLITE_DETACH               25   /* Database Name   NULL            */\n#define SQLITE_ALTER_TABLE          26   /* Database Name   Table Name      */\n#define SQLITE_REINDEX              27   /* Index Name      NULL            */\n#define SQLITE_ANALYZE              28   /* Table Name      NULL            */\n#define SQLITE_CREATE_VTABLE        29   /* Table Name      Module Name     */\n#define SQLITE_DROP_VTABLE          30   /* Table Name      Module Name     */\n#define SQLITE_FUNCTION             31   /* NULL            Function Name   */\n#define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */\n#define SQLITE_COPY                  0   /* No longer used */\n#define SQLITE_RECURSIVE            33   /* NULL            NULL            */\n\n/*\n** CAPI3REF: Tracing And Profiling Functions\n** METHOD: sqlite3\n**\n** These routines are deprecated. Use the [sqlite3_trace_v2()] interface\n** instead of the routines described here.\n**\n** These routines register callback functions that can be used for\n** tracing and profiling the execution of SQL statements.\n**\n** ^The callback function registered by sqlite3_trace() is invoked at\n** various times when an SQL statement is being run by [sqlite3_step()].\n** ^The sqlite3_trace() callback is invoked with a UTF-8 rendering of the\n** SQL statement text as the statement first begins executing.\n** ^(Additional sqlite3_trace() callbacks might occur\n** as each triggered subprogram is entered.  The callbacks for triggers\n** contain a UTF-8 SQL comment that identifies the trigger.)^\n**\n** The [SQLITE_TRACE_SIZE_LIMIT] compile-time option can be used to limit\n** the length of [bound parameter] expansion in the output of sqlite3_trace().\n**\n** ^The callback function registered by sqlite3_profile() is invoked\n** as each SQL statement finishes.  ^The profile callback contains\n** the original statement text and an estimate of wall-clock time\n** of how long that statement took to run.  ^The profile callback\n** time is in units of nanoseconds, however the current implementation\n** is only capable of millisecond resolution so the six least significant\n** digits in the time are meaningless.  Future versions of SQLite\n** might provide greater resolution on the profiler callback.  The\n** sqlite3_profile() function is considered experimental and is\n** subject to change in future versions of SQLite.\n*/\nSQLITE_API SQLITE_DEPRECATED void *sqlite3_trace(sqlite3*,\n   void(*xTrace)(void*,const char*), void*);\nSQLITE_API SQLITE_DEPRECATED void *sqlite3_profile(sqlite3*,\n   void(*xProfile)(void*,const char*,sqlite3_uint64), void*);\n\n/*\n** CAPI3REF: SQL Trace Event Codes\n** KEYWORDS: SQLITE_TRACE\n**\n** These constants identify classes of events that can be monitored\n** using the [sqlite3_trace_v2()] tracing logic.  The M argument\n** to [sqlite3_trace_v2(D,M,X,P)] is an OR-ed combination of one or more of\n** the following constants.  ^The first argument to the trace callback\n** is one of the following constants.\n**\n** New tracing constants may be added in future releases.\n**\n** ^A trace callback has four arguments: xCallback(T,C,P,X).\n** ^The T argument is one of the integer type codes above.\n** ^The C argument is a copy of the context pointer passed in as the\n** fourth argument to [sqlite3_trace_v2()].\n** The P and X arguments are pointers whose meanings depend on T.\n**\n** <dl>\n** [[SQLITE_TRACE_STMT]] <dt>SQLITE_TRACE_STMT</dt>\n** <dd>^An SQLITE_TRACE_STMT callback is invoked when a prepared statement\n** first begins running and possibly at other times during the\n** execution of the prepared statement, such as at the start of each\n** trigger subprogram. ^The P argument is a pointer to the\n** [prepared statement]. ^The X argument is a pointer to a string which\n** is the unexpanded SQL text of the prepared statement or an SQL comment \n** that indicates the invocation of a trigger.  ^The callback can compute\n** the same text that would have been returned by the legacy [sqlite3_trace()]\n** interface by using the X argument when X begins with \"--\" and invoking\n** [sqlite3_expanded_sql(P)] otherwise.\n**\n** [[SQLITE_TRACE_PROFILE]] <dt>SQLITE_TRACE_PROFILE</dt>\n** <dd>^An SQLITE_TRACE_PROFILE callback provides approximately the same\n** information as is provided by the [sqlite3_profile()] callback.\n** ^The P argument is a pointer to the [prepared statement] and the\n** X argument points to a 64-bit integer which is the estimated of\n** the number of nanosecond that the prepared statement took to run.\n** ^The SQLITE_TRACE_PROFILE callback is invoked when the statement finishes.\n**\n** [[SQLITE_TRACE_ROW]] <dt>SQLITE_TRACE_ROW</dt>\n** <dd>^An SQLITE_TRACE_ROW callback is invoked whenever a prepared\n** statement generates a single row of result.  \n** ^The P argument is a pointer to the [prepared statement] and the\n** X argument is unused.\n**\n** [[SQLITE_TRACE_CLOSE]] <dt>SQLITE_TRACE_CLOSE</dt>\n** <dd>^An SQLITE_TRACE_CLOSE callback is invoked when a database\n** connection closes.\n** ^The P argument is a pointer to the [database connection] object\n** and the X argument is unused.\n** </dl>\n*/\n#define SQLITE_TRACE_STMT       0x01\n#define SQLITE_TRACE_PROFILE    0x02\n#define SQLITE_TRACE_ROW        0x04\n#define SQLITE_TRACE_CLOSE      0x08\n\n/*\n** CAPI3REF: SQL Trace Hook\n** METHOD: sqlite3\n**\n** ^The sqlite3_trace_v2(D,M,X,P) interface registers a trace callback\n** function X against [database connection] D, using property mask M\n** and context pointer P.  ^If the X callback is\n** NULL or if the M mask is zero, then tracing is disabled.  The\n** M argument should be the bitwise OR-ed combination of\n** zero or more [SQLITE_TRACE] constants.\n**\n** ^Each call to either sqlite3_trace() or sqlite3_trace_v2() overrides \n** (cancels) any prior calls to sqlite3_trace() or sqlite3_trace_v2().\n**\n** ^The X callback is invoked whenever any of the events identified by \n** mask M occur.  ^The integer return value from the callback is currently\n** ignored, though this may change in future releases.  Callback\n** implementations should return zero to ensure future compatibility.\n**\n** ^A trace callback is invoked with four arguments: callback(T,C,P,X).\n** ^The T argument is one of the [SQLITE_TRACE]\n** constants to indicate why the callback was invoked.\n** ^The C argument is a copy of the context pointer.\n** The P and X arguments are pointers whose meanings depend on T.\n**\n** The sqlite3_trace_v2() interface is intended to replace the legacy\n** interfaces [sqlite3_trace()] and [sqlite3_profile()], both of which\n** are deprecated.\n*/\nSQLITE_API int sqlite3_trace_v2(\n  sqlite3*,\n  unsigned uMask,\n  int(*xCallback)(unsigned,void*,void*,void*),\n  void *pCtx\n);\n\n/*\n** CAPI3REF: Query Progress Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_progress_handler(D,N,X,P) interface causes the callback\n** function X to be invoked periodically during long running calls to\n** [sqlite3_exec()], [sqlite3_step()] and [sqlite3_get_table()] for\n** database connection D.  An example use for this\n** interface is to keep a GUI updated during a large query.\n**\n** ^The parameter P is passed through as the only parameter to the \n** callback function X.  ^The parameter N is the approximate number of \n** [virtual machine instructions] that are evaluated between successive\n** invocations of the callback X.  ^If N is less than one then the progress\n** handler is disabled.\n**\n** ^Only a single progress handler may be defined at one time per\n** [database connection]; setting a new progress handler cancels the\n** old one.  ^Setting parameter X to NULL disables the progress handler.\n** ^The progress handler is also disabled by setting N to a value less\n** than 1.\n**\n** ^If the progress callback returns non-zero, the operation is\n** interrupted.  This feature can be used to implement a\n** \"Cancel\" button on a GUI progress dialog box.\n**\n** The progress handler callback must not do anything that will modify\n** the database connection that invoked the progress handler.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n*/\nSQLITE_API void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);\n\n/*\n** CAPI3REF: Opening A New Database Connection\n** CONSTRUCTOR: sqlite3\n**\n** ^These routines open an SQLite database file as specified by the \n** filename argument. ^The filename argument is interpreted as UTF-8 for\n** sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte\n** order for sqlite3_open16(). ^(A [database connection] handle is usually\n** returned in *ppDb, even if an error occurs.  The only exception is that\n** if SQLite is unable to allocate memory to hold the [sqlite3] object,\n** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]\n** object.)^ ^(If the database is opened (and/or created) successfully, then\n** [SQLITE_OK] is returned.  Otherwise an [error code] is returned.)^ ^The\n** [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain\n** an English language description of the error following a failure of any\n** of the sqlite3_open() routines.\n**\n** ^The default encoding will be UTF-8 for databases created using\n** sqlite3_open() or sqlite3_open_v2().  ^The default encoding for databases\n** created using sqlite3_open16() will be UTF-16 in the native byte order.\n**\n** Whether or not an error occurs when it is opened, resources\n** associated with the [database connection] handle should be released by\n** passing it to [sqlite3_close()] when it is no longer required.\n**\n** The sqlite3_open_v2() interface works like sqlite3_open()\n** except that it accepts two additional parameters for additional control\n** over the new database connection.  ^(The flags parameter to\n** sqlite3_open_v2() can take one of\n** the following three values, optionally combined with the \n** [SQLITE_OPEN_NOMUTEX], [SQLITE_OPEN_FULLMUTEX], [SQLITE_OPEN_SHAREDCACHE],\n** [SQLITE_OPEN_PRIVATECACHE], and/or [SQLITE_OPEN_URI] flags:)^\n**\n** <dl>\n** ^(<dt>[SQLITE_OPEN_READONLY]</dt>\n** <dd>The database is opened in read-only mode.  If the database does not\n** already exist, an error is returned.</dd>)^\n**\n** ^(<dt>[SQLITE_OPEN_READWRITE]</dt>\n** <dd>The database is opened for reading and writing if possible, or reading\n** only if the file is write protected by the operating system.  In either\n** case the database must already exist, otherwise an error is returned.</dd>)^\n**\n** ^(<dt>[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]</dt>\n** <dd>The database is opened for reading and writing, and is created if\n** it does not already exist. This is the behavior that is always used for\n** sqlite3_open() and sqlite3_open16().</dd>)^\n** </dl>\n**\n** If the 3rd parameter to sqlite3_open_v2() is not one of the\n** combinations shown above optionally combined with other\n** [SQLITE_OPEN_READONLY | SQLITE_OPEN_* bits]\n** then the behavior is undefined.\n**\n** ^If the [SQLITE_OPEN_NOMUTEX] flag is set, then the database connection\n** opens in the multi-thread [threading mode] as long as the single-thread\n** mode has not been set at compile-time or start-time.  ^If the\n** [SQLITE_OPEN_FULLMUTEX] flag is set then the database connection opens\n** in the serialized [threading mode] unless single-thread was\n** previously selected at compile-time or start-time.\n** ^The [SQLITE_OPEN_SHAREDCACHE] flag causes the database connection to be\n** eligible to use [shared cache mode], regardless of whether or not shared\n** cache is enabled using [sqlite3_enable_shared_cache()].  ^The\n** [SQLITE_OPEN_PRIVATECACHE] flag causes the database connection to not\n** participate in [shared cache mode] even if it is enabled.\n**\n** ^The fourth parameter to sqlite3_open_v2() is the name of the\n** [sqlite3_vfs] object that defines the operating system interface that\n** the new database connection should use.  ^If the fourth parameter is\n** a NULL pointer then the default [sqlite3_vfs] object is used.\n**\n** ^If the filename is \":memory:\", then a private, temporary in-memory database\n** is created for the connection.  ^This in-memory database will vanish when\n** the database connection is closed.  Future versions of SQLite might\n** make use of additional special filenames that begin with the \":\" character.\n** It is recommended that when a database filename actually does begin with\n** a \":\" character you should prefix the filename with a pathname such as\n** \"./\" to avoid ambiguity.\n**\n** ^If the filename is an empty string, then a private, temporary\n** on-disk database will be created.  ^This private database will be\n** automatically deleted as soon as the database connection is closed.\n**\n** [[URI filenames in sqlite3_open()]] <h3>URI Filenames</h3>\n**\n** ^If [URI filename] interpretation is enabled, and the filename argument\n** begins with \"file:\", then the filename is interpreted as a URI. ^URI\n** filename interpretation is enabled if the [SQLITE_OPEN_URI] flag is\n** set in the third argument to sqlite3_open_v2(), or if it has\n** been enabled globally using the [SQLITE_CONFIG_URI] option with the\n** [sqlite3_config()] method or by the [SQLITE_USE_URI] compile-time option.\n** URI filename interpretation is turned off\n** by default, but future releases of SQLite might enable URI filename\n** interpretation by default.  See \"[URI filenames]\" for additional\n** information.\n**\n** URI filenames are parsed according to RFC 3986. ^If the URI contains an\n** authority, then it must be either an empty string or the string \n** \"localhost\". ^If the authority is not an empty string or \"localhost\", an \n** error is returned to the caller. ^The fragment component of a URI, if \n** present, is ignored.\n**\n** ^SQLite uses the path component of the URI as the name of the disk file\n** which contains the database. ^If the path begins with a '/' character, \n** then it is interpreted as an absolute path. ^If the path does not begin \n** with a '/' (meaning that the authority section is omitted from the URI)\n** then the path is interpreted as a relative path. \n** ^(On windows, the first component of an absolute path \n** is a drive specification (e.g. \"C:\").)^\n**\n** [[core URI query parameters]]\n** The query component of a URI may contain parameters that are interpreted\n** either by SQLite itself, or by a [VFS | custom VFS implementation].\n** SQLite and its built-in [VFSes] interpret the\n** following query parameters:\n**\n** <ul>\n**   <li> <b>vfs</b>: ^The \"vfs\" parameter may be used to specify the name of\n**     a VFS object that provides the operating system interface that should\n**     be used to access the database file on disk. ^If this option is set to\n**     an empty string the default VFS object is used. ^Specifying an unknown\n**     VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is\n**     present, then the VFS specified by the option takes precedence over\n**     the value passed as the fourth parameter to sqlite3_open_v2().\n**\n**   <li> <b>mode</b>: ^(The mode parameter may be set to either \"ro\", \"rw\",\n**     \"rwc\", or \"memory\". Attempting to set it to any other value is\n**     an error)^. \n**     ^If \"ro\" is specified, then the database is opened for read-only \n**     access, just as if the [SQLITE_OPEN_READONLY] flag had been set in the \n**     third argument to sqlite3_open_v2(). ^If the mode option is set to \n**     \"rw\", then the database is opened for read-write (but not create) \n**     access, as if SQLITE_OPEN_READWRITE (but not SQLITE_OPEN_CREATE) had \n**     been set. ^Value \"rwc\" is equivalent to setting both \n**     SQLITE_OPEN_READWRITE and SQLITE_OPEN_CREATE.  ^If the mode option is\n**     set to \"memory\" then a pure [in-memory database] that never reads\n**     or writes from disk is used. ^It is an error to specify a value for\n**     the mode parameter that is less restrictive than that specified by\n**     the flags passed in the third parameter to sqlite3_open_v2().\n**\n**   <li> <b>cache</b>: ^The cache parameter may be set to either \"shared\" or\n**     \"private\". ^Setting it to \"shared\" is equivalent to setting the\n**     SQLITE_OPEN_SHAREDCACHE bit in the flags argument passed to\n**     sqlite3_open_v2(). ^Setting the cache parameter to \"private\" is \n**     equivalent to setting the SQLITE_OPEN_PRIVATECACHE bit.\n**     ^If sqlite3_open_v2() is used and the \"cache\" parameter is present in\n**     a URI filename, its value overrides any behavior requested by setting\n**     SQLITE_OPEN_PRIVATECACHE or SQLITE_OPEN_SHAREDCACHE flag.\n**\n**  <li> <b>psow</b>: ^The psow parameter indicates whether or not the\n**     [powersafe overwrite] property does or does not apply to the\n**     storage media on which the database file resides.\n**\n**  <li> <b>nolock</b>: ^The nolock parameter is a boolean query parameter\n**     which if set disables file locking in rollback journal modes.  This\n**     is useful for accessing a database on a filesystem that does not\n**     support locking.  Caution:  Database corruption might result if two\n**     or more processes write to the same database and any one of those\n**     processes uses nolock=1.\n**\n**  <li> <b>immutable</b>: ^The immutable parameter is a boolean query\n**     parameter that indicates that the database file is stored on\n**     read-only media.  ^When immutable is set, SQLite assumes that the\n**     database file cannot be changed, even by a process with higher\n**     privilege, and so the database is opened read-only and all locking\n**     and change detection is disabled.  Caution: Setting the immutable\n**     property on a database file that does in fact change can result\n**     in incorrect query results and/or [SQLITE_CORRUPT] errors.\n**     See also: [SQLITE_IOCAP_IMMUTABLE].\n**       \n** </ul>\n**\n** ^Specifying an unknown parameter in the query component of a URI is not an\n** error.  Future versions of SQLite might understand additional query\n** parameters.  See \"[query parameters with special meaning to SQLite]\" for\n** additional information.\n**\n** [[URI filename examples]] <h3>URI filename examples</h3>\n**\n** <table border=\"1\" align=center cellpadding=5>\n** <tr><th> URI filenames <th> Results\n** <tr><td> file:data.db <td> \n**          Open the file \"data.db\" in the current directory.\n** <tr><td> file:/home/fred/data.db<br>\n**          file:///home/fred/data.db <br> \n**          file://localhost/home/fred/data.db <br> <td> \n**          Open the database file \"/home/fred/data.db\".\n** <tr><td> file://darkstar/home/fred/data.db <td> \n**          An error. \"darkstar\" is not a recognized authority.\n** <tr><td style=\"white-space:nowrap\"> \n**          file:///C:/Documents%20and%20Settings/fred/Desktop/data.db\n**     <td> Windows only: Open the file \"data.db\" on fred's desktop on drive\n**          C:. Note that the %20 escaping in this example is not strictly \n**          necessary - space characters can be used literally\n**          in URI filenames.\n** <tr><td> file:data.db?mode=ro&cache=private <td> \n**          Open file \"data.db\" in the current directory for read-only access.\n**          Regardless of whether or not shared-cache mode is enabled by\n**          default, use a private cache.\n** <tr><td> file:/home/fred/data.db?vfs=unix-dotfile <td>\n**          Open file \"/home/fred/data.db\". Use the special VFS \"unix-dotfile\"\n**          that uses dot-files in place of posix advisory locking.\n** <tr><td> file:data.db?mode=readonly <td> \n**          An error. \"readonly\" is not a valid option for the \"mode\" parameter.\n** </table>\n**\n** ^URI hexadecimal escape sequences (%HH) are supported within the path and\n** query components of a URI. A hexadecimal escape sequence consists of a\n** percent sign - \"%\" - followed by exactly two hexadecimal digits \n** specifying an octet value. ^Before the path or query components of a\n** URI filename are interpreted, they are encoded using UTF-8 and all \n** hexadecimal escape sequences replaced by a single byte containing the\n** corresponding octet. If this process generates an invalid UTF-8 encoding,\n** the results are undefined.\n**\n** <b>Note to Windows users:</b>  The encoding used for the filename argument\n** of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever\n** codepage is currently defined.  Filenames containing international\n** characters must be converted to UTF-8 prior to passing them into\n** sqlite3_open() or sqlite3_open_v2().\n**\n** <b>Note to Windows Runtime users:</b>  The temporary directory must be set\n** prior to calling sqlite3_open() or sqlite3_open_v2().  Otherwise, various\n** features that require the use of temporary files may fail.\n**\n** See also: [sqlite3_temp_directory]\n*/\nSQLITE_API int sqlite3_open(\n  const char *filename,   /* Database filename (UTF-8) */\n  sqlite3 **ppDb          /* OUT: SQLite db handle */\n);\nSQLITE_API int sqlite3_open16(\n  const void *filename,   /* Database filename (UTF-16) */\n  sqlite3 **ppDb          /* OUT: SQLite db handle */\n);\nSQLITE_API int sqlite3_open_v2(\n  const char *filename,   /* Database filename (UTF-8) */\n  sqlite3 **ppDb,         /* OUT: SQLite db handle */\n  int flags,              /* Flags */\n  const char *zVfs        /* Name of VFS module to use */\n);\n\n/*\n** CAPI3REF: Obtain Values For URI Parameters\n**\n** These are utility routines, useful to VFS implementations, that check\n** to see if a database file was a URI that contained a specific query \n** parameter, and if so obtains the value of that query parameter.\n**\n** If F is the database filename pointer passed into the xOpen() method of \n** a VFS implementation when the flags parameter to xOpen() has one or \n** more of the [SQLITE_OPEN_URI] or [SQLITE_OPEN_MAIN_DB] bits set and\n** P is the name of the query parameter, then\n** sqlite3_uri_parameter(F,P) returns the value of the P\n** parameter if it exists or a NULL pointer if P does not appear as a \n** query parameter on F.  If P is a query parameter of F\n** has no explicit value, then sqlite3_uri_parameter(F,P) returns\n** a pointer to an empty string.\n**\n** The sqlite3_uri_boolean(F,P,B) routine assumes that P is a boolean\n** parameter and returns true (1) or false (0) according to the value\n** of P.  The sqlite3_uri_boolean(F,P,B) routine returns true (1) if the\n** value of query parameter P is one of \"yes\", \"true\", or \"on\" in any\n** case or if the value begins with a non-zero number.  The \n** sqlite3_uri_boolean(F,P,B) routines returns false (0) if the value of\n** query parameter P is one of \"no\", \"false\", or \"off\" in any case or\n** if the value begins with a numeric zero.  If P is not a query\n** parameter on F or if the value of P is does not match any of the\n** above, then sqlite3_uri_boolean(F,P,B) returns (B!=0).\n**\n** The sqlite3_uri_int64(F,P,D) routine converts the value of P into a\n** 64-bit signed integer and returns that integer, or D if P does not\n** exist.  If the value of P is something other than an integer, then\n** zero is returned.\n** \n** If F is a NULL pointer, then sqlite3_uri_parameter(F,P) returns NULL and\n** sqlite3_uri_boolean(F,P,B) returns B.  If F is not a NULL pointer and\n** is not a database file pathname pointer that SQLite passed into the xOpen\n** VFS method, then the behavior of this routine is undefined and probably\n** undesirable.\n*/\nSQLITE_API const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam);\nSQLITE_API int sqlite3_uri_boolean(const char *zFile, const char *zParam, int bDefault);\nSQLITE_API sqlite3_int64 sqlite3_uri_int64(const char*, const char*, sqlite3_int64);\n\n\n/*\n** CAPI3REF: Error Codes And Messages\n** METHOD: sqlite3\n**\n** ^If the most recent sqlite3_* API call associated with \n** [database connection] D failed, then the sqlite3_errcode(D) interface\n** returns the numeric [result code] or [extended result code] for that\n** API call.\n** If the most recent API call was successful,\n** then the return value from sqlite3_errcode() is undefined.\n** ^The sqlite3_extended_errcode()\n** interface is the same except that it always returns the \n** [extended result code] even when extended result codes are\n** disabled.\n**\n** ^The sqlite3_errmsg() and sqlite3_errmsg16() return English-language\n** text that describes the error, as either UTF-8 or UTF-16 respectively.\n** ^(Memory to hold the error message string is managed internally.\n** The application does not need to worry about freeing the result.\n** However, the error string might be overwritten or deallocated by\n** subsequent calls to other SQLite interface functions.)^\n**\n** ^The sqlite3_errstr() interface returns the English-language text\n** that describes the [result code], as UTF-8.\n** ^(Memory to hold the error message string is managed internally\n** and must not be freed by the application)^.\n**\n** When the serialized [threading mode] is in use, it might be the\n** case that a second error occurs on a separate thread in between\n** the time of the first error and the call to these interfaces.\n** When that happens, the second error will be reported since these\n** interfaces always report the most recent result.  To avoid\n** this, each thread can obtain exclusive use of the [database connection] D\n** by invoking [sqlite3_mutex_enter]([sqlite3_db_mutex](D)) before beginning\n** to use D and invoking [sqlite3_mutex_leave]([sqlite3_db_mutex](D)) after\n** all calls to the interfaces listed here are completed.\n**\n** If an interface fails with SQLITE_MISUSE, that means the interface\n** was invoked incorrectly by the application.  In that case, the\n** error code and message may or may not be set.\n*/\nSQLITE_API int sqlite3_errcode(sqlite3 *db);\nSQLITE_API int sqlite3_extended_errcode(sqlite3 *db);\nSQLITE_API const char *sqlite3_errmsg(sqlite3*);\nSQLITE_API const void *sqlite3_errmsg16(sqlite3*);\nSQLITE_API const char *sqlite3_errstr(int);\n\n/*\n** CAPI3REF: Prepared Statement Object\n** KEYWORDS: {prepared statement} {prepared statements}\n**\n** An instance of this object represents a single SQL statement that\n** has been compiled into binary form and is ready to be evaluated.\n**\n** Think of each SQL statement as a separate computer program.  The\n** original SQL text is source code.  A prepared statement object \n** is the compiled object code.  All SQL must be converted into a\n** prepared statement before it can be run.\n**\n** The life-cycle of a prepared statement object usually goes like this:\n**\n** <ol>\n** <li> Create the prepared statement object using [sqlite3_prepare_v2()].\n** <li> Bind values to [parameters] using the sqlite3_bind_*()\n**      interfaces.\n** <li> Run the SQL by calling [sqlite3_step()] one or more times.\n** <li> Reset the prepared statement using [sqlite3_reset()] then go back\n**      to step 2.  Do this zero or more times.\n** <li> Destroy the object using [sqlite3_finalize()].\n** </ol>\n*/\ntypedef struct sqlite3_stmt sqlite3_stmt;\n\n/*\n** CAPI3REF: Run-time Limits\n** METHOD: sqlite3\n**\n** ^(This interface allows the size of various constructs to be limited\n** on a connection by connection basis.  The first parameter is the\n** [database connection] whose limit is to be set or queried.  The\n** second parameter is one of the [limit categories] that define a\n** class of constructs to be size limited.  The third parameter is the\n** new limit for that construct.)^\n**\n** ^If the new limit is a negative number, the limit is unchanged.\n** ^(For each limit category SQLITE_LIMIT_<i>NAME</i> there is a \n** [limits | hard upper bound]\n** set at compile-time by a C preprocessor macro called\n** [limits | SQLITE_MAX_<i>NAME</i>].\n** (The \"_LIMIT_\" in the name is changed to \"_MAX_\".))^\n** ^Attempts to increase a limit above its hard upper bound are\n** silently truncated to the hard upper bound.\n**\n** ^Regardless of whether or not the limit was changed, the \n** [sqlite3_limit()] interface returns the prior value of the limit.\n** ^Hence, to find the current value of a limit without changing it,\n** simply invoke this interface with the third parameter set to -1.\n**\n** Run-time limits are intended for use in applications that manage\n** both their own internal database and also databases that are controlled\n** by untrusted external sources.  An example application might be a\n** web browser that has its own databases for storing history and\n** separate databases controlled by JavaScript applications downloaded\n** off the Internet.  The internal databases can be given the\n** large, default limits.  Databases managed by external sources can\n** be given much smaller limits designed to prevent a denial of service\n** attack.  Developers might also want to use the [sqlite3_set_authorizer()]\n** interface to further control untrusted SQL.  The size of the database\n** created by an untrusted script can be contained using the\n** [max_page_count] [PRAGMA].\n**\n** New run-time limit categories may be added in future releases.\n*/\nSQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);\n\n/*\n** CAPI3REF: Run-Time Limit Categories\n** KEYWORDS: {limit category} {*limit categories}\n**\n** These constants define various performance limits\n** that can be lowered at run-time using [sqlite3_limit()].\n** The synopsis of the meanings of the various limits is shown below.\n** Additional information is available at [limits | Limits in SQLite].\n**\n** <dl>\n** [[SQLITE_LIMIT_LENGTH]] ^(<dt>SQLITE_LIMIT_LENGTH</dt>\n** <dd>The maximum size of any string or BLOB or table row, in bytes.<dd>)^\n**\n** [[SQLITE_LIMIT_SQL_LENGTH]] ^(<dt>SQLITE_LIMIT_SQL_LENGTH</dt>\n** <dd>The maximum length of an SQL statement, in bytes.</dd>)^\n**\n** [[SQLITE_LIMIT_COLUMN]] ^(<dt>SQLITE_LIMIT_COLUMN</dt>\n** <dd>The maximum number of columns in a table definition or in the\n** result set of a [SELECT] or the maximum number of columns in an index\n** or in an ORDER BY or GROUP BY clause.</dd>)^\n**\n** [[SQLITE_LIMIT_EXPR_DEPTH]] ^(<dt>SQLITE_LIMIT_EXPR_DEPTH</dt>\n** <dd>The maximum depth of the parse tree on any expression.</dd>)^\n**\n** [[SQLITE_LIMIT_COMPOUND_SELECT]] ^(<dt>SQLITE_LIMIT_COMPOUND_SELECT</dt>\n** <dd>The maximum number of terms in a compound SELECT statement.</dd>)^\n**\n** [[SQLITE_LIMIT_VDBE_OP]] ^(<dt>SQLITE_LIMIT_VDBE_OP</dt>\n** <dd>The maximum number of instructions in a virtual machine program\n** used to implement an SQL statement.  If [sqlite3_prepare_v2()] or\n** the equivalent tries to allocate space for more than this many opcodes\n** in a single prepared statement, an SQLITE_NOMEM error is returned.</dd>)^\n**\n** [[SQLITE_LIMIT_FUNCTION_ARG]] ^(<dt>SQLITE_LIMIT_FUNCTION_ARG</dt>\n** <dd>The maximum number of arguments on a function.</dd>)^\n**\n** [[SQLITE_LIMIT_ATTACHED]] ^(<dt>SQLITE_LIMIT_ATTACHED</dt>\n** <dd>The maximum number of [ATTACH | attached databases].)^</dd>\n**\n** [[SQLITE_LIMIT_LIKE_PATTERN_LENGTH]]\n** ^(<dt>SQLITE_LIMIT_LIKE_PATTERN_LENGTH</dt>\n** <dd>The maximum length of the pattern argument to the [LIKE] or\n** [GLOB] operators.</dd>)^\n**\n** [[SQLITE_LIMIT_VARIABLE_NUMBER]]\n** ^(<dt>SQLITE_LIMIT_VARIABLE_NUMBER</dt>\n** <dd>The maximum index number of any [parameter] in an SQL statement.)^\n**\n** [[SQLITE_LIMIT_TRIGGER_DEPTH]] ^(<dt>SQLITE_LIMIT_TRIGGER_DEPTH</dt>\n** <dd>The maximum depth of recursion for triggers.</dd>)^\n**\n** [[SQLITE_LIMIT_WORKER_THREADS]] ^(<dt>SQLITE_LIMIT_WORKER_THREADS</dt>\n** <dd>The maximum number of auxiliary worker threads that a single\n** [prepared statement] may start.</dd>)^\n** </dl>\n*/\n#define SQLITE_LIMIT_LENGTH                    0\n#define SQLITE_LIMIT_SQL_LENGTH                1\n#define SQLITE_LIMIT_COLUMN                    2\n#define SQLITE_LIMIT_EXPR_DEPTH                3\n#define SQLITE_LIMIT_COMPOUND_SELECT           4\n#define SQLITE_LIMIT_VDBE_OP                   5\n#define SQLITE_LIMIT_FUNCTION_ARG              6\n#define SQLITE_LIMIT_ATTACHED                  7\n#define SQLITE_LIMIT_LIKE_PATTERN_LENGTH       8\n#define SQLITE_LIMIT_VARIABLE_NUMBER           9\n#define SQLITE_LIMIT_TRIGGER_DEPTH            10\n#define SQLITE_LIMIT_WORKER_THREADS           11\n\n/*\n** CAPI3REF: Prepare Flags\n**\n** These constants define various flags that can be passed into\n** \"prepFlags\" parameter of the [sqlite3_prepare_v3()] and\n** [sqlite3_prepare16_v3()] interfaces.\n**\n** New flags may be added in future releases of SQLite.\n**\n** <dl>\n** [[SQLITE_PREPARE_PERSISTENT]] ^(<dt>SQLITE_PREPARE_PERSISTENT</dt>\n** <dd>The SQLITE_PREPARE_PERSISTENT flag is a hint to the query planner\n** that the prepared statement will be retained for a long time and\n** probably reused many times.)^ ^Without this flag, [sqlite3_prepare_v3()]\n** and [sqlite3_prepare16_v3()] assume that the prepared statement will \n** be used just once or at most a few times and then destroyed using\n** [sqlite3_finalize()] relatively soon. The current implementation acts\n** on this hint by avoiding the use of [lookaside memory] so as not to\n** deplete the limited store of lookaside memory. Future versions of\n** SQLite may act on this hint differently.\n** </dl>\n*/\n#define SQLITE_PREPARE_PERSISTENT              0x01\n\n/*\n** CAPI3REF: Compiling An SQL Statement\n** KEYWORDS: {SQL statement compiler}\n** METHOD: sqlite3\n** CONSTRUCTOR: sqlite3_stmt\n**\n** To execute an SQL statement, it must first be compiled into a byte-code\n** program using one of these routines.  Or, in other words, these routines\n** are constructors for the [prepared statement] object.\n**\n** The preferred routine to use is [sqlite3_prepare_v2()].  The\n** [sqlite3_prepare()] interface is legacy and should be avoided.\n** [sqlite3_prepare_v3()] has an extra \"prepFlags\" option that is used\n** for special purposes.\n**\n** The use of the UTF-8 interfaces is preferred, as SQLite currently\n** does all parsing using UTF-8.  The UTF-16 interfaces are provided\n** as a convenience.  The UTF-16 interfaces work by converting the\n** input text into UTF-8, then invoking the corresponding UTF-8 interface.\n**\n** The first argument, \"db\", is a [database connection] obtained from a\n** prior successful call to [sqlite3_open()], [sqlite3_open_v2()] or\n** [sqlite3_open16()].  The database connection must not have been closed.\n**\n** The second argument, \"zSql\", is the statement to be compiled, encoded\n** as either UTF-8 or UTF-16.  The sqlite3_prepare(), sqlite3_prepare_v2(),\n** and sqlite3_prepare_v3()\n** interfaces use UTF-8, and sqlite3_prepare16(), sqlite3_prepare16_v2(),\n** and sqlite3_prepare16_v3() use UTF-16.\n**\n** ^If the nByte argument is negative, then zSql is read up to the\n** first zero terminator. ^If nByte is positive, then it is the\n** number of bytes read from zSql.  ^If nByte is zero, then no prepared\n** statement is generated.\n** If the caller knows that the supplied string is nul-terminated, then\n** there is a small performance advantage to passing an nByte parameter that\n** is the number of bytes in the input string <i>including</i>\n** the nul-terminator.\n**\n** ^If pzTail is not NULL then *pzTail is made to point to the first byte\n** past the end of the first SQL statement in zSql.  These routines only\n** compile the first statement in zSql, so *pzTail is left pointing to\n** what remains uncompiled.\n**\n** ^*ppStmt is left pointing to a compiled [prepared statement] that can be\n** executed using [sqlite3_step()].  ^If there is an error, *ppStmt is set\n** to NULL.  ^If the input text contains no SQL (if the input is an empty\n** string or a comment) then *ppStmt is set to NULL.\n** The calling procedure is responsible for deleting the compiled\n** SQL statement using [sqlite3_finalize()] after it has finished with it.\n** ppStmt may not be NULL.\n**\n** ^On success, the sqlite3_prepare() family of routines return [SQLITE_OK];\n** otherwise an [error code] is returned.\n**\n** The sqlite3_prepare_v2(), sqlite3_prepare_v3(), sqlite3_prepare16_v2(),\n** and sqlite3_prepare16_v3() interfaces are recommended for all new programs.\n** The older interfaces (sqlite3_prepare() and sqlite3_prepare16())\n** are retained for backwards compatibility, but their use is discouraged.\n** ^In the \"vX\" interfaces, the prepared statement\n** that is returned (the [sqlite3_stmt] object) contains a copy of the\n** original SQL text. This causes the [sqlite3_step()] interface to\n** behave differently in three ways:\n**\n** <ol>\n** <li>\n** ^If the database schema changes, instead of returning [SQLITE_SCHEMA] as it\n** always used to do, [sqlite3_step()] will automatically recompile the SQL\n** statement and try to run it again. As many as [SQLITE_MAX_SCHEMA_RETRY]\n** retries will occur before sqlite3_step() gives up and returns an error.\n** </li>\n**\n** <li>\n** ^When an error occurs, [sqlite3_step()] will return one of the detailed\n** [error codes] or [extended error codes].  ^The legacy behavior was that\n** [sqlite3_step()] would only return a generic [SQLITE_ERROR] result code\n** and the application would have to make a second call to [sqlite3_reset()]\n** in order to find the underlying cause of the problem. With the \"v2\" prepare\n** interfaces, the underlying reason for the error is returned immediately.\n** </li>\n**\n** <li>\n** ^If the specific value bound to [parameter | host parameter] in the \n** WHERE clause might influence the choice of query plan for a statement,\n** then the statement will be automatically recompiled, as if there had been \n** a schema change, on the first  [sqlite3_step()] call following any change\n** to the [sqlite3_bind_text | bindings] of that [parameter]. \n** ^The specific value of WHERE-clause [parameter] might influence the \n** choice of query plan if the parameter is the left-hand side of a [LIKE]\n** or [GLOB] operator or if the parameter is compared to an indexed column\n** and the [SQLITE_ENABLE_STAT3] compile-time option is enabled.\n** </li>\n**\n** <p>^sqlite3_prepare_v3() differs from sqlite3_prepare_v2() only in having\n** the extra prepFlags parameter, which is a bit array consisting of zero or\n** more of the [SQLITE_PREPARE_PERSISTENT|SQLITE_PREPARE_*] flags.  ^The\n** sqlite3_prepare_v2() interface works exactly the same as\n** sqlite3_prepare_v3() with a zero prepFlags parameter.\n** </ol>\n*/\nSQLITE_API int sqlite3_prepare(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare_v2(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare_v3(\n  sqlite3 *db,            /* Database handle */\n  const char *zSql,       /* SQL statement, UTF-8 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const char **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16_v2(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\nSQLITE_API int sqlite3_prepare16_v3(\n  sqlite3 *db,            /* Database handle */\n  const void *zSql,       /* SQL statement, UTF-16 encoded */\n  int nByte,              /* Maximum length of zSql in bytes. */\n  unsigned int prepFlags, /* Zero or more SQLITE_PREPARE_ flags */\n  sqlite3_stmt **ppStmt,  /* OUT: Statement handle */\n  const void **pzTail     /* OUT: Pointer to unused portion of zSql */\n);\n\n/*\n** CAPI3REF: Retrieving Statement SQL\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_sql(P) interface returns a pointer to a copy of the UTF-8\n** SQL text used to create [prepared statement] P if P was\n** created by [sqlite3_prepare_v2()], [sqlite3_prepare_v3()],\n** [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()].\n** ^The sqlite3_expanded_sql(P) interface returns a pointer to a UTF-8\n** string containing the SQL text of prepared statement P with\n** [bound parameters] expanded.\n**\n** ^(For example, if a prepared statement is created using the SQL\n** text \"SELECT $abc,:xyz\" and if parameter $abc is bound to integer 2345\n** and parameter :xyz is unbound, then sqlite3_sql() will return\n** the original string, \"SELECT $abc,:xyz\" but sqlite3_expanded_sql()\n** will return \"SELECT 2345,NULL\".)^\n**\n** ^The sqlite3_expanded_sql() interface returns NULL if insufficient memory\n** is available to hold the result, or if the result would exceed the\n** the maximum string length determined by the [SQLITE_LIMIT_LENGTH].\n**\n** ^The [SQLITE_TRACE_SIZE_LIMIT] compile-time option limits the size of\n** bound parameter expansions.  ^The [SQLITE_OMIT_TRACE] compile-time\n** option causes sqlite3_expanded_sql() to always return NULL.\n**\n** ^The string returned by sqlite3_sql(P) is managed by SQLite and is\n** automatically freed when the prepared statement is finalized.\n** ^The string returned by sqlite3_expanded_sql(P), on the other hand,\n** is obtained from [sqlite3_malloc()] and must be free by the application\n** by passing it to [sqlite3_free()].\n*/\nSQLITE_API const char *sqlite3_sql(sqlite3_stmt *pStmt);\nSQLITE_API char *sqlite3_expanded_sql(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Determine If An SQL Statement Writes The Database\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_stmt_readonly(X) interface returns true (non-zero) if\n** and only if the [prepared statement] X makes no direct changes to\n** the content of the database file.\n**\n** Note that [application-defined SQL functions] or\n** [virtual tables] might change the database indirectly as a side effect.  \n** ^(For example, if an application defines a function \"eval()\" that \n** calls [sqlite3_exec()], then the following SQL statement would\n** change the database file through side-effects:\n**\n** <blockquote><pre>\n**    SELECT eval('DELETE FROM t1') FROM t2;\n** </pre></blockquote>\n**\n** But because the [SELECT] statement does not change the database file\n** directly, sqlite3_stmt_readonly() would still return true.)^\n**\n** ^Transaction control statements such as [BEGIN], [COMMIT], [ROLLBACK],\n** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,\n** since the statements themselves do not actually modify the database but\n** rather they control the timing of when other statements modify the \n** database.  ^The [ATTACH] and [DETACH] statements also cause\n** sqlite3_stmt_readonly() to return true since, while those statements\n** change the configuration of a database connection, they do not make \n** changes to the content of the database files on disk.\n** ^The sqlite3_stmt_readonly() interface returns true for [BEGIN] since\n** [BEGIN] merely sets internal flags, but the [BEGIN|BEGIN IMMEDIATE] and\n** [BEGIN|BEGIN EXCLUSIVE] commands do touch the database and so\n** sqlite3_stmt_readonly() returns false for those commands.\n*/\nSQLITE_API int sqlite3_stmt_readonly(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Determine If A Prepared Statement Has Been Reset\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_stmt_busy(S) interface returns true (non-zero) if the\n** [prepared statement] S has been stepped at least once using \n** [sqlite3_step(S)] but has neither run to completion (returned\n** [SQLITE_DONE] from [sqlite3_step(S)]) nor\n** been reset using [sqlite3_reset(S)].  ^The sqlite3_stmt_busy(S)\n** interface returns false if S is a NULL pointer.  If S is not a \n** NULL pointer and is not a pointer to a valid [prepared statement]\n** object, then the behavior is undefined and probably undesirable.\n**\n** This interface can be used in combination [sqlite3_next_stmt()]\n** to locate all prepared statements associated with a database \n** connection that are in need of being reset.  This can be used,\n** for example, in diagnostic routines to search for prepared \n** statements that are holding a transaction open.\n*/\nSQLITE_API int sqlite3_stmt_busy(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Dynamically Typed Value Object\n** KEYWORDS: {protected sqlite3_value} {unprotected sqlite3_value}\n**\n** SQLite uses the sqlite3_value object to represent all values\n** that can be stored in a database table. SQLite uses dynamic typing\n** for the values it stores.  ^Values stored in sqlite3_value objects\n** can be integers, floating point values, strings, BLOBs, or NULL.\n**\n** An sqlite3_value object may be either \"protected\" or \"unprotected\".\n** Some interfaces require a protected sqlite3_value.  Other interfaces\n** will accept either a protected or an unprotected sqlite3_value.\n** Every interface that accepts sqlite3_value arguments specifies\n** whether or not it requires a protected sqlite3_value.  The\n** [sqlite3_value_dup()] interface can be used to construct a new \n** protected sqlite3_value from an unprotected sqlite3_value.\n**\n** The terms \"protected\" and \"unprotected\" refer to whether or not\n** a mutex is held.  An internal mutex is held for a protected\n** sqlite3_value object but no mutex is held for an unprotected\n** sqlite3_value object.  If SQLite is compiled to be single-threaded\n** (with [SQLITE_THREADSAFE=0] and with [sqlite3_threadsafe()] returning 0)\n** or if SQLite is run in one of reduced mutex modes \n** [SQLITE_CONFIG_SINGLETHREAD] or [SQLITE_CONFIG_MULTITHREAD]\n** then there is no distinction between protected and unprotected\n** sqlite3_value objects and they can be used interchangeably.  However,\n** for maximum code portability it is recommended that applications\n** still make the distinction between protected and unprotected\n** sqlite3_value objects even when not strictly required.\n**\n** ^The sqlite3_value objects that are passed as parameters into the\n** implementation of [application-defined SQL functions] are protected.\n** ^The sqlite3_value object returned by\n** [sqlite3_column_value()] is unprotected.\n** Unprotected sqlite3_value objects may only be used as arguments\n** to [sqlite3_result_value()], [sqlite3_bind_value()], and\n** [sqlite3_value_dup()].\n** The [sqlite3_value_blob | sqlite3_value_type()] family of\n** interfaces require protected sqlite3_value objects.\n*/\ntypedef struct sqlite3_value sqlite3_value;\n\n/*\n** CAPI3REF: SQL Function Context Object\n**\n** The context in which an SQL function executes is stored in an\n** sqlite3_context object.  ^A pointer to an sqlite3_context object\n** is always first parameter to [application-defined SQL functions].\n** The application-defined SQL function implementation will pass this\n** pointer through into calls to [sqlite3_result_int | sqlite3_result()],\n** [sqlite3_aggregate_context()], [sqlite3_user_data()],\n** [sqlite3_context_db_handle()], [sqlite3_get_auxdata()],\n** and/or [sqlite3_set_auxdata()].\n*/\ntypedef struct sqlite3_context sqlite3_context;\n\n/*\n** CAPI3REF: Binding Values To Prepared Statements\n** KEYWORDS: {host parameter} {host parameters} {host parameter name}\n** KEYWORDS: {SQL parameter} {SQL parameters} {parameter binding}\n** METHOD: sqlite3_stmt\n**\n** ^(In the SQL statement text input to [sqlite3_prepare_v2()] and its variants,\n** literals may be replaced by a [parameter] that matches one of following\n** templates:\n**\n** <ul>\n** <li>  ?\n** <li>  ?NNN\n** <li>  :VVV\n** <li>  @VVV\n** <li>  $VVV\n** </ul>\n**\n** In the templates above, NNN represents an integer literal,\n** and VVV represents an alphanumeric identifier.)^  ^The values of these\n** parameters (also called \"host parameter names\" or \"SQL parameters\")\n** can be set using the sqlite3_bind_*() routines defined here.\n**\n** ^The first argument to the sqlite3_bind_*() routines is always\n** a pointer to the [sqlite3_stmt] object returned from\n** [sqlite3_prepare_v2()] or its variants.\n**\n** ^The second argument is the index of the SQL parameter to be set.\n** ^The leftmost SQL parameter has an index of 1.  ^When the same named\n** SQL parameter is used more than once, second and subsequent\n** occurrences have the same index as the first occurrence.\n** ^The index for named parameters can be looked up using the\n** [sqlite3_bind_parameter_index()] API if desired.  ^The index\n** for \"?NNN\" parameters is the value of NNN.\n** ^The NNN value must be between 1 and the [sqlite3_limit()]\n** parameter [SQLITE_LIMIT_VARIABLE_NUMBER] (default value: 999).\n**\n** ^The third argument is the value to bind to the parameter.\n** ^If the third parameter to sqlite3_bind_text() or sqlite3_bind_text16()\n** or sqlite3_bind_blob() is a NULL pointer then the fourth parameter\n** is ignored and the end result is the same as sqlite3_bind_null().\n**\n** ^(In those routines that have a fourth argument, its value is the\n** number of bytes in the parameter.  To be clear: the value is the\n** number of <u>bytes</u> in the value, not the number of characters.)^\n** ^If the fourth parameter to sqlite3_bind_text() or sqlite3_bind_text16()\n** is negative, then the length of the string is\n** the number of bytes up to the first zero terminator.\n** If the fourth parameter to sqlite3_bind_blob() is negative, then\n** the behavior is undefined.\n** If a non-negative fourth parameter is provided to sqlite3_bind_text()\n** or sqlite3_bind_text16() or sqlite3_bind_text64() then\n** that parameter must be the byte offset\n** where the NUL terminator would occur assuming the string were NUL\n** terminated.  If any NUL characters occur at byte offsets less than \n** the value of the fourth parameter then the resulting string value will\n** contain embedded NULs.  The result of expressions involving strings\n** with embedded NULs is undefined.\n**\n** ^The fifth argument to the BLOB and string binding interfaces\n** is a destructor used to dispose of the BLOB or\n** string after SQLite has finished with it.  ^The destructor is called\n** to dispose of the BLOB or string even if the call to bind API fails.\n** ^If the fifth argument is\n** the special value [SQLITE_STATIC], then SQLite assumes that the\n** information is in static, unmanaged space and does not need to be freed.\n** ^If the fifth argument has the value [SQLITE_TRANSIENT], then\n** SQLite makes its own private copy of the data immediately, before\n** the sqlite3_bind_*() routine returns.\n**\n** ^The sixth argument to sqlite3_bind_text64() must be one of\n** [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE]\n** to specify the encoding of the text in the third parameter.  If\n** the sixth argument to sqlite3_bind_text64() is not one of the\n** allowed values shown above, or if the text encoding is different\n** from the encoding specified by the sixth parameter, then the behavior\n** is undefined.\n**\n** ^The sqlite3_bind_zeroblob() routine binds a BLOB of length N that\n** is filled with zeroes.  ^A zeroblob uses a fixed amount of memory\n** (just an integer to hold its size) while it is being processed.\n** Zeroblobs are intended to serve as placeholders for BLOBs whose\n** content is later written using\n** [sqlite3_blob_open | incremental BLOB I/O] routines.\n** ^A negative value for the zeroblob results in a zero-length BLOB.\n**\n** ^The sqlite3_bind_pointer(S,I,P,T,D) routine causes the I-th parameter in\n** [prepared statement] S to have an SQL value of NULL, but to also be\n** associated with the pointer P of type T.  ^D is either a NULL pointer or\n** a pointer to a destructor function for P. ^SQLite will invoke the\n** destructor D with a single argument of P when it is finished using\n** P.  The T parameter should be a static string, preferably a string\n** literal. The sqlite3_bind_pointer() routine is part of the\n** [pointer passing interface] added for SQLite 3.20.0.\n**\n** ^If any of the sqlite3_bind_*() routines are called with a NULL pointer\n** for the [prepared statement] or with a prepared statement for which\n** [sqlite3_step()] has been called more recently than [sqlite3_reset()],\n** then the call will return [SQLITE_MISUSE].  If any sqlite3_bind_()\n** routine is passed a [prepared statement] that has been finalized, the\n** result is undefined and probably harmful.\n**\n** ^Bindings are not cleared by the [sqlite3_reset()] routine.\n** ^Unbound parameters are interpreted as NULL.\n**\n** ^The sqlite3_bind_* routines return [SQLITE_OK] on success or an\n** [error code] if anything goes wrong.\n** ^[SQLITE_TOOBIG] might be returned if the size of a string or BLOB\n** exceeds limits imposed by [sqlite3_limit]([SQLITE_LIMIT_LENGTH]) or\n** [SQLITE_MAX_LENGTH].\n** ^[SQLITE_RANGE] is returned if the parameter\n** index is out of range.  ^[SQLITE_NOMEM] is returned if malloc() fails.\n**\n** See also: [sqlite3_bind_parameter_count()],\n** [sqlite3_bind_parameter_name()], and [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API int sqlite3_bind_blob(sqlite3_stmt*, int, const void*, int n, void(*)(void*));\nSQLITE_API int sqlite3_bind_blob64(sqlite3_stmt*, int, const void*, sqlite3_uint64,\n                        void(*)(void*));\nSQLITE_API int sqlite3_bind_double(sqlite3_stmt*, int, double);\nSQLITE_API int sqlite3_bind_int(sqlite3_stmt*, int, int);\nSQLITE_API int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite3_int64);\nSQLITE_API int sqlite3_bind_null(sqlite3_stmt*, int);\nSQLITE_API int sqlite3_bind_text(sqlite3_stmt*,int,const char*,int,void(*)(void*));\nSQLITE_API int sqlite3_bind_text16(sqlite3_stmt*, int, const void*, int, void(*)(void*));\nSQLITE_API int sqlite3_bind_text64(sqlite3_stmt*, int, const char*, sqlite3_uint64,\n                         void(*)(void*), unsigned char encoding);\nSQLITE_API int sqlite3_bind_value(sqlite3_stmt*, int, const sqlite3_value*);\nSQLITE_API int sqlite3_bind_pointer(sqlite3_stmt*, int, void*, const char*,void(*)(void*));\nSQLITE_API int sqlite3_bind_zeroblob(sqlite3_stmt*, int, int n);\nSQLITE_API int sqlite3_bind_zeroblob64(sqlite3_stmt*, int, sqlite3_uint64);\n\n/*\n** CAPI3REF: Number Of SQL Parameters\n** METHOD: sqlite3_stmt\n**\n** ^This routine can be used to find the number of [SQL parameters]\n** in a [prepared statement].  SQL parameters are tokens of the\n** form \"?\", \"?NNN\", \":AAA\", \"$AAA\", or \"@AAA\" that serve as\n** placeholders for values that are [sqlite3_bind_blob | bound]\n** to the parameters at a later time.\n**\n** ^(This routine actually returns the index of the largest (rightmost)\n** parameter. For all forms except ?NNN, this will correspond to the\n** number of unique parameters.  If parameters of the ?NNN form are used,\n** there may be gaps in the list.)^\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_name()], and\n** [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API int sqlite3_bind_parameter_count(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Name Of A Host Parameter\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_bind_parameter_name(P,N) interface returns\n** the name of the N-th [SQL parameter] in the [prepared statement] P.\n** ^(SQL parameters of the form \"?NNN\" or \":AAA\" or \"@AAA\" or \"$AAA\"\n** have a name which is the string \"?NNN\" or \":AAA\" or \"@AAA\" or \"$AAA\"\n** respectively.\n** In other words, the initial \":\" or \"$\" or \"@\" or \"?\"\n** is included as part of the name.)^\n** ^Parameters of the form \"?\" without a following integer have no name\n** and are referred to as \"nameless\" or \"anonymous parameters\".\n**\n** ^The first host parameter has an index of 1, not 0.\n**\n** ^If the value N is out of range or if the N-th parameter is\n** nameless, then NULL is returned.  ^The returned string is\n** always in UTF-8 encoding even if the named parameter was\n** originally specified as UTF-16 in [sqlite3_prepare16()],\n** [sqlite3_prepare16_v2()], or [sqlite3_prepare16_v3()].\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_count()], and\n** [sqlite3_bind_parameter_index()].\n*/\nSQLITE_API const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int);\n\n/*\n** CAPI3REF: Index Of A Parameter With A Given Name\n** METHOD: sqlite3_stmt\n**\n** ^Return the index of an SQL parameter given its name.  ^The\n** index value returned is suitable for use as the second\n** parameter to [sqlite3_bind_blob|sqlite3_bind()].  ^A zero\n** is returned if no matching parameter is found.  ^The parameter\n** name must be given in UTF-8 even if the original statement\n** was prepared from UTF-16 text using [sqlite3_prepare16_v2()] or\n** [sqlite3_prepare16_v3()].\n**\n** See also: [sqlite3_bind_blob|sqlite3_bind()],\n** [sqlite3_bind_parameter_count()], and\n** [sqlite3_bind_parameter_name()].\n*/\nSQLITE_API int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName);\n\n/*\n** CAPI3REF: Reset All Bindings On A Prepared Statement\n** METHOD: sqlite3_stmt\n**\n** ^Contrary to the intuition of many, [sqlite3_reset()] does not reset\n** the [sqlite3_bind_blob | bindings] on a [prepared statement].\n** ^Use this routine to reset all host parameters to NULL.\n*/\nSQLITE_API int sqlite3_clear_bindings(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Number Of Columns In A Result Set\n** METHOD: sqlite3_stmt\n**\n** ^Return the number of columns in the result set returned by the\n** [prepared statement]. ^If this routine returns 0, that means the \n** [prepared statement] returns no data (for example an [UPDATE]).\n** ^However, just because this routine returns a positive number does not\n** mean that one or more rows of data will be returned.  ^A SELECT statement\n** will always have a positive sqlite3_column_count() but depending on the\n** WHERE clause constraints and the table content, it might return no rows.\n**\n** See also: [sqlite3_data_count()]\n*/\nSQLITE_API int sqlite3_column_count(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Column Names In A Result Set\n** METHOD: sqlite3_stmt\n**\n** ^These routines return the name assigned to a particular column\n** in the result set of a [SELECT] statement.  ^The sqlite3_column_name()\n** interface returns a pointer to a zero-terminated UTF-8 string\n** and sqlite3_column_name16() returns a pointer to a zero-terminated\n** UTF-16 string.  ^The first parameter is the [prepared statement]\n** that implements the [SELECT] statement. ^The second parameter is the\n** column number.  ^The leftmost column is number 0.\n**\n** ^The returned string pointer is valid until either the [prepared statement]\n** is destroyed by [sqlite3_finalize()] or until the statement is automatically\n** reprepared by the first call to [sqlite3_step()] for a particular run\n** or until the next call to\n** sqlite3_column_name() or sqlite3_column_name16() on the same column.\n**\n** ^If sqlite3_malloc() fails during the processing of either routine\n** (for example during a conversion from UTF-8 to UTF-16) then a\n** NULL pointer is returned.\n**\n** ^The name of a result column is the value of the \"AS\" clause for\n** that column, if there is an AS clause.  If there is no AS clause\n** then the name of the column is unspecified and may change from\n** one release of SQLite to the next.\n*/\nSQLITE_API const char *sqlite3_column_name(sqlite3_stmt*, int N);\nSQLITE_API const void *sqlite3_column_name16(sqlite3_stmt*, int N);\n\n/*\n** CAPI3REF: Source Of Data In A Query Result\n** METHOD: sqlite3_stmt\n**\n** ^These routines provide a means to determine the database, table, and\n** table column that is the origin of a particular result column in\n** [SELECT] statement.\n** ^The name of the database or table or column can be returned as\n** either a UTF-8 or UTF-16 string.  ^The _database_ routines return\n** the database name, the _table_ routines return the table name, and\n** the origin_ routines return the column name.\n** ^The returned string is valid until the [prepared statement] is destroyed\n** using [sqlite3_finalize()] or until the statement is automatically\n** reprepared by the first call to [sqlite3_step()] for a particular run\n** or until the same information is requested\n** again in a different encoding.\n**\n** ^The names returned are the original un-aliased names of the\n** database, table, and column.\n**\n** ^The first argument to these interfaces is a [prepared statement].\n** ^These functions return information about the Nth result column returned by\n** the statement, where N is the second function argument.\n** ^The left-most column is column 0 for these routines.\n**\n** ^If the Nth column returned by the statement is an expression or\n** subquery and is not a column value, then all of these functions return\n** NULL.  ^These routine might also return NULL if a memory allocation error\n** occurs.  ^Otherwise, they return the name of the attached database, table,\n** or column that query result column was extracted from.\n**\n** ^As with all other SQLite APIs, those whose names end with \"16\" return\n** UTF-16 encoded strings and the other functions return UTF-8.\n**\n** ^These APIs are only available if the library was compiled with the\n** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol.\n**\n** If two or more threads call one or more of these routines against the same\n** prepared statement and column at the same time then the results are\n** undefined.\n**\n** If two or more threads call one or more\n** [sqlite3_column_database_name | column metadata interfaces]\n** for the same [prepared statement] and result column\n** at the same time then the results are undefined.\n*/\nSQLITE_API const char *sqlite3_column_database_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_database_name16(sqlite3_stmt*,int);\nSQLITE_API const char *sqlite3_column_table_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_table_name16(sqlite3_stmt*,int);\nSQLITE_API const char *sqlite3_column_origin_name(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_origin_name16(sqlite3_stmt*,int);\n\n/*\n** CAPI3REF: Declared Datatype Of A Query Result\n** METHOD: sqlite3_stmt\n**\n** ^(The first parameter is a [prepared statement].\n** If this statement is a [SELECT] statement and the Nth column of the\n** returned result set of that [SELECT] is a table column (not an\n** expression or subquery) then the declared type of the table\n** column is returned.)^  ^If the Nth column of the result set is an\n** expression or subquery, then a NULL pointer is returned.\n** ^The returned string is always UTF-8 encoded.\n**\n** ^(For example, given the database schema:\n**\n** CREATE TABLE t1(c1 VARIANT);\n**\n** and the following statement to be compiled:\n**\n** SELECT c1 + 1, c1 FROM t1;\n**\n** this routine would return the string \"VARIANT\" for the second result\n** column (i==1), and a NULL pointer for the first result column (i==0).)^\n**\n** ^SQLite uses dynamic run-time typing.  ^So just because a column\n** is declared to contain a particular type does not mean that the\n** data stored in that column is of the declared type.  SQLite is\n** strongly typed, but the typing is dynamic not static.  ^Type\n** is associated with individual values, not with the containers\n** used to hold those values.\n*/\nSQLITE_API const char *sqlite3_column_decltype(sqlite3_stmt*,int);\nSQLITE_API const void *sqlite3_column_decltype16(sqlite3_stmt*,int);\n\n/*\n** CAPI3REF: Evaluate An SQL Statement\n** METHOD: sqlite3_stmt\n**\n** After a [prepared statement] has been prepared using any of\n** [sqlite3_prepare_v2()], [sqlite3_prepare_v3()], [sqlite3_prepare16_v2()],\n** or [sqlite3_prepare16_v3()] or one of the legacy\n** interfaces [sqlite3_prepare()] or [sqlite3_prepare16()], this function\n** must be called one or more times to evaluate the statement.\n**\n** The details of the behavior of the sqlite3_step() interface depend\n** on whether the statement was prepared using the newer \"vX\" interfaces\n** [sqlite3_prepare_v3()], [sqlite3_prepare_v2()], [sqlite3_prepare16_v3()],\n** [sqlite3_prepare16_v2()] or the older legacy\n** interfaces [sqlite3_prepare()] and [sqlite3_prepare16()].  The use of the\n** new \"vX\" interface is recommended for new applications but the legacy\n** interface will continue to be supported.\n**\n** ^In the legacy interface, the return value will be either [SQLITE_BUSY],\n** [SQLITE_DONE], [SQLITE_ROW], [SQLITE_ERROR], or [SQLITE_MISUSE].\n** ^With the \"v2\" interface, any of the other [result codes] or\n** [extended result codes] might be returned as well.\n**\n** ^[SQLITE_BUSY] means that the database engine was unable to acquire the\n** database locks it needs to do its job.  ^If the statement is a [COMMIT]\n** or occurs outside of an explicit transaction, then you can retry the\n** statement.  If the statement is not a [COMMIT] and occurs within an\n** explicit transaction then you should rollback the transaction before\n** continuing.\n**\n** ^[SQLITE_DONE] means that the statement has finished executing\n** successfully.  sqlite3_step() should not be called again on this virtual\n** machine without first calling [sqlite3_reset()] to reset the virtual\n** machine back to its initial state.\n**\n** ^If the SQL statement being executed returns any data, then [SQLITE_ROW]\n** is returned each time a new row of data is ready for processing by the\n** caller. The values may be accessed using the [column access functions].\n** sqlite3_step() is called again to retrieve the next row of data.\n**\n** ^[SQLITE_ERROR] means that a run-time error (such as a constraint\n** violation) has occurred.  sqlite3_step() should not be called again on\n** the VM. More information may be found by calling [sqlite3_errmsg()].\n** ^With the legacy interface, a more specific error code (for example,\n** [SQLITE_INTERRUPT], [SQLITE_SCHEMA], [SQLITE_CORRUPT], and so forth)\n** can be obtained by calling [sqlite3_reset()] on the\n** [prepared statement].  ^In the \"v2\" interface,\n** the more specific error code is returned directly by sqlite3_step().\n**\n** [SQLITE_MISUSE] means that the this routine was called inappropriately.\n** Perhaps it was called on a [prepared statement] that has\n** already been [sqlite3_finalize | finalized] or on one that had\n** previously returned [SQLITE_ERROR] or [SQLITE_DONE].  Or it could\n** be the case that the same database connection is being used by two or\n** more threads at the same moment in time.\n**\n** For all versions of SQLite up to and including 3.6.23.1, a call to\n** [sqlite3_reset()] was required after sqlite3_step() returned anything\n** other than [SQLITE_ROW] before any subsequent invocation of\n** sqlite3_step().  Failure to reset the prepared statement using \n** [sqlite3_reset()] would result in an [SQLITE_MISUSE] return from\n** sqlite3_step().  But after [version 3.6.23.1] ([dateof:3.6.23.1],\n** sqlite3_step() began\n** calling [sqlite3_reset()] automatically in this circumstance rather\n** than returning [SQLITE_MISUSE].  This is not considered a compatibility\n** break because any application that ever receives an SQLITE_MISUSE error\n** is broken by definition.  The [SQLITE_OMIT_AUTORESET] compile-time option\n** can be used to restore the legacy behavior.\n**\n** <b>Goofy Interface Alert:</b> In the legacy interface, the sqlite3_step()\n** API always returns a generic error code, [SQLITE_ERROR], following any\n** error other than [SQLITE_BUSY] and [SQLITE_MISUSE].  You must call\n** [sqlite3_reset()] or [sqlite3_finalize()] in order to find one of the\n** specific [error codes] that better describes the error.\n** We admit that this is a goofy design.  The problem has been fixed\n** with the \"v2\" interface.  If you prepare all of your SQL statements\n** using [sqlite3_prepare_v3()] or [sqlite3_prepare_v2()]\n** or [sqlite3_prepare16_v2()] or [sqlite3_prepare16_v3()] instead\n** of the legacy [sqlite3_prepare()] and [sqlite3_prepare16()] interfaces,\n** then the more specific [error codes] are returned directly\n** by sqlite3_step().  The use of the \"vX\" interfaces is recommended.\n*/\nSQLITE_API int sqlite3_step(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Number of columns in a result set\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_data_count(P) interface returns the number of columns in the\n** current row of the result set of [prepared statement] P.\n** ^If prepared statement P does not have results ready to return\n** (via calls to the [sqlite3_column_int | sqlite3_column_*()] of\n** interfaces) then sqlite3_data_count(P) returns 0.\n** ^The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer.\n** ^The sqlite3_data_count(P) routine returns 0 if the previous call to\n** [sqlite3_step](P) returned [SQLITE_DONE].  ^The sqlite3_data_count(P)\n** will return non-zero if previous call to [sqlite3_step](P) returned\n** [SQLITE_ROW], except in the case of the [PRAGMA incremental_vacuum]\n** where it always returns zero since each step of that multi-step\n** pragma returns 0 columns of data.\n**\n** See also: [sqlite3_column_count()]\n*/\nSQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Fundamental Datatypes\n** KEYWORDS: SQLITE_TEXT\n**\n** ^(Every value in SQLite has one of five fundamental datatypes:\n**\n** <ul>\n** <li> 64-bit signed integer\n** <li> 64-bit IEEE floating point number\n** <li> string\n** <li> BLOB\n** <li> NULL\n** </ul>)^\n**\n** These constants are codes for each of those types.\n**\n** Note that the SQLITE_TEXT constant was also used in SQLite version 2\n** for a completely different meaning.  Software that links against both\n** SQLite version 2 and SQLite version 3 should use SQLITE3_TEXT, not\n** SQLITE_TEXT.\n*/\n#define SQLITE_INTEGER  1\n#define SQLITE_FLOAT    2\n#define SQLITE_BLOB     4\n#define SQLITE_NULL     5\n#ifdef SQLITE_TEXT\n# undef SQLITE_TEXT\n#else\n# define SQLITE_TEXT     3\n#endif\n#define SQLITE3_TEXT     3\n\n/*\n** CAPI3REF: Result Values From A Query\n** KEYWORDS: {column access functions}\n** METHOD: sqlite3_stmt\n**\n** <b>Summary:</b>\n** <blockquote><table border=0 cellpadding=0 cellspacing=0>\n** <tr><td><b>sqlite3_column_blob</b><td>&rarr;<td>BLOB result\n** <tr><td><b>sqlite3_column_double</b><td>&rarr;<td>REAL result\n** <tr><td><b>sqlite3_column_int</b><td>&rarr;<td>32-bit INTEGER result\n** <tr><td><b>sqlite3_column_int64</b><td>&rarr;<td>64-bit INTEGER result\n** <tr><td><b>sqlite3_column_text</b><td>&rarr;<td>UTF-8 TEXT result\n** <tr><td><b>sqlite3_column_text16</b><td>&rarr;<td>UTF-16 TEXT result\n** <tr><td><b>sqlite3_column_value</b><td>&rarr;<td>The result as an \n** [sqlite3_value|unprotected sqlite3_value] object.\n** <tr><td>&nbsp;<td>&nbsp;<td>&nbsp;\n** <tr><td><b>sqlite3_column_bytes</b><td>&rarr;<td>Size of a BLOB\n** or a UTF-8 TEXT result in bytes\n** <tr><td><b>sqlite3_column_bytes16&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Size of UTF-16\n** TEXT in bytes\n** <tr><td><b>sqlite3_column_type</b><td>&rarr;<td>Default\n** datatype of the result\n** </table></blockquote>\n**\n** <b>Details:</b>\n**\n** ^These routines return information about a single column of the current\n** result row of a query.  ^In every case the first argument is a pointer\n** to the [prepared statement] that is being evaluated (the [sqlite3_stmt*]\n** that was returned from [sqlite3_prepare_v2()] or one of its variants)\n** and the second argument is the index of the column for which information\n** should be returned. ^The leftmost column of the result set has the index 0.\n** ^The number of columns in the result can be determined using\n** [sqlite3_column_count()].\n**\n** If the SQL statement does not currently point to a valid row, or if the\n** column index is out of range, the result is undefined.\n** These routines may only be called when the most recent call to\n** [sqlite3_step()] has returned [SQLITE_ROW] and neither\n** [sqlite3_reset()] nor [sqlite3_finalize()] have been called subsequently.\n** If any of these routines are called after [sqlite3_reset()] or\n** [sqlite3_finalize()] or after [sqlite3_step()] has returned\n** something other than [SQLITE_ROW], the results are undefined.\n** If [sqlite3_step()] or [sqlite3_reset()] or [sqlite3_finalize()]\n** are called from a different thread while any of these routines\n** are pending, then the results are undefined.\n**\n** The first six interfaces (_blob, _double, _int, _int64, _text, and _text16)\n** each return the value of a result column in a specific data format.  If\n** the result column is not initially in the requested format (for example,\n** if the query returns an integer but the sqlite3_column_text() interface\n** is used to extract the value) then an automatic type conversion is performed.\n**\n** ^The sqlite3_column_type() routine returns the\n** [SQLITE_INTEGER | datatype code] for the initial data type\n** of the result column.  ^The returned value is one of [SQLITE_INTEGER],\n** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].\n** The return value of sqlite3_column_type() can be used to decide which\n** of the first six interface should be used to extract the column value.\n** The value returned by sqlite3_column_type() is only meaningful if no\n** automatic type conversions have occurred for the value in question.  \n** After a type conversion, the result of calling sqlite3_column_type()\n** is undefined, though harmless.  Future\n** versions of SQLite may change the behavior of sqlite3_column_type()\n** following a type conversion.\n**\n** If the result is a BLOB or a TEXT string, then the sqlite3_column_bytes()\n** or sqlite3_column_bytes16() interfaces can be used to determine the size\n** of that BLOB or string.\n**\n** ^If the result is a BLOB or UTF-8 string then the sqlite3_column_bytes()\n** routine returns the number of bytes in that BLOB or string.\n** ^If the result is a UTF-16 string, then sqlite3_column_bytes() converts\n** the string to UTF-8 and then returns the number of bytes.\n** ^If the result is a numeric value then sqlite3_column_bytes() uses\n** [sqlite3_snprintf()] to convert that value to a UTF-8 string and returns\n** the number of bytes in that string.\n** ^If the result is NULL, then sqlite3_column_bytes() returns zero.\n**\n** ^If the result is a BLOB or UTF-16 string then the sqlite3_column_bytes16()\n** routine returns the number of bytes in that BLOB or string.\n** ^If the result is a UTF-8 string, then sqlite3_column_bytes16() converts\n** the string to UTF-16 and then returns the number of bytes.\n** ^If the result is a numeric value then sqlite3_column_bytes16() uses\n** [sqlite3_snprintf()] to convert that value to a UTF-16 string and returns\n** the number of bytes in that string.\n** ^If the result is NULL, then sqlite3_column_bytes16() returns zero.\n**\n** ^The values returned by [sqlite3_column_bytes()] and \n** [sqlite3_column_bytes16()] do not include the zero terminators at the end\n** of the string.  ^For clarity: the values returned by\n** [sqlite3_column_bytes()] and [sqlite3_column_bytes16()] are the number of\n** bytes in the string, not the number of characters.\n**\n** ^Strings returned by sqlite3_column_text() and sqlite3_column_text16(),\n** even empty strings, are always zero-terminated.  ^The return\n** value from sqlite3_column_blob() for a zero-length BLOB is a NULL pointer.\n**\n** <b>Warning:</b> ^The object returned by [sqlite3_column_value()] is an\n** [unprotected sqlite3_value] object.  In a multithreaded environment,\n** an unprotected sqlite3_value object may only be used safely with\n** [sqlite3_bind_value()] and [sqlite3_result_value()].\n** If the [unprotected sqlite3_value] object returned by\n** [sqlite3_column_value()] is used in any other way, including calls\n** to routines like [sqlite3_value_int()], [sqlite3_value_text()],\n** or [sqlite3_value_bytes()], the behavior is not threadsafe.\n** Hence, the sqlite3_column_value() interface\n** is normally only useful within the implementation of \n** [application-defined SQL functions] or [virtual tables], not within\n** top-level application code.\n**\n** The these routines may attempt to convert the datatype of the result.\n** ^For example, if the internal representation is FLOAT and a text result\n** is requested, [sqlite3_snprintf()] is used internally to perform the\n** conversion automatically.  ^(The following table details the conversions\n** that are applied:\n**\n** <blockquote>\n** <table border=\"1\">\n** <tr><th> Internal<br>Type <th> Requested<br>Type <th>  Conversion\n**\n** <tr><td>  NULL    <td> INTEGER   <td> Result is 0\n** <tr><td>  NULL    <td>  FLOAT    <td> Result is 0.0\n** <tr><td>  NULL    <td>   TEXT    <td> Result is a NULL pointer\n** <tr><td>  NULL    <td>   BLOB    <td> Result is a NULL pointer\n** <tr><td> INTEGER  <td>  FLOAT    <td> Convert from integer to float\n** <tr><td> INTEGER  <td>   TEXT    <td> ASCII rendering of the integer\n** <tr><td> INTEGER  <td>   BLOB    <td> Same as INTEGER->TEXT\n** <tr><td>  FLOAT   <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  FLOAT   <td>   TEXT    <td> ASCII rendering of the float\n** <tr><td>  FLOAT   <td>   BLOB    <td> [CAST] to BLOB\n** <tr><td>  TEXT    <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  TEXT    <td>  FLOAT    <td> [CAST] to REAL\n** <tr><td>  TEXT    <td>   BLOB    <td> No change\n** <tr><td>  BLOB    <td> INTEGER   <td> [CAST] to INTEGER\n** <tr><td>  BLOB    <td>  FLOAT    <td> [CAST] to REAL\n** <tr><td>  BLOB    <td>   TEXT    <td> Add a zero terminator if needed\n** </table>\n** </blockquote>)^\n**\n** Note that when type conversions occur, pointers returned by prior\n** calls to sqlite3_column_blob(), sqlite3_column_text(), and/or\n** sqlite3_column_text16() may be invalidated.\n** Type conversions and pointer invalidations might occur\n** in the following cases:\n**\n** <ul>\n** <li> The initial content is a BLOB and sqlite3_column_text() or\n**      sqlite3_column_text16() is called.  A zero-terminator might\n**      need to be added to the string.</li>\n** <li> The initial content is UTF-8 text and sqlite3_column_bytes16() or\n**      sqlite3_column_text16() is called.  The content must be converted\n**      to UTF-16.</li>\n** <li> The initial content is UTF-16 text and sqlite3_column_bytes() or\n**      sqlite3_column_text() is called.  The content must be converted\n**      to UTF-8.</li>\n** </ul>\n**\n** ^Conversions between UTF-16be and UTF-16le are always done in place and do\n** not invalidate a prior pointer, though of course the content of the buffer\n** that the prior pointer references will have been modified.  Other kinds\n** of conversion are done in place when it is possible, but sometimes they\n** are not possible and in those cases prior pointers are invalidated.\n**\n** The safest policy is to invoke these routines\n** in one of the following ways:\n**\n** <ul>\n**  <li>sqlite3_column_text() followed by sqlite3_column_bytes()</li>\n**  <li>sqlite3_column_blob() followed by sqlite3_column_bytes()</li>\n**  <li>sqlite3_column_text16() followed by sqlite3_column_bytes16()</li>\n** </ul>\n**\n** In other words, you should call sqlite3_column_text(),\n** sqlite3_column_blob(), or sqlite3_column_text16() first to force the result\n** into the desired format, then invoke sqlite3_column_bytes() or\n** sqlite3_column_bytes16() to find the size of the result.  Do not mix calls\n** to sqlite3_column_text() or sqlite3_column_blob() with calls to\n** sqlite3_column_bytes16(), and do not mix calls to sqlite3_column_text16()\n** with calls to sqlite3_column_bytes().\n**\n** ^The pointers returned are valid until a type conversion occurs as\n** described above, or until [sqlite3_step()] or [sqlite3_reset()] or\n** [sqlite3_finalize()] is called.  ^The memory space used to hold strings\n** and BLOBs is freed automatically.  Do not pass the pointers returned\n** from [sqlite3_column_blob()], [sqlite3_column_text()], etc. into\n** [sqlite3_free()].\n**\n** ^(If a memory allocation error occurs during the evaluation of any\n** of these routines, a default value is returned.  The default value\n** is either the integer 0, the floating point number 0.0, or a NULL\n** pointer.  Subsequent calls to [sqlite3_errcode()] will return\n** [SQLITE_NOMEM].)^\n*/\nSQLITE_API const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);\nSQLITE_API double sqlite3_column_double(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_int(sqlite3_stmt*, int iCol);\nSQLITE_API sqlite3_int64 sqlite3_column_int64(sqlite3_stmt*, int iCol);\nSQLITE_API const unsigned char *sqlite3_column_text(sqlite3_stmt*, int iCol);\nSQLITE_API const void *sqlite3_column_text16(sqlite3_stmt*, int iCol);\nSQLITE_API sqlite3_value *sqlite3_column_value(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_bytes(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_bytes16(sqlite3_stmt*, int iCol);\nSQLITE_API int sqlite3_column_type(sqlite3_stmt*, int iCol);\n\n/*\n** CAPI3REF: Destroy A Prepared Statement Object\n** DESTRUCTOR: sqlite3_stmt\n**\n** ^The sqlite3_finalize() function is called to delete a [prepared statement].\n** ^If the most recent evaluation of the statement encountered no errors\n** or if the statement is never been evaluated, then sqlite3_finalize() returns\n** SQLITE_OK.  ^If the most recent evaluation of statement S failed, then\n** sqlite3_finalize(S) returns the appropriate [error code] or\n** [extended error code].\n**\n** ^The sqlite3_finalize(S) routine can be called at any point during\n** the life cycle of [prepared statement] S:\n** before statement S is ever evaluated, after\n** one or more calls to [sqlite3_reset()], or after any call\n** to [sqlite3_step()] regardless of whether or not the statement has\n** completed execution.\n**\n** ^Invoking sqlite3_finalize() on a NULL pointer is a harmless no-op.\n**\n** The application must finalize every [prepared statement] in order to avoid\n** resource leaks.  It is a grievous error for the application to try to use\n** a prepared statement after it has been finalized.  Any use of a prepared\n** statement after it has been finalized can result in undefined and\n** undesirable behavior such as segfaults and heap corruption.\n*/\nSQLITE_API int sqlite3_finalize(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Reset A Prepared Statement Object\n** METHOD: sqlite3_stmt\n**\n** The sqlite3_reset() function is called to reset a [prepared statement]\n** object back to its initial state, ready to be re-executed.\n** ^Any SQL statement variables that had values bound to them using\n** the [sqlite3_bind_blob | sqlite3_bind_*() API] retain their values.\n** Use [sqlite3_clear_bindings()] to reset the bindings.\n**\n** ^The [sqlite3_reset(S)] interface resets the [prepared statement] S\n** back to the beginning of its program.\n**\n** ^If the most recent call to [sqlite3_step(S)] for the\n** [prepared statement] S returned [SQLITE_ROW] or [SQLITE_DONE],\n** or if [sqlite3_step(S)] has never before been called on S,\n** then [sqlite3_reset(S)] returns [SQLITE_OK].\n**\n** ^If the most recent call to [sqlite3_step(S)] for the\n** [prepared statement] S indicated an error, then\n** [sqlite3_reset(S)] returns an appropriate [error code].\n**\n** ^The [sqlite3_reset(S)] interface does not change the values\n** of any [sqlite3_bind_blob|bindings] on the [prepared statement] S.\n*/\nSQLITE_API int sqlite3_reset(sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Create Or Redefine SQL Functions\n** KEYWORDS: {function creation routines}\n** KEYWORDS: {application-defined SQL function}\n** KEYWORDS: {application-defined SQL functions}\n** METHOD: sqlite3\n**\n** ^These functions (collectively known as \"function creation routines\")\n** are used to add SQL functions or aggregates or to redefine the behavior\n** of existing SQL functions or aggregates.  The only differences between\n** these routines are the text encoding expected for\n** the second parameter (the name of the function being created)\n** and the presence or absence of a destructor callback for\n** the application data pointer.\n**\n** ^The first parameter is the [database connection] to which the SQL\n** function is to be added.  ^If an application uses more than one database\n** connection then application-defined SQL functions must be added\n** to each database connection separately.\n**\n** ^The second parameter is the name of the SQL function to be created or\n** redefined.  ^The length of the name is limited to 255 bytes in a UTF-8\n** representation, exclusive of the zero-terminator.  ^Note that the name\n** length limit is in UTF-8 bytes, not characters nor UTF-16 bytes.  \n** ^Any attempt to create a function with a longer name\n** will result in [SQLITE_MISUSE] being returned.\n**\n** ^The third parameter (nArg)\n** is the number of arguments that the SQL function or\n** aggregate takes. ^If this parameter is -1, then the SQL function or\n** aggregate may take any number of arguments between 0 and the limit\n** set by [sqlite3_limit]([SQLITE_LIMIT_FUNCTION_ARG]).  If the third\n** parameter is less than -1 or greater than 127 then the behavior is\n** undefined.\n**\n** ^The fourth parameter, eTextRep, specifies what\n** [SQLITE_UTF8 | text encoding] this SQL function prefers for\n** its parameters.  The application should set this parameter to\n** [SQLITE_UTF16LE] if the function implementation invokes \n** [sqlite3_value_text16le()] on an input, or [SQLITE_UTF16BE] if the\n** implementation invokes [sqlite3_value_text16be()] on an input, or\n** [SQLITE_UTF16] if [sqlite3_value_text16()] is used, or [SQLITE_UTF8]\n** otherwise.  ^The same SQL function may be registered multiple times using\n** different preferred text encodings, with different implementations for\n** each encoding.\n** ^When multiple implementations of the same function are available, SQLite\n** will pick the one that involves the least amount of data conversion.\n**\n** ^The fourth parameter may optionally be ORed with [SQLITE_DETERMINISTIC]\n** to signal that the function will always return the same result given\n** the same inputs within a single SQL statement.  Most SQL functions are\n** deterministic.  The built-in [random()] SQL function is an example of a\n** function that is not deterministic.  The SQLite query planner is able to\n** perform additional optimizations on deterministic functions, so use\n** of the [SQLITE_DETERMINISTIC] flag is recommended where possible.\n**\n** ^(The fifth parameter is an arbitrary pointer.  The implementation of the\n** function can gain access to this pointer using [sqlite3_user_data()].)^\n**\n** ^The sixth, seventh and eighth parameters, xFunc, xStep and xFinal, are\n** pointers to C-language functions that implement the SQL function or\n** aggregate. ^A scalar SQL function requires an implementation of the xFunc\n** callback only; NULL pointers must be passed as the xStep and xFinal\n** parameters. ^An aggregate SQL function requires an implementation of xStep\n** and xFinal and NULL pointer must be passed for xFunc. ^To delete an existing\n** SQL function or aggregate, pass NULL pointers for all three function\n** callbacks.\n**\n** ^(If the ninth parameter to sqlite3_create_function_v2() is not NULL,\n** then it is destructor for the application data pointer. \n** The destructor is invoked when the function is deleted, either by being\n** overloaded or when the database connection closes.)^\n** ^The destructor is also invoked if the call to\n** sqlite3_create_function_v2() fails.\n** ^When the destructor callback of the tenth parameter is invoked, it\n** is passed a single argument which is a copy of the application data \n** pointer which was the fifth parameter to sqlite3_create_function_v2().\n**\n** ^It is permitted to register multiple implementations of the same\n** functions with the same name but with either differing numbers of\n** arguments or differing preferred text encodings.  ^SQLite will use\n** the implementation that most closely matches the way in which the\n** SQL function is used.  ^A function implementation with a non-negative\n** nArg parameter is a better match than a function implementation with\n** a negative nArg.  ^A function where the preferred text encoding\n** matches the database encoding is a better\n** match than a function where the encoding is different.  \n** ^A function where the encoding difference is between UTF16le and UTF16be\n** is a closer match than a function where the encoding difference is\n** between UTF8 and UTF16.\n**\n** ^Built-in functions may be overloaded by new application-defined functions.\n**\n** ^An application-defined function is permitted to call other\n** SQLite interfaces.  However, such calls must not\n** close the database connection nor finalize or reset the prepared\n** statement in which the function is running.\n*/\nSQLITE_API int sqlite3_create_function(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n);\nSQLITE_API int sqlite3_create_function16(\n  sqlite3 *db,\n  const void *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*)\n);\nSQLITE_API int sqlite3_create_function_v2(\n  sqlite3 *db,\n  const char *zFunctionName,\n  int nArg,\n  int eTextRep,\n  void *pApp,\n  void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n  void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n  void (*xFinal)(sqlite3_context*),\n  void(*xDestroy)(void*)\n);\n\n/*\n** CAPI3REF: Text Encodings\n**\n** These constant define integer codes that represent the various\n** text encodings supported by SQLite.\n*/\n#define SQLITE_UTF8           1    /* IMP: R-37514-35566 */\n#define SQLITE_UTF16LE        2    /* IMP: R-03371-37637 */\n#define SQLITE_UTF16BE        3    /* IMP: R-51971-34154 */\n#define SQLITE_UTF16          4    /* Use native byte order */\n#define SQLITE_ANY            5    /* Deprecated */\n#define SQLITE_UTF16_ALIGNED  8    /* sqlite3_create_collation only */\n\n/*\n** CAPI3REF: Function Flags\n**\n** These constants may be ORed together with the \n** [SQLITE_UTF8 | preferred text encoding] as the fourth argument\n** to [sqlite3_create_function()], [sqlite3_create_function16()], or\n** [sqlite3_create_function_v2()].\n*/\n#define SQLITE_DETERMINISTIC    0x800\n\n/*\n** CAPI3REF: Deprecated Functions\n** DEPRECATED\n**\n** These functions are [deprecated].  In order to maintain\n** backwards compatibility with older code, these functions continue \n** to be supported.  However, new applications should avoid\n** the use of these functions.  To encourage programmers to avoid\n** these functions, we will not explain what they do.\n*/\n#ifndef SQLITE_OMIT_DEPRECATED\nSQLITE_API SQLITE_DEPRECATED int sqlite3_aggregate_count(sqlite3_context*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_expired(sqlite3_stmt*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_global_recover(void);\nSQLITE_API SQLITE_DEPRECATED void sqlite3_thread_cleanup(void);\nSQLITE_API SQLITE_DEPRECATED int sqlite3_memory_alarm(void(*)(void*,sqlite3_int64,int),\n                      void*,sqlite3_int64);\n#endif\n\n/*\n** CAPI3REF: Obtaining SQL Values\n** METHOD: sqlite3_value\n**\n** <b>Summary:</b>\n** <blockquote><table border=0 cellpadding=0 cellspacing=0>\n** <tr><td><b>sqlite3_value_blob</b><td>&rarr;<td>BLOB value\n** <tr><td><b>sqlite3_value_double</b><td>&rarr;<td>REAL value\n** <tr><td><b>sqlite3_value_int</b><td>&rarr;<td>32-bit INTEGER value\n** <tr><td><b>sqlite3_value_int64</b><td>&rarr;<td>64-bit INTEGER value\n** <tr><td><b>sqlite3_value_pointer</b><td>&rarr;<td>Pointer value\n** <tr><td><b>sqlite3_value_text</b><td>&rarr;<td>UTF-8 TEXT value\n** <tr><td><b>sqlite3_value_text16</b><td>&rarr;<td>UTF-16 TEXT value in\n** the native byteorder\n** <tr><td><b>sqlite3_value_text16be</b><td>&rarr;<td>UTF-16be TEXT value\n** <tr><td><b>sqlite3_value_text16le</b><td>&rarr;<td>UTF-16le TEXT value\n** <tr><td>&nbsp;<td>&nbsp;<td>&nbsp;\n** <tr><td><b>sqlite3_value_bytes</b><td>&rarr;<td>Size of a BLOB\n** or a UTF-8 TEXT in bytes\n** <tr><td><b>sqlite3_value_bytes16&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Size of UTF-16\n** TEXT in bytes\n** <tr><td><b>sqlite3_value_type</b><td>&rarr;<td>Default\n** datatype of the value\n** <tr><td><b>sqlite3_value_numeric_type&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>Best numeric datatype of the value\n** <tr><td><b>sqlite3_value_nochange&nbsp;&nbsp;</b>\n** <td>&rarr;&nbsp;&nbsp;<td>True if the column is unchanged in an UPDATE\n** against a virtual table.\n** </table></blockquote>\n**\n** <b>Details:</b>\n**\n** These routines extract type, size, and content information from\n** [protected sqlite3_value] objects.  Protected sqlite3_value objects\n** are used to pass parameter information into implementation of\n** [application-defined SQL functions] and [virtual tables].\n**\n** These routines work only with [protected sqlite3_value] objects.\n** Any attempt to use these routines on an [unprotected sqlite3_value]\n** is not threadsafe.\n**\n** ^These routines work just like the corresponding [column access functions]\n** except that these routines take a single [protected sqlite3_value] object\n** pointer instead of a [sqlite3_stmt*] pointer and an integer column number.\n**\n** ^The sqlite3_value_text16() interface extracts a UTF-16 string\n** in the native byte-order of the host machine.  ^The\n** sqlite3_value_text16be() and sqlite3_value_text16le() interfaces\n** extract UTF-16 strings as big-endian and little-endian respectively.\n**\n** ^If [sqlite3_value] object V was initialized \n** using [sqlite3_bind_pointer(S,I,P,X,D)] or [sqlite3_result_pointer(C,P,X,D)]\n** and if X and Y are strings that compare equal according to strcmp(X,Y),\n** then sqlite3_value_pointer(V,Y) will return the pointer P.  ^Otherwise,\n** sqlite3_value_pointer(V,Y) returns a NULL. The sqlite3_bind_pointer() \n** routine is part of the [pointer passing interface] added for SQLite 3.20.0.\n**\n** ^(The sqlite3_value_type(V) interface returns the\n** [SQLITE_INTEGER | datatype code] for the initial datatype of the\n** [sqlite3_value] object V. The returned value is one of [SQLITE_INTEGER],\n** [SQLITE_FLOAT], [SQLITE_TEXT], [SQLITE_BLOB], or [SQLITE_NULL].)^\n** Other interfaces might change the datatype for an sqlite3_value object.\n** For example, if the datatype is initially SQLITE_INTEGER and\n** sqlite3_value_text(V) is called to extract a text value for that\n** integer, then subsequent calls to sqlite3_value_type(V) might return\n** SQLITE_TEXT.  Whether or not a persistent internal datatype conversion\n** occurs is undefined and may change from one release of SQLite to the next.\n**\n** ^(The sqlite3_value_numeric_type() interface attempts to apply\n** numeric affinity to the value.  This means that an attempt is\n** made to convert the value to an integer or floating point.  If\n** such a conversion is possible without loss of information (in other\n** words, if the value is a string that looks like a number)\n** then the conversion is performed.  Otherwise no conversion occurs.\n** The [SQLITE_INTEGER | datatype] after conversion is returned.)^\n**\n** ^Within the [xUpdate] method of a [virtual table], the\n** sqlite3_value_nochange(X) interface returns true if and only if\n** the column corresponding to X is unchanged by the UPDATE operation\n** that the xUpdate method call was invoked to implement and if\n** and the prior [xColumn] method call that was invoked to extracted\n** the value for that column returned without setting a result (probably\n** because it queried [sqlite3_vtab_nochange()] and found that the column\n** was unchanging).  ^Within an [xUpdate] method, any value for which\n** sqlite3_value_nochange(X) is true will in all other respects appear\n** to be a NULL value.  If sqlite3_value_nochange(X) is invoked anywhere other\n** than within an [xUpdate] method call for an UPDATE statement, then\n** the return value is arbitrary and meaningless.\n**\n** Please pay particular attention to the fact that the pointer returned\n** from [sqlite3_value_blob()], [sqlite3_value_text()], or\n** [sqlite3_value_text16()] can be invalidated by a subsequent call to\n** [sqlite3_value_bytes()], [sqlite3_value_bytes16()], [sqlite3_value_text()],\n** or [sqlite3_value_text16()].\n**\n** These routines must be called from the same thread as\n** the SQL function that supplied the [sqlite3_value*] parameters.\n*/\nSQLITE_API const void *sqlite3_value_blob(sqlite3_value*);\nSQLITE_API double sqlite3_value_double(sqlite3_value*);\nSQLITE_API int sqlite3_value_int(sqlite3_value*);\nSQLITE_API sqlite3_int64 sqlite3_value_int64(sqlite3_value*);\nSQLITE_API void *sqlite3_value_pointer(sqlite3_value*, const char*);\nSQLITE_API const unsigned char *sqlite3_value_text(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16le(sqlite3_value*);\nSQLITE_API const void *sqlite3_value_text16be(sqlite3_value*);\nSQLITE_API int sqlite3_value_bytes(sqlite3_value*);\nSQLITE_API int sqlite3_value_bytes16(sqlite3_value*);\nSQLITE_API int sqlite3_value_type(sqlite3_value*);\nSQLITE_API int sqlite3_value_numeric_type(sqlite3_value*);\nSQLITE_API int sqlite3_value_nochange(sqlite3_value*);\n\n/*\n** CAPI3REF: Finding The Subtype Of SQL Values\n** METHOD: sqlite3_value\n**\n** The sqlite3_value_subtype(V) function returns the subtype for\n** an [application-defined SQL function] argument V.  The subtype\n** information can be used to pass a limited amount of context from\n** one SQL function to another.  Use the [sqlite3_result_subtype()]\n** routine to set the subtype for the return value of an SQL function.\n*/\nSQLITE_API unsigned int sqlite3_value_subtype(sqlite3_value*);\n\n/*\n** CAPI3REF: Copy And Free SQL Values\n** METHOD: sqlite3_value\n**\n** ^The sqlite3_value_dup(V) interface makes a copy of the [sqlite3_value]\n** object D and returns a pointer to that copy.  ^The [sqlite3_value] returned\n** is a [protected sqlite3_value] object even if the input is not.\n** ^The sqlite3_value_dup(V) interface returns NULL if V is NULL or if a\n** memory allocation fails.\n**\n** ^The sqlite3_value_free(V) interface frees an [sqlite3_value] object\n** previously obtained from [sqlite3_value_dup()].  ^If V is a NULL pointer\n** then sqlite3_value_free(V) is a harmless no-op.\n*/\nSQLITE_API sqlite3_value *sqlite3_value_dup(const sqlite3_value*);\nSQLITE_API void sqlite3_value_free(sqlite3_value*);\n\n/*\n** CAPI3REF: Obtain Aggregate Function Context\n** METHOD: sqlite3_context\n**\n** Implementations of aggregate SQL functions use this\n** routine to allocate memory for storing their state.\n**\n** ^The first time the sqlite3_aggregate_context(C,N) routine is called \n** for a particular aggregate function, SQLite\n** allocates N of memory, zeroes out that memory, and returns a pointer\n** to the new memory. ^On second and subsequent calls to\n** sqlite3_aggregate_context() for the same aggregate function instance,\n** the same buffer is returned.  Sqlite3_aggregate_context() is normally\n** called once for each invocation of the xStep callback and then one\n** last time when the xFinal callback is invoked.  ^(When no rows match\n** an aggregate query, the xStep() callback of the aggregate function\n** implementation is never called and xFinal() is called exactly once.\n** In those cases, sqlite3_aggregate_context() might be called for the\n** first time from within xFinal().)^\n**\n** ^The sqlite3_aggregate_context(C,N) routine returns a NULL pointer \n** when first called if N is less than or equal to zero or if a memory\n** allocate error occurs.\n**\n** ^(The amount of space allocated by sqlite3_aggregate_context(C,N) is\n** determined by the N parameter on first successful call.  Changing the\n** value of N in subsequent call to sqlite3_aggregate_context() within\n** the same aggregate function instance will not resize the memory\n** allocation.)^  Within the xFinal callback, it is customary to set\n** N=0 in calls to sqlite3_aggregate_context(C,N) so that no \n** pointless memory allocations occur.\n**\n** ^SQLite automatically frees the memory allocated by \n** sqlite3_aggregate_context() when the aggregate query concludes.\n**\n** The first parameter must be a copy of the\n** [sqlite3_context | SQL function context] that is the first parameter\n** to the xStep or xFinal callback routine that implements the aggregate\n** function.\n**\n** This routine must be called from the same thread in which\n** the aggregate SQL function is running.\n*/\nSQLITE_API void *sqlite3_aggregate_context(sqlite3_context*, int nBytes);\n\n/*\n** CAPI3REF: User Data For Functions\n** METHOD: sqlite3_context\n**\n** ^The sqlite3_user_data() interface returns a copy of\n** the pointer that was the pUserData parameter (the 5th parameter)\n** of the [sqlite3_create_function()]\n** and [sqlite3_create_function16()] routines that originally\n** registered the application defined function.\n**\n** This routine must be called from the same thread in which\n** the application-defined function is running.\n*/\nSQLITE_API void *sqlite3_user_data(sqlite3_context*);\n\n/*\n** CAPI3REF: Database Connection For Functions\n** METHOD: sqlite3_context\n**\n** ^The sqlite3_context_db_handle() interface returns a copy of\n** the pointer to the [database connection] (the 1st parameter)\n** of the [sqlite3_create_function()]\n** and [sqlite3_create_function16()] routines that originally\n** registered the application defined function.\n*/\nSQLITE_API sqlite3 *sqlite3_context_db_handle(sqlite3_context*);\n\n/*\n** CAPI3REF: Function Auxiliary Data\n** METHOD: sqlite3_context\n**\n** These functions may be used by (non-aggregate) SQL functions to\n** associate metadata with argument values. If the same value is passed to\n** multiple invocations of the same SQL function during query execution, under\n** some circumstances the associated metadata may be preserved.  An example\n** of where this might be useful is in a regular-expression matching\n** function. The compiled version of the regular expression can be stored as\n** metadata associated with the pattern string.  \n** Then as long as the pattern string remains the same,\n** the compiled regular expression can be reused on multiple\n** invocations of the same function.\n**\n** ^The sqlite3_get_auxdata(C,N) interface returns a pointer to the metadata\n** associated by the sqlite3_set_auxdata(C,N,P,X) function with the Nth argument\n** value to the application-defined function.  ^N is zero for the left-most\n** function argument.  ^If there is no metadata\n** associated with the function argument, the sqlite3_get_auxdata(C,N) interface\n** returns a NULL pointer.\n**\n** ^The sqlite3_set_auxdata(C,N,P,X) interface saves P as metadata for the N-th\n** argument of the application-defined function.  ^Subsequent\n** calls to sqlite3_get_auxdata(C,N) return P from the most recent\n** sqlite3_set_auxdata(C,N,P,X) call if the metadata is still valid or\n** NULL if the metadata has been discarded.\n** ^After each call to sqlite3_set_auxdata(C,N,P,X) where X is not NULL,\n** SQLite will invoke the destructor function X with parameter P exactly\n** once, when the metadata is discarded.\n** SQLite is free to discard the metadata at any time, including: <ul>\n** <li> ^(when the corresponding function parameter changes)^, or\n** <li> ^(when [sqlite3_reset()] or [sqlite3_finalize()] is called for the\n**      SQL statement)^, or\n** <li> ^(when sqlite3_set_auxdata() is invoked again on the same\n**       parameter)^, or\n** <li> ^(during the original sqlite3_set_auxdata() call when a memory \n**      allocation error occurs.)^ </ul>\n**\n** Note the last bullet in particular.  The destructor X in \n** sqlite3_set_auxdata(C,N,P,X) might be called immediately, before the\n** sqlite3_set_auxdata() interface even returns.  Hence sqlite3_set_auxdata()\n** should be called near the end of the function implementation and the\n** function implementation should not make any use of P after\n** sqlite3_set_auxdata() has been called.\n**\n** ^(In practice, metadata is preserved between function calls for\n** function parameters that are compile-time constants, including literal\n** values and [parameters] and expressions composed from the same.)^\n**\n** The value of the N parameter to these interfaces should be non-negative.\n** Future enhancements may make use of negative N values to define new\n** kinds of function caching behavior.\n**\n** These routines must be called from the same thread in which\n** the SQL function is running.\n*/\nSQLITE_API void *sqlite3_get_auxdata(sqlite3_context*, int N);\nSQLITE_API void sqlite3_set_auxdata(sqlite3_context*, int N, void*, void (*)(void*));\n\n\n/*\n** CAPI3REF: Constants Defining Special Destructor Behavior\n**\n** These are special values for the destructor that is passed in as the\n** final argument to routines like [sqlite3_result_blob()].  ^If the destructor\n** argument is SQLITE_STATIC, it means that the content pointer is constant\n** and will never change.  It does not need to be destroyed.  ^The\n** SQLITE_TRANSIENT value means that the content will likely change in\n** the near future and that SQLite should make its own private copy of\n** the content before returning.\n**\n** The typedef is necessary to work around problems in certain\n** C++ compilers.\n*/\ntypedef void (*sqlite3_destructor_type)(void*);\n#define SQLITE_STATIC      ((sqlite3_destructor_type)0)\n#define SQLITE_TRANSIENT   ((sqlite3_destructor_type)-1)\n\n/*\n** CAPI3REF: Setting The Result Of An SQL Function\n** METHOD: sqlite3_context\n**\n** These routines are used by the xFunc or xFinal callbacks that\n** implement SQL functions and aggregates.  See\n** [sqlite3_create_function()] and [sqlite3_create_function16()]\n** for additional information.\n**\n** These functions work very much like the [parameter binding] family of\n** functions used to bind values to host parameters in prepared statements.\n** Refer to the [SQL parameter] documentation for additional information.\n**\n** ^The sqlite3_result_blob() interface sets the result from\n** an application-defined function to be the BLOB whose content is pointed\n** to by the second parameter and which is N bytes long where N is the\n** third parameter.\n**\n** ^The sqlite3_result_zeroblob(C,N) and sqlite3_result_zeroblob64(C,N)\n** interfaces set the result of the application-defined function to be\n** a BLOB containing all zero bytes and N bytes in size.\n**\n** ^The sqlite3_result_double() interface sets the result from\n** an application-defined function to be a floating point value specified\n** by its 2nd argument.\n**\n** ^The sqlite3_result_error() and sqlite3_result_error16() functions\n** cause the implemented SQL function to throw an exception.\n** ^SQLite uses the string pointed to by the\n** 2nd parameter of sqlite3_result_error() or sqlite3_result_error16()\n** as the text of an error message.  ^SQLite interprets the error\n** message string from sqlite3_result_error() as UTF-8. ^SQLite\n** interprets the string from sqlite3_result_error16() as UTF-16 in native\n** byte order.  ^If the third parameter to sqlite3_result_error()\n** or sqlite3_result_error16() is negative then SQLite takes as the error\n** message all text up through the first zero character.\n** ^If the third parameter to sqlite3_result_error() or\n** sqlite3_result_error16() is non-negative then SQLite takes that many\n** bytes (not characters) from the 2nd parameter as the error message.\n** ^The sqlite3_result_error() and sqlite3_result_error16()\n** routines make a private copy of the error message text before\n** they return.  Hence, the calling function can deallocate or\n** modify the text after they return without harm.\n** ^The sqlite3_result_error_code() function changes the error code\n** returned by SQLite as a result of an error in a function.  ^By default,\n** the error code is SQLITE_ERROR.  ^A subsequent call to sqlite3_result_error()\n** or sqlite3_result_error16() resets the error code to SQLITE_ERROR.\n**\n** ^The sqlite3_result_error_toobig() interface causes SQLite to throw an\n** error indicating that a string or BLOB is too long to represent.\n**\n** ^The sqlite3_result_error_nomem() interface causes SQLite to throw an\n** error indicating that a memory allocation failed.\n**\n** ^The sqlite3_result_int() interface sets the return value\n** of the application-defined function to be the 32-bit signed integer\n** value given in the 2nd argument.\n** ^The sqlite3_result_int64() interface sets the return value\n** of the application-defined function to be the 64-bit signed integer\n** value given in the 2nd argument.\n**\n** ^The sqlite3_result_null() interface sets the return value\n** of the application-defined function to be NULL.\n**\n** ^The sqlite3_result_text(), sqlite3_result_text16(),\n** sqlite3_result_text16le(), and sqlite3_result_text16be() interfaces\n** set the return value of the application-defined function to be\n** a text string which is represented as UTF-8, UTF-16 native byte order,\n** UTF-16 little endian, or UTF-16 big endian, respectively.\n** ^The sqlite3_result_text64() interface sets the return value of an\n** application-defined function to be a text string in an encoding\n** specified by the fifth (and last) parameter, which must be one\n** of [SQLITE_UTF8], [SQLITE_UTF16], [SQLITE_UTF16BE], or [SQLITE_UTF16LE].\n** ^SQLite takes the text result from the application from\n** the 2nd parameter of the sqlite3_result_text* interfaces.\n** ^If the 3rd parameter to the sqlite3_result_text* interfaces\n** is negative, then SQLite takes result text from the 2nd parameter\n** through the first zero character.\n** ^If the 3rd parameter to the sqlite3_result_text* interfaces\n** is non-negative, then as many bytes (not characters) of the text\n** pointed to by the 2nd parameter are taken as the application-defined\n** function result.  If the 3rd parameter is non-negative, then it\n** must be the byte offset into the string where the NUL terminator would\n** appear if the string where NUL terminated.  If any NUL characters occur\n** in the string at a byte offset that is less than the value of the 3rd\n** parameter, then the resulting string will contain embedded NULs and the\n** result of expressions operating on strings with embedded NULs is undefined.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces\n** or sqlite3_result_blob is a non-NULL pointer, then SQLite calls that\n** function as the destructor on the text or BLOB result when it has\n** finished using that result.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces or to\n** sqlite3_result_blob is the special constant SQLITE_STATIC, then SQLite\n** assumes that the text or BLOB result is in constant space and does not\n** copy the content of the parameter nor call a destructor on the content\n** when it has finished using that result.\n** ^If the 4th parameter to the sqlite3_result_text* interfaces\n** or sqlite3_result_blob is the special constant SQLITE_TRANSIENT\n** then SQLite makes a copy of the result into space obtained\n** from [sqlite3_malloc()] before it returns.\n**\n** ^The sqlite3_result_value() interface sets the result of\n** the application-defined function to be a copy of the\n** [unprotected sqlite3_value] object specified by the 2nd parameter.  ^The\n** sqlite3_result_value() interface makes a copy of the [sqlite3_value]\n** so that the [sqlite3_value] specified in the parameter may change or\n** be deallocated after sqlite3_result_value() returns without harm.\n** ^A [protected sqlite3_value] object may always be used where an\n** [unprotected sqlite3_value] object is required, so either\n** kind of [sqlite3_value] object can be used with this interface.\n**\n** ^The sqlite3_result_pointer(C,P,T,D) interface sets the result to an\n** SQL NULL value, just like [sqlite3_result_null(C)], except that it\n** also associates the host-language pointer P or type T with that \n** NULL value such that the pointer can be retrieved within an\n** [application-defined SQL function] using [sqlite3_value_pointer()].\n** ^If the D parameter is not NULL, then it is a pointer to a destructor\n** for the P parameter.  ^SQLite invokes D with P as its only argument\n** when SQLite is finished with P.  The T parameter should be a static\n** string and preferably a string literal. The sqlite3_result_pointer()\n** routine is part of the [pointer passing interface] added for SQLite 3.20.0.\n**\n** If these routines are called from within the different thread\n** than the one containing the application-defined function that received\n** the [sqlite3_context] pointer, the results are undefined.\n*/\nSQLITE_API void sqlite3_result_blob(sqlite3_context*, const void*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_blob64(sqlite3_context*,const void*,\n                           sqlite3_uint64,void(*)(void*));\nSQLITE_API void sqlite3_result_double(sqlite3_context*, double);\nSQLITE_API void sqlite3_result_error(sqlite3_context*, const char*, int);\nSQLITE_API void sqlite3_result_error16(sqlite3_context*, const void*, int);\nSQLITE_API void sqlite3_result_error_toobig(sqlite3_context*);\nSQLITE_API void sqlite3_result_error_nomem(sqlite3_context*);\nSQLITE_API void sqlite3_result_error_code(sqlite3_context*, int);\nSQLITE_API void sqlite3_result_int(sqlite3_context*, int);\nSQLITE_API void sqlite3_result_int64(sqlite3_context*, sqlite3_int64);\nSQLITE_API void sqlite3_result_null(sqlite3_context*);\nSQLITE_API void sqlite3_result_text(sqlite3_context*, const char*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_text64(sqlite3_context*, const char*,sqlite3_uint64,\n                           void(*)(void*), unsigned char encoding);\nSQLITE_API void sqlite3_result_text16(sqlite3_context*, const void*, int, void(*)(void*));\nSQLITE_API void sqlite3_result_text16le(sqlite3_context*, const void*, int,void(*)(void*));\nSQLITE_API void sqlite3_result_text16be(sqlite3_context*, const void*, int,void(*)(void*));\nSQLITE_API void sqlite3_result_value(sqlite3_context*, sqlite3_value*);\nSQLITE_API void sqlite3_result_pointer(sqlite3_context*, void*,const char*,void(*)(void*));\nSQLITE_API void sqlite3_result_zeroblob(sqlite3_context*, int n);\nSQLITE_API int sqlite3_result_zeroblob64(sqlite3_context*, sqlite3_uint64 n);\n\n\n/*\n** CAPI3REF: Setting The Subtype Of An SQL Function\n** METHOD: sqlite3_context\n**\n** The sqlite3_result_subtype(C,T) function causes the subtype of\n** the result from the [application-defined SQL function] with \n** [sqlite3_context] C to be the value T.  Only the lower 8 bits \n** of the subtype T are preserved in current versions of SQLite;\n** higher order bits are discarded.\n** The number of subtype bytes preserved by SQLite might increase\n** in future releases of SQLite.\n*/\nSQLITE_API void sqlite3_result_subtype(sqlite3_context*,unsigned int);\n\n/*\n** CAPI3REF: Define New Collating Sequences\n** METHOD: sqlite3\n**\n** ^These functions add, remove, or modify a [collation] associated\n** with the [database connection] specified as the first argument.\n**\n** ^The name of the collation is a UTF-8 string\n** for sqlite3_create_collation() and sqlite3_create_collation_v2()\n** and a UTF-16 string in native byte order for sqlite3_create_collation16().\n** ^Collation names that compare equal according to [sqlite3_strnicmp()] are\n** considered to be the same name.\n**\n** ^(The third argument (eTextRep) must be one of the constants:\n** <ul>\n** <li> [SQLITE_UTF8],\n** <li> [SQLITE_UTF16LE],\n** <li> [SQLITE_UTF16BE],\n** <li> [SQLITE_UTF16], or\n** <li> [SQLITE_UTF16_ALIGNED].\n** </ul>)^\n** ^The eTextRep argument determines the encoding of strings passed\n** to the collating function callback, xCallback.\n** ^The [SQLITE_UTF16] and [SQLITE_UTF16_ALIGNED] values for eTextRep\n** force strings to be UTF16 with native byte order.\n** ^The [SQLITE_UTF16_ALIGNED] value for eTextRep forces strings to begin\n** on an even byte address.\n**\n** ^The fourth argument, pArg, is an application data pointer that is passed\n** through as the first argument to the collating function callback.\n**\n** ^The fifth argument, xCallback, is a pointer to the collating function.\n** ^Multiple collating functions can be registered using the same name but\n** with different eTextRep parameters and SQLite will use whichever\n** function requires the least amount of data transformation.\n** ^If the xCallback argument is NULL then the collating function is\n** deleted.  ^When all collating functions having the same name are deleted,\n** that collation is no longer usable.\n**\n** ^The collating function callback is invoked with a copy of the pArg \n** application data pointer and with two strings in the encoding specified\n** by the eTextRep argument.  The collating function must return an\n** integer that is negative, zero, or positive\n** if the first string is less than, equal to, or greater than the second,\n** respectively.  A collating function must always return the same answer\n** given the same inputs.  If two or more collating functions are registered\n** to the same collation name (using different eTextRep values) then all\n** must give an equivalent answer when invoked with equivalent strings.\n** The collating function must obey the following properties for all\n** strings A, B, and C:\n**\n** <ol>\n** <li> If A==B then B==A.\n** <li> If A==B and B==C then A==C.\n** <li> If A&lt;B THEN B&gt;A.\n** <li> If A&lt;B and B&lt;C then A&lt;C.\n** </ol>\n**\n** If a collating function fails any of the above constraints and that\n** collating function is  registered and used, then the behavior of SQLite\n** is undefined.\n**\n** ^The sqlite3_create_collation_v2() works like sqlite3_create_collation()\n** with the addition that the xDestroy callback is invoked on pArg when\n** the collating function is deleted.\n** ^Collating functions are deleted when they are overridden by later\n** calls to the collation creation functions or when the\n** [database connection] is closed using [sqlite3_close()].\n**\n** ^The xDestroy callback is <u>not</u> called if the \n** sqlite3_create_collation_v2() function fails.  Applications that invoke\n** sqlite3_create_collation_v2() with a non-NULL xDestroy argument should \n** check the return code and dispose of the application data pointer\n** themselves rather than expecting SQLite to deal with it for them.\n** This is different from every other SQLite interface.  The inconsistency \n** is unfortunate but cannot be changed without breaking backwards \n** compatibility.\n**\n** See also:  [sqlite3_collation_needed()] and [sqlite3_collation_needed16()].\n*/\nSQLITE_API int sqlite3_create_collation(\n  sqlite3*, \n  const char *zName, \n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n);\nSQLITE_API int sqlite3_create_collation_v2(\n  sqlite3*, \n  const char *zName, \n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*),\n  void(*xDestroy)(void*)\n);\nSQLITE_API int sqlite3_create_collation16(\n  sqlite3*, \n  const void *zName,\n  int eTextRep, \n  void *pArg,\n  int(*xCompare)(void*,int,const void*,int,const void*)\n);\n\n/*\n** CAPI3REF: Collation Needed Callbacks\n** METHOD: sqlite3\n**\n** ^To avoid having to register all collation sequences before a database\n** can be used, a single callback function may be registered with the\n** [database connection] to be invoked whenever an undefined collation\n** sequence is required.\n**\n** ^If the function is registered using the sqlite3_collation_needed() API,\n** then it is passed the names of undefined collation sequences as strings\n** encoded in UTF-8. ^If sqlite3_collation_needed16() is used,\n** the names are passed as UTF-16 in machine native byte order.\n** ^A call to either function replaces the existing collation-needed callback.\n**\n** ^(When the callback is invoked, the first argument passed is a copy\n** of the second argument to sqlite3_collation_needed() or\n** sqlite3_collation_needed16().  The second argument is the database\n** connection.  The third argument is one of [SQLITE_UTF8], [SQLITE_UTF16BE],\n** or [SQLITE_UTF16LE], indicating the most desirable form of the collation\n** sequence function required.  The fourth parameter is the name of the\n** required collation sequence.)^\n**\n** The callback function should register the desired collation using\n** [sqlite3_create_collation()], [sqlite3_create_collation16()], or\n** [sqlite3_create_collation_v2()].\n*/\nSQLITE_API int sqlite3_collation_needed(\n  sqlite3*, \n  void*, \n  void(*)(void*,sqlite3*,int eTextRep,const char*)\n);\nSQLITE_API int sqlite3_collation_needed16(\n  sqlite3*, \n  void*,\n  void(*)(void*,sqlite3*,int eTextRep,const void*)\n);\n\n#ifdef SQLITE_HAS_CODEC\n/*\n** Specify the key for an encrypted database.  This routine should be\n** called right after sqlite3_open().\n**\n** The code to implement this API is not available in the public release\n** of SQLite.\n*/\nSQLITE_API int sqlite3_key(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const void *pKey, int nKey     /* The key */\n);\nSQLITE_API int sqlite3_key_v2(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const char *zDbName,           /* Name of the database */\n  const void *pKey, int nKey     /* The key */\n);\n\n/*\n** Change the key on an open database.  If the current database is not\n** encrypted, this routine will encrypt it.  If pNew==0 or nNew==0, the\n** database is decrypted.\n**\n** The code to implement this API is not available in the public release\n** of SQLite.\n*/\nSQLITE_API int sqlite3_rekey(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const void *pKey, int nKey     /* The new key */\n);\nSQLITE_API int sqlite3_rekey_v2(\n  sqlite3 *db,                   /* Database to be rekeyed */\n  const char *zDbName,           /* Name of the database */\n  const void *pKey, int nKey     /* The new key */\n);\n\n/*\n** Specify the activation key for a SEE database.  Unless \n** activated, none of the SEE routines will work.\n*/\nSQLITE_API void sqlite3_activate_see(\n  const char *zPassPhrase        /* Activation phrase */\n);\n#endif\n\n#ifdef SQLITE_ENABLE_CEROD\n/*\n** Specify the activation key for a CEROD database.  Unless \n** activated, none of the CEROD routines will work.\n*/\nSQLITE_API void sqlite3_activate_cerod(\n  const char *zPassPhrase        /* Activation phrase */\n);\n#endif\n\n/*\n** CAPI3REF: Suspend Execution For A Short Time\n**\n** The sqlite3_sleep() function causes the current thread to suspend execution\n** for at least a number of milliseconds specified in its parameter.\n**\n** If the operating system does not support sleep requests with\n** millisecond time resolution, then the time will be rounded up to\n** the nearest second. The number of milliseconds of sleep actually\n** requested from the operating system is returned.\n**\n** ^SQLite implements this interface by calling the xSleep()\n** method of the default [sqlite3_vfs] object.  If the xSleep() method\n** of the default VFS is not implemented correctly, or not implemented at\n** all, then the behavior of sqlite3_sleep() may deviate from the description\n** in the previous paragraphs.\n*/\nSQLITE_API int sqlite3_sleep(int);\n\n/*\n** CAPI3REF: Name Of The Folder Holding Temporary Files\n**\n** ^(If this global variable is made to point to a string which is\n** the name of a folder (a.k.a. directory), then all temporary files\n** created by SQLite when using a built-in [sqlite3_vfs | VFS]\n** will be placed in that directory.)^  ^If this variable\n** is a NULL pointer, then SQLite performs a search for an appropriate\n** temporary file directory.\n**\n** Applications are strongly discouraged from using this global variable.\n** It is required to set a temporary folder on Windows Runtime (WinRT).\n** But for all other platforms, it is highly recommended that applications\n** neither read nor write this variable.  This global variable is a relic\n** that exists for backwards compatibility of legacy applications and should\n** be avoided in new projects.\n**\n** It is not safe to read or modify this variable in more than one\n** thread at a time.  It is not safe to read or modify this variable\n** if a [database connection] is being used at the same time in a separate\n** thread.\n** It is intended that this variable be set once\n** as part of process initialization and before any SQLite interface\n** routines have been called and that this variable remain unchanged\n** thereafter.\n**\n** ^The [temp_store_directory pragma] may modify this variable and cause\n** it to point to memory obtained from [sqlite3_malloc].  ^Furthermore,\n** the [temp_store_directory pragma] always assumes that any string\n** that this variable points to is held in memory obtained from \n** [sqlite3_malloc] and the pragma may attempt to free that memory\n** using [sqlite3_free].\n** Hence, if this variable is modified directly, either it should be\n** made NULL or made to point to memory obtained from [sqlite3_malloc]\n** or else the use of the [temp_store_directory pragma] should be avoided.\n** Except when requested by the [temp_store_directory pragma], SQLite\n** does not free the memory that sqlite3_temp_directory points to.  If\n** the application wants that memory to be freed, it must do\n** so itself, taking care to only do so after all [database connection]\n** objects have been destroyed.\n**\n** <b>Note to Windows Runtime users:</b>  The temporary directory must be set\n** prior to calling [sqlite3_open] or [sqlite3_open_v2].  Otherwise, various\n** features that require the use of temporary files may fail.  Here is an\n** example of how to do this using C++ with the Windows Runtime:\n**\n** <blockquote><pre>\n** LPCWSTR zPath = Windows::Storage::ApplicationData::Current->\n** &nbsp;     TemporaryFolder->Path->Data();\n** char zPathBuf&#91;MAX_PATH + 1&#93;;\n** memset(zPathBuf, 0, sizeof(zPathBuf));\n** WideCharToMultiByte(CP_UTF8, 0, zPath, -1, zPathBuf, sizeof(zPathBuf),\n** &nbsp;     NULL, NULL);\n** sqlite3_temp_directory = sqlite3_mprintf(\"%s\", zPathBuf);\n** </pre></blockquote>\n*/\nSQLITE_API SQLITE_EXTERN char *sqlite3_temp_directory;\n\n/*\n** CAPI3REF: Name Of The Folder Holding Database Files\n**\n** ^(If this global variable is made to point to a string which is\n** the name of a folder (a.k.a. directory), then all database files\n** specified with a relative pathname and created or accessed by\n** SQLite when using a built-in windows [sqlite3_vfs | VFS] will be assumed\n** to be relative to that directory.)^ ^If this variable is a NULL\n** pointer, then SQLite assumes that all database files specified\n** with a relative pathname are relative to the current directory\n** for the process.  Only the windows VFS makes use of this global\n** variable; it is ignored by the unix VFS.\n**\n** Changing the value of this variable while a database connection is\n** open can result in a corrupt database.\n**\n** It is not safe to read or modify this variable in more than one\n** thread at a time.  It is not safe to read or modify this variable\n** if a [database connection] is being used at the same time in a separate\n** thread.\n** It is intended that this variable be set once\n** as part of process initialization and before any SQLite interface\n** routines have been called and that this variable remain unchanged\n** thereafter.\n**\n** ^The [data_store_directory pragma] may modify this variable and cause\n** it to point to memory obtained from [sqlite3_malloc].  ^Furthermore,\n** the [data_store_directory pragma] always assumes that any string\n** that this variable points to is held in memory obtained from \n** [sqlite3_malloc] and the pragma may attempt to free that memory\n** using [sqlite3_free].\n** Hence, if this variable is modified directly, either it should be\n** made NULL or made to point to memory obtained from [sqlite3_malloc]\n** or else the use of the [data_store_directory pragma] should be avoided.\n*/\nSQLITE_API SQLITE_EXTERN char *sqlite3_data_directory;\n\n/*\n** CAPI3REF: Test For Auto-Commit Mode\n** KEYWORDS: {autocommit mode}\n** METHOD: sqlite3\n**\n** ^The sqlite3_get_autocommit() interface returns non-zero or\n** zero if the given database connection is or is not in autocommit mode,\n** respectively.  ^Autocommit mode is on by default.\n** ^Autocommit mode is disabled by a [BEGIN] statement.\n** ^Autocommit mode is re-enabled by a [COMMIT] or [ROLLBACK].\n**\n** If certain kinds of errors occur on a statement within a multi-statement\n** transaction (errors including [SQLITE_FULL], [SQLITE_IOERR],\n** [SQLITE_NOMEM], [SQLITE_BUSY], and [SQLITE_INTERRUPT]) then the\n** transaction might be rolled back automatically.  The only way to\n** find out whether SQLite automatically rolled back the transaction after\n** an error is to use this function.\n**\n** If another thread changes the autocommit status of the database\n** connection while this routine is running, then the return value\n** is undefined.\n*/\nSQLITE_API int sqlite3_get_autocommit(sqlite3*);\n\n/*\n** CAPI3REF: Find The Database Handle Of A Prepared Statement\n** METHOD: sqlite3_stmt\n**\n** ^The sqlite3_db_handle interface returns the [database connection] handle\n** to which a [prepared statement] belongs.  ^The [database connection]\n** returned by sqlite3_db_handle is the same [database connection]\n** that was the first argument\n** to the [sqlite3_prepare_v2()] call (or its variants) that was used to\n** create the statement in the first place.\n*/\nSQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Return The Filename For A Database Connection\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_filename(D,N) interface returns a pointer to a filename\n** associated with database N of connection D.  ^The main database file\n** has the name \"main\".  If there is no attached database N on the database\n** connection D, or if database N is a temporary or in-memory database, then\n** a NULL pointer is returned.\n**\n** ^The filename returned by this function is the output of the\n** xFullPathname method of the [VFS].  ^In other words, the filename\n** will be an absolute pathname, even if the filename used\n** to open the database originally was a URI or relative pathname.\n*/\nSQLITE_API const char *sqlite3_db_filename(sqlite3 *db, const char *zDbName);\n\n/*\n** CAPI3REF: Determine if a database is read-only\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_readonly(D,N) interface returns 1 if the database N\n** of connection D is read-only, 0 if it is read/write, or -1 if N is not\n** the name of a database on connection D.\n*/\nSQLITE_API int sqlite3_db_readonly(sqlite3 *db, const char *zDbName);\n\n/*\n** CAPI3REF: Find the next prepared statement\n** METHOD: sqlite3\n**\n** ^This interface returns a pointer to the next [prepared statement] after\n** pStmt associated with the [database connection] pDb.  ^If pStmt is NULL\n** then this interface returns a pointer to the first prepared statement\n** associated with the database connection pDb.  ^If no prepared statement\n** satisfies the conditions of this routine, it returns NULL.\n**\n** The [database connection] pointer D in a call to\n** [sqlite3_next_stmt(D,S)] must refer to an open database\n** connection and in particular must not be a NULL pointer.\n*/\nSQLITE_API sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt);\n\n/*\n** CAPI3REF: Commit And Rollback Notification Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_commit_hook() interface registers a callback\n** function to be invoked whenever a transaction is [COMMIT | committed].\n** ^Any callback set by a previous call to sqlite3_commit_hook()\n** for the same database connection is overridden.\n** ^The sqlite3_rollback_hook() interface registers a callback\n** function to be invoked whenever a transaction is [ROLLBACK | rolled back].\n** ^Any callback set by a previous call to sqlite3_rollback_hook()\n** for the same database connection is overridden.\n** ^The pArg argument is passed through to the callback.\n** ^If the callback on a commit hook function returns non-zero,\n** then the commit is converted into a rollback.\n**\n** ^The sqlite3_commit_hook(D,C,P) and sqlite3_rollback_hook(D,C,P) functions\n** return the P argument from the previous call of the same function\n** on the same [database connection] D, or NULL for\n** the first call for each function on D.\n**\n** The commit and rollback hook callbacks are not reentrant.\n** The callback implementation must not do anything that will modify\n** the database connection that invoked the callback.  Any actions\n** to modify the database connection must be deferred until after the\n** completion of the [sqlite3_step()] call that triggered the commit\n** or rollback hook in the first place.\n** Note that running any other SQL statements, including SELECT statements,\n** or merely calling [sqlite3_prepare_v2()] and [sqlite3_step()] will modify\n** the database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^Registering a NULL function disables the callback.\n**\n** ^When the commit hook callback routine returns zero, the [COMMIT]\n** operation is allowed to continue normally.  ^If the commit hook\n** returns non-zero, then the [COMMIT] is converted into a [ROLLBACK].\n** ^The rollback hook is invoked on a rollback that results from a commit\n** hook returning non-zero, just as it would be with any other rollback.\n**\n** ^For the purposes of this API, a transaction is said to have been\n** rolled back if an explicit \"ROLLBACK\" statement is executed, or\n** an error or constraint causes an implicit rollback to occur.\n** ^The rollback callback is not invoked if a transaction is\n** automatically rolled back because the database connection is closed.\n**\n** See also the [sqlite3_update_hook()] interface.\n*/\nSQLITE_API void *sqlite3_commit_hook(sqlite3*, int(*)(void*), void*);\nSQLITE_API void *sqlite3_rollback_hook(sqlite3*, void(*)(void *), void*);\n\n/*\n** CAPI3REF: Data Change Notification Callbacks\n** METHOD: sqlite3\n**\n** ^The sqlite3_update_hook() interface registers a callback function\n** with the [database connection] identified by the first argument\n** to be invoked whenever a row is updated, inserted or deleted in\n** a [rowid table].\n** ^Any callback set by a previous call to this function\n** for the same database connection is overridden.\n**\n** ^The second argument is a pointer to the function to invoke when a\n** row is updated, inserted or deleted in a rowid table.\n** ^The first argument to the callback is a copy of the third argument\n** to sqlite3_update_hook().\n** ^The second callback argument is one of [SQLITE_INSERT], [SQLITE_DELETE],\n** or [SQLITE_UPDATE], depending on the operation that caused the callback\n** to be invoked.\n** ^The third and fourth arguments to the callback contain pointers to the\n** database and table name containing the affected row.\n** ^The final callback parameter is the [rowid] of the row.\n** ^In the case of an update, this is the [rowid] after the update takes place.\n**\n** ^(The update hook is not invoked when internal system tables are\n** modified (i.e. sqlite_master and sqlite_sequence).)^\n** ^The update hook is not invoked when [WITHOUT ROWID] tables are modified.\n**\n** ^In the current implementation, the update hook\n** is not invoked when conflicting rows are deleted because of an\n** [ON CONFLICT | ON CONFLICT REPLACE] clause.  ^Nor is the update hook\n** invoked when rows are deleted using the [truncate optimization].\n** The exceptions defined in this paragraph might change in a future\n** release of SQLite.\n**\n** The update hook implementation must not do anything that will modify\n** the database connection that invoked the update hook.  Any actions\n** to modify the database connection must be deferred until after the\n** completion of the [sqlite3_step()] call that triggered the update hook.\n** Note that [sqlite3_prepare_v2()] and [sqlite3_step()] both modify their\n** database connections for the meaning of \"modify\" in this paragraph.\n**\n** ^The sqlite3_update_hook(D,C,P) function\n** returns the P argument from the previous call\n** on the same [database connection] D, or NULL for\n** the first call on D.\n**\n** See also the [sqlite3_commit_hook()], [sqlite3_rollback_hook()],\n** and [sqlite3_preupdate_hook()] interfaces.\n*/\nSQLITE_API void *sqlite3_update_hook(\n  sqlite3*, \n  void(*)(void *,int ,char const *,char const *,sqlite3_int64),\n  void*\n);\n\n/*\n** CAPI3REF: Enable Or Disable Shared Pager Cache\n**\n** ^(This routine enables or disables the sharing of the database cache\n** and schema data structures between [database connection | connections]\n** to the same database. Sharing is enabled if the argument is true\n** and disabled if the argument is false.)^\n**\n** ^Cache sharing is enabled and disabled for an entire process.\n** This is a change as of SQLite [version 3.5.0] ([dateof:3.5.0]). \n** In prior versions of SQLite,\n** sharing was enabled or disabled for each thread separately.\n**\n** ^(The cache sharing mode set by this interface effects all subsequent\n** calls to [sqlite3_open()], [sqlite3_open_v2()], and [sqlite3_open16()].\n** Existing database connections continue use the sharing mode\n** that was in effect at the time they were opened.)^\n**\n** ^(This routine returns [SQLITE_OK] if shared cache was enabled or disabled\n** successfully.  An [error code] is returned otherwise.)^\n**\n** ^Shared cache is disabled by default. But this might change in\n** future releases of SQLite.  Applications that care about shared\n** cache setting should set it explicitly.\n**\n** Note: This method is disabled on MacOS X 10.7 and iOS version 5.0\n** and will always return SQLITE_MISUSE. On those systems, \n** shared cache mode should be enabled per-database connection via \n** [sqlite3_open_v2()] with [SQLITE_OPEN_SHAREDCACHE].\n**\n** This interface is threadsafe on processors where writing a\n** 32-bit integer is atomic.\n**\n** See Also:  [SQLite Shared-Cache Mode]\n*/\nSQLITE_API int sqlite3_enable_shared_cache(int);\n\n/*\n** CAPI3REF: Attempt To Free Heap Memory\n**\n** ^The sqlite3_release_memory() interface attempts to free N bytes\n** of heap memory by deallocating non-essential memory allocations\n** held by the database library.   Memory used to cache database\n** pages to improve performance is an example of non-essential memory.\n** ^sqlite3_release_memory() returns the number of bytes actually freed,\n** which might be more or less than the amount requested.\n** ^The sqlite3_release_memory() routine is a no-op returning zero\n** if SQLite is not compiled with [SQLITE_ENABLE_MEMORY_MANAGEMENT].\n**\n** See also: [sqlite3_db_release_memory()]\n*/\nSQLITE_API int sqlite3_release_memory(int);\n\n/*\n** CAPI3REF: Free Memory Used By A Database Connection\n** METHOD: sqlite3\n**\n** ^The sqlite3_db_release_memory(D) interface attempts to free as much heap\n** memory as possible from database connection D. Unlike the\n** [sqlite3_release_memory()] interface, this interface is in effect even\n** when the [SQLITE_ENABLE_MEMORY_MANAGEMENT] compile-time option is\n** omitted.\n**\n** See also: [sqlite3_release_memory()]\n*/\nSQLITE_API int sqlite3_db_release_memory(sqlite3*);\n\n/*\n** CAPI3REF: Impose A Limit On Heap Size\n**\n** ^The sqlite3_soft_heap_limit64() interface sets and/or queries the\n** soft limit on the amount of heap memory that may be allocated by SQLite.\n** ^SQLite strives to keep heap memory utilization below the soft heap\n** limit by reducing the number of pages held in the page cache\n** as heap memory usages approaches the limit.\n** ^The soft heap limit is \"soft\" because even though SQLite strives to stay\n** below the limit, it will exceed the limit rather than generate\n** an [SQLITE_NOMEM] error.  In other words, the soft heap limit \n** is advisory only.\n**\n** ^The return value from sqlite3_soft_heap_limit64() is the size of\n** the soft heap limit prior to the call, or negative in the case of an\n** error.  ^If the argument N is negative\n** then no change is made to the soft heap limit.  Hence, the current\n** size of the soft heap limit can be determined by invoking\n** sqlite3_soft_heap_limit64() with a negative argument.\n**\n** ^If the argument N is zero then the soft heap limit is disabled.\n**\n** ^(The soft heap limit is not enforced in the current implementation\n** if one or more of following conditions are true:\n**\n** <ul>\n** <li> The soft heap limit is set to zero.\n** <li> Memory accounting is disabled using a combination of the\n**      [sqlite3_config]([SQLITE_CONFIG_MEMSTATUS],...) start-time option and\n**      the [SQLITE_DEFAULT_MEMSTATUS] compile-time option.\n** <li> An alternative page cache implementation is specified using\n**      [sqlite3_config]([SQLITE_CONFIG_PCACHE2],...).\n** <li> The page cache allocates from its own memory pool supplied\n**      by [sqlite3_config]([SQLITE_CONFIG_PAGECACHE],...) rather than\n**      from the heap.\n** </ul>)^\n**\n** Beginning with SQLite [version 3.7.3] ([dateof:3.7.3]), \n** the soft heap limit is enforced\n** regardless of whether or not the [SQLITE_ENABLE_MEMORY_MANAGEMENT]\n** compile-time option is invoked.  With [SQLITE_ENABLE_MEMORY_MANAGEMENT],\n** the soft heap limit is enforced on every memory allocation.  Without\n** [SQLITE_ENABLE_MEMORY_MANAGEMENT], the soft heap limit is only enforced\n** when memory is allocated by the page cache.  Testing suggests that because\n** the page cache is the predominate memory user in SQLite, most\n** applications will achieve adequate soft heap limit enforcement without\n** the use of [SQLITE_ENABLE_MEMORY_MANAGEMENT].\n**\n** The circumstances under which SQLite will enforce the soft heap limit may\n** changes in future releases of SQLite.\n*/\nSQLITE_API sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 N);\n\n/*\n** CAPI3REF: Deprecated Soft Heap Limit Interface\n** DEPRECATED\n**\n** This is a deprecated version of the [sqlite3_soft_heap_limit64()]\n** interface.  This routine is provided for historical compatibility\n** only.  All new applications should use the\n** [sqlite3_soft_heap_limit64()] interface rather than this one.\n*/\nSQLITE_API SQLITE_DEPRECATED void sqlite3_soft_heap_limit(int N);\n\n\n/*\n** CAPI3REF: Extract Metadata About A Column Of A Table\n** METHOD: sqlite3\n**\n** ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns\n** information about column C of table T in database D\n** on [database connection] X.)^  ^The sqlite3_table_column_metadata()\n** interface returns SQLITE_OK and fills in the non-NULL pointers in\n** the final five arguments with appropriate values if the specified\n** column exists.  ^The sqlite3_table_column_metadata() interface returns\n** SQLITE_ERROR and if the specified column does not exist.\n** ^If the column-name parameter to sqlite3_table_column_metadata() is a\n** NULL pointer, then this routine simply checks for the existence of the\n** table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it\n** does not.  If the table name parameter T in a call to\n** sqlite3_table_column_metadata(X,D,T,C,...) is NULL then the result is\n** undefined behavior.\n**\n** ^The column is identified by the second, third and fourth parameters to\n** this function. ^(The second parameter is either the name of the database\n** (i.e. \"main\", \"temp\", or an attached database) containing the specified\n** table or NULL.)^ ^If it is NULL, then all attached databases are searched\n** for the table using the same algorithm used by the database engine to\n** resolve unqualified table references.\n**\n** ^The third and fourth parameters to this function are the table and column\n** name of the desired column, respectively.\n**\n** ^Metadata is returned by writing to the memory locations passed as the 5th\n** and subsequent parameters to this function. ^Any of these arguments may be\n** NULL, in which case the corresponding element of metadata is omitted.\n**\n** ^(<blockquote>\n** <table border=\"1\">\n** <tr><th> Parameter <th> Output<br>Type <th>  Description\n**\n** <tr><td> 5th <td> const char* <td> Data type\n** <tr><td> 6th <td> const char* <td> Name of default collation sequence\n** <tr><td> 7th <td> int         <td> True if column has a NOT NULL constraint\n** <tr><td> 8th <td> int         <td> True if column is part of the PRIMARY KEY\n** <tr><td> 9th <td> int         <td> True if column is [AUTOINCREMENT]\n** </table>\n** </blockquote>)^\n**\n** ^The memory pointed to by the character pointers returned for the\n** declaration type and collation sequence is valid until the next\n** call to any SQLite API function.\n**\n** ^If the specified table is actually a view, an [error code] is returned.\n**\n** ^If the specified column is \"rowid\", \"oid\" or \"_rowid_\" and the table \n** is not a [WITHOUT ROWID] table and an\n** [INTEGER PRIMARY KEY] column has been explicitly declared, then the output\n** parameters are set for the explicitly declared column. ^(If there is no\n** [INTEGER PRIMARY KEY] column, then the outputs\n** for the [rowid] are set as follows:\n**\n** <pre>\n**     data type: \"INTEGER\"\n**     collation sequence: \"BINARY\"\n**     not null: 0\n**     primary key: 1\n**     auto increment: 0\n** </pre>)^\n**\n** ^This function causes all database schemas to be read from disk and\n** parsed, if that has not already been done, and returns an error if\n** any errors are encountered while loading the schema.\n*/\nSQLITE_API int sqlite3_table_column_metadata(\n  sqlite3 *db,                /* Connection handle */\n  const char *zDbName,        /* Database name or NULL */\n  const char *zTableName,     /* Table name */\n  const char *zColumnName,    /* Column name */\n  char const **pzDataType,    /* OUTPUT: Declared data type */\n  char const **pzCollSeq,     /* OUTPUT: Collation sequence name */\n  int *pNotNull,              /* OUTPUT: True if NOT NULL constraint exists */\n  int *pPrimaryKey,           /* OUTPUT: True if column part of PK */\n  int *pAutoinc               /* OUTPUT: True if column is auto-increment */\n);\n\n/*\n** CAPI3REF: Load An Extension\n** METHOD: sqlite3\n**\n** ^This interface loads an SQLite extension library from the named file.\n**\n** ^The sqlite3_load_extension() interface attempts to load an\n** [SQLite extension] library contained in the file zFile.  If\n** the file cannot be loaded directly, attempts are made to load\n** with various operating-system specific extensions added.\n** So for example, if \"samplelib\" cannot be loaded, then names like\n** \"samplelib.so\" or \"samplelib.dylib\" or \"samplelib.dll\" might\n** be tried also.\n**\n** ^The entry point is zProc.\n** ^(zProc may be 0, in which case SQLite will try to come up with an\n** entry point name on its own.  It first tries \"sqlite3_extension_init\".\n** If that does not work, it constructs a name \"sqlite3_X_init\" where the\n** X is consists of the lower-case equivalent of all ASCII alphabetic\n** characters in the filename from the last \"/\" to the first following\n** \".\" and omitting any initial \"lib\".)^\n** ^The sqlite3_load_extension() interface returns\n** [SQLITE_OK] on success and [SQLITE_ERROR] if something goes wrong.\n** ^If an error occurs and pzErrMsg is not 0, then the\n** [sqlite3_load_extension()] interface shall attempt to\n** fill *pzErrMsg with error message text stored in memory\n** obtained from [sqlite3_malloc()]. The calling function\n** should free this memory by calling [sqlite3_free()].\n**\n** ^Extension loading must be enabled using\n** [sqlite3_enable_load_extension()] or\n** [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],1,NULL)\n** prior to calling this API,\n** otherwise an error will be returned.\n**\n** <b>Security warning:</b> It is recommended that the \n** [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method be used to enable only this\n** interface.  The use of the [sqlite3_enable_load_extension()] interface\n** should be avoided.  This will keep the SQL function [load_extension()]\n** disabled and prevent SQL injections from giving attackers\n** access to extension loading capabilities.\n**\n** See also the [load_extension() SQL function].\n*/\nSQLITE_API int sqlite3_load_extension(\n  sqlite3 *db,          /* Load the extension into this database connection */\n  const char *zFile,    /* Name of the shared library containing extension */\n  const char *zProc,    /* Entry point.  Derived from zFile if 0 */\n  char **pzErrMsg       /* Put error message here if not 0 */\n);\n\n/*\n** CAPI3REF: Enable Or Disable Extension Loading\n** METHOD: sqlite3\n**\n** ^So as not to open security holes in older applications that are\n** unprepared to deal with [extension loading], and as a means of disabling\n** [extension loading] while evaluating user-entered SQL, the following API\n** is provided to turn the [sqlite3_load_extension()] mechanism on and off.\n**\n** ^Extension loading is off by default.\n** ^Call the sqlite3_enable_load_extension() routine with onoff==1\n** to turn extension loading on and call it with onoff==0 to turn\n** it back off again.\n**\n** ^This interface enables or disables both the C-API\n** [sqlite3_load_extension()] and the SQL function [load_extension()].\n** ^(Use [sqlite3_db_config](db,[SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION],..)\n** to enable or disable only the C-API.)^\n**\n** <b>Security warning:</b> It is recommended that extension loading\n** be disabled using the [SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION] method\n** rather than this interface, so the [load_extension()] SQL function\n** remains disabled. This will prevent SQL injections from giving attackers\n** access to extension loading capabilities.\n*/\nSQLITE_API int sqlite3_enable_load_extension(sqlite3 *db, int onoff);\n\n/*\n** CAPI3REF: Automatically Load Statically Linked Extensions\n**\n** ^This interface causes the xEntryPoint() function to be invoked for\n** each new [database connection] that is created.  The idea here is that\n** xEntryPoint() is the entry point for a statically linked [SQLite extension]\n** that is to be automatically loaded into all new database connections.\n**\n** ^(Even though the function prototype shows that xEntryPoint() takes\n** no arguments and returns void, SQLite invokes xEntryPoint() with three\n** arguments and expects an integer result as if the signature of the\n** entry point where as follows:\n**\n** <blockquote><pre>\n** &nbsp;  int xEntryPoint(\n** &nbsp;    sqlite3 *db,\n** &nbsp;    const char **pzErrMsg,\n** &nbsp;    const struct sqlite3_api_routines *pThunk\n** &nbsp;  );\n** </pre></blockquote>)^\n**\n** If the xEntryPoint routine encounters an error, it should make *pzErrMsg\n** point to an appropriate error message (obtained from [sqlite3_mprintf()])\n** and return an appropriate [error code].  ^SQLite ensures that *pzErrMsg\n** is NULL before calling the xEntryPoint().  ^SQLite will invoke\n** [sqlite3_free()] on *pzErrMsg after xEntryPoint() returns.  ^If any\n** xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()],\n** or [sqlite3_open_v2()] call that provoked the xEntryPoint() will fail.\n**\n** ^Calling sqlite3_auto_extension(X) with an entry point X that is already\n** on the list of automatic extensions is a harmless no-op. ^No entry point\n** will be called more than once for each database connection that is opened.\n**\n** See also: [sqlite3_reset_auto_extension()]\n** and [sqlite3_cancel_auto_extension()]\n*/\nSQLITE_API int sqlite3_auto_extension(void(*xEntryPoint)(void));\n\n/*\n** CAPI3REF: Cancel Automatic Extension Loading\n**\n** ^The [sqlite3_cancel_auto_extension(X)] interface unregisters the\n** initialization routine X that was registered using a prior call to\n** [sqlite3_auto_extension(X)].  ^The [sqlite3_cancel_auto_extension(X)]\n** routine returns 1 if initialization routine X was successfully \n** unregistered and it returns 0 if X was not on the list of initialization\n** routines.\n*/\nSQLITE_API int sqlite3_cancel_auto_extension(void(*xEntryPoint)(void));\n\n/*\n** CAPI3REF: Reset Automatic Extension Loading\n**\n** ^This interface disables all automatic extensions previously\n** registered using [sqlite3_auto_extension()].\n*/\nSQLITE_API void sqlite3_reset_auto_extension(void);\n\n/*\n** The interface to the virtual-table mechanism is currently considered\n** to be experimental.  The interface might change in incompatible ways.\n** If this is a problem for you, do not use the interface at this time.\n**\n** When the virtual-table mechanism stabilizes, we will declare the\n** interface fixed, support it indefinitely, and remove this comment.\n*/\n\n/*\n** Structures used by the virtual table interface\n*/\ntypedef struct sqlite3_vtab sqlite3_vtab;\ntypedef struct sqlite3_index_info sqlite3_index_info;\ntypedef struct sqlite3_vtab_cursor sqlite3_vtab_cursor;\ntypedef struct sqlite3_module sqlite3_module;\n\n/*\n** CAPI3REF: Virtual Table Object\n** KEYWORDS: sqlite3_module {virtual table module}\n**\n** This structure, sometimes called a \"virtual table module\", \n** defines the implementation of a [virtual tables].  \n** This structure consists mostly of methods for the module.\n**\n** ^A virtual table module is created by filling in a persistent\n** instance of this structure and passing a pointer to that instance\n** to [sqlite3_create_module()] or [sqlite3_create_module_v2()].\n** ^The registration remains valid until it is replaced by a different\n** module or until the [database connection] closes.  The content\n** of this structure must not change while it is registered with\n** any database connection.\n*/\nstruct sqlite3_module {\n  int iVersion;\n  int (*xCreate)(sqlite3*, void *pAux,\n               int argc, const char *const*argv,\n               sqlite3_vtab **ppVTab, char**);\n  int (*xConnect)(sqlite3*, void *pAux,\n               int argc, const char *const*argv,\n               sqlite3_vtab **ppVTab, char**);\n  int (*xBestIndex)(sqlite3_vtab *pVTab, sqlite3_index_info*);\n  int (*xDisconnect)(sqlite3_vtab *pVTab);\n  int (*xDestroy)(sqlite3_vtab *pVTab);\n  int (*xOpen)(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor);\n  int (*xClose)(sqlite3_vtab_cursor*);\n  int (*xFilter)(sqlite3_vtab_cursor*, int idxNum, const char *idxStr,\n                int argc, sqlite3_value **argv);\n  int (*xNext)(sqlite3_vtab_cursor*);\n  int (*xEof)(sqlite3_vtab_cursor*);\n  int (*xColumn)(sqlite3_vtab_cursor*, sqlite3_context*, int);\n  int (*xRowid)(sqlite3_vtab_cursor*, sqlite3_int64 *pRowid);\n  int (*xUpdate)(sqlite3_vtab *, int, sqlite3_value **, sqlite3_int64 *);\n  int (*xBegin)(sqlite3_vtab *pVTab);\n  int (*xSync)(sqlite3_vtab *pVTab);\n  int (*xCommit)(sqlite3_vtab *pVTab);\n  int (*xRollback)(sqlite3_vtab *pVTab);\n  int (*xFindFunction)(sqlite3_vtab *pVtab, int nArg, const char *zName,\n                       void (**pxFunc)(sqlite3_context*,int,sqlite3_value**),\n                       void **ppArg);\n  int (*xRename)(sqlite3_vtab *pVtab, const char *zNew);\n  /* The methods above are in version 1 of the sqlite_module object. Those \n  ** below are for version 2 and greater. */\n  int (*xSavepoint)(sqlite3_vtab *pVTab, int);\n  int (*xRelease)(sqlite3_vtab *pVTab, int);\n  int (*xRollbackTo)(sqlite3_vtab *pVTab, int);\n};\n\n/*\n** CAPI3REF: Virtual Table Indexing Information\n** KEYWORDS: sqlite3_index_info\n**\n** The sqlite3_index_info structure and its substructures is used as part\n** of the [virtual table] interface to\n** pass information into and receive the reply from the [xBestIndex]\n** method of a [virtual table module].  The fields under **Inputs** are the\n** inputs to xBestIndex and are read-only.  xBestIndex inserts its\n** results into the **Outputs** fields.\n**\n** ^(The aConstraint[] array records WHERE clause constraints of the form:\n**\n** <blockquote>column OP expr</blockquote>\n**\n** where OP is =, &lt;, &lt;=, &gt;, or &gt;=.)^  ^(The particular operator is\n** stored in aConstraint[].op using one of the\n** [SQLITE_INDEX_CONSTRAINT_EQ | SQLITE_INDEX_CONSTRAINT_ values].)^\n** ^(The index of the column is stored in\n** aConstraint[].iColumn.)^  ^(aConstraint[].usable is TRUE if the\n** expr on the right-hand side can be evaluated (and thus the constraint\n** is usable) and false if it cannot.)^\n**\n** ^The optimizer automatically inverts terms of the form \"expr OP column\"\n** and makes other simplifications to the WHERE clause in an attempt to\n** get as many WHERE clause terms into the form shown above as possible.\n** ^The aConstraint[] array only reports WHERE clause terms that are\n** relevant to the particular virtual table being queried.\n**\n** ^Information about the ORDER BY clause is stored in aOrderBy[].\n** ^Each term of aOrderBy records a column of the ORDER BY clause.\n**\n** The colUsed field indicates which columns of the virtual table may be\n** required by the current scan. Virtual table columns are numbered from\n** zero in the order in which they appear within the CREATE TABLE statement\n** passed to sqlite3_declare_vtab(). For the first 63 columns (columns 0-62),\n** the corresponding bit is set within the colUsed mask if the column may be\n** required by SQLite. If the table has at least 64 columns and any column\n** to the right of the first 63 is required, then bit 63 of colUsed is also\n** set. In other words, column iCol may be required if the expression\n** (colUsed & ((sqlite3_uint64)1 << (iCol>=63 ? 63 : iCol))) evaluates to \n** non-zero.\n**\n** The [xBestIndex] method must fill aConstraintUsage[] with information\n** about what parameters to pass to xFilter.  ^If argvIndex>0 then\n** the right-hand side of the corresponding aConstraint[] is evaluated\n** and becomes the argvIndex-th entry in argv.  ^(If aConstraintUsage[].omit\n** is true, then the constraint is assumed to be fully handled by the\n** virtual table and is not checked again by SQLite.)^\n**\n** ^The idxNum and idxPtr values are recorded and passed into the\n** [xFilter] method.\n** ^[sqlite3_free()] is used to free idxPtr if and only if\n** needToFreeIdxPtr is true.\n**\n** ^The orderByConsumed means that output from [xFilter]/[xNext] will occur in\n** the correct order to satisfy the ORDER BY clause so that no separate\n** sorting step is required.\n**\n** ^The estimatedCost value is an estimate of the cost of a particular\n** strategy. A cost of N indicates that the cost of the strategy is similar\n** to a linear scan of an SQLite table with N rows. A cost of log(N) \n** indicates that the expense of the operation is similar to that of a\n** binary search on a unique indexed field of an SQLite table with N rows.\n**\n** ^The estimatedRows value is an estimate of the number of rows that\n** will be returned by the strategy.\n**\n** The xBestIndex method may optionally populate the idxFlags field with a \n** mask of SQLITE_INDEX_SCAN_* flags. Currently there is only one such flag -\n** SQLITE_INDEX_SCAN_UNIQUE. If the xBestIndex method sets this flag, SQLite\n** assumes that the strategy may visit at most one row. \n**\n** Additionally, if xBestIndex sets the SQLITE_INDEX_SCAN_UNIQUE flag, then\n** SQLite also assumes that if a call to the xUpdate() method is made as\n** part of the same statement to delete or update a virtual table row and the\n** implementation returns SQLITE_CONSTRAINT, then there is no need to rollback\n** any database changes. In other words, if the xUpdate() returns\n** SQLITE_CONSTRAINT, the database contents must be exactly as they were\n** before xUpdate was called. By contrast, if SQLITE_INDEX_SCAN_UNIQUE is not\n** set and xUpdate returns SQLITE_CONSTRAINT, any database changes made by\n** the xUpdate method are automatically rolled back by SQLite.\n**\n** IMPORTANT: The estimatedRows field was added to the sqlite3_index_info\n** structure for SQLite [version 3.8.2] ([dateof:3.8.2]). \n** If a virtual table extension is\n** used with an SQLite version earlier than 3.8.2, the results of attempting \n** to read or write the estimatedRows field are undefined (but are likely \n** to included crashing the application). The estimatedRows field should\n** therefore only be used if [sqlite3_libversion_number()] returns a\n** value greater than or equal to 3008002. Similarly, the idxFlags field\n** was added for [version 3.9.0] ([dateof:3.9.0]). \n** It may therefore only be used if\n** sqlite3_libversion_number() returns a value greater than or equal to\n** 3009000.\n*/\nstruct sqlite3_index_info {\n  /* Inputs */\n  int nConstraint;           /* Number of entries in aConstraint */\n  struct sqlite3_index_constraint {\n     int iColumn;              /* Column constrained.  -1 for ROWID */\n     unsigned char op;         /* Constraint operator */\n     unsigned char usable;     /* True if this constraint is usable */\n     int iTermOffset;          /* Used internally - xBestIndex should ignore */\n  } *aConstraint;            /* Table of WHERE clause constraints */\n  int nOrderBy;              /* Number of terms in the ORDER BY clause */\n  struct sqlite3_index_orderby {\n     int iColumn;              /* Column number */\n     unsigned char desc;       /* True for DESC.  False for ASC. */\n  } *aOrderBy;               /* The ORDER BY clause */\n  /* Outputs */\n  struct sqlite3_index_constraint_usage {\n    int argvIndex;           /* if >0, constraint is part of argv to xFilter */\n    unsigned char omit;      /* Do not code a test for this constraint */\n  } *aConstraintUsage;\n  int idxNum;                /* Number used to identify the index */\n  char *idxStr;              /* String, possibly obtained from sqlite3_malloc */\n  int needToFreeIdxStr;      /* Free idxStr using sqlite3_free() if true */\n  int orderByConsumed;       /* True if output is already ordered */\n  double estimatedCost;           /* Estimated cost of using this index */\n  /* Fields below are only available in SQLite 3.8.2 and later */\n  sqlite3_int64 estimatedRows;    /* Estimated number of rows returned */\n  /* Fields below are only available in SQLite 3.9.0 and later */\n  int idxFlags;              /* Mask of SQLITE_INDEX_SCAN_* flags */\n  /* Fields below are only available in SQLite 3.10.0 and later */\n  sqlite3_uint64 colUsed;    /* Input: Mask of columns used by statement */\n};\n\n/*\n** CAPI3REF: Virtual Table Scan Flags\n*/\n#define SQLITE_INDEX_SCAN_UNIQUE      1     /* Scan visits at most 1 row */\n\n/*\n** CAPI3REF: Virtual Table Constraint Operator Codes\n**\n** These macros defined the allowed values for the\n** [sqlite3_index_info].aConstraint[].op field.  Each value represents\n** an operator that is part of a constraint term in the wHERE clause of\n** a query that uses a [virtual table].\n*/\n#define SQLITE_INDEX_CONSTRAINT_EQ         2\n#define SQLITE_INDEX_CONSTRAINT_GT         4\n#define SQLITE_INDEX_CONSTRAINT_LE         8\n#define SQLITE_INDEX_CONSTRAINT_LT        16\n#define SQLITE_INDEX_CONSTRAINT_GE        32\n#define SQLITE_INDEX_CONSTRAINT_MATCH     64\n#define SQLITE_INDEX_CONSTRAINT_LIKE      65\n#define SQLITE_INDEX_CONSTRAINT_GLOB      66\n#define SQLITE_INDEX_CONSTRAINT_REGEXP    67\n#define SQLITE_INDEX_CONSTRAINT_NE        68\n#define SQLITE_INDEX_CONSTRAINT_ISNOT     69\n#define SQLITE_INDEX_CONSTRAINT_ISNOTNULL 70\n#define SQLITE_INDEX_CONSTRAINT_ISNULL    71\n#define SQLITE_INDEX_CONSTRAINT_IS        72\n\n/*\n** CAPI3REF: Register A Virtual Table Implementation\n** METHOD: sqlite3\n**\n** ^These routines are used to register a new [virtual table module] name.\n** ^Module names must be registered before\n** creating a new [virtual table] using the module and before using a\n** preexisting [virtual table] for the module.\n**\n** ^The module name is registered on the [database connection] specified\n** by the first parameter.  ^The name of the module is given by the \n** second parameter.  ^The third parameter is a pointer to\n** the implementation of the [virtual table module].   ^The fourth\n** parameter is an arbitrary client data pointer that is passed through\n** into the [xCreate] and [xConnect] methods of the virtual table module\n** when a new virtual table is be being created or reinitialized.\n**\n** ^The sqlite3_create_module_v2() interface has a fifth parameter which\n** is a pointer to a destructor for the pClientData.  ^SQLite will\n** invoke the destructor function (if it is not NULL) when SQLite\n** no longer needs the pClientData pointer.  ^The destructor will also\n** be invoked if the call to sqlite3_create_module_v2() fails.\n** ^The sqlite3_create_module()\n** interface is equivalent to sqlite3_create_module_v2() with a NULL\n** destructor.\n*/\nSQLITE_API int sqlite3_create_module(\n  sqlite3 *db,               /* SQLite connection to register module with */\n  const char *zName,         /* Name of the module */\n  const sqlite3_module *p,   /* Methods for the module */\n  void *pClientData          /* Client data for xCreate/xConnect */\n);\nSQLITE_API int sqlite3_create_module_v2(\n  sqlite3 *db,               /* SQLite connection to register module with */\n  const char *zName,         /* Name of the module */\n  const sqlite3_module *p,   /* Methods for the module */\n  void *pClientData,         /* Client data for xCreate/xConnect */\n  void(*xDestroy)(void*)     /* Module destructor function */\n);\n\n/*\n** CAPI3REF: Virtual Table Instance Object\n** KEYWORDS: sqlite3_vtab\n**\n** Every [virtual table module] implementation uses a subclass\n** of this object to describe a particular instance\n** of the [virtual table].  Each subclass will\n** be tailored to the specific needs of the module implementation.\n** The purpose of this superclass is to define certain fields that are\n** common to all module implementations.\n**\n** ^Virtual tables methods can set an error message by assigning a\n** string obtained from [sqlite3_mprintf()] to zErrMsg.  The method should\n** take care that any prior string is freed by a call to [sqlite3_free()]\n** prior to assigning a new string to zErrMsg.  ^After the error message\n** is delivered up to the client application, the string will be automatically\n** freed by sqlite3_free() and the zErrMsg field will be zeroed.\n*/\nstruct sqlite3_vtab {\n  const sqlite3_module *pModule;  /* The module for this virtual table */\n  int nRef;                       /* Number of open cursors */\n  char *zErrMsg;                  /* Error message from sqlite3_mprintf() */\n  /* Virtual table implementations will typically add additional fields */\n};\n\n/*\n** CAPI3REF: Virtual Table Cursor Object\n** KEYWORDS: sqlite3_vtab_cursor {virtual table cursor}\n**\n** Every [virtual table module] implementation uses a subclass of the\n** following structure to describe cursors that point into the\n** [virtual table] and are used\n** to loop through the virtual table.  Cursors are created using the\n** [sqlite3_module.xOpen | xOpen] method of the module and are destroyed\n** by the [sqlite3_module.xClose | xClose] method.  Cursors are used\n** by the [xFilter], [xNext], [xEof], [xColumn], and [xRowid] methods\n** of the module.  Each module implementation will define\n** the content of a cursor structure to suit its own needs.\n**\n** This superclass exists in order to define fields of the cursor that\n** are common to all implementations.\n*/\nstruct sqlite3_vtab_cursor {\n  sqlite3_vtab *pVtab;      /* Virtual table of this cursor */\n  /* Virtual table implementations will typically add additional fields */\n};\n\n/*\n** CAPI3REF: Declare The Schema Of A Virtual Table\n**\n** ^The [xCreate] and [xConnect] methods of a\n** [virtual table module] call this interface\n** to declare the format (the names and datatypes of the columns) of\n** the virtual tables they implement.\n*/\nSQLITE_API int sqlite3_declare_vtab(sqlite3*, const char *zSQL);\n\n/*\n** CAPI3REF: Overload A Function For A Virtual Table\n** METHOD: sqlite3\n**\n** ^(Virtual tables can provide alternative implementations of functions\n** using the [xFindFunction] method of the [virtual table module].  \n** But global versions of those functions\n** must exist in order to be overloaded.)^\n**\n** ^(This API makes sure a global version of a function with a particular\n** name and number of parameters exists.  If no such function exists\n** before this API is called, a new function is created.)^  ^The implementation\n** of the new function always causes an exception to be thrown.  So\n** the new function is not good for anything by itself.  Its only\n** purpose is to be a placeholder function that can be overloaded\n** by a [virtual table].\n*/\nSQLITE_API int sqlite3_overload_function(sqlite3*, const char *zFuncName, int nArg);\n\n/*\n** The interface to the virtual-table mechanism defined above (back up\n** to a comment remarkably similar to this one) is currently considered\n** to be experimental.  The interface might change in incompatible ways.\n** If this is a problem for you, do not use the interface at this time.\n**\n** When the virtual-table mechanism stabilizes, we will declare the\n** interface fixed, support it indefinitely, and remove this comment.\n*/\n\n/*\n** CAPI3REF: A Handle To An Open BLOB\n** KEYWORDS: {BLOB handle} {BLOB handles}\n**\n** An instance of this object represents an open BLOB on which\n** [sqlite3_blob_open | incremental BLOB I/O] can be performed.\n** ^Objects of this type are created by [sqlite3_blob_open()]\n** and destroyed by [sqlite3_blob_close()].\n** ^The [sqlite3_blob_read()] and [sqlite3_blob_write()] interfaces\n** can be used to read or write small subsections of the BLOB.\n** ^The [sqlite3_blob_bytes()] interface returns the size of the BLOB in bytes.\n*/\ntypedef struct sqlite3_blob sqlite3_blob;\n\n/*\n** CAPI3REF: Open A BLOB For Incremental I/O\n** METHOD: sqlite3\n** CONSTRUCTOR: sqlite3_blob\n**\n** ^(This interfaces opens a [BLOB handle | handle] to the BLOB located\n** in row iRow, column zColumn, table zTable in database zDb;\n** in other words, the same BLOB that would be selected by:\n**\n** <pre>\n**     SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow;\n** </pre>)^\n**\n** ^(Parameter zDb is not the filename that contains the database, but \n** rather the symbolic name of the database. For attached databases, this is\n** the name that appears after the AS keyword in the [ATTACH] statement.\n** For the main database file, the database name is \"main\". For TEMP\n** tables, the database name is \"temp\".)^\n**\n** ^If the flags parameter is non-zero, then the BLOB is opened for read\n** and write access. ^If the flags parameter is zero, the BLOB is opened for\n** read-only access.\n**\n** ^(On success, [SQLITE_OK] is returned and the new [BLOB handle] is stored\n** in *ppBlob. Otherwise an [error code] is returned and, unless the error\n** code is SQLITE_MISUSE, *ppBlob is set to NULL.)^ ^This means that, provided\n** the API is not misused, it is always safe to call [sqlite3_blob_close()] \n** on *ppBlob after this function it returns.\n**\n** This function fails with SQLITE_ERROR if any of the following are true:\n** <ul>\n**   <li> ^(Database zDb does not exist)^, \n**   <li> ^(Table zTable does not exist within database zDb)^, \n**   <li> ^(Table zTable is a WITHOUT ROWID table)^, \n**   <li> ^(Column zColumn does not exist)^,\n**   <li> ^(Row iRow is not present in the table)^,\n**   <li> ^(The specified column of row iRow contains a value that is not\n**         a TEXT or BLOB value)^,\n**   <li> ^(Column zColumn is part of an index, PRIMARY KEY or UNIQUE \n**         constraint and the blob is being opened for read/write access)^,\n**   <li> ^([foreign key constraints | Foreign key constraints] are enabled, \n**         column zColumn is part of a [child key] definition and the blob is\n**         being opened for read/write access)^.\n** </ul>\n**\n** ^Unless it returns SQLITE_MISUSE, this function sets the \n** [database connection] error code and message accessible via \n** [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. \n**\n** A BLOB referenced by sqlite3_blob_open() may be read using the\n** [sqlite3_blob_read()] interface and modified by using\n** [sqlite3_blob_write()].  The [BLOB handle] can be moved to a\n** different row of the same table using the [sqlite3_blob_reopen()]\n** interface.  However, the column, table, or database of a [BLOB handle]\n** cannot be changed after the [BLOB handle] is opened.\n**\n** ^(If the row that a BLOB handle points to is modified by an\n** [UPDATE], [DELETE], or by [ON CONFLICT] side-effects\n** then the BLOB handle is marked as \"expired\".\n** This is true if any column of the row is changed, even a column\n** other than the one the BLOB handle is open on.)^\n** ^Calls to [sqlite3_blob_read()] and [sqlite3_blob_write()] for\n** an expired BLOB handle fail with a return code of [SQLITE_ABORT].\n** ^(Changes written into a BLOB prior to the BLOB expiring are not\n** rolled back by the expiration of the BLOB.  Such changes will eventually\n** commit if the transaction continues to completion.)^\n**\n** ^Use the [sqlite3_blob_bytes()] interface to determine the size of\n** the opened blob.  ^The size of a blob may not be changed by this\n** interface.  Use the [UPDATE] SQL command to change the size of a\n** blob.\n**\n** ^The [sqlite3_bind_zeroblob()] and [sqlite3_result_zeroblob()] interfaces\n** and the built-in [zeroblob] SQL function may be used to create a \n** zero-filled blob to read or write using the incremental-blob interface.\n**\n** To avoid a resource leak, every open [BLOB handle] should eventually\n** be released by a call to [sqlite3_blob_close()].\n**\n** See also: [sqlite3_blob_close()],\n** [sqlite3_blob_reopen()], [sqlite3_blob_read()],\n** [sqlite3_blob_bytes()], [sqlite3_blob_write()].\n*/\nSQLITE_API int sqlite3_blob_open(\n  sqlite3*,\n  const char *zDb,\n  const char *zTable,\n  const char *zColumn,\n  sqlite3_int64 iRow,\n  int flags,\n  sqlite3_blob **ppBlob\n);\n\n/*\n** CAPI3REF: Move a BLOB Handle to a New Row\n** METHOD: sqlite3_blob\n**\n** ^This function is used to move an existing [BLOB handle] so that it points\n** to a different row of the same database table. ^The new row is identified\n** by the rowid value passed as the second argument. Only the row can be\n** changed. ^The database, table and column on which the blob handle is open\n** remain the same. Moving an existing [BLOB handle] to a new row is\n** faster than closing the existing handle and opening a new one.\n**\n** ^(The new row must meet the same criteria as for [sqlite3_blob_open()] -\n** it must exist and there must be either a blob or text value stored in\n** the nominated column.)^ ^If the new row is not present in the table, or if\n** it does not contain a blob or text value, or if another error occurs, an\n** SQLite error code is returned and the blob handle is considered aborted.\n** ^All subsequent calls to [sqlite3_blob_read()], [sqlite3_blob_write()] or\n** [sqlite3_blob_reopen()] on an aborted blob handle immediately return\n** SQLITE_ABORT. ^Calling [sqlite3_blob_bytes()] on an aborted blob handle\n** always returns zero.\n**\n** ^This function sets the database handle error code and message.\n*/\nSQLITE_API int sqlite3_blob_reopen(sqlite3_blob *, sqlite3_int64);\n\n/*\n** CAPI3REF: Close A BLOB Handle\n** DESTRUCTOR: sqlite3_blob\n**\n** ^This function closes an open [BLOB handle]. ^(The BLOB handle is closed\n** unconditionally.  Even if this routine returns an error code, the \n** handle is still closed.)^\n**\n** ^If the blob handle being closed was opened for read-write access, and if\n** the database is in auto-commit mode and there are no other open read-write\n** blob handles or active write statements, the current transaction is\n** committed. ^If an error occurs while committing the transaction, an error\n** code is returned and the transaction rolled back.\n**\n** Calling this function with an argument that is not a NULL pointer or an\n** open blob handle results in undefined behaviour. ^Calling this routine \n** with a null pointer (such as would be returned by a failed call to \n** [sqlite3_blob_open()]) is a harmless no-op. ^Otherwise, if this function\n** is passed a valid open blob handle, the values returned by the \n** sqlite3_errcode() and sqlite3_errmsg() functions are set before returning.\n*/\nSQLITE_API int sqlite3_blob_close(sqlite3_blob *);\n\n/*\n** CAPI3REF: Return The Size Of An Open BLOB\n** METHOD: sqlite3_blob\n**\n** ^Returns the size in bytes of the BLOB accessible via the \n** successfully opened [BLOB handle] in its only argument.  ^The\n** incremental blob I/O routines can only read or overwriting existing\n** blob content; they cannot change the size of a blob.\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n*/\nSQLITE_API int sqlite3_blob_bytes(sqlite3_blob *);\n\n/*\n** CAPI3REF: Read Data From A BLOB Incrementally\n** METHOD: sqlite3_blob\n**\n** ^(This function is used to read data from an open [BLOB handle] into a\n** caller-supplied buffer. N bytes of data are copied into buffer Z\n** from the open BLOB, starting at offset iOffset.)^\n**\n** ^If offset iOffset is less than N bytes from the end of the BLOB,\n** [SQLITE_ERROR] is returned and no data is read.  ^If N or iOffset is\n** less than zero, [SQLITE_ERROR] is returned and no data is read.\n** ^The size of the blob (and hence the maximum value of N+iOffset)\n** can be determined using the [sqlite3_blob_bytes()] interface.\n**\n** ^An attempt to read from an expired [BLOB handle] fails with an\n** error code of [SQLITE_ABORT].\n**\n** ^(On success, sqlite3_blob_read() returns SQLITE_OK.\n** Otherwise, an [error code] or an [extended error code] is returned.)^\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n**\n** See also: [sqlite3_blob_write()].\n*/\nSQLITE_API int sqlite3_blob_read(sqlite3_blob *, void *Z, int N, int iOffset);\n\n/*\n** CAPI3REF: Write Data Into A BLOB Incrementally\n** METHOD: sqlite3_blob\n**\n** ^(This function is used to write data into an open [BLOB handle] from a\n** caller-supplied buffer. N bytes of data are copied from the buffer Z\n** into the open BLOB, starting at offset iOffset.)^\n**\n** ^(On success, sqlite3_blob_write() returns SQLITE_OK.\n** Otherwise, an  [error code] or an [extended error code] is returned.)^\n** ^Unless SQLITE_MISUSE is returned, this function sets the \n** [database connection] error code and message accessible via \n** [sqlite3_errcode()] and [sqlite3_errmsg()] and related functions. \n**\n** ^If the [BLOB handle] passed as the first argument was not opened for\n** writing (the flags parameter to [sqlite3_blob_open()] was zero),\n** this function returns [SQLITE_READONLY].\n**\n** This function may only modify the contents of the BLOB; it is\n** not possible to increase the size of a BLOB using this API.\n** ^If offset iOffset is less than N bytes from the end of the BLOB,\n** [SQLITE_ERROR] is returned and no data is written. The size of the \n** BLOB (and hence the maximum value of N+iOffset) can be determined \n** using the [sqlite3_blob_bytes()] interface. ^If N or iOffset are less \n** than zero [SQLITE_ERROR] is returned and no data is written.\n**\n** ^An attempt to write to an expired [BLOB handle] fails with an\n** error code of [SQLITE_ABORT].  ^Writes to the BLOB that occurred\n** before the [BLOB handle] expired are not rolled back by the\n** expiration of the handle, though of course those changes might\n** have been overwritten by the statement that expired the BLOB handle\n** or by other independent statements.\n**\n** This routine only works on a [BLOB handle] which has been created\n** by a prior successful call to [sqlite3_blob_open()] and which has not\n** been closed by [sqlite3_blob_close()].  Passing any other pointer in\n** to this routine results in undefined and probably undesirable behavior.\n**\n** See also: [sqlite3_blob_read()].\n*/\nSQLITE_API int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);\n\n/*\n** CAPI3REF: Virtual File System Objects\n**\n** A virtual filesystem (VFS) is an [sqlite3_vfs] object\n** that SQLite uses to interact\n** with the underlying operating system.  Most SQLite builds come with a\n** single default VFS that is appropriate for the host computer.\n** New VFSes can be registered and existing VFSes can be unregistered.\n** The following interfaces are provided.\n**\n** ^The sqlite3_vfs_find() interface returns a pointer to a VFS given its name.\n** ^Names are case sensitive.\n** ^Names are zero-terminated UTF-8 strings.\n** ^If there is no match, a NULL pointer is returned.\n** ^If zVfsName is NULL then the default VFS is returned.\n**\n** ^New VFSes are registered with sqlite3_vfs_register().\n** ^Each new VFS becomes the default VFS if the makeDflt flag is set.\n** ^The same VFS can be registered multiple times without injury.\n** ^To make an existing VFS into the default VFS, register it again\n** with the makeDflt flag set.  If two different VFSes with the\n** same name are registered, the behavior is undefined.  If a\n** VFS is registered with a name that is NULL or an empty string,\n** then the behavior is undefined.\n**\n** ^Unregister a VFS with the sqlite3_vfs_unregister() interface.\n** ^(If the default VFS is unregistered, another VFS is chosen as\n** the default.  The choice for the new VFS is arbitrary.)^\n*/\nSQLITE_API sqlite3_vfs *sqlite3_vfs_find(const char *zVfsName);\nSQLITE_API int sqlite3_vfs_register(sqlite3_vfs*, int makeDflt);\nSQLITE_API int sqlite3_vfs_unregister(sqlite3_vfs*);\n\n/*\n** CAPI3REF: Mutexes\n**\n** The SQLite core uses these routines for thread\n** synchronization. Though they are intended for internal\n** use by SQLite, code that links against SQLite is\n** permitted to use any of these routines.\n**\n** The SQLite source code contains multiple implementations\n** of these mutex routines.  An appropriate implementation\n** is selected automatically at compile-time.  The following\n** implementations are available in the SQLite core:\n**\n** <ul>\n** <li>   SQLITE_MUTEX_PTHREADS\n** <li>   SQLITE_MUTEX_W32\n** <li>   SQLITE_MUTEX_NOOP\n** </ul>\n**\n** The SQLITE_MUTEX_NOOP implementation is a set of routines\n** that does no real locking and is appropriate for use in\n** a single-threaded application.  The SQLITE_MUTEX_PTHREADS and\n** SQLITE_MUTEX_W32 implementations are appropriate for use on Unix\n** and Windows.\n**\n** If SQLite is compiled with the SQLITE_MUTEX_APPDEF preprocessor\n** macro defined (with \"-DSQLITE_MUTEX_APPDEF=1\"), then no mutex\n** implementation is included with the library. In this case the\n** application must supply a custom mutex implementation using the\n** [SQLITE_CONFIG_MUTEX] option of the sqlite3_config() function\n** before calling sqlite3_initialize() or any other public sqlite3_\n** function that calls sqlite3_initialize().\n**\n** ^The sqlite3_mutex_alloc() routine allocates a new\n** mutex and returns a pointer to it. ^The sqlite3_mutex_alloc()\n** routine returns NULL if it is unable to allocate the requested\n** mutex.  The argument to sqlite3_mutex_alloc() must one of these\n** integer constants:\n**\n** <ul>\n** <li>  SQLITE_MUTEX_FAST\n** <li>  SQLITE_MUTEX_RECURSIVE\n** <li>  SQLITE_MUTEX_STATIC_MASTER\n** <li>  SQLITE_MUTEX_STATIC_MEM\n** <li>  SQLITE_MUTEX_STATIC_OPEN\n** <li>  SQLITE_MUTEX_STATIC_PRNG\n** <li>  SQLITE_MUTEX_STATIC_LRU\n** <li>  SQLITE_MUTEX_STATIC_PMEM\n** <li>  SQLITE_MUTEX_STATIC_APP1\n** <li>  SQLITE_MUTEX_STATIC_APP2\n** <li>  SQLITE_MUTEX_STATIC_APP3\n** <li>  SQLITE_MUTEX_STATIC_VFS1\n** <li>  SQLITE_MUTEX_STATIC_VFS2\n** <li>  SQLITE_MUTEX_STATIC_VFS3\n** </ul>\n**\n** ^The first two constants (SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE)\n** cause sqlite3_mutex_alloc() to create\n** a new mutex.  ^The new mutex is recursive when SQLITE_MUTEX_RECURSIVE\n** is used but not necessarily so when SQLITE_MUTEX_FAST is used.\n** The mutex implementation does not need to make a distinction\n** between SQLITE_MUTEX_RECURSIVE and SQLITE_MUTEX_FAST if it does\n** not want to.  SQLite will only request a recursive mutex in\n** cases where it really needs one.  If a faster non-recursive mutex\n** implementation is available on the host platform, the mutex subsystem\n** might return such a mutex in response to SQLITE_MUTEX_FAST.\n**\n** ^The other allowed parameters to sqlite3_mutex_alloc() (anything other\n** than SQLITE_MUTEX_FAST and SQLITE_MUTEX_RECURSIVE) each return\n** a pointer to a static preexisting mutex.  ^Nine static mutexes are\n** used by the current version of SQLite.  Future versions of SQLite\n** may add additional static mutexes.  Static mutexes are for internal\n** use by SQLite only.  Applications that use SQLite mutexes should\n** use only the dynamic mutexes returned by SQLITE_MUTEX_FAST or\n** SQLITE_MUTEX_RECURSIVE.\n**\n** ^Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST\n** or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc()\n** returns a different mutex on every call.  ^For the static\n** mutex types, the same mutex is returned on every call that has\n** the same type number.\n**\n** ^The sqlite3_mutex_free() routine deallocates a previously\n** allocated dynamic mutex.  Attempting to deallocate a static\n** mutex results in undefined behavior.\n**\n** ^The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt\n** to enter a mutex.  ^If another thread is already within the mutex,\n** sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return\n** SQLITE_BUSY.  ^The sqlite3_mutex_try() interface returns [SQLITE_OK]\n** upon successful entry.  ^(Mutexes created using\n** SQLITE_MUTEX_RECURSIVE can be entered multiple times by the same thread.\n** In such cases, the\n** mutex must be exited an equal number of times before another thread\n** can enter.)^  If the same thread tries to enter any mutex other\n** than an SQLITE_MUTEX_RECURSIVE more than once, the behavior is undefined.\n**\n** ^(Some systems (for example, Windows 95) do not support the operation\n** implemented by sqlite3_mutex_try().  On those systems, sqlite3_mutex_try()\n** will always return SQLITE_BUSY. The SQLite core only ever uses\n** sqlite3_mutex_try() as an optimization so this is acceptable \n** behavior.)^\n**\n** ^The sqlite3_mutex_leave() routine exits a mutex that was\n** previously entered by the same thread.   The behavior\n** is undefined if the mutex is not currently entered by the\n** calling thread or is not currently allocated.\n**\n** ^If the argument to sqlite3_mutex_enter(), sqlite3_mutex_try(), or\n** sqlite3_mutex_leave() is a NULL pointer, then all three routines\n** behave as no-ops.\n**\n** See also: [sqlite3_mutex_held()] and [sqlite3_mutex_notheld()].\n*/\nSQLITE_API sqlite3_mutex *sqlite3_mutex_alloc(int);\nSQLITE_API void sqlite3_mutex_free(sqlite3_mutex*);\nSQLITE_API void sqlite3_mutex_enter(sqlite3_mutex*);\nSQLITE_API int sqlite3_mutex_try(sqlite3_mutex*);\nSQLITE_API void sqlite3_mutex_leave(sqlite3_mutex*);\n\n/*\n** CAPI3REF: Mutex Methods Object\n**\n** An instance of this structure defines the low-level routines\n** used to allocate and use mutexes.\n**\n** Usually, the default mutex implementations provided by SQLite are\n** sufficient, however the application has the option of substituting a custom\n** implementation for specialized deployments or systems for which SQLite\n** does not provide a suitable implementation. In this case, the application\n** creates and populates an instance of this structure to pass\n** to sqlite3_config() along with the [SQLITE_CONFIG_MUTEX] option.\n** Additionally, an instance of this structure can be used as an\n** output variable when querying the system for the current mutex\n** implementation, using the [SQLITE_CONFIG_GETMUTEX] option.\n**\n** ^The xMutexInit method defined by this structure is invoked as\n** part of system initialization by the sqlite3_initialize() function.\n** ^The xMutexInit routine is called by SQLite exactly once for each\n** effective call to [sqlite3_initialize()].\n**\n** ^The xMutexEnd method defined by this structure is invoked as\n** part of system shutdown by the sqlite3_shutdown() function. The\n** implementation of this method is expected to release all outstanding\n** resources obtained by the mutex methods implementation, especially\n** those obtained by the xMutexInit method.  ^The xMutexEnd()\n** interface is invoked exactly once for each call to [sqlite3_shutdown()].\n**\n** ^(The remaining seven methods defined by this structure (xMutexAlloc,\n** xMutexFree, xMutexEnter, xMutexTry, xMutexLeave, xMutexHeld and\n** xMutexNotheld) implement the following interfaces (respectively):\n**\n** <ul>\n**   <li>  [sqlite3_mutex_alloc()] </li>\n**   <li>  [sqlite3_mutex_free()] </li>\n**   <li>  [sqlite3_mutex_enter()] </li>\n**   <li>  [sqlite3_mutex_try()] </li>\n**   <li>  [sqlite3_mutex_leave()] </li>\n**   <li>  [sqlite3_mutex_held()] </li>\n**   <li>  [sqlite3_mutex_notheld()] </li>\n** </ul>)^\n**\n** The only difference is that the public sqlite3_XXX functions enumerated\n** above silently ignore any invocations that pass a NULL pointer instead\n** of a valid mutex handle. The implementations of the methods defined\n** by this structure are not required to handle this case, the results\n** of passing a NULL pointer instead of a valid mutex handle are undefined\n** (i.e. it is acceptable to provide an implementation that segfaults if\n** it is passed a NULL pointer).\n**\n** The xMutexInit() method must be threadsafe.  It must be harmless to\n** invoke xMutexInit() multiple times within the same process and without\n** intervening calls to xMutexEnd().  Second and subsequent calls to\n** xMutexInit() must be no-ops.\n**\n** xMutexInit() must not use SQLite memory allocation ([sqlite3_malloc()]\n** and its associates).  Similarly, xMutexAlloc() must not use SQLite memory\n** allocation for a static mutex.  ^However xMutexAlloc() may use SQLite\n** memory allocation for a fast or recursive mutex.\n**\n** ^SQLite will invoke the xMutexEnd() method when [sqlite3_shutdown()] is\n** called, but only if the prior call to xMutexInit returned SQLITE_OK.\n** If xMutexInit fails in any way, it is expected to clean up after itself\n** prior to returning.\n*/\ntypedef struct sqlite3_mutex_methods sqlite3_mutex_methods;\nstruct sqlite3_mutex_methods {\n  int (*xMutexInit)(void);\n  int (*xMutexEnd)(void);\n  sqlite3_mutex *(*xMutexAlloc)(int);\n  void (*xMutexFree)(sqlite3_mutex *);\n  void (*xMutexEnter)(sqlite3_mutex *);\n  int (*xMutexTry)(sqlite3_mutex *);\n  void (*xMutexLeave)(sqlite3_mutex *);\n  int (*xMutexHeld)(sqlite3_mutex *);\n  int (*xMutexNotheld)(sqlite3_mutex *);\n};\n\n/*\n** CAPI3REF: Mutex Verification Routines\n**\n** The sqlite3_mutex_held() and sqlite3_mutex_notheld() routines\n** are intended for use inside assert() statements.  The SQLite core\n** never uses these routines except inside an assert() and applications\n** are advised to follow the lead of the core.  The SQLite core only\n** provides implementations for these routines when it is compiled\n** with the SQLITE_DEBUG flag.  External mutex implementations\n** are only required to provide these routines if SQLITE_DEBUG is\n** defined and if NDEBUG is not defined.\n**\n** These routines should return true if the mutex in their argument\n** is held or not held, respectively, by the calling thread.\n**\n** The implementation is not required to provide versions of these\n** routines that actually work. If the implementation does not provide working\n** versions of these routines, it should at least provide stubs that always\n** return true so that one does not get spurious assertion failures.\n**\n** If the argument to sqlite3_mutex_held() is a NULL pointer then\n** the routine should return 1.   This seems counter-intuitive since\n** clearly the mutex cannot be held if it does not exist.  But\n** the reason the mutex does not exist is because the build is not\n** using mutexes.  And we do not want the assert() containing the\n** call to sqlite3_mutex_held() to fail, so a non-zero return is\n** the appropriate thing to do.  The sqlite3_mutex_notheld()\n** interface should also return 1 when given a NULL pointer.\n*/\n#ifndef NDEBUG\nSQLITE_API int sqlite3_mutex_held(sqlite3_mutex*);\nSQLITE_API int sqlite3_mutex_notheld(sqlite3_mutex*);\n#endif\n\n/*\n** CAPI3REF: Mutex Types\n**\n** The [sqlite3_mutex_alloc()] interface takes a single argument\n** which is one of these integer constants.\n**\n** The set of static mutexes may change from one SQLite release to the\n** next.  Applications that override the built-in mutex logic must be\n** prepared to accommodate additional static mutexes.\n*/\n#define SQLITE_MUTEX_FAST             0\n#define SQLITE_MUTEX_RECURSIVE        1\n#define SQLITE_MUTEX_STATIC_MASTER    2\n#define SQLITE_MUTEX_STATIC_MEM       3  /* sqlite3_malloc() */\n#define SQLITE_MUTEX_STATIC_MEM2      4  /* NOT USED */\n#define SQLITE_MUTEX_STATIC_OPEN      4  /* sqlite3BtreeOpen() */\n#define SQLITE_MUTEX_STATIC_PRNG      5  /* sqlite3_randomness() */\n#define SQLITE_MUTEX_STATIC_LRU       6  /* lru page list */\n#define SQLITE_MUTEX_STATIC_LRU2      7  /* NOT USED */\n#define SQLITE_MUTEX_STATIC_PMEM      7  /* sqlite3PageMalloc() */\n#define SQLITE_MUTEX_STATIC_APP1      8  /* For use by application */\n#define SQLITE_MUTEX_STATIC_APP2      9  /* For use by application */\n#define SQLITE_MUTEX_STATIC_APP3     10  /* For use by application */\n#define SQLITE_MUTEX_STATIC_VFS1     11  /* For use by built-in VFS */\n#define SQLITE_MUTEX_STATIC_VFS2     12  /* For use by extension VFS */\n#define SQLITE_MUTEX_STATIC_VFS3     13  /* For use by application VFS */\n\n/*\n** CAPI3REF: Retrieve the mutex for a database connection\n** METHOD: sqlite3\n**\n** ^This interface returns a pointer the [sqlite3_mutex] object that \n** serializes access to the [database connection] given in the argument\n** when the [threading mode] is Serialized.\n** ^If the [threading mode] is Single-thread or Multi-thread then this\n** routine returns a NULL pointer.\n*/\nSQLITE_API sqlite3_mutex *sqlite3_db_mutex(sqlite3*);\n\n/*\n** CAPI3REF: Low-Level Control Of Database Files\n** METHOD: sqlite3\n**\n** ^The [sqlite3_file_control()] interface makes a direct call to the\n** xFileControl method for the [sqlite3_io_methods] object associated\n** with a particular database identified by the second argument. ^The\n** name of the database is \"main\" for the main database or \"temp\" for the\n** TEMP database, or the name that appears after the AS keyword for\n** databases that are added using the [ATTACH] SQL command.\n** ^A NULL pointer can be used in place of \"main\" to refer to the\n** main database file.\n** ^The third and fourth parameters to this routine\n** are passed directly through to the second and third parameters of\n** the xFileControl method.  ^The return value of the xFileControl\n** method becomes the return value of this routine.\n**\n** ^The [SQLITE_FCNTL_FILE_POINTER] value for the op parameter causes\n** a pointer to the underlying [sqlite3_file] object to be written into\n** the space pointed to by the 4th parameter.  ^The [SQLITE_FCNTL_FILE_POINTER]\n** case is a short-circuit path which does not actually invoke the\n** underlying sqlite3_io_methods.xFileControl method.\n**\n** ^If the second parameter (zDbName) does not match the name of any\n** open database file, then SQLITE_ERROR is returned.  ^This error\n** code is not remembered and will not be recalled by [sqlite3_errcode()]\n** or [sqlite3_errmsg()].  The underlying xFileControl method might\n** also return SQLITE_ERROR.  There is no way to distinguish between\n** an incorrect zDbName and an SQLITE_ERROR return from the underlying\n** xFileControl method.\n**\n** See also: [file control opcodes]\n*/\nSQLITE_API int sqlite3_file_control(sqlite3*, const char *zDbName, int op, void*);\n\n/*\n** CAPI3REF: Testing Interface\n**\n** ^The sqlite3_test_control() interface is used to read out internal\n** state of SQLite and to inject faults into SQLite for testing\n** purposes.  ^The first parameter is an operation code that determines\n** the number, meaning, and operation of all subsequent parameters.\n**\n** This interface is not for use by applications.  It exists solely\n** for verifying the correct operation of the SQLite library.  Depending\n** on how the SQLite library is compiled, this interface might not exist.\n**\n** The details of the operation codes, their meanings, the parameters\n** they take, and what they do are all subject to change without notice.\n** Unlike most of the SQLite API, this function is not guaranteed to\n** operate consistently from one release to the next.\n*/\nSQLITE_API int sqlite3_test_control(int op, ...);\n\n/*\n** CAPI3REF: Testing Interface Operation Codes\n**\n** These constants are the valid operation code parameters used\n** as the first argument to [sqlite3_test_control()].\n**\n** These parameters and their meanings are subject to change\n** without notice.  These values are for testing purposes only.\n** Applications should not use any of these parameters or the\n** [sqlite3_test_control()] interface.\n*/\n#define SQLITE_TESTCTRL_FIRST                    5\n#define SQLITE_TESTCTRL_PRNG_SAVE                5\n#define SQLITE_TESTCTRL_PRNG_RESTORE             6\n#define SQLITE_TESTCTRL_PRNG_RESET               7\n#define SQLITE_TESTCTRL_BITVEC_TEST              8\n#define SQLITE_TESTCTRL_FAULT_INSTALL            9\n#define SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS     10\n#define SQLITE_TESTCTRL_PENDING_BYTE            11\n#define SQLITE_TESTCTRL_ASSERT                  12\n#define SQLITE_TESTCTRL_ALWAYS                  13\n#define SQLITE_TESTCTRL_RESERVE                 14\n#define SQLITE_TESTCTRL_OPTIMIZATIONS           15\n#define SQLITE_TESTCTRL_ISKEYWORD               16\n#define SQLITE_TESTCTRL_SCRATCHMALLOC           17  /* NOT USED */\n#define SQLITE_TESTCTRL_LOCALTIME_FAULT         18\n#define SQLITE_TESTCTRL_EXPLAIN_STMT            19  /* NOT USED */\n#define SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD    19\n#define SQLITE_TESTCTRL_NEVER_CORRUPT           20\n#define SQLITE_TESTCTRL_VDBE_COVERAGE           21\n#define SQLITE_TESTCTRL_BYTEORDER               22\n#define SQLITE_TESTCTRL_ISINIT                  23\n#define SQLITE_TESTCTRL_SORTER_MMAP             24\n#define SQLITE_TESTCTRL_IMPOSTER                25\n#define SQLITE_TESTCTRL_PARSER_COVERAGE         26\n#define SQLITE_TESTCTRL_LAST                    26  /* Largest TESTCTRL */\n\n/*\n** CAPI3REF: SQLite Runtime Status\n**\n** ^These interfaces are used to retrieve runtime status information\n** about the performance of SQLite, and optionally to reset various\n** highwater marks.  ^The first argument is an integer code for\n** the specific parameter to measure.  ^(Recognized integer codes\n** are of the form [status parameters | SQLITE_STATUS_...].)^\n** ^The current value of the parameter is returned into *pCurrent.\n** ^The highest recorded value is returned in *pHighwater.  ^If the\n** resetFlag is true, then the highest record value is reset after\n** *pHighwater is written.  ^(Some parameters do not record the highest\n** value.  For those parameters\n** nothing is written into *pHighwater and the resetFlag is ignored.)^\n** ^(Other parameters record only the highwater mark and not the current\n** value.  For these latter parameters nothing is written into *pCurrent.)^\n**\n** ^The sqlite3_status() and sqlite3_status64() routines return\n** SQLITE_OK on success and a non-zero [error code] on failure.\n**\n** If either the current value or the highwater mark is too large to\n** be represented by a 32-bit integer, then the values returned by\n** sqlite3_status() are undefined.\n**\n** See also: [sqlite3_db_status()]\n*/\nSQLITE_API int sqlite3_status(int op, int *pCurrent, int *pHighwater, int resetFlag);\nSQLITE_API int sqlite3_status64(\n  int op,\n  sqlite3_int64 *pCurrent,\n  sqlite3_int64 *pHighwater,\n  int resetFlag\n);\n\n\n/*\n** CAPI3REF: Status Parameters\n** KEYWORDS: {status parameters}\n**\n** These integer constants designate various run-time status parameters\n** that can be returned by [sqlite3_status()].\n**\n** <dl>\n** [[SQLITE_STATUS_MEMORY_USED]] ^(<dt>SQLITE_STATUS_MEMORY_USED</dt>\n** <dd>This parameter is the current amount of memory checked out\n** using [sqlite3_malloc()], either directly or indirectly.  The\n** figure includes calls made to [sqlite3_malloc()] by the application\n** and internal memory usage by the SQLite library.  Auxiliary page-cache\n** memory controlled by [SQLITE_CONFIG_PAGECACHE] is not included in\n** this parameter.  The amount returned is the sum of the allocation\n** sizes as reported by the xSize method in [sqlite3_mem_methods].</dd>)^\n**\n** [[SQLITE_STATUS_MALLOC_SIZE]] ^(<dt>SQLITE_STATUS_MALLOC_SIZE</dt>\n** <dd>This parameter records the largest memory allocation request\n** handed to [sqlite3_malloc()] or [sqlite3_realloc()] (or their\n** internal equivalents).  Only the value returned in the\n** *pHighwater parameter to [sqlite3_status()] is of interest.  \n** The value written into the *pCurrent parameter is undefined.</dd>)^\n**\n** [[SQLITE_STATUS_MALLOC_COUNT]] ^(<dt>SQLITE_STATUS_MALLOC_COUNT</dt>\n** <dd>This parameter records the number of separate memory allocations\n** currently checked out.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_USED]] ^(<dt>SQLITE_STATUS_PAGECACHE_USED</dt>\n** <dd>This parameter returns the number of pages used out of the\n** [pagecache memory allocator] that was configured using \n** [SQLITE_CONFIG_PAGECACHE].  The\n** value returned is in pages, not in bytes.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_OVERFLOW]] \n** ^(<dt>SQLITE_STATUS_PAGECACHE_OVERFLOW</dt>\n** <dd>This parameter returns the number of bytes of page cache\n** allocation which could not be satisfied by the [SQLITE_CONFIG_PAGECACHE]\n** buffer and where forced to overflow to [sqlite3_malloc()].  The\n** returned value includes allocations that overflowed because they\n** where too large (they were larger than the \"sz\" parameter to\n** [SQLITE_CONFIG_PAGECACHE]) and allocations that overflowed because\n** no space was left in the page cache.</dd>)^\n**\n** [[SQLITE_STATUS_PAGECACHE_SIZE]] ^(<dt>SQLITE_STATUS_PAGECACHE_SIZE</dt>\n** <dd>This parameter records the largest memory allocation request\n** handed to [pagecache memory allocator].  Only the value returned in the\n** *pHighwater parameter to [sqlite3_status()] is of interest.  \n** The value written into the *pCurrent parameter is undefined.</dd>)^\n**\n** [[SQLITE_STATUS_SCRATCH_USED]] <dt>SQLITE_STATUS_SCRATCH_USED</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_SCRATCH_OVERFLOW]] ^(<dt>SQLITE_STATUS_SCRATCH_OVERFLOW</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_SCRATCH_SIZE]] <dt>SQLITE_STATUS_SCRATCH_SIZE</dt>\n** <dd>No longer used.</dd>\n**\n** [[SQLITE_STATUS_PARSER_STACK]] ^(<dt>SQLITE_STATUS_PARSER_STACK</dt>\n** <dd>The *pHighwater parameter records the deepest parser stack. \n** The *pCurrent value is undefined.  The *pHighwater value is only\n** meaningful if SQLite is compiled with [YYTRACKMAXSTACKDEPTH].</dd>)^\n** </dl>\n**\n** New status parameters may be added from time to time.\n*/\n#define SQLITE_STATUS_MEMORY_USED          0\n#define SQLITE_STATUS_PAGECACHE_USED       1\n#define SQLITE_STATUS_PAGECACHE_OVERFLOW   2\n#define SQLITE_STATUS_SCRATCH_USED         3  /* NOT USED */\n#define SQLITE_STATUS_SCRATCH_OVERFLOW     4  /* NOT USED */\n#define SQLITE_STATUS_MALLOC_SIZE          5\n#define SQLITE_STATUS_PARSER_STACK         6\n#define SQLITE_STATUS_PAGECACHE_SIZE       7\n#define SQLITE_STATUS_SCRATCH_SIZE         8  /* NOT USED */\n#define SQLITE_STATUS_MALLOC_COUNT         9\n\n/*\n** CAPI3REF: Database Connection Status\n** METHOD: sqlite3\n**\n** ^This interface is used to retrieve runtime status information \n** about a single [database connection].  ^The first argument is the\n** database connection object to be interrogated.  ^The second argument\n** is an integer constant, taken from the set of\n** [SQLITE_DBSTATUS options], that\n** determines the parameter to interrogate.  The set of \n** [SQLITE_DBSTATUS options] is likely\n** to grow in future releases of SQLite.\n**\n** ^The current value of the requested parameter is written into *pCur\n** and the highest instantaneous value is written into *pHiwtr.  ^If\n** the resetFlg is true, then the highest instantaneous value is\n** reset back down to the current value.\n**\n** ^The sqlite3_db_status() routine returns SQLITE_OK on success and a\n** non-zero [error code] on failure.\n**\n** See also: [sqlite3_status()] and [sqlite3_stmt_status()].\n*/\nSQLITE_API int sqlite3_db_status(sqlite3*, int op, int *pCur, int *pHiwtr, int resetFlg);\n\n/*\n** CAPI3REF: Status Parameters for database connections\n** KEYWORDS: {SQLITE_DBSTATUS options}\n**\n** These constants are the available integer \"verbs\" that can be passed as\n** the second argument to the [sqlite3_db_status()] interface.\n**\n** New verbs may be added in future releases of SQLite. Existing verbs\n** might be discontinued. Applications should check the return code from\n** [sqlite3_db_status()] to make sure that the call worked.\n** The [sqlite3_db_status()] interface will return a non-zero error code\n** if a discontinued or unsupported verb is invoked.\n**\n** <dl>\n** [[SQLITE_DBSTATUS_LOOKASIDE_USED]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_USED</dt>\n** <dd>This parameter returns the number of lookaside memory slots currently\n** checked out.</dd>)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_HIT]] ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_HIT</dt>\n** <dd>This parameter returns the number malloc attempts that were \n** satisfied using lookaside memory. Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE]]\n** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</dt>\n** <dd>This parameter returns the number malloc attempts that might have\n** been satisfied using lookaside memory but failed due to the amount of\n** memory requested being larger than the lookaside slot size.\n** Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL]]\n** ^(<dt>SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</dt>\n** <dd>This parameter returns the number malloc attempts that might have\n** been satisfied using lookaside memory but failed due to all lookaside\n** memory already being in use.\n** Only the high-water value is meaningful;\n** the current value is always zero.)^\n**\n** [[SQLITE_DBSTATUS_CACHE_USED]] ^(<dt>SQLITE_DBSTATUS_CACHE_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** memory used by all pager caches associated with the database connection.)^\n** ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always 0.\n**\n** [[SQLITE_DBSTATUS_CACHE_USED_SHARED]] \n** ^(<dt>SQLITE_DBSTATUS_CACHE_USED_SHARED</dt>\n** <dd>This parameter is similar to DBSTATUS_CACHE_USED, except that if a\n** pager cache is shared between two or more connections the bytes of heap\n** memory used by that pager cache is divided evenly between the attached\n** connections.)^  In other words, if none of the pager caches associated\n** with the database connection are shared, this request returns the same\n** value as DBSTATUS_CACHE_USED. Or, if one or more or the pager caches are\n** shared, the value returned by this call will be smaller than that returned\n** by DBSTATUS_CACHE_USED. ^The highwater mark associated with\n** SQLITE_DBSTATUS_CACHE_USED_SHARED is always 0.\n**\n** [[SQLITE_DBSTATUS_SCHEMA_USED]] ^(<dt>SQLITE_DBSTATUS_SCHEMA_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** memory used to store the schema for all databases associated\n** with the connection - main, temp, and any [ATTACH]-ed databases.)^ \n** ^The full amount of memory used by the schemas is reported, even if the\n** schema memory is shared with other database connections due to\n** [shared cache mode] being enabled.\n** ^The highwater mark associated with SQLITE_DBSTATUS_SCHEMA_USED is always 0.\n**\n** [[SQLITE_DBSTATUS_STMT_USED]] ^(<dt>SQLITE_DBSTATUS_STMT_USED</dt>\n** <dd>This parameter returns the approximate number of bytes of heap\n** and lookaside memory used by all prepared statements associated with\n** the database connection.)^\n** ^The highwater mark associated with SQLITE_DBSTATUS_STMT_USED is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_HIT]] ^(<dt>SQLITE_DBSTATUS_CACHE_HIT</dt>\n** <dd>This parameter returns the number of pager cache hits that have\n** occurred.)^ ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_HIT \n** is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_MISS]] ^(<dt>SQLITE_DBSTATUS_CACHE_MISS</dt>\n** <dd>This parameter returns the number of pager cache misses that have\n** occurred.)^ ^The highwater mark associated with SQLITE_DBSTATUS_CACHE_MISS \n** is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_CACHE_WRITE]] ^(<dt>SQLITE_DBSTATUS_CACHE_WRITE</dt>\n** <dd>This parameter returns the number of dirty cache entries that have\n** been written to disk. Specifically, the number of pages written to the\n** wal file in wal mode databases, or the number of pages written to the\n** database file in rollback mode databases. Any pages written as part of\n** transaction rollback or database recovery operations are not included.\n** If an IO or other error occurs while writing a page to disk, the effect\n** on subsequent SQLITE_DBSTATUS_CACHE_WRITE requests is undefined.)^ ^The\n** highwater mark associated with SQLITE_DBSTATUS_CACHE_WRITE is always 0.\n** </dd>\n**\n** [[SQLITE_DBSTATUS_DEFERRED_FKS]] ^(<dt>SQLITE_DBSTATUS_DEFERRED_FKS</dt>\n** <dd>This parameter returns zero for the current value if and only if\n** all foreign key constraints (deferred or immediate) have been\n** resolved.)^  ^The highwater mark is always 0.\n** </dd>\n** </dl>\n*/\n#define SQLITE_DBSTATUS_LOOKASIDE_USED       0\n#define SQLITE_DBSTATUS_CACHE_USED           1\n#define SQLITE_DBSTATUS_SCHEMA_USED          2\n#define SQLITE_DBSTATUS_STMT_USED            3\n#define SQLITE_DBSTATUS_LOOKASIDE_HIT        4\n#define SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE  5\n#define SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL  6\n#define SQLITE_DBSTATUS_CACHE_HIT            7\n#define SQLITE_DBSTATUS_CACHE_MISS           8\n#define SQLITE_DBSTATUS_CACHE_WRITE          9\n#define SQLITE_DBSTATUS_DEFERRED_FKS        10\n#define SQLITE_DBSTATUS_CACHE_USED_SHARED   11\n#define SQLITE_DBSTATUS_MAX                 11   /* Largest defined DBSTATUS */\n\n\n/*\n** CAPI3REF: Prepared Statement Status\n** METHOD: sqlite3_stmt\n**\n** ^(Each prepared statement maintains various\n** [SQLITE_STMTSTATUS counters] that measure the number\n** of times it has performed specific operations.)^  These counters can\n** be used to monitor the performance characteristics of the prepared\n** statements.  For example, if the number of table steps greatly exceeds\n** the number of table searches or result rows, that would tend to indicate\n** that the prepared statement is using a full table scan rather than\n** an index.  \n**\n** ^(This interface is used to retrieve and reset counter values from\n** a [prepared statement].  The first argument is the prepared statement\n** object to be interrogated.  The second argument\n** is an integer code for a specific [SQLITE_STMTSTATUS counter]\n** to be interrogated.)^\n** ^The current value of the requested counter is returned.\n** ^If the resetFlg is true, then the counter is reset to zero after this\n** interface call returns.\n**\n** See also: [sqlite3_status()] and [sqlite3_db_status()].\n*/\nSQLITE_API int sqlite3_stmt_status(sqlite3_stmt*, int op,int resetFlg);\n\n/*\n** CAPI3REF: Status Parameters for prepared statements\n** KEYWORDS: {SQLITE_STMTSTATUS counter} {SQLITE_STMTSTATUS counters}\n**\n** These preprocessor macros define integer codes that name counter\n** values associated with the [sqlite3_stmt_status()] interface.\n** The meanings of the various counters are as follows:\n**\n** <dl>\n** [[SQLITE_STMTSTATUS_FULLSCAN_STEP]] <dt>SQLITE_STMTSTATUS_FULLSCAN_STEP</dt>\n** <dd>^This is the number of times that SQLite has stepped forward in\n** a table as part of a full table scan.  Large numbers for this counter\n** may indicate opportunities for performance improvement through \n** careful use of indices.</dd>\n**\n** [[SQLITE_STMTSTATUS_SORT]] <dt>SQLITE_STMTSTATUS_SORT</dt>\n** <dd>^This is the number of sort operations that have occurred.\n** A non-zero value in this counter may indicate an opportunity to\n** improvement performance through careful use of indices.</dd>\n**\n** [[SQLITE_STMTSTATUS_AUTOINDEX]] <dt>SQLITE_STMTSTATUS_AUTOINDEX</dt>\n** <dd>^This is the number of rows inserted into transient indices that\n** were created automatically in order to help joins run faster.\n** A non-zero value in this counter may indicate an opportunity to\n** improvement performance by adding permanent indices that do not\n** need to be reinitialized each time the statement is run.</dd>\n**\n** [[SQLITE_STMTSTATUS_VM_STEP]] <dt>SQLITE_STMTSTATUS_VM_STEP</dt>\n** <dd>^This is the number of virtual machine operations executed\n** by the prepared statement if that number is less than or equal\n** to 2147483647.  The number of virtual machine operations can be \n** used as a proxy for the total work done by the prepared statement.\n** If the number of virtual machine operations exceeds 2147483647\n** then the value returned by this statement status code is undefined.\n**\n** [[SQLITE_STMTSTATUS_REPREPARE]] <dt>SQLITE_STMTSTATUS_REPREPARE</dt>\n** <dd>^This is the number of times that the prepare statement has been\n** automatically regenerated due to schema changes or change to \n** [bound parameters] that might affect the query plan.\n**\n** [[SQLITE_STMTSTATUS_RUN]] <dt>SQLITE_STMTSTATUS_RUN</dt>\n** <dd>^This is the number of times that the prepared statement has\n** been run.  A single \"run\" for the purposes of this counter is one\n** or more calls to [sqlite3_step()] followed by a call to [sqlite3_reset()].\n** The counter is incremented on the first [sqlite3_step()] call of each\n** cycle.\n**\n** [[SQLITE_STMTSTATUS_MEMUSED]] <dt>SQLITE_STMTSTATUS_MEMUSED</dt>\n** <dd>^This is the approximate number of bytes of heap memory\n** used to store the prepared statement.  ^This value is not actually\n** a counter, and so the resetFlg parameter to sqlite3_stmt_status()\n** is ignored when the opcode is SQLITE_STMTSTATUS_MEMUSED.\n** </dd>\n** </dl>\n*/\n#define SQLITE_STMTSTATUS_FULLSCAN_STEP     1\n#define SQLITE_STMTSTATUS_SORT              2\n#define SQLITE_STMTSTATUS_AUTOINDEX         3\n#define SQLITE_STMTSTATUS_VM_STEP           4\n#define SQLITE_STMTSTATUS_REPREPARE         5\n#define SQLITE_STMTSTATUS_RUN               6\n#define SQLITE_STMTSTATUS_MEMUSED           99\n\n/*\n** CAPI3REF: Custom Page Cache Object\n**\n** The sqlite3_pcache type is opaque.  It is implemented by\n** the pluggable module.  The SQLite core has no knowledge of\n** its size or internal structure and never deals with the\n** sqlite3_pcache object except by holding and passing pointers\n** to the object.\n**\n** See [sqlite3_pcache_methods2] for additional information.\n*/\ntypedef struct sqlite3_pcache sqlite3_pcache;\n\n/*\n** CAPI3REF: Custom Page Cache Object\n**\n** The sqlite3_pcache_page object represents a single page in the\n** page cache.  The page cache will allocate instances of this\n** object.  Various methods of the page cache use pointers to instances\n** of this object as parameters or as their return value.\n**\n** See [sqlite3_pcache_methods2] for additional information.\n*/\ntypedef struct sqlite3_pcache_page sqlite3_pcache_page;\nstruct sqlite3_pcache_page {\n  void *pBuf;        /* The content of the page */\n  void *pExtra;      /* Extra information associated with the page */\n};\n\n/*\n** CAPI3REF: Application Defined Page Cache.\n** KEYWORDS: {page cache}\n**\n** ^(The [sqlite3_config]([SQLITE_CONFIG_PCACHE2], ...) interface can\n** register an alternative page cache implementation by passing in an \n** instance of the sqlite3_pcache_methods2 structure.)^\n** In many applications, most of the heap memory allocated by \n** SQLite is used for the page cache.\n** By implementing a \n** custom page cache using this API, an application can better control\n** the amount of memory consumed by SQLite, the way in which \n** that memory is allocated and released, and the policies used to \n** determine exactly which parts of a database file are cached and for \n** how long.\n**\n** The alternative page cache mechanism is an\n** extreme measure that is only needed by the most demanding applications.\n** The built-in page cache is recommended for most uses.\n**\n** ^(The contents of the sqlite3_pcache_methods2 structure are copied to an\n** internal buffer by SQLite within the call to [sqlite3_config].  Hence\n** the application may discard the parameter after the call to\n** [sqlite3_config()] returns.)^\n**\n** [[the xInit() page cache method]]\n** ^(The xInit() method is called once for each effective \n** call to [sqlite3_initialize()])^\n** (usually only once during the lifetime of the process). ^(The xInit()\n** method is passed a copy of the sqlite3_pcache_methods2.pArg value.)^\n** The intent of the xInit() method is to set up global data structures \n** required by the custom page cache implementation. \n** ^(If the xInit() method is NULL, then the \n** built-in default page cache is used instead of the application defined\n** page cache.)^\n**\n** [[the xShutdown() page cache method]]\n** ^The xShutdown() method is called by [sqlite3_shutdown()].\n** It can be used to clean up \n** any outstanding resources before process shutdown, if required.\n** ^The xShutdown() method may be NULL.\n**\n** ^SQLite automatically serializes calls to the xInit method,\n** so the xInit method need not be threadsafe.  ^The\n** xShutdown method is only called from [sqlite3_shutdown()] so it does\n** not need to be threadsafe either.  All other methods must be threadsafe\n** in multithreaded applications.\n**\n** ^SQLite will never invoke xInit() more than once without an intervening\n** call to xShutdown().\n**\n** [[the xCreate() page cache methods]]\n** ^SQLite invokes the xCreate() method to construct a new cache instance.\n** SQLite will typically create one cache instance for each open database file,\n** though this is not guaranteed. ^The\n** first parameter, szPage, is the size in bytes of the pages that must\n** be allocated by the cache.  ^szPage will always a power of two.  ^The\n** second parameter szExtra is a number of bytes of extra storage \n** associated with each page cache entry.  ^The szExtra parameter will\n** a number less than 250.  SQLite will use the\n** extra szExtra bytes on each page to store metadata about the underlying\n** database page on disk.  The value passed into szExtra depends\n** on the SQLite version, the target platform, and how SQLite was compiled.\n** ^The third argument to xCreate(), bPurgeable, is true if the cache being\n** created will be used to cache database pages of a file stored on disk, or\n** false if it is used for an in-memory database. The cache implementation\n** does not have to do anything special based with the value of bPurgeable;\n** it is purely advisory.  ^On a cache where bPurgeable is false, SQLite will\n** never invoke xUnpin() except to deliberately delete a page.\n** ^In other words, calls to xUnpin() on a cache with bPurgeable set to\n** false will always have the \"discard\" flag set to true.  \n** ^Hence, a cache created with bPurgeable false will\n** never contain any unpinned pages.\n**\n** [[the xCachesize() page cache method]]\n** ^(The xCachesize() method may be called at any time by SQLite to set the\n** suggested maximum cache-size (number of pages stored by) the cache\n** instance passed as the first argument. This is the value configured using\n** the SQLite \"[PRAGMA cache_size]\" command.)^  As with the bPurgeable\n** parameter, the implementation is not required to do anything with this\n** value; it is advisory only.\n**\n** [[the xPagecount() page cache methods]]\n** The xPagecount() method must return the number of pages currently\n** stored in the cache, both pinned and unpinned.\n** \n** [[the xFetch() page cache methods]]\n** The xFetch() method locates a page in the cache and returns a pointer to \n** an sqlite3_pcache_page object associated with that page, or a NULL pointer.\n** The pBuf element of the returned sqlite3_pcache_page object will be a\n** pointer to a buffer of szPage bytes used to store the content of a \n** single database page.  The pExtra element of sqlite3_pcache_page will be\n** a pointer to the szExtra bytes of extra storage that SQLite has requested\n** for each entry in the page cache.\n**\n** The page to be fetched is determined by the key. ^The minimum key value\n** is 1.  After it has been retrieved using xFetch, the page is considered\n** to be \"pinned\".\n**\n** If the requested page is already in the page cache, then the page cache\n** implementation must return a pointer to the page buffer with its content\n** intact.  If the requested page is not already in the cache, then the\n** cache implementation should use the value of the createFlag\n** parameter to help it determined what action to take:\n**\n** <table border=1 width=85% align=center>\n** <tr><th> createFlag <th> Behavior when page is not already in cache\n** <tr><td> 0 <td> Do not allocate a new page.  Return NULL.\n** <tr><td> 1 <td> Allocate a new page if it easy and convenient to do so.\n**                 Otherwise return NULL.\n** <tr><td> 2 <td> Make every effort to allocate a new page.  Only return\n**                 NULL if allocating a new page is effectively impossible.\n** </table>\n**\n** ^(SQLite will normally invoke xFetch() with a createFlag of 0 or 1.  SQLite\n** will only use a createFlag of 2 after a prior call with a createFlag of 1\n** failed.)^  In between the to xFetch() calls, SQLite may\n** attempt to unpin one or more cache pages by spilling the content of\n** pinned pages to disk and synching the operating system disk cache.\n**\n** [[the xUnpin() page cache method]]\n** ^xUnpin() is called by SQLite with a pointer to a currently pinned page\n** as its second argument.  If the third parameter, discard, is non-zero,\n** then the page must be evicted from the cache.\n** ^If the discard parameter is\n** zero, then the page may be discarded or retained at the discretion of\n** page cache implementation. ^The page cache implementation\n** may choose to evict unpinned pages at any time.\n**\n** The cache must not perform any reference counting. A single \n** call to xUnpin() unpins the page regardless of the number of prior calls \n** to xFetch().\n**\n** [[the xRekey() page cache methods]]\n** The xRekey() method is used to change the key value associated with the\n** page passed as the second argument. If the cache\n** previously contains an entry associated with newKey, it must be\n** discarded. ^Any prior cache entry associated with newKey is guaranteed not\n** to be pinned.\n**\n** When SQLite calls the xTruncate() method, the cache must discard all\n** existing cache entries with page numbers (keys) greater than or equal\n** to the value of the iLimit parameter passed to xTruncate(). If any\n** of these pages are pinned, they are implicitly unpinned, meaning that\n** they can be safely discarded.\n**\n** [[the xDestroy() page cache method]]\n** ^The xDestroy() method is used to delete a cache allocated by xCreate().\n** All resources associated with the specified cache should be freed. ^After\n** calling the xDestroy() method, SQLite considers the [sqlite3_pcache*]\n** handle invalid, and will not use it with any other sqlite3_pcache_methods2\n** functions.\n**\n** [[the xShrink() page cache method]]\n** ^SQLite invokes the xShrink() method when it wants the page cache to\n** free up as much of heap memory as possible.  The page cache implementation\n** is not obligated to free any memory, but well-behaved implementations should\n** do their best.\n*/\ntypedef struct sqlite3_pcache_methods2 sqlite3_pcache_methods2;\nstruct sqlite3_pcache_methods2 {\n  int iVersion;\n  void *pArg;\n  int (*xInit)(void*);\n  void (*xShutdown)(void*);\n  sqlite3_pcache *(*xCreate)(int szPage, int szExtra, int bPurgeable);\n  void (*xCachesize)(sqlite3_pcache*, int nCachesize);\n  int (*xPagecount)(sqlite3_pcache*);\n  sqlite3_pcache_page *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);\n  void (*xUnpin)(sqlite3_pcache*, sqlite3_pcache_page*, int discard);\n  void (*xRekey)(sqlite3_pcache*, sqlite3_pcache_page*, \n      unsigned oldKey, unsigned newKey);\n  void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);\n  void (*xDestroy)(sqlite3_pcache*);\n  void (*xShrink)(sqlite3_pcache*);\n};\n\n/*\n** This is the obsolete pcache_methods object that has now been replaced\n** by sqlite3_pcache_methods2.  This object is not used by SQLite.  It is\n** retained in the header file for backwards compatibility only.\n*/\ntypedef struct sqlite3_pcache_methods sqlite3_pcache_methods;\nstruct sqlite3_pcache_methods {\n  void *pArg;\n  int (*xInit)(void*);\n  void (*xShutdown)(void*);\n  sqlite3_pcache *(*xCreate)(int szPage, int bPurgeable);\n  void (*xCachesize)(sqlite3_pcache*, int nCachesize);\n  int (*xPagecount)(sqlite3_pcache*);\n  void *(*xFetch)(sqlite3_pcache*, unsigned key, int createFlag);\n  void (*xUnpin)(sqlite3_pcache*, void*, int discard);\n  void (*xRekey)(sqlite3_pcache*, void*, unsigned oldKey, unsigned newKey);\n  void (*xTruncate)(sqlite3_pcache*, unsigned iLimit);\n  void (*xDestroy)(sqlite3_pcache*);\n};\n\n\n/*\n** CAPI3REF: Online Backup Object\n**\n** The sqlite3_backup object records state information about an ongoing\n** online backup operation.  ^The sqlite3_backup object is created by\n** a call to [sqlite3_backup_init()] and is destroyed by a call to\n** [sqlite3_backup_finish()].\n**\n** See Also: [Using the SQLite Online Backup API]\n*/\ntypedef struct sqlite3_backup sqlite3_backup;\n\n/*\n** CAPI3REF: Online Backup API.\n**\n** The backup API copies the content of one database into another.\n** It is useful either for creating backups of databases or\n** for copying in-memory databases to or from persistent files. \n**\n** See Also: [Using the SQLite Online Backup API]\n**\n** ^SQLite holds a write transaction open on the destination database file\n** for the duration of the backup operation.\n** ^The source database is read-locked only while it is being read;\n** it is not locked continuously for the entire backup operation.\n** ^Thus, the backup may be performed on a live source database without\n** preventing other database connections from\n** reading or writing to the source database while the backup is underway.\n** \n** ^(To perform a backup operation: \n**   <ol>\n**     <li><b>sqlite3_backup_init()</b> is called once to initialize the\n**         backup, \n**     <li><b>sqlite3_backup_step()</b> is called one or more times to transfer \n**         the data between the two databases, and finally\n**     <li><b>sqlite3_backup_finish()</b> is called to release all resources \n**         associated with the backup operation. \n**   </ol>)^\n** There should be exactly one call to sqlite3_backup_finish() for each\n** successful call to sqlite3_backup_init().\n**\n** [[sqlite3_backup_init()]] <b>sqlite3_backup_init()</b>\n**\n** ^The D and N arguments to sqlite3_backup_init(D,N,S,M) are the \n** [database connection] associated with the destination database \n** and the database name, respectively.\n** ^The database name is \"main\" for the main database, \"temp\" for the\n** temporary database, or the name specified after the AS keyword in\n** an [ATTACH] statement for an attached database.\n** ^The S and M arguments passed to \n** sqlite3_backup_init(D,N,S,M) identify the [database connection]\n** and database name of the source database, respectively.\n** ^The source and destination [database connections] (parameters S and D)\n** must be different or else sqlite3_backup_init(D,N,S,M) will fail with\n** an error.\n**\n** ^A call to sqlite3_backup_init() will fail, returning NULL, if \n** there is already a read or read-write transaction open on the \n** destination database.\n**\n** ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is\n** returned and an error code and error message are stored in the\n** destination [database connection] D.\n** ^The error code and message for the failed call to sqlite3_backup_init()\n** can be retrieved using the [sqlite3_errcode()], [sqlite3_errmsg()], and/or\n** [sqlite3_errmsg16()] functions.\n** ^A successful call to sqlite3_backup_init() returns a pointer to an\n** [sqlite3_backup] object.\n** ^The [sqlite3_backup] object may be used with the sqlite3_backup_step() and\n** sqlite3_backup_finish() functions to perform the specified backup \n** operation.\n**\n** [[sqlite3_backup_step()]] <b>sqlite3_backup_step()</b>\n**\n** ^Function sqlite3_backup_step(B,N) will copy up to N pages between \n** the source and destination databases specified by [sqlite3_backup] object B.\n** ^If N is negative, all remaining source pages are copied. \n** ^If sqlite3_backup_step(B,N) successfully copies N pages and there\n** are still more pages to be copied, then the function returns [SQLITE_OK].\n** ^If sqlite3_backup_step(B,N) successfully finishes copying all pages\n** from source to destination, then it returns [SQLITE_DONE].\n** ^If an error occurs while running sqlite3_backup_step(B,N),\n** then an [error code] is returned. ^As well as [SQLITE_OK] and\n** [SQLITE_DONE], a call to sqlite3_backup_step() may return [SQLITE_READONLY],\n** [SQLITE_NOMEM], [SQLITE_BUSY], [SQLITE_LOCKED], or an\n** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code.\n**\n** ^(The sqlite3_backup_step() might return [SQLITE_READONLY] if\n** <ol>\n** <li> the destination database was opened read-only, or\n** <li> the destination database is using write-ahead-log journaling\n** and the destination and source page sizes differ, or\n** <li> the destination database is an in-memory database and the\n** destination and source page sizes differ.\n** </ol>)^\n**\n** ^If sqlite3_backup_step() cannot obtain a required file-system lock, then\n** the [sqlite3_busy_handler | busy-handler function]\n** is invoked (if one is specified). ^If the \n** busy-handler returns non-zero before the lock is available, then \n** [SQLITE_BUSY] is returned to the caller. ^In this case the call to\n** sqlite3_backup_step() can be retried later. ^If the source\n** [database connection]\n** is being used to write to the source database when sqlite3_backup_step()\n** is called, then [SQLITE_LOCKED] is returned immediately. ^Again, in this\n** case the call to sqlite3_backup_step() can be retried later on. ^(If\n** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX], [SQLITE_NOMEM], or\n** [SQLITE_READONLY] is returned, then \n** there is no point in retrying the call to sqlite3_backup_step(). These \n** errors are considered fatal.)^  The application must accept \n** that the backup operation has failed and pass the backup operation handle \n** to the sqlite3_backup_finish() to release associated resources.\n**\n** ^The first call to sqlite3_backup_step() obtains an exclusive lock\n** on the destination file. ^The exclusive lock is not released until either \n** sqlite3_backup_finish() is called or the backup operation is complete \n** and sqlite3_backup_step() returns [SQLITE_DONE].  ^Every call to\n** sqlite3_backup_step() obtains a [shared lock] on the source database that\n** lasts for the duration of the sqlite3_backup_step() call.\n** ^Because the source database is not locked between calls to\n** sqlite3_backup_step(), the source database may be modified mid-way\n** through the backup process.  ^If the source database is modified by an\n** external process or via a database connection other than the one being\n** used by the backup operation, then the backup will be automatically\n** restarted by the next call to sqlite3_backup_step(). ^If the source \n** database is modified by the using the same database connection as is used\n** by the backup operation, then the backup database is automatically\n** updated at the same time.\n**\n** [[sqlite3_backup_finish()]] <b>sqlite3_backup_finish()</b>\n**\n** When sqlite3_backup_step() has returned [SQLITE_DONE], or when the \n** application wishes to abandon the backup operation, the application\n** should destroy the [sqlite3_backup] by passing it to sqlite3_backup_finish().\n** ^The sqlite3_backup_finish() interfaces releases all\n** resources associated with the [sqlite3_backup] object. \n** ^If sqlite3_backup_step() has not yet returned [SQLITE_DONE], then any\n** active write-transaction on the destination database is rolled back.\n** The [sqlite3_backup] object is invalid\n** and may not be used following a call to sqlite3_backup_finish().\n**\n** ^The value returned by sqlite3_backup_finish is [SQLITE_OK] if no\n** sqlite3_backup_step() errors occurred, regardless or whether or not\n** sqlite3_backup_step() completed.\n** ^If an out-of-memory condition or IO error occurred during any prior\n** sqlite3_backup_step() call on the same [sqlite3_backup] object, then\n** sqlite3_backup_finish() returns the corresponding [error code].\n**\n** ^A return of [SQLITE_BUSY] or [SQLITE_LOCKED] from sqlite3_backup_step()\n** is not a permanent error and does not affect the return value of\n** sqlite3_backup_finish().\n**\n** [[sqlite3_backup_remaining()]] [[sqlite3_backup_pagecount()]]\n** <b>sqlite3_backup_remaining() and sqlite3_backup_pagecount()</b>\n**\n** ^The sqlite3_backup_remaining() routine returns the number of pages still\n** to be backed up at the conclusion of the most recent sqlite3_backup_step().\n** ^The sqlite3_backup_pagecount() routine returns the total number of pages\n** in the source database at the conclusion of the most recent\n** sqlite3_backup_step().\n** ^(The values returned by these functions are only updated by\n** sqlite3_backup_step(). If the source database is modified in a way that\n** changes the size of the source database or the number of pages remaining,\n** those changes are not reflected in the output of sqlite3_backup_pagecount()\n** and sqlite3_backup_remaining() until after the next\n** sqlite3_backup_step().)^\n**\n** <b>Concurrent Usage of Database Handles</b>\n**\n** ^The source [database connection] may be used by the application for other\n** purposes while a backup operation is underway or being initialized.\n** ^If SQLite is compiled and configured to support threadsafe database\n** connections, then the source database connection may be used concurrently\n** from within other threads.\n**\n** However, the application must guarantee that the destination \n** [database connection] is not passed to any other API (by any thread) after \n** sqlite3_backup_init() is called and before the corresponding call to\n** sqlite3_backup_finish().  SQLite does not currently check to see\n** if the application incorrectly accesses the destination [database connection]\n** and so no error code is reported, but the operations may malfunction\n** nevertheless.  Use of the destination database connection while a\n** backup is in progress might also also cause a mutex deadlock.\n**\n** If running in [shared cache mode], the application must\n** guarantee that the shared cache used by the destination database\n** is not accessed while the backup is running. In practice this means\n** that the application must guarantee that the disk file being \n** backed up to is not accessed by any connection within the process,\n** not just the specific connection that was passed to sqlite3_backup_init().\n**\n** The [sqlite3_backup] object itself is partially threadsafe. Multiple \n** threads may safely make multiple concurrent calls to sqlite3_backup_step().\n** However, the sqlite3_backup_remaining() and sqlite3_backup_pagecount()\n** APIs are not strictly speaking threadsafe. If they are invoked at the\n** same time as another thread is invoking sqlite3_backup_step() it is\n** possible that they return invalid values.\n*/\nSQLITE_API sqlite3_backup *sqlite3_backup_init(\n  sqlite3 *pDest,                        /* Destination database handle */\n  const char *zDestName,                 /* Destination database name */\n  sqlite3 *pSource,                      /* Source database handle */\n  const char *zSourceName                /* Source database name */\n);\nSQLITE_API int sqlite3_backup_step(sqlite3_backup *p, int nPage);\nSQLITE_API int sqlite3_backup_finish(sqlite3_backup *p);\nSQLITE_API int sqlite3_backup_remaining(sqlite3_backup *p);\nSQLITE_API int sqlite3_backup_pagecount(sqlite3_backup *p);\n\n/*\n** CAPI3REF: Unlock Notification\n** METHOD: sqlite3\n**\n** ^When running in shared-cache mode, a database operation may fail with\n** an [SQLITE_LOCKED] error if the required locks on the shared-cache or\n** individual tables within the shared-cache cannot be obtained. See\n** [SQLite Shared-Cache Mode] for a description of shared-cache locking. \n** ^This API may be used to register a callback that SQLite will invoke \n** when the connection currently holding the required lock relinquishes it.\n** ^This API is only available if the library was compiled with the\n** [SQLITE_ENABLE_UNLOCK_NOTIFY] C-preprocessor symbol defined.\n**\n** See Also: [Using the SQLite Unlock Notification Feature].\n**\n** ^Shared-cache locks are released when a database connection concludes\n** its current transaction, either by committing it or rolling it back. \n**\n** ^When a connection (known as the blocked connection) fails to obtain a\n** shared-cache lock and SQLITE_LOCKED is returned to the caller, the\n** identity of the database connection (the blocking connection) that\n** has locked the required resource is stored internally. ^After an \n** application receives an SQLITE_LOCKED error, it may call the\n** sqlite3_unlock_notify() method with the blocked connection handle as \n** the first argument to register for a callback that will be invoked\n** when the blocking connections current transaction is concluded. ^The\n** callback is invoked from within the [sqlite3_step] or [sqlite3_close]\n** call that concludes the blocking connections transaction.\n**\n** ^(If sqlite3_unlock_notify() is called in a multi-threaded application,\n** there is a chance that the blocking connection will have already\n** concluded its transaction by the time sqlite3_unlock_notify() is invoked.\n** If this happens, then the specified callback is invoked immediately,\n** from within the call to sqlite3_unlock_notify().)^\n**\n** ^If the blocked connection is attempting to obtain a write-lock on a\n** shared-cache table, and more than one other connection currently holds\n** a read-lock on the same table, then SQLite arbitrarily selects one of \n** the other connections to use as the blocking connection.\n**\n** ^(There may be at most one unlock-notify callback registered by a \n** blocked connection. If sqlite3_unlock_notify() is called when the\n** blocked connection already has a registered unlock-notify callback,\n** then the new callback replaces the old.)^ ^If sqlite3_unlock_notify() is\n** called with a NULL pointer as its second argument, then any existing\n** unlock-notify callback is canceled. ^The blocked connections \n** unlock-notify callback may also be canceled by closing the blocked\n** connection using [sqlite3_close()].\n**\n** The unlock-notify callback is not reentrant. If an application invokes\n** any sqlite3_xxx API functions from within an unlock-notify callback, a\n** crash or deadlock may be the result.\n**\n** ^Unless deadlock is detected (see below), sqlite3_unlock_notify() always\n** returns SQLITE_OK.\n**\n** <b>Callback Invocation Details</b>\n**\n** When an unlock-notify callback is registered, the application provides a \n** single void* pointer that is passed to the callback when it is invoked.\n** However, the signature of the callback function allows SQLite to pass\n** it an array of void* context pointers. The first argument passed to\n** an unlock-notify callback is a pointer to an array of void* pointers,\n** and the second is the number of entries in the array.\n**\n** When a blocking connections transaction is concluded, there may be\n** more than one blocked connection that has registered for an unlock-notify\n** callback. ^If two or more such blocked connections have specified the\n** same callback function, then instead of invoking the callback function\n** multiple times, it is invoked once with the set of void* context pointers\n** specified by the blocked connections bundled together into an array.\n** This gives the application an opportunity to prioritize any actions \n** related to the set of unblocked database connections.\n**\n** <b>Deadlock Detection</b>\n**\n** Assuming that after registering for an unlock-notify callback a \n** database waits for the callback to be issued before taking any further\n** action (a reasonable assumption), then using this API may cause the\n** application to deadlock. For example, if connection X is waiting for\n** connection Y's transaction to be concluded, and similarly connection\n** Y is waiting on connection X's transaction, then neither connection\n** will proceed and the system may remain deadlocked indefinitely.\n**\n** To avoid this scenario, the sqlite3_unlock_notify() performs deadlock\n** detection. ^If a given call to sqlite3_unlock_notify() would put the\n** system in a deadlocked state, then SQLITE_LOCKED is returned and no\n** unlock-notify callback is registered. The system is said to be in\n** a deadlocked state if connection A has registered for an unlock-notify\n** callback on the conclusion of connection B's transaction, and connection\n** B has itself registered for an unlock-notify callback when connection\n** A's transaction is concluded. ^Indirect deadlock is also detected, so\n** the system is also considered to be deadlocked if connection B has\n** registered for an unlock-notify callback on the conclusion of connection\n** C's transaction, where connection C is waiting on connection A. ^Any\n** number of levels of indirection are allowed.\n**\n** <b>The \"DROP TABLE\" Exception</b>\n**\n** When a call to [sqlite3_step()] returns SQLITE_LOCKED, it is almost \n** always appropriate to call sqlite3_unlock_notify(). There is however,\n** one exception. When executing a \"DROP TABLE\" or \"DROP INDEX\" statement,\n** SQLite checks if there are any currently executing SELECT statements\n** that belong to the same connection. If there are, SQLITE_LOCKED is\n** returned. In this case there is no \"blocking connection\", so invoking\n** sqlite3_unlock_notify() results in the unlock-notify callback being\n** invoked immediately. If the application then re-attempts the \"DROP TABLE\"\n** or \"DROP INDEX\" query, an infinite loop might be the result.\n**\n** One way around this problem is to check the extended error code returned\n** by an sqlite3_step() call. ^(If there is a blocking connection, then the\n** extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in\n** the special \"DROP TABLE/INDEX\" case, the extended error code is just \n** SQLITE_LOCKED.)^\n*/\nSQLITE_API int sqlite3_unlock_notify(\n  sqlite3 *pBlocked,                          /* Waiting connection */\n  void (*xNotify)(void **apArg, int nArg),    /* Callback function to invoke */\n  void *pNotifyArg                            /* Argument to pass to xNotify */\n);\n\n\n/*\n** CAPI3REF: String Comparison\n**\n** ^The [sqlite3_stricmp()] and [sqlite3_strnicmp()] APIs allow applications\n** and extensions to compare the contents of two buffers containing UTF-8\n** strings in a case-independent fashion, using the same definition of \"case\n** independence\" that SQLite uses internally when comparing identifiers.\n*/\nSQLITE_API int sqlite3_stricmp(const char *, const char *);\nSQLITE_API int sqlite3_strnicmp(const char *, const char *, int);\n\n/*\n** CAPI3REF: String Globbing\n*\n** ^The [sqlite3_strglob(P,X)] interface returns zero if and only if\n** string X matches the [GLOB] pattern P.\n** ^The definition of [GLOB] pattern matching used in\n** [sqlite3_strglob(P,X)] is the same as for the \"X GLOB P\" operator in the\n** SQL dialect understood by SQLite.  ^The [sqlite3_strglob(P,X)] function\n** is case sensitive.\n**\n** Note that this routine returns zero on a match and non-zero if the strings\n** do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()].\n**\n** See also: [sqlite3_strlike()].\n*/\nSQLITE_API int sqlite3_strglob(const char *zGlob, const char *zStr);\n\n/*\n** CAPI3REF: String LIKE Matching\n*\n** ^The [sqlite3_strlike(P,X,E)] interface returns zero if and only if\n** string X matches the [LIKE] pattern P with escape character E.\n** ^The definition of [LIKE] pattern matching used in\n** [sqlite3_strlike(P,X,E)] is the same as for the \"X LIKE P ESCAPE E\"\n** operator in the SQL dialect understood by SQLite.  ^For \"X LIKE P\" without\n** the ESCAPE clause, set the E parameter of [sqlite3_strlike(P,X,E)] to 0.\n** ^As with the LIKE operator, the [sqlite3_strlike(P,X,E)] function is case\n** insensitive - equivalent upper and lower case ASCII characters match\n** one another.\n**\n** ^The [sqlite3_strlike(P,X,E)] function matches Unicode characters, though\n** only ASCII characters are case folded.\n**\n** Note that this routine returns zero on a match and non-zero if the strings\n** do not match, the same as [sqlite3_stricmp()] and [sqlite3_strnicmp()].\n**\n** See also: [sqlite3_strglob()].\n*/\nSQLITE_API int sqlite3_strlike(const char *zGlob, const char *zStr, unsigned int cEsc);\n\n/*\n** CAPI3REF: Error Logging Interface\n**\n** ^The [sqlite3_log()] interface writes a message into the [error log]\n** established by the [SQLITE_CONFIG_LOG] option to [sqlite3_config()].\n** ^If logging is enabled, the zFormat string and subsequent arguments are\n** used with [sqlite3_snprintf()] to generate the final output string.\n**\n** The sqlite3_log() interface is intended for use by extensions such as\n** virtual tables, collating functions, and SQL functions.  While there is\n** nothing to prevent an application from calling sqlite3_log(), doing so\n** is considered bad form.\n**\n** The zFormat string must not be NULL.\n**\n** To avoid deadlocks and other threading problems, the sqlite3_log() routine\n** will not use dynamically allocated memory.  The log message is stored in\n** a fixed-length buffer on the stack.  If the log message is longer than\n** a few hundred characters, it will be truncated to the length of the\n** buffer.\n*/\nSQLITE_API void sqlite3_log(int iErrCode, const char *zFormat, ...);\n\n/*\n** CAPI3REF: Write-Ahead Log Commit Hook\n** METHOD: sqlite3\n**\n** ^The [sqlite3_wal_hook()] function is used to register a callback that\n** is invoked each time data is committed to a database in wal mode.\n**\n** ^(The callback is invoked by SQLite after the commit has taken place and \n** the associated write-lock on the database released)^, so the implementation \n** may read, write or [checkpoint] the database as required.\n**\n** ^The first parameter passed to the callback function when it is invoked\n** is a copy of the third parameter passed to sqlite3_wal_hook() when\n** registering the callback. ^The second is a copy of the database handle.\n** ^The third parameter is the name of the database that was written to -\n** either \"main\" or the name of an [ATTACH]-ed database. ^The fourth parameter\n** is the number of pages currently in the write-ahead log file,\n** including those that were just committed.\n**\n** The callback function should normally return [SQLITE_OK].  ^If an error\n** code is returned, that error will propagate back up through the\n** SQLite code base to cause the statement that provoked the callback\n** to report an error, though the commit will have still occurred. If the\n** callback returns [SQLITE_ROW] or [SQLITE_DONE], or if it returns a value\n** that does not correspond to any valid SQLite error code, the results\n** are undefined.\n**\n** A single database handle may have at most a single write-ahead log callback \n** registered at one time. ^Calling [sqlite3_wal_hook()] replaces any\n** previously registered write-ahead log callback. ^Note that the\n** [sqlite3_wal_autocheckpoint()] interface and the\n** [wal_autocheckpoint pragma] both invoke [sqlite3_wal_hook()] and will\n** overwrite any prior [sqlite3_wal_hook()] settings.\n*/\nSQLITE_API void *sqlite3_wal_hook(\n  sqlite3*, \n  int(*)(void *,sqlite3*,const char*,int),\n  void*\n);\n\n/*\n** CAPI3REF: Configure an auto-checkpoint\n** METHOD: sqlite3\n**\n** ^The [sqlite3_wal_autocheckpoint(D,N)] is a wrapper around\n** [sqlite3_wal_hook()] that causes any database on [database connection] D\n** to automatically [checkpoint]\n** after committing a transaction if there are N or\n** more frames in the [write-ahead log] file.  ^Passing zero or \n** a negative value as the nFrame parameter disables automatic\n** checkpoints entirely.\n**\n** ^The callback registered by this function replaces any existing callback\n** registered using [sqlite3_wal_hook()].  ^Likewise, registering a callback\n** using [sqlite3_wal_hook()] disables the automatic checkpoint mechanism\n** configured by this function.\n**\n** ^The [wal_autocheckpoint pragma] can be used to invoke this interface\n** from SQL.\n**\n** ^Checkpoints initiated by this mechanism are\n** [sqlite3_wal_checkpoint_v2|PASSIVE].\n**\n** ^Every new [database connection] defaults to having the auto-checkpoint\n** enabled with a threshold of 1000 or [SQLITE_DEFAULT_WAL_AUTOCHECKPOINT]\n** pages.  The use of this interface\n** is only necessary if the default setting is found to be suboptimal\n** for a particular application.\n*/\nSQLITE_API int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);\n\n/*\n** CAPI3REF: Checkpoint a database\n** METHOD: sqlite3\n**\n** ^(The sqlite3_wal_checkpoint(D,X) is equivalent to\n** [sqlite3_wal_checkpoint_v2](D,X,[SQLITE_CHECKPOINT_PASSIVE],0,0).)^\n**\n** In brief, sqlite3_wal_checkpoint(D,X) causes the content in the \n** [write-ahead log] for database X on [database connection] D to be\n** transferred into the database file and for the write-ahead log to\n** be reset.  See the [checkpointing] documentation for addition\n** information.\n**\n** This interface used to be the only way to cause a checkpoint to\n** occur.  But then the newer and more powerful [sqlite3_wal_checkpoint_v2()]\n** interface was added.  This interface is retained for backwards\n** compatibility and as a convenience for applications that need to manually\n** start a callback but which do not need the full power (and corresponding\n** complication) of [sqlite3_wal_checkpoint_v2()].\n*/\nSQLITE_API int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);\n\n/*\n** CAPI3REF: Checkpoint a database\n** METHOD: sqlite3\n**\n** ^(The sqlite3_wal_checkpoint_v2(D,X,M,L,C) interface runs a checkpoint\n** operation on database X of [database connection] D in mode M.  Status\n** information is written back into integers pointed to by L and C.)^\n** ^(The M parameter must be a valid [checkpoint mode]:)^\n**\n** <dl>\n** <dt>SQLITE_CHECKPOINT_PASSIVE<dd>\n**   ^Checkpoint as many frames as possible without waiting for any database \n**   readers or writers to finish, then sync the database file if all frames \n**   in the log were checkpointed. ^The [busy-handler callback]\n**   is never invoked in the SQLITE_CHECKPOINT_PASSIVE mode.  \n**   ^On the other hand, passive mode might leave the checkpoint unfinished\n**   if there are concurrent readers or writers.\n**\n** <dt>SQLITE_CHECKPOINT_FULL<dd>\n**   ^This mode blocks (it invokes the\n**   [sqlite3_busy_handler|busy-handler callback]) until there is no\n**   database writer and all readers are reading from the most recent database\n**   snapshot. ^It then checkpoints all frames in the log file and syncs the\n**   database file. ^This mode blocks new database writers while it is pending,\n**   but new database readers are allowed to continue unimpeded.\n**\n** <dt>SQLITE_CHECKPOINT_RESTART<dd>\n**   ^This mode works the same way as SQLITE_CHECKPOINT_FULL with the addition\n**   that after checkpointing the log file it blocks (calls the \n**   [busy-handler callback])\n**   until all readers are reading from the database file only. ^This ensures \n**   that the next writer will restart the log file from the beginning.\n**   ^Like SQLITE_CHECKPOINT_FULL, this mode blocks new\n**   database writer attempts while it is pending, but does not impede readers.\n**\n** <dt>SQLITE_CHECKPOINT_TRUNCATE<dd>\n**   ^This mode works the same way as SQLITE_CHECKPOINT_RESTART with the\n**   addition that it also truncates the log file to zero bytes just prior\n**   to a successful return.\n** </dl>\n**\n** ^If pnLog is not NULL, then *pnLog is set to the total number of frames in\n** the log file or to -1 if the checkpoint could not run because\n** of an error or because the database is not in [WAL mode]. ^If pnCkpt is not\n** NULL,then *pnCkpt is set to the total number of checkpointed frames in the\n** log file (including any that were already checkpointed before the function\n** was called) or to -1 if the checkpoint could not run due to an error or\n** because the database is not in WAL mode. ^Note that upon successful\n** completion of an SQLITE_CHECKPOINT_TRUNCATE, the log file will have been\n** truncated to zero bytes and so both *pnLog and *pnCkpt will be set to zero.\n**\n** ^All calls obtain an exclusive \"checkpoint\" lock on the database file. ^If\n** any other process is running a checkpoint operation at the same time, the \n** lock cannot be obtained and SQLITE_BUSY is returned. ^Even if there is a \n** busy-handler configured, it will not be invoked in this case.\n**\n** ^The SQLITE_CHECKPOINT_FULL, RESTART and TRUNCATE modes also obtain the \n** exclusive \"writer\" lock on the database file. ^If the writer lock cannot be\n** obtained immediately, and a busy-handler is configured, it is invoked and\n** the writer lock retried until either the busy-handler returns 0 or the lock\n** is successfully obtained. ^The busy-handler is also invoked while waiting for\n** database readers as described above. ^If the busy-handler returns 0 before\n** the writer lock is obtained or while waiting for database readers, the\n** checkpoint operation proceeds from that point in the same way as \n** SQLITE_CHECKPOINT_PASSIVE - checkpointing as many frames as possible \n** without blocking any further. ^SQLITE_BUSY is returned in this case.\n**\n** ^If parameter zDb is NULL or points to a zero length string, then the\n** specified operation is attempted on all WAL databases [attached] to \n** [database connection] db.  In this case the\n** values written to output parameters *pnLog and *pnCkpt are undefined. ^If \n** an SQLITE_BUSY error is encountered when processing one or more of the \n** attached WAL databases, the operation is still attempted on any remaining \n** attached databases and SQLITE_BUSY is returned at the end. ^If any other \n** error occurs while processing an attached database, processing is abandoned \n** and the error code is returned to the caller immediately. ^If no error \n** (SQLITE_BUSY or otherwise) is encountered while processing the attached \n** databases, SQLITE_OK is returned.\n**\n** ^If database zDb is the name of an attached database that is not in WAL\n** mode, SQLITE_OK is returned and both *pnLog and *pnCkpt set to -1. ^If\n** zDb is not NULL (or a zero length string) and is not the name of any\n** attached database, SQLITE_ERROR is returned to the caller.\n**\n** ^Unless it returns SQLITE_MISUSE,\n** the sqlite3_wal_checkpoint_v2() interface\n** sets the error information that is queried by\n** [sqlite3_errcode()] and [sqlite3_errmsg()].\n**\n** ^The [PRAGMA wal_checkpoint] command can be used to invoke this interface\n** from SQL.\n*/\nSQLITE_API int sqlite3_wal_checkpoint_v2(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of attached database (or NULL) */\n  int eMode,                      /* SQLITE_CHECKPOINT_* value */\n  int *pnLog,                     /* OUT: Size of WAL log in frames */\n  int *pnCkpt                     /* OUT: Total number of frames checkpointed */\n);\n\n/*\n** CAPI3REF: Checkpoint Mode Values\n** KEYWORDS: {checkpoint mode}\n**\n** These constants define all valid values for the \"checkpoint mode\" passed\n** as the third parameter to the [sqlite3_wal_checkpoint_v2()] interface.\n** See the [sqlite3_wal_checkpoint_v2()] documentation for details on the\n** meaning of each of these checkpoint modes.\n*/\n#define SQLITE_CHECKPOINT_PASSIVE  0  /* Do as much as possible w/o blocking */\n#define SQLITE_CHECKPOINT_FULL     1  /* Wait for writers, then checkpoint */\n#define SQLITE_CHECKPOINT_RESTART  2  /* Like FULL but wait for for readers */\n#define SQLITE_CHECKPOINT_TRUNCATE 3  /* Like RESTART but also truncate WAL */\n\n/*\n** CAPI3REF: Virtual Table Interface Configuration\n**\n** This function may be called by either the [xConnect] or [xCreate] method\n** of a [virtual table] implementation to configure\n** various facets of the virtual table interface.\n**\n** If this interface is invoked outside the context of an xConnect or\n** xCreate virtual table method then the behavior is undefined.\n**\n** At present, there is only one option that may be configured using\n** this function. (See [SQLITE_VTAB_CONSTRAINT_SUPPORT].)  Further options\n** may be added in the future.\n*/\nSQLITE_API int sqlite3_vtab_config(sqlite3*, int op, ...);\n\n/*\n** CAPI3REF: Virtual Table Configuration Options\n**\n** These macros define the various options to the\n** [sqlite3_vtab_config()] interface that [virtual table] implementations\n** can use to customize and optimize their behavior.\n**\n** <dl>\n** <dt>SQLITE_VTAB_CONSTRAINT_SUPPORT\n** <dd>Calls of the form\n** [sqlite3_vtab_config](db,SQLITE_VTAB_CONSTRAINT_SUPPORT,X) are supported,\n** where X is an integer.  If X is zero, then the [virtual table] whose\n** [xCreate] or [xConnect] method invoked [sqlite3_vtab_config()] does not\n** support constraints.  In this configuration (which is the default) if\n** a call to the [xUpdate] method returns [SQLITE_CONSTRAINT], then the entire\n** statement is rolled back as if [ON CONFLICT | OR ABORT] had been\n** specified as part of the users SQL statement, regardless of the actual\n** ON CONFLICT mode specified.\n**\n** If X is non-zero, then the virtual table implementation guarantees\n** that if [xUpdate] returns [SQLITE_CONSTRAINT], it will do so before\n** any modifications to internal or persistent data structures have been made.\n** If the [ON CONFLICT] mode is ABORT, FAIL, IGNORE or ROLLBACK, SQLite \n** is able to roll back a statement or database transaction, and abandon\n** or continue processing the current SQL statement as appropriate. \n** If the ON CONFLICT mode is REPLACE and the [xUpdate] method returns\n** [SQLITE_CONSTRAINT], SQLite handles this as if the ON CONFLICT mode\n** had been ABORT.\n**\n** Virtual table implementations that are required to handle OR REPLACE\n** must do so within the [xUpdate] method. If a call to the \n** [sqlite3_vtab_on_conflict()] function indicates that the current ON \n** CONFLICT policy is REPLACE, the virtual table implementation should \n** silently replace the appropriate rows within the xUpdate callback and\n** return SQLITE_OK. Or, if this is not possible, it may return\n** SQLITE_CONSTRAINT, in which case SQLite falls back to OR ABORT \n** constraint handling.\n** </dl>\n*/\n#define SQLITE_VTAB_CONSTRAINT_SUPPORT 1\n\n/*\n** CAPI3REF: Determine The Virtual Table Conflict Policy\n**\n** This function may only be called from within a call to the [xUpdate] method\n** of a [virtual table] implementation for an INSERT or UPDATE operation. ^The\n** value returned is one of [SQLITE_ROLLBACK], [SQLITE_IGNORE], [SQLITE_FAIL],\n** [SQLITE_ABORT], or [SQLITE_REPLACE], according to the [ON CONFLICT] mode\n** of the SQL statement that triggered the call to the [xUpdate] method of the\n** [virtual table].\n*/\nSQLITE_API int sqlite3_vtab_on_conflict(sqlite3 *);\n\n/*\n** CAPI3REF: Determine If Virtual Table Column Access Is For UPDATE\n**\n** If the sqlite3_vtab_nochange(X) routine is called within the [xColumn]\n** method of a [virtual table], then it returns true if and only if the\n** column is being fetched as part of an UPDATE operation during which the\n** column value will not change.  Applications might use this to substitute\n** a lighter-weight value to return that the corresponding [xUpdate] method\n** understands as a \"no-change\" value.\n**\n** If the [xColumn] method calls sqlite3_vtab_nochange() and finds that\n** the column is not changed by the UPDATE statement, they the xColumn\n** method can optionally return without setting a result, without calling\n** any of the [sqlite3_result_int|sqlite3_result_xxxxx() interfaces].\n** In that case, [sqlite3_value_nochange(X)] will return true for the\n** same column in the [xUpdate] method.\n*/\nSQLITE_API int sqlite3_vtab_nochange(sqlite3_context*);\n\n/*\n** CAPI3REF: Determine The Collation For a Virtual Table Constraint\n**\n** This function may only be called from within a call to the [xBestIndex]\n** method of a [virtual table]. \n**\n** The first argument must be the sqlite3_index_info object that is the\n** first parameter to the xBestIndex() method. The second argument must be\n** an index into the aConstraint[] array belonging to the sqlite3_index_info\n** structure passed to xBestIndex. This function returns a pointer to a buffer \n** containing the name of the collation sequence for the corresponding\n** constraint.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL const char *sqlite3_vtab_collation(sqlite3_index_info*,int);\n\n/*\n** CAPI3REF: Conflict resolution modes\n** KEYWORDS: {conflict resolution mode}\n**\n** These constants are returned by [sqlite3_vtab_on_conflict()] to\n** inform a [virtual table] implementation what the [ON CONFLICT] mode\n** is for the SQL statement being evaluated.\n**\n** Note that the [SQLITE_IGNORE] constant is also used as a potential\n** return value from the [sqlite3_set_authorizer()] callback and that\n** [SQLITE_ABORT] is also a [result code].\n*/\n#define SQLITE_ROLLBACK 1\n/* #define SQLITE_IGNORE 2 // Also used by sqlite3_authorizer() callback */\n#define SQLITE_FAIL     3\n/* #define SQLITE_ABORT 4  // Also an error code */\n#define SQLITE_REPLACE  5\n\n/*\n** CAPI3REF: Prepared Statement Scan Status Opcodes\n** KEYWORDS: {scanstatus options}\n**\n** The following constants can be used for the T parameter to the\n** [sqlite3_stmt_scanstatus(S,X,T,V)] interface.  Each constant designates a\n** different metric for sqlite3_stmt_scanstatus() to return.\n**\n** When the value returned to V is a string, space to hold that string is\n** managed by the prepared statement S and will be automatically freed when\n** S is finalized.\n**\n** <dl>\n** [[SQLITE_SCANSTAT_NLOOP]] <dt>SQLITE_SCANSTAT_NLOOP</dt>\n** <dd>^The [sqlite3_int64] variable pointed to by the T parameter will be\n** set to the total number of times that the X-th loop has run.</dd>\n**\n** [[SQLITE_SCANSTAT_NVISIT]] <dt>SQLITE_SCANSTAT_NVISIT</dt>\n** <dd>^The [sqlite3_int64] variable pointed to by the T parameter will be set\n** to the total number of rows examined by all iterations of the X-th loop.</dd>\n**\n** [[SQLITE_SCANSTAT_EST]] <dt>SQLITE_SCANSTAT_EST</dt>\n** <dd>^The \"double\" variable pointed to by the T parameter will be set to the\n** query planner's estimate for the average number of rows output from each\n** iteration of the X-th loop.  If the query planner's estimates was accurate,\n** then this value will approximate the quotient NVISIT/NLOOP and the\n** product of this value for all prior loops with the same SELECTID will\n** be the NLOOP value for the current loop.\n**\n** [[SQLITE_SCANSTAT_NAME]] <dt>SQLITE_SCANSTAT_NAME</dt>\n** <dd>^The \"const char *\" variable pointed to by the T parameter will be set\n** to a zero-terminated UTF-8 string containing the name of the index or table\n** used for the X-th loop.\n**\n** [[SQLITE_SCANSTAT_EXPLAIN]] <dt>SQLITE_SCANSTAT_EXPLAIN</dt>\n** <dd>^The \"const char *\" variable pointed to by the T parameter will be set\n** to a zero-terminated UTF-8 string containing the [EXPLAIN QUERY PLAN]\n** description for the X-th loop.\n**\n** [[SQLITE_SCANSTAT_SELECTID]] <dt>SQLITE_SCANSTAT_SELECT</dt>\n** <dd>^The \"int\" variable pointed to by the T parameter will be set to the\n** \"select-id\" for the X-th loop.  The select-id identifies which query or\n** subquery the loop is part of.  The main query has a select-id of zero.\n** The select-id is the same value as is output in the first column\n** of an [EXPLAIN QUERY PLAN] query.\n** </dl>\n*/\n#define SQLITE_SCANSTAT_NLOOP    0\n#define SQLITE_SCANSTAT_NVISIT   1\n#define SQLITE_SCANSTAT_EST      2\n#define SQLITE_SCANSTAT_NAME     3\n#define SQLITE_SCANSTAT_EXPLAIN  4\n#define SQLITE_SCANSTAT_SELECTID 5\n\n/*\n** CAPI3REF: Prepared Statement Scan Status\n** METHOD: sqlite3_stmt\n**\n** This interface returns information about the predicted and measured\n** performance for pStmt.  Advanced applications can use this\n** interface to compare the predicted and the measured performance and\n** issue warnings and/or rerun [ANALYZE] if discrepancies are found.\n**\n** Since this interface is expected to be rarely used, it is only\n** available if SQLite is compiled using the [SQLITE_ENABLE_STMT_SCANSTATUS]\n** compile-time option.\n**\n** The \"iScanStatusOp\" parameter determines which status information to return.\n** The \"iScanStatusOp\" must be one of the [scanstatus options] or the behavior\n** of this interface is undefined.\n** ^The requested measurement is written into a variable pointed to by\n** the \"pOut\" parameter.\n** Parameter \"idx\" identifies the specific loop to retrieve statistics for.\n** Loops are numbered starting from zero. ^If idx is out of range - less than\n** zero or greater than or equal to the total number of loops used to implement\n** the statement - a non-zero value is returned and the variable that pOut\n** points to is unchanged.\n**\n** ^Statistics might not be available for all loops in all statements. ^In cases\n** where there exist loops with no available statistics, this function behaves\n** as if the loop did not exist - it returns non-zero and leave the variable\n** that pOut points to unchanged.\n**\n** See also: [sqlite3_stmt_scanstatus_reset()]\n*/\nSQLITE_API int sqlite3_stmt_scanstatus(\n  sqlite3_stmt *pStmt,      /* Prepared statement for which info desired */\n  int idx,                  /* Index of loop to report on */\n  int iScanStatusOp,        /* Information desired.  SQLITE_SCANSTAT_* */\n  void *pOut                /* Result written here */\n);     \n\n/*\n** CAPI3REF: Zero Scan-Status Counters\n** METHOD: sqlite3_stmt\n**\n** ^Zero all [sqlite3_stmt_scanstatus()] related event counters.\n**\n** This API is only available if the library is built with pre-processor\n** symbol [SQLITE_ENABLE_STMT_SCANSTATUS] defined.\n*/\nSQLITE_API void sqlite3_stmt_scanstatus_reset(sqlite3_stmt*);\n\n/*\n** CAPI3REF: Flush caches to disk mid-transaction\n**\n** ^If a write-transaction is open on [database connection] D when the\n** [sqlite3_db_cacheflush(D)] interface invoked, any dirty\n** pages in the pager-cache that are not currently in use are written out \n** to disk. A dirty page may be in use if a database cursor created by an\n** active SQL statement is reading from it, or if it is page 1 of a database\n** file (page 1 is always \"in use\").  ^The [sqlite3_db_cacheflush(D)]\n** interface flushes caches for all schemas - \"main\", \"temp\", and\n** any [attached] databases.\n**\n** ^If this function needs to obtain extra database locks before dirty pages \n** can be flushed to disk, it does so. ^If those locks cannot be obtained \n** immediately and there is a busy-handler callback configured, it is invoked\n** in the usual manner. ^If the required lock still cannot be obtained, then\n** the database is skipped and an attempt made to flush any dirty pages\n** belonging to the next (if any) database. ^If any databases are skipped\n** because locks cannot be obtained, but no other error occurs, this\n** function returns SQLITE_BUSY.\n**\n** ^If any other error occurs while flushing dirty pages to disk (for\n** example an IO error or out-of-memory condition), then processing is\n** abandoned and an SQLite [error code] is returned to the caller immediately.\n**\n** ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK.\n**\n** ^This function does not set the database handle error code or message\n** returned by the [sqlite3_errcode()] and [sqlite3_errmsg()] functions.\n*/\nSQLITE_API int sqlite3_db_cacheflush(sqlite3*);\n\n/*\n** CAPI3REF: The pre-update hook.\n**\n** ^These interfaces are only available if SQLite is compiled using the\n** [SQLITE_ENABLE_PREUPDATE_HOOK] compile-time option.\n**\n** ^The [sqlite3_preupdate_hook()] interface registers a callback function\n** that is invoked prior to each [INSERT], [UPDATE], and [DELETE] operation\n** on a database table.\n** ^At most one preupdate hook may be registered at a time on a single\n** [database connection]; each call to [sqlite3_preupdate_hook()] overrides\n** the previous setting.\n** ^The preupdate hook is disabled by invoking [sqlite3_preupdate_hook()]\n** with a NULL pointer as the second parameter.\n** ^The third parameter to [sqlite3_preupdate_hook()] is passed through as\n** the first parameter to callbacks.\n**\n** ^The preupdate hook only fires for changes to real database tables; the\n** preupdate hook is not invoked for changes to [virtual tables] or to\n** system tables like sqlite_master or sqlite_stat1.\n**\n** ^The second parameter to the preupdate callback is a pointer to\n** the [database connection] that registered the preupdate hook.\n** ^The third parameter to the preupdate callback is one of the constants\n** [SQLITE_INSERT], [SQLITE_DELETE], or [SQLITE_UPDATE] to identify the\n** kind of update operation that is about to occur.\n** ^(The fourth parameter to the preupdate callback is the name of the\n** database within the database connection that is being modified.  This\n** will be \"main\" for the main database or \"temp\" for TEMP tables or \n** the name given after the AS keyword in the [ATTACH] statement for attached\n** databases.)^\n** ^The fifth parameter to the preupdate callback is the name of the\n** table that is being modified.\n**\n** For an UPDATE or DELETE operation on a [rowid table], the sixth\n** parameter passed to the preupdate callback is the initial [rowid] of the \n** row being modified or deleted. For an INSERT operation on a rowid table,\n** or any operation on a WITHOUT ROWID table, the value of the sixth \n** parameter is undefined. For an INSERT or UPDATE on a rowid table the\n** seventh parameter is the final rowid value of the row being inserted\n** or updated. The value of the seventh parameter passed to the callback\n** function is not defined for operations on WITHOUT ROWID tables, or for\n** INSERT operations on rowid tables.\n**\n** The [sqlite3_preupdate_old()], [sqlite3_preupdate_new()],\n** [sqlite3_preupdate_count()], and [sqlite3_preupdate_depth()] interfaces\n** provide additional information about a preupdate event. These routines\n** may only be called from within a preupdate callback.  Invoking any of\n** these routines from outside of a preupdate callback or with a\n** [database connection] pointer that is different from the one supplied\n** to the preupdate callback results in undefined and probably undesirable\n** behavior.\n**\n** ^The [sqlite3_preupdate_count(D)] interface returns the number of columns\n** in the row that is being inserted, updated, or deleted.\n**\n** ^The [sqlite3_preupdate_old(D,N,P)] interface writes into P a pointer to\n** a [protected sqlite3_value] that contains the value of the Nth column of\n** the table row before it is updated.  The N parameter must be between 0\n** and one less than the number of columns or the behavior will be\n** undefined. This must only be used within SQLITE_UPDATE and SQLITE_DELETE\n** preupdate callbacks; if it is used by an SQLITE_INSERT callback then the\n** behavior is undefined.  The [sqlite3_value] that P points to\n** will be destroyed when the preupdate callback returns.\n**\n** ^The [sqlite3_preupdate_new(D,N,P)] interface writes into P a pointer to\n** a [protected sqlite3_value] that contains the value of the Nth column of\n** the table row after it is updated.  The N parameter must be between 0\n** and one less than the number of columns or the behavior will be\n** undefined. This must only be used within SQLITE_INSERT and SQLITE_UPDATE\n** preupdate callbacks; if it is used by an SQLITE_DELETE callback then the\n** behavior is undefined.  The [sqlite3_value] that P points to\n** will be destroyed when the preupdate callback returns.\n**\n** ^The [sqlite3_preupdate_depth(D)] interface returns 0 if the preupdate\n** callback was invoked as a result of a direct insert, update, or delete\n** operation; or 1 for inserts, updates, or deletes invoked by top-level \n** triggers; or 2 for changes resulting from triggers called by top-level\n** triggers; and so forth.\n**\n** See also:  [sqlite3_update_hook()]\n*/\n#if defined(SQLITE_ENABLE_PREUPDATE_HOOK)\nSQLITE_API void *sqlite3_preupdate_hook(\n  sqlite3 *db,\n  void(*xPreUpdate)(\n    void *pCtx,                   /* Copy of third arg to preupdate_hook() */\n    sqlite3 *db,                  /* Database handle */\n    int op,                       /* SQLITE_UPDATE, DELETE or INSERT */\n    char const *zDb,              /* Database name */\n    char const *zName,            /* Table name */\n    sqlite3_int64 iKey1,          /* Rowid of row about to be deleted/updated */\n    sqlite3_int64 iKey2           /* New rowid value (for a rowid UPDATE) */\n  ),\n  void*\n);\nSQLITE_API int sqlite3_preupdate_old(sqlite3 *, int, sqlite3_value **);\nSQLITE_API int sqlite3_preupdate_count(sqlite3 *);\nSQLITE_API int sqlite3_preupdate_depth(sqlite3 *);\nSQLITE_API int sqlite3_preupdate_new(sqlite3 *, int, sqlite3_value **);\n#endif\n\n/*\n** CAPI3REF: Low-level system error code\n**\n** ^Attempt to return the underlying operating system error code or error\n** number that caused the most recent I/O error or failure to open a file.\n** The return value is OS-dependent.  For example, on unix systems, after\n** [sqlite3_open_v2()] returns [SQLITE_CANTOPEN], this interface could be\n** called to get back the underlying \"errno\" that caused the problem, such\n** as ENOSPC, EAUTH, EISDIR, and so forth.  \n*/\nSQLITE_API int sqlite3_system_errno(sqlite3*);\n\n/*\n** CAPI3REF: Database Snapshot\n** KEYWORDS: {snapshot} {sqlite3_snapshot}\n** EXPERIMENTAL\n**\n** An instance of the snapshot object records the state of a [WAL mode]\n** database for some specific point in history.\n**\n** In [WAL mode], multiple [database connections] that are open on the\n** same database file can each be reading a different historical version\n** of the database file.  When a [database connection] begins a read\n** transaction, that connection sees an unchanging copy of the database\n** as it existed for the point in time when the transaction first started.\n** Subsequent changes to the database from other connections are not seen\n** by the reader until a new read transaction is started.\n**\n** The sqlite3_snapshot object records state information about an historical\n** version of the database file so that it is possible to later open a new read\n** transaction that sees that historical version of the database rather than\n** the most recent version.\n**\n** The constructor for this object is [sqlite3_snapshot_get()].  The\n** [sqlite3_snapshot_open()] method causes a fresh read transaction to refer\n** to an historical snapshot (if possible).  The destructor for \n** sqlite3_snapshot objects is [sqlite3_snapshot_free()].\n*/\ntypedef struct sqlite3_snapshot {\n  unsigned char hidden[48];\n} sqlite3_snapshot;\n\n/*\n** CAPI3REF: Record A Database Snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_get(D,S,P)] interface attempts to make a\n** new [sqlite3_snapshot] object that records the current state of\n** schema S in database connection D.  ^On success, the\n** [sqlite3_snapshot_get(D,S,P)] interface writes a pointer to the newly\n** created [sqlite3_snapshot] object into *P and returns SQLITE_OK.\n** If there is not already a read-transaction open on schema S when\n** this function is called, one is opened automatically. \n**\n** The following must be true for this function to succeed. If any of\n** the following statements are false when sqlite3_snapshot_get() is\n** called, SQLITE_ERROR is returned. The final value of *P is undefined\n** in this case. \n**\n** <ul>\n**   <li> The database handle must be in [autocommit mode].\n**\n**   <li> Schema S of [database connection] D must be a [WAL mode] database.\n**\n**   <li> There must not be a write transaction open on schema S of database\n**        connection D.\n**\n**   <li> One or more transactions must have been written to the current wal\n**        file since it was created on disk (by any connection). This means\n**        that a snapshot cannot be taken on a wal mode database with no wal \n**        file immediately after it is first opened. At least one transaction\n**        must be written to it first.\n** </ul>\n**\n** This function may also return SQLITE_NOMEM.  If it is called with the\n** database handle in autocommit mode but fails for some other reason, \n** whether or not a read transaction is opened on schema S is undefined.\n**\n** The [sqlite3_snapshot] object returned from a successful call to\n** [sqlite3_snapshot_get()] must be freed using [sqlite3_snapshot_free()]\n** to avoid a memory leak.\n**\n** The [sqlite3_snapshot_get()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_get(\n  sqlite3 *db,\n  const char *zSchema,\n  sqlite3_snapshot **ppSnapshot\n);\n\n/*\n** CAPI3REF: Start a read transaction on an historical snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_open(D,S,P)] interface starts a\n** read transaction for schema S of\n** [database connection] D such that the read transaction\n** refers to historical [snapshot] P, rather than the most\n** recent change to the database.\n** ^The [sqlite3_snapshot_open()] interface returns SQLITE_OK on success\n** or an appropriate [error code] if it fails.\n**\n** ^In order to succeed, a call to [sqlite3_snapshot_open(D,S,P)] must be\n** the first operation following the [BEGIN] that takes the schema S\n** out of [autocommit mode].\n** ^In other words, schema S must not currently be in\n** a transaction for [sqlite3_snapshot_open(D,S,P)] to work, but the\n** database connection D must be out of [autocommit mode].\n** ^A [snapshot] will fail to open if it has been overwritten by a\n** [checkpoint].\n** ^(A call to [sqlite3_snapshot_open(D,S,P)] will fail if the\n** database connection D does not know that the database file for\n** schema S is in [WAL mode].  A database connection might not know\n** that the database file is in [WAL mode] if there has been no prior\n** I/O on that database connection, or if the database entered [WAL mode] \n** after the most recent I/O on the database connection.)^\n** (Hint: Run \"[PRAGMA application_id]\" against a newly opened\n** database connection in order to make it ready to use snapshots.)\n**\n** The [sqlite3_snapshot_open()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_open(\n  sqlite3 *db,\n  const char *zSchema,\n  sqlite3_snapshot *pSnapshot\n);\n\n/*\n** CAPI3REF: Destroy a snapshot\n** EXPERIMENTAL\n**\n** ^The [sqlite3_snapshot_free(P)] interface destroys [sqlite3_snapshot] P.\n** The application must eventually free every [sqlite3_snapshot] object\n** using this routine to avoid a memory leak.\n**\n** The [sqlite3_snapshot_free()] interface is only available when the\n** SQLITE_ENABLE_SNAPSHOT compile-time option is used.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL void sqlite3_snapshot_free(sqlite3_snapshot*);\n\n/*\n** CAPI3REF: Compare the ages of two snapshot handles.\n** EXPERIMENTAL\n**\n** The sqlite3_snapshot_cmp(P1, P2) interface is used to compare the ages\n** of two valid snapshot handles. \n**\n** If the two snapshot handles are not associated with the same database \n** file, the result of the comparison is undefined. \n**\n** Additionally, the result of the comparison is only valid if both of the\n** snapshot handles were obtained by calling sqlite3_snapshot_get() since the\n** last time the wal file was deleted. The wal file is deleted when the\n** database is changed back to rollback mode or when the number of database\n** clients drops to zero. If either snapshot handle was obtained before the \n** wal file was last deleted, the value returned by this function \n** is undefined.\n**\n** Otherwise, this API returns a negative value if P1 refers to an older\n** snapshot than P2, zero if the two handles refer to the same database\n** snapshot, and a positive value if P1 is a newer snapshot than P2.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_cmp(\n  sqlite3_snapshot *p1,\n  sqlite3_snapshot *p2\n);\n\n/*\n** CAPI3REF: Recover snapshots from a wal file\n** EXPERIMENTAL\n**\n** If all connections disconnect from a database file but do not perform\n** a checkpoint, the existing wal file is opened along with the database\n** file the next time the database is opened. At this point it is only\n** possible to successfully call sqlite3_snapshot_open() to open the most\n** recent snapshot of the database (the one at the head of the wal file),\n** even though the wal file may contain other valid snapshots for which\n** clients have sqlite3_snapshot handles.\n**\n** This function attempts to scan the wal file associated with database zDb\n** of database handle db and make all valid snapshots available to\n** sqlite3_snapshot_open(). It is an error if there is already a read\n** transaction open on the database, or if the database is not a wal mode\n** database.\n**\n** SQLITE_OK is returned if successful, or an SQLite error code otherwise.\n*/\nSQLITE_API SQLITE_EXPERIMENTAL int sqlite3_snapshot_recover(sqlite3 *db, const char *zDb);\n\n/*\n** Undo the hack that converts floating point types to integer for\n** builds on processors without floating point support.\n*/\n#ifdef SQLITE_OMIT_FLOATING_POINT\n# undef double\n#endif\n\n#ifdef __cplusplus\n}  /* End of the 'extern \"C\"' block */\n#endif\n#endif /* SQLITE3_H */\n\n/******** Begin file sqlite3rtree.h *********/\n/*\n** 2010 August 30\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n*/\n\n#ifndef _SQLITE3RTREE_H_\n#define _SQLITE3RTREE_H_\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct sqlite3_rtree_geometry sqlite3_rtree_geometry;\ntypedef struct sqlite3_rtree_query_info sqlite3_rtree_query_info;\n\n/* The double-precision datatype used by RTree depends on the\n** SQLITE_RTREE_INT_ONLY compile-time option.\n*/\n#ifdef SQLITE_RTREE_INT_ONLY\n  typedef sqlite3_int64 sqlite3_rtree_dbl;\n#else\n  typedef double sqlite3_rtree_dbl;\n#endif\n\n/*\n** Register a geometry callback named zGeom that can be used as part of an\n** R-Tree geometry query as follows:\n**\n**   SELECT ... FROM <rtree> WHERE <rtree col> MATCH $zGeom(... params ...)\n*/\nSQLITE_API int sqlite3_rtree_geometry_callback(\n  sqlite3 *db,\n  const char *zGeom,\n  int (*xGeom)(sqlite3_rtree_geometry*, int, sqlite3_rtree_dbl*,int*),\n  void *pContext\n);\n\n\n/*\n** A pointer to a structure of the following type is passed as the first\n** argument to callbacks registered using rtree_geometry_callback().\n*/\nstruct sqlite3_rtree_geometry {\n  void *pContext;                 /* Copy of pContext passed to s_r_g_c() */\n  int nParam;                     /* Size of array aParam[] */\n  sqlite3_rtree_dbl *aParam;      /* Parameters passed to SQL geom function */\n  void *pUser;                    /* Callback implementation user data */\n  void (*xDelUser)(void *);       /* Called by SQLite to clean up pUser */\n};\n\n/*\n** Register a 2nd-generation geometry callback named zScore that can be \n** used as part of an R-Tree geometry query as follows:\n**\n**   SELECT ... FROM <rtree> WHERE <rtree col> MATCH $zQueryFunc(... params ...)\n*/\nSQLITE_API int sqlite3_rtree_query_callback(\n  sqlite3 *db,\n  const char *zQueryFunc,\n  int (*xQueryFunc)(sqlite3_rtree_query_info*),\n  void *pContext,\n  void (*xDestructor)(void*)\n);\n\n\n/*\n** A pointer to a structure of the following type is passed as the \n** argument to scored geometry callback registered using\n** sqlite3_rtree_query_callback().\n**\n** Note that the first 5 fields of this structure are identical to\n** sqlite3_rtree_geometry.  This structure is a subclass of\n** sqlite3_rtree_geometry.\n*/\nstruct sqlite3_rtree_query_info {\n  void *pContext;                   /* pContext from when function registered */\n  int nParam;                       /* Number of function parameters */\n  sqlite3_rtree_dbl *aParam;        /* value of function parameters */\n  void *pUser;                      /* callback can use this, if desired */\n  void (*xDelUser)(void*);          /* function to free pUser */\n  sqlite3_rtree_dbl *aCoord;        /* Coordinates of node or entry to check */\n  unsigned int *anQueue;            /* Number of pending entries in the queue */\n  int nCoord;                       /* Number of coordinates */\n  int iLevel;                       /* Level of current node or entry */\n  int mxLevel;                      /* The largest iLevel value in the tree */\n  sqlite3_int64 iRowid;             /* Rowid for current entry */\n  sqlite3_rtree_dbl rParentScore;   /* Score of parent node */\n  int eParentWithin;                /* Visibility of parent node */\n  int eWithin;                      /* OUT: Visiblity */\n  sqlite3_rtree_dbl rScore;         /* OUT: Write the score here */\n  /* The following fields are only available in 3.8.11 and later */\n  sqlite3_value **apSqlParam;       /* Original SQL values of parameters */\n};\n\n/*\n** Allowed values for sqlite3_rtree_query.eWithin and .eParentWithin.\n*/\n#define NOT_WITHIN       0   /* Object completely outside of query region */\n#define PARTLY_WITHIN    1   /* Object partially overlaps query region */\n#define FULLY_WITHIN     2   /* Object fully contained within query region */\n\n\n#ifdef __cplusplus\n}  /* end of the 'extern \"C\"' block */\n#endif\n\n#endif  /* ifndef _SQLITE3RTREE_H_ */\n\n/******** End of sqlite3rtree.h *********/\n/******** Begin file sqlite3session.h *********/\n\n#if !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION)\n#define __SQLITESESSION_H_ 1\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n\n/*\n** CAPI3REF: Session Object Handle\n*/\ntypedef struct sqlite3_session sqlite3_session;\n\n/*\n** CAPI3REF: Changeset Iterator Handle\n*/\ntypedef struct sqlite3_changeset_iter sqlite3_changeset_iter;\n\n/*\n** CAPI3REF: Create A New Session Object\n**\n** Create a new session object attached to database handle db. If successful,\n** a pointer to the new object is written to *ppSession and SQLITE_OK is\n** returned. If an error occurs, *ppSession is set to NULL and an SQLite\n** error code (e.g. SQLITE_NOMEM) is returned.\n**\n** It is possible to create multiple session objects attached to a single\n** database handle.\n**\n** Session objects created using this function should be deleted using the\n** [sqlite3session_delete()] function before the database handle that they\n** are attached to is itself closed. If the database handle is closed before\n** the session object is deleted, then the results of calling any session\n** module function, including [sqlite3session_delete()] on the session object\n** are undefined.\n**\n** Because the session module uses the [sqlite3_preupdate_hook()] API, it\n** is not possible for an application to register a pre-update hook on a\n** database handle that has one or more session objects attached. Nor is\n** it possible to create a session object attached to a database handle for\n** which a pre-update hook is already defined. The results of attempting \n** either of these things are undefined.\n**\n** The session object will be used to create changesets for tables in\n** database zDb, where zDb is either \"main\", or \"temp\", or the name of an\n** attached database. It is not an error if database zDb is not attached\n** to the database when the session object is created.\n*/\nSQLITE_API int sqlite3session_create(\n  sqlite3 *db,                    /* Database handle */\n  const char *zDb,                /* Name of db (e.g. \"main\") */\n  sqlite3_session **ppSession     /* OUT: New session object */\n);\n\n/*\n** CAPI3REF: Delete A Session Object\n**\n** Delete a session object previously allocated using \n** [sqlite3session_create()]. Once a session object has been deleted, the\n** results of attempting to use pSession with any other session module\n** function are undefined.\n**\n** Session objects must be deleted before the database handle to which they\n** are attached is closed. Refer to the documentation for \n** [sqlite3session_create()] for details.\n*/\nSQLITE_API void sqlite3session_delete(sqlite3_session *pSession);\n\n\n/*\n** CAPI3REF: Enable Or Disable A Session Object\n**\n** Enable or disable the recording of changes by a session object. When\n** enabled, a session object records changes made to the database. When\n** disabled - it does not. A newly created session object is enabled.\n** Refer to the documentation for [sqlite3session_changeset()] for further\n** details regarding how enabling and disabling a session object affects\n** the eventual changesets.\n**\n** Passing zero to this function disables the session. Passing a value\n** greater than zero enables it. Passing a value less than zero is a \n** no-op, and may be used to query the current state of the session.\n**\n** The return value indicates the final state of the session object: 0 if \n** the session is disabled, or 1 if it is enabled.\n*/\nSQLITE_API int sqlite3session_enable(sqlite3_session *pSession, int bEnable);\n\n/*\n** CAPI3REF: Set Or Clear the Indirect Change Flag\n**\n** Each change recorded by a session object is marked as either direct or\n** indirect. A change is marked as indirect if either:\n**\n** <ul>\n**   <li> The session object \"indirect\" flag is set when the change is\n**        made, or\n**   <li> The change is made by an SQL trigger or foreign key action \n**        instead of directly as a result of a users SQL statement.\n** </ul>\n**\n** If a single row is affected by more than one operation within a session,\n** then the change is considered indirect if all operations meet the criteria\n** for an indirect change above, or direct otherwise.\n**\n** This function is used to set, clear or query the session object indirect\n** flag.  If the second argument passed to this function is zero, then the\n** indirect flag is cleared. If it is greater than zero, the indirect flag\n** is set. Passing a value less than zero does not modify the current value\n** of the indirect flag, and may be used to query the current state of the \n** indirect flag for the specified session object.\n**\n** The return value indicates the final state of the indirect flag: 0 if \n** it is clear, or 1 if it is set.\n*/\nSQLITE_API int sqlite3session_indirect(sqlite3_session *pSession, int bIndirect);\n\n/*\n** CAPI3REF: Attach A Table To A Session Object\n**\n** If argument zTab is not NULL, then it is the name of a table to attach\n** to the session object passed as the first argument. All subsequent changes \n** made to the table while the session object is enabled will be recorded. See \n** documentation for [sqlite3session_changeset()] for further details.\n**\n** Or, if argument zTab is NULL, then changes are recorded for all tables\n** in the database. If additional tables are added to the database (by \n** executing \"CREATE TABLE\" statements) after this call is made, changes for \n** the new tables are also recorded.\n**\n** Changes can only be recorded for tables that have a PRIMARY KEY explicitly\n** defined as part of their CREATE TABLE statement. It does not matter if the \n** PRIMARY KEY is an \"INTEGER PRIMARY KEY\" (rowid alias) or not. The PRIMARY\n** KEY may consist of a single column, or may be a composite key.\n** \n** It is not an error if the named table does not exist in the database. Nor\n** is it an error if the named table does not have a PRIMARY KEY. However,\n** no changes will be recorded in either of these scenarios.\n**\n** Changes are not recorded for individual rows that have NULL values stored\n** in one or more of their PRIMARY KEY columns.\n**\n** SQLITE_OK is returned if the call completes without error. Or, if an error \n** occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.\n**\n** <h3>Special sqlite_stat1 Handling</h3>\n**\n** As of SQLite version 3.22.0, the \"sqlite_stat1\" table is an exception to \n** some of the rules above. In SQLite, the schema of sqlite_stat1 is:\n**  <pre>\n**  &nbsp;     CREATE TABLE sqlite_stat1(tbl,idx,stat)  \n**  </pre>\n**\n** Even though sqlite_stat1 does not have a PRIMARY KEY, changes are \n** recorded for it as if the PRIMARY KEY is (tbl,idx). Additionally, changes \n** are recorded for rows for which (idx IS NULL) is true. However, for such\n** rows a zero-length blob (SQL value X'') is stored in the changeset or\n** patchset instead of a NULL value. This allows such changesets to be\n** manipulated by legacy implementations of sqlite3changeset_invert(),\n** concat() and similar.\n**\n** The sqlite3changeset_apply() function automatically converts the \n** zero-length blob back to a NULL value when updating the sqlite_stat1\n** table. However, if the application calls sqlite3changeset_new(),\n** sqlite3changeset_old() or sqlite3changeset_conflict on a changeset \n** iterator directly (including on a changeset iterator passed to a\n** conflict-handler callback) then the X'' value is returned. The application\n** must translate X'' to NULL itself if required.\n**\n** Legacy (older than 3.22.0) versions of the sessions module cannot capture\n** changes made to the sqlite_stat1 table. Legacy versions of the\n** sqlite3changeset_apply() function silently ignore any modifications to the\n** sqlite_stat1 table that are part of a changeset or patchset.\n*/\nSQLITE_API int sqlite3session_attach(\n  sqlite3_session *pSession,      /* Session object */\n  const char *zTab                /* Table name */\n);\n\n/*\n** CAPI3REF: Set a table filter on a Session Object.\n**\n** The second argument (xFilter) is the \"filter callback\". For changes to rows \n** in tables that are not attached to the Session object, the filter is called\n** to determine whether changes to the table's rows should be tracked or not. \n** If xFilter returns 0, changes is not tracked. Note that once a table is \n** attached, xFilter will not be called again.\n*/\nSQLITE_API void sqlite3session_table_filter(\n  sqlite3_session *pSession,      /* Session object */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of third arg to _filter_table() */\n    const char *zTab              /* Table name */\n  ),\n  void *pCtx                      /* First argument passed to xFilter */\n);\n\n/*\n** CAPI3REF: Generate A Changeset From A Session Object\n**\n** Obtain a changeset containing changes to the tables attached to the \n** session object passed as the first argument. If successful, \n** set *ppChangeset to point to a buffer containing the changeset \n** and *pnChangeset to the size of the changeset in bytes before returning\n** SQLITE_OK. If an error occurs, set both *ppChangeset and *pnChangeset to\n** zero and return an SQLite error code.\n**\n** A changeset consists of zero or more INSERT, UPDATE and/or DELETE changes,\n** each representing a change to a single row of an attached table. An INSERT\n** change contains the values of each field of a new database row. A DELETE\n** contains the original values of each field of a deleted database row. An\n** UPDATE change contains the original values of each field of an updated\n** database row along with the updated values for each updated non-primary-key\n** column. It is not possible for an UPDATE change to represent a change that\n** modifies the values of primary key columns. If such a change is made, it\n** is represented in a changeset as a DELETE followed by an INSERT.\n**\n** Changes are not recorded for rows that have NULL values stored in one or \n** more of their PRIMARY KEY columns. If such a row is inserted or deleted,\n** no corresponding change is present in the changesets returned by this\n** function. If an existing row with one or more NULL values stored in\n** PRIMARY KEY columns is updated so that all PRIMARY KEY columns are non-NULL,\n** only an INSERT is appears in the changeset. Similarly, if an existing row\n** with non-NULL PRIMARY KEY values is updated so that one or more of its\n** PRIMARY KEY columns are set to NULL, the resulting changeset contains a\n** DELETE change only.\n**\n** The contents of a changeset may be traversed using an iterator created\n** using the [sqlite3changeset_start()] API. A changeset may be applied to\n** a database with a compatible schema using the [sqlite3changeset_apply()]\n** API.\n**\n** Within a changeset generated by this function, all changes related to a\n** single table are grouped together. In other words, when iterating through\n** a changeset or when applying a changeset to a database, all changes related\n** to a single table are processed before moving on to the next table. Tables\n** are sorted in the same order in which they were attached (or auto-attached)\n** to the sqlite3_session object. The order in which the changes related to\n** a single table are stored is undefined.\n**\n** Following a successful call to this function, it is the responsibility of\n** the caller to eventually free the buffer that *ppChangeset points to using\n** [sqlite3_free()].\n**\n** <h3>Changeset Generation</h3>\n**\n** Once a table has been attached to a session object, the session object\n** records the primary key values of all new rows inserted into the table.\n** It also records the original primary key and other column values of any\n** deleted or updated rows. For each unique primary key value, data is only\n** recorded once - the first time a row with said primary key is inserted,\n** updated or deleted in the lifetime of the session.\n**\n** There is one exception to the previous paragraph: when a row is inserted,\n** updated or deleted, if one or more of its primary key columns contain a\n** NULL value, no record of the change is made.\n**\n** The session object therefore accumulates two types of records - those\n** that consist of primary key values only (created when the user inserts\n** a new record) and those that consist of the primary key values and the\n** original values of other table columns (created when the users deletes\n** or updates a record).\n**\n** When this function is called, the requested changeset is created using\n** both the accumulated records and the current contents of the database\n** file. Specifically:\n**\n** <ul>\n**   <li> For each record generated by an insert, the database is queried\n**        for a row with a matching primary key. If one is found, an INSERT\n**        change is added to the changeset. If no such row is found, no change \n**        is added to the changeset.\n**\n**   <li> For each record generated by an update or delete, the database is \n**        queried for a row with a matching primary key. If such a row is\n**        found and one or more of the non-primary key fields have been\n**        modified from their original values, an UPDATE change is added to \n**        the changeset. Or, if no such row is found in the table, a DELETE \n**        change is added to the changeset. If there is a row with a matching\n**        primary key in the database, but all fields contain their original\n**        values, no change is added to the changeset.\n** </ul>\n**\n** This means, amongst other things, that if a row is inserted and then later\n** deleted while a session object is active, neither the insert nor the delete\n** will be present in the changeset. Or if a row is deleted and then later a \n** row with the same primary key values inserted while a session object is\n** active, the resulting changeset will contain an UPDATE change instead of\n** a DELETE and an INSERT.\n**\n** When a session object is disabled (see the [sqlite3session_enable()] API),\n** it does not accumulate records when rows are inserted, updated or deleted.\n** This may appear to have some counter-intuitive effects if a single row\n** is written to more than once during a session. For example, if a row\n** is inserted while a session object is enabled, then later deleted while \n** the same session object is disabled, no INSERT record will appear in the\n** changeset, even though the delete took place while the session was disabled.\n** Or, if one field of a row is updated while a session is disabled, and \n** another field of the same row is updated while the session is enabled, the\n** resulting changeset will contain an UPDATE change that updates both fields.\n*/\nSQLITE_API int sqlite3session_changeset(\n  sqlite3_session *pSession,      /* Session object */\n  int *pnChangeset,               /* OUT: Size of buffer at *ppChangeset */\n  void **ppChangeset              /* OUT: Buffer containing changeset */\n);\n\n/*\n** CAPI3REF: Load The Difference Between Tables Into A Session \n**\n** If it is not already attached to the session object passed as the first\n** argument, this function attaches table zTbl in the same manner as the\n** [sqlite3session_attach()] function. If zTbl does not exist, or if it\n** does not have a primary key, this function is a no-op (but does not return\n** an error).\n**\n** Argument zFromDb must be the name of a database (\"main\", \"temp\" etc.)\n** attached to the same database handle as the session object that contains \n** a table compatible with the table attached to the session by this function.\n** A table is considered compatible if it:\n**\n** <ul>\n**   <li> Has the same name,\n**   <li> Has the same set of columns declared in the same order, and\n**   <li> Has the same PRIMARY KEY definition.\n** </ul>\n**\n** If the tables are not compatible, SQLITE_SCHEMA is returned. If the tables\n** are compatible but do not have any PRIMARY KEY columns, it is not an error\n** but no changes are added to the session object. As with other session\n** APIs, tables without PRIMARY KEYs are simply ignored.\n**\n** This function adds a set of changes to the session object that could be\n** used to update the table in database zFrom (call this the \"from-table\") \n** so that its content is the same as the table attached to the session \n** object (call this the \"to-table\"). Specifically:\n**\n** <ul>\n**   <li> For each row (primary key) that exists in the to-table but not in \n**     the from-table, an INSERT record is added to the session object.\n**\n**   <li> For each row (primary key) that exists in the to-table but not in \n**     the from-table, a DELETE record is added to the session object.\n**\n**   <li> For each row (primary key) that exists in both tables, but features \n**     different non-PK values in each, an UPDATE record is added to the\n**     session.  \n** </ul>\n**\n** To clarify, if this function is called and then a changeset constructed\n** using [sqlite3session_changeset()], then after applying that changeset to \n** database zFrom the contents of the two compatible tables would be \n** identical.\n**\n** It an error if database zFrom does not exist or does not contain the\n** required compatible table.\n**\n** If the operation successful, SQLITE_OK is returned. Otherwise, an SQLite\n** error code. In this case, if argument pzErrMsg is not NULL, *pzErrMsg\n** may be set to point to a buffer containing an English language error \n** message. It is the responsibility of the caller to free this buffer using\n** sqlite3_free().\n*/\nSQLITE_API int sqlite3session_diff(\n  sqlite3_session *pSession,\n  const char *zFromDb,\n  const char *zTbl,\n  char **pzErrMsg\n);\n\n\n/*\n** CAPI3REF: Generate A Patchset From A Session Object\n**\n** The differences between a patchset and a changeset are that:\n**\n** <ul>\n**   <li> DELETE records consist of the primary key fields only. The \n**        original values of other fields are omitted.\n**   <li> The original values of any modified fields are omitted from \n**        UPDATE records.\n** </ul>\n**\n** A patchset blob may be used with up to date versions of all \n** sqlite3changeset_xxx API functions except for sqlite3changeset_invert(), \n** which returns SQLITE_CORRUPT if it is passed a patchset. Similarly,\n** attempting to use a patchset blob with old versions of the\n** sqlite3changeset_xxx APIs also provokes an SQLITE_CORRUPT error. \n**\n** Because the non-primary key \"old.*\" fields are omitted, no \n** SQLITE_CHANGESET_DATA conflicts can be detected or reported if a patchset\n** is passed to the sqlite3changeset_apply() API. Other conflict types work\n** in the same way as for changesets.\n**\n** Changes within a patchset are ordered in the same way as for changesets\n** generated by the sqlite3session_changeset() function (i.e. all changes for\n** a single table are grouped together, tables appear in the order in which\n** they were attached to the session object).\n*/\nSQLITE_API int sqlite3session_patchset(\n  sqlite3_session *pSession,      /* Session object */\n  int *pnPatchset,                /* OUT: Size of buffer at *ppPatchset */\n  void **ppPatchset               /* OUT: Buffer containing patchset */\n);\n\n/*\n** CAPI3REF: Test if a changeset has recorded any changes.\n**\n** Return non-zero if no changes to attached tables have been recorded by \n** the session object passed as the first argument. Otherwise, if one or \n** more changes have been recorded, return zero.\n**\n** Even if this function returns zero, it is possible that calling\n** [sqlite3session_changeset()] on the session handle may still return a\n** changeset that contains no changes. This can happen when a row in \n** an attached table is modified and then later on the original values \n** are restored. However, if this function returns non-zero, then it is\n** guaranteed that a call to sqlite3session_changeset() will return a \n** changeset containing zero changes.\n*/\nSQLITE_API int sqlite3session_isempty(sqlite3_session *pSession);\n\n/*\n** CAPI3REF: Create An Iterator To Traverse A Changeset \n**\n** Create an iterator used to iterate through the contents of a changeset.\n** If successful, *pp is set to point to the iterator handle and SQLITE_OK\n** is returned. Otherwise, if an error occurs, *pp is set to zero and an\n** SQLite error code is returned.\n**\n** The following functions can be used to advance and query a changeset \n** iterator created by this function:\n**\n** <ul>\n**   <li> [sqlite3changeset_next()]\n**   <li> [sqlite3changeset_op()]\n**   <li> [sqlite3changeset_new()]\n**   <li> [sqlite3changeset_old()]\n** </ul>\n**\n** It is the responsibility of the caller to eventually destroy the iterator\n** by passing it to [sqlite3changeset_finalize()]. The buffer containing the\n** changeset (pChangeset) must remain valid until after the iterator is\n** destroyed.\n**\n** Assuming the changeset blob was created by one of the\n** [sqlite3session_changeset()], [sqlite3changeset_concat()] or\n** [sqlite3changeset_invert()] functions, all changes within the changeset \n** that apply to a single table are grouped together. This means that when \n** an application iterates through a changeset using an iterator created by \n** this function, all changes that relate to a single table are visited \n** consecutively. There is no chance that the iterator will visit a change \n** the applies to table X, then one for table Y, and then later on visit \n** another change for table X.\n*/\nSQLITE_API int sqlite3changeset_start(\n  sqlite3_changeset_iter **pp,    /* OUT: New changeset iterator handle */\n  int nChangeset,                 /* Size of changeset blob in bytes */\n  void *pChangeset                /* Pointer to blob containing changeset */\n);\n\n\n/*\n** CAPI3REF: Advance A Changeset Iterator\n**\n** This function may only be used with iterators created by function\n** [sqlite3changeset_start()]. If it is called on an iterator passed to\n** a conflict-handler callback by [sqlite3changeset_apply()], SQLITE_MISUSE\n** is returned and the call has no effect.\n**\n** Immediately after an iterator is created by sqlite3changeset_start(), it\n** does not point to any change in the changeset. Assuming the changeset\n** is not empty, the first call to this function advances the iterator to\n** point to the first change in the changeset. Each subsequent call advances\n** the iterator to point to the next change in the changeset (if any). If\n** no error occurs and the iterator points to a valid change after a call\n** to sqlite3changeset_next() has advanced it, SQLITE_ROW is returned. \n** Otherwise, if all changes in the changeset have already been visited,\n** SQLITE_DONE is returned.\n**\n** If an error occurs, an SQLite error code is returned. Possible error \n** codes include SQLITE_CORRUPT (if the changeset buffer is corrupt) or \n** SQLITE_NOMEM.\n*/\nSQLITE_API int sqlite3changeset_next(sqlite3_changeset_iter *pIter);\n\n/*\n** CAPI3REF: Obtain The Current Operation From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned [SQLITE_ROW]. If this\n** is not the case, this function returns [SQLITE_MISUSE].\n**\n** If argument pzTab is not NULL, then *pzTab is set to point to a\n** nul-terminated utf-8 encoded string containing the name of the table\n** affected by the current change. The buffer remains valid until either\n** sqlite3changeset_next() is called on the iterator or until the \n** conflict-handler function returns. If pnCol is not NULL, then *pnCol is \n** set to the number of columns in the table affected by the change. If\n** pbIncorrect is not NULL, then *pbIndirect is set to true (1) if the change\n** is an indirect change, or false (0) otherwise. See the documentation for\n** [sqlite3session_indirect()] for a description of direct and indirect\n** changes. Finally, if pOp is not NULL, then *pOp is set to one of \n** [SQLITE_INSERT], [SQLITE_DELETE] or [SQLITE_UPDATE], depending on the \n** type of change that the iterator currently points to.\n**\n** If no error occurs, SQLITE_OK is returned. If an error does occur, an\n** SQLite error code is returned. The values of the output variables may not\n** be trusted in this case.\n*/\nSQLITE_API int sqlite3changeset_op(\n  sqlite3_changeset_iter *pIter,  /* Iterator object */\n  const char **pzTab,             /* OUT: Pointer to table name */\n  int *pnCol,                     /* OUT: Number of columns in table */\n  int *pOp,                       /* OUT: SQLITE_INSERT, DELETE or UPDATE */\n  int *pbIndirect                 /* OUT: True for an 'indirect' change */\n);\n\n/*\n** CAPI3REF: Obtain The Primary Key Definition Of A Table\n**\n** For each modified table, a changeset includes the following:\n**\n** <ul>\n**   <li> The number of columns in the table, and\n**   <li> Which of those columns make up the tables PRIMARY KEY.\n** </ul>\n**\n** This function is used to find which columns comprise the PRIMARY KEY of\n** the table modified by the change that iterator pIter currently points to.\n** If successful, *pabPK is set to point to an array of nCol entries, where\n** nCol is the number of columns in the table. Elements of *pabPK are set to\n** 0x01 if the corresponding column is part of the tables primary key, or\n** 0x00 if it is not.\n**\n** If argument pnCol is not NULL, then *pnCol is set to the number of columns\n** in the table.\n**\n** If this function is called when the iterator does not point to a valid\n** entry, SQLITE_MISUSE is returned and the output variables zeroed. Otherwise,\n** SQLITE_OK is returned and the output variables populated as described\n** above.\n*/\nSQLITE_API int sqlite3changeset_pk(\n  sqlite3_changeset_iter *pIter,  /* Iterator object */\n  unsigned char **pabPK,          /* OUT: Array of boolean - true for PK cols */\n  int *pnCol                      /* OUT: Number of entries in output array */\n);\n\n/*\n** CAPI3REF: Obtain old.* Values From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned SQLITE_ROW. \n** Furthermore, it may only be called if the type of change that the iterator\n** currently points to is either [SQLITE_DELETE] or [SQLITE_UPDATE]. Otherwise,\n** this function returns [SQLITE_MISUSE] and sets *ppValue to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the vector of \n** original row values stored as part of the UPDATE or DELETE change and\n** returns SQLITE_OK. The name of the function comes from the fact that this \n** is similar to the \"old.*\" columns available to update or delete triggers.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_old(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: Old value (or NULL pointer) */\n);\n\n/*\n** CAPI3REF: Obtain new.* Values From A Changeset Iterator\n**\n** The pIter argument passed to this function may either be an iterator\n** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator\n** created by [sqlite3changeset_start()]. In the latter case, the most recent\n** call to [sqlite3changeset_next()] must have returned SQLITE_ROW. \n** Furthermore, it may only be called if the type of change that the iterator\n** currently points to is either [SQLITE_UPDATE] or [SQLITE_INSERT]. Otherwise,\n** this function returns [SQLITE_MISUSE] and sets *ppValue to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the vector of \n** new row values stored as part of the UPDATE or INSERT change and\n** returns SQLITE_OK. If the change is an UPDATE and does not include\n** a new value for the requested column, *ppValue is set to NULL and \n** SQLITE_OK returned. The name of the function comes from the fact that \n** this is similar to the \"new.*\" columns available to update or delete \n** triggers.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_new(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: New value (or NULL pointer) */\n);\n\n/*\n** CAPI3REF: Obtain Conflicting Row Values From A Changeset Iterator\n**\n** This function should only be used with iterator objects passed to a\n** conflict-handler callback by [sqlite3changeset_apply()] with either\n** [SQLITE_CHANGESET_DATA] or [SQLITE_CHANGESET_CONFLICT]. If this function\n** is called on any other iterator, [SQLITE_MISUSE] is returned and *ppValue\n** is set to NULL.\n**\n** Argument iVal must be greater than or equal to 0, and less than the number\n** of columns in the table affected by the current change. Otherwise,\n** [SQLITE_RANGE] is returned and *ppValue is set to NULL.\n**\n** If successful, this function sets *ppValue to point to a protected\n** sqlite3_value object containing the iVal'th value from the \n** \"conflicting row\" associated with the current conflict-handler callback\n** and returns SQLITE_OK.\n**\n** If some other error occurs (e.g. an OOM condition), an SQLite error code\n** is returned and *ppValue is set to NULL.\n*/\nSQLITE_API int sqlite3changeset_conflict(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int iVal,                       /* Column number */\n  sqlite3_value **ppValue         /* OUT: Value from conflicting row */\n);\n\n/*\n** CAPI3REF: Determine The Number Of Foreign Key Constraint Violations\n**\n** This function may only be called with an iterator passed to an\n** SQLITE_CHANGESET_FOREIGN_KEY conflict handler callback. In this case\n** it sets the output variable to the total number of known foreign key\n** violations in the destination database and returns SQLITE_OK.\n**\n** In all other cases this function returns SQLITE_MISUSE.\n*/\nSQLITE_API int sqlite3changeset_fk_conflicts(\n  sqlite3_changeset_iter *pIter,  /* Changeset iterator */\n  int *pnOut                      /* OUT: Number of FK violations */\n);\n\n\n/*\n** CAPI3REF: Finalize A Changeset Iterator\n**\n** This function is used to finalize an iterator allocated with\n** [sqlite3changeset_start()].\n**\n** This function should only be called on iterators created using the\n** [sqlite3changeset_start()] function. If an application calls this\n** function with an iterator passed to a conflict-handler by\n** [sqlite3changeset_apply()], [SQLITE_MISUSE] is immediately returned and the\n** call has no effect.\n**\n** If an error was encountered within a call to an sqlite3changeset_xxx()\n** function (for example an [SQLITE_CORRUPT] in [sqlite3changeset_next()] or an \n** [SQLITE_NOMEM] in [sqlite3changeset_new()]) then an error code corresponding\n** to that error is returned by this function. Otherwise, SQLITE_OK is\n** returned. This is to allow the following pattern (pseudo-code):\n**\n**   sqlite3changeset_start();\n**   while( SQLITE_ROW==sqlite3changeset_next() ){\n**     // Do something with change.\n**   }\n**   rc = sqlite3changeset_finalize();\n**   if( rc!=SQLITE_OK ){\n**     // An error has occurred \n**   }\n*/\nSQLITE_API int sqlite3changeset_finalize(sqlite3_changeset_iter *pIter);\n\n/*\n** CAPI3REF: Invert A Changeset\n**\n** This function is used to \"invert\" a changeset object. Applying an inverted\n** changeset to a database reverses the effects of applying the uninverted\n** changeset. Specifically:\n**\n** <ul>\n**   <li> Each DELETE change is changed to an INSERT, and\n**   <li> Each INSERT change is changed to a DELETE, and\n**   <li> For each UPDATE change, the old.* and new.* values are exchanged.\n** </ul>\n**\n** This function does not change the order in which changes appear within\n** the changeset. It merely reverses the sense of each individual change.\n**\n** If successful, a pointer to a buffer containing the inverted changeset\n** is stored in *ppOut, the size of the same buffer is stored in *pnOut, and\n** SQLITE_OK is returned. If an error occurs, both *pnOut and *ppOut are\n** zeroed and an SQLite error code returned.\n**\n** It is the responsibility of the caller to eventually call sqlite3_free()\n** on the *ppOut pointer to free the buffer allocation following a successful \n** call to this function.\n**\n** WARNING/TODO: This function currently assumes that the input is a valid\n** changeset. If it is not, the results are undefined.\n*/\nSQLITE_API int sqlite3changeset_invert(\n  int nIn, const void *pIn,       /* Input changeset */\n  int *pnOut, void **ppOut        /* OUT: Inverse of input */\n);\n\n/*\n** CAPI3REF: Concatenate Two Changeset Objects\n**\n** This function is used to concatenate two changesets, A and B, into a \n** single changeset. The result is a changeset equivalent to applying\n** changeset A followed by changeset B. \n**\n** This function combines the two input changesets using an \n** sqlite3_changegroup object. Calling it produces similar results as the\n** following code fragment:\n**\n**   sqlite3_changegroup *pGrp;\n**   rc = sqlite3_changegroup_new(&pGrp);\n**   if( rc==SQLITE_OK ) rc = sqlite3changegroup_add(pGrp, nA, pA);\n**   if( rc==SQLITE_OK ) rc = sqlite3changegroup_add(pGrp, nB, pB);\n**   if( rc==SQLITE_OK ){\n**     rc = sqlite3changegroup_output(pGrp, pnOut, ppOut);\n**   }else{\n**     *ppOut = 0;\n**     *pnOut = 0;\n**   }\n**\n** Refer to the sqlite3_changegroup documentation below for details.\n*/\nSQLITE_API int sqlite3changeset_concat(\n  int nA,                         /* Number of bytes in buffer pA */\n  void *pA,                       /* Pointer to buffer containing changeset A */\n  int nB,                         /* Number of bytes in buffer pB */\n  void *pB,                       /* Pointer to buffer containing changeset B */\n  int *pnOut,                     /* OUT: Number of bytes in output changeset */\n  void **ppOut                    /* OUT: Buffer containing output changeset */\n);\n\n\n/*\n** CAPI3REF: Changegroup Handle\n*/\ntypedef struct sqlite3_changegroup sqlite3_changegroup;\n\n/*\n** CAPI3REF: Create A New Changegroup Object\n**\n** An sqlite3_changegroup object is used to combine two or more changesets\n** (or patchsets) into a single changeset (or patchset). A single changegroup\n** object may combine changesets or patchsets, but not both. The output is\n** always in the same format as the input.\n**\n** If successful, this function returns SQLITE_OK and populates (*pp) with\n** a pointer to a new sqlite3_changegroup object before returning. The caller\n** should eventually free the returned object using a call to \n** sqlite3changegroup_delete(). If an error occurs, an SQLite error code\n** (i.e. SQLITE_NOMEM) is returned and *pp is set to NULL.\n**\n** The usual usage pattern for an sqlite3_changegroup object is as follows:\n**\n** <ul>\n**   <li> It is created using a call to sqlite3changegroup_new().\n**\n**   <li> Zero or more changesets (or patchsets) are added to the object\n**        by calling sqlite3changegroup_add().\n**\n**   <li> The result of combining all input changesets together is obtained \n**        by the application via a call to sqlite3changegroup_output().\n**\n**   <li> The object is deleted using a call to sqlite3changegroup_delete().\n** </ul>\n**\n** Any number of calls to add() and output() may be made between the calls to\n** new() and delete(), and in any order.\n**\n** As well as the regular sqlite3changegroup_add() and \n** sqlite3changegroup_output() functions, also available are the streaming\n** versions sqlite3changegroup_add_strm() and sqlite3changegroup_output_strm().\n*/\nSQLITE_API int sqlite3changegroup_new(sqlite3_changegroup **pp);\n\n/*\n** CAPI3REF: Add A Changeset To A Changegroup\n**\n** Add all changes within the changeset (or patchset) in buffer pData (size\n** nData bytes) to the changegroup. \n**\n** If the buffer contains a patchset, then all prior calls to this function\n** on the same changegroup object must also have specified patchsets. Or, if\n** the buffer contains a changeset, so must have the earlier calls to this\n** function. Otherwise, SQLITE_ERROR is returned and no changes are added\n** to the changegroup.\n**\n** Rows within the changeset and changegroup are identified by the values in\n** their PRIMARY KEY columns. A change in the changeset is considered to\n** apply to the same row as a change already present in the changegroup if\n** the two rows have the same primary key.\n**\n** Changes to rows that do not already appear in the changegroup are\n** simply copied into it. Or, if both the new changeset and the changegroup\n** contain changes that apply to a single row, the final contents of the\n** changegroup depends on the type of each change, as follows:\n**\n** <table border=1 style=\"margin-left:8ex;margin-right:8ex\">\n**   <tr><th style=\"white-space:pre\">Existing Change  </th>\n**       <th style=\"white-space:pre\">New Change       </th>\n**       <th>Output Change\n**   <tr><td>INSERT <td>INSERT <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>INSERT <td>UPDATE <td>\n**       The INSERT change remains in the changegroup. The values in the \n**       INSERT change are modified as if the row was inserted by the\n**       existing change and then updated according to the new change.\n**   <tr><td>INSERT <td>DELETE <td>\n**       The existing INSERT is removed from the changegroup. The DELETE is\n**       not added.\n**   <tr><td>UPDATE <td>INSERT <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>UPDATE <td>UPDATE <td>\n**       The existing UPDATE remains within the changegroup. It is amended \n**       so that the accompanying values are as if the row was updated once \n**       by the existing change and then again by the new change.\n**   <tr><td>UPDATE <td>DELETE <td>\n**       The existing UPDATE is replaced by the new DELETE within the\n**       changegroup.\n**   <tr><td>DELETE <td>INSERT <td>\n**       If one or more of the column values in the row inserted by the\n**       new change differ from those in the row deleted by the existing \n**       change, the existing DELETE is replaced by an UPDATE within the\n**       changegroup. Otherwise, if the inserted row is exactly the same \n**       as the deleted row, the existing DELETE is simply discarded.\n**   <tr><td>DELETE <td>UPDATE <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n**   <tr><td>DELETE <td>DELETE <td>\n**       The new change is ignored. This case does not occur if the new\n**       changeset was recorded immediately after the changesets already\n**       added to the changegroup.\n** </table>\n**\n** If the new changeset contains changes to a table that is already present\n** in the changegroup, then the number of columns and the position of the\n** primary key columns for the table must be consistent. If this is not the\n** case, this function fails with SQLITE_SCHEMA. If the input changeset\n** appears to be corrupt and the corruption is detected, SQLITE_CORRUPT is\n** returned. Or, if an out-of-memory condition occurs during processing, this\n** function returns SQLITE_NOMEM. In all cases, if an error occurs the\n** final contents of the changegroup is undefined.\n**\n** If no error occurs, SQLITE_OK is returned.\n*/\nSQLITE_API int sqlite3changegroup_add(sqlite3_changegroup*, int nData, void *pData);\n\n/*\n** CAPI3REF: Obtain A Composite Changeset From A Changegroup\n**\n** Obtain a buffer containing a changeset (or patchset) representing the\n** current contents of the changegroup. If the inputs to the changegroup\n** were themselves changesets, the output is a changeset. Or, if the\n** inputs were patchsets, the output is also a patchset.\n**\n** As with the output of the sqlite3session_changeset() and\n** sqlite3session_patchset() functions, all changes related to a single\n** table are grouped together in the output of this function. Tables appear\n** in the same order as for the very first changeset added to the changegroup.\n** If the second or subsequent changesets added to the changegroup contain\n** changes for tables that do not appear in the first changeset, they are\n** appended onto the end of the output changeset, again in the order in\n** which they are first encountered.\n**\n** If an error occurs, an SQLite error code is returned and the output\n** variables (*pnData) and (*ppData) are set to 0. Otherwise, SQLITE_OK\n** is returned and the output variables are set to the size of and a \n** pointer to the output buffer, respectively. In this case it is the\n** responsibility of the caller to eventually free the buffer using a\n** call to sqlite3_free().\n*/\nSQLITE_API int sqlite3changegroup_output(\n  sqlite3_changegroup*,\n  int *pnData,                    /* OUT: Size of output buffer in bytes */\n  void **ppData                   /* OUT: Pointer to output buffer */\n);\n\n/*\n** CAPI3REF: Delete A Changegroup Object\n*/\nSQLITE_API void sqlite3changegroup_delete(sqlite3_changegroup*);\n\n/*\n** CAPI3REF: Apply A Changeset To A Database\n**\n** Apply a changeset to a database. This function attempts to update the\n** \"main\" database attached to handle db with the changes found in the\n** changeset passed via the second and third arguments.\n**\n** The fourth argument (xFilter) passed to this function is the \"filter\n** callback\". If it is not NULL, then for each table affected by at least one\n** change in the changeset, the filter callback is invoked with\n** the table name as the second argument, and a copy of the context pointer\n** passed as the sixth argument to this function as the first. If the \"filter\n** callback\" returns zero, then no attempt is made to apply any changes to \n** the table. Otherwise, if the return value is non-zero or the xFilter\n** argument to this function is NULL, all changes related to the table are\n** attempted.\n**\n** For each table that is not excluded by the filter callback, this function \n** tests that the target database contains a compatible table. A table is \n** considered compatible if all of the following are true:\n**\n** <ul>\n**   <li> The table has the same name as the name recorded in the \n**        changeset, and\n**   <li> The table has at least as many columns as recorded in the \n**        changeset, and\n**   <li> The table has primary key columns in the same position as \n**        recorded in the changeset.\n** </ul>\n**\n** If there is no compatible table, it is not an error, but none of the\n** changes associated with the table are applied. A warning message is issued\n** via the sqlite3_log() mechanism with the error code SQLITE_SCHEMA. At most\n** one such warning is issued for each table in the changeset.\n**\n** For each change for which there is a compatible table, an attempt is made \n** to modify the table contents according to the UPDATE, INSERT or DELETE \n** change. If a change cannot be applied cleanly, the conflict handler \n** function passed as the fifth argument to sqlite3changeset_apply() may be \n** invoked. A description of exactly when the conflict handler is invoked for \n** each type of change is below.\n**\n** Unlike the xFilter argument, xConflict may not be passed NULL. The results\n** of passing anything other than a valid function pointer as the xConflict\n** argument are undefined.\n**\n** Each time the conflict handler function is invoked, it must return one\n** of [SQLITE_CHANGESET_OMIT], [SQLITE_CHANGESET_ABORT] or \n** [SQLITE_CHANGESET_REPLACE]. SQLITE_CHANGESET_REPLACE may only be returned\n** if the second argument passed to the conflict handler is either\n** SQLITE_CHANGESET_DATA or SQLITE_CHANGESET_CONFLICT. If the conflict-handler\n** returns an illegal value, any changes already made are rolled back and\n** the call to sqlite3changeset_apply() returns SQLITE_MISUSE. Different \n** actions are taken by sqlite3changeset_apply() depending on the value\n** returned by each invocation of the conflict-handler function. Refer to\n** the documentation for the three \n** [SQLITE_CHANGESET_OMIT|available return values] for details.\n**\n** <dl>\n** <dt>DELETE Changes<dd>\n**   For each DELETE change, this function checks if the target database \n**   contains a row with the same primary key value (or values) as the \n**   original row values stored in the changeset. If it does, and the values \n**   stored in all non-primary key columns also match the values stored in \n**   the changeset the row is deleted from the target database.\n**\n**   If a row with matching primary key values is found, but one or more of\n**   the non-primary key fields contains a value different from the original\n**   row value stored in the changeset, the conflict-handler function is\n**   invoked with [SQLITE_CHANGESET_DATA] as the second argument. If the\n**   database table has more columns than are recorded in the changeset,\n**   only the values of those non-primary key fields are compared against\n**   the current database contents - any trailing database table columns\n**   are ignored.\n**\n**   If no row with matching primary key values is found in the database,\n**   the conflict-handler function is invoked with [SQLITE_CHANGESET_NOTFOUND]\n**   passed as the second argument.\n**\n**   If the DELETE operation is attempted, but SQLite returns SQLITE_CONSTRAINT\n**   (which can only happen if a foreign key constraint is violated), the\n**   conflict-handler function is invoked with [SQLITE_CHANGESET_CONSTRAINT]\n**   passed as the second argument. This includes the case where the DELETE\n**   operation is attempted because an earlier call to the conflict handler\n**   function returned [SQLITE_CHANGESET_REPLACE].\n**\n** <dt>INSERT Changes<dd>\n**   For each INSERT change, an attempt is made to insert the new row into\n**   the database. If the changeset row contains fewer fields than the\n**   database table, the trailing fields are populated with their default\n**   values.\n**\n**   If the attempt to insert the row fails because the database already \n**   contains a row with the same primary key values, the conflict handler\n**   function is invoked with the second argument set to \n**   [SQLITE_CHANGESET_CONFLICT].\n**\n**   If the attempt to insert the row fails because of some other constraint\n**   violation (e.g. NOT NULL or UNIQUE), the conflict handler function is \n**   invoked with the second argument set to [SQLITE_CHANGESET_CONSTRAINT].\n**   This includes the case where the INSERT operation is re-attempted because \n**   an earlier call to the conflict handler function returned \n**   [SQLITE_CHANGESET_REPLACE].\n**\n** <dt>UPDATE Changes<dd>\n**   For each UPDATE change, this function checks if the target database \n**   contains a row with the same primary key value (or values) as the \n**   original row values stored in the changeset. If it does, and the values \n**   stored in all modified non-primary key columns also match the values\n**   stored in the changeset the row is updated within the target database.\n**\n**   If a row with matching primary key values is found, but one or more of\n**   the modified non-primary key fields contains a value different from an\n**   original row value stored in the changeset, the conflict-handler function\n**   is invoked with [SQLITE_CHANGESET_DATA] as the second argument. Since\n**   UPDATE changes only contain values for non-primary key fields that are\n**   to be modified, only those fields need to match the original values to\n**   avoid the SQLITE_CHANGESET_DATA conflict-handler callback.\n**\n**   If no row with matching primary key values is found in the database,\n**   the conflict-handler function is invoked with [SQLITE_CHANGESET_NOTFOUND]\n**   passed as the second argument.\n**\n**   If the UPDATE operation is attempted, but SQLite returns \n**   SQLITE_CONSTRAINT, the conflict-handler function is invoked with \n**   [SQLITE_CHANGESET_CONSTRAINT] passed as the second argument.\n**   This includes the case where the UPDATE operation is attempted after \n**   an earlier call to the conflict handler function returned\n**   [SQLITE_CHANGESET_REPLACE].  \n** </dl>\n**\n** It is safe to execute SQL statements, including those that write to the\n** table that the callback related to, from within the xConflict callback.\n** This can be used to further customize the applications conflict\n** resolution strategy.\n**\n** All changes made by this function are enclosed in a savepoint transaction.\n** If any other error (aside from a constraint failure when attempting to\n** write to the target database) occurs, then the savepoint transaction is\n** rolled back, restoring the target database to its original state, and an \n** SQLite error code returned.\n*/\nSQLITE_API int sqlite3changeset_apply(\n  sqlite3 *db,                    /* Apply change to \"main\" db of this handle */\n  int nChangeset,                 /* Size of changeset in bytes */\n  void *pChangeset,               /* Changeset blob */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    const char *zTab              /* Table name */\n  ),\n  int(*xConflict)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    int eConflict,                /* DATA, MISSING, CONFLICT, CONSTRAINT */\n    sqlite3_changeset_iter *p     /* Handle describing change and conflict */\n  ),\n  void *pCtx                      /* First argument passed to xConflict */\n);\n\n/* \n** CAPI3REF: Constants Passed To The Conflict Handler\n**\n** Values that may be passed as the second argument to a conflict-handler.\n**\n** <dl>\n** <dt>SQLITE_CHANGESET_DATA<dd>\n**   The conflict handler is invoked with CHANGESET_DATA as the second argument\n**   when processing a DELETE or UPDATE change if a row with the required\n**   PRIMARY KEY fields is present in the database, but one or more other \n**   (non primary-key) fields modified by the update do not contain the \n**   expected \"before\" values.\n** \n**   The conflicting row, in this case, is the database row with the matching\n**   primary key.\n** \n** <dt>SQLITE_CHANGESET_NOTFOUND<dd>\n**   The conflict handler is invoked with CHANGESET_NOTFOUND as the second\n**   argument when processing a DELETE or UPDATE change if a row with the\n**   required PRIMARY KEY fields is not present in the database.\n** \n**   There is no conflicting row in this case. The results of invoking the\n**   sqlite3changeset_conflict() API are undefined.\n** \n** <dt>SQLITE_CHANGESET_CONFLICT<dd>\n**   CHANGESET_CONFLICT is passed as the second argument to the conflict\n**   handler while processing an INSERT change if the operation would result \n**   in duplicate primary key values.\n** \n**   The conflicting row in this case is the database row with the matching\n**   primary key.\n**\n** <dt>SQLITE_CHANGESET_FOREIGN_KEY<dd>\n**   If foreign key handling is enabled, and applying a changeset leaves the\n**   database in a state containing foreign key violations, the conflict \n**   handler is invoked with CHANGESET_FOREIGN_KEY as the second argument\n**   exactly once before the changeset is committed. If the conflict handler\n**   returns CHANGESET_OMIT, the changes, including those that caused the\n**   foreign key constraint violation, are committed. Or, if it returns\n**   CHANGESET_ABORT, the changeset is rolled back.\n**\n**   No current or conflicting row information is provided. The only function\n**   it is possible to call on the supplied sqlite3_changeset_iter handle\n**   is sqlite3changeset_fk_conflicts().\n** \n** <dt>SQLITE_CHANGESET_CONSTRAINT<dd>\n**   If any other constraint violation occurs while applying a change (i.e. \n**   a UNIQUE, CHECK or NOT NULL constraint), the conflict handler is \n**   invoked with CHANGESET_CONSTRAINT as the second argument.\n** \n**   There is no conflicting row in this case. The results of invoking the\n**   sqlite3changeset_conflict() API are undefined.\n**\n** </dl>\n*/\n#define SQLITE_CHANGESET_DATA        1\n#define SQLITE_CHANGESET_NOTFOUND    2\n#define SQLITE_CHANGESET_CONFLICT    3\n#define SQLITE_CHANGESET_CONSTRAINT  4\n#define SQLITE_CHANGESET_FOREIGN_KEY 5\n\n/* \n** CAPI3REF: Constants Returned By The Conflict Handler\n**\n** A conflict handler callback must return one of the following three values.\n**\n** <dl>\n** <dt>SQLITE_CHANGESET_OMIT<dd>\n**   If a conflict handler returns this value no special action is taken. The\n**   change that caused the conflict is not applied. The session module \n**   continues to the next change in the changeset.\n**\n** <dt>SQLITE_CHANGESET_REPLACE<dd>\n**   This value may only be returned if the second argument to the conflict\n**   handler was SQLITE_CHANGESET_DATA or SQLITE_CHANGESET_CONFLICT. If this\n**   is not the case, any changes applied so far are rolled back and the \n**   call to sqlite3changeset_apply() returns SQLITE_MISUSE.\n**\n**   If CHANGESET_REPLACE is returned by an SQLITE_CHANGESET_DATA conflict\n**   handler, then the conflicting row is either updated or deleted, depending\n**   on the type of change.\n**\n**   If CHANGESET_REPLACE is returned by an SQLITE_CHANGESET_CONFLICT conflict\n**   handler, then the conflicting row is removed from the database and a\n**   second attempt to apply the change is made. If this second attempt fails,\n**   the original row is restored to the database before continuing.\n**\n** <dt>SQLITE_CHANGESET_ABORT<dd>\n**   If this value is returned, any changes applied so far are rolled back \n**   and the call to sqlite3changeset_apply() returns SQLITE_ABORT.\n** </dl>\n*/\n#define SQLITE_CHANGESET_OMIT       0\n#define SQLITE_CHANGESET_REPLACE    1\n#define SQLITE_CHANGESET_ABORT      2\n\n/*\n** CAPI3REF: Streaming Versions of API functions.\n**\n** The six streaming API xxx_strm() functions serve similar purposes to the \n** corresponding non-streaming API functions:\n**\n** <table border=1 style=\"margin-left:8ex;margin-right:8ex\">\n**   <tr><th>Streaming function<th>Non-streaming equivalent</th>\n**   <tr><td>sqlite3changeset_apply_strm<td>[sqlite3changeset_apply] \n**   <tr><td>sqlite3changeset_concat_strm<td>[sqlite3changeset_concat] \n**   <tr><td>sqlite3changeset_invert_strm<td>[sqlite3changeset_invert] \n**   <tr><td>sqlite3changeset_start_strm<td>[sqlite3changeset_start] \n**   <tr><td>sqlite3session_changeset_strm<td>[sqlite3session_changeset] \n**   <tr><td>sqlite3session_patchset_strm<td>[sqlite3session_patchset] \n** </table>\n**\n** Non-streaming functions that accept changesets (or patchsets) as input\n** require that the entire changeset be stored in a single buffer in memory. \n** Similarly, those that return a changeset or patchset do so by returning \n** a pointer to a single large buffer allocated using sqlite3_malloc(). \n** Normally this is convenient. However, if an application running in a \n** low-memory environment is required to handle very large changesets, the\n** large contiguous memory allocations required can become onerous.\n**\n** In order to avoid this problem, instead of a single large buffer, input\n** is passed to a streaming API functions by way of a callback function that\n** the sessions module invokes to incrementally request input data as it is\n** required. In all cases, a pair of API function parameters such as\n**\n**  <pre>\n**  &nbsp;     int nChangeset,\n**  &nbsp;     void *pChangeset,\n**  </pre>\n**\n** Is replaced by:\n**\n**  <pre>\n**  &nbsp;     int (*xInput)(void *pIn, void *pData, int *pnData),\n**  &nbsp;     void *pIn,\n**  </pre>\n**\n** Each time the xInput callback is invoked by the sessions module, the first\n** argument passed is a copy of the supplied pIn context pointer. The second \n** argument, pData, points to a buffer (*pnData) bytes in size. Assuming no \n** error occurs the xInput method should copy up to (*pnData) bytes of data \n** into the buffer and set (*pnData) to the actual number of bytes copied \n** before returning SQLITE_OK. If the input is completely exhausted, (*pnData) \n** should be set to zero to indicate this. Or, if an error occurs, an SQLite \n** error code should be returned. In all cases, if an xInput callback returns\n** an error, all processing is abandoned and the streaming API function\n** returns a copy of the error code to the caller.\n**\n** In the case of sqlite3changeset_start_strm(), the xInput callback may be\n** invoked by the sessions module at any point during the lifetime of the\n** iterator. If such an xInput callback returns an error, the iterator enters\n** an error state, whereby all subsequent calls to iterator functions \n** immediately fail with the same error code as returned by xInput.\n**\n** Similarly, streaming API functions that return changesets (or patchsets)\n** return them in chunks by way of a callback function instead of via a\n** pointer to a single large buffer. In this case, a pair of parameters such\n** as:\n**\n**  <pre>\n**  &nbsp;     int *pnChangeset,\n**  &nbsp;     void **ppChangeset,\n**  </pre>\n**\n** Is replaced by:\n**\n**  <pre>\n**  &nbsp;     int (*xOutput)(void *pOut, const void *pData, int nData),\n**  &nbsp;     void *pOut\n**  </pre>\n**\n** The xOutput callback is invoked zero or more times to return data to\n** the application. The first parameter passed to each call is a copy of the\n** pOut pointer supplied by the application. The second parameter, pData,\n** points to a buffer nData bytes in size containing the chunk of output\n** data being returned. If the xOutput callback successfully processes the\n** supplied data, it should return SQLITE_OK to indicate success. Otherwise,\n** it should return some other SQLite error code. In this case processing\n** is immediately abandoned and the streaming API function returns a copy\n** of the xOutput error code to the application.\n**\n** The sessions module never invokes an xOutput callback with the third \n** parameter set to a value less than or equal to zero. Other than this,\n** no guarantees are made as to the size of the chunks of data returned.\n*/\nSQLITE_API int sqlite3changeset_apply_strm(\n  sqlite3 *db,                    /* Apply change to \"main\" db of this handle */\n  int (*xInput)(void *pIn, void *pData, int *pnData), /* Input function */\n  void *pIn,                                          /* First arg for xInput */\n  int(*xFilter)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    const char *zTab              /* Table name */\n  ),\n  int(*xConflict)(\n    void *pCtx,                   /* Copy of sixth arg to _apply() */\n    int eConflict,                /* DATA, MISSING, CONFLICT, CONSTRAINT */\n    sqlite3_changeset_iter *p     /* Handle describing change and conflict */\n  ),\n  void *pCtx                      /* First argument passed to xConflict */\n);\nSQLITE_API int sqlite3changeset_concat_strm(\n  int (*xInputA)(void *pIn, void *pData, int *pnData),\n  void *pInA,\n  int (*xInputB)(void *pIn, void *pData, int *pnData),\n  void *pInB,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changeset_invert_strm(\n  int (*xInput)(void *pIn, void *pData, int *pnData),\n  void *pIn,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changeset_start_strm(\n  sqlite3_changeset_iter **pp,\n  int (*xInput)(void *pIn, void *pData, int *pnData),\n  void *pIn\n);\nSQLITE_API int sqlite3session_changeset_strm(\n  sqlite3_session *pSession,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3session_patchset_strm(\n  sqlite3_session *pSession,\n  int (*xOutput)(void *pOut, const void *pData, int nData),\n  void *pOut\n);\nSQLITE_API int sqlite3changegroup_add_strm(sqlite3_changegroup*, \n    int (*xInput)(void *pIn, void *pData, int *pnData),\n    void *pIn\n);\nSQLITE_API int sqlite3changegroup_output_strm(sqlite3_changegroup*,\n    int (*xOutput)(void *pOut, const void *pData, int nData), \n    void *pOut\n);\n\n\n/*\n** Make sure we can call this stuff from C++.\n*/\n#ifdef __cplusplus\n}\n#endif\n\n#endif  /* !defined(__SQLITESESSION_H_) && defined(SQLITE_ENABLE_SESSION) */\n\n/******** End of sqlite3session.h *********/\n/******** Begin file fts5.h *********/\n/*\n** 2014 May 31\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n******************************************************************************\n**\n** Interfaces to extend FTS5. Using the interfaces defined in this file, \n** FTS5 may be extended with:\n**\n**     * custom tokenizers, and\n**     * custom auxiliary functions.\n*/\n\n\n#ifndef _FTS5_H\n#define _FTS5_H\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/*************************************************************************\n** CUSTOM AUXILIARY FUNCTIONS\n**\n** Virtual table implementations may overload SQL functions by implementing\n** the sqlite3_module.xFindFunction() method.\n*/\n\ntypedef struct Fts5ExtensionApi Fts5ExtensionApi;\ntypedef struct Fts5Context Fts5Context;\ntypedef struct Fts5PhraseIter Fts5PhraseIter;\n\ntypedef void (*fts5_extension_function)(\n  const Fts5ExtensionApi *pApi,   /* API offered by current FTS version */\n  Fts5Context *pFts,              /* First arg to pass to pApi functions */\n  sqlite3_context *pCtx,          /* Context for returning result/error */\n  int nVal,                       /* Number of values in apVal[] array */\n  sqlite3_value **apVal           /* Array of trailing arguments */\n);\n\nstruct Fts5PhraseIter {\n  const unsigned char *a;\n  const unsigned char *b;\n};\n\n/*\n** EXTENSION API FUNCTIONS\n**\n** xUserData(pFts):\n**   Return a copy of the context pointer the extension function was \n**   registered with.\n**\n** xColumnTotalSize(pFts, iCol, pnToken):\n**   If parameter iCol is less than zero, set output variable *pnToken\n**   to the total number of tokens in the FTS5 table. Or, if iCol is\n**   non-negative but less than the number of columns in the table, return\n**   the total number of tokens in column iCol, considering all rows in \n**   the FTS5 table.\n**\n**   If parameter iCol is greater than or equal to the number of columns\n**   in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.\n**   an OOM condition or IO error), an appropriate SQLite error code is \n**   returned.\n**\n** xColumnCount(pFts):\n**   Return the number of columns in the table.\n**\n** xColumnSize(pFts, iCol, pnToken):\n**   If parameter iCol is less than zero, set output variable *pnToken\n**   to the total number of tokens in the current row. Or, if iCol is\n**   non-negative but less than the number of columns in the table, set\n**   *pnToken to the number of tokens in column iCol of the current row.\n**\n**   If parameter iCol is greater than or equal to the number of columns\n**   in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.\n**   an OOM condition or IO error), an appropriate SQLite error code is \n**   returned.\n**\n**   This function may be quite inefficient if used with an FTS5 table\n**   created with the \"columnsize=0\" option.\n**\n** xColumnText:\n**   This function attempts to retrieve the text of column iCol of the\n**   current document. If successful, (*pz) is set to point to a buffer\n**   containing the text in utf-8 encoding, (*pn) is set to the size in bytes\n**   (not characters) of the buffer and SQLITE_OK is returned. Otherwise,\n**   if an error occurs, an SQLite error code is returned and the final values\n**   of (*pz) and (*pn) are undefined.\n**\n** xPhraseCount:\n**   Returns the number of phrases in the current query expression.\n**\n** xPhraseSize:\n**   Returns the number of tokens in phrase iPhrase of the query. Phrases\n**   are numbered starting from zero.\n**\n** xInstCount:\n**   Set *pnInst to the total number of occurrences of all phrases within\n**   the query within the current row. Return SQLITE_OK if successful, or\n**   an error code (i.e. SQLITE_NOMEM) if an error occurs.\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. If the FTS5 table is created \n**   with either \"detail=none\" or \"detail=column\" and \"content=\" option \n**   (i.e. if it is a contentless table), then this API always returns 0.\n**\n** xInst:\n**   Query for the details of phrase match iIdx within the current row.\n**   Phrase matches are numbered starting from zero, so the iIdx argument\n**   should be greater than or equal to zero and smaller than the value\n**   output by xInstCount().\n**\n**   Usually, output parameter *piPhrase is set to the phrase number, *piCol\n**   to the column in which it occurs and *piOff the token offset of the\n**   first token of the phrase. The exception is if the table was created\n**   with the offsets=0 option specified. In this case *piOff is always\n**   set to -1.\n**\n**   Returns SQLITE_OK if successful, or an error code (i.e. SQLITE_NOMEM) \n**   if an error occurs.\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. \n**\n** xRowid:\n**   Returns the rowid of the current row.\n**\n** xTokenize:\n**   Tokenize text using the tokenizer belonging to the FTS5 table.\n**\n** xQueryPhrase(pFts5, iPhrase, pUserData, xCallback):\n**   This API function is used to query the FTS table for phrase iPhrase\n**   of the current query. Specifically, a query equivalent to:\n**\n**       ... FROM ftstable WHERE ftstable MATCH $p ORDER BY rowid\n**\n**   with $p set to a phrase equivalent to the phrase iPhrase of the\n**   current query is executed. Any column filter that applies to\n**   phrase iPhrase of the current query is included in $p. For each \n**   row visited, the callback function passed as the fourth argument \n**   is invoked. The context and API objects passed to the callback \n**   function may be used to access the properties of each matched row.\n**   Invoking Api.xUserData() returns a copy of the pointer passed as \n**   the third argument to pUserData.\n**\n**   If the callback function returns any value other than SQLITE_OK, the\n**   query is abandoned and the xQueryPhrase function returns immediately.\n**   If the returned value is SQLITE_DONE, xQueryPhrase returns SQLITE_OK.\n**   Otherwise, the error code is propagated upwards.\n**\n**   If the query runs to completion without incident, SQLITE_OK is returned.\n**   Or, if some error occurs before the query completes or is aborted by\n**   the callback, an SQLite error code is returned.\n**\n**\n** xSetAuxdata(pFts5, pAux, xDelete)\n**\n**   Save the pointer passed as the second argument as the extension functions \n**   \"auxiliary data\". The pointer may then be retrieved by the current or any\n**   future invocation of the same fts5 extension function made as part of\n**   of the same MATCH query using the xGetAuxdata() API.\n**\n**   Each extension function is allocated a single auxiliary data slot for\n**   each FTS query (MATCH expression). If the extension function is invoked \n**   more than once for a single FTS query, then all invocations share a \n**   single auxiliary data context.\n**\n**   If there is already an auxiliary data pointer when this function is\n**   invoked, then it is replaced by the new pointer. If an xDelete callback\n**   was specified along with the original pointer, it is invoked at this\n**   point.\n**\n**   The xDelete callback, if one is specified, is also invoked on the\n**   auxiliary data pointer after the FTS5 query has finished.\n**\n**   If an error (e.g. an OOM condition) occurs within this function, an\n**   the auxiliary data is set to NULL and an error code returned. If the\n**   xDelete parameter was not NULL, it is invoked on the auxiliary data\n**   pointer before returning.\n**\n**\n** xGetAuxdata(pFts5, bClear)\n**\n**   Returns the current auxiliary data pointer for the fts5 extension \n**   function. See the xSetAuxdata() method for details.\n**\n**   If the bClear argument is non-zero, then the auxiliary data is cleared\n**   (set to NULL) before this function returns. In this case the xDelete,\n**   if any, is not invoked.\n**\n**\n** xRowCount(pFts5, pnRow)\n**\n**   This function is used to retrieve the total number of rows in the table.\n**   In other words, the same value that would be returned by:\n**\n**        SELECT count(*) FROM ftstable;\n**\n** xPhraseFirst()\n**   This function is used, along with type Fts5PhraseIter and the xPhraseNext\n**   method, to iterate through all instances of a single query phrase within\n**   the current row. This is the same information as is accessible via the\n**   xInstCount/xInst APIs. While the xInstCount/xInst APIs are more convenient\n**   to use, this API may be faster under some circumstances. To iterate \n**   through instances of phrase iPhrase, use the following code:\n**\n**       Fts5PhraseIter iter;\n**       int iCol, iOff;\n**       for(pApi->xPhraseFirst(pFts, iPhrase, &iter, &iCol, &iOff);\n**           iCol>=0;\n**           pApi->xPhraseNext(pFts, &iter, &iCol, &iOff)\n**       ){\n**         // An instance of phrase iPhrase at offset iOff of column iCol\n**       }\n**\n**   The Fts5PhraseIter structure is defined above. Applications should not\n**   modify this structure directly - it should only be used as shown above\n**   with the xPhraseFirst() and xPhraseNext() API methods (and by\n**   xPhraseFirstColumn() and xPhraseNextColumn() as illustrated below).\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" or \"detail=column\" option. If the FTS5 table is created \n**   with either \"detail=none\" or \"detail=column\" and \"content=\" option \n**   (i.e. if it is a contentless table), then this API always iterates\n**   through an empty set (all calls to xPhraseFirst() set iCol to -1).\n**\n** xPhraseNext()\n**   See xPhraseFirst above.\n**\n** xPhraseFirstColumn()\n**   This function and xPhraseNextColumn() are similar to the xPhraseFirst()\n**   and xPhraseNext() APIs described above. The difference is that instead\n**   of iterating through all instances of a phrase in the current row, these\n**   APIs are used to iterate through the set of columns in the current row\n**   that contain one or more instances of a specified phrase. For example:\n**\n**       Fts5PhraseIter iter;\n**       int iCol;\n**       for(pApi->xPhraseFirstColumn(pFts, iPhrase, &iter, &iCol);\n**           iCol>=0;\n**           pApi->xPhraseNextColumn(pFts, &iter, &iCol)\n**       ){\n**         // Column iCol contains at least one instance of phrase iPhrase\n**       }\n**\n**   This API can be quite slow if used with an FTS5 table created with the\n**   \"detail=none\" option. If the FTS5 table is created with either \n**   \"detail=none\" \"content=\" option (i.e. if it is a contentless table), \n**   then this API always iterates through an empty set (all calls to \n**   xPhraseFirstColumn() set iCol to -1).\n**\n**   The information accessed using this API and its companion\n**   xPhraseFirstColumn() may also be obtained using xPhraseFirst/xPhraseNext\n**   (or xInst/xInstCount). The chief advantage of this API is that it is\n**   significantly more efficient than those alternatives when used with\n**   \"detail=column\" tables.  \n**\n** xPhraseNextColumn()\n**   See xPhraseFirstColumn above.\n*/\nstruct Fts5ExtensionApi {\n  int iVersion;                   /* Currently always set to 3 */\n\n  void *(*xUserData)(Fts5Context*);\n\n  int (*xColumnCount)(Fts5Context*);\n  int (*xRowCount)(Fts5Context*, sqlite3_int64 *pnRow);\n  int (*xColumnTotalSize)(Fts5Context*, int iCol, sqlite3_int64 *pnToken);\n\n  int (*xTokenize)(Fts5Context*, \n    const char *pText, int nText, /* Text to tokenize */\n    void *pCtx,                   /* Context passed to xToken() */\n    int (*xToken)(void*, int, const char*, int, int, int)       /* Callback */\n  );\n\n  int (*xPhraseCount)(Fts5Context*);\n  int (*xPhraseSize)(Fts5Context*, int iPhrase);\n\n  int (*xInstCount)(Fts5Context*, int *pnInst);\n  int (*xInst)(Fts5Context*, int iIdx, int *piPhrase, int *piCol, int *piOff);\n\n  sqlite3_int64 (*xRowid)(Fts5Context*);\n  int (*xColumnText)(Fts5Context*, int iCol, const char **pz, int *pn);\n  int (*xColumnSize)(Fts5Context*, int iCol, int *pnToken);\n\n  int (*xQueryPhrase)(Fts5Context*, int iPhrase, void *pUserData,\n    int(*)(const Fts5ExtensionApi*,Fts5Context*,void*)\n  );\n  int (*xSetAuxdata)(Fts5Context*, void *pAux, void(*xDelete)(void*));\n  void *(*xGetAuxdata)(Fts5Context*, int bClear);\n\n  int (*xPhraseFirst)(Fts5Context*, int iPhrase, Fts5PhraseIter*, int*, int*);\n  void (*xPhraseNext)(Fts5Context*, Fts5PhraseIter*, int *piCol, int *piOff);\n\n  int (*xPhraseFirstColumn)(Fts5Context*, int iPhrase, Fts5PhraseIter*, int*);\n  void (*xPhraseNextColumn)(Fts5Context*, Fts5PhraseIter*, int *piCol);\n};\n\n/* \n** CUSTOM AUXILIARY FUNCTIONS\n*************************************************************************/\n\n/*************************************************************************\n** CUSTOM TOKENIZERS\n**\n** Applications may also register custom tokenizer types. A tokenizer \n** is registered by providing fts5 with a populated instance of the \n** following structure. All structure methods must be defined, setting\n** any member of the fts5_tokenizer struct to NULL leads to undefined\n** behaviour. The structure methods are expected to function as follows:\n**\n** xCreate:\n**   This function is used to allocate and initialize a tokenizer instance.\n**   A tokenizer instance is required to actually tokenize text.\n**\n**   The first argument passed to this function is a copy of the (void*)\n**   pointer provided by the application when the fts5_tokenizer object\n**   was registered with FTS5 (the third argument to xCreateTokenizer()). \n**   The second and third arguments are an array of nul-terminated strings\n**   containing the tokenizer arguments, if any, specified following the\n**   tokenizer name as part of the CREATE VIRTUAL TABLE statement used\n**   to create the FTS5 table.\n**\n**   The final argument is an output variable. If successful, (*ppOut) \n**   should be set to point to the new tokenizer handle and SQLITE_OK\n**   returned. If an error occurs, some value other than SQLITE_OK should\n**   be returned. In this case, fts5 assumes that the final value of *ppOut \n**   is undefined.\n**\n** xDelete:\n**   This function is invoked to delete a tokenizer handle previously\n**   allocated using xCreate(). Fts5 guarantees that this function will\n**   be invoked exactly once for each successful call to xCreate().\n**\n** xTokenize:\n**   This function is expected to tokenize the nText byte string indicated \n**   by argument pText. pText may or may not be nul-terminated. The first\n**   argument passed to this function is a pointer to an Fts5Tokenizer object\n**   returned by an earlier call to xCreate().\n**\n**   The second argument indicates the reason that FTS5 is requesting\n**   tokenization of the supplied text. This is always one of the following\n**   four values:\n**\n**   <ul><li> <b>FTS5_TOKENIZE_DOCUMENT</b> - A document is being inserted into\n**            or removed from the FTS table. The tokenizer is being invoked to\n**            determine the set of tokens to add to (or delete from) the\n**            FTS index.\n**\n**       <li> <b>FTS5_TOKENIZE_QUERY</b> - A MATCH query is being executed \n**            against the FTS index. The tokenizer is being called to tokenize \n**            a bareword or quoted string specified as part of the query.\n**\n**       <li> <b>(FTS5_TOKENIZE_QUERY | FTS5_TOKENIZE_PREFIX)</b> - Same as\n**            FTS5_TOKENIZE_QUERY, except that the bareword or quoted string is\n**            followed by a \"*\" character, indicating that the last token\n**            returned by the tokenizer will be treated as a token prefix.\n**\n**       <li> <b>FTS5_TOKENIZE_AUX</b> - The tokenizer is being invoked to \n**            satisfy an fts5_api.xTokenize() request made by an auxiliary\n**            function. Or an fts5_api.xColumnSize() request made by the same\n**            on a columnsize=0 database.  \n**   </ul>\n**\n**   For each token in the input string, the supplied callback xToken() must\n**   be invoked. The first argument to it should be a copy of the pointer\n**   passed as the second argument to xTokenize(). The third and fourth\n**   arguments are a pointer to a buffer containing the token text, and the\n**   size of the token in bytes. The 4th and 5th arguments are the byte offsets\n**   of the first byte of and first byte immediately following the text from\n**   which the token is derived within the input.\n**\n**   The second argument passed to the xToken() callback (\"tflags\") should\n**   normally be set to 0. The exception is if the tokenizer supports \n**   synonyms. In this case see the discussion below for details.\n**\n**   FTS5 assumes the xToken() callback is invoked for each token in the \n**   order that they occur within the input text.\n**\n**   If an xToken() callback returns any value other than SQLITE_OK, then\n**   the tokenization should be abandoned and the xTokenize() method should\n**   immediately return a copy of the xToken() return value. Or, if the\n**   input buffer is exhausted, xTokenize() should return SQLITE_OK. Finally,\n**   if an error occurs with the xTokenize() implementation itself, it\n**   may abandon the tokenization and return any error code other than\n**   SQLITE_OK or SQLITE_DONE.\n**\n** SYNONYM SUPPORT\n**\n**   Custom tokenizers may also support synonyms. Consider a case in which a\n**   user wishes to query for a phrase such as \"first place\". Using the \n**   built-in tokenizers, the FTS5 query 'first + place' will match instances\n**   of \"first place\" within the document set, but not alternative forms\n**   such as \"1st place\". In some applications, it would be better to match\n**   all instances of \"first place\" or \"1st place\" regardless of which form\n**   the user specified in the MATCH query text.\n**\n**   There are several ways to approach this in FTS5:\n**\n**   <ol><li> By mapping all synonyms to a single token. In this case, the \n**            In the above example, this means that the tokenizer returns the\n**            same token for inputs \"first\" and \"1st\". Say that token is in\n**            fact \"first\", so that when the user inserts the document \"I won\n**            1st place\" entries are added to the index for tokens \"i\", \"won\",\n**            \"first\" and \"place\". If the user then queries for '1st + place',\n**            the tokenizer substitutes \"first\" for \"1st\" and the query works\n**            as expected.\n**\n**       <li> By adding multiple synonyms for a single term to the FTS index.\n**            In this case, when tokenizing query text, the tokenizer may \n**            provide multiple synonyms for a single term within the document.\n**            FTS5 then queries the index for each synonym individually. For\n**            example, faced with the query:\n**\n**   <codeblock>\n**     ... MATCH 'first place'</codeblock>\n**\n**            the tokenizer offers both \"1st\" and \"first\" as synonyms for the\n**            first token in the MATCH query and FTS5 effectively runs a query \n**            similar to:\n**\n**   <codeblock>\n**     ... MATCH '(first OR 1st) place'</codeblock>\n**\n**            except that, for the purposes of auxiliary functions, the query\n**            still appears to contain just two phrases - \"(first OR 1st)\" \n**            being treated as a single phrase.\n**\n**       <li> By adding multiple synonyms for a single term to the FTS index.\n**            Using this method, when tokenizing document text, the tokenizer\n**            provides multiple synonyms for each token. So that when a \n**            document such as \"I won first place\" is tokenized, entries are\n**            added to the FTS index for \"i\", \"won\", \"first\", \"1st\" and\n**            \"place\".\n**\n**            This way, even if the tokenizer does not provide synonyms\n**            when tokenizing query text (it should not - to do would be\n**            inefficient), it doesn't matter if the user queries for \n**            'first + place' or '1st + place', as there are entires in the\n**            FTS index corresponding to both forms of the first token.\n**   </ol>\n**\n**   Whether it is parsing document or query text, any call to xToken that\n**   specifies a <i>tflags</i> argument with the FTS5_TOKEN_COLOCATED bit\n**   is considered to supply a synonym for the previous token. For example,\n**   when parsing the document \"I won first place\", a tokenizer that supports\n**   synonyms would call xToken() 5 times, as follows:\n**\n**   <codeblock>\n**       xToken(pCtx, 0, \"i\",                      1,  0,  1);\n**       xToken(pCtx, 0, \"won\",                    3,  2,  5);\n**       xToken(pCtx, 0, \"first\",                  5,  6, 11);\n**       xToken(pCtx, FTS5_TOKEN_COLOCATED, \"1st\", 3,  6, 11);\n**       xToken(pCtx, 0, \"place\",                  5, 12, 17);\n**</codeblock>\n**\n**   It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time\n**   xToken() is called. Multiple synonyms may be specified for a single token\n**   by making multiple calls to xToken(FTS5_TOKEN_COLOCATED) in sequence. \n**   There is no limit to the number of synonyms that may be provided for a\n**   single token.\n**\n**   In many cases, method (1) above is the best approach. It does not add \n**   extra data to the FTS index or require FTS5 to query for multiple terms,\n**   so it is efficient in terms of disk space and query speed. However, it\n**   does not support prefix queries very well. If, as suggested above, the\n**   token \"first\" is subsituted for \"1st\" by the tokenizer, then the query:\n**\n**   <codeblock>\n**     ... MATCH '1s*'</codeblock>\n**\n**   will not match documents that contain the token \"1st\" (as the tokenizer\n**   will probably not map \"1s\" to any prefix of \"first\").\n**\n**   For full prefix support, method (3) may be preferred. In this case, \n**   because the index contains entries for both \"first\" and \"1st\", prefix\n**   queries such as 'fi*' or '1s*' will match correctly. However, because\n**   extra entries are added to the FTS index, this method uses more space\n**   within the database.\n**\n**   Method (2) offers a midpoint between (1) and (3). Using this method,\n**   a query such as '1s*' will match documents that contain the literal \n**   token \"1st\", but not \"first\" (assuming the tokenizer is not able to\n**   provide synonyms for prefixes). However, a non-prefix query like '1st'\n**   will match against \"1st\" and \"first\". This method does not require\n**   extra disk space, as no extra entries are added to the FTS index. \n**   On the other hand, it may require more CPU cycles to run MATCH queries,\n**   as separate queries of the FTS index are required for each synonym.\n**\n**   When using methods (2) or (3), it is important that the tokenizer only\n**   provide synonyms when tokenizing document text (method (2)) or query\n**   text (method (3)), not both. Doing so will not cause any errors, but is\n**   inefficient.\n*/\ntypedef struct Fts5Tokenizer Fts5Tokenizer;\ntypedef struct fts5_tokenizer fts5_tokenizer;\nstruct fts5_tokenizer {\n  int (*xCreate)(void*, const char **azArg, int nArg, Fts5Tokenizer **ppOut);\n  void (*xDelete)(Fts5Tokenizer*);\n  int (*xTokenize)(Fts5Tokenizer*, \n      void *pCtx,\n      int flags,            /* Mask of FTS5_TOKENIZE_* flags */\n      const char *pText, int nText, \n      int (*xToken)(\n        void *pCtx,         /* Copy of 2nd argument to xTokenize() */\n        int tflags,         /* Mask of FTS5_TOKEN_* flags */\n        const char *pToken, /* Pointer to buffer containing token */\n        int nToken,         /* Size of token in bytes */\n        int iStart,         /* Byte offset of token within input text */\n        int iEnd            /* Byte offset of end of token within input text */\n      )\n  );\n};\n\n/* Flags that may be passed as the third argument to xTokenize() */\n#define FTS5_TOKENIZE_QUERY     0x0001\n#define FTS5_TOKENIZE_PREFIX    0x0002\n#define FTS5_TOKENIZE_DOCUMENT  0x0004\n#define FTS5_TOKENIZE_AUX       0x0008\n\n/* Flags that may be passed by the tokenizer implementation back to FTS5\n** as the third argument to the supplied xToken callback. */\n#define FTS5_TOKEN_COLOCATED    0x0001      /* Same position as prev. token */\n\n/*\n** END OF CUSTOM TOKENIZERS\n*************************************************************************/\n\n/*************************************************************************\n** FTS5 EXTENSION REGISTRATION API\n*/\ntypedef struct fts5_api fts5_api;\nstruct fts5_api {\n  int iVersion;                   /* Currently always set to 2 */\n\n  /* Create a new tokenizer */\n  int (*xCreateTokenizer)(\n    fts5_api *pApi,\n    const char *zName,\n    void *pContext,\n    fts5_tokenizer *pTokenizer,\n    void (*xDestroy)(void*)\n  );\n\n  /* Find an existing tokenizer */\n  int (*xFindTokenizer)(\n    fts5_api *pApi,\n    const char *zName,\n    void **ppContext,\n    fts5_tokenizer *pTokenizer\n  );\n\n  /* Create a new auxiliary function */\n  int (*xCreateFunction)(\n    fts5_api *pApi,\n    const char *zName,\n    void *pContext,\n    fts5_extension_function xFunction,\n    void (*xDestroy)(void*)\n  );\n};\n\n/*\n** END OF REGISTRATION API\n*************************************************************************/\n\n#ifdef __cplusplus\n}  /* end of the 'extern \"C\"' block */\n#endif\n\n#endif /* _FTS5_H */\n\n/******** End of fts5.h *********/\n"
  },
  {
    "path": "GitUpKit/Third-Party/libsqlite3.xcframework/macos-arm64_x86_64/Headers/sqlite3ext.h",
    "content": "/*\n** 2006 June 7\n**\n** The author disclaims copyright to this source code.  In place of\n** a legal notice, here is a blessing:\n**\n**    May you do good and not evil.\n**    May you find forgiveness for yourself and forgive others.\n**    May you share freely, never taking more than you give.\n**\n*************************************************************************\n** This header file defines the SQLite interface for use by\n** shared libraries that want to be imported as extensions into\n** an SQLite instance.  Shared libraries that intend to be loaded\n** as extensions by SQLite should #include this file instead of \n** sqlite3.h.\n*/\n#ifndef SQLITE3EXT_H\n#define SQLITE3EXT_H\n#include \"sqlite3.h\"\n\n/*\n** The following structure holds pointers to all of the SQLite API\n** routines.\n**\n** WARNING:  In order to maintain backwards compatibility, add new\n** interfaces to the end of this structure only.  If you insert new\n** interfaces in the middle of this structure, then older different\n** versions of SQLite will not be able to load each other's shared\n** libraries!\n*/\nstruct sqlite3_api_routines {\n  void * (*aggregate_context)(sqlite3_context*,int nBytes);\n  int  (*aggregate_count)(sqlite3_context*);\n  int  (*bind_blob)(sqlite3_stmt*,int,const void*,int n,void(*)(void*));\n  int  (*bind_double)(sqlite3_stmt*,int,double);\n  int  (*bind_int)(sqlite3_stmt*,int,int);\n  int  (*bind_int64)(sqlite3_stmt*,int,sqlite_int64);\n  int  (*bind_null)(sqlite3_stmt*,int);\n  int  (*bind_parameter_count)(sqlite3_stmt*);\n  int  (*bind_parameter_index)(sqlite3_stmt*,const char*zName);\n  const char * (*bind_parameter_name)(sqlite3_stmt*,int);\n  int  (*bind_text)(sqlite3_stmt*,int,const char*,int n,void(*)(void*));\n  int  (*bind_text16)(sqlite3_stmt*,int,const void*,int,void(*)(void*));\n  int  (*bind_value)(sqlite3_stmt*,int,const sqlite3_value*);\n  int  (*busy_handler)(sqlite3*,int(*)(void*,int),void*);\n  int  (*busy_timeout)(sqlite3*,int ms);\n  int  (*changes)(sqlite3*);\n  int  (*close)(sqlite3*);\n  int  (*collation_needed)(sqlite3*,void*,void(*)(void*,sqlite3*,\n                           int eTextRep,const char*));\n  int  (*collation_needed16)(sqlite3*,void*,void(*)(void*,sqlite3*,\n                             int eTextRep,const void*));\n  const void * (*column_blob)(sqlite3_stmt*,int iCol);\n  int  (*column_bytes)(sqlite3_stmt*,int iCol);\n  int  (*column_bytes16)(sqlite3_stmt*,int iCol);\n  int  (*column_count)(sqlite3_stmt*pStmt);\n  const char * (*column_database_name)(sqlite3_stmt*,int);\n  const void * (*column_database_name16)(sqlite3_stmt*,int);\n  const char * (*column_decltype)(sqlite3_stmt*,int i);\n  const void * (*column_decltype16)(sqlite3_stmt*,int);\n  double  (*column_double)(sqlite3_stmt*,int iCol);\n  int  (*column_int)(sqlite3_stmt*,int iCol);\n  sqlite_int64  (*column_int64)(sqlite3_stmt*,int iCol);\n  const char * (*column_name)(sqlite3_stmt*,int);\n  const void * (*column_name16)(sqlite3_stmt*,int);\n  const char * (*column_origin_name)(sqlite3_stmt*,int);\n  const void * (*column_origin_name16)(sqlite3_stmt*,int);\n  const char * (*column_table_name)(sqlite3_stmt*,int);\n  const void * (*column_table_name16)(sqlite3_stmt*,int);\n  const unsigned char * (*column_text)(sqlite3_stmt*,int iCol);\n  const void * (*column_text16)(sqlite3_stmt*,int iCol);\n  int  (*column_type)(sqlite3_stmt*,int iCol);\n  sqlite3_value* (*column_value)(sqlite3_stmt*,int iCol);\n  void * (*commit_hook)(sqlite3*,int(*)(void*),void*);\n  int  (*complete)(const char*sql);\n  int  (*complete16)(const void*sql);\n  int  (*create_collation)(sqlite3*,const char*,int,void*,\n                           int(*)(void*,int,const void*,int,const void*));\n  int  (*create_collation16)(sqlite3*,const void*,int,void*,\n                             int(*)(void*,int,const void*,int,const void*));\n  int  (*create_function)(sqlite3*,const char*,int,int,void*,\n                          void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                          void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                          void (*xFinal)(sqlite3_context*));\n  int  (*create_function16)(sqlite3*,const void*,int,int,void*,\n                            void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xFinal)(sqlite3_context*));\n  int (*create_module)(sqlite3*,const char*,const sqlite3_module*,void*);\n  int  (*data_count)(sqlite3_stmt*pStmt);\n  sqlite3 * (*db_handle)(sqlite3_stmt*);\n  int (*declare_vtab)(sqlite3*,const char*);\n  int  (*enable_shared_cache)(int);\n  int  (*errcode)(sqlite3*db);\n  const char * (*errmsg)(sqlite3*);\n  const void * (*errmsg16)(sqlite3*);\n  int  (*exec)(sqlite3*,const char*,sqlite3_callback,void*,char**);\n  int  (*expired)(sqlite3_stmt*);\n  int  (*finalize)(sqlite3_stmt*pStmt);\n  void  (*free)(void*);\n  void  (*free_table)(char**result);\n  int  (*get_autocommit)(sqlite3*);\n  void * (*get_auxdata)(sqlite3_context*,int);\n  int  (*get_table)(sqlite3*,const char*,char***,int*,int*,char**);\n  int  (*global_recover)(void);\n  void  (*interruptx)(sqlite3*);\n  sqlite_int64  (*last_insert_rowid)(sqlite3*);\n  const char * (*libversion)(void);\n  int  (*libversion_number)(void);\n  void *(*malloc)(int);\n  char * (*mprintf)(const char*,...);\n  int  (*open)(const char*,sqlite3**);\n  int  (*open16)(const void*,sqlite3**);\n  int  (*prepare)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);\n  int  (*prepare16)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);\n  void * (*profile)(sqlite3*,void(*)(void*,const char*,sqlite_uint64),void*);\n  void  (*progress_handler)(sqlite3*,int,int(*)(void*),void*);\n  void *(*realloc)(void*,int);\n  int  (*reset)(sqlite3_stmt*pStmt);\n  void  (*result_blob)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_double)(sqlite3_context*,double);\n  void  (*result_error)(sqlite3_context*,const char*,int);\n  void  (*result_error16)(sqlite3_context*,const void*,int);\n  void  (*result_int)(sqlite3_context*,int);\n  void  (*result_int64)(sqlite3_context*,sqlite_int64);\n  void  (*result_null)(sqlite3_context*);\n  void  (*result_text)(sqlite3_context*,const char*,int,void(*)(void*));\n  void  (*result_text16)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_text16be)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_text16le)(sqlite3_context*,const void*,int,void(*)(void*));\n  void  (*result_value)(sqlite3_context*,sqlite3_value*);\n  void * (*rollback_hook)(sqlite3*,void(*)(void*),void*);\n  int  (*set_authorizer)(sqlite3*,int(*)(void*,int,const char*,const char*,\n                         const char*,const char*),void*);\n  void  (*set_auxdata)(sqlite3_context*,int,void*,void (*)(void*));\n  char * (*xsnprintf)(int,char*,const char*,...);\n  int  (*step)(sqlite3_stmt*);\n  int  (*table_column_metadata)(sqlite3*,const char*,const char*,const char*,\n                                char const**,char const**,int*,int*,int*);\n  void  (*thread_cleanup)(void);\n  int  (*total_changes)(sqlite3*);\n  void * (*trace)(sqlite3*,void(*xTrace)(void*,const char*),void*);\n  int  (*transfer_bindings)(sqlite3_stmt*,sqlite3_stmt*);\n  void * (*update_hook)(sqlite3*,void(*)(void*,int ,char const*,char const*,\n                                         sqlite_int64),void*);\n  void * (*user_data)(sqlite3_context*);\n  const void * (*value_blob)(sqlite3_value*);\n  int  (*value_bytes)(sqlite3_value*);\n  int  (*value_bytes16)(sqlite3_value*);\n  double  (*value_double)(sqlite3_value*);\n  int  (*value_int)(sqlite3_value*);\n  sqlite_int64  (*value_int64)(sqlite3_value*);\n  int  (*value_numeric_type)(sqlite3_value*);\n  const unsigned char * (*value_text)(sqlite3_value*);\n  const void * (*value_text16)(sqlite3_value*);\n  const void * (*value_text16be)(sqlite3_value*);\n  const void * (*value_text16le)(sqlite3_value*);\n  int  (*value_type)(sqlite3_value*);\n  char *(*vmprintf)(const char*,va_list);\n  /* Added ??? */\n  int (*overload_function)(sqlite3*, const char *zFuncName, int nArg);\n  /* Added by 3.3.13 */\n  int (*prepare_v2)(sqlite3*,const char*,int,sqlite3_stmt**,const char**);\n  int (*prepare16_v2)(sqlite3*,const void*,int,sqlite3_stmt**,const void**);\n  int (*clear_bindings)(sqlite3_stmt*);\n  /* Added by 3.4.1 */\n  int (*create_module_v2)(sqlite3*,const char*,const sqlite3_module*,void*,\n                          void (*xDestroy)(void *));\n  /* Added by 3.5.0 */\n  int (*bind_zeroblob)(sqlite3_stmt*,int,int);\n  int (*blob_bytes)(sqlite3_blob*);\n  int (*blob_close)(sqlite3_blob*);\n  int (*blob_open)(sqlite3*,const char*,const char*,const char*,sqlite3_int64,\n                   int,sqlite3_blob**);\n  int (*blob_read)(sqlite3_blob*,void*,int,int);\n  int (*blob_write)(sqlite3_blob*,const void*,int,int);\n  int (*create_collation_v2)(sqlite3*,const char*,int,void*,\n                             int(*)(void*,int,const void*,int,const void*),\n                             void(*)(void*));\n  int (*file_control)(sqlite3*,const char*,int,void*);\n  sqlite3_int64 (*memory_highwater)(int);\n  sqlite3_int64 (*memory_used)(void);\n  sqlite3_mutex *(*mutex_alloc)(int);\n  void (*mutex_enter)(sqlite3_mutex*);\n  void (*mutex_free)(sqlite3_mutex*);\n  void (*mutex_leave)(sqlite3_mutex*);\n  int (*mutex_try)(sqlite3_mutex*);\n  int (*open_v2)(const char*,sqlite3**,int,const char*);\n  int (*release_memory)(int);\n  void (*result_error_nomem)(sqlite3_context*);\n  void (*result_error_toobig)(sqlite3_context*);\n  int (*sleep)(int);\n  void (*soft_heap_limit)(int);\n  sqlite3_vfs *(*vfs_find)(const char*);\n  int (*vfs_register)(sqlite3_vfs*,int);\n  int (*vfs_unregister)(sqlite3_vfs*);\n  int (*xthreadsafe)(void);\n  void (*result_zeroblob)(sqlite3_context*,int);\n  void (*result_error_code)(sqlite3_context*,int);\n  int (*test_control)(int, ...);\n  void (*randomness)(int,void*);\n  sqlite3 *(*context_db_handle)(sqlite3_context*);\n  int (*extended_result_codes)(sqlite3*,int);\n  int (*limit)(sqlite3*,int,int);\n  sqlite3_stmt *(*next_stmt)(sqlite3*,sqlite3_stmt*);\n  const char *(*sql)(sqlite3_stmt*);\n  int (*status)(int,int*,int*,int);\n  int (*backup_finish)(sqlite3_backup*);\n  sqlite3_backup *(*backup_init)(sqlite3*,const char*,sqlite3*,const char*);\n  int (*backup_pagecount)(sqlite3_backup*);\n  int (*backup_remaining)(sqlite3_backup*);\n  int (*backup_step)(sqlite3_backup*,int);\n  const char *(*compileoption_get)(int);\n  int (*compileoption_used)(const char*);\n  int (*create_function_v2)(sqlite3*,const char*,int,int,void*,\n                            void (*xFunc)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xStep)(sqlite3_context*,int,sqlite3_value**),\n                            void (*xFinal)(sqlite3_context*),\n                            void(*xDestroy)(void*));\n  int (*db_config)(sqlite3*,int,...);\n  sqlite3_mutex *(*db_mutex)(sqlite3*);\n  int (*db_status)(sqlite3*,int,int*,int*,int);\n  int (*extended_errcode)(sqlite3*);\n  void (*log)(int,const char*,...);\n  sqlite3_int64 (*soft_heap_limit64)(sqlite3_int64);\n  const char *(*sourceid)(void);\n  int (*stmt_status)(sqlite3_stmt*,int,int);\n  int (*strnicmp)(const char*,const char*,int);\n  int (*unlock_notify)(sqlite3*,void(*)(void**,int),void*);\n  int (*wal_autocheckpoint)(sqlite3*,int);\n  int (*wal_checkpoint)(sqlite3*,const char*);\n  void *(*wal_hook)(sqlite3*,int(*)(void*,sqlite3*,const char*,int),void*);\n  int (*blob_reopen)(sqlite3_blob*,sqlite3_int64);\n  int (*vtab_config)(sqlite3*,int op,...);\n  int (*vtab_on_conflict)(sqlite3*);\n  /* Version 3.7.16 and later */\n  int (*close_v2)(sqlite3*);\n  const char *(*db_filename)(sqlite3*,const char*);\n  int (*db_readonly)(sqlite3*,const char*);\n  int (*db_release_memory)(sqlite3*);\n  const char *(*errstr)(int);\n  int (*stmt_busy)(sqlite3_stmt*);\n  int (*stmt_readonly)(sqlite3_stmt*);\n  int (*stricmp)(const char*,const char*);\n  int (*uri_boolean)(const char*,const char*,int);\n  sqlite3_int64 (*uri_int64)(const char*,const char*,sqlite3_int64);\n  const char *(*uri_parameter)(const char*,const char*);\n  char *(*xvsnprintf)(int,char*,const char*,va_list);\n  int (*wal_checkpoint_v2)(sqlite3*,const char*,int,int*,int*);\n  /* Version 3.8.7 and later */\n  int (*auto_extension)(void(*)(void));\n  int (*bind_blob64)(sqlite3_stmt*,int,const void*,sqlite3_uint64,\n                     void(*)(void*));\n  int (*bind_text64)(sqlite3_stmt*,int,const char*,sqlite3_uint64,\n                      void(*)(void*),unsigned char);\n  int (*cancel_auto_extension)(void(*)(void));\n  int (*load_extension)(sqlite3*,const char*,const char*,char**);\n  void *(*malloc64)(sqlite3_uint64);\n  sqlite3_uint64 (*msize)(void*);\n  void *(*realloc64)(void*,sqlite3_uint64);\n  void (*reset_auto_extension)(void);\n  void (*result_blob64)(sqlite3_context*,const void*,sqlite3_uint64,\n                        void(*)(void*));\n  void (*result_text64)(sqlite3_context*,const char*,sqlite3_uint64,\n                         void(*)(void*), unsigned char);\n  int (*strglob)(const char*,const char*);\n  /* Version 3.8.11 and later */\n  sqlite3_value *(*value_dup)(const sqlite3_value*);\n  void (*value_free)(sqlite3_value*);\n  int (*result_zeroblob64)(sqlite3_context*,sqlite3_uint64);\n  int (*bind_zeroblob64)(sqlite3_stmt*, int, sqlite3_uint64);\n  /* Version 3.9.0 and later */\n  unsigned int (*value_subtype)(sqlite3_value*);\n  void (*result_subtype)(sqlite3_context*,unsigned int);\n  /* Version 3.10.0 and later */\n  int (*status64)(int,sqlite3_int64*,sqlite3_int64*,int);\n  int (*strlike)(const char*,const char*,unsigned int);\n  int (*db_cacheflush)(sqlite3*);\n  /* Version 3.12.0 and later */\n  int (*system_errno)(sqlite3*);\n  /* Version 3.14.0 and later */\n  int (*trace_v2)(sqlite3*,unsigned,int(*)(unsigned,void*,void*,void*),void*);\n  char *(*expanded_sql)(sqlite3_stmt*);\n  /* Version 3.18.0 and later */\n  void (*set_last_insert_rowid)(sqlite3*,sqlite3_int64);\n  /* Version 3.20.0 and later */\n  int (*prepare_v3)(sqlite3*,const char*,int,unsigned int,\n                    sqlite3_stmt**,const char**);\n  int (*prepare16_v3)(sqlite3*,const void*,int,unsigned int,\n                      sqlite3_stmt**,const void**);\n  int (*bind_pointer)(sqlite3_stmt*,int,void*,const char*,void(*)(void*));\n  void (*result_pointer)(sqlite3_context*,void*,const char*,void(*)(void*));\n  void *(*value_pointer)(sqlite3_value*,const char*);\n  int (*vtab_nochange)(sqlite3_context*);\n  int (*value_nochange)(sqlite3_value*);\n  const char *(*vtab_collation)(sqlite3_index_info*,int);\n};\n\n/*\n** This is the function signature used for all extension entry points.  It\n** is also defined in the file \"loadext.c\".\n*/\ntypedef int (*sqlite3_loadext_entry)(\n  sqlite3 *db,                       /* Handle to the database. */\n  char **pzErrMsg,                   /* Used to set error string on failure. */\n  const sqlite3_api_routines *pThunk /* Extension API function pointers. */\n);\n\n/*\n** The following macros redefine the API routines so that they are\n** redirected through the global sqlite3_api structure.\n**\n** This header file is also used by the loadext.c source file\n** (part of the main SQLite library - not an extension) so that\n** it can get access to the sqlite3_api_routines structure\n** definition.  But the main library does not want to redefine\n** the API.  So the redefinition macros are only valid if the\n** SQLITE_CORE macros is undefined.\n*/\n#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)\n#define sqlite3_aggregate_context      sqlite3_api->aggregate_context\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_aggregate_count        sqlite3_api->aggregate_count\n#endif\n#define sqlite3_bind_blob              sqlite3_api->bind_blob\n#define sqlite3_bind_double            sqlite3_api->bind_double\n#define sqlite3_bind_int               sqlite3_api->bind_int\n#define sqlite3_bind_int64             sqlite3_api->bind_int64\n#define sqlite3_bind_null              sqlite3_api->bind_null\n#define sqlite3_bind_parameter_count   sqlite3_api->bind_parameter_count\n#define sqlite3_bind_parameter_index   sqlite3_api->bind_parameter_index\n#define sqlite3_bind_parameter_name    sqlite3_api->bind_parameter_name\n#define sqlite3_bind_text              sqlite3_api->bind_text\n#define sqlite3_bind_text16            sqlite3_api->bind_text16\n#define sqlite3_bind_value             sqlite3_api->bind_value\n#define sqlite3_busy_handler           sqlite3_api->busy_handler\n#define sqlite3_busy_timeout           sqlite3_api->busy_timeout\n#define sqlite3_changes                sqlite3_api->changes\n#define sqlite3_close                  sqlite3_api->close\n#define sqlite3_collation_needed       sqlite3_api->collation_needed\n#define sqlite3_collation_needed16     sqlite3_api->collation_needed16\n#define sqlite3_column_blob            sqlite3_api->column_blob\n#define sqlite3_column_bytes           sqlite3_api->column_bytes\n#define sqlite3_column_bytes16         sqlite3_api->column_bytes16\n#define sqlite3_column_count           sqlite3_api->column_count\n#define sqlite3_column_database_name   sqlite3_api->column_database_name\n#define sqlite3_column_database_name16 sqlite3_api->column_database_name16\n#define sqlite3_column_decltype        sqlite3_api->column_decltype\n#define sqlite3_column_decltype16      sqlite3_api->column_decltype16\n#define sqlite3_column_double          sqlite3_api->column_double\n#define sqlite3_column_int             sqlite3_api->column_int\n#define sqlite3_column_int64           sqlite3_api->column_int64\n#define sqlite3_column_name            sqlite3_api->column_name\n#define sqlite3_column_name16          sqlite3_api->column_name16\n#define sqlite3_column_origin_name     sqlite3_api->column_origin_name\n#define sqlite3_column_origin_name16   sqlite3_api->column_origin_name16\n#define sqlite3_column_table_name      sqlite3_api->column_table_name\n#define sqlite3_column_table_name16    sqlite3_api->column_table_name16\n#define sqlite3_column_text            sqlite3_api->column_text\n#define sqlite3_column_text16          sqlite3_api->column_text16\n#define sqlite3_column_type            sqlite3_api->column_type\n#define sqlite3_column_value           sqlite3_api->column_value\n#define sqlite3_commit_hook            sqlite3_api->commit_hook\n#define sqlite3_complete               sqlite3_api->complete\n#define sqlite3_complete16             sqlite3_api->complete16\n#define sqlite3_create_collation       sqlite3_api->create_collation\n#define sqlite3_create_collation16     sqlite3_api->create_collation16\n#define sqlite3_create_function        sqlite3_api->create_function\n#define sqlite3_create_function16      sqlite3_api->create_function16\n#define sqlite3_create_module          sqlite3_api->create_module\n#define sqlite3_create_module_v2       sqlite3_api->create_module_v2\n#define sqlite3_data_count             sqlite3_api->data_count\n#define sqlite3_db_handle              sqlite3_api->db_handle\n#define sqlite3_declare_vtab           sqlite3_api->declare_vtab\n#define sqlite3_enable_shared_cache    sqlite3_api->enable_shared_cache\n#define sqlite3_errcode                sqlite3_api->errcode\n#define sqlite3_errmsg                 sqlite3_api->errmsg\n#define sqlite3_errmsg16               sqlite3_api->errmsg16\n#define sqlite3_exec                   sqlite3_api->exec\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_expired                sqlite3_api->expired\n#endif\n#define sqlite3_finalize               sqlite3_api->finalize\n#define sqlite3_free                   sqlite3_api->free\n#define sqlite3_free_table             sqlite3_api->free_table\n#define sqlite3_get_autocommit         sqlite3_api->get_autocommit\n#define sqlite3_get_auxdata            sqlite3_api->get_auxdata\n#define sqlite3_get_table              sqlite3_api->get_table\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_global_recover         sqlite3_api->global_recover\n#endif\n#define sqlite3_interrupt              sqlite3_api->interruptx\n#define sqlite3_last_insert_rowid      sqlite3_api->last_insert_rowid\n#define sqlite3_libversion             sqlite3_api->libversion\n#define sqlite3_libversion_number      sqlite3_api->libversion_number\n#define sqlite3_malloc                 sqlite3_api->malloc\n#define sqlite3_mprintf                sqlite3_api->mprintf\n#define sqlite3_open                   sqlite3_api->open\n#define sqlite3_open16                 sqlite3_api->open16\n#define sqlite3_prepare                sqlite3_api->prepare\n#define sqlite3_prepare16              sqlite3_api->prepare16\n#define sqlite3_prepare_v2             sqlite3_api->prepare_v2\n#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2\n#define sqlite3_profile                sqlite3_api->profile\n#define sqlite3_progress_handler       sqlite3_api->progress_handler\n#define sqlite3_realloc                sqlite3_api->realloc\n#define sqlite3_reset                  sqlite3_api->reset\n#define sqlite3_result_blob            sqlite3_api->result_blob\n#define sqlite3_result_double          sqlite3_api->result_double\n#define sqlite3_result_error           sqlite3_api->result_error\n#define sqlite3_result_error16         sqlite3_api->result_error16\n#define sqlite3_result_int             sqlite3_api->result_int\n#define sqlite3_result_int64           sqlite3_api->result_int64\n#define sqlite3_result_null            sqlite3_api->result_null\n#define sqlite3_result_text            sqlite3_api->result_text\n#define sqlite3_result_text16          sqlite3_api->result_text16\n#define sqlite3_result_text16be        sqlite3_api->result_text16be\n#define sqlite3_result_text16le        sqlite3_api->result_text16le\n#define sqlite3_result_value           sqlite3_api->result_value\n#define sqlite3_rollback_hook          sqlite3_api->rollback_hook\n#define sqlite3_set_authorizer         sqlite3_api->set_authorizer\n#define sqlite3_set_auxdata            sqlite3_api->set_auxdata\n#define sqlite3_snprintf               sqlite3_api->xsnprintf\n#define sqlite3_step                   sqlite3_api->step\n#define sqlite3_table_column_metadata  sqlite3_api->table_column_metadata\n#define sqlite3_thread_cleanup         sqlite3_api->thread_cleanup\n#define sqlite3_total_changes          sqlite3_api->total_changes\n#define sqlite3_trace                  sqlite3_api->trace\n#ifndef SQLITE_OMIT_DEPRECATED\n#define sqlite3_transfer_bindings      sqlite3_api->transfer_bindings\n#endif\n#define sqlite3_update_hook            sqlite3_api->update_hook\n#define sqlite3_user_data              sqlite3_api->user_data\n#define sqlite3_value_blob             sqlite3_api->value_blob\n#define sqlite3_value_bytes            sqlite3_api->value_bytes\n#define sqlite3_value_bytes16          sqlite3_api->value_bytes16\n#define sqlite3_value_double           sqlite3_api->value_double\n#define sqlite3_value_int              sqlite3_api->value_int\n#define sqlite3_value_int64            sqlite3_api->value_int64\n#define sqlite3_value_numeric_type     sqlite3_api->value_numeric_type\n#define sqlite3_value_text             sqlite3_api->value_text\n#define sqlite3_value_text16           sqlite3_api->value_text16\n#define sqlite3_value_text16be         sqlite3_api->value_text16be\n#define sqlite3_value_text16le         sqlite3_api->value_text16le\n#define sqlite3_value_type             sqlite3_api->value_type\n#define sqlite3_vmprintf               sqlite3_api->vmprintf\n#define sqlite3_vsnprintf              sqlite3_api->xvsnprintf\n#define sqlite3_overload_function      sqlite3_api->overload_function\n#define sqlite3_prepare_v2             sqlite3_api->prepare_v2\n#define sqlite3_prepare16_v2           sqlite3_api->prepare16_v2\n#define sqlite3_clear_bindings         sqlite3_api->clear_bindings\n#define sqlite3_bind_zeroblob          sqlite3_api->bind_zeroblob\n#define sqlite3_blob_bytes             sqlite3_api->blob_bytes\n#define sqlite3_blob_close             sqlite3_api->blob_close\n#define sqlite3_blob_open              sqlite3_api->blob_open\n#define sqlite3_blob_read              sqlite3_api->blob_read\n#define sqlite3_blob_write             sqlite3_api->blob_write\n#define sqlite3_create_collation_v2    sqlite3_api->create_collation_v2\n#define sqlite3_file_control           sqlite3_api->file_control\n#define sqlite3_memory_highwater       sqlite3_api->memory_highwater\n#define sqlite3_memory_used            sqlite3_api->memory_used\n#define sqlite3_mutex_alloc            sqlite3_api->mutex_alloc\n#define sqlite3_mutex_enter            sqlite3_api->mutex_enter\n#define sqlite3_mutex_free             sqlite3_api->mutex_free\n#define sqlite3_mutex_leave            sqlite3_api->mutex_leave\n#define sqlite3_mutex_try              sqlite3_api->mutex_try\n#define sqlite3_open_v2                sqlite3_api->open_v2\n#define sqlite3_release_memory         sqlite3_api->release_memory\n#define sqlite3_result_error_nomem     sqlite3_api->result_error_nomem\n#define sqlite3_result_error_toobig    sqlite3_api->result_error_toobig\n#define sqlite3_sleep                  sqlite3_api->sleep\n#define sqlite3_soft_heap_limit        sqlite3_api->soft_heap_limit\n#define sqlite3_vfs_find               sqlite3_api->vfs_find\n#define sqlite3_vfs_register           sqlite3_api->vfs_register\n#define sqlite3_vfs_unregister         sqlite3_api->vfs_unregister\n#define sqlite3_threadsafe             sqlite3_api->xthreadsafe\n#define sqlite3_result_zeroblob        sqlite3_api->result_zeroblob\n#define sqlite3_result_error_code      sqlite3_api->result_error_code\n#define sqlite3_test_control           sqlite3_api->test_control\n#define sqlite3_randomness             sqlite3_api->randomness\n#define sqlite3_context_db_handle      sqlite3_api->context_db_handle\n#define sqlite3_extended_result_codes  sqlite3_api->extended_result_codes\n#define sqlite3_limit                  sqlite3_api->limit\n#define sqlite3_next_stmt              sqlite3_api->next_stmt\n#define sqlite3_sql                    sqlite3_api->sql\n#define sqlite3_status                 sqlite3_api->status\n#define sqlite3_backup_finish          sqlite3_api->backup_finish\n#define sqlite3_backup_init            sqlite3_api->backup_init\n#define sqlite3_backup_pagecount       sqlite3_api->backup_pagecount\n#define sqlite3_backup_remaining       sqlite3_api->backup_remaining\n#define sqlite3_backup_step            sqlite3_api->backup_step\n#define sqlite3_compileoption_get      sqlite3_api->compileoption_get\n#define sqlite3_compileoption_used     sqlite3_api->compileoption_used\n#define sqlite3_create_function_v2     sqlite3_api->create_function_v2\n#define sqlite3_db_config              sqlite3_api->db_config\n#define sqlite3_db_mutex               sqlite3_api->db_mutex\n#define sqlite3_db_status              sqlite3_api->db_status\n#define sqlite3_extended_errcode       sqlite3_api->extended_errcode\n#define sqlite3_log                    sqlite3_api->log\n#define sqlite3_soft_heap_limit64      sqlite3_api->soft_heap_limit64\n#define sqlite3_sourceid               sqlite3_api->sourceid\n#define sqlite3_stmt_status            sqlite3_api->stmt_status\n#define sqlite3_strnicmp               sqlite3_api->strnicmp\n#define sqlite3_unlock_notify          sqlite3_api->unlock_notify\n#define sqlite3_wal_autocheckpoint     sqlite3_api->wal_autocheckpoint\n#define sqlite3_wal_checkpoint         sqlite3_api->wal_checkpoint\n#define sqlite3_wal_hook               sqlite3_api->wal_hook\n#define sqlite3_blob_reopen            sqlite3_api->blob_reopen\n#define sqlite3_vtab_config            sqlite3_api->vtab_config\n#define sqlite3_vtab_on_conflict       sqlite3_api->vtab_on_conflict\n/* Version 3.7.16 and later */\n#define sqlite3_close_v2               sqlite3_api->close_v2\n#define sqlite3_db_filename            sqlite3_api->db_filename\n#define sqlite3_db_readonly            sqlite3_api->db_readonly\n#define sqlite3_db_release_memory      sqlite3_api->db_release_memory\n#define sqlite3_errstr                 sqlite3_api->errstr\n#define sqlite3_stmt_busy              sqlite3_api->stmt_busy\n#define sqlite3_stmt_readonly          sqlite3_api->stmt_readonly\n#define sqlite3_stricmp                sqlite3_api->stricmp\n#define sqlite3_uri_boolean            sqlite3_api->uri_boolean\n#define sqlite3_uri_int64              sqlite3_api->uri_int64\n#define sqlite3_uri_parameter          sqlite3_api->uri_parameter\n#define sqlite3_uri_vsnprintf          sqlite3_api->xvsnprintf\n#define sqlite3_wal_checkpoint_v2      sqlite3_api->wal_checkpoint_v2\n/* Version 3.8.7 and later */\n#define sqlite3_auto_extension         sqlite3_api->auto_extension\n#define sqlite3_bind_blob64            sqlite3_api->bind_blob64\n#define sqlite3_bind_text64            sqlite3_api->bind_text64\n#define sqlite3_cancel_auto_extension  sqlite3_api->cancel_auto_extension\n#define sqlite3_load_extension         sqlite3_api->load_extension\n#define sqlite3_malloc64               sqlite3_api->malloc64\n#define sqlite3_msize                  sqlite3_api->msize\n#define sqlite3_realloc64              sqlite3_api->realloc64\n#define sqlite3_reset_auto_extension   sqlite3_api->reset_auto_extension\n#define sqlite3_result_blob64          sqlite3_api->result_blob64\n#define sqlite3_result_text64          sqlite3_api->result_text64\n#define sqlite3_strglob                sqlite3_api->strglob\n/* Version 3.8.11 and later */\n#define sqlite3_value_dup              sqlite3_api->value_dup\n#define sqlite3_value_free             sqlite3_api->value_free\n#define sqlite3_result_zeroblob64      sqlite3_api->result_zeroblob64\n#define sqlite3_bind_zeroblob64        sqlite3_api->bind_zeroblob64\n/* Version 3.9.0 and later */\n#define sqlite3_value_subtype          sqlite3_api->value_subtype\n#define sqlite3_result_subtype         sqlite3_api->result_subtype\n/* Version 3.10.0 and later */\n#define sqlite3_status64               sqlite3_api->status64\n#define sqlite3_strlike                sqlite3_api->strlike\n#define sqlite3_db_cacheflush          sqlite3_api->db_cacheflush\n/* Version 3.12.0 and later */\n#define sqlite3_system_errno           sqlite3_api->system_errno\n/* Version 3.14.0 and later */\n#define sqlite3_trace_v2               sqlite3_api->trace_v2\n#define sqlite3_expanded_sql           sqlite3_api->expanded_sql\n/* Version 3.18.0 and later */\n#define sqlite3_set_last_insert_rowid  sqlite3_api->set_last_insert_rowid\n/* Version 3.20.0 and later */\n#define sqlite3_prepare_v3             sqlite3_api->prepare_v3\n#define sqlite3_prepare16_v3           sqlite3_api->prepare16_v3\n#define sqlite3_bind_pointer           sqlite3_api->bind_pointer\n#define sqlite3_result_pointer         sqlite3_api->result_pointer\n#define sqlite3_value_pointer          sqlite3_api->value_pointer\n/* Version 3.22.0 and later */\n#define sqlite3_vtab_nochange          sqlite3_api->vtab_nochange\n#define sqlite3_value_nochange         sqltie3_api->value_nochange\n#define sqlite3_vtab_collation         sqltie3_api->vtab_collation\n#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */\n\n#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)\n  /* This case when the file really is being compiled as a loadable \n  ** extension */\n# define SQLITE_EXTENSION_INIT1     const sqlite3_api_routines *sqlite3_api=0;\n# define SQLITE_EXTENSION_INIT2(v)  sqlite3_api=v;\n# define SQLITE_EXTENSION_INIT3     \\\n    extern const sqlite3_api_routines *sqlite3_api;\n#else\n  /* This case when the file is being statically linked into the \n  ** application */\n# define SQLITE_EXTENSION_INIT1     /*no-op*/\n# define SQLITE_EXTENSION_INIT2(v)  (void)v; /* unused parameter */\n# define SQLITE_EXTENSION_INIT3     /*no-op*/\n#endif\n\n#endif /* SQLITE3EXT_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>AvailableLibraries</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>macos-arm64_x86_64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libssh2.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>macos</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64_x86_64-simulator</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libssh2.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t\t<key>SupportedPlatformVariant</key>\n\t\t\t<string>simulator</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libssh2.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t</dict>\n\t</array>\n\t<key>CFBundlePackageType</key>\n\t<string>XFWK</string>\n\t<key>XCFrameworkFormatVersion</key>\n\t<string>1.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/ios-arm64/Headers/libssh2.h",
    "content": "/* Copyright (c) 2004-2009, Sara Golemon <sarag@libssh2.org>\n * Copyright (c) 2009-2015 Daniel Stenberg\n * Copyright (c) 2010 Simon Josefsson <simon@josefsson.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n#ifndef LIBSSH2_H\n#define LIBSSH2_H 1\n\n#define LIBSSH2_COPYRIGHT \"2004-2019 The libssh2 project and its contributors.\"\n\n/* We use underscore instead of dash when appending DEV in dev versions just\n   to make the BANNER define (used by src/session.c) be a valid SSH\n   banner. Release versions have no appended strings and may of course not\n   have dashes either. */\n#define LIBSSH2_VERSION \"1.9.0\"\n\n/* The numeric version number is also available \"in parts\" by using these\n   defines: */\n#define LIBSSH2_VERSION_MAJOR 1\n#define LIBSSH2_VERSION_MINOR 9\n#define LIBSSH2_VERSION_PATCH 0\n\n/* This is the numeric version of the libssh2 version number, meant for easier\n   parsing and comparions by programs. The LIBSSH2_VERSION_NUM define will\n   always follow this syntax:\n\n         0xXXYYZZ\n\n   Where XX, YY and ZZ are the main version, release and patch numbers in\n   hexadecimal (using 8 bits each). All three numbers are always represented\n   using two digits.  1.2 would appear as \"0x010200\" while version 9.11.7\n   appears as \"0x090b07\".\n\n   This 6-digit (24 bits) hexadecimal number does not show pre-release number,\n   and it is always a greater number in a more recent release. It makes\n   comparisons with greater than and less than work.\n*/\n#define LIBSSH2_VERSION_NUM 0x010900\n\n/*\n * This is the date and time when the full source package was created. The\n * timestamp is not stored in the source code repo, as the timestamp is\n * properly set in the tarballs by the maketgz script.\n *\n * The format of the date should follow this template:\n *\n * \"Mon Feb 12 11:35:33 UTC 2007\"\n */\n#define LIBSSH2_TIMESTAMP \"Thu Jun 20 06:19:26 UTC 2019\"\n\n#ifndef RC_INVOKED\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n#ifdef _WIN32\n# include <basetsd.h>\n# include <winsock2.h>\n#endif\n\n#include <stddef.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\n/* Allow alternate API prefix from CFLAGS or calling app */\n#ifndef LIBSSH2_API\n# ifdef LIBSSH2_WIN32\n#  ifdef _WINDLL\n#   ifdef LIBSSH2_LIBRARY\n#    define LIBSSH2_API __declspec(dllexport)\n#   else\n#    define LIBSSH2_API __declspec(dllimport)\n#   endif /* LIBSSH2_LIBRARY */\n#  else\n#   define LIBSSH2_API\n#  endif\n# else /* !LIBSSH2_WIN32 */\n#  define LIBSSH2_API\n# endif /* LIBSSH2_WIN32 */\n#endif /* LIBSSH2_API */\n\n#ifdef HAVE_SYS_UIO_H\n# include <sys/uio.h>\n#endif\n\n#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))\n# include <sys/bsdskt.h>\ntypedef unsigned char uint8_t;\ntypedef unsigned short int uint16_t;\ntypedef unsigned int uint32_t;\ntypedef int int32_t;\ntypedef unsigned long long uint64_t;\ntypedef long long int64_t;\n#endif\n\n#ifdef _MSC_VER\ntypedef unsigned char uint8_t;\ntypedef unsigned short int uint16_t;\ntypedef unsigned int uint32_t;\ntypedef __int32 int32_t;\ntypedef __int64 int64_t;\ntypedef unsigned __int64 uint64_t;\ntypedef unsigned __int64 libssh2_uint64_t;\ntypedef __int64 libssh2_int64_t;\n#if (!defined(HAVE_SSIZE_T) && !defined(ssize_t))\ntypedef SSIZE_T ssize_t;\n#define HAVE_SSIZE_T\n#endif\n#else\n#include <stdint.h>\ntypedef unsigned long long libssh2_uint64_t;\ntypedef long long libssh2_int64_t;\n#endif\n\n#ifdef WIN32\ntypedef SOCKET libssh2_socket_t;\n#define LIBSSH2_INVALID_SOCKET INVALID_SOCKET\n#else /* !WIN32 */\ntypedef int libssh2_socket_t;\n#define LIBSSH2_INVALID_SOCKET -1\n#endif /* WIN32 */\n\n/*\n * Determine whether there is small or large file support on windows.\n */\n\n#if defined(_MSC_VER) && !defined(_WIN32_WCE)\n#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)\n#    define LIBSSH2_USE_WIN32_LARGE_FILES\n#  else\n#    define LIBSSH2_USE_WIN32_SMALL_FILES\n#  endif\n#endif\n\n#if defined(__MINGW32__) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES)\n#  define LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(__WATCOMC__) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES)\n#  define LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(__POCC__)\n#  undef LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(_WIN32) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES) && \\\n    !defined(LIBSSH2_USE_WIN32_SMALL_FILES)\n#  define LIBSSH2_USE_WIN32_SMALL_FILES\n#endif\n\n/*\n * Large file (>2Gb) support using WIN32 functions.\n */\n\n#ifdef LIBSSH2_USE_WIN32_LARGE_FILES\n#  include <io.h>\n#  include <sys/types.h>\n#  include <sys/stat.h>\n#  define LIBSSH2_STRUCT_STAT_SIZE_FORMAT    \"%I64d\"\ntypedef struct _stati64 libssh2_struct_stat;\ntypedef __int64 libssh2_struct_stat_size;\n#endif\n\n/*\n * Small file (<2Gb) support using WIN32 functions.\n */\n\n#ifdef LIBSSH2_USE_WIN32_SMALL_FILES\n#  include <sys/types.h>\n#  include <sys/stat.h>\n#  ifndef _WIN32_WCE\n#    define LIBSSH2_STRUCT_STAT_SIZE_FORMAT    \"%d\"\ntypedef struct _stat libssh2_struct_stat;\ntypedef off_t libssh2_struct_stat_size;\n#  endif\n#endif\n\n#ifndef LIBSSH2_STRUCT_STAT_SIZE_FORMAT\n#  ifdef __VMS\n/* We have to roll our own format here because %z is a C99-ism we don't\n   have. */\n#    if __USE_OFF64_T || __USING_STD_STAT\n#      define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%Ld\"\n#    else\n#      define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%d\"\n#    endif\n#  else\n#    define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%zd\"\n#  endif\ntypedef struct stat libssh2_struct_stat;\ntypedef off_t libssh2_struct_stat_size;\n#endif\n\n/* Part of every banner, user specified or not */\n#define LIBSSH2_SSH_BANNER                  \"SSH-2.0-libssh2_\" LIBSSH2_VERSION\n\n#define LIBSSH2_SSH_DEFAULT_BANNER            LIBSSH2_SSH_BANNER\n#define LIBSSH2_SSH_DEFAULT_BANNER_WITH_CRLF  LIBSSH2_SSH_DEFAULT_BANNER \"\\r\\n\"\n\n/* Default generate and safe prime sizes for\n   diffie-hellman-group-exchange-sha1 */\n#define LIBSSH2_DH_GEX_MINGROUP     1024\n#define LIBSSH2_DH_GEX_OPTGROUP     1536\n#define LIBSSH2_DH_GEX_MAXGROUP     2048\n\n/* Defaults for pty requests */\n#define LIBSSH2_TERM_WIDTH      80\n#define LIBSSH2_TERM_HEIGHT     24\n#define LIBSSH2_TERM_WIDTH_PX   0\n#define LIBSSH2_TERM_HEIGHT_PX  0\n\n/* 1/4 second */\n#define LIBSSH2_SOCKET_POLL_UDELAY      250000\n/* 0.25 * 120 == 30 seconds */\n#define LIBSSH2_SOCKET_POLL_MAXLOOPS    120\n\n/* Maximum size to allow a payload to compress to, plays it safe by falling\n   short of spec limits */\n#define LIBSSH2_PACKET_MAXCOMP      32000\n\n/* Maximum size to allow a payload to deccompress to, plays it safe by\n   allowing more than spec requires */\n#define LIBSSH2_PACKET_MAXDECOMP    40000\n\n/* Maximum size for an inbound compressed payload, plays it safe by\n   overshooting spec limits */\n#define LIBSSH2_PACKET_MAXPAYLOAD   40000\n\n/* Malloc callbacks */\n#define LIBSSH2_ALLOC_FUNC(name)   void *name(size_t count, void **abstract)\n#define LIBSSH2_REALLOC_FUNC(name) void *name(void *ptr, size_t count, \\\n                                              void **abstract)\n#define LIBSSH2_FREE_FUNC(name)    void name(void *ptr, void **abstract)\n\ntypedef struct _LIBSSH2_USERAUTH_KBDINT_PROMPT\n{\n    char *text;\n    unsigned int length;\n    unsigned char echo;\n} LIBSSH2_USERAUTH_KBDINT_PROMPT;\n\ntypedef struct _LIBSSH2_USERAUTH_KBDINT_RESPONSE\n{\n    char *text;\n    unsigned int length;\n} LIBSSH2_USERAUTH_KBDINT_RESPONSE;\n\n/* 'publickey' authentication callback */\n#define LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC(name) \\\n  int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len, \\\n           const unsigned char *data, size_t data_len, void **abstract)\n\n/* 'keyboard-interactive' authentication callback */\n#define LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(name_) \\\n void name_(const char *name, int name_len, const char *instruction, \\\n            int instruction_len, int num_prompts, \\\n            const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts,              \\\n            LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, void **abstract)\n\n/* Callbacks for special SSH packets */\n#define LIBSSH2_IGNORE_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, const char *message, int message_len, \\\n           void **abstract)\n\n#define LIBSSH2_DEBUG_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, int always_display, const char *message, \\\n           int message_len, const char *language, int language_len, \\\n           void **abstract)\n\n#define LIBSSH2_DISCONNECT_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, int reason, const char *message, \\\n           int message_len, const char *language, int language_len, \\\n           void **abstract)\n\n#define LIBSSH2_PASSWD_CHANGEREQ_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, char **newpw, int *newpw_len, \\\n           void **abstract)\n\n#define LIBSSH2_MACERROR_FUNC(name) \\\n int name(LIBSSH2_SESSION *session, const char *packet, int packet_len, \\\n          void **abstract)\n\n#define LIBSSH2_X11_OPEN_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, LIBSSH2_CHANNEL *channel, \\\n           const char *shost, int sport, void **abstract)\n\n#define LIBSSH2_CHANNEL_CLOSE_FUNC(name) \\\n  void name(LIBSSH2_SESSION *session, void **session_abstract, \\\n            LIBSSH2_CHANNEL *channel, void **channel_abstract)\n\n/* I/O callbacks */\n#define LIBSSH2_RECV_FUNC(name)                                         \\\n    ssize_t name(libssh2_socket_t socket,                               \\\n                 void *buffer, size_t length,                           \\\n                 int flags, void **abstract)\n#define LIBSSH2_SEND_FUNC(name)                                         \\\n    ssize_t name(libssh2_socket_t socket,                               \\\n                 const void *buffer, size_t length,                     \\\n                 int flags, void **abstract)\n\n/* libssh2_session_callback_set() constants */\n#define LIBSSH2_CALLBACK_IGNORE             0\n#define LIBSSH2_CALLBACK_DEBUG              1\n#define LIBSSH2_CALLBACK_DISCONNECT         2\n#define LIBSSH2_CALLBACK_MACERROR           3\n#define LIBSSH2_CALLBACK_X11                4\n#define LIBSSH2_CALLBACK_SEND               5\n#define LIBSSH2_CALLBACK_RECV               6\n\n/* libssh2_session_method_pref() constants */\n#define LIBSSH2_METHOD_KEX          0\n#define LIBSSH2_METHOD_HOSTKEY      1\n#define LIBSSH2_METHOD_CRYPT_CS     2\n#define LIBSSH2_METHOD_CRYPT_SC     3\n#define LIBSSH2_METHOD_MAC_CS       4\n#define LIBSSH2_METHOD_MAC_SC       5\n#define LIBSSH2_METHOD_COMP_CS      6\n#define LIBSSH2_METHOD_COMP_SC      7\n#define LIBSSH2_METHOD_LANG_CS      8\n#define LIBSSH2_METHOD_LANG_SC      9\n\n/* flags */\n#define LIBSSH2_FLAG_SIGPIPE        1\n#define LIBSSH2_FLAG_COMPRESS       2\n\ntypedef struct _LIBSSH2_SESSION                     LIBSSH2_SESSION;\ntypedef struct _LIBSSH2_CHANNEL                     LIBSSH2_CHANNEL;\ntypedef struct _LIBSSH2_LISTENER                    LIBSSH2_LISTENER;\ntypedef struct _LIBSSH2_KNOWNHOSTS                  LIBSSH2_KNOWNHOSTS;\ntypedef struct _LIBSSH2_AGENT                       LIBSSH2_AGENT;\n\ntypedef struct _LIBSSH2_POLLFD {\n    unsigned char type; /* LIBSSH2_POLLFD_* below */\n\n    union {\n        libssh2_socket_t socket; /* File descriptors -- examined with\n                                    system select() call */\n        LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */\n        LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound\n                                       connections waiting to be accepted? */\n    } fd;\n\n    unsigned long events; /* Requested Events */\n    unsigned long revents; /* Returned Events */\n} LIBSSH2_POLLFD;\n\n/* Poll FD Descriptor Types */\n#define LIBSSH2_POLLFD_SOCKET       1\n#define LIBSSH2_POLLFD_CHANNEL      2\n#define LIBSSH2_POLLFD_LISTENER     3\n\n/* Note: Win32 Doesn't actually have a poll() implementation, so some of these\n   values are faked with select() data */\n/* Poll FD events/revents -- Match sys/poll.h where possible */\n#define LIBSSH2_POLLFD_POLLIN           0x0001 /* Data available to be read or\n                                                  connection available --\n                                                  All */\n#define LIBSSH2_POLLFD_POLLPRI          0x0002 /* Priority data available to\n                                                  be read -- Socket only */\n#define LIBSSH2_POLLFD_POLLEXT          0x0002 /* Extended data available to\n                                                  be read -- Channel only */\n#define LIBSSH2_POLLFD_POLLOUT          0x0004 /* Can may be written --\n                                                  Socket/Channel */\n/* revents only */\n#define LIBSSH2_POLLFD_POLLERR          0x0008 /* Error Condition -- Socket */\n#define LIBSSH2_POLLFD_POLLHUP          0x0010 /* HangUp/EOF -- Socket */\n#define LIBSSH2_POLLFD_SESSION_CLOSED   0x0010 /* Session Disconnect */\n#define LIBSSH2_POLLFD_POLLNVAL         0x0020 /* Invalid request -- Socket\n                                                  Only */\n#define LIBSSH2_POLLFD_POLLEX           0x0040 /* Exception Condition --\n                                                  Socket/Win32 */\n#define LIBSSH2_POLLFD_CHANNEL_CLOSED   0x0080 /* Channel Disconnect */\n#define LIBSSH2_POLLFD_LISTENER_CLOSED  0x0080 /* Listener Disconnect */\n\n#define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION\n/* Block Direction Types */\n#define LIBSSH2_SESSION_BLOCK_INBOUND                  0x0001\n#define LIBSSH2_SESSION_BLOCK_OUTBOUND                 0x0002\n\n/* Hash Types */\n#define LIBSSH2_HOSTKEY_HASH_MD5                            1\n#define LIBSSH2_HOSTKEY_HASH_SHA1                           2\n#define LIBSSH2_HOSTKEY_HASH_SHA256                         3\n\n/* Hostkey Types */\n#define LIBSSH2_HOSTKEY_TYPE_UNKNOWN            0\n#define LIBSSH2_HOSTKEY_TYPE_RSA                1\n#define LIBSSH2_HOSTKEY_TYPE_DSS                2\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_256          3\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_384          4\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_521          5\n#define LIBSSH2_HOSTKEY_TYPE_ED25519            6\n\n/* Disconnect Codes (defined by SSH protocol) */\n#define SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT          1\n#define SSH_DISCONNECT_PROTOCOL_ERROR                       2\n#define SSH_DISCONNECT_KEY_EXCHANGE_FAILED                  3\n#define SSH_DISCONNECT_RESERVED                             4\n#define SSH_DISCONNECT_MAC_ERROR                            5\n#define SSH_DISCONNECT_COMPRESSION_ERROR                    6\n#define SSH_DISCONNECT_SERVICE_NOT_AVAILABLE                7\n#define SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED       8\n#define SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE              9\n#define SSH_DISCONNECT_CONNECTION_LOST                      10\n#define SSH_DISCONNECT_BY_APPLICATION                       11\n#define SSH_DISCONNECT_TOO_MANY_CONNECTIONS                 12\n#define SSH_DISCONNECT_AUTH_CANCELLED_BY_USER               13\n#define SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE       14\n#define SSH_DISCONNECT_ILLEGAL_USER_NAME                    15\n\n/* Error Codes (defined by libssh2) */\n#define LIBSSH2_ERROR_NONE                      0\n\n/* The library once used -1 as a generic error return value on numerous places\n   through the code, which subsequently was converted to\n   LIBSSH2_ERROR_SOCKET_NONE uses over time. As this is a generic error code,\n   the goal is to never ever return this code but instead make sure that a\n   more accurate and descriptive error code is used. */\n#define LIBSSH2_ERROR_SOCKET_NONE               -1\n\n#define LIBSSH2_ERROR_BANNER_RECV               -2\n#define LIBSSH2_ERROR_BANNER_SEND               -3\n#define LIBSSH2_ERROR_INVALID_MAC               -4\n#define LIBSSH2_ERROR_KEX_FAILURE               -5\n#define LIBSSH2_ERROR_ALLOC                     -6\n#define LIBSSH2_ERROR_SOCKET_SEND               -7\n#define LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE      -8\n#define LIBSSH2_ERROR_TIMEOUT                   -9\n#define LIBSSH2_ERROR_HOSTKEY_INIT              -10\n#define LIBSSH2_ERROR_HOSTKEY_SIGN              -11\n#define LIBSSH2_ERROR_DECRYPT                   -12\n#define LIBSSH2_ERROR_SOCKET_DISCONNECT         -13\n#define LIBSSH2_ERROR_PROTO                     -14\n#define LIBSSH2_ERROR_PASSWORD_EXPIRED          -15\n#define LIBSSH2_ERROR_FILE                      -16\n#define LIBSSH2_ERROR_METHOD_NONE               -17\n#define LIBSSH2_ERROR_AUTHENTICATION_FAILED     -18\n#define LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED    \\\n    LIBSSH2_ERROR_AUTHENTICATION_FAILED\n#define LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED      -19\n#define LIBSSH2_ERROR_CHANNEL_OUTOFORDER        -20\n#define LIBSSH2_ERROR_CHANNEL_FAILURE           -21\n#define LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED    -22\n#define LIBSSH2_ERROR_CHANNEL_UNKNOWN           -23\n#define LIBSSH2_ERROR_CHANNEL_WINDOW_EXCEEDED   -24\n#define LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED   -25\n#define LIBSSH2_ERROR_CHANNEL_CLOSED            -26\n#define LIBSSH2_ERROR_CHANNEL_EOF_SENT          -27\n#define LIBSSH2_ERROR_SCP_PROTOCOL              -28\n#define LIBSSH2_ERROR_ZLIB                      -29\n#define LIBSSH2_ERROR_SOCKET_TIMEOUT            -30\n#define LIBSSH2_ERROR_SFTP_PROTOCOL             -31\n#define LIBSSH2_ERROR_REQUEST_DENIED            -32\n#define LIBSSH2_ERROR_METHOD_NOT_SUPPORTED      -33\n#define LIBSSH2_ERROR_INVAL                     -34\n#define LIBSSH2_ERROR_INVALID_POLL_TYPE         -35\n#define LIBSSH2_ERROR_PUBLICKEY_PROTOCOL        -36\n#define LIBSSH2_ERROR_EAGAIN                    -37\n#define LIBSSH2_ERROR_BUFFER_TOO_SMALL          -38\n#define LIBSSH2_ERROR_BAD_USE                   -39\n#define LIBSSH2_ERROR_COMPRESS                  -40\n#define LIBSSH2_ERROR_OUT_OF_BOUNDARY           -41\n#define LIBSSH2_ERROR_AGENT_PROTOCOL            -42\n#define LIBSSH2_ERROR_SOCKET_RECV               -43\n#define LIBSSH2_ERROR_ENCRYPT                   -44\n#define LIBSSH2_ERROR_BAD_SOCKET                -45\n#define LIBSSH2_ERROR_KNOWN_HOSTS               -46\n#define LIBSSH2_ERROR_CHANNEL_WINDOW_FULL       -47\n#define LIBSSH2_ERROR_KEYFILE_AUTH_FAILED       -48\n\n/* this is a define to provide the old (<= 1.2.7) name */\n#define LIBSSH2_ERROR_BANNER_NONE LIBSSH2_ERROR_BANNER_RECV\n\n/* Global API */\n#define LIBSSH2_INIT_NO_CRYPTO        0x0001\n\n/*\n * libssh2_init()\n *\n * Initialize the libssh2 functions.  This typically initialize the\n * crypto library.  It uses a global state, and is not thread safe --\n * you must make sure this function is not called concurrently.\n *\n * Flags can be:\n * 0:                              Normal initialize\n * LIBSSH2_INIT_NO_CRYPTO:         Do not initialize the crypto library (ie.\n *                                 OPENSSL_add_cipher_algoritms() for OpenSSL\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int libssh2_init(int flags);\n\n/*\n * libssh2_exit()\n *\n * Exit the libssh2 functions and free's all memory used internal.\n */\nLIBSSH2_API void libssh2_exit(void);\n\n/*\n * libssh2_free()\n *\n * Deallocate memory allocated by earlier call to libssh2 functions.\n */\nLIBSSH2_API void libssh2_free(LIBSSH2_SESSION *session, void *ptr);\n\n/*\n * libssh2_session_supported_algs()\n *\n * Fills algs with a list of supported acryptographic algorithms. Returns a\n * non-negative number (number of supported algorithms) on success or a\n * negative number (an eror code) on failure.\n *\n * NOTE: on success, algs must be deallocated (by calling libssh2_free) when\n * not needed anymore\n */\nLIBSSH2_API int libssh2_session_supported_algs(LIBSSH2_SESSION* session,\n                                               int method_type,\n                                               const char ***algs);\n\n/* Session API */\nLIBSSH2_API LIBSSH2_SESSION *\nlibssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),\n                        LIBSSH2_FREE_FUNC((*my_free)),\n                        LIBSSH2_REALLOC_FUNC((*my_realloc)), void *abstract);\n#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL, NULL)\n\nLIBSSH2_API void **libssh2_session_abstract(LIBSSH2_SESSION *session);\n\nLIBSSH2_API void *libssh2_session_callback_set(LIBSSH2_SESSION *session,\n                                               int cbtype, void *callback);\nLIBSSH2_API int libssh2_session_banner_set(LIBSSH2_SESSION *session,\n                                           const char *banner);\nLIBSSH2_API int libssh2_banner_set(LIBSSH2_SESSION *session,\n                                   const char *banner);\n\nLIBSSH2_API int libssh2_session_startup(LIBSSH2_SESSION *session, int sock);\nLIBSSH2_API int libssh2_session_handshake(LIBSSH2_SESSION *session,\n                                          libssh2_socket_t sock);\nLIBSSH2_API int libssh2_session_disconnect_ex(LIBSSH2_SESSION *session,\n                                              int reason,\n                                              const char *description,\n                                              const char *lang);\n#define libssh2_session_disconnect(session, description) \\\n  libssh2_session_disconnect_ex((session), SSH_DISCONNECT_BY_APPLICATION, \\\n                                (description), \"\")\n\nLIBSSH2_API int libssh2_session_free(LIBSSH2_SESSION *session);\n\nLIBSSH2_API const char *libssh2_hostkey_hash(LIBSSH2_SESSION *session,\n                                             int hash_type);\n\nLIBSSH2_API const char *libssh2_session_hostkey(LIBSSH2_SESSION *session,\n                                                size_t *len, int *type);\n\nLIBSSH2_API int libssh2_session_method_pref(LIBSSH2_SESSION *session,\n                                            int method_type,\n                                            const char *prefs);\nLIBSSH2_API const char *libssh2_session_methods(LIBSSH2_SESSION *session,\n                                                int method_type);\nLIBSSH2_API int libssh2_session_last_error(LIBSSH2_SESSION *session,\n                                           char **errmsg,\n                                           int *errmsg_len, int want_buf);\nLIBSSH2_API int libssh2_session_last_errno(LIBSSH2_SESSION *session);\nLIBSSH2_API int libssh2_session_set_last_error(LIBSSH2_SESSION* session,\n                                               int errcode,\n                                               const char *errmsg);\nLIBSSH2_API int libssh2_session_block_directions(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int libssh2_session_flag(LIBSSH2_SESSION *session, int flag,\n                                     int value);\nLIBSSH2_API const char *libssh2_session_banner_get(LIBSSH2_SESSION *session);\n\n/* Userauth API */\nLIBSSH2_API char *libssh2_userauth_list(LIBSSH2_SESSION *session,\n                                        const char *username,\n                                        unsigned int username_len);\nLIBSSH2_API int libssh2_userauth_authenticated(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int\nlibssh2_userauth_password_ex(LIBSSH2_SESSION *session,\n                             const char *username,\n                             unsigned int username_len,\n                             const char *password,\n                             unsigned int password_len,\n                             LIBSSH2_PASSWD_CHANGEREQ_FUNC\n                             ((*passwd_change_cb)));\n\n#define libssh2_userauth_password(session, username, password) \\\n libssh2_userauth_password_ex((session), (username),           \\\n                              (unsigned int)strlen(username),  \\\n                              (password), (unsigned int)strlen(password), NULL)\n\nLIBSSH2_API int\nlibssh2_userauth_publickey_fromfile_ex(LIBSSH2_SESSION *session,\n                                       const char *username,\n                                       unsigned int username_len,\n                                       const char *publickey,\n                                       const char *privatekey,\n                                       const char *passphrase);\n\n#define libssh2_userauth_publickey_fromfile(session, username, publickey, \\\n                                            privatekey, passphrase)     \\\n    libssh2_userauth_publickey_fromfile_ex((session), (username),       \\\n                                           (unsigned int)strlen(username), \\\n                                           (publickey),                 \\\n                                           (privatekey), (passphrase))\n\nLIBSSH2_API int\nlibssh2_userauth_publickey(LIBSSH2_SESSION *session,\n                           const char *username,\n                           const unsigned char *pubkeydata,\n                           size_t pubkeydata_len,\n                           LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC\n                           ((*sign_callback)),\n                           void **abstract);\n\nLIBSSH2_API int\nlibssh2_userauth_hostbased_fromfile_ex(LIBSSH2_SESSION *session,\n                                       const char *username,\n                                       unsigned int username_len,\n                                       const char *publickey,\n                                       const char *privatekey,\n                                       const char *passphrase,\n                                       const char *hostname,\n                                       unsigned int hostname_len,\n                                       const char *local_username,\n                                       unsigned int local_username_len);\n\n#define libssh2_userauth_hostbased_fromfile(session, username, publickey, \\\n                                            privatekey, passphrase, hostname) \\\n libssh2_userauth_hostbased_fromfile_ex((session), (username), \\\n                                        (unsigned int)strlen(username), \\\n                                        (publickey),                    \\\n                                        (privatekey), (passphrase),     \\\n                                        (hostname),                     \\\n                                        (unsigned int)strlen(hostname), \\\n                                        (username),                     \\\n                                        (unsigned int)strlen(username))\n\nLIBSSH2_API int\nlibssh2_userauth_publickey_frommemory(LIBSSH2_SESSION *session,\n                                      const char *username,\n                                      size_t username_len,\n                                      const char *publickeyfiledata,\n                                      size_t publickeyfiledata_len,\n                                      const char *privatekeyfiledata,\n                                      size_t privatekeyfiledata_len,\n                                      const char *passphrase);\n\n/*\n * response_callback is provided with filled by library prompts array,\n * but client must allocate and fill individual responses. Responses\n * array is already allocated. Responses data will be freed by libssh2\n * after callback return, but before subsequent callback invokation.\n */\nLIBSSH2_API int\nlibssh2_userauth_keyboard_interactive_ex(LIBSSH2_SESSION* session,\n                                         const char *username,\n                                         unsigned int username_len,\n                                         LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(\n                                                       (*response_callback)));\n\n#define libssh2_userauth_keyboard_interactive(session, username,        \\\n                                              response_callback)        \\\n    libssh2_userauth_keyboard_interactive_ex((session), (username),     \\\n                                             (unsigned int)strlen(username), \\\n                                             (response_callback))\n\nLIBSSH2_API int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds,\n                             long timeout);\n\n/* Channel API */\n#define LIBSSH2_CHANNEL_WINDOW_DEFAULT  (2*1024*1024)\n#define LIBSSH2_CHANNEL_PACKET_DEFAULT  32768\n#define LIBSSH2_CHANNEL_MINADJUST       1024\n\n/* Extended Data Handling */\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL        0\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE        1\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE         2\n\n#define SSH_EXTENDED_DATA_STDERR 1\n\n/* Returned by any function that would block during a read/write opperation */\n#define LIBSSH2CHANNEL_EAGAIN LIBSSH2_ERROR_EAGAIN\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_open_ex(LIBSSH2_SESSION *session, const char *channel_type,\n                        unsigned int channel_type_len,\n                        unsigned int window_size, unsigned int packet_size,\n                        const char *message, unsigned int message_len);\n\n#define libssh2_channel_open_session(session) \\\n  libssh2_channel_open_ex((session), \"session\", sizeof(\"session\") - 1, \\\n                          LIBSSH2_CHANNEL_WINDOW_DEFAULT, \\\n                          LIBSSH2_CHANNEL_PACKET_DEFAULT, NULL, 0)\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *session, const char *host,\n                                int port, const char *shost, int sport);\n#define libssh2_channel_direct_tcpip(session, host, port) \\\n  libssh2_channel_direct_tcpip_ex((session), (host), (port), \"127.0.0.1\", 22)\n\nLIBSSH2_API LIBSSH2_LISTENER *\nlibssh2_channel_forward_listen_ex(LIBSSH2_SESSION *session, const char *host,\n                                  int port, int *bound_port,\n                                  int queue_maxsize);\n#define libssh2_channel_forward_listen(session, port) \\\n libssh2_channel_forward_listen_ex((session), NULL, (port), NULL, 16)\n\nLIBSSH2_API int libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener);\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_forward_accept(LIBSSH2_LISTENER *listener);\n\nLIBSSH2_API int libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel,\n                                          const char *varname,\n                                          unsigned int varname_len,\n                                          const char *value,\n                                          unsigned int value_len);\n\n#define libssh2_channel_setenv(channel, varname, value)                 \\\n    libssh2_channel_setenv_ex((channel), (varname),                     \\\n                              (unsigned int)strlen(varname), (value),   \\\n                              (unsigned int)strlen(value))\n\nLIBSSH2_API int libssh2_channel_request_pty_ex(LIBSSH2_CHANNEL *channel,\n                                               const char *term,\n                                               unsigned int term_len,\n                                               const char *modes,\n                                               unsigned int modes_len,\n                                               int width, int height,\n                                               int width_px, int height_px);\n#define libssh2_channel_request_pty(channel, term)                      \\\n    libssh2_channel_request_pty_ex((channel), (term),                   \\\n                                   (unsigned int)strlen(term),          \\\n                                   NULL, 0,                             \\\n                                   LIBSSH2_TERM_WIDTH,                  \\\n                                   LIBSSH2_TERM_HEIGHT,                 \\\n                                   LIBSSH2_TERM_WIDTH_PX,               \\\n                                   LIBSSH2_TERM_HEIGHT_PX)\n\nLIBSSH2_API int libssh2_channel_request_pty_size_ex(LIBSSH2_CHANNEL *channel,\n                                                    int width, int height,\n                                                    int width_px,\n                                                    int height_px);\n#define libssh2_channel_request_pty_size(channel, width, height) \\\n  libssh2_channel_request_pty_size_ex((channel), (width), (height), 0, 0)\n\nLIBSSH2_API int libssh2_channel_x11_req_ex(LIBSSH2_CHANNEL *channel,\n                                           int single_connection,\n                                           const char *auth_proto,\n                                           const char *auth_cookie,\n                                           int screen_number);\n#define libssh2_channel_x11_req(channel, screen_number) \\\n libssh2_channel_x11_req_ex((channel), 0, NULL, NULL, (screen_number))\n\nLIBSSH2_API int libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel,\n                                                const char *request,\n                                                unsigned int request_len,\n                                                const char *message,\n                                                unsigned int message_len);\n#define libssh2_channel_shell(channel) \\\n  libssh2_channel_process_startup((channel), \"shell\", sizeof(\"shell\") - 1, \\\n                                  NULL, 0)\n#define libssh2_channel_exec(channel, command) \\\n  libssh2_channel_process_startup((channel), \"exec\", sizeof(\"exec\") - 1, \\\n                                  (command), (unsigned int)strlen(command))\n#define libssh2_channel_subsystem(channel, subsystem) \\\n  libssh2_channel_process_startup((channel), \"subsystem\",              \\\n                                  sizeof(\"subsystem\") - 1, (subsystem), \\\n                                  (unsigned int)strlen(subsystem))\n\nLIBSSH2_API ssize_t libssh2_channel_read_ex(LIBSSH2_CHANNEL *channel,\n                                            int stream_id, char *buf,\n                                            size_t buflen);\n#define libssh2_channel_read(channel, buf, buflen) \\\n  libssh2_channel_read_ex((channel), 0, (buf), (buflen))\n#define libssh2_channel_read_stderr(channel, buf, buflen) \\\n  libssh2_channel_read_ex((channel), SSH_EXTENDED_DATA_STDERR, (buf), (buflen))\n\nLIBSSH2_API int libssh2_poll_channel_read(LIBSSH2_CHANNEL *channel,\n                                          int extended);\n\nLIBSSH2_API unsigned long\nlibssh2_channel_window_read_ex(LIBSSH2_CHANNEL *channel,\n                               unsigned long *read_avail,\n                               unsigned long *window_size_initial);\n#define libssh2_channel_window_read(channel) \\\n  libssh2_channel_window_read_ex((channel), NULL, NULL)\n\n/* libssh2_channel_receive_window_adjust is DEPRECATED, do not use! */\nLIBSSH2_API unsigned long\nlibssh2_channel_receive_window_adjust(LIBSSH2_CHANNEL *channel,\n                                      unsigned long adjustment,\n                                      unsigned char force);\n\nLIBSSH2_API int\nlibssh2_channel_receive_window_adjust2(LIBSSH2_CHANNEL *channel,\n                                       unsigned long adjustment,\n                                       unsigned char force,\n                                       unsigned int *storewindow);\n\nLIBSSH2_API ssize_t libssh2_channel_write_ex(LIBSSH2_CHANNEL *channel,\n                                             int stream_id, const char *buf,\n                                             size_t buflen);\n\n#define libssh2_channel_write(channel, buf, buflen) \\\n  libssh2_channel_write_ex((channel), 0, (buf), (buflen))\n#define libssh2_channel_write_stderr(channel, buf, buflen)              \\\n    libssh2_channel_write_ex((channel), SSH_EXTENDED_DATA_STDERR,       \\\n                             (buf), (buflen))\n\nLIBSSH2_API unsigned long\nlibssh2_channel_window_write_ex(LIBSSH2_CHANNEL *channel,\n                                unsigned long *window_size_initial);\n#define libssh2_channel_window_write(channel) \\\n  libssh2_channel_window_write_ex((channel), NULL)\n\nLIBSSH2_API void libssh2_session_set_blocking(LIBSSH2_SESSION* session,\n                                              int blocking);\nLIBSSH2_API int libssh2_session_get_blocking(LIBSSH2_SESSION* session);\n\nLIBSSH2_API void libssh2_channel_set_blocking(LIBSSH2_CHANNEL *channel,\n                                              int blocking);\n\nLIBSSH2_API void libssh2_session_set_timeout(LIBSSH2_SESSION* session,\n                                             long timeout);\nLIBSSH2_API long libssh2_session_get_timeout(LIBSSH2_SESSION* session);\n\n/* libssh2_channel_handle_extended_data is DEPRECATED, do not use! */\nLIBSSH2_API void libssh2_channel_handle_extended_data(LIBSSH2_CHANNEL *channel,\n                                                      int ignore_mode);\nLIBSSH2_API int libssh2_channel_handle_extended_data2(LIBSSH2_CHANNEL *channel,\n                                                      int ignore_mode);\n\n/* libssh2_channel_ignore_extended_data() is defined below for BC with version\n * 0.1\n *\n * Future uses should use libssh2_channel_handle_extended_data() directly if\n * LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE is passed, extended data will be read\n * (FIFO) from the standard data channel\n */\n/* DEPRECATED */\n#define libssh2_channel_ignore_extended_data(channel, ignore) \\\n  libssh2_channel_handle_extended_data((channel),                       \\\n                                       (ignore) ?                       \\\n                                       LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE : \\\n                                       LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL)\n\n#define LIBSSH2_CHANNEL_FLUSH_EXTENDED_DATA     -1\n#define LIBSSH2_CHANNEL_FLUSH_ALL               -2\nLIBSSH2_API int libssh2_channel_flush_ex(LIBSSH2_CHANNEL *channel,\n                                         int streamid);\n#define libssh2_channel_flush(channel) libssh2_channel_flush_ex((channel), 0)\n#define libssh2_channel_flush_stderr(channel) \\\n libssh2_channel_flush_ex((channel), SSH_EXTENDED_DATA_STDERR)\n\nLIBSSH2_API int libssh2_channel_get_exit_status(LIBSSH2_CHANNEL* channel);\nLIBSSH2_API int libssh2_channel_get_exit_signal(LIBSSH2_CHANNEL* channel,\n                                                char **exitsignal,\n                                                size_t *exitsignal_len,\n                                                char **errmsg,\n                                                size_t *errmsg_len,\n                                                char **langtag,\n                                                size_t *langtag_len);\nLIBSSH2_API int libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_wait_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_close(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_wait_closed(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_free(LIBSSH2_CHANNEL *channel);\n\n/* libssh2_scp_recv is DEPRECATED, do not use! */\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session,\n                                              const char *path,\n                                              struct stat *sb);\n/* Use libssh2_scp_recv2 for large (> 2GB) file support on windows */\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_recv2(LIBSSH2_SESSION *session,\n                                               const char *path,\n                                               libssh2_struct_stat *sb);\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_send_ex(LIBSSH2_SESSION *session,\n                                                 const char *path, int mode,\n                                                 size_t size, long mtime,\n                                                 long atime);\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_scp_send64(LIBSSH2_SESSION *session, const char *path, int mode,\n                   libssh2_int64_t size, time_t mtime, time_t atime);\n\n#define libssh2_scp_send(session, path, mode, size) \\\n  libssh2_scp_send_ex((session), (path), (mode), (size), 0, 0)\n\nLIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,\n                                      unsigned int *dest_len,\n                                      const char *src, unsigned int src_len);\n\nLIBSSH2_API\nconst char *libssh2_version(int req_version_num);\n\n#define HAVE_LIBSSH2_KNOWNHOST_API 0x010101 /* since 1.1.1 */\n#define HAVE_LIBSSH2_VERSION_API   0x010100 /* libssh2_version since 1.1 */\n\nstruct libssh2_knownhost {\n    unsigned int magic;  /* magic stored by the library */\n    void *node; /* handle to the internal representation of this host */\n    char *name; /* this is NULL if no plain text host name exists */\n    char *key;  /* key in base64/printable format */\n    int typemask;\n};\n\n/*\n * libssh2_knownhost_init\n *\n * Init a collection of known hosts. Returns the pointer to a collection.\n *\n */\nLIBSSH2_API LIBSSH2_KNOWNHOSTS *\nlibssh2_knownhost_init(LIBSSH2_SESSION *session);\n\n/*\n * libssh2_knownhost_add\n *\n * Add a host and its associated key to the collection of known hosts.\n *\n * The 'type' argument specifies on what format the given host and keys are:\n *\n * plain  - ascii \"hostname.domain.tld\"\n * sha1   - SHA1(<salt> <host>) base64-encoded!\n * custom - another hash\n *\n * If 'sha1' is selected as type, the salt must be provided to the salt\n * argument. This too base64 encoded.\n *\n * The SHA-1 hash is what OpenSSH can be told to use in known_hosts files.  If\n * a custom type is used, salt is ignored and you must provide the host\n * pre-hashed when checking for it in the libssh2_knownhost_check() function.\n *\n * The keylen parameter may be omitted (zero) if the key is provided as a\n * NULL-terminated base64-encoded string.\n */\n\n/* host format (2 bits) */\n#define LIBSSH2_KNOWNHOST_TYPE_MASK    0xffff\n#define LIBSSH2_KNOWNHOST_TYPE_PLAIN   1\n#define LIBSSH2_KNOWNHOST_TYPE_SHA1    2 /* always base64 encoded */\n#define LIBSSH2_KNOWNHOST_TYPE_CUSTOM  3\n\n/* key format (2 bits) */\n#define LIBSSH2_KNOWNHOST_KEYENC_MASK     (3<<16)\n#define LIBSSH2_KNOWNHOST_KEYENC_RAW      (1<<16)\n#define LIBSSH2_KNOWNHOST_KEYENC_BASE64   (2<<16)\n\n/* type of key (3 bits) */\n#define LIBSSH2_KNOWNHOST_KEY_MASK         (15<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SHIFT        18\n#define LIBSSH2_KNOWNHOST_KEY_RSA1         (1<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SSHRSA       (2<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SSHDSS       (3<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_256    (4<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_384    (5<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_521    (6<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ED25519      (7<<18)\n#define LIBSSH2_KNOWNHOST_KEY_UNKNOWN      (15<<18)\n\nLIBSSH2_API int\nlibssh2_knownhost_add(LIBSSH2_KNOWNHOSTS *hosts,\n                      const char *host,\n                      const char *salt,\n                      const char *key, size_t keylen, int typemask,\n                      struct libssh2_knownhost **store);\n\n/*\n * libssh2_knownhost_addc\n *\n * Add a host and its associated key to the collection of known hosts.\n *\n * Takes a comment argument that may be NULL.  A NULL comment indicates\n * there is no comment and the entry will end directly after the key\n * when written out to a file.  An empty string \"\" comment will indicate an\n * empty comment which will cause a single space to be written after the key.\n *\n * The 'type' argument specifies on what format the given host and keys are:\n *\n * plain  - ascii \"hostname.domain.tld\"\n * sha1   - SHA1(<salt> <host>) base64-encoded!\n * custom - another hash\n *\n * If 'sha1' is selected as type, the salt must be provided to the salt\n * argument. This too base64 encoded.\n *\n * The SHA-1 hash is what OpenSSH can be told to use in known_hosts files.  If\n * a custom type is used, salt is ignored and you must provide the host\n * pre-hashed when checking for it in the libssh2_knownhost_check() function.\n *\n * The keylen parameter may be omitted (zero) if the key is provided as a\n * NULL-terminated base64-encoded string.\n */\n\nLIBSSH2_API int\nlibssh2_knownhost_addc(LIBSSH2_KNOWNHOSTS *hosts,\n                       const char *host,\n                       const char *salt,\n                       const char *key, size_t keylen,\n                       const char *comment, size_t commentlen, int typemask,\n                       struct libssh2_knownhost **store);\n\n/*\n * libssh2_knownhost_check\n *\n * Check a host and its associated key against the collection of known hosts.\n *\n * The type is the type/format of the given host name.\n *\n * plain  - ascii \"hostname.domain.tld\"\n * custom - prehashed base64 encoded. Note that this cannot use any salts.\n *\n *\n * 'knownhost' may be set to NULL if you don't care about that info.\n *\n * Returns:\n *\n * LIBSSH2_KNOWNHOST_CHECK_* values, see below\n *\n */\n\n#define LIBSSH2_KNOWNHOST_CHECK_MATCH    0\n#define LIBSSH2_KNOWNHOST_CHECK_MISMATCH 1\n#define LIBSSH2_KNOWNHOST_CHECK_NOTFOUND 2\n#define LIBSSH2_KNOWNHOST_CHECK_FAILURE  3\n\nLIBSSH2_API int\nlibssh2_knownhost_check(LIBSSH2_KNOWNHOSTS *hosts,\n                        const char *host, const char *key, size_t keylen,\n                        int typemask,\n                        struct libssh2_knownhost **knownhost);\n\n/* this function is identital to the above one, but also takes a port\n   argument that allows libssh2 to do a better check */\nLIBSSH2_API int\nlibssh2_knownhost_checkp(LIBSSH2_KNOWNHOSTS *hosts,\n                         const char *host, int port,\n                         const char *key, size_t keylen,\n                         int typemask,\n                         struct libssh2_knownhost **knownhost);\n\n/*\n * libssh2_knownhost_del\n *\n * Remove a host from the collection of known hosts. The 'entry' struct is\n * retrieved by a call to libssh2_knownhost_check().\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_del(LIBSSH2_KNOWNHOSTS *hosts,\n                      struct libssh2_knownhost *entry);\n\n/*\n * libssh2_knownhost_free\n *\n * Free an entire collection of known hosts.\n *\n */\nLIBSSH2_API void\nlibssh2_knownhost_free(LIBSSH2_KNOWNHOSTS *hosts);\n\n/*\n * libssh2_knownhost_readline()\n *\n * Pass in a line of a file of 'type'. It makes libssh2 read this line.\n *\n * LIBSSH2_KNOWNHOST_FILE_OPENSSH is the only supported type.\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,\n                           const char *line, size_t len, int type);\n\n/*\n * libssh2_knownhost_readfile\n *\n * Add hosts+key pairs from a given file.\n *\n * Returns a negative value for error or number of successfully added hosts.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n */\n\n#define LIBSSH2_KNOWNHOST_FILE_OPENSSH 1\n\nLIBSSH2_API int\nlibssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,\n                           const char *filename, int type);\n\n/*\n * libssh2_knownhost_writeline()\n *\n * Ask libssh2 to convert a known host to an output line for storage.\n *\n * Note that this function returns LIBSSH2_ERROR_BUFFER_TOO_SMALL if the given\n * output buffer is too small to hold the desired output.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_writeline(LIBSSH2_KNOWNHOSTS *hosts,\n                            struct libssh2_knownhost *known,\n                            char *buffer, size_t buflen,\n                            size_t *outlen, /* the amount of written data */\n                            int type);\n\n/*\n * libssh2_knownhost_writefile\n *\n * Write hosts+key pairs to a given file.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n */\n\nLIBSSH2_API int\nlibssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,\n                            const char *filename, int type);\n\n/*\n * libssh2_knownhost_get()\n *\n * Traverse the internal list of known hosts. Pass NULL to 'prev' to get\n * the first one. Or pass a poiner to the previously returned one to get the\n * next.\n *\n * Returns:\n * 0 if a fine host was stored in 'store'\n * 1 if end of hosts\n * [negative] on errors\n */\nLIBSSH2_API int\nlibssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,\n                      struct libssh2_knownhost **store,\n                      struct libssh2_knownhost *prev);\n\n#define HAVE_LIBSSH2_AGENT_API 0x010202 /* since 1.2.2 */\n\nstruct libssh2_agent_publickey {\n    unsigned int magic;              /* magic stored by the library */\n    void *node;     /* handle to the internal representation of key */\n    unsigned char *blob;           /* public key blob */\n    size_t blob_len;               /* length of the public key blob */\n    char *comment;                 /* comment in printable format */\n};\n\n/*\n * libssh2_agent_init\n *\n * Init an ssh-agent handle. Returns the pointer to the handle.\n *\n */\nLIBSSH2_API LIBSSH2_AGENT *\nlibssh2_agent_init(LIBSSH2_SESSION *session);\n\n/*\n * libssh2_agent_connect()\n *\n * Connect to an ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_connect(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_list_identities()\n *\n * Request an ssh-agent to list identities.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_list_identities(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_get_identity()\n *\n * Traverse the internal list of public keys. Pass NULL to 'prev' to get\n * the first one. Or pass a poiner to the previously returned one to get the\n * next.\n *\n * Returns:\n * 0 if a fine public key was stored in 'store'\n * 1 if end of public keys\n * [negative] on errors\n */\nLIBSSH2_API int\nlibssh2_agent_get_identity(LIBSSH2_AGENT *agent,\n               struct libssh2_agent_publickey **store,\n               struct libssh2_agent_publickey *prev);\n\n/*\n * libssh2_agent_userauth()\n *\n * Do publickey user authentication with the help of ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_userauth(LIBSSH2_AGENT *agent,\n               const char *username,\n               struct libssh2_agent_publickey *identity);\n\n/*\n * libssh2_agent_disconnect()\n *\n * Close a connection to an ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_disconnect(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_free()\n *\n * Free an ssh-agent handle.  This function also frees the internal\n * collection of public keys.\n */\nLIBSSH2_API void\nlibssh2_agent_free(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_set_identity_path()\n *\n * Allows a custom agent identity socket path beyond SSH_AUTH_SOCK env\n *\n */\nLIBSSH2_API void\nlibssh2_agent_set_identity_path(LIBSSH2_AGENT *agent,\n                                const char *path);\n\n/*\n * libssh2_agent_get_identity_path()\n *\n * Returns the custom agent identity socket path if set\n *\n */\nLIBSSH2_API const char *\nlibssh2_agent_get_identity_path(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_keepalive_config()\n *\n * Set how often keepalive messages should be sent.  WANT_REPLY\n * indicates whether the keepalive messages should request a response\n * from the server.  INTERVAL is number of seconds that can pass\n * without any I/O, use 0 (the default) to disable keepalives.  To\n * avoid some busy-loop corner-cases, if you specify an interval of 1\n * it will be treated as 2.\n *\n * Note that non-blocking applications are responsible for sending the\n * keepalive messages using libssh2_keepalive_send().\n */\nLIBSSH2_API void libssh2_keepalive_config(LIBSSH2_SESSION *session,\n                                          int want_reply,\n                                          unsigned interval);\n\n/*\n * libssh2_keepalive_send()\n *\n * Send a keepalive message if needed.  SECONDS_TO_NEXT indicates how\n * many seconds you can sleep after this call before you need to call\n * it again.  Returns 0 on success, or LIBSSH2_ERROR_SOCKET_SEND on\n * I/O errors.\n */\nLIBSSH2_API int libssh2_keepalive_send(LIBSSH2_SESSION *session,\n                                       int *seconds_to_next);\n\n/* NOTE NOTE NOTE\n   libssh2_trace() has no function in builds that aren't built with debug\n   enabled\n */\nLIBSSH2_API int libssh2_trace(LIBSSH2_SESSION *session, int bitmask);\n#define LIBSSH2_TRACE_TRANS (1<<1)\n#define LIBSSH2_TRACE_KEX   (1<<2)\n#define LIBSSH2_TRACE_AUTH  (1<<3)\n#define LIBSSH2_TRACE_CONN  (1<<4)\n#define LIBSSH2_TRACE_SCP   (1<<5)\n#define LIBSSH2_TRACE_SFTP  (1<<6)\n#define LIBSSH2_TRACE_ERROR (1<<7)\n#define LIBSSH2_TRACE_PUBLICKEY (1<<8)\n#define LIBSSH2_TRACE_SOCKET (1<<9)\n\ntypedef void (*libssh2_trace_handler_func)(LIBSSH2_SESSION*,\n                                           void *,\n                                           const char *,\n                                           size_t);\nLIBSSH2_API int libssh2_trace_sethandler(LIBSSH2_SESSION *session,\n                                         void *context,\n                                         libssh2_trace_handler_func callback);\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* !RC_INVOKED */\n\n#endif /* LIBSSH2_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/ios-arm64/Headers/libssh2_publickey.h",
    "content": "/* Copyright (c) 2004-2006, Sara Golemon <sarag@libssh2.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n/* Note: This include file is only needed for using the\n * publickey SUBSYSTEM which is not the same as publickey\n * authentication.  For authentication you only need libssh2.h\n *\n * For more information on the publickey subsystem,\n * refer to IETF draft: secsh-publickey\n */\n\n#ifndef LIBSSH2_PUBLICKEY_H\n#define LIBSSH2_PUBLICKEY_H 1\n\n#include \"libssh2.h\"\n\ntypedef struct _LIBSSH2_PUBLICKEY               LIBSSH2_PUBLICKEY;\n\ntypedef struct _libssh2_publickey_attribute {\n    const char *name;\n    unsigned long name_len;\n    const char *value;\n    unsigned long value_len;\n    char mandatory;\n} libssh2_publickey_attribute;\n\ntypedef struct _libssh2_publickey_list {\n    unsigned char *packet; /* For freeing */\n\n    const unsigned char *name;\n    unsigned long name_len;\n    const unsigned char *blob;\n    unsigned long blob_len;\n    unsigned long num_attrs;\n    libssh2_publickey_attribute *attrs; /* free me */\n} libssh2_publickey_list;\n\n/* Generally use the first macro here, but if both name and value are string\n   literals, you can use _fast() to take advantage of preprocessing */\n#define libssh2_publickey_attribute(name, value, mandatory) \\\n  { (name), strlen(name), (value), strlen(value), (mandatory) },\n#define libssh2_publickey_attribute_fast(name, value, mandatory) \\\n  { (name), sizeof(name) - 1, (value), sizeof(value) - 1, (mandatory) },\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Publickey Subsystem */\nLIBSSH2_API LIBSSH2_PUBLICKEY *\nlibssh2_publickey_init(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int\nlibssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey,\n                         const unsigned char *name,\n                         unsigned long name_len,\n                         const unsigned char *blob,\n                         unsigned long blob_len, char overwrite,\n                         unsigned long num_attrs,\n                         const libssh2_publickey_attribute attrs[]);\n#define libssh2_publickey_add(pkey, name, blob, blob_len, overwrite,    \\\n                              num_attrs, attrs)                         \\\n  libssh2_publickey_add_ex((pkey), (name), strlen(name), (blob), (blob_len), \\\n                           (overwrite), (num_attrs), (attrs))\n\nLIBSSH2_API int libssh2_publickey_remove_ex(LIBSSH2_PUBLICKEY *pkey,\n                                            const unsigned char *name,\n                                            unsigned long name_len,\n                                            const unsigned char *blob,\n                                            unsigned long blob_len);\n#define libssh2_publickey_remove(pkey, name, blob, blob_len) \\\n  libssh2_publickey_remove_ex((pkey), (name), strlen(name), (blob), (blob_len))\n\nLIBSSH2_API int\nlibssh2_publickey_list_fetch(LIBSSH2_PUBLICKEY *pkey,\n                             unsigned long *num_keys,\n                             libssh2_publickey_list **pkey_list);\nLIBSSH2_API void\nlibssh2_publickey_list_free(LIBSSH2_PUBLICKEY *pkey,\n                            libssh2_publickey_list *pkey_list);\n\nLIBSSH2_API int libssh2_publickey_shutdown(LIBSSH2_PUBLICKEY *pkey);\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* ifndef: LIBSSH2_PUBLICKEY_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/ios-arm64/Headers/libssh2_sftp.h",
    "content": "/* Copyright (c) 2004-2008, Sara Golemon <sarag@libssh2.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n#ifndef LIBSSH2_SFTP_H\n#define LIBSSH2_SFTP_H 1\n\n#include \"libssh2.h\"\n\n#ifndef WIN32\n#include <unistd.h>\n#endif\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Note: Version 6 was documented at the time of writing\n * However it was marked as \"DO NOT IMPLEMENT\" due to pending changes\n *\n * Let's start with Version 3 (The version found in OpenSSH) and go from there\n */\n#define LIBSSH2_SFTP_VERSION        3\n\ntypedef struct _LIBSSH2_SFTP                LIBSSH2_SFTP;\ntypedef struct _LIBSSH2_SFTP_HANDLE         LIBSSH2_SFTP_HANDLE;\ntypedef struct _LIBSSH2_SFTP_ATTRIBUTES     LIBSSH2_SFTP_ATTRIBUTES;\ntypedef struct _LIBSSH2_SFTP_STATVFS        LIBSSH2_SFTP_STATVFS;\n\n/* Flags for open_ex() */\n#define LIBSSH2_SFTP_OPENFILE           0\n#define LIBSSH2_SFTP_OPENDIR            1\n\n/* Flags for rename_ex() */\n#define LIBSSH2_SFTP_RENAME_OVERWRITE   0x00000001\n#define LIBSSH2_SFTP_RENAME_ATOMIC      0x00000002\n#define LIBSSH2_SFTP_RENAME_NATIVE      0x00000004\n\n/* Flags for stat_ex() */\n#define LIBSSH2_SFTP_STAT               0\n#define LIBSSH2_SFTP_LSTAT              1\n#define LIBSSH2_SFTP_SETSTAT            2\n\n/* Flags for symlink_ex() */\n#define LIBSSH2_SFTP_SYMLINK            0\n#define LIBSSH2_SFTP_READLINK           1\n#define LIBSSH2_SFTP_REALPATH           2\n\n/* Flags for sftp_mkdir() */\n#define LIBSSH2_SFTP_DEFAULT_MODE      -1\n\n/* SFTP attribute flag bits */\n#define LIBSSH2_SFTP_ATTR_SIZE              0x00000001\n#define LIBSSH2_SFTP_ATTR_UIDGID            0x00000002\n#define LIBSSH2_SFTP_ATTR_PERMISSIONS       0x00000004\n#define LIBSSH2_SFTP_ATTR_ACMODTIME         0x00000008\n#define LIBSSH2_SFTP_ATTR_EXTENDED          0x80000000\n\n/* SFTP statvfs flag bits */\n#define LIBSSH2_SFTP_ST_RDONLY              0x00000001\n#define LIBSSH2_SFTP_ST_NOSUID              0x00000002\n\nstruct _LIBSSH2_SFTP_ATTRIBUTES {\n    /* If flags & ATTR_* bit is set, then the value in this struct will be\n     * meaningful Otherwise it should be ignored\n     */\n    unsigned long flags;\n\n    libssh2_uint64_t filesize;\n    unsigned long uid, gid;\n    unsigned long permissions;\n    unsigned long atime, mtime;\n};\n\nstruct _LIBSSH2_SFTP_STATVFS {\n    libssh2_uint64_t  f_bsize;    /* file system block size */\n    libssh2_uint64_t  f_frsize;   /* fragment size */\n    libssh2_uint64_t  f_blocks;   /* size of fs in f_frsize units */\n    libssh2_uint64_t  f_bfree;    /* # free blocks */\n    libssh2_uint64_t  f_bavail;   /* # free blocks for non-root */\n    libssh2_uint64_t  f_files;    /* # inodes */\n    libssh2_uint64_t  f_ffree;    /* # free inodes */\n    libssh2_uint64_t  f_favail;   /* # free inodes for non-root */\n    libssh2_uint64_t  f_fsid;     /* file system ID */\n    libssh2_uint64_t  f_flag;     /* mount flags */\n    libssh2_uint64_t  f_namemax;  /* maximum filename length */\n};\n\n/* SFTP filetypes */\n#define LIBSSH2_SFTP_TYPE_REGULAR           1\n#define LIBSSH2_SFTP_TYPE_DIRECTORY         2\n#define LIBSSH2_SFTP_TYPE_SYMLINK           3\n#define LIBSSH2_SFTP_TYPE_SPECIAL           4\n#define LIBSSH2_SFTP_TYPE_UNKNOWN           5\n#define LIBSSH2_SFTP_TYPE_SOCKET            6\n#define LIBSSH2_SFTP_TYPE_CHAR_DEVICE       7\n#define LIBSSH2_SFTP_TYPE_BLOCK_DEVICE      8\n#define LIBSSH2_SFTP_TYPE_FIFO              9\n\n/*\n * Reproduce the POSIX file modes here for systems that are not POSIX\n * compliant.\n *\n * These is used in \"permissions\" of \"struct _LIBSSH2_SFTP_ATTRIBUTES\"\n */\n/* File type */\n#define LIBSSH2_SFTP_S_IFMT         0170000     /* type of file mask */\n#define LIBSSH2_SFTP_S_IFIFO        0010000     /* named pipe (fifo) */\n#define LIBSSH2_SFTP_S_IFCHR        0020000     /* character special */\n#define LIBSSH2_SFTP_S_IFDIR        0040000     /* directory */\n#define LIBSSH2_SFTP_S_IFBLK        0060000     /* block special */\n#define LIBSSH2_SFTP_S_IFREG        0100000     /* regular */\n#define LIBSSH2_SFTP_S_IFLNK        0120000     /* symbolic link */\n#define LIBSSH2_SFTP_S_IFSOCK       0140000     /* socket */\n\n/* File mode */\n/* Read, write, execute/search by owner */\n#define LIBSSH2_SFTP_S_IRWXU        0000700     /* RWX mask for owner */\n#define LIBSSH2_SFTP_S_IRUSR        0000400     /* R for owner */\n#define LIBSSH2_SFTP_S_IWUSR        0000200     /* W for owner */\n#define LIBSSH2_SFTP_S_IXUSR        0000100     /* X for owner */\n/* Read, write, execute/search by group */\n#define LIBSSH2_SFTP_S_IRWXG        0000070     /* RWX mask for group */\n#define LIBSSH2_SFTP_S_IRGRP        0000040     /* R for group */\n#define LIBSSH2_SFTP_S_IWGRP        0000020     /* W for group */\n#define LIBSSH2_SFTP_S_IXGRP        0000010     /* X for group */\n/* Read, write, execute/search by others */\n#define LIBSSH2_SFTP_S_IRWXO        0000007     /* RWX mask for other */\n#define LIBSSH2_SFTP_S_IROTH        0000004     /* R for other */\n#define LIBSSH2_SFTP_S_IWOTH        0000002     /* W for other */\n#define LIBSSH2_SFTP_S_IXOTH        0000001     /* X for other */\n\n/* macros to check for specific file types, added in 1.2.5 */\n#define LIBSSH2_SFTP_S_ISLNK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFLNK)\n#define LIBSSH2_SFTP_S_ISREG(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFREG)\n#define LIBSSH2_SFTP_S_ISDIR(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFDIR)\n#define LIBSSH2_SFTP_S_ISCHR(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFCHR)\n#define LIBSSH2_SFTP_S_ISBLK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFBLK)\n#define LIBSSH2_SFTP_S_ISFIFO(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFIFO)\n#define LIBSSH2_SFTP_S_ISSOCK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFSOCK)\n\n/* SFTP File Transfer Flags -- (e.g. flags parameter to sftp_open())\n * Danger will robinson... APPEND doesn't have any effect on OpenSSH servers */\n#define LIBSSH2_FXF_READ                        0x00000001\n#define LIBSSH2_FXF_WRITE                       0x00000002\n#define LIBSSH2_FXF_APPEND                      0x00000004\n#define LIBSSH2_FXF_CREAT                       0x00000008\n#define LIBSSH2_FXF_TRUNC                       0x00000010\n#define LIBSSH2_FXF_EXCL                        0x00000020\n\n/* SFTP Status Codes (returned by libssh2_sftp_last_error() ) */\n#define LIBSSH2_FX_OK                       0\n#define LIBSSH2_FX_EOF                      1\n#define LIBSSH2_FX_NO_SUCH_FILE             2\n#define LIBSSH2_FX_PERMISSION_DENIED        3\n#define LIBSSH2_FX_FAILURE                  4\n#define LIBSSH2_FX_BAD_MESSAGE              5\n#define LIBSSH2_FX_NO_CONNECTION            6\n#define LIBSSH2_FX_CONNECTION_LOST          7\n#define LIBSSH2_FX_OP_UNSUPPORTED           8\n#define LIBSSH2_FX_INVALID_HANDLE           9\n#define LIBSSH2_FX_NO_SUCH_PATH             10\n#define LIBSSH2_FX_FILE_ALREADY_EXISTS      11\n#define LIBSSH2_FX_WRITE_PROTECT            12\n#define LIBSSH2_FX_NO_MEDIA                 13\n#define LIBSSH2_FX_NO_SPACE_ON_FILESYSTEM   14\n#define LIBSSH2_FX_QUOTA_EXCEEDED           15\n#define LIBSSH2_FX_UNKNOWN_PRINCIPLE        16 /* Initial mis-spelling */\n#define LIBSSH2_FX_UNKNOWN_PRINCIPAL        16\n#define LIBSSH2_FX_LOCK_CONFlICT            17 /* Initial mis-spelling */\n#define LIBSSH2_FX_LOCK_CONFLICT            17\n#define LIBSSH2_FX_DIR_NOT_EMPTY            18\n#define LIBSSH2_FX_NOT_A_DIRECTORY          19\n#define LIBSSH2_FX_INVALID_FILENAME         20\n#define LIBSSH2_FX_LINK_LOOP                21\n\n/* Returned by any function that would block during a read/write opperation */\n#define LIBSSH2SFTP_EAGAIN LIBSSH2_ERROR_EAGAIN\n\n/* SFTP API */\nLIBSSH2_API LIBSSH2_SFTP *libssh2_sftp_init(LIBSSH2_SESSION *session);\nLIBSSH2_API int libssh2_sftp_shutdown(LIBSSH2_SFTP *sftp);\nLIBSSH2_API unsigned long libssh2_sftp_last_error(LIBSSH2_SFTP *sftp);\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_sftp_get_channel(LIBSSH2_SFTP *sftp);\n\n/* File / Directory Ops */\nLIBSSH2_API LIBSSH2_SFTP_HANDLE *\nlibssh2_sftp_open_ex(LIBSSH2_SFTP *sftp,\n                     const char *filename,\n                     unsigned int filename_len,\n                     unsigned long flags,\n                     long mode, int open_type);\n#define libssh2_sftp_open(sftp, filename, flags, mode)                  \\\n    libssh2_sftp_open_ex((sftp), (filename), strlen(filename), (flags), \\\n                         (mode), LIBSSH2_SFTP_OPENFILE)\n#define libssh2_sftp_opendir(sftp, path) \\\n    libssh2_sftp_open_ex((sftp), (path), strlen(path), 0, 0, \\\n                         LIBSSH2_SFTP_OPENDIR)\n\nLIBSSH2_API ssize_t libssh2_sftp_read(LIBSSH2_SFTP_HANDLE *handle,\n                                      char *buffer, size_t buffer_maxlen);\n\nLIBSSH2_API int libssh2_sftp_readdir_ex(LIBSSH2_SFTP_HANDLE *handle, \\\n                                        char *buffer, size_t buffer_maxlen,\n                                        char *longentry,\n                                        size_t longentry_maxlen,\n                                        LIBSSH2_SFTP_ATTRIBUTES *attrs);\n#define libssh2_sftp_readdir(handle, buffer, buffer_maxlen, attrs)      \\\n    libssh2_sftp_readdir_ex((handle), (buffer), (buffer_maxlen), NULL, 0, \\\n                            (attrs))\n\nLIBSSH2_API ssize_t libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle,\n                                       const char *buffer, size_t count);\nLIBSSH2_API int libssh2_sftp_fsync(LIBSSH2_SFTP_HANDLE *handle);\n\nLIBSSH2_API int libssh2_sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);\n#define libssh2_sftp_close(handle) libssh2_sftp_close_handle(handle)\n#define libssh2_sftp_closedir(handle) libssh2_sftp_close_handle(handle)\n\nLIBSSH2_API void libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, size_t offset);\nLIBSSH2_API void libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle,\n                                     libssh2_uint64_t offset);\n#define libssh2_sftp_rewind(handle) libssh2_sftp_seek64((handle), 0)\n\nLIBSSH2_API size_t libssh2_sftp_tell(LIBSSH2_SFTP_HANDLE *handle);\nLIBSSH2_API libssh2_uint64_t libssh2_sftp_tell64(LIBSSH2_SFTP_HANDLE *handle);\n\nLIBSSH2_API int libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE *handle,\n                                      LIBSSH2_SFTP_ATTRIBUTES *attrs,\n                                      int setstat);\n#define libssh2_sftp_fstat(handle, attrs) \\\n    libssh2_sftp_fstat_ex((handle), (attrs), 0)\n#define libssh2_sftp_fsetstat(handle, attrs) \\\n    libssh2_sftp_fstat_ex((handle), (attrs), 1)\n\n/* Miscellaneous Ops */\nLIBSSH2_API int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp,\n                                       const char *source_filename,\n                                       unsigned int srouce_filename_len,\n                                       const char *dest_filename,\n                                       unsigned int dest_filename_len,\n                                       long flags);\n#define libssh2_sftp_rename(sftp, sourcefile, destfile) \\\n    libssh2_sftp_rename_ex((sftp), (sourcefile), strlen(sourcefile), \\\n                           (destfile), strlen(destfile),                \\\n                           LIBSSH2_SFTP_RENAME_OVERWRITE | \\\n                           LIBSSH2_SFTP_RENAME_ATOMIC | \\\n                           LIBSSH2_SFTP_RENAME_NATIVE)\n\nLIBSSH2_API int libssh2_sftp_unlink_ex(LIBSSH2_SFTP *sftp,\n                                       const char *filename,\n                                       unsigned int filename_len);\n#define libssh2_sftp_unlink(sftp, filename) \\\n    libssh2_sftp_unlink_ex((sftp), (filename), strlen(filename))\n\nLIBSSH2_API int libssh2_sftp_fstatvfs(LIBSSH2_SFTP_HANDLE *handle,\n                                      LIBSSH2_SFTP_STATVFS *st);\n\nLIBSSH2_API int libssh2_sftp_statvfs(LIBSSH2_SFTP *sftp,\n                                     const char *path,\n                                     size_t path_len,\n                                     LIBSSH2_SFTP_STATVFS *st);\n\nLIBSSH2_API int libssh2_sftp_mkdir_ex(LIBSSH2_SFTP *sftp,\n                                      const char *path,\n                                      unsigned int path_len, long mode);\n#define libssh2_sftp_mkdir(sftp, path, mode) \\\n    libssh2_sftp_mkdir_ex((sftp), (path), strlen(path), (mode))\n\nLIBSSH2_API int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp,\n                                      const char *path,\n                                      unsigned int path_len);\n#define libssh2_sftp_rmdir(sftp, path) \\\n    libssh2_sftp_rmdir_ex((sftp), (path), strlen(path))\n\nLIBSSH2_API int libssh2_sftp_stat_ex(LIBSSH2_SFTP *sftp,\n                                     const char *path,\n                                     unsigned int path_len,\n                                     int stat_type,\n                                     LIBSSH2_SFTP_ATTRIBUTES *attrs);\n#define libssh2_sftp_stat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_STAT, \\\n                         (attrs))\n#define libssh2_sftp_lstat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_LSTAT, \\\n                         (attrs))\n#define libssh2_sftp_setstat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_SETSTAT, \\\n                         (attrs))\n\nLIBSSH2_API int libssh2_sftp_symlink_ex(LIBSSH2_SFTP *sftp,\n                                        const char *path,\n                                        unsigned int path_len,\n                                        char *target,\n                                        unsigned int target_len,\n                                        int link_type);\n#define libssh2_sftp_symlink(sftp, orig, linkpath) \\\n    libssh2_sftp_symlink_ex((sftp), (orig), strlen(orig), (linkpath), \\\n                            strlen(linkpath), LIBSSH2_SFTP_SYMLINK)\n#define libssh2_sftp_readlink(sftp, path, target, maxlen) \\\n    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \\\n    LIBSSH2_SFTP_READLINK)\n#define libssh2_sftp_realpath(sftp, path, target, maxlen) \\\n    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \\\n                            LIBSSH2_SFTP_REALPATH)\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* LIBSSH2_SFTP_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/ios-arm64_x86_64-simulator/Headers/libssh2.h",
    "content": "/* Copyright (c) 2004-2009, Sara Golemon <sarag@libssh2.org>\n * Copyright (c) 2009-2015 Daniel Stenberg\n * Copyright (c) 2010 Simon Josefsson <simon@josefsson.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n#ifndef LIBSSH2_H\n#define LIBSSH2_H 1\n\n#define LIBSSH2_COPYRIGHT \"2004-2019 The libssh2 project and its contributors.\"\n\n/* We use underscore instead of dash when appending DEV in dev versions just\n   to make the BANNER define (used by src/session.c) be a valid SSH\n   banner. Release versions have no appended strings and may of course not\n   have dashes either. */\n#define LIBSSH2_VERSION \"1.9.0\"\n\n/* The numeric version number is also available \"in parts\" by using these\n   defines: */\n#define LIBSSH2_VERSION_MAJOR 1\n#define LIBSSH2_VERSION_MINOR 9\n#define LIBSSH2_VERSION_PATCH 0\n\n/* This is the numeric version of the libssh2 version number, meant for easier\n   parsing and comparions by programs. The LIBSSH2_VERSION_NUM define will\n   always follow this syntax:\n\n         0xXXYYZZ\n\n   Where XX, YY and ZZ are the main version, release and patch numbers in\n   hexadecimal (using 8 bits each). All three numbers are always represented\n   using two digits.  1.2 would appear as \"0x010200\" while version 9.11.7\n   appears as \"0x090b07\".\n\n   This 6-digit (24 bits) hexadecimal number does not show pre-release number,\n   and it is always a greater number in a more recent release. It makes\n   comparisons with greater than and less than work.\n*/\n#define LIBSSH2_VERSION_NUM 0x010900\n\n/*\n * This is the date and time when the full source package was created. The\n * timestamp is not stored in the source code repo, as the timestamp is\n * properly set in the tarballs by the maketgz script.\n *\n * The format of the date should follow this template:\n *\n * \"Mon Feb 12 11:35:33 UTC 2007\"\n */\n#define LIBSSH2_TIMESTAMP \"Thu Jun 20 06:19:26 UTC 2019\"\n\n#ifndef RC_INVOKED\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n#ifdef _WIN32\n# include <basetsd.h>\n# include <winsock2.h>\n#endif\n\n#include <stddef.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\n/* Allow alternate API prefix from CFLAGS or calling app */\n#ifndef LIBSSH2_API\n# ifdef LIBSSH2_WIN32\n#  ifdef _WINDLL\n#   ifdef LIBSSH2_LIBRARY\n#    define LIBSSH2_API __declspec(dllexport)\n#   else\n#    define LIBSSH2_API __declspec(dllimport)\n#   endif /* LIBSSH2_LIBRARY */\n#  else\n#   define LIBSSH2_API\n#  endif\n# else /* !LIBSSH2_WIN32 */\n#  define LIBSSH2_API\n# endif /* LIBSSH2_WIN32 */\n#endif /* LIBSSH2_API */\n\n#ifdef HAVE_SYS_UIO_H\n# include <sys/uio.h>\n#endif\n\n#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))\n# include <sys/bsdskt.h>\ntypedef unsigned char uint8_t;\ntypedef unsigned short int uint16_t;\ntypedef unsigned int uint32_t;\ntypedef int int32_t;\ntypedef unsigned long long uint64_t;\ntypedef long long int64_t;\n#endif\n\n#ifdef _MSC_VER\ntypedef unsigned char uint8_t;\ntypedef unsigned short int uint16_t;\ntypedef unsigned int uint32_t;\ntypedef __int32 int32_t;\ntypedef __int64 int64_t;\ntypedef unsigned __int64 uint64_t;\ntypedef unsigned __int64 libssh2_uint64_t;\ntypedef __int64 libssh2_int64_t;\n#if (!defined(HAVE_SSIZE_T) && !defined(ssize_t))\ntypedef SSIZE_T ssize_t;\n#define HAVE_SSIZE_T\n#endif\n#else\n#include <stdint.h>\ntypedef unsigned long long libssh2_uint64_t;\ntypedef long long libssh2_int64_t;\n#endif\n\n#ifdef WIN32\ntypedef SOCKET libssh2_socket_t;\n#define LIBSSH2_INVALID_SOCKET INVALID_SOCKET\n#else /* !WIN32 */\ntypedef int libssh2_socket_t;\n#define LIBSSH2_INVALID_SOCKET -1\n#endif /* WIN32 */\n\n/*\n * Determine whether there is small or large file support on windows.\n */\n\n#if defined(_MSC_VER) && !defined(_WIN32_WCE)\n#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)\n#    define LIBSSH2_USE_WIN32_LARGE_FILES\n#  else\n#    define LIBSSH2_USE_WIN32_SMALL_FILES\n#  endif\n#endif\n\n#if defined(__MINGW32__) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES)\n#  define LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(__WATCOMC__) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES)\n#  define LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(__POCC__)\n#  undef LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(_WIN32) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES) && \\\n    !defined(LIBSSH2_USE_WIN32_SMALL_FILES)\n#  define LIBSSH2_USE_WIN32_SMALL_FILES\n#endif\n\n/*\n * Large file (>2Gb) support using WIN32 functions.\n */\n\n#ifdef LIBSSH2_USE_WIN32_LARGE_FILES\n#  include <io.h>\n#  include <sys/types.h>\n#  include <sys/stat.h>\n#  define LIBSSH2_STRUCT_STAT_SIZE_FORMAT    \"%I64d\"\ntypedef struct _stati64 libssh2_struct_stat;\ntypedef __int64 libssh2_struct_stat_size;\n#endif\n\n/*\n * Small file (<2Gb) support using WIN32 functions.\n */\n\n#ifdef LIBSSH2_USE_WIN32_SMALL_FILES\n#  include <sys/types.h>\n#  include <sys/stat.h>\n#  ifndef _WIN32_WCE\n#    define LIBSSH2_STRUCT_STAT_SIZE_FORMAT    \"%d\"\ntypedef struct _stat libssh2_struct_stat;\ntypedef off_t libssh2_struct_stat_size;\n#  endif\n#endif\n\n#ifndef LIBSSH2_STRUCT_STAT_SIZE_FORMAT\n#  ifdef __VMS\n/* We have to roll our own format here because %z is a C99-ism we don't\n   have. */\n#    if __USE_OFF64_T || __USING_STD_STAT\n#      define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%Ld\"\n#    else\n#      define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%d\"\n#    endif\n#  else\n#    define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%zd\"\n#  endif\ntypedef struct stat libssh2_struct_stat;\ntypedef off_t libssh2_struct_stat_size;\n#endif\n\n/* Part of every banner, user specified or not */\n#define LIBSSH2_SSH_BANNER                  \"SSH-2.0-libssh2_\" LIBSSH2_VERSION\n\n#define LIBSSH2_SSH_DEFAULT_BANNER            LIBSSH2_SSH_BANNER\n#define LIBSSH2_SSH_DEFAULT_BANNER_WITH_CRLF  LIBSSH2_SSH_DEFAULT_BANNER \"\\r\\n\"\n\n/* Default generate and safe prime sizes for\n   diffie-hellman-group-exchange-sha1 */\n#define LIBSSH2_DH_GEX_MINGROUP     1024\n#define LIBSSH2_DH_GEX_OPTGROUP     1536\n#define LIBSSH2_DH_GEX_MAXGROUP     2048\n\n/* Defaults for pty requests */\n#define LIBSSH2_TERM_WIDTH      80\n#define LIBSSH2_TERM_HEIGHT     24\n#define LIBSSH2_TERM_WIDTH_PX   0\n#define LIBSSH2_TERM_HEIGHT_PX  0\n\n/* 1/4 second */\n#define LIBSSH2_SOCKET_POLL_UDELAY      250000\n/* 0.25 * 120 == 30 seconds */\n#define LIBSSH2_SOCKET_POLL_MAXLOOPS    120\n\n/* Maximum size to allow a payload to compress to, plays it safe by falling\n   short of spec limits */\n#define LIBSSH2_PACKET_MAXCOMP      32000\n\n/* Maximum size to allow a payload to deccompress to, plays it safe by\n   allowing more than spec requires */\n#define LIBSSH2_PACKET_MAXDECOMP    40000\n\n/* Maximum size for an inbound compressed payload, plays it safe by\n   overshooting spec limits */\n#define LIBSSH2_PACKET_MAXPAYLOAD   40000\n\n/* Malloc callbacks */\n#define LIBSSH2_ALLOC_FUNC(name)   void *name(size_t count, void **abstract)\n#define LIBSSH2_REALLOC_FUNC(name) void *name(void *ptr, size_t count, \\\n                                              void **abstract)\n#define LIBSSH2_FREE_FUNC(name)    void name(void *ptr, void **abstract)\n\ntypedef struct _LIBSSH2_USERAUTH_KBDINT_PROMPT\n{\n    char *text;\n    unsigned int length;\n    unsigned char echo;\n} LIBSSH2_USERAUTH_KBDINT_PROMPT;\n\ntypedef struct _LIBSSH2_USERAUTH_KBDINT_RESPONSE\n{\n    char *text;\n    unsigned int length;\n} LIBSSH2_USERAUTH_KBDINT_RESPONSE;\n\n/* 'publickey' authentication callback */\n#define LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC(name) \\\n  int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len, \\\n           const unsigned char *data, size_t data_len, void **abstract)\n\n/* 'keyboard-interactive' authentication callback */\n#define LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(name_) \\\n void name_(const char *name, int name_len, const char *instruction, \\\n            int instruction_len, int num_prompts, \\\n            const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts,              \\\n            LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, void **abstract)\n\n/* Callbacks for special SSH packets */\n#define LIBSSH2_IGNORE_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, const char *message, int message_len, \\\n           void **abstract)\n\n#define LIBSSH2_DEBUG_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, int always_display, const char *message, \\\n           int message_len, const char *language, int language_len, \\\n           void **abstract)\n\n#define LIBSSH2_DISCONNECT_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, int reason, const char *message, \\\n           int message_len, const char *language, int language_len, \\\n           void **abstract)\n\n#define LIBSSH2_PASSWD_CHANGEREQ_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, char **newpw, int *newpw_len, \\\n           void **abstract)\n\n#define LIBSSH2_MACERROR_FUNC(name) \\\n int name(LIBSSH2_SESSION *session, const char *packet, int packet_len, \\\n          void **abstract)\n\n#define LIBSSH2_X11_OPEN_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, LIBSSH2_CHANNEL *channel, \\\n           const char *shost, int sport, void **abstract)\n\n#define LIBSSH2_CHANNEL_CLOSE_FUNC(name) \\\n  void name(LIBSSH2_SESSION *session, void **session_abstract, \\\n            LIBSSH2_CHANNEL *channel, void **channel_abstract)\n\n/* I/O callbacks */\n#define LIBSSH2_RECV_FUNC(name)                                         \\\n    ssize_t name(libssh2_socket_t socket,                               \\\n                 void *buffer, size_t length,                           \\\n                 int flags, void **abstract)\n#define LIBSSH2_SEND_FUNC(name)                                         \\\n    ssize_t name(libssh2_socket_t socket,                               \\\n                 const void *buffer, size_t length,                     \\\n                 int flags, void **abstract)\n\n/* libssh2_session_callback_set() constants */\n#define LIBSSH2_CALLBACK_IGNORE             0\n#define LIBSSH2_CALLBACK_DEBUG              1\n#define LIBSSH2_CALLBACK_DISCONNECT         2\n#define LIBSSH2_CALLBACK_MACERROR           3\n#define LIBSSH2_CALLBACK_X11                4\n#define LIBSSH2_CALLBACK_SEND               5\n#define LIBSSH2_CALLBACK_RECV               6\n\n/* libssh2_session_method_pref() constants */\n#define LIBSSH2_METHOD_KEX          0\n#define LIBSSH2_METHOD_HOSTKEY      1\n#define LIBSSH2_METHOD_CRYPT_CS     2\n#define LIBSSH2_METHOD_CRYPT_SC     3\n#define LIBSSH2_METHOD_MAC_CS       4\n#define LIBSSH2_METHOD_MAC_SC       5\n#define LIBSSH2_METHOD_COMP_CS      6\n#define LIBSSH2_METHOD_COMP_SC      7\n#define LIBSSH2_METHOD_LANG_CS      8\n#define LIBSSH2_METHOD_LANG_SC      9\n\n/* flags */\n#define LIBSSH2_FLAG_SIGPIPE        1\n#define LIBSSH2_FLAG_COMPRESS       2\n\ntypedef struct _LIBSSH2_SESSION                     LIBSSH2_SESSION;\ntypedef struct _LIBSSH2_CHANNEL                     LIBSSH2_CHANNEL;\ntypedef struct _LIBSSH2_LISTENER                    LIBSSH2_LISTENER;\ntypedef struct _LIBSSH2_KNOWNHOSTS                  LIBSSH2_KNOWNHOSTS;\ntypedef struct _LIBSSH2_AGENT                       LIBSSH2_AGENT;\n\ntypedef struct _LIBSSH2_POLLFD {\n    unsigned char type; /* LIBSSH2_POLLFD_* below */\n\n    union {\n        libssh2_socket_t socket; /* File descriptors -- examined with\n                                    system select() call */\n        LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */\n        LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound\n                                       connections waiting to be accepted? */\n    } fd;\n\n    unsigned long events; /* Requested Events */\n    unsigned long revents; /* Returned Events */\n} LIBSSH2_POLLFD;\n\n/* Poll FD Descriptor Types */\n#define LIBSSH2_POLLFD_SOCKET       1\n#define LIBSSH2_POLLFD_CHANNEL      2\n#define LIBSSH2_POLLFD_LISTENER     3\n\n/* Note: Win32 Doesn't actually have a poll() implementation, so some of these\n   values are faked with select() data */\n/* Poll FD events/revents -- Match sys/poll.h where possible */\n#define LIBSSH2_POLLFD_POLLIN           0x0001 /* Data available to be read or\n                                                  connection available --\n                                                  All */\n#define LIBSSH2_POLLFD_POLLPRI          0x0002 /* Priority data available to\n                                                  be read -- Socket only */\n#define LIBSSH2_POLLFD_POLLEXT          0x0002 /* Extended data available to\n                                                  be read -- Channel only */\n#define LIBSSH2_POLLFD_POLLOUT          0x0004 /* Can may be written --\n                                                  Socket/Channel */\n/* revents only */\n#define LIBSSH2_POLLFD_POLLERR          0x0008 /* Error Condition -- Socket */\n#define LIBSSH2_POLLFD_POLLHUP          0x0010 /* HangUp/EOF -- Socket */\n#define LIBSSH2_POLLFD_SESSION_CLOSED   0x0010 /* Session Disconnect */\n#define LIBSSH2_POLLFD_POLLNVAL         0x0020 /* Invalid request -- Socket\n                                                  Only */\n#define LIBSSH2_POLLFD_POLLEX           0x0040 /* Exception Condition --\n                                                  Socket/Win32 */\n#define LIBSSH2_POLLFD_CHANNEL_CLOSED   0x0080 /* Channel Disconnect */\n#define LIBSSH2_POLLFD_LISTENER_CLOSED  0x0080 /* Listener Disconnect */\n\n#define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION\n/* Block Direction Types */\n#define LIBSSH2_SESSION_BLOCK_INBOUND                  0x0001\n#define LIBSSH2_SESSION_BLOCK_OUTBOUND                 0x0002\n\n/* Hash Types */\n#define LIBSSH2_HOSTKEY_HASH_MD5                            1\n#define LIBSSH2_HOSTKEY_HASH_SHA1                           2\n#define LIBSSH2_HOSTKEY_HASH_SHA256                         3\n\n/* Hostkey Types */\n#define LIBSSH2_HOSTKEY_TYPE_UNKNOWN            0\n#define LIBSSH2_HOSTKEY_TYPE_RSA                1\n#define LIBSSH2_HOSTKEY_TYPE_DSS                2\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_256          3\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_384          4\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_521          5\n#define LIBSSH2_HOSTKEY_TYPE_ED25519            6\n\n/* Disconnect Codes (defined by SSH protocol) */\n#define SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT          1\n#define SSH_DISCONNECT_PROTOCOL_ERROR                       2\n#define SSH_DISCONNECT_KEY_EXCHANGE_FAILED                  3\n#define SSH_DISCONNECT_RESERVED                             4\n#define SSH_DISCONNECT_MAC_ERROR                            5\n#define SSH_DISCONNECT_COMPRESSION_ERROR                    6\n#define SSH_DISCONNECT_SERVICE_NOT_AVAILABLE                7\n#define SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED       8\n#define SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE              9\n#define SSH_DISCONNECT_CONNECTION_LOST                      10\n#define SSH_DISCONNECT_BY_APPLICATION                       11\n#define SSH_DISCONNECT_TOO_MANY_CONNECTIONS                 12\n#define SSH_DISCONNECT_AUTH_CANCELLED_BY_USER               13\n#define SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE       14\n#define SSH_DISCONNECT_ILLEGAL_USER_NAME                    15\n\n/* Error Codes (defined by libssh2) */\n#define LIBSSH2_ERROR_NONE                      0\n\n/* The library once used -1 as a generic error return value on numerous places\n   through the code, which subsequently was converted to\n   LIBSSH2_ERROR_SOCKET_NONE uses over time. As this is a generic error code,\n   the goal is to never ever return this code but instead make sure that a\n   more accurate and descriptive error code is used. */\n#define LIBSSH2_ERROR_SOCKET_NONE               -1\n\n#define LIBSSH2_ERROR_BANNER_RECV               -2\n#define LIBSSH2_ERROR_BANNER_SEND               -3\n#define LIBSSH2_ERROR_INVALID_MAC               -4\n#define LIBSSH2_ERROR_KEX_FAILURE               -5\n#define LIBSSH2_ERROR_ALLOC                     -6\n#define LIBSSH2_ERROR_SOCKET_SEND               -7\n#define LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE      -8\n#define LIBSSH2_ERROR_TIMEOUT                   -9\n#define LIBSSH2_ERROR_HOSTKEY_INIT              -10\n#define LIBSSH2_ERROR_HOSTKEY_SIGN              -11\n#define LIBSSH2_ERROR_DECRYPT                   -12\n#define LIBSSH2_ERROR_SOCKET_DISCONNECT         -13\n#define LIBSSH2_ERROR_PROTO                     -14\n#define LIBSSH2_ERROR_PASSWORD_EXPIRED          -15\n#define LIBSSH2_ERROR_FILE                      -16\n#define LIBSSH2_ERROR_METHOD_NONE               -17\n#define LIBSSH2_ERROR_AUTHENTICATION_FAILED     -18\n#define LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED    \\\n    LIBSSH2_ERROR_AUTHENTICATION_FAILED\n#define LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED      -19\n#define LIBSSH2_ERROR_CHANNEL_OUTOFORDER        -20\n#define LIBSSH2_ERROR_CHANNEL_FAILURE           -21\n#define LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED    -22\n#define LIBSSH2_ERROR_CHANNEL_UNKNOWN           -23\n#define LIBSSH2_ERROR_CHANNEL_WINDOW_EXCEEDED   -24\n#define LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED   -25\n#define LIBSSH2_ERROR_CHANNEL_CLOSED            -26\n#define LIBSSH2_ERROR_CHANNEL_EOF_SENT          -27\n#define LIBSSH2_ERROR_SCP_PROTOCOL              -28\n#define LIBSSH2_ERROR_ZLIB                      -29\n#define LIBSSH2_ERROR_SOCKET_TIMEOUT            -30\n#define LIBSSH2_ERROR_SFTP_PROTOCOL             -31\n#define LIBSSH2_ERROR_REQUEST_DENIED            -32\n#define LIBSSH2_ERROR_METHOD_NOT_SUPPORTED      -33\n#define LIBSSH2_ERROR_INVAL                     -34\n#define LIBSSH2_ERROR_INVALID_POLL_TYPE         -35\n#define LIBSSH2_ERROR_PUBLICKEY_PROTOCOL        -36\n#define LIBSSH2_ERROR_EAGAIN                    -37\n#define LIBSSH2_ERROR_BUFFER_TOO_SMALL          -38\n#define LIBSSH2_ERROR_BAD_USE                   -39\n#define LIBSSH2_ERROR_COMPRESS                  -40\n#define LIBSSH2_ERROR_OUT_OF_BOUNDARY           -41\n#define LIBSSH2_ERROR_AGENT_PROTOCOL            -42\n#define LIBSSH2_ERROR_SOCKET_RECV               -43\n#define LIBSSH2_ERROR_ENCRYPT                   -44\n#define LIBSSH2_ERROR_BAD_SOCKET                -45\n#define LIBSSH2_ERROR_KNOWN_HOSTS               -46\n#define LIBSSH2_ERROR_CHANNEL_WINDOW_FULL       -47\n#define LIBSSH2_ERROR_KEYFILE_AUTH_FAILED       -48\n\n/* this is a define to provide the old (<= 1.2.7) name */\n#define LIBSSH2_ERROR_BANNER_NONE LIBSSH2_ERROR_BANNER_RECV\n\n/* Global API */\n#define LIBSSH2_INIT_NO_CRYPTO        0x0001\n\n/*\n * libssh2_init()\n *\n * Initialize the libssh2 functions.  This typically initialize the\n * crypto library.  It uses a global state, and is not thread safe --\n * you must make sure this function is not called concurrently.\n *\n * Flags can be:\n * 0:                              Normal initialize\n * LIBSSH2_INIT_NO_CRYPTO:         Do not initialize the crypto library (ie.\n *                                 OPENSSL_add_cipher_algoritms() for OpenSSL\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int libssh2_init(int flags);\n\n/*\n * libssh2_exit()\n *\n * Exit the libssh2 functions and free's all memory used internal.\n */\nLIBSSH2_API void libssh2_exit(void);\n\n/*\n * libssh2_free()\n *\n * Deallocate memory allocated by earlier call to libssh2 functions.\n */\nLIBSSH2_API void libssh2_free(LIBSSH2_SESSION *session, void *ptr);\n\n/*\n * libssh2_session_supported_algs()\n *\n * Fills algs with a list of supported acryptographic algorithms. Returns a\n * non-negative number (number of supported algorithms) on success or a\n * negative number (an eror code) on failure.\n *\n * NOTE: on success, algs must be deallocated (by calling libssh2_free) when\n * not needed anymore\n */\nLIBSSH2_API int libssh2_session_supported_algs(LIBSSH2_SESSION* session,\n                                               int method_type,\n                                               const char ***algs);\n\n/* Session API */\nLIBSSH2_API LIBSSH2_SESSION *\nlibssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),\n                        LIBSSH2_FREE_FUNC((*my_free)),\n                        LIBSSH2_REALLOC_FUNC((*my_realloc)), void *abstract);\n#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL, NULL)\n\nLIBSSH2_API void **libssh2_session_abstract(LIBSSH2_SESSION *session);\n\nLIBSSH2_API void *libssh2_session_callback_set(LIBSSH2_SESSION *session,\n                                               int cbtype, void *callback);\nLIBSSH2_API int libssh2_session_banner_set(LIBSSH2_SESSION *session,\n                                           const char *banner);\nLIBSSH2_API int libssh2_banner_set(LIBSSH2_SESSION *session,\n                                   const char *banner);\n\nLIBSSH2_API int libssh2_session_startup(LIBSSH2_SESSION *session, int sock);\nLIBSSH2_API int libssh2_session_handshake(LIBSSH2_SESSION *session,\n                                          libssh2_socket_t sock);\nLIBSSH2_API int libssh2_session_disconnect_ex(LIBSSH2_SESSION *session,\n                                              int reason,\n                                              const char *description,\n                                              const char *lang);\n#define libssh2_session_disconnect(session, description) \\\n  libssh2_session_disconnect_ex((session), SSH_DISCONNECT_BY_APPLICATION, \\\n                                (description), \"\")\n\nLIBSSH2_API int libssh2_session_free(LIBSSH2_SESSION *session);\n\nLIBSSH2_API const char *libssh2_hostkey_hash(LIBSSH2_SESSION *session,\n                                             int hash_type);\n\nLIBSSH2_API const char *libssh2_session_hostkey(LIBSSH2_SESSION *session,\n                                                size_t *len, int *type);\n\nLIBSSH2_API int libssh2_session_method_pref(LIBSSH2_SESSION *session,\n                                            int method_type,\n                                            const char *prefs);\nLIBSSH2_API const char *libssh2_session_methods(LIBSSH2_SESSION *session,\n                                                int method_type);\nLIBSSH2_API int libssh2_session_last_error(LIBSSH2_SESSION *session,\n                                           char **errmsg,\n                                           int *errmsg_len, int want_buf);\nLIBSSH2_API int libssh2_session_last_errno(LIBSSH2_SESSION *session);\nLIBSSH2_API int libssh2_session_set_last_error(LIBSSH2_SESSION* session,\n                                               int errcode,\n                                               const char *errmsg);\nLIBSSH2_API int libssh2_session_block_directions(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int libssh2_session_flag(LIBSSH2_SESSION *session, int flag,\n                                     int value);\nLIBSSH2_API const char *libssh2_session_banner_get(LIBSSH2_SESSION *session);\n\n/* Userauth API */\nLIBSSH2_API char *libssh2_userauth_list(LIBSSH2_SESSION *session,\n                                        const char *username,\n                                        unsigned int username_len);\nLIBSSH2_API int libssh2_userauth_authenticated(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int\nlibssh2_userauth_password_ex(LIBSSH2_SESSION *session,\n                             const char *username,\n                             unsigned int username_len,\n                             const char *password,\n                             unsigned int password_len,\n                             LIBSSH2_PASSWD_CHANGEREQ_FUNC\n                             ((*passwd_change_cb)));\n\n#define libssh2_userauth_password(session, username, password) \\\n libssh2_userauth_password_ex((session), (username),           \\\n                              (unsigned int)strlen(username),  \\\n                              (password), (unsigned int)strlen(password), NULL)\n\nLIBSSH2_API int\nlibssh2_userauth_publickey_fromfile_ex(LIBSSH2_SESSION *session,\n                                       const char *username,\n                                       unsigned int username_len,\n                                       const char *publickey,\n                                       const char *privatekey,\n                                       const char *passphrase);\n\n#define libssh2_userauth_publickey_fromfile(session, username, publickey, \\\n                                            privatekey, passphrase)     \\\n    libssh2_userauth_publickey_fromfile_ex((session), (username),       \\\n                                           (unsigned int)strlen(username), \\\n                                           (publickey),                 \\\n                                           (privatekey), (passphrase))\n\nLIBSSH2_API int\nlibssh2_userauth_publickey(LIBSSH2_SESSION *session,\n                           const char *username,\n                           const unsigned char *pubkeydata,\n                           size_t pubkeydata_len,\n                           LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC\n                           ((*sign_callback)),\n                           void **abstract);\n\nLIBSSH2_API int\nlibssh2_userauth_hostbased_fromfile_ex(LIBSSH2_SESSION *session,\n                                       const char *username,\n                                       unsigned int username_len,\n                                       const char *publickey,\n                                       const char *privatekey,\n                                       const char *passphrase,\n                                       const char *hostname,\n                                       unsigned int hostname_len,\n                                       const char *local_username,\n                                       unsigned int local_username_len);\n\n#define libssh2_userauth_hostbased_fromfile(session, username, publickey, \\\n                                            privatekey, passphrase, hostname) \\\n libssh2_userauth_hostbased_fromfile_ex((session), (username), \\\n                                        (unsigned int)strlen(username), \\\n                                        (publickey),                    \\\n                                        (privatekey), (passphrase),     \\\n                                        (hostname),                     \\\n                                        (unsigned int)strlen(hostname), \\\n                                        (username),                     \\\n                                        (unsigned int)strlen(username))\n\nLIBSSH2_API int\nlibssh2_userauth_publickey_frommemory(LIBSSH2_SESSION *session,\n                                      const char *username,\n                                      size_t username_len,\n                                      const char *publickeyfiledata,\n                                      size_t publickeyfiledata_len,\n                                      const char *privatekeyfiledata,\n                                      size_t privatekeyfiledata_len,\n                                      const char *passphrase);\n\n/*\n * response_callback is provided with filled by library prompts array,\n * but client must allocate and fill individual responses. Responses\n * array is already allocated. Responses data will be freed by libssh2\n * after callback return, but before subsequent callback invokation.\n */\nLIBSSH2_API int\nlibssh2_userauth_keyboard_interactive_ex(LIBSSH2_SESSION* session,\n                                         const char *username,\n                                         unsigned int username_len,\n                                         LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(\n                                                       (*response_callback)));\n\n#define libssh2_userauth_keyboard_interactive(session, username,        \\\n                                              response_callback)        \\\n    libssh2_userauth_keyboard_interactive_ex((session), (username),     \\\n                                             (unsigned int)strlen(username), \\\n                                             (response_callback))\n\nLIBSSH2_API int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds,\n                             long timeout);\n\n/* Channel API */\n#define LIBSSH2_CHANNEL_WINDOW_DEFAULT  (2*1024*1024)\n#define LIBSSH2_CHANNEL_PACKET_DEFAULT  32768\n#define LIBSSH2_CHANNEL_MINADJUST       1024\n\n/* Extended Data Handling */\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL        0\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE        1\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE         2\n\n#define SSH_EXTENDED_DATA_STDERR 1\n\n/* Returned by any function that would block during a read/write opperation */\n#define LIBSSH2CHANNEL_EAGAIN LIBSSH2_ERROR_EAGAIN\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_open_ex(LIBSSH2_SESSION *session, const char *channel_type,\n                        unsigned int channel_type_len,\n                        unsigned int window_size, unsigned int packet_size,\n                        const char *message, unsigned int message_len);\n\n#define libssh2_channel_open_session(session) \\\n  libssh2_channel_open_ex((session), \"session\", sizeof(\"session\") - 1, \\\n                          LIBSSH2_CHANNEL_WINDOW_DEFAULT, \\\n                          LIBSSH2_CHANNEL_PACKET_DEFAULT, NULL, 0)\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *session, const char *host,\n                                int port, const char *shost, int sport);\n#define libssh2_channel_direct_tcpip(session, host, port) \\\n  libssh2_channel_direct_tcpip_ex((session), (host), (port), \"127.0.0.1\", 22)\n\nLIBSSH2_API LIBSSH2_LISTENER *\nlibssh2_channel_forward_listen_ex(LIBSSH2_SESSION *session, const char *host,\n                                  int port, int *bound_port,\n                                  int queue_maxsize);\n#define libssh2_channel_forward_listen(session, port) \\\n libssh2_channel_forward_listen_ex((session), NULL, (port), NULL, 16)\n\nLIBSSH2_API int libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener);\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_forward_accept(LIBSSH2_LISTENER *listener);\n\nLIBSSH2_API int libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel,\n                                          const char *varname,\n                                          unsigned int varname_len,\n                                          const char *value,\n                                          unsigned int value_len);\n\n#define libssh2_channel_setenv(channel, varname, value)                 \\\n    libssh2_channel_setenv_ex((channel), (varname),                     \\\n                              (unsigned int)strlen(varname), (value),   \\\n                              (unsigned int)strlen(value))\n\nLIBSSH2_API int libssh2_channel_request_pty_ex(LIBSSH2_CHANNEL *channel,\n                                               const char *term,\n                                               unsigned int term_len,\n                                               const char *modes,\n                                               unsigned int modes_len,\n                                               int width, int height,\n                                               int width_px, int height_px);\n#define libssh2_channel_request_pty(channel, term)                      \\\n    libssh2_channel_request_pty_ex((channel), (term),                   \\\n                                   (unsigned int)strlen(term),          \\\n                                   NULL, 0,                             \\\n                                   LIBSSH2_TERM_WIDTH,                  \\\n                                   LIBSSH2_TERM_HEIGHT,                 \\\n                                   LIBSSH2_TERM_WIDTH_PX,               \\\n                                   LIBSSH2_TERM_HEIGHT_PX)\n\nLIBSSH2_API int libssh2_channel_request_pty_size_ex(LIBSSH2_CHANNEL *channel,\n                                                    int width, int height,\n                                                    int width_px,\n                                                    int height_px);\n#define libssh2_channel_request_pty_size(channel, width, height) \\\n  libssh2_channel_request_pty_size_ex((channel), (width), (height), 0, 0)\n\nLIBSSH2_API int libssh2_channel_x11_req_ex(LIBSSH2_CHANNEL *channel,\n                                           int single_connection,\n                                           const char *auth_proto,\n                                           const char *auth_cookie,\n                                           int screen_number);\n#define libssh2_channel_x11_req(channel, screen_number) \\\n libssh2_channel_x11_req_ex((channel), 0, NULL, NULL, (screen_number))\n\nLIBSSH2_API int libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel,\n                                                const char *request,\n                                                unsigned int request_len,\n                                                const char *message,\n                                                unsigned int message_len);\n#define libssh2_channel_shell(channel) \\\n  libssh2_channel_process_startup((channel), \"shell\", sizeof(\"shell\") - 1, \\\n                                  NULL, 0)\n#define libssh2_channel_exec(channel, command) \\\n  libssh2_channel_process_startup((channel), \"exec\", sizeof(\"exec\") - 1, \\\n                                  (command), (unsigned int)strlen(command))\n#define libssh2_channel_subsystem(channel, subsystem) \\\n  libssh2_channel_process_startup((channel), \"subsystem\",              \\\n                                  sizeof(\"subsystem\") - 1, (subsystem), \\\n                                  (unsigned int)strlen(subsystem))\n\nLIBSSH2_API ssize_t libssh2_channel_read_ex(LIBSSH2_CHANNEL *channel,\n                                            int stream_id, char *buf,\n                                            size_t buflen);\n#define libssh2_channel_read(channel, buf, buflen) \\\n  libssh2_channel_read_ex((channel), 0, (buf), (buflen))\n#define libssh2_channel_read_stderr(channel, buf, buflen) \\\n  libssh2_channel_read_ex((channel), SSH_EXTENDED_DATA_STDERR, (buf), (buflen))\n\nLIBSSH2_API int libssh2_poll_channel_read(LIBSSH2_CHANNEL *channel,\n                                          int extended);\n\nLIBSSH2_API unsigned long\nlibssh2_channel_window_read_ex(LIBSSH2_CHANNEL *channel,\n                               unsigned long *read_avail,\n                               unsigned long *window_size_initial);\n#define libssh2_channel_window_read(channel) \\\n  libssh2_channel_window_read_ex((channel), NULL, NULL)\n\n/* libssh2_channel_receive_window_adjust is DEPRECATED, do not use! */\nLIBSSH2_API unsigned long\nlibssh2_channel_receive_window_adjust(LIBSSH2_CHANNEL *channel,\n                                      unsigned long adjustment,\n                                      unsigned char force);\n\nLIBSSH2_API int\nlibssh2_channel_receive_window_adjust2(LIBSSH2_CHANNEL *channel,\n                                       unsigned long adjustment,\n                                       unsigned char force,\n                                       unsigned int *storewindow);\n\nLIBSSH2_API ssize_t libssh2_channel_write_ex(LIBSSH2_CHANNEL *channel,\n                                             int stream_id, const char *buf,\n                                             size_t buflen);\n\n#define libssh2_channel_write(channel, buf, buflen) \\\n  libssh2_channel_write_ex((channel), 0, (buf), (buflen))\n#define libssh2_channel_write_stderr(channel, buf, buflen)              \\\n    libssh2_channel_write_ex((channel), SSH_EXTENDED_DATA_STDERR,       \\\n                             (buf), (buflen))\n\nLIBSSH2_API unsigned long\nlibssh2_channel_window_write_ex(LIBSSH2_CHANNEL *channel,\n                                unsigned long *window_size_initial);\n#define libssh2_channel_window_write(channel) \\\n  libssh2_channel_window_write_ex((channel), NULL)\n\nLIBSSH2_API void libssh2_session_set_blocking(LIBSSH2_SESSION* session,\n                                              int blocking);\nLIBSSH2_API int libssh2_session_get_blocking(LIBSSH2_SESSION* session);\n\nLIBSSH2_API void libssh2_channel_set_blocking(LIBSSH2_CHANNEL *channel,\n                                              int blocking);\n\nLIBSSH2_API void libssh2_session_set_timeout(LIBSSH2_SESSION* session,\n                                             long timeout);\nLIBSSH2_API long libssh2_session_get_timeout(LIBSSH2_SESSION* session);\n\n/* libssh2_channel_handle_extended_data is DEPRECATED, do not use! */\nLIBSSH2_API void libssh2_channel_handle_extended_data(LIBSSH2_CHANNEL *channel,\n                                                      int ignore_mode);\nLIBSSH2_API int libssh2_channel_handle_extended_data2(LIBSSH2_CHANNEL *channel,\n                                                      int ignore_mode);\n\n/* libssh2_channel_ignore_extended_data() is defined below for BC with version\n * 0.1\n *\n * Future uses should use libssh2_channel_handle_extended_data() directly if\n * LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE is passed, extended data will be read\n * (FIFO) from the standard data channel\n */\n/* DEPRECATED */\n#define libssh2_channel_ignore_extended_data(channel, ignore) \\\n  libssh2_channel_handle_extended_data((channel),                       \\\n                                       (ignore) ?                       \\\n                                       LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE : \\\n                                       LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL)\n\n#define LIBSSH2_CHANNEL_FLUSH_EXTENDED_DATA     -1\n#define LIBSSH2_CHANNEL_FLUSH_ALL               -2\nLIBSSH2_API int libssh2_channel_flush_ex(LIBSSH2_CHANNEL *channel,\n                                         int streamid);\n#define libssh2_channel_flush(channel) libssh2_channel_flush_ex((channel), 0)\n#define libssh2_channel_flush_stderr(channel) \\\n libssh2_channel_flush_ex((channel), SSH_EXTENDED_DATA_STDERR)\n\nLIBSSH2_API int libssh2_channel_get_exit_status(LIBSSH2_CHANNEL* channel);\nLIBSSH2_API int libssh2_channel_get_exit_signal(LIBSSH2_CHANNEL* channel,\n                                                char **exitsignal,\n                                                size_t *exitsignal_len,\n                                                char **errmsg,\n                                                size_t *errmsg_len,\n                                                char **langtag,\n                                                size_t *langtag_len);\nLIBSSH2_API int libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_wait_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_close(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_wait_closed(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_free(LIBSSH2_CHANNEL *channel);\n\n/* libssh2_scp_recv is DEPRECATED, do not use! */\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session,\n                                              const char *path,\n                                              struct stat *sb);\n/* Use libssh2_scp_recv2 for large (> 2GB) file support on windows */\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_recv2(LIBSSH2_SESSION *session,\n                                               const char *path,\n                                               libssh2_struct_stat *sb);\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_send_ex(LIBSSH2_SESSION *session,\n                                                 const char *path, int mode,\n                                                 size_t size, long mtime,\n                                                 long atime);\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_scp_send64(LIBSSH2_SESSION *session, const char *path, int mode,\n                   libssh2_int64_t size, time_t mtime, time_t atime);\n\n#define libssh2_scp_send(session, path, mode, size) \\\n  libssh2_scp_send_ex((session), (path), (mode), (size), 0, 0)\n\nLIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,\n                                      unsigned int *dest_len,\n                                      const char *src, unsigned int src_len);\n\nLIBSSH2_API\nconst char *libssh2_version(int req_version_num);\n\n#define HAVE_LIBSSH2_KNOWNHOST_API 0x010101 /* since 1.1.1 */\n#define HAVE_LIBSSH2_VERSION_API   0x010100 /* libssh2_version since 1.1 */\n\nstruct libssh2_knownhost {\n    unsigned int magic;  /* magic stored by the library */\n    void *node; /* handle to the internal representation of this host */\n    char *name; /* this is NULL if no plain text host name exists */\n    char *key;  /* key in base64/printable format */\n    int typemask;\n};\n\n/*\n * libssh2_knownhost_init\n *\n * Init a collection of known hosts. Returns the pointer to a collection.\n *\n */\nLIBSSH2_API LIBSSH2_KNOWNHOSTS *\nlibssh2_knownhost_init(LIBSSH2_SESSION *session);\n\n/*\n * libssh2_knownhost_add\n *\n * Add a host and its associated key to the collection of known hosts.\n *\n * The 'type' argument specifies on what format the given host and keys are:\n *\n * plain  - ascii \"hostname.domain.tld\"\n * sha1   - SHA1(<salt> <host>) base64-encoded!\n * custom - another hash\n *\n * If 'sha1' is selected as type, the salt must be provided to the salt\n * argument. This too base64 encoded.\n *\n * The SHA-1 hash is what OpenSSH can be told to use in known_hosts files.  If\n * a custom type is used, salt is ignored and you must provide the host\n * pre-hashed when checking for it in the libssh2_knownhost_check() function.\n *\n * The keylen parameter may be omitted (zero) if the key is provided as a\n * NULL-terminated base64-encoded string.\n */\n\n/* host format (2 bits) */\n#define LIBSSH2_KNOWNHOST_TYPE_MASK    0xffff\n#define LIBSSH2_KNOWNHOST_TYPE_PLAIN   1\n#define LIBSSH2_KNOWNHOST_TYPE_SHA1    2 /* always base64 encoded */\n#define LIBSSH2_KNOWNHOST_TYPE_CUSTOM  3\n\n/* key format (2 bits) */\n#define LIBSSH2_KNOWNHOST_KEYENC_MASK     (3<<16)\n#define LIBSSH2_KNOWNHOST_KEYENC_RAW      (1<<16)\n#define LIBSSH2_KNOWNHOST_KEYENC_BASE64   (2<<16)\n\n/* type of key (3 bits) */\n#define LIBSSH2_KNOWNHOST_KEY_MASK         (15<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SHIFT        18\n#define LIBSSH2_KNOWNHOST_KEY_RSA1         (1<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SSHRSA       (2<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SSHDSS       (3<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_256    (4<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_384    (5<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_521    (6<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ED25519      (7<<18)\n#define LIBSSH2_KNOWNHOST_KEY_UNKNOWN      (15<<18)\n\nLIBSSH2_API int\nlibssh2_knownhost_add(LIBSSH2_KNOWNHOSTS *hosts,\n                      const char *host,\n                      const char *salt,\n                      const char *key, size_t keylen, int typemask,\n                      struct libssh2_knownhost **store);\n\n/*\n * libssh2_knownhost_addc\n *\n * Add a host and its associated key to the collection of known hosts.\n *\n * Takes a comment argument that may be NULL.  A NULL comment indicates\n * there is no comment and the entry will end directly after the key\n * when written out to a file.  An empty string \"\" comment will indicate an\n * empty comment which will cause a single space to be written after the key.\n *\n * The 'type' argument specifies on what format the given host and keys are:\n *\n * plain  - ascii \"hostname.domain.tld\"\n * sha1   - SHA1(<salt> <host>) base64-encoded!\n * custom - another hash\n *\n * If 'sha1' is selected as type, the salt must be provided to the salt\n * argument. This too base64 encoded.\n *\n * The SHA-1 hash is what OpenSSH can be told to use in known_hosts files.  If\n * a custom type is used, salt is ignored and you must provide the host\n * pre-hashed when checking for it in the libssh2_knownhost_check() function.\n *\n * The keylen parameter may be omitted (zero) if the key is provided as a\n * NULL-terminated base64-encoded string.\n */\n\nLIBSSH2_API int\nlibssh2_knownhost_addc(LIBSSH2_KNOWNHOSTS *hosts,\n                       const char *host,\n                       const char *salt,\n                       const char *key, size_t keylen,\n                       const char *comment, size_t commentlen, int typemask,\n                       struct libssh2_knownhost **store);\n\n/*\n * libssh2_knownhost_check\n *\n * Check a host and its associated key against the collection of known hosts.\n *\n * The type is the type/format of the given host name.\n *\n * plain  - ascii \"hostname.domain.tld\"\n * custom - prehashed base64 encoded. Note that this cannot use any salts.\n *\n *\n * 'knownhost' may be set to NULL if you don't care about that info.\n *\n * Returns:\n *\n * LIBSSH2_KNOWNHOST_CHECK_* values, see below\n *\n */\n\n#define LIBSSH2_KNOWNHOST_CHECK_MATCH    0\n#define LIBSSH2_KNOWNHOST_CHECK_MISMATCH 1\n#define LIBSSH2_KNOWNHOST_CHECK_NOTFOUND 2\n#define LIBSSH2_KNOWNHOST_CHECK_FAILURE  3\n\nLIBSSH2_API int\nlibssh2_knownhost_check(LIBSSH2_KNOWNHOSTS *hosts,\n                        const char *host, const char *key, size_t keylen,\n                        int typemask,\n                        struct libssh2_knownhost **knownhost);\n\n/* this function is identital to the above one, but also takes a port\n   argument that allows libssh2 to do a better check */\nLIBSSH2_API int\nlibssh2_knownhost_checkp(LIBSSH2_KNOWNHOSTS *hosts,\n                         const char *host, int port,\n                         const char *key, size_t keylen,\n                         int typemask,\n                         struct libssh2_knownhost **knownhost);\n\n/*\n * libssh2_knownhost_del\n *\n * Remove a host from the collection of known hosts. The 'entry' struct is\n * retrieved by a call to libssh2_knownhost_check().\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_del(LIBSSH2_KNOWNHOSTS *hosts,\n                      struct libssh2_knownhost *entry);\n\n/*\n * libssh2_knownhost_free\n *\n * Free an entire collection of known hosts.\n *\n */\nLIBSSH2_API void\nlibssh2_knownhost_free(LIBSSH2_KNOWNHOSTS *hosts);\n\n/*\n * libssh2_knownhost_readline()\n *\n * Pass in a line of a file of 'type'. It makes libssh2 read this line.\n *\n * LIBSSH2_KNOWNHOST_FILE_OPENSSH is the only supported type.\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,\n                           const char *line, size_t len, int type);\n\n/*\n * libssh2_knownhost_readfile\n *\n * Add hosts+key pairs from a given file.\n *\n * Returns a negative value for error or number of successfully added hosts.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n */\n\n#define LIBSSH2_KNOWNHOST_FILE_OPENSSH 1\n\nLIBSSH2_API int\nlibssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,\n                           const char *filename, int type);\n\n/*\n * libssh2_knownhost_writeline()\n *\n * Ask libssh2 to convert a known host to an output line for storage.\n *\n * Note that this function returns LIBSSH2_ERROR_BUFFER_TOO_SMALL if the given\n * output buffer is too small to hold the desired output.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_writeline(LIBSSH2_KNOWNHOSTS *hosts,\n                            struct libssh2_knownhost *known,\n                            char *buffer, size_t buflen,\n                            size_t *outlen, /* the amount of written data */\n                            int type);\n\n/*\n * libssh2_knownhost_writefile\n *\n * Write hosts+key pairs to a given file.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n */\n\nLIBSSH2_API int\nlibssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,\n                            const char *filename, int type);\n\n/*\n * libssh2_knownhost_get()\n *\n * Traverse the internal list of known hosts. Pass NULL to 'prev' to get\n * the first one. Or pass a poiner to the previously returned one to get the\n * next.\n *\n * Returns:\n * 0 if a fine host was stored in 'store'\n * 1 if end of hosts\n * [negative] on errors\n */\nLIBSSH2_API int\nlibssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,\n                      struct libssh2_knownhost **store,\n                      struct libssh2_knownhost *prev);\n\n#define HAVE_LIBSSH2_AGENT_API 0x010202 /* since 1.2.2 */\n\nstruct libssh2_agent_publickey {\n    unsigned int magic;              /* magic stored by the library */\n    void *node;     /* handle to the internal representation of key */\n    unsigned char *blob;           /* public key blob */\n    size_t blob_len;               /* length of the public key blob */\n    char *comment;                 /* comment in printable format */\n};\n\n/*\n * libssh2_agent_init\n *\n * Init an ssh-agent handle. Returns the pointer to the handle.\n *\n */\nLIBSSH2_API LIBSSH2_AGENT *\nlibssh2_agent_init(LIBSSH2_SESSION *session);\n\n/*\n * libssh2_agent_connect()\n *\n * Connect to an ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_connect(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_list_identities()\n *\n * Request an ssh-agent to list identities.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_list_identities(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_get_identity()\n *\n * Traverse the internal list of public keys. Pass NULL to 'prev' to get\n * the first one. Or pass a poiner to the previously returned one to get the\n * next.\n *\n * Returns:\n * 0 if a fine public key was stored in 'store'\n * 1 if end of public keys\n * [negative] on errors\n */\nLIBSSH2_API int\nlibssh2_agent_get_identity(LIBSSH2_AGENT *agent,\n               struct libssh2_agent_publickey **store,\n               struct libssh2_agent_publickey *prev);\n\n/*\n * libssh2_agent_userauth()\n *\n * Do publickey user authentication with the help of ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_userauth(LIBSSH2_AGENT *agent,\n               const char *username,\n               struct libssh2_agent_publickey *identity);\n\n/*\n * libssh2_agent_disconnect()\n *\n * Close a connection to an ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_disconnect(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_free()\n *\n * Free an ssh-agent handle.  This function also frees the internal\n * collection of public keys.\n */\nLIBSSH2_API void\nlibssh2_agent_free(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_set_identity_path()\n *\n * Allows a custom agent identity socket path beyond SSH_AUTH_SOCK env\n *\n */\nLIBSSH2_API void\nlibssh2_agent_set_identity_path(LIBSSH2_AGENT *agent,\n                                const char *path);\n\n/*\n * libssh2_agent_get_identity_path()\n *\n * Returns the custom agent identity socket path if set\n *\n */\nLIBSSH2_API const char *\nlibssh2_agent_get_identity_path(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_keepalive_config()\n *\n * Set how often keepalive messages should be sent.  WANT_REPLY\n * indicates whether the keepalive messages should request a response\n * from the server.  INTERVAL is number of seconds that can pass\n * without any I/O, use 0 (the default) to disable keepalives.  To\n * avoid some busy-loop corner-cases, if you specify an interval of 1\n * it will be treated as 2.\n *\n * Note that non-blocking applications are responsible for sending the\n * keepalive messages using libssh2_keepalive_send().\n */\nLIBSSH2_API void libssh2_keepalive_config(LIBSSH2_SESSION *session,\n                                          int want_reply,\n                                          unsigned interval);\n\n/*\n * libssh2_keepalive_send()\n *\n * Send a keepalive message if needed.  SECONDS_TO_NEXT indicates how\n * many seconds you can sleep after this call before you need to call\n * it again.  Returns 0 on success, or LIBSSH2_ERROR_SOCKET_SEND on\n * I/O errors.\n */\nLIBSSH2_API int libssh2_keepalive_send(LIBSSH2_SESSION *session,\n                                       int *seconds_to_next);\n\n/* NOTE NOTE NOTE\n   libssh2_trace() has no function in builds that aren't built with debug\n   enabled\n */\nLIBSSH2_API int libssh2_trace(LIBSSH2_SESSION *session, int bitmask);\n#define LIBSSH2_TRACE_TRANS (1<<1)\n#define LIBSSH2_TRACE_KEX   (1<<2)\n#define LIBSSH2_TRACE_AUTH  (1<<3)\n#define LIBSSH2_TRACE_CONN  (1<<4)\n#define LIBSSH2_TRACE_SCP   (1<<5)\n#define LIBSSH2_TRACE_SFTP  (1<<6)\n#define LIBSSH2_TRACE_ERROR (1<<7)\n#define LIBSSH2_TRACE_PUBLICKEY (1<<8)\n#define LIBSSH2_TRACE_SOCKET (1<<9)\n\ntypedef void (*libssh2_trace_handler_func)(LIBSSH2_SESSION*,\n                                           void *,\n                                           const char *,\n                                           size_t);\nLIBSSH2_API int libssh2_trace_sethandler(LIBSSH2_SESSION *session,\n                                         void *context,\n                                         libssh2_trace_handler_func callback);\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* !RC_INVOKED */\n\n#endif /* LIBSSH2_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/ios-arm64_x86_64-simulator/Headers/libssh2_publickey.h",
    "content": "/* Copyright (c) 2004-2006, Sara Golemon <sarag@libssh2.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n/* Note: This include file is only needed for using the\n * publickey SUBSYSTEM which is not the same as publickey\n * authentication.  For authentication you only need libssh2.h\n *\n * For more information on the publickey subsystem,\n * refer to IETF draft: secsh-publickey\n */\n\n#ifndef LIBSSH2_PUBLICKEY_H\n#define LIBSSH2_PUBLICKEY_H 1\n\n#include \"libssh2.h\"\n\ntypedef struct _LIBSSH2_PUBLICKEY               LIBSSH2_PUBLICKEY;\n\ntypedef struct _libssh2_publickey_attribute {\n    const char *name;\n    unsigned long name_len;\n    const char *value;\n    unsigned long value_len;\n    char mandatory;\n} libssh2_publickey_attribute;\n\ntypedef struct _libssh2_publickey_list {\n    unsigned char *packet; /* For freeing */\n\n    const unsigned char *name;\n    unsigned long name_len;\n    const unsigned char *blob;\n    unsigned long blob_len;\n    unsigned long num_attrs;\n    libssh2_publickey_attribute *attrs; /* free me */\n} libssh2_publickey_list;\n\n/* Generally use the first macro here, but if both name and value are string\n   literals, you can use _fast() to take advantage of preprocessing */\n#define libssh2_publickey_attribute(name, value, mandatory) \\\n  { (name), strlen(name), (value), strlen(value), (mandatory) },\n#define libssh2_publickey_attribute_fast(name, value, mandatory) \\\n  { (name), sizeof(name) - 1, (value), sizeof(value) - 1, (mandatory) },\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Publickey Subsystem */\nLIBSSH2_API LIBSSH2_PUBLICKEY *\nlibssh2_publickey_init(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int\nlibssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey,\n                         const unsigned char *name,\n                         unsigned long name_len,\n                         const unsigned char *blob,\n                         unsigned long blob_len, char overwrite,\n                         unsigned long num_attrs,\n                         const libssh2_publickey_attribute attrs[]);\n#define libssh2_publickey_add(pkey, name, blob, blob_len, overwrite,    \\\n                              num_attrs, attrs)                         \\\n  libssh2_publickey_add_ex((pkey), (name), strlen(name), (blob), (blob_len), \\\n                           (overwrite), (num_attrs), (attrs))\n\nLIBSSH2_API int libssh2_publickey_remove_ex(LIBSSH2_PUBLICKEY *pkey,\n                                            const unsigned char *name,\n                                            unsigned long name_len,\n                                            const unsigned char *blob,\n                                            unsigned long blob_len);\n#define libssh2_publickey_remove(pkey, name, blob, blob_len) \\\n  libssh2_publickey_remove_ex((pkey), (name), strlen(name), (blob), (blob_len))\n\nLIBSSH2_API int\nlibssh2_publickey_list_fetch(LIBSSH2_PUBLICKEY *pkey,\n                             unsigned long *num_keys,\n                             libssh2_publickey_list **pkey_list);\nLIBSSH2_API void\nlibssh2_publickey_list_free(LIBSSH2_PUBLICKEY *pkey,\n                            libssh2_publickey_list *pkey_list);\n\nLIBSSH2_API int libssh2_publickey_shutdown(LIBSSH2_PUBLICKEY *pkey);\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* ifndef: LIBSSH2_PUBLICKEY_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/ios-arm64_x86_64-simulator/Headers/libssh2_sftp.h",
    "content": "/* Copyright (c) 2004-2008, Sara Golemon <sarag@libssh2.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n#ifndef LIBSSH2_SFTP_H\n#define LIBSSH2_SFTP_H 1\n\n#include \"libssh2.h\"\n\n#ifndef WIN32\n#include <unistd.h>\n#endif\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Note: Version 6 was documented at the time of writing\n * However it was marked as \"DO NOT IMPLEMENT\" due to pending changes\n *\n * Let's start with Version 3 (The version found in OpenSSH) and go from there\n */\n#define LIBSSH2_SFTP_VERSION        3\n\ntypedef struct _LIBSSH2_SFTP                LIBSSH2_SFTP;\ntypedef struct _LIBSSH2_SFTP_HANDLE         LIBSSH2_SFTP_HANDLE;\ntypedef struct _LIBSSH2_SFTP_ATTRIBUTES     LIBSSH2_SFTP_ATTRIBUTES;\ntypedef struct _LIBSSH2_SFTP_STATVFS        LIBSSH2_SFTP_STATVFS;\n\n/* Flags for open_ex() */\n#define LIBSSH2_SFTP_OPENFILE           0\n#define LIBSSH2_SFTP_OPENDIR            1\n\n/* Flags for rename_ex() */\n#define LIBSSH2_SFTP_RENAME_OVERWRITE   0x00000001\n#define LIBSSH2_SFTP_RENAME_ATOMIC      0x00000002\n#define LIBSSH2_SFTP_RENAME_NATIVE      0x00000004\n\n/* Flags for stat_ex() */\n#define LIBSSH2_SFTP_STAT               0\n#define LIBSSH2_SFTP_LSTAT              1\n#define LIBSSH2_SFTP_SETSTAT            2\n\n/* Flags for symlink_ex() */\n#define LIBSSH2_SFTP_SYMLINK            0\n#define LIBSSH2_SFTP_READLINK           1\n#define LIBSSH2_SFTP_REALPATH           2\n\n/* Flags for sftp_mkdir() */\n#define LIBSSH2_SFTP_DEFAULT_MODE      -1\n\n/* SFTP attribute flag bits */\n#define LIBSSH2_SFTP_ATTR_SIZE              0x00000001\n#define LIBSSH2_SFTP_ATTR_UIDGID            0x00000002\n#define LIBSSH2_SFTP_ATTR_PERMISSIONS       0x00000004\n#define LIBSSH2_SFTP_ATTR_ACMODTIME         0x00000008\n#define LIBSSH2_SFTP_ATTR_EXTENDED          0x80000000\n\n/* SFTP statvfs flag bits */\n#define LIBSSH2_SFTP_ST_RDONLY              0x00000001\n#define LIBSSH2_SFTP_ST_NOSUID              0x00000002\n\nstruct _LIBSSH2_SFTP_ATTRIBUTES {\n    /* If flags & ATTR_* bit is set, then the value in this struct will be\n     * meaningful Otherwise it should be ignored\n     */\n    unsigned long flags;\n\n    libssh2_uint64_t filesize;\n    unsigned long uid, gid;\n    unsigned long permissions;\n    unsigned long atime, mtime;\n};\n\nstruct _LIBSSH2_SFTP_STATVFS {\n    libssh2_uint64_t  f_bsize;    /* file system block size */\n    libssh2_uint64_t  f_frsize;   /* fragment size */\n    libssh2_uint64_t  f_blocks;   /* size of fs in f_frsize units */\n    libssh2_uint64_t  f_bfree;    /* # free blocks */\n    libssh2_uint64_t  f_bavail;   /* # free blocks for non-root */\n    libssh2_uint64_t  f_files;    /* # inodes */\n    libssh2_uint64_t  f_ffree;    /* # free inodes */\n    libssh2_uint64_t  f_favail;   /* # free inodes for non-root */\n    libssh2_uint64_t  f_fsid;     /* file system ID */\n    libssh2_uint64_t  f_flag;     /* mount flags */\n    libssh2_uint64_t  f_namemax;  /* maximum filename length */\n};\n\n/* SFTP filetypes */\n#define LIBSSH2_SFTP_TYPE_REGULAR           1\n#define LIBSSH2_SFTP_TYPE_DIRECTORY         2\n#define LIBSSH2_SFTP_TYPE_SYMLINK           3\n#define LIBSSH2_SFTP_TYPE_SPECIAL           4\n#define LIBSSH2_SFTP_TYPE_UNKNOWN           5\n#define LIBSSH2_SFTP_TYPE_SOCKET            6\n#define LIBSSH2_SFTP_TYPE_CHAR_DEVICE       7\n#define LIBSSH2_SFTP_TYPE_BLOCK_DEVICE      8\n#define LIBSSH2_SFTP_TYPE_FIFO              9\n\n/*\n * Reproduce the POSIX file modes here for systems that are not POSIX\n * compliant.\n *\n * These is used in \"permissions\" of \"struct _LIBSSH2_SFTP_ATTRIBUTES\"\n */\n/* File type */\n#define LIBSSH2_SFTP_S_IFMT         0170000     /* type of file mask */\n#define LIBSSH2_SFTP_S_IFIFO        0010000     /* named pipe (fifo) */\n#define LIBSSH2_SFTP_S_IFCHR        0020000     /* character special */\n#define LIBSSH2_SFTP_S_IFDIR        0040000     /* directory */\n#define LIBSSH2_SFTP_S_IFBLK        0060000     /* block special */\n#define LIBSSH2_SFTP_S_IFREG        0100000     /* regular */\n#define LIBSSH2_SFTP_S_IFLNK        0120000     /* symbolic link */\n#define LIBSSH2_SFTP_S_IFSOCK       0140000     /* socket */\n\n/* File mode */\n/* Read, write, execute/search by owner */\n#define LIBSSH2_SFTP_S_IRWXU        0000700     /* RWX mask for owner */\n#define LIBSSH2_SFTP_S_IRUSR        0000400     /* R for owner */\n#define LIBSSH2_SFTP_S_IWUSR        0000200     /* W for owner */\n#define LIBSSH2_SFTP_S_IXUSR        0000100     /* X for owner */\n/* Read, write, execute/search by group */\n#define LIBSSH2_SFTP_S_IRWXG        0000070     /* RWX mask for group */\n#define LIBSSH2_SFTP_S_IRGRP        0000040     /* R for group */\n#define LIBSSH2_SFTP_S_IWGRP        0000020     /* W for group */\n#define LIBSSH2_SFTP_S_IXGRP        0000010     /* X for group */\n/* Read, write, execute/search by others */\n#define LIBSSH2_SFTP_S_IRWXO        0000007     /* RWX mask for other */\n#define LIBSSH2_SFTP_S_IROTH        0000004     /* R for other */\n#define LIBSSH2_SFTP_S_IWOTH        0000002     /* W for other */\n#define LIBSSH2_SFTP_S_IXOTH        0000001     /* X for other */\n\n/* macros to check for specific file types, added in 1.2.5 */\n#define LIBSSH2_SFTP_S_ISLNK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFLNK)\n#define LIBSSH2_SFTP_S_ISREG(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFREG)\n#define LIBSSH2_SFTP_S_ISDIR(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFDIR)\n#define LIBSSH2_SFTP_S_ISCHR(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFCHR)\n#define LIBSSH2_SFTP_S_ISBLK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFBLK)\n#define LIBSSH2_SFTP_S_ISFIFO(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFIFO)\n#define LIBSSH2_SFTP_S_ISSOCK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFSOCK)\n\n/* SFTP File Transfer Flags -- (e.g. flags parameter to sftp_open())\n * Danger will robinson... APPEND doesn't have any effect on OpenSSH servers */\n#define LIBSSH2_FXF_READ                        0x00000001\n#define LIBSSH2_FXF_WRITE                       0x00000002\n#define LIBSSH2_FXF_APPEND                      0x00000004\n#define LIBSSH2_FXF_CREAT                       0x00000008\n#define LIBSSH2_FXF_TRUNC                       0x00000010\n#define LIBSSH2_FXF_EXCL                        0x00000020\n\n/* SFTP Status Codes (returned by libssh2_sftp_last_error() ) */\n#define LIBSSH2_FX_OK                       0\n#define LIBSSH2_FX_EOF                      1\n#define LIBSSH2_FX_NO_SUCH_FILE             2\n#define LIBSSH2_FX_PERMISSION_DENIED        3\n#define LIBSSH2_FX_FAILURE                  4\n#define LIBSSH2_FX_BAD_MESSAGE              5\n#define LIBSSH2_FX_NO_CONNECTION            6\n#define LIBSSH2_FX_CONNECTION_LOST          7\n#define LIBSSH2_FX_OP_UNSUPPORTED           8\n#define LIBSSH2_FX_INVALID_HANDLE           9\n#define LIBSSH2_FX_NO_SUCH_PATH             10\n#define LIBSSH2_FX_FILE_ALREADY_EXISTS      11\n#define LIBSSH2_FX_WRITE_PROTECT            12\n#define LIBSSH2_FX_NO_MEDIA                 13\n#define LIBSSH2_FX_NO_SPACE_ON_FILESYSTEM   14\n#define LIBSSH2_FX_QUOTA_EXCEEDED           15\n#define LIBSSH2_FX_UNKNOWN_PRINCIPLE        16 /* Initial mis-spelling */\n#define LIBSSH2_FX_UNKNOWN_PRINCIPAL        16\n#define LIBSSH2_FX_LOCK_CONFlICT            17 /* Initial mis-spelling */\n#define LIBSSH2_FX_LOCK_CONFLICT            17\n#define LIBSSH2_FX_DIR_NOT_EMPTY            18\n#define LIBSSH2_FX_NOT_A_DIRECTORY          19\n#define LIBSSH2_FX_INVALID_FILENAME         20\n#define LIBSSH2_FX_LINK_LOOP                21\n\n/* Returned by any function that would block during a read/write opperation */\n#define LIBSSH2SFTP_EAGAIN LIBSSH2_ERROR_EAGAIN\n\n/* SFTP API */\nLIBSSH2_API LIBSSH2_SFTP *libssh2_sftp_init(LIBSSH2_SESSION *session);\nLIBSSH2_API int libssh2_sftp_shutdown(LIBSSH2_SFTP *sftp);\nLIBSSH2_API unsigned long libssh2_sftp_last_error(LIBSSH2_SFTP *sftp);\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_sftp_get_channel(LIBSSH2_SFTP *sftp);\n\n/* File / Directory Ops */\nLIBSSH2_API LIBSSH2_SFTP_HANDLE *\nlibssh2_sftp_open_ex(LIBSSH2_SFTP *sftp,\n                     const char *filename,\n                     unsigned int filename_len,\n                     unsigned long flags,\n                     long mode, int open_type);\n#define libssh2_sftp_open(sftp, filename, flags, mode)                  \\\n    libssh2_sftp_open_ex((sftp), (filename), strlen(filename), (flags), \\\n                         (mode), LIBSSH2_SFTP_OPENFILE)\n#define libssh2_sftp_opendir(sftp, path) \\\n    libssh2_sftp_open_ex((sftp), (path), strlen(path), 0, 0, \\\n                         LIBSSH2_SFTP_OPENDIR)\n\nLIBSSH2_API ssize_t libssh2_sftp_read(LIBSSH2_SFTP_HANDLE *handle,\n                                      char *buffer, size_t buffer_maxlen);\n\nLIBSSH2_API int libssh2_sftp_readdir_ex(LIBSSH2_SFTP_HANDLE *handle, \\\n                                        char *buffer, size_t buffer_maxlen,\n                                        char *longentry,\n                                        size_t longentry_maxlen,\n                                        LIBSSH2_SFTP_ATTRIBUTES *attrs);\n#define libssh2_sftp_readdir(handle, buffer, buffer_maxlen, attrs)      \\\n    libssh2_sftp_readdir_ex((handle), (buffer), (buffer_maxlen), NULL, 0, \\\n                            (attrs))\n\nLIBSSH2_API ssize_t libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle,\n                                       const char *buffer, size_t count);\nLIBSSH2_API int libssh2_sftp_fsync(LIBSSH2_SFTP_HANDLE *handle);\n\nLIBSSH2_API int libssh2_sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);\n#define libssh2_sftp_close(handle) libssh2_sftp_close_handle(handle)\n#define libssh2_sftp_closedir(handle) libssh2_sftp_close_handle(handle)\n\nLIBSSH2_API void libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, size_t offset);\nLIBSSH2_API void libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle,\n                                     libssh2_uint64_t offset);\n#define libssh2_sftp_rewind(handle) libssh2_sftp_seek64((handle), 0)\n\nLIBSSH2_API size_t libssh2_sftp_tell(LIBSSH2_SFTP_HANDLE *handle);\nLIBSSH2_API libssh2_uint64_t libssh2_sftp_tell64(LIBSSH2_SFTP_HANDLE *handle);\n\nLIBSSH2_API int libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE *handle,\n                                      LIBSSH2_SFTP_ATTRIBUTES *attrs,\n                                      int setstat);\n#define libssh2_sftp_fstat(handle, attrs) \\\n    libssh2_sftp_fstat_ex((handle), (attrs), 0)\n#define libssh2_sftp_fsetstat(handle, attrs) \\\n    libssh2_sftp_fstat_ex((handle), (attrs), 1)\n\n/* Miscellaneous Ops */\nLIBSSH2_API int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp,\n                                       const char *source_filename,\n                                       unsigned int srouce_filename_len,\n                                       const char *dest_filename,\n                                       unsigned int dest_filename_len,\n                                       long flags);\n#define libssh2_sftp_rename(sftp, sourcefile, destfile) \\\n    libssh2_sftp_rename_ex((sftp), (sourcefile), strlen(sourcefile), \\\n                           (destfile), strlen(destfile),                \\\n                           LIBSSH2_SFTP_RENAME_OVERWRITE | \\\n                           LIBSSH2_SFTP_RENAME_ATOMIC | \\\n                           LIBSSH2_SFTP_RENAME_NATIVE)\n\nLIBSSH2_API int libssh2_sftp_unlink_ex(LIBSSH2_SFTP *sftp,\n                                       const char *filename,\n                                       unsigned int filename_len);\n#define libssh2_sftp_unlink(sftp, filename) \\\n    libssh2_sftp_unlink_ex((sftp), (filename), strlen(filename))\n\nLIBSSH2_API int libssh2_sftp_fstatvfs(LIBSSH2_SFTP_HANDLE *handle,\n                                      LIBSSH2_SFTP_STATVFS *st);\n\nLIBSSH2_API int libssh2_sftp_statvfs(LIBSSH2_SFTP *sftp,\n                                     const char *path,\n                                     size_t path_len,\n                                     LIBSSH2_SFTP_STATVFS *st);\n\nLIBSSH2_API int libssh2_sftp_mkdir_ex(LIBSSH2_SFTP *sftp,\n                                      const char *path,\n                                      unsigned int path_len, long mode);\n#define libssh2_sftp_mkdir(sftp, path, mode) \\\n    libssh2_sftp_mkdir_ex((sftp), (path), strlen(path), (mode))\n\nLIBSSH2_API int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp,\n                                      const char *path,\n                                      unsigned int path_len);\n#define libssh2_sftp_rmdir(sftp, path) \\\n    libssh2_sftp_rmdir_ex((sftp), (path), strlen(path))\n\nLIBSSH2_API int libssh2_sftp_stat_ex(LIBSSH2_SFTP *sftp,\n                                     const char *path,\n                                     unsigned int path_len,\n                                     int stat_type,\n                                     LIBSSH2_SFTP_ATTRIBUTES *attrs);\n#define libssh2_sftp_stat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_STAT, \\\n                         (attrs))\n#define libssh2_sftp_lstat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_LSTAT, \\\n                         (attrs))\n#define libssh2_sftp_setstat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_SETSTAT, \\\n                         (attrs))\n\nLIBSSH2_API int libssh2_sftp_symlink_ex(LIBSSH2_SFTP *sftp,\n                                        const char *path,\n                                        unsigned int path_len,\n                                        char *target,\n                                        unsigned int target_len,\n                                        int link_type);\n#define libssh2_sftp_symlink(sftp, orig, linkpath) \\\n    libssh2_sftp_symlink_ex((sftp), (orig), strlen(orig), (linkpath), \\\n                            strlen(linkpath), LIBSSH2_SFTP_SYMLINK)\n#define libssh2_sftp_readlink(sftp, path, target, maxlen) \\\n    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \\\n    LIBSSH2_SFTP_READLINK)\n#define libssh2_sftp_realpath(sftp, path, target, maxlen) \\\n    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \\\n                            LIBSSH2_SFTP_REALPATH)\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* LIBSSH2_SFTP_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/macos-arm64_x86_64/Headers/libssh2.h",
    "content": "/* Copyright (c) 2004-2009, Sara Golemon <sarag@libssh2.org>\n * Copyright (c) 2009-2015 Daniel Stenberg\n * Copyright (c) 2010 Simon Josefsson <simon@josefsson.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n#ifndef LIBSSH2_H\n#define LIBSSH2_H 1\n\n#define LIBSSH2_COPYRIGHT \"2004-2019 The libssh2 project and its contributors.\"\n\n/* We use underscore instead of dash when appending DEV in dev versions just\n   to make the BANNER define (used by src/session.c) be a valid SSH\n   banner. Release versions have no appended strings and may of course not\n   have dashes either. */\n#define LIBSSH2_VERSION \"1.9.0\"\n\n/* The numeric version number is also available \"in parts\" by using these\n   defines: */\n#define LIBSSH2_VERSION_MAJOR 1\n#define LIBSSH2_VERSION_MINOR 9\n#define LIBSSH2_VERSION_PATCH 0\n\n/* This is the numeric version of the libssh2 version number, meant for easier\n   parsing and comparions by programs. The LIBSSH2_VERSION_NUM define will\n   always follow this syntax:\n\n         0xXXYYZZ\n\n   Where XX, YY and ZZ are the main version, release and patch numbers in\n   hexadecimal (using 8 bits each). All three numbers are always represented\n   using two digits.  1.2 would appear as \"0x010200\" while version 9.11.7\n   appears as \"0x090b07\".\n\n   This 6-digit (24 bits) hexadecimal number does not show pre-release number,\n   and it is always a greater number in a more recent release. It makes\n   comparisons with greater than and less than work.\n*/\n#define LIBSSH2_VERSION_NUM 0x010900\n\n/*\n * This is the date and time when the full source package was created. The\n * timestamp is not stored in the source code repo, as the timestamp is\n * properly set in the tarballs by the maketgz script.\n *\n * The format of the date should follow this template:\n *\n * \"Mon Feb 12 11:35:33 UTC 2007\"\n */\n#define LIBSSH2_TIMESTAMP \"Thu Jun 20 06:19:26 UTC 2019\"\n\n#ifndef RC_INVOKED\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n#ifdef _WIN32\n# include <basetsd.h>\n# include <winsock2.h>\n#endif\n\n#include <stddef.h>\n#include <string.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n\n/* Allow alternate API prefix from CFLAGS or calling app */\n#ifndef LIBSSH2_API\n# ifdef LIBSSH2_WIN32\n#  ifdef _WINDLL\n#   ifdef LIBSSH2_LIBRARY\n#    define LIBSSH2_API __declspec(dllexport)\n#   else\n#    define LIBSSH2_API __declspec(dllimport)\n#   endif /* LIBSSH2_LIBRARY */\n#  else\n#   define LIBSSH2_API\n#  endif\n# else /* !LIBSSH2_WIN32 */\n#  define LIBSSH2_API\n# endif /* LIBSSH2_WIN32 */\n#endif /* LIBSSH2_API */\n\n#ifdef HAVE_SYS_UIO_H\n# include <sys/uio.h>\n#endif\n\n#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))\n# include <sys/bsdskt.h>\ntypedef unsigned char uint8_t;\ntypedef unsigned short int uint16_t;\ntypedef unsigned int uint32_t;\ntypedef int int32_t;\ntypedef unsigned long long uint64_t;\ntypedef long long int64_t;\n#endif\n\n#ifdef _MSC_VER\ntypedef unsigned char uint8_t;\ntypedef unsigned short int uint16_t;\ntypedef unsigned int uint32_t;\ntypedef __int32 int32_t;\ntypedef __int64 int64_t;\ntypedef unsigned __int64 uint64_t;\ntypedef unsigned __int64 libssh2_uint64_t;\ntypedef __int64 libssh2_int64_t;\n#if (!defined(HAVE_SSIZE_T) && !defined(ssize_t))\ntypedef SSIZE_T ssize_t;\n#define HAVE_SSIZE_T\n#endif\n#else\n#include <stdint.h>\ntypedef unsigned long long libssh2_uint64_t;\ntypedef long long libssh2_int64_t;\n#endif\n\n#ifdef WIN32\ntypedef SOCKET libssh2_socket_t;\n#define LIBSSH2_INVALID_SOCKET INVALID_SOCKET\n#else /* !WIN32 */\ntypedef int libssh2_socket_t;\n#define LIBSSH2_INVALID_SOCKET -1\n#endif /* WIN32 */\n\n/*\n * Determine whether there is small or large file support on windows.\n */\n\n#if defined(_MSC_VER) && !defined(_WIN32_WCE)\n#  if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)\n#    define LIBSSH2_USE_WIN32_LARGE_FILES\n#  else\n#    define LIBSSH2_USE_WIN32_SMALL_FILES\n#  endif\n#endif\n\n#if defined(__MINGW32__) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES)\n#  define LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(__WATCOMC__) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES)\n#  define LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(__POCC__)\n#  undef LIBSSH2_USE_WIN32_LARGE_FILES\n#endif\n\n#if defined(_WIN32) && !defined(LIBSSH2_USE_WIN32_LARGE_FILES) && \\\n    !defined(LIBSSH2_USE_WIN32_SMALL_FILES)\n#  define LIBSSH2_USE_WIN32_SMALL_FILES\n#endif\n\n/*\n * Large file (>2Gb) support using WIN32 functions.\n */\n\n#ifdef LIBSSH2_USE_WIN32_LARGE_FILES\n#  include <io.h>\n#  include <sys/types.h>\n#  include <sys/stat.h>\n#  define LIBSSH2_STRUCT_STAT_SIZE_FORMAT    \"%I64d\"\ntypedef struct _stati64 libssh2_struct_stat;\ntypedef __int64 libssh2_struct_stat_size;\n#endif\n\n/*\n * Small file (<2Gb) support using WIN32 functions.\n */\n\n#ifdef LIBSSH2_USE_WIN32_SMALL_FILES\n#  include <sys/types.h>\n#  include <sys/stat.h>\n#  ifndef _WIN32_WCE\n#    define LIBSSH2_STRUCT_STAT_SIZE_FORMAT    \"%d\"\ntypedef struct _stat libssh2_struct_stat;\ntypedef off_t libssh2_struct_stat_size;\n#  endif\n#endif\n\n#ifndef LIBSSH2_STRUCT_STAT_SIZE_FORMAT\n#  ifdef __VMS\n/* We have to roll our own format here because %z is a C99-ism we don't\n   have. */\n#    if __USE_OFF64_T || __USING_STD_STAT\n#      define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%Ld\"\n#    else\n#      define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%d\"\n#    endif\n#  else\n#    define LIBSSH2_STRUCT_STAT_SIZE_FORMAT      \"%zd\"\n#  endif\ntypedef struct stat libssh2_struct_stat;\ntypedef off_t libssh2_struct_stat_size;\n#endif\n\n/* Part of every banner, user specified or not */\n#define LIBSSH2_SSH_BANNER                  \"SSH-2.0-libssh2_\" LIBSSH2_VERSION\n\n#define LIBSSH2_SSH_DEFAULT_BANNER            LIBSSH2_SSH_BANNER\n#define LIBSSH2_SSH_DEFAULT_BANNER_WITH_CRLF  LIBSSH2_SSH_DEFAULT_BANNER \"\\r\\n\"\n\n/* Default generate and safe prime sizes for\n   diffie-hellman-group-exchange-sha1 */\n#define LIBSSH2_DH_GEX_MINGROUP     1024\n#define LIBSSH2_DH_GEX_OPTGROUP     1536\n#define LIBSSH2_DH_GEX_MAXGROUP     2048\n\n/* Defaults for pty requests */\n#define LIBSSH2_TERM_WIDTH      80\n#define LIBSSH2_TERM_HEIGHT     24\n#define LIBSSH2_TERM_WIDTH_PX   0\n#define LIBSSH2_TERM_HEIGHT_PX  0\n\n/* 1/4 second */\n#define LIBSSH2_SOCKET_POLL_UDELAY      250000\n/* 0.25 * 120 == 30 seconds */\n#define LIBSSH2_SOCKET_POLL_MAXLOOPS    120\n\n/* Maximum size to allow a payload to compress to, plays it safe by falling\n   short of spec limits */\n#define LIBSSH2_PACKET_MAXCOMP      32000\n\n/* Maximum size to allow a payload to deccompress to, plays it safe by\n   allowing more than spec requires */\n#define LIBSSH2_PACKET_MAXDECOMP    40000\n\n/* Maximum size for an inbound compressed payload, plays it safe by\n   overshooting spec limits */\n#define LIBSSH2_PACKET_MAXPAYLOAD   40000\n\n/* Malloc callbacks */\n#define LIBSSH2_ALLOC_FUNC(name)   void *name(size_t count, void **abstract)\n#define LIBSSH2_REALLOC_FUNC(name) void *name(void *ptr, size_t count, \\\n                                              void **abstract)\n#define LIBSSH2_FREE_FUNC(name)    void name(void *ptr, void **abstract)\n\ntypedef struct _LIBSSH2_USERAUTH_KBDINT_PROMPT\n{\n    char *text;\n    unsigned int length;\n    unsigned char echo;\n} LIBSSH2_USERAUTH_KBDINT_PROMPT;\n\ntypedef struct _LIBSSH2_USERAUTH_KBDINT_RESPONSE\n{\n    char *text;\n    unsigned int length;\n} LIBSSH2_USERAUTH_KBDINT_RESPONSE;\n\n/* 'publickey' authentication callback */\n#define LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC(name) \\\n  int name(LIBSSH2_SESSION *session, unsigned char **sig, size_t *sig_len, \\\n           const unsigned char *data, size_t data_len, void **abstract)\n\n/* 'keyboard-interactive' authentication callback */\n#define LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(name_) \\\n void name_(const char *name, int name_len, const char *instruction, \\\n            int instruction_len, int num_prompts, \\\n            const LIBSSH2_USERAUTH_KBDINT_PROMPT *prompts,              \\\n            LIBSSH2_USERAUTH_KBDINT_RESPONSE *responses, void **abstract)\n\n/* Callbacks for special SSH packets */\n#define LIBSSH2_IGNORE_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, const char *message, int message_len, \\\n           void **abstract)\n\n#define LIBSSH2_DEBUG_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, int always_display, const char *message, \\\n           int message_len, const char *language, int language_len, \\\n           void **abstract)\n\n#define LIBSSH2_DISCONNECT_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, int reason, const char *message, \\\n           int message_len, const char *language, int language_len, \\\n           void **abstract)\n\n#define LIBSSH2_PASSWD_CHANGEREQ_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, char **newpw, int *newpw_len, \\\n           void **abstract)\n\n#define LIBSSH2_MACERROR_FUNC(name) \\\n int name(LIBSSH2_SESSION *session, const char *packet, int packet_len, \\\n          void **abstract)\n\n#define LIBSSH2_X11_OPEN_FUNC(name) \\\n void name(LIBSSH2_SESSION *session, LIBSSH2_CHANNEL *channel, \\\n           const char *shost, int sport, void **abstract)\n\n#define LIBSSH2_CHANNEL_CLOSE_FUNC(name) \\\n  void name(LIBSSH2_SESSION *session, void **session_abstract, \\\n            LIBSSH2_CHANNEL *channel, void **channel_abstract)\n\n/* I/O callbacks */\n#define LIBSSH2_RECV_FUNC(name)                                         \\\n    ssize_t name(libssh2_socket_t socket,                               \\\n                 void *buffer, size_t length,                           \\\n                 int flags, void **abstract)\n#define LIBSSH2_SEND_FUNC(name)                                         \\\n    ssize_t name(libssh2_socket_t socket,                               \\\n                 const void *buffer, size_t length,                     \\\n                 int flags, void **abstract)\n\n/* libssh2_session_callback_set() constants */\n#define LIBSSH2_CALLBACK_IGNORE             0\n#define LIBSSH2_CALLBACK_DEBUG              1\n#define LIBSSH2_CALLBACK_DISCONNECT         2\n#define LIBSSH2_CALLBACK_MACERROR           3\n#define LIBSSH2_CALLBACK_X11                4\n#define LIBSSH2_CALLBACK_SEND               5\n#define LIBSSH2_CALLBACK_RECV               6\n\n/* libssh2_session_method_pref() constants */\n#define LIBSSH2_METHOD_KEX          0\n#define LIBSSH2_METHOD_HOSTKEY      1\n#define LIBSSH2_METHOD_CRYPT_CS     2\n#define LIBSSH2_METHOD_CRYPT_SC     3\n#define LIBSSH2_METHOD_MAC_CS       4\n#define LIBSSH2_METHOD_MAC_SC       5\n#define LIBSSH2_METHOD_COMP_CS      6\n#define LIBSSH2_METHOD_COMP_SC      7\n#define LIBSSH2_METHOD_LANG_CS      8\n#define LIBSSH2_METHOD_LANG_SC      9\n\n/* flags */\n#define LIBSSH2_FLAG_SIGPIPE        1\n#define LIBSSH2_FLAG_COMPRESS       2\n\ntypedef struct _LIBSSH2_SESSION                     LIBSSH2_SESSION;\ntypedef struct _LIBSSH2_CHANNEL                     LIBSSH2_CHANNEL;\ntypedef struct _LIBSSH2_LISTENER                    LIBSSH2_LISTENER;\ntypedef struct _LIBSSH2_KNOWNHOSTS                  LIBSSH2_KNOWNHOSTS;\ntypedef struct _LIBSSH2_AGENT                       LIBSSH2_AGENT;\n\ntypedef struct _LIBSSH2_POLLFD {\n    unsigned char type; /* LIBSSH2_POLLFD_* below */\n\n    union {\n        libssh2_socket_t socket; /* File descriptors -- examined with\n                                    system select() call */\n        LIBSSH2_CHANNEL *channel; /* Examined by checking internal state */\n        LIBSSH2_LISTENER *listener; /* Read polls only -- are inbound\n                                       connections waiting to be accepted? */\n    } fd;\n\n    unsigned long events; /* Requested Events */\n    unsigned long revents; /* Returned Events */\n} LIBSSH2_POLLFD;\n\n/* Poll FD Descriptor Types */\n#define LIBSSH2_POLLFD_SOCKET       1\n#define LIBSSH2_POLLFD_CHANNEL      2\n#define LIBSSH2_POLLFD_LISTENER     3\n\n/* Note: Win32 Doesn't actually have a poll() implementation, so some of these\n   values are faked with select() data */\n/* Poll FD events/revents -- Match sys/poll.h where possible */\n#define LIBSSH2_POLLFD_POLLIN           0x0001 /* Data available to be read or\n                                                  connection available --\n                                                  All */\n#define LIBSSH2_POLLFD_POLLPRI          0x0002 /* Priority data available to\n                                                  be read -- Socket only */\n#define LIBSSH2_POLLFD_POLLEXT          0x0002 /* Extended data available to\n                                                  be read -- Channel only */\n#define LIBSSH2_POLLFD_POLLOUT          0x0004 /* Can may be written --\n                                                  Socket/Channel */\n/* revents only */\n#define LIBSSH2_POLLFD_POLLERR          0x0008 /* Error Condition -- Socket */\n#define LIBSSH2_POLLFD_POLLHUP          0x0010 /* HangUp/EOF -- Socket */\n#define LIBSSH2_POLLFD_SESSION_CLOSED   0x0010 /* Session Disconnect */\n#define LIBSSH2_POLLFD_POLLNVAL         0x0020 /* Invalid request -- Socket\n                                                  Only */\n#define LIBSSH2_POLLFD_POLLEX           0x0040 /* Exception Condition --\n                                                  Socket/Win32 */\n#define LIBSSH2_POLLFD_CHANNEL_CLOSED   0x0080 /* Channel Disconnect */\n#define LIBSSH2_POLLFD_LISTENER_CLOSED  0x0080 /* Listener Disconnect */\n\n#define HAVE_LIBSSH2_SESSION_BLOCK_DIRECTION\n/* Block Direction Types */\n#define LIBSSH2_SESSION_BLOCK_INBOUND                  0x0001\n#define LIBSSH2_SESSION_BLOCK_OUTBOUND                 0x0002\n\n/* Hash Types */\n#define LIBSSH2_HOSTKEY_HASH_MD5                            1\n#define LIBSSH2_HOSTKEY_HASH_SHA1                           2\n#define LIBSSH2_HOSTKEY_HASH_SHA256                         3\n\n/* Hostkey Types */\n#define LIBSSH2_HOSTKEY_TYPE_UNKNOWN            0\n#define LIBSSH2_HOSTKEY_TYPE_RSA                1\n#define LIBSSH2_HOSTKEY_TYPE_DSS                2\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_256          3\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_384          4\n#define LIBSSH2_HOSTKEY_TYPE_ECDSA_521          5\n#define LIBSSH2_HOSTKEY_TYPE_ED25519            6\n\n/* Disconnect Codes (defined by SSH protocol) */\n#define SSH_DISCONNECT_HOST_NOT_ALLOWED_TO_CONNECT          1\n#define SSH_DISCONNECT_PROTOCOL_ERROR                       2\n#define SSH_DISCONNECT_KEY_EXCHANGE_FAILED                  3\n#define SSH_DISCONNECT_RESERVED                             4\n#define SSH_DISCONNECT_MAC_ERROR                            5\n#define SSH_DISCONNECT_COMPRESSION_ERROR                    6\n#define SSH_DISCONNECT_SERVICE_NOT_AVAILABLE                7\n#define SSH_DISCONNECT_PROTOCOL_VERSION_NOT_SUPPORTED       8\n#define SSH_DISCONNECT_HOST_KEY_NOT_VERIFIABLE              9\n#define SSH_DISCONNECT_CONNECTION_LOST                      10\n#define SSH_DISCONNECT_BY_APPLICATION                       11\n#define SSH_DISCONNECT_TOO_MANY_CONNECTIONS                 12\n#define SSH_DISCONNECT_AUTH_CANCELLED_BY_USER               13\n#define SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE       14\n#define SSH_DISCONNECT_ILLEGAL_USER_NAME                    15\n\n/* Error Codes (defined by libssh2) */\n#define LIBSSH2_ERROR_NONE                      0\n\n/* The library once used -1 as a generic error return value on numerous places\n   through the code, which subsequently was converted to\n   LIBSSH2_ERROR_SOCKET_NONE uses over time. As this is a generic error code,\n   the goal is to never ever return this code but instead make sure that a\n   more accurate and descriptive error code is used. */\n#define LIBSSH2_ERROR_SOCKET_NONE               -1\n\n#define LIBSSH2_ERROR_BANNER_RECV               -2\n#define LIBSSH2_ERROR_BANNER_SEND               -3\n#define LIBSSH2_ERROR_INVALID_MAC               -4\n#define LIBSSH2_ERROR_KEX_FAILURE               -5\n#define LIBSSH2_ERROR_ALLOC                     -6\n#define LIBSSH2_ERROR_SOCKET_SEND               -7\n#define LIBSSH2_ERROR_KEY_EXCHANGE_FAILURE      -8\n#define LIBSSH2_ERROR_TIMEOUT                   -9\n#define LIBSSH2_ERROR_HOSTKEY_INIT              -10\n#define LIBSSH2_ERROR_HOSTKEY_SIGN              -11\n#define LIBSSH2_ERROR_DECRYPT                   -12\n#define LIBSSH2_ERROR_SOCKET_DISCONNECT         -13\n#define LIBSSH2_ERROR_PROTO                     -14\n#define LIBSSH2_ERROR_PASSWORD_EXPIRED          -15\n#define LIBSSH2_ERROR_FILE                      -16\n#define LIBSSH2_ERROR_METHOD_NONE               -17\n#define LIBSSH2_ERROR_AUTHENTICATION_FAILED     -18\n#define LIBSSH2_ERROR_PUBLICKEY_UNRECOGNIZED    \\\n    LIBSSH2_ERROR_AUTHENTICATION_FAILED\n#define LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED      -19\n#define LIBSSH2_ERROR_CHANNEL_OUTOFORDER        -20\n#define LIBSSH2_ERROR_CHANNEL_FAILURE           -21\n#define LIBSSH2_ERROR_CHANNEL_REQUEST_DENIED    -22\n#define LIBSSH2_ERROR_CHANNEL_UNKNOWN           -23\n#define LIBSSH2_ERROR_CHANNEL_WINDOW_EXCEEDED   -24\n#define LIBSSH2_ERROR_CHANNEL_PACKET_EXCEEDED   -25\n#define LIBSSH2_ERROR_CHANNEL_CLOSED            -26\n#define LIBSSH2_ERROR_CHANNEL_EOF_SENT          -27\n#define LIBSSH2_ERROR_SCP_PROTOCOL              -28\n#define LIBSSH2_ERROR_ZLIB                      -29\n#define LIBSSH2_ERROR_SOCKET_TIMEOUT            -30\n#define LIBSSH2_ERROR_SFTP_PROTOCOL             -31\n#define LIBSSH2_ERROR_REQUEST_DENIED            -32\n#define LIBSSH2_ERROR_METHOD_NOT_SUPPORTED      -33\n#define LIBSSH2_ERROR_INVAL                     -34\n#define LIBSSH2_ERROR_INVALID_POLL_TYPE         -35\n#define LIBSSH2_ERROR_PUBLICKEY_PROTOCOL        -36\n#define LIBSSH2_ERROR_EAGAIN                    -37\n#define LIBSSH2_ERROR_BUFFER_TOO_SMALL          -38\n#define LIBSSH2_ERROR_BAD_USE                   -39\n#define LIBSSH2_ERROR_COMPRESS                  -40\n#define LIBSSH2_ERROR_OUT_OF_BOUNDARY           -41\n#define LIBSSH2_ERROR_AGENT_PROTOCOL            -42\n#define LIBSSH2_ERROR_SOCKET_RECV               -43\n#define LIBSSH2_ERROR_ENCRYPT                   -44\n#define LIBSSH2_ERROR_BAD_SOCKET                -45\n#define LIBSSH2_ERROR_KNOWN_HOSTS               -46\n#define LIBSSH2_ERROR_CHANNEL_WINDOW_FULL       -47\n#define LIBSSH2_ERROR_KEYFILE_AUTH_FAILED       -48\n\n/* this is a define to provide the old (<= 1.2.7) name */\n#define LIBSSH2_ERROR_BANNER_NONE LIBSSH2_ERROR_BANNER_RECV\n\n/* Global API */\n#define LIBSSH2_INIT_NO_CRYPTO        0x0001\n\n/*\n * libssh2_init()\n *\n * Initialize the libssh2 functions.  This typically initialize the\n * crypto library.  It uses a global state, and is not thread safe --\n * you must make sure this function is not called concurrently.\n *\n * Flags can be:\n * 0:                              Normal initialize\n * LIBSSH2_INIT_NO_CRYPTO:         Do not initialize the crypto library (ie.\n *                                 OPENSSL_add_cipher_algoritms() for OpenSSL\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int libssh2_init(int flags);\n\n/*\n * libssh2_exit()\n *\n * Exit the libssh2 functions and free's all memory used internal.\n */\nLIBSSH2_API void libssh2_exit(void);\n\n/*\n * libssh2_free()\n *\n * Deallocate memory allocated by earlier call to libssh2 functions.\n */\nLIBSSH2_API void libssh2_free(LIBSSH2_SESSION *session, void *ptr);\n\n/*\n * libssh2_session_supported_algs()\n *\n * Fills algs with a list of supported acryptographic algorithms. Returns a\n * non-negative number (number of supported algorithms) on success or a\n * negative number (an eror code) on failure.\n *\n * NOTE: on success, algs must be deallocated (by calling libssh2_free) when\n * not needed anymore\n */\nLIBSSH2_API int libssh2_session_supported_algs(LIBSSH2_SESSION* session,\n                                               int method_type,\n                                               const char ***algs);\n\n/* Session API */\nLIBSSH2_API LIBSSH2_SESSION *\nlibssh2_session_init_ex(LIBSSH2_ALLOC_FUNC((*my_alloc)),\n                        LIBSSH2_FREE_FUNC((*my_free)),\n                        LIBSSH2_REALLOC_FUNC((*my_realloc)), void *abstract);\n#define libssh2_session_init() libssh2_session_init_ex(NULL, NULL, NULL, NULL)\n\nLIBSSH2_API void **libssh2_session_abstract(LIBSSH2_SESSION *session);\n\nLIBSSH2_API void *libssh2_session_callback_set(LIBSSH2_SESSION *session,\n                                               int cbtype, void *callback);\nLIBSSH2_API int libssh2_session_banner_set(LIBSSH2_SESSION *session,\n                                           const char *banner);\nLIBSSH2_API int libssh2_banner_set(LIBSSH2_SESSION *session,\n                                   const char *banner);\n\nLIBSSH2_API int libssh2_session_startup(LIBSSH2_SESSION *session, int sock);\nLIBSSH2_API int libssh2_session_handshake(LIBSSH2_SESSION *session,\n                                          libssh2_socket_t sock);\nLIBSSH2_API int libssh2_session_disconnect_ex(LIBSSH2_SESSION *session,\n                                              int reason,\n                                              const char *description,\n                                              const char *lang);\n#define libssh2_session_disconnect(session, description) \\\n  libssh2_session_disconnect_ex((session), SSH_DISCONNECT_BY_APPLICATION, \\\n                                (description), \"\")\n\nLIBSSH2_API int libssh2_session_free(LIBSSH2_SESSION *session);\n\nLIBSSH2_API const char *libssh2_hostkey_hash(LIBSSH2_SESSION *session,\n                                             int hash_type);\n\nLIBSSH2_API const char *libssh2_session_hostkey(LIBSSH2_SESSION *session,\n                                                size_t *len, int *type);\n\nLIBSSH2_API int libssh2_session_method_pref(LIBSSH2_SESSION *session,\n                                            int method_type,\n                                            const char *prefs);\nLIBSSH2_API const char *libssh2_session_methods(LIBSSH2_SESSION *session,\n                                                int method_type);\nLIBSSH2_API int libssh2_session_last_error(LIBSSH2_SESSION *session,\n                                           char **errmsg,\n                                           int *errmsg_len, int want_buf);\nLIBSSH2_API int libssh2_session_last_errno(LIBSSH2_SESSION *session);\nLIBSSH2_API int libssh2_session_set_last_error(LIBSSH2_SESSION* session,\n                                               int errcode,\n                                               const char *errmsg);\nLIBSSH2_API int libssh2_session_block_directions(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int libssh2_session_flag(LIBSSH2_SESSION *session, int flag,\n                                     int value);\nLIBSSH2_API const char *libssh2_session_banner_get(LIBSSH2_SESSION *session);\n\n/* Userauth API */\nLIBSSH2_API char *libssh2_userauth_list(LIBSSH2_SESSION *session,\n                                        const char *username,\n                                        unsigned int username_len);\nLIBSSH2_API int libssh2_userauth_authenticated(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int\nlibssh2_userauth_password_ex(LIBSSH2_SESSION *session,\n                             const char *username,\n                             unsigned int username_len,\n                             const char *password,\n                             unsigned int password_len,\n                             LIBSSH2_PASSWD_CHANGEREQ_FUNC\n                             ((*passwd_change_cb)));\n\n#define libssh2_userauth_password(session, username, password) \\\n libssh2_userauth_password_ex((session), (username),           \\\n                              (unsigned int)strlen(username),  \\\n                              (password), (unsigned int)strlen(password), NULL)\n\nLIBSSH2_API int\nlibssh2_userauth_publickey_fromfile_ex(LIBSSH2_SESSION *session,\n                                       const char *username,\n                                       unsigned int username_len,\n                                       const char *publickey,\n                                       const char *privatekey,\n                                       const char *passphrase);\n\n#define libssh2_userauth_publickey_fromfile(session, username, publickey, \\\n                                            privatekey, passphrase)     \\\n    libssh2_userauth_publickey_fromfile_ex((session), (username),       \\\n                                           (unsigned int)strlen(username), \\\n                                           (publickey),                 \\\n                                           (privatekey), (passphrase))\n\nLIBSSH2_API int\nlibssh2_userauth_publickey(LIBSSH2_SESSION *session,\n                           const char *username,\n                           const unsigned char *pubkeydata,\n                           size_t pubkeydata_len,\n                           LIBSSH2_USERAUTH_PUBLICKEY_SIGN_FUNC\n                           ((*sign_callback)),\n                           void **abstract);\n\nLIBSSH2_API int\nlibssh2_userauth_hostbased_fromfile_ex(LIBSSH2_SESSION *session,\n                                       const char *username,\n                                       unsigned int username_len,\n                                       const char *publickey,\n                                       const char *privatekey,\n                                       const char *passphrase,\n                                       const char *hostname,\n                                       unsigned int hostname_len,\n                                       const char *local_username,\n                                       unsigned int local_username_len);\n\n#define libssh2_userauth_hostbased_fromfile(session, username, publickey, \\\n                                            privatekey, passphrase, hostname) \\\n libssh2_userauth_hostbased_fromfile_ex((session), (username), \\\n                                        (unsigned int)strlen(username), \\\n                                        (publickey),                    \\\n                                        (privatekey), (passphrase),     \\\n                                        (hostname),                     \\\n                                        (unsigned int)strlen(hostname), \\\n                                        (username),                     \\\n                                        (unsigned int)strlen(username))\n\nLIBSSH2_API int\nlibssh2_userauth_publickey_frommemory(LIBSSH2_SESSION *session,\n                                      const char *username,\n                                      size_t username_len,\n                                      const char *publickeyfiledata,\n                                      size_t publickeyfiledata_len,\n                                      const char *privatekeyfiledata,\n                                      size_t privatekeyfiledata_len,\n                                      const char *passphrase);\n\n/*\n * response_callback is provided with filled by library prompts array,\n * but client must allocate and fill individual responses. Responses\n * array is already allocated. Responses data will be freed by libssh2\n * after callback return, but before subsequent callback invokation.\n */\nLIBSSH2_API int\nlibssh2_userauth_keyboard_interactive_ex(LIBSSH2_SESSION* session,\n                                         const char *username,\n                                         unsigned int username_len,\n                                         LIBSSH2_USERAUTH_KBDINT_RESPONSE_FUNC(\n                                                       (*response_callback)));\n\n#define libssh2_userauth_keyboard_interactive(session, username,        \\\n                                              response_callback)        \\\n    libssh2_userauth_keyboard_interactive_ex((session), (username),     \\\n                                             (unsigned int)strlen(username), \\\n                                             (response_callback))\n\nLIBSSH2_API int libssh2_poll(LIBSSH2_POLLFD *fds, unsigned int nfds,\n                             long timeout);\n\n/* Channel API */\n#define LIBSSH2_CHANNEL_WINDOW_DEFAULT  (2*1024*1024)\n#define LIBSSH2_CHANNEL_PACKET_DEFAULT  32768\n#define LIBSSH2_CHANNEL_MINADJUST       1024\n\n/* Extended Data Handling */\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL        0\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE        1\n#define LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE         2\n\n#define SSH_EXTENDED_DATA_STDERR 1\n\n/* Returned by any function that would block during a read/write opperation */\n#define LIBSSH2CHANNEL_EAGAIN LIBSSH2_ERROR_EAGAIN\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_open_ex(LIBSSH2_SESSION *session, const char *channel_type,\n                        unsigned int channel_type_len,\n                        unsigned int window_size, unsigned int packet_size,\n                        const char *message, unsigned int message_len);\n\n#define libssh2_channel_open_session(session) \\\n  libssh2_channel_open_ex((session), \"session\", sizeof(\"session\") - 1, \\\n                          LIBSSH2_CHANNEL_WINDOW_DEFAULT, \\\n                          LIBSSH2_CHANNEL_PACKET_DEFAULT, NULL, 0)\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_direct_tcpip_ex(LIBSSH2_SESSION *session, const char *host,\n                                int port, const char *shost, int sport);\n#define libssh2_channel_direct_tcpip(session, host, port) \\\n  libssh2_channel_direct_tcpip_ex((session), (host), (port), \"127.0.0.1\", 22)\n\nLIBSSH2_API LIBSSH2_LISTENER *\nlibssh2_channel_forward_listen_ex(LIBSSH2_SESSION *session, const char *host,\n                                  int port, int *bound_port,\n                                  int queue_maxsize);\n#define libssh2_channel_forward_listen(session, port) \\\n libssh2_channel_forward_listen_ex((session), NULL, (port), NULL, 16)\n\nLIBSSH2_API int libssh2_channel_forward_cancel(LIBSSH2_LISTENER *listener);\n\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_channel_forward_accept(LIBSSH2_LISTENER *listener);\n\nLIBSSH2_API int libssh2_channel_setenv_ex(LIBSSH2_CHANNEL *channel,\n                                          const char *varname,\n                                          unsigned int varname_len,\n                                          const char *value,\n                                          unsigned int value_len);\n\n#define libssh2_channel_setenv(channel, varname, value)                 \\\n    libssh2_channel_setenv_ex((channel), (varname),                     \\\n                              (unsigned int)strlen(varname), (value),   \\\n                              (unsigned int)strlen(value))\n\nLIBSSH2_API int libssh2_channel_request_pty_ex(LIBSSH2_CHANNEL *channel,\n                                               const char *term,\n                                               unsigned int term_len,\n                                               const char *modes,\n                                               unsigned int modes_len,\n                                               int width, int height,\n                                               int width_px, int height_px);\n#define libssh2_channel_request_pty(channel, term)                      \\\n    libssh2_channel_request_pty_ex((channel), (term),                   \\\n                                   (unsigned int)strlen(term),          \\\n                                   NULL, 0,                             \\\n                                   LIBSSH2_TERM_WIDTH,                  \\\n                                   LIBSSH2_TERM_HEIGHT,                 \\\n                                   LIBSSH2_TERM_WIDTH_PX,               \\\n                                   LIBSSH2_TERM_HEIGHT_PX)\n\nLIBSSH2_API int libssh2_channel_request_pty_size_ex(LIBSSH2_CHANNEL *channel,\n                                                    int width, int height,\n                                                    int width_px,\n                                                    int height_px);\n#define libssh2_channel_request_pty_size(channel, width, height) \\\n  libssh2_channel_request_pty_size_ex((channel), (width), (height), 0, 0)\n\nLIBSSH2_API int libssh2_channel_x11_req_ex(LIBSSH2_CHANNEL *channel,\n                                           int single_connection,\n                                           const char *auth_proto,\n                                           const char *auth_cookie,\n                                           int screen_number);\n#define libssh2_channel_x11_req(channel, screen_number) \\\n libssh2_channel_x11_req_ex((channel), 0, NULL, NULL, (screen_number))\n\nLIBSSH2_API int libssh2_channel_process_startup(LIBSSH2_CHANNEL *channel,\n                                                const char *request,\n                                                unsigned int request_len,\n                                                const char *message,\n                                                unsigned int message_len);\n#define libssh2_channel_shell(channel) \\\n  libssh2_channel_process_startup((channel), \"shell\", sizeof(\"shell\") - 1, \\\n                                  NULL, 0)\n#define libssh2_channel_exec(channel, command) \\\n  libssh2_channel_process_startup((channel), \"exec\", sizeof(\"exec\") - 1, \\\n                                  (command), (unsigned int)strlen(command))\n#define libssh2_channel_subsystem(channel, subsystem) \\\n  libssh2_channel_process_startup((channel), \"subsystem\",              \\\n                                  sizeof(\"subsystem\") - 1, (subsystem), \\\n                                  (unsigned int)strlen(subsystem))\n\nLIBSSH2_API ssize_t libssh2_channel_read_ex(LIBSSH2_CHANNEL *channel,\n                                            int stream_id, char *buf,\n                                            size_t buflen);\n#define libssh2_channel_read(channel, buf, buflen) \\\n  libssh2_channel_read_ex((channel), 0, (buf), (buflen))\n#define libssh2_channel_read_stderr(channel, buf, buflen) \\\n  libssh2_channel_read_ex((channel), SSH_EXTENDED_DATA_STDERR, (buf), (buflen))\n\nLIBSSH2_API int libssh2_poll_channel_read(LIBSSH2_CHANNEL *channel,\n                                          int extended);\n\nLIBSSH2_API unsigned long\nlibssh2_channel_window_read_ex(LIBSSH2_CHANNEL *channel,\n                               unsigned long *read_avail,\n                               unsigned long *window_size_initial);\n#define libssh2_channel_window_read(channel) \\\n  libssh2_channel_window_read_ex((channel), NULL, NULL)\n\n/* libssh2_channel_receive_window_adjust is DEPRECATED, do not use! */\nLIBSSH2_API unsigned long\nlibssh2_channel_receive_window_adjust(LIBSSH2_CHANNEL *channel,\n                                      unsigned long adjustment,\n                                      unsigned char force);\n\nLIBSSH2_API int\nlibssh2_channel_receive_window_adjust2(LIBSSH2_CHANNEL *channel,\n                                       unsigned long adjustment,\n                                       unsigned char force,\n                                       unsigned int *storewindow);\n\nLIBSSH2_API ssize_t libssh2_channel_write_ex(LIBSSH2_CHANNEL *channel,\n                                             int stream_id, const char *buf,\n                                             size_t buflen);\n\n#define libssh2_channel_write(channel, buf, buflen) \\\n  libssh2_channel_write_ex((channel), 0, (buf), (buflen))\n#define libssh2_channel_write_stderr(channel, buf, buflen)              \\\n    libssh2_channel_write_ex((channel), SSH_EXTENDED_DATA_STDERR,       \\\n                             (buf), (buflen))\n\nLIBSSH2_API unsigned long\nlibssh2_channel_window_write_ex(LIBSSH2_CHANNEL *channel,\n                                unsigned long *window_size_initial);\n#define libssh2_channel_window_write(channel) \\\n  libssh2_channel_window_write_ex((channel), NULL)\n\nLIBSSH2_API void libssh2_session_set_blocking(LIBSSH2_SESSION* session,\n                                              int blocking);\nLIBSSH2_API int libssh2_session_get_blocking(LIBSSH2_SESSION* session);\n\nLIBSSH2_API void libssh2_channel_set_blocking(LIBSSH2_CHANNEL *channel,\n                                              int blocking);\n\nLIBSSH2_API void libssh2_session_set_timeout(LIBSSH2_SESSION* session,\n                                             long timeout);\nLIBSSH2_API long libssh2_session_get_timeout(LIBSSH2_SESSION* session);\n\n/* libssh2_channel_handle_extended_data is DEPRECATED, do not use! */\nLIBSSH2_API void libssh2_channel_handle_extended_data(LIBSSH2_CHANNEL *channel,\n                                                      int ignore_mode);\nLIBSSH2_API int libssh2_channel_handle_extended_data2(LIBSSH2_CHANNEL *channel,\n                                                      int ignore_mode);\n\n/* libssh2_channel_ignore_extended_data() is defined below for BC with version\n * 0.1\n *\n * Future uses should use libssh2_channel_handle_extended_data() directly if\n * LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE is passed, extended data will be read\n * (FIFO) from the standard data channel\n */\n/* DEPRECATED */\n#define libssh2_channel_ignore_extended_data(channel, ignore) \\\n  libssh2_channel_handle_extended_data((channel),                       \\\n                                       (ignore) ?                       \\\n                                       LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE : \\\n                                       LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL)\n\n#define LIBSSH2_CHANNEL_FLUSH_EXTENDED_DATA     -1\n#define LIBSSH2_CHANNEL_FLUSH_ALL               -2\nLIBSSH2_API int libssh2_channel_flush_ex(LIBSSH2_CHANNEL *channel,\n                                         int streamid);\n#define libssh2_channel_flush(channel) libssh2_channel_flush_ex((channel), 0)\n#define libssh2_channel_flush_stderr(channel) \\\n libssh2_channel_flush_ex((channel), SSH_EXTENDED_DATA_STDERR)\n\nLIBSSH2_API int libssh2_channel_get_exit_status(LIBSSH2_CHANNEL* channel);\nLIBSSH2_API int libssh2_channel_get_exit_signal(LIBSSH2_CHANNEL* channel,\n                                                char **exitsignal,\n                                                size_t *exitsignal_len,\n                                                char **errmsg,\n                                                size_t *errmsg_len,\n                                                char **langtag,\n                                                size_t *langtag_len);\nLIBSSH2_API int libssh2_channel_send_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_wait_eof(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_close(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_wait_closed(LIBSSH2_CHANNEL *channel);\nLIBSSH2_API int libssh2_channel_free(LIBSSH2_CHANNEL *channel);\n\n/* libssh2_scp_recv is DEPRECATED, do not use! */\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session,\n                                              const char *path,\n                                              struct stat *sb);\n/* Use libssh2_scp_recv2 for large (> 2GB) file support on windows */\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_recv2(LIBSSH2_SESSION *session,\n                                               const char *path,\n                                               libssh2_struct_stat *sb);\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_scp_send_ex(LIBSSH2_SESSION *session,\n                                                 const char *path, int mode,\n                                                 size_t size, long mtime,\n                                                 long atime);\nLIBSSH2_API LIBSSH2_CHANNEL *\nlibssh2_scp_send64(LIBSSH2_SESSION *session, const char *path, int mode,\n                   libssh2_int64_t size, time_t mtime, time_t atime);\n\n#define libssh2_scp_send(session, path, mode, size) \\\n  libssh2_scp_send_ex((session), (path), (mode), (size), 0, 0)\n\nLIBSSH2_API int libssh2_base64_decode(LIBSSH2_SESSION *session, char **dest,\n                                      unsigned int *dest_len,\n                                      const char *src, unsigned int src_len);\n\nLIBSSH2_API\nconst char *libssh2_version(int req_version_num);\n\n#define HAVE_LIBSSH2_KNOWNHOST_API 0x010101 /* since 1.1.1 */\n#define HAVE_LIBSSH2_VERSION_API   0x010100 /* libssh2_version since 1.1 */\n\nstruct libssh2_knownhost {\n    unsigned int magic;  /* magic stored by the library */\n    void *node; /* handle to the internal representation of this host */\n    char *name; /* this is NULL if no plain text host name exists */\n    char *key;  /* key in base64/printable format */\n    int typemask;\n};\n\n/*\n * libssh2_knownhost_init\n *\n * Init a collection of known hosts. Returns the pointer to a collection.\n *\n */\nLIBSSH2_API LIBSSH2_KNOWNHOSTS *\nlibssh2_knownhost_init(LIBSSH2_SESSION *session);\n\n/*\n * libssh2_knownhost_add\n *\n * Add a host and its associated key to the collection of known hosts.\n *\n * The 'type' argument specifies on what format the given host and keys are:\n *\n * plain  - ascii \"hostname.domain.tld\"\n * sha1   - SHA1(<salt> <host>) base64-encoded!\n * custom - another hash\n *\n * If 'sha1' is selected as type, the salt must be provided to the salt\n * argument. This too base64 encoded.\n *\n * The SHA-1 hash is what OpenSSH can be told to use in known_hosts files.  If\n * a custom type is used, salt is ignored and you must provide the host\n * pre-hashed when checking for it in the libssh2_knownhost_check() function.\n *\n * The keylen parameter may be omitted (zero) if the key is provided as a\n * NULL-terminated base64-encoded string.\n */\n\n/* host format (2 bits) */\n#define LIBSSH2_KNOWNHOST_TYPE_MASK    0xffff\n#define LIBSSH2_KNOWNHOST_TYPE_PLAIN   1\n#define LIBSSH2_KNOWNHOST_TYPE_SHA1    2 /* always base64 encoded */\n#define LIBSSH2_KNOWNHOST_TYPE_CUSTOM  3\n\n/* key format (2 bits) */\n#define LIBSSH2_KNOWNHOST_KEYENC_MASK     (3<<16)\n#define LIBSSH2_KNOWNHOST_KEYENC_RAW      (1<<16)\n#define LIBSSH2_KNOWNHOST_KEYENC_BASE64   (2<<16)\n\n/* type of key (3 bits) */\n#define LIBSSH2_KNOWNHOST_KEY_MASK         (15<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SHIFT        18\n#define LIBSSH2_KNOWNHOST_KEY_RSA1         (1<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SSHRSA       (2<<18)\n#define LIBSSH2_KNOWNHOST_KEY_SSHDSS       (3<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_256    (4<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_384    (5<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ECDSA_521    (6<<18)\n#define LIBSSH2_KNOWNHOST_KEY_ED25519      (7<<18)\n#define LIBSSH2_KNOWNHOST_KEY_UNKNOWN      (15<<18)\n\nLIBSSH2_API int\nlibssh2_knownhost_add(LIBSSH2_KNOWNHOSTS *hosts,\n                      const char *host,\n                      const char *salt,\n                      const char *key, size_t keylen, int typemask,\n                      struct libssh2_knownhost **store);\n\n/*\n * libssh2_knownhost_addc\n *\n * Add a host and its associated key to the collection of known hosts.\n *\n * Takes a comment argument that may be NULL.  A NULL comment indicates\n * there is no comment and the entry will end directly after the key\n * when written out to a file.  An empty string \"\" comment will indicate an\n * empty comment which will cause a single space to be written after the key.\n *\n * The 'type' argument specifies on what format the given host and keys are:\n *\n * plain  - ascii \"hostname.domain.tld\"\n * sha1   - SHA1(<salt> <host>) base64-encoded!\n * custom - another hash\n *\n * If 'sha1' is selected as type, the salt must be provided to the salt\n * argument. This too base64 encoded.\n *\n * The SHA-1 hash is what OpenSSH can be told to use in known_hosts files.  If\n * a custom type is used, salt is ignored and you must provide the host\n * pre-hashed when checking for it in the libssh2_knownhost_check() function.\n *\n * The keylen parameter may be omitted (zero) if the key is provided as a\n * NULL-terminated base64-encoded string.\n */\n\nLIBSSH2_API int\nlibssh2_knownhost_addc(LIBSSH2_KNOWNHOSTS *hosts,\n                       const char *host,\n                       const char *salt,\n                       const char *key, size_t keylen,\n                       const char *comment, size_t commentlen, int typemask,\n                       struct libssh2_knownhost **store);\n\n/*\n * libssh2_knownhost_check\n *\n * Check a host and its associated key against the collection of known hosts.\n *\n * The type is the type/format of the given host name.\n *\n * plain  - ascii \"hostname.domain.tld\"\n * custom - prehashed base64 encoded. Note that this cannot use any salts.\n *\n *\n * 'knownhost' may be set to NULL if you don't care about that info.\n *\n * Returns:\n *\n * LIBSSH2_KNOWNHOST_CHECK_* values, see below\n *\n */\n\n#define LIBSSH2_KNOWNHOST_CHECK_MATCH    0\n#define LIBSSH2_KNOWNHOST_CHECK_MISMATCH 1\n#define LIBSSH2_KNOWNHOST_CHECK_NOTFOUND 2\n#define LIBSSH2_KNOWNHOST_CHECK_FAILURE  3\n\nLIBSSH2_API int\nlibssh2_knownhost_check(LIBSSH2_KNOWNHOSTS *hosts,\n                        const char *host, const char *key, size_t keylen,\n                        int typemask,\n                        struct libssh2_knownhost **knownhost);\n\n/* this function is identital to the above one, but also takes a port\n   argument that allows libssh2 to do a better check */\nLIBSSH2_API int\nlibssh2_knownhost_checkp(LIBSSH2_KNOWNHOSTS *hosts,\n                         const char *host, int port,\n                         const char *key, size_t keylen,\n                         int typemask,\n                         struct libssh2_knownhost **knownhost);\n\n/*\n * libssh2_knownhost_del\n *\n * Remove a host from the collection of known hosts. The 'entry' struct is\n * retrieved by a call to libssh2_knownhost_check().\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_del(LIBSSH2_KNOWNHOSTS *hosts,\n                      struct libssh2_knownhost *entry);\n\n/*\n * libssh2_knownhost_free\n *\n * Free an entire collection of known hosts.\n *\n */\nLIBSSH2_API void\nlibssh2_knownhost_free(LIBSSH2_KNOWNHOSTS *hosts);\n\n/*\n * libssh2_knownhost_readline()\n *\n * Pass in a line of a file of 'type'. It makes libssh2 read this line.\n *\n * LIBSSH2_KNOWNHOST_FILE_OPENSSH is the only supported type.\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_readline(LIBSSH2_KNOWNHOSTS *hosts,\n                           const char *line, size_t len, int type);\n\n/*\n * libssh2_knownhost_readfile\n *\n * Add hosts+key pairs from a given file.\n *\n * Returns a negative value for error or number of successfully added hosts.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n */\n\n#define LIBSSH2_KNOWNHOST_FILE_OPENSSH 1\n\nLIBSSH2_API int\nlibssh2_knownhost_readfile(LIBSSH2_KNOWNHOSTS *hosts,\n                           const char *filename, int type);\n\n/*\n * libssh2_knownhost_writeline()\n *\n * Ask libssh2 to convert a known host to an output line for storage.\n *\n * Note that this function returns LIBSSH2_ERROR_BUFFER_TOO_SMALL if the given\n * output buffer is too small to hold the desired output.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n *\n */\nLIBSSH2_API int\nlibssh2_knownhost_writeline(LIBSSH2_KNOWNHOSTS *hosts,\n                            struct libssh2_knownhost *known,\n                            char *buffer, size_t buflen,\n                            size_t *outlen, /* the amount of written data */\n                            int type);\n\n/*\n * libssh2_knownhost_writefile\n *\n * Write hosts+key pairs to a given file.\n *\n * This implementation currently only knows one 'type' (openssh), all others\n * are reserved for future use.\n */\n\nLIBSSH2_API int\nlibssh2_knownhost_writefile(LIBSSH2_KNOWNHOSTS *hosts,\n                            const char *filename, int type);\n\n/*\n * libssh2_knownhost_get()\n *\n * Traverse the internal list of known hosts. Pass NULL to 'prev' to get\n * the first one. Or pass a poiner to the previously returned one to get the\n * next.\n *\n * Returns:\n * 0 if a fine host was stored in 'store'\n * 1 if end of hosts\n * [negative] on errors\n */\nLIBSSH2_API int\nlibssh2_knownhost_get(LIBSSH2_KNOWNHOSTS *hosts,\n                      struct libssh2_knownhost **store,\n                      struct libssh2_knownhost *prev);\n\n#define HAVE_LIBSSH2_AGENT_API 0x010202 /* since 1.2.2 */\n\nstruct libssh2_agent_publickey {\n    unsigned int magic;              /* magic stored by the library */\n    void *node;     /* handle to the internal representation of key */\n    unsigned char *blob;           /* public key blob */\n    size_t blob_len;               /* length of the public key blob */\n    char *comment;                 /* comment in printable format */\n};\n\n/*\n * libssh2_agent_init\n *\n * Init an ssh-agent handle. Returns the pointer to the handle.\n *\n */\nLIBSSH2_API LIBSSH2_AGENT *\nlibssh2_agent_init(LIBSSH2_SESSION *session);\n\n/*\n * libssh2_agent_connect()\n *\n * Connect to an ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_connect(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_list_identities()\n *\n * Request an ssh-agent to list identities.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_list_identities(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_get_identity()\n *\n * Traverse the internal list of public keys. Pass NULL to 'prev' to get\n * the first one. Or pass a poiner to the previously returned one to get the\n * next.\n *\n * Returns:\n * 0 if a fine public key was stored in 'store'\n * 1 if end of public keys\n * [negative] on errors\n */\nLIBSSH2_API int\nlibssh2_agent_get_identity(LIBSSH2_AGENT *agent,\n               struct libssh2_agent_publickey **store,\n               struct libssh2_agent_publickey *prev);\n\n/*\n * libssh2_agent_userauth()\n *\n * Do publickey user authentication with the help of ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_userauth(LIBSSH2_AGENT *agent,\n               const char *username,\n               struct libssh2_agent_publickey *identity);\n\n/*\n * libssh2_agent_disconnect()\n *\n * Close a connection to an ssh-agent.\n *\n * Returns 0 if succeeded, or a negative value for error.\n */\nLIBSSH2_API int\nlibssh2_agent_disconnect(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_free()\n *\n * Free an ssh-agent handle.  This function also frees the internal\n * collection of public keys.\n */\nLIBSSH2_API void\nlibssh2_agent_free(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_agent_set_identity_path()\n *\n * Allows a custom agent identity socket path beyond SSH_AUTH_SOCK env\n *\n */\nLIBSSH2_API void\nlibssh2_agent_set_identity_path(LIBSSH2_AGENT *agent,\n                                const char *path);\n\n/*\n * libssh2_agent_get_identity_path()\n *\n * Returns the custom agent identity socket path if set\n *\n */\nLIBSSH2_API const char *\nlibssh2_agent_get_identity_path(LIBSSH2_AGENT *agent);\n\n/*\n * libssh2_keepalive_config()\n *\n * Set how often keepalive messages should be sent.  WANT_REPLY\n * indicates whether the keepalive messages should request a response\n * from the server.  INTERVAL is number of seconds that can pass\n * without any I/O, use 0 (the default) to disable keepalives.  To\n * avoid some busy-loop corner-cases, if you specify an interval of 1\n * it will be treated as 2.\n *\n * Note that non-blocking applications are responsible for sending the\n * keepalive messages using libssh2_keepalive_send().\n */\nLIBSSH2_API void libssh2_keepalive_config(LIBSSH2_SESSION *session,\n                                          int want_reply,\n                                          unsigned interval);\n\n/*\n * libssh2_keepalive_send()\n *\n * Send a keepalive message if needed.  SECONDS_TO_NEXT indicates how\n * many seconds you can sleep after this call before you need to call\n * it again.  Returns 0 on success, or LIBSSH2_ERROR_SOCKET_SEND on\n * I/O errors.\n */\nLIBSSH2_API int libssh2_keepalive_send(LIBSSH2_SESSION *session,\n                                       int *seconds_to_next);\n\n/* NOTE NOTE NOTE\n   libssh2_trace() has no function in builds that aren't built with debug\n   enabled\n */\nLIBSSH2_API int libssh2_trace(LIBSSH2_SESSION *session, int bitmask);\n#define LIBSSH2_TRACE_TRANS (1<<1)\n#define LIBSSH2_TRACE_KEX   (1<<2)\n#define LIBSSH2_TRACE_AUTH  (1<<3)\n#define LIBSSH2_TRACE_CONN  (1<<4)\n#define LIBSSH2_TRACE_SCP   (1<<5)\n#define LIBSSH2_TRACE_SFTP  (1<<6)\n#define LIBSSH2_TRACE_ERROR (1<<7)\n#define LIBSSH2_TRACE_PUBLICKEY (1<<8)\n#define LIBSSH2_TRACE_SOCKET (1<<9)\n\ntypedef void (*libssh2_trace_handler_func)(LIBSSH2_SESSION*,\n                                           void *,\n                                           const char *,\n                                           size_t);\nLIBSSH2_API int libssh2_trace_sethandler(LIBSSH2_SESSION *session,\n                                         void *context,\n                                         libssh2_trace_handler_func callback);\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* !RC_INVOKED */\n\n#endif /* LIBSSH2_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/macos-arm64_x86_64/Headers/libssh2_publickey.h",
    "content": "/* Copyright (c) 2004-2006, Sara Golemon <sarag@libssh2.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n/* Note: This include file is only needed for using the\n * publickey SUBSYSTEM which is not the same as publickey\n * authentication.  For authentication you only need libssh2.h\n *\n * For more information on the publickey subsystem,\n * refer to IETF draft: secsh-publickey\n */\n\n#ifndef LIBSSH2_PUBLICKEY_H\n#define LIBSSH2_PUBLICKEY_H 1\n\n#include \"libssh2.h\"\n\ntypedef struct _LIBSSH2_PUBLICKEY               LIBSSH2_PUBLICKEY;\n\ntypedef struct _libssh2_publickey_attribute {\n    const char *name;\n    unsigned long name_len;\n    const char *value;\n    unsigned long value_len;\n    char mandatory;\n} libssh2_publickey_attribute;\n\ntypedef struct _libssh2_publickey_list {\n    unsigned char *packet; /* For freeing */\n\n    const unsigned char *name;\n    unsigned long name_len;\n    const unsigned char *blob;\n    unsigned long blob_len;\n    unsigned long num_attrs;\n    libssh2_publickey_attribute *attrs; /* free me */\n} libssh2_publickey_list;\n\n/* Generally use the first macro here, but if both name and value are string\n   literals, you can use _fast() to take advantage of preprocessing */\n#define libssh2_publickey_attribute(name, value, mandatory) \\\n  { (name), strlen(name), (value), strlen(value), (mandatory) },\n#define libssh2_publickey_attribute_fast(name, value, mandatory) \\\n  { (name), sizeof(name) - 1, (value), sizeof(value) - 1, (mandatory) },\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Publickey Subsystem */\nLIBSSH2_API LIBSSH2_PUBLICKEY *\nlibssh2_publickey_init(LIBSSH2_SESSION *session);\n\nLIBSSH2_API int\nlibssh2_publickey_add_ex(LIBSSH2_PUBLICKEY *pkey,\n                         const unsigned char *name,\n                         unsigned long name_len,\n                         const unsigned char *blob,\n                         unsigned long blob_len, char overwrite,\n                         unsigned long num_attrs,\n                         const libssh2_publickey_attribute attrs[]);\n#define libssh2_publickey_add(pkey, name, blob, blob_len, overwrite,    \\\n                              num_attrs, attrs)                         \\\n  libssh2_publickey_add_ex((pkey), (name), strlen(name), (blob), (blob_len), \\\n                           (overwrite), (num_attrs), (attrs))\n\nLIBSSH2_API int libssh2_publickey_remove_ex(LIBSSH2_PUBLICKEY *pkey,\n                                            const unsigned char *name,\n                                            unsigned long name_len,\n                                            const unsigned char *blob,\n                                            unsigned long blob_len);\n#define libssh2_publickey_remove(pkey, name, blob, blob_len) \\\n  libssh2_publickey_remove_ex((pkey), (name), strlen(name), (blob), (blob_len))\n\nLIBSSH2_API int\nlibssh2_publickey_list_fetch(LIBSSH2_PUBLICKEY *pkey,\n                             unsigned long *num_keys,\n                             libssh2_publickey_list **pkey_list);\nLIBSSH2_API void\nlibssh2_publickey_list_free(LIBSSH2_PUBLICKEY *pkey,\n                            libssh2_publickey_list *pkey_list);\n\nLIBSSH2_API int libssh2_publickey_shutdown(LIBSSH2_PUBLICKEY *pkey);\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* ifndef: LIBSSH2_PUBLICKEY_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssh2.xcframework/macos-arm64_x86_64/Headers/libssh2_sftp.h",
    "content": "/* Copyright (c) 2004-2008, Sara Golemon <sarag@libssh2.org>\n * All rights reserved.\n *\n * Redistribution and use in source and binary forms,\n * with or without modification, are permitted provided\n * that the following conditions are met:\n *\n *   Redistributions of source code must retain the above\n *   copyright notice, this list of conditions and the\n *   following disclaimer.\n *\n *   Redistributions in binary form must reproduce the above\n *   copyright notice, this list of conditions and the following\n *   disclaimer in the documentation and/or other materials\n *   provided with the distribution.\n *\n *   Neither the name of the copyright holder nor the names\n *   of any other contributors may be used to endorse or\n *   promote products derived from this software without\n *   specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND\n * CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\n * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\n * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE\n * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\n * OF SUCH DAMAGE.\n */\n\n#ifndef LIBSSH2_SFTP_H\n#define LIBSSH2_SFTP_H 1\n\n#include \"libssh2.h\"\n\n#ifndef WIN32\n#include <unistd.h>\n#endif\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Note: Version 6 was documented at the time of writing\n * However it was marked as \"DO NOT IMPLEMENT\" due to pending changes\n *\n * Let's start with Version 3 (The version found in OpenSSH) and go from there\n */\n#define LIBSSH2_SFTP_VERSION        3\n\ntypedef struct _LIBSSH2_SFTP                LIBSSH2_SFTP;\ntypedef struct _LIBSSH2_SFTP_HANDLE         LIBSSH2_SFTP_HANDLE;\ntypedef struct _LIBSSH2_SFTP_ATTRIBUTES     LIBSSH2_SFTP_ATTRIBUTES;\ntypedef struct _LIBSSH2_SFTP_STATVFS        LIBSSH2_SFTP_STATVFS;\n\n/* Flags for open_ex() */\n#define LIBSSH2_SFTP_OPENFILE           0\n#define LIBSSH2_SFTP_OPENDIR            1\n\n/* Flags for rename_ex() */\n#define LIBSSH2_SFTP_RENAME_OVERWRITE   0x00000001\n#define LIBSSH2_SFTP_RENAME_ATOMIC      0x00000002\n#define LIBSSH2_SFTP_RENAME_NATIVE      0x00000004\n\n/* Flags for stat_ex() */\n#define LIBSSH2_SFTP_STAT               0\n#define LIBSSH2_SFTP_LSTAT              1\n#define LIBSSH2_SFTP_SETSTAT            2\n\n/* Flags for symlink_ex() */\n#define LIBSSH2_SFTP_SYMLINK            0\n#define LIBSSH2_SFTP_READLINK           1\n#define LIBSSH2_SFTP_REALPATH           2\n\n/* Flags for sftp_mkdir() */\n#define LIBSSH2_SFTP_DEFAULT_MODE      -1\n\n/* SFTP attribute flag bits */\n#define LIBSSH2_SFTP_ATTR_SIZE              0x00000001\n#define LIBSSH2_SFTP_ATTR_UIDGID            0x00000002\n#define LIBSSH2_SFTP_ATTR_PERMISSIONS       0x00000004\n#define LIBSSH2_SFTP_ATTR_ACMODTIME         0x00000008\n#define LIBSSH2_SFTP_ATTR_EXTENDED          0x80000000\n\n/* SFTP statvfs flag bits */\n#define LIBSSH2_SFTP_ST_RDONLY              0x00000001\n#define LIBSSH2_SFTP_ST_NOSUID              0x00000002\n\nstruct _LIBSSH2_SFTP_ATTRIBUTES {\n    /* If flags & ATTR_* bit is set, then the value in this struct will be\n     * meaningful Otherwise it should be ignored\n     */\n    unsigned long flags;\n\n    libssh2_uint64_t filesize;\n    unsigned long uid, gid;\n    unsigned long permissions;\n    unsigned long atime, mtime;\n};\n\nstruct _LIBSSH2_SFTP_STATVFS {\n    libssh2_uint64_t  f_bsize;    /* file system block size */\n    libssh2_uint64_t  f_frsize;   /* fragment size */\n    libssh2_uint64_t  f_blocks;   /* size of fs in f_frsize units */\n    libssh2_uint64_t  f_bfree;    /* # free blocks */\n    libssh2_uint64_t  f_bavail;   /* # free blocks for non-root */\n    libssh2_uint64_t  f_files;    /* # inodes */\n    libssh2_uint64_t  f_ffree;    /* # free inodes */\n    libssh2_uint64_t  f_favail;   /* # free inodes for non-root */\n    libssh2_uint64_t  f_fsid;     /* file system ID */\n    libssh2_uint64_t  f_flag;     /* mount flags */\n    libssh2_uint64_t  f_namemax;  /* maximum filename length */\n};\n\n/* SFTP filetypes */\n#define LIBSSH2_SFTP_TYPE_REGULAR           1\n#define LIBSSH2_SFTP_TYPE_DIRECTORY         2\n#define LIBSSH2_SFTP_TYPE_SYMLINK           3\n#define LIBSSH2_SFTP_TYPE_SPECIAL           4\n#define LIBSSH2_SFTP_TYPE_UNKNOWN           5\n#define LIBSSH2_SFTP_TYPE_SOCKET            6\n#define LIBSSH2_SFTP_TYPE_CHAR_DEVICE       7\n#define LIBSSH2_SFTP_TYPE_BLOCK_DEVICE      8\n#define LIBSSH2_SFTP_TYPE_FIFO              9\n\n/*\n * Reproduce the POSIX file modes here for systems that are not POSIX\n * compliant.\n *\n * These is used in \"permissions\" of \"struct _LIBSSH2_SFTP_ATTRIBUTES\"\n */\n/* File type */\n#define LIBSSH2_SFTP_S_IFMT         0170000     /* type of file mask */\n#define LIBSSH2_SFTP_S_IFIFO        0010000     /* named pipe (fifo) */\n#define LIBSSH2_SFTP_S_IFCHR        0020000     /* character special */\n#define LIBSSH2_SFTP_S_IFDIR        0040000     /* directory */\n#define LIBSSH2_SFTP_S_IFBLK        0060000     /* block special */\n#define LIBSSH2_SFTP_S_IFREG        0100000     /* regular */\n#define LIBSSH2_SFTP_S_IFLNK        0120000     /* symbolic link */\n#define LIBSSH2_SFTP_S_IFSOCK       0140000     /* socket */\n\n/* File mode */\n/* Read, write, execute/search by owner */\n#define LIBSSH2_SFTP_S_IRWXU        0000700     /* RWX mask for owner */\n#define LIBSSH2_SFTP_S_IRUSR        0000400     /* R for owner */\n#define LIBSSH2_SFTP_S_IWUSR        0000200     /* W for owner */\n#define LIBSSH2_SFTP_S_IXUSR        0000100     /* X for owner */\n/* Read, write, execute/search by group */\n#define LIBSSH2_SFTP_S_IRWXG        0000070     /* RWX mask for group */\n#define LIBSSH2_SFTP_S_IRGRP        0000040     /* R for group */\n#define LIBSSH2_SFTP_S_IWGRP        0000020     /* W for group */\n#define LIBSSH2_SFTP_S_IXGRP        0000010     /* X for group */\n/* Read, write, execute/search by others */\n#define LIBSSH2_SFTP_S_IRWXO        0000007     /* RWX mask for other */\n#define LIBSSH2_SFTP_S_IROTH        0000004     /* R for other */\n#define LIBSSH2_SFTP_S_IWOTH        0000002     /* W for other */\n#define LIBSSH2_SFTP_S_IXOTH        0000001     /* X for other */\n\n/* macros to check for specific file types, added in 1.2.5 */\n#define LIBSSH2_SFTP_S_ISLNK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFLNK)\n#define LIBSSH2_SFTP_S_ISREG(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFREG)\n#define LIBSSH2_SFTP_S_ISDIR(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFDIR)\n#define LIBSSH2_SFTP_S_ISCHR(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFCHR)\n#define LIBSSH2_SFTP_S_ISBLK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFBLK)\n#define LIBSSH2_SFTP_S_ISFIFO(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFIFO)\n#define LIBSSH2_SFTP_S_ISSOCK(m) \\\n  (((m) & LIBSSH2_SFTP_S_IFMT) == LIBSSH2_SFTP_S_IFSOCK)\n\n/* SFTP File Transfer Flags -- (e.g. flags parameter to sftp_open())\n * Danger will robinson... APPEND doesn't have any effect on OpenSSH servers */\n#define LIBSSH2_FXF_READ                        0x00000001\n#define LIBSSH2_FXF_WRITE                       0x00000002\n#define LIBSSH2_FXF_APPEND                      0x00000004\n#define LIBSSH2_FXF_CREAT                       0x00000008\n#define LIBSSH2_FXF_TRUNC                       0x00000010\n#define LIBSSH2_FXF_EXCL                        0x00000020\n\n/* SFTP Status Codes (returned by libssh2_sftp_last_error() ) */\n#define LIBSSH2_FX_OK                       0\n#define LIBSSH2_FX_EOF                      1\n#define LIBSSH2_FX_NO_SUCH_FILE             2\n#define LIBSSH2_FX_PERMISSION_DENIED        3\n#define LIBSSH2_FX_FAILURE                  4\n#define LIBSSH2_FX_BAD_MESSAGE              5\n#define LIBSSH2_FX_NO_CONNECTION            6\n#define LIBSSH2_FX_CONNECTION_LOST          7\n#define LIBSSH2_FX_OP_UNSUPPORTED           8\n#define LIBSSH2_FX_INVALID_HANDLE           9\n#define LIBSSH2_FX_NO_SUCH_PATH             10\n#define LIBSSH2_FX_FILE_ALREADY_EXISTS      11\n#define LIBSSH2_FX_WRITE_PROTECT            12\n#define LIBSSH2_FX_NO_MEDIA                 13\n#define LIBSSH2_FX_NO_SPACE_ON_FILESYSTEM   14\n#define LIBSSH2_FX_QUOTA_EXCEEDED           15\n#define LIBSSH2_FX_UNKNOWN_PRINCIPLE        16 /* Initial mis-spelling */\n#define LIBSSH2_FX_UNKNOWN_PRINCIPAL        16\n#define LIBSSH2_FX_LOCK_CONFlICT            17 /* Initial mis-spelling */\n#define LIBSSH2_FX_LOCK_CONFLICT            17\n#define LIBSSH2_FX_DIR_NOT_EMPTY            18\n#define LIBSSH2_FX_NOT_A_DIRECTORY          19\n#define LIBSSH2_FX_INVALID_FILENAME         20\n#define LIBSSH2_FX_LINK_LOOP                21\n\n/* Returned by any function that would block during a read/write opperation */\n#define LIBSSH2SFTP_EAGAIN LIBSSH2_ERROR_EAGAIN\n\n/* SFTP API */\nLIBSSH2_API LIBSSH2_SFTP *libssh2_sftp_init(LIBSSH2_SESSION *session);\nLIBSSH2_API int libssh2_sftp_shutdown(LIBSSH2_SFTP *sftp);\nLIBSSH2_API unsigned long libssh2_sftp_last_error(LIBSSH2_SFTP *sftp);\nLIBSSH2_API LIBSSH2_CHANNEL *libssh2_sftp_get_channel(LIBSSH2_SFTP *sftp);\n\n/* File / Directory Ops */\nLIBSSH2_API LIBSSH2_SFTP_HANDLE *\nlibssh2_sftp_open_ex(LIBSSH2_SFTP *sftp,\n                     const char *filename,\n                     unsigned int filename_len,\n                     unsigned long flags,\n                     long mode, int open_type);\n#define libssh2_sftp_open(sftp, filename, flags, mode)                  \\\n    libssh2_sftp_open_ex((sftp), (filename), strlen(filename), (flags), \\\n                         (mode), LIBSSH2_SFTP_OPENFILE)\n#define libssh2_sftp_opendir(sftp, path) \\\n    libssh2_sftp_open_ex((sftp), (path), strlen(path), 0, 0, \\\n                         LIBSSH2_SFTP_OPENDIR)\n\nLIBSSH2_API ssize_t libssh2_sftp_read(LIBSSH2_SFTP_HANDLE *handle,\n                                      char *buffer, size_t buffer_maxlen);\n\nLIBSSH2_API int libssh2_sftp_readdir_ex(LIBSSH2_SFTP_HANDLE *handle, \\\n                                        char *buffer, size_t buffer_maxlen,\n                                        char *longentry,\n                                        size_t longentry_maxlen,\n                                        LIBSSH2_SFTP_ATTRIBUTES *attrs);\n#define libssh2_sftp_readdir(handle, buffer, buffer_maxlen, attrs)      \\\n    libssh2_sftp_readdir_ex((handle), (buffer), (buffer_maxlen), NULL, 0, \\\n                            (attrs))\n\nLIBSSH2_API ssize_t libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle,\n                                       const char *buffer, size_t count);\nLIBSSH2_API int libssh2_sftp_fsync(LIBSSH2_SFTP_HANDLE *handle);\n\nLIBSSH2_API int libssh2_sftp_close_handle(LIBSSH2_SFTP_HANDLE *handle);\n#define libssh2_sftp_close(handle) libssh2_sftp_close_handle(handle)\n#define libssh2_sftp_closedir(handle) libssh2_sftp_close_handle(handle)\n\nLIBSSH2_API void libssh2_sftp_seek(LIBSSH2_SFTP_HANDLE *handle, size_t offset);\nLIBSSH2_API void libssh2_sftp_seek64(LIBSSH2_SFTP_HANDLE *handle,\n                                     libssh2_uint64_t offset);\n#define libssh2_sftp_rewind(handle) libssh2_sftp_seek64((handle), 0)\n\nLIBSSH2_API size_t libssh2_sftp_tell(LIBSSH2_SFTP_HANDLE *handle);\nLIBSSH2_API libssh2_uint64_t libssh2_sftp_tell64(LIBSSH2_SFTP_HANDLE *handle);\n\nLIBSSH2_API int libssh2_sftp_fstat_ex(LIBSSH2_SFTP_HANDLE *handle,\n                                      LIBSSH2_SFTP_ATTRIBUTES *attrs,\n                                      int setstat);\n#define libssh2_sftp_fstat(handle, attrs) \\\n    libssh2_sftp_fstat_ex((handle), (attrs), 0)\n#define libssh2_sftp_fsetstat(handle, attrs) \\\n    libssh2_sftp_fstat_ex((handle), (attrs), 1)\n\n/* Miscellaneous Ops */\nLIBSSH2_API int libssh2_sftp_rename_ex(LIBSSH2_SFTP *sftp,\n                                       const char *source_filename,\n                                       unsigned int srouce_filename_len,\n                                       const char *dest_filename,\n                                       unsigned int dest_filename_len,\n                                       long flags);\n#define libssh2_sftp_rename(sftp, sourcefile, destfile) \\\n    libssh2_sftp_rename_ex((sftp), (sourcefile), strlen(sourcefile), \\\n                           (destfile), strlen(destfile),                \\\n                           LIBSSH2_SFTP_RENAME_OVERWRITE | \\\n                           LIBSSH2_SFTP_RENAME_ATOMIC | \\\n                           LIBSSH2_SFTP_RENAME_NATIVE)\n\nLIBSSH2_API int libssh2_sftp_unlink_ex(LIBSSH2_SFTP *sftp,\n                                       const char *filename,\n                                       unsigned int filename_len);\n#define libssh2_sftp_unlink(sftp, filename) \\\n    libssh2_sftp_unlink_ex((sftp), (filename), strlen(filename))\n\nLIBSSH2_API int libssh2_sftp_fstatvfs(LIBSSH2_SFTP_HANDLE *handle,\n                                      LIBSSH2_SFTP_STATVFS *st);\n\nLIBSSH2_API int libssh2_sftp_statvfs(LIBSSH2_SFTP *sftp,\n                                     const char *path,\n                                     size_t path_len,\n                                     LIBSSH2_SFTP_STATVFS *st);\n\nLIBSSH2_API int libssh2_sftp_mkdir_ex(LIBSSH2_SFTP *sftp,\n                                      const char *path,\n                                      unsigned int path_len, long mode);\n#define libssh2_sftp_mkdir(sftp, path, mode) \\\n    libssh2_sftp_mkdir_ex((sftp), (path), strlen(path), (mode))\n\nLIBSSH2_API int libssh2_sftp_rmdir_ex(LIBSSH2_SFTP *sftp,\n                                      const char *path,\n                                      unsigned int path_len);\n#define libssh2_sftp_rmdir(sftp, path) \\\n    libssh2_sftp_rmdir_ex((sftp), (path), strlen(path))\n\nLIBSSH2_API int libssh2_sftp_stat_ex(LIBSSH2_SFTP *sftp,\n                                     const char *path,\n                                     unsigned int path_len,\n                                     int stat_type,\n                                     LIBSSH2_SFTP_ATTRIBUTES *attrs);\n#define libssh2_sftp_stat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_STAT, \\\n                         (attrs))\n#define libssh2_sftp_lstat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_LSTAT, \\\n                         (attrs))\n#define libssh2_sftp_setstat(sftp, path, attrs) \\\n    libssh2_sftp_stat_ex((sftp), (path), strlen(path), LIBSSH2_SFTP_SETSTAT, \\\n                         (attrs))\n\nLIBSSH2_API int libssh2_sftp_symlink_ex(LIBSSH2_SFTP *sftp,\n                                        const char *path,\n                                        unsigned int path_len,\n                                        char *target,\n                                        unsigned int target_len,\n                                        int link_type);\n#define libssh2_sftp_symlink(sftp, orig, linkpath) \\\n    libssh2_sftp_symlink_ex((sftp), (orig), strlen(orig), (linkpath), \\\n                            strlen(linkpath), LIBSSH2_SFTP_SYMLINK)\n#define libssh2_sftp_readlink(sftp, path, target, maxlen) \\\n    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \\\n    LIBSSH2_SFTP_READLINK)\n#define libssh2_sftp_realpath(sftp, path, target, maxlen) \\\n    libssh2_sftp_symlink_ex((sftp), (path), strlen(path), (target), (maxlen), \\\n                            LIBSSH2_SFTP_REALPATH)\n\n#ifdef __cplusplus\n} /* extern \"C\" */\n#endif\n\n#endif /* LIBSSH2_SFTP_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>AvailableLibraries</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>macos-arm64_x86_64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libssl.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>macos</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64_x86_64-simulator</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libssl.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t\t<string>x86_64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t\t<key>SupportedPlatformVariant</key>\n\t\t\t<string>simulator</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>HeadersPath</key>\n\t\t\t<string>Headers</string>\n\t\t\t<key>LibraryIdentifier</key>\n\t\t\t<string>ios-arm64</string>\n\t\t\t<key>LibraryPath</key>\n\t\t\t<string>libssl.a</string>\n\t\t\t<key>SupportedArchitectures</key>\n\t\t\t<array>\n\t\t\t\t<string>arm64</string>\n\t\t\t</array>\n\t\t\t<key>SupportedPlatform</key>\n\t\t\t<string>ios</string>\n\t\t</dict>\n\t</array>\n\t<key>CFBundlePackageType</key>\n\t<string>XFWK</string>\n\t<key>XCFrameworkFormatVersion</key>\n\t<string>1.0</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/aes.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_AES_H\n# define HEADER_AES_H\n\n# include <openssl/opensslconf.h>\n\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define AES_ENCRYPT     1\n# define AES_DECRYPT     0\n\n/*\n * Because array size can't be a const in C, the following two are macros.\n * Both sizes are in bytes.\n */\n# define AES_MAXNR 14\n# define AES_BLOCK_SIZE 16\n\n/* This should be a hidden type, but EVP requires that the size be known */\nstruct aes_key_st {\n# ifdef AES_LONG\n    unsigned long rd_key[4 * (AES_MAXNR + 1)];\n# else\n    unsigned int rd_key[4 * (AES_MAXNR + 1)];\n# endif\n    int rounds;\n};\ntypedef struct aes_key_st AES_KEY;\n\nconst char *AES_options(void);\n\nint AES_set_encrypt_key(const unsigned char *userKey, const int bits,\n                        AES_KEY *key);\nint AES_set_decrypt_key(const unsigned char *userKey, const int bits,\n                        AES_KEY *key);\n\nvoid AES_encrypt(const unsigned char *in, unsigned char *out,\n                 const AES_KEY *key);\nvoid AES_decrypt(const unsigned char *in, unsigned char *out,\n                 const AES_KEY *key);\n\nvoid AES_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                     const AES_KEY *key, const int enc);\nvoid AES_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                     size_t length, const AES_KEY *key,\n                     unsigned char *ivec, const int enc);\nvoid AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        unsigned char *ivec, int *num, const int enc);\nvoid AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,\n                      size_t length, const AES_KEY *key,\n                      unsigned char *ivec, int *num, const int enc);\nvoid AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,\n                      size_t length, const AES_KEY *key,\n                      unsigned char *ivec, int *num, const int enc);\nvoid AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        unsigned char *ivec, int *num);\n/* NB: the IV is _two_ blocks long */\nvoid AES_ige_encrypt(const unsigned char *in, unsigned char *out,\n                     size_t length, const AES_KEY *key,\n                     unsigned char *ivec, const int enc);\n/* NB: the IV is _four_ blocks long */\nvoid AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        const AES_KEY *key2, const unsigned char *ivec,\n                        const int enc);\n\nint AES_wrap_key(AES_KEY *key, const unsigned char *iv,\n                 unsigned char *out,\n                 const unsigned char *in, unsigned int inlen);\nint AES_unwrap_key(AES_KEY *key, const unsigned char *iv,\n                   unsigned char *out,\n                   const unsigned char *in, unsigned int inlen);\n\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/asn1.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1_H\n# define HEADER_ASN1_H\n\n# include <time.h>\n# include <openssl/e_os2.h>\n# include <openssl/opensslconf.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/asn1err.h>\n# include <openssl/symhacks.h>\n\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define V_ASN1_UNIVERSAL                0x00\n# define V_ASN1_APPLICATION              0x40\n# define V_ASN1_CONTEXT_SPECIFIC         0x80\n# define V_ASN1_PRIVATE                  0xc0\n\n# define V_ASN1_CONSTRUCTED              0x20\n# define V_ASN1_PRIMITIVE_TAG            0x1f\n# define V_ASN1_PRIMATIVE_TAG /*compat*/ V_ASN1_PRIMITIVE_TAG\n\n# define V_ASN1_APP_CHOOSE               -2/* let the recipient choose */\n# define V_ASN1_OTHER                    -3/* used in ASN1_TYPE */\n# define V_ASN1_ANY                      -4/* used in ASN1 template code */\n\n# define V_ASN1_UNDEF                    -1\n/* ASN.1 tag values */\n# define V_ASN1_EOC                      0\n# define V_ASN1_BOOLEAN                  1 /**/\n# define V_ASN1_INTEGER                  2\n# define V_ASN1_BIT_STRING               3\n# define V_ASN1_OCTET_STRING             4\n# define V_ASN1_NULL                     5\n# define V_ASN1_OBJECT                   6\n# define V_ASN1_OBJECT_DESCRIPTOR        7\n# define V_ASN1_EXTERNAL                 8\n# define V_ASN1_REAL                     9\n# define V_ASN1_ENUMERATED               10\n# define V_ASN1_UTF8STRING               12\n# define V_ASN1_SEQUENCE                 16\n# define V_ASN1_SET                      17\n# define V_ASN1_NUMERICSTRING            18 /**/\n# define V_ASN1_PRINTABLESTRING          19\n# define V_ASN1_T61STRING                20\n# define V_ASN1_TELETEXSTRING            20/* alias */\n# define V_ASN1_VIDEOTEXSTRING           21 /**/\n# define V_ASN1_IA5STRING                22\n# define V_ASN1_UTCTIME                  23\n# define V_ASN1_GENERALIZEDTIME          24 /**/\n# define V_ASN1_GRAPHICSTRING            25 /**/\n# define V_ASN1_ISO64STRING              26 /**/\n# define V_ASN1_VISIBLESTRING            26/* alias */\n# define V_ASN1_GENERALSTRING            27 /**/\n# define V_ASN1_UNIVERSALSTRING          28 /**/\n# define V_ASN1_BMPSTRING                30\n\n/*\n * NB the constants below are used internally by ASN1_INTEGER\n * and ASN1_ENUMERATED to indicate the sign. They are *not* on\n * the wire tag values.\n */\n\n# define V_ASN1_NEG                      0x100\n# define V_ASN1_NEG_INTEGER              (2 | V_ASN1_NEG)\n# define V_ASN1_NEG_ENUMERATED           (10 | V_ASN1_NEG)\n\n/* For use with d2i_ASN1_type_bytes() */\n# define B_ASN1_NUMERICSTRING    0x0001\n# define B_ASN1_PRINTABLESTRING  0x0002\n# define B_ASN1_T61STRING        0x0004\n# define B_ASN1_TELETEXSTRING    0x0004\n# define B_ASN1_VIDEOTEXSTRING   0x0008\n# define B_ASN1_IA5STRING        0x0010\n# define B_ASN1_GRAPHICSTRING    0x0020\n# define B_ASN1_ISO64STRING      0x0040\n# define B_ASN1_VISIBLESTRING    0x0040\n# define B_ASN1_GENERALSTRING    0x0080\n# define B_ASN1_UNIVERSALSTRING  0x0100\n# define B_ASN1_OCTET_STRING     0x0200\n# define B_ASN1_BIT_STRING       0x0400\n# define B_ASN1_BMPSTRING        0x0800\n# define B_ASN1_UNKNOWN          0x1000\n# define B_ASN1_UTF8STRING       0x2000\n# define B_ASN1_UTCTIME          0x4000\n# define B_ASN1_GENERALIZEDTIME  0x8000\n# define B_ASN1_SEQUENCE         0x10000\n/* For use with ASN1_mbstring_copy() */\n# define MBSTRING_FLAG           0x1000\n# define MBSTRING_UTF8           (MBSTRING_FLAG)\n# define MBSTRING_ASC            (MBSTRING_FLAG|1)\n# define MBSTRING_BMP            (MBSTRING_FLAG|2)\n# define MBSTRING_UNIV           (MBSTRING_FLAG|4)\n# define SMIME_OLDMIME           0x400\n# define SMIME_CRLFEOL           0x800\n# define SMIME_STREAM            0x1000\n    struct X509_algor_st;\nDEFINE_STACK_OF(X509_ALGOR)\n\n# define ASN1_STRING_FLAG_BITS_LEFT 0x08/* Set if 0x07 has bits left value */\n/*\n * This indicates that the ASN1_STRING is not a real value but just a place\n * holder for the location where indefinite length constructed data should be\n * inserted in the memory buffer\n */\n# define ASN1_STRING_FLAG_NDEF 0x010\n\n/*\n * This flag is used by the CMS code to indicate that a string is not\n * complete and is a place holder for content when it had all been accessed.\n * The flag will be reset when content has been written to it.\n */\n\n# define ASN1_STRING_FLAG_CONT 0x020\n/*\n * This flag is used by ASN1 code to indicate an ASN1_STRING is an MSTRING\n * type.\n */\n# define ASN1_STRING_FLAG_MSTRING 0x040\n/* String is embedded and only content should be freed */\n# define ASN1_STRING_FLAG_EMBED 0x080\n/* String should be parsed in RFC 5280's time format */\n# define ASN1_STRING_FLAG_X509_TIME 0x100\n/* This is the base type that holds just about everything :-) */\nstruct asn1_string_st {\n    int length;\n    int type;\n    unsigned char *data;\n    /*\n     * The value of the following field depends on the type being held.  It\n     * is mostly being used for BIT_STRING so if the input data has a\n     * non-zero 'unused bits' value, it will be handled correctly\n     */\n    long flags;\n};\n\n/*\n * ASN1_ENCODING structure: this is used to save the received encoding of an\n * ASN1 type. This is useful to get round problems with invalid encodings\n * which can break signatures.\n */\n\ntypedef struct ASN1_ENCODING_st {\n    unsigned char *enc;         /* DER encoding */\n    long len;                   /* Length of encoding */\n    int modified;               /* set to 1 if 'enc' is invalid */\n} ASN1_ENCODING;\n\n/* Used with ASN1 LONG type: if a long is set to this it is omitted */\n# define ASN1_LONG_UNDEF 0x7fffffffL\n\n# define STABLE_FLAGS_MALLOC     0x01\n/*\n * A zero passed to ASN1_STRING_TABLE_new_add for the flags is interpreted\n * as \"don't change\" and STABLE_FLAGS_MALLOC is always set. By setting\n * STABLE_FLAGS_MALLOC only we can clear the existing value. Use the alias\n * STABLE_FLAGS_CLEAR to reflect this.\n */\n# define STABLE_FLAGS_CLEAR      STABLE_FLAGS_MALLOC\n# define STABLE_NO_MASK          0x02\n# define DIRSTRING_TYPE  \\\n (B_ASN1_PRINTABLESTRING|B_ASN1_T61STRING|B_ASN1_BMPSTRING|B_ASN1_UTF8STRING)\n# define PKCS9STRING_TYPE (DIRSTRING_TYPE|B_ASN1_IA5STRING)\n\ntypedef struct asn1_string_table_st {\n    int nid;\n    long minsize;\n    long maxsize;\n    unsigned long mask;\n    unsigned long flags;\n} ASN1_STRING_TABLE;\n\nDEFINE_STACK_OF(ASN1_STRING_TABLE)\n\n/* size limits: this stuff is taken straight from RFC2459 */\n\n# define ub_name                         32768\n# define ub_common_name                  64\n# define ub_locality_name                128\n# define ub_state_name                   128\n# define ub_organization_name            64\n# define ub_organization_unit_name       64\n# define ub_title                        64\n# define ub_email_address                128\n\n/*\n * Declarations for template structures: for full definitions see asn1t.h\n */\ntypedef struct ASN1_TEMPLATE_st ASN1_TEMPLATE;\ntypedef struct ASN1_TLC_st ASN1_TLC;\n/* This is just an opaque pointer */\ntypedef struct ASN1_VALUE_st ASN1_VALUE;\n\n/* Declare ASN1 functions: the implement macro in in asn1t.h */\n\n# define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type)\n\n# define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type)\n\n# define DECLARE_ASN1_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name)\n\n# define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)\n\n# define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \\\n        type *d2i_##name(type **a, const unsigned char **in, long len); \\\n        int i2d_##name(type *a, unsigned char **out); \\\n        DECLARE_ASN1_ITEM(itname)\n\n# define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \\\n        type *d2i_##name(type **a, const unsigned char **in, long len); \\\n        int i2d_##name(const type *a, unsigned char **out); \\\n        DECLARE_ASN1_ITEM(name)\n\n# define DECLARE_ASN1_NDEF_FUNCTION(name) \\\n        int i2d_##name##_NDEF(name *a, unsigned char **out);\n\n# define DECLARE_ASN1_FUNCTIONS_const(name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS(name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS_const(name, name)\n\n# define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        type *name##_new(void); \\\n        void name##_free(type *a);\n\n# define DECLARE_ASN1_PRINT_FUNCTION(stname) \\\n        DECLARE_ASN1_PRINT_FUNCTION_fname(stname, stname)\n\n# define DECLARE_ASN1_PRINT_FUNCTION_fname(stname, fname) \\\n        int fname##_print_ctx(BIO *out, stname *x, int indent, \\\n                                         const ASN1_PCTX *pctx);\n\n# define D2I_OF(type) type *(*)(type **,const unsigned char **,long)\n# define I2D_OF(type) int (*)(type *,unsigned char **)\n# define I2D_OF_const(type) int (*)(const type *,unsigned char **)\n\n# define CHECKED_D2I_OF(type, d2i) \\\n    ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0)))\n# define CHECKED_I2D_OF(type, i2d) \\\n    ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0)))\n# define CHECKED_NEW_OF(type, xnew) \\\n    ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0)))\n# define CHECKED_PTR_OF(type, p) \\\n    ((void*) (1 ? p : (type*)0))\n# define CHECKED_PPTR_OF(type, p) \\\n    ((void**) (1 ? p : (type**)0))\n\n# define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long)\n# define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **)\n# define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type)\n\nTYPEDEF_D2I2D_OF(void);\n\n/*-\n * The following macros and typedefs allow an ASN1_ITEM\n * to be embedded in a structure and referenced. Since\n * the ASN1_ITEM pointers need to be globally accessible\n * (possibly from shared libraries) they may exist in\n * different forms. On platforms that support it the\n * ASN1_ITEM structure itself will be globally exported.\n * Other platforms will export a function that returns\n * an ASN1_ITEM pointer.\n *\n * To handle both cases transparently the macros below\n * should be used instead of hard coding an ASN1_ITEM\n * pointer in a structure.\n *\n * The structure will look like this:\n *\n * typedef struct SOMETHING_st {\n *      ...\n *      ASN1_ITEM_EXP *iptr;\n *      ...\n * } SOMETHING;\n *\n * It would be initialised as e.g.:\n *\n * SOMETHING somevar = {...,ASN1_ITEM_ref(X509),...};\n *\n * and the actual pointer extracted with:\n *\n * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr);\n *\n * Finally an ASN1_ITEM pointer can be extracted from an\n * appropriate reference with: ASN1_ITEM_rptr(X509). This\n * would be used when a function takes an ASN1_ITEM * argument.\n *\n */\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/* ASN1_ITEM pointer exported type */\ntypedef const ASN1_ITEM ASN1_ITEM_EXP;\n\n/* Macro to obtain ASN1_ITEM pointer from exported type */\n#  define ASN1_ITEM_ptr(iptr) (iptr)\n\n/* Macro to include ASN1_ITEM pointer from base type */\n#  define ASN1_ITEM_ref(iptr) (&(iptr##_it))\n\n#  define ASN1_ITEM_rptr(ref) (&(ref##_it))\n\n#  define DECLARE_ASN1_ITEM(name) \\\n        OPENSSL_EXTERN const ASN1_ITEM name##_it;\n\n# else\n\n/*\n * Platforms that can't easily handle shared global variables are declared as\n * functions returning ASN1_ITEM pointers.\n */\n\n/* ASN1_ITEM pointer exported type */\ntypedef const ASN1_ITEM *ASN1_ITEM_EXP (void);\n\n/* Macro to obtain ASN1_ITEM pointer from exported type */\n#  define ASN1_ITEM_ptr(iptr) (iptr())\n\n/* Macro to include ASN1_ITEM pointer from base type */\n#  define ASN1_ITEM_ref(iptr) (iptr##_it)\n\n#  define ASN1_ITEM_rptr(ref) (ref##_it())\n\n#  define DECLARE_ASN1_ITEM(name) \\\n        const ASN1_ITEM * name##_it(void);\n\n# endif\n\n/* Parameters used by ASN1_STRING_print_ex() */\n\n/*\n * These determine which characters to escape: RFC2253 special characters,\n * control characters and MSB set characters\n */\n\n# define ASN1_STRFLGS_ESC_2253           1\n# define ASN1_STRFLGS_ESC_CTRL           2\n# define ASN1_STRFLGS_ESC_MSB            4\n\n/*\n * This flag determines how we do escaping: normally RC2253 backslash only,\n * set this to use backslash and quote.\n */\n\n# define ASN1_STRFLGS_ESC_QUOTE          8\n\n/* These three flags are internal use only. */\n\n/* Character is a valid PrintableString character */\n# define CHARTYPE_PRINTABLESTRING        0x10\n/* Character needs escaping if it is the first character */\n# define CHARTYPE_FIRST_ESC_2253         0x20\n/* Character needs escaping if it is the last character */\n# define CHARTYPE_LAST_ESC_2253          0x40\n\n/*\n * NB the internal flags are safely reused below by flags handled at the top\n * level.\n */\n\n/*\n * If this is set we convert all character strings to UTF8 first\n */\n\n# define ASN1_STRFLGS_UTF8_CONVERT       0x10\n\n/*\n * If this is set we don't attempt to interpret content: just assume all\n * strings are 1 byte per character. This will produce some pretty odd\n * looking output!\n */\n\n# define ASN1_STRFLGS_IGNORE_TYPE        0x20\n\n/* If this is set we include the string type in the output */\n# define ASN1_STRFLGS_SHOW_TYPE          0x40\n\n/*\n * This determines which strings to display and which to 'dump' (hex dump of\n * content octets or DER encoding). We can only dump non character strings or\n * everything. If we don't dump 'unknown' they are interpreted as character\n * strings with 1 octet per character and are subject to the usual escaping\n * options.\n */\n\n# define ASN1_STRFLGS_DUMP_ALL           0x80\n# define ASN1_STRFLGS_DUMP_UNKNOWN       0x100\n\n/*\n * These determine what 'dumping' does, we can dump the content octets or the\n * DER encoding: both use the RFC2253 #XXXXX notation.\n */\n\n# define ASN1_STRFLGS_DUMP_DER           0x200\n\n/*\n * This flag specifies that RC2254 escaping shall be performed.\n */\n#define ASN1_STRFLGS_ESC_2254           0x400\n\n/*\n * All the string flags consistent with RFC2253, escaping control characters\n * isn't essential in RFC2253 but it is advisable anyway.\n */\n\n# define ASN1_STRFLGS_RFC2253    (ASN1_STRFLGS_ESC_2253 | \\\n                                ASN1_STRFLGS_ESC_CTRL | \\\n                                ASN1_STRFLGS_ESC_MSB | \\\n                                ASN1_STRFLGS_UTF8_CONVERT | \\\n                                ASN1_STRFLGS_DUMP_UNKNOWN | \\\n                                ASN1_STRFLGS_DUMP_DER)\n\nDEFINE_STACK_OF(ASN1_INTEGER)\n\nDEFINE_STACK_OF(ASN1_GENERALSTRING)\n\nDEFINE_STACK_OF(ASN1_UTF8STRING)\n\ntypedef struct asn1_type_st {\n    int type;\n    union {\n        char *ptr;\n        ASN1_BOOLEAN boolean;\n        ASN1_STRING *asn1_string;\n        ASN1_OBJECT *object;\n        ASN1_INTEGER *integer;\n        ASN1_ENUMERATED *enumerated;\n        ASN1_BIT_STRING *bit_string;\n        ASN1_OCTET_STRING *octet_string;\n        ASN1_PRINTABLESTRING *printablestring;\n        ASN1_T61STRING *t61string;\n        ASN1_IA5STRING *ia5string;\n        ASN1_GENERALSTRING *generalstring;\n        ASN1_BMPSTRING *bmpstring;\n        ASN1_UNIVERSALSTRING *universalstring;\n        ASN1_UTCTIME *utctime;\n        ASN1_GENERALIZEDTIME *generalizedtime;\n        ASN1_VISIBLESTRING *visiblestring;\n        ASN1_UTF8STRING *utf8string;\n        /*\n         * set and sequence are left complete and still contain the set or\n         * sequence bytes\n         */\n        ASN1_STRING *set;\n        ASN1_STRING *sequence;\n        ASN1_VALUE *asn1_value;\n    } value;\n} ASN1_TYPE;\n\nDEFINE_STACK_OF(ASN1_TYPE)\n\ntypedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;\n\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SEQUENCE_ANY)\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SET_ANY)\n\n/* This is used to contain a list of bit names */\ntypedef struct BIT_STRING_BITNAME_st {\n    int bitnum;\n    const char *lname;\n    const char *sname;\n} BIT_STRING_BITNAME;\n\n# define B_ASN1_TIME \\\n                        B_ASN1_UTCTIME | \\\n                        B_ASN1_GENERALIZEDTIME\n\n# define B_ASN1_PRINTABLE \\\n                        B_ASN1_NUMERICSTRING| \\\n                        B_ASN1_PRINTABLESTRING| \\\n                        B_ASN1_T61STRING| \\\n                        B_ASN1_IA5STRING| \\\n                        B_ASN1_BIT_STRING| \\\n                        B_ASN1_UNIVERSALSTRING|\\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UTF8STRING|\\\n                        B_ASN1_SEQUENCE|\\\n                        B_ASN1_UNKNOWN\n\n# define B_ASN1_DIRECTORYSTRING \\\n                        B_ASN1_PRINTABLESTRING| \\\n                        B_ASN1_TELETEXSTRING|\\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UNIVERSALSTRING|\\\n                        B_ASN1_UTF8STRING\n\n# define B_ASN1_DISPLAYTEXT \\\n                        B_ASN1_IA5STRING| \\\n                        B_ASN1_VISIBLESTRING| \\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UTF8STRING\n\nDECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE)\n\nint ASN1_TYPE_get(const ASN1_TYPE *a);\nvoid ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);\nint ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);\nint ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);\n\nASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);\nvoid *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);\n\nASN1_OBJECT *ASN1_OBJECT_new(void);\nvoid ASN1_OBJECT_free(ASN1_OBJECT *a);\nint i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp);\nASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,\n                             long length);\n\nDECLARE_ASN1_ITEM(ASN1_OBJECT)\n\nDEFINE_STACK_OF(ASN1_OBJECT)\n\nASN1_STRING *ASN1_STRING_new(void);\nvoid ASN1_STRING_free(ASN1_STRING *a);\nvoid ASN1_STRING_clear_free(ASN1_STRING *a);\nint ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str);\nASN1_STRING *ASN1_STRING_dup(const ASN1_STRING *a);\nASN1_STRING *ASN1_STRING_type_new(int type);\nint ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b);\n  /*\n   * Since this is used to store all sorts of things, via macros, for now,\n   * make its data void *\n   */\nint ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);\nvoid ASN1_STRING_set0(ASN1_STRING *str, void *data, int len);\nint ASN1_STRING_length(const ASN1_STRING *x);\nvoid ASN1_STRING_length_set(ASN1_STRING *x, int n);\nint ASN1_STRING_type(const ASN1_STRING *x);\nDEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))\nconst unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING)\nint ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length);\nint ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value);\nint ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n);\nint ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a,\n                          const unsigned char *flags, int flags_len);\n\nint ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,\n                               BIT_STRING_BITNAME *tbl, int indent);\nint ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl);\nint ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,\n                            BIT_STRING_BITNAME *tbl);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_INTEGER)\nASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp,\n                                long length);\nASN1_INTEGER *ASN1_INTEGER_dup(const ASN1_INTEGER *x);\nint ASN1_INTEGER_cmp(const ASN1_INTEGER *x, const ASN1_INTEGER *y);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED)\n\nint ASN1_UTCTIME_check(const ASN1_UTCTIME *a);\nASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t);\nASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t,\n                               int offset_day, long offset_sec);\nint ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);\nint ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);\n\nint ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *a);\nASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,\n                                               time_t t);\nASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_adj(ASN1_GENERALIZEDTIME *s,\n                                               time_t t, int offset_day,\n                                               long offset_sec);\nint ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str);\n\nint ASN1_TIME_diff(int *pday, int *psec,\n                   const ASN1_TIME *from, const ASN1_TIME *to);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING)\nASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *a);\nint ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,\n                          const ASN1_OCTET_STRING *b);\nint ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,\n                          int len);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_NULL)\nDECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING)\n\nint UTF8_getc(const unsigned char *str, int len, unsigned long *val);\nint UTF8_putc(unsigned char *str, int len, unsigned long value);\n\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE)\n\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING)\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT)\nDECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_T61STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UTCTIME)\nDECLARE_ASN1_FUNCTIONS(ASN1_GENERALIZEDTIME)\nDECLARE_ASN1_FUNCTIONS(ASN1_TIME)\n\nDECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF)\n\nASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);\nASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,\n                         int offset_day, long offset_sec);\nint ASN1_TIME_check(const ASN1_TIME *t);\nASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,\n                                                   ASN1_GENERALIZEDTIME **out);\nint ASN1_TIME_set_string(ASN1_TIME *s, const char *str);\nint ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);\nint ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);\nint ASN1_TIME_normalize(ASN1_TIME *s);\nint ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t);\nint ASN1_TIME_compare(const ASN1_TIME *a, const ASN1_TIME *b);\n\nint i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a);\nint a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size);\nint i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a);\nint a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size);\nint i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a);\nint a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size);\nint i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type);\nint i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a);\n\nint a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);\nASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len,\n                                const char *sn, const char *ln);\n\nint ASN1_INTEGER_get_int64(int64_t *pr, const ASN1_INTEGER *a);\nint ASN1_INTEGER_set_int64(ASN1_INTEGER *a, int64_t r);\nint ASN1_INTEGER_get_uint64(uint64_t *pr, const ASN1_INTEGER *a);\nint ASN1_INTEGER_set_uint64(ASN1_INTEGER *a, uint64_t r);\n\nint ASN1_INTEGER_set(ASN1_INTEGER *a, long v);\nlong ASN1_INTEGER_get(const ASN1_INTEGER *a);\nASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai);\nBIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn);\n\nint ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_ENUMERATED *a);\nint ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *a, int64_t r);\n\n\nint ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v);\nlong ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a);\nASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai);\nBIGNUM *ASN1_ENUMERATED_to_BN(const ASN1_ENUMERATED *ai, BIGNUM *bn);\n\n/* General */\n/* given a string, return the correct type, max is the maximum length */\nint ASN1_PRINTABLE_type(const unsigned char *s, int max);\n\nunsigned long ASN1_tag2bit(int tag);\n\n/* SPECIALS */\nint ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,\n                    int *pclass, long omax);\nint ASN1_check_infinite_end(unsigned char **p, long len);\nint ASN1_const_check_infinite_end(const unsigned char **p, long len);\nvoid ASN1_put_object(unsigned char **pp, int constructed, int length,\n                     int tag, int xclass);\nint ASN1_put_eoc(unsigned char **pp);\nint ASN1_object_size(int constructed, int length, int tag);\n\n/* Used to implement other functions */\nvoid *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x);\n\n# define ASN1_dup_of(type,i2d,d2i,x) \\\n    ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \\\n                     CHECKED_D2I_OF(type, d2i), \\\n                     CHECKED_PTR_OF(type, x)))\n\n# define ASN1_dup_of_const(type,i2d,d2i,x) \\\n    ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \\\n                     CHECKED_D2I_OF(type, d2i), \\\n                     CHECKED_PTR_OF(const type, x)))\n\nvoid *ASN1_item_dup(const ASN1_ITEM *it, void *x);\n\n/* ASN1 alloc/free macros for when a type is only used internally */\n\n# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type))\n# define M_ASN1_free_of(x, type) \\\n                ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type))\n\n# ifndef OPENSSL_NO_STDIO\nvoid *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x);\n\n#  define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \\\n    ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \\\n                        CHECKED_D2I_OF(type, d2i), \\\n                        in, \\\n                        CHECKED_PPTR_OF(type, x)))\n\nvoid *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);\nint ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x);\n\n#  define ASN1_i2d_fp_of(type,i2d,out,x) \\\n    (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \\\n                 out, \\\n                 CHECKED_PTR_OF(type, x)))\n\n#  define ASN1_i2d_fp_of_const(type,i2d,out,x) \\\n    (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \\\n                 out, \\\n                 CHECKED_PTR_OF(const type, x)))\n\nint ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);\nint ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags);\n# endif\n\nint ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in);\n\nvoid *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x);\n\n#  define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \\\n    ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \\\n                          CHECKED_D2I_OF(type, d2i), \\\n                          in, \\\n                          CHECKED_PPTR_OF(type, x)))\n\nvoid *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x);\nint ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x);\n\n#  define ASN1_i2d_bio_of(type,i2d,out,x) \\\n    (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \\\n                  out, \\\n                  CHECKED_PTR_OF(type, x)))\n\n#  define ASN1_i2d_bio_of_const(type,i2d,out,x) \\\n    (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \\\n                  out, \\\n                  CHECKED_PTR_OF(const type, x)))\n\nint ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x);\nint ASN1_UTCTIME_print(BIO *fp, const ASN1_UTCTIME *a);\nint ASN1_GENERALIZEDTIME_print(BIO *fp, const ASN1_GENERALIZEDTIME *a);\nint ASN1_TIME_print(BIO *fp, const ASN1_TIME *a);\nint ASN1_STRING_print(BIO *bp, const ASN1_STRING *v);\nint ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);\nint ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int off);\nint ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num,\n                  unsigned char *buf, int off);\nint ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent);\nint ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent,\n                    int dump);\nconst char *ASN1_tag2str(int tag);\n\n/* Used to load and write Netscape format cert */\n\nint ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s);\n\nint ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len);\nint ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, int max_len);\nint ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num,\n                                  unsigned char *data, int len);\nint ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num,\n                                  unsigned char *data, int max_len);\n\nvoid *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);\n\nASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it,\n                            ASN1_OCTET_STRING **oct);\n\nvoid ASN1_STRING_set_default_mask(unsigned long mask);\nint ASN1_STRING_set_default_mask_asc(const char *p);\nunsigned long ASN1_STRING_get_default_mask(void);\nint ASN1_mbstring_copy(ASN1_STRING **out, const unsigned char *in, int len,\n                       int inform, unsigned long mask);\nint ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,\n                        int inform, unsigned long mask,\n                        long minsize, long maxsize);\n\nASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out,\n                                    const unsigned char *in, int inlen,\n                                    int inform, int nid);\nASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid);\nint ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long);\nvoid ASN1_STRING_TABLE_cleanup(void);\n\n/* ASN1 template functions */\n\n/* Old API compatible functions */\nASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);\nvoid ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it);\nASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in,\n                          long len, const ASN1_ITEM *it);\nint ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it);\nint ASN1_item_ndef_i2d(ASN1_VALUE *val, unsigned char **out,\n                       const ASN1_ITEM *it);\n\nvoid ASN1_add_oid_module(void);\nvoid ASN1_add_stable_module(void);\n\nASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);\nASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);\nint ASN1_str2mask(const char *str, unsigned long *pmask);\n\n/* ASN1 Print flags */\n\n/* Indicate missing OPTIONAL fields */\n# define ASN1_PCTX_FLAGS_SHOW_ABSENT             0x001\n/* Mark start and end of SEQUENCE */\n# define ASN1_PCTX_FLAGS_SHOW_SEQUENCE           0x002\n/* Mark start and end of SEQUENCE/SET OF */\n# define ASN1_PCTX_FLAGS_SHOW_SSOF               0x004\n/* Show the ASN1 type of primitives */\n# define ASN1_PCTX_FLAGS_SHOW_TYPE               0x008\n/* Don't show ASN1 type of ANY */\n# define ASN1_PCTX_FLAGS_NO_ANY_TYPE             0x010\n/* Don't show ASN1 type of MSTRINGs */\n# define ASN1_PCTX_FLAGS_NO_MSTRING_TYPE         0x020\n/* Don't show field names in SEQUENCE */\n# define ASN1_PCTX_FLAGS_NO_FIELD_NAME           0x040\n/* Show structure names of each SEQUENCE field */\n# define ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME  0x080\n/* Don't show structure name even at top level */\n# define ASN1_PCTX_FLAGS_NO_STRUCT_NAME          0x100\n\nint ASN1_item_print(BIO *out, ASN1_VALUE *ifld, int indent,\n                    const ASN1_ITEM *it, const ASN1_PCTX *pctx);\nASN1_PCTX *ASN1_PCTX_new(void);\nvoid ASN1_PCTX_free(ASN1_PCTX *p);\nunsigned long ASN1_PCTX_get_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_nm_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_nm_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_cert_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_cert_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_oid_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_oid_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags);\n\nASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx));\nvoid ASN1_SCTX_free(ASN1_SCTX *p);\nconst ASN1_ITEM *ASN1_SCTX_get_item(ASN1_SCTX *p);\nconst ASN1_TEMPLATE *ASN1_SCTX_get_template(ASN1_SCTX *p);\nunsigned long ASN1_SCTX_get_flags(ASN1_SCTX *p);\nvoid ASN1_SCTX_set_app_data(ASN1_SCTX *p, void *data);\nvoid *ASN1_SCTX_get_app_data(ASN1_SCTX *p);\n\nconst BIO_METHOD *BIO_f_asn1(void);\n\nBIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it);\n\nint i2d_ASN1_bio_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,\n                        const ASN1_ITEM *it);\nint PEM_write_bio_ASN1_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,\n                              const char *hdr, const ASN1_ITEM *it);\nint SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags,\n                     int ctype_nid, int econt_nid,\n                     STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it);\nASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it);\nint SMIME_crlf_copy(BIO *in, BIO *out, int flags);\nint SMIME_text(BIO *in, BIO *out);\n\nconst ASN1_ITEM *ASN1_ITEM_lookup(const char *name);\nconst ASN1_ITEM *ASN1_ITEM_get(size_t i);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/asn1_mac.h",
    "content": "/*\n * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#error \"This file is obsolete; please update your software.\"\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/asn1err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1ERR_H\n# define HEADER_ASN1ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_ASN1_strings(void);\n\n/*\n * ASN1 function codes.\n */\n# define ASN1_F_A2D_ASN1_OBJECT                           100\n# define ASN1_F_A2I_ASN1_INTEGER                          102\n# define ASN1_F_A2I_ASN1_STRING                           103\n# define ASN1_F_APPEND_EXP                                176\n# define ASN1_F_ASN1_BIO_INIT                             113\n# define ASN1_F_ASN1_BIT_STRING_SET_BIT                   183\n# define ASN1_F_ASN1_CB                                   177\n# define ASN1_F_ASN1_CHECK_TLEN                           104\n# define ASN1_F_ASN1_COLLECT                              106\n# define ASN1_F_ASN1_D2I_EX_PRIMITIVE                     108\n# define ASN1_F_ASN1_D2I_FP                               109\n# define ASN1_F_ASN1_D2I_READ_BIO                         107\n# define ASN1_F_ASN1_DIGEST                               184\n# define ASN1_F_ASN1_DO_ADB                               110\n# define ASN1_F_ASN1_DO_LOCK                              233\n# define ASN1_F_ASN1_DUP                                  111\n# define ASN1_F_ASN1_ENC_SAVE                             115\n# define ASN1_F_ASN1_EX_C2I                               204\n# define ASN1_F_ASN1_FIND_END                             190\n# define ASN1_F_ASN1_GENERALIZEDTIME_ADJ                  216\n# define ASN1_F_ASN1_GENERATE_V3                          178\n# define ASN1_F_ASN1_GET_INT64                            224\n# define ASN1_F_ASN1_GET_OBJECT                           114\n# define ASN1_F_ASN1_GET_UINT64                           225\n# define ASN1_F_ASN1_I2D_BIO                              116\n# define ASN1_F_ASN1_I2D_FP                               117\n# define ASN1_F_ASN1_ITEM_D2I_FP                          206\n# define ASN1_F_ASN1_ITEM_DUP                             191\n# define ASN1_F_ASN1_ITEM_EMBED_D2I                       120\n# define ASN1_F_ASN1_ITEM_EMBED_NEW                       121\n# define ASN1_F_ASN1_ITEM_FLAGS_I2D                       118\n# define ASN1_F_ASN1_ITEM_I2D_BIO                         192\n# define ASN1_F_ASN1_ITEM_I2D_FP                          193\n# define ASN1_F_ASN1_ITEM_PACK                            198\n# define ASN1_F_ASN1_ITEM_SIGN                            195\n# define ASN1_F_ASN1_ITEM_SIGN_CTX                        220\n# define ASN1_F_ASN1_ITEM_UNPACK                          199\n# define ASN1_F_ASN1_ITEM_VERIFY                          197\n# define ASN1_F_ASN1_MBSTRING_NCOPY                       122\n# define ASN1_F_ASN1_OBJECT_NEW                           123\n# define ASN1_F_ASN1_OUTPUT_DATA                          214\n# define ASN1_F_ASN1_PCTX_NEW                             205\n# define ASN1_F_ASN1_PRIMITIVE_NEW                        119\n# define ASN1_F_ASN1_SCTX_NEW                             221\n# define ASN1_F_ASN1_SIGN                                 128\n# define ASN1_F_ASN1_STR2TYPE                             179\n# define ASN1_F_ASN1_STRING_GET_INT64                     227\n# define ASN1_F_ASN1_STRING_GET_UINT64                    230\n# define ASN1_F_ASN1_STRING_SET                           186\n# define ASN1_F_ASN1_STRING_TABLE_ADD                     129\n# define ASN1_F_ASN1_STRING_TO_BN                         228\n# define ASN1_F_ASN1_STRING_TYPE_NEW                      130\n# define ASN1_F_ASN1_TEMPLATE_EX_D2I                      132\n# define ASN1_F_ASN1_TEMPLATE_NEW                         133\n# define ASN1_F_ASN1_TEMPLATE_NOEXP_D2I                   131\n# define ASN1_F_ASN1_TIME_ADJ                             217\n# define ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING             134\n# define ASN1_F_ASN1_TYPE_GET_OCTETSTRING                 135\n# define ASN1_F_ASN1_UTCTIME_ADJ                          218\n# define ASN1_F_ASN1_VERIFY                               137\n# define ASN1_F_B64_READ_ASN1                             209\n# define ASN1_F_B64_WRITE_ASN1                            210\n# define ASN1_F_BIO_NEW_NDEF                              208\n# define ASN1_F_BITSTR_CB                                 180\n# define ASN1_F_BN_TO_ASN1_STRING                         229\n# define ASN1_F_C2I_ASN1_BIT_STRING                       189\n# define ASN1_F_C2I_ASN1_INTEGER                          194\n# define ASN1_F_C2I_ASN1_OBJECT                           196\n# define ASN1_F_C2I_IBUF                                  226\n# define ASN1_F_C2I_UINT64_INT                            101\n# define ASN1_F_COLLECT_DATA                              140\n# define ASN1_F_D2I_ASN1_OBJECT                           147\n# define ASN1_F_D2I_ASN1_UINTEGER                         150\n# define ASN1_F_D2I_AUTOPRIVATEKEY                        207\n# define ASN1_F_D2I_PRIVATEKEY                            154\n# define ASN1_F_D2I_PUBLICKEY                             155\n# define ASN1_F_DO_BUF                                    142\n# define ASN1_F_DO_CREATE                                 124\n# define ASN1_F_DO_DUMP                                   125\n# define ASN1_F_DO_TCREATE                                222\n# define ASN1_F_I2A_ASN1_OBJECT                           126\n# define ASN1_F_I2D_ASN1_BIO_STREAM                       211\n# define ASN1_F_I2D_ASN1_OBJECT                           143\n# define ASN1_F_I2D_DSA_PUBKEY                            161\n# define ASN1_F_I2D_EC_PUBKEY                             181\n# define ASN1_F_I2D_PRIVATEKEY                            163\n# define ASN1_F_I2D_PUBLICKEY                             164\n# define ASN1_F_I2D_RSA_PUBKEY                            165\n# define ASN1_F_LONG_C2I                                  166\n# define ASN1_F_NDEF_PREFIX                               127\n# define ASN1_F_NDEF_SUFFIX                               136\n# define ASN1_F_OID_MODULE_INIT                           174\n# define ASN1_F_PARSE_TAGGING                             182\n# define ASN1_F_PKCS5_PBE2_SET_IV                         167\n# define ASN1_F_PKCS5_PBE2_SET_SCRYPT                     231\n# define ASN1_F_PKCS5_PBE_SET                             202\n# define ASN1_F_PKCS5_PBE_SET0_ALGOR                      215\n# define ASN1_F_PKCS5_PBKDF2_SET                          219\n# define ASN1_F_PKCS5_SCRYPT_SET                          232\n# define ASN1_F_SMIME_READ_ASN1                           212\n# define ASN1_F_SMIME_TEXT                                213\n# define ASN1_F_STABLE_GET                                138\n# define ASN1_F_STBL_MODULE_INIT                          223\n# define ASN1_F_UINT32_C2I                                105\n# define ASN1_F_UINT32_NEW                                139\n# define ASN1_F_UINT64_C2I                                112\n# define ASN1_F_UINT64_NEW                                141\n# define ASN1_F_X509_CRL_ADD0_REVOKED                     169\n# define ASN1_F_X509_INFO_NEW                             170\n# define ASN1_F_X509_NAME_ENCODE                          203\n# define ASN1_F_X509_NAME_EX_D2I                          158\n# define ASN1_F_X509_NAME_EX_NEW                          171\n# define ASN1_F_X509_PKEY_NEW                             173\n\n/*\n * ASN1 reason codes.\n */\n# define ASN1_R_ADDING_OBJECT                             171\n# define ASN1_R_ASN1_PARSE_ERROR                          203\n# define ASN1_R_ASN1_SIG_PARSE_ERROR                      204\n# define ASN1_R_AUX_ERROR                                 100\n# define ASN1_R_BAD_OBJECT_HEADER                         102\n# define ASN1_R_BMPSTRING_IS_WRONG_LENGTH                 214\n# define ASN1_R_BN_LIB                                    105\n# define ASN1_R_BOOLEAN_IS_WRONG_LENGTH                   106\n# define ASN1_R_BUFFER_TOO_SMALL                          107\n# define ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER           108\n# define ASN1_R_CONTEXT_NOT_INITIALISED                   217\n# define ASN1_R_DATA_IS_WRONG                             109\n# define ASN1_R_DECODE_ERROR                              110\n# define ASN1_R_DEPTH_EXCEEDED                            174\n# define ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED         198\n# define ASN1_R_ENCODE_ERROR                              112\n# define ASN1_R_ERROR_GETTING_TIME                        173\n# define ASN1_R_ERROR_LOADING_SECTION                     172\n# define ASN1_R_ERROR_SETTING_CIPHER_PARAMS               114\n# define ASN1_R_EXPECTING_AN_INTEGER                      115\n# define ASN1_R_EXPECTING_AN_OBJECT                       116\n# define ASN1_R_EXPLICIT_LENGTH_MISMATCH                  119\n# define ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED              120\n# define ASN1_R_FIELD_MISSING                             121\n# define ASN1_R_FIRST_NUM_TOO_LARGE                       122\n# define ASN1_R_HEADER_TOO_LONG                           123\n# define ASN1_R_ILLEGAL_BITSTRING_FORMAT                  175\n# define ASN1_R_ILLEGAL_BOOLEAN                           176\n# define ASN1_R_ILLEGAL_CHARACTERS                        124\n# define ASN1_R_ILLEGAL_FORMAT                            177\n# define ASN1_R_ILLEGAL_HEX                               178\n# define ASN1_R_ILLEGAL_IMPLICIT_TAG                      179\n# define ASN1_R_ILLEGAL_INTEGER                           180\n# define ASN1_R_ILLEGAL_NEGATIVE_VALUE                    226\n# define ASN1_R_ILLEGAL_NESTED_TAGGING                    181\n# define ASN1_R_ILLEGAL_NULL                              125\n# define ASN1_R_ILLEGAL_NULL_VALUE                        182\n# define ASN1_R_ILLEGAL_OBJECT                            183\n# define ASN1_R_ILLEGAL_OPTIONAL_ANY                      126\n# define ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE          170\n# define ASN1_R_ILLEGAL_PADDING                           221\n# define ASN1_R_ILLEGAL_TAGGED_ANY                        127\n# define ASN1_R_ILLEGAL_TIME_VALUE                        184\n# define ASN1_R_ILLEGAL_ZERO_CONTENT                      222\n# define ASN1_R_INTEGER_NOT_ASCII_FORMAT                  185\n# define ASN1_R_INTEGER_TOO_LARGE_FOR_LONG                128\n# define ASN1_R_INVALID_BIT_STRING_BITS_LEFT              220\n# define ASN1_R_INVALID_BMPSTRING_LENGTH                  129\n# define ASN1_R_INVALID_DIGIT                             130\n# define ASN1_R_INVALID_MIME_TYPE                         205\n# define ASN1_R_INVALID_MODIFIER                          186\n# define ASN1_R_INVALID_NUMBER                            187\n# define ASN1_R_INVALID_OBJECT_ENCODING                   216\n# define ASN1_R_INVALID_SCRYPT_PARAMETERS                 227\n# define ASN1_R_INVALID_SEPARATOR                         131\n# define ASN1_R_INVALID_STRING_TABLE_VALUE                218\n# define ASN1_R_INVALID_UNIVERSALSTRING_LENGTH            133\n# define ASN1_R_INVALID_UTF8STRING                        134\n# define ASN1_R_INVALID_VALUE                             219\n# define ASN1_R_LIST_ERROR                                188\n# define ASN1_R_MIME_NO_CONTENT_TYPE                      206\n# define ASN1_R_MIME_PARSE_ERROR                          207\n# define ASN1_R_MIME_SIG_PARSE_ERROR                      208\n# define ASN1_R_MISSING_EOC                               137\n# define ASN1_R_MISSING_SECOND_NUMBER                     138\n# define ASN1_R_MISSING_VALUE                             189\n# define ASN1_R_MSTRING_NOT_UNIVERSAL                     139\n# define ASN1_R_MSTRING_WRONG_TAG                         140\n# define ASN1_R_NESTED_ASN1_STRING                        197\n# define ASN1_R_NESTED_TOO_DEEP                           201\n# define ASN1_R_NON_HEX_CHARACTERS                        141\n# define ASN1_R_NOT_ASCII_FORMAT                          190\n# define ASN1_R_NOT_ENOUGH_DATA                           142\n# define ASN1_R_NO_CONTENT_TYPE                           209\n# define ASN1_R_NO_MATCHING_CHOICE_TYPE                   143\n# define ASN1_R_NO_MULTIPART_BODY_FAILURE                 210\n# define ASN1_R_NO_MULTIPART_BOUNDARY                     211\n# define ASN1_R_NO_SIG_CONTENT_TYPE                       212\n# define ASN1_R_NULL_IS_WRONG_LENGTH                      144\n# define ASN1_R_OBJECT_NOT_ASCII_FORMAT                   191\n# define ASN1_R_ODD_NUMBER_OF_CHARS                       145\n# define ASN1_R_SECOND_NUMBER_TOO_LARGE                   147\n# define ASN1_R_SEQUENCE_LENGTH_MISMATCH                  148\n# define ASN1_R_SEQUENCE_NOT_CONSTRUCTED                  149\n# define ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG              192\n# define ASN1_R_SHORT_LINE                                150\n# define ASN1_R_SIG_INVALID_MIME_TYPE                     213\n# define ASN1_R_STREAMING_NOT_SUPPORTED                   202\n# define ASN1_R_STRING_TOO_LONG                           151\n# define ASN1_R_STRING_TOO_SHORT                          152\n# define ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 154\n# define ASN1_R_TIME_NOT_ASCII_FORMAT                     193\n# define ASN1_R_TOO_LARGE                                 223\n# define ASN1_R_TOO_LONG                                  155\n# define ASN1_R_TOO_SMALL                                 224\n# define ASN1_R_TYPE_NOT_CONSTRUCTED                      156\n# define ASN1_R_TYPE_NOT_PRIMITIVE                        195\n# define ASN1_R_UNEXPECTED_EOC                            159\n# define ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH           215\n# define ASN1_R_UNKNOWN_FORMAT                            160\n# define ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM          161\n# define ASN1_R_UNKNOWN_OBJECT_TYPE                       162\n# define ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE                   163\n# define ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM               199\n# define ASN1_R_UNKNOWN_TAG                               194\n# define ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE           164\n# define ASN1_R_UNSUPPORTED_CIPHER                        228\n# define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE               167\n# define ASN1_R_UNSUPPORTED_TYPE                          196\n# define ASN1_R_WRONG_INTEGER_TYPE                        225\n# define ASN1_R_WRONG_PUBLIC_KEY_TYPE                     200\n# define ASN1_R_WRONG_TAG                                 168\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/asn1t.h",
    "content": "/*\n * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1T_H\n# define HEADER_ASN1T_H\n\n# include <stddef.h>\n# include <openssl/e_os2.h>\n# include <openssl/asn1.h>\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\n/* ASN1 template defines, structures and functions */\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */\n#  define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr))\n\n/* Macros for start and end of ASN1_ITEM definition */\n\n#  define ASN1_ITEM_start(itname) \\\n        const ASN1_ITEM itname##_it = {\n\n#  define static_ASN1_ITEM_start(itname) \\\n        static const ASN1_ITEM itname##_it = {\n\n#  define ASN1_ITEM_end(itname)                 \\\n                };\n\n# else\n\n/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */\n#  define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)((iptr)()))\n\n/* Macros for start and end of ASN1_ITEM definition */\n\n#  define ASN1_ITEM_start(itname) \\\n        const ASN1_ITEM * itname##_it(void) \\\n        { \\\n                static const ASN1_ITEM local_it = {\n\n#  define static_ASN1_ITEM_start(itname) \\\n        static ASN1_ITEM_start(itname)\n\n#  define ASN1_ITEM_end(itname) \\\n                }; \\\n        return &local_it; \\\n        }\n\n# endif\n\n/* Macros to aid ASN1 template writing */\n\n# define ASN1_ITEM_TEMPLATE(tname) \\\n        static const ASN1_TEMPLATE tname##_item_tt\n\n# define ASN1_ITEM_TEMPLATE_END(tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_PRIMITIVE,\\\n                -1,\\\n                &tname##_item_tt,\\\n                0,\\\n                NULL,\\\n                0,\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_ITEM_TEMPLATE_END(tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_PRIMITIVE,\\\n                -1,\\\n                &tname##_item_tt,\\\n                0,\\\n                NULL,\\\n                0,\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n/* This is a ASN1 type which just embeds a template */\n\n/*-\n * This pair helps declare a SEQUENCE. We can do:\n *\n *      ASN1_SEQUENCE(stname) = {\n *              ... SEQUENCE components ...\n *      } ASN1_SEQUENCE_END(stname)\n *\n *      This will produce an ASN1_ITEM called stname_it\n *      for a structure called stname.\n *\n *      If you want the same structure but a different\n *      name then use:\n *\n *      ASN1_SEQUENCE(itname) = {\n *              ... SEQUENCE components ...\n *      } ASN1_SEQUENCE_END_name(stname, itname)\n *\n *      This will create an item called itname_it using\n *      a structure called stname.\n */\n\n# define ASN1_SEQUENCE(tname) \\\n        static const ASN1_TEMPLATE tname##_seq_tt[]\n\n# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)\n\n# define static_ASN1_SEQUENCE_END(stname) static_ASN1_SEQUENCE_END_name(stname, stname)\n\n# define ASN1_SEQUENCE_END_name(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n# define static_ASN1_SEQUENCE_END_name(stname, tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_NDEF_SEQUENCE(tname) \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_NDEF_SEQUENCE_cb(tname, cb) \\\n        ASN1_SEQUENCE_cb(tname, cb)\n\n# define ASN1_SEQUENCE_cb(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_BROKEN_SEQUENCE(tname) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_SEQUENCE_ref(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), offsetof(tname, lock), cb, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_SEQUENCE_enc(tname, enc, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc)}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_NDEF_SEQUENCE_END(tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(tname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_NDEF_SEQUENCE_END(tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(tname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_BROKEN_SEQUENCE_END(stname) ASN1_SEQUENCE_END_ref(stname, stname)\n# define static_ASN1_BROKEN_SEQUENCE_END(stname) \\\n        static_ASN1_SEQUENCE_END_ref(stname, stname)\n\n# define ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)\n\n# define ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)\n# define static_ASN1_SEQUENCE_END_cb(stname, tname) static_ASN1_SEQUENCE_END_ref(stname, tname)\n\n# define ASN1_SEQUENCE_END_ref(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_SEQUENCE_END_ref(stname, tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_NDEF_SEQUENCE_END_cb(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n/*-\n * This pair helps declare a CHOICE type. We can do:\n *\n *      ASN1_CHOICE(chname) = {\n *              ... CHOICE options ...\n *      ASN1_CHOICE_END(chname)\n *\n *      This will produce an ASN1_ITEM called chname_it\n *      for a structure called chname. The structure\n *      definition must look like this:\n *      typedef struct {\n *              int type;\n *              union {\n *                      ASN1_SOMETHING *opt1;\n *                      ASN1_SOMEOTHER *opt2;\n *              } value;\n *      } chname;\n *\n *      the name of the selector must be 'type'.\n *      to use an alternative selector name use the\n *      ASN1_CHOICE_END_selector() version.\n */\n\n# define ASN1_CHOICE(tname) \\\n        static const ASN1_TEMPLATE tname##_ch_tt[]\n\n# define ASN1_CHOICE_cb(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \\\n        ASN1_CHOICE(tname)\n\n# define ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname)\n\n# define static_ASN1_CHOICE_END(stname) static_ASN1_CHOICE_END_name(stname, stname)\n\n# define ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type)\n\n# define static_ASN1_CHOICE_END_name(stname, tname) static_ASN1_CHOICE_END_selector(stname, tname, type)\n\n# define ASN1_CHOICE_END_selector(stname, tname, selname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define static_ASN1_CHOICE_END_selector(stname, tname, selname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_CHOICE_END_cb(stname, tname, selname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n/* This helps with the template wrapper form of ASN1_ITEM */\n\n# define ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \\\n        (flags), (tag), 0,\\\n        #name, ASN1_ITEM_ref(type) }\n\n/* These help with SEQUENCE or CHOICE components */\n\n/* used to declare other types */\n\n# define ASN1_EX_TYPE(flags, tag, stname, field, type) { \\\n        (flags), (tag), offsetof(stname, field),\\\n        #field, ASN1_ITEM_ref(type) }\n\n/* implicit and explicit helper macros */\n\n# define ASN1_IMP_EX(stname, field, type, tag, ex) \\\n         ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | (ex), tag, stname, field, type)\n\n# define ASN1_EXP_EX(stname, field, type, tag, ex) \\\n         ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | (ex), tag, stname, field, type)\n\n/* Any defined by macros: the field used is in the table itself */\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n#  define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }\n#  define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }\n# else\n#  define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb }\n#  define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb }\n# endif\n/* Plain simple type */\n# define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type)\n/* Embedded simple type */\n# define ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED,0, stname, field, type)\n\n/* OPTIONAL simple type */\n# define ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n# define ASN1_OPT_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED, 0, stname, field, type)\n\n/* IMPLICIT tagged simple type */\n# define ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0)\n# define ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)\n\n/* IMPLICIT tagged OPTIONAL simple type */\n# define ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)\n# define ASN1_IMP_OPT_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED)\n\n/* Same as above but EXPLICIT */\n\n# define ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0)\n# define ASN1_EXP_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)\n# define ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)\n# define ASN1_EXP_OPT_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED)\n\n/* SEQUENCE OF type */\n# define ASN1_SEQUENCE_OF(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type)\n\n/* OPTIONAL SEQUENCE OF */\n# define ASN1_SEQUENCE_OF_OPT(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n\n/* Same as above but for SET OF */\n\n# define ASN1_SET_OF(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type)\n\n# define ASN1_SET_OF_OPT(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n\n/* Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL */\n\n# define ASN1_IMP_SET_OF(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)\n\n# define ASN1_EXP_SET_OF(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)\n\n# define ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)\n\n# define ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)\n\n# define ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL)\n\n/* EXPLICIT using indefinite length constructed form */\n# define ASN1_NDEF_EXP(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF)\n\n/* EXPLICIT OPTIONAL using indefinite length constructed form */\n# define ASN1_NDEF_EXP_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_NDEF)\n\n/* Macros for the ASN1_ADB structure */\n\n# define ASN1_ADB(name) \\\n        static const ASN1_ADB_TABLE name##_adbtbl[]\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n#  define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \\\n        ;\\\n        static const ASN1_ADB name##_adb = {\\\n                flags,\\\n                offsetof(name, field),\\\n                adb_cb,\\\n                name##_adbtbl,\\\n                sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\\\n                def,\\\n                none\\\n        }\n\n# else\n\n#  define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \\\n        ;\\\n        static const ASN1_ITEM *name##_adb(void) \\\n        { \\\n        static const ASN1_ADB internal_adb = \\\n                {\\\n                flags,\\\n                offsetof(name, field),\\\n                adb_cb,\\\n                name##_adbtbl,\\\n                sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\\\n                def,\\\n                none\\\n                }; \\\n                return (const ASN1_ITEM *) &internal_adb; \\\n        } \\\n        void dummy_function(void)\n\n# endif\n\n# define ADB_ENTRY(val, template) {val, template}\n\n# define ASN1_ADB_TEMPLATE(name) \\\n        static const ASN1_TEMPLATE name##_tt\n\n/*\n * This is the ASN1 template structure that defines a wrapper round the\n * actual type. It determines the actual position of the field in the value\n * structure, various flags such as OPTIONAL and the field name.\n */\n\nstruct ASN1_TEMPLATE_st {\n    unsigned long flags;        /* Various flags */\n    long tag;                   /* tag, not used if no tagging */\n    unsigned long offset;       /* Offset of this field in structure */\n    const char *field_name;     /* Field name */\n    ASN1_ITEM_EXP *item;        /* Relevant ASN1_ITEM or ASN1_ADB */\n};\n\n/* Macro to extract ASN1_ITEM and ASN1_ADB pointer from ASN1_TEMPLATE */\n\n# define ASN1_TEMPLATE_item(t) (t->item_ptr)\n# define ASN1_TEMPLATE_adb(t) (t->item_ptr)\n\ntypedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE;\ntypedef struct ASN1_ADB_st ASN1_ADB;\n\nstruct ASN1_ADB_st {\n    unsigned long flags;        /* Various flags */\n    unsigned long offset;       /* Offset of selector field */\n    int (*adb_cb)(long *psel);  /* Application callback */\n    const ASN1_ADB_TABLE *tbl;  /* Table of possible types */\n    long tblcount;              /* Number of entries in tbl */\n    const ASN1_TEMPLATE *default_tt; /* Type to use if no match */\n    const ASN1_TEMPLATE *null_tt; /* Type to use if selector is NULL */\n};\n\nstruct ASN1_ADB_TABLE_st {\n    long value;                 /* NID for an object or value for an int */\n    const ASN1_TEMPLATE tt;     /* item for this value */\n};\n\n/* template flags */\n\n/* Field is optional */\n# define ASN1_TFLG_OPTIONAL      (0x1)\n\n/* Field is a SET OF */\n# define ASN1_TFLG_SET_OF        (0x1 << 1)\n\n/* Field is a SEQUENCE OF */\n# define ASN1_TFLG_SEQUENCE_OF   (0x2 << 1)\n\n/*\n * Special case: this refers to a SET OF that will be sorted into DER order\n * when encoded *and* the corresponding STACK will be modified to match the\n * new order.\n */\n# define ASN1_TFLG_SET_ORDER     (0x3 << 1)\n\n/* Mask for SET OF or SEQUENCE OF */\n# define ASN1_TFLG_SK_MASK       (0x3 << 1)\n\n/*\n * These flags mean the tag should be taken from the tag field. If EXPLICIT\n * then the underlying type is used for the inner tag.\n */\n\n/* IMPLICIT tagging */\n# define ASN1_TFLG_IMPTAG        (0x1 << 3)\n\n/* EXPLICIT tagging, inner tag from underlying type */\n# define ASN1_TFLG_EXPTAG        (0x2 << 3)\n\n# define ASN1_TFLG_TAG_MASK      (0x3 << 3)\n\n/* context specific IMPLICIT */\n# define ASN1_TFLG_IMPLICIT      (ASN1_TFLG_IMPTAG|ASN1_TFLG_CONTEXT)\n\n/* context specific EXPLICIT */\n# define ASN1_TFLG_EXPLICIT      (ASN1_TFLG_EXPTAG|ASN1_TFLG_CONTEXT)\n\n/*\n * If tagging is in force these determine the type of tag to use. Otherwise\n * the tag is determined by the underlying type. These values reflect the\n * actual octet format.\n */\n\n/* Universal tag */\n# define ASN1_TFLG_UNIVERSAL     (0x0<<6)\n/* Application tag */\n# define ASN1_TFLG_APPLICATION   (0x1<<6)\n/* Context specific tag */\n# define ASN1_TFLG_CONTEXT       (0x2<<6)\n/* Private tag */\n# define ASN1_TFLG_PRIVATE       (0x3<<6)\n\n# define ASN1_TFLG_TAG_CLASS     (0x3<<6)\n\n/*\n * These are for ANY DEFINED BY type. In this case the 'item' field points to\n * an ASN1_ADB structure which contains a table of values to decode the\n * relevant type\n */\n\n# define ASN1_TFLG_ADB_MASK      (0x3<<8)\n\n# define ASN1_TFLG_ADB_OID       (0x1<<8)\n\n# define ASN1_TFLG_ADB_INT       (0x1<<9)\n\n/*\n * This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes\n * indefinite length constructed encoding to be used if required.\n */\n\n# define ASN1_TFLG_NDEF          (0x1<<11)\n\n/* Field is embedded and not a pointer */\n# define ASN1_TFLG_EMBED         (0x1 << 12)\n\n/* This is the actual ASN1 item itself */\n\nstruct ASN1_ITEM_st {\n    char itype;                 /* The item type, primitive, SEQUENCE, CHOICE\n                                 * or extern */\n    long utype;                 /* underlying type */\n    const ASN1_TEMPLATE *templates; /* If SEQUENCE or CHOICE this contains\n                                     * the contents */\n    long tcount;                /* Number of templates if SEQUENCE or CHOICE */\n    const void *funcs;          /* functions that handle this type */\n    long size;                  /* Structure size (usually) */\n    const char *sname;          /* Structure name */\n};\n\n/*-\n * These are values for the itype field and\n * determine how the type is interpreted.\n *\n * For PRIMITIVE types the underlying type\n * determines the behaviour if items is NULL.\n *\n * Otherwise templates must contain a single\n * template and the type is treated in the\n * same way as the type specified in the template.\n *\n * For SEQUENCE types the templates field points\n * to the members, the size field is the\n * structure size.\n *\n * For CHOICE types the templates field points\n * to each possible member (typically a union)\n * and the 'size' field is the offset of the\n * selector.\n *\n * The 'funcs' field is used for application\n * specific functions.\n *\n * The EXTERN type uses a new style d2i/i2d.\n * The new style should be used where possible\n * because it avoids things like the d2i IMPLICIT\n * hack.\n *\n * MSTRING is a multiple string type, it is used\n * for a CHOICE of character strings where the\n * actual strings all occupy an ASN1_STRING\n * structure. In this case the 'utype' field\n * has a special meaning, it is used as a mask\n * of acceptable types using the B_ASN1 constants.\n *\n * NDEF_SEQUENCE is the same as SEQUENCE except\n * that it will use indefinite length constructed\n * encoding if requested.\n *\n */\n\n# define ASN1_ITYPE_PRIMITIVE            0x0\n\n# define ASN1_ITYPE_SEQUENCE             0x1\n\n# define ASN1_ITYPE_CHOICE               0x2\n\n# define ASN1_ITYPE_EXTERN               0x4\n\n# define ASN1_ITYPE_MSTRING              0x5\n\n# define ASN1_ITYPE_NDEF_SEQUENCE        0x6\n\n/*\n * Cache for ASN1 tag and length, so we don't keep re-reading it for things\n * like CHOICE\n */\n\nstruct ASN1_TLC_st {\n    char valid;                 /* Values below are valid */\n    int ret;                    /* return value */\n    long plen;                  /* length */\n    int ptag;                   /* class value */\n    int pclass;                 /* class value */\n    int hdrlen;                 /* header length */\n};\n\n/* Typedefs for ASN1 function pointers */\ntypedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,\n                        const ASN1_ITEM *it, int tag, int aclass, char opt,\n                        ASN1_TLC *ctx);\n\ntypedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out,\n                        const ASN1_ITEM *it, int tag, int aclass);\ntypedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);\ntypedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);\n\ntypedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,\n                               int indent, const char *fname,\n                               const ASN1_PCTX *pctx);\n\ntypedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont,\n                               int *putype, const ASN1_ITEM *it);\ntypedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont,\n                               int len, int utype, char *free_cont,\n                               const ASN1_ITEM *it);\ntypedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval,\n                                 const ASN1_ITEM *it, int indent,\n                                 const ASN1_PCTX *pctx);\n\ntypedef struct ASN1_EXTERN_FUNCS_st {\n    void *app_data;\n    ASN1_ex_new_func *asn1_ex_new;\n    ASN1_ex_free_func *asn1_ex_free;\n    ASN1_ex_free_func *asn1_ex_clear;\n    ASN1_ex_d2i *asn1_ex_d2i;\n    ASN1_ex_i2d *asn1_ex_i2d;\n    ASN1_ex_print_func *asn1_ex_print;\n} ASN1_EXTERN_FUNCS;\n\ntypedef struct ASN1_PRIMITIVE_FUNCS_st {\n    void *app_data;\n    unsigned long flags;\n    ASN1_ex_new_func *prim_new;\n    ASN1_ex_free_func *prim_free;\n    ASN1_ex_free_func *prim_clear;\n    ASN1_primitive_c2i *prim_c2i;\n    ASN1_primitive_i2c *prim_i2c;\n    ASN1_primitive_print *prim_print;\n} ASN1_PRIMITIVE_FUNCS;\n\n/*\n * This is the ASN1_AUX structure: it handles various miscellaneous\n * requirements. For example the use of reference counts and an informational\n * callback. The \"informational callback\" is called at various points during\n * the ASN1 encoding and decoding. It can be used to provide minor\n * customisation of the structures used. This is most useful where the\n * supplied routines *almost* do the right thing but need some extra help at\n * a few points. If the callback returns zero then it is assumed a fatal\n * error has occurred and the main operation should be abandoned. If major\n * changes in the default behaviour are required then an external type is\n * more appropriate.\n */\n\ntypedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it,\n                        void *exarg);\n\ntypedef struct ASN1_AUX_st {\n    void *app_data;\n    int flags;\n    int ref_offset;             /* Offset of reference value */\n    int ref_lock;               /* Lock type to use */\n    ASN1_aux_cb *asn1_cb;\n    int enc_offset;             /* Offset of ASN1_ENCODING structure */\n} ASN1_AUX;\n\n/* For print related callbacks exarg points to this structure */\ntypedef struct ASN1_PRINT_ARG_st {\n    BIO *out;\n    int indent;\n    const ASN1_PCTX *pctx;\n} ASN1_PRINT_ARG;\n\n/* For streaming related callbacks exarg points to this structure */\ntypedef struct ASN1_STREAM_ARG_st {\n    /* BIO to stream through */\n    BIO *out;\n    /* BIO with filters appended */\n    BIO *ndef_bio;\n    /* Streaming I/O boundary */\n    unsigned char **boundary;\n} ASN1_STREAM_ARG;\n\n/* Flags in ASN1_AUX */\n\n/* Use a reference count */\n# define ASN1_AFLG_REFCOUNT      1\n/* Save the encoding of structure (useful for signatures) */\n# define ASN1_AFLG_ENCODING      2\n/* The Sequence length is invalid */\n# define ASN1_AFLG_BROKEN        4\n\n/* operation values for asn1_cb */\n\n# define ASN1_OP_NEW_PRE         0\n# define ASN1_OP_NEW_POST        1\n# define ASN1_OP_FREE_PRE        2\n# define ASN1_OP_FREE_POST       3\n# define ASN1_OP_D2I_PRE         4\n# define ASN1_OP_D2I_POST        5\n# define ASN1_OP_I2D_PRE         6\n# define ASN1_OP_I2D_POST        7\n# define ASN1_OP_PRINT_PRE       8\n# define ASN1_OP_PRINT_POST      9\n# define ASN1_OP_STREAM_PRE      10\n# define ASN1_OP_STREAM_POST     11\n# define ASN1_OP_DETACHED_PRE    12\n# define ASN1_OP_DETACHED_POST   13\n\n/* Macro to implement a primitive type */\n# define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0)\n# define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \\\n                                ASN1_ITEM_start(itname) \\\n                                        ASN1_ITYPE_PRIMITIVE, V_##vname, NULL, 0, NULL, ex, #itname \\\n                                ASN1_ITEM_end(itname)\n\n/* Macro to implement a multi string type */\n# define IMPLEMENT_ASN1_MSTRING(itname, mask) \\\n                                ASN1_ITEM_start(itname) \\\n                                        ASN1_ITYPE_MSTRING, mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname \\\n                                ASN1_ITEM_end(itname)\n\n# define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \\\n        ASN1_ITEM_start(sname) \\\n                ASN1_ITYPE_EXTERN, \\\n                tag, \\\n                NULL, \\\n                0, \\\n                &fptrs, \\\n                0, \\\n                #sname \\\n        ASN1_ITEM_end(sname)\n\n/* Macro to implement standard functions in terms of ASN1_ITEM structures */\n\n# define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \\\n                        IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname)\n\n# define IMPLEMENT_STATIC_ASN1_ALLOC_FUNCTIONS(stname) \\\n                IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(static, stname, stname, stname)\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \\\n                IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(pre, stname, itname, fname) \\\n        pre stname *fname##_new(void) \\\n        { \\\n                return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \\\n        } \\\n        pre void fname##_free(stname *a) \\\n        { \\\n                ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \\\n        }\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \\\n        stname *fname##_new(void) \\\n        { \\\n                return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \\\n        } \\\n        void fname##_free(stname *a) \\\n        { \\\n                ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \\\n        }\n\n# define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)\n\n# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \\\n        stname *d2i_##fname(stname **a, const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\\\n        } \\\n        int i2d_##fname(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\\\n        }\n\n# define IMPLEMENT_ASN1_NDEF_FUNCTION(stname) \\\n        int i2d_##stname##_NDEF(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname));\\\n        }\n\n# define IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(stname) \\\n        static stname *d2i_##stname(stname **a, \\\n                                   const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, \\\n                                               ASN1_ITEM_rptr(stname)); \\\n        } \\\n        static int i2d_##stname(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, \\\n                                     ASN1_ITEM_rptr(stname)); \\\n        }\n\n/*\n * This includes evil casts to remove const: they will go away when full ASN1\n * constification is done.\n */\n# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \\\n        stname *d2i_##fname(stname **a, const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\\\n        } \\\n        int i2d_##fname(const stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\\\n        }\n\n# define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \\\n        stname * stname##_dup(stname *x) \\\n        { \\\n        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \\\n        }\n\n# define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \\\n        IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \\\n        int fname##_print_ctx(BIO *out, stname *x, int indent, \\\n                                                const ASN1_PCTX *pctx) \\\n        { \\\n                return ASN1_item_print(out, (ASN1_VALUE *)x, indent, \\\n                        ASN1_ITEM_rptr(itname), pctx); \\\n        }\n\n# define IMPLEMENT_ASN1_FUNCTIONS_const(name) \\\n                IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_const_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)\n\n/* external definitions for primitive types */\n\nDECLARE_ASN1_ITEM(ASN1_BOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_TBOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_FBOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_SEQUENCE)\nDECLARE_ASN1_ITEM(CBIGNUM)\nDECLARE_ASN1_ITEM(BIGNUM)\nDECLARE_ASN1_ITEM(INT32)\nDECLARE_ASN1_ITEM(ZINT32)\nDECLARE_ASN1_ITEM(UINT32)\nDECLARE_ASN1_ITEM(ZUINT32)\nDECLARE_ASN1_ITEM(INT64)\nDECLARE_ASN1_ITEM(ZINT64)\nDECLARE_ASN1_ITEM(UINT64)\nDECLARE_ASN1_ITEM(ZUINT64)\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n/*\n * LONG and ZLONG are strongly discouraged for use as stored data, as the\n * underlying C type (long) differs in size depending on the architecture.\n * They are designed with 32-bit longs in mind.\n */\nDECLARE_ASN1_ITEM(LONG)\nDECLARE_ASN1_ITEM(ZLONG)\n# endif\n\nDEFINE_STACK_OF(ASN1_VALUE)\n\n/* Functions used internally by the ASN1 code */\n\nint ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);\nvoid ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);\n\nint ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,\n                     const ASN1_ITEM *it, int tag, int aclass, char opt,\n                     ASN1_TLC *ctx);\n\nint ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,\n                     const ASN1_ITEM *it, int tag, int aclass);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/async.h",
    "content": "/*\n * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <stdlib.h>\n\n#ifndef HEADER_ASYNC_H\n# define HEADER_ASYNC_H\n\n#if defined(_WIN32)\n# if defined(BASETYPES) || defined(_WINDEF_H)\n/* application has to include <windows.h> to use this */\n#define OSSL_ASYNC_FD       HANDLE\n#define OSSL_BAD_ASYNC_FD   INVALID_HANDLE_VALUE\n# endif\n#else\n#define OSSL_ASYNC_FD       int\n#define OSSL_BAD_ASYNC_FD   -1\n#endif\n# include <openssl/asyncerr.h>\n\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct async_job_st ASYNC_JOB;\ntypedef struct async_wait_ctx_st ASYNC_WAIT_CTX;\n\n#define ASYNC_ERR      0\n#define ASYNC_NO_JOBS  1\n#define ASYNC_PAUSE    2\n#define ASYNC_FINISH   3\n\nint ASYNC_init_thread(size_t max_size, size_t init_size);\nvoid ASYNC_cleanup_thread(void);\n\n#ifdef OSSL_ASYNC_FD\nASYNC_WAIT_CTX *ASYNC_WAIT_CTX_new(void);\nvoid ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx);\nint ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,\n                               OSSL_ASYNC_FD fd,\n                               void *custom_data,\n                               void (*cleanup)(ASYNC_WAIT_CTX *, const void *,\n                                               OSSL_ASYNC_FD, void *));\nint ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,\n                        OSSL_ASYNC_FD *fd, void **custom_data);\nint ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,\n                               size_t *numfds);\nint ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd,\n                                   size_t *numaddfds, OSSL_ASYNC_FD *delfd,\n                                   size_t *numdelfds);\nint ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key);\n#endif\n\nint ASYNC_is_capable(void);\n\nint ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,\n                    int (*func)(void *), void *args, size_t size);\nint ASYNC_pause_job(void);\n\nASYNC_JOB *ASYNC_get_current_job(void);\nASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job);\nvoid ASYNC_block_pause(void);\nvoid ASYNC_unblock_pause(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/asyncerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASYNCERR_H\n# define HEADER_ASYNCERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_ASYNC_strings(void);\n\n/*\n * ASYNC function codes.\n */\n# define ASYNC_F_ASYNC_CTX_NEW                            100\n# define ASYNC_F_ASYNC_INIT_THREAD                        101\n# define ASYNC_F_ASYNC_JOB_NEW                            102\n# define ASYNC_F_ASYNC_PAUSE_JOB                          103\n# define ASYNC_F_ASYNC_START_FUNC                         104\n# define ASYNC_F_ASYNC_START_JOB                          105\n# define ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD               106\n\n/*\n * ASYNC reason codes.\n */\n# define ASYNC_R_FAILED_TO_SET_POOL                       101\n# define ASYNC_R_FAILED_TO_SWAP_CONTEXT                   102\n# define ASYNC_R_INIT_FAILED                              105\n# define ASYNC_R_INVALID_POOL_SIZE                        103\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/bio.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BIO_H\n# define HEADER_BIO_H\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n# include <stdarg.h>\n\n# include <openssl/crypto.h>\n# include <openssl/bioerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* There are the classes of BIOs */\n# define BIO_TYPE_DESCRIPTOR     0x0100 /* socket, fd, connect or accept */\n# define BIO_TYPE_FILTER         0x0200\n# define BIO_TYPE_SOURCE_SINK    0x0400\n\n/* These are the 'types' of BIOs */\n# define BIO_TYPE_NONE             0\n# define BIO_TYPE_MEM            ( 1|BIO_TYPE_SOURCE_SINK)\n# define BIO_TYPE_FILE           ( 2|BIO_TYPE_SOURCE_SINK)\n\n# define BIO_TYPE_FD             ( 4|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_SOCKET         ( 5|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_NULL           ( 6|BIO_TYPE_SOURCE_SINK)\n# define BIO_TYPE_SSL            ( 7|BIO_TYPE_FILTER)\n# define BIO_TYPE_MD             ( 8|BIO_TYPE_FILTER)\n# define BIO_TYPE_BUFFER         ( 9|BIO_TYPE_FILTER)\n# define BIO_TYPE_CIPHER         (10|BIO_TYPE_FILTER)\n# define BIO_TYPE_BASE64         (11|BIO_TYPE_FILTER)\n# define BIO_TYPE_CONNECT        (12|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_ACCEPT         (13|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n\n# define BIO_TYPE_NBIO_TEST      (16|BIO_TYPE_FILTER)/* server proxy BIO */\n# define BIO_TYPE_NULL_FILTER    (17|BIO_TYPE_FILTER)\n# define BIO_TYPE_BIO            (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */\n# define BIO_TYPE_LINEBUFFER     (20|BIO_TYPE_FILTER)\n# define BIO_TYPE_DGRAM          (21|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_ASN1           (22|BIO_TYPE_FILTER)\n# define BIO_TYPE_COMP           (23|BIO_TYPE_FILTER)\n# ifndef OPENSSL_NO_SCTP\n#  define BIO_TYPE_DGRAM_SCTP    (24|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# endif\n\n#define BIO_TYPE_START           128\n\n/*\n * BIO_FILENAME_READ|BIO_CLOSE to open or close on free.\n * BIO_set_fp(in,stdin,BIO_NOCLOSE);\n */\n# define BIO_NOCLOSE             0x00\n# define BIO_CLOSE               0x01\n\n/*\n * These are used in the following macros and are passed to BIO_ctrl()\n */\n# define BIO_CTRL_RESET          1/* opt - rewind/zero etc */\n# define BIO_CTRL_EOF            2/* opt - are we at the eof */\n# define BIO_CTRL_INFO           3/* opt - extra tit-bits */\n# define BIO_CTRL_SET            4/* man - set the 'IO' type */\n# define BIO_CTRL_GET            5/* man - get the 'IO' type */\n# define BIO_CTRL_PUSH           6/* opt - internal, used to signify change */\n# define BIO_CTRL_POP            7/* opt - internal, used to signify change */\n# define BIO_CTRL_GET_CLOSE      8/* man - set the 'close' on free */\n# define BIO_CTRL_SET_CLOSE      9/* man - set the 'close' on free */\n# define BIO_CTRL_PENDING        10/* opt - is their more data buffered */\n# define BIO_CTRL_FLUSH          11/* opt - 'flush' buffered output */\n# define BIO_CTRL_DUP            12/* man - extra stuff for 'duped' BIO */\n# define BIO_CTRL_WPENDING       13/* opt - number of bytes still to write */\n# define BIO_CTRL_SET_CALLBACK   14/* opt - set callback function */\n# define BIO_CTRL_GET_CALLBACK   15/* opt - set callback function */\n\n# define BIO_CTRL_PEEK           29/* BIO_f_buffer special */\n# define BIO_CTRL_SET_FILENAME   30/* BIO_s_file special */\n\n/* dgram BIO stuff */\n# define BIO_CTRL_DGRAM_CONNECT       31/* BIO dgram special */\n# define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected\n                                         * socket to be passed in */\n# define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33/* setsockopt, essentially */\n# define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34/* getsockopt, essentially */\n# define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35/* setsockopt, essentially */\n# define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36/* getsockopt, essentially */\n\n# define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37/* flag whether the last */\n# define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38/* I/O operation tiemd out */\n\n/* #ifdef IP_MTU_DISCOVER */\n# define BIO_CTRL_DGRAM_MTU_DISCOVER       39/* set DF bit on egress packets */\n/* #endif */\n\n# define BIO_CTRL_DGRAM_QUERY_MTU          40/* as kernel for current MTU */\n# define BIO_CTRL_DGRAM_GET_FALLBACK_MTU   47\n# define BIO_CTRL_DGRAM_GET_MTU            41/* get cached value for MTU */\n# define BIO_CTRL_DGRAM_SET_MTU            42/* set cached value for MTU.\n                                              * want to use this if asking\n                                              * the kernel fails */\n\n# define BIO_CTRL_DGRAM_MTU_EXCEEDED       43/* check whether the MTU was\n                                              * exceed in the previous write\n                                              * operation */\n\n# define BIO_CTRL_DGRAM_GET_PEER           46\n# define BIO_CTRL_DGRAM_SET_PEER           44/* Destination for the data */\n\n# define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT   45/* Next DTLS handshake timeout\n                                              * to adjust socket timeouts */\n# define BIO_CTRL_DGRAM_SET_DONT_FRAG      48\n\n# define BIO_CTRL_DGRAM_GET_MTU_OVERHEAD   49\n\n/* Deliberately outside of OPENSSL_NO_SCTP - used in bss_dgram.c */\n#  define BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE    50\n# ifndef OPENSSL_NO_SCTP\n/* SCTP stuff */\n#  define BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY                51\n#  define BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY               52\n#  define BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD               53\n#  define BIO_CTRL_DGRAM_SCTP_GET_SNDINFO         60\n#  define BIO_CTRL_DGRAM_SCTP_SET_SNDINFO         61\n#  define BIO_CTRL_DGRAM_SCTP_GET_RCVINFO         62\n#  define BIO_CTRL_DGRAM_SCTP_SET_RCVINFO         63\n#  define BIO_CTRL_DGRAM_SCTP_GET_PRINFO                  64\n#  define BIO_CTRL_DGRAM_SCTP_SET_PRINFO                  65\n#  define BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN               70\n# endif\n\n# define BIO_CTRL_DGRAM_SET_PEEK_MODE      71\n\n/* modifiers */\n# define BIO_FP_READ             0x02\n# define BIO_FP_WRITE            0x04\n# define BIO_FP_APPEND           0x08\n# define BIO_FP_TEXT             0x10\n\n# define BIO_FLAGS_READ          0x01\n# define BIO_FLAGS_WRITE         0x02\n# define BIO_FLAGS_IO_SPECIAL    0x04\n# define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)\n# define BIO_FLAGS_SHOULD_RETRY  0x08\n# ifndef BIO_FLAGS_UPLINK\n/*\n * \"UPLINK\" flag denotes file descriptors provided by application. It\n * defaults to 0, as most platforms don't require UPLINK interface.\n */\n#  define BIO_FLAGS_UPLINK        0\n# endif\n\n# define BIO_FLAGS_BASE64_NO_NL  0x100\n\n/*\n * This is used with memory BIOs:\n * BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way;\n * BIO_FLAGS_NONCLEAR_RST means we shouldn't clear data on reset.\n */\n# define BIO_FLAGS_MEM_RDONLY    0x200\n# define BIO_FLAGS_NONCLEAR_RST  0x400\n# define BIO_FLAGS_IN_EOF        0x800\n\ntypedef union bio_addr_st BIO_ADDR;\ntypedef struct bio_addrinfo_st BIO_ADDRINFO;\n\nint BIO_get_new_index(void);\nvoid BIO_set_flags(BIO *b, int flags);\nint BIO_test_flags(const BIO *b, int flags);\nvoid BIO_clear_flags(BIO *b, int flags);\n\n# define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))\n# define BIO_set_retry_special(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_set_retry_read(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_set_retry_write(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))\n\n/* These are normally used internally in BIOs */\n# define BIO_clear_retry_flags(b) \\\n                BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_get_retry_flags(b) \\\n                BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))\n\n/* These should be used by the application to tell why we should retry */\n# define BIO_should_read(a)              BIO_test_flags(a, BIO_FLAGS_READ)\n# define BIO_should_write(a)             BIO_test_flags(a, BIO_FLAGS_WRITE)\n# define BIO_should_io_special(a)        BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)\n# define BIO_retry_type(a)               BIO_test_flags(a, BIO_FLAGS_RWS)\n# define BIO_should_retry(a)             BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)\n\n/*\n * The next three are used in conjunction with the BIO_should_io_special()\n * condition.  After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int\n * *reason); will walk the BIO stack and return the 'reason' for the special\n * and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return\n * the code.\n */\n/*\n * Returned from the SSL bio when the certificate retrieval code had an error\n */\n# define BIO_RR_SSL_X509_LOOKUP          0x01\n/* Returned from the connect BIO when a connect would have blocked */\n# define BIO_RR_CONNECT                  0x02\n/* Returned from the accept BIO when an accept would have blocked */\n# define BIO_RR_ACCEPT                   0x03\n\n/* These are passed by the BIO callback */\n# define BIO_CB_FREE     0x01\n# define BIO_CB_READ     0x02\n# define BIO_CB_WRITE    0x03\n# define BIO_CB_PUTS     0x04\n# define BIO_CB_GETS     0x05\n# define BIO_CB_CTRL     0x06\n\n/*\n * The callback is called before and after the underling operation, The\n * BIO_CB_RETURN flag indicates if it is after the call\n */\n# define BIO_CB_RETURN   0x80\n# define BIO_CB_return(a) ((a)|BIO_CB_RETURN)\n# define BIO_cb_pre(a)   (!((a)&BIO_CB_RETURN))\n# define BIO_cb_post(a)  ((a)&BIO_CB_RETURN)\n\ntypedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,\n                                long argl, long ret);\ntypedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,\n                                   size_t len, int argi,\n                                   long argl, int ret, size_t *processed);\nBIO_callback_fn BIO_get_callback(const BIO *b);\nvoid BIO_set_callback(BIO *b, BIO_callback_fn callback);\n\nBIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);\nvoid BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);\n\nchar *BIO_get_callback_arg(const BIO *b);\nvoid BIO_set_callback_arg(BIO *b, char *arg);\n\ntypedef struct bio_method_st BIO_METHOD;\n\nconst char *BIO_method_name(const BIO *b);\nint BIO_method_type(const BIO *b);\n\ntypedef int BIO_info_cb(BIO *, int, int);\ntypedef BIO_info_cb bio_info_cb;  /* backward compatibility */\n\nDEFINE_STACK_OF(BIO)\n\n/* Prefix and suffix callback in ASN1 BIO */\ntypedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,\n                          void *parg);\n\n# ifndef OPENSSL_NO_SCTP\n/* SCTP parameter structs */\nstruct bio_dgram_sctp_sndinfo {\n    uint16_t snd_sid;\n    uint16_t snd_flags;\n    uint32_t snd_ppid;\n    uint32_t snd_context;\n};\n\nstruct bio_dgram_sctp_rcvinfo {\n    uint16_t rcv_sid;\n    uint16_t rcv_ssn;\n    uint16_t rcv_flags;\n    uint32_t rcv_ppid;\n    uint32_t rcv_tsn;\n    uint32_t rcv_cumtsn;\n    uint32_t rcv_context;\n};\n\nstruct bio_dgram_sctp_prinfo {\n    uint16_t pr_policy;\n    uint32_t pr_value;\n};\n# endif\n\n/*\n * #define BIO_CONN_get_param_hostname BIO_ctrl\n */\n\n# define BIO_C_SET_CONNECT                       100\n# define BIO_C_DO_STATE_MACHINE                  101\n# define BIO_C_SET_NBIO                          102\n/* # define BIO_C_SET_PROXY_PARAM                   103 */\n# define BIO_C_SET_FD                            104\n# define BIO_C_GET_FD                            105\n# define BIO_C_SET_FILE_PTR                      106\n# define BIO_C_GET_FILE_PTR                      107\n# define BIO_C_SET_FILENAME                      108\n# define BIO_C_SET_SSL                           109\n# define BIO_C_GET_SSL                           110\n# define BIO_C_SET_MD                            111\n# define BIO_C_GET_MD                            112\n# define BIO_C_GET_CIPHER_STATUS                 113\n# define BIO_C_SET_BUF_MEM                       114\n# define BIO_C_GET_BUF_MEM_PTR                   115\n# define BIO_C_GET_BUFF_NUM_LINES                116\n# define BIO_C_SET_BUFF_SIZE                     117\n# define BIO_C_SET_ACCEPT                        118\n# define BIO_C_SSL_MODE                          119\n# define BIO_C_GET_MD_CTX                        120\n/* # define BIO_C_GET_PROXY_PARAM                   121 */\n# define BIO_C_SET_BUFF_READ_DATA                122/* data to read first */\n# define BIO_C_GET_CONNECT                       123\n# define BIO_C_GET_ACCEPT                        124\n# define BIO_C_SET_SSL_RENEGOTIATE_BYTES         125\n# define BIO_C_GET_SSL_NUM_RENEGOTIATES          126\n# define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT       127\n# define BIO_C_FILE_SEEK                         128\n# define BIO_C_GET_CIPHER_CTX                    129\n# define BIO_C_SET_BUF_MEM_EOF_RETURN            130/* return end of input\n                                                     * value */\n# define BIO_C_SET_BIND_MODE                     131\n# define BIO_C_GET_BIND_MODE                     132\n# define BIO_C_FILE_TELL                         133\n# define BIO_C_GET_SOCKS                         134\n# define BIO_C_SET_SOCKS                         135\n\n# define BIO_C_SET_WRITE_BUF_SIZE                136/* for BIO_s_bio */\n# define BIO_C_GET_WRITE_BUF_SIZE                137\n# define BIO_C_MAKE_BIO_PAIR                     138\n# define BIO_C_DESTROY_BIO_PAIR                  139\n# define BIO_C_GET_WRITE_GUARANTEE               140\n# define BIO_C_GET_READ_REQUEST                  141\n# define BIO_C_SHUTDOWN_WR                       142\n# define BIO_C_NREAD0                            143\n# define BIO_C_NREAD                             144\n# define BIO_C_NWRITE0                           145\n# define BIO_C_NWRITE                            146\n# define BIO_C_RESET_READ_REQUEST                147\n# define BIO_C_SET_MD_CTX                        148\n\n# define BIO_C_SET_PREFIX                        149\n# define BIO_C_GET_PREFIX                        150\n# define BIO_C_SET_SUFFIX                        151\n# define BIO_C_GET_SUFFIX                        152\n\n# define BIO_C_SET_EX_ARG                        153\n# define BIO_C_GET_EX_ARG                        154\n\n# define BIO_C_SET_CONNECT_MODE                  155\n\n# define BIO_set_app_data(s,arg)         BIO_set_ex_data(s,0,arg)\n# define BIO_get_app_data(s)             BIO_get_ex_data(s,0)\n\n# define BIO_set_nbio(b,n)             BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)\n\n# ifndef OPENSSL_NO_SOCK\n/* IP families we support, for BIO_s_connect() and BIO_s_accept() */\n/* Note: the underlying operating system may not support some of them */\n#  define BIO_FAMILY_IPV4                         4\n#  define BIO_FAMILY_IPV6                         6\n#  define BIO_FAMILY_IPANY                        256\n\n/* BIO_s_connect() */\n#  define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0, \\\n                                                 (char *)(name))\n#  define BIO_set_conn_port(b,port)     BIO_ctrl(b,BIO_C_SET_CONNECT,1, \\\n                                                 (char *)(port))\n#  define BIO_set_conn_address(b,addr)  BIO_ctrl(b,BIO_C_SET_CONNECT,2, \\\n                                                 (char *)(addr))\n#  define BIO_set_conn_ip_family(b,f)   BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)\n#  define BIO_get_conn_hostname(b)      ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))\n#  define BIO_get_conn_port(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))\n#  define BIO_get_conn_address(b)       ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))\n#  define BIO_get_conn_ip_family(b)     BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)\n#  define BIO_set_conn_mode(b,n)        BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)\n\n/* BIO_s_accept() */\n#  define BIO_set_accept_name(b,name)   BIO_ctrl(b,BIO_C_SET_ACCEPT,0, \\\n                                                 (char *)(name))\n#  define BIO_set_accept_port(b,port)   BIO_ctrl(b,BIO_C_SET_ACCEPT,1, \\\n                                                 (char *)(port))\n#  define BIO_get_accept_name(b)        ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))\n#  define BIO_get_accept_port(b)        ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))\n#  define BIO_get_peer_name(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))\n#  define BIO_get_peer_port(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))\n/* #define BIO_set_nbio(b,n)    BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */\n#  define BIO_set_nbio_accept(b,n)      BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(void *)\"a\":NULL)\n#  define BIO_set_accept_bios(b,bio)    BIO_ctrl(b,BIO_C_SET_ACCEPT,3, \\\n                                                 (char *)(bio))\n#  define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)\n#  define BIO_get_accept_ip_family(b)   BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)\n\n/* Aliases kept for backward compatibility */\n#  define BIO_BIND_NORMAL                 0\n#  define BIO_BIND_REUSEADDR              BIO_SOCK_REUSEADDR\n#  define BIO_BIND_REUSEADDR_IF_UNUSED    BIO_SOCK_REUSEADDR\n#  define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)\n#  define BIO_get_bind_mode(b)    BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)\n\n/* BIO_s_accept() and BIO_s_connect() */\n#  define BIO_do_connect(b)       BIO_do_handshake(b)\n#  define BIO_do_accept(b)        BIO_do_handshake(b)\n# endif /* OPENSSL_NO_SOCK */\n\n# define BIO_do_handshake(b)     BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)\n\n/* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() */\n# define BIO_set_fd(b,fd,c)      BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)\n# define BIO_get_fd(b,c)         BIO_ctrl(b,BIO_C_GET_FD,0,(char *)(c))\n\n/* BIO_s_file() */\n# define BIO_set_fp(b,fp,c)      BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)(fp))\n# define BIO_get_fp(b,fpp)       BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)(fpp))\n\n/* BIO_s_fd() and BIO_s_file() */\n# define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)\n# define BIO_tell(b)     (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)\n\n/*\n * name is cast to lose const, but might be better to route through a\n * function so we can do it safely\n */\n# ifdef CONST_STRICT\n/*\n * If you are wondering why this isn't defined, its because CONST_STRICT is\n * purely a compile-time kludge to allow const to be checked.\n */\nint BIO_read_filename(BIO *b, const char *name);\n# else\n#  define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_READ,(char *)(name))\n# endif\n# define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_WRITE,name)\n# define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_APPEND,name)\n# define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)\n\n/*\n * WARNING WARNING, this ups the reference count on the read bio of the SSL\n * structure.  This is because the ssl read BIO is now pointed to by the\n * next_bio field in the bio.  So when you free the BIO, make sure you are\n * doing a BIO_free_all() to catch the underlying BIO.\n */\n# define BIO_set_ssl(b,ssl,c)    BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)(ssl))\n# define BIO_get_ssl(b,sslp)     BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)(sslp))\n# define BIO_set_ssl_mode(b,client)      BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)\n# define BIO_set_ssl_renegotiate_bytes(b,num) \\\n        BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)\n# define BIO_get_num_renegotiates(b) \\\n        BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)\n# define BIO_set_ssl_renegotiate_timeout(b,seconds) \\\n        BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)\n\n/* defined in evp.h */\n/* #define BIO_set_md(b,md)     BIO_ctrl(b,BIO_C_SET_MD,1,(char *)(md)) */\n\n# define BIO_get_mem_data(b,pp)  BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)(pp))\n# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)(bm))\n# define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0, \\\n                                          (char *)(pp))\n# define BIO_set_mem_eof_return(b,v) \\\n                                BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)\n\n/* For the BIO_f_buffer() type */\n# define BIO_get_buffer_num_lines(b)     BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)\n# define BIO_set_buffer_size(b,size)     BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)\n# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)\n# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)\n# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)\n\n/* Don't use the next one unless you know what you are doing :-) */\n# define BIO_dup_state(b,ret)    BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))\n\n# define BIO_reset(b)            (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)\n# define BIO_eof(b)              (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)\n# define BIO_set_close(b,c)      (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)\n# define BIO_get_close(b)        (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)\n# define BIO_pending(b)          (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)\n# define BIO_wpending(b)         (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)\n/* ...pending macros have inappropriate return type */\nsize_t BIO_ctrl_pending(BIO *b);\nsize_t BIO_ctrl_wpending(BIO *b);\n# define BIO_flush(b)            (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)\n# define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \\\n                                                   cbp)\n# define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)\n\n/* For the BIO_f_buffer() type */\n# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)\n# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))\n\n/* For BIO_s_bio() */\n# define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)\n# define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)\n# define BIO_make_bio_pair(b1,b2)   (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)\n# define BIO_destroy_bio_pair(b)    (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)\n# define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)\n/* macros with inappropriate type -- but ...pending macros use int too: */\n# define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)\n# define BIO_get_read_request(b)    (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)\nsize_t BIO_ctrl_get_write_guarantee(BIO *b);\nsize_t BIO_ctrl_get_read_request(BIO *b);\nint BIO_ctrl_reset_read_request(BIO *b);\n\n/* ctrl macros for dgram */\n# define BIO_ctrl_dgram_connect(b,peer)  \\\n                     (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)(peer))\n# define BIO_ctrl_set_connected(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char *)(peer))\n# define BIO_dgram_recv_timedout(b) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)\n# define BIO_dgram_send_timedout(b) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)\n# define BIO_dgram_get_peer(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)(peer))\n# define BIO_dgram_set_peer(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)(peer))\n# define BIO_dgram_get_mtu_overhead(b) \\\n         (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, NULL)\n\n#define BIO_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef)\nint BIO_set_ex_data(BIO *bio, int idx, void *data);\nvoid *BIO_get_ex_data(BIO *bio, int idx);\nuint64_t BIO_number_read(BIO *bio);\nuint64_t BIO_number_written(BIO *bio);\n\n/* For BIO_f_asn1() */\nint BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix,\n                        asn1_ps_func *prefix_free);\nint BIO_asn1_get_prefix(BIO *b, asn1_ps_func **pprefix,\n                        asn1_ps_func **pprefix_free);\nint BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix,\n                        asn1_ps_func *suffix_free);\nint BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,\n                        asn1_ps_func **psuffix_free);\n\nconst BIO_METHOD *BIO_s_file(void);\nBIO *BIO_new_file(const char *filename, const char *mode);\n# ifndef OPENSSL_NO_STDIO\nBIO *BIO_new_fp(FILE *stream, int close_flag);\n# endif\nBIO *BIO_new(const BIO_METHOD *type);\nint BIO_free(BIO *a);\nvoid BIO_set_data(BIO *a, void *ptr);\nvoid *BIO_get_data(BIO *a);\nvoid BIO_set_init(BIO *a, int init);\nint BIO_get_init(BIO *a);\nvoid BIO_set_shutdown(BIO *a, int shut);\nint BIO_get_shutdown(BIO *a);\nvoid BIO_vfree(BIO *a);\nint BIO_up_ref(BIO *a);\nint BIO_read(BIO *b, void *data, int dlen);\nint BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);\nint BIO_gets(BIO *bp, char *buf, int size);\nint BIO_write(BIO *b, const void *data, int dlen);\nint BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written);\nint BIO_puts(BIO *bp, const char *buf);\nint BIO_indent(BIO *b, int indent, int max);\nlong BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);\nlong BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);\nvoid *BIO_ptr_ctrl(BIO *bp, int cmd, long larg);\nlong BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg);\nBIO *BIO_push(BIO *b, BIO *append);\nBIO *BIO_pop(BIO *b);\nvoid BIO_free_all(BIO *a);\nBIO *BIO_find_type(BIO *b, int bio_type);\nBIO *BIO_next(BIO *b);\nvoid BIO_set_next(BIO *b, BIO *next);\nBIO *BIO_get_retry_BIO(BIO *bio, int *reason);\nint BIO_get_retry_reason(BIO *bio);\nvoid BIO_set_retry_reason(BIO *bio, int reason);\nBIO *BIO_dup_chain(BIO *in);\n\nint BIO_nread0(BIO *bio, char **buf);\nint BIO_nread(BIO *bio, char **buf, int num);\nint BIO_nwrite0(BIO *bio, char **buf);\nint BIO_nwrite(BIO *bio, char **buf, int num);\n\nlong BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi,\n                        long argl, long ret);\n\nconst BIO_METHOD *BIO_s_mem(void);\nconst BIO_METHOD *BIO_s_secmem(void);\nBIO *BIO_new_mem_buf(const void *buf, int len);\n# ifndef OPENSSL_NO_SOCK\nconst BIO_METHOD *BIO_s_socket(void);\nconst BIO_METHOD *BIO_s_connect(void);\nconst BIO_METHOD *BIO_s_accept(void);\n# endif\nconst BIO_METHOD *BIO_s_fd(void);\nconst BIO_METHOD *BIO_s_log(void);\nconst BIO_METHOD *BIO_s_bio(void);\nconst BIO_METHOD *BIO_s_null(void);\nconst BIO_METHOD *BIO_f_null(void);\nconst BIO_METHOD *BIO_f_buffer(void);\nconst BIO_METHOD *BIO_f_linebuffer(void);\nconst BIO_METHOD *BIO_f_nbio_test(void);\n# ifndef OPENSSL_NO_DGRAM\nconst BIO_METHOD *BIO_s_datagram(void);\nint BIO_dgram_non_fatal_error(int error);\nBIO *BIO_new_dgram(int fd, int close_flag);\n#  ifndef OPENSSL_NO_SCTP\nconst BIO_METHOD *BIO_s_datagram_sctp(void);\nBIO *BIO_new_dgram_sctp(int fd, int close_flag);\nint BIO_dgram_is_sctp(BIO *bio);\nint BIO_dgram_sctp_notification_cb(BIO *b,\n                                   void (*handle_notifications) (BIO *bio,\n                                                                 void *context,\n                                                                 void *buf),\n                                   void *context);\nint BIO_dgram_sctp_wait_for_dry(BIO *b);\nint BIO_dgram_sctp_msg_waiting(BIO *b);\n#  endif\n# endif\n\n# ifndef OPENSSL_NO_SOCK\nint BIO_sock_should_retry(int i);\nint BIO_sock_non_fatal_error(int error);\n# endif\n\nint BIO_fd_should_retry(int i);\nint BIO_fd_non_fatal_error(int error);\nint BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u),\n                void *u, const char *s, int len);\nint BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),\n                       void *u, const char *s, int len, int indent);\nint BIO_dump(BIO *b, const char *bytes, int len);\nint BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);\n# ifndef OPENSSL_NO_STDIO\nint BIO_dump_fp(FILE *fp, const char *s, int len);\nint BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent);\n# endif\nint BIO_hex_string(BIO *out, int indent, int width, unsigned char *data,\n                   int datalen);\n\n# ifndef OPENSSL_NO_SOCK\nBIO_ADDR *BIO_ADDR_new(void);\nint BIO_ADDR_rawmake(BIO_ADDR *ap, int family,\n                     const void *where, size_t wherelen, unsigned short port);\nvoid BIO_ADDR_free(BIO_ADDR *);\nvoid BIO_ADDR_clear(BIO_ADDR *ap);\nint BIO_ADDR_family(const BIO_ADDR *ap);\nint BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);\nunsigned short BIO_ADDR_rawport(const BIO_ADDR *ap);\nchar *BIO_ADDR_hostname_string(const BIO_ADDR *ap, int numeric);\nchar *BIO_ADDR_service_string(const BIO_ADDR *ap, int numeric);\nchar *BIO_ADDR_path_string(const BIO_ADDR *ap);\n\nconst BIO_ADDRINFO *BIO_ADDRINFO_next(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_family(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_socktype(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_protocol(const BIO_ADDRINFO *bai);\nconst BIO_ADDR *BIO_ADDRINFO_address(const BIO_ADDRINFO *bai);\nvoid BIO_ADDRINFO_free(BIO_ADDRINFO *bai);\n\nenum BIO_hostserv_priorities {\n    BIO_PARSE_PRIO_HOST, BIO_PARSE_PRIO_SERV\n};\nint BIO_parse_hostserv(const char *hostserv, char **host, char **service,\n                       enum BIO_hostserv_priorities hostserv_prio);\nenum BIO_lookup_type {\n    BIO_LOOKUP_CLIENT, BIO_LOOKUP_SERVER\n};\nint BIO_lookup(const char *host, const char *service,\n               enum BIO_lookup_type lookup_type,\n               int family, int socktype, BIO_ADDRINFO **res);\nint BIO_lookup_ex(const char *host, const char *service,\n                  int lookup_type, int family, int socktype, int protocol,\n                  BIO_ADDRINFO **res);\nint BIO_sock_error(int sock);\nint BIO_socket_ioctl(int fd, long type, void *arg);\nint BIO_socket_nbio(int fd, int mode);\nint BIO_sock_init(void);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define BIO_sock_cleanup() while(0) continue\n# endif\nint BIO_set_tcp_ndelay(int sock, int turn_on);\n\nDEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))\nDEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))\nDEPRECATEDIN_1_1_0(int BIO_get_host_ip(const char *str, unsigned char *ip))\nDEPRECATEDIN_1_1_0(int BIO_get_accept_socket(char *host_port, int mode))\nDEPRECATEDIN_1_1_0(int BIO_accept(int sock, char **ip_port))\n\nunion BIO_sock_info_u {\n    BIO_ADDR *addr;\n};\nenum BIO_sock_info_type {\n    BIO_SOCK_INFO_ADDRESS\n};\nint BIO_sock_info(int sock,\n                  enum BIO_sock_info_type type, union BIO_sock_info_u *info);\n\n#  define BIO_SOCK_REUSEADDR    0x01\n#  define BIO_SOCK_V6_ONLY      0x02\n#  define BIO_SOCK_KEEPALIVE    0x04\n#  define BIO_SOCK_NONBLOCK     0x08\n#  define BIO_SOCK_NODELAY      0x10\n\nint BIO_socket(int domain, int socktype, int protocol, int options);\nint BIO_connect(int sock, const BIO_ADDR *addr, int options);\nint BIO_bind(int sock, const BIO_ADDR *addr, int options);\nint BIO_listen(int sock, const BIO_ADDR *addr, int options);\nint BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options);\nint BIO_closesocket(int sock);\n\nBIO *BIO_new_socket(int sock, int close_flag);\nBIO *BIO_new_connect(const char *host_port);\nBIO *BIO_new_accept(const char *host_port);\n# endif /* OPENSSL_NO_SOCK*/\n\nBIO *BIO_new_fd(int fd, int close_flag);\n\nint BIO_new_bio_pair(BIO **bio1, size_t writebuf1,\n                     BIO **bio2, size_t writebuf2);\n/*\n * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.\n * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default\n * value.\n */\n\nvoid BIO_copy_next_retry(BIO *b);\n\n/*\n * long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);\n */\n\n# define ossl_bio__attr__(x)\n# if defined(__GNUC__) && defined(__STDC_VERSION__) \\\n    && !defined(__APPLE__)\n    /*\n     * Because we support the 'z' modifier, which made its appearance in C99,\n     * we can't use __attribute__ with pre C99 dialects.\n     */\n#  if __STDC_VERSION__ >= 199901L\n#   undef ossl_bio__attr__\n#   define ossl_bio__attr__ __attribute__\n#   if __GNUC__*10 + __GNUC_MINOR__ >= 44\n#    define ossl_bio__printf__ __gnu_printf__\n#   else\n#    define ossl_bio__printf__ __printf__\n#   endif\n#  endif\n# endif\nint BIO_printf(BIO *bio, const char *format, ...)\nossl_bio__attr__((__format__(ossl_bio__printf__, 2, 3)));\nint BIO_vprintf(BIO *bio, const char *format, va_list args)\nossl_bio__attr__((__format__(ossl_bio__printf__, 2, 0)));\nint BIO_snprintf(char *buf, size_t n, const char *format, ...)\nossl_bio__attr__((__format__(ossl_bio__printf__, 3, 4)));\nint BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)\nossl_bio__attr__((__format__(ossl_bio__printf__, 3, 0)));\n# undef ossl_bio__attr__\n# undef ossl_bio__printf__\n\n\nBIO_METHOD *BIO_meth_new(int type, const char *name);\nvoid BIO_meth_free(BIO_METHOD *biom);\nint (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int);\nint (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, size_t,\n                                                size_t *);\nint BIO_meth_set_write(BIO_METHOD *biom,\n                       int (*write) (BIO *, const char *, int));\nint BIO_meth_set_write_ex(BIO_METHOD *biom,\n                       int (*bwrite) (BIO *, const char *, size_t, size_t *));\nint (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int);\nint (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, size_t, size_t *);\nint BIO_meth_set_read(BIO_METHOD *biom,\n                      int (*read) (BIO *, char *, int));\nint BIO_meth_set_read_ex(BIO_METHOD *biom,\n                         int (*bread) (BIO *, char *, size_t, size_t *));\nint (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *);\nint BIO_meth_set_puts(BIO_METHOD *biom,\n                      int (*puts) (BIO *, const char *));\nint (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int);\nint BIO_meth_set_gets(BIO_METHOD *biom,\n                      int (*gets) (BIO *, char *, int));\nlong (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *);\nint BIO_meth_set_ctrl(BIO_METHOD *biom,\n                      long (*ctrl) (BIO *, int, long, void *));\nint (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *);\nint BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *));\nint (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *);\nint BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *));\nlong (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))\n                                 (BIO *, int, BIO_info_cb *);\nint BIO_meth_set_callback_ctrl(BIO_METHOD *biom,\n                               long (*callback_ctrl) (BIO *, int,\n                                                      BIO_info_cb *));\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/bioerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BIOERR_H\n# define HEADER_BIOERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BIO_strings(void);\n\n/*\n * BIO function codes.\n */\n# define BIO_F_ACPT_STATE                                 100\n# define BIO_F_ADDRINFO_WRAP                              148\n# define BIO_F_ADDR_STRINGS                               134\n# define BIO_F_BIO_ACCEPT                                 101\n# define BIO_F_BIO_ACCEPT_EX                              137\n# define BIO_F_BIO_ACCEPT_NEW                             152\n# define BIO_F_BIO_ADDR_NEW                               144\n# define BIO_F_BIO_BIND                                   147\n# define BIO_F_BIO_CALLBACK_CTRL                          131\n# define BIO_F_BIO_CONNECT                                138\n# define BIO_F_BIO_CONNECT_NEW                            153\n# define BIO_F_BIO_CTRL                                   103\n# define BIO_F_BIO_GETS                                   104\n# define BIO_F_BIO_GET_HOST_IP                            106\n# define BIO_F_BIO_GET_NEW_INDEX                          102\n# define BIO_F_BIO_GET_PORT                               107\n# define BIO_F_BIO_LISTEN                                 139\n# define BIO_F_BIO_LOOKUP                                 135\n# define BIO_F_BIO_LOOKUP_EX                              143\n# define BIO_F_BIO_MAKE_PAIR                              121\n# define BIO_F_BIO_METH_NEW                               146\n# define BIO_F_BIO_NEW                                    108\n# define BIO_F_BIO_NEW_DGRAM_SCTP                         145\n# define BIO_F_BIO_NEW_FILE                               109\n# define BIO_F_BIO_NEW_MEM_BUF                            126\n# define BIO_F_BIO_NREAD                                  123\n# define BIO_F_BIO_NREAD0                                 124\n# define BIO_F_BIO_NWRITE                                 125\n# define BIO_F_BIO_NWRITE0                                122\n# define BIO_F_BIO_PARSE_HOSTSERV                         136\n# define BIO_F_BIO_PUTS                                   110\n# define BIO_F_BIO_READ                                   111\n# define BIO_F_BIO_READ_EX                                105\n# define BIO_F_BIO_READ_INTERN                            120\n# define BIO_F_BIO_SOCKET                                 140\n# define BIO_F_BIO_SOCKET_NBIO                            142\n# define BIO_F_BIO_SOCK_INFO                              141\n# define BIO_F_BIO_SOCK_INIT                              112\n# define BIO_F_BIO_WRITE                                  113\n# define BIO_F_BIO_WRITE_EX                               119\n# define BIO_F_BIO_WRITE_INTERN                           128\n# define BIO_F_BUFFER_CTRL                                114\n# define BIO_F_CONN_CTRL                                  127\n# define BIO_F_CONN_STATE                                 115\n# define BIO_F_DGRAM_SCTP_NEW                             149\n# define BIO_F_DGRAM_SCTP_READ                            132\n# define BIO_F_DGRAM_SCTP_WRITE                           133\n# define BIO_F_DOAPR_OUTCH                                150\n# define BIO_F_FILE_CTRL                                  116\n# define BIO_F_FILE_READ                                  130\n# define BIO_F_LINEBUFFER_CTRL                            129\n# define BIO_F_LINEBUFFER_NEW                             151\n# define BIO_F_MEM_WRITE                                  117\n# define BIO_F_NBIOF_NEW                                  154\n# define BIO_F_SLG_WRITE                                  155\n# define BIO_F_SSL_NEW                                    118\n\n/*\n * BIO reason codes.\n */\n# define BIO_R_ACCEPT_ERROR                               100\n# define BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET               141\n# define BIO_R_AMBIGUOUS_HOST_OR_SERVICE                  129\n# define BIO_R_BAD_FOPEN_MODE                             101\n# define BIO_R_BROKEN_PIPE                                124\n# define BIO_R_CONNECT_ERROR                              103\n# define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET          107\n# define BIO_R_GETSOCKNAME_ERROR                          132\n# define BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS              133\n# define BIO_R_GETTING_SOCKTYPE                           134\n# define BIO_R_INVALID_ARGUMENT                           125\n# define BIO_R_INVALID_SOCKET                             135\n# define BIO_R_IN_USE                                     123\n# define BIO_R_LENGTH_TOO_LONG                            102\n# define BIO_R_LISTEN_V6_ONLY                             136\n# define BIO_R_LOOKUP_RETURNED_NOTHING                    142\n# define BIO_R_MALFORMED_HOST_OR_SERVICE                  130\n# define BIO_R_NBIO_CONNECT_ERROR                         110\n# define BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED        143\n# define BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED           144\n# define BIO_R_NO_PORT_DEFINED                            113\n# define BIO_R_NO_SUCH_FILE                               128\n# define BIO_R_NULL_PARAMETER                             115\n# define BIO_R_UNABLE_TO_BIND_SOCKET                      117\n# define BIO_R_UNABLE_TO_CREATE_SOCKET                    118\n# define BIO_R_UNABLE_TO_KEEPALIVE                        137\n# define BIO_R_UNABLE_TO_LISTEN_SOCKET                    119\n# define BIO_R_UNABLE_TO_NODELAY                          138\n# define BIO_R_UNABLE_TO_REUSEADDR                        139\n# define BIO_R_UNAVAILABLE_IP_FAMILY                      145\n# define BIO_R_UNINITIALIZED                              120\n# define BIO_R_UNKNOWN_INFO_TYPE                          140\n# define BIO_R_UNSUPPORTED_IP_FAMILY                      146\n# define BIO_R_UNSUPPORTED_METHOD                         121\n# define BIO_R_UNSUPPORTED_PROTOCOL_FAMILY                131\n# define BIO_R_WRITE_TO_READ_ONLY_BIO                     126\n# define BIO_R_WSASTARTUP                                 122\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/blowfish.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BLOWFISH_H\n# define HEADER_BLOWFISH_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_BF\n# include <openssl/e_os2.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define BF_ENCRYPT      1\n# define BF_DECRYPT      0\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! BF_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define BF_LONG unsigned int\n\n# define BF_ROUNDS       16\n# define BF_BLOCK        8\n\ntypedef struct bf_key_st {\n    BF_LONG P[BF_ROUNDS + 2];\n    BF_LONG S[4 * 256];\n} BF_KEY;\n\nvoid BF_set_key(BF_KEY *key, int len, const unsigned char *data);\n\nvoid BF_encrypt(BF_LONG *data, const BF_KEY *key);\nvoid BF_decrypt(BF_LONG *data, const BF_KEY *key);\n\nvoid BF_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                    const BF_KEY *key, int enc);\nvoid BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,\n                    const BF_KEY *schedule, unsigned char *ivec, int enc);\nvoid BF_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const BF_KEY *schedule,\n                      unsigned char *ivec, int *num, int enc);\nvoid BF_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const BF_KEY *schedule,\n                      unsigned char *ivec, int *num);\nconst char *BF_options(void);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/bn.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BN_H\n# define HEADER_BN_H\n\n# include <openssl/e_os2.h>\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n# include <openssl/opensslconf.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/crypto.h>\n# include <openssl/bnerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * 64-bit processor with LP64 ABI\n */\n# ifdef SIXTY_FOUR_BIT_LONG\n#  define BN_ULONG        unsigned long\n#  define BN_BYTES        8\n# endif\n\n/*\n * 64-bit processor other than LP64 ABI\n */\n# ifdef SIXTY_FOUR_BIT\n#  define BN_ULONG        unsigned long long\n#  define BN_BYTES        8\n# endif\n\n# ifdef THIRTY_TWO_BIT\n#  define BN_ULONG        unsigned int\n#  define BN_BYTES        4\n# endif\n\n# define BN_BITS2       (BN_BYTES * 8)\n# define BN_BITS        (BN_BITS2 * 2)\n# define BN_TBIT        ((BN_ULONG)1 << (BN_BITS2 - 1))\n\n# define BN_FLG_MALLOCED         0x01\n# define BN_FLG_STATIC_DATA      0x02\n\n/*\n * avoid leaking exponent information through timing,\n * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,\n * BN_div() will call BN_div_no_branch,\n * BN_mod_inverse() will call bn_mod_inverse_no_branch.\n */\n# define BN_FLG_CONSTTIME        0x04\n# define BN_FLG_SECURE           0x08\n\n# if OPENSSL_API_COMPAT < 0x00908000L\n/* deprecated name for the flag */\n#  define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME\n#  define BN_FLG_FREE            0x8000 /* used for debugging */\n# endif\n\nvoid BN_set_flags(BIGNUM *b, int n);\nint BN_get_flags(const BIGNUM *b, int n);\n\n/* Values for |top| in BN_rand() */\n#define BN_RAND_TOP_ANY    -1\n#define BN_RAND_TOP_ONE     0\n#define BN_RAND_TOP_TWO     1\n\n/* Values for |bottom| in BN_rand() */\n#define BN_RAND_BOTTOM_ANY  0\n#define BN_RAND_BOTTOM_ODD  1\n\n/*\n * get a clone of a BIGNUM with changed flags, for *temporary* use only (the\n * two BIGNUMs cannot be used in parallel!). Also only for *read only* use. The\n * value |dest| should be a newly allocated BIGNUM obtained via BN_new() that\n * has not been otherwise initialised or used.\n */\nvoid BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags);\n\n/* Wrapper function to make using BN_GENCB easier */\nint BN_GENCB_call(BN_GENCB *cb, int a, int b);\n\nBN_GENCB *BN_GENCB_new(void);\nvoid BN_GENCB_free(BN_GENCB *cb);\n\n/* Populate a BN_GENCB structure with an \"old\"-style callback */\nvoid BN_GENCB_set_old(BN_GENCB *gencb, void (*callback) (int, int, void *),\n                      void *cb_arg);\n\n/* Populate a BN_GENCB structure with a \"new\"-style callback */\nvoid BN_GENCB_set(BN_GENCB *gencb, int (*callback) (int, int, BN_GENCB *),\n                  void *cb_arg);\n\nvoid *BN_GENCB_get_arg(BN_GENCB *cb);\n\n# define BN_prime_checks 0      /* default: select number of iterations based\n                                 * on the size of the number */\n\n/*\n * BN_prime_checks_for_size() returns the number of Miller-Rabin iterations\n * that will be done for checking that a random number is probably prime. The\n * error rate for accepting a composite number as prime depends on the size of\n * the prime |b|. The error rates used are for calculating an RSA key with 2 primes,\n * and so the level is what you would expect for a key of double the size of the\n * prime.\n *\n * This table is generated using the algorithm of FIPS PUB 186-4\n * Digital Signature Standard (DSS), section F.1, page 117.\n * (https://dx.doi.org/10.6028/NIST.FIPS.186-4)\n *\n * The following magma script was used to generate the output:\n * securitybits:=125;\n * k:=1024;\n * for t:=1 to 65 do\n *   for M:=3 to Floor(2*Sqrt(k-1)-1) do\n *     S:=0;\n *     // Sum over m\n *     for m:=3 to M do\n *       s:=0;\n *       // Sum over j\n *       for j:=2 to m do\n *         s+:=(RealField(32)!2)^-(j+(k-1)/j);\n *       end for;\n *       S+:=2^(m-(m-1)*t)*s;\n *     end for;\n *     A:=2^(k-2-M*t);\n *     B:=8*(Pi(RealField(32))^2-6)/3*2^(k-2)*S;\n *     pkt:=2.00743*Log(2)*k*2^-k*(A+B);\n *     seclevel:=Floor(-Log(2,pkt));\n *     if seclevel ge securitybits then\n *       printf \"k: %5o, security: %o bits  (t: %o, M: %o)\\n\",k,seclevel,t,M;\n *       break;\n *     end if;\n *   end for;\n *   if seclevel ge securitybits then break; end if;\n * end for;\n *\n * It can be run online at:\n * http://magma.maths.usyd.edu.au/calc\n *\n * And will output:\n * k:  1024, security: 129 bits  (t: 6, M: 23)\n *\n * k is the number of bits of the prime, securitybits is the level we want to\n * reach.\n *\n * prime length | RSA key size | # MR tests | security level\n * -------------+--------------|------------+---------------\n *  (b) >= 6394 |     >= 12788 |          3 |        256 bit\n *  (b) >= 3747 |     >=  7494 |          3 |        192 bit\n *  (b) >= 1345 |     >=  2690 |          4 |        128 bit\n *  (b) >= 1080 |     >=  2160 |          5 |        128 bit\n *  (b) >=  852 |     >=  1704 |          5 |        112 bit\n *  (b) >=  476 |     >=   952 |          5 |         80 bit\n *  (b) >=  400 |     >=   800 |          6 |         80 bit\n *  (b) >=  347 |     >=   694 |          7 |         80 bit\n *  (b) >=  308 |     >=   616 |          8 |         80 bit\n *  (b) >=   55 |     >=   110 |         27 |         64 bit\n *  (b) >=    6 |     >=    12 |         34 |         64 bit\n */\n\n# define BN_prime_checks_for_size(b) ((b) >= 3747 ?  3 : \\\n                                (b) >=  1345 ?  4 : \\\n                                (b) >=  476 ?  5 : \\\n                                (b) >=  400 ?  6 : \\\n                                (b) >=  347 ?  7 : \\\n                                (b) >=  308 ?  8 : \\\n                                (b) >=  55  ? 27 : \\\n                                /* b >= 6 */ 34)\n\n# define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)\n\nint BN_abs_is_word(const BIGNUM *a, const BN_ULONG w);\nint BN_is_zero(const BIGNUM *a);\nint BN_is_one(const BIGNUM *a);\nint BN_is_word(const BIGNUM *a, const BN_ULONG w);\nint BN_is_odd(const BIGNUM *a);\n\n# define BN_one(a)       (BN_set_word((a),1))\n\nvoid BN_zero_ex(BIGNUM *a);\n\n# if OPENSSL_API_COMPAT >= 0x00908000L\n#  define BN_zero(a)      BN_zero_ex(a)\n# else\n#  define BN_zero(a)      (BN_set_word((a),0))\n# endif\n\nconst BIGNUM *BN_value_one(void);\nchar *BN_options(void);\nBN_CTX *BN_CTX_new(void);\nBN_CTX *BN_CTX_secure_new(void);\nvoid BN_CTX_free(BN_CTX *c);\nvoid BN_CTX_start(BN_CTX *ctx);\nBIGNUM *BN_CTX_get(BN_CTX *ctx);\nvoid BN_CTX_end(BN_CTX *ctx);\nint BN_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_priv_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_num_bits(const BIGNUM *a);\nint BN_num_bits_word(BN_ULONG l);\nint BN_security_bits(int L, int N);\nBIGNUM *BN_new(void);\nBIGNUM *BN_secure_new(void);\nvoid BN_clear_free(BIGNUM *a);\nBIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);\nvoid BN_swap(BIGNUM *a, BIGNUM *b);\nBIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2bin(const BIGNUM *a, unsigned char *to);\nint BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);\nBIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen);\nBIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2mpi(const BIGNUM *a, unsigned char *to);\nint BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);\nint BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);\n/** BN_set_negative sets sign of a BIGNUM\n * \\param  b  pointer to the BIGNUM object\n * \\param  n  0 if the BIGNUM b should be positive and a value != 0 otherwise\n */\nvoid BN_set_negative(BIGNUM *b, int n);\n/** BN_is_negative returns 1 if the BIGNUM is negative\n * \\param  b  pointer to the BIGNUM object\n * \\return 1 if a < 0 and 0 otherwise\n */\nint BN_is_negative(const BIGNUM *b);\n\nint BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,\n           BN_CTX *ctx);\n# define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))\nint BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);\nint BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                     const BIGNUM *m);\nint BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                     const BIGNUM *m);\nint BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m);\nint BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m,\n                  BN_CTX *ctx);\nint BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m);\n\nBN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);\nBN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);\nint BN_mul_word(BIGNUM *a, BN_ULONG w);\nint BN_add_word(BIGNUM *a, BN_ULONG w);\nint BN_sub_word(BIGNUM *a, BN_ULONG w);\nint BN_set_word(BIGNUM *a, BN_ULONG w);\nBN_ULONG BN_get_word(const BIGNUM *a);\n\nint BN_cmp(const BIGNUM *a, const BIGNUM *b);\nvoid BN_free(BIGNUM *a);\nint BN_is_bit_set(const BIGNUM *a, int n);\nint BN_lshift(BIGNUM *r, const BIGNUM *a, int n);\nint BN_lshift1(BIGNUM *r, const BIGNUM *a);\nint BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n\nint BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n               const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                    const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,\n                              const BIGNUM *m, BN_CTX *ctx,\n                              BN_MONT_CTX *in_mont);\nint BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,\n                         const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1,\n                     const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,\n                     BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                      const BIGNUM *m, BN_CTX *ctx);\n\nint BN_mask_bits(BIGNUM *a, int n);\n# ifndef OPENSSL_NO_STDIO\nint BN_print_fp(FILE *fp, const BIGNUM *a);\n# endif\nint BN_print(BIO *bio, const BIGNUM *a);\nint BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);\nint BN_rshift(BIGNUM *r, const BIGNUM *a, int n);\nint BN_rshift1(BIGNUM *r, const BIGNUM *a);\nvoid BN_clear(BIGNUM *a);\nBIGNUM *BN_dup(const BIGNUM *a);\nint BN_ucmp(const BIGNUM *a, const BIGNUM *b);\nint BN_set_bit(BIGNUM *a, int n);\nint BN_clear_bit(BIGNUM *a, int n);\nchar *BN_bn2hex(const BIGNUM *a);\nchar *BN_bn2dec(const BIGNUM *a);\nint BN_hex2bn(BIGNUM **a, const char *str);\nint BN_dec2bn(BIGNUM **a, const char *str);\nint BN_asc2bn(BIGNUM **a, const char *str);\nint BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);\nint BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); /* returns\n                                                                  * -2 for\n                                                                  * error */\nBIGNUM *BN_mod_inverse(BIGNUM *ret,\n                       const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);\nBIGNUM *BN_mod_sqrt(BIGNUM *ret,\n                    const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);\n\nvoid BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);\n\n/* Deprecated versions */\nDEPRECATEDIN_0_9_8(BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,\n                                             const BIGNUM *add,\n                                             const BIGNUM *rem,\n                                             void (*callback) (int, int,\n                                                               void *),\n                                             void *cb_arg))\nDEPRECATEDIN_0_9_8(int\n                   BN_is_prime(const BIGNUM *p, int nchecks,\n                               void (*callback) (int, int, void *),\n                               BN_CTX *ctx, void *cb_arg))\nDEPRECATEDIN_0_9_8(int\n                   BN_is_prime_fasttest(const BIGNUM *p, int nchecks,\n                                        void (*callback) (int, int, void *),\n                                        BN_CTX *ctx, void *cb_arg,\n                                        int do_trial_division))\n\n/* Newer versions */\nint BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add,\n                         const BIGNUM *rem, BN_GENCB *cb);\nint BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);\nint BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx,\n                            int do_trial_division, BN_GENCB *cb);\n\nint BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);\n\nint BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,\n                            const BIGNUM *Xp, const BIGNUM *Xp1,\n                            const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx,\n                            BN_GENCB *cb);\nint BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1,\n                              BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e,\n                              BN_CTX *ctx, BN_GENCB *cb);\n\nBN_MONT_CTX *BN_MONT_CTX_new(void);\nint BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                          BN_MONT_CTX *mont, BN_CTX *ctx);\nint BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,\n                     BN_CTX *ctx);\nint BN_from_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,\n                       BN_CTX *ctx);\nvoid BN_MONT_CTX_free(BN_MONT_CTX *mont);\nint BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);\nBN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, BN_MONT_CTX *from);\nBN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,\n                                    const BIGNUM *mod, BN_CTX *ctx);\n\n/* BN_BLINDING flags */\n# define BN_BLINDING_NO_UPDATE   0x00000001\n# define BN_BLINDING_NO_RECREATE 0x00000002\n\nBN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);\nvoid BN_BLINDING_free(BN_BLINDING *b);\nint BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);\nint BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b,\n                          BN_CTX *);\n\nint BN_BLINDING_is_current_thread(BN_BLINDING *b);\nvoid BN_BLINDING_set_current_thread(BN_BLINDING *b);\nint BN_BLINDING_lock(BN_BLINDING *b);\nint BN_BLINDING_unlock(BN_BLINDING *b);\n\nunsigned long BN_BLINDING_get_flags(const BN_BLINDING *);\nvoid BN_BLINDING_set_flags(BN_BLINDING *, unsigned long);\nBN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,\n                                      const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,\n                                      int (*bn_mod_exp) (BIGNUM *r,\n                                                         const BIGNUM *a,\n                                                         const BIGNUM *p,\n                                                         const BIGNUM *m,\n                                                         BN_CTX *ctx,\n                                                         BN_MONT_CTX *m_ctx),\n                                      BN_MONT_CTX *m_ctx);\n\nDEPRECATEDIN_0_9_8(void BN_set_params(int mul, int high, int low, int mont))\nDEPRECATEDIN_0_9_8(int BN_get_params(int which)) /* 0, mul, 1 high, 2 low, 3\n                                                  * mont */\n\nBN_RECP_CTX *BN_RECP_CTX_new(void);\nvoid BN_RECP_CTX_free(BN_RECP_CTX *recp);\nint BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx);\nint BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,\n                          BN_RECP_CTX *recp, BN_CTX *ctx);\nint BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                    const BIGNUM *m, BN_CTX *ctx);\nint BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,\n                BN_RECP_CTX *recp, BN_CTX *ctx);\n\n# ifndef OPENSSL_NO_EC2M\n\n/*\n * Functions for arithmetic over binary polynomials represented by BIGNUMs.\n * The BIGNUM::neg property of BIGNUMs representing binary polynomials is\n * ignored. Note that input arguments are not const so that their bit arrays\n * can be expanded to the appropriate size if needed.\n */\n\n/*\n * r = a + b\n */\nint BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\n#  define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b)\n/*\n * r=a mod p\n */\nint BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p);\n/* r = (a * b) mod p */\nint BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = (a * a) mod p */\nint BN_GF2m_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n/* r = (1 / b) mod p */\nint BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx);\n/* r = (a / b) mod p */\nint BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = (a ^ b) mod p */\nint BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = sqrt(a) mod p */\nint BN_GF2m_mod_sqrt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                     BN_CTX *ctx);\n/* r^2 + r = a mod p */\nint BN_GF2m_mod_solve_quad(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                           BN_CTX *ctx);\n#  define BN_GF2m_cmp(a, b) BN_ucmp((a), (b))\n/*-\n * Some functions allow for representation of the irreducible polynomials\n * as an unsigned int[], say p.  The irreducible f(t) is then of the form:\n *     t^p[0] + t^p[1] + ... + t^p[k]\n * where m = p[0] > p[1] > ... > p[k] = 0.\n */\n/* r = a mod p */\nint BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[]);\n/* r = (a * b) mod p */\nint BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = (a * a) mod p */\nint BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const int p[],\n                        BN_CTX *ctx);\n/* r = (1 / b) mod p */\nint BN_GF2m_mod_inv_arr(BIGNUM *r, const BIGNUM *b, const int p[],\n                        BN_CTX *ctx);\n/* r = (a / b) mod p */\nint BN_GF2m_mod_div_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = (a ^ b) mod p */\nint BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = sqrt(a) mod p */\nint BN_GF2m_mod_sqrt_arr(BIGNUM *r, const BIGNUM *a,\n                         const int p[], BN_CTX *ctx);\n/* r^2 + r = a mod p */\nint BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a,\n                               const int p[], BN_CTX *ctx);\nint BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max);\nint BN_GF2m_arr2poly(const int p[], BIGNUM *a);\n\n# endif\n\n/*\n * faster mod functions for the 'NIST primes' 0 <= a < p^2\n */\nint BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n\nconst BIGNUM *BN_get0_nist_prime_192(void);\nconst BIGNUM *BN_get0_nist_prime_224(void);\nconst BIGNUM *BN_get0_nist_prime_256(void);\nconst BIGNUM *BN_get0_nist_prime_384(void);\nconst BIGNUM *BN_get0_nist_prime_521(void);\n\nint (*BN_nist_mod_func(const BIGNUM *p)) (BIGNUM *r, const BIGNUM *a,\n                                          const BIGNUM *field, BN_CTX *ctx);\n\nint BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,\n                          const BIGNUM *priv, const unsigned char *message,\n                          size_t message_len, BN_CTX *ctx);\n\n/* Primes from RFC 2409 */\nBIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);\nBIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);\n\n/* Primes from RFC 3526 */\nBIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define get_rfc2409_prime_768 BN_get_rfc2409_prime_768\n#  define get_rfc2409_prime_1024 BN_get_rfc2409_prime_1024\n#  define get_rfc3526_prime_1536 BN_get_rfc3526_prime_1536\n#  define get_rfc3526_prime_2048 BN_get_rfc3526_prime_2048\n#  define get_rfc3526_prime_3072 BN_get_rfc3526_prime_3072\n#  define get_rfc3526_prime_4096 BN_get_rfc3526_prime_4096\n#  define get_rfc3526_prime_6144 BN_get_rfc3526_prime_6144\n#  define get_rfc3526_prime_8192 BN_get_rfc3526_prime_8192\n# endif\n\nint BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/bnerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BNERR_H\n# define HEADER_BNERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BN_strings(void);\n\n/*\n * BN function codes.\n */\n# define BN_F_BNRAND                                      127\n# define BN_F_BNRAND_RANGE                                138\n# define BN_F_BN_BLINDING_CONVERT_EX                      100\n# define BN_F_BN_BLINDING_CREATE_PARAM                    128\n# define BN_F_BN_BLINDING_INVERT_EX                       101\n# define BN_F_BN_BLINDING_NEW                             102\n# define BN_F_BN_BLINDING_UPDATE                          103\n# define BN_F_BN_BN2DEC                                   104\n# define BN_F_BN_BN2HEX                                   105\n# define BN_F_BN_COMPUTE_WNAF                             142\n# define BN_F_BN_CTX_GET                                  116\n# define BN_F_BN_CTX_NEW                                  106\n# define BN_F_BN_CTX_START                                129\n# define BN_F_BN_DIV                                      107\n# define BN_F_BN_DIV_RECP                                 130\n# define BN_F_BN_EXP                                      123\n# define BN_F_BN_EXPAND_INTERNAL                          120\n# define BN_F_BN_GENCB_NEW                                143\n# define BN_F_BN_GENERATE_DSA_NONCE                       140\n# define BN_F_BN_GENERATE_PRIME_EX                        141\n# define BN_F_BN_GF2M_MOD                                 131\n# define BN_F_BN_GF2M_MOD_EXP                             132\n# define BN_F_BN_GF2M_MOD_MUL                             133\n# define BN_F_BN_GF2M_MOD_SOLVE_QUAD                      134\n# define BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR                  135\n# define BN_F_BN_GF2M_MOD_SQR                             136\n# define BN_F_BN_GF2M_MOD_SQRT                            137\n# define BN_F_BN_LSHIFT                                   145\n# define BN_F_BN_MOD_EXP2_MONT                            118\n# define BN_F_BN_MOD_EXP_MONT                             109\n# define BN_F_BN_MOD_EXP_MONT_CONSTTIME                   124\n# define BN_F_BN_MOD_EXP_MONT_WORD                        117\n# define BN_F_BN_MOD_EXP_RECP                             125\n# define BN_F_BN_MOD_EXP_SIMPLE                           126\n# define BN_F_BN_MOD_INVERSE                              110\n# define BN_F_BN_MOD_INVERSE_NO_BRANCH                    139\n# define BN_F_BN_MOD_LSHIFT_QUICK                         119\n# define BN_F_BN_MOD_SQRT                                 121\n# define BN_F_BN_MONT_CTX_NEW                             149\n# define BN_F_BN_MPI2BN                                   112\n# define BN_F_BN_NEW                                      113\n# define BN_F_BN_POOL_GET                                 147\n# define BN_F_BN_RAND                                     114\n# define BN_F_BN_RAND_RANGE                               122\n# define BN_F_BN_RECP_CTX_NEW                             150\n# define BN_F_BN_RSHIFT                                   146\n# define BN_F_BN_SET_WORDS                                144\n# define BN_F_BN_STACK_PUSH                               148\n# define BN_F_BN_USUB                                     115\n\n/*\n * BN reason codes.\n */\n# define BN_R_ARG2_LT_ARG3                                100\n# define BN_R_BAD_RECIPROCAL                              101\n# define BN_R_BIGNUM_TOO_LONG                             114\n# define BN_R_BITS_TOO_SMALL                              118\n# define BN_R_CALLED_WITH_EVEN_MODULUS                    102\n# define BN_R_DIV_BY_ZERO                                 103\n# define BN_R_ENCODING_ERROR                              104\n# define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA                105\n# define BN_R_INPUT_NOT_REDUCED                           110\n# define BN_R_INVALID_LENGTH                              106\n# define BN_R_INVALID_RANGE                               115\n# define BN_R_INVALID_SHIFT                               119\n# define BN_R_NOT_A_SQUARE                                111\n# define BN_R_NOT_INITIALIZED                             107\n# define BN_R_NO_INVERSE                                  108\n# define BN_R_NO_SOLUTION                                 116\n# define BN_R_PRIVATE_KEY_TOO_LARGE                       117\n# define BN_R_P_IS_NOT_PRIME                              112\n# define BN_R_TOO_MANY_ITERATIONS                         113\n# define BN_R_TOO_MANY_TEMPORARY_VARIABLES                109\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/buffer.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BUFFER_H\n# define HEADER_BUFFER_H\n\n# include <openssl/ossl_typ.h>\n# ifndef HEADER_CRYPTO_H\n#  include <openssl/crypto.h>\n# endif\n# include <openssl/buffererr.h>\n\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# include <stddef.h>\n# include <sys/types.h>\n\n/*\n * These names are outdated as of OpenSSL 1.1; a future release\n * will move them to be deprecated.\n */\n# define BUF_strdup(s) OPENSSL_strdup(s)\n# define BUF_strndup(s, size) OPENSSL_strndup(s, size)\n# define BUF_memdup(data, size) OPENSSL_memdup(data, size)\n# define BUF_strlcpy(dst, src, size)  OPENSSL_strlcpy(dst, src, size)\n# define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size)\n# define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen)\n\nstruct buf_mem_st {\n    size_t length;              /* current number of bytes */\n    char *data;\n    size_t max;                 /* size of buffer */\n    unsigned long flags;\n};\n\n# define BUF_MEM_FLAG_SECURE  0x01\n\nBUF_MEM *BUF_MEM_new(void);\nBUF_MEM *BUF_MEM_new_ex(unsigned long flags);\nvoid BUF_MEM_free(BUF_MEM *a);\nsize_t BUF_MEM_grow(BUF_MEM *str, size_t len);\nsize_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len);\nvoid BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/buffererr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BUFERR_H\n# define HEADER_BUFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BUF_strings(void);\n\n/*\n * BUF function codes.\n */\n# define BUF_F_BUF_MEM_GROW                               100\n# define BUF_F_BUF_MEM_GROW_CLEAN                         105\n# define BUF_F_BUF_MEM_NEW                                101\n\n/*\n * BUF reason codes.\n */\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/camellia.h",
    "content": "/*\n * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CAMELLIA_H\n# define HEADER_CAMELLIA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CAMELLIA\n# include <stddef.h>\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define CAMELLIA_ENCRYPT        1\n# define CAMELLIA_DECRYPT        0\n\n/*\n * Because array size can't be a const in C, the following two are macros.\n * Both sizes are in bytes.\n */\n\n/* This should be a hidden type, but EVP requires that the size be known */\n\n# define CAMELLIA_BLOCK_SIZE 16\n# define CAMELLIA_TABLE_BYTE_LEN 272\n# define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4)\n\ntypedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; /* to match\n                                                               * with WORD */\n\nstruct camellia_key_st {\n    union {\n        double d;               /* ensures 64-bit align */\n        KEY_TABLE_TYPE rd_key;\n    } u;\n    int grand_rounds;\n};\ntypedef struct camellia_key_st CAMELLIA_KEY;\n\nint Camellia_set_key(const unsigned char *userKey, const int bits,\n                     CAMELLIA_KEY *key);\n\nvoid Camellia_encrypt(const unsigned char *in, unsigned char *out,\n                      const CAMELLIA_KEY *key);\nvoid Camellia_decrypt(const unsigned char *in, unsigned char *out,\n                      const CAMELLIA_KEY *key);\n\nvoid Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                          const CAMELLIA_KEY *key, const int enc);\nvoid Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                          size_t length, const CAMELLIA_KEY *key,\n                          unsigned char *ivec, const int enc);\nvoid Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char *ivec, int *num, const int enc);\nvoid Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t length, const CAMELLIA_KEY *key,\n                           unsigned char *ivec, int *num, const int enc);\nvoid Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t length, const CAMELLIA_KEY *key,\n                           unsigned char *ivec, int *num, const int enc);\nvoid Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char *ivec, int *num);\nvoid Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char ivec[CAMELLIA_BLOCK_SIZE],\n                             unsigned char ecount_buf[CAMELLIA_BLOCK_SIZE],\n                             unsigned int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/cast.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CAST_H\n# define HEADER_CAST_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CAST\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define CAST_ENCRYPT    1\n# define CAST_DECRYPT    0\n\n# define CAST_LONG unsigned int\n\n# define CAST_BLOCK      8\n# define CAST_KEY_LENGTH 16\n\ntypedef struct cast_key_st {\n    CAST_LONG data[32];\n    int short_key;              /* Use reduced rounds for short key */\n} CAST_KEY;\n\nvoid CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);\nvoid CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      const CAST_KEY *key, int enc);\nvoid CAST_encrypt(CAST_LONG *data, const CAST_KEY *key);\nvoid CAST_decrypt(CAST_LONG *data, const CAST_KEY *key);\nvoid CAST_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const CAST_KEY *ks, unsigned char *iv,\n                      int enc);\nvoid CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, const CAST_KEY *schedule,\n                        unsigned char *ivec, int *num, int enc);\nvoid CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, const CAST_KEY *schedule,\n                        unsigned char *ivec, int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/cmac.h",
    "content": "/*\n * Copyright 2010-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMAC_H\n# define HEADER_CMAC_H\n\n# ifndef OPENSSL_NO_CMAC\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# include <openssl/evp.h>\n\n/* Opaque */\ntypedef struct CMAC_CTX_st CMAC_CTX;\n\nCMAC_CTX *CMAC_CTX_new(void);\nvoid CMAC_CTX_cleanup(CMAC_CTX *ctx);\nvoid CMAC_CTX_free(CMAC_CTX *ctx);\nEVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx);\nint CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);\n\nint CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,\n              const EVP_CIPHER *cipher, ENGINE *impl);\nint CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen);\nint CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen);\nint CMAC_resume(CMAC_CTX *ctx);\n\n#ifdef  __cplusplus\n}\n#endif\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/cms.h",
    "content": "/*\n * Copyright 2008-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMS_H\n# define HEADER_CMS_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CMS\n# include <openssl/x509.h>\n# include <openssl/x509v3.h>\n# include <openssl/cmserr.h>\n# ifdef __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct CMS_ContentInfo_st CMS_ContentInfo;\ntypedef struct CMS_SignerInfo_st CMS_SignerInfo;\ntypedef struct CMS_CertificateChoices CMS_CertificateChoices;\ntypedef struct CMS_RevocationInfoChoice_st CMS_RevocationInfoChoice;\ntypedef struct CMS_RecipientInfo_st CMS_RecipientInfo;\ntypedef struct CMS_ReceiptRequest_st CMS_ReceiptRequest;\ntypedef struct CMS_Receipt_st CMS_Receipt;\ntypedef struct CMS_RecipientEncryptedKey_st CMS_RecipientEncryptedKey;\ntypedef struct CMS_OtherKeyAttribute_st CMS_OtherKeyAttribute;\n\nDEFINE_STACK_OF(CMS_SignerInfo)\nDEFINE_STACK_OF(CMS_RecipientEncryptedKey)\nDEFINE_STACK_OF(CMS_RecipientInfo)\nDEFINE_STACK_OF(CMS_RevocationInfoChoice)\nDECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)\nDECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest)\nDECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)\n\n# define CMS_SIGNERINFO_ISSUER_SERIAL    0\n# define CMS_SIGNERINFO_KEYIDENTIFIER    1\n\n# define CMS_RECIPINFO_NONE              -1\n# define CMS_RECIPINFO_TRANS             0\n# define CMS_RECIPINFO_AGREE             1\n# define CMS_RECIPINFO_KEK               2\n# define CMS_RECIPINFO_PASS              3\n# define CMS_RECIPINFO_OTHER             4\n\n/* S/MIME related flags */\n\n# define CMS_TEXT                        0x1\n# define CMS_NOCERTS                     0x2\n# define CMS_NO_CONTENT_VERIFY           0x4\n# define CMS_NO_ATTR_VERIFY              0x8\n# define CMS_NOSIGS                      \\\n                        (CMS_NO_CONTENT_VERIFY|CMS_NO_ATTR_VERIFY)\n# define CMS_NOINTERN                    0x10\n# define CMS_NO_SIGNER_CERT_VERIFY       0x20\n# define CMS_NOVERIFY                    0x20\n# define CMS_DETACHED                    0x40\n# define CMS_BINARY                      0x80\n# define CMS_NOATTR                      0x100\n# define CMS_NOSMIMECAP                  0x200\n# define CMS_NOOLDMIMETYPE               0x400\n# define CMS_CRLFEOL                     0x800\n# define CMS_STREAM                      0x1000\n# define CMS_NOCRL                       0x2000\n# define CMS_PARTIAL                     0x4000\n# define CMS_REUSE_DIGEST                0x8000\n# define CMS_USE_KEYID                   0x10000\n# define CMS_DEBUG_DECRYPT               0x20000\n# define CMS_KEY_PARAM                   0x40000\n# define CMS_ASCIICRLF                   0x80000\n\nconst ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);\n\nBIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);\nint CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);\n\nASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);\nint CMS_is_detached(CMS_ContentInfo *cms);\nint CMS_set_detached(CMS_ContentInfo *cms, int detached);\n\n# ifdef HEADER_PEM_H\nDECLARE_PEM_rw_const(CMS, CMS_ContentInfo)\n# endif\nint CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms);\nCMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);\nint i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);\n\nBIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);\nint i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);\nint PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in,\n                             int flags);\nCMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont);\nint SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);\n\nint CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont,\n              unsigned int flags);\n\nCMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,\n                          STACK_OF(X509) *certs, BIO *data,\n                          unsigned int flags);\n\nCMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si,\n                                  X509 *signcert, EVP_PKEY *pkey,\n                                  STACK_OF(X509) *certs, unsigned int flags);\n\nint CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags);\nCMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags);\n\nint CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out,\n                      unsigned int flags);\nCMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,\n                                   unsigned int flags);\n\nint CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,\n                              const unsigned char *key, size_t keylen,\n                              BIO *dcont, BIO *out, unsigned int flags);\n\nCMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher,\n                                           const unsigned char *key,\n                                           size_t keylen, unsigned int flags);\n\nint CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,\n                               const unsigned char *key, size_t keylen);\n\nint CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,\n               X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags);\n\nint CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,\n                       STACK_OF(X509) *certs,\n                       X509_STORE *store, unsigned int flags);\n\nSTACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);\n\nCMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,\n                             const EVP_CIPHER *cipher, unsigned int flags);\n\nint CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,\n                BIO *dcont, BIO *out, unsigned int flags);\n\nint CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert);\nint CMS_decrypt_set1_key(CMS_ContentInfo *cms,\n                         unsigned char *key, size_t keylen,\n                         const unsigned char *id, size_t idlen);\nint CMS_decrypt_set1_password(CMS_ContentInfo *cms,\n                              unsigned char *pass, ossl_ssize_t passlen);\n\nSTACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms);\nint CMS_RecipientInfo_type(CMS_RecipientInfo *ri);\nEVP_PKEY_CTX *CMS_RecipientInfo_get0_pkey_ctx(CMS_RecipientInfo *ri);\nCMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher);\nCMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,\n                                           X509 *recip, unsigned int flags);\nint CMS_RecipientInfo_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pkey);\nint CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert);\nint CMS_RecipientInfo_ktri_get0_algs(CMS_RecipientInfo *ri,\n                                     EVP_PKEY **pk, X509 **recip,\n                                     X509_ALGOR **palg);\nint CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri,\n                                          ASN1_OCTET_STRING **keyid,\n                                          X509_NAME **issuer,\n                                          ASN1_INTEGER **sno);\n\nCMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,\n                                          unsigned char *key, size_t keylen,\n                                          unsigned char *id, size_t idlen,\n                                          ASN1_GENERALIZEDTIME *date,\n                                          ASN1_OBJECT *otherTypeId,\n                                          ASN1_TYPE *otherType);\n\nint CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri,\n                                    X509_ALGOR **palg,\n                                    ASN1_OCTET_STRING **pid,\n                                    ASN1_GENERALIZEDTIME **pdate,\n                                    ASN1_OBJECT **potherid,\n                                    ASN1_TYPE **pothertype);\n\nint CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri,\n                               unsigned char *key, size_t keylen);\n\nint CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri,\n                                   const unsigned char *id, size_t idlen);\n\nint CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri,\n                                    unsigned char *pass,\n                                    ossl_ssize_t passlen);\n\nCMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms,\n                                               int iter, int wrap_nid,\n                                               int pbe_nid,\n                                               unsigned char *pass,\n                                               ossl_ssize_t passlen,\n                                               const EVP_CIPHER *kekciph);\n\nint CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);\nint CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);\n\nint CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out,\n                   unsigned int flags);\nCMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);\n\nint CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid);\nconst ASN1_OBJECT *CMS_get0_eContentType(CMS_ContentInfo *cms);\n\nCMS_CertificateChoices *CMS_add0_CertificateChoices(CMS_ContentInfo *cms);\nint CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);\nint CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);\nSTACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);\n\nCMS_RevocationInfoChoice *CMS_add0_RevocationInfoChoice(CMS_ContentInfo *cms);\nint CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);\nint CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);\nSTACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);\n\nint CMS_SignedData_init(CMS_ContentInfo *cms);\nCMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,\n                                X509 *signer, EVP_PKEY *pk, const EVP_MD *md,\n                                unsigned int flags);\nEVP_PKEY_CTX *CMS_SignerInfo_get0_pkey_ctx(CMS_SignerInfo *si);\nEVP_MD_CTX *CMS_SignerInfo_get0_md_ctx(CMS_SignerInfo *si);\nSTACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms);\n\nvoid CMS_SignerInfo_set1_signer_cert(CMS_SignerInfo *si, X509 *signer);\nint CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si,\n                                  ASN1_OCTET_STRING **keyid,\n                                  X509_NAME **issuer, ASN1_INTEGER **sno);\nint CMS_SignerInfo_cert_cmp(CMS_SignerInfo *si, X509 *cert);\nint CMS_set1_signers_certs(CMS_ContentInfo *cms, STACK_OF(X509) *certs,\n                           unsigned int flags);\nvoid CMS_SignerInfo_get0_algs(CMS_SignerInfo *si, EVP_PKEY **pk,\n                              X509 **signer, X509_ALGOR **pdig,\n                              X509_ALGOR **psig);\nASN1_OCTET_STRING *CMS_SignerInfo_get0_signature(CMS_SignerInfo *si);\nint CMS_SignerInfo_sign(CMS_SignerInfo *si);\nint CMS_SignerInfo_verify(CMS_SignerInfo *si);\nint CMS_SignerInfo_verify_content(CMS_SignerInfo *si, BIO *chain);\n\nint CMS_add_smimecap(CMS_SignerInfo *si, STACK_OF(X509_ALGOR) *algs);\nint CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **algs,\n                            int algnid, int keysize);\nint CMS_add_standard_smimecap(STACK_OF(X509_ALGOR) **smcap);\n\nint CMS_signed_get_attr_count(const CMS_SignerInfo *si);\nint CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid,\n                               int lastpos);\nint CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj,\n                               int lastpos);\nX509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc);\nX509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc);\nint CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);\nint CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si,\n                                const ASN1_OBJECT *obj, int type,\n                                const void *bytes, int len);\nint CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si,\n                                int nid, int type,\n                                const void *bytes, int len);\nint CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si,\n                                const char *attrname, int type,\n                                const void *bytes, int len);\nvoid *CMS_signed_get0_data_by_OBJ(CMS_SignerInfo *si, const ASN1_OBJECT *oid,\n                                  int lastpos, int type);\n\nint CMS_unsigned_get_attr_count(const CMS_SignerInfo *si);\nint CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid,\n                                 int lastpos);\nint CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si,\n                                 const ASN1_OBJECT *obj, int lastpos);\nX509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc);\nX509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc);\nint CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);\nint CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si,\n                                  const ASN1_OBJECT *obj, int type,\n                                  const void *bytes, int len);\nint CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si,\n                                  int nid, int type,\n                                  const void *bytes, int len);\nint CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si,\n                                  const char *attrname, int type,\n                                  const void *bytes, int len);\nvoid *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid,\n                                    int lastpos, int type);\n\nint CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);\nCMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen,\n                                               int allorfirst,\n                                               STACK_OF(GENERAL_NAMES)\n                                               *receiptList, STACK_OF(GENERAL_NAMES)\n                                               *receiptsTo);\nint CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr);\nvoid CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr,\n                                    ASN1_STRING **pcid,\n                                    int *pallorfirst,\n                                    STACK_OF(GENERAL_NAMES) **plist,\n                                    STACK_OF(GENERAL_NAMES) **prto);\nint CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,\n                                    X509_ALGOR **palg,\n                                    ASN1_OCTET_STRING **pukm);\nSTACK_OF(CMS_RecipientEncryptedKey)\n*CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri);\n\nint CMS_RecipientInfo_kari_get0_orig_id(CMS_RecipientInfo *ri,\n                                        X509_ALGOR **pubalg,\n                                        ASN1_BIT_STRING **pubkey,\n                                        ASN1_OCTET_STRING **keyid,\n                                        X509_NAME **issuer,\n                                        ASN1_INTEGER **sno);\n\nint CMS_RecipientInfo_kari_orig_id_cmp(CMS_RecipientInfo *ri, X509 *cert);\n\nint CMS_RecipientEncryptedKey_get0_id(CMS_RecipientEncryptedKey *rek,\n                                      ASN1_OCTET_STRING **keyid,\n                                      ASN1_GENERALIZEDTIME **tm,\n                                      CMS_OtherKeyAttribute **other,\n                                      X509_NAME **issuer, ASN1_INTEGER **sno);\nint CMS_RecipientEncryptedKey_cert_cmp(CMS_RecipientEncryptedKey *rek,\n                                       X509 *cert);\nint CMS_RecipientInfo_kari_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pk);\nEVP_CIPHER_CTX *CMS_RecipientInfo_kari_get0_ctx(CMS_RecipientInfo *ri);\nint CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms,\n                                   CMS_RecipientInfo *ri,\n                                   CMS_RecipientEncryptedKey *rek);\n\nint CMS_SharedInfo_encode(unsigned char **pder, X509_ALGOR *kekalg,\n                          ASN1_OCTET_STRING *ukm, int keylen);\n\n/* Backward compatibility for spelling errors. */\n# define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM\n# define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \\\n    CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/cmserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMSERR_H\n# define HEADER_CMSERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CMS\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_CMS_strings(void);\n\n/*\n * CMS function codes.\n */\n#  define CMS_F_CHECK_CONTENT                              99\n#  define CMS_F_CMS_ADD0_CERT                              164\n#  define CMS_F_CMS_ADD0_RECIPIENT_KEY                     100\n#  define CMS_F_CMS_ADD0_RECIPIENT_PASSWORD                165\n#  define CMS_F_CMS_ADD1_RECEIPTREQUEST                    158\n#  define CMS_F_CMS_ADD1_RECIPIENT_CERT                    101\n#  define CMS_F_CMS_ADD1_SIGNER                            102\n#  define CMS_F_CMS_ADD1_SIGNINGTIME                       103\n#  define CMS_F_CMS_COMPRESS                               104\n#  define CMS_F_CMS_COMPRESSEDDATA_CREATE                  105\n#  define CMS_F_CMS_COMPRESSEDDATA_INIT_BIO                106\n#  define CMS_F_CMS_COPY_CONTENT                           107\n#  define CMS_F_CMS_COPY_MESSAGEDIGEST                     108\n#  define CMS_F_CMS_DATA                                   109\n#  define CMS_F_CMS_DATAFINAL                              110\n#  define CMS_F_CMS_DATAINIT                               111\n#  define CMS_F_CMS_DECRYPT                                112\n#  define CMS_F_CMS_DECRYPT_SET1_KEY                       113\n#  define CMS_F_CMS_DECRYPT_SET1_PASSWORD                  166\n#  define CMS_F_CMS_DECRYPT_SET1_PKEY                      114\n#  define CMS_F_CMS_DIGESTALGORITHM_FIND_CTX               115\n#  define CMS_F_CMS_DIGESTALGORITHM_INIT_BIO               116\n#  define CMS_F_CMS_DIGESTEDDATA_DO_FINAL                  117\n#  define CMS_F_CMS_DIGEST_VERIFY                          118\n#  define CMS_F_CMS_ENCODE_RECEIPT                         161\n#  define CMS_F_CMS_ENCRYPT                                119\n#  define CMS_F_CMS_ENCRYPTEDCONTENT_INIT                  179\n#  define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO              120\n#  define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT                  121\n#  define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT                  122\n#  define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY                 123\n#  define CMS_F_CMS_ENVELOPEDDATA_CREATE                   124\n#  define CMS_F_CMS_ENVELOPEDDATA_INIT_BIO                 125\n#  define CMS_F_CMS_ENVELOPED_DATA_INIT                    126\n#  define CMS_F_CMS_ENV_ASN1_CTRL                          171\n#  define CMS_F_CMS_FINAL                                  127\n#  define CMS_F_CMS_GET0_CERTIFICATE_CHOICES               128\n#  define CMS_F_CMS_GET0_CONTENT                           129\n#  define CMS_F_CMS_GET0_ECONTENT_TYPE                     130\n#  define CMS_F_CMS_GET0_ENVELOPED                         131\n#  define CMS_F_CMS_GET0_REVOCATION_CHOICES                132\n#  define CMS_F_CMS_GET0_SIGNED                            133\n#  define CMS_F_CMS_MSGSIGDIGEST_ADD1                      162\n#  define CMS_F_CMS_RECEIPTREQUEST_CREATE0                 159\n#  define CMS_F_CMS_RECEIPT_VERIFY                         160\n#  define CMS_F_CMS_RECIPIENTINFO_DECRYPT                  134\n#  define CMS_F_CMS_RECIPIENTINFO_ENCRYPT                  169\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT             178\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG            175\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID        173\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS           172\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP         174\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT            135\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT            136\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID            137\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP             138\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP            139\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT             140\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT             141\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS           142\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID      143\n#  define CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT               167\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_KEY                 144\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD            168\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_PKEY                145\n#  define CMS_F_CMS_SD_ASN1_CTRL                           170\n#  define CMS_F_CMS_SET1_IAS                               176\n#  define CMS_F_CMS_SET1_KEYID                             177\n#  define CMS_F_CMS_SET1_SIGNERIDENTIFIER                  146\n#  define CMS_F_CMS_SET_DETACHED                           147\n#  define CMS_F_CMS_SIGN                                   148\n#  define CMS_F_CMS_SIGNED_DATA_INIT                       149\n#  define CMS_F_CMS_SIGNERINFO_CONTENT_SIGN                150\n#  define CMS_F_CMS_SIGNERINFO_SIGN                        151\n#  define CMS_F_CMS_SIGNERINFO_VERIFY                      152\n#  define CMS_F_CMS_SIGNERINFO_VERIFY_CERT                 153\n#  define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT              154\n#  define CMS_F_CMS_SIGN_RECEIPT                           163\n#  define CMS_F_CMS_SI_CHECK_ATTRIBUTES                    183\n#  define CMS_F_CMS_STREAM                                 155\n#  define CMS_F_CMS_UNCOMPRESS                             156\n#  define CMS_F_CMS_VERIFY                                 157\n#  define CMS_F_KEK_UNWRAP_KEY                             180\n\n/*\n * CMS reason codes.\n */\n#  define CMS_R_ADD_SIGNER_ERROR                           99\n#  define CMS_R_ATTRIBUTE_ERROR                            161\n#  define CMS_R_CERTIFICATE_ALREADY_PRESENT                175\n#  define CMS_R_CERTIFICATE_HAS_NO_KEYID                   160\n#  define CMS_R_CERTIFICATE_VERIFY_ERROR                   100\n#  define CMS_R_CIPHER_INITIALISATION_ERROR                101\n#  define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR      102\n#  define CMS_R_CMS_DATAFINAL_ERROR                        103\n#  define CMS_R_CMS_LIB                                    104\n#  define CMS_R_CONTENTIDENTIFIER_MISMATCH                 170\n#  define CMS_R_CONTENT_NOT_FOUND                          105\n#  define CMS_R_CONTENT_TYPE_MISMATCH                      171\n#  define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA           106\n#  define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA            107\n#  define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA               108\n#  define CMS_R_CONTENT_VERIFY_ERROR                       109\n#  define CMS_R_CTRL_ERROR                                 110\n#  define CMS_R_CTRL_FAILURE                               111\n#  define CMS_R_DECRYPT_ERROR                              112\n#  define CMS_R_ERROR_GETTING_PUBLIC_KEY                   113\n#  define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE      114\n#  define CMS_R_ERROR_SETTING_KEY                          115\n#  define CMS_R_ERROR_SETTING_RECIPIENTINFO                116\n#  define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH               117\n#  define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER           176\n#  define CMS_R_INVALID_KEY_LENGTH                         118\n#  define CMS_R_MD_BIO_INIT_ERROR                          119\n#  define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH       120\n#  define CMS_R_MESSAGEDIGEST_WRONG_LENGTH                 121\n#  define CMS_R_MSGSIGDIGEST_ERROR                         172\n#  define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE          162\n#  define CMS_R_MSGSIGDIGEST_WRONG_LENGTH                  163\n#  define CMS_R_NEED_ONE_SIGNER                            164\n#  define CMS_R_NOT_A_SIGNED_RECEIPT                       165\n#  define CMS_R_NOT_ENCRYPTED_DATA                         122\n#  define CMS_R_NOT_KEK                                    123\n#  define CMS_R_NOT_KEY_AGREEMENT                          181\n#  define CMS_R_NOT_KEY_TRANSPORT                          124\n#  define CMS_R_NOT_PWRI                                   177\n#  define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE            125\n#  define CMS_R_NO_CIPHER                                  126\n#  define CMS_R_NO_CONTENT                                 127\n#  define CMS_R_NO_CONTENT_TYPE                            173\n#  define CMS_R_NO_DEFAULT_DIGEST                          128\n#  define CMS_R_NO_DIGEST_SET                              129\n#  define CMS_R_NO_KEY                                     130\n#  define CMS_R_NO_KEY_OR_CERT                             174\n#  define CMS_R_NO_MATCHING_DIGEST                         131\n#  define CMS_R_NO_MATCHING_RECIPIENT                      132\n#  define CMS_R_NO_MATCHING_SIGNATURE                      166\n#  define CMS_R_NO_MSGSIGDIGEST                            167\n#  define CMS_R_NO_PASSWORD                                178\n#  define CMS_R_NO_PRIVATE_KEY                             133\n#  define CMS_R_NO_PUBLIC_KEY                              134\n#  define CMS_R_NO_RECEIPT_REQUEST                         168\n#  define CMS_R_NO_SIGNERS                                 135\n#  define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE     136\n#  define CMS_R_RECEIPT_DECODE_ERROR                       169\n#  define CMS_R_RECIPIENT_ERROR                            137\n#  define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND               138\n#  define CMS_R_SIGNFINAL_ERROR                            139\n#  define CMS_R_SMIME_TEXT_ERROR                           140\n#  define CMS_R_STORE_INIT_ERROR                           141\n#  define CMS_R_TYPE_NOT_COMPRESSED_DATA                   142\n#  define CMS_R_TYPE_NOT_DATA                              143\n#  define CMS_R_TYPE_NOT_DIGESTED_DATA                     144\n#  define CMS_R_TYPE_NOT_ENCRYPTED_DATA                    145\n#  define CMS_R_TYPE_NOT_ENVELOPED_DATA                    146\n#  define CMS_R_UNABLE_TO_FINALIZE_CONTEXT                 147\n#  define CMS_R_UNKNOWN_CIPHER                             148\n#  define CMS_R_UNKNOWN_DIGEST_ALGORITHM                   149\n#  define CMS_R_UNKNOWN_ID                                 150\n#  define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM          151\n#  define CMS_R_UNSUPPORTED_CONTENT_TYPE                   152\n#  define CMS_R_UNSUPPORTED_KEK_ALGORITHM                  153\n#  define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM       179\n#  define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE             155\n#  define CMS_R_UNSUPPORTED_RECIPIENT_TYPE                 154\n#  define CMS_R_UNSUPPORTED_TYPE                           156\n#  define CMS_R_UNWRAP_ERROR                               157\n#  define CMS_R_UNWRAP_FAILURE                             180\n#  define CMS_R_VERIFICATION_FAILURE                       158\n#  define CMS_R_WRAP_ERROR                                 159\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/comp.h",
    "content": "/*\n * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_COMP_H\n# define HEADER_COMP_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_COMP\n# include <openssl/crypto.h>\n# include <openssl/comperr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n\n\nCOMP_CTX *COMP_CTX_new(COMP_METHOD *meth);\nconst COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);\nint COMP_CTX_get_type(const COMP_CTX* comp);\nint COMP_get_type(const COMP_METHOD *meth);\nconst char *COMP_get_name(const COMP_METHOD *meth);\nvoid COMP_CTX_free(COMP_CTX *ctx);\n\nint COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,\n                        unsigned char *in, int ilen);\nint COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,\n                      unsigned char *in, int ilen);\n\nCOMP_METHOD *COMP_zlib(void);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n#define COMP_zlib_cleanup() while(0) continue\n#endif\n\n# ifdef HEADER_BIO_H\n#  ifdef ZLIB\nconst BIO_METHOD *BIO_f_zlib(void);\n#  endif\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/comperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_COMPERR_H\n# define HEADER_COMPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_COMP\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_COMP_strings(void);\n\n/*\n * COMP function codes.\n */\n#  define COMP_F_BIO_ZLIB_FLUSH                            99\n#  define COMP_F_BIO_ZLIB_NEW                              100\n#  define COMP_F_BIO_ZLIB_READ                             101\n#  define COMP_F_BIO_ZLIB_WRITE                            102\n#  define COMP_F_COMP_CTX_NEW                              103\n\n/*\n * COMP reason codes.\n */\n#  define COMP_R_ZLIB_DEFLATE_ERROR                        99\n#  define COMP_R_ZLIB_INFLATE_ERROR                        100\n#  define COMP_R_ZLIB_NOT_SUPPORTED                        101\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/conf.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef  HEADER_CONF_H\n# define HEADER_CONF_H\n\n# include <openssl/bio.h>\n# include <openssl/lhash.h>\n# include <openssl/safestack.h>\n# include <openssl/e_os2.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/conferr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct {\n    char *section;\n    char *name;\n    char *value;\n} CONF_VALUE;\n\nDEFINE_STACK_OF(CONF_VALUE)\nDEFINE_LHASH_OF(CONF_VALUE);\n\nstruct conf_st;\nstruct conf_method_st;\ntypedef struct conf_method_st CONF_METHOD;\n\nstruct conf_method_st {\n    const char *name;\n    CONF *(*create) (CONF_METHOD *meth);\n    int (*init) (CONF *conf);\n    int (*destroy) (CONF *conf);\n    int (*destroy_data) (CONF *conf);\n    int (*load_bio) (CONF *conf, BIO *bp, long *eline);\n    int (*dump) (const CONF *conf, BIO *bp);\n    int (*is_number) (const CONF *conf, char c);\n    int (*to_int) (const CONF *conf, char c);\n    int (*load) (CONF *conf, const char *name, long *eline);\n};\n\n/* Module definitions */\n\ntypedef struct conf_imodule_st CONF_IMODULE;\ntypedef struct conf_module_st CONF_MODULE;\n\nDEFINE_STACK_OF(CONF_MODULE)\nDEFINE_STACK_OF(CONF_IMODULE)\n\n/* DSO module function typedefs */\ntypedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf);\ntypedef void conf_finish_func (CONF_IMODULE *md);\n\n# define CONF_MFLAGS_IGNORE_ERRORS       0x1\n# define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2\n# define CONF_MFLAGS_SILENT              0x4\n# define CONF_MFLAGS_NO_DSO              0x8\n# define CONF_MFLAGS_IGNORE_MISSING_FILE 0x10\n# define CONF_MFLAGS_DEFAULT_SECTION     0x20\n\nint CONF_set_default_method(CONF_METHOD *meth);\nvoid CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash);\nLHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,\n                                long *eline);\n# ifndef OPENSSL_NO_STDIO\nLHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,\n                                   long *eline);\n# endif\nLHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp,\n                                    long *eline);\nSTACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf,\n                                       const char *section);\nchar *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,\n                      const char *name);\nlong CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,\n                     const char *name);\nvoid CONF_free(LHASH_OF(CONF_VALUE) *conf);\n#ifndef OPENSSL_NO_STDIO\nint CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out);\n#endif\nint CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out);\n\nDEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name))\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define OPENSSL_no_config() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_NO_LOAD_CONFIG, NULL)\n#endif\n\n/*\n * New conf code.  The semantics are different from the functions above. If\n * that wasn't the case, the above functions would have been replaced\n */\n\nstruct conf_st {\n    CONF_METHOD *meth;\n    void *meth_data;\n    LHASH_OF(CONF_VALUE) *data;\n};\n\nCONF *NCONF_new(CONF_METHOD *meth);\nCONF_METHOD *NCONF_default(void);\nCONF_METHOD *NCONF_WIN32(void);\nvoid NCONF_free(CONF *conf);\nvoid NCONF_free_data(CONF *conf);\n\nint NCONF_load(CONF *conf, const char *file, long *eline);\n# ifndef OPENSSL_NO_STDIO\nint NCONF_load_fp(CONF *conf, FILE *fp, long *eline);\n# endif\nint NCONF_load_bio(CONF *conf, BIO *bp, long *eline);\nSTACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf,\n                                        const char *section);\nchar *NCONF_get_string(const CONF *conf, const char *group, const char *name);\nint NCONF_get_number_e(const CONF *conf, const char *group, const char *name,\n                       long *result);\n#ifndef OPENSSL_NO_STDIO\nint NCONF_dump_fp(const CONF *conf, FILE *out);\n#endif\nint NCONF_dump_bio(const CONF *conf, BIO *out);\n\n#define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r)\n\n/* Module functions */\n\nint CONF_modules_load(const CONF *cnf, const char *appname,\n                      unsigned long flags);\nint CONF_modules_load_file(const char *filename, const char *appname,\n                           unsigned long flags);\nvoid CONF_modules_unload(int all);\nvoid CONF_modules_finish(void);\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define CONF_modules_free() while(0) continue\n#endif\nint CONF_module_add(const char *name, conf_init_func *ifunc,\n                    conf_finish_func *ffunc);\n\nconst char *CONF_imodule_get_name(const CONF_IMODULE *md);\nconst char *CONF_imodule_get_value(const CONF_IMODULE *md);\nvoid *CONF_imodule_get_usr_data(const CONF_IMODULE *md);\nvoid CONF_imodule_set_usr_data(CONF_IMODULE *md, void *usr_data);\nCONF_MODULE *CONF_imodule_get_module(const CONF_IMODULE *md);\nunsigned long CONF_imodule_get_flags(const CONF_IMODULE *md);\nvoid CONF_imodule_set_flags(CONF_IMODULE *md, unsigned long flags);\nvoid *CONF_module_get_usr_data(CONF_MODULE *pmod);\nvoid CONF_module_set_usr_data(CONF_MODULE *pmod, void *usr_data);\n\nchar *CONF_get1_default_config_file(void);\n\nint CONF_parse_list(const char *list, int sep, int nospc,\n                    int (*list_cb) (const char *elem, int len, void *usr),\n                    void *arg);\n\nvoid OPENSSL_load_builtin_modules(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/conf_api.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef  HEADER_CONF_API_H\n# define HEADER_CONF_API_H\n\n# include <openssl/lhash.h>\n# include <openssl/conf.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Up until OpenSSL 0.9.5a, this was new_section */\nCONF_VALUE *_CONF_new_section(CONF *conf, const char *section);\n/* Up until OpenSSL 0.9.5a, this was get_section */\nCONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);\n/* Up until OpenSSL 0.9.5a, this was CONF_get_section */\nSTACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,\n                                               const char *section);\n\nint _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);\nchar *_CONF_get_string(const CONF *conf, const char *section,\n                       const char *name);\nlong _CONF_get_number(const CONF *conf, const char *section,\n                      const char *name);\n\nint _CONF_new_data(CONF *conf);\nvoid _CONF_free_data(CONF *conf);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/conferr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CONFERR_H\n# define HEADER_CONFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_CONF_strings(void);\n\n/*\n * CONF function codes.\n */\n# define CONF_F_CONF_DUMP_FP                              104\n# define CONF_F_CONF_LOAD                                 100\n# define CONF_F_CONF_LOAD_FP                              103\n# define CONF_F_CONF_PARSE_LIST                           119\n# define CONF_F_DEF_LOAD                                  120\n# define CONF_F_DEF_LOAD_BIO                              121\n# define CONF_F_GET_NEXT_FILE                             107\n# define CONF_F_MODULE_ADD                                122\n# define CONF_F_MODULE_INIT                               115\n# define CONF_F_MODULE_LOAD_DSO                           117\n# define CONF_F_MODULE_RUN                                118\n# define CONF_F_NCONF_DUMP_BIO                            105\n# define CONF_F_NCONF_DUMP_FP                             106\n# define CONF_F_NCONF_GET_NUMBER_E                        112\n# define CONF_F_NCONF_GET_SECTION                         108\n# define CONF_F_NCONF_GET_STRING                          109\n# define CONF_F_NCONF_LOAD                                113\n# define CONF_F_NCONF_LOAD_BIO                            110\n# define CONF_F_NCONF_LOAD_FP                             114\n# define CONF_F_NCONF_NEW                                 111\n# define CONF_F_PROCESS_INCLUDE                           116\n# define CONF_F_SSL_MODULE_INIT                           123\n# define CONF_F_STR_COPY                                  101\n\n/*\n * CONF reason codes.\n */\n# define CONF_R_ERROR_LOADING_DSO                         110\n# define CONF_R_LIST_CANNOT_BE_NULL                       115\n# define CONF_R_MISSING_CLOSE_SQUARE_BRACKET              100\n# define CONF_R_MISSING_EQUAL_SIGN                        101\n# define CONF_R_MISSING_INIT_FUNCTION                     112\n# define CONF_R_MODULE_INITIALIZATION_ERROR               109\n# define CONF_R_NO_CLOSE_BRACE                            102\n# define CONF_R_NO_CONF                                   105\n# define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE           106\n# define CONF_R_NO_SECTION                                107\n# define CONF_R_NO_SUCH_FILE                              114\n# define CONF_R_NO_VALUE                                  108\n# define CONF_R_NUMBER_TOO_LARGE                          121\n# define CONF_R_RECURSIVE_DIRECTORY_INCLUDE               111\n# define CONF_R_SSL_COMMAND_SECTION_EMPTY                 117\n# define CONF_R_SSL_COMMAND_SECTION_NOT_FOUND             118\n# define CONF_R_SSL_SECTION_EMPTY                         119\n# define CONF_R_SSL_SECTION_NOT_FOUND                     120\n# define CONF_R_UNABLE_TO_CREATE_NEW_SECTION              103\n# define CONF_R_UNKNOWN_MODULE_NAME                       113\n# define CONF_R_VARIABLE_EXPANSION_TOO_LONG               116\n# define CONF_R_VARIABLE_HAS_NO_VALUE                     104\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/crypto.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CRYPTO_H\n# define HEADER_CRYPTO_H\n\n# include <stdlib.h>\n# include <time.h>\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n\n# include <openssl/safestack.h>\n# include <openssl/opensslv.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/opensslconf.h>\n# include <openssl/cryptoerr.h>\n\n# ifdef CHARSET_EBCDIC\n#  include <openssl/ebcdic.h>\n# endif\n\n/*\n * Resolve problems on some operating systems with symbol names that clash\n * one way or another\n */\n# include <openssl/symhacks.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/opensslv.h>\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSLeay                  OpenSSL_version_num\n#  define SSLeay_version          OpenSSL_version\n#  define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER\n#  define SSLEAY_VERSION          OPENSSL_VERSION\n#  define SSLEAY_CFLAGS           OPENSSL_CFLAGS\n#  define SSLEAY_BUILT_ON         OPENSSL_BUILT_ON\n#  define SSLEAY_PLATFORM         OPENSSL_PLATFORM\n#  define SSLEAY_DIR              OPENSSL_DIR\n\n/*\n * Old type for allocating dynamic locks. No longer used. Use the new thread\n * API instead.\n */\ntypedef struct {\n    int dummy;\n} CRYPTO_dynlock;\n\n# endif /* OPENSSL_API_COMPAT */\n\ntypedef void CRYPTO_RWLOCK;\n\nCRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void);\nint CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock);\nint CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock);\nint CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock);\nvoid CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock);\n\nint CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock);\n\n/*\n * The following can be used to detect memory leaks in the library. If\n * used, it turns on malloc checking\n */\n# define CRYPTO_MEM_CHECK_OFF     0x0   /* Control only */\n# define CRYPTO_MEM_CHECK_ON      0x1   /* Control and mode bit */\n# define CRYPTO_MEM_CHECK_ENABLE  0x2   /* Control and mode bit */\n# define CRYPTO_MEM_CHECK_DISABLE 0x3   /* Control only */\n\nstruct crypto_ex_data_st {\n    STACK_OF(void) *sk;\n};\nDEFINE_STACK_OF(void)\n\n/*\n * Per class, we have a STACK of function pointers.\n */\n# define CRYPTO_EX_INDEX_SSL              0\n# define CRYPTO_EX_INDEX_SSL_CTX          1\n# define CRYPTO_EX_INDEX_SSL_SESSION      2\n# define CRYPTO_EX_INDEX_X509             3\n# define CRYPTO_EX_INDEX_X509_STORE       4\n# define CRYPTO_EX_INDEX_X509_STORE_CTX   5\n# define CRYPTO_EX_INDEX_DH               6\n# define CRYPTO_EX_INDEX_DSA              7\n# define CRYPTO_EX_INDEX_EC_KEY           8\n# define CRYPTO_EX_INDEX_RSA              9\n# define CRYPTO_EX_INDEX_ENGINE          10\n# define CRYPTO_EX_INDEX_UI              11\n# define CRYPTO_EX_INDEX_BIO             12\n# define CRYPTO_EX_INDEX_APP             13\n# define CRYPTO_EX_INDEX_UI_METHOD       14\n# define CRYPTO_EX_INDEX_DRBG            15\n# define CRYPTO_EX_INDEX__COUNT          16\n\n/* No longer needed, so this is a no-op */\n#define OPENSSL_malloc_init() while(0) continue\n\nint CRYPTO_mem_ctrl(int mode);\n\n# define OPENSSL_malloc(num) \\\n        CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_zalloc(num) \\\n        CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_realloc(addr, num) \\\n        CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_clear_realloc(addr, old_num, num) \\\n        CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_clear_free(addr, num) \\\n        CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_free(addr) \\\n        CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_memdup(str, s) \\\n        CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_strdup(str) \\\n        CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_strndup(str, n) \\\n        CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_malloc(num) \\\n        CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_zalloc(num) \\\n        CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_free(addr) \\\n        CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_clear_free(addr, num) \\\n        CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_actual_size(ptr) \\\n        CRYPTO_secure_actual_size(ptr)\n\nsize_t OPENSSL_strlcpy(char *dst, const char *src, size_t siz);\nsize_t OPENSSL_strlcat(char *dst, const char *src, size_t siz);\nsize_t OPENSSL_strnlen(const char *str, size_t maxlen);\nchar *OPENSSL_buf2hexstr(const unsigned char *buffer, long len);\nunsigned char *OPENSSL_hexstr2buf(const char *str, long *len);\nint OPENSSL_hexchar2int(unsigned char c);\n\n# define OPENSSL_MALLOC_MAX_NELEMS(type)  (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))\n\nunsigned long OpenSSL_version_num(void);\nconst char *OpenSSL_version(int type);\n# define OPENSSL_VERSION          0\n# define OPENSSL_CFLAGS           1\n# define OPENSSL_BUILT_ON         2\n# define OPENSSL_PLATFORM         3\n# define OPENSSL_DIR              4\n# define OPENSSL_ENGINES_DIR      5\n\nint OPENSSL_issetugid(void);\n\ntypedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,\n                           int idx, long argl, void *argp);\ntypedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,\n                             int idx, long argl, void *argp);\ntypedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,\n                           void *from_d, int idx, long argl, void *argp);\n__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,\n                            CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,\n                            CRYPTO_EX_free *free_func);\n/* No longer use an index. */\nint CRYPTO_free_ex_index(int class_index, int idx);\n\n/*\n * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a\n * given class (invokes whatever per-class callbacks are applicable)\n */\nint CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);\nint CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to,\n                       const CRYPTO_EX_DATA *from);\n\nvoid CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);\n\n/*\n * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular\n * index (relative to the class type involved)\n */\nint CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val);\nvoid *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * This function cleans up all \"ex_data\" state. It mustn't be called under\n * potential race-conditions.\n */\n# define CRYPTO_cleanup_all_ex_data() while(0) continue\n\n/*\n * The old locking functions have been removed completely without compatibility\n * macros. This is because the old functions either could not properly report\n * errors, or the returned error values were not clearly documented.\n * Replacing the locking functions with no-ops would cause race condition\n * issues in the affected applications. It is far better for them to fail at\n * compile time.\n * On the other hand, the locking callbacks are no longer used.  Consequently,\n * the callback management functions can be safely replaced with no-op macros.\n */\n#  define CRYPTO_num_locks()            (1)\n#  define CRYPTO_set_locking_callback(func)\n#  define CRYPTO_get_locking_callback()         (NULL)\n#  define CRYPTO_set_add_lock_callback(func)\n#  define CRYPTO_get_add_lock_callback()        (NULL)\n\n/*\n * These defines where used in combination with the old locking callbacks,\n * they are not called anymore, but old code that's not called might still\n * use them.\n */\n#  define CRYPTO_LOCK             1\n#  define CRYPTO_UNLOCK           2\n#  define CRYPTO_READ             4\n#  define CRYPTO_WRITE            8\n\n/* This structure is no longer used */\ntypedef struct crypto_threadid_st {\n    int dummy;\n} CRYPTO_THREADID;\n/* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */\n#  define CRYPTO_THREADID_set_numeric(id, val)\n#  define CRYPTO_THREADID_set_pointer(id, ptr)\n#  define CRYPTO_THREADID_set_callback(threadid_func)   (0)\n#  define CRYPTO_THREADID_get_callback()                (NULL)\n#  define CRYPTO_THREADID_current(id)\n#  define CRYPTO_THREADID_cmp(a, b)                     (-1)\n#  define CRYPTO_THREADID_cpy(dest, src)\n#  define CRYPTO_THREADID_hash(id)                      (0UL)\n\n#  if OPENSSL_API_COMPAT < 0x10000000L\n#   define CRYPTO_set_id_callback(func)\n#   define CRYPTO_get_id_callback()                     (NULL)\n#   define CRYPTO_thread_id()                           (0UL)\n#  endif /* OPENSSL_API_COMPAT < 0x10000000L */\n\n#  define CRYPTO_set_dynlock_create_callback(dyn_create_function)\n#  define CRYPTO_set_dynlock_lock_callback(dyn_lock_function)\n#  define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function)\n#  define CRYPTO_get_dynlock_create_callback()          (NULL)\n#  define CRYPTO_get_dynlock_lock_callback()            (NULL)\n#  define CRYPTO_get_dynlock_destroy_callback()         (NULL)\n# endif /* OPENSSL_API_COMPAT < 0x10100000L */\n\nint CRYPTO_set_mem_functions(\n        void *(*m) (size_t, const char *, int),\n        void *(*r) (void *, size_t, const char *, int),\n        void (*f) (void *, const char *, int));\nint CRYPTO_set_mem_debug(int flag);\nvoid CRYPTO_get_mem_functions(\n        void *(**m) (size_t, const char *, int),\n        void *(**r) (void *, size_t, const char *, int),\n        void (**f) (void *, const char *, int));\n\nvoid *CRYPTO_malloc(size_t num, const char *file, int line);\nvoid *CRYPTO_zalloc(size_t num, const char *file, int line);\nvoid *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);\nchar *CRYPTO_strdup(const char *str, const char *file, int line);\nchar *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);\nvoid CRYPTO_free(void *ptr, const char *file, int line);\nvoid CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line);\nvoid *CRYPTO_realloc(void *addr, size_t num, const char *file, int line);\nvoid *CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num,\n                           const char *file, int line);\n\nint CRYPTO_secure_malloc_init(size_t sz, int minsize);\nint CRYPTO_secure_malloc_done(void);\nvoid *CRYPTO_secure_malloc(size_t num, const char *file, int line);\nvoid *CRYPTO_secure_zalloc(size_t num, const char *file, int line);\nvoid CRYPTO_secure_free(void *ptr, const char *file, int line);\nvoid CRYPTO_secure_clear_free(void *ptr, size_t num,\n                              const char *file, int line);\nint CRYPTO_secure_allocated(const void *ptr);\nint CRYPTO_secure_malloc_initialized(void);\nsize_t CRYPTO_secure_actual_size(void *ptr);\nsize_t CRYPTO_secure_used(void);\n\nvoid OPENSSL_cleanse(void *ptr, size_t len);\n\n# ifndef OPENSSL_NO_CRYPTO_MDEBUG\n#  define OPENSSL_mem_debug_push(info) \\\n        CRYPTO_mem_debug_push(info, OPENSSL_FILE, OPENSSL_LINE)\n#  define OPENSSL_mem_debug_pop() \\\n        CRYPTO_mem_debug_pop()\nint CRYPTO_mem_debug_push(const char *info, const char *file, int line);\nint CRYPTO_mem_debug_pop(void);\nvoid CRYPTO_get_alloc_counts(int *mcount, int *rcount, int *fcount);\n\n/*-\n * Debugging functions (enabled by CRYPTO_set_mem_debug(1))\n * The flag argument has the following significance:\n *   0:   called before the actual memory allocation has taken place\n *   1:   called after the actual memory allocation has taken place\n */\nvoid CRYPTO_mem_debug_malloc(void *addr, size_t num, int flag,\n        const char *file, int line);\nvoid CRYPTO_mem_debug_realloc(void *addr1, void *addr2, size_t num, int flag,\n        const char *file, int line);\nvoid CRYPTO_mem_debug_free(void *addr, int flag,\n        const char *file, int line);\n\nint CRYPTO_mem_leaks_cb(int (*cb) (const char *str, size_t len, void *u),\n                        void *u);\n#  ifndef OPENSSL_NO_STDIO\nint CRYPTO_mem_leaks_fp(FILE *);\n#  endif\nint CRYPTO_mem_leaks(BIO *bio);\n# endif\n\n/* die if we have to */\nossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OpenSSLDie(f,l,a) OPENSSL_die((a),(f),(l))\n# endif\n# define OPENSSL_assert(e) \\\n    (void)((e) ? 0 : (OPENSSL_die(\"assertion failed: \" #e, OPENSSL_FILE, OPENSSL_LINE), 1))\n\nint OPENSSL_isservice(void);\n\nint FIPS_mode(void);\nint FIPS_mode_set(int r);\n\nvoid OPENSSL_init(void);\n# ifdef OPENSSL_SYS_UNIX\nvoid OPENSSL_fork_prepare(void);\nvoid OPENSSL_fork_parent(void);\nvoid OPENSSL_fork_child(void);\n# endif\n\nstruct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);\nint OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);\nint OPENSSL_gmtime_diff(int *pday, int *psec,\n                        const struct tm *from, const struct tm *to);\n\n/*\n * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal.\n * It takes an amount of time dependent on |len|, but independent of the\n * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements\n * into a defined order as the return value when a != b is undefined, other\n * than to be non-zero.\n */\nint CRYPTO_memcmp(const void * in_a, const void * in_b, size_t len);\n\n/* Standard initialisation options */\n# define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS 0x00000001L\n# define OPENSSL_INIT_LOAD_CRYPTO_STRINGS    0x00000002L\n# define OPENSSL_INIT_ADD_ALL_CIPHERS        0x00000004L\n# define OPENSSL_INIT_ADD_ALL_DIGESTS        0x00000008L\n# define OPENSSL_INIT_NO_ADD_ALL_CIPHERS     0x00000010L\n# define OPENSSL_INIT_NO_ADD_ALL_DIGESTS     0x00000020L\n# define OPENSSL_INIT_LOAD_CONFIG            0x00000040L\n# define OPENSSL_INIT_NO_LOAD_CONFIG         0x00000080L\n# define OPENSSL_INIT_ASYNC                  0x00000100L\n# define OPENSSL_INIT_ENGINE_RDRAND          0x00000200L\n# define OPENSSL_INIT_ENGINE_DYNAMIC         0x00000400L\n# define OPENSSL_INIT_ENGINE_OPENSSL         0x00000800L\n# define OPENSSL_INIT_ENGINE_CRYPTODEV       0x00001000L\n# define OPENSSL_INIT_ENGINE_CAPI            0x00002000L\n# define OPENSSL_INIT_ENGINE_PADLOCK         0x00004000L\n# define OPENSSL_INIT_ENGINE_AFALG           0x00008000L\n/* OPENSSL_INIT_ZLIB                         0x00010000L */\n# define OPENSSL_INIT_ATFORK                 0x00020000L\n/* OPENSSL_INIT_BASE_ONLY                    0x00040000L */\n# define OPENSSL_INIT_NO_ATEXIT              0x00080000L\n/* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */\n/* Max OPENSSL_INIT flag value is 0x80000000 */\n\n/* openssl and dasync not counted as builtin */\n# define OPENSSL_INIT_ENGINE_ALL_BUILTIN \\\n    (OPENSSL_INIT_ENGINE_RDRAND | OPENSSL_INIT_ENGINE_DYNAMIC \\\n    | OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | \\\n    OPENSSL_INIT_ENGINE_PADLOCK)\n\n\n/* Library initialisation functions */\nvoid OPENSSL_cleanup(void);\nint OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);\nint OPENSSL_atexit(void (*handler)(void));\nvoid OPENSSL_thread_stop(void);\n\n/* Low-level control of initialization */\nOPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void);\n# ifndef OPENSSL_NO_STDIO\nint OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings,\n                                     const char *config_filename);\nvoid OPENSSL_INIT_set_config_file_flags(OPENSSL_INIT_SETTINGS *settings,\n                                        unsigned long flags);\nint OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,\n                                    const char *config_appname);\n# endif\nvoid OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings);\n\n# if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)\n#  if defined(_WIN32)\n#   if defined(BASETYPES) || defined(_WINDEF_H)\n/* application has to include <windows.h> in order to use this */\ntypedef DWORD CRYPTO_THREAD_LOCAL;\ntypedef DWORD CRYPTO_THREAD_ID;\n\ntypedef LONG CRYPTO_ONCE;\n#    define CRYPTO_ONCE_STATIC_INIT 0\n#   endif\n#  else\n#   include <pthread.h>\ntypedef pthread_once_t CRYPTO_ONCE;\ntypedef pthread_key_t CRYPTO_THREAD_LOCAL;\ntypedef pthread_t CRYPTO_THREAD_ID;\n\n#   define CRYPTO_ONCE_STATIC_INIT PTHREAD_ONCE_INIT\n#  endif\n# endif\n\n# if !defined(CRYPTO_ONCE_STATIC_INIT)\ntypedef unsigned int CRYPTO_ONCE;\ntypedef unsigned int CRYPTO_THREAD_LOCAL;\ntypedef unsigned int CRYPTO_THREAD_ID;\n#  define CRYPTO_ONCE_STATIC_INIT 0\n# endif\n\nint CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void));\n\nint CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *));\nvoid *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key);\nint CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val);\nint CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key);\n\nCRYPTO_THREAD_ID CRYPTO_THREAD_get_current_id(void);\nint CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/cryptoerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CRYPTOERR_H\n# define HEADER_CRYPTOERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_CRYPTO_strings(void);\n\n/*\n * CRYPTO function codes.\n */\n# define CRYPTO_F_CMAC_CTX_NEW                            120\n# define CRYPTO_F_CRYPTO_DUP_EX_DATA                      110\n# define CRYPTO_F_CRYPTO_FREE_EX_DATA                     111\n# define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX                 100\n# define CRYPTO_F_CRYPTO_MEMDUP                           115\n# define CRYPTO_F_CRYPTO_NEW_EX_DATA                      112\n# define CRYPTO_F_CRYPTO_OCB128_COPY_CTX                  121\n# define CRYPTO_F_CRYPTO_OCB128_INIT                      122\n# define CRYPTO_F_CRYPTO_SET_EX_DATA                      102\n# define CRYPTO_F_FIPS_MODE_SET                           109\n# define CRYPTO_F_GET_AND_LOCK                            113\n# define CRYPTO_F_OPENSSL_ATEXIT                          114\n# define CRYPTO_F_OPENSSL_BUF2HEXSTR                      117\n# define CRYPTO_F_OPENSSL_FOPEN                           119\n# define CRYPTO_F_OPENSSL_HEXSTR2BUF                      118\n# define CRYPTO_F_OPENSSL_INIT_CRYPTO                     116\n# define CRYPTO_F_OPENSSL_LH_NEW                          126\n# define CRYPTO_F_OPENSSL_SK_DEEP_COPY                    127\n# define CRYPTO_F_OPENSSL_SK_DUP                          128\n# define CRYPTO_F_PKEY_HMAC_INIT                          123\n# define CRYPTO_F_PKEY_POLY1305_INIT                      124\n# define CRYPTO_F_PKEY_SIPHASH_INIT                       125\n# define CRYPTO_F_SK_RESERVE                              129\n\n/*\n * CRYPTO reason codes.\n */\n# define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED                 101\n# define CRYPTO_R_ILLEGAL_HEX_DIGIT                       102\n# define CRYPTO_R_ODD_NUMBER_OF_DIGITS                    103\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ct.h",
    "content": "/*\n * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CT_H\n# define HEADER_CT_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CT\n# include <openssl/ossl_typ.h>\n# include <openssl/safestack.h>\n# include <openssl/x509.h>\n# include <openssl/cterr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n\n/* Minimum RSA key size, from RFC6962 */\n# define SCT_MIN_RSA_BITS 2048\n\n/* All hashes are SHA256 in v1 of Certificate Transparency */\n# define CT_V1_HASHLEN SHA256_DIGEST_LENGTH\n\ntypedef enum {\n    CT_LOG_ENTRY_TYPE_NOT_SET = -1,\n    CT_LOG_ENTRY_TYPE_X509 = 0,\n    CT_LOG_ENTRY_TYPE_PRECERT = 1\n} ct_log_entry_type_t;\n\ntypedef enum {\n    SCT_VERSION_NOT_SET = -1,\n    SCT_VERSION_V1 = 0\n} sct_version_t;\n\ntypedef enum {\n    SCT_SOURCE_UNKNOWN,\n    SCT_SOURCE_TLS_EXTENSION,\n    SCT_SOURCE_X509V3_EXTENSION,\n    SCT_SOURCE_OCSP_STAPLED_RESPONSE\n} sct_source_t;\n\ntypedef enum {\n    SCT_VALIDATION_STATUS_NOT_SET,\n    SCT_VALIDATION_STATUS_UNKNOWN_LOG,\n    SCT_VALIDATION_STATUS_VALID,\n    SCT_VALIDATION_STATUS_INVALID,\n    SCT_VALIDATION_STATUS_UNVERIFIED,\n    SCT_VALIDATION_STATUS_UNKNOWN_VERSION\n} sct_validation_status_t;\n\nDEFINE_STACK_OF(SCT)\nDEFINE_STACK_OF(CTLOG)\n\n/******************************************\n * CT policy evaluation context functions *\n ******************************************/\n\n/*\n * Creates a new, empty policy evaluation context.\n * The caller is responsible for calling CT_POLICY_EVAL_CTX_free when finished\n * with the CT_POLICY_EVAL_CTX.\n */\nCT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void);\n\n/* Deletes a policy evaluation context and anything it owns. */\nvoid CT_POLICY_EVAL_CTX_free(CT_POLICY_EVAL_CTX *ctx);\n\n/* Gets the peer certificate that the SCTs are for */\nX509* CT_POLICY_EVAL_CTX_get0_cert(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the certificate associated with the received SCTs.\n * Increments the reference count of cert.\n * Returns 1 on success, 0 otherwise.\n */\nint CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert);\n\n/* Gets the issuer of the aforementioned certificate */\nX509* CT_POLICY_EVAL_CTX_get0_issuer(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the issuer of the certificate associated with the received SCTs.\n * Increments the reference count of issuer.\n * Returns 1 on success, 0 otherwise.\n */\nint CT_POLICY_EVAL_CTX_set1_issuer(CT_POLICY_EVAL_CTX *ctx, X509 *issuer);\n\n/* Gets the CT logs that are trusted sources of SCTs */\nconst CTLOG_STORE *CT_POLICY_EVAL_CTX_get0_log_store(const CT_POLICY_EVAL_CTX *ctx);\n\n/* Sets the log store that is in use. It must outlive the CT_POLICY_EVAL_CTX. */\nvoid CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE(CT_POLICY_EVAL_CTX *ctx,\n                                               CTLOG_STORE *log_store);\n\n/*\n * Gets the time, in milliseconds since the Unix epoch, that will be used as the\n * current time when checking whether an SCT was issued in the future.\n * Such SCTs will fail validation, as required by RFC6962.\n */\nuint64_t CT_POLICY_EVAL_CTX_get_time(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the time to evaluate SCTs against, in milliseconds since the Unix epoch.\n * If an SCT's timestamp is after this time, it will be interpreted as having\n * been issued in the future. RFC6962 states that \"TLS clients MUST reject SCTs\n * whose timestamp is in the future\", so an SCT will not validate in this case.\n */\nvoid CT_POLICY_EVAL_CTX_set_time(CT_POLICY_EVAL_CTX *ctx, uint64_t time_in_ms);\n\n/*****************\n * SCT functions *\n *****************/\n\n/*\n * Creates a new, blank SCT.\n * The caller is responsible for calling SCT_free when finished with the SCT.\n */\nSCT *SCT_new(void);\n\n/*\n * Creates a new SCT from some base64-encoded strings.\n * The caller is responsible for calling SCT_free when finished with the SCT.\n */\nSCT *SCT_new_from_base64(unsigned char version,\n                         const char *logid_base64,\n                         ct_log_entry_type_t entry_type,\n                         uint64_t timestamp,\n                         const char *extensions_base64,\n                         const char *signature_base64);\n\n/*\n * Frees the SCT and the underlying data structures.\n */\nvoid SCT_free(SCT *sct);\n\n/*\n * Free a stack of SCTs, and the underlying SCTs themselves.\n * Intended to be compatible with X509V3_EXT_FREE.\n */\nvoid SCT_LIST_free(STACK_OF(SCT) *a);\n\n/*\n * Returns the version of the SCT.\n */\nsct_version_t SCT_get_version(const SCT *sct);\n\n/*\n * Set the version of an SCT.\n * Returns 1 on success, 0 if the version is unrecognized.\n */\n__owur int SCT_set_version(SCT *sct, sct_version_t version);\n\n/*\n * Returns the log entry type of the SCT.\n */\nct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct);\n\n/*\n * Set the log entry type of an SCT.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type);\n\n/*\n * Gets the ID of the log that an SCT came from.\n * Ownership of the log ID remains with the SCT.\n * Returns the length of the log ID.\n */\nsize_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);\n\n/*\n * Set the log ID of an SCT to point directly to the *log_id specified.\n * The SCT takes ownership of the specified pointer.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len);\n\n/*\n * Set the log ID of an SCT.\n * This makes a copy of the log_id.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id,\n                           size_t log_id_len);\n\n/*\n * Returns the timestamp for the SCT (epoch time in milliseconds).\n */\nuint64_t SCT_get_timestamp(const SCT *sct);\n\n/*\n * Set the timestamp of an SCT (epoch time in milliseconds).\n */\nvoid SCT_set_timestamp(SCT *sct, uint64_t timestamp);\n\n/*\n * Return the NID for the signature used by the SCT.\n * For CT v1, this will be either NID_sha256WithRSAEncryption or\n * NID_ecdsa_with_SHA256 (or NID_undef if incorrect/unset).\n */\nint SCT_get_signature_nid(const SCT *sct);\n\n/*\n * Set the signature type of an SCT\n * For CT v1, this should be either NID_sha256WithRSAEncryption or\n * NID_ecdsa_with_SHA256.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_signature_nid(SCT *sct, int nid);\n\n/*\n * Set *ext to point to the extension data for the SCT. ext must not be NULL.\n * The SCT retains ownership of this pointer.\n * Returns length of the data pointed to.\n */\nsize_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);\n\n/*\n * Set the extensions of an SCT to point directly to the *ext specified.\n * The SCT takes ownership of the specified pointer.\n */\nvoid SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);\n\n/*\n * Set the extensions of an SCT.\n * This takes a copy of the ext.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_extensions(SCT *sct, const unsigned char *ext,\n                               size_t ext_len);\n\n/*\n * Set *sig to point to the signature for the SCT. sig must not be NULL.\n * The SCT retains ownership of this pointer.\n * Returns length of the data pointed to.\n */\nsize_t SCT_get0_signature(const SCT *sct, unsigned char **sig);\n\n/*\n * Set the signature of an SCT to point directly to the *sig specified.\n * The SCT takes ownership of the specified pointer.\n */\nvoid SCT_set0_signature(SCT *sct, unsigned char *sig, size_t sig_len);\n\n/*\n * Set the signature of an SCT to be a copy of the *sig specified.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_signature(SCT *sct, const unsigned char *sig,\n                              size_t sig_len);\n\n/*\n * The origin of this SCT, e.g. TLS extension, OCSP response, etc.\n */\nsct_source_t SCT_get_source(const SCT *sct);\n\n/*\n * Set the origin of this SCT, e.g. TLS extension, OCSP response, etc.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_source(SCT *sct, sct_source_t source);\n\n/*\n * Returns a text string describing the validation status of |sct|.\n */\nconst char *SCT_validation_status_string(const SCT *sct);\n\n/*\n * Pretty-prints an |sct| to |out|.\n * It will be indented by the number of spaces specified by |indent|.\n * If |logs| is not NULL, it will be used to lookup the CT log that the SCT came\n * from, so that the log name can be printed.\n */\nvoid SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);\n\n/*\n * Pretty-prints an |sct_list| to |out|.\n * It will be indented by the number of spaces specified by |indent|.\n * SCTs will be delimited by |separator|.\n * If |logs| is not NULL, it will be used to lookup the CT log that each SCT\n * came from, so that the log names can be printed.\n */\nvoid SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,\n                    const char *separator, const CTLOG_STORE *logs);\n\n/*\n * Gets the last result of validating this SCT.\n * If it has not been validated yet, returns SCT_VALIDATION_STATUS_NOT_SET.\n */\nsct_validation_status_t SCT_get_validation_status(const SCT *sct);\n\n/*\n * Validates the given SCT with the provided context.\n * Sets the \"validation_status\" field of the SCT.\n * Returns 1 if the SCT is valid and the signature verifies.\n * Returns 0 if the SCT is invalid or could not be verified.\n * Returns -1 if an error occurs.\n */\n__owur int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Validates the given list of SCTs with the provided context.\n * Sets the \"validation_status\" field of each SCT.\n * Returns 1 if there are no invalid SCTs and all signatures verify.\n * Returns 0 if at least one SCT is invalid or could not be verified.\n * Returns a negative integer if an error occurs.\n */\n__owur int SCT_LIST_validate(const STACK_OF(SCT) *scts,\n                             CT_POLICY_EVAL_CTX *ctx);\n\n\n/*********************************\n * SCT parsing and serialisation *\n *********************************/\n\n/*\n * Serialize (to TLS format) a stack of SCTs and return the length.\n * \"a\" must not be NULL.\n * If \"pp\" is NULL, just return the length of what would have been serialized.\n * If \"pp\" is not NULL and \"*pp\" is null, function will allocate a new pointer\n * for data that caller is responsible for freeing (only if function returns\n * successfully).\n * If \"pp\" is NULL and \"*pp\" is not NULL, caller is responsible for ensuring\n * that \"*pp\" is large enough to accept all of the serialized data.\n * Returns < 0 on error, >= 0 indicating bytes written (or would have been)\n * on success.\n */\n__owur int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);\n\n/*\n * Convert TLS format SCT list to a stack of SCTs.\n * If \"a\" or \"*a\" is NULL, a new stack will be created that the caller is\n * responsible for freeing (by calling SCT_LIST_free).\n * \"**pp\" and \"*pp\" must not be NULL.\n * Upon success, \"*pp\" will point to after the last bytes read, and a stack\n * will be returned.\n * Upon failure, a NULL pointer will be returned, and the position of \"*pp\" is\n * not defined.\n */\nSTACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,\n                            size_t len);\n\n/*\n * Serialize (to DER format) a stack of SCTs and return the length.\n * \"a\" must not be NULL.\n * If \"pp\" is NULL, just returns the length of what would have been serialized.\n * If \"pp\" is not NULL and \"*pp\" is null, function will allocate a new pointer\n * for data that caller is responsible for freeing (only if function returns\n * successfully).\n * If \"pp\" is NULL and \"*pp\" is not NULL, caller is responsible for ensuring\n * that \"*pp\" is large enough to accept all of the serialized data.\n * Returns < 0 on error, >= 0 indicating bytes written (or would have been)\n * on success.\n */\n__owur int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);\n\n/*\n * Parses an SCT list in DER format and returns it.\n * If \"a\" or \"*a\" is NULL, a new stack will be created that the caller is\n * responsible for freeing (by calling SCT_LIST_free).\n * \"**pp\" and \"*pp\" must not be NULL.\n * Upon success, \"*pp\" will point to after the last bytes read, and a stack\n * will be returned.\n * Upon failure, a NULL pointer will be returned, and the position of \"*pp\" is\n * not defined.\n */\nSTACK_OF(SCT) *d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,\n                            long len);\n\n/*\n * Serialize (to TLS format) an |sct| and write it to |out|.\n * If |out| is null, no SCT will be output but the length will still be returned.\n * If |out| points to a null pointer, a string will be allocated to hold the\n * TLS-format SCT. It is the responsibility of the caller to free it.\n * If |out| points to an allocated string, the TLS-format SCT will be written\n * to it.\n * The length of the SCT in TLS format will be returned.\n */\n__owur int i2o_SCT(const SCT *sct, unsigned char **out);\n\n/*\n * Parses an SCT in TLS format and returns it.\n * If |psct| is not null, it will end up pointing to the parsed SCT. If it\n * already points to a non-null pointer, the pointer will be free'd.\n * |in| should be a pointer to a string containing the TLS-format SCT.\n * |in| will be advanced to the end of the SCT if parsing succeeds.\n * |len| should be the length of the SCT in |in|.\n * Returns NULL if an error occurs.\n * If the SCT is an unsupported version, only the SCT's 'sct' and 'sct_len'\n * fields will be populated (with |in| and |len| respectively).\n */\nSCT *o2i_SCT(SCT **psct, const unsigned char **in, size_t len);\n\n/********************\n * CT log functions *\n ********************/\n\n/*\n * Creates a new CT log instance with the given |public_key| and |name|.\n * Takes ownership of |public_key| but copies |name|.\n * Returns NULL if malloc fails or if |public_key| cannot be converted to DER.\n * Should be deleted by the caller using CTLOG_free when no longer needed.\n */\nCTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name);\n\n/*\n * Creates a new CTLOG instance with the base64-encoded SubjectPublicKeyInfo DER\n * in |pkey_base64|. The |name| is a string to help users identify this log.\n * Returns 1 on success, 0 on failure.\n * Should be deleted by the caller using CTLOG_free when no longer needed.\n */\nint CTLOG_new_from_base64(CTLOG ** ct_log,\n                          const char *pkey_base64, const char *name);\n\n/*\n * Deletes a CT log instance and its fields.\n */\nvoid CTLOG_free(CTLOG *log);\n\n/* Gets the name of the CT log */\nconst char *CTLOG_get0_name(const CTLOG *log);\n/* Gets the ID of the CT log */\nvoid CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id,\n                       size_t *log_id_len);\n/* Gets the public key of the CT log */\nEVP_PKEY *CTLOG_get0_public_key(const CTLOG *log);\n\n/**************************\n * CT log store functions *\n **************************/\n\n/*\n * Creates a new CT log store.\n * Should be deleted by the caller using CTLOG_STORE_free when no longer needed.\n */\nCTLOG_STORE *CTLOG_STORE_new(void);\n\n/*\n * Deletes a CT log store and all of the CT log instances held within.\n */\nvoid CTLOG_STORE_free(CTLOG_STORE *store);\n\n/*\n * Finds a CT log in the store based on its log ID.\n * Returns the CT log, or NULL if no match is found.\n */\nconst CTLOG *CTLOG_STORE_get0_log_by_id(const CTLOG_STORE *store,\n                                        const uint8_t *log_id,\n                                        size_t log_id_len);\n\n/*\n * Loads a CT log list into a |store| from a |file|.\n * Returns 1 if loading is successful, or 0 otherwise.\n */\n__owur int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file);\n\n/*\n * Loads the default CT log list into a |store|.\n * Returns 1 if loading is successful, or 0 otherwise.\n */\n__owur int CTLOG_STORE_load_default_file(CTLOG_STORE *store);\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/cterr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CTERR_H\n# define HEADER_CTERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CT\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_CT_strings(void);\n\n/*\n * CT function codes.\n */\n#  define CT_F_CTLOG_NEW                                   117\n#  define CT_F_CTLOG_NEW_FROM_BASE64                       118\n#  define CT_F_CTLOG_NEW_FROM_CONF                         119\n#  define CT_F_CTLOG_STORE_LOAD_CTX_NEW                    122\n#  define CT_F_CTLOG_STORE_LOAD_FILE                       123\n#  define CT_F_CTLOG_STORE_LOAD_LOG                        130\n#  define CT_F_CTLOG_STORE_NEW                             131\n#  define CT_F_CT_BASE64_DECODE                            124\n#  define CT_F_CT_POLICY_EVAL_CTX_NEW                      133\n#  define CT_F_CT_V1_LOG_ID_FROM_PKEY                      125\n#  define CT_F_I2O_SCT                                     107\n#  define CT_F_I2O_SCT_LIST                                108\n#  define CT_F_I2O_SCT_SIGNATURE                           109\n#  define CT_F_O2I_SCT                                     110\n#  define CT_F_O2I_SCT_LIST                                111\n#  define CT_F_O2I_SCT_SIGNATURE                           112\n#  define CT_F_SCT_CTX_NEW                                 126\n#  define CT_F_SCT_CTX_VERIFY                              128\n#  define CT_F_SCT_NEW                                     100\n#  define CT_F_SCT_NEW_FROM_BASE64                         127\n#  define CT_F_SCT_SET0_LOG_ID                             101\n#  define CT_F_SCT_SET1_EXTENSIONS                         114\n#  define CT_F_SCT_SET1_LOG_ID                             115\n#  define CT_F_SCT_SET1_SIGNATURE                          116\n#  define CT_F_SCT_SET_LOG_ENTRY_TYPE                      102\n#  define CT_F_SCT_SET_SIGNATURE_NID                       103\n#  define CT_F_SCT_SET_VERSION                             104\n\n/*\n * CT reason codes.\n */\n#  define CT_R_BASE64_DECODE_ERROR                         108\n#  define CT_R_INVALID_LOG_ID_LENGTH                       100\n#  define CT_R_LOG_CONF_INVALID                            109\n#  define CT_R_LOG_CONF_INVALID_KEY                        110\n#  define CT_R_LOG_CONF_MISSING_DESCRIPTION                111\n#  define CT_R_LOG_CONF_MISSING_KEY                        112\n#  define CT_R_LOG_KEY_INVALID                             113\n#  define CT_R_SCT_FUTURE_TIMESTAMP                        116\n#  define CT_R_SCT_INVALID                                 104\n#  define CT_R_SCT_INVALID_SIGNATURE                       107\n#  define CT_R_SCT_LIST_INVALID                            105\n#  define CT_R_SCT_LOG_ID_MISMATCH                         114\n#  define CT_R_SCT_NOT_SET                                 106\n#  define CT_R_SCT_UNSUPPORTED_VERSION                     115\n#  define CT_R_UNRECOGNIZED_SIGNATURE_NID                  101\n#  define CT_R_UNSUPPORTED_ENTRY_TYPE                      102\n#  define CT_R_UNSUPPORTED_VERSION                         103\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/des.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DES_H\n# define HEADER_DES_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DES\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n# include <openssl/e_os2.h>\n\ntypedef unsigned int DES_LONG;\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\ntypedef unsigned char DES_cblock[8];\ntypedef /* const */ unsigned char const_DES_cblock[8];\n/*\n * With \"const\", gcc 2.8.1 on Solaris thinks that DES_cblock * and\n * const_DES_cblock * are incompatible pointer types.\n */\n\ntypedef struct DES_ks {\n    union {\n        DES_cblock cblock;\n        /*\n         * make sure things are correct size on machines with 8 byte longs\n         */\n        DES_LONG deslong[2];\n    } ks[16];\n} DES_key_schedule;\n\n# define DES_KEY_SZ      (sizeof(DES_cblock))\n# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule))\n\n# define DES_ENCRYPT     1\n# define DES_DECRYPT     0\n\n# define DES_CBC_MODE    0\n# define DES_PCBC_MODE   1\n\n# define DES_ecb2_encrypt(i,o,k1,k2,e) \\\n        DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))\n\n# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \\\n        DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))\n\n# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \\\n        DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))\n\n# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \\\n        DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))\n\nOPENSSL_DECLARE_GLOBAL(int, DES_check_key); /* defaults to false */\n# define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key)\n\nconst char *DES_options(void);\nvoid DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,\n                      DES_key_schedule *ks1, DES_key_schedule *ks2,\n                      DES_key_schedule *ks3, int enc);\nDES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output,\n                       long length, DES_key_schedule *schedule,\n                       const_DES_cblock *ivec);\n/* DES_cbc_encrypt does not update the IV!  Use DES_ncbc_encrypt instead. */\nvoid DES_cbc_encrypt(const unsigned char *input, unsigned char *output,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec, int enc);\nvoid DES_ncbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, int enc);\nvoid DES_xcbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, const_DES_cblock *inw,\n                      const_DES_cblock *outw, int enc);\nvoid DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec, int enc);\nvoid DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,\n                     DES_key_schedule *ks, int enc);\n\n/*\n * This is the DES encryption function that gets called by just about every\n * other DES routine in the library.  You should not use this function except\n * to implement 'modes' of DES.  I say this because the functions that call\n * this routine do the conversion from 'char *' to long, and this needs to be\n * done to make sure 'non-aligned' memory access do not occur.  The\n * characters are loaded 'little endian'. Data is a pointer to 2 unsigned\n * long's and ks is the DES_key_schedule to use.  enc, is non zero specifies\n * encryption, zero if decryption.\n */\nvoid DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);\n\n/*\n * This functions is the same as DES_encrypt1() except that the DES initial\n * permutation (IP) and final permutation (FP) have been left out.  As for\n * DES_encrypt1(), you should not use this function. It is used by the\n * routines in the library that implement triple DES. IP() DES_encrypt2()\n * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1()\n * DES_encrypt1() DES_encrypt1() except faster :-).\n */\nvoid DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc);\n\nvoid DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1,\n                  DES_key_schedule *ks2, DES_key_schedule *ks3);\nvoid DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1,\n                  DES_key_schedule *ks2, DES_key_schedule *ks3);\nvoid DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output,\n                          long length,\n                          DES_key_schedule *ks1, DES_key_schedule *ks2,\n                          DES_key_schedule *ks3, DES_cblock *ivec, int enc);\nvoid DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                            long length, DES_key_schedule *ks1,\n                            DES_key_schedule *ks2, DES_key_schedule *ks3,\n                            DES_cblock *ivec, int *num, int enc);\nvoid DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,\n                          int numbits, long length, DES_key_schedule *ks1,\n                          DES_key_schedule *ks2, DES_key_schedule *ks3,\n                          DES_cblock *ivec, int enc);\nvoid DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                            long length, DES_key_schedule *ks1,\n                            DES_key_schedule *ks2, DES_key_schedule *ks3,\n                            DES_cblock *ivec, int *num);\nchar *DES_fcrypt(const char *buf, const char *salt, char *ret);\nchar *DES_crypt(const char *buf, const char *salt);\nvoid DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec);\nvoid DES_pcbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, int enc);\nDES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],\n                        long length, int out_count, DES_cblock *seed);\nint DES_random_key(DES_cblock *ret);\nvoid DES_set_odd_parity(DES_cblock *key);\nint DES_check_key_parity(const_DES_cblock *key);\nint DES_is_weak_key(const_DES_cblock *key);\n/*\n * DES_set_key (= set_key = DES_key_sched = key_sched) calls\n * DES_set_key_checked if global variable DES_check_key is set,\n * DES_set_key_unchecked otherwise.\n */\nint DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule);\nint DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule);\nint DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule);\nvoid DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);\nvoid DES_string_to_key(const char *str, DES_cblock *key);\nvoid DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);\nvoid DES_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, DES_key_schedule *schedule,\n                       DES_cblock *ivec, int *num, int enc);\nvoid DES_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, DES_key_schedule *schedule,\n                       DES_cblock *ivec, int *num);\n\n# define DES_fixup_key_parity DES_set_odd_parity\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/dh.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DH_H\n# define HEADER_DH_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DH\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/dherr.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# ifndef OPENSSL_DH_MAX_MODULUS_BITS\n#  define OPENSSL_DH_MAX_MODULUS_BITS    10000\n# endif\n\n# define OPENSSL_DH_FIPS_MIN_MODULUS_BITS 1024\n\n# define DH_FLAG_CACHE_MONT_P     0x01\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define DH_FLAG_NO_EXP_CONSTTIME 0x00\n# endif\n\n/*\n * If this flag is set the DH method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define DH_FLAG_FIPS_METHOD                     0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define DH_FLAG_NON_FIPS_ALLOW                  0x0400\n\n/* Already defined in ossl_typ.h */\n/* typedef struct dh_st DH; */\n/* typedef struct dh_method DH_METHOD; */\n\nDECLARE_ASN1_ITEM(DHparams)\n\n# define DH_GENERATOR_2          2\n/* #define DH_GENERATOR_3       3 */\n# define DH_GENERATOR_5          5\n\n/* DH_check error codes */\n# define DH_CHECK_P_NOT_PRIME            0x01\n# define DH_CHECK_P_NOT_SAFE_PRIME       0x02\n# define DH_UNABLE_TO_CHECK_GENERATOR    0x04\n# define DH_NOT_SUITABLE_GENERATOR       0x08\n# define DH_CHECK_Q_NOT_PRIME            0x10\n# define DH_CHECK_INVALID_Q_VALUE        0x20\n# define DH_CHECK_INVALID_J_VALUE        0x40\n\n/* DH_check_pub_key error codes */\n# define DH_CHECK_PUBKEY_TOO_SMALL       0x01\n# define DH_CHECK_PUBKEY_TOO_LARGE       0x02\n# define DH_CHECK_PUBKEY_INVALID         0x04\n\n/*\n * primes p where (p-1)/2 is prime too are called \"safe\"; we define this for\n * backward compatibility:\n */\n# define DH_CHECK_P_NOT_STRONG_PRIME     DH_CHECK_P_NOT_SAFE_PRIME\n\n# define d2i_DHparams_fp(fp,x) \\\n    (DH *)ASN1_d2i_fp((char *(*)())DH_new, \\\n                      (char *(*)())d2i_DHparams, \\\n                      (fp), \\\n                      (unsigned char **)(x))\n# define i2d_DHparams_fp(fp,x) \\\n    ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x))\n# define d2i_DHparams_bio(bp,x) \\\n    ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x)\n# define i2d_DHparams_bio(bp,x) \\\n    ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x)\n\n# define d2i_DHxparams_fp(fp,x) \\\n    (DH *)ASN1_d2i_fp((char *(*)())DH_new, \\\n                      (char *(*)())d2i_DHxparams, \\\n                      (fp), \\\n                      (unsigned char **)(x))\n# define i2d_DHxparams_fp(fp,x) \\\n    ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x))\n# define d2i_DHxparams_bio(bp,x) \\\n    ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x)\n# define i2d_DHxparams_bio(bp,x) \\\n    ASN1_i2d_bio_of_const(DH, i2d_DHxparams, bp, x)\n\nDH *DHparams_dup(DH *);\n\nconst DH_METHOD *DH_OpenSSL(void);\n\nvoid DH_set_default_method(const DH_METHOD *meth);\nconst DH_METHOD *DH_get_default_method(void);\nint DH_set_method(DH *dh, const DH_METHOD *meth);\nDH *DH_new_method(ENGINE *engine);\n\nDH *DH_new(void);\nvoid DH_free(DH *dh);\nint DH_up_ref(DH *dh);\nint DH_bits(const DH *dh);\nint DH_size(const DH *dh);\nint DH_security_bits(const DH *dh);\n#define DH_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DH, l, p, newf, dupf, freef)\nint DH_set_ex_data(DH *d, int idx, void *arg);\nvoid *DH_get_ex_data(DH *d, int idx);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(DH *DH_generate_parameters(int prime_len, int generator,\n                                              void (*callback) (int, int,\n                                                                void *),\n                                              void *cb_arg))\n\n/* New version */\nint DH_generate_parameters_ex(DH *dh, int prime_len, int generator,\n                              BN_GENCB *cb);\n\nint DH_check_params_ex(const DH *dh);\nint DH_check_ex(const DH *dh);\nint DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key);\nint DH_check_params(const DH *dh, int *ret);\nint DH_check(const DH *dh, int *codes);\nint DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *codes);\nint DH_generate_key(DH *dh);\nint DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);\nint DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);\nDH *d2i_DHparams(DH **a, const unsigned char **pp, long length);\nint i2d_DHparams(const DH *a, unsigned char **pp);\nDH *d2i_DHxparams(DH **a, const unsigned char **pp, long length);\nint i2d_DHxparams(const DH *a, unsigned char **pp);\n# ifndef OPENSSL_NO_STDIO\nint DHparams_print_fp(FILE *fp, const DH *x);\n# endif\nint DHparams_print(BIO *bp, const DH *x);\n\n/* RFC 5114 parameters */\nDH *DH_get_1024_160(void);\nDH *DH_get_2048_224(void);\nDH *DH_get_2048_256(void);\n\n/* Named parameters, currently RFC7919 */\nDH *DH_new_by_nid(int nid);\nint DH_get_nid(const DH *dh);\n\n# ifndef OPENSSL_NO_CMS\n/* RFC2631 KDF */\nint DH_KDF_X9_42(unsigned char *out, size_t outlen,\n                 const unsigned char *Z, size_t Zlen,\n                 ASN1_OBJECT *key_oid,\n                 const unsigned char *ukm, size_t ukmlen, const EVP_MD *md);\n# endif\n\nvoid DH_get0_pqg(const DH *dh,\n                 const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);\nint DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);\nvoid DH_get0_key(const DH *dh,\n                 const BIGNUM **pub_key, const BIGNUM **priv_key);\nint DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);\nconst BIGNUM *DH_get0_p(const DH *dh);\nconst BIGNUM *DH_get0_q(const DH *dh);\nconst BIGNUM *DH_get0_g(const DH *dh);\nconst BIGNUM *DH_get0_priv_key(const DH *dh);\nconst BIGNUM *DH_get0_pub_key(const DH *dh);\nvoid DH_clear_flags(DH *dh, int flags);\nint DH_test_flags(const DH *dh, int flags);\nvoid DH_set_flags(DH *dh, int flags);\nENGINE *DH_get0_engine(DH *d);\nlong DH_get_length(const DH *dh);\nint DH_set_length(DH *dh, long length);\n\nDH_METHOD *DH_meth_new(const char *name, int flags);\nvoid DH_meth_free(DH_METHOD *dhm);\nDH_METHOD *DH_meth_dup(const DH_METHOD *dhm);\nconst char *DH_meth_get0_name(const DH_METHOD *dhm);\nint DH_meth_set1_name(DH_METHOD *dhm, const char *name);\nint DH_meth_get_flags(const DH_METHOD *dhm);\nint DH_meth_set_flags(DH_METHOD *dhm, int flags);\nvoid *DH_meth_get0_app_data(const DH_METHOD *dhm);\nint DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data);\nint (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *);\nint DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *));\nint (*DH_meth_get_compute_key(const DH_METHOD *dhm))\n        (unsigned char *key, const BIGNUM *pub_key, DH *dh);\nint DH_meth_set_compute_key(DH_METHOD *dhm,\n        int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh));\nint (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))\n    (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n     BN_CTX *, BN_MONT_CTX *);\nint DH_meth_set_bn_mod_exp(DH_METHOD *dhm,\n    int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                       const BIGNUM *, BN_CTX *, BN_MONT_CTX *));\nint (*DH_meth_get_init(const DH_METHOD *dhm))(DH *);\nint DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *));\nint (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *);\nint DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *));\nint (*DH_meth_get_generate_params(const DH_METHOD *dhm))\n        (DH *, int, int, BN_GENCB *);\nint DH_meth_set_generate_params(DH_METHOD *dhm,\n        int (*generate_params) (DH *, int, int, BN_GENCB *));\n\n\n# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_type(ctx, typ) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, typ, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_generator(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_RFC5114, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dhx_rfc5114(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_RFC5114, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dh_nid(ctx, nid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, \\\n                        EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN, \\\n                        EVP_PKEY_CTRL_DH_NID, nid, NULL)\n\n# define EVP_PKEY_CTX_set_dh_pad(ctx, pad) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_DERIVE, \\\n                          EVP_PKEY_CTRL_DH_PAD, pad, NULL)\n\n# define EVP_PKEY_CTX_set_dh_kdf_type(ctx, kdf) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL)\n\n# define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_TYPE, -2, NULL)\n\n# define EVP_PKEY_CTX_set0_dh_kdf_oid(ctx, oid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_OID, 0, (void *)(oid))\n\n# define EVP_PKEY_CTX_get0_dh_kdf_oid(ctx, poid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_OID, 0, (void *)(poid))\n\n# define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_get_dh_kdf_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_MD, 0, (void *)(pmd))\n\n# define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_dh_kdf_outlen(ctx, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                        EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, 0, (void *)(plen))\n\n# define EVP_PKEY_CTX_set0_dh_kdf_ukm(ctx, p, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_UKM, plen, (void *)(p))\n\n# define EVP_PKEY_CTX_get0_dh_kdf_ukm(ctx, p) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_UKM, 0, (void *)(p))\n\n# define EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN     (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR     (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_DH_RFC5114                (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN  (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_TYPE          (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_DH_KDF_TYPE               (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_DH_KDF_MD                 (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_DH_KDF_MD             (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_DH_KDF_OUTLEN             (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN         (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_DH_KDF_UKM                (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET_DH_KDF_UKM            (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_DH_KDF_OID                (EVP_PKEY_ALG_CTRL + 13)\n# define EVP_PKEY_CTRL_GET_DH_KDF_OID            (EVP_PKEY_ALG_CTRL + 14)\n# define EVP_PKEY_CTRL_DH_NID                    (EVP_PKEY_ALG_CTRL + 15)\n# define EVP_PKEY_CTRL_DH_PAD                    (EVP_PKEY_ALG_CTRL + 16)\n\n/* KDF types */\n# define EVP_PKEY_DH_KDF_NONE                            1\n# ifndef OPENSSL_NO_CMS\n# define EVP_PKEY_DH_KDF_X9_42                           2\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/dherr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DHERR_H\n# define HEADER_DHERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DH\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_DH_strings(void);\n\n/*\n * DH function codes.\n */\n#  define DH_F_COMPUTE_KEY                                 102\n#  define DH_F_DHPARAMS_PRINT_FP                           101\n#  define DH_F_DH_BUILTIN_GENPARAMS                        106\n#  define DH_F_DH_CHECK_EX                                 121\n#  define DH_F_DH_CHECK_PARAMS_EX                          122\n#  define DH_F_DH_CHECK_PUB_KEY_EX                         123\n#  define DH_F_DH_CMS_DECRYPT                              114\n#  define DH_F_DH_CMS_SET_PEERKEY                          115\n#  define DH_F_DH_CMS_SET_SHARED_INFO                      116\n#  define DH_F_DH_METH_DUP                                 117\n#  define DH_F_DH_METH_NEW                                 118\n#  define DH_F_DH_METH_SET1_NAME                           119\n#  define DH_F_DH_NEW_BY_NID                               104\n#  define DH_F_DH_NEW_METHOD                               105\n#  define DH_F_DH_PARAM_DECODE                             107\n#  define DH_F_DH_PKEY_PUBLIC_CHECK                        124\n#  define DH_F_DH_PRIV_DECODE                              110\n#  define DH_F_DH_PRIV_ENCODE                              111\n#  define DH_F_DH_PUB_DECODE                               108\n#  define DH_F_DH_PUB_ENCODE                               109\n#  define DH_F_DO_DH_PRINT                                 100\n#  define DH_F_GENERATE_KEY                                103\n#  define DH_F_PKEY_DH_CTRL_STR                            120\n#  define DH_F_PKEY_DH_DERIVE                              112\n#  define DH_F_PKEY_DH_INIT                                125\n#  define DH_F_PKEY_DH_KEYGEN                              113\n\n/*\n * DH reason codes.\n */\n#  define DH_R_BAD_GENERATOR                               101\n#  define DH_R_BN_DECODE_ERROR                             109\n#  define DH_R_BN_ERROR                                    106\n#  define DH_R_CHECK_INVALID_J_VALUE                       115\n#  define DH_R_CHECK_INVALID_Q_VALUE                       116\n#  define DH_R_CHECK_PUBKEY_INVALID                        122\n#  define DH_R_CHECK_PUBKEY_TOO_LARGE                      123\n#  define DH_R_CHECK_PUBKEY_TOO_SMALL                      124\n#  define DH_R_CHECK_P_NOT_PRIME                           117\n#  define DH_R_CHECK_P_NOT_SAFE_PRIME                      118\n#  define DH_R_CHECK_Q_NOT_PRIME                           119\n#  define DH_R_DECODE_ERROR                                104\n#  define DH_R_INVALID_PARAMETER_NAME                      110\n#  define DH_R_INVALID_PARAMETER_NID                       114\n#  define DH_R_INVALID_PUBKEY                              102\n#  define DH_R_KDF_PARAMETER_ERROR                         112\n#  define DH_R_KEYS_NOT_SET                                108\n#  define DH_R_MISSING_PUBKEY                              125\n#  define DH_R_MODULUS_TOO_LARGE                           103\n#  define DH_R_NOT_SUITABLE_GENERATOR                      120\n#  define DH_R_NO_PARAMETERS_SET                           107\n#  define DH_R_NO_PRIVATE_VALUE                            100\n#  define DH_R_PARAMETER_ENCODING_ERROR                    105\n#  define DH_R_PEER_KEY_ERROR                              111\n#  define DH_R_SHARED_INFO_ERROR                           113\n#  define DH_R_UNABLE_TO_CHECK_GENERATOR                   121\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/dsa.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DSA_H\n# define HEADER_DSA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DSA\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/bn.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/dh.h>\n# endif\n# include <openssl/dsaerr.h>\n\n# ifndef OPENSSL_DSA_MAX_MODULUS_BITS\n#  define OPENSSL_DSA_MAX_MODULUS_BITS   10000\n# endif\n\n# define OPENSSL_DSA_FIPS_MIN_MODULUS_BITS 1024\n\n# define DSA_FLAG_CACHE_MONT_P   0x01\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define DSA_FLAG_NO_EXP_CONSTTIME       0x00\n# endif\n\n/*\n * If this flag is set the DSA method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define DSA_FLAG_FIPS_METHOD                    0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define DSA_FLAG_NON_FIPS_ALLOW                 0x0400\n# define DSA_FLAG_FIPS_CHECKED                   0x0800\n\n/* Already defined in ossl_typ.h */\n/* typedef struct dsa_st DSA; */\n/* typedef struct dsa_method DSA_METHOD; */\n\ntypedef struct DSA_SIG_st DSA_SIG;\n\n# define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \\\n                (char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x))\n# define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \\\n                (unsigned char *)(x))\n# define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x)\n# define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x)\n\nDSA *DSAparams_dup(DSA *x);\nDSA_SIG *DSA_SIG_new(void);\nvoid DSA_SIG_free(DSA_SIG *a);\nint i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);\nDSA_SIG *d2i_DSA_SIG(DSA_SIG **v, const unsigned char **pp, long length);\nvoid DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);\nint DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);\n\nDSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);\nint DSA_do_verify(const unsigned char *dgst, int dgst_len,\n                  DSA_SIG *sig, DSA *dsa);\n\nconst DSA_METHOD *DSA_OpenSSL(void);\n\nvoid DSA_set_default_method(const DSA_METHOD *);\nconst DSA_METHOD *DSA_get_default_method(void);\nint DSA_set_method(DSA *dsa, const DSA_METHOD *);\nconst DSA_METHOD *DSA_get_method(DSA *d);\n\nDSA *DSA_new(void);\nDSA *DSA_new_method(ENGINE *engine);\nvoid DSA_free(DSA *r);\n/* \"up\" the DSA object's reference count */\nint DSA_up_ref(DSA *r);\nint DSA_size(const DSA *);\nint DSA_bits(const DSA *d);\nint DSA_security_bits(const DSA *d);\n        /* next 4 return -1 on error */\nDEPRECATEDIN_1_2_0(int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp))\nint DSA_sign(int type, const unsigned char *dgst, int dlen,\n             unsigned char *sig, unsigned int *siglen, DSA *dsa);\nint DSA_verify(int type, const unsigned char *dgst, int dgst_len,\n               const unsigned char *sigbuf, int siglen, DSA *dsa);\n#define DSA_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef)\nint DSA_set_ex_data(DSA *d, int idx, void *arg);\nvoid *DSA_get_ex_data(DSA *d, int idx);\n\nDSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);\nDSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);\nDSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,\n                                                unsigned char *seed,\n                                                int seed_len,\n                                                int *counter_ret,\n                                                unsigned long *h_ret, void\n                                                 (*callback) (int, int,\n                                                              void *),\n                                                void *cb_arg))\n\n/* New version */\nint DSA_generate_parameters_ex(DSA *dsa, int bits,\n                               const unsigned char *seed, int seed_len,\n                               int *counter_ret, unsigned long *h_ret,\n                               BN_GENCB *cb);\n\nint DSA_generate_key(DSA *a);\nint i2d_DSAPublicKey(const DSA *a, unsigned char **pp);\nint i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);\nint i2d_DSAparams(const DSA *a, unsigned char **pp);\n\nint DSAparams_print(BIO *bp, const DSA *x);\nint DSA_print(BIO *bp, const DSA *x, int off);\n# ifndef OPENSSL_NO_STDIO\nint DSAparams_print_fp(FILE *fp, const DSA *x);\nint DSA_print_fp(FILE *bp, const DSA *x, int off);\n# endif\n\n# define DSS_prime_checks 64\n/*\n * Primality test according to FIPS PUB 186-4, Appendix C.3. Since we only\n * have one value here we set the number of checks to 64 which is the 128 bit\n * security level that is the highest level and valid for creating a 3072 bit\n * DSA key.\n */\n# define DSA_is_prime(n, callback, cb_arg) \\\n        BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg)\n\n# ifndef OPENSSL_NO_DH\n/*\n * Convert DSA structure (key or just parameters) into DH structure (be\n * careful to avoid small subgroup attacks when using this!)\n */\nDH *DSA_dup_DH(const DSA *r);\n# endif\n\n# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL)\n# define EVP_PKEY_CTX_set_dsa_paramgen_q_bits(ctx, qbits) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS, qbits, NULL)\n# define EVP_PKEY_CTX_set_dsa_paramgen_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS         (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS       (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_MD           (EVP_PKEY_ALG_CTRL + 3)\n\nvoid DSA_get0_pqg(const DSA *d,\n                  const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);\nint DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);\nvoid DSA_get0_key(const DSA *d,\n                  const BIGNUM **pub_key, const BIGNUM **priv_key);\nint DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);\nconst BIGNUM *DSA_get0_p(const DSA *d);\nconst BIGNUM *DSA_get0_q(const DSA *d);\nconst BIGNUM *DSA_get0_g(const DSA *d);\nconst BIGNUM *DSA_get0_pub_key(const DSA *d);\nconst BIGNUM *DSA_get0_priv_key(const DSA *d);\nvoid DSA_clear_flags(DSA *d, int flags);\nint DSA_test_flags(const DSA *d, int flags);\nvoid DSA_set_flags(DSA *d, int flags);\nENGINE *DSA_get0_engine(DSA *d);\n\nDSA_METHOD *DSA_meth_new(const char *name, int flags);\nvoid DSA_meth_free(DSA_METHOD *dsam);\nDSA_METHOD *DSA_meth_dup(const DSA_METHOD *dsam);\nconst char *DSA_meth_get0_name(const DSA_METHOD *dsam);\nint DSA_meth_set1_name(DSA_METHOD *dsam, const char *name);\nint DSA_meth_get_flags(const DSA_METHOD *dsam);\nint DSA_meth_set_flags(DSA_METHOD *dsam, int flags);\nvoid *DSA_meth_get0_app_data(const DSA_METHOD *dsam);\nint DSA_meth_set0_app_data(DSA_METHOD *dsam, void *app_data);\nDSA_SIG *(*DSA_meth_get_sign(const DSA_METHOD *dsam))\n        (const unsigned char *, int, DSA *);\nint DSA_meth_set_sign(DSA_METHOD *dsam,\n                       DSA_SIG *(*sign) (const unsigned char *, int, DSA *));\nint (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))\n        (DSA *, BN_CTX *, BIGNUM **, BIGNUM **);\nint DSA_meth_set_sign_setup(DSA_METHOD *dsam,\n        int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **));\nint (*DSA_meth_get_verify(const DSA_METHOD *dsam))\n        (const unsigned char *, int, DSA_SIG *, DSA *);\nint DSA_meth_set_verify(DSA_METHOD *dsam,\n    int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *));\nint (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))\n        (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n         const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *);\nint DSA_meth_set_mod_exp(DSA_METHOD *dsam,\n    int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                    const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,\n                    BN_MONT_CTX *));\nint (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))\n    (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n     BN_CTX *, BN_MONT_CTX *);\nint DSA_meth_set_bn_mod_exp(DSA_METHOD *dsam,\n    int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                       const BIGNUM *, BN_CTX *, BN_MONT_CTX *));\nint (*DSA_meth_get_init(const DSA_METHOD *dsam))(DSA *);\nint DSA_meth_set_init(DSA_METHOD *dsam, int (*init)(DSA *));\nint (*DSA_meth_get_finish(const DSA_METHOD *dsam)) (DSA *);\nint DSA_meth_set_finish(DSA_METHOD *dsam, int (*finish) (DSA *));\nint (*DSA_meth_get_paramgen(const DSA_METHOD *dsam))\n        (DSA *, int, const unsigned char *, int, int *, unsigned long *,\n         BN_GENCB *);\nint DSA_meth_set_paramgen(DSA_METHOD *dsam,\n        int (*paramgen) (DSA *, int, const unsigned char *, int, int *,\n                         unsigned long *, BN_GENCB *));\nint (*DSA_meth_get_keygen(const DSA_METHOD *dsam)) (DSA *);\nint DSA_meth_set_keygen(DSA_METHOD *dsam, int (*keygen) (DSA *));\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/dsaerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DSAERR_H\n# define HEADER_DSAERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DSA\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_DSA_strings(void);\n\n/*\n * DSA function codes.\n */\n#  define DSA_F_DSAPARAMS_PRINT                            100\n#  define DSA_F_DSAPARAMS_PRINT_FP                         101\n#  define DSA_F_DSA_BUILTIN_PARAMGEN                       125\n#  define DSA_F_DSA_BUILTIN_PARAMGEN2                      126\n#  define DSA_F_DSA_DO_SIGN                                112\n#  define DSA_F_DSA_DO_VERIFY                              113\n#  define DSA_F_DSA_METH_DUP                               127\n#  define DSA_F_DSA_METH_NEW                               128\n#  define DSA_F_DSA_METH_SET1_NAME                         129\n#  define DSA_F_DSA_NEW_METHOD                             103\n#  define DSA_F_DSA_PARAM_DECODE                           119\n#  define DSA_F_DSA_PRINT_FP                               105\n#  define DSA_F_DSA_PRIV_DECODE                            115\n#  define DSA_F_DSA_PRIV_ENCODE                            116\n#  define DSA_F_DSA_PUB_DECODE                             117\n#  define DSA_F_DSA_PUB_ENCODE                             118\n#  define DSA_F_DSA_SIGN                                   106\n#  define DSA_F_DSA_SIGN_SETUP                             107\n#  define DSA_F_DSA_SIG_NEW                                102\n#  define DSA_F_OLD_DSA_PRIV_DECODE                        122\n#  define DSA_F_PKEY_DSA_CTRL                              120\n#  define DSA_F_PKEY_DSA_CTRL_STR                          104\n#  define DSA_F_PKEY_DSA_KEYGEN                            121\n\n/*\n * DSA reason codes.\n */\n#  define DSA_R_BAD_Q_VALUE                                102\n#  define DSA_R_BN_DECODE_ERROR                            108\n#  define DSA_R_BN_ERROR                                   109\n#  define DSA_R_DECODE_ERROR                               104\n#  define DSA_R_INVALID_DIGEST_TYPE                        106\n#  define DSA_R_INVALID_PARAMETERS                         112\n#  define DSA_R_MISSING_PARAMETERS                         101\n#  define DSA_R_MISSING_PRIVATE_KEY                        111\n#  define DSA_R_MODULUS_TOO_LARGE                          103\n#  define DSA_R_NO_PARAMETERS_SET                          107\n#  define DSA_R_PARAMETER_ENCODING_ERROR                   105\n#  define DSA_R_Q_NOT_PRIME                                113\n#  define DSA_R_SEED_LEN_SMALL                             110\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/dtls1.h",
    "content": "/*\n * Copyright 2005-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DTLS1_H\n# define HEADER_DTLS1_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define DTLS1_VERSION                   0xFEFF\n# define DTLS1_2_VERSION                 0xFEFD\n# define DTLS_MIN_VERSION                DTLS1_VERSION\n# define DTLS_MAX_VERSION                DTLS1_2_VERSION\n# define DTLS1_VERSION_MAJOR             0xFE\n\n# define DTLS1_BAD_VER                   0x0100\n\n/* Special value for method supporting multiple versions */\n# define DTLS_ANY_VERSION                0x1FFFF\n\n/* lengths of messages */\n/*\n * Actually the max cookie length in DTLS is 255. But we can't change this now\n * due to compatibility concerns.\n */\n# define DTLS1_COOKIE_LENGTH                     256\n\n# define DTLS1_RT_HEADER_LENGTH                  13\n\n# define DTLS1_HM_HEADER_LENGTH                  12\n\n# define DTLS1_HM_BAD_FRAGMENT                   -2\n# define DTLS1_HM_FRAGMENT_RETRY                 -3\n\n# define DTLS1_CCS_HEADER_LENGTH                  1\n\n# define DTLS1_AL_HEADER_LENGTH                   2\n\n/* Timeout multipliers */\n# define DTLS1_TMO_READ_COUNT                      2\n# define DTLS1_TMO_WRITE_COUNT                     2\n\n# define DTLS1_TMO_ALERT_COUNT                     12\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/e_os2.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_E_OS2_H\n# define HEADER_E_OS2_H\n\n# include <openssl/opensslconf.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/******************************************************************************\n * Detect operating systems.  This probably needs completing.\n * The result is that at least one OPENSSL_SYS_os macro should be defined.\n * However, if none is defined, Unix is assumed.\n **/\n\n# define OPENSSL_SYS_UNIX\n\n/* --------------------- Microsoft operating systems ---------------------- */\n\n/*\n * Note that MSDOS actually denotes 32-bit environments running on top of\n * MS-DOS, such as DJGPP one.\n */\n# if defined(OPENSSL_SYS_MSDOS)\n#  undef OPENSSL_SYS_UNIX\n# endif\n\n/*\n * For 32 bit environment, there seems to be the CygWin environment and then\n * all the others that try to do the same thing Microsoft does...\n */\n/*\n * UEFI lives here because it might be built with a Microsoft toolchain and\n * we need to avoid the false positive match on Windows.\n */\n# if defined(OPENSSL_SYS_UEFI)\n#  undef OPENSSL_SYS_UNIX\n# elif defined(OPENSSL_SYS_UWIN)\n#  undef OPENSSL_SYS_UNIX\n#  define OPENSSL_SYS_WIN32_UWIN\n# else\n#  if defined(__CYGWIN__) || defined(OPENSSL_SYS_CYGWIN)\n#   define OPENSSL_SYS_WIN32_CYGWIN\n#  else\n#   if defined(_WIN32) || defined(OPENSSL_SYS_WIN32)\n#    undef OPENSSL_SYS_UNIX\n#    if !defined(OPENSSL_SYS_WIN32)\n#     define OPENSSL_SYS_WIN32\n#    endif\n#   endif\n#   if defined(_WIN64) || defined(OPENSSL_SYS_WIN64)\n#    undef OPENSSL_SYS_UNIX\n#    if !defined(OPENSSL_SYS_WIN64)\n#     define OPENSSL_SYS_WIN64\n#    endif\n#   endif\n#   if defined(OPENSSL_SYS_WINNT)\n#    undef OPENSSL_SYS_UNIX\n#   endif\n#   if defined(OPENSSL_SYS_WINCE)\n#    undef OPENSSL_SYS_UNIX\n#   endif\n#  endif\n# endif\n\n/* Anything that tries to look like Microsoft is \"Windows\" */\n# if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN64) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)\n#  undef OPENSSL_SYS_UNIX\n#  define OPENSSL_SYS_WINDOWS\n#  ifndef OPENSSL_SYS_MSDOS\n#   define OPENSSL_SYS_MSDOS\n#  endif\n# endif\n\n/*\n * DLL settings.  This part is a bit tough, because it's up to the\n * application implementor how he or she will link the application, so it\n * requires some macro to be used.\n */\n# ifdef OPENSSL_SYS_WINDOWS\n#  ifndef OPENSSL_OPT_WINDLL\n#   if defined(_WINDLL)         /* This is used when building OpenSSL to\n                                 * indicate that DLL linkage should be used */\n#    define OPENSSL_OPT_WINDLL\n#   endif\n#  endif\n# endif\n\n/* ------------------------------- OpenVMS -------------------------------- */\n# if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYS_VMS)\n#  if !defined(OPENSSL_SYS_VMS)\n#   undef OPENSSL_SYS_UNIX\n#  endif\n#  define OPENSSL_SYS_VMS\n#  if defined(__DECC)\n#   define OPENSSL_SYS_VMS_DECC\n#  elif defined(__DECCXX)\n#   define OPENSSL_SYS_VMS_DECC\n#   define OPENSSL_SYS_VMS_DECCXX\n#  else\n#   define OPENSSL_SYS_VMS_NODECC\n#  endif\n# endif\n\n/* -------------------------------- Unix ---------------------------------- */\n# ifdef OPENSSL_SYS_UNIX\n#  if defined(linux) || defined(__linux__) && !defined(OPENSSL_SYS_LINUX)\n#   define OPENSSL_SYS_LINUX\n#  endif\n#  if defined(_AIX) && !defined(OPENSSL_SYS_AIX)\n#   define OPENSSL_SYS_AIX\n#  endif\n# endif\n\n/* -------------------------------- VOS ----------------------------------- */\n# if defined(__VOS__) && !defined(OPENSSL_SYS_VOS)\n#  define OPENSSL_SYS_VOS\n#  ifdef __HPPA__\n#   define OPENSSL_SYS_VOS_HPPA\n#  endif\n#  ifdef __IA32__\n#   define OPENSSL_SYS_VOS_IA32\n#  endif\n# endif\n\n/**\n * That's it for OS-specific stuff\n *****************************************************************************/\n\n/* Specials for I/O an exit */\n# ifdef OPENSSL_SYS_MSDOS\n#  define OPENSSL_UNISTD_IO <io.h>\n#  define OPENSSL_DECLARE_EXIT extern void exit(int);\n# else\n#  define OPENSSL_UNISTD_IO OPENSSL_UNISTD\n#  define OPENSSL_DECLARE_EXIT  /* declared in unistd.h */\n# endif\n\n/*-\n * OPENSSL_EXTERN is normally used to declare a symbol with possible extra\n * attributes to handle its presence in a shared library.\n * OPENSSL_EXPORT is used to define a symbol with extra possible attributes\n * to make it visible in a shared library.\n * Care needs to be taken when a header file is used both to declare and\n * define symbols.  Basically, for any library that exports some global\n * variables, the following code must be present in the header file that\n * declares them, before OPENSSL_EXTERN is used:\n *\n * #ifdef SOME_BUILD_FLAG_MACRO\n * # undef OPENSSL_EXTERN\n * # define OPENSSL_EXTERN OPENSSL_EXPORT\n * #endif\n *\n * The default is to have OPENSSL_EXPORT and OPENSSL_EXTERN\n * have some generally sensible values.\n */\n\n# if defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)\n#  define OPENSSL_EXPORT extern __declspec(dllexport)\n#  define OPENSSL_EXTERN extern __declspec(dllimport)\n# else\n#  define OPENSSL_EXPORT extern\n#  define OPENSSL_EXTERN extern\n# endif\n\n/*-\n * Macros to allow global variables to be reached through function calls when\n * required (if a shared library version requires it, for example.\n * The way it's done allows definitions like this:\n *\n *      // in foobar.c\n *      OPENSSL_IMPLEMENT_GLOBAL(int,foobar,0)\n *      // in foobar.h\n *      OPENSSL_DECLARE_GLOBAL(int,foobar);\n *      #define foobar OPENSSL_GLOBAL_REF(foobar)\n */\n# ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION\n#  define OPENSSL_IMPLEMENT_GLOBAL(type,name,value)                      \\\n        type *_shadow_##name(void)                                      \\\n        { static type _hide_##name=value; return &_hide_##name; }\n#  define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)\n#  define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))\n# else\n#  define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) type _shadow_##name=value;\n#  define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name\n#  define OPENSSL_GLOBAL_REF(name) _shadow_##name\n# endif\n\n# ifdef _WIN32\n#  ifdef _WIN64\n#   define ossl_ssize_t __int64\n#   define OSSL_SSIZE_MAX _I64_MAX\n#  else\n#   define ossl_ssize_t int\n#   define OSSL_SSIZE_MAX INT_MAX\n#  endif\n# endif\n\n# if defined(OPENSSL_SYS_UEFI) && !defined(ossl_ssize_t)\n#  define ossl_ssize_t INTN\n#  define OSSL_SSIZE_MAX MAX_INTN\n# endif\n\n# ifndef ossl_ssize_t\n#  define ossl_ssize_t ssize_t\n#  if defined(SSIZE_MAX)\n#   define OSSL_SSIZE_MAX SSIZE_MAX\n#  elif defined(_POSIX_SSIZE_MAX)\n#   define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX\n#  else\n#   define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX>>1))\n#  endif\n# endif\n\n# ifdef DEBUG_UNUSED\n#  define __owur __attribute__((__warn_unused_result__))\n# else\n#  define __owur\n# endif\n\n/* Standard integer types */\n# if defined(OPENSSL_SYS_UEFI)\ntypedef INT8 int8_t;\ntypedef UINT8 uint8_t;\ntypedef INT16 int16_t;\ntypedef UINT16 uint16_t;\ntypedef INT32 int32_t;\ntypedef UINT32 uint32_t;\ntypedef INT64 int64_t;\ntypedef UINT64 uint64_t;\n# elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \\\n     defined(__osf__) || defined(__sgi) || defined(__hpux) || \\\n     defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)\n#  include <inttypes.h>\n# elif defined(_MSC_VER) && _MSC_VER<1600\n/*\n * minimally required typdefs for systems not supporting inttypes.h or\n * stdint.h: currently just older VC++\n */\ntypedef signed char int8_t;\ntypedef unsigned char uint8_t;\ntypedef short int16_t;\ntypedef unsigned short uint16_t;\ntypedef int int32_t;\ntypedef unsigned int uint32_t;\ntypedef __int64 int64_t;\ntypedef unsigned __int64 uint64_t;\n# else\n#  include <stdint.h>\n# endif\n\n/* ossl_inline: portable inline definition usable in public headers */\n# if !defined(inline) && !defined(__cplusplus)\n#  if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L\n   /* just use inline */\n#   define ossl_inline inline\n#  elif defined(__GNUC__) && __GNUC__>=2\n#   define ossl_inline __inline__\n#  elif defined(_MSC_VER)\n  /*\n   * Visual Studio: inline is available in C++ only, however\n   * __inline is available for C, see\n   * http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx\n   */\n#   define ossl_inline __inline\n#  else\n#   define ossl_inline\n#  endif\n# else\n#  define ossl_inline inline\n# endif\n\n# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L\n#  define ossl_noreturn _Noreturn\n# elif defined(__GNUC__) && __GNUC__ >= 2\n#  define ossl_noreturn __attribute__((noreturn))\n# else\n#  define ossl_noreturn\n# endif\n\n/* ossl_unused: portable unused attribute for use in public headers */\n# if defined(__GNUC__)\n#  define ossl_unused __attribute__((unused))\n# else\n#  define ossl_unused\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ebcdic.h",
    "content": "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EBCDIC_H\n# define HEADER_EBCDIC_H\n\n# include <stdlib.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Avoid name clashes with other applications */\n# define os_toascii   _openssl_os_toascii\n# define os_toebcdic  _openssl_os_toebcdic\n# define ebcdic2ascii _openssl_ebcdic2ascii\n# define ascii2ebcdic _openssl_ascii2ebcdic\n\nextern const unsigned char os_toascii[256];\nextern const unsigned char os_toebcdic[256];\nvoid *ebcdic2ascii(void *dest, const void *srce, size_t count);\nvoid *ascii2ebcdic(void *dest, const void *srce, size_t count);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ec.h",
    "content": "/*\n * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EC_H\n# define HEADER_EC_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_EC\n# include <openssl/asn1.h>\n# include <openssl/symhacks.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/ecerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# ifndef OPENSSL_ECC_MAX_FIELD_BITS\n#  define OPENSSL_ECC_MAX_FIELD_BITS 661\n# endif\n\n/** Enum for the point conversion form as defined in X9.62 (ECDSA)\n *  for the encoding of a elliptic curve point (x,y) */\ntypedef enum {\n        /** the point is encoded as z||x, where the octet z specifies\n         *  which solution of the quadratic equation y is  */\n    POINT_CONVERSION_COMPRESSED = 2,\n        /** the point is encoded as z||x||y, where z is the octet 0x04  */\n    POINT_CONVERSION_UNCOMPRESSED = 4,\n        /** the point is encoded as z||x||y, where the octet z specifies\n         *  which solution of the quadratic equation y is  */\n    POINT_CONVERSION_HYBRID = 6\n} point_conversion_form_t;\n\ntypedef struct ec_method_st EC_METHOD;\ntypedef struct ec_group_st EC_GROUP;\ntypedef struct ec_point_st EC_POINT;\ntypedef struct ecpk_parameters_st ECPKPARAMETERS;\ntypedef struct ec_parameters_st ECPARAMETERS;\n\n/********************************************************************/\n/*               EC_METHODs for curves over GF(p)                   */\n/********************************************************************/\n\n/** Returns the basic GFp ec methods which provides the basis for the\n *  optimized methods.\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_simple_method(void);\n\n/** Returns GFp methods using montgomery multiplication.\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_mont_method(void);\n\n/** Returns GFp methods using optimized methods for NIST recommended curves\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nist_method(void);\n\n# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\n/** Returns 64-bit optimized methods for nistp224\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp224_method(void);\n\n/** Returns 64-bit optimized methods for nistp256\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp256_method(void);\n\n/** Returns 64-bit optimized methods for nistp521\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp521_method(void);\n# endif\n\n# ifndef OPENSSL_NO_EC2M\n/********************************************************************/\n/*           EC_METHOD for curves over GF(2^m)                      */\n/********************************************************************/\n\n/** Returns the basic GF2m ec method\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GF2m_simple_method(void);\n\n# endif\n\n/********************************************************************/\n/*                   EC_GROUP functions                             */\n/********************************************************************/\n\n/** Creates a new EC_GROUP object\n *  \\param   meth  EC_METHOD to use\n *  \\return  newly created EC_GROUP object or NULL in case of an error.\n */\nEC_GROUP *EC_GROUP_new(const EC_METHOD *meth);\n\n/** Frees a EC_GROUP object\n *  \\param  group  EC_GROUP object to be freed.\n */\nvoid EC_GROUP_free(EC_GROUP *group);\n\n/** Clears and frees a EC_GROUP object\n *  \\param  group  EC_GROUP object to be cleared and freed.\n */\nvoid EC_GROUP_clear_free(EC_GROUP *group);\n\n/** Copies EC_GROUP objects. Note: both EC_GROUPs must use the same EC_METHOD.\n *  \\param  dst  destination EC_GROUP object\n *  \\param  src  source EC_GROUP object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src);\n\n/** Creates a new EC_GROUP object and copies the copies the content\n *  form src to the newly created EC_KEY object\n *  \\param  src  source EC_GROUP object\n *  \\return newly created EC_GROUP object or NULL in case of an error.\n */\nEC_GROUP *EC_GROUP_dup(const EC_GROUP *src);\n\n/** Returns the EC_METHOD of the EC_GROUP object.\n *  \\param  group  EC_GROUP object\n *  \\return EC_METHOD used in this EC_GROUP object.\n */\nconst EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);\n\n/** Returns the field type of the EC_METHOD.\n *  \\param  meth  EC_METHOD object\n *  \\return NID of the underlying field type OID.\n */\nint EC_METHOD_get_field_type(const EC_METHOD *meth);\n\n/** Sets the generator and its order/cofactor of a EC_GROUP object.\n *  \\param  group      EC_GROUP object\n *  \\param  generator  EC_POINT object with the generator.\n *  \\param  order      the order of the group generated by the generator.\n *  \\param  cofactor   the index of the sub-group generated by the generator\n *                     in the group of all points on the elliptic curve.\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,\n                           const BIGNUM *order, const BIGNUM *cofactor);\n\n/** Returns the generator of a EC_GROUP object.\n *  \\param  group  EC_GROUP object\n *  \\return the currently used generator (possibly NULL).\n */\nconst EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);\n\n/** Returns the montgomery data for order(Generator)\n *  \\param  group  EC_GROUP object\n *  \\return the currently used montgomery data (possibly NULL).\n*/\nBN_MONT_CTX *EC_GROUP_get_mont_data(const EC_GROUP *group);\n\n/** Gets the order of a EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\param  order  BIGNUM to which the order is copied\n *  \\param  ctx    unused\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);\n\n/** Gets the order of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return the group order\n */\nconst BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);\n\n/** Gets the number of bits of the order of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return number of bits of group order.\n */\nint EC_GROUP_order_bits(const EC_GROUP *group);\n\n/** Gets the cofactor of a EC_GROUP\n *  \\param  group     EC_GROUP object\n *  \\param  cofactor  BIGNUM to which the cofactor is copied\n *  \\param  ctx       unused\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor,\n                          BN_CTX *ctx);\n\n/** Gets the cofactor of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return the group cofactor\n */\nconst BIGNUM *EC_GROUP_get0_cofactor(const EC_GROUP *group);\n\n/** Sets the name of a EC_GROUP object\n *  \\param  group  EC_GROUP object\n *  \\param  nid    NID of the curve name OID\n */\nvoid EC_GROUP_set_curve_name(EC_GROUP *group, int nid);\n\n/** Returns the curve name of a EC_GROUP object\n *  \\param  group  EC_GROUP object\n *  \\return NID of the curve name OID or 0 if not set.\n */\nint EC_GROUP_get_curve_name(const EC_GROUP *group);\n\nvoid EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag);\nint EC_GROUP_get_asn1_flag(const EC_GROUP *group);\n\nvoid EC_GROUP_set_point_conversion_form(EC_GROUP *group,\n                                        point_conversion_form_t form);\npoint_conversion_form_t EC_GROUP_get_point_conversion_form(const EC_GROUP *);\n\nunsigned char *EC_GROUP_get0_seed(const EC_GROUP *x);\nsize_t EC_GROUP_get_seed_len(const EC_GROUP *);\nsize_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len);\n\n/** Sets the parameters of a ec curve defined by y^2 = x^3 + a*x + b (for GFp)\n *  or y^2 + x*y = x^3 + a*x^2 + b (for GF2m)\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,\n                       const BIGNUM *b, BN_CTX *ctx);\n\n/** Gets the parameters of the ec curve defined by y^2 = x^3 + a*x + b (for GFp)\n *  or y^2 + x*y = x^3 + a*x^2 + b (for GF2m)\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,\n                       BN_CTX *ctx);\n\n/** Sets the parameters of an ec curve. Synonym for EC_GROUP_set_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p,\n                                              const BIGNUM *a, const BIGNUM *b,\n                                              BN_CTX *ctx))\n\n/** Gets the parameters of an ec curve. Synonym for EC_GROUP_get_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p,\n                                              BIGNUM *a, BIGNUM *b,\n                                              BN_CTX *ctx))\n\n# ifndef OPENSSL_NO_EC2M\n/** Sets the parameter of an ec curve. Synonym for EC_GROUP_set_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p,\n                                               const BIGNUM *a, const BIGNUM *b,\n                                               BN_CTX *ctx))\n\n/** Gets the parameters of an ec curve. Synonym for EC_GROUP_get_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p,\n                                               BIGNUM *a, BIGNUM *b,\n                                               BN_CTX *ctx))\n# endif\n/** Returns the number of bits needed to represent a field element\n *  \\param  group  EC_GROUP object\n *  \\return number of bits needed to represent a field element\n */\nint EC_GROUP_get_degree(const EC_GROUP *group);\n\n/** Checks whether the parameter in the EC_GROUP define a valid ec group\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if group is a valid ec group and 0 otherwise\n */\nint EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx);\n\n/** Checks whether the discriminant of the elliptic curve is zero or not\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the discriminant is not zero and 0 otherwise\n */\nint EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx);\n\n/** Compares two EC_GROUP objects\n *  \\param  a    first EC_GROUP object\n *  \\param  b    second EC_GROUP object\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return 0 if the groups are equal, 1 if not, or -1 on error\n */\nint EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx);\n\n/*\n * EC_GROUP_new_GF*() calls EC_GROUP_new() and EC_GROUP_set_GF*() after\n * choosing an appropriate EC_METHOD\n */\n\n/** Creates a new EC_GROUP object with the specified parameters defined\n *  over GFp (defined by the equation y^2 = x^3 + a*x + b)\n *  \\param  p    BIGNUM with the prime number\n *  \\param  a    BIGNUM with the parameter a of the equation\n *  \\param  b    BIGNUM with the parameter b of the equation\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return newly created EC_GROUP object with the specified parameters\n */\nEC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,\n                                 const BIGNUM *b, BN_CTX *ctx);\n# ifndef OPENSSL_NO_EC2M\n/** Creates a new EC_GROUP object with the specified parameters defined\n *  over GF2m (defined by the equation y^2 + x*y = x^3 + a*x^2 + b)\n *  \\param  p    BIGNUM with the polynomial defining the underlying field\n *  \\param  a    BIGNUM with the parameter a of the equation\n *  \\param  b    BIGNUM with the parameter b of the equation\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return newly created EC_GROUP object with the specified parameters\n */\nEC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a,\n                                  const BIGNUM *b, BN_CTX *ctx);\n# endif\n\n/** Creates a EC_GROUP object with a curve specified by a NID\n *  \\param  nid  NID of the OID of the curve name\n *  \\return newly created EC_GROUP object with specified curve or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_by_curve_name(int nid);\n\n/** Creates a new EC_GROUP object from an ECPARAMETERS object\n *  \\param  params  pointer to the ECPARAMETERS object\n *  \\return newly created EC_GROUP object with specified curve or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params);\n\n/** Creates an ECPARAMETERS object for the given EC_GROUP object.\n *  \\param  group   pointer to the EC_GROUP object\n *  \\param  params  pointer to an existing ECPARAMETERS object or NULL\n *  \\return pointer to the new ECPARAMETERS object or NULL\n *          if an error occurred.\n */\nECPARAMETERS *EC_GROUP_get_ecparameters(const EC_GROUP *group,\n                                        ECPARAMETERS *params);\n\n/** Creates a new EC_GROUP object from an ECPKPARAMETERS object\n *  \\param  params  pointer to an existing ECPKPARAMETERS object, or NULL\n *  \\return newly created EC_GROUP object with specified curve, or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_from_ecpkparameters(const ECPKPARAMETERS *params);\n\n/** Creates an ECPKPARAMETERS object for the given EC_GROUP object.\n *  \\param  group   pointer to the EC_GROUP object\n *  \\param  params  pointer to an existing ECPKPARAMETERS object or NULL\n *  \\return pointer to the new ECPKPARAMETERS object or NULL\n *          if an error occurred.\n */\nECPKPARAMETERS *EC_GROUP_get_ecpkparameters(const EC_GROUP *group,\n                                            ECPKPARAMETERS *params);\n\n/********************************************************************/\n/*               handling of internal curves                        */\n/********************************************************************/\n\ntypedef struct {\n    int nid;\n    const char *comment;\n} EC_builtin_curve;\n\n/*\n * EC_builtin_curves(EC_builtin_curve *r, size_t size) returns number of all\n * available curves or zero if a error occurred. In case r is not zero,\n * nitems EC_builtin_curve structures are filled with the data of the first\n * nitems internal groups\n */\nsize_t EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems);\n\nconst char *EC_curve_nid2nist(int nid);\nint EC_curve_nist2nid(const char *name);\n\n/********************************************************************/\n/*                    EC_POINT functions                            */\n/********************************************************************/\n\n/** Creates a new EC_POINT object for the specified EC_GROUP\n *  \\param  group  EC_GROUP the underlying EC_GROUP object\n *  \\return newly created EC_POINT object or NULL if an error occurred\n */\nEC_POINT *EC_POINT_new(const EC_GROUP *group);\n\n/** Frees a EC_POINT object\n *  \\param  point  EC_POINT object to be freed\n */\nvoid EC_POINT_free(EC_POINT *point);\n\n/** Clears and frees a EC_POINT object\n *  \\param  point  EC_POINT object to be cleared and freed\n */\nvoid EC_POINT_clear_free(EC_POINT *point);\n\n/** Copies EC_POINT object\n *  \\param  dst  destination EC_POINT object\n *  \\param  src  source EC_POINT object\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_copy(EC_POINT *dst, const EC_POINT *src);\n\n/** Creates a new EC_POINT object and copies the content of the supplied\n *  EC_POINT\n *  \\param  src    source EC_POINT object\n *  \\param  group  underlying the EC_GROUP object\n *  \\return newly created EC_POINT object or NULL if an error occurred\n */\nEC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group);\n\n/** Returns the EC_METHOD used in EC_POINT object\n *  \\param  point  EC_POINT object\n *  \\return the EC_METHOD used\n */\nconst EC_METHOD *EC_POINT_method_of(const EC_POINT *point);\n\n/** Sets a point to infinity (neutral element)\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT to set to infinity\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);\n\n/** Sets the jacobian projective coordinates of a EC_POINT over GFp\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  z      BIGNUM with the z-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group,\n                                             EC_POINT *p, const BIGNUM *x,\n                                             const BIGNUM *y, const BIGNUM *z,\n                                             BN_CTX *ctx);\n\n/** Gets the jacobian projective coordinates of a EC_POINT over GFp\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  z      BIGNUM for the z-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,\n                                             const EC_POINT *p, BIGNUM *x,\n                                             BIGNUM *y, BIGNUM *z,\n                                             BN_CTX *ctx);\n\n/** Sets the affine coordinates of an EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p,\n                                    const BIGNUM *x, const BIGNUM *y,\n                                    BN_CTX *ctx);\n\n/** Gets the affine coordinates of an EC_POINT.\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,\n                                    BIGNUM *x, BIGNUM *y, BN_CTX *ctx);\n\n/** Sets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_set_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group,\n                                                           EC_POINT *p,\n                                                           const BIGNUM *x,\n                                                           const BIGNUM *y,\n                                                           BN_CTX *ctx))\n\n/** Gets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_get_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,\n                                                           const EC_POINT *p,\n                                                           BIGNUM *x,\n                                                           BIGNUM *y,\n                                                           BN_CTX *ctx))\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,\n                                        const BIGNUM *x, int y_bit,\n                                        BN_CTX *ctx);\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT. A synonym of\n *  EC_POINT_set_compressed_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group,\n                                                               EC_POINT *p,\n                                                               const BIGNUM *x,\n                                                               int y_bit,\n                                                               BN_CTX *ctx))\n# ifndef OPENSSL_NO_EC2M\n/** Sets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_set_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group,\n                                                            EC_POINT *p,\n                                                            const BIGNUM *x,\n                                                            const BIGNUM *y,\n                                                            BN_CTX *ctx))\n\n/** Gets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_get_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *group,\n                                                            const EC_POINT *p,\n                                                            BIGNUM *x,\n                                                            BIGNUM *y,\n                                                            BN_CTX *ctx))\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT. A synonym of\n *  EC_POINT_set_compressed_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group,\n                                                                EC_POINT *p,\n                                                                const BIGNUM *x,\n                                                                int y_bit,\n                                                                BN_CTX *ctx))\n# endif\n/** Encodes a EC_POINT object to a octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  form   point conversion form\n *  \\param  buf    memory buffer for the result. If NULL the function returns\n *                 required buffer size.\n *  \\param  len    length of the memory buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p,\n                          point_conversion_form_t form,\n                          unsigned char *buf, size_t len, BN_CTX *ctx);\n\n/** Decodes a EC_POINT from a octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  buf    memory buffer with the encoded ec point\n *  \\param  len    length of the encoded ec point\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p,\n                       const unsigned char *buf, size_t len, BN_CTX *ctx);\n\n/** Encodes an EC_POINT object to an allocated octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT object\n *  \\param  form   point conversion form\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,\n                          point_conversion_form_t form,\n                          unsigned char **pbuf, BN_CTX *ctx);\n\n/* other interfaces to point2oct/oct2point: */\nBIGNUM *EC_POINT_point2bn(const EC_GROUP *, const EC_POINT *,\n                          point_conversion_form_t form, BIGNUM *, BN_CTX *);\nEC_POINT *EC_POINT_bn2point(const EC_GROUP *, const BIGNUM *,\n                            EC_POINT *, BN_CTX *);\nchar *EC_POINT_point2hex(const EC_GROUP *, const EC_POINT *,\n                         point_conversion_form_t form, BN_CTX *);\nEC_POINT *EC_POINT_hex2point(const EC_GROUP *, const char *,\n                             EC_POINT *, BN_CTX *);\n\n/********************************************************************/\n/*         functions for doing EC_POINT arithmetic                  */\n/********************************************************************/\n\n/** Computes the sum of two EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result (r = a + b)\n *  \\param  a      EC_POINT object with the first summand\n *  \\param  b      EC_POINT object with the second summand\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,\n                 const EC_POINT *b, BN_CTX *ctx);\n\n/** Computes the double of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result (r = 2 * a)\n *  \\param  a      EC_POINT object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,\n                 BN_CTX *ctx);\n\n/** Computes the inverse of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  a      EC_POINT object to be inverted (it's used for the result as well)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx);\n\n/** Checks whether the point is the neutral element of the group\n *  \\param  group  the underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\return 1 if the point is the neutral element and 0 otherwise\n */\nint EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *p);\n\n/** Checks whether the point is on the curve\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT object to check\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the point is on the curve, 0 if not, or -1 on error\n */\nint EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,\n                         BN_CTX *ctx);\n\n/** Compares two EC_POINTs\n *  \\param  group  underlying EC_GROUP object\n *  \\param  a      first EC_POINT object\n *  \\param  b      second EC_POINT object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the points are not equal, 0 if they are, or -1 on error\n */\nint EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,\n                 BN_CTX *ctx);\n\nint EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);\nint EC_POINTs_make_affine(const EC_GROUP *group, size_t num,\n                          EC_POINT *points[], BN_CTX *ctx);\n\n/** Computes r = generator * n + sum_{i=0}^{num-1} p[i] * m[i]\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result\n *  \\param  n      BIGNUM with the multiplier for the group generator (optional)\n *  \\param  num    number further summands\n *  \\param  p      array of size num of EC_POINT objects\n *  \\param  m      array of size num of BIGNUM objects\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,\n                  size_t num, const EC_POINT *p[], const BIGNUM *m[],\n                  BN_CTX *ctx);\n\n/** Computes r = generator * n + q * m\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result\n *  \\param  n      BIGNUM with the multiplier for the group generator (optional)\n *  \\param  q      EC_POINT object with the first factor of the second summand\n *  \\param  m      BIGNUM with the second factor of the second summand\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,\n                 const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);\n\n/** Stores multiples of generator for faster point multiplication\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);\n\n/** Reports whether a precomputation has been done\n *  \\param  group  EC_GROUP object\n *  \\return 1 if a pre-computation has been done and 0 otherwise\n */\nint EC_GROUP_have_precompute_mult(const EC_GROUP *group);\n\n/********************************************************************/\n/*                       ASN1 stuff                                 */\n/********************************************************************/\n\nDECLARE_ASN1_ITEM(ECPKPARAMETERS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(ECPKPARAMETERS)\nDECLARE_ASN1_ITEM(ECPARAMETERS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(ECPARAMETERS)\n\n/*\n * EC_GROUP_get_basis_type() returns the NID of the basis type used to\n * represent the field elements\n */\nint EC_GROUP_get_basis_type(const EC_GROUP *);\n# ifndef OPENSSL_NO_EC2M\nint EC_GROUP_get_trinomial_basis(const EC_GROUP *, unsigned int *k);\nint EC_GROUP_get_pentanomial_basis(const EC_GROUP *, unsigned int *k1,\n                                   unsigned int *k2, unsigned int *k3);\n# endif\n\n# define OPENSSL_EC_EXPLICIT_CURVE  0x000\n# define OPENSSL_EC_NAMED_CURVE     0x001\n\nEC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len);\nint i2d_ECPKParameters(const EC_GROUP *, unsigned char **out);\n\n# define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x)\n# define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of_const(EC_GROUP,i2d_ECPKParameters,bp,x)\n# define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \\\n                (char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x))\n# define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \\\n                (unsigned char *)(x))\n\nint ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);\n# ifndef OPENSSL_NO_STDIO\nint ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);\n# endif\n\n/********************************************************************/\n/*                      EC_KEY functions                            */\n/********************************************************************/\n\n/* some values for the encoding_flag */\n# define EC_PKEY_NO_PARAMETERS   0x001\n# define EC_PKEY_NO_PUBKEY       0x002\n\n/* some values for the flags field */\n# define EC_FLAG_NON_FIPS_ALLOW  0x1\n# define EC_FLAG_FIPS_CHECKED    0x2\n# define EC_FLAG_COFACTOR_ECDH   0x1000\n\n/** Creates a new EC_KEY object.\n *  \\return EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_new(void);\n\nint EC_KEY_get_flags(const EC_KEY *key);\n\nvoid EC_KEY_set_flags(EC_KEY *key, int flags);\n\nvoid EC_KEY_clear_flags(EC_KEY *key, int flags);\n\nint EC_KEY_decoded_from_explicit_params(const EC_KEY *key);\n\n/** Creates a new EC_KEY object using a named curve as underlying\n *  EC_GROUP object.\n *  \\param  nid  NID of the named curve.\n *  \\return EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_new_by_curve_name(int nid);\n\n/** Frees a EC_KEY object.\n *  \\param  key  EC_KEY object to be freed.\n */\nvoid EC_KEY_free(EC_KEY *key);\n\n/** Copies a EC_KEY object.\n *  \\param  dst  destination EC_KEY object\n *  \\param  src  src EC_KEY object\n *  \\return dst or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);\n\n/** Creates a new EC_KEY object and copies the content from src to it.\n *  \\param  src  the source EC_KEY object\n *  \\return newly created EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_dup(const EC_KEY *src);\n\n/** Increases the internal reference count of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_up_ref(EC_KEY *key);\n\n/** Returns the ENGINE object of a EC_KEY object\n *  \\param  eckey  EC_KEY object\n *  \\return the ENGINE object (possibly NULL).\n */\nENGINE *EC_KEY_get0_engine(const EC_KEY *eckey);\n\n/** Returns the EC_GROUP object of a EC_KEY object\n *  \\param  key  EC_KEY object\n *  \\return the EC_GROUP object (possibly NULL).\n */\nconst EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);\n\n/** Sets the EC_GROUP of a EC_KEY object.\n *  \\param  key    EC_KEY object\n *  \\param  group  EC_GROUP to use in the EC_KEY object (note: the EC_KEY\n *                 object will use an own copy of the EC_GROUP).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);\n\n/** Returns the private key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\return a BIGNUM with the private key (possibly NULL).\n */\nconst BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);\n\n/** Sets the private key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\param  prv  BIGNUM with the private key (note: the EC_KEY object\n *               will use an own copy of the BIGNUM).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);\n\n/** Returns the public key of a EC_KEY object.\n *  \\param  key  the EC_KEY object\n *  \\return a EC_POINT object with the public key (possibly NULL)\n */\nconst EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);\n\n/** Sets the public key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\param  pub  EC_POINT object with the public key (note: the EC_KEY object\n *               will use an own copy of the EC_POINT object).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);\n\nunsigned EC_KEY_get_enc_flags(const EC_KEY *key);\nvoid EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);\npoint_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);\nvoid EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);\n\n#define EC_KEY_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_EC_KEY, l, p, newf, dupf, freef)\nint EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg);\nvoid *EC_KEY_get_ex_data(const EC_KEY *key, int idx);\n\n/* wrapper functions for the underlying EC_GROUP object */\nvoid EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag);\n\n/** Creates a table of pre-computed multiples of the generator to\n *  accelerate further EC_KEY operations.\n *  \\param  key  EC_KEY object\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);\n\n/** Creates a new ec private (and optional a new public) key.\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_generate_key(EC_KEY *key);\n\n/** Verifies that a private and/or public key is valid.\n *  \\param  key  the EC_KEY object\n *  \\return 1 on success and 0 otherwise.\n */\nint EC_KEY_check_key(const EC_KEY *key);\n\n/** Indicates if an EC_KEY can be used for signing.\n *  \\param  eckey  the EC_KEY object\n *  \\return 1 if can can sign and 0 otherwise.\n */\nint EC_KEY_can_sign(const EC_KEY *eckey);\n\n/** Sets a public key from affine coordinates performing\n *  necessary NIST PKV tests.\n *  \\param  key  the EC_KEY object\n *  \\param  x    public key x coordinate\n *  \\param  y    public key y coordinate\n *  \\return 1 on success and 0 otherwise.\n */\nint EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,\n                                             BIGNUM *y);\n\n/** Encodes an EC_KEY public key to an allocated octet string\n *  \\param  key    key to encode\n *  \\param  form   point conversion form\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_KEY_key2buf(const EC_KEY *key, point_conversion_form_t form,\n                      unsigned char **pbuf, BN_CTX *ctx);\n\n/** Decodes a EC_KEY public key from a octet string\n *  \\param  key    key to decode\n *  \\param  buf    memory buffer with the encoded ec point\n *  \\param  len    length of the encoded ec point\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\n\nint EC_KEY_oct2key(EC_KEY *key, const unsigned char *buf, size_t len,\n                   BN_CTX *ctx);\n\n/** Decodes an EC_KEY private key from an octet string\n *  \\param  key    key to decode\n *  \\param  buf    memory buffer with the encoded private key\n *  \\param  len    length of the encoded key\n *  \\return 1 on success and 0 if an error occurred\n */\n\nint EC_KEY_oct2priv(EC_KEY *key, const unsigned char *buf, size_t len);\n\n/** Encodes a EC_KEY private key to an octet string\n *  \\param  key    key to encode\n *  \\param  buf    memory buffer for the result. If NULL the function returns\n *                 required buffer size.\n *  \\param  len    length of the memory buffer\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\n\nsize_t EC_KEY_priv2oct(const EC_KEY *key, unsigned char *buf, size_t len);\n\n/** Encodes an EC_KEY private key to an allocated octet string\n *  \\param  eckey  key to encode\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf);\n\n/********************************************************************/\n/*        de- and encoding functions for SEC1 ECPrivateKey          */\n/********************************************************************/\n\n/** Decodes a private key from a memory buffer.\n *  \\param  key  a pointer to a EC_KEY object which should be used (or NULL)\n *  \\param  in   pointer to memory with the DER encoded private key\n *  \\param  len  length of the DER encoded private key\n *  \\return the decoded private key or NULL if an error occurred.\n */\nEC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes a private key object and stores the result in a buffer.\n *  \\param  key  the EC_KEY object to encode\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint i2d_ECPrivateKey(EC_KEY *key, unsigned char **out);\n\n/********************************************************************/\n/*        de- and encoding functions for EC parameters              */\n/********************************************************************/\n\n/** Decodes ec parameter from a memory buffer.\n *  \\param  key  a pointer to a EC_KEY object which should be used (or NULL)\n *  \\param  in   pointer to memory with the DER encoded ec parameters\n *  \\param  len  length of the DER encoded ec parameters\n *  \\return a EC_KEY object with the decoded parameters or NULL if an error\n *          occurred.\n */\nEC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes ec parameter and stores the result in a buffer.\n *  \\param  key  the EC_KEY object with ec parameters to encode\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint i2d_ECParameters(EC_KEY *key, unsigned char **out);\n\n/********************************************************************/\n/*         de- and encoding functions for EC public key             */\n/*         (octet string, not DER -- hence 'o2i' and 'i2o')         */\n/********************************************************************/\n\n/** Decodes a ec public key from a octet string.\n *  \\param  key  a pointer to a EC_KEY object which should be used\n *  \\param  in   memory buffer with the encoded public key\n *  \\param  len  length of the encoded public key\n *  \\return EC_KEY object with decoded public key or NULL if an error\n *          occurred.\n */\nEC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes a ec public key in an octet string.\n *  \\param  key  the EC_KEY object with the public key\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred\n */\nint i2o_ECPublicKey(const EC_KEY *key, unsigned char **out);\n\n/** Prints out the ec parameters on human readable form.\n *  \\param  bp   BIO object to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred\n */\nint ECParameters_print(BIO *bp, const EC_KEY *key);\n\n/** Prints out the contents of a EC_KEY object\n *  \\param  bp   BIO object to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\param  off  line offset\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_KEY_print(BIO *bp, const EC_KEY *key, int off);\n\n# ifndef OPENSSL_NO_STDIO\n/** Prints out the ec parameters on human readable form.\n *  \\param  fp   file descriptor to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred\n */\nint ECParameters_print_fp(FILE *fp, const EC_KEY *key);\n\n/** Prints out the contents of a EC_KEY object\n *  \\param  fp   file descriptor to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\param  off  line offset\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);\n\n# endif\n\nconst EC_KEY_METHOD *EC_KEY_OpenSSL(void);\nconst EC_KEY_METHOD *EC_KEY_get_default_method(void);\nvoid EC_KEY_set_default_method(const EC_KEY_METHOD *meth);\nconst EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key);\nint EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);\nEC_KEY *EC_KEY_new_method(ENGINE *engine);\n\n/** The old name for ecdh_KDF_X9_63\n *  The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,\n *  it is actually specified in ANSI X9.63.\n *  This identifier is retained for backwards compatibility\n */\nint ECDH_KDF_X9_62(unsigned char *out, size_t outlen,\n                   const unsigned char *Z, size_t Zlen,\n                   const unsigned char *sinfo, size_t sinfolen,\n                   const EVP_MD *md);\n\nint ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,\n                     const EC_KEY *ecdh,\n                     void *(*KDF) (const void *in, size_t inlen,\n                                   void *out, size_t *outlen));\n\ntypedef struct ECDSA_SIG_st ECDSA_SIG;\n\n/** Allocates and initialize a ECDSA_SIG structure\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_SIG_new(void);\n\n/** frees a ECDSA_SIG structure\n *  \\param  sig  pointer to the ECDSA_SIG structure\n */\nvoid ECDSA_SIG_free(ECDSA_SIG *sig);\n\n/** DER encode content of ECDSA_SIG object (note: this function modifies *pp\n *  (*pp += length of the DER encoded signature)).\n *  \\param  sig  pointer to the ECDSA_SIG object\n *  \\param  pp   pointer to a unsigned char pointer for the output or NULL\n *  \\return the length of the DER encoded ECDSA_SIG object or a negative value\n *          on error\n */\nint i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);\n\n/** Decodes a DER encoded ECDSA signature (note: this function changes *pp\n *  (*pp += len)).\n *  \\param  sig  pointer to ECDSA_SIG pointer (may be NULL)\n *  \\param  pp   memory buffer with the DER encoded signature\n *  \\param  len  length of the buffer\n *  \\return pointer to the decoded ECDSA_SIG structure (or NULL)\n */\nECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len);\n\n/** Accessor for r and s fields of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n *  \\param  pr   pointer to BIGNUM pointer for r (may be NULL)\n *  \\param  ps   pointer to BIGNUM pointer for s (may be NULL)\n */\nvoid ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);\n\n/** Accessor for r field of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n */\nconst BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig);\n\n/** Accessor for s field of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n */\nconst BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig);\n\n/** Setter for r and s fields of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n *  \\param  r    pointer to BIGNUM for r (may be NULL)\n *  \\param  s    pointer to BIGNUM for s (may be NULL)\n */\nint ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);\n\n/** Computes the ECDSA signature of the given hash value using\n *  the supplied private key and returns the created signature.\n *  \\param  dgst      pointer to the hash value\n *  \\param  dgst_len  length of the hash value\n *  \\param  eckey     EC_KEY object containing a private EC key\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len,\n                         EC_KEY *eckey);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  kinv     BIGNUM with a pre-computed inverse k (optional)\n *  \\param  rp       BIGNUM with a pre-computed rp value (optional),\n *                   see ECDSA_sign_setup\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,\n                            const BIGNUM *kinv, const BIGNUM *rp,\n                            EC_KEY *eckey);\n\n/** Verifies that the supplied signature is a valid ECDSA\n *  signature of the supplied hash value using the supplied public key.\n *  \\param  dgst      pointer to the hash value\n *  \\param  dgst_len  length of the hash value\n *  \\param  sig       ECDSA_SIG structure\n *  \\param  eckey     EC_KEY object containing a public EC key\n *  \\return 1 if the signature is valid, 0 if the signature is invalid\n *          and -1 on error\n */\nint ECDSA_do_verify(const unsigned char *dgst, int dgst_len,\n                    const ECDSA_SIG *sig, EC_KEY *eckey);\n\n/** Precompute parts of the signing operation\n *  \\param  eckey  EC_KEY object containing a private EC key\n *  \\param  ctx    BN_CTX object (optional)\n *  \\param  kinv   BIGNUM pointer for the inverse of k\n *  \\param  rp     BIGNUM pointer for x coordinate of k * generator\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      memory for the DER encoded created signature\n *  \\param  siglen   pointer to the length of the returned signature\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign(int type, const unsigned char *dgst, int dgstlen,\n               unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      buffer to hold the DER encoded signature\n *  \\param  siglen   pointer to the length of the returned signature\n *  \\param  kinv     BIGNUM with a pre-computed inverse k (optional)\n *  \\param  rp       BIGNUM with a pre-computed rp value (optional),\n *                   see ECDSA_sign_setup\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,\n                  unsigned char *sig, unsigned int *siglen,\n                  const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);\n\n/** Verifies that the given signature is valid ECDSA signature\n *  of the supplied hash value using the specified public key.\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      pointer to the DER encoded signature\n *  \\param  siglen   length of the DER encoded signature\n *  \\param  eckey    EC_KEY object containing a public EC key\n *  \\return 1 if the signature is valid, 0 if the signature is invalid\n *          and -1 on error\n */\nint ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,\n                 const unsigned char *sig, int siglen, EC_KEY *eckey);\n\n/** Returns the maximum length of the DER encoded signature\n *  \\param  eckey  EC_KEY object\n *  \\return numbers of bytes required for the DER encoded signature\n */\nint ECDSA_size(const EC_KEY *eckey);\n\n/********************************************************************/\n/*  EC_KEY_METHOD constructors, destructors, writers and accessors  */\n/********************************************************************/\n\nEC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);\nvoid EC_KEY_METHOD_free(EC_KEY_METHOD *meth);\nvoid EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,\n                            int (*init)(EC_KEY *key),\n                            void (*finish)(EC_KEY *key),\n                            int (*copy)(EC_KEY *dest, const EC_KEY *src),\n                            int (*set_group)(EC_KEY *key, const EC_GROUP *grp),\n                            int (*set_private)(EC_KEY *key,\n                                               const BIGNUM *priv_key),\n                            int (*set_public)(EC_KEY *key,\n                                              const EC_POINT *pub_key));\n\nvoid EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,\n                              int (*keygen)(EC_KEY *key));\n\nvoid EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,\n                                   int (*ckey)(unsigned char **psec,\n                                               size_t *pseclen,\n                                               const EC_POINT *pub_key,\n                                               const EC_KEY *ecdh));\n\nvoid EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,\n                            int (*sign)(int type, const unsigned char *dgst,\n                                        int dlen, unsigned char *sig,\n                                        unsigned int *siglen,\n                                        const BIGNUM *kinv, const BIGNUM *r,\n                                        EC_KEY *eckey),\n                            int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,\n                                              BIGNUM **kinvp, BIGNUM **rp),\n                            ECDSA_SIG *(*sign_sig)(const unsigned char *dgst,\n                                                   int dgst_len,\n                                                   const BIGNUM *in_kinv,\n                                                   const BIGNUM *in_r,\n                                                   EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,\n                              int (*verify)(int type, const unsigned\n                                            char *dgst, int dgst_len,\n                                            const unsigned char *sigbuf,\n                                            int sig_len, EC_KEY *eckey),\n                              int (*verify_sig)(const unsigned char *dgst,\n                                                int dgst_len,\n                                                const ECDSA_SIG *sig,\n                                                EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth,\n                            int (**pinit)(EC_KEY *key),\n                            void (**pfinish)(EC_KEY *key),\n                            int (**pcopy)(EC_KEY *dest, const EC_KEY *src),\n                            int (**pset_group)(EC_KEY *key,\n                                               const EC_GROUP *grp),\n                            int (**pset_private)(EC_KEY *key,\n                                                 const BIGNUM *priv_key),\n                            int (**pset_public)(EC_KEY *key,\n                                                const EC_POINT *pub_key));\n\nvoid EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,\n                              int (**pkeygen)(EC_KEY *key));\n\nvoid EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,\n                                   int (**pck)(unsigned char **psec,\n                                               size_t *pseclen,\n                                               const EC_POINT *pub_key,\n                                               const EC_KEY *ecdh));\n\nvoid EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,\n                            int (**psign)(int type, const unsigned char *dgst,\n                                          int dlen, unsigned char *sig,\n                                          unsigned int *siglen,\n                                          const BIGNUM *kinv, const BIGNUM *r,\n                                          EC_KEY *eckey),\n                            int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,\n                                                BIGNUM **kinvp, BIGNUM **rp),\n                            ECDSA_SIG *(**psign_sig)(const unsigned char *dgst,\n                                                     int dgst_len,\n                                                     const BIGNUM *in_kinv,\n                                                     const BIGNUM *in_r,\n                                                     EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,\n                              int (**pverify)(int type, const unsigned\n                                              char *dgst, int dgst_len,\n                                              const unsigned char *sigbuf,\n                                              int sig_len, EC_KEY *eckey),\n                              int (**pverify_sig)(const unsigned char *dgst,\n                                                  int dgst_len,\n                                                  const ECDSA_SIG *sig,\n                                                  EC_KEY *eckey));\n\n# define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)\n\n# ifndef __cplusplus\n#  if defined(__SUNPRO_C)\n#   if __SUNPRO_C >= 0x520\n#    pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)\n#   endif\n#  endif\n# endif\n\n# define EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \\\n                                EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, nid, NULL)\n\n# define EVP_PKEY_CTX_set_ec_param_enc(ctx, flag) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \\\n                                EVP_PKEY_CTRL_EC_PARAM_ENC, flag, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_cofactor_mode(ctx, flag) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_ECDH_COFACTOR, flag, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_cofactor_mode(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_ECDH_COFACTOR, -2, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_type(ctx, kdf) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_TYPE, kdf, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_type(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_TYPE, -2, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_MD, 0, (void *)(pmd))\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_outlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_OUTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_outlen(ctx, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, 0, \\\n                                (void *)(plen))\n\n# define EVP_PKEY_CTX_set0_ecdh_kdf_ukm(ctx, p, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_UKM, plen, (void *)(p))\n\n# define EVP_PKEY_CTX_get0_ecdh_kdf_ukm(ctx, p) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_UKM, 0, (void *)(p))\n\n/* SM2 will skip the operation check so no need to pass operation here */\n# define EVP_PKEY_CTX_set1_id(ctx, id, id_len) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_SET1_ID, (int)id_len, (void*)(id))\n\n# define EVP_PKEY_CTX_get1_id(ctx, id) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_GET1_ID, 0, (void*)(id))\n\n# define EVP_PKEY_CTX_get1_id_len(ctx, id_len) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_GET1_ID_LEN, 0, (void*)(id_len))\n\n# define EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID             (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_EC_PARAM_ENC                      (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_EC_ECDH_COFACTOR                  (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_EC_KDF_TYPE                       (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_EC_KDF_MD                         (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_GET_EC_KDF_MD                     (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_EC_KDF_OUTLEN                     (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN                 (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_EC_KDF_UKM                        (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_GET_EC_KDF_UKM                    (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_SET1_ID                           (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET1_ID                           (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_GET1_ID_LEN                       (EVP_PKEY_ALG_CTRL + 13)\n/* KDF types */\n# define EVP_PKEY_ECDH_KDF_NONE                          1\n# define EVP_PKEY_ECDH_KDF_X9_63                         2\n/** The old name for EVP_PKEY_ECDH_KDF_X9_63\n *  The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,\n *  it is actually specified in ANSI X9.63.\n *  This identifier is retained for backwards compatibility\n */\n# define EVP_PKEY_ECDH_KDF_X9_62   EVP_PKEY_ECDH_KDF_X9_63\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ecdh.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/ec.h>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ecdsa.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/ec.h>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ecerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ECERR_H\n# define HEADER_ECERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_EC\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_EC_strings(void);\n\n/*\n * EC function codes.\n */\n#  define EC_F_BN_TO_FELEM                                 224\n#  define EC_F_D2I_ECPARAMETERS                            144\n#  define EC_F_D2I_ECPKPARAMETERS                          145\n#  define EC_F_D2I_ECPRIVATEKEY                            146\n#  define EC_F_DO_EC_KEY_PRINT                             221\n#  define EC_F_ECDH_CMS_DECRYPT                            238\n#  define EC_F_ECDH_CMS_SET_SHARED_INFO                    239\n#  define EC_F_ECDH_COMPUTE_KEY                            246\n#  define EC_F_ECDH_SIMPLE_COMPUTE_KEY                     257\n#  define EC_F_ECDSA_DO_SIGN_EX                            251\n#  define EC_F_ECDSA_DO_VERIFY                             252\n#  define EC_F_ECDSA_SIGN_EX                               254\n#  define EC_F_ECDSA_SIGN_SETUP                            248\n#  define EC_F_ECDSA_SIG_NEW                               265\n#  define EC_F_ECDSA_VERIFY                                253\n#  define EC_F_ECD_ITEM_VERIFY                             270\n#  define EC_F_ECKEY_PARAM2TYPE                            223\n#  define EC_F_ECKEY_PARAM_DECODE                          212\n#  define EC_F_ECKEY_PRIV_DECODE                           213\n#  define EC_F_ECKEY_PRIV_ENCODE                           214\n#  define EC_F_ECKEY_PUB_DECODE                            215\n#  define EC_F_ECKEY_PUB_ENCODE                            216\n#  define EC_F_ECKEY_TYPE2PARAM                            220\n#  define EC_F_ECPARAMETERS_PRINT                          147\n#  define EC_F_ECPARAMETERS_PRINT_FP                       148\n#  define EC_F_ECPKPARAMETERS_PRINT                        149\n#  define EC_F_ECPKPARAMETERS_PRINT_FP                     150\n#  define EC_F_ECP_NISTZ256_GET_AFFINE                     240\n#  define EC_F_ECP_NISTZ256_INV_MOD_ORD                    275\n#  define EC_F_ECP_NISTZ256_MULT_PRECOMPUTE                243\n#  define EC_F_ECP_NISTZ256_POINTS_MUL                     241\n#  define EC_F_ECP_NISTZ256_PRE_COMP_NEW                   244\n#  define EC_F_ECP_NISTZ256_WINDOWED_MUL                   242\n#  define EC_F_ECX_KEY_OP                                  266\n#  define EC_F_ECX_PRIV_ENCODE                             267\n#  define EC_F_ECX_PUB_ENCODE                              268\n#  define EC_F_EC_ASN1_GROUP2CURVE                         153\n#  define EC_F_EC_ASN1_GROUP2FIELDID                       154\n#  define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY           208\n#  define EC_F_EC_GF2M_SIMPLE_FIELD_INV                    296\n#  define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT     159\n#  define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE              195\n#  define EC_F_EC_GF2M_SIMPLE_LADDER_POST                  285\n#  define EC_F_EC_GF2M_SIMPLE_LADDER_PRE                   288\n#  define EC_F_EC_GF2M_SIMPLE_OCT2POINT                    160\n#  define EC_F_EC_GF2M_SIMPLE_POINT2OCT                    161\n#  define EC_F_EC_GF2M_SIMPLE_POINTS_MUL                   289\n#  define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 162\n#  define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 163\n#  define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES   164\n#  define EC_F_EC_GFP_MONT_FIELD_DECODE                    133\n#  define EC_F_EC_GFP_MONT_FIELD_ENCODE                    134\n#  define EC_F_EC_GFP_MONT_FIELD_INV                       297\n#  define EC_F_EC_GFP_MONT_FIELD_MUL                       131\n#  define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE                209\n#  define EC_F_EC_GFP_MONT_FIELD_SQR                       132\n#  define EC_F_EC_GFP_MONT_GROUP_SET_CURVE                 189\n#  define EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE             225\n#  define EC_F_EC_GFP_NISTP224_POINTS_MUL                  228\n#  define EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES 226\n#  define EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE             230\n#  define EC_F_EC_GFP_NISTP256_POINTS_MUL                  231\n#  define EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES 232\n#  define EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE             233\n#  define EC_F_EC_GFP_NISTP521_POINTS_MUL                  234\n#  define EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES 235\n#  define EC_F_EC_GFP_NIST_FIELD_MUL                       200\n#  define EC_F_EC_GFP_NIST_FIELD_SQR                       201\n#  define EC_F_EC_GFP_NIST_GROUP_SET_CURVE                 202\n#  define EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES             287\n#  define EC_F_EC_GFP_SIMPLE_FIELD_INV                     298\n#  define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT      165\n#  define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE               166\n#  define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE                   102\n#  define EC_F_EC_GFP_SIMPLE_OCT2POINT                     103\n#  define EC_F_EC_GFP_SIMPLE_POINT2OCT                     104\n#  define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE            137\n#  define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES  167\n#  define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES  168\n#  define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES    169\n#  define EC_F_EC_GROUP_CHECK                              170\n#  define EC_F_EC_GROUP_CHECK_DISCRIMINANT                 171\n#  define EC_F_EC_GROUP_COPY                               106\n#  define EC_F_EC_GROUP_GET_CURVE                          291\n#  define EC_F_EC_GROUP_GET_CURVE_GF2M                     172\n#  define EC_F_EC_GROUP_GET_CURVE_GFP                      130\n#  define EC_F_EC_GROUP_GET_DEGREE                         173\n#  define EC_F_EC_GROUP_GET_ECPARAMETERS                   261\n#  define EC_F_EC_GROUP_GET_ECPKPARAMETERS                 262\n#  define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS              193\n#  define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS                194\n#  define EC_F_EC_GROUP_NEW                                108\n#  define EC_F_EC_GROUP_NEW_BY_CURVE_NAME                  174\n#  define EC_F_EC_GROUP_NEW_FROM_DATA                      175\n#  define EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS              263\n#  define EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS            264\n#  define EC_F_EC_GROUP_SET_CURVE                          292\n#  define EC_F_EC_GROUP_SET_CURVE_GF2M                     176\n#  define EC_F_EC_GROUP_SET_CURVE_GFP                      109\n#  define EC_F_EC_GROUP_SET_GENERATOR                      111\n#  define EC_F_EC_GROUP_SET_SEED                           286\n#  define EC_F_EC_KEY_CHECK_KEY                            177\n#  define EC_F_EC_KEY_COPY                                 178\n#  define EC_F_EC_KEY_GENERATE_KEY                         179\n#  define EC_F_EC_KEY_NEW                                  182\n#  define EC_F_EC_KEY_NEW_METHOD                           245\n#  define EC_F_EC_KEY_OCT2PRIV                             255\n#  define EC_F_EC_KEY_PRINT                                180\n#  define EC_F_EC_KEY_PRINT_FP                             181\n#  define EC_F_EC_KEY_PRIV2BUF                             279\n#  define EC_F_EC_KEY_PRIV2OCT                             256\n#  define EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES    229\n#  define EC_F_EC_KEY_SIMPLE_CHECK_KEY                     258\n#  define EC_F_EC_KEY_SIMPLE_OCT2PRIV                      259\n#  define EC_F_EC_KEY_SIMPLE_PRIV2OCT                      260\n#  define EC_F_EC_PKEY_CHECK                               273\n#  define EC_F_EC_PKEY_PARAM_CHECK                         274\n#  define EC_F_EC_POINTS_MAKE_AFFINE                       136\n#  define EC_F_EC_POINTS_MUL                               290\n#  define EC_F_EC_POINT_ADD                                112\n#  define EC_F_EC_POINT_BN2POINT                           280\n#  define EC_F_EC_POINT_CMP                                113\n#  define EC_F_EC_POINT_COPY                               114\n#  define EC_F_EC_POINT_DBL                                115\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES             293\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M        183\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP         116\n#  define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP    117\n#  define EC_F_EC_POINT_INVERT                             210\n#  define EC_F_EC_POINT_IS_AT_INFINITY                     118\n#  define EC_F_EC_POINT_IS_ON_CURVE                        119\n#  define EC_F_EC_POINT_MAKE_AFFINE                        120\n#  define EC_F_EC_POINT_NEW                                121\n#  define EC_F_EC_POINT_OCT2POINT                          122\n#  define EC_F_EC_POINT_POINT2BUF                          281\n#  define EC_F_EC_POINT_POINT2OCT                          123\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES             294\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M        185\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP         124\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES         295\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M    186\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP     125\n#  define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP    126\n#  define EC_F_EC_POINT_SET_TO_INFINITY                    127\n#  define EC_F_EC_PRE_COMP_NEW                             196\n#  define EC_F_EC_SCALAR_MUL_LADDER                        284\n#  define EC_F_EC_WNAF_MUL                                 187\n#  define EC_F_EC_WNAF_PRECOMPUTE_MULT                     188\n#  define EC_F_I2D_ECPARAMETERS                            190\n#  define EC_F_I2D_ECPKPARAMETERS                          191\n#  define EC_F_I2D_ECPRIVATEKEY                            192\n#  define EC_F_I2O_ECPUBLICKEY                             151\n#  define EC_F_NISTP224_PRE_COMP_NEW                       227\n#  define EC_F_NISTP256_PRE_COMP_NEW                       236\n#  define EC_F_NISTP521_PRE_COMP_NEW                       237\n#  define EC_F_O2I_ECPUBLICKEY                             152\n#  define EC_F_OLD_EC_PRIV_DECODE                          222\n#  define EC_F_OSSL_ECDH_COMPUTE_KEY                       247\n#  define EC_F_OSSL_ECDSA_SIGN_SIG                         249\n#  define EC_F_OSSL_ECDSA_VERIFY_SIG                       250\n#  define EC_F_PKEY_ECD_CTRL                               271\n#  define EC_F_PKEY_ECD_DIGESTSIGN                         272\n#  define EC_F_PKEY_ECD_DIGESTSIGN25519                    276\n#  define EC_F_PKEY_ECD_DIGESTSIGN448                      277\n#  define EC_F_PKEY_ECX_DERIVE                             269\n#  define EC_F_PKEY_EC_CTRL                                197\n#  define EC_F_PKEY_EC_CTRL_STR                            198\n#  define EC_F_PKEY_EC_DERIVE                              217\n#  define EC_F_PKEY_EC_INIT                                282\n#  define EC_F_PKEY_EC_KDF_DERIVE                          283\n#  define EC_F_PKEY_EC_KEYGEN                              199\n#  define EC_F_PKEY_EC_PARAMGEN                            219\n#  define EC_F_PKEY_EC_SIGN                                218\n#  define EC_F_VALIDATE_ECX_DERIVE                         278\n\n/*\n * EC reason codes.\n */\n#  define EC_R_ASN1_ERROR                                  115\n#  define EC_R_BAD_SIGNATURE                               156\n#  define EC_R_BIGNUM_OUT_OF_RANGE                         144\n#  define EC_R_BUFFER_TOO_SMALL                            100\n#  define EC_R_CANNOT_INVERT                               165\n#  define EC_R_COORDINATES_OUT_OF_RANGE                    146\n#  define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH                 160\n#  define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING              159\n#  define EC_R_D2I_ECPKPARAMETERS_FAILURE                  117\n#  define EC_R_DECODE_ERROR                                142\n#  define EC_R_DISCRIMINANT_IS_ZERO                        118\n#  define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE                119\n#  define EC_R_FIELD_TOO_LARGE                             143\n#  define EC_R_GF2M_NOT_SUPPORTED                          147\n#  define EC_R_GROUP2PKPARAMETERS_FAILURE                  120\n#  define EC_R_I2D_ECPKPARAMETERS_FAILURE                  121\n#  define EC_R_INCOMPATIBLE_OBJECTS                        101\n#  define EC_R_INVALID_ARGUMENT                            112\n#  define EC_R_INVALID_COMPRESSED_POINT                    110\n#  define EC_R_INVALID_COMPRESSION_BIT                     109\n#  define EC_R_INVALID_CURVE                               141\n#  define EC_R_INVALID_DIGEST                              151\n#  define EC_R_INVALID_DIGEST_TYPE                         138\n#  define EC_R_INVALID_ENCODING                            102\n#  define EC_R_INVALID_FIELD                               103\n#  define EC_R_INVALID_FORM                                104\n#  define EC_R_INVALID_GROUP_ORDER                         122\n#  define EC_R_INVALID_KEY                                 116\n#  define EC_R_INVALID_OUTPUT_LENGTH                       161\n#  define EC_R_INVALID_PEER_KEY                            133\n#  define EC_R_INVALID_PENTANOMIAL_BASIS                   132\n#  define EC_R_INVALID_PRIVATE_KEY                         123\n#  define EC_R_INVALID_TRINOMIAL_BASIS                     137\n#  define EC_R_KDF_PARAMETER_ERROR                         148\n#  define EC_R_KEYS_NOT_SET                                140\n#  define EC_R_LADDER_POST_FAILURE                         136\n#  define EC_R_LADDER_PRE_FAILURE                          153\n#  define EC_R_LADDER_STEP_FAILURE                         162\n#  define EC_R_MISSING_OID                                 167\n#  define EC_R_MISSING_PARAMETERS                          124\n#  define EC_R_MISSING_PRIVATE_KEY                         125\n#  define EC_R_NEED_NEW_SETUP_VALUES                       157\n#  define EC_R_NOT_A_NIST_PRIME                            135\n#  define EC_R_NOT_IMPLEMENTED                             126\n#  define EC_R_NOT_INITIALIZED                             111\n#  define EC_R_NO_PARAMETERS_SET                           139\n#  define EC_R_NO_PRIVATE_VALUE                            154\n#  define EC_R_OPERATION_NOT_SUPPORTED                     152\n#  define EC_R_PASSED_NULL_PARAMETER                       134\n#  define EC_R_PEER_KEY_ERROR                              149\n#  define EC_R_PKPARAMETERS2GROUP_FAILURE                  127\n#  define EC_R_POINT_ARITHMETIC_FAILURE                    155\n#  define EC_R_POINT_AT_INFINITY                           106\n#  define EC_R_POINT_COORDINATES_BLIND_FAILURE             163\n#  define EC_R_POINT_IS_NOT_ON_CURVE                       107\n#  define EC_R_RANDOM_NUMBER_GENERATION_FAILED             158\n#  define EC_R_SHARED_INFO_ERROR                           150\n#  define EC_R_SLOT_FULL                                   108\n#  define EC_R_UNDEFINED_GENERATOR                         113\n#  define EC_R_UNDEFINED_ORDER                             128\n#  define EC_R_UNKNOWN_COFACTOR                            164\n#  define EC_R_UNKNOWN_GROUP                               129\n#  define EC_R_UNKNOWN_ORDER                               114\n#  define EC_R_UNSUPPORTED_FIELD                           131\n#  define EC_R_WRONG_CURVE_PARAMETERS                      145\n#  define EC_R_WRONG_ORDER                                 130\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/engine.h",
    "content": "/*\n * Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENGINE_H\n# define HEADER_ENGINE_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_ENGINE\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n#  include <openssl/rsa.h>\n#  include <openssl/dsa.h>\n#  include <openssl/dh.h>\n#  include <openssl/ec.h>\n#  include <openssl/rand.h>\n#  include <openssl/ui.h>\n#  include <openssl/err.h>\n# endif\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/x509.h>\n# include <openssl/engineerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * These flags are used to control combinations of algorithm (methods) by\n * bitwise \"OR\"ing.\n */\n# define ENGINE_METHOD_RSA               (unsigned int)0x0001\n# define ENGINE_METHOD_DSA               (unsigned int)0x0002\n# define ENGINE_METHOD_DH                (unsigned int)0x0004\n# define ENGINE_METHOD_RAND              (unsigned int)0x0008\n# define ENGINE_METHOD_CIPHERS           (unsigned int)0x0040\n# define ENGINE_METHOD_DIGESTS           (unsigned int)0x0080\n# define ENGINE_METHOD_PKEY_METHS        (unsigned int)0x0200\n# define ENGINE_METHOD_PKEY_ASN1_METHS   (unsigned int)0x0400\n# define ENGINE_METHOD_EC                (unsigned int)0x0800\n/* Obvious all-or-nothing cases. */\n# define ENGINE_METHOD_ALL               (unsigned int)0xFFFF\n# define ENGINE_METHOD_NONE              (unsigned int)0x0000\n\n/*\n * This(ese) flag(s) controls behaviour of the ENGINE_TABLE mechanism used\n * internally to control registration of ENGINE implementations, and can be\n * set by ENGINE_set_table_flags(). The \"NOINIT\" flag prevents attempts to\n * initialise registered ENGINEs if they are not already initialised.\n */\n# define ENGINE_TABLE_FLAG_NOINIT        (unsigned int)0x0001\n\n/* ENGINE flags that can be set by ENGINE_set_flags(). */\n/* Not used */\n/* #define ENGINE_FLAGS_MALLOCED        0x0001 */\n\n/*\n * This flag is for ENGINEs that wish to handle the various 'CMD'-related\n * control commands on their own. Without this flag, ENGINE_ctrl() handles\n * these control commands on behalf of the ENGINE using their \"cmd_defns\"\n * data.\n */\n# define ENGINE_FLAGS_MANUAL_CMD_CTRL    (int)0x0002\n\n/*\n * This flag is for ENGINEs who return new duplicate structures when found\n * via \"ENGINE_by_id()\". When an ENGINE must store state (eg. if\n * ENGINE_ctrl() commands are called in sequence as part of some stateful\n * process like key-generation setup and execution), it can set this flag -\n * then each attempt to obtain the ENGINE will result in it being copied into\n * a new structure. Normally, ENGINEs don't declare this flag so\n * ENGINE_by_id() just increments the existing ENGINE's structural reference\n * count.\n */\n# define ENGINE_FLAGS_BY_ID_COPY         (int)0x0004\n\n/*\n * This flag if for an ENGINE that does not want its methods registered as\n * part of ENGINE_register_all_complete() for example if the methods are not\n * usable as default methods.\n */\n\n# define ENGINE_FLAGS_NO_REGISTER_ALL    (int)0x0008\n\n/*\n * ENGINEs can support their own command types, and these flags are used in\n * ENGINE_CTRL_GET_CMD_FLAGS to indicate to the caller what kind of input\n * each command expects. Currently only numeric and string input is\n * supported. If a control command supports none of the _NUMERIC, _STRING, or\n * _NO_INPUT options, then it is regarded as an \"internal\" control command -\n * and not for use in config setting situations. As such, they're not\n * available to the ENGINE_ctrl_cmd_string() function, only raw ENGINE_ctrl()\n * access. Changes to this list of 'command types' should be reflected\n * carefully in ENGINE_cmd_is_executable() and ENGINE_ctrl_cmd_string().\n */\n\n/* accepts a 'long' input value (3rd parameter to ENGINE_ctrl) */\n# define ENGINE_CMD_FLAG_NUMERIC         (unsigned int)0x0001\n/*\n * accepts string input (cast from 'void*' to 'const char *', 4th parameter\n * to ENGINE_ctrl)\n */\n# define ENGINE_CMD_FLAG_STRING          (unsigned int)0x0002\n/*\n * Indicates that the control command takes *no* input. Ie. the control\n * command is unparameterised.\n */\n# define ENGINE_CMD_FLAG_NO_INPUT        (unsigned int)0x0004\n/*\n * Indicates that the control command is internal. This control command won't\n * be shown in any output, and is only usable through the ENGINE_ctrl_cmd()\n * function.\n */\n# define ENGINE_CMD_FLAG_INTERNAL        (unsigned int)0x0008\n\n/*\n * NB: These 3 control commands are deprecated and should not be used.\n * ENGINEs relying on these commands should compile conditional support for\n * compatibility (eg. if these symbols are defined) but should also migrate\n * the same functionality to their own ENGINE-specific control functions that\n * can be \"discovered\" by calling applications. The fact these control\n * commands wouldn't be \"executable\" (ie. usable by text-based config)\n * doesn't change the fact that application code can find and use them\n * without requiring per-ENGINE hacking.\n */\n\n/*\n * These flags are used to tell the ctrl function what should be done. All\n * command numbers are shared between all engines, even if some don't make\n * sense to some engines.  In such a case, they do nothing but return the\n * error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED.\n */\n# define ENGINE_CTRL_SET_LOGSTREAM               1\n# define ENGINE_CTRL_SET_PASSWORD_CALLBACK       2\n# define ENGINE_CTRL_HUP                         3/* Close and reinitialise\n                                                   * any handles/connections\n                                                   * etc. */\n# define ENGINE_CTRL_SET_USER_INTERFACE          4/* Alternative to callback */\n# define ENGINE_CTRL_SET_CALLBACK_DATA           5/* User-specific data, used\n                                                   * when calling the password\n                                                   * callback and the user\n                                                   * interface */\n# define ENGINE_CTRL_LOAD_CONFIGURATION          6/* Load a configuration,\n                                                   * given a string that\n                                                   * represents a file name\n                                                   * or so */\n# define ENGINE_CTRL_LOAD_SECTION                7/* Load data from a given\n                                                   * section in the already\n                                                   * loaded configuration */\n\n/*\n * These control commands allow an application to deal with an arbitrary\n * engine in a dynamic way. Warn: Negative return values indicate errors FOR\n * THESE COMMANDS because zero is used to indicate 'end-of-list'. Other\n * commands, including ENGINE-specific command types, return zero for an\n * error. An ENGINE can choose to implement these ctrl functions, and can\n * internally manage things however it chooses - it does so by setting the\n * ENGINE_FLAGS_MANUAL_CMD_CTRL flag (using ENGINE_set_flags()). Otherwise\n * the ENGINE_ctrl() code handles this on the ENGINE's behalf using the\n * cmd_defns data (set using ENGINE_set_cmd_defns()). This means an ENGINE's\n * ctrl() handler need only implement its own commands - the above \"meta\"\n * commands will be taken care of.\n */\n\n/*\n * Returns non-zero if the supplied ENGINE has a ctrl() handler. If \"not\",\n * then all the remaining control commands will return failure, so it is\n * worth checking this first if the caller is trying to \"discover\" the\n * engine's capabilities and doesn't want errors generated unnecessarily.\n */\n# define ENGINE_CTRL_HAS_CTRL_FUNCTION           10\n/*\n * Returns a positive command number for the first command supported by the\n * engine. Returns zero if no ctrl commands are supported.\n */\n# define ENGINE_CTRL_GET_FIRST_CMD_TYPE          11\n/*\n * The 'long' argument specifies a command implemented by the engine, and the\n * return value is the next command supported, or zero if there are no more.\n */\n# define ENGINE_CTRL_GET_NEXT_CMD_TYPE           12\n/*\n * The 'void*' argument is a command name (cast from 'const char *'), and the\n * return value is the command that corresponds to it.\n */\n# define ENGINE_CTRL_GET_CMD_FROM_NAME           13\n/*\n * The next two allow a command to be converted into its corresponding string\n * form. In each case, the 'long' argument supplies the command. In the\n * NAME_LEN case, the return value is the length of the command name (not\n * counting a trailing EOL). In the NAME case, the 'void*' argument must be a\n * string buffer large enough, and it will be populated with the name of the\n * command (WITH a trailing EOL).\n */\n# define ENGINE_CTRL_GET_NAME_LEN_FROM_CMD       14\n# define ENGINE_CTRL_GET_NAME_FROM_CMD           15\n/* The next two are similar but give a \"short description\" of a command. */\n# define ENGINE_CTRL_GET_DESC_LEN_FROM_CMD       16\n# define ENGINE_CTRL_GET_DESC_FROM_CMD           17\n/*\n * With this command, the return value is the OR'd combination of\n * ENGINE_CMD_FLAG_*** values that indicate what kind of input a given\n * engine-specific ctrl command expects.\n */\n# define ENGINE_CTRL_GET_CMD_FLAGS               18\n\n/*\n * ENGINE implementations should start the numbering of their own control\n * commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE + 1, etc).\n */\n# define ENGINE_CMD_BASE                         200\n\n/*\n * NB: These 2 nCipher \"chil\" control commands are deprecated, and their\n * functionality is now available through ENGINE-specific control commands\n * (exposed through the above-mentioned 'CMD'-handling). Code using these 2\n * commands should be migrated to the more general command handling before\n * these are removed.\n */\n\n/* Flags specific to the nCipher \"chil\" engine */\n# define ENGINE_CTRL_CHIL_SET_FORKCHECK          100\n        /*\n         * Depending on the value of the (long)i argument, this sets or\n         * unsets the SimpleForkCheck flag in the CHIL API to enable or\n         * disable checking and workarounds for applications that fork().\n         */\n# define ENGINE_CTRL_CHIL_NO_LOCKING             101\n        /*\n         * This prevents the initialisation function from providing mutex\n         * callbacks to the nCipher library.\n         */\n\n/*\n * If an ENGINE supports its own specific control commands and wishes the\n * framework to handle the above 'ENGINE_CMD_***'-manipulation commands on\n * its behalf, it should supply a null-terminated array of ENGINE_CMD_DEFN\n * entries to ENGINE_set_cmd_defns(). It should also implement a ctrl()\n * handler that supports the stated commands (ie. the \"cmd_num\" entries as\n * described by the array). NB: The array must be ordered in increasing order\n * of cmd_num. \"null-terminated\" means that the last ENGINE_CMD_DEFN element\n * has cmd_num set to zero and/or cmd_name set to NULL.\n */\ntypedef struct ENGINE_CMD_DEFN_st {\n    unsigned int cmd_num;       /* The command number */\n    const char *cmd_name;       /* The command name itself */\n    const char *cmd_desc;       /* A short description of the command */\n    unsigned int cmd_flags;     /* The input the command expects */\n} ENGINE_CMD_DEFN;\n\n/* Generic function pointer */\ntypedef int (*ENGINE_GEN_FUNC_PTR) (void);\n/* Generic function pointer taking no arguments */\ntypedef int (*ENGINE_GEN_INT_FUNC_PTR) (ENGINE *);\n/* Specific control function pointer */\ntypedef int (*ENGINE_CTRL_FUNC_PTR) (ENGINE *, int, long, void *,\n                                     void (*f) (void));\n/* Generic load_key function pointer */\ntypedef EVP_PKEY *(*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,\n                                         UI_METHOD *ui_method,\n                                         void *callback_data);\ntypedef int (*ENGINE_SSL_CLIENT_CERT_PTR) (ENGINE *, SSL *ssl,\n                                           STACK_OF(X509_NAME) *ca_dn,\n                                           X509 **pcert, EVP_PKEY **pkey,\n                                           STACK_OF(X509) **pother,\n                                           UI_METHOD *ui_method,\n                                           void *callback_data);\n/*-\n * These callback types are for an ENGINE's handler for cipher and digest logic.\n * These handlers have these prototypes;\n *   int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid);\n *   int foo(ENGINE *e, const EVP_MD **digest, const int **nids, int nid);\n * Looking at how to implement these handlers in the case of cipher support, if\n * the framework wants the EVP_CIPHER for 'nid', it will call;\n *   foo(e, &p_evp_cipher, NULL, nid);    (return zero for failure)\n * If the framework wants a list of supported 'nid's, it will call;\n *   foo(e, NULL, &p_nids, 0); (returns number of 'nids' or -1 for error)\n */\n/*\n * Returns to a pointer to the array of supported cipher 'nid's. If the\n * second parameter is non-NULL it is set to the size of the returned array.\n */\ntypedef int (*ENGINE_CIPHERS_PTR) (ENGINE *, const EVP_CIPHER **,\n                                   const int **, int);\ntypedef int (*ENGINE_DIGESTS_PTR) (ENGINE *, const EVP_MD **, const int **,\n                                   int);\ntypedef int (*ENGINE_PKEY_METHS_PTR) (ENGINE *, EVP_PKEY_METHOD **,\n                                      const int **, int);\ntypedef int (*ENGINE_PKEY_ASN1_METHS_PTR) (ENGINE *, EVP_PKEY_ASN1_METHOD **,\n                                           const int **, int);\n/*\n * STRUCTURE functions ... all of these functions deal with pointers to\n * ENGINE structures where the pointers have a \"structural reference\". This\n * means that their reference is to allowed access to the structure but it\n * does not imply that the structure is functional. To simply increment or\n * decrement the structural reference count, use ENGINE_by_id and\n * ENGINE_free. NB: This is not required when iterating using ENGINE_get_next\n * as it will automatically decrement the structural reference count of the\n * \"current\" ENGINE and increment the structural reference count of the\n * ENGINE it returns (unless it is NULL).\n */\n\n/* Get the first/last \"ENGINE\" type available. */\nENGINE *ENGINE_get_first(void);\nENGINE *ENGINE_get_last(void);\n/* Iterate to the next/previous \"ENGINE\" type (NULL = end of the list). */\nENGINE *ENGINE_get_next(ENGINE *e);\nENGINE *ENGINE_get_prev(ENGINE *e);\n/* Add another \"ENGINE\" type into the array. */\nint ENGINE_add(ENGINE *e);\n/* Remove an existing \"ENGINE\" type from the array. */\nint ENGINE_remove(ENGINE *e);\n/* Retrieve an engine from the list by its unique \"id\" value. */\nENGINE *ENGINE_by_id(const char *id);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define ENGINE_load_openssl() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_OPENSSL, NULL)\n# define ENGINE_load_dynamic() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_DYNAMIC, NULL)\n# ifndef OPENSSL_NO_STATIC_ENGINE\n#  define ENGINE_load_padlock() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_PADLOCK, NULL)\n#  define ENGINE_load_capi() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CAPI, NULL)\n#  define ENGINE_load_afalg() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_AFALG, NULL)\n# endif\n# define ENGINE_load_cryptodev() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CRYPTODEV, NULL)\n# define ENGINE_load_rdrand() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_RDRAND, NULL)\n#endif\nvoid ENGINE_load_builtin_engines(void);\n\n/*\n * Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation\n * \"registry\" handling.\n */\nunsigned int ENGINE_get_table_flags(void);\nvoid ENGINE_set_table_flags(unsigned int flags);\n\n/*- Manage registration of ENGINEs per \"table\". For each type, there are 3\n * functions;\n *   ENGINE_register_***(e) - registers the implementation from 'e' (if it has one)\n *   ENGINE_unregister_***(e) - unregister the implementation from 'e'\n *   ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list\n * Cleanup is automatically registered from each table when required.\n */\n\nint ENGINE_register_RSA(ENGINE *e);\nvoid ENGINE_unregister_RSA(ENGINE *e);\nvoid ENGINE_register_all_RSA(void);\n\nint ENGINE_register_DSA(ENGINE *e);\nvoid ENGINE_unregister_DSA(ENGINE *e);\nvoid ENGINE_register_all_DSA(void);\n\nint ENGINE_register_EC(ENGINE *e);\nvoid ENGINE_unregister_EC(ENGINE *e);\nvoid ENGINE_register_all_EC(void);\n\nint ENGINE_register_DH(ENGINE *e);\nvoid ENGINE_unregister_DH(ENGINE *e);\nvoid ENGINE_register_all_DH(void);\n\nint ENGINE_register_RAND(ENGINE *e);\nvoid ENGINE_unregister_RAND(ENGINE *e);\nvoid ENGINE_register_all_RAND(void);\n\nint ENGINE_register_ciphers(ENGINE *e);\nvoid ENGINE_unregister_ciphers(ENGINE *e);\nvoid ENGINE_register_all_ciphers(void);\n\nint ENGINE_register_digests(ENGINE *e);\nvoid ENGINE_unregister_digests(ENGINE *e);\nvoid ENGINE_register_all_digests(void);\n\nint ENGINE_register_pkey_meths(ENGINE *e);\nvoid ENGINE_unregister_pkey_meths(ENGINE *e);\nvoid ENGINE_register_all_pkey_meths(void);\n\nint ENGINE_register_pkey_asn1_meths(ENGINE *e);\nvoid ENGINE_unregister_pkey_asn1_meths(ENGINE *e);\nvoid ENGINE_register_all_pkey_asn1_meths(void);\n\n/*\n * These functions register all support from the above categories. Note, use\n * of these functions can result in static linkage of code your application\n * may not need. If you only need a subset of functionality, consider using\n * more selective initialisation.\n */\nint ENGINE_register_complete(ENGINE *e);\nint ENGINE_register_all_complete(void);\n\n/*\n * Send parameterised control commands to the engine. The possibilities to\n * send down an integer, a pointer to data or a function pointer are\n * provided. Any of the parameters may or may not be NULL, depending on the\n * command number. In actuality, this function only requires a structural\n * (rather than functional) reference to an engine, but many control commands\n * may require the engine be functional. The caller should be aware of trying\n * commands that require an operational ENGINE, and only use functional\n * references in such situations.\n */\nint ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void));\n\n/*\n * This function tests if an ENGINE-specific command is usable as a\n * \"setting\". Eg. in an application's config file that gets processed through\n * ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to\n * ENGINE_ctrl_cmd_string(), only ENGINE_ctrl().\n */\nint ENGINE_cmd_is_executable(ENGINE *e, int cmd);\n\n/*\n * This function works like ENGINE_ctrl() with the exception of taking a\n * command name instead of a command number, and can handle optional\n * commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation\n * on how to use the cmd_name and cmd_optional.\n */\nint ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,\n                    long i, void *p, void (*f) (void), int cmd_optional);\n\n/*\n * This function passes a command-name and argument to an ENGINE. The\n * cmd_name is converted to a command number and the control command is\n * called using 'arg' as an argument (unless the ENGINE doesn't support such\n * a command, in which case no control command is called). The command is\n * checked for input flags, and if necessary the argument will be converted\n * to a numeric value. If cmd_optional is non-zero, then if the ENGINE\n * doesn't support the given cmd_name the return value will be success\n * anyway. This function is intended for applications to use so that users\n * (or config files) can supply engine-specific config data to the ENGINE at\n * run-time to control behaviour of specific engines. As such, it shouldn't\n * be used for calling ENGINE_ctrl() functions that return data, deal with\n * binary data, or that are otherwise supposed to be used directly through\n * ENGINE_ctrl() in application code. Any \"return\" data from an ENGINE_ctrl()\n * operation in this function will be lost - the return value is interpreted\n * as failure if the return value is zero, success otherwise, and this\n * function returns a boolean value as a result. In other words, vendors of\n * 'ENGINE'-enabled devices should write ENGINE implementations with\n * parameterisations that work in this scheme, so that compliant ENGINE-based\n * applications can work consistently with the same configuration for the\n * same ENGINE-enabled devices, across applications.\n */\nint ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,\n                           int cmd_optional);\n\n/*\n * These functions are useful for manufacturing new ENGINE structures. They\n * don't address reference counting at all - one uses them to populate an\n * ENGINE structure with personalised implementations of things prior to\n * using it directly or adding it to the builtin ENGINE list in OpenSSL.\n * These are also here so that the ENGINE structure doesn't have to be\n * exposed and break binary compatibility!\n */\nENGINE *ENGINE_new(void);\nint ENGINE_free(ENGINE *e);\nint ENGINE_up_ref(ENGINE *e);\nint ENGINE_set_id(ENGINE *e, const char *id);\nint ENGINE_set_name(ENGINE *e, const char *name);\nint ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth);\nint ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth);\nint ENGINE_set_EC(ENGINE *e, const EC_KEY_METHOD *ecdsa_meth);\nint ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth);\nint ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth);\nint ENGINE_set_destroy_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR destroy_f);\nint ENGINE_set_init_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR init_f);\nint ENGINE_set_finish_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR finish_f);\nint ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f);\nint ENGINE_set_load_privkey_function(ENGINE *e,\n                                     ENGINE_LOAD_KEY_PTR loadpriv_f);\nint ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f);\nint ENGINE_set_load_ssl_client_cert_function(ENGINE *e,\n                                             ENGINE_SSL_CLIENT_CERT_PTR\n                                             loadssl_f);\nint ENGINE_set_ciphers(ENGINE *e, ENGINE_CIPHERS_PTR f);\nint ENGINE_set_digests(ENGINE *e, ENGINE_DIGESTS_PTR f);\nint ENGINE_set_pkey_meths(ENGINE *e, ENGINE_PKEY_METHS_PTR f);\nint ENGINE_set_pkey_asn1_meths(ENGINE *e, ENGINE_PKEY_ASN1_METHS_PTR f);\nint ENGINE_set_flags(ENGINE *e, int flags);\nint ENGINE_set_cmd_defns(ENGINE *e, const ENGINE_CMD_DEFN *defns);\n/* These functions allow control over any per-structure ENGINE data. */\n#define ENGINE_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ENGINE, l, p, newf, dupf, freef)\nint ENGINE_set_ex_data(ENGINE *e, int idx, void *arg);\nvoid *ENGINE_get_ex_data(const ENGINE *e, int idx);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * This function previously cleaned up anything that needs it. Auto-deinit will\n * now take care of it so it is no longer required to call this function.\n */\n# define ENGINE_cleanup() while(0) continue\n#endif\n\n/*\n * These return values from within the ENGINE structure. These can be useful\n * with functional references as well as structural references - it depends\n * which you obtained. Using the result for functional purposes if you only\n * obtained a structural reference may be problematic!\n */\nconst char *ENGINE_get_id(const ENGINE *e);\nconst char *ENGINE_get_name(const ENGINE *e);\nconst RSA_METHOD *ENGINE_get_RSA(const ENGINE *e);\nconst DSA_METHOD *ENGINE_get_DSA(const ENGINE *e);\nconst EC_KEY_METHOD *ENGINE_get_EC(const ENGINE *e);\nconst DH_METHOD *ENGINE_get_DH(const ENGINE *e);\nconst RAND_METHOD *ENGINE_get_RAND(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_destroy_function(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_init_function(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_finish_function(const ENGINE *e);\nENGINE_CTRL_FUNC_PTR ENGINE_get_ctrl_function(const ENGINE *e);\nENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e);\nENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e);\nENGINE_SSL_CLIENT_CERT_PTR ENGINE_get_ssl_client_cert_function(const ENGINE\n                                                               *e);\nENGINE_CIPHERS_PTR ENGINE_get_ciphers(const ENGINE *e);\nENGINE_DIGESTS_PTR ENGINE_get_digests(const ENGINE *e);\nENGINE_PKEY_METHS_PTR ENGINE_get_pkey_meths(const ENGINE *e);\nENGINE_PKEY_ASN1_METHS_PTR ENGINE_get_pkey_asn1_meths(const ENGINE *e);\nconst EVP_CIPHER *ENGINE_get_cipher(ENGINE *e, int nid);\nconst EVP_MD *ENGINE_get_digest(ENGINE *e, int nid);\nconst EVP_PKEY_METHOD *ENGINE_get_pkey_meth(ENGINE *e, int nid);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth(ENGINE *e, int nid);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth_str(ENGINE *e,\n                                                          const char *str,\n                                                          int len);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_pkey_asn1_find_str(ENGINE **pe,\n                                                      const char *str,\n                                                      int len);\nconst ENGINE_CMD_DEFN *ENGINE_get_cmd_defns(const ENGINE *e);\nint ENGINE_get_flags(const ENGINE *e);\n\n/*\n * FUNCTIONAL functions. These functions deal with ENGINE structures that\n * have (or will) be initialised for use. Broadly speaking, the structural\n * functions are useful for iterating the list of available engine types,\n * creating new engine types, and other \"list\" operations. These functions\n * actually deal with ENGINEs that are to be used. As such these functions\n * can fail (if applicable) when particular engines are unavailable - eg. if\n * a hardware accelerator is not attached or not functioning correctly. Each\n * ENGINE has 2 reference counts; structural and functional. Every time a\n * functional reference is obtained or released, a corresponding structural\n * reference is automatically obtained or released too.\n */\n\n/*\n * Initialise a engine type for use (or up its reference count if it's\n * already in use). This will fail if the engine is not currently operational\n * and cannot initialise.\n */\nint ENGINE_init(ENGINE *e);\n/*\n * Free a functional reference to a engine type. This does not require a\n * corresponding call to ENGINE_free as it also releases a structural\n * reference.\n */\nint ENGINE_finish(ENGINE *e);\n\n/*\n * The following functions handle keys that are stored in some secondary\n * location, handled by the engine.  The storage may be on a card or\n * whatever.\n */\nEVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,\n                                  UI_METHOD *ui_method, void *callback_data);\nEVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,\n                                 UI_METHOD *ui_method, void *callback_data);\nint ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s,\n                                STACK_OF(X509_NAME) *ca_dn, X509 **pcert,\n                                EVP_PKEY **ppkey, STACK_OF(X509) **pother,\n                                UI_METHOD *ui_method, void *callback_data);\n\n/*\n * This returns a pointer for the current ENGINE structure that is (by\n * default) performing any RSA operations. The value returned is an\n * incremented reference, so it should be free'd (ENGINE_finish) before it is\n * discarded.\n */\nENGINE *ENGINE_get_default_RSA(void);\n/* Same for the other \"methods\" */\nENGINE *ENGINE_get_default_DSA(void);\nENGINE *ENGINE_get_default_EC(void);\nENGINE *ENGINE_get_default_DH(void);\nENGINE *ENGINE_get_default_RAND(void);\n/*\n * These functions can be used to get a functional reference to perform\n * ciphering or digesting corresponding to \"nid\".\n */\nENGINE *ENGINE_get_cipher_engine(int nid);\nENGINE *ENGINE_get_digest_engine(int nid);\nENGINE *ENGINE_get_pkey_meth_engine(int nid);\nENGINE *ENGINE_get_pkey_asn1_meth_engine(int nid);\n\n/*\n * This sets a new default ENGINE structure for performing RSA operations. If\n * the result is non-zero (success) then the ENGINE structure will have had\n * its reference count up'd so the caller should still free their own\n * reference 'e'.\n */\nint ENGINE_set_default_RSA(ENGINE *e);\nint ENGINE_set_default_string(ENGINE *e, const char *def_list);\n/* Same for the other \"methods\" */\nint ENGINE_set_default_DSA(ENGINE *e);\nint ENGINE_set_default_EC(ENGINE *e);\nint ENGINE_set_default_DH(ENGINE *e);\nint ENGINE_set_default_RAND(ENGINE *e);\nint ENGINE_set_default_ciphers(ENGINE *e);\nint ENGINE_set_default_digests(ENGINE *e);\nint ENGINE_set_default_pkey_meths(ENGINE *e);\nint ENGINE_set_default_pkey_asn1_meths(ENGINE *e);\n\n/*\n * The combination \"set\" - the flags are bitwise \"OR\"d from the\n * ENGINE_METHOD_*** defines above. As with the \"ENGINE_register_complete()\"\n * function, this function can result in unnecessary static linkage. If your\n * application requires only specific functionality, consider using more\n * selective functions.\n */\nint ENGINE_set_default(ENGINE *e, unsigned int flags);\n\nvoid ENGINE_add_conf_module(void);\n\n/* Deprecated functions ... */\n/* int ENGINE_clear_defaults(void); */\n\n/**************************/\n/* DYNAMIC ENGINE SUPPORT */\n/**************************/\n\n/* Binary/behaviour compatibility levels */\n# define OSSL_DYNAMIC_VERSION            (unsigned long)0x00030000\n/*\n * Binary versions older than this are too old for us (whether we're a loader\n * or a loadee)\n */\n# define OSSL_DYNAMIC_OLDEST             (unsigned long)0x00030000\n\n/*\n * When compiling an ENGINE entirely as an external shared library, loadable\n * by the \"dynamic\" ENGINE, these types are needed. The 'dynamic_fns'\n * structure type provides the calling application's (or library's) error\n * functionality and memory management function pointers to the loaded\n * library. These should be used/set in the loaded library code so that the\n * loading application's 'state' will be used/changed in all operations. The\n * 'static_state' pointer allows the loaded library to know if it shares the\n * same static data as the calling application (or library), and thus whether\n * these callbacks need to be set or not.\n */\ntypedef void *(*dyn_MEM_malloc_fn) (size_t, const char *, int);\ntypedef void *(*dyn_MEM_realloc_fn) (void *, size_t, const char *, int);\ntypedef void (*dyn_MEM_free_fn) (void *, const char *, int);\ntypedef struct st_dynamic_MEM_fns {\n    dyn_MEM_malloc_fn malloc_fn;\n    dyn_MEM_realloc_fn realloc_fn;\n    dyn_MEM_free_fn free_fn;\n} dynamic_MEM_fns;\n/*\n * FIXME: Perhaps the memory and locking code (crypto.h) should declare and\n * use these types so we (and any other dependent code) can simplify a bit??\n */\n/* The top-level structure */\ntypedef struct st_dynamic_fns {\n    void *static_state;\n    dynamic_MEM_fns mem_fns;\n} dynamic_fns;\n\n/*\n * The version checking function should be of this prototype. NB: The\n * ossl_version value passed in is the OSSL_DYNAMIC_VERSION of the loading\n * code. If this function returns zero, it indicates a (potential) version\n * incompatibility and the loaded library doesn't believe it can proceed.\n * Otherwise, the returned value is the (latest) version supported by the\n * loading library. The loader may still decide that the loaded code's\n * version is unsatisfactory and could veto the load. The function is\n * expected to be implemented with the symbol name \"v_check\", and a default\n * implementation can be fully instantiated with\n * IMPLEMENT_DYNAMIC_CHECK_FN().\n */\ntypedef unsigned long (*dynamic_v_check_fn) (unsigned long ossl_version);\n# define IMPLEMENT_DYNAMIC_CHECK_FN() \\\n        OPENSSL_EXPORT unsigned long v_check(unsigned long v); \\\n        OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \\\n                if (v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \\\n                return 0; }\n\n/*\n * This function is passed the ENGINE structure to initialise with its own\n * function and command settings. It should not adjust the structural or\n * functional reference counts. If this function returns zero, (a) the load\n * will be aborted, (b) the previous ENGINE state will be memcpy'd back onto\n * the structure, and (c) the shared library will be unloaded. So\n * implementations should do their own internal cleanup in failure\n * circumstances otherwise they could leak. The 'id' parameter, if non-NULL,\n * represents the ENGINE id that the loader is looking for. If this is NULL,\n * the shared library can choose to return failure or to initialise a\n * 'default' ENGINE. If non-NULL, the shared library must initialise only an\n * ENGINE matching the passed 'id'. The function is expected to be\n * implemented with the symbol name \"bind_engine\". A standard implementation\n * can be instantiated with IMPLEMENT_DYNAMIC_BIND_FN(fn) where the parameter\n * 'fn' is a callback function that populates the ENGINE structure and\n * returns an int value (zero for failure). 'fn' should have prototype;\n * [static] int fn(ENGINE *e, const char *id);\n */\ntypedef int (*dynamic_bind_engine) (ENGINE *e, const char *id,\n                                    const dynamic_fns *fns);\n# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \\\n        OPENSSL_EXPORT \\\n        int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \\\n        OPENSSL_EXPORT \\\n        int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \\\n            if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \\\n            CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \\\n                                     fns->mem_fns.realloc_fn, \\\n                                     fns->mem_fns.free_fn); \\\n        skip_cbs: \\\n            if (!fn(e, id)) return 0; \\\n            return 1; }\n\n/*\n * If the loading application (or library) and the loaded ENGINE library\n * share the same static data (eg. they're both dynamically linked to the\n * same libcrypto.so) we need a way to avoid trying to set system callbacks -\n * this would fail, and for the same reason that it's unnecessary to try. If\n * the loaded ENGINE has (or gets from through the loader) its own copy of\n * the libcrypto static data, we will need to set the callbacks. The easiest\n * way to detect this is to have a function that returns a pointer to some\n * static data and let the loading application and loaded ENGINE compare\n * their respective values.\n */\nvoid *ENGINE_get_static_state(void);\n\n# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)\nDEPRECATEDIN_1_1_0(void ENGINE_setup_bsd_cryptodev(void))\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/engineerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENGINEERR_H\n# define HEADER_ENGINEERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_ENGINE\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_ENGINE_strings(void);\n\n/*\n * ENGINE function codes.\n */\n#  define ENGINE_F_DIGEST_UPDATE                           198\n#  define ENGINE_F_DYNAMIC_CTRL                            180\n#  define ENGINE_F_DYNAMIC_GET_DATA_CTX                    181\n#  define ENGINE_F_DYNAMIC_LOAD                            182\n#  define ENGINE_F_DYNAMIC_SET_DATA_CTX                    183\n#  define ENGINE_F_ENGINE_ADD                              105\n#  define ENGINE_F_ENGINE_BY_ID                            106\n#  define ENGINE_F_ENGINE_CMD_IS_EXECUTABLE                170\n#  define ENGINE_F_ENGINE_CTRL                             142\n#  define ENGINE_F_ENGINE_CTRL_CMD                         178\n#  define ENGINE_F_ENGINE_CTRL_CMD_STRING                  171\n#  define ENGINE_F_ENGINE_FINISH                           107\n#  define ENGINE_F_ENGINE_GET_CIPHER                       185\n#  define ENGINE_F_ENGINE_GET_DIGEST                       186\n#  define ENGINE_F_ENGINE_GET_FIRST                        195\n#  define ENGINE_F_ENGINE_GET_LAST                         196\n#  define ENGINE_F_ENGINE_GET_NEXT                         115\n#  define ENGINE_F_ENGINE_GET_PKEY_ASN1_METH               193\n#  define ENGINE_F_ENGINE_GET_PKEY_METH                    192\n#  define ENGINE_F_ENGINE_GET_PREV                         116\n#  define ENGINE_F_ENGINE_INIT                             119\n#  define ENGINE_F_ENGINE_LIST_ADD                         120\n#  define ENGINE_F_ENGINE_LIST_REMOVE                      121\n#  define ENGINE_F_ENGINE_LOAD_PRIVATE_KEY                 150\n#  define ENGINE_F_ENGINE_LOAD_PUBLIC_KEY                  151\n#  define ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT             194\n#  define ENGINE_F_ENGINE_NEW                              122\n#  define ENGINE_F_ENGINE_PKEY_ASN1_FIND_STR               197\n#  define ENGINE_F_ENGINE_REMOVE                           123\n#  define ENGINE_F_ENGINE_SET_DEFAULT_STRING               189\n#  define ENGINE_F_ENGINE_SET_ID                           129\n#  define ENGINE_F_ENGINE_SET_NAME                         130\n#  define ENGINE_F_ENGINE_TABLE_REGISTER                   184\n#  define ENGINE_F_ENGINE_UNLOCKED_FINISH                  191\n#  define ENGINE_F_ENGINE_UP_REF                           190\n#  define ENGINE_F_INT_CLEANUP_ITEM                        199\n#  define ENGINE_F_INT_CTRL_HELPER                         172\n#  define ENGINE_F_INT_ENGINE_CONFIGURE                    188\n#  define ENGINE_F_INT_ENGINE_MODULE_INIT                  187\n#  define ENGINE_F_OSSL_HMAC_INIT                          200\n\n/*\n * ENGINE reason codes.\n */\n#  define ENGINE_R_ALREADY_LOADED                          100\n#  define ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER                133\n#  define ENGINE_R_CMD_NOT_EXECUTABLE                      134\n#  define ENGINE_R_COMMAND_TAKES_INPUT                     135\n#  define ENGINE_R_COMMAND_TAKES_NO_INPUT                  136\n#  define ENGINE_R_CONFLICTING_ENGINE_ID                   103\n#  define ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED            119\n#  define ENGINE_R_DSO_FAILURE                             104\n#  define ENGINE_R_DSO_NOT_FOUND                           132\n#  define ENGINE_R_ENGINES_SECTION_ERROR                   148\n#  define ENGINE_R_ENGINE_CONFIGURATION_ERROR              102\n#  define ENGINE_R_ENGINE_IS_NOT_IN_LIST                   105\n#  define ENGINE_R_ENGINE_SECTION_ERROR                    149\n#  define ENGINE_R_FAILED_LOADING_PRIVATE_KEY              128\n#  define ENGINE_R_FAILED_LOADING_PUBLIC_KEY               129\n#  define ENGINE_R_FINISH_FAILED                           106\n#  define ENGINE_R_ID_OR_NAME_MISSING                      108\n#  define ENGINE_R_INIT_FAILED                             109\n#  define ENGINE_R_INTERNAL_LIST_ERROR                     110\n#  define ENGINE_R_INVALID_ARGUMENT                        143\n#  define ENGINE_R_INVALID_CMD_NAME                        137\n#  define ENGINE_R_INVALID_CMD_NUMBER                      138\n#  define ENGINE_R_INVALID_INIT_VALUE                      151\n#  define ENGINE_R_INVALID_STRING                          150\n#  define ENGINE_R_NOT_INITIALISED                         117\n#  define ENGINE_R_NOT_LOADED                              112\n#  define ENGINE_R_NO_CONTROL_FUNCTION                     120\n#  define ENGINE_R_NO_INDEX                                144\n#  define ENGINE_R_NO_LOAD_FUNCTION                        125\n#  define ENGINE_R_NO_REFERENCE                            130\n#  define ENGINE_R_NO_SUCH_ENGINE                          116\n#  define ENGINE_R_UNIMPLEMENTED_CIPHER                    146\n#  define ENGINE_R_UNIMPLEMENTED_DIGEST                    147\n#  define ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD         101\n#  define ENGINE_R_VERSION_INCOMPATIBILITY                 145\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/err.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ERR_H\n# define HEADER_ERR_H\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n#  include <stdlib.h>\n# endif\n\n# include <openssl/ossl_typ.h>\n# include <openssl/bio.h>\n# include <openssl/lhash.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# ifndef OPENSSL_NO_ERR\n#  define ERR_PUT_error(a,b,c,d,e)        ERR_put_error(a,b,c,d,e)\n# else\n#  define ERR_PUT_error(a,b,c,d,e)        ERR_put_error(a,b,c,NULL,0)\n# endif\n\n# include <errno.h>\n\n# define ERR_TXT_MALLOCED        0x01\n# define ERR_TXT_STRING          0x02\n\n# define ERR_FLAG_MARK           0x01\n# define ERR_FLAG_CLEAR          0x02\n\n# define ERR_NUM_ERRORS  16\ntypedef struct err_state_st {\n    int err_flags[ERR_NUM_ERRORS];\n    unsigned long err_buffer[ERR_NUM_ERRORS];\n    char *err_data[ERR_NUM_ERRORS];\n    int err_data_flags[ERR_NUM_ERRORS];\n    const char *err_file[ERR_NUM_ERRORS];\n    int err_line[ERR_NUM_ERRORS];\n    int top, bottom;\n} ERR_STATE;\n\n/* library */\n# define ERR_LIB_NONE            1\n# define ERR_LIB_SYS             2\n# define ERR_LIB_BN              3\n# define ERR_LIB_RSA             4\n# define ERR_LIB_DH              5\n# define ERR_LIB_EVP             6\n# define ERR_LIB_BUF             7\n# define ERR_LIB_OBJ             8\n# define ERR_LIB_PEM             9\n# define ERR_LIB_DSA             10\n# define ERR_LIB_X509            11\n/* #define ERR_LIB_METH         12 */\n# define ERR_LIB_ASN1            13\n# define ERR_LIB_CONF            14\n# define ERR_LIB_CRYPTO          15\n# define ERR_LIB_EC              16\n# define ERR_LIB_SSL             20\n/* #define ERR_LIB_SSL23        21 */\n/* #define ERR_LIB_SSL2         22 */\n/* #define ERR_LIB_SSL3         23 */\n/* #define ERR_LIB_RSAREF       30 */\n/* #define ERR_LIB_PROXY        31 */\n# define ERR_LIB_BIO             32\n# define ERR_LIB_PKCS7           33\n# define ERR_LIB_X509V3          34\n# define ERR_LIB_PKCS12          35\n# define ERR_LIB_RAND            36\n# define ERR_LIB_DSO             37\n# define ERR_LIB_ENGINE          38\n# define ERR_LIB_OCSP            39\n# define ERR_LIB_UI              40\n# define ERR_LIB_COMP            41\n# define ERR_LIB_ECDSA           42\n# define ERR_LIB_ECDH            43\n# define ERR_LIB_OSSL_STORE      44\n# define ERR_LIB_FIPS            45\n# define ERR_LIB_CMS             46\n# define ERR_LIB_TS              47\n# define ERR_LIB_HMAC            48\n/* # define ERR_LIB_JPAKE       49 */\n# define ERR_LIB_CT              50\n# define ERR_LIB_ASYNC           51\n# define ERR_LIB_KDF             52\n# define ERR_LIB_SM2             53\n\n# define ERR_LIB_USER            128\n\n# define SYSerr(f,r)  ERR_PUT_error(ERR_LIB_SYS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BNerr(f,r)   ERR_PUT_error(ERR_LIB_BN,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define RSAerr(f,r)  ERR_PUT_error(ERR_LIB_RSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DHerr(f,r)   ERR_PUT_error(ERR_LIB_DH,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define EVPerr(f,r)  ERR_PUT_error(ERR_LIB_EVP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BUFerr(f,r)  ERR_PUT_error(ERR_LIB_BUF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OBJerr(f,r)  ERR_PUT_error(ERR_LIB_OBJ,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PEMerr(f,r)  ERR_PUT_error(ERR_LIB_PEM,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DSAerr(f,r)  ERR_PUT_error(ERR_LIB_DSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define X509err(f,r) ERR_PUT_error(ERR_LIB_X509,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ASN1err(f,r) ERR_PUT_error(ERR_LIB_ASN1,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CONFerr(f,r) ERR_PUT_error(ERR_LIB_CONF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CRYPTOerr(f,r) ERR_PUT_error(ERR_LIB_CRYPTO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECerr(f,r)   ERR_PUT_error(ERR_LIB_EC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define SSLerr(f,r)  ERR_PUT_error(ERR_LIB_SSL,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BIOerr(f,r)  ERR_PUT_error(ERR_LIB_BIO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PKCS7err(f,r) ERR_PUT_error(ERR_LIB_PKCS7,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define X509V3err(f,r) ERR_PUT_error(ERR_LIB_X509V3,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PKCS12err(f,r) ERR_PUT_error(ERR_LIB_PKCS12,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define RANDerr(f,r) ERR_PUT_error(ERR_LIB_RAND,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DSOerr(f,r) ERR_PUT_error(ERR_LIB_DSO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ENGINEerr(f,r) ERR_PUT_error(ERR_LIB_ENGINE,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECDSAerr(f,r)  ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECDHerr(f,r)  ERR_PUT_error(ERR_LIB_ECDH,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OSSL_STOREerr(f,r) ERR_PUT_error(ERR_LIB_OSSL_STORE,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CTerr(f,r) ERR_PUT_error(ERR_LIB_CT,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ASYNCerr(f,r) ERR_PUT_error(ERR_LIB_ASYNC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define KDFerr(f,r) ERR_PUT_error(ERR_LIB_KDF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define SM2err(f,r) ERR_PUT_error(ERR_LIB_SM2,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n\n# define ERR_PACK(l,f,r) ( \\\n        (((unsigned int)(l) & 0x0FF) << 24L) | \\\n        (((unsigned int)(f) & 0xFFF) << 12L) | \\\n        (((unsigned int)(r) & 0xFFF)       ) )\n# define ERR_GET_LIB(l)          (int)(((l) >> 24L) & 0x0FFL)\n# define ERR_GET_FUNC(l)         (int)(((l) >> 12L) & 0xFFFL)\n# define ERR_GET_REASON(l)       (int)( (l)         & 0xFFFL)\n# define ERR_FATAL_ERROR(l)      (int)( (l)         & ERR_R_FATAL)\n\n/* OS functions */\n# define SYS_F_FOPEN             1\n# define SYS_F_CONNECT           2\n# define SYS_F_GETSERVBYNAME     3\n# define SYS_F_SOCKET            4\n# define SYS_F_IOCTLSOCKET       5\n# define SYS_F_BIND              6\n# define SYS_F_LISTEN            7\n# define SYS_F_ACCEPT            8\n# define SYS_F_WSASTARTUP        9/* Winsock stuff */\n# define SYS_F_OPENDIR           10\n# define SYS_F_FREAD             11\n# define SYS_F_GETADDRINFO       12\n# define SYS_F_GETNAMEINFO       13\n# define SYS_F_SETSOCKOPT        14\n# define SYS_F_GETSOCKOPT        15\n# define SYS_F_GETSOCKNAME       16\n# define SYS_F_GETHOSTBYNAME     17\n# define SYS_F_FFLUSH            18\n# define SYS_F_OPEN              19\n# define SYS_F_CLOSE             20\n# define SYS_F_IOCTL             21\n# define SYS_F_STAT              22\n# define SYS_F_FCNTL             23\n# define SYS_F_FSTAT             24\n\n/* reasons */\n# define ERR_R_SYS_LIB   ERR_LIB_SYS/* 2 */\n# define ERR_R_BN_LIB    ERR_LIB_BN/* 3 */\n# define ERR_R_RSA_LIB   ERR_LIB_RSA/* 4 */\n# define ERR_R_DH_LIB    ERR_LIB_DH/* 5 */\n# define ERR_R_EVP_LIB   ERR_LIB_EVP/* 6 */\n# define ERR_R_BUF_LIB   ERR_LIB_BUF/* 7 */\n# define ERR_R_OBJ_LIB   ERR_LIB_OBJ/* 8 */\n# define ERR_R_PEM_LIB   ERR_LIB_PEM/* 9 */\n# define ERR_R_DSA_LIB   ERR_LIB_DSA/* 10 */\n# define ERR_R_X509_LIB  ERR_LIB_X509/* 11 */\n# define ERR_R_ASN1_LIB  ERR_LIB_ASN1/* 13 */\n# define ERR_R_EC_LIB    ERR_LIB_EC/* 16 */\n# define ERR_R_BIO_LIB   ERR_LIB_BIO/* 32 */\n# define ERR_R_PKCS7_LIB ERR_LIB_PKCS7/* 33 */\n# define ERR_R_X509V3_LIB ERR_LIB_X509V3/* 34 */\n# define ERR_R_ENGINE_LIB ERR_LIB_ENGINE/* 38 */\n# define ERR_R_UI_LIB    ERR_LIB_UI/* 40 */\n# define ERR_R_ECDSA_LIB ERR_LIB_ECDSA/* 42 */\n# define ERR_R_OSSL_STORE_LIB ERR_LIB_OSSL_STORE/* 44 */\n\n# define ERR_R_NESTED_ASN1_ERROR                 58\n# define ERR_R_MISSING_ASN1_EOS                  63\n\n/* fatal error */\n# define ERR_R_FATAL                             64\n# define ERR_R_MALLOC_FAILURE                    (1|ERR_R_FATAL)\n# define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED       (2|ERR_R_FATAL)\n# define ERR_R_PASSED_NULL_PARAMETER             (3|ERR_R_FATAL)\n# define ERR_R_INTERNAL_ERROR                    (4|ERR_R_FATAL)\n# define ERR_R_DISABLED                          (5|ERR_R_FATAL)\n# define ERR_R_INIT_FAIL                         (6|ERR_R_FATAL)\n# define ERR_R_PASSED_INVALID_ARGUMENT           (7)\n# define ERR_R_OPERATION_FAIL                    (8|ERR_R_FATAL)\n\n/*\n * 99 is the maximum possible ERR_R_... code, higher values are reserved for\n * the individual libraries\n */\n\ntypedef struct ERR_string_data_st {\n    unsigned long error;\n    const char *string;\n} ERR_STRING_DATA;\n\nDEFINE_LHASH_OF(ERR_STRING_DATA);\n\nvoid ERR_put_error(int lib, int func, int reason, const char *file, int line);\nvoid ERR_set_error_data(char *data, int flags);\n\nunsigned long ERR_get_error(void);\nunsigned long ERR_get_error_line(const char **file, int *line);\nunsigned long ERR_get_error_line_data(const char **file, int *line,\n                                      const char **data, int *flags);\nunsigned long ERR_peek_error(void);\nunsigned long ERR_peek_error_line(const char **file, int *line);\nunsigned long ERR_peek_error_line_data(const char **file, int *line,\n                                       const char **data, int *flags);\nunsigned long ERR_peek_last_error(void);\nunsigned long ERR_peek_last_error_line(const char **file, int *line);\nunsigned long ERR_peek_last_error_line_data(const char **file, int *line,\n                                            const char **data, int *flags);\nvoid ERR_clear_error(void);\nchar *ERR_error_string(unsigned long e, char *buf);\nvoid ERR_error_string_n(unsigned long e, char *buf, size_t len);\nconst char *ERR_lib_error_string(unsigned long e);\nconst char *ERR_func_error_string(unsigned long e);\nconst char *ERR_reason_error_string(unsigned long e);\nvoid ERR_print_errors_cb(int (*cb) (const char *str, size_t len, void *u),\n                         void *u);\n# ifndef OPENSSL_NO_STDIO\nvoid ERR_print_errors_fp(FILE *fp);\n# endif\nvoid ERR_print_errors(BIO *bp);\nvoid ERR_add_error_data(int num, ...);\nvoid ERR_add_error_vdata(int num, va_list args);\nint ERR_load_strings(int lib, ERR_STRING_DATA *str);\nint ERR_load_strings_const(const ERR_STRING_DATA *str);\nint ERR_unload_strings(int lib, ERR_STRING_DATA *str);\nint ERR_load_ERR_strings(void);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define ERR_load_crypto_strings() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)\n# define ERR_free_strings() while(0) continue\n#endif\n\nDEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))\nDEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))\nERR_STATE *ERR_get_state(void);\n\nint ERR_get_next_error_library(void);\n\nint ERR_set_mark(void);\nint ERR_pop_to_mark(void);\nint ERR_clear_last_mark(void);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/evp.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENVELOPE_H\n# define HEADER_ENVELOPE_H\n\n# include <openssl/opensslconf.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/bio.h>\n# include <openssl/evperr.h>\n\n# define EVP_MAX_MD_SIZE                 64/* longest known is SHA512 */\n# define EVP_MAX_KEY_LENGTH              64\n# define EVP_MAX_IV_LENGTH               16\n# define EVP_MAX_BLOCK_LENGTH            32\n\n# define PKCS5_SALT_LEN                  8\n/* Default PKCS#5 iteration count */\n# define PKCS5_DEFAULT_ITER              2048\n\n# include <openssl/objects.h>\n\n# define EVP_PK_RSA      0x0001\n# define EVP_PK_DSA      0x0002\n# define EVP_PK_DH       0x0004\n# define EVP_PK_EC       0x0008\n# define EVP_PKT_SIGN    0x0010\n# define EVP_PKT_ENC     0x0020\n# define EVP_PKT_EXCH    0x0040\n# define EVP_PKS_RSA     0x0100\n# define EVP_PKS_DSA     0x0200\n# define EVP_PKS_EC      0x0400\n\n# define EVP_PKEY_NONE   NID_undef\n# define EVP_PKEY_RSA    NID_rsaEncryption\n# define EVP_PKEY_RSA2   NID_rsa\n# define EVP_PKEY_RSA_PSS NID_rsassaPss\n# define EVP_PKEY_DSA    NID_dsa\n# define EVP_PKEY_DSA1   NID_dsa_2\n# define EVP_PKEY_DSA2   NID_dsaWithSHA\n# define EVP_PKEY_DSA3   NID_dsaWithSHA1\n# define EVP_PKEY_DSA4   NID_dsaWithSHA1_2\n# define EVP_PKEY_DH     NID_dhKeyAgreement\n# define EVP_PKEY_DHX    NID_dhpublicnumber\n# define EVP_PKEY_EC     NID_X9_62_id_ecPublicKey\n# define EVP_PKEY_SM2    NID_sm2\n# define EVP_PKEY_HMAC   NID_hmac\n# define EVP_PKEY_CMAC   NID_cmac\n# define EVP_PKEY_SCRYPT NID_id_scrypt\n# define EVP_PKEY_TLS1_PRF NID_tls1_prf\n# define EVP_PKEY_HKDF   NID_hkdf\n# define EVP_PKEY_POLY1305 NID_poly1305\n# define EVP_PKEY_SIPHASH NID_siphash\n# define EVP_PKEY_X25519 NID_X25519\n# define EVP_PKEY_ED25519 NID_ED25519\n# define EVP_PKEY_X448 NID_X448\n# define EVP_PKEY_ED448 NID_ED448\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define EVP_PKEY_MO_SIGN        0x0001\n# define EVP_PKEY_MO_VERIFY      0x0002\n# define EVP_PKEY_MO_ENCRYPT     0x0004\n# define EVP_PKEY_MO_DECRYPT     0x0008\n\n# ifndef EVP_MD\nEVP_MD *EVP_MD_meth_new(int md_type, int pkey_type);\nEVP_MD *EVP_MD_meth_dup(const EVP_MD *md);\nvoid EVP_MD_meth_free(EVP_MD *md);\n\nint EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);\nint EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize);\nint EVP_MD_meth_set_app_datasize(EVP_MD *md, int datasize);\nint EVP_MD_meth_set_flags(EVP_MD *md, unsigned long flags);\nint EVP_MD_meth_set_init(EVP_MD *md, int (*init)(EVP_MD_CTX *ctx));\nint EVP_MD_meth_set_update(EVP_MD *md, int (*update)(EVP_MD_CTX *ctx,\n                                                     const void *data,\n                                                     size_t count));\nint EVP_MD_meth_set_final(EVP_MD *md, int (*final)(EVP_MD_CTX *ctx,\n                                                   unsigned char *md));\nint EVP_MD_meth_set_copy(EVP_MD *md, int (*copy)(EVP_MD_CTX *to,\n                                                 const EVP_MD_CTX *from));\nint EVP_MD_meth_set_cleanup(EVP_MD *md, int (*cleanup)(EVP_MD_CTX *ctx));\nint EVP_MD_meth_set_ctrl(EVP_MD *md, int (*ctrl)(EVP_MD_CTX *ctx, int cmd,\n                                                 int p1, void *p2));\n\nint EVP_MD_meth_get_input_blocksize(const EVP_MD *md);\nint EVP_MD_meth_get_result_size(const EVP_MD *md);\nint EVP_MD_meth_get_app_datasize(const EVP_MD *md);\nunsigned long EVP_MD_meth_get_flags(const EVP_MD *md);\nint (*EVP_MD_meth_get_init(const EVP_MD *md))(EVP_MD_CTX *ctx);\nint (*EVP_MD_meth_get_update(const EVP_MD *md))(EVP_MD_CTX *ctx,\n                                                const void *data,\n                                                size_t count);\nint (*EVP_MD_meth_get_final(const EVP_MD *md))(EVP_MD_CTX *ctx,\n                                               unsigned char *md);\nint (*EVP_MD_meth_get_copy(const EVP_MD *md))(EVP_MD_CTX *to,\n                                              const EVP_MD_CTX *from);\nint (*EVP_MD_meth_get_cleanup(const EVP_MD *md))(EVP_MD_CTX *ctx);\nint (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,\n                                              int p1, void *p2);\n\n/* digest can only handle a single block */\n#  define EVP_MD_FLAG_ONESHOT     0x0001\n\n/* digest is extensible-output function, XOF */\n#  define EVP_MD_FLAG_XOF         0x0002\n\n/* DigestAlgorithmIdentifier flags... */\n\n#  define EVP_MD_FLAG_DIGALGID_MASK               0x0018\n\n/* NULL or absent parameter accepted. Use NULL */\n\n#  define EVP_MD_FLAG_DIGALGID_NULL               0x0000\n\n/* NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent */\n\n#  define EVP_MD_FLAG_DIGALGID_ABSENT             0x0008\n\n/* Custom handling via ctrl */\n\n#  define EVP_MD_FLAG_DIGALGID_CUSTOM             0x0018\n\n/* Note if suitable for use in FIPS mode */\n#  define EVP_MD_FLAG_FIPS        0x0400\n\n/* Digest ctrls */\n\n#  define EVP_MD_CTRL_DIGALGID                    0x1\n#  define EVP_MD_CTRL_MICALG                      0x2\n#  define EVP_MD_CTRL_XOF_LEN                     0x3\n\n/* Minimum Algorithm specific ctrl value */\n\n#  define EVP_MD_CTRL_ALG_CTRL                    0x1000\n\n# endif                         /* !EVP_MD */\n\n/* values for EVP_MD_CTX flags */\n\n# define EVP_MD_CTX_FLAG_ONESHOT         0x0001/* digest update will be\n                                                * called once only */\n# define EVP_MD_CTX_FLAG_CLEANED         0x0002/* context has already been\n                                                * cleaned */\n# define EVP_MD_CTX_FLAG_REUSE           0x0004/* Don't free up ctx->md_data\n                                                * in EVP_MD_CTX_reset */\n/*\n * FIPS and pad options are ignored in 1.0.0, definitions are here so we\n * don't accidentally reuse the values for other purposes.\n */\n\n# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW  0x0008/* Allow use of non FIPS\n                                                * digest in FIPS mode */\n\n/*\n * The following PAD options are also currently ignored in 1.0.0, digest\n * parameters are handled through EVP_DigestSign*() and EVP_DigestVerify*()\n * instead.\n */\n# define EVP_MD_CTX_FLAG_PAD_MASK        0xF0/* RSA mode to use */\n# define EVP_MD_CTX_FLAG_PAD_PKCS1       0x00/* PKCS#1 v1.5 mode */\n# define EVP_MD_CTX_FLAG_PAD_X931        0x10/* X9.31 mode */\n# define EVP_MD_CTX_FLAG_PAD_PSS         0x20/* PSS mode */\n\n# define EVP_MD_CTX_FLAG_NO_INIT         0x0100/* Don't initialize md_data */\n/*\n * Some functions such as EVP_DigestSign only finalise copies of internal\n * contexts so additional data can be included after the finalisation call.\n * This is inefficient if this functionality is not required: it is disabled\n * if the following flag is set.\n */\n# define EVP_MD_CTX_FLAG_FINALISE        0x0200\n/* NOTE: 0x0400 is reserved for internal usage */\n\nEVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);\nEVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);\nvoid EVP_CIPHER_meth_free(EVP_CIPHER *cipher);\n\nint EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);\nint EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);\nint EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);\nint EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,\n                             int (*init) (EVP_CIPHER_CTX *ctx,\n                                          const unsigned char *key,\n                                          const unsigned char *iv,\n                                          int enc));\nint EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,\n                                  int (*do_cipher) (EVP_CIPHER_CTX *ctx,\n                                                    unsigned char *out,\n                                                    const unsigned char *in,\n                                                    size_t inl));\nint EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,\n                                int (*cleanup) (EVP_CIPHER_CTX *));\nint EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,\n                                        int (*set_asn1_parameters) (EVP_CIPHER_CTX *,\n                                                                    ASN1_TYPE *));\nint EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,\n                                        int (*get_asn1_parameters) (EVP_CIPHER_CTX *,\n                                                                    ASN1_TYPE *));\nint EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,\n                             int (*ctrl) (EVP_CIPHER_CTX *, int type,\n                                          int arg, void *ptr));\n\nint (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,\n                                                          const unsigned char *key,\n                                                          const unsigned char *iv,\n                                                          int enc);\nint (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,\n                                                               unsigned char *out,\n                                                               const unsigned char *in,\n                                                               size_t inl);\nint (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *);\nint (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                                     ASN1_TYPE *);\nint (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                               ASN1_TYPE *);\nint (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                          int type, int arg,\n                                                          void *ptr);\n\n/* Values for cipher flags */\n\n/* Modes for ciphers */\n\n# define         EVP_CIPH_STREAM_CIPHER          0x0\n# define         EVP_CIPH_ECB_MODE               0x1\n# define         EVP_CIPH_CBC_MODE               0x2\n# define         EVP_CIPH_CFB_MODE               0x3\n# define         EVP_CIPH_OFB_MODE               0x4\n# define         EVP_CIPH_CTR_MODE               0x5\n# define         EVP_CIPH_GCM_MODE               0x6\n# define         EVP_CIPH_CCM_MODE               0x7\n# define         EVP_CIPH_XTS_MODE               0x10001\n# define         EVP_CIPH_WRAP_MODE              0x10002\n# define         EVP_CIPH_OCB_MODE               0x10003\n# define         EVP_CIPH_MODE                   0xF0007\n/* Set if variable length cipher */\n# define         EVP_CIPH_VARIABLE_LENGTH        0x8\n/* Set if the iv handling should be done by the cipher itself */\n# define         EVP_CIPH_CUSTOM_IV              0x10\n/* Set if the cipher's init() function should be called if key is NULL */\n# define         EVP_CIPH_ALWAYS_CALL_INIT       0x20\n/* Call ctrl() to init cipher parameters */\n# define         EVP_CIPH_CTRL_INIT              0x40\n/* Don't use standard key length function */\n# define         EVP_CIPH_CUSTOM_KEY_LENGTH      0x80\n/* Don't use standard block padding */\n# define         EVP_CIPH_NO_PADDING             0x100\n/* cipher handles random key generation */\n# define         EVP_CIPH_RAND_KEY               0x200\n/* cipher has its own additional copying logic */\n# define         EVP_CIPH_CUSTOM_COPY            0x400\n/* Don't use standard iv length function */\n# define         EVP_CIPH_CUSTOM_IV_LENGTH       0x800\n/* Allow use default ASN1 get/set iv */\n# define         EVP_CIPH_FLAG_DEFAULT_ASN1      0x1000\n/* Buffer length in bits not bytes: CFB1 mode only */\n# define         EVP_CIPH_FLAG_LENGTH_BITS       0x2000\n/* Note if suitable for use in FIPS mode */\n# define         EVP_CIPH_FLAG_FIPS              0x4000\n/* Allow non FIPS cipher in FIPS mode */\n# define         EVP_CIPH_FLAG_NON_FIPS_ALLOW    0x8000\n/*\n * Cipher handles any and all padding logic as well as finalisation.\n */\n# define         EVP_CIPH_FLAG_CUSTOM_CIPHER     0x100000\n# define         EVP_CIPH_FLAG_AEAD_CIPHER       0x200000\n# define         EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000\n/* Cipher can handle pipeline operations */\n# define         EVP_CIPH_FLAG_PIPELINE          0X800000\n\n/*\n * Cipher context flag to indicate we can handle wrap mode: if allowed in\n * older applications it could overflow buffers.\n */\n\n# define         EVP_CIPHER_CTX_FLAG_WRAP_ALLOW  0x1\n\n/* ctrl() values */\n\n# define         EVP_CTRL_INIT                   0x0\n# define         EVP_CTRL_SET_KEY_LENGTH         0x1\n# define         EVP_CTRL_GET_RC2_KEY_BITS       0x2\n# define         EVP_CTRL_SET_RC2_KEY_BITS       0x3\n# define         EVP_CTRL_GET_RC5_ROUNDS         0x4\n# define         EVP_CTRL_SET_RC5_ROUNDS         0x5\n# define         EVP_CTRL_RAND_KEY               0x6\n# define         EVP_CTRL_PBE_PRF_NID            0x7\n# define         EVP_CTRL_COPY                   0x8\n# define         EVP_CTRL_AEAD_SET_IVLEN         0x9\n# define         EVP_CTRL_AEAD_GET_TAG           0x10\n# define         EVP_CTRL_AEAD_SET_TAG           0x11\n# define         EVP_CTRL_AEAD_SET_IV_FIXED      0x12\n# define         EVP_CTRL_GCM_SET_IVLEN          EVP_CTRL_AEAD_SET_IVLEN\n# define         EVP_CTRL_GCM_GET_TAG            EVP_CTRL_AEAD_GET_TAG\n# define         EVP_CTRL_GCM_SET_TAG            EVP_CTRL_AEAD_SET_TAG\n# define         EVP_CTRL_GCM_SET_IV_FIXED       EVP_CTRL_AEAD_SET_IV_FIXED\n# define         EVP_CTRL_GCM_IV_GEN             0x13\n# define         EVP_CTRL_CCM_SET_IVLEN          EVP_CTRL_AEAD_SET_IVLEN\n# define         EVP_CTRL_CCM_GET_TAG            EVP_CTRL_AEAD_GET_TAG\n# define         EVP_CTRL_CCM_SET_TAG            EVP_CTRL_AEAD_SET_TAG\n# define         EVP_CTRL_CCM_SET_IV_FIXED       EVP_CTRL_AEAD_SET_IV_FIXED\n# define         EVP_CTRL_CCM_SET_L              0x14\n# define         EVP_CTRL_CCM_SET_MSGLEN         0x15\n/*\n * AEAD cipher deduces payload length and returns number of bytes required to\n * store MAC and eventual padding. Subsequent call to EVP_Cipher even\n * appends/verifies MAC.\n */\n# define         EVP_CTRL_AEAD_TLS1_AAD          0x16\n/* Used by composite AEAD ciphers, no-op in GCM, CCM... */\n# define         EVP_CTRL_AEAD_SET_MAC_KEY       0x17\n/* Set the GCM invocation field, decrypt only */\n# define         EVP_CTRL_GCM_SET_IV_INV         0x18\n\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_AAD  0x19\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT      0x1a\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT      0x1b\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE  0x1c\n\n# define         EVP_CTRL_SSL3_MASTER_SECRET             0x1d\n\n/* EVP_CTRL_SET_SBOX takes the char * specifying S-boxes */\n# define         EVP_CTRL_SET_SBOX                       0x1e\n/*\n * EVP_CTRL_SBOX_USED takes a 'size_t' and 'char *', pointing at a\n * pre-allocated buffer with specified size\n */\n# define         EVP_CTRL_SBOX_USED                      0x1f\n/* EVP_CTRL_KEY_MESH takes 'size_t' number of bytes to mesh the key after,\n * 0 switches meshing off\n */\n# define         EVP_CTRL_KEY_MESH                       0x20\n/* EVP_CTRL_BLOCK_PADDING_MODE takes the padding mode */\n# define         EVP_CTRL_BLOCK_PADDING_MODE             0x21\n\n/* Set the output buffers to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS       0x22\n/* Set the input buffers to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_INPUT_BUFS        0x23\n/* Set the input buffer lengths to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_INPUT_LENS        0x24\n\n# define         EVP_CTRL_GET_IVLEN                      0x25\n\n/* Padding modes */\n#define EVP_PADDING_PKCS7       1\n#define EVP_PADDING_ISO7816_4   2\n#define EVP_PADDING_ANSI923     3\n#define EVP_PADDING_ISO10126    4\n#define EVP_PADDING_ZERO        5\n\n/* RFC 5246 defines additional data to be 13 bytes in length */\n# define         EVP_AEAD_TLS1_AAD_LEN           13\n\ntypedef struct {\n    unsigned char *out;\n    const unsigned char *inp;\n    size_t len;\n    unsigned int interleave;\n} EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM;\n\n/* GCM TLS constants */\n/* Length of fixed part of IV derived from PRF */\n# define EVP_GCM_TLS_FIXED_IV_LEN                        4\n/* Length of explicit part of IV part of TLS records */\n# define EVP_GCM_TLS_EXPLICIT_IV_LEN                     8\n/* Length of tag for TLS */\n# define EVP_GCM_TLS_TAG_LEN                             16\n\n/* CCM TLS constants */\n/* Length of fixed part of IV derived from PRF */\n# define EVP_CCM_TLS_FIXED_IV_LEN                        4\n/* Length of explicit part of IV part of TLS records */\n# define EVP_CCM_TLS_EXPLICIT_IV_LEN                     8\n/* Total length of CCM IV length for TLS */\n# define EVP_CCM_TLS_IV_LEN                              12\n/* Length of tag for TLS */\n# define EVP_CCM_TLS_TAG_LEN                             16\n/* Length of CCM8 tag for TLS */\n# define EVP_CCM8_TLS_TAG_LEN                            8\n\n/* Length of tag for TLS */\n# define EVP_CHACHAPOLY_TLS_TAG_LEN                      16\n\ntypedef struct evp_cipher_info_st {\n    const EVP_CIPHER *cipher;\n    unsigned char iv[EVP_MAX_IV_LENGTH];\n} EVP_CIPHER_INFO;\n\n\n/* Password based encryption function */\ntypedef int (EVP_PBE_KEYGEN) (EVP_CIPHER_CTX *ctx, const char *pass,\n                              int passlen, ASN1_TYPE *param,\n                              const EVP_CIPHER *cipher, const EVP_MD *md,\n                              int en_de);\n\n# ifndef OPENSSL_NO_RSA\n#  define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\\\n                                        (char *)(rsa))\n# endif\n\n# ifndef OPENSSL_NO_DSA\n#  define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\\\n                                        (char *)(dsa))\n# endif\n\n# ifndef OPENSSL_NO_DH\n#  define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,\\\n                                        (char *)(dh))\n# endif\n\n# ifndef OPENSSL_NO_EC\n#  define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\\\n                                        (char *)(eckey))\n# endif\n# ifndef OPENSSL_NO_SIPHASH\n#  define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),EVP_PKEY_SIPHASH,\\\n                                        (char *)(shkey))\n# endif\n\n# ifndef OPENSSL_NO_POLY1305\n#  define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),EVP_PKEY_POLY1305,\\\n                                        (char *)(polykey))\n# endif\n\n/* Add some extra combinations */\n# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a))\n# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a))\n# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a))\n# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a))\n\nint EVP_MD_type(const EVP_MD *md);\n# define EVP_MD_nid(e)                   EVP_MD_type(e)\n# define EVP_MD_name(e)                  OBJ_nid2sn(EVP_MD_nid(e))\nint EVP_MD_pkey_type(const EVP_MD *md);\nint EVP_MD_size(const EVP_MD *md);\nint EVP_MD_block_size(const EVP_MD *md);\nunsigned long EVP_MD_flags(const EVP_MD *md);\n\nconst EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx);\nint (*EVP_MD_CTX_update_fn(EVP_MD_CTX *ctx))(EVP_MD_CTX *ctx,\n                                             const void *data, size_t count);\nvoid EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx,\n                              int (*update) (EVP_MD_CTX *ctx,\n                                             const void *data, size_t count));\n# define EVP_MD_CTX_size(e)              EVP_MD_size(EVP_MD_CTX_md(e))\n# define EVP_MD_CTX_block_size(e)        EVP_MD_block_size(EVP_MD_CTX_md(e))\n# define EVP_MD_CTX_type(e)              EVP_MD_type(EVP_MD_CTX_md(e))\nEVP_PKEY_CTX *EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx);\nvoid EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx);\nvoid *EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx);\n\nint EVP_CIPHER_nid(const EVP_CIPHER *cipher);\n# define EVP_CIPHER_name(e)              OBJ_nid2sn(EVP_CIPHER_nid(e))\nint EVP_CIPHER_block_size(const EVP_CIPHER *cipher);\nint EVP_CIPHER_impl_ctx_size(const EVP_CIPHER *cipher);\nint EVP_CIPHER_key_length(const EVP_CIPHER *cipher);\nint EVP_CIPHER_iv_length(const EVP_CIPHER *cipher);\nunsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher);\n# define EVP_CIPHER_mode(e)              (EVP_CIPHER_flags(e) & EVP_CIPH_MODE)\n\nconst EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);\nconst unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx);\nconst unsigned char *EVP_CIPHER_CTX_original_iv(const EVP_CIPHER_CTX *ctx);\nunsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx);\nunsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_num(const EVP_CIPHER_CTX *ctx);\nvoid EVP_CIPHER_CTX_set_num(EVP_CIPHER_CTX *ctx, int num);\nint EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);\nvoid *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);\nvoid EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);\nvoid *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx);\nvoid *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);\n# define EVP_CIPHER_CTX_type(c)         EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define EVP_CIPHER_CTX_flags(c)       EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c))\n# endif\n# define EVP_CIPHER_CTX_mode(c)         EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c))\n\n# define EVP_ENCODE_LENGTH(l)    ((((l)+2)/3*4)+((l)/48+1)*2+80)\n# define EVP_DECODE_LENGTH(l)    (((l)+3)/4*3+80)\n\n# define EVP_SignInit_ex(a,b,c)          EVP_DigestInit_ex(a,b,c)\n# define EVP_SignInit(a,b)               EVP_DigestInit(a,b)\n# define EVP_SignUpdate(a,b,c)           EVP_DigestUpdate(a,b,c)\n# define EVP_VerifyInit_ex(a,b,c)        EVP_DigestInit_ex(a,b,c)\n# define EVP_VerifyInit(a,b)             EVP_DigestInit(a,b)\n# define EVP_VerifyUpdate(a,b,c)         EVP_DigestUpdate(a,b,c)\n# define EVP_OpenUpdate(a,b,c,d,e)       EVP_DecryptUpdate(a,b,c,d,e)\n# define EVP_SealUpdate(a,b,c,d,e)       EVP_EncryptUpdate(a,b,c,d,e)\n# define EVP_DigestSignUpdate(a,b,c)     EVP_DigestUpdate(a,b,c)\n# define EVP_DigestVerifyUpdate(a,b,c)   EVP_DigestUpdate(a,b,c)\n\n# ifdef CONST_STRICT\nvoid BIO_set_md(BIO *, const EVP_MD *md);\n# else\n#  define BIO_set_md(b,md)          BIO_ctrl(b,BIO_C_SET_MD,0,(char *)(md))\n# endif\n# define BIO_get_md(b,mdp)          BIO_ctrl(b,BIO_C_GET_MD,0,(char *)(mdp))\n# define BIO_get_md_ctx(b,mdcp)     BIO_ctrl(b,BIO_C_GET_MD_CTX,0, \\\n                                             (char *)(mdcp))\n# define BIO_set_md_ctx(b,mdcp)     BIO_ctrl(b,BIO_C_SET_MD_CTX,0, \\\n                                             (char *)(mdcp))\n# define BIO_get_cipher_status(b)   BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)\n# define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0, \\\n                                             (char *)(c_pp))\n\n/*__owur*/ int EVP_Cipher(EVP_CIPHER_CTX *c,\n                          unsigned char *out,\n                          const unsigned char *in, unsigned int inl);\n\n# define EVP_add_cipher_alias(n,alias) \\\n        OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))\n# define EVP_add_digest_alias(n,alias) \\\n        OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n))\n# define EVP_delete_cipher_alias(alias) \\\n        OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS);\n# define EVP_delete_digest_alias(alias) \\\n        OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);\n\nint EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2);\nEVP_MD_CTX *EVP_MD_CTX_new(void);\nint EVP_MD_CTX_reset(EVP_MD_CTX *ctx);\nvoid EVP_MD_CTX_free(EVP_MD_CTX *ctx);\n# define EVP_MD_CTX_create()     EVP_MD_CTX_new()\n# define EVP_MD_CTX_init(ctx)    EVP_MD_CTX_reset((ctx))\n# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx))\n__owur int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);\nvoid EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags);\nvoid EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags);\nint EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags);\n__owur int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,\n                                 ENGINE *impl);\n__owur int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d,\n                                size_t cnt);\n__owur int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md,\n                                  unsigned int *s);\n__owur int EVP_Digest(const void *data, size_t count,\n                          unsigned char *md, unsigned int *size,\n                          const EVP_MD *type, ENGINE *impl);\n\n__owur int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in);\n__owur int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);\n__owur int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md,\n                           unsigned int *s);\n__owur int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md,\n                              size_t len);\n\nint EVP_read_pw_string(char *buf, int length, const char *prompt, int verify);\nint EVP_read_pw_string_min(char *buf, int minlen, int maxlen,\n                           const char *prompt, int verify);\nvoid EVP_set_pw_prompt(const char *prompt);\nchar *EVP_get_pw_prompt(void);\n\n__owur int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,\n                          const unsigned char *salt,\n                          const unsigned char *data, int datal, int count,\n                          unsigned char *key, unsigned char *iv);\n\nvoid EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags);\nvoid EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags);\nint EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags);\n\n__owur int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                           const unsigned char *key, const unsigned char *iv);\n/*__owur*/ int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,\n                                  const EVP_CIPHER *cipher, ENGINE *impl,\n                                  const unsigned char *key,\n                                  const unsigned char *iv);\n/*__owur*/ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                 int *outl, const unsigned char *in, int inl);\n/*__owur*/ int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                   int *outl);\n/*__owur*/ int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                int *outl);\n\n__owur int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                           const unsigned char *key, const unsigned char *iv);\n/*__owur*/ int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,\n                                  const EVP_CIPHER *cipher, ENGINE *impl,\n                                  const unsigned char *key,\n                                  const unsigned char *iv);\n/*__owur*/ int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                 int *outl, const unsigned char *in, int inl);\n__owur int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                            int *outl);\n/*__owur*/ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                                   int *outl);\n\n__owur int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                          const unsigned char *key, const unsigned char *iv,\n                          int enc);\n/*__owur*/ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,\n                                 const EVP_CIPHER *cipher, ENGINE *impl,\n                                 const unsigned char *key,\n                                 const unsigned char *iv, int enc);\n__owur int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                            int *outl, const unsigned char *in, int inl);\n__owur int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                           int *outl);\n__owur int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                              int *outl);\n\n__owur int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s,\n                         EVP_PKEY *pkey);\n\n__owur int EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret,\n                          size_t *siglen, const unsigned char *tbs,\n                          size_t tbslen);\n\n__owur int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,\n                           unsigned int siglen, EVP_PKEY *pkey);\n\n__owur int EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret,\n                            size_t siglen, const unsigned char *tbs,\n                            size_t tbslen);\n\n/*__owur*/ int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,\n                                  const EVP_MD *type, ENGINE *e,\n                                  EVP_PKEY *pkey);\n__owur int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,\n                               size_t *siglen);\n\n__owur int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,\n                                const EVP_MD *type, ENGINE *e,\n                                EVP_PKEY *pkey);\n__owur int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,\n                                 size_t siglen);\n\n# ifndef OPENSSL_NO_RSA\n__owur int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n                        const unsigned char *ek, int ekl,\n                        const unsigned char *iv, EVP_PKEY *priv);\n__owur int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n\n__owur int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n                        unsigned char **ek, int *ekl, unsigned char *iv,\n                        EVP_PKEY **pubk, int npubk);\n__owur int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n# endif\n\nEVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void);\nvoid EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx);\nint EVP_ENCODE_CTX_copy(EVP_ENCODE_CTX *dctx, EVP_ENCODE_CTX *sctx);\nint EVP_ENCODE_CTX_num(EVP_ENCODE_CTX *ctx);\nvoid EVP_EncodeInit(EVP_ENCODE_CTX *ctx);\nint EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,\n                     const unsigned char *in, int inl);\nvoid EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl);\nint EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n);\n\nvoid EVP_DecodeInit(EVP_ENCODE_CTX *ctx);\nint EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,\n                     const unsigned char *in, int inl);\nint EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned\n                    char *out, int *outl);\nint EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define EVP_CIPHER_CTX_init(c)      EVP_CIPHER_CTX_reset(c)\n#  define EVP_CIPHER_CTX_cleanup(c)   EVP_CIPHER_CTX_reset(c)\n# endif\nEVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);\nint EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);\nvoid EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c);\nint EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);\nint EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad);\nint EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr);\nint EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);\n\nconst BIO_METHOD *BIO_f_md(void);\nconst BIO_METHOD *BIO_f_base64(void);\nconst BIO_METHOD *BIO_f_cipher(void);\nconst BIO_METHOD *BIO_f_reliable(void);\n__owur int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,\n                          const unsigned char *i, int enc);\n\nconst EVP_MD *EVP_md_null(void);\n# ifndef OPENSSL_NO_MD2\nconst EVP_MD *EVP_md2(void);\n# endif\n# ifndef OPENSSL_NO_MD4\nconst EVP_MD *EVP_md4(void);\n# endif\n# ifndef OPENSSL_NO_MD5\nconst EVP_MD *EVP_md5(void);\nconst EVP_MD *EVP_md5_sha1(void);\n# endif\n# ifndef OPENSSL_NO_BLAKE2\nconst EVP_MD *EVP_blake2b512(void);\nconst EVP_MD *EVP_blake2s256(void);\n# endif\nconst EVP_MD *EVP_sha1(void);\nconst EVP_MD *EVP_sha224(void);\nconst EVP_MD *EVP_sha256(void);\nconst EVP_MD *EVP_sha384(void);\nconst EVP_MD *EVP_sha512(void);\nconst EVP_MD *EVP_sha512_224(void);\nconst EVP_MD *EVP_sha512_256(void);\nconst EVP_MD *EVP_sha3_224(void);\nconst EVP_MD *EVP_sha3_256(void);\nconst EVP_MD *EVP_sha3_384(void);\nconst EVP_MD *EVP_sha3_512(void);\nconst EVP_MD *EVP_shake128(void);\nconst EVP_MD *EVP_shake256(void);\n# ifndef OPENSSL_NO_MDC2\nconst EVP_MD *EVP_mdc2(void);\n# endif\n# ifndef OPENSSL_NO_RMD160\nconst EVP_MD *EVP_ripemd160(void);\n# endif\n# ifndef OPENSSL_NO_WHIRLPOOL\nconst EVP_MD *EVP_whirlpool(void);\n# endif\n# ifndef OPENSSL_NO_SM3\nconst EVP_MD *EVP_sm3(void);\n# endif\nconst EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */\n# ifndef OPENSSL_NO_DES\nconst EVP_CIPHER *EVP_des_ecb(void);\nconst EVP_CIPHER *EVP_des_ede(void);\nconst EVP_CIPHER *EVP_des_ede3(void);\nconst EVP_CIPHER *EVP_des_ede_ecb(void);\nconst EVP_CIPHER *EVP_des_ede3_ecb(void);\nconst EVP_CIPHER *EVP_des_cfb64(void);\n#  define EVP_des_cfb EVP_des_cfb64\nconst EVP_CIPHER *EVP_des_cfb1(void);\nconst EVP_CIPHER *EVP_des_cfb8(void);\nconst EVP_CIPHER *EVP_des_ede_cfb64(void);\n#  define EVP_des_ede_cfb EVP_des_ede_cfb64\nconst EVP_CIPHER *EVP_des_ede3_cfb64(void);\n#  define EVP_des_ede3_cfb EVP_des_ede3_cfb64\nconst EVP_CIPHER *EVP_des_ede3_cfb1(void);\nconst EVP_CIPHER *EVP_des_ede3_cfb8(void);\nconst EVP_CIPHER *EVP_des_ofb(void);\nconst EVP_CIPHER *EVP_des_ede_ofb(void);\nconst EVP_CIPHER *EVP_des_ede3_ofb(void);\nconst EVP_CIPHER *EVP_des_cbc(void);\nconst EVP_CIPHER *EVP_des_ede_cbc(void);\nconst EVP_CIPHER *EVP_des_ede3_cbc(void);\nconst EVP_CIPHER *EVP_desx_cbc(void);\nconst EVP_CIPHER *EVP_des_ede3_wrap(void);\n/*\n * This should now be supported through the dev_crypto ENGINE. But also, why\n * are rc4 and md5 declarations made here inside a \"NO_DES\" precompiler\n * branch?\n */\n# endif\n# ifndef OPENSSL_NO_RC4\nconst EVP_CIPHER *EVP_rc4(void);\nconst EVP_CIPHER *EVP_rc4_40(void);\n#  ifndef OPENSSL_NO_MD5\nconst EVP_CIPHER *EVP_rc4_hmac_md5(void);\n#  endif\n# endif\n# ifndef OPENSSL_NO_IDEA\nconst EVP_CIPHER *EVP_idea_ecb(void);\nconst EVP_CIPHER *EVP_idea_cfb64(void);\n#  define EVP_idea_cfb EVP_idea_cfb64\nconst EVP_CIPHER *EVP_idea_ofb(void);\nconst EVP_CIPHER *EVP_idea_cbc(void);\n# endif\n# ifndef OPENSSL_NO_RC2\nconst EVP_CIPHER *EVP_rc2_ecb(void);\nconst EVP_CIPHER *EVP_rc2_cbc(void);\nconst EVP_CIPHER *EVP_rc2_40_cbc(void);\nconst EVP_CIPHER *EVP_rc2_64_cbc(void);\nconst EVP_CIPHER *EVP_rc2_cfb64(void);\n#  define EVP_rc2_cfb EVP_rc2_cfb64\nconst EVP_CIPHER *EVP_rc2_ofb(void);\n# endif\n# ifndef OPENSSL_NO_BF\nconst EVP_CIPHER *EVP_bf_ecb(void);\nconst EVP_CIPHER *EVP_bf_cbc(void);\nconst EVP_CIPHER *EVP_bf_cfb64(void);\n#  define EVP_bf_cfb EVP_bf_cfb64\nconst EVP_CIPHER *EVP_bf_ofb(void);\n# endif\n# ifndef OPENSSL_NO_CAST\nconst EVP_CIPHER *EVP_cast5_ecb(void);\nconst EVP_CIPHER *EVP_cast5_cbc(void);\nconst EVP_CIPHER *EVP_cast5_cfb64(void);\n#  define EVP_cast5_cfb EVP_cast5_cfb64\nconst EVP_CIPHER *EVP_cast5_ofb(void);\n# endif\n# ifndef OPENSSL_NO_RC5\nconst EVP_CIPHER *EVP_rc5_32_12_16_cbc(void);\nconst EVP_CIPHER *EVP_rc5_32_12_16_ecb(void);\nconst EVP_CIPHER *EVP_rc5_32_12_16_cfb64(void);\n#  define EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64\nconst EVP_CIPHER *EVP_rc5_32_12_16_ofb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_128_ecb(void);\nconst EVP_CIPHER *EVP_aes_128_cbc(void);\nconst EVP_CIPHER *EVP_aes_128_cfb1(void);\nconst EVP_CIPHER *EVP_aes_128_cfb8(void);\nconst EVP_CIPHER *EVP_aes_128_cfb128(void);\n# define EVP_aes_128_cfb EVP_aes_128_cfb128\nconst EVP_CIPHER *EVP_aes_128_ofb(void);\nconst EVP_CIPHER *EVP_aes_128_ctr(void);\nconst EVP_CIPHER *EVP_aes_128_ccm(void);\nconst EVP_CIPHER *EVP_aes_128_gcm(void);\nconst EVP_CIPHER *EVP_aes_128_xts(void);\nconst EVP_CIPHER *EVP_aes_128_wrap(void);\nconst EVP_CIPHER *EVP_aes_128_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_128_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_192_ecb(void);\nconst EVP_CIPHER *EVP_aes_192_cbc(void);\nconst EVP_CIPHER *EVP_aes_192_cfb1(void);\nconst EVP_CIPHER *EVP_aes_192_cfb8(void);\nconst EVP_CIPHER *EVP_aes_192_cfb128(void);\n# define EVP_aes_192_cfb EVP_aes_192_cfb128\nconst EVP_CIPHER *EVP_aes_192_ofb(void);\nconst EVP_CIPHER *EVP_aes_192_ctr(void);\nconst EVP_CIPHER *EVP_aes_192_ccm(void);\nconst EVP_CIPHER *EVP_aes_192_gcm(void);\nconst EVP_CIPHER *EVP_aes_192_wrap(void);\nconst EVP_CIPHER *EVP_aes_192_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_192_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_256_ecb(void);\nconst EVP_CIPHER *EVP_aes_256_cbc(void);\nconst EVP_CIPHER *EVP_aes_256_cfb1(void);\nconst EVP_CIPHER *EVP_aes_256_cfb8(void);\nconst EVP_CIPHER *EVP_aes_256_cfb128(void);\n# define EVP_aes_256_cfb EVP_aes_256_cfb128\nconst EVP_CIPHER *EVP_aes_256_ofb(void);\nconst EVP_CIPHER *EVP_aes_256_ctr(void);\nconst EVP_CIPHER *EVP_aes_256_ccm(void);\nconst EVP_CIPHER *EVP_aes_256_gcm(void);\nconst EVP_CIPHER *EVP_aes_256_xts(void);\nconst EVP_CIPHER *EVP_aes_256_wrap(void);\nconst EVP_CIPHER *EVP_aes_256_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_256_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void);\nconst EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1(void);\nconst EVP_CIPHER *EVP_aes_128_cbc_hmac_sha256(void);\nconst EVP_CIPHER *EVP_aes_256_cbc_hmac_sha256(void);\n# ifndef OPENSSL_NO_ARIA\nconst EVP_CIPHER *EVP_aria_128_ecb(void);\nconst EVP_CIPHER *EVP_aria_128_cbc(void);\nconst EVP_CIPHER *EVP_aria_128_cfb1(void);\nconst EVP_CIPHER *EVP_aria_128_cfb8(void);\nconst EVP_CIPHER *EVP_aria_128_cfb128(void);\n#  define EVP_aria_128_cfb EVP_aria_128_cfb128\nconst EVP_CIPHER *EVP_aria_128_ctr(void);\nconst EVP_CIPHER *EVP_aria_128_ofb(void);\nconst EVP_CIPHER *EVP_aria_128_gcm(void);\nconst EVP_CIPHER *EVP_aria_128_ccm(void);\nconst EVP_CIPHER *EVP_aria_192_ecb(void);\nconst EVP_CIPHER *EVP_aria_192_cbc(void);\nconst EVP_CIPHER *EVP_aria_192_cfb1(void);\nconst EVP_CIPHER *EVP_aria_192_cfb8(void);\nconst EVP_CIPHER *EVP_aria_192_cfb128(void);\n#  define EVP_aria_192_cfb EVP_aria_192_cfb128\nconst EVP_CIPHER *EVP_aria_192_ctr(void);\nconst EVP_CIPHER *EVP_aria_192_ofb(void);\nconst EVP_CIPHER *EVP_aria_192_gcm(void);\nconst EVP_CIPHER *EVP_aria_192_ccm(void);\nconst EVP_CIPHER *EVP_aria_256_ecb(void);\nconst EVP_CIPHER *EVP_aria_256_cbc(void);\nconst EVP_CIPHER *EVP_aria_256_cfb1(void);\nconst EVP_CIPHER *EVP_aria_256_cfb8(void);\nconst EVP_CIPHER *EVP_aria_256_cfb128(void);\n#  define EVP_aria_256_cfb EVP_aria_256_cfb128\nconst EVP_CIPHER *EVP_aria_256_ctr(void);\nconst EVP_CIPHER *EVP_aria_256_ofb(void);\nconst EVP_CIPHER *EVP_aria_256_gcm(void);\nconst EVP_CIPHER *EVP_aria_256_ccm(void);\n# endif\n# ifndef OPENSSL_NO_CAMELLIA\nconst EVP_CIPHER *EVP_camellia_128_ecb(void);\nconst EVP_CIPHER *EVP_camellia_128_cbc(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb128(void);\n#  define EVP_camellia_128_cfb EVP_camellia_128_cfb128\nconst EVP_CIPHER *EVP_camellia_128_ofb(void);\nconst EVP_CIPHER *EVP_camellia_128_ctr(void);\nconst EVP_CIPHER *EVP_camellia_192_ecb(void);\nconst EVP_CIPHER *EVP_camellia_192_cbc(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb128(void);\n#  define EVP_camellia_192_cfb EVP_camellia_192_cfb128\nconst EVP_CIPHER *EVP_camellia_192_ofb(void);\nconst EVP_CIPHER *EVP_camellia_192_ctr(void);\nconst EVP_CIPHER *EVP_camellia_256_ecb(void);\nconst EVP_CIPHER *EVP_camellia_256_cbc(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb128(void);\n#  define EVP_camellia_256_cfb EVP_camellia_256_cfb128\nconst EVP_CIPHER *EVP_camellia_256_ofb(void);\nconst EVP_CIPHER *EVP_camellia_256_ctr(void);\n# endif\n# ifndef OPENSSL_NO_CHACHA\nconst EVP_CIPHER *EVP_chacha20(void);\n#  ifndef OPENSSL_NO_POLY1305\nconst EVP_CIPHER *EVP_chacha20_poly1305(void);\n#  endif\n# endif\n\n# ifndef OPENSSL_NO_SEED\nconst EVP_CIPHER *EVP_seed_ecb(void);\nconst EVP_CIPHER *EVP_seed_cbc(void);\nconst EVP_CIPHER *EVP_seed_cfb128(void);\n#  define EVP_seed_cfb EVP_seed_cfb128\nconst EVP_CIPHER *EVP_seed_ofb(void);\n# endif\n\n# ifndef OPENSSL_NO_SM4\nconst EVP_CIPHER *EVP_sm4_ecb(void);\nconst EVP_CIPHER *EVP_sm4_cbc(void);\nconst EVP_CIPHER *EVP_sm4_cfb128(void);\n#  define EVP_sm4_cfb EVP_sm4_cfb128\nconst EVP_CIPHER *EVP_sm4_ofb(void);\nconst EVP_CIPHER *EVP_sm4_ctr(void);\n# endif\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OPENSSL_add_all_algorithms_conf() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \\\n                        | OPENSSL_INIT_ADD_ALL_DIGESTS \\\n                        | OPENSSL_INIT_LOAD_CONFIG, NULL)\n#  define OPENSSL_add_all_algorithms_noconf() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \\\n                        | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)\n\n#  ifdef OPENSSL_LOAD_CONF\n#   define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_conf()\n#  else\n#   define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_noconf()\n#  endif\n\n#  define OpenSSL_add_all_ciphers() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, NULL)\n#  define OpenSSL_add_all_digests() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)\n\n#  define EVP_cleanup() while(0) continue\n# endif\n\nint EVP_add_cipher(const EVP_CIPHER *cipher);\nint EVP_add_digest(const EVP_MD *digest);\n\nconst EVP_CIPHER *EVP_get_cipherbyname(const char *name);\nconst EVP_MD *EVP_get_digestbyname(const char *name);\n\nvoid EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph,\n                                   const char *from, const char *to, void *x),\n                       void *arg);\nvoid EVP_CIPHER_do_all_sorted(void (*fn)\n                               (const EVP_CIPHER *ciph, const char *from,\n                                const char *to, void *x), void *arg);\n\nvoid EVP_MD_do_all(void (*fn) (const EVP_MD *ciph,\n                               const char *from, const char *to, void *x),\n                   void *arg);\nvoid EVP_MD_do_all_sorted(void (*fn)\n                           (const EVP_MD *ciph, const char *from,\n                            const char *to, void *x), void *arg);\n\nint EVP_PKEY_decrypt_old(unsigned char *dec_key,\n                         const unsigned char *enc_key, int enc_key_len,\n                         EVP_PKEY *private_key);\nint EVP_PKEY_encrypt_old(unsigned char *enc_key,\n                         const unsigned char *key, int key_len,\n                         EVP_PKEY *pub_key);\nint EVP_PKEY_type(int type);\nint EVP_PKEY_id(const EVP_PKEY *pkey);\nint EVP_PKEY_base_id(const EVP_PKEY *pkey);\nint EVP_PKEY_bits(const EVP_PKEY *pkey);\nint EVP_PKEY_security_bits(const EVP_PKEY *pkey);\nint EVP_PKEY_size(const EVP_PKEY *pkey);\nint EVP_PKEY_set_type(EVP_PKEY *pkey, int type);\nint EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);\nint EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);\n# ifndef OPENSSL_NO_ENGINE\nint EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);\nENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);\n# endif\nint EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);\nvoid *EVP_PKEY_get0(const EVP_PKEY *pkey);\nconst unsigned char *EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len);\n# ifndef OPENSSL_NO_POLY1305\nconst unsigned char *EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len);\n# endif\n# ifndef OPENSSL_NO_SIPHASH\nconst unsigned char *EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len);\n# endif\n\n# ifndef OPENSSL_NO_RSA\nstruct rsa_st;\nint EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);\nstruct rsa_st *EVP_PKEY_get0_RSA(EVP_PKEY *pkey);\nstruct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_DSA\nstruct dsa_st;\nint EVP_PKEY_set1_DSA(EVP_PKEY *pkey, struct dsa_st *key);\nstruct dsa_st *EVP_PKEY_get0_DSA(EVP_PKEY *pkey);\nstruct dsa_st *EVP_PKEY_get1_DSA(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_DH\nstruct dh_st;\nint EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);\nstruct dh_st *EVP_PKEY_get0_DH(EVP_PKEY *pkey);\nstruct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_EC\nstruct ec_key_st;\nint EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);\nstruct ec_key_st *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey);\nstruct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);\n# endif\n\nEVP_PKEY *EVP_PKEY_new(void);\nint EVP_PKEY_up_ref(EVP_PKEY *pkey);\nvoid EVP_PKEY_free(EVP_PKEY *pkey);\n\nEVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp,\n                        long length);\nint i2d_PublicKey(EVP_PKEY *a, unsigned char **pp);\n\nEVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp,\n                         long length);\nEVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp,\n                             long length);\nint i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp);\n\nint EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);\nint EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);\nint EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode);\nint EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);\n\nint EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);\n\nint EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey,\n                          int indent, ASN1_PCTX *pctx);\nint EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey,\n                           int indent, ASN1_PCTX *pctx);\nint EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey,\n                          int indent, ASN1_PCTX *pctx);\n\nint EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);\n\nint EVP_PKEY_set1_tls_encodedpoint(EVP_PKEY *pkey,\n                                   const unsigned char *pt, size_t ptlen);\nsize_t EVP_PKEY_get1_tls_encodedpoint(EVP_PKEY *pkey, unsigned char **ppt);\n\nint EVP_CIPHER_type(const EVP_CIPHER *ctx);\n\n/* calls methods */\nint EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\nint EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n\n/* These are used by EVP_CIPHER methods */\nint EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\nint EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n\n/* PKCS5 password based encryption */\nint PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                       ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                       const EVP_MD *md, int en_de);\nint PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,\n                           const unsigned char *salt, int saltlen, int iter,\n                           int keylen, unsigned char *out);\nint PKCS5_PBKDF2_HMAC(const char *pass, int passlen,\n                      const unsigned char *salt, int saltlen, int iter,\n                      const EVP_MD *digest, int keylen, unsigned char *out);\nint PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                          ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                          const EVP_MD *md, int en_de);\n\n#ifndef OPENSSL_NO_SCRYPT\nint EVP_PBE_scrypt(const char *pass, size_t passlen,\n                   const unsigned char *salt, size_t saltlen,\n                   uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,\n                   unsigned char *key, size_t keylen);\n\nint PKCS5_v2_scrypt_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass,\n                             int passlen, ASN1_TYPE *param,\n                             const EVP_CIPHER *c, const EVP_MD *md, int en_de);\n#endif\n\nvoid PKCS5_PBE_add(void);\n\nint EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen,\n                       ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de);\n\n/* PBE type */\n\n/* Can appear as the outermost AlgorithmIdentifier */\n# define EVP_PBE_TYPE_OUTER      0x0\n/* Is an PRF type OID */\n# define EVP_PBE_TYPE_PRF        0x1\n/* Is a PKCS#5 v2.0 KDF */\n# define EVP_PBE_TYPE_KDF        0x2\n\nint EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,\n                         int md_nid, EVP_PBE_KEYGEN *keygen);\nint EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,\n                    EVP_PBE_KEYGEN *keygen);\nint EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,\n                 EVP_PBE_KEYGEN **pkeygen);\nvoid EVP_PBE_cleanup(void);\nint EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);\n\n# define ASN1_PKEY_ALIAS         0x1\n# define ASN1_PKEY_DYNAMIC       0x2\n# define ASN1_PKEY_SIGPARAM_NULL 0x4\n\n# define ASN1_PKEY_CTRL_PKCS7_SIGN       0x1\n# define ASN1_PKEY_CTRL_PKCS7_ENCRYPT    0x2\n# define ASN1_PKEY_CTRL_DEFAULT_MD_NID   0x3\n# define ASN1_PKEY_CTRL_CMS_SIGN         0x5\n# define ASN1_PKEY_CTRL_CMS_ENVELOPE     0x7\n# define ASN1_PKEY_CTRL_CMS_RI_TYPE      0x8\n\n# define ASN1_PKEY_CTRL_SET1_TLS_ENCPT   0x9\n# define ASN1_PKEY_CTRL_GET1_TLS_ENCPT   0xa\n\nint EVP_PKEY_asn1_get_count(void);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_get0(int idx);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pe,\n                                                   const char *str, int len);\nint EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);\nint EVP_PKEY_asn1_add_alias(int to, int from);\nint EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id,\n                            int *ppkey_flags, const char **pinfo,\n                            const char **ppem_str,\n                            const EVP_PKEY_ASN1_METHOD *ameth);\n\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey);\nEVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_new(int id, int flags,\n                                        const char *pem_str,\n                                        const char *info);\nvoid EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst,\n                        const EVP_PKEY_ASN1_METHOD *src);\nvoid EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);\nvoid EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,\n                              int (*pub_decode) (EVP_PKEY *pk,\n                                                 X509_PUBKEY *pub),\n                              int (*pub_encode) (X509_PUBKEY *pub,\n                                                 const EVP_PKEY *pk),\n                              int (*pub_cmp) (const EVP_PKEY *a,\n                                              const EVP_PKEY *b),\n                              int (*pub_print) (BIO *out,\n                                                const EVP_PKEY *pkey,\n                                                int indent, ASN1_PCTX *pctx),\n                              int (*pkey_size) (const EVP_PKEY *pk),\n                              int (*pkey_bits) (const EVP_PKEY *pk));\nvoid EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,\n                               int (*priv_decode) (EVP_PKEY *pk,\n                                                   const PKCS8_PRIV_KEY_INFO\n                                                   *p8inf),\n                               int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8,\n                                                   const EVP_PKEY *pk),\n                               int (*priv_print) (BIO *out,\n                                                  const EVP_PKEY *pkey,\n                                                  int indent,\n                                                  ASN1_PCTX *pctx));\nvoid EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,\n                             int (*param_decode) (EVP_PKEY *pkey,\n                                                  const unsigned char **pder,\n                                                  int derlen),\n                             int (*param_encode) (const EVP_PKEY *pkey,\n                                                  unsigned char **pder),\n                             int (*param_missing) (const EVP_PKEY *pk),\n                             int (*param_copy) (EVP_PKEY *to,\n                                                const EVP_PKEY *from),\n                             int (*param_cmp) (const EVP_PKEY *a,\n                                               const EVP_PKEY *b),\n                             int (*param_print) (BIO *out,\n                                                 const EVP_PKEY *pkey,\n                                                 int indent,\n                                                 ASN1_PCTX *pctx));\n\nvoid EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,\n                            void (*pkey_free) (EVP_PKEY *pkey));\nvoid EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,\n                            int (*pkey_ctrl) (EVP_PKEY *pkey, int op,\n                                              long arg1, void *arg2));\nvoid EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth,\n                            int (*item_verify) (EVP_MD_CTX *ctx,\n                                                const ASN1_ITEM *it,\n                                                void *asn,\n                                                X509_ALGOR *a,\n                                                ASN1_BIT_STRING *sig,\n                                                EVP_PKEY *pkey),\n                            int (*item_sign) (EVP_MD_CTX *ctx,\n                                              const ASN1_ITEM *it,\n                                              void *asn,\n                                              X509_ALGOR *alg1,\n                                              X509_ALGOR *alg2,\n                                              ASN1_BIT_STRING *sig));\n\nvoid EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth,\n                              int (*siginf_set) (X509_SIG_INFO *siginf,\n                                                 const X509_ALGOR *alg,\n                                                 const ASN1_STRING *sig));\n\nvoid EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth,\n                             int (*pkey_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*pkey_pub_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*pkey_param_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_set_priv_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*set_priv_key) (EVP_PKEY *pk,\n                                                         const unsigned char\n                                                            *priv,\n                                                         size_t len));\nvoid EVP_PKEY_asn1_set_set_pub_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*set_pub_key) (EVP_PKEY *pk,\n                                                       const unsigned char *pub,\n                                                       size_t len));\nvoid EVP_PKEY_asn1_set_get_priv_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*get_priv_key) (const EVP_PKEY *pk,\n                                                         unsigned char *priv,\n                                                         size_t *len));\nvoid EVP_PKEY_asn1_set_get_pub_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*get_pub_key) (const EVP_PKEY *pk,\n                                                       unsigned char *pub,\n                                                       size_t *len));\n\nvoid EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth,\n                                     int (*pkey_security_bits) (const EVP_PKEY\n                                                                *pk));\n\n# define EVP_PKEY_OP_UNDEFINED           0\n# define EVP_PKEY_OP_PARAMGEN            (1<<1)\n# define EVP_PKEY_OP_KEYGEN              (1<<2)\n# define EVP_PKEY_OP_SIGN                (1<<3)\n# define EVP_PKEY_OP_VERIFY              (1<<4)\n# define EVP_PKEY_OP_VERIFYRECOVER       (1<<5)\n# define EVP_PKEY_OP_SIGNCTX             (1<<6)\n# define EVP_PKEY_OP_VERIFYCTX           (1<<7)\n# define EVP_PKEY_OP_ENCRYPT             (1<<8)\n# define EVP_PKEY_OP_DECRYPT             (1<<9)\n# define EVP_PKEY_OP_DERIVE              (1<<10)\n\n# define EVP_PKEY_OP_TYPE_SIG    \\\n        (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYRECOVER \\\n                | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)\n\n# define EVP_PKEY_OP_TYPE_CRYPT \\\n        (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)\n\n# define EVP_PKEY_OP_TYPE_NOGEN \\\n        (EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT | EVP_PKEY_OP_DERIVE)\n\n# define EVP_PKEY_OP_TYPE_GEN \\\n                (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)\n\n# define  EVP_PKEY_CTX_set_signature_md(ctx, md) \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG,  \\\n                                        EVP_PKEY_CTRL_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_get_signature_md(ctx, pmd)        \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG,  \\\n                                        EVP_PKEY_CTRL_GET_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_set_mac_key(ctx, key, len)        \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_KEYGEN,  \\\n                                  EVP_PKEY_CTRL_SET_MAC_KEY, len, (void *)(key))\n\n# define EVP_PKEY_CTRL_MD                1\n# define EVP_PKEY_CTRL_PEER_KEY          2\n\n# define EVP_PKEY_CTRL_PKCS7_ENCRYPT     3\n# define EVP_PKEY_CTRL_PKCS7_DECRYPT     4\n\n# define EVP_PKEY_CTRL_PKCS7_SIGN        5\n\n# define EVP_PKEY_CTRL_SET_MAC_KEY       6\n\n# define EVP_PKEY_CTRL_DIGESTINIT        7\n\n/* Used by GOST key encryption in TLS */\n# define EVP_PKEY_CTRL_SET_IV            8\n\n# define EVP_PKEY_CTRL_CMS_ENCRYPT       9\n# define EVP_PKEY_CTRL_CMS_DECRYPT       10\n# define EVP_PKEY_CTRL_CMS_SIGN          11\n\n# define EVP_PKEY_CTRL_CIPHER            12\n\n# define EVP_PKEY_CTRL_GET_MD            13\n\n# define EVP_PKEY_CTRL_SET_DIGEST_SIZE   14\n\n# define EVP_PKEY_ALG_CTRL               0x1000\n\n# define EVP_PKEY_FLAG_AUTOARGLEN        2\n/*\n * Method handles all operations: don't assume any digest related defaults.\n */\n# define EVP_PKEY_FLAG_SIGCTX_CUSTOM     4\n\nconst EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type);\nEVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags);\nvoid EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,\n                             const EVP_PKEY_METHOD *meth);\nvoid EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src);\nvoid EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth);\nint EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth);\nint EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth);\nsize_t EVP_PKEY_meth_get_count(void);\nconst EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);\n\nEVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);\nEVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);\nEVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);\nvoid EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,\n                      int cmd, int p1, void *p2);\nint EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *type,\n                          const char *value);\nint EVP_PKEY_CTX_ctrl_uint64(EVP_PKEY_CTX *ctx, int keytype, int optype,\n                             int cmd, uint64_t value);\n\nint EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);\nint EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex);\n\nint EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md);\n\nint EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx);\nvoid EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen);\n\nEVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e,\n                               const unsigned char *key, int keylen);\nEVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *e,\n                                       const unsigned char *priv,\n                                       size_t len);\nEVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *e,\n                                      const unsigned char *pub,\n                                      size_t len);\nint EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv,\n                                 size_t *len);\nint EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub,\n                                size_t *len);\n\nEVP_PKEY *EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv,\n                                size_t len, const EVP_CIPHER *cipher);\n\nvoid EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data);\nvoid *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx);\nEVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);\n\nEVP_PKEY *EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx);\n\nvoid EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data);\nvoid *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n                  unsigned char *sig, size_t *siglen,\n                  const unsigned char *tbs, size_t tbslen);\nint EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_verify(EVP_PKEY_CTX *ctx,\n                    const unsigned char *sig, size_t siglen,\n                    const unsigned char *tbs, size_t tbslen);\nint EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx,\n                            unsigned char *rout, size_t *routlen,\n                            const unsigned char *sig, size_t siglen);\nint EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx,\n                     unsigned char *out, size_t *outlen,\n                     const unsigned char *in, size_t inlen);\nint EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx,\n                     unsigned char *out, size_t *outlen,\n                     const unsigned char *in, size_t inlen);\n\nint EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer);\nint EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);\n\ntypedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\nint EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\nint EVP_PKEY_check(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_public_check(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_param_check(EVP_PKEY_CTX *ctx);\n\nvoid EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);\nEVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);\n\nvoid EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,\n                            int (*init) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth,\n                            int (*copy) (EVP_PKEY_CTX *dst,\n                                         EVP_PKEY_CTX *src));\n\nvoid EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth,\n                               void (*cleanup) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth,\n                                int (*paramgen_init) (EVP_PKEY_CTX *ctx),\n                                int (*paramgen) (EVP_PKEY_CTX *ctx,\n                                                 EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth,\n                              int (*keygen_init) (EVP_PKEY_CTX *ctx),\n                              int (*keygen) (EVP_PKEY_CTX *ctx,\n                                             EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth,\n                            int (*sign_init) (EVP_PKEY_CTX *ctx),\n                            int (*sign) (EVP_PKEY_CTX *ctx,\n                                         unsigned char *sig, size_t *siglen,\n                                         const unsigned char *tbs,\n                                         size_t tbslen));\n\nvoid EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth,\n                              int (*verify_init) (EVP_PKEY_CTX *ctx),\n                              int (*verify) (EVP_PKEY_CTX *ctx,\n                                             const unsigned char *sig,\n                                             size_t siglen,\n                                             const unsigned char *tbs,\n                                             size_t tbslen));\n\nvoid EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth,\n                                      int (*verify_recover_init) (EVP_PKEY_CTX\n                                                                  *ctx),\n                                      int (*verify_recover) (EVP_PKEY_CTX\n                                                             *ctx,\n                                                             unsigned char\n                                                             *sig,\n                                                             size_t *siglen,\n                                                             const unsigned\n                                                             char *tbs,\n                                                             size_t tbslen));\n\nvoid EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth,\n                               int (*signctx_init) (EVP_PKEY_CTX *ctx,\n                                                    EVP_MD_CTX *mctx),\n                               int (*signctx) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *sig,\n                                               size_t *siglen,\n                                               EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth,\n                                 int (*verifyctx_init) (EVP_PKEY_CTX *ctx,\n                                                        EVP_MD_CTX *mctx),\n                                 int (*verifyctx) (EVP_PKEY_CTX *ctx,\n                                                   const unsigned char *sig,\n                                                   int siglen,\n                                                   EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth,\n                               int (*encrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (*encryptfn) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *out,\n                                                 size_t *outlen,\n                                                 const unsigned char *in,\n                                                 size_t inlen));\n\nvoid EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth,\n                               int (*decrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (*decrypt) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *out,\n                                               size_t *outlen,\n                                               const unsigned char *in,\n                                               size_t inlen));\n\nvoid EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth,\n                              int (*derive_init) (EVP_PKEY_CTX *ctx),\n                              int (*derive) (EVP_PKEY_CTX *ctx,\n                                             unsigned char *key,\n                                             size_t *keylen));\n\nvoid EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,\n                            int (*ctrl) (EVP_PKEY_CTX *ctx, int type, int p1,\n                                         void *p2),\n                            int (*ctrl_str) (EVP_PKEY_CTX *ctx,\n                                             const char *type,\n                                             const char *value));\n\nvoid EVP_PKEY_meth_set_digestsign(EVP_PKEY_METHOD *pmeth,\n                                  int (*digestsign) (EVP_MD_CTX *ctx,\n                                                     unsigned char *sig,\n                                                     size_t *siglen,\n                                                     const unsigned char *tbs,\n                                                     size_t tbslen));\n\nvoid EVP_PKEY_meth_set_digestverify(EVP_PKEY_METHOD *pmeth,\n                                    int (*digestverify) (EVP_MD_CTX *ctx,\n                                                         const unsigned char *sig,\n                                                         size_t siglen,\n                                                         const unsigned char *tbs,\n                                                         size_t tbslen));\n\nvoid EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,\n                             int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth,\n                                    int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth,\n                                   int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_digest_custom(EVP_PKEY_METHOD *pmeth,\n                                     int (*digest_custom) (EVP_PKEY_CTX *ctx,\n                                                           EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_init(const EVP_PKEY_METHOD *pmeth,\n                            int (**pinit) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_get_copy(const EVP_PKEY_METHOD *pmeth,\n                            int (**pcopy) (EVP_PKEY_CTX *dst,\n                                           EVP_PKEY_CTX *src));\n\nvoid EVP_PKEY_meth_get_cleanup(const EVP_PKEY_METHOD *pmeth,\n                               void (**pcleanup) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_get_paramgen(const EVP_PKEY_METHOD *pmeth,\n                                int (**pparamgen_init) (EVP_PKEY_CTX *ctx),\n                                int (**pparamgen) (EVP_PKEY_CTX *ctx,\n                                                   EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_keygen(const EVP_PKEY_METHOD *pmeth,\n                              int (**pkeygen_init) (EVP_PKEY_CTX *ctx),\n                              int (**pkeygen) (EVP_PKEY_CTX *ctx,\n                                               EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_sign(const EVP_PKEY_METHOD *pmeth,\n                            int (**psign_init) (EVP_PKEY_CTX *ctx),\n                            int (**psign) (EVP_PKEY_CTX *ctx,\n                                           unsigned char *sig, size_t *siglen,\n                                           const unsigned char *tbs,\n                                           size_t tbslen));\n\nvoid EVP_PKEY_meth_get_verify(const EVP_PKEY_METHOD *pmeth,\n                              int (**pverify_init) (EVP_PKEY_CTX *ctx),\n                              int (**pverify) (EVP_PKEY_CTX *ctx,\n                                               const unsigned char *sig,\n                                               size_t siglen,\n                                               const unsigned char *tbs,\n                                               size_t tbslen));\n\nvoid EVP_PKEY_meth_get_verify_recover(const EVP_PKEY_METHOD *pmeth,\n                                      int (**pverify_recover_init) (EVP_PKEY_CTX\n                                                                    *ctx),\n                                      int (**pverify_recover) (EVP_PKEY_CTX\n                                                               *ctx,\n                                                               unsigned char\n                                                               *sig,\n                                                               size_t *siglen,\n                                                               const unsigned\n                                                               char *tbs,\n                                                               size_t tbslen));\n\nvoid EVP_PKEY_meth_get_signctx(const EVP_PKEY_METHOD *pmeth,\n                               int (**psignctx_init) (EVP_PKEY_CTX *ctx,\n                                                      EVP_MD_CTX *mctx),\n                               int (**psignctx) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *sig,\n                                                 size_t *siglen,\n                                                 EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_verifyctx(const EVP_PKEY_METHOD *pmeth,\n                                 int (**pverifyctx_init) (EVP_PKEY_CTX *ctx,\n                                                          EVP_MD_CTX *mctx),\n                                 int (**pverifyctx) (EVP_PKEY_CTX *ctx,\n                                                     const unsigned char *sig,\n                                                     int siglen,\n                                                     EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_encrypt(const EVP_PKEY_METHOD *pmeth,\n                               int (**pencrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (**pencryptfn) (EVP_PKEY_CTX *ctx,\n                                                   unsigned char *out,\n                                                   size_t *outlen,\n                                                   const unsigned char *in,\n                                                   size_t inlen));\n\nvoid EVP_PKEY_meth_get_decrypt(const EVP_PKEY_METHOD *pmeth,\n                               int (**pdecrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (**pdecrypt) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *out,\n                                                 size_t *outlen,\n                                                 const unsigned char *in,\n                                                 size_t inlen));\n\nvoid EVP_PKEY_meth_get_derive(const EVP_PKEY_METHOD *pmeth,\n                              int (**pderive_init) (EVP_PKEY_CTX *ctx),\n                              int (**pderive) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *key,\n                                               size_t *keylen));\n\nvoid EVP_PKEY_meth_get_ctrl(const EVP_PKEY_METHOD *pmeth,\n                            int (**pctrl) (EVP_PKEY_CTX *ctx, int type, int p1,\n                                           void *p2),\n                            int (**pctrl_str) (EVP_PKEY_CTX *ctx,\n                                               const char *type,\n                                               const char *value));\n\nvoid EVP_PKEY_meth_get_digestsign(EVP_PKEY_METHOD *pmeth,\n                                  int (**digestsign) (EVP_MD_CTX *ctx,\n                                                      unsigned char *sig,\n                                                      size_t *siglen,\n                                                      const unsigned char *tbs,\n                                                      size_t tbslen));\n\nvoid EVP_PKEY_meth_get_digestverify(EVP_PKEY_METHOD *pmeth,\n                                    int (**digestverify) (EVP_MD_CTX *ctx,\n                                                          const unsigned char *sig,\n                                                          size_t siglen,\n                                                          const unsigned char *tbs,\n                                                          size_t tbslen));\n\nvoid EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,\n                             int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_public_check(const EVP_PKEY_METHOD *pmeth,\n                                    int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_param_check(const EVP_PKEY_METHOD *pmeth,\n                                   int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_digest_custom(EVP_PKEY_METHOD *pmeth,\n                                     int (**pdigest_custom) (EVP_PKEY_CTX *ctx,\n                                                             EVP_MD_CTX *mctx));\nvoid EVP_add_alg_module(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/evperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EVPERR_H\n# define HEADER_EVPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_EVP_strings(void);\n\n/*\n * EVP function codes.\n */\n# define EVP_F_AESNI_INIT_KEY                             165\n# define EVP_F_AESNI_XTS_INIT_KEY                         207\n# define EVP_F_AES_GCM_CTRL                               196\n# define EVP_F_AES_INIT_KEY                               133\n# define EVP_F_AES_OCB_CIPHER                             169\n# define EVP_F_AES_T4_INIT_KEY                            178\n# define EVP_F_AES_T4_XTS_INIT_KEY                        208\n# define EVP_F_AES_WRAP_CIPHER                            170\n# define EVP_F_AES_XTS_INIT_KEY                           209\n# define EVP_F_ALG_MODULE_INIT                            177\n# define EVP_F_ARIA_CCM_INIT_KEY                          175\n# define EVP_F_ARIA_GCM_CTRL                              197\n# define EVP_F_ARIA_GCM_INIT_KEY                          176\n# define EVP_F_ARIA_INIT_KEY                              185\n# define EVP_F_B64_NEW                                    198\n# define EVP_F_CAMELLIA_INIT_KEY                          159\n# define EVP_F_CHACHA20_POLY1305_CTRL                     182\n# define EVP_F_CMLL_T4_INIT_KEY                           179\n# define EVP_F_DES_EDE3_WRAP_CIPHER                       171\n# define EVP_F_DO_SIGVER_INIT                             161\n# define EVP_F_ENC_NEW                                    199\n# define EVP_F_EVP_CIPHERINIT_EX                          123\n# define EVP_F_EVP_CIPHER_ASN1_TO_PARAM                   204\n# define EVP_F_EVP_CIPHER_CTX_COPY                        163\n# define EVP_F_EVP_CIPHER_CTX_CTRL                        124\n# define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH              122\n# define EVP_F_EVP_CIPHER_PARAM_TO_ASN1                   205\n# define EVP_F_EVP_DECRYPTFINAL_EX                        101\n# define EVP_F_EVP_DECRYPTUPDATE                          166\n# define EVP_F_EVP_DIGESTFINALXOF                         174\n# define EVP_F_EVP_DIGESTINIT_EX                          128\n# define EVP_F_EVP_ENCRYPTDECRYPTUPDATE                   219\n# define EVP_F_EVP_ENCRYPTFINAL_EX                        127\n# define EVP_F_EVP_ENCRYPTUPDATE                          167\n# define EVP_F_EVP_MD_CTX_COPY_EX                         110\n# define EVP_F_EVP_MD_SIZE                                162\n# define EVP_F_EVP_OPENINIT                               102\n# define EVP_F_EVP_PBE_ALG_ADD                            115\n# define EVP_F_EVP_PBE_ALG_ADD_TYPE                       160\n# define EVP_F_EVP_PBE_CIPHERINIT                         116\n# define EVP_F_EVP_PBE_SCRYPT                             181\n# define EVP_F_EVP_PKCS82PKEY                             111\n# define EVP_F_EVP_PKEY2PKCS8                             113\n# define EVP_F_EVP_PKEY_ASN1_ADD0                         188\n# define EVP_F_EVP_PKEY_CHECK                             186\n# define EVP_F_EVP_PKEY_COPY_PARAMETERS                   103\n# define EVP_F_EVP_PKEY_CTX_CTRL                          137\n# define EVP_F_EVP_PKEY_CTX_CTRL_STR                      150\n# define EVP_F_EVP_PKEY_CTX_DUP                           156\n# define EVP_F_EVP_PKEY_CTX_MD                            168\n# define EVP_F_EVP_PKEY_DECRYPT                           104\n# define EVP_F_EVP_PKEY_DECRYPT_INIT                      138\n# define EVP_F_EVP_PKEY_DECRYPT_OLD                       151\n# define EVP_F_EVP_PKEY_DERIVE                            153\n# define EVP_F_EVP_PKEY_DERIVE_INIT                       154\n# define EVP_F_EVP_PKEY_DERIVE_SET_PEER                   155\n# define EVP_F_EVP_PKEY_ENCRYPT                           105\n# define EVP_F_EVP_PKEY_ENCRYPT_INIT                      139\n# define EVP_F_EVP_PKEY_ENCRYPT_OLD                       152\n# define EVP_F_EVP_PKEY_GET0_DH                           119\n# define EVP_F_EVP_PKEY_GET0_DSA                          120\n# define EVP_F_EVP_PKEY_GET0_EC_KEY                       131\n# define EVP_F_EVP_PKEY_GET0_HMAC                         183\n# define EVP_F_EVP_PKEY_GET0_POLY1305                     184\n# define EVP_F_EVP_PKEY_GET0_RSA                          121\n# define EVP_F_EVP_PKEY_GET0_SIPHASH                      172\n# define EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY               202\n# define EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY                203\n# define EVP_F_EVP_PKEY_KEYGEN                            146\n# define EVP_F_EVP_PKEY_KEYGEN_INIT                       147\n# define EVP_F_EVP_PKEY_METH_ADD0                         194\n# define EVP_F_EVP_PKEY_METH_NEW                          195\n# define EVP_F_EVP_PKEY_NEW                               106\n# define EVP_F_EVP_PKEY_NEW_CMAC_KEY                      193\n# define EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY               191\n# define EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY                192\n# define EVP_F_EVP_PKEY_PARAMGEN                          148\n# define EVP_F_EVP_PKEY_PARAMGEN_INIT                     149\n# define EVP_F_EVP_PKEY_PARAM_CHECK                       189\n# define EVP_F_EVP_PKEY_PUBLIC_CHECK                      190\n# define EVP_F_EVP_PKEY_SET1_ENGINE                       187\n# define EVP_F_EVP_PKEY_SET_ALIAS_TYPE                    206\n# define EVP_F_EVP_PKEY_SIGN                              140\n# define EVP_F_EVP_PKEY_SIGN_INIT                         141\n# define EVP_F_EVP_PKEY_VERIFY                            142\n# define EVP_F_EVP_PKEY_VERIFY_INIT                       143\n# define EVP_F_EVP_PKEY_VERIFY_RECOVER                    144\n# define EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT               145\n# define EVP_F_EVP_SIGNFINAL                              107\n# define EVP_F_EVP_VERIFYFINAL                            108\n# define EVP_F_INT_CTX_NEW                                157\n# define EVP_F_OK_NEW                                     200\n# define EVP_F_PKCS5_PBE_KEYIVGEN                         117\n# define EVP_F_PKCS5_V2_PBE_KEYIVGEN                      118\n# define EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN                   164\n# define EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN                   180\n# define EVP_F_PKEY_SET_TYPE                              158\n# define EVP_F_RC2_MAGIC_TO_METH                          109\n# define EVP_F_RC5_CTRL                                   125\n# define EVP_F_R_32_12_16_INIT_KEY                        242\n# define EVP_F_S390X_AES_GCM_CTRL                         201\n# define EVP_F_UPDATE                                     173\n\n/*\n * EVP reason codes.\n */\n# define EVP_R_AES_KEY_SETUP_FAILED                       143\n# define EVP_R_ARIA_KEY_SETUP_FAILED                      176\n# define EVP_R_BAD_DECRYPT                                100\n# define EVP_R_BAD_KEY_LENGTH                             195\n# define EVP_R_BUFFER_TOO_SMALL                           155\n# define EVP_R_CAMELLIA_KEY_SETUP_FAILED                  157\n# define EVP_R_CIPHER_PARAMETER_ERROR                     122\n# define EVP_R_COMMAND_NOT_SUPPORTED                      147\n# define EVP_R_COPY_ERROR                                 173\n# define EVP_R_CTRL_NOT_IMPLEMENTED                       132\n# define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED             133\n# define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH          138\n# define EVP_R_DECODE_ERROR                               114\n# define EVP_R_DIFFERENT_KEY_TYPES                        101\n# define EVP_R_DIFFERENT_PARAMETERS                       153\n# define EVP_R_ERROR_LOADING_SECTION                      165\n# define EVP_R_ERROR_SETTING_FIPS_MODE                    166\n# define EVP_R_EXPECTING_AN_HMAC_KEY                      174\n# define EVP_R_EXPECTING_AN_RSA_KEY                       127\n# define EVP_R_EXPECTING_A_DH_KEY                         128\n# define EVP_R_EXPECTING_A_DSA_KEY                        129\n# define EVP_R_EXPECTING_A_EC_KEY                         142\n# define EVP_R_EXPECTING_A_POLY1305_KEY                   164\n# define EVP_R_EXPECTING_A_SIPHASH_KEY                    175\n# define EVP_R_FIPS_MODE_NOT_SUPPORTED                    167\n# define EVP_R_GET_RAW_KEY_FAILED                         182\n# define EVP_R_ILLEGAL_SCRYPT_PARAMETERS                  171\n# define EVP_R_INITIALIZATION_ERROR                       134\n# define EVP_R_INPUT_NOT_INITIALIZED                      111\n# define EVP_R_INVALID_DIGEST                             152\n# define EVP_R_INVALID_FIPS_MODE                          168\n# define EVP_R_INVALID_IV_LENGTH                          194\n# define EVP_R_INVALID_KEY                                163\n# define EVP_R_INVALID_KEY_LENGTH                         130\n# define EVP_R_INVALID_OPERATION                          148\n# define EVP_R_KEYGEN_FAILURE                             120\n# define EVP_R_KEY_SETUP_FAILED                           180\n# define EVP_R_MEMORY_LIMIT_EXCEEDED                      172\n# define EVP_R_MESSAGE_DIGEST_IS_NULL                     159\n# define EVP_R_METHOD_NOT_SUPPORTED                       144\n# define EVP_R_MISSING_PARAMETERS                         103\n# define EVP_R_NOT_XOF_OR_INVALID_LENGTH                  178\n# define EVP_R_NO_CIPHER_SET                              131\n# define EVP_R_NO_DEFAULT_DIGEST                          158\n# define EVP_R_NO_DIGEST_SET                              139\n# define EVP_R_NO_KEY_SET                                 154\n# define EVP_R_NO_OPERATION_SET                           149\n# define EVP_R_ONLY_ONESHOT_SUPPORTED                     177\n# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   150\n# define EVP_R_OPERATON_NOT_INITIALIZED                   151\n# define EVP_R_PARTIALLY_OVERLAPPING                      162\n# define EVP_R_PBKDF2_ERROR                               181\n# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179\n# define EVP_R_PRIVATE_KEY_DECODE_ERROR                   145\n# define EVP_R_PRIVATE_KEY_ENCODE_ERROR                   146\n# define EVP_R_PUBLIC_KEY_NOT_RSA                         106\n# define EVP_R_UNKNOWN_CIPHER                             160\n# define EVP_R_UNKNOWN_DIGEST                             161\n# define EVP_R_UNKNOWN_OPTION                             169\n# define EVP_R_UNKNOWN_PBE_ALGORITHM                      121\n# define EVP_R_UNSUPPORTED_ALGORITHM                      156\n# define EVP_R_UNSUPPORTED_CIPHER                         107\n# define EVP_R_UNSUPPORTED_KEYLENGTH                      123\n# define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION        124\n# define EVP_R_UNSUPPORTED_KEY_SIZE                       108\n# define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS               135\n# define EVP_R_UNSUPPORTED_PRF                            125\n# define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM          118\n# define EVP_R_UNSUPPORTED_SALT_TYPE                      126\n# define EVP_R_WRAP_MODE_NOT_ALLOWED                      170\n# define EVP_R_WRONG_FINAL_BLOCK_LENGTH                   109\n# define EVP_R_XTS_DUPLICATED_KEYS                        183\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/hmac.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_HMAC_H\n# define HEADER_HMAC_H\n\n# include <openssl/opensslconf.h>\n\n# include <openssl/evp.h>\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n#  define HMAC_MAX_MD_CBLOCK      128    /* Deprecated */\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\nsize_t HMAC_size(const HMAC_CTX *e);\nHMAC_CTX *HMAC_CTX_new(void);\nint HMAC_CTX_reset(HMAC_CTX *ctx);\nvoid HMAC_CTX_free(HMAC_CTX *ctx);\n\nDEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,\n                     const EVP_MD *md))\n\n/*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,\n                            const EVP_MD *md, ENGINE *impl);\n/*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,\n                           size_t len);\n/*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,\n                          unsigned int *len);\nunsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,\n                    const unsigned char *d, size_t n, unsigned char *md,\n                    unsigned int *md_len);\n__owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);\n\nvoid HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);\nconst EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/idea.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_IDEA_H\n# define HEADER_IDEA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_IDEA\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned int IDEA_INT;\n\n# define IDEA_ENCRYPT    1\n# define IDEA_DECRYPT    0\n\n# define IDEA_BLOCK      8\n# define IDEA_KEY_LENGTH 16\n\ntypedef struct idea_key_st {\n    IDEA_INT data[9][6];\n} IDEA_KEY_SCHEDULE;\n\nconst char *IDEA_options(void);\nvoid IDEA_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      IDEA_KEY_SCHEDULE *ks);\nvoid IDEA_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks);\nvoid IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk);\nvoid IDEA_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                      int enc);\nvoid IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                        int *num, int enc);\nvoid IDEA_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                        int *num);\nvoid IDEA_encrypt(unsigned long *in, IDEA_KEY_SCHEDULE *ks);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define idea_options          IDEA_options\n#  define idea_ecb_encrypt      IDEA_ecb_encrypt\n#  define idea_set_encrypt_key  IDEA_set_encrypt_key\n#  define idea_set_decrypt_key  IDEA_set_decrypt_key\n#  define idea_cbc_encrypt      IDEA_cbc_encrypt\n#  define idea_cfb64_encrypt    IDEA_cfb64_encrypt\n#  define idea_ofb64_encrypt    IDEA_ofb64_encrypt\n#  define idea_encrypt          IDEA_encrypt\n# endif\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/kdf.h",
    "content": "/*\n * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_KDF_H\n# define HEADER_KDF_H\n\n# include <openssl/kdferr.h>\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define EVP_PKEY_CTRL_TLS_MD                   (EVP_PKEY_ALG_CTRL)\n# define EVP_PKEY_CTRL_TLS_SECRET               (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_TLS_SEED                 (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_HKDF_MD                  (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_HKDF_SALT                (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_HKDF_KEY                 (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_HKDF_INFO                (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_HKDF_MODE                (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_PASS                     (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_SCRYPT_SALT              (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_SCRYPT_N                 (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_SCRYPT_R                 (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_SCRYPT_P                 (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES      (EVP_PKEY_ALG_CTRL + 13)\n\n# define EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND 0\n# define EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY       1\n# define EVP_PKEY_HKDEF_MODE_EXPAND_ONLY        2\n\n# define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_SECRET, seclen, (void *)(sec))\n\n# define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_SEED, seedlen, (void *)(seed))\n\n# define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_SALT, saltlen, (void *)(salt))\n\n# define EVP_PKEY_CTX_set1_hkdf_key(pctx, key, keylen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_KEY, keylen, (void *)(key))\n\n# define EVP_PKEY_CTX_add1_hkdf_info(pctx, info, infolen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_INFO, infolen, (void *)(info))\n\n# define EVP_PKEY_CTX_hkdf_mode(pctx, mode) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_MODE, mode, NULL)\n\n# define EVP_PKEY_CTX_set1_pbe_pass(pctx, pass, passlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_PASS, passlen, (void *)(pass))\n\n# define EVP_PKEY_CTX_set1_scrypt_salt(pctx, salt, saltlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_SALT, saltlen, (void *)(salt))\n\n# define EVP_PKEY_CTX_set_scrypt_N(pctx, n) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_N, n)\n\n# define EVP_PKEY_CTX_set_scrypt_r(pctx, r) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_R, r)\n\n# define EVP_PKEY_CTX_set_scrypt_p(pctx, p) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_P, p)\n\n# define EVP_PKEY_CTX_set_scrypt_maxmem_bytes(pctx, maxmem_bytes) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES, maxmem_bytes)\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/kdferr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_KDFERR_H\n# define HEADER_KDFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_KDF_strings(void);\n\n/*\n * KDF function codes.\n */\n# define KDF_F_PKEY_HKDF_CTRL_STR                         103\n# define KDF_F_PKEY_HKDF_DERIVE                           102\n# define KDF_F_PKEY_HKDF_INIT                             108\n# define KDF_F_PKEY_SCRYPT_CTRL_STR                       104\n# define KDF_F_PKEY_SCRYPT_CTRL_UINT64                    105\n# define KDF_F_PKEY_SCRYPT_DERIVE                         109\n# define KDF_F_PKEY_SCRYPT_INIT                           106\n# define KDF_F_PKEY_SCRYPT_SET_MEMBUF                     107\n# define KDF_F_PKEY_TLS1_PRF_CTRL_STR                     100\n# define KDF_F_PKEY_TLS1_PRF_DERIVE                       101\n# define KDF_F_PKEY_TLS1_PRF_INIT                         110\n# define KDF_F_TLS1_PRF_ALG                               111\n\n/*\n * KDF reason codes.\n */\n# define KDF_R_INVALID_DIGEST                             100\n# define KDF_R_MISSING_ITERATION_COUNT                    109\n# define KDF_R_MISSING_KEY                                104\n# define KDF_R_MISSING_MESSAGE_DIGEST                     105\n# define KDF_R_MISSING_PARAMETER                          101\n# define KDF_R_MISSING_PASS                               110\n# define KDF_R_MISSING_SALT                               111\n# define KDF_R_MISSING_SECRET                             107\n# define KDF_R_MISSING_SEED                               106\n# define KDF_R_UNKNOWN_PARAMETER_TYPE                     103\n# define KDF_R_VALUE_ERROR                                108\n# define KDF_R_VALUE_MISSING                              102\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/lhash.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * Header for dynamic hash table routines Author - Eric Young\n */\n\n#ifndef HEADER_LHASH_H\n# define HEADER_LHASH_H\n\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct lhash_node_st OPENSSL_LH_NODE;\ntypedef int (*OPENSSL_LH_COMPFUNC) (const void *, const void *);\ntypedef unsigned long (*OPENSSL_LH_HASHFUNC) (const void *);\ntypedef void (*OPENSSL_LH_DOALL_FUNC) (void *);\ntypedef void (*OPENSSL_LH_DOALL_FUNCARG) (void *, void *);\ntypedef struct lhash_st OPENSSL_LHASH;\n\n/*\n * Macros for declaring and implementing type-safe wrappers for LHASH\n * callbacks. This way, callbacks can be provided to LHASH structures without\n * function pointer casting and the macro-defined callbacks provide\n * per-variable casting before deferring to the underlying type-specific\n * callbacks. NB: It is possible to place a \"static\" in front of both the\n * DECLARE and IMPLEMENT macros if the functions are strictly internal.\n */\n\n/* First: \"hash\" functions */\n# define DECLARE_LHASH_HASH_FN(name, o_type) \\\n        unsigned long name##_LHASH_HASH(const void *);\n# define IMPLEMENT_LHASH_HASH_FN(name, o_type) \\\n        unsigned long name##_LHASH_HASH(const void *arg) { \\\n                const o_type *a = arg; \\\n                return name##_hash(a); }\n# define LHASH_HASH_FN(name) name##_LHASH_HASH\n\n/* Second: \"compare\" functions */\n# define DECLARE_LHASH_COMP_FN(name, o_type) \\\n        int name##_LHASH_COMP(const void *, const void *);\n# define IMPLEMENT_LHASH_COMP_FN(name, o_type) \\\n        int name##_LHASH_COMP(const void *arg1, const void *arg2) { \\\n                const o_type *a = arg1;             \\\n                const o_type *b = arg2; \\\n                return name##_cmp(a,b); }\n# define LHASH_COMP_FN(name) name##_LHASH_COMP\n\n/* Fourth: \"doall_arg\" functions */\n# define DECLARE_LHASH_DOALL_ARG_FN(name, o_type, a_type) \\\n        void name##_LHASH_DOALL_ARG(void *, void *);\n# define IMPLEMENT_LHASH_DOALL_ARG_FN(name, o_type, a_type) \\\n        void name##_LHASH_DOALL_ARG(void *arg1, void *arg2) { \\\n                o_type *a = arg1; \\\n                a_type *b = arg2; \\\n                name##_doall_arg(a, b); }\n# define LHASH_DOALL_ARG_FN(name) name##_LHASH_DOALL_ARG\n\n\n# define LH_LOAD_MULT    256\n\nint OPENSSL_LH_error(OPENSSL_LHASH *lh);\nOPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c);\nvoid OPENSSL_LH_free(OPENSSL_LHASH *lh);\nvoid *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data);\nvoid *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data);\nvoid *OPENSSL_LH_retrieve(OPENSSL_LHASH *lh, const void *data);\nvoid OPENSSL_LH_doall(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNC func);\nvoid OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg);\nunsigned long OPENSSL_LH_strhash(const char *c);\nunsigned long OPENSSL_LH_num_items(const OPENSSL_LHASH *lh);\nunsigned long OPENSSL_LH_get_down_load(const OPENSSL_LHASH *lh);\nvoid OPENSSL_LH_set_down_load(OPENSSL_LHASH *lh, unsigned long down_load);\n\n# ifndef OPENSSL_NO_STDIO\nvoid OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp);\nvoid OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp);\nvoid OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp);\n# endif\nvoid OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\nvoid OPENSSL_LH_node_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\nvoid OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define _LHASH OPENSSL_LHASH\n#  define LHASH_NODE OPENSSL_LH_NODE\n#  define lh_error OPENSSL_LH_error\n#  define lh_new OPENSSL_LH_new\n#  define lh_free OPENSSL_LH_free\n#  define lh_insert OPENSSL_LH_insert\n#  define lh_delete OPENSSL_LH_delete\n#  define lh_retrieve OPENSSL_LH_retrieve\n#  define lh_doall OPENSSL_LH_doall\n#  define lh_doall_arg OPENSSL_LH_doall_arg\n#  define lh_strhash OPENSSL_LH_strhash\n#  define lh_num_items OPENSSL_LH_num_items\n#  ifndef OPENSSL_NO_STDIO\n#   define lh_stats OPENSSL_LH_stats\n#   define lh_node_stats OPENSSL_LH_node_stats\n#   define lh_node_usage_stats OPENSSL_LH_node_usage_stats\n#  endif\n#  define lh_stats_bio OPENSSL_LH_stats_bio\n#  define lh_node_stats_bio OPENSSL_LH_node_stats_bio\n#  define lh_node_usage_stats_bio OPENSSL_LH_node_usage_stats_bio\n# endif\n\n/* Type checking... */\n\n# define LHASH_OF(type) struct lhash_st_##type\n\n# define DEFINE_LHASH_OF(type) \\\n    LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \\\n    static ossl_unused ossl_inline LHASH_OF(type) *lh_##type##_new(unsigned long (*hfn)(const type *), \\\n                                                                   int (*cfn)(const type *, const type *)) \\\n    { \\\n        return (LHASH_OF(type) *) \\\n            OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_free(LHASH_OF(type) *lh) \\\n    { \\\n        OPENSSL_LH_free((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline int lh_##type##_error(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_error((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline unsigned long lh_##type##_num_items(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_node_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_node_usage_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline unsigned long lh_##type##_get_down_load(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_set_down_load(LHASH_OF(type) *lh, unsigned long dl) \\\n    { \\\n        OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_doall(LHASH_OF(type) *lh, \\\n                                                          void (*doall)(type *)) \\\n    { \\\n        OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); \\\n    } \\\n    LHASH_OF(type)\n\n#define IMPLEMENT_LHASH_DOALL_ARG_CONST(type, argtype) \\\n    int_implement_lhash_doall(type, argtype, const type)\n\n#define IMPLEMENT_LHASH_DOALL_ARG(type, argtype) \\\n    int_implement_lhash_doall(type, argtype, type)\n\n#define int_implement_lhash_doall(type, argtype, cbargtype) \\\n    static ossl_unused ossl_inline void \\\n        lh_##type##_doall_##argtype(LHASH_OF(type) *lh, \\\n                                   void (*fn)(cbargtype *, argtype *), \\\n                                   argtype *arg) \\\n    { \\\n        OPENSSL_LH_doall_arg((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNCARG)fn, (void *)arg); \\\n    } \\\n    LHASH_OF(type)\n\nDEFINE_LHASH_OF(OPENSSL_STRING);\n# ifdef _MSC_VER\n/*\n * push and pop this warning:\n *   warning C4090: 'function': different 'const' qualifiers\n */\n#  pragma warning (push)\n#  pragma warning (disable: 4090)\n# endif\n\nDEFINE_LHASH_OF(OPENSSL_CSTRING);\n\n# ifdef _MSC_VER\n#  pragma warning (pop)\n# endif\n\n/*\n * If called without higher optimization (min. -xO3) the Oracle Developer\n * Studio compiler generates code for the defined (static inline) functions\n * above.\n * This would later lead to the linker complaining about missing symbols when\n * this header file is included but the resulting object is not linked against\n * the Crypto library (openssl#6912).\n */\n# ifdef __SUNPRO_C\n#  pragma weak OPENSSL_LH_new\n#  pragma weak OPENSSL_LH_free\n#  pragma weak OPENSSL_LH_insert\n#  pragma weak OPENSSL_LH_delete\n#  pragma weak OPENSSL_LH_retrieve\n#  pragma weak OPENSSL_LH_error\n#  pragma weak OPENSSL_LH_num_items\n#  pragma weak OPENSSL_LH_node_stats_bio\n#  pragma weak OPENSSL_LH_node_usage_stats_bio\n#  pragma weak OPENSSL_LH_stats_bio\n#  pragma weak OPENSSL_LH_get_down_load\n#  pragma weak OPENSSL_LH_set_down_load\n#  pragma weak OPENSSL_LH_doall\n#  pragma weak OPENSSL_LH_doall_arg\n# endif /* __SUNPRO_C */\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/md2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD2_H\n# define HEADER_MD2_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD2\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned char MD2_INT;\n\n# define MD2_DIGEST_LENGTH       16\n# define MD2_BLOCK               16\n\ntypedef struct MD2state_st {\n    unsigned int num;\n    unsigned char data[MD2_BLOCK];\n    MD2_INT cksm[MD2_BLOCK];\n    MD2_INT state[MD2_BLOCK];\n} MD2_CTX;\n\nconst char *MD2_options(void);\nint MD2_Init(MD2_CTX *c);\nint MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len);\nint MD2_Final(unsigned char *md, MD2_CTX *c);\nunsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/md4.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD4_H\n# define HEADER_MD4_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD4\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! MD4_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define MD4_LONG unsigned int\n\n# define MD4_CBLOCK      64\n# define MD4_LBLOCK      (MD4_CBLOCK/4)\n# define MD4_DIGEST_LENGTH 16\n\ntypedef struct MD4state_st {\n    MD4_LONG A, B, C, D;\n    MD4_LONG Nl, Nh;\n    MD4_LONG data[MD4_LBLOCK];\n    unsigned int num;\n} MD4_CTX;\n\nint MD4_Init(MD4_CTX *c);\nint MD4_Update(MD4_CTX *c, const void *data, size_t len);\nint MD4_Final(unsigned char *md, MD4_CTX *c);\nunsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md);\nvoid MD4_Transform(MD4_CTX *c, const unsigned char *b);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/md5.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD5_H\n# define HEADER_MD5_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD5\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! MD5_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define MD5_LONG unsigned int\n\n# define MD5_CBLOCK      64\n# define MD5_LBLOCK      (MD5_CBLOCK/4)\n# define MD5_DIGEST_LENGTH 16\n\ntypedef struct MD5state_st {\n    MD5_LONG A, B, C, D;\n    MD5_LONG Nl, Nh;\n    MD5_LONG data[MD5_LBLOCK];\n    unsigned int num;\n} MD5_CTX;\n\nint MD5_Init(MD5_CTX *c);\nint MD5_Update(MD5_CTX *c, const void *data, size_t len);\nint MD5_Final(unsigned char *md, MD5_CTX *c);\nunsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);\nvoid MD5_Transform(MD5_CTX *c, const unsigned char *b);\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/mdc2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MDC2_H\n# define HEADER_MDC2_H\n\n# include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_MDC2\n# include <stdlib.h>\n# include <openssl/des.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define MDC2_BLOCK              8\n# define MDC2_DIGEST_LENGTH      16\n\ntypedef struct mdc2_ctx_st {\n    unsigned int num;\n    unsigned char data[MDC2_BLOCK];\n    DES_cblock h, hh;\n    int pad_type;               /* either 1 or 2, default 1 */\n} MDC2_CTX;\n\nint MDC2_Init(MDC2_CTX *c);\nint MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);\nint MDC2_Final(unsigned char *md, MDC2_CTX *c);\nunsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/modes.h",
    "content": "/*\n * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MODES_H\n# define HEADER_MODES_H\n\n# include <stddef.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\ntypedef void (*block128_f) (const unsigned char in[16],\n                            unsigned char out[16], const void *key);\n\ntypedef void (*cbc128_f) (const unsigned char *in, unsigned char *out,\n                          size_t len, const void *key,\n                          unsigned char ivec[16], int enc);\n\ntypedef void (*ctr128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          const unsigned char ivec[16]);\n\ntypedef void (*ccm128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          const unsigned char ivec[16],\n                          unsigned char cmac[16]);\n\nvoid CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], block128_f block);\nvoid CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], block128_f block);\n\nvoid CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16],\n                           unsigned char ecount_buf[16], unsigned int *num,\n                           block128_f block);\n\nvoid CRYPTO_ctr128_encrypt_ctr32(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16],\n                                 unsigned char ecount_buf[16],\n                                 unsigned int *num, ctr128_f ctr);\n\nvoid CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], int *num,\n                           block128_f block);\n\nvoid CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], int *num,\n                           int enc, block128_f block);\nvoid CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const void *key,\n                             unsigned char ivec[16], int *num,\n                             int enc, block128_f block);\nvoid CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t bits, const void *key,\n                             unsigned char ivec[16], int *num,\n                             int enc, block128_f block);\n\nsize_t CRYPTO_cts128_encrypt_block(const unsigned char *in,\n                                   unsigned char *out, size_t len,\n                                   const void *key, unsigned char ivec[16],\n                                   block128_f block);\nsize_t CRYPTO_cts128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t len, const void *key,\n                             unsigned char ivec[16], cbc128_f cbc);\nsize_t CRYPTO_cts128_decrypt_block(const unsigned char *in,\n                                   unsigned char *out, size_t len,\n                                   const void *key, unsigned char ivec[16],\n                                   block128_f block);\nsize_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out,\n                             size_t len, const void *key,\n                             unsigned char ivec[16], cbc128_f cbc);\n\nsize_t CRYPTO_nistcts128_encrypt_block(const unsigned char *in,\n                                       unsigned char *out, size_t len,\n                                       const void *key,\n                                       unsigned char ivec[16],\n                                       block128_f block);\nsize_t CRYPTO_nistcts128_encrypt(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16], cbc128_f cbc);\nsize_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in,\n                                       unsigned char *out, size_t len,\n                                       const void *key,\n                                       unsigned char ivec[16],\n                                       block128_f block);\nsize_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16], cbc128_f cbc);\n\ntypedef struct gcm128_context GCM128_CONTEXT;\n\nGCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block);\nvoid CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block);\nvoid CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv,\n                         size_t len);\nint CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad,\n                      size_t len);\nint CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx,\n                          const unsigned char *in, unsigned char *out,\n                          size_t len);\nint CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx,\n                          const unsigned char *in, unsigned char *out,\n                          size_t len);\nint CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx,\n                                const unsigned char *in, unsigned char *out,\n                                size_t len, ctr128_f stream);\nint CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx,\n                                const unsigned char *in, unsigned char *out,\n                                size_t len, ctr128_f stream);\nint CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx, const unsigned char *tag,\n                         size_t len);\nvoid CRYPTO_gcm128_tag(GCM128_CONTEXT *ctx, unsigned char *tag, size_t len);\nvoid CRYPTO_gcm128_release(GCM128_CONTEXT *ctx);\n\ntypedef struct ccm128_context CCM128_CONTEXT;\n\nvoid CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,\n                        unsigned int M, unsigned int L, void *key,\n                        block128_f block);\nint CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, const unsigned char *nonce,\n                        size_t nlen, size_t mlen);\nvoid CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad,\n                       size_t alen);\nint CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                          unsigned char *out, size_t len);\nint CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                          unsigned char *out, size_t len);\nint CRYPTO_ccm128_encrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                                unsigned char *out, size_t len,\n                                ccm128_f stream);\nint CRYPTO_ccm128_decrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                                unsigned char *out, size_t len,\n                                ccm128_f stream);\nsize_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len);\n\ntypedef struct xts128_context XTS128_CONTEXT;\n\nint CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx,\n                          const unsigned char iv[16],\n                          const unsigned char *inp, unsigned char *out,\n                          size_t len, int enc);\n\nsize_t CRYPTO_128_wrap(void *key, const unsigned char *iv,\n                       unsigned char *out,\n                       const unsigned char *in, size_t inlen,\n                       block128_f block);\n\nsize_t CRYPTO_128_unwrap(void *key, const unsigned char *iv,\n                         unsigned char *out,\n                         const unsigned char *in, size_t inlen,\n                         block128_f block);\nsize_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,\n                           unsigned char *out, const unsigned char *in,\n                           size_t inlen, block128_f block);\nsize_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,\n                             unsigned char *out, const unsigned char *in,\n                             size_t inlen, block128_f block);\n\n# ifndef OPENSSL_NO_OCB\ntypedef struct ocb128_context OCB128_CONTEXT;\n\ntypedef void (*ocb128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          size_t start_block_num,\n                          unsigned char offset_i[16],\n                          const unsigned char L_[][16],\n                          unsigned char checksum[16]);\n\nOCB128_CONTEXT *CRYPTO_ocb128_new(void *keyenc, void *keydec,\n                                  block128_f encrypt, block128_f decrypt,\n                                  ocb128_f stream);\nint CRYPTO_ocb128_init(OCB128_CONTEXT *ctx, void *keyenc, void *keydec,\n                       block128_f encrypt, block128_f decrypt,\n                       ocb128_f stream);\nint CRYPTO_ocb128_copy_ctx(OCB128_CONTEXT *dest, OCB128_CONTEXT *src,\n                           void *keyenc, void *keydec);\nint CRYPTO_ocb128_setiv(OCB128_CONTEXT *ctx, const unsigned char *iv,\n                        size_t len, size_t taglen);\nint CRYPTO_ocb128_aad(OCB128_CONTEXT *ctx, const unsigned char *aad,\n                      size_t len);\nint CRYPTO_ocb128_encrypt(OCB128_CONTEXT *ctx, const unsigned char *in,\n                          unsigned char *out, size_t len);\nint CRYPTO_ocb128_decrypt(OCB128_CONTEXT *ctx, const unsigned char *in,\n                          unsigned char *out, size_t len);\nint CRYPTO_ocb128_finish(OCB128_CONTEXT *ctx, const unsigned char *tag,\n                         size_t len);\nint CRYPTO_ocb128_tag(OCB128_CONTEXT *ctx, unsigned char *tag, size_t len);\nvoid CRYPTO_ocb128_cleanup(OCB128_CONTEXT *ctx);\n# endif                          /* OPENSSL_NO_OCB */\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/obj_mac.h",
    "content": "/*\n * WARNING: do not edit!\n * Generated by crypto/objects/objects.pl\n *\n * Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#define SN_undef                        \"UNDEF\"\n#define LN_undef                        \"undefined\"\n#define NID_undef                       0\n#define OBJ_undef                       0L\n\n#define SN_itu_t                \"ITU-T\"\n#define LN_itu_t                \"itu-t\"\n#define NID_itu_t               645\n#define OBJ_itu_t               0L\n\n#define NID_ccitt               404\n#define OBJ_ccitt               OBJ_itu_t\n\n#define SN_iso          \"ISO\"\n#define LN_iso          \"iso\"\n#define NID_iso         181\n#define OBJ_iso         1L\n\n#define SN_joint_iso_itu_t              \"JOINT-ISO-ITU-T\"\n#define LN_joint_iso_itu_t              \"joint-iso-itu-t\"\n#define NID_joint_iso_itu_t             646\n#define OBJ_joint_iso_itu_t             2L\n\n#define NID_joint_iso_ccitt             393\n#define OBJ_joint_iso_ccitt             OBJ_joint_iso_itu_t\n\n#define SN_member_body          \"member-body\"\n#define LN_member_body          \"ISO Member Body\"\n#define NID_member_body         182\n#define OBJ_member_body         OBJ_iso,2L\n\n#define SN_identified_organization              \"identified-organization\"\n#define NID_identified_organization             676\n#define OBJ_identified_organization             OBJ_iso,3L\n\n#define SN_hmac_md5             \"HMAC-MD5\"\n#define LN_hmac_md5             \"hmac-md5\"\n#define NID_hmac_md5            780\n#define OBJ_hmac_md5            OBJ_identified_organization,6L,1L,5L,5L,8L,1L,1L\n\n#define SN_hmac_sha1            \"HMAC-SHA1\"\n#define LN_hmac_sha1            \"hmac-sha1\"\n#define NID_hmac_sha1           781\n#define OBJ_hmac_sha1           OBJ_identified_organization,6L,1L,5L,5L,8L,1L,2L\n\n#define SN_x509ExtAdmission             \"x509ExtAdmission\"\n#define LN_x509ExtAdmission             \"Professional Information or basis for Admission\"\n#define NID_x509ExtAdmission            1093\n#define OBJ_x509ExtAdmission            OBJ_identified_organization,36L,8L,3L,3L\n\n#define SN_certicom_arc         \"certicom-arc\"\n#define NID_certicom_arc                677\n#define OBJ_certicom_arc                OBJ_identified_organization,132L\n\n#define SN_ieee         \"ieee\"\n#define NID_ieee                1170\n#define OBJ_ieee                OBJ_identified_organization,111L\n\n#define SN_ieee_siswg           \"ieee-siswg\"\n#define LN_ieee_siswg           \"IEEE Security in Storage Working Group\"\n#define NID_ieee_siswg          1171\n#define OBJ_ieee_siswg          OBJ_ieee,2L,1619L\n\n#define SN_international_organizations          \"international-organizations\"\n#define LN_international_organizations          \"International Organizations\"\n#define NID_international_organizations         647\n#define OBJ_international_organizations         OBJ_joint_iso_itu_t,23L\n\n#define SN_wap          \"wap\"\n#define NID_wap         678\n#define OBJ_wap         OBJ_international_organizations,43L\n\n#define SN_wap_wsg              \"wap-wsg\"\n#define NID_wap_wsg             679\n#define OBJ_wap_wsg             OBJ_wap,1L\n\n#define SN_selected_attribute_types             \"selected-attribute-types\"\n#define LN_selected_attribute_types             \"Selected Attribute Types\"\n#define NID_selected_attribute_types            394\n#define OBJ_selected_attribute_types            OBJ_joint_iso_itu_t,5L,1L,5L\n\n#define SN_clearance            \"clearance\"\n#define NID_clearance           395\n#define OBJ_clearance           OBJ_selected_attribute_types,55L\n\n#define SN_ISO_US               \"ISO-US\"\n#define LN_ISO_US               \"ISO US Member Body\"\n#define NID_ISO_US              183\n#define OBJ_ISO_US              OBJ_member_body,840L\n\n#define SN_X9_57                \"X9-57\"\n#define LN_X9_57                \"X9.57\"\n#define NID_X9_57               184\n#define OBJ_X9_57               OBJ_ISO_US,10040L\n\n#define SN_X9cm         \"X9cm\"\n#define LN_X9cm         \"X9.57 CM ?\"\n#define NID_X9cm                185\n#define OBJ_X9cm                OBJ_X9_57,4L\n\n#define SN_ISO_CN               \"ISO-CN\"\n#define LN_ISO_CN               \"ISO CN Member Body\"\n#define NID_ISO_CN              1140\n#define OBJ_ISO_CN              OBJ_member_body,156L\n\n#define SN_oscca                \"oscca\"\n#define NID_oscca               1141\n#define OBJ_oscca               OBJ_ISO_CN,10197L\n\n#define SN_sm_scheme            \"sm-scheme\"\n#define NID_sm_scheme           1142\n#define OBJ_sm_scheme           OBJ_oscca,1L\n\n#define SN_dsa          \"DSA\"\n#define LN_dsa          \"dsaEncryption\"\n#define NID_dsa         116\n#define OBJ_dsa         OBJ_X9cm,1L\n\n#define SN_dsaWithSHA1          \"DSA-SHA1\"\n#define LN_dsaWithSHA1          \"dsaWithSHA1\"\n#define NID_dsaWithSHA1         113\n#define OBJ_dsaWithSHA1         OBJ_X9cm,3L\n\n#define SN_ansi_X9_62           \"ansi-X9-62\"\n#define LN_ansi_X9_62           \"ANSI X9.62\"\n#define NID_ansi_X9_62          405\n#define OBJ_ansi_X9_62          OBJ_ISO_US,10045L\n\n#define OBJ_X9_62_id_fieldType          OBJ_ansi_X9_62,1L\n\n#define SN_X9_62_prime_field            \"prime-field\"\n#define NID_X9_62_prime_field           406\n#define OBJ_X9_62_prime_field           OBJ_X9_62_id_fieldType,1L\n\n#define SN_X9_62_characteristic_two_field               \"characteristic-two-field\"\n#define NID_X9_62_characteristic_two_field              407\n#define OBJ_X9_62_characteristic_two_field              OBJ_X9_62_id_fieldType,2L\n\n#define SN_X9_62_id_characteristic_two_basis            \"id-characteristic-two-basis\"\n#define NID_X9_62_id_characteristic_two_basis           680\n#define OBJ_X9_62_id_characteristic_two_basis           OBJ_X9_62_characteristic_two_field,3L\n\n#define SN_X9_62_onBasis                \"onBasis\"\n#define NID_X9_62_onBasis               681\n#define OBJ_X9_62_onBasis               OBJ_X9_62_id_characteristic_two_basis,1L\n\n#define SN_X9_62_tpBasis                \"tpBasis\"\n#define NID_X9_62_tpBasis               682\n#define OBJ_X9_62_tpBasis               OBJ_X9_62_id_characteristic_two_basis,2L\n\n#define SN_X9_62_ppBasis                \"ppBasis\"\n#define NID_X9_62_ppBasis               683\n#define OBJ_X9_62_ppBasis               OBJ_X9_62_id_characteristic_two_basis,3L\n\n#define OBJ_X9_62_id_publicKeyType              OBJ_ansi_X9_62,2L\n\n#define SN_X9_62_id_ecPublicKey         \"id-ecPublicKey\"\n#define NID_X9_62_id_ecPublicKey                408\n#define OBJ_X9_62_id_ecPublicKey                OBJ_X9_62_id_publicKeyType,1L\n\n#define OBJ_X9_62_ellipticCurve         OBJ_ansi_X9_62,3L\n\n#define OBJ_X9_62_c_TwoCurve            OBJ_X9_62_ellipticCurve,0L\n\n#define SN_X9_62_c2pnb163v1             \"c2pnb163v1\"\n#define NID_X9_62_c2pnb163v1            684\n#define OBJ_X9_62_c2pnb163v1            OBJ_X9_62_c_TwoCurve,1L\n\n#define SN_X9_62_c2pnb163v2             \"c2pnb163v2\"\n#define NID_X9_62_c2pnb163v2            685\n#define OBJ_X9_62_c2pnb163v2            OBJ_X9_62_c_TwoCurve,2L\n\n#define SN_X9_62_c2pnb163v3             \"c2pnb163v3\"\n#define NID_X9_62_c2pnb163v3            686\n#define OBJ_X9_62_c2pnb163v3            OBJ_X9_62_c_TwoCurve,3L\n\n#define SN_X9_62_c2pnb176v1             \"c2pnb176v1\"\n#define NID_X9_62_c2pnb176v1            687\n#define OBJ_X9_62_c2pnb176v1            OBJ_X9_62_c_TwoCurve,4L\n\n#define SN_X9_62_c2tnb191v1             \"c2tnb191v1\"\n#define NID_X9_62_c2tnb191v1            688\n#define OBJ_X9_62_c2tnb191v1            OBJ_X9_62_c_TwoCurve,5L\n\n#define SN_X9_62_c2tnb191v2             \"c2tnb191v2\"\n#define NID_X9_62_c2tnb191v2            689\n#define OBJ_X9_62_c2tnb191v2            OBJ_X9_62_c_TwoCurve,6L\n\n#define SN_X9_62_c2tnb191v3             \"c2tnb191v3\"\n#define NID_X9_62_c2tnb191v3            690\n#define OBJ_X9_62_c2tnb191v3            OBJ_X9_62_c_TwoCurve,7L\n\n#define SN_X9_62_c2onb191v4             \"c2onb191v4\"\n#define NID_X9_62_c2onb191v4            691\n#define OBJ_X9_62_c2onb191v4            OBJ_X9_62_c_TwoCurve,8L\n\n#define SN_X9_62_c2onb191v5             \"c2onb191v5\"\n#define NID_X9_62_c2onb191v5            692\n#define OBJ_X9_62_c2onb191v5            OBJ_X9_62_c_TwoCurve,9L\n\n#define SN_X9_62_c2pnb208w1             \"c2pnb208w1\"\n#define NID_X9_62_c2pnb208w1            693\n#define OBJ_X9_62_c2pnb208w1            OBJ_X9_62_c_TwoCurve,10L\n\n#define SN_X9_62_c2tnb239v1             \"c2tnb239v1\"\n#define NID_X9_62_c2tnb239v1            694\n#define OBJ_X9_62_c2tnb239v1            OBJ_X9_62_c_TwoCurve,11L\n\n#define SN_X9_62_c2tnb239v2             \"c2tnb239v2\"\n#define NID_X9_62_c2tnb239v2            695\n#define OBJ_X9_62_c2tnb239v2            OBJ_X9_62_c_TwoCurve,12L\n\n#define SN_X9_62_c2tnb239v3             \"c2tnb239v3\"\n#define NID_X9_62_c2tnb239v3            696\n#define OBJ_X9_62_c2tnb239v3            OBJ_X9_62_c_TwoCurve,13L\n\n#define SN_X9_62_c2onb239v4             \"c2onb239v4\"\n#define NID_X9_62_c2onb239v4            697\n#define OBJ_X9_62_c2onb239v4            OBJ_X9_62_c_TwoCurve,14L\n\n#define SN_X9_62_c2onb239v5             \"c2onb239v5\"\n#define NID_X9_62_c2onb239v5            698\n#define OBJ_X9_62_c2onb239v5            OBJ_X9_62_c_TwoCurve,15L\n\n#define SN_X9_62_c2pnb272w1             \"c2pnb272w1\"\n#define NID_X9_62_c2pnb272w1            699\n#define OBJ_X9_62_c2pnb272w1            OBJ_X9_62_c_TwoCurve,16L\n\n#define SN_X9_62_c2pnb304w1             \"c2pnb304w1\"\n#define NID_X9_62_c2pnb304w1            700\n#define OBJ_X9_62_c2pnb304w1            OBJ_X9_62_c_TwoCurve,17L\n\n#define SN_X9_62_c2tnb359v1             \"c2tnb359v1\"\n#define NID_X9_62_c2tnb359v1            701\n#define OBJ_X9_62_c2tnb359v1            OBJ_X9_62_c_TwoCurve,18L\n\n#define SN_X9_62_c2pnb368w1             \"c2pnb368w1\"\n#define NID_X9_62_c2pnb368w1            702\n#define OBJ_X9_62_c2pnb368w1            OBJ_X9_62_c_TwoCurve,19L\n\n#define SN_X9_62_c2tnb431r1             \"c2tnb431r1\"\n#define NID_X9_62_c2tnb431r1            703\n#define OBJ_X9_62_c2tnb431r1            OBJ_X9_62_c_TwoCurve,20L\n\n#define OBJ_X9_62_primeCurve            OBJ_X9_62_ellipticCurve,1L\n\n#define SN_X9_62_prime192v1             \"prime192v1\"\n#define NID_X9_62_prime192v1            409\n#define OBJ_X9_62_prime192v1            OBJ_X9_62_primeCurve,1L\n\n#define SN_X9_62_prime192v2             \"prime192v2\"\n#define NID_X9_62_prime192v2            410\n#define OBJ_X9_62_prime192v2            OBJ_X9_62_primeCurve,2L\n\n#define SN_X9_62_prime192v3             \"prime192v3\"\n#define NID_X9_62_prime192v3            411\n#define OBJ_X9_62_prime192v3            OBJ_X9_62_primeCurve,3L\n\n#define SN_X9_62_prime239v1             \"prime239v1\"\n#define NID_X9_62_prime239v1            412\n#define OBJ_X9_62_prime239v1            OBJ_X9_62_primeCurve,4L\n\n#define SN_X9_62_prime239v2             \"prime239v2\"\n#define NID_X9_62_prime239v2            413\n#define OBJ_X9_62_prime239v2            OBJ_X9_62_primeCurve,5L\n\n#define SN_X9_62_prime239v3             \"prime239v3\"\n#define NID_X9_62_prime239v3            414\n#define OBJ_X9_62_prime239v3            OBJ_X9_62_primeCurve,6L\n\n#define SN_X9_62_prime256v1             \"prime256v1\"\n#define NID_X9_62_prime256v1            415\n#define OBJ_X9_62_prime256v1            OBJ_X9_62_primeCurve,7L\n\n#define OBJ_X9_62_id_ecSigType          OBJ_ansi_X9_62,4L\n\n#define SN_ecdsa_with_SHA1              \"ecdsa-with-SHA1\"\n#define NID_ecdsa_with_SHA1             416\n#define OBJ_ecdsa_with_SHA1             OBJ_X9_62_id_ecSigType,1L\n\n#define SN_ecdsa_with_Recommended               \"ecdsa-with-Recommended\"\n#define NID_ecdsa_with_Recommended              791\n#define OBJ_ecdsa_with_Recommended              OBJ_X9_62_id_ecSigType,2L\n\n#define SN_ecdsa_with_Specified         \"ecdsa-with-Specified\"\n#define NID_ecdsa_with_Specified                792\n#define OBJ_ecdsa_with_Specified                OBJ_X9_62_id_ecSigType,3L\n\n#define SN_ecdsa_with_SHA224            \"ecdsa-with-SHA224\"\n#define NID_ecdsa_with_SHA224           793\n#define OBJ_ecdsa_with_SHA224           OBJ_ecdsa_with_Specified,1L\n\n#define SN_ecdsa_with_SHA256            \"ecdsa-with-SHA256\"\n#define NID_ecdsa_with_SHA256           794\n#define OBJ_ecdsa_with_SHA256           OBJ_ecdsa_with_Specified,2L\n\n#define SN_ecdsa_with_SHA384            \"ecdsa-with-SHA384\"\n#define NID_ecdsa_with_SHA384           795\n#define OBJ_ecdsa_with_SHA384           OBJ_ecdsa_with_Specified,3L\n\n#define SN_ecdsa_with_SHA512            \"ecdsa-with-SHA512\"\n#define NID_ecdsa_with_SHA512           796\n#define OBJ_ecdsa_with_SHA512           OBJ_ecdsa_with_Specified,4L\n\n#define OBJ_secg_ellipticCurve          OBJ_certicom_arc,0L\n\n#define SN_secp112r1            \"secp112r1\"\n#define NID_secp112r1           704\n#define OBJ_secp112r1           OBJ_secg_ellipticCurve,6L\n\n#define SN_secp112r2            \"secp112r2\"\n#define NID_secp112r2           705\n#define OBJ_secp112r2           OBJ_secg_ellipticCurve,7L\n\n#define SN_secp128r1            \"secp128r1\"\n#define NID_secp128r1           706\n#define OBJ_secp128r1           OBJ_secg_ellipticCurve,28L\n\n#define SN_secp128r2            \"secp128r2\"\n#define NID_secp128r2           707\n#define OBJ_secp128r2           OBJ_secg_ellipticCurve,29L\n\n#define SN_secp160k1            \"secp160k1\"\n#define NID_secp160k1           708\n#define OBJ_secp160k1           OBJ_secg_ellipticCurve,9L\n\n#define SN_secp160r1            \"secp160r1\"\n#define NID_secp160r1           709\n#define OBJ_secp160r1           OBJ_secg_ellipticCurve,8L\n\n#define SN_secp160r2            \"secp160r2\"\n#define NID_secp160r2           710\n#define OBJ_secp160r2           OBJ_secg_ellipticCurve,30L\n\n#define SN_secp192k1            \"secp192k1\"\n#define NID_secp192k1           711\n#define OBJ_secp192k1           OBJ_secg_ellipticCurve,31L\n\n#define SN_secp224k1            \"secp224k1\"\n#define NID_secp224k1           712\n#define OBJ_secp224k1           OBJ_secg_ellipticCurve,32L\n\n#define SN_secp224r1            \"secp224r1\"\n#define NID_secp224r1           713\n#define OBJ_secp224r1           OBJ_secg_ellipticCurve,33L\n\n#define SN_secp256k1            \"secp256k1\"\n#define NID_secp256k1           714\n#define OBJ_secp256k1           OBJ_secg_ellipticCurve,10L\n\n#define SN_secp384r1            \"secp384r1\"\n#define NID_secp384r1           715\n#define OBJ_secp384r1           OBJ_secg_ellipticCurve,34L\n\n#define SN_secp521r1            \"secp521r1\"\n#define NID_secp521r1           716\n#define OBJ_secp521r1           OBJ_secg_ellipticCurve,35L\n\n#define SN_sect113r1            \"sect113r1\"\n#define NID_sect113r1           717\n#define OBJ_sect113r1           OBJ_secg_ellipticCurve,4L\n\n#define SN_sect113r2            \"sect113r2\"\n#define NID_sect113r2           718\n#define OBJ_sect113r2           OBJ_secg_ellipticCurve,5L\n\n#define SN_sect131r1            \"sect131r1\"\n#define NID_sect131r1           719\n#define OBJ_sect131r1           OBJ_secg_ellipticCurve,22L\n\n#define SN_sect131r2            \"sect131r2\"\n#define NID_sect131r2           720\n#define OBJ_sect131r2           OBJ_secg_ellipticCurve,23L\n\n#define SN_sect163k1            \"sect163k1\"\n#define NID_sect163k1           721\n#define OBJ_sect163k1           OBJ_secg_ellipticCurve,1L\n\n#define SN_sect163r1            \"sect163r1\"\n#define NID_sect163r1           722\n#define OBJ_sect163r1           OBJ_secg_ellipticCurve,2L\n\n#define SN_sect163r2            \"sect163r2\"\n#define NID_sect163r2           723\n#define OBJ_sect163r2           OBJ_secg_ellipticCurve,15L\n\n#define SN_sect193r1            \"sect193r1\"\n#define NID_sect193r1           724\n#define OBJ_sect193r1           OBJ_secg_ellipticCurve,24L\n\n#define SN_sect193r2            \"sect193r2\"\n#define NID_sect193r2           725\n#define OBJ_sect193r2           OBJ_secg_ellipticCurve,25L\n\n#define SN_sect233k1            \"sect233k1\"\n#define NID_sect233k1           726\n#define OBJ_sect233k1           OBJ_secg_ellipticCurve,26L\n\n#define SN_sect233r1            \"sect233r1\"\n#define NID_sect233r1           727\n#define OBJ_sect233r1           OBJ_secg_ellipticCurve,27L\n\n#define SN_sect239k1            \"sect239k1\"\n#define NID_sect239k1           728\n#define OBJ_sect239k1           OBJ_secg_ellipticCurve,3L\n\n#define SN_sect283k1            \"sect283k1\"\n#define NID_sect283k1           729\n#define OBJ_sect283k1           OBJ_secg_ellipticCurve,16L\n\n#define SN_sect283r1            \"sect283r1\"\n#define NID_sect283r1           730\n#define OBJ_sect283r1           OBJ_secg_ellipticCurve,17L\n\n#define SN_sect409k1            \"sect409k1\"\n#define NID_sect409k1           731\n#define OBJ_sect409k1           OBJ_secg_ellipticCurve,36L\n\n#define SN_sect409r1            \"sect409r1\"\n#define NID_sect409r1           732\n#define OBJ_sect409r1           OBJ_secg_ellipticCurve,37L\n\n#define SN_sect571k1            \"sect571k1\"\n#define NID_sect571k1           733\n#define OBJ_sect571k1           OBJ_secg_ellipticCurve,38L\n\n#define SN_sect571r1            \"sect571r1\"\n#define NID_sect571r1           734\n#define OBJ_sect571r1           OBJ_secg_ellipticCurve,39L\n\n#define OBJ_wap_wsg_idm_ecid            OBJ_wap_wsg,4L\n\n#define SN_wap_wsg_idm_ecid_wtls1               \"wap-wsg-idm-ecid-wtls1\"\n#define NID_wap_wsg_idm_ecid_wtls1              735\n#define OBJ_wap_wsg_idm_ecid_wtls1              OBJ_wap_wsg_idm_ecid,1L\n\n#define SN_wap_wsg_idm_ecid_wtls3               \"wap-wsg-idm-ecid-wtls3\"\n#define NID_wap_wsg_idm_ecid_wtls3              736\n#define OBJ_wap_wsg_idm_ecid_wtls3              OBJ_wap_wsg_idm_ecid,3L\n\n#define SN_wap_wsg_idm_ecid_wtls4               \"wap-wsg-idm-ecid-wtls4\"\n#define NID_wap_wsg_idm_ecid_wtls4              737\n#define OBJ_wap_wsg_idm_ecid_wtls4              OBJ_wap_wsg_idm_ecid,4L\n\n#define SN_wap_wsg_idm_ecid_wtls5               \"wap-wsg-idm-ecid-wtls5\"\n#define NID_wap_wsg_idm_ecid_wtls5              738\n#define OBJ_wap_wsg_idm_ecid_wtls5              OBJ_wap_wsg_idm_ecid,5L\n\n#define SN_wap_wsg_idm_ecid_wtls6               \"wap-wsg-idm-ecid-wtls6\"\n#define NID_wap_wsg_idm_ecid_wtls6              739\n#define OBJ_wap_wsg_idm_ecid_wtls6              OBJ_wap_wsg_idm_ecid,6L\n\n#define SN_wap_wsg_idm_ecid_wtls7               \"wap-wsg-idm-ecid-wtls7\"\n#define NID_wap_wsg_idm_ecid_wtls7              740\n#define OBJ_wap_wsg_idm_ecid_wtls7              OBJ_wap_wsg_idm_ecid,7L\n\n#define SN_wap_wsg_idm_ecid_wtls8               \"wap-wsg-idm-ecid-wtls8\"\n#define NID_wap_wsg_idm_ecid_wtls8              741\n#define OBJ_wap_wsg_idm_ecid_wtls8              OBJ_wap_wsg_idm_ecid,8L\n\n#define SN_wap_wsg_idm_ecid_wtls9               \"wap-wsg-idm-ecid-wtls9\"\n#define NID_wap_wsg_idm_ecid_wtls9              742\n#define OBJ_wap_wsg_idm_ecid_wtls9              OBJ_wap_wsg_idm_ecid,9L\n\n#define SN_wap_wsg_idm_ecid_wtls10              \"wap-wsg-idm-ecid-wtls10\"\n#define NID_wap_wsg_idm_ecid_wtls10             743\n#define OBJ_wap_wsg_idm_ecid_wtls10             OBJ_wap_wsg_idm_ecid,10L\n\n#define SN_wap_wsg_idm_ecid_wtls11              \"wap-wsg-idm-ecid-wtls11\"\n#define NID_wap_wsg_idm_ecid_wtls11             744\n#define OBJ_wap_wsg_idm_ecid_wtls11             OBJ_wap_wsg_idm_ecid,11L\n\n#define SN_wap_wsg_idm_ecid_wtls12              \"wap-wsg-idm-ecid-wtls12\"\n#define NID_wap_wsg_idm_ecid_wtls12             745\n#define OBJ_wap_wsg_idm_ecid_wtls12             OBJ_wap_wsg_idm_ecid,12L\n\n#define SN_cast5_cbc            \"CAST5-CBC\"\n#define LN_cast5_cbc            \"cast5-cbc\"\n#define NID_cast5_cbc           108\n#define OBJ_cast5_cbc           OBJ_ISO_US,113533L,7L,66L,10L\n\n#define SN_cast5_ecb            \"CAST5-ECB\"\n#define LN_cast5_ecb            \"cast5-ecb\"\n#define NID_cast5_ecb           109\n\n#define SN_cast5_cfb64          \"CAST5-CFB\"\n#define LN_cast5_cfb64          \"cast5-cfb\"\n#define NID_cast5_cfb64         110\n\n#define SN_cast5_ofb64          \"CAST5-OFB\"\n#define LN_cast5_ofb64          \"cast5-ofb\"\n#define NID_cast5_ofb64         111\n\n#define LN_pbeWithMD5AndCast5_CBC               \"pbeWithMD5AndCast5CBC\"\n#define NID_pbeWithMD5AndCast5_CBC              112\n#define OBJ_pbeWithMD5AndCast5_CBC              OBJ_ISO_US,113533L,7L,66L,12L\n\n#define SN_id_PasswordBasedMAC          \"id-PasswordBasedMAC\"\n#define LN_id_PasswordBasedMAC          \"password based MAC\"\n#define NID_id_PasswordBasedMAC         782\n#define OBJ_id_PasswordBasedMAC         OBJ_ISO_US,113533L,7L,66L,13L\n\n#define SN_id_DHBasedMac                \"id-DHBasedMac\"\n#define LN_id_DHBasedMac                \"Diffie-Hellman based MAC\"\n#define NID_id_DHBasedMac               783\n#define OBJ_id_DHBasedMac               OBJ_ISO_US,113533L,7L,66L,30L\n\n#define SN_rsadsi               \"rsadsi\"\n#define LN_rsadsi               \"RSA Data Security, Inc.\"\n#define NID_rsadsi              1\n#define OBJ_rsadsi              OBJ_ISO_US,113549L\n\n#define SN_pkcs         \"pkcs\"\n#define LN_pkcs         \"RSA Data Security, Inc. PKCS\"\n#define NID_pkcs                2\n#define OBJ_pkcs                OBJ_rsadsi,1L\n\n#define SN_pkcs1                \"pkcs1\"\n#define NID_pkcs1               186\n#define OBJ_pkcs1               OBJ_pkcs,1L\n\n#define LN_rsaEncryption                \"rsaEncryption\"\n#define NID_rsaEncryption               6\n#define OBJ_rsaEncryption               OBJ_pkcs1,1L\n\n#define SN_md2WithRSAEncryption         \"RSA-MD2\"\n#define LN_md2WithRSAEncryption         \"md2WithRSAEncryption\"\n#define NID_md2WithRSAEncryption                7\n#define OBJ_md2WithRSAEncryption                OBJ_pkcs1,2L\n\n#define SN_md4WithRSAEncryption         \"RSA-MD4\"\n#define LN_md4WithRSAEncryption         \"md4WithRSAEncryption\"\n#define NID_md4WithRSAEncryption                396\n#define OBJ_md4WithRSAEncryption                OBJ_pkcs1,3L\n\n#define SN_md5WithRSAEncryption         \"RSA-MD5\"\n#define LN_md5WithRSAEncryption         \"md5WithRSAEncryption\"\n#define NID_md5WithRSAEncryption                8\n#define OBJ_md5WithRSAEncryption                OBJ_pkcs1,4L\n\n#define SN_sha1WithRSAEncryption                \"RSA-SHA1\"\n#define LN_sha1WithRSAEncryption                \"sha1WithRSAEncryption\"\n#define NID_sha1WithRSAEncryption               65\n#define OBJ_sha1WithRSAEncryption               OBJ_pkcs1,5L\n\n#define SN_rsaesOaep            \"RSAES-OAEP\"\n#define LN_rsaesOaep            \"rsaesOaep\"\n#define NID_rsaesOaep           919\n#define OBJ_rsaesOaep           OBJ_pkcs1,7L\n\n#define SN_mgf1         \"MGF1\"\n#define LN_mgf1         \"mgf1\"\n#define NID_mgf1                911\n#define OBJ_mgf1                OBJ_pkcs1,8L\n\n#define SN_pSpecified           \"PSPECIFIED\"\n#define LN_pSpecified           \"pSpecified\"\n#define NID_pSpecified          935\n#define OBJ_pSpecified          OBJ_pkcs1,9L\n\n#define SN_rsassaPss            \"RSASSA-PSS\"\n#define LN_rsassaPss            \"rsassaPss\"\n#define NID_rsassaPss           912\n#define OBJ_rsassaPss           OBJ_pkcs1,10L\n\n#define SN_sha256WithRSAEncryption              \"RSA-SHA256\"\n#define LN_sha256WithRSAEncryption              \"sha256WithRSAEncryption\"\n#define NID_sha256WithRSAEncryption             668\n#define OBJ_sha256WithRSAEncryption             OBJ_pkcs1,11L\n\n#define SN_sha384WithRSAEncryption              \"RSA-SHA384\"\n#define LN_sha384WithRSAEncryption              \"sha384WithRSAEncryption\"\n#define NID_sha384WithRSAEncryption             669\n#define OBJ_sha384WithRSAEncryption             OBJ_pkcs1,12L\n\n#define SN_sha512WithRSAEncryption              \"RSA-SHA512\"\n#define LN_sha512WithRSAEncryption              \"sha512WithRSAEncryption\"\n#define NID_sha512WithRSAEncryption             670\n#define OBJ_sha512WithRSAEncryption             OBJ_pkcs1,13L\n\n#define SN_sha224WithRSAEncryption              \"RSA-SHA224\"\n#define LN_sha224WithRSAEncryption              \"sha224WithRSAEncryption\"\n#define NID_sha224WithRSAEncryption             671\n#define OBJ_sha224WithRSAEncryption             OBJ_pkcs1,14L\n\n#define SN_sha512_224WithRSAEncryption          \"RSA-SHA512/224\"\n#define LN_sha512_224WithRSAEncryption          \"sha512-224WithRSAEncryption\"\n#define NID_sha512_224WithRSAEncryption         1145\n#define OBJ_sha512_224WithRSAEncryption         OBJ_pkcs1,15L\n\n#define SN_sha512_256WithRSAEncryption          \"RSA-SHA512/256\"\n#define LN_sha512_256WithRSAEncryption          \"sha512-256WithRSAEncryption\"\n#define NID_sha512_256WithRSAEncryption         1146\n#define OBJ_sha512_256WithRSAEncryption         OBJ_pkcs1,16L\n\n#define SN_pkcs3                \"pkcs3\"\n#define NID_pkcs3               27\n#define OBJ_pkcs3               OBJ_pkcs,3L\n\n#define LN_dhKeyAgreement               \"dhKeyAgreement\"\n#define NID_dhKeyAgreement              28\n#define OBJ_dhKeyAgreement              OBJ_pkcs3,1L\n\n#define SN_pkcs5                \"pkcs5\"\n#define NID_pkcs5               187\n#define OBJ_pkcs5               OBJ_pkcs,5L\n\n#define SN_pbeWithMD2AndDES_CBC         \"PBE-MD2-DES\"\n#define LN_pbeWithMD2AndDES_CBC         \"pbeWithMD2AndDES-CBC\"\n#define NID_pbeWithMD2AndDES_CBC                9\n#define OBJ_pbeWithMD2AndDES_CBC                OBJ_pkcs5,1L\n\n#define SN_pbeWithMD5AndDES_CBC         \"PBE-MD5-DES\"\n#define LN_pbeWithMD5AndDES_CBC         \"pbeWithMD5AndDES-CBC\"\n#define NID_pbeWithMD5AndDES_CBC                10\n#define OBJ_pbeWithMD5AndDES_CBC                OBJ_pkcs5,3L\n\n#define SN_pbeWithMD2AndRC2_CBC         \"PBE-MD2-RC2-64\"\n#define LN_pbeWithMD2AndRC2_CBC         \"pbeWithMD2AndRC2-CBC\"\n#define NID_pbeWithMD2AndRC2_CBC                168\n#define OBJ_pbeWithMD2AndRC2_CBC                OBJ_pkcs5,4L\n\n#define SN_pbeWithMD5AndRC2_CBC         \"PBE-MD5-RC2-64\"\n#define LN_pbeWithMD5AndRC2_CBC         \"pbeWithMD5AndRC2-CBC\"\n#define NID_pbeWithMD5AndRC2_CBC                169\n#define OBJ_pbeWithMD5AndRC2_CBC                OBJ_pkcs5,6L\n\n#define SN_pbeWithSHA1AndDES_CBC                \"PBE-SHA1-DES\"\n#define LN_pbeWithSHA1AndDES_CBC                \"pbeWithSHA1AndDES-CBC\"\n#define NID_pbeWithSHA1AndDES_CBC               170\n#define OBJ_pbeWithSHA1AndDES_CBC               OBJ_pkcs5,10L\n\n#define SN_pbeWithSHA1AndRC2_CBC                \"PBE-SHA1-RC2-64\"\n#define LN_pbeWithSHA1AndRC2_CBC                \"pbeWithSHA1AndRC2-CBC\"\n#define NID_pbeWithSHA1AndRC2_CBC               68\n#define OBJ_pbeWithSHA1AndRC2_CBC               OBJ_pkcs5,11L\n\n#define LN_id_pbkdf2            \"PBKDF2\"\n#define NID_id_pbkdf2           69\n#define OBJ_id_pbkdf2           OBJ_pkcs5,12L\n\n#define LN_pbes2                \"PBES2\"\n#define NID_pbes2               161\n#define OBJ_pbes2               OBJ_pkcs5,13L\n\n#define LN_pbmac1               \"PBMAC1\"\n#define NID_pbmac1              162\n#define OBJ_pbmac1              OBJ_pkcs5,14L\n\n#define SN_pkcs7                \"pkcs7\"\n#define NID_pkcs7               20\n#define OBJ_pkcs7               OBJ_pkcs,7L\n\n#define LN_pkcs7_data           \"pkcs7-data\"\n#define NID_pkcs7_data          21\n#define OBJ_pkcs7_data          OBJ_pkcs7,1L\n\n#define LN_pkcs7_signed         \"pkcs7-signedData\"\n#define NID_pkcs7_signed                22\n#define OBJ_pkcs7_signed                OBJ_pkcs7,2L\n\n#define LN_pkcs7_enveloped              \"pkcs7-envelopedData\"\n#define NID_pkcs7_enveloped             23\n#define OBJ_pkcs7_enveloped             OBJ_pkcs7,3L\n\n#define LN_pkcs7_signedAndEnveloped             \"pkcs7-signedAndEnvelopedData\"\n#define NID_pkcs7_signedAndEnveloped            24\n#define OBJ_pkcs7_signedAndEnveloped            OBJ_pkcs7,4L\n\n#define LN_pkcs7_digest         \"pkcs7-digestData\"\n#define NID_pkcs7_digest                25\n#define OBJ_pkcs7_digest                OBJ_pkcs7,5L\n\n#define LN_pkcs7_encrypted              \"pkcs7-encryptedData\"\n#define NID_pkcs7_encrypted             26\n#define OBJ_pkcs7_encrypted             OBJ_pkcs7,6L\n\n#define SN_pkcs9                \"pkcs9\"\n#define NID_pkcs9               47\n#define OBJ_pkcs9               OBJ_pkcs,9L\n\n#define LN_pkcs9_emailAddress           \"emailAddress\"\n#define NID_pkcs9_emailAddress          48\n#define OBJ_pkcs9_emailAddress          OBJ_pkcs9,1L\n\n#define LN_pkcs9_unstructuredName               \"unstructuredName\"\n#define NID_pkcs9_unstructuredName              49\n#define OBJ_pkcs9_unstructuredName              OBJ_pkcs9,2L\n\n#define LN_pkcs9_contentType            \"contentType\"\n#define NID_pkcs9_contentType           50\n#define OBJ_pkcs9_contentType           OBJ_pkcs9,3L\n\n#define LN_pkcs9_messageDigest          \"messageDigest\"\n#define NID_pkcs9_messageDigest         51\n#define OBJ_pkcs9_messageDigest         OBJ_pkcs9,4L\n\n#define LN_pkcs9_signingTime            \"signingTime\"\n#define NID_pkcs9_signingTime           52\n#define OBJ_pkcs9_signingTime           OBJ_pkcs9,5L\n\n#define LN_pkcs9_countersignature               \"countersignature\"\n#define NID_pkcs9_countersignature              53\n#define OBJ_pkcs9_countersignature              OBJ_pkcs9,6L\n\n#define LN_pkcs9_challengePassword              \"challengePassword\"\n#define NID_pkcs9_challengePassword             54\n#define OBJ_pkcs9_challengePassword             OBJ_pkcs9,7L\n\n#define LN_pkcs9_unstructuredAddress            \"unstructuredAddress\"\n#define NID_pkcs9_unstructuredAddress           55\n#define OBJ_pkcs9_unstructuredAddress           OBJ_pkcs9,8L\n\n#define LN_pkcs9_extCertAttributes              \"extendedCertificateAttributes\"\n#define NID_pkcs9_extCertAttributes             56\n#define OBJ_pkcs9_extCertAttributes             OBJ_pkcs9,9L\n\n#define SN_ext_req              \"extReq\"\n#define LN_ext_req              \"Extension Request\"\n#define NID_ext_req             172\n#define OBJ_ext_req             OBJ_pkcs9,14L\n\n#define SN_SMIMECapabilities            \"SMIME-CAPS\"\n#define LN_SMIMECapabilities            \"S/MIME Capabilities\"\n#define NID_SMIMECapabilities           167\n#define OBJ_SMIMECapabilities           OBJ_pkcs9,15L\n\n#define SN_SMIME                \"SMIME\"\n#define LN_SMIME                \"S/MIME\"\n#define NID_SMIME               188\n#define OBJ_SMIME               OBJ_pkcs9,16L\n\n#define SN_id_smime_mod         \"id-smime-mod\"\n#define NID_id_smime_mod                189\n#define OBJ_id_smime_mod                OBJ_SMIME,0L\n\n#define SN_id_smime_ct          \"id-smime-ct\"\n#define NID_id_smime_ct         190\n#define OBJ_id_smime_ct         OBJ_SMIME,1L\n\n#define SN_id_smime_aa          \"id-smime-aa\"\n#define NID_id_smime_aa         191\n#define OBJ_id_smime_aa         OBJ_SMIME,2L\n\n#define SN_id_smime_alg         \"id-smime-alg\"\n#define NID_id_smime_alg                192\n#define OBJ_id_smime_alg                OBJ_SMIME,3L\n\n#define SN_id_smime_cd          \"id-smime-cd\"\n#define NID_id_smime_cd         193\n#define OBJ_id_smime_cd         OBJ_SMIME,4L\n\n#define SN_id_smime_spq         \"id-smime-spq\"\n#define NID_id_smime_spq                194\n#define OBJ_id_smime_spq                OBJ_SMIME,5L\n\n#define SN_id_smime_cti         \"id-smime-cti\"\n#define NID_id_smime_cti                195\n#define OBJ_id_smime_cti                OBJ_SMIME,6L\n\n#define SN_id_smime_mod_cms             \"id-smime-mod-cms\"\n#define NID_id_smime_mod_cms            196\n#define OBJ_id_smime_mod_cms            OBJ_id_smime_mod,1L\n\n#define SN_id_smime_mod_ess             \"id-smime-mod-ess\"\n#define NID_id_smime_mod_ess            197\n#define OBJ_id_smime_mod_ess            OBJ_id_smime_mod,2L\n\n#define SN_id_smime_mod_oid             \"id-smime-mod-oid\"\n#define NID_id_smime_mod_oid            198\n#define OBJ_id_smime_mod_oid            OBJ_id_smime_mod,3L\n\n#define SN_id_smime_mod_msg_v3          \"id-smime-mod-msg-v3\"\n#define NID_id_smime_mod_msg_v3         199\n#define OBJ_id_smime_mod_msg_v3         OBJ_id_smime_mod,4L\n\n#define SN_id_smime_mod_ets_eSignature_88               \"id-smime-mod-ets-eSignature-88\"\n#define NID_id_smime_mod_ets_eSignature_88              200\n#define OBJ_id_smime_mod_ets_eSignature_88              OBJ_id_smime_mod,5L\n\n#define SN_id_smime_mod_ets_eSignature_97               \"id-smime-mod-ets-eSignature-97\"\n#define NID_id_smime_mod_ets_eSignature_97              201\n#define OBJ_id_smime_mod_ets_eSignature_97              OBJ_id_smime_mod,6L\n\n#define SN_id_smime_mod_ets_eSigPolicy_88               \"id-smime-mod-ets-eSigPolicy-88\"\n#define NID_id_smime_mod_ets_eSigPolicy_88              202\n#define OBJ_id_smime_mod_ets_eSigPolicy_88              OBJ_id_smime_mod,7L\n\n#define SN_id_smime_mod_ets_eSigPolicy_97               \"id-smime-mod-ets-eSigPolicy-97\"\n#define NID_id_smime_mod_ets_eSigPolicy_97              203\n#define OBJ_id_smime_mod_ets_eSigPolicy_97              OBJ_id_smime_mod,8L\n\n#define SN_id_smime_ct_receipt          \"id-smime-ct-receipt\"\n#define NID_id_smime_ct_receipt         204\n#define OBJ_id_smime_ct_receipt         OBJ_id_smime_ct,1L\n\n#define SN_id_smime_ct_authData         \"id-smime-ct-authData\"\n#define NID_id_smime_ct_authData                205\n#define OBJ_id_smime_ct_authData                OBJ_id_smime_ct,2L\n\n#define SN_id_smime_ct_publishCert              \"id-smime-ct-publishCert\"\n#define NID_id_smime_ct_publishCert             206\n#define OBJ_id_smime_ct_publishCert             OBJ_id_smime_ct,3L\n\n#define SN_id_smime_ct_TSTInfo          \"id-smime-ct-TSTInfo\"\n#define NID_id_smime_ct_TSTInfo         207\n#define OBJ_id_smime_ct_TSTInfo         OBJ_id_smime_ct,4L\n\n#define SN_id_smime_ct_TDTInfo          \"id-smime-ct-TDTInfo\"\n#define NID_id_smime_ct_TDTInfo         208\n#define OBJ_id_smime_ct_TDTInfo         OBJ_id_smime_ct,5L\n\n#define SN_id_smime_ct_contentInfo              \"id-smime-ct-contentInfo\"\n#define NID_id_smime_ct_contentInfo             209\n#define OBJ_id_smime_ct_contentInfo             OBJ_id_smime_ct,6L\n\n#define SN_id_smime_ct_DVCSRequestData          \"id-smime-ct-DVCSRequestData\"\n#define NID_id_smime_ct_DVCSRequestData         210\n#define OBJ_id_smime_ct_DVCSRequestData         OBJ_id_smime_ct,7L\n\n#define SN_id_smime_ct_DVCSResponseData         \"id-smime-ct-DVCSResponseData\"\n#define NID_id_smime_ct_DVCSResponseData                211\n#define OBJ_id_smime_ct_DVCSResponseData                OBJ_id_smime_ct,8L\n\n#define SN_id_smime_ct_compressedData           \"id-smime-ct-compressedData\"\n#define NID_id_smime_ct_compressedData          786\n#define OBJ_id_smime_ct_compressedData          OBJ_id_smime_ct,9L\n\n#define SN_id_smime_ct_contentCollection                \"id-smime-ct-contentCollection\"\n#define NID_id_smime_ct_contentCollection               1058\n#define OBJ_id_smime_ct_contentCollection               OBJ_id_smime_ct,19L\n\n#define SN_id_smime_ct_authEnvelopedData                \"id-smime-ct-authEnvelopedData\"\n#define NID_id_smime_ct_authEnvelopedData               1059\n#define OBJ_id_smime_ct_authEnvelopedData               OBJ_id_smime_ct,23L\n\n#define SN_id_ct_asciiTextWithCRLF              \"id-ct-asciiTextWithCRLF\"\n#define NID_id_ct_asciiTextWithCRLF             787\n#define OBJ_id_ct_asciiTextWithCRLF             OBJ_id_smime_ct,27L\n\n#define SN_id_ct_xml            \"id-ct-xml\"\n#define NID_id_ct_xml           1060\n#define OBJ_id_ct_xml           OBJ_id_smime_ct,28L\n\n#define SN_id_smime_aa_receiptRequest           \"id-smime-aa-receiptRequest\"\n#define NID_id_smime_aa_receiptRequest          212\n#define OBJ_id_smime_aa_receiptRequest          OBJ_id_smime_aa,1L\n\n#define SN_id_smime_aa_securityLabel            \"id-smime-aa-securityLabel\"\n#define NID_id_smime_aa_securityLabel           213\n#define OBJ_id_smime_aa_securityLabel           OBJ_id_smime_aa,2L\n\n#define SN_id_smime_aa_mlExpandHistory          \"id-smime-aa-mlExpandHistory\"\n#define NID_id_smime_aa_mlExpandHistory         214\n#define OBJ_id_smime_aa_mlExpandHistory         OBJ_id_smime_aa,3L\n\n#define SN_id_smime_aa_contentHint              \"id-smime-aa-contentHint\"\n#define NID_id_smime_aa_contentHint             215\n#define OBJ_id_smime_aa_contentHint             OBJ_id_smime_aa,4L\n\n#define SN_id_smime_aa_msgSigDigest             \"id-smime-aa-msgSigDigest\"\n#define NID_id_smime_aa_msgSigDigest            216\n#define OBJ_id_smime_aa_msgSigDigest            OBJ_id_smime_aa,5L\n\n#define SN_id_smime_aa_encapContentType         \"id-smime-aa-encapContentType\"\n#define NID_id_smime_aa_encapContentType                217\n#define OBJ_id_smime_aa_encapContentType                OBJ_id_smime_aa,6L\n\n#define SN_id_smime_aa_contentIdentifier                \"id-smime-aa-contentIdentifier\"\n#define NID_id_smime_aa_contentIdentifier               218\n#define OBJ_id_smime_aa_contentIdentifier               OBJ_id_smime_aa,7L\n\n#define SN_id_smime_aa_macValue         \"id-smime-aa-macValue\"\n#define NID_id_smime_aa_macValue                219\n#define OBJ_id_smime_aa_macValue                OBJ_id_smime_aa,8L\n\n#define SN_id_smime_aa_equivalentLabels         \"id-smime-aa-equivalentLabels\"\n#define NID_id_smime_aa_equivalentLabels                220\n#define OBJ_id_smime_aa_equivalentLabels                OBJ_id_smime_aa,9L\n\n#define SN_id_smime_aa_contentReference         \"id-smime-aa-contentReference\"\n#define NID_id_smime_aa_contentReference                221\n#define OBJ_id_smime_aa_contentReference                OBJ_id_smime_aa,10L\n\n#define SN_id_smime_aa_encrypKeyPref            \"id-smime-aa-encrypKeyPref\"\n#define NID_id_smime_aa_encrypKeyPref           222\n#define OBJ_id_smime_aa_encrypKeyPref           OBJ_id_smime_aa,11L\n\n#define SN_id_smime_aa_signingCertificate               \"id-smime-aa-signingCertificate\"\n#define NID_id_smime_aa_signingCertificate              223\n#define OBJ_id_smime_aa_signingCertificate              OBJ_id_smime_aa,12L\n\n#define SN_id_smime_aa_smimeEncryptCerts                \"id-smime-aa-smimeEncryptCerts\"\n#define NID_id_smime_aa_smimeEncryptCerts               224\n#define OBJ_id_smime_aa_smimeEncryptCerts               OBJ_id_smime_aa,13L\n\n#define SN_id_smime_aa_timeStampToken           \"id-smime-aa-timeStampToken\"\n#define NID_id_smime_aa_timeStampToken          225\n#define OBJ_id_smime_aa_timeStampToken          OBJ_id_smime_aa,14L\n\n#define SN_id_smime_aa_ets_sigPolicyId          \"id-smime-aa-ets-sigPolicyId\"\n#define NID_id_smime_aa_ets_sigPolicyId         226\n#define OBJ_id_smime_aa_ets_sigPolicyId         OBJ_id_smime_aa,15L\n\n#define SN_id_smime_aa_ets_commitmentType               \"id-smime-aa-ets-commitmentType\"\n#define NID_id_smime_aa_ets_commitmentType              227\n#define OBJ_id_smime_aa_ets_commitmentType              OBJ_id_smime_aa,16L\n\n#define SN_id_smime_aa_ets_signerLocation               \"id-smime-aa-ets-signerLocation\"\n#define NID_id_smime_aa_ets_signerLocation              228\n#define OBJ_id_smime_aa_ets_signerLocation              OBJ_id_smime_aa,17L\n\n#define SN_id_smime_aa_ets_signerAttr           \"id-smime-aa-ets-signerAttr\"\n#define NID_id_smime_aa_ets_signerAttr          229\n#define OBJ_id_smime_aa_ets_signerAttr          OBJ_id_smime_aa,18L\n\n#define SN_id_smime_aa_ets_otherSigCert         \"id-smime-aa-ets-otherSigCert\"\n#define NID_id_smime_aa_ets_otherSigCert                230\n#define OBJ_id_smime_aa_ets_otherSigCert                OBJ_id_smime_aa,19L\n\n#define SN_id_smime_aa_ets_contentTimestamp             \"id-smime-aa-ets-contentTimestamp\"\n#define NID_id_smime_aa_ets_contentTimestamp            231\n#define OBJ_id_smime_aa_ets_contentTimestamp            OBJ_id_smime_aa,20L\n\n#define SN_id_smime_aa_ets_CertificateRefs              \"id-smime-aa-ets-CertificateRefs\"\n#define NID_id_smime_aa_ets_CertificateRefs             232\n#define OBJ_id_smime_aa_ets_CertificateRefs             OBJ_id_smime_aa,21L\n\n#define SN_id_smime_aa_ets_RevocationRefs               \"id-smime-aa-ets-RevocationRefs\"\n#define NID_id_smime_aa_ets_RevocationRefs              233\n#define OBJ_id_smime_aa_ets_RevocationRefs              OBJ_id_smime_aa,22L\n\n#define SN_id_smime_aa_ets_certValues           \"id-smime-aa-ets-certValues\"\n#define NID_id_smime_aa_ets_certValues          234\n#define OBJ_id_smime_aa_ets_certValues          OBJ_id_smime_aa,23L\n\n#define SN_id_smime_aa_ets_revocationValues             \"id-smime-aa-ets-revocationValues\"\n#define NID_id_smime_aa_ets_revocationValues            235\n#define OBJ_id_smime_aa_ets_revocationValues            OBJ_id_smime_aa,24L\n\n#define SN_id_smime_aa_ets_escTimeStamp         \"id-smime-aa-ets-escTimeStamp\"\n#define NID_id_smime_aa_ets_escTimeStamp                236\n#define OBJ_id_smime_aa_ets_escTimeStamp                OBJ_id_smime_aa,25L\n\n#define SN_id_smime_aa_ets_certCRLTimestamp             \"id-smime-aa-ets-certCRLTimestamp\"\n#define NID_id_smime_aa_ets_certCRLTimestamp            237\n#define OBJ_id_smime_aa_ets_certCRLTimestamp            OBJ_id_smime_aa,26L\n\n#define SN_id_smime_aa_ets_archiveTimeStamp             \"id-smime-aa-ets-archiveTimeStamp\"\n#define NID_id_smime_aa_ets_archiveTimeStamp            238\n#define OBJ_id_smime_aa_ets_archiveTimeStamp            OBJ_id_smime_aa,27L\n\n#define SN_id_smime_aa_signatureType            \"id-smime-aa-signatureType\"\n#define NID_id_smime_aa_signatureType           239\n#define OBJ_id_smime_aa_signatureType           OBJ_id_smime_aa,28L\n\n#define SN_id_smime_aa_dvcs_dvc         \"id-smime-aa-dvcs-dvc\"\n#define NID_id_smime_aa_dvcs_dvc                240\n#define OBJ_id_smime_aa_dvcs_dvc                OBJ_id_smime_aa,29L\n\n#define SN_id_smime_aa_signingCertificateV2             \"id-smime-aa-signingCertificateV2\"\n#define NID_id_smime_aa_signingCertificateV2            1086\n#define OBJ_id_smime_aa_signingCertificateV2            OBJ_id_smime_aa,47L\n\n#define SN_id_smime_alg_ESDHwith3DES            \"id-smime-alg-ESDHwith3DES\"\n#define NID_id_smime_alg_ESDHwith3DES           241\n#define OBJ_id_smime_alg_ESDHwith3DES           OBJ_id_smime_alg,1L\n\n#define SN_id_smime_alg_ESDHwithRC2             \"id-smime-alg-ESDHwithRC2\"\n#define NID_id_smime_alg_ESDHwithRC2            242\n#define OBJ_id_smime_alg_ESDHwithRC2            OBJ_id_smime_alg,2L\n\n#define SN_id_smime_alg_3DESwrap                \"id-smime-alg-3DESwrap\"\n#define NID_id_smime_alg_3DESwrap               243\n#define OBJ_id_smime_alg_3DESwrap               OBJ_id_smime_alg,3L\n\n#define SN_id_smime_alg_RC2wrap         \"id-smime-alg-RC2wrap\"\n#define NID_id_smime_alg_RC2wrap                244\n#define OBJ_id_smime_alg_RC2wrap                OBJ_id_smime_alg,4L\n\n#define SN_id_smime_alg_ESDH            \"id-smime-alg-ESDH\"\n#define NID_id_smime_alg_ESDH           245\n#define OBJ_id_smime_alg_ESDH           OBJ_id_smime_alg,5L\n\n#define SN_id_smime_alg_CMS3DESwrap             \"id-smime-alg-CMS3DESwrap\"\n#define NID_id_smime_alg_CMS3DESwrap            246\n#define OBJ_id_smime_alg_CMS3DESwrap            OBJ_id_smime_alg,6L\n\n#define SN_id_smime_alg_CMSRC2wrap              \"id-smime-alg-CMSRC2wrap\"\n#define NID_id_smime_alg_CMSRC2wrap             247\n#define OBJ_id_smime_alg_CMSRC2wrap             OBJ_id_smime_alg,7L\n\n#define SN_id_alg_PWRI_KEK              \"id-alg-PWRI-KEK\"\n#define NID_id_alg_PWRI_KEK             893\n#define OBJ_id_alg_PWRI_KEK             OBJ_id_smime_alg,9L\n\n#define SN_id_smime_cd_ldap             \"id-smime-cd-ldap\"\n#define NID_id_smime_cd_ldap            248\n#define OBJ_id_smime_cd_ldap            OBJ_id_smime_cd,1L\n\n#define SN_id_smime_spq_ets_sqt_uri             \"id-smime-spq-ets-sqt-uri\"\n#define NID_id_smime_spq_ets_sqt_uri            249\n#define OBJ_id_smime_spq_ets_sqt_uri            OBJ_id_smime_spq,1L\n\n#define SN_id_smime_spq_ets_sqt_unotice         \"id-smime-spq-ets-sqt-unotice\"\n#define NID_id_smime_spq_ets_sqt_unotice                250\n#define OBJ_id_smime_spq_ets_sqt_unotice                OBJ_id_smime_spq,2L\n\n#define SN_id_smime_cti_ets_proofOfOrigin               \"id-smime-cti-ets-proofOfOrigin\"\n#define NID_id_smime_cti_ets_proofOfOrigin              251\n#define OBJ_id_smime_cti_ets_proofOfOrigin              OBJ_id_smime_cti,1L\n\n#define SN_id_smime_cti_ets_proofOfReceipt              \"id-smime-cti-ets-proofOfReceipt\"\n#define NID_id_smime_cti_ets_proofOfReceipt             252\n#define OBJ_id_smime_cti_ets_proofOfReceipt             OBJ_id_smime_cti,2L\n\n#define SN_id_smime_cti_ets_proofOfDelivery             \"id-smime-cti-ets-proofOfDelivery\"\n#define NID_id_smime_cti_ets_proofOfDelivery            253\n#define OBJ_id_smime_cti_ets_proofOfDelivery            OBJ_id_smime_cti,3L\n\n#define SN_id_smime_cti_ets_proofOfSender               \"id-smime-cti-ets-proofOfSender\"\n#define NID_id_smime_cti_ets_proofOfSender              254\n#define OBJ_id_smime_cti_ets_proofOfSender              OBJ_id_smime_cti,4L\n\n#define SN_id_smime_cti_ets_proofOfApproval             \"id-smime-cti-ets-proofOfApproval\"\n#define NID_id_smime_cti_ets_proofOfApproval            255\n#define OBJ_id_smime_cti_ets_proofOfApproval            OBJ_id_smime_cti,5L\n\n#define SN_id_smime_cti_ets_proofOfCreation             \"id-smime-cti-ets-proofOfCreation\"\n#define NID_id_smime_cti_ets_proofOfCreation            256\n#define OBJ_id_smime_cti_ets_proofOfCreation            OBJ_id_smime_cti,6L\n\n#define LN_friendlyName         \"friendlyName\"\n#define NID_friendlyName                156\n#define OBJ_friendlyName                OBJ_pkcs9,20L\n\n#define LN_localKeyID           \"localKeyID\"\n#define NID_localKeyID          157\n#define OBJ_localKeyID          OBJ_pkcs9,21L\n\n#define SN_ms_csp_name          \"CSPName\"\n#define LN_ms_csp_name          \"Microsoft CSP Name\"\n#define NID_ms_csp_name         417\n#define OBJ_ms_csp_name         1L,3L,6L,1L,4L,1L,311L,17L,1L\n\n#define SN_LocalKeySet          \"LocalKeySet\"\n#define LN_LocalKeySet          \"Microsoft Local Key set\"\n#define NID_LocalKeySet         856\n#define OBJ_LocalKeySet         1L,3L,6L,1L,4L,1L,311L,17L,2L\n\n#define OBJ_certTypes           OBJ_pkcs9,22L\n\n#define LN_x509Certificate              \"x509Certificate\"\n#define NID_x509Certificate             158\n#define OBJ_x509Certificate             OBJ_certTypes,1L\n\n#define LN_sdsiCertificate              \"sdsiCertificate\"\n#define NID_sdsiCertificate             159\n#define OBJ_sdsiCertificate             OBJ_certTypes,2L\n\n#define OBJ_crlTypes            OBJ_pkcs9,23L\n\n#define LN_x509Crl              \"x509Crl\"\n#define NID_x509Crl             160\n#define OBJ_x509Crl             OBJ_crlTypes,1L\n\n#define OBJ_pkcs12              OBJ_pkcs,12L\n\n#define OBJ_pkcs12_pbeids               OBJ_pkcs12,1L\n\n#define SN_pbe_WithSHA1And128BitRC4             \"PBE-SHA1-RC4-128\"\n#define LN_pbe_WithSHA1And128BitRC4             \"pbeWithSHA1And128BitRC4\"\n#define NID_pbe_WithSHA1And128BitRC4            144\n#define OBJ_pbe_WithSHA1And128BitRC4            OBJ_pkcs12_pbeids,1L\n\n#define SN_pbe_WithSHA1And40BitRC4              \"PBE-SHA1-RC4-40\"\n#define LN_pbe_WithSHA1And40BitRC4              \"pbeWithSHA1And40BitRC4\"\n#define NID_pbe_WithSHA1And40BitRC4             145\n#define OBJ_pbe_WithSHA1And40BitRC4             OBJ_pkcs12_pbeids,2L\n\n#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC           \"PBE-SHA1-3DES\"\n#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC           \"pbeWithSHA1And3-KeyTripleDES-CBC\"\n#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC          146\n#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC          OBJ_pkcs12_pbeids,3L\n\n#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC           \"PBE-SHA1-2DES\"\n#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC           \"pbeWithSHA1And2-KeyTripleDES-CBC\"\n#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC          147\n#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC          OBJ_pkcs12_pbeids,4L\n\n#define SN_pbe_WithSHA1And128BitRC2_CBC         \"PBE-SHA1-RC2-128\"\n#define LN_pbe_WithSHA1And128BitRC2_CBC         \"pbeWithSHA1And128BitRC2-CBC\"\n#define NID_pbe_WithSHA1And128BitRC2_CBC                148\n#define OBJ_pbe_WithSHA1And128BitRC2_CBC                OBJ_pkcs12_pbeids,5L\n\n#define SN_pbe_WithSHA1And40BitRC2_CBC          \"PBE-SHA1-RC2-40\"\n#define LN_pbe_WithSHA1And40BitRC2_CBC          \"pbeWithSHA1And40BitRC2-CBC\"\n#define NID_pbe_WithSHA1And40BitRC2_CBC         149\n#define OBJ_pbe_WithSHA1And40BitRC2_CBC         OBJ_pkcs12_pbeids,6L\n\n#define OBJ_pkcs12_Version1             OBJ_pkcs12,10L\n\n#define OBJ_pkcs12_BagIds               OBJ_pkcs12_Version1,1L\n\n#define LN_keyBag               \"keyBag\"\n#define NID_keyBag              150\n#define OBJ_keyBag              OBJ_pkcs12_BagIds,1L\n\n#define LN_pkcs8ShroudedKeyBag          \"pkcs8ShroudedKeyBag\"\n#define NID_pkcs8ShroudedKeyBag         151\n#define OBJ_pkcs8ShroudedKeyBag         OBJ_pkcs12_BagIds,2L\n\n#define LN_certBag              \"certBag\"\n#define NID_certBag             152\n#define OBJ_certBag             OBJ_pkcs12_BagIds,3L\n\n#define LN_crlBag               \"crlBag\"\n#define NID_crlBag              153\n#define OBJ_crlBag              OBJ_pkcs12_BagIds,4L\n\n#define LN_secretBag            \"secretBag\"\n#define NID_secretBag           154\n#define OBJ_secretBag           OBJ_pkcs12_BagIds,5L\n\n#define LN_safeContentsBag              \"safeContentsBag\"\n#define NID_safeContentsBag             155\n#define OBJ_safeContentsBag             OBJ_pkcs12_BagIds,6L\n\n#define SN_md2          \"MD2\"\n#define LN_md2          \"md2\"\n#define NID_md2         3\n#define OBJ_md2         OBJ_rsadsi,2L,2L\n\n#define SN_md4          \"MD4\"\n#define LN_md4          \"md4\"\n#define NID_md4         257\n#define OBJ_md4         OBJ_rsadsi,2L,4L\n\n#define SN_md5          \"MD5\"\n#define LN_md5          \"md5\"\n#define NID_md5         4\n#define OBJ_md5         OBJ_rsadsi,2L,5L\n\n#define SN_md5_sha1             \"MD5-SHA1\"\n#define LN_md5_sha1             \"md5-sha1\"\n#define NID_md5_sha1            114\n\n#define LN_hmacWithMD5          \"hmacWithMD5\"\n#define NID_hmacWithMD5         797\n#define OBJ_hmacWithMD5         OBJ_rsadsi,2L,6L\n\n#define LN_hmacWithSHA1         \"hmacWithSHA1\"\n#define NID_hmacWithSHA1                163\n#define OBJ_hmacWithSHA1                OBJ_rsadsi,2L,7L\n\n#define SN_sm2          \"SM2\"\n#define LN_sm2          \"sm2\"\n#define NID_sm2         1172\n#define OBJ_sm2         OBJ_sm_scheme,301L\n\n#define SN_sm3          \"SM3\"\n#define LN_sm3          \"sm3\"\n#define NID_sm3         1143\n#define OBJ_sm3         OBJ_sm_scheme,401L\n\n#define SN_sm3WithRSAEncryption         \"RSA-SM3\"\n#define LN_sm3WithRSAEncryption         \"sm3WithRSAEncryption\"\n#define NID_sm3WithRSAEncryption                1144\n#define OBJ_sm3WithRSAEncryption                OBJ_sm_scheme,504L\n\n#define LN_hmacWithSHA224               \"hmacWithSHA224\"\n#define NID_hmacWithSHA224              798\n#define OBJ_hmacWithSHA224              OBJ_rsadsi,2L,8L\n\n#define LN_hmacWithSHA256               \"hmacWithSHA256\"\n#define NID_hmacWithSHA256              799\n#define OBJ_hmacWithSHA256              OBJ_rsadsi,2L,9L\n\n#define LN_hmacWithSHA384               \"hmacWithSHA384\"\n#define NID_hmacWithSHA384              800\n#define OBJ_hmacWithSHA384              OBJ_rsadsi,2L,10L\n\n#define LN_hmacWithSHA512               \"hmacWithSHA512\"\n#define NID_hmacWithSHA512              801\n#define OBJ_hmacWithSHA512              OBJ_rsadsi,2L,11L\n\n#define LN_hmacWithSHA512_224           \"hmacWithSHA512-224\"\n#define NID_hmacWithSHA512_224          1193\n#define OBJ_hmacWithSHA512_224          OBJ_rsadsi,2L,12L\n\n#define LN_hmacWithSHA512_256           \"hmacWithSHA512-256\"\n#define NID_hmacWithSHA512_256          1194\n#define OBJ_hmacWithSHA512_256          OBJ_rsadsi,2L,13L\n\n#define SN_rc2_cbc              \"RC2-CBC\"\n#define LN_rc2_cbc              \"rc2-cbc\"\n#define NID_rc2_cbc             37\n#define OBJ_rc2_cbc             OBJ_rsadsi,3L,2L\n\n#define SN_rc2_ecb              \"RC2-ECB\"\n#define LN_rc2_ecb              \"rc2-ecb\"\n#define NID_rc2_ecb             38\n\n#define SN_rc2_cfb64            \"RC2-CFB\"\n#define LN_rc2_cfb64            \"rc2-cfb\"\n#define NID_rc2_cfb64           39\n\n#define SN_rc2_ofb64            \"RC2-OFB\"\n#define LN_rc2_ofb64            \"rc2-ofb\"\n#define NID_rc2_ofb64           40\n\n#define SN_rc2_40_cbc           \"RC2-40-CBC\"\n#define LN_rc2_40_cbc           \"rc2-40-cbc\"\n#define NID_rc2_40_cbc          98\n\n#define SN_rc2_64_cbc           \"RC2-64-CBC\"\n#define LN_rc2_64_cbc           \"rc2-64-cbc\"\n#define NID_rc2_64_cbc          166\n\n#define SN_rc4          \"RC4\"\n#define LN_rc4          \"rc4\"\n#define NID_rc4         5\n#define OBJ_rc4         OBJ_rsadsi,3L,4L\n\n#define SN_rc4_40               \"RC4-40\"\n#define LN_rc4_40               \"rc4-40\"\n#define NID_rc4_40              97\n\n#define SN_des_ede3_cbc         \"DES-EDE3-CBC\"\n#define LN_des_ede3_cbc         \"des-ede3-cbc\"\n#define NID_des_ede3_cbc                44\n#define OBJ_des_ede3_cbc                OBJ_rsadsi,3L,7L\n\n#define SN_rc5_cbc              \"RC5-CBC\"\n#define LN_rc5_cbc              \"rc5-cbc\"\n#define NID_rc5_cbc             120\n#define OBJ_rc5_cbc             OBJ_rsadsi,3L,8L\n\n#define SN_rc5_ecb              \"RC5-ECB\"\n#define LN_rc5_ecb              \"rc5-ecb\"\n#define NID_rc5_ecb             121\n\n#define SN_rc5_cfb64            \"RC5-CFB\"\n#define LN_rc5_cfb64            \"rc5-cfb\"\n#define NID_rc5_cfb64           122\n\n#define SN_rc5_ofb64            \"RC5-OFB\"\n#define LN_rc5_ofb64            \"rc5-ofb\"\n#define NID_rc5_ofb64           123\n\n#define SN_ms_ext_req           \"msExtReq\"\n#define LN_ms_ext_req           \"Microsoft Extension Request\"\n#define NID_ms_ext_req          171\n#define OBJ_ms_ext_req          1L,3L,6L,1L,4L,1L,311L,2L,1L,14L\n\n#define SN_ms_code_ind          \"msCodeInd\"\n#define LN_ms_code_ind          \"Microsoft Individual Code Signing\"\n#define NID_ms_code_ind         134\n#define OBJ_ms_code_ind         1L,3L,6L,1L,4L,1L,311L,2L,1L,21L\n\n#define SN_ms_code_com          \"msCodeCom\"\n#define LN_ms_code_com          \"Microsoft Commercial Code Signing\"\n#define NID_ms_code_com         135\n#define OBJ_ms_code_com         1L,3L,6L,1L,4L,1L,311L,2L,1L,22L\n\n#define SN_ms_ctl_sign          \"msCTLSign\"\n#define LN_ms_ctl_sign          \"Microsoft Trust List Signing\"\n#define NID_ms_ctl_sign         136\n#define OBJ_ms_ctl_sign         1L,3L,6L,1L,4L,1L,311L,10L,3L,1L\n\n#define SN_ms_sgc               \"msSGC\"\n#define LN_ms_sgc               \"Microsoft Server Gated Crypto\"\n#define NID_ms_sgc              137\n#define OBJ_ms_sgc              1L,3L,6L,1L,4L,1L,311L,10L,3L,3L\n\n#define SN_ms_efs               \"msEFS\"\n#define LN_ms_efs               \"Microsoft Encrypted File System\"\n#define NID_ms_efs              138\n#define OBJ_ms_efs              1L,3L,6L,1L,4L,1L,311L,10L,3L,4L\n\n#define SN_ms_smartcard_login           \"msSmartcardLogin\"\n#define LN_ms_smartcard_login           \"Microsoft Smartcard Login\"\n#define NID_ms_smartcard_login          648\n#define OBJ_ms_smartcard_login          1L,3L,6L,1L,4L,1L,311L,20L,2L,2L\n\n#define SN_ms_upn               \"msUPN\"\n#define LN_ms_upn               \"Microsoft User Principal Name\"\n#define NID_ms_upn              649\n#define OBJ_ms_upn              1L,3L,6L,1L,4L,1L,311L,20L,2L,3L\n\n#define SN_idea_cbc             \"IDEA-CBC\"\n#define LN_idea_cbc             \"idea-cbc\"\n#define NID_idea_cbc            34\n#define OBJ_idea_cbc            1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L\n\n#define SN_idea_ecb             \"IDEA-ECB\"\n#define LN_idea_ecb             \"idea-ecb\"\n#define NID_idea_ecb            36\n\n#define SN_idea_cfb64           \"IDEA-CFB\"\n#define LN_idea_cfb64           \"idea-cfb\"\n#define NID_idea_cfb64          35\n\n#define SN_idea_ofb64           \"IDEA-OFB\"\n#define LN_idea_ofb64           \"idea-ofb\"\n#define NID_idea_ofb64          46\n\n#define SN_bf_cbc               \"BF-CBC\"\n#define LN_bf_cbc               \"bf-cbc\"\n#define NID_bf_cbc              91\n#define OBJ_bf_cbc              1L,3L,6L,1L,4L,1L,3029L,1L,2L\n\n#define SN_bf_ecb               \"BF-ECB\"\n#define LN_bf_ecb               \"bf-ecb\"\n#define NID_bf_ecb              92\n\n#define SN_bf_cfb64             \"BF-CFB\"\n#define LN_bf_cfb64             \"bf-cfb\"\n#define NID_bf_cfb64            93\n\n#define SN_bf_ofb64             \"BF-OFB\"\n#define LN_bf_ofb64             \"bf-ofb\"\n#define NID_bf_ofb64            94\n\n#define SN_id_pkix              \"PKIX\"\n#define NID_id_pkix             127\n#define OBJ_id_pkix             1L,3L,6L,1L,5L,5L,7L\n\n#define SN_id_pkix_mod          \"id-pkix-mod\"\n#define NID_id_pkix_mod         258\n#define OBJ_id_pkix_mod         OBJ_id_pkix,0L\n\n#define SN_id_pe                \"id-pe\"\n#define NID_id_pe               175\n#define OBJ_id_pe               OBJ_id_pkix,1L\n\n#define SN_id_qt                \"id-qt\"\n#define NID_id_qt               259\n#define OBJ_id_qt               OBJ_id_pkix,2L\n\n#define SN_id_kp                \"id-kp\"\n#define NID_id_kp               128\n#define OBJ_id_kp               OBJ_id_pkix,3L\n\n#define SN_id_it                \"id-it\"\n#define NID_id_it               260\n#define OBJ_id_it               OBJ_id_pkix,4L\n\n#define SN_id_pkip              \"id-pkip\"\n#define NID_id_pkip             261\n#define OBJ_id_pkip             OBJ_id_pkix,5L\n\n#define SN_id_alg               \"id-alg\"\n#define NID_id_alg              262\n#define OBJ_id_alg              OBJ_id_pkix,6L\n\n#define SN_id_cmc               \"id-cmc\"\n#define NID_id_cmc              263\n#define OBJ_id_cmc              OBJ_id_pkix,7L\n\n#define SN_id_on                \"id-on\"\n#define NID_id_on               264\n#define OBJ_id_on               OBJ_id_pkix,8L\n\n#define SN_id_pda               \"id-pda\"\n#define NID_id_pda              265\n#define OBJ_id_pda              OBJ_id_pkix,9L\n\n#define SN_id_aca               \"id-aca\"\n#define NID_id_aca              266\n#define OBJ_id_aca              OBJ_id_pkix,10L\n\n#define SN_id_qcs               \"id-qcs\"\n#define NID_id_qcs              267\n#define OBJ_id_qcs              OBJ_id_pkix,11L\n\n#define SN_id_cct               \"id-cct\"\n#define NID_id_cct              268\n#define OBJ_id_cct              OBJ_id_pkix,12L\n\n#define SN_id_ppl               \"id-ppl\"\n#define NID_id_ppl              662\n#define OBJ_id_ppl              OBJ_id_pkix,21L\n\n#define SN_id_ad                \"id-ad\"\n#define NID_id_ad               176\n#define OBJ_id_ad               OBJ_id_pkix,48L\n\n#define SN_id_pkix1_explicit_88         \"id-pkix1-explicit-88\"\n#define NID_id_pkix1_explicit_88                269\n#define OBJ_id_pkix1_explicit_88                OBJ_id_pkix_mod,1L\n\n#define SN_id_pkix1_implicit_88         \"id-pkix1-implicit-88\"\n#define NID_id_pkix1_implicit_88                270\n#define OBJ_id_pkix1_implicit_88                OBJ_id_pkix_mod,2L\n\n#define SN_id_pkix1_explicit_93         \"id-pkix1-explicit-93\"\n#define NID_id_pkix1_explicit_93                271\n#define OBJ_id_pkix1_explicit_93                OBJ_id_pkix_mod,3L\n\n#define SN_id_pkix1_implicit_93         \"id-pkix1-implicit-93\"\n#define NID_id_pkix1_implicit_93                272\n#define OBJ_id_pkix1_implicit_93                OBJ_id_pkix_mod,4L\n\n#define SN_id_mod_crmf          \"id-mod-crmf\"\n#define NID_id_mod_crmf         273\n#define OBJ_id_mod_crmf         OBJ_id_pkix_mod,5L\n\n#define SN_id_mod_cmc           \"id-mod-cmc\"\n#define NID_id_mod_cmc          274\n#define OBJ_id_mod_cmc          OBJ_id_pkix_mod,6L\n\n#define SN_id_mod_kea_profile_88                \"id-mod-kea-profile-88\"\n#define NID_id_mod_kea_profile_88               275\n#define OBJ_id_mod_kea_profile_88               OBJ_id_pkix_mod,7L\n\n#define SN_id_mod_kea_profile_93                \"id-mod-kea-profile-93\"\n#define NID_id_mod_kea_profile_93               276\n#define OBJ_id_mod_kea_profile_93               OBJ_id_pkix_mod,8L\n\n#define SN_id_mod_cmp           \"id-mod-cmp\"\n#define NID_id_mod_cmp          277\n#define OBJ_id_mod_cmp          OBJ_id_pkix_mod,9L\n\n#define SN_id_mod_qualified_cert_88             \"id-mod-qualified-cert-88\"\n#define NID_id_mod_qualified_cert_88            278\n#define OBJ_id_mod_qualified_cert_88            OBJ_id_pkix_mod,10L\n\n#define SN_id_mod_qualified_cert_93             \"id-mod-qualified-cert-93\"\n#define NID_id_mod_qualified_cert_93            279\n#define OBJ_id_mod_qualified_cert_93            OBJ_id_pkix_mod,11L\n\n#define SN_id_mod_attribute_cert                \"id-mod-attribute-cert\"\n#define NID_id_mod_attribute_cert               280\n#define OBJ_id_mod_attribute_cert               OBJ_id_pkix_mod,12L\n\n#define SN_id_mod_timestamp_protocol            \"id-mod-timestamp-protocol\"\n#define NID_id_mod_timestamp_protocol           281\n#define OBJ_id_mod_timestamp_protocol           OBJ_id_pkix_mod,13L\n\n#define SN_id_mod_ocsp          \"id-mod-ocsp\"\n#define NID_id_mod_ocsp         282\n#define OBJ_id_mod_ocsp         OBJ_id_pkix_mod,14L\n\n#define SN_id_mod_dvcs          \"id-mod-dvcs\"\n#define NID_id_mod_dvcs         283\n#define OBJ_id_mod_dvcs         OBJ_id_pkix_mod,15L\n\n#define SN_id_mod_cmp2000               \"id-mod-cmp2000\"\n#define NID_id_mod_cmp2000              284\n#define OBJ_id_mod_cmp2000              OBJ_id_pkix_mod,16L\n\n#define SN_info_access          \"authorityInfoAccess\"\n#define LN_info_access          \"Authority Information Access\"\n#define NID_info_access         177\n#define OBJ_info_access         OBJ_id_pe,1L\n\n#define SN_biometricInfo                \"biometricInfo\"\n#define LN_biometricInfo                \"Biometric Info\"\n#define NID_biometricInfo               285\n#define OBJ_biometricInfo               OBJ_id_pe,2L\n\n#define SN_qcStatements         \"qcStatements\"\n#define NID_qcStatements                286\n#define OBJ_qcStatements                OBJ_id_pe,3L\n\n#define SN_ac_auditEntity               \"ac-auditEntity\"\n#define NID_ac_auditEntity              287\n#define OBJ_ac_auditEntity              OBJ_id_pe,4L\n\n#define SN_ac_targeting         \"ac-targeting\"\n#define NID_ac_targeting                288\n#define OBJ_ac_targeting                OBJ_id_pe,5L\n\n#define SN_aaControls           \"aaControls\"\n#define NID_aaControls          289\n#define OBJ_aaControls          OBJ_id_pe,6L\n\n#define SN_sbgp_ipAddrBlock             \"sbgp-ipAddrBlock\"\n#define NID_sbgp_ipAddrBlock            290\n#define OBJ_sbgp_ipAddrBlock            OBJ_id_pe,7L\n\n#define SN_sbgp_autonomousSysNum                \"sbgp-autonomousSysNum\"\n#define NID_sbgp_autonomousSysNum               291\n#define OBJ_sbgp_autonomousSysNum               OBJ_id_pe,8L\n\n#define SN_sbgp_routerIdentifier                \"sbgp-routerIdentifier\"\n#define NID_sbgp_routerIdentifier               292\n#define OBJ_sbgp_routerIdentifier               OBJ_id_pe,9L\n\n#define SN_ac_proxying          \"ac-proxying\"\n#define NID_ac_proxying         397\n#define OBJ_ac_proxying         OBJ_id_pe,10L\n\n#define SN_sinfo_access         \"subjectInfoAccess\"\n#define LN_sinfo_access         \"Subject Information Access\"\n#define NID_sinfo_access                398\n#define OBJ_sinfo_access                OBJ_id_pe,11L\n\n#define SN_proxyCertInfo                \"proxyCertInfo\"\n#define LN_proxyCertInfo                \"Proxy Certificate Information\"\n#define NID_proxyCertInfo               663\n#define OBJ_proxyCertInfo               OBJ_id_pe,14L\n\n#define SN_tlsfeature           \"tlsfeature\"\n#define LN_tlsfeature           \"TLS Feature\"\n#define NID_tlsfeature          1020\n#define OBJ_tlsfeature          OBJ_id_pe,24L\n\n#define SN_id_qt_cps            \"id-qt-cps\"\n#define LN_id_qt_cps            \"Policy Qualifier CPS\"\n#define NID_id_qt_cps           164\n#define OBJ_id_qt_cps           OBJ_id_qt,1L\n\n#define SN_id_qt_unotice                \"id-qt-unotice\"\n#define LN_id_qt_unotice                \"Policy Qualifier User Notice\"\n#define NID_id_qt_unotice               165\n#define OBJ_id_qt_unotice               OBJ_id_qt,2L\n\n#define SN_textNotice           \"textNotice\"\n#define NID_textNotice          293\n#define OBJ_textNotice          OBJ_id_qt,3L\n\n#define SN_server_auth          \"serverAuth\"\n#define LN_server_auth          \"TLS Web Server Authentication\"\n#define NID_server_auth         129\n#define OBJ_server_auth         OBJ_id_kp,1L\n\n#define SN_client_auth          \"clientAuth\"\n#define LN_client_auth          \"TLS Web Client Authentication\"\n#define NID_client_auth         130\n#define OBJ_client_auth         OBJ_id_kp,2L\n\n#define SN_code_sign            \"codeSigning\"\n#define LN_code_sign            \"Code Signing\"\n#define NID_code_sign           131\n#define OBJ_code_sign           OBJ_id_kp,3L\n\n#define SN_email_protect                \"emailProtection\"\n#define LN_email_protect                \"E-mail Protection\"\n#define NID_email_protect               132\n#define OBJ_email_protect               OBJ_id_kp,4L\n\n#define SN_ipsecEndSystem               \"ipsecEndSystem\"\n#define LN_ipsecEndSystem               \"IPSec End System\"\n#define NID_ipsecEndSystem              294\n#define OBJ_ipsecEndSystem              OBJ_id_kp,5L\n\n#define SN_ipsecTunnel          \"ipsecTunnel\"\n#define LN_ipsecTunnel          \"IPSec Tunnel\"\n#define NID_ipsecTunnel         295\n#define OBJ_ipsecTunnel         OBJ_id_kp,6L\n\n#define SN_ipsecUser            \"ipsecUser\"\n#define LN_ipsecUser            \"IPSec User\"\n#define NID_ipsecUser           296\n#define OBJ_ipsecUser           OBJ_id_kp,7L\n\n#define SN_time_stamp           \"timeStamping\"\n#define LN_time_stamp           \"Time Stamping\"\n#define NID_time_stamp          133\n#define OBJ_time_stamp          OBJ_id_kp,8L\n\n#define SN_OCSP_sign            \"OCSPSigning\"\n#define LN_OCSP_sign            \"OCSP Signing\"\n#define NID_OCSP_sign           180\n#define OBJ_OCSP_sign           OBJ_id_kp,9L\n\n#define SN_dvcs         \"DVCS\"\n#define LN_dvcs         \"dvcs\"\n#define NID_dvcs                297\n#define OBJ_dvcs                OBJ_id_kp,10L\n\n#define SN_ipsec_IKE            \"ipsecIKE\"\n#define LN_ipsec_IKE            \"ipsec Internet Key Exchange\"\n#define NID_ipsec_IKE           1022\n#define OBJ_ipsec_IKE           OBJ_id_kp,17L\n\n#define SN_capwapAC             \"capwapAC\"\n#define LN_capwapAC             \"Ctrl/provision WAP Access\"\n#define NID_capwapAC            1023\n#define OBJ_capwapAC            OBJ_id_kp,18L\n\n#define SN_capwapWTP            \"capwapWTP\"\n#define LN_capwapWTP            \"Ctrl/Provision WAP Termination\"\n#define NID_capwapWTP           1024\n#define OBJ_capwapWTP           OBJ_id_kp,19L\n\n#define SN_sshClient            \"secureShellClient\"\n#define LN_sshClient            \"SSH Client\"\n#define NID_sshClient           1025\n#define OBJ_sshClient           OBJ_id_kp,21L\n\n#define SN_sshServer            \"secureShellServer\"\n#define LN_sshServer            \"SSH Server\"\n#define NID_sshServer           1026\n#define OBJ_sshServer           OBJ_id_kp,22L\n\n#define SN_sendRouter           \"sendRouter\"\n#define LN_sendRouter           \"Send Router\"\n#define NID_sendRouter          1027\n#define OBJ_sendRouter          OBJ_id_kp,23L\n\n#define SN_sendProxiedRouter            \"sendProxiedRouter\"\n#define LN_sendProxiedRouter            \"Send Proxied Router\"\n#define NID_sendProxiedRouter           1028\n#define OBJ_sendProxiedRouter           OBJ_id_kp,24L\n\n#define SN_sendOwner            \"sendOwner\"\n#define LN_sendOwner            \"Send Owner\"\n#define NID_sendOwner           1029\n#define OBJ_sendOwner           OBJ_id_kp,25L\n\n#define SN_sendProxiedOwner             \"sendProxiedOwner\"\n#define LN_sendProxiedOwner             \"Send Proxied Owner\"\n#define NID_sendProxiedOwner            1030\n#define OBJ_sendProxiedOwner            OBJ_id_kp,26L\n\n#define SN_cmcCA                \"cmcCA\"\n#define LN_cmcCA                \"CMC Certificate Authority\"\n#define NID_cmcCA               1131\n#define OBJ_cmcCA               OBJ_id_kp,27L\n\n#define SN_cmcRA                \"cmcRA\"\n#define LN_cmcRA                \"CMC Registration Authority\"\n#define NID_cmcRA               1132\n#define OBJ_cmcRA               OBJ_id_kp,28L\n\n#define SN_id_it_caProtEncCert          \"id-it-caProtEncCert\"\n#define NID_id_it_caProtEncCert         298\n#define OBJ_id_it_caProtEncCert         OBJ_id_it,1L\n\n#define SN_id_it_signKeyPairTypes               \"id-it-signKeyPairTypes\"\n#define NID_id_it_signKeyPairTypes              299\n#define OBJ_id_it_signKeyPairTypes              OBJ_id_it,2L\n\n#define SN_id_it_encKeyPairTypes                \"id-it-encKeyPairTypes\"\n#define NID_id_it_encKeyPairTypes               300\n#define OBJ_id_it_encKeyPairTypes               OBJ_id_it,3L\n\n#define SN_id_it_preferredSymmAlg               \"id-it-preferredSymmAlg\"\n#define NID_id_it_preferredSymmAlg              301\n#define OBJ_id_it_preferredSymmAlg              OBJ_id_it,4L\n\n#define SN_id_it_caKeyUpdateInfo                \"id-it-caKeyUpdateInfo\"\n#define NID_id_it_caKeyUpdateInfo               302\n#define OBJ_id_it_caKeyUpdateInfo               OBJ_id_it,5L\n\n#define SN_id_it_currentCRL             \"id-it-currentCRL\"\n#define NID_id_it_currentCRL            303\n#define OBJ_id_it_currentCRL            OBJ_id_it,6L\n\n#define SN_id_it_unsupportedOIDs                \"id-it-unsupportedOIDs\"\n#define NID_id_it_unsupportedOIDs               304\n#define OBJ_id_it_unsupportedOIDs               OBJ_id_it,7L\n\n#define SN_id_it_subscriptionRequest            \"id-it-subscriptionRequest\"\n#define NID_id_it_subscriptionRequest           305\n#define OBJ_id_it_subscriptionRequest           OBJ_id_it,8L\n\n#define SN_id_it_subscriptionResponse           \"id-it-subscriptionResponse\"\n#define NID_id_it_subscriptionResponse          306\n#define OBJ_id_it_subscriptionResponse          OBJ_id_it,9L\n\n#define SN_id_it_keyPairParamReq                \"id-it-keyPairParamReq\"\n#define NID_id_it_keyPairParamReq               307\n#define OBJ_id_it_keyPairParamReq               OBJ_id_it,10L\n\n#define SN_id_it_keyPairParamRep                \"id-it-keyPairParamRep\"\n#define NID_id_it_keyPairParamRep               308\n#define OBJ_id_it_keyPairParamRep               OBJ_id_it,11L\n\n#define SN_id_it_revPassphrase          \"id-it-revPassphrase\"\n#define NID_id_it_revPassphrase         309\n#define OBJ_id_it_revPassphrase         OBJ_id_it,12L\n\n#define SN_id_it_implicitConfirm                \"id-it-implicitConfirm\"\n#define NID_id_it_implicitConfirm               310\n#define OBJ_id_it_implicitConfirm               OBJ_id_it,13L\n\n#define SN_id_it_confirmWaitTime                \"id-it-confirmWaitTime\"\n#define NID_id_it_confirmWaitTime               311\n#define OBJ_id_it_confirmWaitTime               OBJ_id_it,14L\n\n#define SN_id_it_origPKIMessage         \"id-it-origPKIMessage\"\n#define NID_id_it_origPKIMessage                312\n#define OBJ_id_it_origPKIMessage                OBJ_id_it,15L\n\n#define SN_id_it_suppLangTags           \"id-it-suppLangTags\"\n#define NID_id_it_suppLangTags          784\n#define OBJ_id_it_suppLangTags          OBJ_id_it,16L\n\n#define SN_id_regCtrl           \"id-regCtrl\"\n#define NID_id_regCtrl          313\n#define OBJ_id_regCtrl          OBJ_id_pkip,1L\n\n#define SN_id_regInfo           \"id-regInfo\"\n#define NID_id_regInfo          314\n#define OBJ_id_regInfo          OBJ_id_pkip,2L\n\n#define SN_id_regCtrl_regToken          \"id-regCtrl-regToken\"\n#define NID_id_regCtrl_regToken         315\n#define OBJ_id_regCtrl_regToken         OBJ_id_regCtrl,1L\n\n#define SN_id_regCtrl_authenticator             \"id-regCtrl-authenticator\"\n#define NID_id_regCtrl_authenticator            316\n#define OBJ_id_regCtrl_authenticator            OBJ_id_regCtrl,2L\n\n#define SN_id_regCtrl_pkiPublicationInfo                \"id-regCtrl-pkiPublicationInfo\"\n#define NID_id_regCtrl_pkiPublicationInfo               317\n#define OBJ_id_regCtrl_pkiPublicationInfo               OBJ_id_regCtrl,3L\n\n#define SN_id_regCtrl_pkiArchiveOptions         \"id-regCtrl-pkiArchiveOptions\"\n#define NID_id_regCtrl_pkiArchiveOptions                318\n#define OBJ_id_regCtrl_pkiArchiveOptions                OBJ_id_regCtrl,4L\n\n#define SN_id_regCtrl_oldCertID         \"id-regCtrl-oldCertID\"\n#define NID_id_regCtrl_oldCertID                319\n#define OBJ_id_regCtrl_oldCertID                OBJ_id_regCtrl,5L\n\n#define SN_id_regCtrl_protocolEncrKey           \"id-regCtrl-protocolEncrKey\"\n#define NID_id_regCtrl_protocolEncrKey          320\n#define OBJ_id_regCtrl_protocolEncrKey          OBJ_id_regCtrl,6L\n\n#define SN_id_regInfo_utf8Pairs         \"id-regInfo-utf8Pairs\"\n#define NID_id_regInfo_utf8Pairs                321\n#define OBJ_id_regInfo_utf8Pairs                OBJ_id_regInfo,1L\n\n#define SN_id_regInfo_certReq           \"id-regInfo-certReq\"\n#define NID_id_regInfo_certReq          322\n#define OBJ_id_regInfo_certReq          OBJ_id_regInfo,2L\n\n#define SN_id_alg_des40         \"id-alg-des40\"\n#define NID_id_alg_des40                323\n#define OBJ_id_alg_des40                OBJ_id_alg,1L\n\n#define SN_id_alg_noSignature           \"id-alg-noSignature\"\n#define NID_id_alg_noSignature          324\n#define OBJ_id_alg_noSignature          OBJ_id_alg,2L\n\n#define SN_id_alg_dh_sig_hmac_sha1              \"id-alg-dh-sig-hmac-sha1\"\n#define NID_id_alg_dh_sig_hmac_sha1             325\n#define OBJ_id_alg_dh_sig_hmac_sha1             OBJ_id_alg,3L\n\n#define SN_id_alg_dh_pop                \"id-alg-dh-pop\"\n#define NID_id_alg_dh_pop               326\n#define OBJ_id_alg_dh_pop               OBJ_id_alg,4L\n\n#define SN_id_cmc_statusInfo            \"id-cmc-statusInfo\"\n#define NID_id_cmc_statusInfo           327\n#define OBJ_id_cmc_statusInfo           OBJ_id_cmc,1L\n\n#define SN_id_cmc_identification                \"id-cmc-identification\"\n#define NID_id_cmc_identification               328\n#define OBJ_id_cmc_identification               OBJ_id_cmc,2L\n\n#define SN_id_cmc_identityProof         \"id-cmc-identityProof\"\n#define NID_id_cmc_identityProof                329\n#define OBJ_id_cmc_identityProof                OBJ_id_cmc,3L\n\n#define SN_id_cmc_dataReturn            \"id-cmc-dataReturn\"\n#define NID_id_cmc_dataReturn           330\n#define OBJ_id_cmc_dataReturn           OBJ_id_cmc,4L\n\n#define SN_id_cmc_transactionId         \"id-cmc-transactionId\"\n#define NID_id_cmc_transactionId                331\n#define OBJ_id_cmc_transactionId                OBJ_id_cmc,5L\n\n#define SN_id_cmc_senderNonce           \"id-cmc-senderNonce\"\n#define NID_id_cmc_senderNonce          332\n#define OBJ_id_cmc_senderNonce          OBJ_id_cmc,6L\n\n#define SN_id_cmc_recipientNonce                \"id-cmc-recipientNonce\"\n#define NID_id_cmc_recipientNonce               333\n#define OBJ_id_cmc_recipientNonce               OBJ_id_cmc,7L\n\n#define SN_id_cmc_addExtensions         \"id-cmc-addExtensions\"\n#define NID_id_cmc_addExtensions                334\n#define OBJ_id_cmc_addExtensions                OBJ_id_cmc,8L\n\n#define SN_id_cmc_encryptedPOP          \"id-cmc-encryptedPOP\"\n#define NID_id_cmc_encryptedPOP         335\n#define OBJ_id_cmc_encryptedPOP         OBJ_id_cmc,9L\n\n#define SN_id_cmc_decryptedPOP          \"id-cmc-decryptedPOP\"\n#define NID_id_cmc_decryptedPOP         336\n#define OBJ_id_cmc_decryptedPOP         OBJ_id_cmc,10L\n\n#define SN_id_cmc_lraPOPWitness         \"id-cmc-lraPOPWitness\"\n#define NID_id_cmc_lraPOPWitness                337\n#define OBJ_id_cmc_lraPOPWitness                OBJ_id_cmc,11L\n\n#define SN_id_cmc_getCert               \"id-cmc-getCert\"\n#define NID_id_cmc_getCert              338\n#define OBJ_id_cmc_getCert              OBJ_id_cmc,15L\n\n#define SN_id_cmc_getCRL                \"id-cmc-getCRL\"\n#define NID_id_cmc_getCRL               339\n#define OBJ_id_cmc_getCRL               OBJ_id_cmc,16L\n\n#define SN_id_cmc_revokeRequest         \"id-cmc-revokeRequest\"\n#define NID_id_cmc_revokeRequest                340\n#define OBJ_id_cmc_revokeRequest                OBJ_id_cmc,17L\n\n#define SN_id_cmc_regInfo               \"id-cmc-regInfo\"\n#define NID_id_cmc_regInfo              341\n#define OBJ_id_cmc_regInfo              OBJ_id_cmc,18L\n\n#define SN_id_cmc_responseInfo          \"id-cmc-responseInfo\"\n#define NID_id_cmc_responseInfo         342\n#define OBJ_id_cmc_responseInfo         OBJ_id_cmc,19L\n\n#define SN_id_cmc_queryPending          \"id-cmc-queryPending\"\n#define NID_id_cmc_queryPending         343\n#define OBJ_id_cmc_queryPending         OBJ_id_cmc,21L\n\n#define SN_id_cmc_popLinkRandom         \"id-cmc-popLinkRandom\"\n#define NID_id_cmc_popLinkRandom                344\n#define OBJ_id_cmc_popLinkRandom                OBJ_id_cmc,22L\n\n#define SN_id_cmc_popLinkWitness                \"id-cmc-popLinkWitness\"\n#define NID_id_cmc_popLinkWitness               345\n#define OBJ_id_cmc_popLinkWitness               OBJ_id_cmc,23L\n\n#define SN_id_cmc_confirmCertAcceptance         \"id-cmc-confirmCertAcceptance\"\n#define NID_id_cmc_confirmCertAcceptance                346\n#define OBJ_id_cmc_confirmCertAcceptance                OBJ_id_cmc,24L\n\n#define SN_id_on_personalData           \"id-on-personalData\"\n#define NID_id_on_personalData          347\n#define OBJ_id_on_personalData          OBJ_id_on,1L\n\n#define SN_id_on_permanentIdentifier            \"id-on-permanentIdentifier\"\n#define LN_id_on_permanentIdentifier            \"Permanent Identifier\"\n#define NID_id_on_permanentIdentifier           858\n#define OBJ_id_on_permanentIdentifier           OBJ_id_on,3L\n\n#define SN_id_pda_dateOfBirth           \"id-pda-dateOfBirth\"\n#define NID_id_pda_dateOfBirth          348\n#define OBJ_id_pda_dateOfBirth          OBJ_id_pda,1L\n\n#define SN_id_pda_placeOfBirth          \"id-pda-placeOfBirth\"\n#define NID_id_pda_placeOfBirth         349\n#define OBJ_id_pda_placeOfBirth         OBJ_id_pda,2L\n\n#define SN_id_pda_gender                \"id-pda-gender\"\n#define NID_id_pda_gender               351\n#define OBJ_id_pda_gender               OBJ_id_pda,3L\n\n#define SN_id_pda_countryOfCitizenship          \"id-pda-countryOfCitizenship\"\n#define NID_id_pda_countryOfCitizenship         352\n#define OBJ_id_pda_countryOfCitizenship         OBJ_id_pda,4L\n\n#define SN_id_pda_countryOfResidence            \"id-pda-countryOfResidence\"\n#define NID_id_pda_countryOfResidence           353\n#define OBJ_id_pda_countryOfResidence           OBJ_id_pda,5L\n\n#define SN_id_aca_authenticationInfo            \"id-aca-authenticationInfo\"\n#define NID_id_aca_authenticationInfo           354\n#define OBJ_id_aca_authenticationInfo           OBJ_id_aca,1L\n\n#define SN_id_aca_accessIdentity                \"id-aca-accessIdentity\"\n#define NID_id_aca_accessIdentity               355\n#define OBJ_id_aca_accessIdentity               OBJ_id_aca,2L\n\n#define SN_id_aca_chargingIdentity              \"id-aca-chargingIdentity\"\n#define NID_id_aca_chargingIdentity             356\n#define OBJ_id_aca_chargingIdentity             OBJ_id_aca,3L\n\n#define SN_id_aca_group         \"id-aca-group\"\n#define NID_id_aca_group                357\n#define OBJ_id_aca_group                OBJ_id_aca,4L\n\n#define SN_id_aca_role          \"id-aca-role\"\n#define NID_id_aca_role         358\n#define OBJ_id_aca_role         OBJ_id_aca,5L\n\n#define SN_id_aca_encAttrs              \"id-aca-encAttrs\"\n#define NID_id_aca_encAttrs             399\n#define OBJ_id_aca_encAttrs             OBJ_id_aca,6L\n\n#define SN_id_qcs_pkixQCSyntax_v1               \"id-qcs-pkixQCSyntax-v1\"\n#define NID_id_qcs_pkixQCSyntax_v1              359\n#define OBJ_id_qcs_pkixQCSyntax_v1              OBJ_id_qcs,1L\n\n#define SN_id_cct_crs           \"id-cct-crs\"\n#define NID_id_cct_crs          360\n#define OBJ_id_cct_crs          OBJ_id_cct,1L\n\n#define SN_id_cct_PKIData               \"id-cct-PKIData\"\n#define NID_id_cct_PKIData              361\n#define OBJ_id_cct_PKIData              OBJ_id_cct,2L\n\n#define SN_id_cct_PKIResponse           \"id-cct-PKIResponse\"\n#define NID_id_cct_PKIResponse          362\n#define OBJ_id_cct_PKIResponse          OBJ_id_cct,3L\n\n#define SN_id_ppl_anyLanguage           \"id-ppl-anyLanguage\"\n#define LN_id_ppl_anyLanguage           \"Any language\"\n#define NID_id_ppl_anyLanguage          664\n#define OBJ_id_ppl_anyLanguage          OBJ_id_ppl,0L\n\n#define SN_id_ppl_inheritAll            \"id-ppl-inheritAll\"\n#define LN_id_ppl_inheritAll            \"Inherit all\"\n#define NID_id_ppl_inheritAll           665\n#define OBJ_id_ppl_inheritAll           OBJ_id_ppl,1L\n\n#define SN_Independent          \"id-ppl-independent\"\n#define LN_Independent          \"Independent\"\n#define NID_Independent         667\n#define OBJ_Independent         OBJ_id_ppl,2L\n\n#define SN_ad_OCSP              \"OCSP\"\n#define LN_ad_OCSP              \"OCSP\"\n#define NID_ad_OCSP             178\n#define OBJ_ad_OCSP             OBJ_id_ad,1L\n\n#define SN_ad_ca_issuers                \"caIssuers\"\n#define LN_ad_ca_issuers                \"CA Issuers\"\n#define NID_ad_ca_issuers               179\n#define OBJ_ad_ca_issuers               OBJ_id_ad,2L\n\n#define SN_ad_timeStamping              \"ad_timestamping\"\n#define LN_ad_timeStamping              \"AD Time Stamping\"\n#define NID_ad_timeStamping             363\n#define OBJ_ad_timeStamping             OBJ_id_ad,3L\n\n#define SN_ad_dvcs              \"AD_DVCS\"\n#define LN_ad_dvcs              \"ad dvcs\"\n#define NID_ad_dvcs             364\n#define OBJ_ad_dvcs             OBJ_id_ad,4L\n\n#define SN_caRepository         \"caRepository\"\n#define LN_caRepository         \"CA Repository\"\n#define NID_caRepository                785\n#define OBJ_caRepository                OBJ_id_ad,5L\n\n#define OBJ_id_pkix_OCSP                OBJ_ad_OCSP\n\n#define SN_id_pkix_OCSP_basic           \"basicOCSPResponse\"\n#define LN_id_pkix_OCSP_basic           \"Basic OCSP Response\"\n#define NID_id_pkix_OCSP_basic          365\n#define OBJ_id_pkix_OCSP_basic          OBJ_id_pkix_OCSP,1L\n\n#define SN_id_pkix_OCSP_Nonce           \"Nonce\"\n#define LN_id_pkix_OCSP_Nonce           \"OCSP Nonce\"\n#define NID_id_pkix_OCSP_Nonce          366\n#define OBJ_id_pkix_OCSP_Nonce          OBJ_id_pkix_OCSP,2L\n\n#define SN_id_pkix_OCSP_CrlID           \"CrlID\"\n#define LN_id_pkix_OCSP_CrlID           \"OCSP CRL ID\"\n#define NID_id_pkix_OCSP_CrlID          367\n#define OBJ_id_pkix_OCSP_CrlID          OBJ_id_pkix_OCSP,3L\n\n#define SN_id_pkix_OCSP_acceptableResponses             \"acceptableResponses\"\n#define LN_id_pkix_OCSP_acceptableResponses             \"Acceptable OCSP Responses\"\n#define NID_id_pkix_OCSP_acceptableResponses            368\n#define OBJ_id_pkix_OCSP_acceptableResponses            OBJ_id_pkix_OCSP,4L\n\n#define SN_id_pkix_OCSP_noCheck         \"noCheck\"\n#define LN_id_pkix_OCSP_noCheck         \"OCSP No Check\"\n#define NID_id_pkix_OCSP_noCheck                369\n#define OBJ_id_pkix_OCSP_noCheck                OBJ_id_pkix_OCSP,5L\n\n#define SN_id_pkix_OCSP_archiveCutoff           \"archiveCutoff\"\n#define LN_id_pkix_OCSP_archiveCutoff           \"OCSP Archive Cutoff\"\n#define NID_id_pkix_OCSP_archiveCutoff          370\n#define OBJ_id_pkix_OCSP_archiveCutoff          OBJ_id_pkix_OCSP,6L\n\n#define SN_id_pkix_OCSP_serviceLocator          \"serviceLocator\"\n#define LN_id_pkix_OCSP_serviceLocator          \"OCSP Service Locator\"\n#define NID_id_pkix_OCSP_serviceLocator         371\n#define OBJ_id_pkix_OCSP_serviceLocator         OBJ_id_pkix_OCSP,7L\n\n#define SN_id_pkix_OCSP_extendedStatus          \"extendedStatus\"\n#define LN_id_pkix_OCSP_extendedStatus          \"Extended OCSP Status\"\n#define NID_id_pkix_OCSP_extendedStatus         372\n#define OBJ_id_pkix_OCSP_extendedStatus         OBJ_id_pkix_OCSP,8L\n\n#define SN_id_pkix_OCSP_valid           \"valid\"\n#define NID_id_pkix_OCSP_valid          373\n#define OBJ_id_pkix_OCSP_valid          OBJ_id_pkix_OCSP,9L\n\n#define SN_id_pkix_OCSP_path            \"path\"\n#define NID_id_pkix_OCSP_path           374\n#define OBJ_id_pkix_OCSP_path           OBJ_id_pkix_OCSP,10L\n\n#define SN_id_pkix_OCSP_trustRoot               \"trustRoot\"\n#define LN_id_pkix_OCSP_trustRoot               \"Trust Root\"\n#define NID_id_pkix_OCSP_trustRoot              375\n#define OBJ_id_pkix_OCSP_trustRoot              OBJ_id_pkix_OCSP,11L\n\n#define SN_algorithm            \"algorithm\"\n#define LN_algorithm            \"algorithm\"\n#define NID_algorithm           376\n#define OBJ_algorithm           1L,3L,14L,3L,2L\n\n#define SN_md5WithRSA           \"RSA-NP-MD5\"\n#define LN_md5WithRSA           \"md5WithRSA\"\n#define NID_md5WithRSA          104\n#define OBJ_md5WithRSA          OBJ_algorithm,3L\n\n#define SN_des_ecb              \"DES-ECB\"\n#define LN_des_ecb              \"des-ecb\"\n#define NID_des_ecb             29\n#define OBJ_des_ecb             OBJ_algorithm,6L\n\n#define SN_des_cbc              \"DES-CBC\"\n#define LN_des_cbc              \"des-cbc\"\n#define NID_des_cbc             31\n#define OBJ_des_cbc             OBJ_algorithm,7L\n\n#define SN_des_ofb64            \"DES-OFB\"\n#define LN_des_ofb64            \"des-ofb\"\n#define NID_des_ofb64           45\n#define OBJ_des_ofb64           OBJ_algorithm,8L\n\n#define SN_des_cfb64            \"DES-CFB\"\n#define LN_des_cfb64            \"des-cfb\"\n#define NID_des_cfb64           30\n#define OBJ_des_cfb64           OBJ_algorithm,9L\n\n#define SN_rsaSignature         \"rsaSignature\"\n#define NID_rsaSignature                377\n#define OBJ_rsaSignature                OBJ_algorithm,11L\n\n#define SN_dsa_2                \"DSA-old\"\n#define LN_dsa_2                \"dsaEncryption-old\"\n#define NID_dsa_2               67\n#define OBJ_dsa_2               OBJ_algorithm,12L\n\n#define SN_dsaWithSHA           \"DSA-SHA\"\n#define LN_dsaWithSHA           \"dsaWithSHA\"\n#define NID_dsaWithSHA          66\n#define OBJ_dsaWithSHA          OBJ_algorithm,13L\n\n#define SN_shaWithRSAEncryption         \"RSA-SHA\"\n#define LN_shaWithRSAEncryption         \"shaWithRSAEncryption\"\n#define NID_shaWithRSAEncryption                42\n#define OBJ_shaWithRSAEncryption                OBJ_algorithm,15L\n\n#define SN_des_ede_ecb          \"DES-EDE\"\n#define LN_des_ede_ecb          \"des-ede\"\n#define NID_des_ede_ecb         32\n#define OBJ_des_ede_ecb         OBJ_algorithm,17L\n\n#define SN_des_ede3_ecb         \"DES-EDE3\"\n#define LN_des_ede3_ecb         \"des-ede3\"\n#define NID_des_ede3_ecb                33\n\n#define SN_des_ede_cbc          \"DES-EDE-CBC\"\n#define LN_des_ede_cbc          \"des-ede-cbc\"\n#define NID_des_ede_cbc         43\n\n#define SN_des_ede_cfb64                \"DES-EDE-CFB\"\n#define LN_des_ede_cfb64                \"des-ede-cfb\"\n#define NID_des_ede_cfb64               60\n\n#define SN_des_ede3_cfb64               \"DES-EDE3-CFB\"\n#define LN_des_ede3_cfb64               \"des-ede3-cfb\"\n#define NID_des_ede3_cfb64              61\n\n#define SN_des_ede_ofb64                \"DES-EDE-OFB\"\n#define LN_des_ede_ofb64                \"des-ede-ofb\"\n#define NID_des_ede_ofb64               62\n\n#define SN_des_ede3_ofb64               \"DES-EDE3-OFB\"\n#define LN_des_ede3_ofb64               \"des-ede3-ofb\"\n#define NID_des_ede3_ofb64              63\n\n#define SN_desx_cbc             \"DESX-CBC\"\n#define LN_desx_cbc             \"desx-cbc\"\n#define NID_desx_cbc            80\n\n#define SN_sha          \"SHA\"\n#define LN_sha          \"sha\"\n#define NID_sha         41\n#define OBJ_sha         OBJ_algorithm,18L\n\n#define SN_sha1         \"SHA1\"\n#define LN_sha1         \"sha1\"\n#define NID_sha1                64\n#define OBJ_sha1                OBJ_algorithm,26L\n\n#define SN_dsaWithSHA1_2                \"DSA-SHA1-old\"\n#define LN_dsaWithSHA1_2                \"dsaWithSHA1-old\"\n#define NID_dsaWithSHA1_2               70\n#define OBJ_dsaWithSHA1_2               OBJ_algorithm,27L\n\n#define SN_sha1WithRSA          \"RSA-SHA1-2\"\n#define LN_sha1WithRSA          \"sha1WithRSA\"\n#define NID_sha1WithRSA         115\n#define OBJ_sha1WithRSA         OBJ_algorithm,29L\n\n#define SN_ripemd160            \"RIPEMD160\"\n#define LN_ripemd160            \"ripemd160\"\n#define NID_ripemd160           117\n#define OBJ_ripemd160           1L,3L,36L,3L,2L,1L\n\n#define SN_ripemd160WithRSA             \"RSA-RIPEMD160\"\n#define LN_ripemd160WithRSA             \"ripemd160WithRSA\"\n#define NID_ripemd160WithRSA            119\n#define OBJ_ripemd160WithRSA            1L,3L,36L,3L,3L,1L,2L\n\n#define SN_blake2b512           \"BLAKE2b512\"\n#define LN_blake2b512           \"blake2b512\"\n#define NID_blake2b512          1056\n#define OBJ_blake2b512          1L,3L,6L,1L,4L,1L,1722L,12L,2L,1L,16L\n\n#define SN_blake2s256           \"BLAKE2s256\"\n#define LN_blake2s256           \"blake2s256\"\n#define NID_blake2s256          1057\n#define OBJ_blake2s256          1L,3L,6L,1L,4L,1L,1722L,12L,2L,2L,8L\n\n#define SN_sxnet                \"SXNetID\"\n#define LN_sxnet                \"Strong Extranet ID\"\n#define NID_sxnet               143\n#define OBJ_sxnet               1L,3L,101L,1L,4L,1L\n\n#define SN_X500         \"X500\"\n#define LN_X500         \"directory services (X.500)\"\n#define NID_X500                11\n#define OBJ_X500                2L,5L\n\n#define SN_X509         \"X509\"\n#define NID_X509                12\n#define OBJ_X509                OBJ_X500,4L\n\n#define SN_commonName           \"CN\"\n#define LN_commonName           \"commonName\"\n#define NID_commonName          13\n#define OBJ_commonName          OBJ_X509,3L\n\n#define SN_surname              \"SN\"\n#define LN_surname              \"surname\"\n#define NID_surname             100\n#define OBJ_surname             OBJ_X509,4L\n\n#define LN_serialNumber         \"serialNumber\"\n#define NID_serialNumber                105\n#define OBJ_serialNumber                OBJ_X509,5L\n\n#define SN_countryName          \"C\"\n#define LN_countryName          \"countryName\"\n#define NID_countryName         14\n#define OBJ_countryName         OBJ_X509,6L\n\n#define SN_localityName         \"L\"\n#define LN_localityName         \"localityName\"\n#define NID_localityName                15\n#define OBJ_localityName                OBJ_X509,7L\n\n#define SN_stateOrProvinceName          \"ST\"\n#define LN_stateOrProvinceName          \"stateOrProvinceName\"\n#define NID_stateOrProvinceName         16\n#define OBJ_stateOrProvinceName         OBJ_X509,8L\n\n#define SN_streetAddress                \"street\"\n#define LN_streetAddress                \"streetAddress\"\n#define NID_streetAddress               660\n#define OBJ_streetAddress               OBJ_X509,9L\n\n#define SN_organizationName             \"O\"\n#define LN_organizationName             \"organizationName\"\n#define NID_organizationName            17\n#define OBJ_organizationName            OBJ_X509,10L\n\n#define SN_organizationalUnitName               \"OU\"\n#define LN_organizationalUnitName               \"organizationalUnitName\"\n#define NID_organizationalUnitName              18\n#define OBJ_organizationalUnitName              OBJ_X509,11L\n\n#define SN_title                \"title\"\n#define LN_title                \"title\"\n#define NID_title               106\n#define OBJ_title               OBJ_X509,12L\n\n#define LN_description          \"description\"\n#define NID_description         107\n#define OBJ_description         OBJ_X509,13L\n\n#define LN_searchGuide          \"searchGuide\"\n#define NID_searchGuide         859\n#define OBJ_searchGuide         OBJ_X509,14L\n\n#define LN_businessCategory             \"businessCategory\"\n#define NID_businessCategory            860\n#define OBJ_businessCategory            OBJ_X509,15L\n\n#define LN_postalAddress                \"postalAddress\"\n#define NID_postalAddress               861\n#define OBJ_postalAddress               OBJ_X509,16L\n\n#define LN_postalCode           \"postalCode\"\n#define NID_postalCode          661\n#define OBJ_postalCode          OBJ_X509,17L\n\n#define LN_postOfficeBox                \"postOfficeBox\"\n#define NID_postOfficeBox               862\n#define OBJ_postOfficeBox               OBJ_X509,18L\n\n#define LN_physicalDeliveryOfficeName           \"physicalDeliveryOfficeName\"\n#define NID_physicalDeliveryOfficeName          863\n#define OBJ_physicalDeliveryOfficeName          OBJ_X509,19L\n\n#define LN_telephoneNumber              \"telephoneNumber\"\n#define NID_telephoneNumber             864\n#define OBJ_telephoneNumber             OBJ_X509,20L\n\n#define LN_telexNumber          \"telexNumber\"\n#define NID_telexNumber         865\n#define OBJ_telexNumber         OBJ_X509,21L\n\n#define LN_teletexTerminalIdentifier            \"teletexTerminalIdentifier\"\n#define NID_teletexTerminalIdentifier           866\n#define OBJ_teletexTerminalIdentifier           OBJ_X509,22L\n\n#define LN_facsimileTelephoneNumber             \"facsimileTelephoneNumber\"\n#define NID_facsimileTelephoneNumber            867\n#define OBJ_facsimileTelephoneNumber            OBJ_X509,23L\n\n#define LN_x121Address          \"x121Address\"\n#define NID_x121Address         868\n#define OBJ_x121Address         OBJ_X509,24L\n\n#define LN_internationaliSDNNumber              \"internationaliSDNNumber\"\n#define NID_internationaliSDNNumber             869\n#define OBJ_internationaliSDNNumber             OBJ_X509,25L\n\n#define LN_registeredAddress            \"registeredAddress\"\n#define NID_registeredAddress           870\n#define OBJ_registeredAddress           OBJ_X509,26L\n\n#define LN_destinationIndicator         \"destinationIndicator\"\n#define NID_destinationIndicator                871\n#define OBJ_destinationIndicator                OBJ_X509,27L\n\n#define LN_preferredDeliveryMethod              \"preferredDeliveryMethod\"\n#define NID_preferredDeliveryMethod             872\n#define OBJ_preferredDeliveryMethod             OBJ_X509,28L\n\n#define LN_presentationAddress          \"presentationAddress\"\n#define NID_presentationAddress         873\n#define OBJ_presentationAddress         OBJ_X509,29L\n\n#define LN_supportedApplicationContext          \"supportedApplicationContext\"\n#define NID_supportedApplicationContext         874\n#define OBJ_supportedApplicationContext         OBJ_X509,30L\n\n#define SN_member               \"member\"\n#define NID_member              875\n#define OBJ_member              OBJ_X509,31L\n\n#define SN_owner                \"owner\"\n#define NID_owner               876\n#define OBJ_owner               OBJ_X509,32L\n\n#define LN_roleOccupant         \"roleOccupant\"\n#define NID_roleOccupant                877\n#define OBJ_roleOccupant                OBJ_X509,33L\n\n#define SN_seeAlso              \"seeAlso\"\n#define NID_seeAlso             878\n#define OBJ_seeAlso             OBJ_X509,34L\n\n#define LN_userPassword         \"userPassword\"\n#define NID_userPassword                879\n#define OBJ_userPassword                OBJ_X509,35L\n\n#define LN_userCertificate              \"userCertificate\"\n#define NID_userCertificate             880\n#define OBJ_userCertificate             OBJ_X509,36L\n\n#define LN_cACertificate                \"cACertificate\"\n#define NID_cACertificate               881\n#define OBJ_cACertificate               OBJ_X509,37L\n\n#define LN_authorityRevocationList              \"authorityRevocationList\"\n#define NID_authorityRevocationList             882\n#define OBJ_authorityRevocationList             OBJ_X509,38L\n\n#define LN_certificateRevocationList            \"certificateRevocationList\"\n#define NID_certificateRevocationList           883\n#define OBJ_certificateRevocationList           OBJ_X509,39L\n\n#define LN_crossCertificatePair         \"crossCertificatePair\"\n#define NID_crossCertificatePair                884\n#define OBJ_crossCertificatePair                OBJ_X509,40L\n\n#define SN_name         \"name\"\n#define LN_name         \"name\"\n#define NID_name                173\n#define OBJ_name                OBJ_X509,41L\n\n#define SN_givenName            \"GN\"\n#define LN_givenName            \"givenName\"\n#define NID_givenName           99\n#define OBJ_givenName           OBJ_X509,42L\n\n#define SN_initials             \"initials\"\n#define LN_initials             \"initials\"\n#define NID_initials            101\n#define OBJ_initials            OBJ_X509,43L\n\n#define LN_generationQualifier          \"generationQualifier\"\n#define NID_generationQualifier         509\n#define OBJ_generationQualifier         OBJ_X509,44L\n\n#define LN_x500UniqueIdentifier         \"x500UniqueIdentifier\"\n#define NID_x500UniqueIdentifier                503\n#define OBJ_x500UniqueIdentifier                OBJ_X509,45L\n\n#define SN_dnQualifier          \"dnQualifier\"\n#define LN_dnQualifier          \"dnQualifier\"\n#define NID_dnQualifier         174\n#define OBJ_dnQualifier         OBJ_X509,46L\n\n#define LN_enhancedSearchGuide          \"enhancedSearchGuide\"\n#define NID_enhancedSearchGuide         885\n#define OBJ_enhancedSearchGuide         OBJ_X509,47L\n\n#define LN_protocolInformation          \"protocolInformation\"\n#define NID_protocolInformation         886\n#define OBJ_protocolInformation         OBJ_X509,48L\n\n#define LN_distinguishedName            \"distinguishedName\"\n#define NID_distinguishedName           887\n#define OBJ_distinguishedName           OBJ_X509,49L\n\n#define LN_uniqueMember         \"uniqueMember\"\n#define NID_uniqueMember                888\n#define OBJ_uniqueMember                OBJ_X509,50L\n\n#define LN_houseIdentifier              \"houseIdentifier\"\n#define NID_houseIdentifier             889\n#define OBJ_houseIdentifier             OBJ_X509,51L\n\n#define LN_supportedAlgorithms          \"supportedAlgorithms\"\n#define NID_supportedAlgorithms         890\n#define OBJ_supportedAlgorithms         OBJ_X509,52L\n\n#define LN_deltaRevocationList          \"deltaRevocationList\"\n#define NID_deltaRevocationList         891\n#define OBJ_deltaRevocationList         OBJ_X509,53L\n\n#define SN_dmdName              \"dmdName\"\n#define NID_dmdName             892\n#define OBJ_dmdName             OBJ_X509,54L\n\n#define LN_pseudonym            \"pseudonym\"\n#define NID_pseudonym           510\n#define OBJ_pseudonym           OBJ_X509,65L\n\n#define SN_role         \"role\"\n#define LN_role         \"role\"\n#define NID_role                400\n#define OBJ_role                OBJ_X509,72L\n\n#define LN_organizationIdentifier               \"organizationIdentifier\"\n#define NID_organizationIdentifier              1089\n#define OBJ_organizationIdentifier              OBJ_X509,97L\n\n#define SN_countryCode3c                \"c3\"\n#define LN_countryCode3c                \"countryCode3c\"\n#define NID_countryCode3c               1090\n#define OBJ_countryCode3c               OBJ_X509,98L\n\n#define SN_countryCode3n                \"n3\"\n#define LN_countryCode3n                \"countryCode3n\"\n#define NID_countryCode3n               1091\n#define OBJ_countryCode3n               OBJ_X509,99L\n\n#define LN_dnsName              \"dnsName\"\n#define NID_dnsName             1092\n#define OBJ_dnsName             OBJ_X509,100L\n\n#define SN_X500algorithms               \"X500algorithms\"\n#define LN_X500algorithms               \"directory services - algorithms\"\n#define NID_X500algorithms              378\n#define OBJ_X500algorithms              OBJ_X500,8L\n\n#define SN_rsa          \"RSA\"\n#define LN_rsa          \"rsa\"\n#define NID_rsa         19\n#define OBJ_rsa         OBJ_X500algorithms,1L,1L\n\n#define SN_mdc2WithRSA          \"RSA-MDC2\"\n#define LN_mdc2WithRSA          \"mdc2WithRSA\"\n#define NID_mdc2WithRSA         96\n#define OBJ_mdc2WithRSA         OBJ_X500algorithms,3L,100L\n\n#define SN_mdc2         \"MDC2\"\n#define LN_mdc2         \"mdc2\"\n#define NID_mdc2                95\n#define OBJ_mdc2                OBJ_X500algorithms,3L,101L\n\n#define SN_id_ce                \"id-ce\"\n#define NID_id_ce               81\n#define OBJ_id_ce               OBJ_X500,29L\n\n#define SN_subject_directory_attributes         \"subjectDirectoryAttributes\"\n#define LN_subject_directory_attributes         \"X509v3 Subject Directory Attributes\"\n#define NID_subject_directory_attributes                769\n#define OBJ_subject_directory_attributes                OBJ_id_ce,9L\n\n#define SN_subject_key_identifier               \"subjectKeyIdentifier\"\n#define LN_subject_key_identifier               \"X509v3 Subject Key Identifier\"\n#define NID_subject_key_identifier              82\n#define OBJ_subject_key_identifier              OBJ_id_ce,14L\n\n#define SN_key_usage            \"keyUsage\"\n#define LN_key_usage            \"X509v3 Key Usage\"\n#define NID_key_usage           83\n#define OBJ_key_usage           OBJ_id_ce,15L\n\n#define SN_private_key_usage_period             \"privateKeyUsagePeriod\"\n#define LN_private_key_usage_period             \"X509v3 Private Key Usage Period\"\n#define NID_private_key_usage_period            84\n#define OBJ_private_key_usage_period            OBJ_id_ce,16L\n\n#define SN_subject_alt_name             \"subjectAltName\"\n#define LN_subject_alt_name             \"X509v3 Subject Alternative Name\"\n#define NID_subject_alt_name            85\n#define OBJ_subject_alt_name            OBJ_id_ce,17L\n\n#define SN_issuer_alt_name              \"issuerAltName\"\n#define LN_issuer_alt_name              \"X509v3 Issuer Alternative Name\"\n#define NID_issuer_alt_name             86\n#define OBJ_issuer_alt_name             OBJ_id_ce,18L\n\n#define SN_basic_constraints            \"basicConstraints\"\n#define LN_basic_constraints            \"X509v3 Basic Constraints\"\n#define NID_basic_constraints           87\n#define OBJ_basic_constraints           OBJ_id_ce,19L\n\n#define SN_crl_number           \"crlNumber\"\n#define LN_crl_number           \"X509v3 CRL Number\"\n#define NID_crl_number          88\n#define OBJ_crl_number          OBJ_id_ce,20L\n\n#define SN_crl_reason           \"CRLReason\"\n#define LN_crl_reason           \"X509v3 CRL Reason Code\"\n#define NID_crl_reason          141\n#define OBJ_crl_reason          OBJ_id_ce,21L\n\n#define SN_invalidity_date              \"invalidityDate\"\n#define LN_invalidity_date              \"Invalidity Date\"\n#define NID_invalidity_date             142\n#define OBJ_invalidity_date             OBJ_id_ce,24L\n\n#define SN_delta_crl            \"deltaCRL\"\n#define LN_delta_crl            \"X509v3 Delta CRL Indicator\"\n#define NID_delta_crl           140\n#define OBJ_delta_crl           OBJ_id_ce,27L\n\n#define SN_issuing_distribution_point           \"issuingDistributionPoint\"\n#define LN_issuing_distribution_point           \"X509v3 Issuing Distribution Point\"\n#define NID_issuing_distribution_point          770\n#define OBJ_issuing_distribution_point          OBJ_id_ce,28L\n\n#define SN_certificate_issuer           \"certificateIssuer\"\n#define LN_certificate_issuer           \"X509v3 Certificate Issuer\"\n#define NID_certificate_issuer          771\n#define OBJ_certificate_issuer          OBJ_id_ce,29L\n\n#define SN_name_constraints             \"nameConstraints\"\n#define LN_name_constraints             \"X509v3 Name Constraints\"\n#define NID_name_constraints            666\n#define OBJ_name_constraints            OBJ_id_ce,30L\n\n#define SN_crl_distribution_points              \"crlDistributionPoints\"\n#define LN_crl_distribution_points              \"X509v3 CRL Distribution Points\"\n#define NID_crl_distribution_points             103\n#define OBJ_crl_distribution_points             OBJ_id_ce,31L\n\n#define SN_certificate_policies         \"certificatePolicies\"\n#define LN_certificate_policies         \"X509v3 Certificate Policies\"\n#define NID_certificate_policies                89\n#define OBJ_certificate_policies                OBJ_id_ce,32L\n\n#define SN_any_policy           \"anyPolicy\"\n#define LN_any_policy           \"X509v3 Any Policy\"\n#define NID_any_policy          746\n#define OBJ_any_policy          OBJ_certificate_policies,0L\n\n#define SN_policy_mappings              \"policyMappings\"\n#define LN_policy_mappings              \"X509v3 Policy Mappings\"\n#define NID_policy_mappings             747\n#define OBJ_policy_mappings             OBJ_id_ce,33L\n\n#define SN_authority_key_identifier             \"authorityKeyIdentifier\"\n#define LN_authority_key_identifier             \"X509v3 Authority Key Identifier\"\n#define NID_authority_key_identifier            90\n#define OBJ_authority_key_identifier            OBJ_id_ce,35L\n\n#define SN_policy_constraints           \"policyConstraints\"\n#define LN_policy_constraints           \"X509v3 Policy Constraints\"\n#define NID_policy_constraints          401\n#define OBJ_policy_constraints          OBJ_id_ce,36L\n\n#define SN_ext_key_usage                \"extendedKeyUsage\"\n#define LN_ext_key_usage                \"X509v3 Extended Key Usage\"\n#define NID_ext_key_usage               126\n#define OBJ_ext_key_usage               OBJ_id_ce,37L\n\n#define SN_freshest_crl         \"freshestCRL\"\n#define LN_freshest_crl         \"X509v3 Freshest CRL\"\n#define NID_freshest_crl                857\n#define OBJ_freshest_crl                OBJ_id_ce,46L\n\n#define SN_inhibit_any_policy           \"inhibitAnyPolicy\"\n#define LN_inhibit_any_policy           \"X509v3 Inhibit Any Policy\"\n#define NID_inhibit_any_policy          748\n#define OBJ_inhibit_any_policy          OBJ_id_ce,54L\n\n#define SN_target_information           \"targetInformation\"\n#define LN_target_information           \"X509v3 AC Targeting\"\n#define NID_target_information          402\n#define OBJ_target_information          OBJ_id_ce,55L\n\n#define SN_no_rev_avail         \"noRevAvail\"\n#define LN_no_rev_avail         \"X509v3 No Revocation Available\"\n#define NID_no_rev_avail                403\n#define OBJ_no_rev_avail                OBJ_id_ce,56L\n\n#define SN_anyExtendedKeyUsage          \"anyExtendedKeyUsage\"\n#define LN_anyExtendedKeyUsage          \"Any Extended Key Usage\"\n#define NID_anyExtendedKeyUsage         910\n#define OBJ_anyExtendedKeyUsage         OBJ_ext_key_usage,0L\n\n#define SN_netscape             \"Netscape\"\n#define LN_netscape             \"Netscape Communications Corp.\"\n#define NID_netscape            57\n#define OBJ_netscape            2L,16L,840L,1L,113730L\n\n#define SN_netscape_cert_extension              \"nsCertExt\"\n#define LN_netscape_cert_extension              \"Netscape Certificate Extension\"\n#define NID_netscape_cert_extension             58\n#define OBJ_netscape_cert_extension             OBJ_netscape,1L\n\n#define SN_netscape_data_type           \"nsDataType\"\n#define LN_netscape_data_type           \"Netscape Data Type\"\n#define NID_netscape_data_type          59\n#define OBJ_netscape_data_type          OBJ_netscape,2L\n\n#define SN_netscape_cert_type           \"nsCertType\"\n#define LN_netscape_cert_type           \"Netscape Cert Type\"\n#define NID_netscape_cert_type          71\n#define OBJ_netscape_cert_type          OBJ_netscape_cert_extension,1L\n\n#define SN_netscape_base_url            \"nsBaseUrl\"\n#define LN_netscape_base_url            \"Netscape Base Url\"\n#define NID_netscape_base_url           72\n#define OBJ_netscape_base_url           OBJ_netscape_cert_extension,2L\n\n#define SN_netscape_revocation_url              \"nsRevocationUrl\"\n#define LN_netscape_revocation_url              \"Netscape Revocation Url\"\n#define NID_netscape_revocation_url             73\n#define OBJ_netscape_revocation_url             OBJ_netscape_cert_extension,3L\n\n#define SN_netscape_ca_revocation_url           \"nsCaRevocationUrl\"\n#define LN_netscape_ca_revocation_url           \"Netscape CA Revocation Url\"\n#define NID_netscape_ca_revocation_url          74\n#define OBJ_netscape_ca_revocation_url          OBJ_netscape_cert_extension,4L\n\n#define SN_netscape_renewal_url         \"nsRenewalUrl\"\n#define LN_netscape_renewal_url         \"Netscape Renewal Url\"\n#define NID_netscape_renewal_url                75\n#define OBJ_netscape_renewal_url                OBJ_netscape_cert_extension,7L\n\n#define SN_netscape_ca_policy_url               \"nsCaPolicyUrl\"\n#define LN_netscape_ca_policy_url               \"Netscape CA Policy Url\"\n#define NID_netscape_ca_policy_url              76\n#define OBJ_netscape_ca_policy_url              OBJ_netscape_cert_extension,8L\n\n#define SN_netscape_ssl_server_name             \"nsSslServerName\"\n#define LN_netscape_ssl_server_name             \"Netscape SSL Server Name\"\n#define NID_netscape_ssl_server_name            77\n#define OBJ_netscape_ssl_server_name            OBJ_netscape_cert_extension,12L\n\n#define SN_netscape_comment             \"nsComment\"\n#define LN_netscape_comment             \"Netscape Comment\"\n#define NID_netscape_comment            78\n#define OBJ_netscape_comment            OBJ_netscape_cert_extension,13L\n\n#define SN_netscape_cert_sequence               \"nsCertSequence\"\n#define LN_netscape_cert_sequence               \"Netscape Certificate Sequence\"\n#define NID_netscape_cert_sequence              79\n#define OBJ_netscape_cert_sequence              OBJ_netscape_data_type,5L\n\n#define SN_ns_sgc               \"nsSGC\"\n#define LN_ns_sgc               \"Netscape Server Gated Crypto\"\n#define NID_ns_sgc              139\n#define OBJ_ns_sgc              OBJ_netscape,4L,1L\n\n#define SN_org          \"ORG\"\n#define LN_org          \"org\"\n#define NID_org         379\n#define OBJ_org         OBJ_iso,3L\n\n#define SN_dod          \"DOD\"\n#define LN_dod          \"dod\"\n#define NID_dod         380\n#define OBJ_dod         OBJ_org,6L\n\n#define SN_iana         \"IANA\"\n#define LN_iana         \"iana\"\n#define NID_iana                381\n#define OBJ_iana                OBJ_dod,1L\n\n#define OBJ_internet            OBJ_iana\n\n#define SN_Directory            \"directory\"\n#define LN_Directory            \"Directory\"\n#define NID_Directory           382\n#define OBJ_Directory           OBJ_internet,1L\n\n#define SN_Management           \"mgmt\"\n#define LN_Management           \"Management\"\n#define NID_Management          383\n#define OBJ_Management          OBJ_internet,2L\n\n#define SN_Experimental         \"experimental\"\n#define LN_Experimental         \"Experimental\"\n#define NID_Experimental                384\n#define OBJ_Experimental                OBJ_internet,3L\n\n#define SN_Private              \"private\"\n#define LN_Private              \"Private\"\n#define NID_Private             385\n#define OBJ_Private             OBJ_internet,4L\n\n#define SN_Security             \"security\"\n#define LN_Security             \"Security\"\n#define NID_Security            386\n#define OBJ_Security            OBJ_internet,5L\n\n#define SN_SNMPv2               \"snmpv2\"\n#define LN_SNMPv2               \"SNMPv2\"\n#define NID_SNMPv2              387\n#define OBJ_SNMPv2              OBJ_internet,6L\n\n#define LN_Mail         \"Mail\"\n#define NID_Mail                388\n#define OBJ_Mail                OBJ_internet,7L\n\n#define SN_Enterprises          \"enterprises\"\n#define LN_Enterprises          \"Enterprises\"\n#define NID_Enterprises         389\n#define OBJ_Enterprises         OBJ_Private,1L\n\n#define SN_dcObject             \"dcobject\"\n#define LN_dcObject             \"dcObject\"\n#define NID_dcObject            390\n#define OBJ_dcObject            OBJ_Enterprises,1466L,344L\n\n#define SN_mime_mhs             \"mime-mhs\"\n#define LN_mime_mhs             \"MIME MHS\"\n#define NID_mime_mhs            504\n#define OBJ_mime_mhs            OBJ_Mail,1L\n\n#define SN_mime_mhs_headings            \"mime-mhs-headings\"\n#define LN_mime_mhs_headings            \"mime-mhs-headings\"\n#define NID_mime_mhs_headings           505\n#define OBJ_mime_mhs_headings           OBJ_mime_mhs,1L\n\n#define SN_mime_mhs_bodies              \"mime-mhs-bodies\"\n#define LN_mime_mhs_bodies              \"mime-mhs-bodies\"\n#define NID_mime_mhs_bodies             506\n#define OBJ_mime_mhs_bodies             OBJ_mime_mhs,2L\n\n#define SN_id_hex_partial_message               \"id-hex-partial-message\"\n#define LN_id_hex_partial_message               \"id-hex-partial-message\"\n#define NID_id_hex_partial_message              507\n#define OBJ_id_hex_partial_message              OBJ_mime_mhs_headings,1L\n\n#define SN_id_hex_multipart_message             \"id-hex-multipart-message\"\n#define LN_id_hex_multipart_message             \"id-hex-multipart-message\"\n#define NID_id_hex_multipart_message            508\n#define OBJ_id_hex_multipart_message            OBJ_mime_mhs_headings,2L\n\n#define SN_zlib_compression             \"ZLIB\"\n#define LN_zlib_compression             \"zlib compression\"\n#define NID_zlib_compression            125\n#define OBJ_zlib_compression            OBJ_id_smime_alg,8L\n\n#define OBJ_csor                2L,16L,840L,1L,101L,3L\n\n#define OBJ_nistAlgorithms              OBJ_csor,4L\n\n#define OBJ_aes         OBJ_nistAlgorithms,1L\n\n#define SN_aes_128_ecb          \"AES-128-ECB\"\n#define LN_aes_128_ecb          \"aes-128-ecb\"\n#define NID_aes_128_ecb         418\n#define OBJ_aes_128_ecb         OBJ_aes,1L\n\n#define SN_aes_128_cbc          \"AES-128-CBC\"\n#define LN_aes_128_cbc          \"aes-128-cbc\"\n#define NID_aes_128_cbc         419\n#define OBJ_aes_128_cbc         OBJ_aes,2L\n\n#define SN_aes_128_ofb128               \"AES-128-OFB\"\n#define LN_aes_128_ofb128               \"aes-128-ofb\"\n#define NID_aes_128_ofb128              420\n#define OBJ_aes_128_ofb128              OBJ_aes,3L\n\n#define SN_aes_128_cfb128               \"AES-128-CFB\"\n#define LN_aes_128_cfb128               \"aes-128-cfb\"\n#define NID_aes_128_cfb128              421\n#define OBJ_aes_128_cfb128              OBJ_aes,4L\n\n#define SN_id_aes128_wrap               \"id-aes128-wrap\"\n#define NID_id_aes128_wrap              788\n#define OBJ_id_aes128_wrap              OBJ_aes,5L\n\n#define SN_aes_128_gcm          \"id-aes128-GCM\"\n#define LN_aes_128_gcm          \"aes-128-gcm\"\n#define NID_aes_128_gcm         895\n#define OBJ_aes_128_gcm         OBJ_aes,6L\n\n#define SN_aes_128_ccm          \"id-aes128-CCM\"\n#define LN_aes_128_ccm          \"aes-128-ccm\"\n#define NID_aes_128_ccm         896\n#define OBJ_aes_128_ccm         OBJ_aes,7L\n\n#define SN_id_aes128_wrap_pad           \"id-aes128-wrap-pad\"\n#define NID_id_aes128_wrap_pad          897\n#define OBJ_id_aes128_wrap_pad          OBJ_aes,8L\n\n#define SN_aes_192_ecb          \"AES-192-ECB\"\n#define LN_aes_192_ecb          \"aes-192-ecb\"\n#define NID_aes_192_ecb         422\n#define OBJ_aes_192_ecb         OBJ_aes,21L\n\n#define SN_aes_192_cbc          \"AES-192-CBC\"\n#define LN_aes_192_cbc          \"aes-192-cbc\"\n#define NID_aes_192_cbc         423\n#define OBJ_aes_192_cbc         OBJ_aes,22L\n\n#define SN_aes_192_ofb128               \"AES-192-OFB\"\n#define LN_aes_192_ofb128               \"aes-192-ofb\"\n#define NID_aes_192_ofb128              424\n#define OBJ_aes_192_ofb128              OBJ_aes,23L\n\n#define SN_aes_192_cfb128               \"AES-192-CFB\"\n#define LN_aes_192_cfb128               \"aes-192-cfb\"\n#define NID_aes_192_cfb128              425\n#define OBJ_aes_192_cfb128              OBJ_aes,24L\n\n#define SN_id_aes192_wrap               \"id-aes192-wrap\"\n#define NID_id_aes192_wrap              789\n#define OBJ_id_aes192_wrap              OBJ_aes,25L\n\n#define SN_aes_192_gcm          \"id-aes192-GCM\"\n#define LN_aes_192_gcm          \"aes-192-gcm\"\n#define NID_aes_192_gcm         898\n#define OBJ_aes_192_gcm         OBJ_aes,26L\n\n#define SN_aes_192_ccm          \"id-aes192-CCM\"\n#define LN_aes_192_ccm          \"aes-192-ccm\"\n#define NID_aes_192_ccm         899\n#define OBJ_aes_192_ccm         OBJ_aes,27L\n\n#define SN_id_aes192_wrap_pad           \"id-aes192-wrap-pad\"\n#define NID_id_aes192_wrap_pad          900\n#define OBJ_id_aes192_wrap_pad          OBJ_aes,28L\n\n#define SN_aes_256_ecb          \"AES-256-ECB\"\n#define LN_aes_256_ecb          \"aes-256-ecb\"\n#define NID_aes_256_ecb         426\n#define OBJ_aes_256_ecb         OBJ_aes,41L\n\n#define SN_aes_256_cbc          \"AES-256-CBC\"\n#define LN_aes_256_cbc          \"aes-256-cbc\"\n#define NID_aes_256_cbc         427\n#define OBJ_aes_256_cbc         OBJ_aes,42L\n\n#define SN_aes_256_ofb128               \"AES-256-OFB\"\n#define LN_aes_256_ofb128               \"aes-256-ofb\"\n#define NID_aes_256_ofb128              428\n#define OBJ_aes_256_ofb128              OBJ_aes,43L\n\n#define SN_aes_256_cfb128               \"AES-256-CFB\"\n#define LN_aes_256_cfb128               \"aes-256-cfb\"\n#define NID_aes_256_cfb128              429\n#define OBJ_aes_256_cfb128              OBJ_aes,44L\n\n#define SN_id_aes256_wrap               \"id-aes256-wrap\"\n#define NID_id_aes256_wrap              790\n#define OBJ_id_aes256_wrap              OBJ_aes,45L\n\n#define SN_aes_256_gcm          \"id-aes256-GCM\"\n#define LN_aes_256_gcm          \"aes-256-gcm\"\n#define NID_aes_256_gcm         901\n#define OBJ_aes_256_gcm         OBJ_aes,46L\n\n#define SN_aes_256_ccm          \"id-aes256-CCM\"\n#define LN_aes_256_ccm          \"aes-256-ccm\"\n#define NID_aes_256_ccm         902\n#define OBJ_aes_256_ccm         OBJ_aes,47L\n\n#define SN_id_aes256_wrap_pad           \"id-aes256-wrap-pad\"\n#define NID_id_aes256_wrap_pad          903\n#define OBJ_id_aes256_wrap_pad          OBJ_aes,48L\n\n#define SN_aes_128_xts          \"AES-128-XTS\"\n#define LN_aes_128_xts          \"aes-128-xts\"\n#define NID_aes_128_xts         913\n#define OBJ_aes_128_xts         OBJ_ieee_siswg,0L,1L,1L\n\n#define SN_aes_256_xts          \"AES-256-XTS\"\n#define LN_aes_256_xts          \"aes-256-xts\"\n#define NID_aes_256_xts         914\n#define OBJ_aes_256_xts         OBJ_ieee_siswg,0L,1L,2L\n\n#define SN_aes_128_cfb1         \"AES-128-CFB1\"\n#define LN_aes_128_cfb1         \"aes-128-cfb1\"\n#define NID_aes_128_cfb1                650\n\n#define SN_aes_192_cfb1         \"AES-192-CFB1\"\n#define LN_aes_192_cfb1         \"aes-192-cfb1\"\n#define NID_aes_192_cfb1                651\n\n#define SN_aes_256_cfb1         \"AES-256-CFB1\"\n#define LN_aes_256_cfb1         \"aes-256-cfb1\"\n#define NID_aes_256_cfb1                652\n\n#define SN_aes_128_cfb8         \"AES-128-CFB8\"\n#define LN_aes_128_cfb8         \"aes-128-cfb8\"\n#define NID_aes_128_cfb8                653\n\n#define SN_aes_192_cfb8         \"AES-192-CFB8\"\n#define LN_aes_192_cfb8         \"aes-192-cfb8\"\n#define NID_aes_192_cfb8                654\n\n#define SN_aes_256_cfb8         \"AES-256-CFB8\"\n#define LN_aes_256_cfb8         \"aes-256-cfb8\"\n#define NID_aes_256_cfb8                655\n\n#define SN_aes_128_ctr          \"AES-128-CTR\"\n#define LN_aes_128_ctr          \"aes-128-ctr\"\n#define NID_aes_128_ctr         904\n\n#define SN_aes_192_ctr          \"AES-192-CTR\"\n#define LN_aes_192_ctr          \"aes-192-ctr\"\n#define NID_aes_192_ctr         905\n\n#define SN_aes_256_ctr          \"AES-256-CTR\"\n#define LN_aes_256_ctr          \"aes-256-ctr\"\n#define NID_aes_256_ctr         906\n\n#define SN_aes_128_ocb          \"AES-128-OCB\"\n#define LN_aes_128_ocb          \"aes-128-ocb\"\n#define NID_aes_128_ocb         958\n\n#define SN_aes_192_ocb          \"AES-192-OCB\"\n#define LN_aes_192_ocb          \"aes-192-ocb\"\n#define NID_aes_192_ocb         959\n\n#define SN_aes_256_ocb          \"AES-256-OCB\"\n#define LN_aes_256_ocb          \"aes-256-ocb\"\n#define NID_aes_256_ocb         960\n\n#define SN_des_cfb1             \"DES-CFB1\"\n#define LN_des_cfb1             \"des-cfb1\"\n#define NID_des_cfb1            656\n\n#define SN_des_cfb8             \"DES-CFB8\"\n#define LN_des_cfb8             \"des-cfb8\"\n#define NID_des_cfb8            657\n\n#define SN_des_ede3_cfb1                \"DES-EDE3-CFB1\"\n#define LN_des_ede3_cfb1                \"des-ede3-cfb1\"\n#define NID_des_ede3_cfb1               658\n\n#define SN_des_ede3_cfb8                \"DES-EDE3-CFB8\"\n#define LN_des_ede3_cfb8                \"des-ede3-cfb8\"\n#define NID_des_ede3_cfb8               659\n\n#define OBJ_nist_hashalgs               OBJ_nistAlgorithms,2L\n\n#define SN_sha256               \"SHA256\"\n#define LN_sha256               \"sha256\"\n#define NID_sha256              672\n#define OBJ_sha256              OBJ_nist_hashalgs,1L\n\n#define SN_sha384               \"SHA384\"\n#define LN_sha384               \"sha384\"\n#define NID_sha384              673\n#define OBJ_sha384              OBJ_nist_hashalgs,2L\n\n#define SN_sha512               \"SHA512\"\n#define LN_sha512               \"sha512\"\n#define NID_sha512              674\n#define OBJ_sha512              OBJ_nist_hashalgs,3L\n\n#define SN_sha224               \"SHA224\"\n#define LN_sha224               \"sha224\"\n#define NID_sha224              675\n#define OBJ_sha224              OBJ_nist_hashalgs,4L\n\n#define SN_sha512_224           \"SHA512-224\"\n#define LN_sha512_224           \"sha512-224\"\n#define NID_sha512_224          1094\n#define OBJ_sha512_224          OBJ_nist_hashalgs,5L\n\n#define SN_sha512_256           \"SHA512-256\"\n#define LN_sha512_256           \"sha512-256\"\n#define NID_sha512_256          1095\n#define OBJ_sha512_256          OBJ_nist_hashalgs,6L\n\n#define SN_sha3_224             \"SHA3-224\"\n#define LN_sha3_224             \"sha3-224\"\n#define NID_sha3_224            1096\n#define OBJ_sha3_224            OBJ_nist_hashalgs,7L\n\n#define SN_sha3_256             \"SHA3-256\"\n#define LN_sha3_256             \"sha3-256\"\n#define NID_sha3_256            1097\n#define OBJ_sha3_256            OBJ_nist_hashalgs,8L\n\n#define SN_sha3_384             \"SHA3-384\"\n#define LN_sha3_384             \"sha3-384\"\n#define NID_sha3_384            1098\n#define OBJ_sha3_384            OBJ_nist_hashalgs,9L\n\n#define SN_sha3_512             \"SHA3-512\"\n#define LN_sha3_512             \"sha3-512\"\n#define NID_sha3_512            1099\n#define OBJ_sha3_512            OBJ_nist_hashalgs,10L\n\n#define SN_shake128             \"SHAKE128\"\n#define LN_shake128             \"shake128\"\n#define NID_shake128            1100\n#define OBJ_shake128            OBJ_nist_hashalgs,11L\n\n#define SN_shake256             \"SHAKE256\"\n#define LN_shake256             \"shake256\"\n#define NID_shake256            1101\n#define OBJ_shake256            OBJ_nist_hashalgs,12L\n\n#define SN_hmac_sha3_224                \"id-hmacWithSHA3-224\"\n#define LN_hmac_sha3_224                \"hmac-sha3-224\"\n#define NID_hmac_sha3_224               1102\n#define OBJ_hmac_sha3_224               OBJ_nist_hashalgs,13L\n\n#define SN_hmac_sha3_256                \"id-hmacWithSHA3-256\"\n#define LN_hmac_sha3_256                \"hmac-sha3-256\"\n#define NID_hmac_sha3_256               1103\n#define OBJ_hmac_sha3_256               OBJ_nist_hashalgs,14L\n\n#define SN_hmac_sha3_384                \"id-hmacWithSHA3-384\"\n#define LN_hmac_sha3_384                \"hmac-sha3-384\"\n#define NID_hmac_sha3_384               1104\n#define OBJ_hmac_sha3_384               OBJ_nist_hashalgs,15L\n\n#define SN_hmac_sha3_512                \"id-hmacWithSHA3-512\"\n#define LN_hmac_sha3_512                \"hmac-sha3-512\"\n#define NID_hmac_sha3_512               1105\n#define OBJ_hmac_sha3_512               OBJ_nist_hashalgs,16L\n\n#define OBJ_dsa_with_sha2               OBJ_nistAlgorithms,3L\n\n#define SN_dsa_with_SHA224              \"dsa_with_SHA224\"\n#define NID_dsa_with_SHA224             802\n#define OBJ_dsa_with_SHA224             OBJ_dsa_with_sha2,1L\n\n#define SN_dsa_with_SHA256              \"dsa_with_SHA256\"\n#define NID_dsa_with_SHA256             803\n#define OBJ_dsa_with_SHA256             OBJ_dsa_with_sha2,2L\n\n#define OBJ_sigAlgs             OBJ_nistAlgorithms,3L\n\n#define SN_dsa_with_SHA384              \"id-dsa-with-sha384\"\n#define LN_dsa_with_SHA384              \"dsa_with_SHA384\"\n#define NID_dsa_with_SHA384             1106\n#define OBJ_dsa_with_SHA384             OBJ_sigAlgs,3L\n\n#define SN_dsa_with_SHA512              \"id-dsa-with-sha512\"\n#define LN_dsa_with_SHA512              \"dsa_with_SHA512\"\n#define NID_dsa_with_SHA512             1107\n#define OBJ_dsa_with_SHA512             OBJ_sigAlgs,4L\n\n#define SN_dsa_with_SHA3_224            \"id-dsa-with-sha3-224\"\n#define LN_dsa_with_SHA3_224            \"dsa_with_SHA3-224\"\n#define NID_dsa_with_SHA3_224           1108\n#define OBJ_dsa_with_SHA3_224           OBJ_sigAlgs,5L\n\n#define SN_dsa_with_SHA3_256            \"id-dsa-with-sha3-256\"\n#define LN_dsa_with_SHA3_256            \"dsa_with_SHA3-256\"\n#define NID_dsa_with_SHA3_256           1109\n#define OBJ_dsa_with_SHA3_256           OBJ_sigAlgs,6L\n\n#define SN_dsa_with_SHA3_384            \"id-dsa-with-sha3-384\"\n#define LN_dsa_with_SHA3_384            \"dsa_with_SHA3-384\"\n#define NID_dsa_with_SHA3_384           1110\n#define OBJ_dsa_with_SHA3_384           OBJ_sigAlgs,7L\n\n#define SN_dsa_with_SHA3_512            \"id-dsa-with-sha3-512\"\n#define LN_dsa_with_SHA3_512            \"dsa_with_SHA3-512\"\n#define NID_dsa_with_SHA3_512           1111\n#define OBJ_dsa_with_SHA3_512           OBJ_sigAlgs,8L\n\n#define SN_ecdsa_with_SHA3_224          \"id-ecdsa-with-sha3-224\"\n#define LN_ecdsa_with_SHA3_224          \"ecdsa_with_SHA3-224\"\n#define NID_ecdsa_with_SHA3_224         1112\n#define OBJ_ecdsa_with_SHA3_224         OBJ_sigAlgs,9L\n\n#define SN_ecdsa_with_SHA3_256          \"id-ecdsa-with-sha3-256\"\n#define LN_ecdsa_with_SHA3_256          \"ecdsa_with_SHA3-256\"\n#define NID_ecdsa_with_SHA3_256         1113\n#define OBJ_ecdsa_with_SHA3_256         OBJ_sigAlgs,10L\n\n#define SN_ecdsa_with_SHA3_384          \"id-ecdsa-with-sha3-384\"\n#define LN_ecdsa_with_SHA3_384          \"ecdsa_with_SHA3-384\"\n#define NID_ecdsa_with_SHA3_384         1114\n#define OBJ_ecdsa_with_SHA3_384         OBJ_sigAlgs,11L\n\n#define SN_ecdsa_with_SHA3_512          \"id-ecdsa-with-sha3-512\"\n#define LN_ecdsa_with_SHA3_512          \"ecdsa_with_SHA3-512\"\n#define NID_ecdsa_with_SHA3_512         1115\n#define OBJ_ecdsa_with_SHA3_512         OBJ_sigAlgs,12L\n\n#define SN_RSA_SHA3_224         \"id-rsassa-pkcs1-v1_5-with-sha3-224\"\n#define LN_RSA_SHA3_224         \"RSA-SHA3-224\"\n#define NID_RSA_SHA3_224                1116\n#define OBJ_RSA_SHA3_224                OBJ_sigAlgs,13L\n\n#define SN_RSA_SHA3_256         \"id-rsassa-pkcs1-v1_5-with-sha3-256\"\n#define LN_RSA_SHA3_256         \"RSA-SHA3-256\"\n#define NID_RSA_SHA3_256                1117\n#define OBJ_RSA_SHA3_256                OBJ_sigAlgs,14L\n\n#define SN_RSA_SHA3_384         \"id-rsassa-pkcs1-v1_5-with-sha3-384\"\n#define LN_RSA_SHA3_384         \"RSA-SHA3-384\"\n#define NID_RSA_SHA3_384                1118\n#define OBJ_RSA_SHA3_384                OBJ_sigAlgs,15L\n\n#define SN_RSA_SHA3_512         \"id-rsassa-pkcs1-v1_5-with-sha3-512\"\n#define LN_RSA_SHA3_512         \"RSA-SHA3-512\"\n#define NID_RSA_SHA3_512                1119\n#define OBJ_RSA_SHA3_512                OBJ_sigAlgs,16L\n\n#define SN_hold_instruction_code                \"holdInstructionCode\"\n#define LN_hold_instruction_code                \"Hold Instruction Code\"\n#define NID_hold_instruction_code               430\n#define OBJ_hold_instruction_code               OBJ_id_ce,23L\n\n#define OBJ_holdInstruction             OBJ_X9_57,2L\n\n#define SN_hold_instruction_none                \"holdInstructionNone\"\n#define LN_hold_instruction_none                \"Hold Instruction None\"\n#define NID_hold_instruction_none               431\n#define OBJ_hold_instruction_none               OBJ_holdInstruction,1L\n\n#define SN_hold_instruction_call_issuer         \"holdInstructionCallIssuer\"\n#define LN_hold_instruction_call_issuer         \"Hold Instruction Call Issuer\"\n#define NID_hold_instruction_call_issuer                432\n#define OBJ_hold_instruction_call_issuer                OBJ_holdInstruction,2L\n\n#define SN_hold_instruction_reject              \"holdInstructionReject\"\n#define LN_hold_instruction_reject              \"Hold Instruction Reject\"\n#define NID_hold_instruction_reject             433\n#define OBJ_hold_instruction_reject             OBJ_holdInstruction,3L\n\n#define SN_data         \"data\"\n#define NID_data                434\n#define OBJ_data                OBJ_itu_t,9L\n\n#define SN_pss          \"pss\"\n#define NID_pss         435\n#define OBJ_pss         OBJ_data,2342L\n\n#define SN_ucl          \"ucl\"\n#define NID_ucl         436\n#define OBJ_ucl         OBJ_pss,19200300L\n\n#define SN_pilot                \"pilot\"\n#define NID_pilot               437\n#define OBJ_pilot               OBJ_ucl,100L\n\n#define LN_pilotAttributeType           \"pilotAttributeType\"\n#define NID_pilotAttributeType          438\n#define OBJ_pilotAttributeType          OBJ_pilot,1L\n\n#define LN_pilotAttributeSyntax         \"pilotAttributeSyntax\"\n#define NID_pilotAttributeSyntax                439\n#define OBJ_pilotAttributeSyntax                OBJ_pilot,3L\n\n#define LN_pilotObjectClass             \"pilotObjectClass\"\n#define NID_pilotObjectClass            440\n#define OBJ_pilotObjectClass            OBJ_pilot,4L\n\n#define LN_pilotGroups          \"pilotGroups\"\n#define NID_pilotGroups         441\n#define OBJ_pilotGroups         OBJ_pilot,10L\n\n#define LN_iA5StringSyntax              \"iA5StringSyntax\"\n#define NID_iA5StringSyntax             442\n#define OBJ_iA5StringSyntax             OBJ_pilotAttributeSyntax,4L\n\n#define LN_caseIgnoreIA5StringSyntax            \"caseIgnoreIA5StringSyntax\"\n#define NID_caseIgnoreIA5StringSyntax           443\n#define OBJ_caseIgnoreIA5StringSyntax           OBJ_pilotAttributeSyntax,5L\n\n#define LN_pilotObject          \"pilotObject\"\n#define NID_pilotObject         444\n#define OBJ_pilotObject         OBJ_pilotObjectClass,3L\n\n#define LN_pilotPerson          \"pilotPerson\"\n#define NID_pilotPerson         445\n#define OBJ_pilotPerson         OBJ_pilotObjectClass,4L\n\n#define SN_account              \"account\"\n#define NID_account             446\n#define OBJ_account             OBJ_pilotObjectClass,5L\n\n#define SN_document             \"document\"\n#define NID_document            447\n#define OBJ_document            OBJ_pilotObjectClass,6L\n\n#define SN_room         \"room\"\n#define NID_room                448\n#define OBJ_room                OBJ_pilotObjectClass,7L\n\n#define LN_documentSeries               \"documentSeries\"\n#define NID_documentSeries              449\n#define OBJ_documentSeries              OBJ_pilotObjectClass,9L\n\n#define SN_Domain               \"domain\"\n#define LN_Domain               \"Domain\"\n#define NID_Domain              392\n#define OBJ_Domain              OBJ_pilotObjectClass,13L\n\n#define LN_rFC822localPart              \"rFC822localPart\"\n#define NID_rFC822localPart             450\n#define OBJ_rFC822localPart             OBJ_pilotObjectClass,14L\n\n#define LN_dNSDomain            \"dNSDomain\"\n#define NID_dNSDomain           451\n#define OBJ_dNSDomain           OBJ_pilotObjectClass,15L\n\n#define LN_domainRelatedObject          \"domainRelatedObject\"\n#define NID_domainRelatedObject         452\n#define OBJ_domainRelatedObject         OBJ_pilotObjectClass,17L\n\n#define LN_friendlyCountry              \"friendlyCountry\"\n#define NID_friendlyCountry             453\n#define OBJ_friendlyCountry             OBJ_pilotObjectClass,18L\n\n#define LN_simpleSecurityObject         \"simpleSecurityObject\"\n#define NID_simpleSecurityObject                454\n#define OBJ_simpleSecurityObject                OBJ_pilotObjectClass,19L\n\n#define LN_pilotOrganization            \"pilotOrganization\"\n#define NID_pilotOrganization           455\n#define OBJ_pilotOrganization           OBJ_pilotObjectClass,20L\n\n#define LN_pilotDSA             \"pilotDSA\"\n#define NID_pilotDSA            456\n#define OBJ_pilotDSA            OBJ_pilotObjectClass,21L\n\n#define LN_qualityLabelledData          \"qualityLabelledData\"\n#define NID_qualityLabelledData         457\n#define OBJ_qualityLabelledData         OBJ_pilotObjectClass,22L\n\n#define SN_userId               \"UID\"\n#define LN_userId               \"userId\"\n#define NID_userId              458\n#define OBJ_userId              OBJ_pilotAttributeType,1L\n\n#define LN_textEncodedORAddress         \"textEncodedORAddress\"\n#define NID_textEncodedORAddress                459\n#define OBJ_textEncodedORAddress                OBJ_pilotAttributeType,2L\n\n#define SN_rfc822Mailbox                \"mail\"\n#define LN_rfc822Mailbox                \"rfc822Mailbox\"\n#define NID_rfc822Mailbox               460\n#define OBJ_rfc822Mailbox               OBJ_pilotAttributeType,3L\n\n#define SN_info         \"info\"\n#define NID_info                461\n#define OBJ_info                OBJ_pilotAttributeType,4L\n\n#define LN_favouriteDrink               \"favouriteDrink\"\n#define NID_favouriteDrink              462\n#define OBJ_favouriteDrink              OBJ_pilotAttributeType,5L\n\n#define LN_roomNumber           \"roomNumber\"\n#define NID_roomNumber          463\n#define OBJ_roomNumber          OBJ_pilotAttributeType,6L\n\n#define SN_photo                \"photo\"\n#define NID_photo               464\n#define OBJ_photo               OBJ_pilotAttributeType,7L\n\n#define LN_userClass            \"userClass\"\n#define NID_userClass           465\n#define OBJ_userClass           OBJ_pilotAttributeType,8L\n\n#define SN_host         \"host\"\n#define NID_host                466\n#define OBJ_host                OBJ_pilotAttributeType,9L\n\n#define SN_manager              \"manager\"\n#define NID_manager             467\n#define OBJ_manager             OBJ_pilotAttributeType,10L\n\n#define LN_documentIdentifier           \"documentIdentifier\"\n#define NID_documentIdentifier          468\n#define OBJ_documentIdentifier          OBJ_pilotAttributeType,11L\n\n#define LN_documentTitle                \"documentTitle\"\n#define NID_documentTitle               469\n#define OBJ_documentTitle               OBJ_pilotAttributeType,12L\n\n#define LN_documentVersion              \"documentVersion\"\n#define NID_documentVersion             470\n#define OBJ_documentVersion             OBJ_pilotAttributeType,13L\n\n#define LN_documentAuthor               \"documentAuthor\"\n#define NID_documentAuthor              471\n#define OBJ_documentAuthor              OBJ_pilotAttributeType,14L\n\n#define LN_documentLocation             \"documentLocation\"\n#define NID_documentLocation            472\n#define OBJ_documentLocation            OBJ_pilotAttributeType,15L\n\n#define LN_homeTelephoneNumber          \"homeTelephoneNumber\"\n#define NID_homeTelephoneNumber         473\n#define OBJ_homeTelephoneNumber         OBJ_pilotAttributeType,20L\n\n#define SN_secretary            \"secretary\"\n#define NID_secretary           474\n#define OBJ_secretary           OBJ_pilotAttributeType,21L\n\n#define LN_otherMailbox         \"otherMailbox\"\n#define NID_otherMailbox                475\n#define OBJ_otherMailbox                OBJ_pilotAttributeType,22L\n\n#define LN_lastModifiedTime             \"lastModifiedTime\"\n#define NID_lastModifiedTime            476\n#define OBJ_lastModifiedTime            OBJ_pilotAttributeType,23L\n\n#define LN_lastModifiedBy               \"lastModifiedBy\"\n#define NID_lastModifiedBy              477\n#define OBJ_lastModifiedBy              OBJ_pilotAttributeType,24L\n\n#define SN_domainComponent              \"DC\"\n#define LN_domainComponent              \"domainComponent\"\n#define NID_domainComponent             391\n#define OBJ_domainComponent             OBJ_pilotAttributeType,25L\n\n#define LN_aRecord              \"aRecord\"\n#define NID_aRecord             478\n#define OBJ_aRecord             OBJ_pilotAttributeType,26L\n\n#define LN_pilotAttributeType27         \"pilotAttributeType27\"\n#define NID_pilotAttributeType27                479\n#define OBJ_pilotAttributeType27                OBJ_pilotAttributeType,27L\n\n#define LN_mXRecord             \"mXRecord\"\n#define NID_mXRecord            480\n#define OBJ_mXRecord            OBJ_pilotAttributeType,28L\n\n#define LN_nSRecord             \"nSRecord\"\n#define NID_nSRecord            481\n#define OBJ_nSRecord            OBJ_pilotAttributeType,29L\n\n#define LN_sOARecord            \"sOARecord\"\n#define NID_sOARecord           482\n#define OBJ_sOARecord           OBJ_pilotAttributeType,30L\n\n#define LN_cNAMERecord          \"cNAMERecord\"\n#define NID_cNAMERecord         483\n#define OBJ_cNAMERecord         OBJ_pilotAttributeType,31L\n\n#define LN_associatedDomain             \"associatedDomain\"\n#define NID_associatedDomain            484\n#define OBJ_associatedDomain            OBJ_pilotAttributeType,37L\n\n#define LN_associatedName               \"associatedName\"\n#define NID_associatedName              485\n#define OBJ_associatedName              OBJ_pilotAttributeType,38L\n\n#define LN_homePostalAddress            \"homePostalAddress\"\n#define NID_homePostalAddress           486\n#define OBJ_homePostalAddress           OBJ_pilotAttributeType,39L\n\n#define LN_personalTitle                \"personalTitle\"\n#define NID_personalTitle               487\n#define OBJ_personalTitle               OBJ_pilotAttributeType,40L\n\n#define LN_mobileTelephoneNumber                \"mobileTelephoneNumber\"\n#define NID_mobileTelephoneNumber               488\n#define OBJ_mobileTelephoneNumber               OBJ_pilotAttributeType,41L\n\n#define LN_pagerTelephoneNumber         \"pagerTelephoneNumber\"\n#define NID_pagerTelephoneNumber                489\n#define OBJ_pagerTelephoneNumber                OBJ_pilotAttributeType,42L\n\n#define LN_friendlyCountryName          \"friendlyCountryName\"\n#define NID_friendlyCountryName         490\n#define OBJ_friendlyCountryName         OBJ_pilotAttributeType,43L\n\n#define SN_uniqueIdentifier             \"uid\"\n#define LN_uniqueIdentifier             \"uniqueIdentifier\"\n#define NID_uniqueIdentifier            102\n#define OBJ_uniqueIdentifier            OBJ_pilotAttributeType,44L\n\n#define LN_organizationalStatus         \"organizationalStatus\"\n#define NID_organizationalStatus                491\n#define OBJ_organizationalStatus                OBJ_pilotAttributeType,45L\n\n#define LN_janetMailbox         \"janetMailbox\"\n#define NID_janetMailbox                492\n#define OBJ_janetMailbox                OBJ_pilotAttributeType,46L\n\n#define LN_mailPreferenceOption         \"mailPreferenceOption\"\n#define NID_mailPreferenceOption                493\n#define OBJ_mailPreferenceOption                OBJ_pilotAttributeType,47L\n\n#define LN_buildingName         \"buildingName\"\n#define NID_buildingName                494\n#define OBJ_buildingName                OBJ_pilotAttributeType,48L\n\n#define LN_dSAQuality           \"dSAQuality\"\n#define NID_dSAQuality          495\n#define OBJ_dSAQuality          OBJ_pilotAttributeType,49L\n\n#define LN_singleLevelQuality           \"singleLevelQuality\"\n#define NID_singleLevelQuality          496\n#define OBJ_singleLevelQuality          OBJ_pilotAttributeType,50L\n\n#define LN_subtreeMinimumQuality                \"subtreeMinimumQuality\"\n#define NID_subtreeMinimumQuality               497\n#define OBJ_subtreeMinimumQuality               OBJ_pilotAttributeType,51L\n\n#define LN_subtreeMaximumQuality                \"subtreeMaximumQuality\"\n#define NID_subtreeMaximumQuality               498\n#define OBJ_subtreeMaximumQuality               OBJ_pilotAttributeType,52L\n\n#define LN_personalSignature            \"personalSignature\"\n#define NID_personalSignature           499\n#define OBJ_personalSignature           OBJ_pilotAttributeType,53L\n\n#define LN_dITRedirect          \"dITRedirect\"\n#define NID_dITRedirect         500\n#define OBJ_dITRedirect         OBJ_pilotAttributeType,54L\n\n#define SN_audio                \"audio\"\n#define NID_audio               501\n#define OBJ_audio               OBJ_pilotAttributeType,55L\n\n#define LN_documentPublisher            \"documentPublisher\"\n#define NID_documentPublisher           502\n#define OBJ_documentPublisher           OBJ_pilotAttributeType,56L\n\n#define SN_id_set               \"id-set\"\n#define LN_id_set               \"Secure Electronic Transactions\"\n#define NID_id_set              512\n#define OBJ_id_set              OBJ_international_organizations,42L\n\n#define SN_set_ctype            \"set-ctype\"\n#define LN_set_ctype            \"content types\"\n#define NID_set_ctype           513\n#define OBJ_set_ctype           OBJ_id_set,0L\n\n#define SN_set_msgExt           \"set-msgExt\"\n#define LN_set_msgExt           \"message extensions\"\n#define NID_set_msgExt          514\n#define OBJ_set_msgExt          OBJ_id_set,1L\n\n#define SN_set_attr             \"set-attr\"\n#define NID_set_attr            515\n#define OBJ_set_attr            OBJ_id_set,3L\n\n#define SN_set_policy           \"set-policy\"\n#define NID_set_policy          516\n#define OBJ_set_policy          OBJ_id_set,5L\n\n#define SN_set_certExt          \"set-certExt\"\n#define LN_set_certExt          \"certificate extensions\"\n#define NID_set_certExt         517\n#define OBJ_set_certExt         OBJ_id_set,7L\n\n#define SN_set_brand            \"set-brand\"\n#define NID_set_brand           518\n#define OBJ_set_brand           OBJ_id_set,8L\n\n#define SN_setct_PANData                \"setct-PANData\"\n#define NID_setct_PANData               519\n#define OBJ_setct_PANData               OBJ_set_ctype,0L\n\n#define SN_setct_PANToken               \"setct-PANToken\"\n#define NID_setct_PANToken              520\n#define OBJ_setct_PANToken              OBJ_set_ctype,1L\n\n#define SN_setct_PANOnly                \"setct-PANOnly\"\n#define NID_setct_PANOnly               521\n#define OBJ_setct_PANOnly               OBJ_set_ctype,2L\n\n#define SN_setct_OIData         \"setct-OIData\"\n#define NID_setct_OIData                522\n#define OBJ_setct_OIData                OBJ_set_ctype,3L\n\n#define SN_setct_PI             \"setct-PI\"\n#define NID_setct_PI            523\n#define OBJ_setct_PI            OBJ_set_ctype,4L\n\n#define SN_setct_PIData         \"setct-PIData\"\n#define NID_setct_PIData                524\n#define OBJ_setct_PIData                OBJ_set_ctype,5L\n\n#define SN_setct_PIDataUnsigned         \"setct-PIDataUnsigned\"\n#define NID_setct_PIDataUnsigned                525\n#define OBJ_setct_PIDataUnsigned                OBJ_set_ctype,6L\n\n#define SN_setct_HODInput               \"setct-HODInput\"\n#define NID_setct_HODInput              526\n#define OBJ_setct_HODInput              OBJ_set_ctype,7L\n\n#define SN_setct_AuthResBaggage         \"setct-AuthResBaggage\"\n#define NID_setct_AuthResBaggage                527\n#define OBJ_setct_AuthResBaggage                OBJ_set_ctype,8L\n\n#define SN_setct_AuthRevReqBaggage              \"setct-AuthRevReqBaggage\"\n#define NID_setct_AuthRevReqBaggage             528\n#define OBJ_setct_AuthRevReqBaggage             OBJ_set_ctype,9L\n\n#define SN_setct_AuthRevResBaggage              \"setct-AuthRevResBaggage\"\n#define NID_setct_AuthRevResBaggage             529\n#define OBJ_setct_AuthRevResBaggage             OBJ_set_ctype,10L\n\n#define SN_setct_CapTokenSeq            \"setct-CapTokenSeq\"\n#define NID_setct_CapTokenSeq           530\n#define OBJ_setct_CapTokenSeq           OBJ_set_ctype,11L\n\n#define SN_setct_PInitResData           \"setct-PInitResData\"\n#define NID_setct_PInitResData          531\n#define OBJ_setct_PInitResData          OBJ_set_ctype,12L\n\n#define SN_setct_PI_TBS         \"setct-PI-TBS\"\n#define NID_setct_PI_TBS                532\n#define OBJ_setct_PI_TBS                OBJ_set_ctype,13L\n\n#define SN_setct_PResData               \"setct-PResData\"\n#define NID_setct_PResData              533\n#define OBJ_setct_PResData              OBJ_set_ctype,14L\n\n#define SN_setct_AuthReqTBS             \"setct-AuthReqTBS\"\n#define NID_setct_AuthReqTBS            534\n#define OBJ_setct_AuthReqTBS            OBJ_set_ctype,16L\n\n#define SN_setct_AuthResTBS             \"setct-AuthResTBS\"\n#define NID_setct_AuthResTBS            535\n#define OBJ_setct_AuthResTBS            OBJ_set_ctype,17L\n\n#define SN_setct_AuthResTBSX            \"setct-AuthResTBSX\"\n#define NID_setct_AuthResTBSX           536\n#define OBJ_setct_AuthResTBSX           OBJ_set_ctype,18L\n\n#define SN_setct_AuthTokenTBS           \"setct-AuthTokenTBS\"\n#define NID_setct_AuthTokenTBS          537\n#define OBJ_setct_AuthTokenTBS          OBJ_set_ctype,19L\n\n#define SN_setct_CapTokenData           \"setct-CapTokenData\"\n#define NID_setct_CapTokenData          538\n#define OBJ_setct_CapTokenData          OBJ_set_ctype,20L\n\n#define SN_setct_CapTokenTBS            \"setct-CapTokenTBS\"\n#define NID_setct_CapTokenTBS           539\n#define OBJ_setct_CapTokenTBS           OBJ_set_ctype,21L\n\n#define SN_setct_AcqCardCodeMsg         \"setct-AcqCardCodeMsg\"\n#define NID_setct_AcqCardCodeMsg                540\n#define OBJ_setct_AcqCardCodeMsg                OBJ_set_ctype,22L\n\n#define SN_setct_AuthRevReqTBS          \"setct-AuthRevReqTBS\"\n#define NID_setct_AuthRevReqTBS         541\n#define OBJ_setct_AuthRevReqTBS         OBJ_set_ctype,23L\n\n#define SN_setct_AuthRevResData         \"setct-AuthRevResData\"\n#define NID_setct_AuthRevResData                542\n#define OBJ_setct_AuthRevResData                OBJ_set_ctype,24L\n\n#define SN_setct_AuthRevResTBS          \"setct-AuthRevResTBS\"\n#define NID_setct_AuthRevResTBS         543\n#define OBJ_setct_AuthRevResTBS         OBJ_set_ctype,25L\n\n#define SN_setct_CapReqTBS              \"setct-CapReqTBS\"\n#define NID_setct_CapReqTBS             544\n#define OBJ_setct_CapReqTBS             OBJ_set_ctype,26L\n\n#define SN_setct_CapReqTBSX             \"setct-CapReqTBSX\"\n#define NID_setct_CapReqTBSX            545\n#define OBJ_setct_CapReqTBSX            OBJ_set_ctype,27L\n\n#define SN_setct_CapResData             \"setct-CapResData\"\n#define NID_setct_CapResData            546\n#define OBJ_setct_CapResData            OBJ_set_ctype,28L\n\n#define SN_setct_CapRevReqTBS           \"setct-CapRevReqTBS\"\n#define NID_setct_CapRevReqTBS          547\n#define OBJ_setct_CapRevReqTBS          OBJ_set_ctype,29L\n\n#define SN_setct_CapRevReqTBSX          \"setct-CapRevReqTBSX\"\n#define NID_setct_CapRevReqTBSX         548\n#define OBJ_setct_CapRevReqTBSX         OBJ_set_ctype,30L\n\n#define SN_setct_CapRevResData          \"setct-CapRevResData\"\n#define NID_setct_CapRevResData         549\n#define OBJ_setct_CapRevResData         OBJ_set_ctype,31L\n\n#define SN_setct_CredReqTBS             \"setct-CredReqTBS\"\n#define NID_setct_CredReqTBS            550\n#define OBJ_setct_CredReqTBS            OBJ_set_ctype,32L\n\n#define SN_setct_CredReqTBSX            \"setct-CredReqTBSX\"\n#define NID_setct_CredReqTBSX           551\n#define OBJ_setct_CredReqTBSX           OBJ_set_ctype,33L\n\n#define SN_setct_CredResData            \"setct-CredResData\"\n#define NID_setct_CredResData           552\n#define OBJ_setct_CredResData           OBJ_set_ctype,34L\n\n#define SN_setct_CredRevReqTBS          \"setct-CredRevReqTBS\"\n#define NID_setct_CredRevReqTBS         553\n#define OBJ_setct_CredRevReqTBS         OBJ_set_ctype,35L\n\n#define SN_setct_CredRevReqTBSX         \"setct-CredRevReqTBSX\"\n#define NID_setct_CredRevReqTBSX                554\n#define OBJ_setct_CredRevReqTBSX                OBJ_set_ctype,36L\n\n#define SN_setct_CredRevResData         \"setct-CredRevResData\"\n#define NID_setct_CredRevResData                555\n#define OBJ_setct_CredRevResData                OBJ_set_ctype,37L\n\n#define SN_setct_PCertReqData           \"setct-PCertReqData\"\n#define NID_setct_PCertReqData          556\n#define OBJ_setct_PCertReqData          OBJ_set_ctype,38L\n\n#define SN_setct_PCertResTBS            \"setct-PCertResTBS\"\n#define NID_setct_PCertResTBS           557\n#define OBJ_setct_PCertResTBS           OBJ_set_ctype,39L\n\n#define SN_setct_BatchAdminReqData              \"setct-BatchAdminReqData\"\n#define NID_setct_BatchAdminReqData             558\n#define OBJ_setct_BatchAdminReqData             OBJ_set_ctype,40L\n\n#define SN_setct_BatchAdminResData              \"setct-BatchAdminResData\"\n#define NID_setct_BatchAdminResData             559\n#define OBJ_setct_BatchAdminResData             OBJ_set_ctype,41L\n\n#define SN_setct_CardCInitResTBS                \"setct-CardCInitResTBS\"\n#define NID_setct_CardCInitResTBS               560\n#define OBJ_setct_CardCInitResTBS               OBJ_set_ctype,42L\n\n#define SN_setct_MeAqCInitResTBS                \"setct-MeAqCInitResTBS\"\n#define NID_setct_MeAqCInitResTBS               561\n#define OBJ_setct_MeAqCInitResTBS               OBJ_set_ctype,43L\n\n#define SN_setct_RegFormResTBS          \"setct-RegFormResTBS\"\n#define NID_setct_RegFormResTBS         562\n#define OBJ_setct_RegFormResTBS         OBJ_set_ctype,44L\n\n#define SN_setct_CertReqData            \"setct-CertReqData\"\n#define NID_setct_CertReqData           563\n#define OBJ_setct_CertReqData           OBJ_set_ctype,45L\n\n#define SN_setct_CertReqTBS             \"setct-CertReqTBS\"\n#define NID_setct_CertReqTBS            564\n#define OBJ_setct_CertReqTBS            OBJ_set_ctype,46L\n\n#define SN_setct_CertResData            \"setct-CertResData\"\n#define NID_setct_CertResData           565\n#define OBJ_setct_CertResData           OBJ_set_ctype,47L\n\n#define SN_setct_CertInqReqTBS          \"setct-CertInqReqTBS\"\n#define NID_setct_CertInqReqTBS         566\n#define OBJ_setct_CertInqReqTBS         OBJ_set_ctype,48L\n\n#define SN_setct_ErrorTBS               \"setct-ErrorTBS\"\n#define NID_setct_ErrorTBS              567\n#define OBJ_setct_ErrorTBS              OBJ_set_ctype,49L\n\n#define SN_setct_PIDualSignedTBE                \"setct-PIDualSignedTBE\"\n#define NID_setct_PIDualSignedTBE               568\n#define OBJ_setct_PIDualSignedTBE               OBJ_set_ctype,50L\n\n#define SN_setct_PIUnsignedTBE          \"setct-PIUnsignedTBE\"\n#define NID_setct_PIUnsignedTBE         569\n#define OBJ_setct_PIUnsignedTBE         OBJ_set_ctype,51L\n\n#define SN_setct_AuthReqTBE             \"setct-AuthReqTBE\"\n#define NID_setct_AuthReqTBE            570\n#define OBJ_setct_AuthReqTBE            OBJ_set_ctype,52L\n\n#define SN_setct_AuthResTBE             \"setct-AuthResTBE\"\n#define NID_setct_AuthResTBE            571\n#define OBJ_setct_AuthResTBE            OBJ_set_ctype,53L\n\n#define SN_setct_AuthResTBEX            \"setct-AuthResTBEX\"\n#define NID_setct_AuthResTBEX           572\n#define OBJ_setct_AuthResTBEX           OBJ_set_ctype,54L\n\n#define SN_setct_AuthTokenTBE           \"setct-AuthTokenTBE\"\n#define NID_setct_AuthTokenTBE          573\n#define OBJ_setct_AuthTokenTBE          OBJ_set_ctype,55L\n\n#define SN_setct_CapTokenTBE            \"setct-CapTokenTBE\"\n#define NID_setct_CapTokenTBE           574\n#define OBJ_setct_CapTokenTBE           OBJ_set_ctype,56L\n\n#define SN_setct_CapTokenTBEX           \"setct-CapTokenTBEX\"\n#define NID_setct_CapTokenTBEX          575\n#define OBJ_setct_CapTokenTBEX          OBJ_set_ctype,57L\n\n#define SN_setct_AcqCardCodeMsgTBE              \"setct-AcqCardCodeMsgTBE\"\n#define NID_setct_AcqCardCodeMsgTBE             576\n#define OBJ_setct_AcqCardCodeMsgTBE             OBJ_set_ctype,58L\n\n#define SN_setct_AuthRevReqTBE          \"setct-AuthRevReqTBE\"\n#define NID_setct_AuthRevReqTBE         577\n#define OBJ_setct_AuthRevReqTBE         OBJ_set_ctype,59L\n\n#define SN_setct_AuthRevResTBE          \"setct-AuthRevResTBE\"\n#define NID_setct_AuthRevResTBE         578\n#define OBJ_setct_AuthRevResTBE         OBJ_set_ctype,60L\n\n#define SN_setct_AuthRevResTBEB         \"setct-AuthRevResTBEB\"\n#define NID_setct_AuthRevResTBEB                579\n#define OBJ_setct_AuthRevResTBEB                OBJ_set_ctype,61L\n\n#define SN_setct_CapReqTBE              \"setct-CapReqTBE\"\n#define NID_setct_CapReqTBE             580\n#define OBJ_setct_CapReqTBE             OBJ_set_ctype,62L\n\n#define SN_setct_CapReqTBEX             \"setct-CapReqTBEX\"\n#define NID_setct_CapReqTBEX            581\n#define OBJ_setct_CapReqTBEX            OBJ_set_ctype,63L\n\n#define SN_setct_CapResTBE              \"setct-CapResTBE\"\n#define NID_setct_CapResTBE             582\n#define OBJ_setct_CapResTBE             OBJ_set_ctype,64L\n\n#define SN_setct_CapRevReqTBE           \"setct-CapRevReqTBE\"\n#define NID_setct_CapRevReqTBE          583\n#define OBJ_setct_CapRevReqTBE          OBJ_set_ctype,65L\n\n#define SN_setct_CapRevReqTBEX          \"setct-CapRevReqTBEX\"\n#define NID_setct_CapRevReqTBEX         584\n#define OBJ_setct_CapRevReqTBEX         OBJ_set_ctype,66L\n\n#define SN_setct_CapRevResTBE           \"setct-CapRevResTBE\"\n#define NID_setct_CapRevResTBE          585\n#define OBJ_setct_CapRevResTBE          OBJ_set_ctype,67L\n\n#define SN_setct_CredReqTBE             \"setct-CredReqTBE\"\n#define NID_setct_CredReqTBE            586\n#define OBJ_setct_CredReqTBE            OBJ_set_ctype,68L\n\n#define SN_setct_CredReqTBEX            \"setct-CredReqTBEX\"\n#define NID_setct_CredReqTBEX           587\n#define OBJ_setct_CredReqTBEX           OBJ_set_ctype,69L\n\n#define SN_setct_CredResTBE             \"setct-CredResTBE\"\n#define NID_setct_CredResTBE            588\n#define OBJ_setct_CredResTBE            OBJ_set_ctype,70L\n\n#define SN_setct_CredRevReqTBE          \"setct-CredRevReqTBE\"\n#define NID_setct_CredRevReqTBE         589\n#define OBJ_setct_CredRevReqTBE         OBJ_set_ctype,71L\n\n#define SN_setct_CredRevReqTBEX         \"setct-CredRevReqTBEX\"\n#define NID_setct_CredRevReqTBEX                590\n#define OBJ_setct_CredRevReqTBEX                OBJ_set_ctype,72L\n\n#define SN_setct_CredRevResTBE          \"setct-CredRevResTBE\"\n#define NID_setct_CredRevResTBE         591\n#define OBJ_setct_CredRevResTBE         OBJ_set_ctype,73L\n\n#define SN_setct_BatchAdminReqTBE               \"setct-BatchAdminReqTBE\"\n#define NID_setct_BatchAdminReqTBE              592\n#define OBJ_setct_BatchAdminReqTBE              OBJ_set_ctype,74L\n\n#define SN_setct_BatchAdminResTBE               \"setct-BatchAdminResTBE\"\n#define NID_setct_BatchAdminResTBE              593\n#define OBJ_setct_BatchAdminResTBE              OBJ_set_ctype,75L\n\n#define SN_setct_RegFormReqTBE          \"setct-RegFormReqTBE\"\n#define NID_setct_RegFormReqTBE         594\n#define OBJ_setct_RegFormReqTBE         OBJ_set_ctype,76L\n\n#define SN_setct_CertReqTBE             \"setct-CertReqTBE\"\n#define NID_setct_CertReqTBE            595\n#define OBJ_setct_CertReqTBE            OBJ_set_ctype,77L\n\n#define SN_setct_CertReqTBEX            \"setct-CertReqTBEX\"\n#define NID_setct_CertReqTBEX           596\n#define OBJ_setct_CertReqTBEX           OBJ_set_ctype,78L\n\n#define SN_setct_CertResTBE             \"setct-CertResTBE\"\n#define NID_setct_CertResTBE            597\n#define OBJ_setct_CertResTBE            OBJ_set_ctype,79L\n\n#define SN_setct_CRLNotificationTBS             \"setct-CRLNotificationTBS\"\n#define NID_setct_CRLNotificationTBS            598\n#define OBJ_setct_CRLNotificationTBS            OBJ_set_ctype,80L\n\n#define SN_setct_CRLNotificationResTBS          \"setct-CRLNotificationResTBS\"\n#define NID_setct_CRLNotificationResTBS         599\n#define OBJ_setct_CRLNotificationResTBS         OBJ_set_ctype,81L\n\n#define SN_setct_BCIDistributionTBS             \"setct-BCIDistributionTBS\"\n#define NID_setct_BCIDistributionTBS            600\n#define OBJ_setct_BCIDistributionTBS            OBJ_set_ctype,82L\n\n#define SN_setext_genCrypt              \"setext-genCrypt\"\n#define LN_setext_genCrypt              \"generic cryptogram\"\n#define NID_setext_genCrypt             601\n#define OBJ_setext_genCrypt             OBJ_set_msgExt,1L\n\n#define SN_setext_miAuth                \"setext-miAuth\"\n#define LN_setext_miAuth                \"merchant initiated auth\"\n#define NID_setext_miAuth               602\n#define OBJ_setext_miAuth               OBJ_set_msgExt,3L\n\n#define SN_setext_pinSecure             \"setext-pinSecure\"\n#define NID_setext_pinSecure            603\n#define OBJ_setext_pinSecure            OBJ_set_msgExt,4L\n\n#define SN_setext_pinAny                \"setext-pinAny\"\n#define NID_setext_pinAny               604\n#define OBJ_setext_pinAny               OBJ_set_msgExt,5L\n\n#define SN_setext_track2                \"setext-track2\"\n#define NID_setext_track2               605\n#define OBJ_setext_track2               OBJ_set_msgExt,7L\n\n#define SN_setext_cv            \"setext-cv\"\n#define LN_setext_cv            \"additional verification\"\n#define NID_setext_cv           606\n#define OBJ_setext_cv           OBJ_set_msgExt,8L\n\n#define SN_set_policy_root              \"set-policy-root\"\n#define NID_set_policy_root             607\n#define OBJ_set_policy_root             OBJ_set_policy,0L\n\n#define SN_setCext_hashedRoot           \"setCext-hashedRoot\"\n#define NID_setCext_hashedRoot          608\n#define OBJ_setCext_hashedRoot          OBJ_set_certExt,0L\n\n#define SN_setCext_certType             \"setCext-certType\"\n#define NID_setCext_certType            609\n#define OBJ_setCext_certType            OBJ_set_certExt,1L\n\n#define SN_setCext_merchData            \"setCext-merchData\"\n#define NID_setCext_merchData           610\n#define OBJ_setCext_merchData           OBJ_set_certExt,2L\n\n#define SN_setCext_cCertRequired                \"setCext-cCertRequired\"\n#define NID_setCext_cCertRequired               611\n#define OBJ_setCext_cCertRequired               OBJ_set_certExt,3L\n\n#define SN_setCext_tunneling            \"setCext-tunneling\"\n#define NID_setCext_tunneling           612\n#define OBJ_setCext_tunneling           OBJ_set_certExt,4L\n\n#define SN_setCext_setExt               \"setCext-setExt\"\n#define NID_setCext_setExt              613\n#define OBJ_setCext_setExt              OBJ_set_certExt,5L\n\n#define SN_setCext_setQualf             \"setCext-setQualf\"\n#define NID_setCext_setQualf            614\n#define OBJ_setCext_setQualf            OBJ_set_certExt,6L\n\n#define SN_setCext_PGWYcapabilities             \"setCext-PGWYcapabilities\"\n#define NID_setCext_PGWYcapabilities            615\n#define OBJ_setCext_PGWYcapabilities            OBJ_set_certExt,7L\n\n#define SN_setCext_TokenIdentifier              \"setCext-TokenIdentifier\"\n#define NID_setCext_TokenIdentifier             616\n#define OBJ_setCext_TokenIdentifier             OBJ_set_certExt,8L\n\n#define SN_setCext_Track2Data           \"setCext-Track2Data\"\n#define NID_setCext_Track2Data          617\n#define OBJ_setCext_Track2Data          OBJ_set_certExt,9L\n\n#define SN_setCext_TokenType            \"setCext-TokenType\"\n#define NID_setCext_TokenType           618\n#define OBJ_setCext_TokenType           OBJ_set_certExt,10L\n\n#define SN_setCext_IssuerCapabilities           \"setCext-IssuerCapabilities\"\n#define NID_setCext_IssuerCapabilities          619\n#define OBJ_setCext_IssuerCapabilities          OBJ_set_certExt,11L\n\n#define SN_setAttr_Cert         \"setAttr-Cert\"\n#define NID_setAttr_Cert                620\n#define OBJ_setAttr_Cert                OBJ_set_attr,0L\n\n#define SN_setAttr_PGWYcap              \"setAttr-PGWYcap\"\n#define LN_setAttr_PGWYcap              \"payment gateway capabilities\"\n#define NID_setAttr_PGWYcap             621\n#define OBJ_setAttr_PGWYcap             OBJ_set_attr,1L\n\n#define SN_setAttr_TokenType            \"setAttr-TokenType\"\n#define NID_setAttr_TokenType           622\n#define OBJ_setAttr_TokenType           OBJ_set_attr,2L\n\n#define SN_setAttr_IssCap               \"setAttr-IssCap\"\n#define LN_setAttr_IssCap               \"issuer capabilities\"\n#define NID_setAttr_IssCap              623\n#define OBJ_setAttr_IssCap              OBJ_set_attr,3L\n\n#define SN_set_rootKeyThumb             \"set-rootKeyThumb\"\n#define NID_set_rootKeyThumb            624\n#define OBJ_set_rootKeyThumb            OBJ_setAttr_Cert,0L\n\n#define SN_set_addPolicy                \"set-addPolicy\"\n#define NID_set_addPolicy               625\n#define OBJ_set_addPolicy               OBJ_setAttr_Cert,1L\n\n#define SN_setAttr_Token_EMV            \"setAttr-Token-EMV\"\n#define NID_setAttr_Token_EMV           626\n#define OBJ_setAttr_Token_EMV           OBJ_setAttr_TokenType,1L\n\n#define SN_setAttr_Token_B0Prime                \"setAttr-Token-B0Prime\"\n#define NID_setAttr_Token_B0Prime               627\n#define OBJ_setAttr_Token_B0Prime               OBJ_setAttr_TokenType,2L\n\n#define SN_setAttr_IssCap_CVM           \"setAttr-IssCap-CVM\"\n#define NID_setAttr_IssCap_CVM          628\n#define OBJ_setAttr_IssCap_CVM          OBJ_setAttr_IssCap,3L\n\n#define SN_setAttr_IssCap_T2            \"setAttr-IssCap-T2\"\n#define NID_setAttr_IssCap_T2           629\n#define OBJ_setAttr_IssCap_T2           OBJ_setAttr_IssCap,4L\n\n#define SN_setAttr_IssCap_Sig           \"setAttr-IssCap-Sig\"\n#define NID_setAttr_IssCap_Sig          630\n#define OBJ_setAttr_IssCap_Sig          OBJ_setAttr_IssCap,5L\n\n#define SN_setAttr_GenCryptgrm          \"setAttr-GenCryptgrm\"\n#define LN_setAttr_GenCryptgrm          \"generate cryptogram\"\n#define NID_setAttr_GenCryptgrm         631\n#define OBJ_setAttr_GenCryptgrm         OBJ_setAttr_IssCap_CVM,1L\n\n#define SN_setAttr_T2Enc                \"setAttr-T2Enc\"\n#define LN_setAttr_T2Enc                \"encrypted track 2\"\n#define NID_setAttr_T2Enc               632\n#define OBJ_setAttr_T2Enc               OBJ_setAttr_IssCap_T2,1L\n\n#define SN_setAttr_T2cleartxt           \"setAttr-T2cleartxt\"\n#define LN_setAttr_T2cleartxt           \"cleartext track 2\"\n#define NID_setAttr_T2cleartxt          633\n#define OBJ_setAttr_T2cleartxt          OBJ_setAttr_IssCap_T2,2L\n\n#define SN_setAttr_TokICCsig            \"setAttr-TokICCsig\"\n#define LN_setAttr_TokICCsig            \"ICC or token signature\"\n#define NID_setAttr_TokICCsig           634\n#define OBJ_setAttr_TokICCsig           OBJ_setAttr_IssCap_Sig,1L\n\n#define SN_setAttr_SecDevSig            \"setAttr-SecDevSig\"\n#define LN_setAttr_SecDevSig            \"secure device signature\"\n#define NID_setAttr_SecDevSig           635\n#define OBJ_setAttr_SecDevSig           OBJ_setAttr_IssCap_Sig,2L\n\n#define SN_set_brand_IATA_ATA           \"set-brand-IATA-ATA\"\n#define NID_set_brand_IATA_ATA          636\n#define OBJ_set_brand_IATA_ATA          OBJ_set_brand,1L\n\n#define SN_set_brand_Diners             \"set-brand-Diners\"\n#define NID_set_brand_Diners            637\n#define OBJ_set_brand_Diners            OBJ_set_brand,30L\n\n#define SN_set_brand_AmericanExpress            \"set-brand-AmericanExpress\"\n#define NID_set_brand_AmericanExpress           638\n#define OBJ_set_brand_AmericanExpress           OBJ_set_brand,34L\n\n#define SN_set_brand_JCB                \"set-brand-JCB\"\n#define NID_set_brand_JCB               639\n#define OBJ_set_brand_JCB               OBJ_set_brand,35L\n\n#define SN_set_brand_Visa               \"set-brand-Visa\"\n#define NID_set_brand_Visa              640\n#define OBJ_set_brand_Visa              OBJ_set_brand,4L\n\n#define SN_set_brand_MasterCard         \"set-brand-MasterCard\"\n#define NID_set_brand_MasterCard                641\n#define OBJ_set_brand_MasterCard                OBJ_set_brand,5L\n\n#define SN_set_brand_Novus              \"set-brand-Novus\"\n#define NID_set_brand_Novus             642\n#define OBJ_set_brand_Novus             OBJ_set_brand,6011L\n\n#define SN_des_cdmf             \"DES-CDMF\"\n#define LN_des_cdmf             \"des-cdmf\"\n#define NID_des_cdmf            643\n#define OBJ_des_cdmf            OBJ_rsadsi,3L,10L\n\n#define SN_rsaOAEPEncryptionSET         \"rsaOAEPEncryptionSET\"\n#define NID_rsaOAEPEncryptionSET                644\n#define OBJ_rsaOAEPEncryptionSET                OBJ_rsadsi,1L,1L,6L\n\n#define SN_ipsec3               \"Oakley-EC2N-3\"\n#define LN_ipsec3               \"ipsec3\"\n#define NID_ipsec3              749\n\n#define SN_ipsec4               \"Oakley-EC2N-4\"\n#define LN_ipsec4               \"ipsec4\"\n#define NID_ipsec4              750\n\n#define SN_whirlpool            \"whirlpool\"\n#define NID_whirlpool           804\n#define OBJ_whirlpool           OBJ_iso,0L,10118L,3L,0L,55L\n\n#define SN_cryptopro            \"cryptopro\"\n#define NID_cryptopro           805\n#define OBJ_cryptopro           OBJ_member_body,643L,2L,2L\n\n#define SN_cryptocom            \"cryptocom\"\n#define NID_cryptocom           806\n#define OBJ_cryptocom           OBJ_member_body,643L,2L,9L\n\n#define SN_id_tc26              \"id-tc26\"\n#define NID_id_tc26             974\n#define OBJ_id_tc26             OBJ_member_body,643L,7L,1L\n\n#define SN_id_GostR3411_94_with_GostR3410_2001          \"id-GostR3411-94-with-GostR3410-2001\"\n#define LN_id_GostR3411_94_with_GostR3410_2001          \"GOST R 34.11-94 with GOST R 34.10-2001\"\n#define NID_id_GostR3411_94_with_GostR3410_2001         807\n#define OBJ_id_GostR3411_94_with_GostR3410_2001         OBJ_cryptopro,3L\n\n#define SN_id_GostR3411_94_with_GostR3410_94            \"id-GostR3411-94-with-GostR3410-94\"\n#define LN_id_GostR3411_94_with_GostR3410_94            \"GOST R 34.11-94 with GOST R 34.10-94\"\n#define NID_id_GostR3411_94_with_GostR3410_94           808\n#define OBJ_id_GostR3411_94_with_GostR3410_94           OBJ_cryptopro,4L\n\n#define SN_id_GostR3411_94              \"md_gost94\"\n#define LN_id_GostR3411_94              \"GOST R 34.11-94\"\n#define NID_id_GostR3411_94             809\n#define OBJ_id_GostR3411_94             OBJ_cryptopro,9L\n\n#define SN_id_HMACGostR3411_94          \"id-HMACGostR3411-94\"\n#define LN_id_HMACGostR3411_94          \"HMAC GOST 34.11-94\"\n#define NID_id_HMACGostR3411_94         810\n#define OBJ_id_HMACGostR3411_94         OBJ_cryptopro,10L\n\n#define SN_id_GostR3410_2001            \"gost2001\"\n#define LN_id_GostR3410_2001            \"GOST R 34.10-2001\"\n#define NID_id_GostR3410_2001           811\n#define OBJ_id_GostR3410_2001           OBJ_cryptopro,19L\n\n#define SN_id_GostR3410_94              \"gost94\"\n#define LN_id_GostR3410_94              \"GOST R 34.10-94\"\n#define NID_id_GostR3410_94             812\n#define OBJ_id_GostR3410_94             OBJ_cryptopro,20L\n\n#define SN_id_Gost28147_89              \"gost89\"\n#define LN_id_Gost28147_89              \"GOST 28147-89\"\n#define NID_id_Gost28147_89             813\n#define OBJ_id_Gost28147_89             OBJ_cryptopro,21L\n\n#define SN_gost89_cnt           \"gost89-cnt\"\n#define NID_gost89_cnt          814\n\n#define SN_gost89_cnt_12                \"gost89-cnt-12\"\n#define NID_gost89_cnt_12               975\n\n#define SN_gost89_cbc           \"gost89-cbc\"\n#define NID_gost89_cbc          1009\n\n#define SN_gost89_ecb           \"gost89-ecb\"\n#define NID_gost89_ecb          1010\n\n#define SN_gost89_ctr           \"gost89-ctr\"\n#define NID_gost89_ctr          1011\n\n#define SN_id_Gost28147_89_MAC          \"gost-mac\"\n#define LN_id_Gost28147_89_MAC          \"GOST 28147-89 MAC\"\n#define NID_id_Gost28147_89_MAC         815\n#define OBJ_id_Gost28147_89_MAC         OBJ_cryptopro,22L\n\n#define SN_gost_mac_12          \"gost-mac-12\"\n#define NID_gost_mac_12         976\n\n#define SN_id_GostR3411_94_prf          \"prf-gostr3411-94\"\n#define LN_id_GostR3411_94_prf          \"GOST R 34.11-94 PRF\"\n#define NID_id_GostR3411_94_prf         816\n#define OBJ_id_GostR3411_94_prf         OBJ_cryptopro,23L\n\n#define SN_id_GostR3410_2001DH          \"id-GostR3410-2001DH\"\n#define LN_id_GostR3410_2001DH          \"GOST R 34.10-2001 DH\"\n#define NID_id_GostR3410_2001DH         817\n#define OBJ_id_GostR3410_2001DH         OBJ_cryptopro,98L\n\n#define SN_id_GostR3410_94DH            \"id-GostR3410-94DH\"\n#define LN_id_GostR3410_94DH            \"GOST R 34.10-94 DH\"\n#define NID_id_GostR3410_94DH           818\n#define OBJ_id_GostR3410_94DH           OBJ_cryptopro,99L\n\n#define SN_id_Gost28147_89_CryptoPro_KeyMeshing         \"id-Gost28147-89-CryptoPro-KeyMeshing\"\n#define NID_id_Gost28147_89_CryptoPro_KeyMeshing                819\n#define OBJ_id_Gost28147_89_CryptoPro_KeyMeshing                OBJ_cryptopro,14L,1L\n\n#define SN_id_Gost28147_89_None_KeyMeshing              \"id-Gost28147-89-None-KeyMeshing\"\n#define NID_id_Gost28147_89_None_KeyMeshing             820\n#define OBJ_id_Gost28147_89_None_KeyMeshing             OBJ_cryptopro,14L,0L\n\n#define SN_id_GostR3411_94_TestParamSet         \"id-GostR3411-94-TestParamSet\"\n#define NID_id_GostR3411_94_TestParamSet                821\n#define OBJ_id_GostR3411_94_TestParamSet                OBJ_cryptopro,30L,0L\n\n#define SN_id_GostR3411_94_CryptoProParamSet            \"id-GostR3411-94-CryptoProParamSet\"\n#define NID_id_GostR3411_94_CryptoProParamSet           822\n#define OBJ_id_GostR3411_94_CryptoProParamSet           OBJ_cryptopro,30L,1L\n\n#define SN_id_Gost28147_89_TestParamSet         \"id-Gost28147-89-TestParamSet\"\n#define NID_id_Gost28147_89_TestParamSet                823\n#define OBJ_id_Gost28147_89_TestParamSet                OBJ_cryptopro,31L,0L\n\n#define SN_id_Gost28147_89_CryptoPro_A_ParamSet         \"id-Gost28147-89-CryptoPro-A-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_A_ParamSet                824\n#define OBJ_id_Gost28147_89_CryptoPro_A_ParamSet                OBJ_cryptopro,31L,1L\n\n#define SN_id_Gost28147_89_CryptoPro_B_ParamSet         \"id-Gost28147-89-CryptoPro-B-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_B_ParamSet                825\n#define OBJ_id_Gost28147_89_CryptoPro_B_ParamSet                OBJ_cryptopro,31L,2L\n\n#define SN_id_Gost28147_89_CryptoPro_C_ParamSet         \"id-Gost28147-89-CryptoPro-C-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_C_ParamSet                826\n#define OBJ_id_Gost28147_89_CryptoPro_C_ParamSet                OBJ_cryptopro,31L,3L\n\n#define SN_id_Gost28147_89_CryptoPro_D_ParamSet         \"id-Gost28147-89-CryptoPro-D-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_D_ParamSet                827\n#define OBJ_id_Gost28147_89_CryptoPro_D_ParamSet                OBJ_cryptopro,31L,4L\n\n#define SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet         \"id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet                828\n#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet                OBJ_cryptopro,31L,5L\n\n#define SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet         \"id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet                829\n#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet                OBJ_cryptopro,31L,6L\n\n#define SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet             \"id-Gost28147-89-CryptoPro-RIC-1-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet            830\n#define OBJ_id_Gost28147_89_CryptoPro_RIC_1_ParamSet            OBJ_cryptopro,31L,7L\n\n#define SN_id_GostR3410_94_TestParamSet         \"id-GostR3410-94-TestParamSet\"\n#define NID_id_GostR3410_94_TestParamSet                831\n#define OBJ_id_GostR3410_94_TestParamSet                OBJ_cryptopro,32L,0L\n\n#define SN_id_GostR3410_94_CryptoPro_A_ParamSet         \"id-GostR3410-94-CryptoPro-A-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_A_ParamSet                832\n#define OBJ_id_GostR3410_94_CryptoPro_A_ParamSet                OBJ_cryptopro,32L,2L\n\n#define SN_id_GostR3410_94_CryptoPro_B_ParamSet         \"id-GostR3410-94-CryptoPro-B-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_B_ParamSet                833\n#define OBJ_id_GostR3410_94_CryptoPro_B_ParamSet                OBJ_cryptopro,32L,3L\n\n#define SN_id_GostR3410_94_CryptoPro_C_ParamSet         \"id-GostR3410-94-CryptoPro-C-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_C_ParamSet                834\n#define OBJ_id_GostR3410_94_CryptoPro_C_ParamSet                OBJ_cryptopro,32L,4L\n\n#define SN_id_GostR3410_94_CryptoPro_D_ParamSet         \"id-GostR3410-94-CryptoPro-D-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_D_ParamSet                835\n#define OBJ_id_GostR3410_94_CryptoPro_D_ParamSet                OBJ_cryptopro,32L,5L\n\n#define SN_id_GostR3410_94_CryptoPro_XchA_ParamSet              \"id-GostR3410-94-CryptoPro-XchA-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchA_ParamSet             836\n#define OBJ_id_GostR3410_94_CryptoPro_XchA_ParamSet             OBJ_cryptopro,33L,1L\n\n#define SN_id_GostR3410_94_CryptoPro_XchB_ParamSet              \"id-GostR3410-94-CryptoPro-XchB-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchB_ParamSet             837\n#define OBJ_id_GostR3410_94_CryptoPro_XchB_ParamSet             OBJ_cryptopro,33L,2L\n\n#define SN_id_GostR3410_94_CryptoPro_XchC_ParamSet              \"id-GostR3410-94-CryptoPro-XchC-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchC_ParamSet             838\n#define OBJ_id_GostR3410_94_CryptoPro_XchC_ParamSet             OBJ_cryptopro,33L,3L\n\n#define SN_id_GostR3410_2001_TestParamSet               \"id-GostR3410-2001-TestParamSet\"\n#define NID_id_GostR3410_2001_TestParamSet              839\n#define OBJ_id_GostR3410_2001_TestParamSet              OBJ_cryptopro,35L,0L\n\n#define SN_id_GostR3410_2001_CryptoPro_A_ParamSet               \"id-GostR3410-2001-CryptoPro-A-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_A_ParamSet              840\n#define OBJ_id_GostR3410_2001_CryptoPro_A_ParamSet              OBJ_cryptopro,35L,1L\n\n#define SN_id_GostR3410_2001_CryptoPro_B_ParamSet               \"id-GostR3410-2001-CryptoPro-B-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_B_ParamSet              841\n#define OBJ_id_GostR3410_2001_CryptoPro_B_ParamSet              OBJ_cryptopro,35L,2L\n\n#define SN_id_GostR3410_2001_CryptoPro_C_ParamSet               \"id-GostR3410-2001-CryptoPro-C-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_C_ParamSet              842\n#define OBJ_id_GostR3410_2001_CryptoPro_C_ParamSet              OBJ_cryptopro,35L,3L\n\n#define SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet            \"id-GostR3410-2001-CryptoPro-XchA-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet           843\n#define OBJ_id_GostR3410_2001_CryptoPro_XchA_ParamSet           OBJ_cryptopro,36L,0L\n\n#define SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet            \"id-GostR3410-2001-CryptoPro-XchB-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet           844\n#define OBJ_id_GostR3410_2001_CryptoPro_XchB_ParamSet           OBJ_cryptopro,36L,1L\n\n#define SN_id_GostR3410_94_a            \"id-GostR3410-94-a\"\n#define NID_id_GostR3410_94_a           845\n#define OBJ_id_GostR3410_94_a           OBJ_id_GostR3410_94,1L\n\n#define SN_id_GostR3410_94_aBis         \"id-GostR3410-94-aBis\"\n#define NID_id_GostR3410_94_aBis                846\n#define OBJ_id_GostR3410_94_aBis                OBJ_id_GostR3410_94,2L\n\n#define SN_id_GostR3410_94_b            \"id-GostR3410-94-b\"\n#define NID_id_GostR3410_94_b           847\n#define OBJ_id_GostR3410_94_b           OBJ_id_GostR3410_94,3L\n\n#define SN_id_GostR3410_94_bBis         \"id-GostR3410-94-bBis\"\n#define NID_id_GostR3410_94_bBis                848\n#define OBJ_id_GostR3410_94_bBis                OBJ_id_GostR3410_94,4L\n\n#define SN_id_Gost28147_89_cc           \"id-Gost28147-89-cc\"\n#define LN_id_Gost28147_89_cc           \"GOST 28147-89 Cryptocom ParamSet\"\n#define NID_id_Gost28147_89_cc          849\n#define OBJ_id_Gost28147_89_cc          OBJ_cryptocom,1L,6L,1L\n\n#define SN_id_GostR3410_94_cc           \"gost94cc\"\n#define LN_id_GostR3410_94_cc           \"GOST 34.10-94 Cryptocom\"\n#define NID_id_GostR3410_94_cc          850\n#define OBJ_id_GostR3410_94_cc          OBJ_cryptocom,1L,5L,3L\n\n#define SN_id_GostR3410_2001_cc         \"gost2001cc\"\n#define LN_id_GostR3410_2001_cc         \"GOST 34.10-2001 Cryptocom\"\n#define NID_id_GostR3410_2001_cc                851\n#define OBJ_id_GostR3410_2001_cc                OBJ_cryptocom,1L,5L,4L\n\n#define SN_id_GostR3411_94_with_GostR3410_94_cc         \"id-GostR3411-94-with-GostR3410-94-cc\"\n#define LN_id_GostR3411_94_with_GostR3410_94_cc         \"GOST R 34.11-94 with GOST R 34.10-94 Cryptocom\"\n#define NID_id_GostR3411_94_with_GostR3410_94_cc                852\n#define OBJ_id_GostR3411_94_with_GostR3410_94_cc                OBJ_cryptocom,1L,3L,3L\n\n#define SN_id_GostR3411_94_with_GostR3410_2001_cc               \"id-GostR3411-94-with-GostR3410-2001-cc\"\n#define LN_id_GostR3411_94_with_GostR3410_2001_cc               \"GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom\"\n#define NID_id_GostR3411_94_with_GostR3410_2001_cc              853\n#define OBJ_id_GostR3411_94_with_GostR3410_2001_cc              OBJ_cryptocom,1L,3L,4L\n\n#define SN_id_GostR3410_2001_ParamSet_cc                \"id-GostR3410-2001-ParamSet-cc\"\n#define LN_id_GostR3410_2001_ParamSet_cc                \"GOST R 3410-2001 Parameter Set Cryptocom\"\n#define NID_id_GostR3410_2001_ParamSet_cc               854\n#define OBJ_id_GostR3410_2001_ParamSet_cc               OBJ_cryptocom,1L,8L,1L\n\n#define SN_id_tc26_algorithms           \"id-tc26-algorithms\"\n#define NID_id_tc26_algorithms          977\n#define OBJ_id_tc26_algorithms          OBJ_id_tc26,1L\n\n#define SN_id_tc26_sign         \"id-tc26-sign\"\n#define NID_id_tc26_sign                978\n#define OBJ_id_tc26_sign                OBJ_id_tc26_algorithms,1L\n\n#define SN_id_GostR3410_2012_256                \"gost2012_256\"\n#define LN_id_GostR3410_2012_256                \"GOST R 34.10-2012 with 256 bit modulus\"\n#define NID_id_GostR3410_2012_256               979\n#define OBJ_id_GostR3410_2012_256               OBJ_id_tc26_sign,1L\n\n#define SN_id_GostR3410_2012_512                \"gost2012_512\"\n#define LN_id_GostR3410_2012_512                \"GOST R 34.10-2012 with 512 bit modulus\"\n#define NID_id_GostR3410_2012_512               980\n#define OBJ_id_GostR3410_2012_512               OBJ_id_tc26_sign,2L\n\n#define SN_id_tc26_digest               \"id-tc26-digest\"\n#define NID_id_tc26_digest              981\n#define OBJ_id_tc26_digest              OBJ_id_tc26_algorithms,2L\n\n#define SN_id_GostR3411_2012_256                \"md_gost12_256\"\n#define LN_id_GostR3411_2012_256                \"GOST R 34.11-2012 with 256 bit hash\"\n#define NID_id_GostR3411_2012_256               982\n#define OBJ_id_GostR3411_2012_256               OBJ_id_tc26_digest,2L\n\n#define SN_id_GostR3411_2012_512                \"md_gost12_512\"\n#define LN_id_GostR3411_2012_512                \"GOST R 34.11-2012 with 512 bit hash\"\n#define NID_id_GostR3411_2012_512               983\n#define OBJ_id_GostR3411_2012_512               OBJ_id_tc26_digest,3L\n\n#define SN_id_tc26_signwithdigest               \"id-tc26-signwithdigest\"\n#define NID_id_tc26_signwithdigest              984\n#define OBJ_id_tc26_signwithdigest              OBJ_id_tc26_algorithms,3L\n\n#define SN_id_tc26_signwithdigest_gost3410_2012_256             \"id-tc26-signwithdigest-gost3410-2012-256\"\n#define LN_id_tc26_signwithdigest_gost3410_2012_256             \"GOST R 34.10-2012 with GOST R 34.11-2012 (256 bit)\"\n#define NID_id_tc26_signwithdigest_gost3410_2012_256            985\n#define OBJ_id_tc26_signwithdigest_gost3410_2012_256            OBJ_id_tc26_signwithdigest,2L\n\n#define SN_id_tc26_signwithdigest_gost3410_2012_512             \"id-tc26-signwithdigest-gost3410-2012-512\"\n#define LN_id_tc26_signwithdigest_gost3410_2012_512             \"GOST R 34.10-2012 with GOST R 34.11-2012 (512 bit)\"\n#define NID_id_tc26_signwithdigest_gost3410_2012_512            986\n#define OBJ_id_tc26_signwithdigest_gost3410_2012_512            OBJ_id_tc26_signwithdigest,3L\n\n#define SN_id_tc26_mac          \"id-tc26-mac\"\n#define NID_id_tc26_mac         987\n#define OBJ_id_tc26_mac         OBJ_id_tc26_algorithms,4L\n\n#define SN_id_tc26_hmac_gost_3411_2012_256              \"id-tc26-hmac-gost-3411-2012-256\"\n#define LN_id_tc26_hmac_gost_3411_2012_256              \"HMAC GOST 34.11-2012 256 bit\"\n#define NID_id_tc26_hmac_gost_3411_2012_256             988\n#define OBJ_id_tc26_hmac_gost_3411_2012_256             OBJ_id_tc26_mac,1L\n\n#define SN_id_tc26_hmac_gost_3411_2012_512              \"id-tc26-hmac-gost-3411-2012-512\"\n#define LN_id_tc26_hmac_gost_3411_2012_512              \"HMAC GOST 34.11-2012 512 bit\"\n#define NID_id_tc26_hmac_gost_3411_2012_512             989\n#define OBJ_id_tc26_hmac_gost_3411_2012_512             OBJ_id_tc26_mac,2L\n\n#define SN_id_tc26_cipher               \"id-tc26-cipher\"\n#define NID_id_tc26_cipher              990\n#define OBJ_id_tc26_cipher              OBJ_id_tc26_algorithms,5L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma          \"id-tc26-cipher-gostr3412-2015-magma\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma         1173\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma         OBJ_id_tc26_cipher,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm         \"id-tc26-cipher-gostr3412-2015-magma-ctracpkm\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm                1174\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm                OBJ_id_tc26_cipher_gostr3412_2015_magma,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac            \"id-tc26-cipher-gostr3412-2015-magma-ctracpkm-omac\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac           1175\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac           OBJ_id_tc26_cipher_gostr3412_2015_magma,2L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik             \"id-tc26-cipher-gostr3412-2015-kuznyechik\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik            1176\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik            OBJ_id_tc26_cipher,2L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm            \"id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm           1177\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm           OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac               \"id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm-omac\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac              1178\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac              OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,2L\n\n#define SN_id_tc26_agreement            \"id-tc26-agreement\"\n#define NID_id_tc26_agreement           991\n#define OBJ_id_tc26_agreement           OBJ_id_tc26_algorithms,6L\n\n#define SN_id_tc26_agreement_gost_3410_2012_256         \"id-tc26-agreement-gost-3410-2012-256\"\n#define NID_id_tc26_agreement_gost_3410_2012_256                992\n#define OBJ_id_tc26_agreement_gost_3410_2012_256                OBJ_id_tc26_agreement,1L\n\n#define SN_id_tc26_agreement_gost_3410_2012_512         \"id-tc26-agreement-gost-3410-2012-512\"\n#define NID_id_tc26_agreement_gost_3410_2012_512                993\n#define OBJ_id_tc26_agreement_gost_3410_2012_512                OBJ_id_tc26_agreement,2L\n\n#define SN_id_tc26_wrap         \"id-tc26-wrap\"\n#define NID_id_tc26_wrap                1179\n#define OBJ_id_tc26_wrap                OBJ_id_tc26_algorithms,7L\n\n#define SN_id_tc26_wrap_gostr3412_2015_magma            \"id-tc26-wrap-gostr3412-2015-magma\"\n#define NID_id_tc26_wrap_gostr3412_2015_magma           1180\n#define OBJ_id_tc26_wrap_gostr3412_2015_magma           OBJ_id_tc26_wrap,1L\n\n#define SN_id_tc26_wrap_gostr3412_2015_magma_kexp15             \"id-tc26-wrap-gostr3412-2015-magma-kexp15\"\n#define NID_id_tc26_wrap_gostr3412_2015_magma_kexp15            1181\n#define OBJ_id_tc26_wrap_gostr3412_2015_magma_kexp15            OBJ_id_tc26_wrap_gostr3412_2015_magma,1L\n\n#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik               \"id-tc26-wrap-gostr3412-2015-kuznyechik\"\n#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik              1182\n#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik              OBJ_id_tc26_wrap,2L\n\n#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15                \"id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15\"\n#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15               1183\n#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15               OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik,1L\n\n#define SN_id_tc26_constants            \"id-tc26-constants\"\n#define NID_id_tc26_constants           994\n#define OBJ_id_tc26_constants           OBJ_id_tc26,2L\n\n#define SN_id_tc26_sign_constants               \"id-tc26-sign-constants\"\n#define NID_id_tc26_sign_constants              995\n#define OBJ_id_tc26_sign_constants              OBJ_id_tc26_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_constants         \"id-tc26-gost-3410-2012-256-constants\"\n#define NID_id_tc26_gost_3410_2012_256_constants                1147\n#define OBJ_id_tc26_gost_3410_2012_256_constants                OBJ_id_tc26_sign_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetA         \"id-tc26-gost-3410-2012-256-paramSetA\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetA         \"GOST R 34.10-2012 (256 bit) ParamSet A\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetA                1148\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetA                OBJ_id_tc26_gost_3410_2012_256_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetB         \"id-tc26-gost-3410-2012-256-paramSetB\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetB         \"GOST R 34.10-2012 (256 bit) ParamSet B\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetB                1184\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetB                OBJ_id_tc26_gost_3410_2012_256_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetC         \"id-tc26-gost-3410-2012-256-paramSetC\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetC         \"GOST R 34.10-2012 (256 bit) ParamSet C\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetC                1185\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetC                OBJ_id_tc26_gost_3410_2012_256_constants,3L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetD         \"id-tc26-gost-3410-2012-256-paramSetD\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetD         \"GOST R 34.10-2012 (256 bit) ParamSet D\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetD                1186\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetD                OBJ_id_tc26_gost_3410_2012_256_constants,4L\n\n#define SN_id_tc26_gost_3410_2012_512_constants         \"id-tc26-gost-3410-2012-512-constants\"\n#define NID_id_tc26_gost_3410_2012_512_constants                996\n#define OBJ_id_tc26_gost_3410_2012_512_constants                OBJ_id_tc26_sign_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetTest              \"id-tc26-gost-3410-2012-512-paramSetTest\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetTest              \"GOST R 34.10-2012 (512 bit) testing parameter set\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetTest             997\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetTest             OBJ_id_tc26_gost_3410_2012_512_constants,0L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetA         \"id-tc26-gost-3410-2012-512-paramSetA\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetA         \"GOST R 34.10-2012 (512 bit) ParamSet A\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetA                998\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetA                OBJ_id_tc26_gost_3410_2012_512_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetB         \"id-tc26-gost-3410-2012-512-paramSetB\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetB         \"GOST R 34.10-2012 (512 bit) ParamSet B\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetB                999\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetB                OBJ_id_tc26_gost_3410_2012_512_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetC         \"id-tc26-gost-3410-2012-512-paramSetC\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetC         \"GOST R 34.10-2012 (512 bit) ParamSet C\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetC                1149\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetC                OBJ_id_tc26_gost_3410_2012_512_constants,3L\n\n#define SN_id_tc26_digest_constants             \"id-tc26-digest-constants\"\n#define NID_id_tc26_digest_constants            1000\n#define OBJ_id_tc26_digest_constants            OBJ_id_tc26_constants,2L\n\n#define SN_id_tc26_cipher_constants             \"id-tc26-cipher-constants\"\n#define NID_id_tc26_cipher_constants            1001\n#define OBJ_id_tc26_cipher_constants            OBJ_id_tc26_constants,5L\n\n#define SN_id_tc26_gost_28147_constants         \"id-tc26-gost-28147-constants\"\n#define NID_id_tc26_gost_28147_constants                1002\n#define OBJ_id_tc26_gost_28147_constants                OBJ_id_tc26_cipher_constants,1L\n\n#define SN_id_tc26_gost_28147_param_Z           \"id-tc26-gost-28147-param-Z\"\n#define LN_id_tc26_gost_28147_param_Z           \"GOST 28147-89 TC26 parameter set\"\n#define NID_id_tc26_gost_28147_param_Z          1003\n#define OBJ_id_tc26_gost_28147_param_Z          OBJ_id_tc26_gost_28147_constants,1L\n\n#define SN_INN          \"INN\"\n#define LN_INN          \"INN\"\n#define NID_INN         1004\n#define OBJ_INN         OBJ_member_body,643L,3L,131L,1L,1L\n\n#define SN_OGRN         \"OGRN\"\n#define LN_OGRN         \"OGRN\"\n#define NID_OGRN                1005\n#define OBJ_OGRN                OBJ_member_body,643L,100L,1L\n\n#define SN_SNILS                \"SNILS\"\n#define LN_SNILS                \"SNILS\"\n#define NID_SNILS               1006\n#define OBJ_SNILS               OBJ_member_body,643L,100L,3L\n\n#define SN_subjectSignTool              \"subjectSignTool\"\n#define LN_subjectSignTool              \"Signing Tool of Subject\"\n#define NID_subjectSignTool             1007\n#define OBJ_subjectSignTool             OBJ_member_body,643L,100L,111L\n\n#define SN_issuerSignTool               \"issuerSignTool\"\n#define LN_issuerSignTool               \"Signing Tool of Issuer\"\n#define NID_issuerSignTool              1008\n#define OBJ_issuerSignTool              OBJ_member_body,643L,100L,112L\n\n#define SN_grasshopper_ecb              \"grasshopper-ecb\"\n#define NID_grasshopper_ecb             1012\n\n#define SN_grasshopper_ctr              \"grasshopper-ctr\"\n#define NID_grasshopper_ctr             1013\n\n#define SN_grasshopper_ofb              \"grasshopper-ofb\"\n#define NID_grasshopper_ofb             1014\n\n#define SN_grasshopper_cbc              \"grasshopper-cbc\"\n#define NID_grasshopper_cbc             1015\n\n#define SN_grasshopper_cfb              \"grasshopper-cfb\"\n#define NID_grasshopper_cfb             1016\n\n#define SN_grasshopper_mac              \"grasshopper-mac\"\n#define NID_grasshopper_mac             1017\n\n#define SN_magma_ecb            \"magma-ecb\"\n#define NID_magma_ecb           1187\n\n#define SN_magma_ctr            \"magma-ctr\"\n#define NID_magma_ctr           1188\n\n#define SN_magma_ofb            \"magma-ofb\"\n#define NID_magma_ofb           1189\n\n#define SN_magma_cbc            \"magma-cbc\"\n#define NID_magma_cbc           1190\n\n#define SN_magma_cfb            \"magma-cfb\"\n#define NID_magma_cfb           1191\n\n#define SN_magma_mac            \"magma-mac\"\n#define NID_magma_mac           1192\n\n#define SN_camellia_128_cbc             \"CAMELLIA-128-CBC\"\n#define LN_camellia_128_cbc             \"camellia-128-cbc\"\n#define NID_camellia_128_cbc            751\n#define OBJ_camellia_128_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,2L\n\n#define SN_camellia_192_cbc             \"CAMELLIA-192-CBC\"\n#define LN_camellia_192_cbc             \"camellia-192-cbc\"\n#define NID_camellia_192_cbc            752\n#define OBJ_camellia_192_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,3L\n\n#define SN_camellia_256_cbc             \"CAMELLIA-256-CBC\"\n#define LN_camellia_256_cbc             \"camellia-256-cbc\"\n#define NID_camellia_256_cbc            753\n#define OBJ_camellia_256_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,4L\n\n#define SN_id_camellia128_wrap          \"id-camellia128-wrap\"\n#define NID_id_camellia128_wrap         907\n#define OBJ_id_camellia128_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,2L\n\n#define SN_id_camellia192_wrap          \"id-camellia192-wrap\"\n#define NID_id_camellia192_wrap         908\n#define OBJ_id_camellia192_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,3L\n\n#define SN_id_camellia256_wrap          \"id-camellia256-wrap\"\n#define NID_id_camellia256_wrap         909\n#define OBJ_id_camellia256_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,4L\n\n#define OBJ_ntt_ds              0L,3L,4401L,5L\n\n#define OBJ_camellia            OBJ_ntt_ds,3L,1L,9L\n\n#define SN_camellia_128_ecb             \"CAMELLIA-128-ECB\"\n#define LN_camellia_128_ecb             \"camellia-128-ecb\"\n#define NID_camellia_128_ecb            754\n#define OBJ_camellia_128_ecb            OBJ_camellia,1L\n\n#define SN_camellia_128_ofb128          \"CAMELLIA-128-OFB\"\n#define LN_camellia_128_ofb128          \"camellia-128-ofb\"\n#define NID_camellia_128_ofb128         766\n#define OBJ_camellia_128_ofb128         OBJ_camellia,3L\n\n#define SN_camellia_128_cfb128          \"CAMELLIA-128-CFB\"\n#define LN_camellia_128_cfb128          \"camellia-128-cfb\"\n#define NID_camellia_128_cfb128         757\n#define OBJ_camellia_128_cfb128         OBJ_camellia,4L\n\n#define SN_camellia_128_gcm             \"CAMELLIA-128-GCM\"\n#define LN_camellia_128_gcm             \"camellia-128-gcm\"\n#define NID_camellia_128_gcm            961\n#define OBJ_camellia_128_gcm            OBJ_camellia,6L\n\n#define SN_camellia_128_ccm             \"CAMELLIA-128-CCM\"\n#define LN_camellia_128_ccm             \"camellia-128-ccm\"\n#define NID_camellia_128_ccm            962\n#define OBJ_camellia_128_ccm            OBJ_camellia,7L\n\n#define SN_camellia_128_ctr             \"CAMELLIA-128-CTR\"\n#define LN_camellia_128_ctr             \"camellia-128-ctr\"\n#define NID_camellia_128_ctr            963\n#define OBJ_camellia_128_ctr            OBJ_camellia,9L\n\n#define SN_camellia_128_cmac            \"CAMELLIA-128-CMAC\"\n#define LN_camellia_128_cmac            \"camellia-128-cmac\"\n#define NID_camellia_128_cmac           964\n#define OBJ_camellia_128_cmac           OBJ_camellia,10L\n\n#define SN_camellia_192_ecb             \"CAMELLIA-192-ECB\"\n#define LN_camellia_192_ecb             \"camellia-192-ecb\"\n#define NID_camellia_192_ecb            755\n#define OBJ_camellia_192_ecb            OBJ_camellia,21L\n\n#define SN_camellia_192_ofb128          \"CAMELLIA-192-OFB\"\n#define LN_camellia_192_ofb128          \"camellia-192-ofb\"\n#define NID_camellia_192_ofb128         767\n#define OBJ_camellia_192_ofb128         OBJ_camellia,23L\n\n#define SN_camellia_192_cfb128          \"CAMELLIA-192-CFB\"\n#define LN_camellia_192_cfb128          \"camellia-192-cfb\"\n#define NID_camellia_192_cfb128         758\n#define OBJ_camellia_192_cfb128         OBJ_camellia,24L\n\n#define SN_camellia_192_gcm             \"CAMELLIA-192-GCM\"\n#define LN_camellia_192_gcm             \"camellia-192-gcm\"\n#define NID_camellia_192_gcm            965\n#define OBJ_camellia_192_gcm            OBJ_camellia,26L\n\n#define SN_camellia_192_ccm             \"CAMELLIA-192-CCM\"\n#define LN_camellia_192_ccm             \"camellia-192-ccm\"\n#define NID_camellia_192_ccm            966\n#define OBJ_camellia_192_ccm            OBJ_camellia,27L\n\n#define SN_camellia_192_ctr             \"CAMELLIA-192-CTR\"\n#define LN_camellia_192_ctr             \"camellia-192-ctr\"\n#define NID_camellia_192_ctr            967\n#define OBJ_camellia_192_ctr            OBJ_camellia,29L\n\n#define SN_camellia_192_cmac            \"CAMELLIA-192-CMAC\"\n#define LN_camellia_192_cmac            \"camellia-192-cmac\"\n#define NID_camellia_192_cmac           968\n#define OBJ_camellia_192_cmac           OBJ_camellia,30L\n\n#define SN_camellia_256_ecb             \"CAMELLIA-256-ECB\"\n#define LN_camellia_256_ecb             \"camellia-256-ecb\"\n#define NID_camellia_256_ecb            756\n#define OBJ_camellia_256_ecb            OBJ_camellia,41L\n\n#define SN_camellia_256_ofb128          \"CAMELLIA-256-OFB\"\n#define LN_camellia_256_ofb128          \"camellia-256-ofb\"\n#define NID_camellia_256_ofb128         768\n#define OBJ_camellia_256_ofb128         OBJ_camellia,43L\n\n#define SN_camellia_256_cfb128          \"CAMELLIA-256-CFB\"\n#define LN_camellia_256_cfb128          \"camellia-256-cfb\"\n#define NID_camellia_256_cfb128         759\n#define OBJ_camellia_256_cfb128         OBJ_camellia,44L\n\n#define SN_camellia_256_gcm             \"CAMELLIA-256-GCM\"\n#define LN_camellia_256_gcm             \"camellia-256-gcm\"\n#define NID_camellia_256_gcm            969\n#define OBJ_camellia_256_gcm            OBJ_camellia,46L\n\n#define SN_camellia_256_ccm             \"CAMELLIA-256-CCM\"\n#define LN_camellia_256_ccm             \"camellia-256-ccm\"\n#define NID_camellia_256_ccm            970\n#define OBJ_camellia_256_ccm            OBJ_camellia,47L\n\n#define SN_camellia_256_ctr             \"CAMELLIA-256-CTR\"\n#define LN_camellia_256_ctr             \"camellia-256-ctr\"\n#define NID_camellia_256_ctr            971\n#define OBJ_camellia_256_ctr            OBJ_camellia,49L\n\n#define SN_camellia_256_cmac            \"CAMELLIA-256-CMAC\"\n#define LN_camellia_256_cmac            \"camellia-256-cmac\"\n#define NID_camellia_256_cmac           972\n#define OBJ_camellia_256_cmac           OBJ_camellia,50L\n\n#define SN_camellia_128_cfb1            \"CAMELLIA-128-CFB1\"\n#define LN_camellia_128_cfb1            \"camellia-128-cfb1\"\n#define NID_camellia_128_cfb1           760\n\n#define SN_camellia_192_cfb1            \"CAMELLIA-192-CFB1\"\n#define LN_camellia_192_cfb1            \"camellia-192-cfb1\"\n#define NID_camellia_192_cfb1           761\n\n#define SN_camellia_256_cfb1            \"CAMELLIA-256-CFB1\"\n#define LN_camellia_256_cfb1            \"camellia-256-cfb1\"\n#define NID_camellia_256_cfb1           762\n\n#define SN_camellia_128_cfb8            \"CAMELLIA-128-CFB8\"\n#define LN_camellia_128_cfb8            \"camellia-128-cfb8\"\n#define NID_camellia_128_cfb8           763\n\n#define SN_camellia_192_cfb8            \"CAMELLIA-192-CFB8\"\n#define LN_camellia_192_cfb8            \"camellia-192-cfb8\"\n#define NID_camellia_192_cfb8           764\n\n#define SN_camellia_256_cfb8            \"CAMELLIA-256-CFB8\"\n#define LN_camellia_256_cfb8            \"camellia-256-cfb8\"\n#define NID_camellia_256_cfb8           765\n\n#define OBJ_aria                1L,2L,410L,200046L,1L,1L\n\n#define SN_aria_128_ecb         \"ARIA-128-ECB\"\n#define LN_aria_128_ecb         \"aria-128-ecb\"\n#define NID_aria_128_ecb                1065\n#define OBJ_aria_128_ecb                OBJ_aria,1L\n\n#define SN_aria_128_cbc         \"ARIA-128-CBC\"\n#define LN_aria_128_cbc         \"aria-128-cbc\"\n#define NID_aria_128_cbc                1066\n#define OBJ_aria_128_cbc                OBJ_aria,2L\n\n#define SN_aria_128_cfb128              \"ARIA-128-CFB\"\n#define LN_aria_128_cfb128              \"aria-128-cfb\"\n#define NID_aria_128_cfb128             1067\n#define OBJ_aria_128_cfb128             OBJ_aria,3L\n\n#define SN_aria_128_ofb128              \"ARIA-128-OFB\"\n#define LN_aria_128_ofb128              \"aria-128-ofb\"\n#define NID_aria_128_ofb128             1068\n#define OBJ_aria_128_ofb128             OBJ_aria,4L\n\n#define SN_aria_128_ctr         \"ARIA-128-CTR\"\n#define LN_aria_128_ctr         \"aria-128-ctr\"\n#define NID_aria_128_ctr                1069\n#define OBJ_aria_128_ctr                OBJ_aria,5L\n\n#define SN_aria_192_ecb         \"ARIA-192-ECB\"\n#define LN_aria_192_ecb         \"aria-192-ecb\"\n#define NID_aria_192_ecb                1070\n#define OBJ_aria_192_ecb                OBJ_aria,6L\n\n#define SN_aria_192_cbc         \"ARIA-192-CBC\"\n#define LN_aria_192_cbc         \"aria-192-cbc\"\n#define NID_aria_192_cbc                1071\n#define OBJ_aria_192_cbc                OBJ_aria,7L\n\n#define SN_aria_192_cfb128              \"ARIA-192-CFB\"\n#define LN_aria_192_cfb128              \"aria-192-cfb\"\n#define NID_aria_192_cfb128             1072\n#define OBJ_aria_192_cfb128             OBJ_aria,8L\n\n#define SN_aria_192_ofb128              \"ARIA-192-OFB\"\n#define LN_aria_192_ofb128              \"aria-192-ofb\"\n#define NID_aria_192_ofb128             1073\n#define OBJ_aria_192_ofb128             OBJ_aria,9L\n\n#define SN_aria_192_ctr         \"ARIA-192-CTR\"\n#define LN_aria_192_ctr         \"aria-192-ctr\"\n#define NID_aria_192_ctr                1074\n#define OBJ_aria_192_ctr                OBJ_aria,10L\n\n#define SN_aria_256_ecb         \"ARIA-256-ECB\"\n#define LN_aria_256_ecb         \"aria-256-ecb\"\n#define NID_aria_256_ecb                1075\n#define OBJ_aria_256_ecb                OBJ_aria,11L\n\n#define SN_aria_256_cbc         \"ARIA-256-CBC\"\n#define LN_aria_256_cbc         \"aria-256-cbc\"\n#define NID_aria_256_cbc                1076\n#define OBJ_aria_256_cbc                OBJ_aria,12L\n\n#define SN_aria_256_cfb128              \"ARIA-256-CFB\"\n#define LN_aria_256_cfb128              \"aria-256-cfb\"\n#define NID_aria_256_cfb128             1077\n#define OBJ_aria_256_cfb128             OBJ_aria,13L\n\n#define SN_aria_256_ofb128              \"ARIA-256-OFB\"\n#define LN_aria_256_ofb128              \"aria-256-ofb\"\n#define NID_aria_256_ofb128             1078\n#define OBJ_aria_256_ofb128             OBJ_aria,14L\n\n#define SN_aria_256_ctr         \"ARIA-256-CTR\"\n#define LN_aria_256_ctr         \"aria-256-ctr\"\n#define NID_aria_256_ctr                1079\n#define OBJ_aria_256_ctr                OBJ_aria,15L\n\n#define SN_aria_128_cfb1                \"ARIA-128-CFB1\"\n#define LN_aria_128_cfb1                \"aria-128-cfb1\"\n#define NID_aria_128_cfb1               1080\n\n#define SN_aria_192_cfb1                \"ARIA-192-CFB1\"\n#define LN_aria_192_cfb1                \"aria-192-cfb1\"\n#define NID_aria_192_cfb1               1081\n\n#define SN_aria_256_cfb1                \"ARIA-256-CFB1\"\n#define LN_aria_256_cfb1                \"aria-256-cfb1\"\n#define NID_aria_256_cfb1               1082\n\n#define SN_aria_128_cfb8                \"ARIA-128-CFB8\"\n#define LN_aria_128_cfb8                \"aria-128-cfb8\"\n#define NID_aria_128_cfb8               1083\n\n#define SN_aria_192_cfb8                \"ARIA-192-CFB8\"\n#define LN_aria_192_cfb8                \"aria-192-cfb8\"\n#define NID_aria_192_cfb8               1084\n\n#define SN_aria_256_cfb8                \"ARIA-256-CFB8\"\n#define LN_aria_256_cfb8                \"aria-256-cfb8\"\n#define NID_aria_256_cfb8               1085\n\n#define SN_aria_128_ccm         \"ARIA-128-CCM\"\n#define LN_aria_128_ccm         \"aria-128-ccm\"\n#define NID_aria_128_ccm                1120\n#define OBJ_aria_128_ccm                OBJ_aria,37L\n\n#define SN_aria_192_ccm         \"ARIA-192-CCM\"\n#define LN_aria_192_ccm         \"aria-192-ccm\"\n#define NID_aria_192_ccm                1121\n#define OBJ_aria_192_ccm                OBJ_aria,38L\n\n#define SN_aria_256_ccm         \"ARIA-256-CCM\"\n#define LN_aria_256_ccm         \"aria-256-ccm\"\n#define NID_aria_256_ccm                1122\n#define OBJ_aria_256_ccm                OBJ_aria,39L\n\n#define SN_aria_128_gcm         \"ARIA-128-GCM\"\n#define LN_aria_128_gcm         \"aria-128-gcm\"\n#define NID_aria_128_gcm                1123\n#define OBJ_aria_128_gcm                OBJ_aria,34L\n\n#define SN_aria_192_gcm         \"ARIA-192-GCM\"\n#define LN_aria_192_gcm         \"aria-192-gcm\"\n#define NID_aria_192_gcm                1124\n#define OBJ_aria_192_gcm                OBJ_aria,35L\n\n#define SN_aria_256_gcm         \"ARIA-256-GCM\"\n#define LN_aria_256_gcm         \"aria-256-gcm\"\n#define NID_aria_256_gcm                1125\n#define OBJ_aria_256_gcm                OBJ_aria,36L\n\n#define SN_kisa         \"KISA\"\n#define LN_kisa         \"kisa\"\n#define NID_kisa                773\n#define OBJ_kisa                OBJ_member_body,410L,200004L\n\n#define SN_seed_ecb             \"SEED-ECB\"\n#define LN_seed_ecb             \"seed-ecb\"\n#define NID_seed_ecb            776\n#define OBJ_seed_ecb            OBJ_kisa,1L,3L\n\n#define SN_seed_cbc             \"SEED-CBC\"\n#define LN_seed_cbc             \"seed-cbc\"\n#define NID_seed_cbc            777\n#define OBJ_seed_cbc            OBJ_kisa,1L,4L\n\n#define SN_seed_cfb128          \"SEED-CFB\"\n#define LN_seed_cfb128          \"seed-cfb\"\n#define NID_seed_cfb128         779\n#define OBJ_seed_cfb128         OBJ_kisa,1L,5L\n\n#define SN_seed_ofb128          \"SEED-OFB\"\n#define LN_seed_ofb128          \"seed-ofb\"\n#define NID_seed_ofb128         778\n#define OBJ_seed_ofb128         OBJ_kisa,1L,6L\n\n#define SN_sm4_ecb              \"SM4-ECB\"\n#define LN_sm4_ecb              \"sm4-ecb\"\n#define NID_sm4_ecb             1133\n#define OBJ_sm4_ecb             OBJ_sm_scheme,104L,1L\n\n#define SN_sm4_cbc              \"SM4-CBC\"\n#define LN_sm4_cbc              \"sm4-cbc\"\n#define NID_sm4_cbc             1134\n#define OBJ_sm4_cbc             OBJ_sm_scheme,104L,2L\n\n#define SN_sm4_ofb128           \"SM4-OFB\"\n#define LN_sm4_ofb128           \"sm4-ofb\"\n#define NID_sm4_ofb128          1135\n#define OBJ_sm4_ofb128          OBJ_sm_scheme,104L,3L\n\n#define SN_sm4_cfb128           \"SM4-CFB\"\n#define LN_sm4_cfb128           \"sm4-cfb\"\n#define NID_sm4_cfb128          1137\n#define OBJ_sm4_cfb128          OBJ_sm_scheme,104L,4L\n\n#define SN_sm4_cfb1             \"SM4-CFB1\"\n#define LN_sm4_cfb1             \"sm4-cfb1\"\n#define NID_sm4_cfb1            1136\n#define OBJ_sm4_cfb1            OBJ_sm_scheme,104L,5L\n\n#define SN_sm4_cfb8             \"SM4-CFB8\"\n#define LN_sm4_cfb8             \"sm4-cfb8\"\n#define NID_sm4_cfb8            1138\n#define OBJ_sm4_cfb8            OBJ_sm_scheme,104L,6L\n\n#define SN_sm4_ctr              \"SM4-CTR\"\n#define LN_sm4_ctr              \"sm4-ctr\"\n#define NID_sm4_ctr             1139\n#define OBJ_sm4_ctr             OBJ_sm_scheme,104L,7L\n\n#define SN_hmac         \"HMAC\"\n#define LN_hmac         \"hmac\"\n#define NID_hmac                855\n\n#define SN_cmac         \"CMAC\"\n#define LN_cmac         \"cmac\"\n#define NID_cmac                894\n\n#define SN_rc4_hmac_md5         \"RC4-HMAC-MD5\"\n#define LN_rc4_hmac_md5         \"rc4-hmac-md5\"\n#define NID_rc4_hmac_md5                915\n\n#define SN_aes_128_cbc_hmac_sha1                \"AES-128-CBC-HMAC-SHA1\"\n#define LN_aes_128_cbc_hmac_sha1                \"aes-128-cbc-hmac-sha1\"\n#define NID_aes_128_cbc_hmac_sha1               916\n\n#define SN_aes_192_cbc_hmac_sha1                \"AES-192-CBC-HMAC-SHA1\"\n#define LN_aes_192_cbc_hmac_sha1                \"aes-192-cbc-hmac-sha1\"\n#define NID_aes_192_cbc_hmac_sha1               917\n\n#define SN_aes_256_cbc_hmac_sha1                \"AES-256-CBC-HMAC-SHA1\"\n#define LN_aes_256_cbc_hmac_sha1                \"aes-256-cbc-hmac-sha1\"\n#define NID_aes_256_cbc_hmac_sha1               918\n\n#define SN_aes_128_cbc_hmac_sha256              \"AES-128-CBC-HMAC-SHA256\"\n#define LN_aes_128_cbc_hmac_sha256              \"aes-128-cbc-hmac-sha256\"\n#define NID_aes_128_cbc_hmac_sha256             948\n\n#define SN_aes_192_cbc_hmac_sha256              \"AES-192-CBC-HMAC-SHA256\"\n#define LN_aes_192_cbc_hmac_sha256              \"aes-192-cbc-hmac-sha256\"\n#define NID_aes_192_cbc_hmac_sha256             949\n\n#define SN_aes_256_cbc_hmac_sha256              \"AES-256-CBC-HMAC-SHA256\"\n#define LN_aes_256_cbc_hmac_sha256              \"aes-256-cbc-hmac-sha256\"\n#define NID_aes_256_cbc_hmac_sha256             950\n\n#define SN_chacha20_poly1305            \"ChaCha20-Poly1305\"\n#define LN_chacha20_poly1305            \"chacha20-poly1305\"\n#define NID_chacha20_poly1305           1018\n\n#define SN_chacha20             \"ChaCha20\"\n#define LN_chacha20             \"chacha20\"\n#define NID_chacha20            1019\n\n#define SN_dhpublicnumber               \"dhpublicnumber\"\n#define LN_dhpublicnumber               \"X9.42 DH\"\n#define NID_dhpublicnumber              920\n#define OBJ_dhpublicnumber              OBJ_ISO_US,10046L,2L,1L\n\n#define SN_brainpoolP160r1              \"brainpoolP160r1\"\n#define NID_brainpoolP160r1             921\n#define OBJ_brainpoolP160r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,1L\n\n#define SN_brainpoolP160t1              \"brainpoolP160t1\"\n#define NID_brainpoolP160t1             922\n#define OBJ_brainpoolP160t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,2L\n\n#define SN_brainpoolP192r1              \"brainpoolP192r1\"\n#define NID_brainpoolP192r1             923\n#define OBJ_brainpoolP192r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,3L\n\n#define SN_brainpoolP192t1              \"brainpoolP192t1\"\n#define NID_brainpoolP192t1             924\n#define OBJ_brainpoolP192t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,4L\n\n#define SN_brainpoolP224r1              \"brainpoolP224r1\"\n#define NID_brainpoolP224r1             925\n#define OBJ_brainpoolP224r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,5L\n\n#define SN_brainpoolP224t1              \"brainpoolP224t1\"\n#define NID_brainpoolP224t1             926\n#define OBJ_brainpoolP224t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,6L\n\n#define SN_brainpoolP256r1              \"brainpoolP256r1\"\n#define NID_brainpoolP256r1             927\n#define OBJ_brainpoolP256r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,7L\n\n#define SN_brainpoolP256t1              \"brainpoolP256t1\"\n#define NID_brainpoolP256t1             928\n#define OBJ_brainpoolP256t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,8L\n\n#define SN_brainpoolP320r1              \"brainpoolP320r1\"\n#define NID_brainpoolP320r1             929\n#define OBJ_brainpoolP320r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,9L\n\n#define SN_brainpoolP320t1              \"brainpoolP320t1\"\n#define NID_brainpoolP320t1             930\n#define OBJ_brainpoolP320t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,10L\n\n#define SN_brainpoolP384r1              \"brainpoolP384r1\"\n#define NID_brainpoolP384r1             931\n#define OBJ_brainpoolP384r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,11L\n\n#define SN_brainpoolP384t1              \"brainpoolP384t1\"\n#define NID_brainpoolP384t1             932\n#define OBJ_brainpoolP384t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,12L\n\n#define SN_brainpoolP512r1              \"brainpoolP512r1\"\n#define NID_brainpoolP512r1             933\n#define OBJ_brainpoolP512r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,13L\n\n#define SN_brainpoolP512t1              \"brainpoolP512t1\"\n#define NID_brainpoolP512t1             934\n#define OBJ_brainpoolP512t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,14L\n\n#define OBJ_x9_63_scheme                1L,3L,133L,16L,840L,63L,0L\n\n#define OBJ_secg_scheme         OBJ_certicom_arc,1L\n\n#define SN_dhSinglePass_stdDH_sha1kdf_scheme            \"dhSinglePass-stdDH-sha1kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha1kdf_scheme           936\n#define OBJ_dhSinglePass_stdDH_sha1kdf_scheme           OBJ_x9_63_scheme,2L\n\n#define SN_dhSinglePass_stdDH_sha224kdf_scheme          \"dhSinglePass-stdDH-sha224kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha224kdf_scheme         937\n#define OBJ_dhSinglePass_stdDH_sha224kdf_scheme         OBJ_secg_scheme,11L,0L\n\n#define SN_dhSinglePass_stdDH_sha256kdf_scheme          \"dhSinglePass-stdDH-sha256kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha256kdf_scheme         938\n#define OBJ_dhSinglePass_stdDH_sha256kdf_scheme         OBJ_secg_scheme,11L,1L\n\n#define SN_dhSinglePass_stdDH_sha384kdf_scheme          \"dhSinglePass-stdDH-sha384kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha384kdf_scheme         939\n#define OBJ_dhSinglePass_stdDH_sha384kdf_scheme         OBJ_secg_scheme,11L,2L\n\n#define SN_dhSinglePass_stdDH_sha512kdf_scheme          \"dhSinglePass-stdDH-sha512kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha512kdf_scheme         940\n#define OBJ_dhSinglePass_stdDH_sha512kdf_scheme         OBJ_secg_scheme,11L,3L\n\n#define SN_dhSinglePass_cofactorDH_sha1kdf_scheme               \"dhSinglePass-cofactorDH-sha1kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha1kdf_scheme              941\n#define OBJ_dhSinglePass_cofactorDH_sha1kdf_scheme              OBJ_x9_63_scheme,3L\n\n#define SN_dhSinglePass_cofactorDH_sha224kdf_scheme             \"dhSinglePass-cofactorDH-sha224kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha224kdf_scheme            942\n#define OBJ_dhSinglePass_cofactorDH_sha224kdf_scheme            OBJ_secg_scheme,14L,0L\n\n#define SN_dhSinglePass_cofactorDH_sha256kdf_scheme             \"dhSinglePass-cofactorDH-sha256kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha256kdf_scheme            943\n#define OBJ_dhSinglePass_cofactorDH_sha256kdf_scheme            OBJ_secg_scheme,14L,1L\n\n#define SN_dhSinglePass_cofactorDH_sha384kdf_scheme             \"dhSinglePass-cofactorDH-sha384kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha384kdf_scheme            944\n#define OBJ_dhSinglePass_cofactorDH_sha384kdf_scheme            OBJ_secg_scheme,14L,2L\n\n#define SN_dhSinglePass_cofactorDH_sha512kdf_scheme             \"dhSinglePass-cofactorDH-sha512kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha512kdf_scheme            945\n#define OBJ_dhSinglePass_cofactorDH_sha512kdf_scheme            OBJ_secg_scheme,14L,3L\n\n#define SN_dh_std_kdf           \"dh-std-kdf\"\n#define NID_dh_std_kdf          946\n\n#define SN_dh_cofactor_kdf              \"dh-cofactor-kdf\"\n#define NID_dh_cofactor_kdf             947\n\n#define SN_ct_precert_scts              \"ct_precert_scts\"\n#define LN_ct_precert_scts              \"CT Precertificate SCTs\"\n#define NID_ct_precert_scts             951\n#define OBJ_ct_precert_scts             1L,3L,6L,1L,4L,1L,11129L,2L,4L,2L\n\n#define SN_ct_precert_poison            \"ct_precert_poison\"\n#define LN_ct_precert_poison            \"CT Precertificate Poison\"\n#define NID_ct_precert_poison           952\n#define OBJ_ct_precert_poison           1L,3L,6L,1L,4L,1L,11129L,2L,4L,3L\n\n#define SN_ct_precert_signer            \"ct_precert_signer\"\n#define LN_ct_precert_signer            \"CT Precertificate Signer\"\n#define NID_ct_precert_signer           953\n#define OBJ_ct_precert_signer           1L,3L,6L,1L,4L,1L,11129L,2L,4L,4L\n\n#define SN_ct_cert_scts         \"ct_cert_scts\"\n#define LN_ct_cert_scts         \"CT Certificate SCTs\"\n#define NID_ct_cert_scts                954\n#define OBJ_ct_cert_scts                1L,3L,6L,1L,4L,1L,11129L,2L,4L,5L\n\n#define SN_jurisdictionLocalityName             \"jurisdictionL\"\n#define LN_jurisdictionLocalityName             \"jurisdictionLocalityName\"\n#define NID_jurisdictionLocalityName            955\n#define OBJ_jurisdictionLocalityName            1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,1L\n\n#define SN_jurisdictionStateOrProvinceName              \"jurisdictionST\"\n#define LN_jurisdictionStateOrProvinceName              \"jurisdictionStateOrProvinceName\"\n#define NID_jurisdictionStateOrProvinceName             956\n#define OBJ_jurisdictionStateOrProvinceName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,2L\n\n#define SN_jurisdictionCountryName              \"jurisdictionC\"\n#define LN_jurisdictionCountryName              \"jurisdictionCountryName\"\n#define NID_jurisdictionCountryName             957\n#define OBJ_jurisdictionCountryName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,3L\n\n#define SN_id_scrypt            \"id-scrypt\"\n#define LN_id_scrypt            \"scrypt\"\n#define NID_id_scrypt           973\n#define OBJ_id_scrypt           1L,3L,6L,1L,4L,1L,11591L,4L,11L\n\n#define SN_tls1_prf             \"TLS1-PRF\"\n#define LN_tls1_prf             \"tls1-prf\"\n#define NID_tls1_prf            1021\n\n#define SN_hkdf         \"HKDF\"\n#define LN_hkdf         \"hkdf\"\n#define NID_hkdf                1036\n\n#define SN_id_pkinit            \"id-pkinit\"\n#define NID_id_pkinit           1031\n#define OBJ_id_pkinit           1L,3L,6L,1L,5L,2L,3L\n\n#define SN_pkInitClientAuth             \"pkInitClientAuth\"\n#define LN_pkInitClientAuth             \"PKINIT Client Auth\"\n#define NID_pkInitClientAuth            1032\n#define OBJ_pkInitClientAuth            OBJ_id_pkinit,4L\n\n#define SN_pkInitKDC            \"pkInitKDC\"\n#define LN_pkInitKDC            \"Signing KDC Response\"\n#define NID_pkInitKDC           1033\n#define OBJ_pkInitKDC           OBJ_id_pkinit,5L\n\n#define SN_X25519               \"X25519\"\n#define NID_X25519              1034\n#define OBJ_X25519              1L,3L,101L,110L\n\n#define SN_X448         \"X448\"\n#define NID_X448                1035\n#define OBJ_X448                1L,3L,101L,111L\n\n#define SN_ED25519              \"ED25519\"\n#define NID_ED25519             1087\n#define OBJ_ED25519             1L,3L,101L,112L\n\n#define SN_ED448                \"ED448\"\n#define NID_ED448               1088\n#define OBJ_ED448               1L,3L,101L,113L\n\n#define SN_kx_rsa               \"KxRSA\"\n#define LN_kx_rsa               \"kx-rsa\"\n#define NID_kx_rsa              1037\n\n#define SN_kx_ecdhe             \"KxECDHE\"\n#define LN_kx_ecdhe             \"kx-ecdhe\"\n#define NID_kx_ecdhe            1038\n\n#define SN_kx_dhe               \"KxDHE\"\n#define LN_kx_dhe               \"kx-dhe\"\n#define NID_kx_dhe              1039\n\n#define SN_kx_ecdhe_psk         \"KxECDHE-PSK\"\n#define LN_kx_ecdhe_psk         \"kx-ecdhe-psk\"\n#define NID_kx_ecdhe_psk                1040\n\n#define SN_kx_dhe_psk           \"KxDHE-PSK\"\n#define LN_kx_dhe_psk           \"kx-dhe-psk\"\n#define NID_kx_dhe_psk          1041\n\n#define SN_kx_rsa_psk           \"KxRSA_PSK\"\n#define LN_kx_rsa_psk           \"kx-rsa-psk\"\n#define NID_kx_rsa_psk          1042\n\n#define SN_kx_psk               \"KxPSK\"\n#define LN_kx_psk               \"kx-psk\"\n#define NID_kx_psk              1043\n\n#define SN_kx_srp               \"KxSRP\"\n#define LN_kx_srp               \"kx-srp\"\n#define NID_kx_srp              1044\n\n#define SN_kx_gost              \"KxGOST\"\n#define LN_kx_gost              \"kx-gost\"\n#define NID_kx_gost             1045\n\n#define SN_kx_any               \"KxANY\"\n#define LN_kx_any               \"kx-any\"\n#define NID_kx_any              1063\n\n#define SN_auth_rsa             \"AuthRSA\"\n#define LN_auth_rsa             \"auth-rsa\"\n#define NID_auth_rsa            1046\n\n#define SN_auth_ecdsa           \"AuthECDSA\"\n#define LN_auth_ecdsa           \"auth-ecdsa\"\n#define NID_auth_ecdsa          1047\n\n#define SN_auth_psk             \"AuthPSK\"\n#define LN_auth_psk             \"auth-psk\"\n#define NID_auth_psk            1048\n\n#define SN_auth_dss             \"AuthDSS\"\n#define LN_auth_dss             \"auth-dss\"\n#define NID_auth_dss            1049\n\n#define SN_auth_gost01          \"AuthGOST01\"\n#define LN_auth_gost01          \"auth-gost01\"\n#define NID_auth_gost01         1050\n\n#define SN_auth_gost12          \"AuthGOST12\"\n#define LN_auth_gost12          \"auth-gost12\"\n#define NID_auth_gost12         1051\n\n#define SN_auth_srp             \"AuthSRP\"\n#define LN_auth_srp             \"auth-srp\"\n#define NID_auth_srp            1052\n\n#define SN_auth_null            \"AuthNULL\"\n#define LN_auth_null            \"auth-null\"\n#define NID_auth_null           1053\n\n#define SN_auth_any             \"AuthANY\"\n#define LN_auth_any             \"auth-any\"\n#define NID_auth_any            1064\n\n#define SN_poly1305             \"Poly1305\"\n#define LN_poly1305             \"poly1305\"\n#define NID_poly1305            1061\n\n#define SN_siphash              \"SipHash\"\n#define LN_siphash              \"siphash\"\n#define NID_siphash             1062\n\n#define SN_ffdhe2048            \"ffdhe2048\"\n#define NID_ffdhe2048           1126\n\n#define SN_ffdhe3072            \"ffdhe3072\"\n#define NID_ffdhe3072           1127\n\n#define SN_ffdhe4096            \"ffdhe4096\"\n#define NID_ffdhe4096           1128\n\n#define SN_ffdhe6144            \"ffdhe6144\"\n#define NID_ffdhe6144           1129\n\n#define SN_ffdhe8192            \"ffdhe8192\"\n#define NID_ffdhe8192           1130\n\n#define SN_ISO_UA               \"ISO-UA\"\n#define NID_ISO_UA              1150\n#define OBJ_ISO_UA              OBJ_member_body,804L\n\n#define SN_ua_pki               \"ua-pki\"\n#define NID_ua_pki              1151\n#define OBJ_ua_pki              OBJ_ISO_UA,2L,1L,1L,1L\n\n#define SN_dstu28147            \"dstu28147\"\n#define LN_dstu28147            \"DSTU Gost 28147-2009\"\n#define NID_dstu28147           1152\n#define OBJ_dstu28147           OBJ_ua_pki,1L,1L,1L\n\n#define SN_dstu28147_ofb                \"dstu28147-ofb\"\n#define LN_dstu28147_ofb                \"DSTU Gost 28147-2009 OFB mode\"\n#define NID_dstu28147_ofb               1153\n#define OBJ_dstu28147_ofb               OBJ_dstu28147,2L\n\n#define SN_dstu28147_cfb                \"dstu28147-cfb\"\n#define LN_dstu28147_cfb                \"DSTU Gost 28147-2009 CFB mode\"\n#define NID_dstu28147_cfb               1154\n#define OBJ_dstu28147_cfb               OBJ_dstu28147,3L\n\n#define SN_dstu28147_wrap               \"dstu28147-wrap\"\n#define LN_dstu28147_wrap               \"DSTU Gost 28147-2009 key wrap\"\n#define NID_dstu28147_wrap              1155\n#define OBJ_dstu28147_wrap              OBJ_dstu28147,5L\n\n#define SN_hmacWithDstu34311            \"hmacWithDstu34311\"\n#define LN_hmacWithDstu34311            \"HMAC DSTU Gost 34311-95\"\n#define NID_hmacWithDstu34311           1156\n#define OBJ_hmacWithDstu34311           OBJ_ua_pki,1L,1L,2L\n\n#define SN_dstu34311            \"dstu34311\"\n#define LN_dstu34311            \"DSTU Gost 34311-95\"\n#define NID_dstu34311           1157\n#define OBJ_dstu34311           OBJ_ua_pki,1L,2L,1L\n\n#define SN_dstu4145le           \"dstu4145le\"\n#define LN_dstu4145le           \"DSTU 4145-2002 little endian\"\n#define NID_dstu4145le          1158\n#define OBJ_dstu4145le          OBJ_ua_pki,1L,3L,1L,1L\n\n#define SN_dstu4145be           \"dstu4145be\"\n#define LN_dstu4145be           \"DSTU 4145-2002 big endian\"\n#define NID_dstu4145be          1159\n#define OBJ_dstu4145be          OBJ_dstu4145le,1L,1L\n\n#define SN_uacurve0             \"uacurve0\"\n#define LN_uacurve0             \"DSTU curve 0\"\n#define NID_uacurve0            1160\n#define OBJ_uacurve0            OBJ_dstu4145le,2L,0L\n\n#define SN_uacurve1             \"uacurve1\"\n#define LN_uacurve1             \"DSTU curve 1\"\n#define NID_uacurve1            1161\n#define OBJ_uacurve1            OBJ_dstu4145le,2L,1L\n\n#define SN_uacurve2             \"uacurve2\"\n#define LN_uacurve2             \"DSTU curve 2\"\n#define NID_uacurve2            1162\n#define OBJ_uacurve2            OBJ_dstu4145le,2L,2L\n\n#define SN_uacurve3             \"uacurve3\"\n#define LN_uacurve3             \"DSTU curve 3\"\n#define NID_uacurve3            1163\n#define OBJ_uacurve3            OBJ_dstu4145le,2L,3L\n\n#define SN_uacurve4             \"uacurve4\"\n#define LN_uacurve4             \"DSTU curve 4\"\n#define NID_uacurve4            1164\n#define OBJ_uacurve4            OBJ_dstu4145le,2L,4L\n\n#define SN_uacurve5             \"uacurve5\"\n#define LN_uacurve5             \"DSTU curve 5\"\n#define NID_uacurve5            1165\n#define OBJ_uacurve5            OBJ_dstu4145le,2L,5L\n\n#define SN_uacurve6             \"uacurve6\"\n#define LN_uacurve6             \"DSTU curve 6\"\n#define NID_uacurve6            1166\n#define OBJ_uacurve6            OBJ_dstu4145le,2L,6L\n\n#define SN_uacurve7             \"uacurve7\"\n#define LN_uacurve7             \"DSTU curve 7\"\n#define NID_uacurve7            1167\n#define OBJ_uacurve7            OBJ_dstu4145le,2L,7L\n\n#define SN_uacurve8             \"uacurve8\"\n#define LN_uacurve8             \"DSTU curve 8\"\n#define NID_uacurve8            1168\n#define OBJ_uacurve8            OBJ_dstu4145le,2L,8L\n\n#define SN_uacurve9             \"uacurve9\"\n#define LN_uacurve9             \"DSTU curve 9\"\n#define NID_uacurve9            1169\n#define OBJ_uacurve9            OBJ_dstu4145le,2L,9L\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/objects.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OBJECTS_H\n# define HEADER_OBJECTS_H\n\n# include <openssl/obj_mac.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/objectserr.h>\n\n# define OBJ_NAME_TYPE_UNDEF             0x00\n# define OBJ_NAME_TYPE_MD_METH           0x01\n# define OBJ_NAME_TYPE_CIPHER_METH       0x02\n# define OBJ_NAME_TYPE_PKEY_METH         0x03\n# define OBJ_NAME_TYPE_COMP_METH         0x04\n# define OBJ_NAME_TYPE_NUM               0x05\n\n# define OBJ_NAME_ALIAS                  0x8000\n\n# define OBJ_BSEARCH_VALUE_ON_NOMATCH            0x01\n# define OBJ_BSEARCH_FIRST_VALUE_ON_MATCH        0x02\n\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct obj_name_st {\n    int type;\n    int alias;\n    const char *name;\n    const char *data;\n} OBJ_NAME;\n\n# define         OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)\n\nint OBJ_NAME_init(void);\nint OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),\n                       int (*cmp_func) (const char *, const char *),\n                       void (*free_func) (const char *, int, const char *));\nconst char *OBJ_NAME_get(const char *name, int type);\nint OBJ_NAME_add(const char *name, int type, const char *data);\nint OBJ_NAME_remove(const char *name, int type);\nvoid OBJ_NAME_cleanup(int type); /* -1 for everything */\nvoid OBJ_NAME_do_all(int type, void (*fn) (const OBJ_NAME *, void *arg),\n                     void *arg);\nvoid OBJ_NAME_do_all_sorted(int type,\n                            void (*fn) (const OBJ_NAME *, void *arg),\n                            void *arg);\n\nASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *o);\nASN1_OBJECT *OBJ_nid2obj(int n);\nconst char *OBJ_nid2ln(int n);\nconst char *OBJ_nid2sn(int n);\nint OBJ_obj2nid(const ASN1_OBJECT *o);\nASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name);\nint OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);\nint OBJ_txt2nid(const char *s);\nint OBJ_ln2nid(const char *s);\nint OBJ_sn2nid(const char *s);\nint OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);\nconst void *OBJ_bsearch_(const void *key, const void *base, int num, int size,\n                         int (*cmp) (const void *, const void *));\nconst void *OBJ_bsearch_ex_(const void *key, const void *base, int num,\n                            int size,\n                            int (*cmp) (const void *, const void *),\n                            int flags);\n\n# define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm)    \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \\\n  static int nm##_cmp(type1 const *, type2 const *); \\\n  scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)\n\n# define DECLARE_OBJ_BSEARCH_CMP_FN(type1, type2, cmp)   \\\n  _DECLARE_OBJ_BSEARCH_CMP_FN(static, type1, type2, cmp)\n# define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm)     \\\n  type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)\n\n/*-\n * Unsolved problem: if a type is actually a pointer type, like\n * nid_triple is, then its impossible to get a const where you need\n * it. Consider:\n *\n * typedef int nid_triple[3];\n * const void *a_;\n * const nid_triple const *a = a_;\n *\n * The assignment discards a const because what you really want is:\n *\n * const int const * const *a = a_;\n *\n * But if you do that, you lose the fact that a is an array of 3 ints,\n * which breaks comparison functions.\n *\n * Thus we end up having to cast, sadly, or unpack the\n * declarations. Or, as I finally did in this case, declare nid_triple\n * to be a struct, which it should have been in the first place.\n *\n * Ben, August 2008.\n *\n * Also, strictly speaking not all types need be const, but handling\n * the non-constness means a lot of complication, and in practice\n * comparison routines do always not touch their arguments.\n */\n\n# define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm)  \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)    \\\n      { \\\n      type1 const *a = a_; \\\n      type2 const *b = b_; \\\n      return nm##_cmp(a,b); \\\n      } \\\n  static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \\\n      { \\\n      return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \\\n                                        nm##_cmp_BSEARCH_CMP_FN); \\\n      } \\\n      extern void dummy_prototype(void)\n\n# define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm)   \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)    \\\n      { \\\n      type1 const *a = a_; \\\n      type2 const *b = b_; \\\n      return nm##_cmp(a,b); \\\n      } \\\n  type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \\\n      { \\\n      return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \\\n                                        nm##_cmp_BSEARCH_CMP_FN); \\\n      } \\\n      extern void dummy_prototype(void)\n\n# define OBJ_bsearch(type1,key,type2,base,num,cmp)                              \\\n  ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \\\n                         num,sizeof(type2),                             \\\n                         ((void)CHECKED_PTR_OF(type1,cmp##_type_1),     \\\n                          (void)CHECKED_PTR_OF(type2,cmp##_type_2),     \\\n                          cmp##_BSEARCH_CMP_FN)))\n\n# define OBJ_bsearch_ex(type1,key,type2,base,num,cmp,flags)                      \\\n  ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \\\n                         num,sizeof(type2),                             \\\n                         ((void)CHECKED_PTR_OF(type1,cmp##_type_1),     \\\n                          (void)type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \\\n                          cmp##_BSEARCH_CMP_FN)),flags)\n\nint OBJ_new_nid(int num);\nint OBJ_add_object(const ASN1_OBJECT *obj);\nint OBJ_create(const char *oid, const char *sn, const char *ln);\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define OBJ_cleanup() while(0) continue\n#endif\nint OBJ_create_objects(BIO *in);\n\nsize_t OBJ_length(const ASN1_OBJECT *obj);\nconst unsigned char *OBJ_get0_data(const ASN1_OBJECT *obj);\n\nint OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid);\nint OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid);\nint OBJ_add_sigid(int signid, int dig_id, int pkey_id);\nvoid OBJ_sigid_free(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/objectserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OBJERR_H\n# define HEADER_OBJERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_OBJ_strings(void);\n\n/*\n * OBJ function codes.\n */\n# define OBJ_F_OBJ_ADD_OBJECT                             105\n# define OBJ_F_OBJ_ADD_SIGID                              107\n# define OBJ_F_OBJ_CREATE                                 100\n# define OBJ_F_OBJ_DUP                                    101\n# define OBJ_F_OBJ_NAME_NEW_INDEX                         106\n# define OBJ_F_OBJ_NID2LN                                 102\n# define OBJ_F_OBJ_NID2OBJ                                103\n# define OBJ_F_OBJ_NID2SN                                 104\n# define OBJ_F_OBJ_TXT2OBJ                                108\n\n/*\n * OBJ reason codes.\n */\n# define OBJ_R_OID_EXISTS                                 102\n# define OBJ_R_UNKNOWN_NID                                101\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ocsp.h",
    "content": "/*\n * Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OCSP_H\n# define HEADER_OCSP_H\n\n#include <openssl/opensslconf.h>\n\n/*\n * These definitions are outside the OPENSSL_NO_OCSP guard because although for\n * historical reasons they have OCSP_* names, they can actually be used\n * independently of OCSP. E.g. see RFC5280\n */\n/*-\n *   CRLReason ::= ENUMERATED {\n *        unspecified             (0),\n *        keyCompromise           (1),\n *        cACompromise            (2),\n *        affiliationChanged      (3),\n *        superseded              (4),\n *        cessationOfOperation    (5),\n *        certificateHold         (6),\n *        removeFromCRL           (8) }\n */\n#  define OCSP_REVOKED_STATUS_NOSTATUS               -1\n#  define OCSP_REVOKED_STATUS_UNSPECIFIED             0\n#  define OCSP_REVOKED_STATUS_KEYCOMPROMISE           1\n#  define OCSP_REVOKED_STATUS_CACOMPROMISE            2\n#  define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED      3\n#  define OCSP_REVOKED_STATUS_SUPERSEDED              4\n#  define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION    5\n#  define OCSP_REVOKED_STATUS_CERTIFICATEHOLD         6\n#  define OCSP_REVOKED_STATUS_REMOVEFROMCRL           8\n\n\n# ifndef OPENSSL_NO_OCSP\n\n#  include <openssl/ossl_typ.h>\n#  include <openssl/x509.h>\n#  include <openssl/x509v3.h>\n#  include <openssl/safestack.h>\n#  include <openssl/ocsperr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Various flags and values */\n\n#  define OCSP_DEFAULT_NONCE_LENGTH       16\n\n#  define OCSP_NOCERTS                    0x1\n#  define OCSP_NOINTERN                   0x2\n#  define OCSP_NOSIGS                     0x4\n#  define OCSP_NOCHAIN                    0x8\n#  define OCSP_NOVERIFY                   0x10\n#  define OCSP_NOEXPLICIT                 0x20\n#  define OCSP_NOCASIGN                   0x40\n#  define OCSP_NODELEGATED                0x80\n#  define OCSP_NOCHECKS                   0x100\n#  define OCSP_TRUSTOTHER                 0x200\n#  define OCSP_RESPID_KEY                 0x400\n#  define OCSP_NOTIME                     0x800\n\ntypedef struct ocsp_cert_id_st OCSP_CERTID;\n\nDEFINE_STACK_OF(OCSP_CERTID)\n\ntypedef struct ocsp_one_request_st OCSP_ONEREQ;\n\nDEFINE_STACK_OF(OCSP_ONEREQ)\n\ntypedef struct ocsp_req_info_st OCSP_REQINFO;\ntypedef struct ocsp_signature_st OCSP_SIGNATURE;\ntypedef struct ocsp_request_st OCSP_REQUEST;\n\n#  define OCSP_RESPONSE_STATUS_SUCCESSFUL           0\n#  define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST     1\n#  define OCSP_RESPONSE_STATUS_INTERNALERROR        2\n#  define OCSP_RESPONSE_STATUS_TRYLATER             3\n#  define OCSP_RESPONSE_STATUS_SIGREQUIRED          5\n#  define OCSP_RESPONSE_STATUS_UNAUTHORIZED         6\n\ntypedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;\n\n#  define V_OCSP_RESPID_NAME 0\n#  define V_OCSP_RESPID_KEY  1\n\nDEFINE_STACK_OF(OCSP_RESPID)\n\ntypedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;\n\n#  define V_OCSP_CERTSTATUS_GOOD    0\n#  define V_OCSP_CERTSTATUS_REVOKED 1\n#  define V_OCSP_CERTSTATUS_UNKNOWN 2\n\ntypedef struct ocsp_cert_status_st OCSP_CERTSTATUS;\ntypedef struct ocsp_single_response_st OCSP_SINGLERESP;\n\nDEFINE_STACK_OF(OCSP_SINGLERESP)\n\ntypedef struct ocsp_response_data_st OCSP_RESPDATA;\n\ntypedef struct ocsp_basic_response_st OCSP_BASICRESP;\n\ntypedef struct ocsp_crl_id_st OCSP_CRLID;\ntypedef struct ocsp_service_locator_st OCSP_SERVICELOC;\n\n#  define PEM_STRING_OCSP_REQUEST \"OCSP REQUEST\"\n#  define PEM_STRING_OCSP_RESPONSE \"OCSP RESPONSE\"\n\n#  define d2i_OCSP_REQUEST_bio(bp,p) ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)\n\n#  define d2i_OCSP_RESPONSE_bio(bp,p) ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)\n\n#  define PEM_read_bio_OCSP_REQUEST(bp,x,cb) (OCSP_REQUEST *)PEM_ASN1_read_bio( \\\n     (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \\\n     bp,(char **)(x),cb,NULL)\n\n#  define PEM_read_bio_OCSP_RESPONSE(bp,x,cb) (OCSP_RESPONSE *)PEM_ASN1_read_bio(\\\n     (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \\\n     bp,(char **)(x),cb,NULL)\n\n#  define PEM_write_bio_OCSP_REQUEST(bp,o) \\\n    PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\\\n                        bp,(char *)(o), NULL,NULL,0,NULL,NULL)\n\n#  define PEM_write_bio_OCSP_RESPONSE(bp,o) \\\n    PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\\\n                        bp,(char *)(o), NULL,NULL,0,NULL,NULL)\n\n#  define i2d_OCSP_RESPONSE_bio(bp,o) ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)\n\n#  define i2d_OCSP_REQUEST_bio(bp,o) ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)\n\n#  define ASN1_BIT_STRING_digest(data,type,md,len) \\\n        ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)\n\n#  define OCSP_CERTSTATUS_dup(cs)\\\n                (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\\\n                (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))\n\nOCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);\n\nOCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);\nOCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,\n                               int maxline);\nint OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);\nint OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);\nOCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);\nvoid OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);\nvoid OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);\nint OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,\n                     ASN1_VALUE *val);\nint OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,\n                          const ASN1_ITEM *it);\nBIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);\nint OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);\nint OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);\nint OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,\n                             const char *name, const char *value);\n\nOCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,\n                             const X509 *issuer);\n\nOCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,\n                              const X509_NAME *issuerName,\n                              const ASN1_BIT_STRING *issuerKey,\n                              const ASN1_INTEGER *serialNumber);\n\nOCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);\n\nint OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len);\nint OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len);\nint OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);\nint OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req);\n\nint OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm);\nint OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert);\n\nint OCSP_request_sign(OCSP_REQUEST *req,\n                      X509 *signer,\n                      EVP_PKEY *key,\n                      const EVP_MD *dgst,\n                      STACK_OF(X509) *certs, unsigned long flags);\n\nint OCSP_response_status(OCSP_RESPONSE *resp);\nOCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);\n\nconst ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);\nconst X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);\nconst OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);\nint OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,\n                          STACK_OF(X509) *extra_certs);\n\nint OCSP_resp_count(OCSP_BASICRESP *bs);\nOCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);\nconst ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs);\nconst STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);\nint OCSP_resp_get0_id(const OCSP_BASICRESP *bs,\n                      const ASN1_OCTET_STRING **pid,\n                      const X509_NAME **pname);\nint OCSP_resp_get1_id(const OCSP_BASICRESP *bs,\n                      ASN1_OCTET_STRING **pid,\n                      X509_NAME **pname);\n\nint OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);\nint OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,\n                            ASN1_GENERALIZEDTIME **revtime,\n                            ASN1_GENERALIZEDTIME **thisupd,\n                            ASN1_GENERALIZEDTIME **nextupd);\nint OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,\n                          int *reason,\n                          ASN1_GENERALIZEDTIME **revtime,\n                          ASN1_GENERALIZEDTIME **thisupd,\n                          ASN1_GENERALIZEDTIME **nextupd);\nint OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,\n                        ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec);\n\nint OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,\n                        X509_STORE *store, unsigned long flags);\n\nint OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,\n                   int *pssl);\n\nint OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);\nint OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);\n\nint OCSP_request_onereq_count(OCSP_REQUEST *req);\nOCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);\nOCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one);\nint OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,\n                      ASN1_OCTET_STRING **pikeyHash,\n                      ASN1_INTEGER **pserial, OCSP_CERTID *cid);\nint OCSP_request_is_signed(OCSP_REQUEST *req);\nOCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);\nOCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp,\n                                        OCSP_CERTID *cid,\n                                        int status, int reason,\n                                        ASN1_TIME *revtime,\n                                        ASN1_TIME *thisupd,\n                                        ASN1_TIME *nextupd);\nint OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert);\nint OCSP_basic_sign(OCSP_BASICRESP *brsp,\n                    X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,\n                    STACK_OF(X509) *certs, unsigned long flags);\nint OCSP_basic_sign_ctx(OCSP_BASICRESP *brsp,\n                        X509 *signer, EVP_MD_CTX *ctx,\n                        STACK_OF(X509) *certs, unsigned long flags);\nint OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert);\nint OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert);\nint OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert);\n\nX509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);\n\nX509_EXTENSION *OCSP_accept_responses_new(char **oids);\n\nX509_EXTENSION *OCSP_archive_cutoff_new(char *tim);\n\nX509_EXTENSION *OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls);\n\nint OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x);\nint OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos);\nint OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj,\n                                int lastpos);\nint OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos);\nX509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);\nX509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);\nvoid *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit,\n                                int *idx);\nint OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value, int crit,\n                              unsigned long flags);\nint OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x);\nint OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos);\nint OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos);\nint OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);\nX509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);\nX509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);\nvoid *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);\nint OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,\n                             unsigned long flags);\nint OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x);\nint OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos);\nint OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj,\n                                  int lastpos);\nint OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,\n                                       int lastpos);\nX509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc);\nX509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc);\nvoid *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,\n                                  int *idx);\nint OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value,\n                                int crit, unsigned long flags);\nint OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x);\nint OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos);\nint OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj,\n                                   int lastpos);\nint OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,\n                                        int lastpos);\nX509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc);\nX509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc);\nvoid *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,\n                                   int *idx);\nint OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,\n                                 int crit, unsigned long flags);\nint OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc);\nconst OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);\n\nDECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP)\nDECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS)\nDECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO)\nDECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPID)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES)\nDECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ)\nDECLARE_ASN1_FUNCTIONS(OCSP_CERTID)\nDECLARE_ASN1_FUNCTIONS(OCSP_REQUEST)\nDECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE)\nDECLARE_ASN1_FUNCTIONS(OCSP_REQINFO)\nDECLARE_ASN1_FUNCTIONS(OCSP_CRLID)\nDECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC)\n\nconst char *OCSP_response_status_str(long s);\nconst char *OCSP_cert_status_str(long s);\nconst char *OCSP_crl_reason_str(long s);\n\nint OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *a, unsigned long flags);\nint OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);\n\nint OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,\n                      X509_STORE *st, unsigned long flags);\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ocsperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OCSPERR_H\n# define HEADER_OCSPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_OCSP\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_OCSP_strings(void);\n\n/*\n * OCSP function codes.\n */\n#  define OCSP_F_D2I_OCSP_NONCE                            102\n#  define OCSP_F_OCSP_BASIC_ADD1_STATUS                    103\n#  define OCSP_F_OCSP_BASIC_SIGN                           104\n#  define OCSP_F_OCSP_BASIC_SIGN_CTX                       119\n#  define OCSP_F_OCSP_BASIC_VERIFY                         105\n#  define OCSP_F_OCSP_CERT_ID_NEW                          101\n#  define OCSP_F_OCSP_CHECK_DELEGATED                      106\n#  define OCSP_F_OCSP_CHECK_IDS                            107\n#  define OCSP_F_OCSP_CHECK_ISSUER                         108\n#  define OCSP_F_OCSP_CHECK_VALIDITY                       115\n#  define OCSP_F_OCSP_MATCH_ISSUERID                       109\n#  define OCSP_F_OCSP_PARSE_URL                            114\n#  define OCSP_F_OCSP_REQUEST_SIGN                         110\n#  define OCSP_F_OCSP_REQUEST_VERIFY                       116\n#  define OCSP_F_OCSP_RESPONSE_GET1_BASIC                  111\n#  define OCSP_F_PARSE_HTTP_LINE1                          118\n\n/*\n * OCSP reason codes.\n */\n#  define OCSP_R_CERTIFICATE_VERIFY_ERROR                  101\n#  define OCSP_R_DIGEST_ERR                                102\n#  define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD                 122\n#  define OCSP_R_ERROR_IN_THISUPDATE_FIELD                 123\n#  define OCSP_R_ERROR_PARSING_URL                         121\n#  define OCSP_R_MISSING_OCSPSIGNING_USAGE                 103\n#  define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE              124\n#  define OCSP_R_NOT_BASIC_RESPONSE                        104\n#  define OCSP_R_NO_CERTIFICATES_IN_CHAIN                  105\n#  define OCSP_R_NO_RESPONSE_DATA                          108\n#  define OCSP_R_NO_REVOKED_TIME                           109\n#  define OCSP_R_NO_SIGNER_KEY                             130\n#  define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE    110\n#  define OCSP_R_REQUEST_NOT_SIGNED                        128\n#  define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA      111\n#  define OCSP_R_ROOT_CA_NOT_TRUSTED                       112\n#  define OCSP_R_SERVER_RESPONSE_ERROR                     114\n#  define OCSP_R_SERVER_RESPONSE_PARSE_ERROR               115\n#  define OCSP_R_SIGNATURE_FAILURE                         117\n#  define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND              118\n#  define OCSP_R_STATUS_EXPIRED                            125\n#  define OCSP_R_STATUS_NOT_YET_VALID                      126\n#  define OCSP_R_STATUS_TOO_OLD                            127\n#  define OCSP_R_UNKNOWN_MESSAGE_DIGEST                    119\n#  define OCSP_R_UNKNOWN_NID                               120\n#  define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE            129\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/opensslconf.h",
    "content": "/*\n * WARNING: do not edit!\n * Generated by Makefile from include/openssl/opensslconf.h.in\n *\n * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/opensslv.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef OPENSSL_ALGORITHM_DEFINES\n# error OPENSSL_ALGORITHM_DEFINES no longer supported\n#endif\n\n/*\n * OpenSSL was configured with the following options:\n */\n\n#ifndef OPENSSL_SYS_iOS\n# define OPENSSL_SYS_iOS 1\n#endif\n#ifndef OPENSSL_NO_MD2\n# define OPENSSL_NO_MD2\n#endif\n#ifndef OPENSSL_NO_RC5\n# define OPENSSL_NO_RC5\n#endif\n#ifndef OPENSSL_THREADS\n# define OPENSSL_THREADS\n#endif\n#ifndef OPENSSL_RAND_SEED_OS\n# define OPENSSL_RAND_SEED_OS\n#endif\n#ifndef OPENSSL_NO_AFALGENG\n# define OPENSSL_NO_AFALGENG\n#endif\n#ifndef OPENSSL_NO_ASAN\n# define OPENSSL_NO_ASAN\n#endif\n#ifndef OPENSSL_NO_ASYNC\n# define OPENSSL_NO_ASYNC\n#endif\n#ifndef OPENSSL_NO_CRYPTO_MDEBUG\n# define OPENSSL_NO_CRYPTO_MDEBUG\n#endif\n#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\n# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\n#endif\n#ifndef OPENSSL_NO_DEVCRYPTOENG\n# define OPENSSL_NO_DEVCRYPTOENG\n#endif\n#ifndef OPENSSL_NO_DSO\n# define OPENSSL_NO_DSO\n#endif\n#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\n# define OPENSSL_NO_EC_NISTP_64_GCC_128\n#endif\n#ifndef OPENSSL_NO_EGD\n# define OPENSSL_NO_EGD\n#endif\n#ifndef OPENSSL_NO_ENGINE\n# define OPENSSL_NO_ENGINE\n#endif\n#ifndef OPENSSL_NO_EXTERNAL_TESTS\n# define OPENSSL_NO_EXTERNAL_TESTS\n#endif\n#ifndef OPENSSL_NO_FUZZ_AFL\n# define OPENSSL_NO_FUZZ_AFL\n#endif\n#ifndef OPENSSL_NO_FUZZ_LIBFUZZER\n# define OPENSSL_NO_FUZZ_LIBFUZZER\n#endif\n#ifndef OPENSSL_NO_HEARTBEATS\n# define OPENSSL_NO_HEARTBEATS\n#endif\n#ifndef OPENSSL_NO_MSAN\n# define OPENSSL_NO_MSAN\n#endif\n#ifndef OPENSSL_NO_SCTP\n# define OPENSSL_NO_SCTP\n#endif\n#ifndef OPENSSL_NO_SSL_TRACE\n# define OPENSSL_NO_SSL_TRACE\n#endif\n#ifndef OPENSSL_NO_SSL3\n# define OPENSSL_NO_SSL3\n#endif\n#ifndef OPENSSL_NO_SSL3_METHOD\n# define OPENSSL_NO_SSL3_METHOD\n#endif\n#ifndef OPENSSL_NO_UBSAN\n# define OPENSSL_NO_UBSAN\n#endif\n#ifndef OPENSSL_NO_UNIT_TEST\n# define OPENSSL_NO_UNIT_TEST\n#endif\n#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS\n# define OPENSSL_NO_WEAK_SSL_CIPHERS\n#endif\n#ifndef OPENSSL_NO_DYNAMIC_ENGINE\n# define OPENSSL_NO_DYNAMIC_ENGINE\n#endif\n\n\n/*\n * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers\n * don't like that.  This will hopefully silence them.\n */\n#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;\n\n/*\n * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the\n * declarations of functions deprecated in or before <version>. Otherwise, they\n * still won't see them if the library has been built to disable deprecated\n * functions.\n */\n#ifndef DECLARE_DEPRECATED\n# define DECLARE_DEPRECATED(f)   f;\n# ifdef __GNUC__\n#  if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)\n#   undef DECLARE_DEPRECATED\n#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\n#  endif\n# elif defined(__SUNPRO_C)\n#  if (__SUNPRO_C >= 0x5130)\n#   undef DECLARE_DEPRECATED\n#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\n#  endif\n# endif\n#endif\n\n#ifndef OPENSSL_FILE\n# ifdef OPENSSL_NO_FILENAMES\n#  define OPENSSL_FILE \"\"\n#  define OPENSSL_LINE 0\n# else\n#  define OPENSSL_FILE __FILE__\n#  define OPENSSL_LINE __LINE__\n# endif\n#endif\n\n#ifndef OPENSSL_MIN_API\n# define OPENSSL_MIN_API 0\n#endif\n\n#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API\n# undef OPENSSL_API_COMPAT\n# define OPENSSL_API_COMPAT OPENSSL_MIN_API\n#endif\n\n/*\n * Do not deprecate things to be deprecated in version 1.2.0 before the\n * OpenSSL version number matches.\n */\n#if OPENSSL_VERSION_NUMBER < 0x10200000L\n# define DEPRECATEDIN_1_2_0(f)   f;\n#elif OPENSSL_API_COMPAT < 0x10200000L\n# define DEPRECATEDIN_1_2_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_2_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_1_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x10000000L\n# define DEPRECATEDIN_1_0_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_0_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x00908000L\n# define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_0_9_8(f)\n#endif\n\n/* Generate 80386 code? */\n#undef I386_ONLY\n\n#undef OPENSSL_UNISTD\n#define OPENSSL_UNISTD <unistd.h>\n\n#undef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/*\n * The following are cipher-specific, but are part of the public API.\n */\n#if !defined(OPENSSL_SYS_UEFI)\n# undef BN_LLONG\n/* Only one for the following should be defined */\n# define SIXTY_FOUR_BIT_LONG\n# undef SIXTY_FOUR_BIT\n# undef THIRTY_TWO_BIT\n#endif\n\n#define RC4_INT unsigned char\n\n#ifdef  __cplusplus\n}\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/opensslv.h",
    "content": "/*\n * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OPENSSLV_H\n# define HEADER_OPENSSLV_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\n * Numeric release version identifier:\n * MNNFFPPS: major minor fix patch status\n * The status nibble has one of the values 0 for development, 1 to e for betas\n * 1 to 14, and f for release.  The patch level is exactly that.\n * For example:\n * 0.9.3-dev      0x00903000\n * 0.9.3-beta1    0x00903001\n * 0.9.3-beta2-dev 0x00903002\n * 0.9.3-beta2    0x00903002 (same as ...beta2-dev)\n * 0.9.3          0x0090300f\n * 0.9.3a         0x0090301f\n * 0.9.4          0x0090400f\n * 1.2.3z         0x102031af\n *\n * For continuity reasons (because 0.9.5 is already out, and is coded\n * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level\n * part is slightly different, by setting the highest bit.  This means\n * that 0.9.5a looks like this: 0x0090581f.  At 0.9.6, we can start\n * with 0x0090600S...\n *\n * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.)\n * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for\n *  major minor fix final patch/beta)\n */\n# define OPENSSL_VERSION_NUMBER  0x1010108fL\n# define OPENSSL_VERSION_TEXT    \"OpenSSL 1.1.1h  22 Sep 2020\"\n\n/*-\n * The macros below are to be used for shared library (.so, .dll, ...)\n * versioning.  That kind of versioning works a bit differently between\n * operating systems.  The most usual scheme is to set a major and a minor\n * number, and have the runtime loader check that the major number is equal\n * to what it was at application link time, while the minor number has to\n * be greater or equal to what it was at application link time.  With this\n * scheme, the version number is usually part of the file name, like this:\n *\n *      libcrypto.so.0.9\n *\n * Some unixen also make a softlink with the major version number only:\n *\n *      libcrypto.so.0\n *\n * On Tru64 and IRIX 6.x it works a little bit differently.  There, the\n * shared library version is stored in the file, and is actually a series\n * of versions, separated by colons.  The rightmost version present in the\n * library when linking an application is stored in the application to be\n * matched at run time.  When the application is run, a check is done to\n * see if the library version stored in the application matches any of the\n * versions in the version string of the library itself.\n * This version string can be constructed in any way, depending on what\n * kind of matching is desired.  However, to implement the same scheme as\n * the one used in the other unixen, all compatible versions, from lowest\n * to highest, should be part of the string.  Consecutive builds would\n * give the following versions strings:\n *\n *      3.0\n *      3.0:3.1\n *      3.0:3.1:3.2\n *      4.0\n *      4.0:4.1\n *\n * Notice how version 4 is completely incompatible with version, and\n * therefore give the breach you can see.\n *\n * There may be other schemes as well that I haven't yet discovered.\n *\n * So, here's the way it works here: first of all, the library version\n * number doesn't need at all to match the overall OpenSSL version.\n * However, it's nice and more understandable if it actually does.\n * The current library version is stored in the macro SHLIB_VERSION_NUMBER,\n * which is just a piece of text in the format \"M.m.e\" (Major, minor, edit).\n * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways,\n * we need to keep a history of version numbers, which is done in the\n * macro SHLIB_VERSION_HISTORY.  The numbers are separated by colons and\n * should only keep the versions that are binary compatible with the current.\n */\n# define SHLIB_VERSION_HISTORY \"\"\n# define SHLIB_VERSION_NUMBER \"1.1\"\n\n\n#ifdef  __cplusplus\n}\n#endif\n#endif                          /* HEADER_OPENSSLV_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ossl_typ.h",
    "content": "/*\n * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OPENSSL_TYPES_H\n# define HEADER_OPENSSL_TYPES_H\n\n#include <limits.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# include <openssl/e_os2.h>\n\n# ifdef NO_ASN1_TYPEDEFS\n#  define ASN1_INTEGER            ASN1_STRING\n#  define ASN1_ENUMERATED         ASN1_STRING\n#  define ASN1_BIT_STRING         ASN1_STRING\n#  define ASN1_OCTET_STRING       ASN1_STRING\n#  define ASN1_PRINTABLESTRING    ASN1_STRING\n#  define ASN1_T61STRING          ASN1_STRING\n#  define ASN1_IA5STRING          ASN1_STRING\n#  define ASN1_UTCTIME            ASN1_STRING\n#  define ASN1_GENERALIZEDTIME    ASN1_STRING\n#  define ASN1_TIME               ASN1_STRING\n#  define ASN1_GENERALSTRING      ASN1_STRING\n#  define ASN1_UNIVERSALSTRING    ASN1_STRING\n#  define ASN1_BMPSTRING          ASN1_STRING\n#  define ASN1_VISIBLESTRING      ASN1_STRING\n#  define ASN1_UTF8STRING         ASN1_STRING\n#  define ASN1_BOOLEAN            int\n#  define ASN1_NULL               int\n# else\ntypedef struct asn1_string_st ASN1_INTEGER;\ntypedef struct asn1_string_st ASN1_ENUMERATED;\ntypedef struct asn1_string_st ASN1_BIT_STRING;\ntypedef struct asn1_string_st ASN1_OCTET_STRING;\ntypedef struct asn1_string_st ASN1_PRINTABLESTRING;\ntypedef struct asn1_string_st ASN1_T61STRING;\ntypedef struct asn1_string_st ASN1_IA5STRING;\ntypedef struct asn1_string_st ASN1_GENERALSTRING;\ntypedef struct asn1_string_st ASN1_UNIVERSALSTRING;\ntypedef struct asn1_string_st ASN1_BMPSTRING;\ntypedef struct asn1_string_st ASN1_UTCTIME;\ntypedef struct asn1_string_st ASN1_TIME;\ntypedef struct asn1_string_st ASN1_GENERALIZEDTIME;\ntypedef struct asn1_string_st ASN1_VISIBLESTRING;\ntypedef struct asn1_string_st ASN1_UTF8STRING;\ntypedef struct asn1_string_st ASN1_STRING;\ntypedef int ASN1_BOOLEAN;\ntypedef int ASN1_NULL;\n# endif\n\ntypedef struct asn1_object_st ASN1_OBJECT;\n\ntypedef struct ASN1_ITEM_st ASN1_ITEM;\ntypedef struct asn1_pctx_st ASN1_PCTX;\ntypedef struct asn1_sctx_st ASN1_SCTX;\n\n# ifdef _WIN32\n#  undef X509_NAME\n#  undef X509_EXTENSIONS\n#  undef PKCS7_ISSUER_AND_SERIAL\n#  undef PKCS7_SIGNER_INFO\n#  undef OCSP_REQUEST\n#  undef OCSP_RESPONSE\n# endif\n\n# ifdef BIGNUM\n#  undef BIGNUM\n# endif\nstruct dane_st;\ntypedef struct bio_st BIO;\ntypedef struct bignum_st BIGNUM;\ntypedef struct bignum_ctx BN_CTX;\ntypedef struct bn_blinding_st BN_BLINDING;\ntypedef struct bn_mont_ctx_st BN_MONT_CTX;\ntypedef struct bn_recp_ctx_st BN_RECP_CTX;\ntypedef struct bn_gencb_st BN_GENCB;\n\ntypedef struct buf_mem_st BUF_MEM;\n\ntypedef struct evp_cipher_st EVP_CIPHER;\ntypedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;\ntypedef struct evp_md_st EVP_MD;\ntypedef struct evp_md_ctx_st EVP_MD_CTX;\ntypedef struct evp_pkey_st EVP_PKEY;\n\ntypedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD;\n\ntypedef struct evp_pkey_method_st EVP_PKEY_METHOD;\ntypedef struct evp_pkey_ctx_st EVP_PKEY_CTX;\n\ntypedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX;\n\ntypedef struct hmac_ctx_st HMAC_CTX;\n\ntypedef struct dh_st DH;\ntypedef struct dh_method DH_METHOD;\n\ntypedef struct dsa_st DSA;\ntypedef struct dsa_method DSA_METHOD;\n\ntypedef struct rsa_st RSA;\ntypedef struct rsa_meth_st RSA_METHOD;\ntypedef struct rsa_pss_params_st RSA_PSS_PARAMS;\n\ntypedef struct ec_key_st EC_KEY;\ntypedef struct ec_key_method_st EC_KEY_METHOD;\n\ntypedef struct rand_meth_st RAND_METHOD;\ntypedef struct rand_drbg_st RAND_DRBG;\n\ntypedef struct ssl_dane_st SSL_DANE;\ntypedef struct x509_st X509;\ntypedef struct X509_algor_st X509_ALGOR;\ntypedef struct X509_crl_st X509_CRL;\ntypedef struct x509_crl_method_st X509_CRL_METHOD;\ntypedef struct x509_revoked_st X509_REVOKED;\ntypedef struct X509_name_st X509_NAME;\ntypedef struct X509_pubkey_st X509_PUBKEY;\ntypedef struct x509_store_st X509_STORE;\ntypedef struct x509_store_ctx_st X509_STORE_CTX;\n\ntypedef struct x509_object_st X509_OBJECT;\ntypedef struct x509_lookup_st X509_LOOKUP;\ntypedef struct x509_lookup_method_st X509_LOOKUP_METHOD;\ntypedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM;\n\ntypedef struct x509_sig_info_st X509_SIG_INFO;\n\ntypedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;\n\ntypedef struct v3_ext_ctx X509V3_CTX;\ntypedef struct conf_st CONF;\ntypedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS;\n\ntypedef struct ui_st UI;\ntypedef struct ui_method_st UI_METHOD;\n\ntypedef struct engine_st ENGINE;\ntypedef struct ssl_st SSL;\ntypedef struct ssl_ctx_st SSL_CTX;\n\ntypedef struct comp_ctx_st COMP_CTX;\ntypedef struct comp_method_st COMP_METHOD;\n\ntypedef struct X509_POLICY_NODE_st X509_POLICY_NODE;\ntypedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;\ntypedef struct X509_POLICY_TREE_st X509_POLICY_TREE;\ntypedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;\n\ntypedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;\ntypedef struct DIST_POINT_st DIST_POINT;\ntypedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;\ntypedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;\n\ntypedef struct crypto_ex_data_st CRYPTO_EX_DATA;\n\ntypedef struct ocsp_req_ctx_st OCSP_REQ_CTX;\ntypedef struct ocsp_response_st OCSP_RESPONSE;\ntypedef struct ocsp_responder_id_st OCSP_RESPID;\n\ntypedef struct sct_st SCT;\ntypedef struct sct_ctx_st SCT_CTX;\ntypedef struct ctlog_st CTLOG;\ntypedef struct ctlog_store_st CTLOG_STORE;\ntypedef struct ct_policy_eval_ctx_st CT_POLICY_EVAL_CTX;\n\ntypedef struct ossl_store_info_st OSSL_STORE_INFO;\ntypedef struct ossl_store_search_st OSSL_STORE_SEARCH;\n\n#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \\\n    defined(INTMAX_MAX) && defined(UINTMAX_MAX)\ntypedef intmax_t ossl_intmax_t;\ntypedef uintmax_t ossl_uintmax_t;\n#else\n/*\n * Not long long, because the C-library can only be expected to provide\n * strtoll(), strtoull() at the same time as intmax_t and strtoimax(),\n * strtoumax().  Since we use these for parsing arguments, we need the\n * conversion functions, not just the sizes.\n */\ntypedef long ossl_intmax_t;\ntypedef unsigned long ossl_uintmax_t;\n#endif\n\n#ifdef  __cplusplus\n}\n#endif\n#endif                          /* def HEADER_OPENSSL_TYPES_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pem.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEM_H\n# define HEADER_PEM_H\n\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/evp.h>\n# include <openssl/x509.h>\n# include <openssl/pemerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define PEM_BUFSIZE             1024\n\n# define PEM_STRING_X509_OLD     \"X509 CERTIFICATE\"\n# define PEM_STRING_X509         \"CERTIFICATE\"\n# define PEM_STRING_X509_TRUSTED \"TRUSTED CERTIFICATE\"\n# define PEM_STRING_X509_REQ_OLD \"NEW CERTIFICATE REQUEST\"\n# define PEM_STRING_X509_REQ     \"CERTIFICATE REQUEST\"\n# define PEM_STRING_X509_CRL     \"X509 CRL\"\n# define PEM_STRING_EVP_PKEY     \"ANY PRIVATE KEY\"\n# define PEM_STRING_PUBLIC       \"PUBLIC KEY\"\n# define PEM_STRING_RSA          \"RSA PRIVATE KEY\"\n# define PEM_STRING_RSA_PUBLIC   \"RSA PUBLIC KEY\"\n# define PEM_STRING_DSA          \"DSA PRIVATE KEY\"\n# define PEM_STRING_DSA_PUBLIC   \"DSA PUBLIC KEY\"\n# define PEM_STRING_PKCS7        \"PKCS7\"\n# define PEM_STRING_PKCS7_SIGNED \"PKCS #7 SIGNED DATA\"\n# define PEM_STRING_PKCS8        \"ENCRYPTED PRIVATE KEY\"\n# define PEM_STRING_PKCS8INF     \"PRIVATE KEY\"\n# define PEM_STRING_DHPARAMS     \"DH PARAMETERS\"\n# define PEM_STRING_DHXPARAMS    \"X9.42 DH PARAMETERS\"\n# define PEM_STRING_SSL_SESSION  \"SSL SESSION PARAMETERS\"\n# define PEM_STRING_DSAPARAMS    \"DSA PARAMETERS\"\n# define PEM_STRING_ECDSA_PUBLIC \"ECDSA PUBLIC KEY\"\n# define PEM_STRING_ECPARAMETERS \"EC PARAMETERS\"\n# define PEM_STRING_ECPRIVATEKEY \"EC PRIVATE KEY\"\n# define PEM_STRING_PARAMETERS   \"PARAMETERS\"\n# define PEM_STRING_CMS          \"CMS\"\n\n# define PEM_TYPE_ENCRYPTED      10\n# define PEM_TYPE_MIC_ONLY       20\n# define PEM_TYPE_MIC_CLEAR      30\n# define PEM_TYPE_CLEAR          40\n\n/*\n * These macros make the PEM_read/PEM_write functions easier to maintain and\n * write. Now they are all implemented with either: IMPLEMENT_PEM_rw(...) or\n * IMPLEMENT_PEM_rw_cb(...)\n */\n\n# ifdef OPENSSL_NO_STDIO\n\n#  define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/\n# else\n\n#  define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \\\ntype *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\\\n{ \\\nreturn PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \\\n}\n\n#  define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x) \\\n{ \\\nreturn PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL); \\\n}\n\n#  define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, const type *x) \\\n{ \\\nreturn PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(void *)x,NULL,NULL,0,NULL,NULL); \\\n}\n\n#  define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, \\\n                  void *u) \\\n        { \\\n        return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \\\n        }\n\n#  define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, \\\n                  void *u) \\\n        { \\\n        return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \\\n        }\n\n# endif\n\n# define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \\\ntype *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\\\n{ \\\nreturn PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \\\n}\n\n# define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x) \\\n{ \\\nreturn PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL); \\\n}\n\n# define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, const type *x) \\\n{ \\\nreturn PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,NULL,NULL,0,NULL,NULL); \\\n}\n\n# define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \\\n        { \\\n        return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \\\n        }\n\n# define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \\\n        { \\\n        return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,enc,kstr,klen,cb,u); \\\n        }\n\n# define IMPLEMENT_PEM_write(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_fp_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_cb(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_cb_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw_cb(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb(name, type, str, asn1)\n\n/* These are the same except they are for the declarations */\n\n# if defined(OPENSSL_NO_STDIO)\n\n#  define DECLARE_PEM_read_fp(name, type) /**/\n#  define DECLARE_PEM_write_fp(name, type) /**/\n#  define DECLARE_PEM_write_fp_const(name, type) /**/\n#  define DECLARE_PEM_write_cb_fp(name, type) /**/\n# else\n\n#  define DECLARE_PEM_read_fp(name, type) \\\n        type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u);\n\n#  define DECLARE_PEM_write_fp(name, type) \\\n        int PEM_write_##name(FILE *fp, type *x);\n\n#  define DECLARE_PEM_write_fp_const(name, type) \\\n        int PEM_write_##name(FILE *fp, const type *x);\n\n#  define DECLARE_PEM_write_cb_fp(name, type) \\\n        int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u);\n\n# endif\n\n#  define DECLARE_PEM_read_bio(name, type) \\\n        type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u);\n\n#  define DECLARE_PEM_write_bio(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, type *x);\n\n#  define DECLARE_PEM_write_bio_const(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, const type *x);\n\n#  define DECLARE_PEM_write_cb_bio(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u);\n\n# define DECLARE_PEM_write(name, type) \\\n        DECLARE_PEM_write_bio(name, type) \\\n        DECLARE_PEM_write_fp(name, type)\n# define DECLARE_PEM_write_const(name, type) \\\n        DECLARE_PEM_write_bio_const(name, type) \\\n        DECLARE_PEM_write_fp_const(name, type)\n# define DECLARE_PEM_write_cb(name, type) \\\n        DECLARE_PEM_write_cb_bio(name, type) \\\n        DECLARE_PEM_write_cb_fp(name, type)\n# define DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_read_bio(name, type) \\\n        DECLARE_PEM_read_fp(name, type)\n# define DECLARE_PEM_rw(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write(name, type)\n# define DECLARE_PEM_rw_const(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write_const(name, type)\n# define DECLARE_PEM_rw_cb(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write_cb(name, type)\ntypedef int pem_password_cb (char *buf, int size, int rwflag, void *userdata);\n\nint PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher);\nint PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *len,\n                  pem_password_cb *callback, void *u);\n\nint PEM_read_bio(BIO *bp, char **name, char **header,\n                 unsigned char **data, long *len);\n#   define PEM_FLAG_SECURE             0x1\n#   define PEM_FLAG_EAY_COMPATIBLE     0x2\n#   define PEM_FLAG_ONLY_B64           0x4\nint PEM_read_bio_ex(BIO *bp, char **name, char **header,\n                    unsigned char **data, long *len, unsigned int flags);\nint PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm,\n                              const char *name, BIO *bp, pem_password_cb *cb,\n                              void *u);\nint PEM_write_bio(BIO *bp, const char *name, const char *hdr,\n                  const unsigned char *data, long len);\nint PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,\n                       const char *name, BIO *bp, pem_password_cb *cb,\n                       void *u);\nvoid *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,\n                        pem_password_cb *cb, void *u);\nint PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x,\n                       const EVP_CIPHER *enc, unsigned char *kstr, int klen,\n                       pem_password_cb *cb, void *u);\n\nSTACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk,\n                                            pem_password_cb *cb, void *u);\nint PEM_X509_INFO_write_bio(BIO *bp, X509_INFO *xi, EVP_CIPHER *enc,\n                            unsigned char *kstr, int klen,\n                            pem_password_cb *cd, void *u);\n\n#ifndef OPENSSL_NO_STDIO\nint PEM_read(FILE *fp, char **name, char **header,\n             unsigned char **data, long *len);\nint PEM_write(FILE *fp, const char *name, const char *hdr,\n              const unsigned char *data, long len);\nvoid *PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x,\n                    pem_password_cb *cb, void *u);\nint PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp,\n                   void *x, const EVP_CIPHER *enc, unsigned char *kstr,\n                   int klen, pem_password_cb *callback, void *u);\nSTACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk,\n                                        pem_password_cb *cb, void *u);\n#endif\n\nint PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type);\nint PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);\nint PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,\n                  unsigned int *siglen, EVP_PKEY *pkey);\n\n/* The default pem_password_cb that's used internally */\nint PEM_def_callback(char *buf, int num, int rwflag, void *userdata);\nvoid PEM_proc_type(char *buf, int type);\nvoid PEM_dek_info(char *buf, const char *type, int len, char *str);\n\n# include <openssl/symhacks.h>\n\nDECLARE_PEM_rw(X509, X509)\nDECLARE_PEM_rw(X509_AUX, X509)\nDECLARE_PEM_rw(X509_REQ, X509_REQ)\nDECLARE_PEM_write(X509_REQ_NEW, X509_REQ)\nDECLARE_PEM_rw(X509_CRL, X509_CRL)\nDECLARE_PEM_rw(PKCS7, PKCS7)\nDECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE)\nDECLARE_PEM_rw(PKCS8, X509_SIG)\nDECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO)\n# ifndef OPENSSL_NO_RSA\nDECLARE_PEM_rw_cb(RSAPrivateKey, RSA)\nDECLARE_PEM_rw_const(RSAPublicKey, RSA)\nDECLARE_PEM_rw(RSA_PUBKEY, RSA)\n# endif\n# ifndef OPENSSL_NO_DSA\nDECLARE_PEM_rw_cb(DSAPrivateKey, DSA)\nDECLARE_PEM_rw(DSA_PUBKEY, DSA)\nDECLARE_PEM_rw_const(DSAparams, DSA)\n# endif\n# ifndef OPENSSL_NO_EC\nDECLARE_PEM_rw_const(ECPKParameters, EC_GROUP)\nDECLARE_PEM_rw_cb(ECPrivateKey, EC_KEY)\nDECLARE_PEM_rw(EC_PUBKEY, EC_KEY)\n# endif\n# ifndef OPENSSL_NO_DH\nDECLARE_PEM_rw_const(DHparams, DH)\nDECLARE_PEM_write_const(DHxparams, DH)\n# endif\nDECLARE_PEM_rw_cb(PrivateKey, EVP_PKEY)\nDECLARE_PEM_rw(PUBKEY, EVP_PKEY)\n\nint PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,\n                                         const EVP_CIPHER *enc,\n                                         unsigned char *kstr, int klen,\n                                         pem_password_cb *cb, void *u);\n\nint PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,\n                                      char *kstr, int klen,\n                                      pem_password_cb *cb, void *u);\nint PEM_write_bio_PKCS8PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *,\n                                  char *, int, pem_password_cb *, void *);\nint i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                            char *kstr, int klen,\n                            pem_password_cb *cb, void *u);\nint i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,\n                                char *kstr, int klen,\n                                pem_password_cb *cb, void *u);\nEVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,\n                                  void *u);\n\n# ifndef OPENSSL_NO_STDIO\nint i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                           char *kstr, int klen,\n                           pem_password_cb *cb, void *u);\nint i2d_PKCS8PrivateKey_nid_fp(FILE *fp, EVP_PKEY *x, int nid,\n                               char *kstr, int klen,\n                               pem_password_cb *cb, void *u);\nint PEM_write_PKCS8PrivateKey_nid(FILE *fp, EVP_PKEY *x, int nid,\n                                  char *kstr, int klen,\n                                  pem_password_cb *cb, void *u);\n\nEVP_PKEY *d2i_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY **x, pem_password_cb *cb,\n                                 void *u);\n\nint PEM_write_PKCS8PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                              char *kstr, int klen, pem_password_cb *cd,\n                              void *u);\n# endif\nEVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x);\nint PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x);\n\n# ifndef OPENSSL_NO_DSA\nEVP_PKEY *b2i_PrivateKey(const unsigned char **in, long length);\nEVP_PKEY *b2i_PublicKey(const unsigned char **in, long length);\nEVP_PKEY *b2i_PrivateKey_bio(BIO *in);\nEVP_PKEY *b2i_PublicKey_bio(BIO *in);\nint i2b_PrivateKey_bio(BIO *out, EVP_PKEY *pk);\nint i2b_PublicKey_bio(BIO *out, EVP_PKEY *pk);\n#  ifndef OPENSSL_NO_RC4\nEVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u);\nint i2b_PVK_bio(BIO *out, EVP_PKEY *pk, int enclevel,\n                pem_password_cb *cb, void *u);\n#  endif\n# endif\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pem2.h",
    "content": "/*\n * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEM2_H\n# define HEADER_PEM2_H\n# include <openssl/pemerr.h>\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pemerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEMERR_H\n# define HEADER_PEMERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PEM_strings(void);\n\n/*\n * PEM function codes.\n */\n# define PEM_F_B2I_DSS                                    127\n# define PEM_F_B2I_PVK_BIO                                128\n# define PEM_F_B2I_RSA                                    129\n# define PEM_F_CHECK_BITLEN_DSA                           130\n# define PEM_F_CHECK_BITLEN_RSA                           131\n# define PEM_F_D2I_PKCS8PRIVATEKEY_BIO                    120\n# define PEM_F_D2I_PKCS8PRIVATEKEY_FP                     121\n# define PEM_F_DO_B2I                                     132\n# define PEM_F_DO_B2I_BIO                                 133\n# define PEM_F_DO_BLOB_HEADER                             134\n# define PEM_F_DO_I2B                                     146\n# define PEM_F_DO_PK8PKEY                                 126\n# define PEM_F_DO_PK8PKEY_FP                              125\n# define PEM_F_DO_PVK_BODY                                135\n# define PEM_F_DO_PVK_HEADER                              136\n# define PEM_F_GET_HEADER_AND_DATA                        143\n# define PEM_F_GET_NAME                                   144\n# define PEM_F_I2B_PVK                                    137\n# define PEM_F_I2B_PVK_BIO                                138\n# define PEM_F_LOAD_IV                                    101\n# define PEM_F_PEM_ASN1_READ                              102\n# define PEM_F_PEM_ASN1_READ_BIO                          103\n# define PEM_F_PEM_ASN1_WRITE                             104\n# define PEM_F_PEM_ASN1_WRITE_BIO                         105\n# define PEM_F_PEM_DEF_CALLBACK                           100\n# define PEM_F_PEM_DO_HEADER                              106\n# define PEM_F_PEM_GET_EVP_CIPHER_INFO                    107\n# define PEM_F_PEM_READ                                   108\n# define PEM_F_PEM_READ_BIO                               109\n# define PEM_F_PEM_READ_BIO_DHPARAMS                      141\n# define PEM_F_PEM_READ_BIO_EX                            145\n# define PEM_F_PEM_READ_BIO_PARAMETERS                    140\n# define PEM_F_PEM_READ_BIO_PRIVATEKEY                    123\n# define PEM_F_PEM_READ_DHPARAMS                          142\n# define PEM_F_PEM_READ_PRIVATEKEY                        124\n# define PEM_F_PEM_SIGNFINAL                              112\n# define PEM_F_PEM_WRITE                                  113\n# define PEM_F_PEM_WRITE_BIO                              114\n# define PEM_F_PEM_WRITE_BIO_PRIVATEKEY_TRADITIONAL       147\n# define PEM_F_PEM_WRITE_PRIVATEKEY                       139\n# define PEM_F_PEM_X509_INFO_READ                         115\n# define PEM_F_PEM_X509_INFO_READ_BIO                     116\n# define PEM_F_PEM_X509_INFO_WRITE_BIO                    117\n\n/*\n * PEM reason codes.\n */\n# define PEM_R_BAD_BASE64_DECODE                          100\n# define PEM_R_BAD_DECRYPT                                101\n# define PEM_R_BAD_END_LINE                               102\n# define PEM_R_BAD_IV_CHARS                               103\n# define PEM_R_BAD_MAGIC_NUMBER                           116\n# define PEM_R_BAD_PASSWORD_READ                          104\n# define PEM_R_BAD_VERSION_NUMBER                         117\n# define PEM_R_BIO_WRITE_FAILURE                          118\n# define PEM_R_CIPHER_IS_NULL                             127\n# define PEM_R_ERROR_CONVERTING_PRIVATE_KEY               115\n# define PEM_R_EXPECTING_PRIVATE_KEY_BLOB                 119\n# define PEM_R_EXPECTING_PUBLIC_KEY_BLOB                  120\n# define PEM_R_HEADER_TOO_LONG                            128\n# define PEM_R_INCONSISTENT_HEADER                        121\n# define PEM_R_KEYBLOB_HEADER_PARSE_ERROR                 122\n# define PEM_R_KEYBLOB_TOO_SHORT                          123\n# define PEM_R_MISSING_DEK_IV                             129\n# define PEM_R_NOT_DEK_INFO                               105\n# define PEM_R_NOT_ENCRYPTED                              106\n# define PEM_R_NOT_PROC_TYPE                              107\n# define PEM_R_NO_START_LINE                              108\n# define PEM_R_PROBLEMS_GETTING_PASSWORD                  109\n# define PEM_R_PVK_DATA_TOO_SHORT                         124\n# define PEM_R_PVK_TOO_SHORT                              125\n# define PEM_R_READ_KEY                                   111\n# define PEM_R_SHORT_HEADER                               112\n# define PEM_R_UNEXPECTED_DEK_IV                          130\n# define PEM_R_UNSUPPORTED_CIPHER                         113\n# define PEM_R_UNSUPPORTED_ENCRYPTION                     114\n# define PEM_R_UNSUPPORTED_KEY_COMPONENTS                 126\n# define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE                110\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pkcs12.h",
    "content": "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS12_H\n# define HEADER_PKCS12_H\n\n# include <openssl/bio.h>\n# include <openssl/x509.h>\n# include <openssl/pkcs12err.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define PKCS12_KEY_ID   1\n# define PKCS12_IV_ID    2\n# define PKCS12_MAC_ID   3\n\n/* Default iteration count */\n# ifndef PKCS12_DEFAULT_ITER\n#  define PKCS12_DEFAULT_ITER     PKCS5_DEFAULT_ITER\n# endif\n\n# define PKCS12_MAC_KEY_LENGTH 20\n\n# define PKCS12_SALT_LEN 8\n\n/* It's not clear if these are actually needed... */\n# define PKCS12_key_gen PKCS12_key_gen_utf8\n# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8\n\n/* MS key usage constants */\n\n# define KEY_EX  0x10\n# define KEY_SIG 0x80\n\ntypedef struct PKCS12_MAC_DATA_st PKCS12_MAC_DATA;\n\ntypedef struct PKCS12_st PKCS12;\n\ntypedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;\n\nDEFINE_STACK_OF(PKCS12_SAFEBAG)\n\ntypedef struct pkcs12_bag_st PKCS12_BAGS;\n\n# define PKCS12_ERROR    0\n# define PKCS12_OK       1\n\n/* Compatibility macros */\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n\n# define M_PKCS12_bag_type PKCS12_bag_type\n# define M_PKCS12_cert_bag_type PKCS12_cert_bag_type\n# define M_PKCS12_crl_bag_type PKCS12_cert_bag_type\n\n# define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert\n# define PKCS12_certbag2scrl PKCS12_SAFEBAG_get1_crl\n# define PKCS12_bag_type PKCS12_SAFEBAG_get_nid\n# define PKCS12_cert_bag_type PKCS12_SAFEBAG_get_bag_nid\n# define PKCS12_x5092certbag PKCS12_SAFEBAG_create_cert\n# define PKCS12_x509crl2certbag PKCS12_SAFEBAG_create_crl\n# define PKCS12_MAKE_KEYBAG PKCS12_SAFEBAG_create0_p8inf\n# define PKCS12_MAKE_SHKEYBAG PKCS12_SAFEBAG_create_pkcs8_encrypt\n\n#endif\n\nDEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid))\n\nASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);\nint PKCS12_mac_present(const PKCS12 *p12);\nvoid PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac,\n                     const X509_ALGOR **pmacalg,\n                     const ASN1_OCTET_STRING **psalt,\n                     const ASN1_INTEGER **piter,\n                     const PKCS12 *p12);\n\nconst ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,\n                                          int attr_nid);\nconst ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(const PKCS12_SAFEBAG *bag);\nint PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);\nint PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);\n\nX509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);\nX509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);\nconst STACK_OF(PKCS12_SAFEBAG) *\nPKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);\nconst PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);\nconst X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag);\n\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_cert(X509 *x509);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_crl(X509_CRL *crl);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_pkcs8(X509_SIG *p8);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,\n                                                    const char *pass,\n                                                    int passlen,\n                                                    unsigned char *salt,\n                                                    int saltlen, int iter,\n                                                    PKCS8_PRIV_KEY_INFO *p8inf);\n\nPKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it,\n                                         int nid1, int nid2);\nPKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,\n                                   int passlen);\nPKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,\n                                         const char *pass, int passlen);\nX509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,\n                        const char *pass, int passlen, unsigned char *salt,\n                        int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);\nX509_SIG *PKCS8_set0_pbe(const char *pass, int passlen,\n                        PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);\nPKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk);\nSTACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7);\nPKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,\n                             unsigned char *salt, int saltlen, int iter,\n                             STACK_OF(PKCS12_SAFEBAG) *bags);\nSTACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass,\n                                                  int passlen);\n\nint PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);\nSTACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);\n\nint PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, unsigned char *name,\n                          int namelen);\nint PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,\n                                int namelen);\nint PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,\n                                 int namelen);\nint PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,\n                           int namelen);\nint PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,\n                                const unsigned char *name, int namelen);\nint PKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8, int usage);\nASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs,\n                               int attr_nid);\nchar *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);\nconst STACK_OF(X509_ATTRIBUTE) *\nPKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);\nunsigned char *PKCS12_pbe_crypt(const X509_ALGOR *algor,\n                                const char *pass, int passlen,\n                                const unsigned char *in, int inlen,\n                                unsigned char **data, int *datalen,\n                                int en_de);\nvoid *PKCS12_item_decrypt_d2i(const X509_ALGOR *algor, const ASN1_ITEM *it,\n                              const char *pass, int passlen,\n                              const ASN1_OCTET_STRING *oct, int zbuf);\nASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,\n                                           const ASN1_ITEM *it,\n                                           const char *pass, int passlen,\n                                           void *obj, int zbuf);\nPKCS12 *PKCS12_init(int mode);\nint PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,\n                       int saltlen, int id, int iter, int n,\n                       unsigned char *out, const EVP_MD *md_type);\nint PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt,\n                       int saltlen, int id, int iter, int n,\n                       unsigned char *out, const EVP_MD *md_type);\nint PKCS12_key_gen_utf8(const char *pass, int passlen, unsigned char *salt,\n                        int saltlen, int id, int iter, int n,\n                        unsigned char *out, const EVP_MD *md_type);\nint PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                        ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                        const EVP_MD *md_type, int en_de);\nint PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,\n                   unsigned char *mac, unsigned int *maclen);\nint PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);\nint PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,\n                   unsigned char *salt, int saltlen, int iter,\n                   const EVP_MD *md_type);\nint PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,\n                     int saltlen, const EVP_MD *md_type);\nunsigned char *OPENSSL_asc2uni(const char *asc, int asclen,\n                               unsigned char **uni, int *unilen);\nchar *OPENSSL_uni2asc(const unsigned char *uni, int unilen);\nunsigned char *OPENSSL_utf82uni(const char *asc, int asclen,\n                                unsigned char **uni, int *unilen);\nchar *OPENSSL_uni2utf8(const unsigned char *uni, int unilen);\n\nDECLARE_ASN1_FUNCTIONS(PKCS12)\nDECLARE_ASN1_FUNCTIONS(PKCS12_MAC_DATA)\nDECLARE_ASN1_FUNCTIONS(PKCS12_SAFEBAG)\nDECLARE_ASN1_FUNCTIONS(PKCS12_BAGS)\n\nDECLARE_ASN1_ITEM(PKCS12_SAFEBAGS)\nDECLARE_ASN1_ITEM(PKCS12_AUTHSAFES)\n\nvoid PKCS12_PBE_add(void);\nint PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,\n                 STACK_OF(X509) **ca);\nPKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,\n                      X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,\n                      int iter, int mac_iter, int keytype);\n\nPKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert);\nPKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags,\n                               EVP_PKEY *key, int key_usage, int iter,\n                               int key_nid, const char *pass);\nint PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,\n                    int safe_nid, int iter, const char *pass);\nPKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);\n\nint i2d_PKCS12_bio(BIO *bp, PKCS12 *p12);\n# ifndef OPENSSL_NO_STDIO\nint i2d_PKCS12_fp(FILE *fp, PKCS12 *p12);\n# endif\nPKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);\n# ifndef OPENSSL_NO_STDIO\nPKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);\n# endif\nint PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pkcs12err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS12ERR_H\n# define HEADER_PKCS12ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PKCS12_strings(void);\n\n/*\n * PKCS12 function codes.\n */\n# define PKCS12_F_OPENSSL_ASC2UNI                         121\n# define PKCS12_F_OPENSSL_UNI2ASC                         124\n# define PKCS12_F_OPENSSL_UNI2UTF8                        127\n# define PKCS12_F_OPENSSL_UTF82UNI                        129\n# define PKCS12_F_PKCS12_CREATE                           105\n# define PKCS12_F_PKCS12_GEN_MAC                          107\n# define PKCS12_F_PKCS12_INIT                             109\n# define PKCS12_F_PKCS12_ITEM_DECRYPT_D2I                 106\n# define PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT                 108\n# define PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG                117\n# define PKCS12_F_PKCS12_KEY_GEN_ASC                      110\n# define PKCS12_F_PKCS12_KEY_GEN_UNI                      111\n# define PKCS12_F_PKCS12_KEY_GEN_UTF8                     116\n# define PKCS12_F_PKCS12_NEWPASS                          128\n# define PKCS12_F_PKCS12_PACK_P7DATA                      114\n# define PKCS12_F_PKCS12_PACK_P7ENCDATA                   115\n# define PKCS12_F_PKCS12_PARSE                            118\n# define PKCS12_F_PKCS12_PBE_CRYPT                        119\n# define PKCS12_F_PKCS12_PBE_KEYIVGEN                     120\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE0_P8INF            112\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8            113\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE_PKCS8_ENCRYPT     133\n# define PKCS12_F_PKCS12_SETUP_MAC                        122\n# define PKCS12_F_PKCS12_SET_MAC                          123\n# define PKCS12_F_PKCS12_UNPACK_AUTHSAFES                 130\n# define PKCS12_F_PKCS12_UNPACK_P7DATA                    131\n# define PKCS12_F_PKCS12_VERIFY_MAC                       126\n# define PKCS12_F_PKCS8_ENCRYPT                           125\n# define PKCS12_F_PKCS8_SET0_PBE                          132\n\n/*\n * PKCS12 reason codes.\n */\n# define PKCS12_R_CANT_PACK_STRUCTURE                     100\n# define PKCS12_R_CONTENT_TYPE_NOT_DATA                   121\n# define PKCS12_R_DECODE_ERROR                            101\n# define PKCS12_R_ENCODE_ERROR                            102\n# define PKCS12_R_ENCRYPT_ERROR                           103\n# define PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE       120\n# define PKCS12_R_INVALID_NULL_ARGUMENT                   104\n# define PKCS12_R_INVALID_NULL_PKCS12_POINTER             105\n# define PKCS12_R_IV_GEN_ERROR                            106\n# define PKCS12_R_KEY_GEN_ERROR                           107\n# define PKCS12_R_MAC_ABSENT                              108\n# define PKCS12_R_MAC_GENERATION_ERROR                    109\n# define PKCS12_R_MAC_SETUP_ERROR                         110\n# define PKCS12_R_MAC_STRING_SET_ERROR                    111\n# define PKCS12_R_MAC_VERIFY_FAILURE                      113\n# define PKCS12_R_PARSE_ERROR                             114\n# define PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR           115\n# define PKCS12_R_PKCS12_CIPHERFINAL_ERROR                116\n# define PKCS12_R_PKCS12_PBE_CRYPT_ERROR                  117\n# define PKCS12_R_UNKNOWN_DIGEST_ALGORITHM                118\n# define PKCS12_R_UNSUPPORTED_PKCS12_MODE                 119\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pkcs7.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS7_H\n# define HEADER_PKCS7_H\n\n# include <openssl/asn1.h>\n# include <openssl/bio.h>\n# include <openssl/e_os2.h>\n\n# include <openssl/symhacks.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/pkcs7err.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\nEncryption_ID           DES-CBC\nDigest_ID               MD5\nDigest_Encryption_ID    rsaEncryption\nKey_Encryption_ID       rsaEncryption\n*/\n\ntypedef struct pkcs7_issuer_and_serial_st {\n    X509_NAME *issuer;\n    ASN1_INTEGER *serial;\n} PKCS7_ISSUER_AND_SERIAL;\n\ntypedef struct pkcs7_signer_info_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    PKCS7_ISSUER_AND_SERIAL *issuer_and_serial;\n    X509_ALGOR *digest_alg;\n    STACK_OF(X509_ATTRIBUTE) *auth_attr; /* [ 0 ] */\n    X509_ALGOR *digest_enc_alg;\n    ASN1_OCTET_STRING *enc_digest;\n    STACK_OF(X509_ATTRIBUTE) *unauth_attr; /* [ 1 ] */\n    /* The private key to sign with */\n    EVP_PKEY *pkey;\n} PKCS7_SIGNER_INFO;\n\nDEFINE_STACK_OF(PKCS7_SIGNER_INFO)\n\ntypedef struct pkcs7_recip_info_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    PKCS7_ISSUER_AND_SERIAL *issuer_and_serial;\n    X509_ALGOR *key_enc_algor;\n    ASN1_OCTET_STRING *enc_key;\n    X509 *cert;                 /* get the pub-key from this */\n} PKCS7_RECIP_INFO;\n\nDEFINE_STACK_OF(PKCS7_RECIP_INFO)\n\ntypedef struct pkcs7_signed_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    STACK_OF(X509_ALGOR) *md_algs; /* md used */\n    STACK_OF(X509) *cert;       /* [ 0 ] */\n    STACK_OF(X509_CRL) *crl;    /* [ 1 ] */\n    STACK_OF(PKCS7_SIGNER_INFO) *signer_info;\n    struct pkcs7_st *contents;\n} PKCS7_SIGNED;\n/*\n * The above structure is very very similar to PKCS7_SIGN_ENVELOPE. How about\n * merging the two\n */\n\ntypedef struct pkcs7_enc_content_st {\n    ASN1_OBJECT *content_type;\n    X509_ALGOR *algorithm;\n    ASN1_OCTET_STRING *enc_data; /* [ 0 ] */\n    const EVP_CIPHER *cipher;\n} PKCS7_ENC_CONTENT;\n\ntypedef struct pkcs7_enveloped_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;\n    PKCS7_ENC_CONTENT *enc_data;\n} PKCS7_ENVELOPE;\n\ntypedef struct pkcs7_signedandenveloped_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    STACK_OF(X509_ALGOR) *md_algs; /* md used */\n    STACK_OF(X509) *cert;       /* [ 0 ] */\n    STACK_OF(X509_CRL) *crl;    /* [ 1 ] */\n    STACK_OF(PKCS7_SIGNER_INFO) *signer_info;\n    PKCS7_ENC_CONTENT *enc_data;\n    STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;\n} PKCS7_SIGN_ENVELOPE;\n\ntypedef struct pkcs7_digest_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    X509_ALGOR *md;             /* md used */\n    struct pkcs7_st *contents;\n    ASN1_OCTET_STRING *digest;\n} PKCS7_DIGEST;\n\ntypedef struct pkcs7_encrypted_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    PKCS7_ENC_CONTENT *enc_data;\n} PKCS7_ENCRYPT;\n\ntypedef struct pkcs7_st {\n    /*\n     * The following is non NULL if it contains ASN1 encoding of this\n     * structure\n     */\n    unsigned char *asn1;\n    long length;\n# define PKCS7_S_HEADER  0\n# define PKCS7_S_BODY    1\n# define PKCS7_S_TAIL    2\n    int state;                  /* used during processing */\n    int detached;\n    ASN1_OBJECT *type;\n    /* content as defined by the type */\n    /*\n     * all encryption/message digests are applied to the 'contents', leaving\n     * out the 'type' field.\n     */\n    union {\n        char *ptr;\n        /* NID_pkcs7_data */\n        ASN1_OCTET_STRING *data;\n        /* NID_pkcs7_signed */\n        PKCS7_SIGNED *sign;\n        /* NID_pkcs7_enveloped */\n        PKCS7_ENVELOPE *enveloped;\n        /* NID_pkcs7_signedAndEnveloped */\n        PKCS7_SIGN_ENVELOPE *signed_and_enveloped;\n        /* NID_pkcs7_digest */\n        PKCS7_DIGEST *digest;\n        /* NID_pkcs7_encrypted */\n        PKCS7_ENCRYPT *encrypted;\n        /* Anything else */\n        ASN1_TYPE *other;\n    } d;\n} PKCS7;\n\nDEFINE_STACK_OF(PKCS7)\n\n# define PKCS7_OP_SET_DETACHED_SIGNATURE 1\n# define PKCS7_OP_GET_DETACHED_SIGNATURE 2\n\n# define PKCS7_get_signed_attributes(si) ((si)->auth_attr)\n# define PKCS7_get_attributes(si)        ((si)->unauth_attr)\n\n# define PKCS7_type_is_signed(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_signed)\n# define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypted)\n# define PKCS7_type_is_enveloped(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_enveloped)\n# define PKCS7_type_is_signedAndEnveloped(a) \\\n                (OBJ_obj2nid((a)->type) == NID_pkcs7_signedAndEnveloped)\n# define PKCS7_type_is_data(a)   (OBJ_obj2nid((a)->type) == NID_pkcs7_data)\n# define PKCS7_type_is_digest(a)   (OBJ_obj2nid((a)->type) == NID_pkcs7_digest)\n\n# define PKCS7_set_detached(p,v) \\\n                PKCS7_ctrl(p,PKCS7_OP_SET_DETACHED_SIGNATURE,v,NULL)\n# define PKCS7_get_detached(p) \\\n                PKCS7_ctrl(p,PKCS7_OP_GET_DETACHED_SIGNATURE,0,NULL)\n\n# define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7))\n\n/* S/MIME related flags */\n\n# define PKCS7_TEXT              0x1\n# define PKCS7_NOCERTS           0x2\n# define PKCS7_NOSIGS            0x4\n# define PKCS7_NOCHAIN           0x8\n# define PKCS7_NOINTERN          0x10\n# define PKCS7_NOVERIFY          0x20\n# define PKCS7_DETACHED          0x40\n# define PKCS7_BINARY            0x80\n# define PKCS7_NOATTR            0x100\n# define PKCS7_NOSMIMECAP        0x200\n# define PKCS7_NOOLDMIMETYPE     0x400\n# define PKCS7_CRLFEOL           0x800\n# define PKCS7_STREAM            0x1000\n# define PKCS7_NOCRL             0x2000\n# define PKCS7_PARTIAL           0x4000\n# define PKCS7_REUSE_DIGEST      0x8000\n# define PKCS7_NO_DUAL_CONTENT   0x10000\n\n/* Flags: for compatibility with older code */\n\n# define SMIME_TEXT      PKCS7_TEXT\n# define SMIME_NOCERTS   PKCS7_NOCERTS\n# define SMIME_NOSIGS    PKCS7_NOSIGS\n# define SMIME_NOCHAIN   PKCS7_NOCHAIN\n# define SMIME_NOINTERN  PKCS7_NOINTERN\n# define SMIME_NOVERIFY  PKCS7_NOVERIFY\n# define SMIME_DETACHED  PKCS7_DETACHED\n# define SMIME_BINARY    PKCS7_BINARY\n# define SMIME_NOATTR    PKCS7_NOATTR\n\n/* CRLF ASCII canonicalisation */\n# define SMIME_ASCIICRLF         0x80000\n\nDECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL)\n\nint PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,\n                                   const EVP_MD *type, unsigned char *md,\n                                   unsigned int *len);\n# ifndef OPENSSL_NO_STDIO\nPKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);\nint i2d_PKCS7_fp(FILE *fp, PKCS7 *p7);\n# endif\nPKCS7 *PKCS7_dup(PKCS7 *p7);\nPKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);\nint i2d_PKCS7_bio(BIO *bp, PKCS7 *p7);\nint i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);\nint PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);\n\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)\nDECLARE_ASN1_FUNCTIONS(PKCS7_RECIP_INFO)\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGNED)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENC_CONTENT)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENVELOPE)\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGN_ENVELOPE)\nDECLARE_ASN1_FUNCTIONS(PKCS7_DIGEST)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENCRYPT)\nDECLARE_ASN1_FUNCTIONS(PKCS7)\n\nDECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN)\nDECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY)\n\nDECLARE_ASN1_NDEF_FUNCTION(PKCS7)\nDECLARE_ASN1_PRINT_FUNCTION(PKCS7)\n\nlong PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);\n\nint PKCS7_set_type(PKCS7 *p7, int type);\nint PKCS7_set0_type_other(PKCS7 *p7, int type, ASN1_TYPE *other);\nint PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data);\nint PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,\n                          const EVP_MD *dgst);\nint PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);\nint PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);\nint PKCS7_add_certificate(PKCS7 *p7, X509 *x509);\nint PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509);\nint PKCS7_content_new(PKCS7 *p7, int nid);\nint PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx,\n                     BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);\nint PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,\n                          X509 *x509);\n\nBIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio);\nint PKCS7_dataFinal(PKCS7 *p7, BIO *bio);\nBIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert);\n\nPKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,\n                                       EVP_PKEY *pkey, const EVP_MD *dgst);\nX509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);\nint PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md);\nSTACK_OF(PKCS7_SIGNER_INFO) *PKCS7_get_signer_info(PKCS7 *p7);\n\nPKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);\nvoid PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,\n                                 X509_ALGOR **pdig, X509_ALGOR **psig);\nvoid PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);\nint PKCS7_add_recipient_info(PKCS7 *p7, PKCS7_RECIP_INFO *ri);\nint PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509);\nint PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher);\nint PKCS7_stream(unsigned char ***boundary, PKCS7 *p7);\n\nPKCS7_ISSUER_AND_SERIAL *PKCS7_get_issuer_and_serial(PKCS7 *p7, int idx);\nASN1_OCTET_STRING *PKCS7_digest_from_attributes(STACK_OF(X509_ATTRIBUTE) *sk);\nint PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int type,\n                               void *data);\nint PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,\n                        void *value);\nASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);\nASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);\nint PKCS7_set_signed_attributes(PKCS7_SIGNER_INFO *p7si,\n                                STACK_OF(X509_ATTRIBUTE) *sk);\nint PKCS7_set_attributes(PKCS7_SIGNER_INFO *p7si,\n                         STACK_OF(X509_ATTRIBUTE) *sk);\n\nPKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,\n                  BIO *data, int flags);\n\nPKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7,\n                                         X509 *signcert, EVP_PKEY *pkey,\n                                         const EVP_MD *md, int flags);\n\nint PKCS7_final(PKCS7 *p7, BIO *data, int flags);\nint PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,\n                 BIO *indata, BIO *out, int flags);\nSTACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs,\n                                   int flags);\nPKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,\n                     int flags);\nint PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data,\n                  int flags);\n\nint PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si,\n                              STACK_OF(X509_ALGOR) *cap);\nSTACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si);\nint PKCS7_simple_smimecap(STACK_OF(X509_ALGOR) *sk, int nid, int arg);\n\nint PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);\nint PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);\nint PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,\n                             const unsigned char *md, int mdlen);\n\nint SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags);\nPKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont);\n\nBIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/pkcs7err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS7ERR_H\n# define HEADER_PKCS7ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PKCS7_strings(void);\n\n/*\n * PKCS7 function codes.\n */\n# define PKCS7_F_DO_PKCS7_SIGNED_ATTRIB                   136\n# define PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME           135\n# define PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP                118\n# define PKCS7_F_PKCS7_ADD_CERTIFICATE                    100\n# define PKCS7_F_PKCS7_ADD_CRL                            101\n# define PKCS7_F_PKCS7_ADD_RECIPIENT_INFO                 102\n# define PKCS7_F_PKCS7_ADD_SIGNATURE                      131\n# define PKCS7_F_PKCS7_ADD_SIGNER                         103\n# define PKCS7_F_PKCS7_BIO_ADD_DIGEST                     125\n# define PKCS7_F_PKCS7_COPY_EXISTING_DIGEST               138\n# define PKCS7_F_PKCS7_CTRL                               104\n# define PKCS7_F_PKCS7_DATADECODE                         112\n# define PKCS7_F_PKCS7_DATAFINAL                          128\n# define PKCS7_F_PKCS7_DATAINIT                           105\n# define PKCS7_F_PKCS7_DATAVERIFY                         107\n# define PKCS7_F_PKCS7_DECRYPT                            114\n# define PKCS7_F_PKCS7_DECRYPT_RINFO                      133\n# define PKCS7_F_PKCS7_ENCODE_RINFO                       132\n# define PKCS7_F_PKCS7_ENCRYPT                            115\n# define PKCS7_F_PKCS7_FINAL                              134\n# define PKCS7_F_PKCS7_FIND_DIGEST                        127\n# define PKCS7_F_PKCS7_GET0_SIGNERS                       124\n# define PKCS7_F_PKCS7_RECIP_INFO_SET                     130\n# define PKCS7_F_PKCS7_SET_CIPHER                         108\n# define PKCS7_F_PKCS7_SET_CONTENT                        109\n# define PKCS7_F_PKCS7_SET_DIGEST                         126\n# define PKCS7_F_PKCS7_SET_TYPE                           110\n# define PKCS7_F_PKCS7_SIGN                               116\n# define PKCS7_F_PKCS7_SIGNATUREVERIFY                    113\n# define PKCS7_F_PKCS7_SIGNER_INFO_SET                    129\n# define PKCS7_F_PKCS7_SIGNER_INFO_SIGN                   139\n# define PKCS7_F_PKCS7_SIGN_ADD_SIGNER                    137\n# define PKCS7_F_PKCS7_SIMPLE_SMIMECAP                    119\n# define PKCS7_F_PKCS7_VERIFY                             117\n\n/*\n * PKCS7 reason codes.\n */\n# define PKCS7_R_CERTIFICATE_VERIFY_ERROR                 117\n# define PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER          144\n# define PKCS7_R_CIPHER_NOT_INITIALIZED                   116\n# define PKCS7_R_CONTENT_AND_DATA_PRESENT                 118\n# define PKCS7_R_CTRL_ERROR                               152\n# define PKCS7_R_DECRYPT_ERROR                            119\n# define PKCS7_R_DIGEST_FAILURE                           101\n# define PKCS7_R_ENCRYPTION_CTRL_FAILURE                  149\n# define PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 150\n# define PKCS7_R_ERROR_ADDING_RECIPIENT                   120\n# define PKCS7_R_ERROR_SETTING_CIPHER                     121\n# define PKCS7_R_INVALID_NULL_POINTER                     143\n# define PKCS7_R_INVALID_SIGNED_DATA_TYPE                 155\n# define PKCS7_R_NO_CONTENT                               122\n# define PKCS7_R_NO_DEFAULT_DIGEST                        151\n# define PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND            154\n# define PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE         115\n# define PKCS7_R_NO_SIGNATURES_ON_DATA                    123\n# define PKCS7_R_NO_SIGNERS                               142\n# define PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE     104\n# define PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR                124\n# define PKCS7_R_PKCS7_ADD_SIGNER_ERROR                   153\n# define PKCS7_R_PKCS7_DATASIGN                           145\n# define PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   127\n# define PKCS7_R_SIGNATURE_FAILURE                        105\n# define PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND             128\n# define PKCS7_R_SIGNING_CTRL_FAILURE                     147\n# define PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE  148\n# define PKCS7_R_SMIME_TEXT_ERROR                         129\n# define PKCS7_R_UNABLE_TO_FIND_CERTIFICATE               106\n# define PKCS7_R_UNABLE_TO_FIND_MEM_BIO                   107\n# define PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST            108\n# define PKCS7_R_UNKNOWN_DIGEST_TYPE                      109\n# define PKCS7_R_UNKNOWN_OPERATION                        110\n# define PKCS7_R_UNSUPPORTED_CIPHER_TYPE                  111\n# define PKCS7_R_UNSUPPORTED_CONTENT_TYPE                 112\n# define PKCS7_R_WRONG_CONTENT_TYPE                       113\n# define PKCS7_R_WRONG_PKCS7_TYPE                         114\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rand.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RAND_H\n# define HEADER_RAND_H\n\n# include <stdlib.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/e_os2.h>\n# include <openssl/randerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\nstruct rand_meth_st {\n    int (*seed) (const void *buf, int num);\n    int (*bytes) (unsigned char *buf, int num);\n    void (*cleanup) (void);\n    int (*add) (const void *buf, int num, double randomness);\n    int (*pseudorand) (unsigned char *buf, int num);\n    int (*status) (void);\n};\n\nint RAND_set_rand_method(const RAND_METHOD *meth);\nconst RAND_METHOD *RAND_get_rand_method(void);\n# ifndef OPENSSL_NO_ENGINE\nint RAND_set_rand_engine(ENGINE *engine);\n# endif\n\nRAND_METHOD *RAND_OpenSSL(void);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#   define RAND_cleanup() while(0) continue\n# endif\nint RAND_bytes(unsigned char *buf, int num);\nint RAND_priv_bytes(unsigned char *buf, int num);\nDEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))\n\nvoid RAND_seed(const void *buf, int num);\nvoid RAND_keep_random_devices_open(int keep);\n\n# if defined(__ANDROID__) && defined(__NDK_FPABI__)\n__NDK_FPABI__\t/* __attribute__((pcs(\"aapcs\"))) on ARM */\n# endif\nvoid RAND_add(const void *buf, int num, double randomness);\nint RAND_load_file(const char *file, long max_bytes);\nint RAND_write_file(const char *file);\nconst char *RAND_file_name(char *file, size_t num);\nint RAND_status(void);\n\n# ifndef OPENSSL_NO_EGD\nint RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);\nint RAND_egd(const char *path);\nint RAND_egd_bytes(const char *path, int bytes);\n# endif\n\nint RAND_poll(void);\n\n# if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))\n/* application has to include <windows.h> in order to use these */\nDEPRECATEDIN_1_1_0(void RAND_screen(void))\nDEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))\n# endif\n\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rand_drbg.h",
    "content": "/*\n * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DRBG_RAND_H\n# define HEADER_DRBG_RAND_H\n\n# include <time.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/obj_mac.h>\n\n/*\n * RAND_DRBG  flags\n *\n * Note: if new flags are added, the constant `rand_drbg_used_flags`\n *       in drbg_lib.c needs to be updated accordingly.\n */\n\n/* In CTR mode, disable derivation function ctr_df */\n# define RAND_DRBG_FLAG_CTR_NO_DF            0x1\n\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n/* This #define was replaced by an internal constant and should not be used. */\n#  define RAND_DRBG_USED_FLAGS  (RAND_DRBG_FLAG_CTR_NO_DF)\n# endif\n\n/*\n * Default security strength (in the sense of [NIST SP 800-90Ar1])\n *\n * NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that\n * of the cipher by collecting less entropy. The current DRBG implementation\n * does not take RAND_DRBG_STRENGTH into account and sets the strength of the\n * DRBG to that of the cipher.\n *\n * RAND_DRBG_STRENGTH is currently only used for the legacy RAND\n * implementation.\n *\n * Currently supported ciphers are: NID_aes_128_ctr, NID_aes_192_ctr and\n * NID_aes_256_ctr\n */\n# define RAND_DRBG_STRENGTH             256\n/* Default drbg type */\n# define RAND_DRBG_TYPE                 NID_aes_256_ctr\n/* Default drbg flags */\n# define RAND_DRBG_FLAGS                0\n\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * Object lifetime functions.\n */\nRAND_DRBG *RAND_DRBG_new(int type, unsigned int flags, RAND_DRBG *parent);\nRAND_DRBG *RAND_DRBG_secure_new(int type, unsigned int flags, RAND_DRBG *parent);\nint RAND_DRBG_set(RAND_DRBG *drbg, int type, unsigned int flags);\nint RAND_DRBG_set_defaults(int type, unsigned int flags);\nint RAND_DRBG_instantiate(RAND_DRBG *drbg,\n                          const unsigned char *pers, size_t perslen);\nint RAND_DRBG_uninstantiate(RAND_DRBG *drbg);\nvoid RAND_DRBG_free(RAND_DRBG *drbg);\n\n/*\n * Object \"use\" functions.\n */\nint RAND_DRBG_reseed(RAND_DRBG *drbg,\n                     const unsigned char *adin, size_t adinlen,\n                     int prediction_resistance);\nint RAND_DRBG_generate(RAND_DRBG *drbg, unsigned char *out, size_t outlen,\n                       int prediction_resistance,\n                       const unsigned char *adin, size_t adinlen);\nint RAND_DRBG_bytes(RAND_DRBG *drbg, unsigned char *out, size_t outlen);\n\nint RAND_DRBG_set_reseed_interval(RAND_DRBG *drbg, unsigned int interval);\nint RAND_DRBG_set_reseed_time_interval(RAND_DRBG *drbg, time_t interval);\n\nint RAND_DRBG_set_reseed_defaults(\n                                  unsigned int master_reseed_interval,\n                                  unsigned int slave_reseed_interval,\n                                  time_t master_reseed_time_interval,\n                                  time_t slave_reseed_time_interval\n                                  );\n\nRAND_DRBG *RAND_DRBG_get0_master(void);\nRAND_DRBG *RAND_DRBG_get0_public(void);\nRAND_DRBG *RAND_DRBG_get0_private(void);\n\n/*\n * EXDATA\n */\n# define RAND_DRBG_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DRBG, l, p, newf, dupf, freef)\nint RAND_DRBG_set_ex_data(RAND_DRBG *drbg, int idx, void *arg);\nvoid *RAND_DRBG_get_ex_data(const RAND_DRBG *drbg, int idx);\n\n/*\n * Callback function typedefs\n */\ntypedef size_t (*RAND_DRBG_get_entropy_fn)(RAND_DRBG *drbg,\n                                           unsigned char **pout,\n                                           int entropy, size_t min_len,\n                                           size_t max_len,\n                                           int prediction_resistance);\ntypedef void (*RAND_DRBG_cleanup_entropy_fn)(RAND_DRBG *ctx,\n                                             unsigned char *out, size_t outlen);\ntypedef size_t (*RAND_DRBG_get_nonce_fn)(RAND_DRBG *drbg, unsigned char **pout,\n                                         int entropy, size_t min_len,\n                                         size_t max_len);\ntypedef void (*RAND_DRBG_cleanup_nonce_fn)(RAND_DRBG *drbg,\n                                           unsigned char *out, size_t outlen);\n\nint RAND_DRBG_set_callbacks(RAND_DRBG *drbg,\n                            RAND_DRBG_get_entropy_fn get_entropy,\n                            RAND_DRBG_cleanup_entropy_fn cleanup_entropy,\n                            RAND_DRBG_get_nonce_fn get_nonce,\n                            RAND_DRBG_cleanup_nonce_fn cleanup_nonce);\n\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/randerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RANDERR_H\n# define HEADER_RANDERR_H\n\n# include <openssl/symhacks.h>\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_RAND_strings(void);\n\n/*\n * RAND function codes.\n */\n# define RAND_F_DATA_COLLECT_METHOD                       127\n# define RAND_F_DRBG_BYTES                                101\n# define RAND_F_DRBG_GET_ENTROPY                          105\n# define RAND_F_DRBG_SETUP                                117\n# define RAND_F_GET_ENTROPY                               106\n# define RAND_F_RAND_BYTES                                100\n# define RAND_F_RAND_DRBG_ENABLE_LOCKING                  119\n# define RAND_F_RAND_DRBG_GENERATE                        107\n# define RAND_F_RAND_DRBG_GET_ENTROPY                     120\n# define RAND_F_RAND_DRBG_GET_NONCE                       123\n# define RAND_F_RAND_DRBG_INSTANTIATE                     108\n# define RAND_F_RAND_DRBG_NEW                             109\n# define RAND_F_RAND_DRBG_RESEED                          110\n# define RAND_F_RAND_DRBG_RESTART                         102\n# define RAND_F_RAND_DRBG_SET                             104\n# define RAND_F_RAND_DRBG_SET_DEFAULTS                    121\n# define RAND_F_RAND_DRBG_UNINSTANTIATE                   118\n# define RAND_F_RAND_LOAD_FILE                            111\n# define RAND_F_RAND_POOL_ACQUIRE_ENTROPY                 122\n# define RAND_F_RAND_POOL_ADD                             103\n# define RAND_F_RAND_POOL_ADD_BEGIN                       113\n# define RAND_F_RAND_POOL_ADD_END                         114\n# define RAND_F_RAND_POOL_ATTACH                          124\n# define RAND_F_RAND_POOL_BYTES_NEEDED                    115\n# define RAND_F_RAND_POOL_GROW                            125\n# define RAND_F_RAND_POOL_NEW                             116\n# define RAND_F_RAND_PSEUDO_BYTES                         126\n# define RAND_F_RAND_WRITE_FILE                           112\n\n/*\n * RAND reason codes.\n */\n# define RAND_R_ADDITIONAL_INPUT_TOO_LONG                 102\n# define RAND_R_ALREADY_INSTANTIATED                      103\n# define RAND_R_ARGUMENT_OUT_OF_RANGE                     105\n# define RAND_R_CANNOT_OPEN_FILE                          121\n# define RAND_R_DRBG_ALREADY_INITIALIZED                  129\n# define RAND_R_DRBG_NOT_INITIALISED                      104\n# define RAND_R_ENTROPY_INPUT_TOO_LONG                    106\n# define RAND_R_ENTROPY_OUT_OF_RANGE                      124\n# define RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED            127\n# define RAND_R_ERROR_INITIALISING_DRBG                   107\n# define RAND_R_ERROR_INSTANTIATING_DRBG                  108\n# define RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT         109\n# define RAND_R_ERROR_RETRIEVING_ENTROPY                  110\n# define RAND_R_ERROR_RETRIEVING_NONCE                    111\n# define RAND_R_FAILED_TO_CREATE_LOCK                     126\n# define RAND_R_FUNC_NOT_IMPLEMENTED                      101\n# define RAND_R_FWRITE_ERROR                              123\n# define RAND_R_GENERATE_ERROR                            112\n# define RAND_R_INTERNAL_ERROR                            113\n# define RAND_R_IN_ERROR_STATE                            114\n# define RAND_R_NOT_A_REGULAR_FILE                        122\n# define RAND_R_NOT_INSTANTIATED                          115\n# define RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED           128\n# define RAND_R_PARENT_LOCKING_NOT_ENABLED                130\n# define RAND_R_PARENT_STRENGTH_TOO_WEAK                  131\n# define RAND_R_PERSONALISATION_STRING_TOO_LONG           116\n# define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED       133\n# define RAND_R_PRNG_NOT_SEEDED                           100\n# define RAND_R_RANDOM_POOL_OVERFLOW                      125\n# define RAND_R_RANDOM_POOL_UNDERFLOW                     134\n# define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG                117\n# define RAND_R_RESEED_ERROR                              118\n# define RAND_R_SELFTEST_FAILURE                          119\n# define RAND_R_TOO_LITTLE_NONCE_REQUESTED                135\n# define RAND_R_TOO_MUCH_NONCE_REQUESTED                  136\n# define RAND_R_UNSUPPORTED_DRBG_FLAGS                    132\n# define RAND_R_UNSUPPORTED_DRBG_TYPE                     120\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rc2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC2_H\n# define HEADER_RC2_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC2\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned int RC2_INT;\n\n# define RC2_ENCRYPT     1\n# define RC2_DECRYPT     0\n\n# define RC2_BLOCK       8\n# define RC2_KEY_LENGTH  16\n\ntypedef struct rc2_key_st {\n    RC2_INT data[64];\n} RC2_KEY;\n\nvoid RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits);\nvoid RC2_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                     RC2_KEY *key, int enc);\nvoid RC2_encrypt(unsigned long *data, RC2_KEY *key);\nvoid RC2_decrypt(unsigned long *data, RC2_KEY *key);\nvoid RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,\n                     RC2_KEY *ks, unsigned char *iv, int enc);\nvoid RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, RC2_KEY *schedule, unsigned char *ivec,\n                       int *num, int enc);\nvoid RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, RC2_KEY *schedule, unsigned char *ivec,\n                       int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rc4.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC4_H\n# define HEADER_RC4_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC4\n# include <stddef.h>\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct rc4_key_st {\n    RC4_INT x, y;\n    RC4_INT data[256];\n} RC4_KEY;\n\nconst char *RC4_options(void);\nvoid RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);\nvoid RC4(RC4_KEY *key, size_t len, const unsigned char *indata,\n         unsigned char *outdata);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rc5.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC5_H\n# define HEADER_RC5_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC5\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define RC5_ENCRYPT     1\n# define RC5_DECRYPT     0\n\n# define RC5_32_INT unsigned int\n\n# define RC5_32_BLOCK            8\n# define RC5_32_KEY_LENGTH       16/* This is a default, max is 255 */\n\n/*\n * This are the only values supported.  Tweak the code if you want more The\n * most supported modes will be RC5-32/12/16 RC5-32/16/8\n */\n# define RC5_8_ROUNDS    8\n# define RC5_12_ROUNDS   12\n# define RC5_16_ROUNDS   16\n\ntypedef struct rc5_key_st {\n    /* Number of rounds */\n    int rounds;\n    RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)];\n} RC5_32_KEY;\n\nvoid RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,\n                    int rounds);\nvoid RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                        RC5_32_KEY *key, int enc);\nvoid RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);\nvoid RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);\nvoid RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, RC5_32_KEY *ks, unsigned char *iv,\n                        int enc);\nvoid RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                          long length, RC5_32_KEY *schedule,\n                          unsigned char *ivec, int *num, int enc);\nvoid RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                          long length, RC5_32_KEY *schedule,\n                          unsigned char *ivec, int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ripemd.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RIPEMD_H\n# define HEADER_RIPEMD_H\n\n# include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_RMD160\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define RIPEMD160_LONG unsigned int\n\n# define RIPEMD160_CBLOCK        64\n# define RIPEMD160_LBLOCK        (RIPEMD160_CBLOCK/4)\n# define RIPEMD160_DIGEST_LENGTH 20\n\ntypedef struct RIPEMD160state_st {\n    RIPEMD160_LONG A, B, C, D, E;\n    RIPEMD160_LONG Nl, Nh;\n    RIPEMD160_LONG data[RIPEMD160_LBLOCK];\n    unsigned int num;\n} RIPEMD160_CTX;\n\nint RIPEMD160_Init(RIPEMD160_CTX *c);\nint RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len);\nint RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);\nunsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md);\nvoid RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rsa.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RSA_H\n# define HEADER_RSA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RSA\n# include <openssl/asn1.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/rsaerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/* The types RSA and RSA_METHOD are defined in ossl_typ.h */\n\n# ifndef OPENSSL_RSA_MAX_MODULUS_BITS\n#  define OPENSSL_RSA_MAX_MODULUS_BITS   16384\n# endif\n\n# define OPENSSL_RSA_FIPS_MIN_MODULUS_BITS 1024\n\n# ifndef OPENSSL_RSA_SMALL_MODULUS_BITS\n#  define OPENSSL_RSA_SMALL_MODULUS_BITS 3072\n# endif\n# ifndef OPENSSL_RSA_MAX_PUBEXP_BITS\n\n/* exponent limit enforced for \"large\" modulus only */\n#  define OPENSSL_RSA_MAX_PUBEXP_BITS    64\n# endif\n\n# define RSA_3   0x3L\n# define RSA_F4  0x10001L\n\n/* based on RFC 8017 appendix A.1.2 */\n# define RSA_ASN1_VERSION_DEFAULT        0\n# define RSA_ASN1_VERSION_MULTI          1\n\n# define RSA_DEFAULT_PRIME_NUM           2\n\n# define RSA_METHOD_FLAG_NO_CHECK        0x0001/* don't check pub/private\n                                                * match */\n\n# define RSA_FLAG_CACHE_PUBLIC           0x0002\n# define RSA_FLAG_CACHE_PRIVATE          0x0004\n# define RSA_FLAG_BLINDING               0x0008\n# define RSA_FLAG_THREAD_SAFE            0x0010\n/*\n * This flag means the private key operations will be handled by rsa_mod_exp\n * and that they do not depend on the private key components being present:\n * for example a key stored in external hardware. Without this flag\n * bn_mod_exp gets called when private key components are absent.\n */\n# define RSA_FLAG_EXT_PKEY               0x0020\n\n/*\n * new with 0.9.6j and 0.9.7b; the built-in\n * RSA implementation now uses blinding by\n * default (ignoring RSA_FLAG_BLINDING),\n * but other engines might not need it\n */\n# define RSA_FLAG_NO_BLINDING            0x0080\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define RSA_FLAG_NO_CONSTTIME           0x0000\n# endif\n# if OPENSSL_API_COMPAT < 0x00908000L\n/* deprecated name for the flag*/\n/*\n * new with 0.9.7h; the built-in RSA\n * implementation now uses constant time\n * modular exponentiation for secret exponents\n * by default. This flag causes the\n * faster variable sliding window method to\n * be used for all exponents.\n */\n#  define RSA_FLAG_NO_EXP_CONSTTIME RSA_FLAG_NO_CONSTTIME\n# endif\n\n# define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \\\n        RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL)\n\n# define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \\\n        RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad)\n\n# define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \\\n        RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \\\n                          EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL)\n/* Salt length matches digest */\n# define RSA_PSS_SALTLEN_DIGEST -1\n/* Verify only: auto detect salt length */\n# define RSA_PSS_SALTLEN_AUTO   -2\n/* Set salt length to maximum possible */\n# define RSA_PSS_SALTLEN_MAX    -3\n/* Old compatible max salt length for sign only */\n# define RSA_PSS_SALTLEN_MAX_SIGN    -2\n\n# define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen) \\\n        RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \\\n                          EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, 0, plen)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, 0, pubexp)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_primes(ctx, primes) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES, primes, NULL)\n\n# define  EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \\\n                          EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \\\n                          EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_GET_RSA_OAEP_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)(l))\n\n# define  EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)(l))\n\n# define  EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS,  \\\n                          EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD,  \\\n                          0, (void *)(md))\n\n# define EVP_PKEY_CTRL_RSA_PADDING       (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 2)\n\n# define EVP_PKEY_CTRL_RSA_KEYGEN_BITS   (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_RSA_MGF1_MD       (EVP_PKEY_ALG_CTRL + 5)\n\n# define EVP_PKEY_CTRL_GET_RSA_PADDING           (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN       (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_RSA_MGF1_MD           (EVP_PKEY_ALG_CTRL + 8)\n\n# define EVP_PKEY_CTRL_RSA_OAEP_MD       (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_RSA_OAEP_LABEL    (EVP_PKEY_ALG_CTRL + 10)\n\n# define EVP_PKEY_CTRL_GET_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL (EVP_PKEY_ALG_CTRL + 12)\n\n# define EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES  (EVP_PKEY_ALG_CTRL + 13)\n\n# define RSA_PKCS1_PADDING       1\n# define RSA_SSLV23_PADDING      2\n# define RSA_NO_PADDING          3\n# define RSA_PKCS1_OAEP_PADDING  4\n# define RSA_X931_PADDING        5\n/* EVP_PKEY_ only */\n# define RSA_PKCS1_PSS_PADDING   6\n\n# define RSA_PKCS1_PADDING_SIZE  11\n\n# define RSA_set_app_data(s,arg)         RSA_set_ex_data(s,0,arg)\n# define RSA_get_app_data(s)             RSA_get_ex_data(s,0)\n\nRSA *RSA_new(void);\nRSA *RSA_new_method(ENGINE *engine);\nint RSA_bits(const RSA *rsa);\nint RSA_size(const RSA *rsa);\nint RSA_security_bits(const RSA *rsa);\n\nint RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);\nint RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);\nint RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);\nint RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],\n                                BIGNUM *coeffs[], int pnum);\nvoid RSA_get0_key(const RSA *r,\n                  const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);\nvoid RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);\nint RSA_get_multi_prime_extra_count(const RSA *r);\nint RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[]);\nvoid RSA_get0_crt_params(const RSA *r,\n                         const BIGNUM **dmp1, const BIGNUM **dmq1,\n                         const BIGNUM **iqmp);\nint RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[],\n                                    const BIGNUM *coeffs[]);\nconst BIGNUM *RSA_get0_n(const RSA *d);\nconst BIGNUM *RSA_get0_e(const RSA *d);\nconst BIGNUM *RSA_get0_d(const RSA *d);\nconst BIGNUM *RSA_get0_p(const RSA *d);\nconst BIGNUM *RSA_get0_q(const RSA *d);\nconst BIGNUM *RSA_get0_dmp1(const RSA *r);\nconst BIGNUM *RSA_get0_dmq1(const RSA *r);\nconst BIGNUM *RSA_get0_iqmp(const RSA *r);\nconst RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r);\nvoid RSA_clear_flags(RSA *r, int flags);\nint RSA_test_flags(const RSA *r, int flags);\nvoid RSA_set_flags(RSA *r, int flags);\nint RSA_get_version(RSA *r);\nENGINE *RSA_get0_engine(const RSA *r);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void\n                                         (*callback) (int, int, void *),\n                                         void *cb_arg))\n\n/* New version */\nint RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);\n/* Multi-prime version */\nint RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,\n                                 BIGNUM *e, BN_GENCB *cb);\n\nint RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1,\n                       BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2,\n                       const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2,\n                       const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb);\nint RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,\n                             BN_GENCB *cb);\n\nint RSA_check_key(const RSA *);\nint RSA_check_key_ex(const RSA *, BN_GENCB *cb);\n        /* next 4 return -1 on error */\nint RSA_public_encrypt(int flen, const unsigned char *from,\n                       unsigned char *to, RSA *rsa, int padding);\nint RSA_private_encrypt(int flen, const unsigned char *from,\n                        unsigned char *to, RSA *rsa, int padding);\nint RSA_public_decrypt(int flen, const unsigned char *from,\n                       unsigned char *to, RSA *rsa, int padding);\nint RSA_private_decrypt(int flen, const unsigned char *from,\n                        unsigned char *to, RSA *rsa, int padding);\nvoid RSA_free(RSA *r);\n/* \"up\" the RSA object's reference count */\nint RSA_up_ref(RSA *r);\n\nint RSA_flags(const RSA *r);\n\nvoid RSA_set_default_method(const RSA_METHOD *meth);\nconst RSA_METHOD *RSA_get_default_method(void);\nconst RSA_METHOD *RSA_null_method(void);\nconst RSA_METHOD *RSA_get_method(const RSA *rsa);\nint RSA_set_method(RSA *rsa, const RSA_METHOD *meth);\n\n/* these are the actual RSA functions */\nconst RSA_METHOD *RSA_PKCS1_OpenSSL(void);\n\nint RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2);\n\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)\n\nstruct rsa_pss_params_st {\n    X509_ALGOR *hashAlgorithm;\n    X509_ALGOR *maskGenAlgorithm;\n    ASN1_INTEGER *saltLength;\n    ASN1_INTEGER *trailerField;\n    /* Decoded hash algorithm from maskGenAlgorithm */\n    X509_ALGOR *maskHash;\n};\n\nDECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)\n\ntypedef struct rsa_oaep_params_st {\n    X509_ALGOR *hashFunc;\n    X509_ALGOR *maskGenFunc;\n    X509_ALGOR *pSourceFunc;\n    /* Decoded hash algorithm from maskGenFunc */\n    X509_ALGOR *maskHash;\n} RSA_OAEP_PARAMS;\n\nDECLARE_ASN1_FUNCTIONS(RSA_OAEP_PARAMS)\n\n# ifndef OPENSSL_NO_STDIO\nint RSA_print_fp(FILE *fp, const RSA *r, int offset);\n# endif\n\nint RSA_print(BIO *bp, const RSA *r, int offset);\n\n/*\n * The following 2 functions sign and verify a X509_SIG ASN1 object inside\n * PKCS#1 padded RSA encryption\n */\nint RSA_sign(int type, const unsigned char *m, unsigned int m_length,\n             unsigned char *sigret, unsigned int *siglen, RSA *rsa);\nint RSA_verify(int type, const unsigned char *m, unsigned int m_length,\n               const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);\n\n/*\n * The following 2 function sign and verify a ASN1_OCTET_STRING object inside\n * PKCS#1 padded RSA encryption\n */\nint RSA_sign_ASN1_OCTET_STRING(int type,\n                               const unsigned char *m, unsigned int m_length,\n                               unsigned char *sigret, unsigned int *siglen,\n                               RSA *rsa);\nint RSA_verify_ASN1_OCTET_STRING(int type, const unsigned char *m,\n                                 unsigned int m_length, unsigned char *sigbuf,\n                                 unsigned int siglen, RSA *rsa);\n\nint RSA_blinding_on(RSA *rsa, BN_CTX *ctx);\nvoid RSA_blinding_off(RSA *rsa);\nBN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx);\n\nint RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl);\nint RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,\n                                   const unsigned char *f, int fl,\n                                   int rsa_len);\nint RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl);\nint RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,\n                                   const unsigned char *f, int fl,\n                                   int rsa_len);\nint PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed,\n               long seedlen, const EVP_MD *dgst);\nint RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,\n                               const unsigned char *f, int fl,\n                               const unsigned char *p, int pl);\nint RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl, int rsa_len,\n                                 const unsigned char *p, int pl);\nint RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,\n                                    const unsigned char *from, int flen,\n                                    const unsigned char *param, int plen,\n                                    const EVP_MD *md, const EVP_MD *mgf1md);\nint RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,\n                                      const unsigned char *from, int flen,\n                                      int num, const unsigned char *param,\n                                      int plen, const EVP_MD *md,\n                                      const EVP_MD *mgf1md);\nint RSA_padding_add_SSLv23(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl);\nint RSA_padding_check_SSLv23(unsigned char *to, int tlen,\n                             const unsigned char *f, int fl, int rsa_len);\nint RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *f,\n                         int fl);\nint RSA_padding_check_none(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl, int rsa_len);\nint RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *f,\n                         int fl);\nint RSA_padding_check_X931(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl, int rsa_len);\nint RSA_X931_hash_id(int nid);\n\nint RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,\n                         const EVP_MD *Hash, const unsigned char *EM,\n                         int sLen);\nint RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,\n                              const unsigned char *mHash, const EVP_MD *Hash,\n                              int sLen);\n\nint RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,\n                              const EVP_MD *Hash, const EVP_MD *mgf1Hash,\n                              const unsigned char *EM, int sLen);\n\nint RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,\n                                   const unsigned char *mHash,\n                                   const EVP_MD *Hash, const EVP_MD *mgf1Hash,\n                                   int sLen);\n\n#define RSA_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)\nint RSA_set_ex_data(RSA *r, int idx, void *arg);\nvoid *RSA_get_ex_data(const RSA *r, int idx);\n\nRSA *RSAPublicKey_dup(RSA *rsa);\nRSA *RSAPrivateKey_dup(RSA *rsa);\n\n/*\n * If this flag is set the RSA method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define RSA_FLAG_FIPS_METHOD                    0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define RSA_FLAG_NON_FIPS_ALLOW                 0x0400\n/*\n * Application has decided PRNG is good enough to generate a key: don't\n * check.\n */\n# define RSA_FLAG_CHECKED                        0x0800\n\nRSA_METHOD *RSA_meth_new(const char *name, int flags);\nvoid RSA_meth_free(RSA_METHOD *meth);\nRSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);\nconst char *RSA_meth_get0_name(const RSA_METHOD *meth);\nint RSA_meth_set1_name(RSA_METHOD *meth, const char *name);\nint RSA_meth_get_flags(const RSA_METHOD *meth);\nint RSA_meth_set_flags(RSA_METHOD *meth, int flags);\nvoid *RSA_meth_get0_app_data(const RSA_METHOD *meth);\nint RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data);\nint (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_pub_enc(RSA_METHOD *rsa,\n                         int (*pub_enc) (int flen, const unsigned char *from,\n                                         unsigned char *to, RSA *rsa,\n                                         int padding));\nint (*RSA_meth_get_pub_dec(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_pub_dec(RSA_METHOD *rsa,\n                         int (*pub_dec) (int flen, const unsigned char *from,\n                                         unsigned char *to, RSA *rsa,\n                                         int padding));\nint (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_priv_enc(RSA_METHOD *rsa,\n                          int (*priv_enc) (int flen, const unsigned char *from,\n                                           unsigned char *to, RSA *rsa,\n                                           int padding));\nint (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_priv_dec(RSA_METHOD *rsa,\n                          int (*priv_dec) (int flen, const unsigned char *from,\n                                           unsigned char *to, RSA *rsa,\n                                           int padding));\nint (*RSA_meth_get_mod_exp(const RSA_METHOD *meth))\n    (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);\nint RSA_meth_set_mod_exp(RSA_METHOD *rsa,\n                         int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa,\n                                         BN_CTX *ctx));\nint (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth))\n    (BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n     const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint RSA_meth_set_bn_mod_exp(RSA_METHOD *rsa,\n                            int (*bn_mod_exp) (BIGNUM *r,\n                                               const BIGNUM *a,\n                                               const BIGNUM *p,\n                                               const BIGNUM *m,\n                                               BN_CTX *ctx,\n                                               BN_MONT_CTX *m_ctx));\nint (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);\nint RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa));\nint (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);\nint RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa));\nint (*RSA_meth_get_sign(const RSA_METHOD *meth))\n    (int type,\n     const unsigned char *m, unsigned int m_length,\n     unsigned char *sigret, unsigned int *siglen,\n     const RSA *rsa);\nint RSA_meth_set_sign(RSA_METHOD *rsa,\n                      int (*sign) (int type, const unsigned char *m,\n                                   unsigned int m_length,\n                                   unsigned char *sigret, unsigned int *siglen,\n                                   const RSA *rsa));\nint (*RSA_meth_get_verify(const RSA_METHOD *meth))\n    (int dtype, const unsigned char *m,\n     unsigned int m_length, const unsigned char *sigbuf,\n     unsigned int siglen, const RSA *rsa);\nint RSA_meth_set_verify(RSA_METHOD *rsa,\n                        int (*verify) (int dtype, const unsigned char *m,\n                                       unsigned int m_length,\n                                       const unsigned char *sigbuf,\n                                       unsigned int siglen, const RSA *rsa));\nint (*RSA_meth_get_keygen(const RSA_METHOD *meth))\n    (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);\nint RSA_meth_set_keygen(RSA_METHOD *rsa,\n                        int (*keygen) (RSA *rsa, int bits, BIGNUM *e,\n                                       BN_GENCB *cb));\nint (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth))\n    (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb);\nint RSA_meth_set_multi_prime_keygen(RSA_METHOD *meth,\n                                    int (*keygen) (RSA *rsa, int bits,\n                                                   int primes, BIGNUM *e,\n                                                   BN_GENCB *cb));\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/rsaerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RSAERR_H\n# define HEADER_RSAERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_RSA_strings(void);\n\n/*\n * RSA function codes.\n */\n# define RSA_F_CHECK_PADDING_MD                           140\n# define RSA_F_ENCODE_PKCS1                               146\n# define RSA_F_INT_RSA_VERIFY                             145\n# define RSA_F_OLD_RSA_PRIV_DECODE                        147\n# define RSA_F_PKEY_PSS_INIT                              165\n# define RSA_F_PKEY_RSA_CTRL                              143\n# define RSA_F_PKEY_RSA_CTRL_STR                          144\n# define RSA_F_PKEY_RSA_SIGN                              142\n# define RSA_F_PKEY_RSA_VERIFY                            149\n# define RSA_F_PKEY_RSA_VERIFYRECOVER                     141\n# define RSA_F_RSA_ALGOR_TO_MD                            156\n# define RSA_F_RSA_BUILTIN_KEYGEN                         129\n# define RSA_F_RSA_CHECK_KEY                              123\n# define RSA_F_RSA_CHECK_KEY_EX                           160\n# define RSA_F_RSA_CMS_DECRYPT                            159\n# define RSA_F_RSA_CMS_VERIFY                             158\n# define RSA_F_RSA_ITEM_VERIFY                            148\n# define RSA_F_RSA_METH_DUP                               161\n# define RSA_F_RSA_METH_NEW                               162\n# define RSA_F_RSA_METH_SET1_NAME                         163\n# define RSA_F_RSA_MGF1_TO_MD                             157\n# define RSA_F_RSA_MULTIP_INFO_NEW                        166\n# define RSA_F_RSA_NEW_METHOD                             106\n# define RSA_F_RSA_NULL                                   124\n# define RSA_F_RSA_NULL_PRIVATE_DECRYPT                   132\n# define RSA_F_RSA_NULL_PRIVATE_ENCRYPT                   133\n# define RSA_F_RSA_NULL_PUBLIC_DECRYPT                    134\n# define RSA_F_RSA_NULL_PUBLIC_ENCRYPT                    135\n# define RSA_F_RSA_OSSL_PRIVATE_DECRYPT                   101\n# define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT                   102\n# define RSA_F_RSA_OSSL_PUBLIC_DECRYPT                    103\n# define RSA_F_RSA_OSSL_PUBLIC_ENCRYPT                    104\n# define RSA_F_RSA_PADDING_ADD_NONE                       107\n# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP                 121\n# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1            154\n# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS                  125\n# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1             152\n# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1               108\n# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2               109\n# define RSA_F_RSA_PADDING_ADD_SSLV23                     110\n# define RSA_F_RSA_PADDING_ADD_X931                       127\n# define RSA_F_RSA_PADDING_CHECK_NONE                     111\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP               122\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1          153\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1             112\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2             113\n# define RSA_F_RSA_PADDING_CHECK_SSLV23                   114\n# define RSA_F_RSA_PADDING_CHECK_X931                     128\n# define RSA_F_RSA_PARAM_DECODE                           164\n# define RSA_F_RSA_PRINT                                  115\n# define RSA_F_RSA_PRINT_FP                               116\n# define RSA_F_RSA_PRIV_DECODE                            150\n# define RSA_F_RSA_PRIV_ENCODE                            138\n# define RSA_F_RSA_PSS_GET_PARAM                          151\n# define RSA_F_RSA_PSS_TO_CTX                             155\n# define RSA_F_RSA_PUB_DECODE                             139\n# define RSA_F_RSA_SETUP_BLINDING                         136\n# define RSA_F_RSA_SIGN                                   117\n# define RSA_F_RSA_SIGN_ASN1_OCTET_STRING                 118\n# define RSA_F_RSA_VERIFY                                 119\n# define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING               120\n# define RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1                  126\n# define RSA_F_SETUP_TBUF                                 167\n\n/*\n * RSA reason codes.\n */\n# define RSA_R_ALGORITHM_MISMATCH                         100\n# define RSA_R_BAD_E_VALUE                                101\n# define RSA_R_BAD_FIXED_HEADER_DECRYPT                   102\n# define RSA_R_BAD_PAD_BYTE_COUNT                         103\n# define RSA_R_BAD_SIGNATURE                              104\n# define RSA_R_BLOCK_TYPE_IS_NOT_01                       106\n# define RSA_R_BLOCK_TYPE_IS_NOT_02                       107\n# define RSA_R_DATA_GREATER_THAN_MOD_LEN                  108\n# define RSA_R_DATA_TOO_LARGE                             109\n# define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE                110\n# define RSA_R_DATA_TOO_LARGE_FOR_MODULUS                 132\n# define RSA_R_DATA_TOO_SMALL                             111\n# define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE                122\n# define RSA_R_DIGEST_DOES_NOT_MATCH                      158\n# define RSA_R_DIGEST_NOT_ALLOWED                         145\n# define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY                 112\n# define RSA_R_DMP1_NOT_CONGRUENT_TO_D                    124\n# define RSA_R_DMQ1_NOT_CONGRUENT_TO_D                    125\n# define RSA_R_D_E_NOT_CONGRUENT_TO_1                     123\n# define RSA_R_FIRST_OCTET_INVALID                        133\n# define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE        144\n# define RSA_R_INVALID_DIGEST                             157\n# define RSA_R_INVALID_DIGEST_LENGTH                      143\n# define RSA_R_INVALID_HEADER                             137\n# define RSA_R_INVALID_LABEL                              160\n# define RSA_R_INVALID_MESSAGE_LENGTH                     131\n# define RSA_R_INVALID_MGF1_MD                            156\n# define RSA_R_INVALID_MULTI_PRIME_KEY                    167\n# define RSA_R_INVALID_OAEP_PARAMETERS                    161\n# define RSA_R_INVALID_PADDING                            138\n# define RSA_R_INVALID_PADDING_MODE                       141\n# define RSA_R_INVALID_PSS_PARAMETERS                     149\n# define RSA_R_INVALID_PSS_SALTLEN                        146\n# define RSA_R_INVALID_SALT_LENGTH                        150\n# define RSA_R_INVALID_TRAILER                            139\n# define RSA_R_INVALID_X931_DIGEST                        142\n# define RSA_R_IQMP_NOT_INVERSE_OF_Q                      126\n# define RSA_R_KEY_PRIME_NUM_INVALID                      165\n# define RSA_R_KEY_SIZE_TOO_SMALL                         120\n# define RSA_R_LAST_OCTET_INVALID                         134\n# define RSA_R_MISSING_PRIVATE_KEY                        179\n# define RSA_R_MGF1_DIGEST_NOT_ALLOWED                    152\n# define RSA_R_MODULUS_TOO_LARGE                          105\n# define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R            168\n# define RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D             169\n# define RSA_R_MP_R_NOT_PRIME                             170\n# define RSA_R_NO_PUBLIC_EXPONENT                         140\n# define RSA_R_NULL_BEFORE_BLOCK_MISSING                  113\n# define RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES         172\n# define RSA_R_N_DOES_NOT_EQUAL_P_Q                       127\n# define RSA_R_OAEP_DECODING_ERROR                        121\n# define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   148\n# define RSA_R_PADDING_CHECK_FAILED                       114\n# define RSA_R_PKCS_DECODING_ERROR                        159\n# define RSA_R_PSS_SALTLEN_TOO_SMALL                      164\n# define RSA_R_P_NOT_PRIME                                128\n# define RSA_R_Q_NOT_PRIME                                129\n# define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED               130\n# define RSA_R_SLEN_CHECK_FAILED                          136\n# define RSA_R_SLEN_RECOVERY_FAILED                       135\n# define RSA_R_SSLV3_ROLLBACK_ATTACK                      115\n# define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116\n# define RSA_R_UNKNOWN_ALGORITHM_TYPE                     117\n# define RSA_R_UNKNOWN_DIGEST                             166\n# define RSA_R_UNKNOWN_MASK_DIGEST                        151\n# define RSA_R_UNKNOWN_PADDING_TYPE                       118\n# define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE                162\n# define RSA_R_UNSUPPORTED_LABEL_SOURCE                   163\n# define RSA_R_UNSUPPORTED_MASK_ALGORITHM                 153\n# define RSA_R_UNSUPPORTED_MASK_PARAMETER                 154\n# define RSA_R_UNSUPPORTED_SIGNATURE_TYPE                 155\n# define RSA_R_VALUE_MISSING                              147\n# define RSA_R_WRONG_SIGNATURE_LENGTH                     119\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/safestack.h",
    "content": "/*\n * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SAFESTACK_H\n# define HEADER_SAFESTACK_H\n\n# include <openssl/stack.h>\n# include <openssl/e_os2.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define STACK_OF(type) struct stack_st_##type\n\n# define SKM_DEFINE_STACK_OF(t1, t2, t3) \\\n    STACK_OF(t1); \\\n    typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \\\n    typedef void (*sk_##t1##_freefunc)(t3 *a); \\\n    typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \\\n    static ossl_unused ossl_inline int sk_##t1##_num(const STACK_OF(t1) *sk) \\\n    { \\\n        return OPENSSL_sk_num((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \\\n    { \\\n        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new(sk_##t1##_compfunc compare) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \\\n    { \\\n        return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_free((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_zero(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_zero((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_delete(STACK_OF(t1) *sk, int i) \\\n    { \\\n        return (t2 *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_delete_ptr(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return (t2 *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, \\\n                                           (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_push(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_unshift(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_pop(STACK_OF(t1) *sk) \\\n    { \\\n        return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_shift(STACK_OF(t1) *sk) \\\n    { \\\n        return (t2 *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_pop_free(STACK_OF(t1) *sk, sk_##t1##_freefunc freefunc) \\\n    { \\\n        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_insert(STACK_OF(t1) *sk, t2 *ptr, int idx) \\\n    { \\\n        return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_set(STACK_OF(t1) *sk, int idx, t2 *ptr) \\\n    { \\\n        return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_find(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_find_ex(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_sort(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_sort((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_is_sorted(const STACK_OF(t1) *sk) \\\n    { \\\n        return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) * sk_##t1##_dup(const STACK_OF(t1) *sk) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_deep_copy(const STACK_OF(t1) *sk, \\\n                                                    sk_##t1##_copyfunc copyfunc, \\\n                                                    sk_##t1##_freefunc freefunc) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, \\\n                                            (OPENSSL_sk_copyfunc)copyfunc, \\\n                                            (OPENSSL_sk_freefunc)freefunc); \\\n    } \\\n    static ossl_unused ossl_inline sk_##t1##_compfunc sk_##t1##_set_cmp_func(STACK_OF(t1) *sk, sk_##t1##_compfunc compare) \\\n    { \\\n        return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); \\\n    }\n\n# define DEFINE_SPECIAL_STACK_OF(t1, t2) SKM_DEFINE_STACK_OF(t1, t2, t2)\n# define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t)\n# define DEFINE_SPECIAL_STACK_OF_CONST(t1, t2) \\\n            SKM_DEFINE_STACK_OF(t1, const t2, t2)\n# define DEFINE_STACK_OF_CONST(t) SKM_DEFINE_STACK_OF(t, const t, t)\n\n/*-\n * Strings are special: normally an lhash entry will point to a single\n * (somewhat) mutable object. In the case of strings:\n *\n * a) Instead of a single char, there is an array of chars, NUL-terminated.\n * b) The string may have be immutable.\n *\n * So, they need their own declarations. Especially important for\n * type-checking tools, such as Deputy.\n *\n * In practice, however, it appears to be hard to have a const\n * string. For now, I'm settling for dealing with the fact it is a\n * string at all.\n */\ntypedef char *OPENSSL_STRING;\ntypedef const char *OPENSSL_CSTRING;\n\n/*-\n * Confusingly, LHASH_OF(STRING) deals with char ** throughout, but\n * STACK_OF(STRING) is really more like STACK_OF(char), only, as mentioned\n * above, instead of a single char each entry is a NUL-terminated array of\n * chars. So, we have to implement STRING specially for STACK_OF. This is\n * dealt with in the autogenerated macros below.\n */\nDEFINE_SPECIAL_STACK_OF(OPENSSL_STRING, char)\nDEFINE_SPECIAL_STACK_OF_CONST(OPENSSL_CSTRING, char)\n\n/*\n * Similarly, we sometimes use a block of characters, NOT nul-terminated.\n * These should also be distinguished from \"normal\" stacks.\n */\ntypedef void *OPENSSL_BLOCK;\nDEFINE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)\n\n/*\n * If called without higher optimization (min. -xO3) the Oracle Developer\n * Studio compiler generates code for the defined (static inline) functions\n * above.\n * This would later lead to the linker complaining about missing symbols when\n * this header file is included but the resulting object is not linked against\n * the Crypto library (openssl#6912).\n */\n# ifdef __SUNPRO_C\n#  pragma weak OPENSSL_sk_num\n#  pragma weak OPENSSL_sk_value\n#  pragma weak OPENSSL_sk_new\n#  pragma weak OPENSSL_sk_new_null\n#  pragma weak OPENSSL_sk_new_reserve\n#  pragma weak OPENSSL_sk_reserve\n#  pragma weak OPENSSL_sk_free\n#  pragma weak OPENSSL_sk_zero\n#  pragma weak OPENSSL_sk_delete\n#  pragma weak OPENSSL_sk_delete_ptr\n#  pragma weak OPENSSL_sk_push\n#  pragma weak OPENSSL_sk_unshift\n#  pragma weak OPENSSL_sk_pop\n#  pragma weak OPENSSL_sk_shift\n#  pragma weak OPENSSL_sk_pop_free\n#  pragma weak OPENSSL_sk_insert\n#  pragma weak OPENSSL_sk_set\n#  pragma weak OPENSSL_sk_find\n#  pragma weak OPENSSL_sk_find_ex\n#  pragma weak OPENSSL_sk_sort\n#  pragma weak OPENSSL_sk_is_sorted\n#  pragma weak OPENSSL_sk_dup\n#  pragma weak OPENSSL_sk_deep_copy\n#  pragma weak OPENSSL_sk_set_cmp_func\n# endif /* __SUNPRO_C */\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/seed.h",
    "content": "/*\n * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Neither the name of author nor the names of its contributors may\n *    be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#ifndef HEADER_SEED_H\n# define HEADER_SEED_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_SEED\n# include <openssl/e_os2.h>\n# include <openssl/crypto.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* look whether we need 'long' to get 32 bits */\n# ifdef AES_LONG\n#  ifndef SEED_LONG\n#   define SEED_LONG 1\n#  endif\n# endif\n\n# include <sys/types.h>\n\n# define SEED_BLOCK_SIZE 16\n# define SEED_KEY_LENGTH 16\n\ntypedef struct seed_key_st {\n# ifdef SEED_LONG\n    unsigned long data[32];\n# else\n    unsigned int data[32];\n# endif\n} SEED_KEY_SCHEDULE;\n\nvoid SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH],\n                  SEED_KEY_SCHEDULE *ks);\n\nvoid SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE],\n                  unsigned char d[SEED_BLOCK_SIZE],\n                  const SEED_KEY_SCHEDULE *ks);\nvoid SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE],\n                  unsigned char d[SEED_BLOCK_SIZE],\n                  const SEED_KEY_SCHEDULE *ks);\n\nvoid SEED_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      const SEED_KEY_SCHEDULE *ks, int enc);\nvoid SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len,\n                      const SEED_KEY_SCHEDULE *ks,\n                      unsigned char ivec[SEED_BLOCK_SIZE], int enc);\nvoid SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                         size_t len, const SEED_KEY_SCHEDULE *ks,\n                         unsigned char ivec[SEED_BLOCK_SIZE], int *num,\n                         int enc);\nvoid SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                         size_t len, const SEED_KEY_SCHEDULE *ks,\n                         unsigned char ivec[SEED_BLOCK_SIZE], int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/sha.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SHA_H\n# define HEADER_SHA_H\n\n# include <openssl/e_os2.h>\n# include <stddef.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! SHA_LONG has to be at least 32 bits wide.                    !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define SHA_LONG unsigned int\n\n# define SHA_LBLOCK      16\n# define SHA_CBLOCK      (SHA_LBLOCK*4)/* SHA treats input data as a\n                                        * contiguous array of 32 bit wide\n                                        * big-endian values. */\n# define SHA_LAST_BLOCK  (SHA_CBLOCK-8)\n# define SHA_DIGEST_LENGTH 20\n\ntypedef struct SHAstate_st {\n    SHA_LONG h0, h1, h2, h3, h4;\n    SHA_LONG Nl, Nh;\n    SHA_LONG data[SHA_LBLOCK];\n    unsigned int num;\n} SHA_CTX;\n\nint SHA1_Init(SHA_CTX *c);\nint SHA1_Update(SHA_CTX *c, const void *data, size_t len);\nint SHA1_Final(unsigned char *md, SHA_CTX *c);\nunsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA1_Transform(SHA_CTX *c, const unsigned char *data);\n\n# define SHA256_CBLOCK   (SHA_LBLOCK*4)/* SHA-256 treats input data as a\n                                        * contiguous array of 32 bit wide\n                                        * big-endian values. */\n\ntypedef struct SHA256state_st {\n    SHA_LONG h[8];\n    SHA_LONG Nl, Nh;\n    SHA_LONG data[SHA_LBLOCK];\n    unsigned int num, md_len;\n} SHA256_CTX;\n\nint SHA224_Init(SHA256_CTX *c);\nint SHA224_Update(SHA256_CTX *c, const void *data, size_t len);\nint SHA224_Final(unsigned char *md, SHA256_CTX *c);\nunsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md);\nint SHA256_Init(SHA256_CTX *c);\nint SHA256_Update(SHA256_CTX *c, const void *data, size_t len);\nint SHA256_Final(unsigned char *md, SHA256_CTX *c);\nunsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA256_Transform(SHA256_CTX *c, const unsigned char *data);\n\n# define SHA224_DIGEST_LENGTH    28\n# define SHA256_DIGEST_LENGTH    32\n# define SHA384_DIGEST_LENGTH    48\n# define SHA512_DIGEST_LENGTH    64\n\n/*\n * Unlike 32-bit digest algorithms, SHA-512 *relies* on SHA_LONG64\n * being exactly 64-bit wide. See Implementation Notes in sha512.c\n * for further details.\n */\n/*\n * SHA-512 treats input data as a\n * contiguous array of 64 bit\n * wide big-endian values.\n */\n# define SHA512_CBLOCK   (SHA_LBLOCK*8)\n# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)\n#  define SHA_LONG64 unsigned __int64\n#  define U64(C)     C##UI64\n# elif defined(__arch64__)\n#  define SHA_LONG64 unsigned long\n#  define U64(C)     C##UL\n# else\n#  define SHA_LONG64 unsigned long long\n#  define U64(C)     C##ULL\n# endif\n\ntypedef struct SHA512state_st {\n    SHA_LONG64 h[8];\n    SHA_LONG64 Nl, Nh;\n    union {\n        SHA_LONG64 d[SHA_LBLOCK];\n        unsigned char p[SHA512_CBLOCK];\n    } u;\n    unsigned int num, md_len;\n} SHA512_CTX;\n\nint SHA384_Init(SHA512_CTX *c);\nint SHA384_Update(SHA512_CTX *c, const void *data, size_t len);\nint SHA384_Final(unsigned char *md, SHA512_CTX *c);\nunsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md);\nint SHA512_Init(SHA512_CTX *c);\nint SHA512_Update(SHA512_CTX *c, const void *data, size_t len);\nint SHA512_Final(unsigned char *md, SHA512_CTX *c);\nunsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA512_Transform(SHA512_CTX *c, const unsigned char *data);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/srp.h",
    "content": "/*\n * Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2004, EdelKey Project. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n *\n * Originally written by Christophe Renou and Peter Sylvester,\n * for the EdelKey project.\n */\n\n#ifndef HEADER_SRP_H\n# define HEADER_SRP_H\n\n#include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_SRP\n# include <stdio.h>\n# include <string.h>\n# include <openssl/safestack.h>\n# include <openssl/bn.h>\n# include <openssl/crypto.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct SRP_gN_cache_st {\n    char *b64_bn;\n    BIGNUM *bn;\n} SRP_gN_cache;\n\n\nDEFINE_STACK_OF(SRP_gN_cache)\n\ntypedef struct SRP_user_pwd_st {\n    /* Owned by us. */\n    char *id;\n    BIGNUM *s;\n    BIGNUM *v;\n    /* Not owned by us. */\n    const BIGNUM *g;\n    const BIGNUM *N;\n    /* Owned by us. */\n    char *info;\n} SRP_user_pwd;\n\nvoid SRP_user_pwd_free(SRP_user_pwd *user_pwd);\n\nDEFINE_STACK_OF(SRP_user_pwd)\n\ntypedef struct SRP_VBASE_st {\n    STACK_OF(SRP_user_pwd) *users_pwd;\n    STACK_OF(SRP_gN_cache) *gN_cache;\n/* to simulate a user */\n    char *seed_key;\n    const BIGNUM *default_g;\n    const BIGNUM *default_N;\n} SRP_VBASE;\n\n/*\n * Internal structure storing N and g pair\n */\ntypedef struct SRP_gN_st {\n    char *id;\n    const BIGNUM *g;\n    const BIGNUM *N;\n} SRP_gN;\n\nDEFINE_STACK_OF(SRP_gN)\n\nSRP_VBASE *SRP_VBASE_new(char *seed_key);\nvoid SRP_VBASE_free(SRP_VBASE *vb);\nint SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file);\n\n/* This method ignores the configured seed and fails for an unknown user. */\nDEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username))\n/* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/\nSRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username);\n\nchar *SRP_create_verifier(const char *user, const char *pass, char **salt,\n                          char **verifier, const char *N, const char *g);\nint SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt,\n                           BIGNUM **verifier, const BIGNUM *N,\n                           const BIGNUM *g);\n\n# define SRP_NO_ERROR 0\n# define SRP_ERR_VBASE_INCOMPLETE_FILE 1\n# define SRP_ERR_VBASE_BN_LIB 2\n# define SRP_ERR_OPEN_FILE 3\n# define SRP_ERR_MEMORY 4\n\n# define DB_srptype      0\n# define DB_srpverifier  1\n# define DB_srpsalt      2\n# define DB_srpid        3\n# define DB_srpgN        4\n# define DB_srpinfo      5\n# undef  DB_NUMBER\n# define DB_NUMBER       6\n\n# define DB_SRP_INDEX    'I'\n# define DB_SRP_VALID    'V'\n# define DB_SRP_REVOKED  'R'\n# define DB_SRP_MODIF    'v'\n\n/* see srp.c */\nchar *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N);\nSRP_gN *SRP_get_default_gN(const char *id);\n\n/* server side .... */\nBIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,\n                            const BIGNUM *b, const BIGNUM *N);\nBIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,\n                   const BIGNUM *v);\nint SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N);\nBIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);\n\n/* client side .... */\nBIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass);\nBIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g);\nBIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,\n                            const BIGNUM *x, const BIGNUM *a, const BIGNUM *u);\nint SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N);\n\n# define SRP_MINIMAL_N 1024\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/srtp.h",
    "content": "/*\n * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * DTLS code by Eric Rescorla <ekr@rtfm.com>\n *\n * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc.\n */\n\n#ifndef HEADER_D1_SRTP_H\n# define HEADER_D1_SRTP_H\n\n# include <openssl/ssl.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SRTP_AES128_CM_SHA1_80 0x0001\n# define SRTP_AES128_CM_SHA1_32 0x0002\n# define SRTP_AES128_F8_SHA1_80 0x0003\n# define SRTP_AES128_F8_SHA1_32 0x0004\n# define SRTP_NULL_SHA1_80      0x0005\n# define SRTP_NULL_SHA1_32      0x0006\n\n/* AEAD SRTP protection profiles from RFC 7714 */\n# define SRTP_AEAD_AES_128_GCM  0x0007\n# define SRTP_AEAD_AES_256_GCM  0x0008\n\n# ifndef OPENSSL_NO_SRTP\n\n__owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);\n__owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles);\n\n__owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);\n__owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);\n\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ssl.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n * Copyright 2005 Nokia. All rights reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL_H\n# define HEADER_SSL_H\n\n# include <openssl/e_os2.h>\n# include <openssl/opensslconf.h>\n# include <openssl/comp.h>\n# include <openssl/bio.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/x509.h>\n#  include <openssl/crypto.h>\n#  include <openssl/buffer.h>\n# endif\n# include <openssl/lhash.h>\n# include <openssl/pem.h>\n# include <openssl/hmac.h>\n# include <openssl/async.h>\n\n# include <openssl/safestack.h>\n# include <openssl/symhacks.h>\n# include <openssl/ct.h>\n# include <openssl/sslerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* OpenSSL version number for ASN.1 encoding of the session information */\n/*-\n * Version 0 - initial version\n * Version 1 - added the optional peer certificate\n */\n# define SSL_SESSION_ASN1_VERSION 0x0001\n\n# define SSL_MAX_SSL_SESSION_ID_LENGTH           32\n# define SSL_MAX_SID_CTX_LENGTH                  32\n\n# define SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES     (512/8)\n# define SSL_MAX_KEY_ARG_LENGTH                  8\n# define SSL_MAX_MASTER_KEY_LENGTH               48\n\n/* The maximum number of encrypt/decrypt pipelines we can support */\n# define SSL_MAX_PIPELINES  32\n\n/* text strings for the ciphers */\n\n/* These are used to specify which ciphers to use and not to use */\n\n# define SSL_TXT_LOW             \"LOW\"\n# define SSL_TXT_MEDIUM          \"MEDIUM\"\n# define SSL_TXT_HIGH            \"HIGH\"\n# define SSL_TXT_FIPS            \"FIPS\"\n\n# define SSL_TXT_aNULL           \"aNULL\"\n# define SSL_TXT_eNULL           \"eNULL\"\n# define SSL_TXT_NULL            \"NULL\"\n\n# define SSL_TXT_kRSA            \"kRSA\"\n# define SSL_TXT_kDHr            \"kDHr\"/* this cipher class has been removed */\n# define SSL_TXT_kDHd            \"kDHd\"/* this cipher class has been removed */\n# define SSL_TXT_kDH             \"kDH\"/* this cipher class has been removed */\n# define SSL_TXT_kEDH            \"kEDH\"/* alias for kDHE */\n# define SSL_TXT_kDHE            \"kDHE\"\n# define SSL_TXT_kECDHr          \"kECDHr\"/* this cipher class has been removed */\n# define SSL_TXT_kECDHe          \"kECDHe\"/* this cipher class has been removed */\n# define SSL_TXT_kECDH           \"kECDH\"/* this cipher class has been removed */\n# define SSL_TXT_kEECDH          \"kEECDH\"/* alias for kECDHE */\n# define SSL_TXT_kECDHE          \"kECDHE\"\n# define SSL_TXT_kPSK            \"kPSK\"\n# define SSL_TXT_kRSAPSK         \"kRSAPSK\"\n# define SSL_TXT_kECDHEPSK       \"kECDHEPSK\"\n# define SSL_TXT_kDHEPSK         \"kDHEPSK\"\n# define SSL_TXT_kGOST           \"kGOST\"\n# define SSL_TXT_kSRP            \"kSRP\"\n\n# define SSL_TXT_aRSA            \"aRSA\"\n# define SSL_TXT_aDSS            \"aDSS\"\n# define SSL_TXT_aDH             \"aDH\"/* this cipher class has been removed */\n# define SSL_TXT_aECDH           \"aECDH\"/* this cipher class has been removed */\n# define SSL_TXT_aECDSA          \"aECDSA\"\n# define SSL_TXT_aPSK            \"aPSK\"\n# define SSL_TXT_aGOST94         \"aGOST94\"\n# define SSL_TXT_aGOST01         \"aGOST01\"\n# define SSL_TXT_aGOST12         \"aGOST12\"\n# define SSL_TXT_aGOST           \"aGOST\"\n# define SSL_TXT_aSRP            \"aSRP\"\n\n# define SSL_TXT_DSS             \"DSS\"\n# define SSL_TXT_DH              \"DH\"\n# define SSL_TXT_DHE             \"DHE\"/* same as \"kDHE:-ADH\" */\n# define SSL_TXT_EDH             \"EDH\"/* alias for DHE */\n# define SSL_TXT_ADH             \"ADH\"\n# define SSL_TXT_RSA             \"RSA\"\n# define SSL_TXT_ECDH            \"ECDH\"\n# define SSL_TXT_EECDH           \"EECDH\"/* alias for ECDHE\" */\n# define SSL_TXT_ECDHE           \"ECDHE\"/* same as \"kECDHE:-AECDH\" */\n# define SSL_TXT_AECDH           \"AECDH\"\n# define SSL_TXT_ECDSA           \"ECDSA\"\n# define SSL_TXT_PSK             \"PSK\"\n# define SSL_TXT_SRP             \"SRP\"\n\n# define SSL_TXT_DES             \"DES\"\n# define SSL_TXT_3DES            \"3DES\"\n# define SSL_TXT_RC4             \"RC4\"\n# define SSL_TXT_RC2             \"RC2\"\n# define SSL_TXT_IDEA            \"IDEA\"\n# define SSL_TXT_SEED            \"SEED\"\n# define SSL_TXT_AES128          \"AES128\"\n# define SSL_TXT_AES256          \"AES256\"\n# define SSL_TXT_AES             \"AES\"\n# define SSL_TXT_AES_GCM         \"AESGCM\"\n# define SSL_TXT_AES_CCM         \"AESCCM\"\n# define SSL_TXT_AES_CCM_8       \"AESCCM8\"\n# define SSL_TXT_CAMELLIA128     \"CAMELLIA128\"\n# define SSL_TXT_CAMELLIA256     \"CAMELLIA256\"\n# define SSL_TXT_CAMELLIA        \"CAMELLIA\"\n# define SSL_TXT_CHACHA20        \"CHACHA20\"\n# define SSL_TXT_GOST            \"GOST89\"\n# define SSL_TXT_ARIA            \"ARIA\"\n# define SSL_TXT_ARIA_GCM        \"ARIAGCM\"\n# define SSL_TXT_ARIA128         \"ARIA128\"\n# define SSL_TXT_ARIA256         \"ARIA256\"\n\n# define SSL_TXT_MD5             \"MD5\"\n# define SSL_TXT_SHA1            \"SHA1\"\n# define SSL_TXT_SHA             \"SHA\"/* same as \"SHA1\" */\n# define SSL_TXT_GOST94          \"GOST94\"\n# define SSL_TXT_GOST89MAC       \"GOST89MAC\"\n# define SSL_TXT_GOST12          \"GOST12\"\n# define SSL_TXT_GOST89MAC12     \"GOST89MAC12\"\n# define SSL_TXT_SHA256          \"SHA256\"\n# define SSL_TXT_SHA384          \"SHA384\"\n\n# define SSL_TXT_SSLV3           \"SSLv3\"\n# define SSL_TXT_TLSV1           \"TLSv1\"\n# define SSL_TXT_TLSV1_1         \"TLSv1.1\"\n# define SSL_TXT_TLSV1_2         \"TLSv1.2\"\n\n# define SSL_TXT_ALL             \"ALL\"\n\n/*-\n * COMPLEMENTOF* definitions. These identifiers are used to (de-select)\n * ciphers normally not being used.\n * Example: \"RC4\" will activate all ciphers using RC4 including ciphers\n * without authentication, which would normally disabled by DEFAULT (due\n * the \"!ADH\" being part of default). Therefore \"RC4:!COMPLEMENTOFDEFAULT\"\n * will make sure that it is also disabled in the specific selection.\n * COMPLEMENTOF* identifiers are portable between version, as adjustments\n * to the default cipher setup will also be included here.\n *\n * COMPLEMENTOFDEFAULT does not experience the same special treatment that\n * DEFAULT gets, as only selection is being done and no sorting as needed\n * for DEFAULT.\n */\n# define SSL_TXT_CMPALL          \"COMPLEMENTOFALL\"\n# define SSL_TXT_CMPDEF          \"COMPLEMENTOFDEFAULT\"\n\n/*\n * The following cipher list is used by default. It also is substituted when\n * an application-defined cipher list string starts with 'DEFAULT'.\n * This applies to ciphersuites for TLSv1.2 and below.\n */\n# define SSL_DEFAULT_CIPHER_LIST \"ALL:!COMPLEMENTOFDEFAULT:!eNULL\"\n/* This is the default set of TLSv1.3 ciphersuites */\n# if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305)\n#  define TLS_DEFAULT_CIPHERSUITES \"TLS_AES_256_GCM_SHA384:\" \\\n                                   \"TLS_CHACHA20_POLY1305_SHA256:\" \\\n                                   \"TLS_AES_128_GCM_SHA256\"\n# else\n#  define TLS_DEFAULT_CIPHERSUITES \"TLS_AES_256_GCM_SHA384:\" \\\n                                   \"TLS_AES_128_GCM_SHA256\"\n#endif\n/*\n * As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always\n * starts with a reasonable order, and all we have to do for DEFAULT is\n * throwing out anonymous and unencrypted ciphersuites! (The latter are not\n * actually enabled by ALL, but \"ALL:RSA\" would enable some of them.)\n */\n\n/* Used in SSL_set_shutdown()/SSL_get_shutdown(); */\n# define SSL_SENT_SHUTDOWN       1\n# define SSL_RECEIVED_SHUTDOWN   2\n\n#ifdef __cplusplus\n}\n#endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SSL_FILETYPE_ASN1       X509_FILETYPE_ASN1\n# define SSL_FILETYPE_PEM        X509_FILETYPE_PEM\n\n/*\n * This is needed to stop compilers complaining about the 'struct ssl_st *'\n * function parameters used to prototype callbacks in SSL_CTX.\n */\ntypedef struct ssl_st *ssl_crock_st;\ntypedef struct tls_session_ticket_ext_st TLS_SESSION_TICKET_EXT;\ntypedef struct ssl_method_st SSL_METHOD;\ntypedef struct ssl_cipher_st SSL_CIPHER;\ntypedef struct ssl_session_st SSL_SESSION;\ntypedef struct tls_sigalgs_st TLS_SIGALGS;\ntypedef struct ssl_conf_ctx_st SSL_CONF_CTX;\ntypedef struct ssl_comp_st SSL_COMP;\n\nSTACK_OF(SSL_CIPHER);\nSTACK_OF(SSL_COMP);\n\n/* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*/\ntypedef struct srtp_protection_profile_st {\n    const char *name;\n    unsigned long id;\n} SRTP_PROTECTION_PROFILE;\n\nDEFINE_STACK_OF(SRTP_PROTECTION_PROFILE)\n\ntypedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,\n                                            int len, void *arg);\ntypedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len,\n                                        STACK_OF(SSL_CIPHER) *peer_ciphers,\n                                        const SSL_CIPHER **cipher, void *arg);\n\n/* Extension context codes */\n/* This extension is only allowed in TLS */\n#define SSL_EXT_TLS_ONLY                        0x0001\n/* This extension is only allowed in DTLS */\n#define SSL_EXT_DTLS_ONLY                       0x0002\n/* Some extensions may be allowed in DTLS but we don't implement them for it */\n#define SSL_EXT_TLS_IMPLEMENTATION_ONLY         0x0004\n/* Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is */\n#define SSL_EXT_SSL3_ALLOWED                    0x0008\n/* Extension is only defined for TLS1.2 and below */\n#define SSL_EXT_TLS1_2_AND_BELOW_ONLY           0x0010\n/* Extension is only defined for TLS1.3 and above */\n#define SSL_EXT_TLS1_3_ONLY                     0x0020\n/* Ignore this extension during parsing if we are resuming */\n#define SSL_EXT_IGNORE_ON_RESUMPTION            0x0040\n#define SSL_EXT_CLIENT_HELLO                    0x0080\n/* Really means TLS1.2 or below */\n#define SSL_EXT_TLS1_2_SERVER_HELLO             0x0100\n#define SSL_EXT_TLS1_3_SERVER_HELLO             0x0200\n#define SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS     0x0400\n#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST      0x0800\n#define SSL_EXT_TLS1_3_CERTIFICATE              0x1000\n#define SSL_EXT_TLS1_3_NEW_SESSION_TICKET       0x2000\n#define SSL_EXT_TLS1_3_CERTIFICATE_REQUEST      0x4000\n\n/* Typedefs for handling custom extensions */\n\ntypedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type,\n                                 const unsigned char **out, size_t *outlen,\n                                 int *al, void *add_arg);\n\ntypedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type,\n                                   const unsigned char *out, void *add_arg);\n\ntypedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type,\n                                   const unsigned char *in, size_t inlen,\n                                   int *al, void *parse_arg);\n\n\ntypedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type,\n                                        unsigned int context,\n                                        const unsigned char **out,\n                                        size_t *outlen, X509 *x,\n                                        size_t chainidx,\n                                        int *al, void *add_arg);\n\ntypedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type,\n                                          unsigned int context,\n                                          const unsigned char *out,\n                                          void *add_arg);\n\ntypedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type,\n                                          unsigned int context,\n                                          const unsigned char *in,\n                                          size_t inlen, X509 *x,\n                                          size_t chainidx,\n                                          int *al, void *parse_arg);\n\n/* Typedef for verification callback */\ntypedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);\n\n/*\n * Some values are reserved until OpenSSL 1.2.0 because they were previously\n * included in SSL_OP_ALL in a 1.1.x release.\n *\n * Reserved value (until OpenSSL 1.2.0)                  0x00000001U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000002U\n */\n/* Allow initial connection to servers that don't support RI */\n# define SSL_OP_LEGACY_SERVER_CONNECT                    0x00000004U\n\n/* Reserved value (until OpenSSL 1.2.0)                  0x00000008U */\n# define SSL_OP_TLSEXT_PADDING                           0x00000010U\n/* Reserved value (until OpenSSL 1.2.0)                  0x00000020U */\n# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG                   0x00000040U\n/*\n * Reserved value (until OpenSSL 1.2.0)                  0x00000080U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000100U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000200U\n */\n\n/* In TLSv1.3 allow a non-(ec)dhe based kex_mode */\n# define SSL_OP_ALLOW_NO_DHE_KEX                         0x00000400U\n\n/*\n * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in\n * OpenSSL 0.9.6d.  Usually (depending on the application protocol) the\n * workaround is not needed.  Unfortunately some broken SSL/TLS\n * implementations cannot handle it at all, which is why we include it in\n * SSL_OP_ALL. Added in 0.9.6e\n */\n# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS              0x00000800U\n\n/* DTLS options */\n# define SSL_OP_NO_QUERY_MTU                             0x00001000U\n/* Turn on Cookie Exchange (on relevant for servers) */\n# define SSL_OP_COOKIE_EXCHANGE                          0x00002000U\n/* Don't use RFC4507 ticket extension */\n# define SSL_OP_NO_TICKET                                0x00004000U\n# ifndef OPENSSL_NO_DTLS1_METHOD\n/* Use Cisco's \"speshul\" version of DTLS_BAD_VER\n * (only with deprecated DTLSv1_client_method())  */\n#  define SSL_OP_CISCO_ANYCONNECT                        0x00008000U\n# endif\n\n/* As server, disallow session resumption on renegotiation */\n# define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   0x00010000U\n/* Don't use compression even if supported */\n# define SSL_OP_NO_COMPRESSION                           0x00020000U\n/* Permit unsafe legacy renegotiation */\n# define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        0x00040000U\n/* Disable encrypt-then-mac */\n# define SSL_OP_NO_ENCRYPT_THEN_MAC                      0x00080000U\n\n/*\n * Enable TLSv1.3 Compatibility mode. This is on by default. A future version\n * of OpenSSL may have this disabled by default.\n */\n# define SSL_OP_ENABLE_MIDDLEBOX_COMPAT                  0x00100000U\n\n/* Prioritize Chacha20Poly1305 when client does.\n * Modifies SSL_OP_CIPHER_SERVER_PREFERENCE */\n# define SSL_OP_PRIORITIZE_CHACHA                        0x00200000U\n\n/*\n * Set on servers to choose the cipher according to the server's preferences\n */\n# define SSL_OP_CIPHER_SERVER_PREFERENCE                 0x00400000U\n/*\n * If set, a server will allow a client to issue a SSLv3.0 version number as\n * latest version supported in the premaster secret, even when TLSv1.0\n * (version 3.1) was announced in the client hello. Normally this is\n * forbidden to prevent version rollback attacks.\n */\n# define SSL_OP_TLS_ROLLBACK_BUG                         0x00800000U\n\n/*\n * Switches off automatic TLSv1.3 anti-replay protection for early data. This\n * is a server-side option only (no effect on the client).\n */\n# define SSL_OP_NO_ANTI_REPLAY                           0x01000000U\n\n# define SSL_OP_NO_SSLv3                                 0x02000000U\n# define SSL_OP_NO_TLSv1                                 0x04000000U\n# define SSL_OP_NO_TLSv1_2                               0x08000000U\n# define SSL_OP_NO_TLSv1_1                               0x10000000U\n# define SSL_OP_NO_TLSv1_3                               0x20000000U\n\n# define SSL_OP_NO_DTLSv1                                0x04000000U\n# define SSL_OP_NO_DTLSv1_2                              0x08000000U\n\n# define SSL_OP_NO_SSL_MASK (SSL_OP_NO_SSLv3|\\\n        SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1_2|SSL_OP_NO_TLSv1_3)\n# define SSL_OP_NO_DTLS_MASK (SSL_OP_NO_DTLSv1|SSL_OP_NO_DTLSv1_2)\n\n/* Disallow all renegotiation */\n# define SSL_OP_NO_RENEGOTIATION                         0x40000000U\n\n/*\n * Make server add server-hello extension from early version of cryptopro\n * draft, when GOST ciphersuite is negotiated. Required for interoperability\n * with CryptoPro CSP 3.x\n */\n# define SSL_OP_CRYPTOPRO_TLSEXT_BUG                     0x80000000U\n\n/*\n * SSL_OP_ALL: various bug workarounds that should be rather harmless.\n * This used to be 0x000FFFFFL before 0.9.7.\n * This used to be 0x80000BFFU before 1.1.1.\n */\n# define SSL_OP_ALL        (SSL_OP_CRYPTOPRO_TLSEXT_BUG|\\\n                            SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS|\\\n                            SSL_OP_LEGACY_SERVER_CONNECT|\\\n                            SSL_OP_TLSEXT_PADDING|\\\n                            SSL_OP_SAFARI_ECDHE_ECDSA_BUG)\n\n/* OBSOLETE OPTIONS: retained for compatibility */\n\n/* Removed from OpenSSL 1.1.0. Was 0x00000001L */\n/* Related to removed SSLv2. */\n# define SSL_OP_MICROSOFT_SESS_ID_BUG                    0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000002L */\n/* Related to removed SSLv2. */\n# define SSL_OP_NETSCAPE_CHALLENGE_BUG                   0x0\n/* Removed from OpenSSL 0.9.8q and 1.0.0c. Was 0x00000008L */\n/* Dead forever, see CVE-2010-4180 */\n# define SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG         0x0\n/* Removed from OpenSSL 1.0.1h and 1.0.2. Was 0x00000010L */\n/* Refers to ancient SSLREF and SSLv2. */\n# define SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG              0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000020 */\n# define SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER               0x0\n/* Removed from OpenSSL 0.9.7h and 0.9.8b. Was 0x00000040L */\n# define SSL_OP_MSIE_SSLV2_RSA_PADDING                   0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000080 */\n/* Ancient SSLeay version. */\n# define SSL_OP_SSLEAY_080_CLIENT_DH_BUG                 0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000100L */\n# define SSL_OP_TLS_D5_BUG                               0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000200L */\n# define SSL_OP_TLS_BLOCK_PADDING_BUG                    0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00080000L */\n# define SSL_OP_SINGLE_ECDH_USE                          0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00100000L */\n# define SSL_OP_SINGLE_DH_USE                            0x0\n/* Removed from OpenSSL 1.0.1k and 1.0.2. Was 0x00200000L */\n# define SSL_OP_EPHEMERAL_RSA                            0x0\n/* Removed from OpenSSL 1.1.0. Was 0x01000000L */\n# define SSL_OP_NO_SSLv2                                 0x0\n/* Removed from OpenSSL 1.0.1. Was 0x08000000L */\n# define SSL_OP_PKCS1_CHECK_1                            0x0\n/* Removed from OpenSSL 1.0.1. Was 0x10000000L */\n# define SSL_OP_PKCS1_CHECK_2                            0x0\n/* Removed from OpenSSL 1.1.0. Was 0x20000000L */\n# define SSL_OP_NETSCAPE_CA_DN_BUG                       0x0\n/* Removed from OpenSSL 1.1.0. Was 0x40000000L */\n# define SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG          0x0\n\n/*\n * Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success\n * when just a single record has been written):\n */\n# define SSL_MODE_ENABLE_PARTIAL_WRITE       0x00000001U\n/*\n * Make it possible to retry SSL_write() with changed buffer location (buffer\n * contents must stay the same!); this is not the default to avoid the\n * misconception that non-blocking SSL_write() behaves like non-blocking\n * write():\n */\n# define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER 0x00000002U\n/*\n * Never bother the application with retries if the transport is blocking:\n */\n# define SSL_MODE_AUTO_RETRY 0x00000004U\n/* Don't attempt to automatically build certificate chain */\n# define SSL_MODE_NO_AUTO_CHAIN 0x00000008U\n/*\n * Save RAM by releasing read and write buffers when they're empty. (SSL3 and\n * TLS only.) Released buffers are freed.\n */\n# define SSL_MODE_RELEASE_BUFFERS 0x00000010U\n/*\n * Send the current time in the Random fields of the ClientHello and\n * ServerHello records for compatibility with hypothetical implementations\n * that require it.\n */\n# define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020U\n# define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040U\n/*\n * Send TLS_FALLBACK_SCSV in the ClientHello. To be set only by applications\n * that reconnect with a downgraded protocol version; see\n * draft-ietf-tls-downgrade-scsv-00 for details. DO NOT ENABLE THIS if your\n * application attempts a normal handshake. Only use this in explicit\n * fallback retries, following the guidance in\n * draft-ietf-tls-downgrade-scsv-00.\n */\n# define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U\n/*\n * Support Asynchronous operation\n */\n# define SSL_MODE_ASYNC 0x00000100U\n\n/*\n * When using DTLS/SCTP, include the terminating zero in the label\n * used for computing the endpoint-pair shared secret. Required for\n * interoperability with implementations having this bug like these\n * older version of OpenSSL:\n * - OpenSSL 1.0.0 series\n * - OpenSSL 1.0.1 series\n * - OpenSSL 1.0.2 series\n * - OpenSSL 1.1.0 series\n * - OpenSSL 1.1.1 and 1.1.1a\n */\n# define SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG 0x00000400U\n\n/* Cert related flags */\n/*\n * Many implementations ignore some aspects of the TLS standards such as\n * enforcing certificate chain algorithms. When this is set we enforce them.\n */\n# define SSL_CERT_FLAG_TLS_STRICT                0x00000001U\n\n/* Suite B modes, takes same values as certificate verify flags */\n# define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY       0x10000\n/* Suite B 192 bit only mode */\n# define SSL_CERT_FLAG_SUITEB_192_LOS            0x20000\n/* Suite B 128 bit mode allowing 192 bit algorithms */\n# define SSL_CERT_FLAG_SUITEB_128_LOS            0x30000\n\n/* Perform all sorts of protocol violations for testing purposes */\n# define SSL_CERT_FLAG_BROKEN_PROTOCOL           0x10000000\n\n/* Flags for building certificate chains */\n/* Treat any existing certificates as untrusted CAs */\n# define SSL_BUILD_CHAIN_FLAG_UNTRUSTED          0x1\n/* Don't include root CA in chain */\n# define SSL_BUILD_CHAIN_FLAG_NO_ROOT            0x2\n/* Just check certificates already there */\n# define SSL_BUILD_CHAIN_FLAG_CHECK              0x4\n/* Ignore verification errors */\n# define SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR       0x8\n/* Clear verification errors from queue */\n# define SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR        0x10\n\n/* Flags returned by SSL_check_chain */\n/* Certificate can be used with this session */\n# define CERT_PKEY_VALID         0x1\n/* Certificate can also be used for signing */\n# define CERT_PKEY_SIGN          0x2\n/* EE certificate signing algorithm OK */\n# define CERT_PKEY_EE_SIGNATURE  0x10\n/* CA signature algorithms OK */\n# define CERT_PKEY_CA_SIGNATURE  0x20\n/* EE certificate parameters OK */\n# define CERT_PKEY_EE_PARAM      0x40\n/* CA certificate parameters OK */\n# define CERT_PKEY_CA_PARAM      0x80\n/* Signing explicitly allowed as opposed to SHA1 fallback */\n# define CERT_PKEY_EXPLICIT_SIGN 0x100\n/* Client CA issuer names match (always set for server cert) */\n# define CERT_PKEY_ISSUER_NAME   0x200\n/* Cert type matches client types (always set for server cert) */\n# define CERT_PKEY_CERT_TYPE     0x400\n/* Cert chain suitable to Suite B */\n# define CERT_PKEY_SUITEB        0x800\n\n# define SSL_CONF_FLAG_CMDLINE           0x1\n# define SSL_CONF_FLAG_FILE              0x2\n# define SSL_CONF_FLAG_CLIENT            0x4\n# define SSL_CONF_FLAG_SERVER            0x8\n# define SSL_CONF_FLAG_SHOW_ERRORS       0x10\n# define SSL_CONF_FLAG_CERTIFICATE       0x20\n# define SSL_CONF_FLAG_REQUIRE_PRIVATE   0x40\n/* Configuration value types */\n# define SSL_CONF_TYPE_UNKNOWN           0x0\n# define SSL_CONF_TYPE_STRING            0x1\n# define SSL_CONF_TYPE_FILE              0x2\n# define SSL_CONF_TYPE_DIR               0x3\n# define SSL_CONF_TYPE_NONE              0x4\n\n/* Maximum length of the application-controlled segment of a a TLSv1.3 cookie */\n# define SSL_COOKIE_LENGTH                       4096\n\n/*\n * Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, they\n * cannot be used to clear bits.\n */\n\nunsigned long SSL_CTX_get_options(const SSL_CTX *ctx);\nunsigned long SSL_get_options(const SSL *s);\nunsigned long SSL_CTX_clear_options(SSL_CTX *ctx, unsigned long op);\nunsigned long SSL_clear_options(SSL *s, unsigned long op);\nunsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);\nunsigned long SSL_set_options(SSL *s, unsigned long op);\n\n# define SSL_CTX_set_mode(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)\n# define SSL_CTX_clear_mode(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL)\n# define SSL_CTX_get_mode(ctx) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL)\n# define SSL_clear_mode(ssl,op) \\\n        SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)\n# define SSL_set_mode(ssl,op) \\\n        SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)\n# define SSL_get_mode(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)\n# define SSL_set_mtu(ssl, mtu) \\\n        SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)\n# define DTLS_set_link_mtu(ssl, mtu) \\\n        SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)\n# define DTLS_get_link_min_mtu(ssl) \\\n        SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL)\n\n# define SSL_get_secure_renegotiation_support(ssl) \\\n        SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)\n\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_heartbeat(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL)\n# endif\n\n# define SSL_CTX_set_cert_flags(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL)\n# define SSL_set_cert_flags(s,op) \\\n        SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL)\n# define SSL_CTX_clear_cert_flags(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)\n# define SSL_clear_cert_flags(s,op) \\\n        SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)\n\nvoid SSL_CTX_set_msg_callback(SSL_CTX *ctx,\n                              void (*cb) (int write_p, int version,\n                                          int content_type, const void *buf,\n                                          size_t len, SSL *ssl, void *arg));\nvoid SSL_set_msg_callback(SSL *ssl,\n                          void (*cb) (int write_p, int version,\n                                      int content_type, const void *buf,\n                                      size_t len, SSL *ssl, void *arg));\n# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))\n# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))\n\n# define SSL_get_extms_support(s) \\\n        SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL)\n\n# ifndef OPENSSL_NO_SRP\n\n/* see tls_srp.c */\n__owur int SSL_SRP_CTX_init(SSL *s);\n__owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);\nint SSL_SRP_CTX_free(SSL *ctx);\nint SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);\n__owur int SSL_srp_server_param_with_username(SSL *s, int *ad);\n__owur int SRP_Calc_A_param(SSL *s);\n\n# endif\n\n/* 100k max cert list */\n# define SSL_MAX_CERT_LIST_DEFAULT 1024*100\n\n# define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT      (1024*20)\n\n/*\n * This callback type is used inside SSL_CTX, SSL, and in the functions that\n * set them. It is used to override the generation of SSL/TLS session IDs in\n * a server. Return value should be zero on an error, non-zero to proceed.\n * Also, callbacks should themselves check if the id they generate is unique\n * otherwise the SSL handshake will fail with an error - callbacks can do\n * this using the 'ssl' value they're passed by;\n * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in\n * is set at the maximum size the session ID can be. In SSLv3/TLSv1 it is 32\n * bytes. The callback can alter this length to be less if desired. It is\n * also an error for the callback to set the size to zero.\n */\ntypedef int (*GEN_SESSION_CB) (SSL *ssl, unsigned char *id,\n                               unsigned int *id_len);\n\n# define SSL_SESS_CACHE_OFF                      0x0000\n# define SSL_SESS_CACHE_CLIENT                   0x0001\n# define SSL_SESS_CACHE_SERVER                   0x0002\n# define SSL_SESS_CACHE_BOTH     (SSL_SESS_CACHE_CLIENT|SSL_SESS_CACHE_SERVER)\n# define SSL_SESS_CACHE_NO_AUTO_CLEAR            0x0080\n/* enough comments already ... see SSL_CTX_set_session_cache_mode(3) */\n# define SSL_SESS_CACHE_NO_INTERNAL_LOOKUP       0x0100\n# define SSL_SESS_CACHE_NO_INTERNAL_STORE        0x0200\n# define SSL_SESS_CACHE_NO_INTERNAL \\\n        (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP|SSL_SESS_CACHE_NO_INTERNAL_STORE)\n\nLHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);\n# define SSL_CTX_sess_number(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL)\n# define SSL_CTX_sess_connect(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL)\n# define SSL_CTX_sess_connect_good(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL)\n# define SSL_CTX_sess_connect_renegotiate(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL)\n# define SSL_CTX_sess_accept(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL)\n# define SSL_CTX_sess_accept_renegotiate(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL)\n# define SSL_CTX_sess_accept_good(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL)\n# define SSL_CTX_sess_hits(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL)\n# define SSL_CTX_sess_cb_hits(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL)\n# define SSL_CTX_sess_misses(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL)\n# define SSL_CTX_sess_timeouts(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL)\n# define SSL_CTX_sess_cache_full(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL)\n\nvoid SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,\n                             int (*new_session_cb) (struct ssl_st *ssl,\n                                                    SSL_SESSION *sess));\nint (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,\n                                              SSL_SESSION *sess);\nvoid SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx,\n                                void (*remove_session_cb) (struct ssl_ctx_st\n                                                           *ctx,\n                                                           SSL_SESSION *sess));\nvoid (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)) (struct ssl_ctx_st *ctx,\n                                                  SSL_SESSION *sess);\nvoid SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,\n                             SSL_SESSION *(*get_session_cb) (struct ssl_st\n                                                             *ssl,\n                                                             const unsigned char\n                                                             *data, int len,\n                                                             int *copy));\nSSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,\n                                                       const unsigned char *data,\n                                                       int len, int *copy);\nvoid SSL_CTX_set_info_callback(SSL_CTX *ctx,\n                               void (*cb) (const SSL *ssl, int type, int val));\nvoid (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,\n                                                 int val);\nvoid SSL_CTX_set_client_cert_cb(SSL_CTX *ctx,\n                                int (*client_cert_cb) (SSL *ssl, X509 **x509,\n                                                       EVP_PKEY **pkey));\nint (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,\n                                                 EVP_PKEY **pkey);\n# ifndef OPENSSL_NO_ENGINE\n__owur int SSL_CTX_set_client_cert_engine(SSL_CTX *ctx, ENGINE *e);\n# endif\nvoid SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx,\n                                    int (*app_gen_cookie_cb) (SSL *ssl,\n                                                              unsigned char\n                                                              *cookie,\n                                                              unsigned int\n                                                              *cookie_len));\nvoid SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx,\n                                  int (*app_verify_cookie_cb) (SSL *ssl,\n                                                               const unsigned\n                                                               char *cookie,\n                                                               unsigned int\n                                                               cookie_len));\n\nvoid SSL_CTX_set_stateless_cookie_generate_cb(\n    SSL_CTX *ctx,\n    int (*gen_stateless_cookie_cb) (SSL *ssl,\n                                    unsigned char *cookie,\n                                    size_t *cookie_len));\nvoid SSL_CTX_set_stateless_cookie_verify_cb(\n    SSL_CTX *ctx,\n    int (*verify_stateless_cookie_cb) (SSL *ssl,\n                                       const unsigned char *cookie,\n                                       size_t cookie_len));\n# ifndef OPENSSL_NO_NEXTPROTONEG\n\ntypedef int (*SSL_CTX_npn_advertised_cb_func)(SSL *ssl,\n                                              const unsigned char **out,\n                                              unsigned int *outlen,\n                                              void *arg);\nvoid SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s,\n                                           SSL_CTX_npn_advertised_cb_func cb,\n                                           void *arg);\n#  define SSL_CTX_set_npn_advertised_cb SSL_CTX_set_next_protos_advertised_cb\n\ntypedef int (*SSL_CTX_npn_select_cb_func)(SSL *s,\n                                          unsigned char **out,\n                                          unsigned char *outlen,\n                                          const unsigned char *in,\n                                          unsigned int inlen,\n                                          void *arg);\nvoid SSL_CTX_set_next_proto_select_cb(SSL_CTX *s,\n                                      SSL_CTX_npn_select_cb_func cb,\n                                      void *arg);\n#  define SSL_CTX_set_npn_select_cb SSL_CTX_set_next_proto_select_cb\n\nvoid SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,\n                                    unsigned *len);\n#  define SSL_get0_npn_negotiated SSL_get0_next_proto_negotiated\n# endif\n\n__owur int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,\n                                 const unsigned char *in, unsigned int inlen,\n                                 const unsigned char *client,\n                                 unsigned int client_len);\n\n# define OPENSSL_NPN_UNSUPPORTED 0\n# define OPENSSL_NPN_NEGOTIATED  1\n# define OPENSSL_NPN_NO_OVERLAP  2\n\n__owur int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,\n                                   unsigned int protos_len);\n__owur int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,\n                               unsigned int protos_len);\ntypedef int (*SSL_CTX_alpn_select_cb_func)(SSL *ssl,\n                                           const unsigned char **out,\n                                           unsigned char *outlen,\n                                           const unsigned char *in,\n                                           unsigned int inlen,\n                                           void *arg);\nvoid SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,\n                                SSL_CTX_alpn_select_cb_func cb,\n                                void *arg);\nvoid SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data,\n                            unsigned int *len);\n\n# ifndef OPENSSL_NO_PSK\n/*\n * the maximum length of the buffer given to callbacks containing the\n * resulting identity/psk\n */\n#  define PSK_MAX_IDENTITY_LEN 128\n#  define PSK_MAX_PSK_LEN 256\ntypedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,\n                                               const char *hint,\n                                               char *identity,\n                                               unsigned int max_identity_len,\n                                               unsigned char *psk,\n                                               unsigned int max_psk_len);\nvoid SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);\nvoid SSL_set_psk_client_callback(SSL *ssl, SSL_psk_client_cb_func cb);\n\ntypedef unsigned int (*SSL_psk_server_cb_func)(SSL *ssl,\n                                               const char *identity,\n                                               unsigned char *psk,\n                                               unsigned int max_psk_len);\nvoid SSL_CTX_set_psk_server_callback(SSL_CTX *ctx, SSL_psk_server_cb_func cb);\nvoid SSL_set_psk_server_callback(SSL *ssl, SSL_psk_server_cb_func cb);\n\n__owur int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *identity_hint);\n__owur int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint);\nconst char *SSL_get_psk_identity_hint(const SSL *s);\nconst char *SSL_get_psk_identity(const SSL *s);\n# endif\n\ntypedef int (*SSL_psk_find_session_cb_func)(SSL *ssl,\n                                            const unsigned char *identity,\n                                            size_t identity_len,\n                                            SSL_SESSION **sess);\ntypedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,\n                                           const unsigned char **id,\n                                           size_t *idlen,\n                                           SSL_SESSION **sess);\n\nvoid SSL_set_psk_find_session_callback(SSL *s, SSL_psk_find_session_cb_func cb);\nvoid SSL_CTX_set_psk_find_session_callback(SSL_CTX *ctx,\n                                           SSL_psk_find_session_cb_func cb);\nvoid SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb);\nvoid SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx,\n                                          SSL_psk_use_session_cb_func cb);\n\n/* Register callbacks to handle custom TLS Extensions for client or server. */\n\n__owur int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx,\n                                         unsigned int ext_type);\n\n__owur int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx,\n                                         unsigned int ext_type,\n                                         custom_ext_add_cb add_cb,\n                                         custom_ext_free_cb free_cb,\n                                         void *add_arg,\n                                         custom_ext_parse_cb parse_cb,\n                                         void *parse_arg);\n\n__owur int SSL_CTX_add_server_custom_ext(SSL_CTX *ctx,\n                                         unsigned int ext_type,\n                                         custom_ext_add_cb add_cb,\n                                         custom_ext_free_cb free_cb,\n                                         void *add_arg,\n                                         custom_ext_parse_cb parse_cb,\n                                         void *parse_arg);\n\n__owur int SSL_CTX_add_custom_ext(SSL_CTX *ctx, unsigned int ext_type,\n                                  unsigned int context,\n                                  SSL_custom_ext_add_cb_ex add_cb,\n                                  SSL_custom_ext_free_cb_ex free_cb,\n                                  void *add_arg,\n                                  SSL_custom_ext_parse_cb_ex parse_cb,\n                                  void *parse_arg);\n\n__owur int SSL_extension_supported(unsigned int ext_type);\n\n# define SSL_NOTHING            1\n# define SSL_WRITING            2\n# define SSL_READING            3\n# define SSL_X509_LOOKUP        4\n# define SSL_ASYNC_PAUSED       5\n# define SSL_ASYNC_NO_JOBS      6\n# define SSL_CLIENT_HELLO_CB    7\n\n/* These will only be used when doing non-blocking IO */\n# define SSL_want_nothing(s)         (SSL_want(s) == SSL_NOTHING)\n# define SSL_want_read(s)            (SSL_want(s) == SSL_READING)\n# define SSL_want_write(s)           (SSL_want(s) == SSL_WRITING)\n# define SSL_want_x509_lookup(s)     (SSL_want(s) == SSL_X509_LOOKUP)\n# define SSL_want_async(s)           (SSL_want(s) == SSL_ASYNC_PAUSED)\n# define SSL_want_async_job(s)       (SSL_want(s) == SSL_ASYNC_NO_JOBS)\n# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB)\n\n# define SSL_MAC_FLAG_READ_MAC_STREAM 1\n# define SSL_MAC_FLAG_WRITE_MAC_STREAM 2\n\n/*\n * A callback for logging out TLS key material. This callback should log out\n * |line| followed by a newline.\n */\ntypedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);\n\n/*\n * SSL_CTX_set_keylog_callback configures a callback to log key material. This\n * is intended for debugging use with tools like Wireshark. The cb function\n * should log line followed by a newline.\n */\nvoid SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);\n\n/*\n * SSL_CTX_get_keylog_callback returns the callback configured by\n * SSL_CTX_set_keylog_callback.\n */\nSSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);\n\nint SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);\nuint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);\nint SSL_set_max_early_data(SSL *s, uint32_t max_early_data);\nuint32_t SSL_get_max_early_data(const SSL *s);\nint SSL_CTX_set_recv_max_early_data(SSL_CTX *ctx, uint32_t recv_max_early_data);\nuint32_t SSL_CTX_get_recv_max_early_data(const SSL_CTX *ctx);\nint SSL_set_recv_max_early_data(SSL *s, uint32_t recv_max_early_data);\nuint32_t SSL_get_recv_max_early_data(const SSL *s);\n\n#ifdef __cplusplus\n}\n#endif\n\n# include <openssl/ssl2.h>\n# include <openssl/ssl3.h>\n# include <openssl/tls1.h>      /* This is mostly sslv3 with a few tweaks */\n# include <openssl/dtls1.h>     /* Datagram TLS */\n# include <openssl/srtp.h>      /* Support for the use_srtp extension */\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * These need to be after the above set of includes due to a compiler bug\n * in VisualStudio 2015\n */\nDEFINE_STACK_OF_CONST(SSL_CIPHER)\nDEFINE_STACK_OF(SSL_COMP)\n\n/* compatibility */\n# define SSL_set_app_data(s,arg)         (SSL_set_ex_data(s,0,(char *)(arg)))\n# define SSL_get_app_data(s)             (SSL_get_ex_data(s,0))\n# define SSL_SESSION_set_app_data(s,a)   (SSL_SESSION_set_ex_data(s,0, \\\n                                                                  (char *)(a)))\n# define SSL_SESSION_get_app_data(s)     (SSL_SESSION_get_ex_data(s,0))\n# define SSL_CTX_get_app_data(ctx)       (SSL_CTX_get_ex_data(ctx,0))\n# define SSL_CTX_set_app_data(ctx,arg)   (SSL_CTX_set_ex_data(ctx,0, \\\n                                                              (char *)(arg)))\nDEPRECATEDIN_1_1_0(void SSL_set_debug(SSL *s, int debug))\n\n/* TLSv1.3 KeyUpdate message types */\n/* -1 used so that this is an invalid value for the on-the-wire protocol */\n#define SSL_KEY_UPDATE_NONE             -1\n/* Values as defined for the on-the-wire protocol */\n#define SSL_KEY_UPDATE_NOT_REQUESTED     0\n#define SSL_KEY_UPDATE_REQUESTED         1\n\n/*\n * The valid handshake states (one for each type message sent and one for each\n * type of message received). There are also two \"special\" states:\n * TLS = TLS or DTLS state\n * DTLS = DTLS specific state\n * CR/SR = Client Read/Server Read\n * CW/SW = Client Write/Server Write\n *\n * The \"special\" states are:\n * TLS_ST_BEFORE = No handshake has been initiated yet\n * TLS_ST_OK = A handshake has been successfully completed\n */\ntypedef enum {\n    TLS_ST_BEFORE,\n    TLS_ST_OK,\n    DTLS_ST_CR_HELLO_VERIFY_REQUEST,\n    TLS_ST_CR_SRVR_HELLO,\n    TLS_ST_CR_CERT,\n    TLS_ST_CR_CERT_STATUS,\n    TLS_ST_CR_KEY_EXCH,\n    TLS_ST_CR_CERT_REQ,\n    TLS_ST_CR_SRVR_DONE,\n    TLS_ST_CR_SESSION_TICKET,\n    TLS_ST_CR_CHANGE,\n    TLS_ST_CR_FINISHED,\n    TLS_ST_CW_CLNT_HELLO,\n    TLS_ST_CW_CERT,\n    TLS_ST_CW_KEY_EXCH,\n    TLS_ST_CW_CERT_VRFY,\n    TLS_ST_CW_CHANGE,\n    TLS_ST_CW_NEXT_PROTO,\n    TLS_ST_CW_FINISHED,\n    TLS_ST_SW_HELLO_REQ,\n    TLS_ST_SR_CLNT_HELLO,\n    DTLS_ST_SW_HELLO_VERIFY_REQUEST,\n    TLS_ST_SW_SRVR_HELLO,\n    TLS_ST_SW_CERT,\n    TLS_ST_SW_KEY_EXCH,\n    TLS_ST_SW_CERT_REQ,\n    TLS_ST_SW_SRVR_DONE,\n    TLS_ST_SR_CERT,\n    TLS_ST_SR_KEY_EXCH,\n    TLS_ST_SR_CERT_VRFY,\n    TLS_ST_SR_NEXT_PROTO,\n    TLS_ST_SR_CHANGE,\n    TLS_ST_SR_FINISHED,\n    TLS_ST_SW_SESSION_TICKET,\n    TLS_ST_SW_CERT_STATUS,\n    TLS_ST_SW_CHANGE,\n    TLS_ST_SW_FINISHED,\n    TLS_ST_SW_ENCRYPTED_EXTENSIONS,\n    TLS_ST_CR_ENCRYPTED_EXTENSIONS,\n    TLS_ST_CR_CERT_VRFY,\n    TLS_ST_SW_CERT_VRFY,\n    TLS_ST_CR_HELLO_REQ,\n    TLS_ST_SW_KEY_UPDATE,\n    TLS_ST_CW_KEY_UPDATE,\n    TLS_ST_SR_KEY_UPDATE,\n    TLS_ST_CR_KEY_UPDATE,\n    TLS_ST_EARLY_DATA,\n    TLS_ST_PENDING_EARLY_DATA_END,\n    TLS_ST_CW_END_OF_EARLY_DATA,\n    TLS_ST_SR_END_OF_EARLY_DATA\n} OSSL_HANDSHAKE_STATE;\n\n/*\n * Most of the following state values are no longer used and are defined to be\n * the closest equivalent value in the current state machine code. Not all\n * defines have an equivalent and are set to a dummy value (-1). SSL_ST_CONNECT\n * and SSL_ST_ACCEPT are still in use in the definition of SSL_CB_ACCEPT_LOOP,\n * SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP and SSL_CB_CONNECT_EXIT.\n */\n\n# define SSL_ST_CONNECT                  0x1000\n# define SSL_ST_ACCEPT                   0x2000\n\n# define SSL_ST_MASK                     0x0FFF\n\n# define SSL_CB_LOOP                     0x01\n# define SSL_CB_EXIT                     0x02\n# define SSL_CB_READ                     0x04\n# define SSL_CB_WRITE                    0x08\n# define SSL_CB_ALERT                    0x4000/* used in callback */\n# define SSL_CB_READ_ALERT               (SSL_CB_ALERT|SSL_CB_READ)\n# define SSL_CB_WRITE_ALERT              (SSL_CB_ALERT|SSL_CB_WRITE)\n# define SSL_CB_ACCEPT_LOOP              (SSL_ST_ACCEPT|SSL_CB_LOOP)\n# define SSL_CB_ACCEPT_EXIT              (SSL_ST_ACCEPT|SSL_CB_EXIT)\n# define SSL_CB_CONNECT_LOOP             (SSL_ST_CONNECT|SSL_CB_LOOP)\n# define SSL_CB_CONNECT_EXIT             (SSL_ST_CONNECT|SSL_CB_EXIT)\n# define SSL_CB_HANDSHAKE_START          0x10\n# define SSL_CB_HANDSHAKE_DONE           0x20\n\n/* Is the SSL_connection established? */\n# define SSL_in_connect_init(a)          (SSL_in_init(a) && !SSL_is_server(a))\n# define SSL_in_accept_init(a)           (SSL_in_init(a) && SSL_is_server(a))\nint SSL_in_init(const SSL *s);\nint SSL_in_before(const SSL *s);\nint SSL_is_init_finished(const SSL *s);\n\n/*\n * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you\n * should not need these\n */\n# define SSL_ST_READ_HEADER                      0xF0\n# define SSL_ST_READ_BODY                        0xF1\n# define SSL_ST_READ_DONE                        0xF2\n\n/*-\n * Obtain latest Finished message\n *   -- that we sent (SSL_get_finished)\n *   -- that we expected from peer (SSL_get_peer_finished).\n * Returns length (0 == no Finished so far), copies up to 'count' bytes.\n */\nsize_t SSL_get_finished(const SSL *s, void *buf, size_t count);\nsize_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);\n\n/*\n * use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 3 options are\n * 'ored' with SSL_VERIFY_PEER if they are desired\n */\n# define SSL_VERIFY_NONE                 0x00\n# define SSL_VERIFY_PEER                 0x01\n# define SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x02\n# define SSL_VERIFY_CLIENT_ONCE          0x04\n# define SSL_VERIFY_POST_HANDSHAKE       0x08\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OpenSSL_add_ssl_algorithms()   SSL_library_init()\n#  define SSLeay_add_ssl_algorithms()    SSL_library_init()\n# endif\n\n/* More backward compatibility */\n# define SSL_get_cipher(s) \\\n                SSL_CIPHER_get_name(SSL_get_current_cipher(s))\n# define SSL_get_cipher_bits(s,np) \\\n                SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)\n# define SSL_get_cipher_version(s) \\\n                SSL_CIPHER_get_version(SSL_get_current_cipher(s))\n# define SSL_get_cipher_name(s) \\\n                SSL_CIPHER_get_name(SSL_get_current_cipher(s))\n# define SSL_get_time(a)         SSL_SESSION_get_time(a)\n# define SSL_set_time(a,b)       SSL_SESSION_set_time((a),(b))\n# define SSL_get_timeout(a)      SSL_SESSION_get_timeout(a)\n# define SSL_set_timeout(a,b)    SSL_SESSION_set_timeout((a),(b))\n\n# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id)\n# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id)\n\nDECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)\n# define SSL_AD_REASON_OFFSET            1000/* offset to get SSL_R_... value\n                                              * from SSL_AD_... */\n/* These alert types are for SSLv3 and TLSv1 */\n# define SSL_AD_CLOSE_NOTIFY             SSL3_AD_CLOSE_NOTIFY\n/* fatal */\n# define SSL_AD_UNEXPECTED_MESSAGE       SSL3_AD_UNEXPECTED_MESSAGE\n/* fatal */\n# define SSL_AD_BAD_RECORD_MAC           SSL3_AD_BAD_RECORD_MAC\n# define SSL_AD_DECRYPTION_FAILED        TLS1_AD_DECRYPTION_FAILED\n# define SSL_AD_RECORD_OVERFLOW          TLS1_AD_RECORD_OVERFLOW\n/* fatal */\n# define SSL_AD_DECOMPRESSION_FAILURE    SSL3_AD_DECOMPRESSION_FAILURE\n/* fatal */\n# define SSL_AD_HANDSHAKE_FAILURE        SSL3_AD_HANDSHAKE_FAILURE\n/* Not for TLS */\n# define SSL_AD_NO_CERTIFICATE           SSL3_AD_NO_CERTIFICATE\n# define SSL_AD_BAD_CERTIFICATE          SSL3_AD_BAD_CERTIFICATE\n# define SSL_AD_UNSUPPORTED_CERTIFICATE  SSL3_AD_UNSUPPORTED_CERTIFICATE\n# define SSL_AD_CERTIFICATE_REVOKED      SSL3_AD_CERTIFICATE_REVOKED\n# define SSL_AD_CERTIFICATE_EXPIRED      SSL3_AD_CERTIFICATE_EXPIRED\n# define SSL_AD_CERTIFICATE_UNKNOWN      SSL3_AD_CERTIFICATE_UNKNOWN\n/* fatal */\n# define SSL_AD_ILLEGAL_PARAMETER        SSL3_AD_ILLEGAL_PARAMETER\n/* fatal */\n# define SSL_AD_UNKNOWN_CA               TLS1_AD_UNKNOWN_CA\n/* fatal */\n# define SSL_AD_ACCESS_DENIED            TLS1_AD_ACCESS_DENIED\n/* fatal */\n# define SSL_AD_DECODE_ERROR             TLS1_AD_DECODE_ERROR\n# define SSL_AD_DECRYPT_ERROR            TLS1_AD_DECRYPT_ERROR\n/* fatal */\n# define SSL_AD_EXPORT_RESTRICTION       TLS1_AD_EXPORT_RESTRICTION\n/* fatal */\n# define SSL_AD_PROTOCOL_VERSION         TLS1_AD_PROTOCOL_VERSION\n/* fatal */\n# define SSL_AD_INSUFFICIENT_SECURITY    TLS1_AD_INSUFFICIENT_SECURITY\n/* fatal */\n# define SSL_AD_INTERNAL_ERROR           TLS1_AD_INTERNAL_ERROR\n# define SSL_AD_USER_CANCELLED           TLS1_AD_USER_CANCELLED\n# define SSL_AD_NO_RENEGOTIATION         TLS1_AD_NO_RENEGOTIATION\n# define SSL_AD_MISSING_EXTENSION        TLS13_AD_MISSING_EXTENSION\n# define SSL_AD_CERTIFICATE_REQUIRED     TLS13_AD_CERTIFICATE_REQUIRED\n# define SSL_AD_UNSUPPORTED_EXTENSION    TLS1_AD_UNSUPPORTED_EXTENSION\n# define SSL_AD_CERTIFICATE_UNOBTAINABLE TLS1_AD_CERTIFICATE_UNOBTAINABLE\n# define SSL_AD_UNRECOGNIZED_NAME        TLS1_AD_UNRECOGNIZED_NAME\n# define SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE\n# define SSL_AD_BAD_CERTIFICATE_HASH_VALUE TLS1_AD_BAD_CERTIFICATE_HASH_VALUE\n/* fatal */\n# define SSL_AD_UNKNOWN_PSK_IDENTITY     TLS1_AD_UNKNOWN_PSK_IDENTITY\n/* fatal */\n# define SSL_AD_INAPPROPRIATE_FALLBACK   TLS1_AD_INAPPROPRIATE_FALLBACK\n# define SSL_AD_NO_APPLICATION_PROTOCOL  TLS1_AD_NO_APPLICATION_PROTOCOL\n# define SSL_ERROR_NONE                  0\n# define SSL_ERROR_SSL                   1\n# define SSL_ERROR_WANT_READ             2\n# define SSL_ERROR_WANT_WRITE            3\n# define SSL_ERROR_WANT_X509_LOOKUP      4\n# define SSL_ERROR_SYSCALL               5/* look at error stack/return\n                                           * value/errno */\n# define SSL_ERROR_ZERO_RETURN           6\n# define SSL_ERROR_WANT_CONNECT          7\n# define SSL_ERROR_WANT_ACCEPT           8\n# define SSL_ERROR_WANT_ASYNC            9\n# define SSL_ERROR_WANT_ASYNC_JOB       10\n# define SSL_ERROR_WANT_CLIENT_HELLO_CB 11\n# define SSL_CTRL_SET_TMP_DH                     3\n# define SSL_CTRL_SET_TMP_ECDH                   4\n# define SSL_CTRL_SET_TMP_DH_CB                  6\n# define SSL_CTRL_GET_CLIENT_CERT_REQUEST        9\n# define SSL_CTRL_GET_NUM_RENEGOTIATIONS         10\n# define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS       11\n# define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS       12\n# define SSL_CTRL_GET_FLAGS                      13\n# define SSL_CTRL_EXTRA_CHAIN_CERT               14\n# define SSL_CTRL_SET_MSG_CALLBACK               15\n# define SSL_CTRL_SET_MSG_CALLBACK_ARG           16\n/* only applies to datagram connections */\n# define SSL_CTRL_SET_MTU                17\n/* Stats */\n# define SSL_CTRL_SESS_NUMBER                    20\n# define SSL_CTRL_SESS_CONNECT                   21\n# define SSL_CTRL_SESS_CONNECT_GOOD              22\n# define SSL_CTRL_SESS_CONNECT_RENEGOTIATE       23\n# define SSL_CTRL_SESS_ACCEPT                    24\n# define SSL_CTRL_SESS_ACCEPT_GOOD               25\n# define SSL_CTRL_SESS_ACCEPT_RENEGOTIATE        26\n# define SSL_CTRL_SESS_HIT                       27\n# define SSL_CTRL_SESS_CB_HIT                    28\n# define SSL_CTRL_SESS_MISSES                    29\n# define SSL_CTRL_SESS_TIMEOUTS                  30\n# define SSL_CTRL_SESS_CACHE_FULL                31\n# define SSL_CTRL_MODE                           33\n# define SSL_CTRL_GET_READ_AHEAD                 40\n# define SSL_CTRL_SET_READ_AHEAD                 41\n# define SSL_CTRL_SET_SESS_CACHE_SIZE            42\n# define SSL_CTRL_GET_SESS_CACHE_SIZE            43\n# define SSL_CTRL_SET_SESS_CACHE_MODE            44\n# define SSL_CTRL_GET_SESS_CACHE_MODE            45\n# define SSL_CTRL_GET_MAX_CERT_LIST              50\n# define SSL_CTRL_SET_MAX_CERT_LIST              51\n# define SSL_CTRL_SET_MAX_SEND_FRAGMENT          52\n/* see tls1.h for macros based on these */\n# define SSL_CTRL_SET_TLSEXT_SERVERNAME_CB       53\n# define SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG      54\n# define SSL_CTRL_SET_TLSEXT_HOSTNAME            55\n# define SSL_CTRL_SET_TLSEXT_DEBUG_CB            56\n# define SSL_CTRL_SET_TLSEXT_DEBUG_ARG           57\n# define SSL_CTRL_GET_TLSEXT_TICKET_KEYS         58\n# define SSL_CTRL_SET_TLSEXT_TICKET_KEYS         59\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT    60 */\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB 61 */\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG 62 */\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB       63\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG   64\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE     65\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS     66\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS     67\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS      68\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS      69\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP        70\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP        71\n# define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB       72\n# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB    75\n# define SSL_CTRL_SET_SRP_VERIFY_PARAM_CB                76\n# define SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB             77\n# define SSL_CTRL_SET_SRP_ARG            78\n# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME               79\n# define SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH               80\n# define SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD               81\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT               85\n#  define SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING        86\n#  define SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS    87\n# endif\n# define DTLS_CTRL_GET_TIMEOUT           73\n# define DTLS_CTRL_HANDLE_TIMEOUT        74\n# define SSL_CTRL_GET_RI_SUPPORT                 76\n# define SSL_CTRL_CLEAR_MODE                     78\n# define SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB      79\n# define SSL_CTRL_GET_EXTRA_CHAIN_CERTS          82\n# define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS        83\n# define SSL_CTRL_CHAIN                          88\n# define SSL_CTRL_CHAIN_CERT                     89\n# define SSL_CTRL_GET_GROUPS                     90\n# define SSL_CTRL_SET_GROUPS                     91\n# define SSL_CTRL_SET_GROUPS_LIST                92\n# define SSL_CTRL_GET_SHARED_GROUP               93\n# define SSL_CTRL_SET_SIGALGS                    97\n# define SSL_CTRL_SET_SIGALGS_LIST               98\n# define SSL_CTRL_CERT_FLAGS                     99\n# define SSL_CTRL_CLEAR_CERT_FLAGS               100\n# define SSL_CTRL_SET_CLIENT_SIGALGS             101\n# define SSL_CTRL_SET_CLIENT_SIGALGS_LIST        102\n# define SSL_CTRL_GET_CLIENT_CERT_TYPES          103\n# define SSL_CTRL_SET_CLIENT_CERT_TYPES          104\n# define SSL_CTRL_BUILD_CERT_CHAIN               105\n# define SSL_CTRL_SET_VERIFY_CERT_STORE          106\n# define SSL_CTRL_SET_CHAIN_CERT_STORE           107\n# define SSL_CTRL_GET_PEER_SIGNATURE_NID         108\n# define SSL_CTRL_GET_PEER_TMP_KEY               109\n# define SSL_CTRL_GET_RAW_CIPHERLIST             110\n# define SSL_CTRL_GET_EC_POINT_FORMATS           111\n# define SSL_CTRL_GET_CHAIN_CERTS                115\n# define SSL_CTRL_SELECT_CURRENT_CERT            116\n# define SSL_CTRL_SET_CURRENT_CERT               117\n# define SSL_CTRL_SET_DH_AUTO                    118\n# define DTLS_CTRL_SET_LINK_MTU                  120\n# define DTLS_CTRL_GET_LINK_MIN_MTU              121\n# define SSL_CTRL_GET_EXTMS_SUPPORT              122\n# define SSL_CTRL_SET_MIN_PROTO_VERSION          123\n# define SSL_CTRL_SET_MAX_PROTO_VERSION          124\n# define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT        125\n# define SSL_CTRL_SET_MAX_PIPELINES              126\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE     127\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB       128\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG   129\n# define SSL_CTRL_GET_MIN_PROTO_VERSION          130\n# define SSL_CTRL_GET_MAX_PROTO_VERSION          131\n# define SSL_CTRL_GET_SIGNATURE_NID              132\n# define SSL_CTRL_GET_TMP_KEY                    133\n# define SSL_CERT_SET_FIRST                      1\n# define SSL_CERT_SET_NEXT                       2\n# define SSL_CERT_SET_SERVER                     3\n# define DTLSv1_get_timeout(ssl, arg) \\\n        SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg))\n# define DTLSv1_handle_timeout(ssl) \\\n        SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL)\n# define SSL_num_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL)\n# define SSL_clear_num_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL)\n# define SSL_total_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL)\n# define SSL_CTX_set_tmp_dh(ctx,dh) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))\n# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))\n# define SSL_CTX_set_dh_auto(ctx, onoff) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL)\n# define SSL_set_dh_auto(s, onoff) \\\n        SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL)\n# define SSL_set_tmp_dh(ssl,dh) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))\n# define SSL_set_tmp_ecdh(ssl,ecdh) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))\n# define SSL_CTX_add_extra_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509))\n# define SSL_CTX_get_extra_chain_certs(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509)\n# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509)\n# define SSL_CTX_clear_extra_chain_certs(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL)\n# define SSL_CTX_set0_chain(ctx,sk) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))\n# define SSL_CTX_set1_chain(ctx,sk) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk))\n# define SSL_CTX_add0_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))\n# define SSL_CTX_add1_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))\n# define SSL_CTX_get0_chain_certs(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509)\n# define SSL_CTX_clear_chain_certs(ctx) \\\n        SSL_CTX_set0_chain(ctx,NULL)\n# define SSL_CTX_build_cert_chain(ctx, flags) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)\n# define SSL_CTX_select_current_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))\n# define SSL_CTX_set_current_cert(ctx, op) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL)\n# define SSL_CTX_set0_verify_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))\n# define SSL_CTX_set1_verify_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))\n# define SSL_CTX_set0_chain_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))\n# define SSL_CTX_set1_chain_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))\n# define SSL_set0_chain(s,sk) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk))\n# define SSL_set1_chain(s,sk) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk))\n# define SSL_add0_chain_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))\n# define SSL_add1_chain_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))\n# define SSL_get0_chain_certs(s,px509) \\\n        SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509)\n# define SSL_clear_chain_certs(s) \\\n        SSL_set0_chain(s,NULL)\n# define SSL_build_cert_chain(s, flags) \\\n        SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)\n# define SSL_select_current_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))\n# define SSL_set_current_cert(s,op) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL)\n# define SSL_set0_verify_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))\n# define SSL_set1_verify_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))\n# define SSL_set0_chain_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))\n# define SSL_set1_chain_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))\n# define SSL_get1_groups(s, glist) \\\n        SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist))\n# define SSL_CTX_set1_groups(ctx, glist, glistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(int *)(glist))\n# define SSL_CTX_set1_groups_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))\n# define SSL_set1_groups(s, glist, glistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))\n# define SSL_set1_groups_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str))\n# define SSL_get_shared_group(s, n) \\\n        SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL)\n# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))\n# define SSL_CTX_set1_sigalgs_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))\n# define SSL_set1_sigalgs(s, slist, slistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))\n# define SSL_set1_sigalgs_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str))\n# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))\n# define SSL_CTX_set1_client_sigalgs_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))\n# define SSL_set1_client_sigalgs(s, slist, slistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))\n# define SSL_set1_client_sigalgs_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str))\n# define SSL_get0_certificate_types(s, clist) \\\n        SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist))\n# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, \\\n                     (char *)(clist))\n# define SSL_set1_client_certificate_types(s, clist, clistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist))\n# define SSL_get_signature_nid(s, pn) \\\n        SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn)\n# define SSL_get_peer_signature_nid(s, pn) \\\n        SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn)\n# define SSL_get_peer_tmp_key(s, pk) \\\n        SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk)\n# define SSL_get_tmp_key(s, pk) \\\n        SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk)\n# define SSL_get0_raw_cipherlist(s, plst) \\\n        SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst)\n# define SSL_get0_ec_point_formats(s, plst) \\\n        SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst)\n# define SSL_CTX_set_min_proto_version(ctx, version) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)\n# define SSL_CTX_set_max_proto_version(ctx, version) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)\n# define SSL_CTX_get_min_proto_version(ctx) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)\n# define SSL_CTX_get_max_proto_version(ctx) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)\n# define SSL_set_min_proto_version(s, version) \\\n        SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)\n# define SSL_set_max_proto_version(s, version) \\\n        SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)\n# define SSL_get_min_proto_version(s) \\\n        SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)\n# define SSL_get_max_proto_version(s) \\\n        SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)\n\n/* Backwards compatibility, original 1.1.0 names */\n# define SSL_CTRL_GET_SERVER_TMP_KEY \\\n         SSL_CTRL_GET_PEER_TMP_KEY\n# define SSL_get_server_tmp_key(s, pk) \\\n         SSL_get_peer_tmp_key(s, pk)\n\n/*\n * The following symbol names are old and obsolete. They are kept\n * for compatibility reasons only and should not be used anymore.\n */\n# define SSL_CTRL_GET_CURVES           SSL_CTRL_GET_GROUPS\n# define SSL_CTRL_SET_CURVES           SSL_CTRL_SET_GROUPS\n# define SSL_CTRL_SET_CURVES_LIST      SSL_CTRL_SET_GROUPS_LIST\n# define SSL_CTRL_GET_SHARED_CURVE     SSL_CTRL_GET_SHARED_GROUP\n\n# define SSL_get1_curves               SSL_get1_groups\n# define SSL_CTX_set1_curves           SSL_CTX_set1_groups\n# define SSL_CTX_set1_curves_list      SSL_CTX_set1_groups_list\n# define SSL_set1_curves               SSL_set1_groups\n# define SSL_set1_curves_list          SSL_set1_groups_list\n# define SSL_get_shared_curve          SSL_get_shared_group\n\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/* Provide some compatibility macros for removed functionality. */\n#  define SSL_CTX_need_tmp_RSA(ctx)                0\n#  define SSL_CTX_set_tmp_rsa(ctx,rsa)             1\n#  define SSL_need_tmp_RSA(ssl)                    0\n#  define SSL_set_tmp_rsa(ssl,rsa)                 1\n#  define SSL_CTX_set_ecdh_auto(dummy, onoff)      ((onoff) != 0)\n#  define SSL_set_ecdh_auto(dummy, onoff)          ((onoff) != 0)\n/*\n * We \"pretend\" to call the callback to avoid warnings about unused static\n * functions.\n */\n#  define SSL_CTX_set_tmp_rsa_callback(ctx, cb)    while(0) (cb)(NULL, 0, 0)\n#  define SSL_set_tmp_rsa_callback(ssl, cb)        while(0) (cb)(NULL, 0, 0)\n# endif\n__owur const BIO_METHOD *BIO_f_ssl(void);\n__owur BIO *BIO_new_ssl(SSL_CTX *ctx, int client);\n__owur BIO *BIO_new_ssl_connect(SSL_CTX *ctx);\n__owur BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);\n__owur int BIO_ssl_copy_session_id(BIO *to, BIO *from);\nvoid BIO_ssl_shutdown(BIO *ssl_bio);\n\n__owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);\n__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);\nint SSL_CTX_up_ref(SSL_CTX *ctx);\nvoid SSL_CTX_free(SSL_CTX *);\n__owur long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);\n__owur long SSL_CTX_get_timeout(const SSL_CTX *ctx);\n__owur X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);\nvoid SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);\nvoid SSL_CTX_set1_cert_store(SSL_CTX *, X509_STORE *);\n__owur int SSL_want(const SSL *s);\n__owur int SSL_clear(SSL *s);\n\nvoid SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);\n\n__owur const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);\n__owur const SSL_CIPHER *SSL_get_pending_cipher(const SSL *s);\n__owur int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits);\n__owur const char *SSL_CIPHER_get_version(const SSL_CIPHER *c);\n__owur const char *SSL_CIPHER_get_name(const SSL_CIPHER *c);\n__owur const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c);\n__owur const char *OPENSSL_cipher_name(const char *rfc_name);\n__owur uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c);\n__owur uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c);\n__owur const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_is_aead(const SSL_CIPHER *c);\n\n__owur int SSL_get_fd(const SSL *s);\n__owur int SSL_get_rfd(const SSL *s);\n__owur int SSL_get_wfd(const SSL *s);\n__owur const char *SSL_get_cipher_list(const SSL *s, int n);\n__owur char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size);\n__owur int SSL_get_read_ahead(const SSL *s);\n__owur int SSL_pending(const SSL *s);\n__owur int SSL_has_pending(const SSL *s);\n# ifndef OPENSSL_NO_SOCK\n__owur int SSL_set_fd(SSL *s, int fd);\n__owur int SSL_set_rfd(SSL *s, int fd);\n__owur int SSL_set_wfd(SSL *s, int fd);\n# endif\nvoid SSL_set0_rbio(SSL *s, BIO *rbio);\nvoid SSL_set0_wbio(SSL *s, BIO *wbio);\nvoid SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);\n__owur BIO *SSL_get_rbio(const SSL *s);\n__owur BIO *SSL_get_wbio(const SSL *s);\n__owur int SSL_set_cipher_list(SSL *s, const char *str);\n__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);\n__owur int SSL_set_ciphersuites(SSL *s, const char *str);\nvoid SSL_set_read_ahead(SSL *s, int yes);\n__owur int SSL_get_verify_mode(const SSL *s);\n__owur int SSL_get_verify_depth(const SSL *s);\n__owur SSL_verify_cb SSL_get_verify_callback(const SSL *s);\nvoid SSL_set_verify(SSL *s, int mode, SSL_verify_cb callback);\nvoid SSL_set_verify_depth(SSL *s, int depth);\nvoid SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg);\n# ifndef OPENSSL_NO_RSA\n__owur int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);\n__owur int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d,\n                                      long len);\n# endif\n__owur int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);\n__owur int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,\n                                   long len);\n__owur int SSL_use_certificate(SSL *ssl, X509 *x);\n__owur int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);\n__owur int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey,\n                                STACK_OF(X509) *chain, int override);\n\n\n/* serverinfo file format versions */\n# define SSL_SERVERINFOV1   1\n# define SSL_SERVERINFOV2   2\n\n/* Set serverinfo data for the current active cert. */\n__owur int SSL_CTX_use_serverinfo(SSL_CTX *ctx, const unsigned char *serverinfo,\n                                  size_t serverinfo_length);\n__owur int SSL_CTX_use_serverinfo_ex(SSL_CTX *ctx, unsigned int version,\n                                     const unsigned char *serverinfo,\n                                     size_t serverinfo_length);\n__owur int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file);\n\n#ifndef OPENSSL_NO_RSA\n__owur int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);\n#endif\n\n__owur int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);\n__owur int SSL_use_certificate_file(SSL *ssl, const char *file, int type);\n\n#ifndef OPENSSL_NO_RSA\n__owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,\n                                          int type);\n#endif\n__owur int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,\n                                       int type);\n__owur int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,\n                                        int type);\n/* PEM type */\n__owur int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);\n__owur int SSL_use_certificate_chain_file(SSL *ssl, const char *file);\n__owur STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);\n__owur int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,\n                                               const char *file);\nint SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,\n                                       const char *dir);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_load_error_strings() \\\n    OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \\\n                     | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)\n# endif\n\n__owur const char *SSL_state_string(const SSL *s);\n__owur const char *SSL_rstate_string(const SSL *s);\n__owur const char *SSL_state_string_long(const SSL *s);\n__owur const char *SSL_rstate_string_long(const SSL *s);\n__owur long SSL_SESSION_get_time(const SSL_SESSION *s);\n__owur long SSL_SESSION_set_time(SSL_SESSION *s, long t);\n__owur long SSL_SESSION_get_timeout(const SSL_SESSION *s);\n__owur long SSL_SESSION_set_timeout(SSL_SESSION *s, long t);\n__owur int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version);\n\n__owur const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s);\n__owur int SSL_SESSION_set1_hostname(SSL_SESSION *s, const char *hostname);\nvoid SSL_SESSION_get0_alpn_selected(const SSL_SESSION *s,\n                                    const unsigned char **alpn,\n                                    size_t *len);\n__owur int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s,\n                                          const unsigned char *alpn,\n                                          size_t len);\n__owur const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher);\n__owur int SSL_SESSION_has_ticket(const SSL_SESSION *s);\n__owur unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);\nvoid SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,\n                             size_t *len);\n__owur uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_max_early_data(SSL_SESSION *s,\n                                          uint32_t max_early_data);\n__owur int SSL_copy_session_id(SSL *to, const SSL *from);\n__owur X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);\n__owur int SSL_SESSION_set1_id_context(SSL_SESSION *s,\n                                       const unsigned char *sid_ctx,\n                                       unsigned int sid_ctx_len);\n__owur int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid,\n                               unsigned int sid_len);\n__owur int SSL_SESSION_is_resumable(const SSL_SESSION *s);\n\n__owur SSL_SESSION *SSL_SESSION_new(void);\n__owur SSL_SESSION *SSL_SESSION_dup(SSL_SESSION *src);\nconst unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,\n                                        unsigned int *len);\nconst unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *s,\n                                                 unsigned int *len);\n__owur unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);\n# ifndef OPENSSL_NO_STDIO\nint SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);\n# endif\nint SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);\nint SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x);\nint SSL_SESSION_up_ref(SSL_SESSION *ses);\nvoid SSL_SESSION_free(SSL_SESSION *ses);\n__owur int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);\n__owur int SSL_set_session(SSL *to, SSL_SESSION *session);\nint SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);\nint SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);\n__owur int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb);\n__owur int SSL_set_generate_session_id(SSL *s, GEN_SESSION_CB cb);\n__owur int SSL_has_matching_session_id(const SSL *s,\n                                       const unsigned char *id,\n                                       unsigned int id_len);\nSSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,\n                             long length);\n\n# ifdef HEADER_X509_H\n__owur X509 *SSL_get_peer_certificate(const SSL *s);\n# endif\n\n__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);\n\n__owur int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);\n__owur int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);\n__owur SSL_verify_cb SSL_CTX_get_verify_callback(const SSL_CTX *ctx);\nvoid SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb callback);\nvoid SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);\nvoid SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx,\n                                      int (*cb) (X509_STORE_CTX *, void *),\n                                      void *arg);\nvoid SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),\n                         void *arg);\n# ifndef OPENSSL_NO_RSA\n__owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);\n__owur int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d,\n                                          long len);\n# endif\n__owur int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);\n__owur int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,\n                                       const unsigned char *d, long len);\n__owur int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);\n__owur int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,\n                                        const unsigned char *d);\n__owur int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,\n                                    STACK_OF(X509) *chain, int override);\n\nvoid SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);\nvoid SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);\npem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx);\nvoid *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx);\nvoid SSL_set_default_passwd_cb(SSL *s, pem_password_cb *cb);\nvoid SSL_set_default_passwd_cb_userdata(SSL *s, void *u);\npem_password_cb *SSL_get_default_passwd_cb(SSL *s);\nvoid *SSL_get_default_passwd_cb_userdata(SSL *s);\n\n__owur int SSL_CTX_check_private_key(const SSL_CTX *ctx);\n__owur int SSL_check_private_key(const SSL *ctx);\n\n__owur int SSL_CTX_set_session_id_context(SSL_CTX *ctx,\n                                          const unsigned char *sid_ctx,\n                                          unsigned int sid_ctx_len);\n\nSSL *SSL_new(SSL_CTX *ctx);\nint SSL_up_ref(SSL *s);\nint SSL_is_dtls(const SSL *s);\n__owur int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,\n                                      unsigned int sid_ctx_len);\n\n__owur int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);\n__owur int SSL_set_purpose(SSL *ssl, int purpose);\n__owur int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);\n__owur int SSL_set_trust(SSL *ssl, int trust);\n\n__owur int SSL_set1_host(SSL *s, const char *hostname);\n__owur int SSL_add1_host(SSL *s, const char *hostname);\n__owur const char *SSL_get0_peername(SSL *s);\nvoid SSL_set_hostflags(SSL *s, unsigned int flags);\n\n__owur int SSL_CTX_dane_enable(SSL_CTX *ctx);\n__owur int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md,\n                                  uint8_t mtype, uint8_t ord);\n__owur int SSL_dane_enable(SSL *s, const char *basedomain);\n__owur int SSL_dane_tlsa_add(SSL *s, uint8_t usage, uint8_t selector,\n                             uint8_t mtype, unsigned const char *data, size_t dlen);\n__owur int SSL_get0_dane_authority(SSL *s, X509 **mcert, EVP_PKEY **mspki);\n__owur int SSL_get0_dane_tlsa(SSL *s, uint8_t *usage, uint8_t *selector,\n                              uint8_t *mtype, unsigned const char **data,\n                              size_t *dlen);\n/*\n * Bridge opacity barrier between libcrypt and libssl, also needed to support\n * offline testing in test/danetest.c\n */\nSSL_DANE *SSL_get0_dane(SSL *ssl);\n/*\n * DANE flags\n */\nunsigned long SSL_CTX_dane_set_flags(SSL_CTX *ctx, unsigned long flags);\nunsigned long SSL_CTX_dane_clear_flags(SSL_CTX *ctx, unsigned long flags);\nunsigned long SSL_dane_set_flags(SSL *ssl, unsigned long flags);\nunsigned long SSL_dane_clear_flags(SSL *ssl, unsigned long flags);\n\n__owur int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);\n__owur int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);\n\n__owur X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);\n__owur X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);\n\n# ifndef OPENSSL_NO_SRP\nint SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name);\nint SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password);\nint SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength);\nint SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,\n                                        char *(*cb) (SSL *, void *));\nint SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,\n                                          int (*cb) (SSL *, void *));\nint SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,\n                                      int (*cb) (SSL *, int *, void *));\nint SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg);\n\nint SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,\n                             BIGNUM *sa, BIGNUM *v, char *info);\nint SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,\n                                const char *grp);\n\n__owur BIGNUM *SSL_get_srp_g(SSL *s);\n__owur BIGNUM *SSL_get_srp_N(SSL *s);\n\n__owur char *SSL_get_srp_username(SSL *s);\n__owur char *SSL_get_srp_userinfo(SSL *s);\n# endif\n\n/*\n * ClientHello callback and helpers.\n */\n\n# define SSL_CLIENT_HELLO_SUCCESS 1\n# define SSL_CLIENT_HELLO_ERROR   0\n# define SSL_CLIENT_HELLO_RETRY   (-1)\n\ntypedef int (*SSL_client_hello_cb_fn) (SSL *s, int *al, void *arg);\nvoid SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,\n                                 void *arg);\nint SSL_client_hello_isv2(SSL *s);\nunsigned int SSL_client_hello_get0_legacy_version(SSL *s);\nsize_t SSL_client_hello_get0_random(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_session_id(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_ciphers(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_compression_methods(SSL *s,\n                                                 const unsigned char **out);\nint SSL_client_hello_get1_extensions_present(SSL *s, int **out, size_t *outlen);\nint SSL_client_hello_get0_ext(SSL *s, unsigned int type,\n                              const unsigned char **out, size_t *outlen);\n\nvoid SSL_certs_clear(SSL *s);\nvoid SSL_free(SSL *ssl);\n# ifdef OSSL_ASYNC_FD\n/*\n * Windows application developer has to include windows.h to use these.\n */\n__owur int SSL_waiting_for_async(SSL *s);\n__owur int SSL_get_all_async_fds(SSL *s, OSSL_ASYNC_FD *fds, size_t *numfds);\n__owur int SSL_get_changed_async_fds(SSL *s, OSSL_ASYNC_FD *addfd,\n                                     size_t *numaddfds, OSSL_ASYNC_FD *delfd,\n                                     size_t *numdelfds);\n# endif\n__owur int SSL_accept(SSL *ssl);\n__owur int SSL_stateless(SSL *s);\n__owur int SSL_connect(SSL *ssl);\n__owur int SSL_read(SSL *ssl, void *buf, int num);\n__owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n\n# define SSL_READ_EARLY_DATA_ERROR   0\n# define SSL_READ_EARLY_DATA_SUCCESS 1\n# define SSL_READ_EARLY_DATA_FINISH  2\n\n__owur int SSL_read_early_data(SSL *s, void *buf, size_t num,\n                               size_t *readbytes);\n__owur int SSL_peek(SSL *ssl, void *buf, int num);\n__owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n__owur int SSL_write(SSL *ssl, const void *buf, int num);\n__owur int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written);\n__owur int SSL_write_early_data(SSL *s, const void *buf, size_t num,\n                                size_t *written);\nlong SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);\nlong SSL_callback_ctrl(SSL *, int, void (*)(void));\nlong SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);\nlong SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void));\n\n# define SSL_EARLY_DATA_NOT_SENT    0\n# define SSL_EARLY_DATA_REJECTED    1\n# define SSL_EARLY_DATA_ACCEPTED    2\n\n__owur int SSL_get_early_data_status(const SSL *s);\n\n__owur int SSL_get_error(const SSL *s, int ret_code);\n__owur const char *SSL_get_version(const SSL *s);\n\n/* This sets the 'default' SSL version that SSL_new() will create */\n__owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth);\n\n# ifndef OPENSSL_NO_SSL3_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void))\n# endif\n\n#define SSLv23_method           TLS_method\n#define SSLv23_server_method    TLS_server_method\n#define SSLv23_client_method    TLS_client_method\n\n/* Negotiate highest available SSL/TLS version */\n__owur const SSL_METHOD *TLS_method(void);\n__owur const SSL_METHOD *TLS_server_method(void);\n__owur const SSL_METHOD *TLS_client_method(void);\n\n# ifndef OPENSSL_NO_TLS1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_TLS1_1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_TLS1_2_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_DTLS1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_DTLS1_2_METHOD\n/* DTLSv1.2 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_client_method(void))\n# endif\n\n__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */\n__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */\n__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */\n\n__owur size_t DTLS_get_data_mtu(const SSL *s);\n\n__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);\n__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);\n__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const SSL *s);\n__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);\n\n__owur int SSL_do_handshake(SSL *s);\nint SSL_key_update(SSL *s, int updatetype);\nint SSL_get_key_update_type(const SSL *s);\nint SSL_renegotiate(SSL *s);\nint SSL_renegotiate_abbreviated(SSL *s);\n__owur int SSL_renegotiate_pending(const SSL *s);\nint SSL_shutdown(SSL *s);\n__owur int SSL_verify_client_post_handshake(SSL *s);\nvoid SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);\nvoid SSL_set_post_handshake_auth(SSL *s, int val);\n\n__owur const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);\n__owur const SSL_METHOD *SSL_get_ssl_method(const SSL *s);\n__owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);\n__owur const char *SSL_alert_type_string_long(int value);\n__owur const char *SSL_alert_type_string(int value);\n__owur const char *SSL_alert_desc_string_long(int value);\n__owur const char *SSL_alert_desc_string(int value);\n\nvoid SSL_set0_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);\nvoid SSL_CTX_set0_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);\n__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const SSL *s);\n__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const SSL_CTX *ctx);\n__owur int SSL_add1_to_CA_list(SSL *ssl, const X509 *x);\n__owur int SSL_CTX_add1_to_CA_list(SSL_CTX *ctx, const X509 *x);\n__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const SSL *s);\n\nvoid SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);\nvoid SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);\n__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);\n__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s);\n__owur int SSL_add_client_CA(SSL *ssl, X509 *x);\n__owur int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);\n\nvoid SSL_set_connect_state(SSL *s);\nvoid SSL_set_accept_state(SSL *s);\n\n__owur long SSL_get_default_timeout(const SSL *s);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_library_init() OPENSSL_init_ssl(0, NULL)\n# endif\n\n__owur char *SSL_CIPHER_description(const SSL_CIPHER *, char *buf, int size);\n__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk);\n\n__owur SSL *SSL_dup(SSL *ssl);\n\n__owur X509 *SSL_get_certificate(const SSL *ssl);\n/*\n * EVP_PKEY\n */\nstruct evp_pkey_st *SSL_get_privatekey(const SSL *ssl);\n\n__owur X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);\n__owur EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);\n\nvoid SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);\n__owur int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);\nvoid SSL_set_quiet_shutdown(SSL *ssl, int mode);\n__owur int SSL_get_quiet_shutdown(const SSL *ssl);\nvoid SSL_set_shutdown(SSL *ssl, int mode);\n__owur int SSL_get_shutdown(const SSL *ssl);\n__owur int SSL_version(const SSL *ssl);\n__owur int SSL_client_version(const SSL *s);\n__owur int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);\n__owur int SSL_CTX_set_default_verify_dir(SSL_CTX *ctx);\n__owur int SSL_CTX_set_default_verify_file(SSL_CTX *ctx);\n__owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,\n                                         const char *CApath);\n# define SSL_get0_session SSL_get_session/* just peek at pointer */\n__owur SSL_SESSION *SSL_get_session(const SSL *ssl);\n__owur SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */\n__owur SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);\nSSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);\nvoid SSL_set_info_callback(SSL *ssl,\n                           void (*cb) (const SSL *ssl, int type, int val));\nvoid (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,\n                                               int val);\n__owur OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);\n\nvoid SSL_set_verify_result(SSL *ssl, long v);\n__owur long SSL_get_verify_result(const SSL *ssl);\n__owur STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s);\n\n__owur size_t SSL_get_client_random(const SSL *ssl, unsigned char *out,\n                                    size_t outlen);\n__owur size_t SSL_get_server_random(const SSL *ssl, unsigned char *out,\n                                    size_t outlen);\n__owur size_t SSL_SESSION_get_master_key(const SSL_SESSION *sess,\n                                         unsigned char *out, size_t outlen);\n__owur int SSL_SESSION_set1_master_key(SSL_SESSION *sess,\n                                       const unsigned char *in, size_t len);\nuint8_t SSL_SESSION_get_max_fragment_length(const SSL_SESSION *sess);\n\n#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef)\n__owur int SSL_set_ex_data(SSL *ssl, int idx, void *data);\nvoid *SSL_get_ex_data(const SSL *ssl, int idx);\n#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef)\n__owur int SSL_SESSION_set_ex_data(SSL_SESSION *ss, int idx, void *data);\nvoid *SSL_SESSION_get_ex_data(const SSL_SESSION *ss, int idx);\n#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef)\n__owur int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);\nvoid *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);\n\n__owur int SSL_get_ex_data_X509_STORE_CTX_idx(void);\n\n# define SSL_CTX_sess_set_cache_size(ctx,t) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL)\n# define SSL_CTX_sess_get_cache_size(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL)\n# define SSL_CTX_set_session_cache_mode(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL)\n# define SSL_CTX_get_session_cache_mode(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL)\n\n# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx)\n# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m)\n# define SSL_CTX_get_read_ahead(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL)\n# define SSL_CTX_set_read_ahead(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL)\n# define SSL_CTX_get_max_cert_list(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)\n# define SSL_CTX_set_max_cert_list(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)\n# define SSL_get_max_cert_list(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)\n# define SSL_set_max_cert_list(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)\n\n# define SSL_CTX_set_max_send_fragment(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)\n# define SSL_set_max_send_fragment(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)\n# define SSL_CTX_set_split_send_fragment(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)\n# define SSL_set_split_send_fragment(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)\n# define SSL_CTX_set_max_pipelines(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)\n# define SSL_set_max_pipelines(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)\n\nvoid SSL_CTX_set_default_read_buffer_len(SSL_CTX *ctx, size_t len);\nvoid SSL_set_default_read_buffer_len(SSL *s, size_t len);\n\n# ifndef OPENSSL_NO_DH\n/* NB: the |keylength| is only applicable when is_export is true */\nvoid SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,\n                                 DH *(*dh) (SSL *ssl, int is_export,\n                                            int keylength));\nvoid SSL_set_tmp_dh_callback(SSL *ssl,\n                             DH *(*dh) (SSL *ssl, int is_export,\n                                        int keylength));\n# endif\n\n__owur const COMP_METHOD *SSL_get_current_compression(const SSL *s);\n__owur const COMP_METHOD *SSL_get_current_expansion(const SSL *s);\n__owur const char *SSL_COMP_get_name(const COMP_METHOD *comp);\n__owur const char *SSL_COMP_get0_name(const SSL_COMP *comp);\n__owur int SSL_COMP_get_id(const SSL_COMP *comp);\nSTACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);\n__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP)\n                                                             *meths);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_COMP_free_compression_methods() while(0) continue\n# endif\n__owur int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);\n\nconst SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);\nint SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c);\nint SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c);\nint SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len,\n                             int isv2format, STACK_OF(SSL_CIPHER) **sk,\n                             STACK_OF(SSL_CIPHER) **scsvs);\n\n/* TLS extensions functions */\n__owur int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);\n\n__owur int SSL_set_session_ticket_ext_cb(SSL *s,\n                                         tls_session_ticket_ext_cb_fn cb,\n                                         void *arg);\n\n/* Pre-shared secret session resumption functions */\n__owur int SSL_set_session_secret_cb(SSL *s,\n                                     tls_session_secret_cb_fn session_secret_cb,\n                                     void *arg);\n\nvoid SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx,\n                                                int (*cb) (SSL *ssl,\n                                                           int\n                                                           is_forward_secure));\n\nvoid SSL_set_not_resumable_session_callback(SSL *ssl,\n                                            int (*cb) (SSL *ssl,\n                                                       int is_forward_secure));\n\nvoid SSL_CTX_set_record_padding_callback(SSL_CTX *ctx,\n                                         size_t (*cb) (SSL *ssl, int type,\n                                                       size_t len, void *arg));\nvoid SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);\nvoid *SSL_CTX_get_record_padding_callback_arg(const SSL_CTX *ctx);\nint SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);\n\nvoid SSL_set_record_padding_callback(SSL *ssl,\n                                    size_t (*cb) (SSL *ssl, int type,\n                                                  size_t len, void *arg));\nvoid SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);\nvoid *SSL_get_record_padding_callback_arg(const SSL *ssl);\nint SSL_set_block_padding(SSL *ssl, size_t block_size);\n\nint SSL_set_num_tickets(SSL *s, size_t num_tickets);\nsize_t SSL_get_num_tickets(const SSL *s);\nint SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);\nsize_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_cache_hit(s) SSL_session_reused(s)\n# endif\n\n__owur int SSL_session_reused(const SSL *s);\n__owur int SSL_is_server(const SSL *s);\n\n__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);\nint SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);\nvoid SSL_CONF_CTX_free(SSL_CONF_CTX *cctx);\nunsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);\n__owur unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx,\n                                             unsigned int flags);\n__owur int SSL_CONF_CTX_set1_prefix(SSL_CONF_CTX *cctx, const char *pre);\n\nvoid SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);\nvoid SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);\n\n__owur int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value);\n__owur int SSL_CONF_cmd_argv(SSL_CONF_CTX *cctx, int *pargc, char ***pargv);\n__owur int SSL_CONF_cmd_value_type(SSL_CONF_CTX *cctx, const char *cmd);\n\nvoid SSL_add_ssl_module(void);\nint SSL_config(SSL *s, const char *name);\nint SSL_CTX_config(SSL_CTX *ctx, const char *name);\n\n# ifndef OPENSSL_NO_SSL_TRACE\nvoid SSL_trace(int write_p, int version, int content_type,\n               const void *buf, size_t len, SSL *ssl, void *arg);\n# endif\n\n# ifndef OPENSSL_NO_SOCK\nint DTLSv1_listen(SSL *s, BIO_ADDR *client);\n# endif\n\n# ifndef OPENSSL_NO_CT\n\n/*\n * A callback for verifying that the received SCTs are sufficient.\n * Expected to return 1 if they are sufficient, otherwise 0.\n * May return a negative integer if an error occurs.\n * A connection should be aborted if the SCTs are deemed insufficient.\n */\ntypedef int (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx,\n                                    const STACK_OF(SCT) *scts, void *arg);\n\n/*\n * Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate\n * the received SCTs.\n * If the callback returns a non-positive result, the connection is terminated.\n * Call this function before beginning a handshake.\n * If a NULL |callback| is provided, SCT validation is disabled.\n * |arg| is arbitrary userdata that will be passed to the callback whenever it\n * is invoked. Ownership of |arg| remains with the caller.\n *\n * NOTE: A side-effect of setting a CT callback is that an OCSP stapled response\n *       will be requested.\n */\nint SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,\n                                   void *arg);\nint SSL_CTX_set_ct_validation_callback(SSL_CTX *ctx,\n                                       ssl_ct_validation_cb callback,\n                                       void *arg);\n#define SSL_disable_ct(s) \\\n        ((void) SSL_set_validation_callback((s), NULL, NULL))\n#define SSL_CTX_disable_ct(ctx) \\\n        ((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL))\n\n/*\n * The validation type enumerates the available behaviours of the built-in SSL\n * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct().\n * The underlying callback is a static function in libssl.\n */\nenum {\n    SSL_CT_VALIDATION_PERMISSIVE = 0,\n    SSL_CT_VALIDATION_STRICT\n};\n\n/*\n * Enable CT by setting up a callback that implements one of the built-in\n * validation variants.  The SSL_CT_VALIDATION_PERMISSIVE variant always\n * continues the handshake, the application can make appropriate decisions at\n * handshake completion.  The SSL_CT_VALIDATION_STRICT variant requires at\n * least one valid SCT, or else handshake termination will be requested.  The\n * handshake may continue anyway if SSL_VERIFY_NONE is in effect.\n */\nint SSL_enable_ct(SSL *s, int validation_mode);\nint SSL_CTX_enable_ct(SSL_CTX *ctx, int validation_mode);\n\n/*\n * Report whether a non-NULL callback is enabled.\n */\nint SSL_ct_is_enabled(const SSL *s);\nint SSL_CTX_ct_is_enabled(const SSL_CTX *ctx);\n\n/* Gets the SCTs received from a connection */\nconst STACK_OF(SCT) *SSL_get0_peer_scts(SSL *s);\n\n/*\n * Loads the CT log list from the default location.\n * If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,\n * the log information loaded from this file will be appended to the\n * CTLOG_STORE.\n * Returns 1 on success, 0 otherwise.\n */\nint SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx);\n\n/*\n * Loads the CT log list from the specified file path.\n * If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,\n * the log information loaded from this file will be appended to the\n * CTLOG_STORE.\n * Returns 1 on success, 0 otherwise.\n */\nint SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path);\n\n/*\n * Sets the CT log list used by all SSL connections created from this SSL_CTX.\n * Ownership of the CTLOG_STORE is transferred to the SSL_CTX.\n */\nvoid SSL_CTX_set0_ctlog_store(SSL_CTX *ctx, CTLOG_STORE *logs);\n\n/*\n * Gets the CT log list used by all SSL connections created from this SSL_CTX.\n * This will be NULL unless one of the following functions has been called:\n * - SSL_CTX_set_default_ctlog_list_file\n * - SSL_CTX_set_ctlog_list_file\n * - SSL_CTX_set_ctlog_store\n */\nconst CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx);\n\n# endif /* OPENSSL_NO_CT */\n\n/* What the \"other\" parameter contains in security callback */\n/* Mask for type */\n# define SSL_SECOP_OTHER_TYPE    0xffff0000\n# define SSL_SECOP_OTHER_NONE    0\n# define SSL_SECOP_OTHER_CIPHER  (1 << 16)\n# define SSL_SECOP_OTHER_CURVE   (2 << 16)\n# define SSL_SECOP_OTHER_DH      (3 << 16)\n# define SSL_SECOP_OTHER_PKEY    (4 << 16)\n# define SSL_SECOP_OTHER_SIGALG  (5 << 16)\n# define SSL_SECOP_OTHER_CERT    (6 << 16)\n\n/* Indicated operation refers to peer key or certificate */\n# define SSL_SECOP_PEER          0x1000\n\n/* Values for \"op\" parameter in security callback */\n\n/* Called to filter ciphers */\n/* Ciphers client supports */\n# define SSL_SECOP_CIPHER_SUPPORTED      (1 | SSL_SECOP_OTHER_CIPHER)\n/* Cipher shared by client/server */\n# define SSL_SECOP_CIPHER_SHARED         (2 | SSL_SECOP_OTHER_CIPHER)\n/* Sanity check of cipher server selects */\n# define SSL_SECOP_CIPHER_CHECK          (3 | SSL_SECOP_OTHER_CIPHER)\n/* Curves supported by client */\n# define SSL_SECOP_CURVE_SUPPORTED       (4 | SSL_SECOP_OTHER_CURVE)\n/* Curves shared by client/server */\n# define SSL_SECOP_CURVE_SHARED          (5 | SSL_SECOP_OTHER_CURVE)\n/* Sanity check of curve server selects */\n# define SSL_SECOP_CURVE_CHECK           (6 | SSL_SECOP_OTHER_CURVE)\n/* Temporary DH key */\n# define SSL_SECOP_TMP_DH                (7 | SSL_SECOP_OTHER_PKEY)\n/* SSL/TLS version */\n# define SSL_SECOP_VERSION               (9 | SSL_SECOP_OTHER_NONE)\n/* Session tickets */\n# define SSL_SECOP_TICKET                (10 | SSL_SECOP_OTHER_NONE)\n/* Supported signature algorithms sent to peer */\n# define SSL_SECOP_SIGALG_SUPPORTED      (11 | SSL_SECOP_OTHER_SIGALG)\n/* Shared signature algorithm */\n# define SSL_SECOP_SIGALG_SHARED         (12 | SSL_SECOP_OTHER_SIGALG)\n/* Sanity check signature algorithm allowed */\n# define SSL_SECOP_SIGALG_CHECK          (13 | SSL_SECOP_OTHER_SIGALG)\n/* Used to get mask of supported public key signature algorithms */\n# define SSL_SECOP_SIGALG_MASK           (14 | SSL_SECOP_OTHER_SIGALG)\n/* Use to see if compression is allowed */\n# define SSL_SECOP_COMPRESSION           (15 | SSL_SECOP_OTHER_NONE)\n/* EE key in certificate */\n# define SSL_SECOP_EE_KEY                (16 | SSL_SECOP_OTHER_CERT)\n/* CA key in certificate */\n# define SSL_SECOP_CA_KEY                (17 | SSL_SECOP_OTHER_CERT)\n/* CA digest algorithm in certificate */\n# define SSL_SECOP_CA_MD                 (18 | SSL_SECOP_OTHER_CERT)\n/* Peer EE key in certificate */\n# define SSL_SECOP_PEER_EE_KEY           (SSL_SECOP_EE_KEY | SSL_SECOP_PEER)\n/* Peer CA key in certificate */\n# define SSL_SECOP_PEER_CA_KEY           (SSL_SECOP_CA_KEY | SSL_SECOP_PEER)\n/* Peer CA digest algorithm in certificate */\n# define SSL_SECOP_PEER_CA_MD            (SSL_SECOP_CA_MD | SSL_SECOP_PEER)\n\nvoid SSL_set_security_level(SSL *s, int level);\n__owur int SSL_get_security_level(const SSL *s);\nvoid SSL_set_security_callback(SSL *s,\n                               int (*cb) (const SSL *s, const SSL_CTX *ctx,\n                                          int op, int bits, int nid,\n                                          void *other, void *ex));\nint (*SSL_get_security_callback(const SSL *s)) (const SSL *s,\n                                                const SSL_CTX *ctx, int op,\n                                                int bits, int nid, void *other,\n                                                void *ex);\nvoid SSL_set0_security_ex_data(SSL *s, void *ex);\n__owur void *SSL_get0_security_ex_data(const SSL *s);\n\nvoid SSL_CTX_set_security_level(SSL_CTX *ctx, int level);\n__owur int SSL_CTX_get_security_level(const SSL_CTX *ctx);\nvoid SSL_CTX_set_security_callback(SSL_CTX *ctx,\n                                   int (*cb) (const SSL *s, const SSL_CTX *ctx,\n                                              int op, int bits, int nid,\n                                              void *other, void *ex));\nint (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,\n                                                          const SSL_CTX *ctx,\n                                                          int op, int bits,\n                                                          int nid,\n                                                          void *other,\n                                                          void *ex);\nvoid SSL_CTX_set0_security_ex_data(SSL_CTX *ctx, void *ex);\n__owur void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx);\n\n/* OPENSSL_INIT flag 0x010000 reserved for internal use */\n# define OPENSSL_INIT_NO_LOAD_SSL_STRINGS    0x00100000L\n# define OPENSSL_INIT_LOAD_SSL_STRINGS       0x00200000L\n\n# define OPENSSL_INIT_SSL_DEFAULT \\\n        (OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS)\n\nint OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);\n\n# ifndef OPENSSL_NO_UNIT_TEST\n__owur const struct openssl_ssl_test_functions *SSL_test_functions(void);\n# endif\n\n__owur int SSL_free_buffers(SSL *ssl);\n__owur int SSL_alloc_buffers(SSL *ssl);\n\n/* Status codes passed to the decrypt session ticket callback. Some of these\n * are for internal use only and are never passed to the callback. */\ntypedef int SSL_TICKET_STATUS;\n\n/* Support for ticket appdata */\n/* fatal error, malloc failure */\n# define SSL_TICKET_FATAL_ERR_MALLOC 0\n/* fatal error, either from parsing or decrypting the ticket */\n# define SSL_TICKET_FATAL_ERR_OTHER  1\n/* No ticket present */\n# define SSL_TICKET_NONE             2\n/* Empty ticket present */\n# define SSL_TICKET_EMPTY            3\n/* the ticket couldn't be decrypted */\n# define SSL_TICKET_NO_DECRYPT       4\n/* a ticket was successfully decrypted */\n# define SSL_TICKET_SUCCESS          5\n/* same as above but the ticket needs to be renewed */\n# define SSL_TICKET_SUCCESS_RENEW    6\n\n/* Return codes for the decrypt session ticket callback */\ntypedef int SSL_TICKET_RETURN;\n\n/* An error occurred */\n#define SSL_TICKET_RETURN_ABORT             0\n/* Do not use the ticket, do not send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_IGNORE            1\n/* Do not use the ticket, send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_IGNORE_RENEW      2\n/* Use the ticket, do not send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_USE               3\n/* Use the ticket, send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_USE_RENEW         4\n\ntypedef int (*SSL_CTX_generate_session_ticket_fn)(SSL *s, void *arg);\ntypedef SSL_TICKET_RETURN (*SSL_CTX_decrypt_session_ticket_fn)(SSL *s, SSL_SESSION *ss,\n                                                               const unsigned char *keyname,\n                                                               size_t keyname_length,\n                                                               SSL_TICKET_STATUS status,\n                                                               void *arg);\nint SSL_CTX_set_session_ticket_cb(SSL_CTX *ctx,\n                                  SSL_CTX_generate_session_ticket_fn gen_cb,\n                                  SSL_CTX_decrypt_session_ticket_fn dec_cb,\n                                  void *arg);\nint SSL_SESSION_set1_ticket_appdata(SSL_SESSION *ss, const void *data, size_t len);\nint SSL_SESSION_get0_ticket_appdata(SSL_SESSION *ss, void **data, size_t *len);\n\nextern const char SSL_version_str[];\n\ntypedef unsigned int (*DTLS_timer_cb)(SSL *s, unsigned int timer_us);\n\nvoid DTLS_set_timer_cb(SSL *s, DTLS_timer_cb cb);\n\n\ntypedef int (*SSL_allow_early_data_cb_fn)(SSL *s, void *arg);\nvoid SSL_CTX_set_allow_early_data_cb(SSL_CTX *ctx,\n                                     SSL_allow_early_data_cb_fn cb,\n                                     void *arg);\nvoid SSL_set_allow_early_data_cb(SSL *s,\n                                 SSL_allow_early_data_cb_fn cb,\n                                 void *arg);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ssl2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL2_H\n# define HEADER_SSL2_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SSL2_VERSION            0x0002\n\n# define SSL2_MT_CLIENT_HELLO            1\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ssl3.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL3_H\n# define HEADER_SSL3_H\n\n# include <openssl/comp.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/ssl.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * Signalling cipher suite value from RFC 5746\n * (TLS_EMPTY_RENEGOTIATION_INFO_SCSV)\n */\n# define SSL3_CK_SCSV                            0x030000FF\n\n/*\n * Signalling cipher suite value from draft-ietf-tls-downgrade-scsv-00\n * (TLS_FALLBACK_SCSV)\n */\n# define SSL3_CK_FALLBACK_SCSV                   0x03005600\n\n# define SSL3_CK_RSA_NULL_MD5                    0x03000001\n# define SSL3_CK_RSA_NULL_SHA                    0x03000002\n# define SSL3_CK_RSA_RC4_40_MD5                  0x03000003\n# define SSL3_CK_RSA_RC4_128_MD5                 0x03000004\n# define SSL3_CK_RSA_RC4_128_SHA                 0x03000005\n# define SSL3_CK_RSA_RC2_40_MD5                  0x03000006\n# define SSL3_CK_RSA_IDEA_128_SHA                0x03000007\n# define SSL3_CK_RSA_DES_40_CBC_SHA              0x03000008\n# define SSL3_CK_RSA_DES_64_CBC_SHA              0x03000009\n# define SSL3_CK_RSA_DES_192_CBC3_SHA            0x0300000A\n\n# define SSL3_CK_DH_DSS_DES_40_CBC_SHA           0x0300000B\n# define SSL3_CK_DH_DSS_DES_64_CBC_SHA           0x0300000C\n# define SSL3_CK_DH_DSS_DES_192_CBC3_SHA         0x0300000D\n# define SSL3_CK_DH_RSA_DES_40_CBC_SHA           0x0300000E\n# define SSL3_CK_DH_RSA_DES_64_CBC_SHA           0x0300000F\n# define SSL3_CK_DH_RSA_DES_192_CBC3_SHA         0x03000010\n\n# define SSL3_CK_DHE_DSS_DES_40_CBC_SHA          0x03000011\n# define SSL3_CK_EDH_DSS_DES_40_CBC_SHA          SSL3_CK_DHE_DSS_DES_40_CBC_SHA\n# define SSL3_CK_DHE_DSS_DES_64_CBC_SHA          0x03000012\n# define SSL3_CK_EDH_DSS_DES_64_CBC_SHA          SSL3_CK_DHE_DSS_DES_64_CBC_SHA\n# define SSL3_CK_DHE_DSS_DES_192_CBC3_SHA        0x03000013\n# define SSL3_CK_EDH_DSS_DES_192_CBC3_SHA        SSL3_CK_DHE_DSS_DES_192_CBC3_SHA\n# define SSL3_CK_DHE_RSA_DES_40_CBC_SHA          0x03000014\n# define SSL3_CK_EDH_RSA_DES_40_CBC_SHA          SSL3_CK_DHE_RSA_DES_40_CBC_SHA\n# define SSL3_CK_DHE_RSA_DES_64_CBC_SHA          0x03000015\n# define SSL3_CK_EDH_RSA_DES_64_CBC_SHA          SSL3_CK_DHE_RSA_DES_64_CBC_SHA\n# define SSL3_CK_DHE_RSA_DES_192_CBC3_SHA        0x03000016\n# define SSL3_CK_EDH_RSA_DES_192_CBC3_SHA        SSL3_CK_DHE_RSA_DES_192_CBC3_SHA\n\n# define SSL3_CK_ADH_RC4_40_MD5                  0x03000017\n# define SSL3_CK_ADH_RC4_128_MD5                 0x03000018\n# define SSL3_CK_ADH_DES_40_CBC_SHA              0x03000019\n# define SSL3_CK_ADH_DES_64_CBC_SHA              0x0300001A\n# define SSL3_CK_ADH_DES_192_CBC_SHA             0x0300001B\n\n/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */\n# define SSL3_RFC_RSA_NULL_MD5                   \"TLS_RSA_WITH_NULL_MD5\"\n# define SSL3_RFC_RSA_NULL_SHA                   \"TLS_RSA_WITH_NULL_SHA\"\n# define SSL3_RFC_RSA_DES_192_CBC3_SHA           \"TLS_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_DHE_DSS_DES_192_CBC3_SHA       \"TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_DHE_RSA_DES_192_CBC3_SHA       \"TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_ADH_DES_192_CBC_SHA            \"TLS_DH_anon_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_RSA_IDEA_128_SHA               \"TLS_RSA_WITH_IDEA_CBC_SHA\"\n# define SSL3_RFC_RSA_RC4_128_MD5                \"TLS_RSA_WITH_RC4_128_MD5\"\n# define SSL3_RFC_RSA_RC4_128_SHA                \"TLS_RSA_WITH_RC4_128_SHA\"\n# define SSL3_RFC_ADH_RC4_128_MD5                \"TLS_DH_anon_WITH_RC4_128_MD5\"\n\n# define SSL3_TXT_RSA_NULL_MD5                   \"NULL-MD5\"\n# define SSL3_TXT_RSA_NULL_SHA                   \"NULL-SHA\"\n# define SSL3_TXT_RSA_RC4_40_MD5                 \"EXP-RC4-MD5\"\n# define SSL3_TXT_RSA_RC4_128_MD5                \"RC4-MD5\"\n# define SSL3_TXT_RSA_RC4_128_SHA                \"RC4-SHA\"\n# define SSL3_TXT_RSA_RC2_40_MD5                 \"EXP-RC2-CBC-MD5\"\n# define SSL3_TXT_RSA_IDEA_128_SHA               \"IDEA-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_40_CBC_SHA             \"EXP-DES-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_64_CBC_SHA             \"DES-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_192_CBC3_SHA           \"DES-CBC3-SHA\"\n\n# define SSL3_TXT_DH_DSS_DES_40_CBC_SHA          \"EXP-DH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DH_DSS_DES_64_CBC_SHA          \"DH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DH_DSS_DES_192_CBC3_SHA        \"DH-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_DH_RSA_DES_40_CBC_SHA          \"EXP-DH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DH_RSA_DES_64_CBC_SHA          \"DH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DH_RSA_DES_192_CBC3_SHA        \"DH-RSA-DES-CBC3-SHA\"\n\n# define SSL3_TXT_DHE_DSS_DES_40_CBC_SHA         \"EXP-DHE-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_DSS_DES_64_CBC_SHA         \"DHE-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_DSS_DES_192_CBC3_SHA       \"DHE-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_40_CBC_SHA         \"EXP-DHE-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_64_CBC_SHA         \"DHE-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_192_CBC3_SHA       \"DHE-RSA-DES-CBC3-SHA\"\n\n/*\n * This next block of six \"EDH\" labels is for backward compatibility with\n * older versions of OpenSSL.  New code should use the six \"DHE\" labels above\n * instead:\n */\n# define SSL3_TXT_EDH_DSS_DES_40_CBC_SHA         \"EXP-EDH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_DSS_DES_64_CBC_SHA         \"EDH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA       \"EDH-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_40_CBC_SHA         \"EXP-EDH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_64_CBC_SHA         \"EDH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA       \"EDH-RSA-DES-CBC3-SHA\"\n\n# define SSL3_TXT_ADH_RC4_40_MD5                 \"EXP-ADH-RC4-MD5\"\n# define SSL3_TXT_ADH_RC4_128_MD5                \"ADH-RC4-MD5\"\n# define SSL3_TXT_ADH_DES_40_CBC_SHA             \"EXP-ADH-DES-CBC-SHA\"\n# define SSL3_TXT_ADH_DES_64_CBC_SHA             \"ADH-DES-CBC-SHA\"\n# define SSL3_TXT_ADH_DES_192_CBC_SHA            \"ADH-DES-CBC3-SHA\"\n\n# define SSL3_SSL_SESSION_ID_LENGTH              32\n# define SSL3_MAX_SSL_SESSION_ID_LENGTH          32\n\n# define SSL3_MASTER_SECRET_SIZE                 48\n# define SSL3_RANDOM_SIZE                        32\n# define SSL3_SESSION_ID_SIZE                    32\n# define SSL3_RT_HEADER_LENGTH                   5\n\n# define SSL3_HM_HEADER_LENGTH                  4\n\n# ifndef SSL3_ALIGN_PAYLOAD\n /*\n  * Some will argue that this increases memory footprint, but it's not\n  * actually true. Point is that malloc has to return at least 64-bit aligned\n  * pointers, meaning that allocating 5 bytes wastes 3 bytes in either case.\n  * Suggested pre-gaping simply moves these wasted bytes from the end of\n  * allocated region to its front, but makes data payload aligned, which\n  * improves performance:-)\n  */\n#  define SSL3_ALIGN_PAYLOAD                     8\n# else\n#  if (SSL3_ALIGN_PAYLOAD&(SSL3_ALIGN_PAYLOAD-1))!=0\n#   error \"insane SSL3_ALIGN_PAYLOAD\"\n#   undef SSL3_ALIGN_PAYLOAD\n#  endif\n# endif\n\n/*\n * This is the maximum MAC (digest) size used by the SSL library. Currently\n * maximum of 20 is used by SHA1, but we reserve for future extension for\n * 512-bit hashes.\n */\n\n# define SSL3_RT_MAX_MD_SIZE                     64\n\n/*\n * Maximum block size used in all ciphersuites. Currently 16 for AES.\n */\n\n# define SSL_RT_MAX_CIPHER_BLOCK_SIZE            16\n\n# define SSL3_RT_MAX_EXTRA                       (16384)\n\n/* Maximum plaintext length: defined by SSL/TLS standards */\n# define SSL3_RT_MAX_PLAIN_LENGTH                16384\n/* Maximum compression overhead: defined by SSL/TLS standards */\n# define SSL3_RT_MAX_COMPRESSED_OVERHEAD         1024\n\n/*\n * The standards give a maximum encryption overhead of 1024 bytes. In\n * practice the value is lower than this. The overhead is the maximum number\n * of padding bytes (256) plus the mac size.\n */\n# define SSL3_RT_MAX_ENCRYPTED_OVERHEAD        (256 + SSL3_RT_MAX_MD_SIZE)\n# define SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD  256\n\n/*\n * OpenSSL currently only uses a padding length of at most one block so the\n * send overhead is smaller.\n */\n\n# define SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD \\\n                        (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)\n\n/* If compression isn't used don't include the compression overhead */\n\n# ifdef OPENSSL_NO_COMP\n#  define SSL3_RT_MAX_COMPRESSED_LENGTH           SSL3_RT_MAX_PLAIN_LENGTH\n# else\n#  define SSL3_RT_MAX_COMPRESSED_LENGTH   \\\n            (SSL3_RT_MAX_PLAIN_LENGTH+SSL3_RT_MAX_COMPRESSED_OVERHEAD)\n# endif\n# define SSL3_RT_MAX_ENCRYPTED_LENGTH    \\\n            (SSL3_RT_MAX_ENCRYPTED_OVERHEAD+SSL3_RT_MAX_COMPRESSED_LENGTH)\n# define SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH \\\n            (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD)\n# define SSL3_RT_MAX_PACKET_SIZE         \\\n            (SSL3_RT_MAX_ENCRYPTED_LENGTH+SSL3_RT_HEADER_LENGTH)\n\n# define SSL3_MD_CLIENT_FINISHED_CONST   \"\\x43\\x4C\\x4E\\x54\"\n# define SSL3_MD_SERVER_FINISHED_CONST   \"\\x53\\x52\\x56\\x52\"\n\n# define SSL3_VERSION                    0x0300\n# define SSL3_VERSION_MAJOR              0x03\n# define SSL3_VERSION_MINOR              0x00\n\n# define SSL3_RT_CHANGE_CIPHER_SPEC      20\n# define SSL3_RT_ALERT                   21\n# define SSL3_RT_HANDSHAKE               22\n# define SSL3_RT_APPLICATION_DATA        23\n# define DTLS1_RT_HEARTBEAT              24\n\n/* Pseudo content types to indicate additional parameters */\n# define TLS1_RT_CRYPTO                  0x1000\n# define TLS1_RT_CRYPTO_PREMASTER        (TLS1_RT_CRYPTO | 0x1)\n# define TLS1_RT_CRYPTO_CLIENT_RANDOM    (TLS1_RT_CRYPTO | 0x2)\n# define TLS1_RT_CRYPTO_SERVER_RANDOM    (TLS1_RT_CRYPTO | 0x3)\n# define TLS1_RT_CRYPTO_MASTER           (TLS1_RT_CRYPTO | 0x4)\n\n# define TLS1_RT_CRYPTO_READ             0x0000\n# define TLS1_RT_CRYPTO_WRITE            0x0100\n# define TLS1_RT_CRYPTO_MAC              (TLS1_RT_CRYPTO | 0x5)\n# define TLS1_RT_CRYPTO_KEY              (TLS1_RT_CRYPTO | 0x6)\n# define TLS1_RT_CRYPTO_IV               (TLS1_RT_CRYPTO | 0x7)\n# define TLS1_RT_CRYPTO_FIXED_IV         (TLS1_RT_CRYPTO | 0x8)\n\n/* Pseudo content types for SSL/TLS header info */\n# define SSL3_RT_HEADER                  0x100\n# define SSL3_RT_INNER_CONTENT_TYPE      0x101\n\n# define SSL3_AL_WARNING                 1\n# define SSL3_AL_FATAL                   2\n\n# define SSL3_AD_CLOSE_NOTIFY             0\n# define SSL3_AD_UNEXPECTED_MESSAGE      10/* fatal */\n# define SSL3_AD_BAD_RECORD_MAC          20/* fatal */\n# define SSL3_AD_DECOMPRESSION_FAILURE   30/* fatal */\n# define SSL3_AD_HANDSHAKE_FAILURE       40/* fatal */\n# define SSL3_AD_NO_CERTIFICATE          41\n# define SSL3_AD_BAD_CERTIFICATE         42\n# define SSL3_AD_UNSUPPORTED_CERTIFICATE 43\n# define SSL3_AD_CERTIFICATE_REVOKED     44\n# define SSL3_AD_CERTIFICATE_EXPIRED     45\n# define SSL3_AD_CERTIFICATE_UNKNOWN     46\n# define SSL3_AD_ILLEGAL_PARAMETER       47/* fatal */\n\n# define TLS1_HB_REQUEST         1\n# define TLS1_HB_RESPONSE        2\n\n\n# define SSL3_CT_RSA_SIGN                        1\n# define SSL3_CT_DSS_SIGN                        2\n# define SSL3_CT_RSA_FIXED_DH                    3\n# define SSL3_CT_DSS_FIXED_DH                    4\n# define SSL3_CT_RSA_EPHEMERAL_DH                5\n# define SSL3_CT_DSS_EPHEMERAL_DH                6\n# define SSL3_CT_FORTEZZA_DMS                    20\n/*\n * SSL3_CT_NUMBER is used to size arrays and it must be large enough to\n * contain all of the cert types defined for *either* SSLv3 and TLSv1.\n */\n# define SSL3_CT_NUMBER                  10\n\n# if defined(TLS_CT_NUMBER)\n#  if TLS_CT_NUMBER != SSL3_CT_NUMBER\n#    error \"SSL/TLS CT_NUMBER values do not match\"\n#  endif\n# endif\n\n/* No longer used as of OpenSSL 1.1.1 */\n# define SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS       0x0001\n\n/* Removed from OpenSSL 1.1.0 */\n# define TLS1_FLAGS_TLS_PADDING_BUG              0x0\n\n# define TLS1_FLAGS_SKIP_CERT_VERIFY             0x0010\n\n/* Set if we encrypt then mac instead of usual mac then encrypt */\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC_READ        0x0100\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC             TLS1_FLAGS_ENCRYPT_THEN_MAC_READ\n\n/* Set if extended master secret extension received from peer */\n# define TLS1_FLAGS_RECEIVED_EXTMS               0x0200\n\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE       0x0400\n\n# define TLS1_FLAGS_STATELESS                    0x0800\n\n/* Set if extended master secret extension required on renegotiation */\n# define TLS1_FLAGS_REQUIRED_EXTMS               0x1000\n\n# define SSL3_MT_HELLO_REQUEST                   0\n# define SSL3_MT_CLIENT_HELLO                    1\n# define SSL3_MT_SERVER_HELLO                    2\n# define SSL3_MT_NEWSESSION_TICKET               4\n# define SSL3_MT_END_OF_EARLY_DATA               5\n# define SSL3_MT_ENCRYPTED_EXTENSIONS            8\n# define SSL3_MT_CERTIFICATE                     11\n# define SSL3_MT_SERVER_KEY_EXCHANGE             12\n# define SSL3_MT_CERTIFICATE_REQUEST             13\n# define SSL3_MT_SERVER_DONE                     14\n# define SSL3_MT_CERTIFICATE_VERIFY              15\n# define SSL3_MT_CLIENT_KEY_EXCHANGE             16\n# define SSL3_MT_FINISHED                        20\n# define SSL3_MT_CERTIFICATE_URL                 21\n# define SSL3_MT_CERTIFICATE_STATUS              22\n# define SSL3_MT_SUPPLEMENTAL_DATA               23\n# define SSL3_MT_KEY_UPDATE                      24\n# ifndef OPENSSL_NO_NEXTPROTONEG\n#  define SSL3_MT_NEXT_PROTO                     67\n# endif\n# define SSL3_MT_MESSAGE_HASH                    254\n# define DTLS1_MT_HELLO_VERIFY_REQUEST           3\n\n/* Dummy message type for handling CCS like a normal handshake message */\n# define SSL3_MT_CHANGE_CIPHER_SPEC              0x0101\n\n# define SSL3_MT_CCS                             1\n\n/* These are used when changing over to a new cipher */\n# define SSL3_CC_READ            0x001\n# define SSL3_CC_WRITE           0x002\n# define SSL3_CC_CLIENT          0x010\n# define SSL3_CC_SERVER          0x020\n# define SSL3_CC_EARLY           0x040\n# define SSL3_CC_HANDSHAKE       0x080\n# define SSL3_CC_APPLICATION     0x100\n# define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT|SSL3_CC_WRITE)\n# define SSL3_CHANGE_CIPHER_SERVER_READ  (SSL3_CC_SERVER|SSL3_CC_READ)\n# define SSL3_CHANGE_CIPHER_CLIENT_READ  (SSL3_CC_CLIENT|SSL3_CC_READ)\n# define SSL3_CHANGE_CIPHER_SERVER_WRITE (SSL3_CC_SERVER|SSL3_CC_WRITE)\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/sslerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSLERR_H\n# define HEADER_SSLERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_SSL_strings(void);\n\n/*\n * SSL function codes.\n */\n# define SSL_F_ADD_CLIENT_KEY_SHARE_EXT                   438\n# define SSL_F_ADD_KEY_SHARE                              512\n# define SSL_F_BYTES_TO_CIPHER_LIST                       519\n# define SSL_F_CHECK_SUITEB_CIPHER_LIST                   331\n# define SSL_F_CIPHERSUITE_CB                             622\n# define SSL_F_CONSTRUCT_CA_NAMES                         552\n# define SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS                 553\n# define SSL_F_CONSTRUCT_STATEFUL_TICKET                  636\n# define SSL_F_CONSTRUCT_STATELESS_TICKET                 637\n# define SSL_F_CREATE_SYNTHETIC_MESSAGE_HASH              539\n# define SSL_F_CREATE_TICKET_PREQUEL                      638\n# define SSL_F_CT_MOVE_SCTS                               345\n# define SSL_F_CT_STRICT                                  349\n# define SSL_F_CUSTOM_EXT_ADD                             554\n# define SSL_F_CUSTOM_EXT_PARSE                           555\n# define SSL_F_D2I_SSL_SESSION                            103\n# define SSL_F_DANE_CTX_ENABLE                            347\n# define SSL_F_DANE_MTYPE_SET                             393\n# define SSL_F_DANE_TLSA_ADD                              394\n# define SSL_F_DERIVE_SECRET_KEY_AND_IV                   514\n# define SSL_F_DO_DTLS1_WRITE                             245\n# define SSL_F_DO_SSL3_WRITE                              104\n# define SSL_F_DTLS1_BUFFER_RECORD                        247\n# define SSL_F_DTLS1_CHECK_TIMEOUT_NUM                    318\n# define SSL_F_DTLS1_HEARTBEAT                            305\n# define SSL_F_DTLS1_HM_FRAGMENT_NEW                      623\n# define SSL_F_DTLS1_PREPROCESS_FRAGMENT                  288\n# define SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS             424\n# define SSL_F_DTLS1_PROCESS_RECORD                       257\n# define SSL_F_DTLS1_READ_BYTES                           258\n# define SSL_F_DTLS1_READ_FAILED                          339\n# define SSL_F_DTLS1_RETRANSMIT_MESSAGE                   390\n# define SSL_F_DTLS1_WRITE_APP_DATA_BYTES                 268\n# define SSL_F_DTLS1_WRITE_BYTES                          545\n# define SSL_F_DTLSV1_LISTEN                              350\n# define SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC          371\n# define SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST        385\n# define SSL_F_DTLS_GET_REASSEMBLED_MESSAGE               370\n# define SSL_F_DTLS_PROCESS_HELLO_VERIFY                  386\n# define SSL_F_DTLS_RECORD_LAYER_NEW                      635\n# define SSL_F_DTLS_WAIT_FOR_DRY                          592\n# define SSL_F_EARLY_DATA_COUNT_OK                        532\n# define SSL_F_FINAL_EARLY_DATA                           556\n# define SSL_F_FINAL_EC_PT_FORMATS                        485\n# define SSL_F_FINAL_EMS                                  486\n# define SSL_F_FINAL_KEY_SHARE                            503\n# define SSL_F_FINAL_MAXFRAGMENTLEN                       557\n# define SSL_F_FINAL_RENEGOTIATE                          483\n# define SSL_F_FINAL_SERVER_NAME                          558\n# define SSL_F_FINAL_SIG_ALGS                             497\n# define SSL_F_GET_CERT_VERIFY_TBS_DATA                   588\n# define SSL_F_NSS_KEYLOG_INT                             500\n# define SSL_F_OPENSSL_INIT_SSL                           342\n# define SSL_F_OSSL_STATEM_CLIENT13_READ_TRANSITION       436\n# define SSL_F_OSSL_STATEM_CLIENT13_WRITE_TRANSITION      598\n# define SSL_F_OSSL_STATEM_CLIENT_CONSTRUCT_MESSAGE       430\n# define SSL_F_OSSL_STATEM_CLIENT_POST_PROCESS_MESSAGE    593\n# define SSL_F_OSSL_STATEM_CLIENT_PROCESS_MESSAGE         594\n# define SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION         417\n# define SSL_F_OSSL_STATEM_CLIENT_WRITE_TRANSITION        599\n# define SSL_F_OSSL_STATEM_SERVER13_READ_TRANSITION       437\n# define SSL_F_OSSL_STATEM_SERVER13_WRITE_TRANSITION      600\n# define SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE       431\n# define SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE    601\n# define SSL_F_OSSL_STATEM_SERVER_POST_WORK               602\n# define SSL_F_OSSL_STATEM_SERVER_PRE_WORK                640\n# define SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE         603\n# define SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION         418\n# define SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION        604\n# define SSL_F_PARSE_CA_NAMES                             541\n# define SSL_F_PITEM_NEW                                  624\n# define SSL_F_PQUEUE_NEW                                 625\n# define SSL_F_PROCESS_KEY_SHARE_EXT                      439\n# define SSL_F_READ_STATE_MACHINE                         352\n# define SSL_F_SET_CLIENT_CIPHERSUITE                     540\n# define SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET          595\n# define SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET          589\n# define SSL_F_SRP_VERIFY_SERVER_PARAM                    596\n# define SSL_F_SSL3_CHANGE_CIPHER_STATE                   129\n# define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM              130\n# define SSL_F_SSL3_CTRL                                  213\n# define SSL_F_SSL3_CTX_CTRL                              133\n# define SSL_F_SSL3_DIGEST_CACHED_RECORDS                 293\n# define SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC                 292\n# define SSL_F_SSL3_ENC                                   608\n# define SSL_F_SSL3_FINAL_FINISH_MAC                      285\n# define SSL_F_SSL3_FINISH_MAC                            587\n# define SSL_F_SSL3_GENERATE_KEY_BLOCK                    238\n# define SSL_F_SSL3_GENERATE_MASTER_SECRET                388\n# define SSL_F_SSL3_GET_RECORD                            143\n# define SSL_F_SSL3_INIT_FINISHED_MAC                     397\n# define SSL_F_SSL3_OUTPUT_CERT_CHAIN                     147\n# define SSL_F_SSL3_READ_BYTES                            148\n# define SSL_F_SSL3_READ_N                                149\n# define SSL_F_SSL3_SETUP_KEY_BLOCK                       157\n# define SSL_F_SSL3_SETUP_READ_BUFFER                     156\n# define SSL_F_SSL3_SETUP_WRITE_BUFFER                    291\n# define SSL_F_SSL3_WRITE_BYTES                           158\n# define SSL_F_SSL3_WRITE_PENDING                         159\n# define SSL_F_SSL_ADD_CERT_CHAIN                         316\n# define SSL_F_SSL_ADD_CERT_TO_BUF                        319\n# define SSL_F_SSL_ADD_CERT_TO_WPACKET                    493\n# define SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT        298\n# define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT                 277\n# define SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT           307\n# define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK         215\n# define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK        216\n# define SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT        299\n# define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT                 278\n# define SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT           308\n# define SSL_F_SSL_BAD_METHOD                             160\n# define SSL_F_SSL_BUILD_CERT_CHAIN                       332\n# define SSL_F_SSL_BYTES_TO_CIPHER_LIST                   161\n# define SSL_F_SSL_CACHE_CIPHERLIST                       520\n# define SSL_F_SSL_CERT_ADD0_CHAIN_CERT                   346\n# define SSL_F_SSL_CERT_DUP                               221\n# define SSL_F_SSL_CERT_NEW                               162\n# define SSL_F_SSL_CERT_SET0_CHAIN                        340\n# define SSL_F_SSL_CHECK_PRIVATE_KEY                      163\n# define SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT               280\n# define SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO              606\n# define SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG            279\n# define SSL_F_SSL_CHOOSE_CLIENT_VERSION                  607\n# define SSL_F_SSL_CIPHER_DESCRIPTION                     626\n# define SSL_F_SSL_CIPHER_LIST_TO_BYTES                   425\n# define SSL_F_SSL_CIPHER_PROCESS_RULESTR                 230\n# define SSL_F_SSL_CIPHER_STRENGTH_SORT                   231\n# define SSL_F_SSL_CLEAR                                  164\n# define SSL_F_SSL_CLIENT_HELLO_GET1_EXTENSIONS_PRESENT   627\n# define SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD            165\n# define SSL_F_SSL_CONF_CMD                               334\n# define SSL_F_SSL_CREATE_CIPHER_LIST                     166\n# define SSL_F_SSL_CTRL                                   232\n# define SSL_F_SSL_CTX_CHECK_PRIVATE_KEY                  168\n# define SSL_F_SSL_CTX_ENABLE_CT                          398\n# define SSL_F_SSL_CTX_MAKE_PROFILES                      309\n# define SSL_F_SSL_CTX_NEW                                169\n# define SSL_F_SSL_CTX_SET_ALPN_PROTOS                    343\n# define SSL_F_SSL_CTX_SET_CIPHER_LIST                    269\n# define SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE             290\n# define SSL_F_SSL_CTX_SET_CT_VALIDATION_CALLBACK         396\n# define SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT             219\n# define SSL_F_SSL_CTX_SET_SSL_VERSION                    170\n# define SSL_F_SSL_CTX_SET_TLSEXT_MAX_FRAGMENT_LENGTH     551\n# define SSL_F_SSL_CTX_USE_CERTIFICATE                    171\n# define SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1               172\n# define SSL_F_SSL_CTX_USE_CERTIFICATE_FILE               173\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY                     174\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1                175\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE                176\n# define SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT              272\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY                  177\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1             178\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE             179\n# define SSL_F_SSL_CTX_USE_SERVERINFO                     336\n# define SSL_F_SSL_CTX_USE_SERVERINFO_EX                  543\n# define SSL_F_SSL_CTX_USE_SERVERINFO_FILE                337\n# define SSL_F_SSL_DANE_DUP                               403\n# define SSL_F_SSL_DANE_ENABLE                            395\n# define SSL_F_SSL_DERIVE                                 590\n# define SSL_F_SSL_DO_CONFIG                              391\n# define SSL_F_SSL_DO_HANDSHAKE                           180\n# define SSL_F_SSL_DUP_CA_LIST                            408\n# define SSL_F_SSL_ENABLE_CT                              402\n# define SSL_F_SSL_GENERATE_PKEY_GROUP                    559\n# define SSL_F_SSL_GENERATE_SESSION_ID                    547\n# define SSL_F_SSL_GET_NEW_SESSION                        181\n# define SSL_F_SSL_GET_PREV_SESSION                       217\n# define SSL_F_SSL_GET_SERVER_CERT_INDEX                  322\n# define SSL_F_SSL_GET_SIGN_PKEY                          183\n# define SSL_F_SSL_HANDSHAKE_HASH                         560\n# define SSL_F_SSL_INIT_WBIO_BUFFER                       184\n# define SSL_F_SSL_KEY_UPDATE                             515\n# define SSL_F_SSL_LOAD_CLIENT_CA_FILE                    185\n# define SSL_F_SSL_LOG_MASTER_SECRET                      498\n# define SSL_F_SSL_LOG_RSA_CLIENT_KEY_EXCHANGE            499\n# define SSL_F_SSL_MODULE_INIT                            392\n# define SSL_F_SSL_NEW                                    186\n# define SSL_F_SSL_NEXT_PROTO_VALIDATE                    565\n# define SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT      300\n# define SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT               302\n# define SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT         310\n# define SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT      301\n# define SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT               303\n# define SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT         311\n# define SSL_F_SSL_PEEK                                   270\n# define SSL_F_SSL_PEEK_EX                                432\n# define SSL_F_SSL_PEEK_INTERNAL                          522\n# define SSL_F_SSL_READ                                   223\n# define SSL_F_SSL_READ_EARLY_DATA                        529\n# define SSL_F_SSL_READ_EX                                434\n# define SSL_F_SSL_READ_INTERNAL                          523\n# define SSL_F_SSL_RENEGOTIATE                            516\n# define SSL_F_SSL_RENEGOTIATE_ABBREVIATED                546\n# define SSL_F_SSL_SCAN_CLIENTHELLO_TLSEXT                320\n# define SSL_F_SSL_SCAN_SERVERHELLO_TLSEXT                321\n# define SSL_F_SSL_SESSION_DUP                            348\n# define SSL_F_SSL_SESSION_NEW                            189\n# define SSL_F_SSL_SESSION_PRINT_FP                       190\n# define SSL_F_SSL_SESSION_SET1_ID                        423\n# define SSL_F_SSL_SESSION_SET1_ID_CONTEXT                312\n# define SSL_F_SSL_SET_ALPN_PROTOS                        344\n# define SSL_F_SSL_SET_CERT                               191\n# define SSL_F_SSL_SET_CERT_AND_KEY                       621\n# define SSL_F_SSL_SET_CIPHER_LIST                        271\n# define SSL_F_SSL_SET_CT_VALIDATION_CALLBACK             399\n# define SSL_F_SSL_SET_FD                                 192\n# define SSL_F_SSL_SET_PKEY                               193\n# define SSL_F_SSL_SET_RFD                                194\n# define SSL_F_SSL_SET_SESSION                            195\n# define SSL_F_SSL_SET_SESSION_ID_CONTEXT                 218\n# define SSL_F_SSL_SET_SESSION_TICKET_EXT                 294\n# define SSL_F_SSL_SET_TLSEXT_MAX_FRAGMENT_LENGTH         550\n# define SSL_F_SSL_SET_WFD                                196\n# define SSL_F_SSL_SHUTDOWN                               224\n# define SSL_F_SSL_SRP_CTX_INIT                           313\n# define SSL_F_SSL_START_ASYNC_JOB                        389\n# define SSL_F_SSL_UNDEFINED_FUNCTION                     197\n# define SSL_F_SSL_UNDEFINED_VOID_FUNCTION                244\n# define SSL_F_SSL_USE_CERTIFICATE                        198\n# define SSL_F_SSL_USE_CERTIFICATE_ASN1                   199\n# define SSL_F_SSL_USE_CERTIFICATE_FILE                   200\n# define SSL_F_SSL_USE_PRIVATEKEY                         201\n# define SSL_F_SSL_USE_PRIVATEKEY_ASN1                    202\n# define SSL_F_SSL_USE_PRIVATEKEY_FILE                    203\n# define SSL_F_SSL_USE_PSK_IDENTITY_HINT                  273\n# define SSL_F_SSL_USE_RSAPRIVATEKEY                      204\n# define SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1                 205\n# define SSL_F_SSL_USE_RSAPRIVATEKEY_FILE                 206\n# define SSL_F_SSL_VALIDATE_CT                            400\n# define SSL_F_SSL_VERIFY_CERT_CHAIN                      207\n# define SSL_F_SSL_VERIFY_CLIENT_POST_HANDSHAKE           616\n# define SSL_F_SSL_WRITE                                  208\n# define SSL_F_SSL_WRITE_EARLY_DATA                       526\n# define SSL_F_SSL_WRITE_EARLY_FINISH                     527\n# define SSL_F_SSL_WRITE_EX                               433\n# define SSL_F_SSL_WRITE_INTERNAL                         524\n# define SSL_F_STATE_MACHINE                              353\n# define SSL_F_TLS12_CHECK_PEER_SIGALG                    333\n# define SSL_F_TLS12_COPY_SIGALGS                         533\n# define SSL_F_TLS13_CHANGE_CIPHER_STATE                  440\n# define SSL_F_TLS13_ENC                                  609\n# define SSL_F_TLS13_FINAL_FINISH_MAC                     605\n# define SSL_F_TLS13_GENERATE_SECRET                      591\n# define SSL_F_TLS13_HKDF_EXPAND                          561\n# define SSL_F_TLS13_RESTORE_HANDSHAKE_DIGEST_FOR_PHA     617\n# define SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA        618\n# define SSL_F_TLS13_SETUP_KEY_BLOCK                      441\n# define SSL_F_TLS1_CHANGE_CIPHER_STATE                   209\n# define SSL_F_TLS1_CHECK_DUPLICATE_EXTENSIONS            341\n# define SSL_F_TLS1_ENC                                   401\n# define SSL_F_TLS1_EXPORT_KEYING_MATERIAL                314\n# define SSL_F_TLS1_GET_CURVELIST                         338\n# define SSL_F_TLS1_PRF                                   284\n# define SSL_F_TLS1_SAVE_U16                              628\n# define SSL_F_TLS1_SETUP_KEY_BLOCK                       211\n# define SSL_F_TLS1_SET_GROUPS                            629\n# define SSL_F_TLS1_SET_RAW_SIGALGS                       630\n# define SSL_F_TLS1_SET_SERVER_SIGALGS                    335\n# define SSL_F_TLS1_SET_SHARED_SIGALGS                    631\n# define SSL_F_TLS1_SET_SIGALGS                           632\n# define SSL_F_TLS_CHOOSE_SIGALG                          513\n# define SSL_F_TLS_CLIENT_KEY_EXCHANGE_POST_WORK          354\n# define SSL_F_TLS_COLLECT_EXTENSIONS                     435\n# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_AUTHORITIES      542\n# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_REQUEST          372\n# define SSL_F_TLS_CONSTRUCT_CERT_STATUS                  429\n# define SSL_F_TLS_CONSTRUCT_CERT_STATUS_BODY             494\n# define SSL_F_TLS_CONSTRUCT_CERT_VERIFY                  496\n# define SSL_F_TLS_CONSTRUCT_CHANGE_CIPHER_SPEC           427\n# define SSL_F_TLS_CONSTRUCT_CKE_DHE                      404\n# define SSL_F_TLS_CONSTRUCT_CKE_ECDHE                    405\n# define SSL_F_TLS_CONSTRUCT_CKE_GOST                     406\n# define SSL_F_TLS_CONSTRUCT_CKE_PSK_PREAMBLE             407\n# define SSL_F_TLS_CONSTRUCT_CKE_RSA                      409\n# define SSL_F_TLS_CONSTRUCT_CKE_SRP                      410\n# define SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE           484\n# define SSL_F_TLS_CONSTRUCT_CLIENT_HELLO                 487\n# define SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE          488\n# define SSL_F_TLS_CONSTRUCT_CLIENT_VERIFY                489\n# define SSL_F_TLS_CONSTRUCT_CTOS_ALPN                    466\n# define SSL_F_TLS_CONSTRUCT_CTOS_CERTIFICATE             355\n# define SSL_F_TLS_CONSTRUCT_CTOS_COOKIE                  535\n# define SSL_F_TLS_CONSTRUCT_CTOS_EARLY_DATA              530\n# define SSL_F_TLS_CONSTRUCT_CTOS_EC_PT_FORMATS           467\n# define SSL_F_TLS_CONSTRUCT_CTOS_EMS                     468\n# define SSL_F_TLS_CONSTRUCT_CTOS_ETM                     469\n# define SSL_F_TLS_CONSTRUCT_CTOS_HELLO                   356\n# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_EXCHANGE            357\n# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE               470\n# define SSL_F_TLS_CONSTRUCT_CTOS_MAXFRAGMENTLEN          549\n# define SSL_F_TLS_CONSTRUCT_CTOS_NPN                     471\n# define SSL_F_TLS_CONSTRUCT_CTOS_PADDING                 472\n# define SSL_F_TLS_CONSTRUCT_CTOS_POST_HANDSHAKE_AUTH     619\n# define SSL_F_TLS_CONSTRUCT_CTOS_PSK                     501\n# define SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES           509\n# define SSL_F_TLS_CONSTRUCT_CTOS_RENEGOTIATE             473\n# define SSL_F_TLS_CONSTRUCT_CTOS_SCT                     474\n# define SSL_F_TLS_CONSTRUCT_CTOS_SERVER_NAME             475\n# define SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET          476\n# define SSL_F_TLS_CONSTRUCT_CTOS_SIG_ALGS                477\n# define SSL_F_TLS_CONSTRUCT_CTOS_SRP                     478\n# define SSL_F_TLS_CONSTRUCT_CTOS_STATUS_REQUEST          479\n# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS        480\n# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_VERSIONS      481\n# define SSL_F_TLS_CONSTRUCT_CTOS_USE_SRTP                482\n# define SSL_F_TLS_CONSTRUCT_CTOS_VERIFY                  358\n# define SSL_F_TLS_CONSTRUCT_ENCRYPTED_EXTENSIONS         443\n# define SSL_F_TLS_CONSTRUCT_END_OF_EARLY_DATA            536\n# define SSL_F_TLS_CONSTRUCT_EXTENSIONS                   447\n# define SSL_F_TLS_CONSTRUCT_FINISHED                     359\n# define SSL_F_TLS_CONSTRUCT_HELLO_REQUEST                373\n# define SSL_F_TLS_CONSTRUCT_HELLO_RETRY_REQUEST          510\n# define SSL_F_TLS_CONSTRUCT_KEY_UPDATE                   517\n# define SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET           428\n# define SSL_F_TLS_CONSTRUCT_NEXT_PROTO                   426\n# define SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE           490\n# define SSL_F_TLS_CONSTRUCT_SERVER_HELLO                 491\n# define SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE          492\n# define SSL_F_TLS_CONSTRUCT_STOC_ALPN                    451\n# define SSL_F_TLS_CONSTRUCT_STOC_CERTIFICATE             374\n# define SSL_F_TLS_CONSTRUCT_STOC_COOKIE                  613\n# define SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG           452\n# define SSL_F_TLS_CONSTRUCT_STOC_DONE                    375\n# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA              531\n# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA_INFO         525\n# define SSL_F_TLS_CONSTRUCT_STOC_EC_PT_FORMATS           453\n# define SSL_F_TLS_CONSTRUCT_STOC_EMS                     454\n# define SSL_F_TLS_CONSTRUCT_STOC_ETM                     455\n# define SSL_F_TLS_CONSTRUCT_STOC_HELLO                   376\n# define SSL_F_TLS_CONSTRUCT_STOC_KEY_EXCHANGE            377\n# define SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE               456\n# define SSL_F_TLS_CONSTRUCT_STOC_MAXFRAGMENTLEN          548\n# define SSL_F_TLS_CONSTRUCT_STOC_NEXT_PROTO_NEG          457\n# define SSL_F_TLS_CONSTRUCT_STOC_PSK                     504\n# define SSL_F_TLS_CONSTRUCT_STOC_RENEGOTIATE             458\n# define SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME             459\n# define SSL_F_TLS_CONSTRUCT_STOC_SESSION_TICKET          460\n# define SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST          461\n# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS        544\n# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_VERSIONS      611\n# define SSL_F_TLS_CONSTRUCT_STOC_USE_SRTP                462\n# define SSL_F_TLS_EARLY_POST_PROCESS_CLIENT_HELLO        521\n# define SSL_F_TLS_FINISH_HANDSHAKE                       597\n# define SSL_F_TLS_GET_MESSAGE_BODY                       351\n# define SSL_F_TLS_GET_MESSAGE_HEADER                     387\n# define SSL_F_TLS_HANDLE_ALPN                            562\n# define SSL_F_TLS_HANDLE_STATUS_REQUEST                  563\n# define SSL_F_TLS_PARSE_CERTIFICATE_AUTHORITIES          566\n# define SSL_F_TLS_PARSE_CLIENTHELLO_TLSEXT               449\n# define SSL_F_TLS_PARSE_CTOS_ALPN                        567\n# define SSL_F_TLS_PARSE_CTOS_COOKIE                      614\n# define SSL_F_TLS_PARSE_CTOS_EARLY_DATA                  568\n# define SSL_F_TLS_PARSE_CTOS_EC_PT_FORMATS               569\n# define SSL_F_TLS_PARSE_CTOS_EMS                         570\n# define SSL_F_TLS_PARSE_CTOS_KEY_SHARE                   463\n# define SSL_F_TLS_PARSE_CTOS_MAXFRAGMENTLEN              571\n# define SSL_F_TLS_PARSE_CTOS_POST_HANDSHAKE_AUTH         620\n# define SSL_F_TLS_PARSE_CTOS_PSK                         505\n# define SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES               572\n# define SSL_F_TLS_PARSE_CTOS_RENEGOTIATE                 464\n# define SSL_F_TLS_PARSE_CTOS_SERVER_NAME                 573\n# define SSL_F_TLS_PARSE_CTOS_SESSION_TICKET              574\n# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS                    575\n# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS_CERT               615\n# define SSL_F_TLS_PARSE_CTOS_SRP                         576\n# define SSL_F_TLS_PARSE_CTOS_STATUS_REQUEST              577\n# define SSL_F_TLS_PARSE_CTOS_SUPPORTED_GROUPS            578\n# define SSL_F_TLS_PARSE_CTOS_USE_SRTP                    465\n# define SSL_F_TLS_PARSE_STOC_ALPN                        579\n# define SSL_F_TLS_PARSE_STOC_COOKIE                      534\n# define SSL_F_TLS_PARSE_STOC_EARLY_DATA                  538\n# define SSL_F_TLS_PARSE_STOC_EARLY_DATA_INFO             528\n# define SSL_F_TLS_PARSE_STOC_EC_PT_FORMATS               580\n# define SSL_F_TLS_PARSE_STOC_KEY_SHARE                   445\n# define SSL_F_TLS_PARSE_STOC_MAXFRAGMENTLEN              581\n# define SSL_F_TLS_PARSE_STOC_NPN                         582\n# define SSL_F_TLS_PARSE_STOC_PSK                         502\n# define SSL_F_TLS_PARSE_STOC_RENEGOTIATE                 448\n# define SSL_F_TLS_PARSE_STOC_SCT                         564\n# define SSL_F_TLS_PARSE_STOC_SERVER_NAME                 583\n# define SSL_F_TLS_PARSE_STOC_SESSION_TICKET              584\n# define SSL_F_TLS_PARSE_STOC_STATUS_REQUEST              585\n# define SSL_F_TLS_PARSE_STOC_SUPPORTED_VERSIONS          612\n# define SSL_F_TLS_PARSE_STOC_USE_SRTP                    446\n# define SSL_F_TLS_POST_PROCESS_CLIENT_HELLO              378\n# define SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE       384\n# define SSL_F_TLS_PREPARE_CLIENT_CERTIFICATE             360\n# define SSL_F_TLS_PROCESS_AS_HELLO_RETRY_REQUEST         610\n# define SSL_F_TLS_PROCESS_CERTIFICATE_REQUEST            361\n# define SSL_F_TLS_PROCESS_CERT_STATUS                    362\n# define SSL_F_TLS_PROCESS_CERT_STATUS_BODY               495\n# define SSL_F_TLS_PROCESS_CERT_VERIFY                    379\n# define SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC             363\n# define SSL_F_TLS_PROCESS_CKE_DHE                        411\n# define SSL_F_TLS_PROCESS_CKE_ECDHE                      412\n# define SSL_F_TLS_PROCESS_CKE_GOST                       413\n# define SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE               414\n# define SSL_F_TLS_PROCESS_CKE_RSA                        415\n# define SSL_F_TLS_PROCESS_CKE_SRP                        416\n# define SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE             380\n# define SSL_F_TLS_PROCESS_CLIENT_HELLO                   381\n# define SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE            382\n# define SSL_F_TLS_PROCESS_ENCRYPTED_EXTENSIONS           444\n# define SSL_F_TLS_PROCESS_END_OF_EARLY_DATA              537\n# define SSL_F_TLS_PROCESS_FINISHED                       364\n# define SSL_F_TLS_PROCESS_HELLO_REQ                      507\n# define SSL_F_TLS_PROCESS_HELLO_RETRY_REQUEST            511\n# define SSL_F_TLS_PROCESS_INITIAL_SERVER_FLIGHT          442\n# define SSL_F_TLS_PROCESS_KEY_EXCHANGE                   365\n# define SSL_F_TLS_PROCESS_KEY_UPDATE                     518\n# define SSL_F_TLS_PROCESS_NEW_SESSION_TICKET             366\n# define SSL_F_TLS_PROCESS_NEXT_PROTO                     383\n# define SSL_F_TLS_PROCESS_SERVER_CERTIFICATE             367\n# define SSL_F_TLS_PROCESS_SERVER_DONE                    368\n# define SSL_F_TLS_PROCESS_SERVER_HELLO                   369\n# define SSL_F_TLS_PROCESS_SKE_DHE                        419\n# define SSL_F_TLS_PROCESS_SKE_ECDHE                      420\n# define SSL_F_TLS_PROCESS_SKE_PSK_PREAMBLE               421\n# define SSL_F_TLS_PROCESS_SKE_SRP                        422\n# define SSL_F_TLS_PSK_DO_BINDER                          506\n# define SSL_F_TLS_SCAN_CLIENTHELLO_TLSEXT                450\n# define SSL_F_TLS_SETUP_HANDSHAKE                        508\n# define SSL_F_USE_CERTIFICATE_CHAIN_FILE                 220\n# define SSL_F_WPACKET_INTERN_INIT_LEN                    633\n# define SSL_F_WPACKET_START_SUB_PACKET_LEN__             634\n# define SSL_F_WRITE_STATE_MACHINE                        586\n\n/*\n * SSL reason codes.\n */\n# define SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY        291\n# define SSL_R_APP_DATA_IN_HANDSHAKE                      100\n# define SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT 272\n# define SSL_R_AT_LEAST_TLS_1_0_NEEDED_IN_FIPS_MODE       143\n# define SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE     158\n# define SSL_R_BAD_CHANGE_CIPHER_SPEC                     103\n# define SSL_R_BAD_CIPHER                                 186\n# define SSL_R_BAD_DATA                                   390\n# define SSL_R_BAD_DATA_RETURNED_BY_CALLBACK              106\n# define SSL_R_BAD_DECOMPRESSION                          107\n# define SSL_R_BAD_DH_VALUE                               102\n# define SSL_R_BAD_DIGEST_LENGTH                          111\n# define SSL_R_BAD_EARLY_DATA                             233\n# define SSL_R_BAD_ECC_CERT                               304\n# define SSL_R_BAD_ECPOINT                                306\n# define SSL_R_BAD_EXTENSION                              110\n# define SSL_R_BAD_HANDSHAKE_LENGTH                       332\n# define SSL_R_BAD_HANDSHAKE_STATE                        236\n# define SSL_R_BAD_HELLO_REQUEST                          105\n# define SSL_R_BAD_HRR_VERSION                            263\n# define SSL_R_BAD_KEY_SHARE                              108\n# define SSL_R_BAD_KEY_UPDATE                             122\n# define SSL_R_BAD_LEGACY_VERSION                         292\n# define SSL_R_BAD_LENGTH                                 271\n# define SSL_R_BAD_PACKET                                 240\n# define SSL_R_BAD_PACKET_LENGTH                          115\n# define SSL_R_BAD_PROTOCOL_VERSION_NUMBER                116\n# define SSL_R_BAD_PSK                                    219\n# define SSL_R_BAD_PSK_IDENTITY                           114\n# define SSL_R_BAD_RECORD_TYPE                            443\n# define SSL_R_BAD_RSA_ENCRYPT                            119\n# define SSL_R_BAD_SIGNATURE                              123\n# define SSL_R_BAD_SRP_A_LENGTH                           347\n# define SSL_R_BAD_SRP_PARAMETERS                         371\n# define SSL_R_BAD_SRTP_MKI_VALUE                         352\n# define SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST           353\n# define SSL_R_BAD_SSL_FILETYPE                           124\n# define SSL_R_BAD_VALUE                                  384\n# define SSL_R_BAD_WRITE_RETRY                            127\n# define SSL_R_BINDER_DOES_NOT_VERIFY                     253\n# define SSL_R_BIO_NOT_SET                                128\n# define SSL_R_BLOCK_CIPHER_PAD_IS_WRONG                  129\n# define SSL_R_BN_LIB                                     130\n# define SSL_R_CALLBACK_FAILED                            234\n# define SSL_R_CANNOT_CHANGE_CIPHER                       109\n# define SSL_R_CA_DN_LENGTH_MISMATCH                      131\n# define SSL_R_CA_KEY_TOO_SMALL                           397\n# define SSL_R_CA_MD_TOO_WEAK                             398\n# define SSL_R_CCS_RECEIVED_EARLY                         133\n# define SSL_R_CERTIFICATE_VERIFY_FAILED                  134\n# define SSL_R_CERT_CB_ERROR                              377\n# define SSL_R_CERT_LENGTH_MISMATCH                       135\n# define SSL_R_CIPHERSUITE_DIGEST_HAS_CHANGED             218\n# define SSL_R_CIPHER_CODE_WRONG_LENGTH                   137\n# define SSL_R_CIPHER_OR_HASH_UNAVAILABLE                 138\n# define SSL_R_CLIENTHELLO_TLSEXT                         226\n# define SSL_R_COMPRESSED_LENGTH_TOO_LONG                 140\n# define SSL_R_COMPRESSION_DISABLED                       343\n# define SSL_R_COMPRESSION_FAILURE                        141\n# define SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE    307\n# define SSL_R_COMPRESSION_LIBRARY_ERROR                  142\n# define SSL_R_CONNECTION_TYPE_NOT_SET                    144\n# define SSL_R_CONTEXT_NOT_DANE_ENABLED                   167\n# define SSL_R_COOKIE_GEN_CALLBACK_FAILURE                400\n# define SSL_R_COOKIE_MISMATCH                            308\n# define SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED       206\n# define SSL_R_DANE_ALREADY_ENABLED                       172\n# define SSL_R_DANE_CANNOT_OVERRIDE_MTYPE_FULL            173\n# define SSL_R_DANE_NOT_ENABLED                           175\n# define SSL_R_DANE_TLSA_BAD_CERTIFICATE                  180\n# define SSL_R_DANE_TLSA_BAD_CERTIFICATE_USAGE            184\n# define SSL_R_DANE_TLSA_BAD_DATA_LENGTH                  189\n# define SSL_R_DANE_TLSA_BAD_DIGEST_LENGTH                192\n# define SSL_R_DANE_TLSA_BAD_MATCHING_TYPE                200\n# define SSL_R_DANE_TLSA_BAD_PUBLIC_KEY                   201\n# define SSL_R_DANE_TLSA_BAD_SELECTOR                     202\n# define SSL_R_DANE_TLSA_NULL_DATA                        203\n# define SSL_R_DATA_BETWEEN_CCS_AND_FINISHED              145\n# define SSL_R_DATA_LENGTH_TOO_LONG                       146\n# define SSL_R_DECRYPTION_FAILED                          147\n# define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC        281\n# define SSL_R_DH_KEY_TOO_SMALL                           394\n# define SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG            148\n# define SSL_R_DIGEST_CHECK_FAILED                        149\n# define SSL_R_DTLS_MESSAGE_TOO_BIG                       334\n# define SSL_R_DUPLICATE_COMPRESSION_ID                   309\n# define SSL_R_ECC_CERT_NOT_FOR_SIGNING                   318\n# define SSL_R_ECDH_REQUIRED_FOR_SUITEB_MODE              374\n# define SSL_R_EE_KEY_TOO_SMALL                           399\n# define SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST         354\n# define SSL_R_ENCRYPTED_LENGTH_TOO_LONG                  150\n# define SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST              151\n# define SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN             204\n# define SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE                  194\n# define SSL_R_EXCESSIVE_MESSAGE_SIZE                     152\n# define SSL_R_EXTENSION_NOT_RECEIVED                     279\n# define SSL_R_EXTRA_DATA_IN_MESSAGE                      153\n# define SSL_R_EXT_LENGTH_MISMATCH                        163\n# define SSL_R_FAILED_TO_INIT_ASYNC                       405\n# define SSL_R_FRAGMENTED_CLIENT_HELLO                    401\n# define SSL_R_GOT_A_FIN_BEFORE_A_CCS                     154\n# define SSL_R_HTTPS_PROXY_REQUEST                        155\n# define SSL_R_HTTP_REQUEST                               156\n# define SSL_R_ILLEGAL_POINT_COMPRESSION                  162\n# define SSL_R_ILLEGAL_SUITEB_DIGEST                      380\n# define SSL_R_INAPPROPRIATE_FALLBACK                     373\n# define SSL_R_INCONSISTENT_COMPRESSION                   340\n# define SSL_R_INCONSISTENT_EARLY_DATA_ALPN               222\n# define SSL_R_INCONSISTENT_EARLY_DATA_SNI                231\n# define SSL_R_INCONSISTENT_EXTMS                         104\n# define SSL_R_INSUFFICIENT_SECURITY                      241\n# define SSL_R_INVALID_ALERT                              205\n# define SSL_R_INVALID_CCS_MESSAGE                        260\n# define SSL_R_INVALID_CERTIFICATE_OR_ALG                 238\n# define SSL_R_INVALID_COMMAND                            280\n# define SSL_R_INVALID_COMPRESSION_ALGORITHM              341\n# define SSL_R_INVALID_CONFIG                             283\n# define SSL_R_INVALID_CONFIGURATION_NAME                 113\n# define SSL_R_INVALID_CONTEXT                            282\n# define SSL_R_INVALID_CT_VALIDATION_TYPE                 212\n# define SSL_R_INVALID_KEY_UPDATE_TYPE                    120\n# define SSL_R_INVALID_MAX_EARLY_DATA                     174\n# define SSL_R_INVALID_NULL_CMD_NAME                      385\n# define SSL_R_INVALID_SEQUENCE_NUMBER                    402\n# define SSL_R_INVALID_SERVERINFO_DATA                    388\n# define SSL_R_INVALID_SESSION_ID                         999\n# define SSL_R_INVALID_SRP_USERNAME                       357\n# define SSL_R_INVALID_STATUS_RESPONSE                    328\n# define SSL_R_INVALID_TICKET_KEYS_LENGTH                 325\n# define SSL_R_LENGTH_MISMATCH                            159\n# define SSL_R_LENGTH_TOO_LONG                            404\n# define SSL_R_LENGTH_TOO_SHORT                           160\n# define SSL_R_LIBRARY_BUG                                274\n# define SSL_R_LIBRARY_HAS_NO_CIPHERS                     161\n# define SSL_R_MISSING_DSA_SIGNING_CERT                   165\n# define SSL_R_MISSING_ECDSA_SIGNING_CERT                 381\n# define SSL_R_MISSING_FATAL                              256\n# define SSL_R_MISSING_PARAMETERS                         290\n# define SSL_R_MISSING_RSA_CERTIFICATE                    168\n# define SSL_R_MISSING_RSA_ENCRYPTING_CERT                169\n# define SSL_R_MISSING_RSA_SIGNING_CERT                   170\n# define SSL_R_MISSING_SIGALGS_EXTENSION                  112\n# define SSL_R_MISSING_SIGNING_CERT                       221\n# define SSL_R_MISSING_SRP_PARAM                          358\n# define SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION         209\n# define SSL_R_MISSING_TMP_DH_KEY                         171\n# define SSL_R_MISSING_TMP_ECDH_KEY                       311\n# define SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA     293\n# define SSL_R_NOT_ON_RECORD_BOUNDARY                     182\n# define SSL_R_NOT_REPLACING_CERTIFICATE                  289\n# define SSL_R_NOT_SERVER                                 284\n# define SSL_R_NO_APPLICATION_PROTOCOL                    235\n# define SSL_R_NO_CERTIFICATES_RETURNED                   176\n# define SSL_R_NO_CERTIFICATE_ASSIGNED                    177\n# define SSL_R_NO_CERTIFICATE_SET                         179\n# define SSL_R_NO_CHANGE_FOLLOWING_HRR                    214\n# define SSL_R_NO_CIPHERS_AVAILABLE                       181\n# define SSL_R_NO_CIPHERS_SPECIFIED                       183\n# define SSL_R_NO_CIPHER_MATCH                            185\n# define SSL_R_NO_CLIENT_CERT_METHOD                      331\n# define SSL_R_NO_COMPRESSION_SPECIFIED                   187\n# define SSL_R_NO_COOKIE_CALLBACK_SET                     287\n# define SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER           330\n# define SSL_R_NO_METHOD_SPECIFIED                        188\n# define SSL_R_NO_PEM_EXTENSIONS                          389\n# define SSL_R_NO_PRIVATE_KEY_ASSIGNED                    190\n# define SSL_R_NO_PROTOCOLS_AVAILABLE                     191\n# define SSL_R_NO_RENEGOTIATION                           339\n# define SSL_R_NO_REQUIRED_DIGEST                         324\n# define SSL_R_NO_SHARED_CIPHER                           193\n# define SSL_R_NO_SHARED_GROUPS                           410\n# define SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS             376\n# define SSL_R_NO_SRTP_PROFILES                           359\n# define SSL_R_NO_SUITABLE_KEY_SHARE                      101\n# define SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM            118\n# define SSL_R_NO_VALID_SCTS                              216\n# define SSL_R_NO_VERIFY_COOKIE_CALLBACK                  403\n# define SSL_R_NULL_SSL_CTX                               195\n# define SSL_R_NULL_SSL_METHOD_PASSED                     196\n# define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED            197\n# define SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED 344\n# define SSL_R_OVERFLOW_ERROR                             237\n# define SSL_R_PACKET_LENGTH_TOO_LONG                     198\n# define SSL_R_PARSE_TLSEXT                               227\n# define SSL_R_PATH_TOO_LONG                              270\n# define SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE          199\n# define SSL_R_PEM_NAME_BAD_PREFIX                        391\n# define SSL_R_PEM_NAME_TOO_SHORT                         392\n# define SSL_R_PIPELINE_FAILURE                           406\n# define SSL_R_POST_HANDSHAKE_AUTH_ENCODING_ERR           278\n# define SSL_R_PRIVATE_KEY_MISMATCH                       288\n# define SSL_R_PROTOCOL_IS_SHUTDOWN                       207\n# define SSL_R_PSK_IDENTITY_NOT_FOUND                     223\n# define SSL_R_PSK_NO_CLIENT_CB                           224\n# define SSL_R_PSK_NO_SERVER_CB                           225\n# define SSL_R_READ_BIO_NOT_SET                           211\n# define SSL_R_READ_TIMEOUT_EXPIRED                       312\n# define SSL_R_RECORD_LENGTH_MISMATCH                     213\n# define SSL_R_RECORD_TOO_SMALL                           298\n# define SSL_R_RENEGOTIATE_EXT_TOO_LONG                   335\n# define SSL_R_RENEGOTIATION_ENCODING_ERR                 336\n# define SSL_R_RENEGOTIATION_MISMATCH                     337\n# define SSL_R_REQUEST_PENDING                            285\n# define SSL_R_REQUEST_SENT                               286\n# define SSL_R_REQUIRED_CIPHER_MISSING                    215\n# define SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING     342\n# define SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING           345\n# define SSL_R_SCT_VERIFICATION_FAILED                    208\n# define SSL_R_SERVERHELLO_TLSEXT                         275\n# define SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED           277\n# define SSL_R_SHUTDOWN_WHILE_IN_INIT                     407\n# define SSL_R_SIGNATURE_ALGORITHMS_ERROR                 360\n# define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE      220\n# define SSL_R_SRP_A_CALC                                 361\n# define SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES           362\n# define SSL_R_SRTP_PROTECTION_PROFILE_LIST_TOO_LONG      363\n# define SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE            364\n# define SSL_R_SSL3_EXT_INVALID_MAX_FRAGMENT_LENGTH       232\n# define SSL_R_SSL3_EXT_INVALID_SERVERNAME                319\n# define SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE           320\n# define SSL_R_SSL3_SESSION_ID_TOO_LONG                   300\n# define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE                1042\n# define SSL_R_SSLV3_ALERT_BAD_RECORD_MAC                 1020\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED            1045\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED            1044\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN            1046\n# define SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE          1030\n# define SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE              1040\n# define SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER              1047\n# define SSL_R_SSLV3_ALERT_NO_CERTIFICATE                 1041\n# define SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE             1010\n# define SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE        1043\n# define SSL_R_SSL_COMMAND_SECTION_EMPTY                  117\n# define SSL_R_SSL_COMMAND_SECTION_NOT_FOUND              125\n# define SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION         228\n# define SSL_R_SSL_HANDSHAKE_FAILURE                      229\n# define SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS                 230\n# define SSL_R_SSL_NEGATIVE_LENGTH                        372\n# define SSL_R_SSL_SECTION_EMPTY                          126\n# define SSL_R_SSL_SECTION_NOT_FOUND                      136\n# define SSL_R_SSL_SESSION_ID_CALLBACK_FAILED             301\n# define SSL_R_SSL_SESSION_ID_CONFLICT                    302\n# define SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG            273\n# define SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH              303\n# define SSL_R_SSL_SESSION_ID_TOO_LONG                    408\n# define SSL_R_SSL_SESSION_VERSION_MISMATCH               210\n# define SSL_R_STILL_IN_INIT                              121\n# define SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED          1116\n# define SSL_R_TLSV13_ALERT_MISSING_EXTENSION             1109\n# define SSL_R_TLSV1_ALERT_ACCESS_DENIED                  1049\n# define SSL_R_TLSV1_ALERT_DECODE_ERROR                   1050\n# define SSL_R_TLSV1_ALERT_DECRYPTION_FAILED              1021\n# define SSL_R_TLSV1_ALERT_DECRYPT_ERROR                  1051\n# define SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION             1060\n# define SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK         1086\n# define SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY          1071\n# define SSL_R_TLSV1_ALERT_INTERNAL_ERROR                 1080\n# define SSL_R_TLSV1_ALERT_NO_RENEGOTIATION               1100\n# define SSL_R_TLSV1_ALERT_PROTOCOL_VERSION               1070\n# define SSL_R_TLSV1_ALERT_RECORD_OVERFLOW                1022\n# define SSL_R_TLSV1_ALERT_UNKNOWN_CA                     1048\n# define SSL_R_TLSV1_ALERT_USER_CANCELLED                 1090\n# define SSL_R_TLSV1_BAD_CERTIFICATE_HASH_VALUE           1114\n# define SSL_R_TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE      1113\n# define SSL_R_TLSV1_CERTIFICATE_UNOBTAINABLE             1111\n# define SSL_R_TLSV1_UNRECOGNIZED_NAME                    1112\n# define SSL_R_TLSV1_UNSUPPORTED_EXTENSION                1110\n# define SSL_R_TLS_HEARTBEAT_PEER_DOESNT_ACCEPT           365\n# define SSL_R_TLS_HEARTBEAT_PENDING                      366\n# define SSL_R_TLS_ILLEGAL_EXPORTER_LABEL                 367\n# define SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST             157\n# define SSL_R_TOO_MANY_KEY_UPDATES                       132\n# define SSL_R_TOO_MANY_WARN_ALERTS                       409\n# define SSL_R_TOO_MUCH_EARLY_DATA                        164\n# define SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS             314\n# define SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS       239\n# define SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES           242\n# define SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES          243\n# define SSL_R_UNEXPECTED_CCS_MESSAGE                     262\n# define SSL_R_UNEXPECTED_END_OF_EARLY_DATA               178\n# define SSL_R_UNEXPECTED_MESSAGE                         244\n# define SSL_R_UNEXPECTED_RECORD                          245\n# define SSL_R_UNINITIALIZED                              276\n# define SSL_R_UNKNOWN_ALERT_TYPE                         246\n# define SSL_R_UNKNOWN_CERTIFICATE_TYPE                   247\n# define SSL_R_UNKNOWN_CIPHER_RETURNED                    248\n# define SSL_R_UNKNOWN_CIPHER_TYPE                        249\n# define SSL_R_UNKNOWN_CMD_NAME                           386\n# define SSL_R_UNKNOWN_COMMAND                            139\n# define SSL_R_UNKNOWN_DIGEST                             368\n# define SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE                  250\n# define SSL_R_UNKNOWN_PKEY_TYPE                          251\n# define SSL_R_UNKNOWN_PROTOCOL                           252\n# define SSL_R_UNKNOWN_SSL_VERSION                        254\n# define SSL_R_UNKNOWN_STATE                              255\n# define SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED       338\n# define SSL_R_UNSOLICITED_EXTENSION                      217\n# define SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM          257\n# define SSL_R_UNSUPPORTED_ELLIPTIC_CURVE                 315\n# define SSL_R_UNSUPPORTED_PROTOCOL                       258\n# define SSL_R_UNSUPPORTED_SSL_VERSION                    259\n# define SSL_R_UNSUPPORTED_STATUS_TYPE                    329\n# define SSL_R_USE_SRTP_NOT_NEGOTIATED                    369\n# define SSL_R_VERSION_TOO_HIGH                           166\n# define SSL_R_VERSION_TOO_LOW                            396\n# define SSL_R_WRONG_CERTIFICATE_TYPE                     383\n# define SSL_R_WRONG_CIPHER_RETURNED                      261\n# define SSL_R_WRONG_CURVE                                378\n# define SSL_R_WRONG_SIGNATURE_LENGTH                     264\n# define SSL_R_WRONG_SIGNATURE_SIZE                       265\n# define SSL_R_WRONG_SIGNATURE_TYPE                       370\n# define SSL_R_WRONG_SSL_VERSION                          266\n# define SSL_R_WRONG_VERSION_NUMBER                       267\n# define SSL_R_X509_LIB                                   268\n# define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS           269\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/stack.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_STACK_H\n# define HEADER_STACK_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct stack_st OPENSSL_STACK; /* Use STACK_OF(...) instead */\n\ntypedef int (*OPENSSL_sk_compfunc)(const void *, const void *);\ntypedef void (*OPENSSL_sk_freefunc)(void *);\ntypedef void *(*OPENSSL_sk_copyfunc)(const void *);\n\nint OPENSSL_sk_num(const OPENSSL_STACK *);\nvoid *OPENSSL_sk_value(const OPENSSL_STACK *, int);\n\nvoid *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data);\n\nOPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc cmp);\nOPENSSL_STACK *OPENSSL_sk_new_null(void);\nOPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n);\nint OPENSSL_sk_reserve(OPENSSL_STACK *st, int n);\nvoid OPENSSL_sk_free(OPENSSL_STACK *);\nvoid OPENSSL_sk_pop_free(OPENSSL_STACK *st, void (*func) (void *));\nOPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *,\n                                    OPENSSL_sk_copyfunc c,\n                                    OPENSSL_sk_freefunc f);\nint OPENSSL_sk_insert(OPENSSL_STACK *sk, const void *data, int where);\nvoid *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc);\nvoid *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);\nint OPENSSL_sk_find(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_find_ex(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_push(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_unshift(OPENSSL_STACK *st, const void *data);\nvoid *OPENSSL_sk_shift(OPENSSL_STACK *st);\nvoid *OPENSSL_sk_pop(OPENSSL_STACK *st);\nvoid OPENSSL_sk_zero(OPENSSL_STACK *st);\nOPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk,\n                                            OPENSSL_sk_compfunc cmp);\nOPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *st);\nvoid OPENSSL_sk_sort(OPENSSL_STACK *st);\nint OPENSSL_sk_is_sorted(const OPENSSL_STACK *st);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define _STACK OPENSSL_STACK\n#  define sk_num OPENSSL_sk_num\n#  define sk_value OPENSSL_sk_value\n#  define sk_set OPENSSL_sk_set\n#  define sk_new OPENSSL_sk_new\n#  define sk_new_null OPENSSL_sk_new_null\n#  define sk_free OPENSSL_sk_free\n#  define sk_pop_free OPENSSL_sk_pop_free\n#  define sk_deep_copy OPENSSL_sk_deep_copy\n#  define sk_insert OPENSSL_sk_insert\n#  define sk_delete OPENSSL_sk_delete\n#  define sk_delete_ptr OPENSSL_sk_delete_ptr\n#  define sk_find OPENSSL_sk_find\n#  define sk_find_ex OPENSSL_sk_find_ex\n#  define sk_push OPENSSL_sk_push\n#  define sk_unshift OPENSSL_sk_unshift\n#  define sk_shift OPENSSL_sk_shift\n#  define sk_pop OPENSSL_sk_pop\n#  define sk_zero OPENSSL_sk_zero\n#  define sk_set_cmp_func OPENSSL_sk_set_cmp_func\n#  define sk_dup OPENSSL_sk_dup\n#  define sk_sort OPENSSL_sk_sort\n#  define sk_is_sorted OPENSSL_sk_is_sorted\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/store.h",
    "content": "/*\n * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OSSL_STORE_H\n# define HEADER_OSSL_STORE_H\n\n# include <stdarg.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/pem.h>\n# include <openssl/storeerr.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*-\n *  The main OSSL_STORE functions.\n *  ------------------------------\n *\n *  These allow applications to open a channel to a resource with supported\n *  data (keys, certs, crls, ...), read the data a piece at a time and decide\n *  what to do with it, and finally close.\n */\n\ntypedef struct ossl_store_ctx_st OSSL_STORE_CTX;\n\n/*\n * Typedef for the OSSL_STORE_INFO post processing callback.  This can be used\n * to massage the given OSSL_STORE_INFO, or to drop it entirely (by returning\n * NULL).\n */\ntypedef OSSL_STORE_INFO *(*OSSL_STORE_post_process_info_fn)(OSSL_STORE_INFO *,\n                                                            void *);\n\n/*\n * Open a channel given a URI.  The given UI method will be used any time the\n * loader needs extra input, for example when a password or pin is needed, and\n * will be passed the same user data every time it's needed in this context.\n *\n * Returns a context reference which represents the channel to communicate\n * through.\n */\nOSSL_STORE_CTX *OSSL_STORE_open(const char *uri, const UI_METHOD *ui_method,\n                                void *ui_data,\n                                OSSL_STORE_post_process_info_fn post_process,\n                                void *post_process_data);\n\n/*\n * Control / fine tune the OSSL_STORE channel.  |cmd| determines what is to be\n * done, and depends on the underlying loader (use OSSL_STORE_get0_scheme to\n * determine which loader is used), except for common commands (see below).\n * Each command takes different arguments.\n */\nint OSSL_STORE_ctrl(OSSL_STORE_CTX *ctx, int cmd, ... /* args */);\nint OSSL_STORE_vctrl(OSSL_STORE_CTX *ctx, int cmd, va_list args);\n\n/*\n * Common ctrl commands that different loaders may choose to support.\n */\n/* int on = 0 or 1; STORE_ctrl(ctx, STORE_C_USE_SECMEM, &on); */\n# define OSSL_STORE_C_USE_SECMEM      1\n/* Where custom commands start */\n# define OSSL_STORE_C_CUSTOM_START    100\n\n/*\n * Read one data item (a key, a cert, a CRL) that is supported by the OSSL_STORE\n * functionality, given a context.\n * Returns a OSSL_STORE_INFO pointer, from which OpenSSL typed data can be\n * extracted with OSSL_STORE_INFO_get0_PKEY(), OSSL_STORE_INFO_get0_CERT(), ...\n * NULL is returned on error, which may include that the data found at the URI\n * can't be figured out for certain or is ambiguous.\n */\nOSSL_STORE_INFO *OSSL_STORE_load(OSSL_STORE_CTX *ctx);\n\n/*\n * Check if end of data (end of file) is reached\n * Returns 1 on end, 0 otherwise.\n */\nint OSSL_STORE_eof(OSSL_STORE_CTX *ctx);\n\n/*\n * Check if an error occurred\n * Returns 1 if it did, 0 otherwise.\n */\nint OSSL_STORE_error(OSSL_STORE_CTX *ctx);\n\n/*\n * Close the channel\n * Returns 1 on success, 0 on error.\n */\nint OSSL_STORE_close(OSSL_STORE_CTX *ctx);\n\n\n/*-\n *  Extracting OpenSSL types from and creating new OSSL_STORE_INFOs\n *  ---------------------------------------------------------------\n */\n\n/*\n * Types of data that can be ossl_stored in a OSSL_STORE_INFO.\n * OSSL_STORE_INFO_NAME is typically found when getting a listing of\n * available \"files\" / \"tokens\" / what have you.\n */\n# define OSSL_STORE_INFO_NAME           1   /* char * */\n# define OSSL_STORE_INFO_PARAMS         2   /* EVP_PKEY * */\n# define OSSL_STORE_INFO_PKEY           3   /* EVP_PKEY * */\n# define OSSL_STORE_INFO_CERT           4   /* X509 * */\n# define OSSL_STORE_INFO_CRL            5   /* X509_CRL * */\n\n/*\n * Functions to generate OSSL_STORE_INFOs, one function for each type we\n * support having in them, as well as a generic constructor.\n *\n * In all cases, ownership of the object is transferred to the OSSL_STORE_INFO\n * and will therefore be freed when the OSSL_STORE_INFO is freed.\n */\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_NAME(char *name);\nint OSSL_STORE_INFO_set0_NAME_description(OSSL_STORE_INFO *info, char *desc);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_PARAMS(EVP_PKEY *params);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_PKEY(EVP_PKEY *pkey);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_CERT(X509 *x509);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_CRL(X509_CRL *crl);\n\n/*\n * Functions to try to extract data from a OSSL_STORE_INFO.\n */\nint OSSL_STORE_INFO_get_type(const OSSL_STORE_INFO *info);\nconst char *OSSL_STORE_INFO_get0_NAME(const OSSL_STORE_INFO *info);\nchar *OSSL_STORE_INFO_get1_NAME(const OSSL_STORE_INFO *info);\nconst char *OSSL_STORE_INFO_get0_NAME_description(const OSSL_STORE_INFO *info);\nchar *OSSL_STORE_INFO_get1_NAME_description(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get0_PARAMS(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get1_PARAMS(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get0_PKEY(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get1_PKEY(const OSSL_STORE_INFO *info);\nX509 *OSSL_STORE_INFO_get0_CERT(const OSSL_STORE_INFO *info);\nX509 *OSSL_STORE_INFO_get1_CERT(const OSSL_STORE_INFO *info);\nX509_CRL *OSSL_STORE_INFO_get0_CRL(const OSSL_STORE_INFO *info);\nX509_CRL *OSSL_STORE_INFO_get1_CRL(const OSSL_STORE_INFO *info);\n\nconst char *OSSL_STORE_INFO_type_string(int type);\n\n/*\n * Free the OSSL_STORE_INFO\n */\nvoid OSSL_STORE_INFO_free(OSSL_STORE_INFO *info);\n\n\n/*-\n *  Functions to construct a search URI from a base URI and search criteria\n *  -----------------------------------------------------------------------\n */\n\n/* OSSL_STORE search types */\n# define OSSL_STORE_SEARCH_BY_NAME              1 /* subject in certs, issuer in CRLs */\n# define OSSL_STORE_SEARCH_BY_ISSUER_SERIAL     2\n# define OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT   3\n# define OSSL_STORE_SEARCH_BY_ALIAS             4\n\n/* To check what search types the scheme handler supports */\nint OSSL_STORE_supports_search(OSSL_STORE_CTX *ctx, int search_type);\n\n/* Search term constructors */\n/*\n * The input is considered to be owned by the caller, and must therefore\n * remain present throughout the lifetime of the returned OSSL_STORE_SEARCH\n */\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_name(X509_NAME *name);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_issuer_serial(X509_NAME *name,\n                                                      const ASN1_INTEGER\n                                                      *serial);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_key_fingerprint(const EVP_MD *digest,\n                                                        const unsigned char\n                                                        *bytes, size_t len);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_alias(const char *alias);\n\n/* Search term destructor */\nvoid OSSL_STORE_SEARCH_free(OSSL_STORE_SEARCH *search);\n\n/* Search term accessors */\nint OSSL_STORE_SEARCH_get_type(const OSSL_STORE_SEARCH *criterion);\nX509_NAME *OSSL_STORE_SEARCH_get0_name(OSSL_STORE_SEARCH *criterion);\nconst ASN1_INTEGER *OSSL_STORE_SEARCH_get0_serial(const OSSL_STORE_SEARCH\n                                                  *criterion);\nconst unsigned char *OSSL_STORE_SEARCH_get0_bytes(const OSSL_STORE_SEARCH\n                                                  *criterion, size_t *length);\nconst char *OSSL_STORE_SEARCH_get0_string(const OSSL_STORE_SEARCH *criterion);\nconst EVP_MD *OSSL_STORE_SEARCH_get0_digest(const OSSL_STORE_SEARCH *criterion);\n\n/*\n * Add search criterion and expected return type (which can be unspecified)\n * to the loading channel.  This MUST happen before the first OSSL_STORE_load().\n */\nint OSSL_STORE_expect(OSSL_STORE_CTX *ctx, int expected_type);\nint OSSL_STORE_find(OSSL_STORE_CTX *ctx, OSSL_STORE_SEARCH *search);\n\n\n/*-\n *  Function to register a loader for the given URI scheme.\n *  -------------------------------------------------------\n *\n *  The loader receives all the main components of an URI except for the\n *  scheme.\n */\n\ntypedef struct ossl_store_loader_st OSSL_STORE_LOADER;\nOSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme);\nconst ENGINE *OSSL_STORE_LOADER_get0_engine(const OSSL_STORE_LOADER *loader);\nconst char *OSSL_STORE_LOADER_get0_scheme(const OSSL_STORE_LOADER *loader);\n/* struct ossl_store_loader_ctx_st is defined differently by each loader */\ntypedef struct ossl_store_loader_ctx_st OSSL_STORE_LOADER_CTX;\ntypedef OSSL_STORE_LOADER_CTX *(*OSSL_STORE_open_fn)(const OSSL_STORE_LOADER\n                                                     *loader,\n                                                     const char *uri,\n                                                     const UI_METHOD *ui_method,\n                                                     void *ui_data);\nint OSSL_STORE_LOADER_set_open(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_open_fn open_function);\ntypedef int (*OSSL_STORE_ctrl_fn)(OSSL_STORE_LOADER_CTX *ctx, int cmd,\n                                  va_list args);\nint OSSL_STORE_LOADER_set_ctrl(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_ctrl_fn ctrl_function);\ntypedef int (*OSSL_STORE_expect_fn)(OSSL_STORE_LOADER_CTX *ctx, int expected);\nint OSSL_STORE_LOADER_set_expect(OSSL_STORE_LOADER *loader,\n                                 OSSL_STORE_expect_fn expect_function);\ntypedef int (*OSSL_STORE_find_fn)(OSSL_STORE_LOADER_CTX *ctx,\n                                  OSSL_STORE_SEARCH *criteria);\nint OSSL_STORE_LOADER_set_find(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_find_fn find_function);\ntypedef OSSL_STORE_INFO *(*OSSL_STORE_load_fn)(OSSL_STORE_LOADER_CTX *ctx,\n                                               const UI_METHOD *ui_method,\n                                               void *ui_data);\nint OSSL_STORE_LOADER_set_load(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_load_fn load_function);\ntypedef int (*OSSL_STORE_eof_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_eof(OSSL_STORE_LOADER *loader,\n                              OSSL_STORE_eof_fn eof_function);\ntypedef int (*OSSL_STORE_error_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_error(OSSL_STORE_LOADER *loader,\n                                OSSL_STORE_error_fn error_function);\ntypedef int (*OSSL_STORE_close_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_close(OSSL_STORE_LOADER *loader,\n                                OSSL_STORE_close_fn close_function);\nvoid OSSL_STORE_LOADER_free(OSSL_STORE_LOADER *loader);\n\nint OSSL_STORE_register_loader(OSSL_STORE_LOADER *loader);\nOSSL_STORE_LOADER *OSSL_STORE_unregister_loader(const char *scheme);\n\n/*-\n *  Functions to list STORE loaders\n *  -------------------------------\n */\nint OSSL_STORE_do_all_loaders(void (*do_function) (const OSSL_STORE_LOADER\n                                                   *loader, void *do_arg),\n                              void *do_arg);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/storeerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OSSL_STOREERR_H\n# define HEADER_OSSL_STOREERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_OSSL_STORE_strings(void);\n\n/*\n * OSSL_STORE function codes.\n */\n# define OSSL_STORE_F_FILE_CTRL                           129\n# define OSSL_STORE_F_FILE_FIND                           138\n# define OSSL_STORE_F_FILE_GET_PASS                       118\n# define OSSL_STORE_F_FILE_LOAD                           119\n# define OSSL_STORE_F_FILE_LOAD_TRY_DECODE                124\n# define OSSL_STORE_F_FILE_NAME_TO_URI                    126\n# define OSSL_STORE_F_FILE_OPEN                           120\n# define OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO           127\n# define OSSL_STORE_F_OSSL_STORE_EXPECT                   130\n# define OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT  128\n# define OSSL_STORE_F_OSSL_STORE_FIND                     131\n# define OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT          100\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT           101\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL            102\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME           103\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION 135\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS         104\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY           105\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT            106\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL             107\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED        123\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME            109\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS          110\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY            111\n# define OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION 134\n# define OSSL_STORE_F_OSSL_STORE_INIT_ONCE                112\n# define OSSL_STORE_F_OSSL_STORE_LOADER_NEW               113\n# define OSSL_STORE_F_OSSL_STORE_OPEN                     114\n# define OSSL_STORE_F_OSSL_STORE_OPEN_INT                 115\n# define OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT      117\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS          132\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL  133\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT 136\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME           137\n# define OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT    116\n# define OSSL_STORE_F_TRY_DECODE_PARAMS                   121\n# define OSSL_STORE_F_TRY_DECODE_PKCS12                   122\n# define OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED           125\n\n/*\n * OSSL_STORE reason codes.\n */\n# define OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE              107\n# define OSSL_STORE_R_BAD_PASSWORD_READ                   115\n# define OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC          113\n# define OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST 121\n# define OSSL_STORE_R_INVALID_SCHEME                      106\n# define OSSL_STORE_R_IS_NOT_A                            112\n# define OSSL_STORE_R_LOADER_INCOMPLETE                   116\n# define OSSL_STORE_R_LOADING_STARTED                     117\n# define OSSL_STORE_R_NOT_A_CERTIFICATE                   100\n# define OSSL_STORE_R_NOT_A_CRL                           101\n# define OSSL_STORE_R_NOT_A_KEY                           102\n# define OSSL_STORE_R_NOT_A_NAME                          103\n# define OSSL_STORE_R_NOT_PARAMETERS                      104\n# define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR           114\n# define OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE               108\n# define OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 119\n# define OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED 109\n# define OSSL_STORE_R_UNREGISTERED_SCHEME                 105\n# define OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE            110\n# define OSSL_STORE_R_UNSUPPORTED_OPERATION               118\n# define OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE             120\n# define OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED           111\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/symhacks.h",
    "content": "/*\n * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SYMHACKS_H\n# define HEADER_SYMHACKS_H\n\n# include <openssl/e_os2.h>\n\n/* Case insensitive linking causes problems.... */\n# if defined(OPENSSL_SYS_VMS)\n#  undef ERR_load_CRYPTO_strings\n#  define ERR_load_CRYPTO_strings                 ERR_load_CRYPTOlib_strings\n#  undef OCSP_crlID_new\n#  define OCSP_crlID_new                          OCSP_crlID2_new\n\n#  undef d2i_ECPARAMETERS\n#  define d2i_ECPARAMETERS                        d2i_UC_ECPARAMETERS\n#  undef i2d_ECPARAMETERS\n#  define i2d_ECPARAMETERS                        i2d_UC_ECPARAMETERS\n#  undef d2i_ECPKPARAMETERS\n#  define d2i_ECPKPARAMETERS                      d2i_UC_ECPKPARAMETERS\n#  undef i2d_ECPKPARAMETERS\n#  define i2d_ECPKPARAMETERS                      i2d_UC_ECPKPARAMETERS\n\n/* This one clashes with CMS_data_create */\n#  undef cms_Data_create\n#  define cms_Data_create                         priv_cms_Data_create\n\n# endif\n\n#endif                          /* ! defined HEADER_VMS_IDHACKS_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/tls1.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n * Copyright 2005 Nokia. All rights reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TLS1_H\n# define HEADER_TLS1_H\n\n# include <openssl/buffer.h>\n# include <openssl/x509.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Default security level if not overridden at config time */\n# ifndef OPENSSL_TLS_SECURITY_LEVEL\n#  define OPENSSL_TLS_SECURITY_LEVEL 1\n# endif\n\n# define TLS1_VERSION                    0x0301\n# define TLS1_1_VERSION                  0x0302\n# define TLS1_2_VERSION                  0x0303\n# define TLS1_3_VERSION                  0x0304\n# define TLS_MAX_VERSION                 TLS1_3_VERSION\n\n/* Special value for method supporting multiple versions */\n# define TLS_ANY_VERSION                 0x10000\n\n# define TLS1_VERSION_MAJOR              0x03\n# define TLS1_VERSION_MINOR              0x01\n\n# define TLS1_1_VERSION_MAJOR            0x03\n# define TLS1_1_VERSION_MINOR            0x02\n\n# define TLS1_2_VERSION_MAJOR            0x03\n# define TLS1_2_VERSION_MINOR            0x03\n\n# define TLS1_get_version(s) \\\n        ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0)\n\n# define TLS1_get_client_version(s) \\\n        ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0)\n\n# define TLS1_AD_DECRYPTION_FAILED       21\n# define TLS1_AD_RECORD_OVERFLOW         22\n# define TLS1_AD_UNKNOWN_CA              48/* fatal */\n# define TLS1_AD_ACCESS_DENIED           49/* fatal */\n# define TLS1_AD_DECODE_ERROR            50/* fatal */\n# define TLS1_AD_DECRYPT_ERROR           51\n# define TLS1_AD_EXPORT_RESTRICTION      60/* fatal */\n# define TLS1_AD_PROTOCOL_VERSION        70/* fatal */\n# define TLS1_AD_INSUFFICIENT_SECURITY   71/* fatal */\n# define TLS1_AD_INTERNAL_ERROR          80/* fatal */\n# define TLS1_AD_INAPPROPRIATE_FALLBACK  86/* fatal */\n# define TLS1_AD_USER_CANCELLED          90\n# define TLS1_AD_NO_RENEGOTIATION        100\n/* TLSv1.3 alerts */\n# define TLS13_AD_MISSING_EXTENSION      109 /* fatal */\n# define TLS13_AD_CERTIFICATE_REQUIRED   116 /* fatal */\n/* codes 110-114 are from RFC3546 */\n# define TLS1_AD_UNSUPPORTED_EXTENSION   110\n# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111\n# define TLS1_AD_UNRECOGNIZED_NAME       112\n# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113\n# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114\n# define TLS1_AD_UNKNOWN_PSK_IDENTITY    115/* fatal */\n# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */\n\n/* ExtensionType values from RFC3546 / RFC4366 / RFC6066 */\n# define TLSEXT_TYPE_server_name                 0\n# define TLSEXT_TYPE_max_fragment_length         1\n# define TLSEXT_TYPE_client_certificate_url      2\n# define TLSEXT_TYPE_trusted_ca_keys             3\n# define TLSEXT_TYPE_truncated_hmac              4\n# define TLSEXT_TYPE_status_request              5\n/* ExtensionType values from RFC4681 */\n# define TLSEXT_TYPE_user_mapping                6\n/* ExtensionType values from RFC5878 */\n# define TLSEXT_TYPE_client_authz                7\n# define TLSEXT_TYPE_server_authz                8\n/* ExtensionType values from RFC6091 */\n# define TLSEXT_TYPE_cert_type           9\n\n/* ExtensionType values from RFC4492 */\n/*\n * Prior to TLSv1.3 the supported_groups extension was known as\n * elliptic_curves\n */\n# define TLSEXT_TYPE_supported_groups            10\n# define TLSEXT_TYPE_elliptic_curves             TLSEXT_TYPE_supported_groups\n# define TLSEXT_TYPE_ec_point_formats            11\n\n\n/* ExtensionType value from RFC5054 */\n# define TLSEXT_TYPE_srp                         12\n\n/* ExtensionType values from RFC5246 */\n# define TLSEXT_TYPE_signature_algorithms        13\n\n/* ExtensionType value from RFC5764 */\n# define TLSEXT_TYPE_use_srtp    14\n\n/* ExtensionType value from RFC5620 */\n# define TLSEXT_TYPE_heartbeat   15\n\n/* ExtensionType value from RFC7301 */\n# define TLSEXT_TYPE_application_layer_protocol_negotiation 16\n\n/*\n * Extension type for Certificate Transparency\n * https://tools.ietf.org/html/rfc6962#section-3.3.1\n */\n# define TLSEXT_TYPE_signed_certificate_timestamp    18\n\n/*\n * ExtensionType value for TLS padding extension.\n * http://tools.ietf.org/html/draft-agl-tls-padding\n */\n# define TLSEXT_TYPE_padding     21\n\n/* ExtensionType value from RFC7366 */\n# define TLSEXT_TYPE_encrypt_then_mac    22\n\n/* ExtensionType value from RFC7627 */\n# define TLSEXT_TYPE_extended_master_secret      23\n\n/* ExtensionType value from RFC4507 */\n# define TLSEXT_TYPE_session_ticket              35\n\n/* As defined for TLS1.3 */\n# define TLSEXT_TYPE_psk                         41\n# define TLSEXT_TYPE_early_data                  42\n# define TLSEXT_TYPE_supported_versions          43\n# define TLSEXT_TYPE_cookie                      44\n# define TLSEXT_TYPE_psk_kex_modes               45\n# define TLSEXT_TYPE_certificate_authorities     47\n# define TLSEXT_TYPE_post_handshake_auth         49\n# define TLSEXT_TYPE_signature_algorithms_cert   50\n# define TLSEXT_TYPE_key_share                   51\n\n/* Temporary extension type */\n# define TLSEXT_TYPE_renegotiate                 0xff01\n\n# ifndef OPENSSL_NO_NEXTPROTONEG\n/* This is not an IANA defined extension number */\n#  define TLSEXT_TYPE_next_proto_neg              13172\n# endif\n\n/* NameType value from RFC3546 */\n# define TLSEXT_NAMETYPE_host_name 0\n/* status request value from RFC3546 */\n# define TLSEXT_STATUSTYPE_ocsp 1\n\n/* ECPointFormat values from RFC4492 */\n# define TLSEXT_ECPOINTFORMAT_first                      0\n# define TLSEXT_ECPOINTFORMAT_uncompressed               0\n# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime  1\n# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2  2\n# define TLSEXT_ECPOINTFORMAT_last                       2\n\n/* Signature and hash algorithms from RFC5246 */\n# define TLSEXT_signature_anonymous                      0\n# define TLSEXT_signature_rsa                            1\n# define TLSEXT_signature_dsa                            2\n# define TLSEXT_signature_ecdsa                          3\n# define TLSEXT_signature_gostr34102001                  237\n# define TLSEXT_signature_gostr34102012_256              238\n# define TLSEXT_signature_gostr34102012_512              239\n\n/* Total number of different signature algorithms */\n# define TLSEXT_signature_num                            7\n\n# define TLSEXT_hash_none                                0\n# define TLSEXT_hash_md5                                 1\n# define TLSEXT_hash_sha1                                2\n# define TLSEXT_hash_sha224                              3\n# define TLSEXT_hash_sha256                              4\n# define TLSEXT_hash_sha384                              5\n# define TLSEXT_hash_sha512                              6\n# define TLSEXT_hash_gostr3411                           237\n# define TLSEXT_hash_gostr34112012_256                   238\n# define TLSEXT_hash_gostr34112012_512                   239\n\n/* Total number of different digest algorithms */\n\n# define TLSEXT_hash_num                                 10\n\n/* Flag set for unrecognised algorithms */\n# define TLSEXT_nid_unknown                              0x1000000\n\n/* ECC curves */\n\n# define TLSEXT_curve_P_256                              23\n# define TLSEXT_curve_P_384                              24\n\n/* OpenSSL value to disable maximum fragment length extension */\n# define TLSEXT_max_fragment_length_DISABLED    0\n/* Allowed values for max fragment length extension */\n# define TLSEXT_max_fragment_length_512         1\n# define TLSEXT_max_fragment_length_1024        2\n# define TLSEXT_max_fragment_length_2048        3\n# define TLSEXT_max_fragment_length_4096        4\n\nint SSL_CTX_set_tlsext_max_fragment_length(SSL_CTX *ctx, uint8_t mode);\nint SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);\n\n# define TLSEXT_MAXLEN_host_name 255\n\n__owur const char *SSL_get_servername(const SSL *s, const int type);\n__owur int SSL_get_servername_type(const SSL *s);\n/*\n * SSL_export_keying_material exports a value derived from the master secret,\n * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and\n * optional context. (Since a zero length context is allowed, the |use_context|\n * flag controls whether a context is included.) It returns 1 on success and\n * 0 or -1 otherwise.\n */\n__owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,\n                                      const char *label, size_t llen,\n                                      const unsigned char *context,\n                                      size_t contextlen, int use_context);\n\n/*\n * SSL_export_keying_material_early exports a value derived from the\n * early exporter master secret, as specified in\n * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes\n * |olen| bytes to |out| given a label and optional context. It\n * returns 1 on success and 0 otherwise.\n */\n__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out,\n                                            size_t olen, const char *label,\n                                            size_t llen,\n                                            const unsigned char *context,\n                                            size_t contextlen);\n\nint SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);\nint SSL_get_signature_type_nid(const SSL *s, int *pnid);\n\nint SSL_get_sigalgs(SSL *s, int idx,\n                    int *psign, int *phash, int *psignandhash,\n                    unsigned char *rsig, unsigned char *rhash);\n\nint SSL_get_shared_sigalgs(SSL *s, int idx,\n                           int *psign, int *phash, int *psignandhash,\n                           unsigned char *rsig, unsigned char *rhash);\n\n__owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain);\n\n# define SSL_set_tlsext_host_name(s,name) \\\n        SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,\\\n                (void *)name)\n\n# define SSL_set_tlsext_debug_callback(ssl, cb) \\\n        SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_set_tlsext_debug_arg(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)\n\n# define SSL_get_tlsext_status_type(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)\n\n# define SSL_set_tlsext_status_type(ssl, type) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)\n\n# define SSL_get_tlsext_status_exts(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg)\n\n# define SSL_set_tlsext_status_exts(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg)\n\n# define SSL_get_tlsext_status_ids(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg)\n\n# define SSL_set_tlsext_status_ids(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg)\n\n# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg)\n\n# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg)\n\n# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \\\n        SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_TLSEXT_ERR_OK 0\n# define SSL_TLSEXT_ERR_ALERT_WARNING 1\n# define SSL_TLSEXT_ERR_ALERT_FATAL 2\n# define SSL_TLSEXT_ERR_NOACK 3\n\n# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg)\n\n# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys)\n# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys)\n\n# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb)\n# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \\\n        SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)\n# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)\n\n# define SSL_CTX_set_tlsext_status_type(ssl, type) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)\n\n# define SSL_CTX_get_tlsext_status_type(ssl) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)\n\n# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \\\n        SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\\\n                (void (*)(void))cb)\n\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_DTLSEXT_HB_ENABLED                   0x01\n#  define SSL_DTLSEXT_HB_DONT_SEND_REQUESTS        0x02\n#  define SSL_DTLSEXT_HB_DONT_RECV_REQUESTS        0x04\n#  define SSL_get_dtlsext_heartbeat_pending(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING,0,NULL)\n#  define SSL_set_dtlsext_heartbeat_no_requests(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS,arg,NULL)\n\n#  if OPENSSL_API_COMPAT < 0x10100000L\n#   define SSL_CTRL_TLS_EXT_SEND_HEARTBEAT \\\n        SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT\n#   define SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING \\\n        SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING\n#   define SSL_CTRL_SET_TLS_EXT_HEARTBEAT_NO_REQUESTS \\\n        SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS\n#   define SSL_TLSEXT_HB_ENABLED \\\n        SSL_DTLSEXT_HB_ENABLED\n#   define SSL_TLSEXT_HB_DONT_SEND_REQUESTS \\\n        SSL_DTLSEXT_HB_DONT_SEND_REQUESTS\n#   define SSL_TLSEXT_HB_DONT_RECV_REQUESTS \\\n        SSL_DTLSEXT_HB_DONT_RECV_REQUESTS\n#   define SSL_get_tlsext_heartbeat_pending(ssl) \\\n        SSL_get_dtlsext_heartbeat_pending(ssl)\n#   define SSL_set_tlsext_heartbeat_no_requests(ssl, arg) \\\n        SSL_set_dtlsext_heartbeat_no_requests(ssl,arg)\n#  endif\n# endif\n\n/* PSK ciphersuites from 4279 */\n# define TLS1_CK_PSK_WITH_RC4_128_SHA                    0x0300008A\n# define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA               0x0300008B\n# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA                0x0300008C\n# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA                0x0300008D\n# define TLS1_CK_DHE_PSK_WITH_RC4_128_SHA                0x0300008E\n# define TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA           0x0300008F\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA            0x03000090\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA            0x03000091\n# define TLS1_CK_RSA_PSK_WITH_RC4_128_SHA                0x03000092\n# define TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA           0x03000093\n# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA            0x03000094\n# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA            0x03000095\n\n/* PSK ciphersuites from 5487 */\n# define TLS1_CK_PSK_WITH_AES_128_GCM_SHA256             0x030000A8\n# define TLS1_CK_PSK_WITH_AES_256_GCM_SHA384             0x030000A9\n# define TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256         0x030000AA\n# define TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384         0x030000AB\n# define TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256         0x030000AC\n# define TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384         0x030000AD\n# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA256             0x030000AE\n# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA384             0x030000AF\n# define TLS1_CK_PSK_WITH_NULL_SHA256                    0x030000B0\n# define TLS1_CK_PSK_WITH_NULL_SHA384                    0x030000B1\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256         0x030000B2\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384         0x030000B3\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA256                0x030000B4\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA384                0x030000B5\n# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256         0x030000B6\n# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384         0x030000B7\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA256                0x030000B8\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA384                0x030000B9\n\n/* NULL PSK ciphersuites from RFC4785 */\n# define TLS1_CK_PSK_WITH_NULL_SHA                       0x0300002C\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA                   0x0300002D\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA                   0x0300002E\n\n/* AES ciphersuites from RFC3268 */\n# define TLS1_CK_RSA_WITH_AES_128_SHA                    0x0300002F\n# define TLS1_CK_DH_DSS_WITH_AES_128_SHA                 0x03000030\n# define TLS1_CK_DH_RSA_WITH_AES_128_SHA                 0x03000031\n# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA                0x03000032\n# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA                0x03000033\n# define TLS1_CK_ADH_WITH_AES_128_SHA                    0x03000034\n# define TLS1_CK_RSA_WITH_AES_256_SHA                    0x03000035\n# define TLS1_CK_DH_DSS_WITH_AES_256_SHA                 0x03000036\n# define TLS1_CK_DH_RSA_WITH_AES_256_SHA                 0x03000037\n# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA                0x03000038\n# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA                0x03000039\n# define TLS1_CK_ADH_WITH_AES_256_SHA                    0x0300003A\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_CK_RSA_WITH_NULL_SHA256                    0x0300003B\n# define TLS1_CK_RSA_WITH_AES_128_SHA256                 0x0300003C\n# define TLS1_CK_RSA_WITH_AES_256_SHA256                 0x0300003D\n# define TLS1_CK_DH_DSS_WITH_AES_128_SHA256              0x0300003E\n# define TLS1_CK_DH_RSA_WITH_AES_128_SHA256              0x0300003F\n# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256             0x03000040\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA           0x03000041\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA        0x03000042\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA        0x03000043\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA       0x03000044\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA       0x03000045\n# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA           0x03000046\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256             0x03000067\n# define TLS1_CK_DH_DSS_WITH_AES_256_SHA256              0x03000068\n# define TLS1_CK_DH_RSA_WITH_AES_256_SHA256              0x03000069\n# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256             0x0300006A\n# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256             0x0300006B\n# define TLS1_CK_ADH_WITH_AES_128_SHA256                 0x0300006C\n# define TLS1_CK_ADH_WITH_AES_256_SHA256                 0x0300006D\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA           0x03000084\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA        0x03000085\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA        0x03000086\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA       0x03000087\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA       0x03000088\n# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA           0x03000089\n\n/* SEED ciphersuites from RFC4162 */\n# define TLS1_CK_RSA_WITH_SEED_SHA                       0x03000096\n# define TLS1_CK_DH_DSS_WITH_SEED_SHA                    0x03000097\n# define TLS1_CK_DH_RSA_WITH_SEED_SHA                    0x03000098\n# define TLS1_CK_DHE_DSS_WITH_SEED_SHA                   0x03000099\n# define TLS1_CK_DHE_RSA_WITH_SEED_SHA                   0x0300009A\n# define TLS1_CK_ADH_WITH_SEED_SHA                       0x0300009B\n\n/* TLS v1.2 GCM ciphersuites from RFC5288 */\n# define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256             0x0300009C\n# define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384             0x0300009D\n# define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256         0x0300009E\n# define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384         0x0300009F\n# define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256          0x030000A0\n# define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384          0x030000A1\n# define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256         0x030000A2\n# define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384         0x030000A3\n# define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256          0x030000A4\n# define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384          0x030000A5\n# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256             0x030000A6\n# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384             0x030000A7\n\n/* CCM ciphersuites from RFC6655 */\n# define TLS1_CK_RSA_WITH_AES_128_CCM                    0x0300C09C\n# define TLS1_CK_RSA_WITH_AES_256_CCM                    0x0300C09D\n# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM                0x0300C09E\n# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM                0x0300C09F\n# define TLS1_CK_RSA_WITH_AES_128_CCM_8                  0x0300C0A0\n# define TLS1_CK_RSA_WITH_AES_256_CCM_8                  0x0300C0A1\n# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8              0x0300C0A2\n# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8              0x0300C0A3\n# define TLS1_CK_PSK_WITH_AES_128_CCM                    0x0300C0A4\n# define TLS1_CK_PSK_WITH_AES_256_CCM                    0x0300C0A5\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM                0x0300C0A6\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM                0x0300C0A7\n# define TLS1_CK_PSK_WITH_AES_128_CCM_8                  0x0300C0A8\n# define TLS1_CK_PSK_WITH_AES_256_CCM_8                  0x0300C0A9\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8              0x0300C0AA\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8              0x0300C0AB\n\n/* CCM ciphersuites from RFC7251 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM            0x0300C0AC\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM            0x0300C0AD\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8          0x0300C0AE\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8          0x0300C0AF\n\n/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256                0x030000BA\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256             0x030000BB\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256             0x030000BC\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256            0x030000BD\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256            0x030000BE\n# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256                0x030000BF\n\n# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256                0x030000C0\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256             0x030000C1\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256             0x030000C2\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256            0x030000C3\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256            0x030000C4\n# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256                0x030000C5\n\n/* ECC ciphersuites from RFC4492 */\n# define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA                0x0300C001\n# define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA             0x0300C002\n# define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA        0x0300C003\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA         0x0300C004\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA         0x0300C005\n\n# define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA               0x0300C006\n# define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA            0x0300C007\n# define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA       0x0300C008\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA        0x0300C009\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA        0x0300C00A\n\n# define TLS1_CK_ECDH_RSA_WITH_NULL_SHA                  0x0300C00B\n# define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA               0x0300C00C\n# define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA          0x0300C00D\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA           0x0300C00E\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA           0x0300C00F\n\n# define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA                 0x0300C010\n# define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA              0x0300C011\n# define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA         0x0300C012\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA          0x0300C013\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA          0x0300C014\n\n# define TLS1_CK_ECDH_anon_WITH_NULL_SHA                 0x0300C015\n# define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA              0x0300C016\n# define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA         0x0300C017\n# define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA          0x0300C018\n# define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA          0x0300C019\n\n/* SRP ciphersuites from RFC 5054 */\n# define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA           0x0300C01A\n# define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA       0x0300C01B\n# define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA       0x0300C01C\n# define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA            0x0300C01D\n# define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA        0x0300C01E\n# define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA        0x0300C01F\n# define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA            0x0300C020\n# define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA        0x0300C021\n# define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA        0x0300C022\n\n/* ECDH HMAC based ciphersuites from RFC5289 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256         0x0300C023\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384         0x0300C024\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256          0x0300C025\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384          0x0300C026\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256           0x0300C027\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384           0x0300C028\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256            0x0300C029\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384            0x0300C02A\n\n/* ECDH GCM based ciphersuites from RFC5289 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256     0x0300C02B\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384     0x0300C02C\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256      0x0300C02D\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384      0x0300C02E\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256       0x0300C02F\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384       0x0300C030\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256        0x0300C031\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384        0x0300C032\n\n/* ECDHE PSK ciphersuites from RFC5489 */\n# define TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA              0x0300C033\n# define TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA         0x0300C034\n# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA          0x0300C035\n# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA          0x0300C036\n\n# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256       0x0300C037\n# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384       0x0300C038\n\n/* NULL PSK ciphersuites from RFC4785 */\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA                 0x0300C039\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256              0x0300C03A\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384              0x0300C03B\n\n/* Camellia-CBC ciphersuites from RFC6367 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C072\n# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C073\n# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  0x0300C074\n# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  0x0300C075\n# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   0x0300C076\n# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   0x0300C077\n# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    0x0300C078\n# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    0x0300C079\n\n# define TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256         0x0300C094\n# define TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384         0x0300C095\n# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256     0x0300C096\n# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384     0x0300C097\n# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256     0x0300C098\n# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384     0x0300C099\n# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   0x0300C09A\n# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   0x0300C09B\n\n/* draft-ietf-tls-chacha20-poly1305-03 */\n# define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305         0x0300CCA8\n# define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305       0x0300CCA9\n# define TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305           0x0300CCAA\n# define TLS1_CK_PSK_WITH_CHACHA20_POLY1305               0x0300CCAB\n# define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305         0x0300CCAC\n# define TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305           0x0300CCAD\n# define TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305           0x0300CCAE\n\n/* TLS v1.3 ciphersuites */\n# define TLS1_3_CK_AES_128_GCM_SHA256                     0x03001301\n# define TLS1_3_CK_AES_256_GCM_SHA384                     0x03001302\n# define TLS1_3_CK_CHACHA20_POLY1305_SHA256               0x03001303\n# define TLS1_3_CK_AES_128_CCM_SHA256                     0x03001304\n# define TLS1_3_CK_AES_128_CCM_8_SHA256                   0x03001305\n\n/* Aria ciphersuites from RFC6209 */\n# define TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256             0x0300C050\n# define TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384             0x0300C051\n# define TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256         0x0300C052\n# define TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384         0x0300C053\n# define TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256          0x0300C054\n# define TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384          0x0300C055\n# define TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256         0x0300C056\n# define TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384         0x0300C057\n# define TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256          0x0300C058\n# define TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384          0x0300C059\n# define TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256         0x0300C05A\n# define TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384         0x0300C05B\n# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256     0x0300C05C\n# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384     0x0300C05D\n# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256      0x0300C05E\n# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384      0x0300C05F\n# define TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256       0x0300C060\n# define TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384       0x0300C061\n# define TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256        0x0300C062\n# define TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384        0x0300C063\n# define TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256             0x0300C06A\n# define TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384             0x0300C06B\n# define TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256         0x0300C06C\n# define TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384         0x0300C06D\n# define TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256         0x0300C06E\n# define TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384         0x0300C06F\n\n/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */\n# define TLS1_RFC_RSA_WITH_AES_128_SHA                   \"TLS_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA               \"TLS_DHE_DSS_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA               \"TLS_DHE_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_AES_128_SHA                   \"TLS_DH_anon_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_AES_256_SHA                   \"TLS_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA               \"TLS_DHE_DSS_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA               \"TLS_DHE_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_AES_256_SHA                   \"TLS_DH_anon_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_NULL_SHA256                   \"TLS_RSA_WITH_NULL_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_128_SHA256                \"TLS_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_256_SHA256                \"TLS_RSA_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256            \"TLS_DHE_DSS_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256            \"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256            \"TLS_DHE_DSS_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256            \"TLS_DHE_RSA_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_128_SHA256                \"TLS_DH_anon_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_256_SHA256                \"TLS_DH_anon_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256            \"TLS_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384            \"TLS_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256        \"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384        \"TLS_DHE_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256        \"TLS_DHE_DSS_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384        \"TLS_DHE_DSS_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256            \"TLS_DH_anon_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384            \"TLS_DH_anon_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_WITH_AES_128_CCM                   \"TLS_RSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_RSA_WITH_AES_256_CCM                   \"TLS_RSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM               \"TLS_DHE_RSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM               \"TLS_DHE_RSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_RSA_WITH_AES_128_CCM_8                 \"TLS_RSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_RSA_WITH_AES_256_CCM_8                 \"TLS_RSA_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8             \"TLS_DHE_RSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8             \"TLS_DHE_RSA_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_PSK_WITH_AES_128_CCM                   \"TLS_PSK_WITH_AES_128_CCM\"\n# define TLS1_RFC_PSK_WITH_AES_256_CCM                   \"TLS_PSK_WITH_AES_256_CCM\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM               \"TLS_DHE_PSK_WITH_AES_128_CCM\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM               \"TLS_DHE_PSK_WITH_AES_256_CCM\"\n# define TLS1_RFC_PSK_WITH_AES_128_CCM_8                 \"TLS_PSK_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_PSK_WITH_AES_256_CCM_8                 \"TLS_PSK_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8             \"TLS_PSK_DHE_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8             \"TLS_PSK_DHE_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM           \"TLS_ECDHE_ECDSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM           \"TLS_ECDHE_ECDSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8         \"TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8         \"TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8\"\n# define TLS1_3_RFC_AES_128_GCM_SHA256                   \"TLS_AES_128_GCM_SHA256\"\n# define TLS1_3_RFC_AES_256_GCM_SHA384                   \"TLS_AES_256_GCM_SHA384\"\n# define TLS1_3_RFC_CHACHA20_POLY1305_SHA256             \"TLS_CHACHA20_POLY1305_SHA256\"\n# define TLS1_3_RFC_AES_128_CCM_SHA256                   \"TLS_AES_128_CCM_SHA256\"\n# define TLS1_3_RFC_AES_128_CCM_8_SHA256                 \"TLS_AES_128_CCM_8_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA              \"TLS_ECDHE_ECDSA_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      \"TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA                \"TLS_ECDHE_RSA_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA        \"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA         \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA         \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_NULL_SHA                \"TLS_ECDH_anon_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA        \"TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA         \"TLS_ECDH_anon_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA         \"TLS_ECDH_anon_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256        \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384        \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256          \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384          \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256    \"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384    \"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256      \"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384      \"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA                      \"TLS_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA                  \"TLS_DHE_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA                  \"TLS_RSA_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA              \"TLS_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA               \"TLS_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA               \"TLS_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA          \"TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA           \"TLS_DHE_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA           \"TLS_DHE_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA          \"TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA           \"TLS_RSA_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA           \"TLS_RSA_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256            \"TLS_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384            \"TLS_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256        \"TLS_DHE_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384        \"TLS_DHE_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256        \"TLS_RSA_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384        \"TLS_RSA_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256            \"TLS_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384            \"TLS_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA256                   \"TLS_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA384                   \"TLS_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256        \"TLS_DHE_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384        \"TLS_DHE_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA256               \"TLS_DHE_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA384               \"TLS_DHE_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256        \"TLS_RSA_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384        \"TLS_RSA_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA256               \"TLS_RSA_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA384               \"TLS_RSA_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA        \"TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA         \"TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA         \"TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256      \"TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384      \"TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA                \"TLS_ECDHE_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256             \"TLS_ECDHE_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384             \"TLS_ECDHE_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA          \"TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA      \"TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA      \"TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA           \"TLS_SRP_SHA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA       \"TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA       \"TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA           \"TLS_SRP_SHA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA       \"TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA       \"TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305         \"TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305       \"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305     \"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_PSK_WITH_CHACHA20_POLY1305             \"TLS_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305       \"TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305         \"TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305         \"TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256       \"TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256   \"TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256   \"TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256       \"TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA          \"TLS_RSA_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      \"TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      \"TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA          \"TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA          \"TLS_RSA_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      \"TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      \"TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA          \"TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384       \"TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   \"TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384   \"TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_WITH_SEED_SHA                      \"TLS_RSA_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_SEED_SHA                  \"TLS_DHE_DSS_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_SEED_SHA                  \"TLS_DHE_RSA_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_SEED_SHA                      \"TLS_DH_anon_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA             \"TLS_ECDHE_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA             \"TLS_ECDH_anon_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA           \"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA             \"TLS_ECDHE_RSA_WITH_RC4_128_SHA\"\n# define TLS1_RFC_PSK_WITH_RC4_128_SHA                   \"TLS_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA               \"TLS_RSA_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA               \"TLS_DHE_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256           \"TLS_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384           \"TLS_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256        \"TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384        \"TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256        \"TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384        \"TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256       \"TLS_DH_anon_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384       \"TLS_DH_anon_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256   \"TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384   \"TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256    \"TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384    \"TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256     \"TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384     \"TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256      \"TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384      \"TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256           \"TLS_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384           \"TLS_PSK_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256       \"TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384       \"TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384\"\n\n\n/*\n * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE\n * ciphers names with \"EDH\" instead of \"DHE\".  Going forward, we should be\n * using DHE everywhere, though we may indefinitely maintain aliases for\n * users or configurations that used \"EDH\"\n */\n# define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA               \"DHE-DSS-RC4-SHA\"\n\n# define TLS1_TXT_PSK_WITH_NULL_SHA                      \"PSK-NULL-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA                  \"DHE-PSK-NULL-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA                  \"RSA-PSK-NULL-SHA\"\n\n/* AES ciphersuites from RFC3268 */\n# define TLS1_TXT_RSA_WITH_AES_128_SHA                   \"AES128-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA                \"DH-DSS-AES128-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA                \"DH-RSA-AES128-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA               \"DHE-DSS-AES128-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA               \"DHE-RSA-AES128-SHA\"\n# define TLS1_TXT_ADH_WITH_AES_128_SHA                   \"ADH-AES128-SHA\"\n\n# define TLS1_TXT_RSA_WITH_AES_256_SHA                   \"AES256-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA                \"DH-DSS-AES256-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA                \"DH-RSA-AES256-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA               \"DHE-DSS-AES256-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA               \"DHE-RSA-AES256-SHA\"\n# define TLS1_TXT_ADH_WITH_AES_256_SHA                   \"ADH-AES256-SHA\"\n\n/* ECC ciphersuites from RFC4492 */\n# define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA               \"ECDH-ECDSA-NULL-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA            \"ECDH-ECDSA-RC4-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA       \"ECDH-ECDSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA        \"ECDH-ECDSA-AES128-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA        \"ECDH-ECDSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA              \"ECDHE-ECDSA-NULL-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA           \"ECDHE-ECDSA-RC4-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      \"ECDHE-ECDSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       \"ECDHE-ECDSA-AES128-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       \"ECDHE-ECDSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA                 \"ECDH-RSA-NULL-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA              \"ECDH-RSA-RC4-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA         \"ECDH-RSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA          \"ECDH-RSA-AES128-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA          \"ECDH-RSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA                \"ECDHE-RSA-NULL-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA             \"ECDHE-RSA-RC4-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA        \"ECDHE-RSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA         \"ECDHE-RSA-AES128-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA         \"ECDHE-RSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDH_anon_WITH_NULL_SHA                \"AECDH-NULL-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA             \"AECDH-RC4-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA        \"AECDH-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA         \"AECDH-AES128-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA         \"AECDH-AES256-SHA\"\n\n/* PSK ciphersuites from RFC 4279 */\n# define TLS1_TXT_PSK_WITH_RC4_128_SHA                   \"PSK-RC4-SHA\"\n# define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA              \"PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA               \"PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA               \"PSK-AES256-CBC-SHA\"\n\n# define TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA               \"DHE-PSK-RC4-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA          \"DHE-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA           \"DHE-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA           \"DHE-PSK-AES256-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA               \"RSA-PSK-RC4-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA          \"RSA-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA           \"RSA-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA           \"RSA-PSK-AES256-CBC-SHA\"\n\n/* PSK ciphersuites from RFC 5487 */\n# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256            \"PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384            \"PSK-AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256        \"DHE-PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384        \"DHE-PSK-AES256-GCM-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256        \"RSA-PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384        \"RSA-PSK-AES256-GCM-SHA384\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256            \"PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384            \"PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_PSK_WITH_NULL_SHA256                   \"PSK-NULL-SHA256\"\n# define TLS1_TXT_PSK_WITH_NULL_SHA384                   \"PSK-NULL-SHA384\"\n\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256        \"DHE-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384        \"DHE-PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA256               \"DHE-PSK-NULL-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA384               \"DHE-PSK-NULL-SHA384\"\n\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256        \"RSA-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384        \"RSA-PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA256               \"RSA-PSK-NULL-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA384               \"RSA-PSK-NULL-SHA384\"\n\n/* SRP ciphersuite from RFC 5054 */\n# define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA          \"SRP-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA      \"SRP-RSA-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA      \"SRP-DSS-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA           \"SRP-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA       \"SRP-RSA-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA       \"SRP-DSS-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA           \"SRP-AES-256-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA       \"SRP-RSA-AES-256-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA       \"SRP-DSS-AES-256-CBC-SHA\"\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA          \"CAMELLIA128-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA       \"DH-DSS-CAMELLIA128-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA       \"DH-RSA-CAMELLIA128-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      \"DHE-DSS-CAMELLIA128-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      \"DHE-RSA-CAMELLIA128-SHA\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA          \"ADH-CAMELLIA128-SHA\"\n\n# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA          \"CAMELLIA256-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA       \"DH-DSS-CAMELLIA256-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA       \"DH-RSA-CAMELLIA256-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      \"DHE-DSS-CAMELLIA256-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      \"DHE-RSA-CAMELLIA256-SHA\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA          \"ADH-CAMELLIA256-SHA\"\n\n/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */\n# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256               \"CAMELLIA128-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256            \"DH-DSS-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256            \"DH-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-DSS-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256               \"ADH-CAMELLIA128-SHA256\"\n\n# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256               \"CAMELLIA256-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256            \"DH-DSS-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256            \"DH-RSA-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256           \"DHE-DSS-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256           \"DHE-RSA-CAMELLIA256-SHA256\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256               \"ADH-CAMELLIA256-SHA256\"\n\n# define TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256               \"PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384               \"PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384           \"DHE-PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256           \"RSA-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384           \"RSA-PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256         \"ECDHE-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384         \"ECDHE-PSK-CAMELLIA256-SHA384\"\n\n/* SEED ciphersuites from RFC4162 */\n# define TLS1_TXT_RSA_WITH_SEED_SHA                      \"SEED-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_SEED_SHA                   \"DH-DSS-SEED-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_SEED_SHA                   \"DH-RSA-SEED-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_SEED_SHA                  \"DHE-DSS-SEED-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_SEED_SHA                  \"DHE-RSA-SEED-SHA\"\n# define TLS1_TXT_ADH_WITH_SEED_SHA                      \"ADH-SEED-SHA\"\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_TXT_RSA_WITH_NULL_SHA256                   \"NULL-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_128_SHA256                \"AES128-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_256_SHA256                \"AES256-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256             \"DH-DSS-AES128-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256             \"DH-RSA-AES128-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256            \"DHE-DSS-AES128-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256            \"DHE-RSA-AES128-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256             \"DH-DSS-AES256-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256             \"DH-RSA-AES256-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256            \"DHE-DSS-AES256-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256            \"DHE-RSA-AES256-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_128_SHA256                \"ADH-AES128-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_256_SHA256                \"ADH-AES256-SHA256\"\n\n/* TLS v1.2 GCM ciphersuites from RFC5288 */\n# define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256            \"AES128-GCM-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384            \"AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256        \"DHE-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384        \"DHE-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256         \"DH-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384         \"DH-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256        \"DHE-DSS-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384        \"DHE-DSS-AES256-GCM-SHA384\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256         \"DH-DSS-AES128-GCM-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384         \"DH-DSS-AES256-GCM-SHA384\"\n# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256            \"ADH-AES128-GCM-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384            \"ADH-AES256-GCM-SHA384\"\n\n/* CCM ciphersuites from RFC6655 */\n# define TLS1_TXT_RSA_WITH_AES_128_CCM                   \"AES128-CCM\"\n# define TLS1_TXT_RSA_WITH_AES_256_CCM                   \"AES256-CCM\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM               \"DHE-RSA-AES128-CCM\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM               \"DHE-RSA-AES256-CCM\"\n\n# define TLS1_TXT_RSA_WITH_AES_128_CCM_8                 \"AES128-CCM8\"\n# define TLS1_TXT_RSA_WITH_AES_256_CCM_8                 \"AES256-CCM8\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8             \"DHE-RSA-AES128-CCM8\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8             \"DHE-RSA-AES256-CCM8\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CCM                   \"PSK-AES128-CCM\"\n# define TLS1_TXT_PSK_WITH_AES_256_CCM                   \"PSK-AES256-CCM\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM               \"DHE-PSK-AES128-CCM\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM               \"DHE-PSK-AES256-CCM\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CCM_8                 \"PSK-AES128-CCM8\"\n# define TLS1_TXT_PSK_WITH_AES_256_CCM_8                 \"PSK-AES256-CCM8\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8             \"DHE-PSK-AES128-CCM8\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8             \"DHE-PSK-AES256-CCM8\"\n\n/* CCM ciphersuites from RFC7251 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM       \"ECDHE-ECDSA-AES128-CCM\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM       \"ECDHE-ECDSA-AES256-CCM\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8     \"ECDHE-ECDSA-AES128-CCM8\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8     \"ECDHE-ECDSA-AES256-CCM8\"\n\n/* ECDH HMAC based ciphersuites from RFC5289 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256    \"ECDHE-ECDSA-AES128-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384    \"ECDHE-ECDSA-AES256-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256     \"ECDH-ECDSA-AES128-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384     \"ECDH-ECDSA-AES256-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256      \"ECDHE-RSA-AES128-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384      \"ECDHE-RSA-AES256-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256       \"ECDH-RSA-AES128-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384       \"ECDH-RSA-AES256-SHA384\"\n\n/* ECDH GCM based ciphersuites from RFC5289 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256    \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384    \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256     \"ECDH-ECDSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384     \"ECDH-ECDSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256      \"ECDHE-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384      \"ECDHE-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256       \"ECDH-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384       \"ECDH-RSA-AES256-GCM-SHA384\"\n\n/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */\n# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256            \"PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384            \"PSK-AES256-GCM-SHA384\"\n\n/* ECDHE PSK ciphersuites from RFC 5489 */\n# define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA               \"ECDHE-PSK-RC4-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA          \"ECDHE-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA           \"ECDHE-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA           \"ECDHE-PSK-AES256-CBC-SHA\"\n\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256        \"ECDHE-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384        \"ECDHE-PSK-AES256-CBC-SHA384\"\n\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA                  \"ECDHE-PSK-NULL-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256               \"ECDHE-PSK-NULL-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384               \"ECDHE-PSK-NULL-SHA384\"\n\n/* Camellia-CBC ciphersuites from RFC6367 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 \"ECDHE-ECDSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 \"ECDHE-ECDSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  \"ECDH-ECDSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  \"ECDH-ECDSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   \"ECDHE-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   \"ECDHE-RSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    \"ECDH-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    \"ECDH-RSA-CAMELLIA256-SHA384\"\n\n/* draft-ietf-tls-chacha20-poly1305-03 */\n# define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305         \"ECDHE-RSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305       \"ECDHE-ECDSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305           \"DHE-RSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_PSK_WITH_CHACHA20_POLY1305               \"PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305         \"ECDHE-PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305           \"DHE-PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305           \"RSA-PSK-CHACHA20-POLY1305\"\n\n/* Aria ciphersuites from RFC6209 */\n# define TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256             \"ARIA128-GCM-SHA256\"\n# define TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384             \"ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256         \"DHE-RSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384         \"DHE-RSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256          \"DH-RSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384          \"DH-RSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256         \"DHE-DSS-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384         \"DHE-DSS-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256          \"DH-DSS-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384          \"DH-DSS-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256         \"ADH-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384         \"ADH-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256     \"ECDHE-ECDSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384     \"ECDHE-ECDSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256      \"ECDH-ECDSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384      \"ECDH-ECDSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256       \"ECDHE-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384       \"ECDHE-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256        \"ECDH-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384        \"ECDH-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256             \"PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384             \"PSK-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256         \"DHE-PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384         \"DHE-PSK-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256         \"RSA-PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384         \"RSA-PSK-ARIA256-GCM-SHA384\"\n\n# define TLS_CT_RSA_SIGN                 1\n# define TLS_CT_DSS_SIGN                 2\n# define TLS_CT_RSA_FIXED_DH             3\n# define TLS_CT_DSS_FIXED_DH             4\n# define TLS_CT_ECDSA_SIGN               64\n# define TLS_CT_RSA_FIXED_ECDH           65\n# define TLS_CT_ECDSA_FIXED_ECDH         66\n# define TLS_CT_GOST01_SIGN              22\n# define TLS_CT_GOST12_SIGN              238\n# define TLS_CT_GOST12_512_SIGN          239\n\n/*\n * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see\n * comment there)\n */\n# define TLS_CT_NUMBER                   10\n\n# if defined(SSL3_CT_NUMBER)\n#  if TLS_CT_NUMBER != SSL3_CT_NUMBER\n#    error \"SSL/TLS CT_NUMBER values do not match\"\n#  endif\n# endif\n\n# define TLS1_FINISH_MAC_LENGTH          12\n\n# define TLS_MD_MAX_CONST_SIZE                   22\n# define TLS_MD_CLIENT_FINISH_CONST              \"client finished\"\n# define TLS_MD_CLIENT_FINISH_CONST_SIZE         15\n# define TLS_MD_SERVER_FINISH_CONST              \"server finished\"\n# define TLS_MD_SERVER_FINISH_CONST_SIZE         15\n# define TLS_MD_KEY_EXPANSION_CONST              \"key expansion\"\n# define TLS_MD_KEY_EXPANSION_CONST_SIZE         13\n# define TLS_MD_CLIENT_WRITE_KEY_CONST           \"client write key\"\n# define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE      16\n# define TLS_MD_SERVER_WRITE_KEY_CONST           \"server write key\"\n# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE      16\n# define TLS_MD_IV_BLOCK_CONST                   \"IV block\"\n# define TLS_MD_IV_BLOCK_CONST_SIZE              8\n# define TLS_MD_MASTER_SECRET_CONST              \"master secret\"\n# define TLS_MD_MASTER_SECRET_CONST_SIZE         13\n# define TLS_MD_EXTENDED_MASTER_SECRET_CONST     \"extended master secret\"\n# define TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE        22\n\n# ifdef CHARSET_EBCDIC\n#  undef TLS_MD_CLIENT_FINISH_CONST\n/*\n * client finished\n */\n#  define TLS_MD_CLIENT_FINISH_CONST    \"\\x63\\x6c\\x69\\x65\\x6e\\x74\\x20\\x66\\x69\\x6e\\x69\\x73\\x68\\x65\\x64\"\n\n#  undef TLS_MD_SERVER_FINISH_CONST\n/*\n * server finished\n */\n#  define TLS_MD_SERVER_FINISH_CONST    \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x66\\x69\\x6e\\x69\\x73\\x68\\x65\\x64\"\n\n#  undef TLS_MD_SERVER_WRITE_KEY_CONST\n/*\n * server write key\n */\n#  define TLS_MD_SERVER_WRITE_KEY_CONST \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_KEY_EXPANSION_CONST\n/*\n * key expansion\n */\n#  define TLS_MD_KEY_EXPANSION_CONST    \"\\x6b\\x65\\x79\\x20\\x65\\x78\\x70\\x61\\x6e\\x73\\x69\\x6f\\x6e\"\n\n#  undef TLS_MD_CLIENT_WRITE_KEY_CONST\n/*\n * client write key\n */\n#  define TLS_MD_CLIENT_WRITE_KEY_CONST \"\\x63\\x6c\\x69\\x65\\x6e\\x74\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_SERVER_WRITE_KEY_CONST\n/*\n * server write key\n */\n#  define TLS_MD_SERVER_WRITE_KEY_CONST \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_IV_BLOCK_CONST\n/*\n * IV block\n */\n#  define TLS_MD_IV_BLOCK_CONST         \"\\x49\\x56\\x20\\x62\\x6c\\x6f\\x63\\x6b\"\n\n#  undef TLS_MD_MASTER_SECRET_CONST\n/*\n * master secret\n */\n#  define TLS_MD_MASTER_SECRET_CONST    \"\\x6d\\x61\\x73\\x74\\x65\\x72\\x20\\x73\\x65\\x63\\x72\\x65\\x74\"\n#  undef TLS_MD_EXTENDED_MASTER_SECRET_CONST\n/*\n * extended master secret\n */\n#  define TLS_MD_EXTENDED_MASTER_SECRET_CONST    \"\\x65\\x78\\x74\\x65\\x6e\\x64\\x65\\x64\\x20\\x6d\\x61\\x73\\x74\\x65\\x72\\x20\\x73\\x65\\x63\\x72\\x65\\x74\"\n# endif\n\n/* TLS Session Ticket extension struct */\nstruct tls_session_ticket_ext_st {\n    unsigned short length;\n    void *data;\n};\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ts.h",
    "content": "/*\n * Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TS_H\n# define HEADER_TS_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_TS\n# include <openssl/symhacks.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/safestack.h>\n# include <openssl/rsa.h>\n# include <openssl/dsa.h>\n# include <openssl/dh.h>\n# include <openssl/tserr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# include <openssl/x509.h>\n# include <openssl/x509v3.h>\n\ntypedef struct TS_msg_imprint_st TS_MSG_IMPRINT;\ntypedef struct TS_req_st TS_REQ;\ntypedef struct TS_accuracy_st TS_ACCURACY;\ntypedef struct TS_tst_info_st TS_TST_INFO;\n\n/* Possible values for status. */\n# define TS_STATUS_GRANTED                       0\n# define TS_STATUS_GRANTED_WITH_MODS             1\n# define TS_STATUS_REJECTION                     2\n# define TS_STATUS_WAITING                       3\n# define TS_STATUS_REVOCATION_WARNING            4\n# define TS_STATUS_REVOCATION_NOTIFICATION       5\n\n/* Possible values for failure_info. */\n# define TS_INFO_BAD_ALG                 0\n# define TS_INFO_BAD_REQUEST             2\n# define TS_INFO_BAD_DATA_FORMAT         5\n# define TS_INFO_TIME_NOT_AVAILABLE      14\n# define TS_INFO_UNACCEPTED_POLICY       15\n# define TS_INFO_UNACCEPTED_EXTENSION    16\n# define TS_INFO_ADD_INFO_NOT_AVAILABLE  17\n# define TS_INFO_SYSTEM_FAILURE          25\n\n\ntypedef struct TS_status_info_st TS_STATUS_INFO;\ntypedef struct ESS_issuer_serial ESS_ISSUER_SERIAL;\ntypedef struct ESS_cert_id ESS_CERT_ID;\ntypedef struct ESS_signing_cert ESS_SIGNING_CERT;\n\nDEFINE_STACK_OF(ESS_CERT_ID)\n\ntypedef struct ESS_cert_id_v2_st ESS_CERT_ID_V2;\ntypedef struct ESS_signing_cert_v2_st ESS_SIGNING_CERT_V2;\n\nDEFINE_STACK_OF(ESS_CERT_ID_V2)\n\ntypedef struct TS_resp_st TS_RESP;\n\nTS_REQ *TS_REQ_new(void);\nvoid TS_REQ_free(TS_REQ *a);\nint i2d_TS_REQ(const TS_REQ *a, unsigned char **pp);\nTS_REQ *d2i_TS_REQ(TS_REQ **a, const unsigned char **pp, long length);\n\nTS_REQ *TS_REQ_dup(TS_REQ *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_REQ *d2i_TS_REQ_fp(FILE *fp, TS_REQ **a);\nint i2d_TS_REQ_fp(FILE *fp, TS_REQ *a);\n#endif\nTS_REQ *d2i_TS_REQ_bio(BIO *fp, TS_REQ **a);\nint i2d_TS_REQ_bio(BIO *fp, TS_REQ *a);\n\nTS_MSG_IMPRINT *TS_MSG_IMPRINT_new(void);\nvoid TS_MSG_IMPRINT_free(TS_MSG_IMPRINT *a);\nint i2d_TS_MSG_IMPRINT(const TS_MSG_IMPRINT *a, unsigned char **pp);\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT(TS_MSG_IMPRINT **a,\n                                   const unsigned char **pp, long length);\n\nTS_MSG_IMPRINT *TS_MSG_IMPRINT_dup(TS_MSG_IMPRINT *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a);\nint i2d_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT *a);\n#endif\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_bio(BIO *bio, TS_MSG_IMPRINT **a);\nint i2d_TS_MSG_IMPRINT_bio(BIO *bio, TS_MSG_IMPRINT *a);\n\nTS_RESP *TS_RESP_new(void);\nvoid TS_RESP_free(TS_RESP *a);\nint i2d_TS_RESP(const TS_RESP *a, unsigned char **pp);\nTS_RESP *d2i_TS_RESP(TS_RESP **a, const unsigned char **pp, long length);\nTS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token);\nTS_RESP *TS_RESP_dup(TS_RESP *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_RESP *d2i_TS_RESP_fp(FILE *fp, TS_RESP **a);\nint i2d_TS_RESP_fp(FILE *fp, TS_RESP *a);\n#endif\nTS_RESP *d2i_TS_RESP_bio(BIO *bio, TS_RESP **a);\nint i2d_TS_RESP_bio(BIO *bio, TS_RESP *a);\n\nTS_STATUS_INFO *TS_STATUS_INFO_new(void);\nvoid TS_STATUS_INFO_free(TS_STATUS_INFO *a);\nint i2d_TS_STATUS_INFO(const TS_STATUS_INFO *a, unsigned char **pp);\nTS_STATUS_INFO *d2i_TS_STATUS_INFO(TS_STATUS_INFO **a,\n                                   const unsigned char **pp, long length);\nTS_STATUS_INFO *TS_STATUS_INFO_dup(TS_STATUS_INFO *a);\n\nTS_TST_INFO *TS_TST_INFO_new(void);\nvoid TS_TST_INFO_free(TS_TST_INFO *a);\nint i2d_TS_TST_INFO(const TS_TST_INFO *a, unsigned char **pp);\nTS_TST_INFO *d2i_TS_TST_INFO(TS_TST_INFO **a, const unsigned char **pp,\n                             long length);\nTS_TST_INFO *TS_TST_INFO_dup(TS_TST_INFO *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_TST_INFO *d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a);\nint i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a);\n#endif\nTS_TST_INFO *d2i_TS_TST_INFO_bio(BIO *bio, TS_TST_INFO **a);\nint i2d_TS_TST_INFO_bio(BIO *bio, TS_TST_INFO *a);\n\nTS_ACCURACY *TS_ACCURACY_new(void);\nvoid TS_ACCURACY_free(TS_ACCURACY *a);\nint i2d_TS_ACCURACY(const TS_ACCURACY *a, unsigned char **pp);\nTS_ACCURACY *d2i_TS_ACCURACY(TS_ACCURACY **a, const unsigned char **pp,\n                             long length);\nTS_ACCURACY *TS_ACCURACY_dup(TS_ACCURACY *a);\n\nESS_ISSUER_SERIAL *ESS_ISSUER_SERIAL_new(void);\nvoid ESS_ISSUER_SERIAL_free(ESS_ISSUER_SERIAL *a);\nint i2d_ESS_ISSUER_SERIAL(const ESS_ISSUER_SERIAL *a, unsigned char **pp);\nESS_ISSUER_SERIAL *d2i_ESS_ISSUER_SERIAL(ESS_ISSUER_SERIAL **a,\n                                         const unsigned char **pp,\n                                         long length);\nESS_ISSUER_SERIAL *ESS_ISSUER_SERIAL_dup(ESS_ISSUER_SERIAL *a);\n\nESS_CERT_ID *ESS_CERT_ID_new(void);\nvoid ESS_CERT_ID_free(ESS_CERT_ID *a);\nint i2d_ESS_CERT_ID(const ESS_CERT_ID *a, unsigned char **pp);\nESS_CERT_ID *d2i_ESS_CERT_ID(ESS_CERT_ID **a, const unsigned char **pp,\n                             long length);\nESS_CERT_ID *ESS_CERT_ID_dup(ESS_CERT_ID *a);\n\nESS_SIGNING_CERT *ESS_SIGNING_CERT_new(void);\nvoid ESS_SIGNING_CERT_free(ESS_SIGNING_CERT *a);\nint i2d_ESS_SIGNING_CERT(const ESS_SIGNING_CERT *a, unsigned char **pp);\nESS_SIGNING_CERT *d2i_ESS_SIGNING_CERT(ESS_SIGNING_CERT **a,\n                                       const unsigned char **pp, long length);\nESS_SIGNING_CERT *ESS_SIGNING_CERT_dup(ESS_SIGNING_CERT *a);\n\nESS_CERT_ID_V2 *ESS_CERT_ID_V2_new(void);\nvoid ESS_CERT_ID_V2_free(ESS_CERT_ID_V2 *a);\nint i2d_ESS_CERT_ID_V2(const ESS_CERT_ID_V2 *a, unsigned char **pp);\nESS_CERT_ID_V2 *d2i_ESS_CERT_ID_V2(ESS_CERT_ID_V2 **a,\n                                   const unsigned char **pp, long length);\nESS_CERT_ID_V2 *ESS_CERT_ID_V2_dup(ESS_CERT_ID_V2 *a);\n\nESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_new(void);\nvoid ESS_SIGNING_CERT_V2_free(ESS_SIGNING_CERT_V2 *a);\nint i2d_ESS_SIGNING_CERT_V2(const ESS_SIGNING_CERT_V2 *a, unsigned char **pp);\nESS_SIGNING_CERT_V2 *d2i_ESS_SIGNING_CERT_V2(ESS_SIGNING_CERT_V2 **a,\n                                             const unsigned char **pp,\n                                             long length);\nESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_dup(ESS_SIGNING_CERT_V2 *a);\n\nint TS_REQ_set_version(TS_REQ *a, long version);\nlong TS_REQ_get_version(const TS_REQ *a);\n\nint TS_STATUS_INFO_set_status(TS_STATUS_INFO *a, int i);\nconst ASN1_INTEGER *TS_STATUS_INFO_get0_status(const TS_STATUS_INFO *a);\n\nconst STACK_OF(ASN1_UTF8STRING) *\nTS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a);\n\nconst ASN1_BIT_STRING *\nTS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a);\n\nint TS_REQ_set_msg_imprint(TS_REQ *a, TS_MSG_IMPRINT *msg_imprint);\nTS_MSG_IMPRINT *TS_REQ_get_msg_imprint(TS_REQ *a);\n\nint TS_MSG_IMPRINT_set_algo(TS_MSG_IMPRINT *a, X509_ALGOR *alg);\nX509_ALGOR *TS_MSG_IMPRINT_get_algo(TS_MSG_IMPRINT *a);\n\nint TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len);\nASN1_OCTET_STRING *TS_MSG_IMPRINT_get_msg(TS_MSG_IMPRINT *a);\n\nint TS_REQ_set_policy_id(TS_REQ *a, const ASN1_OBJECT *policy);\nASN1_OBJECT *TS_REQ_get_policy_id(TS_REQ *a);\n\nint TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce);\nconst ASN1_INTEGER *TS_REQ_get_nonce(const TS_REQ *a);\n\nint TS_REQ_set_cert_req(TS_REQ *a, int cert_req);\nint TS_REQ_get_cert_req(const TS_REQ *a);\n\nSTACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a);\nvoid TS_REQ_ext_free(TS_REQ *a);\nint TS_REQ_get_ext_count(TS_REQ *a);\nint TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos);\nint TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos);\nint TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos);\nX509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc);\nX509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc);\nint TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc);\nvoid *TS_REQ_get_ext_d2i(TS_REQ *a, int nid, int *crit, int *idx);\n\n/* Function declarations for TS_REQ defined in ts/ts_req_print.c */\n\nint TS_REQ_print_bio(BIO *bio, TS_REQ *a);\n\n/* Function declarations for TS_RESP defined in ts/ts_resp_utils.c */\n\nint TS_RESP_set_status_info(TS_RESP *a, TS_STATUS_INFO *info);\nTS_STATUS_INFO *TS_RESP_get_status_info(TS_RESP *a);\n\n/* Caller loses ownership of PKCS7 and TS_TST_INFO objects. */\nvoid TS_RESP_set_tst_info(TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info);\nPKCS7 *TS_RESP_get_token(TS_RESP *a);\nTS_TST_INFO *TS_RESP_get_tst_info(TS_RESP *a);\n\nint TS_TST_INFO_set_version(TS_TST_INFO *a, long version);\nlong TS_TST_INFO_get_version(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_policy_id(TS_TST_INFO *a, ASN1_OBJECT *policy_id);\nASN1_OBJECT *TS_TST_INFO_get_policy_id(TS_TST_INFO *a);\n\nint TS_TST_INFO_set_msg_imprint(TS_TST_INFO *a, TS_MSG_IMPRINT *msg_imprint);\nTS_MSG_IMPRINT *TS_TST_INFO_get_msg_imprint(TS_TST_INFO *a);\n\nint TS_TST_INFO_set_serial(TS_TST_INFO *a, const ASN1_INTEGER *serial);\nconst ASN1_INTEGER *TS_TST_INFO_get_serial(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_time(TS_TST_INFO *a, const ASN1_GENERALIZEDTIME *gtime);\nconst ASN1_GENERALIZEDTIME *TS_TST_INFO_get_time(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_accuracy(TS_TST_INFO *a, TS_ACCURACY *accuracy);\nTS_ACCURACY *TS_TST_INFO_get_accuracy(TS_TST_INFO *a);\n\nint TS_ACCURACY_set_seconds(TS_ACCURACY *a, const ASN1_INTEGER *seconds);\nconst ASN1_INTEGER *TS_ACCURACY_get_seconds(const TS_ACCURACY *a);\n\nint TS_ACCURACY_set_millis(TS_ACCURACY *a, const ASN1_INTEGER *millis);\nconst ASN1_INTEGER *TS_ACCURACY_get_millis(const TS_ACCURACY *a);\n\nint TS_ACCURACY_set_micros(TS_ACCURACY *a, const ASN1_INTEGER *micros);\nconst ASN1_INTEGER *TS_ACCURACY_get_micros(const TS_ACCURACY *a);\n\nint TS_TST_INFO_set_ordering(TS_TST_INFO *a, int ordering);\nint TS_TST_INFO_get_ordering(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_nonce(TS_TST_INFO *a, const ASN1_INTEGER *nonce);\nconst ASN1_INTEGER *TS_TST_INFO_get_nonce(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_tsa(TS_TST_INFO *a, GENERAL_NAME *tsa);\nGENERAL_NAME *TS_TST_INFO_get_tsa(TS_TST_INFO *a);\n\nSTACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a);\nvoid TS_TST_INFO_ext_free(TS_TST_INFO *a);\nint TS_TST_INFO_get_ext_count(TS_TST_INFO *a);\nint TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos);\nint TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj,\n                               int lastpos);\nint TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);\nX509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc);\nX509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc);\nint TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc);\nvoid *TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx);\n\n/*\n * Declarations related to response generation, defined in ts/ts_resp_sign.c.\n */\n\n/* Optional flags for response generation. */\n\n/* Don't include the TSA name in response. */\n# define TS_TSA_NAME             0x01\n\n/* Set ordering to true in response. */\n# define TS_ORDERING             0x02\n\n/*\n * Include the signer certificate and the other specified certificates in\n * the ESS signing certificate attribute beside the PKCS7 signed data.\n * Only the signer certificates is included by default.\n */\n# define TS_ESS_CERT_ID_CHAIN    0x04\n\n/* Forward declaration. */\nstruct TS_resp_ctx;\n\n/* This must return a unique number less than 160 bits long. */\ntypedef ASN1_INTEGER *(*TS_serial_cb) (struct TS_resp_ctx *, void *);\n\n/*\n * This must return the seconds and microseconds since Jan 1, 1970 in the sec\n * and usec variables allocated by the caller. Return non-zero for success\n * and zero for failure.\n */\ntypedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,\n                           long *usec);\n\n/*\n * This must process the given extension. It can modify the TS_TST_INFO\n * object of the context. Return values: !0 (processed), 0 (error, it must\n * set the status info/failure info of the response).\n */\ntypedef int (*TS_extension_cb) (struct TS_resp_ctx *, X509_EXTENSION *,\n                                void *);\n\ntypedef struct TS_resp_ctx TS_RESP_CTX;\n\nDEFINE_STACK_OF_CONST(EVP_MD)\n\n/* Creates a response context that can be used for generating responses. */\nTS_RESP_CTX *TS_RESP_CTX_new(void);\nvoid TS_RESP_CTX_free(TS_RESP_CTX *ctx);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_signer_cert(TS_RESP_CTX *ctx, X509 *signer);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key);\n\nint TS_RESP_CTX_set_signer_digest(TS_RESP_CTX *ctx,\n                                  const EVP_MD *signer_digest);\nint TS_RESP_CTX_set_ess_cert_id_digest(TS_RESP_CTX *ctx, const EVP_MD *md);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_def_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *def_policy);\n\n/* No additional certs are included in the response by default. */\nint TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs);\n\n/*\n * Adds a new acceptable policy, only the default policy is accepted by\n * default.\n */\nint TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *policy);\n\n/*\n * Adds a new acceptable message digest. Note that no message digests are\n * accepted by default. The md argument is shared with the caller.\n */\nint TS_RESP_CTX_add_md(TS_RESP_CTX *ctx, const EVP_MD *md);\n\n/* Accuracy is not included by default. */\nint TS_RESP_CTX_set_accuracy(TS_RESP_CTX *ctx,\n                             int secs, int millis, int micros);\n\n/*\n * Clock precision digits, i.e. the number of decimal digits: '0' means sec,\n * '3' msec, '6' usec, and so on. Default is 0.\n */\nint TS_RESP_CTX_set_clock_precision_digits(TS_RESP_CTX *ctx,\n                                           unsigned clock_precision_digits);\n/* At most we accept usec precision. */\n# define TS_MAX_CLOCK_PRECISION_DIGITS   6\n\n/* Maximum status message length */\n# define TS_MAX_STATUS_LENGTH   (1024 * 1024)\n\n/* No flags are set by default. */\nvoid TS_RESP_CTX_add_flags(TS_RESP_CTX *ctx, int flags);\n\n/* Default callback always returns a constant. */\nvoid TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data);\n\n/* Default callback uses the gettimeofday() and gmtime() system calls. */\nvoid TS_RESP_CTX_set_time_cb(TS_RESP_CTX *ctx, TS_time_cb cb, void *data);\n\n/*\n * Default callback rejects all extensions. The extension callback is called\n * when the TS_TST_INFO object is already set up and not signed yet.\n */\n/* FIXME: extension handling is not tested yet. */\nvoid TS_RESP_CTX_set_extension_cb(TS_RESP_CTX *ctx,\n                                  TS_extension_cb cb, void *data);\n\n/* The following methods can be used in the callbacks. */\nint TS_RESP_CTX_set_status_info(TS_RESP_CTX *ctx,\n                                int status, const char *text);\n\n/* Sets the status info only if it is still TS_STATUS_GRANTED. */\nint TS_RESP_CTX_set_status_info_cond(TS_RESP_CTX *ctx,\n                                     int status, const char *text);\n\nint TS_RESP_CTX_add_failure_info(TS_RESP_CTX *ctx, int failure);\n\n/* The get methods below can be used in the extension callback. */\nTS_REQ *TS_RESP_CTX_get_request(TS_RESP_CTX *ctx);\n\nTS_TST_INFO *TS_RESP_CTX_get_tst_info(TS_RESP_CTX *ctx);\n\n/*\n * Creates the signed TS_TST_INFO and puts it in TS_RESP.\n * In case of errors it sets the status info properly.\n * Returns NULL only in case of memory allocation/fatal error.\n */\nTS_RESP *TS_RESP_create_response(TS_RESP_CTX *ctx, BIO *req_bio);\n\n/*\n * Declarations related to response verification,\n * they are defined in ts/ts_resp_verify.c.\n */\n\nint TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs,\n                             X509_STORE *store, X509 **signer_out);\n\n/* Context structure for the generic verify method. */\n\n/* Verify the signer's certificate and the signature of the response. */\n# define TS_VFY_SIGNATURE        (1u << 0)\n/* Verify the version number of the response. */\n# define TS_VFY_VERSION          (1u << 1)\n/* Verify if the policy supplied by the user matches the policy of the TSA. */\n# define TS_VFY_POLICY           (1u << 2)\n/*\n * Verify the message imprint provided by the user. This flag should not be\n * specified with TS_VFY_DATA.\n */\n# define TS_VFY_IMPRINT          (1u << 3)\n/*\n * Verify the message imprint computed by the verify method from the user\n * provided data and the MD algorithm of the response. This flag should not\n * be specified with TS_VFY_IMPRINT.\n */\n# define TS_VFY_DATA             (1u << 4)\n/* Verify the nonce value. */\n# define TS_VFY_NONCE            (1u << 5)\n/* Verify if the TSA name field matches the signer certificate. */\n# define TS_VFY_SIGNER           (1u << 6)\n/* Verify if the TSA name field equals to the user provided name. */\n# define TS_VFY_TSA_NAME         (1u << 7)\n\n/* You can use the following convenience constants. */\n# define TS_VFY_ALL_IMPRINT      (TS_VFY_SIGNATURE       \\\n                                 | TS_VFY_VERSION       \\\n                                 | TS_VFY_POLICY        \\\n                                 | TS_VFY_IMPRINT       \\\n                                 | TS_VFY_NONCE         \\\n                                 | TS_VFY_SIGNER        \\\n                                 | TS_VFY_TSA_NAME)\n# define TS_VFY_ALL_DATA         (TS_VFY_SIGNATURE       \\\n                                 | TS_VFY_VERSION       \\\n                                 | TS_VFY_POLICY        \\\n                                 | TS_VFY_DATA          \\\n                                 | TS_VFY_NONCE         \\\n                                 | TS_VFY_SIGNER        \\\n                                 | TS_VFY_TSA_NAME)\n\ntypedef struct TS_verify_ctx TS_VERIFY_CTX;\n\nint TS_RESP_verify_response(TS_VERIFY_CTX *ctx, TS_RESP *response);\nint TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token);\n\n/*\n * Declarations related to response verification context,\n */\nTS_VERIFY_CTX *TS_VERIFY_CTX_new(void);\nvoid TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx);\nvoid TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx);\nvoid TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx);\nint TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int f);\nint TS_VERIFY_CTX_add_flags(TS_VERIFY_CTX *ctx, int f);\nBIO *TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *b);\nunsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,\n                                         unsigned char *hexstr, long len);\nX509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s);\nSTACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);\n\n/*-\n * If ctx is NULL, it allocates and returns a new object, otherwise\n * it returns ctx. It initialises all the members as follows:\n * flags = TS_VFY_ALL_IMPRINT & ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE)\n * certs = NULL\n * store = NULL\n * policy = policy from the request or NULL if absent (in this case\n *      TS_VFY_POLICY is cleared from flags as well)\n * md_alg = MD algorithm from request\n * imprint, imprint_len = imprint from request\n * data = NULL\n * nonce, nonce_len = nonce from the request or NULL if absent (in this case\n *      TS_VFY_NONCE is cleared from flags as well)\n * tsa_name = NULL\n * Important: after calling this method TS_VFY_SIGNATURE should be added!\n */\nTS_VERIFY_CTX *TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx);\n\n/* Function declarations for TS_RESP defined in ts/ts_resp_print.c */\n\nint TS_RESP_print_bio(BIO *bio, TS_RESP *a);\nint TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a);\nint TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a);\n\n/* Common utility functions defined in ts/ts_lib.c */\n\nint TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num);\nint TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj);\nint TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions);\nint TS_X509_ALGOR_print_bio(BIO *bio, const X509_ALGOR *alg);\nint TS_MSG_IMPRINT_print_bio(BIO *bio, TS_MSG_IMPRINT *msg);\n\n/*\n * Function declarations for handling configuration options, defined in\n * ts/ts_conf.c\n */\n\nX509 *TS_CONF_load_cert(const char *file);\nSTACK_OF(X509) *TS_CONF_load_certs(const char *file);\nEVP_PKEY *TS_CONF_load_key(const char *file, const char *pass);\nconst char *TS_CONF_get_tsa_section(CONF *conf, const char *section);\nint TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb,\n                       TS_RESP_CTX *ctx);\n#ifndef OPENSSL_NO_ENGINE\nint TS_CONF_set_crypto_device(CONF *conf, const char *section,\n                              const char *device);\nint TS_CONF_set_default_engine(const char *name);\n#endif\nint TS_CONF_set_signer_cert(CONF *conf, const char *section,\n                            const char *cert, TS_RESP_CTX *ctx);\nint TS_CONF_set_certs(CONF *conf, const char *section, const char *certs,\n                      TS_RESP_CTX *ctx);\nint TS_CONF_set_signer_key(CONF *conf, const char *section,\n                           const char *key, const char *pass,\n                           TS_RESP_CTX *ctx);\nint TS_CONF_set_signer_digest(CONF *conf, const char *section,\n                               const char *md, TS_RESP_CTX *ctx);\nint TS_CONF_set_def_policy(CONF *conf, const char *section,\n                           const char *policy, TS_RESP_CTX *ctx);\nint TS_CONF_set_policies(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_digests(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_accuracy(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_clock_precision_digits(CONF *conf, const char *section,\n                                       TS_RESP_CTX *ctx);\nint TS_CONF_set_ordering(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_tsa_name(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_ess_cert_id_chain(CONF *conf, const char *section,\n                                  TS_RESP_CTX *ctx);\nint TS_CONF_set_ess_cert_id_digest(CONF *conf, const char *section,\n                                      TS_RESP_CTX *ctx);\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/tserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TSERR_H\n# define HEADER_TSERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_TS\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_TS_strings(void);\n\n/*\n * TS function codes.\n */\n#  define TS_F_DEF_SERIAL_CB                               110\n#  define TS_F_DEF_TIME_CB                                 111\n#  define TS_F_ESS_ADD_SIGNING_CERT                        112\n#  define TS_F_ESS_ADD_SIGNING_CERT_V2                     147\n#  define TS_F_ESS_CERT_ID_NEW_INIT                        113\n#  define TS_F_ESS_CERT_ID_V2_NEW_INIT                     156\n#  define TS_F_ESS_SIGNING_CERT_NEW_INIT                   114\n#  define TS_F_ESS_SIGNING_CERT_V2_NEW_INIT                157\n#  define TS_F_INT_TS_RESP_VERIFY_TOKEN                    149\n#  define TS_F_PKCS7_TO_TS_TST_INFO                        148\n#  define TS_F_TS_ACCURACY_SET_MICROS                      115\n#  define TS_F_TS_ACCURACY_SET_MILLIS                      116\n#  define TS_F_TS_ACCURACY_SET_SECONDS                     117\n#  define TS_F_TS_CHECK_IMPRINTS                           100\n#  define TS_F_TS_CHECK_NONCES                             101\n#  define TS_F_TS_CHECK_POLICY                             102\n#  define TS_F_TS_CHECK_SIGNING_CERTS                      103\n#  define TS_F_TS_CHECK_STATUS_INFO                        104\n#  define TS_F_TS_COMPUTE_IMPRINT                          145\n#  define TS_F_TS_CONF_INVALID                             151\n#  define TS_F_TS_CONF_LOAD_CERT                           153\n#  define TS_F_TS_CONF_LOAD_CERTS                          154\n#  define TS_F_TS_CONF_LOAD_KEY                            155\n#  define TS_F_TS_CONF_LOOKUP_FAIL                         152\n#  define TS_F_TS_CONF_SET_DEFAULT_ENGINE                  146\n#  define TS_F_TS_GET_STATUS_TEXT                          105\n#  define TS_F_TS_MSG_IMPRINT_SET_ALGO                     118\n#  define TS_F_TS_REQ_SET_MSG_IMPRINT                      119\n#  define TS_F_TS_REQ_SET_NONCE                            120\n#  define TS_F_TS_REQ_SET_POLICY_ID                        121\n#  define TS_F_TS_RESP_CREATE_RESPONSE                     122\n#  define TS_F_TS_RESP_CREATE_TST_INFO                     123\n#  define TS_F_TS_RESP_CTX_ADD_FAILURE_INFO                124\n#  define TS_F_TS_RESP_CTX_ADD_MD                          125\n#  define TS_F_TS_RESP_CTX_ADD_POLICY                      126\n#  define TS_F_TS_RESP_CTX_NEW                             127\n#  define TS_F_TS_RESP_CTX_SET_ACCURACY                    128\n#  define TS_F_TS_RESP_CTX_SET_CERTS                       129\n#  define TS_F_TS_RESP_CTX_SET_DEF_POLICY                  130\n#  define TS_F_TS_RESP_CTX_SET_SIGNER_CERT                 131\n#  define TS_F_TS_RESP_CTX_SET_STATUS_INFO                 132\n#  define TS_F_TS_RESP_GET_POLICY                          133\n#  define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION          134\n#  define TS_F_TS_RESP_SET_STATUS_INFO                     135\n#  define TS_F_TS_RESP_SET_TST_INFO                        150\n#  define TS_F_TS_RESP_SIGN                                136\n#  define TS_F_TS_RESP_VERIFY_SIGNATURE                    106\n#  define TS_F_TS_TST_INFO_SET_ACCURACY                    137\n#  define TS_F_TS_TST_INFO_SET_MSG_IMPRINT                 138\n#  define TS_F_TS_TST_INFO_SET_NONCE                       139\n#  define TS_F_TS_TST_INFO_SET_POLICY_ID                   140\n#  define TS_F_TS_TST_INFO_SET_SERIAL                      141\n#  define TS_F_TS_TST_INFO_SET_TIME                        142\n#  define TS_F_TS_TST_INFO_SET_TSA                         143\n#  define TS_F_TS_VERIFY                                   108\n#  define TS_F_TS_VERIFY_CERT                              109\n#  define TS_F_TS_VERIFY_CTX_NEW                           144\n\n/*\n * TS reason codes.\n */\n#  define TS_R_BAD_PKCS7_TYPE                              132\n#  define TS_R_BAD_TYPE                                    133\n#  define TS_R_CANNOT_LOAD_CERT                            137\n#  define TS_R_CANNOT_LOAD_KEY                             138\n#  define TS_R_CERTIFICATE_VERIFY_ERROR                    100\n#  define TS_R_COULD_NOT_SET_ENGINE                        127\n#  define TS_R_COULD_NOT_SET_TIME                          115\n#  define TS_R_DETACHED_CONTENT                            134\n#  define TS_R_ESS_ADD_SIGNING_CERT_ERROR                  116\n#  define TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR               139\n#  define TS_R_ESS_SIGNING_CERTIFICATE_ERROR               101\n#  define TS_R_INVALID_NULL_POINTER                        102\n#  define TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE          117\n#  define TS_R_MESSAGE_IMPRINT_MISMATCH                    103\n#  define TS_R_NONCE_MISMATCH                              104\n#  define TS_R_NONCE_NOT_RETURNED                          105\n#  define TS_R_NO_CONTENT                                  106\n#  define TS_R_NO_TIME_STAMP_TOKEN                         107\n#  define TS_R_PKCS7_ADD_SIGNATURE_ERROR                   118\n#  define TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR                 119\n#  define TS_R_PKCS7_TO_TS_TST_INFO_FAILED                 129\n#  define TS_R_POLICY_MISMATCH                             108\n#  define TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE      120\n#  define TS_R_RESPONSE_SETUP_ERROR                        121\n#  define TS_R_SIGNATURE_FAILURE                           109\n#  define TS_R_THERE_MUST_BE_ONE_SIGNER                    110\n#  define TS_R_TIME_SYSCALL_ERROR                          122\n#  define TS_R_TOKEN_NOT_PRESENT                           130\n#  define TS_R_TOKEN_PRESENT                               131\n#  define TS_R_TSA_NAME_MISMATCH                           111\n#  define TS_R_TSA_UNTRUSTED                               112\n#  define TS_R_TST_INFO_SETUP_ERROR                        123\n#  define TS_R_TS_DATASIGN                                 124\n#  define TS_R_UNACCEPTABLE_POLICY                         125\n#  define TS_R_UNSUPPORTED_MD_ALGORITHM                    126\n#  define TS_R_UNSUPPORTED_VERSION                         113\n#  define TS_R_VAR_BAD_VALUE                               135\n#  define TS_R_VAR_LOOKUP_FAILURE                          136\n#  define TS_R_WRONG_CONTENT_TYPE                          114\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/txt_db.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TXT_DB_H\n# define HEADER_TXT_DB_H\n\n# include <openssl/opensslconf.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/lhash.h>\n\n# define DB_ERROR_OK                     0\n# define DB_ERROR_MALLOC                 1\n# define DB_ERROR_INDEX_CLASH            2\n# define DB_ERROR_INDEX_OUT_OF_RANGE     3\n# define DB_ERROR_NO_INDEX               4\n# define DB_ERROR_INSERT_INDEX_CLASH     5\n# define DB_ERROR_WRONG_NUM_FIELDS       6\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef OPENSSL_STRING *OPENSSL_PSTRING;\nDEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)\n\ntypedef struct txt_db_st {\n    int num_fields;\n    STACK_OF(OPENSSL_PSTRING) *data;\n    LHASH_OF(OPENSSL_STRING) **index;\n    int (**qual) (OPENSSL_STRING *);\n    long error;\n    long arg1;\n    long arg2;\n    OPENSSL_STRING *arg_row;\n} TXT_DB;\n\nTXT_DB *TXT_DB_read(BIO *in, int num);\nlong TXT_DB_write(BIO *out, TXT_DB *db);\nint TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *),\n                        OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp);\nvoid TXT_DB_free(TXT_DB *db);\nOPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx,\n                                    OPENSSL_STRING *value);\nint TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/ui.h",
    "content": "/*\n * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_UI_H\n# define HEADER_UI_H\n\n# include <openssl/opensslconf.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/crypto.h>\n# endif\n# include <openssl/safestack.h>\n# include <openssl/pem.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/uierr.h>\n\n/* For compatibility reasons, the macro OPENSSL_NO_UI is currently retained */\n# if OPENSSL_API_COMPAT < 0x10200000L\n#  ifdef OPENSSL_NO_UI_CONSOLE\n#   define OPENSSL_NO_UI\n#  endif\n# endif\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * All the following functions return -1 or NULL on error and in some cases\n * (UI_process()) -2 if interrupted or in some other way cancelled. When\n * everything is fine, they return 0, a positive value or a non-NULL pointer,\n * all depending on their purpose.\n */\n\n/* Creators and destructor.   */\nUI *UI_new(void);\nUI *UI_new_method(const UI_METHOD *method);\nvoid UI_free(UI *ui);\n\n/*-\n   The following functions are used to add strings to be printed and prompt\n   strings to prompt for data.  The names are UI_{add,dup}_<function>_string\n   and UI_{add,dup}_input_boolean.\n\n   UI_{add,dup}_<function>_string have the following meanings:\n        add     add a text or prompt string.  The pointers given to these\n                functions are used verbatim, no copying is done.\n        dup     make a copy of the text or prompt string, then add the copy\n                to the collection of strings in the user interface.\n        <function>\n                The function is a name for the functionality that the given\n                string shall be used for.  It can be one of:\n                        input   use the string as data prompt.\n                        verify  use the string as verification prompt.  This\n                                is used to verify a previous input.\n                        info    use the string for informational output.\n                        error   use the string for error output.\n   Honestly, there's currently no difference between info and error for the\n   moment.\n\n   UI_{add,dup}_input_boolean have the same semantics for \"add\" and \"dup\",\n   and are typically used when one wants to prompt for a yes/no response.\n\n   All of the functions in this group take a UI and a prompt string.\n   The string input and verify addition functions also take a flag argument,\n   a buffer for the result to end up with, a minimum input size and a maximum\n   input size (the result buffer MUST be large enough to be able to contain\n   the maximum number of characters).  Additionally, the verify addition\n   functions takes another buffer to compare the result against.\n   The boolean input functions take an action description string (which should\n   be safe to ignore if the expected user action is obvious, for example with\n   a dialog box with an OK button and a Cancel button), a string of acceptable\n   characters to mean OK and to mean Cancel.  The two last strings are checked\n   to make sure they don't have common characters.  Additionally, the same\n   flag argument as for the string input is taken, as well as a result buffer.\n   The result buffer is required to be at least one byte long.  Depending on\n   the answer, the first character from the OK or the Cancel character strings\n   will be stored in the first byte of the result buffer.  No NUL will be\n   added, so the result is *not* a string.\n\n   On success, the all return an index of the added information.  That index\n   is useful when retrieving results with UI_get0_result(). */\nint UI_add_input_string(UI *ui, const char *prompt, int flags,\n                        char *result_buf, int minsize, int maxsize);\nint UI_dup_input_string(UI *ui, const char *prompt, int flags,\n                        char *result_buf, int minsize, int maxsize);\nint UI_add_verify_string(UI *ui, const char *prompt, int flags,\n                         char *result_buf, int minsize, int maxsize,\n                         const char *test_buf);\nint UI_dup_verify_string(UI *ui, const char *prompt, int flags,\n                         char *result_buf, int minsize, int maxsize,\n                         const char *test_buf);\nint UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,\n                         const char *ok_chars, const char *cancel_chars,\n                         int flags, char *result_buf);\nint UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,\n                         const char *ok_chars, const char *cancel_chars,\n                         int flags, char *result_buf);\nint UI_add_info_string(UI *ui, const char *text);\nint UI_dup_info_string(UI *ui, const char *text);\nint UI_add_error_string(UI *ui, const char *text);\nint UI_dup_error_string(UI *ui, const char *text);\n\n/* These are the possible flags.  They can be or'ed together. */\n/* Use to have echoing of input */\n# define UI_INPUT_FLAG_ECHO              0x01\n/*\n * Use a default password.  Where that password is found is completely up to\n * the application, it might for example be in the user data set with\n * UI_add_user_data().  It is not recommended to have more than one input in\n * each UI being marked with this flag, or the application might get\n * confused.\n */\n# define UI_INPUT_FLAG_DEFAULT_PWD       0x02\n\n/*-\n * The user of these routines may want to define flags of their own.  The core\n * UI won't look at those, but will pass them on to the method routines.  They\n * must use higher bits so they don't get confused with the UI bits above.\n * UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use.  A good\n * example of use is this:\n *\n *    #define MY_UI_FLAG1       (0x01 << UI_INPUT_FLAG_USER_BASE)\n *\n*/\n# define UI_INPUT_FLAG_USER_BASE 16\n\n/*-\n * The following function helps construct a prompt.  object_desc is a\n * textual short description of the object, for example \"pass phrase\",\n * and object_name is the name of the object (might be a card name or\n * a file name.\n * The returned string shall always be allocated on the heap with\n * OPENSSL_malloc(), and need to be free'd with OPENSSL_free().\n *\n * If the ui_method doesn't contain a pointer to a user-defined prompt\n * constructor, a default string is built, looking like this:\n *\n *       \"Enter {object_desc} for {object_name}:\"\n *\n * So, if object_desc has the value \"pass phrase\" and object_name has\n * the value \"foo.key\", the resulting string is:\n *\n *       \"Enter pass phrase for foo.key:\"\n*/\nchar *UI_construct_prompt(UI *ui_method,\n                          const char *object_desc, const char *object_name);\n\n/*\n * The following function is used to store a pointer to user-specific data.\n * Any previous such pointer will be returned and replaced.\n *\n * For callback purposes, this function makes a lot more sense than using\n * ex_data, since the latter requires that different parts of OpenSSL or\n * applications share the same ex_data index.\n *\n * Note that the UI_OpenSSL() method completely ignores the user data. Other\n * methods may not, however.\n */\nvoid *UI_add_user_data(UI *ui, void *user_data);\n/*\n * Alternatively, this function is used to duplicate the user data.\n * This uses the duplicator method function.  The destroy function will\n * be used to free the user data in this case.\n */\nint UI_dup_user_data(UI *ui, void *user_data);\n/* We need a user data retrieving function as well.  */\nvoid *UI_get0_user_data(UI *ui);\n\n/* Return the result associated with a prompt given with the index i. */\nconst char *UI_get0_result(UI *ui, int i);\nint UI_get_result_length(UI *ui, int i);\n\n/* When all strings have been added, process the whole thing. */\nint UI_process(UI *ui);\n\n/*\n * Give a user interface parameterised control commands.  This can be used to\n * send down an integer, a data pointer or a function pointer, as well as be\n * used to get information from a UI.\n */\nint UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f) (void));\n\n/* The commands */\n/*\n * Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the\n * OpenSSL error stack before printing any info or added error messages and\n * before any prompting.\n */\n# define UI_CTRL_PRINT_ERRORS            1\n/*\n * Check if a UI_process() is possible to do again with the same instance of\n * a user interface.  This makes UI_ctrl() return 1 if it is redoable, and 0\n * if not.\n */\n# define UI_CTRL_IS_REDOABLE             2\n\n/* Some methods may use extra data */\n# define UI_set_app_data(s,arg)         UI_set_ex_data(s,0,arg)\n# define UI_get_app_data(s)             UI_get_ex_data(s,0)\n\n# define UI_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef)\nint UI_set_ex_data(UI *r, int idx, void *arg);\nvoid *UI_get_ex_data(UI *r, int idx);\n\n/* Use specific methods instead of the built-in one */\nvoid UI_set_default_method(const UI_METHOD *meth);\nconst UI_METHOD *UI_get_default_method(void);\nconst UI_METHOD *UI_get_method(UI *ui);\nconst UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth);\n\n# ifndef OPENSSL_NO_UI_CONSOLE\n\n/* The method with all the built-in thingies */\nUI_METHOD *UI_OpenSSL(void);\n\n# endif\n\n/*\n * NULL method.  Literally does nothing, but may serve as a placeholder\n * to avoid internal default.\n */\nconst UI_METHOD *UI_null(void);\n\n/* ---------- For method writers ---------- */\n/*-\n   A method contains a number of functions that implement the low level\n   of the User Interface.  The functions are:\n\n        an opener       This function starts a session, maybe by opening\n                        a channel to a tty, or by opening a window.\n        a writer        This function is called to write a given string,\n                        maybe to the tty, maybe as a field label in a\n                        window.\n        a flusher       This function is called to flush everything that\n                        has been output so far.  It can be used to actually\n                        display a dialog box after it has been built.\n        a reader        This function is called to read a given prompt,\n                        maybe from the tty, maybe from a field in a\n                        window.  Note that it's called with all string\n                        structures, not only the prompt ones, so it must\n                        check such things itself.\n        a closer        This function closes the session, maybe by closing\n                        the channel to the tty, or closing the window.\n\n   All these functions are expected to return:\n\n        0       on error.\n        1       on success.\n        -1      on out-of-band events, for example if some prompting has\n                been canceled (by pressing Ctrl-C, for example).  This is\n                only checked when returned by the flusher or the reader.\n\n   The way this is used, the opener is first called, then the writer for all\n   strings, then the flusher, then the reader for all strings and finally the\n   closer.  Note that if you want to prompt from a terminal or other command\n   line interface, the best is to have the reader also write the prompts\n   instead of having the writer do it.  If you want to prompt from a dialog\n   box, the writer can be used to build up the contents of the box, and the\n   flusher to actually display the box and run the event loop until all data\n   has been given, after which the reader only grabs the given data and puts\n   them back into the UI strings.\n\n   All method functions take a UI as argument.  Additionally, the writer and\n   the reader take a UI_STRING.\n*/\n\n/*\n * The UI_STRING type is the data structure that contains all the needed info\n * about a string or a prompt, including test data for a verification prompt.\n */\ntypedef struct ui_string_st UI_STRING;\nDEFINE_STACK_OF(UI_STRING)\n\n/*\n * The different types of strings that are currently supported. This is only\n * needed by method authors.\n */\nenum UI_string_types {\n    UIT_NONE = 0,\n    UIT_PROMPT,                 /* Prompt for a string */\n    UIT_VERIFY,                 /* Prompt for a string and verify */\n    UIT_BOOLEAN,                /* Prompt for a yes/no response */\n    UIT_INFO,                   /* Send info to the user */\n    UIT_ERROR                   /* Send an error message to the user */\n};\n\n/* Create and manipulate methods */\nUI_METHOD *UI_create_method(const char *name);\nvoid UI_destroy_method(UI_METHOD *ui_method);\nint UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui));\nint UI_method_set_writer(UI_METHOD *method,\n                         int (*writer) (UI *ui, UI_STRING *uis));\nint UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui));\nint UI_method_set_reader(UI_METHOD *method,\n                         int (*reader) (UI *ui, UI_STRING *uis));\nint UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui));\nint UI_method_set_data_duplicator(UI_METHOD *method,\n                                  void *(*duplicator) (UI *ui, void *ui_data),\n                                  void (*destructor)(UI *ui, void *ui_data));\nint UI_method_set_prompt_constructor(UI_METHOD *method,\n                                     char *(*prompt_constructor) (UI *ui,\n                                                                  const char\n                                                                  *object_desc,\n                                                                  const char\n                                                                  *object_name));\nint UI_method_set_ex_data(UI_METHOD *method, int idx, void *data);\nint (*UI_method_get_opener(const UI_METHOD *method)) (UI *);\nint (*UI_method_get_writer(const UI_METHOD *method)) (UI *, UI_STRING *);\nint (*UI_method_get_flusher(const UI_METHOD *method)) (UI *);\nint (*UI_method_get_reader(const UI_METHOD *method)) (UI *, UI_STRING *);\nint (*UI_method_get_closer(const UI_METHOD *method)) (UI *);\nchar *(*UI_method_get_prompt_constructor(const UI_METHOD *method))\n    (UI *, const char *, const char *);\nvoid *(*UI_method_get_data_duplicator(const UI_METHOD *method)) (UI *, void *);\nvoid (*UI_method_get_data_destructor(const UI_METHOD *method)) (UI *, void *);\nconst void *UI_method_get_ex_data(const UI_METHOD *method, int idx);\n\n/*\n * The following functions are helpers for method writers to access relevant\n * data from a UI_STRING.\n */\n\n/* Return type of the UI_STRING */\nenum UI_string_types UI_get_string_type(UI_STRING *uis);\n/* Return input flags of the UI_STRING */\nint UI_get_input_flags(UI_STRING *uis);\n/* Return the actual string to output (the prompt, info or error) */\nconst char *UI_get0_output_string(UI_STRING *uis);\n/*\n * Return the optional action string to output (the boolean prompt\n * instruction)\n */\nconst char *UI_get0_action_string(UI_STRING *uis);\n/* Return the result of a prompt */\nconst char *UI_get0_result_string(UI_STRING *uis);\nint UI_get_result_string_length(UI_STRING *uis);\n/*\n * Return the string to test the result against.  Only useful with verifies.\n */\nconst char *UI_get0_test_string(UI_STRING *uis);\n/* Return the required minimum size of the result */\nint UI_get_result_minsize(UI_STRING *uis);\n/* Return the required maximum size of the result */\nint UI_get_result_maxsize(UI_STRING *uis);\n/* Set the result of a UI_STRING. */\nint UI_set_result(UI *ui, UI_STRING *uis, const char *result);\nint UI_set_result_ex(UI *ui, UI_STRING *uis, const char *result, int len);\n\n/* A couple of popular utility functions */\nint UI_UTIL_read_pw_string(char *buf, int length, const char *prompt,\n                           int verify);\nint UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,\n                    int verify);\nUI_METHOD *UI_UTIL_wrap_read_pem_callback(pem_password_cb *cb, int rwflag);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/uierr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_UIERR_H\n# define HEADER_UIERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_UI_strings(void);\n\n/*\n * UI function codes.\n */\n# define UI_F_CLOSE_CONSOLE                               115\n# define UI_F_ECHO_CONSOLE                                116\n# define UI_F_GENERAL_ALLOCATE_BOOLEAN                    108\n# define UI_F_GENERAL_ALLOCATE_PROMPT                     109\n# define UI_F_NOECHO_CONSOLE                              117\n# define UI_F_OPEN_CONSOLE                                114\n# define UI_F_UI_CONSTRUCT_PROMPT                         121\n# define UI_F_UI_CREATE_METHOD                            112\n# define UI_F_UI_CTRL                                     111\n# define UI_F_UI_DUP_ERROR_STRING                         101\n# define UI_F_UI_DUP_INFO_STRING                          102\n# define UI_F_UI_DUP_INPUT_BOOLEAN                        110\n# define UI_F_UI_DUP_INPUT_STRING                         103\n# define UI_F_UI_DUP_USER_DATA                            118\n# define UI_F_UI_DUP_VERIFY_STRING                        106\n# define UI_F_UI_GET0_RESULT                              107\n# define UI_F_UI_GET_RESULT_LENGTH                        119\n# define UI_F_UI_NEW_METHOD                               104\n# define UI_F_UI_PROCESS                                  113\n# define UI_F_UI_SET_RESULT                               105\n# define UI_F_UI_SET_RESULT_EX                            120\n\n/*\n * UI reason codes.\n */\n# define UI_R_COMMON_OK_AND_CANCEL_CHARACTERS             104\n# define UI_R_INDEX_TOO_LARGE                             102\n# define UI_R_INDEX_TOO_SMALL                             103\n# define UI_R_NO_RESULT_BUFFER                            105\n# define UI_R_PROCESSING_ERROR                            107\n# define UI_R_RESULT_TOO_LARGE                            100\n# define UI_R_RESULT_TOO_SMALL                            101\n# define UI_R_SYSASSIGN_ERROR                             109\n# define UI_R_SYSDASSGN_ERROR                             110\n# define UI_R_SYSQIOW_ERROR                               111\n# define UI_R_UNKNOWN_CONTROL_COMMAND                     106\n# define UI_R_UNKNOWN_TTYGET_ERRNO_VALUE                  108\n# define UI_R_USER_DATA_DUPLICATION_UNSUPPORTED           112\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/whrlpool.h",
    "content": "/*\n * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_WHRLPOOL_H\n# define HEADER_WHRLPOOL_H\n\n#include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_WHIRLPOOL\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef __cplusplus\nextern \"C\" {\n# endif\n\n# define WHIRLPOOL_DIGEST_LENGTH (512/8)\n# define WHIRLPOOL_BBLOCK        512\n# define WHIRLPOOL_COUNTER       (256/8)\n\ntypedef struct {\n    union {\n        unsigned char c[WHIRLPOOL_DIGEST_LENGTH];\n        /* double q is here to ensure 64-bit alignment */\n        double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)];\n    } H;\n    unsigned char data[WHIRLPOOL_BBLOCK / 8];\n    unsigned int bitoff;\n    size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)];\n} WHIRLPOOL_CTX;\n\nint WHIRLPOOL_Init(WHIRLPOOL_CTX *c);\nint WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *inp, size_t bytes);\nvoid WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *inp, size_t bits);\nint WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c);\nunsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md);\n\n# ifdef __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/x509.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509_H\n# define HEADER_X509_H\n\n# include <openssl/e_os2.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/safestack.h>\n# include <openssl/ec.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/rsa.h>\n#  include <openssl/dsa.h>\n#  include <openssl/dh.h>\n# endif\n\n# include <openssl/sha.h>\n# include <openssl/x509err.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n\n/* Flags for X509_get_signature_info() */\n/* Signature info is valid */\n# define X509_SIG_INFO_VALID     0x1\n/* Signature is suitable for TLS use */\n# define X509_SIG_INFO_TLS       0x2\n\n# define X509_FILETYPE_PEM       1\n# define X509_FILETYPE_ASN1      2\n# define X509_FILETYPE_DEFAULT   3\n\n# define X509v3_KU_DIGITAL_SIGNATURE     0x0080\n# define X509v3_KU_NON_REPUDIATION       0x0040\n# define X509v3_KU_KEY_ENCIPHERMENT      0x0020\n# define X509v3_KU_DATA_ENCIPHERMENT     0x0010\n# define X509v3_KU_KEY_AGREEMENT         0x0008\n# define X509v3_KU_KEY_CERT_SIGN         0x0004\n# define X509v3_KU_CRL_SIGN              0x0002\n# define X509v3_KU_ENCIPHER_ONLY         0x0001\n# define X509v3_KU_DECIPHER_ONLY         0x8000\n# define X509v3_KU_UNDEF                 0xffff\n\nstruct X509_algor_st {\n    ASN1_OBJECT *algorithm;\n    ASN1_TYPE *parameter;\n} /* X509_ALGOR */ ;\n\ntypedef STACK_OF(X509_ALGOR) X509_ALGORS;\n\ntypedef struct X509_val_st {\n    ASN1_TIME *notBefore;\n    ASN1_TIME *notAfter;\n} X509_VAL;\n\ntypedef struct X509_sig_st X509_SIG;\n\ntypedef struct X509_name_entry_st X509_NAME_ENTRY;\n\nDEFINE_STACK_OF(X509_NAME_ENTRY)\n\nDEFINE_STACK_OF(X509_NAME)\n\n# define X509_EX_V_NETSCAPE_HACK         0x8000\n# define X509_EX_V_INIT                  0x0001\ntypedef struct X509_extension_st X509_EXTENSION;\n\ntypedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;\n\nDEFINE_STACK_OF(X509_EXTENSION)\n\ntypedef struct x509_attributes_st X509_ATTRIBUTE;\n\nDEFINE_STACK_OF(X509_ATTRIBUTE)\n\ntypedef struct X509_req_info_st X509_REQ_INFO;\n\ntypedef struct X509_req_st X509_REQ;\n\ntypedef struct x509_cert_aux_st X509_CERT_AUX;\n\ntypedef struct x509_cinf_st X509_CINF;\n\nDEFINE_STACK_OF(X509)\n\n/* This is used for a table of trust checking functions */\n\ntypedef struct x509_trust_st {\n    int trust;\n    int flags;\n    int (*check_trust) (struct x509_trust_st *, X509 *, int);\n    char *name;\n    int arg1;\n    void *arg2;\n} X509_TRUST;\n\nDEFINE_STACK_OF(X509_TRUST)\n\n/* standard trust ids */\n\n# define X509_TRUST_DEFAULT      0 /* Only valid in purpose settings */\n\n# define X509_TRUST_COMPAT       1\n# define X509_TRUST_SSL_CLIENT   2\n# define X509_TRUST_SSL_SERVER   3\n# define X509_TRUST_EMAIL        4\n# define X509_TRUST_OBJECT_SIGN  5\n# define X509_TRUST_OCSP_SIGN    6\n# define X509_TRUST_OCSP_REQUEST 7\n# define X509_TRUST_TSA          8\n\n/* Keep these up to date! */\n# define X509_TRUST_MIN          1\n# define X509_TRUST_MAX          8\n\n/* trust_flags values */\n# define X509_TRUST_DYNAMIC      (1U << 0)\n# define X509_TRUST_DYNAMIC_NAME (1U << 1)\n/* No compat trust if self-signed, preempts \"DO_SS\" */\n# define X509_TRUST_NO_SS_COMPAT (1U << 2)\n/* Compat trust if no explicit accepted trust EKUs */\n# define X509_TRUST_DO_SS_COMPAT (1U << 3)\n/* Accept \"anyEKU\" as a wildcard trust OID */\n# define X509_TRUST_OK_ANY_EKU   (1U << 4)\n\n/* check_trust return codes */\n\n# define X509_TRUST_TRUSTED      1\n# define X509_TRUST_REJECTED     2\n# define X509_TRUST_UNTRUSTED    3\n\n/* Flags for X509_print_ex() */\n\n# define X509_FLAG_COMPAT                0\n# define X509_FLAG_NO_HEADER             1L\n# define X509_FLAG_NO_VERSION            (1L << 1)\n# define X509_FLAG_NO_SERIAL             (1L << 2)\n# define X509_FLAG_NO_SIGNAME            (1L << 3)\n# define X509_FLAG_NO_ISSUER             (1L << 4)\n# define X509_FLAG_NO_VALIDITY           (1L << 5)\n# define X509_FLAG_NO_SUBJECT            (1L << 6)\n# define X509_FLAG_NO_PUBKEY             (1L << 7)\n# define X509_FLAG_NO_EXTENSIONS         (1L << 8)\n# define X509_FLAG_NO_SIGDUMP            (1L << 9)\n# define X509_FLAG_NO_AUX                (1L << 10)\n# define X509_FLAG_NO_ATTRIBUTES         (1L << 11)\n# define X509_FLAG_NO_IDS                (1L << 12)\n\n/* Flags specific to X509_NAME_print_ex() */\n\n/* The field separator information */\n\n# define XN_FLAG_SEP_MASK        (0xf << 16)\n\n# define XN_FLAG_COMPAT          0/* Traditional; use old X509_NAME_print */\n# define XN_FLAG_SEP_COMMA_PLUS  (1 << 16)/* RFC2253 ,+ */\n# define XN_FLAG_SEP_CPLUS_SPC   (2 << 16)/* ,+ spaced: more readable */\n# define XN_FLAG_SEP_SPLUS_SPC   (3 << 16)/* ;+ spaced */\n# define XN_FLAG_SEP_MULTILINE   (4 << 16)/* One line per field */\n\n# define XN_FLAG_DN_REV          (1 << 20)/* Reverse DN order */\n\n/* How the field name is shown */\n\n# define XN_FLAG_FN_MASK         (0x3 << 21)\n\n# define XN_FLAG_FN_SN           0/* Object short name */\n# define XN_FLAG_FN_LN           (1 << 21)/* Object long name */\n# define XN_FLAG_FN_OID          (2 << 21)/* Always use OIDs */\n# define XN_FLAG_FN_NONE         (3 << 21)/* No field names */\n\n# define XN_FLAG_SPC_EQ          (1 << 23)/* Put spaces round '=' */\n\n/*\n * This determines if we dump fields we don't recognise: RFC2253 requires\n * this.\n */\n\n# define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24)\n\n# define XN_FLAG_FN_ALIGN        (1 << 25)/* Align field names to 20\n                                           * characters */\n\n/* Complete set of RFC2253 flags */\n\n# define XN_FLAG_RFC2253 (ASN1_STRFLGS_RFC2253 | \\\n                        XN_FLAG_SEP_COMMA_PLUS | \\\n                        XN_FLAG_DN_REV | \\\n                        XN_FLAG_FN_SN | \\\n                        XN_FLAG_DUMP_UNKNOWN_FIELDS)\n\n/* readable oneline form */\n\n# define XN_FLAG_ONELINE (ASN1_STRFLGS_RFC2253 | \\\n                        ASN1_STRFLGS_ESC_QUOTE | \\\n                        XN_FLAG_SEP_CPLUS_SPC | \\\n                        XN_FLAG_SPC_EQ | \\\n                        XN_FLAG_FN_SN)\n\n/* readable multiline form */\n\n# define XN_FLAG_MULTILINE (ASN1_STRFLGS_ESC_CTRL | \\\n                        ASN1_STRFLGS_ESC_MSB | \\\n                        XN_FLAG_SEP_MULTILINE | \\\n                        XN_FLAG_SPC_EQ | \\\n                        XN_FLAG_FN_LN | \\\n                        XN_FLAG_FN_ALIGN)\n\nDEFINE_STACK_OF(X509_REVOKED)\n\ntypedef struct X509_crl_info_st X509_CRL_INFO;\n\nDEFINE_STACK_OF(X509_CRL)\n\ntypedef struct private_key_st {\n    int version;\n    /* The PKCS#8 data types */\n    X509_ALGOR *enc_algor;\n    ASN1_OCTET_STRING *enc_pkey; /* encrypted pub key */\n    /* When decrypted, the following will not be NULL */\n    EVP_PKEY *dec_pkey;\n    /* used to encrypt and decrypt */\n    int key_length;\n    char *key_data;\n    int key_free;               /* true if we should auto free key_data */\n    /* expanded version of 'enc_algor' */\n    EVP_CIPHER_INFO cipher;\n} X509_PKEY;\n\ntypedef struct X509_info_st {\n    X509 *x509;\n    X509_CRL *crl;\n    X509_PKEY *x_pkey;\n    EVP_CIPHER_INFO enc_cipher;\n    int enc_len;\n    char *enc_data;\n} X509_INFO;\n\nDEFINE_STACK_OF(X509_INFO)\n\n/*\n * The next 2 structures and their 8 routines are used to manipulate Netscape's\n * spki structures - useful if you are writing a CA web page\n */\ntypedef struct Netscape_spkac_st {\n    X509_PUBKEY *pubkey;\n    ASN1_IA5STRING *challenge;  /* challenge sent in atlas >= PR2 */\n} NETSCAPE_SPKAC;\n\ntypedef struct Netscape_spki_st {\n    NETSCAPE_SPKAC *spkac;      /* signed public key and challenge */\n    X509_ALGOR sig_algor;\n    ASN1_BIT_STRING *signature;\n} NETSCAPE_SPKI;\n\n/* Netscape certificate sequence structure */\ntypedef struct Netscape_certificate_sequence {\n    ASN1_OBJECT *type;\n    STACK_OF(X509) *certs;\n} NETSCAPE_CERT_SEQUENCE;\n\n/*- Unused (and iv length is wrong)\ntypedef struct CBCParameter_st\n        {\n        unsigned char iv[8];\n        } CBC_PARAM;\n*/\n\n/* Password based encryption structure */\n\ntypedef struct PBEPARAM_st {\n    ASN1_OCTET_STRING *salt;\n    ASN1_INTEGER *iter;\n} PBEPARAM;\n\n/* Password based encryption V2 structures */\n\ntypedef struct PBE2PARAM_st {\n    X509_ALGOR *keyfunc;\n    X509_ALGOR *encryption;\n} PBE2PARAM;\n\ntypedef struct PBKDF2PARAM_st {\n/* Usually OCTET STRING but could be anything */\n    ASN1_TYPE *salt;\n    ASN1_INTEGER *iter;\n    ASN1_INTEGER *keylength;\n    X509_ALGOR *prf;\n} PBKDF2PARAM;\n\n#ifndef OPENSSL_NO_SCRYPT\ntypedef struct SCRYPT_PARAMS_st {\n    ASN1_OCTET_STRING *salt;\n    ASN1_INTEGER *costParameter;\n    ASN1_INTEGER *blockSize;\n    ASN1_INTEGER *parallelizationParameter;\n    ASN1_INTEGER *keyLength;\n} SCRYPT_PARAMS;\n#endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n# include <openssl/x509_vfy.h>\n# include <openssl/pkcs7.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define X509_EXT_PACK_UNKNOWN   1\n# define X509_EXT_PACK_STRING    2\n\n# define         X509_extract_key(x)     X509_get_pubkey(x)/*****/\n# define         X509_REQ_extract_key(a) X509_REQ_get_pubkey(a)\n# define         X509_name_cmp(a,b)      X509_NAME_cmp((a),(b))\n\nvoid X509_CRL_set_default_method(const X509_CRL_METHOD *meth);\nX509_CRL_METHOD *X509_CRL_METHOD_new(int (*crl_init) (X509_CRL *crl),\n                                     int (*crl_free) (X509_CRL *crl),\n                                     int (*crl_lookup) (X509_CRL *crl,\n                                                        X509_REVOKED **ret,\n                                                        ASN1_INTEGER *ser,\n                                                        X509_NAME *issuer),\n                                     int (*crl_verify) (X509_CRL *crl,\n                                                        EVP_PKEY *pk));\nvoid X509_CRL_METHOD_free(X509_CRL_METHOD *m);\n\nvoid X509_CRL_set_meth_data(X509_CRL *crl, void *dat);\nvoid *X509_CRL_get_meth_data(X509_CRL *crl);\n\nconst char *X509_verify_cert_error_string(long n);\n\nint X509_verify(X509 *a, EVP_PKEY *r);\n\nint X509_REQ_verify(X509_REQ *a, EVP_PKEY *r);\nint X509_CRL_verify(X509_CRL *a, EVP_PKEY *r);\nint NETSCAPE_SPKI_verify(NETSCAPE_SPKI *a, EVP_PKEY *r);\n\nNETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str, int len);\nchar *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *x);\nEVP_PKEY *NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *x);\nint NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey);\n\nint NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);\n\nint X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent);\nint X509_signature_print(BIO *bp, const X509_ALGOR *alg,\n                         const ASN1_STRING *sig);\n\nint X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);\n# ifndef OPENSSL_NO_OCSP\nint X509_http_nbio(OCSP_REQ_CTX *rctx, X509 **pcert);\n# endif\nint X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx);\nint X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_CRL_sign_ctx(X509_CRL *x, EVP_MD_CTX *ctx);\n# ifndef OPENSSL_NO_OCSP\nint X509_CRL_http_nbio(OCSP_REQ_CTX *rctx, X509_CRL **pcrl);\n# endif\nint NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);\n\nint X509_pubkey_digest(const X509 *data, const EVP_MD *type,\n                       unsigned char *md, unsigned int *len);\nint X509_digest(const X509 *data, const EVP_MD *type,\n                unsigned char *md, unsigned int *len);\nint X509_CRL_digest(const X509_CRL *data, const EVP_MD *type,\n                    unsigned char *md, unsigned int *len);\nint X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,\n                    unsigned char *md, unsigned int *len);\nint X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,\n                     unsigned char *md, unsigned int *len);\n\n# ifndef OPENSSL_NO_STDIO\nX509 *d2i_X509_fp(FILE *fp, X509 **x509);\nint i2d_X509_fp(FILE *fp, X509 *x509);\nX509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl);\nint i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl);\nX509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req);\nint i2d_X509_REQ_fp(FILE *fp, X509_REQ *req);\n#  ifndef OPENSSL_NO_RSA\nRSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa);\nint i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa);\nRSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa);\nint i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa);\nRSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa);\nint i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa);\n#  endif\n#  ifndef OPENSSL_NO_DSA\nDSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa);\nint i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa);\nDSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa);\nint i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa);\n#  endif\n#  ifndef OPENSSL_NO_EC\nEC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);\nint i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);\nEC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);\nint i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);\n#  endif\nX509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8);\nint i2d_PKCS8_fp(FILE *fp, X509_SIG *p8);\nPKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,\n                                                PKCS8_PRIV_KEY_INFO **p8inf);\nint i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf);\nint i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key);\nint i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a);\nint i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a);\n# endif\n\nX509 *d2i_X509_bio(BIO *bp, X509 **x509);\nint i2d_X509_bio(BIO *bp, X509 *x509);\nX509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl);\nint i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl);\nX509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req);\nint i2d_X509_REQ_bio(BIO *bp, X509_REQ *req);\n#  ifndef OPENSSL_NO_RSA\nRSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa);\nint i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa);\nRSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa);\nint i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa);\nRSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa);\nint i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa);\n#  endif\n#  ifndef OPENSSL_NO_DSA\nDSA *d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa);\nint i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa);\nDSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa);\nint i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa);\n#  endif\n#  ifndef OPENSSL_NO_EC\nEC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);\nint i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);\nEC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);\nint i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);\n#  endif\nX509_SIG *d2i_PKCS8_bio(BIO *bp, X509_SIG **p8);\nint i2d_PKCS8_bio(BIO *bp, X509_SIG *p8);\nPKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,\n                                                 PKCS8_PRIV_KEY_INFO **p8inf);\nint i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf);\nint i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key);\nint i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a);\nint i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a);\n\nX509 *X509_dup(X509 *x509);\nX509_ATTRIBUTE *X509_ATTRIBUTE_dup(X509_ATTRIBUTE *xa);\nX509_EXTENSION *X509_EXTENSION_dup(X509_EXTENSION *ex);\nX509_CRL *X509_CRL_dup(X509_CRL *crl);\nX509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);\nX509_REQ *X509_REQ_dup(X509_REQ *req);\nX509_ALGOR *X509_ALGOR_dup(X509_ALGOR *xn);\nint X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype,\n                    void *pval);\nvoid X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype,\n                     const void **ppval, const X509_ALGOR *algor);\nvoid X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);\nint X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);\nint X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src);\n\nX509_NAME *X509_NAME_dup(X509_NAME *xn);\nX509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne);\n\nint X509_cmp_time(const ASN1_TIME *s, time_t *t);\nint X509_cmp_current_time(const ASN1_TIME *s);\nASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);\nASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,\n                            int offset_day, long offset_sec, time_t *t);\nASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);\n\nconst char *X509_get_default_cert_area(void);\nconst char *X509_get_default_cert_dir(void);\nconst char *X509_get_default_cert_file(void);\nconst char *X509_get_default_cert_dir_env(void);\nconst char *X509_get_default_cert_file_env(void);\nconst char *X509_get_default_private_dir(void);\n\nX509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);\nX509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey);\n\nDECLARE_ASN1_FUNCTIONS(X509_ALGOR)\nDECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS)\nDECLARE_ASN1_FUNCTIONS(X509_VAL)\n\nDECLARE_ASN1_FUNCTIONS(X509_PUBKEY)\n\nint X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey);\nEVP_PKEY *X509_PUBKEY_get0(X509_PUBKEY *key);\nEVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key);\nint X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain);\nlong X509_get_pathlen(X509 *x);\nint i2d_PUBKEY(EVP_PKEY *a, unsigned char **pp);\nEVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length);\n# ifndef OPENSSL_NO_RSA\nint i2d_RSA_PUBKEY(RSA *a, unsigned char **pp);\nRSA *d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length);\n# endif\n# ifndef OPENSSL_NO_DSA\nint i2d_DSA_PUBKEY(DSA *a, unsigned char **pp);\nDSA *d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length);\n# endif\n# ifndef OPENSSL_NO_EC\nint i2d_EC_PUBKEY(EC_KEY *a, unsigned char **pp);\nEC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length);\n# endif\n\nDECLARE_ASN1_FUNCTIONS(X509_SIG)\nvoid X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg,\n                   const ASN1_OCTET_STRING **pdigest);\nvoid X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg,\n                   ASN1_OCTET_STRING **pdigest);\n\nDECLARE_ASN1_FUNCTIONS(X509_REQ_INFO)\nDECLARE_ASN1_FUNCTIONS(X509_REQ)\n\nDECLARE_ASN1_FUNCTIONS(X509_ATTRIBUTE)\nX509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value);\n\nDECLARE_ASN1_FUNCTIONS(X509_EXTENSION)\nDECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)\n\nDECLARE_ASN1_FUNCTIONS(X509_NAME_ENTRY)\n\nDECLARE_ASN1_FUNCTIONS(X509_NAME)\n\nint X509_NAME_set(X509_NAME **xn, X509_NAME *name);\n\nDECLARE_ASN1_FUNCTIONS(X509_CINF)\n\nDECLARE_ASN1_FUNCTIONS(X509)\nDECLARE_ASN1_FUNCTIONS(X509_CERT_AUX)\n\n#define X509_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509, l, p, newf, dupf, freef)\nint X509_set_ex_data(X509 *r, int idx, void *arg);\nvoid *X509_get_ex_data(X509 *r, int idx);\nint i2d_X509_AUX(X509 *a, unsigned char **pp);\nX509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length);\n\nint i2d_re_X509_tbs(X509 *x, unsigned char **pp);\n\nint X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid,\n                      int *secbits, uint32_t *flags);\nvoid X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid,\n                       int secbits, uint32_t flags);\n\nint X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits,\n                            uint32_t *flags);\n\nvoid X509_get0_signature(const ASN1_BIT_STRING **psig,\n                         const X509_ALGOR **palg, const X509 *x);\nint X509_get_signature_nid(const X509 *x);\n\nint X509_trusted(const X509 *x);\nint X509_alias_set1(X509 *x, const unsigned char *name, int len);\nint X509_keyid_set1(X509 *x, const unsigned char *id, int len);\nunsigned char *X509_alias_get0(X509 *x, int *len);\nunsigned char *X509_keyid_get0(X509 *x, int *len);\nint (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *,\n                                                                int);\nint X509_TRUST_set(int *t, int trust);\nint X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj);\nint X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj);\nvoid X509_trust_clear(X509 *x);\nvoid X509_reject_clear(X509 *x);\n\nSTACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x);\nSTACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x);\n\nDECLARE_ASN1_FUNCTIONS(X509_REVOKED)\nDECLARE_ASN1_FUNCTIONS(X509_CRL_INFO)\nDECLARE_ASN1_FUNCTIONS(X509_CRL)\n\nint X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev);\nint X509_CRL_get0_by_serial(X509_CRL *crl,\n                            X509_REVOKED **ret, ASN1_INTEGER *serial);\nint X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret, X509 *x);\n\nX509_PKEY *X509_PKEY_new(void);\nvoid X509_PKEY_free(X509_PKEY *a);\n\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKI)\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKAC)\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_CERT_SEQUENCE)\n\nX509_INFO *X509_INFO_new(void);\nvoid X509_INFO_free(X509_INFO *a);\nchar *X509_NAME_oneline(const X509_NAME *a, char *buf, int size);\n\nint ASN1_verify(i2d_of_void *i2d, X509_ALGOR *algor1,\n                ASN1_BIT_STRING *signature, char *data, EVP_PKEY *pkey);\n\nint ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data,\n                unsigned char *md, unsigned int *len);\n\nint ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1,\n              X509_ALGOR *algor2, ASN1_BIT_STRING *signature,\n              char *data, EVP_PKEY *pkey, const EVP_MD *type);\n\nint ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *data,\n                     unsigned char *md, unsigned int *len);\n\nint ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                     ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey);\n\nint ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                   X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *data,\n                   EVP_PKEY *pkey, const EVP_MD *type);\nint ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                       X509_ALGOR *algor2, ASN1_BIT_STRING *signature,\n                       void *asn, EVP_MD_CTX *ctx);\n\nlong X509_get_version(const X509 *x);\nint X509_set_version(X509 *x, long version);\nint X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial);\nASN1_INTEGER *X509_get_serialNumber(X509 *x);\nconst ASN1_INTEGER *X509_get0_serialNumber(const X509 *x);\nint X509_set_issuer_name(X509 *x, X509_NAME *name);\nX509_NAME *X509_get_issuer_name(const X509 *a);\nint X509_set_subject_name(X509 *x, X509_NAME *name);\nX509_NAME *X509_get_subject_name(const X509 *a);\nconst ASN1_TIME * X509_get0_notBefore(const X509 *x);\nASN1_TIME *X509_getm_notBefore(const X509 *x);\nint X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);\nconst ASN1_TIME *X509_get0_notAfter(const X509 *x);\nASN1_TIME *X509_getm_notAfter(const X509 *x);\nint X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);\nint X509_set_pubkey(X509 *x, EVP_PKEY *pkey);\nint X509_up_ref(X509 *x);\nint X509_get_signature_type(const X509 *x);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_get_notBefore X509_getm_notBefore\n#  define X509_get_notAfter X509_getm_notAfter\n#  define X509_set_notBefore X509_set1_notBefore\n#  define X509_set_notAfter X509_set1_notAfter\n#endif\n\n\n/*\n * This one is only used so that a binary form can output, as in\n * i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &buf)\n */\nX509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x);\nconst STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x);\nvoid X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **piuid,\n                    const ASN1_BIT_STRING **psuid);\nconst X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x);\n\nEVP_PKEY *X509_get0_pubkey(const X509 *x);\nEVP_PKEY *X509_get_pubkey(X509 *x);\nASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x);\nint X509_certificate_type(const X509 *x, const EVP_PKEY *pubkey);\n\nlong X509_REQ_get_version(const X509_REQ *req);\nint X509_REQ_set_version(X509_REQ *x, long version);\nX509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);\nint X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);\nvoid X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,\n                             const X509_ALGOR **palg);\nvoid X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig);\nint X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg);\nint X509_REQ_get_signature_nid(const X509_REQ *req);\nint i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);\nint X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);\nEVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req);\nEVP_PKEY *X509_REQ_get0_pubkey(X509_REQ *req);\nX509_PUBKEY *X509_REQ_get_X509_PUBKEY(X509_REQ *req);\nint X509_REQ_extension_nid(int nid);\nint *X509_REQ_get_extension_nids(void);\nvoid X509_REQ_set_extension_nids(int *nids);\nSTACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);\nint X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts,\n                                int nid);\nint X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts);\nint X509_REQ_get_attr_count(const X509_REQ *req);\nint X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos);\nint X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,\n                             int lastpos);\nX509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc);\nX509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc);\nint X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);\nint X509_REQ_add1_attr_by_OBJ(X509_REQ *req,\n                              const ASN1_OBJECT *obj, int type,\n                              const unsigned char *bytes, int len);\nint X509_REQ_add1_attr_by_NID(X509_REQ *req,\n                              int nid, int type,\n                              const unsigned char *bytes, int len);\nint X509_REQ_add1_attr_by_txt(X509_REQ *req,\n                              const char *attrname, int type,\n                              const unsigned char *bytes, int len);\n\nint X509_CRL_set_version(X509_CRL *x, long version);\nint X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);\nint X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);\nint X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);\nint X509_CRL_sort(X509_CRL *crl);\nint X509_CRL_up_ref(X509_CRL *crl);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_CRL_set_lastUpdate X509_CRL_set1_lastUpdate\n#  define X509_CRL_set_nextUpdate X509_CRL_set1_nextUpdate\n#endif\n\nlong X509_CRL_get_version(const X509_CRL *crl);\nconst ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);\nconst ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl);\nDEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl))\nDEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))\nX509_NAME *X509_CRL_get_issuer(const X509_CRL *crl);\nconst STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);\nSTACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl);\nvoid X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig,\n                             const X509_ALGOR **palg);\nint X509_CRL_get_signature_nid(const X509_CRL *crl);\nint i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp);\n\nconst ASN1_INTEGER *X509_REVOKED_get0_serialNumber(const X509_REVOKED *x);\nint X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial);\nconst ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *x);\nint X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);\nconst STACK_OF(X509_EXTENSION) *\nX509_REVOKED_get0_extensions(const X509_REVOKED *r);\n\nX509_CRL *X509_CRL_diff(X509_CRL *base, X509_CRL *newer,\n                        EVP_PKEY *skey, const EVP_MD *md, unsigned int flags);\n\nint X509_REQ_check_private_key(X509_REQ *x509, EVP_PKEY *pkey);\n\nint X509_check_private_key(const X509 *x509, const EVP_PKEY *pkey);\nint X509_chain_check_suiteb(int *perror_depth,\n                            X509 *x, STACK_OF(X509) *chain,\n                            unsigned long flags);\nint X509_CRL_check_suiteb(X509_CRL *crl, EVP_PKEY *pk, unsigned long flags);\nSTACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);\n\nint X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);\nunsigned long X509_issuer_and_serial_hash(X509 *a);\n\nint X509_issuer_name_cmp(const X509 *a, const X509 *b);\nunsigned long X509_issuer_name_hash(X509 *a);\n\nint X509_subject_name_cmp(const X509 *a, const X509 *b);\nunsigned long X509_subject_name_hash(X509 *x);\n\n# ifndef OPENSSL_NO_MD5\nunsigned long X509_issuer_name_hash_old(X509 *a);\nunsigned long X509_subject_name_hash_old(X509 *x);\n# endif\n\nint X509_cmp(const X509 *a, const X509 *b);\nint X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);\nunsigned long X509_NAME_hash(X509_NAME *x);\nunsigned long X509_NAME_hash_old(X509_NAME *x);\n\nint X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);\nint X509_CRL_match(const X509_CRL *a, const X509_CRL *b);\nint X509_aux_print(BIO *out, X509 *x, int indent);\n# ifndef OPENSSL_NO_STDIO\nint X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag,\n                     unsigned long cflag);\nint X509_print_fp(FILE *bp, X509 *x);\nint X509_CRL_print_fp(FILE *bp, X509_CRL *x);\nint X509_REQ_print_fp(FILE *bp, X509_REQ *req);\nint X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, int indent,\n                          unsigned long flags);\n# endif\n\nint X509_NAME_print(BIO *bp, const X509_NAME *name, int obase);\nint X509_NAME_print_ex(BIO *out, const X509_NAME *nm, int indent,\n                       unsigned long flags);\nint X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag,\n                  unsigned long cflag);\nint X509_print(BIO *bp, X509 *x);\nint X509_ocspid_print(BIO *bp, X509 *x);\nint X509_CRL_print_ex(BIO *out, X509_CRL *x, unsigned long nmflag);\nint X509_CRL_print(BIO *bp, X509_CRL *x);\nint X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag,\n                      unsigned long cflag);\nint X509_REQ_print(BIO *bp, X509_REQ *req);\n\nint X509_NAME_entry_count(const X509_NAME *name);\nint X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);\nint X509_NAME_get_text_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj,\n                              char *buf, int len);\n\n/*\n * NOTE: you should be passing -1, not 0 as lastpos. The functions that use\n * lastpos, search after that position on.\n */\nint X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);\nint X509_NAME_get_index_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj,\n                               int lastpos);\nX509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc);\nX509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc);\nint X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne,\n                        int loc, int set);\nint X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nint X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne,\n                                               const char *field, int type,\n                                               const unsigned char *bytes,\n                                               int len);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid,\n                                               int type,\n                                               const unsigned char *bytes,\n                                               int len);\nint X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne,\n                                               const ASN1_OBJECT *obj, int type,\n                                               const unsigned char *bytes,\n                                               int len);\nint X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj);\nint X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,\n                             const unsigned char *bytes, int len);\nASN1_OBJECT *X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne);\nASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);\nint X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne);\n\nint X509_NAME_get0_der(X509_NAME *nm, const unsigned char **pder,\n                       size_t *pderlen);\n\nint X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x);\nint X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x,\n                          int nid, int lastpos);\nint X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x,\n                          const ASN1_OBJECT *obj, int lastpos);\nint X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x,\n                               int crit, int lastpos);\nX509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc);\nX509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc);\nSTACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x,\n                                         X509_EXTENSION *ex, int loc);\n\nint X509_get_ext_count(const X509 *x);\nint X509_get_ext_by_NID(const X509 *x, int nid, int lastpos);\nint X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos);\nint X509_get_ext_by_critical(const X509 *x, int crit, int lastpos);\nX509_EXTENSION *X509_get_ext(const X509 *x, int loc);\nX509_EXTENSION *X509_delete_ext(X509 *x, int loc);\nint X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc);\nvoid *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx);\nint X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,\n                      unsigned long flags);\n\nint X509_CRL_get_ext_count(const X509_CRL *x);\nint X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos);\nint X509_CRL_get_ext_by_OBJ(const X509_CRL *x, const ASN1_OBJECT *obj,\n                            int lastpos);\nint X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos);\nX509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc);\nX509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc);\nint X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc);\nvoid *X509_CRL_get_ext_d2i(const X509_CRL *x, int nid, int *crit, int *idx);\nint X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit,\n                          unsigned long flags);\n\nint X509_REVOKED_get_ext_count(const X509_REVOKED *x);\nint X509_REVOKED_get_ext_by_NID(const X509_REVOKED *x, int nid, int lastpos);\nint X509_REVOKED_get_ext_by_OBJ(const X509_REVOKED *x, const ASN1_OBJECT *obj,\n                                int lastpos);\nint X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit,\n                                     int lastpos);\nX509_EXTENSION *X509_REVOKED_get_ext(const X509_REVOKED *x, int loc);\nX509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc);\nint X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc);\nvoid *X509_REVOKED_get_ext_d2i(const X509_REVOKED *x, int nid, int *crit,\n                               int *idx);\nint X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit,\n                              unsigned long flags);\n\nX509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex,\n                                             int nid, int crit,\n                                             ASN1_OCTET_STRING *data);\nX509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex,\n                                             const ASN1_OBJECT *obj, int crit,\n                                             ASN1_OCTET_STRING *data);\nint X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj);\nint X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);\nint X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data);\nASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex);\nASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);\nint X509_EXTENSION_get_critical(const X509_EXTENSION *ex);\n\nint X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x);\nint X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid,\n                           int lastpos);\nint X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk,\n                           const ASN1_OBJECT *obj, int lastpos);\nX509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc);\nX509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,\n                                           X509_ATTRIBUTE *attr);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, const ASN1_OBJECT *obj,\n                                                  int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, int nid, int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, const char *attrname,\n                                                  int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nvoid *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,\n                              const ASN1_OBJECT *obj, int lastpos, int type);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,\n                                             int atrtype, const void *data,\n                                             int len);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,\n                                             const ASN1_OBJECT *obj,\n                                             int atrtype, const void *data,\n                                             int len);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr,\n                                             const char *atrname, int type,\n                                             const unsigned char *bytes,\n                                             int len);\nint X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj);\nint X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,\n                             const void *data, int len);\nvoid *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype,\n                               void *data);\nint X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr);\nASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr);\nASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx);\n\nint EVP_PKEY_get_attr_count(const EVP_PKEY *key);\nint EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos);\nint EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj,\n                             int lastpos);\nX509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc);\nX509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc);\nint EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);\nint EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key,\n                              const ASN1_OBJECT *obj, int type,\n                              const unsigned char *bytes, int len);\nint EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key,\n                              int nid, int type,\n                              const unsigned char *bytes, int len);\nint EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key,\n                              const char *attrname, int type,\n                              const unsigned char *bytes, int len);\n\nint X509_verify_cert(X509_STORE_CTX *ctx);\n\n/* lookup a cert from a X509 STACK */\nX509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,\n                                     ASN1_INTEGER *serial);\nX509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name);\n\nDECLARE_ASN1_FUNCTIONS(PBEPARAM)\nDECLARE_ASN1_FUNCTIONS(PBE2PARAM)\nDECLARE_ASN1_FUNCTIONS(PBKDF2PARAM)\n#ifndef OPENSSL_NO_SCRYPT\nDECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS)\n#endif\n\nint PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,\n                         const unsigned char *salt, int saltlen);\n\nX509_ALGOR *PKCS5_pbe_set(int alg, int iter,\n                          const unsigned char *salt, int saltlen);\nX509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,\n                           unsigned char *salt, int saltlen);\nX509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,\n                              unsigned char *salt, int saltlen,\n                              unsigned char *aiv, int prf_nid);\n\n#ifndef OPENSSL_NO_SCRYPT\nX509_ALGOR *PKCS5_pbe2_set_scrypt(const EVP_CIPHER *cipher,\n                                  const unsigned char *salt, int saltlen,\n                                  unsigned char *aiv, uint64_t N, uint64_t r,\n                                  uint64_t p);\n#endif\n\nX509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,\n                             int prf_nid, int keylen);\n\n/* PKCS#8 utilities */\n\nDECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)\n\nEVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);\nPKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey);\n\nint PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj,\n                    int version, int ptype, void *pval,\n                    unsigned char *penc, int penclen);\nint PKCS8_pkey_get0(const ASN1_OBJECT **ppkalg,\n                    const unsigned char **pk, int *ppklen,\n                    const X509_ALGOR **pa, const PKCS8_PRIV_KEY_INFO *p8);\n\nconst STACK_OF(X509_ATTRIBUTE) *\nPKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8);\nint PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type,\n                                const unsigned char *bytes, int len);\n\nint X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj,\n                           int ptype, void *pval,\n                           unsigned char *penc, int penclen);\nint X509_PUBKEY_get0_param(ASN1_OBJECT **ppkalg,\n                           const unsigned char **pk, int *ppklen,\n                           X509_ALGOR **pa, X509_PUBKEY *pub);\n\nint X509_check_trust(X509 *x, int id, int flags);\nint X509_TRUST_get_count(void);\nX509_TRUST *X509_TRUST_get0(int idx);\nint X509_TRUST_get_by_id(int id);\nint X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int),\n                   const char *name, int arg1, void *arg2);\nvoid X509_TRUST_cleanup(void);\nint X509_TRUST_get_flags(const X509_TRUST *xp);\nchar *X509_TRUST_get0_name(const X509_TRUST *xp);\nint X509_TRUST_get_trust(const X509_TRUST *xp);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/x509_vfy.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509_VFY_H\n# define HEADER_X509_VFY_H\n\n/*\n * Protect against recursion, x509.h and x509_vfy.h each include the other.\n */\n# ifndef HEADER_X509_H\n#  include <openssl/x509.h>\n# endif\n\n# include <openssl/opensslconf.h>\n# include <openssl/lhash.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/symhacks.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\nSSL_CTX -> X509_STORE\n                -> X509_LOOKUP\n                        ->X509_LOOKUP_METHOD\n                -> X509_LOOKUP\n                        ->X509_LOOKUP_METHOD\n\nSSL     -> X509_STORE_CTX\n                ->X509_STORE\n\nThe X509_STORE holds the tables etc for verification stuff.\nA X509_STORE_CTX is used while validating a single certificate.\nThe X509_STORE has X509_LOOKUPs for looking up certs.\nThe X509_STORE then calls a function to actually verify the\ncertificate chain.\n*/\n\ntypedef enum {\n    X509_LU_NONE = 0,\n    X509_LU_X509, X509_LU_CRL\n} X509_LOOKUP_TYPE;\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n#define X509_LU_RETRY   -1\n#define X509_LU_FAIL    0\n#endif\n\nDEFINE_STACK_OF(X509_LOOKUP)\nDEFINE_STACK_OF(X509_OBJECT)\nDEFINE_STACK_OF(X509_VERIFY_PARAM)\n\nint X509_STORE_set_depth(X509_STORE *store, int depth);\n\ntypedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);\ntypedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);\ntypedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer,\n                                            X509_STORE_CTX *ctx, X509 *x);\ntypedef int (*X509_STORE_CTX_check_issued_fn)(X509_STORE_CTX *ctx,\n                                              X509 *x, X509 *issuer);\ntypedef int (*X509_STORE_CTX_check_revocation_fn)(X509_STORE_CTX *ctx);\ntypedef int (*X509_STORE_CTX_get_crl_fn)(X509_STORE_CTX *ctx,\n                                         X509_CRL **crl, X509 *x);\ntypedef int (*X509_STORE_CTX_check_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl);\ntypedef int (*X509_STORE_CTX_cert_crl_fn)(X509_STORE_CTX *ctx,\n                                          X509_CRL *crl, X509 *x);\ntypedef int (*X509_STORE_CTX_check_policy_fn)(X509_STORE_CTX *ctx);\ntypedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,\n                                                          X509_NAME *nm);\ntypedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(X509_STORE_CTX *ctx,\n                                                             X509_NAME *nm);\ntypedef int (*X509_STORE_CTX_cleanup_fn)(X509_STORE_CTX *ctx);\n\n\nvoid X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);\n\n# define X509_STORE_CTX_set_app_data(ctx,data) \\\n        X509_STORE_CTX_set_ex_data(ctx,0,data)\n# define X509_STORE_CTX_get_app_data(ctx) \\\n        X509_STORE_CTX_get_ex_data(ctx,0)\n\n# define X509_L_FILE_LOAD        1\n# define X509_L_ADD_DIR          2\n\n# define X509_LOOKUP_load_file(x,name,type) \\\n                X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(long)(type),NULL)\n\n# define X509_LOOKUP_add_dir(x,name,type) \\\n                X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(long)(type),NULL)\n\n# define         X509_V_OK                                       0\n# define         X509_V_ERR_UNSPECIFIED                          1\n# define         X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT            2\n# define         X509_V_ERR_UNABLE_TO_GET_CRL                    3\n# define         X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE     4\n# define         X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE      5\n# define         X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY   6\n# define         X509_V_ERR_CERT_SIGNATURE_FAILURE               7\n# define         X509_V_ERR_CRL_SIGNATURE_FAILURE                8\n# define         X509_V_ERR_CERT_NOT_YET_VALID                   9\n# define         X509_V_ERR_CERT_HAS_EXPIRED                     10\n# define         X509_V_ERR_CRL_NOT_YET_VALID                    11\n# define         X509_V_ERR_CRL_HAS_EXPIRED                      12\n# define         X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD       13\n# define         X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD        14\n# define         X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD       15\n# define         X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD       16\n# define         X509_V_ERR_OUT_OF_MEM                           17\n# define         X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT          18\n# define         X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN            19\n# define         X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY    20\n# define         X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE      21\n# define         X509_V_ERR_CERT_CHAIN_TOO_LONG                  22\n# define         X509_V_ERR_CERT_REVOKED                         23\n# define         X509_V_ERR_INVALID_CA                           24\n# define         X509_V_ERR_PATH_LENGTH_EXCEEDED                 25\n# define         X509_V_ERR_INVALID_PURPOSE                      26\n# define         X509_V_ERR_CERT_UNTRUSTED                       27\n# define         X509_V_ERR_CERT_REJECTED                        28\n/* These are 'informational' when looking for issuer cert */\n# define         X509_V_ERR_SUBJECT_ISSUER_MISMATCH              29\n# define         X509_V_ERR_AKID_SKID_MISMATCH                   30\n# define         X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH          31\n# define         X509_V_ERR_KEYUSAGE_NO_CERTSIGN                 32\n# define         X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER             33\n# define         X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION         34\n# define         X509_V_ERR_KEYUSAGE_NO_CRL_SIGN                 35\n# define         X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION     36\n# define         X509_V_ERR_INVALID_NON_CA                       37\n# define         X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED           38\n# define         X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE        39\n# define         X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED       40\n# define         X509_V_ERR_INVALID_EXTENSION                    41\n# define         X509_V_ERR_INVALID_POLICY_EXTENSION             42\n# define         X509_V_ERR_NO_EXPLICIT_POLICY                   43\n# define         X509_V_ERR_DIFFERENT_CRL_SCOPE                  44\n# define         X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE        45\n# define         X509_V_ERR_UNNESTED_RESOURCE                    46\n# define         X509_V_ERR_PERMITTED_VIOLATION                  47\n# define         X509_V_ERR_EXCLUDED_VIOLATION                   48\n# define         X509_V_ERR_SUBTREE_MINMAX                       49\n/* The application is not happy */\n# define         X509_V_ERR_APPLICATION_VERIFICATION             50\n# define         X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE          51\n# define         X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX        52\n# define         X509_V_ERR_UNSUPPORTED_NAME_SYNTAX              53\n# define         X509_V_ERR_CRL_PATH_VALIDATION_ERROR            54\n/* Another issuer check debug option */\n# define         X509_V_ERR_PATH_LOOP                            55\n/* Suite B mode algorithm violation */\n# define         X509_V_ERR_SUITE_B_INVALID_VERSION              56\n# define         X509_V_ERR_SUITE_B_INVALID_ALGORITHM            57\n# define         X509_V_ERR_SUITE_B_INVALID_CURVE                58\n# define         X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM  59\n# define         X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED              60\n# define         X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 61\n/* Host, email and IP check errors */\n# define         X509_V_ERR_HOSTNAME_MISMATCH                    62\n# define         X509_V_ERR_EMAIL_MISMATCH                       63\n# define         X509_V_ERR_IP_ADDRESS_MISMATCH                  64\n/* DANE TLSA errors */\n# define         X509_V_ERR_DANE_NO_MATCH                        65\n/* security level errors */\n# define         X509_V_ERR_EE_KEY_TOO_SMALL                     66\n# define         X509_V_ERR_CA_KEY_TOO_SMALL                     67\n# define         X509_V_ERR_CA_MD_TOO_WEAK                       68\n/* Caller error */\n# define         X509_V_ERR_INVALID_CALL                         69\n/* Issuer lookup error */\n# define         X509_V_ERR_STORE_LOOKUP                         70\n/* Certificate transparency */\n# define         X509_V_ERR_NO_VALID_SCTS                        71\n\n# define         X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION         72\n/* OCSP status errors */\n# define         X509_V_ERR_OCSP_VERIFY_NEEDED                   73  /* Need OCSP verification */\n# define         X509_V_ERR_OCSP_VERIFY_FAILED                   74  /* Couldn't verify cert through OCSP */\n# define         X509_V_ERR_OCSP_CERT_UNKNOWN                    75  /* Certificate wasn't recognized by the OCSP responder */\n# define         X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH         76\n# define         X509_V_ERR_NO_ISSUER_PUBLIC_KEY                 77\n# define         X509_V_ERR_UNSUPPORTED_SIGNATURE_ALGORITHM      78\n# define         X509_V_ERR_EC_KEY_EXPLICIT_PARAMS               79\n\n/* Certificate verify flags */\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_V_FLAG_CB_ISSUER_CHECK             0x0   /* Deprecated */\n# endif\n/* Use check time instead of current time */\n# define X509_V_FLAG_USE_CHECK_TIME              0x2\n/* Lookup CRLs */\n# define X509_V_FLAG_CRL_CHECK                   0x4\n/* Lookup CRLs for whole chain */\n# define X509_V_FLAG_CRL_CHECK_ALL               0x8\n/* Ignore unhandled critical extensions */\n# define X509_V_FLAG_IGNORE_CRITICAL             0x10\n/* Disable workarounds for broken certificates */\n# define X509_V_FLAG_X509_STRICT                 0x20\n/* Enable proxy certificate validation */\n# define X509_V_FLAG_ALLOW_PROXY_CERTS           0x40\n/* Enable policy checking */\n# define X509_V_FLAG_POLICY_CHECK                0x80\n/* Policy variable require-explicit-policy */\n# define X509_V_FLAG_EXPLICIT_POLICY             0x100\n/* Policy variable inhibit-any-policy */\n# define X509_V_FLAG_INHIBIT_ANY                 0x200\n/* Policy variable inhibit-policy-mapping */\n# define X509_V_FLAG_INHIBIT_MAP                 0x400\n/* Notify callback that policy is OK */\n# define X509_V_FLAG_NOTIFY_POLICY               0x800\n/* Extended CRL features such as indirect CRLs, alternate CRL signing keys */\n# define X509_V_FLAG_EXTENDED_CRL_SUPPORT        0x1000\n/* Delta CRL support */\n# define X509_V_FLAG_USE_DELTAS                  0x2000\n/* Check self-signed CA signature */\n# define X509_V_FLAG_CHECK_SS_SIGNATURE          0x4000\n/* Use trusted store first */\n# define X509_V_FLAG_TRUSTED_FIRST               0x8000\n/* Suite B 128 bit only mode: not normally used */\n# define X509_V_FLAG_SUITEB_128_LOS_ONLY         0x10000\n/* Suite B 192 bit only mode */\n# define X509_V_FLAG_SUITEB_192_LOS              0x20000\n/* Suite B 128 bit mode allowing 192 bit algorithms */\n# define X509_V_FLAG_SUITEB_128_LOS              0x30000\n/* Allow partial chains if at least one certificate is in trusted store */\n# define X509_V_FLAG_PARTIAL_CHAIN               0x80000\n/*\n * If the initial chain is not trusted, do not attempt to build an alternative\n * chain. Alternate chain checking was introduced in 1.1.0. Setting this flag\n * will force the behaviour to match that of previous versions.\n */\n# define X509_V_FLAG_NO_ALT_CHAINS               0x100000\n/* Do not check certificate/CRL validity against current time */\n# define X509_V_FLAG_NO_CHECK_TIME               0x200000\n\n# define X509_VP_FLAG_DEFAULT                    0x1\n# define X509_VP_FLAG_OVERWRITE                  0x2\n# define X509_VP_FLAG_RESET_FLAGS                0x4\n# define X509_VP_FLAG_LOCKED                     0x8\n# define X509_VP_FLAG_ONCE                       0x10\n\n/* Internal use: mask of policy related options */\n# define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \\\n                                | X509_V_FLAG_EXPLICIT_POLICY \\\n                                | X509_V_FLAG_INHIBIT_ANY \\\n                                | X509_V_FLAG_INHIBIT_MAP)\n\nint X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,\n                               X509_NAME *name);\nX509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,\n                                             X509_LOOKUP_TYPE type,\n                                             X509_NAME *name);\nX509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,\n                                        X509_OBJECT *x);\nint X509_OBJECT_up_ref_count(X509_OBJECT *a);\nX509_OBJECT *X509_OBJECT_new(void);\nvoid X509_OBJECT_free(X509_OBJECT *a);\nX509_LOOKUP_TYPE X509_OBJECT_get_type(const X509_OBJECT *a);\nX509 *X509_OBJECT_get0_X509(const X509_OBJECT *a);\nint X509_OBJECT_set1_X509(X509_OBJECT *a, X509 *obj);\nX509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *a);\nint X509_OBJECT_set1_X509_CRL(X509_OBJECT *a, X509_CRL *obj);\nX509_STORE *X509_STORE_new(void);\nvoid X509_STORE_free(X509_STORE *v);\nint X509_STORE_lock(X509_STORE *ctx);\nint X509_STORE_unlock(X509_STORE *ctx);\nint X509_STORE_up_ref(X509_STORE *v);\nSTACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *v);\n\nSTACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm);\nSTACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm);\nint X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);\nint X509_STORE_set_purpose(X509_STORE *ctx, int purpose);\nint X509_STORE_set_trust(X509_STORE *ctx, int trust);\nint X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);\nX509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);\n\nvoid X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify);\n#define X509_STORE_set_verify_func(ctx, func) \\\n            X509_STORE_set_verify((ctx),(func))\nvoid X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,\n                               X509_STORE_CTX_verify_fn verify);\nX509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);\nvoid X509_STORE_set_verify_cb(X509_STORE *ctx,\n                              X509_STORE_CTX_verify_cb verify_cb);\n# define X509_STORE_set_verify_cb_func(ctx,func) \\\n            X509_STORE_set_verify_cb((ctx),(func))\nX509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *ctx);\nvoid X509_STORE_set_get_issuer(X509_STORE *ctx,\n                               X509_STORE_CTX_get_issuer_fn get_issuer);\nX509_STORE_CTX_get_issuer_fn X509_STORE_get_get_issuer(X509_STORE *ctx);\nvoid X509_STORE_set_check_issued(X509_STORE *ctx,\n                                 X509_STORE_CTX_check_issued_fn check_issued);\nX509_STORE_CTX_check_issued_fn X509_STORE_get_check_issued(X509_STORE *ctx);\nvoid X509_STORE_set_check_revocation(X509_STORE *ctx,\n                                     X509_STORE_CTX_check_revocation_fn check_revocation);\nX509_STORE_CTX_check_revocation_fn X509_STORE_get_check_revocation(X509_STORE *ctx);\nvoid X509_STORE_set_get_crl(X509_STORE *ctx,\n                            X509_STORE_CTX_get_crl_fn get_crl);\nX509_STORE_CTX_get_crl_fn X509_STORE_get_get_crl(X509_STORE *ctx);\nvoid X509_STORE_set_check_crl(X509_STORE *ctx,\n                              X509_STORE_CTX_check_crl_fn check_crl);\nX509_STORE_CTX_check_crl_fn X509_STORE_get_check_crl(X509_STORE *ctx);\nvoid X509_STORE_set_cert_crl(X509_STORE *ctx,\n                             X509_STORE_CTX_cert_crl_fn cert_crl);\nX509_STORE_CTX_cert_crl_fn X509_STORE_get_cert_crl(X509_STORE *ctx);\nvoid X509_STORE_set_check_policy(X509_STORE *ctx,\n                                 X509_STORE_CTX_check_policy_fn check_policy);\nX509_STORE_CTX_check_policy_fn X509_STORE_get_check_policy(X509_STORE *ctx);\nvoid X509_STORE_set_lookup_certs(X509_STORE *ctx,\n                                 X509_STORE_CTX_lookup_certs_fn lookup_certs);\nX509_STORE_CTX_lookup_certs_fn X509_STORE_get_lookup_certs(X509_STORE *ctx);\nvoid X509_STORE_set_lookup_crls(X509_STORE *ctx,\n                                X509_STORE_CTX_lookup_crls_fn lookup_crls);\n#define X509_STORE_set_lookup_crls_cb(ctx, func) \\\n    X509_STORE_set_lookup_crls((ctx), (func))\nX509_STORE_CTX_lookup_crls_fn X509_STORE_get_lookup_crls(X509_STORE *ctx);\nvoid X509_STORE_set_cleanup(X509_STORE *ctx,\n                            X509_STORE_CTX_cleanup_fn cleanup);\nX509_STORE_CTX_cleanup_fn X509_STORE_get_cleanup(X509_STORE *ctx);\n\n#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, l, p, newf, dupf, freef)\nint X509_STORE_set_ex_data(X509_STORE *ctx, int idx, void *data);\nvoid *X509_STORE_get_ex_data(X509_STORE *ctx, int idx);\n\nX509_STORE_CTX *X509_STORE_CTX_new(void);\n\nint X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);\n\nvoid X509_STORE_CTX_free(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,\n                        X509 *x509, STACK_OF(X509) *chain);\nvoid X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);\n\nX509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);\nX509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);\nSTACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,\n                                  X509_STORE_CTX_verify_cb verify);\nX509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx);\nX509_STORE_CTX_verify_fn X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx);\nX509_STORE_CTX_get_issuer_fn X509_STORE_CTX_get_get_issuer(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_issued_fn X509_STORE_CTX_get_check_issued(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_revocation_fn X509_STORE_CTX_get_check_revocation(X509_STORE_CTX *ctx);\nX509_STORE_CTX_get_crl_fn X509_STORE_CTX_get_get_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_crl_fn X509_STORE_CTX_get_check_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_cert_crl_fn X509_STORE_CTX_get_cert_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_policy_fn X509_STORE_CTX_get_check_policy(X509_STORE_CTX *ctx);\nX509_STORE_CTX_lookup_certs_fn X509_STORE_CTX_get_lookup_certs(X509_STORE_CTX *ctx);\nX509_STORE_CTX_lookup_crls_fn X509_STORE_CTX_get_lookup_crls(X509_STORE_CTX *ctx);\nX509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(X509_STORE_CTX *ctx);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define X509_STORE_CTX_get_chain X509_STORE_CTX_get0_chain\n# define X509_STORE_CTX_set_chain X509_STORE_CTX_set0_untrusted\n# define X509_STORE_CTX_trusted_stack X509_STORE_CTX_set0_trusted_stack\n# define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject\n# define X509_STORE_get1_certs X509_STORE_CTX_get1_certs\n# define X509_STORE_get1_crls X509_STORE_CTX_get1_crls\n/* the following macro is misspelled; use X509_STORE_get1_certs instead */\n# define X509_STORE_get1_cert X509_STORE_CTX_get1_certs\n/* the following macro is misspelled; use X509_STORE_get1_crls instead */\n# define X509_STORE_get1_crl X509_STORE_CTX_get1_crls\n#endif\n\nX509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m);\nX509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);\nX509_LOOKUP_METHOD *X509_LOOKUP_file(void);\n\ntypedef int (*X509_LOOKUP_ctrl_fn)(X509_LOOKUP *ctx, int cmd, const char *argc,\n                                   long argl, char **ret);\ntypedef int (*X509_LOOKUP_get_by_subject_fn)(X509_LOOKUP *ctx,\n                                             X509_LOOKUP_TYPE type,\n                                             X509_NAME *name,\n                                             X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_issuer_serial_fn)(X509_LOOKUP *ctx,\n                                                   X509_LOOKUP_TYPE type,\n                                                   X509_NAME *name,\n                                                   ASN1_INTEGER *serial,\n                                                   X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_fingerprint_fn)(X509_LOOKUP *ctx,\n                                                 X509_LOOKUP_TYPE type,\n                                                 const unsigned char* bytes,\n                                                 int len,\n                                                 X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_alias_fn)(X509_LOOKUP *ctx,\n                                           X509_LOOKUP_TYPE type,\n                                           const char *str,\n                                           int len,\n                                           X509_OBJECT *ret);\n\nX509_LOOKUP_METHOD *X509_LOOKUP_meth_new(const char *name);\nvoid X509_LOOKUP_meth_free(X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_new_item(X509_LOOKUP_METHOD *method,\n                                  int (*new_item) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_new_item(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_free(X509_LOOKUP_METHOD *method,\n                              void (*free_fn) (X509_LOOKUP *ctx));\nvoid (*X509_LOOKUP_meth_get_free(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_init(X509_LOOKUP_METHOD *method,\n                              int (*init) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_init(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_shutdown(X509_LOOKUP_METHOD *method,\n                                  int (*shutdown) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_shutdown(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_ctrl(X509_LOOKUP_METHOD *method,\n                              X509_LOOKUP_ctrl_fn ctrl_fn);\nX509_LOOKUP_ctrl_fn X509_LOOKUP_meth_get_ctrl(const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_subject(X509_LOOKUP_METHOD *method,\n                                        X509_LOOKUP_get_by_subject_fn fn);\nX509_LOOKUP_get_by_subject_fn X509_LOOKUP_meth_get_get_by_subject(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_issuer_serial(X509_LOOKUP_METHOD *method,\n    X509_LOOKUP_get_by_issuer_serial_fn fn);\nX509_LOOKUP_get_by_issuer_serial_fn X509_LOOKUP_meth_get_get_by_issuer_serial(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_fingerprint(X509_LOOKUP_METHOD *method,\n    X509_LOOKUP_get_by_fingerprint_fn fn);\nX509_LOOKUP_get_by_fingerprint_fn X509_LOOKUP_meth_get_get_by_fingerprint(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_alias(X509_LOOKUP_METHOD *method,\n                                      X509_LOOKUP_get_by_alias_fn fn);\nX509_LOOKUP_get_by_alias_fn X509_LOOKUP_meth_get_get_by_alias(\n    const X509_LOOKUP_METHOD *method);\n\n\nint X509_STORE_add_cert(X509_STORE *ctx, X509 *x);\nint X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);\n\nint X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,\n                                  X509_NAME *name, X509_OBJECT *ret);\nX509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs,\n                                               X509_LOOKUP_TYPE type,\n                                               X509_NAME *name);\n\nint X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,\n                     long argl, char **ret);\n\nint X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type);\nint X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type);\nint X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type);\n\nX509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method);\nvoid X509_LOOKUP_free(X509_LOOKUP *ctx);\nint X509_LOOKUP_init(X509_LOOKUP *ctx);\nint X509_LOOKUP_by_subject(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                           X509_NAME *name, X509_OBJECT *ret);\nint X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                                 X509_NAME *name, ASN1_INTEGER *serial,\n                                 X509_OBJECT *ret);\nint X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                               const unsigned char *bytes, int len,\n                               X509_OBJECT *ret);\nint X509_LOOKUP_by_alias(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                         const char *str, int len, X509_OBJECT *ret);\nint X509_LOOKUP_set_method_data(X509_LOOKUP *ctx, void *data);\nvoid *X509_LOOKUP_get_method_data(const X509_LOOKUP *ctx);\nX509_STORE *X509_LOOKUP_get_store(const X509_LOOKUP *ctx);\nint X509_LOOKUP_shutdown(X509_LOOKUP *ctx);\n\nint X509_STORE_load_locations(X509_STORE *ctx,\n                              const char *file, const char *dir);\nint X509_STORE_set_default_paths(X509_STORE *ctx);\n\n#define X509_STORE_CTX_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef)\nint X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data);\nvoid *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx);\nint X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int s);\nint X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);\nX509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x);\nX509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);\nX509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx);\nSTACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx);\nSTACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_cert(X509_STORE_CTX *c, X509 *x);\nvoid X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk);\nint X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);\nint X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);\nint X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,\n                                   int purpose, int trust);\nvoid X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);\nvoid X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,\n                             time_t t);\n\nX509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);\n\nX509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);\nint X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);\n\n/*\n * Bridge opacity barrier between libcrypt and libssl, also needed to support\n * offline testing in test/danetest.c\n */\nvoid X509_STORE_CTX_set0_dane(X509_STORE_CTX *ctx, SSL_DANE *dane);\n#define DANE_FLAG_NO_DANE_EE_NAMECHECKS (1L << 0)\n\n/* X509_VERIFY_PARAM functions */\n\nX509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void);\nvoid X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *to,\n                              const X509_VERIFY_PARAM *from);\nint X509_VERIFY_PARAM_set1(X509_VERIFY_PARAM *to,\n                           const X509_VERIFY_PARAM *from);\nint X509_VERIFY_PARAM_set1_name(X509_VERIFY_PARAM *param, const char *name);\nint X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param,\n                                unsigned long flags);\nint X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param,\n                                  unsigned long flags);\nunsigned long X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose);\nint X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust);\nvoid X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth);\nvoid X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level);\ntime_t X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param);\nvoid X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t);\nint X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param,\n                                  ASN1_OBJECT *policy);\nint X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param,\n                                    STACK_OF(ASN1_OBJECT) *policies);\n\nint X509_VERIFY_PARAM_set_inh_flags(X509_VERIFY_PARAM *param,\n                                    uint32_t flags);\nuint32_t X509_VERIFY_PARAM_get_inh_flags(const X509_VERIFY_PARAM *param);\n\nint X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param,\n                                const char *name, size_t namelen);\nint X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param,\n                                const char *name, size_t namelen);\nvoid X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,\n                                     unsigned int flags);\nunsigned int X509_VERIFY_PARAM_get_hostflags(const X509_VERIFY_PARAM *param);\nchar *X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *);\nvoid X509_VERIFY_PARAM_move_peername(X509_VERIFY_PARAM *, X509_VERIFY_PARAM *);\nint X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param,\n                                 const char *email, size_t emaillen);\nint X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param,\n                              const unsigned char *ip, size_t iplen);\nint X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param,\n                                  const char *ipasc);\n\nint X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_get_auth_level(const X509_VERIFY_PARAM *param);\nconst char *X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param);\n\nint X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_get_count(void);\nconst X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id);\nconst X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);\nvoid X509_VERIFY_PARAM_table_cleanup(void);\n\n/* Non positive return values are errors */\n#define X509_PCY_TREE_FAILURE  -2 /* Failure to satisfy explicit policy */\n#define X509_PCY_TREE_INVALID  -1 /* Inconsistent or invalid extensions */\n#define X509_PCY_TREE_INTERNAL  0 /* Internal error, most likely malloc */\n\n/*\n * Positive return values form a bit mask, all but the first are internal to\n * the library and don't appear in results from X509_policy_check().\n */\n#define X509_PCY_TREE_VALID     1 /* The policy tree is valid */\n#define X509_PCY_TREE_EMPTY     2 /* The policy tree is empty */\n#define X509_PCY_TREE_EXPLICIT  4 /* Explicit policy required */\n\nint X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy,\n                      STACK_OF(X509) *certs,\n                      STACK_OF(ASN1_OBJECT) *policy_oids, unsigned int flags);\n\nvoid X509_policy_tree_free(X509_POLICY_TREE *tree);\n\nint X509_policy_tree_level_count(const X509_POLICY_TREE *tree);\nX509_POLICY_LEVEL *X509_policy_tree_get0_level(const X509_POLICY_TREE *tree,\n                                               int i);\n\nSTACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(const\n                                                           X509_POLICY_TREE\n                                                           *tree);\n\nSTACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(const\n                                                                X509_POLICY_TREE\n                                                                *tree);\n\nint X509_policy_level_node_count(X509_POLICY_LEVEL *level);\n\nX509_POLICY_NODE *X509_policy_level_get0_node(X509_POLICY_LEVEL *level,\n                                              int i);\n\nconst ASN1_OBJECT *X509_policy_node_get0_policy(const X509_POLICY_NODE *node);\n\nSTACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(const\n                                                           X509_POLICY_NODE\n                                                           *node);\nconst X509_POLICY_NODE *X509_policy_node_get0_parent(const X509_POLICY_NODE\n                                                     *node);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/x509err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509ERR_H\n# define HEADER_X509ERR_H\n\n# include <openssl/symhacks.h>\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_X509_strings(void);\n\n/*\n * X509 function codes.\n */\n# define X509_F_ADD_CERT_DIR                              100\n# define X509_F_BUILD_CHAIN                               106\n# define X509_F_BY_FILE_CTRL                              101\n# define X509_F_CHECK_NAME_CONSTRAINTS                    149\n# define X509_F_CHECK_POLICY                              145\n# define X509_F_DANE_I2D                                  107\n# define X509_F_DIR_CTRL                                  102\n# define X509_F_GET_CERT_BY_SUBJECT                       103\n# define X509_F_I2D_X509_AUX                              151\n# define X509_F_LOOKUP_CERTS_SK                           152\n# define X509_F_NETSCAPE_SPKI_B64_DECODE                  129\n# define X509_F_NETSCAPE_SPKI_B64_ENCODE                  130\n# define X509_F_NEW_DIR                                   153\n# define X509_F_X509AT_ADD1_ATTR                          135\n# define X509_F_X509V3_ADD_EXT                            104\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_NID              136\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ              137\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_TXT              140\n# define X509_F_X509_ATTRIBUTE_GET0_DATA                  139\n# define X509_F_X509_ATTRIBUTE_SET1_DATA                  138\n# define X509_F_X509_CHECK_PRIVATE_KEY                    128\n# define X509_F_X509_CRL_DIFF                             105\n# define X509_F_X509_CRL_METHOD_NEW                       154\n# define X509_F_X509_CRL_PRINT_FP                         147\n# define X509_F_X509_EXTENSION_CREATE_BY_NID              108\n# define X509_F_X509_EXTENSION_CREATE_BY_OBJ              109\n# define X509_F_X509_GET_PUBKEY_PARAMETERS                110\n# define X509_F_X509_LOAD_CERT_CRL_FILE                   132\n# define X509_F_X509_LOAD_CERT_FILE                       111\n# define X509_F_X509_LOAD_CRL_FILE                        112\n# define X509_F_X509_LOOKUP_METH_NEW                      160\n# define X509_F_X509_LOOKUP_NEW                           155\n# define X509_F_X509_NAME_ADD_ENTRY                       113\n# define X509_F_X509_NAME_CANON                           156\n# define X509_F_X509_NAME_ENTRY_CREATE_BY_NID             114\n# define X509_F_X509_NAME_ENTRY_CREATE_BY_TXT             131\n# define X509_F_X509_NAME_ENTRY_SET_OBJECT                115\n# define X509_F_X509_NAME_ONELINE                         116\n# define X509_F_X509_NAME_PRINT                           117\n# define X509_F_X509_OBJECT_NEW                           150\n# define X509_F_X509_PRINT_EX_FP                          118\n# define X509_F_X509_PUBKEY_DECODE                        148\n# define X509_F_X509_PUBKEY_GET                           161\n# define X509_F_X509_PUBKEY_GET0                          119\n# define X509_F_X509_PUBKEY_SET                           120\n# define X509_F_X509_REQ_CHECK_PRIVATE_KEY                144\n# define X509_F_X509_REQ_PRINT_EX                         121\n# define X509_F_X509_REQ_PRINT_FP                         122\n# define X509_F_X509_REQ_TO_X509                          123\n# define X509_F_X509_STORE_ADD_CERT                       124\n# define X509_F_X509_STORE_ADD_CRL                        125\n# define X509_F_X509_STORE_ADD_LOOKUP                     157\n# define X509_F_X509_STORE_CTX_GET1_ISSUER                146\n# define X509_F_X509_STORE_CTX_INIT                       143\n# define X509_F_X509_STORE_CTX_NEW                        142\n# define X509_F_X509_STORE_CTX_PURPOSE_INHERIT            134\n# define X509_F_X509_STORE_NEW                            158\n# define X509_F_X509_TO_X509_REQ                          126\n# define X509_F_X509_TRUST_ADD                            133\n# define X509_F_X509_TRUST_SET                            141\n# define X509_F_X509_VERIFY_CERT                          127\n# define X509_F_X509_VERIFY_PARAM_NEW                     159\n\n/*\n * X509 reason codes.\n */\n# define X509_R_AKID_MISMATCH                             110\n# define X509_R_BAD_SELECTOR                              133\n# define X509_R_BAD_X509_FILETYPE                         100\n# define X509_R_BASE64_DECODE_ERROR                       118\n# define X509_R_CANT_CHECK_DH_KEY                         114\n# define X509_R_CERT_ALREADY_IN_HASH_TABLE                101\n# define X509_R_CRL_ALREADY_DELTA                         127\n# define X509_R_CRL_VERIFY_FAILURE                        131\n# define X509_R_IDP_MISMATCH                              128\n# define X509_R_INVALID_ATTRIBUTES                        138\n# define X509_R_INVALID_DIRECTORY                         113\n# define X509_R_INVALID_FIELD_NAME                        119\n# define X509_R_INVALID_TRUST                             123\n# define X509_R_ISSUER_MISMATCH                           129\n# define X509_R_KEY_TYPE_MISMATCH                         115\n# define X509_R_KEY_VALUES_MISMATCH                       116\n# define X509_R_LOADING_CERT_DIR                          103\n# define X509_R_LOADING_DEFAULTS                          104\n# define X509_R_METHOD_NOT_SUPPORTED                      124\n# define X509_R_NAME_TOO_LONG                             134\n# define X509_R_NEWER_CRL_NOT_NEWER                       132\n# define X509_R_NO_CERTIFICATE_FOUND                      135\n# define X509_R_NO_CERTIFICATE_OR_CRL_FOUND               136\n# define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY              105\n# define X509_R_NO_CRL_FOUND                              137\n# define X509_R_NO_CRL_NUMBER                             130\n# define X509_R_PUBLIC_KEY_DECODE_ERROR                   125\n# define X509_R_PUBLIC_KEY_ENCODE_ERROR                   126\n# define X509_R_SHOULD_RETRY                              106\n# define X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN        107\n# define X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY            108\n# define X509_R_UNKNOWN_KEY_TYPE                          117\n# define X509_R_UNKNOWN_NID                               109\n# define X509_R_UNKNOWN_PURPOSE_ID                        121\n# define X509_R_UNKNOWN_TRUST_ID                          120\n# define X509_R_UNSUPPORTED_ALGORITHM                     111\n# define X509_R_WRONG_LOOKUP_TYPE                         112\n# define X509_R_WRONG_TYPE                                122\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/x509v3.h",
    "content": "/*\n * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509V3_H\n# define HEADER_X509V3_H\n\n# include <openssl/bio.h>\n# include <openssl/x509.h>\n# include <openssl/conf.h>\n# include <openssl/x509v3err.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Forward reference */\nstruct v3_ext_method;\nstruct v3_ext_ctx;\n\n/* Useful typedefs */\n\ntypedef void *(*X509V3_EXT_NEW)(void);\ntypedef void (*X509V3_EXT_FREE) (void *);\ntypedef void *(*X509V3_EXT_D2I)(void *, const unsigned char **, long);\ntypedef int (*X509V3_EXT_I2D) (void *, unsigned char **);\ntypedef STACK_OF(CONF_VALUE) *\n    (*X509V3_EXT_I2V) (const struct v3_ext_method *method, void *ext,\n                       STACK_OF(CONF_VALUE) *extlist);\ntypedef void *(*X509V3_EXT_V2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx,\n                                STACK_OF(CONF_VALUE) *values);\ntypedef char *(*X509V3_EXT_I2S)(const struct v3_ext_method *method,\n                                void *ext);\ntypedef void *(*X509V3_EXT_S2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx, const char *str);\ntypedef int (*X509V3_EXT_I2R) (const struct v3_ext_method *method, void *ext,\n                               BIO *out, int indent);\ntypedef void *(*X509V3_EXT_R2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx, const char *str);\n\n/* V3 extension structure */\n\nstruct v3_ext_method {\n    int ext_nid;\n    int ext_flags;\n/* If this is set the following four fields are ignored */\n    ASN1_ITEM_EXP *it;\n/* Old style ASN1 calls */\n    X509V3_EXT_NEW ext_new;\n    X509V3_EXT_FREE ext_free;\n    X509V3_EXT_D2I d2i;\n    X509V3_EXT_I2D i2d;\n/* The following pair is used for string extensions */\n    X509V3_EXT_I2S i2s;\n    X509V3_EXT_S2I s2i;\n/* The following pair is used for multi-valued extensions */\n    X509V3_EXT_I2V i2v;\n    X509V3_EXT_V2I v2i;\n/* The following are used for raw extensions */\n    X509V3_EXT_I2R i2r;\n    X509V3_EXT_R2I r2i;\n    void *usr_data;             /* Any extension specific data */\n};\n\ntypedef struct X509V3_CONF_METHOD_st {\n    char *(*get_string) (void *db, const char *section, const char *value);\n    STACK_OF(CONF_VALUE) *(*get_section) (void *db, const char *section);\n    void (*free_string) (void *db, char *string);\n    void (*free_section) (void *db, STACK_OF(CONF_VALUE) *section);\n} X509V3_CONF_METHOD;\n\n/* Context specific info */\nstruct v3_ext_ctx {\n# define CTX_TEST 0x1\n# define X509V3_CTX_REPLACE 0x2\n    int flags;\n    X509 *issuer_cert;\n    X509 *subject_cert;\n    X509_REQ *subject_req;\n    X509_CRL *crl;\n    X509V3_CONF_METHOD *db_meth;\n    void *db;\n/* Maybe more here */\n};\n\ntypedef struct v3_ext_method X509V3_EXT_METHOD;\n\nDEFINE_STACK_OF(X509V3_EXT_METHOD)\n\n/* ext_flags values */\n# define X509V3_EXT_DYNAMIC      0x1\n# define X509V3_EXT_CTX_DEP      0x2\n# define X509V3_EXT_MULTILINE    0x4\n\ntypedef BIT_STRING_BITNAME ENUMERATED_NAMES;\n\ntypedef struct BASIC_CONSTRAINTS_st {\n    int ca;\n    ASN1_INTEGER *pathlen;\n} BASIC_CONSTRAINTS;\n\ntypedef struct PKEY_USAGE_PERIOD_st {\n    ASN1_GENERALIZEDTIME *notBefore;\n    ASN1_GENERALIZEDTIME *notAfter;\n} PKEY_USAGE_PERIOD;\n\ntypedef struct otherName_st {\n    ASN1_OBJECT *type_id;\n    ASN1_TYPE *value;\n} OTHERNAME;\n\ntypedef struct EDIPartyName_st {\n    ASN1_STRING *nameAssigner;\n    ASN1_STRING *partyName;\n} EDIPARTYNAME;\n\ntypedef struct GENERAL_NAME_st {\n# define GEN_OTHERNAME   0\n# define GEN_EMAIL       1\n# define GEN_DNS         2\n# define GEN_X400        3\n# define GEN_DIRNAME     4\n# define GEN_EDIPARTY    5\n# define GEN_URI         6\n# define GEN_IPADD       7\n# define GEN_RID         8\n    int type;\n    union {\n        char *ptr;\n        OTHERNAME *otherName;   /* otherName */\n        ASN1_IA5STRING *rfc822Name;\n        ASN1_IA5STRING *dNSName;\n        ASN1_TYPE *x400Address;\n        X509_NAME *directoryName;\n        EDIPARTYNAME *ediPartyName;\n        ASN1_IA5STRING *uniformResourceIdentifier;\n        ASN1_OCTET_STRING *iPAddress;\n        ASN1_OBJECT *registeredID;\n        /* Old names */\n        ASN1_OCTET_STRING *ip;  /* iPAddress */\n        X509_NAME *dirn;        /* dirn */\n        ASN1_IA5STRING *ia5;    /* rfc822Name, dNSName,\n                                 * uniformResourceIdentifier */\n        ASN1_OBJECT *rid;       /* registeredID */\n        ASN1_TYPE *other;       /* x400Address */\n    } d;\n} GENERAL_NAME;\n\ntypedef struct ACCESS_DESCRIPTION_st {\n    ASN1_OBJECT *method;\n    GENERAL_NAME *location;\n} ACCESS_DESCRIPTION;\n\ntypedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;\n\ntypedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;\n\ntypedef STACK_OF(ASN1_INTEGER) TLS_FEATURE;\n\nDEFINE_STACK_OF(GENERAL_NAME)\ntypedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;\nDEFINE_STACK_OF(GENERAL_NAMES)\n\nDEFINE_STACK_OF(ACCESS_DESCRIPTION)\n\ntypedef struct DIST_POINT_NAME_st {\n    int type;\n    union {\n        GENERAL_NAMES *fullname;\n        STACK_OF(X509_NAME_ENTRY) *relativename;\n    } name;\n/* If relativename then this contains the full distribution point name */\n    X509_NAME *dpname;\n} DIST_POINT_NAME;\n/* All existing reasons */\n# define CRLDP_ALL_REASONS       0x807f\n\n# define CRL_REASON_NONE                         -1\n# define CRL_REASON_UNSPECIFIED                  0\n# define CRL_REASON_KEY_COMPROMISE               1\n# define CRL_REASON_CA_COMPROMISE                2\n# define CRL_REASON_AFFILIATION_CHANGED          3\n# define CRL_REASON_SUPERSEDED                   4\n# define CRL_REASON_CESSATION_OF_OPERATION       5\n# define CRL_REASON_CERTIFICATE_HOLD             6\n# define CRL_REASON_REMOVE_FROM_CRL              8\n# define CRL_REASON_PRIVILEGE_WITHDRAWN          9\n# define CRL_REASON_AA_COMPROMISE                10\n\nstruct DIST_POINT_st {\n    DIST_POINT_NAME *distpoint;\n    ASN1_BIT_STRING *reasons;\n    GENERAL_NAMES *CRLissuer;\n    int dp_reasons;\n};\n\ntypedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;\n\nDEFINE_STACK_OF(DIST_POINT)\n\nstruct AUTHORITY_KEYID_st {\n    ASN1_OCTET_STRING *keyid;\n    GENERAL_NAMES *issuer;\n    ASN1_INTEGER *serial;\n};\n\n/* Strong extranet structures */\n\ntypedef struct SXNET_ID_st {\n    ASN1_INTEGER *zone;\n    ASN1_OCTET_STRING *user;\n} SXNETID;\n\nDEFINE_STACK_OF(SXNETID)\n\ntypedef struct SXNET_st {\n    ASN1_INTEGER *version;\n    STACK_OF(SXNETID) *ids;\n} SXNET;\n\ntypedef struct NOTICEREF_st {\n    ASN1_STRING *organization;\n    STACK_OF(ASN1_INTEGER) *noticenos;\n} NOTICEREF;\n\ntypedef struct USERNOTICE_st {\n    NOTICEREF *noticeref;\n    ASN1_STRING *exptext;\n} USERNOTICE;\n\ntypedef struct POLICYQUALINFO_st {\n    ASN1_OBJECT *pqualid;\n    union {\n        ASN1_IA5STRING *cpsuri;\n        USERNOTICE *usernotice;\n        ASN1_TYPE *other;\n    } d;\n} POLICYQUALINFO;\n\nDEFINE_STACK_OF(POLICYQUALINFO)\n\ntypedef struct POLICYINFO_st {\n    ASN1_OBJECT *policyid;\n    STACK_OF(POLICYQUALINFO) *qualifiers;\n} POLICYINFO;\n\ntypedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;\n\nDEFINE_STACK_OF(POLICYINFO)\n\ntypedef struct POLICY_MAPPING_st {\n    ASN1_OBJECT *issuerDomainPolicy;\n    ASN1_OBJECT *subjectDomainPolicy;\n} POLICY_MAPPING;\n\nDEFINE_STACK_OF(POLICY_MAPPING)\n\ntypedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS;\n\ntypedef struct GENERAL_SUBTREE_st {\n    GENERAL_NAME *base;\n    ASN1_INTEGER *minimum;\n    ASN1_INTEGER *maximum;\n} GENERAL_SUBTREE;\n\nDEFINE_STACK_OF(GENERAL_SUBTREE)\n\nstruct NAME_CONSTRAINTS_st {\n    STACK_OF(GENERAL_SUBTREE) *permittedSubtrees;\n    STACK_OF(GENERAL_SUBTREE) *excludedSubtrees;\n};\n\ntypedef struct POLICY_CONSTRAINTS_st {\n    ASN1_INTEGER *requireExplicitPolicy;\n    ASN1_INTEGER *inhibitPolicyMapping;\n} POLICY_CONSTRAINTS;\n\n/* Proxy certificate structures, see RFC 3820 */\ntypedef struct PROXY_POLICY_st {\n    ASN1_OBJECT *policyLanguage;\n    ASN1_OCTET_STRING *policy;\n} PROXY_POLICY;\n\ntypedef struct PROXY_CERT_INFO_EXTENSION_st {\n    ASN1_INTEGER *pcPathLengthConstraint;\n    PROXY_POLICY *proxyPolicy;\n} PROXY_CERT_INFO_EXTENSION;\n\nDECLARE_ASN1_FUNCTIONS(PROXY_POLICY)\nDECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION)\n\nstruct ISSUING_DIST_POINT_st {\n    DIST_POINT_NAME *distpoint;\n    int onlyuser;\n    int onlyCA;\n    ASN1_BIT_STRING *onlysomereasons;\n    int indirectCRL;\n    int onlyattr;\n};\n\n/* Values in idp_flags field */\n/* IDP present */\n# define IDP_PRESENT     0x1\n/* IDP values inconsistent */\n# define IDP_INVALID     0x2\n/* onlyuser true */\n# define IDP_ONLYUSER    0x4\n/* onlyCA true */\n# define IDP_ONLYCA      0x8\n/* onlyattr true */\n# define IDP_ONLYATTR    0x10\n/* indirectCRL true */\n# define IDP_INDIRECT    0x20\n/* onlysomereasons present */\n# define IDP_REASONS     0x40\n\n# define X509V3_conf_err(val) ERR_add_error_data(6, \\\n                        \"section:\", (val)->section, \\\n                        \",name:\", (val)->name, \",value:\", (val)->value)\n\n# define X509V3_set_ctx_test(ctx) \\\n                        X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST)\n# define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL;\n\n# define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \\\n                        0,0,0,0, \\\n                        0,0, \\\n                        (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \\\n                        (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \\\n                        NULL, NULL, \\\n                        table}\n\n# define EXT_IA5STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_IA5STRING), \\\n                        0,0,0,0, \\\n                        (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \\\n                        (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \\\n                        0,0,0,0, \\\n                        NULL}\n\n# define EXT_END { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}\n\n/* X509_PURPOSE stuff */\n\n# define EXFLAG_BCONS            0x1\n# define EXFLAG_KUSAGE           0x2\n# define EXFLAG_XKUSAGE          0x4\n# define EXFLAG_NSCERT           0x8\n\n# define EXFLAG_CA               0x10\n/* Really self issued not necessarily self signed */\n# define EXFLAG_SI               0x20\n# define EXFLAG_V1               0x40\n# define EXFLAG_INVALID          0x80\n/* EXFLAG_SET is set to indicate that some values have been precomputed */\n# define EXFLAG_SET              0x100\n# define EXFLAG_CRITICAL         0x200\n# define EXFLAG_PROXY            0x400\n\n# define EXFLAG_INVALID_POLICY   0x800\n# define EXFLAG_FRESHEST         0x1000\n/* Self signed */\n# define EXFLAG_SS               0x2000\n\n# define KU_DIGITAL_SIGNATURE    0x0080\n# define KU_NON_REPUDIATION      0x0040\n# define KU_KEY_ENCIPHERMENT     0x0020\n# define KU_DATA_ENCIPHERMENT    0x0010\n# define KU_KEY_AGREEMENT        0x0008\n# define KU_KEY_CERT_SIGN        0x0004\n# define KU_CRL_SIGN             0x0002\n# define KU_ENCIPHER_ONLY        0x0001\n# define KU_DECIPHER_ONLY        0x8000\n\n# define NS_SSL_CLIENT           0x80\n# define NS_SSL_SERVER           0x40\n# define NS_SMIME                0x20\n# define NS_OBJSIGN              0x10\n# define NS_SSL_CA               0x04\n# define NS_SMIME_CA             0x02\n# define NS_OBJSIGN_CA           0x01\n# define NS_ANY_CA               (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA)\n\n# define XKU_SSL_SERVER          0x1\n# define XKU_SSL_CLIENT          0x2\n# define XKU_SMIME               0x4\n# define XKU_CODE_SIGN           0x8\n# define XKU_SGC                 0x10\n# define XKU_OCSP_SIGN           0x20\n# define XKU_TIMESTAMP           0x40\n# define XKU_DVCS                0x80\n# define XKU_ANYEKU              0x100\n\n# define X509_PURPOSE_DYNAMIC    0x1\n# define X509_PURPOSE_DYNAMIC_NAME       0x2\n\ntypedef struct x509_purpose_st {\n    int purpose;\n    int trust;                  /* Default trust ID */\n    int flags;\n    int (*check_purpose) (const struct x509_purpose_st *, const X509 *, int);\n    char *name;\n    char *sname;\n    void *usr_data;\n} X509_PURPOSE;\n\n# define X509_PURPOSE_SSL_CLIENT         1\n# define X509_PURPOSE_SSL_SERVER         2\n# define X509_PURPOSE_NS_SSL_SERVER      3\n# define X509_PURPOSE_SMIME_SIGN         4\n# define X509_PURPOSE_SMIME_ENCRYPT      5\n# define X509_PURPOSE_CRL_SIGN           6\n# define X509_PURPOSE_ANY                7\n# define X509_PURPOSE_OCSP_HELPER        8\n# define X509_PURPOSE_TIMESTAMP_SIGN     9\n\n# define X509_PURPOSE_MIN                1\n# define X509_PURPOSE_MAX                9\n\n/* Flags for X509V3_EXT_print() */\n\n# define X509V3_EXT_UNKNOWN_MASK         (0xfL << 16)\n/* Return error for unknown extensions */\n# define X509V3_EXT_DEFAULT              0\n/* Print error for unknown extensions */\n# define X509V3_EXT_ERROR_UNKNOWN        (1L << 16)\n/* ASN1 parse unknown extensions */\n# define X509V3_EXT_PARSE_UNKNOWN        (2L << 16)\n/* BIO_dump unknown extensions */\n# define X509V3_EXT_DUMP_UNKNOWN         (3L << 16)\n\n/* Flags for X509V3_add1_i2d */\n\n# define X509V3_ADD_OP_MASK              0xfL\n# define X509V3_ADD_DEFAULT              0L\n# define X509V3_ADD_APPEND               1L\n# define X509V3_ADD_REPLACE              2L\n# define X509V3_ADD_REPLACE_EXISTING     3L\n# define X509V3_ADD_KEEP_EXISTING        4L\n# define X509V3_ADD_DELETE               5L\n# define X509V3_ADD_SILENT               0x10\n\nDEFINE_STACK_OF(X509_PURPOSE)\n\nDECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS)\n\nDECLARE_ASN1_FUNCTIONS(SXNET)\nDECLARE_ASN1_FUNCTIONS(SXNETID)\n\nint SXNET_add_id_asc(SXNET **psx, const char *zone, const char *user, int userlen);\nint SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, const char *user,\n                       int userlen);\nint SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *izone, const char *user,\n                         int userlen);\n\nASN1_OCTET_STRING *SXNET_get_id_asc(SXNET *sx, const char *zone);\nASN1_OCTET_STRING *SXNET_get_id_ulong(SXNET *sx, unsigned long lzone);\nASN1_OCTET_STRING *SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone);\n\nDECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID)\n\nDECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD)\n\nDECLARE_ASN1_FUNCTIONS(GENERAL_NAME)\nGENERAL_NAME *GENERAL_NAME_dup(GENERAL_NAME *a);\nint GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b);\n\nASN1_BIT_STRING *v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method,\n                                     X509V3_CTX *ctx,\n                                     STACK_OF(CONF_VALUE) *nval);\nSTACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method,\n                                          ASN1_BIT_STRING *bits,\n                                          STACK_OF(CONF_VALUE) *extlist);\nchar *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5);\nASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method,\n                                   X509V3_CTX *ctx, const char *str);\n\nSTACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method,\n                                       GENERAL_NAME *gen,\n                                       STACK_OF(CONF_VALUE) *ret);\nint GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen);\n\nDECLARE_ASN1_FUNCTIONS(GENERAL_NAMES)\n\nSTACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method,\n                                        GENERAL_NAMES *gen,\n                                        STACK_OF(CONF_VALUE) *extlist);\nGENERAL_NAMES *v2i_GENERAL_NAMES(const X509V3_EXT_METHOD *method,\n                                 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval);\n\nDECLARE_ASN1_FUNCTIONS(OTHERNAME)\nDECLARE_ASN1_FUNCTIONS(EDIPARTYNAME)\nint OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);\nvoid GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value);\nvoid *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);\nint GENERAL_NAME_set0_othername(GENERAL_NAME *gen,\n                                ASN1_OBJECT *oid, ASN1_TYPE *value);\nint GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,\n                                ASN1_OBJECT **poid, ASN1_TYPE **pvalue);\n\nchar *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,\n                            const ASN1_OCTET_STRING *ia5);\nASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,\n                                         X509V3_CTX *ctx, const char *str);\n\nDECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE)\nint i2a_ACCESS_DESCRIPTION(BIO *bp, const ACCESS_DESCRIPTION *a);\n\nDECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE)\n\nDECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES)\nDECLARE_ASN1_FUNCTIONS(POLICYINFO)\nDECLARE_ASN1_FUNCTIONS(POLICYQUALINFO)\nDECLARE_ASN1_FUNCTIONS(USERNOTICE)\nDECLARE_ASN1_FUNCTIONS(NOTICEREF)\n\nDECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS)\nDECLARE_ASN1_FUNCTIONS(DIST_POINT)\nDECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME)\nDECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT)\n\nint DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname);\n\nint NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc);\nint NAME_CONSTRAINTS_check_CN(X509 *x, NAME_CONSTRAINTS *nc);\n\nDECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION)\nDECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS)\n\nDECLARE_ASN1_ITEM(POLICY_MAPPING)\nDECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING)\nDECLARE_ASN1_ITEM(POLICY_MAPPINGS)\n\nDECLARE_ASN1_ITEM(GENERAL_SUBTREE)\nDECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE)\n\nDECLARE_ASN1_ITEM(NAME_CONSTRAINTS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS)\n\nDECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS)\nDECLARE_ASN1_ITEM(POLICY_CONSTRAINTS)\n\nGENERAL_NAME *a2i_GENERAL_NAME(GENERAL_NAME *out,\n                               const X509V3_EXT_METHOD *method,\n                               X509V3_CTX *ctx, int gen_type,\n                               const char *value, int is_nc);\n\n# ifdef HEADER_CONF_H\nGENERAL_NAME *v2i_GENERAL_NAME(const X509V3_EXT_METHOD *method,\n                               X509V3_CTX *ctx, CONF_VALUE *cnf);\nGENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out,\n                                  const X509V3_EXT_METHOD *method,\n                                  X509V3_CTX *ctx, CONF_VALUE *cnf,\n                                  int is_nc);\nvoid X509V3_conf_free(CONF_VALUE *val);\n\nX509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid,\n                                     const char *value);\nX509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name,\n                                 const char *value);\nint X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, const char *section,\n                            STACK_OF(X509_EXTENSION) **sk);\nint X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                         X509 *cert);\nint X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                             X509_REQ *req);\nint X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                             X509_CRL *crl);\n\nX509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf,\n                                    X509V3_CTX *ctx, int ext_nid,\n                                    const char *value);\nX509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                                const char *name, const char *value);\nint X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                        const char *section, X509 *cert);\nint X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                            const char *section, X509_REQ *req);\nint X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                            const char *section, X509_CRL *crl);\n\nint X509V3_add_value_bool_nf(const char *name, int asn1_bool,\n                             STACK_OF(CONF_VALUE) **extlist);\nint X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool);\nint X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint);\nvoid X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf);\nvoid X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash);\n# endif\n\nchar *X509V3_get_string(X509V3_CTX *ctx, const char *name, const char *section);\nSTACK_OF(CONF_VALUE) *X509V3_get_section(X509V3_CTX *ctx, const char *section);\nvoid X509V3_string_free(X509V3_CTX *ctx, char *str);\nvoid X509V3_section_free(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section);\nvoid X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject,\n                    X509_REQ *req, X509_CRL *crl, int flags);\n\nint X509V3_add_value(const char *name, const char *value,\n                     STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_uchar(const char *name, const unsigned char *value,\n                           STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_bool(const char *name, int asn1_bool,\n                          STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint,\n                         STACK_OF(CONF_VALUE) **extlist);\nchar *i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const ASN1_INTEGER *aint);\nASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const char *value);\nchar *i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, const ASN1_ENUMERATED *aint);\nchar *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth,\n                                const ASN1_ENUMERATED *aint);\nint X509V3_EXT_add(X509V3_EXT_METHOD *ext);\nint X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist);\nint X509V3_EXT_add_alias(int nid_to, int nid_from);\nvoid X509V3_EXT_cleanup(void);\n\nconst X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext);\nconst X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid);\nint X509V3_add_standard_extensions(void);\nSTACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line);\nvoid *X509V3_EXT_d2i(X509_EXTENSION *ext);\nvoid *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,\n                     int *idx);\n\nX509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);\nint X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value,\n                    int crit, unsigned long flags);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n/* The new declarations are in crypto.h, but the old ones were here. */\n# define hex_to_string OPENSSL_buf2hexstr\n# define string_to_hex OPENSSL_hexstr2buf\n#endif\n\nvoid X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,\n                        int ml);\nint X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag,\n                     int indent);\n#ifndef OPENSSL_NO_STDIO\nint X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent);\n#endif\nint X509V3_extensions_print(BIO *out, const char *title,\n                            const STACK_OF(X509_EXTENSION) *exts,\n                            unsigned long flag, int indent);\n\nint X509_check_ca(X509 *x);\nint X509_check_purpose(X509 *x, int id, int ca);\nint X509_supported_extension(X509_EXTENSION *ex);\nint X509_PURPOSE_set(int *p, int purpose);\nint X509_check_issued(X509 *issuer, X509 *subject);\nint X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid);\nvoid X509_set_proxy_flag(X509 *x);\nvoid X509_set_proxy_pathlen(X509 *x, long l);\nlong X509_get_proxy_pathlen(X509 *x);\n\nuint32_t X509_get_extension_flags(X509 *x);\nuint32_t X509_get_key_usage(X509 *x);\nuint32_t X509_get_extended_key_usage(X509 *x);\nconst ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x);\nconst ASN1_OCTET_STRING *X509_get0_authority_key_id(X509 *x);\nconst GENERAL_NAMES *X509_get0_authority_issuer(X509 *x);\nconst ASN1_INTEGER *X509_get0_authority_serial(X509 *x);\n\nint X509_PURPOSE_get_count(void);\nX509_PURPOSE *X509_PURPOSE_get0(int idx);\nint X509_PURPOSE_get_by_sname(const char *sname);\nint X509_PURPOSE_get_by_id(int id);\nint X509_PURPOSE_add(int id, int trust, int flags,\n                     int (*ck) (const X509_PURPOSE *, const X509 *, int),\n                     const char *name, const char *sname, void *arg);\nchar *X509_PURPOSE_get0_name(const X509_PURPOSE *xp);\nchar *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp);\nint X509_PURPOSE_get_trust(const X509_PURPOSE *xp);\nvoid X509_PURPOSE_cleanup(void);\nint X509_PURPOSE_get_id(const X509_PURPOSE *);\n\nSTACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x);\nSTACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x);\nvoid X509_email_free(STACK_OF(OPENSSL_STRING) *sk);\nSTACK_OF(OPENSSL_STRING) *X509_get1_ocsp(X509 *x);\n/* Flags for X509_check_* functions */\n\n/*\n * Always check subject name for host match even if subject alt names present\n */\n# define X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT    0x1\n/* Disable wildcard matching for dnsName fields and common name. */\n# define X509_CHECK_FLAG_NO_WILDCARDS    0x2\n/* Wildcards must not match a partial label. */\n# define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS 0x4\n/* Allow (non-partial) wildcards to match multiple labels. */\n# define X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS 0x8\n/* Constraint verifier subdomain patterns to match a single labels. */\n# define X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS 0x10\n/* Never check the subject CN */\n# define X509_CHECK_FLAG_NEVER_CHECK_SUBJECT    0x20\n/*\n * Match reference identifiers starting with \".\" to any sub-domain.\n * This is a non-public flag, turned on implicitly when the subject\n * reference identity is a DNS name.\n */\n# define _X509_CHECK_FLAG_DOT_SUBDOMAINS 0x8000\n\nint X509_check_host(X509 *x, const char *chk, size_t chklen,\n                    unsigned int flags, char **peername);\nint X509_check_email(X509 *x, const char *chk, size_t chklen,\n                     unsigned int flags);\nint X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen,\n                  unsigned int flags);\nint X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags);\n\nASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc);\nASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc);\nint X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk,\n                             unsigned long chtype);\n\nvoid X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent);\nDEFINE_STACK_OF(X509_POLICY_NODE)\n\n#ifndef OPENSSL_NO_RFC3779\ntypedef struct ASRange_st {\n    ASN1_INTEGER *min, *max;\n} ASRange;\n\n# define ASIdOrRange_id          0\n# define ASIdOrRange_range       1\n\ntypedef struct ASIdOrRange_st {\n    int type;\n    union {\n        ASN1_INTEGER *id;\n        ASRange *range;\n    } u;\n} ASIdOrRange;\n\ntypedef STACK_OF(ASIdOrRange) ASIdOrRanges;\nDEFINE_STACK_OF(ASIdOrRange)\n\n# define ASIdentifierChoice_inherit              0\n# define ASIdentifierChoice_asIdsOrRanges        1\n\ntypedef struct ASIdentifierChoice_st {\n    int type;\n    union {\n        ASN1_NULL *inherit;\n        ASIdOrRanges *asIdsOrRanges;\n    } u;\n} ASIdentifierChoice;\n\ntypedef struct ASIdentifiers_st {\n    ASIdentifierChoice *asnum, *rdi;\n} ASIdentifiers;\n\nDECLARE_ASN1_FUNCTIONS(ASRange)\nDECLARE_ASN1_FUNCTIONS(ASIdOrRange)\nDECLARE_ASN1_FUNCTIONS(ASIdentifierChoice)\nDECLARE_ASN1_FUNCTIONS(ASIdentifiers)\n\ntypedef struct IPAddressRange_st {\n    ASN1_BIT_STRING *min, *max;\n} IPAddressRange;\n\n# define IPAddressOrRange_addressPrefix  0\n# define IPAddressOrRange_addressRange   1\n\ntypedef struct IPAddressOrRange_st {\n    int type;\n    union {\n        ASN1_BIT_STRING *addressPrefix;\n        IPAddressRange *addressRange;\n    } u;\n} IPAddressOrRange;\n\ntypedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;\nDEFINE_STACK_OF(IPAddressOrRange)\n\n# define IPAddressChoice_inherit                 0\n# define IPAddressChoice_addressesOrRanges       1\n\ntypedef struct IPAddressChoice_st {\n    int type;\n    union {\n        ASN1_NULL *inherit;\n        IPAddressOrRanges *addressesOrRanges;\n    } u;\n} IPAddressChoice;\n\ntypedef struct IPAddressFamily_st {\n    ASN1_OCTET_STRING *addressFamily;\n    IPAddressChoice *ipAddressChoice;\n} IPAddressFamily;\n\ntypedef STACK_OF(IPAddressFamily) IPAddrBlocks;\nDEFINE_STACK_OF(IPAddressFamily)\n\nDECLARE_ASN1_FUNCTIONS(IPAddressRange)\nDECLARE_ASN1_FUNCTIONS(IPAddressOrRange)\nDECLARE_ASN1_FUNCTIONS(IPAddressChoice)\nDECLARE_ASN1_FUNCTIONS(IPAddressFamily)\n\n/*\n * API tag for elements of the ASIdentifer SEQUENCE.\n */\n# define V3_ASID_ASNUM   0\n# define V3_ASID_RDI     1\n\n/*\n * AFI values, assigned by IANA.  It'd be nice to make the AFI\n * handling code totally generic, but there are too many little things\n * that would need to be defined for other address families for it to\n * be worth the trouble.\n */\n# define IANA_AFI_IPV4   1\n# define IANA_AFI_IPV6   2\n\n/*\n * Utilities to construct and extract values from RFC3779 extensions,\n * since some of the encodings (particularly for IP address prefixes\n * and ranges) are a bit tedious to work with directly.\n */\nint X509v3_asid_add_inherit(ASIdentifiers *asid, int which);\nint X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which,\n                                ASN1_INTEGER *min, ASN1_INTEGER *max);\nint X509v3_addr_add_inherit(IPAddrBlocks *addr,\n                            const unsigned afi, const unsigned *safi);\nint X509v3_addr_add_prefix(IPAddrBlocks *addr,\n                           const unsigned afi, const unsigned *safi,\n                           unsigned char *a, const int prefixlen);\nint X509v3_addr_add_range(IPAddrBlocks *addr,\n                          const unsigned afi, const unsigned *safi,\n                          unsigned char *min, unsigned char *max);\nunsigned X509v3_addr_get_afi(const IPAddressFamily *f);\nint X509v3_addr_get_range(IPAddressOrRange *aor, const unsigned afi,\n                          unsigned char *min, unsigned char *max,\n                          const int length);\n\n/*\n * Canonical forms.\n */\nint X509v3_asid_is_canonical(ASIdentifiers *asid);\nint X509v3_addr_is_canonical(IPAddrBlocks *addr);\nint X509v3_asid_canonize(ASIdentifiers *asid);\nint X509v3_addr_canonize(IPAddrBlocks *addr);\n\n/*\n * Tests for inheritance and containment.\n */\nint X509v3_asid_inherits(ASIdentifiers *asid);\nint X509v3_addr_inherits(IPAddrBlocks *addr);\nint X509v3_asid_subset(ASIdentifiers *a, ASIdentifiers *b);\nint X509v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b);\n\n/*\n * Check whether RFC 3779 extensions nest properly in chains.\n */\nint X509v3_asid_validate_path(X509_STORE_CTX *);\nint X509v3_addr_validate_path(X509_STORE_CTX *);\nint X509v3_asid_validate_resource_set(STACK_OF(X509) *chain,\n                                      ASIdentifiers *ext,\n                                      int allow_inheritance);\nint X509v3_addr_validate_resource_set(STACK_OF(X509) *chain,\n                                      IPAddrBlocks *ext, int allow_inheritance);\n\n#endif                         /* OPENSSL_NO_RFC3779 */\n\nDEFINE_STACK_OF(ASN1_STRING)\n\n/*\n * Admission Syntax\n */\ntypedef struct NamingAuthority_st NAMING_AUTHORITY;\ntypedef struct ProfessionInfo_st PROFESSION_INFO;\ntypedef struct Admissions_st ADMISSIONS;\ntypedef struct AdmissionSyntax_st ADMISSION_SYNTAX;\nDECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY)\nDECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)\nDECLARE_ASN1_FUNCTIONS(ADMISSIONS)\nDECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)\nDEFINE_STACK_OF(ADMISSIONS)\nDEFINE_STACK_OF(PROFESSION_INFO)\ntypedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS;\n\nconst ASN1_OBJECT *NAMING_AUTHORITY_get0_authorityId(\n    const NAMING_AUTHORITY *n);\nconst ASN1_IA5STRING *NAMING_AUTHORITY_get0_authorityURL(\n    const NAMING_AUTHORITY *n);\nconst ASN1_STRING *NAMING_AUTHORITY_get0_authorityText(\n    const NAMING_AUTHORITY *n);\nvoid NAMING_AUTHORITY_set0_authorityId(NAMING_AUTHORITY *n,\n    ASN1_OBJECT* namingAuthorityId);\nvoid NAMING_AUTHORITY_set0_authorityURL(NAMING_AUTHORITY *n,\n    ASN1_IA5STRING* namingAuthorityUrl);\nvoid NAMING_AUTHORITY_set0_authorityText(NAMING_AUTHORITY *n,\n    ASN1_STRING* namingAuthorityText);\n\nconst GENERAL_NAME *ADMISSION_SYNTAX_get0_admissionAuthority(\n    const ADMISSION_SYNTAX *as);\nvoid ADMISSION_SYNTAX_set0_admissionAuthority(\n    ADMISSION_SYNTAX *as, GENERAL_NAME *aa);\nconst STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions(\n    const ADMISSION_SYNTAX *as);\nvoid ADMISSION_SYNTAX_set0_contentsOfAdmissions(\n    ADMISSION_SYNTAX *as, STACK_OF(ADMISSIONS) *a);\nconst GENERAL_NAME *ADMISSIONS_get0_admissionAuthority(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_admissionAuthority(ADMISSIONS *a, GENERAL_NAME *aa);\nconst NAMING_AUTHORITY *ADMISSIONS_get0_namingAuthority(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_namingAuthority(ADMISSIONS *a, NAMING_AUTHORITY *na);\nconst PROFESSION_INFOS *ADMISSIONS_get0_professionInfos(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_professionInfos(ADMISSIONS *a, PROFESSION_INFOS *pi);\nconst ASN1_OCTET_STRING *PROFESSION_INFO_get0_addProfessionInfo(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_addProfessionInfo(\n    PROFESSION_INFO *pi, ASN1_OCTET_STRING *aos);\nconst NAMING_AUTHORITY *PROFESSION_INFO_get0_namingAuthority(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_namingAuthority(\n    PROFESSION_INFO *pi, NAMING_AUTHORITY *na);\nconst STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_professionItems(\n    PROFESSION_INFO *pi, STACK_OF(ASN1_STRING) *as);\nconst STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_professionOIDs(\n    PROFESSION_INFO *pi, STACK_OF(ASN1_OBJECT) *po);\nconst ASN1_PRINTABLESTRING *PROFESSION_INFO_get0_registrationNumber(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_registrationNumber(\n    PROFESSION_INFO *pi, ASN1_PRINTABLESTRING *rn);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64/Headers/openssl/x509v3err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509V3ERR_H\n# define HEADER_X509V3ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_X509V3_strings(void);\n\n/*\n * X509V3 function codes.\n */\n# define X509V3_F_A2I_GENERAL_NAME                        164\n# define X509V3_F_ADDR_VALIDATE_PATH_INTERNAL             166\n# define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE             161\n# define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL         162\n# define X509V3_F_BIGNUM_TO_STRING                        167\n# define X509V3_F_COPY_EMAIL                              122\n# define X509V3_F_COPY_ISSUER                             123\n# define X509V3_F_DO_DIRNAME                              144\n# define X509V3_F_DO_EXT_I2D                              135\n# define X509V3_F_DO_EXT_NCONF                            151\n# define X509V3_F_GNAMES_FROM_SECTNAME                    156\n# define X509V3_F_I2S_ASN1_ENUMERATED                     121\n# define X509V3_F_I2S_ASN1_IA5STRING                      149\n# define X509V3_F_I2S_ASN1_INTEGER                        120\n# define X509V3_F_I2V_AUTHORITY_INFO_ACCESS               138\n# define X509V3_F_LEVEL_ADD_NODE                          168\n# define X509V3_F_NOTICE_SECTION                          132\n# define X509V3_F_NREF_NOS                                133\n# define X509V3_F_POLICY_CACHE_CREATE                     169\n# define X509V3_F_POLICY_CACHE_NEW                        170\n# define X509V3_F_POLICY_DATA_NEW                         171\n# define X509V3_F_POLICY_SECTION                          131\n# define X509V3_F_PROCESS_PCI_VALUE                       150\n# define X509V3_F_R2I_CERTPOL                             130\n# define X509V3_F_R2I_PCI                                 155\n# define X509V3_F_S2I_ASN1_IA5STRING                      100\n# define X509V3_F_S2I_ASN1_INTEGER                        108\n# define X509V3_F_S2I_ASN1_OCTET_STRING                   112\n# define X509V3_F_S2I_SKEY_ID                             115\n# define X509V3_F_SET_DIST_POINT_NAME                     158\n# define X509V3_F_SXNET_ADD_ID_ASC                        125\n# define X509V3_F_SXNET_ADD_ID_INTEGER                    126\n# define X509V3_F_SXNET_ADD_ID_ULONG                      127\n# define X509V3_F_SXNET_GET_ID_ASC                        128\n# define X509V3_F_SXNET_GET_ID_ULONG                      129\n# define X509V3_F_TREE_INIT                               172\n# define X509V3_F_V2I_ASIDENTIFIERS                       163\n# define X509V3_F_V2I_ASN1_BIT_STRING                     101\n# define X509V3_F_V2I_AUTHORITY_INFO_ACCESS               139\n# define X509V3_F_V2I_AUTHORITY_KEYID                     119\n# define X509V3_F_V2I_BASIC_CONSTRAINTS                   102\n# define X509V3_F_V2I_CRLD                                134\n# define X509V3_F_V2I_EXTENDED_KEY_USAGE                  103\n# define X509V3_F_V2I_GENERAL_NAMES                       118\n# define X509V3_F_V2I_GENERAL_NAME_EX                     117\n# define X509V3_F_V2I_IDP                                 157\n# define X509V3_F_V2I_IPADDRBLOCKS                        159\n# define X509V3_F_V2I_ISSUER_ALT                          153\n# define X509V3_F_V2I_NAME_CONSTRAINTS                    147\n# define X509V3_F_V2I_POLICY_CONSTRAINTS                  146\n# define X509V3_F_V2I_POLICY_MAPPINGS                     145\n# define X509V3_F_V2I_SUBJECT_ALT                         154\n# define X509V3_F_V2I_TLS_FEATURE                         165\n# define X509V3_F_V3_GENERIC_EXTENSION                    116\n# define X509V3_F_X509V3_ADD1_I2D                         140\n# define X509V3_F_X509V3_ADD_VALUE                        105\n# define X509V3_F_X509V3_EXT_ADD                          104\n# define X509V3_F_X509V3_EXT_ADD_ALIAS                    106\n# define X509V3_F_X509V3_EXT_I2D                          136\n# define X509V3_F_X509V3_EXT_NCONF                        152\n# define X509V3_F_X509V3_GET_SECTION                      142\n# define X509V3_F_X509V3_GET_STRING                       143\n# define X509V3_F_X509V3_GET_VALUE_BOOL                   110\n# define X509V3_F_X509V3_PARSE_LIST                       109\n# define X509V3_F_X509_PURPOSE_ADD                        137\n# define X509V3_F_X509_PURPOSE_SET                        141\n\n/*\n * X509V3 reason codes.\n */\n# define X509V3_R_BAD_IP_ADDRESS                          118\n# define X509V3_R_BAD_OBJECT                              119\n# define X509V3_R_BN_DEC2BN_ERROR                         100\n# define X509V3_R_BN_TO_ASN1_INTEGER_ERROR                101\n# define X509V3_R_DIRNAME_ERROR                           149\n# define X509V3_R_DISTPOINT_ALREADY_SET                   160\n# define X509V3_R_DUPLICATE_ZONE_ID                       133\n# define X509V3_R_ERROR_CONVERTING_ZONE                   131\n# define X509V3_R_ERROR_CREATING_EXTENSION                144\n# define X509V3_R_ERROR_IN_EXTENSION                      128\n# define X509V3_R_EXPECTED_A_SECTION_NAME                 137\n# define X509V3_R_EXTENSION_EXISTS                        145\n# define X509V3_R_EXTENSION_NAME_ERROR                    115\n# define X509V3_R_EXTENSION_NOT_FOUND                     102\n# define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED         103\n# define X509V3_R_EXTENSION_VALUE_ERROR                   116\n# define X509V3_R_ILLEGAL_EMPTY_EXTENSION                 151\n# define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG             152\n# define X509V3_R_INVALID_ASNUMBER                        162\n# define X509V3_R_INVALID_ASRANGE                         163\n# define X509V3_R_INVALID_BOOLEAN_STRING                  104\n# define X509V3_R_INVALID_EXTENSION_STRING                105\n# define X509V3_R_INVALID_INHERITANCE                     165\n# define X509V3_R_INVALID_IPADDRESS                       166\n# define X509V3_R_INVALID_MULTIPLE_RDNS                   161\n# define X509V3_R_INVALID_NAME                            106\n# define X509V3_R_INVALID_NULL_ARGUMENT                   107\n# define X509V3_R_INVALID_NULL_NAME                       108\n# define X509V3_R_INVALID_NULL_VALUE                      109\n# define X509V3_R_INVALID_NUMBER                          140\n# define X509V3_R_INVALID_NUMBERS                         141\n# define X509V3_R_INVALID_OBJECT_IDENTIFIER               110\n# define X509V3_R_INVALID_OPTION                          138\n# define X509V3_R_INVALID_POLICY_IDENTIFIER               134\n# define X509V3_R_INVALID_PROXY_POLICY_SETTING            153\n# define X509V3_R_INVALID_PURPOSE                         146\n# define X509V3_R_INVALID_SAFI                            164\n# define X509V3_R_INVALID_SECTION                         135\n# define X509V3_R_INVALID_SYNTAX                          143\n# define X509V3_R_ISSUER_DECODE_ERROR                     126\n# define X509V3_R_MISSING_VALUE                           124\n# define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS           142\n# define X509V3_R_NO_CONFIG_DATABASE                      136\n# define X509V3_R_NO_ISSUER_CERTIFICATE                   121\n# define X509V3_R_NO_ISSUER_DETAILS                       127\n# define X509V3_R_NO_POLICY_IDENTIFIER                    139\n# define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED   154\n# define X509V3_R_NO_PUBLIC_KEY                           114\n# define X509V3_R_NO_SUBJECT_DETAILS                      125\n# define X509V3_R_OPERATION_NOT_DEFINED                   148\n# define X509V3_R_OTHERNAME_ERROR                         147\n# define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED         155\n# define X509V3_R_POLICY_PATH_LENGTH                      156\n# define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED      157\n# define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY 159\n# define X509V3_R_SECTION_NOT_FOUND                       150\n# define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS            122\n# define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID              123\n# define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT             111\n# define X509V3_R_UNKNOWN_EXTENSION                       129\n# define X509V3_R_UNKNOWN_EXTENSION_NAME                  130\n# define X509V3_R_UNKNOWN_OPTION                          120\n# define X509V3_R_UNSUPPORTED_OPTION                      117\n# define X509V3_R_UNSUPPORTED_TYPE                        167\n# define X509V3_R_USER_TOO_LONG                           132\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/aes.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_AES_H\n# define HEADER_AES_H\n\n# include <openssl/opensslconf.h>\n\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define AES_ENCRYPT     1\n# define AES_DECRYPT     0\n\n/*\n * Because array size can't be a const in C, the following two are macros.\n * Both sizes are in bytes.\n */\n# define AES_MAXNR 14\n# define AES_BLOCK_SIZE 16\n\n/* This should be a hidden type, but EVP requires that the size be known */\nstruct aes_key_st {\n# ifdef AES_LONG\n    unsigned long rd_key[4 * (AES_MAXNR + 1)];\n# else\n    unsigned int rd_key[4 * (AES_MAXNR + 1)];\n# endif\n    int rounds;\n};\ntypedef struct aes_key_st AES_KEY;\n\nconst char *AES_options(void);\n\nint AES_set_encrypt_key(const unsigned char *userKey, const int bits,\n                        AES_KEY *key);\nint AES_set_decrypt_key(const unsigned char *userKey, const int bits,\n                        AES_KEY *key);\n\nvoid AES_encrypt(const unsigned char *in, unsigned char *out,\n                 const AES_KEY *key);\nvoid AES_decrypt(const unsigned char *in, unsigned char *out,\n                 const AES_KEY *key);\n\nvoid AES_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                     const AES_KEY *key, const int enc);\nvoid AES_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                     size_t length, const AES_KEY *key,\n                     unsigned char *ivec, const int enc);\nvoid AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        unsigned char *ivec, int *num, const int enc);\nvoid AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,\n                      size_t length, const AES_KEY *key,\n                      unsigned char *ivec, int *num, const int enc);\nvoid AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,\n                      size_t length, const AES_KEY *key,\n                      unsigned char *ivec, int *num, const int enc);\nvoid AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        unsigned char *ivec, int *num);\n/* NB: the IV is _two_ blocks long */\nvoid AES_ige_encrypt(const unsigned char *in, unsigned char *out,\n                     size_t length, const AES_KEY *key,\n                     unsigned char *ivec, const int enc);\n/* NB: the IV is _four_ blocks long */\nvoid AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        const AES_KEY *key2, const unsigned char *ivec,\n                        const int enc);\n\nint AES_wrap_key(AES_KEY *key, const unsigned char *iv,\n                 unsigned char *out,\n                 const unsigned char *in, unsigned int inlen);\nint AES_unwrap_key(AES_KEY *key, const unsigned char *iv,\n                   unsigned char *out,\n                   const unsigned char *in, unsigned int inlen);\n\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/asn1.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1_H\n# define HEADER_ASN1_H\n\n# include <time.h>\n# include <openssl/e_os2.h>\n# include <openssl/opensslconf.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/asn1err.h>\n# include <openssl/symhacks.h>\n\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define V_ASN1_UNIVERSAL                0x00\n# define V_ASN1_APPLICATION              0x40\n# define V_ASN1_CONTEXT_SPECIFIC         0x80\n# define V_ASN1_PRIVATE                  0xc0\n\n# define V_ASN1_CONSTRUCTED              0x20\n# define V_ASN1_PRIMITIVE_TAG            0x1f\n# define V_ASN1_PRIMATIVE_TAG /*compat*/ V_ASN1_PRIMITIVE_TAG\n\n# define V_ASN1_APP_CHOOSE               -2/* let the recipient choose */\n# define V_ASN1_OTHER                    -3/* used in ASN1_TYPE */\n# define V_ASN1_ANY                      -4/* used in ASN1 template code */\n\n# define V_ASN1_UNDEF                    -1\n/* ASN.1 tag values */\n# define V_ASN1_EOC                      0\n# define V_ASN1_BOOLEAN                  1 /**/\n# define V_ASN1_INTEGER                  2\n# define V_ASN1_BIT_STRING               3\n# define V_ASN1_OCTET_STRING             4\n# define V_ASN1_NULL                     5\n# define V_ASN1_OBJECT                   6\n# define V_ASN1_OBJECT_DESCRIPTOR        7\n# define V_ASN1_EXTERNAL                 8\n# define V_ASN1_REAL                     9\n# define V_ASN1_ENUMERATED               10\n# define V_ASN1_UTF8STRING               12\n# define V_ASN1_SEQUENCE                 16\n# define V_ASN1_SET                      17\n# define V_ASN1_NUMERICSTRING            18 /**/\n# define V_ASN1_PRINTABLESTRING          19\n# define V_ASN1_T61STRING                20\n# define V_ASN1_TELETEXSTRING            20/* alias */\n# define V_ASN1_VIDEOTEXSTRING           21 /**/\n# define V_ASN1_IA5STRING                22\n# define V_ASN1_UTCTIME                  23\n# define V_ASN1_GENERALIZEDTIME          24 /**/\n# define V_ASN1_GRAPHICSTRING            25 /**/\n# define V_ASN1_ISO64STRING              26 /**/\n# define V_ASN1_VISIBLESTRING            26/* alias */\n# define V_ASN1_GENERALSTRING            27 /**/\n# define V_ASN1_UNIVERSALSTRING          28 /**/\n# define V_ASN1_BMPSTRING                30\n\n/*\n * NB the constants below are used internally by ASN1_INTEGER\n * and ASN1_ENUMERATED to indicate the sign. They are *not* on\n * the wire tag values.\n */\n\n# define V_ASN1_NEG                      0x100\n# define V_ASN1_NEG_INTEGER              (2 | V_ASN1_NEG)\n# define V_ASN1_NEG_ENUMERATED           (10 | V_ASN1_NEG)\n\n/* For use with d2i_ASN1_type_bytes() */\n# define B_ASN1_NUMERICSTRING    0x0001\n# define B_ASN1_PRINTABLESTRING  0x0002\n# define B_ASN1_T61STRING        0x0004\n# define B_ASN1_TELETEXSTRING    0x0004\n# define B_ASN1_VIDEOTEXSTRING   0x0008\n# define B_ASN1_IA5STRING        0x0010\n# define B_ASN1_GRAPHICSTRING    0x0020\n# define B_ASN1_ISO64STRING      0x0040\n# define B_ASN1_VISIBLESTRING    0x0040\n# define B_ASN1_GENERALSTRING    0x0080\n# define B_ASN1_UNIVERSALSTRING  0x0100\n# define B_ASN1_OCTET_STRING     0x0200\n# define B_ASN1_BIT_STRING       0x0400\n# define B_ASN1_BMPSTRING        0x0800\n# define B_ASN1_UNKNOWN          0x1000\n# define B_ASN1_UTF8STRING       0x2000\n# define B_ASN1_UTCTIME          0x4000\n# define B_ASN1_GENERALIZEDTIME  0x8000\n# define B_ASN1_SEQUENCE         0x10000\n/* For use with ASN1_mbstring_copy() */\n# define MBSTRING_FLAG           0x1000\n# define MBSTRING_UTF8           (MBSTRING_FLAG)\n# define MBSTRING_ASC            (MBSTRING_FLAG|1)\n# define MBSTRING_BMP            (MBSTRING_FLAG|2)\n# define MBSTRING_UNIV           (MBSTRING_FLAG|4)\n# define SMIME_OLDMIME           0x400\n# define SMIME_CRLFEOL           0x800\n# define SMIME_STREAM            0x1000\n    struct X509_algor_st;\nDEFINE_STACK_OF(X509_ALGOR)\n\n# define ASN1_STRING_FLAG_BITS_LEFT 0x08/* Set if 0x07 has bits left value */\n/*\n * This indicates that the ASN1_STRING is not a real value but just a place\n * holder for the location where indefinite length constructed data should be\n * inserted in the memory buffer\n */\n# define ASN1_STRING_FLAG_NDEF 0x010\n\n/*\n * This flag is used by the CMS code to indicate that a string is not\n * complete and is a place holder for content when it had all been accessed.\n * The flag will be reset when content has been written to it.\n */\n\n# define ASN1_STRING_FLAG_CONT 0x020\n/*\n * This flag is used by ASN1 code to indicate an ASN1_STRING is an MSTRING\n * type.\n */\n# define ASN1_STRING_FLAG_MSTRING 0x040\n/* String is embedded and only content should be freed */\n# define ASN1_STRING_FLAG_EMBED 0x080\n/* String should be parsed in RFC 5280's time format */\n# define ASN1_STRING_FLAG_X509_TIME 0x100\n/* This is the base type that holds just about everything :-) */\nstruct asn1_string_st {\n    int length;\n    int type;\n    unsigned char *data;\n    /*\n     * The value of the following field depends on the type being held.  It\n     * is mostly being used for BIT_STRING so if the input data has a\n     * non-zero 'unused bits' value, it will be handled correctly\n     */\n    long flags;\n};\n\n/*\n * ASN1_ENCODING structure: this is used to save the received encoding of an\n * ASN1 type. This is useful to get round problems with invalid encodings\n * which can break signatures.\n */\n\ntypedef struct ASN1_ENCODING_st {\n    unsigned char *enc;         /* DER encoding */\n    long len;                   /* Length of encoding */\n    int modified;               /* set to 1 if 'enc' is invalid */\n} ASN1_ENCODING;\n\n/* Used with ASN1 LONG type: if a long is set to this it is omitted */\n# define ASN1_LONG_UNDEF 0x7fffffffL\n\n# define STABLE_FLAGS_MALLOC     0x01\n/*\n * A zero passed to ASN1_STRING_TABLE_new_add for the flags is interpreted\n * as \"don't change\" and STABLE_FLAGS_MALLOC is always set. By setting\n * STABLE_FLAGS_MALLOC only we can clear the existing value. Use the alias\n * STABLE_FLAGS_CLEAR to reflect this.\n */\n# define STABLE_FLAGS_CLEAR      STABLE_FLAGS_MALLOC\n# define STABLE_NO_MASK          0x02\n# define DIRSTRING_TYPE  \\\n (B_ASN1_PRINTABLESTRING|B_ASN1_T61STRING|B_ASN1_BMPSTRING|B_ASN1_UTF8STRING)\n# define PKCS9STRING_TYPE (DIRSTRING_TYPE|B_ASN1_IA5STRING)\n\ntypedef struct asn1_string_table_st {\n    int nid;\n    long minsize;\n    long maxsize;\n    unsigned long mask;\n    unsigned long flags;\n} ASN1_STRING_TABLE;\n\nDEFINE_STACK_OF(ASN1_STRING_TABLE)\n\n/* size limits: this stuff is taken straight from RFC2459 */\n\n# define ub_name                         32768\n# define ub_common_name                  64\n# define ub_locality_name                128\n# define ub_state_name                   128\n# define ub_organization_name            64\n# define ub_organization_unit_name       64\n# define ub_title                        64\n# define ub_email_address                128\n\n/*\n * Declarations for template structures: for full definitions see asn1t.h\n */\ntypedef struct ASN1_TEMPLATE_st ASN1_TEMPLATE;\ntypedef struct ASN1_TLC_st ASN1_TLC;\n/* This is just an opaque pointer */\ntypedef struct ASN1_VALUE_st ASN1_VALUE;\n\n/* Declare ASN1 functions: the implement macro in in asn1t.h */\n\n# define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type)\n\n# define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type)\n\n# define DECLARE_ASN1_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name)\n\n# define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)\n\n# define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \\\n        type *d2i_##name(type **a, const unsigned char **in, long len); \\\n        int i2d_##name(type *a, unsigned char **out); \\\n        DECLARE_ASN1_ITEM(itname)\n\n# define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \\\n        type *d2i_##name(type **a, const unsigned char **in, long len); \\\n        int i2d_##name(const type *a, unsigned char **out); \\\n        DECLARE_ASN1_ITEM(name)\n\n# define DECLARE_ASN1_NDEF_FUNCTION(name) \\\n        int i2d_##name##_NDEF(name *a, unsigned char **out);\n\n# define DECLARE_ASN1_FUNCTIONS_const(name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS(name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS_const(name, name)\n\n# define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        type *name##_new(void); \\\n        void name##_free(type *a);\n\n# define DECLARE_ASN1_PRINT_FUNCTION(stname) \\\n        DECLARE_ASN1_PRINT_FUNCTION_fname(stname, stname)\n\n# define DECLARE_ASN1_PRINT_FUNCTION_fname(stname, fname) \\\n        int fname##_print_ctx(BIO *out, stname *x, int indent, \\\n                                         const ASN1_PCTX *pctx);\n\n# define D2I_OF(type) type *(*)(type **,const unsigned char **,long)\n# define I2D_OF(type) int (*)(type *,unsigned char **)\n# define I2D_OF_const(type) int (*)(const type *,unsigned char **)\n\n# define CHECKED_D2I_OF(type, d2i) \\\n    ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0)))\n# define CHECKED_I2D_OF(type, i2d) \\\n    ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0)))\n# define CHECKED_NEW_OF(type, xnew) \\\n    ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0)))\n# define CHECKED_PTR_OF(type, p) \\\n    ((void*) (1 ? p : (type*)0))\n# define CHECKED_PPTR_OF(type, p) \\\n    ((void**) (1 ? p : (type**)0))\n\n# define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long)\n# define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **)\n# define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type)\n\nTYPEDEF_D2I2D_OF(void);\n\n/*-\n * The following macros and typedefs allow an ASN1_ITEM\n * to be embedded in a structure and referenced. Since\n * the ASN1_ITEM pointers need to be globally accessible\n * (possibly from shared libraries) they may exist in\n * different forms. On platforms that support it the\n * ASN1_ITEM structure itself will be globally exported.\n * Other platforms will export a function that returns\n * an ASN1_ITEM pointer.\n *\n * To handle both cases transparently the macros below\n * should be used instead of hard coding an ASN1_ITEM\n * pointer in a structure.\n *\n * The structure will look like this:\n *\n * typedef struct SOMETHING_st {\n *      ...\n *      ASN1_ITEM_EXP *iptr;\n *      ...\n * } SOMETHING;\n *\n * It would be initialised as e.g.:\n *\n * SOMETHING somevar = {...,ASN1_ITEM_ref(X509),...};\n *\n * and the actual pointer extracted with:\n *\n * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr);\n *\n * Finally an ASN1_ITEM pointer can be extracted from an\n * appropriate reference with: ASN1_ITEM_rptr(X509). This\n * would be used when a function takes an ASN1_ITEM * argument.\n *\n */\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/* ASN1_ITEM pointer exported type */\ntypedef const ASN1_ITEM ASN1_ITEM_EXP;\n\n/* Macro to obtain ASN1_ITEM pointer from exported type */\n#  define ASN1_ITEM_ptr(iptr) (iptr)\n\n/* Macro to include ASN1_ITEM pointer from base type */\n#  define ASN1_ITEM_ref(iptr) (&(iptr##_it))\n\n#  define ASN1_ITEM_rptr(ref) (&(ref##_it))\n\n#  define DECLARE_ASN1_ITEM(name) \\\n        OPENSSL_EXTERN const ASN1_ITEM name##_it;\n\n# else\n\n/*\n * Platforms that can't easily handle shared global variables are declared as\n * functions returning ASN1_ITEM pointers.\n */\n\n/* ASN1_ITEM pointer exported type */\ntypedef const ASN1_ITEM *ASN1_ITEM_EXP (void);\n\n/* Macro to obtain ASN1_ITEM pointer from exported type */\n#  define ASN1_ITEM_ptr(iptr) (iptr())\n\n/* Macro to include ASN1_ITEM pointer from base type */\n#  define ASN1_ITEM_ref(iptr) (iptr##_it)\n\n#  define ASN1_ITEM_rptr(ref) (ref##_it())\n\n#  define DECLARE_ASN1_ITEM(name) \\\n        const ASN1_ITEM * name##_it(void);\n\n# endif\n\n/* Parameters used by ASN1_STRING_print_ex() */\n\n/*\n * These determine which characters to escape: RFC2253 special characters,\n * control characters and MSB set characters\n */\n\n# define ASN1_STRFLGS_ESC_2253           1\n# define ASN1_STRFLGS_ESC_CTRL           2\n# define ASN1_STRFLGS_ESC_MSB            4\n\n/*\n * This flag determines how we do escaping: normally RC2253 backslash only,\n * set this to use backslash and quote.\n */\n\n# define ASN1_STRFLGS_ESC_QUOTE          8\n\n/* These three flags are internal use only. */\n\n/* Character is a valid PrintableString character */\n# define CHARTYPE_PRINTABLESTRING        0x10\n/* Character needs escaping if it is the first character */\n# define CHARTYPE_FIRST_ESC_2253         0x20\n/* Character needs escaping if it is the last character */\n# define CHARTYPE_LAST_ESC_2253          0x40\n\n/*\n * NB the internal flags are safely reused below by flags handled at the top\n * level.\n */\n\n/*\n * If this is set we convert all character strings to UTF8 first\n */\n\n# define ASN1_STRFLGS_UTF8_CONVERT       0x10\n\n/*\n * If this is set we don't attempt to interpret content: just assume all\n * strings are 1 byte per character. This will produce some pretty odd\n * looking output!\n */\n\n# define ASN1_STRFLGS_IGNORE_TYPE        0x20\n\n/* If this is set we include the string type in the output */\n# define ASN1_STRFLGS_SHOW_TYPE          0x40\n\n/*\n * This determines which strings to display and which to 'dump' (hex dump of\n * content octets or DER encoding). We can only dump non character strings or\n * everything. If we don't dump 'unknown' they are interpreted as character\n * strings with 1 octet per character and are subject to the usual escaping\n * options.\n */\n\n# define ASN1_STRFLGS_DUMP_ALL           0x80\n# define ASN1_STRFLGS_DUMP_UNKNOWN       0x100\n\n/*\n * These determine what 'dumping' does, we can dump the content octets or the\n * DER encoding: both use the RFC2253 #XXXXX notation.\n */\n\n# define ASN1_STRFLGS_DUMP_DER           0x200\n\n/*\n * This flag specifies that RC2254 escaping shall be performed.\n */\n#define ASN1_STRFLGS_ESC_2254           0x400\n\n/*\n * All the string flags consistent with RFC2253, escaping control characters\n * isn't essential in RFC2253 but it is advisable anyway.\n */\n\n# define ASN1_STRFLGS_RFC2253    (ASN1_STRFLGS_ESC_2253 | \\\n                                ASN1_STRFLGS_ESC_CTRL | \\\n                                ASN1_STRFLGS_ESC_MSB | \\\n                                ASN1_STRFLGS_UTF8_CONVERT | \\\n                                ASN1_STRFLGS_DUMP_UNKNOWN | \\\n                                ASN1_STRFLGS_DUMP_DER)\n\nDEFINE_STACK_OF(ASN1_INTEGER)\n\nDEFINE_STACK_OF(ASN1_GENERALSTRING)\n\nDEFINE_STACK_OF(ASN1_UTF8STRING)\n\ntypedef struct asn1_type_st {\n    int type;\n    union {\n        char *ptr;\n        ASN1_BOOLEAN boolean;\n        ASN1_STRING *asn1_string;\n        ASN1_OBJECT *object;\n        ASN1_INTEGER *integer;\n        ASN1_ENUMERATED *enumerated;\n        ASN1_BIT_STRING *bit_string;\n        ASN1_OCTET_STRING *octet_string;\n        ASN1_PRINTABLESTRING *printablestring;\n        ASN1_T61STRING *t61string;\n        ASN1_IA5STRING *ia5string;\n        ASN1_GENERALSTRING *generalstring;\n        ASN1_BMPSTRING *bmpstring;\n        ASN1_UNIVERSALSTRING *universalstring;\n        ASN1_UTCTIME *utctime;\n        ASN1_GENERALIZEDTIME *generalizedtime;\n        ASN1_VISIBLESTRING *visiblestring;\n        ASN1_UTF8STRING *utf8string;\n        /*\n         * set and sequence are left complete and still contain the set or\n         * sequence bytes\n         */\n        ASN1_STRING *set;\n        ASN1_STRING *sequence;\n        ASN1_VALUE *asn1_value;\n    } value;\n} ASN1_TYPE;\n\nDEFINE_STACK_OF(ASN1_TYPE)\n\ntypedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;\n\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SEQUENCE_ANY)\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SET_ANY)\n\n/* This is used to contain a list of bit names */\ntypedef struct BIT_STRING_BITNAME_st {\n    int bitnum;\n    const char *lname;\n    const char *sname;\n} BIT_STRING_BITNAME;\n\n# define B_ASN1_TIME \\\n                        B_ASN1_UTCTIME | \\\n                        B_ASN1_GENERALIZEDTIME\n\n# define B_ASN1_PRINTABLE \\\n                        B_ASN1_NUMERICSTRING| \\\n                        B_ASN1_PRINTABLESTRING| \\\n                        B_ASN1_T61STRING| \\\n                        B_ASN1_IA5STRING| \\\n                        B_ASN1_BIT_STRING| \\\n                        B_ASN1_UNIVERSALSTRING|\\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UTF8STRING|\\\n                        B_ASN1_SEQUENCE|\\\n                        B_ASN1_UNKNOWN\n\n# define B_ASN1_DIRECTORYSTRING \\\n                        B_ASN1_PRINTABLESTRING| \\\n                        B_ASN1_TELETEXSTRING|\\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UNIVERSALSTRING|\\\n                        B_ASN1_UTF8STRING\n\n# define B_ASN1_DISPLAYTEXT \\\n                        B_ASN1_IA5STRING| \\\n                        B_ASN1_VISIBLESTRING| \\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UTF8STRING\n\nDECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE)\n\nint ASN1_TYPE_get(const ASN1_TYPE *a);\nvoid ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);\nint ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);\nint ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);\n\nASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);\nvoid *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);\n\nASN1_OBJECT *ASN1_OBJECT_new(void);\nvoid ASN1_OBJECT_free(ASN1_OBJECT *a);\nint i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp);\nASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,\n                             long length);\n\nDECLARE_ASN1_ITEM(ASN1_OBJECT)\n\nDEFINE_STACK_OF(ASN1_OBJECT)\n\nASN1_STRING *ASN1_STRING_new(void);\nvoid ASN1_STRING_free(ASN1_STRING *a);\nvoid ASN1_STRING_clear_free(ASN1_STRING *a);\nint ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str);\nASN1_STRING *ASN1_STRING_dup(const ASN1_STRING *a);\nASN1_STRING *ASN1_STRING_type_new(int type);\nint ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b);\n  /*\n   * Since this is used to store all sorts of things, via macros, for now,\n   * make its data void *\n   */\nint ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);\nvoid ASN1_STRING_set0(ASN1_STRING *str, void *data, int len);\nint ASN1_STRING_length(const ASN1_STRING *x);\nvoid ASN1_STRING_length_set(ASN1_STRING *x, int n);\nint ASN1_STRING_type(const ASN1_STRING *x);\nDEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))\nconst unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING)\nint ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length);\nint ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value);\nint ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n);\nint ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a,\n                          const unsigned char *flags, int flags_len);\n\nint ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,\n                               BIT_STRING_BITNAME *tbl, int indent);\nint ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl);\nint ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,\n                            BIT_STRING_BITNAME *tbl);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_INTEGER)\nASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp,\n                                long length);\nASN1_INTEGER *ASN1_INTEGER_dup(const ASN1_INTEGER *x);\nint ASN1_INTEGER_cmp(const ASN1_INTEGER *x, const ASN1_INTEGER *y);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED)\n\nint ASN1_UTCTIME_check(const ASN1_UTCTIME *a);\nASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t);\nASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t,\n                               int offset_day, long offset_sec);\nint ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);\nint ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);\n\nint ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *a);\nASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,\n                                               time_t t);\nASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_adj(ASN1_GENERALIZEDTIME *s,\n                                               time_t t, int offset_day,\n                                               long offset_sec);\nint ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str);\n\nint ASN1_TIME_diff(int *pday, int *psec,\n                   const ASN1_TIME *from, const ASN1_TIME *to);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING)\nASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *a);\nint ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,\n                          const ASN1_OCTET_STRING *b);\nint ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,\n                          int len);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_NULL)\nDECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING)\n\nint UTF8_getc(const unsigned char *str, int len, unsigned long *val);\nint UTF8_putc(unsigned char *str, int len, unsigned long value);\n\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE)\n\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING)\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT)\nDECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_T61STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UTCTIME)\nDECLARE_ASN1_FUNCTIONS(ASN1_GENERALIZEDTIME)\nDECLARE_ASN1_FUNCTIONS(ASN1_TIME)\n\nDECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF)\n\nASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);\nASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,\n                         int offset_day, long offset_sec);\nint ASN1_TIME_check(const ASN1_TIME *t);\nASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,\n                                                   ASN1_GENERALIZEDTIME **out);\nint ASN1_TIME_set_string(ASN1_TIME *s, const char *str);\nint ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);\nint ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);\nint ASN1_TIME_normalize(ASN1_TIME *s);\nint ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t);\nint ASN1_TIME_compare(const ASN1_TIME *a, const ASN1_TIME *b);\n\nint i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a);\nint a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size);\nint i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a);\nint a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size);\nint i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a);\nint a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size);\nint i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type);\nint i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a);\n\nint a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);\nASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len,\n                                const char *sn, const char *ln);\n\nint ASN1_INTEGER_get_int64(int64_t *pr, const ASN1_INTEGER *a);\nint ASN1_INTEGER_set_int64(ASN1_INTEGER *a, int64_t r);\nint ASN1_INTEGER_get_uint64(uint64_t *pr, const ASN1_INTEGER *a);\nint ASN1_INTEGER_set_uint64(ASN1_INTEGER *a, uint64_t r);\n\nint ASN1_INTEGER_set(ASN1_INTEGER *a, long v);\nlong ASN1_INTEGER_get(const ASN1_INTEGER *a);\nASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai);\nBIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn);\n\nint ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_ENUMERATED *a);\nint ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *a, int64_t r);\n\n\nint ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v);\nlong ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a);\nASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai);\nBIGNUM *ASN1_ENUMERATED_to_BN(const ASN1_ENUMERATED *ai, BIGNUM *bn);\n\n/* General */\n/* given a string, return the correct type, max is the maximum length */\nint ASN1_PRINTABLE_type(const unsigned char *s, int max);\n\nunsigned long ASN1_tag2bit(int tag);\n\n/* SPECIALS */\nint ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,\n                    int *pclass, long omax);\nint ASN1_check_infinite_end(unsigned char **p, long len);\nint ASN1_const_check_infinite_end(const unsigned char **p, long len);\nvoid ASN1_put_object(unsigned char **pp, int constructed, int length,\n                     int tag, int xclass);\nint ASN1_put_eoc(unsigned char **pp);\nint ASN1_object_size(int constructed, int length, int tag);\n\n/* Used to implement other functions */\nvoid *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x);\n\n# define ASN1_dup_of(type,i2d,d2i,x) \\\n    ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \\\n                     CHECKED_D2I_OF(type, d2i), \\\n                     CHECKED_PTR_OF(type, x)))\n\n# define ASN1_dup_of_const(type,i2d,d2i,x) \\\n    ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \\\n                     CHECKED_D2I_OF(type, d2i), \\\n                     CHECKED_PTR_OF(const type, x)))\n\nvoid *ASN1_item_dup(const ASN1_ITEM *it, void *x);\n\n/* ASN1 alloc/free macros for when a type is only used internally */\n\n# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type))\n# define M_ASN1_free_of(x, type) \\\n                ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type))\n\n# ifndef OPENSSL_NO_STDIO\nvoid *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x);\n\n#  define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \\\n    ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \\\n                        CHECKED_D2I_OF(type, d2i), \\\n                        in, \\\n                        CHECKED_PPTR_OF(type, x)))\n\nvoid *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);\nint ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x);\n\n#  define ASN1_i2d_fp_of(type,i2d,out,x) \\\n    (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \\\n                 out, \\\n                 CHECKED_PTR_OF(type, x)))\n\n#  define ASN1_i2d_fp_of_const(type,i2d,out,x) \\\n    (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \\\n                 out, \\\n                 CHECKED_PTR_OF(const type, x)))\n\nint ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);\nint ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags);\n# endif\n\nint ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in);\n\nvoid *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x);\n\n#  define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \\\n    ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \\\n                          CHECKED_D2I_OF(type, d2i), \\\n                          in, \\\n                          CHECKED_PPTR_OF(type, x)))\n\nvoid *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x);\nint ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x);\n\n#  define ASN1_i2d_bio_of(type,i2d,out,x) \\\n    (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \\\n                  out, \\\n                  CHECKED_PTR_OF(type, x)))\n\n#  define ASN1_i2d_bio_of_const(type,i2d,out,x) \\\n    (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \\\n                  out, \\\n                  CHECKED_PTR_OF(const type, x)))\n\nint ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x);\nint ASN1_UTCTIME_print(BIO *fp, const ASN1_UTCTIME *a);\nint ASN1_GENERALIZEDTIME_print(BIO *fp, const ASN1_GENERALIZEDTIME *a);\nint ASN1_TIME_print(BIO *fp, const ASN1_TIME *a);\nint ASN1_STRING_print(BIO *bp, const ASN1_STRING *v);\nint ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);\nint ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int off);\nint ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num,\n                  unsigned char *buf, int off);\nint ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent);\nint ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent,\n                    int dump);\nconst char *ASN1_tag2str(int tag);\n\n/* Used to load and write Netscape format cert */\n\nint ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s);\n\nint ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len);\nint ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, int max_len);\nint ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num,\n                                  unsigned char *data, int len);\nint ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num,\n                                  unsigned char *data, int max_len);\n\nvoid *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);\n\nASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it,\n                            ASN1_OCTET_STRING **oct);\n\nvoid ASN1_STRING_set_default_mask(unsigned long mask);\nint ASN1_STRING_set_default_mask_asc(const char *p);\nunsigned long ASN1_STRING_get_default_mask(void);\nint ASN1_mbstring_copy(ASN1_STRING **out, const unsigned char *in, int len,\n                       int inform, unsigned long mask);\nint ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,\n                        int inform, unsigned long mask,\n                        long minsize, long maxsize);\n\nASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out,\n                                    const unsigned char *in, int inlen,\n                                    int inform, int nid);\nASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid);\nint ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long);\nvoid ASN1_STRING_TABLE_cleanup(void);\n\n/* ASN1 template functions */\n\n/* Old API compatible functions */\nASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);\nvoid ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it);\nASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in,\n                          long len, const ASN1_ITEM *it);\nint ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it);\nint ASN1_item_ndef_i2d(ASN1_VALUE *val, unsigned char **out,\n                       const ASN1_ITEM *it);\n\nvoid ASN1_add_oid_module(void);\nvoid ASN1_add_stable_module(void);\n\nASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);\nASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);\nint ASN1_str2mask(const char *str, unsigned long *pmask);\n\n/* ASN1 Print flags */\n\n/* Indicate missing OPTIONAL fields */\n# define ASN1_PCTX_FLAGS_SHOW_ABSENT             0x001\n/* Mark start and end of SEQUENCE */\n# define ASN1_PCTX_FLAGS_SHOW_SEQUENCE           0x002\n/* Mark start and end of SEQUENCE/SET OF */\n# define ASN1_PCTX_FLAGS_SHOW_SSOF               0x004\n/* Show the ASN1 type of primitives */\n# define ASN1_PCTX_FLAGS_SHOW_TYPE               0x008\n/* Don't show ASN1 type of ANY */\n# define ASN1_PCTX_FLAGS_NO_ANY_TYPE             0x010\n/* Don't show ASN1 type of MSTRINGs */\n# define ASN1_PCTX_FLAGS_NO_MSTRING_TYPE         0x020\n/* Don't show field names in SEQUENCE */\n# define ASN1_PCTX_FLAGS_NO_FIELD_NAME           0x040\n/* Show structure names of each SEQUENCE field */\n# define ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME  0x080\n/* Don't show structure name even at top level */\n# define ASN1_PCTX_FLAGS_NO_STRUCT_NAME          0x100\n\nint ASN1_item_print(BIO *out, ASN1_VALUE *ifld, int indent,\n                    const ASN1_ITEM *it, const ASN1_PCTX *pctx);\nASN1_PCTX *ASN1_PCTX_new(void);\nvoid ASN1_PCTX_free(ASN1_PCTX *p);\nunsigned long ASN1_PCTX_get_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_nm_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_nm_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_cert_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_cert_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_oid_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_oid_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags);\n\nASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx));\nvoid ASN1_SCTX_free(ASN1_SCTX *p);\nconst ASN1_ITEM *ASN1_SCTX_get_item(ASN1_SCTX *p);\nconst ASN1_TEMPLATE *ASN1_SCTX_get_template(ASN1_SCTX *p);\nunsigned long ASN1_SCTX_get_flags(ASN1_SCTX *p);\nvoid ASN1_SCTX_set_app_data(ASN1_SCTX *p, void *data);\nvoid *ASN1_SCTX_get_app_data(ASN1_SCTX *p);\n\nconst BIO_METHOD *BIO_f_asn1(void);\n\nBIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it);\n\nint i2d_ASN1_bio_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,\n                        const ASN1_ITEM *it);\nint PEM_write_bio_ASN1_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,\n                              const char *hdr, const ASN1_ITEM *it);\nint SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags,\n                     int ctype_nid, int econt_nid,\n                     STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it);\nASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it);\nint SMIME_crlf_copy(BIO *in, BIO *out, int flags);\nint SMIME_text(BIO *in, BIO *out);\n\nconst ASN1_ITEM *ASN1_ITEM_lookup(const char *name);\nconst ASN1_ITEM *ASN1_ITEM_get(size_t i);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/asn1_mac.h",
    "content": "/*\n * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#error \"This file is obsolete; please update your software.\"\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/asn1err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1ERR_H\n# define HEADER_ASN1ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_ASN1_strings(void);\n\n/*\n * ASN1 function codes.\n */\n# define ASN1_F_A2D_ASN1_OBJECT                           100\n# define ASN1_F_A2I_ASN1_INTEGER                          102\n# define ASN1_F_A2I_ASN1_STRING                           103\n# define ASN1_F_APPEND_EXP                                176\n# define ASN1_F_ASN1_BIO_INIT                             113\n# define ASN1_F_ASN1_BIT_STRING_SET_BIT                   183\n# define ASN1_F_ASN1_CB                                   177\n# define ASN1_F_ASN1_CHECK_TLEN                           104\n# define ASN1_F_ASN1_COLLECT                              106\n# define ASN1_F_ASN1_D2I_EX_PRIMITIVE                     108\n# define ASN1_F_ASN1_D2I_FP                               109\n# define ASN1_F_ASN1_D2I_READ_BIO                         107\n# define ASN1_F_ASN1_DIGEST                               184\n# define ASN1_F_ASN1_DO_ADB                               110\n# define ASN1_F_ASN1_DO_LOCK                              233\n# define ASN1_F_ASN1_DUP                                  111\n# define ASN1_F_ASN1_ENC_SAVE                             115\n# define ASN1_F_ASN1_EX_C2I                               204\n# define ASN1_F_ASN1_FIND_END                             190\n# define ASN1_F_ASN1_GENERALIZEDTIME_ADJ                  216\n# define ASN1_F_ASN1_GENERATE_V3                          178\n# define ASN1_F_ASN1_GET_INT64                            224\n# define ASN1_F_ASN1_GET_OBJECT                           114\n# define ASN1_F_ASN1_GET_UINT64                           225\n# define ASN1_F_ASN1_I2D_BIO                              116\n# define ASN1_F_ASN1_I2D_FP                               117\n# define ASN1_F_ASN1_ITEM_D2I_FP                          206\n# define ASN1_F_ASN1_ITEM_DUP                             191\n# define ASN1_F_ASN1_ITEM_EMBED_D2I                       120\n# define ASN1_F_ASN1_ITEM_EMBED_NEW                       121\n# define ASN1_F_ASN1_ITEM_FLAGS_I2D                       118\n# define ASN1_F_ASN1_ITEM_I2D_BIO                         192\n# define ASN1_F_ASN1_ITEM_I2D_FP                          193\n# define ASN1_F_ASN1_ITEM_PACK                            198\n# define ASN1_F_ASN1_ITEM_SIGN                            195\n# define ASN1_F_ASN1_ITEM_SIGN_CTX                        220\n# define ASN1_F_ASN1_ITEM_UNPACK                          199\n# define ASN1_F_ASN1_ITEM_VERIFY                          197\n# define ASN1_F_ASN1_MBSTRING_NCOPY                       122\n# define ASN1_F_ASN1_OBJECT_NEW                           123\n# define ASN1_F_ASN1_OUTPUT_DATA                          214\n# define ASN1_F_ASN1_PCTX_NEW                             205\n# define ASN1_F_ASN1_PRIMITIVE_NEW                        119\n# define ASN1_F_ASN1_SCTX_NEW                             221\n# define ASN1_F_ASN1_SIGN                                 128\n# define ASN1_F_ASN1_STR2TYPE                             179\n# define ASN1_F_ASN1_STRING_GET_INT64                     227\n# define ASN1_F_ASN1_STRING_GET_UINT64                    230\n# define ASN1_F_ASN1_STRING_SET                           186\n# define ASN1_F_ASN1_STRING_TABLE_ADD                     129\n# define ASN1_F_ASN1_STRING_TO_BN                         228\n# define ASN1_F_ASN1_STRING_TYPE_NEW                      130\n# define ASN1_F_ASN1_TEMPLATE_EX_D2I                      132\n# define ASN1_F_ASN1_TEMPLATE_NEW                         133\n# define ASN1_F_ASN1_TEMPLATE_NOEXP_D2I                   131\n# define ASN1_F_ASN1_TIME_ADJ                             217\n# define ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING             134\n# define ASN1_F_ASN1_TYPE_GET_OCTETSTRING                 135\n# define ASN1_F_ASN1_UTCTIME_ADJ                          218\n# define ASN1_F_ASN1_VERIFY                               137\n# define ASN1_F_B64_READ_ASN1                             209\n# define ASN1_F_B64_WRITE_ASN1                            210\n# define ASN1_F_BIO_NEW_NDEF                              208\n# define ASN1_F_BITSTR_CB                                 180\n# define ASN1_F_BN_TO_ASN1_STRING                         229\n# define ASN1_F_C2I_ASN1_BIT_STRING                       189\n# define ASN1_F_C2I_ASN1_INTEGER                          194\n# define ASN1_F_C2I_ASN1_OBJECT                           196\n# define ASN1_F_C2I_IBUF                                  226\n# define ASN1_F_C2I_UINT64_INT                            101\n# define ASN1_F_COLLECT_DATA                              140\n# define ASN1_F_D2I_ASN1_OBJECT                           147\n# define ASN1_F_D2I_ASN1_UINTEGER                         150\n# define ASN1_F_D2I_AUTOPRIVATEKEY                        207\n# define ASN1_F_D2I_PRIVATEKEY                            154\n# define ASN1_F_D2I_PUBLICKEY                             155\n# define ASN1_F_DO_BUF                                    142\n# define ASN1_F_DO_CREATE                                 124\n# define ASN1_F_DO_DUMP                                   125\n# define ASN1_F_DO_TCREATE                                222\n# define ASN1_F_I2A_ASN1_OBJECT                           126\n# define ASN1_F_I2D_ASN1_BIO_STREAM                       211\n# define ASN1_F_I2D_ASN1_OBJECT                           143\n# define ASN1_F_I2D_DSA_PUBKEY                            161\n# define ASN1_F_I2D_EC_PUBKEY                             181\n# define ASN1_F_I2D_PRIVATEKEY                            163\n# define ASN1_F_I2D_PUBLICKEY                             164\n# define ASN1_F_I2D_RSA_PUBKEY                            165\n# define ASN1_F_LONG_C2I                                  166\n# define ASN1_F_NDEF_PREFIX                               127\n# define ASN1_F_NDEF_SUFFIX                               136\n# define ASN1_F_OID_MODULE_INIT                           174\n# define ASN1_F_PARSE_TAGGING                             182\n# define ASN1_F_PKCS5_PBE2_SET_IV                         167\n# define ASN1_F_PKCS5_PBE2_SET_SCRYPT                     231\n# define ASN1_F_PKCS5_PBE_SET                             202\n# define ASN1_F_PKCS5_PBE_SET0_ALGOR                      215\n# define ASN1_F_PKCS5_PBKDF2_SET                          219\n# define ASN1_F_PKCS5_SCRYPT_SET                          232\n# define ASN1_F_SMIME_READ_ASN1                           212\n# define ASN1_F_SMIME_TEXT                                213\n# define ASN1_F_STABLE_GET                                138\n# define ASN1_F_STBL_MODULE_INIT                          223\n# define ASN1_F_UINT32_C2I                                105\n# define ASN1_F_UINT32_NEW                                139\n# define ASN1_F_UINT64_C2I                                112\n# define ASN1_F_UINT64_NEW                                141\n# define ASN1_F_X509_CRL_ADD0_REVOKED                     169\n# define ASN1_F_X509_INFO_NEW                             170\n# define ASN1_F_X509_NAME_ENCODE                          203\n# define ASN1_F_X509_NAME_EX_D2I                          158\n# define ASN1_F_X509_NAME_EX_NEW                          171\n# define ASN1_F_X509_PKEY_NEW                             173\n\n/*\n * ASN1 reason codes.\n */\n# define ASN1_R_ADDING_OBJECT                             171\n# define ASN1_R_ASN1_PARSE_ERROR                          203\n# define ASN1_R_ASN1_SIG_PARSE_ERROR                      204\n# define ASN1_R_AUX_ERROR                                 100\n# define ASN1_R_BAD_OBJECT_HEADER                         102\n# define ASN1_R_BMPSTRING_IS_WRONG_LENGTH                 214\n# define ASN1_R_BN_LIB                                    105\n# define ASN1_R_BOOLEAN_IS_WRONG_LENGTH                   106\n# define ASN1_R_BUFFER_TOO_SMALL                          107\n# define ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER           108\n# define ASN1_R_CONTEXT_NOT_INITIALISED                   217\n# define ASN1_R_DATA_IS_WRONG                             109\n# define ASN1_R_DECODE_ERROR                              110\n# define ASN1_R_DEPTH_EXCEEDED                            174\n# define ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED         198\n# define ASN1_R_ENCODE_ERROR                              112\n# define ASN1_R_ERROR_GETTING_TIME                        173\n# define ASN1_R_ERROR_LOADING_SECTION                     172\n# define ASN1_R_ERROR_SETTING_CIPHER_PARAMS               114\n# define ASN1_R_EXPECTING_AN_INTEGER                      115\n# define ASN1_R_EXPECTING_AN_OBJECT                       116\n# define ASN1_R_EXPLICIT_LENGTH_MISMATCH                  119\n# define ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED              120\n# define ASN1_R_FIELD_MISSING                             121\n# define ASN1_R_FIRST_NUM_TOO_LARGE                       122\n# define ASN1_R_HEADER_TOO_LONG                           123\n# define ASN1_R_ILLEGAL_BITSTRING_FORMAT                  175\n# define ASN1_R_ILLEGAL_BOOLEAN                           176\n# define ASN1_R_ILLEGAL_CHARACTERS                        124\n# define ASN1_R_ILLEGAL_FORMAT                            177\n# define ASN1_R_ILLEGAL_HEX                               178\n# define ASN1_R_ILLEGAL_IMPLICIT_TAG                      179\n# define ASN1_R_ILLEGAL_INTEGER                           180\n# define ASN1_R_ILLEGAL_NEGATIVE_VALUE                    226\n# define ASN1_R_ILLEGAL_NESTED_TAGGING                    181\n# define ASN1_R_ILLEGAL_NULL                              125\n# define ASN1_R_ILLEGAL_NULL_VALUE                        182\n# define ASN1_R_ILLEGAL_OBJECT                            183\n# define ASN1_R_ILLEGAL_OPTIONAL_ANY                      126\n# define ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE          170\n# define ASN1_R_ILLEGAL_PADDING                           221\n# define ASN1_R_ILLEGAL_TAGGED_ANY                        127\n# define ASN1_R_ILLEGAL_TIME_VALUE                        184\n# define ASN1_R_ILLEGAL_ZERO_CONTENT                      222\n# define ASN1_R_INTEGER_NOT_ASCII_FORMAT                  185\n# define ASN1_R_INTEGER_TOO_LARGE_FOR_LONG                128\n# define ASN1_R_INVALID_BIT_STRING_BITS_LEFT              220\n# define ASN1_R_INVALID_BMPSTRING_LENGTH                  129\n# define ASN1_R_INVALID_DIGIT                             130\n# define ASN1_R_INVALID_MIME_TYPE                         205\n# define ASN1_R_INVALID_MODIFIER                          186\n# define ASN1_R_INVALID_NUMBER                            187\n# define ASN1_R_INVALID_OBJECT_ENCODING                   216\n# define ASN1_R_INVALID_SCRYPT_PARAMETERS                 227\n# define ASN1_R_INVALID_SEPARATOR                         131\n# define ASN1_R_INVALID_STRING_TABLE_VALUE                218\n# define ASN1_R_INVALID_UNIVERSALSTRING_LENGTH            133\n# define ASN1_R_INVALID_UTF8STRING                        134\n# define ASN1_R_INVALID_VALUE                             219\n# define ASN1_R_LIST_ERROR                                188\n# define ASN1_R_MIME_NO_CONTENT_TYPE                      206\n# define ASN1_R_MIME_PARSE_ERROR                          207\n# define ASN1_R_MIME_SIG_PARSE_ERROR                      208\n# define ASN1_R_MISSING_EOC                               137\n# define ASN1_R_MISSING_SECOND_NUMBER                     138\n# define ASN1_R_MISSING_VALUE                             189\n# define ASN1_R_MSTRING_NOT_UNIVERSAL                     139\n# define ASN1_R_MSTRING_WRONG_TAG                         140\n# define ASN1_R_NESTED_ASN1_STRING                        197\n# define ASN1_R_NESTED_TOO_DEEP                           201\n# define ASN1_R_NON_HEX_CHARACTERS                        141\n# define ASN1_R_NOT_ASCII_FORMAT                          190\n# define ASN1_R_NOT_ENOUGH_DATA                           142\n# define ASN1_R_NO_CONTENT_TYPE                           209\n# define ASN1_R_NO_MATCHING_CHOICE_TYPE                   143\n# define ASN1_R_NO_MULTIPART_BODY_FAILURE                 210\n# define ASN1_R_NO_MULTIPART_BOUNDARY                     211\n# define ASN1_R_NO_SIG_CONTENT_TYPE                       212\n# define ASN1_R_NULL_IS_WRONG_LENGTH                      144\n# define ASN1_R_OBJECT_NOT_ASCII_FORMAT                   191\n# define ASN1_R_ODD_NUMBER_OF_CHARS                       145\n# define ASN1_R_SECOND_NUMBER_TOO_LARGE                   147\n# define ASN1_R_SEQUENCE_LENGTH_MISMATCH                  148\n# define ASN1_R_SEQUENCE_NOT_CONSTRUCTED                  149\n# define ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG              192\n# define ASN1_R_SHORT_LINE                                150\n# define ASN1_R_SIG_INVALID_MIME_TYPE                     213\n# define ASN1_R_STREAMING_NOT_SUPPORTED                   202\n# define ASN1_R_STRING_TOO_LONG                           151\n# define ASN1_R_STRING_TOO_SHORT                          152\n# define ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 154\n# define ASN1_R_TIME_NOT_ASCII_FORMAT                     193\n# define ASN1_R_TOO_LARGE                                 223\n# define ASN1_R_TOO_LONG                                  155\n# define ASN1_R_TOO_SMALL                                 224\n# define ASN1_R_TYPE_NOT_CONSTRUCTED                      156\n# define ASN1_R_TYPE_NOT_PRIMITIVE                        195\n# define ASN1_R_UNEXPECTED_EOC                            159\n# define ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH           215\n# define ASN1_R_UNKNOWN_FORMAT                            160\n# define ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM          161\n# define ASN1_R_UNKNOWN_OBJECT_TYPE                       162\n# define ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE                   163\n# define ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM               199\n# define ASN1_R_UNKNOWN_TAG                               194\n# define ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE           164\n# define ASN1_R_UNSUPPORTED_CIPHER                        228\n# define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE               167\n# define ASN1_R_UNSUPPORTED_TYPE                          196\n# define ASN1_R_WRONG_INTEGER_TYPE                        225\n# define ASN1_R_WRONG_PUBLIC_KEY_TYPE                     200\n# define ASN1_R_WRONG_TAG                                 168\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/asn1t.h",
    "content": "/*\n * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1T_H\n# define HEADER_ASN1T_H\n\n# include <stddef.h>\n# include <openssl/e_os2.h>\n# include <openssl/asn1.h>\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\n/* ASN1 template defines, structures and functions */\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */\n#  define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr))\n\n/* Macros for start and end of ASN1_ITEM definition */\n\n#  define ASN1_ITEM_start(itname) \\\n        const ASN1_ITEM itname##_it = {\n\n#  define static_ASN1_ITEM_start(itname) \\\n        static const ASN1_ITEM itname##_it = {\n\n#  define ASN1_ITEM_end(itname)                 \\\n                };\n\n# else\n\n/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */\n#  define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)((iptr)()))\n\n/* Macros for start and end of ASN1_ITEM definition */\n\n#  define ASN1_ITEM_start(itname) \\\n        const ASN1_ITEM * itname##_it(void) \\\n        { \\\n                static const ASN1_ITEM local_it = {\n\n#  define static_ASN1_ITEM_start(itname) \\\n        static ASN1_ITEM_start(itname)\n\n#  define ASN1_ITEM_end(itname) \\\n                }; \\\n        return &local_it; \\\n        }\n\n# endif\n\n/* Macros to aid ASN1 template writing */\n\n# define ASN1_ITEM_TEMPLATE(tname) \\\n        static const ASN1_TEMPLATE tname##_item_tt\n\n# define ASN1_ITEM_TEMPLATE_END(tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_PRIMITIVE,\\\n                -1,\\\n                &tname##_item_tt,\\\n                0,\\\n                NULL,\\\n                0,\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_ITEM_TEMPLATE_END(tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_PRIMITIVE,\\\n                -1,\\\n                &tname##_item_tt,\\\n                0,\\\n                NULL,\\\n                0,\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n/* This is a ASN1 type which just embeds a template */\n\n/*-\n * This pair helps declare a SEQUENCE. We can do:\n *\n *      ASN1_SEQUENCE(stname) = {\n *              ... SEQUENCE components ...\n *      } ASN1_SEQUENCE_END(stname)\n *\n *      This will produce an ASN1_ITEM called stname_it\n *      for a structure called stname.\n *\n *      If you want the same structure but a different\n *      name then use:\n *\n *      ASN1_SEQUENCE(itname) = {\n *              ... SEQUENCE components ...\n *      } ASN1_SEQUENCE_END_name(stname, itname)\n *\n *      This will create an item called itname_it using\n *      a structure called stname.\n */\n\n# define ASN1_SEQUENCE(tname) \\\n        static const ASN1_TEMPLATE tname##_seq_tt[]\n\n# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)\n\n# define static_ASN1_SEQUENCE_END(stname) static_ASN1_SEQUENCE_END_name(stname, stname)\n\n# define ASN1_SEQUENCE_END_name(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n# define static_ASN1_SEQUENCE_END_name(stname, tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_NDEF_SEQUENCE(tname) \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_NDEF_SEQUENCE_cb(tname, cb) \\\n        ASN1_SEQUENCE_cb(tname, cb)\n\n# define ASN1_SEQUENCE_cb(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_BROKEN_SEQUENCE(tname) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_SEQUENCE_ref(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), offsetof(tname, lock), cb, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_SEQUENCE_enc(tname, enc, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc)}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_NDEF_SEQUENCE_END(tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(tname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_NDEF_SEQUENCE_END(tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(tname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_BROKEN_SEQUENCE_END(stname) ASN1_SEQUENCE_END_ref(stname, stname)\n# define static_ASN1_BROKEN_SEQUENCE_END(stname) \\\n        static_ASN1_SEQUENCE_END_ref(stname, stname)\n\n# define ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)\n\n# define ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)\n# define static_ASN1_SEQUENCE_END_cb(stname, tname) static_ASN1_SEQUENCE_END_ref(stname, tname)\n\n# define ASN1_SEQUENCE_END_ref(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_SEQUENCE_END_ref(stname, tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_NDEF_SEQUENCE_END_cb(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n/*-\n * This pair helps declare a CHOICE type. We can do:\n *\n *      ASN1_CHOICE(chname) = {\n *              ... CHOICE options ...\n *      ASN1_CHOICE_END(chname)\n *\n *      This will produce an ASN1_ITEM called chname_it\n *      for a structure called chname. The structure\n *      definition must look like this:\n *      typedef struct {\n *              int type;\n *              union {\n *                      ASN1_SOMETHING *opt1;\n *                      ASN1_SOMEOTHER *opt2;\n *              } value;\n *      } chname;\n *\n *      the name of the selector must be 'type'.\n *      to use an alternative selector name use the\n *      ASN1_CHOICE_END_selector() version.\n */\n\n# define ASN1_CHOICE(tname) \\\n        static const ASN1_TEMPLATE tname##_ch_tt[]\n\n# define ASN1_CHOICE_cb(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \\\n        ASN1_CHOICE(tname)\n\n# define ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname)\n\n# define static_ASN1_CHOICE_END(stname) static_ASN1_CHOICE_END_name(stname, stname)\n\n# define ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type)\n\n# define static_ASN1_CHOICE_END_name(stname, tname) static_ASN1_CHOICE_END_selector(stname, tname, type)\n\n# define ASN1_CHOICE_END_selector(stname, tname, selname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define static_ASN1_CHOICE_END_selector(stname, tname, selname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_CHOICE_END_cb(stname, tname, selname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n/* This helps with the template wrapper form of ASN1_ITEM */\n\n# define ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \\\n        (flags), (tag), 0,\\\n        #name, ASN1_ITEM_ref(type) }\n\n/* These help with SEQUENCE or CHOICE components */\n\n/* used to declare other types */\n\n# define ASN1_EX_TYPE(flags, tag, stname, field, type) { \\\n        (flags), (tag), offsetof(stname, field),\\\n        #field, ASN1_ITEM_ref(type) }\n\n/* implicit and explicit helper macros */\n\n# define ASN1_IMP_EX(stname, field, type, tag, ex) \\\n         ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | (ex), tag, stname, field, type)\n\n# define ASN1_EXP_EX(stname, field, type, tag, ex) \\\n         ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | (ex), tag, stname, field, type)\n\n/* Any defined by macros: the field used is in the table itself */\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n#  define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }\n#  define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }\n# else\n#  define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb }\n#  define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb }\n# endif\n/* Plain simple type */\n# define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type)\n/* Embedded simple type */\n# define ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED,0, stname, field, type)\n\n/* OPTIONAL simple type */\n# define ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n# define ASN1_OPT_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED, 0, stname, field, type)\n\n/* IMPLICIT tagged simple type */\n# define ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0)\n# define ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)\n\n/* IMPLICIT tagged OPTIONAL simple type */\n# define ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)\n# define ASN1_IMP_OPT_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED)\n\n/* Same as above but EXPLICIT */\n\n# define ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0)\n# define ASN1_EXP_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)\n# define ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)\n# define ASN1_EXP_OPT_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED)\n\n/* SEQUENCE OF type */\n# define ASN1_SEQUENCE_OF(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type)\n\n/* OPTIONAL SEQUENCE OF */\n# define ASN1_SEQUENCE_OF_OPT(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n\n/* Same as above but for SET OF */\n\n# define ASN1_SET_OF(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type)\n\n# define ASN1_SET_OF_OPT(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n\n/* Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL */\n\n# define ASN1_IMP_SET_OF(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)\n\n# define ASN1_EXP_SET_OF(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)\n\n# define ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)\n\n# define ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)\n\n# define ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL)\n\n/* EXPLICIT using indefinite length constructed form */\n# define ASN1_NDEF_EXP(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF)\n\n/* EXPLICIT OPTIONAL using indefinite length constructed form */\n# define ASN1_NDEF_EXP_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_NDEF)\n\n/* Macros for the ASN1_ADB structure */\n\n# define ASN1_ADB(name) \\\n        static const ASN1_ADB_TABLE name##_adbtbl[]\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n#  define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \\\n        ;\\\n        static const ASN1_ADB name##_adb = {\\\n                flags,\\\n                offsetof(name, field),\\\n                adb_cb,\\\n                name##_adbtbl,\\\n                sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\\\n                def,\\\n                none\\\n        }\n\n# else\n\n#  define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \\\n        ;\\\n        static const ASN1_ITEM *name##_adb(void) \\\n        { \\\n        static const ASN1_ADB internal_adb = \\\n                {\\\n                flags,\\\n                offsetof(name, field),\\\n                adb_cb,\\\n                name##_adbtbl,\\\n                sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\\\n                def,\\\n                none\\\n                }; \\\n                return (const ASN1_ITEM *) &internal_adb; \\\n        } \\\n        void dummy_function(void)\n\n# endif\n\n# define ADB_ENTRY(val, template) {val, template}\n\n# define ASN1_ADB_TEMPLATE(name) \\\n        static const ASN1_TEMPLATE name##_tt\n\n/*\n * This is the ASN1 template structure that defines a wrapper round the\n * actual type. It determines the actual position of the field in the value\n * structure, various flags such as OPTIONAL and the field name.\n */\n\nstruct ASN1_TEMPLATE_st {\n    unsigned long flags;        /* Various flags */\n    long tag;                   /* tag, not used if no tagging */\n    unsigned long offset;       /* Offset of this field in structure */\n    const char *field_name;     /* Field name */\n    ASN1_ITEM_EXP *item;        /* Relevant ASN1_ITEM or ASN1_ADB */\n};\n\n/* Macro to extract ASN1_ITEM and ASN1_ADB pointer from ASN1_TEMPLATE */\n\n# define ASN1_TEMPLATE_item(t) (t->item_ptr)\n# define ASN1_TEMPLATE_adb(t) (t->item_ptr)\n\ntypedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE;\ntypedef struct ASN1_ADB_st ASN1_ADB;\n\nstruct ASN1_ADB_st {\n    unsigned long flags;        /* Various flags */\n    unsigned long offset;       /* Offset of selector field */\n    int (*adb_cb)(long *psel);  /* Application callback */\n    const ASN1_ADB_TABLE *tbl;  /* Table of possible types */\n    long tblcount;              /* Number of entries in tbl */\n    const ASN1_TEMPLATE *default_tt; /* Type to use if no match */\n    const ASN1_TEMPLATE *null_tt; /* Type to use if selector is NULL */\n};\n\nstruct ASN1_ADB_TABLE_st {\n    long value;                 /* NID for an object or value for an int */\n    const ASN1_TEMPLATE tt;     /* item for this value */\n};\n\n/* template flags */\n\n/* Field is optional */\n# define ASN1_TFLG_OPTIONAL      (0x1)\n\n/* Field is a SET OF */\n# define ASN1_TFLG_SET_OF        (0x1 << 1)\n\n/* Field is a SEQUENCE OF */\n# define ASN1_TFLG_SEQUENCE_OF   (0x2 << 1)\n\n/*\n * Special case: this refers to a SET OF that will be sorted into DER order\n * when encoded *and* the corresponding STACK will be modified to match the\n * new order.\n */\n# define ASN1_TFLG_SET_ORDER     (0x3 << 1)\n\n/* Mask for SET OF or SEQUENCE OF */\n# define ASN1_TFLG_SK_MASK       (0x3 << 1)\n\n/*\n * These flags mean the tag should be taken from the tag field. If EXPLICIT\n * then the underlying type is used for the inner tag.\n */\n\n/* IMPLICIT tagging */\n# define ASN1_TFLG_IMPTAG        (0x1 << 3)\n\n/* EXPLICIT tagging, inner tag from underlying type */\n# define ASN1_TFLG_EXPTAG        (0x2 << 3)\n\n# define ASN1_TFLG_TAG_MASK      (0x3 << 3)\n\n/* context specific IMPLICIT */\n# define ASN1_TFLG_IMPLICIT      (ASN1_TFLG_IMPTAG|ASN1_TFLG_CONTEXT)\n\n/* context specific EXPLICIT */\n# define ASN1_TFLG_EXPLICIT      (ASN1_TFLG_EXPTAG|ASN1_TFLG_CONTEXT)\n\n/*\n * If tagging is in force these determine the type of tag to use. Otherwise\n * the tag is determined by the underlying type. These values reflect the\n * actual octet format.\n */\n\n/* Universal tag */\n# define ASN1_TFLG_UNIVERSAL     (0x0<<6)\n/* Application tag */\n# define ASN1_TFLG_APPLICATION   (0x1<<6)\n/* Context specific tag */\n# define ASN1_TFLG_CONTEXT       (0x2<<6)\n/* Private tag */\n# define ASN1_TFLG_PRIVATE       (0x3<<6)\n\n# define ASN1_TFLG_TAG_CLASS     (0x3<<6)\n\n/*\n * These are for ANY DEFINED BY type. In this case the 'item' field points to\n * an ASN1_ADB structure which contains a table of values to decode the\n * relevant type\n */\n\n# define ASN1_TFLG_ADB_MASK      (0x3<<8)\n\n# define ASN1_TFLG_ADB_OID       (0x1<<8)\n\n# define ASN1_TFLG_ADB_INT       (0x1<<9)\n\n/*\n * This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes\n * indefinite length constructed encoding to be used if required.\n */\n\n# define ASN1_TFLG_NDEF          (0x1<<11)\n\n/* Field is embedded and not a pointer */\n# define ASN1_TFLG_EMBED         (0x1 << 12)\n\n/* This is the actual ASN1 item itself */\n\nstruct ASN1_ITEM_st {\n    char itype;                 /* The item type, primitive, SEQUENCE, CHOICE\n                                 * or extern */\n    long utype;                 /* underlying type */\n    const ASN1_TEMPLATE *templates; /* If SEQUENCE or CHOICE this contains\n                                     * the contents */\n    long tcount;                /* Number of templates if SEQUENCE or CHOICE */\n    const void *funcs;          /* functions that handle this type */\n    long size;                  /* Structure size (usually) */\n    const char *sname;          /* Structure name */\n};\n\n/*-\n * These are values for the itype field and\n * determine how the type is interpreted.\n *\n * For PRIMITIVE types the underlying type\n * determines the behaviour if items is NULL.\n *\n * Otherwise templates must contain a single\n * template and the type is treated in the\n * same way as the type specified in the template.\n *\n * For SEQUENCE types the templates field points\n * to the members, the size field is the\n * structure size.\n *\n * For CHOICE types the templates field points\n * to each possible member (typically a union)\n * and the 'size' field is the offset of the\n * selector.\n *\n * The 'funcs' field is used for application\n * specific functions.\n *\n * The EXTERN type uses a new style d2i/i2d.\n * The new style should be used where possible\n * because it avoids things like the d2i IMPLICIT\n * hack.\n *\n * MSTRING is a multiple string type, it is used\n * for a CHOICE of character strings where the\n * actual strings all occupy an ASN1_STRING\n * structure. In this case the 'utype' field\n * has a special meaning, it is used as a mask\n * of acceptable types using the B_ASN1 constants.\n *\n * NDEF_SEQUENCE is the same as SEQUENCE except\n * that it will use indefinite length constructed\n * encoding if requested.\n *\n */\n\n# define ASN1_ITYPE_PRIMITIVE            0x0\n\n# define ASN1_ITYPE_SEQUENCE             0x1\n\n# define ASN1_ITYPE_CHOICE               0x2\n\n# define ASN1_ITYPE_EXTERN               0x4\n\n# define ASN1_ITYPE_MSTRING              0x5\n\n# define ASN1_ITYPE_NDEF_SEQUENCE        0x6\n\n/*\n * Cache for ASN1 tag and length, so we don't keep re-reading it for things\n * like CHOICE\n */\n\nstruct ASN1_TLC_st {\n    char valid;                 /* Values below are valid */\n    int ret;                    /* return value */\n    long plen;                  /* length */\n    int ptag;                   /* class value */\n    int pclass;                 /* class value */\n    int hdrlen;                 /* header length */\n};\n\n/* Typedefs for ASN1 function pointers */\ntypedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,\n                        const ASN1_ITEM *it, int tag, int aclass, char opt,\n                        ASN1_TLC *ctx);\n\ntypedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out,\n                        const ASN1_ITEM *it, int tag, int aclass);\ntypedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);\ntypedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);\n\ntypedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,\n                               int indent, const char *fname,\n                               const ASN1_PCTX *pctx);\n\ntypedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont,\n                               int *putype, const ASN1_ITEM *it);\ntypedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont,\n                               int len, int utype, char *free_cont,\n                               const ASN1_ITEM *it);\ntypedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval,\n                                 const ASN1_ITEM *it, int indent,\n                                 const ASN1_PCTX *pctx);\n\ntypedef struct ASN1_EXTERN_FUNCS_st {\n    void *app_data;\n    ASN1_ex_new_func *asn1_ex_new;\n    ASN1_ex_free_func *asn1_ex_free;\n    ASN1_ex_free_func *asn1_ex_clear;\n    ASN1_ex_d2i *asn1_ex_d2i;\n    ASN1_ex_i2d *asn1_ex_i2d;\n    ASN1_ex_print_func *asn1_ex_print;\n} ASN1_EXTERN_FUNCS;\n\ntypedef struct ASN1_PRIMITIVE_FUNCS_st {\n    void *app_data;\n    unsigned long flags;\n    ASN1_ex_new_func *prim_new;\n    ASN1_ex_free_func *prim_free;\n    ASN1_ex_free_func *prim_clear;\n    ASN1_primitive_c2i *prim_c2i;\n    ASN1_primitive_i2c *prim_i2c;\n    ASN1_primitive_print *prim_print;\n} ASN1_PRIMITIVE_FUNCS;\n\n/*\n * This is the ASN1_AUX structure: it handles various miscellaneous\n * requirements. For example the use of reference counts and an informational\n * callback. The \"informational callback\" is called at various points during\n * the ASN1 encoding and decoding. It can be used to provide minor\n * customisation of the structures used. This is most useful where the\n * supplied routines *almost* do the right thing but need some extra help at\n * a few points. If the callback returns zero then it is assumed a fatal\n * error has occurred and the main operation should be abandoned. If major\n * changes in the default behaviour are required then an external type is\n * more appropriate.\n */\n\ntypedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it,\n                        void *exarg);\n\ntypedef struct ASN1_AUX_st {\n    void *app_data;\n    int flags;\n    int ref_offset;             /* Offset of reference value */\n    int ref_lock;               /* Lock type to use */\n    ASN1_aux_cb *asn1_cb;\n    int enc_offset;             /* Offset of ASN1_ENCODING structure */\n} ASN1_AUX;\n\n/* For print related callbacks exarg points to this structure */\ntypedef struct ASN1_PRINT_ARG_st {\n    BIO *out;\n    int indent;\n    const ASN1_PCTX *pctx;\n} ASN1_PRINT_ARG;\n\n/* For streaming related callbacks exarg points to this structure */\ntypedef struct ASN1_STREAM_ARG_st {\n    /* BIO to stream through */\n    BIO *out;\n    /* BIO with filters appended */\n    BIO *ndef_bio;\n    /* Streaming I/O boundary */\n    unsigned char **boundary;\n} ASN1_STREAM_ARG;\n\n/* Flags in ASN1_AUX */\n\n/* Use a reference count */\n# define ASN1_AFLG_REFCOUNT      1\n/* Save the encoding of structure (useful for signatures) */\n# define ASN1_AFLG_ENCODING      2\n/* The Sequence length is invalid */\n# define ASN1_AFLG_BROKEN        4\n\n/* operation values for asn1_cb */\n\n# define ASN1_OP_NEW_PRE         0\n# define ASN1_OP_NEW_POST        1\n# define ASN1_OP_FREE_PRE        2\n# define ASN1_OP_FREE_POST       3\n# define ASN1_OP_D2I_PRE         4\n# define ASN1_OP_D2I_POST        5\n# define ASN1_OP_I2D_PRE         6\n# define ASN1_OP_I2D_POST        7\n# define ASN1_OP_PRINT_PRE       8\n# define ASN1_OP_PRINT_POST      9\n# define ASN1_OP_STREAM_PRE      10\n# define ASN1_OP_STREAM_POST     11\n# define ASN1_OP_DETACHED_PRE    12\n# define ASN1_OP_DETACHED_POST   13\n\n/* Macro to implement a primitive type */\n# define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0)\n# define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \\\n                                ASN1_ITEM_start(itname) \\\n                                        ASN1_ITYPE_PRIMITIVE, V_##vname, NULL, 0, NULL, ex, #itname \\\n                                ASN1_ITEM_end(itname)\n\n/* Macro to implement a multi string type */\n# define IMPLEMENT_ASN1_MSTRING(itname, mask) \\\n                                ASN1_ITEM_start(itname) \\\n                                        ASN1_ITYPE_MSTRING, mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname \\\n                                ASN1_ITEM_end(itname)\n\n# define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \\\n        ASN1_ITEM_start(sname) \\\n                ASN1_ITYPE_EXTERN, \\\n                tag, \\\n                NULL, \\\n                0, \\\n                &fptrs, \\\n                0, \\\n                #sname \\\n        ASN1_ITEM_end(sname)\n\n/* Macro to implement standard functions in terms of ASN1_ITEM structures */\n\n# define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \\\n                        IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname)\n\n# define IMPLEMENT_STATIC_ASN1_ALLOC_FUNCTIONS(stname) \\\n                IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(static, stname, stname, stname)\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \\\n                IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(pre, stname, itname, fname) \\\n        pre stname *fname##_new(void) \\\n        { \\\n                return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \\\n        } \\\n        pre void fname##_free(stname *a) \\\n        { \\\n                ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \\\n        }\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \\\n        stname *fname##_new(void) \\\n        { \\\n                return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \\\n        } \\\n        void fname##_free(stname *a) \\\n        { \\\n                ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \\\n        }\n\n# define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)\n\n# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \\\n        stname *d2i_##fname(stname **a, const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\\\n        } \\\n        int i2d_##fname(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\\\n        }\n\n# define IMPLEMENT_ASN1_NDEF_FUNCTION(stname) \\\n        int i2d_##stname##_NDEF(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname));\\\n        }\n\n# define IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(stname) \\\n        static stname *d2i_##stname(stname **a, \\\n                                   const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, \\\n                                               ASN1_ITEM_rptr(stname)); \\\n        } \\\n        static int i2d_##stname(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, \\\n                                     ASN1_ITEM_rptr(stname)); \\\n        }\n\n/*\n * This includes evil casts to remove const: they will go away when full ASN1\n * constification is done.\n */\n# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \\\n        stname *d2i_##fname(stname **a, const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\\\n        } \\\n        int i2d_##fname(const stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\\\n        }\n\n# define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \\\n        stname * stname##_dup(stname *x) \\\n        { \\\n        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \\\n        }\n\n# define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \\\n        IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \\\n        int fname##_print_ctx(BIO *out, stname *x, int indent, \\\n                                                const ASN1_PCTX *pctx) \\\n        { \\\n                return ASN1_item_print(out, (ASN1_VALUE *)x, indent, \\\n                        ASN1_ITEM_rptr(itname), pctx); \\\n        }\n\n# define IMPLEMENT_ASN1_FUNCTIONS_const(name) \\\n                IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_const_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)\n\n/* external definitions for primitive types */\n\nDECLARE_ASN1_ITEM(ASN1_BOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_TBOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_FBOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_SEQUENCE)\nDECLARE_ASN1_ITEM(CBIGNUM)\nDECLARE_ASN1_ITEM(BIGNUM)\nDECLARE_ASN1_ITEM(INT32)\nDECLARE_ASN1_ITEM(ZINT32)\nDECLARE_ASN1_ITEM(UINT32)\nDECLARE_ASN1_ITEM(ZUINT32)\nDECLARE_ASN1_ITEM(INT64)\nDECLARE_ASN1_ITEM(ZINT64)\nDECLARE_ASN1_ITEM(UINT64)\nDECLARE_ASN1_ITEM(ZUINT64)\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n/*\n * LONG and ZLONG are strongly discouraged for use as stored data, as the\n * underlying C type (long) differs in size depending on the architecture.\n * They are designed with 32-bit longs in mind.\n */\nDECLARE_ASN1_ITEM(LONG)\nDECLARE_ASN1_ITEM(ZLONG)\n# endif\n\nDEFINE_STACK_OF(ASN1_VALUE)\n\n/* Functions used internally by the ASN1 code */\n\nint ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);\nvoid ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);\n\nint ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,\n                     const ASN1_ITEM *it, int tag, int aclass, char opt,\n                     ASN1_TLC *ctx);\n\nint ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,\n                     const ASN1_ITEM *it, int tag, int aclass);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/async.h",
    "content": "/*\n * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <stdlib.h>\n\n#ifndef HEADER_ASYNC_H\n# define HEADER_ASYNC_H\n\n#if defined(_WIN32)\n# if defined(BASETYPES) || defined(_WINDEF_H)\n/* application has to include <windows.h> to use this */\n#define OSSL_ASYNC_FD       HANDLE\n#define OSSL_BAD_ASYNC_FD   INVALID_HANDLE_VALUE\n# endif\n#else\n#define OSSL_ASYNC_FD       int\n#define OSSL_BAD_ASYNC_FD   -1\n#endif\n# include <openssl/asyncerr.h>\n\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct async_job_st ASYNC_JOB;\ntypedef struct async_wait_ctx_st ASYNC_WAIT_CTX;\n\n#define ASYNC_ERR      0\n#define ASYNC_NO_JOBS  1\n#define ASYNC_PAUSE    2\n#define ASYNC_FINISH   3\n\nint ASYNC_init_thread(size_t max_size, size_t init_size);\nvoid ASYNC_cleanup_thread(void);\n\n#ifdef OSSL_ASYNC_FD\nASYNC_WAIT_CTX *ASYNC_WAIT_CTX_new(void);\nvoid ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx);\nint ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,\n                               OSSL_ASYNC_FD fd,\n                               void *custom_data,\n                               void (*cleanup)(ASYNC_WAIT_CTX *, const void *,\n                                               OSSL_ASYNC_FD, void *));\nint ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,\n                        OSSL_ASYNC_FD *fd, void **custom_data);\nint ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,\n                               size_t *numfds);\nint ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd,\n                                   size_t *numaddfds, OSSL_ASYNC_FD *delfd,\n                                   size_t *numdelfds);\nint ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key);\n#endif\n\nint ASYNC_is_capable(void);\n\nint ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,\n                    int (*func)(void *), void *args, size_t size);\nint ASYNC_pause_job(void);\n\nASYNC_JOB *ASYNC_get_current_job(void);\nASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job);\nvoid ASYNC_block_pause(void);\nvoid ASYNC_unblock_pause(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/asyncerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASYNCERR_H\n# define HEADER_ASYNCERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_ASYNC_strings(void);\n\n/*\n * ASYNC function codes.\n */\n# define ASYNC_F_ASYNC_CTX_NEW                            100\n# define ASYNC_F_ASYNC_INIT_THREAD                        101\n# define ASYNC_F_ASYNC_JOB_NEW                            102\n# define ASYNC_F_ASYNC_PAUSE_JOB                          103\n# define ASYNC_F_ASYNC_START_FUNC                         104\n# define ASYNC_F_ASYNC_START_JOB                          105\n# define ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD               106\n\n/*\n * ASYNC reason codes.\n */\n# define ASYNC_R_FAILED_TO_SET_POOL                       101\n# define ASYNC_R_FAILED_TO_SWAP_CONTEXT                   102\n# define ASYNC_R_INIT_FAILED                              105\n# define ASYNC_R_INVALID_POOL_SIZE                        103\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/bio.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BIO_H\n# define HEADER_BIO_H\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n# include <stdarg.h>\n\n# include <openssl/crypto.h>\n# include <openssl/bioerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* There are the classes of BIOs */\n# define BIO_TYPE_DESCRIPTOR     0x0100 /* socket, fd, connect or accept */\n# define BIO_TYPE_FILTER         0x0200\n# define BIO_TYPE_SOURCE_SINK    0x0400\n\n/* These are the 'types' of BIOs */\n# define BIO_TYPE_NONE             0\n# define BIO_TYPE_MEM            ( 1|BIO_TYPE_SOURCE_SINK)\n# define BIO_TYPE_FILE           ( 2|BIO_TYPE_SOURCE_SINK)\n\n# define BIO_TYPE_FD             ( 4|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_SOCKET         ( 5|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_NULL           ( 6|BIO_TYPE_SOURCE_SINK)\n# define BIO_TYPE_SSL            ( 7|BIO_TYPE_FILTER)\n# define BIO_TYPE_MD             ( 8|BIO_TYPE_FILTER)\n# define BIO_TYPE_BUFFER         ( 9|BIO_TYPE_FILTER)\n# define BIO_TYPE_CIPHER         (10|BIO_TYPE_FILTER)\n# define BIO_TYPE_BASE64         (11|BIO_TYPE_FILTER)\n# define BIO_TYPE_CONNECT        (12|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_ACCEPT         (13|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n\n# define BIO_TYPE_NBIO_TEST      (16|BIO_TYPE_FILTER)/* server proxy BIO */\n# define BIO_TYPE_NULL_FILTER    (17|BIO_TYPE_FILTER)\n# define BIO_TYPE_BIO            (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */\n# define BIO_TYPE_LINEBUFFER     (20|BIO_TYPE_FILTER)\n# define BIO_TYPE_DGRAM          (21|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_ASN1           (22|BIO_TYPE_FILTER)\n# define BIO_TYPE_COMP           (23|BIO_TYPE_FILTER)\n# ifndef OPENSSL_NO_SCTP\n#  define BIO_TYPE_DGRAM_SCTP    (24|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# endif\n\n#define BIO_TYPE_START           128\n\n/*\n * BIO_FILENAME_READ|BIO_CLOSE to open or close on free.\n * BIO_set_fp(in,stdin,BIO_NOCLOSE);\n */\n# define BIO_NOCLOSE             0x00\n# define BIO_CLOSE               0x01\n\n/*\n * These are used in the following macros and are passed to BIO_ctrl()\n */\n# define BIO_CTRL_RESET          1/* opt - rewind/zero etc */\n# define BIO_CTRL_EOF            2/* opt - are we at the eof */\n# define BIO_CTRL_INFO           3/* opt - extra tit-bits */\n# define BIO_CTRL_SET            4/* man - set the 'IO' type */\n# define BIO_CTRL_GET            5/* man - get the 'IO' type */\n# define BIO_CTRL_PUSH           6/* opt - internal, used to signify change */\n# define BIO_CTRL_POP            7/* opt - internal, used to signify change */\n# define BIO_CTRL_GET_CLOSE      8/* man - set the 'close' on free */\n# define BIO_CTRL_SET_CLOSE      9/* man - set the 'close' on free */\n# define BIO_CTRL_PENDING        10/* opt - is their more data buffered */\n# define BIO_CTRL_FLUSH          11/* opt - 'flush' buffered output */\n# define BIO_CTRL_DUP            12/* man - extra stuff for 'duped' BIO */\n# define BIO_CTRL_WPENDING       13/* opt - number of bytes still to write */\n# define BIO_CTRL_SET_CALLBACK   14/* opt - set callback function */\n# define BIO_CTRL_GET_CALLBACK   15/* opt - set callback function */\n\n# define BIO_CTRL_PEEK           29/* BIO_f_buffer special */\n# define BIO_CTRL_SET_FILENAME   30/* BIO_s_file special */\n\n/* dgram BIO stuff */\n# define BIO_CTRL_DGRAM_CONNECT       31/* BIO dgram special */\n# define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected\n                                         * socket to be passed in */\n# define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33/* setsockopt, essentially */\n# define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34/* getsockopt, essentially */\n# define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35/* setsockopt, essentially */\n# define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36/* getsockopt, essentially */\n\n# define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37/* flag whether the last */\n# define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38/* I/O operation tiemd out */\n\n/* #ifdef IP_MTU_DISCOVER */\n# define BIO_CTRL_DGRAM_MTU_DISCOVER       39/* set DF bit on egress packets */\n/* #endif */\n\n# define BIO_CTRL_DGRAM_QUERY_MTU          40/* as kernel for current MTU */\n# define BIO_CTRL_DGRAM_GET_FALLBACK_MTU   47\n# define BIO_CTRL_DGRAM_GET_MTU            41/* get cached value for MTU */\n# define BIO_CTRL_DGRAM_SET_MTU            42/* set cached value for MTU.\n                                              * want to use this if asking\n                                              * the kernel fails */\n\n# define BIO_CTRL_DGRAM_MTU_EXCEEDED       43/* check whether the MTU was\n                                              * exceed in the previous write\n                                              * operation */\n\n# define BIO_CTRL_DGRAM_GET_PEER           46\n# define BIO_CTRL_DGRAM_SET_PEER           44/* Destination for the data */\n\n# define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT   45/* Next DTLS handshake timeout\n                                              * to adjust socket timeouts */\n# define BIO_CTRL_DGRAM_SET_DONT_FRAG      48\n\n# define BIO_CTRL_DGRAM_GET_MTU_OVERHEAD   49\n\n/* Deliberately outside of OPENSSL_NO_SCTP - used in bss_dgram.c */\n#  define BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE    50\n# ifndef OPENSSL_NO_SCTP\n/* SCTP stuff */\n#  define BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY                51\n#  define BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY               52\n#  define BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD               53\n#  define BIO_CTRL_DGRAM_SCTP_GET_SNDINFO         60\n#  define BIO_CTRL_DGRAM_SCTP_SET_SNDINFO         61\n#  define BIO_CTRL_DGRAM_SCTP_GET_RCVINFO         62\n#  define BIO_CTRL_DGRAM_SCTP_SET_RCVINFO         63\n#  define BIO_CTRL_DGRAM_SCTP_GET_PRINFO                  64\n#  define BIO_CTRL_DGRAM_SCTP_SET_PRINFO                  65\n#  define BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN               70\n# endif\n\n# define BIO_CTRL_DGRAM_SET_PEEK_MODE      71\n\n/* modifiers */\n# define BIO_FP_READ             0x02\n# define BIO_FP_WRITE            0x04\n# define BIO_FP_APPEND           0x08\n# define BIO_FP_TEXT             0x10\n\n# define BIO_FLAGS_READ          0x01\n# define BIO_FLAGS_WRITE         0x02\n# define BIO_FLAGS_IO_SPECIAL    0x04\n# define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)\n# define BIO_FLAGS_SHOULD_RETRY  0x08\n# ifndef BIO_FLAGS_UPLINK\n/*\n * \"UPLINK\" flag denotes file descriptors provided by application. It\n * defaults to 0, as most platforms don't require UPLINK interface.\n */\n#  define BIO_FLAGS_UPLINK        0\n# endif\n\n# define BIO_FLAGS_BASE64_NO_NL  0x100\n\n/*\n * This is used with memory BIOs:\n * BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way;\n * BIO_FLAGS_NONCLEAR_RST means we shouldn't clear data on reset.\n */\n# define BIO_FLAGS_MEM_RDONLY    0x200\n# define BIO_FLAGS_NONCLEAR_RST  0x400\n# define BIO_FLAGS_IN_EOF        0x800\n\ntypedef union bio_addr_st BIO_ADDR;\ntypedef struct bio_addrinfo_st BIO_ADDRINFO;\n\nint BIO_get_new_index(void);\nvoid BIO_set_flags(BIO *b, int flags);\nint BIO_test_flags(const BIO *b, int flags);\nvoid BIO_clear_flags(BIO *b, int flags);\n\n# define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))\n# define BIO_set_retry_special(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_set_retry_read(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_set_retry_write(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))\n\n/* These are normally used internally in BIOs */\n# define BIO_clear_retry_flags(b) \\\n                BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_get_retry_flags(b) \\\n                BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))\n\n/* These should be used by the application to tell why we should retry */\n# define BIO_should_read(a)              BIO_test_flags(a, BIO_FLAGS_READ)\n# define BIO_should_write(a)             BIO_test_flags(a, BIO_FLAGS_WRITE)\n# define BIO_should_io_special(a)        BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)\n# define BIO_retry_type(a)               BIO_test_flags(a, BIO_FLAGS_RWS)\n# define BIO_should_retry(a)             BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)\n\n/*\n * The next three are used in conjunction with the BIO_should_io_special()\n * condition.  After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int\n * *reason); will walk the BIO stack and return the 'reason' for the special\n * and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return\n * the code.\n */\n/*\n * Returned from the SSL bio when the certificate retrieval code had an error\n */\n# define BIO_RR_SSL_X509_LOOKUP          0x01\n/* Returned from the connect BIO when a connect would have blocked */\n# define BIO_RR_CONNECT                  0x02\n/* Returned from the accept BIO when an accept would have blocked */\n# define BIO_RR_ACCEPT                   0x03\n\n/* These are passed by the BIO callback */\n# define BIO_CB_FREE     0x01\n# define BIO_CB_READ     0x02\n# define BIO_CB_WRITE    0x03\n# define BIO_CB_PUTS     0x04\n# define BIO_CB_GETS     0x05\n# define BIO_CB_CTRL     0x06\n\n/*\n * The callback is called before and after the underling operation, The\n * BIO_CB_RETURN flag indicates if it is after the call\n */\n# define BIO_CB_RETURN   0x80\n# define BIO_CB_return(a) ((a)|BIO_CB_RETURN)\n# define BIO_cb_pre(a)   (!((a)&BIO_CB_RETURN))\n# define BIO_cb_post(a)  ((a)&BIO_CB_RETURN)\n\ntypedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,\n                                long argl, long ret);\ntypedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,\n                                   size_t len, int argi,\n                                   long argl, int ret, size_t *processed);\nBIO_callback_fn BIO_get_callback(const BIO *b);\nvoid BIO_set_callback(BIO *b, BIO_callback_fn callback);\n\nBIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);\nvoid BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);\n\nchar *BIO_get_callback_arg(const BIO *b);\nvoid BIO_set_callback_arg(BIO *b, char *arg);\n\ntypedef struct bio_method_st BIO_METHOD;\n\nconst char *BIO_method_name(const BIO *b);\nint BIO_method_type(const BIO *b);\n\ntypedef int BIO_info_cb(BIO *, int, int);\ntypedef BIO_info_cb bio_info_cb;  /* backward compatibility */\n\nDEFINE_STACK_OF(BIO)\n\n/* Prefix and suffix callback in ASN1 BIO */\ntypedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,\n                          void *parg);\n\n# ifndef OPENSSL_NO_SCTP\n/* SCTP parameter structs */\nstruct bio_dgram_sctp_sndinfo {\n    uint16_t snd_sid;\n    uint16_t snd_flags;\n    uint32_t snd_ppid;\n    uint32_t snd_context;\n};\n\nstruct bio_dgram_sctp_rcvinfo {\n    uint16_t rcv_sid;\n    uint16_t rcv_ssn;\n    uint16_t rcv_flags;\n    uint32_t rcv_ppid;\n    uint32_t rcv_tsn;\n    uint32_t rcv_cumtsn;\n    uint32_t rcv_context;\n};\n\nstruct bio_dgram_sctp_prinfo {\n    uint16_t pr_policy;\n    uint32_t pr_value;\n};\n# endif\n\n/*\n * #define BIO_CONN_get_param_hostname BIO_ctrl\n */\n\n# define BIO_C_SET_CONNECT                       100\n# define BIO_C_DO_STATE_MACHINE                  101\n# define BIO_C_SET_NBIO                          102\n/* # define BIO_C_SET_PROXY_PARAM                   103 */\n# define BIO_C_SET_FD                            104\n# define BIO_C_GET_FD                            105\n# define BIO_C_SET_FILE_PTR                      106\n# define BIO_C_GET_FILE_PTR                      107\n# define BIO_C_SET_FILENAME                      108\n# define BIO_C_SET_SSL                           109\n# define BIO_C_GET_SSL                           110\n# define BIO_C_SET_MD                            111\n# define BIO_C_GET_MD                            112\n# define BIO_C_GET_CIPHER_STATUS                 113\n# define BIO_C_SET_BUF_MEM                       114\n# define BIO_C_GET_BUF_MEM_PTR                   115\n# define BIO_C_GET_BUFF_NUM_LINES                116\n# define BIO_C_SET_BUFF_SIZE                     117\n# define BIO_C_SET_ACCEPT                        118\n# define BIO_C_SSL_MODE                          119\n# define BIO_C_GET_MD_CTX                        120\n/* # define BIO_C_GET_PROXY_PARAM                   121 */\n# define BIO_C_SET_BUFF_READ_DATA                122/* data to read first */\n# define BIO_C_GET_CONNECT                       123\n# define BIO_C_GET_ACCEPT                        124\n# define BIO_C_SET_SSL_RENEGOTIATE_BYTES         125\n# define BIO_C_GET_SSL_NUM_RENEGOTIATES          126\n# define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT       127\n# define BIO_C_FILE_SEEK                         128\n# define BIO_C_GET_CIPHER_CTX                    129\n# define BIO_C_SET_BUF_MEM_EOF_RETURN            130/* return end of input\n                                                     * value */\n# define BIO_C_SET_BIND_MODE                     131\n# define BIO_C_GET_BIND_MODE                     132\n# define BIO_C_FILE_TELL                         133\n# define BIO_C_GET_SOCKS                         134\n# define BIO_C_SET_SOCKS                         135\n\n# define BIO_C_SET_WRITE_BUF_SIZE                136/* for BIO_s_bio */\n# define BIO_C_GET_WRITE_BUF_SIZE                137\n# define BIO_C_MAKE_BIO_PAIR                     138\n# define BIO_C_DESTROY_BIO_PAIR                  139\n# define BIO_C_GET_WRITE_GUARANTEE               140\n# define BIO_C_GET_READ_REQUEST                  141\n# define BIO_C_SHUTDOWN_WR                       142\n# define BIO_C_NREAD0                            143\n# define BIO_C_NREAD                             144\n# define BIO_C_NWRITE0                           145\n# define BIO_C_NWRITE                            146\n# define BIO_C_RESET_READ_REQUEST                147\n# define BIO_C_SET_MD_CTX                        148\n\n# define BIO_C_SET_PREFIX                        149\n# define BIO_C_GET_PREFIX                        150\n# define BIO_C_SET_SUFFIX                        151\n# define BIO_C_GET_SUFFIX                        152\n\n# define BIO_C_SET_EX_ARG                        153\n# define BIO_C_GET_EX_ARG                        154\n\n# define BIO_C_SET_CONNECT_MODE                  155\n\n# define BIO_set_app_data(s,arg)         BIO_set_ex_data(s,0,arg)\n# define BIO_get_app_data(s)             BIO_get_ex_data(s,0)\n\n# define BIO_set_nbio(b,n)             BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)\n\n# ifndef OPENSSL_NO_SOCK\n/* IP families we support, for BIO_s_connect() and BIO_s_accept() */\n/* Note: the underlying operating system may not support some of them */\n#  define BIO_FAMILY_IPV4                         4\n#  define BIO_FAMILY_IPV6                         6\n#  define BIO_FAMILY_IPANY                        256\n\n/* BIO_s_connect() */\n#  define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0, \\\n                                                 (char *)(name))\n#  define BIO_set_conn_port(b,port)     BIO_ctrl(b,BIO_C_SET_CONNECT,1, \\\n                                                 (char *)(port))\n#  define BIO_set_conn_address(b,addr)  BIO_ctrl(b,BIO_C_SET_CONNECT,2, \\\n                                                 (char *)(addr))\n#  define BIO_set_conn_ip_family(b,f)   BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)\n#  define BIO_get_conn_hostname(b)      ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))\n#  define BIO_get_conn_port(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))\n#  define BIO_get_conn_address(b)       ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))\n#  define BIO_get_conn_ip_family(b)     BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)\n#  define BIO_set_conn_mode(b,n)        BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)\n\n/* BIO_s_accept() */\n#  define BIO_set_accept_name(b,name)   BIO_ctrl(b,BIO_C_SET_ACCEPT,0, \\\n                                                 (char *)(name))\n#  define BIO_set_accept_port(b,port)   BIO_ctrl(b,BIO_C_SET_ACCEPT,1, \\\n                                                 (char *)(port))\n#  define BIO_get_accept_name(b)        ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))\n#  define BIO_get_accept_port(b)        ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))\n#  define BIO_get_peer_name(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))\n#  define BIO_get_peer_port(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))\n/* #define BIO_set_nbio(b,n)    BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */\n#  define BIO_set_nbio_accept(b,n)      BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(void *)\"a\":NULL)\n#  define BIO_set_accept_bios(b,bio)    BIO_ctrl(b,BIO_C_SET_ACCEPT,3, \\\n                                                 (char *)(bio))\n#  define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)\n#  define BIO_get_accept_ip_family(b)   BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)\n\n/* Aliases kept for backward compatibility */\n#  define BIO_BIND_NORMAL                 0\n#  define BIO_BIND_REUSEADDR              BIO_SOCK_REUSEADDR\n#  define BIO_BIND_REUSEADDR_IF_UNUSED    BIO_SOCK_REUSEADDR\n#  define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)\n#  define BIO_get_bind_mode(b)    BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)\n\n/* BIO_s_accept() and BIO_s_connect() */\n#  define BIO_do_connect(b)       BIO_do_handshake(b)\n#  define BIO_do_accept(b)        BIO_do_handshake(b)\n# endif /* OPENSSL_NO_SOCK */\n\n# define BIO_do_handshake(b)     BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)\n\n/* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() */\n# define BIO_set_fd(b,fd,c)      BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)\n# define BIO_get_fd(b,c)         BIO_ctrl(b,BIO_C_GET_FD,0,(char *)(c))\n\n/* BIO_s_file() */\n# define BIO_set_fp(b,fp,c)      BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)(fp))\n# define BIO_get_fp(b,fpp)       BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)(fpp))\n\n/* BIO_s_fd() and BIO_s_file() */\n# define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)\n# define BIO_tell(b)     (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)\n\n/*\n * name is cast to lose const, but might be better to route through a\n * function so we can do it safely\n */\n# ifdef CONST_STRICT\n/*\n * If you are wondering why this isn't defined, its because CONST_STRICT is\n * purely a compile-time kludge to allow const to be checked.\n */\nint BIO_read_filename(BIO *b, const char *name);\n# else\n#  define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_READ,(char *)(name))\n# endif\n# define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_WRITE,name)\n# define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_APPEND,name)\n# define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)\n\n/*\n * WARNING WARNING, this ups the reference count on the read bio of the SSL\n * structure.  This is because the ssl read BIO is now pointed to by the\n * next_bio field in the bio.  So when you free the BIO, make sure you are\n * doing a BIO_free_all() to catch the underlying BIO.\n */\n# define BIO_set_ssl(b,ssl,c)    BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)(ssl))\n# define BIO_get_ssl(b,sslp)     BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)(sslp))\n# define BIO_set_ssl_mode(b,client)      BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)\n# define BIO_set_ssl_renegotiate_bytes(b,num) \\\n        BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)\n# define BIO_get_num_renegotiates(b) \\\n        BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)\n# define BIO_set_ssl_renegotiate_timeout(b,seconds) \\\n        BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)\n\n/* defined in evp.h */\n/* #define BIO_set_md(b,md)     BIO_ctrl(b,BIO_C_SET_MD,1,(char *)(md)) */\n\n# define BIO_get_mem_data(b,pp)  BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)(pp))\n# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)(bm))\n# define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0, \\\n                                          (char *)(pp))\n# define BIO_set_mem_eof_return(b,v) \\\n                                BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)\n\n/* For the BIO_f_buffer() type */\n# define BIO_get_buffer_num_lines(b)     BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)\n# define BIO_set_buffer_size(b,size)     BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)\n# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)\n# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)\n# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)\n\n/* Don't use the next one unless you know what you are doing :-) */\n# define BIO_dup_state(b,ret)    BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))\n\n# define BIO_reset(b)            (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)\n# define BIO_eof(b)              (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)\n# define BIO_set_close(b,c)      (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)\n# define BIO_get_close(b)        (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)\n# define BIO_pending(b)          (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)\n# define BIO_wpending(b)         (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)\n/* ...pending macros have inappropriate return type */\nsize_t BIO_ctrl_pending(BIO *b);\nsize_t BIO_ctrl_wpending(BIO *b);\n# define BIO_flush(b)            (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)\n# define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \\\n                                                   cbp)\n# define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)\n\n/* For the BIO_f_buffer() type */\n# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)\n# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))\n\n/* For BIO_s_bio() */\n# define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)\n# define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)\n# define BIO_make_bio_pair(b1,b2)   (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)\n# define BIO_destroy_bio_pair(b)    (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)\n# define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)\n/* macros with inappropriate type -- but ...pending macros use int too: */\n# define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)\n# define BIO_get_read_request(b)    (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)\nsize_t BIO_ctrl_get_write_guarantee(BIO *b);\nsize_t BIO_ctrl_get_read_request(BIO *b);\nint BIO_ctrl_reset_read_request(BIO *b);\n\n/* ctrl macros for dgram */\n# define BIO_ctrl_dgram_connect(b,peer)  \\\n                     (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)(peer))\n# define BIO_ctrl_set_connected(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char *)(peer))\n# define BIO_dgram_recv_timedout(b) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)\n# define BIO_dgram_send_timedout(b) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)\n# define BIO_dgram_get_peer(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)(peer))\n# define BIO_dgram_set_peer(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)(peer))\n# define BIO_dgram_get_mtu_overhead(b) \\\n         (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, NULL)\n\n#define BIO_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef)\nint BIO_set_ex_data(BIO *bio, int idx, void *data);\nvoid *BIO_get_ex_data(BIO *bio, int idx);\nuint64_t BIO_number_read(BIO *bio);\nuint64_t BIO_number_written(BIO *bio);\n\n/* For BIO_f_asn1() */\nint BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix,\n                        asn1_ps_func *prefix_free);\nint BIO_asn1_get_prefix(BIO *b, asn1_ps_func **pprefix,\n                        asn1_ps_func **pprefix_free);\nint BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix,\n                        asn1_ps_func *suffix_free);\nint BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,\n                        asn1_ps_func **psuffix_free);\n\nconst BIO_METHOD *BIO_s_file(void);\nBIO *BIO_new_file(const char *filename, const char *mode);\n# ifndef OPENSSL_NO_STDIO\nBIO *BIO_new_fp(FILE *stream, int close_flag);\n# endif\nBIO *BIO_new(const BIO_METHOD *type);\nint BIO_free(BIO *a);\nvoid BIO_set_data(BIO *a, void *ptr);\nvoid *BIO_get_data(BIO *a);\nvoid BIO_set_init(BIO *a, int init);\nint BIO_get_init(BIO *a);\nvoid BIO_set_shutdown(BIO *a, int shut);\nint BIO_get_shutdown(BIO *a);\nvoid BIO_vfree(BIO *a);\nint BIO_up_ref(BIO *a);\nint BIO_read(BIO *b, void *data, int dlen);\nint BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);\nint BIO_gets(BIO *bp, char *buf, int size);\nint BIO_write(BIO *b, const void *data, int dlen);\nint BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written);\nint BIO_puts(BIO *bp, const char *buf);\nint BIO_indent(BIO *b, int indent, int max);\nlong BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);\nlong BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);\nvoid *BIO_ptr_ctrl(BIO *bp, int cmd, long larg);\nlong BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg);\nBIO *BIO_push(BIO *b, BIO *append);\nBIO *BIO_pop(BIO *b);\nvoid BIO_free_all(BIO *a);\nBIO *BIO_find_type(BIO *b, int bio_type);\nBIO *BIO_next(BIO *b);\nvoid BIO_set_next(BIO *b, BIO *next);\nBIO *BIO_get_retry_BIO(BIO *bio, int *reason);\nint BIO_get_retry_reason(BIO *bio);\nvoid BIO_set_retry_reason(BIO *bio, int reason);\nBIO *BIO_dup_chain(BIO *in);\n\nint BIO_nread0(BIO *bio, char **buf);\nint BIO_nread(BIO *bio, char **buf, int num);\nint BIO_nwrite0(BIO *bio, char **buf);\nint BIO_nwrite(BIO *bio, char **buf, int num);\n\nlong BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi,\n                        long argl, long ret);\n\nconst BIO_METHOD *BIO_s_mem(void);\nconst BIO_METHOD *BIO_s_secmem(void);\nBIO *BIO_new_mem_buf(const void *buf, int len);\n# ifndef OPENSSL_NO_SOCK\nconst BIO_METHOD *BIO_s_socket(void);\nconst BIO_METHOD *BIO_s_connect(void);\nconst BIO_METHOD *BIO_s_accept(void);\n# endif\nconst BIO_METHOD *BIO_s_fd(void);\nconst BIO_METHOD *BIO_s_log(void);\nconst BIO_METHOD *BIO_s_bio(void);\nconst BIO_METHOD *BIO_s_null(void);\nconst BIO_METHOD *BIO_f_null(void);\nconst BIO_METHOD *BIO_f_buffer(void);\nconst BIO_METHOD *BIO_f_linebuffer(void);\nconst BIO_METHOD *BIO_f_nbio_test(void);\n# ifndef OPENSSL_NO_DGRAM\nconst BIO_METHOD *BIO_s_datagram(void);\nint BIO_dgram_non_fatal_error(int error);\nBIO *BIO_new_dgram(int fd, int close_flag);\n#  ifndef OPENSSL_NO_SCTP\nconst BIO_METHOD *BIO_s_datagram_sctp(void);\nBIO *BIO_new_dgram_sctp(int fd, int close_flag);\nint BIO_dgram_is_sctp(BIO *bio);\nint BIO_dgram_sctp_notification_cb(BIO *b,\n                                   void (*handle_notifications) (BIO *bio,\n                                                                 void *context,\n                                                                 void *buf),\n                                   void *context);\nint BIO_dgram_sctp_wait_for_dry(BIO *b);\nint BIO_dgram_sctp_msg_waiting(BIO *b);\n#  endif\n# endif\n\n# ifndef OPENSSL_NO_SOCK\nint BIO_sock_should_retry(int i);\nint BIO_sock_non_fatal_error(int error);\n# endif\n\nint BIO_fd_should_retry(int i);\nint BIO_fd_non_fatal_error(int error);\nint BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u),\n                void *u, const char *s, int len);\nint BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),\n                       void *u, const char *s, int len, int indent);\nint BIO_dump(BIO *b, const char *bytes, int len);\nint BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);\n# ifndef OPENSSL_NO_STDIO\nint BIO_dump_fp(FILE *fp, const char *s, int len);\nint BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent);\n# endif\nint BIO_hex_string(BIO *out, int indent, int width, unsigned char *data,\n                   int datalen);\n\n# ifndef OPENSSL_NO_SOCK\nBIO_ADDR *BIO_ADDR_new(void);\nint BIO_ADDR_rawmake(BIO_ADDR *ap, int family,\n                     const void *where, size_t wherelen, unsigned short port);\nvoid BIO_ADDR_free(BIO_ADDR *);\nvoid BIO_ADDR_clear(BIO_ADDR *ap);\nint BIO_ADDR_family(const BIO_ADDR *ap);\nint BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);\nunsigned short BIO_ADDR_rawport(const BIO_ADDR *ap);\nchar *BIO_ADDR_hostname_string(const BIO_ADDR *ap, int numeric);\nchar *BIO_ADDR_service_string(const BIO_ADDR *ap, int numeric);\nchar *BIO_ADDR_path_string(const BIO_ADDR *ap);\n\nconst BIO_ADDRINFO *BIO_ADDRINFO_next(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_family(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_socktype(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_protocol(const BIO_ADDRINFO *bai);\nconst BIO_ADDR *BIO_ADDRINFO_address(const BIO_ADDRINFO *bai);\nvoid BIO_ADDRINFO_free(BIO_ADDRINFO *bai);\n\nenum BIO_hostserv_priorities {\n    BIO_PARSE_PRIO_HOST, BIO_PARSE_PRIO_SERV\n};\nint BIO_parse_hostserv(const char *hostserv, char **host, char **service,\n                       enum BIO_hostserv_priorities hostserv_prio);\nenum BIO_lookup_type {\n    BIO_LOOKUP_CLIENT, BIO_LOOKUP_SERVER\n};\nint BIO_lookup(const char *host, const char *service,\n               enum BIO_lookup_type lookup_type,\n               int family, int socktype, BIO_ADDRINFO **res);\nint BIO_lookup_ex(const char *host, const char *service,\n                  int lookup_type, int family, int socktype, int protocol,\n                  BIO_ADDRINFO **res);\nint BIO_sock_error(int sock);\nint BIO_socket_ioctl(int fd, long type, void *arg);\nint BIO_socket_nbio(int fd, int mode);\nint BIO_sock_init(void);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define BIO_sock_cleanup() while(0) continue\n# endif\nint BIO_set_tcp_ndelay(int sock, int turn_on);\n\nDEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))\nDEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))\nDEPRECATEDIN_1_1_0(int BIO_get_host_ip(const char *str, unsigned char *ip))\nDEPRECATEDIN_1_1_0(int BIO_get_accept_socket(char *host_port, int mode))\nDEPRECATEDIN_1_1_0(int BIO_accept(int sock, char **ip_port))\n\nunion BIO_sock_info_u {\n    BIO_ADDR *addr;\n};\nenum BIO_sock_info_type {\n    BIO_SOCK_INFO_ADDRESS\n};\nint BIO_sock_info(int sock,\n                  enum BIO_sock_info_type type, union BIO_sock_info_u *info);\n\n#  define BIO_SOCK_REUSEADDR    0x01\n#  define BIO_SOCK_V6_ONLY      0x02\n#  define BIO_SOCK_KEEPALIVE    0x04\n#  define BIO_SOCK_NONBLOCK     0x08\n#  define BIO_SOCK_NODELAY      0x10\n\nint BIO_socket(int domain, int socktype, int protocol, int options);\nint BIO_connect(int sock, const BIO_ADDR *addr, int options);\nint BIO_bind(int sock, const BIO_ADDR *addr, int options);\nint BIO_listen(int sock, const BIO_ADDR *addr, int options);\nint BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options);\nint BIO_closesocket(int sock);\n\nBIO *BIO_new_socket(int sock, int close_flag);\nBIO *BIO_new_connect(const char *host_port);\nBIO *BIO_new_accept(const char *host_port);\n# endif /* OPENSSL_NO_SOCK*/\n\nBIO *BIO_new_fd(int fd, int close_flag);\n\nint BIO_new_bio_pair(BIO **bio1, size_t writebuf1,\n                     BIO **bio2, size_t writebuf2);\n/*\n * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.\n * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default\n * value.\n */\n\nvoid BIO_copy_next_retry(BIO *b);\n\n/*\n * long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);\n */\n\n# define ossl_bio__attr__(x)\n# if defined(__GNUC__) && defined(__STDC_VERSION__) \\\n    && !defined(__APPLE__)\n    /*\n     * Because we support the 'z' modifier, which made its appearance in C99,\n     * we can't use __attribute__ with pre C99 dialects.\n     */\n#  if __STDC_VERSION__ >= 199901L\n#   undef ossl_bio__attr__\n#   define ossl_bio__attr__ __attribute__\n#   if __GNUC__*10 + __GNUC_MINOR__ >= 44\n#    define ossl_bio__printf__ __gnu_printf__\n#   else\n#    define ossl_bio__printf__ __printf__\n#   endif\n#  endif\n# endif\nint BIO_printf(BIO *bio, const char *format, ...)\nossl_bio__attr__((__format__(ossl_bio__printf__, 2, 3)));\nint BIO_vprintf(BIO *bio, const char *format, va_list args)\nossl_bio__attr__((__format__(ossl_bio__printf__, 2, 0)));\nint BIO_snprintf(char *buf, size_t n, const char *format, ...)\nossl_bio__attr__((__format__(ossl_bio__printf__, 3, 4)));\nint BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)\nossl_bio__attr__((__format__(ossl_bio__printf__, 3, 0)));\n# undef ossl_bio__attr__\n# undef ossl_bio__printf__\n\n\nBIO_METHOD *BIO_meth_new(int type, const char *name);\nvoid BIO_meth_free(BIO_METHOD *biom);\nint (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int);\nint (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, size_t,\n                                                size_t *);\nint BIO_meth_set_write(BIO_METHOD *biom,\n                       int (*write) (BIO *, const char *, int));\nint BIO_meth_set_write_ex(BIO_METHOD *biom,\n                       int (*bwrite) (BIO *, const char *, size_t, size_t *));\nint (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int);\nint (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, size_t, size_t *);\nint BIO_meth_set_read(BIO_METHOD *biom,\n                      int (*read) (BIO *, char *, int));\nint BIO_meth_set_read_ex(BIO_METHOD *biom,\n                         int (*bread) (BIO *, char *, size_t, size_t *));\nint (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *);\nint BIO_meth_set_puts(BIO_METHOD *biom,\n                      int (*puts) (BIO *, const char *));\nint (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int);\nint BIO_meth_set_gets(BIO_METHOD *biom,\n                      int (*gets) (BIO *, char *, int));\nlong (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *);\nint BIO_meth_set_ctrl(BIO_METHOD *biom,\n                      long (*ctrl) (BIO *, int, long, void *));\nint (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *);\nint BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *));\nint (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *);\nint BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *));\nlong (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))\n                                 (BIO *, int, BIO_info_cb *);\nint BIO_meth_set_callback_ctrl(BIO_METHOD *biom,\n                               long (*callback_ctrl) (BIO *, int,\n                                                      BIO_info_cb *));\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/bioerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BIOERR_H\n# define HEADER_BIOERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BIO_strings(void);\n\n/*\n * BIO function codes.\n */\n# define BIO_F_ACPT_STATE                                 100\n# define BIO_F_ADDRINFO_WRAP                              148\n# define BIO_F_ADDR_STRINGS                               134\n# define BIO_F_BIO_ACCEPT                                 101\n# define BIO_F_BIO_ACCEPT_EX                              137\n# define BIO_F_BIO_ACCEPT_NEW                             152\n# define BIO_F_BIO_ADDR_NEW                               144\n# define BIO_F_BIO_BIND                                   147\n# define BIO_F_BIO_CALLBACK_CTRL                          131\n# define BIO_F_BIO_CONNECT                                138\n# define BIO_F_BIO_CONNECT_NEW                            153\n# define BIO_F_BIO_CTRL                                   103\n# define BIO_F_BIO_GETS                                   104\n# define BIO_F_BIO_GET_HOST_IP                            106\n# define BIO_F_BIO_GET_NEW_INDEX                          102\n# define BIO_F_BIO_GET_PORT                               107\n# define BIO_F_BIO_LISTEN                                 139\n# define BIO_F_BIO_LOOKUP                                 135\n# define BIO_F_BIO_LOOKUP_EX                              143\n# define BIO_F_BIO_MAKE_PAIR                              121\n# define BIO_F_BIO_METH_NEW                               146\n# define BIO_F_BIO_NEW                                    108\n# define BIO_F_BIO_NEW_DGRAM_SCTP                         145\n# define BIO_F_BIO_NEW_FILE                               109\n# define BIO_F_BIO_NEW_MEM_BUF                            126\n# define BIO_F_BIO_NREAD                                  123\n# define BIO_F_BIO_NREAD0                                 124\n# define BIO_F_BIO_NWRITE                                 125\n# define BIO_F_BIO_NWRITE0                                122\n# define BIO_F_BIO_PARSE_HOSTSERV                         136\n# define BIO_F_BIO_PUTS                                   110\n# define BIO_F_BIO_READ                                   111\n# define BIO_F_BIO_READ_EX                                105\n# define BIO_F_BIO_READ_INTERN                            120\n# define BIO_F_BIO_SOCKET                                 140\n# define BIO_F_BIO_SOCKET_NBIO                            142\n# define BIO_F_BIO_SOCK_INFO                              141\n# define BIO_F_BIO_SOCK_INIT                              112\n# define BIO_F_BIO_WRITE                                  113\n# define BIO_F_BIO_WRITE_EX                               119\n# define BIO_F_BIO_WRITE_INTERN                           128\n# define BIO_F_BUFFER_CTRL                                114\n# define BIO_F_CONN_CTRL                                  127\n# define BIO_F_CONN_STATE                                 115\n# define BIO_F_DGRAM_SCTP_NEW                             149\n# define BIO_F_DGRAM_SCTP_READ                            132\n# define BIO_F_DGRAM_SCTP_WRITE                           133\n# define BIO_F_DOAPR_OUTCH                                150\n# define BIO_F_FILE_CTRL                                  116\n# define BIO_F_FILE_READ                                  130\n# define BIO_F_LINEBUFFER_CTRL                            129\n# define BIO_F_LINEBUFFER_NEW                             151\n# define BIO_F_MEM_WRITE                                  117\n# define BIO_F_NBIOF_NEW                                  154\n# define BIO_F_SLG_WRITE                                  155\n# define BIO_F_SSL_NEW                                    118\n\n/*\n * BIO reason codes.\n */\n# define BIO_R_ACCEPT_ERROR                               100\n# define BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET               141\n# define BIO_R_AMBIGUOUS_HOST_OR_SERVICE                  129\n# define BIO_R_BAD_FOPEN_MODE                             101\n# define BIO_R_BROKEN_PIPE                                124\n# define BIO_R_CONNECT_ERROR                              103\n# define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET          107\n# define BIO_R_GETSOCKNAME_ERROR                          132\n# define BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS              133\n# define BIO_R_GETTING_SOCKTYPE                           134\n# define BIO_R_INVALID_ARGUMENT                           125\n# define BIO_R_INVALID_SOCKET                             135\n# define BIO_R_IN_USE                                     123\n# define BIO_R_LENGTH_TOO_LONG                            102\n# define BIO_R_LISTEN_V6_ONLY                             136\n# define BIO_R_LOOKUP_RETURNED_NOTHING                    142\n# define BIO_R_MALFORMED_HOST_OR_SERVICE                  130\n# define BIO_R_NBIO_CONNECT_ERROR                         110\n# define BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED        143\n# define BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED           144\n# define BIO_R_NO_PORT_DEFINED                            113\n# define BIO_R_NO_SUCH_FILE                               128\n# define BIO_R_NULL_PARAMETER                             115\n# define BIO_R_UNABLE_TO_BIND_SOCKET                      117\n# define BIO_R_UNABLE_TO_CREATE_SOCKET                    118\n# define BIO_R_UNABLE_TO_KEEPALIVE                        137\n# define BIO_R_UNABLE_TO_LISTEN_SOCKET                    119\n# define BIO_R_UNABLE_TO_NODELAY                          138\n# define BIO_R_UNABLE_TO_REUSEADDR                        139\n# define BIO_R_UNAVAILABLE_IP_FAMILY                      145\n# define BIO_R_UNINITIALIZED                              120\n# define BIO_R_UNKNOWN_INFO_TYPE                          140\n# define BIO_R_UNSUPPORTED_IP_FAMILY                      146\n# define BIO_R_UNSUPPORTED_METHOD                         121\n# define BIO_R_UNSUPPORTED_PROTOCOL_FAMILY                131\n# define BIO_R_WRITE_TO_READ_ONLY_BIO                     126\n# define BIO_R_WSASTARTUP                                 122\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/blowfish.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BLOWFISH_H\n# define HEADER_BLOWFISH_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_BF\n# include <openssl/e_os2.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define BF_ENCRYPT      1\n# define BF_DECRYPT      0\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! BF_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define BF_LONG unsigned int\n\n# define BF_ROUNDS       16\n# define BF_BLOCK        8\n\ntypedef struct bf_key_st {\n    BF_LONG P[BF_ROUNDS + 2];\n    BF_LONG S[4 * 256];\n} BF_KEY;\n\nvoid BF_set_key(BF_KEY *key, int len, const unsigned char *data);\n\nvoid BF_encrypt(BF_LONG *data, const BF_KEY *key);\nvoid BF_decrypt(BF_LONG *data, const BF_KEY *key);\n\nvoid BF_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                    const BF_KEY *key, int enc);\nvoid BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,\n                    const BF_KEY *schedule, unsigned char *ivec, int enc);\nvoid BF_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const BF_KEY *schedule,\n                      unsigned char *ivec, int *num, int enc);\nvoid BF_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const BF_KEY *schedule,\n                      unsigned char *ivec, int *num);\nconst char *BF_options(void);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/bn.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BN_H\n# define HEADER_BN_H\n\n# include <openssl/e_os2.h>\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n# include <openssl/opensslconf.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/crypto.h>\n# include <openssl/bnerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * 64-bit processor with LP64 ABI\n */\n# ifdef SIXTY_FOUR_BIT_LONG\n#  define BN_ULONG        unsigned long\n#  define BN_BYTES        8\n# endif\n\n/*\n * 64-bit processor other than LP64 ABI\n */\n# ifdef SIXTY_FOUR_BIT\n#  define BN_ULONG        unsigned long long\n#  define BN_BYTES        8\n# endif\n\n# ifdef THIRTY_TWO_BIT\n#  define BN_ULONG        unsigned int\n#  define BN_BYTES        4\n# endif\n\n# define BN_BITS2       (BN_BYTES * 8)\n# define BN_BITS        (BN_BITS2 * 2)\n# define BN_TBIT        ((BN_ULONG)1 << (BN_BITS2 - 1))\n\n# define BN_FLG_MALLOCED         0x01\n# define BN_FLG_STATIC_DATA      0x02\n\n/*\n * avoid leaking exponent information through timing,\n * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,\n * BN_div() will call BN_div_no_branch,\n * BN_mod_inverse() will call bn_mod_inverse_no_branch.\n */\n# define BN_FLG_CONSTTIME        0x04\n# define BN_FLG_SECURE           0x08\n\n# if OPENSSL_API_COMPAT < 0x00908000L\n/* deprecated name for the flag */\n#  define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME\n#  define BN_FLG_FREE            0x8000 /* used for debugging */\n# endif\n\nvoid BN_set_flags(BIGNUM *b, int n);\nint BN_get_flags(const BIGNUM *b, int n);\n\n/* Values for |top| in BN_rand() */\n#define BN_RAND_TOP_ANY    -1\n#define BN_RAND_TOP_ONE     0\n#define BN_RAND_TOP_TWO     1\n\n/* Values for |bottom| in BN_rand() */\n#define BN_RAND_BOTTOM_ANY  0\n#define BN_RAND_BOTTOM_ODD  1\n\n/*\n * get a clone of a BIGNUM with changed flags, for *temporary* use only (the\n * two BIGNUMs cannot be used in parallel!). Also only for *read only* use. The\n * value |dest| should be a newly allocated BIGNUM obtained via BN_new() that\n * has not been otherwise initialised or used.\n */\nvoid BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags);\n\n/* Wrapper function to make using BN_GENCB easier */\nint BN_GENCB_call(BN_GENCB *cb, int a, int b);\n\nBN_GENCB *BN_GENCB_new(void);\nvoid BN_GENCB_free(BN_GENCB *cb);\n\n/* Populate a BN_GENCB structure with an \"old\"-style callback */\nvoid BN_GENCB_set_old(BN_GENCB *gencb, void (*callback) (int, int, void *),\n                      void *cb_arg);\n\n/* Populate a BN_GENCB structure with a \"new\"-style callback */\nvoid BN_GENCB_set(BN_GENCB *gencb, int (*callback) (int, int, BN_GENCB *),\n                  void *cb_arg);\n\nvoid *BN_GENCB_get_arg(BN_GENCB *cb);\n\n# define BN_prime_checks 0      /* default: select number of iterations based\n                                 * on the size of the number */\n\n/*\n * BN_prime_checks_for_size() returns the number of Miller-Rabin iterations\n * that will be done for checking that a random number is probably prime. The\n * error rate for accepting a composite number as prime depends on the size of\n * the prime |b|. The error rates used are for calculating an RSA key with 2 primes,\n * and so the level is what you would expect for a key of double the size of the\n * prime.\n *\n * This table is generated using the algorithm of FIPS PUB 186-4\n * Digital Signature Standard (DSS), section F.1, page 117.\n * (https://dx.doi.org/10.6028/NIST.FIPS.186-4)\n *\n * The following magma script was used to generate the output:\n * securitybits:=125;\n * k:=1024;\n * for t:=1 to 65 do\n *   for M:=3 to Floor(2*Sqrt(k-1)-1) do\n *     S:=0;\n *     // Sum over m\n *     for m:=3 to M do\n *       s:=0;\n *       // Sum over j\n *       for j:=2 to m do\n *         s+:=(RealField(32)!2)^-(j+(k-1)/j);\n *       end for;\n *       S+:=2^(m-(m-1)*t)*s;\n *     end for;\n *     A:=2^(k-2-M*t);\n *     B:=8*(Pi(RealField(32))^2-6)/3*2^(k-2)*S;\n *     pkt:=2.00743*Log(2)*k*2^-k*(A+B);\n *     seclevel:=Floor(-Log(2,pkt));\n *     if seclevel ge securitybits then\n *       printf \"k: %5o, security: %o bits  (t: %o, M: %o)\\n\",k,seclevel,t,M;\n *       break;\n *     end if;\n *   end for;\n *   if seclevel ge securitybits then break; end if;\n * end for;\n *\n * It can be run online at:\n * http://magma.maths.usyd.edu.au/calc\n *\n * And will output:\n * k:  1024, security: 129 bits  (t: 6, M: 23)\n *\n * k is the number of bits of the prime, securitybits is the level we want to\n * reach.\n *\n * prime length | RSA key size | # MR tests | security level\n * -------------+--------------|------------+---------------\n *  (b) >= 6394 |     >= 12788 |          3 |        256 bit\n *  (b) >= 3747 |     >=  7494 |          3 |        192 bit\n *  (b) >= 1345 |     >=  2690 |          4 |        128 bit\n *  (b) >= 1080 |     >=  2160 |          5 |        128 bit\n *  (b) >=  852 |     >=  1704 |          5 |        112 bit\n *  (b) >=  476 |     >=   952 |          5 |         80 bit\n *  (b) >=  400 |     >=   800 |          6 |         80 bit\n *  (b) >=  347 |     >=   694 |          7 |         80 bit\n *  (b) >=  308 |     >=   616 |          8 |         80 bit\n *  (b) >=   55 |     >=   110 |         27 |         64 bit\n *  (b) >=    6 |     >=    12 |         34 |         64 bit\n */\n\n# define BN_prime_checks_for_size(b) ((b) >= 3747 ?  3 : \\\n                                (b) >=  1345 ?  4 : \\\n                                (b) >=  476 ?  5 : \\\n                                (b) >=  400 ?  6 : \\\n                                (b) >=  347 ?  7 : \\\n                                (b) >=  308 ?  8 : \\\n                                (b) >=  55  ? 27 : \\\n                                /* b >= 6 */ 34)\n\n# define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)\n\nint BN_abs_is_word(const BIGNUM *a, const BN_ULONG w);\nint BN_is_zero(const BIGNUM *a);\nint BN_is_one(const BIGNUM *a);\nint BN_is_word(const BIGNUM *a, const BN_ULONG w);\nint BN_is_odd(const BIGNUM *a);\n\n# define BN_one(a)       (BN_set_word((a),1))\n\nvoid BN_zero_ex(BIGNUM *a);\n\n# if OPENSSL_API_COMPAT >= 0x00908000L\n#  define BN_zero(a)      BN_zero_ex(a)\n# else\n#  define BN_zero(a)      (BN_set_word((a),0))\n# endif\n\nconst BIGNUM *BN_value_one(void);\nchar *BN_options(void);\nBN_CTX *BN_CTX_new(void);\nBN_CTX *BN_CTX_secure_new(void);\nvoid BN_CTX_free(BN_CTX *c);\nvoid BN_CTX_start(BN_CTX *ctx);\nBIGNUM *BN_CTX_get(BN_CTX *ctx);\nvoid BN_CTX_end(BN_CTX *ctx);\nint BN_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_priv_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_num_bits(const BIGNUM *a);\nint BN_num_bits_word(BN_ULONG l);\nint BN_security_bits(int L, int N);\nBIGNUM *BN_new(void);\nBIGNUM *BN_secure_new(void);\nvoid BN_clear_free(BIGNUM *a);\nBIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);\nvoid BN_swap(BIGNUM *a, BIGNUM *b);\nBIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2bin(const BIGNUM *a, unsigned char *to);\nint BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);\nBIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen);\nBIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2mpi(const BIGNUM *a, unsigned char *to);\nint BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);\nint BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);\n/** BN_set_negative sets sign of a BIGNUM\n * \\param  b  pointer to the BIGNUM object\n * \\param  n  0 if the BIGNUM b should be positive and a value != 0 otherwise\n */\nvoid BN_set_negative(BIGNUM *b, int n);\n/** BN_is_negative returns 1 if the BIGNUM is negative\n * \\param  b  pointer to the BIGNUM object\n * \\return 1 if a < 0 and 0 otherwise\n */\nint BN_is_negative(const BIGNUM *b);\n\nint BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,\n           BN_CTX *ctx);\n# define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))\nint BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);\nint BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                     const BIGNUM *m);\nint BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                     const BIGNUM *m);\nint BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m);\nint BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m,\n                  BN_CTX *ctx);\nint BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m);\n\nBN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);\nBN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);\nint BN_mul_word(BIGNUM *a, BN_ULONG w);\nint BN_add_word(BIGNUM *a, BN_ULONG w);\nint BN_sub_word(BIGNUM *a, BN_ULONG w);\nint BN_set_word(BIGNUM *a, BN_ULONG w);\nBN_ULONG BN_get_word(const BIGNUM *a);\n\nint BN_cmp(const BIGNUM *a, const BIGNUM *b);\nvoid BN_free(BIGNUM *a);\nint BN_is_bit_set(const BIGNUM *a, int n);\nint BN_lshift(BIGNUM *r, const BIGNUM *a, int n);\nint BN_lshift1(BIGNUM *r, const BIGNUM *a);\nint BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n\nint BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n               const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                    const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,\n                              const BIGNUM *m, BN_CTX *ctx,\n                              BN_MONT_CTX *in_mont);\nint BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,\n                         const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1,\n                     const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,\n                     BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                      const BIGNUM *m, BN_CTX *ctx);\n\nint BN_mask_bits(BIGNUM *a, int n);\n# ifndef OPENSSL_NO_STDIO\nint BN_print_fp(FILE *fp, const BIGNUM *a);\n# endif\nint BN_print(BIO *bio, const BIGNUM *a);\nint BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);\nint BN_rshift(BIGNUM *r, const BIGNUM *a, int n);\nint BN_rshift1(BIGNUM *r, const BIGNUM *a);\nvoid BN_clear(BIGNUM *a);\nBIGNUM *BN_dup(const BIGNUM *a);\nint BN_ucmp(const BIGNUM *a, const BIGNUM *b);\nint BN_set_bit(BIGNUM *a, int n);\nint BN_clear_bit(BIGNUM *a, int n);\nchar *BN_bn2hex(const BIGNUM *a);\nchar *BN_bn2dec(const BIGNUM *a);\nint BN_hex2bn(BIGNUM **a, const char *str);\nint BN_dec2bn(BIGNUM **a, const char *str);\nint BN_asc2bn(BIGNUM **a, const char *str);\nint BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);\nint BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); /* returns\n                                                                  * -2 for\n                                                                  * error */\nBIGNUM *BN_mod_inverse(BIGNUM *ret,\n                       const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);\nBIGNUM *BN_mod_sqrt(BIGNUM *ret,\n                    const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);\n\nvoid BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);\n\n/* Deprecated versions */\nDEPRECATEDIN_0_9_8(BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,\n                                             const BIGNUM *add,\n                                             const BIGNUM *rem,\n                                             void (*callback) (int, int,\n                                                               void *),\n                                             void *cb_arg))\nDEPRECATEDIN_0_9_8(int\n                   BN_is_prime(const BIGNUM *p, int nchecks,\n                               void (*callback) (int, int, void *),\n                               BN_CTX *ctx, void *cb_arg))\nDEPRECATEDIN_0_9_8(int\n                   BN_is_prime_fasttest(const BIGNUM *p, int nchecks,\n                                        void (*callback) (int, int, void *),\n                                        BN_CTX *ctx, void *cb_arg,\n                                        int do_trial_division))\n\n/* Newer versions */\nint BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add,\n                         const BIGNUM *rem, BN_GENCB *cb);\nint BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);\nint BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx,\n                            int do_trial_division, BN_GENCB *cb);\n\nint BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);\n\nint BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,\n                            const BIGNUM *Xp, const BIGNUM *Xp1,\n                            const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx,\n                            BN_GENCB *cb);\nint BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1,\n                              BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e,\n                              BN_CTX *ctx, BN_GENCB *cb);\n\nBN_MONT_CTX *BN_MONT_CTX_new(void);\nint BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                          BN_MONT_CTX *mont, BN_CTX *ctx);\nint BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,\n                     BN_CTX *ctx);\nint BN_from_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,\n                       BN_CTX *ctx);\nvoid BN_MONT_CTX_free(BN_MONT_CTX *mont);\nint BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);\nBN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, BN_MONT_CTX *from);\nBN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,\n                                    const BIGNUM *mod, BN_CTX *ctx);\n\n/* BN_BLINDING flags */\n# define BN_BLINDING_NO_UPDATE   0x00000001\n# define BN_BLINDING_NO_RECREATE 0x00000002\n\nBN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);\nvoid BN_BLINDING_free(BN_BLINDING *b);\nint BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);\nint BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b,\n                          BN_CTX *);\n\nint BN_BLINDING_is_current_thread(BN_BLINDING *b);\nvoid BN_BLINDING_set_current_thread(BN_BLINDING *b);\nint BN_BLINDING_lock(BN_BLINDING *b);\nint BN_BLINDING_unlock(BN_BLINDING *b);\n\nunsigned long BN_BLINDING_get_flags(const BN_BLINDING *);\nvoid BN_BLINDING_set_flags(BN_BLINDING *, unsigned long);\nBN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,\n                                      const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,\n                                      int (*bn_mod_exp) (BIGNUM *r,\n                                                         const BIGNUM *a,\n                                                         const BIGNUM *p,\n                                                         const BIGNUM *m,\n                                                         BN_CTX *ctx,\n                                                         BN_MONT_CTX *m_ctx),\n                                      BN_MONT_CTX *m_ctx);\n\nDEPRECATEDIN_0_9_8(void BN_set_params(int mul, int high, int low, int mont))\nDEPRECATEDIN_0_9_8(int BN_get_params(int which)) /* 0, mul, 1 high, 2 low, 3\n                                                  * mont */\n\nBN_RECP_CTX *BN_RECP_CTX_new(void);\nvoid BN_RECP_CTX_free(BN_RECP_CTX *recp);\nint BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx);\nint BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,\n                          BN_RECP_CTX *recp, BN_CTX *ctx);\nint BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                    const BIGNUM *m, BN_CTX *ctx);\nint BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,\n                BN_RECP_CTX *recp, BN_CTX *ctx);\n\n# ifndef OPENSSL_NO_EC2M\n\n/*\n * Functions for arithmetic over binary polynomials represented by BIGNUMs.\n * The BIGNUM::neg property of BIGNUMs representing binary polynomials is\n * ignored. Note that input arguments are not const so that their bit arrays\n * can be expanded to the appropriate size if needed.\n */\n\n/*\n * r = a + b\n */\nint BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\n#  define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b)\n/*\n * r=a mod p\n */\nint BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p);\n/* r = (a * b) mod p */\nint BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = (a * a) mod p */\nint BN_GF2m_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n/* r = (1 / b) mod p */\nint BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx);\n/* r = (a / b) mod p */\nint BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = (a ^ b) mod p */\nint BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = sqrt(a) mod p */\nint BN_GF2m_mod_sqrt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                     BN_CTX *ctx);\n/* r^2 + r = a mod p */\nint BN_GF2m_mod_solve_quad(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                           BN_CTX *ctx);\n#  define BN_GF2m_cmp(a, b) BN_ucmp((a), (b))\n/*-\n * Some functions allow for representation of the irreducible polynomials\n * as an unsigned int[], say p.  The irreducible f(t) is then of the form:\n *     t^p[0] + t^p[1] + ... + t^p[k]\n * where m = p[0] > p[1] > ... > p[k] = 0.\n */\n/* r = a mod p */\nint BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[]);\n/* r = (a * b) mod p */\nint BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = (a * a) mod p */\nint BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const int p[],\n                        BN_CTX *ctx);\n/* r = (1 / b) mod p */\nint BN_GF2m_mod_inv_arr(BIGNUM *r, const BIGNUM *b, const int p[],\n                        BN_CTX *ctx);\n/* r = (a / b) mod p */\nint BN_GF2m_mod_div_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = (a ^ b) mod p */\nint BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = sqrt(a) mod p */\nint BN_GF2m_mod_sqrt_arr(BIGNUM *r, const BIGNUM *a,\n                         const int p[], BN_CTX *ctx);\n/* r^2 + r = a mod p */\nint BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a,\n                               const int p[], BN_CTX *ctx);\nint BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max);\nint BN_GF2m_arr2poly(const int p[], BIGNUM *a);\n\n# endif\n\n/*\n * faster mod functions for the 'NIST primes' 0 <= a < p^2\n */\nint BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n\nconst BIGNUM *BN_get0_nist_prime_192(void);\nconst BIGNUM *BN_get0_nist_prime_224(void);\nconst BIGNUM *BN_get0_nist_prime_256(void);\nconst BIGNUM *BN_get0_nist_prime_384(void);\nconst BIGNUM *BN_get0_nist_prime_521(void);\n\nint (*BN_nist_mod_func(const BIGNUM *p)) (BIGNUM *r, const BIGNUM *a,\n                                          const BIGNUM *field, BN_CTX *ctx);\n\nint BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,\n                          const BIGNUM *priv, const unsigned char *message,\n                          size_t message_len, BN_CTX *ctx);\n\n/* Primes from RFC 2409 */\nBIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);\nBIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);\n\n/* Primes from RFC 3526 */\nBIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define get_rfc2409_prime_768 BN_get_rfc2409_prime_768\n#  define get_rfc2409_prime_1024 BN_get_rfc2409_prime_1024\n#  define get_rfc3526_prime_1536 BN_get_rfc3526_prime_1536\n#  define get_rfc3526_prime_2048 BN_get_rfc3526_prime_2048\n#  define get_rfc3526_prime_3072 BN_get_rfc3526_prime_3072\n#  define get_rfc3526_prime_4096 BN_get_rfc3526_prime_4096\n#  define get_rfc3526_prime_6144 BN_get_rfc3526_prime_6144\n#  define get_rfc3526_prime_8192 BN_get_rfc3526_prime_8192\n# endif\n\nint BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/bnerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BNERR_H\n# define HEADER_BNERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BN_strings(void);\n\n/*\n * BN function codes.\n */\n# define BN_F_BNRAND                                      127\n# define BN_F_BNRAND_RANGE                                138\n# define BN_F_BN_BLINDING_CONVERT_EX                      100\n# define BN_F_BN_BLINDING_CREATE_PARAM                    128\n# define BN_F_BN_BLINDING_INVERT_EX                       101\n# define BN_F_BN_BLINDING_NEW                             102\n# define BN_F_BN_BLINDING_UPDATE                          103\n# define BN_F_BN_BN2DEC                                   104\n# define BN_F_BN_BN2HEX                                   105\n# define BN_F_BN_COMPUTE_WNAF                             142\n# define BN_F_BN_CTX_GET                                  116\n# define BN_F_BN_CTX_NEW                                  106\n# define BN_F_BN_CTX_START                                129\n# define BN_F_BN_DIV                                      107\n# define BN_F_BN_DIV_RECP                                 130\n# define BN_F_BN_EXP                                      123\n# define BN_F_BN_EXPAND_INTERNAL                          120\n# define BN_F_BN_GENCB_NEW                                143\n# define BN_F_BN_GENERATE_DSA_NONCE                       140\n# define BN_F_BN_GENERATE_PRIME_EX                        141\n# define BN_F_BN_GF2M_MOD                                 131\n# define BN_F_BN_GF2M_MOD_EXP                             132\n# define BN_F_BN_GF2M_MOD_MUL                             133\n# define BN_F_BN_GF2M_MOD_SOLVE_QUAD                      134\n# define BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR                  135\n# define BN_F_BN_GF2M_MOD_SQR                             136\n# define BN_F_BN_GF2M_MOD_SQRT                            137\n# define BN_F_BN_LSHIFT                                   145\n# define BN_F_BN_MOD_EXP2_MONT                            118\n# define BN_F_BN_MOD_EXP_MONT                             109\n# define BN_F_BN_MOD_EXP_MONT_CONSTTIME                   124\n# define BN_F_BN_MOD_EXP_MONT_WORD                        117\n# define BN_F_BN_MOD_EXP_RECP                             125\n# define BN_F_BN_MOD_EXP_SIMPLE                           126\n# define BN_F_BN_MOD_INVERSE                              110\n# define BN_F_BN_MOD_INVERSE_NO_BRANCH                    139\n# define BN_F_BN_MOD_LSHIFT_QUICK                         119\n# define BN_F_BN_MOD_SQRT                                 121\n# define BN_F_BN_MONT_CTX_NEW                             149\n# define BN_F_BN_MPI2BN                                   112\n# define BN_F_BN_NEW                                      113\n# define BN_F_BN_POOL_GET                                 147\n# define BN_F_BN_RAND                                     114\n# define BN_F_BN_RAND_RANGE                               122\n# define BN_F_BN_RECP_CTX_NEW                             150\n# define BN_F_BN_RSHIFT                                   146\n# define BN_F_BN_SET_WORDS                                144\n# define BN_F_BN_STACK_PUSH                               148\n# define BN_F_BN_USUB                                     115\n\n/*\n * BN reason codes.\n */\n# define BN_R_ARG2_LT_ARG3                                100\n# define BN_R_BAD_RECIPROCAL                              101\n# define BN_R_BIGNUM_TOO_LONG                             114\n# define BN_R_BITS_TOO_SMALL                              118\n# define BN_R_CALLED_WITH_EVEN_MODULUS                    102\n# define BN_R_DIV_BY_ZERO                                 103\n# define BN_R_ENCODING_ERROR                              104\n# define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA                105\n# define BN_R_INPUT_NOT_REDUCED                           110\n# define BN_R_INVALID_LENGTH                              106\n# define BN_R_INVALID_RANGE                               115\n# define BN_R_INVALID_SHIFT                               119\n# define BN_R_NOT_A_SQUARE                                111\n# define BN_R_NOT_INITIALIZED                             107\n# define BN_R_NO_INVERSE                                  108\n# define BN_R_NO_SOLUTION                                 116\n# define BN_R_PRIVATE_KEY_TOO_LARGE                       117\n# define BN_R_P_IS_NOT_PRIME                              112\n# define BN_R_TOO_MANY_ITERATIONS                         113\n# define BN_R_TOO_MANY_TEMPORARY_VARIABLES                109\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/buffer.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BUFFER_H\n# define HEADER_BUFFER_H\n\n# include <openssl/ossl_typ.h>\n# ifndef HEADER_CRYPTO_H\n#  include <openssl/crypto.h>\n# endif\n# include <openssl/buffererr.h>\n\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# include <stddef.h>\n# include <sys/types.h>\n\n/*\n * These names are outdated as of OpenSSL 1.1; a future release\n * will move them to be deprecated.\n */\n# define BUF_strdup(s) OPENSSL_strdup(s)\n# define BUF_strndup(s, size) OPENSSL_strndup(s, size)\n# define BUF_memdup(data, size) OPENSSL_memdup(data, size)\n# define BUF_strlcpy(dst, src, size)  OPENSSL_strlcpy(dst, src, size)\n# define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size)\n# define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen)\n\nstruct buf_mem_st {\n    size_t length;              /* current number of bytes */\n    char *data;\n    size_t max;                 /* size of buffer */\n    unsigned long flags;\n};\n\n# define BUF_MEM_FLAG_SECURE  0x01\n\nBUF_MEM *BUF_MEM_new(void);\nBUF_MEM *BUF_MEM_new_ex(unsigned long flags);\nvoid BUF_MEM_free(BUF_MEM *a);\nsize_t BUF_MEM_grow(BUF_MEM *str, size_t len);\nsize_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len);\nvoid BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/buffererr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BUFERR_H\n# define HEADER_BUFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BUF_strings(void);\n\n/*\n * BUF function codes.\n */\n# define BUF_F_BUF_MEM_GROW                               100\n# define BUF_F_BUF_MEM_GROW_CLEAN                         105\n# define BUF_F_BUF_MEM_NEW                                101\n\n/*\n * BUF reason codes.\n */\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/camellia.h",
    "content": "/*\n * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CAMELLIA_H\n# define HEADER_CAMELLIA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CAMELLIA\n# include <stddef.h>\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define CAMELLIA_ENCRYPT        1\n# define CAMELLIA_DECRYPT        0\n\n/*\n * Because array size can't be a const in C, the following two are macros.\n * Both sizes are in bytes.\n */\n\n/* This should be a hidden type, but EVP requires that the size be known */\n\n# define CAMELLIA_BLOCK_SIZE 16\n# define CAMELLIA_TABLE_BYTE_LEN 272\n# define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4)\n\ntypedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; /* to match\n                                                               * with WORD */\n\nstruct camellia_key_st {\n    union {\n        double d;               /* ensures 64-bit align */\n        KEY_TABLE_TYPE rd_key;\n    } u;\n    int grand_rounds;\n};\ntypedef struct camellia_key_st CAMELLIA_KEY;\n\nint Camellia_set_key(const unsigned char *userKey, const int bits,\n                     CAMELLIA_KEY *key);\n\nvoid Camellia_encrypt(const unsigned char *in, unsigned char *out,\n                      const CAMELLIA_KEY *key);\nvoid Camellia_decrypt(const unsigned char *in, unsigned char *out,\n                      const CAMELLIA_KEY *key);\n\nvoid Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                          const CAMELLIA_KEY *key, const int enc);\nvoid Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                          size_t length, const CAMELLIA_KEY *key,\n                          unsigned char *ivec, const int enc);\nvoid Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char *ivec, int *num, const int enc);\nvoid Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t length, const CAMELLIA_KEY *key,\n                           unsigned char *ivec, int *num, const int enc);\nvoid Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t length, const CAMELLIA_KEY *key,\n                           unsigned char *ivec, int *num, const int enc);\nvoid Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char *ivec, int *num);\nvoid Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char ivec[CAMELLIA_BLOCK_SIZE],\n                             unsigned char ecount_buf[CAMELLIA_BLOCK_SIZE],\n                             unsigned int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/cast.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CAST_H\n# define HEADER_CAST_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CAST\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define CAST_ENCRYPT    1\n# define CAST_DECRYPT    0\n\n# define CAST_LONG unsigned int\n\n# define CAST_BLOCK      8\n# define CAST_KEY_LENGTH 16\n\ntypedef struct cast_key_st {\n    CAST_LONG data[32];\n    int short_key;              /* Use reduced rounds for short key */\n} CAST_KEY;\n\nvoid CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);\nvoid CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      const CAST_KEY *key, int enc);\nvoid CAST_encrypt(CAST_LONG *data, const CAST_KEY *key);\nvoid CAST_decrypt(CAST_LONG *data, const CAST_KEY *key);\nvoid CAST_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const CAST_KEY *ks, unsigned char *iv,\n                      int enc);\nvoid CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, const CAST_KEY *schedule,\n                        unsigned char *ivec, int *num, int enc);\nvoid CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, const CAST_KEY *schedule,\n                        unsigned char *ivec, int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/cmac.h",
    "content": "/*\n * Copyright 2010-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMAC_H\n# define HEADER_CMAC_H\n\n# ifndef OPENSSL_NO_CMAC\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# include <openssl/evp.h>\n\n/* Opaque */\ntypedef struct CMAC_CTX_st CMAC_CTX;\n\nCMAC_CTX *CMAC_CTX_new(void);\nvoid CMAC_CTX_cleanup(CMAC_CTX *ctx);\nvoid CMAC_CTX_free(CMAC_CTX *ctx);\nEVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx);\nint CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);\n\nint CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,\n              const EVP_CIPHER *cipher, ENGINE *impl);\nint CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen);\nint CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen);\nint CMAC_resume(CMAC_CTX *ctx);\n\n#ifdef  __cplusplus\n}\n#endif\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/cms.h",
    "content": "/*\n * Copyright 2008-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMS_H\n# define HEADER_CMS_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CMS\n# include <openssl/x509.h>\n# include <openssl/x509v3.h>\n# include <openssl/cmserr.h>\n# ifdef __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct CMS_ContentInfo_st CMS_ContentInfo;\ntypedef struct CMS_SignerInfo_st CMS_SignerInfo;\ntypedef struct CMS_CertificateChoices CMS_CertificateChoices;\ntypedef struct CMS_RevocationInfoChoice_st CMS_RevocationInfoChoice;\ntypedef struct CMS_RecipientInfo_st CMS_RecipientInfo;\ntypedef struct CMS_ReceiptRequest_st CMS_ReceiptRequest;\ntypedef struct CMS_Receipt_st CMS_Receipt;\ntypedef struct CMS_RecipientEncryptedKey_st CMS_RecipientEncryptedKey;\ntypedef struct CMS_OtherKeyAttribute_st CMS_OtherKeyAttribute;\n\nDEFINE_STACK_OF(CMS_SignerInfo)\nDEFINE_STACK_OF(CMS_RecipientEncryptedKey)\nDEFINE_STACK_OF(CMS_RecipientInfo)\nDEFINE_STACK_OF(CMS_RevocationInfoChoice)\nDECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)\nDECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest)\nDECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)\n\n# define CMS_SIGNERINFO_ISSUER_SERIAL    0\n# define CMS_SIGNERINFO_KEYIDENTIFIER    1\n\n# define CMS_RECIPINFO_NONE              -1\n# define CMS_RECIPINFO_TRANS             0\n# define CMS_RECIPINFO_AGREE             1\n# define CMS_RECIPINFO_KEK               2\n# define CMS_RECIPINFO_PASS              3\n# define CMS_RECIPINFO_OTHER             4\n\n/* S/MIME related flags */\n\n# define CMS_TEXT                        0x1\n# define CMS_NOCERTS                     0x2\n# define CMS_NO_CONTENT_VERIFY           0x4\n# define CMS_NO_ATTR_VERIFY              0x8\n# define CMS_NOSIGS                      \\\n                        (CMS_NO_CONTENT_VERIFY|CMS_NO_ATTR_VERIFY)\n# define CMS_NOINTERN                    0x10\n# define CMS_NO_SIGNER_CERT_VERIFY       0x20\n# define CMS_NOVERIFY                    0x20\n# define CMS_DETACHED                    0x40\n# define CMS_BINARY                      0x80\n# define CMS_NOATTR                      0x100\n# define CMS_NOSMIMECAP                  0x200\n# define CMS_NOOLDMIMETYPE               0x400\n# define CMS_CRLFEOL                     0x800\n# define CMS_STREAM                      0x1000\n# define CMS_NOCRL                       0x2000\n# define CMS_PARTIAL                     0x4000\n# define CMS_REUSE_DIGEST                0x8000\n# define CMS_USE_KEYID                   0x10000\n# define CMS_DEBUG_DECRYPT               0x20000\n# define CMS_KEY_PARAM                   0x40000\n# define CMS_ASCIICRLF                   0x80000\n\nconst ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);\n\nBIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);\nint CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);\n\nASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);\nint CMS_is_detached(CMS_ContentInfo *cms);\nint CMS_set_detached(CMS_ContentInfo *cms, int detached);\n\n# ifdef HEADER_PEM_H\nDECLARE_PEM_rw_const(CMS, CMS_ContentInfo)\n# endif\nint CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms);\nCMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);\nint i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);\n\nBIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);\nint i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);\nint PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in,\n                             int flags);\nCMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont);\nint SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);\n\nint CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont,\n              unsigned int flags);\n\nCMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,\n                          STACK_OF(X509) *certs, BIO *data,\n                          unsigned int flags);\n\nCMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si,\n                                  X509 *signcert, EVP_PKEY *pkey,\n                                  STACK_OF(X509) *certs, unsigned int flags);\n\nint CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags);\nCMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags);\n\nint CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out,\n                      unsigned int flags);\nCMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,\n                                   unsigned int flags);\n\nint CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,\n                              const unsigned char *key, size_t keylen,\n                              BIO *dcont, BIO *out, unsigned int flags);\n\nCMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher,\n                                           const unsigned char *key,\n                                           size_t keylen, unsigned int flags);\n\nint CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,\n                               const unsigned char *key, size_t keylen);\n\nint CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,\n               X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags);\n\nint CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,\n                       STACK_OF(X509) *certs,\n                       X509_STORE *store, unsigned int flags);\n\nSTACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);\n\nCMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,\n                             const EVP_CIPHER *cipher, unsigned int flags);\n\nint CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,\n                BIO *dcont, BIO *out, unsigned int flags);\n\nint CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert);\nint CMS_decrypt_set1_key(CMS_ContentInfo *cms,\n                         unsigned char *key, size_t keylen,\n                         const unsigned char *id, size_t idlen);\nint CMS_decrypt_set1_password(CMS_ContentInfo *cms,\n                              unsigned char *pass, ossl_ssize_t passlen);\n\nSTACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms);\nint CMS_RecipientInfo_type(CMS_RecipientInfo *ri);\nEVP_PKEY_CTX *CMS_RecipientInfo_get0_pkey_ctx(CMS_RecipientInfo *ri);\nCMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher);\nCMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,\n                                           X509 *recip, unsigned int flags);\nint CMS_RecipientInfo_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pkey);\nint CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert);\nint CMS_RecipientInfo_ktri_get0_algs(CMS_RecipientInfo *ri,\n                                     EVP_PKEY **pk, X509 **recip,\n                                     X509_ALGOR **palg);\nint CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri,\n                                          ASN1_OCTET_STRING **keyid,\n                                          X509_NAME **issuer,\n                                          ASN1_INTEGER **sno);\n\nCMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,\n                                          unsigned char *key, size_t keylen,\n                                          unsigned char *id, size_t idlen,\n                                          ASN1_GENERALIZEDTIME *date,\n                                          ASN1_OBJECT *otherTypeId,\n                                          ASN1_TYPE *otherType);\n\nint CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri,\n                                    X509_ALGOR **palg,\n                                    ASN1_OCTET_STRING **pid,\n                                    ASN1_GENERALIZEDTIME **pdate,\n                                    ASN1_OBJECT **potherid,\n                                    ASN1_TYPE **pothertype);\n\nint CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri,\n                               unsigned char *key, size_t keylen);\n\nint CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri,\n                                   const unsigned char *id, size_t idlen);\n\nint CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri,\n                                    unsigned char *pass,\n                                    ossl_ssize_t passlen);\n\nCMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms,\n                                               int iter, int wrap_nid,\n                                               int pbe_nid,\n                                               unsigned char *pass,\n                                               ossl_ssize_t passlen,\n                                               const EVP_CIPHER *kekciph);\n\nint CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);\nint CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);\n\nint CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out,\n                   unsigned int flags);\nCMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);\n\nint CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid);\nconst ASN1_OBJECT *CMS_get0_eContentType(CMS_ContentInfo *cms);\n\nCMS_CertificateChoices *CMS_add0_CertificateChoices(CMS_ContentInfo *cms);\nint CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);\nint CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);\nSTACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);\n\nCMS_RevocationInfoChoice *CMS_add0_RevocationInfoChoice(CMS_ContentInfo *cms);\nint CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);\nint CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);\nSTACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);\n\nint CMS_SignedData_init(CMS_ContentInfo *cms);\nCMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,\n                                X509 *signer, EVP_PKEY *pk, const EVP_MD *md,\n                                unsigned int flags);\nEVP_PKEY_CTX *CMS_SignerInfo_get0_pkey_ctx(CMS_SignerInfo *si);\nEVP_MD_CTX *CMS_SignerInfo_get0_md_ctx(CMS_SignerInfo *si);\nSTACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms);\n\nvoid CMS_SignerInfo_set1_signer_cert(CMS_SignerInfo *si, X509 *signer);\nint CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si,\n                                  ASN1_OCTET_STRING **keyid,\n                                  X509_NAME **issuer, ASN1_INTEGER **sno);\nint CMS_SignerInfo_cert_cmp(CMS_SignerInfo *si, X509 *cert);\nint CMS_set1_signers_certs(CMS_ContentInfo *cms, STACK_OF(X509) *certs,\n                           unsigned int flags);\nvoid CMS_SignerInfo_get0_algs(CMS_SignerInfo *si, EVP_PKEY **pk,\n                              X509 **signer, X509_ALGOR **pdig,\n                              X509_ALGOR **psig);\nASN1_OCTET_STRING *CMS_SignerInfo_get0_signature(CMS_SignerInfo *si);\nint CMS_SignerInfo_sign(CMS_SignerInfo *si);\nint CMS_SignerInfo_verify(CMS_SignerInfo *si);\nint CMS_SignerInfo_verify_content(CMS_SignerInfo *si, BIO *chain);\n\nint CMS_add_smimecap(CMS_SignerInfo *si, STACK_OF(X509_ALGOR) *algs);\nint CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **algs,\n                            int algnid, int keysize);\nint CMS_add_standard_smimecap(STACK_OF(X509_ALGOR) **smcap);\n\nint CMS_signed_get_attr_count(const CMS_SignerInfo *si);\nint CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid,\n                               int lastpos);\nint CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj,\n                               int lastpos);\nX509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc);\nX509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc);\nint CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);\nint CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si,\n                                const ASN1_OBJECT *obj, int type,\n                                const void *bytes, int len);\nint CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si,\n                                int nid, int type,\n                                const void *bytes, int len);\nint CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si,\n                                const char *attrname, int type,\n                                const void *bytes, int len);\nvoid *CMS_signed_get0_data_by_OBJ(CMS_SignerInfo *si, const ASN1_OBJECT *oid,\n                                  int lastpos, int type);\n\nint CMS_unsigned_get_attr_count(const CMS_SignerInfo *si);\nint CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid,\n                                 int lastpos);\nint CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si,\n                                 const ASN1_OBJECT *obj, int lastpos);\nX509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc);\nX509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc);\nint CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);\nint CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si,\n                                  const ASN1_OBJECT *obj, int type,\n                                  const void *bytes, int len);\nint CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si,\n                                  int nid, int type,\n                                  const void *bytes, int len);\nint CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si,\n                                  const char *attrname, int type,\n                                  const void *bytes, int len);\nvoid *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid,\n                                    int lastpos, int type);\n\nint CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);\nCMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen,\n                                               int allorfirst,\n                                               STACK_OF(GENERAL_NAMES)\n                                               *receiptList, STACK_OF(GENERAL_NAMES)\n                                               *receiptsTo);\nint CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr);\nvoid CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr,\n                                    ASN1_STRING **pcid,\n                                    int *pallorfirst,\n                                    STACK_OF(GENERAL_NAMES) **plist,\n                                    STACK_OF(GENERAL_NAMES) **prto);\nint CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,\n                                    X509_ALGOR **palg,\n                                    ASN1_OCTET_STRING **pukm);\nSTACK_OF(CMS_RecipientEncryptedKey)\n*CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri);\n\nint CMS_RecipientInfo_kari_get0_orig_id(CMS_RecipientInfo *ri,\n                                        X509_ALGOR **pubalg,\n                                        ASN1_BIT_STRING **pubkey,\n                                        ASN1_OCTET_STRING **keyid,\n                                        X509_NAME **issuer,\n                                        ASN1_INTEGER **sno);\n\nint CMS_RecipientInfo_kari_orig_id_cmp(CMS_RecipientInfo *ri, X509 *cert);\n\nint CMS_RecipientEncryptedKey_get0_id(CMS_RecipientEncryptedKey *rek,\n                                      ASN1_OCTET_STRING **keyid,\n                                      ASN1_GENERALIZEDTIME **tm,\n                                      CMS_OtherKeyAttribute **other,\n                                      X509_NAME **issuer, ASN1_INTEGER **sno);\nint CMS_RecipientEncryptedKey_cert_cmp(CMS_RecipientEncryptedKey *rek,\n                                       X509 *cert);\nint CMS_RecipientInfo_kari_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pk);\nEVP_CIPHER_CTX *CMS_RecipientInfo_kari_get0_ctx(CMS_RecipientInfo *ri);\nint CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms,\n                                   CMS_RecipientInfo *ri,\n                                   CMS_RecipientEncryptedKey *rek);\n\nint CMS_SharedInfo_encode(unsigned char **pder, X509_ALGOR *kekalg,\n                          ASN1_OCTET_STRING *ukm, int keylen);\n\n/* Backward compatibility for spelling errors. */\n# define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM\n# define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \\\n    CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/cmserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMSERR_H\n# define HEADER_CMSERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CMS\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_CMS_strings(void);\n\n/*\n * CMS function codes.\n */\n#  define CMS_F_CHECK_CONTENT                              99\n#  define CMS_F_CMS_ADD0_CERT                              164\n#  define CMS_F_CMS_ADD0_RECIPIENT_KEY                     100\n#  define CMS_F_CMS_ADD0_RECIPIENT_PASSWORD                165\n#  define CMS_F_CMS_ADD1_RECEIPTREQUEST                    158\n#  define CMS_F_CMS_ADD1_RECIPIENT_CERT                    101\n#  define CMS_F_CMS_ADD1_SIGNER                            102\n#  define CMS_F_CMS_ADD1_SIGNINGTIME                       103\n#  define CMS_F_CMS_COMPRESS                               104\n#  define CMS_F_CMS_COMPRESSEDDATA_CREATE                  105\n#  define CMS_F_CMS_COMPRESSEDDATA_INIT_BIO                106\n#  define CMS_F_CMS_COPY_CONTENT                           107\n#  define CMS_F_CMS_COPY_MESSAGEDIGEST                     108\n#  define CMS_F_CMS_DATA                                   109\n#  define CMS_F_CMS_DATAFINAL                              110\n#  define CMS_F_CMS_DATAINIT                               111\n#  define CMS_F_CMS_DECRYPT                                112\n#  define CMS_F_CMS_DECRYPT_SET1_KEY                       113\n#  define CMS_F_CMS_DECRYPT_SET1_PASSWORD                  166\n#  define CMS_F_CMS_DECRYPT_SET1_PKEY                      114\n#  define CMS_F_CMS_DIGESTALGORITHM_FIND_CTX               115\n#  define CMS_F_CMS_DIGESTALGORITHM_INIT_BIO               116\n#  define CMS_F_CMS_DIGESTEDDATA_DO_FINAL                  117\n#  define CMS_F_CMS_DIGEST_VERIFY                          118\n#  define CMS_F_CMS_ENCODE_RECEIPT                         161\n#  define CMS_F_CMS_ENCRYPT                                119\n#  define CMS_F_CMS_ENCRYPTEDCONTENT_INIT                  179\n#  define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO              120\n#  define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT                  121\n#  define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT                  122\n#  define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY                 123\n#  define CMS_F_CMS_ENVELOPEDDATA_CREATE                   124\n#  define CMS_F_CMS_ENVELOPEDDATA_INIT_BIO                 125\n#  define CMS_F_CMS_ENVELOPED_DATA_INIT                    126\n#  define CMS_F_CMS_ENV_ASN1_CTRL                          171\n#  define CMS_F_CMS_FINAL                                  127\n#  define CMS_F_CMS_GET0_CERTIFICATE_CHOICES               128\n#  define CMS_F_CMS_GET0_CONTENT                           129\n#  define CMS_F_CMS_GET0_ECONTENT_TYPE                     130\n#  define CMS_F_CMS_GET0_ENVELOPED                         131\n#  define CMS_F_CMS_GET0_REVOCATION_CHOICES                132\n#  define CMS_F_CMS_GET0_SIGNED                            133\n#  define CMS_F_CMS_MSGSIGDIGEST_ADD1                      162\n#  define CMS_F_CMS_RECEIPTREQUEST_CREATE0                 159\n#  define CMS_F_CMS_RECEIPT_VERIFY                         160\n#  define CMS_F_CMS_RECIPIENTINFO_DECRYPT                  134\n#  define CMS_F_CMS_RECIPIENTINFO_ENCRYPT                  169\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT             178\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG            175\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID        173\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS           172\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP         174\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT            135\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT            136\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID            137\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP             138\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP            139\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT             140\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT             141\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS           142\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID      143\n#  define CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT               167\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_KEY                 144\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD            168\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_PKEY                145\n#  define CMS_F_CMS_SD_ASN1_CTRL                           170\n#  define CMS_F_CMS_SET1_IAS                               176\n#  define CMS_F_CMS_SET1_KEYID                             177\n#  define CMS_F_CMS_SET1_SIGNERIDENTIFIER                  146\n#  define CMS_F_CMS_SET_DETACHED                           147\n#  define CMS_F_CMS_SIGN                                   148\n#  define CMS_F_CMS_SIGNED_DATA_INIT                       149\n#  define CMS_F_CMS_SIGNERINFO_CONTENT_SIGN                150\n#  define CMS_F_CMS_SIGNERINFO_SIGN                        151\n#  define CMS_F_CMS_SIGNERINFO_VERIFY                      152\n#  define CMS_F_CMS_SIGNERINFO_VERIFY_CERT                 153\n#  define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT              154\n#  define CMS_F_CMS_SIGN_RECEIPT                           163\n#  define CMS_F_CMS_SI_CHECK_ATTRIBUTES                    183\n#  define CMS_F_CMS_STREAM                                 155\n#  define CMS_F_CMS_UNCOMPRESS                             156\n#  define CMS_F_CMS_VERIFY                                 157\n#  define CMS_F_KEK_UNWRAP_KEY                             180\n\n/*\n * CMS reason codes.\n */\n#  define CMS_R_ADD_SIGNER_ERROR                           99\n#  define CMS_R_ATTRIBUTE_ERROR                            161\n#  define CMS_R_CERTIFICATE_ALREADY_PRESENT                175\n#  define CMS_R_CERTIFICATE_HAS_NO_KEYID                   160\n#  define CMS_R_CERTIFICATE_VERIFY_ERROR                   100\n#  define CMS_R_CIPHER_INITIALISATION_ERROR                101\n#  define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR      102\n#  define CMS_R_CMS_DATAFINAL_ERROR                        103\n#  define CMS_R_CMS_LIB                                    104\n#  define CMS_R_CONTENTIDENTIFIER_MISMATCH                 170\n#  define CMS_R_CONTENT_NOT_FOUND                          105\n#  define CMS_R_CONTENT_TYPE_MISMATCH                      171\n#  define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA           106\n#  define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA            107\n#  define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA               108\n#  define CMS_R_CONTENT_VERIFY_ERROR                       109\n#  define CMS_R_CTRL_ERROR                                 110\n#  define CMS_R_CTRL_FAILURE                               111\n#  define CMS_R_DECRYPT_ERROR                              112\n#  define CMS_R_ERROR_GETTING_PUBLIC_KEY                   113\n#  define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE      114\n#  define CMS_R_ERROR_SETTING_KEY                          115\n#  define CMS_R_ERROR_SETTING_RECIPIENTINFO                116\n#  define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH               117\n#  define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER           176\n#  define CMS_R_INVALID_KEY_LENGTH                         118\n#  define CMS_R_MD_BIO_INIT_ERROR                          119\n#  define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH       120\n#  define CMS_R_MESSAGEDIGEST_WRONG_LENGTH                 121\n#  define CMS_R_MSGSIGDIGEST_ERROR                         172\n#  define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE          162\n#  define CMS_R_MSGSIGDIGEST_WRONG_LENGTH                  163\n#  define CMS_R_NEED_ONE_SIGNER                            164\n#  define CMS_R_NOT_A_SIGNED_RECEIPT                       165\n#  define CMS_R_NOT_ENCRYPTED_DATA                         122\n#  define CMS_R_NOT_KEK                                    123\n#  define CMS_R_NOT_KEY_AGREEMENT                          181\n#  define CMS_R_NOT_KEY_TRANSPORT                          124\n#  define CMS_R_NOT_PWRI                                   177\n#  define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE            125\n#  define CMS_R_NO_CIPHER                                  126\n#  define CMS_R_NO_CONTENT                                 127\n#  define CMS_R_NO_CONTENT_TYPE                            173\n#  define CMS_R_NO_DEFAULT_DIGEST                          128\n#  define CMS_R_NO_DIGEST_SET                              129\n#  define CMS_R_NO_KEY                                     130\n#  define CMS_R_NO_KEY_OR_CERT                             174\n#  define CMS_R_NO_MATCHING_DIGEST                         131\n#  define CMS_R_NO_MATCHING_RECIPIENT                      132\n#  define CMS_R_NO_MATCHING_SIGNATURE                      166\n#  define CMS_R_NO_MSGSIGDIGEST                            167\n#  define CMS_R_NO_PASSWORD                                178\n#  define CMS_R_NO_PRIVATE_KEY                             133\n#  define CMS_R_NO_PUBLIC_KEY                              134\n#  define CMS_R_NO_RECEIPT_REQUEST                         168\n#  define CMS_R_NO_SIGNERS                                 135\n#  define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE     136\n#  define CMS_R_RECEIPT_DECODE_ERROR                       169\n#  define CMS_R_RECIPIENT_ERROR                            137\n#  define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND               138\n#  define CMS_R_SIGNFINAL_ERROR                            139\n#  define CMS_R_SMIME_TEXT_ERROR                           140\n#  define CMS_R_STORE_INIT_ERROR                           141\n#  define CMS_R_TYPE_NOT_COMPRESSED_DATA                   142\n#  define CMS_R_TYPE_NOT_DATA                              143\n#  define CMS_R_TYPE_NOT_DIGESTED_DATA                     144\n#  define CMS_R_TYPE_NOT_ENCRYPTED_DATA                    145\n#  define CMS_R_TYPE_NOT_ENVELOPED_DATA                    146\n#  define CMS_R_UNABLE_TO_FINALIZE_CONTEXT                 147\n#  define CMS_R_UNKNOWN_CIPHER                             148\n#  define CMS_R_UNKNOWN_DIGEST_ALGORITHM                   149\n#  define CMS_R_UNKNOWN_ID                                 150\n#  define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM          151\n#  define CMS_R_UNSUPPORTED_CONTENT_TYPE                   152\n#  define CMS_R_UNSUPPORTED_KEK_ALGORITHM                  153\n#  define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM       179\n#  define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE             155\n#  define CMS_R_UNSUPPORTED_RECIPIENT_TYPE                 154\n#  define CMS_R_UNSUPPORTED_TYPE                           156\n#  define CMS_R_UNWRAP_ERROR                               157\n#  define CMS_R_UNWRAP_FAILURE                             180\n#  define CMS_R_VERIFICATION_FAILURE                       158\n#  define CMS_R_WRAP_ERROR                                 159\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/comp.h",
    "content": "/*\n * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_COMP_H\n# define HEADER_COMP_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_COMP\n# include <openssl/crypto.h>\n# include <openssl/comperr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n\n\nCOMP_CTX *COMP_CTX_new(COMP_METHOD *meth);\nconst COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);\nint COMP_CTX_get_type(const COMP_CTX* comp);\nint COMP_get_type(const COMP_METHOD *meth);\nconst char *COMP_get_name(const COMP_METHOD *meth);\nvoid COMP_CTX_free(COMP_CTX *ctx);\n\nint COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,\n                        unsigned char *in, int ilen);\nint COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,\n                      unsigned char *in, int ilen);\n\nCOMP_METHOD *COMP_zlib(void);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n#define COMP_zlib_cleanup() while(0) continue\n#endif\n\n# ifdef HEADER_BIO_H\n#  ifdef ZLIB\nconst BIO_METHOD *BIO_f_zlib(void);\n#  endif\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/comperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_COMPERR_H\n# define HEADER_COMPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_COMP\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_COMP_strings(void);\n\n/*\n * COMP function codes.\n */\n#  define COMP_F_BIO_ZLIB_FLUSH                            99\n#  define COMP_F_BIO_ZLIB_NEW                              100\n#  define COMP_F_BIO_ZLIB_READ                             101\n#  define COMP_F_BIO_ZLIB_WRITE                            102\n#  define COMP_F_COMP_CTX_NEW                              103\n\n/*\n * COMP reason codes.\n */\n#  define COMP_R_ZLIB_DEFLATE_ERROR                        99\n#  define COMP_R_ZLIB_INFLATE_ERROR                        100\n#  define COMP_R_ZLIB_NOT_SUPPORTED                        101\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/conf.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef  HEADER_CONF_H\n# define HEADER_CONF_H\n\n# include <openssl/bio.h>\n# include <openssl/lhash.h>\n# include <openssl/safestack.h>\n# include <openssl/e_os2.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/conferr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct {\n    char *section;\n    char *name;\n    char *value;\n} CONF_VALUE;\n\nDEFINE_STACK_OF(CONF_VALUE)\nDEFINE_LHASH_OF(CONF_VALUE);\n\nstruct conf_st;\nstruct conf_method_st;\ntypedef struct conf_method_st CONF_METHOD;\n\nstruct conf_method_st {\n    const char *name;\n    CONF *(*create) (CONF_METHOD *meth);\n    int (*init) (CONF *conf);\n    int (*destroy) (CONF *conf);\n    int (*destroy_data) (CONF *conf);\n    int (*load_bio) (CONF *conf, BIO *bp, long *eline);\n    int (*dump) (const CONF *conf, BIO *bp);\n    int (*is_number) (const CONF *conf, char c);\n    int (*to_int) (const CONF *conf, char c);\n    int (*load) (CONF *conf, const char *name, long *eline);\n};\n\n/* Module definitions */\n\ntypedef struct conf_imodule_st CONF_IMODULE;\ntypedef struct conf_module_st CONF_MODULE;\n\nDEFINE_STACK_OF(CONF_MODULE)\nDEFINE_STACK_OF(CONF_IMODULE)\n\n/* DSO module function typedefs */\ntypedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf);\ntypedef void conf_finish_func (CONF_IMODULE *md);\n\n# define CONF_MFLAGS_IGNORE_ERRORS       0x1\n# define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2\n# define CONF_MFLAGS_SILENT              0x4\n# define CONF_MFLAGS_NO_DSO              0x8\n# define CONF_MFLAGS_IGNORE_MISSING_FILE 0x10\n# define CONF_MFLAGS_DEFAULT_SECTION     0x20\n\nint CONF_set_default_method(CONF_METHOD *meth);\nvoid CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash);\nLHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,\n                                long *eline);\n# ifndef OPENSSL_NO_STDIO\nLHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,\n                                   long *eline);\n# endif\nLHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp,\n                                    long *eline);\nSTACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf,\n                                       const char *section);\nchar *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,\n                      const char *name);\nlong CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,\n                     const char *name);\nvoid CONF_free(LHASH_OF(CONF_VALUE) *conf);\n#ifndef OPENSSL_NO_STDIO\nint CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out);\n#endif\nint CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out);\n\nDEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name))\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define OPENSSL_no_config() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_NO_LOAD_CONFIG, NULL)\n#endif\n\n/*\n * New conf code.  The semantics are different from the functions above. If\n * that wasn't the case, the above functions would have been replaced\n */\n\nstruct conf_st {\n    CONF_METHOD *meth;\n    void *meth_data;\n    LHASH_OF(CONF_VALUE) *data;\n};\n\nCONF *NCONF_new(CONF_METHOD *meth);\nCONF_METHOD *NCONF_default(void);\nCONF_METHOD *NCONF_WIN32(void);\nvoid NCONF_free(CONF *conf);\nvoid NCONF_free_data(CONF *conf);\n\nint NCONF_load(CONF *conf, const char *file, long *eline);\n# ifndef OPENSSL_NO_STDIO\nint NCONF_load_fp(CONF *conf, FILE *fp, long *eline);\n# endif\nint NCONF_load_bio(CONF *conf, BIO *bp, long *eline);\nSTACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf,\n                                        const char *section);\nchar *NCONF_get_string(const CONF *conf, const char *group, const char *name);\nint NCONF_get_number_e(const CONF *conf, const char *group, const char *name,\n                       long *result);\n#ifndef OPENSSL_NO_STDIO\nint NCONF_dump_fp(const CONF *conf, FILE *out);\n#endif\nint NCONF_dump_bio(const CONF *conf, BIO *out);\n\n#define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r)\n\n/* Module functions */\n\nint CONF_modules_load(const CONF *cnf, const char *appname,\n                      unsigned long flags);\nint CONF_modules_load_file(const char *filename, const char *appname,\n                           unsigned long flags);\nvoid CONF_modules_unload(int all);\nvoid CONF_modules_finish(void);\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define CONF_modules_free() while(0) continue\n#endif\nint CONF_module_add(const char *name, conf_init_func *ifunc,\n                    conf_finish_func *ffunc);\n\nconst char *CONF_imodule_get_name(const CONF_IMODULE *md);\nconst char *CONF_imodule_get_value(const CONF_IMODULE *md);\nvoid *CONF_imodule_get_usr_data(const CONF_IMODULE *md);\nvoid CONF_imodule_set_usr_data(CONF_IMODULE *md, void *usr_data);\nCONF_MODULE *CONF_imodule_get_module(const CONF_IMODULE *md);\nunsigned long CONF_imodule_get_flags(const CONF_IMODULE *md);\nvoid CONF_imodule_set_flags(CONF_IMODULE *md, unsigned long flags);\nvoid *CONF_module_get_usr_data(CONF_MODULE *pmod);\nvoid CONF_module_set_usr_data(CONF_MODULE *pmod, void *usr_data);\n\nchar *CONF_get1_default_config_file(void);\n\nint CONF_parse_list(const char *list, int sep, int nospc,\n                    int (*list_cb) (const char *elem, int len, void *usr),\n                    void *arg);\n\nvoid OPENSSL_load_builtin_modules(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/conf_api.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef  HEADER_CONF_API_H\n# define HEADER_CONF_API_H\n\n# include <openssl/lhash.h>\n# include <openssl/conf.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Up until OpenSSL 0.9.5a, this was new_section */\nCONF_VALUE *_CONF_new_section(CONF *conf, const char *section);\n/* Up until OpenSSL 0.9.5a, this was get_section */\nCONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);\n/* Up until OpenSSL 0.9.5a, this was CONF_get_section */\nSTACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,\n                                               const char *section);\n\nint _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);\nchar *_CONF_get_string(const CONF *conf, const char *section,\n                       const char *name);\nlong _CONF_get_number(const CONF *conf, const char *section,\n                      const char *name);\n\nint _CONF_new_data(CONF *conf);\nvoid _CONF_free_data(CONF *conf);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/conferr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CONFERR_H\n# define HEADER_CONFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_CONF_strings(void);\n\n/*\n * CONF function codes.\n */\n# define CONF_F_CONF_DUMP_FP                              104\n# define CONF_F_CONF_LOAD                                 100\n# define CONF_F_CONF_LOAD_FP                              103\n# define CONF_F_CONF_PARSE_LIST                           119\n# define CONF_F_DEF_LOAD                                  120\n# define CONF_F_DEF_LOAD_BIO                              121\n# define CONF_F_GET_NEXT_FILE                             107\n# define CONF_F_MODULE_ADD                                122\n# define CONF_F_MODULE_INIT                               115\n# define CONF_F_MODULE_LOAD_DSO                           117\n# define CONF_F_MODULE_RUN                                118\n# define CONF_F_NCONF_DUMP_BIO                            105\n# define CONF_F_NCONF_DUMP_FP                             106\n# define CONF_F_NCONF_GET_NUMBER_E                        112\n# define CONF_F_NCONF_GET_SECTION                         108\n# define CONF_F_NCONF_GET_STRING                          109\n# define CONF_F_NCONF_LOAD                                113\n# define CONF_F_NCONF_LOAD_BIO                            110\n# define CONF_F_NCONF_LOAD_FP                             114\n# define CONF_F_NCONF_NEW                                 111\n# define CONF_F_PROCESS_INCLUDE                           116\n# define CONF_F_SSL_MODULE_INIT                           123\n# define CONF_F_STR_COPY                                  101\n\n/*\n * CONF reason codes.\n */\n# define CONF_R_ERROR_LOADING_DSO                         110\n# define CONF_R_LIST_CANNOT_BE_NULL                       115\n# define CONF_R_MISSING_CLOSE_SQUARE_BRACKET              100\n# define CONF_R_MISSING_EQUAL_SIGN                        101\n# define CONF_R_MISSING_INIT_FUNCTION                     112\n# define CONF_R_MODULE_INITIALIZATION_ERROR               109\n# define CONF_R_NO_CLOSE_BRACE                            102\n# define CONF_R_NO_CONF                                   105\n# define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE           106\n# define CONF_R_NO_SECTION                                107\n# define CONF_R_NO_SUCH_FILE                              114\n# define CONF_R_NO_VALUE                                  108\n# define CONF_R_NUMBER_TOO_LARGE                          121\n# define CONF_R_RECURSIVE_DIRECTORY_INCLUDE               111\n# define CONF_R_SSL_COMMAND_SECTION_EMPTY                 117\n# define CONF_R_SSL_COMMAND_SECTION_NOT_FOUND             118\n# define CONF_R_SSL_SECTION_EMPTY                         119\n# define CONF_R_SSL_SECTION_NOT_FOUND                     120\n# define CONF_R_UNABLE_TO_CREATE_NEW_SECTION              103\n# define CONF_R_UNKNOWN_MODULE_NAME                       113\n# define CONF_R_VARIABLE_EXPANSION_TOO_LONG               116\n# define CONF_R_VARIABLE_HAS_NO_VALUE                     104\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/crypto.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CRYPTO_H\n# define HEADER_CRYPTO_H\n\n# include <stdlib.h>\n# include <time.h>\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n\n# include <openssl/safestack.h>\n# include <openssl/opensslv.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/opensslconf.h>\n# include <openssl/cryptoerr.h>\n\n# ifdef CHARSET_EBCDIC\n#  include <openssl/ebcdic.h>\n# endif\n\n/*\n * Resolve problems on some operating systems with symbol names that clash\n * one way or another\n */\n# include <openssl/symhacks.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/opensslv.h>\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSLeay                  OpenSSL_version_num\n#  define SSLeay_version          OpenSSL_version\n#  define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER\n#  define SSLEAY_VERSION          OPENSSL_VERSION\n#  define SSLEAY_CFLAGS           OPENSSL_CFLAGS\n#  define SSLEAY_BUILT_ON         OPENSSL_BUILT_ON\n#  define SSLEAY_PLATFORM         OPENSSL_PLATFORM\n#  define SSLEAY_DIR              OPENSSL_DIR\n\n/*\n * Old type for allocating dynamic locks. No longer used. Use the new thread\n * API instead.\n */\ntypedef struct {\n    int dummy;\n} CRYPTO_dynlock;\n\n# endif /* OPENSSL_API_COMPAT */\n\ntypedef void CRYPTO_RWLOCK;\n\nCRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void);\nint CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock);\nint CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock);\nint CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock);\nvoid CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock);\n\nint CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock);\n\n/*\n * The following can be used to detect memory leaks in the library. If\n * used, it turns on malloc checking\n */\n# define CRYPTO_MEM_CHECK_OFF     0x0   /* Control only */\n# define CRYPTO_MEM_CHECK_ON      0x1   /* Control and mode bit */\n# define CRYPTO_MEM_CHECK_ENABLE  0x2   /* Control and mode bit */\n# define CRYPTO_MEM_CHECK_DISABLE 0x3   /* Control only */\n\nstruct crypto_ex_data_st {\n    STACK_OF(void) *sk;\n};\nDEFINE_STACK_OF(void)\n\n/*\n * Per class, we have a STACK of function pointers.\n */\n# define CRYPTO_EX_INDEX_SSL              0\n# define CRYPTO_EX_INDEX_SSL_CTX          1\n# define CRYPTO_EX_INDEX_SSL_SESSION      2\n# define CRYPTO_EX_INDEX_X509             3\n# define CRYPTO_EX_INDEX_X509_STORE       4\n# define CRYPTO_EX_INDEX_X509_STORE_CTX   5\n# define CRYPTO_EX_INDEX_DH               6\n# define CRYPTO_EX_INDEX_DSA              7\n# define CRYPTO_EX_INDEX_EC_KEY           8\n# define CRYPTO_EX_INDEX_RSA              9\n# define CRYPTO_EX_INDEX_ENGINE          10\n# define CRYPTO_EX_INDEX_UI              11\n# define CRYPTO_EX_INDEX_BIO             12\n# define CRYPTO_EX_INDEX_APP             13\n# define CRYPTO_EX_INDEX_UI_METHOD       14\n# define CRYPTO_EX_INDEX_DRBG            15\n# define CRYPTO_EX_INDEX__COUNT          16\n\n/* No longer needed, so this is a no-op */\n#define OPENSSL_malloc_init() while(0) continue\n\nint CRYPTO_mem_ctrl(int mode);\n\n# define OPENSSL_malloc(num) \\\n        CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_zalloc(num) \\\n        CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_realloc(addr, num) \\\n        CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_clear_realloc(addr, old_num, num) \\\n        CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_clear_free(addr, num) \\\n        CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_free(addr) \\\n        CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_memdup(str, s) \\\n        CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_strdup(str) \\\n        CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_strndup(str, n) \\\n        CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_malloc(num) \\\n        CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_zalloc(num) \\\n        CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_free(addr) \\\n        CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_clear_free(addr, num) \\\n        CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_actual_size(ptr) \\\n        CRYPTO_secure_actual_size(ptr)\n\nsize_t OPENSSL_strlcpy(char *dst, const char *src, size_t siz);\nsize_t OPENSSL_strlcat(char *dst, const char *src, size_t siz);\nsize_t OPENSSL_strnlen(const char *str, size_t maxlen);\nchar *OPENSSL_buf2hexstr(const unsigned char *buffer, long len);\nunsigned char *OPENSSL_hexstr2buf(const char *str, long *len);\nint OPENSSL_hexchar2int(unsigned char c);\n\n# define OPENSSL_MALLOC_MAX_NELEMS(type)  (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))\n\nunsigned long OpenSSL_version_num(void);\nconst char *OpenSSL_version(int type);\n# define OPENSSL_VERSION          0\n# define OPENSSL_CFLAGS           1\n# define OPENSSL_BUILT_ON         2\n# define OPENSSL_PLATFORM         3\n# define OPENSSL_DIR              4\n# define OPENSSL_ENGINES_DIR      5\n\nint OPENSSL_issetugid(void);\n\ntypedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,\n                           int idx, long argl, void *argp);\ntypedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,\n                             int idx, long argl, void *argp);\ntypedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,\n                           void *from_d, int idx, long argl, void *argp);\n__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,\n                            CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,\n                            CRYPTO_EX_free *free_func);\n/* No longer use an index. */\nint CRYPTO_free_ex_index(int class_index, int idx);\n\n/*\n * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a\n * given class (invokes whatever per-class callbacks are applicable)\n */\nint CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);\nint CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to,\n                       const CRYPTO_EX_DATA *from);\n\nvoid CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);\n\n/*\n * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular\n * index (relative to the class type involved)\n */\nint CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val);\nvoid *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * This function cleans up all \"ex_data\" state. It mustn't be called under\n * potential race-conditions.\n */\n# define CRYPTO_cleanup_all_ex_data() while(0) continue\n\n/*\n * The old locking functions have been removed completely without compatibility\n * macros. This is because the old functions either could not properly report\n * errors, or the returned error values were not clearly documented.\n * Replacing the locking functions with no-ops would cause race condition\n * issues in the affected applications. It is far better for them to fail at\n * compile time.\n * On the other hand, the locking callbacks are no longer used.  Consequently,\n * the callback management functions can be safely replaced with no-op macros.\n */\n#  define CRYPTO_num_locks()            (1)\n#  define CRYPTO_set_locking_callback(func)\n#  define CRYPTO_get_locking_callback()         (NULL)\n#  define CRYPTO_set_add_lock_callback(func)\n#  define CRYPTO_get_add_lock_callback()        (NULL)\n\n/*\n * These defines where used in combination with the old locking callbacks,\n * they are not called anymore, but old code that's not called might still\n * use them.\n */\n#  define CRYPTO_LOCK             1\n#  define CRYPTO_UNLOCK           2\n#  define CRYPTO_READ             4\n#  define CRYPTO_WRITE            8\n\n/* This structure is no longer used */\ntypedef struct crypto_threadid_st {\n    int dummy;\n} CRYPTO_THREADID;\n/* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */\n#  define CRYPTO_THREADID_set_numeric(id, val)\n#  define CRYPTO_THREADID_set_pointer(id, ptr)\n#  define CRYPTO_THREADID_set_callback(threadid_func)   (0)\n#  define CRYPTO_THREADID_get_callback()                (NULL)\n#  define CRYPTO_THREADID_current(id)\n#  define CRYPTO_THREADID_cmp(a, b)                     (-1)\n#  define CRYPTO_THREADID_cpy(dest, src)\n#  define CRYPTO_THREADID_hash(id)                      (0UL)\n\n#  if OPENSSL_API_COMPAT < 0x10000000L\n#   define CRYPTO_set_id_callback(func)\n#   define CRYPTO_get_id_callback()                     (NULL)\n#   define CRYPTO_thread_id()                           (0UL)\n#  endif /* OPENSSL_API_COMPAT < 0x10000000L */\n\n#  define CRYPTO_set_dynlock_create_callback(dyn_create_function)\n#  define CRYPTO_set_dynlock_lock_callback(dyn_lock_function)\n#  define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function)\n#  define CRYPTO_get_dynlock_create_callback()          (NULL)\n#  define CRYPTO_get_dynlock_lock_callback()            (NULL)\n#  define CRYPTO_get_dynlock_destroy_callback()         (NULL)\n# endif /* OPENSSL_API_COMPAT < 0x10100000L */\n\nint CRYPTO_set_mem_functions(\n        void *(*m) (size_t, const char *, int),\n        void *(*r) (void *, size_t, const char *, int),\n        void (*f) (void *, const char *, int));\nint CRYPTO_set_mem_debug(int flag);\nvoid CRYPTO_get_mem_functions(\n        void *(**m) (size_t, const char *, int),\n        void *(**r) (void *, size_t, const char *, int),\n        void (**f) (void *, const char *, int));\n\nvoid *CRYPTO_malloc(size_t num, const char *file, int line);\nvoid *CRYPTO_zalloc(size_t num, const char *file, int line);\nvoid *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);\nchar *CRYPTO_strdup(const char *str, const char *file, int line);\nchar *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);\nvoid CRYPTO_free(void *ptr, const char *file, int line);\nvoid CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line);\nvoid *CRYPTO_realloc(void *addr, size_t num, const char *file, int line);\nvoid *CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num,\n                           const char *file, int line);\n\nint CRYPTO_secure_malloc_init(size_t sz, int minsize);\nint CRYPTO_secure_malloc_done(void);\nvoid *CRYPTO_secure_malloc(size_t num, const char *file, int line);\nvoid *CRYPTO_secure_zalloc(size_t num, const char *file, int line);\nvoid CRYPTO_secure_free(void *ptr, const char *file, int line);\nvoid CRYPTO_secure_clear_free(void *ptr, size_t num,\n                              const char *file, int line);\nint CRYPTO_secure_allocated(const void *ptr);\nint CRYPTO_secure_malloc_initialized(void);\nsize_t CRYPTO_secure_actual_size(void *ptr);\nsize_t CRYPTO_secure_used(void);\n\nvoid OPENSSL_cleanse(void *ptr, size_t len);\n\n# ifndef OPENSSL_NO_CRYPTO_MDEBUG\n#  define OPENSSL_mem_debug_push(info) \\\n        CRYPTO_mem_debug_push(info, OPENSSL_FILE, OPENSSL_LINE)\n#  define OPENSSL_mem_debug_pop() \\\n        CRYPTO_mem_debug_pop()\nint CRYPTO_mem_debug_push(const char *info, const char *file, int line);\nint CRYPTO_mem_debug_pop(void);\nvoid CRYPTO_get_alloc_counts(int *mcount, int *rcount, int *fcount);\n\n/*-\n * Debugging functions (enabled by CRYPTO_set_mem_debug(1))\n * The flag argument has the following significance:\n *   0:   called before the actual memory allocation has taken place\n *   1:   called after the actual memory allocation has taken place\n */\nvoid CRYPTO_mem_debug_malloc(void *addr, size_t num, int flag,\n        const char *file, int line);\nvoid CRYPTO_mem_debug_realloc(void *addr1, void *addr2, size_t num, int flag,\n        const char *file, int line);\nvoid CRYPTO_mem_debug_free(void *addr, int flag,\n        const char *file, int line);\n\nint CRYPTO_mem_leaks_cb(int (*cb) (const char *str, size_t len, void *u),\n                        void *u);\n#  ifndef OPENSSL_NO_STDIO\nint CRYPTO_mem_leaks_fp(FILE *);\n#  endif\nint CRYPTO_mem_leaks(BIO *bio);\n# endif\n\n/* die if we have to */\nossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OpenSSLDie(f,l,a) OPENSSL_die((a),(f),(l))\n# endif\n# define OPENSSL_assert(e) \\\n    (void)((e) ? 0 : (OPENSSL_die(\"assertion failed: \" #e, OPENSSL_FILE, OPENSSL_LINE), 1))\n\nint OPENSSL_isservice(void);\n\nint FIPS_mode(void);\nint FIPS_mode_set(int r);\n\nvoid OPENSSL_init(void);\n# ifdef OPENSSL_SYS_UNIX\nvoid OPENSSL_fork_prepare(void);\nvoid OPENSSL_fork_parent(void);\nvoid OPENSSL_fork_child(void);\n# endif\n\nstruct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);\nint OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);\nint OPENSSL_gmtime_diff(int *pday, int *psec,\n                        const struct tm *from, const struct tm *to);\n\n/*\n * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal.\n * It takes an amount of time dependent on |len|, but independent of the\n * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements\n * into a defined order as the return value when a != b is undefined, other\n * than to be non-zero.\n */\nint CRYPTO_memcmp(const void * in_a, const void * in_b, size_t len);\n\n/* Standard initialisation options */\n# define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS 0x00000001L\n# define OPENSSL_INIT_LOAD_CRYPTO_STRINGS    0x00000002L\n# define OPENSSL_INIT_ADD_ALL_CIPHERS        0x00000004L\n# define OPENSSL_INIT_ADD_ALL_DIGESTS        0x00000008L\n# define OPENSSL_INIT_NO_ADD_ALL_CIPHERS     0x00000010L\n# define OPENSSL_INIT_NO_ADD_ALL_DIGESTS     0x00000020L\n# define OPENSSL_INIT_LOAD_CONFIG            0x00000040L\n# define OPENSSL_INIT_NO_LOAD_CONFIG         0x00000080L\n# define OPENSSL_INIT_ASYNC                  0x00000100L\n# define OPENSSL_INIT_ENGINE_RDRAND          0x00000200L\n# define OPENSSL_INIT_ENGINE_DYNAMIC         0x00000400L\n# define OPENSSL_INIT_ENGINE_OPENSSL         0x00000800L\n# define OPENSSL_INIT_ENGINE_CRYPTODEV       0x00001000L\n# define OPENSSL_INIT_ENGINE_CAPI            0x00002000L\n# define OPENSSL_INIT_ENGINE_PADLOCK         0x00004000L\n# define OPENSSL_INIT_ENGINE_AFALG           0x00008000L\n/* OPENSSL_INIT_ZLIB                         0x00010000L */\n# define OPENSSL_INIT_ATFORK                 0x00020000L\n/* OPENSSL_INIT_BASE_ONLY                    0x00040000L */\n# define OPENSSL_INIT_NO_ATEXIT              0x00080000L\n/* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */\n/* Max OPENSSL_INIT flag value is 0x80000000 */\n\n/* openssl and dasync not counted as builtin */\n# define OPENSSL_INIT_ENGINE_ALL_BUILTIN \\\n    (OPENSSL_INIT_ENGINE_RDRAND | OPENSSL_INIT_ENGINE_DYNAMIC \\\n    | OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | \\\n    OPENSSL_INIT_ENGINE_PADLOCK)\n\n\n/* Library initialisation functions */\nvoid OPENSSL_cleanup(void);\nint OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);\nint OPENSSL_atexit(void (*handler)(void));\nvoid OPENSSL_thread_stop(void);\n\n/* Low-level control of initialization */\nOPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void);\n# ifndef OPENSSL_NO_STDIO\nint OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings,\n                                     const char *config_filename);\nvoid OPENSSL_INIT_set_config_file_flags(OPENSSL_INIT_SETTINGS *settings,\n                                        unsigned long flags);\nint OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,\n                                    const char *config_appname);\n# endif\nvoid OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings);\n\n# if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)\n#  if defined(_WIN32)\n#   if defined(BASETYPES) || defined(_WINDEF_H)\n/* application has to include <windows.h> in order to use this */\ntypedef DWORD CRYPTO_THREAD_LOCAL;\ntypedef DWORD CRYPTO_THREAD_ID;\n\ntypedef LONG CRYPTO_ONCE;\n#    define CRYPTO_ONCE_STATIC_INIT 0\n#   endif\n#  else\n#   include <pthread.h>\ntypedef pthread_once_t CRYPTO_ONCE;\ntypedef pthread_key_t CRYPTO_THREAD_LOCAL;\ntypedef pthread_t CRYPTO_THREAD_ID;\n\n#   define CRYPTO_ONCE_STATIC_INIT PTHREAD_ONCE_INIT\n#  endif\n# endif\n\n# if !defined(CRYPTO_ONCE_STATIC_INIT)\ntypedef unsigned int CRYPTO_ONCE;\ntypedef unsigned int CRYPTO_THREAD_LOCAL;\ntypedef unsigned int CRYPTO_THREAD_ID;\n#  define CRYPTO_ONCE_STATIC_INIT 0\n# endif\n\nint CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void));\n\nint CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *));\nvoid *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key);\nint CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val);\nint CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key);\n\nCRYPTO_THREAD_ID CRYPTO_THREAD_get_current_id(void);\nint CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/cryptoerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CRYPTOERR_H\n# define HEADER_CRYPTOERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_CRYPTO_strings(void);\n\n/*\n * CRYPTO function codes.\n */\n# define CRYPTO_F_CMAC_CTX_NEW                            120\n# define CRYPTO_F_CRYPTO_DUP_EX_DATA                      110\n# define CRYPTO_F_CRYPTO_FREE_EX_DATA                     111\n# define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX                 100\n# define CRYPTO_F_CRYPTO_MEMDUP                           115\n# define CRYPTO_F_CRYPTO_NEW_EX_DATA                      112\n# define CRYPTO_F_CRYPTO_OCB128_COPY_CTX                  121\n# define CRYPTO_F_CRYPTO_OCB128_INIT                      122\n# define CRYPTO_F_CRYPTO_SET_EX_DATA                      102\n# define CRYPTO_F_FIPS_MODE_SET                           109\n# define CRYPTO_F_GET_AND_LOCK                            113\n# define CRYPTO_F_OPENSSL_ATEXIT                          114\n# define CRYPTO_F_OPENSSL_BUF2HEXSTR                      117\n# define CRYPTO_F_OPENSSL_FOPEN                           119\n# define CRYPTO_F_OPENSSL_HEXSTR2BUF                      118\n# define CRYPTO_F_OPENSSL_INIT_CRYPTO                     116\n# define CRYPTO_F_OPENSSL_LH_NEW                          126\n# define CRYPTO_F_OPENSSL_SK_DEEP_COPY                    127\n# define CRYPTO_F_OPENSSL_SK_DUP                          128\n# define CRYPTO_F_PKEY_HMAC_INIT                          123\n# define CRYPTO_F_PKEY_POLY1305_INIT                      124\n# define CRYPTO_F_PKEY_SIPHASH_INIT                       125\n# define CRYPTO_F_SK_RESERVE                              129\n\n/*\n * CRYPTO reason codes.\n */\n# define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED                 101\n# define CRYPTO_R_ILLEGAL_HEX_DIGIT                       102\n# define CRYPTO_R_ODD_NUMBER_OF_DIGITS                    103\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ct.h",
    "content": "/*\n * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CT_H\n# define HEADER_CT_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CT\n# include <openssl/ossl_typ.h>\n# include <openssl/safestack.h>\n# include <openssl/x509.h>\n# include <openssl/cterr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n\n/* Minimum RSA key size, from RFC6962 */\n# define SCT_MIN_RSA_BITS 2048\n\n/* All hashes are SHA256 in v1 of Certificate Transparency */\n# define CT_V1_HASHLEN SHA256_DIGEST_LENGTH\n\ntypedef enum {\n    CT_LOG_ENTRY_TYPE_NOT_SET = -1,\n    CT_LOG_ENTRY_TYPE_X509 = 0,\n    CT_LOG_ENTRY_TYPE_PRECERT = 1\n} ct_log_entry_type_t;\n\ntypedef enum {\n    SCT_VERSION_NOT_SET = -1,\n    SCT_VERSION_V1 = 0\n} sct_version_t;\n\ntypedef enum {\n    SCT_SOURCE_UNKNOWN,\n    SCT_SOURCE_TLS_EXTENSION,\n    SCT_SOURCE_X509V3_EXTENSION,\n    SCT_SOURCE_OCSP_STAPLED_RESPONSE\n} sct_source_t;\n\ntypedef enum {\n    SCT_VALIDATION_STATUS_NOT_SET,\n    SCT_VALIDATION_STATUS_UNKNOWN_LOG,\n    SCT_VALIDATION_STATUS_VALID,\n    SCT_VALIDATION_STATUS_INVALID,\n    SCT_VALIDATION_STATUS_UNVERIFIED,\n    SCT_VALIDATION_STATUS_UNKNOWN_VERSION\n} sct_validation_status_t;\n\nDEFINE_STACK_OF(SCT)\nDEFINE_STACK_OF(CTLOG)\n\n/******************************************\n * CT policy evaluation context functions *\n ******************************************/\n\n/*\n * Creates a new, empty policy evaluation context.\n * The caller is responsible for calling CT_POLICY_EVAL_CTX_free when finished\n * with the CT_POLICY_EVAL_CTX.\n */\nCT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void);\n\n/* Deletes a policy evaluation context and anything it owns. */\nvoid CT_POLICY_EVAL_CTX_free(CT_POLICY_EVAL_CTX *ctx);\n\n/* Gets the peer certificate that the SCTs are for */\nX509* CT_POLICY_EVAL_CTX_get0_cert(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the certificate associated with the received SCTs.\n * Increments the reference count of cert.\n * Returns 1 on success, 0 otherwise.\n */\nint CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert);\n\n/* Gets the issuer of the aforementioned certificate */\nX509* CT_POLICY_EVAL_CTX_get0_issuer(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the issuer of the certificate associated with the received SCTs.\n * Increments the reference count of issuer.\n * Returns 1 on success, 0 otherwise.\n */\nint CT_POLICY_EVAL_CTX_set1_issuer(CT_POLICY_EVAL_CTX *ctx, X509 *issuer);\n\n/* Gets the CT logs that are trusted sources of SCTs */\nconst CTLOG_STORE *CT_POLICY_EVAL_CTX_get0_log_store(const CT_POLICY_EVAL_CTX *ctx);\n\n/* Sets the log store that is in use. It must outlive the CT_POLICY_EVAL_CTX. */\nvoid CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE(CT_POLICY_EVAL_CTX *ctx,\n                                               CTLOG_STORE *log_store);\n\n/*\n * Gets the time, in milliseconds since the Unix epoch, that will be used as the\n * current time when checking whether an SCT was issued in the future.\n * Such SCTs will fail validation, as required by RFC6962.\n */\nuint64_t CT_POLICY_EVAL_CTX_get_time(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the time to evaluate SCTs against, in milliseconds since the Unix epoch.\n * If an SCT's timestamp is after this time, it will be interpreted as having\n * been issued in the future. RFC6962 states that \"TLS clients MUST reject SCTs\n * whose timestamp is in the future\", so an SCT will not validate in this case.\n */\nvoid CT_POLICY_EVAL_CTX_set_time(CT_POLICY_EVAL_CTX *ctx, uint64_t time_in_ms);\n\n/*****************\n * SCT functions *\n *****************/\n\n/*\n * Creates a new, blank SCT.\n * The caller is responsible for calling SCT_free when finished with the SCT.\n */\nSCT *SCT_new(void);\n\n/*\n * Creates a new SCT from some base64-encoded strings.\n * The caller is responsible for calling SCT_free when finished with the SCT.\n */\nSCT *SCT_new_from_base64(unsigned char version,\n                         const char *logid_base64,\n                         ct_log_entry_type_t entry_type,\n                         uint64_t timestamp,\n                         const char *extensions_base64,\n                         const char *signature_base64);\n\n/*\n * Frees the SCT and the underlying data structures.\n */\nvoid SCT_free(SCT *sct);\n\n/*\n * Free a stack of SCTs, and the underlying SCTs themselves.\n * Intended to be compatible with X509V3_EXT_FREE.\n */\nvoid SCT_LIST_free(STACK_OF(SCT) *a);\n\n/*\n * Returns the version of the SCT.\n */\nsct_version_t SCT_get_version(const SCT *sct);\n\n/*\n * Set the version of an SCT.\n * Returns 1 on success, 0 if the version is unrecognized.\n */\n__owur int SCT_set_version(SCT *sct, sct_version_t version);\n\n/*\n * Returns the log entry type of the SCT.\n */\nct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct);\n\n/*\n * Set the log entry type of an SCT.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type);\n\n/*\n * Gets the ID of the log that an SCT came from.\n * Ownership of the log ID remains with the SCT.\n * Returns the length of the log ID.\n */\nsize_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);\n\n/*\n * Set the log ID of an SCT to point directly to the *log_id specified.\n * The SCT takes ownership of the specified pointer.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len);\n\n/*\n * Set the log ID of an SCT.\n * This makes a copy of the log_id.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id,\n                           size_t log_id_len);\n\n/*\n * Returns the timestamp for the SCT (epoch time in milliseconds).\n */\nuint64_t SCT_get_timestamp(const SCT *sct);\n\n/*\n * Set the timestamp of an SCT (epoch time in milliseconds).\n */\nvoid SCT_set_timestamp(SCT *sct, uint64_t timestamp);\n\n/*\n * Return the NID for the signature used by the SCT.\n * For CT v1, this will be either NID_sha256WithRSAEncryption or\n * NID_ecdsa_with_SHA256 (or NID_undef if incorrect/unset).\n */\nint SCT_get_signature_nid(const SCT *sct);\n\n/*\n * Set the signature type of an SCT\n * For CT v1, this should be either NID_sha256WithRSAEncryption or\n * NID_ecdsa_with_SHA256.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_signature_nid(SCT *sct, int nid);\n\n/*\n * Set *ext to point to the extension data for the SCT. ext must not be NULL.\n * The SCT retains ownership of this pointer.\n * Returns length of the data pointed to.\n */\nsize_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);\n\n/*\n * Set the extensions of an SCT to point directly to the *ext specified.\n * The SCT takes ownership of the specified pointer.\n */\nvoid SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);\n\n/*\n * Set the extensions of an SCT.\n * This takes a copy of the ext.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_extensions(SCT *sct, const unsigned char *ext,\n                               size_t ext_len);\n\n/*\n * Set *sig to point to the signature for the SCT. sig must not be NULL.\n * The SCT retains ownership of this pointer.\n * Returns length of the data pointed to.\n */\nsize_t SCT_get0_signature(const SCT *sct, unsigned char **sig);\n\n/*\n * Set the signature of an SCT to point directly to the *sig specified.\n * The SCT takes ownership of the specified pointer.\n */\nvoid SCT_set0_signature(SCT *sct, unsigned char *sig, size_t sig_len);\n\n/*\n * Set the signature of an SCT to be a copy of the *sig specified.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_signature(SCT *sct, const unsigned char *sig,\n                              size_t sig_len);\n\n/*\n * The origin of this SCT, e.g. TLS extension, OCSP response, etc.\n */\nsct_source_t SCT_get_source(const SCT *sct);\n\n/*\n * Set the origin of this SCT, e.g. TLS extension, OCSP response, etc.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_source(SCT *sct, sct_source_t source);\n\n/*\n * Returns a text string describing the validation status of |sct|.\n */\nconst char *SCT_validation_status_string(const SCT *sct);\n\n/*\n * Pretty-prints an |sct| to |out|.\n * It will be indented by the number of spaces specified by |indent|.\n * If |logs| is not NULL, it will be used to lookup the CT log that the SCT came\n * from, so that the log name can be printed.\n */\nvoid SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);\n\n/*\n * Pretty-prints an |sct_list| to |out|.\n * It will be indented by the number of spaces specified by |indent|.\n * SCTs will be delimited by |separator|.\n * If |logs| is not NULL, it will be used to lookup the CT log that each SCT\n * came from, so that the log names can be printed.\n */\nvoid SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,\n                    const char *separator, const CTLOG_STORE *logs);\n\n/*\n * Gets the last result of validating this SCT.\n * If it has not been validated yet, returns SCT_VALIDATION_STATUS_NOT_SET.\n */\nsct_validation_status_t SCT_get_validation_status(const SCT *sct);\n\n/*\n * Validates the given SCT with the provided context.\n * Sets the \"validation_status\" field of the SCT.\n * Returns 1 if the SCT is valid and the signature verifies.\n * Returns 0 if the SCT is invalid or could not be verified.\n * Returns -1 if an error occurs.\n */\n__owur int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Validates the given list of SCTs with the provided context.\n * Sets the \"validation_status\" field of each SCT.\n * Returns 1 if there are no invalid SCTs and all signatures verify.\n * Returns 0 if at least one SCT is invalid or could not be verified.\n * Returns a negative integer if an error occurs.\n */\n__owur int SCT_LIST_validate(const STACK_OF(SCT) *scts,\n                             CT_POLICY_EVAL_CTX *ctx);\n\n\n/*********************************\n * SCT parsing and serialisation *\n *********************************/\n\n/*\n * Serialize (to TLS format) a stack of SCTs and return the length.\n * \"a\" must not be NULL.\n * If \"pp\" is NULL, just return the length of what would have been serialized.\n * If \"pp\" is not NULL and \"*pp\" is null, function will allocate a new pointer\n * for data that caller is responsible for freeing (only if function returns\n * successfully).\n * If \"pp\" is NULL and \"*pp\" is not NULL, caller is responsible for ensuring\n * that \"*pp\" is large enough to accept all of the serialized data.\n * Returns < 0 on error, >= 0 indicating bytes written (or would have been)\n * on success.\n */\n__owur int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);\n\n/*\n * Convert TLS format SCT list to a stack of SCTs.\n * If \"a\" or \"*a\" is NULL, a new stack will be created that the caller is\n * responsible for freeing (by calling SCT_LIST_free).\n * \"**pp\" and \"*pp\" must not be NULL.\n * Upon success, \"*pp\" will point to after the last bytes read, and a stack\n * will be returned.\n * Upon failure, a NULL pointer will be returned, and the position of \"*pp\" is\n * not defined.\n */\nSTACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,\n                            size_t len);\n\n/*\n * Serialize (to DER format) a stack of SCTs and return the length.\n * \"a\" must not be NULL.\n * If \"pp\" is NULL, just returns the length of what would have been serialized.\n * If \"pp\" is not NULL and \"*pp\" is null, function will allocate a new pointer\n * for data that caller is responsible for freeing (only if function returns\n * successfully).\n * If \"pp\" is NULL and \"*pp\" is not NULL, caller is responsible for ensuring\n * that \"*pp\" is large enough to accept all of the serialized data.\n * Returns < 0 on error, >= 0 indicating bytes written (or would have been)\n * on success.\n */\n__owur int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);\n\n/*\n * Parses an SCT list in DER format and returns it.\n * If \"a\" or \"*a\" is NULL, a new stack will be created that the caller is\n * responsible for freeing (by calling SCT_LIST_free).\n * \"**pp\" and \"*pp\" must not be NULL.\n * Upon success, \"*pp\" will point to after the last bytes read, and a stack\n * will be returned.\n * Upon failure, a NULL pointer will be returned, and the position of \"*pp\" is\n * not defined.\n */\nSTACK_OF(SCT) *d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,\n                            long len);\n\n/*\n * Serialize (to TLS format) an |sct| and write it to |out|.\n * If |out| is null, no SCT will be output but the length will still be returned.\n * If |out| points to a null pointer, a string will be allocated to hold the\n * TLS-format SCT. It is the responsibility of the caller to free it.\n * If |out| points to an allocated string, the TLS-format SCT will be written\n * to it.\n * The length of the SCT in TLS format will be returned.\n */\n__owur int i2o_SCT(const SCT *sct, unsigned char **out);\n\n/*\n * Parses an SCT in TLS format and returns it.\n * If |psct| is not null, it will end up pointing to the parsed SCT. If it\n * already points to a non-null pointer, the pointer will be free'd.\n * |in| should be a pointer to a string containing the TLS-format SCT.\n * |in| will be advanced to the end of the SCT if parsing succeeds.\n * |len| should be the length of the SCT in |in|.\n * Returns NULL if an error occurs.\n * If the SCT is an unsupported version, only the SCT's 'sct' and 'sct_len'\n * fields will be populated (with |in| and |len| respectively).\n */\nSCT *o2i_SCT(SCT **psct, const unsigned char **in, size_t len);\n\n/********************\n * CT log functions *\n ********************/\n\n/*\n * Creates a new CT log instance with the given |public_key| and |name|.\n * Takes ownership of |public_key| but copies |name|.\n * Returns NULL if malloc fails or if |public_key| cannot be converted to DER.\n * Should be deleted by the caller using CTLOG_free when no longer needed.\n */\nCTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name);\n\n/*\n * Creates a new CTLOG instance with the base64-encoded SubjectPublicKeyInfo DER\n * in |pkey_base64|. The |name| is a string to help users identify this log.\n * Returns 1 on success, 0 on failure.\n * Should be deleted by the caller using CTLOG_free when no longer needed.\n */\nint CTLOG_new_from_base64(CTLOG ** ct_log,\n                          const char *pkey_base64, const char *name);\n\n/*\n * Deletes a CT log instance and its fields.\n */\nvoid CTLOG_free(CTLOG *log);\n\n/* Gets the name of the CT log */\nconst char *CTLOG_get0_name(const CTLOG *log);\n/* Gets the ID of the CT log */\nvoid CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id,\n                       size_t *log_id_len);\n/* Gets the public key of the CT log */\nEVP_PKEY *CTLOG_get0_public_key(const CTLOG *log);\n\n/**************************\n * CT log store functions *\n **************************/\n\n/*\n * Creates a new CT log store.\n * Should be deleted by the caller using CTLOG_STORE_free when no longer needed.\n */\nCTLOG_STORE *CTLOG_STORE_new(void);\n\n/*\n * Deletes a CT log store and all of the CT log instances held within.\n */\nvoid CTLOG_STORE_free(CTLOG_STORE *store);\n\n/*\n * Finds a CT log in the store based on its log ID.\n * Returns the CT log, or NULL if no match is found.\n */\nconst CTLOG *CTLOG_STORE_get0_log_by_id(const CTLOG_STORE *store,\n                                        const uint8_t *log_id,\n                                        size_t log_id_len);\n\n/*\n * Loads a CT log list into a |store| from a |file|.\n * Returns 1 if loading is successful, or 0 otherwise.\n */\n__owur int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file);\n\n/*\n * Loads the default CT log list into a |store|.\n * Returns 1 if loading is successful, or 0 otherwise.\n */\n__owur int CTLOG_STORE_load_default_file(CTLOG_STORE *store);\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/cterr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CTERR_H\n# define HEADER_CTERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CT\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_CT_strings(void);\n\n/*\n * CT function codes.\n */\n#  define CT_F_CTLOG_NEW                                   117\n#  define CT_F_CTLOG_NEW_FROM_BASE64                       118\n#  define CT_F_CTLOG_NEW_FROM_CONF                         119\n#  define CT_F_CTLOG_STORE_LOAD_CTX_NEW                    122\n#  define CT_F_CTLOG_STORE_LOAD_FILE                       123\n#  define CT_F_CTLOG_STORE_LOAD_LOG                        130\n#  define CT_F_CTLOG_STORE_NEW                             131\n#  define CT_F_CT_BASE64_DECODE                            124\n#  define CT_F_CT_POLICY_EVAL_CTX_NEW                      133\n#  define CT_F_CT_V1_LOG_ID_FROM_PKEY                      125\n#  define CT_F_I2O_SCT                                     107\n#  define CT_F_I2O_SCT_LIST                                108\n#  define CT_F_I2O_SCT_SIGNATURE                           109\n#  define CT_F_O2I_SCT                                     110\n#  define CT_F_O2I_SCT_LIST                                111\n#  define CT_F_O2I_SCT_SIGNATURE                           112\n#  define CT_F_SCT_CTX_NEW                                 126\n#  define CT_F_SCT_CTX_VERIFY                              128\n#  define CT_F_SCT_NEW                                     100\n#  define CT_F_SCT_NEW_FROM_BASE64                         127\n#  define CT_F_SCT_SET0_LOG_ID                             101\n#  define CT_F_SCT_SET1_EXTENSIONS                         114\n#  define CT_F_SCT_SET1_LOG_ID                             115\n#  define CT_F_SCT_SET1_SIGNATURE                          116\n#  define CT_F_SCT_SET_LOG_ENTRY_TYPE                      102\n#  define CT_F_SCT_SET_SIGNATURE_NID                       103\n#  define CT_F_SCT_SET_VERSION                             104\n\n/*\n * CT reason codes.\n */\n#  define CT_R_BASE64_DECODE_ERROR                         108\n#  define CT_R_INVALID_LOG_ID_LENGTH                       100\n#  define CT_R_LOG_CONF_INVALID                            109\n#  define CT_R_LOG_CONF_INVALID_KEY                        110\n#  define CT_R_LOG_CONF_MISSING_DESCRIPTION                111\n#  define CT_R_LOG_CONF_MISSING_KEY                        112\n#  define CT_R_LOG_KEY_INVALID                             113\n#  define CT_R_SCT_FUTURE_TIMESTAMP                        116\n#  define CT_R_SCT_INVALID                                 104\n#  define CT_R_SCT_INVALID_SIGNATURE                       107\n#  define CT_R_SCT_LIST_INVALID                            105\n#  define CT_R_SCT_LOG_ID_MISMATCH                         114\n#  define CT_R_SCT_NOT_SET                                 106\n#  define CT_R_SCT_UNSUPPORTED_VERSION                     115\n#  define CT_R_UNRECOGNIZED_SIGNATURE_NID                  101\n#  define CT_R_UNSUPPORTED_ENTRY_TYPE                      102\n#  define CT_R_UNSUPPORTED_VERSION                         103\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/des.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DES_H\n# define HEADER_DES_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DES\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n# include <openssl/e_os2.h>\n\ntypedef unsigned int DES_LONG;\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\ntypedef unsigned char DES_cblock[8];\ntypedef /* const */ unsigned char const_DES_cblock[8];\n/*\n * With \"const\", gcc 2.8.1 on Solaris thinks that DES_cblock * and\n * const_DES_cblock * are incompatible pointer types.\n */\n\ntypedef struct DES_ks {\n    union {\n        DES_cblock cblock;\n        /*\n         * make sure things are correct size on machines with 8 byte longs\n         */\n        DES_LONG deslong[2];\n    } ks[16];\n} DES_key_schedule;\n\n# define DES_KEY_SZ      (sizeof(DES_cblock))\n# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule))\n\n# define DES_ENCRYPT     1\n# define DES_DECRYPT     0\n\n# define DES_CBC_MODE    0\n# define DES_PCBC_MODE   1\n\n# define DES_ecb2_encrypt(i,o,k1,k2,e) \\\n        DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))\n\n# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \\\n        DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))\n\n# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \\\n        DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))\n\n# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \\\n        DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))\n\nOPENSSL_DECLARE_GLOBAL(int, DES_check_key); /* defaults to false */\n# define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key)\n\nconst char *DES_options(void);\nvoid DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,\n                      DES_key_schedule *ks1, DES_key_schedule *ks2,\n                      DES_key_schedule *ks3, int enc);\nDES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output,\n                       long length, DES_key_schedule *schedule,\n                       const_DES_cblock *ivec);\n/* DES_cbc_encrypt does not update the IV!  Use DES_ncbc_encrypt instead. */\nvoid DES_cbc_encrypt(const unsigned char *input, unsigned char *output,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec, int enc);\nvoid DES_ncbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, int enc);\nvoid DES_xcbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, const_DES_cblock *inw,\n                      const_DES_cblock *outw, int enc);\nvoid DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec, int enc);\nvoid DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,\n                     DES_key_schedule *ks, int enc);\n\n/*\n * This is the DES encryption function that gets called by just about every\n * other DES routine in the library.  You should not use this function except\n * to implement 'modes' of DES.  I say this because the functions that call\n * this routine do the conversion from 'char *' to long, and this needs to be\n * done to make sure 'non-aligned' memory access do not occur.  The\n * characters are loaded 'little endian'. Data is a pointer to 2 unsigned\n * long's and ks is the DES_key_schedule to use.  enc, is non zero specifies\n * encryption, zero if decryption.\n */\nvoid DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);\n\n/*\n * This functions is the same as DES_encrypt1() except that the DES initial\n * permutation (IP) and final permutation (FP) have been left out.  As for\n * DES_encrypt1(), you should not use this function. It is used by the\n * routines in the library that implement triple DES. IP() DES_encrypt2()\n * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1()\n * DES_encrypt1() DES_encrypt1() except faster :-).\n */\nvoid DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc);\n\nvoid DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1,\n                  DES_key_schedule *ks2, DES_key_schedule *ks3);\nvoid DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1,\n                  DES_key_schedule *ks2, DES_key_schedule *ks3);\nvoid DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output,\n                          long length,\n                          DES_key_schedule *ks1, DES_key_schedule *ks2,\n                          DES_key_schedule *ks3, DES_cblock *ivec, int enc);\nvoid DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                            long length, DES_key_schedule *ks1,\n                            DES_key_schedule *ks2, DES_key_schedule *ks3,\n                            DES_cblock *ivec, int *num, int enc);\nvoid DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,\n                          int numbits, long length, DES_key_schedule *ks1,\n                          DES_key_schedule *ks2, DES_key_schedule *ks3,\n                          DES_cblock *ivec, int enc);\nvoid DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                            long length, DES_key_schedule *ks1,\n                            DES_key_schedule *ks2, DES_key_schedule *ks3,\n                            DES_cblock *ivec, int *num);\nchar *DES_fcrypt(const char *buf, const char *salt, char *ret);\nchar *DES_crypt(const char *buf, const char *salt);\nvoid DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec);\nvoid DES_pcbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, int enc);\nDES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],\n                        long length, int out_count, DES_cblock *seed);\nint DES_random_key(DES_cblock *ret);\nvoid DES_set_odd_parity(DES_cblock *key);\nint DES_check_key_parity(const_DES_cblock *key);\nint DES_is_weak_key(const_DES_cblock *key);\n/*\n * DES_set_key (= set_key = DES_key_sched = key_sched) calls\n * DES_set_key_checked if global variable DES_check_key is set,\n * DES_set_key_unchecked otherwise.\n */\nint DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule);\nint DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule);\nint DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule);\nvoid DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);\nvoid DES_string_to_key(const char *str, DES_cblock *key);\nvoid DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);\nvoid DES_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, DES_key_schedule *schedule,\n                       DES_cblock *ivec, int *num, int enc);\nvoid DES_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, DES_key_schedule *schedule,\n                       DES_cblock *ivec, int *num);\n\n# define DES_fixup_key_parity DES_set_odd_parity\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/dh.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DH_H\n# define HEADER_DH_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DH\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/dherr.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# ifndef OPENSSL_DH_MAX_MODULUS_BITS\n#  define OPENSSL_DH_MAX_MODULUS_BITS    10000\n# endif\n\n# define OPENSSL_DH_FIPS_MIN_MODULUS_BITS 1024\n\n# define DH_FLAG_CACHE_MONT_P     0x01\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define DH_FLAG_NO_EXP_CONSTTIME 0x00\n# endif\n\n/*\n * If this flag is set the DH method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define DH_FLAG_FIPS_METHOD                     0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define DH_FLAG_NON_FIPS_ALLOW                  0x0400\n\n/* Already defined in ossl_typ.h */\n/* typedef struct dh_st DH; */\n/* typedef struct dh_method DH_METHOD; */\n\nDECLARE_ASN1_ITEM(DHparams)\n\n# define DH_GENERATOR_2          2\n/* #define DH_GENERATOR_3       3 */\n# define DH_GENERATOR_5          5\n\n/* DH_check error codes */\n# define DH_CHECK_P_NOT_PRIME            0x01\n# define DH_CHECK_P_NOT_SAFE_PRIME       0x02\n# define DH_UNABLE_TO_CHECK_GENERATOR    0x04\n# define DH_NOT_SUITABLE_GENERATOR       0x08\n# define DH_CHECK_Q_NOT_PRIME            0x10\n# define DH_CHECK_INVALID_Q_VALUE        0x20\n# define DH_CHECK_INVALID_J_VALUE        0x40\n\n/* DH_check_pub_key error codes */\n# define DH_CHECK_PUBKEY_TOO_SMALL       0x01\n# define DH_CHECK_PUBKEY_TOO_LARGE       0x02\n# define DH_CHECK_PUBKEY_INVALID         0x04\n\n/*\n * primes p where (p-1)/2 is prime too are called \"safe\"; we define this for\n * backward compatibility:\n */\n# define DH_CHECK_P_NOT_STRONG_PRIME     DH_CHECK_P_NOT_SAFE_PRIME\n\n# define d2i_DHparams_fp(fp,x) \\\n    (DH *)ASN1_d2i_fp((char *(*)())DH_new, \\\n                      (char *(*)())d2i_DHparams, \\\n                      (fp), \\\n                      (unsigned char **)(x))\n# define i2d_DHparams_fp(fp,x) \\\n    ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x))\n# define d2i_DHparams_bio(bp,x) \\\n    ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x)\n# define i2d_DHparams_bio(bp,x) \\\n    ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x)\n\n# define d2i_DHxparams_fp(fp,x) \\\n    (DH *)ASN1_d2i_fp((char *(*)())DH_new, \\\n                      (char *(*)())d2i_DHxparams, \\\n                      (fp), \\\n                      (unsigned char **)(x))\n# define i2d_DHxparams_fp(fp,x) \\\n    ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x))\n# define d2i_DHxparams_bio(bp,x) \\\n    ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x)\n# define i2d_DHxparams_bio(bp,x) \\\n    ASN1_i2d_bio_of_const(DH, i2d_DHxparams, bp, x)\n\nDH *DHparams_dup(DH *);\n\nconst DH_METHOD *DH_OpenSSL(void);\n\nvoid DH_set_default_method(const DH_METHOD *meth);\nconst DH_METHOD *DH_get_default_method(void);\nint DH_set_method(DH *dh, const DH_METHOD *meth);\nDH *DH_new_method(ENGINE *engine);\n\nDH *DH_new(void);\nvoid DH_free(DH *dh);\nint DH_up_ref(DH *dh);\nint DH_bits(const DH *dh);\nint DH_size(const DH *dh);\nint DH_security_bits(const DH *dh);\n#define DH_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DH, l, p, newf, dupf, freef)\nint DH_set_ex_data(DH *d, int idx, void *arg);\nvoid *DH_get_ex_data(DH *d, int idx);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(DH *DH_generate_parameters(int prime_len, int generator,\n                                              void (*callback) (int, int,\n                                                                void *),\n                                              void *cb_arg))\n\n/* New version */\nint DH_generate_parameters_ex(DH *dh, int prime_len, int generator,\n                              BN_GENCB *cb);\n\nint DH_check_params_ex(const DH *dh);\nint DH_check_ex(const DH *dh);\nint DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key);\nint DH_check_params(const DH *dh, int *ret);\nint DH_check(const DH *dh, int *codes);\nint DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *codes);\nint DH_generate_key(DH *dh);\nint DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);\nint DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);\nDH *d2i_DHparams(DH **a, const unsigned char **pp, long length);\nint i2d_DHparams(const DH *a, unsigned char **pp);\nDH *d2i_DHxparams(DH **a, const unsigned char **pp, long length);\nint i2d_DHxparams(const DH *a, unsigned char **pp);\n# ifndef OPENSSL_NO_STDIO\nint DHparams_print_fp(FILE *fp, const DH *x);\n# endif\nint DHparams_print(BIO *bp, const DH *x);\n\n/* RFC 5114 parameters */\nDH *DH_get_1024_160(void);\nDH *DH_get_2048_224(void);\nDH *DH_get_2048_256(void);\n\n/* Named parameters, currently RFC7919 */\nDH *DH_new_by_nid(int nid);\nint DH_get_nid(const DH *dh);\n\n# ifndef OPENSSL_NO_CMS\n/* RFC2631 KDF */\nint DH_KDF_X9_42(unsigned char *out, size_t outlen,\n                 const unsigned char *Z, size_t Zlen,\n                 ASN1_OBJECT *key_oid,\n                 const unsigned char *ukm, size_t ukmlen, const EVP_MD *md);\n# endif\n\nvoid DH_get0_pqg(const DH *dh,\n                 const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);\nint DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);\nvoid DH_get0_key(const DH *dh,\n                 const BIGNUM **pub_key, const BIGNUM **priv_key);\nint DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);\nconst BIGNUM *DH_get0_p(const DH *dh);\nconst BIGNUM *DH_get0_q(const DH *dh);\nconst BIGNUM *DH_get0_g(const DH *dh);\nconst BIGNUM *DH_get0_priv_key(const DH *dh);\nconst BIGNUM *DH_get0_pub_key(const DH *dh);\nvoid DH_clear_flags(DH *dh, int flags);\nint DH_test_flags(const DH *dh, int flags);\nvoid DH_set_flags(DH *dh, int flags);\nENGINE *DH_get0_engine(DH *d);\nlong DH_get_length(const DH *dh);\nint DH_set_length(DH *dh, long length);\n\nDH_METHOD *DH_meth_new(const char *name, int flags);\nvoid DH_meth_free(DH_METHOD *dhm);\nDH_METHOD *DH_meth_dup(const DH_METHOD *dhm);\nconst char *DH_meth_get0_name(const DH_METHOD *dhm);\nint DH_meth_set1_name(DH_METHOD *dhm, const char *name);\nint DH_meth_get_flags(const DH_METHOD *dhm);\nint DH_meth_set_flags(DH_METHOD *dhm, int flags);\nvoid *DH_meth_get0_app_data(const DH_METHOD *dhm);\nint DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data);\nint (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *);\nint DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *));\nint (*DH_meth_get_compute_key(const DH_METHOD *dhm))\n        (unsigned char *key, const BIGNUM *pub_key, DH *dh);\nint DH_meth_set_compute_key(DH_METHOD *dhm,\n        int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh));\nint (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))\n    (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n     BN_CTX *, BN_MONT_CTX *);\nint DH_meth_set_bn_mod_exp(DH_METHOD *dhm,\n    int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                       const BIGNUM *, BN_CTX *, BN_MONT_CTX *));\nint (*DH_meth_get_init(const DH_METHOD *dhm))(DH *);\nint DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *));\nint (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *);\nint DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *));\nint (*DH_meth_get_generate_params(const DH_METHOD *dhm))\n        (DH *, int, int, BN_GENCB *);\nint DH_meth_set_generate_params(DH_METHOD *dhm,\n        int (*generate_params) (DH *, int, int, BN_GENCB *));\n\n\n# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_type(ctx, typ) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, typ, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_generator(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_RFC5114, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dhx_rfc5114(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_RFC5114, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dh_nid(ctx, nid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, \\\n                        EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN, \\\n                        EVP_PKEY_CTRL_DH_NID, nid, NULL)\n\n# define EVP_PKEY_CTX_set_dh_pad(ctx, pad) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_DERIVE, \\\n                          EVP_PKEY_CTRL_DH_PAD, pad, NULL)\n\n# define EVP_PKEY_CTX_set_dh_kdf_type(ctx, kdf) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL)\n\n# define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_TYPE, -2, NULL)\n\n# define EVP_PKEY_CTX_set0_dh_kdf_oid(ctx, oid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_OID, 0, (void *)(oid))\n\n# define EVP_PKEY_CTX_get0_dh_kdf_oid(ctx, poid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_OID, 0, (void *)(poid))\n\n# define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_get_dh_kdf_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_MD, 0, (void *)(pmd))\n\n# define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_dh_kdf_outlen(ctx, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                        EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, 0, (void *)(plen))\n\n# define EVP_PKEY_CTX_set0_dh_kdf_ukm(ctx, p, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_UKM, plen, (void *)(p))\n\n# define EVP_PKEY_CTX_get0_dh_kdf_ukm(ctx, p) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_UKM, 0, (void *)(p))\n\n# define EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN     (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR     (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_DH_RFC5114                (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN  (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_TYPE          (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_DH_KDF_TYPE               (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_DH_KDF_MD                 (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_DH_KDF_MD             (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_DH_KDF_OUTLEN             (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN         (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_DH_KDF_UKM                (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET_DH_KDF_UKM            (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_DH_KDF_OID                (EVP_PKEY_ALG_CTRL + 13)\n# define EVP_PKEY_CTRL_GET_DH_KDF_OID            (EVP_PKEY_ALG_CTRL + 14)\n# define EVP_PKEY_CTRL_DH_NID                    (EVP_PKEY_ALG_CTRL + 15)\n# define EVP_PKEY_CTRL_DH_PAD                    (EVP_PKEY_ALG_CTRL + 16)\n\n/* KDF types */\n# define EVP_PKEY_DH_KDF_NONE                            1\n# ifndef OPENSSL_NO_CMS\n# define EVP_PKEY_DH_KDF_X9_42                           2\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/dherr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DHERR_H\n# define HEADER_DHERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DH\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_DH_strings(void);\n\n/*\n * DH function codes.\n */\n#  define DH_F_COMPUTE_KEY                                 102\n#  define DH_F_DHPARAMS_PRINT_FP                           101\n#  define DH_F_DH_BUILTIN_GENPARAMS                        106\n#  define DH_F_DH_CHECK_EX                                 121\n#  define DH_F_DH_CHECK_PARAMS_EX                          122\n#  define DH_F_DH_CHECK_PUB_KEY_EX                         123\n#  define DH_F_DH_CMS_DECRYPT                              114\n#  define DH_F_DH_CMS_SET_PEERKEY                          115\n#  define DH_F_DH_CMS_SET_SHARED_INFO                      116\n#  define DH_F_DH_METH_DUP                                 117\n#  define DH_F_DH_METH_NEW                                 118\n#  define DH_F_DH_METH_SET1_NAME                           119\n#  define DH_F_DH_NEW_BY_NID                               104\n#  define DH_F_DH_NEW_METHOD                               105\n#  define DH_F_DH_PARAM_DECODE                             107\n#  define DH_F_DH_PKEY_PUBLIC_CHECK                        124\n#  define DH_F_DH_PRIV_DECODE                              110\n#  define DH_F_DH_PRIV_ENCODE                              111\n#  define DH_F_DH_PUB_DECODE                               108\n#  define DH_F_DH_PUB_ENCODE                               109\n#  define DH_F_DO_DH_PRINT                                 100\n#  define DH_F_GENERATE_KEY                                103\n#  define DH_F_PKEY_DH_CTRL_STR                            120\n#  define DH_F_PKEY_DH_DERIVE                              112\n#  define DH_F_PKEY_DH_INIT                                125\n#  define DH_F_PKEY_DH_KEYGEN                              113\n\n/*\n * DH reason codes.\n */\n#  define DH_R_BAD_GENERATOR                               101\n#  define DH_R_BN_DECODE_ERROR                             109\n#  define DH_R_BN_ERROR                                    106\n#  define DH_R_CHECK_INVALID_J_VALUE                       115\n#  define DH_R_CHECK_INVALID_Q_VALUE                       116\n#  define DH_R_CHECK_PUBKEY_INVALID                        122\n#  define DH_R_CHECK_PUBKEY_TOO_LARGE                      123\n#  define DH_R_CHECK_PUBKEY_TOO_SMALL                      124\n#  define DH_R_CHECK_P_NOT_PRIME                           117\n#  define DH_R_CHECK_P_NOT_SAFE_PRIME                      118\n#  define DH_R_CHECK_Q_NOT_PRIME                           119\n#  define DH_R_DECODE_ERROR                                104\n#  define DH_R_INVALID_PARAMETER_NAME                      110\n#  define DH_R_INVALID_PARAMETER_NID                       114\n#  define DH_R_INVALID_PUBKEY                              102\n#  define DH_R_KDF_PARAMETER_ERROR                         112\n#  define DH_R_KEYS_NOT_SET                                108\n#  define DH_R_MISSING_PUBKEY                              125\n#  define DH_R_MODULUS_TOO_LARGE                           103\n#  define DH_R_NOT_SUITABLE_GENERATOR                      120\n#  define DH_R_NO_PARAMETERS_SET                           107\n#  define DH_R_NO_PRIVATE_VALUE                            100\n#  define DH_R_PARAMETER_ENCODING_ERROR                    105\n#  define DH_R_PEER_KEY_ERROR                              111\n#  define DH_R_SHARED_INFO_ERROR                           113\n#  define DH_R_UNABLE_TO_CHECK_GENERATOR                   121\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/dsa.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DSA_H\n# define HEADER_DSA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DSA\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/bn.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/dh.h>\n# endif\n# include <openssl/dsaerr.h>\n\n# ifndef OPENSSL_DSA_MAX_MODULUS_BITS\n#  define OPENSSL_DSA_MAX_MODULUS_BITS   10000\n# endif\n\n# define OPENSSL_DSA_FIPS_MIN_MODULUS_BITS 1024\n\n# define DSA_FLAG_CACHE_MONT_P   0x01\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define DSA_FLAG_NO_EXP_CONSTTIME       0x00\n# endif\n\n/*\n * If this flag is set the DSA method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define DSA_FLAG_FIPS_METHOD                    0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define DSA_FLAG_NON_FIPS_ALLOW                 0x0400\n# define DSA_FLAG_FIPS_CHECKED                   0x0800\n\n/* Already defined in ossl_typ.h */\n/* typedef struct dsa_st DSA; */\n/* typedef struct dsa_method DSA_METHOD; */\n\ntypedef struct DSA_SIG_st DSA_SIG;\n\n# define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \\\n                (char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x))\n# define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \\\n                (unsigned char *)(x))\n# define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x)\n# define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x)\n\nDSA *DSAparams_dup(DSA *x);\nDSA_SIG *DSA_SIG_new(void);\nvoid DSA_SIG_free(DSA_SIG *a);\nint i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);\nDSA_SIG *d2i_DSA_SIG(DSA_SIG **v, const unsigned char **pp, long length);\nvoid DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);\nint DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);\n\nDSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);\nint DSA_do_verify(const unsigned char *dgst, int dgst_len,\n                  DSA_SIG *sig, DSA *dsa);\n\nconst DSA_METHOD *DSA_OpenSSL(void);\n\nvoid DSA_set_default_method(const DSA_METHOD *);\nconst DSA_METHOD *DSA_get_default_method(void);\nint DSA_set_method(DSA *dsa, const DSA_METHOD *);\nconst DSA_METHOD *DSA_get_method(DSA *d);\n\nDSA *DSA_new(void);\nDSA *DSA_new_method(ENGINE *engine);\nvoid DSA_free(DSA *r);\n/* \"up\" the DSA object's reference count */\nint DSA_up_ref(DSA *r);\nint DSA_size(const DSA *);\nint DSA_bits(const DSA *d);\nint DSA_security_bits(const DSA *d);\n        /* next 4 return -1 on error */\nDEPRECATEDIN_1_2_0(int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp))\nint DSA_sign(int type, const unsigned char *dgst, int dlen,\n             unsigned char *sig, unsigned int *siglen, DSA *dsa);\nint DSA_verify(int type, const unsigned char *dgst, int dgst_len,\n               const unsigned char *sigbuf, int siglen, DSA *dsa);\n#define DSA_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef)\nint DSA_set_ex_data(DSA *d, int idx, void *arg);\nvoid *DSA_get_ex_data(DSA *d, int idx);\n\nDSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);\nDSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);\nDSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,\n                                                unsigned char *seed,\n                                                int seed_len,\n                                                int *counter_ret,\n                                                unsigned long *h_ret, void\n                                                 (*callback) (int, int,\n                                                              void *),\n                                                void *cb_arg))\n\n/* New version */\nint DSA_generate_parameters_ex(DSA *dsa, int bits,\n                               const unsigned char *seed, int seed_len,\n                               int *counter_ret, unsigned long *h_ret,\n                               BN_GENCB *cb);\n\nint DSA_generate_key(DSA *a);\nint i2d_DSAPublicKey(const DSA *a, unsigned char **pp);\nint i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);\nint i2d_DSAparams(const DSA *a, unsigned char **pp);\n\nint DSAparams_print(BIO *bp, const DSA *x);\nint DSA_print(BIO *bp, const DSA *x, int off);\n# ifndef OPENSSL_NO_STDIO\nint DSAparams_print_fp(FILE *fp, const DSA *x);\nint DSA_print_fp(FILE *bp, const DSA *x, int off);\n# endif\n\n# define DSS_prime_checks 64\n/*\n * Primality test according to FIPS PUB 186-4, Appendix C.3. Since we only\n * have one value here we set the number of checks to 64 which is the 128 bit\n * security level that is the highest level and valid for creating a 3072 bit\n * DSA key.\n */\n# define DSA_is_prime(n, callback, cb_arg) \\\n        BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg)\n\n# ifndef OPENSSL_NO_DH\n/*\n * Convert DSA structure (key or just parameters) into DH structure (be\n * careful to avoid small subgroup attacks when using this!)\n */\nDH *DSA_dup_DH(const DSA *r);\n# endif\n\n# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL)\n# define EVP_PKEY_CTX_set_dsa_paramgen_q_bits(ctx, qbits) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS, qbits, NULL)\n# define EVP_PKEY_CTX_set_dsa_paramgen_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS         (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS       (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_MD           (EVP_PKEY_ALG_CTRL + 3)\n\nvoid DSA_get0_pqg(const DSA *d,\n                  const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);\nint DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);\nvoid DSA_get0_key(const DSA *d,\n                  const BIGNUM **pub_key, const BIGNUM **priv_key);\nint DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);\nconst BIGNUM *DSA_get0_p(const DSA *d);\nconst BIGNUM *DSA_get0_q(const DSA *d);\nconst BIGNUM *DSA_get0_g(const DSA *d);\nconst BIGNUM *DSA_get0_pub_key(const DSA *d);\nconst BIGNUM *DSA_get0_priv_key(const DSA *d);\nvoid DSA_clear_flags(DSA *d, int flags);\nint DSA_test_flags(const DSA *d, int flags);\nvoid DSA_set_flags(DSA *d, int flags);\nENGINE *DSA_get0_engine(DSA *d);\n\nDSA_METHOD *DSA_meth_new(const char *name, int flags);\nvoid DSA_meth_free(DSA_METHOD *dsam);\nDSA_METHOD *DSA_meth_dup(const DSA_METHOD *dsam);\nconst char *DSA_meth_get0_name(const DSA_METHOD *dsam);\nint DSA_meth_set1_name(DSA_METHOD *dsam, const char *name);\nint DSA_meth_get_flags(const DSA_METHOD *dsam);\nint DSA_meth_set_flags(DSA_METHOD *dsam, int flags);\nvoid *DSA_meth_get0_app_data(const DSA_METHOD *dsam);\nint DSA_meth_set0_app_data(DSA_METHOD *dsam, void *app_data);\nDSA_SIG *(*DSA_meth_get_sign(const DSA_METHOD *dsam))\n        (const unsigned char *, int, DSA *);\nint DSA_meth_set_sign(DSA_METHOD *dsam,\n                       DSA_SIG *(*sign) (const unsigned char *, int, DSA *));\nint (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))\n        (DSA *, BN_CTX *, BIGNUM **, BIGNUM **);\nint DSA_meth_set_sign_setup(DSA_METHOD *dsam,\n        int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **));\nint (*DSA_meth_get_verify(const DSA_METHOD *dsam))\n        (const unsigned char *, int, DSA_SIG *, DSA *);\nint DSA_meth_set_verify(DSA_METHOD *dsam,\n    int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *));\nint (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))\n        (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n         const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *);\nint DSA_meth_set_mod_exp(DSA_METHOD *dsam,\n    int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                    const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,\n                    BN_MONT_CTX *));\nint (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))\n    (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n     BN_CTX *, BN_MONT_CTX *);\nint DSA_meth_set_bn_mod_exp(DSA_METHOD *dsam,\n    int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                       const BIGNUM *, BN_CTX *, BN_MONT_CTX *));\nint (*DSA_meth_get_init(const DSA_METHOD *dsam))(DSA *);\nint DSA_meth_set_init(DSA_METHOD *dsam, int (*init)(DSA *));\nint (*DSA_meth_get_finish(const DSA_METHOD *dsam)) (DSA *);\nint DSA_meth_set_finish(DSA_METHOD *dsam, int (*finish) (DSA *));\nint (*DSA_meth_get_paramgen(const DSA_METHOD *dsam))\n        (DSA *, int, const unsigned char *, int, int *, unsigned long *,\n         BN_GENCB *);\nint DSA_meth_set_paramgen(DSA_METHOD *dsam,\n        int (*paramgen) (DSA *, int, const unsigned char *, int, int *,\n                         unsigned long *, BN_GENCB *));\nint (*DSA_meth_get_keygen(const DSA_METHOD *dsam)) (DSA *);\nint DSA_meth_set_keygen(DSA_METHOD *dsam, int (*keygen) (DSA *));\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/dsaerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DSAERR_H\n# define HEADER_DSAERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DSA\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_DSA_strings(void);\n\n/*\n * DSA function codes.\n */\n#  define DSA_F_DSAPARAMS_PRINT                            100\n#  define DSA_F_DSAPARAMS_PRINT_FP                         101\n#  define DSA_F_DSA_BUILTIN_PARAMGEN                       125\n#  define DSA_F_DSA_BUILTIN_PARAMGEN2                      126\n#  define DSA_F_DSA_DO_SIGN                                112\n#  define DSA_F_DSA_DO_VERIFY                              113\n#  define DSA_F_DSA_METH_DUP                               127\n#  define DSA_F_DSA_METH_NEW                               128\n#  define DSA_F_DSA_METH_SET1_NAME                         129\n#  define DSA_F_DSA_NEW_METHOD                             103\n#  define DSA_F_DSA_PARAM_DECODE                           119\n#  define DSA_F_DSA_PRINT_FP                               105\n#  define DSA_F_DSA_PRIV_DECODE                            115\n#  define DSA_F_DSA_PRIV_ENCODE                            116\n#  define DSA_F_DSA_PUB_DECODE                             117\n#  define DSA_F_DSA_PUB_ENCODE                             118\n#  define DSA_F_DSA_SIGN                                   106\n#  define DSA_F_DSA_SIGN_SETUP                             107\n#  define DSA_F_DSA_SIG_NEW                                102\n#  define DSA_F_OLD_DSA_PRIV_DECODE                        122\n#  define DSA_F_PKEY_DSA_CTRL                              120\n#  define DSA_F_PKEY_DSA_CTRL_STR                          104\n#  define DSA_F_PKEY_DSA_KEYGEN                            121\n\n/*\n * DSA reason codes.\n */\n#  define DSA_R_BAD_Q_VALUE                                102\n#  define DSA_R_BN_DECODE_ERROR                            108\n#  define DSA_R_BN_ERROR                                   109\n#  define DSA_R_DECODE_ERROR                               104\n#  define DSA_R_INVALID_DIGEST_TYPE                        106\n#  define DSA_R_INVALID_PARAMETERS                         112\n#  define DSA_R_MISSING_PARAMETERS                         101\n#  define DSA_R_MISSING_PRIVATE_KEY                        111\n#  define DSA_R_MODULUS_TOO_LARGE                          103\n#  define DSA_R_NO_PARAMETERS_SET                          107\n#  define DSA_R_PARAMETER_ENCODING_ERROR                   105\n#  define DSA_R_Q_NOT_PRIME                                113\n#  define DSA_R_SEED_LEN_SMALL                             110\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/dtls1.h",
    "content": "/*\n * Copyright 2005-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DTLS1_H\n# define HEADER_DTLS1_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define DTLS1_VERSION                   0xFEFF\n# define DTLS1_2_VERSION                 0xFEFD\n# define DTLS_MIN_VERSION                DTLS1_VERSION\n# define DTLS_MAX_VERSION                DTLS1_2_VERSION\n# define DTLS1_VERSION_MAJOR             0xFE\n\n# define DTLS1_BAD_VER                   0x0100\n\n/* Special value for method supporting multiple versions */\n# define DTLS_ANY_VERSION                0x1FFFF\n\n/* lengths of messages */\n/*\n * Actually the max cookie length in DTLS is 255. But we can't change this now\n * due to compatibility concerns.\n */\n# define DTLS1_COOKIE_LENGTH                     256\n\n# define DTLS1_RT_HEADER_LENGTH                  13\n\n# define DTLS1_HM_HEADER_LENGTH                  12\n\n# define DTLS1_HM_BAD_FRAGMENT                   -2\n# define DTLS1_HM_FRAGMENT_RETRY                 -3\n\n# define DTLS1_CCS_HEADER_LENGTH                  1\n\n# define DTLS1_AL_HEADER_LENGTH                   2\n\n/* Timeout multipliers */\n# define DTLS1_TMO_READ_COUNT                      2\n# define DTLS1_TMO_WRITE_COUNT                     2\n\n# define DTLS1_TMO_ALERT_COUNT                     12\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/e_os2.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_E_OS2_H\n# define HEADER_E_OS2_H\n\n# include <openssl/opensslconf.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/******************************************************************************\n * Detect operating systems.  This probably needs completing.\n * The result is that at least one OPENSSL_SYS_os macro should be defined.\n * However, if none is defined, Unix is assumed.\n **/\n\n# define OPENSSL_SYS_UNIX\n\n/* --------------------- Microsoft operating systems ---------------------- */\n\n/*\n * Note that MSDOS actually denotes 32-bit environments running on top of\n * MS-DOS, such as DJGPP one.\n */\n# if defined(OPENSSL_SYS_MSDOS)\n#  undef OPENSSL_SYS_UNIX\n# endif\n\n/*\n * For 32 bit environment, there seems to be the CygWin environment and then\n * all the others that try to do the same thing Microsoft does...\n */\n/*\n * UEFI lives here because it might be built with a Microsoft toolchain and\n * we need to avoid the false positive match on Windows.\n */\n# if defined(OPENSSL_SYS_UEFI)\n#  undef OPENSSL_SYS_UNIX\n# elif defined(OPENSSL_SYS_UWIN)\n#  undef OPENSSL_SYS_UNIX\n#  define OPENSSL_SYS_WIN32_UWIN\n# else\n#  if defined(__CYGWIN__) || defined(OPENSSL_SYS_CYGWIN)\n#   define OPENSSL_SYS_WIN32_CYGWIN\n#  else\n#   if defined(_WIN32) || defined(OPENSSL_SYS_WIN32)\n#    undef OPENSSL_SYS_UNIX\n#    if !defined(OPENSSL_SYS_WIN32)\n#     define OPENSSL_SYS_WIN32\n#    endif\n#   endif\n#   if defined(_WIN64) || defined(OPENSSL_SYS_WIN64)\n#    undef OPENSSL_SYS_UNIX\n#    if !defined(OPENSSL_SYS_WIN64)\n#     define OPENSSL_SYS_WIN64\n#    endif\n#   endif\n#   if defined(OPENSSL_SYS_WINNT)\n#    undef OPENSSL_SYS_UNIX\n#   endif\n#   if defined(OPENSSL_SYS_WINCE)\n#    undef OPENSSL_SYS_UNIX\n#   endif\n#  endif\n# endif\n\n/* Anything that tries to look like Microsoft is \"Windows\" */\n# if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN64) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)\n#  undef OPENSSL_SYS_UNIX\n#  define OPENSSL_SYS_WINDOWS\n#  ifndef OPENSSL_SYS_MSDOS\n#   define OPENSSL_SYS_MSDOS\n#  endif\n# endif\n\n/*\n * DLL settings.  This part is a bit tough, because it's up to the\n * application implementor how he or she will link the application, so it\n * requires some macro to be used.\n */\n# ifdef OPENSSL_SYS_WINDOWS\n#  ifndef OPENSSL_OPT_WINDLL\n#   if defined(_WINDLL)         /* This is used when building OpenSSL to\n                                 * indicate that DLL linkage should be used */\n#    define OPENSSL_OPT_WINDLL\n#   endif\n#  endif\n# endif\n\n/* ------------------------------- OpenVMS -------------------------------- */\n# if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYS_VMS)\n#  if !defined(OPENSSL_SYS_VMS)\n#   undef OPENSSL_SYS_UNIX\n#  endif\n#  define OPENSSL_SYS_VMS\n#  if defined(__DECC)\n#   define OPENSSL_SYS_VMS_DECC\n#  elif defined(__DECCXX)\n#   define OPENSSL_SYS_VMS_DECC\n#   define OPENSSL_SYS_VMS_DECCXX\n#  else\n#   define OPENSSL_SYS_VMS_NODECC\n#  endif\n# endif\n\n/* -------------------------------- Unix ---------------------------------- */\n# ifdef OPENSSL_SYS_UNIX\n#  if defined(linux) || defined(__linux__) && !defined(OPENSSL_SYS_LINUX)\n#   define OPENSSL_SYS_LINUX\n#  endif\n#  if defined(_AIX) && !defined(OPENSSL_SYS_AIX)\n#   define OPENSSL_SYS_AIX\n#  endif\n# endif\n\n/* -------------------------------- VOS ----------------------------------- */\n# if defined(__VOS__) && !defined(OPENSSL_SYS_VOS)\n#  define OPENSSL_SYS_VOS\n#  ifdef __HPPA__\n#   define OPENSSL_SYS_VOS_HPPA\n#  endif\n#  ifdef __IA32__\n#   define OPENSSL_SYS_VOS_IA32\n#  endif\n# endif\n\n/**\n * That's it for OS-specific stuff\n *****************************************************************************/\n\n/* Specials for I/O an exit */\n# ifdef OPENSSL_SYS_MSDOS\n#  define OPENSSL_UNISTD_IO <io.h>\n#  define OPENSSL_DECLARE_EXIT extern void exit(int);\n# else\n#  define OPENSSL_UNISTD_IO OPENSSL_UNISTD\n#  define OPENSSL_DECLARE_EXIT  /* declared in unistd.h */\n# endif\n\n/*-\n * OPENSSL_EXTERN is normally used to declare a symbol with possible extra\n * attributes to handle its presence in a shared library.\n * OPENSSL_EXPORT is used to define a symbol with extra possible attributes\n * to make it visible in a shared library.\n * Care needs to be taken when a header file is used both to declare and\n * define symbols.  Basically, for any library that exports some global\n * variables, the following code must be present in the header file that\n * declares them, before OPENSSL_EXTERN is used:\n *\n * #ifdef SOME_BUILD_FLAG_MACRO\n * # undef OPENSSL_EXTERN\n * # define OPENSSL_EXTERN OPENSSL_EXPORT\n * #endif\n *\n * The default is to have OPENSSL_EXPORT and OPENSSL_EXTERN\n * have some generally sensible values.\n */\n\n# if defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)\n#  define OPENSSL_EXPORT extern __declspec(dllexport)\n#  define OPENSSL_EXTERN extern __declspec(dllimport)\n# else\n#  define OPENSSL_EXPORT extern\n#  define OPENSSL_EXTERN extern\n# endif\n\n/*-\n * Macros to allow global variables to be reached through function calls when\n * required (if a shared library version requires it, for example.\n * The way it's done allows definitions like this:\n *\n *      // in foobar.c\n *      OPENSSL_IMPLEMENT_GLOBAL(int,foobar,0)\n *      // in foobar.h\n *      OPENSSL_DECLARE_GLOBAL(int,foobar);\n *      #define foobar OPENSSL_GLOBAL_REF(foobar)\n */\n# ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION\n#  define OPENSSL_IMPLEMENT_GLOBAL(type,name,value)                      \\\n        type *_shadow_##name(void)                                      \\\n        { static type _hide_##name=value; return &_hide_##name; }\n#  define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)\n#  define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))\n# else\n#  define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) type _shadow_##name=value;\n#  define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name\n#  define OPENSSL_GLOBAL_REF(name) _shadow_##name\n# endif\n\n# ifdef _WIN32\n#  ifdef _WIN64\n#   define ossl_ssize_t __int64\n#   define OSSL_SSIZE_MAX _I64_MAX\n#  else\n#   define ossl_ssize_t int\n#   define OSSL_SSIZE_MAX INT_MAX\n#  endif\n# endif\n\n# if defined(OPENSSL_SYS_UEFI) && !defined(ossl_ssize_t)\n#  define ossl_ssize_t INTN\n#  define OSSL_SSIZE_MAX MAX_INTN\n# endif\n\n# ifndef ossl_ssize_t\n#  define ossl_ssize_t ssize_t\n#  if defined(SSIZE_MAX)\n#   define OSSL_SSIZE_MAX SSIZE_MAX\n#  elif defined(_POSIX_SSIZE_MAX)\n#   define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX\n#  else\n#   define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX>>1))\n#  endif\n# endif\n\n# ifdef DEBUG_UNUSED\n#  define __owur __attribute__((__warn_unused_result__))\n# else\n#  define __owur\n# endif\n\n/* Standard integer types */\n# if defined(OPENSSL_SYS_UEFI)\ntypedef INT8 int8_t;\ntypedef UINT8 uint8_t;\ntypedef INT16 int16_t;\ntypedef UINT16 uint16_t;\ntypedef INT32 int32_t;\ntypedef UINT32 uint32_t;\ntypedef INT64 int64_t;\ntypedef UINT64 uint64_t;\n# elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \\\n     defined(__osf__) || defined(__sgi) || defined(__hpux) || \\\n     defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)\n#  include <inttypes.h>\n# elif defined(_MSC_VER) && _MSC_VER<1600\n/*\n * minimally required typdefs for systems not supporting inttypes.h or\n * stdint.h: currently just older VC++\n */\ntypedef signed char int8_t;\ntypedef unsigned char uint8_t;\ntypedef short int16_t;\ntypedef unsigned short uint16_t;\ntypedef int int32_t;\ntypedef unsigned int uint32_t;\ntypedef __int64 int64_t;\ntypedef unsigned __int64 uint64_t;\n# else\n#  include <stdint.h>\n# endif\n\n/* ossl_inline: portable inline definition usable in public headers */\n# if !defined(inline) && !defined(__cplusplus)\n#  if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L\n   /* just use inline */\n#   define ossl_inline inline\n#  elif defined(__GNUC__) && __GNUC__>=2\n#   define ossl_inline __inline__\n#  elif defined(_MSC_VER)\n  /*\n   * Visual Studio: inline is available in C++ only, however\n   * __inline is available for C, see\n   * http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx\n   */\n#   define ossl_inline __inline\n#  else\n#   define ossl_inline\n#  endif\n# else\n#  define ossl_inline inline\n# endif\n\n# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L\n#  define ossl_noreturn _Noreturn\n# elif defined(__GNUC__) && __GNUC__ >= 2\n#  define ossl_noreturn __attribute__((noreturn))\n# else\n#  define ossl_noreturn\n# endif\n\n/* ossl_unused: portable unused attribute for use in public headers */\n# if defined(__GNUC__)\n#  define ossl_unused __attribute__((unused))\n# else\n#  define ossl_unused\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ebcdic.h",
    "content": "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EBCDIC_H\n# define HEADER_EBCDIC_H\n\n# include <stdlib.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Avoid name clashes with other applications */\n# define os_toascii   _openssl_os_toascii\n# define os_toebcdic  _openssl_os_toebcdic\n# define ebcdic2ascii _openssl_ebcdic2ascii\n# define ascii2ebcdic _openssl_ascii2ebcdic\n\nextern const unsigned char os_toascii[256];\nextern const unsigned char os_toebcdic[256];\nvoid *ebcdic2ascii(void *dest, const void *srce, size_t count);\nvoid *ascii2ebcdic(void *dest, const void *srce, size_t count);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ec.h",
    "content": "/*\n * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EC_H\n# define HEADER_EC_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_EC\n# include <openssl/asn1.h>\n# include <openssl/symhacks.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/ecerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# ifndef OPENSSL_ECC_MAX_FIELD_BITS\n#  define OPENSSL_ECC_MAX_FIELD_BITS 661\n# endif\n\n/** Enum for the point conversion form as defined in X9.62 (ECDSA)\n *  for the encoding of a elliptic curve point (x,y) */\ntypedef enum {\n        /** the point is encoded as z||x, where the octet z specifies\n         *  which solution of the quadratic equation y is  */\n    POINT_CONVERSION_COMPRESSED = 2,\n        /** the point is encoded as z||x||y, where z is the octet 0x04  */\n    POINT_CONVERSION_UNCOMPRESSED = 4,\n        /** the point is encoded as z||x||y, where the octet z specifies\n         *  which solution of the quadratic equation y is  */\n    POINT_CONVERSION_HYBRID = 6\n} point_conversion_form_t;\n\ntypedef struct ec_method_st EC_METHOD;\ntypedef struct ec_group_st EC_GROUP;\ntypedef struct ec_point_st EC_POINT;\ntypedef struct ecpk_parameters_st ECPKPARAMETERS;\ntypedef struct ec_parameters_st ECPARAMETERS;\n\n/********************************************************************/\n/*               EC_METHODs for curves over GF(p)                   */\n/********************************************************************/\n\n/** Returns the basic GFp ec methods which provides the basis for the\n *  optimized methods.\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_simple_method(void);\n\n/** Returns GFp methods using montgomery multiplication.\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_mont_method(void);\n\n/** Returns GFp methods using optimized methods for NIST recommended curves\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nist_method(void);\n\n# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\n/** Returns 64-bit optimized methods for nistp224\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp224_method(void);\n\n/** Returns 64-bit optimized methods for nistp256\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp256_method(void);\n\n/** Returns 64-bit optimized methods for nistp521\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp521_method(void);\n# endif\n\n# ifndef OPENSSL_NO_EC2M\n/********************************************************************/\n/*           EC_METHOD for curves over GF(2^m)                      */\n/********************************************************************/\n\n/** Returns the basic GF2m ec method\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GF2m_simple_method(void);\n\n# endif\n\n/********************************************************************/\n/*                   EC_GROUP functions                             */\n/********************************************************************/\n\n/** Creates a new EC_GROUP object\n *  \\param   meth  EC_METHOD to use\n *  \\return  newly created EC_GROUP object or NULL in case of an error.\n */\nEC_GROUP *EC_GROUP_new(const EC_METHOD *meth);\n\n/** Frees a EC_GROUP object\n *  \\param  group  EC_GROUP object to be freed.\n */\nvoid EC_GROUP_free(EC_GROUP *group);\n\n/** Clears and frees a EC_GROUP object\n *  \\param  group  EC_GROUP object to be cleared and freed.\n */\nvoid EC_GROUP_clear_free(EC_GROUP *group);\n\n/** Copies EC_GROUP objects. Note: both EC_GROUPs must use the same EC_METHOD.\n *  \\param  dst  destination EC_GROUP object\n *  \\param  src  source EC_GROUP object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src);\n\n/** Creates a new EC_GROUP object and copies the copies the content\n *  form src to the newly created EC_KEY object\n *  \\param  src  source EC_GROUP object\n *  \\return newly created EC_GROUP object or NULL in case of an error.\n */\nEC_GROUP *EC_GROUP_dup(const EC_GROUP *src);\n\n/** Returns the EC_METHOD of the EC_GROUP object.\n *  \\param  group  EC_GROUP object\n *  \\return EC_METHOD used in this EC_GROUP object.\n */\nconst EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);\n\n/** Returns the field type of the EC_METHOD.\n *  \\param  meth  EC_METHOD object\n *  \\return NID of the underlying field type OID.\n */\nint EC_METHOD_get_field_type(const EC_METHOD *meth);\n\n/** Sets the generator and its order/cofactor of a EC_GROUP object.\n *  \\param  group      EC_GROUP object\n *  \\param  generator  EC_POINT object with the generator.\n *  \\param  order      the order of the group generated by the generator.\n *  \\param  cofactor   the index of the sub-group generated by the generator\n *                     in the group of all points on the elliptic curve.\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,\n                           const BIGNUM *order, const BIGNUM *cofactor);\n\n/** Returns the generator of a EC_GROUP object.\n *  \\param  group  EC_GROUP object\n *  \\return the currently used generator (possibly NULL).\n */\nconst EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);\n\n/** Returns the montgomery data for order(Generator)\n *  \\param  group  EC_GROUP object\n *  \\return the currently used montgomery data (possibly NULL).\n*/\nBN_MONT_CTX *EC_GROUP_get_mont_data(const EC_GROUP *group);\n\n/** Gets the order of a EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\param  order  BIGNUM to which the order is copied\n *  \\param  ctx    unused\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);\n\n/** Gets the order of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return the group order\n */\nconst BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);\n\n/** Gets the number of bits of the order of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return number of bits of group order.\n */\nint EC_GROUP_order_bits(const EC_GROUP *group);\n\n/** Gets the cofactor of a EC_GROUP\n *  \\param  group     EC_GROUP object\n *  \\param  cofactor  BIGNUM to which the cofactor is copied\n *  \\param  ctx       unused\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor,\n                          BN_CTX *ctx);\n\n/** Gets the cofactor of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return the group cofactor\n */\nconst BIGNUM *EC_GROUP_get0_cofactor(const EC_GROUP *group);\n\n/** Sets the name of a EC_GROUP object\n *  \\param  group  EC_GROUP object\n *  \\param  nid    NID of the curve name OID\n */\nvoid EC_GROUP_set_curve_name(EC_GROUP *group, int nid);\n\n/** Returns the curve name of a EC_GROUP object\n *  \\param  group  EC_GROUP object\n *  \\return NID of the curve name OID or 0 if not set.\n */\nint EC_GROUP_get_curve_name(const EC_GROUP *group);\n\nvoid EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag);\nint EC_GROUP_get_asn1_flag(const EC_GROUP *group);\n\nvoid EC_GROUP_set_point_conversion_form(EC_GROUP *group,\n                                        point_conversion_form_t form);\npoint_conversion_form_t EC_GROUP_get_point_conversion_form(const EC_GROUP *);\n\nunsigned char *EC_GROUP_get0_seed(const EC_GROUP *x);\nsize_t EC_GROUP_get_seed_len(const EC_GROUP *);\nsize_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len);\n\n/** Sets the parameters of a ec curve defined by y^2 = x^3 + a*x + b (for GFp)\n *  or y^2 + x*y = x^3 + a*x^2 + b (for GF2m)\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,\n                       const BIGNUM *b, BN_CTX *ctx);\n\n/** Gets the parameters of the ec curve defined by y^2 = x^3 + a*x + b (for GFp)\n *  or y^2 + x*y = x^3 + a*x^2 + b (for GF2m)\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,\n                       BN_CTX *ctx);\n\n/** Sets the parameters of an ec curve. Synonym for EC_GROUP_set_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p,\n                                              const BIGNUM *a, const BIGNUM *b,\n                                              BN_CTX *ctx))\n\n/** Gets the parameters of an ec curve. Synonym for EC_GROUP_get_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p,\n                                              BIGNUM *a, BIGNUM *b,\n                                              BN_CTX *ctx))\n\n# ifndef OPENSSL_NO_EC2M\n/** Sets the parameter of an ec curve. Synonym for EC_GROUP_set_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p,\n                                               const BIGNUM *a, const BIGNUM *b,\n                                               BN_CTX *ctx))\n\n/** Gets the parameters of an ec curve. Synonym for EC_GROUP_get_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p,\n                                               BIGNUM *a, BIGNUM *b,\n                                               BN_CTX *ctx))\n# endif\n/** Returns the number of bits needed to represent a field element\n *  \\param  group  EC_GROUP object\n *  \\return number of bits needed to represent a field element\n */\nint EC_GROUP_get_degree(const EC_GROUP *group);\n\n/** Checks whether the parameter in the EC_GROUP define a valid ec group\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if group is a valid ec group and 0 otherwise\n */\nint EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx);\n\n/** Checks whether the discriminant of the elliptic curve is zero or not\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the discriminant is not zero and 0 otherwise\n */\nint EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx);\n\n/** Compares two EC_GROUP objects\n *  \\param  a    first EC_GROUP object\n *  \\param  b    second EC_GROUP object\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return 0 if the groups are equal, 1 if not, or -1 on error\n */\nint EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx);\n\n/*\n * EC_GROUP_new_GF*() calls EC_GROUP_new() and EC_GROUP_set_GF*() after\n * choosing an appropriate EC_METHOD\n */\n\n/** Creates a new EC_GROUP object with the specified parameters defined\n *  over GFp (defined by the equation y^2 = x^3 + a*x + b)\n *  \\param  p    BIGNUM with the prime number\n *  \\param  a    BIGNUM with the parameter a of the equation\n *  \\param  b    BIGNUM with the parameter b of the equation\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return newly created EC_GROUP object with the specified parameters\n */\nEC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,\n                                 const BIGNUM *b, BN_CTX *ctx);\n# ifndef OPENSSL_NO_EC2M\n/** Creates a new EC_GROUP object with the specified parameters defined\n *  over GF2m (defined by the equation y^2 + x*y = x^3 + a*x^2 + b)\n *  \\param  p    BIGNUM with the polynomial defining the underlying field\n *  \\param  a    BIGNUM with the parameter a of the equation\n *  \\param  b    BIGNUM with the parameter b of the equation\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return newly created EC_GROUP object with the specified parameters\n */\nEC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a,\n                                  const BIGNUM *b, BN_CTX *ctx);\n# endif\n\n/** Creates a EC_GROUP object with a curve specified by a NID\n *  \\param  nid  NID of the OID of the curve name\n *  \\return newly created EC_GROUP object with specified curve or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_by_curve_name(int nid);\n\n/** Creates a new EC_GROUP object from an ECPARAMETERS object\n *  \\param  params  pointer to the ECPARAMETERS object\n *  \\return newly created EC_GROUP object with specified curve or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params);\n\n/** Creates an ECPARAMETERS object for the given EC_GROUP object.\n *  \\param  group   pointer to the EC_GROUP object\n *  \\param  params  pointer to an existing ECPARAMETERS object or NULL\n *  \\return pointer to the new ECPARAMETERS object or NULL\n *          if an error occurred.\n */\nECPARAMETERS *EC_GROUP_get_ecparameters(const EC_GROUP *group,\n                                        ECPARAMETERS *params);\n\n/** Creates a new EC_GROUP object from an ECPKPARAMETERS object\n *  \\param  params  pointer to an existing ECPKPARAMETERS object, or NULL\n *  \\return newly created EC_GROUP object with specified curve, or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_from_ecpkparameters(const ECPKPARAMETERS *params);\n\n/** Creates an ECPKPARAMETERS object for the given EC_GROUP object.\n *  \\param  group   pointer to the EC_GROUP object\n *  \\param  params  pointer to an existing ECPKPARAMETERS object or NULL\n *  \\return pointer to the new ECPKPARAMETERS object or NULL\n *          if an error occurred.\n */\nECPKPARAMETERS *EC_GROUP_get_ecpkparameters(const EC_GROUP *group,\n                                            ECPKPARAMETERS *params);\n\n/********************************************************************/\n/*               handling of internal curves                        */\n/********************************************************************/\n\ntypedef struct {\n    int nid;\n    const char *comment;\n} EC_builtin_curve;\n\n/*\n * EC_builtin_curves(EC_builtin_curve *r, size_t size) returns number of all\n * available curves or zero if a error occurred. In case r is not zero,\n * nitems EC_builtin_curve structures are filled with the data of the first\n * nitems internal groups\n */\nsize_t EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems);\n\nconst char *EC_curve_nid2nist(int nid);\nint EC_curve_nist2nid(const char *name);\n\n/********************************************************************/\n/*                    EC_POINT functions                            */\n/********************************************************************/\n\n/** Creates a new EC_POINT object for the specified EC_GROUP\n *  \\param  group  EC_GROUP the underlying EC_GROUP object\n *  \\return newly created EC_POINT object or NULL if an error occurred\n */\nEC_POINT *EC_POINT_new(const EC_GROUP *group);\n\n/** Frees a EC_POINT object\n *  \\param  point  EC_POINT object to be freed\n */\nvoid EC_POINT_free(EC_POINT *point);\n\n/** Clears and frees a EC_POINT object\n *  \\param  point  EC_POINT object to be cleared and freed\n */\nvoid EC_POINT_clear_free(EC_POINT *point);\n\n/** Copies EC_POINT object\n *  \\param  dst  destination EC_POINT object\n *  \\param  src  source EC_POINT object\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_copy(EC_POINT *dst, const EC_POINT *src);\n\n/** Creates a new EC_POINT object and copies the content of the supplied\n *  EC_POINT\n *  \\param  src    source EC_POINT object\n *  \\param  group  underlying the EC_GROUP object\n *  \\return newly created EC_POINT object or NULL if an error occurred\n */\nEC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group);\n\n/** Returns the EC_METHOD used in EC_POINT object\n *  \\param  point  EC_POINT object\n *  \\return the EC_METHOD used\n */\nconst EC_METHOD *EC_POINT_method_of(const EC_POINT *point);\n\n/** Sets a point to infinity (neutral element)\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT to set to infinity\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);\n\n/** Sets the jacobian projective coordinates of a EC_POINT over GFp\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  z      BIGNUM with the z-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group,\n                                             EC_POINT *p, const BIGNUM *x,\n                                             const BIGNUM *y, const BIGNUM *z,\n                                             BN_CTX *ctx);\n\n/** Gets the jacobian projective coordinates of a EC_POINT over GFp\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  z      BIGNUM for the z-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,\n                                             const EC_POINT *p, BIGNUM *x,\n                                             BIGNUM *y, BIGNUM *z,\n                                             BN_CTX *ctx);\n\n/** Sets the affine coordinates of an EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p,\n                                    const BIGNUM *x, const BIGNUM *y,\n                                    BN_CTX *ctx);\n\n/** Gets the affine coordinates of an EC_POINT.\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,\n                                    BIGNUM *x, BIGNUM *y, BN_CTX *ctx);\n\n/** Sets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_set_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group,\n                                                           EC_POINT *p,\n                                                           const BIGNUM *x,\n                                                           const BIGNUM *y,\n                                                           BN_CTX *ctx))\n\n/** Gets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_get_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,\n                                                           const EC_POINT *p,\n                                                           BIGNUM *x,\n                                                           BIGNUM *y,\n                                                           BN_CTX *ctx))\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,\n                                        const BIGNUM *x, int y_bit,\n                                        BN_CTX *ctx);\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT. A synonym of\n *  EC_POINT_set_compressed_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group,\n                                                               EC_POINT *p,\n                                                               const BIGNUM *x,\n                                                               int y_bit,\n                                                               BN_CTX *ctx))\n# ifndef OPENSSL_NO_EC2M\n/** Sets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_set_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group,\n                                                            EC_POINT *p,\n                                                            const BIGNUM *x,\n                                                            const BIGNUM *y,\n                                                            BN_CTX *ctx))\n\n/** Gets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_get_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *group,\n                                                            const EC_POINT *p,\n                                                            BIGNUM *x,\n                                                            BIGNUM *y,\n                                                            BN_CTX *ctx))\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT. A synonym of\n *  EC_POINT_set_compressed_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group,\n                                                                EC_POINT *p,\n                                                                const BIGNUM *x,\n                                                                int y_bit,\n                                                                BN_CTX *ctx))\n# endif\n/** Encodes a EC_POINT object to a octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  form   point conversion form\n *  \\param  buf    memory buffer for the result. If NULL the function returns\n *                 required buffer size.\n *  \\param  len    length of the memory buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p,\n                          point_conversion_form_t form,\n                          unsigned char *buf, size_t len, BN_CTX *ctx);\n\n/** Decodes a EC_POINT from a octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  buf    memory buffer with the encoded ec point\n *  \\param  len    length of the encoded ec point\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p,\n                       const unsigned char *buf, size_t len, BN_CTX *ctx);\n\n/** Encodes an EC_POINT object to an allocated octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT object\n *  \\param  form   point conversion form\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,\n                          point_conversion_form_t form,\n                          unsigned char **pbuf, BN_CTX *ctx);\n\n/* other interfaces to point2oct/oct2point: */\nBIGNUM *EC_POINT_point2bn(const EC_GROUP *, const EC_POINT *,\n                          point_conversion_form_t form, BIGNUM *, BN_CTX *);\nEC_POINT *EC_POINT_bn2point(const EC_GROUP *, const BIGNUM *,\n                            EC_POINT *, BN_CTX *);\nchar *EC_POINT_point2hex(const EC_GROUP *, const EC_POINT *,\n                         point_conversion_form_t form, BN_CTX *);\nEC_POINT *EC_POINT_hex2point(const EC_GROUP *, const char *,\n                             EC_POINT *, BN_CTX *);\n\n/********************************************************************/\n/*         functions for doing EC_POINT arithmetic                  */\n/********************************************************************/\n\n/** Computes the sum of two EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result (r = a + b)\n *  \\param  a      EC_POINT object with the first summand\n *  \\param  b      EC_POINT object with the second summand\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,\n                 const EC_POINT *b, BN_CTX *ctx);\n\n/** Computes the double of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result (r = 2 * a)\n *  \\param  a      EC_POINT object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,\n                 BN_CTX *ctx);\n\n/** Computes the inverse of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  a      EC_POINT object to be inverted (it's used for the result as well)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx);\n\n/** Checks whether the point is the neutral element of the group\n *  \\param  group  the underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\return 1 if the point is the neutral element and 0 otherwise\n */\nint EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *p);\n\n/** Checks whether the point is on the curve\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT object to check\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the point is on the curve, 0 if not, or -1 on error\n */\nint EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,\n                         BN_CTX *ctx);\n\n/** Compares two EC_POINTs\n *  \\param  group  underlying EC_GROUP object\n *  \\param  a      first EC_POINT object\n *  \\param  b      second EC_POINT object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the points are not equal, 0 if they are, or -1 on error\n */\nint EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,\n                 BN_CTX *ctx);\n\nint EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);\nint EC_POINTs_make_affine(const EC_GROUP *group, size_t num,\n                          EC_POINT *points[], BN_CTX *ctx);\n\n/** Computes r = generator * n + sum_{i=0}^{num-1} p[i] * m[i]\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result\n *  \\param  n      BIGNUM with the multiplier for the group generator (optional)\n *  \\param  num    number further summands\n *  \\param  p      array of size num of EC_POINT objects\n *  \\param  m      array of size num of BIGNUM objects\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,\n                  size_t num, const EC_POINT *p[], const BIGNUM *m[],\n                  BN_CTX *ctx);\n\n/** Computes r = generator * n + q * m\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result\n *  \\param  n      BIGNUM with the multiplier for the group generator (optional)\n *  \\param  q      EC_POINT object with the first factor of the second summand\n *  \\param  m      BIGNUM with the second factor of the second summand\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,\n                 const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);\n\n/** Stores multiples of generator for faster point multiplication\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);\n\n/** Reports whether a precomputation has been done\n *  \\param  group  EC_GROUP object\n *  \\return 1 if a pre-computation has been done and 0 otherwise\n */\nint EC_GROUP_have_precompute_mult(const EC_GROUP *group);\n\n/********************************************************************/\n/*                       ASN1 stuff                                 */\n/********************************************************************/\n\nDECLARE_ASN1_ITEM(ECPKPARAMETERS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(ECPKPARAMETERS)\nDECLARE_ASN1_ITEM(ECPARAMETERS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(ECPARAMETERS)\n\n/*\n * EC_GROUP_get_basis_type() returns the NID of the basis type used to\n * represent the field elements\n */\nint EC_GROUP_get_basis_type(const EC_GROUP *);\n# ifndef OPENSSL_NO_EC2M\nint EC_GROUP_get_trinomial_basis(const EC_GROUP *, unsigned int *k);\nint EC_GROUP_get_pentanomial_basis(const EC_GROUP *, unsigned int *k1,\n                                   unsigned int *k2, unsigned int *k3);\n# endif\n\n# define OPENSSL_EC_EXPLICIT_CURVE  0x000\n# define OPENSSL_EC_NAMED_CURVE     0x001\n\nEC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len);\nint i2d_ECPKParameters(const EC_GROUP *, unsigned char **out);\n\n# define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x)\n# define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of_const(EC_GROUP,i2d_ECPKParameters,bp,x)\n# define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \\\n                (char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x))\n# define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \\\n                (unsigned char *)(x))\n\nint ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);\n# ifndef OPENSSL_NO_STDIO\nint ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);\n# endif\n\n/********************************************************************/\n/*                      EC_KEY functions                            */\n/********************************************************************/\n\n/* some values for the encoding_flag */\n# define EC_PKEY_NO_PARAMETERS   0x001\n# define EC_PKEY_NO_PUBKEY       0x002\n\n/* some values for the flags field */\n# define EC_FLAG_NON_FIPS_ALLOW  0x1\n# define EC_FLAG_FIPS_CHECKED    0x2\n# define EC_FLAG_COFACTOR_ECDH   0x1000\n\n/** Creates a new EC_KEY object.\n *  \\return EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_new(void);\n\nint EC_KEY_get_flags(const EC_KEY *key);\n\nvoid EC_KEY_set_flags(EC_KEY *key, int flags);\n\nvoid EC_KEY_clear_flags(EC_KEY *key, int flags);\n\nint EC_KEY_decoded_from_explicit_params(const EC_KEY *key);\n\n/** Creates a new EC_KEY object using a named curve as underlying\n *  EC_GROUP object.\n *  \\param  nid  NID of the named curve.\n *  \\return EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_new_by_curve_name(int nid);\n\n/** Frees a EC_KEY object.\n *  \\param  key  EC_KEY object to be freed.\n */\nvoid EC_KEY_free(EC_KEY *key);\n\n/** Copies a EC_KEY object.\n *  \\param  dst  destination EC_KEY object\n *  \\param  src  src EC_KEY object\n *  \\return dst or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);\n\n/** Creates a new EC_KEY object and copies the content from src to it.\n *  \\param  src  the source EC_KEY object\n *  \\return newly created EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_dup(const EC_KEY *src);\n\n/** Increases the internal reference count of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_up_ref(EC_KEY *key);\n\n/** Returns the ENGINE object of a EC_KEY object\n *  \\param  eckey  EC_KEY object\n *  \\return the ENGINE object (possibly NULL).\n */\nENGINE *EC_KEY_get0_engine(const EC_KEY *eckey);\n\n/** Returns the EC_GROUP object of a EC_KEY object\n *  \\param  key  EC_KEY object\n *  \\return the EC_GROUP object (possibly NULL).\n */\nconst EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);\n\n/** Sets the EC_GROUP of a EC_KEY object.\n *  \\param  key    EC_KEY object\n *  \\param  group  EC_GROUP to use in the EC_KEY object (note: the EC_KEY\n *                 object will use an own copy of the EC_GROUP).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);\n\n/** Returns the private key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\return a BIGNUM with the private key (possibly NULL).\n */\nconst BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);\n\n/** Sets the private key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\param  prv  BIGNUM with the private key (note: the EC_KEY object\n *               will use an own copy of the BIGNUM).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);\n\n/** Returns the public key of a EC_KEY object.\n *  \\param  key  the EC_KEY object\n *  \\return a EC_POINT object with the public key (possibly NULL)\n */\nconst EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);\n\n/** Sets the public key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\param  pub  EC_POINT object with the public key (note: the EC_KEY object\n *               will use an own copy of the EC_POINT object).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);\n\nunsigned EC_KEY_get_enc_flags(const EC_KEY *key);\nvoid EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);\npoint_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);\nvoid EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);\n\n#define EC_KEY_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_EC_KEY, l, p, newf, dupf, freef)\nint EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg);\nvoid *EC_KEY_get_ex_data(const EC_KEY *key, int idx);\n\n/* wrapper functions for the underlying EC_GROUP object */\nvoid EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag);\n\n/** Creates a table of pre-computed multiples of the generator to\n *  accelerate further EC_KEY operations.\n *  \\param  key  EC_KEY object\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);\n\n/** Creates a new ec private (and optional a new public) key.\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_generate_key(EC_KEY *key);\n\n/** Verifies that a private and/or public key is valid.\n *  \\param  key  the EC_KEY object\n *  \\return 1 on success and 0 otherwise.\n */\nint EC_KEY_check_key(const EC_KEY *key);\n\n/** Indicates if an EC_KEY can be used for signing.\n *  \\param  eckey  the EC_KEY object\n *  \\return 1 if can can sign and 0 otherwise.\n */\nint EC_KEY_can_sign(const EC_KEY *eckey);\n\n/** Sets a public key from affine coordinates performing\n *  necessary NIST PKV tests.\n *  \\param  key  the EC_KEY object\n *  \\param  x    public key x coordinate\n *  \\param  y    public key y coordinate\n *  \\return 1 on success and 0 otherwise.\n */\nint EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,\n                                             BIGNUM *y);\n\n/** Encodes an EC_KEY public key to an allocated octet string\n *  \\param  key    key to encode\n *  \\param  form   point conversion form\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_KEY_key2buf(const EC_KEY *key, point_conversion_form_t form,\n                      unsigned char **pbuf, BN_CTX *ctx);\n\n/** Decodes a EC_KEY public key from a octet string\n *  \\param  key    key to decode\n *  \\param  buf    memory buffer with the encoded ec point\n *  \\param  len    length of the encoded ec point\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\n\nint EC_KEY_oct2key(EC_KEY *key, const unsigned char *buf, size_t len,\n                   BN_CTX *ctx);\n\n/** Decodes an EC_KEY private key from an octet string\n *  \\param  key    key to decode\n *  \\param  buf    memory buffer with the encoded private key\n *  \\param  len    length of the encoded key\n *  \\return 1 on success and 0 if an error occurred\n */\n\nint EC_KEY_oct2priv(EC_KEY *key, const unsigned char *buf, size_t len);\n\n/** Encodes a EC_KEY private key to an octet string\n *  \\param  key    key to encode\n *  \\param  buf    memory buffer for the result. If NULL the function returns\n *                 required buffer size.\n *  \\param  len    length of the memory buffer\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\n\nsize_t EC_KEY_priv2oct(const EC_KEY *key, unsigned char *buf, size_t len);\n\n/** Encodes an EC_KEY private key to an allocated octet string\n *  \\param  eckey  key to encode\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf);\n\n/********************************************************************/\n/*        de- and encoding functions for SEC1 ECPrivateKey          */\n/********************************************************************/\n\n/** Decodes a private key from a memory buffer.\n *  \\param  key  a pointer to a EC_KEY object which should be used (or NULL)\n *  \\param  in   pointer to memory with the DER encoded private key\n *  \\param  len  length of the DER encoded private key\n *  \\return the decoded private key or NULL if an error occurred.\n */\nEC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes a private key object and stores the result in a buffer.\n *  \\param  key  the EC_KEY object to encode\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint i2d_ECPrivateKey(EC_KEY *key, unsigned char **out);\n\n/********************************************************************/\n/*        de- and encoding functions for EC parameters              */\n/********************************************************************/\n\n/** Decodes ec parameter from a memory buffer.\n *  \\param  key  a pointer to a EC_KEY object which should be used (or NULL)\n *  \\param  in   pointer to memory with the DER encoded ec parameters\n *  \\param  len  length of the DER encoded ec parameters\n *  \\return a EC_KEY object with the decoded parameters or NULL if an error\n *          occurred.\n */\nEC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes ec parameter and stores the result in a buffer.\n *  \\param  key  the EC_KEY object with ec parameters to encode\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint i2d_ECParameters(EC_KEY *key, unsigned char **out);\n\n/********************************************************************/\n/*         de- and encoding functions for EC public key             */\n/*         (octet string, not DER -- hence 'o2i' and 'i2o')         */\n/********************************************************************/\n\n/** Decodes a ec public key from a octet string.\n *  \\param  key  a pointer to a EC_KEY object which should be used\n *  \\param  in   memory buffer with the encoded public key\n *  \\param  len  length of the encoded public key\n *  \\return EC_KEY object with decoded public key or NULL if an error\n *          occurred.\n */\nEC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes a ec public key in an octet string.\n *  \\param  key  the EC_KEY object with the public key\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred\n */\nint i2o_ECPublicKey(const EC_KEY *key, unsigned char **out);\n\n/** Prints out the ec parameters on human readable form.\n *  \\param  bp   BIO object to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred\n */\nint ECParameters_print(BIO *bp, const EC_KEY *key);\n\n/** Prints out the contents of a EC_KEY object\n *  \\param  bp   BIO object to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\param  off  line offset\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_KEY_print(BIO *bp, const EC_KEY *key, int off);\n\n# ifndef OPENSSL_NO_STDIO\n/** Prints out the ec parameters on human readable form.\n *  \\param  fp   file descriptor to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred\n */\nint ECParameters_print_fp(FILE *fp, const EC_KEY *key);\n\n/** Prints out the contents of a EC_KEY object\n *  \\param  fp   file descriptor to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\param  off  line offset\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);\n\n# endif\n\nconst EC_KEY_METHOD *EC_KEY_OpenSSL(void);\nconst EC_KEY_METHOD *EC_KEY_get_default_method(void);\nvoid EC_KEY_set_default_method(const EC_KEY_METHOD *meth);\nconst EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key);\nint EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);\nEC_KEY *EC_KEY_new_method(ENGINE *engine);\n\n/** The old name for ecdh_KDF_X9_63\n *  The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,\n *  it is actually specified in ANSI X9.63.\n *  This identifier is retained for backwards compatibility\n */\nint ECDH_KDF_X9_62(unsigned char *out, size_t outlen,\n                   const unsigned char *Z, size_t Zlen,\n                   const unsigned char *sinfo, size_t sinfolen,\n                   const EVP_MD *md);\n\nint ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,\n                     const EC_KEY *ecdh,\n                     void *(*KDF) (const void *in, size_t inlen,\n                                   void *out, size_t *outlen));\n\ntypedef struct ECDSA_SIG_st ECDSA_SIG;\n\n/** Allocates and initialize a ECDSA_SIG structure\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_SIG_new(void);\n\n/** frees a ECDSA_SIG structure\n *  \\param  sig  pointer to the ECDSA_SIG structure\n */\nvoid ECDSA_SIG_free(ECDSA_SIG *sig);\n\n/** DER encode content of ECDSA_SIG object (note: this function modifies *pp\n *  (*pp += length of the DER encoded signature)).\n *  \\param  sig  pointer to the ECDSA_SIG object\n *  \\param  pp   pointer to a unsigned char pointer for the output or NULL\n *  \\return the length of the DER encoded ECDSA_SIG object or a negative value\n *          on error\n */\nint i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);\n\n/** Decodes a DER encoded ECDSA signature (note: this function changes *pp\n *  (*pp += len)).\n *  \\param  sig  pointer to ECDSA_SIG pointer (may be NULL)\n *  \\param  pp   memory buffer with the DER encoded signature\n *  \\param  len  length of the buffer\n *  \\return pointer to the decoded ECDSA_SIG structure (or NULL)\n */\nECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len);\n\n/** Accessor for r and s fields of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n *  \\param  pr   pointer to BIGNUM pointer for r (may be NULL)\n *  \\param  ps   pointer to BIGNUM pointer for s (may be NULL)\n */\nvoid ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);\n\n/** Accessor for r field of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n */\nconst BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig);\n\n/** Accessor for s field of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n */\nconst BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig);\n\n/** Setter for r and s fields of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n *  \\param  r    pointer to BIGNUM for r (may be NULL)\n *  \\param  s    pointer to BIGNUM for s (may be NULL)\n */\nint ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);\n\n/** Computes the ECDSA signature of the given hash value using\n *  the supplied private key and returns the created signature.\n *  \\param  dgst      pointer to the hash value\n *  \\param  dgst_len  length of the hash value\n *  \\param  eckey     EC_KEY object containing a private EC key\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len,\n                         EC_KEY *eckey);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  kinv     BIGNUM with a pre-computed inverse k (optional)\n *  \\param  rp       BIGNUM with a pre-computed rp value (optional),\n *                   see ECDSA_sign_setup\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,\n                            const BIGNUM *kinv, const BIGNUM *rp,\n                            EC_KEY *eckey);\n\n/** Verifies that the supplied signature is a valid ECDSA\n *  signature of the supplied hash value using the supplied public key.\n *  \\param  dgst      pointer to the hash value\n *  \\param  dgst_len  length of the hash value\n *  \\param  sig       ECDSA_SIG structure\n *  \\param  eckey     EC_KEY object containing a public EC key\n *  \\return 1 if the signature is valid, 0 if the signature is invalid\n *          and -1 on error\n */\nint ECDSA_do_verify(const unsigned char *dgst, int dgst_len,\n                    const ECDSA_SIG *sig, EC_KEY *eckey);\n\n/** Precompute parts of the signing operation\n *  \\param  eckey  EC_KEY object containing a private EC key\n *  \\param  ctx    BN_CTX object (optional)\n *  \\param  kinv   BIGNUM pointer for the inverse of k\n *  \\param  rp     BIGNUM pointer for x coordinate of k * generator\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      memory for the DER encoded created signature\n *  \\param  siglen   pointer to the length of the returned signature\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign(int type, const unsigned char *dgst, int dgstlen,\n               unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      buffer to hold the DER encoded signature\n *  \\param  siglen   pointer to the length of the returned signature\n *  \\param  kinv     BIGNUM with a pre-computed inverse k (optional)\n *  \\param  rp       BIGNUM with a pre-computed rp value (optional),\n *                   see ECDSA_sign_setup\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,\n                  unsigned char *sig, unsigned int *siglen,\n                  const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);\n\n/** Verifies that the given signature is valid ECDSA signature\n *  of the supplied hash value using the specified public key.\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      pointer to the DER encoded signature\n *  \\param  siglen   length of the DER encoded signature\n *  \\param  eckey    EC_KEY object containing a public EC key\n *  \\return 1 if the signature is valid, 0 if the signature is invalid\n *          and -1 on error\n */\nint ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,\n                 const unsigned char *sig, int siglen, EC_KEY *eckey);\n\n/** Returns the maximum length of the DER encoded signature\n *  \\param  eckey  EC_KEY object\n *  \\return numbers of bytes required for the DER encoded signature\n */\nint ECDSA_size(const EC_KEY *eckey);\n\n/********************************************************************/\n/*  EC_KEY_METHOD constructors, destructors, writers and accessors  */\n/********************************************************************/\n\nEC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);\nvoid EC_KEY_METHOD_free(EC_KEY_METHOD *meth);\nvoid EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,\n                            int (*init)(EC_KEY *key),\n                            void (*finish)(EC_KEY *key),\n                            int (*copy)(EC_KEY *dest, const EC_KEY *src),\n                            int (*set_group)(EC_KEY *key, const EC_GROUP *grp),\n                            int (*set_private)(EC_KEY *key,\n                                               const BIGNUM *priv_key),\n                            int (*set_public)(EC_KEY *key,\n                                              const EC_POINT *pub_key));\n\nvoid EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,\n                              int (*keygen)(EC_KEY *key));\n\nvoid EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,\n                                   int (*ckey)(unsigned char **psec,\n                                               size_t *pseclen,\n                                               const EC_POINT *pub_key,\n                                               const EC_KEY *ecdh));\n\nvoid EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,\n                            int (*sign)(int type, const unsigned char *dgst,\n                                        int dlen, unsigned char *sig,\n                                        unsigned int *siglen,\n                                        const BIGNUM *kinv, const BIGNUM *r,\n                                        EC_KEY *eckey),\n                            int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,\n                                              BIGNUM **kinvp, BIGNUM **rp),\n                            ECDSA_SIG *(*sign_sig)(const unsigned char *dgst,\n                                                   int dgst_len,\n                                                   const BIGNUM *in_kinv,\n                                                   const BIGNUM *in_r,\n                                                   EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,\n                              int (*verify)(int type, const unsigned\n                                            char *dgst, int dgst_len,\n                                            const unsigned char *sigbuf,\n                                            int sig_len, EC_KEY *eckey),\n                              int (*verify_sig)(const unsigned char *dgst,\n                                                int dgst_len,\n                                                const ECDSA_SIG *sig,\n                                                EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth,\n                            int (**pinit)(EC_KEY *key),\n                            void (**pfinish)(EC_KEY *key),\n                            int (**pcopy)(EC_KEY *dest, const EC_KEY *src),\n                            int (**pset_group)(EC_KEY *key,\n                                               const EC_GROUP *grp),\n                            int (**pset_private)(EC_KEY *key,\n                                                 const BIGNUM *priv_key),\n                            int (**pset_public)(EC_KEY *key,\n                                                const EC_POINT *pub_key));\n\nvoid EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,\n                              int (**pkeygen)(EC_KEY *key));\n\nvoid EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,\n                                   int (**pck)(unsigned char **psec,\n                                               size_t *pseclen,\n                                               const EC_POINT *pub_key,\n                                               const EC_KEY *ecdh));\n\nvoid EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,\n                            int (**psign)(int type, const unsigned char *dgst,\n                                          int dlen, unsigned char *sig,\n                                          unsigned int *siglen,\n                                          const BIGNUM *kinv, const BIGNUM *r,\n                                          EC_KEY *eckey),\n                            int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,\n                                                BIGNUM **kinvp, BIGNUM **rp),\n                            ECDSA_SIG *(**psign_sig)(const unsigned char *dgst,\n                                                     int dgst_len,\n                                                     const BIGNUM *in_kinv,\n                                                     const BIGNUM *in_r,\n                                                     EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,\n                              int (**pverify)(int type, const unsigned\n                                              char *dgst, int dgst_len,\n                                              const unsigned char *sigbuf,\n                                              int sig_len, EC_KEY *eckey),\n                              int (**pverify_sig)(const unsigned char *dgst,\n                                                  int dgst_len,\n                                                  const ECDSA_SIG *sig,\n                                                  EC_KEY *eckey));\n\n# define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)\n\n# ifndef __cplusplus\n#  if defined(__SUNPRO_C)\n#   if __SUNPRO_C >= 0x520\n#    pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)\n#   endif\n#  endif\n# endif\n\n# define EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \\\n                                EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, nid, NULL)\n\n# define EVP_PKEY_CTX_set_ec_param_enc(ctx, flag) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \\\n                                EVP_PKEY_CTRL_EC_PARAM_ENC, flag, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_cofactor_mode(ctx, flag) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_ECDH_COFACTOR, flag, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_cofactor_mode(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_ECDH_COFACTOR, -2, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_type(ctx, kdf) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_TYPE, kdf, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_type(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_TYPE, -2, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_MD, 0, (void *)(pmd))\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_outlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_OUTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_outlen(ctx, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, 0, \\\n                                (void *)(plen))\n\n# define EVP_PKEY_CTX_set0_ecdh_kdf_ukm(ctx, p, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_UKM, plen, (void *)(p))\n\n# define EVP_PKEY_CTX_get0_ecdh_kdf_ukm(ctx, p) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_UKM, 0, (void *)(p))\n\n/* SM2 will skip the operation check so no need to pass operation here */\n# define EVP_PKEY_CTX_set1_id(ctx, id, id_len) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_SET1_ID, (int)id_len, (void*)(id))\n\n# define EVP_PKEY_CTX_get1_id(ctx, id) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_GET1_ID, 0, (void*)(id))\n\n# define EVP_PKEY_CTX_get1_id_len(ctx, id_len) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_GET1_ID_LEN, 0, (void*)(id_len))\n\n# define EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID             (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_EC_PARAM_ENC                      (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_EC_ECDH_COFACTOR                  (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_EC_KDF_TYPE                       (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_EC_KDF_MD                         (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_GET_EC_KDF_MD                     (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_EC_KDF_OUTLEN                     (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN                 (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_EC_KDF_UKM                        (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_GET_EC_KDF_UKM                    (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_SET1_ID                           (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET1_ID                           (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_GET1_ID_LEN                       (EVP_PKEY_ALG_CTRL + 13)\n/* KDF types */\n# define EVP_PKEY_ECDH_KDF_NONE                          1\n# define EVP_PKEY_ECDH_KDF_X9_63                         2\n/** The old name for EVP_PKEY_ECDH_KDF_X9_63\n *  The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,\n *  it is actually specified in ANSI X9.63.\n *  This identifier is retained for backwards compatibility\n */\n# define EVP_PKEY_ECDH_KDF_X9_62   EVP_PKEY_ECDH_KDF_X9_63\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ecdh.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/ec.h>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ecdsa.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/ec.h>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ecerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ECERR_H\n# define HEADER_ECERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_EC\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_EC_strings(void);\n\n/*\n * EC function codes.\n */\n#  define EC_F_BN_TO_FELEM                                 224\n#  define EC_F_D2I_ECPARAMETERS                            144\n#  define EC_F_D2I_ECPKPARAMETERS                          145\n#  define EC_F_D2I_ECPRIVATEKEY                            146\n#  define EC_F_DO_EC_KEY_PRINT                             221\n#  define EC_F_ECDH_CMS_DECRYPT                            238\n#  define EC_F_ECDH_CMS_SET_SHARED_INFO                    239\n#  define EC_F_ECDH_COMPUTE_KEY                            246\n#  define EC_F_ECDH_SIMPLE_COMPUTE_KEY                     257\n#  define EC_F_ECDSA_DO_SIGN_EX                            251\n#  define EC_F_ECDSA_DO_VERIFY                             252\n#  define EC_F_ECDSA_SIGN_EX                               254\n#  define EC_F_ECDSA_SIGN_SETUP                            248\n#  define EC_F_ECDSA_SIG_NEW                               265\n#  define EC_F_ECDSA_VERIFY                                253\n#  define EC_F_ECD_ITEM_VERIFY                             270\n#  define EC_F_ECKEY_PARAM2TYPE                            223\n#  define EC_F_ECKEY_PARAM_DECODE                          212\n#  define EC_F_ECKEY_PRIV_DECODE                           213\n#  define EC_F_ECKEY_PRIV_ENCODE                           214\n#  define EC_F_ECKEY_PUB_DECODE                            215\n#  define EC_F_ECKEY_PUB_ENCODE                            216\n#  define EC_F_ECKEY_TYPE2PARAM                            220\n#  define EC_F_ECPARAMETERS_PRINT                          147\n#  define EC_F_ECPARAMETERS_PRINT_FP                       148\n#  define EC_F_ECPKPARAMETERS_PRINT                        149\n#  define EC_F_ECPKPARAMETERS_PRINT_FP                     150\n#  define EC_F_ECP_NISTZ256_GET_AFFINE                     240\n#  define EC_F_ECP_NISTZ256_INV_MOD_ORD                    275\n#  define EC_F_ECP_NISTZ256_MULT_PRECOMPUTE                243\n#  define EC_F_ECP_NISTZ256_POINTS_MUL                     241\n#  define EC_F_ECP_NISTZ256_PRE_COMP_NEW                   244\n#  define EC_F_ECP_NISTZ256_WINDOWED_MUL                   242\n#  define EC_F_ECX_KEY_OP                                  266\n#  define EC_F_ECX_PRIV_ENCODE                             267\n#  define EC_F_ECX_PUB_ENCODE                              268\n#  define EC_F_EC_ASN1_GROUP2CURVE                         153\n#  define EC_F_EC_ASN1_GROUP2FIELDID                       154\n#  define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY           208\n#  define EC_F_EC_GF2M_SIMPLE_FIELD_INV                    296\n#  define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT     159\n#  define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE              195\n#  define EC_F_EC_GF2M_SIMPLE_LADDER_POST                  285\n#  define EC_F_EC_GF2M_SIMPLE_LADDER_PRE                   288\n#  define EC_F_EC_GF2M_SIMPLE_OCT2POINT                    160\n#  define EC_F_EC_GF2M_SIMPLE_POINT2OCT                    161\n#  define EC_F_EC_GF2M_SIMPLE_POINTS_MUL                   289\n#  define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 162\n#  define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 163\n#  define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES   164\n#  define EC_F_EC_GFP_MONT_FIELD_DECODE                    133\n#  define EC_F_EC_GFP_MONT_FIELD_ENCODE                    134\n#  define EC_F_EC_GFP_MONT_FIELD_INV                       297\n#  define EC_F_EC_GFP_MONT_FIELD_MUL                       131\n#  define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE                209\n#  define EC_F_EC_GFP_MONT_FIELD_SQR                       132\n#  define EC_F_EC_GFP_MONT_GROUP_SET_CURVE                 189\n#  define EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE             225\n#  define EC_F_EC_GFP_NISTP224_POINTS_MUL                  228\n#  define EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES 226\n#  define EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE             230\n#  define EC_F_EC_GFP_NISTP256_POINTS_MUL                  231\n#  define EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES 232\n#  define EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE             233\n#  define EC_F_EC_GFP_NISTP521_POINTS_MUL                  234\n#  define EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES 235\n#  define EC_F_EC_GFP_NIST_FIELD_MUL                       200\n#  define EC_F_EC_GFP_NIST_FIELD_SQR                       201\n#  define EC_F_EC_GFP_NIST_GROUP_SET_CURVE                 202\n#  define EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES             287\n#  define EC_F_EC_GFP_SIMPLE_FIELD_INV                     298\n#  define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT      165\n#  define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE               166\n#  define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE                   102\n#  define EC_F_EC_GFP_SIMPLE_OCT2POINT                     103\n#  define EC_F_EC_GFP_SIMPLE_POINT2OCT                     104\n#  define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE            137\n#  define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES  167\n#  define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES  168\n#  define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES    169\n#  define EC_F_EC_GROUP_CHECK                              170\n#  define EC_F_EC_GROUP_CHECK_DISCRIMINANT                 171\n#  define EC_F_EC_GROUP_COPY                               106\n#  define EC_F_EC_GROUP_GET_CURVE                          291\n#  define EC_F_EC_GROUP_GET_CURVE_GF2M                     172\n#  define EC_F_EC_GROUP_GET_CURVE_GFP                      130\n#  define EC_F_EC_GROUP_GET_DEGREE                         173\n#  define EC_F_EC_GROUP_GET_ECPARAMETERS                   261\n#  define EC_F_EC_GROUP_GET_ECPKPARAMETERS                 262\n#  define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS              193\n#  define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS                194\n#  define EC_F_EC_GROUP_NEW                                108\n#  define EC_F_EC_GROUP_NEW_BY_CURVE_NAME                  174\n#  define EC_F_EC_GROUP_NEW_FROM_DATA                      175\n#  define EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS              263\n#  define EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS            264\n#  define EC_F_EC_GROUP_SET_CURVE                          292\n#  define EC_F_EC_GROUP_SET_CURVE_GF2M                     176\n#  define EC_F_EC_GROUP_SET_CURVE_GFP                      109\n#  define EC_F_EC_GROUP_SET_GENERATOR                      111\n#  define EC_F_EC_GROUP_SET_SEED                           286\n#  define EC_F_EC_KEY_CHECK_KEY                            177\n#  define EC_F_EC_KEY_COPY                                 178\n#  define EC_F_EC_KEY_GENERATE_KEY                         179\n#  define EC_F_EC_KEY_NEW                                  182\n#  define EC_F_EC_KEY_NEW_METHOD                           245\n#  define EC_F_EC_KEY_OCT2PRIV                             255\n#  define EC_F_EC_KEY_PRINT                                180\n#  define EC_F_EC_KEY_PRINT_FP                             181\n#  define EC_F_EC_KEY_PRIV2BUF                             279\n#  define EC_F_EC_KEY_PRIV2OCT                             256\n#  define EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES    229\n#  define EC_F_EC_KEY_SIMPLE_CHECK_KEY                     258\n#  define EC_F_EC_KEY_SIMPLE_OCT2PRIV                      259\n#  define EC_F_EC_KEY_SIMPLE_PRIV2OCT                      260\n#  define EC_F_EC_PKEY_CHECK                               273\n#  define EC_F_EC_PKEY_PARAM_CHECK                         274\n#  define EC_F_EC_POINTS_MAKE_AFFINE                       136\n#  define EC_F_EC_POINTS_MUL                               290\n#  define EC_F_EC_POINT_ADD                                112\n#  define EC_F_EC_POINT_BN2POINT                           280\n#  define EC_F_EC_POINT_CMP                                113\n#  define EC_F_EC_POINT_COPY                               114\n#  define EC_F_EC_POINT_DBL                                115\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES             293\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M        183\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP         116\n#  define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP    117\n#  define EC_F_EC_POINT_INVERT                             210\n#  define EC_F_EC_POINT_IS_AT_INFINITY                     118\n#  define EC_F_EC_POINT_IS_ON_CURVE                        119\n#  define EC_F_EC_POINT_MAKE_AFFINE                        120\n#  define EC_F_EC_POINT_NEW                                121\n#  define EC_F_EC_POINT_OCT2POINT                          122\n#  define EC_F_EC_POINT_POINT2BUF                          281\n#  define EC_F_EC_POINT_POINT2OCT                          123\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES             294\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M        185\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP         124\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES         295\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M    186\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP     125\n#  define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP    126\n#  define EC_F_EC_POINT_SET_TO_INFINITY                    127\n#  define EC_F_EC_PRE_COMP_NEW                             196\n#  define EC_F_EC_SCALAR_MUL_LADDER                        284\n#  define EC_F_EC_WNAF_MUL                                 187\n#  define EC_F_EC_WNAF_PRECOMPUTE_MULT                     188\n#  define EC_F_I2D_ECPARAMETERS                            190\n#  define EC_F_I2D_ECPKPARAMETERS                          191\n#  define EC_F_I2D_ECPRIVATEKEY                            192\n#  define EC_F_I2O_ECPUBLICKEY                             151\n#  define EC_F_NISTP224_PRE_COMP_NEW                       227\n#  define EC_F_NISTP256_PRE_COMP_NEW                       236\n#  define EC_F_NISTP521_PRE_COMP_NEW                       237\n#  define EC_F_O2I_ECPUBLICKEY                             152\n#  define EC_F_OLD_EC_PRIV_DECODE                          222\n#  define EC_F_OSSL_ECDH_COMPUTE_KEY                       247\n#  define EC_F_OSSL_ECDSA_SIGN_SIG                         249\n#  define EC_F_OSSL_ECDSA_VERIFY_SIG                       250\n#  define EC_F_PKEY_ECD_CTRL                               271\n#  define EC_F_PKEY_ECD_DIGESTSIGN                         272\n#  define EC_F_PKEY_ECD_DIGESTSIGN25519                    276\n#  define EC_F_PKEY_ECD_DIGESTSIGN448                      277\n#  define EC_F_PKEY_ECX_DERIVE                             269\n#  define EC_F_PKEY_EC_CTRL                                197\n#  define EC_F_PKEY_EC_CTRL_STR                            198\n#  define EC_F_PKEY_EC_DERIVE                              217\n#  define EC_F_PKEY_EC_INIT                                282\n#  define EC_F_PKEY_EC_KDF_DERIVE                          283\n#  define EC_F_PKEY_EC_KEYGEN                              199\n#  define EC_F_PKEY_EC_PARAMGEN                            219\n#  define EC_F_PKEY_EC_SIGN                                218\n#  define EC_F_VALIDATE_ECX_DERIVE                         278\n\n/*\n * EC reason codes.\n */\n#  define EC_R_ASN1_ERROR                                  115\n#  define EC_R_BAD_SIGNATURE                               156\n#  define EC_R_BIGNUM_OUT_OF_RANGE                         144\n#  define EC_R_BUFFER_TOO_SMALL                            100\n#  define EC_R_CANNOT_INVERT                               165\n#  define EC_R_COORDINATES_OUT_OF_RANGE                    146\n#  define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH                 160\n#  define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING              159\n#  define EC_R_D2I_ECPKPARAMETERS_FAILURE                  117\n#  define EC_R_DECODE_ERROR                                142\n#  define EC_R_DISCRIMINANT_IS_ZERO                        118\n#  define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE                119\n#  define EC_R_FIELD_TOO_LARGE                             143\n#  define EC_R_GF2M_NOT_SUPPORTED                          147\n#  define EC_R_GROUP2PKPARAMETERS_FAILURE                  120\n#  define EC_R_I2D_ECPKPARAMETERS_FAILURE                  121\n#  define EC_R_INCOMPATIBLE_OBJECTS                        101\n#  define EC_R_INVALID_ARGUMENT                            112\n#  define EC_R_INVALID_COMPRESSED_POINT                    110\n#  define EC_R_INVALID_COMPRESSION_BIT                     109\n#  define EC_R_INVALID_CURVE                               141\n#  define EC_R_INVALID_DIGEST                              151\n#  define EC_R_INVALID_DIGEST_TYPE                         138\n#  define EC_R_INVALID_ENCODING                            102\n#  define EC_R_INVALID_FIELD                               103\n#  define EC_R_INVALID_FORM                                104\n#  define EC_R_INVALID_GROUP_ORDER                         122\n#  define EC_R_INVALID_KEY                                 116\n#  define EC_R_INVALID_OUTPUT_LENGTH                       161\n#  define EC_R_INVALID_PEER_KEY                            133\n#  define EC_R_INVALID_PENTANOMIAL_BASIS                   132\n#  define EC_R_INVALID_PRIVATE_KEY                         123\n#  define EC_R_INVALID_TRINOMIAL_BASIS                     137\n#  define EC_R_KDF_PARAMETER_ERROR                         148\n#  define EC_R_KEYS_NOT_SET                                140\n#  define EC_R_LADDER_POST_FAILURE                         136\n#  define EC_R_LADDER_PRE_FAILURE                          153\n#  define EC_R_LADDER_STEP_FAILURE                         162\n#  define EC_R_MISSING_OID                                 167\n#  define EC_R_MISSING_PARAMETERS                          124\n#  define EC_R_MISSING_PRIVATE_KEY                         125\n#  define EC_R_NEED_NEW_SETUP_VALUES                       157\n#  define EC_R_NOT_A_NIST_PRIME                            135\n#  define EC_R_NOT_IMPLEMENTED                             126\n#  define EC_R_NOT_INITIALIZED                             111\n#  define EC_R_NO_PARAMETERS_SET                           139\n#  define EC_R_NO_PRIVATE_VALUE                            154\n#  define EC_R_OPERATION_NOT_SUPPORTED                     152\n#  define EC_R_PASSED_NULL_PARAMETER                       134\n#  define EC_R_PEER_KEY_ERROR                              149\n#  define EC_R_PKPARAMETERS2GROUP_FAILURE                  127\n#  define EC_R_POINT_ARITHMETIC_FAILURE                    155\n#  define EC_R_POINT_AT_INFINITY                           106\n#  define EC_R_POINT_COORDINATES_BLIND_FAILURE             163\n#  define EC_R_POINT_IS_NOT_ON_CURVE                       107\n#  define EC_R_RANDOM_NUMBER_GENERATION_FAILED             158\n#  define EC_R_SHARED_INFO_ERROR                           150\n#  define EC_R_SLOT_FULL                                   108\n#  define EC_R_UNDEFINED_GENERATOR                         113\n#  define EC_R_UNDEFINED_ORDER                             128\n#  define EC_R_UNKNOWN_COFACTOR                            164\n#  define EC_R_UNKNOWN_GROUP                               129\n#  define EC_R_UNKNOWN_ORDER                               114\n#  define EC_R_UNSUPPORTED_FIELD                           131\n#  define EC_R_WRONG_CURVE_PARAMETERS                      145\n#  define EC_R_WRONG_ORDER                                 130\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/engine.h",
    "content": "/*\n * Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENGINE_H\n# define HEADER_ENGINE_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_ENGINE\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n#  include <openssl/rsa.h>\n#  include <openssl/dsa.h>\n#  include <openssl/dh.h>\n#  include <openssl/ec.h>\n#  include <openssl/rand.h>\n#  include <openssl/ui.h>\n#  include <openssl/err.h>\n# endif\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/x509.h>\n# include <openssl/engineerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * These flags are used to control combinations of algorithm (methods) by\n * bitwise \"OR\"ing.\n */\n# define ENGINE_METHOD_RSA               (unsigned int)0x0001\n# define ENGINE_METHOD_DSA               (unsigned int)0x0002\n# define ENGINE_METHOD_DH                (unsigned int)0x0004\n# define ENGINE_METHOD_RAND              (unsigned int)0x0008\n# define ENGINE_METHOD_CIPHERS           (unsigned int)0x0040\n# define ENGINE_METHOD_DIGESTS           (unsigned int)0x0080\n# define ENGINE_METHOD_PKEY_METHS        (unsigned int)0x0200\n# define ENGINE_METHOD_PKEY_ASN1_METHS   (unsigned int)0x0400\n# define ENGINE_METHOD_EC                (unsigned int)0x0800\n/* Obvious all-or-nothing cases. */\n# define ENGINE_METHOD_ALL               (unsigned int)0xFFFF\n# define ENGINE_METHOD_NONE              (unsigned int)0x0000\n\n/*\n * This(ese) flag(s) controls behaviour of the ENGINE_TABLE mechanism used\n * internally to control registration of ENGINE implementations, and can be\n * set by ENGINE_set_table_flags(). The \"NOINIT\" flag prevents attempts to\n * initialise registered ENGINEs if they are not already initialised.\n */\n# define ENGINE_TABLE_FLAG_NOINIT        (unsigned int)0x0001\n\n/* ENGINE flags that can be set by ENGINE_set_flags(). */\n/* Not used */\n/* #define ENGINE_FLAGS_MALLOCED        0x0001 */\n\n/*\n * This flag is for ENGINEs that wish to handle the various 'CMD'-related\n * control commands on their own. Without this flag, ENGINE_ctrl() handles\n * these control commands on behalf of the ENGINE using their \"cmd_defns\"\n * data.\n */\n# define ENGINE_FLAGS_MANUAL_CMD_CTRL    (int)0x0002\n\n/*\n * This flag is for ENGINEs who return new duplicate structures when found\n * via \"ENGINE_by_id()\". When an ENGINE must store state (eg. if\n * ENGINE_ctrl() commands are called in sequence as part of some stateful\n * process like key-generation setup and execution), it can set this flag -\n * then each attempt to obtain the ENGINE will result in it being copied into\n * a new structure. Normally, ENGINEs don't declare this flag so\n * ENGINE_by_id() just increments the existing ENGINE's structural reference\n * count.\n */\n# define ENGINE_FLAGS_BY_ID_COPY         (int)0x0004\n\n/*\n * This flag if for an ENGINE that does not want its methods registered as\n * part of ENGINE_register_all_complete() for example if the methods are not\n * usable as default methods.\n */\n\n# define ENGINE_FLAGS_NO_REGISTER_ALL    (int)0x0008\n\n/*\n * ENGINEs can support their own command types, and these flags are used in\n * ENGINE_CTRL_GET_CMD_FLAGS to indicate to the caller what kind of input\n * each command expects. Currently only numeric and string input is\n * supported. If a control command supports none of the _NUMERIC, _STRING, or\n * _NO_INPUT options, then it is regarded as an \"internal\" control command -\n * and not for use in config setting situations. As such, they're not\n * available to the ENGINE_ctrl_cmd_string() function, only raw ENGINE_ctrl()\n * access. Changes to this list of 'command types' should be reflected\n * carefully in ENGINE_cmd_is_executable() and ENGINE_ctrl_cmd_string().\n */\n\n/* accepts a 'long' input value (3rd parameter to ENGINE_ctrl) */\n# define ENGINE_CMD_FLAG_NUMERIC         (unsigned int)0x0001\n/*\n * accepts string input (cast from 'void*' to 'const char *', 4th parameter\n * to ENGINE_ctrl)\n */\n# define ENGINE_CMD_FLAG_STRING          (unsigned int)0x0002\n/*\n * Indicates that the control command takes *no* input. Ie. the control\n * command is unparameterised.\n */\n# define ENGINE_CMD_FLAG_NO_INPUT        (unsigned int)0x0004\n/*\n * Indicates that the control command is internal. This control command won't\n * be shown in any output, and is only usable through the ENGINE_ctrl_cmd()\n * function.\n */\n# define ENGINE_CMD_FLAG_INTERNAL        (unsigned int)0x0008\n\n/*\n * NB: These 3 control commands are deprecated and should not be used.\n * ENGINEs relying on these commands should compile conditional support for\n * compatibility (eg. if these symbols are defined) but should also migrate\n * the same functionality to their own ENGINE-specific control functions that\n * can be \"discovered\" by calling applications. The fact these control\n * commands wouldn't be \"executable\" (ie. usable by text-based config)\n * doesn't change the fact that application code can find and use them\n * without requiring per-ENGINE hacking.\n */\n\n/*\n * These flags are used to tell the ctrl function what should be done. All\n * command numbers are shared between all engines, even if some don't make\n * sense to some engines.  In such a case, they do nothing but return the\n * error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED.\n */\n# define ENGINE_CTRL_SET_LOGSTREAM               1\n# define ENGINE_CTRL_SET_PASSWORD_CALLBACK       2\n# define ENGINE_CTRL_HUP                         3/* Close and reinitialise\n                                                   * any handles/connections\n                                                   * etc. */\n# define ENGINE_CTRL_SET_USER_INTERFACE          4/* Alternative to callback */\n# define ENGINE_CTRL_SET_CALLBACK_DATA           5/* User-specific data, used\n                                                   * when calling the password\n                                                   * callback and the user\n                                                   * interface */\n# define ENGINE_CTRL_LOAD_CONFIGURATION          6/* Load a configuration,\n                                                   * given a string that\n                                                   * represents a file name\n                                                   * or so */\n# define ENGINE_CTRL_LOAD_SECTION                7/* Load data from a given\n                                                   * section in the already\n                                                   * loaded configuration */\n\n/*\n * These control commands allow an application to deal with an arbitrary\n * engine in a dynamic way. Warn: Negative return values indicate errors FOR\n * THESE COMMANDS because zero is used to indicate 'end-of-list'. Other\n * commands, including ENGINE-specific command types, return zero for an\n * error. An ENGINE can choose to implement these ctrl functions, and can\n * internally manage things however it chooses - it does so by setting the\n * ENGINE_FLAGS_MANUAL_CMD_CTRL flag (using ENGINE_set_flags()). Otherwise\n * the ENGINE_ctrl() code handles this on the ENGINE's behalf using the\n * cmd_defns data (set using ENGINE_set_cmd_defns()). This means an ENGINE's\n * ctrl() handler need only implement its own commands - the above \"meta\"\n * commands will be taken care of.\n */\n\n/*\n * Returns non-zero if the supplied ENGINE has a ctrl() handler. If \"not\",\n * then all the remaining control commands will return failure, so it is\n * worth checking this first if the caller is trying to \"discover\" the\n * engine's capabilities and doesn't want errors generated unnecessarily.\n */\n# define ENGINE_CTRL_HAS_CTRL_FUNCTION           10\n/*\n * Returns a positive command number for the first command supported by the\n * engine. Returns zero if no ctrl commands are supported.\n */\n# define ENGINE_CTRL_GET_FIRST_CMD_TYPE          11\n/*\n * The 'long' argument specifies a command implemented by the engine, and the\n * return value is the next command supported, or zero if there are no more.\n */\n# define ENGINE_CTRL_GET_NEXT_CMD_TYPE           12\n/*\n * The 'void*' argument is a command name (cast from 'const char *'), and the\n * return value is the command that corresponds to it.\n */\n# define ENGINE_CTRL_GET_CMD_FROM_NAME           13\n/*\n * The next two allow a command to be converted into its corresponding string\n * form. In each case, the 'long' argument supplies the command. In the\n * NAME_LEN case, the return value is the length of the command name (not\n * counting a trailing EOL). In the NAME case, the 'void*' argument must be a\n * string buffer large enough, and it will be populated with the name of the\n * command (WITH a trailing EOL).\n */\n# define ENGINE_CTRL_GET_NAME_LEN_FROM_CMD       14\n# define ENGINE_CTRL_GET_NAME_FROM_CMD           15\n/* The next two are similar but give a \"short description\" of a command. */\n# define ENGINE_CTRL_GET_DESC_LEN_FROM_CMD       16\n# define ENGINE_CTRL_GET_DESC_FROM_CMD           17\n/*\n * With this command, the return value is the OR'd combination of\n * ENGINE_CMD_FLAG_*** values that indicate what kind of input a given\n * engine-specific ctrl command expects.\n */\n# define ENGINE_CTRL_GET_CMD_FLAGS               18\n\n/*\n * ENGINE implementations should start the numbering of their own control\n * commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE + 1, etc).\n */\n# define ENGINE_CMD_BASE                         200\n\n/*\n * NB: These 2 nCipher \"chil\" control commands are deprecated, and their\n * functionality is now available through ENGINE-specific control commands\n * (exposed through the above-mentioned 'CMD'-handling). Code using these 2\n * commands should be migrated to the more general command handling before\n * these are removed.\n */\n\n/* Flags specific to the nCipher \"chil\" engine */\n# define ENGINE_CTRL_CHIL_SET_FORKCHECK          100\n        /*\n         * Depending on the value of the (long)i argument, this sets or\n         * unsets the SimpleForkCheck flag in the CHIL API to enable or\n         * disable checking and workarounds for applications that fork().\n         */\n# define ENGINE_CTRL_CHIL_NO_LOCKING             101\n        /*\n         * This prevents the initialisation function from providing mutex\n         * callbacks to the nCipher library.\n         */\n\n/*\n * If an ENGINE supports its own specific control commands and wishes the\n * framework to handle the above 'ENGINE_CMD_***'-manipulation commands on\n * its behalf, it should supply a null-terminated array of ENGINE_CMD_DEFN\n * entries to ENGINE_set_cmd_defns(). It should also implement a ctrl()\n * handler that supports the stated commands (ie. the \"cmd_num\" entries as\n * described by the array). NB: The array must be ordered in increasing order\n * of cmd_num. \"null-terminated\" means that the last ENGINE_CMD_DEFN element\n * has cmd_num set to zero and/or cmd_name set to NULL.\n */\ntypedef struct ENGINE_CMD_DEFN_st {\n    unsigned int cmd_num;       /* The command number */\n    const char *cmd_name;       /* The command name itself */\n    const char *cmd_desc;       /* A short description of the command */\n    unsigned int cmd_flags;     /* The input the command expects */\n} ENGINE_CMD_DEFN;\n\n/* Generic function pointer */\ntypedef int (*ENGINE_GEN_FUNC_PTR) (void);\n/* Generic function pointer taking no arguments */\ntypedef int (*ENGINE_GEN_INT_FUNC_PTR) (ENGINE *);\n/* Specific control function pointer */\ntypedef int (*ENGINE_CTRL_FUNC_PTR) (ENGINE *, int, long, void *,\n                                     void (*f) (void));\n/* Generic load_key function pointer */\ntypedef EVP_PKEY *(*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,\n                                         UI_METHOD *ui_method,\n                                         void *callback_data);\ntypedef int (*ENGINE_SSL_CLIENT_CERT_PTR) (ENGINE *, SSL *ssl,\n                                           STACK_OF(X509_NAME) *ca_dn,\n                                           X509 **pcert, EVP_PKEY **pkey,\n                                           STACK_OF(X509) **pother,\n                                           UI_METHOD *ui_method,\n                                           void *callback_data);\n/*-\n * These callback types are for an ENGINE's handler for cipher and digest logic.\n * These handlers have these prototypes;\n *   int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid);\n *   int foo(ENGINE *e, const EVP_MD **digest, const int **nids, int nid);\n * Looking at how to implement these handlers in the case of cipher support, if\n * the framework wants the EVP_CIPHER for 'nid', it will call;\n *   foo(e, &p_evp_cipher, NULL, nid);    (return zero for failure)\n * If the framework wants a list of supported 'nid's, it will call;\n *   foo(e, NULL, &p_nids, 0); (returns number of 'nids' or -1 for error)\n */\n/*\n * Returns to a pointer to the array of supported cipher 'nid's. If the\n * second parameter is non-NULL it is set to the size of the returned array.\n */\ntypedef int (*ENGINE_CIPHERS_PTR) (ENGINE *, const EVP_CIPHER **,\n                                   const int **, int);\ntypedef int (*ENGINE_DIGESTS_PTR) (ENGINE *, const EVP_MD **, const int **,\n                                   int);\ntypedef int (*ENGINE_PKEY_METHS_PTR) (ENGINE *, EVP_PKEY_METHOD **,\n                                      const int **, int);\ntypedef int (*ENGINE_PKEY_ASN1_METHS_PTR) (ENGINE *, EVP_PKEY_ASN1_METHOD **,\n                                           const int **, int);\n/*\n * STRUCTURE functions ... all of these functions deal with pointers to\n * ENGINE structures where the pointers have a \"structural reference\". This\n * means that their reference is to allowed access to the structure but it\n * does not imply that the structure is functional. To simply increment or\n * decrement the structural reference count, use ENGINE_by_id and\n * ENGINE_free. NB: This is not required when iterating using ENGINE_get_next\n * as it will automatically decrement the structural reference count of the\n * \"current\" ENGINE and increment the structural reference count of the\n * ENGINE it returns (unless it is NULL).\n */\n\n/* Get the first/last \"ENGINE\" type available. */\nENGINE *ENGINE_get_first(void);\nENGINE *ENGINE_get_last(void);\n/* Iterate to the next/previous \"ENGINE\" type (NULL = end of the list). */\nENGINE *ENGINE_get_next(ENGINE *e);\nENGINE *ENGINE_get_prev(ENGINE *e);\n/* Add another \"ENGINE\" type into the array. */\nint ENGINE_add(ENGINE *e);\n/* Remove an existing \"ENGINE\" type from the array. */\nint ENGINE_remove(ENGINE *e);\n/* Retrieve an engine from the list by its unique \"id\" value. */\nENGINE *ENGINE_by_id(const char *id);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define ENGINE_load_openssl() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_OPENSSL, NULL)\n# define ENGINE_load_dynamic() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_DYNAMIC, NULL)\n# ifndef OPENSSL_NO_STATIC_ENGINE\n#  define ENGINE_load_padlock() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_PADLOCK, NULL)\n#  define ENGINE_load_capi() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CAPI, NULL)\n#  define ENGINE_load_afalg() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_AFALG, NULL)\n# endif\n# define ENGINE_load_cryptodev() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CRYPTODEV, NULL)\n# define ENGINE_load_rdrand() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_RDRAND, NULL)\n#endif\nvoid ENGINE_load_builtin_engines(void);\n\n/*\n * Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation\n * \"registry\" handling.\n */\nunsigned int ENGINE_get_table_flags(void);\nvoid ENGINE_set_table_flags(unsigned int flags);\n\n/*- Manage registration of ENGINEs per \"table\". For each type, there are 3\n * functions;\n *   ENGINE_register_***(e) - registers the implementation from 'e' (if it has one)\n *   ENGINE_unregister_***(e) - unregister the implementation from 'e'\n *   ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list\n * Cleanup is automatically registered from each table when required.\n */\n\nint ENGINE_register_RSA(ENGINE *e);\nvoid ENGINE_unregister_RSA(ENGINE *e);\nvoid ENGINE_register_all_RSA(void);\n\nint ENGINE_register_DSA(ENGINE *e);\nvoid ENGINE_unregister_DSA(ENGINE *e);\nvoid ENGINE_register_all_DSA(void);\n\nint ENGINE_register_EC(ENGINE *e);\nvoid ENGINE_unregister_EC(ENGINE *e);\nvoid ENGINE_register_all_EC(void);\n\nint ENGINE_register_DH(ENGINE *e);\nvoid ENGINE_unregister_DH(ENGINE *e);\nvoid ENGINE_register_all_DH(void);\n\nint ENGINE_register_RAND(ENGINE *e);\nvoid ENGINE_unregister_RAND(ENGINE *e);\nvoid ENGINE_register_all_RAND(void);\n\nint ENGINE_register_ciphers(ENGINE *e);\nvoid ENGINE_unregister_ciphers(ENGINE *e);\nvoid ENGINE_register_all_ciphers(void);\n\nint ENGINE_register_digests(ENGINE *e);\nvoid ENGINE_unregister_digests(ENGINE *e);\nvoid ENGINE_register_all_digests(void);\n\nint ENGINE_register_pkey_meths(ENGINE *e);\nvoid ENGINE_unregister_pkey_meths(ENGINE *e);\nvoid ENGINE_register_all_pkey_meths(void);\n\nint ENGINE_register_pkey_asn1_meths(ENGINE *e);\nvoid ENGINE_unregister_pkey_asn1_meths(ENGINE *e);\nvoid ENGINE_register_all_pkey_asn1_meths(void);\n\n/*\n * These functions register all support from the above categories. Note, use\n * of these functions can result in static linkage of code your application\n * may not need. If you only need a subset of functionality, consider using\n * more selective initialisation.\n */\nint ENGINE_register_complete(ENGINE *e);\nint ENGINE_register_all_complete(void);\n\n/*\n * Send parameterised control commands to the engine. The possibilities to\n * send down an integer, a pointer to data or a function pointer are\n * provided. Any of the parameters may or may not be NULL, depending on the\n * command number. In actuality, this function only requires a structural\n * (rather than functional) reference to an engine, but many control commands\n * may require the engine be functional. The caller should be aware of trying\n * commands that require an operational ENGINE, and only use functional\n * references in such situations.\n */\nint ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void));\n\n/*\n * This function tests if an ENGINE-specific command is usable as a\n * \"setting\". Eg. in an application's config file that gets processed through\n * ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to\n * ENGINE_ctrl_cmd_string(), only ENGINE_ctrl().\n */\nint ENGINE_cmd_is_executable(ENGINE *e, int cmd);\n\n/*\n * This function works like ENGINE_ctrl() with the exception of taking a\n * command name instead of a command number, and can handle optional\n * commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation\n * on how to use the cmd_name and cmd_optional.\n */\nint ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,\n                    long i, void *p, void (*f) (void), int cmd_optional);\n\n/*\n * This function passes a command-name and argument to an ENGINE. The\n * cmd_name is converted to a command number and the control command is\n * called using 'arg' as an argument (unless the ENGINE doesn't support such\n * a command, in which case no control command is called). The command is\n * checked for input flags, and if necessary the argument will be converted\n * to a numeric value. If cmd_optional is non-zero, then if the ENGINE\n * doesn't support the given cmd_name the return value will be success\n * anyway. This function is intended for applications to use so that users\n * (or config files) can supply engine-specific config data to the ENGINE at\n * run-time to control behaviour of specific engines. As such, it shouldn't\n * be used for calling ENGINE_ctrl() functions that return data, deal with\n * binary data, or that are otherwise supposed to be used directly through\n * ENGINE_ctrl() in application code. Any \"return\" data from an ENGINE_ctrl()\n * operation in this function will be lost - the return value is interpreted\n * as failure if the return value is zero, success otherwise, and this\n * function returns a boolean value as a result. In other words, vendors of\n * 'ENGINE'-enabled devices should write ENGINE implementations with\n * parameterisations that work in this scheme, so that compliant ENGINE-based\n * applications can work consistently with the same configuration for the\n * same ENGINE-enabled devices, across applications.\n */\nint ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,\n                           int cmd_optional);\n\n/*\n * These functions are useful for manufacturing new ENGINE structures. They\n * don't address reference counting at all - one uses them to populate an\n * ENGINE structure with personalised implementations of things prior to\n * using it directly or adding it to the builtin ENGINE list in OpenSSL.\n * These are also here so that the ENGINE structure doesn't have to be\n * exposed and break binary compatibility!\n */\nENGINE *ENGINE_new(void);\nint ENGINE_free(ENGINE *e);\nint ENGINE_up_ref(ENGINE *e);\nint ENGINE_set_id(ENGINE *e, const char *id);\nint ENGINE_set_name(ENGINE *e, const char *name);\nint ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth);\nint ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth);\nint ENGINE_set_EC(ENGINE *e, const EC_KEY_METHOD *ecdsa_meth);\nint ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth);\nint ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth);\nint ENGINE_set_destroy_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR destroy_f);\nint ENGINE_set_init_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR init_f);\nint ENGINE_set_finish_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR finish_f);\nint ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f);\nint ENGINE_set_load_privkey_function(ENGINE *e,\n                                     ENGINE_LOAD_KEY_PTR loadpriv_f);\nint ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f);\nint ENGINE_set_load_ssl_client_cert_function(ENGINE *e,\n                                             ENGINE_SSL_CLIENT_CERT_PTR\n                                             loadssl_f);\nint ENGINE_set_ciphers(ENGINE *e, ENGINE_CIPHERS_PTR f);\nint ENGINE_set_digests(ENGINE *e, ENGINE_DIGESTS_PTR f);\nint ENGINE_set_pkey_meths(ENGINE *e, ENGINE_PKEY_METHS_PTR f);\nint ENGINE_set_pkey_asn1_meths(ENGINE *e, ENGINE_PKEY_ASN1_METHS_PTR f);\nint ENGINE_set_flags(ENGINE *e, int flags);\nint ENGINE_set_cmd_defns(ENGINE *e, const ENGINE_CMD_DEFN *defns);\n/* These functions allow control over any per-structure ENGINE data. */\n#define ENGINE_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ENGINE, l, p, newf, dupf, freef)\nint ENGINE_set_ex_data(ENGINE *e, int idx, void *arg);\nvoid *ENGINE_get_ex_data(const ENGINE *e, int idx);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * This function previously cleaned up anything that needs it. Auto-deinit will\n * now take care of it so it is no longer required to call this function.\n */\n# define ENGINE_cleanup() while(0) continue\n#endif\n\n/*\n * These return values from within the ENGINE structure. These can be useful\n * with functional references as well as structural references - it depends\n * which you obtained. Using the result for functional purposes if you only\n * obtained a structural reference may be problematic!\n */\nconst char *ENGINE_get_id(const ENGINE *e);\nconst char *ENGINE_get_name(const ENGINE *e);\nconst RSA_METHOD *ENGINE_get_RSA(const ENGINE *e);\nconst DSA_METHOD *ENGINE_get_DSA(const ENGINE *e);\nconst EC_KEY_METHOD *ENGINE_get_EC(const ENGINE *e);\nconst DH_METHOD *ENGINE_get_DH(const ENGINE *e);\nconst RAND_METHOD *ENGINE_get_RAND(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_destroy_function(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_init_function(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_finish_function(const ENGINE *e);\nENGINE_CTRL_FUNC_PTR ENGINE_get_ctrl_function(const ENGINE *e);\nENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e);\nENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e);\nENGINE_SSL_CLIENT_CERT_PTR ENGINE_get_ssl_client_cert_function(const ENGINE\n                                                               *e);\nENGINE_CIPHERS_PTR ENGINE_get_ciphers(const ENGINE *e);\nENGINE_DIGESTS_PTR ENGINE_get_digests(const ENGINE *e);\nENGINE_PKEY_METHS_PTR ENGINE_get_pkey_meths(const ENGINE *e);\nENGINE_PKEY_ASN1_METHS_PTR ENGINE_get_pkey_asn1_meths(const ENGINE *e);\nconst EVP_CIPHER *ENGINE_get_cipher(ENGINE *e, int nid);\nconst EVP_MD *ENGINE_get_digest(ENGINE *e, int nid);\nconst EVP_PKEY_METHOD *ENGINE_get_pkey_meth(ENGINE *e, int nid);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth(ENGINE *e, int nid);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth_str(ENGINE *e,\n                                                          const char *str,\n                                                          int len);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_pkey_asn1_find_str(ENGINE **pe,\n                                                      const char *str,\n                                                      int len);\nconst ENGINE_CMD_DEFN *ENGINE_get_cmd_defns(const ENGINE *e);\nint ENGINE_get_flags(const ENGINE *e);\n\n/*\n * FUNCTIONAL functions. These functions deal with ENGINE structures that\n * have (or will) be initialised for use. Broadly speaking, the structural\n * functions are useful for iterating the list of available engine types,\n * creating new engine types, and other \"list\" operations. These functions\n * actually deal with ENGINEs that are to be used. As such these functions\n * can fail (if applicable) when particular engines are unavailable - eg. if\n * a hardware accelerator is not attached or not functioning correctly. Each\n * ENGINE has 2 reference counts; structural and functional. Every time a\n * functional reference is obtained or released, a corresponding structural\n * reference is automatically obtained or released too.\n */\n\n/*\n * Initialise a engine type for use (or up its reference count if it's\n * already in use). This will fail if the engine is not currently operational\n * and cannot initialise.\n */\nint ENGINE_init(ENGINE *e);\n/*\n * Free a functional reference to a engine type. This does not require a\n * corresponding call to ENGINE_free as it also releases a structural\n * reference.\n */\nint ENGINE_finish(ENGINE *e);\n\n/*\n * The following functions handle keys that are stored in some secondary\n * location, handled by the engine.  The storage may be on a card or\n * whatever.\n */\nEVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,\n                                  UI_METHOD *ui_method, void *callback_data);\nEVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,\n                                 UI_METHOD *ui_method, void *callback_data);\nint ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s,\n                                STACK_OF(X509_NAME) *ca_dn, X509 **pcert,\n                                EVP_PKEY **ppkey, STACK_OF(X509) **pother,\n                                UI_METHOD *ui_method, void *callback_data);\n\n/*\n * This returns a pointer for the current ENGINE structure that is (by\n * default) performing any RSA operations. The value returned is an\n * incremented reference, so it should be free'd (ENGINE_finish) before it is\n * discarded.\n */\nENGINE *ENGINE_get_default_RSA(void);\n/* Same for the other \"methods\" */\nENGINE *ENGINE_get_default_DSA(void);\nENGINE *ENGINE_get_default_EC(void);\nENGINE *ENGINE_get_default_DH(void);\nENGINE *ENGINE_get_default_RAND(void);\n/*\n * These functions can be used to get a functional reference to perform\n * ciphering or digesting corresponding to \"nid\".\n */\nENGINE *ENGINE_get_cipher_engine(int nid);\nENGINE *ENGINE_get_digest_engine(int nid);\nENGINE *ENGINE_get_pkey_meth_engine(int nid);\nENGINE *ENGINE_get_pkey_asn1_meth_engine(int nid);\n\n/*\n * This sets a new default ENGINE structure for performing RSA operations. If\n * the result is non-zero (success) then the ENGINE structure will have had\n * its reference count up'd so the caller should still free their own\n * reference 'e'.\n */\nint ENGINE_set_default_RSA(ENGINE *e);\nint ENGINE_set_default_string(ENGINE *e, const char *def_list);\n/* Same for the other \"methods\" */\nint ENGINE_set_default_DSA(ENGINE *e);\nint ENGINE_set_default_EC(ENGINE *e);\nint ENGINE_set_default_DH(ENGINE *e);\nint ENGINE_set_default_RAND(ENGINE *e);\nint ENGINE_set_default_ciphers(ENGINE *e);\nint ENGINE_set_default_digests(ENGINE *e);\nint ENGINE_set_default_pkey_meths(ENGINE *e);\nint ENGINE_set_default_pkey_asn1_meths(ENGINE *e);\n\n/*\n * The combination \"set\" - the flags are bitwise \"OR\"d from the\n * ENGINE_METHOD_*** defines above. As with the \"ENGINE_register_complete()\"\n * function, this function can result in unnecessary static linkage. If your\n * application requires only specific functionality, consider using more\n * selective functions.\n */\nint ENGINE_set_default(ENGINE *e, unsigned int flags);\n\nvoid ENGINE_add_conf_module(void);\n\n/* Deprecated functions ... */\n/* int ENGINE_clear_defaults(void); */\n\n/**************************/\n/* DYNAMIC ENGINE SUPPORT */\n/**************************/\n\n/* Binary/behaviour compatibility levels */\n# define OSSL_DYNAMIC_VERSION            (unsigned long)0x00030000\n/*\n * Binary versions older than this are too old for us (whether we're a loader\n * or a loadee)\n */\n# define OSSL_DYNAMIC_OLDEST             (unsigned long)0x00030000\n\n/*\n * When compiling an ENGINE entirely as an external shared library, loadable\n * by the \"dynamic\" ENGINE, these types are needed. The 'dynamic_fns'\n * structure type provides the calling application's (or library's) error\n * functionality and memory management function pointers to the loaded\n * library. These should be used/set in the loaded library code so that the\n * loading application's 'state' will be used/changed in all operations. The\n * 'static_state' pointer allows the loaded library to know if it shares the\n * same static data as the calling application (or library), and thus whether\n * these callbacks need to be set or not.\n */\ntypedef void *(*dyn_MEM_malloc_fn) (size_t, const char *, int);\ntypedef void *(*dyn_MEM_realloc_fn) (void *, size_t, const char *, int);\ntypedef void (*dyn_MEM_free_fn) (void *, const char *, int);\ntypedef struct st_dynamic_MEM_fns {\n    dyn_MEM_malloc_fn malloc_fn;\n    dyn_MEM_realloc_fn realloc_fn;\n    dyn_MEM_free_fn free_fn;\n} dynamic_MEM_fns;\n/*\n * FIXME: Perhaps the memory and locking code (crypto.h) should declare and\n * use these types so we (and any other dependent code) can simplify a bit??\n */\n/* The top-level structure */\ntypedef struct st_dynamic_fns {\n    void *static_state;\n    dynamic_MEM_fns mem_fns;\n} dynamic_fns;\n\n/*\n * The version checking function should be of this prototype. NB: The\n * ossl_version value passed in is the OSSL_DYNAMIC_VERSION of the loading\n * code. If this function returns zero, it indicates a (potential) version\n * incompatibility and the loaded library doesn't believe it can proceed.\n * Otherwise, the returned value is the (latest) version supported by the\n * loading library. The loader may still decide that the loaded code's\n * version is unsatisfactory and could veto the load. The function is\n * expected to be implemented with the symbol name \"v_check\", and a default\n * implementation can be fully instantiated with\n * IMPLEMENT_DYNAMIC_CHECK_FN().\n */\ntypedef unsigned long (*dynamic_v_check_fn) (unsigned long ossl_version);\n# define IMPLEMENT_DYNAMIC_CHECK_FN() \\\n        OPENSSL_EXPORT unsigned long v_check(unsigned long v); \\\n        OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \\\n                if (v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \\\n                return 0; }\n\n/*\n * This function is passed the ENGINE structure to initialise with its own\n * function and command settings. It should not adjust the structural or\n * functional reference counts. If this function returns zero, (a) the load\n * will be aborted, (b) the previous ENGINE state will be memcpy'd back onto\n * the structure, and (c) the shared library will be unloaded. So\n * implementations should do their own internal cleanup in failure\n * circumstances otherwise they could leak. The 'id' parameter, if non-NULL,\n * represents the ENGINE id that the loader is looking for. If this is NULL,\n * the shared library can choose to return failure or to initialise a\n * 'default' ENGINE. If non-NULL, the shared library must initialise only an\n * ENGINE matching the passed 'id'. The function is expected to be\n * implemented with the symbol name \"bind_engine\". A standard implementation\n * can be instantiated with IMPLEMENT_DYNAMIC_BIND_FN(fn) where the parameter\n * 'fn' is a callback function that populates the ENGINE structure and\n * returns an int value (zero for failure). 'fn' should have prototype;\n * [static] int fn(ENGINE *e, const char *id);\n */\ntypedef int (*dynamic_bind_engine) (ENGINE *e, const char *id,\n                                    const dynamic_fns *fns);\n# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \\\n        OPENSSL_EXPORT \\\n        int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \\\n        OPENSSL_EXPORT \\\n        int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \\\n            if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \\\n            CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \\\n                                     fns->mem_fns.realloc_fn, \\\n                                     fns->mem_fns.free_fn); \\\n        skip_cbs: \\\n            if (!fn(e, id)) return 0; \\\n            return 1; }\n\n/*\n * If the loading application (or library) and the loaded ENGINE library\n * share the same static data (eg. they're both dynamically linked to the\n * same libcrypto.so) we need a way to avoid trying to set system callbacks -\n * this would fail, and for the same reason that it's unnecessary to try. If\n * the loaded ENGINE has (or gets from through the loader) its own copy of\n * the libcrypto static data, we will need to set the callbacks. The easiest\n * way to detect this is to have a function that returns a pointer to some\n * static data and let the loading application and loaded ENGINE compare\n * their respective values.\n */\nvoid *ENGINE_get_static_state(void);\n\n# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)\nDEPRECATEDIN_1_1_0(void ENGINE_setup_bsd_cryptodev(void))\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/engineerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENGINEERR_H\n# define HEADER_ENGINEERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_ENGINE\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_ENGINE_strings(void);\n\n/*\n * ENGINE function codes.\n */\n#  define ENGINE_F_DIGEST_UPDATE                           198\n#  define ENGINE_F_DYNAMIC_CTRL                            180\n#  define ENGINE_F_DYNAMIC_GET_DATA_CTX                    181\n#  define ENGINE_F_DYNAMIC_LOAD                            182\n#  define ENGINE_F_DYNAMIC_SET_DATA_CTX                    183\n#  define ENGINE_F_ENGINE_ADD                              105\n#  define ENGINE_F_ENGINE_BY_ID                            106\n#  define ENGINE_F_ENGINE_CMD_IS_EXECUTABLE                170\n#  define ENGINE_F_ENGINE_CTRL                             142\n#  define ENGINE_F_ENGINE_CTRL_CMD                         178\n#  define ENGINE_F_ENGINE_CTRL_CMD_STRING                  171\n#  define ENGINE_F_ENGINE_FINISH                           107\n#  define ENGINE_F_ENGINE_GET_CIPHER                       185\n#  define ENGINE_F_ENGINE_GET_DIGEST                       186\n#  define ENGINE_F_ENGINE_GET_FIRST                        195\n#  define ENGINE_F_ENGINE_GET_LAST                         196\n#  define ENGINE_F_ENGINE_GET_NEXT                         115\n#  define ENGINE_F_ENGINE_GET_PKEY_ASN1_METH               193\n#  define ENGINE_F_ENGINE_GET_PKEY_METH                    192\n#  define ENGINE_F_ENGINE_GET_PREV                         116\n#  define ENGINE_F_ENGINE_INIT                             119\n#  define ENGINE_F_ENGINE_LIST_ADD                         120\n#  define ENGINE_F_ENGINE_LIST_REMOVE                      121\n#  define ENGINE_F_ENGINE_LOAD_PRIVATE_KEY                 150\n#  define ENGINE_F_ENGINE_LOAD_PUBLIC_KEY                  151\n#  define ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT             194\n#  define ENGINE_F_ENGINE_NEW                              122\n#  define ENGINE_F_ENGINE_PKEY_ASN1_FIND_STR               197\n#  define ENGINE_F_ENGINE_REMOVE                           123\n#  define ENGINE_F_ENGINE_SET_DEFAULT_STRING               189\n#  define ENGINE_F_ENGINE_SET_ID                           129\n#  define ENGINE_F_ENGINE_SET_NAME                         130\n#  define ENGINE_F_ENGINE_TABLE_REGISTER                   184\n#  define ENGINE_F_ENGINE_UNLOCKED_FINISH                  191\n#  define ENGINE_F_ENGINE_UP_REF                           190\n#  define ENGINE_F_INT_CLEANUP_ITEM                        199\n#  define ENGINE_F_INT_CTRL_HELPER                         172\n#  define ENGINE_F_INT_ENGINE_CONFIGURE                    188\n#  define ENGINE_F_INT_ENGINE_MODULE_INIT                  187\n#  define ENGINE_F_OSSL_HMAC_INIT                          200\n\n/*\n * ENGINE reason codes.\n */\n#  define ENGINE_R_ALREADY_LOADED                          100\n#  define ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER                133\n#  define ENGINE_R_CMD_NOT_EXECUTABLE                      134\n#  define ENGINE_R_COMMAND_TAKES_INPUT                     135\n#  define ENGINE_R_COMMAND_TAKES_NO_INPUT                  136\n#  define ENGINE_R_CONFLICTING_ENGINE_ID                   103\n#  define ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED            119\n#  define ENGINE_R_DSO_FAILURE                             104\n#  define ENGINE_R_DSO_NOT_FOUND                           132\n#  define ENGINE_R_ENGINES_SECTION_ERROR                   148\n#  define ENGINE_R_ENGINE_CONFIGURATION_ERROR              102\n#  define ENGINE_R_ENGINE_IS_NOT_IN_LIST                   105\n#  define ENGINE_R_ENGINE_SECTION_ERROR                    149\n#  define ENGINE_R_FAILED_LOADING_PRIVATE_KEY              128\n#  define ENGINE_R_FAILED_LOADING_PUBLIC_KEY               129\n#  define ENGINE_R_FINISH_FAILED                           106\n#  define ENGINE_R_ID_OR_NAME_MISSING                      108\n#  define ENGINE_R_INIT_FAILED                             109\n#  define ENGINE_R_INTERNAL_LIST_ERROR                     110\n#  define ENGINE_R_INVALID_ARGUMENT                        143\n#  define ENGINE_R_INVALID_CMD_NAME                        137\n#  define ENGINE_R_INVALID_CMD_NUMBER                      138\n#  define ENGINE_R_INVALID_INIT_VALUE                      151\n#  define ENGINE_R_INVALID_STRING                          150\n#  define ENGINE_R_NOT_INITIALISED                         117\n#  define ENGINE_R_NOT_LOADED                              112\n#  define ENGINE_R_NO_CONTROL_FUNCTION                     120\n#  define ENGINE_R_NO_INDEX                                144\n#  define ENGINE_R_NO_LOAD_FUNCTION                        125\n#  define ENGINE_R_NO_REFERENCE                            130\n#  define ENGINE_R_NO_SUCH_ENGINE                          116\n#  define ENGINE_R_UNIMPLEMENTED_CIPHER                    146\n#  define ENGINE_R_UNIMPLEMENTED_DIGEST                    147\n#  define ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD         101\n#  define ENGINE_R_VERSION_INCOMPATIBILITY                 145\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/err.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ERR_H\n# define HEADER_ERR_H\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n#  include <stdlib.h>\n# endif\n\n# include <openssl/ossl_typ.h>\n# include <openssl/bio.h>\n# include <openssl/lhash.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# ifndef OPENSSL_NO_ERR\n#  define ERR_PUT_error(a,b,c,d,e)        ERR_put_error(a,b,c,d,e)\n# else\n#  define ERR_PUT_error(a,b,c,d,e)        ERR_put_error(a,b,c,NULL,0)\n# endif\n\n# include <errno.h>\n\n# define ERR_TXT_MALLOCED        0x01\n# define ERR_TXT_STRING          0x02\n\n# define ERR_FLAG_MARK           0x01\n# define ERR_FLAG_CLEAR          0x02\n\n# define ERR_NUM_ERRORS  16\ntypedef struct err_state_st {\n    int err_flags[ERR_NUM_ERRORS];\n    unsigned long err_buffer[ERR_NUM_ERRORS];\n    char *err_data[ERR_NUM_ERRORS];\n    int err_data_flags[ERR_NUM_ERRORS];\n    const char *err_file[ERR_NUM_ERRORS];\n    int err_line[ERR_NUM_ERRORS];\n    int top, bottom;\n} ERR_STATE;\n\n/* library */\n# define ERR_LIB_NONE            1\n# define ERR_LIB_SYS             2\n# define ERR_LIB_BN              3\n# define ERR_LIB_RSA             4\n# define ERR_LIB_DH              5\n# define ERR_LIB_EVP             6\n# define ERR_LIB_BUF             7\n# define ERR_LIB_OBJ             8\n# define ERR_LIB_PEM             9\n# define ERR_LIB_DSA             10\n# define ERR_LIB_X509            11\n/* #define ERR_LIB_METH         12 */\n# define ERR_LIB_ASN1            13\n# define ERR_LIB_CONF            14\n# define ERR_LIB_CRYPTO          15\n# define ERR_LIB_EC              16\n# define ERR_LIB_SSL             20\n/* #define ERR_LIB_SSL23        21 */\n/* #define ERR_LIB_SSL2         22 */\n/* #define ERR_LIB_SSL3         23 */\n/* #define ERR_LIB_RSAREF       30 */\n/* #define ERR_LIB_PROXY        31 */\n# define ERR_LIB_BIO             32\n# define ERR_LIB_PKCS7           33\n# define ERR_LIB_X509V3          34\n# define ERR_LIB_PKCS12          35\n# define ERR_LIB_RAND            36\n# define ERR_LIB_DSO             37\n# define ERR_LIB_ENGINE          38\n# define ERR_LIB_OCSP            39\n# define ERR_LIB_UI              40\n# define ERR_LIB_COMP            41\n# define ERR_LIB_ECDSA           42\n# define ERR_LIB_ECDH            43\n# define ERR_LIB_OSSL_STORE      44\n# define ERR_LIB_FIPS            45\n# define ERR_LIB_CMS             46\n# define ERR_LIB_TS              47\n# define ERR_LIB_HMAC            48\n/* # define ERR_LIB_JPAKE       49 */\n# define ERR_LIB_CT              50\n# define ERR_LIB_ASYNC           51\n# define ERR_LIB_KDF             52\n# define ERR_LIB_SM2             53\n\n# define ERR_LIB_USER            128\n\n# define SYSerr(f,r)  ERR_PUT_error(ERR_LIB_SYS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BNerr(f,r)   ERR_PUT_error(ERR_LIB_BN,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define RSAerr(f,r)  ERR_PUT_error(ERR_LIB_RSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DHerr(f,r)   ERR_PUT_error(ERR_LIB_DH,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define EVPerr(f,r)  ERR_PUT_error(ERR_LIB_EVP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BUFerr(f,r)  ERR_PUT_error(ERR_LIB_BUF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OBJerr(f,r)  ERR_PUT_error(ERR_LIB_OBJ,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PEMerr(f,r)  ERR_PUT_error(ERR_LIB_PEM,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DSAerr(f,r)  ERR_PUT_error(ERR_LIB_DSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define X509err(f,r) ERR_PUT_error(ERR_LIB_X509,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ASN1err(f,r) ERR_PUT_error(ERR_LIB_ASN1,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CONFerr(f,r) ERR_PUT_error(ERR_LIB_CONF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CRYPTOerr(f,r) ERR_PUT_error(ERR_LIB_CRYPTO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECerr(f,r)   ERR_PUT_error(ERR_LIB_EC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define SSLerr(f,r)  ERR_PUT_error(ERR_LIB_SSL,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BIOerr(f,r)  ERR_PUT_error(ERR_LIB_BIO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PKCS7err(f,r) ERR_PUT_error(ERR_LIB_PKCS7,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define X509V3err(f,r) ERR_PUT_error(ERR_LIB_X509V3,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PKCS12err(f,r) ERR_PUT_error(ERR_LIB_PKCS12,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define RANDerr(f,r) ERR_PUT_error(ERR_LIB_RAND,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DSOerr(f,r) ERR_PUT_error(ERR_LIB_DSO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ENGINEerr(f,r) ERR_PUT_error(ERR_LIB_ENGINE,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECDSAerr(f,r)  ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECDHerr(f,r)  ERR_PUT_error(ERR_LIB_ECDH,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OSSL_STOREerr(f,r) ERR_PUT_error(ERR_LIB_OSSL_STORE,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CTerr(f,r) ERR_PUT_error(ERR_LIB_CT,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ASYNCerr(f,r) ERR_PUT_error(ERR_LIB_ASYNC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define KDFerr(f,r) ERR_PUT_error(ERR_LIB_KDF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define SM2err(f,r) ERR_PUT_error(ERR_LIB_SM2,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n\n# define ERR_PACK(l,f,r) ( \\\n        (((unsigned int)(l) & 0x0FF) << 24L) | \\\n        (((unsigned int)(f) & 0xFFF) << 12L) | \\\n        (((unsigned int)(r) & 0xFFF)       ) )\n# define ERR_GET_LIB(l)          (int)(((l) >> 24L) & 0x0FFL)\n# define ERR_GET_FUNC(l)         (int)(((l) >> 12L) & 0xFFFL)\n# define ERR_GET_REASON(l)       (int)( (l)         & 0xFFFL)\n# define ERR_FATAL_ERROR(l)      (int)( (l)         & ERR_R_FATAL)\n\n/* OS functions */\n# define SYS_F_FOPEN             1\n# define SYS_F_CONNECT           2\n# define SYS_F_GETSERVBYNAME     3\n# define SYS_F_SOCKET            4\n# define SYS_F_IOCTLSOCKET       5\n# define SYS_F_BIND              6\n# define SYS_F_LISTEN            7\n# define SYS_F_ACCEPT            8\n# define SYS_F_WSASTARTUP        9/* Winsock stuff */\n# define SYS_F_OPENDIR           10\n# define SYS_F_FREAD             11\n# define SYS_F_GETADDRINFO       12\n# define SYS_F_GETNAMEINFO       13\n# define SYS_F_SETSOCKOPT        14\n# define SYS_F_GETSOCKOPT        15\n# define SYS_F_GETSOCKNAME       16\n# define SYS_F_GETHOSTBYNAME     17\n# define SYS_F_FFLUSH            18\n# define SYS_F_OPEN              19\n# define SYS_F_CLOSE             20\n# define SYS_F_IOCTL             21\n# define SYS_F_STAT              22\n# define SYS_F_FCNTL             23\n# define SYS_F_FSTAT             24\n\n/* reasons */\n# define ERR_R_SYS_LIB   ERR_LIB_SYS/* 2 */\n# define ERR_R_BN_LIB    ERR_LIB_BN/* 3 */\n# define ERR_R_RSA_LIB   ERR_LIB_RSA/* 4 */\n# define ERR_R_DH_LIB    ERR_LIB_DH/* 5 */\n# define ERR_R_EVP_LIB   ERR_LIB_EVP/* 6 */\n# define ERR_R_BUF_LIB   ERR_LIB_BUF/* 7 */\n# define ERR_R_OBJ_LIB   ERR_LIB_OBJ/* 8 */\n# define ERR_R_PEM_LIB   ERR_LIB_PEM/* 9 */\n# define ERR_R_DSA_LIB   ERR_LIB_DSA/* 10 */\n# define ERR_R_X509_LIB  ERR_LIB_X509/* 11 */\n# define ERR_R_ASN1_LIB  ERR_LIB_ASN1/* 13 */\n# define ERR_R_EC_LIB    ERR_LIB_EC/* 16 */\n# define ERR_R_BIO_LIB   ERR_LIB_BIO/* 32 */\n# define ERR_R_PKCS7_LIB ERR_LIB_PKCS7/* 33 */\n# define ERR_R_X509V3_LIB ERR_LIB_X509V3/* 34 */\n# define ERR_R_ENGINE_LIB ERR_LIB_ENGINE/* 38 */\n# define ERR_R_UI_LIB    ERR_LIB_UI/* 40 */\n# define ERR_R_ECDSA_LIB ERR_LIB_ECDSA/* 42 */\n# define ERR_R_OSSL_STORE_LIB ERR_LIB_OSSL_STORE/* 44 */\n\n# define ERR_R_NESTED_ASN1_ERROR                 58\n# define ERR_R_MISSING_ASN1_EOS                  63\n\n/* fatal error */\n# define ERR_R_FATAL                             64\n# define ERR_R_MALLOC_FAILURE                    (1|ERR_R_FATAL)\n# define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED       (2|ERR_R_FATAL)\n# define ERR_R_PASSED_NULL_PARAMETER             (3|ERR_R_FATAL)\n# define ERR_R_INTERNAL_ERROR                    (4|ERR_R_FATAL)\n# define ERR_R_DISABLED                          (5|ERR_R_FATAL)\n# define ERR_R_INIT_FAIL                         (6|ERR_R_FATAL)\n# define ERR_R_PASSED_INVALID_ARGUMENT           (7)\n# define ERR_R_OPERATION_FAIL                    (8|ERR_R_FATAL)\n\n/*\n * 99 is the maximum possible ERR_R_... code, higher values are reserved for\n * the individual libraries\n */\n\ntypedef struct ERR_string_data_st {\n    unsigned long error;\n    const char *string;\n} ERR_STRING_DATA;\n\nDEFINE_LHASH_OF(ERR_STRING_DATA);\n\nvoid ERR_put_error(int lib, int func, int reason, const char *file, int line);\nvoid ERR_set_error_data(char *data, int flags);\n\nunsigned long ERR_get_error(void);\nunsigned long ERR_get_error_line(const char **file, int *line);\nunsigned long ERR_get_error_line_data(const char **file, int *line,\n                                      const char **data, int *flags);\nunsigned long ERR_peek_error(void);\nunsigned long ERR_peek_error_line(const char **file, int *line);\nunsigned long ERR_peek_error_line_data(const char **file, int *line,\n                                       const char **data, int *flags);\nunsigned long ERR_peek_last_error(void);\nunsigned long ERR_peek_last_error_line(const char **file, int *line);\nunsigned long ERR_peek_last_error_line_data(const char **file, int *line,\n                                            const char **data, int *flags);\nvoid ERR_clear_error(void);\nchar *ERR_error_string(unsigned long e, char *buf);\nvoid ERR_error_string_n(unsigned long e, char *buf, size_t len);\nconst char *ERR_lib_error_string(unsigned long e);\nconst char *ERR_func_error_string(unsigned long e);\nconst char *ERR_reason_error_string(unsigned long e);\nvoid ERR_print_errors_cb(int (*cb) (const char *str, size_t len, void *u),\n                         void *u);\n# ifndef OPENSSL_NO_STDIO\nvoid ERR_print_errors_fp(FILE *fp);\n# endif\nvoid ERR_print_errors(BIO *bp);\nvoid ERR_add_error_data(int num, ...);\nvoid ERR_add_error_vdata(int num, va_list args);\nint ERR_load_strings(int lib, ERR_STRING_DATA *str);\nint ERR_load_strings_const(const ERR_STRING_DATA *str);\nint ERR_unload_strings(int lib, ERR_STRING_DATA *str);\nint ERR_load_ERR_strings(void);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define ERR_load_crypto_strings() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)\n# define ERR_free_strings() while(0) continue\n#endif\n\nDEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))\nDEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))\nERR_STATE *ERR_get_state(void);\n\nint ERR_get_next_error_library(void);\n\nint ERR_set_mark(void);\nint ERR_pop_to_mark(void);\nint ERR_clear_last_mark(void);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/evp.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENVELOPE_H\n# define HEADER_ENVELOPE_H\n\n# include <openssl/opensslconf.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/bio.h>\n# include <openssl/evperr.h>\n\n# define EVP_MAX_MD_SIZE                 64/* longest known is SHA512 */\n# define EVP_MAX_KEY_LENGTH              64\n# define EVP_MAX_IV_LENGTH               16\n# define EVP_MAX_BLOCK_LENGTH            32\n\n# define PKCS5_SALT_LEN                  8\n/* Default PKCS#5 iteration count */\n# define PKCS5_DEFAULT_ITER              2048\n\n# include <openssl/objects.h>\n\n# define EVP_PK_RSA      0x0001\n# define EVP_PK_DSA      0x0002\n# define EVP_PK_DH       0x0004\n# define EVP_PK_EC       0x0008\n# define EVP_PKT_SIGN    0x0010\n# define EVP_PKT_ENC     0x0020\n# define EVP_PKT_EXCH    0x0040\n# define EVP_PKS_RSA     0x0100\n# define EVP_PKS_DSA     0x0200\n# define EVP_PKS_EC      0x0400\n\n# define EVP_PKEY_NONE   NID_undef\n# define EVP_PKEY_RSA    NID_rsaEncryption\n# define EVP_PKEY_RSA2   NID_rsa\n# define EVP_PKEY_RSA_PSS NID_rsassaPss\n# define EVP_PKEY_DSA    NID_dsa\n# define EVP_PKEY_DSA1   NID_dsa_2\n# define EVP_PKEY_DSA2   NID_dsaWithSHA\n# define EVP_PKEY_DSA3   NID_dsaWithSHA1\n# define EVP_PKEY_DSA4   NID_dsaWithSHA1_2\n# define EVP_PKEY_DH     NID_dhKeyAgreement\n# define EVP_PKEY_DHX    NID_dhpublicnumber\n# define EVP_PKEY_EC     NID_X9_62_id_ecPublicKey\n# define EVP_PKEY_SM2    NID_sm2\n# define EVP_PKEY_HMAC   NID_hmac\n# define EVP_PKEY_CMAC   NID_cmac\n# define EVP_PKEY_SCRYPT NID_id_scrypt\n# define EVP_PKEY_TLS1_PRF NID_tls1_prf\n# define EVP_PKEY_HKDF   NID_hkdf\n# define EVP_PKEY_POLY1305 NID_poly1305\n# define EVP_PKEY_SIPHASH NID_siphash\n# define EVP_PKEY_X25519 NID_X25519\n# define EVP_PKEY_ED25519 NID_ED25519\n# define EVP_PKEY_X448 NID_X448\n# define EVP_PKEY_ED448 NID_ED448\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define EVP_PKEY_MO_SIGN        0x0001\n# define EVP_PKEY_MO_VERIFY      0x0002\n# define EVP_PKEY_MO_ENCRYPT     0x0004\n# define EVP_PKEY_MO_DECRYPT     0x0008\n\n# ifndef EVP_MD\nEVP_MD *EVP_MD_meth_new(int md_type, int pkey_type);\nEVP_MD *EVP_MD_meth_dup(const EVP_MD *md);\nvoid EVP_MD_meth_free(EVP_MD *md);\n\nint EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);\nint EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize);\nint EVP_MD_meth_set_app_datasize(EVP_MD *md, int datasize);\nint EVP_MD_meth_set_flags(EVP_MD *md, unsigned long flags);\nint EVP_MD_meth_set_init(EVP_MD *md, int (*init)(EVP_MD_CTX *ctx));\nint EVP_MD_meth_set_update(EVP_MD *md, int (*update)(EVP_MD_CTX *ctx,\n                                                     const void *data,\n                                                     size_t count));\nint EVP_MD_meth_set_final(EVP_MD *md, int (*final)(EVP_MD_CTX *ctx,\n                                                   unsigned char *md));\nint EVP_MD_meth_set_copy(EVP_MD *md, int (*copy)(EVP_MD_CTX *to,\n                                                 const EVP_MD_CTX *from));\nint EVP_MD_meth_set_cleanup(EVP_MD *md, int (*cleanup)(EVP_MD_CTX *ctx));\nint EVP_MD_meth_set_ctrl(EVP_MD *md, int (*ctrl)(EVP_MD_CTX *ctx, int cmd,\n                                                 int p1, void *p2));\n\nint EVP_MD_meth_get_input_blocksize(const EVP_MD *md);\nint EVP_MD_meth_get_result_size(const EVP_MD *md);\nint EVP_MD_meth_get_app_datasize(const EVP_MD *md);\nunsigned long EVP_MD_meth_get_flags(const EVP_MD *md);\nint (*EVP_MD_meth_get_init(const EVP_MD *md))(EVP_MD_CTX *ctx);\nint (*EVP_MD_meth_get_update(const EVP_MD *md))(EVP_MD_CTX *ctx,\n                                                const void *data,\n                                                size_t count);\nint (*EVP_MD_meth_get_final(const EVP_MD *md))(EVP_MD_CTX *ctx,\n                                               unsigned char *md);\nint (*EVP_MD_meth_get_copy(const EVP_MD *md))(EVP_MD_CTX *to,\n                                              const EVP_MD_CTX *from);\nint (*EVP_MD_meth_get_cleanup(const EVP_MD *md))(EVP_MD_CTX *ctx);\nint (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,\n                                              int p1, void *p2);\n\n/* digest can only handle a single block */\n#  define EVP_MD_FLAG_ONESHOT     0x0001\n\n/* digest is extensible-output function, XOF */\n#  define EVP_MD_FLAG_XOF         0x0002\n\n/* DigestAlgorithmIdentifier flags... */\n\n#  define EVP_MD_FLAG_DIGALGID_MASK               0x0018\n\n/* NULL or absent parameter accepted. Use NULL */\n\n#  define EVP_MD_FLAG_DIGALGID_NULL               0x0000\n\n/* NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent */\n\n#  define EVP_MD_FLAG_DIGALGID_ABSENT             0x0008\n\n/* Custom handling via ctrl */\n\n#  define EVP_MD_FLAG_DIGALGID_CUSTOM             0x0018\n\n/* Note if suitable for use in FIPS mode */\n#  define EVP_MD_FLAG_FIPS        0x0400\n\n/* Digest ctrls */\n\n#  define EVP_MD_CTRL_DIGALGID                    0x1\n#  define EVP_MD_CTRL_MICALG                      0x2\n#  define EVP_MD_CTRL_XOF_LEN                     0x3\n\n/* Minimum Algorithm specific ctrl value */\n\n#  define EVP_MD_CTRL_ALG_CTRL                    0x1000\n\n# endif                         /* !EVP_MD */\n\n/* values for EVP_MD_CTX flags */\n\n# define EVP_MD_CTX_FLAG_ONESHOT         0x0001/* digest update will be\n                                                * called once only */\n# define EVP_MD_CTX_FLAG_CLEANED         0x0002/* context has already been\n                                                * cleaned */\n# define EVP_MD_CTX_FLAG_REUSE           0x0004/* Don't free up ctx->md_data\n                                                * in EVP_MD_CTX_reset */\n/*\n * FIPS and pad options are ignored in 1.0.0, definitions are here so we\n * don't accidentally reuse the values for other purposes.\n */\n\n# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW  0x0008/* Allow use of non FIPS\n                                                * digest in FIPS mode */\n\n/*\n * The following PAD options are also currently ignored in 1.0.0, digest\n * parameters are handled through EVP_DigestSign*() and EVP_DigestVerify*()\n * instead.\n */\n# define EVP_MD_CTX_FLAG_PAD_MASK        0xF0/* RSA mode to use */\n# define EVP_MD_CTX_FLAG_PAD_PKCS1       0x00/* PKCS#1 v1.5 mode */\n# define EVP_MD_CTX_FLAG_PAD_X931        0x10/* X9.31 mode */\n# define EVP_MD_CTX_FLAG_PAD_PSS         0x20/* PSS mode */\n\n# define EVP_MD_CTX_FLAG_NO_INIT         0x0100/* Don't initialize md_data */\n/*\n * Some functions such as EVP_DigestSign only finalise copies of internal\n * contexts so additional data can be included after the finalisation call.\n * This is inefficient if this functionality is not required: it is disabled\n * if the following flag is set.\n */\n# define EVP_MD_CTX_FLAG_FINALISE        0x0200\n/* NOTE: 0x0400 is reserved for internal usage */\n\nEVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);\nEVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);\nvoid EVP_CIPHER_meth_free(EVP_CIPHER *cipher);\n\nint EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);\nint EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);\nint EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);\nint EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,\n                             int (*init) (EVP_CIPHER_CTX *ctx,\n                                          const unsigned char *key,\n                                          const unsigned char *iv,\n                                          int enc));\nint EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,\n                                  int (*do_cipher) (EVP_CIPHER_CTX *ctx,\n                                                    unsigned char *out,\n                                                    const unsigned char *in,\n                                                    size_t inl));\nint EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,\n                                int (*cleanup) (EVP_CIPHER_CTX *));\nint EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,\n                                        int (*set_asn1_parameters) (EVP_CIPHER_CTX *,\n                                                                    ASN1_TYPE *));\nint EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,\n                                        int (*get_asn1_parameters) (EVP_CIPHER_CTX *,\n                                                                    ASN1_TYPE *));\nint EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,\n                             int (*ctrl) (EVP_CIPHER_CTX *, int type,\n                                          int arg, void *ptr));\n\nint (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,\n                                                          const unsigned char *key,\n                                                          const unsigned char *iv,\n                                                          int enc);\nint (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,\n                                                               unsigned char *out,\n                                                               const unsigned char *in,\n                                                               size_t inl);\nint (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *);\nint (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                                     ASN1_TYPE *);\nint (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                               ASN1_TYPE *);\nint (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                          int type, int arg,\n                                                          void *ptr);\n\n/* Values for cipher flags */\n\n/* Modes for ciphers */\n\n# define         EVP_CIPH_STREAM_CIPHER          0x0\n# define         EVP_CIPH_ECB_MODE               0x1\n# define         EVP_CIPH_CBC_MODE               0x2\n# define         EVP_CIPH_CFB_MODE               0x3\n# define         EVP_CIPH_OFB_MODE               0x4\n# define         EVP_CIPH_CTR_MODE               0x5\n# define         EVP_CIPH_GCM_MODE               0x6\n# define         EVP_CIPH_CCM_MODE               0x7\n# define         EVP_CIPH_XTS_MODE               0x10001\n# define         EVP_CIPH_WRAP_MODE              0x10002\n# define         EVP_CIPH_OCB_MODE               0x10003\n# define         EVP_CIPH_MODE                   0xF0007\n/* Set if variable length cipher */\n# define         EVP_CIPH_VARIABLE_LENGTH        0x8\n/* Set if the iv handling should be done by the cipher itself */\n# define         EVP_CIPH_CUSTOM_IV              0x10\n/* Set if the cipher's init() function should be called if key is NULL */\n# define         EVP_CIPH_ALWAYS_CALL_INIT       0x20\n/* Call ctrl() to init cipher parameters */\n# define         EVP_CIPH_CTRL_INIT              0x40\n/* Don't use standard key length function */\n# define         EVP_CIPH_CUSTOM_KEY_LENGTH      0x80\n/* Don't use standard block padding */\n# define         EVP_CIPH_NO_PADDING             0x100\n/* cipher handles random key generation */\n# define         EVP_CIPH_RAND_KEY               0x200\n/* cipher has its own additional copying logic */\n# define         EVP_CIPH_CUSTOM_COPY            0x400\n/* Don't use standard iv length function */\n# define         EVP_CIPH_CUSTOM_IV_LENGTH       0x800\n/* Allow use default ASN1 get/set iv */\n# define         EVP_CIPH_FLAG_DEFAULT_ASN1      0x1000\n/* Buffer length in bits not bytes: CFB1 mode only */\n# define         EVP_CIPH_FLAG_LENGTH_BITS       0x2000\n/* Note if suitable for use in FIPS mode */\n# define         EVP_CIPH_FLAG_FIPS              0x4000\n/* Allow non FIPS cipher in FIPS mode */\n# define         EVP_CIPH_FLAG_NON_FIPS_ALLOW    0x8000\n/*\n * Cipher handles any and all padding logic as well as finalisation.\n */\n# define         EVP_CIPH_FLAG_CUSTOM_CIPHER     0x100000\n# define         EVP_CIPH_FLAG_AEAD_CIPHER       0x200000\n# define         EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000\n/* Cipher can handle pipeline operations */\n# define         EVP_CIPH_FLAG_PIPELINE          0X800000\n\n/*\n * Cipher context flag to indicate we can handle wrap mode: if allowed in\n * older applications it could overflow buffers.\n */\n\n# define         EVP_CIPHER_CTX_FLAG_WRAP_ALLOW  0x1\n\n/* ctrl() values */\n\n# define         EVP_CTRL_INIT                   0x0\n# define         EVP_CTRL_SET_KEY_LENGTH         0x1\n# define         EVP_CTRL_GET_RC2_KEY_BITS       0x2\n# define         EVP_CTRL_SET_RC2_KEY_BITS       0x3\n# define         EVP_CTRL_GET_RC5_ROUNDS         0x4\n# define         EVP_CTRL_SET_RC5_ROUNDS         0x5\n# define         EVP_CTRL_RAND_KEY               0x6\n# define         EVP_CTRL_PBE_PRF_NID            0x7\n# define         EVP_CTRL_COPY                   0x8\n# define         EVP_CTRL_AEAD_SET_IVLEN         0x9\n# define         EVP_CTRL_AEAD_GET_TAG           0x10\n# define         EVP_CTRL_AEAD_SET_TAG           0x11\n# define         EVP_CTRL_AEAD_SET_IV_FIXED      0x12\n# define         EVP_CTRL_GCM_SET_IVLEN          EVP_CTRL_AEAD_SET_IVLEN\n# define         EVP_CTRL_GCM_GET_TAG            EVP_CTRL_AEAD_GET_TAG\n# define         EVP_CTRL_GCM_SET_TAG            EVP_CTRL_AEAD_SET_TAG\n# define         EVP_CTRL_GCM_SET_IV_FIXED       EVP_CTRL_AEAD_SET_IV_FIXED\n# define         EVP_CTRL_GCM_IV_GEN             0x13\n# define         EVP_CTRL_CCM_SET_IVLEN          EVP_CTRL_AEAD_SET_IVLEN\n# define         EVP_CTRL_CCM_GET_TAG            EVP_CTRL_AEAD_GET_TAG\n# define         EVP_CTRL_CCM_SET_TAG            EVP_CTRL_AEAD_SET_TAG\n# define         EVP_CTRL_CCM_SET_IV_FIXED       EVP_CTRL_AEAD_SET_IV_FIXED\n# define         EVP_CTRL_CCM_SET_L              0x14\n# define         EVP_CTRL_CCM_SET_MSGLEN         0x15\n/*\n * AEAD cipher deduces payload length and returns number of bytes required to\n * store MAC and eventual padding. Subsequent call to EVP_Cipher even\n * appends/verifies MAC.\n */\n# define         EVP_CTRL_AEAD_TLS1_AAD          0x16\n/* Used by composite AEAD ciphers, no-op in GCM, CCM... */\n# define         EVP_CTRL_AEAD_SET_MAC_KEY       0x17\n/* Set the GCM invocation field, decrypt only */\n# define         EVP_CTRL_GCM_SET_IV_INV         0x18\n\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_AAD  0x19\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT      0x1a\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT      0x1b\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE  0x1c\n\n# define         EVP_CTRL_SSL3_MASTER_SECRET             0x1d\n\n/* EVP_CTRL_SET_SBOX takes the char * specifying S-boxes */\n# define         EVP_CTRL_SET_SBOX                       0x1e\n/*\n * EVP_CTRL_SBOX_USED takes a 'size_t' and 'char *', pointing at a\n * pre-allocated buffer with specified size\n */\n# define         EVP_CTRL_SBOX_USED                      0x1f\n/* EVP_CTRL_KEY_MESH takes 'size_t' number of bytes to mesh the key after,\n * 0 switches meshing off\n */\n# define         EVP_CTRL_KEY_MESH                       0x20\n/* EVP_CTRL_BLOCK_PADDING_MODE takes the padding mode */\n# define         EVP_CTRL_BLOCK_PADDING_MODE             0x21\n\n/* Set the output buffers to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS       0x22\n/* Set the input buffers to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_INPUT_BUFS        0x23\n/* Set the input buffer lengths to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_INPUT_LENS        0x24\n\n# define         EVP_CTRL_GET_IVLEN                      0x25\n\n/* Padding modes */\n#define EVP_PADDING_PKCS7       1\n#define EVP_PADDING_ISO7816_4   2\n#define EVP_PADDING_ANSI923     3\n#define EVP_PADDING_ISO10126    4\n#define EVP_PADDING_ZERO        5\n\n/* RFC 5246 defines additional data to be 13 bytes in length */\n# define         EVP_AEAD_TLS1_AAD_LEN           13\n\ntypedef struct {\n    unsigned char *out;\n    const unsigned char *inp;\n    size_t len;\n    unsigned int interleave;\n} EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM;\n\n/* GCM TLS constants */\n/* Length of fixed part of IV derived from PRF */\n# define EVP_GCM_TLS_FIXED_IV_LEN                        4\n/* Length of explicit part of IV part of TLS records */\n# define EVP_GCM_TLS_EXPLICIT_IV_LEN                     8\n/* Length of tag for TLS */\n# define EVP_GCM_TLS_TAG_LEN                             16\n\n/* CCM TLS constants */\n/* Length of fixed part of IV derived from PRF */\n# define EVP_CCM_TLS_FIXED_IV_LEN                        4\n/* Length of explicit part of IV part of TLS records */\n# define EVP_CCM_TLS_EXPLICIT_IV_LEN                     8\n/* Total length of CCM IV length for TLS */\n# define EVP_CCM_TLS_IV_LEN                              12\n/* Length of tag for TLS */\n# define EVP_CCM_TLS_TAG_LEN                             16\n/* Length of CCM8 tag for TLS */\n# define EVP_CCM8_TLS_TAG_LEN                            8\n\n/* Length of tag for TLS */\n# define EVP_CHACHAPOLY_TLS_TAG_LEN                      16\n\ntypedef struct evp_cipher_info_st {\n    const EVP_CIPHER *cipher;\n    unsigned char iv[EVP_MAX_IV_LENGTH];\n} EVP_CIPHER_INFO;\n\n\n/* Password based encryption function */\ntypedef int (EVP_PBE_KEYGEN) (EVP_CIPHER_CTX *ctx, const char *pass,\n                              int passlen, ASN1_TYPE *param,\n                              const EVP_CIPHER *cipher, const EVP_MD *md,\n                              int en_de);\n\n# ifndef OPENSSL_NO_RSA\n#  define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\\\n                                        (char *)(rsa))\n# endif\n\n# ifndef OPENSSL_NO_DSA\n#  define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\\\n                                        (char *)(dsa))\n# endif\n\n# ifndef OPENSSL_NO_DH\n#  define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,\\\n                                        (char *)(dh))\n# endif\n\n# ifndef OPENSSL_NO_EC\n#  define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\\\n                                        (char *)(eckey))\n# endif\n# ifndef OPENSSL_NO_SIPHASH\n#  define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),EVP_PKEY_SIPHASH,\\\n                                        (char *)(shkey))\n# endif\n\n# ifndef OPENSSL_NO_POLY1305\n#  define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),EVP_PKEY_POLY1305,\\\n                                        (char *)(polykey))\n# endif\n\n/* Add some extra combinations */\n# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a))\n# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a))\n# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a))\n# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a))\n\nint EVP_MD_type(const EVP_MD *md);\n# define EVP_MD_nid(e)                   EVP_MD_type(e)\n# define EVP_MD_name(e)                  OBJ_nid2sn(EVP_MD_nid(e))\nint EVP_MD_pkey_type(const EVP_MD *md);\nint EVP_MD_size(const EVP_MD *md);\nint EVP_MD_block_size(const EVP_MD *md);\nunsigned long EVP_MD_flags(const EVP_MD *md);\n\nconst EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx);\nint (*EVP_MD_CTX_update_fn(EVP_MD_CTX *ctx))(EVP_MD_CTX *ctx,\n                                             const void *data, size_t count);\nvoid EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx,\n                              int (*update) (EVP_MD_CTX *ctx,\n                                             const void *data, size_t count));\n# define EVP_MD_CTX_size(e)              EVP_MD_size(EVP_MD_CTX_md(e))\n# define EVP_MD_CTX_block_size(e)        EVP_MD_block_size(EVP_MD_CTX_md(e))\n# define EVP_MD_CTX_type(e)              EVP_MD_type(EVP_MD_CTX_md(e))\nEVP_PKEY_CTX *EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx);\nvoid EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx);\nvoid *EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx);\n\nint EVP_CIPHER_nid(const EVP_CIPHER *cipher);\n# define EVP_CIPHER_name(e)              OBJ_nid2sn(EVP_CIPHER_nid(e))\nint EVP_CIPHER_block_size(const EVP_CIPHER *cipher);\nint EVP_CIPHER_impl_ctx_size(const EVP_CIPHER *cipher);\nint EVP_CIPHER_key_length(const EVP_CIPHER *cipher);\nint EVP_CIPHER_iv_length(const EVP_CIPHER *cipher);\nunsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher);\n# define EVP_CIPHER_mode(e)              (EVP_CIPHER_flags(e) & EVP_CIPH_MODE)\n\nconst EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);\nconst unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx);\nconst unsigned char *EVP_CIPHER_CTX_original_iv(const EVP_CIPHER_CTX *ctx);\nunsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx);\nunsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_num(const EVP_CIPHER_CTX *ctx);\nvoid EVP_CIPHER_CTX_set_num(EVP_CIPHER_CTX *ctx, int num);\nint EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);\nvoid *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);\nvoid EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);\nvoid *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx);\nvoid *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);\n# define EVP_CIPHER_CTX_type(c)         EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define EVP_CIPHER_CTX_flags(c)       EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c))\n# endif\n# define EVP_CIPHER_CTX_mode(c)         EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c))\n\n# define EVP_ENCODE_LENGTH(l)    ((((l)+2)/3*4)+((l)/48+1)*2+80)\n# define EVP_DECODE_LENGTH(l)    (((l)+3)/4*3+80)\n\n# define EVP_SignInit_ex(a,b,c)          EVP_DigestInit_ex(a,b,c)\n# define EVP_SignInit(a,b)               EVP_DigestInit(a,b)\n# define EVP_SignUpdate(a,b,c)           EVP_DigestUpdate(a,b,c)\n# define EVP_VerifyInit_ex(a,b,c)        EVP_DigestInit_ex(a,b,c)\n# define EVP_VerifyInit(a,b)             EVP_DigestInit(a,b)\n# define EVP_VerifyUpdate(a,b,c)         EVP_DigestUpdate(a,b,c)\n# define EVP_OpenUpdate(a,b,c,d,e)       EVP_DecryptUpdate(a,b,c,d,e)\n# define EVP_SealUpdate(a,b,c,d,e)       EVP_EncryptUpdate(a,b,c,d,e)\n# define EVP_DigestSignUpdate(a,b,c)     EVP_DigestUpdate(a,b,c)\n# define EVP_DigestVerifyUpdate(a,b,c)   EVP_DigestUpdate(a,b,c)\n\n# ifdef CONST_STRICT\nvoid BIO_set_md(BIO *, const EVP_MD *md);\n# else\n#  define BIO_set_md(b,md)          BIO_ctrl(b,BIO_C_SET_MD,0,(char *)(md))\n# endif\n# define BIO_get_md(b,mdp)          BIO_ctrl(b,BIO_C_GET_MD,0,(char *)(mdp))\n# define BIO_get_md_ctx(b,mdcp)     BIO_ctrl(b,BIO_C_GET_MD_CTX,0, \\\n                                             (char *)(mdcp))\n# define BIO_set_md_ctx(b,mdcp)     BIO_ctrl(b,BIO_C_SET_MD_CTX,0, \\\n                                             (char *)(mdcp))\n# define BIO_get_cipher_status(b)   BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)\n# define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0, \\\n                                             (char *)(c_pp))\n\n/*__owur*/ int EVP_Cipher(EVP_CIPHER_CTX *c,\n                          unsigned char *out,\n                          const unsigned char *in, unsigned int inl);\n\n# define EVP_add_cipher_alias(n,alias) \\\n        OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))\n# define EVP_add_digest_alias(n,alias) \\\n        OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n))\n# define EVP_delete_cipher_alias(alias) \\\n        OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS);\n# define EVP_delete_digest_alias(alias) \\\n        OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);\n\nint EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2);\nEVP_MD_CTX *EVP_MD_CTX_new(void);\nint EVP_MD_CTX_reset(EVP_MD_CTX *ctx);\nvoid EVP_MD_CTX_free(EVP_MD_CTX *ctx);\n# define EVP_MD_CTX_create()     EVP_MD_CTX_new()\n# define EVP_MD_CTX_init(ctx)    EVP_MD_CTX_reset((ctx))\n# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx))\n__owur int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);\nvoid EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags);\nvoid EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags);\nint EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags);\n__owur int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,\n                                 ENGINE *impl);\n__owur int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d,\n                                size_t cnt);\n__owur int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md,\n                                  unsigned int *s);\n__owur int EVP_Digest(const void *data, size_t count,\n                          unsigned char *md, unsigned int *size,\n                          const EVP_MD *type, ENGINE *impl);\n\n__owur int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in);\n__owur int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);\n__owur int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md,\n                           unsigned int *s);\n__owur int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md,\n                              size_t len);\n\nint EVP_read_pw_string(char *buf, int length, const char *prompt, int verify);\nint EVP_read_pw_string_min(char *buf, int minlen, int maxlen,\n                           const char *prompt, int verify);\nvoid EVP_set_pw_prompt(const char *prompt);\nchar *EVP_get_pw_prompt(void);\n\n__owur int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,\n                          const unsigned char *salt,\n                          const unsigned char *data, int datal, int count,\n                          unsigned char *key, unsigned char *iv);\n\nvoid EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags);\nvoid EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags);\nint EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags);\n\n__owur int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                           const unsigned char *key, const unsigned char *iv);\n/*__owur*/ int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,\n                                  const EVP_CIPHER *cipher, ENGINE *impl,\n                                  const unsigned char *key,\n                                  const unsigned char *iv);\n/*__owur*/ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                 int *outl, const unsigned char *in, int inl);\n/*__owur*/ int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                   int *outl);\n/*__owur*/ int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                int *outl);\n\n__owur int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                           const unsigned char *key, const unsigned char *iv);\n/*__owur*/ int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,\n                                  const EVP_CIPHER *cipher, ENGINE *impl,\n                                  const unsigned char *key,\n                                  const unsigned char *iv);\n/*__owur*/ int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                 int *outl, const unsigned char *in, int inl);\n__owur int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                            int *outl);\n/*__owur*/ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                                   int *outl);\n\n__owur int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                          const unsigned char *key, const unsigned char *iv,\n                          int enc);\n/*__owur*/ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,\n                                 const EVP_CIPHER *cipher, ENGINE *impl,\n                                 const unsigned char *key,\n                                 const unsigned char *iv, int enc);\n__owur int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                            int *outl, const unsigned char *in, int inl);\n__owur int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                           int *outl);\n__owur int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                              int *outl);\n\n__owur int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s,\n                         EVP_PKEY *pkey);\n\n__owur int EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret,\n                          size_t *siglen, const unsigned char *tbs,\n                          size_t tbslen);\n\n__owur int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,\n                           unsigned int siglen, EVP_PKEY *pkey);\n\n__owur int EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret,\n                            size_t siglen, const unsigned char *tbs,\n                            size_t tbslen);\n\n/*__owur*/ int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,\n                                  const EVP_MD *type, ENGINE *e,\n                                  EVP_PKEY *pkey);\n__owur int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,\n                               size_t *siglen);\n\n__owur int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,\n                                const EVP_MD *type, ENGINE *e,\n                                EVP_PKEY *pkey);\n__owur int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,\n                                 size_t siglen);\n\n# ifndef OPENSSL_NO_RSA\n__owur int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n                        const unsigned char *ek, int ekl,\n                        const unsigned char *iv, EVP_PKEY *priv);\n__owur int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n\n__owur int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n                        unsigned char **ek, int *ekl, unsigned char *iv,\n                        EVP_PKEY **pubk, int npubk);\n__owur int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n# endif\n\nEVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void);\nvoid EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx);\nint EVP_ENCODE_CTX_copy(EVP_ENCODE_CTX *dctx, EVP_ENCODE_CTX *sctx);\nint EVP_ENCODE_CTX_num(EVP_ENCODE_CTX *ctx);\nvoid EVP_EncodeInit(EVP_ENCODE_CTX *ctx);\nint EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,\n                     const unsigned char *in, int inl);\nvoid EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl);\nint EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n);\n\nvoid EVP_DecodeInit(EVP_ENCODE_CTX *ctx);\nint EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,\n                     const unsigned char *in, int inl);\nint EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned\n                    char *out, int *outl);\nint EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define EVP_CIPHER_CTX_init(c)      EVP_CIPHER_CTX_reset(c)\n#  define EVP_CIPHER_CTX_cleanup(c)   EVP_CIPHER_CTX_reset(c)\n# endif\nEVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);\nint EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);\nvoid EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c);\nint EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);\nint EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad);\nint EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr);\nint EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);\n\nconst BIO_METHOD *BIO_f_md(void);\nconst BIO_METHOD *BIO_f_base64(void);\nconst BIO_METHOD *BIO_f_cipher(void);\nconst BIO_METHOD *BIO_f_reliable(void);\n__owur int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,\n                          const unsigned char *i, int enc);\n\nconst EVP_MD *EVP_md_null(void);\n# ifndef OPENSSL_NO_MD2\nconst EVP_MD *EVP_md2(void);\n# endif\n# ifndef OPENSSL_NO_MD4\nconst EVP_MD *EVP_md4(void);\n# endif\n# ifndef OPENSSL_NO_MD5\nconst EVP_MD *EVP_md5(void);\nconst EVP_MD *EVP_md5_sha1(void);\n# endif\n# ifndef OPENSSL_NO_BLAKE2\nconst EVP_MD *EVP_blake2b512(void);\nconst EVP_MD *EVP_blake2s256(void);\n# endif\nconst EVP_MD *EVP_sha1(void);\nconst EVP_MD *EVP_sha224(void);\nconst EVP_MD *EVP_sha256(void);\nconst EVP_MD *EVP_sha384(void);\nconst EVP_MD *EVP_sha512(void);\nconst EVP_MD *EVP_sha512_224(void);\nconst EVP_MD *EVP_sha512_256(void);\nconst EVP_MD *EVP_sha3_224(void);\nconst EVP_MD *EVP_sha3_256(void);\nconst EVP_MD *EVP_sha3_384(void);\nconst EVP_MD *EVP_sha3_512(void);\nconst EVP_MD *EVP_shake128(void);\nconst EVP_MD *EVP_shake256(void);\n# ifndef OPENSSL_NO_MDC2\nconst EVP_MD *EVP_mdc2(void);\n# endif\n# ifndef OPENSSL_NO_RMD160\nconst EVP_MD *EVP_ripemd160(void);\n# endif\n# ifndef OPENSSL_NO_WHIRLPOOL\nconst EVP_MD *EVP_whirlpool(void);\n# endif\n# ifndef OPENSSL_NO_SM3\nconst EVP_MD *EVP_sm3(void);\n# endif\nconst EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */\n# ifndef OPENSSL_NO_DES\nconst EVP_CIPHER *EVP_des_ecb(void);\nconst EVP_CIPHER *EVP_des_ede(void);\nconst EVP_CIPHER *EVP_des_ede3(void);\nconst EVP_CIPHER *EVP_des_ede_ecb(void);\nconst EVP_CIPHER *EVP_des_ede3_ecb(void);\nconst EVP_CIPHER *EVP_des_cfb64(void);\n#  define EVP_des_cfb EVP_des_cfb64\nconst EVP_CIPHER *EVP_des_cfb1(void);\nconst EVP_CIPHER *EVP_des_cfb8(void);\nconst EVP_CIPHER *EVP_des_ede_cfb64(void);\n#  define EVP_des_ede_cfb EVP_des_ede_cfb64\nconst EVP_CIPHER *EVP_des_ede3_cfb64(void);\n#  define EVP_des_ede3_cfb EVP_des_ede3_cfb64\nconst EVP_CIPHER *EVP_des_ede3_cfb1(void);\nconst EVP_CIPHER *EVP_des_ede3_cfb8(void);\nconst EVP_CIPHER *EVP_des_ofb(void);\nconst EVP_CIPHER *EVP_des_ede_ofb(void);\nconst EVP_CIPHER *EVP_des_ede3_ofb(void);\nconst EVP_CIPHER *EVP_des_cbc(void);\nconst EVP_CIPHER *EVP_des_ede_cbc(void);\nconst EVP_CIPHER *EVP_des_ede3_cbc(void);\nconst EVP_CIPHER *EVP_desx_cbc(void);\nconst EVP_CIPHER *EVP_des_ede3_wrap(void);\n/*\n * This should now be supported through the dev_crypto ENGINE. But also, why\n * are rc4 and md5 declarations made here inside a \"NO_DES\" precompiler\n * branch?\n */\n# endif\n# ifndef OPENSSL_NO_RC4\nconst EVP_CIPHER *EVP_rc4(void);\nconst EVP_CIPHER *EVP_rc4_40(void);\n#  ifndef OPENSSL_NO_MD5\nconst EVP_CIPHER *EVP_rc4_hmac_md5(void);\n#  endif\n# endif\n# ifndef OPENSSL_NO_IDEA\nconst EVP_CIPHER *EVP_idea_ecb(void);\nconst EVP_CIPHER *EVP_idea_cfb64(void);\n#  define EVP_idea_cfb EVP_idea_cfb64\nconst EVP_CIPHER *EVP_idea_ofb(void);\nconst EVP_CIPHER *EVP_idea_cbc(void);\n# endif\n# ifndef OPENSSL_NO_RC2\nconst EVP_CIPHER *EVP_rc2_ecb(void);\nconst EVP_CIPHER *EVP_rc2_cbc(void);\nconst EVP_CIPHER *EVP_rc2_40_cbc(void);\nconst EVP_CIPHER *EVP_rc2_64_cbc(void);\nconst EVP_CIPHER *EVP_rc2_cfb64(void);\n#  define EVP_rc2_cfb EVP_rc2_cfb64\nconst EVP_CIPHER *EVP_rc2_ofb(void);\n# endif\n# ifndef OPENSSL_NO_BF\nconst EVP_CIPHER *EVP_bf_ecb(void);\nconst EVP_CIPHER *EVP_bf_cbc(void);\nconst EVP_CIPHER *EVP_bf_cfb64(void);\n#  define EVP_bf_cfb EVP_bf_cfb64\nconst EVP_CIPHER *EVP_bf_ofb(void);\n# endif\n# ifndef OPENSSL_NO_CAST\nconst EVP_CIPHER *EVP_cast5_ecb(void);\nconst EVP_CIPHER *EVP_cast5_cbc(void);\nconst EVP_CIPHER *EVP_cast5_cfb64(void);\n#  define EVP_cast5_cfb EVP_cast5_cfb64\nconst EVP_CIPHER *EVP_cast5_ofb(void);\n# endif\n# ifndef OPENSSL_NO_RC5\nconst EVP_CIPHER *EVP_rc5_32_12_16_cbc(void);\nconst EVP_CIPHER *EVP_rc5_32_12_16_ecb(void);\nconst EVP_CIPHER *EVP_rc5_32_12_16_cfb64(void);\n#  define EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64\nconst EVP_CIPHER *EVP_rc5_32_12_16_ofb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_128_ecb(void);\nconst EVP_CIPHER *EVP_aes_128_cbc(void);\nconst EVP_CIPHER *EVP_aes_128_cfb1(void);\nconst EVP_CIPHER *EVP_aes_128_cfb8(void);\nconst EVP_CIPHER *EVP_aes_128_cfb128(void);\n# define EVP_aes_128_cfb EVP_aes_128_cfb128\nconst EVP_CIPHER *EVP_aes_128_ofb(void);\nconst EVP_CIPHER *EVP_aes_128_ctr(void);\nconst EVP_CIPHER *EVP_aes_128_ccm(void);\nconst EVP_CIPHER *EVP_aes_128_gcm(void);\nconst EVP_CIPHER *EVP_aes_128_xts(void);\nconst EVP_CIPHER *EVP_aes_128_wrap(void);\nconst EVP_CIPHER *EVP_aes_128_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_128_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_192_ecb(void);\nconst EVP_CIPHER *EVP_aes_192_cbc(void);\nconst EVP_CIPHER *EVP_aes_192_cfb1(void);\nconst EVP_CIPHER *EVP_aes_192_cfb8(void);\nconst EVP_CIPHER *EVP_aes_192_cfb128(void);\n# define EVP_aes_192_cfb EVP_aes_192_cfb128\nconst EVP_CIPHER *EVP_aes_192_ofb(void);\nconst EVP_CIPHER *EVP_aes_192_ctr(void);\nconst EVP_CIPHER *EVP_aes_192_ccm(void);\nconst EVP_CIPHER *EVP_aes_192_gcm(void);\nconst EVP_CIPHER *EVP_aes_192_wrap(void);\nconst EVP_CIPHER *EVP_aes_192_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_192_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_256_ecb(void);\nconst EVP_CIPHER *EVP_aes_256_cbc(void);\nconst EVP_CIPHER *EVP_aes_256_cfb1(void);\nconst EVP_CIPHER *EVP_aes_256_cfb8(void);\nconst EVP_CIPHER *EVP_aes_256_cfb128(void);\n# define EVP_aes_256_cfb EVP_aes_256_cfb128\nconst EVP_CIPHER *EVP_aes_256_ofb(void);\nconst EVP_CIPHER *EVP_aes_256_ctr(void);\nconst EVP_CIPHER *EVP_aes_256_ccm(void);\nconst EVP_CIPHER *EVP_aes_256_gcm(void);\nconst EVP_CIPHER *EVP_aes_256_xts(void);\nconst EVP_CIPHER *EVP_aes_256_wrap(void);\nconst EVP_CIPHER *EVP_aes_256_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_256_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void);\nconst EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1(void);\nconst EVP_CIPHER *EVP_aes_128_cbc_hmac_sha256(void);\nconst EVP_CIPHER *EVP_aes_256_cbc_hmac_sha256(void);\n# ifndef OPENSSL_NO_ARIA\nconst EVP_CIPHER *EVP_aria_128_ecb(void);\nconst EVP_CIPHER *EVP_aria_128_cbc(void);\nconst EVP_CIPHER *EVP_aria_128_cfb1(void);\nconst EVP_CIPHER *EVP_aria_128_cfb8(void);\nconst EVP_CIPHER *EVP_aria_128_cfb128(void);\n#  define EVP_aria_128_cfb EVP_aria_128_cfb128\nconst EVP_CIPHER *EVP_aria_128_ctr(void);\nconst EVP_CIPHER *EVP_aria_128_ofb(void);\nconst EVP_CIPHER *EVP_aria_128_gcm(void);\nconst EVP_CIPHER *EVP_aria_128_ccm(void);\nconst EVP_CIPHER *EVP_aria_192_ecb(void);\nconst EVP_CIPHER *EVP_aria_192_cbc(void);\nconst EVP_CIPHER *EVP_aria_192_cfb1(void);\nconst EVP_CIPHER *EVP_aria_192_cfb8(void);\nconst EVP_CIPHER *EVP_aria_192_cfb128(void);\n#  define EVP_aria_192_cfb EVP_aria_192_cfb128\nconst EVP_CIPHER *EVP_aria_192_ctr(void);\nconst EVP_CIPHER *EVP_aria_192_ofb(void);\nconst EVP_CIPHER *EVP_aria_192_gcm(void);\nconst EVP_CIPHER *EVP_aria_192_ccm(void);\nconst EVP_CIPHER *EVP_aria_256_ecb(void);\nconst EVP_CIPHER *EVP_aria_256_cbc(void);\nconst EVP_CIPHER *EVP_aria_256_cfb1(void);\nconst EVP_CIPHER *EVP_aria_256_cfb8(void);\nconst EVP_CIPHER *EVP_aria_256_cfb128(void);\n#  define EVP_aria_256_cfb EVP_aria_256_cfb128\nconst EVP_CIPHER *EVP_aria_256_ctr(void);\nconst EVP_CIPHER *EVP_aria_256_ofb(void);\nconst EVP_CIPHER *EVP_aria_256_gcm(void);\nconst EVP_CIPHER *EVP_aria_256_ccm(void);\n# endif\n# ifndef OPENSSL_NO_CAMELLIA\nconst EVP_CIPHER *EVP_camellia_128_ecb(void);\nconst EVP_CIPHER *EVP_camellia_128_cbc(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb128(void);\n#  define EVP_camellia_128_cfb EVP_camellia_128_cfb128\nconst EVP_CIPHER *EVP_camellia_128_ofb(void);\nconst EVP_CIPHER *EVP_camellia_128_ctr(void);\nconst EVP_CIPHER *EVP_camellia_192_ecb(void);\nconst EVP_CIPHER *EVP_camellia_192_cbc(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb128(void);\n#  define EVP_camellia_192_cfb EVP_camellia_192_cfb128\nconst EVP_CIPHER *EVP_camellia_192_ofb(void);\nconst EVP_CIPHER *EVP_camellia_192_ctr(void);\nconst EVP_CIPHER *EVP_camellia_256_ecb(void);\nconst EVP_CIPHER *EVP_camellia_256_cbc(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb128(void);\n#  define EVP_camellia_256_cfb EVP_camellia_256_cfb128\nconst EVP_CIPHER *EVP_camellia_256_ofb(void);\nconst EVP_CIPHER *EVP_camellia_256_ctr(void);\n# endif\n# ifndef OPENSSL_NO_CHACHA\nconst EVP_CIPHER *EVP_chacha20(void);\n#  ifndef OPENSSL_NO_POLY1305\nconst EVP_CIPHER *EVP_chacha20_poly1305(void);\n#  endif\n# endif\n\n# ifndef OPENSSL_NO_SEED\nconst EVP_CIPHER *EVP_seed_ecb(void);\nconst EVP_CIPHER *EVP_seed_cbc(void);\nconst EVP_CIPHER *EVP_seed_cfb128(void);\n#  define EVP_seed_cfb EVP_seed_cfb128\nconst EVP_CIPHER *EVP_seed_ofb(void);\n# endif\n\n# ifndef OPENSSL_NO_SM4\nconst EVP_CIPHER *EVP_sm4_ecb(void);\nconst EVP_CIPHER *EVP_sm4_cbc(void);\nconst EVP_CIPHER *EVP_sm4_cfb128(void);\n#  define EVP_sm4_cfb EVP_sm4_cfb128\nconst EVP_CIPHER *EVP_sm4_ofb(void);\nconst EVP_CIPHER *EVP_sm4_ctr(void);\n# endif\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OPENSSL_add_all_algorithms_conf() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \\\n                        | OPENSSL_INIT_ADD_ALL_DIGESTS \\\n                        | OPENSSL_INIT_LOAD_CONFIG, NULL)\n#  define OPENSSL_add_all_algorithms_noconf() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \\\n                        | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)\n\n#  ifdef OPENSSL_LOAD_CONF\n#   define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_conf()\n#  else\n#   define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_noconf()\n#  endif\n\n#  define OpenSSL_add_all_ciphers() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, NULL)\n#  define OpenSSL_add_all_digests() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)\n\n#  define EVP_cleanup() while(0) continue\n# endif\n\nint EVP_add_cipher(const EVP_CIPHER *cipher);\nint EVP_add_digest(const EVP_MD *digest);\n\nconst EVP_CIPHER *EVP_get_cipherbyname(const char *name);\nconst EVP_MD *EVP_get_digestbyname(const char *name);\n\nvoid EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph,\n                                   const char *from, const char *to, void *x),\n                       void *arg);\nvoid EVP_CIPHER_do_all_sorted(void (*fn)\n                               (const EVP_CIPHER *ciph, const char *from,\n                                const char *to, void *x), void *arg);\n\nvoid EVP_MD_do_all(void (*fn) (const EVP_MD *ciph,\n                               const char *from, const char *to, void *x),\n                   void *arg);\nvoid EVP_MD_do_all_sorted(void (*fn)\n                           (const EVP_MD *ciph, const char *from,\n                            const char *to, void *x), void *arg);\n\nint EVP_PKEY_decrypt_old(unsigned char *dec_key,\n                         const unsigned char *enc_key, int enc_key_len,\n                         EVP_PKEY *private_key);\nint EVP_PKEY_encrypt_old(unsigned char *enc_key,\n                         const unsigned char *key, int key_len,\n                         EVP_PKEY *pub_key);\nint EVP_PKEY_type(int type);\nint EVP_PKEY_id(const EVP_PKEY *pkey);\nint EVP_PKEY_base_id(const EVP_PKEY *pkey);\nint EVP_PKEY_bits(const EVP_PKEY *pkey);\nint EVP_PKEY_security_bits(const EVP_PKEY *pkey);\nint EVP_PKEY_size(const EVP_PKEY *pkey);\nint EVP_PKEY_set_type(EVP_PKEY *pkey, int type);\nint EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);\nint EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);\n# ifndef OPENSSL_NO_ENGINE\nint EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);\nENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);\n# endif\nint EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);\nvoid *EVP_PKEY_get0(const EVP_PKEY *pkey);\nconst unsigned char *EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len);\n# ifndef OPENSSL_NO_POLY1305\nconst unsigned char *EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len);\n# endif\n# ifndef OPENSSL_NO_SIPHASH\nconst unsigned char *EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len);\n# endif\n\n# ifndef OPENSSL_NO_RSA\nstruct rsa_st;\nint EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);\nstruct rsa_st *EVP_PKEY_get0_RSA(EVP_PKEY *pkey);\nstruct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_DSA\nstruct dsa_st;\nint EVP_PKEY_set1_DSA(EVP_PKEY *pkey, struct dsa_st *key);\nstruct dsa_st *EVP_PKEY_get0_DSA(EVP_PKEY *pkey);\nstruct dsa_st *EVP_PKEY_get1_DSA(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_DH\nstruct dh_st;\nint EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);\nstruct dh_st *EVP_PKEY_get0_DH(EVP_PKEY *pkey);\nstruct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_EC\nstruct ec_key_st;\nint EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);\nstruct ec_key_st *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey);\nstruct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);\n# endif\n\nEVP_PKEY *EVP_PKEY_new(void);\nint EVP_PKEY_up_ref(EVP_PKEY *pkey);\nvoid EVP_PKEY_free(EVP_PKEY *pkey);\n\nEVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp,\n                        long length);\nint i2d_PublicKey(EVP_PKEY *a, unsigned char **pp);\n\nEVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp,\n                         long length);\nEVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp,\n                             long length);\nint i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp);\n\nint EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);\nint EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);\nint EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode);\nint EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);\n\nint EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);\n\nint EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey,\n                          int indent, ASN1_PCTX *pctx);\nint EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey,\n                           int indent, ASN1_PCTX *pctx);\nint EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey,\n                          int indent, ASN1_PCTX *pctx);\n\nint EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);\n\nint EVP_PKEY_set1_tls_encodedpoint(EVP_PKEY *pkey,\n                                   const unsigned char *pt, size_t ptlen);\nsize_t EVP_PKEY_get1_tls_encodedpoint(EVP_PKEY *pkey, unsigned char **ppt);\n\nint EVP_CIPHER_type(const EVP_CIPHER *ctx);\n\n/* calls methods */\nint EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\nint EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n\n/* These are used by EVP_CIPHER methods */\nint EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\nint EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n\n/* PKCS5 password based encryption */\nint PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                       ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                       const EVP_MD *md, int en_de);\nint PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,\n                           const unsigned char *salt, int saltlen, int iter,\n                           int keylen, unsigned char *out);\nint PKCS5_PBKDF2_HMAC(const char *pass, int passlen,\n                      const unsigned char *salt, int saltlen, int iter,\n                      const EVP_MD *digest, int keylen, unsigned char *out);\nint PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                          ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                          const EVP_MD *md, int en_de);\n\n#ifndef OPENSSL_NO_SCRYPT\nint EVP_PBE_scrypt(const char *pass, size_t passlen,\n                   const unsigned char *salt, size_t saltlen,\n                   uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,\n                   unsigned char *key, size_t keylen);\n\nint PKCS5_v2_scrypt_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass,\n                             int passlen, ASN1_TYPE *param,\n                             const EVP_CIPHER *c, const EVP_MD *md, int en_de);\n#endif\n\nvoid PKCS5_PBE_add(void);\n\nint EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen,\n                       ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de);\n\n/* PBE type */\n\n/* Can appear as the outermost AlgorithmIdentifier */\n# define EVP_PBE_TYPE_OUTER      0x0\n/* Is an PRF type OID */\n# define EVP_PBE_TYPE_PRF        0x1\n/* Is a PKCS#5 v2.0 KDF */\n# define EVP_PBE_TYPE_KDF        0x2\n\nint EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,\n                         int md_nid, EVP_PBE_KEYGEN *keygen);\nint EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,\n                    EVP_PBE_KEYGEN *keygen);\nint EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,\n                 EVP_PBE_KEYGEN **pkeygen);\nvoid EVP_PBE_cleanup(void);\nint EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);\n\n# define ASN1_PKEY_ALIAS         0x1\n# define ASN1_PKEY_DYNAMIC       0x2\n# define ASN1_PKEY_SIGPARAM_NULL 0x4\n\n# define ASN1_PKEY_CTRL_PKCS7_SIGN       0x1\n# define ASN1_PKEY_CTRL_PKCS7_ENCRYPT    0x2\n# define ASN1_PKEY_CTRL_DEFAULT_MD_NID   0x3\n# define ASN1_PKEY_CTRL_CMS_SIGN         0x5\n# define ASN1_PKEY_CTRL_CMS_ENVELOPE     0x7\n# define ASN1_PKEY_CTRL_CMS_RI_TYPE      0x8\n\n# define ASN1_PKEY_CTRL_SET1_TLS_ENCPT   0x9\n# define ASN1_PKEY_CTRL_GET1_TLS_ENCPT   0xa\n\nint EVP_PKEY_asn1_get_count(void);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_get0(int idx);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pe,\n                                                   const char *str, int len);\nint EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);\nint EVP_PKEY_asn1_add_alias(int to, int from);\nint EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id,\n                            int *ppkey_flags, const char **pinfo,\n                            const char **ppem_str,\n                            const EVP_PKEY_ASN1_METHOD *ameth);\n\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey);\nEVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_new(int id, int flags,\n                                        const char *pem_str,\n                                        const char *info);\nvoid EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst,\n                        const EVP_PKEY_ASN1_METHOD *src);\nvoid EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);\nvoid EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,\n                              int (*pub_decode) (EVP_PKEY *pk,\n                                                 X509_PUBKEY *pub),\n                              int (*pub_encode) (X509_PUBKEY *pub,\n                                                 const EVP_PKEY *pk),\n                              int (*pub_cmp) (const EVP_PKEY *a,\n                                              const EVP_PKEY *b),\n                              int (*pub_print) (BIO *out,\n                                                const EVP_PKEY *pkey,\n                                                int indent, ASN1_PCTX *pctx),\n                              int (*pkey_size) (const EVP_PKEY *pk),\n                              int (*pkey_bits) (const EVP_PKEY *pk));\nvoid EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,\n                               int (*priv_decode) (EVP_PKEY *pk,\n                                                   const PKCS8_PRIV_KEY_INFO\n                                                   *p8inf),\n                               int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8,\n                                                   const EVP_PKEY *pk),\n                               int (*priv_print) (BIO *out,\n                                                  const EVP_PKEY *pkey,\n                                                  int indent,\n                                                  ASN1_PCTX *pctx));\nvoid EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,\n                             int (*param_decode) (EVP_PKEY *pkey,\n                                                  const unsigned char **pder,\n                                                  int derlen),\n                             int (*param_encode) (const EVP_PKEY *pkey,\n                                                  unsigned char **pder),\n                             int (*param_missing) (const EVP_PKEY *pk),\n                             int (*param_copy) (EVP_PKEY *to,\n                                                const EVP_PKEY *from),\n                             int (*param_cmp) (const EVP_PKEY *a,\n                                               const EVP_PKEY *b),\n                             int (*param_print) (BIO *out,\n                                                 const EVP_PKEY *pkey,\n                                                 int indent,\n                                                 ASN1_PCTX *pctx));\n\nvoid EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,\n                            void (*pkey_free) (EVP_PKEY *pkey));\nvoid EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,\n                            int (*pkey_ctrl) (EVP_PKEY *pkey, int op,\n                                              long arg1, void *arg2));\nvoid EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth,\n                            int (*item_verify) (EVP_MD_CTX *ctx,\n                                                const ASN1_ITEM *it,\n                                                void *asn,\n                                                X509_ALGOR *a,\n                                                ASN1_BIT_STRING *sig,\n                                                EVP_PKEY *pkey),\n                            int (*item_sign) (EVP_MD_CTX *ctx,\n                                              const ASN1_ITEM *it,\n                                              void *asn,\n                                              X509_ALGOR *alg1,\n                                              X509_ALGOR *alg2,\n                                              ASN1_BIT_STRING *sig));\n\nvoid EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth,\n                              int (*siginf_set) (X509_SIG_INFO *siginf,\n                                                 const X509_ALGOR *alg,\n                                                 const ASN1_STRING *sig));\n\nvoid EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth,\n                             int (*pkey_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*pkey_pub_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*pkey_param_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_set_priv_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*set_priv_key) (EVP_PKEY *pk,\n                                                         const unsigned char\n                                                            *priv,\n                                                         size_t len));\nvoid EVP_PKEY_asn1_set_set_pub_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*set_pub_key) (EVP_PKEY *pk,\n                                                       const unsigned char *pub,\n                                                       size_t len));\nvoid EVP_PKEY_asn1_set_get_priv_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*get_priv_key) (const EVP_PKEY *pk,\n                                                         unsigned char *priv,\n                                                         size_t *len));\nvoid EVP_PKEY_asn1_set_get_pub_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*get_pub_key) (const EVP_PKEY *pk,\n                                                       unsigned char *pub,\n                                                       size_t *len));\n\nvoid EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth,\n                                     int (*pkey_security_bits) (const EVP_PKEY\n                                                                *pk));\n\n# define EVP_PKEY_OP_UNDEFINED           0\n# define EVP_PKEY_OP_PARAMGEN            (1<<1)\n# define EVP_PKEY_OP_KEYGEN              (1<<2)\n# define EVP_PKEY_OP_SIGN                (1<<3)\n# define EVP_PKEY_OP_VERIFY              (1<<4)\n# define EVP_PKEY_OP_VERIFYRECOVER       (1<<5)\n# define EVP_PKEY_OP_SIGNCTX             (1<<6)\n# define EVP_PKEY_OP_VERIFYCTX           (1<<7)\n# define EVP_PKEY_OP_ENCRYPT             (1<<8)\n# define EVP_PKEY_OP_DECRYPT             (1<<9)\n# define EVP_PKEY_OP_DERIVE              (1<<10)\n\n# define EVP_PKEY_OP_TYPE_SIG    \\\n        (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYRECOVER \\\n                | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)\n\n# define EVP_PKEY_OP_TYPE_CRYPT \\\n        (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)\n\n# define EVP_PKEY_OP_TYPE_NOGEN \\\n        (EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT | EVP_PKEY_OP_DERIVE)\n\n# define EVP_PKEY_OP_TYPE_GEN \\\n                (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)\n\n# define  EVP_PKEY_CTX_set_signature_md(ctx, md) \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG,  \\\n                                        EVP_PKEY_CTRL_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_get_signature_md(ctx, pmd)        \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG,  \\\n                                        EVP_PKEY_CTRL_GET_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_set_mac_key(ctx, key, len)        \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_KEYGEN,  \\\n                                  EVP_PKEY_CTRL_SET_MAC_KEY, len, (void *)(key))\n\n# define EVP_PKEY_CTRL_MD                1\n# define EVP_PKEY_CTRL_PEER_KEY          2\n\n# define EVP_PKEY_CTRL_PKCS7_ENCRYPT     3\n# define EVP_PKEY_CTRL_PKCS7_DECRYPT     4\n\n# define EVP_PKEY_CTRL_PKCS7_SIGN        5\n\n# define EVP_PKEY_CTRL_SET_MAC_KEY       6\n\n# define EVP_PKEY_CTRL_DIGESTINIT        7\n\n/* Used by GOST key encryption in TLS */\n# define EVP_PKEY_CTRL_SET_IV            8\n\n# define EVP_PKEY_CTRL_CMS_ENCRYPT       9\n# define EVP_PKEY_CTRL_CMS_DECRYPT       10\n# define EVP_PKEY_CTRL_CMS_SIGN          11\n\n# define EVP_PKEY_CTRL_CIPHER            12\n\n# define EVP_PKEY_CTRL_GET_MD            13\n\n# define EVP_PKEY_CTRL_SET_DIGEST_SIZE   14\n\n# define EVP_PKEY_ALG_CTRL               0x1000\n\n# define EVP_PKEY_FLAG_AUTOARGLEN        2\n/*\n * Method handles all operations: don't assume any digest related defaults.\n */\n# define EVP_PKEY_FLAG_SIGCTX_CUSTOM     4\n\nconst EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type);\nEVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags);\nvoid EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,\n                             const EVP_PKEY_METHOD *meth);\nvoid EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src);\nvoid EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth);\nint EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth);\nint EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth);\nsize_t EVP_PKEY_meth_get_count(void);\nconst EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);\n\nEVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);\nEVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);\nEVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);\nvoid EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,\n                      int cmd, int p1, void *p2);\nint EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *type,\n                          const char *value);\nint EVP_PKEY_CTX_ctrl_uint64(EVP_PKEY_CTX *ctx, int keytype, int optype,\n                             int cmd, uint64_t value);\n\nint EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);\nint EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex);\n\nint EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md);\n\nint EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx);\nvoid EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen);\n\nEVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e,\n                               const unsigned char *key, int keylen);\nEVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *e,\n                                       const unsigned char *priv,\n                                       size_t len);\nEVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *e,\n                                      const unsigned char *pub,\n                                      size_t len);\nint EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv,\n                                 size_t *len);\nint EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub,\n                                size_t *len);\n\nEVP_PKEY *EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv,\n                                size_t len, const EVP_CIPHER *cipher);\n\nvoid EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data);\nvoid *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx);\nEVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);\n\nEVP_PKEY *EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx);\n\nvoid EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data);\nvoid *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n                  unsigned char *sig, size_t *siglen,\n                  const unsigned char *tbs, size_t tbslen);\nint EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_verify(EVP_PKEY_CTX *ctx,\n                    const unsigned char *sig, size_t siglen,\n                    const unsigned char *tbs, size_t tbslen);\nint EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx,\n                            unsigned char *rout, size_t *routlen,\n                            const unsigned char *sig, size_t siglen);\nint EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx,\n                     unsigned char *out, size_t *outlen,\n                     const unsigned char *in, size_t inlen);\nint EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx,\n                     unsigned char *out, size_t *outlen,\n                     const unsigned char *in, size_t inlen);\n\nint EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer);\nint EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);\n\ntypedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\nint EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\nint EVP_PKEY_check(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_public_check(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_param_check(EVP_PKEY_CTX *ctx);\n\nvoid EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);\nEVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);\n\nvoid EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,\n                            int (*init) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth,\n                            int (*copy) (EVP_PKEY_CTX *dst,\n                                         EVP_PKEY_CTX *src));\n\nvoid EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth,\n                               void (*cleanup) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth,\n                                int (*paramgen_init) (EVP_PKEY_CTX *ctx),\n                                int (*paramgen) (EVP_PKEY_CTX *ctx,\n                                                 EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth,\n                              int (*keygen_init) (EVP_PKEY_CTX *ctx),\n                              int (*keygen) (EVP_PKEY_CTX *ctx,\n                                             EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth,\n                            int (*sign_init) (EVP_PKEY_CTX *ctx),\n                            int (*sign) (EVP_PKEY_CTX *ctx,\n                                         unsigned char *sig, size_t *siglen,\n                                         const unsigned char *tbs,\n                                         size_t tbslen));\n\nvoid EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth,\n                              int (*verify_init) (EVP_PKEY_CTX *ctx),\n                              int (*verify) (EVP_PKEY_CTX *ctx,\n                                             const unsigned char *sig,\n                                             size_t siglen,\n                                             const unsigned char *tbs,\n                                             size_t tbslen));\n\nvoid EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth,\n                                      int (*verify_recover_init) (EVP_PKEY_CTX\n                                                                  *ctx),\n                                      int (*verify_recover) (EVP_PKEY_CTX\n                                                             *ctx,\n                                                             unsigned char\n                                                             *sig,\n                                                             size_t *siglen,\n                                                             const unsigned\n                                                             char *tbs,\n                                                             size_t tbslen));\n\nvoid EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth,\n                               int (*signctx_init) (EVP_PKEY_CTX *ctx,\n                                                    EVP_MD_CTX *mctx),\n                               int (*signctx) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *sig,\n                                               size_t *siglen,\n                                               EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth,\n                                 int (*verifyctx_init) (EVP_PKEY_CTX *ctx,\n                                                        EVP_MD_CTX *mctx),\n                                 int (*verifyctx) (EVP_PKEY_CTX *ctx,\n                                                   const unsigned char *sig,\n                                                   int siglen,\n                                                   EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth,\n                               int (*encrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (*encryptfn) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *out,\n                                                 size_t *outlen,\n                                                 const unsigned char *in,\n                                                 size_t inlen));\n\nvoid EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth,\n                               int (*decrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (*decrypt) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *out,\n                                               size_t *outlen,\n                                               const unsigned char *in,\n                                               size_t inlen));\n\nvoid EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth,\n                              int (*derive_init) (EVP_PKEY_CTX *ctx),\n                              int (*derive) (EVP_PKEY_CTX *ctx,\n                                             unsigned char *key,\n                                             size_t *keylen));\n\nvoid EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,\n                            int (*ctrl) (EVP_PKEY_CTX *ctx, int type, int p1,\n                                         void *p2),\n                            int (*ctrl_str) (EVP_PKEY_CTX *ctx,\n                                             const char *type,\n                                             const char *value));\n\nvoid EVP_PKEY_meth_set_digestsign(EVP_PKEY_METHOD *pmeth,\n                                  int (*digestsign) (EVP_MD_CTX *ctx,\n                                                     unsigned char *sig,\n                                                     size_t *siglen,\n                                                     const unsigned char *tbs,\n                                                     size_t tbslen));\n\nvoid EVP_PKEY_meth_set_digestverify(EVP_PKEY_METHOD *pmeth,\n                                    int (*digestverify) (EVP_MD_CTX *ctx,\n                                                         const unsigned char *sig,\n                                                         size_t siglen,\n                                                         const unsigned char *tbs,\n                                                         size_t tbslen));\n\nvoid EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,\n                             int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth,\n                                    int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth,\n                                   int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_digest_custom(EVP_PKEY_METHOD *pmeth,\n                                     int (*digest_custom) (EVP_PKEY_CTX *ctx,\n                                                           EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_init(const EVP_PKEY_METHOD *pmeth,\n                            int (**pinit) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_get_copy(const EVP_PKEY_METHOD *pmeth,\n                            int (**pcopy) (EVP_PKEY_CTX *dst,\n                                           EVP_PKEY_CTX *src));\n\nvoid EVP_PKEY_meth_get_cleanup(const EVP_PKEY_METHOD *pmeth,\n                               void (**pcleanup) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_get_paramgen(const EVP_PKEY_METHOD *pmeth,\n                                int (**pparamgen_init) (EVP_PKEY_CTX *ctx),\n                                int (**pparamgen) (EVP_PKEY_CTX *ctx,\n                                                   EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_keygen(const EVP_PKEY_METHOD *pmeth,\n                              int (**pkeygen_init) (EVP_PKEY_CTX *ctx),\n                              int (**pkeygen) (EVP_PKEY_CTX *ctx,\n                                               EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_sign(const EVP_PKEY_METHOD *pmeth,\n                            int (**psign_init) (EVP_PKEY_CTX *ctx),\n                            int (**psign) (EVP_PKEY_CTX *ctx,\n                                           unsigned char *sig, size_t *siglen,\n                                           const unsigned char *tbs,\n                                           size_t tbslen));\n\nvoid EVP_PKEY_meth_get_verify(const EVP_PKEY_METHOD *pmeth,\n                              int (**pverify_init) (EVP_PKEY_CTX *ctx),\n                              int (**pverify) (EVP_PKEY_CTX *ctx,\n                                               const unsigned char *sig,\n                                               size_t siglen,\n                                               const unsigned char *tbs,\n                                               size_t tbslen));\n\nvoid EVP_PKEY_meth_get_verify_recover(const EVP_PKEY_METHOD *pmeth,\n                                      int (**pverify_recover_init) (EVP_PKEY_CTX\n                                                                    *ctx),\n                                      int (**pverify_recover) (EVP_PKEY_CTX\n                                                               *ctx,\n                                                               unsigned char\n                                                               *sig,\n                                                               size_t *siglen,\n                                                               const unsigned\n                                                               char *tbs,\n                                                               size_t tbslen));\n\nvoid EVP_PKEY_meth_get_signctx(const EVP_PKEY_METHOD *pmeth,\n                               int (**psignctx_init) (EVP_PKEY_CTX *ctx,\n                                                      EVP_MD_CTX *mctx),\n                               int (**psignctx) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *sig,\n                                                 size_t *siglen,\n                                                 EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_verifyctx(const EVP_PKEY_METHOD *pmeth,\n                                 int (**pverifyctx_init) (EVP_PKEY_CTX *ctx,\n                                                          EVP_MD_CTX *mctx),\n                                 int (**pverifyctx) (EVP_PKEY_CTX *ctx,\n                                                     const unsigned char *sig,\n                                                     int siglen,\n                                                     EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_encrypt(const EVP_PKEY_METHOD *pmeth,\n                               int (**pencrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (**pencryptfn) (EVP_PKEY_CTX *ctx,\n                                                   unsigned char *out,\n                                                   size_t *outlen,\n                                                   const unsigned char *in,\n                                                   size_t inlen));\n\nvoid EVP_PKEY_meth_get_decrypt(const EVP_PKEY_METHOD *pmeth,\n                               int (**pdecrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (**pdecrypt) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *out,\n                                                 size_t *outlen,\n                                                 const unsigned char *in,\n                                                 size_t inlen));\n\nvoid EVP_PKEY_meth_get_derive(const EVP_PKEY_METHOD *pmeth,\n                              int (**pderive_init) (EVP_PKEY_CTX *ctx),\n                              int (**pderive) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *key,\n                                               size_t *keylen));\n\nvoid EVP_PKEY_meth_get_ctrl(const EVP_PKEY_METHOD *pmeth,\n                            int (**pctrl) (EVP_PKEY_CTX *ctx, int type, int p1,\n                                           void *p2),\n                            int (**pctrl_str) (EVP_PKEY_CTX *ctx,\n                                               const char *type,\n                                               const char *value));\n\nvoid EVP_PKEY_meth_get_digestsign(EVP_PKEY_METHOD *pmeth,\n                                  int (**digestsign) (EVP_MD_CTX *ctx,\n                                                      unsigned char *sig,\n                                                      size_t *siglen,\n                                                      const unsigned char *tbs,\n                                                      size_t tbslen));\n\nvoid EVP_PKEY_meth_get_digestverify(EVP_PKEY_METHOD *pmeth,\n                                    int (**digestverify) (EVP_MD_CTX *ctx,\n                                                          const unsigned char *sig,\n                                                          size_t siglen,\n                                                          const unsigned char *tbs,\n                                                          size_t tbslen));\n\nvoid EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,\n                             int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_public_check(const EVP_PKEY_METHOD *pmeth,\n                                    int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_param_check(const EVP_PKEY_METHOD *pmeth,\n                                   int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_digest_custom(EVP_PKEY_METHOD *pmeth,\n                                     int (**pdigest_custom) (EVP_PKEY_CTX *ctx,\n                                                             EVP_MD_CTX *mctx));\nvoid EVP_add_alg_module(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/evperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EVPERR_H\n# define HEADER_EVPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_EVP_strings(void);\n\n/*\n * EVP function codes.\n */\n# define EVP_F_AESNI_INIT_KEY                             165\n# define EVP_F_AESNI_XTS_INIT_KEY                         207\n# define EVP_F_AES_GCM_CTRL                               196\n# define EVP_F_AES_INIT_KEY                               133\n# define EVP_F_AES_OCB_CIPHER                             169\n# define EVP_F_AES_T4_INIT_KEY                            178\n# define EVP_F_AES_T4_XTS_INIT_KEY                        208\n# define EVP_F_AES_WRAP_CIPHER                            170\n# define EVP_F_AES_XTS_INIT_KEY                           209\n# define EVP_F_ALG_MODULE_INIT                            177\n# define EVP_F_ARIA_CCM_INIT_KEY                          175\n# define EVP_F_ARIA_GCM_CTRL                              197\n# define EVP_F_ARIA_GCM_INIT_KEY                          176\n# define EVP_F_ARIA_INIT_KEY                              185\n# define EVP_F_B64_NEW                                    198\n# define EVP_F_CAMELLIA_INIT_KEY                          159\n# define EVP_F_CHACHA20_POLY1305_CTRL                     182\n# define EVP_F_CMLL_T4_INIT_KEY                           179\n# define EVP_F_DES_EDE3_WRAP_CIPHER                       171\n# define EVP_F_DO_SIGVER_INIT                             161\n# define EVP_F_ENC_NEW                                    199\n# define EVP_F_EVP_CIPHERINIT_EX                          123\n# define EVP_F_EVP_CIPHER_ASN1_TO_PARAM                   204\n# define EVP_F_EVP_CIPHER_CTX_COPY                        163\n# define EVP_F_EVP_CIPHER_CTX_CTRL                        124\n# define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH              122\n# define EVP_F_EVP_CIPHER_PARAM_TO_ASN1                   205\n# define EVP_F_EVP_DECRYPTFINAL_EX                        101\n# define EVP_F_EVP_DECRYPTUPDATE                          166\n# define EVP_F_EVP_DIGESTFINALXOF                         174\n# define EVP_F_EVP_DIGESTINIT_EX                          128\n# define EVP_F_EVP_ENCRYPTDECRYPTUPDATE                   219\n# define EVP_F_EVP_ENCRYPTFINAL_EX                        127\n# define EVP_F_EVP_ENCRYPTUPDATE                          167\n# define EVP_F_EVP_MD_CTX_COPY_EX                         110\n# define EVP_F_EVP_MD_SIZE                                162\n# define EVP_F_EVP_OPENINIT                               102\n# define EVP_F_EVP_PBE_ALG_ADD                            115\n# define EVP_F_EVP_PBE_ALG_ADD_TYPE                       160\n# define EVP_F_EVP_PBE_CIPHERINIT                         116\n# define EVP_F_EVP_PBE_SCRYPT                             181\n# define EVP_F_EVP_PKCS82PKEY                             111\n# define EVP_F_EVP_PKEY2PKCS8                             113\n# define EVP_F_EVP_PKEY_ASN1_ADD0                         188\n# define EVP_F_EVP_PKEY_CHECK                             186\n# define EVP_F_EVP_PKEY_COPY_PARAMETERS                   103\n# define EVP_F_EVP_PKEY_CTX_CTRL                          137\n# define EVP_F_EVP_PKEY_CTX_CTRL_STR                      150\n# define EVP_F_EVP_PKEY_CTX_DUP                           156\n# define EVP_F_EVP_PKEY_CTX_MD                            168\n# define EVP_F_EVP_PKEY_DECRYPT                           104\n# define EVP_F_EVP_PKEY_DECRYPT_INIT                      138\n# define EVP_F_EVP_PKEY_DECRYPT_OLD                       151\n# define EVP_F_EVP_PKEY_DERIVE                            153\n# define EVP_F_EVP_PKEY_DERIVE_INIT                       154\n# define EVP_F_EVP_PKEY_DERIVE_SET_PEER                   155\n# define EVP_F_EVP_PKEY_ENCRYPT                           105\n# define EVP_F_EVP_PKEY_ENCRYPT_INIT                      139\n# define EVP_F_EVP_PKEY_ENCRYPT_OLD                       152\n# define EVP_F_EVP_PKEY_GET0_DH                           119\n# define EVP_F_EVP_PKEY_GET0_DSA                          120\n# define EVP_F_EVP_PKEY_GET0_EC_KEY                       131\n# define EVP_F_EVP_PKEY_GET0_HMAC                         183\n# define EVP_F_EVP_PKEY_GET0_POLY1305                     184\n# define EVP_F_EVP_PKEY_GET0_RSA                          121\n# define EVP_F_EVP_PKEY_GET0_SIPHASH                      172\n# define EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY               202\n# define EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY                203\n# define EVP_F_EVP_PKEY_KEYGEN                            146\n# define EVP_F_EVP_PKEY_KEYGEN_INIT                       147\n# define EVP_F_EVP_PKEY_METH_ADD0                         194\n# define EVP_F_EVP_PKEY_METH_NEW                          195\n# define EVP_F_EVP_PKEY_NEW                               106\n# define EVP_F_EVP_PKEY_NEW_CMAC_KEY                      193\n# define EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY               191\n# define EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY                192\n# define EVP_F_EVP_PKEY_PARAMGEN                          148\n# define EVP_F_EVP_PKEY_PARAMGEN_INIT                     149\n# define EVP_F_EVP_PKEY_PARAM_CHECK                       189\n# define EVP_F_EVP_PKEY_PUBLIC_CHECK                      190\n# define EVP_F_EVP_PKEY_SET1_ENGINE                       187\n# define EVP_F_EVP_PKEY_SET_ALIAS_TYPE                    206\n# define EVP_F_EVP_PKEY_SIGN                              140\n# define EVP_F_EVP_PKEY_SIGN_INIT                         141\n# define EVP_F_EVP_PKEY_VERIFY                            142\n# define EVP_F_EVP_PKEY_VERIFY_INIT                       143\n# define EVP_F_EVP_PKEY_VERIFY_RECOVER                    144\n# define EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT               145\n# define EVP_F_EVP_SIGNFINAL                              107\n# define EVP_F_EVP_VERIFYFINAL                            108\n# define EVP_F_INT_CTX_NEW                                157\n# define EVP_F_OK_NEW                                     200\n# define EVP_F_PKCS5_PBE_KEYIVGEN                         117\n# define EVP_F_PKCS5_V2_PBE_KEYIVGEN                      118\n# define EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN                   164\n# define EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN                   180\n# define EVP_F_PKEY_SET_TYPE                              158\n# define EVP_F_RC2_MAGIC_TO_METH                          109\n# define EVP_F_RC5_CTRL                                   125\n# define EVP_F_R_32_12_16_INIT_KEY                        242\n# define EVP_F_S390X_AES_GCM_CTRL                         201\n# define EVP_F_UPDATE                                     173\n\n/*\n * EVP reason codes.\n */\n# define EVP_R_AES_KEY_SETUP_FAILED                       143\n# define EVP_R_ARIA_KEY_SETUP_FAILED                      176\n# define EVP_R_BAD_DECRYPT                                100\n# define EVP_R_BAD_KEY_LENGTH                             195\n# define EVP_R_BUFFER_TOO_SMALL                           155\n# define EVP_R_CAMELLIA_KEY_SETUP_FAILED                  157\n# define EVP_R_CIPHER_PARAMETER_ERROR                     122\n# define EVP_R_COMMAND_NOT_SUPPORTED                      147\n# define EVP_R_COPY_ERROR                                 173\n# define EVP_R_CTRL_NOT_IMPLEMENTED                       132\n# define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED             133\n# define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH          138\n# define EVP_R_DECODE_ERROR                               114\n# define EVP_R_DIFFERENT_KEY_TYPES                        101\n# define EVP_R_DIFFERENT_PARAMETERS                       153\n# define EVP_R_ERROR_LOADING_SECTION                      165\n# define EVP_R_ERROR_SETTING_FIPS_MODE                    166\n# define EVP_R_EXPECTING_AN_HMAC_KEY                      174\n# define EVP_R_EXPECTING_AN_RSA_KEY                       127\n# define EVP_R_EXPECTING_A_DH_KEY                         128\n# define EVP_R_EXPECTING_A_DSA_KEY                        129\n# define EVP_R_EXPECTING_A_EC_KEY                         142\n# define EVP_R_EXPECTING_A_POLY1305_KEY                   164\n# define EVP_R_EXPECTING_A_SIPHASH_KEY                    175\n# define EVP_R_FIPS_MODE_NOT_SUPPORTED                    167\n# define EVP_R_GET_RAW_KEY_FAILED                         182\n# define EVP_R_ILLEGAL_SCRYPT_PARAMETERS                  171\n# define EVP_R_INITIALIZATION_ERROR                       134\n# define EVP_R_INPUT_NOT_INITIALIZED                      111\n# define EVP_R_INVALID_DIGEST                             152\n# define EVP_R_INVALID_FIPS_MODE                          168\n# define EVP_R_INVALID_IV_LENGTH                          194\n# define EVP_R_INVALID_KEY                                163\n# define EVP_R_INVALID_KEY_LENGTH                         130\n# define EVP_R_INVALID_OPERATION                          148\n# define EVP_R_KEYGEN_FAILURE                             120\n# define EVP_R_KEY_SETUP_FAILED                           180\n# define EVP_R_MEMORY_LIMIT_EXCEEDED                      172\n# define EVP_R_MESSAGE_DIGEST_IS_NULL                     159\n# define EVP_R_METHOD_NOT_SUPPORTED                       144\n# define EVP_R_MISSING_PARAMETERS                         103\n# define EVP_R_NOT_XOF_OR_INVALID_LENGTH                  178\n# define EVP_R_NO_CIPHER_SET                              131\n# define EVP_R_NO_DEFAULT_DIGEST                          158\n# define EVP_R_NO_DIGEST_SET                              139\n# define EVP_R_NO_KEY_SET                                 154\n# define EVP_R_NO_OPERATION_SET                           149\n# define EVP_R_ONLY_ONESHOT_SUPPORTED                     177\n# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   150\n# define EVP_R_OPERATON_NOT_INITIALIZED                   151\n# define EVP_R_PARTIALLY_OVERLAPPING                      162\n# define EVP_R_PBKDF2_ERROR                               181\n# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179\n# define EVP_R_PRIVATE_KEY_DECODE_ERROR                   145\n# define EVP_R_PRIVATE_KEY_ENCODE_ERROR                   146\n# define EVP_R_PUBLIC_KEY_NOT_RSA                         106\n# define EVP_R_UNKNOWN_CIPHER                             160\n# define EVP_R_UNKNOWN_DIGEST                             161\n# define EVP_R_UNKNOWN_OPTION                             169\n# define EVP_R_UNKNOWN_PBE_ALGORITHM                      121\n# define EVP_R_UNSUPPORTED_ALGORITHM                      156\n# define EVP_R_UNSUPPORTED_CIPHER                         107\n# define EVP_R_UNSUPPORTED_KEYLENGTH                      123\n# define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION        124\n# define EVP_R_UNSUPPORTED_KEY_SIZE                       108\n# define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS               135\n# define EVP_R_UNSUPPORTED_PRF                            125\n# define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM          118\n# define EVP_R_UNSUPPORTED_SALT_TYPE                      126\n# define EVP_R_WRAP_MODE_NOT_ALLOWED                      170\n# define EVP_R_WRONG_FINAL_BLOCK_LENGTH                   109\n# define EVP_R_XTS_DUPLICATED_KEYS                        183\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/hmac.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_HMAC_H\n# define HEADER_HMAC_H\n\n# include <openssl/opensslconf.h>\n\n# include <openssl/evp.h>\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n#  define HMAC_MAX_MD_CBLOCK      128    /* Deprecated */\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\nsize_t HMAC_size(const HMAC_CTX *e);\nHMAC_CTX *HMAC_CTX_new(void);\nint HMAC_CTX_reset(HMAC_CTX *ctx);\nvoid HMAC_CTX_free(HMAC_CTX *ctx);\n\nDEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,\n                     const EVP_MD *md))\n\n/*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,\n                            const EVP_MD *md, ENGINE *impl);\n/*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,\n                           size_t len);\n/*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,\n                          unsigned int *len);\nunsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,\n                    const unsigned char *d, size_t n, unsigned char *md,\n                    unsigned int *md_len);\n__owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);\n\nvoid HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);\nconst EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/idea.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_IDEA_H\n# define HEADER_IDEA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_IDEA\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned int IDEA_INT;\n\n# define IDEA_ENCRYPT    1\n# define IDEA_DECRYPT    0\n\n# define IDEA_BLOCK      8\n# define IDEA_KEY_LENGTH 16\n\ntypedef struct idea_key_st {\n    IDEA_INT data[9][6];\n} IDEA_KEY_SCHEDULE;\n\nconst char *IDEA_options(void);\nvoid IDEA_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      IDEA_KEY_SCHEDULE *ks);\nvoid IDEA_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks);\nvoid IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk);\nvoid IDEA_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                      int enc);\nvoid IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                        int *num, int enc);\nvoid IDEA_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                        int *num);\nvoid IDEA_encrypt(unsigned long *in, IDEA_KEY_SCHEDULE *ks);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define idea_options          IDEA_options\n#  define idea_ecb_encrypt      IDEA_ecb_encrypt\n#  define idea_set_encrypt_key  IDEA_set_encrypt_key\n#  define idea_set_decrypt_key  IDEA_set_decrypt_key\n#  define idea_cbc_encrypt      IDEA_cbc_encrypt\n#  define idea_cfb64_encrypt    IDEA_cfb64_encrypt\n#  define idea_ofb64_encrypt    IDEA_ofb64_encrypt\n#  define idea_encrypt          IDEA_encrypt\n# endif\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/kdf.h",
    "content": "/*\n * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_KDF_H\n# define HEADER_KDF_H\n\n# include <openssl/kdferr.h>\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define EVP_PKEY_CTRL_TLS_MD                   (EVP_PKEY_ALG_CTRL)\n# define EVP_PKEY_CTRL_TLS_SECRET               (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_TLS_SEED                 (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_HKDF_MD                  (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_HKDF_SALT                (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_HKDF_KEY                 (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_HKDF_INFO                (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_HKDF_MODE                (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_PASS                     (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_SCRYPT_SALT              (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_SCRYPT_N                 (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_SCRYPT_R                 (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_SCRYPT_P                 (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES      (EVP_PKEY_ALG_CTRL + 13)\n\n# define EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND 0\n# define EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY       1\n# define EVP_PKEY_HKDEF_MODE_EXPAND_ONLY        2\n\n# define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_SECRET, seclen, (void *)(sec))\n\n# define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_SEED, seedlen, (void *)(seed))\n\n# define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_SALT, saltlen, (void *)(salt))\n\n# define EVP_PKEY_CTX_set1_hkdf_key(pctx, key, keylen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_KEY, keylen, (void *)(key))\n\n# define EVP_PKEY_CTX_add1_hkdf_info(pctx, info, infolen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_INFO, infolen, (void *)(info))\n\n# define EVP_PKEY_CTX_hkdf_mode(pctx, mode) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_MODE, mode, NULL)\n\n# define EVP_PKEY_CTX_set1_pbe_pass(pctx, pass, passlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_PASS, passlen, (void *)(pass))\n\n# define EVP_PKEY_CTX_set1_scrypt_salt(pctx, salt, saltlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_SALT, saltlen, (void *)(salt))\n\n# define EVP_PKEY_CTX_set_scrypt_N(pctx, n) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_N, n)\n\n# define EVP_PKEY_CTX_set_scrypt_r(pctx, r) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_R, r)\n\n# define EVP_PKEY_CTX_set_scrypt_p(pctx, p) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_P, p)\n\n# define EVP_PKEY_CTX_set_scrypt_maxmem_bytes(pctx, maxmem_bytes) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES, maxmem_bytes)\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/kdferr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_KDFERR_H\n# define HEADER_KDFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_KDF_strings(void);\n\n/*\n * KDF function codes.\n */\n# define KDF_F_PKEY_HKDF_CTRL_STR                         103\n# define KDF_F_PKEY_HKDF_DERIVE                           102\n# define KDF_F_PKEY_HKDF_INIT                             108\n# define KDF_F_PKEY_SCRYPT_CTRL_STR                       104\n# define KDF_F_PKEY_SCRYPT_CTRL_UINT64                    105\n# define KDF_F_PKEY_SCRYPT_DERIVE                         109\n# define KDF_F_PKEY_SCRYPT_INIT                           106\n# define KDF_F_PKEY_SCRYPT_SET_MEMBUF                     107\n# define KDF_F_PKEY_TLS1_PRF_CTRL_STR                     100\n# define KDF_F_PKEY_TLS1_PRF_DERIVE                       101\n# define KDF_F_PKEY_TLS1_PRF_INIT                         110\n# define KDF_F_TLS1_PRF_ALG                               111\n\n/*\n * KDF reason codes.\n */\n# define KDF_R_INVALID_DIGEST                             100\n# define KDF_R_MISSING_ITERATION_COUNT                    109\n# define KDF_R_MISSING_KEY                                104\n# define KDF_R_MISSING_MESSAGE_DIGEST                     105\n# define KDF_R_MISSING_PARAMETER                          101\n# define KDF_R_MISSING_PASS                               110\n# define KDF_R_MISSING_SALT                               111\n# define KDF_R_MISSING_SECRET                             107\n# define KDF_R_MISSING_SEED                               106\n# define KDF_R_UNKNOWN_PARAMETER_TYPE                     103\n# define KDF_R_VALUE_ERROR                                108\n# define KDF_R_VALUE_MISSING                              102\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/lhash.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * Header for dynamic hash table routines Author - Eric Young\n */\n\n#ifndef HEADER_LHASH_H\n# define HEADER_LHASH_H\n\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct lhash_node_st OPENSSL_LH_NODE;\ntypedef int (*OPENSSL_LH_COMPFUNC) (const void *, const void *);\ntypedef unsigned long (*OPENSSL_LH_HASHFUNC) (const void *);\ntypedef void (*OPENSSL_LH_DOALL_FUNC) (void *);\ntypedef void (*OPENSSL_LH_DOALL_FUNCARG) (void *, void *);\ntypedef struct lhash_st OPENSSL_LHASH;\n\n/*\n * Macros for declaring and implementing type-safe wrappers for LHASH\n * callbacks. This way, callbacks can be provided to LHASH structures without\n * function pointer casting and the macro-defined callbacks provide\n * per-variable casting before deferring to the underlying type-specific\n * callbacks. NB: It is possible to place a \"static\" in front of both the\n * DECLARE and IMPLEMENT macros if the functions are strictly internal.\n */\n\n/* First: \"hash\" functions */\n# define DECLARE_LHASH_HASH_FN(name, o_type) \\\n        unsigned long name##_LHASH_HASH(const void *);\n# define IMPLEMENT_LHASH_HASH_FN(name, o_type) \\\n        unsigned long name##_LHASH_HASH(const void *arg) { \\\n                const o_type *a = arg; \\\n                return name##_hash(a); }\n# define LHASH_HASH_FN(name) name##_LHASH_HASH\n\n/* Second: \"compare\" functions */\n# define DECLARE_LHASH_COMP_FN(name, o_type) \\\n        int name##_LHASH_COMP(const void *, const void *);\n# define IMPLEMENT_LHASH_COMP_FN(name, o_type) \\\n        int name##_LHASH_COMP(const void *arg1, const void *arg2) { \\\n                const o_type *a = arg1;             \\\n                const o_type *b = arg2; \\\n                return name##_cmp(a,b); }\n# define LHASH_COMP_FN(name) name##_LHASH_COMP\n\n/* Fourth: \"doall_arg\" functions */\n# define DECLARE_LHASH_DOALL_ARG_FN(name, o_type, a_type) \\\n        void name##_LHASH_DOALL_ARG(void *, void *);\n# define IMPLEMENT_LHASH_DOALL_ARG_FN(name, o_type, a_type) \\\n        void name##_LHASH_DOALL_ARG(void *arg1, void *arg2) { \\\n                o_type *a = arg1; \\\n                a_type *b = arg2; \\\n                name##_doall_arg(a, b); }\n# define LHASH_DOALL_ARG_FN(name) name##_LHASH_DOALL_ARG\n\n\n# define LH_LOAD_MULT    256\n\nint OPENSSL_LH_error(OPENSSL_LHASH *lh);\nOPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c);\nvoid OPENSSL_LH_free(OPENSSL_LHASH *lh);\nvoid *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data);\nvoid *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data);\nvoid *OPENSSL_LH_retrieve(OPENSSL_LHASH *lh, const void *data);\nvoid OPENSSL_LH_doall(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNC func);\nvoid OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg);\nunsigned long OPENSSL_LH_strhash(const char *c);\nunsigned long OPENSSL_LH_num_items(const OPENSSL_LHASH *lh);\nunsigned long OPENSSL_LH_get_down_load(const OPENSSL_LHASH *lh);\nvoid OPENSSL_LH_set_down_load(OPENSSL_LHASH *lh, unsigned long down_load);\n\n# ifndef OPENSSL_NO_STDIO\nvoid OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp);\nvoid OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp);\nvoid OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp);\n# endif\nvoid OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\nvoid OPENSSL_LH_node_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\nvoid OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define _LHASH OPENSSL_LHASH\n#  define LHASH_NODE OPENSSL_LH_NODE\n#  define lh_error OPENSSL_LH_error\n#  define lh_new OPENSSL_LH_new\n#  define lh_free OPENSSL_LH_free\n#  define lh_insert OPENSSL_LH_insert\n#  define lh_delete OPENSSL_LH_delete\n#  define lh_retrieve OPENSSL_LH_retrieve\n#  define lh_doall OPENSSL_LH_doall\n#  define lh_doall_arg OPENSSL_LH_doall_arg\n#  define lh_strhash OPENSSL_LH_strhash\n#  define lh_num_items OPENSSL_LH_num_items\n#  ifndef OPENSSL_NO_STDIO\n#   define lh_stats OPENSSL_LH_stats\n#   define lh_node_stats OPENSSL_LH_node_stats\n#   define lh_node_usage_stats OPENSSL_LH_node_usage_stats\n#  endif\n#  define lh_stats_bio OPENSSL_LH_stats_bio\n#  define lh_node_stats_bio OPENSSL_LH_node_stats_bio\n#  define lh_node_usage_stats_bio OPENSSL_LH_node_usage_stats_bio\n# endif\n\n/* Type checking... */\n\n# define LHASH_OF(type) struct lhash_st_##type\n\n# define DEFINE_LHASH_OF(type) \\\n    LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \\\n    static ossl_unused ossl_inline LHASH_OF(type) *lh_##type##_new(unsigned long (*hfn)(const type *), \\\n                                                                   int (*cfn)(const type *, const type *)) \\\n    { \\\n        return (LHASH_OF(type) *) \\\n            OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_free(LHASH_OF(type) *lh) \\\n    { \\\n        OPENSSL_LH_free((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline int lh_##type##_error(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_error((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline unsigned long lh_##type##_num_items(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_node_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_node_usage_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline unsigned long lh_##type##_get_down_load(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_set_down_load(LHASH_OF(type) *lh, unsigned long dl) \\\n    { \\\n        OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_doall(LHASH_OF(type) *lh, \\\n                                                          void (*doall)(type *)) \\\n    { \\\n        OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); \\\n    } \\\n    LHASH_OF(type)\n\n#define IMPLEMENT_LHASH_DOALL_ARG_CONST(type, argtype) \\\n    int_implement_lhash_doall(type, argtype, const type)\n\n#define IMPLEMENT_LHASH_DOALL_ARG(type, argtype) \\\n    int_implement_lhash_doall(type, argtype, type)\n\n#define int_implement_lhash_doall(type, argtype, cbargtype) \\\n    static ossl_unused ossl_inline void \\\n        lh_##type##_doall_##argtype(LHASH_OF(type) *lh, \\\n                                   void (*fn)(cbargtype *, argtype *), \\\n                                   argtype *arg) \\\n    { \\\n        OPENSSL_LH_doall_arg((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNCARG)fn, (void *)arg); \\\n    } \\\n    LHASH_OF(type)\n\nDEFINE_LHASH_OF(OPENSSL_STRING);\n# ifdef _MSC_VER\n/*\n * push and pop this warning:\n *   warning C4090: 'function': different 'const' qualifiers\n */\n#  pragma warning (push)\n#  pragma warning (disable: 4090)\n# endif\n\nDEFINE_LHASH_OF(OPENSSL_CSTRING);\n\n# ifdef _MSC_VER\n#  pragma warning (pop)\n# endif\n\n/*\n * If called without higher optimization (min. -xO3) the Oracle Developer\n * Studio compiler generates code for the defined (static inline) functions\n * above.\n * This would later lead to the linker complaining about missing symbols when\n * this header file is included but the resulting object is not linked against\n * the Crypto library (openssl#6912).\n */\n# ifdef __SUNPRO_C\n#  pragma weak OPENSSL_LH_new\n#  pragma weak OPENSSL_LH_free\n#  pragma weak OPENSSL_LH_insert\n#  pragma weak OPENSSL_LH_delete\n#  pragma weak OPENSSL_LH_retrieve\n#  pragma weak OPENSSL_LH_error\n#  pragma weak OPENSSL_LH_num_items\n#  pragma weak OPENSSL_LH_node_stats_bio\n#  pragma weak OPENSSL_LH_node_usage_stats_bio\n#  pragma weak OPENSSL_LH_stats_bio\n#  pragma weak OPENSSL_LH_get_down_load\n#  pragma weak OPENSSL_LH_set_down_load\n#  pragma weak OPENSSL_LH_doall\n#  pragma weak OPENSSL_LH_doall_arg\n# endif /* __SUNPRO_C */\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/md2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD2_H\n# define HEADER_MD2_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD2\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned char MD2_INT;\n\n# define MD2_DIGEST_LENGTH       16\n# define MD2_BLOCK               16\n\ntypedef struct MD2state_st {\n    unsigned int num;\n    unsigned char data[MD2_BLOCK];\n    MD2_INT cksm[MD2_BLOCK];\n    MD2_INT state[MD2_BLOCK];\n} MD2_CTX;\n\nconst char *MD2_options(void);\nint MD2_Init(MD2_CTX *c);\nint MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len);\nint MD2_Final(unsigned char *md, MD2_CTX *c);\nunsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/md4.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD4_H\n# define HEADER_MD4_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD4\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! MD4_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define MD4_LONG unsigned int\n\n# define MD4_CBLOCK      64\n# define MD4_LBLOCK      (MD4_CBLOCK/4)\n# define MD4_DIGEST_LENGTH 16\n\ntypedef struct MD4state_st {\n    MD4_LONG A, B, C, D;\n    MD4_LONG Nl, Nh;\n    MD4_LONG data[MD4_LBLOCK];\n    unsigned int num;\n} MD4_CTX;\n\nint MD4_Init(MD4_CTX *c);\nint MD4_Update(MD4_CTX *c, const void *data, size_t len);\nint MD4_Final(unsigned char *md, MD4_CTX *c);\nunsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md);\nvoid MD4_Transform(MD4_CTX *c, const unsigned char *b);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/md5.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD5_H\n# define HEADER_MD5_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD5\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! MD5_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define MD5_LONG unsigned int\n\n# define MD5_CBLOCK      64\n# define MD5_LBLOCK      (MD5_CBLOCK/4)\n# define MD5_DIGEST_LENGTH 16\n\ntypedef struct MD5state_st {\n    MD5_LONG A, B, C, D;\n    MD5_LONG Nl, Nh;\n    MD5_LONG data[MD5_LBLOCK];\n    unsigned int num;\n} MD5_CTX;\n\nint MD5_Init(MD5_CTX *c);\nint MD5_Update(MD5_CTX *c, const void *data, size_t len);\nint MD5_Final(unsigned char *md, MD5_CTX *c);\nunsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);\nvoid MD5_Transform(MD5_CTX *c, const unsigned char *b);\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/mdc2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MDC2_H\n# define HEADER_MDC2_H\n\n# include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_MDC2\n# include <stdlib.h>\n# include <openssl/des.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define MDC2_BLOCK              8\n# define MDC2_DIGEST_LENGTH      16\n\ntypedef struct mdc2_ctx_st {\n    unsigned int num;\n    unsigned char data[MDC2_BLOCK];\n    DES_cblock h, hh;\n    int pad_type;               /* either 1 or 2, default 1 */\n} MDC2_CTX;\n\nint MDC2_Init(MDC2_CTX *c);\nint MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);\nint MDC2_Final(unsigned char *md, MDC2_CTX *c);\nunsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/modes.h",
    "content": "/*\n * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MODES_H\n# define HEADER_MODES_H\n\n# include <stddef.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\ntypedef void (*block128_f) (const unsigned char in[16],\n                            unsigned char out[16], const void *key);\n\ntypedef void (*cbc128_f) (const unsigned char *in, unsigned char *out,\n                          size_t len, const void *key,\n                          unsigned char ivec[16], int enc);\n\ntypedef void (*ctr128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          const unsigned char ivec[16]);\n\ntypedef void (*ccm128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          const unsigned char ivec[16],\n                          unsigned char cmac[16]);\n\nvoid CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], block128_f block);\nvoid CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], block128_f block);\n\nvoid CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16],\n                           unsigned char ecount_buf[16], unsigned int *num,\n                           block128_f block);\n\nvoid CRYPTO_ctr128_encrypt_ctr32(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16],\n                                 unsigned char ecount_buf[16],\n                                 unsigned int *num, ctr128_f ctr);\n\nvoid CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], int *num,\n                           block128_f block);\n\nvoid CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], int *num,\n                           int enc, block128_f block);\nvoid CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const void *key,\n                             unsigned char ivec[16], int *num,\n                             int enc, block128_f block);\nvoid CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t bits, const void *key,\n                             unsigned char ivec[16], int *num,\n                             int enc, block128_f block);\n\nsize_t CRYPTO_cts128_encrypt_block(const unsigned char *in,\n                                   unsigned char *out, size_t len,\n                                   const void *key, unsigned char ivec[16],\n                                   block128_f block);\nsize_t CRYPTO_cts128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t len, const void *key,\n                             unsigned char ivec[16], cbc128_f cbc);\nsize_t CRYPTO_cts128_decrypt_block(const unsigned char *in,\n                                   unsigned char *out, size_t len,\n                                   const void *key, unsigned char ivec[16],\n                                   block128_f block);\nsize_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out,\n                             size_t len, const void *key,\n                             unsigned char ivec[16], cbc128_f cbc);\n\nsize_t CRYPTO_nistcts128_encrypt_block(const unsigned char *in,\n                                       unsigned char *out, size_t len,\n                                       const void *key,\n                                       unsigned char ivec[16],\n                                       block128_f block);\nsize_t CRYPTO_nistcts128_encrypt(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16], cbc128_f cbc);\nsize_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in,\n                                       unsigned char *out, size_t len,\n                                       const void *key,\n                                       unsigned char ivec[16],\n                                       block128_f block);\nsize_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16], cbc128_f cbc);\n\ntypedef struct gcm128_context GCM128_CONTEXT;\n\nGCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block);\nvoid CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block);\nvoid CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv,\n                         size_t len);\nint CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad,\n                      size_t len);\nint CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx,\n                          const unsigned char *in, unsigned char *out,\n                          size_t len);\nint CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx,\n                          const unsigned char *in, unsigned char *out,\n                          size_t len);\nint CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx,\n                                const unsigned char *in, unsigned char *out,\n                                size_t len, ctr128_f stream);\nint CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx,\n                                const unsigned char *in, unsigned char *out,\n                                size_t len, ctr128_f stream);\nint CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx, const unsigned char *tag,\n                         size_t len);\nvoid CRYPTO_gcm128_tag(GCM128_CONTEXT *ctx, unsigned char *tag, size_t len);\nvoid CRYPTO_gcm128_release(GCM128_CONTEXT *ctx);\n\ntypedef struct ccm128_context CCM128_CONTEXT;\n\nvoid CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,\n                        unsigned int M, unsigned int L, void *key,\n                        block128_f block);\nint CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, const unsigned char *nonce,\n                        size_t nlen, size_t mlen);\nvoid CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad,\n                       size_t alen);\nint CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                          unsigned char *out, size_t len);\nint CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                          unsigned char *out, size_t len);\nint CRYPTO_ccm128_encrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                                unsigned char *out, size_t len,\n                                ccm128_f stream);\nint CRYPTO_ccm128_decrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                                unsigned char *out, size_t len,\n                                ccm128_f stream);\nsize_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len);\n\ntypedef struct xts128_context XTS128_CONTEXT;\n\nint CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx,\n                          const unsigned char iv[16],\n                          const unsigned char *inp, unsigned char *out,\n                          size_t len, int enc);\n\nsize_t CRYPTO_128_wrap(void *key, const unsigned char *iv,\n                       unsigned char *out,\n                       const unsigned char *in, size_t inlen,\n                       block128_f block);\n\nsize_t CRYPTO_128_unwrap(void *key, const unsigned char *iv,\n                         unsigned char *out,\n                         const unsigned char *in, size_t inlen,\n                         block128_f block);\nsize_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,\n                           unsigned char *out, const unsigned char *in,\n                           size_t inlen, block128_f block);\nsize_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,\n                             unsigned char *out, const unsigned char *in,\n                             size_t inlen, block128_f block);\n\n# ifndef OPENSSL_NO_OCB\ntypedef struct ocb128_context OCB128_CONTEXT;\n\ntypedef void (*ocb128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          size_t start_block_num,\n                          unsigned char offset_i[16],\n                          const unsigned char L_[][16],\n                          unsigned char checksum[16]);\n\nOCB128_CONTEXT *CRYPTO_ocb128_new(void *keyenc, void *keydec,\n                                  block128_f encrypt, block128_f decrypt,\n                                  ocb128_f stream);\nint CRYPTO_ocb128_init(OCB128_CONTEXT *ctx, void *keyenc, void *keydec,\n                       block128_f encrypt, block128_f decrypt,\n                       ocb128_f stream);\nint CRYPTO_ocb128_copy_ctx(OCB128_CONTEXT *dest, OCB128_CONTEXT *src,\n                           void *keyenc, void *keydec);\nint CRYPTO_ocb128_setiv(OCB128_CONTEXT *ctx, const unsigned char *iv,\n                        size_t len, size_t taglen);\nint CRYPTO_ocb128_aad(OCB128_CONTEXT *ctx, const unsigned char *aad,\n                      size_t len);\nint CRYPTO_ocb128_encrypt(OCB128_CONTEXT *ctx, const unsigned char *in,\n                          unsigned char *out, size_t len);\nint CRYPTO_ocb128_decrypt(OCB128_CONTEXT *ctx, const unsigned char *in,\n                          unsigned char *out, size_t len);\nint CRYPTO_ocb128_finish(OCB128_CONTEXT *ctx, const unsigned char *tag,\n                         size_t len);\nint CRYPTO_ocb128_tag(OCB128_CONTEXT *ctx, unsigned char *tag, size_t len);\nvoid CRYPTO_ocb128_cleanup(OCB128_CONTEXT *ctx);\n# endif                          /* OPENSSL_NO_OCB */\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/obj_mac.h",
    "content": "/*\n * WARNING: do not edit!\n * Generated by crypto/objects/objects.pl\n *\n * Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#define SN_undef                        \"UNDEF\"\n#define LN_undef                        \"undefined\"\n#define NID_undef                       0\n#define OBJ_undef                       0L\n\n#define SN_itu_t                \"ITU-T\"\n#define LN_itu_t                \"itu-t\"\n#define NID_itu_t               645\n#define OBJ_itu_t               0L\n\n#define NID_ccitt               404\n#define OBJ_ccitt               OBJ_itu_t\n\n#define SN_iso          \"ISO\"\n#define LN_iso          \"iso\"\n#define NID_iso         181\n#define OBJ_iso         1L\n\n#define SN_joint_iso_itu_t              \"JOINT-ISO-ITU-T\"\n#define LN_joint_iso_itu_t              \"joint-iso-itu-t\"\n#define NID_joint_iso_itu_t             646\n#define OBJ_joint_iso_itu_t             2L\n\n#define NID_joint_iso_ccitt             393\n#define OBJ_joint_iso_ccitt             OBJ_joint_iso_itu_t\n\n#define SN_member_body          \"member-body\"\n#define LN_member_body          \"ISO Member Body\"\n#define NID_member_body         182\n#define OBJ_member_body         OBJ_iso,2L\n\n#define SN_identified_organization              \"identified-organization\"\n#define NID_identified_organization             676\n#define OBJ_identified_organization             OBJ_iso,3L\n\n#define SN_hmac_md5             \"HMAC-MD5\"\n#define LN_hmac_md5             \"hmac-md5\"\n#define NID_hmac_md5            780\n#define OBJ_hmac_md5            OBJ_identified_organization,6L,1L,5L,5L,8L,1L,1L\n\n#define SN_hmac_sha1            \"HMAC-SHA1\"\n#define LN_hmac_sha1            \"hmac-sha1\"\n#define NID_hmac_sha1           781\n#define OBJ_hmac_sha1           OBJ_identified_organization,6L,1L,5L,5L,8L,1L,2L\n\n#define SN_x509ExtAdmission             \"x509ExtAdmission\"\n#define LN_x509ExtAdmission             \"Professional Information or basis for Admission\"\n#define NID_x509ExtAdmission            1093\n#define OBJ_x509ExtAdmission            OBJ_identified_organization,36L,8L,3L,3L\n\n#define SN_certicom_arc         \"certicom-arc\"\n#define NID_certicom_arc                677\n#define OBJ_certicom_arc                OBJ_identified_organization,132L\n\n#define SN_ieee         \"ieee\"\n#define NID_ieee                1170\n#define OBJ_ieee                OBJ_identified_organization,111L\n\n#define SN_ieee_siswg           \"ieee-siswg\"\n#define LN_ieee_siswg           \"IEEE Security in Storage Working Group\"\n#define NID_ieee_siswg          1171\n#define OBJ_ieee_siswg          OBJ_ieee,2L,1619L\n\n#define SN_international_organizations          \"international-organizations\"\n#define LN_international_organizations          \"International Organizations\"\n#define NID_international_organizations         647\n#define OBJ_international_organizations         OBJ_joint_iso_itu_t,23L\n\n#define SN_wap          \"wap\"\n#define NID_wap         678\n#define OBJ_wap         OBJ_international_organizations,43L\n\n#define SN_wap_wsg              \"wap-wsg\"\n#define NID_wap_wsg             679\n#define OBJ_wap_wsg             OBJ_wap,1L\n\n#define SN_selected_attribute_types             \"selected-attribute-types\"\n#define LN_selected_attribute_types             \"Selected Attribute Types\"\n#define NID_selected_attribute_types            394\n#define OBJ_selected_attribute_types            OBJ_joint_iso_itu_t,5L,1L,5L\n\n#define SN_clearance            \"clearance\"\n#define NID_clearance           395\n#define OBJ_clearance           OBJ_selected_attribute_types,55L\n\n#define SN_ISO_US               \"ISO-US\"\n#define LN_ISO_US               \"ISO US Member Body\"\n#define NID_ISO_US              183\n#define OBJ_ISO_US              OBJ_member_body,840L\n\n#define SN_X9_57                \"X9-57\"\n#define LN_X9_57                \"X9.57\"\n#define NID_X9_57               184\n#define OBJ_X9_57               OBJ_ISO_US,10040L\n\n#define SN_X9cm         \"X9cm\"\n#define LN_X9cm         \"X9.57 CM ?\"\n#define NID_X9cm                185\n#define OBJ_X9cm                OBJ_X9_57,4L\n\n#define SN_ISO_CN               \"ISO-CN\"\n#define LN_ISO_CN               \"ISO CN Member Body\"\n#define NID_ISO_CN              1140\n#define OBJ_ISO_CN              OBJ_member_body,156L\n\n#define SN_oscca                \"oscca\"\n#define NID_oscca               1141\n#define OBJ_oscca               OBJ_ISO_CN,10197L\n\n#define SN_sm_scheme            \"sm-scheme\"\n#define NID_sm_scheme           1142\n#define OBJ_sm_scheme           OBJ_oscca,1L\n\n#define SN_dsa          \"DSA\"\n#define LN_dsa          \"dsaEncryption\"\n#define NID_dsa         116\n#define OBJ_dsa         OBJ_X9cm,1L\n\n#define SN_dsaWithSHA1          \"DSA-SHA1\"\n#define LN_dsaWithSHA1          \"dsaWithSHA1\"\n#define NID_dsaWithSHA1         113\n#define OBJ_dsaWithSHA1         OBJ_X9cm,3L\n\n#define SN_ansi_X9_62           \"ansi-X9-62\"\n#define LN_ansi_X9_62           \"ANSI X9.62\"\n#define NID_ansi_X9_62          405\n#define OBJ_ansi_X9_62          OBJ_ISO_US,10045L\n\n#define OBJ_X9_62_id_fieldType          OBJ_ansi_X9_62,1L\n\n#define SN_X9_62_prime_field            \"prime-field\"\n#define NID_X9_62_prime_field           406\n#define OBJ_X9_62_prime_field           OBJ_X9_62_id_fieldType,1L\n\n#define SN_X9_62_characteristic_two_field               \"characteristic-two-field\"\n#define NID_X9_62_characteristic_two_field              407\n#define OBJ_X9_62_characteristic_two_field              OBJ_X9_62_id_fieldType,2L\n\n#define SN_X9_62_id_characteristic_two_basis            \"id-characteristic-two-basis\"\n#define NID_X9_62_id_characteristic_two_basis           680\n#define OBJ_X9_62_id_characteristic_two_basis           OBJ_X9_62_characteristic_two_field,3L\n\n#define SN_X9_62_onBasis                \"onBasis\"\n#define NID_X9_62_onBasis               681\n#define OBJ_X9_62_onBasis               OBJ_X9_62_id_characteristic_two_basis,1L\n\n#define SN_X9_62_tpBasis                \"tpBasis\"\n#define NID_X9_62_tpBasis               682\n#define OBJ_X9_62_tpBasis               OBJ_X9_62_id_characteristic_two_basis,2L\n\n#define SN_X9_62_ppBasis                \"ppBasis\"\n#define NID_X9_62_ppBasis               683\n#define OBJ_X9_62_ppBasis               OBJ_X9_62_id_characteristic_two_basis,3L\n\n#define OBJ_X9_62_id_publicKeyType              OBJ_ansi_X9_62,2L\n\n#define SN_X9_62_id_ecPublicKey         \"id-ecPublicKey\"\n#define NID_X9_62_id_ecPublicKey                408\n#define OBJ_X9_62_id_ecPublicKey                OBJ_X9_62_id_publicKeyType,1L\n\n#define OBJ_X9_62_ellipticCurve         OBJ_ansi_X9_62,3L\n\n#define OBJ_X9_62_c_TwoCurve            OBJ_X9_62_ellipticCurve,0L\n\n#define SN_X9_62_c2pnb163v1             \"c2pnb163v1\"\n#define NID_X9_62_c2pnb163v1            684\n#define OBJ_X9_62_c2pnb163v1            OBJ_X9_62_c_TwoCurve,1L\n\n#define SN_X9_62_c2pnb163v2             \"c2pnb163v2\"\n#define NID_X9_62_c2pnb163v2            685\n#define OBJ_X9_62_c2pnb163v2            OBJ_X9_62_c_TwoCurve,2L\n\n#define SN_X9_62_c2pnb163v3             \"c2pnb163v3\"\n#define NID_X9_62_c2pnb163v3            686\n#define OBJ_X9_62_c2pnb163v3            OBJ_X9_62_c_TwoCurve,3L\n\n#define SN_X9_62_c2pnb176v1             \"c2pnb176v1\"\n#define NID_X9_62_c2pnb176v1            687\n#define OBJ_X9_62_c2pnb176v1            OBJ_X9_62_c_TwoCurve,4L\n\n#define SN_X9_62_c2tnb191v1             \"c2tnb191v1\"\n#define NID_X9_62_c2tnb191v1            688\n#define OBJ_X9_62_c2tnb191v1            OBJ_X9_62_c_TwoCurve,5L\n\n#define SN_X9_62_c2tnb191v2             \"c2tnb191v2\"\n#define NID_X9_62_c2tnb191v2            689\n#define OBJ_X9_62_c2tnb191v2            OBJ_X9_62_c_TwoCurve,6L\n\n#define SN_X9_62_c2tnb191v3             \"c2tnb191v3\"\n#define NID_X9_62_c2tnb191v3            690\n#define OBJ_X9_62_c2tnb191v3            OBJ_X9_62_c_TwoCurve,7L\n\n#define SN_X9_62_c2onb191v4             \"c2onb191v4\"\n#define NID_X9_62_c2onb191v4            691\n#define OBJ_X9_62_c2onb191v4            OBJ_X9_62_c_TwoCurve,8L\n\n#define SN_X9_62_c2onb191v5             \"c2onb191v5\"\n#define NID_X9_62_c2onb191v5            692\n#define OBJ_X9_62_c2onb191v5            OBJ_X9_62_c_TwoCurve,9L\n\n#define SN_X9_62_c2pnb208w1             \"c2pnb208w1\"\n#define NID_X9_62_c2pnb208w1            693\n#define OBJ_X9_62_c2pnb208w1            OBJ_X9_62_c_TwoCurve,10L\n\n#define SN_X9_62_c2tnb239v1             \"c2tnb239v1\"\n#define NID_X9_62_c2tnb239v1            694\n#define OBJ_X9_62_c2tnb239v1            OBJ_X9_62_c_TwoCurve,11L\n\n#define SN_X9_62_c2tnb239v2             \"c2tnb239v2\"\n#define NID_X9_62_c2tnb239v2            695\n#define OBJ_X9_62_c2tnb239v2            OBJ_X9_62_c_TwoCurve,12L\n\n#define SN_X9_62_c2tnb239v3             \"c2tnb239v3\"\n#define NID_X9_62_c2tnb239v3            696\n#define OBJ_X9_62_c2tnb239v3            OBJ_X9_62_c_TwoCurve,13L\n\n#define SN_X9_62_c2onb239v4             \"c2onb239v4\"\n#define NID_X9_62_c2onb239v4            697\n#define OBJ_X9_62_c2onb239v4            OBJ_X9_62_c_TwoCurve,14L\n\n#define SN_X9_62_c2onb239v5             \"c2onb239v5\"\n#define NID_X9_62_c2onb239v5            698\n#define OBJ_X9_62_c2onb239v5            OBJ_X9_62_c_TwoCurve,15L\n\n#define SN_X9_62_c2pnb272w1             \"c2pnb272w1\"\n#define NID_X9_62_c2pnb272w1            699\n#define OBJ_X9_62_c2pnb272w1            OBJ_X9_62_c_TwoCurve,16L\n\n#define SN_X9_62_c2pnb304w1             \"c2pnb304w1\"\n#define NID_X9_62_c2pnb304w1            700\n#define OBJ_X9_62_c2pnb304w1            OBJ_X9_62_c_TwoCurve,17L\n\n#define SN_X9_62_c2tnb359v1             \"c2tnb359v1\"\n#define NID_X9_62_c2tnb359v1            701\n#define OBJ_X9_62_c2tnb359v1            OBJ_X9_62_c_TwoCurve,18L\n\n#define SN_X9_62_c2pnb368w1             \"c2pnb368w1\"\n#define NID_X9_62_c2pnb368w1            702\n#define OBJ_X9_62_c2pnb368w1            OBJ_X9_62_c_TwoCurve,19L\n\n#define SN_X9_62_c2tnb431r1             \"c2tnb431r1\"\n#define NID_X9_62_c2tnb431r1            703\n#define OBJ_X9_62_c2tnb431r1            OBJ_X9_62_c_TwoCurve,20L\n\n#define OBJ_X9_62_primeCurve            OBJ_X9_62_ellipticCurve,1L\n\n#define SN_X9_62_prime192v1             \"prime192v1\"\n#define NID_X9_62_prime192v1            409\n#define OBJ_X9_62_prime192v1            OBJ_X9_62_primeCurve,1L\n\n#define SN_X9_62_prime192v2             \"prime192v2\"\n#define NID_X9_62_prime192v2            410\n#define OBJ_X9_62_prime192v2            OBJ_X9_62_primeCurve,2L\n\n#define SN_X9_62_prime192v3             \"prime192v3\"\n#define NID_X9_62_prime192v3            411\n#define OBJ_X9_62_prime192v3            OBJ_X9_62_primeCurve,3L\n\n#define SN_X9_62_prime239v1             \"prime239v1\"\n#define NID_X9_62_prime239v1            412\n#define OBJ_X9_62_prime239v1            OBJ_X9_62_primeCurve,4L\n\n#define SN_X9_62_prime239v2             \"prime239v2\"\n#define NID_X9_62_prime239v2            413\n#define OBJ_X9_62_prime239v2            OBJ_X9_62_primeCurve,5L\n\n#define SN_X9_62_prime239v3             \"prime239v3\"\n#define NID_X9_62_prime239v3            414\n#define OBJ_X9_62_prime239v3            OBJ_X9_62_primeCurve,6L\n\n#define SN_X9_62_prime256v1             \"prime256v1\"\n#define NID_X9_62_prime256v1            415\n#define OBJ_X9_62_prime256v1            OBJ_X9_62_primeCurve,7L\n\n#define OBJ_X9_62_id_ecSigType          OBJ_ansi_X9_62,4L\n\n#define SN_ecdsa_with_SHA1              \"ecdsa-with-SHA1\"\n#define NID_ecdsa_with_SHA1             416\n#define OBJ_ecdsa_with_SHA1             OBJ_X9_62_id_ecSigType,1L\n\n#define SN_ecdsa_with_Recommended               \"ecdsa-with-Recommended\"\n#define NID_ecdsa_with_Recommended              791\n#define OBJ_ecdsa_with_Recommended              OBJ_X9_62_id_ecSigType,2L\n\n#define SN_ecdsa_with_Specified         \"ecdsa-with-Specified\"\n#define NID_ecdsa_with_Specified                792\n#define OBJ_ecdsa_with_Specified                OBJ_X9_62_id_ecSigType,3L\n\n#define SN_ecdsa_with_SHA224            \"ecdsa-with-SHA224\"\n#define NID_ecdsa_with_SHA224           793\n#define OBJ_ecdsa_with_SHA224           OBJ_ecdsa_with_Specified,1L\n\n#define SN_ecdsa_with_SHA256            \"ecdsa-with-SHA256\"\n#define NID_ecdsa_with_SHA256           794\n#define OBJ_ecdsa_with_SHA256           OBJ_ecdsa_with_Specified,2L\n\n#define SN_ecdsa_with_SHA384            \"ecdsa-with-SHA384\"\n#define NID_ecdsa_with_SHA384           795\n#define OBJ_ecdsa_with_SHA384           OBJ_ecdsa_with_Specified,3L\n\n#define SN_ecdsa_with_SHA512            \"ecdsa-with-SHA512\"\n#define NID_ecdsa_with_SHA512           796\n#define OBJ_ecdsa_with_SHA512           OBJ_ecdsa_with_Specified,4L\n\n#define OBJ_secg_ellipticCurve          OBJ_certicom_arc,0L\n\n#define SN_secp112r1            \"secp112r1\"\n#define NID_secp112r1           704\n#define OBJ_secp112r1           OBJ_secg_ellipticCurve,6L\n\n#define SN_secp112r2            \"secp112r2\"\n#define NID_secp112r2           705\n#define OBJ_secp112r2           OBJ_secg_ellipticCurve,7L\n\n#define SN_secp128r1            \"secp128r1\"\n#define NID_secp128r1           706\n#define OBJ_secp128r1           OBJ_secg_ellipticCurve,28L\n\n#define SN_secp128r2            \"secp128r2\"\n#define NID_secp128r2           707\n#define OBJ_secp128r2           OBJ_secg_ellipticCurve,29L\n\n#define SN_secp160k1            \"secp160k1\"\n#define NID_secp160k1           708\n#define OBJ_secp160k1           OBJ_secg_ellipticCurve,9L\n\n#define SN_secp160r1            \"secp160r1\"\n#define NID_secp160r1           709\n#define OBJ_secp160r1           OBJ_secg_ellipticCurve,8L\n\n#define SN_secp160r2            \"secp160r2\"\n#define NID_secp160r2           710\n#define OBJ_secp160r2           OBJ_secg_ellipticCurve,30L\n\n#define SN_secp192k1            \"secp192k1\"\n#define NID_secp192k1           711\n#define OBJ_secp192k1           OBJ_secg_ellipticCurve,31L\n\n#define SN_secp224k1            \"secp224k1\"\n#define NID_secp224k1           712\n#define OBJ_secp224k1           OBJ_secg_ellipticCurve,32L\n\n#define SN_secp224r1            \"secp224r1\"\n#define NID_secp224r1           713\n#define OBJ_secp224r1           OBJ_secg_ellipticCurve,33L\n\n#define SN_secp256k1            \"secp256k1\"\n#define NID_secp256k1           714\n#define OBJ_secp256k1           OBJ_secg_ellipticCurve,10L\n\n#define SN_secp384r1            \"secp384r1\"\n#define NID_secp384r1           715\n#define OBJ_secp384r1           OBJ_secg_ellipticCurve,34L\n\n#define SN_secp521r1            \"secp521r1\"\n#define NID_secp521r1           716\n#define OBJ_secp521r1           OBJ_secg_ellipticCurve,35L\n\n#define SN_sect113r1            \"sect113r1\"\n#define NID_sect113r1           717\n#define OBJ_sect113r1           OBJ_secg_ellipticCurve,4L\n\n#define SN_sect113r2            \"sect113r2\"\n#define NID_sect113r2           718\n#define OBJ_sect113r2           OBJ_secg_ellipticCurve,5L\n\n#define SN_sect131r1            \"sect131r1\"\n#define NID_sect131r1           719\n#define OBJ_sect131r1           OBJ_secg_ellipticCurve,22L\n\n#define SN_sect131r2            \"sect131r2\"\n#define NID_sect131r2           720\n#define OBJ_sect131r2           OBJ_secg_ellipticCurve,23L\n\n#define SN_sect163k1            \"sect163k1\"\n#define NID_sect163k1           721\n#define OBJ_sect163k1           OBJ_secg_ellipticCurve,1L\n\n#define SN_sect163r1            \"sect163r1\"\n#define NID_sect163r1           722\n#define OBJ_sect163r1           OBJ_secg_ellipticCurve,2L\n\n#define SN_sect163r2            \"sect163r2\"\n#define NID_sect163r2           723\n#define OBJ_sect163r2           OBJ_secg_ellipticCurve,15L\n\n#define SN_sect193r1            \"sect193r1\"\n#define NID_sect193r1           724\n#define OBJ_sect193r1           OBJ_secg_ellipticCurve,24L\n\n#define SN_sect193r2            \"sect193r2\"\n#define NID_sect193r2           725\n#define OBJ_sect193r2           OBJ_secg_ellipticCurve,25L\n\n#define SN_sect233k1            \"sect233k1\"\n#define NID_sect233k1           726\n#define OBJ_sect233k1           OBJ_secg_ellipticCurve,26L\n\n#define SN_sect233r1            \"sect233r1\"\n#define NID_sect233r1           727\n#define OBJ_sect233r1           OBJ_secg_ellipticCurve,27L\n\n#define SN_sect239k1            \"sect239k1\"\n#define NID_sect239k1           728\n#define OBJ_sect239k1           OBJ_secg_ellipticCurve,3L\n\n#define SN_sect283k1            \"sect283k1\"\n#define NID_sect283k1           729\n#define OBJ_sect283k1           OBJ_secg_ellipticCurve,16L\n\n#define SN_sect283r1            \"sect283r1\"\n#define NID_sect283r1           730\n#define OBJ_sect283r1           OBJ_secg_ellipticCurve,17L\n\n#define SN_sect409k1            \"sect409k1\"\n#define NID_sect409k1           731\n#define OBJ_sect409k1           OBJ_secg_ellipticCurve,36L\n\n#define SN_sect409r1            \"sect409r1\"\n#define NID_sect409r1           732\n#define OBJ_sect409r1           OBJ_secg_ellipticCurve,37L\n\n#define SN_sect571k1            \"sect571k1\"\n#define NID_sect571k1           733\n#define OBJ_sect571k1           OBJ_secg_ellipticCurve,38L\n\n#define SN_sect571r1            \"sect571r1\"\n#define NID_sect571r1           734\n#define OBJ_sect571r1           OBJ_secg_ellipticCurve,39L\n\n#define OBJ_wap_wsg_idm_ecid            OBJ_wap_wsg,4L\n\n#define SN_wap_wsg_idm_ecid_wtls1               \"wap-wsg-idm-ecid-wtls1\"\n#define NID_wap_wsg_idm_ecid_wtls1              735\n#define OBJ_wap_wsg_idm_ecid_wtls1              OBJ_wap_wsg_idm_ecid,1L\n\n#define SN_wap_wsg_idm_ecid_wtls3               \"wap-wsg-idm-ecid-wtls3\"\n#define NID_wap_wsg_idm_ecid_wtls3              736\n#define OBJ_wap_wsg_idm_ecid_wtls3              OBJ_wap_wsg_idm_ecid,3L\n\n#define SN_wap_wsg_idm_ecid_wtls4               \"wap-wsg-idm-ecid-wtls4\"\n#define NID_wap_wsg_idm_ecid_wtls4              737\n#define OBJ_wap_wsg_idm_ecid_wtls4              OBJ_wap_wsg_idm_ecid,4L\n\n#define SN_wap_wsg_idm_ecid_wtls5               \"wap-wsg-idm-ecid-wtls5\"\n#define NID_wap_wsg_idm_ecid_wtls5              738\n#define OBJ_wap_wsg_idm_ecid_wtls5              OBJ_wap_wsg_idm_ecid,5L\n\n#define SN_wap_wsg_idm_ecid_wtls6               \"wap-wsg-idm-ecid-wtls6\"\n#define NID_wap_wsg_idm_ecid_wtls6              739\n#define OBJ_wap_wsg_idm_ecid_wtls6              OBJ_wap_wsg_idm_ecid,6L\n\n#define SN_wap_wsg_idm_ecid_wtls7               \"wap-wsg-idm-ecid-wtls7\"\n#define NID_wap_wsg_idm_ecid_wtls7              740\n#define OBJ_wap_wsg_idm_ecid_wtls7              OBJ_wap_wsg_idm_ecid,7L\n\n#define SN_wap_wsg_idm_ecid_wtls8               \"wap-wsg-idm-ecid-wtls8\"\n#define NID_wap_wsg_idm_ecid_wtls8              741\n#define OBJ_wap_wsg_idm_ecid_wtls8              OBJ_wap_wsg_idm_ecid,8L\n\n#define SN_wap_wsg_idm_ecid_wtls9               \"wap-wsg-idm-ecid-wtls9\"\n#define NID_wap_wsg_idm_ecid_wtls9              742\n#define OBJ_wap_wsg_idm_ecid_wtls9              OBJ_wap_wsg_idm_ecid,9L\n\n#define SN_wap_wsg_idm_ecid_wtls10              \"wap-wsg-idm-ecid-wtls10\"\n#define NID_wap_wsg_idm_ecid_wtls10             743\n#define OBJ_wap_wsg_idm_ecid_wtls10             OBJ_wap_wsg_idm_ecid,10L\n\n#define SN_wap_wsg_idm_ecid_wtls11              \"wap-wsg-idm-ecid-wtls11\"\n#define NID_wap_wsg_idm_ecid_wtls11             744\n#define OBJ_wap_wsg_idm_ecid_wtls11             OBJ_wap_wsg_idm_ecid,11L\n\n#define SN_wap_wsg_idm_ecid_wtls12              \"wap-wsg-idm-ecid-wtls12\"\n#define NID_wap_wsg_idm_ecid_wtls12             745\n#define OBJ_wap_wsg_idm_ecid_wtls12             OBJ_wap_wsg_idm_ecid,12L\n\n#define SN_cast5_cbc            \"CAST5-CBC\"\n#define LN_cast5_cbc            \"cast5-cbc\"\n#define NID_cast5_cbc           108\n#define OBJ_cast5_cbc           OBJ_ISO_US,113533L,7L,66L,10L\n\n#define SN_cast5_ecb            \"CAST5-ECB\"\n#define LN_cast5_ecb            \"cast5-ecb\"\n#define NID_cast5_ecb           109\n\n#define SN_cast5_cfb64          \"CAST5-CFB\"\n#define LN_cast5_cfb64          \"cast5-cfb\"\n#define NID_cast5_cfb64         110\n\n#define SN_cast5_ofb64          \"CAST5-OFB\"\n#define LN_cast5_ofb64          \"cast5-ofb\"\n#define NID_cast5_ofb64         111\n\n#define LN_pbeWithMD5AndCast5_CBC               \"pbeWithMD5AndCast5CBC\"\n#define NID_pbeWithMD5AndCast5_CBC              112\n#define OBJ_pbeWithMD5AndCast5_CBC              OBJ_ISO_US,113533L,7L,66L,12L\n\n#define SN_id_PasswordBasedMAC          \"id-PasswordBasedMAC\"\n#define LN_id_PasswordBasedMAC          \"password based MAC\"\n#define NID_id_PasswordBasedMAC         782\n#define OBJ_id_PasswordBasedMAC         OBJ_ISO_US,113533L,7L,66L,13L\n\n#define SN_id_DHBasedMac                \"id-DHBasedMac\"\n#define LN_id_DHBasedMac                \"Diffie-Hellman based MAC\"\n#define NID_id_DHBasedMac               783\n#define OBJ_id_DHBasedMac               OBJ_ISO_US,113533L,7L,66L,30L\n\n#define SN_rsadsi               \"rsadsi\"\n#define LN_rsadsi               \"RSA Data Security, Inc.\"\n#define NID_rsadsi              1\n#define OBJ_rsadsi              OBJ_ISO_US,113549L\n\n#define SN_pkcs         \"pkcs\"\n#define LN_pkcs         \"RSA Data Security, Inc. PKCS\"\n#define NID_pkcs                2\n#define OBJ_pkcs                OBJ_rsadsi,1L\n\n#define SN_pkcs1                \"pkcs1\"\n#define NID_pkcs1               186\n#define OBJ_pkcs1               OBJ_pkcs,1L\n\n#define LN_rsaEncryption                \"rsaEncryption\"\n#define NID_rsaEncryption               6\n#define OBJ_rsaEncryption               OBJ_pkcs1,1L\n\n#define SN_md2WithRSAEncryption         \"RSA-MD2\"\n#define LN_md2WithRSAEncryption         \"md2WithRSAEncryption\"\n#define NID_md2WithRSAEncryption                7\n#define OBJ_md2WithRSAEncryption                OBJ_pkcs1,2L\n\n#define SN_md4WithRSAEncryption         \"RSA-MD4\"\n#define LN_md4WithRSAEncryption         \"md4WithRSAEncryption\"\n#define NID_md4WithRSAEncryption                396\n#define OBJ_md4WithRSAEncryption                OBJ_pkcs1,3L\n\n#define SN_md5WithRSAEncryption         \"RSA-MD5\"\n#define LN_md5WithRSAEncryption         \"md5WithRSAEncryption\"\n#define NID_md5WithRSAEncryption                8\n#define OBJ_md5WithRSAEncryption                OBJ_pkcs1,4L\n\n#define SN_sha1WithRSAEncryption                \"RSA-SHA1\"\n#define LN_sha1WithRSAEncryption                \"sha1WithRSAEncryption\"\n#define NID_sha1WithRSAEncryption               65\n#define OBJ_sha1WithRSAEncryption               OBJ_pkcs1,5L\n\n#define SN_rsaesOaep            \"RSAES-OAEP\"\n#define LN_rsaesOaep            \"rsaesOaep\"\n#define NID_rsaesOaep           919\n#define OBJ_rsaesOaep           OBJ_pkcs1,7L\n\n#define SN_mgf1         \"MGF1\"\n#define LN_mgf1         \"mgf1\"\n#define NID_mgf1                911\n#define OBJ_mgf1                OBJ_pkcs1,8L\n\n#define SN_pSpecified           \"PSPECIFIED\"\n#define LN_pSpecified           \"pSpecified\"\n#define NID_pSpecified          935\n#define OBJ_pSpecified          OBJ_pkcs1,9L\n\n#define SN_rsassaPss            \"RSASSA-PSS\"\n#define LN_rsassaPss            \"rsassaPss\"\n#define NID_rsassaPss           912\n#define OBJ_rsassaPss           OBJ_pkcs1,10L\n\n#define SN_sha256WithRSAEncryption              \"RSA-SHA256\"\n#define LN_sha256WithRSAEncryption              \"sha256WithRSAEncryption\"\n#define NID_sha256WithRSAEncryption             668\n#define OBJ_sha256WithRSAEncryption             OBJ_pkcs1,11L\n\n#define SN_sha384WithRSAEncryption              \"RSA-SHA384\"\n#define LN_sha384WithRSAEncryption              \"sha384WithRSAEncryption\"\n#define NID_sha384WithRSAEncryption             669\n#define OBJ_sha384WithRSAEncryption             OBJ_pkcs1,12L\n\n#define SN_sha512WithRSAEncryption              \"RSA-SHA512\"\n#define LN_sha512WithRSAEncryption              \"sha512WithRSAEncryption\"\n#define NID_sha512WithRSAEncryption             670\n#define OBJ_sha512WithRSAEncryption             OBJ_pkcs1,13L\n\n#define SN_sha224WithRSAEncryption              \"RSA-SHA224\"\n#define LN_sha224WithRSAEncryption              \"sha224WithRSAEncryption\"\n#define NID_sha224WithRSAEncryption             671\n#define OBJ_sha224WithRSAEncryption             OBJ_pkcs1,14L\n\n#define SN_sha512_224WithRSAEncryption          \"RSA-SHA512/224\"\n#define LN_sha512_224WithRSAEncryption          \"sha512-224WithRSAEncryption\"\n#define NID_sha512_224WithRSAEncryption         1145\n#define OBJ_sha512_224WithRSAEncryption         OBJ_pkcs1,15L\n\n#define SN_sha512_256WithRSAEncryption          \"RSA-SHA512/256\"\n#define LN_sha512_256WithRSAEncryption          \"sha512-256WithRSAEncryption\"\n#define NID_sha512_256WithRSAEncryption         1146\n#define OBJ_sha512_256WithRSAEncryption         OBJ_pkcs1,16L\n\n#define SN_pkcs3                \"pkcs3\"\n#define NID_pkcs3               27\n#define OBJ_pkcs3               OBJ_pkcs,3L\n\n#define LN_dhKeyAgreement               \"dhKeyAgreement\"\n#define NID_dhKeyAgreement              28\n#define OBJ_dhKeyAgreement              OBJ_pkcs3,1L\n\n#define SN_pkcs5                \"pkcs5\"\n#define NID_pkcs5               187\n#define OBJ_pkcs5               OBJ_pkcs,5L\n\n#define SN_pbeWithMD2AndDES_CBC         \"PBE-MD2-DES\"\n#define LN_pbeWithMD2AndDES_CBC         \"pbeWithMD2AndDES-CBC\"\n#define NID_pbeWithMD2AndDES_CBC                9\n#define OBJ_pbeWithMD2AndDES_CBC                OBJ_pkcs5,1L\n\n#define SN_pbeWithMD5AndDES_CBC         \"PBE-MD5-DES\"\n#define LN_pbeWithMD5AndDES_CBC         \"pbeWithMD5AndDES-CBC\"\n#define NID_pbeWithMD5AndDES_CBC                10\n#define OBJ_pbeWithMD5AndDES_CBC                OBJ_pkcs5,3L\n\n#define SN_pbeWithMD2AndRC2_CBC         \"PBE-MD2-RC2-64\"\n#define LN_pbeWithMD2AndRC2_CBC         \"pbeWithMD2AndRC2-CBC\"\n#define NID_pbeWithMD2AndRC2_CBC                168\n#define OBJ_pbeWithMD2AndRC2_CBC                OBJ_pkcs5,4L\n\n#define SN_pbeWithMD5AndRC2_CBC         \"PBE-MD5-RC2-64\"\n#define LN_pbeWithMD5AndRC2_CBC         \"pbeWithMD5AndRC2-CBC\"\n#define NID_pbeWithMD5AndRC2_CBC                169\n#define OBJ_pbeWithMD5AndRC2_CBC                OBJ_pkcs5,6L\n\n#define SN_pbeWithSHA1AndDES_CBC                \"PBE-SHA1-DES\"\n#define LN_pbeWithSHA1AndDES_CBC                \"pbeWithSHA1AndDES-CBC\"\n#define NID_pbeWithSHA1AndDES_CBC               170\n#define OBJ_pbeWithSHA1AndDES_CBC               OBJ_pkcs5,10L\n\n#define SN_pbeWithSHA1AndRC2_CBC                \"PBE-SHA1-RC2-64\"\n#define LN_pbeWithSHA1AndRC2_CBC                \"pbeWithSHA1AndRC2-CBC\"\n#define NID_pbeWithSHA1AndRC2_CBC               68\n#define OBJ_pbeWithSHA1AndRC2_CBC               OBJ_pkcs5,11L\n\n#define LN_id_pbkdf2            \"PBKDF2\"\n#define NID_id_pbkdf2           69\n#define OBJ_id_pbkdf2           OBJ_pkcs5,12L\n\n#define LN_pbes2                \"PBES2\"\n#define NID_pbes2               161\n#define OBJ_pbes2               OBJ_pkcs5,13L\n\n#define LN_pbmac1               \"PBMAC1\"\n#define NID_pbmac1              162\n#define OBJ_pbmac1              OBJ_pkcs5,14L\n\n#define SN_pkcs7                \"pkcs7\"\n#define NID_pkcs7               20\n#define OBJ_pkcs7               OBJ_pkcs,7L\n\n#define LN_pkcs7_data           \"pkcs7-data\"\n#define NID_pkcs7_data          21\n#define OBJ_pkcs7_data          OBJ_pkcs7,1L\n\n#define LN_pkcs7_signed         \"pkcs7-signedData\"\n#define NID_pkcs7_signed                22\n#define OBJ_pkcs7_signed                OBJ_pkcs7,2L\n\n#define LN_pkcs7_enveloped              \"pkcs7-envelopedData\"\n#define NID_pkcs7_enveloped             23\n#define OBJ_pkcs7_enveloped             OBJ_pkcs7,3L\n\n#define LN_pkcs7_signedAndEnveloped             \"pkcs7-signedAndEnvelopedData\"\n#define NID_pkcs7_signedAndEnveloped            24\n#define OBJ_pkcs7_signedAndEnveloped            OBJ_pkcs7,4L\n\n#define LN_pkcs7_digest         \"pkcs7-digestData\"\n#define NID_pkcs7_digest                25\n#define OBJ_pkcs7_digest                OBJ_pkcs7,5L\n\n#define LN_pkcs7_encrypted              \"pkcs7-encryptedData\"\n#define NID_pkcs7_encrypted             26\n#define OBJ_pkcs7_encrypted             OBJ_pkcs7,6L\n\n#define SN_pkcs9                \"pkcs9\"\n#define NID_pkcs9               47\n#define OBJ_pkcs9               OBJ_pkcs,9L\n\n#define LN_pkcs9_emailAddress           \"emailAddress\"\n#define NID_pkcs9_emailAddress          48\n#define OBJ_pkcs9_emailAddress          OBJ_pkcs9,1L\n\n#define LN_pkcs9_unstructuredName               \"unstructuredName\"\n#define NID_pkcs9_unstructuredName              49\n#define OBJ_pkcs9_unstructuredName              OBJ_pkcs9,2L\n\n#define LN_pkcs9_contentType            \"contentType\"\n#define NID_pkcs9_contentType           50\n#define OBJ_pkcs9_contentType           OBJ_pkcs9,3L\n\n#define LN_pkcs9_messageDigest          \"messageDigest\"\n#define NID_pkcs9_messageDigest         51\n#define OBJ_pkcs9_messageDigest         OBJ_pkcs9,4L\n\n#define LN_pkcs9_signingTime            \"signingTime\"\n#define NID_pkcs9_signingTime           52\n#define OBJ_pkcs9_signingTime           OBJ_pkcs9,5L\n\n#define LN_pkcs9_countersignature               \"countersignature\"\n#define NID_pkcs9_countersignature              53\n#define OBJ_pkcs9_countersignature              OBJ_pkcs9,6L\n\n#define LN_pkcs9_challengePassword              \"challengePassword\"\n#define NID_pkcs9_challengePassword             54\n#define OBJ_pkcs9_challengePassword             OBJ_pkcs9,7L\n\n#define LN_pkcs9_unstructuredAddress            \"unstructuredAddress\"\n#define NID_pkcs9_unstructuredAddress           55\n#define OBJ_pkcs9_unstructuredAddress           OBJ_pkcs9,8L\n\n#define LN_pkcs9_extCertAttributes              \"extendedCertificateAttributes\"\n#define NID_pkcs9_extCertAttributes             56\n#define OBJ_pkcs9_extCertAttributes             OBJ_pkcs9,9L\n\n#define SN_ext_req              \"extReq\"\n#define LN_ext_req              \"Extension Request\"\n#define NID_ext_req             172\n#define OBJ_ext_req             OBJ_pkcs9,14L\n\n#define SN_SMIMECapabilities            \"SMIME-CAPS\"\n#define LN_SMIMECapabilities            \"S/MIME Capabilities\"\n#define NID_SMIMECapabilities           167\n#define OBJ_SMIMECapabilities           OBJ_pkcs9,15L\n\n#define SN_SMIME                \"SMIME\"\n#define LN_SMIME                \"S/MIME\"\n#define NID_SMIME               188\n#define OBJ_SMIME               OBJ_pkcs9,16L\n\n#define SN_id_smime_mod         \"id-smime-mod\"\n#define NID_id_smime_mod                189\n#define OBJ_id_smime_mod                OBJ_SMIME,0L\n\n#define SN_id_smime_ct          \"id-smime-ct\"\n#define NID_id_smime_ct         190\n#define OBJ_id_smime_ct         OBJ_SMIME,1L\n\n#define SN_id_smime_aa          \"id-smime-aa\"\n#define NID_id_smime_aa         191\n#define OBJ_id_smime_aa         OBJ_SMIME,2L\n\n#define SN_id_smime_alg         \"id-smime-alg\"\n#define NID_id_smime_alg                192\n#define OBJ_id_smime_alg                OBJ_SMIME,3L\n\n#define SN_id_smime_cd          \"id-smime-cd\"\n#define NID_id_smime_cd         193\n#define OBJ_id_smime_cd         OBJ_SMIME,4L\n\n#define SN_id_smime_spq         \"id-smime-spq\"\n#define NID_id_smime_spq                194\n#define OBJ_id_smime_spq                OBJ_SMIME,5L\n\n#define SN_id_smime_cti         \"id-smime-cti\"\n#define NID_id_smime_cti                195\n#define OBJ_id_smime_cti                OBJ_SMIME,6L\n\n#define SN_id_smime_mod_cms             \"id-smime-mod-cms\"\n#define NID_id_smime_mod_cms            196\n#define OBJ_id_smime_mod_cms            OBJ_id_smime_mod,1L\n\n#define SN_id_smime_mod_ess             \"id-smime-mod-ess\"\n#define NID_id_smime_mod_ess            197\n#define OBJ_id_smime_mod_ess            OBJ_id_smime_mod,2L\n\n#define SN_id_smime_mod_oid             \"id-smime-mod-oid\"\n#define NID_id_smime_mod_oid            198\n#define OBJ_id_smime_mod_oid            OBJ_id_smime_mod,3L\n\n#define SN_id_smime_mod_msg_v3          \"id-smime-mod-msg-v3\"\n#define NID_id_smime_mod_msg_v3         199\n#define OBJ_id_smime_mod_msg_v3         OBJ_id_smime_mod,4L\n\n#define SN_id_smime_mod_ets_eSignature_88               \"id-smime-mod-ets-eSignature-88\"\n#define NID_id_smime_mod_ets_eSignature_88              200\n#define OBJ_id_smime_mod_ets_eSignature_88              OBJ_id_smime_mod,5L\n\n#define SN_id_smime_mod_ets_eSignature_97               \"id-smime-mod-ets-eSignature-97\"\n#define NID_id_smime_mod_ets_eSignature_97              201\n#define OBJ_id_smime_mod_ets_eSignature_97              OBJ_id_smime_mod,6L\n\n#define SN_id_smime_mod_ets_eSigPolicy_88               \"id-smime-mod-ets-eSigPolicy-88\"\n#define NID_id_smime_mod_ets_eSigPolicy_88              202\n#define OBJ_id_smime_mod_ets_eSigPolicy_88              OBJ_id_smime_mod,7L\n\n#define SN_id_smime_mod_ets_eSigPolicy_97               \"id-smime-mod-ets-eSigPolicy-97\"\n#define NID_id_smime_mod_ets_eSigPolicy_97              203\n#define OBJ_id_smime_mod_ets_eSigPolicy_97              OBJ_id_smime_mod,8L\n\n#define SN_id_smime_ct_receipt          \"id-smime-ct-receipt\"\n#define NID_id_smime_ct_receipt         204\n#define OBJ_id_smime_ct_receipt         OBJ_id_smime_ct,1L\n\n#define SN_id_smime_ct_authData         \"id-smime-ct-authData\"\n#define NID_id_smime_ct_authData                205\n#define OBJ_id_smime_ct_authData                OBJ_id_smime_ct,2L\n\n#define SN_id_smime_ct_publishCert              \"id-smime-ct-publishCert\"\n#define NID_id_smime_ct_publishCert             206\n#define OBJ_id_smime_ct_publishCert             OBJ_id_smime_ct,3L\n\n#define SN_id_smime_ct_TSTInfo          \"id-smime-ct-TSTInfo\"\n#define NID_id_smime_ct_TSTInfo         207\n#define OBJ_id_smime_ct_TSTInfo         OBJ_id_smime_ct,4L\n\n#define SN_id_smime_ct_TDTInfo          \"id-smime-ct-TDTInfo\"\n#define NID_id_smime_ct_TDTInfo         208\n#define OBJ_id_smime_ct_TDTInfo         OBJ_id_smime_ct,5L\n\n#define SN_id_smime_ct_contentInfo              \"id-smime-ct-contentInfo\"\n#define NID_id_smime_ct_contentInfo             209\n#define OBJ_id_smime_ct_contentInfo             OBJ_id_smime_ct,6L\n\n#define SN_id_smime_ct_DVCSRequestData          \"id-smime-ct-DVCSRequestData\"\n#define NID_id_smime_ct_DVCSRequestData         210\n#define OBJ_id_smime_ct_DVCSRequestData         OBJ_id_smime_ct,7L\n\n#define SN_id_smime_ct_DVCSResponseData         \"id-smime-ct-DVCSResponseData\"\n#define NID_id_smime_ct_DVCSResponseData                211\n#define OBJ_id_smime_ct_DVCSResponseData                OBJ_id_smime_ct,8L\n\n#define SN_id_smime_ct_compressedData           \"id-smime-ct-compressedData\"\n#define NID_id_smime_ct_compressedData          786\n#define OBJ_id_smime_ct_compressedData          OBJ_id_smime_ct,9L\n\n#define SN_id_smime_ct_contentCollection                \"id-smime-ct-contentCollection\"\n#define NID_id_smime_ct_contentCollection               1058\n#define OBJ_id_smime_ct_contentCollection               OBJ_id_smime_ct,19L\n\n#define SN_id_smime_ct_authEnvelopedData                \"id-smime-ct-authEnvelopedData\"\n#define NID_id_smime_ct_authEnvelopedData               1059\n#define OBJ_id_smime_ct_authEnvelopedData               OBJ_id_smime_ct,23L\n\n#define SN_id_ct_asciiTextWithCRLF              \"id-ct-asciiTextWithCRLF\"\n#define NID_id_ct_asciiTextWithCRLF             787\n#define OBJ_id_ct_asciiTextWithCRLF             OBJ_id_smime_ct,27L\n\n#define SN_id_ct_xml            \"id-ct-xml\"\n#define NID_id_ct_xml           1060\n#define OBJ_id_ct_xml           OBJ_id_smime_ct,28L\n\n#define SN_id_smime_aa_receiptRequest           \"id-smime-aa-receiptRequest\"\n#define NID_id_smime_aa_receiptRequest          212\n#define OBJ_id_smime_aa_receiptRequest          OBJ_id_smime_aa,1L\n\n#define SN_id_smime_aa_securityLabel            \"id-smime-aa-securityLabel\"\n#define NID_id_smime_aa_securityLabel           213\n#define OBJ_id_smime_aa_securityLabel           OBJ_id_smime_aa,2L\n\n#define SN_id_smime_aa_mlExpandHistory          \"id-smime-aa-mlExpandHistory\"\n#define NID_id_smime_aa_mlExpandHistory         214\n#define OBJ_id_smime_aa_mlExpandHistory         OBJ_id_smime_aa,3L\n\n#define SN_id_smime_aa_contentHint              \"id-smime-aa-contentHint\"\n#define NID_id_smime_aa_contentHint             215\n#define OBJ_id_smime_aa_contentHint             OBJ_id_smime_aa,4L\n\n#define SN_id_smime_aa_msgSigDigest             \"id-smime-aa-msgSigDigest\"\n#define NID_id_smime_aa_msgSigDigest            216\n#define OBJ_id_smime_aa_msgSigDigest            OBJ_id_smime_aa,5L\n\n#define SN_id_smime_aa_encapContentType         \"id-smime-aa-encapContentType\"\n#define NID_id_smime_aa_encapContentType                217\n#define OBJ_id_smime_aa_encapContentType                OBJ_id_smime_aa,6L\n\n#define SN_id_smime_aa_contentIdentifier                \"id-smime-aa-contentIdentifier\"\n#define NID_id_smime_aa_contentIdentifier               218\n#define OBJ_id_smime_aa_contentIdentifier               OBJ_id_smime_aa,7L\n\n#define SN_id_smime_aa_macValue         \"id-smime-aa-macValue\"\n#define NID_id_smime_aa_macValue                219\n#define OBJ_id_smime_aa_macValue                OBJ_id_smime_aa,8L\n\n#define SN_id_smime_aa_equivalentLabels         \"id-smime-aa-equivalentLabels\"\n#define NID_id_smime_aa_equivalentLabels                220\n#define OBJ_id_smime_aa_equivalentLabels                OBJ_id_smime_aa,9L\n\n#define SN_id_smime_aa_contentReference         \"id-smime-aa-contentReference\"\n#define NID_id_smime_aa_contentReference                221\n#define OBJ_id_smime_aa_contentReference                OBJ_id_smime_aa,10L\n\n#define SN_id_smime_aa_encrypKeyPref            \"id-smime-aa-encrypKeyPref\"\n#define NID_id_smime_aa_encrypKeyPref           222\n#define OBJ_id_smime_aa_encrypKeyPref           OBJ_id_smime_aa,11L\n\n#define SN_id_smime_aa_signingCertificate               \"id-smime-aa-signingCertificate\"\n#define NID_id_smime_aa_signingCertificate              223\n#define OBJ_id_smime_aa_signingCertificate              OBJ_id_smime_aa,12L\n\n#define SN_id_smime_aa_smimeEncryptCerts                \"id-smime-aa-smimeEncryptCerts\"\n#define NID_id_smime_aa_smimeEncryptCerts               224\n#define OBJ_id_smime_aa_smimeEncryptCerts               OBJ_id_smime_aa,13L\n\n#define SN_id_smime_aa_timeStampToken           \"id-smime-aa-timeStampToken\"\n#define NID_id_smime_aa_timeStampToken          225\n#define OBJ_id_smime_aa_timeStampToken          OBJ_id_smime_aa,14L\n\n#define SN_id_smime_aa_ets_sigPolicyId          \"id-smime-aa-ets-sigPolicyId\"\n#define NID_id_smime_aa_ets_sigPolicyId         226\n#define OBJ_id_smime_aa_ets_sigPolicyId         OBJ_id_smime_aa,15L\n\n#define SN_id_smime_aa_ets_commitmentType               \"id-smime-aa-ets-commitmentType\"\n#define NID_id_smime_aa_ets_commitmentType              227\n#define OBJ_id_smime_aa_ets_commitmentType              OBJ_id_smime_aa,16L\n\n#define SN_id_smime_aa_ets_signerLocation               \"id-smime-aa-ets-signerLocation\"\n#define NID_id_smime_aa_ets_signerLocation              228\n#define OBJ_id_smime_aa_ets_signerLocation              OBJ_id_smime_aa,17L\n\n#define SN_id_smime_aa_ets_signerAttr           \"id-smime-aa-ets-signerAttr\"\n#define NID_id_smime_aa_ets_signerAttr          229\n#define OBJ_id_smime_aa_ets_signerAttr          OBJ_id_smime_aa,18L\n\n#define SN_id_smime_aa_ets_otherSigCert         \"id-smime-aa-ets-otherSigCert\"\n#define NID_id_smime_aa_ets_otherSigCert                230\n#define OBJ_id_smime_aa_ets_otherSigCert                OBJ_id_smime_aa,19L\n\n#define SN_id_smime_aa_ets_contentTimestamp             \"id-smime-aa-ets-contentTimestamp\"\n#define NID_id_smime_aa_ets_contentTimestamp            231\n#define OBJ_id_smime_aa_ets_contentTimestamp            OBJ_id_smime_aa,20L\n\n#define SN_id_smime_aa_ets_CertificateRefs              \"id-smime-aa-ets-CertificateRefs\"\n#define NID_id_smime_aa_ets_CertificateRefs             232\n#define OBJ_id_smime_aa_ets_CertificateRefs             OBJ_id_smime_aa,21L\n\n#define SN_id_smime_aa_ets_RevocationRefs               \"id-smime-aa-ets-RevocationRefs\"\n#define NID_id_smime_aa_ets_RevocationRefs              233\n#define OBJ_id_smime_aa_ets_RevocationRefs              OBJ_id_smime_aa,22L\n\n#define SN_id_smime_aa_ets_certValues           \"id-smime-aa-ets-certValues\"\n#define NID_id_smime_aa_ets_certValues          234\n#define OBJ_id_smime_aa_ets_certValues          OBJ_id_smime_aa,23L\n\n#define SN_id_smime_aa_ets_revocationValues             \"id-smime-aa-ets-revocationValues\"\n#define NID_id_smime_aa_ets_revocationValues            235\n#define OBJ_id_smime_aa_ets_revocationValues            OBJ_id_smime_aa,24L\n\n#define SN_id_smime_aa_ets_escTimeStamp         \"id-smime-aa-ets-escTimeStamp\"\n#define NID_id_smime_aa_ets_escTimeStamp                236\n#define OBJ_id_smime_aa_ets_escTimeStamp                OBJ_id_smime_aa,25L\n\n#define SN_id_smime_aa_ets_certCRLTimestamp             \"id-smime-aa-ets-certCRLTimestamp\"\n#define NID_id_smime_aa_ets_certCRLTimestamp            237\n#define OBJ_id_smime_aa_ets_certCRLTimestamp            OBJ_id_smime_aa,26L\n\n#define SN_id_smime_aa_ets_archiveTimeStamp             \"id-smime-aa-ets-archiveTimeStamp\"\n#define NID_id_smime_aa_ets_archiveTimeStamp            238\n#define OBJ_id_smime_aa_ets_archiveTimeStamp            OBJ_id_smime_aa,27L\n\n#define SN_id_smime_aa_signatureType            \"id-smime-aa-signatureType\"\n#define NID_id_smime_aa_signatureType           239\n#define OBJ_id_smime_aa_signatureType           OBJ_id_smime_aa,28L\n\n#define SN_id_smime_aa_dvcs_dvc         \"id-smime-aa-dvcs-dvc\"\n#define NID_id_smime_aa_dvcs_dvc                240\n#define OBJ_id_smime_aa_dvcs_dvc                OBJ_id_smime_aa,29L\n\n#define SN_id_smime_aa_signingCertificateV2             \"id-smime-aa-signingCertificateV2\"\n#define NID_id_smime_aa_signingCertificateV2            1086\n#define OBJ_id_smime_aa_signingCertificateV2            OBJ_id_smime_aa,47L\n\n#define SN_id_smime_alg_ESDHwith3DES            \"id-smime-alg-ESDHwith3DES\"\n#define NID_id_smime_alg_ESDHwith3DES           241\n#define OBJ_id_smime_alg_ESDHwith3DES           OBJ_id_smime_alg,1L\n\n#define SN_id_smime_alg_ESDHwithRC2             \"id-smime-alg-ESDHwithRC2\"\n#define NID_id_smime_alg_ESDHwithRC2            242\n#define OBJ_id_smime_alg_ESDHwithRC2            OBJ_id_smime_alg,2L\n\n#define SN_id_smime_alg_3DESwrap                \"id-smime-alg-3DESwrap\"\n#define NID_id_smime_alg_3DESwrap               243\n#define OBJ_id_smime_alg_3DESwrap               OBJ_id_smime_alg,3L\n\n#define SN_id_smime_alg_RC2wrap         \"id-smime-alg-RC2wrap\"\n#define NID_id_smime_alg_RC2wrap                244\n#define OBJ_id_smime_alg_RC2wrap                OBJ_id_smime_alg,4L\n\n#define SN_id_smime_alg_ESDH            \"id-smime-alg-ESDH\"\n#define NID_id_smime_alg_ESDH           245\n#define OBJ_id_smime_alg_ESDH           OBJ_id_smime_alg,5L\n\n#define SN_id_smime_alg_CMS3DESwrap             \"id-smime-alg-CMS3DESwrap\"\n#define NID_id_smime_alg_CMS3DESwrap            246\n#define OBJ_id_smime_alg_CMS3DESwrap            OBJ_id_smime_alg,6L\n\n#define SN_id_smime_alg_CMSRC2wrap              \"id-smime-alg-CMSRC2wrap\"\n#define NID_id_smime_alg_CMSRC2wrap             247\n#define OBJ_id_smime_alg_CMSRC2wrap             OBJ_id_smime_alg,7L\n\n#define SN_id_alg_PWRI_KEK              \"id-alg-PWRI-KEK\"\n#define NID_id_alg_PWRI_KEK             893\n#define OBJ_id_alg_PWRI_KEK             OBJ_id_smime_alg,9L\n\n#define SN_id_smime_cd_ldap             \"id-smime-cd-ldap\"\n#define NID_id_smime_cd_ldap            248\n#define OBJ_id_smime_cd_ldap            OBJ_id_smime_cd,1L\n\n#define SN_id_smime_spq_ets_sqt_uri             \"id-smime-spq-ets-sqt-uri\"\n#define NID_id_smime_spq_ets_sqt_uri            249\n#define OBJ_id_smime_spq_ets_sqt_uri            OBJ_id_smime_spq,1L\n\n#define SN_id_smime_spq_ets_sqt_unotice         \"id-smime-spq-ets-sqt-unotice\"\n#define NID_id_smime_spq_ets_sqt_unotice                250\n#define OBJ_id_smime_spq_ets_sqt_unotice                OBJ_id_smime_spq,2L\n\n#define SN_id_smime_cti_ets_proofOfOrigin               \"id-smime-cti-ets-proofOfOrigin\"\n#define NID_id_smime_cti_ets_proofOfOrigin              251\n#define OBJ_id_smime_cti_ets_proofOfOrigin              OBJ_id_smime_cti,1L\n\n#define SN_id_smime_cti_ets_proofOfReceipt              \"id-smime-cti-ets-proofOfReceipt\"\n#define NID_id_smime_cti_ets_proofOfReceipt             252\n#define OBJ_id_smime_cti_ets_proofOfReceipt             OBJ_id_smime_cti,2L\n\n#define SN_id_smime_cti_ets_proofOfDelivery             \"id-smime-cti-ets-proofOfDelivery\"\n#define NID_id_smime_cti_ets_proofOfDelivery            253\n#define OBJ_id_smime_cti_ets_proofOfDelivery            OBJ_id_smime_cti,3L\n\n#define SN_id_smime_cti_ets_proofOfSender               \"id-smime-cti-ets-proofOfSender\"\n#define NID_id_smime_cti_ets_proofOfSender              254\n#define OBJ_id_smime_cti_ets_proofOfSender              OBJ_id_smime_cti,4L\n\n#define SN_id_smime_cti_ets_proofOfApproval             \"id-smime-cti-ets-proofOfApproval\"\n#define NID_id_smime_cti_ets_proofOfApproval            255\n#define OBJ_id_smime_cti_ets_proofOfApproval            OBJ_id_smime_cti,5L\n\n#define SN_id_smime_cti_ets_proofOfCreation             \"id-smime-cti-ets-proofOfCreation\"\n#define NID_id_smime_cti_ets_proofOfCreation            256\n#define OBJ_id_smime_cti_ets_proofOfCreation            OBJ_id_smime_cti,6L\n\n#define LN_friendlyName         \"friendlyName\"\n#define NID_friendlyName                156\n#define OBJ_friendlyName                OBJ_pkcs9,20L\n\n#define LN_localKeyID           \"localKeyID\"\n#define NID_localKeyID          157\n#define OBJ_localKeyID          OBJ_pkcs9,21L\n\n#define SN_ms_csp_name          \"CSPName\"\n#define LN_ms_csp_name          \"Microsoft CSP Name\"\n#define NID_ms_csp_name         417\n#define OBJ_ms_csp_name         1L,3L,6L,1L,4L,1L,311L,17L,1L\n\n#define SN_LocalKeySet          \"LocalKeySet\"\n#define LN_LocalKeySet          \"Microsoft Local Key set\"\n#define NID_LocalKeySet         856\n#define OBJ_LocalKeySet         1L,3L,6L,1L,4L,1L,311L,17L,2L\n\n#define OBJ_certTypes           OBJ_pkcs9,22L\n\n#define LN_x509Certificate              \"x509Certificate\"\n#define NID_x509Certificate             158\n#define OBJ_x509Certificate             OBJ_certTypes,1L\n\n#define LN_sdsiCertificate              \"sdsiCertificate\"\n#define NID_sdsiCertificate             159\n#define OBJ_sdsiCertificate             OBJ_certTypes,2L\n\n#define OBJ_crlTypes            OBJ_pkcs9,23L\n\n#define LN_x509Crl              \"x509Crl\"\n#define NID_x509Crl             160\n#define OBJ_x509Crl             OBJ_crlTypes,1L\n\n#define OBJ_pkcs12              OBJ_pkcs,12L\n\n#define OBJ_pkcs12_pbeids               OBJ_pkcs12,1L\n\n#define SN_pbe_WithSHA1And128BitRC4             \"PBE-SHA1-RC4-128\"\n#define LN_pbe_WithSHA1And128BitRC4             \"pbeWithSHA1And128BitRC4\"\n#define NID_pbe_WithSHA1And128BitRC4            144\n#define OBJ_pbe_WithSHA1And128BitRC4            OBJ_pkcs12_pbeids,1L\n\n#define SN_pbe_WithSHA1And40BitRC4              \"PBE-SHA1-RC4-40\"\n#define LN_pbe_WithSHA1And40BitRC4              \"pbeWithSHA1And40BitRC4\"\n#define NID_pbe_WithSHA1And40BitRC4             145\n#define OBJ_pbe_WithSHA1And40BitRC4             OBJ_pkcs12_pbeids,2L\n\n#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC           \"PBE-SHA1-3DES\"\n#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC           \"pbeWithSHA1And3-KeyTripleDES-CBC\"\n#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC          146\n#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC          OBJ_pkcs12_pbeids,3L\n\n#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC           \"PBE-SHA1-2DES\"\n#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC           \"pbeWithSHA1And2-KeyTripleDES-CBC\"\n#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC          147\n#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC          OBJ_pkcs12_pbeids,4L\n\n#define SN_pbe_WithSHA1And128BitRC2_CBC         \"PBE-SHA1-RC2-128\"\n#define LN_pbe_WithSHA1And128BitRC2_CBC         \"pbeWithSHA1And128BitRC2-CBC\"\n#define NID_pbe_WithSHA1And128BitRC2_CBC                148\n#define OBJ_pbe_WithSHA1And128BitRC2_CBC                OBJ_pkcs12_pbeids,5L\n\n#define SN_pbe_WithSHA1And40BitRC2_CBC          \"PBE-SHA1-RC2-40\"\n#define LN_pbe_WithSHA1And40BitRC2_CBC          \"pbeWithSHA1And40BitRC2-CBC\"\n#define NID_pbe_WithSHA1And40BitRC2_CBC         149\n#define OBJ_pbe_WithSHA1And40BitRC2_CBC         OBJ_pkcs12_pbeids,6L\n\n#define OBJ_pkcs12_Version1             OBJ_pkcs12,10L\n\n#define OBJ_pkcs12_BagIds               OBJ_pkcs12_Version1,1L\n\n#define LN_keyBag               \"keyBag\"\n#define NID_keyBag              150\n#define OBJ_keyBag              OBJ_pkcs12_BagIds,1L\n\n#define LN_pkcs8ShroudedKeyBag          \"pkcs8ShroudedKeyBag\"\n#define NID_pkcs8ShroudedKeyBag         151\n#define OBJ_pkcs8ShroudedKeyBag         OBJ_pkcs12_BagIds,2L\n\n#define LN_certBag              \"certBag\"\n#define NID_certBag             152\n#define OBJ_certBag             OBJ_pkcs12_BagIds,3L\n\n#define LN_crlBag               \"crlBag\"\n#define NID_crlBag              153\n#define OBJ_crlBag              OBJ_pkcs12_BagIds,4L\n\n#define LN_secretBag            \"secretBag\"\n#define NID_secretBag           154\n#define OBJ_secretBag           OBJ_pkcs12_BagIds,5L\n\n#define LN_safeContentsBag              \"safeContentsBag\"\n#define NID_safeContentsBag             155\n#define OBJ_safeContentsBag             OBJ_pkcs12_BagIds,6L\n\n#define SN_md2          \"MD2\"\n#define LN_md2          \"md2\"\n#define NID_md2         3\n#define OBJ_md2         OBJ_rsadsi,2L,2L\n\n#define SN_md4          \"MD4\"\n#define LN_md4          \"md4\"\n#define NID_md4         257\n#define OBJ_md4         OBJ_rsadsi,2L,4L\n\n#define SN_md5          \"MD5\"\n#define LN_md5          \"md5\"\n#define NID_md5         4\n#define OBJ_md5         OBJ_rsadsi,2L,5L\n\n#define SN_md5_sha1             \"MD5-SHA1\"\n#define LN_md5_sha1             \"md5-sha1\"\n#define NID_md5_sha1            114\n\n#define LN_hmacWithMD5          \"hmacWithMD5\"\n#define NID_hmacWithMD5         797\n#define OBJ_hmacWithMD5         OBJ_rsadsi,2L,6L\n\n#define LN_hmacWithSHA1         \"hmacWithSHA1\"\n#define NID_hmacWithSHA1                163\n#define OBJ_hmacWithSHA1                OBJ_rsadsi,2L,7L\n\n#define SN_sm2          \"SM2\"\n#define LN_sm2          \"sm2\"\n#define NID_sm2         1172\n#define OBJ_sm2         OBJ_sm_scheme,301L\n\n#define SN_sm3          \"SM3\"\n#define LN_sm3          \"sm3\"\n#define NID_sm3         1143\n#define OBJ_sm3         OBJ_sm_scheme,401L\n\n#define SN_sm3WithRSAEncryption         \"RSA-SM3\"\n#define LN_sm3WithRSAEncryption         \"sm3WithRSAEncryption\"\n#define NID_sm3WithRSAEncryption                1144\n#define OBJ_sm3WithRSAEncryption                OBJ_sm_scheme,504L\n\n#define LN_hmacWithSHA224               \"hmacWithSHA224\"\n#define NID_hmacWithSHA224              798\n#define OBJ_hmacWithSHA224              OBJ_rsadsi,2L,8L\n\n#define LN_hmacWithSHA256               \"hmacWithSHA256\"\n#define NID_hmacWithSHA256              799\n#define OBJ_hmacWithSHA256              OBJ_rsadsi,2L,9L\n\n#define LN_hmacWithSHA384               \"hmacWithSHA384\"\n#define NID_hmacWithSHA384              800\n#define OBJ_hmacWithSHA384              OBJ_rsadsi,2L,10L\n\n#define LN_hmacWithSHA512               \"hmacWithSHA512\"\n#define NID_hmacWithSHA512              801\n#define OBJ_hmacWithSHA512              OBJ_rsadsi,2L,11L\n\n#define LN_hmacWithSHA512_224           \"hmacWithSHA512-224\"\n#define NID_hmacWithSHA512_224          1193\n#define OBJ_hmacWithSHA512_224          OBJ_rsadsi,2L,12L\n\n#define LN_hmacWithSHA512_256           \"hmacWithSHA512-256\"\n#define NID_hmacWithSHA512_256          1194\n#define OBJ_hmacWithSHA512_256          OBJ_rsadsi,2L,13L\n\n#define SN_rc2_cbc              \"RC2-CBC\"\n#define LN_rc2_cbc              \"rc2-cbc\"\n#define NID_rc2_cbc             37\n#define OBJ_rc2_cbc             OBJ_rsadsi,3L,2L\n\n#define SN_rc2_ecb              \"RC2-ECB\"\n#define LN_rc2_ecb              \"rc2-ecb\"\n#define NID_rc2_ecb             38\n\n#define SN_rc2_cfb64            \"RC2-CFB\"\n#define LN_rc2_cfb64            \"rc2-cfb\"\n#define NID_rc2_cfb64           39\n\n#define SN_rc2_ofb64            \"RC2-OFB\"\n#define LN_rc2_ofb64            \"rc2-ofb\"\n#define NID_rc2_ofb64           40\n\n#define SN_rc2_40_cbc           \"RC2-40-CBC\"\n#define LN_rc2_40_cbc           \"rc2-40-cbc\"\n#define NID_rc2_40_cbc          98\n\n#define SN_rc2_64_cbc           \"RC2-64-CBC\"\n#define LN_rc2_64_cbc           \"rc2-64-cbc\"\n#define NID_rc2_64_cbc          166\n\n#define SN_rc4          \"RC4\"\n#define LN_rc4          \"rc4\"\n#define NID_rc4         5\n#define OBJ_rc4         OBJ_rsadsi,3L,4L\n\n#define SN_rc4_40               \"RC4-40\"\n#define LN_rc4_40               \"rc4-40\"\n#define NID_rc4_40              97\n\n#define SN_des_ede3_cbc         \"DES-EDE3-CBC\"\n#define LN_des_ede3_cbc         \"des-ede3-cbc\"\n#define NID_des_ede3_cbc                44\n#define OBJ_des_ede3_cbc                OBJ_rsadsi,3L,7L\n\n#define SN_rc5_cbc              \"RC5-CBC\"\n#define LN_rc5_cbc              \"rc5-cbc\"\n#define NID_rc5_cbc             120\n#define OBJ_rc5_cbc             OBJ_rsadsi,3L,8L\n\n#define SN_rc5_ecb              \"RC5-ECB\"\n#define LN_rc5_ecb              \"rc5-ecb\"\n#define NID_rc5_ecb             121\n\n#define SN_rc5_cfb64            \"RC5-CFB\"\n#define LN_rc5_cfb64            \"rc5-cfb\"\n#define NID_rc5_cfb64           122\n\n#define SN_rc5_ofb64            \"RC5-OFB\"\n#define LN_rc5_ofb64            \"rc5-ofb\"\n#define NID_rc5_ofb64           123\n\n#define SN_ms_ext_req           \"msExtReq\"\n#define LN_ms_ext_req           \"Microsoft Extension Request\"\n#define NID_ms_ext_req          171\n#define OBJ_ms_ext_req          1L,3L,6L,1L,4L,1L,311L,2L,1L,14L\n\n#define SN_ms_code_ind          \"msCodeInd\"\n#define LN_ms_code_ind          \"Microsoft Individual Code Signing\"\n#define NID_ms_code_ind         134\n#define OBJ_ms_code_ind         1L,3L,6L,1L,4L,1L,311L,2L,1L,21L\n\n#define SN_ms_code_com          \"msCodeCom\"\n#define LN_ms_code_com          \"Microsoft Commercial Code Signing\"\n#define NID_ms_code_com         135\n#define OBJ_ms_code_com         1L,3L,6L,1L,4L,1L,311L,2L,1L,22L\n\n#define SN_ms_ctl_sign          \"msCTLSign\"\n#define LN_ms_ctl_sign          \"Microsoft Trust List Signing\"\n#define NID_ms_ctl_sign         136\n#define OBJ_ms_ctl_sign         1L,3L,6L,1L,4L,1L,311L,10L,3L,1L\n\n#define SN_ms_sgc               \"msSGC\"\n#define LN_ms_sgc               \"Microsoft Server Gated Crypto\"\n#define NID_ms_sgc              137\n#define OBJ_ms_sgc              1L,3L,6L,1L,4L,1L,311L,10L,3L,3L\n\n#define SN_ms_efs               \"msEFS\"\n#define LN_ms_efs               \"Microsoft Encrypted File System\"\n#define NID_ms_efs              138\n#define OBJ_ms_efs              1L,3L,6L,1L,4L,1L,311L,10L,3L,4L\n\n#define SN_ms_smartcard_login           \"msSmartcardLogin\"\n#define LN_ms_smartcard_login           \"Microsoft Smartcard Login\"\n#define NID_ms_smartcard_login          648\n#define OBJ_ms_smartcard_login          1L,3L,6L,1L,4L,1L,311L,20L,2L,2L\n\n#define SN_ms_upn               \"msUPN\"\n#define LN_ms_upn               \"Microsoft User Principal Name\"\n#define NID_ms_upn              649\n#define OBJ_ms_upn              1L,3L,6L,1L,4L,1L,311L,20L,2L,3L\n\n#define SN_idea_cbc             \"IDEA-CBC\"\n#define LN_idea_cbc             \"idea-cbc\"\n#define NID_idea_cbc            34\n#define OBJ_idea_cbc            1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L\n\n#define SN_idea_ecb             \"IDEA-ECB\"\n#define LN_idea_ecb             \"idea-ecb\"\n#define NID_idea_ecb            36\n\n#define SN_idea_cfb64           \"IDEA-CFB\"\n#define LN_idea_cfb64           \"idea-cfb\"\n#define NID_idea_cfb64          35\n\n#define SN_idea_ofb64           \"IDEA-OFB\"\n#define LN_idea_ofb64           \"idea-ofb\"\n#define NID_idea_ofb64          46\n\n#define SN_bf_cbc               \"BF-CBC\"\n#define LN_bf_cbc               \"bf-cbc\"\n#define NID_bf_cbc              91\n#define OBJ_bf_cbc              1L,3L,6L,1L,4L,1L,3029L,1L,2L\n\n#define SN_bf_ecb               \"BF-ECB\"\n#define LN_bf_ecb               \"bf-ecb\"\n#define NID_bf_ecb              92\n\n#define SN_bf_cfb64             \"BF-CFB\"\n#define LN_bf_cfb64             \"bf-cfb\"\n#define NID_bf_cfb64            93\n\n#define SN_bf_ofb64             \"BF-OFB\"\n#define LN_bf_ofb64             \"bf-ofb\"\n#define NID_bf_ofb64            94\n\n#define SN_id_pkix              \"PKIX\"\n#define NID_id_pkix             127\n#define OBJ_id_pkix             1L,3L,6L,1L,5L,5L,7L\n\n#define SN_id_pkix_mod          \"id-pkix-mod\"\n#define NID_id_pkix_mod         258\n#define OBJ_id_pkix_mod         OBJ_id_pkix,0L\n\n#define SN_id_pe                \"id-pe\"\n#define NID_id_pe               175\n#define OBJ_id_pe               OBJ_id_pkix,1L\n\n#define SN_id_qt                \"id-qt\"\n#define NID_id_qt               259\n#define OBJ_id_qt               OBJ_id_pkix,2L\n\n#define SN_id_kp                \"id-kp\"\n#define NID_id_kp               128\n#define OBJ_id_kp               OBJ_id_pkix,3L\n\n#define SN_id_it                \"id-it\"\n#define NID_id_it               260\n#define OBJ_id_it               OBJ_id_pkix,4L\n\n#define SN_id_pkip              \"id-pkip\"\n#define NID_id_pkip             261\n#define OBJ_id_pkip             OBJ_id_pkix,5L\n\n#define SN_id_alg               \"id-alg\"\n#define NID_id_alg              262\n#define OBJ_id_alg              OBJ_id_pkix,6L\n\n#define SN_id_cmc               \"id-cmc\"\n#define NID_id_cmc              263\n#define OBJ_id_cmc              OBJ_id_pkix,7L\n\n#define SN_id_on                \"id-on\"\n#define NID_id_on               264\n#define OBJ_id_on               OBJ_id_pkix,8L\n\n#define SN_id_pda               \"id-pda\"\n#define NID_id_pda              265\n#define OBJ_id_pda              OBJ_id_pkix,9L\n\n#define SN_id_aca               \"id-aca\"\n#define NID_id_aca              266\n#define OBJ_id_aca              OBJ_id_pkix,10L\n\n#define SN_id_qcs               \"id-qcs\"\n#define NID_id_qcs              267\n#define OBJ_id_qcs              OBJ_id_pkix,11L\n\n#define SN_id_cct               \"id-cct\"\n#define NID_id_cct              268\n#define OBJ_id_cct              OBJ_id_pkix,12L\n\n#define SN_id_ppl               \"id-ppl\"\n#define NID_id_ppl              662\n#define OBJ_id_ppl              OBJ_id_pkix,21L\n\n#define SN_id_ad                \"id-ad\"\n#define NID_id_ad               176\n#define OBJ_id_ad               OBJ_id_pkix,48L\n\n#define SN_id_pkix1_explicit_88         \"id-pkix1-explicit-88\"\n#define NID_id_pkix1_explicit_88                269\n#define OBJ_id_pkix1_explicit_88                OBJ_id_pkix_mod,1L\n\n#define SN_id_pkix1_implicit_88         \"id-pkix1-implicit-88\"\n#define NID_id_pkix1_implicit_88                270\n#define OBJ_id_pkix1_implicit_88                OBJ_id_pkix_mod,2L\n\n#define SN_id_pkix1_explicit_93         \"id-pkix1-explicit-93\"\n#define NID_id_pkix1_explicit_93                271\n#define OBJ_id_pkix1_explicit_93                OBJ_id_pkix_mod,3L\n\n#define SN_id_pkix1_implicit_93         \"id-pkix1-implicit-93\"\n#define NID_id_pkix1_implicit_93                272\n#define OBJ_id_pkix1_implicit_93                OBJ_id_pkix_mod,4L\n\n#define SN_id_mod_crmf          \"id-mod-crmf\"\n#define NID_id_mod_crmf         273\n#define OBJ_id_mod_crmf         OBJ_id_pkix_mod,5L\n\n#define SN_id_mod_cmc           \"id-mod-cmc\"\n#define NID_id_mod_cmc          274\n#define OBJ_id_mod_cmc          OBJ_id_pkix_mod,6L\n\n#define SN_id_mod_kea_profile_88                \"id-mod-kea-profile-88\"\n#define NID_id_mod_kea_profile_88               275\n#define OBJ_id_mod_kea_profile_88               OBJ_id_pkix_mod,7L\n\n#define SN_id_mod_kea_profile_93                \"id-mod-kea-profile-93\"\n#define NID_id_mod_kea_profile_93               276\n#define OBJ_id_mod_kea_profile_93               OBJ_id_pkix_mod,8L\n\n#define SN_id_mod_cmp           \"id-mod-cmp\"\n#define NID_id_mod_cmp          277\n#define OBJ_id_mod_cmp          OBJ_id_pkix_mod,9L\n\n#define SN_id_mod_qualified_cert_88             \"id-mod-qualified-cert-88\"\n#define NID_id_mod_qualified_cert_88            278\n#define OBJ_id_mod_qualified_cert_88            OBJ_id_pkix_mod,10L\n\n#define SN_id_mod_qualified_cert_93             \"id-mod-qualified-cert-93\"\n#define NID_id_mod_qualified_cert_93            279\n#define OBJ_id_mod_qualified_cert_93            OBJ_id_pkix_mod,11L\n\n#define SN_id_mod_attribute_cert                \"id-mod-attribute-cert\"\n#define NID_id_mod_attribute_cert               280\n#define OBJ_id_mod_attribute_cert               OBJ_id_pkix_mod,12L\n\n#define SN_id_mod_timestamp_protocol            \"id-mod-timestamp-protocol\"\n#define NID_id_mod_timestamp_protocol           281\n#define OBJ_id_mod_timestamp_protocol           OBJ_id_pkix_mod,13L\n\n#define SN_id_mod_ocsp          \"id-mod-ocsp\"\n#define NID_id_mod_ocsp         282\n#define OBJ_id_mod_ocsp         OBJ_id_pkix_mod,14L\n\n#define SN_id_mod_dvcs          \"id-mod-dvcs\"\n#define NID_id_mod_dvcs         283\n#define OBJ_id_mod_dvcs         OBJ_id_pkix_mod,15L\n\n#define SN_id_mod_cmp2000               \"id-mod-cmp2000\"\n#define NID_id_mod_cmp2000              284\n#define OBJ_id_mod_cmp2000              OBJ_id_pkix_mod,16L\n\n#define SN_info_access          \"authorityInfoAccess\"\n#define LN_info_access          \"Authority Information Access\"\n#define NID_info_access         177\n#define OBJ_info_access         OBJ_id_pe,1L\n\n#define SN_biometricInfo                \"biometricInfo\"\n#define LN_biometricInfo                \"Biometric Info\"\n#define NID_biometricInfo               285\n#define OBJ_biometricInfo               OBJ_id_pe,2L\n\n#define SN_qcStatements         \"qcStatements\"\n#define NID_qcStatements                286\n#define OBJ_qcStatements                OBJ_id_pe,3L\n\n#define SN_ac_auditEntity               \"ac-auditEntity\"\n#define NID_ac_auditEntity              287\n#define OBJ_ac_auditEntity              OBJ_id_pe,4L\n\n#define SN_ac_targeting         \"ac-targeting\"\n#define NID_ac_targeting                288\n#define OBJ_ac_targeting                OBJ_id_pe,5L\n\n#define SN_aaControls           \"aaControls\"\n#define NID_aaControls          289\n#define OBJ_aaControls          OBJ_id_pe,6L\n\n#define SN_sbgp_ipAddrBlock             \"sbgp-ipAddrBlock\"\n#define NID_sbgp_ipAddrBlock            290\n#define OBJ_sbgp_ipAddrBlock            OBJ_id_pe,7L\n\n#define SN_sbgp_autonomousSysNum                \"sbgp-autonomousSysNum\"\n#define NID_sbgp_autonomousSysNum               291\n#define OBJ_sbgp_autonomousSysNum               OBJ_id_pe,8L\n\n#define SN_sbgp_routerIdentifier                \"sbgp-routerIdentifier\"\n#define NID_sbgp_routerIdentifier               292\n#define OBJ_sbgp_routerIdentifier               OBJ_id_pe,9L\n\n#define SN_ac_proxying          \"ac-proxying\"\n#define NID_ac_proxying         397\n#define OBJ_ac_proxying         OBJ_id_pe,10L\n\n#define SN_sinfo_access         \"subjectInfoAccess\"\n#define LN_sinfo_access         \"Subject Information Access\"\n#define NID_sinfo_access                398\n#define OBJ_sinfo_access                OBJ_id_pe,11L\n\n#define SN_proxyCertInfo                \"proxyCertInfo\"\n#define LN_proxyCertInfo                \"Proxy Certificate Information\"\n#define NID_proxyCertInfo               663\n#define OBJ_proxyCertInfo               OBJ_id_pe,14L\n\n#define SN_tlsfeature           \"tlsfeature\"\n#define LN_tlsfeature           \"TLS Feature\"\n#define NID_tlsfeature          1020\n#define OBJ_tlsfeature          OBJ_id_pe,24L\n\n#define SN_id_qt_cps            \"id-qt-cps\"\n#define LN_id_qt_cps            \"Policy Qualifier CPS\"\n#define NID_id_qt_cps           164\n#define OBJ_id_qt_cps           OBJ_id_qt,1L\n\n#define SN_id_qt_unotice                \"id-qt-unotice\"\n#define LN_id_qt_unotice                \"Policy Qualifier User Notice\"\n#define NID_id_qt_unotice               165\n#define OBJ_id_qt_unotice               OBJ_id_qt,2L\n\n#define SN_textNotice           \"textNotice\"\n#define NID_textNotice          293\n#define OBJ_textNotice          OBJ_id_qt,3L\n\n#define SN_server_auth          \"serverAuth\"\n#define LN_server_auth          \"TLS Web Server Authentication\"\n#define NID_server_auth         129\n#define OBJ_server_auth         OBJ_id_kp,1L\n\n#define SN_client_auth          \"clientAuth\"\n#define LN_client_auth          \"TLS Web Client Authentication\"\n#define NID_client_auth         130\n#define OBJ_client_auth         OBJ_id_kp,2L\n\n#define SN_code_sign            \"codeSigning\"\n#define LN_code_sign            \"Code Signing\"\n#define NID_code_sign           131\n#define OBJ_code_sign           OBJ_id_kp,3L\n\n#define SN_email_protect                \"emailProtection\"\n#define LN_email_protect                \"E-mail Protection\"\n#define NID_email_protect               132\n#define OBJ_email_protect               OBJ_id_kp,4L\n\n#define SN_ipsecEndSystem               \"ipsecEndSystem\"\n#define LN_ipsecEndSystem               \"IPSec End System\"\n#define NID_ipsecEndSystem              294\n#define OBJ_ipsecEndSystem              OBJ_id_kp,5L\n\n#define SN_ipsecTunnel          \"ipsecTunnel\"\n#define LN_ipsecTunnel          \"IPSec Tunnel\"\n#define NID_ipsecTunnel         295\n#define OBJ_ipsecTunnel         OBJ_id_kp,6L\n\n#define SN_ipsecUser            \"ipsecUser\"\n#define LN_ipsecUser            \"IPSec User\"\n#define NID_ipsecUser           296\n#define OBJ_ipsecUser           OBJ_id_kp,7L\n\n#define SN_time_stamp           \"timeStamping\"\n#define LN_time_stamp           \"Time Stamping\"\n#define NID_time_stamp          133\n#define OBJ_time_stamp          OBJ_id_kp,8L\n\n#define SN_OCSP_sign            \"OCSPSigning\"\n#define LN_OCSP_sign            \"OCSP Signing\"\n#define NID_OCSP_sign           180\n#define OBJ_OCSP_sign           OBJ_id_kp,9L\n\n#define SN_dvcs         \"DVCS\"\n#define LN_dvcs         \"dvcs\"\n#define NID_dvcs                297\n#define OBJ_dvcs                OBJ_id_kp,10L\n\n#define SN_ipsec_IKE            \"ipsecIKE\"\n#define LN_ipsec_IKE            \"ipsec Internet Key Exchange\"\n#define NID_ipsec_IKE           1022\n#define OBJ_ipsec_IKE           OBJ_id_kp,17L\n\n#define SN_capwapAC             \"capwapAC\"\n#define LN_capwapAC             \"Ctrl/provision WAP Access\"\n#define NID_capwapAC            1023\n#define OBJ_capwapAC            OBJ_id_kp,18L\n\n#define SN_capwapWTP            \"capwapWTP\"\n#define LN_capwapWTP            \"Ctrl/Provision WAP Termination\"\n#define NID_capwapWTP           1024\n#define OBJ_capwapWTP           OBJ_id_kp,19L\n\n#define SN_sshClient            \"secureShellClient\"\n#define LN_sshClient            \"SSH Client\"\n#define NID_sshClient           1025\n#define OBJ_sshClient           OBJ_id_kp,21L\n\n#define SN_sshServer            \"secureShellServer\"\n#define LN_sshServer            \"SSH Server\"\n#define NID_sshServer           1026\n#define OBJ_sshServer           OBJ_id_kp,22L\n\n#define SN_sendRouter           \"sendRouter\"\n#define LN_sendRouter           \"Send Router\"\n#define NID_sendRouter          1027\n#define OBJ_sendRouter          OBJ_id_kp,23L\n\n#define SN_sendProxiedRouter            \"sendProxiedRouter\"\n#define LN_sendProxiedRouter            \"Send Proxied Router\"\n#define NID_sendProxiedRouter           1028\n#define OBJ_sendProxiedRouter           OBJ_id_kp,24L\n\n#define SN_sendOwner            \"sendOwner\"\n#define LN_sendOwner            \"Send Owner\"\n#define NID_sendOwner           1029\n#define OBJ_sendOwner           OBJ_id_kp,25L\n\n#define SN_sendProxiedOwner             \"sendProxiedOwner\"\n#define LN_sendProxiedOwner             \"Send Proxied Owner\"\n#define NID_sendProxiedOwner            1030\n#define OBJ_sendProxiedOwner            OBJ_id_kp,26L\n\n#define SN_cmcCA                \"cmcCA\"\n#define LN_cmcCA                \"CMC Certificate Authority\"\n#define NID_cmcCA               1131\n#define OBJ_cmcCA               OBJ_id_kp,27L\n\n#define SN_cmcRA                \"cmcRA\"\n#define LN_cmcRA                \"CMC Registration Authority\"\n#define NID_cmcRA               1132\n#define OBJ_cmcRA               OBJ_id_kp,28L\n\n#define SN_id_it_caProtEncCert          \"id-it-caProtEncCert\"\n#define NID_id_it_caProtEncCert         298\n#define OBJ_id_it_caProtEncCert         OBJ_id_it,1L\n\n#define SN_id_it_signKeyPairTypes               \"id-it-signKeyPairTypes\"\n#define NID_id_it_signKeyPairTypes              299\n#define OBJ_id_it_signKeyPairTypes              OBJ_id_it,2L\n\n#define SN_id_it_encKeyPairTypes                \"id-it-encKeyPairTypes\"\n#define NID_id_it_encKeyPairTypes               300\n#define OBJ_id_it_encKeyPairTypes               OBJ_id_it,3L\n\n#define SN_id_it_preferredSymmAlg               \"id-it-preferredSymmAlg\"\n#define NID_id_it_preferredSymmAlg              301\n#define OBJ_id_it_preferredSymmAlg              OBJ_id_it,4L\n\n#define SN_id_it_caKeyUpdateInfo                \"id-it-caKeyUpdateInfo\"\n#define NID_id_it_caKeyUpdateInfo               302\n#define OBJ_id_it_caKeyUpdateInfo               OBJ_id_it,5L\n\n#define SN_id_it_currentCRL             \"id-it-currentCRL\"\n#define NID_id_it_currentCRL            303\n#define OBJ_id_it_currentCRL            OBJ_id_it,6L\n\n#define SN_id_it_unsupportedOIDs                \"id-it-unsupportedOIDs\"\n#define NID_id_it_unsupportedOIDs               304\n#define OBJ_id_it_unsupportedOIDs               OBJ_id_it,7L\n\n#define SN_id_it_subscriptionRequest            \"id-it-subscriptionRequest\"\n#define NID_id_it_subscriptionRequest           305\n#define OBJ_id_it_subscriptionRequest           OBJ_id_it,8L\n\n#define SN_id_it_subscriptionResponse           \"id-it-subscriptionResponse\"\n#define NID_id_it_subscriptionResponse          306\n#define OBJ_id_it_subscriptionResponse          OBJ_id_it,9L\n\n#define SN_id_it_keyPairParamReq                \"id-it-keyPairParamReq\"\n#define NID_id_it_keyPairParamReq               307\n#define OBJ_id_it_keyPairParamReq               OBJ_id_it,10L\n\n#define SN_id_it_keyPairParamRep                \"id-it-keyPairParamRep\"\n#define NID_id_it_keyPairParamRep               308\n#define OBJ_id_it_keyPairParamRep               OBJ_id_it,11L\n\n#define SN_id_it_revPassphrase          \"id-it-revPassphrase\"\n#define NID_id_it_revPassphrase         309\n#define OBJ_id_it_revPassphrase         OBJ_id_it,12L\n\n#define SN_id_it_implicitConfirm                \"id-it-implicitConfirm\"\n#define NID_id_it_implicitConfirm               310\n#define OBJ_id_it_implicitConfirm               OBJ_id_it,13L\n\n#define SN_id_it_confirmWaitTime                \"id-it-confirmWaitTime\"\n#define NID_id_it_confirmWaitTime               311\n#define OBJ_id_it_confirmWaitTime               OBJ_id_it,14L\n\n#define SN_id_it_origPKIMessage         \"id-it-origPKIMessage\"\n#define NID_id_it_origPKIMessage                312\n#define OBJ_id_it_origPKIMessage                OBJ_id_it,15L\n\n#define SN_id_it_suppLangTags           \"id-it-suppLangTags\"\n#define NID_id_it_suppLangTags          784\n#define OBJ_id_it_suppLangTags          OBJ_id_it,16L\n\n#define SN_id_regCtrl           \"id-regCtrl\"\n#define NID_id_regCtrl          313\n#define OBJ_id_regCtrl          OBJ_id_pkip,1L\n\n#define SN_id_regInfo           \"id-regInfo\"\n#define NID_id_regInfo          314\n#define OBJ_id_regInfo          OBJ_id_pkip,2L\n\n#define SN_id_regCtrl_regToken          \"id-regCtrl-regToken\"\n#define NID_id_regCtrl_regToken         315\n#define OBJ_id_regCtrl_regToken         OBJ_id_regCtrl,1L\n\n#define SN_id_regCtrl_authenticator             \"id-regCtrl-authenticator\"\n#define NID_id_regCtrl_authenticator            316\n#define OBJ_id_regCtrl_authenticator            OBJ_id_regCtrl,2L\n\n#define SN_id_regCtrl_pkiPublicationInfo                \"id-regCtrl-pkiPublicationInfo\"\n#define NID_id_regCtrl_pkiPublicationInfo               317\n#define OBJ_id_regCtrl_pkiPublicationInfo               OBJ_id_regCtrl,3L\n\n#define SN_id_regCtrl_pkiArchiveOptions         \"id-regCtrl-pkiArchiveOptions\"\n#define NID_id_regCtrl_pkiArchiveOptions                318\n#define OBJ_id_regCtrl_pkiArchiveOptions                OBJ_id_regCtrl,4L\n\n#define SN_id_regCtrl_oldCertID         \"id-regCtrl-oldCertID\"\n#define NID_id_regCtrl_oldCertID                319\n#define OBJ_id_regCtrl_oldCertID                OBJ_id_regCtrl,5L\n\n#define SN_id_regCtrl_protocolEncrKey           \"id-regCtrl-protocolEncrKey\"\n#define NID_id_regCtrl_protocolEncrKey          320\n#define OBJ_id_regCtrl_protocolEncrKey          OBJ_id_regCtrl,6L\n\n#define SN_id_regInfo_utf8Pairs         \"id-regInfo-utf8Pairs\"\n#define NID_id_regInfo_utf8Pairs                321\n#define OBJ_id_regInfo_utf8Pairs                OBJ_id_regInfo,1L\n\n#define SN_id_regInfo_certReq           \"id-regInfo-certReq\"\n#define NID_id_regInfo_certReq          322\n#define OBJ_id_regInfo_certReq          OBJ_id_regInfo,2L\n\n#define SN_id_alg_des40         \"id-alg-des40\"\n#define NID_id_alg_des40                323\n#define OBJ_id_alg_des40                OBJ_id_alg,1L\n\n#define SN_id_alg_noSignature           \"id-alg-noSignature\"\n#define NID_id_alg_noSignature          324\n#define OBJ_id_alg_noSignature          OBJ_id_alg,2L\n\n#define SN_id_alg_dh_sig_hmac_sha1              \"id-alg-dh-sig-hmac-sha1\"\n#define NID_id_alg_dh_sig_hmac_sha1             325\n#define OBJ_id_alg_dh_sig_hmac_sha1             OBJ_id_alg,3L\n\n#define SN_id_alg_dh_pop                \"id-alg-dh-pop\"\n#define NID_id_alg_dh_pop               326\n#define OBJ_id_alg_dh_pop               OBJ_id_alg,4L\n\n#define SN_id_cmc_statusInfo            \"id-cmc-statusInfo\"\n#define NID_id_cmc_statusInfo           327\n#define OBJ_id_cmc_statusInfo           OBJ_id_cmc,1L\n\n#define SN_id_cmc_identification                \"id-cmc-identification\"\n#define NID_id_cmc_identification               328\n#define OBJ_id_cmc_identification               OBJ_id_cmc,2L\n\n#define SN_id_cmc_identityProof         \"id-cmc-identityProof\"\n#define NID_id_cmc_identityProof                329\n#define OBJ_id_cmc_identityProof                OBJ_id_cmc,3L\n\n#define SN_id_cmc_dataReturn            \"id-cmc-dataReturn\"\n#define NID_id_cmc_dataReturn           330\n#define OBJ_id_cmc_dataReturn           OBJ_id_cmc,4L\n\n#define SN_id_cmc_transactionId         \"id-cmc-transactionId\"\n#define NID_id_cmc_transactionId                331\n#define OBJ_id_cmc_transactionId                OBJ_id_cmc,5L\n\n#define SN_id_cmc_senderNonce           \"id-cmc-senderNonce\"\n#define NID_id_cmc_senderNonce          332\n#define OBJ_id_cmc_senderNonce          OBJ_id_cmc,6L\n\n#define SN_id_cmc_recipientNonce                \"id-cmc-recipientNonce\"\n#define NID_id_cmc_recipientNonce               333\n#define OBJ_id_cmc_recipientNonce               OBJ_id_cmc,7L\n\n#define SN_id_cmc_addExtensions         \"id-cmc-addExtensions\"\n#define NID_id_cmc_addExtensions                334\n#define OBJ_id_cmc_addExtensions                OBJ_id_cmc,8L\n\n#define SN_id_cmc_encryptedPOP          \"id-cmc-encryptedPOP\"\n#define NID_id_cmc_encryptedPOP         335\n#define OBJ_id_cmc_encryptedPOP         OBJ_id_cmc,9L\n\n#define SN_id_cmc_decryptedPOP          \"id-cmc-decryptedPOP\"\n#define NID_id_cmc_decryptedPOP         336\n#define OBJ_id_cmc_decryptedPOP         OBJ_id_cmc,10L\n\n#define SN_id_cmc_lraPOPWitness         \"id-cmc-lraPOPWitness\"\n#define NID_id_cmc_lraPOPWitness                337\n#define OBJ_id_cmc_lraPOPWitness                OBJ_id_cmc,11L\n\n#define SN_id_cmc_getCert               \"id-cmc-getCert\"\n#define NID_id_cmc_getCert              338\n#define OBJ_id_cmc_getCert              OBJ_id_cmc,15L\n\n#define SN_id_cmc_getCRL                \"id-cmc-getCRL\"\n#define NID_id_cmc_getCRL               339\n#define OBJ_id_cmc_getCRL               OBJ_id_cmc,16L\n\n#define SN_id_cmc_revokeRequest         \"id-cmc-revokeRequest\"\n#define NID_id_cmc_revokeRequest                340\n#define OBJ_id_cmc_revokeRequest                OBJ_id_cmc,17L\n\n#define SN_id_cmc_regInfo               \"id-cmc-regInfo\"\n#define NID_id_cmc_regInfo              341\n#define OBJ_id_cmc_regInfo              OBJ_id_cmc,18L\n\n#define SN_id_cmc_responseInfo          \"id-cmc-responseInfo\"\n#define NID_id_cmc_responseInfo         342\n#define OBJ_id_cmc_responseInfo         OBJ_id_cmc,19L\n\n#define SN_id_cmc_queryPending          \"id-cmc-queryPending\"\n#define NID_id_cmc_queryPending         343\n#define OBJ_id_cmc_queryPending         OBJ_id_cmc,21L\n\n#define SN_id_cmc_popLinkRandom         \"id-cmc-popLinkRandom\"\n#define NID_id_cmc_popLinkRandom                344\n#define OBJ_id_cmc_popLinkRandom                OBJ_id_cmc,22L\n\n#define SN_id_cmc_popLinkWitness                \"id-cmc-popLinkWitness\"\n#define NID_id_cmc_popLinkWitness               345\n#define OBJ_id_cmc_popLinkWitness               OBJ_id_cmc,23L\n\n#define SN_id_cmc_confirmCertAcceptance         \"id-cmc-confirmCertAcceptance\"\n#define NID_id_cmc_confirmCertAcceptance                346\n#define OBJ_id_cmc_confirmCertAcceptance                OBJ_id_cmc,24L\n\n#define SN_id_on_personalData           \"id-on-personalData\"\n#define NID_id_on_personalData          347\n#define OBJ_id_on_personalData          OBJ_id_on,1L\n\n#define SN_id_on_permanentIdentifier            \"id-on-permanentIdentifier\"\n#define LN_id_on_permanentIdentifier            \"Permanent Identifier\"\n#define NID_id_on_permanentIdentifier           858\n#define OBJ_id_on_permanentIdentifier           OBJ_id_on,3L\n\n#define SN_id_pda_dateOfBirth           \"id-pda-dateOfBirth\"\n#define NID_id_pda_dateOfBirth          348\n#define OBJ_id_pda_dateOfBirth          OBJ_id_pda,1L\n\n#define SN_id_pda_placeOfBirth          \"id-pda-placeOfBirth\"\n#define NID_id_pda_placeOfBirth         349\n#define OBJ_id_pda_placeOfBirth         OBJ_id_pda,2L\n\n#define SN_id_pda_gender                \"id-pda-gender\"\n#define NID_id_pda_gender               351\n#define OBJ_id_pda_gender               OBJ_id_pda,3L\n\n#define SN_id_pda_countryOfCitizenship          \"id-pda-countryOfCitizenship\"\n#define NID_id_pda_countryOfCitizenship         352\n#define OBJ_id_pda_countryOfCitizenship         OBJ_id_pda,4L\n\n#define SN_id_pda_countryOfResidence            \"id-pda-countryOfResidence\"\n#define NID_id_pda_countryOfResidence           353\n#define OBJ_id_pda_countryOfResidence           OBJ_id_pda,5L\n\n#define SN_id_aca_authenticationInfo            \"id-aca-authenticationInfo\"\n#define NID_id_aca_authenticationInfo           354\n#define OBJ_id_aca_authenticationInfo           OBJ_id_aca,1L\n\n#define SN_id_aca_accessIdentity                \"id-aca-accessIdentity\"\n#define NID_id_aca_accessIdentity               355\n#define OBJ_id_aca_accessIdentity               OBJ_id_aca,2L\n\n#define SN_id_aca_chargingIdentity              \"id-aca-chargingIdentity\"\n#define NID_id_aca_chargingIdentity             356\n#define OBJ_id_aca_chargingIdentity             OBJ_id_aca,3L\n\n#define SN_id_aca_group         \"id-aca-group\"\n#define NID_id_aca_group                357\n#define OBJ_id_aca_group                OBJ_id_aca,4L\n\n#define SN_id_aca_role          \"id-aca-role\"\n#define NID_id_aca_role         358\n#define OBJ_id_aca_role         OBJ_id_aca,5L\n\n#define SN_id_aca_encAttrs              \"id-aca-encAttrs\"\n#define NID_id_aca_encAttrs             399\n#define OBJ_id_aca_encAttrs             OBJ_id_aca,6L\n\n#define SN_id_qcs_pkixQCSyntax_v1               \"id-qcs-pkixQCSyntax-v1\"\n#define NID_id_qcs_pkixQCSyntax_v1              359\n#define OBJ_id_qcs_pkixQCSyntax_v1              OBJ_id_qcs,1L\n\n#define SN_id_cct_crs           \"id-cct-crs\"\n#define NID_id_cct_crs          360\n#define OBJ_id_cct_crs          OBJ_id_cct,1L\n\n#define SN_id_cct_PKIData               \"id-cct-PKIData\"\n#define NID_id_cct_PKIData              361\n#define OBJ_id_cct_PKIData              OBJ_id_cct,2L\n\n#define SN_id_cct_PKIResponse           \"id-cct-PKIResponse\"\n#define NID_id_cct_PKIResponse          362\n#define OBJ_id_cct_PKIResponse          OBJ_id_cct,3L\n\n#define SN_id_ppl_anyLanguage           \"id-ppl-anyLanguage\"\n#define LN_id_ppl_anyLanguage           \"Any language\"\n#define NID_id_ppl_anyLanguage          664\n#define OBJ_id_ppl_anyLanguage          OBJ_id_ppl,0L\n\n#define SN_id_ppl_inheritAll            \"id-ppl-inheritAll\"\n#define LN_id_ppl_inheritAll            \"Inherit all\"\n#define NID_id_ppl_inheritAll           665\n#define OBJ_id_ppl_inheritAll           OBJ_id_ppl,1L\n\n#define SN_Independent          \"id-ppl-independent\"\n#define LN_Independent          \"Independent\"\n#define NID_Independent         667\n#define OBJ_Independent         OBJ_id_ppl,2L\n\n#define SN_ad_OCSP              \"OCSP\"\n#define LN_ad_OCSP              \"OCSP\"\n#define NID_ad_OCSP             178\n#define OBJ_ad_OCSP             OBJ_id_ad,1L\n\n#define SN_ad_ca_issuers                \"caIssuers\"\n#define LN_ad_ca_issuers                \"CA Issuers\"\n#define NID_ad_ca_issuers               179\n#define OBJ_ad_ca_issuers               OBJ_id_ad,2L\n\n#define SN_ad_timeStamping              \"ad_timestamping\"\n#define LN_ad_timeStamping              \"AD Time Stamping\"\n#define NID_ad_timeStamping             363\n#define OBJ_ad_timeStamping             OBJ_id_ad,3L\n\n#define SN_ad_dvcs              \"AD_DVCS\"\n#define LN_ad_dvcs              \"ad dvcs\"\n#define NID_ad_dvcs             364\n#define OBJ_ad_dvcs             OBJ_id_ad,4L\n\n#define SN_caRepository         \"caRepository\"\n#define LN_caRepository         \"CA Repository\"\n#define NID_caRepository                785\n#define OBJ_caRepository                OBJ_id_ad,5L\n\n#define OBJ_id_pkix_OCSP                OBJ_ad_OCSP\n\n#define SN_id_pkix_OCSP_basic           \"basicOCSPResponse\"\n#define LN_id_pkix_OCSP_basic           \"Basic OCSP Response\"\n#define NID_id_pkix_OCSP_basic          365\n#define OBJ_id_pkix_OCSP_basic          OBJ_id_pkix_OCSP,1L\n\n#define SN_id_pkix_OCSP_Nonce           \"Nonce\"\n#define LN_id_pkix_OCSP_Nonce           \"OCSP Nonce\"\n#define NID_id_pkix_OCSP_Nonce          366\n#define OBJ_id_pkix_OCSP_Nonce          OBJ_id_pkix_OCSP,2L\n\n#define SN_id_pkix_OCSP_CrlID           \"CrlID\"\n#define LN_id_pkix_OCSP_CrlID           \"OCSP CRL ID\"\n#define NID_id_pkix_OCSP_CrlID          367\n#define OBJ_id_pkix_OCSP_CrlID          OBJ_id_pkix_OCSP,3L\n\n#define SN_id_pkix_OCSP_acceptableResponses             \"acceptableResponses\"\n#define LN_id_pkix_OCSP_acceptableResponses             \"Acceptable OCSP Responses\"\n#define NID_id_pkix_OCSP_acceptableResponses            368\n#define OBJ_id_pkix_OCSP_acceptableResponses            OBJ_id_pkix_OCSP,4L\n\n#define SN_id_pkix_OCSP_noCheck         \"noCheck\"\n#define LN_id_pkix_OCSP_noCheck         \"OCSP No Check\"\n#define NID_id_pkix_OCSP_noCheck                369\n#define OBJ_id_pkix_OCSP_noCheck                OBJ_id_pkix_OCSP,5L\n\n#define SN_id_pkix_OCSP_archiveCutoff           \"archiveCutoff\"\n#define LN_id_pkix_OCSP_archiveCutoff           \"OCSP Archive Cutoff\"\n#define NID_id_pkix_OCSP_archiveCutoff          370\n#define OBJ_id_pkix_OCSP_archiveCutoff          OBJ_id_pkix_OCSP,6L\n\n#define SN_id_pkix_OCSP_serviceLocator          \"serviceLocator\"\n#define LN_id_pkix_OCSP_serviceLocator          \"OCSP Service Locator\"\n#define NID_id_pkix_OCSP_serviceLocator         371\n#define OBJ_id_pkix_OCSP_serviceLocator         OBJ_id_pkix_OCSP,7L\n\n#define SN_id_pkix_OCSP_extendedStatus          \"extendedStatus\"\n#define LN_id_pkix_OCSP_extendedStatus          \"Extended OCSP Status\"\n#define NID_id_pkix_OCSP_extendedStatus         372\n#define OBJ_id_pkix_OCSP_extendedStatus         OBJ_id_pkix_OCSP,8L\n\n#define SN_id_pkix_OCSP_valid           \"valid\"\n#define NID_id_pkix_OCSP_valid          373\n#define OBJ_id_pkix_OCSP_valid          OBJ_id_pkix_OCSP,9L\n\n#define SN_id_pkix_OCSP_path            \"path\"\n#define NID_id_pkix_OCSP_path           374\n#define OBJ_id_pkix_OCSP_path           OBJ_id_pkix_OCSP,10L\n\n#define SN_id_pkix_OCSP_trustRoot               \"trustRoot\"\n#define LN_id_pkix_OCSP_trustRoot               \"Trust Root\"\n#define NID_id_pkix_OCSP_trustRoot              375\n#define OBJ_id_pkix_OCSP_trustRoot              OBJ_id_pkix_OCSP,11L\n\n#define SN_algorithm            \"algorithm\"\n#define LN_algorithm            \"algorithm\"\n#define NID_algorithm           376\n#define OBJ_algorithm           1L,3L,14L,3L,2L\n\n#define SN_md5WithRSA           \"RSA-NP-MD5\"\n#define LN_md5WithRSA           \"md5WithRSA\"\n#define NID_md5WithRSA          104\n#define OBJ_md5WithRSA          OBJ_algorithm,3L\n\n#define SN_des_ecb              \"DES-ECB\"\n#define LN_des_ecb              \"des-ecb\"\n#define NID_des_ecb             29\n#define OBJ_des_ecb             OBJ_algorithm,6L\n\n#define SN_des_cbc              \"DES-CBC\"\n#define LN_des_cbc              \"des-cbc\"\n#define NID_des_cbc             31\n#define OBJ_des_cbc             OBJ_algorithm,7L\n\n#define SN_des_ofb64            \"DES-OFB\"\n#define LN_des_ofb64            \"des-ofb\"\n#define NID_des_ofb64           45\n#define OBJ_des_ofb64           OBJ_algorithm,8L\n\n#define SN_des_cfb64            \"DES-CFB\"\n#define LN_des_cfb64            \"des-cfb\"\n#define NID_des_cfb64           30\n#define OBJ_des_cfb64           OBJ_algorithm,9L\n\n#define SN_rsaSignature         \"rsaSignature\"\n#define NID_rsaSignature                377\n#define OBJ_rsaSignature                OBJ_algorithm,11L\n\n#define SN_dsa_2                \"DSA-old\"\n#define LN_dsa_2                \"dsaEncryption-old\"\n#define NID_dsa_2               67\n#define OBJ_dsa_2               OBJ_algorithm,12L\n\n#define SN_dsaWithSHA           \"DSA-SHA\"\n#define LN_dsaWithSHA           \"dsaWithSHA\"\n#define NID_dsaWithSHA          66\n#define OBJ_dsaWithSHA          OBJ_algorithm,13L\n\n#define SN_shaWithRSAEncryption         \"RSA-SHA\"\n#define LN_shaWithRSAEncryption         \"shaWithRSAEncryption\"\n#define NID_shaWithRSAEncryption                42\n#define OBJ_shaWithRSAEncryption                OBJ_algorithm,15L\n\n#define SN_des_ede_ecb          \"DES-EDE\"\n#define LN_des_ede_ecb          \"des-ede\"\n#define NID_des_ede_ecb         32\n#define OBJ_des_ede_ecb         OBJ_algorithm,17L\n\n#define SN_des_ede3_ecb         \"DES-EDE3\"\n#define LN_des_ede3_ecb         \"des-ede3\"\n#define NID_des_ede3_ecb                33\n\n#define SN_des_ede_cbc          \"DES-EDE-CBC\"\n#define LN_des_ede_cbc          \"des-ede-cbc\"\n#define NID_des_ede_cbc         43\n\n#define SN_des_ede_cfb64                \"DES-EDE-CFB\"\n#define LN_des_ede_cfb64                \"des-ede-cfb\"\n#define NID_des_ede_cfb64               60\n\n#define SN_des_ede3_cfb64               \"DES-EDE3-CFB\"\n#define LN_des_ede3_cfb64               \"des-ede3-cfb\"\n#define NID_des_ede3_cfb64              61\n\n#define SN_des_ede_ofb64                \"DES-EDE-OFB\"\n#define LN_des_ede_ofb64                \"des-ede-ofb\"\n#define NID_des_ede_ofb64               62\n\n#define SN_des_ede3_ofb64               \"DES-EDE3-OFB\"\n#define LN_des_ede3_ofb64               \"des-ede3-ofb\"\n#define NID_des_ede3_ofb64              63\n\n#define SN_desx_cbc             \"DESX-CBC\"\n#define LN_desx_cbc             \"desx-cbc\"\n#define NID_desx_cbc            80\n\n#define SN_sha          \"SHA\"\n#define LN_sha          \"sha\"\n#define NID_sha         41\n#define OBJ_sha         OBJ_algorithm,18L\n\n#define SN_sha1         \"SHA1\"\n#define LN_sha1         \"sha1\"\n#define NID_sha1                64\n#define OBJ_sha1                OBJ_algorithm,26L\n\n#define SN_dsaWithSHA1_2                \"DSA-SHA1-old\"\n#define LN_dsaWithSHA1_2                \"dsaWithSHA1-old\"\n#define NID_dsaWithSHA1_2               70\n#define OBJ_dsaWithSHA1_2               OBJ_algorithm,27L\n\n#define SN_sha1WithRSA          \"RSA-SHA1-2\"\n#define LN_sha1WithRSA          \"sha1WithRSA\"\n#define NID_sha1WithRSA         115\n#define OBJ_sha1WithRSA         OBJ_algorithm,29L\n\n#define SN_ripemd160            \"RIPEMD160\"\n#define LN_ripemd160            \"ripemd160\"\n#define NID_ripemd160           117\n#define OBJ_ripemd160           1L,3L,36L,3L,2L,1L\n\n#define SN_ripemd160WithRSA             \"RSA-RIPEMD160\"\n#define LN_ripemd160WithRSA             \"ripemd160WithRSA\"\n#define NID_ripemd160WithRSA            119\n#define OBJ_ripemd160WithRSA            1L,3L,36L,3L,3L,1L,2L\n\n#define SN_blake2b512           \"BLAKE2b512\"\n#define LN_blake2b512           \"blake2b512\"\n#define NID_blake2b512          1056\n#define OBJ_blake2b512          1L,3L,6L,1L,4L,1L,1722L,12L,2L,1L,16L\n\n#define SN_blake2s256           \"BLAKE2s256\"\n#define LN_blake2s256           \"blake2s256\"\n#define NID_blake2s256          1057\n#define OBJ_blake2s256          1L,3L,6L,1L,4L,1L,1722L,12L,2L,2L,8L\n\n#define SN_sxnet                \"SXNetID\"\n#define LN_sxnet                \"Strong Extranet ID\"\n#define NID_sxnet               143\n#define OBJ_sxnet               1L,3L,101L,1L,4L,1L\n\n#define SN_X500         \"X500\"\n#define LN_X500         \"directory services (X.500)\"\n#define NID_X500                11\n#define OBJ_X500                2L,5L\n\n#define SN_X509         \"X509\"\n#define NID_X509                12\n#define OBJ_X509                OBJ_X500,4L\n\n#define SN_commonName           \"CN\"\n#define LN_commonName           \"commonName\"\n#define NID_commonName          13\n#define OBJ_commonName          OBJ_X509,3L\n\n#define SN_surname              \"SN\"\n#define LN_surname              \"surname\"\n#define NID_surname             100\n#define OBJ_surname             OBJ_X509,4L\n\n#define LN_serialNumber         \"serialNumber\"\n#define NID_serialNumber                105\n#define OBJ_serialNumber                OBJ_X509,5L\n\n#define SN_countryName          \"C\"\n#define LN_countryName          \"countryName\"\n#define NID_countryName         14\n#define OBJ_countryName         OBJ_X509,6L\n\n#define SN_localityName         \"L\"\n#define LN_localityName         \"localityName\"\n#define NID_localityName                15\n#define OBJ_localityName                OBJ_X509,7L\n\n#define SN_stateOrProvinceName          \"ST\"\n#define LN_stateOrProvinceName          \"stateOrProvinceName\"\n#define NID_stateOrProvinceName         16\n#define OBJ_stateOrProvinceName         OBJ_X509,8L\n\n#define SN_streetAddress                \"street\"\n#define LN_streetAddress                \"streetAddress\"\n#define NID_streetAddress               660\n#define OBJ_streetAddress               OBJ_X509,9L\n\n#define SN_organizationName             \"O\"\n#define LN_organizationName             \"organizationName\"\n#define NID_organizationName            17\n#define OBJ_organizationName            OBJ_X509,10L\n\n#define SN_organizationalUnitName               \"OU\"\n#define LN_organizationalUnitName               \"organizationalUnitName\"\n#define NID_organizationalUnitName              18\n#define OBJ_organizationalUnitName              OBJ_X509,11L\n\n#define SN_title                \"title\"\n#define LN_title                \"title\"\n#define NID_title               106\n#define OBJ_title               OBJ_X509,12L\n\n#define LN_description          \"description\"\n#define NID_description         107\n#define OBJ_description         OBJ_X509,13L\n\n#define LN_searchGuide          \"searchGuide\"\n#define NID_searchGuide         859\n#define OBJ_searchGuide         OBJ_X509,14L\n\n#define LN_businessCategory             \"businessCategory\"\n#define NID_businessCategory            860\n#define OBJ_businessCategory            OBJ_X509,15L\n\n#define LN_postalAddress                \"postalAddress\"\n#define NID_postalAddress               861\n#define OBJ_postalAddress               OBJ_X509,16L\n\n#define LN_postalCode           \"postalCode\"\n#define NID_postalCode          661\n#define OBJ_postalCode          OBJ_X509,17L\n\n#define LN_postOfficeBox                \"postOfficeBox\"\n#define NID_postOfficeBox               862\n#define OBJ_postOfficeBox               OBJ_X509,18L\n\n#define LN_physicalDeliveryOfficeName           \"physicalDeliveryOfficeName\"\n#define NID_physicalDeliveryOfficeName          863\n#define OBJ_physicalDeliveryOfficeName          OBJ_X509,19L\n\n#define LN_telephoneNumber              \"telephoneNumber\"\n#define NID_telephoneNumber             864\n#define OBJ_telephoneNumber             OBJ_X509,20L\n\n#define LN_telexNumber          \"telexNumber\"\n#define NID_telexNumber         865\n#define OBJ_telexNumber         OBJ_X509,21L\n\n#define LN_teletexTerminalIdentifier            \"teletexTerminalIdentifier\"\n#define NID_teletexTerminalIdentifier           866\n#define OBJ_teletexTerminalIdentifier           OBJ_X509,22L\n\n#define LN_facsimileTelephoneNumber             \"facsimileTelephoneNumber\"\n#define NID_facsimileTelephoneNumber            867\n#define OBJ_facsimileTelephoneNumber            OBJ_X509,23L\n\n#define LN_x121Address          \"x121Address\"\n#define NID_x121Address         868\n#define OBJ_x121Address         OBJ_X509,24L\n\n#define LN_internationaliSDNNumber              \"internationaliSDNNumber\"\n#define NID_internationaliSDNNumber             869\n#define OBJ_internationaliSDNNumber             OBJ_X509,25L\n\n#define LN_registeredAddress            \"registeredAddress\"\n#define NID_registeredAddress           870\n#define OBJ_registeredAddress           OBJ_X509,26L\n\n#define LN_destinationIndicator         \"destinationIndicator\"\n#define NID_destinationIndicator                871\n#define OBJ_destinationIndicator                OBJ_X509,27L\n\n#define LN_preferredDeliveryMethod              \"preferredDeliveryMethod\"\n#define NID_preferredDeliveryMethod             872\n#define OBJ_preferredDeliveryMethod             OBJ_X509,28L\n\n#define LN_presentationAddress          \"presentationAddress\"\n#define NID_presentationAddress         873\n#define OBJ_presentationAddress         OBJ_X509,29L\n\n#define LN_supportedApplicationContext          \"supportedApplicationContext\"\n#define NID_supportedApplicationContext         874\n#define OBJ_supportedApplicationContext         OBJ_X509,30L\n\n#define SN_member               \"member\"\n#define NID_member              875\n#define OBJ_member              OBJ_X509,31L\n\n#define SN_owner                \"owner\"\n#define NID_owner               876\n#define OBJ_owner               OBJ_X509,32L\n\n#define LN_roleOccupant         \"roleOccupant\"\n#define NID_roleOccupant                877\n#define OBJ_roleOccupant                OBJ_X509,33L\n\n#define SN_seeAlso              \"seeAlso\"\n#define NID_seeAlso             878\n#define OBJ_seeAlso             OBJ_X509,34L\n\n#define LN_userPassword         \"userPassword\"\n#define NID_userPassword                879\n#define OBJ_userPassword                OBJ_X509,35L\n\n#define LN_userCertificate              \"userCertificate\"\n#define NID_userCertificate             880\n#define OBJ_userCertificate             OBJ_X509,36L\n\n#define LN_cACertificate                \"cACertificate\"\n#define NID_cACertificate               881\n#define OBJ_cACertificate               OBJ_X509,37L\n\n#define LN_authorityRevocationList              \"authorityRevocationList\"\n#define NID_authorityRevocationList             882\n#define OBJ_authorityRevocationList             OBJ_X509,38L\n\n#define LN_certificateRevocationList            \"certificateRevocationList\"\n#define NID_certificateRevocationList           883\n#define OBJ_certificateRevocationList           OBJ_X509,39L\n\n#define LN_crossCertificatePair         \"crossCertificatePair\"\n#define NID_crossCertificatePair                884\n#define OBJ_crossCertificatePair                OBJ_X509,40L\n\n#define SN_name         \"name\"\n#define LN_name         \"name\"\n#define NID_name                173\n#define OBJ_name                OBJ_X509,41L\n\n#define SN_givenName            \"GN\"\n#define LN_givenName            \"givenName\"\n#define NID_givenName           99\n#define OBJ_givenName           OBJ_X509,42L\n\n#define SN_initials             \"initials\"\n#define LN_initials             \"initials\"\n#define NID_initials            101\n#define OBJ_initials            OBJ_X509,43L\n\n#define LN_generationQualifier          \"generationQualifier\"\n#define NID_generationQualifier         509\n#define OBJ_generationQualifier         OBJ_X509,44L\n\n#define LN_x500UniqueIdentifier         \"x500UniqueIdentifier\"\n#define NID_x500UniqueIdentifier                503\n#define OBJ_x500UniqueIdentifier                OBJ_X509,45L\n\n#define SN_dnQualifier          \"dnQualifier\"\n#define LN_dnQualifier          \"dnQualifier\"\n#define NID_dnQualifier         174\n#define OBJ_dnQualifier         OBJ_X509,46L\n\n#define LN_enhancedSearchGuide          \"enhancedSearchGuide\"\n#define NID_enhancedSearchGuide         885\n#define OBJ_enhancedSearchGuide         OBJ_X509,47L\n\n#define LN_protocolInformation          \"protocolInformation\"\n#define NID_protocolInformation         886\n#define OBJ_protocolInformation         OBJ_X509,48L\n\n#define LN_distinguishedName            \"distinguishedName\"\n#define NID_distinguishedName           887\n#define OBJ_distinguishedName           OBJ_X509,49L\n\n#define LN_uniqueMember         \"uniqueMember\"\n#define NID_uniqueMember                888\n#define OBJ_uniqueMember                OBJ_X509,50L\n\n#define LN_houseIdentifier              \"houseIdentifier\"\n#define NID_houseIdentifier             889\n#define OBJ_houseIdentifier             OBJ_X509,51L\n\n#define LN_supportedAlgorithms          \"supportedAlgorithms\"\n#define NID_supportedAlgorithms         890\n#define OBJ_supportedAlgorithms         OBJ_X509,52L\n\n#define LN_deltaRevocationList          \"deltaRevocationList\"\n#define NID_deltaRevocationList         891\n#define OBJ_deltaRevocationList         OBJ_X509,53L\n\n#define SN_dmdName              \"dmdName\"\n#define NID_dmdName             892\n#define OBJ_dmdName             OBJ_X509,54L\n\n#define LN_pseudonym            \"pseudonym\"\n#define NID_pseudonym           510\n#define OBJ_pseudonym           OBJ_X509,65L\n\n#define SN_role         \"role\"\n#define LN_role         \"role\"\n#define NID_role                400\n#define OBJ_role                OBJ_X509,72L\n\n#define LN_organizationIdentifier               \"organizationIdentifier\"\n#define NID_organizationIdentifier              1089\n#define OBJ_organizationIdentifier              OBJ_X509,97L\n\n#define SN_countryCode3c                \"c3\"\n#define LN_countryCode3c                \"countryCode3c\"\n#define NID_countryCode3c               1090\n#define OBJ_countryCode3c               OBJ_X509,98L\n\n#define SN_countryCode3n                \"n3\"\n#define LN_countryCode3n                \"countryCode3n\"\n#define NID_countryCode3n               1091\n#define OBJ_countryCode3n               OBJ_X509,99L\n\n#define LN_dnsName              \"dnsName\"\n#define NID_dnsName             1092\n#define OBJ_dnsName             OBJ_X509,100L\n\n#define SN_X500algorithms               \"X500algorithms\"\n#define LN_X500algorithms               \"directory services - algorithms\"\n#define NID_X500algorithms              378\n#define OBJ_X500algorithms              OBJ_X500,8L\n\n#define SN_rsa          \"RSA\"\n#define LN_rsa          \"rsa\"\n#define NID_rsa         19\n#define OBJ_rsa         OBJ_X500algorithms,1L,1L\n\n#define SN_mdc2WithRSA          \"RSA-MDC2\"\n#define LN_mdc2WithRSA          \"mdc2WithRSA\"\n#define NID_mdc2WithRSA         96\n#define OBJ_mdc2WithRSA         OBJ_X500algorithms,3L,100L\n\n#define SN_mdc2         \"MDC2\"\n#define LN_mdc2         \"mdc2\"\n#define NID_mdc2                95\n#define OBJ_mdc2                OBJ_X500algorithms,3L,101L\n\n#define SN_id_ce                \"id-ce\"\n#define NID_id_ce               81\n#define OBJ_id_ce               OBJ_X500,29L\n\n#define SN_subject_directory_attributes         \"subjectDirectoryAttributes\"\n#define LN_subject_directory_attributes         \"X509v3 Subject Directory Attributes\"\n#define NID_subject_directory_attributes                769\n#define OBJ_subject_directory_attributes                OBJ_id_ce,9L\n\n#define SN_subject_key_identifier               \"subjectKeyIdentifier\"\n#define LN_subject_key_identifier               \"X509v3 Subject Key Identifier\"\n#define NID_subject_key_identifier              82\n#define OBJ_subject_key_identifier              OBJ_id_ce,14L\n\n#define SN_key_usage            \"keyUsage\"\n#define LN_key_usage            \"X509v3 Key Usage\"\n#define NID_key_usage           83\n#define OBJ_key_usage           OBJ_id_ce,15L\n\n#define SN_private_key_usage_period             \"privateKeyUsagePeriod\"\n#define LN_private_key_usage_period             \"X509v3 Private Key Usage Period\"\n#define NID_private_key_usage_period            84\n#define OBJ_private_key_usage_period            OBJ_id_ce,16L\n\n#define SN_subject_alt_name             \"subjectAltName\"\n#define LN_subject_alt_name             \"X509v3 Subject Alternative Name\"\n#define NID_subject_alt_name            85\n#define OBJ_subject_alt_name            OBJ_id_ce,17L\n\n#define SN_issuer_alt_name              \"issuerAltName\"\n#define LN_issuer_alt_name              \"X509v3 Issuer Alternative Name\"\n#define NID_issuer_alt_name             86\n#define OBJ_issuer_alt_name             OBJ_id_ce,18L\n\n#define SN_basic_constraints            \"basicConstraints\"\n#define LN_basic_constraints            \"X509v3 Basic Constraints\"\n#define NID_basic_constraints           87\n#define OBJ_basic_constraints           OBJ_id_ce,19L\n\n#define SN_crl_number           \"crlNumber\"\n#define LN_crl_number           \"X509v3 CRL Number\"\n#define NID_crl_number          88\n#define OBJ_crl_number          OBJ_id_ce,20L\n\n#define SN_crl_reason           \"CRLReason\"\n#define LN_crl_reason           \"X509v3 CRL Reason Code\"\n#define NID_crl_reason          141\n#define OBJ_crl_reason          OBJ_id_ce,21L\n\n#define SN_invalidity_date              \"invalidityDate\"\n#define LN_invalidity_date              \"Invalidity Date\"\n#define NID_invalidity_date             142\n#define OBJ_invalidity_date             OBJ_id_ce,24L\n\n#define SN_delta_crl            \"deltaCRL\"\n#define LN_delta_crl            \"X509v3 Delta CRL Indicator\"\n#define NID_delta_crl           140\n#define OBJ_delta_crl           OBJ_id_ce,27L\n\n#define SN_issuing_distribution_point           \"issuingDistributionPoint\"\n#define LN_issuing_distribution_point           \"X509v3 Issuing Distribution Point\"\n#define NID_issuing_distribution_point          770\n#define OBJ_issuing_distribution_point          OBJ_id_ce,28L\n\n#define SN_certificate_issuer           \"certificateIssuer\"\n#define LN_certificate_issuer           \"X509v3 Certificate Issuer\"\n#define NID_certificate_issuer          771\n#define OBJ_certificate_issuer          OBJ_id_ce,29L\n\n#define SN_name_constraints             \"nameConstraints\"\n#define LN_name_constraints             \"X509v3 Name Constraints\"\n#define NID_name_constraints            666\n#define OBJ_name_constraints            OBJ_id_ce,30L\n\n#define SN_crl_distribution_points              \"crlDistributionPoints\"\n#define LN_crl_distribution_points              \"X509v3 CRL Distribution Points\"\n#define NID_crl_distribution_points             103\n#define OBJ_crl_distribution_points             OBJ_id_ce,31L\n\n#define SN_certificate_policies         \"certificatePolicies\"\n#define LN_certificate_policies         \"X509v3 Certificate Policies\"\n#define NID_certificate_policies                89\n#define OBJ_certificate_policies                OBJ_id_ce,32L\n\n#define SN_any_policy           \"anyPolicy\"\n#define LN_any_policy           \"X509v3 Any Policy\"\n#define NID_any_policy          746\n#define OBJ_any_policy          OBJ_certificate_policies,0L\n\n#define SN_policy_mappings              \"policyMappings\"\n#define LN_policy_mappings              \"X509v3 Policy Mappings\"\n#define NID_policy_mappings             747\n#define OBJ_policy_mappings             OBJ_id_ce,33L\n\n#define SN_authority_key_identifier             \"authorityKeyIdentifier\"\n#define LN_authority_key_identifier             \"X509v3 Authority Key Identifier\"\n#define NID_authority_key_identifier            90\n#define OBJ_authority_key_identifier            OBJ_id_ce,35L\n\n#define SN_policy_constraints           \"policyConstraints\"\n#define LN_policy_constraints           \"X509v3 Policy Constraints\"\n#define NID_policy_constraints          401\n#define OBJ_policy_constraints          OBJ_id_ce,36L\n\n#define SN_ext_key_usage                \"extendedKeyUsage\"\n#define LN_ext_key_usage                \"X509v3 Extended Key Usage\"\n#define NID_ext_key_usage               126\n#define OBJ_ext_key_usage               OBJ_id_ce,37L\n\n#define SN_freshest_crl         \"freshestCRL\"\n#define LN_freshest_crl         \"X509v3 Freshest CRL\"\n#define NID_freshest_crl                857\n#define OBJ_freshest_crl                OBJ_id_ce,46L\n\n#define SN_inhibit_any_policy           \"inhibitAnyPolicy\"\n#define LN_inhibit_any_policy           \"X509v3 Inhibit Any Policy\"\n#define NID_inhibit_any_policy          748\n#define OBJ_inhibit_any_policy          OBJ_id_ce,54L\n\n#define SN_target_information           \"targetInformation\"\n#define LN_target_information           \"X509v3 AC Targeting\"\n#define NID_target_information          402\n#define OBJ_target_information          OBJ_id_ce,55L\n\n#define SN_no_rev_avail         \"noRevAvail\"\n#define LN_no_rev_avail         \"X509v3 No Revocation Available\"\n#define NID_no_rev_avail                403\n#define OBJ_no_rev_avail                OBJ_id_ce,56L\n\n#define SN_anyExtendedKeyUsage          \"anyExtendedKeyUsage\"\n#define LN_anyExtendedKeyUsage          \"Any Extended Key Usage\"\n#define NID_anyExtendedKeyUsage         910\n#define OBJ_anyExtendedKeyUsage         OBJ_ext_key_usage,0L\n\n#define SN_netscape             \"Netscape\"\n#define LN_netscape             \"Netscape Communications Corp.\"\n#define NID_netscape            57\n#define OBJ_netscape            2L,16L,840L,1L,113730L\n\n#define SN_netscape_cert_extension              \"nsCertExt\"\n#define LN_netscape_cert_extension              \"Netscape Certificate Extension\"\n#define NID_netscape_cert_extension             58\n#define OBJ_netscape_cert_extension             OBJ_netscape,1L\n\n#define SN_netscape_data_type           \"nsDataType\"\n#define LN_netscape_data_type           \"Netscape Data Type\"\n#define NID_netscape_data_type          59\n#define OBJ_netscape_data_type          OBJ_netscape,2L\n\n#define SN_netscape_cert_type           \"nsCertType\"\n#define LN_netscape_cert_type           \"Netscape Cert Type\"\n#define NID_netscape_cert_type          71\n#define OBJ_netscape_cert_type          OBJ_netscape_cert_extension,1L\n\n#define SN_netscape_base_url            \"nsBaseUrl\"\n#define LN_netscape_base_url            \"Netscape Base Url\"\n#define NID_netscape_base_url           72\n#define OBJ_netscape_base_url           OBJ_netscape_cert_extension,2L\n\n#define SN_netscape_revocation_url              \"nsRevocationUrl\"\n#define LN_netscape_revocation_url              \"Netscape Revocation Url\"\n#define NID_netscape_revocation_url             73\n#define OBJ_netscape_revocation_url             OBJ_netscape_cert_extension,3L\n\n#define SN_netscape_ca_revocation_url           \"nsCaRevocationUrl\"\n#define LN_netscape_ca_revocation_url           \"Netscape CA Revocation Url\"\n#define NID_netscape_ca_revocation_url          74\n#define OBJ_netscape_ca_revocation_url          OBJ_netscape_cert_extension,4L\n\n#define SN_netscape_renewal_url         \"nsRenewalUrl\"\n#define LN_netscape_renewal_url         \"Netscape Renewal Url\"\n#define NID_netscape_renewal_url                75\n#define OBJ_netscape_renewal_url                OBJ_netscape_cert_extension,7L\n\n#define SN_netscape_ca_policy_url               \"nsCaPolicyUrl\"\n#define LN_netscape_ca_policy_url               \"Netscape CA Policy Url\"\n#define NID_netscape_ca_policy_url              76\n#define OBJ_netscape_ca_policy_url              OBJ_netscape_cert_extension,8L\n\n#define SN_netscape_ssl_server_name             \"nsSslServerName\"\n#define LN_netscape_ssl_server_name             \"Netscape SSL Server Name\"\n#define NID_netscape_ssl_server_name            77\n#define OBJ_netscape_ssl_server_name            OBJ_netscape_cert_extension,12L\n\n#define SN_netscape_comment             \"nsComment\"\n#define LN_netscape_comment             \"Netscape Comment\"\n#define NID_netscape_comment            78\n#define OBJ_netscape_comment            OBJ_netscape_cert_extension,13L\n\n#define SN_netscape_cert_sequence               \"nsCertSequence\"\n#define LN_netscape_cert_sequence               \"Netscape Certificate Sequence\"\n#define NID_netscape_cert_sequence              79\n#define OBJ_netscape_cert_sequence              OBJ_netscape_data_type,5L\n\n#define SN_ns_sgc               \"nsSGC\"\n#define LN_ns_sgc               \"Netscape Server Gated Crypto\"\n#define NID_ns_sgc              139\n#define OBJ_ns_sgc              OBJ_netscape,4L,1L\n\n#define SN_org          \"ORG\"\n#define LN_org          \"org\"\n#define NID_org         379\n#define OBJ_org         OBJ_iso,3L\n\n#define SN_dod          \"DOD\"\n#define LN_dod          \"dod\"\n#define NID_dod         380\n#define OBJ_dod         OBJ_org,6L\n\n#define SN_iana         \"IANA\"\n#define LN_iana         \"iana\"\n#define NID_iana                381\n#define OBJ_iana                OBJ_dod,1L\n\n#define OBJ_internet            OBJ_iana\n\n#define SN_Directory            \"directory\"\n#define LN_Directory            \"Directory\"\n#define NID_Directory           382\n#define OBJ_Directory           OBJ_internet,1L\n\n#define SN_Management           \"mgmt\"\n#define LN_Management           \"Management\"\n#define NID_Management          383\n#define OBJ_Management          OBJ_internet,2L\n\n#define SN_Experimental         \"experimental\"\n#define LN_Experimental         \"Experimental\"\n#define NID_Experimental                384\n#define OBJ_Experimental                OBJ_internet,3L\n\n#define SN_Private              \"private\"\n#define LN_Private              \"Private\"\n#define NID_Private             385\n#define OBJ_Private             OBJ_internet,4L\n\n#define SN_Security             \"security\"\n#define LN_Security             \"Security\"\n#define NID_Security            386\n#define OBJ_Security            OBJ_internet,5L\n\n#define SN_SNMPv2               \"snmpv2\"\n#define LN_SNMPv2               \"SNMPv2\"\n#define NID_SNMPv2              387\n#define OBJ_SNMPv2              OBJ_internet,6L\n\n#define LN_Mail         \"Mail\"\n#define NID_Mail                388\n#define OBJ_Mail                OBJ_internet,7L\n\n#define SN_Enterprises          \"enterprises\"\n#define LN_Enterprises          \"Enterprises\"\n#define NID_Enterprises         389\n#define OBJ_Enterprises         OBJ_Private,1L\n\n#define SN_dcObject             \"dcobject\"\n#define LN_dcObject             \"dcObject\"\n#define NID_dcObject            390\n#define OBJ_dcObject            OBJ_Enterprises,1466L,344L\n\n#define SN_mime_mhs             \"mime-mhs\"\n#define LN_mime_mhs             \"MIME MHS\"\n#define NID_mime_mhs            504\n#define OBJ_mime_mhs            OBJ_Mail,1L\n\n#define SN_mime_mhs_headings            \"mime-mhs-headings\"\n#define LN_mime_mhs_headings            \"mime-mhs-headings\"\n#define NID_mime_mhs_headings           505\n#define OBJ_mime_mhs_headings           OBJ_mime_mhs,1L\n\n#define SN_mime_mhs_bodies              \"mime-mhs-bodies\"\n#define LN_mime_mhs_bodies              \"mime-mhs-bodies\"\n#define NID_mime_mhs_bodies             506\n#define OBJ_mime_mhs_bodies             OBJ_mime_mhs,2L\n\n#define SN_id_hex_partial_message               \"id-hex-partial-message\"\n#define LN_id_hex_partial_message               \"id-hex-partial-message\"\n#define NID_id_hex_partial_message              507\n#define OBJ_id_hex_partial_message              OBJ_mime_mhs_headings,1L\n\n#define SN_id_hex_multipart_message             \"id-hex-multipart-message\"\n#define LN_id_hex_multipart_message             \"id-hex-multipart-message\"\n#define NID_id_hex_multipart_message            508\n#define OBJ_id_hex_multipart_message            OBJ_mime_mhs_headings,2L\n\n#define SN_zlib_compression             \"ZLIB\"\n#define LN_zlib_compression             \"zlib compression\"\n#define NID_zlib_compression            125\n#define OBJ_zlib_compression            OBJ_id_smime_alg,8L\n\n#define OBJ_csor                2L,16L,840L,1L,101L,3L\n\n#define OBJ_nistAlgorithms              OBJ_csor,4L\n\n#define OBJ_aes         OBJ_nistAlgorithms,1L\n\n#define SN_aes_128_ecb          \"AES-128-ECB\"\n#define LN_aes_128_ecb          \"aes-128-ecb\"\n#define NID_aes_128_ecb         418\n#define OBJ_aes_128_ecb         OBJ_aes,1L\n\n#define SN_aes_128_cbc          \"AES-128-CBC\"\n#define LN_aes_128_cbc          \"aes-128-cbc\"\n#define NID_aes_128_cbc         419\n#define OBJ_aes_128_cbc         OBJ_aes,2L\n\n#define SN_aes_128_ofb128               \"AES-128-OFB\"\n#define LN_aes_128_ofb128               \"aes-128-ofb\"\n#define NID_aes_128_ofb128              420\n#define OBJ_aes_128_ofb128              OBJ_aes,3L\n\n#define SN_aes_128_cfb128               \"AES-128-CFB\"\n#define LN_aes_128_cfb128               \"aes-128-cfb\"\n#define NID_aes_128_cfb128              421\n#define OBJ_aes_128_cfb128              OBJ_aes,4L\n\n#define SN_id_aes128_wrap               \"id-aes128-wrap\"\n#define NID_id_aes128_wrap              788\n#define OBJ_id_aes128_wrap              OBJ_aes,5L\n\n#define SN_aes_128_gcm          \"id-aes128-GCM\"\n#define LN_aes_128_gcm          \"aes-128-gcm\"\n#define NID_aes_128_gcm         895\n#define OBJ_aes_128_gcm         OBJ_aes,6L\n\n#define SN_aes_128_ccm          \"id-aes128-CCM\"\n#define LN_aes_128_ccm          \"aes-128-ccm\"\n#define NID_aes_128_ccm         896\n#define OBJ_aes_128_ccm         OBJ_aes,7L\n\n#define SN_id_aes128_wrap_pad           \"id-aes128-wrap-pad\"\n#define NID_id_aes128_wrap_pad          897\n#define OBJ_id_aes128_wrap_pad          OBJ_aes,8L\n\n#define SN_aes_192_ecb          \"AES-192-ECB\"\n#define LN_aes_192_ecb          \"aes-192-ecb\"\n#define NID_aes_192_ecb         422\n#define OBJ_aes_192_ecb         OBJ_aes,21L\n\n#define SN_aes_192_cbc          \"AES-192-CBC\"\n#define LN_aes_192_cbc          \"aes-192-cbc\"\n#define NID_aes_192_cbc         423\n#define OBJ_aes_192_cbc         OBJ_aes,22L\n\n#define SN_aes_192_ofb128               \"AES-192-OFB\"\n#define LN_aes_192_ofb128               \"aes-192-ofb\"\n#define NID_aes_192_ofb128              424\n#define OBJ_aes_192_ofb128              OBJ_aes,23L\n\n#define SN_aes_192_cfb128               \"AES-192-CFB\"\n#define LN_aes_192_cfb128               \"aes-192-cfb\"\n#define NID_aes_192_cfb128              425\n#define OBJ_aes_192_cfb128              OBJ_aes,24L\n\n#define SN_id_aes192_wrap               \"id-aes192-wrap\"\n#define NID_id_aes192_wrap              789\n#define OBJ_id_aes192_wrap              OBJ_aes,25L\n\n#define SN_aes_192_gcm          \"id-aes192-GCM\"\n#define LN_aes_192_gcm          \"aes-192-gcm\"\n#define NID_aes_192_gcm         898\n#define OBJ_aes_192_gcm         OBJ_aes,26L\n\n#define SN_aes_192_ccm          \"id-aes192-CCM\"\n#define LN_aes_192_ccm          \"aes-192-ccm\"\n#define NID_aes_192_ccm         899\n#define OBJ_aes_192_ccm         OBJ_aes,27L\n\n#define SN_id_aes192_wrap_pad           \"id-aes192-wrap-pad\"\n#define NID_id_aes192_wrap_pad          900\n#define OBJ_id_aes192_wrap_pad          OBJ_aes,28L\n\n#define SN_aes_256_ecb          \"AES-256-ECB\"\n#define LN_aes_256_ecb          \"aes-256-ecb\"\n#define NID_aes_256_ecb         426\n#define OBJ_aes_256_ecb         OBJ_aes,41L\n\n#define SN_aes_256_cbc          \"AES-256-CBC\"\n#define LN_aes_256_cbc          \"aes-256-cbc\"\n#define NID_aes_256_cbc         427\n#define OBJ_aes_256_cbc         OBJ_aes,42L\n\n#define SN_aes_256_ofb128               \"AES-256-OFB\"\n#define LN_aes_256_ofb128               \"aes-256-ofb\"\n#define NID_aes_256_ofb128              428\n#define OBJ_aes_256_ofb128              OBJ_aes,43L\n\n#define SN_aes_256_cfb128               \"AES-256-CFB\"\n#define LN_aes_256_cfb128               \"aes-256-cfb\"\n#define NID_aes_256_cfb128              429\n#define OBJ_aes_256_cfb128              OBJ_aes,44L\n\n#define SN_id_aes256_wrap               \"id-aes256-wrap\"\n#define NID_id_aes256_wrap              790\n#define OBJ_id_aes256_wrap              OBJ_aes,45L\n\n#define SN_aes_256_gcm          \"id-aes256-GCM\"\n#define LN_aes_256_gcm          \"aes-256-gcm\"\n#define NID_aes_256_gcm         901\n#define OBJ_aes_256_gcm         OBJ_aes,46L\n\n#define SN_aes_256_ccm          \"id-aes256-CCM\"\n#define LN_aes_256_ccm          \"aes-256-ccm\"\n#define NID_aes_256_ccm         902\n#define OBJ_aes_256_ccm         OBJ_aes,47L\n\n#define SN_id_aes256_wrap_pad           \"id-aes256-wrap-pad\"\n#define NID_id_aes256_wrap_pad          903\n#define OBJ_id_aes256_wrap_pad          OBJ_aes,48L\n\n#define SN_aes_128_xts          \"AES-128-XTS\"\n#define LN_aes_128_xts          \"aes-128-xts\"\n#define NID_aes_128_xts         913\n#define OBJ_aes_128_xts         OBJ_ieee_siswg,0L,1L,1L\n\n#define SN_aes_256_xts          \"AES-256-XTS\"\n#define LN_aes_256_xts          \"aes-256-xts\"\n#define NID_aes_256_xts         914\n#define OBJ_aes_256_xts         OBJ_ieee_siswg,0L,1L,2L\n\n#define SN_aes_128_cfb1         \"AES-128-CFB1\"\n#define LN_aes_128_cfb1         \"aes-128-cfb1\"\n#define NID_aes_128_cfb1                650\n\n#define SN_aes_192_cfb1         \"AES-192-CFB1\"\n#define LN_aes_192_cfb1         \"aes-192-cfb1\"\n#define NID_aes_192_cfb1                651\n\n#define SN_aes_256_cfb1         \"AES-256-CFB1\"\n#define LN_aes_256_cfb1         \"aes-256-cfb1\"\n#define NID_aes_256_cfb1                652\n\n#define SN_aes_128_cfb8         \"AES-128-CFB8\"\n#define LN_aes_128_cfb8         \"aes-128-cfb8\"\n#define NID_aes_128_cfb8                653\n\n#define SN_aes_192_cfb8         \"AES-192-CFB8\"\n#define LN_aes_192_cfb8         \"aes-192-cfb8\"\n#define NID_aes_192_cfb8                654\n\n#define SN_aes_256_cfb8         \"AES-256-CFB8\"\n#define LN_aes_256_cfb8         \"aes-256-cfb8\"\n#define NID_aes_256_cfb8                655\n\n#define SN_aes_128_ctr          \"AES-128-CTR\"\n#define LN_aes_128_ctr          \"aes-128-ctr\"\n#define NID_aes_128_ctr         904\n\n#define SN_aes_192_ctr          \"AES-192-CTR\"\n#define LN_aes_192_ctr          \"aes-192-ctr\"\n#define NID_aes_192_ctr         905\n\n#define SN_aes_256_ctr          \"AES-256-CTR\"\n#define LN_aes_256_ctr          \"aes-256-ctr\"\n#define NID_aes_256_ctr         906\n\n#define SN_aes_128_ocb          \"AES-128-OCB\"\n#define LN_aes_128_ocb          \"aes-128-ocb\"\n#define NID_aes_128_ocb         958\n\n#define SN_aes_192_ocb          \"AES-192-OCB\"\n#define LN_aes_192_ocb          \"aes-192-ocb\"\n#define NID_aes_192_ocb         959\n\n#define SN_aes_256_ocb          \"AES-256-OCB\"\n#define LN_aes_256_ocb          \"aes-256-ocb\"\n#define NID_aes_256_ocb         960\n\n#define SN_des_cfb1             \"DES-CFB1\"\n#define LN_des_cfb1             \"des-cfb1\"\n#define NID_des_cfb1            656\n\n#define SN_des_cfb8             \"DES-CFB8\"\n#define LN_des_cfb8             \"des-cfb8\"\n#define NID_des_cfb8            657\n\n#define SN_des_ede3_cfb1                \"DES-EDE3-CFB1\"\n#define LN_des_ede3_cfb1                \"des-ede3-cfb1\"\n#define NID_des_ede3_cfb1               658\n\n#define SN_des_ede3_cfb8                \"DES-EDE3-CFB8\"\n#define LN_des_ede3_cfb8                \"des-ede3-cfb8\"\n#define NID_des_ede3_cfb8               659\n\n#define OBJ_nist_hashalgs               OBJ_nistAlgorithms,2L\n\n#define SN_sha256               \"SHA256\"\n#define LN_sha256               \"sha256\"\n#define NID_sha256              672\n#define OBJ_sha256              OBJ_nist_hashalgs,1L\n\n#define SN_sha384               \"SHA384\"\n#define LN_sha384               \"sha384\"\n#define NID_sha384              673\n#define OBJ_sha384              OBJ_nist_hashalgs,2L\n\n#define SN_sha512               \"SHA512\"\n#define LN_sha512               \"sha512\"\n#define NID_sha512              674\n#define OBJ_sha512              OBJ_nist_hashalgs,3L\n\n#define SN_sha224               \"SHA224\"\n#define LN_sha224               \"sha224\"\n#define NID_sha224              675\n#define OBJ_sha224              OBJ_nist_hashalgs,4L\n\n#define SN_sha512_224           \"SHA512-224\"\n#define LN_sha512_224           \"sha512-224\"\n#define NID_sha512_224          1094\n#define OBJ_sha512_224          OBJ_nist_hashalgs,5L\n\n#define SN_sha512_256           \"SHA512-256\"\n#define LN_sha512_256           \"sha512-256\"\n#define NID_sha512_256          1095\n#define OBJ_sha512_256          OBJ_nist_hashalgs,6L\n\n#define SN_sha3_224             \"SHA3-224\"\n#define LN_sha3_224             \"sha3-224\"\n#define NID_sha3_224            1096\n#define OBJ_sha3_224            OBJ_nist_hashalgs,7L\n\n#define SN_sha3_256             \"SHA3-256\"\n#define LN_sha3_256             \"sha3-256\"\n#define NID_sha3_256            1097\n#define OBJ_sha3_256            OBJ_nist_hashalgs,8L\n\n#define SN_sha3_384             \"SHA3-384\"\n#define LN_sha3_384             \"sha3-384\"\n#define NID_sha3_384            1098\n#define OBJ_sha3_384            OBJ_nist_hashalgs,9L\n\n#define SN_sha3_512             \"SHA3-512\"\n#define LN_sha3_512             \"sha3-512\"\n#define NID_sha3_512            1099\n#define OBJ_sha3_512            OBJ_nist_hashalgs,10L\n\n#define SN_shake128             \"SHAKE128\"\n#define LN_shake128             \"shake128\"\n#define NID_shake128            1100\n#define OBJ_shake128            OBJ_nist_hashalgs,11L\n\n#define SN_shake256             \"SHAKE256\"\n#define LN_shake256             \"shake256\"\n#define NID_shake256            1101\n#define OBJ_shake256            OBJ_nist_hashalgs,12L\n\n#define SN_hmac_sha3_224                \"id-hmacWithSHA3-224\"\n#define LN_hmac_sha3_224                \"hmac-sha3-224\"\n#define NID_hmac_sha3_224               1102\n#define OBJ_hmac_sha3_224               OBJ_nist_hashalgs,13L\n\n#define SN_hmac_sha3_256                \"id-hmacWithSHA3-256\"\n#define LN_hmac_sha3_256                \"hmac-sha3-256\"\n#define NID_hmac_sha3_256               1103\n#define OBJ_hmac_sha3_256               OBJ_nist_hashalgs,14L\n\n#define SN_hmac_sha3_384                \"id-hmacWithSHA3-384\"\n#define LN_hmac_sha3_384                \"hmac-sha3-384\"\n#define NID_hmac_sha3_384               1104\n#define OBJ_hmac_sha3_384               OBJ_nist_hashalgs,15L\n\n#define SN_hmac_sha3_512                \"id-hmacWithSHA3-512\"\n#define LN_hmac_sha3_512                \"hmac-sha3-512\"\n#define NID_hmac_sha3_512               1105\n#define OBJ_hmac_sha3_512               OBJ_nist_hashalgs,16L\n\n#define OBJ_dsa_with_sha2               OBJ_nistAlgorithms,3L\n\n#define SN_dsa_with_SHA224              \"dsa_with_SHA224\"\n#define NID_dsa_with_SHA224             802\n#define OBJ_dsa_with_SHA224             OBJ_dsa_with_sha2,1L\n\n#define SN_dsa_with_SHA256              \"dsa_with_SHA256\"\n#define NID_dsa_with_SHA256             803\n#define OBJ_dsa_with_SHA256             OBJ_dsa_with_sha2,2L\n\n#define OBJ_sigAlgs             OBJ_nistAlgorithms,3L\n\n#define SN_dsa_with_SHA384              \"id-dsa-with-sha384\"\n#define LN_dsa_with_SHA384              \"dsa_with_SHA384\"\n#define NID_dsa_with_SHA384             1106\n#define OBJ_dsa_with_SHA384             OBJ_sigAlgs,3L\n\n#define SN_dsa_with_SHA512              \"id-dsa-with-sha512\"\n#define LN_dsa_with_SHA512              \"dsa_with_SHA512\"\n#define NID_dsa_with_SHA512             1107\n#define OBJ_dsa_with_SHA512             OBJ_sigAlgs,4L\n\n#define SN_dsa_with_SHA3_224            \"id-dsa-with-sha3-224\"\n#define LN_dsa_with_SHA3_224            \"dsa_with_SHA3-224\"\n#define NID_dsa_with_SHA3_224           1108\n#define OBJ_dsa_with_SHA3_224           OBJ_sigAlgs,5L\n\n#define SN_dsa_with_SHA3_256            \"id-dsa-with-sha3-256\"\n#define LN_dsa_with_SHA3_256            \"dsa_with_SHA3-256\"\n#define NID_dsa_with_SHA3_256           1109\n#define OBJ_dsa_with_SHA3_256           OBJ_sigAlgs,6L\n\n#define SN_dsa_with_SHA3_384            \"id-dsa-with-sha3-384\"\n#define LN_dsa_with_SHA3_384            \"dsa_with_SHA3-384\"\n#define NID_dsa_with_SHA3_384           1110\n#define OBJ_dsa_with_SHA3_384           OBJ_sigAlgs,7L\n\n#define SN_dsa_with_SHA3_512            \"id-dsa-with-sha3-512\"\n#define LN_dsa_with_SHA3_512            \"dsa_with_SHA3-512\"\n#define NID_dsa_with_SHA3_512           1111\n#define OBJ_dsa_with_SHA3_512           OBJ_sigAlgs,8L\n\n#define SN_ecdsa_with_SHA3_224          \"id-ecdsa-with-sha3-224\"\n#define LN_ecdsa_with_SHA3_224          \"ecdsa_with_SHA3-224\"\n#define NID_ecdsa_with_SHA3_224         1112\n#define OBJ_ecdsa_with_SHA3_224         OBJ_sigAlgs,9L\n\n#define SN_ecdsa_with_SHA3_256          \"id-ecdsa-with-sha3-256\"\n#define LN_ecdsa_with_SHA3_256          \"ecdsa_with_SHA3-256\"\n#define NID_ecdsa_with_SHA3_256         1113\n#define OBJ_ecdsa_with_SHA3_256         OBJ_sigAlgs,10L\n\n#define SN_ecdsa_with_SHA3_384          \"id-ecdsa-with-sha3-384\"\n#define LN_ecdsa_with_SHA3_384          \"ecdsa_with_SHA3-384\"\n#define NID_ecdsa_with_SHA3_384         1114\n#define OBJ_ecdsa_with_SHA3_384         OBJ_sigAlgs,11L\n\n#define SN_ecdsa_with_SHA3_512          \"id-ecdsa-with-sha3-512\"\n#define LN_ecdsa_with_SHA3_512          \"ecdsa_with_SHA3-512\"\n#define NID_ecdsa_with_SHA3_512         1115\n#define OBJ_ecdsa_with_SHA3_512         OBJ_sigAlgs,12L\n\n#define SN_RSA_SHA3_224         \"id-rsassa-pkcs1-v1_5-with-sha3-224\"\n#define LN_RSA_SHA3_224         \"RSA-SHA3-224\"\n#define NID_RSA_SHA3_224                1116\n#define OBJ_RSA_SHA3_224                OBJ_sigAlgs,13L\n\n#define SN_RSA_SHA3_256         \"id-rsassa-pkcs1-v1_5-with-sha3-256\"\n#define LN_RSA_SHA3_256         \"RSA-SHA3-256\"\n#define NID_RSA_SHA3_256                1117\n#define OBJ_RSA_SHA3_256                OBJ_sigAlgs,14L\n\n#define SN_RSA_SHA3_384         \"id-rsassa-pkcs1-v1_5-with-sha3-384\"\n#define LN_RSA_SHA3_384         \"RSA-SHA3-384\"\n#define NID_RSA_SHA3_384                1118\n#define OBJ_RSA_SHA3_384                OBJ_sigAlgs,15L\n\n#define SN_RSA_SHA3_512         \"id-rsassa-pkcs1-v1_5-with-sha3-512\"\n#define LN_RSA_SHA3_512         \"RSA-SHA3-512\"\n#define NID_RSA_SHA3_512                1119\n#define OBJ_RSA_SHA3_512                OBJ_sigAlgs,16L\n\n#define SN_hold_instruction_code                \"holdInstructionCode\"\n#define LN_hold_instruction_code                \"Hold Instruction Code\"\n#define NID_hold_instruction_code               430\n#define OBJ_hold_instruction_code               OBJ_id_ce,23L\n\n#define OBJ_holdInstruction             OBJ_X9_57,2L\n\n#define SN_hold_instruction_none                \"holdInstructionNone\"\n#define LN_hold_instruction_none                \"Hold Instruction None\"\n#define NID_hold_instruction_none               431\n#define OBJ_hold_instruction_none               OBJ_holdInstruction,1L\n\n#define SN_hold_instruction_call_issuer         \"holdInstructionCallIssuer\"\n#define LN_hold_instruction_call_issuer         \"Hold Instruction Call Issuer\"\n#define NID_hold_instruction_call_issuer                432\n#define OBJ_hold_instruction_call_issuer                OBJ_holdInstruction,2L\n\n#define SN_hold_instruction_reject              \"holdInstructionReject\"\n#define LN_hold_instruction_reject              \"Hold Instruction Reject\"\n#define NID_hold_instruction_reject             433\n#define OBJ_hold_instruction_reject             OBJ_holdInstruction,3L\n\n#define SN_data         \"data\"\n#define NID_data                434\n#define OBJ_data                OBJ_itu_t,9L\n\n#define SN_pss          \"pss\"\n#define NID_pss         435\n#define OBJ_pss         OBJ_data,2342L\n\n#define SN_ucl          \"ucl\"\n#define NID_ucl         436\n#define OBJ_ucl         OBJ_pss,19200300L\n\n#define SN_pilot                \"pilot\"\n#define NID_pilot               437\n#define OBJ_pilot               OBJ_ucl,100L\n\n#define LN_pilotAttributeType           \"pilotAttributeType\"\n#define NID_pilotAttributeType          438\n#define OBJ_pilotAttributeType          OBJ_pilot,1L\n\n#define LN_pilotAttributeSyntax         \"pilotAttributeSyntax\"\n#define NID_pilotAttributeSyntax                439\n#define OBJ_pilotAttributeSyntax                OBJ_pilot,3L\n\n#define LN_pilotObjectClass             \"pilotObjectClass\"\n#define NID_pilotObjectClass            440\n#define OBJ_pilotObjectClass            OBJ_pilot,4L\n\n#define LN_pilotGroups          \"pilotGroups\"\n#define NID_pilotGroups         441\n#define OBJ_pilotGroups         OBJ_pilot,10L\n\n#define LN_iA5StringSyntax              \"iA5StringSyntax\"\n#define NID_iA5StringSyntax             442\n#define OBJ_iA5StringSyntax             OBJ_pilotAttributeSyntax,4L\n\n#define LN_caseIgnoreIA5StringSyntax            \"caseIgnoreIA5StringSyntax\"\n#define NID_caseIgnoreIA5StringSyntax           443\n#define OBJ_caseIgnoreIA5StringSyntax           OBJ_pilotAttributeSyntax,5L\n\n#define LN_pilotObject          \"pilotObject\"\n#define NID_pilotObject         444\n#define OBJ_pilotObject         OBJ_pilotObjectClass,3L\n\n#define LN_pilotPerson          \"pilotPerson\"\n#define NID_pilotPerson         445\n#define OBJ_pilotPerson         OBJ_pilotObjectClass,4L\n\n#define SN_account              \"account\"\n#define NID_account             446\n#define OBJ_account             OBJ_pilotObjectClass,5L\n\n#define SN_document             \"document\"\n#define NID_document            447\n#define OBJ_document            OBJ_pilotObjectClass,6L\n\n#define SN_room         \"room\"\n#define NID_room                448\n#define OBJ_room                OBJ_pilotObjectClass,7L\n\n#define LN_documentSeries               \"documentSeries\"\n#define NID_documentSeries              449\n#define OBJ_documentSeries              OBJ_pilotObjectClass,9L\n\n#define SN_Domain               \"domain\"\n#define LN_Domain               \"Domain\"\n#define NID_Domain              392\n#define OBJ_Domain              OBJ_pilotObjectClass,13L\n\n#define LN_rFC822localPart              \"rFC822localPart\"\n#define NID_rFC822localPart             450\n#define OBJ_rFC822localPart             OBJ_pilotObjectClass,14L\n\n#define LN_dNSDomain            \"dNSDomain\"\n#define NID_dNSDomain           451\n#define OBJ_dNSDomain           OBJ_pilotObjectClass,15L\n\n#define LN_domainRelatedObject          \"domainRelatedObject\"\n#define NID_domainRelatedObject         452\n#define OBJ_domainRelatedObject         OBJ_pilotObjectClass,17L\n\n#define LN_friendlyCountry              \"friendlyCountry\"\n#define NID_friendlyCountry             453\n#define OBJ_friendlyCountry             OBJ_pilotObjectClass,18L\n\n#define LN_simpleSecurityObject         \"simpleSecurityObject\"\n#define NID_simpleSecurityObject                454\n#define OBJ_simpleSecurityObject                OBJ_pilotObjectClass,19L\n\n#define LN_pilotOrganization            \"pilotOrganization\"\n#define NID_pilotOrganization           455\n#define OBJ_pilotOrganization           OBJ_pilotObjectClass,20L\n\n#define LN_pilotDSA             \"pilotDSA\"\n#define NID_pilotDSA            456\n#define OBJ_pilotDSA            OBJ_pilotObjectClass,21L\n\n#define LN_qualityLabelledData          \"qualityLabelledData\"\n#define NID_qualityLabelledData         457\n#define OBJ_qualityLabelledData         OBJ_pilotObjectClass,22L\n\n#define SN_userId               \"UID\"\n#define LN_userId               \"userId\"\n#define NID_userId              458\n#define OBJ_userId              OBJ_pilotAttributeType,1L\n\n#define LN_textEncodedORAddress         \"textEncodedORAddress\"\n#define NID_textEncodedORAddress                459\n#define OBJ_textEncodedORAddress                OBJ_pilotAttributeType,2L\n\n#define SN_rfc822Mailbox                \"mail\"\n#define LN_rfc822Mailbox                \"rfc822Mailbox\"\n#define NID_rfc822Mailbox               460\n#define OBJ_rfc822Mailbox               OBJ_pilotAttributeType,3L\n\n#define SN_info         \"info\"\n#define NID_info                461\n#define OBJ_info                OBJ_pilotAttributeType,4L\n\n#define LN_favouriteDrink               \"favouriteDrink\"\n#define NID_favouriteDrink              462\n#define OBJ_favouriteDrink              OBJ_pilotAttributeType,5L\n\n#define LN_roomNumber           \"roomNumber\"\n#define NID_roomNumber          463\n#define OBJ_roomNumber          OBJ_pilotAttributeType,6L\n\n#define SN_photo                \"photo\"\n#define NID_photo               464\n#define OBJ_photo               OBJ_pilotAttributeType,7L\n\n#define LN_userClass            \"userClass\"\n#define NID_userClass           465\n#define OBJ_userClass           OBJ_pilotAttributeType,8L\n\n#define SN_host         \"host\"\n#define NID_host                466\n#define OBJ_host                OBJ_pilotAttributeType,9L\n\n#define SN_manager              \"manager\"\n#define NID_manager             467\n#define OBJ_manager             OBJ_pilotAttributeType,10L\n\n#define LN_documentIdentifier           \"documentIdentifier\"\n#define NID_documentIdentifier          468\n#define OBJ_documentIdentifier          OBJ_pilotAttributeType,11L\n\n#define LN_documentTitle                \"documentTitle\"\n#define NID_documentTitle               469\n#define OBJ_documentTitle               OBJ_pilotAttributeType,12L\n\n#define LN_documentVersion              \"documentVersion\"\n#define NID_documentVersion             470\n#define OBJ_documentVersion             OBJ_pilotAttributeType,13L\n\n#define LN_documentAuthor               \"documentAuthor\"\n#define NID_documentAuthor              471\n#define OBJ_documentAuthor              OBJ_pilotAttributeType,14L\n\n#define LN_documentLocation             \"documentLocation\"\n#define NID_documentLocation            472\n#define OBJ_documentLocation            OBJ_pilotAttributeType,15L\n\n#define LN_homeTelephoneNumber          \"homeTelephoneNumber\"\n#define NID_homeTelephoneNumber         473\n#define OBJ_homeTelephoneNumber         OBJ_pilotAttributeType,20L\n\n#define SN_secretary            \"secretary\"\n#define NID_secretary           474\n#define OBJ_secretary           OBJ_pilotAttributeType,21L\n\n#define LN_otherMailbox         \"otherMailbox\"\n#define NID_otherMailbox                475\n#define OBJ_otherMailbox                OBJ_pilotAttributeType,22L\n\n#define LN_lastModifiedTime             \"lastModifiedTime\"\n#define NID_lastModifiedTime            476\n#define OBJ_lastModifiedTime            OBJ_pilotAttributeType,23L\n\n#define LN_lastModifiedBy               \"lastModifiedBy\"\n#define NID_lastModifiedBy              477\n#define OBJ_lastModifiedBy              OBJ_pilotAttributeType,24L\n\n#define SN_domainComponent              \"DC\"\n#define LN_domainComponent              \"domainComponent\"\n#define NID_domainComponent             391\n#define OBJ_domainComponent             OBJ_pilotAttributeType,25L\n\n#define LN_aRecord              \"aRecord\"\n#define NID_aRecord             478\n#define OBJ_aRecord             OBJ_pilotAttributeType,26L\n\n#define LN_pilotAttributeType27         \"pilotAttributeType27\"\n#define NID_pilotAttributeType27                479\n#define OBJ_pilotAttributeType27                OBJ_pilotAttributeType,27L\n\n#define LN_mXRecord             \"mXRecord\"\n#define NID_mXRecord            480\n#define OBJ_mXRecord            OBJ_pilotAttributeType,28L\n\n#define LN_nSRecord             \"nSRecord\"\n#define NID_nSRecord            481\n#define OBJ_nSRecord            OBJ_pilotAttributeType,29L\n\n#define LN_sOARecord            \"sOARecord\"\n#define NID_sOARecord           482\n#define OBJ_sOARecord           OBJ_pilotAttributeType,30L\n\n#define LN_cNAMERecord          \"cNAMERecord\"\n#define NID_cNAMERecord         483\n#define OBJ_cNAMERecord         OBJ_pilotAttributeType,31L\n\n#define LN_associatedDomain             \"associatedDomain\"\n#define NID_associatedDomain            484\n#define OBJ_associatedDomain            OBJ_pilotAttributeType,37L\n\n#define LN_associatedName               \"associatedName\"\n#define NID_associatedName              485\n#define OBJ_associatedName              OBJ_pilotAttributeType,38L\n\n#define LN_homePostalAddress            \"homePostalAddress\"\n#define NID_homePostalAddress           486\n#define OBJ_homePostalAddress           OBJ_pilotAttributeType,39L\n\n#define LN_personalTitle                \"personalTitle\"\n#define NID_personalTitle               487\n#define OBJ_personalTitle               OBJ_pilotAttributeType,40L\n\n#define LN_mobileTelephoneNumber                \"mobileTelephoneNumber\"\n#define NID_mobileTelephoneNumber               488\n#define OBJ_mobileTelephoneNumber               OBJ_pilotAttributeType,41L\n\n#define LN_pagerTelephoneNumber         \"pagerTelephoneNumber\"\n#define NID_pagerTelephoneNumber                489\n#define OBJ_pagerTelephoneNumber                OBJ_pilotAttributeType,42L\n\n#define LN_friendlyCountryName          \"friendlyCountryName\"\n#define NID_friendlyCountryName         490\n#define OBJ_friendlyCountryName         OBJ_pilotAttributeType,43L\n\n#define SN_uniqueIdentifier             \"uid\"\n#define LN_uniqueIdentifier             \"uniqueIdentifier\"\n#define NID_uniqueIdentifier            102\n#define OBJ_uniqueIdentifier            OBJ_pilotAttributeType,44L\n\n#define LN_organizationalStatus         \"organizationalStatus\"\n#define NID_organizationalStatus                491\n#define OBJ_organizationalStatus                OBJ_pilotAttributeType,45L\n\n#define LN_janetMailbox         \"janetMailbox\"\n#define NID_janetMailbox                492\n#define OBJ_janetMailbox                OBJ_pilotAttributeType,46L\n\n#define LN_mailPreferenceOption         \"mailPreferenceOption\"\n#define NID_mailPreferenceOption                493\n#define OBJ_mailPreferenceOption                OBJ_pilotAttributeType,47L\n\n#define LN_buildingName         \"buildingName\"\n#define NID_buildingName                494\n#define OBJ_buildingName                OBJ_pilotAttributeType,48L\n\n#define LN_dSAQuality           \"dSAQuality\"\n#define NID_dSAQuality          495\n#define OBJ_dSAQuality          OBJ_pilotAttributeType,49L\n\n#define LN_singleLevelQuality           \"singleLevelQuality\"\n#define NID_singleLevelQuality          496\n#define OBJ_singleLevelQuality          OBJ_pilotAttributeType,50L\n\n#define LN_subtreeMinimumQuality                \"subtreeMinimumQuality\"\n#define NID_subtreeMinimumQuality               497\n#define OBJ_subtreeMinimumQuality               OBJ_pilotAttributeType,51L\n\n#define LN_subtreeMaximumQuality                \"subtreeMaximumQuality\"\n#define NID_subtreeMaximumQuality               498\n#define OBJ_subtreeMaximumQuality               OBJ_pilotAttributeType,52L\n\n#define LN_personalSignature            \"personalSignature\"\n#define NID_personalSignature           499\n#define OBJ_personalSignature           OBJ_pilotAttributeType,53L\n\n#define LN_dITRedirect          \"dITRedirect\"\n#define NID_dITRedirect         500\n#define OBJ_dITRedirect         OBJ_pilotAttributeType,54L\n\n#define SN_audio                \"audio\"\n#define NID_audio               501\n#define OBJ_audio               OBJ_pilotAttributeType,55L\n\n#define LN_documentPublisher            \"documentPublisher\"\n#define NID_documentPublisher           502\n#define OBJ_documentPublisher           OBJ_pilotAttributeType,56L\n\n#define SN_id_set               \"id-set\"\n#define LN_id_set               \"Secure Electronic Transactions\"\n#define NID_id_set              512\n#define OBJ_id_set              OBJ_international_organizations,42L\n\n#define SN_set_ctype            \"set-ctype\"\n#define LN_set_ctype            \"content types\"\n#define NID_set_ctype           513\n#define OBJ_set_ctype           OBJ_id_set,0L\n\n#define SN_set_msgExt           \"set-msgExt\"\n#define LN_set_msgExt           \"message extensions\"\n#define NID_set_msgExt          514\n#define OBJ_set_msgExt          OBJ_id_set,1L\n\n#define SN_set_attr             \"set-attr\"\n#define NID_set_attr            515\n#define OBJ_set_attr            OBJ_id_set,3L\n\n#define SN_set_policy           \"set-policy\"\n#define NID_set_policy          516\n#define OBJ_set_policy          OBJ_id_set,5L\n\n#define SN_set_certExt          \"set-certExt\"\n#define LN_set_certExt          \"certificate extensions\"\n#define NID_set_certExt         517\n#define OBJ_set_certExt         OBJ_id_set,7L\n\n#define SN_set_brand            \"set-brand\"\n#define NID_set_brand           518\n#define OBJ_set_brand           OBJ_id_set,8L\n\n#define SN_setct_PANData                \"setct-PANData\"\n#define NID_setct_PANData               519\n#define OBJ_setct_PANData               OBJ_set_ctype,0L\n\n#define SN_setct_PANToken               \"setct-PANToken\"\n#define NID_setct_PANToken              520\n#define OBJ_setct_PANToken              OBJ_set_ctype,1L\n\n#define SN_setct_PANOnly                \"setct-PANOnly\"\n#define NID_setct_PANOnly               521\n#define OBJ_setct_PANOnly               OBJ_set_ctype,2L\n\n#define SN_setct_OIData         \"setct-OIData\"\n#define NID_setct_OIData                522\n#define OBJ_setct_OIData                OBJ_set_ctype,3L\n\n#define SN_setct_PI             \"setct-PI\"\n#define NID_setct_PI            523\n#define OBJ_setct_PI            OBJ_set_ctype,4L\n\n#define SN_setct_PIData         \"setct-PIData\"\n#define NID_setct_PIData                524\n#define OBJ_setct_PIData                OBJ_set_ctype,5L\n\n#define SN_setct_PIDataUnsigned         \"setct-PIDataUnsigned\"\n#define NID_setct_PIDataUnsigned                525\n#define OBJ_setct_PIDataUnsigned                OBJ_set_ctype,6L\n\n#define SN_setct_HODInput               \"setct-HODInput\"\n#define NID_setct_HODInput              526\n#define OBJ_setct_HODInput              OBJ_set_ctype,7L\n\n#define SN_setct_AuthResBaggage         \"setct-AuthResBaggage\"\n#define NID_setct_AuthResBaggage                527\n#define OBJ_setct_AuthResBaggage                OBJ_set_ctype,8L\n\n#define SN_setct_AuthRevReqBaggage              \"setct-AuthRevReqBaggage\"\n#define NID_setct_AuthRevReqBaggage             528\n#define OBJ_setct_AuthRevReqBaggage             OBJ_set_ctype,9L\n\n#define SN_setct_AuthRevResBaggage              \"setct-AuthRevResBaggage\"\n#define NID_setct_AuthRevResBaggage             529\n#define OBJ_setct_AuthRevResBaggage             OBJ_set_ctype,10L\n\n#define SN_setct_CapTokenSeq            \"setct-CapTokenSeq\"\n#define NID_setct_CapTokenSeq           530\n#define OBJ_setct_CapTokenSeq           OBJ_set_ctype,11L\n\n#define SN_setct_PInitResData           \"setct-PInitResData\"\n#define NID_setct_PInitResData          531\n#define OBJ_setct_PInitResData          OBJ_set_ctype,12L\n\n#define SN_setct_PI_TBS         \"setct-PI-TBS\"\n#define NID_setct_PI_TBS                532\n#define OBJ_setct_PI_TBS                OBJ_set_ctype,13L\n\n#define SN_setct_PResData               \"setct-PResData\"\n#define NID_setct_PResData              533\n#define OBJ_setct_PResData              OBJ_set_ctype,14L\n\n#define SN_setct_AuthReqTBS             \"setct-AuthReqTBS\"\n#define NID_setct_AuthReqTBS            534\n#define OBJ_setct_AuthReqTBS            OBJ_set_ctype,16L\n\n#define SN_setct_AuthResTBS             \"setct-AuthResTBS\"\n#define NID_setct_AuthResTBS            535\n#define OBJ_setct_AuthResTBS            OBJ_set_ctype,17L\n\n#define SN_setct_AuthResTBSX            \"setct-AuthResTBSX\"\n#define NID_setct_AuthResTBSX           536\n#define OBJ_setct_AuthResTBSX           OBJ_set_ctype,18L\n\n#define SN_setct_AuthTokenTBS           \"setct-AuthTokenTBS\"\n#define NID_setct_AuthTokenTBS          537\n#define OBJ_setct_AuthTokenTBS          OBJ_set_ctype,19L\n\n#define SN_setct_CapTokenData           \"setct-CapTokenData\"\n#define NID_setct_CapTokenData          538\n#define OBJ_setct_CapTokenData          OBJ_set_ctype,20L\n\n#define SN_setct_CapTokenTBS            \"setct-CapTokenTBS\"\n#define NID_setct_CapTokenTBS           539\n#define OBJ_setct_CapTokenTBS           OBJ_set_ctype,21L\n\n#define SN_setct_AcqCardCodeMsg         \"setct-AcqCardCodeMsg\"\n#define NID_setct_AcqCardCodeMsg                540\n#define OBJ_setct_AcqCardCodeMsg                OBJ_set_ctype,22L\n\n#define SN_setct_AuthRevReqTBS          \"setct-AuthRevReqTBS\"\n#define NID_setct_AuthRevReqTBS         541\n#define OBJ_setct_AuthRevReqTBS         OBJ_set_ctype,23L\n\n#define SN_setct_AuthRevResData         \"setct-AuthRevResData\"\n#define NID_setct_AuthRevResData                542\n#define OBJ_setct_AuthRevResData                OBJ_set_ctype,24L\n\n#define SN_setct_AuthRevResTBS          \"setct-AuthRevResTBS\"\n#define NID_setct_AuthRevResTBS         543\n#define OBJ_setct_AuthRevResTBS         OBJ_set_ctype,25L\n\n#define SN_setct_CapReqTBS              \"setct-CapReqTBS\"\n#define NID_setct_CapReqTBS             544\n#define OBJ_setct_CapReqTBS             OBJ_set_ctype,26L\n\n#define SN_setct_CapReqTBSX             \"setct-CapReqTBSX\"\n#define NID_setct_CapReqTBSX            545\n#define OBJ_setct_CapReqTBSX            OBJ_set_ctype,27L\n\n#define SN_setct_CapResData             \"setct-CapResData\"\n#define NID_setct_CapResData            546\n#define OBJ_setct_CapResData            OBJ_set_ctype,28L\n\n#define SN_setct_CapRevReqTBS           \"setct-CapRevReqTBS\"\n#define NID_setct_CapRevReqTBS          547\n#define OBJ_setct_CapRevReqTBS          OBJ_set_ctype,29L\n\n#define SN_setct_CapRevReqTBSX          \"setct-CapRevReqTBSX\"\n#define NID_setct_CapRevReqTBSX         548\n#define OBJ_setct_CapRevReqTBSX         OBJ_set_ctype,30L\n\n#define SN_setct_CapRevResData          \"setct-CapRevResData\"\n#define NID_setct_CapRevResData         549\n#define OBJ_setct_CapRevResData         OBJ_set_ctype,31L\n\n#define SN_setct_CredReqTBS             \"setct-CredReqTBS\"\n#define NID_setct_CredReqTBS            550\n#define OBJ_setct_CredReqTBS            OBJ_set_ctype,32L\n\n#define SN_setct_CredReqTBSX            \"setct-CredReqTBSX\"\n#define NID_setct_CredReqTBSX           551\n#define OBJ_setct_CredReqTBSX           OBJ_set_ctype,33L\n\n#define SN_setct_CredResData            \"setct-CredResData\"\n#define NID_setct_CredResData           552\n#define OBJ_setct_CredResData           OBJ_set_ctype,34L\n\n#define SN_setct_CredRevReqTBS          \"setct-CredRevReqTBS\"\n#define NID_setct_CredRevReqTBS         553\n#define OBJ_setct_CredRevReqTBS         OBJ_set_ctype,35L\n\n#define SN_setct_CredRevReqTBSX         \"setct-CredRevReqTBSX\"\n#define NID_setct_CredRevReqTBSX                554\n#define OBJ_setct_CredRevReqTBSX                OBJ_set_ctype,36L\n\n#define SN_setct_CredRevResData         \"setct-CredRevResData\"\n#define NID_setct_CredRevResData                555\n#define OBJ_setct_CredRevResData                OBJ_set_ctype,37L\n\n#define SN_setct_PCertReqData           \"setct-PCertReqData\"\n#define NID_setct_PCertReqData          556\n#define OBJ_setct_PCertReqData          OBJ_set_ctype,38L\n\n#define SN_setct_PCertResTBS            \"setct-PCertResTBS\"\n#define NID_setct_PCertResTBS           557\n#define OBJ_setct_PCertResTBS           OBJ_set_ctype,39L\n\n#define SN_setct_BatchAdminReqData              \"setct-BatchAdminReqData\"\n#define NID_setct_BatchAdminReqData             558\n#define OBJ_setct_BatchAdminReqData             OBJ_set_ctype,40L\n\n#define SN_setct_BatchAdminResData              \"setct-BatchAdminResData\"\n#define NID_setct_BatchAdminResData             559\n#define OBJ_setct_BatchAdminResData             OBJ_set_ctype,41L\n\n#define SN_setct_CardCInitResTBS                \"setct-CardCInitResTBS\"\n#define NID_setct_CardCInitResTBS               560\n#define OBJ_setct_CardCInitResTBS               OBJ_set_ctype,42L\n\n#define SN_setct_MeAqCInitResTBS                \"setct-MeAqCInitResTBS\"\n#define NID_setct_MeAqCInitResTBS               561\n#define OBJ_setct_MeAqCInitResTBS               OBJ_set_ctype,43L\n\n#define SN_setct_RegFormResTBS          \"setct-RegFormResTBS\"\n#define NID_setct_RegFormResTBS         562\n#define OBJ_setct_RegFormResTBS         OBJ_set_ctype,44L\n\n#define SN_setct_CertReqData            \"setct-CertReqData\"\n#define NID_setct_CertReqData           563\n#define OBJ_setct_CertReqData           OBJ_set_ctype,45L\n\n#define SN_setct_CertReqTBS             \"setct-CertReqTBS\"\n#define NID_setct_CertReqTBS            564\n#define OBJ_setct_CertReqTBS            OBJ_set_ctype,46L\n\n#define SN_setct_CertResData            \"setct-CertResData\"\n#define NID_setct_CertResData           565\n#define OBJ_setct_CertResData           OBJ_set_ctype,47L\n\n#define SN_setct_CertInqReqTBS          \"setct-CertInqReqTBS\"\n#define NID_setct_CertInqReqTBS         566\n#define OBJ_setct_CertInqReqTBS         OBJ_set_ctype,48L\n\n#define SN_setct_ErrorTBS               \"setct-ErrorTBS\"\n#define NID_setct_ErrorTBS              567\n#define OBJ_setct_ErrorTBS              OBJ_set_ctype,49L\n\n#define SN_setct_PIDualSignedTBE                \"setct-PIDualSignedTBE\"\n#define NID_setct_PIDualSignedTBE               568\n#define OBJ_setct_PIDualSignedTBE               OBJ_set_ctype,50L\n\n#define SN_setct_PIUnsignedTBE          \"setct-PIUnsignedTBE\"\n#define NID_setct_PIUnsignedTBE         569\n#define OBJ_setct_PIUnsignedTBE         OBJ_set_ctype,51L\n\n#define SN_setct_AuthReqTBE             \"setct-AuthReqTBE\"\n#define NID_setct_AuthReqTBE            570\n#define OBJ_setct_AuthReqTBE            OBJ_set_ctype,52L\n\n#define SN_setct_AuthResTBE             \"setct-AuthResTBE\"\n#define NID_setct_AuthResTBE            571\n#define OBJ_setct_AuthResTBE            OBJ_set_ctype,53L\n\n#define SN_setct_AuthResTBEX            \"setct-AuthResTBEX\"\n#define NID_setct_AuthResTBEX           572\n#define OBJ_setct_AuthResTBEX           OBJ_set_ctype,54L\n\n#define SN_setct_AuthTokenTBE           \"setct-AuthTokenTBE\"\n#define NID_setct_AuthTokenTBE          573\n#define OBJ_setct_AuthTokenTBE          OBJ_set_ctype,55L\n\n#define SN_setct_CapTokenTBE            \"setct-CapTokenTBE\"\n#define NID_setct_CapTokenTBE           574\n#define OBJ_setct_CapTokenTBE           OBJ_set_ctype,56L\n\n#define SN_setct_CapTokenTBEX           \"setct-CapTokenTBEX\"\n#define NID_setct_CapTokenTBEX          575\n#define OBJ_setct_CapTokenTBEX          OBJ_set_ctype,57L\n\n#define SN_setct_AcqCardCodeMsgTBE              \"setct-AcqCardCodeMsgTBE\"\n#define NID_setct_AcqCardCodeMsgTBE             576\n#define OBJ_setct_AcqCardCodeMsgTBE             OBJ_set_ctype,58L\n\n#define SN_setct_AuthRevReqTBE          \"setct-AuthRevReqTBE\"\n#define NID_setct_AuthRevReqTBE         577\n#define OBJ_setct_AuthRevReqTBE         OBJ_set_ctype,59L\n\n#define SN_setct_AuthRevResTBE          \"setct-AuthRevResTBE\"\n#define NID_setct_AuthRevResTBE         578\n#define OBJ_setct_AuthRevResTBE         OBJ_set_ctype,60L\n\n#define SN_setct_AuthRevResTBEB         \"setct-AuthRevResTBEB\"\n#define NID_setct_AuthRevResTBEB                579\n#define OBJ_setct_AuthRevResTBEB                OBJ_set_ctype,61L\n\n#define SN_setct_CapReqTBE              \"setct-CapReqTBE\"\n#define NID_setct_CapReqTBE             580\n#define OBJ_setct_CapReqTBE             OBJ_set_ctype,62L\n\n#define SN_setct_CapReqTBEX             \"setct-CapReqTBEX\"\n#define NID_setct_CapReqTBEX            581\n#define OBJ_setct_CapReqTBEX            OBJ_set_ctype,63L\n\n#define SN_setct_CapResTBE              \"setct-CapResTBE\"\n#define NID_setct_CapResTBE             582\n#define OBJ_setct_CapResTBE             OBJ_set_ctype,64L\n\n#define SN_setct_CapRevReqTBE           \"setct-CapRevReqTBE\"\n#define NID_setct_CapRevReqTBE          583\n#define OBJ_setct_CapRevReqTBE          OBJ_set_ctype,65L\n\n#define SN_setct_CapRevReqTBEX          \"setct-CapRevReqTBEX\"\n#define NID_setct_CapRevReqTBEX         584\n#define OBJ_setct_CapRevReqTBEX         OBJ_set_ctype,66L\n\n#define SN_setct_CapRevResTBE           \"setct-CapRevResTBE\"\n#define NID_setct_CapRevResTBE          585\n#define OBJ_setct_CapRevResTBE          OBJ_set_ctype,67L\n\n#define SN_setct_CredReqTBE             \"setct-CredReqTBE\"\n#define NID_setct_CredReqTBE            586\n#define OBJ_setct_CredReqTBE            OBJ_set_ctype,68L\n\n#define SN_setct_CredReqTBEX            \"setct-CredReqTBEX\"\n#define NID_setct_CredReqTBEX           587\n#define OBJ_setct_CredReqTBEX           OBJ_set_ctype,69L\n\n#define SN_setct_CredResTBE             \"setct-CredResTBE\"\n#define NID_setct_CredResTBE            588\n#define OBJ_setct_CredResTBE            OBJ_set_ctype,70L\n\n#define SN_setct_CredRevReqTBE          \"setct-CredRevReqTBE\"\n#define NID_setct_CredRevReqTBE         589\n#define OBJ_setct_CredRevReqTBE         OBJ_set_ctype,71L\n\n#define SN_setct_CredRevReqTBEX         \"setct-CredRevReqTBEX\"\n#define NID_setct_CredRevReqTBEX                590\n#define OBJ_setct_CredRevReqTBEX                OBJ_set_ctype,72L\n\n#define SN_setct_CredRevResTBE          \"setct-CredRevResTBE\"\n#define NID_setct_CredRevResTBE         591\n#define OBJ_setct_CredRevResTBE         OBJ_set_ctype,73L\n\n#define SN_setct_BatchAdminReqTBE               \"setct-BatchAdminReqTBE\"\n#define NID_setct_BatchAdminReqTBE              592\n#define OBJ_setct_BatchAdminReqTBE              OBJ_set_ctype,74L\n\n#define SN_setct_BatchAdminResTBE               \"setct-BatchAdminResTBE\"\n#define NID_setct_BatchAdminResTBE              593\n#define OBJ_setct_BatchAdminResTBE              OBJ_set_ctype,75L\n\n#define SN_setct_RegFormReqTBE          \"setct-RegFormReqTBE\"\n#define NID_setct_RegFormReqTBE         594\n#define OBJ_setct_RegFormReqTBE         OBJ_set_ctype,76L\n\n#define SN_setct_CertReqTBE             \"setct-CertReqTBE\"\n#define NID_setct_CertReqTBE            595\n#define OBJ_setct_CertReqTBE            OBJ_set_ctype,77L\n\n#define SN_setct_CertReqTBEX            \"setct-CertReqTBEX\"\n#define NID_setct_CertReqTBEX           596\n#define OBJ_setct_CertReqTBEX           OBJ_set_ctype,78L\n\n#define SN_setct_CertResTBE             \"setct-CertResTBE\"\n#define NID_setct_CertResTBE            597\n#define OBJ_setct_CertResTBE            OBJ_set_ctype,79L\n\n#define SN_setct_CRLNotificationTBS             \"setct-CRLNotificationTBS\"\n#define NID_setct_CRLNotificationTBS            598\n#define OBJ_setct_CRLNotificationTBS            OBJ_set_ctype,80L\n\n#define SN_setct_CRLNotificationResTBS          \"setct-CRLNotificationResTBS\"\n#define NID_setct_CRLNotificationResTBS         599\n#define OBJ_setct_CRLNotificationResTBS         OBJ_set_ctype,81L\n\n#define SN_setct_BCIDistributionTBS             \"setct-BCIDistributionTBS\"\n#define NID_setct_BCIDistributionTBS            600\n#define OBJ_setct_BCIDistributionTBS            OBJ_set_ctype,82L\n\n#define SN_setext_genCrypt              \"setext-genCrypt\"\n#define LN_setext_genCrypt              \"generic cryptogram\"\n#define NID_setext_genCrypt             601\n#define OBJ_setext_genCrypt             OBJ_set_msgExt,1L\n\n#define SN_setext_miAuth                \"setext-miAuth\"\n#define LN_setext_miAuth                \"merchant initiated auth\"\n#define NID_setext_miAuth               602\n#define OBJ_setext_miAuth               OBJ_set_msgExt,3L\n\n#define SN_setext_pinSecure             \"setext-pinSecure\"\n#define NID_setext_pinSecure            603\n#define OBJ_setext_pinSecure            OBJ_set_msgExt,4L\n\n#define SN_setext_pinAny                \"setext-pinAny\"\n#define NID_setext_pinAny               604\n#define OBJ_setext_pinAny               OBJ_set_msgExt,5L\n\n#define SN_setext_track2                \"setext-track2\"\n#define NID_setext_track2               605\n#define OBJ_setext_track2               OBJ_set_msgExt,7L\n\n#define SN_setext_cv            \"setext-cv\"\n#define LN_setext_cv            \"additional verification\"\n#define NID_setext_cv           606\n#define OBJ_setext_cv           OBJ_set_msgExt,8L\n\n#define SN_set_policy_root              \"set-policy-root\"\n#define NID_set_policy_root             607\n#define OBJ_set_policy_root             OBJ_set_policy,0L\n\n#define SN_setCext_hashedRoot           \"setCext-hashedRoot\"\n#define NID_setCext_hashedRoot          608\n#define OBJ_setCext_hashedRoot          OBJ_set_certExt,0L\n\n#define SN_setCext_certType             \"setCext-certType\"\n#define NID_setCext_certType            609\n#define OBJ_setCext_certType            OBJ_set_certExt,1L\n\n#define SN_setCext_merchData            \"setCext-merchData\"\n#define NID_setCext_merchData           610\n#define OBJ_setCext_merchData           OBJ_set_certExt,2L\n\n#define SN_setCext_cCertRequired                \"setCext-cCertRequired\"\n#define NID_setCext_cCertRequired               611\n#define OBJ_setCext_cCertRequired               OBJ_set_certExt,3L\n\n#define SN_setCext_tunneling            \"setCext-tunneling\"\n#define NID_setCext_tunneling           612\n#define OBJ_setCext_tunneling           OBJ_set_certExt,4L\n\n#define SN_setCext_setExt               \"setCext-setExt\"\n#define NID_setCext_setExt              613\n#define OBJ_setCext_setExt              OBJ_set_certExt,5L\n\n#define SN_setCext_setQualf             \"setCext-setQualf\"\n#define NID_setCext_setQualf            614\n#define OBJ_setCext_setQualf            OBJ_set_certExt,6L\n\n#define SN_setCext_PGWYcapabilities             \"setCext-PGWYcapabilities\"\n#define NID_setCext_PGWYcapabilities            615\n#define OBJ_setCext_PGWYcapabilities            OBJ_set_certExt,7L\n\n#define SN_setCext_TokenIdentifier              \"setCext-TokenIdentifier\"\n#define NID_setCext_TokenIdentifier             616\n#define OBJ_setCext_TokenIdentifier             OBJ_set_certExt,8L\n\n#define SN_setCext_Track2Data           \"setCext-Track2Data\"\n#define NID_setCext_Track2Data          617\n#define OBJ_setCext_Track2Data          OBJ_set_certExt,9L\n\n#define SN_setCext_TokenType            \"setCext-TokenType\"\n#define NID_setCext_TokenType           618\n#define OBJ_setCext_TokenType           OBJ_set_certExt,10L\n\n#define SN_setCext_IssuerCapabilities           \"setCext-IssuerCapabilities\"\n#define NID_setCext_IssuerCapabilities          619\n#define OBJ_setCext_IssuerCapabilities          OBJ_set_certExt,11L\n\n#define SN_setAttr_Cert         \"setAttr-Cert\"\n#define NID_setAttr_Cert                620\n#define OBJ_setAttr_Cert                OBJ_set_attr,0L\n\n#define SN_setAttr_PGWYcap              \"setAttr-PGWYcap\"\n#define LN_setAttr_PGWYcap              \"payment gateway capabilities\"\n#define NID_setAttr_PGWYcap             621\n#define OBJ_setAttr_PGWYcap             OBJ_set_attr,1L\n\n#define SN_setAttr_TokenType            \"setAttr-TokenType\"\n#define NID_setAttr_TokenType           622\n#define OBJ_setAttr_TokenType           OBJ_set_attr,2L\n\n#define SN_setAttr_IssCap               \"setAttr-IssCap\"\n#define LN_setAttr_IssCap               \"issuer capabilities\"\n#define NID_setAttr_IssCap              623\n#define OBJ_setAttr_IssCap              OBJ_set_attr,3L\n\n#define SN_set_rootKeyThumb             \"set-rootKeyThumb\"\n#define NID_set_rootKeyThumb            624\n#define OBJ_set_rootKeyThumb            OBJ_setAttr_Cert,0L\n\n#define SN_set_addPolicy                \"set-addPolicy\"\n#define NID_set_addPolicy               625\n#define OBJ_set_addPolicy               OBJ_setAttr_Cert,1L\n\n#define SN_setAttr_Token_EMV            \"setAttr-Token-EMV\"\n#define NID_setAttr_Token_EMV           626\n#define OBJ_setAttr_Token_EMV           OBJ_setAttr_TokenType,1L\n\n#define SN_setAttr_Token_B0Prime                \"setAttr-Token-B0Prime\"\n#define NID_setAttr_Token_B0Prime               627\n#define OBJ_setAttr_Token_B0Prime               OBJ_setAttr_TokenType,2L\n\n#define SN_setAttr_IssCap_CVM           \"setAttr-IssCap-CVM\"\n#define NID_setAttr_IssCap_CVM          628\n#define OBJ_setAttr_IssCap_CVM          OBJ_setAttr_IssCap,3L\n\n#define SN_setAttr_IssCap_T2            \"setAttr-IssCap-T2\"\n#define NID_setAttr_IssCap_T2           629\n#define OBJ_setAttr_IssCap_T2           OBJ_setAttr_IssCap,4L\n\n#define SN_setAttr_IssCap_Sig           \"setAttr-IssCap-Sig\"\n#define NID_setAttr_IssCap_Sig          630\n#define OBJ_setAttr_IssCap_Sig          OBJ_setAttr_IssCap,5L\n\n#define SN_setAttr_GenCryptgrm          \"setAttr-GenCryptgrm\"\n#define LN_setAttr_GenCryptgrm          \"generate cryptogram\"\n#define NID_setAttr_GenCryptgrm         631\n#define OBJ_setAttr_GenCryptgrm         OBJ_setAttr_IssCap_CVM,1L\n\n#define SN_setAttr_T2Enc                \"setAttr-T2Enc\"\n#define LN_setAttr_T2Enc                \"encrypted track 2\"\n#define NID_setAttr_T2Enc               632\n#define OBJ_setAttr_T2Enc               OBJ_setAttr_IssCap_T2,1L\n\n#define SN_setAttr_T2cleartxt           \"setAttr-T2cleartxt\"\n#define LN_setAttr_T2cleartxt           \"cleartext track 2\"\n#define NID_setAttr_T2cleartxt          633\n#define OBJ_setAttr_T2cleartxt          OBJ_setAttr_IssCap_T2,2L\n\n#define SN_setAttr_TokICCsig            \"setAttr-TokICCsig\"\n#define LN_setAttr_TokICCsig            \"ICC or token signature\"\n#define NID_setAttr_TokICCsig           634\n#define OBJ_setAttr_TokICCsig           OBJ_setAttr_IssCap_Sig,1L\n\n#define SN_setAttr_SecDevSig            \"setAttr-SecDevSig\"\n#define LN_setAttr_SecDevSig            \"secure device signature\"\n#define NID_setAttr_SecDevSig           635\n#define OBJ_setAttr_SecDevSig           OBJ_setAttr_IssCap_Sig,2L\n\n#define SN_set_brand_IATA_ATA           \"set-brand-IATA-ATA\"\n#define NID_set_brand_IATA_ATA          636\n#define OBJ_set_brand_IATA_ATA          OBJ_set_brand,1L\n\n#define SN_set_brand_Diners             \"set-brand-Diners\"\n#define NID_set_brand_Diners            637\n#define OBJ_set_brand_Diners            OBJ_set_brand,30L\n\n#define SN_set_brand_AmericanExpress            \"set-brand-AmericanExpress\"\n#define NID_set_brand_AmericanExpress           638\n#define OBJ_set_brand_AmericanExpress           OBJ_set_brand,34L\n\n#define SN_set_brand_JCB                \"set-brand-JCB\"\n#define NID_set_brand_JCB               639\n#define OBJ_set_brand_JCB               OBJ_set_brand,35L\n\n#define SN_set_brand_Visa               \"set-brand-Visa\"\n#define NID_set_brand_Visa              640\n#define OBJ_set_brand_Visa              OBJ_set_brand,4L\n\n#define SN_set_brand_MasterCard         \"set-brand-MasterCard\"\n#define NID_set_brand_MasterCard                641\n#define OBJ_set_brand_MasterCard                OBJ_set_brand,5L\n\n#define SN_set_brand_Novus              \"set-brand-Novus\"\n#define NID_set_brand_Novus             642\n#define OBJ_set_brand_Novus             OBJ_set_brand,6011L\n\n#define SN_des_cdmf             \"DES-CDMF\"\n#define LN_des_cdmf             \"des-cdmf\"\n#define NID_des_cdmf            643\n#define OBJ_des_cdmf            OBJ_rsadsi,3L,10L\n\n#define SN_rsaOAEPEncryptionSET         \"rsaOAEPEncryptionSET\"\n#define NID_rsaOAEPEncryptionSET                644\n#define OBJ_rsaOAEPEncryptionSET                OBJ_rsadsi,1L,1L,6L\n\n#define SN_ipsec3               \"Oakley-EC2N-3\"\n#define LN_ipsec3               \"ipsec3\"\n#define NID_ipsec3              749\n\n#define SN_ipsec4               \"Oakley-EC2N-4\"\n#define LN_ipsec4               \"ipsec4\"\n#define NID_ipsec4              750\n\n#define SN_whirlpool            \"whirlpool\"\n#define NID_whirlpool           804\n#define OBJ_whirlpool           OBJ_iso,0L,10118L,3L,0L,55L\n\n#define SN_cryptopro            \"cryptopro\"\n#define NID_cryptopro           805\n#define OBJ_cryptopro           OBJ_member_body,643L,2L,2L\n\n#define SN_cryptocom            \"cryptocom\"\n#define NID_cryptocom           806\n#define OBJ_cryptocom           OBJ_member_body,643L,2L,9L\n\n#define SN_id_tc26              \"id-tc26\"\n#define NID_id_tc26             974\n#define OBJ_id_tc26             OBJ_member_body,643L,7L,1L\n\n#define SN_id_GostR3411_94_with_GostR3410_2001          \"id-GostR3411-94-with-GostR3410-2001\"\n#define LN_id_GostR3411_94_with_GostR3410_2001          \"GOST R 34.11-94 with GOST R 34.10-2001\"\n#define NID_id_GostR3411_94_with_GostR3410_2001         807\n#define OBJ_id_GostR3411_94_with_GostR3410_2001         OBJ_cryptopro,3L\n\n#define SN_id_GostR3411_94_with_GostR3410_94            \"id-GostR3411-94-with-GostR3410-94\"\n#define LN_id_GostR3411_94_with_GostR3410_94            \"GOST R 34.11-94 with GOST R 34.10-94\"\n#define NID_id_GostR3411_94_with_GostR3410_94           808\n#define OBJ_id_GostR3411_94_with_GostR3410_94           OBJ_cryptopro,4L\n\n#define SN_id_GostR3411_94              \"md_gost94\"\n#define LN_id_GostR3411_94              \"GOST R 34.11-94\"\n#define NID_id_GostR3411_94             809\n#define OBJ_id_GostR3411_94             OBJ_cryptopro,9L\n\n#define SN_id_HMACGostR3411_94          \"id-HMACGostR3411-94\"\n#define LN_id_HMACGostR3411_94          \"HMAC GOST 34.11-94\"\n#define NID_id_HMACGostR3411_94         810\n#define OBJ_id_HMACGostR3411_94         OBJ_cryptopro,10L\n\n#define SN_id_GostR3410_2001            \"gost2001\"\n#define LN_id_GostR3410_2001            \"GOST R 34.10-2001\"\n#define NID_id_GostR3410_2001           811\n#define OBJ_id_GostR3410_2001           OBJ_cryptopro,19L\n\n#define SN_id_GostR3410_94              \"gost94\"\n#define LN_id_GostR3410_94              \"GOST R 34.10-94\"\n#define NID_id_GostR3410_94             812\n#define OBJ_id_GostR3410_94             OBJ_cryptopro,20L\n\n#define SN_id_Gost28147_89              \"gost89\"\n#define LN_id_Gost28147_89              \"GOST 28147-89\"\n#define NID_id_Gost28147_89             813\n#define OBJ_id_Gost28147_89             OBJ_cryptopro,21L\n\n#define SN_gost89_cnt           \"gost89-cnt\"\n#define NID_gost89_cnt          814\n\n#define SN_gost89_cnt_12                \"gost89-cnt-12\"\n#define NID_gost89_cnt_12               975\n\n#define SN_gost89_cbc           \"gost89-cbc\"\n#define NID_gost89_cbc          1009\n\n#define SN_gost89_ecb           \"gost89-ecb\"\n#define NID_gost89_ecb          1010\n\n#define SN_gost89_ctr           \"gost89-ctr\"\n#define NID_gost89_ctr          1011\n\n#define SN_id_Gost28147_89_MAC          \"gost-mac\"\n#define LN_id_Gost28147_89_MAC          \"GOST 28147-89 MAC\"\n#define NID_id_Gost28147_89_MAC         815\n#define OBJ_id_Gost28147_89_MAC         OBJ_cryptopro,22L\n\n#define SN_gost_mac_12          \"gost-mac-12\"\n#define NID_gost_mac_12         976\n\n#define SN_id_GostR3411_94_prf          \"prf-gostr3411-94\"\n#define LN_id_GostR3411_94_prf          \"GOST R 34.11-94 PRF\"\n#define NID_id_GostR3411_94_prf         816\n#define OBJ_id_GostR3411_94_prf         OBJ_cryptopro,23L\n\n#define SN_id_GostR3410_2001DH          \"id-GostR3410-2001DH\"\n#define LN_id_GostR3410_2001DH          \"GOST R 34.10-2001 DH\"\n#define NID_id_GostR3410_2001DH         817\n#define OBJ_id_GostR3410_2001DH         OBJ_cryptopro,98L\n\n#define SN_id_GostR3410_94DH            \"id-GostR3410-94DH\"\n#define LN_id_GostR3410_94DH            \"GOST R 34.10-94 DH\"\n#define NID_id_GostR3410_94DH           818\n#define OBJ_id_GostR3410_94DH           OBJ_cryptopro,99L\n\n#define SN_id_Gost28147_89_CryptoPro_KeyMeshing         \"id-Gost28147-89-CryptoPro-KeyMeshing\"\n#define NID_id_Gost28147_89_CryptoPro_KeyMeshing                819\n#define OBJ_id_Gost28147_89_CryptoPro_KeyMeshing                OBJ_cryptopro,14L,1L\n\n#define SN_id_Gost28147_89_None_KeyMeshing              \"id-Gost28147-89-None-KeyMeshing\"\n#define NID_id_Gost28147_89_None_KeyMeshing             820\n#define OBJ_id_Gost28147_89_None_KeyMeshing             OBJ_cryptopro,14L,0L\n\n#define SN_id_GostR3411_94_TestParamSet         \"id-GostR3411-94-TestParamSet\"\n#define NID_id_GostR3411_94_TestParamSet                821\n#define OBJ_id_GostR3411_94_TestParamSet                OBJ_cryptopro,30L,0L\n\n#define SN_id_GostR3411_94_CryptoProParamSet            \"id-GostR3411-94-CryptoProParamSet\"\n#define NID_id_GostR3411_94_CryptoProParamSet           822\n#define OBJ_id_GostR3411_94_CryptoProParamSet           OBJ_cryptopro,30L,1L\n\n#define SN_id_Gost28147_89_TestParamSet         \"id-Gost28147-89-TestParamSet\"\n#define NID_id_Gost28147_89_TestParamSet                823\n#define OBJ_id_Gost28147_89_TestParamSet                OBJ_cryptopro,31L,0L\n\n#define SN_id_Gost28147_89_CryptoPro_A_ParamSet         \"id-Gost28147-89-CryptoPro-A-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_A_ParamSet                824\n#define OBJ_id_Gost28147_89_CryptoPro_A_ParamSet                OBJ_cryptopro,31L,1L\n\n#define SN_id_Gost28147_89_CryptoPro_B_ParamSet         \"id-Gost28147-89-CryptoPro-B-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_B_ParamSet                825\n#define OBJ_id_Gost28147_89_CryptoPro_B_ParamSet                OBJ_cryptopro,31L,2L\n\n#define SN_id_Gost28147_89_CryptoPro_C_ParamSet         \"id-Gost28147-89-CryptoPro-C-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_C_ParamSet                826\n#define OBJ_id_Gost28147_89_CryptoPro_C_ParamSet                OBJ_cryptopro,31L,3L\n\n#define SN_id_Gost28147_89_CryptoPro_D_ParamSet         \"id-Gost28147-89-CryptoPro-D-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_D_ParamSet                827\n#define OBJ_id_Gost28147_89_CryptoPro_D_ParamSet                OBJ_cryptopro,31L,4L\n\n#define SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet         \"id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet                828\n#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet                OBJ_cryptopro,31L,5L\n\n#define SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet         \"id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet                829\n#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet                OBJ_cryptopro,31L,6L\n\n#define SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet             \"id-Gost28147-89-CryptoPro-RIC-1-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet            830\n#define OBJ_id_Gost28147_89_CryptoPro_RIC_1_ParamSet            OBJ_cryptopro,31L,7L\n\n#define SN_id_GostR3410_94_TestParamSet         \"id-GostR3410-94-TestParamSet\"\n#define NID_id_GostR3410_94_TestParamSet                831\n#define OBJ_id_GostR3410_94_TestParamSet                OBJ_cryptopro,32L,0L\n\n#define SN_id_GostR3410_94_CryptoPro_A_ParamSet         \"id-GostR3410-94-CryptoPro-A-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_A_ParamSet                832\n#define OBJ_id_GostR3410_94_CryptoPro_A_ParamSet                OBJ_cryptopro,32L,2L\n\n#define SN_id_GostR3410_94_CryptoPro_B_ParamSet         \"id-GostR3410-94-CryptoPro-B-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_B_ParamSet                833\n#define OBJ_id_GostR3410_94_CryptoPro_B_ParamSet                OBJ_cryptopro,32L,3L\n\n#define SN_id_GostR3410_94_CryptoPro_C_ParamSet         \"id-GostR3410-94-CryptoPro-C-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_C_ParamSet                834\n#define OBJ_id_GostR3410_94_CryptoPro_C_ParamSet                OBJ_cryptopro,32L,4L\n\n#define SN_id_GostR3410_94_CryptoPro_D_ParamSet         \"id-GostR3410-94-CryptoPro-D-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_D_ParamSet                835\n#define OBJ_id_GostR3410_94_CryptoPro_D_ParamSet                OBJ_cryptopro,32L,5L\n\n#define SN_id_GostR3410_94_CryptoPro_XchA_ParamSet              \"id-GostR3410-94-CryptoPro-XchA-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchA_ParamSet             836\n#define OBJ_id_GostR3410_94_CryptoPro_XchA_ParamSet             OBJ_cryptopro,33L,1L\n\n#define SN_id_GostR3410_94_CryptoPro_XchB_ParamSet              \"id-GostR3410-94-CryptoPro-XchB-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchB_ParamSet             837\n#define OBJ_id_GostR3410_94_CryptoPro_XchB_ParamSet             OBJ_cryptopro,33L,2L\n\n#define SN_id_GostR3410_94_CryptoPro_XchC_ParamSet              \"id-GostR3410-94-CryptoPro-XchC-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchC_ParamSet             838\n#define OBJ_id_GostR3410_94_CryptoPro_XchC_ParamSet             OBJ_cryptopro,33L,3L\n\n#define SN_id_GostR3410_2001_TestParamSet               \"id-GostR3410-2001-TestParamSet\"\n#define NID_id_GostR3410_2001_TestParamSet              839\n#define OBJ_id_GostR3410_2001_TestParamSet              OBJ_cryptopro,35L,0L\n\n#define SN_id_GostR3410_2001_CryptoPro_A_ParamSet               \"id-GostR3410-2001-CryptoPro-A-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_A_ParamSet              840\n#define OBJ_id_GostR3410_2001_CryptoPro_A_ParamSet              OBJ_cryptopro,35L,1L\n\n#define SN_id_GostR3410_2001_CryptoPro_B_ParamSet               \"id-GostR3410-2001-CryptoPro-B-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_B_ParamSet              841\n#define OBJ_id_GostR3410_2001_CryptoPro_B_ParamSet              OBJ_cryptopro,35L,2L\n\n#define SN_id_GostR3410_2001_CryptoPro_C_ParamSet               \"id-GostR3410-2001-CryptoPro-C-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_C_ParamSet              842\n#define OBJ_id_GostR3410_2001_CryptoPro_C_ParamSet              OBJ_cryptopro,35L,3L\n\n#define SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet            \"id-GostR3410-2001-CryptoPro-XchA-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet           843\n#define OBJ_id_GostR3410_2001_CryptoPro_XchA_ParamSet           OBJ_cryptopro,36L,0L\n\n#define SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet            \"id-GostR3410-2001-CryptoPro-XchB-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet           844\n#define OBJ_id_GostR3410_2001_CryptoPro_XchB_ParamSet           OBJ_cryptopro,36L,1L\n\n#define SN_id_GostR3410_94_a            \"id-GostR3410-94-a\"\n#define NID_id_GostR3410_94_a           845\n#define OBJ_id_GostR3410_94_a           OBJ_id_GostR3410_94,1L\n\n#define SN_id_GostR3410_94_aBis         \"id-GostR3410-94-aBis\"\n#define NID_id_GostR3410_94_aBis                846\n#define OBJ_id_GostR3410_94_aBis                OBJ_id_GostR3410_94,2L\n\n#define SN_id_GostR3410_94_b            \"id-GostR3410-94-b\"\n#define NID_id_GostR3410_94_b           847\n#define OBJ_id_GostR3410_94_b           OBJ_id_GostR3410_94,3L\n\n#define SN_id_GostR3410_94_bBis         \"id-GostR3410-94-bBis\"\n#define NID_id_GostR3410_94_bBis                848\n#define OBJ_id_GostR3410_94_bBis                OBJ_id_GostR3410_94,4L\n\n#define SN_id_Gost28147_89_cc           \"id-Gost28147-89-cc\"\n#define LN_id_Gost28147_89_cc           \"GOST 28147-89 Cryptocom ParamSet\"\n#define NID_id_Gost28147_89_cc          849\n#define OBJ_id_Gost28147_89_cc          OBJ_cryptocom,1L,6L,1L\n\n#define SN_id_GostR3410_94_cc           \"gost94cc\"\n#define LN_id_GostR3410_94_cc           \"GOST 34.10-94 Cryptocom\"\n#define NID_id_GostR3410_94_cc          850\n#define OBJ_id_GostR3410_94_cc          OBJ_cryptocom,1L,5L,3L\n\n#define SN_id_GostR3410_2001_cc         \"gost2001cc\"\n#define LN_id_GostR3410_2001_cc         \"GOST 34.10-2001 Cryptocom\"\n#define NID_id_GostR3410_2001_cc                851\n#define OBJ_id_GostR3410_2001_cc                OBJ_cryptocom,1L,5L,4L\n\n#define SN_id_GostR3411_94_with_GostR3410_94_cc         \"id-GostR3411-94-with-GostR3410-94-cc\"\n#define LN_id_GostR3411_94_with_GostR3410_94_cc         \"GOST R 34.11-94 with GOST R 34.10-94 Cryptocom\"\n#define NID_id_GostR3411_94_with_GostR3410_94_cc                852\n#define OBJ_id_GostR3411_94_with_GostR3410_94_cc                OBJ_cryptocom,1L,3L,3L\n\n#define SN_id_GostR3411_94_with_GostR3410_2001_cc               \"id-GostR3411-94-with-GostR3410-2001-cc\"\n#define LN_id_GostR3411_94_with_GostR3410_2001_cc               \"GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom\"\n#define NID_id_GostR3411_94_with_GostR3410_2001_cc              853\n#define OBJ_id_GostR3411_94_with_GostR3410_2001_cc              OBJ_cryptocom,1L,3L,4L\n\n#define SN_id_GostR3410_2001_ParamSet_cc                \"id-GostR3410-2001-ParamSet-cc\"\n#define LN_id_GostR3410_2001_ParamSet_cc                \"GOST R 3410-2001 Parameter Set Cryptocom\"\n#define NID_id_GostR3410_2001_ParamSet_cc               854\n#define OBJ_id_GostR3410_2001_ParamSet_cc               OBJ_cryptocom,1L,8L,1L\n\n#define SN_id_tc26_algorithms           \"id-tc26-algorithms\"\n#define NID_id_tc26_algorithms          977\n#define OBJ_id_tc26_algorithms          OBJ_id_tc26,1L\n\n#define SN_id_tc26_sign         \"id-tc26-sign\"\n#define NID_id_tc26_sign                978\n#define OBJ_id_tc26_sign                OBJ_id_tc26_algorithms,1L\n\n#define SN_id_GostR3410_2012_256                \"gost2012_256\"\n#define LN_id_GostR3410_2012_256                \"GOST R 34.10-2012 with 256 bit modulus\"\n#define NID_id_GostR3410_2012_256               979\n#define OBJ_id_GostR3410_2012_256               OBJ_id_tc26_sign,1L\n\n#define SN_id_GostR3410_2012_512                \"gost2012_512\"\n#define LN_id_GostR3410_2012_512                \"GOST R 34.10-2012 with 512 bit modulus\"\n#define NID_id_GostR3410_2012_512               980\n#define OBJ_id_GostR3410_2012_512               OBJ_id_tc26_sign,2L\n\n#define SN_id_tc26_digest               \"id-tc26-digest\"\n#define NID_id_tc26_digest              981\n#define OBJ_id_tc26_digest              OBJ_id_tc26_algorithms,2L\n\n#define SN_id_GostR3411_2012_256                \"md_gost12_256\"\n#define LN_id_GostR3411_2012_256                \"GOST R 34.11-2012 with 256 bit hash\"\n#define NID_id_GostR3411_2012_256               982\n#define OBJ_id_GostR3411_2012_256               OBJ_id_tc26_digest,2L\n\n#define SN_id_GostR3411_2012_512                \"md_gost12_512\"\n#define LN_id_GostR3411_2012_512                \"GOST R 34.11-2012 with 512 bit hash\"\n#define NID_id_GostR3411_2012_512               983\n#define OBJ_id_GostR3411_2012_512               OBJ_id_tc26_digest,3L\n\n#define SN_id_tc26_signwithdigest               \"id-tc26-signwithdigest\"\n#define NID_id_tc26_signwithdigest              984\n#define OBJ_id_tc26_signwithdigest              OBJ_id_tc26_algorithms,3L\n\n#define SN_id_tc26_signwithdigest_gost3410_2012_256             \"id-tc26-signwithdigest-gost3410-2012-256\"\n#define LN_id_tc26_signwithdigest_gost3410_2012_256             \"GOST R 34.10-2012 with GOST R 34.11-2012 (256 bit)\"\n#define NID_id_tc26_signwithdigest_gost3410_2012_256            985\n#define OBJ_id_tc26_signwithdigest_gost3410_2012_256            OBJ_id_tc26_signwithdigest,2L\n\n#define SN_id_tc26_signwithdigest_gost3410_2012_512             \"id-tc26-signwithdigest-gost3410-2012-512\"\n#define LN_id_tc26_signwithdigest_gost3410_2012_512             \"GOST R 34.10-2012 with GOST R 34.11-2012 (512 bit)\"\n#define NID_id_tc26_signwithdigest_gost3410_2012_512            986\n#define OBJ_id_tc26_signwithdigest_gost3410_2012_512            OBJ_id_tc26_signwithdigest,3L\n\n#define SN_id_tc26_mac          \"id-tc26-mac\"\n#define NID_id_tc26_mac         987\n#define OBJ_id_tc26_mac         OBJ_id_tc26_algorithms,4L\n\n#define SN_id_tc26_hmac_gost_3411_2012_256              \"id-tc26-hmac-gost-3411-2012-256\"\n#define LN_id_tc26_hmac_gost_3411_2012_256              \"HMAC GOST 34.11-2012 256 bit\"\n#define NID_id_tc26_hmac_gost_3411_2012_256             988\n#define OBJ_id_tc26_hmac_gost_3411_2012_256             OBJ_id_tc26_mac,1L\n\n#define SN_id_tc26_hmac_gost_3411_2012_512              \"id-tc26-hmac-gost-3411-2012-512\"\n#define LN_id_tc26_hmac_gost_3411_2012_512              \"HMAC GOST 34.11-2012 512 bit\"\n#define NID_id_tc26_hmac_gost_3411_2012_512             989\n#define OBJ_id_tc26_hmac_gost_3411_2012_512             OBJ_id_tc26_mac,2L\n\n#define SN_id_tc26_cipher               \"id-tc26-cipher\"\n#define NID_id_tc26_cipher              990\n#define OBJ_id_tc26_cipher              OBJ_id_tc26_algorithms,5L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma          \"id-tc26-cipher-gostr3412-2015-magma\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma         1173\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma         OBJ_id_tc26_cipher,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm         \"id-tc26-cipher-gostr3412-2015-magma-ctracpkm\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm                1174\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm                OBJ_id_tc26_cipher_gostr3412_2015_magma,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac            \"id-tc26-cipher-gostr3412-2015-magma-ctracpkm-omac\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac           1175\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac           OBJ_id_tc26_cipher_gostr3412_2015_magma,2L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik             \"id-tc26-cipher-gostr3412-2015-kuznyechik\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik            1176\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik            OBJ_id_tc26_cipher,2L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm            \"id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm           1177\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm           OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac               \"id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm-omac\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac              1178\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac              OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,2L\n\n#define SN_id_tc26_agreement            \"id-tc26-agreement\"\n#define NID_id_tc26_agreement           991\n#define OBJ_id_tc26_agreement           OBJ_id_tc26_algorithms,6L\n\n#define SN_id_tc26_agreement_gost_3410_2012_256         \"id-tc26-agreement-gost-3410-2012-256\"\n#define NID_id_tc26_agreement_gost_3410_2012_256                992\n#define OBJ_id_tc26_agreement_gost_3410_2012_256                OBJ_id_tc26_agreement,1L\n\n#define SN_id_tc26_agreement_gost_3410_2012_512         \"id-tc26-agreement-gost-3410-2012-512\"\n#define NID_id_tc26_agreement_gost_3410_2012_512                993\n#define OBJ_id_tc26_agreement_gost_3410_2012_512                OBJ_id_tc26_agreement,2L\n\n#define SN_id_tc26_wrap         \"id-tc26-wrap\"\n#define NID_id_tc26_wrap                1179\n#define OBJ_id_tc26_wrap                OBJ_id_tc26_algorithms,7L\n\n#define SN_id_tc26_wrap_gostr3412_2015_magma            \"id-tc26-wrap-gostr3412-2015-magma\"\n#define NID_id_tc26_wrap_gostr3412_2015_magma           1180\n#define OBJ_id_tc26_wrap_gostr3412_2015_magma           OBJ_id_tc26_wrap,1L\n\n#define SN_id_tc26_wrap_gostr3412_2015_magma_kexp15             \"id-tc26-wrap-gostr3412-2015-magma-kexp15\"\n#define NID_id_tc26_wrap_gostr3412_2015_magma_kexp15            1181\n#define OBJ_id_tc26_wrap_gostr3412_2015_magma_kexp15            OBJ_id_tc26_wrap_gostr3412_2015_magma,1L\n\n#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik               \"id-tc26-wrap-gostr3412-2015-kuznyechik\"\n#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik              1182\n#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik              OBJ_id_tc26_wrap,2L\n\n#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15                \"id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15\"\n#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15               1183\n#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15               OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik,1L\n\n#define SN_id_tc26_constants            \"id-tc26-constants\"\n#define NID_id_tc26_constants           994\n#define OBJ_id_tc26_constants           OBJ_id_tc26,2L\n\n#define SN_id_tc26_sign_constants               \"id-tc26-sign-constants\"\n#define NID_id_tc26_sign_constants              995\n#define OBJ_id_tc26_sign_constants              OBJ_id_tc26_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_constants         \"id-tc26-gost-3410-2012-256-constants\"\n#define NID_id_tc26_gost_3410_2012_256_constants                1147\n#define OBJ_id_tc26_gost_3410_2012_256_constants                OBJ_id_tc26_sign_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetA         \"id-tc26-gost-3410-2012-256-paramSetA\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetA         \"GOST R 34.10-2012 (256 bit) ParamSet A\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetA                1148\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetA                OBJ_id_tc26_gost_3410_2012_256_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetB         \"id-tc26-gost-3410-2012-256-paramSetB\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetB         \"GOST R 34.10-2012 (256 bit) ParamSet B\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetB                1184\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetB                OBJ_id_tc26_gost_3410_2012_256_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetC         \"id-tc26-gost-3410-2012-256-paramSetC\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetC         \"GOST R 34.10-2012 (256 bit) ParamSet C\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetC                1185\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetC                OBJ_id_tc26_gost_3410_2012_256_constants,3L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetD         \"id-tc26-gost-3410-2012-256-paramSetD\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetD         \"GOST R 34.10-2012 (256 bit) ParamSet D\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetD                1186\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetD                OBJ_id_tc26_gost_3410_2012_256_constants,4L\n\n#define SN_id_tc26_gost_3410_2012_512_constants         \"id-tc26-gost-3410-2012-512-constants\"\n#define NID_id_tc26_gost_3410_2012_512_constants                996\n#define OBJ_id_tc26_gost_3410_2012_512_constants                OBJ_id_tc26_sign_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetTest              \"id-tc26-gost-3410-2012-512-paramSetTest\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetTest              \"GOST R 34.10-2012 (512 bit) testing parameter set\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetTest             997\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetTest             OBJ_id_tc26_gost_3410_2012_512_constants,0L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetA         \"id-tc26-gost-3410-2012-512-paramSetA\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetA         \"GOST R 34.10-2012 (512 bit) ParamSet A\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetA                998\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetA                OBJ_id_tc26_gost_3410_2012_512_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetB         \"id-tc26-gost-3410-2012-512-paramSetB\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetB         \"GOST R 34.10-2012 (512 bit) ParamSet B\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetB                999\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetB                OBJ_id_tc26_gost_3410_2012_512_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetC         \"id-tc26-gost-3410-2012-512-paramSetC\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetC         \"GOST R 34.10-2012 (512 bit) ParamSet C\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetC                1149\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetC                OBJ_id_tc26_gost_3410_2012_512_constants,3L\n\n#define SN_id_tc26_digest_constants             \"id-tc26-digest-constants\"\n#define NID_id_tc26_digest_constants            1000\n#define OBJ_id_tc26_digest_constants            OBJ_id_tc26_constants,2L\n\n#define SN_id_tc26_cipher_constants             \"id-tc26-cipher-constants\"\n#define NID_id_tc26_cipher_constants            1001\n#define OBJ_id_tc26_cipher_constants            OBJ_id_tc26_constants,5L\n\n#define SN_id_tc26_gost_28147_constants         \"id-tc26-gost-28147-constants\"\n#define NID_id_tc26_gost_28147_constants                1002\n#define OBJ_id_tc26_gost_28147_constants                OBJ_id_tc26_cipher_constants,1L\n\n#define SN_id_tc26_gost_28147_param_Z           \"id-tc26-gost-28147-param-Z\"\n#define LN_id_tc26_gost_28147_param_Z           \"GOST 28147-89 TC26 parameter set\"\n#define NID_id_tc26_gost_28147_param_Z          1003\n#define OBJ_id_tc26_gost_28147_param_Z          OBJ_id_tc26_gost_28147_constants,1L\n\n#define SN_INN          \"INN\"\n#define LN_INN          \"INN\"\n#define NID_INN         1004\n#define OBJ_INN         OBJ_member_body,643L,3L,131L,1L,1L\n\n#define SN_OGRN         \"OGRN\"\n#define LN_OGRN         \"OGRN\"\n#define NID_OGRN                1005\n#define OBJ_OGRN                OBJ_member_body,643L,100L,1L\n\n#define SN_SNILS                \"SNILS\"\n#define LN_SNILS                \"SNILS\"\n#define NID_SNILS               1006\n#define OBJ_SNILS               OBJ_member_body,643L,100L,3L\n\n#define SN_subjectSignTool              \"subjectSignTool\"\n#define LN_subjectSignTool              \"Signing Tool of Subject\"\n#define NID_subjectSignTool             1007\n#define OBJ_subjectSignTool             OBJ_member_body,643L,100L,111L\n\n#define SN_issuerSignTool               \"issuerSignTool\"\n#define LN_issuerSignTool               \"Signing Tool of Issuer\"\n#define NID_issuerSignTool              1008\n#define OBJ_issuerSignTool              OBJ_member_body,643L,100L,112L\n\n#define SN_grasshopper_ecb              \"grasshopper-ecb\"\n#define NID_grasshopper_ecb             1012\n\n#define SN_grasshopper_ctr              \"grasshopper-ctr\"\n#define NID_grasshopper_ctr             1013\n\n#define SN_grasshopper_ofb              \"grasshopper-ofb\"\n#define NID_grasshopper_ofb             1014\n\n#define SN_grasshopper_cbc              \"grasshopper-cbc\"\n#define NID_grasshopper_cbc             1015\n\n#define SN_grasshopper_cfb              \"grasshopper-cfb\"\n#define NID_grasshopper_cfb             1016\n\n#define SN_grasshopper_mac              \"grasshopper-mac\"\n#define NID_grasshopper_mac             1017\n\n#define SN_magma_ecb            \"magma-ecb\"\n#define NID_magma_ecb           1187\n\n#define SN_magma_ctr            \"magma-ctr\"\n#define NID_magma_ctr           1188\n\n#define SN_magma_ofb            \"magma-ofb\"\n#define NID_magma_ofb           1189\n\n#define SN_magma_cbc            \"magma-cbc\"\n#define NID_magma_cbc           1190\n\n#define SN_magma_cfb            \"magma-cfb\"\n#define NID_magma_cfb           1191\n\n#define SN_magma_mac            \"magma-mac\"\n#define NID_magma_mac           1192\n\n#define SN_camellia_128_cbc             \"CAMELLIA-128-CBC\"\n#define LN_camellia_128_cbc             \"camellia-128-cbc\"\n#define NID_camellia_128_cbc            751\n#define OBJ_camellia_128_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,2L\n\n#define SN_camellia_192_cbc             \"CAMELLIA-192-CBC\"\n#define LN_camellia_192_cbc             \"camellia-192-cbc\"\n#define NID_camellia_192_cbc            752\n#define OBJ_camellia_192_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,3L\n\n#define SN_camellia_256_cbc             \"CAMELLIA-256-CBC\"\n#define LN_camellia_256_cbc             \"camellia-256-cbc\"\n#define NID_camellia_256_cbc            753\n#define OBJ_camellia_256_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,4L\n\n#define SN_id_camellia128_wrap          \"id-camellia128-wrap\"\n#define NID_id_camellia128_wrap         907\n#define OBJ_id_camellia128_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,2L\n\n#define SN_id_camellia192_wrap          \"id-camellia192-wrap\"\n#define NID_id_camellia192_wrap         908\n#define OBJ_id_camellia192_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,3L\n\n#define SN_id_camellia256_wrap          \"id-camellia256-wrap\"\n#define NID_id_camellia256_wrap         909\n#define OBJ_id_camellia256_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,4L\n\n#define OBJ_ntt_ds              0L,3L,4401L,5L\n\n#define OBJ_camellia            OBJ_ntt_ds,3L,1L,9L\n\n#define SN_camellia_128_ecb             \"CAMELLIA-128-ECB\"\n#define LN_camellia_128_ecb             \"camellia-128-ecb\"\n#define NID_camellia_128_ecb            754\n#define OBJ_camellia_128_ecb            OBJ_camellia,1L\n\n#define SN_camellia_128_ofb128          \"CAMELLIA-128-OFB\"\n#define LN_camellia_128_ofb128          \"camellia-128-ofb\"\n#define NID_camellia_128_ofb128         766\n#define OBJ_camellia_128_ofb128         OBJ_camellia,3L\n\n#define SN_camellia_128_cfb128          \"CAMELLIA-128-CFB\"\n#define LN_camellia_128_cfb128          \"camellia-128-cfb\"\n#define NID_camellia_128_cfb128         757\n#define OBJ_camellia_128_cfb128         OBJ_camellia,4L\n\n#define SN_camellia_128_gcm             \"CAMELLIA-128-GCM\"\n#define LN_camellia_128_gcm             \"camellia-128-gcm\"\n#define NID_camellia_128_gcm            961\n#define OBJ_camellia_128_gcm            OBJ_camellia,6L\n\n#define SN_camellia_128_ccm             \"CAMELLIA-128-CCM\"\n#define LN_camellia_128_ccm             \"camellia-128-ccm\"\n#define NID_camellia_128_ccm            962\n#define OBJ_camellia_128_ccm            OBJ_camellia,7L\n\n#define SN_camellia_128_ctr             \"CAMELLIA-128-CTR\"\n#define LN_camellia_128_ctr             \"camellia-128-ctr\"\n#define NID_camellia_128_ctr            963\n#define OBJ_camellia_128_ctr            OBJ_camellia,9L\n\n#define SN_camellia_128_cmac            \"CAMELLIA-128-CMAC\"\n#define LN_camellia_128_cmac            \"camellia-128-cmac\"\n#define NID_camellia_128_cmac           964\n#define OBJ_camellia_128_cmac           OBJ_camellia,10L\n\n#define SN_camellia_192_ecb             \"CAMELLIA-192-ECB\"\n#define LN_camellia_192_ecb             \"camellia-192-ecb\"\n#define NID_camellia_192_ecb            755\n#define OBJ_camellia_192_ecb            OBJ_camellia,21L\n\n#define SN_camellia_192_ofb128          \"CAMELLIA-192-OFB\"\n#define LN_camellia_192_ofb128          \"camellia-192-ofb\"\n#define NID_camellia_192_ofb128         767\n#define OBJ_camellia_192_ofb128         OBJ_camellia,23L\n\n#define SN_camellia_192_cfb128          \"CAMELLIA-192-CFB\"\n#define LN_camellia_192_cfb128          \"camellia-192-cfb\"\n#define NID_camellia_192_cfb128         758\n#define OBJ_camellia_192_cfb128         OBJ_camellia,24L\n\n#define SN_camellia_192_gcm             \"CAMELLIA-192-GCM\"\n#define LN_camellia_192_gcm             \"camellia-192-gcm\"\n#define NID_camellia_192_gcm            965\n#define OBJ_camellia_192_gcm            OBJ_camellia,26L\n\n#define SN_camellia_192_ccm             \"CAMELLIA-192-CCM\"\n#define LN_camellia_192_ccm             \"camellia-192-ccm\"\n#define NID_camellia_192_ccm            966\n#define OBJ_camellia_192_ccm            OBJ_camellia,27L\n\n#define SN_camellia_192_ctr             \"CAMELLIA-192-CTR\"\n#define LN_camellia_192_ctr             \"camellia-192-ctr\"\n#define NID_camellia_192_ctr            967\n#define OBJ_camellia_192_ctr            OBJ_camellia,29L\n\n#define SN_camellia_192_cmac            \"CAMELLIA-192-CMAC\"\n#define LN_camellia_192_cmac            \"camellia-192-cmac\"\n#define NID_camellia_192_cmac           968\n#define OBJ_camellia_192_cmac           OBJ_camellia,30L\n\n#define SN_camellia_256_ecb             \"CAMELLIA-256-ECB\"\n#define LN_camellia_256_ecb             \"camellia-256-ecb\"\n#define NID_camellia_256_ecb            756\n#define OBJ_camellia_256_ecb            OBJ_camellia,41L\n\n#define SN_camellia_256_ofb128          \"CAMELLIA-256-OFB\"\n#define LN_camellia_256_ofb128          \"camellia-256-ofb\"\n#define NID_camellia_256_ofb128         768\n#define OBJ_camellia_256_ofb128         OBJ_camellia,43L\n\n#define SN_camellia_256_cfb128          \"CAMELLIA-256-CFB\"\n#define LN_camellia_256_cfb128          \"camellia-256-cfb\"\n#define NID_camellia_256_cfb128         759\n#define OBJ_camellia_256_cfb128         OBJ_camellia,44L\n\n#define SN_camellia_256_gcm             \"CAMELLIA-256-GCM\"\n#define LN_camellia_256_gcm             \"camellia-256-gcm\"\n#define NID_camellia_256_gcm            969\n#define OBJ_camellia_256_gcm            OBJ_camellia,46L\n\n#define SN_camellia_256_ccm             \"CAMELLIA-256-CCM\"\n#define LN_camellia_256_ccm             \"camellia-256-ccm\"\n#define NID_camellia_256_ccm            970\n#define OBJ_camellia_256_ccm            OBJ_camellia,47L\n\n#define SN_camellia_256_ctr             \"CAMELLIA-256-CTR\"\n#define LN_camellia_256_ctr             \"camellia-256-ctr\"\n#define NID_camellia_256_ctr            971\n#define OBJ_camellia_256_ctr            OBJ_camellia,49L\n\n#define SN_camellia_256_cmac            \"CAMELLIA-256-CMAC\"\n#define LN_camellia_256_cmac            \"camellia-256-cmac\"\n#define NID_camellia_256_cmac           972\n#define OBJ_camellia_256_cmac           OBJ_camellia,50L\n\n#define SN_camellia_128_cfb1            \"CAMELLIA-128-CFB1\"\n#define LN_camellia_128_cfb1            \"camellia-128-cfb1\"\n#define NID_camellia_128_cfb1           760\n\n#define SN_camellia_192_cfb1            \"CAMELLIA-192-CFB1\"\n#define LN_camellia_192_cfb1            \"camellia-192-cfb1\"\n#define NID_camellia_192_cfb1           761\n\n#define SN_camellia_256_cfb1            \"CAMELLIA-256-CFB1\"\n#define LN_camellia_256_cfb1            \"camellia-256-cfb1\"\n#define NID_camellia_256_cfb1           762\n\n#define SN_camellia_128_cfb8            \"CAMELLIA-128-CFB8\"\n#define LN_camellia_128_cfb8            \"camellia-128-cfb8\"\n#define NID_camellia_128_cfb8           763\n\n#define SN_camellia_192_cfb8            \"CAMELLIA-192-CFB8\"\n#define LN_camellia_192_cfb8            \"camellia-192-cfb8\"\n#define NID_camellia_192_cfb8           764\n\n#define SN_camellia_256_cfb8            \"CAMELLIA-256-CFB8\"\n#define LN_camellia_256_cfb8            \"camellia-256-cfb8\"\n#define NID_camellia_256_cfb8           765\n\n#define OBJ_aria                1L,2L,410L,200046L,1L,1L\n\n#define SN_aria_128_ecb         \"ARIA-128-ECB\"\n#define LN_aria_128_ecb         \"aria-128-ecb\"\n#define NID_aria_128_ecb                1065\n#define OBJ_aria_128_ecb                OBJ_aria,1L\n\n#define SN_aria_128_cbc         \"ARIA-128-CBC\"\n#define LN_aria_128_cbc         \"aria-128-cbc\"\n#define NID_aria_128_cbc                1066\n#define OBJ_aria_128_cbc                OBJ_aria,2L\n\n#define SN_aria_128_cfb128              \"ARIA-128-CFB\"\n#define LN_aria_128_cfb128              \"aria-128-cfb\"\n#define NID_aria_128_cfb128             1067\n#define OBJ_aria_128_cfb128             OBJ_aria,3L\n\n#define SN_aria_128_ofb128              \"ARIA-128-OFB\"\n#define LN_aria_128_ofb128              \"aria-128-ofb\"\n#define NID_aria_128_ofb128             1068\n#define OBJ_aria_128_ofb128             OBJ_aria,4L\n\n#define SN_aria_128_ctr         \"ARIA-128-CTR\"\n#define LN_aria_128_ctr         \"aria-128-ctr\"\n#define NID_aria_128_ctr                1069\n#define OBJ_aria_128_ctr                OBJ_aria,5L\n\n#define SN_aria_192_ecb         \"ARIA-192-ECB\"\n#define LN_aria_192_ecb         \"aria-192-ecb\"\n#define NID_aria_192_ecb                1070\n#define OBJ_aria_192_ecb                OBJ_aria,6L\n\n#define SN_aria_192_cbc         \"ARIA-192-CBC\"\n#define LN_aria_192_cbc         \"aria-192-cbc\"\n#define NID_aria_192_cbc                1071\n#define OBJ_aria_192_cbc                OBJ_aria,7L\n\n#define SN_aria_192_cfb128              \"ARIA-192-CFB\"\n#define LN_aria_192_cfb128              \"aria-192-cfb\"\n#define NID_aria_192_cfb128             1072\n#define OBJ_aria_192_cfb128             OBJ_aria,8L\n\n#define SN_aria_192_ofb128              \"ARIA-192-OFB\"\n#define LN_aria_192_ofb128              \"aria-192-ofb\"\n#define NID_aria_192_ofb128             1073\n#define OBJ_aria_192_ofb128             OBJ_aria,9L\n\n#define SN_aria_192_ctr         \"ARIA-192-CTR\"\n#define LN_aria_192_ctr         \"aria-192-ctr\"\n#define NID_aria_192_ctr                1074\n#define OBJ_aria_192_ctr                OBJ_aria,10L\n\n#define SN_aria_256_ecb         \"ARIA-256-ECB\"\n#define LN_aria_256_ecb         \"aria-256-ecb\"\n#define NID_aria_256_ecb                1075\n#define OBJ_aria_256_ecb                OBJ_aria,11L\n\n#define SN_aria_256_cbc         \"ARIA-256-CBC\"\n#define LN_aria_256_cbc         \"aria-256-cbc\"\n#define NID_aria_256_cbc                1076\n#define OBJ_aria_256_cbc                OBJ_aria,12L\n\n#define SN_aria_256_cfb128              \"ARIA-256-CFB\"\n#define LN_aria_256_cfb128              \"aria-256-cfb\"\n#define NID_aria_256_cfb128             1077\n#define OBJ_aria_256_cfb128             OBJ_aria,13L\n\n#define SN_aria_256_ofb128              \"ARIA-256-OFB\"\n#define LN_aria_256_ofb128              \"aria-256-ofb\"\n#define NID_aria_256_ofb128             1078\n#define OBJ_aria_256_ofb128             OBJ_aria,14L\n\n#define SN_aria_256_ctr         \"ARIA-256-CTR\"\n#define LN_aria_256_ctr         \"aria-256-ctr\"\n#define NID_aria_256_ctr                1079\n#define OBJ_aria_256_ctr                OBJ_aria,15L\n\n#define SN_aria_128_cfb1                \"ARIA-128-CFB1\"\n#define LN_aria_128_cfb1                \"aria-128-cfb1\"\n#define NID_aria_128_cfb1               1080\n\n#define SN_aria_192_cfb1                \"ARIA-192-CFB1\"\n#define LN_aria_192_cfb1                \"aria-192-cfb1\"\n#define NID_aria_192_cfb1               1081\n\n#define SN_aria_256_cfb1                \"ARIA-256-CFB1\"\n#define LN_aria_256_cfb1                \"aria-256-cfb1\"\n#define NID_aria_256_cfb1               1082\n\n#define SN_aria_128_cfb8                \"ARIA-128-CFB8\"\n#define LN_aria_128_cfb8                \"aria-128-cfb8\"\n#define NID_aria_128_cfb8               1083\n\n#define SN_aria_192_cfb8                \"ARIA-192-CFB8\"\n#define LN_aria_192_cfb8                \"aria-192-cfb8\"\n#define NID_aria_192_cfb8               1084\n\n#define SN_aria_256_cfb8                \"ARIA-256-CFB8\"\n#define LN_aria_256_cfb8                \"aria-256-cfb8\"\n#define NID_aria_256_cfb8               1085\n\n#define SN_aria_128_ccm         \"ARIA-128-CCM\"\n#define LN_aria_128_ccm         \"aria-128-ccm\"\n#define NID_aria_128_ccm                1120\n#define OBJ_aria_128_ccm                OBJ_aria,37L\n\n#define SN_aria_192_ccm         \"ARIA-192-CCM\"\n#define LN_aria_192_ccm         \"aria-192-ccm\"\n#define NID_aria_192_ccm                1121\n#define OBJ_aria_192_ccm                OBJ_aria,38L\n\n#define SN_aria_256_ccm         \"ARIA-256-CCM\"\n#define LN_aria_256_ccm         \"aria-256-ccm\"\n#define NID_aria_256_ccm                1122\n#define OBJ_aria_256_ccm                OBJ_aria,39L\n\n#define SN_aria_128_gcm         \"ARIA-128-GCM\"\n#define LN_aria_128_gcm         \"aria-128-gcm\"\n#define NID_aria_128_gcm                1123\n#define OBJ_aria_128_gcm                OBJ_aria,34L\n\n#define SN_aria_192_gcm         \"ARIA-192-GCM\"\n#define LN_aria_192_gcm         \"aria-192-gcm\"\n#define NID_aria_192_gcm                1124\n#define OBJ_aria_192_gcm                OBJ_aria,35L\n\n#define SN_aria_256_gcm         \"ARIA-256-GCM\"\n#define LN_aria_256_gcm         \"aria-256-gcm\"\n#define NID_aria_256_gcm                1125\n#define OBJ_aria_256_gcm                OBJ_aria,36L\n\n#define SN_kisa         \"KISA\"\n#define LN_kisa         \"kisa\"\n#define NID_kisa                773\n#define OBJ_kisa                OBJ_member_body,410L,200004L\n\n#define SN_seed_ecb             \"SEED-ECB\"\n#define LN_seed_ecb             \"seed-ecb\"\n#define NID_seed_ecb            776\n#define OBJ_seed_ecb            OBJ_kisa,1L,3L\n\n#define SN_seed_cbc             \"SEED-CBC\"\n#define LN_seed_cbc             \"seed-cbc\"\n#define NID_seed_cbc            777\n#define OBJ_seed_cbc            OBJ_kisa,1L,4L\n\n#define SN_seed_cfb128          \"SEED-CFB\"\n#define LN_seed_cfb128          \"seed-cfb\"\n#define NID_seed_cfb128         779\n#define OBJ_seed_cfb128         OBJ_kisa,1L,5L\n\n#define SN_seed_ofb128          \"SEED-OFB\"\n#define LN_seed_ofb128          \"seed-ofb\"\n#define NID_seed_ofb128         778\n#define OBJ_seed_ofb128         OBJ_kisa,1L,6L\n\n#define SN_sm4_ecb              \"SM4-ECB\"\n#define LN_sm4_ecb              \"sm4-ecb\"\n#define NID_sm4_ecb             1133\n#define OBJ_sm4_ecb             OBJ_sm_scheme,104L,1L\n\n#define SN_sm4_cbc              \"SM4-CBC\"\n#define LN_sm4_cbc              \"sm4-cbc\"\n#define NID_sm4_cbc             1134\n#define OBJ_sm4_cbc             OBJ_sm_scheme,104L,2L\n\n#define SN_sm4_ofb128           \"SM4-OFB\"\n#define LN_sm4_ofb128           \"sm4-ofb\"\n#define NID_sm4_ofb128          1135\n#define OBJ_sm4_ofb128          OBJ_sm_scheme,104L,3L\n\n#define SN_sm4_cfb128           \"SM4-CFB\"\n#define LN_sm4_cfb128           \"sm4-cfb\"\n#define NID_sm4_cfb128          1137\n#define OBJ_sm4_cfb128          OBJ_sm_scheme,104L,4L\n\n#define SN_sm4_cfb1             \"SM4-CFB1\"\n#define LN_sm4_cfb1             \"sm4-cfb1\"\n#define NID_sm4_cfb1            1136\n#define OBJ_sm4_cfb1            OBJ_sm_scheme,104L,5L\n\n#define SN_sm4_cfb8             \"SM4-CFB8\"\n#define LN_sm4_cfb8             \"sm4-cfb8\"\n#define NID_sm4_cfb8            1138\n#define OBJ_sm4_cfb8            OBJ_sm_scheme,104L,6L\n\n#define SN_sm4_ctr              \"SM4-CTR\"\n#define LN_sm4_ctr              \"sm4-ctr\"\n#define NID_sm4_ctr             1139\n#define OBJ_sm4_ctr             OBJ_sm_scheme,104L,7L\n\n#define SN_hmac         \"HMAC\"\n#define LN_hmac         \"hmac\"\n#define NID_hmac                855\n\n#define SN_cmac         \"CMAC\"\n#define LN_cmac         \"cmac\"\n#define NID_cmac                894\n\n#define SN_rc4_hmac_md5         \"RC4-HMAC-MD5\"\n#define LN_rc4_hmac_md5         \"rc4-hmac-md5\"\n#define NID_rc4_hmac_md5                915\n\n#define SN_aes_128_cbc_hmac_sha1                \"AES-128-CBC-HMAC-SHA1\"\n#define LN_aes_128_cbc_hmac_sha1                \"aes-128-cbc-hmac-sha1\"\n#define NID_aes_128_cbc_hmac_sha1               916\n\n#define SN_aes_192_cbc_hmac_sha1                \"AES-192-CBC-HMAC-SHA1\"\n#define LN_aes_192_cbc_hmac_sha1                \"aes-192-cbc-hmac-sha1\"\n#define NID_aes_192_cbc_hmac_sha1               917\n\n#define SN_aes_256_cbc_hmac_sha1                \"AES-256-CBC-HMAC-SHA1\"\n#define LN_aes_256_cbc_hmac_sha1                \"aes-256-cbc-hmac-sha1\"\n#define NID_aes_256_cbc_hmac_sha1               918\n\n#define SN_aes_128_cbc_hmac_sha256              \"AES-128-CBC-HMAC-SHA256\"\n#define LN_aes_128_cbc_hmac_sha256              \"aes-128-cbc-hmac-sha256\"\n#define NID_aes_128_cbc_hmac_sha256             948\n\n#define SN_aes_192_cbc_hmac_sha256              \"AES-192-CBC-HMAC-SHA256\"\n#define LN_aes_192_cbc_hmac_sha256              \"aes-192-cbc-hmac-sha256\"\n#define NID_aes_192_cbc_hmac_sha256             949\n\n#define SN_aes_256_cbc_hmac_sha256              \"AES-256-CBC-HMAC-SHA256\"\n#define LN_aes_256_cbc_hmac_sha256              \"aes-256-cbc-hmac-sha256\"\n#define NID_aes_256_cbc_hmac_sha256             950\n\n#define SN_chacha20_poly1305            \"ChaCha20-Poly1305\"\n#define LN_chacha20_poly1305            \"chacha20-poly1305\"\n#define NID_chacha20_poly1305           1018\n\n#define SN_chacha20             \"ChaCha20\"\n#define LN_chacha20             \"chacha20\"\n#define NID_chacha20            1019\n\n#define SN_dhpublicnumber               \"dhpublicnumber\"\n#define LN_dhpublicnumber               \"X9.42 DH\"\n#define NID_dhpublicnumber              920\n#define OBJ_dhpublicnumber              OBJ_ISO_US,10046L,2L,1L\n\n#define SN_brainpoolP160r1              \"brainpoolP160r1\"\n#define NID_brainpoolP160r1             921\n#define OBJ_brainpoolP160r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,1L\n\n#define SN_brainpoolP160t1              \"brainpoolP160t1\"\n#define NID_brainpoolP160t1             922\n#define OBJ_brainpoolP160t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,2L\n\n#define SN_brainpoolP192r1              \"brainpoolP192r1\"\n#define NID_brainpoolP192r1             923\n#define OBJ_brainpoolP192r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,3L\n\n#define SN_brainpoolP192t1              \"brainpoolP192t1\"\n#define NID_brainpoolP192t1             924\n#define OBJ_brainpoolP192t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,4L\n\n#define SN_brainpoolP224r1              \"brainpoolP224r1\"\n#define NID_brainpoolP224r1             925\n#define OBJ_brainpoolP224r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,5L\n\n#define SN_brainpoolP224t1              \"brainpoolP224t1\"\n#define NID_brainpoolP224t1             926\n#define OBJ_brainpoolP224t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,6L\n\n#define SN_brainpoolP256r1              \"brainpoolP256r1\"\n#define NID_brainpoolP256r1             927\n#define OBJ_brainpoolP256r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,7L\n\n#define SN_brainpoolP256t1              \"brainpoolP256t1\"\n#define NID_brainpoolP256t1             928\n#define OBJ_brainpoolP256t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,8L\n\n#define SN_brainpoolP320r1              \"brainpoolP320r1\"\n#define NID_brainpoolP320r1             929\n#define OBJ_brainpoolP320r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,9L\n\n#define SN_brainpoolP320t1              \"brainpoolP320t1\"\n#define NID_brainpoolP320t1             930\n#define OBJ_brainpoolP320t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,10L\n\n#define SN_brainpoolP384r1              \"brainpoolP384r1\"\n#define NID_brainpoolP384r1             931\n#define OBJ_brainpoolP384r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,11L\n\n#define SN_brainpoolP384t1              \"brainpoolP384t1\"\n#define NID_brainpoolP384t1             932\n#define OBJ_brainpoolP384t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,12L\n\n#define SN_brainpoolP512r1              \"brainpoolP512r1\"\n#define NID_brainpoolP512r1             933\n#define OBJ_brainpoolP512r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,13L\n\n#define SN_brainpoolP512t1              \"brainpoolP512t1\"\n#define NID_brainpoolP512t1             934\n#define OBJ_brainpoolP512t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,14L\n\n#define OBJ_x9_63_scheme                1L,3L,133L,16L,840L,63L,0L\n\n#define OBJ_secg_scheme         OBJ_certicom_arc,1L\n\n#define SN_dhSinglePass_stdDH_sha1kdf_scheme            \"dhSinglePass-stdDH-sha1kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha1kdf_scheme           936\n#define OBJ_dhSinglePass_stdDH_sha1kdf_scheme           OBJ_x9_63_scheme,2L\n\n#define SN_dhSinglePass_stdDH_sha224kdf_scheme          \"dhSinglePass-stdDH-sha224kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha224kdf_scheme         937\n#define OBJ_dhSinglePass_stdDH_sha224kdf_scheme         OBJ_secg_scheme,11L,0L\n\n#define SN_dhSinglePass_stdDH_sha256kdf_scheme          \"dhSinglePass-stdDH-sha256kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha256kdf_scheme         938\n#define OBJ_dhSinglePass_stdDH_sha256kdf_scheme         OBJ_secg_scheme,11L,1L\n\n#define SN_dhSinglePass_stdDH_sha384kdf_scheme          \"dhSinglePass-stdDH-sha384kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha384kdf_scheme         939\n#define OBJ_dhSinglePass_stdDH_sha384kdf_scheme         OBJ_secg_scheme,11L,2L\n\n#define SN_dhSinglePass_stdDH_sha512kdf_scheme          \"dhSinglePass-stdDH-sha512kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha512kdf_scheme         940\n#define OBJ_dhSinglePass_stdDH_sha512kdf_scheme         OBJ_secg_scheme,11L,3L\n\n#define SN_dhSinglePass_cofactorDH_sha1kdf_scheme               \"dhSinglePass-cofactorDH-sha1kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha1kdf_scheme              941\n#define OBJ_dhSinglePass_cofactorDH_sha1kdf_scheme              OBJ_x9_63_scheme,3L\n\n#define SN_dhSinglePass_cofactorDH_sha224kdf_scheme             \"dhSinglePass-cofactorDH-sha224kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha224kdf_scheme            942\n#define OBJ_dhSinglePass_cofactorDH_sha224kdf_scheme            OBJ_secg_scheme,14L,0L\n\n#define SN_dhSinglePass_cofactorDH_sha256kdf_scheme             \"dhSinglePass-cofactorDH-sha256kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha256kdf_scheme            943\n#define OBJ_dhSinglePass_cofactorDH_sha256kdf_scheme            OBJ_secg_scheme,14L,1L\n\n#define SN_dhSinglePass_cofactorDH_sha384kdf_scheme             \"dhSinglePass-cofactorDH-sha384kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha384kdf_scheme            944\n#define OBJ_dhSinglePass_cofactorDH_sha384kdf_scheme            OBJ_secg_scheme,14L,2L\n\n#define SN_dhSinglePass_cofactorDH_sha512kdf_scheme             \"dhSinglePass-cofactorDH-sha512kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha512kdf_scheme            945\n#define OBJ_dhSinglePass_cofactorDH_sha512kdf_scheme            OBJ_secg_scheme,14L,3L\n\n#define SN_dh_std_kdf           \"dh-std-kdf\"\n#define NID_dh_std_kdf          946\n\n#define SN_dh_cofactor_kdf              \"dh-cofactor-kdf\"\n#define NID_dh_cofactor_kdf             947\n\n#define SN_ct_precert_scts              \"ct_precert_scts\"\n#define LN_ct_precert_scts              \"CT Precertificate SCTs\"\n#define NID_ct_precert_scts             951\n#define OBJ_ct_precert_scts             1L,3L,6L,1L,4L,1L,11129L,2L,4L,2L\n\n#define SN_ct_precert_poison            \"ct_precert_poison\"\n#define LN_ct_precert_poison            \"CT Precertificate Poison\"\n#define NID_ct_precert_poison           952\n#define OBJ_ct_precert_poison           1L,3L,6L,1L,4L,1L,11129L,2L,4L,3L\n\n#define SN_ct_precert_signer            \"ct_precert_signer\"\n#define LN_ct_precert_signer            \"CT Precertificate Signer\"\n#define NID_ct_precert_signer           953\n#define OBJ_ct_precert_signer           1L,3L,6L,1L,4L,1L,11129L,2L,4L,4L\n\n#define SN_ct_cert_scts         \"ct_cert_scts\"\n#define LN_ct_cert_scts         \"CT Certificate SCTs\"\n#define NID_ct_cert_scts                954\n#define OBJ_ct_cert_scts                1L,3L,6L,1L,4L,1L,11129L,2L,4L,5L\n\n#define SN_jurisdictionLocalityName             \"jurisdictionL\"\n#define LN_jurisdictionLocalityName             \"jurisdictionLocalityName\"\n#define NID_jurisdictionLocalityName            955\n#define OBJ_jurisdictionLocalityName            1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,1L\n\n#define SN_jurisdictionStateOrProvinceName              \"jurisdictionST\"\n#define LN_jurisdictionStateOrProvinceName              \"jurisdictionStateOrProvinceName\"\n#define NID_jurisdictionStateOrProvinceName             956\n#define OBJ_jurisdictionStateOrProvinceName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,2L\n\n#define SN_jurisdictionCountryName              \"jurisdictionC\"\n#define LN_jurisdictionCountryName              \"jurisdictionCountryName\"\n#define NID_jurisdictionCountryName             957\n#define OBJ_jurisdictionCountryName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,3L\n\n#define SN_id_scrypt            \"id-scrypt\"\n#define LN_id_scrypt            \"scrypt\"\n#define NID_id_scrypt           973\n#define OBJ_id_scrypt           1L,3L,6L,1L,4L,1L,11591L,4L,11L\n\n#define SN_tls1_prf             \"TLS1-PRF\"\n#define LN_tls1_prf             \"tls1-prf\"\n#define NID_tls1_prf            1021\n\n#define SN_hkdf         \"HKDF\"\n#define LN_hkdf         \"hkdf\"\n#define NID_hkdf                1036\n\n#define SN_id_pkinit            \"id-pkinit\"\n#define NID_id_pkinit           1031\n#define OBJ_id_pkinit           1L,3L,6L,1L,5L,2L,3L\n\n#define SN_pkInitClientAuth             \"pkInitClientAuth\"\n#define LN_pkInitClientAuth             \"PKINIT Client Auth\"\n#define NID_pkInitClientAuth            1032\n#define OBJ_pkInitClientAuth            OBJ_id_pkinit,4L\n\n#define SN_pkInitKDC            \"pkInitKDC\"\n#define LN_pkInitKDC            \"Signing KDC Response\"\n#define NID_pkInitKDC           1033\n#define OBJ_pkInitKDC           OBJ_id_pkinit,5L\n\n#define SN_X25519               \"X25519\"\n#define NID_X25519              1034\n#define OBJ_X25519              1L,3L,101L,110L\n\n#define SN_X448         \"X448\"\n#define NID_X448                1035\n#define OBJ_X448                1L,3L,101L,111L\n\n#define SN_ED25519              \"ED25519\"\n#define NID_ED25519             1087\n#define OBJ_ED25519             1L,3L,101L,112L\n\n#define SN_ED448                \"ED448\"\n#define NID_ED448               1088\n#define OBJ_ED448               1L,3L,101L,113L\n\n#define SN_kx_rsa               \"KxRSA\"\n#define LN_kx_rsa               \"kx-rsa\"\n#define NID_kx_rsa              1037\n\n#define SN_kx_ecdhe             \"KxECDHE\"\n#define LN_kx_ecdhe             \"kx-ecdhe\"\n#define NID_kx_ecdhe            1038\n\n#define SN_kx_dhe               \"KxDHE\"\n#define LN_kx_dhe               \"kx-dhe\"\n#define NID_kx_dhe              1039\n\n#define SN_kx_ecdhe_psk         \"KxECDHE-PSK\"\n#define LN_kx_ecdhe_psk         \"kx-ecdhe-psk\"\n#define NID_kx_ecdhe_psk                1040\n\n#define SN_kx_dhe_psk           \"KxDHE-PSK\"\n#define LN_kx_dhe_psk           \"kx-dhe-psk\"\n#define NID_kx_dhe_psk          1041\n\n#define SN_kx_rsa_psk           \"KxRSA_PSK\"\n#define LN_kx_rsa_psk           \"kx-rsa-psk\"\n#define NID_kx_rsa_psk          1042\n\n#define SN_kx_psk               \"KxPSK\"\n#define LN_kx_psk               \"kx-psk\"\n#define NID_kx_psk              1043\n\n#define SN_kx_srp               \"KxSRP\"\n#define LN_kx_srp               \"kx-srp\"\n#define NID_kx_srp              1044\n\n#define SN_kx_gost              \"KxGOST\"\n#define LN_kx_gost              \"kx-gost\"\n#define NID_kx_gost             1045\n\n#define SN_kx_any               \"KxANY\"\n#define LN_kx_any               \"kx-any\"\n#define NID_kx_any              1063\n\n#define SN_auth_rsa             \"AuthRSA\"\n#define LN_auth_rsa             \"auth-rsa\"\n#define NID_auth_rsa            1046\n\n#define SN_auth_ecdsa           \"AuthECDSA\"\n#define LN_auth_ecdsa           \"auth-ecdsa\"\n#define NID_auth_ecdsa          1047\n\n#define SN_auth_psk             \"AuthPSK\"\n#define LN_auth_psk             \"auth-psk\"\n#define NID_auth_psk            1048\n\n#define SN_auth_dss             \"AuthDSS\"\n#define LN_auth_dss             \"auth-dss\"\n#define NID_auth_dss            1049\n\n#define SN_auth_gost01          \"AuthGOST01\"\n#define LN_auth_gost01          \"auth-gost01\"\n#define NID_auth_gost01         1050\n\n#define SN_auth_gost12          \"AuthGOST12\"\n#define LN_auth_gost12          \"auth-gost12\"\n#define NID_auth_gost12         1051\n\n#define SN_auth_srp             \"AuthSRP\"\n#define LN_auth_srp             \"auth-srp\"\n#define NID_auth_srp            1052\n\n#define SN_auth_null            \"AuthNULL\"\n#define LN_auth_null            \"auth-null\"\n#define NID_auth_null           1053\n\n#define SN_auth_any             \"AuthANY\"\n#define LN_auth_any             \"auth-any\"\n#define NID_auth_any            1064\n\n#define SN_poly1305             \"Poly1305\"\n#define LN_poly1305             \"poly1305\"\n#define NID_poly1305            1061\n\n#define SN_siphash              \"SipHash\"\n#define LN_siphash              \"siphash\"\n#define NID_siphash             1062\n\n#define SN_ffdhe2048            \"ffdhe2048\"\n#define NID_ffdhe2048           1126\n\n#define SN_ffdhe3072            \"ffdhe3072\"\n#define NID_ffdhe3072           1127\n\n#define SN_ffdhe4096            \"ffdhe4096\"\n#define NID_ffdhe4096           1128\n\n#define SN_ffdhe6144            \"ffdhe6144\"\n#define NID_ffdhe6144           1129\n\n#define SN_ffdhe8192            \"ffdhe8192\"\n#define NID_ffdhe8192           1130\n\n#define SN_ISO_UA               \"ISO-UA\"\n#define NID_ISO_UA              1150\n#define OBJ_ISO_UA              OBJ_member_body,804L\n\n#define SN_ua_pki               \"ua-pki\"\n#define NID_ua_pki              1151\n#define OBJ_ua_pki              OBJ_ISO_UA,2L,1L,1L,1L\n\n#define SN_dstu28147            \"dstu28147\"\n#define LN_dstu28147            \"DSTU Gost 28147-2009\"\n#define NID_dstu28147           1152\n#define OBJ_dstu28147           OBJ_ua_pki,1L,1L,1L\n\n#define SN_dstu28147_ofb                \"dstu28147-ofb\"\n#define LN_dstu28147_ofb                \"DSTU Gost 28147-2009 OFB mode\"\n#define NID_dstu28147_ofb               1153\n#define OBJ_dstu28147_ofb               OBJ_dstu28147,2L\n\n#define SN_dstu28147_cfb                \"dstu28147-cfb\"\n#define LN_dstu28147_cfb                \"DSTU Gost 28147-2009 CFB mode\"\n#define NID_dstu28147_cfb               1154\n#define OBJ_dstu28147_cfb               OBJ_dstu28147,3L\n\n#define SN_dstu28147_wrap               \"dstu28147-wrap\"\n#define LN_dstu28147_wrap               \"DSTU Gost 28147-2009 key wrap\"\n#define NID_dstu28147_wrap              1155\n#define OBJ_dstu28147_wrap              OBJ_dstu28147,5L\n\n#define SN_hmacWithDstu34311            \"hmacWithDstu34311\"\n#define LN_hmacWithDstu34311            \"HMAC DSTU Gost 34311-95\"\n#define NID_hmacWithDstu34311           1156\n#define OBJ_hmacWithDstu34311           OBJ_ua_pki,1L,1L,2L\n\n#define SN_dstu34311            \"dstu34311\"\n#define LN_dstu34311            \"DSTU Gost 34311-95\"\n#define NID_dstu34311           1157\n#define OBJ_dstu34311           OBJ_ua_pki,1L,2L,1L\n\n#define SN_dstu4145le           \"dstu4145le\"\n#define LN_dstu4145le           \"DSTU 4145-2002 little endian\"\n#define NID_dstu4145le          1158\n#define OBJ_dstu4145le          OBJ_ua_pki,1L,3L,1L,1L\n\n#define SN_dstu4145be           \"dstu4145be\"\n#define LN_dstu4145be           \"DSTU 4145-2002 big endian\"\n#define NID_dstu4145be          1159\n#define OBJ_dstu4145be          OBJ_dstu4145le,1L,1L\n\n#define SN_uacurve0             \"uacurve0\"\n#define LN_uacurve0             \"DSTU curve 0\"\n#define NID_uacurve0            1160\n#define OBJ_uacurve0            OBJ_dstu4145le,2L,0L\n\n#define SN_uacurve1             \"uacurve1\"\n#define LN_uacurve1             \"DSTU curve 1\"\n#define NID_uacurve1            1161\n#define OBJ_uacurve1            OBJ_dstu4145le,2L,1L\n\n#define SN_uacurve2             \"uacurve2\"\n#define LN_uacurve2             \"DSTU curve 2\"\n#define NID_uacurve2            1162\n#define OBJ_uacurve2            OBJ_dstu4145le,2L,2L\n\n#define SN_uacurve3             \"uacurve3\"\n#define LN_uacurve3             \"DSTU curve 3\"\n#define NID_uacurve3            1163\n#define OBJ_uacurve3            OBJ_dstu4145le,2L,3L\n\n#define SN_uacurve4             \"uacurve4\"\n#define LN_uacurve4             \"DSTU curve 4\"\n#define NID_uacurve4            1164\n#define OBJ_uacurve4            OBJ_dstu4145le,2L,4L\n\n#define SN_uacurve5             \"uacurve5\"\n#define LN_uacurve5             \"DSTU curve 5\"\n#define NID_uacurve5            1165\n#define OBJ_uacurve5            OBJ_dstu4145le,2L,5L\n\n#define SN_uacurve6             \"uacurve6\"\n#define LN_uacurve6             \"DSTU curve 6\"\n#define NID_uacurve6            1166\n#define OBJ_uacurve6            OBJ_dstu4145le,2L,6L\n\n#define SN_uacurve7             \"uacurve7\"\n#define LN_uacurve7             \"DSTU curve 7\"\n#define NID_uacurve7            1167\n#define OBJ_uacurve7            OBJ_dstu4145le,2L,7L\n\n#define SN_uacurve8             \"uacurve8\"\n#define LN_uacurve8             \"DSTU curve 8\"\n#define NID_uacurve8            1168\n#define OBJ_uacurve8            OBJ_dstu4145le,2L,8L\n\n#define SN_uacurve9             \"uacurve9\"\n#define LN_uacurve9             \"DSTU curve 9\"\n#define NID_uacurve9            1169\n#define OBJ_uacurve9            OBJ_dstu4145le,2L,9L\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/objects.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OBJECTS_H\n# define HEADER_OBJECTS_H\n\n# include <openssl/obj_mac.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/objectserr.h>\n\n# define OBJ_NAME_TYPE_UNDEF             0x00\n# define OBJ_NAME_TYPE_MD_METH           0x01\n# define OBJ_NAME_TYPE_CIPHER_METH       0x02\n# define OBJ_NAME_TYPE_PKEY_METH         0x03\n# define OBJ_NAME_TYPE_COMP_METH         0x04\n# define OBJ_NAME_TYPE_NUM               0x05\n\n# define OBJ_NAME_ALIAS                  0x8000\n\n# define OBJ_BSEARCH_VALUE_ON_NOMATCH            0x01\n# define OBJ_BSEARCH_FIRST_VALUE_ON_MATCH        0x02\n\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct obj_name_st {\n    int type;\n    int alias;\n    const char *name;\n    const char *data;\n} OBJ_NAME;\n\n# define         OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)\n\nint OBJ_NAME_init(void);\nint OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),\n                       int (*cmp_func) (const char *, const char *),\n                       void (*free_func) (const char *, int, const char *));\nconst char *OBJ_NAME_get(const char *name, int type);\nint OBJ_NAME_add(const char *name, int type, const char *data);\nint OBJ_NAME_remove(const char *name, int type);\nvoid OBJ_NAME_cleanup(int type); /* -1 for everything */\nvoid OBJ_NAME_do_all(int type, void (*fn) (const OBJ_NAME *, void *arg),\n                     void *arg);\nvoid OBJ_NAME_do_all_sorted(int type,\n                            void (*fn) (const OBJ_NAME *, void *arg),\n                            void *arg);\n\nASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *o);\nASN1_OBJECT *OBJ_nid2obj(int n);\nconst char *OBJ_nid2ln(int n);\nconst char *OBJ_nid2sn(int n);\nint OBJ_obj2nid(const ASN1_OBJECT *o);\nASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name);\nint OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);\nint OBJ_txt2nid(const char *s);\nint OBJ_ln2nid(const char *s);\nint OBJ_sn2nid(const char *s);\nint OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);\nconst void *OBJ_bsearch_(const void *key, const void *base, int num, int size,\n                         int (*cmp) (const void *, const void *));\nconst void *OBJ_bsearch_ex_(const void *key, const void *base, int num,\n                            int size,\n                            int (*cmp) (const void *, const void *),\n                            int flags);\n\n# define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm)    \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \\\n  static int nm##_cmp(type1 const *, type2 const *); \\\n  scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)\n\n# define DECLARE_OBJ_BSEARCH_CMP_FN(type1, type2, cmp)   \\\n  _DECLARE_OBJ_BSEARCH_CMP_FN(static, type1, type2, cmp)\n# define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm)     \\\n  type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)\n\n/*-\n * Unsolved problem: if a type is actually a pointer type, like\n * nid_triple is, then its impossible to get a const where you need\n * it. Consider:\n *\n * typedef int nid_triple[3];\n * const void *a_;\n * const nid_triple const *a = a_;\n *\n * The assignment discards a const because what you really want is:\n *\n * const int const * const *a = a_;\n *\n * But if you do that, you lose the fact that a is an array of 3 ints,\n * which breaks comparison functions.\n *\n * Thus we end up having to cast, sadly, or unpack the\n * declarations. Or, as I finally did in this case, declare nid_triple\n * to be a struct, which it should have been in the first place.\n *\n * Ben, August 2008.\n *\n * Also, strictly speaking not all types need be const, but handling\n * the non-constness means a lot of complication, and in practice\n * comparison routines do always not touch their arguments.\n */\n\n# define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm)  \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)    \\\n      { \\\n      type1 const *a = a_; \\\n      type2 const *b = b_; \\\n      return nm##_cmp(a,b); \\\n      } \\\n  static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \\\n      { \\\n      return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \\\n                                        nm##_cmp_BSEARCH_CMP_FN); \\\n      } \\\n      extern void dummy_prototype(void)\n\n# define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm)   \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)    \\\n      { \\\n      type1 const *a = a_; \\\n      type2 const *b = b_; \\\n      return nm##_cmp(a,b); \\\n      } \\\n  type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \\\n      { \\\n      return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \\\n                                        nm##_cmp_BSEARCH_CMP_FN); \\\n      } \\\n      extern void dummy_prototype(void)\n\n# define OBJ_bsearch(type1,key,type2,base,num,cmp)                              \\\n  ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \\\n                         num,sizeof(type2),                             \\\n                         ((void)CHECKED_PTR_OF(type1,cmp##_type_1),     \\\n                          (void)CHECKED_PTR_OF(type2,cmp##_type_2),     \\\n                          cmp##_BSEARCH_CMP_FN)))\n\n# define OBJ_bsearch_ex(type1,key,type2,base,num,cmp,flags)                      \\\n  ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \\\n                         num,sizeof(type2),                             \\\n                         ((void)CHECKED_PTR_OF(type1,cmp##_type_1),     \\\n                          (void)type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \\\n                          cmp##_BSEARCH_CMP_FN)),flags)\n\nint OBJ_new_nid(int num);\nint OBJ_add_object(const ASN1_OBJECT *obj);\nint OBJ_create(const char *oid, const char *sn, const char *ln);\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define OBJ_cleanup() while(0) continue\n#endif\nint OBJ_create_objects(BIO *in);\n\nsize_t OBJ_length(const ASN1_OBJECT *obj);\nconst unsigned char *OBJ_get0_data(const ASN1_OBJECT *obj);\n\nint OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid);\nint OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid);\nint OBJ_add_sigid(int signid, int dig_id, int pkey_id);\nvoid OBJ_sigid_free(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/objectserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OBJERR_H\n# define HEADER_OBJERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_OBJ_strings(void);\n\n/*\n * OBJ function codes.\n */\n# define OBJ_F_OBJ_ADD_OBJECT                             105\n# define OBJ_F_OBJ_ADD_SIGID                              107\n# define OBJ_F_OBJ_CREATE                                 100\n# define OBJ_F_OBJ_DUP                                    101\n# define OBJ_F_OBJ_NAME_NEW_INDEX                         106\n# define OBJ_F_OBJ_NID2LN                                 102\n# define OBJ_F_OBJ_NID2OBJ                                103\n# define OBJ_F_OBJ_NID2SN                                 104\n# define OBJ_F_OBJ_TXT2OBJ                                108\n\n/*\n * OBJ reason codes.\n */\n# define OBJ_R_OID_EXISTS                                 102\n# define OBJ_R_UNKNOWN_NID                                101\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ocsp.h",
    "content": "/*\n * Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OCSP_H\n# define HEADER_OCSP_H\n\n#include <openssl/opensslconf.h>\n\n/*\n * These definitions are outside the OPENSSL_NO_OCSP guard because although for\n * historical reasons they have OCSP_* names, they can actually be used\n * independently of OCSP. E.g. see RFC5280\n */\n/*-\n *   CRLReason ::= ENUMERATED {\n *        unspecified             (0),\n *        keyCompromise           (1),\n *        cACompromise            (2),\n *        affiliationChanged      (3),\n *        superseded              (4),\n *        cessationOfOperation    (5),\n *        certificateHold         (6),\n *        removeFromCRL           (8) }\n */\n#  define OCSP_REVOKED_STATUS_NOSTATUS               -1\n#  define OCSP_REVOKED_STATUS_UNSPECIFIED             0\n#  define OCSP_REVOKED_STATUS_KEYCOMPROMISE           1\n#  define OCSP_REVOKED_STATUS_CACOMPROMISE            2\n#  define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED      3\n#  define OCSP_REVOKED_STATUS_SUPERSEDED              4\n#  define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION    5\n#  define OCSP_REVOKED_STATUS_CERTIFICATEHOLD         6\n#  define OCSP_REVOKED_STATUS_REMOVEFROMCRL           8\n\n\n# ifndef OPENSSL_NO_OCSP\n\n#  include <openssl/ossl_typ.h>\n#  include <openssl/x509.h>\n#  include <openssl/x509v3.h>\n#  include <openssl/safestack.h>\n#  include <openssl/ocsperr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Various flags and values */\n\n#  define OCSP_DEFAULT_NONCE_LENGTH       16\n\n#  define OCSP_NOCERTS                    0x1\n#  define OCSP_NOINTERN                   0x2\n#  define OCSP_NOSIGS                     0x4\n#  define OCSP_NOCHAIN                    0x8\n#  define OCSP_NOVERIFY                   0x10\n#  define OCSP_NOEXPLICIT                 0x20\n#  define OCSP_NOCASIGN                   0x40\n#  define OCSP_NODELEGATED                0x80\n#  define OCSP_NOCHECKS                   0x100\n#  define OCSP_TRUSTOTHER                 0x200\n#  define OCSP_RESPID_KEY                 0x400\n#  define OCSP_NOTIME                     0x800\n\ntypedef struct ocsp_cert_id_st OCSP_CERTID;\n\nDEFINE_STACK_OF(OCSP_CERTID)\n\ntypedef struct ocsp_one_request_st OCSP_ONEREQ;\n\nDEFINE_STACK_OF(OCSP_ONEREQ)\n\ntypedef struct ocsp_req_info_st OCSP_REQINFO;\ntypedef struct ocsp_signature_st OCSP_SIGNATURE;\ntypedef struct ocsp_request_st OCSP_REQUEST;\n\n#  define OCSP_RESPONSE_STATUS_SUCCESSFUL           0\n#  define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST     1\n#  define OCSP_RESPONSE_STATUS_INTERNALERROR        2\n#  define OCSP_RESPONSE_STATUS_TRYLATER             3\n#  define OCSP_RESPONSE_STATUS_SIGREQUIRED          5\n#  define OCSP_RESPONSE_STATUS_UNAUTHORIZED         6\n\ntypedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;\n\n#  define V_OCSP_RESPID_NAME 0\n#  define V_OCSP_RESPID_KEY  1\n\nDEFINE_STACK_OF(OCSP_RESPID)\n\ntypedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;\n\n#  define V_OCSP_CERTSTATUS_GOOD    0\n#  define V_OCSP_CERTSTATUS_REVOKED 1\n#  define V_OCSP_CERTSTATUS_UNKNOWN 2\n\ntypedef struct ocsp_cert_status_st OCSP_CERTSTATUS;\ntypedef struct ocsp_single_response_st OCSP_SINGLERESP;\n\nDEFINE_STACK_OF(OCSP_SINGLERESP)\n\ntypedef struct ocsp_response_data_st OCSP_RESPDATA;\n\ntypedef struct ocsp_basic_response_st OCSP_BASICRESP;\n\ntypedef struct ocsp_crl_id_st OCSP_CRLID;\ntypedef struct ocsp_service_locator_st OCSP_SERVICELOC;\n\n#  define PEM_STRING_OCSP_REQUEST \"OCSP REQUEST\"\n#  define PEM_STRING_OCSP_RESPONSE \"OCSP RESPONSE\"\n\n#  define d2i_OCSP_REQUEST_bio(bp,p) ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)\n\n#  define d2i_OCSP_RESPONSE_bio(bp,p) ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)\n\n#  define PEM_read_bio_OCSP_REQUEST(bp,x,cb) (OCSP_REQUEST *)PEM_ASN1_read_bio( \\\n     (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \\\n     bp,(char **)(x),cb,NULL)\n\n#  define PEM_read_bio_OCSP_RESPONSE(bp,x,cb) (OCSP_RESPONSE *)PEM_ASN1_read_bio(\\\n     (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \\\n     bp,(char **)(x),cb,NULL)\n\n#  define PEM_write_bio_OCSP_REQUEST(bp,o) \\\n    PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\\\n                        bp,(char *)(o), NULL,NULL,0,NULL,NULL)\n\n#  define PEM_write_bio_OCSP_RESPONSE(bp,o) \\\n    PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\\\n                        bp,(char *)(o), NULL,NULL,0,NULL,NULL)\n\n#  define i2d_OCSP_RESPONSE_bio(bp,o) ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)\n\n#  define i2d_OCSP_REQUEST_bio(bp,o) ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)\n\n#  define ASN1_BIT_STRING_digest(data,type,md,len) \\\n        ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)\n\n#  define OCSP_CERTSTATUS_dup(cs)\\\n                (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\\\n                (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))\n\nOCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);\n\nOCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);\nOCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,\n                               int maxline);\nint OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);\nint OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);\nOCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);\nvoid OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);\nvoid OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);\nint OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,\n                     ASN1_VALUE *val);\nint OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,\n                          const ASN1_ITEM *it);\nBIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);\nint OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);\nint OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);\nint OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,\n                             const char *name, const char *value);\n\nOCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,\n                             const X509 *issuer);\n\nOCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,\n                              const X509_NAME *issuerName,\n                              const ASN1_BIT_STRING *issuerKey,\n                              const ASN1_INTEGER *serialNumber);\n\nOCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);\n\nint OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len);\nint OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len);\nint OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);\nint OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req);\n\nint OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm);\nint OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert);\n\nint OCSP_request_sign(OCSP_REQUEST *req,\n                      X509 *signer,\n                      EVP_PKEY *key,\n                      const EVP_MD *dgst,\n                      STACK_OF(X509) *certs, unsigned long flags);\n\nint OCSP_response_status(OCSP_RESPONSE *resp);\nOCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);\n\nconst ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);\nconst X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);\nconst OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);\nint OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,\n                          STACK_OF(X509) *extra_certs);\n\nint OCSP_resp_count(OCSP_BASICRESP *bs);\nOCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);\nconst ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs);\nconst STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);\nint OCSP_resp_get0_id(const OCSP_BASICRESP *bs,\n                      const ASN1_OCTET_STRING **pid,\n                      const X509_NAME **pname);\nint OCSP_resp_get1_id(const OCSP_BASICRESP *bs,\n                      ASN1_OCTET_STRING **pid,\n                      X509_NAME **pname);\n\nint OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);\nint OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,\n                            ASN1_GENERALIZEDTIME **revtime,\n                            ASN1_GENERALIZEDTIME **thisupd,\n                            ASN1_GENERALIZEDTIME **nextupd);\nint OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,\n                          int *reason,\n                          ASN1_GENERALIZEDTIME **revtime,\n                          ASN1_GENERALIZEDTIME **thisupd,\n                          ASN1_GENERALIZEDTIME **nextupd);\nint OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,\n                        ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec);\n\nint OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,\n                        X509_STORE *store, unsigned long flags);\n\nint OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,\n                   int *pssl);\n\nint OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);\nint OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);\n\nint OCSP_request_onereq_count(OCSP_REQUEST *req);\nOCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);\nOCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one);\nint OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,\n                      ASN1_OCTET_STRING **pikeyHash,\n                      ASN1_INTEGER **pserial, OCSP_CERTID *cid);\nint OCSP_request_is_signed(OCSP_REQUEST *req);\nOCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);\nOCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp,\n                                        OCSP_CERTID *cid,\n                                        int status, int reason,\n                                        ASN1_TIME *revtime,\n                                        ASN1_TIME *thisupd,\n                                        ASN1_TIME *nextupd);\nint OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert);\nint OCSP_basic_sign(OCSP_BASICRESP *brsp,\n                    X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,\n                    STACK_OF(X509) *certs, unsigned long flags);\nint OCSP_basic_sign_ctx(OCSP_BASICRESP *brsp,\n                        X509 *signer, EVP_MD_CTX *ctx,\n                        STACK_OF(X509) *certs, unsigned long flags);\nint OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert);\nint OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert);\nint OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert);\n\nX509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);\n\nX509_EXTENSION *OCSP_accept_responses_new(char **oids);\n\nX509_EXTENSION *OCSP_archive_cutoff_new(char *tim);\n\nX509_EXTENSION *OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls);\n\nint OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x);\nint OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos);\nint OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj,\n                                int lastpos);\nint OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos);\nX509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);\nX509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);\nvoid *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit,\n                                int *idx);\nint OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value, int crit,\n                              unsigned long flags);\nint OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x);\nint OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos);\nint OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos);\nint OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);\nX509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);\nX509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);\nvoid *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);\nint OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,\n                             unsigned long flags);\nint OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x);\nint OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos);\nint OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj,\n                                  int lastpos);\nint OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,\n                                       int lastpos);\nX509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc);\nX509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc);\nvoid *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,\n                                  int *idx);\nint OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value,\n                                int crit, unsigned long flags);\nint OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x);\nint OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos);\nint OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj,\n                                   int lastpos);\nint OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,\n                                        int lastpos);\nX509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc);\nX509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc);\nvoid *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,\n                                   int *idx);\nint OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,\n                                 int crit, unsigned long flags);\nint OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc);\nconst OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);\n\nDECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP)\nDECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS)\nDECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO)\nDECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPID)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES)\nDECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ)\nDECLARE_ASN1_FUNCTIONS(OCSP_CERTID)\nDECLARE_ASN1_FUNCTIONS(OCSP_REQUEST)\nDECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE)\nDECLARE_ASN1_FUNCTIONS(OCSP_REQINFO)\nDECLARE_ASN1_FUNCTIONS(OCSP_CRLID)\nDECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC)\n\nconst char *OCSP_response_status_str(long s);\nconst char *OCSP_cert_status_str(long s);\nconst char *OCSP_crl_reason_str(long s);\n\nint OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *a, unsigned long flags);\nint OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);\n\nint OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,\n                      X509_STORE *st, unsigned long flags);\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ocsperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OCSPERR_H\n# define HEADER_OCSPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_OCSP\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_OCSP_strings(void);\n\n/*\n * OCSP function codes.\n */\n#  define OCSP_F_D2I_OCSP_NONCE                            102\n#  define OCSP_F_OCSP_BASIC_ADD1_STATUS                    103\n#  define OCSP_F_OCSP_BASIC_SIGN                           104\n#  define OCSP_F_OCSP_BASIC_SIGN_CTX                       119\n#  define OCSP_F_OCSP_BASIC_VERIFY                         105\n#  define OCSP_F_OCSP_CERT_ID_NEW                          101\n#  define OCSP_F_OCSP_CHECK_DELEGATED                      106\n#  define OCSP_F_OCSP_CHECK_IDS                            107\n#  define OCSP_F_OCSP_CHECK_ISSUER                         108\n#  define OCSP_F_OCSP_CHECK_VALIDITY                       115\n#  define OCSP_F_OCSP_MATCH_ISSUERID                       109\n#  define OCSP_F_OCSP_PARSE_URL                            114\n#  define OCSP_F_OCSP_REQUEST_SIGN                         110\n#  define OCSP_F_OCSP_REQUEST_VERIFY                       116\n#  define OCSP_F_OCSP_RESPONSE_GET1_BASIC                  111\n#  define OCSP_F_PARSE_HTTP_LINE1                          118\n\n/*\n * OCSP reason codes.\n */\n#  define OCSP_R_CERTIFICATE_VERIFY_ERROR                  101\n#  define OCSP_R_DIGEST_ERR                                102\n#  define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD                 122\n#  define OCSP_R_ERROR_IN_THISUPDATE_FIELD                 123\n#  define OCSP_R_ERROR_PARSING_URL                         121\n#  define OCSP_R_MISSING_OCSPSIGNING_USAGE                 103\n#  define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE              124\n#  define OCSP_R_NOT_BASIC_RESPONSE                        104\n#  define OCSP_R_NO_CERTIFICATES_IN_CHAIN                  105\n#  define OCSP_R_NO_RESPONSE_DATA                          108\n#  define OCSP_R_NO_REVOKED_TIME                           109\n#  define OCSP_R_NO_SIGNER_KEY                             130\n#  define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE    110\n#  define OCSP_R_REQUEST_NOT_SIGNED                        128\n#  define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA      111\n#  define OCSP_R_ROOT_CA_NOT_TRUSTED                       112\n#  define OCSP_R_SERVER_RESPONSE_ERROR                     114\n#  define OCSP_R_SERVER_RESPONSE_PARSE_ERROR               115\n#  define OCSP_R_SIGNATURE_FAILURE                         117\n#  define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND              118\n#  define OCSP_R_STATUS_EXPIRED                            125\n#  define OCSP_R_STATUS_NOT_YET_VALID                      126\n#  define OCSP_R_STATUS_TOO_OLD                            127\n#  define OCSP_R_UNKNOWN_MESSAGE_DIGEST                    119\n#  define OCSP_R_UNKNOWN_NID                               120\n#  define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE            129\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/opensslconf.h",
    "content": "/*\n * WARNING: do not edit!\n * Generated by Makefile from include/openssl/opensslconf.h.in\n *\n * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/opensslv.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef OPENSSL_ALGORITHM_DEFINES\n# error OPENSSL_ALGORITHM_DEFINES no longer supported\n#endif\n\n/*\n * OpenSSL was configured with the following options:\n */\n\n#ifndef OPENSSL_SYS_iOS\n# define OPENSSL_SYS_iOS 1\n#endif\n#ifndef OPENSSL_NO_MD2\n# define OPENSSL_NO_MD2\n#endif\n#ifndef OPENSSL_NO_RC5\n# define OPENSSL_NO_RC5\n#endif\n#ifndef OPENSSL_THREADS\n# define OPENSSL_THREADS\n#endif\n#ifndef OPENSSL_RAND_SEED_OS\n# define OPENSSL_RAND_SEED_OS\n#endif\n#ifndef OPENSSL_NO_AFALGENG\n# define OPENSSL_NO_AFALGENG\n#endif\n#ifndef OPENSSL_NO_ASAN\n# define OPENSSL_NO_ASAN\n#endif\n#ifndef OPENSSL_NO_ASYNC\n# define OPENSSL_NO_ASYNC\n#endif\n#ifndef OPENSSL_NO_CRYPTO_MDEBUG\n# define OPENSSL_NO_CRYPTO_MDEBUG\n#endif\n#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\n# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\n#endif\n#ifndef OPENSSL_NO_DEVCRYPTOENG\n# define OPENSSL_NO_DEVCRYPTOENG\n#endif\n#ifndef OPENSSL_NO_DSO\n# define OPENSSL_NO_DSO\n#endif\n#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\n# define OPENSSL_NO_EC_NISTP_64_GCC_128\n#endif\n#ifndef OPENSSL_NO_EGD\n# define OPENSSL_NO_EGD\n#endif\n#ifndef OPENSSL_NO_ENGINE\n# define OPENSSL_NO_ENGINE\n#endif\n#ifndef OPENSSL_NO_EXTERNAL_TESTS\n# define OPENSSL_NO_EXTERNAL_TESTS\n#endif\n#ifndef OPENSSL_NO_FUZZ_AFL\n# define OPENSSL_NO_FUZZ_AFL\n#endif\n#ifndef OPENSSL_NO_FUZZ_LIBFUZZER\n# define OPENSSL_NO_FUZZ_LIBFUZZER\n#endif\n#ifndef OPENSSL_NO_HEARTBEATS\n# define OPENSSL_NO_HEARTBEATS\n#endif\n#ifndef OPENSSL_NO_MSAN\n# define OPENSSL_NO_MSAN\n#endif\n#ifndef OPENSSL_NO_SCTP\n# define OPENSSL_NO_SCTP\n#endif\n#ifndef OPENSSL_NO_SSL_TRACE\n# define OPENSSL_NO_SSL_TRACE\n#endif\n#ifndef OPENSSL_NO_SSL3\n# define OPENSSL_NO_SSL3\n#endif\n#ifndef OPENSSL_NO_SSL3_METHOD\n# define OPENSSL_NO_SSL3_METHOD\n#endif\n#ifndef OPENSSL_NO_UBSAN\n# define OPENSSL_NO_UBSAN\n#endif\n#ifndef OPENSSL_NO_UNIT_TEST\n# define OPENSSL_NO_UNIT_TEST\n#endif\n#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS\n# define OPENSSL_NO_WEAK_SSL_CIPHERS\n#endif\n#ifndef OPENSSL_NO_DYNAMIC_ENGINE\n# define OPENSSL_NO_DYNAMIC_ENGINE\n#endif\n\n\n/*\n * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers\n * don't like that.  This will hopefully silence them.\n */\n#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;\n\n/*\n * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the\n * declarations of functions deprecated in or before <version>. Otherwise, they\n * still won't see them if the library has been built to disable deprecated\n * functions.\n */\n#ifndef DECLARE_DEPRECATED\n# define DECLARE_DEPRECATED(f)   f;\n# ifdef __GNUC__\n#  if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)\n#   undef DECLARE_DEPRECATED\n#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\n#  endif\n# elif defined(__SUNPRO_C)\n#  if (__SUNPRO_C >= 0x5130)\n#   undef DECLARE_DEPRECATED\n#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\n#  endif\n# endif\n#endif\n\n#ifndef OPENSSL_FILE\n# ifdef OPENSSL_NO_FILENAMES\n#  define OPENSSL_FILE \"\"\n#  define OPENSSL_LINE 0\n# else\n#  define OPENSSL_FILE __FILE__\n#  define OPENSSL_LINE __LINE__\n# endif\n#endif\n\n#ifndef OPENSSL_MIN_API\n# define OPENSSL_MIN_API 0\n#endif\n\n#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API\n# undef OPENSSL_API_COMPAT\n# define OPENSSL_API_COMPAT OPENSSL_MIN_API\n#endif\n\n/*\n * Do not deprecate things to be deprecated in version 1.2.0 before the\n * OpenSSL version number matches.\n */\n#if OPENSSL_VERSION_NUMBER < 0x10200000L\n# define DEPRECATEDIN_1_2_0(f)   f;\n#elif OPENSSL_API_COMPAT < 0x10200000L\n# define DEPRECATEDIN_1_2_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_2_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_1_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x10000000L\n# define DEPRECATEDIN_1_0_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_0_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x00908000L\n# define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_0_9_8(f)\n#endif\n\n/* Generate 80386 code? */\n#undef I386_ONLY\n\n#undef OPENSSL_UNISTD\n#define OPENSSL_UNISTD <unistd.h>\n\n#undef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/*\n * The following are cipher-specific, but are part of the public API.\n */\n#if !defined(OPENSSL_SYS_UEFI)\n# undef BN_LLONG\n/* Only one for the following should be defined */\n# define SIXTY_FOUR_BIT_LONG\n# undef SIXTY_FOUR_BIT\n# undef THIRTY_TWO_BIT\n#endif\n\n#define RC4_INT unsigned char\n\n#ifdef  __cplusplus\n}\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/opensslv.h",
    "content": "/*\n * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OPENSSLV_H\n# define HEADER_OPENSSLV_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\n * Numeric release version identifier:\n * MNNFFPPS: major minor fix patch status\n * The status nibble has one of the values 0 for development, 1 to e for betas\n * 1 to 14, and f for release.  The patch level is exactly that.\n * For example:\n * 0.9.3-dev      0x00903000\n * 0.9.3-beta1    0x00903001\n * 0.9.3-beta2-dev 0x00903002\n * 0.9.3-beta2    0x00903002 (same as ...beta2-dev)\n * 0.9.3          0x0090300f\n * 0.9.3a         0x0090301f\n * 0.9.4          0x0090400f\n * 1.2.3z         0x102031af\n *\n * For continuity reasons (because 0.9.5 is already out, and is coded\n * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level\n * part is slightly different, by setting the highest bit.  This means\n * that 0.9.5a looks like this: 0x0090581f.  At 0.9.6, we can start\n * with 0x0090600S...\n *\n * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.)\n * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for\n *  major minor fix final patch/beta)\n */\n# define OPENSSL_VERSION_NUMBER  0x1010108fL\n# define OPENSSL_VERSION_TEXT    \"OpenSSL 1.1.1h  22 Sep 2020\"\n\n/*-\n * The macros below are to be used for shared library (.so, .dll, ...)\n * versioning.  That kind of versioning works a bit differently between\n * operating systems.  The most usual scheme is to set a major and a minor\n * number, and have the runtime loader check that the major number is equal\n * to what it was at application link time, while the minor number has to\n * be greater or equal to what it was at application link time.  With this\n * scheme, the version number is usually part of the file name, like this:\n *\n *      libcrypto.so.0.9\n *\n * Some unixen also make a softlink with the major version number only:\n *\n *      libcrypto.so.0\n *\n * On Tru64 and IRIX 6.x it works a little bit differently.  There, the\n * shared library version is stored in the file, and is actually a series\n * of versions, separated by colons.  The rightmost version present in the\n * library when linking an application is stored in the application to be\n * matched at run time.  When the application is run, a check is done to\n * see if the library version stored in the application matches any of the\n * versions in the version string of the library itself.\n * This version string can be constructed in any way, depending on what\n * kind of matching is desired.  However, to implement the same scheme as\n * the one used in the other unixen, all compatible versions, from lowest\n * to highest, should be part of the string.  Consecutive builds would\n * give the following versions strings:\n *\n *      3.0\n *      3.0:3.1\n *      3.0:3.1:3.2\n *      4.0\n *      4.0:4.1\n *\n * Notice how version 4 is completely incompatible with version, and\n * therefore give the breach you can see.\n *\n * There may be other schemes as well that I haven't yet discovered.\n *\n * So, here's the way it works here: first of all, the library version\n * number doesn't need at all to match the overall OpenSSL version.\n * However, it's nice and more understandable if it actually does.\n * The current library version is stored in the macro SHLIB_VERSION_NUMBER,\n * which is just a piece of text in the format \"M.m.e\" (Major, minor, edit).\n * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways,\n * we need to keep a history of version numbers, which is done in the\n * macro SHLIB_VERSION_HISTORY.  The numbers are separated by colons and\n * should only keep the versions that are binary compatible with the current.\n */\n# define SHLIB_VERSION_HISTORY \"\"\n# define SHLIB_VERSION_NUMBER \"1.1\"\n\n\n#ifdef  __cplusplus\n}\n#endif\n#endif                          /* HEADER_OPENSSLV_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ossl_typ.h",
    "content": "/*\n * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OPENSSL_TYPES_H\n# define HEADER_OPENSSL_TYPES_H\n\n#include <limits.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# include <openssl/e_os2.h>\n\n# ifdef NO_ASN1_TYPEDEFS\n#  define ASN1_INTEGER            ASN1_STRING\n#  define ASN1_ENUMERATED         ASN1_STRING\n#  define ASN1_BIT_STRING         ASN1_STRING\n#  define ASN1_OCTET_STRING       ASN1_STRING\n#  define ASN1_PRINTABLESTRING    ASN1_STRING\n#  define ASN1_T61STRING          ASN1_STRING\n#  define ASN1_IA5STRING          ASN1_STRING\n#  define ASN1_UTCTIME            ASN1_STRING\n#  define ASN1_GENERALIZEDTIME    ASN1_STRING\n#  define ASN1_TIME               ASN1_STRING\n#  define ASN1_GENERALSTRING      ASN1_STRING\n#  define ASN1_UNIVERSALSTRING    ASN1_STRING\n#  define ASN1_BMPSTRING          ASN1_STRING\n#  define ASN1_VISIBLESTRING      ASN1_STRING\n#  define ASN1_UTF8STRING         ASN1_STRING\n#  define ASN1_BOOLEAN            int\n#  define ASN1_NULL               int\n# else\ntypedef struct asn1_string_st ASN1_INTEGER;\ntypedef struct asn1_string_st ASN1_ENUMERATED;\ntypedef struct asn1_string_st ASN1_BIT_STRING;\ntypedef struct asn1_string_st ASN1_OCTET_STRING;\ntypedef struct asn1_string_st ASN1_PRINTABLESTRING;\ntypedef struct asn1_string_st ASN1_T61STRING;\ntypedef struct asn1_string_st ASN1_IA5STRING;\ntypedef struct asn1_string_st ASN1_GENERALSTRING;\ntypedef struct asn1_string_st ASN1_UNIVERSALSTRING;\ntypedef struct asn1_string_st ASN1_BMPSTRING;\ntypedef struct asn1_string_st ASN1_UTCTIME;\ntypedef struct asn1_string_st ASN1_TIME;\ntypedef struct asn1_string_st ASN1_GENERALIZEDTIME;\ntypedef struct asn1_string_st ASN1_VISIBLESTRING;\ntypedef struct asn1_string_st ASN1_UTF8STRING;\ntypedef struct asn1_string_st ASN1_STRING;\ntypedef int ASN1_BOOLEAN;\ntypedef int ASN1_NULL;\n# endif\n\ntypedef struct asn1_object_st ASN1_OBJECT;\n\ntypedef struct ASN1_ITEM_st ASN1_ITEM;\ntypedef struct asn1_pctx_st ASN1_PCTX;\ntypedef struct asn1_sctx_st ASN1_SCTX;\n\n# ifdef _WIN32\n#  undef X509_NAME\n#  undef X509_EXTENSIONS\n#  undef PKCS7_ISSUER_AND_SERIAL\n#  undef PKCS7_SIGNER_INFO\n#  undef OCSP_REQUEST\n#  undef OCSP_RESPONSE\n# endif\n\n# ifdef BIGNUM\n#  undef BIGNUM\n# endif\nstruct dane_st;\ntypedef struct bio_st BIO;\ntypedef struct bignum_st BIGNUM;\ntypedef struct bignum_ctx BN_CTX;\ntypedef struct bn_blinding_st BN_BLINDING;\ntypedef struct bn_mont_ctx_st BN_MONT_CTX;\ntypedef struct bn_recp_ctx_st BN_RECP_CTX;\ntypedef struct bn_gencb_st BN_GENCB;\n\ntypedef struct buf_mem_st BUF_MEM;\n\ntypedef struct evp_cipher_st EVP_CIPHER;\ntypedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;\ntypedef struct evp_md_st EVP_MD;\ntypedef struct evp_md_ctx_st EVP_MD_CTX;\ntypedef struct evp_pkey_st EVP_PKEY;\n\ntypedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD;\n\ntypedef struct evp_pkey_method_st EVP_PKEY_METHOD;\ntypedef struct evp_pkey_ctx_st EVP_PKEY_CTX;\n\ntypedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX;\n\ntypedef struct hmac_ctx_st HMAC_CTX;\n\ntypedef struct dh_st DH;\ntypedef struct dh_method DH_METHOD;\n\ntypedef struct dsa_st DSA;\ntypedef struct dsa_method DSA_METHOD;\n\ntypedef struct rsa_st RSA;\ntypedef struct rsa_meth_st RSA_METHOD;\ntypedef struct rsa_pss_params_st RSA_PSS_PARAMS;\n\ntypedef struct ec_key_st EC_KEY;\ntypedef struct ec_key_method_st EC_KEY_METHOD;\n\ntypedef struct rand_meth_st RAND_METHOD;\ntypedef struct rand_drbg_st RAND_DRBG;\n\ntypedef struct ssl_dane_st SSL_DANE;\ntypedef struct x509_st X509;\ntypedef struct X509_algor_st X509_ALGOR;\ntypedef struct X509_crl_st X509_CRL;\ntypedef struct x509_crl_method_st X509_CRL_METHOD;\ntypedef struct x509_revoked_st X509_REVOKED;\ntypedef struct X509_name_st X509_NAME;\ntypedef struct X509_pubkey_st X509_PUBKEY;\ntypedef struct x509_store_st X509_STORE;\ntypedef struct x509_store_ctx_st X509_STORE_CTX;\n\ntypedef struct x509_object_st X509_OBJECT;\ntypedef struct x509_lookup_st X509_LOOKUP;\ntypedef struct x509_lookup_method_st X509_LOOKUP_METHOD;\ntypedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM;\n\ntypedef struct x509_sig_info_st X509_SIG_INFO;\n\ntypedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;\n\ntypedef struct v3_ext_ctx X509V3_CTX;\ntypedef struct conf_st CONF;\ntypedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS;\n\ntypedef struct ui_st UI;\ntypedef struct ui_method_st UI_METHOD;\n\ntypedef struct engine_st ENGINE;\ntypedef struct ssl_st SSL;\ntypedef struct ssl_ctx_st SSL_CTX;\n\ntypedef struct comp_ctx_st COMP_CTX;\ntypedef struct comp_method_st COMP_METHOD;\n\ntypedef struct X509_POLICY_NODE_st X509_POLICY_NODE;\ntypedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;\ntypedef struct X509_POLICY_TREE_st X509_POLICY_TREE;\ntypedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;\n\ntypedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;\ntypedef struct DIST_POINT_st DIST_POINT;\ntypedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;\ntypedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;\n\ntypedef struct crypto_ex_data_st CRYPTO_EX_DATA;\n\ntypedef struct ocsp_req_ctx_st OCSP_REQ_CTX;\ntypedef struct ocsp_response_st OCSP_RESPONSE;\ntypedef struct ocsp_responder_id_st OCSP_RESPID;\n\ntypedef struct sct_st SCT;\ntypedef struct sct_ctx_st SCT_CTX;\ntypedef struct ctlog_st CTLOG;\ntypedef struct ctlog_store_st CTLOG_STORE;\ntypedef struct ct_policy_eval_ctx_st CT_POLICY_EVAL_CTX;\n\ntypedef struct ossl_store_info_st OSSL_STORE_INFO;\ntypedef struct ossl_store_search_st OSSL_STORE_SEARCH;\n\n#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \\\n    defined(INTMAX_MAX) && defined(UINTMAX_MAX)\ntypedef intmax_t ossl_intmax_t;\ntypedef uintmax_t ossl_uintmax_t;\n#else\n/*\n * Not long long, because the C-library can only be expected to provide\n * strtoll(), strtoull() at the same time as intmax_t and strtoimax(),\n * strtoumax().  Since we use these for parsing arguments, we need the\n * conversion functions, not just the sizes.\n */\ntypedef long ossl_intmax_t;\ntypedef unsigned long ossl_uintmax_t;\n#endif\n\n#ifdef  __cplusplus\n}\n#endif\n#endif                          /* def HEADER_OPENSSL_TYPES_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pem.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEM_H\n# define HEADER_PEM_H\n\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/evp.h>\n# include <openssl/x509.h>\n# include <openssl/pemerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define PEM_BUFSIZE             1024\n\n# define PEM_STRING_X509_OLD     \"X509 CERTIFICATE\"\n# define PEM_STRING_X509         \"CERTIFICATE\"\n# define PEM_STRING_X509_TRUSTED \"TRUSTED CERTIFICATE\"\n# define PEM_STRING_X509_REQ_OLD \"NEW CERTIFICATE REQUEST\"\n# define PEM_STRING_X509_REQ     \"CERTIFICATE REQUEST\"\n# define PEM_STRING_X509_CRL     \"X509 CRL\"\n# define PEM_STRING_EVP_PKEY     \"ANY PRIVATE KEY\"\n# define PEM_STRING_PUBLIC       \"PUBLIC KEY\"\n# define PEM_STRING_RSA          \"RSA PRIVATE KEY\"\n# define PEM_STRING_RSA_PUBLIC   \"RSA PUBLIC KEY\"\n# define PEM_STRING_DSA          \"DSA PRIVATE KEY\"\n# define PEM_STRING_DSA_PUBLIC   \"DSA PUBLIC KEY\"\n# define PEM_STRING_PKCS7        \"PKCS7\"\n# define PEM_STRING_PKCS7_SIGNED \"PKCS #7 SIGNED DATA\"\n# define PEM_STRING_PKCS8        \"ENCRYPTED PRIVATE KEY\"\n# define PEM_STRING_PKCS8INF     \"PRIVATE KEY\"\n# define PEM_STRING_DHPARAMS     \"DH PARAMETERS\"\n# define PEM_STRING_DHXPARAMS    \"X9.42 DH PARAMETERS\"\n# define PEM_STRING_SSL_SESSION  \"SSL SESSION PARAMETERS\"\n# define PEM_STRING_DSAPARAMS    \"DSA PARAMETERS\"\n# define PEM_STRING_ECDSA_PUBLIC \"ECDSA PUBLIC KEY\"\n# define PEM_STRING_ECPARAMETERS \"EC PARAMETERS\"\n# define PEM_STRING_ECPRIVATEKEY \"EC PRIVATE KEY\"\n# define PEM_STRING_PARAMETERS   \"PARAMETERS\"\n# define PEM_STRING_CMS          \"CMS\"\n\n# define PEM_TYPE_ENCRYPTED      10\n# define PEM_TYPE_MIC_ONLY       20\n# define PEM_TYPE_MIC_CLEAR      30\n# define PEM_TYPE_CLEAR          40\n\n/*\n * These macros make the PEM_read/PEM_write functions easier to maintain and\n * write. Now they are all implemented with either: IMPLEMENT_PEM_rw(...) or\n * IMPLEMENT_PEM_rw_cb(...)\n */\n\n# ifdef OPENSSL_NO_STDIO\n\n#  define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/\n# else\n\n#  define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \\\ntype *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\\\n{ \\\nreturn PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \\\n}\n\n#  define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x) \\\n{ \\\nreturn PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL); \\\n}\n\n#  define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, const type *x) \\\n{ \\\nreturn PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(void *)x,NULL,NULL,0,NULL,NULL); \\\n}\n\n#  define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, \\\n                  void *u) \\\n        { \\\n        return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \\\n        }\n\n#  define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, \\\n                  void *u) \\\n        { \\\n        return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \\\n        }\n\n# endif\n\n# define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \\\ntype *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\\\n{ \\\nreturn PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \\\n}\n\n# define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x) \\\n{ \\\nreturn PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL); \\\n}\n\n# define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, const type *x) \\\n{ \\\nreturn PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,NULL,NULL,0,NULL,NULL); \\\n}\n\n# define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \\\n        { \\\n        return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \\\n        }\n\n# define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \\\n        { \\\n        return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,enc,kstr,klen,cb,u); \\\n        }\n\n# define IMPLEMENT_PEM_write(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_fp_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_cb(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_cb_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw_cb(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb(name, type, str, asn1)\n\n/* These are the same except they are for the declarations */\n\n# if defined(OPENSSL_NO_STDIO)\n\n#  define DECLARE_PEM_read_fp(name, type) /**/\n#  define DECLARE_PEM_write_fp(name, type) /**/\n#  define DECLARE_PEM_write_fp_const(name, type) /**/\n#  define DECLARE_PEM_write_cb_fp(name, type) /**/\n# else\n\n#  define DECLARE_PEM_read_fp(name, type) \\\n        type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u);\n\n#  define DECLARE_PEM_write_fp(name, type) \\\n        int PEM_write_##name(FILE *fp, type *x);\n\n#  define DECLARE_PEM_write_fp_const(name, type) \\\n        int PEM_write_##name(FILE *fp, const type *x);\n\n#  define DECLARE_PEM_write_cb_fp(name, type) \\\n        int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u);\n\n# endif\n\n#  define DECLARE_PEM_read_bio(name, type) \\\n        type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u);\n\n#  define DECLARE_PEM_write_bio(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, type *x);\n\n#  define DECLARE_PEM_write_bio_const(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, const type *x);\n\n#  define DECLARE_PEM_write_cb_bio(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u);\n\n# define DECLARE_PEM_write(name, type) \\\n        DECLARE_PEM_write_bio(name, type) \\\n        DECLARE_PEM_write_fp(name, type)\n# define DECLARE_PEM_write_const(name, type) \\\n        DECLARE_PEM_write_bio_const(name, type) \\\n        DECLARE_PEM_write_fp_const(name, type)\n# define DECLARE_PEM_write_cb(name, type) \\\n        DECLARE_PEM_write_cb_bio(name, type) \\\n        DECLARE_PEM_write_cb_fp(name, type)\n# define DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_read_bio(name, type) \\\n        DECLARE_PEM_read_fp(name, type)\n# define DECLARE_PEM_rw(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write(name, type)\n# define DECLARE_PEM_rw_const(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write_const(name, type)\n# define DECLARE_PEM_rw_cb(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write_cb(name, type)\ntypedef int pem_password_cb (char *buf, int size, int rwflag, void *userdata);\n\nint PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher);\nint PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *len,\n                  pem_password_cb *callback, void *u);\n\nint PEM_read_bio(BIO *bp, char **name, char **header,\n                 unsigned char **data, long *len);\n#   define PEM_FLAG_SECURE             0x1\n#   define PEM_FLAG_EAY_COMPATIBLE     0x2\n#   define PEM_FLAG_ONLY_B64           0x4\nint PEM_read_bio_ex(BIO *bp, char **name, char **header,\n                    unsigned char **data, long *len, unsigned int flags);\nint PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm,\n                              const char *name, BIO *bp, pem_password_cb *cb,\n                              void *u);\nint PEM_write_bio(BIO *bp, const char *name, const char *hdr,\n                  const unsigned char *data, long len);\nint PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,\n                       const char *name, BIO *bp, pem_password_cb *cb,\n                       void *u);\nvoid *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,\n                        pem_password_cb *cb, void *u);\nint PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x,\n                       const EVP_CIPHER *enc, unsigned char *kstr, int klen,\n                       pem_password_cb *cb, void *u);\n\nSTACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk,\n                                            pem_password_cb *cb, void *u);\nint PEM_X509_INFO_write_bio(BIO *bp, X509_INFO *xi, EVP_CIPHER *enc,\n                            unsigned char *kstr, int klen,\n                            pem_password_cb *cd, void *u);\n\n#ifndef OPENSSL_NO_STDIO\nint PEM_read(FILE *fp, char **name, char **header,\n             unsigned char **data, long *len);\nint PEM_write(FILE *fp, const char *name, const char *hdr,\n              const unsigned char *data, long len);\nvoid *PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x,\n                    pem_password_cb *cb, void *u);\nint PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp,\n                   void *x, const EVP_CIPHER *enc, unsigned char *kstr,\n                   int klen, pem_password_cb *callback, void *u);\nSTACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk,\n                                        pem_password_cb *cb, void *u);\n#endif\n\nint PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type);\nint PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);\nint PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,\n                  unsigned int *siglen, EVP_PKEY *pkey);\n\n/* The default pem_password_cb that's used internally */\nint PEM_def_callback(char *buf, int num, int rwflag, void *userdata);\nvoid PEM_proc_type(char *buf, int type);\nvoid PEM_dek_info(char *buf, const char *type, int len, char *str);\n\n# include <openssl/symhacks.h>\n\nDECLARE_PEM_rw(X509, X509)\nDECLARE_PEM_rw(X509_AUX, X509)\nDECLARE_PEM_rw(X509_REQ, X509_REQ)\nDECLARE_PEM_write(X509_REQ_NEW, X509_REQ)\nDECLARE_PEM_rw(X509_CRL, X509_CRL)\nDECLARE_PEM_rw(PKCS7, PKCS7)\nDECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE)\nDECLARE_PEM_rw(PKCS8, X509_SIG)\nDECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO)\n# ifndef OPENSSL_NO_RSA\nDECLARE_PEM_rw_cb(RSAPrivateKey, RSA)\nDECLARE_PEM_rw_const(RSAPublicKey, RSA)\nDECLARE_PEM_rw(RSA_PUBKEY, RSA)\n# endif\n# ifndef OPENSSL_NO_DSA\nDECLARE_PEM_rw_cb(DSAPrivateKey, DSA)\nDECLARE_PEM_rw(DSA_PUBKEY, DSA)\nDECLARE_PEM_rw_const(DSAparams, DSA)\n# endif\n# ifndef OPENSSL_NO_EC\nDECLARE_PEM_rw_const(ECPKParameters, EC_GROUP)\nDECLARE_PEM_rw_cb(ECPrivateKey, EC_KEY)\nDECLARE_PEM_rw(EC_PUBKEY, EC_KEY)\n# endif\n# ifndef OPENSSL_NO_DH\nDECLARE_PEM_rw_const(DHparams, DH)\nDECLARE_PEM_write_const(DHxparams, DH)\n# endif\nDECLARE_PEM_rw_cb(PrivateKey, EVP_PKEY)\nDECLARE_PEM_rw(PUBKEY, EVP_PKEY)\n\nint PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,\n                                         const EVP_CIPHER *enc,\n                                         unsigned char *kstr, int klen,\n                                         pem_password_cb *cb, void *u);\n\nint PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,\n                                      char *kstr, int klen,\n                                      pem_password_cb *cb, void *u);\nint PEM_write_bio_PKCS8PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *,\n                                  char *, int, pem_password_cb *, void *);\nint i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                            char *kstr, int klen,\n                            pem_password_cb *cb, void *u);\nint i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,\n                                char *kstr, int klen,\n                                pem_password_cb *cb, void *u);\nEVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,\n                                  void *u);\n\n# ifndef OPENSSL_NO_STDIO\nint i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                           char *kstr, int klen,\n                           pem_password_cb *cb, void *u);\nint i2d_PKCS8PrivateKey_nid_fp(FILE *fp, EVP_PKEY *x, int nid,\n                               char *kstr, int klen,\n                               pem_password_cb *cb, void *u);\nint PEM_write_PKCS8PrivateKey_nid(FILE *fp, EVP_PKEY *x, int nid,\n                                  char *kstr, int klen,\n                                  pem_password_cb *cb, void *u);\n\nEVP_PKEY *d2i_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY **x, pem_password_cb *cb,\n                                 void *u);\n\nint PEM_write_PKCS8PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                              char *kstr, int klen, pem_password_cb *cd,\n                              void *u);\n# endif\nEVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x);\nint PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x);\n\n# ifndef OPENSSL_NO_DSA\nEVP_PKEY *b2i_PrivateKey(const unsigned char **in, long length);\nEVP_PKEY *b2i_PublicKey(const unsigned char **in, long length);\nEVP_PKEY *b2i_PrivateKey_bio(BIO *in);\nEVP_PKEY *b2i_PublicKey_bio(BIO *in);\nint i2b_PrivateKey_bio(BIO *out, EVP_PKEY *pk);\nint i2b_PublicKey_bio(BIO *out, EVP_PKEY *pk);\n#  ifndef OPENSSL_NO_RC4\nEVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u);\nint i2b_PVK_bio(BIO *out, EVP_PKEY *pk, int enclevel,\n                pem_password_cb *cb, void *u);\n#  endif\n# endif\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pem2.h",
    "content": "/*\n * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEM2_H\n# define HEADER_PEM2_H\n# include <openssl/pemerr.h>\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pemerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEMERR_H\n# define HEADER_PEMERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PEM_strings(void);\n\n/*\n * PEM function codes.\n */\n# define PEM_F_B2I_DSS                                    127\n# define PEM_F_B2I_PVK_BIO                                128\n# define PEM_F_B2I_RSA                                    129\n# define PEM_F_CHECK_BITLEN_DSA                           130\n# define PEM_F_CHECK_BITLEN_RSA                           131\n# define PEM_F_D2I_PKCS8PRIVATEKEY_BIO                    120\n# define PEM_F_D2I_PKCS8PRIVATEKEY_FP                     121\n# define PEM_F_DO_B2I                                     132\n# define PEM_F_DO_B2I_BIO                                 133\n# define PEM_F_DO_BLOB_HEADER                             134\n# define PEM_F_DO_I2B                                     146\n# define PEM_F_DO_PK8PKEY                                 126\n# define PEM_F_DO_PK8PKEY_FP                              125\n# define PEM_F_DO_PVK_BODY                                135\n# define PEM_F_DO_PVK_HEADER                              136\n# define PEM_F_GET_HEADER_AND_DATA                        143\n# define PEM_F_GET_NAME                                   144\n# define PEM_F_I2B_PVK                                    137\n# define PEM_F_I2B_PVK_BIO                                138\n# define PEM_F_LOAD_IV                                    101\n# define PEM_F_PEM_ASN1_READ                              102\n# define PEM_F_PEM_ASN1_READ_BIO                          103\n# define PEM_F_PEM_ASN1_WRITE                             104\n# define PEM_F_PEM_ASN1_WRITE_BIO                         105\n# define PEM_F_PEM_DEF_CALLBACK                           100\n# define PEM_F_PEM_DO_HEADER                              106\n# define PEM_F_PEM_GET_EVP_CIPHER_INFO                    107\n# define PEM_F_PEM_READ                                   108\n# define PEM_F_PEM_READ_BIO                               109\n# define PEM_F_PEM_READ_BIO_DHPARAMS                      141\n# define PEM_F_PEM_READ_BIO_EX                            145\n# define PEM_F_PEM_READ_BIO_PARAMETERS                    140\n# define PEM_F_PEM_READ_BIO_PRIVATEKEY                    123\n# define PEM_F_PEM_READ_DHPARAMS                          142\n# define PEM_F_PEM_READ_PRIVATEKEY                        124\n# define PEM_F_PEM_SIGNFINAL                              112\n# define PEM_F_PEM_WRITE                                  113\n# define PEM_F_PEM_WRITE_BIO                              114\n# define PEM_F_PEM_WRITE_BIO_PRIVATEKEY_TRADITIONAL       147\n# define PEM_F_PEM_WRITE_PRIVATEKEY                       139\n# define PEM_F_PEM_X509_INFO_READ                         115\n# define PEM_F_PEM_X509_INFO_READ_BIO                     116\n# define PEM_F_PEM_X509_INFO_WRITE_BIO                    117\n\n/*\n * PEM reason codes.\n */\n# define PEM_R_BAD_BASE64_DECODE                          100\n# define PEM_R_BAD_DECRYPT                                101\n# define PEM_R_BAD_END_LINE                               102\n# define PEM_R_BAD_IV_CHARS                               103\n# define PEM_R_BAD_MAGIC_NUMBER                           116\n# define PEM_R_BAD_PASSWORD_READ                          104\n# define PEM_R_BAD_VERSION_NUMBER                         117\n# define PEM_R_BIO_WRITE_FAILURE                          118\n# define PEM_R_CIPHER_IS_NULL                             127\n# define PEM_R_ERROR_CONVERTING_PRIVATE_KEY               115\n# define PEM_R_EXPECTING_PRIVATE_KEY_BLOB                 119\n# define PEM_R_EXPECTING_PUBLIC_KEY_BLOB                  120\n# define PEM_R_HEADER_TOO_LONG                            128\n# define PEM_R_INCONSISTENT_HEADER                        121\n# define PEM_R_KEYBLOB_HEADER_PARSE_ERROR                 122\n# define PEM_R_KEYBLOB_TOO_SHORT                          123\n# define PEM_R_MISSING_DEK_IV                             129\n# define PEM_R_NOT_DEK_INFO                               105\n# define PEM_R_NOT_ENCRYPTED                              106\n# define PEM_R_NOT_PROC_TYPE                              107\n# define PEM_R_NO_START_LINE                              108\n# define PEM_R_PROBLEMS_GETTING_PASSWORD                  109\n# define PEM_R_PVK_DATA_TOO_SHORT                         124\n# define PEM_R_PVK_TOO_SHORT                              125\n# define PEM_R_READ_KEY                                   111\n# define PEM_R_SHORT_HEADER                               112\n# define PEM_R_UNEXPECTED_DEK_IV                          130\n# define PEM_R_UNSUPPORTED_CIPHER                         113\n# define PEM_R_UNSUPPORTED_ENCRYPTION                     114\n# define PEM_R_UNSUPPORTED_KEY_COMPONENTS                 126\n# define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE                110\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pkcs12.h",
    "content": "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS12_H\n# define HEADER_PKCS12_H\n\n# include <openssl/bio.h>\n# include <openssl/x509.h>\n# include <openssl/pkcs12err.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define PKCS12_KEY_ID   1\n# define PKCS12_IV_ID    2\n# define PKCS12_MAC_ID   3\n\n/* Default iteration count */\n# ifndef PKCS12_DEFAULT_ITER\n#  define PKCS12_DEFAULT_ITER     PKCS5_DEFAULT_ITER\n# endif\n\n# define PKCS12_MAC_KEY_LENGTH 20\n\n# define PKCS12_SALT_LEN 8\n\n/* It's not clear if these are actually needed... */\n# define PKCS12_key_gen PKCS12_key_gen_utf8\n# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8\n\n/* MS key usage constants */\n\n# define KEY_EX  0x10\n# define KEY_SIG 0x80\n\ntypedef struct PKCS12_MAC_DATA_st PKCS12_MAC_DATA;\n\ntypedef struct PKCS12_st PKCS12;\n\ntypedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;\n\nDEFINE_STACK_OF(PKCS12_SAFEBAG)\n\ntypedef struct pkcs12_bag_st PKCS12_BAGS;\n\n# define PKCS12_ERROR    0\n# define PKCS12_OK       1\n\n/* Compatibility macros */\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n\n# define M_PKCS12_bag_type PKCS12_bag_type\n# define M_PKCS12_cert_bag_type PKCS12_cert_bag_type\n# define M_PKCS12_crl_bag_type PKCS12_cert_bag_type\n\n# define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert\n# define PKCS12_certbag2scrl PKCS12_SAFEBAG_get1_crl\n# define PKCS12_bag_type PKCS12_SAFEBAG_get_nid\n# define PKCS12_cert_bag_type PKCS12_SAFEBAG_get_bag_nid\n# define PKCS12_x5092certbag PKCS12_SAFEBAG_create_cert\n# define PKCS12_x509crl2certbag PKCS12_SAFEBAG_create_crl\n# define PKCS12_MAKE_KEYBAG PKCS12_SAFEBAG_create0_p8inf\n# define PKCS12_MAKE_SHKEYBAG PKCS12_SAFEBAG_create_pkcs8_encrypt\n\n#endif\n\nDEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid))\n\nASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);\nint PKCS12_mac_present(const PKCS12 *p12);\nvoid PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac,\n                     const X509_ALGOR **pmacalg,\n                     const ASN1_OCTET_STRING **psalt,\n                     const ASN1_INTEGER **piter,\n                     const PKCS12 *p12);\n\nconst ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,\n                                          int attr_nid);\nconst ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(const PKCS12_SAFEBAG *bag);\nint PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);\nint PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);\n\nX509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);\nX509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);\nconst STACK_OF(PKCS12_SAFEBAG) *\nPKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);\nconst PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);\nconst X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag);\n\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_cert(X509 *x509);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_crl(X509_CRL *crl);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_pkcs8(X509_SIG *p8);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,\n                                                    const char *pass,\n                                                    int passlen,\n                                                    unsigned char *salt,\n                                                    int saltlen, int iter,\n                                                    PKCS8_PRIV_KEY_INFO *p8inf);\n\nPKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it,\n                                         int nid1, int nid2);\nPKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,\n                                   int passlen);\nPKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,\n                                         const char *pass, int passlen);\nX509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,\n                        const char *pass, int passlen, unsigned char *salt,\n                        int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);\nX509_SIG *PKCS8_set0_pbe(const char *pass, int passlen,\n                        PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);\nPKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk);\nSTACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7);\nPKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,\n                             unsigned char *salt, int saltlen, int iter,\n                             STACK_OF(PKCS12_SAFEBAG) *bags);\nSTACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass,\n                                                  int passlen);\n\nint PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);\nSTACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);\n\nint PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, unsigned char *name,\n                          int namelen);\nint PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,\n                                int namelen);\nint PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,\n                                 int namelen);\nint PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,\n                           int namelen);\nint PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,\n                                const unsigned char *name, int namelen);\nint PKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8, int usage);\nASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs,\n                               int attr_nid);\nchar *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);\nconst STACK_OF(X509_ATTRIBUTE) *\nPKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);\nunsigned char *PKCS12_pbe_crypt(const X509_ALGOR *algor,\n                                const char *pass, int passlen,\n                                const unsigned char *in, int inlen,\n                                unsigned char **data, int *datalen,\n                                int en_de);\nvoid *PKCS12_item_decrypt_d2i(const X509_ALGOR *algor, const ASN1_ITEM *it,\n                              const char *pass, int passlen,\n                              const ASN1_OCTET_STRING *oct, int zbuf);\nASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,\n                                           const ASN1_ITEM *it,\n                                           const char *pass, int passlen,\n                                           void *obj, int zbuf);\nPKCS12 *PKCS12_init(int mode);\nint PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,\n                       int saltlen, int id, int iter, int n,\n                       unsigned char *out, const EVP_MD *md_type);\nint PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt,\n                       int saltlen, int id, int iter, int n,\n                       unsigned char *out, const EVP_MD *md_type);\nint PKCS12_key_gen_utf8(const char *pass, int passlen, unsigned char *salt,\n                        int saltlen, int id, int iter, int n,\n                        unsigned char *out, const EVP_MD *md_type);\nint PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                        ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                        const EVP_MD *md_type, int en_de);\nint PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,\n                   unsigned char *mac, unsigned int *maclen);\nint PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);\nint PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,\n                   unsigned char *salt, int saltlen, int iter,\n                   const EVP_MD *md_type);\nint PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,\n                     int saltlen, const EVP_MD *md_type);\nunsigned char *OPENSSL_asc2uni(const char *asc, int asclen,\n                               unsigned char **uni, int *unilen);\nchar *OPENSSL_uni2asc(const unsigned char *uni, int unilen);\nunsigned char *OPENSSL_utf82uni(const char *asc, int asclen,\n                                unsigned char **uni, int *unilen);\nchar *OPENSSL_uni2utf8(const unsigned char *uni, int unilen);\n\nDECLARE_ASN1_FUNCTIONS(PKCS12)\nDECLARE_ASN1_FUNCTIONS(PKCS12_MAC_DATA)\nDECLARE_ASN1_FUNCTIONS(PKCS12_SAFEBAG)\nDECLARE_ASN1_FUNCTIONS(PKCS12_BAGS)\n\nDECLARE_ASN1_ITEM(PKCS12_SAFEBAGS)\nDECLARE_ASN1_ITEM(PKCS12_AUTHSAFES)\n\nvoid PKCS12_PBE_add(void);\nint PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,\n                 STACK_OF(X509) **ca);\nPKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,\n                      X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,\n                      int iter, int mac_iter, int keytype);\n\nPKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert);\nPKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags,\n                               EVP_PKEY *key, int key_usage, int iter,\n                               int key_nid, const char *pass);\nint PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,\n                    int safe_nid, int iter, const char *pass);\nPKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);\n\nint i2d_PKCS12_bio(BIO *bp, PKCS12 *p12);\n# ifndef OPENSSL_NO_STDIO\nint i2d_PKCS12_fp(FILE *fp, PKCS12 *p12);\n# endif\nPKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);\n# ifndef OPENSSL_NO_STDIO\nPKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);\n# endif\nint PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pkcs12err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS12ERR_H\n# define HEADER_PKCS12ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PKCS12_strings(void);\n\n/*\n * PKCS12 function codes.\n */\n# define PKCS12_F_OPENSSL_ASC2UNI                         121\n# define PKCS12_F_OPENSSL_UNI2ASC                         124\n# define PKCS12_F_OPENSSL_UNI2UTF8                        127\n# define PKCS12_F_OPENSSL_UTF82UNI                        129\n# define PKCS12_F_PKCS12_CREATE                           105\n# define PKCS12_F_PKCS12_GEN_MAC                          107\n# define PKCS12_F_PKCS12_INIT                             109\n# define PKCS12_F_PKCS12_ITEM_DECRYPT_D2I                 106\n# define PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT                 108\n# define PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG                117\n# define PKCS12_F_PKCS12_KEY_GEN_ASC                      110\n# define PKCS12_F_PKCS12_KEY_GEN_UNI                      111\n# define PKCS12_F_PKCS12_KEY_GEN_UTF8                     116\n# define PKCS12_F_PKCS12_NEWPASS                          128\n# define PKCS12_F_PKCS12_PACK_P7DATA                      114\n# define PKCS12_F_PKCS12_PACK_P7ENCDATA                   115\n# define PKCS12_F_PKCS12_PARSE                            118\n# define PKCS12_F_PKCS12_PBE_CRYPT                        119\n# define PKCS12_F_PKCS12_PBE_KEYIVGEN                     120\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE0_P8INF            112\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8            113\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE_PKCS8_ENCRYPT     133\n# define PKCS12_F_PKCS12_SETUP_MAC                        122\n# define PKCS12_F_PKCS12_SET_MAC                          123\n# define PKCS12_F_PKCS12_UNPACK_AUTHSAFES                 130\n# define PKCS12_F_PKCS12_UNPACK_P7DATA                    131\n# define PKCS12_F_PKCS12_VERIFY_MAC                       126\n# define PKCS12_F_PKCS8_ENCRYPT                           125\n# define PKCS12_F_PKCS8_SET0_PBE                          132\n\n/*\n * PKCS12 reason codes.\n */\n# define PKCS12_R_CANT_PACK_STRUCTURE                     100\n# define PKCS12_R_CONTENT_TYPE_NOT_DATA                   121\n# define PKCS12_R_DECODE_ERROR                            101\n# define PKCS12_R_ENCODE_ERROR                            102\n# define PKCS12_R_ENCRYPT_ERROR                           103\n# define PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE       120\n# define PKCS12_R_INVALID_NULL_ARGUMENT                   104\n# define PKCS12_R_INVALID_NULL_PKCS12_POINTER             105\n# define PKCS12_R_IV_GEN_ERROR                            106\n# define PKCS12_R_KEY_GEN_ERROR                           107\n# define PKCS12_R_MAC_ABSENT                              108\n# define PKCS12_R_MAC_GENERATION_ERROR                    109\n# define PKCS12_R_MAC_SETUP_ERROR                         110\n# define PKCS12_R_MAC_STRING_SET_ERROR                    111\n# define PKCS12_R_MAC_VERIFY_FAILURE                      113\n# define PKCS12_R_PARSE_ERROR                             114\n# define PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR           115\n# define PKCS12_R_PKCS12_CIPHERFINAL_ERROR                116\n# define PKCS12_R_PKCS12_PBE_CRYPT_ERROR                  117\n# define PKCS12_R_UNKNOWN_DIGEST_ALGORITHM                118\n# define PKCS12_R_UNSUPPORTED_PKCS12_MODE                 119\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pkcs7.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS7_H\n# define HEADER_PKCS7_H\n\n# include <openssl/asn1.h>\n# include <openssl/bio.h>\n# include <openssl/e_os2.h>\n\n# include <openssl/symhacks.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/pkcs7err.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\nEncryption_ID           DES-CBC\nDigest_ID               MD5\nDigest_Encryption_ID    rsaEncryption\nKey_Encryption_ID       rsaEncryption\n*/\n\ntypedef struct pkcs7_issuer_and_serial_st {\n    X509_NAME *issuer;\n    ASN1_INTEGER *serial;\n} PKCS7_ISSUER_AND_SERIAL;\n\ntypedef struct pkcs7_signer_info_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    PKCS7_ISSUER_AND_SERIAL *issuer_and_serial;\n    X509_ALGOR *digest_alg;\n    STACK_OF(X509_ATTRIBUTE) *auth_attr; /* [ 0 ] */\n    X509_ALGOR *digest_enc_alg;\n    ASN1_OCTET_STRING *enc_digest;\n    STACK_OF(X509_ATTRIBUTE) *unauth_attr; /* [ 1 ] */\n    /* The private key to sign with */\n    EVP_PKEY *pkey;\n} PKCS7_SIGNER_INFO;\n\nDEFINE_STACK_OF(PKCS7_SIGNER_INFO)\n\ntypedef struct pkcs7_recip_info_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    PKCS7_ISSUER_AND_SERIAL *issuer_and_serial;\n    X509_ALGOR *key_enc_algor;\n    ASN1_OCTET_STRING *enc_key;\n    X509 *cert;                 /* get the pub-key from this */\n} PKCS7_RECIP_INFO;\n\nDEFINE_STACK_OF(PKCS7_RECIP_INFO)\n\ntypedef struct pkcs7_signed_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    STACK_OF(X509_ALGOR) *md_algs; /* md used */\n    STACK_OF(X509) *cert;       /* [ 0 ] */\n    STACK_OF(X509_CRL) *crl;    /* [ 1 ] */\n    STACK_OF(PKCS7_SIGNER_INFO) *signer_info;\n    struct pkcs7_st *contents;\n} PKCS7_SIGNED;\n/*\n * The above structure is very very similar to PKCS7_SIGN_ENVELOPE. How about\n * merging the two\n */\n\ntypedef struct pkcs7_enc_content_st {\n    ASN1_OBJECT *content_type;\n    X509_ALGOR *algorithm;\n    ASN1_OCTET_STRING *enc_data; /* [ 0 ] */\n    const EVP_CIPHER *cipher;\n} PKCS7_ENC_CONTENT;\n\ntypedef struct pkcs7_enveloped_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;\n    PKCS7_ENC_CONTENT *enc_data;\n} PKCS7_ENVELOPE;\n\ntypedef struct pkcs7_signedandenveloped_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    STACK_OF(X509_ALGOR) *md_algs; /* md used */\n    STACK_OF(X509) *cert;       /* [ 0 ] */\n    STACK_OF(X509_CRL) *crl;    /* [ 1 ] */\n    STACK_OF(PKCS7_SIGNER_INFO) *signer_info;\n    PKCS7_ENC_CONTENT *enc_data;\n    STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;\n} PKCS7_SIGN_ENVELOPE;\n\ntypedef struct pkcs7_digest_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    X509_ALGOR *md;             /* md used */\n    struct pkcs7_st *contents;\n    ASN1_OCTET_STRING *digest;\n} PKCS7_DIGEST;\n\ntypedef struct pkcs7_encrypted_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    PKCS7_ENC_CONTENT *enc_data;\n} PKCS7_ENCRYPT;\n\ntypedef struct pkcs7_st {\n    /*\n     * The following is non NULL if it contains ASN1 encoding of this\n     * structure\n     */\n    unsigned char *asn1;\n    long length;\n# define PKCS7_S_HEADER  0\n# define PKCS7_S_BODY    1\n# define PKCS7_S_TAIL    2\n    int state;                  /* used during processing */\n    int detached;\n    ASN1_OBJECT *type;\n    /* content as defined by the type */\n    /*\n     * all encryption/message digests are applied to the 'contents', leaving\n     * out the 'type' field.\n     */\n    union {\n        char *ptr;\n        /* NID_pkcs7_data */\n        ASN1_OCTET_STRING *data;\n        /* NID_pkcs7_signed */\n        PKCS7_SIGNED *sign;\n        /* NID_pkcs7_enveloped */\n        PKCS7_ENVELOPE *enveloped;\n        /* NID_pkcs7_signedAndEnveloped */\n        PKCS7_SIGN_ENVELOPE *signed_and_enveloped;\n        /* NID_pkcs7_digest */\n        PKCS7_DIGEST *digest;\n        /* NID_pkcs7_encrypted */\n        PKCS7_ENCRYPT *encrypted;\n        /* Anything else */\n        ASN1_TYPE *other;\n    } d;\n} PKCS7;\n\nDEFINE_STACK_OF(PKCS7)\n\n# define PKCS7_OP_SET_DETACHED_SIGNATURE 1\n# define PKCS7_OP_GET_DETACHED_SIGNATURE 2\n\n# define PKCS7_get_signed_attributes(si) ((si)->auth_attr)\n# define PKCS7_get_attributes(si)        ((si)->unauth_attr)\n\n# define PKCS7_type_is_signed(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_signed)\n# define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypted)\n# define PKCS7_type_is_enveloped(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_enveloped)\n# define PKCS7_type_is_signedAndEnveloped(a) \\\n                (OBJ_obj2nid((a)->type) == NID_pkcs7_signedAndEnveloped)\n# define PKCS7_type_is_data(a)   (OBJ_obj2nid((a)->type) == NID_pkcs7_data)\n# define PKCS7_type_is_digest(a)   (OBJ_obj2nid((a)->type) == NID_pkcs7_digest)\n\n# define PKCS7_set_detached(p,v) \\\n                PKCS7_ctrl(p,PKCS7_OP_SET_DETACHED_SIGNATURE,v,NULL)\n# define PKCS7_get_detached(p) \\\n                PKCS7_ctrl(p,PKCS7_OP_GET_DETACHED_SIGNATURE,0,NULL)\n\n# define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7))\n\n/* S/MIME related flags */\n\n# define PKCS7_TEXT              0x1\n# define PKCS7_NOCERTS           0x2\n# define PKCS7_NOSIGS            0x4\n# define PKCS7_NOCHAIN           0x8\n# define PKCS7_NOINTERN          0x10\n# define PKCS7_NOVERIFY          0x20\n# define PKCS7_DETACHED          0x40\n# define PKCS7_BINARY            0x80\n# define PKCS7_NOATTR            0x100\n# define PKCS7_NOSMIMECAP        0x200\n# define PKCS7_NOOLDMIMETYPE     0x400\n# define PKCS7_CRLFEOL           0x800\n# define PKCS7_STREAM            0x1000\n# define PKCS7_NOCRL             0x2000\n# define PKCS7_PARTIAL           0x4000\n# define PKCS7_REUSE_DIGEST      0x8000\n# define PKCS7_NO_DUAL_CONTENT   0x10000\n\n/* Flags: for compatibility with older code */\n\n# define SMIME_TEXT      PKCS7_TEXT\n# define SMIME_NOCERTS   PKCS7_NOCERTS\n# define SMIME_NOSIGS    PKCS7_NOSIGS\n# define SMIME_NOCHAIN   PKCS7_NOCHAIN\n# define SMIME_NOINTERN  PKCS7_NOINTERN\n# define SMIME_NOVERIFY  PKCS7_NOVERIFY\n# define SMIME_DETACHED  PKCS7_DETACHED\n# define SMIME_BINARY    PKCS7_BINARY\n# define SMIME_NOATTR    PKCS7_NOATTR\n\n/* CRLF ASCII canonicalisation */\n# define SMIME_ASCIICRLF         0x80000\n\nDECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL)\n\nint PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,\n                                   const EVP_MD *type, unsigned char *md,\n                                   unsigned int *len);\n# ifndef OPENSSL_NO_STDIO\nPKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);\nint i2d_PKCS7_fp(FILE *fp, PKCS7 *p7);\n# endif\nPKCS7 *PKCS7_dup(PKCS7 *p7);\nPKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);\nint i2d_PKCS7_bio(BIO *bp, PKCS7 *p7);\nint i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);\nint PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);\n\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)\nDECLARE_ASN1_FUNCTIONS(PKCS7_RECIP_INFO)\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGNED)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENC_CONTENT)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENVELOPE)\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGN_ENVELOPE)\nDECLARE_ASN1_FUNCTIONS(PKCS7_DIGEST)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENCRYPT)\nDECLARE_ASN1_FUNCTIONS(PKCS7)\n\nDECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN)\nDECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY)\n\nDECLARE_ASN1_NDEF_FUNCTION(PKCS7)\nDECLARE_ASN1_PRINT_FUNCTION(PKCS7)\n\nlong PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);\n\nint PKCS7_set_type(PKCS7 *p7, int type);\nint PKCS7_set0_type_other(PKCS7 *p7, int type, ASN1_TYPE *other);\nint PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data);\nint PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,\n                          const EVP_MD *dgst);\nint PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);\nint PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);\nint PKCS7_add_certificate(PKCS7 *p7, X509 *x509);\nint PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509);\nint PKCS7_content_new(PKCS7 *p7, int nid);\nint PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx,\n                     BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);\nint PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,\n                          X509 *x509);\n\nBIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio);\nint PKCS7_dataFinal(PKCS7 *p7, BIO *bio);\nBIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert);\n\nPKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,\n                                       EVP_PKEY *pkey, const EVP_MD *dgst);\nX509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);\nint PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md);\nSTACK_OF(PKCS7_SIGNER_INFO) *PKCS7_get_signer_info(PKCS7 *p7);\n\nPKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);\nvoid PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,\n                                 X509_ALGOR **pdig, X509_ALGOR **psig);\nvoid PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);\nint PKCS7_add_recipient_info(PKCS7 *p7, PKCS7_RECIP_INFO *ri);\nint PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509);\nint PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher);\nint PKCS7_stream(unsigned char ***boundary, PKCS7 *p7);\n\nPKCS7_ISSUER_AND_SERIAL *PKCS7_get_issuer_and_serial(PKCS7 *p7, int idx);\nASN1_OCTET_STRING *PKCS7_digest_from_attributes(STACK_OF(X509_ATTRIBUTE) *sk);\nint PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int type,\n                               void *data);\nint PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,\n                        void *value);\nASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);\nASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);\nint PKCS7_set_signed_attributes(PKCS7_SIGNER_INFO *p7si,\n                                STACK_OF(X509_ATTRIBUTE) *sk);\nint PKCS7_set_attributes(PKCS7_SIGNER_INFO *p7si,\n                         STACK_OF(X509_ATTRIBUTE) *sk);\n\nPKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,\n                  BIO *data, int flags);\n\nPKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7,\n                                         X509 *signcert, EVP_PKEY *pkey,\n                                         const EVP_MD *md, int flags);\n\nint PKCS7_final(PKCS7 *p7, BIO *data, int flags);\nint PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,\n                 BIO *indata, BIO *out, int flags);\nSTACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs,\n                                   int flags);\nPKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,\n                     int flags);\nint PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data,\n                  int flags);\n\nint PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si,\n                              STACK_OF(X509_ALGOR) *cap);\nSTACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si);\nint PKCS7_simple_smimecap(STACK_OF(X509_ALGOR) *sk, int nid, int arg);\n\nint PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);\nint PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);\nint PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,\n                             const unsigned char *md, int mdlen);\n\nint SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags);\nPKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont);\n\nBIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/pkcs7err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS7ERR_H\n# define HEADER_PKCS7ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PKCS7_strings(void);\n\n/*\n * PKCS7 function codes.\n */\n# define PKCS7_F_DO_PKCS7_SIGNED_ATTRIB                   136\n# define PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME           135\n# define PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP                118\n# define PKCS7_F_PKCS7_ADD_CERTIFICATE                    100\n# define PKCS7_F_PKCS7_ADD_CRL                            101\n# define PKCS7_F_PKCS7_ADD_RECIPIENT_INFO                 102\n# define PKCS7_F_PKCS7_ADD_SIGNATURE                      131\n# define PKCS7_F_PKCS7_ADD_SIGNER                         103\n# define PKCS7_F_PKCS7_BIO_ADD_DIGEST                     125\n# define PKCS7_F_PKCS7_COPY_EXISTING_DIGEST               138\n# define PKCS7_F_PKCS7_CTRL                               104\n# define PKCS7_F_PKCS7_DATADECODE                         112\n# define PKCS7_F_PKCS7_DATAFINAL                          128\n# define PKCS7_F_PKCS7_DATAINIT                           105\n# define PKCS7_F_PKCS7_DATAVERIFY                         107\n# define PKCS7_F_PKCS7_DECRYPT                            114\n# define PKCS7_F_PKCS7_DECRYPT_RINFO                      133\n# define PKCS7_F_PKCS7_ENCODE_RINFO                       132\n# define PKCS7_F_PKCS7_ENCRYPT                            115\n# define PKCS7_F_PKCS7_FINAL                              134\n# define PKCS7_F_PKCS7_FIND_DIGEST                        127\n# define PKCS7_F_PKCS7_GET0_SIGNERS                       124\n# define PKCS7_F_PKCS7_RECIP_INFO_SET                     130\n# define PKCS7_F_PKCS7_SET_CIPHER                         108\n# define PKCS7_F_PKCS7_SET_CONTENT                        109\n# define PKCS7_F_PKCS7_SET_DIGEST                         126\n# define PKCS7_F_PKCS7_SET_TYPE                           110\n# define PKCS7_F_PKCS7_SIGN                               116\n# define PKCS7_F_PKCS7_SIGNATUREVERIFY                    113\n# define PKCS7_F_PKCS7_SIGNER_INFO_SET                    129\n# define PKCS7_F_PKCS7_SIGNER_INFO_SIGN                   139\n# define PKCS7_F_PKCS7_SIGN_ADD_SIGNER                    137\n# define PKCS7_F_PKCS7_SIMPLE_SMIMECAP                    119\n# define PKCS7_F_PKCS7_VERIFY                             117\n\n/*\n * PKCS7 reason codes.\n */\n# define PKCS7_R_CERTIFICATE_VERIFY_ERROR                 117\n# define PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER          144\n# define PKCS7_R_CIPHER_NOT_INITIALIZED                   116\n# define PKCS7_R_CONTENT_AND_DATA_PRESENT                 118\n# define PKCS7_R_CTRL_ERROR                               152\n# define PKCS7_R_DECRYPT_ERROR                            119\n# define PKCS7_R_DIGEST_FAILURE                           101\n# define PKCS7_R_ENCRYPTION_CTRL_FAILURE                  149\n# define PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 150\n# define PKCS7_R_ERROR_ADDING_RECIPIENT                   120\n# define PKCS7_R_ERROR_SETTING_CIPHER                     121\n# define PKCS7_R_INVALID_NULL_POINTER                     143\n# define PKCS7_R_INVALID_SIGNED_DATA_TYPE                 155\n# define PKCS7_R_NO_CONTENT                               122\n# define PKCS7_R_NO_DEFAULT_DIGEST                        151\n# define PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND            154\n# define PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE         115\n# define PKCS7_R_NO_SIGNATURES_ON_DATA                    123\n# define PKCS7_R_NO_SIGNERS                               142\n# define PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE     104\n# define PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR                124\n# define PKCS7_R_PKCS7_ADD_SIGNER_ERROR                   153\n# define PKCS7_R_PKCS7_DATASIGN                           145\n# define PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   127\n# define PKCS7_R_SIGNATURE_FAILURE                        105\n# define PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND             128\n# define PKCS7_R_SIGNING_CTRL_FAILURE                     147\n# define PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE  148\n# define PKCS7_R_SMIME_TEXT_ERROR                         129\n# define PKCS7_R_UNABLE_TO_FIND_CERTIFICATE               106\n# define PKCS7_R_UNABLE_TO_FIND_MEM_BIO                   107\n# define PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST            108\n# define PKCS7_R_UNKNOWN_DIGEST_TYPE                      109\n# define PKCS7_R_UNKNOWN_OPERATION                        110\n# define PKCS7_R_UNSUPPORTED_CIPHER_TYPE                  111\n# define PKCS7_R_UNSUPPORTED_CONTENT_TYPE                 112\n# define PKCS7_R_WRONG_CONTENT_TYPE                       113\n# define PKCS7_R_WRONG_PKCS7_TYPE                         114\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rand.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RAND_H\n# define HEADER_RAND_H\n\n# include <stdlib.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/e_os2.h>\n# include <openssl/randerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\nstruct rand_meth_st {\n    int (*seed) (const void *buf, int num);\n    int (*bytes) (unsigned char *buf, int num);\n    void (*cleanup) (void);\n    int (*add) (const void *buf, int num, double randomness);\n    int (*pseudorand) (unsigned char *buf, int num);\n    int (*status) (void);\n};\n\nint RAND_set_rand_method(const RAND_METHOD *meth);\nconst RAND_METHOD *RAND_get_rand_method(void);\n# ifndef OPENSSL_NO_ENGINE\nint RAND_set_rand_engine(ENGINE *engine);\n# endif\n\nRAND_METHOD *RAND_OpenSSL(void);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#   define RAND_cleanup() while(0) continue\n# endif\nint RAND_bytes(unsigned char *buf, int num);\nint RAND_priv_bytes(unsigned char *buf, int num);\nDEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))\n\nvoid RAND_seed(const void *buf, int num);\nvoid RAND_keep_random_devices_open(int keep);\n\n# if defined(__ANDROID__) && defined(__NDK_FPABI__)\n__NDK_FPABI__\t/* __attribute__((pcs(\"aapcs\"))) on ARM */\n# endif\nvoid RAND_add(const void *buf, int num, double randomness);\nint RAND_load_file(const char *file, long max_bytes);\nint RAND_write_file(const char *file);\nconst char *RAND_file_name(char *file, size_t num);\nint RAND_status(void);\n\n# ifndef OPENSSL_NO_EGD\nint RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);\nint RAND_egd(const char *path);\nint RAND_egd_bytes(const char *path, int bytes);\n# endif\n\nint RAND_poll(void);\n\n# if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))\n/* application has to include <windows.h> in order to use these */\nDEPRECATEDIN_1_1_0(void RAND_screen(void))\nDEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))\n# endif\n\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rand_drbg.h",
    "content": "/*\n * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DRBG_RAND_H\n# define HEADER_DRBG_RAND_H\n\n# include <time.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/obj_mac.h>\n\n/*\n * RAND_DRBG  flags\n *\n * Note: if new flags are added, the constant `rand_drbg_used_flags`\n *       in drbg_lib.c needs to be updated accordingly.\n */\n\n/* In CTR mode, disable derivation function ctr_df */\n# define RAND_DRBG_FLAG_CTR_NO_DF            0x1\n\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n/* This #define was replaced by an internal constant and should not be used. */\n#  define RAND_DRBG_USED_FLAGS  (RAND_DRBG_FLAG_CTR_NO_DF)\n# endif\n\n/*\n * Default security strength (in the sense of [NIST SP 800-90Ar1])\n *\n * NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that\n * of the cipher by collecting less entropy. The current DRBG implementation\n * does not take RAND_DRBG_STRENGTH into account and sets the strength of the\n * DRBG to that of the cipher.\n *\n * RAND_DRBG_STRENGTH is currently only used for the legacy RAND\n * implementation.\n *\n * Currently supported ciphers are: NID_aes_128_ctr, NID_aes_192_ctr and\n * NID_aes_256_ctr\n */\n# define RAND_DRBG_STRENGTH             256\n/* Default drbg type */\n# define RAND_DRBG_TYPE                 NID_aes_256_ctr\n/* Default drbg flags */\n# define RAND_DRBG_FLAGS                0\n\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * Object lifetime functions.\n */\nRAND_DRBG *RAND_DRBG_new(int type, unsigned int flags, RAND_DRBG *parent);\nRAND_DRBG *RAND_DRBG_secure_new(int type, unsigned int flags, RAND_DRBG *parent);\nint RAND_DRBG_set(RAND_DRBG *drbg, int type, unsigned int flags);\nint RAND_DRBG_set_defaults(int type, unsigned int flags);\nint RAND_DRBG_instantiate(RAND_DRBG *drbg,\n                          const unsigned char *pers, size_t perslen);\nint RAND_DRBG_uninstantiate(RAND_DRBG *drbg);\nvoid RAND_DRBG_free(RAND_DRBG *drbg);\n\n/*\n * Object \"use\" functions.\n */\nint RAND_DRBG_reseed(RAND_DRBG *drbg,\n                     const unsigned char *adin, size_t adinlen,\n                     int prediction_resistance);\nint RAND_DRBG_generate(RAND_DRBG *drbg, unsigned char *out, size_t outlen,\n                       int prediction_resistance,\n                       const unsigned char *adin, size_t adinlen);\nint RAND_DRBG_bytes(RAND_DRBG *drbg, unsigned char *out, size_t outlen);\n\nint RAND_DRBG_set_reseed_interval(RAND_DRBG *drbg, unsigned int interval);\nint RAND_DRBG_set_reseed_time_interval(RAND_DRBG *drbg, time_t interval);\n\nint RAND_DRBG_set_reseed_defaults(\n                                  unsigned int master_reseed_interval,\n                                  unsigned int slave_reseed_interval,\n                                  time_t master_reseed_time_interval,\n                                  time_t slave_reseed_time_interval\n                                  );\n\nRAND_DRBG *RAND_DRBG_get0_master(void);\nRAND_DRBG *RAND_DRBG_get0_public(void);\nRAND_DRBG *RAND_DRBG_get0_private(void);\n\n/*\n * EXDATA\n */\n# define RAND_DRBG_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DRBG, l, p, newf, dupf, freef)\nint RAND_DRBG_set_ex_data(RAND_DRBG *drbg, int idx, void *arg);\nvoid *RAND_DRBG_get_ex_data(const RAND_DRBG *drbg, int idx);\n\n/*\n * Callback function typedefs\n */\ntypedef size_t (*RAND_DRBG_get_entropy_fn)(RAND_DRBG *drbg,\n                                           unsigned char **pout,\n                                           int entropy, size_t min_len,\n                                           size_t max_len,\n                                           int prediction_resistance);\ntypedef void (*RAND_DRBG_cleanup_entropy_fn)(RAND_DRBG *ctx,\n                                             unsigned char *out, size_t outlen);\ntypedef size_t (*RAND_DRBG_get_nonce_fn)(RAND_DRBG *drbg, unsigned char **pout,\n                                         int entropy, size_t min_len,\n                                         size_t max_len);\ntypedef void (*RAND_DRBG_cleanup_nonce_fn)(RAND_DRBG *drbg,\n                                           unsigned char *out, size_t outlen);\n\nint RAND_DRBG_set_callbacks(RAND_DRBG *drbg,\n                            RAND_DRBG_get_entropy_fn get_entropy,\n                            RAND_DRBG_cleanup_entropy_fn cleanup_entropy,\n                            RAND_DRBG_get_nonce_fn get_nonce,\n                            RAND_DRBG_cleanup_nonce_fn cleanup_nonce);\n\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/randerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RANDERR_H\n# define HEADER_RANDERR_H\n\n# include <openssl/symhacks.h>\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_RAND_strings(void);\n\n/*\n * RAND function codes.\n */\n# define RAND_F_DATA_COLLECT_METHOD                       127\n# define RAND_F_DRBG_BYTES                                101\n# define RAND_F_DRBG_GET_ENTROPY                          105\n# define RAND_F_DRBG_SETUP                                117\n# define RAND_F_GET_ENTROPY                               106\n# define RAND_F_RAND_BYTES                                100\n# define RAND_F_RAND_DRBG_ENABLE_LOCKING                  119\n# define RAND_F_RAND_DRBG_GENERATE                        107\n# define RAND_F_RAND_DRBG_GET_ENTROPY                     120\n# define RAND_F_RAND_DRBG_GET_NONCE                       123\n# define RAND_F_RAND_DRBG_INSTANTIATE                     108\n# define RAND_F_RAND_DRBG_NEW                             109\n# define RAND_F_RAND_DRBG_RESEED                          110\n# define RAND_F_RAND_DRBG_RESTART                         102\n# define RAND_F_RAND_DRBG_SET                             104\n# define RAND_F_RAND_DRBG_SET_DEFAULTS                    121\n# define RAND_F_RAND_DRBG_UNINSTANTIATE                   118\n# define RAND_F_RAND_LOAD_FILE                            111\n# define RAND_F_RAND_POOL_ACQUIRE_ENTROPY                 122\n# define RAND_F_RAND_POOL_ADD                             103\n# define RAND_F_RAND_POOL_ADD_BEGIN                       113\n# define RAND_F_RAND_POOL_ADD_END                         114\n# define RAND_F_RAND_POOL_ATTACH                          124\n# define RAND_F_RAND_POOL_BYTES_NEEDED                    115\n# define RAND_F_RAND_POOL_GROW                            125\n# define RAND_F_RAND_POOL_NEW                             116\n# define RAND_F_RAND_PSEUDO_BYTES                         126\n# define RAND_F_RAND_WRITE_FILE                           112\n\n/*\n * RAND reason codes.\n */\n# define RAND_R_ADDITIONAL_INPUT_TOO_LONG                 102\n# define RAND_R_ALREADY_INSTANTIATED                      103\n# define RAND_R_ARGUMENT_OUT_OF_RANGE                     105\n# define RAND_R_CANNOT_OPEN_FILE                          121\n# define RAND_R_DRBG_ALREADY_INITIALIZED                  129\n# define RAND_R_DRBG_NOT_INITIALISED                      104\n# define RAND_R_ENTROPY_INPUT_TOO_LONG                    106\n# define RAND_R_ENTROPY_OUT_OF_RANGE                      124\n# define RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED            127\n# define RAND_R_ERROR_INITIALISING_DRBG                   107\n# define RAND_R_ERROR_INSTANTIATING_DRBG                  108\n# define RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT         109\n# define RAND_R_ERROR_RETRIEVING_ENTROPY                  110\n# define RAND_R_ERROR_RETRIEVING_NONCE                    111\n# define RAND_R_FAILED_TO_CREATE_LOCK                     126\n# define RAND_R_FUNC_NOT_IMPLEMENTED                      101\n# define RAND_R_FWRITE_ERROR                              123\n# define RAND_R_GENERATE_ERROR                            112\n# define RAND_R_INTERNAL_ERROR                            113\n# define RAND_R_IN_ERROR_STATE                            114\n# define RAND_R_NOT_A_REGULAR_FILE                        122\n# define RAND_R_NOT_INSTANTIATED                          115\n# define RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED           128\n# define RAND_R_PARENT_LOCKING_NOT_ENABLED                130\n# define RAND_R_PARENT_STRENGTH_TOO_WEAK                  131\n# define RAND_R_PERSONALISATION_STRING_TOO_LONG           116\n# define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED       133\n# define RAND_R_PRNG_NOT_SEEDED                           100\n# define RAND_R_RANDOM_POOL_OVERFLOW                      125\n# define RAND_R_RANDOM_POOL_UNDERFLOW                     134\n# define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG                117\n# define RAND_R_RESEED_ERROR                              118\n# define RAND_R_SELFTEST_FAILURE                          119\n# define RAND_R_TOO_LITTLE_NONCE_REQUESTED                135\n# define RAND_R_TOO_MUCH_NONCE_REQUESTED                  136\n# define RAND_R_UNSUPPORTED_DRBG_FLAGS                    132\n# define RAND_R_UNSUPPORTED_DRBG_TYPE                     120\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rc2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC2_H\n# define HEADER_RC2_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC2\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned int RC2_INT;\n\n# define RC2_ENCRYPT     1\n# define RC2_DECRYPT     0\n\n# define RC2_BLOCK       8\n# define RC2_KEY_LENGTH  16\n\ntypedef struct rc2_key_st {\n    RC2_INT data[64];\n} RC2_KEY;\n\nvoid RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits);\nvoid RC2_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                     RC2_KEY *key, int enc);\nvoid RC2_encrypt(unsigned long *data, RC2_KEY *key);\nvoid RC2_decrypt(unsigned long *data, RC2_KEY *key);\nvoid RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,\n                     RC2_KEY *ks, unsigned char *iv, int enc);\nvoid RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, RC2_KEY *schedule, unsigned char *ivec,\n                       int *num, int enc);\nvoid RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, RC2_KEY *schedule, unsigned char *ivec,\n                       int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rc4.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC4_H\n# define HEADER_RC4_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC4\n# include <stddef.h>\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct rc4_key_st {\n    RC4_INT x, y;\n    RC4_INT data[256];\n} RC4_KEY;\n\nconst char *RC4_options(void);\nvoid RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);\nvoid RC4(RC4_KEY *key, size_t len, const unsigned char *indata,\n         unsigned char *outdata);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rc5.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC5_H\n# define HEADER_RC5_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC5\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define RC5_ENCRYPT     1\n# define RC5_DECRYPT     0\n\n# define RC5_32_INT unsigned int\n\n# define RC5_32_BLOCK            8\n# define RC5_32_KEY_LENGTH       16/* This is a default, max is 255 */\n\n/*\n * This are the only values supported.  Tweak the code if you want more The\n * most supported modes will be RC5-32/12/16 RC5-32/16/8\n */\n# define RC5_8_ROUNDS    8\n# define RC5_12_ROUNDS   12\n# define RC5_16_ROUNDS   16\n\ntypedef struct rc5_key_st {\n    /* Number of rounds */\n    int rounds;\n    RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)];\n} RC5_32_KEY;\n\nvoid RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,\n                    int rounds);\nvoid RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                        RC5_32_KEY *key, int enc);\nvoid RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);\nvoid RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);\nvoid RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, RC5_32_KEY *ks, unsigned char *iv,\n                        int enc);\nvoid RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                          long length, RC5_32_KEY *schedule,\n                          unsigned char *ivec, int *num, int enc);\nvoid RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                          long length, RC5_32_KEY *schedule,\n                          unsigned char *ivec, int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ripemd.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RIPEMD_H\n# define HEADER_RIPEMD_H\n\n# include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_RMD160\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define RIPEMD160_LONG unsigned int\n\n# define RIPEMD160_CBLOCK        64\n# define RIPEMD160_LBLOCK        (RIPEMD160_CBLOCK/4)\n# define RIPEMD160_DIGEST_LENGTH 20\n\ntypedef struct RIPEMD160state_st {\n    RIPEMD160_LONG A, B, C, D, E;\n    RIPEMD160_LONG Nl, Nh;\n    RIPEMD160_LONG data[RIPEMD160_LBLOCK];\n    unsigned int num;\n} RIPEMD160_CTX;\n\nint RIPEMD160_Init(RIPEMD160_CTX *c);\nint RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len);\nint RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);\nunsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md);\nvoid RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rsa.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RSA_H\n# define HEADER_RSA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RSA\n# include <openssl/asn1.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/rsaerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/* The types RSA and RSA_METHOD are defined in ossl_typ.h */\n\n# ifndef OPENSSL_RSA_MAX_MODULUS_BITS\n#  define OPENSSL_RSA_MAX_MODULUS_BITS   16384\n# endif\n\n# define OPENSSL_RSA_FIPS_MIN_MODULUS_BITS 1024\n\n# ifndef OPENSSL_RSA_SMALL_MODULUS_BITS\n#  define OPENSSL_RSA_SMALL_MODULUS_BITS 3072\n# endif\n# ifndef OPENSSL_RSA_MAX_PUBEXP_BITS\n\n/* exponent limit enforced for \"large\" modulus only */\n#  define OPENSSL_RSA_MAX_PUBEXP_BITS    64\n# endif\n\n# define RSA_3   0x3L\n# define RSA_F4  0x10001L\n\n/* based on RFC 8017 appendix A.1.2 */\n# define RSA_ASN1_VERSION_DEFAULT        0\n# define RSA_ASN1_VERSION_MULTI          1\n\n# define RSA_DEFAULT_PRIME_NUM           2\n\n# define RSA_METHOD_FLAG_NO_CHECK        0x0001/* don't check pub/private\n                                                * match */\n\n# define RSA_FLAG_CACHE_PUBLIC           0x0002\n# define RSA_FLAG_CACHE_PRIVATE          0x0004\n# define RSA_FLAG_BLINDING               0x0008\n# define RSA_FLAG_THREAD_SAFE            0x0010\n/*\n * This flag means the private key operations will be handled by rsa_mod_exp\n * and that they do not depend on the private key components being present:\n * for example a key stored in external hardware. Without this flag\n * bn_mod_exp gets called when private key components are absent.\n */\n# define RSA_FLAG_EXT_PKEY               0x0020\n\n/*\n * new with 0.9.6j and 0.9.7b; the built-in\n * RSA implementation now uses blinding by\n * default (ignoring RSA_FLAG_BLINDING),\n * but other engines might not need it\n */\n# define RSA_FLAG_NO_BLINDING            0x0080\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define RSA_FLAG_NO_CONSTTIME           0x0000\n# endif\n# if OPENSSL_API_COMPAT < 0x00908000L\n/* deprecated name for the flag*/\n/*\n * new with 0.9.7h; the built-in RSA\n * implementation now uses constant time\n * modular exponentiation for secret exponents\n * by default. This flag causes the\n * faster variable sliding window method to\n * be used for all exponents.\n */\n#  define RSA_FLAG_NO_EXP_CONSTTIME RSA_FLAG_NO_CONSTTIME\n# endif\n\n# define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \\\n        RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL)\n\n# define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \\\n        RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad)\n\n# define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \\\n        RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \\\n                          EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL)\n/* Salt length matches digest */\n# define RSA_PSS_SALTLEN_DIGEST -1\n/* Verify only: auto detect salt length */\n# define RSA_PSS_SALTLEN_AUTO   -2\n/* Set salt length to maximum possible */\n# define RSA_PSS_SALTLEN_MAX    -3\n/* Old compatible max salt length for sign only */\n# define RSA_PSS_SALTLEN_MAX_SIGN    -2\n\n# define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen) \\\n        RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \\\n                          EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, 0, plen)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, 0, pubexp)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_primes(ctx, primes) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES, primes, NULL)\n\n# define  EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \\\n                          EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \\\n                          EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_GET_RSA_OAEP_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)(l))\n\n# define  EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)(l))\n\n# define  EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS,  \\\n                          EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD,  \\\n                          0, (void *)(md))\n\n# define EVP_PKEY_CTRL_RSA_PADDING       (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 2)\n\n# define EVP_PKEY_CTRL_RSA_KEYGEN_BITS   (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_RSA_MGF1_MD       (EVP_PKEY_ALG_CTRL + 5)\n\n# define EVP_PKEY_CTRL_GET_RSA_PADDING           (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN       (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_RSA_MGF1_MD           (EVP_PKEY_ALG_CTRL + 8)\n\n# define EVP_PKEY_CTRL_RSA_OAEP_MD       (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_RSA_OAEP_LABEL    (EVP_PKEY_ALG_CTRL + 10)\n\n# define EVP_PKEY_CTRL_GET_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL (EVP_PKEY_ALG_CTRL + 12)\n\n# define EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES  (EVP_PKEY_ALG_CTRL + 13)\n\n# define RSA_PKCS1_PADDING       1\n# define RSA_SSLV23_PADDING      2\n# define RSA_NO_PADDING          3\n# define RSA_PKCS1_OAEP_PADDING  4\n# define RSA_X931_PADDING        5\n/* EVP_PKEY_ only */\n# define RSA_PKCS1_PSS_PADDING   6\n\n# define RSA_PKCS1_PADDING_SIZE  11\n\n# define RSA_set_app_data(s,arg)         RSA_set_ex_data(s,0,arg)\n# define RSA_get_app_data(s)             RSA_get_ex_data(s,0)\n\nRSA *RSA_new(void);\nRSA *RSA_new_method(ENGINE *engine);\nint RSA_bits(const RSA *rsa);\nint RSA_size(const RSA *rsa);\nint RSA_security_bits(const RSA *rsa);\n\nint RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);\nint RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);\nint RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);\nint RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],\n                                BIGNUM *coeffs[], int pnum);\nvoid RSA_get0_key(const RSA *r,\n                  const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);\nvoid RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);\nint RSA_get_multi_prime_extra_count(const RSA *r);\nint RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[]);\nvoid RSA_get0_crt_params(const RSA *r,\n                         const BIGNUM **dmp1, const BIGNUM **dmq1,\n                         const BIGNUM **iqmp);\nint RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[],\n                                    const BIGNUM *coeffs[]);\nconst BIGNUM *RSA_get0_n(const RSA *d);\nconst BIGNUM *RSA_get0_e(const RSA *d);\nconst BIGNUM *RSA_get0_d(const RSA *d);\nconst BIGNUM *RSA_get0_p(const RSA *d);\nconst BIGNUM *RSA_get0_q(const RSA *d);\nconst BIGNUM *RSA_get0_dmp1(const RSA *r);\nconst BIGNUM *RSA_get0_dmq1(const RSA *r);\nconst BIGNUM *RSA_get0_iqmp(const RSA *r);\nconst RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r);\nvoid RSA_clear_flags(RSA *r, int flags);\nint RSA_test_flags(const RSA *r, int flags);\nvoid RSA_set_flags(RSA *r, int flags);\nint RSA_get_version(RSA *r);\nENGINE *RSA_get0_engine(const RSA *r);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void\n                                         (*callback) (int, int, void *),\n                                         void *cb_arg))\n\n/* New version */\nint RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);\n/* Multi-prime version */\nint RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,\n                                 BIGNUM *e, BN_GENCB *cb);\n\nint RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1,\n                       BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2,\n                       const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2,\n                       const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb);\nint RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,\n                             BN_GENCB *cb);\n\nint RSA_check_key(const RSA *);\nint RSA_check_key_ex(const RSA *, BN_GENCB *cb);\n        /* next 4 return -1 on error */\nint RSA_public_encrypt(int flen, const unsigned char *from,\n                       unsigned char *to, RSA *rsa, int padding);\nint RSA_private_encrypt(int flen, const unsigned char *from,\n                        unsigned char *to, RSA *rsa, int padding);\nint RSA_public_decrypt(int flen, const unsigned char *from,\n                       unsigned char *to, RSA *rsa, int padding);\nint RSA_private_decrypt(int flen, const unsigned char *from,\n                        unsigned char *to, RSA *rsa, int padding);\nvoid RSA_free(RSA *r);\n/* \"up\" the RSA object's reference count */\nint RSA_up_ref(RSA *r);\n\nint RSA_flags(const RSA *r);\n\nvoid RSA_set_default_method(const RSA_METHOD *meth);\nconst RSA_METHOD *RSA_get_default_method(void);\nconst RSA_METHOD *RSA_null_method(void);\nconst RSA_METHOD *RSA_get_method(const RSA *rsa);\nint RSA_set_method(RSA *rsa, const RSA_METHOD *meth);\n\n/* these are the actual RSA functions */\nconst RSA_METHOD *RSA_PKCS1_OpenSSL(void);\n\nint RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2);\n\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)\n\nstruct rsa_pss_params_st {\n    X509_ALGOR *hashAlgorithm;\n    X509_ALGOR *maskGenAlgorithm;\n    ASN1_INTEGER *saltLength;\n    ASN1_INTEGER *trailerField;\n    /* Decoded hash algorithm from maskGenAlgorithm */\n    X509_ALGOR *maskHash;\n};\n\nDECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)\n\ntypedef struct rsa_oaep_params_st {\n    X509_ALGOR *hashFunc;\n    X509_ALGOR *maskGenFunc;\n    X509_ALGOR *pSourceFunc;\n    /* Decoded hash algorithm from maskGenFunc */\n    X509_ALGOR *maskHash;\n} RSA_OAEP_PARAMS;\n\nDECLARE_ASN1_FUNCTIONS(RSA_OAEP_PARAMS)\n\n# ifndef OPENSSL_NO_STDIO\nint RSA_print_fp(FILE *fp, const RSA *r, int offset);\n# endif\n\nint RSA_print(BIO *bp, const RSA *r, int offset);\n\n/*\n * The following 2 functions sign and verify a X509_SIG ASN1 object inside\n * PKCS#1 padded RSA encryption\n */\nint RSA_sign(int type, const unsigned char *m, unsigned int m_length,\n             unsigned char *sigret, unsigned int *siglen, RSA *rsa);\nint RSA_verify(int type, const unsigned char *m, unsigned int m_length,\n               const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);\n\n/*\n * The following 2 function sign and verify a ASN1_OCTET_STRING object inside\n * PKCS#1 padded RSA encryption\n */\nint RSA_sign_ASN1_OCTET_STRING(int type,\n                               const unsigned char *m, unsigned int m_length,\n                               unsigned char *sigret, unsigned int *siglen,\n                               RSA *rsa);\nint RSA_verify_ASN1_OCTET_STRING(int type, const unsigned char *m,\n                                 unsigned int m_length, unsigned char *sigbuf,\n                                 unsigned int siglen, RSA *rsa);\n\nint RSA_blinding_on(RSA *rsa, BN_CTX *ctx);\nvoid RSA_blinding_off(RSA *rsa);\nBN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx);\n\nint RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl);\nint RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,\n                                   const unsigned char *f, int fl,\n                                   int rsa_len);\nint RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl);\nint RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,\n                                   const unsigned char *f, int fl,\n                                   int rsa_len);\nint PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed,\n               long seedlen, const EVP_MD *dgst);\nint RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,\n                               const unsigned char *f, int fl,\n                               const unsigned char *p, int pl);\nint RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl, int rsa_len,\n                                 const unsigned char *p, int pl);\nint RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,\n                                    const unsigned char *from, int flen,\n                                    const unsigned char *param, int plen,\n                                    const EVP_MD *md, const EVP_MD *mgf1md);\nint RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,\n                                      const unsigned char *from, int flen,\n                                      int num, const unsigned char *param,\n                                      int plen, const EVP_MD *md,\n                                      const EVP_MD *mgf1md);\nint RSA_padding_add_SSLv23(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl);\nint RSA_padding_check_SSLv23(unsigned char *to, int tlen,\n                             const unsigned char *f, int fl, int rsa_len);\nint RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *f,\n                         int fl);\nint RSA_padding_check_none(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl, int rsa_len);\nint RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *f,\n                         int fl);\nint RSA_padding_check_X931(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl, int rsa_len);\nint RSA_X931_hash_id(int nid);\n\nint RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,\n                         const EVP_MD *Hash, const unsigned char *EM,\n                         int sLen);\nint RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,\n                              const unsigned char *mHash, const EVP_MD *Hash,\n                              int sLen);\n\nint RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,\n                              const EVP_MD *Hash, const EVP_MD *mgf1Hash,\n                              const unsigned char *EM, int sLen);\n\nint RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,\n                                   const unsigned char *mHash,\n                                   const EVP_MD *Hash, const EVP_MD *mgf1Hash,\n                                   int sLen);\n\n#define RSA_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)\nint RSA_set_ex_data(RSA *r, int idx, void *arg);\nvoid *RSA_get_ex_data(const RSA *r, int idx);\n\nRSA *RSAPublicKey_dup(RSA *rsa);\nRSA *RSAPrivateKey_dup(RSA *rsa);\n\n/*\n * If this flag is set the RSA method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define RSA_FLAG_FIPS_METHOD                    0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define RSA_FLAG_NON_FIPS_ALLOW                 0x0400\n/*\n * Application has decided PRNG is good enough to generate a key: don't\n * check.\n */\n# define RSA_FLAG_CHECKED                        0x0800\n\nRSA_METHOD *RSA_meth_new(const char *name, int flags);\nvoid RSA_meth_free(RSA_METHOD *meth);\nRSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);\nconst char *RSA_meth_get0_name(const RSA_METHOD *meth);\nint RSA_meth_set1_name(RSA_METHOD *meth, const char *name);\nint RSA_meth_get_flags(const RSA_METHOD *meth);\nint RSA_meth_set_flags(RSA_METHOD *meth, int flags);\nvoid *RSA_meth_get0_app_data(const RSA_METHOD *meth);\nint RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data);\nint (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_pub_enc(RSA_METHOD *rsa,\n                         int (*pub_enc) (int flen, const unsigned char *from,\n                                         unsigned char *to, RSA *rsa,\n                                         int padding));\nint (*RSA_meth_get_pub_dec(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_pub_dec(RSA_METHOD *rsa,\n                         int (*pub_dec) (int flen, const unsigned char *from,\n                                         unsigned char *to, RSA *rsa,\n                                         int padding));\nint (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_priv_enc(RSA_METHOD *rsa,\n                          int (*priv_enc) (int flen, const unsigned char *from,\n                                           unsigned char *to, RSA *rsa,\n                                           int padding));\nint (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_priv_dec(RSA_METHOD *rsa,\n                          int (*priv_dec) (int flen, const unsigned char *from,\n                                           unsigned char *to, RSA *rsa,\n                                           int padding));\nint (*RSA_meth_get_mod_exp(const RSA_METHOD *meth))\n    (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);\nint RSA_meth_set_mod_exp(RSA_METHOD *rsa,\n                         int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa,\n                                         BN_CTX *ctx));\nint (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth))\n    (BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n     const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint RSA_meth_set_bn_mod_exp(RSA_METHOD *rsa,\n                            int (*bn_mod_exp) (BIGNUM *r,\n                                               const BIGNUM *a,\n                                               const BIGNUM *p,\n                                               const BIGNUM *m,\n                                               BN_CTX *ctx,\n                                               BN_MONT_CTX *m_ctx));\nint (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);\nint RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa));\nint (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);\nint RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa));\nint (*RSA_meth_get_sign(const RSA_METHOD *meth))\n    (int type,\n     const unsigned char *m, unsigned int m_length,\n     unsigned char *sigret, unsigned int *siglen,\n     const RSA *rsa);\nint RSA_meth_set_sign(RSA_METHOD *rsa,\n                      int (*sign) (int type, const unsigned char *m,\n                                   unsigned int m_length,\n                                   unsigned char *sigret, unsigned int *siglen,\n                                   const RSA *rsa));\nint (*RSA_meth_get_verify(const RSA_METHOD *meth))\n    (int dtype, const unsigned char *m,\n     unsigned int m_length, const unsigned char *sigbuf,\n     unsigned int siglen, const RSA *rsa);\nint RSA_meth_set_verify(RSA_METHOD *rsa,\n                        int (*verify) (int dtype, const unsigned char *m,\n                                       unsigned int m_length,\n                                       const unsigned char *sigbuf,\n                                       unsigned int siglen, const RSA *rsa));\nint (*RSA_meth_get_keygen(const RSA_METHOD *meth))\n    (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);\nint RSA_meth_set_keygen(RSA_METHOD *rsa,\n                        int (*keygen) (RSA *rsa, int bits, BIGNUM *e,\n                                       BN_GENCB *cb));\nint (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth))\n    (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb);\nint RSA_meth_set_multi_prime_keygen(RSA_METHOD *meth,\n                                    int (*keygen) (RSA *rsa, int bits,\n                                                   int primes, BIGNUM *e,\n                                                   BN_GENCB *cb));\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/rsaerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RSAERR_H\n# define HEADER_RSAERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_RSA_strings(void);\n\n/*\n * RSA function codes.\n */\n# define RSA_F_CHECK_PADDING_MD                           140\n# define RSA_F_ENCODE_PKCS1                               146\n# define RSA_F_INT_RSA_VERIFY                             145\n# define RSA_F_OLD_RSA_PRIV_DECODE                        147\n# define RSA_F_PKEY_PSS_INIT                              165\n# define RSA_F_PKEY_RSA_CTRL                              143\n# define RSA_F_PKEY_RSA_CTRL_STR                          144\n# define RSA_F_PKEY_RSA_SIGN                              142\n# define RSA_F_PKEY_RSA_VERIFY                            149\n# define RSA_F_PKEY_RSA_VERIFYRECOVER                     141\n# define RSA_F_RSA_ALGOR_TO_MD                            156\n# define RSA_F_RSA_BUILTIN_KEYGEN                         129\n# define RSA_F_RSA_CHECK_KEY                              123\n# define RSA_F_RSA_CHECK_KEY_EX                           160\n# define RSA_F_RSA_CMS_DECRYPT                            159\n# define RSA_F_RSA_CMS_VERIFY                             158\n# define RSA_F_RSA_ITEM_VERIFY                            148\n# define RSA_F_RSA_METH_DUP                               161\n# define RSA_F_RSA_METH_NEW                               162\n# define RSA_F_RSA_METH_SET1_NAME                         163\n# define RSA_F_RSA_MGF1_TO_MD                             157\n# define RSA_F_RSA_MULTIP_INFO_NEW                        166\n# define RSA_F_RSA_NEW_METHOD                             106\n# define RSA_F_RSA_NULL                                   124\n# define RSA_F_RSA_NULL_PRIVATE_DECRYPT                   132\n# define RSA_F_RSA_NULL_PRIVATE_ENCRYPT                   133\n# define RSA_F_RSA_NULL_PUBLIC_DECRYPT                    134\n# define RSA_F_RSA_NULL_PUBLIC_ENCRYPT                    135\n# define RSA_F_RSA_OSSL_PRIVATE_DECRYPT                   101\n# define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT                   102\n# define RSA_F_RSA_OSSL_PUBLIC_DECRYPT                    103\n# define RSA_F_RSA_OSSL_PUBLIC_ENCRYPT                    104\n# define RSA_F_RSA_PADDING_ADD_NONE                       107\n# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP                 121\n# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1            154\n# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS                  125\n# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1             152\n# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1               108\n# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2               109\n# define RSA_F_RSA_PADDING_ADD_SSLV23                     110\n# define RSA_F_RSA_PADDING_ADD_X931                       127\n# define RSA_F_RSA_PADDING_CHECK_NONE                     111\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP               122\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1          153\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1             112\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2             113\n# define RSA_F_RSA_PADDING_CHECK_SSLV23                   114\n# define RSA_F_RSA_PADDING_CHECK_X931                     128\n# define RSA_F_RSA_PARAM_DECODE                           164\n# define RSA_F_RSA_PRINT                                  115\n# define RSA_F_RSA_PRINT_FP                               116\n# define RSA_F_RSA_PRIV_DECODE                            150\n# define RSA_F_RSA_PRIV_ENCODE                            138\n# define RSA_F_RSA_PSS_GET_PARAM                          151\n# define RSA_F_RSA_PSS_TO_CTX                             155\n# define RSA_F_RSA_PUB_DECODE                             139\n# define RSA_F_RSA_SETUP_BLINDING                         136\n# define RSA_F_RSA_SIGN                                   117\n# define RSA_F_RSA_SIGN_ASN1_OCTET_STRING                 118\n# define RSA_F_RSA_VERIFY                                 119\n# define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING               120\n# define RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1                  126\n# define RSA_F_SETUP_TBUF                                 167\n\n/*\n * RSA reason codes.\n */\n# define RSA_R_ALGORITHM_MISMATCH                         100\n# define RSA_R_BAD_E_VALUE                                101\n# define RSA_R_BAD_FIXED_HEADER_DECRYPT                   102\n# define RSA_R_BAD_PAD_BYTE_COUNT                         103\n# define RSA_R_BAD_SIGNATURE                              104\n# define RSA_R_BLOCK_TYPE_IS_NOT_01                       106\n# define RSA_R_BLOCK_TYPE_IS_NOT_02                       107\n# define RSA_R_DATA_GREATER_THAN_MOD_LEN                  108\n# define RSA_R_DATA_TOO_LARGE                             109\n# define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE                110\n# define RSA_R_DATA_TOO_LARGE_FOR_MODULUS                 132\n# define RSA_R_DATA_TOO_SMALL                             111\n# define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE                122\n# define RSA_R_DIGEST_DOES_NOT_MATCH                      158\n# define RSA_R_DIGEST_NOT_ALLOWED                         145\n# define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY                 112\n# define RSA_R_DMP1_NOT_CONGRUENT_TO_D                    124\n# define RSA_R_DMQ1_NOT_CONGRUENT_TO_D                    125\n# define RSA_R_D_E_NOT_CONGRUENT_TO_1                     123\n# define RSA_R_FIRST_OCTET_INVALID                        133\n# define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE        144\n# define RSA_R_INVALID_DIGEST                             157\n# define RSA_R_INVALID_DIGEST_LENGTH                      143\n# define RSA_R_INVALID_HEADER                             137\n# define RSA_R_INVALID_LABEL                              160\n# define RSA_R_INVALID_MESSAGE_LENGTH                     131\n# define RSA_R_INVALID_MGF1_MD                            156\n# define RSA_R_INVALID_MULTI_PRIME_KEY                    167\n# define RSA_R_INVALID_OAEP_PARAMETERS                    161\n# define RSA_R_INVALID_PADDING                            138\n# define RSA_R_INVALID_PADDING_MODE                       141\n# define RSA_R_INVALID_PSS_PARAMETERS                     149\n# define RSA_R_INVALID_PSS_SALTLEN                        146\n# define RSA_R_INVALID_SALT_LENGTH                        150\n# define RSA_R_INVALID_TRAILER                            139\n# define RSA_R_INVALID_X931_DIGEST                        142\n# define RSA_R_IQMP_NOT_INVERSE_OF_Q                      126\n# define RSA_R_KEY_PRIME_NUM_INVALID                      165\n# define RSA_R_KEY_SIZE_TOO_SMALL                         120\n# define RSA_R_LAST_OCTET_INVALID                         134\n# define RSA_R_MISSING_PRIVATE_KEY                        179\n# define RSA_R_MGF1_DIGEST_NOT_ALLOWED                    152\n# define RSA_R_MODULUS_TOO_LARGE                          105\n# define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R            168\n# define RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D             169\n# define RSA_R_MP_R_NOT_PRIME                             170\n# define RSA_R_NO_PUBLIC_EXPONENT                         140\n# define RSA_R_NULL_BEFORE_BLOCK_MISSING                  113\n# define RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES         172\n# define RSA_R_N_DOES_NOT_EQUAL_P_Q                       127\n# define RSA_R_OAEP_DECODING_ERROR                        121\n# define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   148\n# define RSA_R_PADDING_CHECK_FAILED                       114\n# define RSA_R_PKCS_DECODING_ERROR                        159\n# define RSA_R_PSS_SALTLEN_TOO_SMALL                      164\n# define RSA_R_P_NOT_PRIME                                128\n# define RSA_R_Q_NOT_PRIME                                129\n# define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED               130\n# define RSA_R_SLEN_CHECK_FAILED                          136\n# define RSA_R_SLEN_RECOVERY_FAILED                       135\n# define RSA_R_SSLV3_ROLLBACK_ATTACK                      115\n# define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116\n# define RSA_R_UNKNOWN_ALGORITHM_TYPE                     117\n# define RSA_R_UNKNOWN_DIGEST                             166\n# define RSA_R_UNKNOWN_MASK_DIGEST                        151\n# define RSA_R_UNKNOWN_PADDING_TYPE                       118\n# define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE                162\n# define RSA_R_UNSUPPORTED_LABEL_SOURCE                   163\n# define RSA_R_UNSUPPORTED_MASK_ALGORITHM                 153\n# define RSA_R_UNSUPPORTED_MASK_PARAMETER                 154\n# define RSA_R_UNSUPPORTED_SIGNATURE_TYPE                 155\n# define RSA_R_VALUE_MISSING                              147\n# define RSA_R_WRONG_SIGNATURE_LENGTH                     119\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/safestack.h",
    "content": "/*\n * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SAFESTACK_H\n# define HEADER_SAFESTACK_H\n\n# include <openssl/stack.h>\n# include <openssl/e_os2.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define STACK_OF(type) struct stack_st_##type\n\n# define SKM_DEFINE_STACK_OF(t1, t2, t3) \\\n    STACK_OF(t1); \\\n    typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \\\n    typedef void (*sk_##t1##_freefunc)(t3 *a); \\\n    typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \\\n    static ossl_unused ossl_inline int sk_##t1##_num(const STACK_OF(t1) *sk) \\\n    { \\\n        return OPENSSL_sk_num((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \\\n    { \\\n        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new(sk_##t1##_compfunc compare) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \\\n    { \\\n        return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_free((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_zero(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_zero((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_delete(STACK_OF(t1) *sk, int i) \\\n    { \\\n        return (t2 *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_delete_ptr(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return (t2 *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, \\\n                                           (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_push(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_unshift(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_pop(STACK_OF(t1) *sk) \\\n    { \\\n        return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_shift(STACK_OF(t1) *sk) \\\n    { \\\n        return (t2 *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_pop_free(STACK_OF(t1) *sk, sk_##t1##_freefunc freefunc) \\\n    { \\\n        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_insert(STACK_OF(t1) *sk, t2 *ptr, int idx) \\\n    { \\\n        return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_set(STACK_OF(t1) *sk, int idx, t2 *ptr) \\\n    { \\\n        return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_find(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_find_ex(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_sort(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_sort((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_is_sorted(const STACK_OF(t1) *sk) \\\n    { \\\n        return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) * sk_##t1##_dup(const STACK_OF(t1) *sk) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_deep_copy(const STACK_OF(t1) *sk, \\\n                                                    sk_##t1##_copyfunc copyfunc, \\\n                                                    sk_##t1##_freefunc freefunc) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, \\\n                                            (OPENSSL_sk_copyfunc)copyfunc, \\\n                                            (OPENSSL_sk_freefunc)freefunc); \\\n    } \\\n    static ossl_unused ossl_inline sk_##t1##_compfunc sk_##t1##_set_cmp_func(STACK_OF(t1) *sk, sk_##t1##_compfunc compare) \\\n    { \\\n        return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); \\\n    }\n\n# define DEFINE_SPECIAL_STACK_OF(t1, t2) SKM_DEFINE_STACK_OF(t1, t2, t2)\n# define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t)\n# define DEFINE_SPECIAL_STACK_OF_CONST(t1, t2) \\\n            SKM_DEFINE_STACK_OF(t1, const t2, t2)\n# define DEFINE_STACK_OF_CONST(t) SKM_DEFINE_STACK_OF(t, const t, t)\n\n/*-\n * Strings are special: normally an lhash entry will point to a single\n * (somewhat) mutable object. In the case of strings:\n *\n * a) Instead of a single char, there is an array of chars, NUL-terminated.\n * b) The string may have be immutable.\n *\n * So, they need their own declarations. Especially important for\n * type-checking tools, such as Deputy.\n *\n * In practice, however, it appears to be hard to have a const\n * string. For now, I'm settling for dealing with the fact it is a\n * string at all.\n */\ntypedef char *OPENSSL_STRING;\ntypedef const char *OPENSSL_CSTRING;\n\n/*-\n * Confusingly, LHASH_OF(STRING) deals with char ** throughout, but\n * STACK_OF(STRING) is really more like STACK_OF(char), only, as mentioned\n * above, instead of a single char each entry is a NUL-terminated array of\n * chars. So, we have to implement STRING specially for STACK_OF. This is\n * dealt with in the autogenerated macros below.\n */\nDEFINE_SPECIAL_STACK_OF(OPENSSL_STRING, char)\nDEFINE_SPECIAL_STACK_OF_CONST(OPENSSL_CSTRING, char)\n\n/*\n * Similarly, we sometimes use a block of characters, NOT nul-terminated.\n * These should also be distinguished from \"normal\" stacks.\n */\ntypedef void *OPENSSL_BLOCK;\nDEFINE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)\n\n/*\n * If called without higher optimization (min. -xO3) the Oracle Developer\n * Studio compiler generates code for the defined (static inline) functions\n * above.\n * This would later lead to the linker complaining about missing symbols when\n * this header file is included but the resulting object is not linked against\n * the Crypto library (openssl#6912).\n */\n# ifdef __SUNPRO_C\n#  pragma weak OPENSSL_sk_num\n#  pragma weak OPENSSL_sk_value\n#  pragma weak OPENSSL_sk_new\n#  pragma weak OPENSSL_sk_new_null\n#  pragma weak OPENSSL_sk_new_reserve\n#  pragma weak OPENSSL_sk_reserve\n#  pragma weak OPENSSL_sk_free\n#  pragma weak OPENSSL_sk_zero\n#  pragma weak OPENSSL_sk_delete\n#  pragma weak OPENSSL_sk_delete_ptr\n#  pragma weak OPENSSL_sk_push\n#  pragma weak OPENSSL_sk_unshift\n#  pragma weak OPENSSL_sk_pop\n#  pragma weak OPENSSL_sk_shift\n#  pragma weak OPENSSL_sk_pop_free\n#  pragma weak OPENSSL_sk_insert\n#  pragma weak OPENSSL_sk_set\n#  pragma weak OPENSSL_sk_find\n#  pragma weak OPENSSL_sk_find_ex\n#  pragma weak OPENSSL_sk_sort\n#  pragma weak OPENSSL_sk_is_sorted\n#  pragma weak OPENSSL_sk_dup\n#  pragma weak OPENSSL_sk_deep_copy\n#  pragma weak OPENSSL_sk_set_cmp_func\n# endif /* __SUNPRO_C */\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/seed.h",
    "content": "/*\n * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Neither the name of author nor the names of its contributors may\n *    be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#ifndef HEADER_SEED_H\n# define HEADER_SEED_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_SEED\n# include <openssl/e_os2.h>\n# include <openssl/crypto.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* look whether we need 'long' to get 32 bits */\n# ifdef AES_LONG\n#  ifndef SEED_LONG\n#   define SEED_LONG 1\n#  endif\n# endif\n\n# include <sys/types.h>\n\n# define SEED_BLOCK_SIZE 16\n# define SEED_KEY_LENGTH 16\n\ntypedef struct seed_key_st {\n# ifdef SEED_LONG\n    unsigned long data[32];\n# else\n    unsigned int data[32];\n# endif\n} SEED_KEY_SCHEDULE;\n\nvoid SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH],\n                  SEED_KEY_SCHEDULE *ks);\n\nvoid SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE],\n                  unsigned char d[SEED_BLOCK_SIZE],\n                  const SEED_KEY_SCHEDULE *ks);\nvoid SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE],\n                  unsigned char d[SEED_BLOCK_SIZE],\n                  const SEED_KEY_SCHEDULE *ks);\n\nvoid SEED_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      const SEED_KEY_SCHEDULE *ks, int enc);\nvoid SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len,\n                      const SEED_KEY_SCHEDULE *ks,\n                      unsigned char ivec[SEED_BLOCK_SIZE], int enc);\nvoid SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                         size_t len, const SEED_KEY_SCHEDULE *ks,\n                         unsigned char ivec[SEED_BLOCK_SIZE], int *num,\n                         int enc);\nvoid SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                         size_t len, const SEED_KEY_SCHEDULE *ks,\n                         unsigned char ivec[SEED_BLOCK_SIZE], int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/sha.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SHA_H\n# define HEADER_SHA_H\n\n# include <openssl/e_os2.h>\n# include <stddef.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! SHA_LONG has to be at least 32 bits wide.                    !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define SHA_LONG unsigned int\n\n# define SHA_LBLOCK      16\n# define SHA_CBLOCK      (SHA_LBLOCK*4)/* SHA treats input data as a\n                                        * contiguous array of 32 bit wide\n                                        * big-endian values. */\n# define SHA_LAST_BLOCK  (SHA_CBLOCK-8)\n# define SHA_DIGEST_LENGTH 20\n\ntypedef struct SHAstate_st {\n    SHA_LONG h0, h1, h2, h3, h4;\n    SHA_LONG Nl, Nh;\n    SHA_LONG data[SHA_LBLOCK];\n    unsigned int num;\n} SHA_CTX;\n\nint SHA1_Init(SHA_CTX *c);\nint SHA1_Update(SHA_CTX *c, const void *data, size_t len);\nint SHA1_Final(unsigned char *md, SHA_CTX *c);\nunsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA1_Transform(SHA_CTX *c, const unsigned char *data);\n\n# define SHA256_CBLOCK   (SHA_LBLOCK*4)/* SHA-256 treats input data as a\n                                        * contiguous array of 32 bit wide\n                                        * big-endian values. */\n\ntypedef struct SHA256state_st {\n    SHA_LONG h[8];\n    SHA_LONG Nl, Nh;\n    SHA_LONG data[SHA_LBLOCK];\n    unsigned int num, md_len;\n} SHA256_CTX;\n\nint SHA224_Init(SHA256_CTX *c);\nint SHA224_Update(SHA256_CTX *c, const void *data, size_t len);\nint SHA224_Final(unsigned char *md, SHA256_CTX *c);\nunsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md);\nint SHA256_Init(SHA256_CTX *c);\nint SHA256_Update(SHA256_CTX *c, const void *data, size_t len);\nint SHA256_Final(unsigned char *md, SHA256_CTX *c);\nunsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA256_Transform(SHA256_CTX *c, const unsigned char *data);\n\n# define SHA224_DIGEST_LENGTH    28\n# define SHA256_DIGEST_LENGTH    32\n# define SHA384_DIGEST_LENGTH    48\n# define SHA512_DIGEST_LENGTH    64\n\n/*\n * Unlike 32-bit digest algorithms, SHA-512 *relies* on SHA_LONG64\n * being exactly 64-bit wide. See Implementation Notes in sha512.c\n * for further details.\n */\n/*\n * SHA-512 treats input data as a\n * contiguous array of 64 bit\n * wide big-endian values.\n */\n# define SHA512_CBLOCK   (SHA_LBLOCK*8)\n# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)\n#  define SHA_LONG64 unsigned __int64\n#  define U64(C)     C##UI64\n# elif defined(__arch64__)\n#  define SHA_LONG64 unsigned long\n#  define U64(C)     C##UL\n# else\n#  define SHA_LONG64 unsigned long long\n#  define U64(C)     C##ULL\n# endif\n\ntypedef struct SHA512state_st {\n    SHA_LONG64 h[8];\n    SHA_LONG64 Nl, Nh;\n    union {\n        SHA_LONG64 d[SHA_LBLOCK];\n        unsigned char p[SHA512_CBLOCK];\n    } u;\n    unsigned int num, md_len;\n} SHA512_CTX;\n\nint SHA384_Init(SHA512_CTX *c);\nint SHA384_Update(SHA512_CTX *c, const void *data, size_t len);\nint SHA384_Final(unsigned char *md, SHA512_CTX *c);\nunsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md);\nint SHA512_Init(SHA512_CTX *c);\nint SHA512_Update(SHA512_CTX *c, const void *data, size_t len);\nint SHA512_Final(unsigned char *md, SHA512_CTX *c);\nunsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA512_Transform(SHA512_CTX *c, const unsigned char *data);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/srp.h",
    "content": "/*\n * Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2004, EdelKey Project. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n *\n * Originally written by Christophe Renou and Peter Sylvester,\n * for the EdelKey project.\n */\n\n#ifndef HEADER_SRP_H\n# define HEADER_SRP_H\n\n#include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_SRP\n# include <stdio.h>\n# include <string.h>\n# include <openssl/safestack.h>\n# include <openssl/bn.h>\n# include <openssl/crypto.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct SRP_gN_cache_st {\n    char *b64_bn;\n    BIGNUM *bn;\n} SRP_gN_cache;\n\n\nDEFINE_STACK_OF(SRP_gN_cache)\n\ntypedef struct SRP_user_pwd_st {\n    /* Owned by us. */\n    char *id;\n    BIGNUM *s;\n    BIGNUM *v;\n    /* Not owned by us. */\n    const BIGNUM *g;\n    const BIGNUM *N;\n    /* Owned by us. */\n    char *info;\n} SRP_user_pwd;\n\nvoid SRP_user_pwd_free(SRP_user_pwd *user_pwd);\n\nDEFINE_STACK_OF(SRP_user_pwd)\n\ntypedef struct SRP_VBASE_st {\n    STACK_OF(SRP_user_pwd) *users_pwd;\n    STACK_OF(SRP_gN_cache) *gN_cache;\n/* to simulate a user */\n    char *seed_key;\n    const BIGNUM *default_g;\n    const BIGNUM *default_N;\n} SRP_VBASE;\n\n/*\n * Internal structure storing N and g pair\n */\ntypedef struct SRP_gN_st {\n    char *id;\n    const BIGNUM *g;\n    const BIGNUM *N;\n} SRP_gN;\n\nDEFINE_STACK_OF(SRP_gN)\n\nSRP_VBASE *SRP_VBASE_new(char *seed_key);\nvoid SRP_VBASE_free(SRP_VBASE *vb);\nint SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file);\n\n/* This method ignores the configured seed and fails for an unknown user. */\nDEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username))\n/* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/\nSRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username);\n\nchar *SRP_create_verifier(const char *user, const char *pass, char **salt,\n                          char **verifier, const char *N, const char *g);\nint SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt,\n                           BIGNUM **verifier, const BIGNUM *N,\n                           const BIGNUM *g);\n\n# define SRP_NO_ERROR 0\n# define SRP_ERR_VBASE_INCOMPLETE_FILE 1\n# define SRP_ERR_VBASE_BN_LIB 2\n# define SRP_ERR_OPEN_FILE 3\n# define SRP_ERR_MEMORY 4\n\n# define DB_srptype      0\n# define DB_srpverifier  1\n# define DB_srpsalt      2\n# define DB_srpid        3\n# define DB_srpgN        4\n# define DB_srpinfo      5\n# undef  DB_NUMBER\n# define DB_NUMBER       6\n\n# define DB_SRP_INDEX    'I'\n# define DB_SRP_VALID    'V'\n# define DB_SRP_REVOKED  'R'\n# define DB_SRP_MODIF    'v'\n\n/* see srp.c */\nchar *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N);\nSRP_gN *SRP_get_default_gN(const char *id);\n\n/* server side .... */\nBIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,\n                            const BIGNUM *b, const BIGNUM *N);\nBIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,\n                   const BIGNUM *v);\nint SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N);\nBIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);\n\n/* client side .... */\nBIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass);\nBIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g);\nBIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,\n                            const BIGNUM *x, const BIGNUM *a, const BIGNUM *u);\nint SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N);\n\n# define SRP_MINIMAL_N 1024\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/srtp.h",
    "content": "/*\n * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * DTLS code by Eric Rescorla <ekr@rtfm.com>\n *\n * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc.\n */\n\n#ifndef HEADER_D1_SRTP_H\n# define HEADER_D1_SRTP_H\n\n# include <openssl/ssl.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SRTP_AES128_CM_SHA1_80 0x0001\n# define SRTP_AES128_CM_SHA1_32 0x0002\n# define SRTP_AES128_F8_SHA1_80 0x0003\n# define SRTP_AES128_F8_SHA1_32 0x0004\n# define SRTP_NULL_SHA1_80      0x0005\n# define SRTP_NULL_SHA1_32      0x0006\n\n/* AEAD SRTP protection profiles from RFC 7714 */\n# define SRTP_AEAD_AES_128_GCM  0x0007\n# define SRTP_AEAD_AES_256_GCM  0x0008\n\n# ifndef OPENSSL_NO_SRTP\n\n__owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);\n__owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles);\n\n__owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);\n__owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);\n\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ssl.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n * Copyright 2005 Nokia. All rights reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL_H\n# define HEADER_SSL_H\n\n# include <openssl/e_os2.h>\n# include <openssl/opensslconf.h>\n# include <openssl/comp.h>\n# include <openssl/bio.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/x509.h>\n#  include <openssl/crypto.h>\n#  include <openssl/buffer.h>\n# endif\n# include <openssl/lhash.h>\n# include <openssl/pem.h>\n# include <openssl/hmac.h>\n# include <openssl/async.h>\n\n# include <openssl/safestack.h>\n# include <openssl/symhacks.h>\n# include <openssl/ct.h>\n# include <openssl/sslerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* OpenSSL version number for ASN.1 encoding of the session information */\n/*-\n * Version 0 - initial version\n * Version 1 - added the optional peer certificate\n */\n# define SSL_SESSION_ASN1_VERSION 0x0001\n\n# define SSL_MAX_SSL_SESSION_ID_LENGTH           32\n# define SSL_MAX_SID_CTX_LENGTH                  32\n\n# define SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES     (512/8)\n# define SSL_MAX_KEY_ARG_LENGTH                  8\n# define SSL_MAX_MASTER_KEY_LENGTH               48\n\n/* The maximum number of encrypt/decrypt pipelines we can support */\n# define SSL_MAX_PIPELINES  32\n\n/* text strings for the ciphers */\n\n/* These are used to specify which ciphers to use and not to use */\n\n# define SSL_TXT_LOW             \"LOW\"\n# define SSL_TXT_MEDIUM          \"MEDIUM\"\n# define SSL_TXT_HIGH            \"HIGH\"\n# define SSL_TXT_FIPS            \"FIPS\"\n\n# define SSL_TXT_aNULL           \"aNULL\"\n# define SSL_TXT_eNULL           \"eNULL\"\n# define SSL_TXT_NULL            \"NULL\"\n\n# define SSL_TXT_kRSA            \"kRSA\"\n# define SSL_TXT_kDHr            \"kDHr\"/* this cipher class has been removed */\n# define SSL_TXT_kDHd            \"kDHd\"/* this cipher class has been removed */\n# define SSL_TXT_kDH             \"kDH\"/* this cipher class has been removed */\n# define SSL_TXT_kEDH            \"kEDH\"/* alias for kDHE */\n# define SSL_TXT_kDHE            \"kDHE\"\n# define SSL_TXT_kECDHr          \"kECDHr\"/* this cipher class has been removed */\n# define SSL_TXT_kECDHe          \"kECDHe\"/* this cipher class has been removed */\n# define SSL_TXT_kECDH           \"kECDH\"/* this cipher class has been removed */\n# define SSL_TXT_kEECDH          \"kEECDH\"/* alias for kECDHE */\n# define SSL_TXT_kECDHE          \"kECDHE\"\n# define SSL_TXT_kPSK            \"kPSK\"\n# define SSL_TXT_kRSAPSK         \"kRSAPSK\"\n# define SSL_TXT_kECDHEPSK       \"kECDHEPSK\"\n# define SSL_TXT_kDHEPSK         \"kDHEPSK\"\n# define SSL_TXT_kGOST           \"kGOST\"\n# define SSL_TXT_kSRP            \"kSRP\"\n\n# define SSL_TXT_aRSA            \"aRSA\"\n# define SSL_TXT_aDSS            \"aDSS\"\n# define SSL_TXT_aDH             \"aDH\"/* this cipher class has been removed */\n# define SSL_TXT_aECDH           \"aECDH\"/* this cipher class has been removed */\n# define SSL_TXT_aECDSA          \"aECDSA\"\n# define SSL_TXT_aPSK            \"aPSK\"\n# define SSL_TXT_aGOST94         \"aGOST94\"\n# define SSL_TXT_aGOST01         \"aGOST01\"\n# define SSL_TXT_aGOST12         \"aGOST12\"\n# define SSL_TXT_aGOST           \"aGOST\"\n# define SSL_TXT_aSRP            \"aSRP\"\n\n# define SSL_TXT_DSS             \"DSS\"\n# define SSL_TXT_DH              \"DH\"\n# define SSL_TXT_DHE             \"DHE\"/* same as \"kDHE:-ADH\" */\n# define SSL_TXT_EDH             \"EDH\"/* alias for DHE */\n# define SSL_TXT_ADH             \"ADH\"\n# define SSL_TXT_RSA             \"RSA\"\n# define SSL_TXT_ECDH            \"ECDH\"\n# define SSL_TXT_EECDH           \"EECDH\"/* alias for ECDHE\" */\n# define SSL_TXT_ECDHE           \"ECDHE\"/* same as \"kECDHE:-AECDH\" */\n# define SSL_TXT_AECDH           \"AECDH\"\n# define SSL_TXT_ECDSA           \"ECDSA\"\n# define SSL_TXT_PSK             \"PSK\"\n# define SSL_TXT_SRP             \"SRP\"\n\n# define SSL_TXT_DES             \"DES\"\n# define SSL_TXT_3DES            \"3DES\"\n# define SSL_TXT_RC4             \"RC4\"\n# define SSL_TXT_RC2             \"RC2\"\n# define SSL_TXT_IDEA            \"IDEA\"\n# define SSL_TXT_SEED            \"SEED\"\n# define SSL_TXT_AES128          \"AES128\"\n# define SSL_TXT_AES256          \"AES256\"\n# define SSL_TXT_AES             \"AES\"\n# define SSL_TXT_AES_GCM         \"AESGCM\"\n# define SSL_TXT_AES_CCM         \"AESCCM\"\n# define SSL_TXT_AES_CCM_8       \"AESCCM8\"\n# define SSL_TXT_CAMELLIA128     \"CAMELLIA128\"\n# define SSL_TXT_CAMELLIA256     \"CAMELLIA256\"\n# define SSL_TXT_CAMELLIA        \"CAMELLIA\"\n# define SSL_TXT_CHACHA20        \"CHACHA20\"\n# define SSL_TXT_GOST            \"GOST89\"\n# define SSL_TXT_ARIA            \"ARIA\"\n# define SSL_TXT_ARIA_GCM        \"ARIAGCM\"\n# define SSL_TXT_ARIA128         \"ARIA128\"\n# define SSL_TXT_ARIA256         \"ARIA256\"\n\n# define SSL_TXT_MD5             \"MD5\"\n# define SSL_TXT_SHA1            \"SHA1\"\n# define SSL_TXT_SHA             \"SHA\"/* same as \"SHA1\" */\n# define SSL_TXT_GOST94          \"GOST94\"\n# define SSL_TXT_GOST89MAC       \"GOST89MAC\"\n# define SSL_TXT_GOST12          \"GOST12\"\n# define SSL_TXT_GOST89MAC12     \"GOST89MAC12\"\n# define SSL_TXT_SHA256          \"SHA256\"\n# define SSL_TXT_SHA384          \"SHA384\"\n\n# define SSL_TXT_SSLV3           \"SSLv3\"\n# define SSL_TXT_TLSV1           \"TLSv1\"\n# define SSL_TXT_TLSV1_1         \"TLSv1.1\"\n# define SSL_TXT_TLSV1_2         \"TLSv1.2\"\n\n# define SSL_TXT_ALL             \"ALL\"\n\n/*-\n * COMPLEMENTOF* definitions. These identifiers are used to (de-select)\n * ciphers normally not being used.\n * Example: \"RC4\" will activate all ciphers using RC4 including ciphers\n * without authentication, which would normally disabled by DEFAULT (due\n * the \"!ADH\" being part of default). Therefore \"RC4:!COMPLEMENTOFDEFAULT\"\n * will make sure that it is also disabled in the specific selection.\n * COMPLEMENTOF* identifiers are portable between version, as adjustments\n * to the default cipher setup will also be included here.\n *\n * COMPLEMENTOFDEFAULT does not experience the same special treatment that\n * DEFAULT gets, as only selection is being done and no sorting as needed\n * for DEFAULT.\n */\n# define SSL_TXT_CMPALL          \"COMPLEMENTOFALL\"\n# define SSL_TXT_CMPDEF          \"COMPLEMENTOFDEFAULT\"\n\n/*\n * The following cipher list is used by default. It also is substituted when\n * an application-defined cipher list string starts with 'DEFAULT'.\n * This applies to ciphersuites for TLSv1.2 and below.\n */\n# define SSL_DEFAULT_CIPHER_LIST \"ALL:!COMPLEMENTOFDEFAULT:!eNULL\"\n/* This is the default set of TLSv1.3 ciphersuites */\n# if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305)\n#  define TLS_DEFAULT_CIPHERSUITES \"TLS_AES_256_GCM_SHA384:\" \\\n                                   \"TLS_CHACHA20_POLY1305_SHA256:\" \\\n                                   \"TLS_AES_128_GCM_SHA256\"\n# else\n#  define TLS_DEFAULT_CIPHERSUITES \"TLS_AES_256_GCM_SHA384:\" \\\n                                   \"TLS_AES_128_GCM_SHA256\"\n#endif\n/*\n * As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always\n * starts with a reasonable order, and all we have to do for DEFAULT is\n * throwing out anonymous and unencrypted ciphersuites! (The latter are not\n * actually enabled by ALL, but \"ALL:RSA\" would enable some of them.)\n */\n\n/* Used in SSL_set_shutdown()/SSL_get_shutdown(); */\n# define SSL_SENT_SHUTDOWN       1\n# define SSL_RECEIVED_SHUTDOWN   2\n\n#ifdef __cplusplus\n}\n#endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SSL_FILETYPE_ASN1       X509_FILETYPE_ASN1\n# define SSL_FILETYPE_PEM        X509_FILETYPE_PEM\n\n/*\n * This is needed to stop compilers complaining about the 'struct ssl_st *'\n * function parameters used to prototype callbacks in SSL_CTX.\n */\ntypedef struct ssl_st *ssl_crock_st;\ntypedef struct tls_session_ticket_ext_st TLS_SESSION_TICKET_EXT;\ntypedef struct ssl_method_st SSL_METHOD;\ntypedef struct ssl_cipher_st SSL_CIPHER;\ntypedef struct ssl_session_st SSL_SESSION;\ntypedef struct tls_sigalgs_st TLS_SIGALGS;\ntypedef struct ssl_conf_ctx_st SSL_CONF_CTX;\ntypedef struct ssl_comp_st SSL_COMP;\n\nSTACK_OF(SSL_CIPHER);\nSTACK_OF(SSL_COMP);\n\n/* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*/\ntypedef struct srtp_protection_profile_st {\n    const char *name;\n    unsigned long id;\n} SRTP_PROTECTION_PROFILE;\n\nDEFINE_STACK_OF(SRTP_PROTECTION_PROFILE)\n\ntypedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,\n                                            int len, void *arg);\ntypedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len,\n                                        STACK_OF(SSL_CIPHER) *peer_ciphers,\n                                        const SSL_CIPHER **cipher, void *arg);\n\n/* Extension context codes */\n/* This extension is only allowed in TLS */\n#define SSL_EXT_TLS_ONLY                        0x0001\n/* This extension is only allowed in DTLS */\n#define SSL_EXT_DTLS_ONLY                       0x0002\n/* Some extensions may be allowed in DTLS but we don't implement them for it */\n#define SSL_EXT_TLS_IMPLEMENTATION_ONLY         0x0004\n/* Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is */\n#define SSL_EXT_SSL3_ALLOWED                    0x0008\n/* Extension is only defined for TLS1.2 and below */\n#define SSL_EXT_TLS1_2_AND_BELOW_ONLY           0x0010\n/* Extension is only defined for TLS1.3 and above */\n#define SSL_EXT_TLS1_3_ONLY                     0x0020\n/* Ignore this extension during parsing if we are resuming */\n#define SSL_EXT_IGNORE_ON_RESUMPTION            0x0040\n#define SSL_EXT_CLIENT_HELLO                    0x0080\n/* Really means TLS1.2 or below */\n#define SSL_EXT_TLS1_2_SERVER_HELLO             0x0100\n#define SSL_EXT_TLS1_3_SERVER_HELLO             0x0200\n#define SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS     0x0400\n#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST      0x0800\n#define SSL_EXT_TLS1_3_CERTIFICATE              0x1000\n#define SSL_EXT_TLS1_3_NEW_SESSION_TICKET       0x2000\n#define SSL_EXT_TLS1_3_CERTIFICATE_REQUEST      0x4000\n\n/* Typedefs for handling custom extensions */\n\ntypedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type,\n                                 const unsigned char **out, size_t *outlen,\n                                 int *al, void *add_arg);\n\ntypedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type,\n                                   const unsigned char *out, void *add_arg);\n\ntypedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type,\n                                   const unsigned char *in, size_t inlen,\n                                   int *al, void *parse_arg);\n\n\ntypedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type,\n                                        unsigned int context,\n                                        const unsigned char **out,\n                                        size_t *outlen, X509 *x,\n                                        size_t chainidx,\n                                        int *al, void *add_arg);\n\ntypedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type,\n                                          unsigned int context,\n                                          const unsigned char *out,\n                                          void *add_arg);\n\ntypedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type,\n                                          unsigned int context,\n                                          const unsigned char *in,\n                                          size_t inlen, X509 *x,\n                                          size_t chainidx,\n                                          int *al, void *parse_arg);\n\n/* Typedef for verification callback */\ntypedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);\n\n/*\n * Some values are reserved until OpenSSL 1.2.0 because they were previously\n * included in SSL_OP_ALL in a 1.1.x release.\n *\n * Reserved value (until OpenSSL 1.2.0)                  0x00000001U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000002U\n */\n/* Allow initial connection to servers that don't support RI */\n# define SSL_OP_LEGACY_SERVER_CONNECT                    0x00000004U\n\n/* Reserved value (until OpenSSL 1.2.0)                  0x00000008U */\n# define SSL_OP_TLSEXT_PADDING                           0x00000010U\n/* Reserved value (until OpenSSL 1.2.0)                  0x00000020U */\n# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG                   0x00000040U\n/*\n * Reserved value (until OpenSSL 1.2.0)                  0x00000080U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000100U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000200U\n */\n\n/* In TLSv1.3 allow a non-(ec)dhe based kex_mode */\n# define SSL_OP_ALLOW_NO_DHE_KEX                         0x00000400U\n\n/*\n * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in\n * OpenSSL 0.9.6d.  Usually (depending on the application protocol) the\n * workaround is not needed.  Unfortunately some broken SSL/TLS\n * implementations cannot handle it at all, which is why we include it in\n * SSL_OP_ALL. Added in 0.9.6e\n */\n# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS              0x00000800U\n\n/* DTLS options */\n# define SSL_OP_NO_QUERY_MTU                             0x00001000U\n/* Turn on Cookie Exchange (on relevant for servers) */\n# define SSL_OP_COOKIE_EXCHANGE                          0x00002000U\n/* Don't use RFC4507 ticket extension */\n# define SSL_OP_NO_TICKET                                0x00004000U\n# ifndef OPENSSL_NO_DTLS1_METHOD\n/* Use Cisco's \"speshul\" version of DTLS_BAD_VER\n * (only with deprecated DTLSv1_client_method())  */\n#  define SSL_OP_CISCO_ANYCONNECT                        0x00008000U\n# endif\n\n/* As server, disallow session resumption on renegotiation */\n# define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   0x00010000U\n/* Don't use compression even if supported */\n# define SSL_OP_NO_COMPRESSION                           0x00020000U\n/* Permit unsafe legacy renegotiation */\n# define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        0x00040000U\n/* Disable encrypt-then-mac */\n# define SSL_OP_NO_ENCRYPT_THEN_MAC                      0x00080000U\n\n/*\n * Enable TLSv1.3 Compatibility mode. This is on by default. A future version\n * of OpenSSL may have this disabled by default.\n */\n# define SSL_OP_ENABLE_MIDDLEBOX_COMPAT                  0x00100000U\n\n/* Prioritize Chacha20Poly1305 when client does.\n * Modifies SSL_OP_CIPHER_SERVER_PREFERENCE */\n# define SSL_OP_PRIORITIZE_CHACHA                        0x00200000U\n\n/*\n * Set on servers to choose the cipher according to the server's preferences\n */\n# define SSL_OP_CIPHER_SERVER_PREFERENCE                 0x00400000U\n/*\n * If set, a server will allow a client to issue a SSLv3.0 version number as\n * latest version supported in the premaster secret, even when TLSv1.0\n * (version 3.1) was announced in the client hello. Normally this is\n * forbidden to prevent version rollback attacks.\n */\n# define SSL_OP_TLS_ROLLBACK_BUG                         0x00800000U\n\n/*\n * Switches off automatic TLSv1.3 anti-replay protection for early data. This\n * is a server-side option only (no effect on the client).\n */\n# define SSL_OP_NO_ANTI_REPLAY                           0x01000000U\n\n# define SSL_OP_NO_SSLv3                                 0x02000000U\n# define SSL_OP_NO_TLSv1                                 0x04000000U\n# define SSL_OP_NO_TLSv1_2                               0x08000000U\n# define SSL_OP_NO_TLSv1_1                               0x10000000U\n# define SSL_OP_NO_TLSv1_3                               0x20000000U\n\n# define SSL_OP_NO_DTLSv1                                0x04000000U\n# define SSL_OP_NO_DTLSv1_2                              0x08000000U\n\n# define SSL_OP_NO_SSL_MASK (SSL_OP_NO_SSLv3|\\\n        SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1_2|SSL_OP_NO_TLSv1_3)\n# define SSL_OP_NO_DTLS_MASK (SSL_OP_NO_DTLSv1|SSL_OP_NO_DTLSv1_2)\n\n/* Disallow all renegotiation */\n# define SSL_OP_NO_RENEGOTIATION                         0x40000000U\n\n/*\n * Make server add server-hello extension from early version of cryptopro\n * draft, when GOST ciphersuite is negotiated. Required for interoperability\n * with CryptoPro CSP 3.x\n */\n# define SSL_OP_CRYPTOPRO_TLSEXT_BUG                     0x80000000U\n\n/*\n * SSL_OP_ALL: various bug workarounds that should be rather harmless.\n * This used to be 0x000FFFFFL before 0.9.7.\n * This used to be 0x80000BFFU before 1.1.1.\n */\n# define SSL_OP_ALL        (SSL_OP_CRYPTOPRO_TLSEXT_BUG|\\\n                            SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS|\\\n                            SSL_OP_LEGACY_SERVER_CONNECT|\\\n                            SSL_OP_TLSEXT_PADDING|\\\n                            SSL_OP_SAFARI_ECDHE_ECDSA_BUG)\n\n/* OBSOLETE OPTIONS: retained for compatibility */\n\n/* Removed from OpenSSL 1.1.0. Was 0x00000001L */\n/* Related to removed SSLv2. */\n# define SSL_OP_MICROSOFT_SESS_ID_BUG                    0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000002L */\n/* Related to removed SSLv2. */\n# define SSL_OP_NETSCAPE_CHALLENGE_BUG                   0x0\n/* Removed from OpenSSL 0.9.8q and 1.0.0c. Was 0x00000008L */\n/* Dead forever, see CVE-2010-4180 */\n# define SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG         0x0\n/* Removed from OpenSSL 1.0.1h and 1.0.2. Was 0x00000010L */\n/* Refers to ancient SSLREF and SSLv2. */\n# define SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG              0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000020 */\n# define SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER               0x0\n/* Removed from OpenSSL 0.9.7h and 0.9.8b. Was 0x00000040L */\n# define SSL_OP_MSIE_SSLV2_RSA_PADDING                   0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000080 */\n/* Ancient SSLeay version. */\n# define SSL_OP_SSLEAY_080_CLIENT_DH_BUG                 0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000100L */\n# define SSL_OP_TLS_D5_BUG                               0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000200L */\n# define SSL_OP_TLS_BLOCK_PADDING_BUG                    0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00080000L */\n# define SSL_OP_SINGLE_ECDH_USE                          0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00100000L */\n# define SSL_OP_SINGLE_DH_USE                            0x0\n/* Removed from OpenSSL 1.0.1k and 1.0.2. Was 0x00200000L */\n# define SSL_OP_EPHEMERAL_RSA                            0x0\n/* Removed from OpenSSL 1.1.0. Was 0x01000000L */\n# define SSL_OP_NO_SSLv2                                 0x0\n/* Removed from OpenSSL 1.0.1. Was 0x08000000L */\n# define SSL_OP_PKCS1_CHECK_1                            0x0\n/* Removed from OpenSSL 1.0.1. Was 0x10000000L */\n# define SSL_OP_PKCS1_CHECK_2                            0x0\n/* Removed from OpenSSL 1.1.0. Was 0x20000000L */\n# define SSL_OP_NETSCAPE_CA_DN_BUG                       0x0\n/* Removed from OpenSSL 1.1.0. Was 0x40000000L */\n# define SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG          0x0\n\n/*\n * Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success\n * when just a single record has been written):\n */\n# define SSL_MODE_ENABLE_PARTIAL_WRITE       0x00000001U\n/*\n * Make it possible to retry SSL_write() with changed buffer location (buffer\n * contents must stay the same!); this is not the default to avoid the\n * misconception that non-blocking SSL_write() behaves like non-blocking\n * write():\n */\n# define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER 0x00000002U\n/*\n * Never bother the application with retries if the transport is blocking:\n */\n# define SSL_MODE_AUTO_RETRY 0x00000004U\n/* Don't attempt to automatically build certificate chain */\n# define SSL_MODE_NO_AUTO_CHAIN 0x00000008U\n/*\n * Save RAM by releasing read and write buffers when they're empty. (SSL3 and\n * TLS only.) Released buffers are freed.\n */\n# define SSL_MODE_RELEASE_BUFFERS 0x00000010U\n/*\n * Send the current time in the Random fields of the ClientHello and\n * ServerHello records for compatibility with hypothetical implementations\n * that require it.\n */\n# define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020U\n# define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040U\n/*\n * Send TLS_FALLBACK_SCSV in the ClientHello. To be set only by applications\n * that reconnect with a downgraded protocol version; see\n * draft-ietf-tls-downgrade-scsv-00 for details. DO NOT ENABLE THIS if your\n * application attempts a normal handshake. Only use this in explicit\n * fallback retries, following the guidance in\n * draft-ietf-tls-downgrade-scsv-00.\n */\n# define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U\n/*\n * Support Asynchronous operation\n */\n# define SSL_MODE_ASYNC 0x00000100U\n\n/*\n * When using DTLS/SCTP, include the terminating zero in the label\n * used for computing the endpoint-pair shared secret. Required for\n * interoperability with implementations having this bug like these\n * older version of OpenSSL:\n * - OpenSSL 1.0.0 series\n * - OpenSSL 1.0.1 series\n * - OpenSSL 1.0.2 series\n * - OpenSSL 1.1.0 series\n * - OpenSSL 1.1.1 and 1.1.1a\n */\n# define SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG 0x00000400U\n\n/* Cert related flags */\n/*\n * Many implementations ignore some aspects of the TLS standards such as\n * enforcing certificate chain algorithms. When this is set we enforce them.\n */\n# define SSL_CERT_FLAG_TLS_STRICT                0x00000001U\n\n/* Suite B modes, takes same values as certificate verify flags */\n# define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY       0x10000\n/* Suite B 192 bit only mode */\n# define SSL_CERT_FLAG_SUITEB_192_LOS            0x20000\n/* Suite B 128 bit mode allowing 192 bit algorithms */\n# define SSL_CERT_FLAG_SUITEB_128_LOS            0x30000\n\n/* Perform all sorts of protocol violations for testing purposes */\n# define SSL_CERT_FLAG_BROKEN_PROTOCOL           0x10000000\n\n/* Flags for building certificate chains */\n/* Treat any existing certificates as untrusted CAs */\n# define SSL_BUILD_CHAIN_FLAG_UNTRUSTED          0x1\n/* Don't include root CA in chain */\n# define SSL_BUILD_CHAIN_FLAG_NO_ROOT            0x2\n/* Just check certificates already there */\n# define SSL_BUILD_CHAIN_FLAG_CHECK              0x4\n/* Ignore verification errors */\n# define SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR       0x8\n/* Clear verification errors from queue */\n# define SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR        0x10\n\n/* Flags returned by SSL_check_chain */\n/* Certificate can be used with this session */\n# define CERT_PKEY_VALID         0x1\n/* Certificate can also be used for signing */\n# define CERT_PKEY_SIGN          0x2\n/* EE certificate signing algorithm OK */\n# define CERT_PKEY_EE_SIGNATURE  0x10\n/* CA signature algorithms OK */\n# define CERT_PKEY_CA_SIGNATURE  0x20\n/* EE certificate parameters OK */\n# define CERT_PKEY_EE_PARAM      0x40\n/* CA certificate parameters OK */\n# define CERT_PKEY_CA_PARAM      0x80\n/* Signing explicitly allowed as opposed to SHA1 fallback */\n# define CERT_PKEY_EXPLICIT_SIGN 0x100\n/* Client CA issuer names match (always set for server cert) */\n# define CERT_PKEY_ISSUER_NAME   0x200\n/* Cert type matches client types (always set for server cert) */\n# define CERT_PKEY_CERT_TYPE     0x400\n/* Cert chain suitable to Suite B */\n# define CERT_PKEY_SUITEB        0x800\n\n# define SSL_CONF_FLAG_CMDLINE           0x1\n# define SSL_CONF_FLAG_FILE              0x2\n# define SSL_CONF_FLAG_CLIENT            0x4\n# define SSL_CONF_FLAG_SERVER            0x8\n# define SSL_CONF_FLAG_SHOW_ERRORS       0x10\n# define SSL_CONF_FLAG_CERTIFICATE       0x20\n# define SSL_CONF_FLAG_REQUIRE_PRIVATE   0x40\n/* Configuration value types */\n# define SSL_CONF_TYPE_UNKNOWN           0x0\n# define SSL_CONF_TYPE_STRING            0x1\n# define SSL_CONF_TYPE_FILE              0x2\n# define SSL_CONF_TYPE_DIR               0x3\n# define SSL_CONF_TYPE_NONE              0x4\n\n/* Maximum length of the application-controlled segment of a a TLSv1.3 cookie */\n# define SSL_COOKIE_LENGTH                       4096\n\n/*\n * Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, they\n * cannot be used to clear bits.\n */\n\nunsigned long SSL_CTX_get_options(const SSL_CTX *ctx);\nunsigned long SSL_get_options(const SSL *s);\nunsigned long SSL_CTX_clear_options(SSL_CTX *ctx, unsigned long op);\nunsigned long SSL_clear_options(SSL *s, unsigned long op);\nunsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);\nunsigned long SSL_set_options(SSL *s, unsigned long op);\n\n# define SSL_CTX_set_mode(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)\n# define SSL_CTX_clear_mode(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL)\n# define SSL_CTX_get_mode(ctx) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL)\n# define SSL_clear_mode(ssl,op) \\\n        SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)\n# define SSL_set_mode(ssl,op) \\\n        SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)\n# define SSL_get_mode(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)\n# define SSL_set_mtu(ssl, mtu) \\\n        SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)\n# define DTLS_set_link_mtu(ssl, mtu) \\\n        SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)\n# define DTLS_get_link_min_mtu(ssl) \\\n        SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL)\n\n# define SSL_get_secure_renegotiation_support(ssl) \\\n        SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)\n\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_heartbeat(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL)\n# endif\n\n# define SSL_CTX_set_cert_flags(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL)\n# define SSL_set_cert_flags(s,op) \\\n        SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL)\n# define SSL_CTX_clear_cert_flags(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)\n# define SSL_clear_cert_flags(s,op) \\\n        SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)\n\nvoid SSL_CTX_set_msg_callback(SSL_CTX *ctx,\n                              void (*cb) (int write_p, int version,\n                                          int content_type, const void *buf,\n                                          size_t len, SSL *ssl, void *arg));\nvoid SSL_set_msg_callback(SSL *ssl,\n                          void (*cb) (int write_p, int version,\n                                      int content_type, const void *buf,\n                                      size_t len, SSL *ssl, void *arg));\n# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))\n# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))\n\n# define SSL_get_extms_support(s) \\\n        SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL)\n\n# ifndef OPENSSL_NO_SRP\n\n/* see tls_srp.c */\n__owur int SSL_SRP_CTX_init(SSL *s);\n__owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);\nint SSL_SRP_CTX_free(SSL *ctx);\nint SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);\n__owur int SSL_srp_server_param_with_username(SSL *s, int *ad);\n__owur int SRP_Calc_A_param(SSL *s);\n\n# endif\n\n/* 100k max cert list */\n# define SSL_MAX_CERT_LIST_DEFAULT 1024*100\n\n# define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT      (1024*20)\n\n/*\n * This callback type is used inside SSL_CTX, SSL, and in the functions that\n * set them. It is used to override the generation of SSL/TLS session IDs in\n * a server. Return value should be zero on an error, non-zero to proceed.\n * Also, callbacks should themselves check if the id they generate is unique\n * otherwise the SSL handshake will fail with an error - callbacks can do\n * this using the 'ssl' value they're passed by;\n * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in\n * is set at the maximum size the session ID can be. In SSLv3/TLSv1 it is 32\n * bytes. The callback can alter this length to be less if desired. It is\n * also an error for the callback to set the size to zero.\n */\ntypedef int (*GEN_SESSION_CB) (SSL *ssl, unsigned char *id,\n                               unsigned int *id_len);\n\n# define SSL_SESS_CACHE_OFF                      0x0000\n# define SSL_SESS_CACHE_CLIENT                   0x0001\n# define SSL_SESS_CACHE_SERVER                   0x0002\n# define SSL_SESS_CACHE_BOTH     (SSL_SESS_CACHE_CLIENT|SSL_SESS_CACHE_SERVER)\n# define SSL_SESS_CACHE_NO_AUTO_CLEAR            0x0080\n/* enough comments already ... see SSL_CTX_set_session_cache_mode(3) */\n# define SSL_SESS_CACHE_NO_INTERNAL_LOOKUP       0x0100\n# define SSL_SESS_CACHE_NO_INTERNAL_STORE        0x0200\n# define SSL_SESS_CACHE_NO_INTERNAL \\\n        (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP|SSL_SESS_CACHE_NO_INTERNAL_STORE)\n\nLHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);\n# define SSL_CTX_sess_number(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL)\n# define SSL_CTX_sess_connect(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL)\n# define SSL_CTX_sess_connect_good(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL)\n# define SSL_CTX_sess_connect_renegotiate(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL)\n# define SSL_CTX_sess_accept(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL)\n# define SSL_CTX_sess_accept_renegotiate(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL)\n# define SSL_CTX_sess_accept_good(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL)\n# define SSL_CTX_sess_hits(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL)\n# define SSL_CTX_sess_cb_hits(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL)\n# define SSL_CTX_sess_misses(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL)\n# define SSL_CTX_sess_timeouts(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL)\n# define SSL_CTX_sess_cache_full(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL)\n\nvoid SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,\n                             int (*new_session_cb) (struct ssl_st *ssl,\n                                                    SSL_SESSION *sess));\nint (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,\n                                              SSL_SESSION *sess);\nvoid SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx,\n                                void (*remove_session_cb) (struct ssl_ctx_st\n                                                           *ctx,\n                                                           SSL_SESSION *sess));\nvoid (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)) (struct ssl_ctx_st *ctx,\n                                                  SSL_SESSION *sess);\nvoid SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,\n                             SSL_SESSION *(*get_session_cb) (struct ssl_st\n                                                             *ssl,\n                                                             const unsigned char\n                                                             *data, int len,\n                                                             int *copy));\nSSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,\n                                                       const unsigned char *data,\n                                                       int len, int *copy);\nvoid SSL_CTX_set_info_callback(SSL_CTX *ctx,\n                               void (*cb) (const SSL *ssl, int type, int val));\nvoid (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,\n                                                 int val);\nvoid SSL_CTX_set_client_cert_cb(SSL_CTX *ctx,\n                                int (*client_cert_cb) (SSL *ssl, X509 **x509,\n                                                       EVP_PKEY **pkey));\nint (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,\n                                                 EVP_PKEY **pkey);\n# ifndef OPENSSL_NO_ENGINE\n__owur int SSL_CTX_set_client_cert_engine(SSL_CTX *ctx, ENGINE *e);\n# endif\nvoid SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx,\n                                    int (*app_gen_cookie_cb) (SSL *ssl,\n                                                              unsigned char\n                                                              *cookie,\n                                                              unsigned int\n                                                              *cookie_len));\nvoid SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx,\n                                  int (*app_verify_cookie_cb) (SSL *ssl,\n                                                               const unsigned\n                                                               char *cookie,\n                                                               unsigned int\n                                                               cookie_len));\n\nvoid SSL_CTX_set_stateless_cookie_generate_cb(\n    SSL_CTX *ctx,\n    int (*gen_stateless_cookie_cb) (SSL *ssl,\n                                    unsigned char *cookie,\n                                    size_t *cookie_len));\nvoid SSL_CTX_set_stateless_cookie_verify_cb(\n    SSL_CTX *ctx,\n    int (*verify_stateless_cookie_cb) (SSL *ssl,\n                                       const unsigned char *cookie,\n                                       size_t cookie_len));\n# ifndef OPENSSL_NO_NEXTPROTONEG\n\ntypedef int (*SSL_CTX_npn_advertised_cb_func)(SSL *ssl,\n                                              const unsigned char **out,\n                                              unsigned int *outlen,\n                                              void *arg);\nvoid SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s,\n                                           SSL_CTX_npn_advertised_cb_func cb,\n                                           void *arg);\n#  define SSL_CTX_set_npn_advertised_cb SSL_CTX_set_next_protos_advertised_cb\n\ntypedef int (*SSL_CTX_npn_select_cb_func)(SSL *s,\n                                          unsigned char **out,\n                                          unsigned char *outlen,\n                                          const unsigned char *in,\n                                          unsigned int inlen,\n                                          void *arg);\nvoid SSL_CTX_set_next_proto_select_cb(SSL_CTX *s,\n                                      SSL_CTX_npn_select_cb_func cb,\n                                      void *arg);\n#  define SSL_CTX_set_npn_select_cb SSL_CTX_set_next_proto_select_cb\n\nvoid SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,\n                                    unsigned *len);\n#  define SSL_get0_npn_negotiated SSL_get0_next_proto_negotiated\n# endif\n\n__owur int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,\n                                 const unsigned char *in, unsigned int inlen,\n                                 const unsigned char *client,\n                                 unsigned int client_len);\n\n# define OPENSSL_NPN_UNSUPPORTED 0\n# define OPENSSL_NPN_NEGOTIATED  1\n# define OPENSSL_NPN_NO_OVERLAP  2\n\n__owur int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,\n                                   unsigned int protos_len);\n__owur int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,\n                               unsigned int protos_len);\ntypedef int (*SSL_CTX_alpn_select_cb_func)(SSL *ssl,\n                                           const unsigned char **out,\n                                           unsigned char *outlen,\n                                           const unsigned char *in,\n                                           unsigned int inlen,\n                                           void *arg);\nvoid SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,\n                                SSL_CTX_alpn_select_cb_func cb,\n                                void *arg);\nvoid SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data,\n                            unsigned int *len);\n\n# ifndef OPENSSL_NO_PSK\n/*\n * the maximum length of the buffer given to callbacks containing the\n * resulting identity/psk\n */\n#  define PSK_MAX_IDENTITY_LEN 128\n#  define PSK_MAX_PSK_LEN 256\ntypedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,\n                                               const char *hint,\n                                               char *identity,\n                                               unsigned int max_identity_len,\n                                               unsigned char *psk,\n                                               unsigned int max_psk_len);\nvoid SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);\nvoid SSL_set_psk_client_callback(SSL *ssl, SSL_psk_client_cb_func cb);\n\ntypedef unsigned int (*SSL_psk_server_cb_func)(SSL *ssl,\n                                               const char *identity,\n                                               unsigned char *psk,\n                                               unsigned int max_psk_len);\nvoid SSL_CTX_set_psk_server_callback(SSL_CTX *ctx, SSL_psk_server_cb_func cb);\nvoid SSL_set_psk_server_callback(SSL *ssl, SSL_psk_server_cb_func cb);\n\n__owur int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *identity_hint);\n__owur int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint);\nconst char *SSL_get_psk_identity_hint(const SSL *s);\nconst char *SSL_get_psk_identity(const SSL *s);\n# endif\n\ntypedef int (*SSL_psk_find_session_cb_func)(SSL *ssl,\n                                            const unsigned char *identity,\n                                            size_t identity_len,\n                                            SSL_SESSION **sess);\ntypedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,\n                                           const unsigned char **id,\n                                           size_t *idlen,\n                                           SSL_SESSION **sess);\n\nvoid SSL_set_psk_find_session_callback(SSL *s, SSL_psk_find_session_cb_func cb);\nvoid SSL_CTX_set_psk_find_session_callback(SSL_CTX *ctx,\n                                           SSL_psk_find_session_cb_func cb);\nvoid SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb);\nvoid SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx,\n                                          SSL_psk_use_session_cb_func cb);\n\n/* Register callbacks to handle custom TLS Extensions for client or server. */\n\n__owur int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx,\n                                         unsigned int ext_type);\n\n__owur int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx,\n                                         unsigned int ext_type,\n                                         custom_ext_add_cb add_cb,\n                                         custom_ext_free_cb free_cb,\n                                         void *add_arg,\n                                         custom_ext_parse_cb parse_cb,\n                                         void *parse_arg);\n\n__owur int SSL_CTX_add_server_custom_ext(SSL_CTX *ctx,\n                                         unsigned int ext_type,\n                                         custom_ext_add_cb add_cb,\n                                         custom_ext_free_cb free_cb,\n                                         void *add_arg,\n                                         custom_ext_parse_cb parse_cb,\n                                         void *parse_arg);\n\n__owur int SSL_CTX_add_custom_ext(SSL_CTX *ctx, unsigned int ext_type,\n                                  unsigned int context,\n                                  SSL_custom_ext_add_cb_ex add_cb,\n                                  SSL_custom_ext_free_cb_ex free_cb,\n                                  void *add_arg,\n                                  SSL_custom_ext_parse_cb_ex parse_cb,\n                                  void *parse_arg);\n\n__owur int SSL_extension_supported(unsigned int ext_type);\n\n# define SSL_NOTHING            1\n# define SSL_WRITING            2\n# define SSL_READING            3\n# define SSL_X509_LOOKUP        4\n# define SSL_ASYNC_PAUSED       5\n# define SSL_ASYNC_NO_JOBS      6\n# define SSL_CLIENT_HELLO_CB    7\n\n/* These will only be used when doing non-blocking IO */\n# define SSL_want_nothing(s)         (SSL_want(s) == SSL_NOTHING)\n# define SSL_want_read(s)            (SSL_want(s) == SSL_READING)\n# define SSL_want_write(s)           (SSL_want(s) == SSL_WRITING)\n# define SSL_want_x509_lookup(s)     (SSL_want(s) == SSL_X509_LOOKUP)\n# define SSL_want_async(s)           (SSL_want(s) == SSL_ASYNC_PAUSED)\n# define SSL_want_async_job(s)       (SSL_want(s) == SSL_ASYNC_NO_JOBS)\n# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB)\n\n# define SSL_MAC_FLAG_READ_MAC_STREAM 1\n# define SSL_MAC_FLAG_WRITE_MAC_STREAM 2\n\n/*\n * A callback for logging out TLS key material. This callback should log out\n * |line| followed by a newline.\n */\ntypedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);\n\n/*\n * SSL_CTX_set_keylog_callback configures a callback to log key material. This\n * is intended for debugging use with tools like Wireshark. The cb function\n * should log line followed by a newline.\n */\nvoid SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);\n\n/*\n * SSL_CTX_get_keylog_callback returns the callback configured by\n * SSL_CTX_set_keylog_callback.\n */\nSSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);\n\nint SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);\nuint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);\nint SSL_set_max_early_data(SSL *s, uint32_t max_early_data);\nuint32_t SSL_get_max_early_data(const SSL *s);\nint SSL_CTX_set_recv_max_early_data(SSL_CTX *ctx, uint32_t recv_max_early_data);\nuint32_t SSL_CTX_get_recv_max_early_data(const SSL_CTX *ctx);\nint SSL_set_recv_max_early_data(SSL *s, uint32_t recv_max_early_data);\nuint32_t SSL_get_recv_max_early_data(const SSL *s);\n\n#ifdef __cplusplus\n}\n#endif\n\n# include <openssl/ssl2.h>\n# include <openssl/ssl3.h>\n# include <openssl/tls1.h>      /* This is mostly sslv3 with a few tweaks */\n# include <openssl/dtls1.h>     /* Datagram TLS */\n# include <openssl/srtp.h>      /* Support for the use_srtp extension */\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * These need to be after the above set of includes due to a compiler bug\n * in VisualStudio 2015\n */\nDEFINE_STACK_OF_CONST(SSL_CIPHER)\nDEFINE_STACK_OF(SSL_COMP)\n\n/* compatibility */\n# define SSL_set_app_data(s,arg)         (SSL_set_ex_data(s,0,(char *)(arg)))\n# define SSL_get_app_data(s)             (SSL_get_ex_data(s,0))\n# define SSL_SESSION_set_app_data(s,a)   (SSL_SESSION_set_ex_data(s,0, \\\n                                                                  (char *)(a)))\n# define SSL_SESSION_get_app_data(s)     (SSL_SESSION_get_ex_data(s,0))\n# define SSL_CTX_get_app_data(ctx)       (SSL_CTX_get_ex_data(ctx,0))\n# define SSL_CTX_set_app_data(ctx,arg)   (SSL_CTX_set_ex_data(ctx,0, \\\n                                                              (char *)(arg)))\nDEPRECATEDIN_1_1_0(void SSL_set_debug(SSL *s, int debug))\n\n/* TLSv1.3 KeyUpdate message types */\n/* -1 used so that this is an invalid value for the on-the-wire protocol */\n#define SSL_KEY_UPDATE_NONE             -1\n/* Values as defined for the on-the-wire protocol */\n#define SSL_KEY_UPDATE_NOT_REQUESTED     0\n#define SSL_KEY_UPDATE_REQUESTED         1\n\n/*\n * The valid handshake states (one for each type message sent and one for each\n * type of message received). There are also two \"special\" states:\n * TLS = TLS or DTLS state\n * DTLS = DTLS specific state\n * CR/SR = Client Read/Server Read\n * CW/SW = Client Write/Server Write\n *\n * The \"special\" states are:\n * TLS_ST_BEFORE = No handshake has been initiated yet\n * TLS_ST_OK = A handshake has been successfully completed\n */\ntypedef enum {\n    TLS_ST_BEFORE,\n    TLS_ST_OK,\n    DTLS_ST_CR_HELLO_VERIFY_REQUEST,\n    TLS_ST_CR_SRVR_HELLO,\n    TLS_ST_CR_CERT,\n    TLS_ST_CR_CERT_STATUS,\n    TLS_ST_CR_KEY_EXCH,\n    TLS_ST_CR_CERT_REQ,\n    TLS_ST_CR_SRVR_DONE,\n    TLS_ST_CR_SESSION_TICKET,\n    TLS_ST_CR_CHANGE,\n    TLS_ST_CR_FINISHED,\n    TLS_ST_CW_CLNT_HELLO,\n    TLS_ST_CW_CERT,\n    TLS_ST_CW_KEY_EXCH,\n    TLS_ST_CW_CERT_VRFY,\n    TLS_ST_CW_CHANGE,\n    TLS_ST_CW_NEXT_PROTO,\n    TLS_ST_CW_FINISHED,\n    TLS_ST_SW_HELLO_REQ,\n    TLS_ST_SR_CLNT_HELLO,\n    DTLS_ST_SW_HELLO_VERIFY_REQUEST,\n    TLS_ST_SW_SRVR_HELLO,\n    TLS_ST_SW_CERT,\n    TLS_ST_SW_KEY_EXCH,\n    TLS_ST_SW_CERT_REQ,\n    TLS_ST_SW_SRVR_DONE,\n    TLS_ST_SR_CERT,\n    TLS_ST_SR_KEY_EXCH,\n    TLS_ST_SR_CERT_VRFY,\n    TLS_ST_SR_NEXT_PROTO,\n    TLS_ST_SR_CHANGE,\n    TLS_ST_SR_FINISHED,\n    TLS_ST_SW_SESSION_TICKET,\n    TLS_ST_SW_CERT_STATUS,\n    TLS_ST_SW_CHANGE,\n    TLS_ST_SW_FINISHED,\n    TLS_ST_SW_ENCRYPTED_EXTENSIONS,\n    TLS_ST_CR_ENCRYPTED_EXTENSIONS,\n    TLS_ST_CR_CERT_VRFY,\n    TLS_ST_SW_CERT_VRFY,\n    TLS_ST_CR_HELLO_REQ,\n    TLS_ST_SW_KEY_UPDATE,\n    TLS_ST_CW_KEY_UPDATE,\n    TLS_ST_SR_KEY_UPDATE,\n    TLS_ST_CR_KEY_UPDATE,\n    TLS_ST_EARLY_DATA,\n    TLS_ST_PENDING_EARLY_DATA_END,\n    TLS_ST_CW_END_OF_EARLY_DATA,\n    TLS_ST_SR_END_OF_EARLY_DATA\n} OSSL_HANDSHAKE_STATE;\n\n/*\n * Most of the following state values are no longer used and are defined to be\n * the closest equivalent value in the current state machine code. Not all\n * defines have an equivalent and are set to a dummy value (-1). SSL_ST_CONNECT\n * and SSL_ST_ACCEPT are still in use in the definition of SSL_CB_ACCEPT_LOOP,\n * SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP and SSL_CB_CONNECT_EXIT.\n */\n\n# define SSL_ST_CONNECT                  0x1000\n# define SSL_ST_ACCEPT                   0x2000\n\n# define SSL_ST_MASK                     0x0FFF\n\n# define SSL_CB_LOOP                     0x01\n# define SSL_CB_EXIT                     0x02\n# define SSL_CB_READ                     0x04\n# define SSL_CB_WRITE                    0x08\n# define SSL_CB_ALERT                    0x4000/* used in callback */\n# define SSL_CB_READ_ALERT               (SSL_CB_ALERT|SSL_CB_READ)\n# define SSL_CB_WRITE_ALERT              (SSL_CB_ALERT|SSL_CB_WRITE)\n# define SSL_CB_ACCEPT_LOOP              (SSL_ST_ACCEPT|SSL_CB_LOOP)\n# define SSL_CB_ACCEPT_EXIT              (SSL_ST_ACCEPT|SSL_CB_EXIT)\n# define SSL_CB_CONNECT_LOOP             (SSL_ST_CONNECT|SSL_CB_LOOP)\n# define SSL_CB_CONNECT_EXIT             (SSL_ST_CONNECT|SSL_CB_EXIT)\n# define SSL_CB_HANDSHAKE_START          0x10\n# define SSL_CB_HANDSHAKE_DONE           0x20\n\n/* Is the SSL_connection established? */\n# define SSL_in_connect_init(a)          (SSL_in_init(a) && !SSL_is_server(a))\n# define SSL_in_accept_init(a)           (SSL_in_init(a) && SSL_is_server(a))\nint SSL_in_init(const SSL *s);\nint SSL_in_before(const SSL *s);\nint SSL_is_init_finished(const SSL *s);\n\n/*\n * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you\n * should not need these\n */\n# define SSL_ST_READ_HEADER                      0xF0\n# define SSL_ST_READ_BODY                        0xF1\n# define SSL_ST_READ_DONE                        0xF2\n\n/*-\n * Obtain latest Finished message\n *   -- that we sent (SSL_get_finished)\n *   -- that we expected from peer (SSL_get_peer_finished).\n * Returns length (0 == no Finished so far), copies up to 'count' bytes.\n */\nsize_t SSL_get_finished(const SSL *s, void *buf, size_t count);\nsize_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);\n\n/*\n * use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 3 options are\n * 'ored' with SSL_VERIFY_PEER if they are desired\n */\n# define SSL_VERIFY_NONE                 0x00\n# define SSL_VERIFY_PEER                 0x01\n# define SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x02\n# define SSL_VERIFY_CLIENT_ONCE          0x04\n# define SSL_VERIFY_POST_HANDSHAKE       0x08\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OpenSSL_add_ssl_algorithms()   SSL_library_init()\n#  define SSLeay_add_ssl_algorithms()    SSL_library_init()\n# endif\n\n/* More backward compatibility */\n# define SSL_get_cipher(s) \\\n                SSL_CIPHER_get_name(SSL_get_current_cipher(s))\n# define SSL_get_cipher_bits(s,np) \\\n                SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)\n# define SSL_get_cipher_version(s) \\\n                SSL_CIPHER_get_version(SSL_get_current_cipher(s))\n# define SSL_get_cipher_name(s) \\\n                SSL_CIPHER_get_name(SSL_get_current_cipher(s))\n# define SSL_get_time(a)         SSL_SESSION_get_time(a)\n# define SSL_set_time(a,b)       SSL_SESSION_set_time((a),(b))\n# define SSL_get_timeout(a)      SSL_SESSION_get_timeout(a)\n# define SSL_set_timeout(a,b)    SSL_SESSION_set_timeout((a),(b))\n\n# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id)\n# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id)\n\nDECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)\n# define SSL_AD_REASON_OFFSET            1000/* offset to get SSL_R_... value\n                                              * from SSL_AD_... */\n/* These alert types are for SSLv3 and TLSv1 */\n# define SSL_AD_CLOSE_NOTIFY             SSL3_AD_CLOSE_NOTIFY\n/* fatal */\n# define SSL_AD_UNEXPECTED_MESSAGE       SSL3_AD_UNEXPECTED_MESSAGE\n/* fatal */\n# define SSL_AD_BAD_RECORD_MAC           SSL3_AD_BAD_RECORD_MAC\n# define SSL_AD_DECRYPTION_FAILED        TLS1_AD_DECRYPTION_FAILED\n# define SSL_AD_RECORD_OVERFLOW          TLS1_AD_RECORD_OVERFLOW\n/* fatal */\n# define SSL_AD_DECOMPRESSION_FAILURE    SSL3_AD_DECOMPRESSION_FAILURE\n/* fatal */\n# define SSL_AD_HANDSHAKE_FAILURE        SSL3_AD_HANDSHAKE_FAILURE\n/* Not for TLS */\n# define SSL_AD_NO_CERTIFICATE           SSL3_AD_NO_CERTIFICATE\n# define SSL_AD_BAD_CERTIFICATE          SSL3_AD_BAD_CERTIFICATE\n# define SSL_AD_UNSUPPORTED_CERTIFICATE  SSL3_AD_UNSUPPORTED_CERTIFICATE\n# define SSL_AD_CERTIFICATE_REVOKED      SSL3_AD_CERTIFICATE_REVOKED\n# define SSL_AD_CERTIFICATE_EXPIRED      SSL3_AD_CERTIFICATE_EXPIRED\n# define SSL_AD_CERTIFICATE_UNKNOWN      SSL3_AD_CERTIFICATE_UNKNOWN\n/* fatal */\n# define SSL_AD_ILLEGAL_PARAMETER        SSL3_AD_ILLEGAL_PARAMETER\n/* fatal */\n# define SSL_AD_UNKNOWN_CA               TLS1_AD_UNKNOWN_CA\n/* fatal */\n# define SSL_AD_ACCESS_DENIED            TLS1_AD_ACCESS_DENIED\n/* fatal */\n# define SSL_AD_DECODE_ERROR             TLS1_AD_DECODE_ERROR\n# define SSL_AD_DECRYPT_ERROR            TLS1_AD_DECRYPT_ERROR\n/* fatal */\n# define SSL_AD_EXPORT_RESTRICTION       TLS1_AD_EXPORT_RESTRICTION\n/* fatal */\n# define SSL_AD_PROTOCOL_VERSION         TLS1_AD_PROTOCOL_VERSION\n/* fatal */\n# define SSL_AD_INSUFFICIENT_SECURITY    TLS1_AD_INSUFFICIENT_SECURITY\n/* fatal */\n# define SSL_AD_INTERNAL_ERROR           TLS1_AD_INTERNAL_ERROR\n# define SSL_AD_USER_CANCELLED           TLS1_AD_USER_CANCELLED\n# define SSL_AD_NO_RENEGOTIATION         TLS1_AD_NO_RENEGOTIATION\n# define SSL_AD_MISSING_EXTENSION        TLS13_AD_MISSING_EXTENSION\n# define SSL_AD_CERTIFICATE_REQUIRED     TLS13_AD_CERTIFICATE_REQUIRED\n# define SSL_AD_UNSUPPORTED_EXTENSION    TLS1_AD_UNSUPPORTED_EXTENSION\n# define SSL_AD_CERTIFICATE_UNOBTAINABLE TLS1_AD_CERTIFICATE_UNOBTAINABLE\n# define SSL_AD_UNRECOGNIZED_NAME        TLS1_AD_UNRECOGNIZED_NAME\n# define SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE\n# define SSL_AD_BAD_CERTIFICATE_HASH_VALUE TLS1_AD_BAD_CERTIFICATE_HASH_VALUE\n/* fatal */\n# define SSL_AD_UNKNOWN_PSK_IDENTITY     TLS1_AD_UNKNOWN_PSK_IDENTITY\n/* fatal */\n# define SSL_AD_INAPPROPRIATE_FALLBACK   TLS1_AD_INAPPROPRIATE_FALLBACK\n# define SSL_AD_NO_APPLICATION_PROTOCOL  TLS1_AD_NO_APPLICATION_PROTOCOL\n# define SSL_ERROR_NONE                  0\n# define SSL_ERROR_SSL                   1\n# define SSL_ERROR_WANT_READ             2\n# define SSL_ERROR_WANT_WRITE            3\n# define SSL_ERROR_WANT_X509_LOOKUP      4\n# define SSL_ERROR_SYSCALL               5/* look at error stack/return\n                                           * value/errno */\n# define SSL_ERROR_ZERO_RETURN           6\n# define SSL_ERROR_WANT_CONNECT          7\n# define SSL_ERROR_WANT_ACCEPT           8\n# define SSL_ERROR_WANT_ASYNC            9\n# define SSL_ERROR_WANT_ASYNC_JOB       10\n# define SSL_ERROR_WANT_CLIENT_HELLO_CB 11\n# define SSL_CTRL_SET_TMP_DH                     3\n# define SSL_CTRL_SET_TMP_ECDH                   4\n# define SSL_CTRL_SET_TMP_DH_CB                  6\n# define SSL_CTRL_GET_CLIENT_CERT_REQUEST        9\n# define SSL_CTRL_GET_NUM_RENEGOTIATIONS         10\n# define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS       11\n# define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS       12\n# define SSL_CTRL_GET_FLAGS                      13\n# define SSL_CTRL_EXTRA_CHAIN_CERT               14\n# define SSL_CTRL_SET_MSG_CALLBACK               15\n# define SSL_CTRL_SET_MSG_CALLBACK_ARG           16\n/* only applies to datagram connections */\n# define SSL_CTRL_SET_MTU                17\n/* Stats */\n# define SSL_CTRL_SESS_NUMBER                    20\n# define SSL_CTRL_SESS_CONNECT                   21\n# define SSL_CTRL_SESS_CONNECT_GOOD              22\n# define SSL_CTRL_SESS_CONNECT_RENEGOTIATE       23\n# define SSL_CTRL_SESS_ACCEPT                    24\n# define SSL_CTRL_SESS_ACCEPT_GOOD               25\n# define SSL_CTRL_SESS_ACCEPT_RENEGOTIATE        26\n# define SSL_CTRL_SESS_HIT                       27\n# define SSL_CTRL_SESS_CB_HIT                    28\n# define SSL_CTRL_SESS_MISSES                    29\n# define SSL_CTRL_SESS_TIMEOUTS                  30\n# define SSL_CTRL_SESS_CACHE_FULL                31\n# define SSL_CTRL_MODE                           33\n# define SSL_CTRL_GET_READ_AHEAD                 40\n# define SSL_CTRL_SET_READ_AHEAD                 41\n# define SSL_CTRL_SET_SESS_CACHE_SIZE            42\n# define SSL_CTRL_GET_SESS_CACHE_SIZE            43\n# define SSL_CTRL_SET_SESS_CACHE_MODE            44\n# define SSL_CTRL_GET_SESS_CACHE_MODE            45\n# define SSL_CTRL_GET_MAX_CERT_LIST              50\n# define SSL_CTRL_SET_MAX_CERT_LIST              51\n# define SSL_CTRL_SET_MAX_SEND_FRAGMENT          52\n/* see tls1.h for macros based on these */\n# define SSL_CTRL_SET_TLSEXT_SERVERNAME_CB       53\n# define SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG      54\n# define SSL_CTRL_SET_TLSEXT_HOSTNAME            55\n# define SSL_CTRL_SET_TLSEXT_DEBUG_CB            56\n# define SSL_CTRL_SET_TLSEXT_DEBUG_ARG           57\n# define SSL_CTRL_GET_TLSEXT_TICKET_KEYS         58\n# define SSL_CTRL_SET_TLSEXT_TICKET_KEYS         59\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT    60 */\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB 61 */\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG 62 */\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB       63\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG   64\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE     65\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS     66\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS     67\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS      68\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS      69\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP        70\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP        71\n# define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB       72\n# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB    75\n# define SSL_CTRL_SET_SRP_VERIFY_PARAM_CB                76\n# define SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB             77\n# define SSL_CTRL_SET_SRP_ARG            78\n# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME               79\n# define SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH               80\n# define SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD               81\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT               85\n#  define SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING        86\n#  define SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS    87\n# endif\n# define DTLS_CTRL_GET_TIMEOUT           73\n# define DTLS_CTRL_HANDLE_TIMEOUT        74\n# define SSL_CTRL_GET_RI_SUPPORT                 76\n# define SSL_CTRL_CLEAR_MODE                     78\n# define SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB      79\n# define SSL_CTRL_GET_EXTRA_CHAIN_CERTS          82\n# define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS        83\n# define SSL_CTRL_CHAIN                          88\n# define SSL_CTRL_CHAIN_CERT                     89\n# define SSL_CTRL_GET_GROUPS                     90\n# define SSL_CTRL_SET_GROUPS                     91\n# define SSL_CTRL_SET_GROUPS_LIST                92\n# define SSL_CTRL_GET_SHARED_GROUP               93\n# define SSL_CTRL_SET_SIGALGS                    97\n# define SSL_CTRL_SET_SIGALGS_LIST               98\n# define SSL_CTRL_CERT_FLAGS                     99\n# define SSL_CTRL_CLEAR_CERT_FLAGS               100\n# define SSL_CTRL_SET_CLIENT_SIGALGS             101\n# define SSL_CTRL_SET_CLIENT_SIGALGS_LIST        102\n# define SSL_CTRL_GET_CLIENT_CERT_TYPES          103\n# define SSL_CTRL_SET_CLIENT_CERT_TYPES          104\n# define SSL_CTRL_BUILD_CERT_CHAIN               105\n# define SSL_CTRL_SET_VERIFY_CERT_STORE          106\n# define SSL_CTRL_SET_CHAIN_CERT_STORE           107\n# define SSL_CTRL_GET_PEER_SIGNATURE_NID         108\n# define SSL_CTRL_GET_PEER_TMP_KEY               109\n# define SSL_CTRL_GET_RAW_CIPHERLIST             110\n# define SSL_CTRL_GET_EC_POINT_FORMATS           111\n# define SSL_CTRL_GET_CHAIN_CERTS                115\n# define SSL_CTRL_SELECT_CURRENT_CERT            116\n# define SSL_CTRL_SET_CURRENT_CERT               117\n# define SSL_CTRL_SET_DH_AUTO                    118\n# define DTLS_CTRL_SET_LINK_MTU                  120\n# define DTLS_CTRL_GET_LINK_MIN_MTU              121\n# define SSL_CTRL_GET_EXTMS_SUPPORT              122\n# define SSL_CTRL_SET_MIN_PROTO_VERSION          123\n# define SSL_CTRL_SET_MAX_PROTO_VERSION          124\n# define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT        125\n# define SSL_CTRL_SET_MAX_PIPELINES              126\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE     127\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB       128\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG   129\n# define SSL_CTRL_GET_MIN_PROTO_VERSION          130\n# define SSL_CTRL_GET_MAX_PROTO_VERSION          131\n# define SSL_CTRL_GET_SIGNATURE_NID              132\n# define SSL_CTRL_GET_TMP_KEY                    133\n# define SSL_CERT_SET_FIRST                      1\n# define SSL_CERT_SET_NEXT                       2\n# define SSL_CERT_SET_SERVER                     3\n# define DTLSv1_get_timeout(ssl, arg) \\\n        SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg))\n# define DTLSv1_handle_timeout(ssl) \\\n        SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL)\n# define SSL_num_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL)\n# define SSL_clear_num_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL)\n# define SSL_total_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL)\n# define SSL_CTX_set_tmp_dh(ctx,dh) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))\n# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))\n# define SSL_CTX_set_dh_auto(ctx, onoff) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL)\n# define SSL_set_dh_auto(s, onoff) \\\n        SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL)\n# define SSL_set_tmp_dh(ssl,dh) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))\n# define SSL_set_tmp_ecdh(ssl,ecdh) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))\n# define SSL_CTX_add_extra_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509))\n# define SSL_CTX_get_extra_chain_certs(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509)\n# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509)\n# define SSL_CTX_clear_extra_chain_certs(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL)\n# define SSL_CTX_set0_chain(ctx,sk) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))\n# define SSL_CTX_set1_chain(ctx,sk) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk))\n# define SSL_CTX_add0_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))\n# define SSL_CTX_add1_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))\n# define SSL_CTX_get0_chain_certs(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509)\n# define SSL_CTX_clear_chain_certs(ctx) \\\n        SSL_CTX_set0_chain(ctx,NULL)\n# define SSL_CTX_build_cert_chain(ctx, flags) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)\n# define SSL_CTX_select_current_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))\n# define SSL_CTX_set_current_cert(ctx, op) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL)\n# define SSL_CTX_set0_verify_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))\n# define SSL_CTX_set1_verify_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))\n# define SSL_CTX_set0_chain_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))\n# define SSL_CTX_set1_chain_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))\n# define SSL_set0_chain(s,sk) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk))\n# define SSL_set1_chain(s,sk) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk))\n# define SSL_add0_chain_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))\n# define SSL_add1_chain_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))\n# define SSL_get0_chain_certs(s,px509) \\\n        SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509)\n# define SSL_clear_chain_certs(s) \\\n        SSL_set0_chain(s,NULL)\n# define SSL_build_cert_chain(s, flags) \\\n        SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)\n# define SSL_select_current_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))\n# define SSL_set_current_cert(s,op) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL)\n# define SSL_set0_verify_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))\n# define SSL_set1_verify_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))\n# define SSL_set0_chain_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))\n# define SSL_set1_chain_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))\n# define SSL_get1_groups(s, glist) \\\n        SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist))\n# define SSL_CTX_set1_groups(ctx, glist, glistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(int *)(glist))\n# define SSL_CTX_set1_groups_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))\n# define SSL_set1_groups(s, glist, glistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))\n# define SSL_set1_groups_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str))\n# define SSL_get_shared_group(s, n) \\\n        SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL)\n# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))\n# define SSL_CTX_set1_sigalgs_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))\n# define SSL_set1_sigalgs(s, slist, slistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))\n# define SSL_set1_sigalgs_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str))\n# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))\n# define SSL_CTX_set1_client_sigalgs_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))\n# define SSL_set1_client_sigalgs(s, slist, slistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))\n# define SSL_set1_client_sigalgs_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str))\n# define SSL_get0_certificate_types(s, clist) \\\n        SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist))\n# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, \\\n                     (char *)(clist))\n# define SSL_set1_client_certificate_types(s, clist, clistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist))\n# define SSL_get_signature_nid(s, pn) \\\n        SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn)\n# define SSL_get_peer_signature_nid(s, pn) \\\n        SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn)\n# define SSL_get_peer_tmp_key(s, pk) \\\n        SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk)\n# define SSL_get_tmp_key(s, pk) \\\n        SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk)\n# define SSL_get0_raw_cipherlist(s, plst) \\\n        SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst)\n# define SSL_get0_ec_point_formats(s, plst) \\\n        SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst)\n# define SSL_CTX_set_min_proto_version(ctx, version) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)\n# define SSL_CTX_set_max_proto_version(ctx, version) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)\n# define SSL_CTX_get_min_proto_version(ctx) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)\n# define SSL_CTX_get_max_proto_version(ctx) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)\n# define SSL_set_min_proto_version(s, version) \\\n        SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)\n# define SSL_set_max_proto_version(s, version) \\\n        SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)\n# define SSL_get_min_proto_version(s) \\\n        SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)\n# define SSL_get_max_proto_version(s) \\\n        SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)\n\n/* Backwards compatibility, original 1.1.0 names */\n# define SSL_CTRL_GET_SERVER_TMP_KEY \\\n         SSL_CTRL_GET_PEER_TMP_KEY\n# define SSL_get_server_tmp_key(s, pk) \\\n         SSL_get_peer_tmp_key(s, pk)\n\n/*\n * The following symbol names are old and obsolete. They are kept\n * for compatibility reasons only and should not be used anymore.\n */\n# define SSL_CTRL_GET_CURVES           SSL_CTRL_GET_GROUPS\n# define SSL_CTRL_SET_CURVES           SSL_CTRL_SET_GROUPS\n# define SSL_CTRL_SET_CURVES_LIST      SSL_CTRL_SET_GROUPS_LIST\n# define SSL_CTRL_GET_SHARED_CURVE     SSL_CTRL_GET_SHARED_GROUP\n\n# define SSL_get1_curves               SSL_get1_groups\n# define SSL_CTX_set1_curves           SSL_CTX_set1_groups\n# define SSL_CTX_set1_curves_list      SSL_CTX_set1_groups_list\n# define SSL_set1_curves               SSL_set1_groups\n# define SSL_set1_curves_list          SSL_set1_groups_list\n# define SSL_get_shared_curve          SSL_get_shared_group\n\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/* Provide some compatibility macros for removed functionality. */\n#  define SSL_CTX_need_tmp_RSA(ctx)                0\n#  define SSL_CTX_set_tmp_rsa(ctx,rsa)             1\n#  define SSL_need_tmp_RSA(ssl)                    0\n#  define SSL_set_tmp_rsa(ssl,rsa)                 1\n#  define SSL_CTX_set_ecdh_auto(dummy, onoff)      ((onoff) != 0)\n#  define SSL_set_ecdh_auto(dummy, onoff)          ((onoff) != 0)\n/*\n * We \"pretend\" to call the callback to avoid warnings about unused static\n * functions.\n */\n#  define SSL_CTX_set_tmp_rsa_callback(ctx, cb)    while(0) (cb)(NULL, 0, 0)\n#  define SSL_set_tmp_rsa_callback(ssl, cb)        while(0) (cb)(NULL, 0, 0)\n# endif\n__owur const BIO_METHOD *BIO_f_ssl(void);\n__owur BIO *BIO_new_ssl(SSL_CTX *ctx, int client);\n__owur BIO *BIO_new_ssl_connect(SSL_CTX *ctx);\n__owur BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);\n__owur int BIO_ssl_copy_session_id(BIO *to, BIO *from);\nvoid BIO_ssl_shutdown(BIO *ssl_bio);\n\n__owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);\n__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);\nint SSL_CTX_up_ref(SSL_CTX *ctx);\nvoid SSL_CTX_free(SSL_CTX *);\n__owur long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);\n__owur long SSL_CTX_get_timeout(const SSL_CTX *ctx);\n__owur X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);\nvoid SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);\nvoid SSL_CTX_set1_cert_store(SSL_CTX *, X509_STORE *);\n__owur int SSL_want(const SSL *s);\n__owur int SSL_clear(SSL *s);\n\nvoid SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);\n\n__owur const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);\n__owur const SSL_CIPHER *SSL_get_pending_cipher(const SSL *s);\n__owur int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits);\n__owur const char *SSL_CIPHER_get_version(const SSL_CIPHER *c);\n__owur const char *SSL_CIPHER_get_name(const SSL_CIPHER *c);\n__owur const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c);\n__owur const char *OPENSSL_cipher_name(const char *rfc_name);\n__owur uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c);\n__owur uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c);\n__owur const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_is_aead(const SSL_CIPHER *c);\n\n__owur int SSL_get_fd(const SSL *s);\n__owur int SSL_get_rfd(const SSL *s);\n__owur int SSL_get_wfd(const SSL *s);\n__owur const char *SSL_get_cipher_list(const SSL *s, int n);\n__owur char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size);\n__owur int SSL_get_read_ahead(const SSL *s);\n__owur int SSL_pending(const SSL *s);\n__owur int SSL_has_pending(const SSL *s);\n# ifndef OPENSSL_NO_SOCK\n__owur int SSL_set_fd(SSL *s, int fd);\n__owur int SSL_set_rfd(SSL *s, int fd);\n__owur int SSL_set_wfd(SSL *s, int fd);\n# endif\nvoid SSL_set0_rbio(SSL *s, BIO *rbio);\nvoid SSL_set0_wbio(SSL *s, BIO *wbio);\nvoid SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);\n__owur BIO *SSL_get_rbio(const SSL *s);\n__owur BIO *SSL_get_wbio(const SSL *s);\n__owur int SSL_set_cipher_list(SSL *s, const char *str);\n__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);\n__owur int SSL_set_ciphersuites(SSL *s, const char *str);\nvoid SSL_set_read_ahead(SSL *s, int yes);\n__owur int SSL_get_verify_mode(const SSL *s);\n__owur int SSL_get_verify_depth(const SSL *s);\n__owur SSL_verify_cb SSL_get_verify_callback(const SSL *s);\nvoid SSL_set_verify(SSL *s, int mode, SSL_verify_cb callback);\nvoid SSL_set_verify_depth(SSL *s, int depth);\nvoid SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg);\n# ifndef OPENSSL_NO_RSA\n__owur int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);\n__owur int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d,\n                                      long len);\n# endif\n__owur int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);\n__owur int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,\n                                   long len);\n__owur int SSL_use_certificate(SSL *ssl, X509 *x);\n__owur int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);\n__owur int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey,\n                                STACK_OF(X509) *chain, int override);\n\n\n/* serverinfo file format versions */\n# define SSL_SERVERINFOV1   1\n# define SSL_SERVERINFOV2   2\n\n/* Set serverinfo data for the current active cert. */\n__owur int SSL_CTX_use_serverinfo(SSL_CTX *ctx, const unsigned char *serverinfo,\n                                  size_t serverinfo_length);\n__owur int SSL_CTX_use_serverinfo_ex(SSL_CTX *ctx, unsigned int version,\n                                     const unsigned char *serverinfo,\n                                     size_t serverinfo_length);\n__owur int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file);\n\n#ifndef OPENSSL_NO_RSA\n__owur int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);\n#endif\n\n__owur int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);\n__owur int SSL_use_certificate_file(SSL *ssl, const char *file, int type);\n\n#ifndef OPENSSL_NO_RSA\n__owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,\n                                          int type);\n#endif\n__owur int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,\n                                       int type);\n__owur int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,\n                                        int type);\n/* PEM type */\n__owur int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);\n__owur int SSL_use_certificate_chain_file(SSL *ssl, const char *file);\n__owur STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);\n__owur int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,\n                                               const char *file);\nint SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,\n                                       const char *dir);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_load_error_strings() \\\n    OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \\\n                     | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)\n# endif\n\n__owur const char *SSL_state_string(const SSL *s);\n__owur const char *SSL_rstate_string(const SSL *s);\n__owur const char *SSL_state_string_long(const SSL *s);\n__owur const char *SSL_rstate_string_long(const SSL *s);\n__owur long SSL_SESSION_get_time(const SSL_SESSION *s);\n__owur long SSL_SESSION_set_time(SSL_SESSION *s, long t);\n__owur long SSL_SESSION_get_timeout(const SSL_SESSION *s);\n__owur long SSL_SESSION_set_timeout(SSL_SESSION *s, long t);\n__owur int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version);\n\n__owur const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s);\n__owur int SSL_SESSION_set1_hostname(SSL_SESSION *s, const char *hostname);\nvoid SSL_SESSION_get0_alpn_selected(const SSL_SESSION *s,\n                                    const unsigned char **alpn,\n                                    size_t *len);\n__owur int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s,\n                                          const unsigned char *alpn,\n                                          size_t len);\n__owur const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher);\n__owur int SSL_SESSION_has_ticket(const SSL_SESSION *s);\n__owur unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);\nvoid SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,\n                             size_t *len);\n__owur uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_max_early_data(SSL_SESSION *s,\n                                          uint32_t max_early_data);\n__owur int SSL_copy_session_id(SSL *to, const SSL *from);\n__owur X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);\n__owur int SSL_SESSION_set1_id_context(SSL_SESSION *s,\n                                       const unsigned char *sid_ctx,\n                                       unsigned int sid_ctx_len);\n__owur int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid,\n                               unsigned int sid_len);\n__owur int SSL_SESSION_is_resumable(const SSL_SESSION *s);\n\n__owur SSL_SESSION *SSL_SESSION_new(void);\n__owur SSL_SESSION *SSL_SESSION_dup(SSL_SESSION *src);\nconst unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,\n                                        unsigned int *len);\nconst unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *s,\n                                                 unsigned int *len);\n__owur unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);\n# ifndef OPENSSL_NO_STDIO\nint SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);\n# endif\nint SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);\nint SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x);\nint SSL_SESSION_up_ref(SSL_SESSION *ses);\nvoid SSL_SESSION_free(SSL_SESSION *ses);\n__owur int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);\n__owur int SSL_set_session(SSL *to, SSL_SESSION *session);\nint SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);\nint SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);\n__owur int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb);\n__owur int SSL_set_generate_session_id(SSL *s, GEN_SESSION_CB cb);\n__owur int SSL_has_matching_session_id(const SSL *s,\n                                       const unsigned char *id,\n                                       unsigned int id_len);\nSSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,\n                             long length);\n\n# ifdef HEADER_X509_H\n__owur X509 *SSL_get_peer_certificate(const SSL *s);\n# endif\n\n__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);\n\n__owur int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);\n__owur int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);\n__owur SSL_verify_cb SSL_CTX_get_verify_callback(const SSL_CTX *ctx);\nvoid SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb callback);\nvoid SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);\nvoid SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx,\n                                      int (*cb) (X509_STORE_CTX *, void *),\n                                      void *arg);\nvoid SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),\n                         void *arg);\n# ifndef OPENSSL_NO_RSA\n__owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);\n__owur int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d,\n                                          long len);\n# endif\n__owur int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);\n__owur int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,\n                                       const unsigned char *d, long len);\n__owur int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);\n__owur int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,\n                                        const unsigned char *d);\n__owur int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,\n                                    STACK_OF(X509) *chain, int override);\n\nvoid SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);\nvoid SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);\npem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx);\nvoid *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx);\nvoid SSL_set_default_passwd_cb(SSL *s, pem_password_cb *cb);\nvoid SSL_set_default_passwd_cb_userdata(SSL *s, void *u);\npem_password_cb *SSL_get_default_passwd_cb(SSL *s);\nvoid *SSL_get_default_passwd_cb_userdata(SSL *s);\n\n__owur int SSL_CTX_check_private_key(const SSL_CTX *ctx);\n__owur int SSL_check_private_key(const SSL *ctx);\n\n__owur int SSL_CTX_set_session_id_context(SSL_CTX *ctx,\n                                          const unsigned char *sid_ctx,\n                                          unsigned int sid_ctx_len);\n\nSSL *SSL_new(SSL_CTX *ctx);\nint SSL_up_ref(SSL *s);\nint SSL_is_dtls(const SSL *s);\n__owur int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,\n                                      unsigned int sid_ctx_len);\n\n__owur int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);\n__owur int SSL_set_purpose(SSL *ssl, int purpose);\n__owur int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);\n__owur int SSL_set_trust(SSL *ssl, int trust);\n\n__owur int SSL_set1_host(SSL *s, const char *hostname);\n__owur int SSL_add1_host(SSL *s, const char *hostname);\n__owur const char *SSL_get0_peername(SSL *s);\nvoid SSL_set_hostflags(SSL *s, unsigned int flags);\n\n__owur int SSL_CTX_dane_enable(SSL_CTX *ctx);\n__owur int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md,\n                                  uint8_t mtype, uint8_t ord);\n__owur int SSL_dane_enable(SSL *s, const char *basedomain);\n__owur int SSL_dane_tlsa_add(SSL *s, uint8_t usage, uint8_t selector,\n                             uint8_t mtype, unsigned const char *data, size_t dlen);\n__owur int SSL_get0_dane_authority(SSL *s, X509 **mcert, EVP_PKEY **mspki);\n__owur int SSL_get0_dane_tlsa(SSL *s, uint8_t *usage, uint8_t *selector,\n                              uint8_t *mtype, unsigned const char **data,\n                              size_t *dlen);\n/*\n * Bridge opacity barrier between libcrypt and libssl, also needed to support\n * offline testing in test/danetest.c\n */\nSSL_DANE *SSL_get0_dane(SSL *ssl);\n/*\n * DANE flags\n */\nunsigned long SSL_CTX_dane_set_flags(SSL_CTX *ctx, unsigned long flags);\nunsigned long SSL_CTX_dane_clear_flags(SSL_CTX *ctx, unsigned long flags);\nunsigned long SSL_dane_set_flags(SSL *ssl, unsigned long flags);\nunsigned long SSL_dane_clear_flags(SSL *ssl, unsigned long flags);\n\n__owur int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);\n__owur int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);\n\n__owur X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);\n__owur X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);\n\n# ifndef OPENSSL_NO_SRP\nint SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name);\nint SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password);\nint SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength);\nint SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,\n                                        char *(*cb) (SSL *, void *));\nint SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,\n                                          int (*cb) (SSL *, void *));\nint SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,\n                                      int (*cb) (SSL *, int *, void *));\nint SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg);\n\nint SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,\n                             BIGNUM *sa, BIGNUM *v, char *info);\nint SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,\n                                const char *grp);\n\n__owur BIGNUM *SSL_get_srp_g(SSL *s);\n__owur BIGNUM *SSL_get_srp_N(SSL *s);\n\n__owur char *SSL_get_srp_username(SSL *s);\n__owur char *SSL_get_srp_userinfo(SSL *s);\n# endif\n\n/*\n * ClientHello callback and helpers.\n */\n\n# define SSL_CLIENT_HELLO_SUCCESS 1\n# define SSL_CLIENT_HELLO_ERROR   0\n# define SSL_CLIENT_HELLO_RETRY   (-1)\n\ntypedef int (*SSL_client_hello_cb_fn) (SSL *s, int *al, void *arg);\nvoid SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,\n                                 void *arg);\nint SSL_client_hello_isv2(SSL *s);\nunsigned int SSL_client_hello_get0_legacy_version(SSL *s);\nsize_t SSL_client_hello_get0_random(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_session_id(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_ciphers(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_compression_methods(SSL *s,\n                                                 const unsigned char **out);\nint SSL_client_hello_get1_extensions_present(SSL *s, int **out, size_t *outlen);\nint SSL_client_hello_get0_ext(SSL *s, unsigned int type,\n                              const unsigned char **out, size_t *outlen);\n\nvoid SSL_certs_clear(SSL *s);\nvoid SSL_free(SSL *ssl);\n# ifdef OSSL_ASYNC_FD\n/*\n * Windows application developer has to include windows.h to use these.\n */\n__owur int SSL_waiting_for_async(SSL *s);\n__owur int SSL_get_all_async_fds(SSL *s, OSSL_ASYNC_FD *fds, size_t *numfds);\n__owur int SSL_get_changed_async_fds(SSL *s, OSSL_ASYNC_FD *addfd,\n                                     size_t *numaddfds, OSSL_ASYNC_FD *delfd,\n                                     size_t *numdelfds);\n# endif\n__owur int SSL_accept(SSL *ssl);\n__owur int SSL_stateless(SSL *s);\n__owur int SSL_connect(SSL *ssl);\n__owur int SSL_read(SSL *ssl, void *buf, int num);\n__owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n\n# define SSL_READ_EARLY_DATA_ERROR   0\n# define SSL_READ_EARLY_DATA_SUCCESS 1\n# define SSL_READ_EARLY_DATA_FINISH  2\n\n__owur int SSL_read_early_data(SSL *s, void *buf, size_t num,\n                               size_t *readbytes);\n__owur int SSL_peek(SSL *ssl, void *buf, int num);\n__owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n__owur int SSL_write(SSL *ssl, const void *buf, int num);\n__owur int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written);\n__owur int SSL_write_early_data(SSL *s, const void *buf, size_t num,\n                                size_t *written);\nlong SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);\nlong SSL_callback_ctrl(SSL *, int, void (*)(void));\nlong SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);\nlong SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void));\n\n# define SSL_EARLY_DATA_NOT_SENT    0\n# define SSL_EARLY_DATA_REJECTED    1\n# define SSL_EARLY_DATA_ACCEPTED    2\n\n__owur int SSL_get_early_data_status(const SSL *s);\n\n__owur int SSL_get_error(const SSL *s, int ret_code);\n__owur const char *SSL_get_version(const SSL *s);\n\n/* This sets the 'default' SSL version that SSL_new() will create */\n__owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth);\n\n# ifndef OPENSSL_NO_SSL3_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void))\n# endif\n\n#define SSLv23_method           TLS_method\n#define SSLv23_server_method    TLS_server_method\n#define SSLv23_client_method    TLS_client_method\n\n/* Negotiate highest available SSL/TLS version */\n__owur const SSL_METHOD *TLS_method(void);\n__owur const SSL_METHOD *TLS_server_method(void);\n__owur const SSL_METHOD *TLS_client_method(void);\n\n# ifndef OPENSSL_NO_TLS1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_TLS1_1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_TLS1_2_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_DTLS1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_DTLS1_2_METHOD\n/* DTLSv1.2 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_client_method(void))\n# endif\n\n__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */\n__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */\n__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */\n\n__owur size_t DTLS_get_data_mtu(const SSL *s);\n\n__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);\n__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);\n__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const SSL *s);\n__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);\n\n__owur int SSL_do_handshake(SSL *s);\nint SSL_key_update(SSL *s, int updatetype);\nint SSL_get_key_update_type(const SSL *s);\nint SSL_renegotiate(SSL *s);\nint SSL_renegotiate_abbreviated(SSL *s);\n__owur int SSL_renegotiate_pending(const SSL *s);\nint SSL_shutdown(SSL *s);\n__owur int SSL_verify_client_post_handshake(SSL *s);\nvoid SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);\nvoid SSL_set_post_handshake_auth(SSL *s, int val);\n\n__owur const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);\n__owur const SSL_METHOD *SSL_get_ssl_method(const SSL *s);\n__owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);\n__owur const char *SSL_alert_type_string_long(int value);\n__owur const char *SSL_alert_type_string(int value);\n__owur const char *SSL_alert_desc_string_long(int value);\n__owur const char *SSL_alert_desc_string(int value);\n\nvoid SSL_set0_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);\nvoid SSL_CTX_set0_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);\n__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const SSL *s);\n__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const SSL_CTX *ctx);\n__owur int SSL_add1_to_CA_list(SSL *ssl, const X509 *x);\n__owur int SSL_CTX_add1_to_CA_list(SSL_CTX *ctx, const X509 *x);\n__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const SSL *s);\n\nvoid SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);\nvoid SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);\n__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);\n__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s);\n__owur int SSL_add_client_CA(SSL *ssl, X509 *x);\n__owur int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);\n\nvoid SSL_set_connect_state(SSL *s);\nvoid SSL_set_accept_state(SSL *s);\n\n__owur long SSL_get_default_timeout(const SSL *s);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_library_init() OPENSSL_init_ssl(0, NULL)\n# endif\n\n__owur char *SSL_CIPHER_description(const SSL_CIPHER *, char *buf, int size);\n__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk);\n\n__owur SSL *SSL_dup(SSL *ssl);\n\n__owur X509 *SSL_get_certificate(const SSL *ssl);\n/*\n * EVP_PKEY\n */\nstruct evp_pkey_st *SSL_get_privatekey(const SSL *ssl);\n\n__owur X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);\n__owur EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);\n\nvoid SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);\n__owur int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);\nvoid SSL_set_quiet_shutdown(SSL *ssl, int mode);\n__owur int SSL_get_quiet_shutdown(const SSL *ssl);\nvoid SSL_set_shutdown(SSL *ssl, int mode);\n__owur int SSL_get_shutdown(const SSL *ssl);\n__owur int SSL_version(const SSL *ssl);\n__owur int SSL_client_version(const SSL *s);\n__owur int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);\n__owur int SSL_CTX_set_default_verify_dir(SSL_CTX *ctx);\n__owur int SSL_CTX_set_default_verify_file(SSL_CTX *ctx);\n__owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,\n                                         const char *CApath);\n# define SSL_get0_session SSL_get_session/* just peek at pointer */\n__owur SSL_SESSION *SSL_get_session(const SSL *ssl);\n__owur SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */\n__owur SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);\nSSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);\nvoid SSL_set_info_callback(SSL *ssl,\n                           void (*cb) (const SSL *ssl, int type, int val));\nvoid (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,\n                                               int val);\n__owur OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);\n\nvoid SSL_set_verify_result(SSL *ssl, long v);\n__owur long SSL_get_verify_result(const SSL *ssl);\n__owur STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s);\n\n__owur size_t SSL_get_client_random(const SSL *ssl, unsigned char *out,\n                                    size_t outlen);\n__owur size_t SSL_get_server_random(const SSL *ssl, unsigned char *out,\n                                    size_t outlen);\n__owur size_t SSL_SESSION_get_master_key(const SSL_SESSION *sess,\n                                         unsigned char *out, size_t outlen);\n__owur int SSL_SESSION_set1_master_key(SSL_SESSION *sess,\n                                       const unsigned char *in, size_t len);\nuint8_t SSL_SESSION_get_max_fragment_length(const SSL_SESSION *sess);\n\n#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef)\n__owur int SSL_set_ex_data(SSL *ssl, int idx, void *data);\nvoid *SSL_get_ex_data(const SSL *ssl, int idx);\n#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef)\n__owur int SSL_SESSION_set_ex_data(SSL_SESSION *ss, int idx, void *data);\nvoid *SSL_SESSION_get_ex_data(const SSL_SESSION *ss, int idx);\n#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef)\n__owur int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);\nvoid *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);\n\n__owur int SSL_get_ex_data_X509_STORE_CTX_idx(void);\n\n# define SSL_CTX_sess_set_cache_size(ctx,t) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL)\n# define SSL_CTX_sess_get_cache_size(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL)\n# define SSL_CTX_set_session_cache_mode(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL)\n# define SSL_CTX_get_session_cache_mode(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL)\n\n# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx)\n# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m)\n# define SSL_CTX_get_read_ahead(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL)\n# define SSL_CTX_set_read_ahead(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL)\n# define SSL_CTX_get_max_cert_list(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)\n# define SSL_CTX_set_max_cert_list(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)\n# define SSL_get_max_cert_list(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)\n# define SSL_set_max_cert_list(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)\n\n# define SSL_CTX_set_max_send_fragment(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)\n# define SSL_set_max_send_fragment(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)\n# define SSL_CTX_set_split_send_fragment(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)\n# define SSL_set_split_send_fragment(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)\n# define SSL_CTX_set_max_pipelines(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)\n# define SSL_set_max_pipelines(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)\n\nvoid SSL_CTX_set_default_read_buffer_len(SSL_CTX *ctx, size_t len);\nvoid SSL_set_default_read_buffer_len(SSL *s, size_t len);\n\n# ifndef OPENSSL_NO_DH\n/* NB: the |keylength| is only applicable when is_export is true */\nvoid SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,\n                                 DH *(*dh) (SSL *ssl, int is_export,\n                                            int keylength));\nvoid SSL_set_tmp_dh_callback(SSL *ssl,\n                             DH *(*dh) (SSL *ssl, int is_export,\n                                        int keylength));\n# endif\n\n__owur const COMP_METHOD *SSL_get_current_compression(const SSL *s);\n__owur const COMP_METHOD *SSL_get_current_expansion(const SSL *s);\n__owur const char *SSL_COMP_get_name(const COMP_METHOD *comp);\n__owur const char *SSL_COMP_get0_name(const SSL_COMP *comp);\n__owur int SSL_COMP_get_id(const SSL_COMP *comp);\nSTACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);\n__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP)\n                                                             *meths);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_COMP_free_compression_methods() while(0) continue\n# endif\n__owur int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);\n\nconst SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);\nint SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c);\nint SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c);\nint SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len,\n                             int isv2format, STACK_OF(SSL_CIPHER) **sk,\n                             STACK_OF(SSL_CIPHER) **scsvs);\n\n/* TLS extensions functions */\n__owur int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);\n\n__owur int SSL_set_session_ticket_ext_cb(SSL *s,\n                                         tls_session_ticket_ext_cb_fn cb,\n                                         void *arg);\n\n/* Pre-shared secret session resumption functions */\n__owur int SSL_set_session_secret_cb(SSL *s,\n                                     tls_session_secret_cb_fn session_secret_cb,\n                                     void *arg);\n\nvoid SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx,\n                                                int (*cb) (SSL *ssl,\n                                                           int\n                                                           is_forward_secure));\n\nvoid SSL_set_not_resumable_session_callback(SSL *ssl,\n                                            int (*cb) (SSL *ssl,\n                                                       int is_forward_secure));\n\nvoid SSL_CTX_set_record_padding_callback(SSL_CTX *ctx,\n                                         size_t (*cb) (SSL *ssl, int type,\n                                                       size_t len, void *arg));\nvoid SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);\nvoid *SSL_CTX_get_record_padding_callback_arg(const SSL_CTX *ctx);\nint SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);\n\nvoid SSL_set_record_padding_callback(SSL *ssl,\n                                    size_t (*cb) (SSL *ssl, int type,\n                                                  size_t len, void *arg));\nvoid SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);\nvoid *SSL_get_record_padding_callback_arg(const SSL *ssl);\nint SSL_set_block_padding(SSL *ssl, size_t block_size);\n\nint SSL_set_num_tickets(SSL *s, size_t num_tickets);\nsize_t SSL_get_num_tickets(const SSL *s);\nint SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);\nsize_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_cache_hit(s) SSL_session_reused(s)\n# endif\n\n__owur int SSL_session_reused(const SSL *s);\n__owur int SSL_is_server(const SSL *s);\n\n__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);\nint SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);\nvoid SSL_CONF_CTX_free(SSL_CONF_CTX *cctx);\nunsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);\n__owur unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx,\n                                             unsigned int flags);\n__owur int SSL_CONF_CTX_set1_prefix(SSL_CONF_CTX *cctx, const char *pre);\n\nvoid SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);\nvoid SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);\n\n__owur int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value);\n__owur int SSL_CONF_cmd_argv(SSL_CONF_CTX *cctx, int *pargc, char ***pargv);\n__owur int SSL_CONF_cmd_value_type(SSL_CONF_CTX *cctx, const char *cmd);\n\nvoid SSL_add_ssl_module(void);\nint SSL_config(SSL *s, const char *name);\nint SSL_CTX_config(SSL_CTX *ctx, const char *name);\n\n# ifndef OPENSSL_NO_SSL_TRACE\nvoid SSL_trace(int write_p, int version, int content_type,\n               const void *buf, size_t len, SSL *ssl, void *arg);\n# endif\n\n# ifndef OPENSSL_NO_SOCK\nint DTLSv1_listen(SSL *s, BIO_ADDR *client);\n# endif\n\n# ifndef OPENSSL_NO_CT\n\n/*\n * A callback for verifying that the received SCTs are sufficient.\n * Expected to return 1 if they are sufficient, otherwise 0.\n * May return a negative integer if an error occurs.\n * A connection should be aborted if the SCTs are deemed insufficient.\n */\ntypedef int (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx,\n                                    const STACK_OF(SCT) *scts, void *arg);\n\n/*\n * Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate\n * the received SCTs.\n * If the callback returns a non-positive result, the connection is terminated.\n * Call this function before beginning a handshake.\n * If a NULL |callback| is provided, SCT validation is disabled.\n * |arg| is arbitrary userdata that will be passed to the callback whenever it\n * is invoked. Ownership of |arg| remains with the caller.\n *\n * NOTE: A side-effect of setting a CT callback is that an OCSP stapled response\n *       will be requested.\n */\nint SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,\n                                   void *arg);\nint SSL_CTX_set_ct_validation_callback(SSL_CTX *ctx,\n                                       ssl_ct_validation_cb callback,\n                                       void *arg);\n#define SSL_disable_ct(s) \\\n        ((void) SSL_set_validation_callback((s), NULL, NULL))\n#define SSL_CTX_disable_ct(ctx) \\\n        ((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL))\n\n/*\n * The validation type enumerates the available behaviours of the built-in SSL\n * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct().\n * The underlying callback is a static function in libssl.\n */\nenum {\n    SSL_CT_VALIDATION_PERMISSIVE = 0,\n    SSL_CT_VALIDATION_STRICT\n};\n\n/*\n * Enable CT by setting up a callback that implements one of the built-in\n * validation variants.  The SSL_CT_VALIDATION_PERMISSIVE variant always\n * continues the handshake, the application can make appropriate decisions at\n * handshake completion.  The SSL_CT_VALIDATION_STRICT variant requires at\n * least one valid SCT, or else handshake termination will be requested.  The\n * handshake may continue anyway if SSL_VERIFY_NONE is in effect.\n */\nint SSL_enable_ct(SSL *s, int validation_mode);\nint SSL_CTX_enable_ct(SSL_CTX *ctx, int validation_mode);\n\n/*\n * Report whether a non-NULL callback is enabled.\n */\nint SSL_ct_is_enabled(const SSL *s);\nint SSL_CTX_ct_is_enabled(const SSL_CTX *ctx);\n\n/* Gets the SCTs received from a connection */\nconst STACK_OF(SCT) *SSL_get0_peer_scts(SSL *s);\n\n/*\n * Loads the CT log list from the default location.\n * If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,\n * the log information loaded from this file will be appended to the\n * CTLOG_STORE.\n * Returns 1 on success, 0 otherwise.\n */\nint SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx);\n\n/*\n * Loads the CT log list from the specified file path.\n * If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,\n * the log information loaded from this file will be appended to the\n * CTLOG_STORE.\n * Returns 1 on success, 0 otherwise.\n */\nint SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path);\n\n/*\n * Sets the CT log list used by all SSL connections created from this SSL_CTX.\n * Ownership of the CTLOG_STORE is transferred to the SSL_CTX.\n */\nvoid SSL_CTX_set0_ctlog_store(SSL_CTX *ctx, CTLOG_STORE *logs);\n\n/*\n * Gets the CT log list used by all SSL connections created from this SSL_CTX.\n * This will be NULL unless one of the following functions has been called:\n * - SSL_CTX_set_default_ctlog_list_file\n * - SSL_CTX_set_ctlog_list_file\n * - SSL_CTX_set_ctlog_store\n */\nconst CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx);\n\n# endif /* OPENSSL_NO_CT */\n\n/* What the \"other\" parameter contains in security callback */\n/* Mask for type */\n# define SSL_SECOP_OTHER_TYPE    0xffff0000\n# define SSL_SECOP_OTHER_NONE    0\n# define SSL_SECOP_OTHER_CIPHER  (1 << 16)\n# define SSL_SECOP_OTHER_CURVE   (2 << 16)\n# define SSL_SECOP_OTHER_DH      (3 << 16)\n# define SSL_SECOP_OTHER_PKEY    (4 << 16)\n# define SSL_SECOP_OTHER_SIGALG  (5 << 16)\n# define SSL_SECOP_OTHER_CERT    (6 << 16)\n\n/* Indicated operation refers to peer key or certificate */\n# define SSL_SECOP_PEER          0x1000\n\n/* Values for \"op\" parameter in security callback */\n\n/* Called to filter ciphers */\n/* Ciphers client supports */\n# define SSL_SECOP_CIPHER_SUPPORTED      (1 | SSL_SECOP_OTHER_CIPHER)\n/* Cipher shared by client/server */\n# define SSL_SECOP_CIPHER_SHARED         (2 | SSL_SECOP_OTHER_CIPHER)\n/* Sanity check of cipher server selects */\n# define SSL_SECOP_CIPHER_CHECK          (3 | SSL_SECOP_OTHER_CIPHER)\n/* Curves supported by client */\n# define SSL_SECOP_CURVE_SUPPORTED       (4 | SSL_SECOP_OTHER_CURVE)\n/* Curves shared by client/server */\n# define SSL_SECOP_CURVE_SHARED          (5 | SSL_SECOP_OTHER_CURVE)\n/* Sanity check of curve server selects */\n# define SSL_SECOP_CURVE_CHECK           (6 | SSL_SECOP_OTHER_CURVE)\n/* Temporary DH key */\n# define SSL_SECOP_TMP_DH                (7 | SSL_SECOP_OTHER_PKEY)\n/* SSL/TLS version */\n# define SSL_SECOP_VERSION               (9 | SSL_SECOP_OTHER_NONE)\n/* Session tickets */\n# define SSL_SECOP_TICKET                (10 | SSL_SECOP_OTHER_NONE)\n/* Supported signature algorithms sent to peer */\n# define SSL_SECOP_SIGALG_SUPPORTED      (11 | SSL_SECOP_OTHER_SIGALG)\n/* Shared signature algorithm */\n# define SSL_SECOP_SIGALG_SHARED         (12 | SSL_SECOP_OTHER_SIGALG)\n/* Sanity check signature algorithm allowed */\n# define SSL_SECOP_SIGALG_CHECK          (13 | SSL_SECOP_OTHER_SIGALG)\n/* Used to get mask of supported public key signature algorithms */\n# define SSL_SECOP_SIGALG_MASK           (14 | SSL_SECOP_OTHER_SIGALG)\n/* Use to see if compression is allowed */\n# define SSL_SECOP_COMPRESSION           (15 | SSL_SECOP_OTHER_NONE)\n/* EE key in certificate */\n# define SSL_SECOP_EE_KEY                (16 | SSL_SECOP_OTHER_CERT)\n/* CA key in certificate */\n# define SSL_SECOP_CA_KEY                (17 | SSL_SECOP_OTHER_CERT)\n/* CA digest algorithm in certificate */\n# define SSL_SECOP_CA_MD                 (18 | SSL_SECOP_OTHER_CERT)\n/* Peer EE key in certificate */\n# define SSL_SECOP_PEER_EE_KEY           (SSL_SECOP_EE_KEY | SSL_SECOP_PEER)\n/* Peer CA key in certificate */\n# define SSL_SECOP_PEER_CA_KEY           (SSL_SECOP_CA_KEY | SSL_SECOP_PEER)\n/* Peer CA digest algorithm in certificate */\n# define SSL_SECOP_PEER_CA_MD            (SSL_SECOP_CA_MD | SSL_SECOP_PEER)\n\nvoid SSL_set_security_level(SSL *s, int level);\n__owur int SSL_get_security_level(const SSL *s);\nvoid SSL_set_security_callback(SSL *s,\n                               int (*cb) (const SSL *s, const SSL_CTX *ctx,\n                                          int op, int bits, int nid,\n                                          void *other, void *ex));\nint (*SSL_get_security_callback(const SSL *s)) (const SSL *s,\n                                                const SSL_CTX *ctx, int op,\n                                                int bits, int nid, void *other,\n                                                void *ex);\nvoid SSL_set0_security_ex_data(SSL *s, void *ex);\n__owur void *SSL_get0_security_ex_data(const SSL *s);\n\nvoid SSL_CTX_set_security_level(SSL_CTX *ctx, int level);\n__owur int SSL_CTX_get_security_level(const SSL_CTX *ctx);\nvoid SSL_CTX_set_security_callback(SSL_CTX *ctx,\n                                   int (*cb) (const SSL *s, const SSL_CTX *ctx,\n                                              int op, int bits, int nid,\n                                              void *other, void *ex));\nint (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,\n                                                          const SSL_CTX *ctx,\n                                                          int op, int bits,\n                                                          int nid,\n                                                          void *other,\n                                                          void *ex);\nvoid SSL_CTX_set0_security_ex_data(SSL_CTX *ctx, void *ex);\n__owur void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx);\n\n/* OPENSSL_INIT flag 0x010000 reserved for internal use */\n# define OPENSSL_INIT_NO_LOAD_SSL_STRINGS    0x00100000L\n# define OPENSSL_INIT_LOAD_SSL_STRINGS       0x00200000L\n\n# define OPENSSL_INIT_SSL_DEFAULT \\\n        (OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS)\n\nint OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);\n\n# ifndef OPENSSL_NO_UNIT_TEST\n__owur const struct openssl_ssl_test_functions *SSL_test_functions(void);\n# endif\n\n__owur int SSL_free_buffers(SSL *ssl);\n__owur int SSL_alloc_buffers(SSL *ssl);\n\n/* Status codes passed to the decrypt session ticket callback. Some of these\n * are for internal use only and are never passed to the callback. */\ntypedef int SSL_TICKET_STATUS;\n\n/* Support for ticket appdata */\n/* fatal error, malloc failure */\n# define SSL_TICKET_FATAL_ERR_MALLOC 0\n/* fatal error, either from parsing or decrypting the ticket */\n# define SSL_TICKET_FATAL_ERR_OTHER  1\n/* No ticket present */\n# define SSL_TICKET_NONE             2\n/* Empty ticket present */\n# define SSL_TICKET_EMPTY            3\n/* the ticket couldn't be decrypted */\n# define SSL_TICKET_NO_DECRYPT       4\n/* a ticket was successfully decrypted */\n# define SSL_TICKET_SUCCESS          5\n/* same as above but the ticket needs to be renewed */\n# define SSL_TICKET_SUCCESS_RENEW    6\n\n/* Return codes for the decrypt session ticket callback */\ntypedef int SSL_TICKET_RETURN;\n\n/* An error occurred */\n#define SSL_TICKET_RETURN_ABORT             0\n/* Do not use the ticket, do not send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_IGNORE            1\n/* Do not use the ticket, send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_IGNORE_RENEW      2\n/* Use the ticket, do not send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_USE               3\n/* Use the ticket, send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_USE_RENEW         4\n\ntypedef int (*SSL_CTX_generate_session_ticket_fn)(SSL *s, void *arg);\ntypedef SSL_TICKET_RETURN (*SSL_CTX_decrypt_session_ticket_fn)(SSL *s, SSL_SESSION *ss,\n                                                               const unsigned char *keyname,\n                                                               size_t keyname_length,\n                                                               SSL_TICKET_STATUS status,\n                                                               void *arg);\nint SSL_CTX_set_session_ticket_cb(SSL_CTX *ctx,\n                                  SSL_CTX_generate_session_ticket_fn gen_cb,\n                                  SSL_CTX_decrypt_session_ticket_fn dec_cb,\n                                  void *arg);\nint SSL_SESSION_set1_ticket_appdata(SSL_SESSION *ss, const void *data, size_t len);\nint SSL_SESSION_get0_ticket_appdata(SSL_SESSION *ss, void **data, size_t *len);\n\nextern const char SSL_version_str[];\n\ntypedef unsigned int (*DTLS_timer_cb)(SSL *s, unsigned int timer_us);\n\nvoid DTLS_set_timer_cb(SSL *s, DTLS_timer_cb cb);\n\n\ntypedef int (*SSL_allow_early_data_cb_fn)(SSL *s, void *arg);\nvoid SSL_CTX_set_allow_early_data_cb(SSL_CTX *ctx,\n                                     SSL_allow_early_data_cb_fn cb,\n                                     void *arg);\nvoid SSL_set_allow_early_data_cb(SSL *s,\n                                 SSL_allow_early_data_cb_fn cb,\n                                 void *arg);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ssl2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL2_H\n# define HEADER_SSL2_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SSL2_VERSION            0x0002\n\n# define SSL2_MT_CLIENT_HELLO            1\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ssl3.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL3_H\n# define HEADER_SSL3_H\n\n# include <openssl/comp.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/ssl.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * Signalling cipher suite value from RFC 5746\n * (TLS_EMPTY_RENEGOTIATION_INFO_SCSV)\n */\n# define SSL3_CK_SCSV                            0x030000FF\n\n/*\n * Signalling cipher suite value from draft-ietf-tls-downgrade-scsv-00\n * (TLS_FALLBACK_SCSV)\n */\n# define SSL3_CK_FALLBACK_SCSV                   0x03005600\n\n# define SSL3_CK_RSA_NULL_MD5                    0x03000001\n# define SSL3_CK_RSA_NULL_SHA                    0x03000002\n# define SSL3_CK_RSA_RC4_40_MD5                  0x03000003\n# define SSL3_CK_RSA_RC4_128_MD5                 0x03000004\n# define SSL3_CK_RSA_RC4_128_SHA                 0x03000005\n# define SSL3_CK_RSA_RC2_40_MD5                  0x03000006\n# define SSL3_CK_RSA_IDEA_128_SHA                0x03000007\n# define SSL3_CK_RSA_DES_40_CBC_SHA              0x03000008\n# define SSL3_CK_RSA_DES_64_CBC_SHA              0x03000009\n# define SSL3_CK_RSA_DES_192_CBC3_SHA            0x0300000A\n\n# define SSL3_CK_DH_DSS_DES_40_CBC_SHA           0x0300000B\n# define SSL3_CK_DH_DSS_DES_64_CBC_SHA           0x0300000C\n# define SSL3_CK_DH_DSS_DES_192_CBC3_SHA         0x0300000D\n# define SSL3_CK_DH_RSA_DES_40_CBC_SHA           0x0300000E\n# define SSL3_CK_DH_RSA_DES_64_CBC_SHA           0x0300000F\n# define SSL3_CK_DH_RSA_DES_192_CBC3_SHA         0x03000010\n\n# define SSL3_CK_DHE_DSS_DES_40_CBC_SHA          0x03000011\n# define SSL3_CK_EDH_DSS_DES_40_CBC_SHA          SSL3_CK_DHE_DSS_DES_40_CBC_SHA\n# define SSL3_CK_DHE_DSS_DES_64_CBC_SHA          0x03000012\n# define SSL3_CK_EDH_DSS_DES_64_CBC_SHA          SSL3_CK_DHE_DSS_DES_64_CBC_SHA\n# define SSL3_CK_DHE_DSS_DES_192_CBC3_SHA        0x03000013\n# define SSL3_CK_EDH_DSS_DES_192_CBC3_SHA        SSL3_CK_DHE_DSS_DES_192_CBC3_SHA\n# define SSL3_CK_DHE_RSA_DES_40_CBC_SHA          0x03000014\n# define SSL3_CK_EDH_RSA_DES_40_CBC_SHA          SSL3_CK_DHE_RSA_DES_40_CBC_SHA\n# define SSL3_CK_DHE_RSA_DES_64_CBC_SHA          0x03000015\n# define SSL3_CK_EDH_RSA_DES_64_CBC_SHA          SSL3_CK_DHE_RSA_DES_64_CBC_SHA\n# define SSL3_CK_DHE_RSA_DES_192_CBC3_SHA        0x03000016\n# define SSL3_CK_EDH_RSA_DES_192_CBC3_SHA        SSL3_CK_DHE_RSA_DES_192_CBC3_SHA\n\n# define SSL3_CK_ADH_RC4_40_MD5                  0x03000017\n# define SSL3_CK_ADH_RC4_128_MD5                 0x03000018\n# define SSL3_CK_ADH_DES_40_CBC_SHA              0x03000019\n# define SSL3_CK_ADH_DES_64_CBC_SHA              0x0300001A\n# define SSL3_CK_ADH_DES_192_CBC_SHA             0x0300001B\n\n/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */\n# define SSL3_RFC_RSA_NULL_MD5                   \"TLS_RSA_WITH_NULL_MD5\"\n# define SSL3_RFC_RSA_NULL_SHA                   \"TLS_RSA_WITH_NULL_SHA\"\n# define SSL3_RFC_RSA_DES_192_CBC3_SHA           \"TLS_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_DHE_DSS_DES_192_CBC3_SHA       \"TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_DHE_RSA_DES_192_CBC3_SHA       \"TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_ADH_DES_192_CBC_SHA            \"TLS_DH_anon_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_RSA_IDEA_128_SHA               \"TLS_RSA_WITH_IDEA_CBC_SHA\"\n# define SSL3_RFC_RSA_RC4_128_MD5                \"TLS_RSA_WITH_RC4_128_MD5\"\n# define SSL3_RFC_RSA_RC4_128_SHA                \"TLS_RSA_WITH_RC4_128_SHA\"\n# define SSL3_RFC_ADH_RC4_128_MD5                \"TLS_DH_anon_WITH_RC4_128_MD5\"\n\n# define SSL3_TXT_RSA_NULL_MD5                   \"NULL-MD5\"\n# define SSL3_TXT_RSA_NULL_SHA                   \"NULL-SHA\"\n# define SSL3_TXT_RSA_RC4_40_MD5                 \"EXP-RC4-MD5\"\n# define SSL3_TXT_RSA_RC4_128_MD5                \"RC4-MD5\"\n# define SSL3_TXT_RSA_RC4_128_SHA                \"RC4-SHA\"\n# define SSL3_TXT_RSA_RC2_40_MD5                 \"EXP-RC2-CBC-MD5\"\n# define SSL3_TXT_RSA_IDEA_128_SHA               \"IDEA-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_40_CBC_SHA             \"EXP-DES-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_64_CBC_SHA             \"DES-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_192_CBC3_SHA           \"DES-CBC3-SHA\"\n\n# define SSL3_TXT_DH_DSS_DES_40_CBC_SHA          \"EXP-DH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DH_DSS_DES_64_CBC_SHA          \"DH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DH_DSS_DES_192_CBC3_SHA        \"DH-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_DH_RSA_DES_40_CBC_SHA          \"EXP-DH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DH_RSA_DES_64_CBC_SHA          \"DH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DH_RSA_DES_192_CBC3_SHA        \"DH-RSA-DES-CBC3-SHA\"\n\n# define SSL3_TXT_DHE_DSS_DES_40_CBC_SHA         \"EXP-DHE-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_DSS_DES_64_CBC_SHA         \"DHE-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_DSS_DES_192_CBC3_SHA       \"DHE-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_40_CBC_SHA         \"EXP-DHE-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_64_CBC_SHA         \"DHE-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_192_CBC3_SHA       \"DHE-RSA-DES-CBC3-SHA\"\n\n/*\n * This next block of six \"EDH\" labels is for backward compatibility with\n * older versions of OpenSSL.  New code should use the six \"DHE\" labels above\n * instead:\n */\n# define SSL3_TXT_EDH_DSS_DES_40_CBC_SHA         \"EXP-EDH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_DSS_DES_64_CBC_SHA         \"EDH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA       \"EDH-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_40_CBC_SHA         \"EXP-EDH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_64_CBC_SHA         \"EDH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA       \"EDH-RSA-DES-CBC3-SHA\"\n\n# define SSL3_TXT_ADH_RC4_40_MD5                 \"EXP-ADH-RC4-MD5\"\n# define SSL3_TXT_ADH_RC4_128_MD5                \"ADH-RC4-MD5\"\n# define SSL3_TXT_ADH_DES_40_CBC_SHA             \"EXP-ADH-DES-CBC-SHA\"\n# define SSL3_TXT_ADH_DES_64_CBC_SHA             \"ADH-DES-CBC-SHA\"\n# define SSL3_TXT_ADH_DES_192_CBC_SHA            \"ADH-DES-CBC3-SHA\"\n\n# define SSL3_SSL_SESSION_ID_LENGTH              32\n# define SSL3_MAX_SSL_SESSION_ID_LENGTH          32\n\n# define SSL3_MASTER_SECRET_SIZE                 48\n# define SSL3_RANDOM_SIZE                        32\n# define SSL3_SESSION_ID_SIZE                    32\n# define SSL3_RT_HEADER_LENGTH                   5\n\n# define SSL3_HM_HEADER_LENGTH                  4\n\n# ifndef SSL3_ALIGN_PAYLOAD\n /*\n  * Some will argue that this increases memory footprint, but it's not\n  * actually true. Point is that malloc has to return at least 64-bit aligned\n  * pointers, meaning that allocating 5 bytes wastes 3 bytes in either case.\n  * Suggested pre-gaping simply moves these wasted bytes from the end of\n  * allocated region to its front, but makes data payload aligned, which\n  * improves performance:-)\n  */\n#  define SSL3_ALIGN_PAYLOAD                     8\n# else\n#  if (SSL3_ALIGN_PAYLOAD&(SSL3_ALIGN_PAYLOAD-1))!=0\n#   error \"insane SSL3_ALIGN_PAYLOAD\"\n#   undef SSL3_ALIGN_PAYLOAD\n#  endif\n# endif\n\n/*\n * This is the maximum MAC (digest) size used by the SSL library. Currently\n * maximum of 20 is used by SHA1, but we reserve for future extension for\n * 512-bit hashes.\n */\n\n# define SSL3_RT_MAX_MD_SIZE                     64\n\n/*\n * Maximum block size used in all ciphersuites. Currently 16 for AES.\n */\n\n# define SSL_RT_MAX_CIPHER_BLOCK_SIZE            16\n\n# define SSL3_RT_MAX_EXTRA                       (16384)\n\n/* Maximum plaintext length: defined by SSL/TLS standards */\n# define SSL3_RT_MAX_PLAIN_LENGTH                16384\n/* Maximum compression overhead: defined by SSL/TLS standards */\n# define SSL3_RT_MAX_COMPRESSED_OVERHEAD         1024\n\n/*\n * The standards give a maximum encryption overhead of 1024 bytes. In\n * practice the value is lower than this. The overhead is the maximum number\n * of padding bytes (256) plus the mac size.\n */\n# define SSL3_RT_MAX_ENCRYPTED_OVERHEAD        (256 + SSL3_RT_MAX_MD_SIZE)\n# define SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD  256\n\n/*\n * OpenSSL currently only uses a padding length of at most one block so the\n * send overhead is smaller.\n */\n\n# define SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD \\\n                        (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)\n\n/* If compression isn't used don't include the compression overhead */\n\n# ifdef OPENSSL_NO_COMP\n#  define SSL3_RT_MAX_COMPRESSED_LENGTH           SSL3_RT_MAX_PLAIN_LENGTH\n# else\n#  define SSL3_RT_MAX_COMPRESSED_LENGTH   \\\n            (SSL3_RT_MAX_PLAIN_LENGTH+SSL3_RT_MAX_COMPRESSED_OVERHEAD)\n# endif\n# define SSL3_RT_MAX_ENCRYPTED_LENGTH    \\\n            (SSL3_RT_MAX_ENCRYPTED_OVERHEAD+SSL3_RT_MAX_COMPRESSED_LENGTH)\n# define SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH \\\n            (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD)\n# define SSL3_RT_MAX_PACKET_SIZE         \\\n            (SSL3_RT_MAX_ENCRYPTED_LENGTH+SSL3_RT_HEADER_LENGTH)\n\n# define SSL3_MD_CLIENT_FINISHED_CONST   \"\\x43\\x4C\\x4E\\x54\"\n# define SSL3_MD_SERVER_FINISHED_CONST   \"\\x53\\x52\\x56\\x52\"\n\n# define SSL3_VERSION                    0x0300\n# define SSL3_VERSION_MAJOR              0x03\n# define SSL3_VERSION_MINOR              0x00\n\n# define SSL3_RT_CHANGE_CIPHER_SPEC      20\n# define SSL3_RT_ALERT                   21\n# define SSL3_RT_HANDSHAKE               22\n# define SSL3_RT_APPLICATION_DATA        23\n# define DTLS1_RT_HEARTBEAT              24\n\n/* Pseudo content types to indicate additional parameters */\n# define TLS1_RT_CRYPTO                  0x1000\n# define TLS1_RT_CRYPTO_PREMASTER        (TLS1_RT_CRYPTO | 0x1)\n# define TLS1_RT_CRYPTO_CLIENT_RANDOM    (TLS1_RT_CRYPTO | 0x2)\n# define TLS1_RT_CRYPTO_SERVER_RANDOM    (TLS1_RT_CRYPTO | 0x3)\n# define TLS1_RT_CRYPTO_MASTER           (TLS1_RT_CRYPTO | 0x4)\n\n# define TLS1_RT_CRYPTO_READ             0x0000\n# define TLS1_RT_CRYPTO_WRITE            0x0100\n# define TLS1_RT_CRYPTO_MAC              (TLS1_RT_CRYPTO | 0x5)\n# define TLS1_RT_CRYPTO_KEY              (TLS1_RT_CRYPTO | 0x6)\n# define TLS1_RT_CRYPTO_IV               (TLS1_RT_CRYPTO | 0x7)\n# define TLS1_RT_CRYPTO_FIXED_IV         (TLS1_RT_CRYPTO | 0x8)\n\n/* Pseudo content types for SSL/TLS header info */\n# define SSL3_RT_HEADER                  0x100\n# define SSL3_RT_INNER_CONTENT_TYPE      0x101\n\n# define SSL3_AL_WARNING                 1\n# define SSL3_AL_FATAL                   2\n\n# define SSL3_AD_CLOSE_NOTIFY             0\n# define SSL3_AD_UNEXPECTED_MESSAGE      10/* fatal */\n# define SSL3_AD_BAD_RECORD_MAC          20/* fatal */\n# define SSL3_AD_DECOMPRESSION_FAILURE   30/* fatal */\n# define SSL3_AD_HANDSHAKE_FAILURE       40/* fatal */\n# define SSL3_AD_NO_CERTIFICATE          41\n# define SSL3_AD_BAD_CERTIFICATE         42\n# define SSL3_AD_UNSUPPORTED_CERTIFICATE 43\n# define SSL3_AD_CERTIFICATE_REVOKED     44\n# define SSL3_AD_CERTIFICATE_EXPIRED     45\n# define SSL3_AD_CERTIFICATE_UNKNOWN     46\n# define SSL3_AD_ILLEGAL_PARAMETER       47/* fatal */\n\n# define TLS1_HB_REQUEST         1\n# define TLS1_HB_RESPONSE        2\n\n\n# define SSL3_CT_RSA_SIGN                        1\n# define SSL3_CT_DSS_SIGN                        2\n# define SSL3_CT_RSA_FIXED_DH                    3\n# define SSL3_CT_DSS_FIXED_DH                    4\n# define SSL3_CT_RSA_EPHEMERAL_DH                5\n# define SSL3_CT_DSS_EPHEMERAL_DH                6\n# define SSL3_CT_FORTEZZA_DMS                    20\n/*\n * SSL3_CT_NUMBER is used to size arrays and it must be large enough to\n * contain all of the cert types defined for *either* SSLv3 and TLSv1.\n */\n# define SSL3_CT_NUMBER                  10\n\n# if defined(TLS_CT_NUMBER)\n#  if TLS_CT_NUMBER != SSL3_CT_NUMBER\n#    error \"SSL/TLS CT_NUMBER values do not match\"\n#  endif\n# endif\n\n/* No longer used as of OpenSSL 1.1.1 */\n# define SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS       0x0001\n\n/* Removed from OpenSSL 1.1.0 */\n# define TLS1_FLAGS_TLS_PADDING_BUG              0x0\n\n# define TLS1_FLAGS_SKIP_CERT_VERIFY             0x0010\n\n/* Set if we encrypt then mac instead of usual mac then encrypt */\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC_READ        0x0100\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC             TLS1_FLAGS_ENCRYPT_THEN_MAC_READ\n\n/* Set if extended master secret extension received from peer */\n# define TLS1_FLAGS_RECEIVED_EXTMS               0x0200\n\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE       0x0400\n\n# define TLS1_FLAGS_STATELESS                    0x0800\n\n/* Set if extended master secret extension required on renegotiation */\n# define TLS1_FLAGS_REQUIRED_EXTMS               0x1000\n\n# define SSL3_MT_HELLO_REQUEST                   0\n# define SSL3_MT_CLIENT_HELLO                    1\n# define SSL3_MT_SERVER_HELLO                    2\n# define SSL3_MT_NEWSESSION_TICKET               4\n# define SSL3_MT_END_OF_EARLY_DATA               5\n# define SSL3_MT_ENCRYPTED_EXTENSIONS            8\n# define SSL3_MT_CERTIFICATE                     11\n# define SSL3_MT_SERVER_KEY_EXCHANGE             12\n# define SSL3_MT_CERTIFICATE_REQUEST             13\n# define SSL3_MT_SERVER_DONE                     14\n# define SSL3_MT_CERTIFICATE_VERIFY              15\n# define SSL3_MT_CLIENT_KEY_EXCHANGE             16\n# define SSL3_MT_FINISHED                        20\n# define SSL3_MT_CERTIFICATE_URL                 21\n# define SSL3_MT_CERTIFICATE_STATUS              22\n# define SSL3_MT_SUPPLEMENTAL_DATA               23\n# define SSL3_MT_KEY_UPDATE                      24\n# ifndef OPENSSL_NO_NEXTPROTONEG\n#  define SSL3_MT_NEXT_PROTO                     67\n# endif\n# define SSL3_MT_MESSAGE_HASH                    254\n# define DTLS1_MT_HELLO_VERIFY_REQUEST           3\n\n/* Dummy message type for handling CCS like a normal handshake message */\n# define SSL3_MT_CHANGE_CIPHER_SPEC              0x0101\n\n# define SSL3_MT_CCS                             1\n\n/* These are used when changing over to a new cipher */\n# define SSL3_CC_READ            0x001\n# define SSL3_CC_WRITE           0x002\n# define SSL3_CC_CLIENT          0x010\n# define SSL3_CC_SERVER          0x020\n# define SSL3_CC_EARLY           0x040\n# define SSL3_CC_HANDSHAKE       0x080\n# define SSL3_CC_APPLICATION     0x100\n# define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT|SSL3_CC_WRITE)\n# define SSL3_CHANGE_CIPHER_SERVER_READ  (SSL3_CC_SERVER|SSL3_CC_READ)\n# define SSL3_CHANGE_CIPHER_CLIENT_READ  (SSL3_CC_CLIENT|SSL3_CC_READ)\n# define SSL3_CHANGE_CIPHER_SERVER_WRITE (SSL3_CC_SERVER|SSL3_CC_WRITE)\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/sslerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSLERR_H\n# define HEADER_SSLERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_SSL_strings(void);\n\n/*\n * SSL function codes.\n */\n# define SSL_F_ADD_CLIENT_KEY_SHARE_EXT                   438\n# define SSL_F_ADD_KEY_SHARE                              512\n# define SSL_F_BYTES_TO_CIPHER_LIST                       519\n# define SSL_F_CHECK_SUITEB_CIPHER_LIST                   331\n# define SSL_F_CIPHERSUITE_CB                             622\n# define SSL_F_CONSTRUCT_CA_NAMES                         552\n# define SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS                 553\n# define SSL_F_CONSTRUCT_STATEFUL_TICKET                  636\n# define SSL_F_CONSTRUCT_STATELESS_TICKET                 637\n# define SSL_F_CREATE_SYNTHETIC_MESSAGE_HASH              539\n# define SSL_F_CREATE_TICKET_PREQUEL                      638\n# define SSL_F_CT_MOVE_SCTS                               345\n# define SSL_F_CT_STRICT                                  349\n# define SSL_F_CUSTOM_EXT_ADD                             554\n# define SSL_F_CUSTOM_EXT_PARSE                           555\n# define SSL_F_D2I_SSL_SESSION                            103\n# define SSL_F_DANE_CTX_ENABLE                            347\n# define SSL_F_DANE_MTYPE_SET                             393\n# define SSL_F_DANE_TLSA_ADD                              394\n# define SSL_F_DERIVE_SECRET_KEY_AND_IV                   514\n# define SSL_F_DO_DTLS1_WRITE                             245\n# define SSL_F_DO_SSL3_WRITE                              104\n# define SSL_F_DTLS1_BUFFER_RECORD                        247\n# define SSL_F_DTLS1_CHECK_TIMEOUT_NUM                    318\n# define SSL_F_DTLS1_HEARTBEAT                            305\n# define SSL_F_DTLS1_HM_FRAGMENT_NEW                      623\n# define SSL_F_DTLS1_PREPROCESS_FRAGMENT                  288\n# define SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS             424\n# define SSL_F_DTLS1_PROCESS_RECORD                       257\n# define SSL_F_DTLS1_READ_BYTES                           258\n# define SSL_F_DTLS1_READ_FAILED                          339\n# define SSL_F_DTLS1_RETRANSMIT_MESSAGE                   390\n# define SSL_F_DTLS1_WRITE_APP_DATA_BYTES                 268\n# define SSL_F_DTLS1_WRITE_BYTES                          545\n# define SSL_F_DTLSV1_LISTEN                              350\n# define SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC          371\n# define SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST        385\n# define SSL_F_DTLS_GET_REASSEMBLED_MESSAGE               370\n# define SSL_F_DTLS_PROCESS_HELLO_VERIFY                  386\n# define SSL_F_DTLS_RECORD_LAYER_NEW                      635\n# define SSL_F_DTLS_WAIT_FOR_DRY                          592\n# define SSL_F_EARLY_DATA_COUNT_OK                        532\n# define SSL_F_FINAL_EARLY_DATA                           556\n# define SSL_F_FINAL_EC_PT_FORMATS                        485\n# define SSL_F_FINAL_EMS                                  486\n# define SSL_F_FINAL_KEY_SHARE                            503\n# define SSL_F_FINAL_MAXFRAGMENTLEN                       557\n# define SSL_F_FINAL_RENEGOTIATE                          483\n# define SSL_F_FINAL_SERVER_NAME                          558\n# define SSL_F_FINAL_SIG_ALGS                             497\n# define SSL_F_GET_CERT_VERIFY_TBS_DATA                   588\n# define SSL_F_NSS_KEYLOG_INT                             500\n# define SSL_F_OPENSSL_INIT_SSL                           342\n# define SSL_F_OSSL_STATEM_CLIENT13_READ_TRANSITION       436\n# define SSL_F_OSSL_STATEM_CLIENT13_WRITE_TRANSITION      598\n# define SSL_F_OSSL_STATEM_CLIENT_CONSTRUCT_MESSAGE       430\n# define SSL_F_OSSL_STATEM_CLIENT_POST_PROCESS_MESSAGE    593\n# define SSL_F_OSSL_STATEM_CLIENT_PROCESS_MESSAGE         594\n# define SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION         417\n# define SSL_F_OSSL_STATEM_CLIENT_WRITE_TRANSITION        599\n# define SSL_F_OSSL_STATEM_SERVER13_READ_TRANSITION       437\n# define SSL_F_OSSL_STATEM_SERVER13_WRITE_TRANSITION      600\n# define SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE       431\n# define SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE    601\n# define SSL_F_OSSL_STATEM_SERVER_POST_WORK               602\n# define SSL_F_OSSL_STATEM_SERVER_PRE_WORK                640\n# define SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE         603\n# define SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION         418\n# define SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION        604\n# define SSL_F_PARSE_CA_NAMES                             541\n# define SSL_F_PITEM_NEW                                  624\n# define SSL_F_PQUEUE_NEW                                 625\n# define SSL_F_PROCESS_KEY_SHARE_EXT                      439\n# define SSL_F_READ_STATE_MACHINE                         352\n# define SSL_F_SET_CLIENT_CIPHERSUITE                     540\n# define SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET          595\n# define SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET          589\n# define SSL_F_SRP_VERIFY_SERVER_PARAM                    596\n# define SSL_F_SSL3_CHANGE_CIPHER_STATE                   129\n# define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM              130\n# define SSL_F_SSL3_CTRL                                  213\n# define SSL_F_SSL3_CTX_CTRL                              133\n# define SSL_F_SSL3_DIGEST_CACHED_RECORDS                 293\n# define SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC                 292\n# define SSL_F_SSL3_ENC                                   608\n# define SSL_F_SSL3_FINAL_FINISH_MAC                      285\n# define SSL_F_SSL3_FINISH_MAC                            587\n# define SSL_F_SSL3_GENERATE_KEY_BLOCK                    238\n# define SSL_F_SSL3_GENERATE_MASTER_SECRET                388\n# define SSL_F_SSL3_GET_RECORD                            143\n# define SSL_F_SSL3_INIT_FINISHED_MAC                     397\n# define SSL_F_SSL3_OUTPUT_CERT_CHAIN                     147\n# define SSL_F_SSL3_READ_BYTES                            148\n# define SSL_F_SSL3_READ_N                                149\n# define SSL_F_SSL3_SETUP_KEY_BLOCK                       157\n# define SSL_F_SSL3_SETUP_READ_BUFFER                     156\n# define SSL_F_SSL3_SETUP_WRITE_BUFFER                    291\n# define SSL_F_SSL3_WRITE_BYTES                           158\n# define SSL_F_SSL3_WRITE_PENDING                         159\n# define SSL_F_SSL_ADD_CERT_CHAIN                         316\n# define SSL_F_SSL_ADD_CERT_TO_BUF                        319\n# define SSL_F_SSL_ADD_CERT_TO_WPACKET                    493\n# define SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT        298\n# define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT                 277\n# define SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT           307\n# define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK         215\n# define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK        216\n# define SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT        299\n# define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT                 278\n# define SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT           308\n# define SSL_F_SSL_BAD_METHOD                             160\n# define SSL_F_SSL_BUILD_CERT_CHAIN                       332\n# define SSL_F_SSL_BYTES_TO_CIPHER_LIST                   161\n# define SSL_F_SSL_CACHE_CIPHERLIST                       520\n# define SSL_F_SSL_CERT_ADD0_CHAIN_CERT                   346\n# define SSL_F_SSL_CERT_DUP                               221\n# define SSL_F_SSL_CERT_NEW                               162\n# define SSL_F_SSL_CERT_SET0_CHAIN                        340\n# define SSL_F_SSL_CHECK_PRIVATE_KEY                      163\n# define SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT               280\n# define SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO              606\n# define SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG            279\n# define SSL_F_SSL_CHOOSE_CLIENT_VERSION                  607\n# define SSL_F_SSL_CIPHER_DESCRIPTION                     626\n# define SSL_F_SSL_CIPHER_LIST_TO_BYTES                   425\n# define SSL_F_SSL_CIPHER_PROCESS_RULESTR                 230\n# define SSL_F_SSL_CIPHER_STRENGTH_SORT                   231\n# define SSL_F_SSL_CLEAR                                  164\n# define SSL_F_SSL_CLIENT_HELLO_GET1_EXTENSIONS_PRESENT   627\n# define SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD            165\n# define SSL_F_SSL_CONF_CMD                               334\n# define SSL_F_SSL_CREATE_CIPHER_LIST                     166\n# define SSL_F_SSL_CTRL                                   232\n# define SSL_F_SSL_CTX_CHECK_PRIVATE_KEY                  168\n# define SSL_F_SSL_CTX_ENABLE_CT                          398\n# define SSL_F_SSL_CTX_MAKE_PROFILES                      309\n# define SSL_F_SSL_CTX_NEW                                169\n# define SSL_F_SSL_CTX_SET_ALPN_PROTOS                    343\n# define SSL_F_SSL_CTX_SET_CIPHER_LIST                    269\n# define SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE             290\n# define SSL_F_SSL_CTX_SET_CT_VALIDATION_CALLBACK         396\n# define SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT             219\n# define SSL_F_SSL_CTX_SET_SSL_VERSION                    170\n# define SSL_F_SSL_CTX_SET_TLSEXT_MAX_FRAGMENT_LENGTH     551\n# define SSL_F_SSL_CTX_USE_CERTIFICATE                    171\n# define SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1               172\n# define SSL_F_SSL_CTX_USE_CERTIFICATE_FILE               173\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY                     174\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1                175\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE                176\n# define SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT              272\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY                  177\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1             178\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE             179\n# define SSL_F_SSL_CTX_USE_SERVERINFO                     336\n# define SSL_F_SSL_CTX_USE_SERVERINFO_EX                  543\n# define SSL_F_SSL_CTX_USE_SERVERINFO_FILE                337\n# define SSL_F_SSL_DANE_DUP                               403\n# define SSL_F_SSL_DANE_ENABLE                            395\n# define SSL_F_SSL_DERIVE                                 590\n# define SSL_F_SSL_DO_CONFIG                              391\n# define SSL_F_SSL_DO_HANDSHAKE                           180\n# define SSL_F_SSL_DUP_CA_LIST                            408\n# define SSL_F_SSL_ENABLE_CT                              402\n# define SSL_F_SSL_GENERATE_PKEY_GROUP                    559\n# define SSL_F_SSL_GENERATE_SESSION_ID                    547\n# define SSL_F_SSL_GET_NEW_SESSION                        181\n# define SSL_F_SSL_GET_PREV_SESSION                       217\n# define SSL_F_SSL_GET_SERVER_CERT_INDEX                  322\n# define SSL_F_SSL_GET_SIGN_PKEY                          183\n# define SSL_F_SSL_HANDSHAKE_HASH                         560\n# define SSL_F_SSL_INIT_WBIO_BUFFER                       184\n# define SSL_F_SSL_KEY_UPDATE                             515\n# define SSL_F_SSL_LOAD_CLIENT_CA_FILE                    185\n# define SSL_F_SSL_LOG_MASTER_SECRET                      498\n# define SSL_F_SSL_LOG_RSA_CLIENT_KEY_EXCHANGE            499\n# define SSL_F_SSL_MODULE_INIT                            392\n# define SSL_F_SSL_NEW                                    186\n# define SSL_F_SSL_NEXT_PROTO_VALIDATE                    565\n# define SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT      300\n# define SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT               302\n# define SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT         310\n# define SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT      301\n# define SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT               303\n# define SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT         311\n# define SSL_F_SSL_PEEK                                   270\n# define SSL_F_SSL_PEEK_EX                                432\n# define SSL_F_SSL_PEEK_INTERNAL                          522\n# define SSL_F_SSL_READ                                   223\n# define SSL_F_SSL_READ_EARLY_DATA                        529\n# define SSL_F_SSL_READ_EX                                434\n# define SSL_F_SSL_READ_INTERNAL                          523\n# define SSL_F_SSL_RENEGOTIATE                            516\n# define SSL_F_SSL_RENEGOTIATE_ABBREVIATED                546\n# define SSL_F_SSL_SCAN_CLIENTHELLO_TLSEXT                320\n# define SSL_F_SSL_SCAN_SERVERHELLO_TLSEXT                321\n# define SSL_F_SSL_SESSION_DUP                            348\n# define SSL_F_SSL_SESSION_NEW                            189\n# define SSL_F_SSL_SESSION_PRINT_FP                       190\n# define SSL_F_SSL_SESSION_SET1_ID                        423\n# define SSL_F_SSL_SESSION_SET1_ID_CONTEXT                312\n# define SSL_F_SSL_SET_ALPN_PROTOS                        344\n# define SSL_F_SSL_SET_CERT                               191\n# define SSL_F_SSL_SET_CERT_AND_KEY                       621\n# define SSL_F_SSL_SET_CIPHER_LIST                        271\n# define SSL_F_SSL_SET_CT_VALIDATION_CALLBACK             399\n# define SSL_F_SSL_SET_FD                                 192\n# define SSL_F_SSL_SET_PKEY                               193\n# define SSL_F_SSL_SET_RFD                                194\n# define SSL_F_SSL_SET_SESSION                            195\n# define SSL_F_SSL_SET_SESSION_ID_CONTEXT                 218\n# define SSL_F_SSL_SET_SESSION_TICKET_EXT                 294\n# define SSL_F_SSL_SET_TLSEXT_MAX_FRAGMENT_LENGTH         550\n# define SSL_F_SSL_SET_WFD                                196\n# define SSL_F_SSL_SHUTDOWN                               224\n# define SSL_F_SSL_SRP_CTX_INIT                           313\n# define SSL_F_SSL_START_ASYNC_JOB                        389\n# define SSL_F_SSL_UNDEFINED_FUNCTION                     197\n# define SSL_F_SSL_UNDEFINED_VOID_FUNCTION                244\n# define SSL_F_SSL_USE_CERTIFICATE                        198\n# define SSL_F_SSL_USE_CERTIFICATE_ASN1                   199\n# define SSL_F_SSL_USE_CERTIFICATE_FILE                   200\n# define SSL_F_SSL_USE_PRIVATEKEY                         201\n# define SSL_F_SSL_USE_PRIVATEKEY_ASN1                    202\n# define SSL_F_SSL_USE_PRIVATEKEY_FILE                    203\n# define SSL_F_SSL_USE_PSK_IDENTITY_HINT                  273\n# define SSL_F_SSL_USE_RSAPRIVATEKEY                      204\n# define SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1                 205\n# define SSL_F_SSL_USE_RSAPRIVATEKEY_FILE                 206\n# define SSL_F_SSL_VALIDATE_CT                            400\n# define SSL_F_SSL_VERIFY_CERT_CHAIN                      207\n# define SSL_F_SSL_VERIFY_CLIENT_POST_HANDSHAKE           616\n# define SSL_F_SSL_WRITE                                  208\n# define SSL_F_SSL_WRITE_EARLY_DATA                       526\n# define SSL_F_SSL_WRITE_EARLY_FINISH                     527\n# define SSL_F_SSL_WRITE_EX                               433\n# define SSL_F_SSL_WRITE_INTERNAL                         524\n# define SSL_F_STATE_MACHINE                              353\n# define SSL_F_TLS12_CHECK_PEER_SIGALG                    333\n# define SSL_F_TLS12_COPY_SIGALGS                         533\n# define SSL_F_TLS13_CHANGE_CIPHER_STATE                  440\n# define SSL_F_TLS13_ENC                                  609\n# define SSL_F_TLS13_FINAL_FINISH_MAC                     605\n# define SSL_F_TLS13_GENERATE_SECRET                      591\n# define SSL_F_TLS13_HKDF_EXPAND                          561\n# define SSL_F_TLS13_RESTORE_HANDSHAKE_DIGEST_FOR_PHA     617\n# define SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA        618\n# define SSL_F_TLS13_SETUP_KEY_BLOCK                      441\n# define SSL_F_TLS1_CHANGE_CIPHER_STATE                   209\n# define SSL_F_TLS1_CHECK_DUPLICATE_EXTENSIONS            341\n# define SSL_F_TLS1_ENC                                   401\n# define SSL_F_TLS1_EXPORT_KEYING_MATERIAL                314\n# define SSL_F_TLS1_GET_CURVELIST                         338\n# define SSL_F_TLS1_PRF                                   284\n# define SSL_F_TLS1_SAVE_U16                              628\n# define SSL_F_TLS1_SETUP_KEY_BLOCK                       211\n# define SSL_F_TLS1_SET_GROUPS                            629\n# define SSL_F_TLS1_SET_RAW_SIGALGS                       630\n# define SSL_F_TLS1_SET_SERVER_SIGALGS                    335\n# define SSL_F_TLS1_SET_SHARED_SIGALGS                    631\n# define SSL_F_TLS1_SET_SIGALGS                           632\n# define SSL_F_TLS_CHOOSE_SIGALG                          513\n# define SSL_F_TLS_CLIENT_KEY_EXCHANGE_POST_WORK          354\n# define SSL_F_TLS_COLLECT_EXTENSIONS                     435\n# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_AUTHORITIES      542\n# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_REQUEST          372\n# define SSL_F_TLS_CONSTRUCT_CERT_STATUS                  429\n# define SSL_F_TLS_CONSTRUCT_CERT_STATUS_BODY             494\n# define SSL_F_TLS_CONSTRUCT_CERT_VERIFY                  496\n# define SSL_F_TLS_CONSTRUCT_CHANGE_CIPHER_SPEC           427\n# define SSL_F_TLS_CONSTRUCT_CKE_DHE                      404\n# define SSL_F_TLS_CONSTRUCT_CKE_ECDHE                    405\n# define SSL_F_TLS_CONSTRUCT_CKE_GOST                     406\n# define SSL_F_TLS_CONSTRUCT_CKE_PSK_PREAMBLE             407\n# define SSL_F_TLS_CONSTRUCT_CKE_RSA                      409\n# define SSL_F_TLS_CONSTRUCT_CKE_SRP                      410\n# define SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE           484\n# define SSL_F_TLS_CONSTRUCT_CLIENT_HELLO                 487\n# define SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE          488\n# define SSL_F_TLS_CONSTRUCT_CLIENT_VERIFY                489\n# define SSL_F_TLS_CONSTRUCT_CTOS_ALPN                    466\n# define SSL_F_TLS_CONSTRUCT_CTOS_CERTIFICATE             355\n# define SSL_F_TLS_CONSTRUCT_CTOS_COOKIE                  535\n# define SSL_F_TLS_CONSTRUCT_CTOS_EARLY_DATA              530\n# define SSL_F_TLS_CONSTRUCT_CTOS_EC_PT_FORMATS           467\n# define SSL_F_TLS_CONSTRUCT_CTOS_EMS                     468\n# define SSL_F_TLS_CONSTRUCT_CTOS_ETM                     469\n# define SSL_F_TLS_CONSTRUCT_CTOS_HELLO                   356\n# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_EXCHANGE            357\n# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE               470\n# define SSL_F_TLS_CONSTRUCT_CTOS_MAXFRAGMENTLEN          549\n# define SSL_F_TLS_CONSTRUCT_CTOS_NPN                     471\n# define SSL_F_TLS_CONSTRUCT_CTOS_PADDING                 472\n# define SSL_F_TLS_CONSTRUCT_CTOS_POST_HANDSHAKE_AUTH     619\n# define SSL_F_TLS_CONSTRUCT_CTOS_PSK                     501\n# define SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES           509\n# define SSL_F_TLS_CONSTRUCT_CTOS_RENEGOTIATE             473\n# define SSL_F_TLS_CONSTRUCT_CTOS_SCT                     474\n# define SSL_F_TLS_CONSTRUCT_CTOS_SERVER_NAME             475\n# define SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET          476\n# define SSL_F_TLS_CONSTRUCT_CTOS_SIG_ALGS                477\n# define SSL_F_TLS_CONSTRUCT_CTOS_SRP                     478\n# define SSL_F_TLS_CONSTRUCT_CTOS_STATUS_REQUEST          479\n# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS        480\n# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_VERSIONS      481\n# define SSL_F_TLS_CONSTRUCT_CTOS_USE_SRTP                482\n# define SSL_F_TLS_CONSTRUCT_CTOS_VERIFY                  358\n# define SSL_F_TLS_CONSTRUCT_ENCRYPTED_EXTENSIONS         443\n# define SSL_F_TLS_CONSTRUCT_END_OF_EARLY_DATA            536\n# define SSL_F_TLS_CONSTRUCT_EXTENSIONS                   447\n# define SSL_F_TLS_CONSTRUCT_FINISHED                     359\n# define SSL_F_TLS_CONSTRUCT_HELLO_REQUEST                373\n# define SSL_F_TLS_CONSTRUCT_HELLO_RETRY_REQUEST          510\n# define SSL_F_TLS_CONSTRUCT_KEY_UPDATE                   517\n# define SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET           428\n# define SSL_F_TLS_CONSTRUCT_NEXT_PROTO                   426\n# define SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE           490\n# define SSL_F_TLS_CONSTRUCT_SERVER_HELLO                 491\n# define SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE          492\n# define SSL_F_TLS_CONSTRUCT_STOC_ALPN                    451\n# define SSL_F_TLS_CONSTRUCT_STOC_CERTIFICATE             374\n# define SSL_F_TLS_CONSTRUCT_STOC_COOKIE                  613\n# define SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG           452\n# define SSL_F_TLS_CONSTRUCT_STOC_DONE                    375\n# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA              531\n# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA_INFO         525\n# define SSL_F_TLS_CONSTRUCT_STOC_EC_PT_FORMATS           453\n# define SSL_F_TLS_CONSTRUCT_STOC_EMS                     454\n# define SSL_F_TLS_CONSTRUCT_STOC_ETM                     455\n# define SSL_F_TLS_CONSTRUCT_STOC_HELLO                   376\n# define SSL_F_TLS_CONSTRUCT_STOC_KEY_EXCHANGE            377\n# define SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE               456\n# define SSL_F_TLS_CONSTRUCT_STOC_MAXFRAGMENTLEN          548\n# define SSL_F_TLS_CONSTRUCT_STOC_NEXT_PROTO_NEG          457\n# define SSL_F_TLS_CONSTRUCT_STOC_PSK                     504\n# define SSL_F_TLS_CONSTRUCT_STOC_RENEGOTIATE             458\n# define SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME             459\n# define SSL_F_TLS_CONSTRUCT_STOC_SESSION_TICKET          460\n# define SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST          461\n# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS        544\n# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_VERSIONS      611\n# define SSL_F_TLS_CONSTRUCT_STOC_USE_SRTP                462\n# define SSL_F_TLS_EARLY_POST_PROCESS_CLIENT_HELLO        521\n# define SSL_F_TLS_FINISH_HANDSHAKE                       597\n# define SSL_F_TLS_GET_MESSAGE_BODY                       351\n# define SSL_F_TLS_GET_MESSAGE_HEADER                     387\n# define SSL_F_TLS_HANDLE_ALPN                            562\n# define SSL_F_TLS_HANDLE_STATUS_REQUEST                  563\n# define SSL_F_TLS_PARSE_CERTIFICATE_AUTHORITIES          566\n# define SSL_F_TLS_PARSE_CLIENTHELLO_TLSEXT               449\n# define SSL_F_TLS_PARSE_CTOS_ALPN                        567\n# define SSL_F_TLS_PARSE_CTOS_COOKIE                      614\n# define SSL_F_TLS_PARSE_CTOS_EARLY_DATA                  568\n# define SSL_F_TLS_PARSE_CTOS_EC_PT_FORMATS               569\n# define SSL_F_TLS_PARSE_CTOS_EMS                         570\n# define SSL_F_TLS_PARSE_CTOS_KEY_SHARE                   463\n# define SSL_F_TLS_PARSE_CTOS_MAXFRAGMENTLEN              571\n# define SSL_F_TLS_PARSE_CTOS_POST_HANDSHAKE_AUTH         620\n# define SSL_F_TLS_PARSE_CTOS_PSK                         505\n# define SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES               572\n# define SSL_F_TLS_PARSE_CTOS_RENEGOTIATE                 464\n# define SSL_F_TLS_PARSE_CTOS_SERVER_NAME                 573\n# define SSL_F_TLS_PARSE_CTOS_SESSION_TICKET              574\n# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS                    575\n# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS_CERT               615\n# define SSL_F_TLS_PARSE_CTOS_SRP                         576\n# define SSL_F_TLS_PARSE_CTOS_STATUS_REQUEST              577\n# define SSL_F_TLS_PARSE_CTOS_SUPPORTED_GROUPS            578\n# define SSL_F_TLS_PARSE_CTOS_USE_SRTP                    465\n# define SSL_F_TLS_PARSE_STOC_ALPN                        579\n# define SSL_F_TLS_PARSE_STOC_COOKIE                      534\n# define SSL_F_TLS_PARSE_STOC_EARLY_DATA                  538\n# define SSL_F_TLS_PARSE_STOC_EARLY_DATA_INFO             528\n# define SSL_F_TLS_PARSE_STOC_EC_PT_FORMATS               580\n# define SSL_F_TLS_PARSE_STOC_KEY_SHARE                   445\n# define SSL_F_TLS_PARSE_STOC_MAXFRAGMENTLEN              581\n# define SSL_F_TLS_PARSE_STOC_NPN                         582\n# define SSL_F_TLS_PARSE_STOC_PSK                         502\n# define SSL_F_TLS_PARSE_STOC_RENEGOTIATE                 448\n# define SSL_F_TLS_PARSE_STOC_SCT                         564\n# define SSL_F_TLS_PARSE_STOC_SERVER_NAME                 583\n# define SSL_F_TLS_PARSE_STOC_SESSION_TICKET              584\n# define SSL_F_TLS_PARSE_STOC_STATUS_REQUEST              585\n# define SSL_F_TLS_PARSE_STOC_SUPPORTED_VERSIONS          612\n# define SSL_F_TLS_PARSE_STOC_USE_SRTP                    446\n# define SSL_F_TLS_POST_PROCESS_CLIENT_HELLO              378\n# define SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE       384\n# define SSL_F_TLS_PREPARE_CLIENT_CERTIFICATE             360\n# define SSL_F_TLS_PROCESS_AS_HELLO_RETRY_REQUEST         610\n# define SSL_F_TLS_PROCESS_CERTIFICATE_REQUEST            361\n# define SSL_F_TLS_PROCESS_CERT_STATUS                    362\n# define SSL_F_TLS_PROCESS_CERT_STATUS_BODY               495\n# define SSL_F_TLS_PROCESS_CERT_VERIFY                    379\n# define SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC             363\n# define SSL_F_TLS_PROCESS_CKE_DHE                        411\n# define SSL_F_TLS_PROCESS_CKE_ECDHE                      412\n# define SSL_F_TLS_PROCESS_CKE_GOST                       413\n# define SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE               414\n# define SSL_F_TLS_PROCESS_CKE_RSA                        415\n# define SSL_F_TLS_PROCESS_CKE_SRP                        416\n# define SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE             380\n# define SSL_F_TLS_PROCESS_CLIENT_HELLO                   381\n# define SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE            382\n# define SSL_F_TLS_PROCESS_ENCRYPTED_EXTENSIONS           444\n# define SSL_F_TLS_PROCESS_END_OF_EARLY_DATA              537\n# define SSL_F_TLS_PROCESS_FINISHED                       364\n# define SSL_F_TLS_PROCESS_HELLO_REQ                      507\n# define SSL_F_TLS_PROCESS_HELLO_RETRY_REQUEST            511\n# define SSL_F_TLS_PROCESS_INITIAL_SERVER_FLIGHT          442\n# define SSL_F_TLS_PROCESS_KEY_EXCHANGE                   365\n# define SSL_F_TLS_PROCESS_KEY_UPDATE                     518\n# define SSL_F_TLS_PROCESS_NEW_SESSION_TICKET             366\n# define SSL_F_TLS_PROCESS_NEXT_PROTO                     383\n# define SSL_F_TLS_PROCESS_SERVER_CERTIFICATE             367\n# define SSL_F_TLS_PROCESS_SERVER_DONE                    368\n# define SSL_F_TLS_PROCESS_SERVER_HELLO                   369\n# define SSL_F_TLS_PROCESS_SKE_DHE                        419\n# define SSL_F_TLS_PROCESS_SKE_ECDHE                      420\n# define SSL_F_TLS_PROCESS_SKE_PSK_PREAMBLE               421\n# define SSL_F_TLS_PROCESS_SKE_SRP                        422\n# define SSL_F_TLS_PSK_DO_BINDER                          506\n# define SSL_F_TLS_SCAN_CLIENTHELLO_TLSEXT                450\n# define SSL_F_TLS_SETUP_HANDSHAKE                        508\n# define SSL_F_USE_CERTIFICATE_CHAIN_FILE                 220\n# define SSL_F_WPACKET_INTERN_INIT_LEN                    633\n# define SSL_F_WPACKET_START_SUB_PACKET_LEN__             634\n# define SSL_F_WRITE_STATE_MACHINE                        586\n\n/*\n * SSL reason codes.\n */\n# define SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY        291\n# define SSL_R_APP_DATA_IN_HANDSHAKE                      100\n# define SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT 272\n# define SSL_R_AT_LEAST_TLS_1_0_NEEDED_IN_FIPS_MODE       143\n# define SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE     158\n# define SSL_R_BAD_CHANGE_CIPHER_SPEC                     103\n# define SSL_R_BAD_CIPHER                                 186\n# define SSL_R_BAD_DATA                                   390\n# define SSL_R_BAD_DATA_RETURNED_BY_CALLBACK              106\n# define SSL_R_BAD_DECOMPRESSION                          107\n# define SSL_R_BAD_DH_VALUE                               102\n# define SSL_R_BAD_DIGEST_LENGTH                          111\n# define SSL_R_BAD_EARLY_DATA                             233\n# define SSL_R_BAD_ECC_CERT                               304\n# define SSL_R_BAD_ECPOINT                                306\n# define SSL_R_BAD_EXTENSION                              110\n# define SSL_R_BAD_HANDSHAKE_LENGTH                       332\n# define SSL_R_BAD_HANDSHAKE_STATE                        236\n# define SSL_R_BAD_HELLO_REQUEST                          105\n# define SSL_R_BAD_HRR_VERSION                            263\n# define SSL_R_BAD_KEY_SHARE                              108\n# define SSL_R_BAD_KEY_UPDATE                             122\n# define SSL_R_BAD_LEGACY_VERSION                         292\n# define SSL_R_BAD_LENGTH                                 271\n# define SSL_R_BAD_PACKET                                 240\n# define SSL_R_BAD_PACKET_LENGTH                          115\n# define SSL_R_BAD_PROTOCOL_VERSION_NUMBER                116\n# define SSL_R_BAD_PSK                                    219\n# define SSL_R_BAD_PSK_IDENTITY                           114\n# define SSL_R_BAD_RECORD_TYPE                            443\n# define SSL_R_BAD_RSA_ENCRYPT                            119\n# define SSL_R_BAD_SIGNATURE                              123\n# define SSL_R_BAD_SRP_A_LENGTH                           347\n# define SSL_R_BAD_SRP_PARAMETERS                         371\n# define SSL_R_BAD_SRTP_MKI_VALUE                         352\n# define SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST           353\n# define SSL_R_BAD_SSL_FILETYPE                           124\n# define SSL_R_BAD_VALUE                                  384\n# define SSL_R_BAD_WRITE_RETRY                            127\n# define SSL_R_BINDER_DOES_NOT_VERIFY                     253\n# define SSL_R_BIO_NOT_SET                                128\n# define SSL_R_BLOCK_CIPHER_PAD_IS_WRONG                  129\n# define SSL_R_BN_LIB                                     130\n# define SSL_R_CALLBACK_FAILED                            234\n# define SSL_R_CANNOT_CHANGE_CIPHER                       109\n# define SSL_R_CA_DN_LENGTH_MISMATCH                      131\n# define SSL_R_CA_KEY_TOO_SMALL                           397\n# define SSL_R_CA_MD_TOO_WEAK                             398\n# define SSL_R_CCS_RECEIVED_EARLY                         133\n# define SSL_R_CERTIFICATE_VERIFY_FAILED                  134\n# define SSL_R_CERT_CB_ERROR                              377\n# define SSL_R_CERT_LENGTH_MISMATCH                       135\n# define SSL_R_CIPHERSUITE_DIGEST_HAS_CHANGED             218\n# define SSL_R_CIPHER_CODE_WRONG_LENGTH                   137\n# define SSL_R_CIPHER_OR_HASH_UNAVAILABLE                 138\n# define SSL_R_CLIENTHELLO_TLSEXT                         226\n# define SSL_R_COMPRESSED_LENGTH_TOO_LONG                 140\n# define SSL_R_COMPRESSION_DISABLED                       343\n# define SSL_R_COMPRESSION_FAILURE                        141\n# define SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE    307\n# define SSL_R_COMPRESSION_LIBRARY_ERROR                  142\n# define SSL_R_CONNECTION_TYPE_NOT_SET                    144\n# define SSL_R_CONTEXT_NOT_DANE_ENABLED                   167\n# define SSL_R_COOKIE_GEN_CALLBACK_FAILURE                400\n# define SSL_R_COOKIE_MISMATCH                            308\n# define SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED       206\n# define SSL_R_DANE_ALREADY_ENABLED                       172\n# define SSL_R_DANE_CANNOT_OVERRIDE_MTYPE_FULL            173\n# define SSL_R_DANE_NOT_ENABLED                           175\n# define SSL_R_DANE_TLSA_BAD_CERTIFICATE                  180\n# define SSL_R_DANE_TLSA_BAD_CERTIFICATE_USAGE            184\n# define SSL_R_DANE_TLSA_BAD_DATA_LENGTH                  189\n# define SSL_R_DANE_TLSA_BAD_DIGEST_LENGTH                192\n# define SSL_R_DANE_TLSA_BAD_MATCHING_TYPE                200\n# define SSL_R_DANE_TLSA_BAD_PUBLIC_KEY                   201\n# define SSL_R_DANE_TLSA_BAD_SELECTOR                     202\n# define SSL_R_DANE_TLSA_NULL_DATA                        203\n# define SSL_R_DATA_BETWEEN_CCS_AND_FINISHED              145\n# define SSL_R_DATA_LENGTH_TOO_LONG                       146\n# define SSL_R_DECRYPTION_FAILED                          147\n# define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC        281\n# define SSL_R_DH_KEY_TOO_SMALL                           394\n# define SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG            148\n# define SSL_R_DIGEST_CHECK_FAILED                        149\n# define SSL_R_DTLS_MESSAGE_TOO_BIG                       334\n# define SSL_R_DUPLICATE_COMPRESSION_ID                   309\n# define SSL_R_ECC_CERT_NOT_FOR_SIGNING                   318\n# define SSL_R_ECDH_REQUIRED_FOR_SUITEB_MODE              374\n# define SSL_R_EE_KEY_TOO_SMALL                           399\n# define SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST         354\n# define SSL_R_ENCRYPTED_LENGTH_TOO_LONG                  150\n# define SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST              151\n# define SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN             204\n# define SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE                  194\n# define SSL_R_EXCESSIVE_MESSAGE_SIZE                     152\n# define SSL_R_EXTENSION_NOT_RECEIVED                     279\n# define SSL_R_EXTRA_DATA_IN_MESSAGE                      153\n# define SSL_R_EXT_LENGTH_MISMATCH                        163\n# define SSL_R_FAILED_TO_INIT_ASYNC                       405\n# define SSL_R_FRAGMENTED_CLIENT_HELLO                    401\n# define SSL_R_GOT_A_FIN_BEFORE_A_CCS                     154\n# define SSL_R_HTTPS_PROXY_REQUEST                        155\n# define SSL_R_HTTP_REQUEST                               156\n# define SSL_R_ILLEGAL_POINT_COMPRESSION                  162\n# define SSL_R_ILLEGAL_SUITEB_DIGEST                      380\n# define SSL_R_INAPPROPRIATE_FALLBACK                     373\n# define SSL_R_INCONSISTENT_COMPRESSION                   340\n# define SSL_R_INCONSISTENT_EARLY_DATA_ALPN               222\n# define SSL_R_INCONSISTENT_EARLY_DATA_SNI                231\n# define SSL_R_INCONSISTENT_EXTMS                         104\n# define SSL_R_INSUFFICIENT_SECURITY                      241\n# define SSL_R_INVALID_ALERT                              205\n# define SSL_R_INVALID_CCS_MESSAGE                        260\n# define SSL_R_INVALID_CERTIFICATE_OR_ALG                 238\n# define SSL_R_INVALID_COMMAND                            280\n# define SSL_R_INVALID_COMPRESSION_ALGORITHM              341\n# define SSL_R_INVALID_CONFIG                             283\n# define SSL_R_INVALID_CONFIGURATION_NAME                 113\n# define SSL_R_INVALID_CONTEXT                            282\n# define SSL_R_INVALID_CT_VALIDATION_TYPE                 212\n# define SSL_R_INVALID_KEY_UPDATE_TYPE                    120\n# define SSL_R_INVALID_MAX_EARLY_DATA                     174\n# define SSL_R_INVALID_NULL_CMD_NAME                      385\n# define SSL_R_INVALID_SEQUENCE_NUMBER                    402\n# define SSL_R_INVALID_SERVERINFO_DATA                    388\n# define SSL_R_INVALID_SESSION_ID                         999\n# define SSL_R_INVALID_SRP_USERNAME                       357\n# define SSL_R_INVALID_STATUS_RESPONSE                    328\n# define SSL_R_INVALID_TICKET_KEYS_LENGTH                 325\n# define SSL_R_LENGTH_MISMATCH                            159\n# define SSL_R_LENGTH_TOO_LONG                            404\n# define SSL_R_LENGTH_TOO_SHORT                           160\n# define SSL_R_LIBRARY_BUG                                274\n# define SSL_R_LIBRARY_HAS_NO_CIPHERS                     161\n# define SSL_R_MISSING_DSA_SIGNING_CERT                   165\n# define SSL_R_MISSING_ECDSA_SIGNING_CERT                 381\n# define SSL_R_MISSING_FATAL                              256\n# define SSL_R_MISSING_PARAMETERS                         290\n# define SSL_R_MISSING_RSA_CERTIFICATE                    168\n# define SSL_R_MISSING_RSA_ENCRYPTING_CERT                169\n# define SSL_R_MISSING_RSA_SIGNING_CERT                   170\n# define SSL_R_MISSING_SIGALGS_EXTENSION                  112\n# define SSL_R_MISSING_SIGNING_CERT                       221\n# define SSL_R_MISSING_SRP_PARAM                          358\n# define SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION         209\n# define SSL_R_MISSING_TMP_DH_KEY                         171\n# define SSL_R_MISSING_TMP_ECDH_KEY                       311\n# define SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA     293\n# define SSL_R_NOT_ON_RECORD_BOUNDARY                     182\n# define SSL_R_NOT_REPLACING_CERTIFICATE                  289\n# define SSL_R_NOT_SERVER                                 284\n# define SSL_R_NO_APPLICATION_PROTOCOL                    235\n# define SSL_R_NO_CERTIFICATES_RETURNED                   176\n# define SSL_R_NO_CERTIFICATE_ASSIGNED                    177\n# define SSL_R_NO_CERTIFICATE_SET                         179\n# define SSL_R_NO_CHANGE_FOLLOWING_HRR                    214\n# define SSL_R_NO_CIPHERS_AVAILABLE                       181\n# define SSL_R_NO_CIPHERS_SPECIFIED                       183\n# define SSL_R_NO_CIPHER_MATCH                            185\n# define SSL_R_NO_CLIENT_CERT_METHOD                      331\n# define SSL_R_NO_COMPRESSION_SPECIFIED                   187\n# define SSL_R_NO_COOKIE_CALLBACK_SET                     287\n# define SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER           330\n# define SSL_R_NO_METHOD_SPECIFIED                        188\n# define SSL_R_NO_PEM_EXTENSIONS                          389\n# define SSL_R_NO_PRIVATE_KEY_ASSIGNED                    190\n# define SSL_R_NO_PROTOCOLS_AVAILABLE                     191\n# define SSL_R_NO_RENEGOTIATION                           339\n# define SSL_R_NO_REQUIRED_DIGEST                         324\n# define SSL_R_NO_SHARED_CIPHER                           193\n# define SSL_R_NO_SHARED_GROUPS                           410\n# define SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS             376\n# define SSL_R_NO_SRTP_PROFILES                           359\n# define SSL_R_NO_SUITABLE_KEY_SHARE                      101\n# define SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM            118\n# define SSL_R_NO_VALID_SCTS                              216\n# define SSL_R_NO_VERIFY_COOKIE_CALLBACK                  403\n# define SSL_R_NULL_SSL_CTX                               195\n# define SSL_R_NULL_SSL_METHOD_PASSED                     196\n# define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED            197\n# define SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED 344\n# define SSL_R_OVERFLOW_ERROR                             237\n# define SSL_R_PACKET_LENGTH_TOO_LONG                     198\n# define SSL_R_PARSE_TLSEXT                               227\n# define SSL_R_PATH_TOO_LONG                              270\n# define SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE          199\n# define SSL_R_PEM_NAME_BAD_PREFIX                        391\n# define SSL_R_PEM_NAME_TOO_SHORT                         392\n# define SSL_R_PIPELINE_FAILURE                           406\n# define SSL_R_POST_HANDSHAKE_AUTH_ENCODING_ERR           278\n# define SSL_R_PRIVATE_KEY_MISMATCH                       288\n# define SSL_R_PROTOCOL_IS_SHUTDOWN                       207\n# define SSL_R_PSK_IDENTITY_NOT_FOUND                     223\n# define SSL_R_PSK_NO_CLIENT_CB                           224\n# define SSL_R_PSK_NO_SERVER_CB                           225\n# define SSL_R_READ_BIO_NOT_SET                           211\n# define SSL_R_READ_TIMEOUT_EXPIRED                       312\n# define SSL_R_RECORD_LENGTH_MISMATCH                     213\n# define SSL_R_RECORD_TOO_SMALL                           298\n# define SSL_R_RENEGOTIATE_EXT_TOO_LONG                   335\n# define SSL_R_RENEGOTIATION_ENCODING_ERR                 336\n# define SSL_R_RENEGOTIATION_MISMATCH                     337\n# define SSL_R_REQUEST_PENDING                            285\n# define SSL_R_REQUEST_SENT                               286\n# define SSL_R_REQUIRED_CIPHER_MISSING                    215\n# define SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING     342\n# define SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING           345\n# define SSL_R_SCT_VERIFICATION_FAILED                    208\n# define SSL_R_SERVERHELLO_TLSEXT                         275\n# define SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED           277\n# define SSL_R_SHUTDOWN_WHILE_IN_INIT                     407\n# define SSL_R_SIGNATURE_ALGORITHMS_ERROR                 360\n# define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE      220\n# define SSL_R_SRP_A_CALC                                 361\n# define SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES           362\n# define SSL_R_SRTP_PROTECTION_PROFILE_LIST_TOO_LONG      363\n# define SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE            364\n# define SSL_R_SSL3_EXT_INVALID_MAX_FRAGMENT_LENGTH       232\n# define SSL_R_SSL3_EXT_INVALID_SERVERNAME                319\n# define SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE           320\n# define SSL_R_SSL3_SESSION_ID_TOO_LONG                   300\n# define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE                1042\n# define SSL_R_SSLV3_ALERT_BAD_RECORD_MAC                 1020\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED            1045\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED            1044\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN            1046\n# define SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE          1030\n# define SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE              1040\n# define SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER              1047\n# define SSL_R_SSLV3_ALERT_NO_CERTIFICATE                 1041\n# define SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE             1010\n# define SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE        1043\n# define SSL_R_SSL_COMMAND_SECTION_EMPTY                  117\n# define SSL_R_SSL_COMMAND_SECTION_NOT_FOUND              125\n# define SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION         228\n# define SSL_R_SSL_HANDSHAKE_FAILURE                      229\n# define SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS                 230\n# define SSL_R_SSL_NEGATIVE_LENGTH                        372\n# define SSL_R_SSL_SECTION_EMPTY                          126\n# define SSL_R_SSL_SECTION_NOT_FOUND                      136\n# define SSL_R_SSL_SESSION_ID_CALLBACK_FAILED             301\n# define SSL_R_SSL_SESSION_ID_CONFLICT                    302\n# define SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG            273\n# define SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH              303\n# define SSL_R_SSL_SESSION_ID_TOO_LONG                    408\n# define SSL_R_SSL_SESSION_VERSION_MISMATCH               210\n# define SSL_R_STILL_IN_INIT                              121\n# define SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED          1116\n# define SSL_R_TLSV13_ALERT_MISSING_EXTENSION             1109\n# define SSL_R_TLSV1_ALERT_ACCESS_DENIED                  1049\n# define SSL_R_TLSV1_ALERT_DECODE_ERROR                   1050\n# define SSL_R_TLSV1_ALERT_DECRYPTION_FAILED              1021\n# define SSL_R_TLSV1_ALERT_DECRYPT_ERROR                  1051\n# define SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION             1060\n# define SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK         1086\n# define SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY          1071\n# define SSL_R_TLSV1_ALERT_INTERNAL_ERROR                 1080\n# define SSL_R_TLSV1_ALERT_NO_RENEGOTIATION               1100\n# define SSL_R_TLSV1_ALERT_PROTOCOL_VERSION               1070\n# define SSL_R_TLSV1_ALERT_RECORD_OVERFLOW                1022\n# define SSL_R_TLSV1_ALERT_UNKNOWN_CA                     1048\n# define SSL_R_TLSV1_ALERT_USER_CANCELLED                 1090\n# define SSL_R_TLSV1_BAD_CERTIFICATE_HASH_VALUE           1114\n# define SSL_R_TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE      1113\n# define SSL_R_TLSV1_CERTIFICATE_UNOBTAINABLE             1111\n# define SSL_R_TLSV1_UNRECOGNIZED_NAME                    1112\n# define SSL_R_TLSV1_UNSUPPORTED_EXTENSION                1110\n# define SSL_R_TLS_HEARTBEAT_PEER_DOESNT_ACCEPT           365\n# define SSL_R_TLS_HEARTBEAT_PENDING                      366\n# define SSL_R_TLS_ILLEGAL_EXPORTER_LABEL                 367\n# define SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST             157\n# define SSL_R_TOO_MANY_KEY_UPDATES                       132\n# define SSL_R_TOO_MANY_WARN_ALERTS                       409\n# define SSL_R_TOO_MUCH_EARLY_DATA                        164\n# define SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS             314\n# define SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS       239\n# define SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES           242\n# define SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES          243\n# define SSL_R_UNEXPECTED_CCS_MESSAGE                     262\n# define SSL_R_UNEXPECTED_END_OF_EARLY_DATA               178\n# define SSL_R_UNEXPECTED_MESSAGE                         244\n# define SSL_R_UNEXPECTED_RECORD                          245\n# define SSL_R_UNINITIALIZED                              276\n# define SSL_R_UNKNOWN_ALERT_TYPE                         246\n# define SSL_R_UNKNOWN_CERTIFICATE_TYPE                   247\n# define SSL_R_UNKNOWN_CIPHER_RETURNED                    248\n# define SSL_R_UNKNOWN_CIPHER_TYPE                        249\n# define SSL_R_UNKNOWN_CMD_NAME                           386\n# define SSL_R_UNKNOWN_COMMAND                            139\n# define SSL_R_UNKNOWN_DIGEST                             368\n# define SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE                  250\n# define SSL_R_UNKNOWN_PKEY_TYPE                          251\n# define SSL_R_UNKNOWN_PROTOCOL                           252\n# define SSL_R_UNKNOWN_SSL_VERSION                        254\n# define SSL_R_UNKNOWN_STATE                              255\n# define SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED       338\n# define SSL_R_UNSOLICITED_EXTENSION                      217\n# define SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM          257\n# define SSL_R_UNSUPPORTED_ELLIPTIC_CURVE                 315\n# define SSL_R_UNSUPPORTED_PROTOCOL                       258\n# define SSL_R_UNSUPPORTED_SSL_VERSION                    259\n# define SSL_R_UNSUPPORTED_STATUS_TYPE                    329\n# define SSL_R_USE_SRTP_NOT_NEGOTIATED                    369\n# define SSL_R_VERSION_TOO_HIGH                           166\n# define SSL_R_VERSION_TOO_LOW                            396\n# define SSL_R_WRONG_CERTIFICATE_TYPE                     383\n# define SSL_R_WRONG_CIPHER_RETURNED                      261\n# define SSL_R_WRONG_CURVE                                378\n# define SSL_R_WRONG_SIGNATURE_LENGTH                     264\n# define SSL_R_WRONG_SIGNATURE_SIZE                       265\n# define SSL_R_WRONG_SIGNATURE_TYPE                       370\n# define SSL_R_WRONG_SSL_VERSION                          266\n# define SSL_R_WRONG_VERSION_NUMBER                       267\n# define SSL_R_X509_LIB                                   268\n# define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS           269\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/stack.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_STACK_H\n# define HEADER_STACK_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct stack_st OPENSSL_STACK; /* Use STACK_OF(...) instead */\n\ntypedef int (*OPENSSL_sk_compfunc)(const void *, const void *);\ntypedef void (*OPENSSL_sk_freefunc)(void *);\ntypedef void *(*OPENSSL_sk_copyfunc)(const void *);\n\nint OPENSSL_sk_num(const OPENSSL_STACK *);\nvoid *OPENSSL_sk_value(const OPENSSL_STACK *, int);\n\nvoid *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data);\n\nOPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc cmp);\nOPENSSL_STACK *OPENSSL_sk_new_null(void);\nOPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n);\nint OPENSSL_sk_reserve(OPENSSL_STACK *st, int n);\nvoid OPENSSL_sk_free(OPENSSL_STACK *);\nvoid OPENSSL_sk_pop_free(OPENSSL_STACK *st, void (*func) (void *));\nOPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *,\n                                    OPENSSL_sk_copyfunc c,\n                                    OPENSSL_sk_freefunc f);\nint OPENSSL_sk_insert(OPENSSL_STACK *sk, const void *data, int where);\nvoid *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc);\nvoid *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);\nint OPENSSL_sk_find(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_find_ex(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_push(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_unshift(OPENSSL_STACK *st, const void *data);\nvoid *OPENSSL_sk_shift(OPENSSL_STACK *st);\nvoid *OPENSSL_sk_pop(OPENSSL_STACK *st);\nvoid OPENSSL_sk_zero(OPENSSL_STACK *st);\nOPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk,\n                                            OPENSSL_sk_compfunc cmp);\nOPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *st);\nvoid OPENSSL_sk_sort(OPENSSL_STACK *st);\nint OPENSSL_sk_is_sorted(const OPENSSL_STACK *st);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define _STACK OPENSSL_STACK\n#  define sk_num OPENSSL_sk_num\n#  define sk_value OPENSSL_sk_value\n#  define sk_set OPENSSL_sk_set\n#  define sk_new OPENSSL_sk_new\n#  define sk_new_null OPENSSL_sk_new_null\n#  define sk_free OPENSSL_sk_free\n#  define sk_pop_free OPENSSL_sk_pop_free\n#  define sk_deep_copy OPENSSL_sk_deep_copy\n#  define sk_insert OPENSSL_sk_insert\n#  define sk_delete OPENSSL_sk_delete\n#  define sk_delete_ptr OPENSSL_sk_delete_ptr\n#  define sk_find OPENSSL_sk_find\n#  define sk_find_ex OPENSSL_sk_find_ex\n#  define sk_push OPENSSL_sk_push\n#  define sk_unshift OPENSSL_sk_unshift\n#  define sk_shift OPENSSL_sk_shift\n#  define sk_pop OPENSSL_sk_pop\n#  define sk_zero OPENSSL_sk_zero\n#  define sk_set_cmp_func OPENSSL_sk_set_cmp_func\n#  define sk_dup OPENSSL_sk_dup\n#  define sk_sort OPENSSL_sk_sort\n#  define sk_is_sorted OPENSSL_sk_is_sorted\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/store.h",
    "content": "/*\n * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OSSL_STORE_H\n# define HEADER_OSSL_STORE_H\n\n# include <stdarg.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/pem.h>\n# include <openssl/storeerr.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*-\n *  The main OSSL_STORE functions.\n *  ------------------------------\n *\n *  These allow applications to open a channel to a resource with supported\n *  data (keys, certs, crls, ...), read the data a piece at a time and decide\n *  what to do with it, and finally close.\n */\n\ntypedef struct ossl_store_ctx_st OSSL_STORE_CTX;\n\n/*\n * Typedef for the OSSL_STORE_INFO post processing callback.  This can be used\n * to massage the given OSSL_STORE_INFO, or to drop it entirely (by returning\n * NULL).\n */\ntypedef OSSL_STORE_INFO *(*OSSL_STORE_post_process_info_fn)(OSSL_STORE_INFO *,\n                                                            void *);\n\n/*\n * Open a channel given a URI.  The given UI method will be used any time the\n * loader needs extra input, for example when a password or pin is needed, and\n * will be passed the same user data every time it's needed in this context.\n *\n * Returns a context reference which represents the channel to communicate\n * through.\n */\nOSSL_STORE_CTX *OSSL_STORE_open(const char *uri, const UI_METHOD *ui_method,\n                                void *ui_data,\n                                OSSL_STORE_post_process_info_fn post_process,\n                                void *post_process_data);\n\n/*\n * Control / fine tune the OSSL_STORE channel.  |cmd| determines what is to be\n * done, and depends on the underlying loader (use OSSL_STORE_get0_scheme to\n * determine which loader is used), except for common commands (see below).\n * Each command takes different arguments.\n */\nint OSSL_STORE_ctrl(OSSL_STORE_CTX *ctx, int cmd, ... /* args */);\nint OSSL_STORE_vctrl(OSSL_STORE_CTX *ctx, int cmd, va_list args);\n\n/*\n * Common ctrl commands that different loaders may choose to support.\n */\n/* int on = 0 or 1; STORE_ctrl(ctx, STORE_C_USE_SECMEM, &on); */\n# define OSSL_STORE_C_USE_SECMEM      1\n/* Where custom commands start */\n# define OSSL_STORE_C_CUSTOM_START    100\n\n/*\n * Read one data item (a key, a cert, a CRL) that is supported by the OSSL_STORE\n * functionality, given a context.\n * Returns a OSSL_STORE_INFO pointer, from which OpenSSL typed data can be\n * extracted with OSSL_STORE_INFO_get0_PKEY(), OSSL_STORE_INFO_get0_CERT(), ...\n * NULL is returned on error, which may include that the data found at the URI\n * can't be figured out for certain or is ambiguous.\n */\nOSSL_STORE_INFO *OSSL_STORE_load(OSSL_STORE_CTX *ctx);\n\n/*\n * Check if end of data (end of file) is reached\n * Returns 1 on end, 0 otherwise.\n */\nint OSSL_STORE_eof(OSSL_STORE_CTX *ctx);\n\n/*\n * Check if an error occurred\n * Returns 1 if it did, 0 otherwise.\n */\nint OSSL_STORE_error(OSSL_STORE_CTX *ctx);\n\n/*\n * Close the channel\n * Returns 1 on success, 0 on error.\n */\nint OSSL_STORE_close(OSSL_STORE_CTX *ctx);\n\n\n/*-\n *  Extracting OpenSSL types from and creating new OSSL_STORE_INFOs\n *  ---------------------------------------------------------------\n */\n\n/*\n * Types of data that can be ossl_stored in a OSSL_STORE_INFO.\n * OSSL_STORE_INFO_NAME is typically found when getting a listing of\n * available \"files\" / \"tokens\" / what have you.\n */\n# define OSSL_STORE_INFO_NAME           1   /* char * */\n# define OSSL_STORE_INFO_PARAMS         2   /* EVP_PKEY * */\n# define OSSL_STORE_INFO_PKEY           3   /* EVP_PKEY * */\n# define OSSL_STORE_INFO_CERT           4   /* X509 * */\n# define OSSL_STORE_INFO_CRL            5   /* X509_CRL * */\n\n/*\n * Functions to generate OSSL_STORE_INFOs, one function for each type we\n * support having in them, as well as a generic constructor.\n *\n * In all cases, ownership of the object is transferred to the OSSL_STORE_INFO\n * and will therefore be freed when the OSSL_STORE_INFO is freed.\n */\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_NAME(char *name);\nint OSSL_STORE_INFO_set0_NAME_description(OSSL_STORE_INFO *info, char *desc);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_PARAMS(EVP_PKEY *params);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_PKEY(EVP_PKEY *pkey);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_CERT(X509 *x509);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_CRL(X509_CRL *crl);\n\n/*\n * Functions to try to extract data from a OSSL_STORE_INFO.\n */\nint OSSL_STORE_INFO_get_type(const OSSL_STORE_INFO *info);\nconst char *OSSL_STORE_INFO_get0_NAME(const OSSL_STORE_INFO *info);\nchar *OSSL_STORE_INFO_get1_NAME(const OSSL_STORE_INFO *info);\nconst char *OSSL_STORE_INFO_get0_NAME_description(const OSSL_STORE_INFO *info);\nchar *OSSL_STORE_INFO_get1_NAME_description(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get0_PARAMS(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get1_PARAMS(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get0_PKEY(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get1_PKEY(const OSSL_STORE_INFO *info);\nX509 *OSSL_STORE_INFO_get0_CERT(const OSSL_STORE_INFO *info);\nX509 *OSSL_STORE_INFO_get1_CERT(const OSSL_STORE_INFO *info);\nX509_CRL *OSSL_STORE_INFO_get0_CRL(const OSSL_STORE_INFO *info);\nX509_CRL *OSSL_STORE_INFO_get1_CRL(const OSSL_STORE_INFO *info);\n\nconst char *OSSL_STORE_INFO_type_string(int type);\n\n/*\n * Free the OSSL_STORE_INFO\n */\nvoid OSSL_STORE_INFO_free(OSSL_STORE_INFO *info);\n\n\n/*-\n *  Functions to construct a search URI from a base URI and search criteria\n *  -----------------------------------------------------------------------\n */\n\n/* OSSL_STORE search types */\n# define OSSL_STORE_SEARCH_BY_NAME              1 /* subject in certs, issuer in CRLs */\n# define OSSL_STORE_SEARCH_BY_ISSUER_SERIAL     2\n# define OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT   3\n# define OSSL_STORE_SEARCH_BY_ALIAS             4\n\n/* To check what search types the scheme handler supports */\nint OSSL_STORE_supports_search(OSSL_STORE_CTX *ctx, int search_type);\n\n/* Search term constructors */\n/*\n * The input is considered to be owned by the caller, and must therefore\n * remain present throughout the lifetime of the returned OSSL_STORE_SEARCH\n */\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_name(X509_NAME *name);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_issuer_serial(X509_NAME *name,\n                                                      const ASN1_INTEGER\n                                                      *serial);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_key_fingerprint(const EVP_MD *digest,\n                                                        const unsigned char\n                                                        *bytes, size_t len);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_alias(const char *alias);\n\n/* Search term destructor */\nvoid OSSL_STORE_SEARCH_free(OSSL_STORE_SEARCH *search);\n\n/* Search term accessors */\nint OSSL_STORE_SEARCH_get_type(const OSSL_STORE_SEARCH *criterion);\nX509_NAME *OSSL_STORE_SEARCH_get0_name(OSSL_STORE_SEARCH *criterion);\nconst ASN1_INTEGER *OSSL_STORE_SEARCH_get0_serial(const OSSL_STORE_SEARCH\n                                                  *criterion);\nconst unsigned char *OSSL_STORE_SEARCH_get0_bytes(const OSSL_STORE_SEARCH\n                                                  *criterion, size_t *length);\nconst char *OSSL_STORE_SEARCH_get0_string(const OSSL_STORE_SEARCH *criterion);\nconst EVP_MD *OSSL_STORE_SEARCH_get0_digest(const OSSL_STORE_SEARCH *criterion);\n\n/*\n * Add search criterion and expected return type (which can be unspecified)\n * to the loading channel.  This MUST happen before the first OSSL_STORE_load().\n */\nint OSSL_STORE_expect(OSSL_STORE_CTX *ctx, int expected_type);\nint OSSL_STORE_find(OSSL_STORE_CTX *ctx, OSSL_STORE_SEARCH *search);\n\n\n/*-\n *  Function to register a loader for the given URI scheme.\n *  -------------------------------------------------------\n *\n *  The loader receives all the main components of an URI except for the\n *  scheme.\n */\n\ntypedef struct ossl_store_loader_st OSSL_STORE_LOADER;\nOSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme);\nconst ENGINE *OSSL_STORE_LOADER_get0_engine(const OSSL_STORE_LOADER *loader);\nconst char *OSSL_STORE_LOADER_get0_scheme(const OSSL_STORE_LOADER *loader);\n/* struct ossl_store_loader_ctx_st is defined differently by each loader */\ntypedef struct ossl_store_loader_ctx_st OSSL_STORE_LOADER_CTX;\ntypedef OSSL_STORE_LOADER_CTX *(*OSSL_STORE_open_fn)(const OSSL_STORE_LOADER\n                                                     *loader,\n                                                     const char *uri,\n                                                     const UI_METHOD *ui_method,\n                                                     void *ui_data);\nint OSSL_STORE_LOADER_set_open(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_open_fn open_function);\ntypedef int (*OSSL_STORE_ctrl_fn)(OSSL_STORE_LOADER_CTX *ctx, int cmd,\n                                  va_list args);\nint OSSL_STORE_LOADER_set_ctrl(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_ctrl_fn ctrl_function);\ntypedef int (*OSSL_STORE_expect_fn)(OSSL_STORE_LOADER_CTX *ctx, int expected);\nint OSSL_STORE_LOADER_set_expect(OSSL_STORE_LOADER *loader,\n                                 OSSL_STORE_expect_fn expect_function);\ntypedef int (*OSSL_STORE_find_fn)(OSSL_STORE_LOADER_CTX *ctx,\n                                  OSSL_STORE_SEARCH *criteria);\nint OSSL_STORE_LOADER_set_find(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_find_fn find_function);\ntypedef OSSL_STORE_INFO *(*OSSL_STORE_load_fn)(OSSL_STORE_LOADER_CTX *ctx,\n                                               const UI_METHOD *ui_method,\n                                               void *ui_data);\nint OSSL_STORE_LOADER_set_load(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_load_fn load_function);\ntypedef int (*OSSL_STORE_eof_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_eof(OSSL_STORE_LOADER *loader,\n                              OSSL_STORE_eof_fn eof_function);\ntypedef int (*OSSL_STORE_error_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_error(OSSL_STORE_LOADER *loader,\n                                OSSL_STORE_error_fn error_function);\ntypedef int (*OSSL_STORE_close_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_close(OSSL_STORE_LOADER *loader,\n                                OSSL_STORE_close_fn close_function);\nvoid OSSL_STORE_LOADER_free(OSSL_STORE_LOADER *loader);\n\nint OSSL_STORE_register_loader(OSSL_STORE_LOADER *loader);\nOSSL_STORE_LOADER *OSSL_STORE_unregister_loader(const char *scheme);\n\n/*-\n *  Functions to list STORE loaders\n *  -------------------------------\n */\nint OSSL_STORE_do_all_loaders(void (*do_function) (const OSSL_STORE_LOADER\n                                                   *loader, void *do_arg),\n                              void *do_arg);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/storeerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OSSL_STOREERR_H\n# define HEADER_OSSL_STOREERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_OSSL_STORE_strings(void);\n\n/*\n * OSSL_STORE function codes.\n */\n# define OSSL_STORE_F_FILE_CTRL                           129\n# define OSSL_STORE_F_FILE_FIND                           138\n# define OSSL_STORE_F_FILE_GET_PASS                       118\n# define OSSL_STORE_F_FILE_LOAD                           119\n# define OSSL_STORE_F_FILE_LOAD_TRY_DECODE                124\n# define OSSL_STORE_F_FILE_NAME_TO_URI                    126\n# define OSSL_STORE_F_FILE_OPEN                           120\n# define OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO           127\n# define OSSL_STORE_F_OSSL_STORE_EXPECT                   130\n# define OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT  128\n# define OSSL_STORE_F_OSSL_STORE_FIND                     131\n# define OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT          100\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT           101\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL            102\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME           103\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION 135\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS         104\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY           105\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT            106\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL             107\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED        123\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME            109\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS          110\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY            111\n# define OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION 134\n# define OSSL_STORE_F_OSSL_STORE_INIT_ONCE                112\n# define OSSL_STORE_F_OSSL_STORE_LOADER_NEW               113\n# define OSSL_STORE_F_OSSL_STORE_OPEN                     114\n# define OSSL_STORE_F_OSSL_STORE_OPEN_INT                 115\n# define OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT      117\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS          132\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL  133\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT 136\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME           137\n# define OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT    116\n# define OSSL_STORE_F_TRY_DECODE_PARAMS                   121\n# define OSSL_STORE_F_TRY_DECODE_PKCS12                   122\n# define OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED           125\n\n/*\n * OSSL_STORE reason codes.\n */\n# define OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE              107\n# define OSSL_STORE_R_BAD_PASSWORD_READ                   115\n# define OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC          113\n# define OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST 121\n# define OSSL_STORE_R_INVALID_SCHEME                      106\n# define OSSL_STORE_R_IS_NOT_A                            112\n# define OSSL_STORE_R_LOADER_INCOMPLETE                   116\n# define OSSL_STORE_R_LOADING_STARTED                     117\n# define OSSL_STORE_R_NOT_A_CERTIFICATE                   100\n# define OSSL_STORE_R_NOT_A_CRL                           101\n# define OSSL_STORE_R_NOT_A_KEY                           102\n# define OSSL_STORE_R_NOT_A_NAME                          103\n# define OSSL_STORE_R_NOT_PARAMETERS                      104\n# define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR           114\n# define OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE               108\n# define OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 119\n# define OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED 109\n# define OSSL_STORE_R_UNREGISTERED_SCHEME                 105\n# define OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE            110\n# define OSSL_STORE_R_UNSUPPORTED_OPERATION               118\n# define OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE             120\n# define OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED           111\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/symhacks.h",
    "content": "/*\n * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SYMHACKS_H\n# define HEADER_SYMHACKS_H\n\n# include <openssl/e_os2.h>\n\n/* Case insensitive linking causes problems.... */\n# if defined(OPENSSL_SYS_VMS)\n#  undef ERR_load_CRYPTO_strings\n#  define ERR_load_CRYPTO_strings                 ERR_load_CRYPTOlib_strings\n#  undef OCSP_crlID_new\n#  define OCSP_crlID_new                          OCSP_crlID2_new\n\n#  undef d2i_ECPARAMETERS\n#  define d2i_ECPARAMETERS                        d2i_UC_ECPARAMETERS\n#  undef i2d_ECPARAMETERS\n#  define i2d_ECPARAMETERS                        i2d_UC_ECPARAMETERS\n#  undef d2i_ECPKPARAMETERS\n#  define d2i_ECPKPARAMETERS                      d2i_UC_ECPKPARAMETERS\n#  undef i2d_ECPKPARAMETERS\n#  define i2d_ECPKPARAMETERS                      i2d_UC_ECPKPARAMETERS\n\n/* This one clashes with CMS_data_create */\n#  undef cms_Data_create\n#  define cms_Data_create                         priv_cms_Data_create\n\n# endif\n\n#endif                          /* ! defined HEADER_VMS_IDHACKS_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/tls1.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n * Copyright 2005 Nokia. All rights reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TLS1_H\n# define HEADER_TLS1_H\n\n# include <openssl/buffer.h>\n# include <openssl/x509.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Default security level if not overridden at config time */\n# ifndef OPENSSL_TLS_SECURITY_LEVEL\n#  define OPENSSL_TLS_SECURITY_LEVEL 1\n# endif\n\n# define TLS1_VERSION                    0x0301\n# define TLS1_1_VERSION                  0x0302\n# define TLS1_2_VERSION                  0x0303\n# define TLS1_3_VERSION                  0x0304\n# define TLS_MAX_VERSION                 TLS1_3_VERSION\n\n/* Special value for method supporting multiple versions */\n# define TLS_ANY_VERSION                 0x10000\n\n# define TLS1_VERSION_MAJOR              0x03\n# define TLS1_VERSION_MINOR              0x01\n\n# define TLS1_1_VERSION_MAJOR            0x03\n# define TLS1_1_VERSION_MINOR            0x02\n\n# define TLS1_2_VERSION_MAJOR            0x03\n# define TLS1_2_VERSION_MINOR            0x03\n\n# define TLS1_get_version(s) \\\n        ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0)\n\n# define TLS1_get_client_version(s) \\\n        ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0)\n\n# define TLS1_AD_DECRYPTION_FAILED       21\n# define TLS1_AD_RECORD_OVERFLOW         22\n# define TLS1_AD_UNKNOWN_CA              48/* fatal */\n# define TLS1_AD_ACCESS_DENIED           49/* fatal */\n# define TLS1_AD_DECODE_ERROR            50/* fatal */\n# define TLS1_AD_DECRYPT_ERROR           51\n# define TLS1_AD_EXPORT_RESTRICTION      60/* fatal */\n# define TLS1_AD_PROTOCOL_VERSION        70/* fatal */\n# define TLS1_AD_INSUFFICIENT_SECURITY   71/* fatal */\n# define TLS1_AD_INTERNAL_ERROR          80/* fatal */\n# define TLS1_AD_INAPPROPRIATE_FALLBACK  86/* fatal */\n# define TLS1_AD_USER_CANCELLED          90\n# define TLS1_AD_NO_RENEGOTIATION        100\n/* TLSv1.3 alerts */\n# define TLS13_AD_MISSING_EXTENSION      109 /* fatal */\n# define TLS13_AD_CERTIFICATE_REQUIRED   116 /* fatal */\n/* codes 110-114 are from RFC3546 */\n# define TLS1_AD_UNSUPPORTED_EXTENSION   110\n# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111\n# define TLS1_AD_UNRECOGNIZED_NAME       112\n# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113\n# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114\n# define TLS1_AD_UNKNOWN_PSK_IDENTITY    115/* fatal */\n# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */\n\n/* ExtensionType values from RFC3546 / RFC4366 / RFC6066 */\n# define TLSEXT_TYPE_server_name                 0\n# define TLSEXT_TYPE_max_fragment_length         1\n# define TLSEXT_TYPE_client_certificate_url      2\n# define TLSEXT_TYPE_trusted_ca_keys             3\n# define TLSEXT_TYPE_truncated_hmac              4\n# define TLSEXT_TYPE_status_request              5\n/* ExtensionType values from RFC4681 */\n# define TLSEXT_TYPE_user_mapping                6\n/* ExtensionType values from RFC5878 */\n# define TLSEXT_TYPE_client_authz                7\n# define TLSEXT_TYPE_server_authz                8\n/* ExtensionType values from RFC6091 */\n# define TLSEXT_TYPE_cert_type           9\n\n/* ExtensionType values from RFC4492 */\n/*\n * Prior to TLSv1.3 the supported_groups extension was known as\n * elliptic_curves\n */\n# define TLSEXT_TYPE_supported_groups            10\n# define TLSEXT_TYPE_elliptic_curves             TLSEXT_TYPE_supported_groups\n# define TLSEXT_TYPE_ec_point_formats            11\n\n\n/* ExtensionType value from RFC5054 */\n# define TLSEXT_TYPE_srp                         12\n\n/* ExtensionType values from RFC5246 */\n# define TLSEXT_TYPE_signature_algorithms        13\n\n/* ExtensionType value from RFC5764 */\n# define TLSEXT_TYPE_use_srtp    14\n\n/* ExtensionType value from RFC5620 */\n# define TLSEXT_TYPE_heartbeat   15\n\n/* ExtensionType value from RFC7301 */\n# define TLSEXT_TYPE_application_layer_protocol_negotiation 16\n\n/*\n * Extension type for Certificate Transparency\n * https://tools.ietf.org/html/rfc6962#section-3.3.1\n */\n# define TLSEXT_TYPE_signed_certificate_timestamp    18\n\n/*\n * ExtensionType value for TLS padding extension.\n * http://tools.ietf.org/html/draft-agl-tls-padding\n */\n# define TLSEXT_TYPE_padding     21\n\n/* ExtensionType value from RFC7366 */\n# define TLSEXT_TYPE_encrypt_then_mac    22\n\n/* ExtensionType value from RFC7627 */\n# define TLSEXT_TYPE_extended_master_secret      23\n\n/* ExtensionType value from RFC4507 */\n# define TLSEXT_TYPE_session_ticket              35\n\n/* As defined for TLS1.3 */\n# define TLSEXT_TYPE_psk                         41\n# define TLSEXT_TYPE_early_data                  42\n# define TLSEXT_TYPE_supported_versions          43\n# define TLSEXT_TYPE_cookie                      44\n# define TLSEXT_TYPE_psk_kex_modes               45\n# define TLSEXT_TYPE_certificate_authorities     47\n# define TLSEXT_TYPE_post_handshake_auth         49\n# define TLSEXT_TYPE_signature_algorithms_cert   50\n# define TLSEXT_TYPE_key_share                   51\n\n/* Temporary extension type */\n# define TLSEXT_TYPE_renegotiate                 0xff01\n\n# ifndef OPENSSL_NO_NEXTPROTONEG\n/* This is not an IANA defined extension number */\n#  define TLSEXT_TYPE_next_proto_neg              13172\n# endif\n\n/* NameType value from RFC3546 */\n# define TLSEXT_NAMETYPE_host_name 0\n/* status request value from RFC3546 */\n# define TLSEXT_STATUSTYPE_ocsp 1\n\n/* ECPointFormat values from RFC4492 */\n# define TLSEXT_ECPOINTFORMAT_first                      0\n# define TLSEXT_ECPOINTFORMAT_uncompressed               0\n# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime  1\n# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2  2\n# define TLSEXT_ECPOINTFORMAT_last                       2\n\n/* Signature and hash algorithms from RFC5246 */\n# define TLSEXT_signature_anonymous                      0\n# define TLSEXT_signature_rsa                            1\n# define TLSEXT_signature_dsa                            2\n# define TLSEXT_signature_ecdsa                          3\n# define TLSEXT_signature_gostr34102001                  237\n# define TLSEXT_signature_gostr34102012_256              238\n# define TLSEXT_signature_gostr34102012_512              239\n\n/* Total number of different signature algorithms */\n# define TLSEXT_signature_num                            7\n\n# define TLSEXT_hash_none                                0\n# define TLSEXT_hash_md5                                 1\n# define TLSEXT_hash_sha1                                2\n# define TLSEXT_hash_sha224                              3\n# define TLSEXT_hash_sha256                              4\n# define TLSEXT_hash_sha384                              5\n# define TLSEXT_hash_sha512                              6\n# define TLSEXT_hash_gostr3411                           237\n# define TLSEXT_hash_gostr34112012_256                   238\n# define TLSEXT_hash_gostr34112012_512                   239\n\n/* Total number of different digest algorithms */\n\n# define TLSEXT_hash_num                                 10\n\n/* Flag set for unrecognised algorithms */\n# define TLSEXT_nid_unknown                              0x1000000\n\n/* ECC curves */\n\n# define TLSEXT_curve_P_256                              23\n# define TLSEXT_curve_P_384                              24\n\n/* OpenSSL value to disable maximum fragment length extension */\n# define TLSEXT_max_fragment_length_DISABLED    0\n/* Allowed values for max fragment length extension */\n# define TLSEXT_max_fragment_length_512         1\n# define TLSEXT_max_fragment_length_1024        2\n# define TLSEXT_max_fragment_length_2048        3\n# define TLSEXT_max_fragment_length_4096        4\n\nint SSL_CTX_set_tlsext_max_fragment_length(SSL_CTX *ctx, uint8_t mode);\nint SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);\n\n# define TLSEXT_MAXLEN_host_name 255\n\n__owur const char *SSL_get_servername(const SSL *s, const int type);\n__owur int SSL_get_servername_type(const SSL *s);\n/*\n * SSL_export_keying_material exports a value derived from the master secret,\n * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and\n * optional context. (Since a zero length context is allowed, the |use_context|\n * flag controls whether a context is included.) It returns 1 on success and\n * 0 or -1 otherwise.\n */\n__owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,\n                                      const char *label, size_t llen,\n                                      const unsigned char *context,\n                                      size_t contextlen, int use_context);\n\n/*\n * SSL_export_keying_material_early exports a value derived from the\n * early exporter master secret, as specified in\n * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes\n * |olen| bytes to |out| given a label and optional context. It\n * returns 1 on success and 0 otherwise.\n */\n__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out,\n                                            size_t olen, const char *label,\n                                            size_t llen,\n                                            const unsigned char *context,\n                                            size_t contextlen);\n\nint SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);\nint SSL_get_signature_type_nid(const SSL *s, int *pnid);\n\nint SSL_get_sigalgs(SSL *s, int idx,\n                    int *psign, int *phash, int *psignandhash,\n                    unsigned char *rsig, unsigned char *rhash);\n\nint SSL_get_shared_sigalgs(SSL *s, int idx,\n                           int *psign, int *phash, int *psignandhash,\n                           unsigned char *rsig, unsigned char *rhash);\n\n__owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain);\n\n# define SSL_set_tlsext_host_name(s,name) \\\n        SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,\\\n                (void *)name)\n\n# define SSL_set_tlsext_debug_callback(ssl, cb) \\\n        SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_set_tlsext_debug_arg(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)\n\n# define SSL_get_tlsext_status_type(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)\n\n# define SSL_set_tlsext_status_type(ssl, type) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)\n\n# define SSL_get_tlsext_status_exts(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg)\n\n# define SSL_set_tlsext_status_exts(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg)\n\n# define SSL_get_tlsext_status_ids(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg)\n\n# define SSL_set_tlsext_status_ids(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg)\n\n# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg)\n\n# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg)\n\n# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \\\n        SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_TLSEXT_ERR_OK 0\n# define SSL_TLSEXT_ERR_ALERT_WARNING 1\n# define SSL_TLSEXT_ERR_ALERT_FATAL 2\n# define SSL_TLSEXT_ERR_NOACK 3\n\n# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg)\n\n# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys)\n# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys)\n\n# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb)\n# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \\\n        SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)\n# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)\n\n# define SSL_CTX_set_tlsext_status_type(ssl, type) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)\n\n# define SSL_CTX_get_tlsext_status_type(ssl) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)\n\n# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \\\n        SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\\\n                (void (*)(void))cb)\n\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_DTLSEXT_HB_ENABLED                   0x01\n#  define SSL_DTLSEXT_HB_DONT_SEND_REQUESTS        0x02\n#  define SSL_DTLSEXT_HB_DONT_RECV_REQUESTS        0x04\n#  define SSL_get_dtlsext_heartbeat_pending(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING,0,NULL)\n#  define SSL_set_dtlsext_heartbeat_no_requests(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS,arg,NULL)\n\n#  if OPENSSL_API_COMPAT < 0x10100000L\n#   define SSL_CTRL_TLS_EXT_SEND_HEARTBEAT \\\n        SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT\n#   define SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING \\\n        SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING\n#   define SSL_CTRL_SET_TLS_EXT_HEARTBEAT_NO_REQUESTS \\\n        SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS\n#   define SSL_TLSEXT_HB_ENABLED \\\n        SSL_DTLSEXT_HB_ENABLED\n#   define SSL_TLSEXT_HB_DONT_SEND_REQUESTS \\\n        SSL_DTLSEXT_HB_DONT_SEND_REQUESTS\n#   define SSL_TLSEXT_HB_DONT_RECV_REQUESTS \\\n        SSL_DTLSEXT_HB_DONT_RECV_REQUESTS\n#   define SSL_get_tlsext_heartbeat_pending(ssl) \\\n        SSL_get_dtlsext_heartbeat_pending(ssl)\n#   define SSL_set_tlsext_heartbeat_no_requests(ssl, arg) \\\n        SSL_set_dtlsext_heartbeat_no_requests(ssl,arg)\n#  endif\n# endif\n\n/* PSK ciphersuites from 4279 */\n# define TLS1_CK_PSK_WITH_RC4_128_SHA                    0x0300008A\n# define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA               0x0300008B\n# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA                0x0300008C\n# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA                0x0300008D\n# define TLS1_CK_DHE_PSK_WITH_RC4_128_SHA                0x0300008E\n# define TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA           0x0300008F\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA            0x03000090\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA            0x03000091\n# define TLS1_CK_RSA_PSK_WITH_RC4_128_SHA                0x03000092\n# define TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA           0x03000093\n# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA            0x03000094\n# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA            0x03000095\n\n/* PSK ciphersuites from 5487 */\n# define TLS1_CK_PSK_WITH_AES_128_GCM_SHA256             0x030000A8\n# define TLS1_CK_PSK_WITH_AES_256_GCM_SHA384             0x030000A9\n# define TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256         0x030000AA\n# define TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384         0x030000AB\n# define TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256         0x030000AC\n# define TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384         0x030000AD\n# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA256             0x030000AE\n# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA384             0x030000AF\n# define TLS1_CK_PSK_WITH_NULL_SHA256                    0x030000B0\n# define TLS1_CK_PSK_WITH_NULL_SHA384                    0x030000B1\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256         0x030000B2\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384         0x030000B3\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA256                0x030000B4\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA384                0x030000B5\n# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256         0x030000B6\n# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384         0x030000B7\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA256                0x030000B8\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA384                0x030000B9\n\n/* NULL PSK ciphersuites from RFC4785 */\n# define TLS1_CK_PSK_WITH_NULL_SHA                       0x0300002C\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA                   0x0300002D\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA                   0x0300002E\n\n/* AES ciphersuites from RFC3268 */\n# define TLS1_CK_RSA_WITH_AES_128_SHA                    0x0300002F\n# define TLS1_CK_DH_DSS_WITH_AES_128_SHA                 0x03000030\n# define TLS1_CK_DH_RSA_WITH_AES_128_SHA                 0x03000031\n# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA                0x03000032\n# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA                0x03000033\n# define TLS1_CK_ADH_WITH_AES_128_SHA                    0x03000034\n# define TLS1_CK_RSA_WITH_AES_256_SHA                    0x03000035\n# define TLS1_CK_DH_DSS_WITH_AES_256_SHA                 0x03000036\n# define TLS1_CK_DH_RSA_WITH_AES_256_SHA                 0x03000037\n# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA                0x03000038\n# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA                0x03000039\n# define TLS1_CK_ADH_WITH_AES_256_SHA                    0x0300003A\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_CK_RSA_WITH_NULL_SHA256                    0x0300003B\n# define TLS1_CK_RSA_WITH_AES_128_SHA256                 0x0300003C\n# define TLS1_CK_RSA_WITH_AES_256_SHA256                 0x0300003D\n# define TLS1_CK_DH_DSS_WITH_AES_128_SHA256              0x0300003E\n# define TLS1_CK_DH_RSA_WITH_AES_128_SHA256              0x0300003F\n# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256             0x03000040\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA           0x03000041\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA        0x03000042\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA        0x03000043\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA       0x03000044\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA       0x03000045\n# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA           0x03000046\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256             0x03000067\n# define TLS1_CK_DH_DSS_WITH_AES_256_SHA256              0x03000068\n# define TLS1_CK_DH_RSA_WITH_AES_256_SHA256              0x03000069\n# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256             0x0300006A\n# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256             0x0300006B\n# define TLS1_CK_ADH_WITH_AES_128_SHA256                 0x0300006C\n# define TLS1_CK_ADH_WITH_AES_256_SHA256                 0x0300006D\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA           0x03000084\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA        0x03000085\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA        0x03000086\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA       0x03000087\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA       0x03000088\n# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA           0x03000089\n\n/* SEED ciphersuites from RFC4162 */\n# define TLS1_CK_RSA_WITH_SEED_SHA                       0x03000096\n# define TLS1_CK_DH_DSS_WITH_SEED_SHA                    0x03000097\n# define TLS1_CK_DH_RSA_WITH_SEED_SHA                    0x03000098\n# define TLS1_CK_DHE_DSS_WITH_SEED_SHA                   0x03000099\n# define TLS1_CK_DHE_RSA_WITH_SEED_SHA                   0x0300009A\n# define TLS1_CK_ADH_WITH_SEED_SHA                       0x0300009B\n\n/* TLS v1.2 GCM ciphersuites from RFC5288 */\n# define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256             0x0300009C\n# define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384             0x0300009D\n# define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256         0x0300009E\n# define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384         0x0300009F\n# define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256          0x030000A0\n# define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384          0x030000A1\n# define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256         0x030000A2\n# define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384         0x030000A3\n# define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256          0x030000A4\n# define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384          0x030000A5\n# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256             0x030000A6\n# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384             0x030000A7\n\n/* CCM ciphersuites from RFC6655 */\n# define TLS1_CK_RSA_WITH_AES_128_CCM                    0x0300C09C\n# define TLS1_CK_RSA_WITH_AES_256_CCM                    0x0300C09D\n# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM                0x0300C09E\n# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM                0x0300C09F\n# define TLS1_CK_RSA_WITH_AES_128_CCM_8                  0x0300C0A0\n# define TLS1_CK_RSA_WITH_AES_256_CCM_8                  0x0300C0A1\n# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8              0x0300C0A2\n# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8              0x0300C0A3\n# define TLS1_CK_PSK_WITH_AES_128_CCM                    0x0300C0A4\n# define TLS1_CK_PSK_WITH_AES_256_CCM                    0x0300C0A5\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM                0x0300C0A6\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM                0x0300C0A7\n# define TLS1_CK_PSK_WITH_AES_128_CCM_8                  0x0300C0A8\n# define TLS1_CK_PSK_WITH_AES_256_CCM_8                  0x0300C0A9\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8              0x0300C0AA\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8              0x0300C0AB\n\n/* CCM ciphersuites from RFC7251 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM            0x0300C0AC\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM            0x0300C0AD\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8          0x0300C0AE\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8          0x0300C0AF\n\n/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256                0x030000BA\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256             0x030000BB\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256             0x030000BC\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256            0x030000BD\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256            0x030000BE\n# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256                0x030000BF\n\n# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256                0x030000C0\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256             0x030000C1\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256             0x030000C2\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256            0x030000C3\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256            0x030000C4\n# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256                0x030000C5\n\n/* ECC ciphersuites from RFC4492 */\n# define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA                0x0300C001\n# define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA             0x0300C002\n# define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA        0x0300C003\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA         0x0300C004\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA         0x0300C005\n\n# define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA               0x0300C006\n# define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA            0x0300C007\n# define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA       0x0300C008\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA        0x0300C009\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA        0x0300C00A\n\n# define TLS1_CK_ECDH_RSA_WITH_NULL_SHA                  0x0300C00B\n# define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA               0x0300C00C\n# define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA          0x0300C00D\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA           0x0300C00E\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA           0x0300C00F\n\n# define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA                 0x0300C010\n# define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA              0x0300C011\n# define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA         0x0300C012\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA          0x0300C013\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA          0x0300C014\n\n# define TLS1_CK_ECDH_anon_WITH_NULL_SHA                 0x0300C015\n# define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA              0x0300C016\n# define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA         0x0300C017\n# define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA          0x0300C018\n# define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA          0x0300C019\n\n/* SRP ciphersuites from RFC 5054 */\n# define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA           0x0300C01A\n# define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA       0x0300C01B\n# define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA       0x0300C01C\n# define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA            0x0300C01D\n# define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA        0x0300C01E\n# define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA        0x0300C01F\n# define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA            0x0300C020\n# define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA        0x0300C021\n# define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA        0x0300C022\n\n/* ECDH HMAC based ciphersuites from RFC5289 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256         0x0300C023\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384         0x0300C024\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256          0x0300C025\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384          0x0300C026\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256           0x0300C027\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384           0x0300C028\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256            0x0300C029\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384            0x0300C02A\n\n/* ECDH GCM based ciphersuites from RFC5289 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256     0x0300C02B\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384     0x0300C02C\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256      0x0300C02D\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384      0x0300C02E\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256       0x0300C02F\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384       0x0300C030\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256        0x0300C031\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384        0x0300C032\n\n/* ECDHE PSK ciphersuites from RFC5489 */\n# define TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA              0x0300C033\n# define TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA         0x0300C034\n# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA          0x0300C035\n# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA          0x0300C036\n\n# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256       0x0300C037\n# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384       0x0300C038\n\n/* NULL PSK ciphersuites from RFC4785 */\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA                 0x0300C039\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256              0x0300C03A\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384              0x0300C03B\n\n/* Camellia-CBC ciphersuites from RFC6367 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C072\n# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C073\n# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  0x0300C074\n# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  0x0300C075\n# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   0x0300C076\n# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   0x0300C077\n# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    0x0300C078\n# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    0x0300C079\n\n# define TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256         0x0300C094\n# define TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384         0x0300C095\n# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256     0x0300C096\n# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384     0x0300C097\n# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256     0x0300C098\n# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384     0x0300C099\n# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   0x0300C09A\n# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   0x0300C09B\n\n/* draft-ietf-tls-chacha20-poly1305-03 */\n# define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305         0x0300CCA8\n# define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305       0x0300CCA9\n# define TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305           0x0300CCAA\n# define TLS1_CK_PSK_WITH_CHACHA20_POLY1305               0x0300CCAB\n# define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305         0x0300CCAC\n# define TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305           0x0300CCAD\n# define TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305           0x0300CCAE\n\n/* TLS v1.3 ciphersuites */\n# define TLS1_3_CK_AES_128_GCM_SHA256                     0x03001301\n# define TLS1_3_CK_AES_256_GCM_SHA384                     0x03001302\n# define TLS1_3_CK_CHACHA20_POLY1305_SHA256               0x03001303\n# define TLS1_3_CK_AES_128_CCM_SHA256                     0x03001304\n# define TLS1_3_CK_AES_128_CCM_8_SHA256                   0x03001305\n\n/* Aria ciphersuites from RFC6209 */\n# define TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256             0x0300C050\n# define TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384             0x0300C051\n# define TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256         0x0300C052\n# define TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384         0x0300C053\n# define TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256          0x0300C054\n# define TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384          0x0300C055\n# define TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256         0x0300C056\n# define TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384         0x0300C057\n# define TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256          0x0300C058\n# define TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384          0x0300C059\n# define TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256         0x0300C05A\n# define TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384         0x0300C05B\n# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256     0x0300C05C\n# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384     0x0300C05D\n# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256      0x0300C05E\n# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384      0x0300C05F\n# define TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256       0x0300C060\n# define TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384       0x0300C061\n# define TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256        0x0300C062\n# define TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384        0x0300C063\n# define TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256             0x0300C06A\n# define TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384             0x0300C06B\n# define TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256         0x0300C06C\n# define TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384         0x0300C06D\n# define TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256         0x0300C06E\n# define TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384         0x0300C06F\n\n/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */\n# define TLS1_RFC_RSA_WITH_AES_128_SHA                   \"TLS_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA               \"TLS_DHE_DSS_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA               \"TLS_DHE_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_AES_128_SHA                   \"TLS_DH_anon_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_AES_256_SHA                   \"TLS_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA               \"TLS_DHE_DSS_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA               \"TLS_DHE_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_AES_256_SHA                   \"TLS_DH_anon_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_NULL_SHA256                   \"TLS_RSA_WITH_NULL_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_128_SHA256                \"TLS_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_256_SHA256                \"TLS_RSA_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256            \"TLS_DHE_DSS_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256            \"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256            \"TLS_DHE_DSS_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256            \"TLS_DHE_RSA_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_128_SHA256                \"TLS_DH_anon_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_256_SHA256                \"TLS_DH_anon_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256            \"TLS_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384            \"TLS_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256        \"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384        \"TLS_DHE_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256        \"TLS_DHE_DSS_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384        \"TLS_DHE_DSS_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256            \"TLS_DH_anon_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384            \"TLS_DH_anon_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_WITH_AES_128_CCM                   \"TLS_RSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_RSA_WITH_AES_256_CCM                   \"TLS_RSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM               \"TLS_DHE_RSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM               \"TLS_DHE_RSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_RSA_WITH_AES_128_CCM_8                 \"TLS_RSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_RSA_WITH_AES_256_CCM_8                 \"TLS_RSA_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8             \"TLS_DHE_RSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8             \"TLS_DHE_RSA_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_PSK_WITH_AES_128_CCM                   \"TLS_PSK_WITH_AES_128_CCM\"\n# define TLS1_RFC_PSK_WITH_AES_256_CCM                   \"TLS_PSK_WITH_AES_256_CCM\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM               \"TLS_DHE_PSK_WITH_AES_128_CCM\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM               \"TLS_DHE_PSK_WITH_AES_256_CCM\"\n# define TLS1_RFC_PSK_WITH_AES_128_CCM_8                 \"TLS_PSK_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_PSK_WITH_AES_256_CCM_8                 \"TLS_PSK_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8             \"TLS_PSK_DHE_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8             \"TLS_PSK_DHE_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM           \"TLS_ECDHE_ECDSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM           \"TLS_ECDHE_ECDSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8         \"TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8         \"TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8\"\n# define TLS1_3_RFC_AES_128_GCM_SHA256                   \"TLS_AES_128_GCM_SHA256\"\n# define TLS1_3_RFC_AES_256_GCM_SHA384                   \"TLS_AES_256_GCM_SHA384\"\n# define TLS1_3_RFC_CHACHA20_POLY1305_SHA256             \"TLS_CHACHA20_POLY1305_SHA256\"\n# define TLS1_3_RFC_AES_128_CCM_SHA256                   \"TLS_AES_128_CCM_SHA256\"\n# define TLS1_3_RFC_AES_128_CCM_8_SHA256                 \"TLS_AES_128_CCM_8_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA              \"TLS_ECDHE_ECDSA_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      \"TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA                \"TLS_ECDHE_RSA_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA        \"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA         \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA         \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_NULL_SHA                \"TLS_ECDH_anon_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA        \"TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA         \"TLS_ECDH_anon_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA         \"TLS_ECDH_anon_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256        \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384        \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256          \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384          \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256    \"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384    \"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256      \"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384      \"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA                      \"TLS_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA                  \"TLS_DHE_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA                  \"TLS_RSA_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA              \"TLS_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA               \"TLS_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA               \"TLS_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA          \"TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA           \"TLS_DHE_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA           \"TLS_DHE_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA          \"TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA           \"TLS_RSA_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA           \"TLS_RSA_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256            \"TLS_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384            \"TLS_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256        \"TLS_DHE_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384        \"TLS_DHE_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256        \"TLS_RSA_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384        \"TLS_RSA_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256            \"TLS_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384            \"TLS_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA256                   \"TLS_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA384                   \"TLS_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256        \"TLS_DHE_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384        \"TLS_DHE_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA256               \"TLS_DHE_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA384               \"TLS_DHE_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256        \"TLS_RSA_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384        \"TLS_RSA_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA256               \"TLS_RSA_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA384               \"TLS_RSA_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA        \"TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA         \"TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA         \"TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256      \"TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384      \"TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA                \"TLS_ECDHE_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256             \"TLS_ECDHE_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384             \"TLS_ECDHE_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA          \"TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA      \"TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA      \"TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA           \"TLS_SRP_SHA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA       \"TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA       \"TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA           \"TLS_SRP_SHA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA       \"TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA       \"TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305         \"TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305       \"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305     \"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_PSK_WITH_CHACHA20_POLY1305             \"TLS_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305       \"TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305         \"TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305         \"TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256       \"TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256   \"TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256   \"TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256       \"TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA          \"TLS_RSA_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      \"TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      \"TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA          \"TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA          \"TLS_RSA_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      \"TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      \"TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA          \"TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384       \"TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   \"TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384   \"TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_WITH_SEED_SHA                      \"TLS_RSA_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_SEED_SHA                  \"TLS_DHE_DSS_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_SEED_SHA                  \"TLS_DHE_RSA_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_SEED_SHA                      \"TLS_DH_anon_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA             \"TLS_ECDHE_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA             \"TLS_ECDH_anon_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA           \"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA             \"TLS_ECDHE_RSA_WITH_RC4_128_SHA\"\n# define TLS1_RFC_PSK_WITH_RC4_128_SHA                   \"TLS_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA               \"TLS_RSA_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA               \"TLS_DHE_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256           \"TLS_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384           \"TLS_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256        \"TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384        \"TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256        \"TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384        \"TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256       \"TLS_DH_anon_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384       \"TLS_DH_anon_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256   \"TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384   \"TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256    \"TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384    \"TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256     \"TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384     \"TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256      \"TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384      \"TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256           \"TLS_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384           \"TLS_PSK_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256       \"TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384       \"TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384\"\n\n\n/*\n * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE\n * ciphers names with \"EDH\" instead of \"DHE\".  Going forward, we should be\n * using DHE everywhere, though we may indefinitely maintain aliases for\n * users or configurations that used \"EDH\"\n */\n# define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA               \"DHE-DSS-RC4-SHA\"\n\n# define TLS1_TXT_PSK_WITH_NULL_SHA                      \"PSK-NULL-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA                  \"DHE-PSK-NULL-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA                  \"RSA-PSK-NULL-SHA\"\n\n/* AES ciphersuites from RFC3268 */\n# define TLS1_TXT_RSA_WITH_AES_128_SHA                   \"AES128-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA                \"DH-DSS-AES128-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA                \"DH-RSA-AES128-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA               \"DHE-DSS-AES128-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA               \"DHE-RSA-AES128-SHA\"\n# define TLS1_TXT_ADH_WITH_AES_128_SHA                   \"ADH-AES128-SHA\"\n\n# define TLS1_TXT_RSA_WITH_AES_256_SHA                   \"AES256-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA                \"DH-DSS-AES256-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA                \"DH-RSA-AES256-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA               \"DHE-DSS-AES256-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA               \"DHE-RSA-AES256-SHA\"\n# define TLS1_TXT_ADH_WITH_AES_256_SHA                   \"ADH-AES256-SHA\"\n\n/* ECC ciphersuites from RFC4492 */\n# define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA               \"ECDH-ECDSA-NULL-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA            \"ECDH-ECDSA-RC4-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA       \"ECDH-ECDSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA        \"ECDH-ECDSA-AES128-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA        \"ECDH-ECDSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA              \"ECDHE-ECDSA-NULL-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA           \"ECDHE-ECDSA-RC4-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      \"ECDHE-ECDSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       \"ECDHE-ECDSA-AES128-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       \"ECDHE-ECDSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA                 \"ECDH-RSA-NULL-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA              \"ECDH-RSA-RC4-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA         \"ECDH-RSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA          \"ECDH-RSA-AES128-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA          \"ECDH-RSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA                \"ECDHE-RSA-NULL-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA             \"ECDHE-RSA-RC4-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA        \"ECDHE-RSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA         \"ECDHE-RSA-AES128-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA         \"ECDHE-RSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDH_anon_WITH_NULL_SHA                \"AECDH-NULL-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA             \"AECDH-RC4-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA        \"AECDH-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA         \"AECDH-AES128-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA         \"AECDH-AES256-SHA\"\n\n/* PSK ciphersuites from RFC 4279 */\n# define TLS1_TXT_PSK_WITH_RC4_128_SHA                   \"PSK-RC4-SHA\"\n# define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA              \"PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA               \"PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA               \"PSK-AES256-CBC-SHA\"\n\n# define TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA               \"DHE-PSK-RC4-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA          \"DHE-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA           \"DHE-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA           \"DHE-PSK-AES256-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA               \"RSA-PSK-RC4-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA          \"RSA-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA           \"RSA-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA           \"RSA-PSK-AES256-CBC-SHA\"\n\n/* PSK ciphersuites from RFC 5487 */\n# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256            \"PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384            \"PSK-AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256        \"DHE-PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384        \"DHE-PSK-AES256-GCM-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256        \"RSA-PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384        \"RSA-PSK-AES256-GCM-SHA384\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256            \"PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384            \"PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_PSK_WITH_NULL_SHA256                   \"PSK-NULL-SHA256\"\n# define TLS1_TXT_PSK_WITH_NULL_SHA384                   \"PSK-NULL-SHA384\"\n\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256        \"DHE-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384        \"DHE-PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA256               \"DHE-PSK-NULL-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA384               \"DHE-PSK-NULL-SHA384\"\n\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256        \"RSA-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384        \"RSA-PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA256               \"RSA-PSK-NULL-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA384               \"RSA-PSK-NULL-SHA384\"\n\n/* SRP ciphersuite from RFC 5054 */\n# define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA          \"SRP-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA      \"SRP-RSA-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA      \"SRP-DSS-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA           \"SRP-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA       \"SRP-RSA-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA       \"SRP-DSS-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA           \"SRP-AES-256-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA       \"SRP-RSA-AES-256-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA       \"SRP-DSS-AES-256-CBC-SHA\"\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA          \"CAMELLIA128-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA       \"DH-DSS-CAMELLIA128-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA       \"DH-RSA-CAMELLIA128-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      \"DHE-DSS-CAMELLIA128-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      \"DHE-RSA-CAMELLIA128-SHA\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA          \"ADH-CAMELLIA128-SHA\"\n\n# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA          \"CAMELLIA256-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA       \"DH-DSS-CAMELLIA256-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA       \"DH-RSA-CAMELLIA256-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      \"DHE-DSS-CAMELLIA256-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      \"DHE-RSA-CAMELLIA256-SHA\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA          \"ADH-CAMELLIA256-SHA\"\n\n/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */\n# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256               \"CAMELLIA128-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256            \"DH-DSS-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256            \"DH-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-DSS-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256               \"ADH-CAMELLIA128-SHA256\"\n\n# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256               \"CAMELLIA256-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256            \"DH-DSS-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256            \"DH-RSA-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256           \"DHE-DSS-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256           \"DHE-RSA-CAMELLIA256-SHA256\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256               \"ADH-CAMELLIA256-SHA256\"\n\n# define TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256               \"PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384               \"PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384           \"DHE-PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256           \"RSA-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384           \"RSA-PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256         \"ECDHE-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384         \"ECDHE-PSK-CAMELLIA256-SHA384\"\n\n/* SEED ciphersuites from RFC4162 */\n# define TLS1_TXT_RSA_WITH_SEED_SHA                      \"SEED-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_SEED_SHA                   \"DH-DSS-SEED-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_SEED_SHA                   \"DH-RSA-SEED-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_SEED_SHA                  \"DHE-DSS-SEED-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_SEED_SHA                  \"DHE-RSA-SEED-SHA\"\n# define TLS1_TXT_ADH_WITH_SEED_SHA                      \"ADH-SEED-SHA\"\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_TXT_RSA_WITH_NULL_SHA256                   \"NULL-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_128_SHA256                \"AES128-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_256_SHA256                \"AES256-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256             \"DH-DSS-AES128-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256             \"DH-RSA-AES128-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256            \"DHE-DSS-AES128-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256            \"DHE-RSA-AES128-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256             \"DH-DSS-AES256-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256             \"DH-RSA-AES256-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256            \"DHE-DSS-AES256-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256            \"DHE-RSA-AES256-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_128_SHA256                \"ADH-AES128-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_256_SHA256                \"ADH-AES256-SHA256\"\n\n/* TLS v1.2 GCM ciphersuites from RFC5288 */\n# define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256            \"AES128-GCM-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384            \"AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256        \"DHE-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384        \"DHE-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256         \"DH-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384         \"DH-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256        \"DHE-DSS-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384        \"DHE-DSS-AES256-GCM-SHA384\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256         \"DH-DSS-AES128-GCM-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384         \"DH-DSS-AES256-GCM-SHA384\"\n# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256            \"ADH-AES128-GCM-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384            \"ADH-AES256-GCM-SHA384\"\n\n/* CCM ciphersuites from RFC6655 */\n# define TLS1_TXT_RSA_WITH_AES_128_CCM                   \"AES128-CCM\"\n# define TLS1_TXT_RSA_WITH_AES_256_CCM                   \"AES256-CCM\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM               \"DHE-RSA-AES128-CCM\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM               \"DHE-RSA-AES256-CCM\"\n\n# define TLS1_TXT_RSA_WITH_AES_128_CCM_8                 \"AES128-CCM8\"\n# define TLS1_TXT_RSA_WITH_AES_256_CCM_8                 \"AES256-CCM8\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8             \"DHE-RSA-AES128-CCM8\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8             \"DHE-RSA-AES256-CCM8\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CCM                   \"PSK-AES128-CCM\"\n# define TLS1_TXT_PSK_WITH_AES_256_CCM                   \"PSK-AES256-CCM\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM               \"DHE-PSK-AES128-CCM\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM               \"DHE-PSK-AES256-CCM\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CCM_8                 \"PSK-AES128-CCM8\"\n# define TLS1_TXT_PSK_WITH_AES_256_CCM_8                 \"PSK-AES256-CCM8\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8             \"DHE-PSK-AES128-CCM8\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8             \"DHE-PSK-AES256-CCM8\"\n\n/* CCM ciphersuites from RFC7251 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM       \"ECDHE-ECDSA-AES128-CCM\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM       \"ECDHE-ECDSA-AES256-CCM\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8     \"ECDHE-ECDSA-AES128-CCM8\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8     \"ECDHE-ECDSA-AES256-CCM8\"\n\n/* ECDH HMAC based ciphersuites from RFC5289 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256    \"ECDHE-ECDSA-AES128-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384    \"ECDHE-ECDSA-AES256-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256     \"ECDH-ECDSA-AES128-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384     \"ECDH-ECDSA-AES256-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256      \"ECDHE-RSA-AES128-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384      \"ECDHE-RSA-AES256-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256       \"ECDH-RSA-AES128-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384       \"ECDH-RSA-AES256-SHA384\"\n\n/* ECDH GCM based ciphersuites from RFC5289 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256    \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384    \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256     \"ECDH-ECDSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384     \"ECDH-ECDSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256      \"ECDHE-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384      \"ECDHE-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256       \"ECDH-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384       \"ECDH-RSA-AES256-GCM-SHA384\"\n\n/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */\n# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256            \"PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384            \"PSK-AES256-GCM-SHA384\"\n\n/* ECDHE PSK ciphersuites from RFC 5489 */\n# define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA               \"ECDHE-PSK-RC4-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA          \"ECDHE-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA           \"ECDHE-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA           \"ECDHE-PSK-AES256-CBC-SHA\"\n\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256        \"ECDHE-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384        \"ECDHE-PSK-AES256-CBC-SHA384\"\n\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA                  \"ECDHE-PSK-NULL-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256               \"ECDHE-PSK-NULL-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384               \"ECDHE-PSK-NULL-SHA384\"\n\n/* Camellia-CBC ciphersuites from RFC6367 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 \"ECDHE-ECDSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 \"ECDHE-ECDSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  \"ECDH-ECDSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  \"ECDH-ECDSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   \"ECDHE-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   \"ECDHE-RSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    \"ECDH-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    \"ECDH-RSA-CAMELLIA256-SHA384\"\n\n/* draft-ietf-tls-chacha20-poly1305-03 */\n# define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305         \"ECDHE-RSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305       \"ECDHE-ECDSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305           \"DHE-RSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_PSK_WITH_CHACHA20_POLY1305               \"PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305         \"ECDHE-PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305           \"DHE-PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305           \"RSA-PSK-CHACHA20-POLY1305\"\n\n/* Aria ciphersuites from RFC6209 */\n# define TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256             \"ARIA128-GCM-SHA256\"\n# define TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384             \"ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256         \"DHE-RSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384         \"DHE-RSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256          \"DH-RSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384          \"DH-RSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256         \"DHE-DSS-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384         \"DHE-DSS-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256          \"DH-DSS-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384          \"DH-DSS-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256         \"ADH-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384         \"ADH-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256     \"ECDHE-ECDSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384     \"ECDHE-ECDSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256      \"ECDH-ECDSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384      \"ECDH-ECDSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256       \"ECDHE-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384       \"ECDHE-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256        \"ECDH-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384        \"ECDH-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256             \"PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384             \"PSK-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256         \"DHE-PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384         \"DHE-PSK-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256         \"RSA-PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384         \"RSA-PSK-ARIA256-GCM-SHA384\"\n\n# define TLS_CT_RSA_SIGN                 1\n# define TLS_CT_DSS_SIGN                 2\n# define TLS_CT_RSA_FIXED_DH             3\n# define TLS_CT_DSS_FIXED_DH             4\n# define TLS_CT_ECDSA_SIGN               64\n# define TLS_CT_RSA_FIXED_ECDH           65\n# define TLS_CT_ECDSA_FIXED_ECDH         66\n# define TLS_CT_GOST01_SIGN              22\n# define TLS_CT_GOST12_SIGN              238\n# define TLS_CT_GOST12_512_SIGN          239\n\n/*\n * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see\n * comment there)\n */\n# define TLS_CT_NUMBER                   10\n\n# if defined(SSL3_CT_NUMBER)\n#  if TLS_CT_NUMBER != SSL3_CT_NUMBER\n#    error \"SSL/TLS CT_NUMBER values do not match\"\n#  endif\n# endif\n\n# define TLS1_FINISH_MAC_LENGTH          12\n\n# define TLS_MD_MAX_CONST_SIZE                   22\n# define TLS_MD_CLIENT_FINISH_CONST              \"client finished\"\n# define TLS_MD_CLIENT_FINISH_CONST_SIZE         15\n# define TLS_MD_SERVER_FINISH_CONST              \"server finished\"\n# define TLS_MD_SERVER_FINISH_CONST_SIZE         15\n# define TLS_MD_KEY_EXPANSION_CONST              \"key expansion\"\n# define TLS_MD_KEY_EXPANSION_CONST_SIZE         13\n# define TLS_MD_CLIENT_WRITE_KEY_CONST           \"client write key\"\n# define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE      16\n# define TLS_MD_SERVER_WRITE_KEY_CONST           \"server write key\"\n# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE      16\n# define TLS_MD_IV_BLOCK_CONST                   \"IV block\"\n# define TLS_MD_IV_BLOCK_CONST_SIZE              8\n# define TLS_MD_MASTER_SECRET_CONST              \"master secret\"\n# define TLS_MD_MASTER_SECRET_CONST_SIZE         13\n# define TLS_MD_EXTENDED_MASTER_SECRET_CONST     \"extended master secret\"\n# define TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE        22\n\n# ifdef CHARSET_EBCDIC\n#  undef TLS_MD_CLIENT_FINISH_CONST\n/*\n * client finished\n */\n#  define TLS_MD_CLIENT_FINISH_CONST    \"\\x63\\x6c\\x69\\x65\\x6e\\x74\\x20\\x66\\x69\\x6e\\x69\\x73\\x68\\x65\\x64\"\n\n#  undef TLS_MD_SERVER_FINISH_CONST\n/*\n * server finished\n */\n#  define TLS_MD_SERVER_FINISH_CONST    \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x66\\x69\\x6e\\x69\\x73\\x68\\x65\\x64\"\n\n#  undef TLS_MD_SERVER_WRITE_KEY_CONST\n/*\n * server write key\n */\n#  define TLS_MD_SERVER_WRITE_KEY_CONST \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_KEY_EXPANSION_CONST\n/*\n * key expansion\n */\n#  define TLS_MD_KEY_EXPANSION_CONST    \"\\x6b\\x65\\x79\\x20\\x65\\x78\\x70\\x61\\x6e\\x73\\x69\\x6f\\x6e\"\n\n#  undef TLS_MD_CLIENT_WRITE_KEY_CONST\n/*\n * client write key\n */\n#  define TLS_MD_CLIENT_WRITE_KEY_CONST \"\\x63\\x6c\\x69\\x65\\x6e\\x74\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_SERVER_WRITE_KEY_CONST\n/*\n * server write key\n */\n#  define TLS_MD_SERVER_WRITE_KEY_CONST \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_IV_BLOCK_CONST\n/*\n * IV block\n */\n#  define TLS_MD_IV_BLOCK_CONST         \"\\x49\\x56\\x20\\x62\\x6c\\x6f\\x63\\x6b\"\n\n#  undef TLS_MD_MASTER_SECRET_CONST\n/*\n * master secret\n */\n#  define TLS_MD_MASTER_SECRET_CONST    \"\\x6d\\x61\\x73\\x74\\x65\\x72\\x20\\x73\\x65\\x63\\x72\\x65\\x74\"\n#  undef TLS_MD_EXTENDED_MASTER_SECRET_CONST\n/*\n * extended master secret\n */\n#  define TLS_MD_EXTENDED_MASTER_SECRET_CONST    \"\\x65\\x78\\x74\\x65\\x6e\\x64\\x65\\x64\\x20\\x6d\\x61\\x73\\x74\\x65\\x72\\x20\\x73\\x65\\x63\\x72\\x65\\x74\"\n# endif\n\n/* TLS Session Ticket extension struct */\nstruct tls_session_ticket_ext_st {\n    unsigned short length;\n    void *data;\n};\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ts.h",
    "content": "/*\n * Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TS_H\n# define HEADER_TS_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_TS\n# include <openssl/symhacks.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/safestack.h>\n# include <openssl/rsa.h>\n# include <openssl/dsa.h>\n# include <openssl/dh.h>\n# include <openssl/tserr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# include <openssl/x509.h>\n# include <openssl/x509v3.h>\n\ntypedef struct TS_msg_imprint_st TS_MSG_IMPRINT;\ntypedef struct TS_req_st TS_REQ;\ntypedef struct TS_accuracy_st TS_ACCURACY;\ntypedef struct TS_tst_info_st TS_TST_INFO;\n\n/* Possible values for status. */\n# define TS_STATUS_GRANTED                       0\n# define TS_STATUS_GRANTED_WITH_MODS             1\n# define TS_STATUS_REJECTION                     2\n# define TS_STATUS_WAITING                       3\n# define TS_STATUS_REVOCATION_WARNING            4\n# define TS_STATUS_REVOCATION_NOTIFICATION       5\n\n/* Possible values for failure_info. */\n# define TS_INFO_BAD_ALG                 0\n# define TS_INFO_BAD_REQUEST             2\n# define TS_INFO_BAD_DATA_FORMAT         5\n# define TS_INFO_TIME_NOT_AVAILABLE      14\n# define TS_INFO_UNACCEPTED_POLICY       15\n# define TS_INFO_UNACCEPTED_EXTENSION    16\n# define TS_INFO_ADD_INFO_NOT_AVAILABLE  17\n# define TS_INFO_SYSTEM_FAILURE          25\n\n\ntypedef struct TS_status_info_st TS_STATUS_INFO;\ntypedef struct ESS_issuer_serial ESS_ISSUER_SERIAL;\ntypedef struct ESS_cert_id ESS_CERT_ID;\ntypedef struct ESS_signing_cert ESS_SIGNING_CERT;\n\nDEFINE_STACK_OF(ESS_CERT_ID)\n\ntypedef struct ESS_cert_id_v2_st ESS_CERT_ID_V2;\ntypedef struct ESS_signing_cert_v2_st ESS_SIGNING_CERT_V2;\n\nDEFINE_STACK_OF(ESS_CERT_ID_V2)\n\ntypedef struct TS_resp_st TS_RESP;\n\nTS_REQ *TS_REQ_new(void);\nvoid TS_REQ_free(TS_REQ *a);\nint i2d_TS_REQ(const TS_REQ *a, unsigned char **pp);\nTS_REQ *d2i_TS_REQ(TS_REQ **a, const unsigned char **pp, long length);\n\nTS_REQ *TS_REQ_dup(TS_REQ *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_REQ *d2i_TS_REQ_fp(FILE *fp, TS_REQ **a);\nint i2d_TS_REQ_fp(FILE *fp, TS_REQ *a);\n#endif\nTS_REQ *d2i_TS_REQ_bio(BIO *fp, TS_REQ **a);\nint i2d_TS_REQ_bio(BIO *fp, TS_REQ *a);\n\nTS_MSG_IMPRINT *TS_MSG_IMPRINT_new(void);\nvoid TS_MSG_IMPRINT_free(TS_MSG_IMPRINT *a);\nint i2d_TS_MSG_IMPRINT(const TS_MSG_IMPRINT *a, unsigned char **pp);\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT(TS_MSG_IMPRINT **a,\n                                   const unsigned char **pp, long length);\n\nTS_MSG_IMPRINT *TS_MSG_IMPRINT_dup(TS_MSG_IMPRINT *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a);\nint i2d_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT *a);\n#endif\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_bio(BIO *bio, TS_MSG_IMPRINT **a);\nint i2d_TS_MSG_IMPRINT_bio(BIO *bio, TS_MSG_IMPRINT *a);\n\nTS_RESP *TS_RESP_new(void);\nvoid TS_RESP_free(TS_RESP *a);\nint i2d_TS_RESP(const TS_RESP *a, unsigned char **pp);\nTS_RESP *d2i_TS_RESP(TS_RESP **a, const unsigned char **pp, long length);\nTS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token);\nTS_RESP *TS_RESP_dup(TS_RESP *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_RESP *d2i_TS_RESP_fp(FILE *fp, TS_RESP **a);\nint i2d_TS_RESP_fp(FILE *fp, TS_RESP *a);\n#endif\nTS_RESP *d2i_TS_RESP_bio(BIO *bio, TS_RESP **a);\nint i2d_TS_RESP_bio(BIO *bio, TS_RESP *a);\n\nTS_STATUS_INFO *TS_STATUS_INFO_new(void);\nvoid TS_STATUS_INFO_free(TS_STATUS_INFO *a);\nint i2d_TS_STATUS_INFO(const TS_STATUS_INFO *a, unsigned char **pp);\nTS_STATUS_INFO *d2i_TS_STATUS_INFO(TS_STATUS_INFO **a,\n                                   const unsigned char **pp, long length);\nTS_STATUS_INFO *TS_STATUS_INFO_dup(TS_STATUS_INFO *a);\n\nTS_TST_INFO *TS_TST_INFO_new(void);\nvoid TS_TST_INFO_free(TS_TST_INFO *a);\nint i2d_TS_TST_INFO(const TS_TST_INFO *a, unsigned char **pp);\nTS_TST_INFO *d2i_TS_TST_INFO(TS_TST_INFO **a, const unsigned char **pp,\n                             long length);\nTS_TST_INFO *TS_TST_INFO_dup(TS_TST_INFO *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_TST_INFO *d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a);\nint i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a);\n#endif\nTS_TST_INFO *d2i_TS_TST_INFO_bio(BIO *bio, TS_TST_INFO **a);\nint i2d_TS_TST_INFO_bio(BIO *bio, TS_TST_INFO *a);\n\nTS_ACCURACY *TS_ACCURACY_new(void);\nvoid TS_ACCURACY_free(TS_ACCURACY *a);\nint i2d_TS_ACCURACY(const TS_ACCURACY *a, unsigned char **pp);\nTS_ACCURACY *d2i_TS_ACCURACY(TS_ACCURACY **a, const unsigned char **pp,\n                             long length);\nTS_ACCURACY *TS_ACCURACY_dup(TS_ACCURACY *a);\n\nESS_ISSUER_SERIAL *ESS_ISSUER_SERIAL_new(void);\nvoid ESS_ISSUER_SERIAL_free(ESS_ISSUER_SERIAL *a);\nint i2d_ESS_ISSUER_SERIAL(const ESS_ISSUER_SERIAL *a, unsigned char **pp);\nESS_ISSUER_SERIAL *d2i_ESS_ISSUER_SERIAL(ESS_ISSUER_SERIAL **a,\n                                         const unsigned char **pp,\n                                         long length);\nESS_ISSUER_SERIAL *ESS_ISSUER_SERIAL_dup(ESS_ISSUER_SERIAL *a);\n\nESS_CERT_ID *ESS_CERT_ID_new(void);\nvoid ESS_CERT_ID_free(ESS_CERT_ID *a);\nint i2d_ESS_CERT_ID(const ESS_CERT_ID *a, unsigned char **pp);\nESS_CERT_ID *d2i_ESS_CERT_ID(ESS_CERT_ID **a, const unsigned char **pp,\n                             long length);\nESS_CERT_ID *ESS_CERT_ID_dup(ESS_CERT_ID *a);\n\nESS_SIGNING_CERT *ESS_SIGNING_CERT_new(void);\nvoid ESS_SIGNING_CERT_free(ESS_SIGNING_CERT *a);\nint i2d_ESS_SIGNING_CERT(const ESS_SIGNING_CERT *a, unsigned char **pp);\nESS_SIGNING_CERT *d2i_ESS_SIGNING_CERT(ESS_SIGNING_CERT **a,\n                                       const unsigned char **pp, long length);\nESS_SIGNING_CERT *ESS_SIGNING_CERT_dup(ESS_SIGNING_CERT *a);\n\nESS_CERT_ID_V2 *ESS_CERT_ID_V2_new(void);\nvoid ESS_CERT_ID_V2_free(ESS_CERT_ID_V2 *a);\nint i2d_ESS_CERT_ID_V2(const ESS_CERT_ID_V2 *a, unsigned char **pp);\nESS_CERT_ID_V2 *d2i_ESS_CERT_ID_V2(ESS_CERT_ID_V2 **a,\n                                   const unsigned char **pp, long length);\nESS_CERT_ID_V2 *ESS_CERT_ID_V2_dup(ESS_CERT_ID_V2 *a);\n\nESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_new(void);\nvoid ESS_SIGNING_CERT_V2_free(ESS_SIGNING_CERT_V2 *a);\nint i2d_ESS_SIGNING_CERT_V2(const ESS_SIGNING_CERT_V2 *a, unsigned char **pp);\nESS_SIGNING_CERT_V2 *d2i_ESS_SIGNING_CERT_V2(ESS_SIGNING_CERT_V2 **a,\n                                             const unsigned char **pp,\n                                             long length);\nESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_dup(ESS_SIGNING_CERT_V2 *a);\n\nint TS_REQ_set_version(TS_REQ *a, long version);\nlong TS_REQ_get_version(const TS_REQ *a);\n\nint TS_STATUS_INFO_set_status(TS_STATUS_INFO *a, int i);\nconst ASN1_INTEGER *TS_STATUS_INFO_get0_status(const TS_STATUS_INFO *a);\n\nconst STACK_OF(ASN1_UTF8STRING) *\nTS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a);\n\nconst ASN1_BIT_STRING *\nTS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a);\n\nint TS_REQ_set_msg_imprint(TS_REQ *a, TS_MSG_IMPRINT *msg_imprint);\nTS_MSG_IMPRINT *TS_REQ_get_msg_imprint(TS_REQ *a);\n\nint TS_MSG_IMPRINT_set_algo(TS_MSG_IMPRINT *a, X509_ALGOR *alg);\nX509_ALGOR *TS_MSG_IMPRINT_get_algo(TS_MSG_IMPRINT *a);\n\nint TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len);\nASN1_OCTET_STRING *TS_MSG_IMPRINT_get_msg(TS_MSG_IMPRINT *a);\n\nint TS_REQ_set_policy_id(TS_REQ *a, const ASN1_OBJECT *policy);\nASN1_OBJECT *TS_REQ_get_policy_id(TS_REQ *a);\n\nint TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce);\nconst ASN1_INTEGER *TS_REQ_get_nonce(const TS_REQ *a);\n\nint TS_REQ_set_cert_req(TS_REQ *a, int cert_req);\nint TS_REQ_get_cert_req(const TS_REQ *a);\n\nSTACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a);\nvoid TS_REQ_ext_free(TS_REQ *a);\nint TS_REQ_get_ext_count(TS_REQ *a);\nint TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos);\nint TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos);\nint TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos);\nX509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc);\nX509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc);\nint TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc);\nvoid *TS_REQ_get_ext_d2i(TS_REQ *a, int nid, int *crit, int *idx);\n\n/* Function declarations for TS_REQ defined in ts/ts_req_print.c */\n\nint TS_REQ_print_bio(BIO *bio, TS_REQ *a);\n\n/* Function declarations for TS_RESP defined in ts/ts_resp_utils.c */\n\nint TS_RESP_set_status_info(TS_RESP *a, TS_STATUS_INFO *info);\nTS_STATUS_INFO *TS_RESP_get_status_info(TS_RESP *a);\n\n/* Caller loses ownership of PKCS7 and TS_TST_INFO objects. */\nvoid TS_RESP_set_tst_info(TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info);\nPKCS7 *TS_RESP_get_token(TS_RESP *a);\nTS_TST_INFO *TS_RESP_get_tst_info(TS_RESP *a);\n\nint TS_TST_INFO_set_version(TS_TST_INFO *a, long version);\nlong TS_TST_INFO_get_version(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_policy_id(TS_TST_INFO *a, ASN1_OBJECT *policy_id);\nASN1_OBJECT *TS_TST_INFO_get_policy_id(TS_TST_INFO *a);\n\nint TS_TST_INFO_set_msg_imprint(TS_TST_INFO *a, TS_MSG_IMPRINT *msg_imprint);\nTS_MSG_IMPRINT *TS_TST_INFO_get_msg_imprint(TS_TST_INFO *a);\n\nint TS_TST_INFO_set_serial(TS_TST_INFO *a, const ASN1_INTEGER *serial);\nconst ASN1_INTEGER *TS_TST_INFO_get_serial(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_time(TS_TST_INFO *a, const ASN1_GENERALIZEDTIME *gtime);\nconst ASN1_GENERALIZEDTIME *TS_TST_INFO_get_time(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_accuracy(TS_TST_INFO *a, TS_ACCURACY *accuracy);\nTS_ACCURACY *TS_TST_INFO_get_accuracy(TS_TST_INFO *a);\n\nint TS_ACCURACY_set_seconds(TS_ACCURACY *a, const ASN1_INTEGER *seconds);\nconst ASN1_INTEGER *TS_ACCURACY_get_seconds(const TS_ACCURACY *a);\n\nint TS_ACCURACY_set_millis(TS_ACCURACY *a, const ASN1_INTEGER *millis);\nconst ASN1_INTEGER *TS_ACCURACY_get_millis(const TS_ACCURACY *a);\n\nint TS_ACCURACY_set_micros(TS_ACCURACY *a, const ASN1_INTEGER *micros);\nconst ASN1_INTEGER *TS_ACCURACY_get_micros(const TS_ACCURACY *a);\n\nint TS_TST_INFO_set_ordering(TS_TST_INFO *a, int ordering);\nint TS_TST_INFO_get_ordering(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_nonce(TS_TST_INFO *a, const ASN1_INTEGER *nonce);\nconst ASN1_INTEGER *TS_TST_INFO_get_nonce(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_tsa(TS_TST_INFO *a, GENERAL_NAME *tsa);\nGENERAL_NAME *TS_TST_INFO_get_tsa(TS_TST_INFO *a);\n\nSTACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a);\nvoid TS_TST_INFO_ext_free(TS_TST_INFO *a);\nint TS_TST_INFO_get_ext_count(TS_TST_INFO *a);\nint TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos);\nint TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj,\n                               int lastpos);\nint TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);\nX509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc);\nX509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc);\nint TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc);\nvoid *TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx);\n\n/*\n * Declarations related to response generation, defined in ts/ts_resp_sign.c.\n */\n\n/* Optional flags for response generation. */\n\n/* Don't include the TSA name in response. */\n# define TS_TSA_NAME             0x01\n\n/* Set ordering to true in response. */\n# define TS_ORDERING             0x02\n\n/*\n * Include the signer certificate and the other specified certificates in\n * the ESS signing certificate attribute beside the PKCS7 signed data.\n * Only the signer certificates is included by default.\n */\n# define TS_ESS_CERT_ID_CHAIN    0x04\n\n/* Forward declaration. */\nstruct TS_resp_ctx;\n\n/* This must return a unique number less than 160 bits long. */\ntypedef ASN1_INTEGER *(*TS_serial_cb) (struct TS_resp_ctx *, void *);\n\n/*\n * This must return the seconds and microseconds since Jan 1, 1970 in the sec\n * and usec variables allocated by the caller. Return non-zero for success\n * and zero for failure.\n */\ntypedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,\n                           long *usec);\n\n/*\n * This must process the given extension. It can modify the TS_TST_INFO\n * object of the context. Return values: !0 (processed), 0 (error, it must\n * set the status info/failure info of the response).\n */\ntypedef int (*TS_extension_cb) (struct TS_resp_ctx *, X509_EXTENSION *,\n                                void *);\n\ntypedef struct TS_resp_ctx TS_RESP_CTX;\n\nDEFINE_STACK_OF_CONST(EVP_MD)\n\n/* Creates a response context that can be used for generating responses. */\nTS_RESP_CTX *TS_RESP_CTX_new(void);\nvoid TS_RESP_CTX_free(TS_RESP_CTX *ctx);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_signer_cert(TS_RESP_CTX *ctx, X509 *signer);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key);\n\nint TS_RESP_CTX_set_signer_digest(TS_RESP_CTX *ctx,\n                                  const EVP_MD *signer_digest);\nint TS_RESP_CTX_set_ess_cert_id_digest(TS_RESP_CTX *ctx, const EVP_MD *md);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_def_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *def_policy);\n\n/* No additional certs are included in the response by default. */\nint TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs);\n\n/*\n * Adds a new acceptable policy, only the default policy is accepted by\n * default.\n */\nint TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *policy);\n\n/*\n * Adds a new acceptable message digest. Note that no message digests are\n * accepted by default. The md argument is shared with the caller.\n */\nint TS_RESP_CTX_add_md(TS_RESP_CTX *ctx, const EVP_MD *md);\n\n/* Accuracy is not included by default. */\nint TS_RESP_CTX_set_accuracy(TS_RESP_CTX *ctx,\n                             int secs, int millis, int micros);\n\n/*\n * Clock precision digits, i.e. the number of decimal digits: '0' means sec,\n * '3' msec, '6' usec, and so on. Default is 0.\n */\nint TS_RESP_CTX_set_clock_precision_digits(TS_RESP_CTX *ctx,\n                                           unsigned clock_precision_digits);\n/* At most we accept usec precision. */\n# define TS_MAX_CLOCK_PRECISION_DIGITS   6\n\n/* Maximum status message length */\n# define TS_MAX_STATUS_LENGTH   (1024 * 1024)\n\n/* No flags are set by default. */\nvoid TS_RESP_CTX_add_flags(TS_RESP_CTX *ctx, int flags);\n\n/* Default callback always returns a constant. */\nvoid TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data);\n\n/* Default callback uses the gettimeofday() and gmtime() system calls. */\nvoid TS_RESP_CTX_set_time_cb(TS_RESP_CTX *ctx, TS_time_cb cb, void *data);\n\n/*\n * Default callback rejects all extensions. The extension callback is called\n * when the TS_TST_INFO object is already set up and not signed yet.\n */\n/* FIXME: extension handling is not tested yet. */\nvoid TS_RESP_CTX_set_extension_cb(TS_RESP_CTX *ctx,\n                                  TS_extension_cb cb, void *data);\n\n/* The following methods can be used in the callbacks. */\nint TS_RESP_CTX_set_status_info(TS_RESP_CTX *ctx,\n                                int status, const char *text);\n\n/* Sets the status info only if it is still TS_STATUS_GRANTED. */\nint TS_RESP_CTX_set_status_info_cond(TS_RESP_CTX *ctx,\n                                     int status, const char *text);\n\nint TS_RESP_CTX_add_failure_info(TS_RESP_CTX *ctx, int failure);\n\n/* The get methods below can be used in the extension callback. */\nTS_REQ *TS_RESP_CTX_get_request(TS_RESP_CTX *ctx);\n\nTS_TST_INFO *TS_RESP_CTX_get_tst_info(TS_RESP_CTX *ctx);\n\n/*\n * Creates the signed TS_TST_INFO and puts it in TS_RESP.\n * In case of errors it sets the status info properly.\n * Returns NULL only in case of memory allocation/fatal error.\n */\nTS_RESP *TS_RESP_create_response(TS_RESP_CTX *ctx, BIO *req_bio);\n\n/*\n * Declarations related to response verification,\n * they are defined in ts/ts_resp_verify.c.\n */\n\nint TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs,\n                             X509_STORE *store, X509 **signer_out);\n\n/* Context structure for the generic verify method. */\n\n/* Verify the signer's certificate and the signature of the response. */\n# define TS_VFY_SIGNATURE        (1u << 0)\n/* Verify the version number of the response. */\n# define TS_VFY_VERSION          (1u << 1)\n/* Verify if the policy supplied by the user matches the policy of the TSA. */\n# define TS_VFY_POLICY           (1u << 2)\n/*\n * Verify the message imprint provided by the user. This flag should not be\n * specified with TS_VFY_DATA.\n */\n# define TS_VFY_IMPRINT          (1u << 3)\n/*\n * Verify the message imprint computed by the verify method from the user\n * provided data and the MD algorithm of the response. This flag should not\n * be specified with TS_VFY_IMPRINT.\n */\n# define TS_VFY_DATA             (1u << 4)\n/* Verify the nonce value. */\n# define TS_VFY_NONCE            (1u << 5)\n/* Verify if the TSA name field matches the signer certificate. */\n# define TS_VFY_SIGNER           (1u << 6)\n/* Verify if the TSA name field equals to the user provided name. */\n# define TS_VFY_TSA_NAME         (1u << 7)\n\n/* You can use the following convenience constants. */\n# define TS_VFY_ALL_IMPRINT      (TS_VFY_SIGNATURE       \\\n                                 | TS_VFY_VERSION       \\\n                                 | TS_VFY_POLICY        \\\n                                 | TS_VFY_IMPRINT       \\\n                                 | TS_VFY_NONCE         \\\n                                 | TS_VFY_SIGNER        \\\n                                 | TS_VFY_TSA_NAME)\n# define TS_VFY_ALL_DATA         (TS_VFY_SIGNATURE       \\\n                                 | TS_VFY_VERSION       \\\n                                 | TS_VFY_POLICY        \\\n                                 | TS_VFY_DATA          \\\n                                 | TS_VFY_NONCE         \\\n                                 | TS_VFY_SIGNER        \\\n                                 | TS_VFY_TSA_NAME)\n\ntypedef struct TS_verify_ctx TS_VERIFY_CTX;\n\nint TS_RESP_verify_response(TS_VERIFY_CTX *ctx, TS_RESP *response);\nint TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token);\n\n/*\n * Declarations related to response verification context,\n */\nTS_VERIFY_CTX *TS_VERIFY_CTX_new(void);\nvoid TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx);\nvoid TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx);\nvoid TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx);\nint TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int f);\nint TS_VERIFY_CTX_add_flags(TS_VERIFY_CTX *ctx, int f);\nBIO *TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *b);\nunsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,\n                                         unsigned char *hexstr, long len);\nX509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s);\nSTACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);\n\n/*-\n * If ctx is NULL, it allocates and returns a new object, otherwise\n * it returns ctx. It initialises all the members as follows:\n * flags = TS_VFY_ALL_IMPRINT & ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE)\n * certs = NULL\n * store = NULL\n * policy = policy from the request or NULL if absent (in this case\n *      TS_VFY_POLICY is cleared from flags as well)\n * md_alg = MD algorithm from request\n * imprint, imprint_len = imprint from request\n * data = NULL\n * nonce, nonce_len = nonce from the request or NULL if absent (in this case\n *      TS_VFY_NONCE is cleared from flags as well)\n * tsa_name = NULL\n * Important: after calling this method TS_VFY_SIGNATURE should be added!\n */\nTS_VERIFY_CTX *TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx);\n\n/* Function declarations for TS_RESP defined in ts/ts_resp_print.c */\n\nint TS_RESP_print_bio(BIO *bio, TS_RESP *a);\nint TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a);\nint TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a);\n\n/* Common utility functions defined in ts/ts_lib.c */\n\nint TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num);\nint TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj);\nint TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions);\nint TS_X509_ALGOR_print_bio(BIO *bio, const X509_ALGOR *alg);\nint TS_MSG_IMPRINT_print_bio(BIO *bio, TS_MSG_IMPRINT *msg);\n\n/*\n * Function declarations for handling configuration options, defined in\n * ts/ts_conf.c\n */\n\nX509 *TS_CONF_load_cert(const char *file);\nSTACK_OF(X509) *TS_CONF_load_certs(const char *file);\nEVP_PKEY *TS_CONF_load_key(const char *file, const char *pass);\nconst char *TS_CONF_get_tsa_section(CONF *conf, const char *section);\nint TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb,\n                       TS_RESP_CTX *ctx);\n#ifndef OPENSSL_NO_ENGINE\nint TS_CONF_set_crypto_device(CONF *conf, const char *section,\n                              const char *device);\nint TS_CONF_set_default_engine(const char *name);\n#endif\nint TS_CONF_set_signer_cert(CONF *conf, const char *section,\n                            const char *cert, TS_RESP_CTX *ctx);\nint TS_CONF_set_certs(CONF *conf, const char *section, const char *certs,\n                      TS_RESP_CTX *ctx);\nint TS_CONF_set_signer_key(CONF *conf, const char *section,\n                           const char *key, const char *pass,\n                           TS_RESP_CTX *ctx);\nint TS_CONF_set_signer_digest(CONF *conf, const char *section,\n                               const char *md, TS_RESP_CTX *ctx);\nint TS_CONF_set_def_policy(CONF *conf, const char *section,\n                           const char *policy, TS_RESP_CTX *ctx);\nint TS_CONF_set_policies(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_digests(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_accuracy(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_clock_precision_digits(CONF *conf, const char *section,\n                                       TS_RESP_CTX *ctx);\nint TS_CONF_set_ordering(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_tsa_name(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_ess_cert_id_chain(CONF *conf, const char *section,\n                                  TS_RESP_CTX *ctx);\nint TS_CONF_set_ess_cert_id_digest(CONF *conf, const char *section,\n                                      TS_RESP_CTX *ctx);\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/tserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TSERR_H\n# define HEADER_TSERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_TS\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_TS_strings(void);\n\n/*\n * TS function codes.\n */\n#  define TS_F_DEF_SERIAL_CB                               110\n#  define TS_F_DEF_TIME_CB                                 111\n#  define TS_F_ESS_ADD_SIGNING_CERT                        112\n#  define TS_F_ESS_ADD_SIGNING_CERT_V2                     147\n#  define TS_F_ESS_CERT_ID_NEW_INIT                        113\n#  define TS_F_ESS_CERT_ID_V2_NEW_INIT                     156\n#  define TS_F_ESS_SIGNING_CERT_NEW_INIT                   114\n#  define TS_F_ESS_SIGNING_CERT_V2_NEW_INIT                157\n#  define TS_F_INT_TS_RESP_VERIFY_TOKEN                    149\n#  define TS_F_PKCS7_TO_TS_TST_INFO                        148\n#  define TS_F_TS_ACCURACY_SET_MICROS                      115\n#  define TS_F_TS_ACCURACY_SET_MILLIS                      116\n#  define TS_F_TS_ACCURACY_SET_SECONDS                     117\n#  define TS_F_TS_CHECK_IMPRINTS                           100\n#  define TS_F_TS_CHECK_NONCES                             101\n#  define TS_F_TS_CHECK_POLICY                             102\n#  define TS_F_TS_CHECK_SIGNING_CERTS                      103\n#  define TS_F_TS_CHECK_STATUS_INFO                        104\n#  define TS_F_TS_COMPUTE_IMPRINT                          145\n#  define TS_F_TS_CONF_INVALID                             151\n#  define TS_F_TS_CONF_LOAD_CERT                           153\n#  define TS_F_TS_CONF_LOAD_CERTS                          154\n#  define TS_F_TS_CONF_LOAD_KEY                            155\n#  define TS_F_TS_CONF_LOOKUP_FAIL                         152\n#  define TS_F_TS_CONF_SET_DEFAULT_ENGINE                  146\n#  define TS_F_TS_GET_STATUS_TEXT                          105\n#  define TS_F_TS_MSG_IMPRINT_SET_ALGO                     118\n#  define TS_F_TS_REQ_SET_MSG_IMPRINT                      119\n#  define TS_F_TS_REQ_SET_NONCE                            120\n#  define TS_F_TS_REQ_SET_POLICY_ID                        121\n#  define TS_F_TS_RESP_CREATE_RESPONSE                     122\n#  define TS_F_TS_RESP_CREATE_TST_INFO                     123\n#  define TS_F_TS_RESP_CTX_ADD_FAILURE_INFO                124\n#  define TS_F_TS_RESP_CTX_ADD_MD                          125\n#  define TS_F_TS_RESP_CTX_ADD_POLICY                      126\n#  define TS_F_TS_RESP_CTX_NEW                             127\n#  define TS_F_TS_RESP_CTX_SET_ACCURACY                    128\n#  define TS_F_TS_RESP_CTX_SET_CERTS                       129\n#  define TS_F_TS_RESP_CTX_SET_DEF_POLICY                  130\n#  define TS_F_TS_RESP_CTX_SET_SIGNER_CERT                 131\n#  define TS_F_TS_RESP_CTX_SET_STATUS_INFO                 132\n#  define TS_F_TS_RESP_GET_POLICY                          133\n#  define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION          134\n#  define TS_F_TS_RESP_SET_STATUS_INFO                     135\n#  define TS_F_TS_RESP_SET_TST_INFO                        150\n#  define TS_F_TS_RESP_SIGN                                136\n#  define TS_F_TS_RESP_VERIFY_SIGNATURE                    106\n#  define TS_F_TS_TST_INFO_SET_ACCURACY                    137\n#  define TS_F_TS_TST_INFO_SET_MSG_IMPRINT                 138\n#  define TS_F_TS_TST_INFO_SET_NONCE                       139\n#  define TS_F_TS_TST_INFO_SET_POLICY_ID                   140\n#  define TS_F_TS_TST_INFO_SET_SERIAL                      141\n#  define TS_F_TS_TST_INFO_SET_TIME                        142\n#  define TS_F_TS_TST_INFO_SET_TSA                         143\n#  define TS_F_TS_VERIFY                                   108\n#  define TS_F_TS_VERIFY_CERT                              109\n#  define TS_F_TS_VERIFY_CTX_NEW                           144\n\n/*\n * TS reason codes.\n */\n#  define TS_R_BAD_PKCS7_TYPE                              132\n#  define TS_R_BAD_TYPE                                    133\n#  define TS_R_CANNOT_LOAD_CERT                            137\n#  define TS_R_CANNOT_LOAD_KEY                             138\n#  define TS_R_CERTIFICATE_VERIFY_ERROR                    100\n#  define TS_R_COULD_NOT_SET_ENGINE                        127\n#  define TS_R_COULD_NOT_SET_TIME                          115\n#  define TS_R_DETACHED_CONTENT                            134\n#  define TS_R_ESS_ADD_SIGNING_CERT_ERROR                  116\n#  define TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR               139\n#  define TS_R_ESS_SIGNING_CERTIFICATE_ERROR               101\n#  define TS_R_INVALID_NULL_POINTER                        102\n#  define TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE          117\n#  define TS_R_MESSAGE_IMPRINT_MISMATCH                    103\n#  define TS_R_NONCE_MISMATCH                              104\n#  define TS_R_NONCE_NOT_RETURNED                          105\n#  define TS_R_NO_CONTENT                                  106\n#  define TS_R_NO_TIME_STAMP_TOKEN                         107\n#  define TS_R_PKCS7_ADD_SIGNATURE_ERROR                   118\n#  define TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR                 119\n#  define TS_R_PKCS7_TO_TS_TST_INFO_FAILED                 129\n#  define TS_R_POLICY_MISMATCH                             108\n#  define TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE      120\n#  define TS_R_RESPONSE_SETUP_ERROR                        121\n#  define TS_R_SIGNATURE_FAILURE                           109\n#  define TS_R_THERE_MUST_BE_ONE_SIGNER                    110\n#  define TS_R_TIME_SYSCALL_ERROR                          122\n#  define TS_R_TOKEN_NOT_PRESENT                           130\n#  define TS_R_TOKEN_PRESENT                               131\n#  define TS_R_TSA_NAME_MISMATCH                           111\n#  define TS_R_TSA_UNTRUSTED                               112\n#  define TS_R_TST_INFO_SETUP_ERROR                        123\n#  define TS_R_TS_DATASIGN                                 124\n#  define TS_R_UNACCEPTABLE_POLICY                         125\n#  define TS_R_UNSUPPORTED_MD_ALGORITHM                    126\n#  define TS_R_UNSUPPORTED_VERSION                         113\n#  define TS_R_VAR_BAD_VALUE                               135\n#  define TS_R_VAR_LOOKUP_FAILURE                          136\n#  define TS_R_WRONG_CONTENT_TYPE                          114\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/txt_db.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TXT_DB_H\n# define HEADER_TXT_DB_H\n\n# include <openssl/opensslconf.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/lhash.h>\n\n# define DB_ERROR_OK                     0\n# define DB_ERROR_MALLOC                 1\n# define DB_ERROR_INDEX_CLASH            2\n# define DB_ERROR_INDEX_OUT_OF_RANGE     3\n# define DB_ERROR_NO_INDEX               4\n# define DB_ERROR_INSERT_INDEX_CLASH     5\n# define DB_ERROR_WRONG_NUM_FIELDS       6\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef OPENSSL_STRING *OPENSSL_PSTRING;\nDEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)\n\ntypedef struct txt_db_st {\n    int num_fields;\n    STACK_OF(OPENSSL_PSTRING) *data;\n    LHASH_OF(OPENSSL_STRING) **index;\n    int (**qual) (OPENSSL_STRING *);\n    long error;\n    long arg1;\n    long arg2;\n    OPENSSL_STRING *arg_row;\n} TXT_DB;\n\nTXT_DB *TXT_DB_read(BIO *in, int num);\nlong TXT_DB_write(BIO *out, TXT_DB *db);\nint TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *),\n                        OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp);\nvoid TXT_DB_free(TXT_DB *db);\nOPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx,\n                                    OPENSSL_STRING *value);\nint TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/ui.h",
    "content": "/*\n * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_UI_H\n# define HEADER_UI_H\n\n# include <openssl/opensslconf.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/crypto.h>\n# endif\n# include <openssl/safestack.h>\n# include <openssl/pem.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/uierr.h>\n\n/* For compatibility reasons, the macro OPENSSL_NO_UI is currently retained */\n# if OPENSSL_API_COMPAT < 0x10200000L\n#  ifdef OPENSSL_NO_UI_CONSOLE\n#   define OPENSSL_NO_UI\n#  endif\n# endif\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * All the following functions return -1 or NULL on error and in some cases\n * (UI_process()) -2 if interrupted or in some other way cancelled. When\n * everything is fine, they return 0, a positive value or a non-NULL pointer,\n * all depending on their purpose.\n */\n\n/* Creators and destructor.   */\nUI *UI_new(void);\nUI *UI_new_method(const UI_METHOD *method);\nvoid UI_free(UI *ui);\n\n/*-\n   The following functions are used to add strings to be printed and prompt\n   strings to prompt for data.  The names are UI_{add,dup}_<function>_string\n   and UI_{add,dup}_input_boolean.\n\n   UI_{add,dup}_<function>_string have the following meanings:\n        add     add a text or prompt string.  The pointers given to these\n                functions are used verbatim, no copying is done.\n        dup     make a copy of the text or prompt string, then add the copy\n                to the collection of strings in the user interface.\n        <function>\n                The function is a name for the functionality that the given\n                string shall be used for.  It can be one of:\n                        input   use the string as data prompt.\n                        verify  use the string as verification prompt.  This\n                                is used to verify a previous input.\n                        info    use the string for informational output.\n                        error   use the string for error output.\n   Honestly, there's currently no difference between info and error for the\n   moment.\n\n   UI_{add,dup}_input_boolean have the same semantics for \"add\" and \"dup\",\n   and are typically used when one wants to prompt for a yes/no response.\n\n   All of the functions in this group take a UI and a prompt string.\n   The string input and verify addition functions also take a flag argument,\n   a buffer for the result to end up with, a minimum input size and a maximum\n   input size (the result buffer MUST be large enough to be able to contain\n   the maximum number of characters).  Additionally, the verify addition\n   functions takes another buffer to compare the result against.\n   The boolean input functions take an action description string (which should\n   be safe to ignore if the expected user action is obvious, for example with\n   a dialog box with an OK button and a Cancel button), a string of acceptable\n   characters to mean OK and to mean Cancel.  The two last strings are checked\n   to make sure they don't have common characters.  Additionally, the same\n   flag argument as for the string input is taken, as well as a result buffer.\n   The result buffer is required to be at least one byte long.  Depending on\n   the answer, the first character from the OK or the Cancel character strings\n   will be stored in the first byte of the result buffer.  No NUL will be\n   added, so the result is *not* a string.\n\n   On success, the all return an index of the added information.  That index\n   is useful when retrieving results with UI_get0_result(). */\nint UI_add_input_string(UI *ui, const char *prompt, int flags,\n                        char *result_buf, int minsize, int maxsize);\nint UI_dup_input_string(UI *ui, const char *prompt, int flags,\n                        char *result_buf, int minsize, int maxsize);\nint UI_add_verify_string(UI *ui, const char *prompt, int flags,\n                         char *result_buf, int minsize, int maxsize,\n                         const char *test_buf);\nint UI_dup_verify_string(UI *ui, const char *prompt, int flags,\n                         char *result_buf, int minsize, int maxsize,\n                         const char *test_buf);\nint UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,\n                         const char *ok_chars, const char *cancel_chars,\n                         int flags, char *result_buf);\nint UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,\n                         const char *ok_chars, const char *cancel_chars,\n                         int flags, char *result_buf);\nint UI_add_info_string(UI *ui, const char *text);\nint UI_dup_info_string(UI *ui, const char *text);\nint UI_add_error_string(UI *ui, const char *text);\nint UI_dup_error_string(UI *ui, const char *text);\n\n/* These are the possible flags.  They can be or'ed together. */\n/* Use to have echoing of input */\n# define UI_INPUT_FLAG_ECHO              0x01\n/*\n * Use a default password.  Where that password is found is completely up to\n * the application, it might for example be in the user data set with\n * UI_add_user_data().  It is not recommended to have more than one input in\n * each UI being marked with this flag, or the application might get\n * confused.\n */\n# define UI_INPUT_FLAG_DEFAULT_PWD       0x02\n\n/*-\n * The user of these routines may want to define flags of their own.  The core\n * UI won't look at those, but will pass them on to the method routines.  They\n * must use higher bits so they don't get confused with the UI bits above.\n * UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use.  A good\n * example of use is this:\n *\n *    #define MY_UI_FLAG1       (0x01 << UI_INPUT_FLAG_USER_BASE)\n *\n*/\n# define UI_INPUT_FLAG_USER_BASE 16\n\n/*-\n * The following function helps construct a prompt.  object_desc is a\n * textual short description of the object, for example \"pass phrase\",\n * and object_name is the name of the object (might be a card name or\n * a file name.\n * The returned string shall always be allocated on the heap with\n * OPENSSL_malloc(), and need to be free'd with OPENSSL_free().\n *\n * If the ui_method doesn't contain a pointer to a user-defined prompt\n * constructor, a default string is built, looking like this:\n *\n *       \"Enter {object_desc} for {object_name}:\"\n *\n * So, if object_desc has the value \"pass phrase\" and object_name has\n * the value \"foo.key\", the resulting string is:\n *\n *       \"Enter pass phrase for foo.key:\"\n*/\nchar *UI_construct_prompt(UI *ui_method,\n                          const char *object_desc, const char *object_name);\n\n/*\n * The following function is used to store a pointer to user-specific data.\n * Any previous such pointer will be returned and replaced.\n *\n * For callback purposes, this function makes a lot more sense than using\n * ex_data, since the latter requires that different parts of OpenSSL or\n * applications share the same ex_data index.\n *\n * Note that the UI_OpenSSL() method completely ignores the user data. Other\n * methods may not, however.\n */\nvoid *UI_add_user_data(UI *ui, void *user_data);\n/*\n * Alternatively, this function is used to duplicate the user data.\n * This uses the duplicator method function.  The destroy function will\n * be used to free the user data in this case.\n */\nint UI_dup_user_data(UI *ui, void *user_data);\n/* We need a user data retrieving function as well.  */\nvoid *UI_get0_user_data(UI *ui);\n\n/* Return the result associated with a prompt given with the index i. */\nconst char *UI_get0_result(UI *ui, int i);\nint UI_get_result_length(UI *ui, int i);\n\n/* When all strings have been added, process the whole thing. */\nint UI_process(UI *ui);\n\n/*\n * Give a user interface parameterised control commands.  This can be used to\n * send down an integer, a data pointer or a function pointer, as well as be\n * used to get information from a UI.\n */\nint UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f) (void));\n\n/* The commands */\n/*\n * Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the\n * OpenSSL error stack before printing any info or added error messages and\n * before any prompting.\n */\n# define UI_CTRL_PRINT_ERRORS            1\n/*\n * Check if a UI_process() is possible to do again with the same instance of\n * a user interface.  This makes UI_ctrl() return 1 if it is redoable, and 0\n * if not.\n */\n# define UI_CTRL_IS_REDOABLE             2\n\n/* Some methods may use extra data */\n# define UI_set_app_data(s,arg)         UI_set_ex_data(s,0,arg)\n# define UI_get_app_data(s)             UI_get_ex_data(s,0)\n\n# define UI_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef)\nint UI_set_ex_data(UI *r, int idx, void *arg);\nvoid *UI_get_ex_data(UI *r, int idx);\n\n/* Use specific methods instead of the built-in one */\nvoid UI_set_default_method(const UI_METHOD *meth);\nconst UI_METHOD *UI_get_default_method(void);\nconst UI_METHOD *UI_get_method(UI *ui);\nconst UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth);\n\n# ifndef OPENSSL_NO_UI_CONSOLE\n\n/* The method with all the built-in thingies */\nUI_METHOD *UI_OpenSSL(void);\n\n# endif\n\n/*\n * NULL method.  Literally does nothing, but may serve as a placeholder\n * to avoid internal default.\n */\nconst UI_METHOD *UI_null(void);\n\n/* ---------- For method writers ---------- */\n/*-\n   A method contains a number of functions that implement the low level\n   of the User Interface.  The functions are:\n\n        an opener       This function starts a session, maybe by opening\n                        a channel to a tty, or by opening a window.\n        a writer        This function is called to write a given string,\n                        maybe to the tty, maybe as a field label in a\n                        window.\n        a flusher       This function is called to flush everything that\n                        has been output so far.  It can be used to actually\n                        display a dialog box after it has been built.\n        a reader        This function is called to read a given prompt,\n                        maybe from the tty, maybe from a field in a\n                        window.  Note that it's called with all string\n                        structures, not only the prompt ones, so it must\n                        check such things itself.\n        a closer        This function closes the session, maybe by closing\n                        the channel to the tty, or closing the window.\n\n   All these functions are expected to return:\n\n        0       on error.\n        1       on success.\n        -1      on out-of-band events, for example if some prompting has\n                been canceled (by pressing Ctrl-C, for example).  This is\n                only checked when returned by the flusher or the reader.\n\n   The way this is used, the opener is first called, then the writer for all\n   strings, then the flusher, then the reader for all strings and finally the\n   closer.  Note that if you want to prompt from a terminal or other command\n   line interface, the best is to have the reader also write the prompts\n   instead of having the writer do it.  If you want to prompt from a dialog\n   box, the writer can be used to build up the contents of the box, and the\n   flusher to actually display the box and run the event loop until all data\n   has been given, after which the reader only grabs the given data and puts\n   them back into the UI strings.\n\n   All method functions take a UI as argument.  Additionally, the writer and\n   the reader take a UI_STRING.\n*/\n\n/*\n * The UI_STRING type is the data structure that contains all the needed info\n * about a string or a prompt, including test data for a verification prompt.\n */\ntypedef struct ui_string_st UI_STRING;\nDEFINE_STACK_OF(UI_STRING)\n\n/*\n * The different types of strings that are currently supported. This is only\n * needed by method authors.\n */\nenum UI_string_types {\n    UIT_NONE = 0,\n    UIT_PROMPT,                 /* Prompt for a string */\n    UIT_VERIFY,                 /* Prompt for a string and verify */\n    UIT_BOOLEAN,                /* Prompt for a yes/no response */\n    UIT_INFO,                   /* Send info to the user */\n    UIT_ERROR                   /* Send an error message to the user */\n};\n\n/* Create and manipulate methods */\nUI_METHOD *UI_create_method(const char *name);\nvoid UI_destroy_method(UI_METHOD *ui_method);\nint UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui));\nint UI_method_set_writer(UI_METHOD *method,\n                         int (*writer) (UI *ui, UI_STRING *uis));\nint UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui));\nint UI_method_set_reader(UI_METHOD *method,\n                         int (*reader) (UI *ui, UI_STRING *uis));\nint UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui));\nint UI_method_set_data_duplicator(UI_METHOD *method,\n                                  void *(*duplicator) (UI *ui, void *ui_data),\n                                  void (*destructor)(UI *ui, void *ui_data));\nint UI_method_set_prompt_constructor(UI_METHOD *method,\n                                     char *(*prompt_constructor) (UI *ui,\n                                                                  const char\n                                                                  *object_desc,\n                                                                  const char\n                                                                  *object_name));\nint UI_method_set_ex_data(UI_METHOD *method, int idx, void *data);\nint (*UI_method_get_opener(const UI_METHOD *method)) (UI *);\nint (*UI_method_get_writer(const UI_METHOD *method)) (UI *, UI_STRING *);\nint (*UI_method_get_flusher(const UI_METHOD *method)) (UI *);\nint (*UI_method_get_reader(const UI_METHOD *method)) (UI *, UI_STRING *);\nint (*UI_method_get_closer(const UI_METHOD *method)) (UI *);\nchar *(*UI_method_get_prompt_constructor(const UI_METHOD *method))\n    (UI *, const char *, const char *);\nvoid *(*UI_method_get_data_duplicator(const UI_METHOD *method)) (UI *, void *);\nvoid (*UI_method_get_data_destructor(const UI_METHOD *method)) (UI *, void *);\nconst void *UI_method_get_ex_data(const UI_METHOD *method, int idx);\n\n/*\n * The following functions are helpers for method writers to access relevant\n * data from a UI_STRING.\n */\n\n/* Return type of the UI_STRING */\nenum UI_string_types UI_get_string_type(UI_STRING *uis);\n/* Return input flags of the UI_STRING */\nint UI_get_input_flags(UI_STRING *uis);\n/* Return the actual string to output (the prompt, info or error) */\nconst char *UI_get0_output_string(UI_STRING *uis);\n/*\n * Return the optional action string to output (the boolean prompt\n * instruction)\n */\nconst char *UI_get0_action_string(UI_STRING *uis);\n/* Return the result of a prompt */\nconst char *UI_get0_result_string(UI_STRING *uis);\nint UI_get_result_string_length(UI_STRING *uis);\n/*\n * Return the string to test the result against.  Only useful with verifies.\n */\nconst char *UI_get0_test_string(UI_STRING *uis);\n/* Return the required minimum size of the result */\nint UI_get_result_minsize(UI_STRING *uis);\n/* Return the required maximum size of the result */\nint UI_get_result_maxsize(UI_STRING *uis);\n/* Set the result of a UI_STRING. */\nint UI_set_result(UI *ui, UI_STRING *uis, const char *result);\nint UI_set_result_ex(UI *ui, UI_STRING *uis, const char *result, int len);\n\n/* A couple of popular utility functions */\nint UI_UTIL_read_pw_string(char *buf, int length, const char *prompt,\n                           int verify);\nint UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,\n                    int verify);\nUI_METHOD *UI_UTIL_wrap_read_pem_callback(pem_password_cb *cb, int rwflag);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/uierr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_UIERR_H\n# define HEADER_UIERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_UI_strings(void);\n\n/*\n * UI function codes.\n */\n# define UI_F_CLOSE_CONSOLE                               115\n# define UI_F_ECHO_CONSOLE                                116\n# define UI_F_GENERAL_ALLOCATE_BOOLEAN                    108\n# define UI_F_GENERAL_ALLOCATE_PROMPT                     109\n# define UI_F_NOECHO_CONSOLE                              117\n# define UI_F_OPEN_CONSOLE                                114\n# define UI_F_UI_CONSTRUCT_PROMPT                         121\n# define UI_F_UI_CREATE_METHOD                            112\n# define UI_F_UI_CTRL                                     111\n# define UI_F_UI_DUP_ERROR_STRING                         101\n# define UI_F_UI_DUP_INFO_STRING                          102\n# define UI_F_UI_DUP_INPUT_BOOLEAN                        110\n# define UI_F_UI_DUP_INPUT_STRING                         103\n# define UI_F_UI_DUP_USER_DATA                            118\n# define UI_F_UI_DUP_VERIFY_STRING                        106\n# define UI_F_UI_GET0_RESULT                              107\n# define UI_F_UI_GET_RESULT_LENGTH                        119\n# define UI_F_UI_NEW_METHOD                               104\n# define UI_F_UI_PROCESS                                  113\n# define UI_F_UI_SET_RESULT                               105\n# define UI_F_UI_SET_RESULT_EX                            120\n\n/*\n * UI reason codes.\n */\n# define UI_R_COMMON_OK_AND_CANCEL_CHARACTERS             104\n# define UI_R_INDEX_TOO_LARGE                             102\n# define UI_R_INDEX_TOO_SMALL                             103\n# define UI_R_NO_RESULT_BUFFER                            105\n# define UI_R_PROCESSING_ERROR                            107\n# define UI_R_RESULT_TOO_LARGE                            100\n# define UI_R_RESULT_TOO_SMALL                            101\n# define UI_R_SYSASSIGN_ERROR                             109\n# define UI_R_SYSDASSGN_ERROR                             110\n# define UI_R_SYSQIOW_ERROR                               111\n# define UI_R_UNKNOWN_CONTROL_COMMAND                     106\n# define UI_R_UNKNOWN_TTYGET_ERRNO_VALUE                  108\n# define UI_R_USER_DATA_DUPLICATION_UNSUPPORTED           112\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/whrlpool.h",
    "content": "/*\n * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_WHRLPOOL_H\n# define HEADER_WHRLPOOL_H\n\n#include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_WHIRLPOOL\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef __cplusplus\nextern \"C\" {\n# endif\n\n# define WHIRLPOOL_DIGEST_LENGTH (512/8)\n# define WHIRLPOOL_BBLOCK        512\n# define WHIRLPOOL_COUNTER       (256/8)\n\ntypedef struct {\n    union {\n        unsigned char c[WHIRLPOOL_DIGEST_LENGTH];\n        /* double q is here to ensure 64-bit alignment */\n        double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)];\n    } H;\n    unsigned char data[WHIRLPOOL_BBLOCK / 8];\n    unsigned int bitoff;\n    size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)];\n} WHIRLPOOL_CTX;\n\nint WHIRLPOOL_Init(WHIRLPOOL_CTX *c);\nint WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *inp, size_t bytes);\nvoid WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *inp, size_t bits);\nint WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c);\nunsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md);\n\n# ifdef __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/x509.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509_H\n# define HEADER_X509_H\n\n# include <openssl/e_os2.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/safestack.h>\n# include <openssl/ec.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/rsa.h>\n#  include <openssl/dsa.h>\n#  include <openssl/dh.h>\n# endif\n\n# include <openssl/sha.h>\n# include <openssl/x509err.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n\n/* Flags for X509_get_signature_info() */\n/* Signature info is valid */\n# define X509_SIG_INFO_VALID     0x1\n/* Signature is suitable for TLS use */\n# define X509_SIG_INFO_TLS       0x2\n\n# define X509_FILETYPE_PEM       1\n# define X509_FILETYPE_ASN1      2\n# define X509_FILETYPE_DEFAULT   3\n\n# define X509v3_KU_DIGITAL_SIGNATURE     0x0080\n# define X509v3_KU_NON_REPUDIATION       0x0040\n# define X509v3_KU_KEY_ENCIPHERMENT      0x0020\n# define X509v3_KU_DATA_ENCIPHERMENT     0x0010\n# define X509v3_KU_KEY_AGREEMENT         0x0008\n# define X509v3_KU_KEY_CERT_SIGN         0x0004\n# define X509v3_KU_CRL_SIGN              0x0002\n# define X509v3_KU_ENCIPHER_ONLY         0x0001\n# define X509v3_KU_DECIPHER_ONLY         0x8000\n# define X509v3_KU_UNDEF                 0xffff\n\nstruct X509_algor_st {\n    ASN1_OBJECT *algorithm;\n    ASN1_TYPE *parameter;\n} /* X509_ALGOR */ ;\n\ntypedef STACK_OF(X509_ALGOR) X509_ALGORS;\n\ntypedef struct X509_val_st {\n    ASN1_TIME *notBefore;\n    ASN1_TIME *notAfter;\n} X509_VAL;\n\ntypedef struct X509_sig_st X509_SIG;\n\ntypedef struct X509_name_entry_st X509_NAME_ENTRY;\n\nDEFINE_STACK_OF(X509_NAME_ENTRY)\n\nDEFINE_STACK_OF(X509_NAME)\n\n# define X509_EX_V_NETSCAPE_HACK         0x8000\n# define X509_EX_V_INIT                  0x0001\ntypedef struct X509_extension_st X509_EXTENSION;\n\ntypedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;\n\nDEFINE_STACK_OF(X509_EXTENSION)\n\ntypedef struct x509_attributes_st X509_ATTRIBUTE;\n\nDEFINE_STACK_OF(X509_ATTRIBUTE)\n\ntypedef struct X509_req_info_st X509_REQ_INFO;\n\ntypedef struct X509_req_st X509_REQ;\n\ntypedef struct x509_cert_aux_st X509_CERT_AUX;\n\ntypedef struct x509_cinf_st X509_CINF;\n\nDEFINE_STACK_OF(X509)\n\n/* This is used for a table of trust checking functions */\n\ntypedef struct x509_trust_st {\n    int trust;\n    int flags;\n    int (*check_trust) (struct x509_trust_st *, X509 *, int);\n    char *name;\n    int arg1;\n    void *arg2;\n} X509_TRUST;\n\nDEFINE_STACK_OF(X509_TRUST)\n\n/* standard trust ids */\n\n# define X509_TRUST_DEFAULT      0 /* Only valid in purpose settings */\n\n# define X509_TRUST_COMPAT       1\n# define X509_TRUST_SSL_CLIENT   2\n# define X509_TRUST_SSL_SERVER   3\n# define X509_TRUST_EMAIL        4\n# define X509_TRUST_OBJECT_SIGN  5\n# define X509_TRUST_OCSP_SIGN    6\n# define X509_TRUST_OCSP_REQUEST 7\n# define X509_TRUST_TSA          8\n\n/* Keep these up to date! */\n# define X509_TRUST_MIN          1\n# define X509_TRUST_MAX          8\n\n/* trust_flags values */\n# define X509_TRUST_DYNAMIC      (1U << 0)\n# define X509_TRUST_DYNAMIC_NAME (1U << 1)\n/* No compat trust if self-signed, preempts \"DO_SS\" */\n# define X509_TRUST_NO_SS_COMPAT (1U << 2)\n/* Compat trust if no explicit accepted trust EKUs */\n# define X509_TRUST_DO_SS_COMPAT (1U << 3)\n/* Accept \"anyEKU\" as a wildcard trust OID */\n# define X509_TRUST_OK_ANY_EKU   (1U << 4)\n\n/* check_trust return codes */\n\n# define X509_TRUST_TRUSTED      1\n# define X509_TRUST_REJECTED     2\n# define X509_TRUST_UNTRUSTED    3\n\n/* Flags for X509_print_ex() */\n\n# define X509_FLAG_COMPAT                0\n# define X509_FLAG_NO_HEADER             1L\n# define X509_FLAG_NO_VERSION            (1L << 1)\n# define X509_FLAG_NO_SERIAL             (1L << 2)\n# define X509_FLAG_NO_SIGNAME            (1L << 3)\n# define X509_FLAG_NO_ISSUER             (1L << 4)\n# define X509_FLAG_NO_VALIDITY           (1L << 5)\n# define X509_FLAG_NO_SUBJECT            (1L << 6)\n# define X509_FLAG_NO_PUBKEY             (1L << 7)\n# define X509_FLAG_NO_EXTENSIONS         (1L << 8)\n# define X509_FLAG_NO_SIGDUMP            (1L << 9)\n# define X509_FLAG_NO_AUX                (1L << 10)\n# define X509_FLAG_NO_ATTRIBUTES         (1L << 11)\n# define X509_FLAG_NO_IDS                (1L << 12)\n\n/* Flags specific to X509_NAME_print_ex() */\n\n/* The field separator information */\n\n# define XN_FLAG_SEP_MASK        (0xf << 16)\n\n# define XN_FLAG_COMPAT          0/* Traditional; use old X509_NAME_print */\n# define XN_FLAG_SEP_COMMA_PLUS  (1 << 16)/* RFC2253 ,+ */\n# define XN_FLAG_SEP_CPLUS_SPC   (2 << 16)/* ,+ spaced: more readable */\n# define XN_FLAG_SEP_SPLUS_SPC   (3 << 16)/* ;+ spaced */\n# define XN_FLAG_SEP_MULTILINE   (4 << 16)/* One line per field */\n\n# define XN_FLAG_DN_REV          (1 << 20)/* Reverse DN order */\n\n/* How the field name is shown */\n\n# define XN_FLAG_FN_MASK         (0x3 << 21)\n\n# define XN_FLAG_FN_SN           0/* Object short name */\n# define XN_FLAG_FN_LN           (1 << 21)/* Object long name */\n# define XN_FLAG_FN_OID          (2 << 21)/* Always use OIDs */\n# define XN_FLAG_FN_NONE         (3 << 21)/* No field names */\n\n# define XN_FLAG_SPC_EQ          (1 << 23)/* Put spaces round '=' */\n\n/*\n * This determines if we dump fields we don't recognise: RFC2253 requires\n * this.\n */\n\n# define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24)\n\n# define XN_FLAG_FN_ALIGN        (1 << 25)/* Align field names to 20\n                                           * characters */\n\n/* Complete set of RFC2253 flags */\n\n# define XN_FLAG_RFC2253 (ASN1_STRFLGS_RFC2253 | \\\n                        XN_FLAG_SEP_COMMA_PLUS | \\\n                        XN_FLAG_DN_REV | \\\n                        XN_FLAG_FN_SN | \\\n                        XN_FLAG_DUMP_UNKNOWN_FIELDS)\n\n/* readable oneline form */\n\n# define XN_FLAG_ONELINE (ASN1_STRFLGS_RFC2253 | \\\n                        ASN1_STRFLGS_ESC_QUOTE | \\\n                        XN_FLAG_SEP_CPLUS_SPC | \\\n                        XN_FLAG_SPC_EQ | \\\n                        XN_FLAG_FN_SN)\n\n/* readable multiline form */\n\n# define XN_FLAG_MULTILINE (ASN1_STRFLGS_ESC_CTRL | \\\n                        ASN1_STRFLGS_ESC_MSB | \\\n                        XN_FLAG_SEP_MULTILINE | \\\n                        XN_FLAG_SPC_EQ | \\\n                        XN_FLAG_FN_LN | \\\n                        XN_FLAG_FN_ALIGN)\n\nDEFINE_STACK_OF(X509_REVOKED)\n\ntypedef struct X509_crl_info_st X509_CRL_INFO;\n\nDEFINE_STACK_OF(X509_CRL)\n\ntypedef struct private_key_st {\n    int version;\n    /* The PKCS#8 data types */\n    X509_ALGOR *enc_algor;\n    ASN1_OCTET_STRING *enc_pkey; /* encrypted pub key */\n    /* When decrypted, the following will not be NULL */\n    EVP_PKEY *dec_pkey;\n    /* used to encrypt and decrypt */\n    int key_length;\n    char *key_data;\n    int key_free;               /* true if we should auto free key_data */\n    /* expanded version of 'enc_algor' */\n    EVP_CIPHER_INFO cipher;\n} X509_PKEY;\n\ntypedef struct X509_info_st {\n    X509 *x509;\n    X509_CRL *crl;\n    X509_PKEY *x_pkey;\n    EVP_CIPHER_INFO enc_cipher;\n    int enc_len;\n    char *enc_data;\n} X509_INFO;\n\nDEFINE_STACK_OF(X509_INFO)\n\n/*\n * The next 2 structures and their 8 routines are used to manipulate Netscape's\n * spki structures - useful if you are writing a CA web page\n */\ntypedef struct Netscape_spkac_st {\n    X509_PUBKEY *pubkey;\n    ASN1_IA5STRING *challenge;  /* challenge sent in atlas >= PR2 */\n} NETSCAPE_SPKAC;\n\ntypedef struct Netscape_spki_st {\n    NETSCAPE_SPKAC *spkac;      /* signed public key and challenge */\n    X509_ALGOR sig_algor;\n    ASN1_BIT_STRING *signature;\n} NETSCAPE_SPKI;\n\n/* Netscape certificate sequence structure */\ntypedef struct Netscape_certificate_sequence {\n    ASN1_OBJECT *type;\n    STACK_OF(X509) *certs;\n} NETSCAPE_CERT_SEQUENCE;\n\n/*- Unused (and iv length is wrong)\ntypedef struct CBCParameter_st\n        {\n        unsigned char iv[8];\n        } CBC_PARAM;\n*/\n\n/* Password based encryption structure */\n\ntypedef struct PBEPARAM_st {\n    ASN1_OCTET_STRING *salt;\n    ASN1_INTEGER *iter;\n} PBEPARAM;\n\n/* Password based encryption V2 structures */\n\ntypedef struct PBE2PARAM_st {\n    X509_ALGOR *keyfunc;\n    X509_ALGOR *encryption;\n} PBE2PARAM;\n\ntypedef struct PBKDF2PARAM_st {\n/* Usually OCTET STRING but could be anything */\n    ASN1_TYPE *salt;\n    ASN1_INTEGER *iter;\n    ASN1_INTEGER *keylength;\n    X509_ALGOR *prf;\n} PBKDF2PARAM;\n\n#ifndef OPENSSL_NO_SCRYPT\ntypedef struct SCRYPT_PARAMS_st {\n    ASN1_OCTET_STRING *salt;\n    ASN1_INTEGER *costParameter;\n    ASN1_INTEGER *blockSize;\n    ASN1_INTEGER *parallelizationParameter;\n    ASN1_INTEGER *keyLength;\n} SCRYPT_PARAMS;\n#endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n# include <openssl/x509_vfy.h>\n# include <openssl/pkcs7.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define X509_EXT_PACK_UNKNOWN   1\n# define X509_EXT_PACK_STRING    2\n\n# define         X509_extract_key(x)     X509_get_pubkey(x)/*****/\n# define         X509_REQ_extract_key(a) X509_REQ_get_pubkey(a)\n# define         X509_name_cmp(a,b)      X509_NAME_cmp((a),(b))\n\nvoid X509_CRL_set_default_method(const X509_CRL_METHOD *meth);\nX509_CRL_METHOD *X509_CRL_METHOD_new(int (*crl_init) (X509_CRL *crl),\n                                     int (*crl_free) (X509_CRL *crl),\n                                     int (*crl_lookup) (X509_CRL *crl,\n                                                        X509_REVOKED **ret,\n                                                        ASN1_INTEGER *ser,\n                                                        X509_NAME *issuer),\n                                     int (*crl_verify) (X509_CRL *crl,\n                                                        EVP_PKEY *pk));\nvoid X509_CRL_METHOD_free(X509_CRL_METHOD *m);\n\nvoid X509_CRL_set_meth_data(X509_CRL *crl, void *dat);\nvoid *X509_CRL_get_meth_data(X509_CRL *crl);\n\nconst char *X509_verify_cert_error_string(long n);\n\nint X509_verify(X509 *a, EVP_PKEY *r);\n\nint X509_REQ_verify(X509_REQ *a, EVP_PKEY *r);\nint X509_CRL_verify(X509_CRL *a, EVP_PKEY *r);\nint NETSCAPE_SPKI_verify(NETSCAPE_SPKI *a, EVP_PKEY *r);\n\nNETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str, int len);\nchar *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *x);\nEVP_PKEY *NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *x);\nint NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey);\n\nint NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);\n\nint X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent);\nint X509_signature_print(BIO *bp, const X509_ALGOR *alg,\n                         const ASN1_STRING *sig);\n\nint X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);\n# ifndef OPENSSL_NO_OCSP\nint X509_http_nbio(OCSP_REQ_CTX *rctx, X509 **pcert);\n# endif\nint X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx);\nint X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_CRL_sign_ctx(X509_CRL *x, EVP_MD_CTX *ctx);\n# ifndef OPENSSL_NO_OCSP\nint X509_CRL_http_nbio(OCSP_REQ_CTX *rctx, X509_CRL **pcrl);\n# endif\nint NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);\n\nint X509_pubkey_digest(const X509 *data, const EVP_MD *type,\n                       unsigned char *md, unsigned int *len);\nint X509_digest(const X509 *data, const EVP_MD *type,\n                unsigned char *md, unsigned int *len);\nint X509_CRL_digest(const X509_CRL *data, const EVP_MD *type,\n                    unsigned char *md, unsigned int *len);\nint X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,\n                    unsigned char *md, unsigned int *len);\nint X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,\n                     unsigned char *md, unsigned int *len);\n\n# ifndef OPENSSL_NO_STDIO\nX509 *d2i_X509_fp(FILE *fp, X509 **x509);\nint i2d_X509_fp(FILE *fp, X509 *x509);\nX509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl);\nint i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl);\nX509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req);\nint i2d_X509_REQ_fp(FILE *fp, X509_REQ *req);\n#  ifndef OPENSSL_NO_RSA\nRSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa);\nint i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa);\nRSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa);\nint i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa);\nRSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa);\nint i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa);\n#  endif\n#  ifndef OPENSSL_NO_DSA\nDSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa);\nint i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa);\nDSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa);\nint i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa);\n#  endif\n#  ifndef OPENSSL_NO_EC\nEC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);\nint i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);\nEC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);\nint i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);\n#  endif\nX509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8);\nint i2d_PKCS8_fp(FILE *fp, X509_SIG *p8);\nPKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,\n                                                PKCS8_PRIV_KEY_INFO **p8inf);\nint i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf);\nint i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key);\nint i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a);\nint i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a);\n# endif\n\nX509 *d2i_X509_bio(BIO *bp, X509 **x509);\nint i2d_X509_bio(BIO *bp, X509 *x509);\nX509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl);\nint i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl);\nX509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req);\nint i2d_X509_REQ_bio(BIO *bp, X509_REQ *req);\n#  ifndef OPENSSL_NO_RSA\nRSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa);\nint i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa);\nRSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa);\nint i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa);\nRSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa);\nint i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa);\n#  endif\n#  ifndef OPENSSL_NO_DSA\nDSA *d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa);\nint i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa);\nDSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa);\nint i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa);\n#  endif\n#  ifndef OPENSSL_NO_EC\nEC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);\nint i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);\nEC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);\nint i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);\n#  endif\nX509_SIG *d2i_PKCS8_bio(BIO *bp, X509_SIG **p8);\nint i2d_PKCS8_bio(BIO *bp, X509_SIG *p8);\nPKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,\n                                                 PKCS8_PRIV_KEY_INFO **p8inf);\nint i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf);\nint i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key);\nint i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a);\nint i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a);\n\nX509 *X509_dup(X509 *x509);\nX509_ATTRIBUTE *X509_ATTRIBUTE_dup(X509_ATTRIBUTE *xa);\nX509_EXTENSION *X509_EXTENSION_dup(X509_EXTENSION *ex);\nX509_CRL *X509_CRL_dup(X509_CRL *crl);\nX509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);\nX509_REQ *X509_REQ_dup(X509_REQ *req);\nX509_ALGOR *X509_ALGOR_dup(X509_ALGOR *xn);\nint X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype,\n                    void *pval);\nvoid X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype,\n                     const void **ppval, const X509_ALGOR *algor);\nvoid X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);\nint X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);\nint X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src);\n\nX509_NAME *X509_NAME_dup(X509_NAME *xn);\nX509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne);\n\nint X509_cmp_time(const ASN1_TIME *s, time_t *t);\nint X509_cmp_current_time(const ASN1_TIME *s);\nASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);\nASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,\n                            int offset_day, long offset_sec, time_t *t);\nASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);\n\nconst char *X509_get_default_cert_area(void);\nconst char *X509_get_default_cert_dir(void);\nconst char *X509_get_default_cert_file(void);\nconst char *X509_get_default_cert_dir_env(void);\nconst char *X509_get_default_cert_file_env(void);\nconst char *X509_get_default_private_dir(void);\n\nX509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);\nX509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey);\n\nDECLARE_ASN1_FUNCTIONS(X509_ALGOR)\nDECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS)\nDECLARE_ASN1_FUNCTIONS(X509_VAL)\n\nDECLARE_ASN1_FUNCTIONS(X509_PUBKEY)\n\nint X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey);\nEVP_PKEY *X509_PUBKEY_get0(X509_PUBKEY *key);\nEVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key);\nint X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain);\nlong X509_get_pathlen(X509 *x);\nint i2d_PUBKEY(EVP_PKEY *a, unsigned char **pp);\nEVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length);\n# ifndef OPENSSL_NO_RSA\nint i2d_RSA_PUBKEY(RSA *a, unsigned char **pp);\nRSA *d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length);\n# endif\n# ifndef OPENSSL_NO_DSA\nint i2d_DSA_PUBKEY(DSA *a, unsigned char **pp);\nDSA *d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length);\n# endif\n# ifndef OPENSSL_NO_EC\nint i2d_EC_PUBKEY(EC_KEY *a, unsigned char **pp);\nEC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length);\n# endif\n\nDECLARE_ASN1_FUNCTIONS(X509_SIG)\nvoid X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg,\n                   const ASN1_OCTET_STRING **pdigest);\nvoid X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg,\n                   ASN1_OCTET_STRING **pdigest);\n\nDECLARE_ASN1_FUNCTIONS(X509_REQ_INFO)\nDECLARE_ASN1_FUNCTIONS(X509_REQ)\n\nDECLARE_ASN1_FUNCTIONS(X509_ATTRIBUTE)\nX509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value);\n\nDECLARE_ASN1_FUNCTIONS(X509_EXTENSION)\nDECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)\n\nDECLARE_ASN1_FUNCTIONS(X509_NAME_ENTRY)\n\nDECLARE_ASN1_FUNCTIONS(X509_NAME)\n\nint X509_NAME_set(X509_NAME **xn, X509_NAME *name);\n\nDECLARE_ASN1_FUNCTIONS(X509_CINF)\n\nDECLARE_ASN1_FUNCTIONS(X509)\nDECLARE_ASN1_FUNCTIONS(X509_CERT_AUX)\n\n#define X509_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509, l, p, newf, dupf, freef)\nint X509_set_ex_data(X509 *r, int idx, void *arg);\nvoid *X509_get_ex_data(X509 *r, int idx);\nint i2d_X509_AUX(X509 *a, unsigned char **pp);\nX509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length);\n\nint i2d_re_X509_tbs(X509 *x, unsigned char **pp);\n\nint X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid,\n                      int *secbits, uint32_t *flags);\nvoid X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid,\n                       int secbits, uint32_t flags);\n\nint X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits,\n                            uint32_t *flags);\n\nvoid X509_get0_signature(const ASN1_BIT_STRING **psig,\n                         const X509_ALGOR **palg, const X509 *x);\nint X509_get_signature_nid(const X509 *x);\n\nint X509_trusted(const X509 *x);\nint X509_alias_set1(X509 *x, const unsigned char *name, int len);\nint X509_keyid_set1(X509 *x, const unsigned char *id, int len);\nunsigned char *X509_alias_get0(X509 *x, int *len);\nunsigned char *X509_keyid_get0(X509 *x, int *len);\nint (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *,\n                                                                int);\nint X509_TRUST_set(int *t, int trust);\nint X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj);\nint X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj);\nvoid X509_trust_clear(X509 *x);\nvoid X509_reject_clear(X509 *x);\n\nSTACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x);\nSTACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x);\n\nDECLARE_ASN1_FUNCTIONS(X509_REVOKED)\nDECLARE_ASN1_FUNCTIONS(X509_CRL_INFO)\nDECLARE_ASN1_FUNCTIONS(X509_CRL)\n\nint X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev);\nint X509_CRL_get0_by_serial(X509_CRL *crl,\n                            X509_REVOKED **ret, ASN1_INTEGER *serial);\nint X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret, X509 *x);\n\nX509_PKEY *X509_PKEY_new(void);\nvoid X509_PKEY_free(X509_PKEY *a);\n\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKI)\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKAC)\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_CERT_SEQUENCE)\n\nX509_INFO *X509_INFO_new(void);\nvoid X509_INFO_free(X509_INFO *a);\nchar *X509_NAME_oneline(const X509_NAME *a, char *buf, int size);\n\nint ASN1_verify(i2d_of_void *i2d, X509_ALGOR *algor1,\n                ASN1_BIT_STRING *signature, char *data, EVP_PKEY *pkey);\n\nint ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data,\n                unsigned char *md, unsigned int *len);\n\nint ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1,\n              X509_ALGOR *algor2, ASN1_BIT_STRING *signature,\n              char *data, EVP_PKEY *pkey, const EVP_MD *type);\n\nint ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *data,\n                     unsigned char *md, unsigned int *len);\n\nint ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                     ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey);\n\nint ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                   X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *data,\n                   EVP_PKEY *pkey, const EVP_MD *type);\nint ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                       X509_ALGOR *algor2, ASN1_BIT_STRING *signature,\n                       void *asn, EVP_MD_CTX *ctx);\n\nlong X509_get_version(const X509 *x);\nint X509_set_version(X509 *x, long version);\nint X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial);\nASN1_INTEGER *X509_get_serialNumber(X509 *x);\nconst ASN1_INTEGER *X509_get0_serialNumber(const X509 *x);\nint X509_set_issuer_name(X509 *x, X509_NAME *name);\nX509_NAME *X509_get_issuer_name(const X509 *a);\nint X509_set_subject_name(X509 *x, X509_NAME *name);\nX509_NAME *X509_get_subject_name(const X509 *a);\nconst ASN1_TIME * X509_get0_notBefore(const X509 *x);\nASN1_TIME *X509_getm_notBefore(const X509 *x);\nint X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);\nconst ASN1_TIME *X509_get0_notAfter(const X509 *x);\nASN1_TIME *X509_getm_notAfter(const X509 *x);\nint X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);\nint X509_set_pubkey(X509 *x, EVP_PKEY *pkey);\nint X509_up_ref(X509 *x);\nint X509_get_signature_type(const X509 *x);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_get_notBefore X509_getm_notBefore\n#  define X509_get_notAfter X509_getm_notAfter\n#  define X509_set_notBefore X509_set1_notBefore\n#  define X509_set_notAfter X509_set1_notAfter\n#endif\n\n\n/*\n * This one is only used so that a binary form can output, as in\n * i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &buf)\n */\nX509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x);\nconst STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x);\nvoid X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **piuid,\n                    const ASN1_BIT_STRING **psuid);\nconst X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x);\n\nEVP_PKEY *X509_get0_pubkey(const X509 *x);\nEVP_PKEY *X509_get_pubkey(X509 *x);\nASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x);\nint X509_certificate_type(const X509 *x, const EVP_PKEY *pubkey);\n\nlong X509_REQ_get_version(const X509_REQ *req);\nint X509_REQ_set_version(X509_REQ *x, long version);\nX509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);\nint X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);\nvoid X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,\n                             const X509_ALGOR **palg);\nvoid X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig);\nint X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg);\nint X509_REQ_get_signature_nid(const X509_REQ *req);\nint i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);\nint X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);\nEVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req);\nEVP_PKEY *X509_REQ_get0_pubkey(X509_REQ *req);\nX509_PUBKEY *X509_REQ_get_X509_PUBKEY(X509_REQ *req);\nint X509_REQ_extension_nid(int nid);\nint *X509_REQ_get_extension_nids(void);\nvoid X509_REQ_set_extension_nids(int *nids);\nSTACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);\nint X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts,\n                                int nid);\nint X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts);\nint X509_REQ_get_attr_count(const X509_REQ *req);\nint X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos);\nint X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,\n                             int lastpos);\nX509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc);\nX509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc);\nint X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);\nint X509_REQ_add1_attr_by_OBJ(X509_REQ *req,\n                              const ASN1_OBJECT *obj, int type,\n                              const unsigned char *bytes, int len);\nint X509_REQ_add1_attr_by_NID(X509_REQ *req,\n                              int nid, int type,\n                              const unsigned char *bytes, int len);\nint X509_REQ_add1_attr_by_txt(X509_REQ *req,\n                              const char *attrname, int type,\n                              const unsigned char *bytes, int len);\n\nint X509_CRL_set_version(X509_CRL *x, long version);\nint X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);\nint X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);\nint X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);\nint X509_CRL_sort(X509_CRL *crl);\nint X509_CRL_up_ref(X509_CRL *crl);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_CRL_set_lastUpdate X509_CRL_set1_lastUpdate\n#  define X509_CRL_set_nextUpdate X509_CRL_set1_nextUpdate\n#endif\n\nlong X509_CRL_get_version(const X509_CRL *crl);\nconst ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);\nconst ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl);\nDEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl))\nDEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))\nX509_NAME *X509_CRL_get_issuer(const X509_CRL *crl);\nconst STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);\nSTACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl);\nvoid X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig,\n                             const X509_ALGOR **palg);\nint X509_CRL_get_signature_nid(const X509_CRL *crl);\nint i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp);\n\nconst ASN1_INTEGER *X509_REVOKED_get0_serialNumber(const X509_REVOKED *x);\nint X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial);\nconst ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *x);\nint X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);\nconst STACK_OF(X509_EXTENSION) *\nX509_REVOKED_get0_extensions(const X509_REVOKED *r);\n\nX509_CRL *X509_CRL_diff(X509_CRL *base, X509_CRL *newer,\n                        EVP_PKEY *skey, const EVP_MD *md, unsigned int flags);\n\nint X509_REQ_check_private_key(X509_REQ *x509, EVP_PKEY *pkey);\n\nint X509_check_private_key(const X509 *x509, const EVP_PKEY *pkey);\nint X509_chain_check_suiteb(int *perror_depth,\n                            X509 *x, STACK_OF(X509) *chain,\n                            unsigned long flags);\nint X509_CRL_check_suiteb(X509_CRL *crl, EVP_PKEY *pk, unsigned long flags);\nSTACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);\n\nint X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);\nunsigned long X509_issuer_and_serial_hash(X509 *a);\n\nint X509_issuer_name_cmp(const X509 *a, const X509 *b);\nunsigned long X509_issuer_name_hash(X509 *a);\n\nint X509_subject_name_cmp(const X509 *a, const X509 *b);\nunsigned long X509_subject_name_hash(X509 *x);\n\n# ifndef OPENSSL_NO_MD5\nunsigned long X509_issuer_name_hash_old(X509 *a);\nunsigned long X509_subject_name_hash_old(X509 *x);\n# endif\n\nint X509_cmp(const X509 *a, const X509 *b);\nint X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);\nunsigned long X509_NAME_hash(X509_NAME *x);\nunsigned long X509_NAME_hash_old(X509_NAME *x);\n\nint X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);\nint X509_CRL_match(const X509_CRL *a, const X509_CRL *b);\nint X509_aux_print(BIO *out, X509 *x, int indent);\n# ifndef OPENSSL_NO_STDIO\nint X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag,\n                     unsigned long cflag);\nint X509_print_fp(FILE *bp, X509 *x);\nint X509_CRL_print_fp(FILE *bp, X509_CRL *x);\nint X509_REQ_print_fp(FILE *bp, X509_REQ *req);\nint X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, int indent,\n                          unsigned long flags);\n# endif\n\nint X509_NAME_print(BIO *bp, const X509_NAME *name, int obase);\nint X509_NAME_print_ex(BIO *out, const X509_NAME *nm, int indent,\n                       unsigned long flags);\nint X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag,\n                  unsigned long cflag);\nint X509_print(BIO *bp, X509 *x);\nint X509_ocspid_print(BIO *bp, X509 *x);\nint X509_CRL_print_ex(BIO *out, X509_CRL *x, unsigned long nmflag);\nint X509_CRL_print(BIO *bp, X509_CRL *x);\nint X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag,\n                      unsigned long cflag);\nint X509_REQ_print(BIO *bp, X509_REQ *req);\n\nint X509_NAME_entry_count(const X509_NAME *name);\nint X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);\nint X509_NAME_get_text_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj,\n                              char *buf, int len);\n\n/*\n * NOTE: you should be passing -1, not 0 as lastpos. The functions that use\n * lastpos, search after that position on.\n */\nint X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);\nint X509_NAME_get_index_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj,\n                               int lastpos);\nX509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc);\nX509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc);\nint X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne,\n                        int loc, int set);\nint X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nint X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne,\n                                               const char *field, int type,\n                                               const unsigned char *bytes,\n                                               int len);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid,\n                                               int type,\n                                               const unsigned char *bytes,\n                                               int len);\nint X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne,\n                                               const ASN1_OBJECT *obj, int type,\n                                               const unsigned char *bytes,\n                                               int len);\nint X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj);\nint X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,\n                             const unsigned char *bytes, int len);\nASN1_OBJECT *X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne);\nASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);\nint X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne);\n\nint X509_NAME_get0_der(X509_NAME *nm, const unsigned char **pder,\n                       size_t *pderlen);\n\nint X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x);\nint X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x,\n                          int nid, int lastpos);\nint X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x,\n                          const ASN1_OBJECT *obj, int lastpos);\nint X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x,\n                               int crit, int lastpos);\nX509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc);\nX509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc);\nSTACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x,\n                                         X509_EXTENSION *ex, int loc);\n\nint X509_get_ext_count(const X509 *x);\nint X509_get_ext_by_NID(const X509 *x, int nid, int lastpos);\nint X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos);\nint X509_get_ext_by_critical(const X509 *x, int crit, int lastpos);\nX509_EXTENSION *X509_get_ext(const X509 *x, int loc);\nX509_EXTENSION *X509_delete_ext(X509 *x, int loc);\nint X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc);\nvoid *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx);\nint X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,\n                      unsigned long flags);\n\nint X509_CRL_get_ext_count(const X509_CRL *x);\nint X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos);\nint X509_CRL_get_ext_by_OBJ(const X509_CRL *x, const ASN1_OBJECT *obj,\n                            int lastpos);\nint X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos);\nX509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc);\nX509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc);\nint X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc);\nvoid *X509_CRL_get_ext_d2i(const X509_CRL *x, int nid, int *crit, int *idx);\nint X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit,\n                          unsigned long flags);\n\nint X509_REVOKED_get_ext_count(const X509_REVOKED *x);\nint X509_REVOKED_get_ext_by_NID(const X509_REVOKED *x, int nid, int lastpos);\nint X509_REVOKED_get_ext_by_OBJ(const X509_REVOKED *x, const ASN1_OBJECT *obj,\n                                int lastpos);\nint X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit,\n                                     int lastpos);\nX509_EXTENSION *X509_REVOKED_get_ext(const X509_REVOKED *x, int loc);\nX509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc);\nint X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc);\nvoid *X509_REVOKED_get_ext_d2i(const X509_REVOKED *x, int nid, int *crit,\n                               int *idx);\nint X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit,\n                              unsigned long flags);\n\nX509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex,\n                                             int nid, int crit,\n                                             ASN1_OCTET_STRING *data);\nX509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex,\n                                             const ASN1_OBJECT *obj, int crit,\n                                             ASN1_OCTET_STRING *data);\nint X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj);\nint X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);\nint X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data);\nASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex);\nASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);\nint X509_EXTENSION_get_critical(const X509_EXTENSION *ex);\n\nint X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x);\nint X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid,\n                           int lastpos);\nint X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk,\n                           const ASN1_OBJECT *obj, int lastpos);\nX509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc);\nX509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,\n                                           X509_ATTRIBUTE *attr);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, const ASN1_OBJECT *obj,\n                                                  int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, int nid, int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, const char *attrname,\n                                                  int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nvoid *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,\n                              const ASN1_OBJECT *obj, int lastpos, int type);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,\n                                             int atrtype, const void *data,\n                                             int len);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,\n                                             const ASN1_OBJECT *obj,\n                                             int atrtype, const void *data,\n                                             int len);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr,\n                                             const char *atrname, int type,\n                                             const unsigned char *bytes,\n                                             int len);\nint X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj);\nint X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,\n                             const void *data, int len);\nvoid *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype,\n                               void *data);\nint X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr);\nASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr);\nASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx);\n\nint EVP_PKEY_get_attr_count(const EVP_PKEY *key);\nint EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos);\nint EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj,\n                             int lastpos);\nX509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc);\nX509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc);\nint EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);\nint EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key,\n                              const ASN1_OBJECT *obj, int type,\n                              const unsigned char *bytes, int len);\nint EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key,\n                              int nid, int type,\n                              const unsigned char *bytes, int len);\nint EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key,\n                              const char *attrname, int type,\n                              const unsigned char *bytes, int len);\n\nint X509_verify_cert(X509_STORE_CTX *ctx);\n\n/* lookup a cert from a X509 STACK */\nX509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,\n                                     ASN1_INTEGER *serial);\nX509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name);\n\nDECLARE_ASN1_FUNCTIONS(PBEPARAM)\nDECLARE_ASN1_FUNCTIONS(PBE2PARAM)\nDECLARE_ASN1_FUNCTIONS(PBKDF2PARAM)\n#ifndef OPENSSL_NO_SCRYPT\nDECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS)\n#endif\n\nint PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,\n                         const unsigned char *salt, int saltlen);\n\nX509_ALGOR *PKCS5_pbe_set(int alg, int iter,\n                          const unsigned char *salt, int saltlen);\nX509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,\n                           unsigned char *salt, int saltlen);\nX509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,\n                              unsigned char *salt, int saltlen,\n                              unsigned char *aiv, int prf_nid);\n\n#ifndef OPENSSL_NO_SCRYPT\nX509_ALGOR *PKCS5_pbe2_set_scrypt(const EVP_CIPHER *cipher,\n                                  const unsigned char *salt, int saltlen,\n                                  unsigned char *aiv, uint64_t N, uint64_t r,\n                                  uint64_t p);\n#endif\n\nX509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,\n                             int prf_nid, int keylen);\n\n/* PKCS#8 utilities */\n\nDECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)\n\nEVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);\nPKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey);\n\nint PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj,\n                    int version, int ptype, void *pval,\n                    unsigned char *penc, int penclen);\nint PKCS8_pkey_get0(const ASN1_OBJECT **ppkalg,\n                    const unsigned char **pk, int *ppklen,\n                    const X509_ALGOR **pa, const PKCS8_PRIV_KEY_INFO *p8);\n\nconst STACK_OF(X509_ATTRIBUTE) *\nPKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8);\nint PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type,\n                                const unsigned char *bytes, int len);\n\nint X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj,\n                           int ptype, void *pval,\n                           unsigned char *penc, int penclen);\nint X509_PUBKEY_get0_param(ASN1_OBJECT **ppkalg,\n                           const unsigned char **pk, int *ppklen,\n                           X509_ALGOR **pa, X509_PUBKEY *pub);\n\nint X509_check_trust(X509 *x, int id, int flags);\nint X509_TRUST_get_count(void);\nX509_TRUST *X509_TRUST_get0(int idx);\nint X509_TRUST_get_by_id(int id);\nint X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int),\n                   const char *name, int arg1, void *arg2);\nvoid X509_TRUST_cleanup(void);\nint X509_TRUST_get_flags(const X509_TRUST *xp);\nchar *X509_TRUST_get0_name(const X509_TRUST *xp);\nint X509_TRUST_get_trust(const X509_TRUST *xp);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/x509_vfy.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509_VFY_H\n# define HEADER_X509_VFY_H\n\n/*\n * Protect against recursion, x509.h and x509_vfy.h each include the other.\n */\n# ifndef HEADER_X509_H\n#  include <openssl/x509.h>\n# endif\n\n# include <openssl/opensslconf.h>\n# include <openssl/lhash.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/symhacks.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\nSSL_CTX -> X509_STORE\n                -> X509_LOOKUP\n                        ->X509_LOOKUP_METHOD\n                -> X509_LOOKUP\n                        ->X509_LOOKUP_METHOD\n\nSSL     -> X509_STORE_CTX\n                ->X509_STORE\n\nThe X509_STORE holds the tables etc for verification stuff.\nA X509_STORE_CTX is used while validating a single certificate.\nThe X509_STORE has X509_LOOKUPs for looking up certs.\nThe X509_STORE then calls a function to actually verify the\ncertificate chain.\n*/\n\ntypedef enum {\n    X509_LU_NONE = 0,\n    X509_LU_X509, X509_LU_CRL\n} X509_LOOKUP_TYPE;\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n#define X509_LU_RETRY   -1\n#define X509_LU_FAIL    0\n#endif\n\nDEFINE_STACK_OF(X509_LOOKUP)\nDEFINE_STACK_OF(X509_OBJECT)\nDEFINE_STACK_OF(X509_VERIFY_PARAM)\n\nint X509_STORE_set_depth(X509_STORE *store, int depth);\n\ntypedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);\ntypedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);\ntypedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer,\n                                            X509_STORE_CTX *ctx, X509 *x);\ntypedef int (*X509_STORE_CTX_check_issued_fn)(X509_STORE_CTX *ctx,\n                                              X509 *x, X509 *issuer);\ntypedef int (*X509_STORE_CTX_check_revocation_fn)(X509_STORE_CTX *ctx);\ntypedef int (*X509_STORE_CTX_get_crl_fn)(X509_STORE_CTX *ctx,\n                                         X509_CRL **crl, X509 *x);\ntypedef int (*X509_STORE_CTX_check_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl);\ntypedef int (*X509_STORE_CTX_cert_crl_fn)(X509_STORE_CTX *ctx,\n                                          X509_CRL *crl, X509 *x);\ntypedef int (*X509_STORE_CTX_check_policy_fn)(X509_STORE_CTX *ctx);\ntypedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,\n                                                          X509_NAME *nm);\ntypedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(X509_STORE_CTX *ctx,\n                                                             X509_NAME *nm);\ntypedef int (*X509_STORE_CTX_cleanup_fn)(X509_STORE_CTX *ctx);\n\n\nvoid X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);\n\n# define X509_STORE_CTX_set_app_data(ctx,data) \\\n        X509_STORE_CTX_set_ex_data(ctx,0,data)\n# define X509_STORE_CTX_get_app_data(ctx) \\\n        X509_STORE_CTX_get_ex_data(ctx,0)\n\n# define X509_L_FILE_LOAD        1\n# define X509_L_ADD_DIR          2\n\n# define X509_LOOKUP_load_file(x,name,type) \\\n                X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(long)(type),NULL)\n\n# define X509_LOOKUP_add_dir(x,name,type) \\\n                X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(long)(type),NULL)\n\n# define         X509_V_OK                                       0\n# define         X509_V_ERR_UNSPECIFIED                          1\n# define         X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT            2\n# define         X509_V_ERR_UNABLE_TO_GET_CRL                    3\n# define         X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE     4\n# define         X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE      5\n# define         X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY   6\n# define         X509_V_ERR_CERT_SIGNATURE_FAILURE               7\n# define         X509_V_ERR_CRL_SIGNATURE_FAILURE                8\n# define         X509_V_ERR_CERT_NOT_YET_VALID                   9\n# define         X509_V_ERR_CERT_HAS_EXPIRED                     10\n# define         X509_V_ERR_CRL_NOT_YET_VALID                    11\n# define         X509_V_ERR_CRL_HAS_EXPIRED                      12\n# define         X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD       13\n# define         X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD        14\n# define         X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD       15\n# define         X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD       16\n# define         X509_V_ERR_OUT_OF_MEM                           17\n# define         X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT          18\n# define         X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN            19\n# define         X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY    20\n# define         X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE      21\n# define         X509_V_ERR_CERT_CHAIN_TOO_LONG                  22\n# define         X509_V_ERR_CERT_REVOKED                         23\n# define         X509_V_ERR_INVALID_CA                           24\n# define         X509_V_ERR_PATH_LENGTH_EXCEEDED                 25\n# define         X509_V_ERR_INVALID_PURPOSE                      26\n# define         X509_V_ERR_CERT_UNTRUSTED                       27\n# define         X509_V_ERR_CERT_REJECTED                        28\n/* These are 'informational' when looking for issuer cert */\n# define         X509_V_ERR_SUBJECT_ISSUER_MISMATCH              29\n# define         X509_V_ERR_AKID_SKID_MISMATCH                   30\n# define         X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH          31\n# define         X509_V_ERR_KEYUSAGE_NO_CERTSIGN                 32\n# define         X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER             33\n# define         X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION         34\n# define         X509_V_ERR_KEYUSAGE_NO_CRL_SIGN                 35\n# define         X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION     36\n# define         X509_V_ERR_INVALID_NON_CA                       37\n# define         X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED           38\n# define         X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE        39\n# define         X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED       40\n# define         X509_V_ERR_INVALID_EXTENSION                    41\n# define         X509_V_ERR_INVALID_POLICY_EXTENSION             42\n# define         X509_V_ERR_NO_EXPLICIT_POLICY                   43\n# define         X509_V_ERR_DIFFERENT_CRL_SCOPE                  44\n# define         X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE        45\n# define         X509_V_ERR_UNNESTED_RESOURCE                    46\n# define         X509_V_ERR_PERMITTED_VIOLATION                  47\n# define         X509_V_ERR_EXCLUDED_VIOLATION                   48\n# define         X509_V_ERR_SUBTREE_MINMAX                       49\n/* The application is not happy */\n# define         X509_V_ERR_APPLICATION_VERIFICATION             50\n# define         X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE          51\n# define         X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX        52\n# define         X509_V_ERR_UNSUPPORTED_NAME_SYNTAX              53\n# define         X509_V_ERR_CRL_PATH_VALIDATION_ERROR            54\n/* Another issuer check debug option */\n# define         X509_V_ERR_PATH_LOOP                            55\n/* Suite B mode algorithm violation */\n# define         X509_V_ERR_SUITE_B_INVALID_VERSION              56\n# define         X509_V_ERR_SUITE_B_INVALID_ALGORITHM            57\n# define         X509_V_ERR_SUITE_B_INVALID_CURVE                58\n# define         X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM  59\n# define         X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED              60\n# define         X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 61\n/* Host, email and IP check errors */\n# define         X509_V_ERR_HOSTNAME_MISMATCH                    62\n# define         X509_V_ERR_EMAIL_MISMATCH                       63\n# define         X509_V_ERR_IP_ADDRESS_MISMATCH                  64\n/* DANE TLSA errors */\n# define         X509_V_ERR_DANE_NO_MATCH                        65\n/* security level errors */\n# define         X509_V_ERR_EE_KEY_TOO_SMALL                     66\n# define         X509_V_ERR_CA_KEY_TOO_SMALL                     67\n# define         X509_V_ERR_CA_MD_TOO_WEAK                       68\n/* Caller error */\n# define         X509_V_ERR_INVALID_CALL                         69\n/* Issuer lookup error */\n# define         X509_V_ERR_STORE_LOOKUP                         70\n/* Certificate transparency */\n# define         X509_V_ERR_NO_VALID_SCTS                        71\n\n# define         X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION         72\n/* OCSP status errors */\n# define         X509_V_ERR_OCSP_VERIFY_NEEDED                   73  /* Need OCSP verification */\n# define         X509_V_ERR_OCSP_VERIFY_FAILED                   74  /* Couldn't verify cert through OCSP */\n# define         X509_V_ERR_OCSP_CERT_UNKNOWN                    75  /* Certificate wasn't recognized by the OCSP responder */\n# define         X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH         76\n# define         X509_V_ERR_NO_ISSUER_PUBLIC_KEY                 77\n# define         X509_V_ERR_UNSUPPORTED_SIGNATURE_ALGORITHM      78\n# define         X509_V_ERR_EC_KEY_EXPLICIT_PARAMS               79\n\n/* Certificate verify flags */\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_V_FLAG_CB_ISSUER_CHECK             0x0   /* Deprecated */\n# endif\n/* Use check time instead of current time */\n# define X509_V_FLAG_USE_CHECK_TIME              0x2\n/* Lookup CRLs */\n# define X509_V_FLAG_CRL_CHECK                   0x4\n/* Lookup CRLs for whole chain */\n# define X509_V_FLAG_CRL_CHECK_ALL               0x8\n/* Ignore unhandled critical extensions */\n# define X509_V_FLAG_IGNORE_CRITICAL             0x10\n/* Disable workarounds for broken certificates */\n# define X509_V_FLAG_X509_STRICT                 0x20\n/* Enable proxy certificate validation */\n# define X509_V_FLAG_ALLOW_PROXY_CERTS           0x40\n/* Enable policy checking */\n# define X509_V_FLAG_POLICY_CHECK                0x80\n/* Policy variable require-explicit-policy */\n# define X509_V_FLAG_EXPLICIT_POLICY             0x100\n/* Policy variable inhibit-any-policy */\n# define X509_V_FLAG_INHIBIT_ANY                 0x200\n/* Policy variable inhibit-policy-mapping */\n# define X509_V_FLAG_INHIBIT_MAP                 0x400\n/* Notify callback that policy is OK */\n# define X509_V_FLAG_NOTIFY_POLICY               0x800\n/* Extended CRL features such as indirect CRLs, alternate CRL signing keys */\n# define X509_V_FLAG_EXTENDED_CRL_SUPPORT        0x1000\n/* Delta CRL support */\n# define X509_V_FLAG_USE_DELTAS                  0x2000\n/* Check self-signed CA signature */\n# define X509_V_FLAG_CHECK_SS_SIGNATURE          0x4000\n/* Use trusted store first */\n# define X509_V_FLAG_TRUSTED_FIRST               0x8000\n/* Suite B 128 bit only mode: not normally used */\n# define X509_V_FLAG_SUITEB_128_LOS_ONLY         0x10000\n/* Suite B 192 bit only mode */\n# define X509_V_FLAG_SUITEB_192_LOS              0x20000\n/* Suite B 128 bit mode allowing 192 bit algorithms */\n# define X509_V_FLAG_SUITEB_128_LOS              0x30000\n/* Allow partial chains if at least one certificate is in trusted store */\n# define X509_V_FLAG_PARTIAL_CHAIN               0x80000\n/*\n * If the initial chain is not trusted, do not attempt to build an alternative\n * chain. Alternate chain checking was introduced in 1.1.0. Setting this flag\n * will force the behaviour to match that of previous versions.\n */\n# define X509_V_FLAG_NO_ALT_CHAINS               0x100000\n/* Do not check certificate/CRL validity against current time */\n# define X509_V_FLAG_NO_CHECK_TIME               0x200000\n\n# define X509_VP_FLAG_DEFAULT                    0x1\n# define X509_VP_FLAG_OVERWRITE                  0x2\n# define X509_VP_FLAG_RESET_FLAGS                0x4\n# define X509_VP_FLAG_LOCKED                     0x8\n# define X509_VP_FLAG_ONCE                       0x10\n\n/* Internal use: mask of policy related options */\n# define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \\\n                                | X509_V_FLAG_EXPLICIT_POLICY \\\n                                | X509_V_FLAG_INHIBIT_ANY \\\n                                | X509_V_FLAG_INHIBIT_MAP)\n\nint X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,\n                               X509_NAME *name);\nX509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,\n                                             X509_LOOKUP_TYPE type,\n                                             X509_NAME *name);\nX509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,\n                                        X509_OBJECT *x);\nint X509_OBJECT_up_ref_count(X509_OBJECT *a);\nX509_OBJECT *X509_OBJECT_new(void);\nvoid X509_OBJECT_free(X509_OBJECT *a);\nX509_LOOKUP_TYPE X509_OBJECT_get_type(const X509_OBJECT *a);\nX509 *X509_OBJECT_get0_X509(const X509_OBJECT *a);\nint X509_OBJECT_set1_X509(X509_OBJECT *a, X509 *obj);\nX509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *a);\nint X509_OBJECT_set1_X509_CRL(X509_OBJECT *a, X509_CRL *obj);\nX509_STORE *X509_STORE_new(void);\nvoid X509_STORE_free(X509_STORE *v);\nint X509_STORE_lock(X509_STORE *ctx);\nint X509_STORE_unlock(X509_STORE *ctx);\nint X509_STORE_up_ref(X509_STORE *v);\nSTACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *v);\n\nSTACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm);\nSTACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm);\nint X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);\nint X509_STORE_set_purpose(X509_STORE *ctx, int purpose);\nint X509_STORE_set_trust(X509_STORE *ctx, int trust);\nint X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);\nX509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);\n\nvoid X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify);\n#define X509_STORE_set_verify_func(ctx, func) \\\n            X509_STORE_set_verify((ctx),(func))\nvoid X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,\n                               X509_STORE_CTX_verify_fn verify);\nX509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);\nvoid X509_STORE_set_verify_cb(X509_STORE *ctx,\n                              X509_STORE_CTX_verify_cb verify_cb);\n# define X509_STORE_set_verify_cb_func(ctx,func) \\\n            X509_STORE_set_verify_cb((ctx),(func))\nX509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *ctx);\nvoid X509_STORE_set_get_issuer(X509_STORE *ctx,\n                               X509_STORE_CTX_get_issuer_fn get_issuer);\nX509_STORE_CTX_get_issuer_fn X509_STORE_get_get_issuer(X509_STORE *ctx);\nvoid X509_STORE_set_check_issued(X509_STORE *ctx,\n                                 X509_STORE_CTX_check_issued_fn check_issued);\nX509_STORE_CTX_check_issued_fn X509_STORE_get_check_issued(X509_STORE *ctx);\nvoid X509_STORE_set_check_revocation(X509_STORE *ctx,\n                                     X509_STORE_CTX_check_revocation_fn check_revocation);\nX509_STORE_CTX_check_revocation_fn X509_STORE_get_check_revocation(X509_STORE *ctx);\nvoid X509_STORE_set_get_crl(X509_STORE *ctx,\n                            X509_STORE_CTX_get_crl_fn get_crl);\nX509_STORE_CTX_get_crl_fn X509_STORE_get_get_crl(X509_STORE *ctx);\nvoid X509_STORE_set_check_crl(X509_STORE *ctx,\n                              X509_STORE_CTX_check_crl_fn check_crl);\nX509_STORE_CTX_check_crl_fn X509_STORE_get_check_crl(X509_STORE *ctx);\nvoid X509_STORE_set_cert_crl(X509_STORE *ctx,\n                             X509_STORE_CTX_cert_crl_fn cert_crl);\nX509_STORE_CTX_cert_crl_fn X509_STORE_get_cert_crl(X509_STORE *ctx);\nvoid X509_STORE_set_check_policy(X509_STORE *ctx,\n                                 X509_STORE_CTX_check_policy_fn check_policy);\nX509_STORE_CTX_check_policy_fn X509_STORE_get_check_policy(X509_STORE *ctx);\nvoid X509_STORE_set_lookup_certs(X509_STORE *ctx,\n                                 X509_STORE_CTX_lookup_certs_fn lookup_certs);\nX509_STORE_CTX_lookup_certs_fn X509_STORE_get_lookup_certs(X509_STORE *ctx);\nvoid X509_STORE_set_lookup_crls(X509_STORE *ctx,\n                                X509_STORE_CTX_lookup_crls_fn lookup_crls);\n#define X509_STORE_set_lookup_crls_cb(ctx, func) \\\n    X509_STORE_set_lookup_crls((ctx), (func))\nX509_STORE_CTX_lookup_crls_fn X509_STORE_get_lookup_crls(X509_STORE *ctx);\nvoid X509_STORE_set_cleanup(X509_STORE *ctx,\n                            X509_STORE_CTX_cleanup_fn cleanup);\nX509_STORE_CTX_cleanup_fn X509_STORE_get_cleanup(X509_STORE *ctx);\n\n#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, l, p, newf, dupf, freef)\nint X509_STORE_set_ex_data(X509_STORE *ctx, int idx, void *data);\nvoid *X509_STORE_get_ex_data(X509_STORE *ctx, int idx);\n\nX509_STORE_CTX *X509_STORE_CTX_new(void);\n\nint X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);\n\nvoid X509_STORE_CTX_free(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,\n                        X509 *x509, STACK_OF(X509) *chain);\nvoid X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);\n\nX509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);\nX509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);\nSTACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,\n                                  X509_STORE_CTX_verify_cb verify);\nX509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx);\nX509_STORE_CTX_verify_fn X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx);\nX509_STORE_CTX_get_issuer_fn X509_STORE_CTX_get_get_issuer(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_issued_fn X509_STORE_CTX_get_check_issued(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_revocation_fn X509_STORE_CTX_get_check_revocation(X509_STORE_CTX *ctx);\nX509_STORE_CTX_get_crl_fn X509_STORE_CTX_get_get_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_crl_fn X509_STORE_CTX_get_check_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_cert_crl_fn X509_STORE_CTX_get_cert_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_policy_fn X509_STORE_CTX_get_check_policy(X509_STORE_CTX *ctx);\nX509_STORE_CTX_lookup_certs_fn X509_STORE_CTX_get_lookup_certs(X509_STORE_CTX *ctx);\nX509_STORE_CTX_lookup_crls_fn X509_STORE_CTX_get_lookup_crls(X509_STORE_CTX *ctx);\nX509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(X509_STORE_CTX *ctx);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define X509_STORE_CTX_get_chain X509_STORE_CTX_get0_chain\n# define X509_STORE_CTX_set_chain X509_STORE_CTX_set0_untrusted\n# define X509_STORE_CTX_trusted_stack X509_STORE_CTX_set0_trusted_stack\n# define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject\n# define X509_STORE_get1_certs X509_STORE_CTX_get1_certs\n# define X509_STORE_get1_crls X509_STORE_CTX_get1_crls\n/* the following macro is misspelled; use X509_STORE_get1_certs instead */\n# define X509_STORE_get1_cert X509_STORE_CTX_get1_certs\n/* the following macro is misspelled; use X509_STORE_get1_crls instead */\n# define X509_STORE_get1_crl X509_STORE_CTX_get1_crls\n#endif\n\nX509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m);\nX509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);\nX509_LOOKUP_METHOD *X509_LOOKUP_file(void);\n\ntypedef int (*X509_LOOKUP_ctrl_fn)(X509_LOOKUP *ctx, int cmd, const char *argc,\n                                   long argl, char **ret);\ntypedef int (*X509_LOOKUP_get_by_subject_fn)(X509_LOOKUP *ctx,\n                                             X509_LOOKUP_TYPE type,\n                                             X509_NAME *name,\n                                             X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_issuer_serial_fn)(X509_LOOKUP *ctx,\n                                                   X509_LOOKUP_TYPE type,\n                                                   X509_NAME *name,\n                                                   ASN1_INTEGER *serial,\n                                                   X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_fingerprint_fn)(X509_LOOKUP *ctx,\n                                                 X509_LOOKUP_TYPE type,\n                                                 const unsigned char* bytes,\n                                                 int len,\n                                                 X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_alias_fn)(X509_LOOKUP *ctx,\n                                           X509_LOOKUP_TYPE type,\n                                           const char *str,\n                                           int len,\n                                           X509_OBJECT *ret);\n\nX509_LOOKUP_METHOD *X509_LOOKUP_meth_new(const char *name);\nvoid X509_LOOKUP_meth_free(X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_new_item(X509_LOOKUP_METHOD *method,\n                                  int (*new_item) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_new_item(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_free(X509_LOOKUP_METHOD *method,\n                              void (*free_fn) (X509_LOOKUP *ctx));\nvoid (*X509_LOOKUP_meth_get_free(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_init(X509_LOOKUP_METHOD *method,\n                              int (*init) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_init(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_shutdown(X509_LOOKUP_METHOD *method,\n                                  int (*shutdown) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_shutdown(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_ctrl(X509_LOOKUP_METHOD *method,\n                              X509_LOOKUP_ctrl_fn ctrl_fn);\nX509_LOOKUP_ctrl_fn X509_LOOKUP_meth_get_ctrl(const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_subject(X509_LOOKUP_METHOD *method,\n                                        X509_LOOKUP_get_by_subject_fn fn);\nX509_LOOKUP_get_by_subject_fn X509_LOOKUP_meth_get_get_by_subject(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_issuer_serial(X509_LOOKUP_METHOD *method,\n    X509_LOOKUP_get_by_issuer_serial_fn fn);\nX509_LOOKUP_get_by_issuer_serial_fn X509_LOOKUP_meth_get_get_by_issuer_serial(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_fingerprint(X509_LOOKUP_METHOD *method,\n    X509_LOOKUP_get_by_fingerprint_fn fn);\nX509_LOOKUP_get_by_fingerprint_fn X509_LOOKUP_meth_get_get_by_fingerprint(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_alias(X509_LOOKUP_METHOD *method,\n                                      X509_LOOKUP_get_by_alias_fn fn);\nX509_LOOKUP_get_by_alias_fn X509_LOOKUP_meth_get_get_by_alias(\n    const X509_LOOKUP_METHOD *method);\n\n\nint X509_STORE_add_cert(X509_STORE *ctx, X509 *x);\nint X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);\n\nint X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,\n                                  X509_NAME *name, X509_OBJECT *ret);\nX509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs,\n                                               X509_LOOKUP_TYPE type,\n                                               X509_NAME *name);\n\nint X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,\n                     long argl, char **ret);\n\nint X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type);\nint X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type);\nint X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type);\n\nX509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method);\nvoid X509_LOOKUP_free(X509_LOOKUP *ctx);\nint X509_LOOKUP_init(X509_LOOKUP *ctx);\nint X509_LOOKUP_by_subject(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                           X509_NAME *name, X509_OBJECT *ret);\nint X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                                 X509_NAME *name, ASN1_INTEGER *serial,\n                                 X509_OBJECT *ret);\nint X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                               const unsigned char *bytes, int len,\n                               X509_OBJECT *ret);\nint X509_LOOKUP_by_alias(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                         const char *str, int len, X509_OBJECT *ret);\nint X509_LOOKUP_set_method_data(X509_LOOKUP *ctx, void *data);\nvoid *X509_LOOKUP_get_method_data(const X509_LOOKUP *ctx);\nX509_STORE *X509_LOOKUP_get_store(const X509_LOOKUP *ctx);\nint X509_LOOKUP_shutdown(X509_LOOKUP *ctx);\n\nint X509_STORE_load_locations(X509_STORE *ctx,\n                              const char *file, const char *dir);\nint X509_STORE_set_default_paths(X509_STORE *ctx);\n\n#define X509_STORE_CTX_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef)\nint X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data);\nvoid *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx);\nint X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int s);\nint X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);\nX509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x);\nX509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);\nX509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx);\nSTACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx);\nSTACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_cert(X509_STORE_CTX *c, X509 *x);\nvoid X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk);\nint X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);\nint X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);\nint X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,\n                                   int purpose, int trust);\nvoid X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);\nvoid X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,\n                             time_t t);\n\nX509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);\n\nX509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);\nint X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);\n\n/*\n * Bridge opacity barrier between libcrypt and libssl, also needed to support\n * offline testing in test/danetest.c\n */\nvoid X509_STORE_CTX_set0_dane(X509_STORE_CTX *ctx, SSL_DANE *dane);\n#define DANE_FLAG_NO_DANE_EE_NAMECHECKS (1L << 0)\n\n/* X509_VERIFY_PARAM functions */\n\nX509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void);\nvoid X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *to,\n                              const X509_VERIFY_PARAM *from);\nint X509_VERIFY_PARAM_set1(X509_VERIFY_PARAM *to,\n                           const X509_VERIFY_PARAM *from);\nint X509_VERIFY_PARAM_set1_name(X509_VERIFY_PARAM *param, const char *name);\nint X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param,\n                                unsigned long flags);\nint X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param,\n                                  unsigned long flags);\nunsigned long X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose);\nint X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust);\nvoid X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth);\nvoid X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level);\ntime_t X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param);\nvoid X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t);\nint X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param,\n                                  ASN1_OBJECT *policy);\nint X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param,\n                                    STACK_OF(ASN1_OBJECT) *policies);\n\nint X509_VERIFY_PARAM_set_inh_flags(X509_VERIFY_PARAM *param,\n                                    uint32_t flags);\nuint32_t X509_VERIFY_PARAM_get_inh_flags(const X509_VERIFY_PARAM *param);\n\nint X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param,\n                                const char *name, size_t namelen);\nint X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param,\n                                const char *name, size_t namelen);\nvoid X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,\n                                     unsigned int flags);\nunsigned int X509_VERIFY_PARAM_get_hostflags(const X509_VERIFY_PARAM *param);\nchar *X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *);\nvoid X509_VERIFY_PARAM_move_peername(X509_VERIFY_PARAM *, X509_VERIFY_PARAM *);\nint X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param,\n                                 const char *email, size_t emaillen);\nint X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param,\n                              const unsigned char *ip, size_t iplen);\nint X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param,\n                                  const char *ipasc);\n\nint X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_get_auth_level(const X509_VERIFY_PARAM *param);\nconst char *X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param);\n\nint X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_get_count(void);\nconst X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id);\nconst X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);\nvoid X509_VERIFY_PARAM_table_cleanup(void);\n\n/* Non positive return values are errors */\n#define X509_PCY_TREE_FAILURE  -2 /* Failure to satisfy explicit policy */\n#define X509_PCY_TREE_INVALID  -1 /* Inconsistent or invalid extensions */\n#define X509_PCY_TREE_INTERNAL  0 /* Internal error, most likely malloc */\n\n/*\n * Positive return values form a bit mask, all but the first are internal to\n * the library and don't appear in results from X509_policy_check().\n */\n#define X509_PCY_TREE_VALID     1 /* The policy tree is valid */\n#define X509_PCY_TREE_EMPTY     2 /* The policy tree is empty */\n#define X509_PCY_TREE_EXPLICIT  4 /* Explicit policy required */\n\nint X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy,\n                      STACK_OF(X509) *certs,\n                      STACK_OF(ASN1_OBJECT) *policy_oids, unsigned int flags);\n\nvoid X509_policy_tree_free(X509_POLICY_TREE *tree);\n\nint X509_policy_tree_level_count(const X509_POLICY_TREE *tree);\nX509_POLICY_LEVEL *X509_policy_tree_get0_level(const X509_POLICY_TREE *tree,\n                                               int i);\n\nSTACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(const\n                                                           X509_POLICY_TREE\n                                                           *tree);\n\nSTACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(const\n                                                                X509_POLICY_TREE\n                                                                *tree);\n\nint X509_policy_level_node_count(X509_POLICY_LEVEL *level);\n\nX509_POLICY_NODE *X509_policy_level_get0_node(X509_POLICY_LEVEL *level,\n                                              int i);\n\nconst ASN1_OBJECT *X509_policy_node_get0_policy(const X509_POLICY_NODE *node);\n\nSTACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(const\n                                                           X509_POLICY_NODE\n                                                           *node);\nconst X509_POLICY_NODE *X509_policy_node_get0_parent(const X509_POLICY_NODE\n                                                     *node);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/x509err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509ERR_H\n# define HEADER_X509ERR_H\n\n# include <openssl/symhacks.h>\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_X509_strings(void);\n\n/*\n * X509 function codes.\n */\n# define X509_F_ADD_CERT_DIR                              100\n# define X509_F_BUILD_CHAIN                               106\n# define X509_F_BY_FILE_CTRL                              101\n# define X509_F_CHECK_NAME_CONSTRAINTS                    149\n# define X509_F_CHECK_POLICY                              145\n# define X509_F_DANE_I2D                                  107\n# define X509_F_DIR_CTRL                                  102\n# define X509_F_GET_CERT_BY_SUBJECT                       103\n# define X509_F_I2D_X509_AUX                              151\n# define X509_F_LOOKUP_CERTS_SK                           152\n# define X509_F_NETSCAPE_SPKI_B64_DECODE                  129\n# define X509_F_NETSCAPE_SPKI_B64_ENCODE                  130\n# define X509_F_NEW_DIR                                   153\n# define X509_F_X509AT_ADD1_ATTR                          135\n# define X509_F_X509V3_ADD_EXT                            104\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_NID              136\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ              137\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_TXT              140\n# define X509_F_X509_ATTRIBUTE_GET0_DATA                  139\n# define X509_F_X509_ATTRIBUTE_SET1_DATA                  138\n# define X509_F_X509_CHECK_PRIVATE_KEY                    128\n# define X509_F_X509_CRL_DIFF                             105\n# define X509_F_X509_CRL_METHOD_NEW                       154\n# define X509_F_X509_CRL_PRINT_FP                         147\n# define X509_F_X509_EXTENSION_CREATE_BY_NID              108\n# define X509_F_X509_EXTENSION_CREATE_BY_OBJ              109\n# define X509_F_X509_GET_PUBKEY_PARAMETERS                110\n# define X509_F_X509_LOAD_CERT_CRL_FILE                   132\n# define X509_F_X509_LOAD_CERT_FILE                       111\n# define X509_F_X509_LOAD_CRL_FILE                        112\n# define X509_F_X509_LOOKUP_METH_NEW                      160\n# define X509_F_X509_LOOKUP_NEW                           155\n# define X509_F_X509_NAME_ADD_ENTRY                       113\n# define X509_F_X509_NAME_CANON                           156\n# define X509_F_X509_NAME_ENTRY_CREATE_BY_NID             114\n# define X509_F_X509_NAME_ENTRY_CREATE_BY_TXT             131\n# define X509_F_X509_NAME_ENTRY_SET_OBJECT                115\n# define X509_F_X509_NAME_ONELINE                         116\n# define X509_F_X509_NAME_PRINT                           117\n# define X509_F_X509_OBJECT_NEW                           150\n# define X509_F_X509_PRINT_EX_FP                          118\n# define X509_F_X509_PUBKEY_DECODE                        148\n# define X509_F_X509_PUBKEY_GET                           161\n# define X509_F_X509_PUBKEY_GET0                          119\n# define X509_F_X509_PUBKEY_SET                           120\n# define X509_F_X509_REQ_CHECK_PRIVATE_KEY                144\n# define X509_F_X509_REQ_PRINT_EX                         121\n# define X509_F_X509_REQ_PRINT_FP                         122\n# define X509_F_X509_REQ_TO_X509                          123\n# define X509_F_X509_STORE_ADD_CERT                       124\n# define X509_F_X509_STORE_ADD_CRL                        125\n# define X509_F_X509_STORE_ADD_LOOKUP                     157\n# define X509_F_X509_STORE_CTX_GET1_ISSUER                146\n# define X509_F_X509_STORE_CTX_INIT                       143\n# define X509_F_X509_STORE_CTX_NEW                        142\n# define X509_F_X509_STORE_CTX_PURPOSE_INHERIT            134\n# define X509_F_X509_STORE_NEW                            158\n# define X509_F_X509_TO_X509_REQ                          126\n# define X509_F_X509_TRUST_ADD                            133\n# define X509_F_X509_TRUST_SET                            141\n# define X509_F_X509_VERIFY_CERT                          127\n# define X509_F_X509_VERIFY_PARAM_NEW                     159\n\n/*\n * X509 reason codes.\n */\n# define X509_R_AKID_MISMATCH                             110\n# define X509_R_BAD_SELECTOR                              133\n# define X509_R_BAD_X509_FILETYPE                         100\n# define X509_R_BASE64_DECODE_ERROR                       118\n# define X509_R_CANT_CHECK_DH_KEY                         114\n# define X509_R_CERT_ALREADY_IN_HASH_TABLE                101\n# define X509_R_CRL_ALREADY_DELTA                         127\n# define X509_R_CRL_VERIFY_FAILURE                        131\n# define X509_R_IDP_MISMATCH                              128\n# define X509_R_INVALID_ATTRIBUTES                        138\n# define X509_R_INVALID_DIRECTORY                         113\n# define X509_R_INVALID_FIELD_NAME                        119\n# define X509_R_INVALID_TRUST                             123\n# define X509_R_ISSUER_MISMATCH                           129\n# define X509_R_KEY_TYPE_MISMATCH                         115\n# define X509_R_KEY_VALUES_MISMATCH                       116\n# define X509_R_LOADING_CERT_DIR                          103\n# define X509_R_LOADING_DEFAULTS                          104\n# define X509_R_METHOD_NOT_SUPPORTED                      124\n# define X509_R_NAME_TOO_LONG                             134\n# define X509_R_NEWER_CRL_NOT_NEWER                       132\n# define X509_R_NO_CERTIFICATE_FOUND                      135\n# define X509_R_NO_CERTIFICATE_OR_CRL_FOUND               136\n# define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY              105\n# define X509_R_NO_CRL_FOUND                              137\n# define X509_R_NO_CRL_NUMBER                             130\n# define X509_R_PUBLIC_KEY_DECODE_ERROR                   125\n# define X509_R_PUBLIC_KEY_ENCODE_ERROR                   126\n# define X509_R_SHOULD_RETRY                              106\n# define X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN        107\n# define X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY            108\n# define X509_R_UNKNOWN_KEY_TYPE                          117\n# define X509_R_UNKNOWN_NID                               109\n# define X509_R_UNKNOWN_PURPOSE_ID                        121\n# define X509_R_UNKNOWN_TRUST_ID                          120\n# define X509_R_UNSUPPORTED_ALGORITHM                     111\n# define X509_R_WRONG_LOOKUP_TYPE                         112\n# define X509_R_WRONG_TYPE                                122\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/x509v3.h",
    "content": "/*\n * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509V3_H\n# define HEADER_X509V3_H\n\n# include <openssl/bio.h>\n# include <openssl/x509.h>\n# include <openssl/conf.h>\n# include <openssl/x509v3err.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Forward reference */\nstruct v3_ext_method;\nstruct v3_ext_ctx;\n\n/* Useful typedefs */\n\ntypedef void *(*X509V3_EXT_NEW)(void);\ntypedef void (*X509V3_EXT_FREE) (void *);\ntypedef void *(*X509V3_EXT_D2I)(void *, const unsigned char **, long);\ntypedef int (*X509V3_EXT_I2D) (void *, unsigned char **);\ntypedef STACK_OF(CONF_VALUE) *\n    (*X509V3_EXT_I2V) (const struct v3_ext_method *method, void *ext,\n                       STACK_OF(CONF_VALUE) *extlist);\ntypedef void *(*X509V3_EXT_V2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx,\n                                STACK_OF(CONF_VALUE) *values);\ntypedef char *(*X509V3_EXT_I2S)(const struct v3_ext_method *method,\n                                void *ext);\ntypedef void *(*X509V3_EXT_S2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx, const char *str);\ntypedef int (*X509V3_EXT_I2R) (const struct v3_ext_method *method, void *ext,\n                               BIO *out, int indent);\ntypedef void *(*X509V3_EXT_R2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx, const char *str);\n\n/* V3 extension structure */\n\nstruct v3_ext_method {\n    int ext_nid;\n    int ext_flags;\n/* If this is set the following four fields are ignored */\n    ASN1_ITEM_EXP *it;\n/* Old style ASN1 calls */\n    X509V3_EXT_NEW ext_new;\n    X509V3_EXT_FREE ext_free;\n    X509V3_EXT_D2I d2i;\n    X509V3_EXT_I2D i2d;\n/* The following pair is used for string extensions */\n    X509V3_EXT_I2S i2s;\n    X509V3_EXT_S2I s2i;\n/* The following pair is used for multi-valued extensions */\n    X509V3_EXT_I2V i2v;\n    X509V3_EXT_V2I v2i;\n/* The following are used for raw extensions */\n    X509V3_EXT_I2R i2r;\n    X509V3_EXT_R2I r2i;\n    void *usr_data;             /* Any extension specific data */\n};\n\ntypedef struct X509V3_CONF_METHOD_st {\n    char *(*get_string) (void *db, const char *section, const char *value);\n    STACK_OF(CONF_VALUE) *(*get_section) (void *db, const char *section);\n    void (*free_string) (void *db, char *string);\n    void (*free_section) (void *db, STACK_OF(CONF_VALUE) *section);\n} X509V3_CONF_METHOD;\n\n/* Context specific info */\nstruct v3_ext_ctx {\n# define CTX_TEST 0x1\n# define X509V3_CTX_REPLACE 0x2\n    int flags;\n    X509 *issuer_cert;\n    X509 *subject_cert;\n    X509_REQ *subject_req;\n    X509_CRL *crl;\n    X509V3_CONF_METHOD *db_meth;\n    void *db;\n/* Maybe more here */\n};\n\ntypedef struct v3_ext_method X509V3_EXT_METHOD;\n\nDEFINE_STACK_OF(X509V3_EXT_METHOD)\n\n/* ext_flags values */\n# define X509V3_EXT_DYNAMIC      0x1\n# define X509V3_EXT_CTX_DEP      0x2\n# define X509V3_EXT_MULTILINE    0x4\n\ntypedef BIT_STRING_BITNAME ENUMERATED_NAMES;\n\ntypedef struct BASIC_CONSTRAINTS_st {\n    int ca;\n    ASN1_INTEGER *pathlen;\n} BASIC_CONSTRAINTS;\n\ntypedef struct PKEY_USAGE_PERIOD_st {\n    ASN1_GENERALIZEDTIME *notBefore;\n    ASN1_GENERALIZEDTIME *notAfter;\n} PKEY_USAGE_PERIOD;\n\ntypedef struct otherName_st {\n    ASN1_OBJECT *type_id;\n    ASN1_TYPE *value;\n} OTHERNAME;\n\ntypedef struct EDIPartyName_st {\n    ASN1_STRING *nameAssigner;\n    ASN1_STRING *partyName;\n} EDIPARTYNAME;\n\ntypedef struct GENERAL_NAME_st {\n# define GEN_OTHERNAME   0\n# define GEN_EMAIL       1\n# define GEN_DNS         2\n# define GEN_X400        3\n# define GEN_DIRNAME     4\n# define GEN_EDIPARTY    5\n# define GEN_URI         6\n# define GEN_IPADD       7\n# define GEN_RID         8\n    int type;\n    union {\n        char *ptr;\n        OTHERNAME *otherName;   /* otherName */\n        ASN1_IA5STRING *rfc822Name;\n        ASN1_IA5STRING *dNSName;\n        ASN1_TYPE *x400Address;\n        X509_NAME *directoryName;\n        EDIPARTYNAME *ediPartyName;\n        ASN1_IA5STRING *uniformResourceIdentifier;\n        ASN1_OCTET_STRING *iPAddress;\n        ASN1_OBJECT *registeredID;\n        /* Old names */\n        ASN1_OCTET_STRING *ip;  /* iPAddress */\n        X509_NAME *dirn;        /* dirn */\n        ASN1_IA5STRING *ia5;    /* rfc822Name, dNSName,\n                                 * uniformResourceIdentifier */\n        ASN1_OBJECT *rid;       /* registeredID */\n        ASN1_TYPE *other;       /* x400Address */\n    } d;\n} GENERAL_NAME;\n\ntypedef struct ACCESS_DESCRIPTION_st {\n    ASN1_OBJECT *method;\n    GENERAL_NAME *location;\n} ACCESS_DESCRIPTION;\n\ntypedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;\n\ntypedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;\n\ntypedef STACK_OF(ASN1_INTEGER) TLS_FEATURE;\n\nDEFINE_STACK_OF(GENERAL_NAME)\ntypedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;\nDEFINE_STACK_OF(GENERAL_NAMES)\n\nDEFINE_STACK_OF(ACCESS_DESCRIPTION)\n\ntypedef struct DIST_POINT_NAME_st {\n    int type;\n    union {\n        GENERAL_NAMES *fullname;\n        STACK_OF(X509_NAME_ENTRY) *relativename;\n    } name;\n/* If relativename then this contains the full distribution point name */\n    X509_NAME *dpname;\n} DIST_POINT_NAME;\n/* All existing reasons */\n# define CRLDP_ALL_REASONS       0x807f\n\n# define CRL_REASON_NONE                         -1\n# define CRL_REASON_UNSPECIFIED                  0\n# define CRL_REASON_KEY_COMPROMISE               1\n# define CRL_REASON_CA_COMPROMISE                2\n# define CRL_REASON_AFFILIATION_CHANGED          3\n# define CRL_REASON_SUPERSEDED                   4\n# define CRL_REASON_CESSATION_OF_OPERATION       5\n# define CRL_REASON_CERTIFICATE_HOLD             6\n# define CRL_REASON_REMOVE_FROM_CRL              8\n# define CRL_REASON_PRIVILEGE_WITHDRAWN          9\n# define CRL_REASON_AA_COMPROMISE                10\n\nstruct DIST_POINT_st {\n    DIST_POINT_NAME *distpoint;\n    ASN1_BIT_STRING *reasons;\n    GENERAL_NAMES *CRLissuer;\n    int dp_reasons;\n};\n\ntypedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;\n\nDEFINE_STACK_OF(DIST_POINT)\n\nstruct AUTHORITY_KEYID_st {\n    ASN1_OCTET_STRING *keyid;\n    GENERAL_NAMES *issuer;\n    ASN1_INTEGER *serial;\n};\n\n/* Strong extranet structures */\n\ntypedef struct SXNET_ID_st {\n    ASN1_INTEGER *zone;\n    ASN1_OCTET_STRING *user;\n} SXNETID;\n\nDEFINE_STACK_OF(SXNETID)\n\ntypedef struct SXNET_st {\n    ASN1_INTEGER *version;\n    STACK_OF(SXNETID) *ids;\n} SXNET;\n\ntypedef struct NOTICEREF_st {\n    ASN1_STRING *organization;\n    STACK_OF(ASN1_INTEGER) *noticenos;\n} NOTICEREF;\n\ntypedef struct USERNOTICE_st {\n    NOTICEREF *noticeref;\n    ASN1_STRING *exptext;\n} USERNOTICE;\n\ntypedef struct POLICYQUALINFO_st {\n    ASN1_OBJECT *pqualid;\n    union {\n        ASN1_IA5STRING *cpsuri;\n        USERNOTICE *usernotice;\n        ASN1_TYPE *other;\n    } d;\n} POLICYQUALINFO;\n\nDEFINE_STACK_OF(POLICYQUALINFO)\n\ntypedef struct POLICYINFO_st {\n    ASN1_OBJECT *policyid;\n    STACK_OF(POLICYQUALINFO) *qualifiers;\n} POLICYINFO;\n\ntypedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;\n\nDEFINE_STACK_OF(POLICYINFO)\n\ntypedef struct POLICY_MAPPING_st {\n    ASN1_OBJECT *issuerDomainPolicy;\n    ASN1_OBJECT *subjectDomainPolicy;\n} POLICY_MAPPING;\n\nDEFINE_STACK_OF(POLICY_MAPPING)\n\ntypedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS;\n\ntypedef struct GENERAL_SUBTREE_st {\n    GENERAL_NAME *base;\n    ASN1_INTEGER *minimum;\n    ASN1_INTEGER *maximum;\n} GENERAL_SUBTREE;\n\nDEFINE_STACK_OF(GENERAL_SUBTREE)\n\nstruct NAME_CONSTRAINTS_st {\n    STACK_OF(GENERAL_SUBTREE) *permittedSubtrees;\n    STACK_OF(GENERAL_SUBTREE) *excludedSubtrees;\n};\n\ntypedef struct POLICY_CONSTRAINTS_st {\n    ASN1_INTEGER *requireExplicitPolicy;\n    ASN1_INTEGER *inhibitPolicyMapping;\n} POLICY_CONSTRAINTS;\n\n/* Proxy certificate structures, see RFC 3820 */\ntypedef struct PROXY_POLICY_st {\n    ASN1_OBJECT *policyLanguage;\n    ASN1_OCTET_STRING *policy;\n} PROXY_POLICY;\n\ntypedef struct PROXY_CERT_INFO_EXTENSION_st {\n    ASN1_INTEGER *pcPathLengthConstraint;\n    PROXY_POLICY *proxyPolicy;\n} PROXY_CERT_INFO_EXTENSION;\n\nDECLARE_ASN1_FUNCTIONS(PROXY_POLICY)\nDECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION)\n\nstruct ISSUING_DIST_POINT_st {\n    DIST_POINT_NAME *distpoint;\n    int onlyuser;\n    int onlyCA;\n    ASN1_BIT_STRING *onlysomereasons;\n    int indirectCRL;\n    int onlyattr;\n};\n\n/* Values in idp_flags field */\n/* IDP present */\n# define IDP_PRESENT     0x1\n/* IDP values inconsistent */\n# define IDP_INVALID     0x2\n/* onlyuser true */\n# define IDP_ONLYUSER    0x4\n/* onlyCA true */\n# define IDP_ONLYCA      0x8\n/* onlyattr true */\n# define IDP_ONLYATTR    0x10\n/* indirectCRL true */\n# define IDP_INDIRECT    0x20\n/* onlysomereasons present */\n# define IDP_REASONS     0x40\n\n# define X509V3_conf_err(val) ERR_add_error_data(6, \\\n                        \"section:\", (val)->section, \\\n                        \",name:\", (val)->name, \",value:\", (val)->value)\n\n# define X509V3_set_ctx_test(ctx) \\\n                        X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST)\n# define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL;\n\n# define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \\\n                        0,0,0,0, \\\n                        0,0, \\\n                        (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \\\n                        (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \\\n                        NULL, NULL, \\\n                        table}\n\n# define EXT_IA5STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_IA5STRING), \\\n                        0,0,0,0, \\\n                        (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \\\n                        (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \\\n                        0,0,0,0, \\\n                        NULL}\n\n# define EXT_END { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}\n\n/* X509_PURPOSE stuff */\n\n# define EXFLAG_BCONS            0x1\n# define EXFLAG_KUSAGE           0x2\n# define EXFLAG_XKUSAGE          0x4\n# define EXFLAG_NSCERT           0x8\n\n# define EXFLAG_CA               0x10\n/* Really self issued not necessarily self signed */\n# define EXFLAG_SI               0x20\n# define EXFLAG_V1               0x40\n# define EXFLAG_INVALID          0x80\n/* EXFLAG_SET is set to indicate that some values have been precomputed */\n# define EXFLAG_SET              0x100\n# define EXFLAG_CRITICAL         0x200\n# define EXFLAG_PROXY            0x400\n\n# define EXFLAG_INVALID_POLICY   0x800\n# define EXFLAG_FRESHEST         0x1000\n/* Self signed */\n# define EXFLAG_SS               0x2000\n\n# define KU_DIGITAL_SIGNATURE    0x0080\n# define KU_NON_REPUDIATION      0x0040\n# define KU_KEY_ENCIPHERMENT     0x0020\n# define KU_DATA_ENCIPHERMENT    0x0010\n# define KU_KEY_AGREEMENT        0x0008\n# define KU_KEY_CERT_SIGN        0x0004\n# define KU_CRL_SIGN             0x0002\n# define KU_ENCIPHER_ONLY        0x0001\n# define KU_DECIPHER_ONLY        0x8000\n\n# define NS_SSL_CLIENT           0x80\n# define NS_SSL_SERVER           0x40\n# define NS_SMIME                0x20\n# define NS_OBJSIGN              0x10\n# define NS_SSL_CA               0x04\n# define NS_SMIME_CA             0x02\n# define NS_OBJSIGN_CA           0x01\n# define NS_ANY_CA               (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA)\n\n# define XKU_SSL_SERVER          0x1\n# define XKU_SSL_CLIENT          0x2\n# define XKU_SMIME               0x4\n# define XKU_CODE_SIGN           0x8\n# define XKU_SGC                 0x10\n# define XKU_OCSP_SIGN           0x20\n# define XKU_TIMESTAMP           0x40\n# define XKU_DVCS                0x80\n# define XKU_ANYEKU              0x100\n\n# define X509_PURPOSE_DYNAMIC    0x1\n# define X509_PURPOSE_DYNAMIC_NAME       0x2\n\ntypedef struct x509_purpose_st {\n    int purpose;\n    int trust;                  /* Default trust ID */\n    int flags;\n    int (*check_purpose) (const struct x509_purpose_st *, const X509 *, int);\n    char *name;\n    char *sname;\n    void *usr_data;\n} X509_PURPOSE;\n\n# define X509_PURPOSE_SSL_CLIENT         1\n# define X509_PURPOSE_SSL_SERVER         2\n# define X509_PURPOSE_NS_SSL_SERVER      3\n# define X509_PURPOSE_SMIME_SIGN         4\n# define X509_PURPOSE_SMIME_ENCRYPT      5\n# define X509_PURPOSE_CRL_SIGN           6\n# define X509_PURPOSE_ANY                7\n# define X509_PURPOSE_OCSP_HELPER        8\n# define X509_PURPOSE_TIMESTAMP_SIGN     9\n\n# define X509_PURPOSE_MIN                1\n# define X509_PURPOSE_MAX                9\n\n/* Flags for X509V3_EXT_print() */\n\n# define X509V3_EXT_UNKNOWN_MASK         (0xfL << 16)\n/* Return error for unknown extensions */\n# define X509V3_EXT_DEFAULT              0\n/* Print error for unknown extensions */\n# define X509V3_EXT_ERROR_UNKNOWN        (1L << 16)\n/* ASN1 parse unknown extensions */\n# define X509V3_EXT_PARSE_UNKNOWN        (2L << 16)\n/* BIO_dump unknown extensions */\n# define X509V3_EXT_DUMP_UNKNOWN         (3L << 16)\n\n/* Flags for X509V3_add1_i2d */\n\n# define X509V3_ADD_OP_MASK              0xfL\n# define X509V3_ADD_DEFAULT              0L\n# define X509V3_ADD_APPEND               1L\n# define X509V3_ADD_REPLACE              2L\n# define X509V3_ADD_REPLACE_EXISTING     3L\n# define X509V3_ADD_KEEP_EXISTING        4L\n# define X509V3_ADD_DELETE               5L\n# define X509V3_ADD_SILENT               0x10\n\nDEFINE_STACK_OF(X509_PURPOSE)\n\nDECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS)\n\nDECLARE_ASN1_FUNCTIONS(SXNET)\nDECLARE_ASN1_FUNCTIONS(SXNETID)\n\nint SXNET_add_id_asc(SXNET **psx, const char *zone, const char *user, int userlen);\nint SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, const char *user,\n                       int userlen);\nint SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *izone, const char *user,\n                         int userlen);\n\nASN1_OCTET_STRING *SXNET_get_id_asc(SXNET *sx, const char *zone);\nASN1_OCTET_STRING *SXNET_get_id_ulong(SXNET *sx, unsigned long lzone);\nASN1_OCTET_STRING *SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone);\n\nDECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID)\n\nDECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD)\n\nDECLARE_ASN1_FUNCTIONS(GENERAL_NAME)\nGENERAL_NAME *GENERAL_NAME_dup(GENERAL_NAME *a);\nint GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b);\n\nASN1_BIT_STRING *v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method,\n                                     X509V3_CTX *ctx,\n                                     STACK_OF(CONF_VALUE) *nval);\nSTACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method,\n                                          ASN1_BIT_STRING *bits,\n                                          STACK_OF(CONF_VALUE) *extlist);\nchar *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5);\nASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method,\n                                   X509V3_CTX *ctx, const char *str);\n\nSTACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method,\n                                       GENERAL_NAME *gen,\n                                       STACK_OF(CONF_VALUE) *ret);\nint GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen);\n\nDECLARE_ASN1_FUNCTIONS(GENERAL_NAMES)\n\nSTACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method,\n                                        GENERAL_NAMES *gen,\n                                        STACK_OF(CONF_VALUE) *extlist);\nGENERAL_NAMES *v2i_GENERAL_NAMES(const X509V3_EXT_METHOD *method,\n                                 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval);\n\nDECLARE_ASN1_FUNCTIONS(OTHERNAME)\nDECLARE_ASN1_FUNCTIONS(EDIPARTYNAME)\nint OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);\nvoid GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value);\nvoid *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);\nint GENERAL_NAME_set0_othername(GENERAL_NAME *gen,\n                                ASN1_OBJECT *oid, ASN1_TYPE *value);\nint GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,\n                                ASN1_OBJECT **poid, ASN1_TYPE **pvalue);\n\nchar *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,\n                            const ASN1_OCTET_STRING *ia5);\nASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,\n                                         X509V3_CTX *ctx, const char *str);\n\nDECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE)\nint i2a_ACCESS_DESCRIPTION(BIO *bp, const ACCESS_DESCRIPTION *a);\n\nDECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE)\n\nDECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES)\nDECLARE_ASN1_FUNCTIONS(POLICYINFO)\nDECLARE_ASN1_FUNCTIONS(POLICYQUALINFO)\nDECLARE_ASN1_FUNCTIONS(USERNOTICE)\nDECLARE_ASN1_FUNCTIONS(NOTICEREF)\n\nDECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS)\nDECLARE_ASN1_FUNCTIONS(DIST_POINT)\nDECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME)\nDECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT)\n\nint DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname);\n\nint NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc);\nint NAME_CONSTRAINTS_check_CN(X509 *x, NAME_CONSTRAINTS *nc);\n\nDECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION)\nDECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS)\n\nDECLARE_ASN1_ITEM(POLICY_MAPPING)\nDECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING)\nDECLARE_ASN1_ITEM(POLICY_MAPPINGS)\n\nDECLARE_ASN1_ITEM(GENERAL_SUBTREE)\nDECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE)\n\nDECLARE_ASN1_ITEM(NAME_CONSTRAINTS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS)\n\nDECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS)\nDECLARE_ASN1_ITEM(POLICY_CONSTRAINTS)\n\nGENERAL_NAME *a2i_GENERAL_NAME(GENERAL_NAME *out,\n                               const X509V3_EXT_METHOD *method,\n                               X509V3_CTX *ctx, int gen_type,\n                               const char *value, int is_nc);\n\n# ifdef HEADER_CONF_H\nGENERAL_NAME *v2i_GENERAL_NAME(const X509V3_EXT_METHOD *method,\n                               X509V3_CTX *ctx, CONF_VALUE *cnf);\nGENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out,\n                                  const X509V3_EXT_METHOD *method,\n                                  X509V3_CTX *ctx, CONF_VALUE *cnf,\n                                  int is_nc);\nvoid X509V3_conf_free(CONF_VALUE *val);\n\nX509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid,\n                                     const char *value);\nX509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name,\n                                 const char *value);\nint X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, const char *section,\n                            STACK_OF(X509_EXTENSION) **sk);\nint X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                         X509 *cert);\nint X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                             X509_REQ *req);\nint X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                             X509_CRL *crl);\n\nX509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf,\n                                    X509V3_CTX *ctx, int ext_nid,\n                                    const char *value);\nX509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                                const char *name, const char *value);\nint X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                        const char *section, X509 *cert);\nint X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                            const char *section, X509_REQ *req);\nint X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                            const char *section, X509_CRL *crl);\n\nint X509V3_add_value_bool_nf(const char *name, int asn1_bool,\n                             STACK_OF(CONF_VALUE) **extlist);\nint X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool);\nint X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint);\nvoid X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf);\nvoid X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash);\n# endif\n\nchar *X509V3_get_string(X509V3_CTX *ctx, const char *name, const char *section);\nSTACK_OF(CONF_VALUE) *X509V3_get_section(X509V3_CTX *ctx, const char *section);\nvoid X509V3_string_free(X509V3_CTX *ctx, char *str);\nvoid X509V3_section_free(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section);\nvoid X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject,\n                    X509_REQ *req, X509_CRL *crl, int flags);\n\nint X509V3_add_value(const char *name, const char *value,\n                     STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_uchar(const char *name, const unsigned char *value,\n                           STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_bool(const char *name, int asn1_bool,\n                          STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint,\n                         STACK_OF(CONF_VALUE) **extlist);\nchar *i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const ASN1_INTEGER *aint);\nASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const char *value);\nchar *i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, const ASN1_ENUMERATED *aint);\nchar *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth,\n                                const ASN1_ENUMERATED *aint);\nint X509V3_EXT_add(X509V3_EXT_METHOD *ext);\nint X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist);\nint X509V3_EXT_add_alias(int nid_to, int nid_from);\nvoid X509V3_EXT_cleanup(void);\n\nconst X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext);\nconst X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid);\nint X509V3_add_standard_extensions(void);\nSTACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line);\nvoid *X509V3_EXT_d2i(X509_EXTENSION *ext);\nvoid *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,\n                     int *idx);\n\nX509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);\nint X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value,\n                    int crit, unsigned long flags);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n/* The new declarations are in crypto.h, but the old ones were here. */\n# define hex_to_string OPENSSL_buf2hexstr\n# define string_to_hex OPENSSL_hexstr2buf\n#endif\n\nvoid X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,\n                        int ml);\nint X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag,\n                     int indent);\n#ifndef OPENSSL_NO_STDIO\nint X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent);\n#endif\nint X509V3_extensions_print(BIO *out, const char *title,\n                            const STACK_OF(X509_EXTENSION) *exts,\n                            unsigned long flag, int indent);\n\nint X509_check_ca(X509 *x);\nint X509_check_purpose(X509 *x, int id, int ca);\nint X509_supported_extension(X509_EXTENSION *ex);\nint X509_PURPOSE_set(int *p, int purpose);\nint X509_check_issued(X509 *issuer, X509 *subject);\nint X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid);\nvoid X509_set_proxy_flag(X509 *x);\nvoid X509_set_proxy_pathlen(X509 *x, long l);\nlong X509_get_proxy_pathlen(X509 *x);\n\nuint32_t X509_get_extension_flags(X509 *x);\nuint32_t X509_get_key_usage(X509 *x);\nuint32_t X509_get_extended_key_usage(X509 *x);\nconst ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x);\nconst ASN1_OCTET_STRING *X509_get0_authority_key_id(X509 *x);\nconst GENERAL_NAMES *X509_get0_authority_issuer(X509 *x);\nconst ASN1_INTEGER *X509_get0_authority_serial(X509 *x);\n\nint X509_PURPOSE_get_count(void);\nX509_PURPOSE *X509_PURPOSE_get0(int idx);\nint X509_PURPOSE_get_by_sname(const char *sname);\nint X509_PURPOSE_get_by_id(int id);\nint X509_PURPOSE_add(int id, int trust, int flags,\n                     int (*ck) (const X509_PURPOSE *, const X509 *, int),\n                     const char *name, const char *sname, void *arg);\nchar *X509_PURPOSE_get0_name(const X509_PURPOSE *xp);\nchar *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp);\nint X509_PURPOSE_get_trust(const X509_PURPOSE *xp);\nvoid X509_PURPOSE_cleanup(void);\nint X509_PURPOSE_get_id(const X509_PURPOSE *);\n\nSTACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x);\nSTACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x);\nvoid X509_email_free(STACK_OF(OPENSSL_STRING) *sk);\nSTACK_OF(OPENSSL_STRING) *X509_get1_ocsp(X509 *x);\n/* Flags for X509_check_* functions */\n\n/*\n * Always check subject name for host match even if subject alt names present\n */\n# define X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT    0x1\n/* Disable wildcard matching for dnsName fields and common name. */\n# define X509_CHECK_FLAG_NO_WILDCARDS    0x2\n/* Wildcards must not match a partial label. */\n# define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS 0x4\n/* Allow (non-partial) wildcards to match multiple labels. */\n# define X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS 0x8\n/* Constraint verifier subdomain patterns to match a single labels. */\n# define X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS 0x10\n/* Never check the subject CN */\n# define X509_CHECK_FLAG_NEVER_CHECK_SUBJECT    0x20\n/*\n * Match reference identifiers starting with \".\" to any sub-domain.\n * This is a non-public flag, turned on implicitly when the subject\n * reference identity is a DNS name.\n */\n# define _X509_CHECK_FLAG_DOT_SUBDOMAINS 0x8000\n\nint X509_check_host(X509 *x, const char *chk, size_t chklen,\n                    unsigned int flags, char **peername);\nint X509_check_email(X509 *x, const char *chk, size_t chklen,\n                     unsigned int flags);\nint X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen,\n                  unsigned int flags);\nint X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags);\n\nASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc);\nASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc);\nint X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk,\n                             unsigned long chtype);\n\nvoid X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent);\nDEFINE_STACK_OF(X509_POLICY_NODE)\n\n#ifndef OPENSSL_NO_RFC3779\ntypedef struct ASRange_st {\n    ASN1_INTEGER *min, *max;\n} ASRange;\n\n# define ASIdOrRange_id          0\n# define ASIdOrRange_range       1\n\ntypedef struct ASIdOrRange_st {\n    int type;\n    union {\n        ASN1_INTEGER *id;\n        ASRange *range;\n    } u;\n} ASIdOrRange;\n\ntypedef STACK_OF(ASIdOrRange) ASIdOrRanges;\nDEFINE_STACK_OF(ASIdOrRange)\n\n# define ASIdentifierChoice_inherit              0\n# define ASIdentifierChoice_asIdsOrRanges        1\n\ntypedef struct ASIdentifierChoice_st {\n    int type;\n    union {\n        ASN1_NULL *inherit;\n        ASIdOrRanges *asIdsOrRanges;\n    } u;\n} ASIdentifierChoice;\n\ntypedef struct ASIdentifiers_st {\n    ASIdentifierChoice *asnum, *rdi;\n} ASIdentifiers;\n\nDECLARE_ASN1_FUNCTIONS(ASRange)\nDECLARE_ASN1_FUNCTIONS(ASIdOrRange)\nDECLARE_ASN1_FUNCTIONS(ASIdentifierChoice)\nDECLARE_ASN1_FUNCTIONS(ASIdentifiers)\n\ntypedef struct IPAddressRange_st {\n    ASN1_BIT_STRING *min, *max;\n} IPAddressRange;\n\n# define IPAddressOrRange_addressPrefix  0\n# define IPAddressOrRange_addressRange   1\n\ntypedef struct IPAddressOrRange_st {\n    int type;\n    union {\n        ASN1_BIT_STRING *addressPrefix;\n        IPAddressRange *addressRange;\n    } u;\n} IPAddressOrRange;\n\ntypedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;\nDEFINE_STACK_OF(IPAddressOrRange)\n\n# define IPAddressChoice_inherit                 0\n# define IPAddressChoice_addressesOrRanges       1\n\ntypedef struct IPAddressChoice_st {\n    int type;\n    union {\n        ASN1_NULL *inherit;\n        IPAddressOrRanges *addressesOrRanges;\n    } u;\n} IPAddressChoice;\n\ntypedef struct IPAddressFamily_st {\n    ASN1_OCTET_STRING *addressFamily;\n    IPAddressChoice *ipAddressChoice;\n} IPAddressFamily;\n\ntypedef STACK_OF(IPAddressFamily) IPAddrBlocks;\nDEFINE_STACK_OF(IPAddressFamily)\n\nDECLARE_ASN1_FUNCTIONS(IPAddressRange)\nDECLARE_ASN1_FUNCTIONS(IPAddressOrRange)\nDECLARE_ASN1_FUNCTIONS(IPAddressChoice)\nDECLARE_ASN1_FUNCTIONS(IPAddressFamily)\n\n/*\n * API tag for elements of the ASIdentifer SEQUENCE.\n */\n# define V3_ASID_ASNUM   0\n# define V3_ASID_RDI     1\n\n/*\n * AFI values, assigned by IANA.  It'd be nice to make the AFI\n * handling code totally generic, but there are too many little things\n * that would need to be defined for other address families for it to\n * be worth the trouble.\n */\n# define IANA_AFI_IPV4   1\n# define IANA_AFI_IPV6   2\n\n/*\n * Utilities to construct and extract values from RFC3779 extensions,\n * since some of the encodings (particularly for IP address prefixes\n * and ranges) are a bit tedious to work with directly.\n */\nint X509v3_asid_add_inherit(ASIdentifiers *asid, int which);\nint X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which,\n                                ASN1_INTEGER *min, ASN1_INTEGER *max);\nint X509v3_addr_add_inherit(IPAddrBlocks *addr,\n                            const unsigned afi, const unsigned *safi);\nint X509v3_addr_add_prefix(IPAddrBlocks *addr,\n                           const unsigned afi, const unsigned *safi,\n                           unsigned char *a, const int prefixlen);\nint X509v3_addr_add_range(IPAddrBlocks *addr,\n                          const unsigned afi, const unsigned *safi,\n                          unsigned char *min, unsigned char *max);\nunsigned X509v3_addr_get_afi(const IPAddressFamily *f);\nint X509v3_addr_get_range(IPAddressOrRange *aor, const unsigned afi,\n                          unsigned char *min, unsigned char *max,\n                          const int length);\n\n/*\n * Canonical forms.\n */\nint X509v3_asid_is_canonical(ASIdentifiers *asid);\nint X509v3_addr_is_canonical(IPAddrBlocks *addr);\nint X509v3_asid_canonize(ASIdentifiers *asid);\nint X509v3_addr_canonize(IPAddrBlocks *addr);\n\n/*\n * Tests for inheritance and containment.\n */\nint X509v3_asid_inherits(ASIdentifiers *asid);\nint X509v3_addr_inherits(IPAddrBlocks *addr);\nint X509v3_asid_subset(ASIdentifiers *a, ASIdentifiers *b);\nint X509v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b);\n\n/*\n * Check whether RFC 3779 extensions nest properly in chains.\n */\nint X509v3_asid_validate_path(X509_STORE_CTX *);\nint X509v3_addr_validate_path(X509_STORE_CTX *);\nint X509v3_asid_validate_resource_set(STACK_OF(X509) *chain,\n                                      ASIdentifiers *ext,\n                                      int allow_inheritance);\nint X509v3_addr_validate_resource_set(STACK_OF(X509) *chain,\n                                      IPAddrBlocks *ext, int allow_inheritance);\n\n#endif                         /* OPENSSL_NO_RFC3779 */\n\nDEFINE_STACK_OF(ASN1_STRING)\n\n/*\n * Admission Syntax\n */\ntypedef struct NamingAuthority_st NAMING_AUTHORITY;\ntypedef struct ProfessionInfo_st PROFESSION_INFO;\ntypedef struct Admissions_st ADMISSIONS;\ntypedef struct AdmissionSyntax_st ADMISSION_SYNTAX;\nDECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY)\nDECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)\nDECLARE_ASN1_FUNCTIONS(ADMISSIONS)\nDECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)\nDEFINE_STACK_OF(ADMISSIONS)\nDEFINE_STACK_OF(PROFESSION_INFO)\ntypedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS;\n\nconst ASN1_OBJECT *NAMING_AUTHORITY_get0_authorityId(\n    const NAMING_AUTHORITY *n);\nconst ASN1_IA5STRING *NAMING_AUTHORITY_get0_authorityURL(\n    const NAMING_AUTHORITY *n);\nconst ASN1_STRING *NAMING_AUTHORITY_get0_authorityText(\n    const NAMING_AUTHORITY *n);\nvoid NAMING_AUTHORITY_set0_authorityId(NAMING_AUTHORITY *n,\n    ASN1_OBJECT* namingAuthorityId);\nvoid NAMING_AUTHORITY_set0_authorityURL(NAMING_AUTHORITY *n,\n    ASN1_IA5STRING* namingAuthorityUrl);\nvoid NAMING_AUTHORITY_set0_authorityText(NAMING_AUTHORITY *n,\n    ASN1_STRING* namingAuthorityText);\n\nconst GENERAL_NAME *ADMISSION_SYNTAX_get0_admissionAuthority(\n    const ADMISSION_SYNTAX *as);\nvoid ADMISSION_SYNTAX_set0_admissionAuthority(\n    ADMISSION_SYNTAX *as, GENERAL_NAME *aa);\nconst STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions(\n    const ADMISSION_SYNTAX *as);\nvoid ADMISSION_SYNTAX_set0_contentsOfAdmissions(\n    ADMISSION_SYNTAX *as, STACK_OF(ADMISSIONS) *a);\nconst GENERAL_NAME *ADMISSIONS_get0_admissionAuthority(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_admissionAuthority(ADMISSIONS *a, GENERAL_NAME *aa);\nconst NAMING_AUTHORITY *ADMISSIONS_get0_namingAuthority(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_namingAuthority(ADMISSIONS *a, NAMING_AUTHORITY *na);\nconst PROFESSION_INFOS *ADMISSIONS_get0_professionInfos(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_professionInfos(ADMISSIONS *a, PROFESSION_INFOS *pi);\nconst ASN1_OCTET_STRING *PROFESSION_INFO_get0_addProfessionInfo(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_addProfessionInfo(\n    PROFESSION_INFO *pi, ASN1_OCTET_STRING *aos);\nconst NAMING_AUTHORITY *PROFESSION_INFO_get0_namingAuthority(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_namingAuthority(\n    PROFESSION_INFO *pi, NAMING_AUTHORITY *na);\nconst STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_professionItems(\n    PROFESSION_INFO *pi, STACK_OF(ASN1_STRING) *as);\nconst STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_professionOIDs(\n    PROFESSION_INFO *pi, STACK_OF(ASN1_OBJECT) *po);\nconst ASN1_PRINTABLESTRING *PROFESSION_INFO_get0_registrationNumber(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_registrationNumber(\n    PROFESSION_INFO *pi, ASN1_PRINTABLESTRING *rn);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/ios-arm64_x86_64-simulator/Headers/openssl/x509v3err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509V3ERR_H\n# define HEADER_X509V3ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_X509V3_strings(void);\n\n/*\n * X509V3 function codes.\n */\n# define X509V3_F_A2I_GENERAL_NAME                        164\n# define X509V3_F_ADDR_VALIDATE_PATH_INTERNAL             166\n# define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE             161\n# define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL         162\n# define X509V3_F_BIGNUM_TO_STRING                        167\n# define X509V3_F_COPY_EMAIL                              122\n# define X509V3_F_COPY_ISSUER                             123\n# define X509V3_F_DO_DIRNAME                              144\n# define X509V3_F_DO_EXT_I2D                              135\n# define X509V3_F_DO_EXT_NCONF                            151\n# define X509V3_F_GNAMES_FROM_SECTNAME                    156\n# define X509V3_F_I2S_ASN1_ENUMERATED                     121\n# define X509V3_F_I2S_ASN1_IA5STRING                      149\n# define X509V3_F_I2S_ASN1_INTEGER                        120\n# define X509V3_F_I2V_AUTHORITY_INFO_ACCESS               138\n# define X509V3_F_LEVEL_ADD_NODE                          168\n# define X509V3_F_NOTICE_SECTION                          132\n# define X509V3_F_NREF_NOS                                133\n# define X509V3_F_POLICY_CACHE_CREATE                     169\n# define X509V3_F_POLICY_CACHE_NEW                        170\n# define X509V3_F_POLICY_DATA_NEW                         171\n# define X509V3_F_POLICY_SECTION                          131\n# define X509V3_F_PROCESS_PCI_VALUE                       150\n# define X509V3_F_R2I_CERTPOL                             130\n# define X509V3_F_R2I_PCI                                 155\n# define X509V3_F_S2I_ASN1_IA5STRING                      100\n# define X509V3_F_S2I_ASN1_INTEGER                        108\n# define X509V3_F_S2I_ASN1_OCTET_STRING                   112\n# define X509V3_F_S2I_SKEY_ID                             115\n# define X509V3_F_SET_DIST_POINT_NAME                     158\n# define X509V3_F_SXNET_ADD_ID_ASC                        125\n# define X509V3_F_SXNET_ADD_ID_INTEGER                    126\n# define X509V3_F_SXNET_ADD_ID_ULONG                      127\n# define X509V3_F_SXNET_GET_ID_ASC                        128\n# define X509V3_F_SXNET_GET_ID_ULONG                      129\n# define X509V3_F_TREE_INIT                               172\n# define X509V3_F_V2I_ASIDENTIFIERS                       163\n# define X509V3_F_V2I_ASN1_BIT_STRING                     101\n# define X509V3_F_V2I_AUTHORITY_INFO_ACCESS               139\n# define X509V3_F_V2I_AUTHORITY_KEYID                     119\n# define X509V3_F_V2I_BASIC_CONSTRAINTS                   102\n# define X509V3_F_V2I_CRLD                                134\n# define X509V3_F_V2I_EXTENDED_KEY_USAGE                  103\n# define X509V3_F_V2I_GENERAL_NAMES                       118\n# define X509V3_F_V2I_GENERAL_NAME_EX                     117\n# define X509V3_F_V2I_IDP                                 157\n# define X509V3_F_V2I_IPADDRBLOCKS                        159\n# define X509V3_F_V2I_ISSUER_ALT                          153\n# define X509V3_F_V2I_NAME_CONSTRAINTS                    147\n# define X509V3_F_V2I_POLICY_CONSTRAINTS                  146\n# define X509V3_F_V2I_POLICY_MAPPINGS                     145\n# define X509V3_F_V2I_SUBJECT_ALT                         154\n# define X509V3_F_V2I_TLS_FEATURE                         165\n# define X509V3_F_V3_GENERIC_EXTENSION                    116\n# define X509V3_F_X509V3_ADD1_I2D                         140\n# define X509V3_F_X509V3_ADD_VALUE                        105\n# define X509V3_F_X509V3_EXT_ADD                          104\n# define X509V3_F_X509V3_EXT_ADD_ALIAS                    106\n# define X509V3_F_X509V3_EXT_I2D                          136\n# define X509V3_F_X509V3_EXT_NCONF                        152\n# define X509V3_F_X509V3_GET_SECTION                      142\n# define X509V3_F_X509V3_GET_STRING                       143\n# define X509V3_F_X509V3_GET_VALUE_BOOL                   110\n# define X509V3_F_X509V3_PARSE_LIST                       109\n# define X509V3_F_X509_PURPOSE_ADD                        137\n# define X509V3_F_X509_PURPOSE_SET                        141\n\n/*\n * X509V3 reason codes.\n */\n# define X509V3_R_BAD_IP_ADDRESS                          118\n# define X509V3_R_BAD_OBJECT                              119\n# define X509V3_R_BN_DEC2BN_ERROR                         100\n# define X509V3_R_BN_TO_ASN1_INTEGER_ERROR                101\n# define X509V3_R_DIRNAME_ERROR                           149\n# define X509V3_R_DISTPOINT_ALREADY_SET                   160\n# define X509V3_R_DUPLICATE_ZONE_ID                       133\n# define X509V3_R_ERROR_CONVERTING_ZONE                   131\n# define X509V3_R_ERROR_CREATING_EXTENSION                144\n# define X509V3_R_ERROR_IN_EXTENSION                      128\n# define X509V3_R_EXPECTED_A_SECTION_NAME                 137\n# define X509V3_R_EXTENSION_EXISTS                        145\n# define X509V3_R_EXTENSION_NAME_ERROR                    115\n# define X509V3_R_EXTENSION_NOT_FOUND                     102\n# define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED         103\n# define X509V3_R_EXTENSION_VALUE_ERROR                   116\n# define X509V3_R_ILLEGAL_EMPTY_EXTENSION                 151\n# define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG             152\n# define X509V3_R_INVALID_ASNUMBER                        162\n# define X509V3_R_INVALID_ASRANGE                         163\n# define X509V3_R_INVALID_BOOLEAN_STRING                  104\n# define X509V3_R_INVALID_EXTENSION_STRING                105\n# define X509V3_R_INVALID_INHERITANCE                     165\n# define X509V3_R_INVALID_IPADDRESS                       166\n# define X509V3_R_INVALID_MULTIPLE_RDNS                   161\n# define X509V3_R_INVALID_NAME                            106\n# define X509V3_R_INVALID_NULL_ARGUMENT                   107\n# define X509V3_R_INVALID_NULL_NAME                       108\n# define X509V3_R_INVALID_NULL_VALUE                      109\n# define X509V3_R_INVALID_NUMBER                          140\n# define X509V3_R_INVALID_NUMBERS                         141\n# define X509V3_R_INVALID_OBJECT_IDENTIFIER               110\n# define X509V3_R_INVALID_OPTION                          138\n# define X509V3_R_INVALID_POLICY_IDENTIFIER               134\n# define X509V3_R_INVALID_PROXY_POLICY_SETTING            153\n# define X509V3_R_INVALID_PURPOSE                         146\n# define X509V3_R_INVALID_SAFI                            164\n# define X509V3_R_INVALID_SECTION                         135\n# define X509V3_R_INVALID_SYNTAX                          143\n# define X509V3_R_ISSUER_DECODE_ERROR                     126\n# define X509V3_R_MISSING_VALUE                           124\n# define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS           142\n# define X509V3_R_NO_CONFIG_DATABASE                      136\n# define X509V3_R_NO_ISSUER_CERTIFICATE                   121\n# define X509V3_R_NO_ISSUER_DETAILS                       127\n# define X509V3_R_NO_POLICY_IDENTIFIER                    139\n# define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED   154\n# define X509V3_R_NO_PUBLIC_KEY                           114\n# define X509V3_R_NO_SUBJECT_DETAILS                      125\n# define X509V3_R_OPERATION_NOT_DEFINED                   148\n# define X509V3_R_OTHERNAME_ERROR                         147\n# define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED         155\n# define X509V3_R_POLICY_PATH_LENGTH                      156\n# define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED      157\n# define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY 159\n# define X509V3_R_SECTION_NOT_FOUND                       150\n# define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS            122\n# define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID              123\n# define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT             111\n# define X509V3_R_UNKNOWN_EXTENSION                       129\n# define X509V3_R_UNKNOWN_EXTENSION_NAME                  130\n# define X509V3_R_UNKNOWN_OPTION                          120\n# define X509V3_R_UNSUPPORTED_OPTION                      117\n# define X509V3_R_UNSUPPORTED_TYPE                        167\n# define X509V3_R_USER_TOO_LONG                           132\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/aes.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_AES_H\n# define HEADER_AES_H\n\n# include <openssl/opensslconf.h>\n\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define AES_ENCRYPT     1\n# define AES_DECRYPT     0\n\n/*\n * Because array size can't be a const in C, the following two are macros.\n * Both sizes are in bytes.\n */\n# define AES_MAXNR 14\n# define AES_BLOCK_SIZE 16\n\n/* This should be a hidden type, but EVP requires that the size be known */\nstruct aes_key_st {\n# ifdef AES_LONG\n    unsigned long rd_key[4 * (AES_MAXNR + 1)];\n# else\n    unsigned int rd_key[4 * (AES_MAXNR + 1)];\n# endif\n    int rounds;\n};\ntypedef struct aes_key_st AES_KEY;\n\nconst char *AES_options(void);\n\nint AES_set_encrypt_key(const unsigned char *userKey, const int bits,\n                        AES_KEY *key);\nint AES_set_decrypt_key(const unsigned char *userKey, const int bits,\n                        AES_KEY *key);\n\nvoid AES_encrypt(const unsigned char *in, unsigned char *out,\n                 const AES_KEY *key);\nvoid AES_decrypt(const unsigned char *in, unsigned char *out,\n                 const AES_KEY *key);\n\nvoid AES_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                     const AES_KEY *key, const int enc);\nvoid AES_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                     size_t length, const AES_KEY *key,\n                     unsigned char *ivec, const int enc);\nvoid AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        unsigned char *ivec, int *num, const int enc);\nvoid AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,\n                      size_t length, const AES_KEY *key,\n                      unsigned char *ivec, int *num, const int enc);\nvoid AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,\n                      size_t length, const AES_KEY *key,\n                      unsigned char *ivec, int *num, const int enc);\nvoid AES_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        unsigned char *ivec, int *num);\n/* NB: the IV is _two_ blocks long */\nvoid AES_ige_encrypt(const unsigned char *in, unsigned char *out,\n                     size_t length, const AES_KEY *key,\n                     unsigned char *ivec, const int enc);\n/* NB: the IV is _four_ blocks long */\nvoid AES_bi_ige_encrypt(const unsigned char *in, unsigned char *out,\n                        size_t length, const AES_KEY *key,\n                        const AES_KEY *key2, const unsigned char *ivec,\n                        const int enc);\n\nint AES_wrap_key(AES_KEY *key, const unsigned char *iv,\n                 unsigned char *out,\n                 const unsigned char *in, unsigned int inlen);\nint AES_unwrap_key(AES_KEY *key, const unsigned char *iv,\n                   unsigned char *out,\n                   const unsigned char *in, unsigned int inlen);\n\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/asn1.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1_H\n# define HEADER_ASN1_H\n\n# include <time.h>\n# include <openssl/e_os2.h>\n# include <openssl/opensslconf.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/asn1err.h>\n# include <openssl/symhacks.h>\n\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define V_ASN1_UNIVERSAL                0x00\n# define V_ASN1_APPLICATION              0x40\n# define V_ASN1_CONTEXT_SPECIFIC         0x80\n# define V_ASN1_PRIVATE                  0xc0\n\n# define V_ASN1_CONSTRUCTED              0x20\n# define V_ASN1_PRIMITIVE_TAG            0x1f\n# define V_ASN1_PRIMATIVE_TAG /*compat*/ V_ASN1_PRIMITIVE_TAG\n\n# define V_ASN1_APP_CHOOSE               -2/* let the recipient choose */\n# define V_ASN1_OTHER                    -3/* used in ASN1_TYPE */\n# define V_ASN1_ANY                      -4/* used in ASN1 template code */\n\n# define V_ASN1_UNDEF                    -1\n/* ASN.1 tag values */\n# define V_ASN1_EOC                      0\n# define V_ASN1_BOOLEAN                  1 /**/\n# define V_ASN1_INTEGER                  2\n# define V_ASN1_BIT_STRING               3\n# define V_ASN1_OCTET_STRING             4\n# define V_ASN1_NULL                     5\n# define V_ASN1_OBJECT                   6\n# define V_ASN1_OBJECT_DESCRIPTOR        7\n# define V_ASN1_EXTERNAL                 8\n# define V_ASN1_REAL                     9\n# define V_ASN1_ENUMERATED               10\n# define V_ASN1_UTF8STRING               12\n# define V_ASN1_SEQUENCE                 16\n# define V_ASN1_SET                      17\n# define V_ASN1_NUMERICSTRING            18 /**/\n# define V_ASN1_PRINTABLESTRING          19\n# define V_ASN1_T61STRING                20\n# define V_ASN1_TELETEXSTRING            20/* alias */\n# define V_ASN1_VIDEOTEXSTRING           21 /**/\n# define V_ASN1_IA5STRING                22\n# define V_ASN1_UTCTIME                  23\n# define V_ASN1_GENERALIZEDTIME          24 /**/\n# define V_ASN1_GRAPHICSTRING            25 /**/\n# define V_ASN1_ISO64STRING              26 /**/\n# define V_ASN1_VISIBLESTRING            26/* alias */\n# define V_ASN1_GENERALSTRING            27 /**/\n# define V_ASN1_UNIVERSALSTRING          28 /**/\n# define V_ASN1_BMPSTRING                30\n\n/*\n * NB the constants below are used internally by ASN1_INTEGER\n * and ASN1_ENUMERATED to indicate the sign. They are *not* on\n * the wire tag values.\n */\n\n# define V_ASN1_NEG                      0x100\n# define V_ASN1_NEG_INTEGER              (2 | V_ASN1_NEG)\n# define V_ASN1_NEG_ENUMERATED           (10 | V_ASN1_NEG)\n\n/* For use with d2i_ASN1_type_bytes() */\n# define B_ASN1_NUMERICSTRING    0x0001\n# define B_ASN1_PRINTABLESTRING  0x0002\n# define B_ASN1_T61STRING        0x0004\n# define B_ASN1_TELETEXSTRING    0x0004\n# define B_ASN1_VIDEOTEXSTRING   0x0008\n# define B_ASN1_IA5STRING        0x0010\n# define B_ASN1_GRAPHICSTRING    0x0020\n# define B_ASN1_ISO64STRING      0x0040\n# define B_ASN1_VISIBLESTRING    0x0040\n# define B_ASN1_GENERALSTRING    0x0080\n# define B_ASN1_UNIVERSALSTRING  0x0100\n# define B_ASN1_OCTET_STRING     0x0200\n# define B_ASN1_BIT_STRING       0x0400\n# define B_ASN1_BMPSTRING        0x0800\n# define B_ASN1_UNKNOWN          0x1000\n# define B_ASN1_UTF8STRING       0x2000\n# define B_ASN1_UTCTIME          0x4000\n# define B_ASN1_GENERALIZEDTIME  0x8000\n# define B_ASN1_SEQUENCE         0x10000\n/* For use with ASN1_mbstring_copy() */\n# define MBSTRING_FLAG           0x1000\n# define MBSTRING_UTF8           (MBSTRING_FLAG)\n# define MBSTRING_ASC            (MBSTRING_FLAG|1)\n# define MBSTRING_BMP            (MBSTRING_FLAG|2)\n# define MBSTRING_UNIV           (MBSTRING_FLAG|4)\n# define SMIME_OLDMIME           0x400\n# define SMIME_CRLFEOL           0x800\n# define SMIME_STREAM            0x1000\n    struct X509_algor_st;\nDEFINE_STACK_OF(X509_ALGOR)\n\n# define ASN1_STRING_FLAG_BITS_LEFT 0x08/* Set if 0x07 has bits left value */\n/*\n * This indicates that the ASN1_STRING is not a real value but just a place\n * holder for the location where indefinite length constructed data should be\n * inserted in the memory buffer\n */\n# define ASN1_STRING_FLAG_NDEF 0x010\n\n/*\n * This flag is used by the CMS code to indicate that a string is not\n * complete and is a place holder for content when it had all been accessed.\n * The flag will be reset when content has been written to it.\n */\n\n# define ASN1_STRING_FLAG_CONT 0x020\n/*\n * This flag is used by ASN1 code to indicate an ASN1_STRING is an MSTRING\n * type.\n */\n# define ASN1_STRING_FLAG_MSTRING 0x040\n/* String is embedded and only content should be freed */\n# define ASN1_STRING_FLAG_EMBED 0x080\n/* String should be parsed in RFC 5280's time format */\n# define ASN1_STRING_FLAG_X509_TIME 0x100\n/* This is the base type that holds just about everything :-) */\nstruct asn1_string_st {\n    int length;\n    int type;\n    unsigned char *data;\n    /*\n     * The value of the following field depends on the type being held.  It\n     * is mostly being used for BIT_STRING so if the input data has a\n     * non-zero 'unused bits' value, it will be handled correctly\n     */\n    long flags;\n};\n\n/*\n * ASN1_ENCODING structure: this is used to save the received encoding of an\n * ASN1 type. This is useful to get round problems with invalid encodings\n * which can break signatures.\n */\n\ntypedef struct ASN1_ENCODING_st {\n    unsigned char *enc;         /* DER encoding */\n    long len;                   /* Length of encoding */\n    int modified;               /* set to 1 if 'enc' is invalid */\n} ASN1_ENCODING;\n\n/* Used with ASN1 LONG type: if a long is set to this it is omitted */\n# define ASN1_LONG_UNDEF 0x7fffffffL\n\n# define STABLE_FLAGS_MALLOC     0x01\n/*\n * A zero passed to ASN1_STRING_TABLE_new_add for the flags is interpreted\n * as \"don't change\" and STABLE_FLAGS_MALLOC is always set. By setting\n * STABLE_FLAGS_MALLOC only we can clear the existing value. Use the alias\n * STABLE_FLAGS_CLEAR to reflect this.\n */\n# define STABLE_FLAGS_CLEAR      STABLE_FLAGS_MALLOC\n# define STABLE_NO_MASK          0x02\n# define DIRSTRING_TYPE  \\\n (B_ASN1_PRINTABLESTRING|B_ASN1_T61STRING|B_ASN1_BMPSTRING|B_ASN1_UTF8STRING)\n# define PKCS9STRING_TYPE (DIRSTRING_TYPE|B_ASN1_IA5STRING)\n\ntypedef struct asn1_string_table_st {\n    int nid;\n    long minsize;\n    long maxsize;\n    unsigned long mask;\n    unsigned long flags;\n} ASN1_STRING_TABLE;\n\nDEFINE_STACK_OF(ASN1_STRING_TABLE)\n\n/* size limits: this stuff is taken straight from RFC2459 */\n\n# define ub_name                         32768\n# define ub_common_name                  64\n# define ub_locality_name                128\n# define ub_state_name                   128\n# define ub_organization_name            64\n# define ub_organization_unit_name       64\n# define ub_title                        64\n# define ub_email_address                128\n\n/*\n * Declarations for template structures: for full definitions see asn1t.h\n */\ntypedef struct ASN1_TEMPLATE_st ASN1_TEMPLATE;\ntypedef struct ASN1_TLC_st ASN1_TLC;\n/* This is just an opaque pointer */\ntypedef struct ASN1_VALUE_st ASN1_VALUE;\n\n/* Declare ASN1 functions: the implement macro in in asn1t.h */\n\n# define DECLARE_ASN1_FUNCTIONS(type) DECLARE_ASN1_FUNCTIONS_name(type, type)\n\n# define DECLARE_ASN1_ALLOC_FUNCTIONS(type) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, type)\n\n# define DECLARE_ASN1_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS(type, name, name)\n\n# define DECLARE_ASN1_FUNCTIONS_fname(type, itname, name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name)\n\n# define DECLARE_ASN1_ENCODE_FUNCTIONS(type, itname, name) \\\n        type *d2i_##name(type **a, const unsigned char **in, long len); \\\n        int i2d_##name(type *a, unsigned char **out); \\\n        DECLARE_ASN1_ITEM(itname)\n\n# define DECLARE_ASN1_ENCODE_FUNCTIONS_const(type, name) \\\n        type *d2i_##name(type **a, const unsigned char **in, long len); \\\n        int i2d_##name(const type *a, unsigned char **out); \\\n        DECLARE_ASN1_ITEM(name)\n\n# define DECLARE_ASN1_NDEF_FUNCTION(name) \\\n        int i2d_##name##_NDEF(name *a, unsigned char **out);\n\n# define DECLARE_ASN1_FUNCTIONS_const(name) \\\n        DECLARE_ASN1_ALLOC_FUNCTIONS(name) \\\n        DECLARE_ASN1_ENCODE_FUNCTIONS_const(name, name)\n\n# define DECLARE_ASN1_ALLOC_FUNCTIONS_name(type, name) \\\n        type *name##_new(void); \\\n        void name##_free(type *a);\n\n# define DECLARE_ASN1_PRINT_FUNCTION(stname) \\\n        DECLARE_ASN1_PRINT_FUNCTION_fname(stname, stname)\n\n# define DECLARE_ASN1_PRINT_FUNCTION_fname(stname, fname) \\\n        int fname##_print_ctx(BIO *out, stname *x, int indent, \\\n                                         const ASN1_PCTX *pctx);\n\n# define D2I_OF(type) type *(*)(type **,const unsigned char **,long)\n# define I2D_OF(type) int (*)(type *,unsigned char **)\n# define I2D_OF_const(type) int (*)(const type *,unsigned char **)\n\n# define CHECKED_D2I_OF(type, d2i) \\\n    ((d2i_of_void*) (1 ? d2i : ((D2I_OF(type))0)))\n# define CHECKED_I2D_OF(type, i2d) \\\n    ((i2d_of_void*) (1 ? i2d : ((I2D_OF(type))0)))\n# define CHECKED_NEW_OF(type, xnew) \\\n    ((void *(*)(void)) (1 ? xnew : ((type *(*)(void))0)))\n# define CHECKED_PTR_OF(type, p) \\\n    ((void*) (1 ? p : (type*)0))\n# define CHECKED_PPTR_OF(type, p) \\\n    ((void**) (1 ? p : (type**)0))\n\n# define TYPEDEF_D2I_OF(type) typedef type *d2i_of_##type(type **,const unsigned char **,long)\n# define TYPEDEF_I2D_OF(type) typedef int i2d_of_##type(type *,unsigned char **)\n# define TYPEDEF_D2I2D_OF(type) TYPEDEF_D2I_OF(type); TYPEDEF_I2D_OF(type)\n\nTYPEDEF_D2I2D_OF(void);\n\n/*-\n * The following macros and typedefs allow an ASN1_ITEM\n * to be embedded in a structure and referenced. Since\n * the ASN1_ITEM pointers need to be globally accessible\n * (possibly from shared libraries) they may exist in\n * different forms. On platforms that support it the\n * ASN1_ITEM structure itself will be globally exported.\n * Other platforms will export a function that returns\n * an ASN1_ITEM pointer.\n *\n * To handle both cases transparently the macros below\n * should be used instead of hard coding an ASN1_ITEM\n * pointer in a structure.\n *\n * The structure will look like this:\n *\n * typedef struct SOMETHING_st {\n *      ...\n *      ASN1_ITEM_EXP *iptr;\n *      ...\n * } SOMETHING;\n *\n * It would be initialised as e.g.:\n *\n * SOMETHING somevar = {...,ASN1_ITEM_ref(X509),...};\n *\n * and the actual pointer extracted with:\n *\n * const ASN1_ITEM *it = ASN1_ITEM_ptr(somevar.iptr);\n *\n * Finally an ASN1_ITEM pointer can be extracted from an\n * appropriate reference with: ASN1_ITEM_rptr(X509). This\n * would be used when a function takes an ASN1_ITEM * argument.\n *\n */\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/* ASN1_ITEM pointer exported type */\ntypedef const ASN1_ITEM ASN1_ITEM_EXP;\n\n/* Macro to obtain ASN1_ITEM pointer from exported type */\n#  define ASN1_ITEM_ptr(iptr) (iptr)\n\n/* Macro to include ASN1_ITEM pointer from base type */\n#  define ASN1_ITEM_ref(iptr) (&(iptr##_it))\n\n#  define ASN1_ITEM_rptr(ref) (&(ref##_it))\n\n#  define DECLARE_ASN1_ITEM(name) \\\n        OPENSSL_EXTERN const ASN1_ITEM name##_it;\n\n# else\n\n/*\n * Platforms that can't easily handle shared global variables are declared as\n * functions returning ASN1_ITEM pointers.\n */\n\n/* ASN1_ITEM pointer exported type */\ntypedef const ASN1_ITEM *ASN1_ITEM_EXP (void);\n\n/* Macro to obtain ASN1_ITEM pointer from exported type */\n#  define ASN1_ITEM_ptr(iptr) (iptr())\n\n/* Macro to include ASN1_ITEM pointer from base type */\n#  define ASN1_ITEM_ref(iptr) (iptr##_it)\n\n#  define ASN1_ITEM_rptr(ref) (ref##_it())\n\n#  define DECLARE_ASN1_ITEM(name) \\\n        const ASN1_ITEM * name##_it(void);\n\n# endif\n\n/* Parameters used by ASN1_STRING_print_ex() */\n\n/*\n * These determine which characters to escape: RFC2253 special characters,\n * control characters and MSB set characters\n */\n\n# define ASN1_STRFLGS_ESC_2253           1\n# define ASN1_STRFLGS_ESC_CTRL           2\n# define ASN1_STRFLGS_ESC_MSB            4\n\n/*\n * This flag determines how we do escaping: normally RC2253 backslash only,\n * set this to use backslash and quote.\n */\n\n# define ASN1_STRFLGS_ESC_QUOTE          8\n\n/* These three flags are internal use only. */\n\n/* Character is a valid PrintableString character */\n# define CHARTYPE_PRINTABLESTRING        0x10\n/* Character needs escaping if it is the first character */\n# define CHARTYPE_FIRST_ESC_2253         0x20\n/* Character needs escaping if it is the last character */\n# define CHARTYPE_LAST_ESC_2253          0x40\n\n/*\n * NB the internal flags are safely reused below by flags handled at the top\n * level.\n */\n\n/*\n * If this is set we convert all character strings to UTF8 first\n */\n\n# define ASN1_STRFLGS_UTF8_CONVERT       0x10\n\n/*\n * If this is set we don't attempt to interpret content: just assume all\n * strings are 1 byte per character. This will produce some pretty odd\n * looking output!\n */\n\n# define ASN1_STRFLGS_IGNORE_TYPE        0x20\n\n/* If this is set we include the string type in the output */\n# define ASN1_STRFLGS_SHOW_TYPE          0x40\n\n/*\n * This determines which strings to display and which to 'dump' (hex dump of\n * content octets or DER encoding). We can only dump non character strings or\n * everything. If we don't dump 'unknown' they are interpreted as character\n * strings with 1 octet per character and are subject to the usual escaping\n * options.\n */\n\n# define ASN1_STRFLGS_DUMP_ALL           0x80\n# define ASN1_STRFLGS_DUMP_UNKNOWN       0x100\n\n/*\n * These determine what 'dumping' does, we can dump the content octets or the\n * DER encoding: both use the RFC2253 #XXXXX notation.\n */\n\n# define ASN1_STRFLGS_DUMP_DER           0x200\n\n/*\n * This flag specifies that RC2254 escaping shall be performed.\n */\n#define ASN1_STRFLGS_ESC_2254           0x400\n\n/*\n * All the string flags consistent with RFC2253, escaping control characters\n * isn't essential in RFC2253 but it is advisable anyway.\n */\n\n# define ASN1_STRFLGS_RFC2253    (ASN1_STRFLGS_ESC_2253 | \\\n                                ASN1_STRFLGS_ESC_CTRL | \\\n                                ASN1_STRFLGS_ESC_MSB | \\\n                                ASN1_STRFLGS_UTF8_CONVERT | \\\n                                ASN1_STRFLGS_DUMP_UNKNOWN | \\\n                                ASN1_STRFLGS_DUMP_DER)\n\nDEFINE_STACK_OF(ASN1_INTEGER)\n\nDEFINE_STACK_OF(ASN1_GENERALSTRING)\n\nDEFINE_STACK_OF(ASN1_UTF8STRING)\n\ntypedef struct asn1_type_st {\n    int type;\n    union {\n        char *ptr;\n        ASN1_BOOLEAN boolean;\n        ASN1_STRING *asn1_string;\n        ASN1_OBJECT *object;\n        ASN1_INTEGER *integer;\n        ASN1_ENUMERATED *enumerated;\n        ASN1_BIT_STRING *bit_string;\n        ASN1_OCTET_STRING *octet_string;\n        ASN1_PRINTABLESTRING *printablestring;\n        ASN1_T61STRING *t61string;\n        ASN1_IA5STRING *ia5string;\n        ASN1_GENERALSTRING *generalstring;\n        ASN1_BMPSTRING *bmpstring;\n        ASN1_UNIVERSALSTRING *universalstring;\n        ASN1_UTCTIME *utctime;\n        ASN1_GENERALIZEDTIME *generalizedtime;\n        ASN1_VISIBLESTRING *visiblestring;\n        ASN1_UTF8STRING *utf8string;\n        /*\n         * set and sequence are left complete and still contain the set or\n         * sequence bytes\n         */\n        ASN1_STRING *set;\n        ASN1_STRING *sequence;\n        ASN1_VALUE *asn1_value;\n    } value;\n} ASN1_TYPE;\n\nDEFINE_STACK_OF(ASN1_TYPE)\n\ntypedef STACK_OF(ASN1_TYPE) ASN1_SEQUENCE_ANY;\n\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SEQUENCE_ANY)\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(ASN1_SEQUENCE_ANY, ASN1_SET_ANY)\n\n/* This is used to contain a list of bit names */\ntypedef struct BIT_STRING_BITNAME_st {\n    int bitnum;\n    const char *lname;\n    const char *sname;\n} BIT_STRING_BITNAME;\n\n# define B_ASN1_TIME \\\n                        B_ASN1_UTCTIME | \\\n                        B_ASN1_GENERALIZEDTIME\n\n# define B_ASN1_PRINTABLE \\\n                        B_ASN1_NUMERICSTRING| \\\n                        B_ASN1_PRINTABLESTRING| \\\n                        B_ASN1_T61STRING| \\\n                        B_ASN1_IA5STRING| \\\n                        B_ASN1_BIT_STRING| \\\n                        B_ASN1_UNIVERSALSTRING|\\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UTF8STRING|\\\n                        B_ASN1_SEQUENCE|\\\n                        B_ASN1_UNKNOWN\n\n# define B_ASN1_DIRECTORYSTRING \\\n                        B_ASN1_PRINTABLESTRING| \\\n                        B_ASN1_TELETEXSTRING|\\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UNIVERSALSTRING|\\\n                        B_ASN1_UTF8STRING\n\n# define B_ASN1_DISPLAYTEXT \\\n                        B_ASN1_IA5STRING| \\\n                        B_ASN1_VISIBLESTRING| \\\n                        B_ASN1_BMPSTRING|\\\n                        B_ASN1_UTF8STRING\n\nDECLARE_ASN1_FUNCTIONS_fname(ASN1_TYPE, ASN1_ANY, ASN1_TYPE)\n\nint ASN1_TYPE_get(const ASN1_TYPE *a);\nvoid ASN1_TYPE_set(ASN1_TYPE *a, int type, void *value);\nint ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value);\nint ASN1_TYPE_cmp(const ASN1_TYPE *a, const ASN1_TYPE *b);\n\nASN1_TYPE *ASN1_TYPE_pack_sequence(const ASN1_ITEM *it, void *s, ASN1_TYPE **t);\nvoid *ASN1_TYPE_unpack_sequence(const ASN1_ITEM *it, const ASN1_TYPE *t);\n\nASN1_OBJECT *ASN1_OBJECT_new(void);\nvoid ASN1_OBJECT_free(ASN1_OBJECT *a);\nint i2d_ASN1_OBJECT(const ASN1_OBJECT *a, unsigned char **pp);\nASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,\n                             long length);\n\nDECLARE_ASN1_ITEM(ASN1_OBJECT)\n\nDEFINE_STACK_OF(ASN1_OBJECT)\n\nASN1_STRING *ASN1_STRING_new(void);\nvoid ASN1_STRING_free(ASN1_STRING *a);\nvoid ASN1_STRING_clear_free(ASN1_STRING *a);\nint ASN1_STRING_copy(ASN1_STRING *dst, const ASN1_STRING *str);\nASN1_STRING *ASN1_STRING_dup(const ASN1_STRING *a);\nASN1_STRING *ASN1_STRING_type_new(int type);\nint ASN1_STRING_cmp(const ASN1_STRING *a, const ASN1_STRING *b);\n  /*\n   * Since this is used to store all sorts of things, via macros, for now,\n   * make its data void *\n   */\nint ASN1_STRING_set(ASN1_STRING *str, const void *data, int len);\nvoid ASN1_STRING_set0(ASN1_STRING *str, void *data, int len);\nint ASN1_STRING_length(const ASN1_STRING *x);\nvoid ASN1_STRING_length_set(ASN1_STRING *x, int n);\nint ASN1_STRING_type(const ASN1_STRING *x);\nDEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))\nconst unsigned char *ASN1_STRING_get0_data(const ASN1_STRING *x);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_BIT_STRING)\nint ASN1_BIT_STRING_set(ASN1_BIT_STRING *a, unsigned char *d, int length);\nint ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value);\nint ASN1_BIT_STRING_get_bit(const ASN1_BIT_STRING *a, int n);\nint ASN1_BIT_STRING_check(const ASN1_BIT_STRING *a,\n                          const unsigned char *flags, int flags_len);\n\nint ASN1_BIT_STRING_name_print(BIO *out, ASN1_BIT_STRING *bs,\n                               BIT_STRING_BITNAME *tbl, int indent);\nint ASN1_BIT_STRING_num_asc(const char *name, BIT_STRING_BITNAME *tbl);\nint ASN1_BIT_STRING_set_asc(ASN1_BIT_STRING *bs, const char *name, int value,\n                            BIT_STRING_BITNAME *tbl);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_INTEGER)\nASN1_INTEGER *d2i_ASN1_UINTEGER(ASN1_INTEGER **a, const unsigned char **pp,\n                                long length);\nASN1_INTEGER *ASN1_INTEGER_dup(const ASN1_INTEGER *x);\nint ASN1_INTEGER_cmp(const ASN1_INTEGER *x, const ASN1_INTEGER *y);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED)\n\nint ASN1_UTCTIME_check(const ASN1_UTCTIME *a);\nASN1_UTCTIME *ASN1_UTCTIME_set(ASN1_UTCTIME *s, time_t t);\nASN1_UTCTIME *ASN1_UTCTIME_adj(ASN1_UTCTIME *s, time_t t,\n                               int offset_day, long offset_sec);\nint ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str);\nint ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t);\n\nint ASN1_GENERALIZEDTIME_check(const ASN1_GENERALIZEDTIME *a);\nASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,\n                                               time_t t);\nASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_adj(ASN1_GENERALIZEDTIME *s,\n                                               time_t t, int offset_day,\n                                               long offset_sec);\nint ASN1_GENERALIZEDTIME_set_string(ASN1_GENERALIZEDTIME *s, const char *str);\n\nint ASN1_TIME_diff(int *pday, int *psec,\n                   const ASN1_TIME *from, const ASN1_TIME *to);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING)\nASN1_OCTET_STRING *ASN1_OCTET_STRING_dup(const ASN1_OCTET_STRING *a);\nint ASN1_OCTET_STRING_cmp(const ASN1_OCTET_STRING *a,\n                          const ASN1_OCTET_STRING *b);\nint ASN1_OCTET_STRING_set(ASN1_OCTET_STRING *str, const unsigned char *data,\n                          int len);\n\nDECLARE_ASN1_FUNCTIONS(ASN1_VISIBLESTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UNIVERSALSTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UTF8STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_NULL)\nDECLARE_ASN1_FUNCTIONS(ASN1_BMPSTRING)\n\nint UTF8_getc(const unsigned char *str, int len, unsigned long *val);\nint UTF8_putc(unsigned char *str, int len, unsigned long value);\n\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, ASN1_PRINTABLE)\n\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DIRECTORYSTRING)\nDECLARE_ASN1_FUNCTIONS_name(ASN1_STRING, DISPLAYTEXT)\nDECLARE_ASN1_FUNCTIONS(ASN1_PRINTABLESTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_T61STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_IA5STRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_GENERALSTRING)\nDECLARE_ASN1_FUNCTIONS(ASN1_UTCTIME)\nDECLARE_ASN1_FUNCTIONS(ASN1_GENERALIZEDTIME)\nDECLARE_ASN1_FUNCTIONS(ASN1_TIME)\n\nDECLARE_ASN1_ITEM(ASN1_OCTET_STRING_NDEF)\n\nASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t);\nASN1_TIME *ASN1_TIME_adj(ASN1_TIME *s, time_t t,\n                         int offset_day, long offset_sec);\nint ASN1_TIME_check(const ASN1_TIME *t);\nASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(const ASN1_TIME *t,\n                                                   ASN1_GENERALIZEDTIME **out);\nint ASN1_TIME_set_string(ASN1_TIME *s, const char *str);\nint ASN1_TIME_set_string_X509(ASN1_TIME *s, const char *str);\nint ASN1_TIME_to_tm(const ASN1_TIME *s, struct tm *tm);\nint ASN1_TIME_normalize(ASN1_TIME *s);\nint ASN1_TIME_cmp_time_t(const ASN1_TIME *s, time_t t);\nint ASN1_TIME_compare(const ASN1_TIME *a, const ASN1_TIME *b);\n\nint i2a_ASN1_INTEGER(BIO *bp, const ASN1_INTEGER *a);\nint a2i_ASN1_INTEGER(BIO *bp, ASN1_INTEGER *bs, char *buf, int size);\nint i2a_ASN1_ENUMERATED(BIO *bp, const ASN1_ENUMERATED *a);\nint a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size);\nint i2a_ASN1_OBJECT(BIO *bp, const ASN1_OBJECT *a);\nint a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size);\nint i2a_ASN1_STRING(BIO *bp, const ASN1_STRING *a, int type);\nint i2t_ASN1_OBJECT(char *buf, int buf_len, const ASN1_OBJECT *a);\n\nint a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num);\nASN1_OBJECT *ASN1_OBJECT_create(int nid, unsigned char *data, int len,\n                                const char *sn, const char *ln);\n\nint ASN1_INTEGER_get_int64(int64_t *pr, const ASN1_INTEGER *a);\nint ASN1_INTEGER_set_int64(ASN1_INTEGER *a, int64_t r);\nint ASN1_INTEGER_get_uint64(uint64_t *pr, const ASN1_INTEGER *a);\nint ASN1_INTEGER_set_uint64(ASN1_INTEGER *a, uint64_t r);\n\nint ASN1_INTEGER_set(ASN1_INTEGER *a, long v);\nlong ASN1_INTEGER_get(const ASN1_INTEGER *a);\nASN1_INTEGER *BN_to_ASN1_INTEGER(const BIGNUM *bn, ASN1_INTEGER *ai);\nBIGNUM *ASN1_INTEGER_to_BN(const ASN1_INTEGER *ai, BIGNUM *bn);\n\nint ASN1_ENUMERATED_get_int64(int64_t *pr, const ASN1_ENUMERATED *a);\nint ASN1_ENUMERATED_set_int64(ASN1_ENUMERATED *a, int64_t r);\n\n\nint ASN1_ENUMERATED_set(ASN1_ENUMERATED *a, long v);\nlong ASN1_ENUMERATED_get(const ASN1_ENUMERATED *a);\nASN1_ENUMERATED *BN_to_ASN1_ENUMERATED(const BIGNUM *bn, ASN1_ENUMERATED *ai);\nBIGNUM *ASN1_ENUMERATED_to_BN(const ASN1_ENUMERATED *ai, BIGNUM *bn);\n\n/* General */\n/* given a string, return the correct type, max is the maximum length */\nint ASN1_PRINTABLE_type(const unsigned char *s, int max);\n\nunsigned long ASN1_tag2bit(int tag);\n\n/* SPECIALS */\nint ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,\n                    int *pclass, long omax);\nint ASN1_check_infinite_end(unsigned char **p, long len);\nint ASN1_const_check_infinite_end(const unsigned char **p, long len);\nvoid ASN1_put_object(unsigned char **pp, int constructed, int length,\n                     int tag, int xclass);\nint ASN1_put_eoc(unsigned char **pp);\nint ASN1_object_size(int constructed, int length, int tag);\n\n/* Used to implement other functions */\nvoid *ASN1_dup(i2d_of_void *i2d, d2i_of_void *d2i, void *x);\n\n# define ASN1_dup_of(type,i2d,d2i,x) \\\n    ((type*)ASN1_dup(CHECKED_I2D_OF(type, i2d), \\\n                     CHECKED_D2I_OF(type, d2i), \\\n                     CHECKED_PTR_OF(type, x)))\n\n# define ASN1_dup_of_const(type,i2d,d2i,x) \\\n    ((type*)ASN1_dup(CHECKED_I2D_OF(const type, i2d), \\\n                     CHECKED_D2I_OF(type, d2i), \\\n                     CHECKED_PTR_OF(const type, x)))\n\nvoid *ASN1_item_dup(const ASN1_ITEM *it, void *x);\n\n/* ASN1 alloc/free macros for when a type is only used internally */\n\n# define M_ASN1_new_of(type) (type *)ASN1_item_new(ASN1_ITEM_rptr(type))\n# define M_ASN1_free_of(x, type) \\\n                ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type))\n\n# ifndef OPENSSL_NO_STDIO\nvoid *ASN1_d2i_fp(void *(*xnew) (void), d2i_of_void *d2i, FILE *in, void **x);\n\n#  define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \\\n    ((type*)ASN1_d2i_fp(CHECKED_NEW_OF(type, xnew), \\\n                        CHECKED_D2I_OF(type, d2i), \\\n                        in, \\\n                        CHECKED_PPTR_OF(type, x)))\n\nvoid *ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x);\nint ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x);\n\n#  define ASN1_i2d_fp_of(type,i2d,out,x) \\\n    (ASN1_i2d_fp(CHECKED_I2D_OF(type, i2d), \\\n                 out, \\\n                 CHECKED_PTR_OF(type, x)))\n\n#  define ASN1_i2d_fp_of_const(type,i2d,out,x) \\\n    (ASN1_i2d_fp(CHECKED_I2D_OF(const type, i2d), \\\n                 out, \\\n                 CHECKED_PTR_OF(const type, x)))\n\nint ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);\nint ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags);\n# endif\n\nint ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in);\n\nvoid *ASN1_d2i_bio(void *(*xnew) (void), d2i_of_void *d2i, BIO *in, void **x);\n\n#  define ASN1_d2i_bio_of(type,xnew,d2i,in,x) \\\n    ((type*)ASN1_d2i_bio( CHECKED_NEW_OF(type, xnew), \\\n                          CHECKED_D2I_OF(type, d2i), \\\n                          in, \\\n                          CHECKED_PPTR_OF(type, x)))\n\nvoid *ASN1_item_d2i_bio(const ASN1_ITEM *it, BIO *in, void *x);\nint ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x);\n\n#  define ASN1_i2d_bio_of(type,i2d,out,x) \\\n    (ASN1_i2d_bio(CHECKED_I2D_OF(type, i2d), \\\n                  out, \\\n                  CHECKED_PTR_OF(type, x)))\n\n#  define ASN1_i2d_bio_of_const(type,i2d,out,x) \\\n    (ASN1_i2d_bio(CHECKED_I2D_OF(const type, i2d), \\\n                  out, \\\n                  CHECKED_PTR_OF(const type, x)))\n\nint ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x);\nint ASN1_UTCTIME_print(BIO *fp, const ASN1_UTCTIME *a);\nint ASN1_GENERALIZEDTIME_print(BIO *fp, const ASN1_GENERALIZEDTIME *a);\nint ASN1_TIME_print(BIO *fp, const ASN1_TIME *a);\nint ASN1_STRING_print(BIO *bp, const ASN1_STRING *v);\nint ASN1_STRING_print_ex(BIO *out, const ASN1_STRING *str, unsigned long flags);\nint ASN1_buf_print(BIO *bp, const unsigned char *buf, size_t buflen, int off);\nint ASN1_bn_print(BIO *bp, const char *number, const BIGNUM *num,\n                  unsigned char *buf, int off);\nint ASN1_parse(BIO *bp, const unsigned char *pp, long len, int indent);\nint ASN1_parse_dump(BIO *bp, const unsigned char *pp, long len, int indent,\n                    int dump);\nconst char *ASN1_tag2str(int tag);\n\n/* Used to load and write Netscape format cert */\n\nint ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s);\n\nint ASN1_TYPE_set_octetstring(ASN1_TYPE *a, unsigned char *data, int len);\nint ASN1_TYPE_get_octetstring(const ASN1_TYPE *a, unsigned char *data, int max_len);\nint ASN1_TYPE_set_int_octetstring(ASN1_TYPE *a, long num,\n                                  unsigned char *data, int len);\nint ASN1_TYPE_get_int_octetstring(const ASN1_TYPE *a, long *num,\n                                  unsigned char *data, int max_len);\n\nvoid *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);\n\nASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it,\n                            ASN1_OCTET_STRING **oct);\n\nvoid ASN1_STRING_set_default_mask(unsigned long mask);\nint ASN1_STRING_set_default_mask_asc(const char *p);\nunsigned long ASN1_STRING_get_default_mask(void);\nint ASN1_mbstring_copy(ASN1_STRING **out, const unsigned char *in, int len,\n                       int inform, unsigned long mask);\nint ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,\n                        int inform, unsigned long mask,\n                        long minsize, long maxsize);\n\nASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out,\n                                    const unsigned char *in, int inlen,\n                                    int inform, int nid);\nASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid);\nint ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long);\nvoid ASN1_STRING_TABLE_cleanup(void);\n\n/* ASN1 template functions */\n\n/* Old API compatible functions */\nASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);\nvoid ASN1_item_free(ASN1_VALUE *val, const ASN1_ITEM *it);\nASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in,\n                          long len, const ASN1_ITEM *it);\nint ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it);\nint ASN1_item_ndef_i2d(ASN1_VALUE *val, unsigned char **out,\n                       const ASN1_ITEM *it);\n\nvoid ASN1_add_oid_module(void);\nvoid ASN1_add_stable_module(void);\n\nASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);\nASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);\nint ASN1_str2mask(const char *str, unsigned long *pmask);\n\n/* ASN1 Print flags */\n\n/* Indicate missing OPTIONAL fields */\n# define ASN1_PCTX_FLAGS_SHOW_ABSENT             0x001\n/* Mark start and end of SEQUENCE */\n# define ASN1_PCTX_FLAGS_SHOW_SEQUENCE           0x002\n/* Mark start and end of SEQUENCE/SET OF */\n# define ASN1_PCTX_FLAGS_SHOW_SSOF               0x004\n/* Show the ASN1 type of primitives */\n# define ASN1_PCTX_FLAGS_SHOW_TYPE               0x008\n/* Don't show ASN1 type of ANY */\n# define ASN1_PCTX_FLAGS_NO_ANY_TYPE             0x010\n/* Don't show ASN1 type of MSTRINGs */\n# define ASN1_PCTX_FLAGS_NO_MSTRING_TYPE         0x020\n/* Don't show field names in SEQUENCE */\n# define ASN1_PCTX_FLAGS_NO_FIELD_NAME           0x040\n/* Show structure names of each SEQUENCE field */\n# define ASN1_PCTX_FLAGS_SHOW_FIELD_STRUCT_NAME  0x080\n/* Don't show structure name even at top level */\n# define ASN1_PCTX_FLAGS_NO_STRUCT_NAME          0x100\n\nint ASN1_item_print(BIO *out, ASN1_VALUE *ifld, int indent,\n                    const ASN1_ITEM *it, const ASN1_PCTX *pctx);\nASN1_PCTX *ASN1_PCTX_new(void);\nvoid ASN1_PCTX_free(ASN1_PCTX *p);\nunsigned long ASN1_PCTX_get_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_nm_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_nm_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_cert_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_cert_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_oid_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_oid_flags(ASN1_PCTX *p, unsigned long flags);\nunsigned long ASN1_PCTX_get_str_flags(const ASN1_PCTX *p);\nvoid ASN1_PCTX_set_str_flags(ASN1_PCTX *p, unsigned long flags);\n\nASN1_SCTX *ASN1_SCTX_new(int (*scan_cb) (ASN1_SCTX *ctx));\nvoid ASN1_SCTX_free(ASN1_SCTX *p);\nconst ASN1_ITEM *ASN1_SCTX_get_item(ASN1_SCTX *p);\nconst ASN1_TEMPLATE *ASN1_SCTX_get_template(ASN1_SCTX *p);\nunsigned long ASN1_SCTX_get_flags(ASN1_SCTX *p);\nvoid ASN1_SCTX_set_app_data(ASN1_SCTX *p, void *data);\nvoid *ASN1_SCTX_get_app_data(ASN1_SCTX *p);\n\nconst BIO_METHOD *BIO_f_asn1(void);\n\nBIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it);\n\nint i2d_ASN1_bio_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,\n                        const ASN1_ITEM *it);\nint PEM_write_bio_ASN1_stream(BIO *out, ASN1_VALUE *val, BIO *in, int flags,\n                              const char *hdr, const ASN1_ITEM *it);\nint SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags,\n                     int ctype_nid, int econt_nid,\n                     STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it);\nASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it);\nint SMIME_crlf_copy(BIO *in, BIO *out, int flags);\nint SMIME_text(BIO *in, BIO *out);\n\nconst ASN1_ITEM *ASN1_ITEM_lookup(const char *name);\nconst ASN1_ITEM *ASN1_ITEM_get(size_t i);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/asn1_mac.h",
    "content": "/*\n * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#error \"This file is obsolete; please update your software.\"\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/asn1err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1ERR_H\n# define HEADER_ASN1ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_ASN1_strings(void);\n\n/*\n * ASN1 function codes.\n */\n# define ASN1_F_A2D_ASN1_OBJECT                           100\n# define ASN1_F_A2I_ASN1_INTEGER                          102\n# define ASN1_F_A2I_ASN1_STRING                           103\n# define ASN1_F_APPEND_EXP                                176\n# define ASN1_F_ASN1_BIO_INIT                             113\n# define ASN1_F_ASN1_BIT_STRING_SET_BIT                   183\n# define ASN1_F_ASN1_CB                                   177\n# define ASN1_F_ASN1_CHECK_TLEN                           104\n# define ASN1_F_ASN1_COLLECT                              106\n# define ASN1_F_ASN1_D2I_EX_PRIMITIVE                     108\n# define ASN1_F_ASN1_D2I_FP                               109\n# define ASN1_F_ASN1_D2I_READ_BIO                         107\n# define ASN1_F_ASN1_DIGEST                               184\n# define ASN1_F_ASN1_DO_ADB                               110\n# define ASN1_F_ASN1_DO_LOCK                              233\n# define ASN1_F_ASN1_DUP                                  111\n# define ASN1_F_ASN1_ENC_SAVE                             115\n# define ASN1_F_ASN1_EX_C2I                               204\n# define ASN1_F_ASN1_FIND_END                             190\n# define ASN1_F_ASN1_GENERALIZEDTIME_ADJ                  216\n# define ASN1_F_ASN1_GENERATE_V3                          178\n# define ASN1_F_ASN1_GET_INT64                            224\n# define ASN1_F_ASN1_GET_OBJECT                           114\n# define ASN1_F_ASN1_GET_UINT64                           225\n# define ASN1_F_ASN1_I2D_BIO                              116\n# define ASN1_F_ASN1_I2D_FP                               117\n# define ASN1_F_ASN1_ITEM_D2I_FP                          206\n# define ASN1_F_ASN1_ITEM_DUP                             191\n# define ASN1_F_ASN1_ITEM_EMBED_D2I                       120\n# define ASN1_F_ASN1_ITEM_EMBED_NEW                       121\n# define ASN1_F_ASN1_ITEM_FLAGS_I2D                       118\n# define ASN1_F_ASN1_ITEM_I2D_BIO                         192\n# define ASN1_F_ASN1_ITEM_I2D_FP                          193\n# define ASN1_F_ASN1_ITEM_PACK                            198\n# define ASN1_F_ASN1_ITEM_SIGN                            195\n# define ASN1_F_ASN1_ITEM_SIGN_CTX                        220\n# define ASN1_F_ASN1_ITEM_UNPACK                          199\n# define ASN1_F_ASN1_ITEM_VERIFY                          197\n# define ASN1_F_ASN1_MBSTRING_NCOPY                       122\n# define ASN1_F_ASN1_OBJECT_NEW                           123\n# define ASN1_F_ASN1_OUTPUT_DATA                          214\n# define ASN1_F_ASN1_PCTX_NEW                             205\n# define ASN1_F_ASN1_PRIMITIVE_NEW                        119\n# define ASN1_F_ASN1_SCTX_NEW                             221\n# define ASN1_F_ASN1_SIGN                                 128\n# define ASN1_F_ASN1_STR2TYPE                             179\n# define ASN1_F_ASN1_STRING_GET_INT64                     227\n# define ASN1_F_ASN1_STRING_GET_UINT64                    230\n# define ASN1_F_ASN1_STRING_SET                           186\n# define ASN1_F_ASN1_STRING_TABLE_ADD                     129\n# define ASN1_F_ASN1_STRING_TO_BN                         228\n# define ASN1_F_ASN1_STRING_TYPE_NEW                      130\n# define ASN1_F_ASN1_TEMPLATE_EX_D2I                      132\n# define ASN1_F_ASN1_TEMPLATE_NEW                         133\n# define ASN1_F_ASN1_TEMPLATE_NOEXP_D2I                   131\n# define ASN1_F_ASN1_TIME_ADJ                             217\n# define ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING             134\n# define ASN1_F_ASN1_TYPE_GET_OCTETSTRING                 135\n# define ASN1_F_ASN1_UTCTIME_ADJ                          218\n# define ASN1_F_ASN1_VERIFY                               137\n# define ASN1_F_B64_READ_ASN1                             209\n# define ASN1_F_B64_WRITE_ASN1                            210\n# define ASN1_F_BIO_NEW_NDEF                              208\n# define ASN1_F_BITSTR_CB                                 180\n# define ASN1_F_BN_TO_ASN1_STRING                         229\n# define ASN1_F_C2I_ASN1_BIT_STRING                       189\n# define ASN1_F_C2I_ASN1_INTEGER                          194\n# define ASN1_F_C2I_ASN1_OBJECT                           196\n# define ASN1_F_C2I_IBUF                                  226\n# define ASN1_F_C2I_UINT64_INT                            101\n# define ASN1_F_COLLECT_DATA                              140\n# define ASN1_F_D2I_ASN1_OBJECT                           147\n# define ASN1_F_D2I_ASN1_UINTEGER                         150\n# define ASN1_F_D2I_AUTOPRIVATEKEY                        207\n# define ASN1_F_D2I_PRIVATEKEY                            154\n# define ASN1_F_D2I_PUBLICKEY                             155\n# define ASN1_F_DO_BUF                                    142\n# define ASN1_F_DO_CREATE                                 124\n# define ASN1_F_DO_DUMP                                   125\n# define ASN1_F_DO_TCREATE                                222\n# define ASN1_F_I2A_ASN1_OBJECT                           126\n# define ASN1_F_I2D_ASN1_BIO_STREAM                       211\n# define ASN1_F_I2D_ASN1_OBJECT                           143\n# define ASN1_F_I2D_DSA_PUBKEY                            161\n# define ASN1_F_I2D_EC_PUBKEY                             181\n# define ASN1_F_I2D_PRIVATEKEY                            163\n# define ASN1_F_I2D_PUBLICKEY                             164\n# define ASN1_F_I2D_RSA_PUBKEY                            165\n# define ASN1_F_LONG_C2I                                  166\n# define ASN1_F_NDEF_PREFIX                               127\n# define ASN1_F_NDEF_SUFFIX                               136\n# define ASN1_F_OID_MODULE_INIT                           174\n# define ASN1_F_PARSE_TAGGING                             182\n# define ASN1_F_PKCS5_PBE2_SET_IV                         167\n# define ASN1_F_PKCS5_PBE2_SET_SCRYPT                     231\n# define ASN1_F_PKCS5_PBE_SET                             202\n# define ASN1_F_PKCS5_PBE_SET0_ALGOR                      215\n# define ASN1_F_PKCS5_PBKDF2_SET                          219\n# define ASN1_F_PKCS5_SCRYPT_SET                          232\n# define ASN1_F_SMIME_READ_ASN1                           212\n# define ASN1_F_SMIME_TEXT                                213\n# define ASN1_F_STABLE_GET                                138\n# define ASN1_F_STBL_MODULE_INIT                          223\n# define ASN1_F_UINT32_C2I                                105\n# define ASN1_F_UINT32_NEW                                139\n# define ASN1_F_UINT64_C2I                                112\n# define ASN1_F_UINT64_NEW                                141\n# define ASN1_F_X509_CRL_ADD0_REVOKED                     169\n# define ASN1_F_X509_INFO_NEW                             170\n# define ASN1_F_X509_NAME_ENCODE                          203\n# define ASN1_F_X509_NAME_EX_D2I                          158\n# define ASN1_F_X509_NAME_EX_NEW                          171\n# define ASN1_F_X509_PKEY_NEW                             173\n\n/*\n * ASN1 reason codes.\n */\n# define ASN1_R_ADDING_OBJECT                             171\n# define ASN1_R_ASN1_PARSE_ERROR                          203\n# define ASN1_R_ASN1_SIG_PARSE_ERROR                      204\n# define ASN1_R_AUX_ERROR                                 100\n# define ASN1_R_BAD_OBJECT_HEADER                         102\n# define ASN1_R_BMPSTRING_IS_WRONG_LENGTH                 214\n# define ASN1_R_BN_LIB                                    105\n# define ASN1_R_BOOLEAN_IS_WRONG_LENGTH                   106\n# define ASN1_R_BUFFER_TOO_SMALL                          107\n# define ASN1_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER           108\n# define ASN1_R_CONTEXT_NOT_INITIALISED                   217\n# define ASN1_R_DATA_IS_WRONG                             109\n# define ASN1_R_DECODE_ERROR                              110\n# define ASN1_R_DEPTH_EXCEEDED                            174\n# define ASN1_R_DIGEST_AND_KEY_TYPE_NOT_SUPPORTED         198\n# define ASN1_R_ENCODE_ERROR                              112\n# define ASN1_R_ERROR_GETTING_TIME                        173\n# define ASN1_R_ERROR_LOADING_SECTION                     172\n# define ASN1_R_ERROR_SETTING_CIPHER_PARAMS               114\n# define ASN1_R_EXPECTING_AN_INTEGER                      115\n# define ASN1_R_EXPECTING_AN_OBJECT                       116\n# define ASN1_R_EXPLICIT_LENGTH_MISMATCH                  119\n# define ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED              120\n# define ASN1_R_FIELD_MISSING                             121\n# define ASN1_R_FIRST_NUM_TOO_LARGE                       122\n# define ASN1_R_HEADER_TOO_LONG                           123\n# define ASN1_R_ILLEGAL_BITSTRING_FORMAT                  175\n# define ASN1_R_ILLEGAL_BOOLEAN                           176\n# define ASN1_R_ILLEGAL_CHARACTERS                        124\n# define ASN1_R_ILLEGAL_FORMAT                            177\n# define ASN1_R_ILLEGAL_HEX                               178\n# define ASN1_R_ILLEGAL_IMPLICIT_TAG                      179\n# define ASN1_R_ILLEGAL_INTEGER                           180\n# define ASN1_R_ILLEGAL_NEGATIVE_VALUE                    226\n# define ASN1_R_ILLEGAL_NESTED_TAGGING                    181\n# define ASN1_R_ILLEGAL_NULL                              125\n# define ASN1_R_ILLEGAL_NULL_VALUE                        182\n# define ASN1_R_ILLEGAL_OBJECT                            183\n# define ASN1_R_ILLEGAL_OPTIONAL_ANY                      126\n# define ASN1_R_ILLEGAL_OPTIONS_ON_ITEM_TEMPLATE          170\n# define ASN1_R_ILLEGAL_PADDING                           221\n# define ASN1_R_ILLEGAL_TAGGED_ANY                        127\n# define ASN1_R_ILLEGAL_TIME_VALUE                        184\n# define ASN1_R_ILLEGAL_ZERO_CONTENT                      222\n# define ASN1_R_INTEGER_NOT_ASCII_FORMAT                  185\n# define ASN1_R_INTEGER_TOO_LARGE_FOR_LONG                128\n# define ASN1_R_INVALID_BIT_STRING_BITS_LEFT              220\n# define ASN1_R_INVALID_BMPSTRING_LENGTH                  129\n# define ASN1_R_INVALID_DIGIT                             130\n# define ASN1_R_INVALID_MIME_TYPE                         205\n# define ASN1_R_INVALID_MODIFIER                          186\n# define ASN1_R_INVALID_NUMBER                            187\n# define ASN1_R_INVALID_OBJECT_ENCODING                   216\n# define ASN1_R_INVALID_SCRYPT_PARAMETERS                 227\n# define ASN1_R_INVALID_SEPARATOR                         131\n# define ASN1_R_INVALID_STRING_TABLE_VALUE                218\n# define ASN1_R_INVALID_UNIVERSALSTRING_LENGTH            133\n# define ASN1_R_INVALID_UTF8STRING                        134\n# define ASN1_R_INVALID_VALUE                             219\n# define ASN1_R_LIST_ERROR                                188\n# define ASN1_R_MIME_NO_CONTENT_TYPE                      206\n# define ASN1_R_MIME_PARSE_ERROR                          207\n# define ASN1_R_MIME_SIG_PARSE_ERROR                      208\n# define ASN1_R_MISSING_EOC                               137\n# define ASN1_R_MISSING_SECOND_NUMBER                     138\n# define ASN1_R_MISSING_VALUE                             189\n# define ASN1_R_MSTRING_NOT_UNIVERSAL                     139\n# define ASN1_R_MSTRING_WRONG_TAG                         140\n# define ASN1_R_NESTED_ASN1_STRING                        197\n# define ASN1_R_NESTED_TOO_DEEP                           201\n# define ASN1_R_NON_HEX_CHARACTERS                        141\n# define ASN1_R_NOT_ASCII_FORMAT                          190\n# define ASN1_R_NOT_ENOUGH_DATA                           142\n# define ASN1_R_NO_CONTENT_TYPE                           209\n# define ASN1_R_NO_MATCHING_CHOICE_TYPE                   143\n# define ASN1_R_NO_MULTIPART_BODY_FAILURE                 210\n# define ASN1_R_NO_MULTIPART_BOUNDARY                     211\n# define ASN1_R_NO_SIG_CONTENT_TYPE                       212\n# define ASN1_R_NULL_IS_WRONG_LENGTH                      144\n# define ASN1_R_OBJECT_NOT_ASCII_FORMAT                   191\n# define ASN1_R_ODD_NUMBER_OF_CHARS                       145\n# define ASN1_R_SECOND_NUMBER_TOO_LARGE                   147\n# define ASN1_R_SEQUENCE_LENGTH_MISMATCH                  148\n# define ASN1_R_SEQUENCE_NOT_CONSTRUCTED                  149\n# define ASN1_R_SEQUENCE_OR_SET_NEEDS_CONFIG              192\n# define ASN1_R_SHORT_LINE                                150\n# define ASN1_R_SIG_INVALID_MIME_TYPE                     213\n# define ASN1_R_STREAMING_NOT_SUPPORTED                   202\n# define ASN1_R_STRING_TOO_LONG                           151\n# define ASN1_R_STRING_TOO_SHORT                          152\n# define ASN1_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 154\n# define ASN1_R_TIME_NOT_ASCII_FORMAT                     193\n# define ASN1_R_TOO_LARGE                                 223\n# define ASN1_R_TOO_LONG                                  155\n# define ASN1_R_TOO_SMALL                                 224\n# define ASN1_R_TYPE_NOT_CONSTRUCTED                      156\n# define ASN1_R_TYPE_NOT_PRIMITIVE                        195\n# define ASN1_R_UNEXPECTED_EOC                            159\n# define ASN1_R_UNIVERSALSTRING_IS_WRONG_LENGTH           215\n# define ASN1_R_UNKNOWN_FORMAT                            160\n# define ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM          161\n# define ASN1_R_UNKNOWN_OBJECT_TYPE                       162\n# define ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE                   163\n# define ASN1_R_UNKNOWN_SIGNATURE_ALGORITHM               199\n# define ASN1_R_UNKNOWN_TAG                               194\n# define ASN1_R_UNSUPPORTED_ANY_DEFINED_BY_TYPE           164\n# define ASN1_R_UNSUPPORTED_CIPHER                        228\n# define ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE               167\n# define ASN1_R_UNSUPPORTED_TYPE                          196\n# define ASN1_R_WRONG_INTEGER_TYPE                        225\n# define ASN1_R_WRONG_PUBLIC_KEY_TYPE                     200\n# define ASN1_R_WRONG_TAG                                 168\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/asn1t.h",
    "content": "/*\n * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASN1T_H\n# define HEADER_ASN1T_H\n\n# include <stddef.h>\n# include <openssl/e_os2.h>\n# include <openssl/asn1.h>\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\n/* ASN1 template defines, structures and functions */\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */\n#  define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)(iptr))\n\n/* Macros for start and end of ASN1_ITEM definition */\n\n#  define ASN1_ITEM_start(itname) \\\n        const ASN1_ITEM itname##_it = {\n\n#  define static_ASN1_ITEM_start(itname) \\\n        static const ASN1_ITEM itname##_it = {\n\n#  define ASN1_ITEM_end(itname)                 \\\n                };\n\n# else\n\n/* Macro to obtain ASN1_ADB pointer from a type (only used internally) */\n#  define ASN1_ADB_ptr(iptr) ((const ASN1_ADB *)((iptr)()))\n\n/* Macros for start and end of ASN1_ITEM definition */\n\n#  define ASN1_ITEM_start(itname) \\\n        const ASN1_ITEM * itname##_it(void) \\\n        { \\\n                static const ASN1_ITEM local_it = {\n\n#  define static_ASN1_ITEM_start(itname) \\\n        static ASN1_ITEM_start(itname)\n\n#  define ASN1_ITEM_end(itname) \\\n                }; \\\n        return &local_it; \\\n        }\n\n# endif\n\n/* Macros to aid ASN1 template writing */\n\n# define ASN1_ITEM_TEMPLATE(tname) \\\n        static const ASN1_TEMPLATE tname##_item_tt\n\n# define ASN1_ITEM_TEMPLATE_END(tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_PRIMITIVE,\\\n                -1,\\\n                &tname##_item_tt,\\\n                0,\\\n                NULL,\\\n                0,\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_ITEM_TEMPLATE_END(tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_PRIMITIVE,\\\n                -1,\\\n                &tname##_item_tt,\\\n                0,\\\n                NULL,\\\n                0,\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n/* This is a ASN1 type which just embeds a template */\n\n/*-\n * This pair helps declare a SEQUENCE. We can do:\n *\n *      ASN1_SEQUENCE(stname) = {\n *              ... SEQUENCE components ...\n *      } ASN1_SEQUENCE_END(stname)\n *\n *      This will produce an ASN1_ITEM called stname_it\n *      for a structure called stname.\n *\n *      If you want the same structure but a different\n *      name then use:\n *\n *      ASN1_SEQUENCE(itname) = {\n *              ... SEQUENCE components ...\n *      } ASN1_SEQUENCE_END_name(stname, itname)\n *\n *      This will create an item called itname_it using\n *      a structure called stname.\n */\n\n# define ASN1_SEQUENCE(tname) \\\n        static const ASN1_TEMPLATE tname##_seq_tt[]\n\n# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)\n\n# define static_ASN1_SEQUENCE_END(stname) static_ASN1_SEQUENCE_END_name(stname, stname)\n\n# define ASN1_SEQUENCE_END_name(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n# define static_ASN1_SEQUENCE_END_name(stname, tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_NDEF_SEQUENCE(tname) \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_NDEF_SEQUENCE_cb(tname, cb) \\\n        ASN1_SEQUENCE_cb(tname, cb)\n\n# define ASN1_SEQUENCE_cb(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_BROKEN_SEQUENCE(tname) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_BROKEN, 0, 0, 0, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_SEQUENCE_ref(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_REFCOUNT, offsetof(tname, references), offsetof(tname, lock), cb, 0}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_SEQUENCE_enc(tname, enc, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, ASN1_AFLG_ENCODING, 0, 0, cb, offsetof(tname, enc)}; \\\n        ASN1_SEQUENCE(tname)\n\n# define ASN1_NDEF_SEQUENCE_END(tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(tname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_NDEF_SEQUENCE_END(tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(tname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_BROKEN_SEQUENCE_END(stname) ASN1_SEQUENCE_END_ref(stname, stname)\n# define static_ASN1_BROKEN_SEQUENCE_END(stname) \\\n        static_ASN1_SEQUENCE_END_ref(stname, stname)\n\n# define ASN1_SEQUENCE_END_enc(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)\n\n# define ASN1_SEQUENCE_END_cb(stname, tname) ASN1_SEQUENCE_END_ref(stname, tname)\n# define static_ASN1_SEQUENCE_END_cb(stname, tname) static_ASN1_SEQUENCE_END_ref(stname, tname)\n\n# define ASN1_SEQUENCE_END_ref(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #tname \\\n        ASN1_ITEM_end(tname)\n# define static_ASN1_SEQUENCE_END_ref(stname, tname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_NDEF_SEQUENCE_END_cb(stname, tname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_NDEF_SEQUENCE,\\\n                V_ASN1_SEQUENCE,\\\n                tname##_seq_tt,\\\n                sizeof(tname##_seq_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n/*-\n * This pair helps declare a CHOICE type. We can do:\n *\n *      ASN1_CHOICE(chname) = {\n *              ... CHOICE options ...\n *      ASN1_CHOICE_END(chname)\n *\n *      This will produce an ASN1_ITEM called chname_it\n *      for a structure called chname. The structure\n *      definition must look like this:\n *      typedef struct {\n *              int type;\n *              union {\n *                      ASN1_SOMETHING *opt1;\n *                      ASN1_SOMEOTHER *opt2;\n *              } value;\n *      } chname;\n *\n *      the name of the selector must be 'type'.\n *      to use an alternative selector name use the\n *      ASN1_CHOICE_END_selector() version.\n */\n\n# define ASN1_CHOICE(tname) \\\n        static const ASN1_TEMPLATE tname##_ch_tt[]\n\n# define ASN1_CHOICE_cb(tname, cb) \\\n        static const ASN1_AUX tname##_aux = {NULL, 0, 0, 0, cb, 0}; \\\n        ASN1_CHOICE(tname)\n\n# define ASN1_CHOICE_END(stname) ASN1_CHOICE_END_name(stname, stname)\n\n# define static_ASN1_CHOICE_END(stname) static_ASN1_CHOICE_END_name(stname, stname)\n\n# define ASN1_CHOICE_END_name(stname, tname) ASN1_CHOICE_END_selector(stname, tname, type)\n\n# define static_ASN1_CHOICE_END_name(stname, tname) static_ASN1_CHOICE_END_selector(stname, tname, type)\n\n# define ASN1_CHOICE_END_selector(stname, tname, selname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define static_ASN1_CHOICE_END_selector(stname, tname, selname) \\\n        ;\\\n        static_ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                NULL,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n# define ASN1_CHOICE_END_cb(stname, tname, selname) \\\n        ;\\\n        ASN1_ITEM_start(tname) \\\n                ASN1_ITYPE_CHOICE,\\\n                offsetof(stname,selname) ,\\\n                tname##_ch_tt,\\\n                sizeof(tname##_ch_tt) / sizeof(ASN1_TEMPLATE),\\\n                &tname##_aux,\\\n                sizeof(stname),\\\n                #stname \\\n        ASN1_ITEM_end(tname)\n\n/* This helps with the template wrapper form of ASN1_ITEM */\n\n# define ASN1_EX_TEMPLATE_TYPE(flags, tag, name, type) { \\\n        (flags), (tag), 0,\\\n        #name, ASN1_ITEM_ref(type) }\n\n/* These help with SEQUENCE or CHOICE components */\n\n/* used to declare other types */\n\n# define ASN1_EX_TYPE(flags, tag, stname, field, type) { \\\n        (flags), (tag), offsetof(stname, field),\\\n        #field, ASN1_ITEM_ref(type) }\n\n/* implicit and explicit helper macros */\n\n# define ASN1_IMP_EX(stname, field, type, tag, ex) \\\n         ASN1_EX_TYPE(ASN1_TFLG_IMPLICIT | (ex), tag, stname, field, type)\n\n# define ASN1_EXP_EX(stname, field, type, tag, ex) \\\n         ASN1_EX_TYPE(ASN1_TFLG_EXPLICIT | (ex), tag, stname, field, type)\n\n/* Any defined by macros: the field used is in the table itself */\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n#  define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }\n#  define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, (const ASN1_ITEM *)&(tblname##_adb) }\n# else\n#  define ASN1_ADB_OBJECT(tblname) { ASN1_TFLG_ADB_OID, -1, 0, #tblname, tblname##_adb }\n#  define ASN1_ADB_INTEGER(tblname) { ASN1_TFLG_ADB_INT, -1, 0, #tblname, tblname##_adb }\n# endif\n/* Plain simple type */\n# define ASN1_SIMPLE(stname, field, type) ASN1_EX_TYPE(0,0, stname, field, type)\n/* Embedded simple type */\n# define ASN1_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_EMBED,0, stname, field, type)\n\n/* OPTIONAL simple type */\n# define ASN1_OPT(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n# define ASN1_OPT_EMBED(stname, field, type) ASN1_EX_TYPE(ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED, 0, stname, field, type)\n\n/* IMPLICIT tagged simple type */\n# define ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0)\n# define ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)\n\n/* IMPLICIT tagged OPTIONAL simple type */\n# define ASN1_IMP_OPT(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)\n# define ASN1_IMP_OPT_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED)\n\n/* Same as above but EXPLICIT */\n\n# define ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0)\n# define ASN1_EXP_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_EMBED)\n# define ASN1_EXP_OPT(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL)\n# define ASN1_EXP_OPT_EMBED(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_EMBED)\n\n/* SEQUENCE OF type */\n# define ASN1_SEQUENCE_OF(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, stname, field, type)\n\n/* OPTIONAL SEQUENCE OF */\n# define ASN1_SEQUENCE_OF_OPT(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n\n/* Same as above but for SET OF */\n\n# define ASN1_SET_OF(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SET_OF, 0, stname, field, type)\n\n# define ASN1_SET_OF_OPT(stname, field, type) \\\n                ASN1_EX_TYPE(ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL, 0, stname, field, type)\n\n/* Finally compound types of SEQUENCE, SET, IMPLICIT, EXPLICIT and OPTIONAL */\n\n# define ASN1_IMP_SET_OF(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)\n\n# define ASN1_EXP_SET_OF(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF)\n\n# define ASN1_IMP_SET_OF_OPT(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_EXP_SET_OF_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SET_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_IMP_SEQUENCE_OF(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)\n\n# define ASN1_IMP_SEQUENCE_OF_OPT(stname, field, type, tag) \\\n                        ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL)\n\n# define ASN1_EXP_SEQUENCE_OF(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF)\n\n# define ASN1_EXP_SEQUENCE_OF_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_SEQUENCE_OF|ASN1_TFLG_OPTIONAL)\n\n/* EXPLICIT using indefinite length constructed form */\n# define ASN1_NDEF_EXP(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_NDEF)\n\n/* EXPLICIT OPTIONAL using indefinite length constructed form */\n# define ASN1_NDEF_EXP_OPT(stname, field, type, tag) \\\n                        ASN1_EXP_EX(stname, field, type, tag, ASN1_TFLG_OPTIONAL|ASN1_TFLG_NDEF)\n\n/* Macros for the ASN1_ADB structure */\n\n# define ASN1_ADB(name) \\\n        static const ASN1_ADB_TABLE name##_adbtbl[]\n\n# ifndef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n#  define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \\\n        ;\\\n        static const ASN1_ADB name##_adb = {\\\n                flags,\\\n                offsetof(name, field),\\\n                adb_cb,\\\n                name##_adbtbl,\\\n                sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\\\n                def,\\\n                none\\\n        }\n\n# else\n\n#  define ASN1_ADB_END(name, flags, field, adb_cb, def, none) \\\n        ;\\\n        static const ASN1_ITEM *name##_adb(void) \\\n        { \\\n        static const ASN1_ADB internal_adb = \\\n                {\\\n                flags,\\\n                offsetof(name, field),\\\n                adb_cb,\\\n                name##_adbtbl,\\\n                sizeof(name##_adbtbl) / sizeof(ASN1_ADB_TABLE),\\\n                def,\\\n                none\\\n                }; \\\n                return (const ASN1_ITEM *) &internal_adb; \\\n        } \\\n        void dummy_function(void)\n\n# endif\n\n# define ADB_ENTRY(val, template) {val, template}\n\n# define ASN1_ADB_TEMPLATE(name) \\\n        static const ASN1_TEMPLATE name##_tt\n\n/*\n * This is the ASN1 template structure that defines a wrapper round the\n * actual type. It determines the actual position of the field in the value\n * structure, various flags such as OPTIONAL and the field name.\n */\n\nstruct ASN1_TEMPLATE_st {\n    unsigned long flags;        /* Various flags */\n    long tag;                   /* tag, not used if no tagging */\n    unsigned long offset;       /* Offset of this field in structure */\n    const char *field_name;     /* Field name */\n    ASN1_ITEM_EXP *item;        /* Relevant ASN1_ITEM or ASN1_ADB */\n};\n\n/* Macro to extract ASN1_ITEM and ASN1_ADB pointer from ASN1_TEMPLATE */\n\n# define ASN1_TEMPLATE_item(t) (t->item_ptr)\n# define ASN1_TEMPLATE_adb(t) (t->item_ptr)\n\ntypedef struct ASN1_ADB_TABLE_st ASN1_ADB_TABLE;\ntypedef struct ASN1_ADB_st ASN1_ADB;\n\nstruct ASN1_ADB_st {\n    unsigned long flags;        /* Various flags */\n    unsigned long offset;       /* Offset of selector field */\n    int (*adb_cb)(long *psel);  /* Application callback */\n    const ASN1_ADB_TABLE *tbl;  /* Table of possible types */\n    long tblcount;              /* Number of entries in tbl */\n    const ASN1_TEMPLATE *default_tt; /* Type to use if no match */\n    const ASN1_TEMPLATE *null_tt; /* Type to use if selector is NULL */\n};\n\nstruct ASN1_ADB_TABLE_st {\n    long value;                 /* NID for an object or value for an int */\n    const ASN1_TEMPLATE tt;     /* item for this value */\n};\n\n/* template flags */\n\n/* Field is optional */\n# define ASN1_TFLG_OPTIONAL      (0x1)\n\n/* Field is a SET OF */\n# define ASN1_TFLG_SET_OF        (0x1 << 1)\n\n/* Field is a SEQUENCE OF */\n# define ASN1_TFLG_SEQUENCE_OF   (0x2 << 1)\n\n/*\n * Special case: this refers to a SET OF that will be sorted into DER order\n * when encoded *and* the corresponding STACK will be modified to match the\n * new order.\n */\n# define ASN1_TFLG_SET_ORDER     (0x3 << 1)\n\n/* Mask for SET OF or SEQUENCE OF */\n# define ASN1_TFLG_SK_MASK       (0x3 << 1)\n\n/*\n * These flags mean the tag should be taken from the tag field. If EXPLICIT\n * then the underlying type is used for the inner tag.\n */\n\n/* IMPLICIT tagging */\n# define ASN1_TFLG_IMPTAG        (0x1 << 3)\n\n/* EXPLICIT tagging, inner tag from underlying type */\n# define ASN1_TFLG_EXPTAG        (0x2 << 3)\n\n# define ASN1_TFLG_TAG_MASK      (0x3 << 3)\n\n/* context specific IMPLICIT */\n# define ASN1_TFLG_IMPLICIT      (ASN1_TFLG_IMPTAG|ASN1_TFLG_CONTEXT)\n\n/* context specific EXPLICIT */\n# define ASN1_TFLG_EXPLICIT      (ASN1_TFLG_EXPTAG|ASN1_TFLG_CONTEXT)\n\n/*\n * If tagging is in force these determine the type of tag to use. Otherwise\n * the tag is determined by the underlying type. These values reflect the\n * actual octet format.\n */\n\n/* Universal tag */\n# define ASN1_TFLG_UNIVERSAL     (0x0<<6)\n/* Application tag */\n# define ASN1_TFLG_APPLICATION   (0x1<<6)\n/* Context specific tag */\n# define ASN1_TFLG_CONTEXT       (0x2<<6)\n/* Private tag */\n# define ASN1_TFLG_PRIVATE       (0x3<<6)\n\n# define ASN1_TFLG_TAG_CLASS     (0x3<<6)\n\n/*\n * These are for ANY DEFINED BY type. In this case the 'item' field points to\n * an ASN1_ADB structure which contains a table of values to decode the\n * relevant type\n */\n\n# define ASN1_TFLG_ADB_MASK      (0x3<<8)\n\n# define ASN1_TFLG_ADB_OID       (0x1<<8)\n\n# define ASN1_TFLG_ADB_INT       (0x1<<9)\n\n/*\n * This flag when present in a SEQUENCE OF, SET OF or EXPLICIT causes\n * indefinite length constructed encoding to be used if required.\n */\n\n# define ASN1_TFLG_NDEF          (0x1<<11)\n\n/* Field is embedded and not a pointer */\n# define ASN1_TFLG_EMBED         (0x1 << 12)\n\n/* This is the actual ASN1 item itself */\n\nstruct ASN1_ITEM_st {\n    char itype;                 /* The item type, primitive, SEQUENCE, CHOICE\n                                 * or extern */\n    long utype;                 /* underlying type */\n    const ASN1_TEMPLATE *templates; /* If SEQUENCE or CHOICE this contains\n                                     * the contents */\n    long tcount;                /* Number of templates if SEQUENCE or CHOICE */\n    const void *funcs;          /* functions that handle this type */\n    long size;                  /* Structure size (usually) */\n    const char *sname;          /* Structure name */\n};\n\n/*-\n * These are values for the itype field and\n * determine how the type is interpreted.\n *\n * For PRIMITIVE types the underlying type\n * determines the behaviour if items is NULL.\n *\n * Otherwise templates must contain a single\n * template and the type is treated in the\n * same way as the type specified in the template.\n *\n * For SEQUENCE types the templates field points\n * to the members, the size field is the\n * structure size.\n *\n * For CHOICE types the templates field points\n * to each possible member (typically a union)\n * and the 'size' field is the offset of the\n * selector.\n *\n * The 'funcs' field is used for application\n * specific functions.\n *\n * The EXTERN type uses a new style d2i/i2d.\n * The new style should be used where possible\n * because it avoids things like the d2i IMPLICIT\n * hack.\n *\n * MSTRING is a multiple string type, it is used\n * for a CHOICE of character strings where the\n * actual strings all occupy an ASN1_STRING\n * structure. In this case the 'utype' field\n * has a special meaning, it is used as a mask\n * of acceptable types using the B_ASN1 constants.\n *\n * NDEF_SEQUENCE is the same as SEQUENCE except\n * that it will use indefinite length constructed\n * encoding if requested.\n *\n */\n\n# define ASN1_ITYPE_PRIMITIVE            0x0\n\n# define ASN1_ITYPE_SEQUENCE             0x1\n\n# define ASN1_ITYPE_CHOICE               0x2\n\n# define ASN1_ITYPE_EXTERN               0x4\n\n# define ASN1_ITYPE_MSTRING              0x5\n\n# define ASN1_ITYPE_NDEF_SEQUENCE        0x6\n\n/*\n * Cache for ASN1 tag and length, so we don't keep re-reading it for things\n * like CHOICE\n */\n\nstruct ASN1_TLC_st {\n    char valid;                 /* Values below are valid */\n    int ret;                    /* return value */\n    long plen;                  /* length */\n    int ptag;                   /* class value */\n    int pclass;                 /* class value */\n    int hdrlen;                 /* header length */\n};\n\n/* Typedefs for ASN1 function pointers */\ntypedef int ASN1_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,\n                        const ASN1_ITEM *it, int tag, int aclass, char opt,\n                        ASN1_TLC *ctx);\n\ntypedef int ASN1_ex_i2d(ASN1_VALUE **pval, unsigned char **out,\n                        const ASN1_ITEM *it, int tag, int aclass);\ntypedef int ASN1_ex_new_func(ASN1_VALUE **pval, const ASN1_ITEM *it);\ntypedef void ASN1_ex_free_func(ASN1_VALUE **pval, const ASN1_ITEM *it);\n\ntypedef int ASN1_ex_print_func(BIO *out, ASN1_VALUE **pval,\n                               int indent, const char *fname,\n                               const ASN1_PCTX *pctx);\n\ntypedef int ASN1_primitive_i2c(ASN1_VALUE **pval, unsigned char *cont,\n                               int *putype, const ASN1_ITEM *it);\ntypedef int ASN1_primitive_c2i(ASN1_VALUE **pval, const unsigned char *cont,\n                               int len, int utype, char *free_cont,\n                               const ASN1_ITEM *it);\ntypedef int ASN1_primitive_print(BIO *out, ASN1_VALUE **pval,\n                                 const ASN1_ITEM *it, int indent,\n                                 const ASN1_PCTX *pctx);\n\ntypedef struct ASN1_EXTERN_FUNCS_st {\n    void *app_data;\n    ASN1_ex_new_func *asn1_ex_new;\n    ASN1_ex_free_func *asn1_ex_free;\n    ASN1_ex_free_func *asn1_ex_clear;\n    ASN1_ex_d2i *asn1_ex_d2i;\n    ASN1_ex_i2d *asn1_ex_i2d;\n    ASN1_ex_print_func *asn1_ex_print;\n} ASN1_EXTERN_FUNCS;\n\ntypedef struct ASN1_PRIMITIVE_FUNCS_st {\n    void *app_data;\n    unsigned long flags;\n    ASN1_ex_new_func *prim_new;\n    ASN1_ex_free_func *prim_free;\n    ASN1_ex_free_func *prim_clear;\n    ASN1_primitive_c2i *prim_c2i;\n    ASN1_primitive_i2c *prim_i2c;\n    ASN1_primitive_print *prim_print;\n} ASN1_PRIMITIVE_FUNCS;\n\n/*\n * This is the ASN1_AUX structure: it handles various miscellaneous\n * requirements. For example the use of reference counts and an informational\n * callback. The \"informational callback\" is called at various points during\n * the ASN1 encoding and decoding. It can be used to provide minor\n * customisation of the structures used. This is most useful where the\n * supplied routines *almost* do the right thing but need some extra help at\n * a few points. If the callback returns zero then it is assumed a fatal\n * error has occurred and the main operation should be abandoned. If major\n * changes in the default behaviour are required then an external type is\n * more appropriate.\n */\n\ntypedef int ASN1_aux_cb(int operation, ASN1_VALUE **in, const ASN1_ITEM *it,\n                        void *exarg);\n\ntypedef struct ASN1_AUX_st {\n    void *app_data;\n    int flags;\n    int ref_offset;             /* Offset of reference value */\n    int ref_lock;               /* Lock type to use */\n    ASN1_aux_cb *asn1_cb;\n    int enc_offset;             /* Offset of ASN1_ENCODING structure */\n} ASN1_AUX;\n\n/* For print related callbacks exarg points to this structure */\ntypedef struct ASN1_PRINT_ARG_st {\n    BIO *out;\n    int indent;\n    const ASN1_PCTX *pctx;\n} ASN1_PRINT_ARG;\n\n/* For streaming related callbacks exarg points to this structure */\ntypedef struct ASN1_STREAM_ARG_st {\n    /* BIO to stream through */\n    BIO *out;\n    /* BIO with filters appended */\n    BIO *ndef_bio;\n    /* Streaming I/O boundary */\n    unsigned char **boundary;\n} ASN1_STREAM_ARG;\n\n/* Flags in ASN1_AUX */\n\n/* Use a reference count */\n# define ASN1_AFLG_REFCOUNT      1\n/* Save the encoding of structure (useful for signatures) */\n# define ASN1_AFLG_ENCODING      2\n/* The Sequence length is invalid */\n# define ASN1_AFLG_BROKEN        4\n\n/* operation values for asn1_cb */\n\n# define ASN1_OP_NEW_PRE         0\n# define ASN1_OP_NEW_POST        1\n# define ASN1_OP_FREE_PRE        2\n# define ASN1_OP_FREE_POST       3\n# define ASN1_OP_D2I_PRE         4\n# define ASN1_OP_D2I_POST        5\n# define ASN1_OP_I2D_PRE         6\n# define ASN1_OP_I2D_POST        7\n# define ASN1_OP_PRINT_PRE       8\n# define ASN1_OP_PRINT_POST      9\n# define ASN1_OP_STREAM_PRE      10\n# define ASN1_OP_STREAM_POST     11\n# define ASN1_OP_DETACHED_PRE    12\n# define ASN1_OP_DETACHED_POST   13\n\n/* Macro to implement a primitive type */\n# define IMPLEMENT_ASN1_TYPE(stname) IMPLEMENT_ASN1_TYPE_ex(stname, stname, 0)\n# define IMPLEMENT_ASN1_TYPE_ex(itname, vname, ex) \\\n                                ASN1_ITEM_start(itname) \\\n                                        ASN1_ITYPE_PRIMITIVE, V_##vname, NULL, 0, NULL, ex, #itname \\\n                                ASN1_ITEM_end(itname)\n\n/* Macro to implement a multi string type */\n# define IMPLEMENT_ASN1_MSTRING(itname, mask) \\\n                                ASN1_ITEM_start(itname) \\\n                                        ASN1_ITYPE_MSTRING, mask, NULL, 0, NULL, sizeof(ASN1_STRING), #itname \\\n                                ASN1_ITEM_end(itname)\n\n# define IMPLEMENT_EXTERN_ASN1(sname, tag, fptrs) \\\n        ASN1_ITEM_start(sname) \\\n                ASN1_ITYPE_EXTERN, \\\n                tag, \\\n                NULL, \\\n                0, \\\n                &fptrs, \\\n                0, \\\n                #sname \\\n        ASN1_ITEM_end(sname)\n\n/* Macro to implement standard functions in terms of ASN1_ITEM structures */\n\n# define IMPLEMENT_ASN1_FUNCTIONS(stname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_name(stname, itname) IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, itname)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_ENCODE_name(stname, itname) \\\n                        IMPLEMENT_ASN1_FUNCTIONS_ENCODE_fname(stname, itname, itname)\n\n# define IMPLEMENT_STATIC_ASN1_ALLOC_FUNCTIONS(stname) \\\n                IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(static, stname, stname, stname)\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS(stname) \\\n                IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_pfname(pre, stname, itname, fname) \\\n        pre stname *fname##_new(void) \\\n        { \\\n                return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \\\n        } \\\n        pre void fname##_free(stname *a) \\\n        { \\\n                ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \\\n        }\n\n# define IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname) \\\n        stname *fname##_new(void) \\\n        { \\\n                return (stname *)ASN1_item_new(ASN1_ITEM_rptr(itname)); \\\n        } \\\n        void fname##_free(stname *a) \\\n        { \\\n                ASN1_item_free((ASN1_VALUE *)a, ASN1_ITEM_rptr(itname)); \\\n        }\n\n# define IMPLEMENT_ASN1_FUNCTIONS_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)\n\n# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_fname(stname, itname, fname) \\\n        stname *d2i_##fname(stname **a, const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\\\n        } \\\n        int i2d_##fname(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\\\n        }\n\n# define IMPLEMENT_ASN1_NDEF_FUNCTION(stname) \\\n        int i2d_##stname##_NDEF(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_ndef_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(stname));\\\n        }\n\n# define IMPLEMENT_STATIC_ASN1_ENCODE_FUNCTIONS(stname) \\\n        static stname *d2i_##stname(stname **a, \\\n                                   const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, \\\n                                               ASN1_ITEM_rptr(stname)); \\\n        } \\\n        static int i2d_##stname(stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, \\\n                                     ASN1_ITEM_rptr(stname)); \\\n        }\n\n/*\n * This includes evil casts to remove const: they will go away when full ASN1\n * constification is done.\n */\n# define IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \\\n        stname *d2i_##fname(stname **a, const unsigned char **in, long len) \\\n        { \\\n                return (stname *)ASN1_item_d2i((ASN1_VALUE **)a, in, len, ASN1_ITEM_rptr(itname));\\\n        } \\\n        int i2d_##fname(const stname *a, unsigned char **out) \\\n        { \\\n                return ASN1_item_i2d((ASN1_VALUE *)a, out, ASN1_ITEM_rptr(itname));\\\n        }\n\n# define IMPLEMENT_ASN1_DUP_FUNCTION(stname) \\\n        stname * stname##_dup(stname *x) \\\n        { \\\n        return ASN1_item_dup(ASN1_ITEM_rptr(stname), x); \\\n        }\n\n# define IMPLEMENT_ASN1_PRINT_FUNCTION(stname) \\\n        IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, stname, stname)\n\n# define IMPLEMENT_ASN1_PRINT_FUNCTION_fname(stname, itname, fname) \\\n        int fname##_print_ctx(BIO *out, stname *x, int indent, \\\n                                                const ASN1_PCTX *pctx) \\\n        { \\\n                return ASN1_item_print(out, (ASN1_VALUE *)x, indent, \\\n                        ASN1_ITEM_rptr(itname), pctx); \\\n        }\n\n# define IMPLEMENT_ASN1_FUNCTIONS_const(name) \\\n                IMPLEMENT_ASN1_FUNCTIONS_const_fname(name, name, name)\n\n# define IMPLEMENT_ASN1_FUNCTIONS_const_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ENCODE_FUNCTIONS_const_fname(stname, itname, fname) \\\n        IMPLEMENT_ASN1_ALLOC_FUNCTIONS_fname(stname, itname, fname)\n\n/* external definitions for primitive types */\n\nDECLARE_ASN1_ITEM(ASN1_BOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_TBOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_FBOOLEAN)\nDECLARE_ASN1_ITEM(ASN1_SEQUENCE)\nDECLARE_ASN1_ITEM(CBIGNUM)\nDECLARE_ASN1_ITEM(BIGNUM)\nDECLARE_ASN1_ITEM(INT32)\nDECLARE_ASN1_ITEM(ZINT32)\nDECLARE_ASN1_ITEM(UINT32)\nDECLARE_ASN1_ITEM(ZUINT32)\nDECLARE_ASN1_ITEM(INT64)\nDECLARE_ASN1_ITEM(ZINT64)\nDECLARE_ASN1_ITEM(UINT64)\nDECLARE_ASN1_ITEM(ZUINT64)\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n/*\n * LONG and ZLONG are strongly discouraged for use as stored data, as the\n * underlying C type (long) differs in size depending on the architecture.\n * They are designed with 32-bit longs in mind.\n */\nDECLARE_ASN1_ITEM(LONG)\nDECLARE_ASN1_ITEM(ZLONG)\n# endif\n\nDEFINE_STACK_OF(ASN1_VALUE)\n\n/* Functions used internally by the ASN1 code */\n\nint ASN1_item_ex_new(ASN1_VALUE **pval, const ASN1_ITEM *it);\nvoid ASN1_item_ex_free(ASN1_VALUE **pval, const ASN1_ITEM *it);\n\nint ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len,\n                     const ASN1_ITEM *it, int tag, int aclass, char opt,\n                     ASN1_TLC *ctx);\n\nint ASN1_item_ex_i2d(ASN1_VALUE **pval, unsigned char **out,\n                     const ASN1_ITEM *it, int tag, int aclass);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/async.h",
    "content": "/*\n * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <stdlib.h>\n\n#ifndef HEADER_ASYNC_H\n# define HEADER_ASYNC_H\n\n#if defined(_WIN32)\n# if defined(BASETYPES) || defined(_WINDEF_H)\n/* application has to include <windows.h> to use this */\n#define OSSL_ASYNC_FD       HANDLE\n#define OSSL_BAD_ASYNC_FD   INVALID_HANDLE_VALUE\n# endif\n#else\n#define OSSL_ASYNC_FD       int\n#define OSSL_BAD_ASYNC_FD   -1\n#endif\n# include <openssl/asyncerr.h>\n\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct async_job_st ASYNC_JOB;\ntypedef struct async_wait_ctx_st ASYNC_WAIT_CTX;\n\n#define ASYNC_ERR      0\n#define ASYNC_NO_JOBS  1\n#define ASYNC_PAUSE    2\n#define ASYNC_FINISH   3\n\nint ASYNC_init_thread(size_t max_size, size_t init_size);\nvoid ASYNC_cleanup_thread(void);\n\n#ifdef OSSL_ASYNC_FD\nASYNC_WAIT_CTX *ASYNC_WAIT_CTX_new(void);\nvoid ASYNC_WAIT_CTX_free(ASYNC_WAIT_CTX *ctx);\nint ASYNC_WAIT_CTX_set_wait_fd(ASYNC_WAIT_CTX *ctx, const void *key,\n                               OSSL_ASYNC_FD fd,\n                               void *custom_data,\n                               void (*cleanup)(ASYNC_WAIT_CTX *, const void *,\n                                               OSSL_ASYNC_FD, void *));\nint ASYNC_WAIT_CTX_get_fd(ASYNC_WAIT_CTX *ctx, const void *key,\n                        OSSL_ASYNC_FD *fd, void **custom_data);\nint ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,\n                               size_t *numfds);\nint ASYNC_WAIT_CTX_get_changed_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *addfd,\n                                   size_t *numaddfds, OSSL_ASYNC_FD *delfd,\n                                   size_t *numdelfds);\nint ASYNC_WAIT_CTX_clear_fd(ASYNC_WAIT_CTX *ctx, const void *key);\n#endif\n\nint ASYNC_is_capable(void);\n\nint ASYNC_start_job(ASYNC_JOB **job, ASYNC_WAIT_CTX *ctx, int *ret,\n                    int (*func)(void *), void *args, size_t size);\nint ASYNC_pause_job(void);\n\nASYNC_JOB *ASYNC_get_current_job(void);\nASYNC_WAIT_CTX *ASYNC_get_wait_ctx(ASYNC_JOB *job);\nvoid ASYNC_block_pause(void);\nvoid ASYNC_unblock_pause(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/asyncerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ASYNCERR_H\n# define HEADER_ASYNCERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_ASYNC_strings(void);\n\n/*\n * ASYNC function codes.\n */\n# define ASYNC_F_ASYNC_CTX_NEW                            100\n# define ASYNC_F_ASYNC_INIT_THREAD                        101\n# define ASYNC_F_ASYNC_JOB_NEW                            102\n# define ASYNC_F_ASYNC_PAUSE_JOB                          103\n# define ASYNC_F_ASYNC_START_FUNC                         104\n# define ASYNC_F_ASYNC_START_JOB                          105\n# define ASYNC_F_ASYNC_WAIT_CTX_SET_WAIT_FD               106\n\n/*\n * ASYNC reason codes.\n */\n# define ASYNC_R_FAILED_TO_SET_POOL                       101\n# define ASYNC_R_FAILED_TO_SWAP_CONTEXT                   102\n# define ASYNC_R_INIT_FAILED                              105\n# define ASYNC_R_INVALID_POOL_SIZE                        103\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/bio.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BIO_H\n# define HEADER_BIO_H\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n# include <stdarg.h>\n\n# include <openssl/crypto.h>\n# include <openssl/bioerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* There are the classes of BIOs */\n# define BIO_TYPE_DESCRIPTOR     0x0100 /* socket, fd, connect or accept */\n# define BIO_TYPE_FILTER         0x0200\n# define BIO_TYPE_SOURCE_SINK    0x0400\n\n/* These are the 'types' of BIOs */\n# define BIO_TYPE_NONE             0\n# define BIO_TYPE_MEM            ( 1|BIO_TYPE_SOURCE_SINK)\n# define BIO_TYPE_FILE           ( 2|BIO_TYPE_SOURCE_SINK)\n\n# define BIO_TYPE_FD             ( 4|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_SOCKET         ( 5|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_NULL           ( 6|BIO_TYPE_SOURCE_SINK)\n# define BIO_TYPE_SSL            ( 7|BIO_TYPE_FILTER)\n# define BIO_TYPE_MD             ( 8|BIO_TYPE_FILTER)\n# define BIO_TYPE_BUFFER         ( 9|BIO_TYPE_FILTER)\n# define BIO_TYPE_CIPHER         (10|BIO_TYPE_FILTER)\n# define BIO_TYPE_BASE64         (11|BIO_TYPE_FILTER)\n# define BIO_TYPE_CONNECT        (12|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_ACCEPT         (13|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n\n# define BIO_TYPE_NBIO_TEST      (16|BIO_TYPE_FILTER)/* server proxy BIO */\n# define BIO_TYPE_NULL_FILTER    (17|BIO_TYPE_FILTER)\n# define BIO_TYPE_BIO            (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */\n# define BIO_TYPE_LINEBUFFER     (20|BIO_TYPE_FILTER)\n# define BIO_TYPE_DGRAM          (21|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# define BIO_TYPE_ASN1           (22|BIO_TYPE_FILTER)\n# define BIO_TYPE_COMP           (23|BIO_TYPE_FILTER)\n# ifndef OPENSSL_NO_SCTP\n#  define BIO_TYPE_DGRAM_SCTP    (24|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)\n# endif\n\n#define BIO_TYPE_START           128\n\n/*\n * BIO_FILENAME_READ|BIO_CLOSE to open or close on free.\n * BIO_set_fp(in,stdin,BIO_NOCLOSE);\n */\n# define BIO_NOCLOSE             0x00\n# define BIO_CLOSE               0x01\n\n/*\n * These are used in the following macros and are passed to BIO_ctrl()\n */\n# define BIO_CTRL_RESET          1/* opt - rewind/zero etc */\n# define BIO_CTRL_EOF            2/* opt - are we at the eof */\n# define BIO_CTRL_INFO           3/* opt - extra tit-bits */\n# define BIO_CTRL_SET            4/* man - set the 'IO' type */\n# define BIO_CTRL_GET            5/* man - get the 'IO' type */\n# define BIO_CTRL_PUSH           6/* opt - internal, used to signify change */\n# define BIO_CTRL_POP            7/* opt - internal, used to signify change */\n# define BIO_CTRL_GET_CLOSE      8/* man - set the 'close' on free */\n# define BIO_CTRL_SET_CLOSE      9/* man - set the 'close' on free */\n# define BIO_CTRL_PENDING        10/* opt - is their more data buffered */\n# define BIO_CTRL_FLUSH          11/* opt - 'flush' buffered output */\n# define BIO_CTRL_DUP            12/* man - extra stuff for 'duped' BIO */\n# define BIO_CTRL_WPENDING       13/* opt - number of bytes still to write */\n# define BIO_CTRL_SET_CALLBACK   14/* opt - set callback function */\n# define BIO_CTRL_GET_CALLBACK   15/* opt - set callback function */\n\n# define BIO_CTRL_PEEK           29/* BIO_f_buffer special */\n# define BIO_CTRL_SET_FILENAME   30/* BIO_s_file special */\n\n/* dgram BIO stuff */\n# define BIO_CTRL_DGRAM_CONNECT       31/* BIO dgram special */\n# define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected\n                                         * socket to be passed in */\n# define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33/* setsockopt, essentially */\n# define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34/* getsockopt, essentially */\n# define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35/* setsockopt, essentially */\n# define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36/* getsockopt, essentially */\n\n# define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37/* flag whether the last */\n# define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38/* I/O operation tiemd out */\n\n/* #ifdef IP_MTU_DISCOVER */\n# define BIO_CTRL_DGRAM_MTU_DISCOVER       39/* set DF bit on egress packets */\n/* #endif */\n\n# define BIO_CTRL_DGRAM_QUERY_MTU          40/* as kernel for current MTU */\n# define BIO_CTRL_DGRAM_GET_FALLBACK_MTU   47\n# define BIO_CTRL_DGRAM_GET_MTU            41/* get cached value for MTU */\n# define BIO_CTRL_DGRAM_SET_MTU            42/* set cached value for MTU.\n                                              * want to use this if asking\n                                              * the kernel fails */\n\n# define BIO_CTRL_DGRAM_MTU_EXCEEDED       43/* check whether the MTU was\n                                              * exceed in the previous write\n                                              * operation */\n\n# define BIO_CTRL_DGRAM_GET_PEER           46\n# define BIO_CTRL_DGRAM_SET_PEER           44/* Destination for the data */\n\n# define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT   45/* Next DTLS handshake timeout\n                                              * to adjust socket timeouts */\n# define BIO_CTRL_DGRAM_SET_DONT_FRAG      48\n\n# define BIO_CTRL_DGRAM_GET_MTU_OVERHEAD   49\n\n/* Deliberately outside of OPENSSL_NO_SCTP - used in bss_dgram.c */\n#  define BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE    50\n# ifndef OPENSSL_NO_SCTP\n/* SCTP stuff */\n#  define BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY                51\n#  define BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY               52\n#  define BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD               53\n#  define BIO_CTRL_DGRAM_SCTP_GET_SNDINFO         60\n#  define BIO_CTRL_DGRAM_SCTP_SET_SNDINFO         61\n#  define BIO_CTRL_DGRAM_SCTP_GET_RCVINFO         62\n#  define BIO_CTRL_DGRAM_SCTP_SET_RCVINFO         63\n#  define BIO_CTRL_DGRAM_SCTP_GET_PRINFO                  64\n#  define BIO_CTRL_DGRAM_SCTP_SET_PRINFO                  65\n#  define BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN               70\n# endif\n\n# define BIO_CTRL_DGRAM_SET_PEEK_MODE      71\n\n/* modifiers */\n# define BIO_FP_READ             0x02\n# define BIO_FP_WRITE            0x04\n# define BIO_FP_APPEND           0x08\n# define BIO_FP_TEXT             0x10\n\n# define BIO_FLAGS_READ          0x01\n# define BIO_FLAGS_WRITE         0x02\n# define BIO_FLAGS_IO_SPECIAL    0x04\n# define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)\n# define BIO_FLAGS_SHOULD_RETRY  0x08\n# ifndef BIO_FLAGS_UPLINK\n/*\n * \"UPLINK\" flag denotes file descriptors provided by application. It\n * defaults to 0, as most platforms don't require UPLINK interface.\n */\n#  define BIO_FLAGS_UPLINK        0\n# endif\n\n# define BIO_FLAGS_BASE64_NO_NL  0x100\n\n/*\n * This is used with memory BIOs:\n * BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way;\n * BIO_FLAGS_NONCLEAR_RST means we shouldn't clear data on reset.\n */\n# define BIO_FLAGS_MEM_RDONLY    0x200\n# define BIO_FLAGS_NONCLEAR_RST  0x400\n# define BIO_FLAGS_IN_EOF        0x800\n\ntypedef union bio_addr_st BIO_ADDR;\ntypedef struct bio_addrinfo_st BIO_ADDRINFO;\n\nint BIO_get_new_index(void);\nvoid BIO_set_flags(BIO *b, int flags);\nint BIO_test_flags(const BIO *b, int flags);\nvoid BIO_clear_flags(BIO *b, int flags);\n\n# define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))\n# define BIO_set_retry_special(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_set_retry_read(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_set_retry_write(b) \\\n                BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))\n\n/* These are normally used internally in BIOs */\n# define BIO_clear_retry_flags(b) \\\n                BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))\n# define BIO_get_retry_flags(b) \\\n                BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))\n\n/* These should be used by the application to tell why we should retry */\n# define BIO_should_read(a)              BIO_test_flags(a, BIO_FLAGS_READ)\n# define BIO_should_write(a)             BIO_test_flags(a, BIO_FLAGS_WRITE)\n# define BIO_should_io_special(a)        BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)\n# define BIO_retry_type(a)               BIO_test_flags(a, BIO_FLAGS_RWS)\n# define BIO_should_retry(a)             BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)\n\n/*\n * The next three are used in conjunction with the BIO_should_io_special()\n * condition.  After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int\n * *reason); will walk the BIO stack and return the 'reason' for the special\n * and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return\n * the code.\n */\n/*\n * Returned from the SSL bio when the certificate retrieval code had an error\n */\n# define BIO_RR_SSL_X509_LOOKUP          0x01\n/* Returned from the connect BIO when a connect would have blocked */\n# define BIO_RR_CONNECT                  0x02\n/* Returned from the accept BIO when an accept would have blocked */\n# define BIO_RR_ACCEPT                   0x03\n\n/* These are passed by the BIO callback */\n# define BIO_CB_FREE     0x01\n# define BIO_CB_READ     0x02\n# define BIO_CB_WRITE    0x03\n# define BIO_CB_PUTS     0x04\n# define BIO_CB_GETS     0x05\n# define BIO_CB_CTRL     0x06\n\n/*\n * The callback is called before and after the underling operation, The\n * BIO_CB_RETURN flag indicates if it is after the call\n */\n# define BIO_CB_RETURN   0x80\n# define BIO_CB_return(a) ((a)|BIO_CB_RETURN)\n# define BIO_cb_pre(a)   (!((a)&BIO_CB_RETURN))\n# define BIO_cb_post(a)  ((a)&BIO_CB_RETURN)\n\ntypedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,\n                                long argl, long ret);\ntypedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,\n                                   size_t len, int argi,\n                                   long argl, int ret, size_t *processed);\nBIO_callback_fn BIO_get_callback(const BIO *b);\nvoid BIO_set_callback(BIO *b, BIO_callback_fn callback);\n\nBIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);\nvoid BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);\n\nchar *BIO_get_callback_arg(const BIO *b);\nvoid BIO_set_callback_arg(BIO *b, char *arg);\n\ntypedef struct bio_method_st BIO_METHOD;\n\nconst char *BIO_method_name(const BIO *b);\nint BIO_method_type(const BIO *b);\n\ntypedef int BIO_info_cb(BIO *, int, int);\ntypedef BIO_info_cb bio_info_cb;  /* backward compatibility */\n\nDEFINE_STACK_OF(BIO)\n\n/* Prefix and suffix callback in ASN1 BIO */\ntypedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,\n                          void *parg);\n\n# ifndef OPENSSL_NO_SCTP\n/* SCTP parameter structs */\nstruct bio_dgram_sctp_sndinfo {\n    uint16_t snd_sid;\n    uint16_t snd_flags;\n    uint32_t snd_ppid;\n    uint32_t snd_context;\n};\n\nstruct bio_dgram_sctp_rcvinfo {\n    uint16_t rcv_sid;\n    uint16_t rcv_ssn;\n    uint16_t rcv_flags;\n    uint32_t rcv_ppid;\n    uint32_t rcv_tsn;\n    uint32_t rcv_cumtsn;\n    uint32_t rcv_context;\n};\n\nstruct bio_dgram_sctp_prinfo {\n    uint16_t pr_policy;\n    uint32_t pr_value;\n};\n# endif\n\n/*\n * #define BIO_CONN_get_param_hostname BIO_ctrl\n */\n\n# define BIO_C_SET_CONNECT                       100\n# define BIO_C_DO_STATE_MACHINE                  101\n# define BIO_C_SET_NBIO                          102\n/* # define BIO_C_SET_PROXY_PARAM                   103 */\n# define BIO_C_SET_FD                            104\n# define BIO_C_GET_FD                            105\n# define BIO_C_SET_FILE_PTR                      106\n# define BIO_C_GET_FILE_PTR                      107\n# define BIO_C_SET_FILENAME                      108\n# define BIO_C_SET_SSL                           109\n# define BIO_C_GET_SSL                           110\n# define BIO_C_SET_MD                            111\n# define BIO_C_GET_MD                            112\n# define BIO_C_GET_CIPHER_STATUS                 113\n# define BIO_C_SET_BUF_MEM                       114\n# define BIO_C_GET_BUF_MEM_PTR                   115\n# define BIO_C_GET_BUFF_NUM_LINES                116\n# define BIO_C_SET_BUFF_SIZE                     117\n# define BIO_C_SET_ACCEPT                        118\n# define BIO_C_SSL_MODE                          119\n# define BIO_C_GET_MD_CTX                        120\n/* # define BIO_C_GET_PROXY_PARAM                   121 */\n# define BIO_C_SET_BUFF_READ_DATA                122/* data to read first */\n# define BIO_C_GET_CONNECT                       123\n# define BIO_C_GET_ACCEPT                        124\n# define BIO_C_SET_SSL_RENEGOTIATE_BYTES         125\n# define BIO_C_GET_SSL_NUM_RENEGOTIATES          126\n# define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT       127\n# define BIO_C_FILE_SEEK                         128\n# define BIO_C_GET_CIPHER_CTX                    129\n# define BIO_C_SET_BUF_MEM_EOF_RETURN            130/* return end of input\n                                                     * value */\n# define BIO_C_SET_BIND_MODE                     131\n# define BIO_C_GET_BIND_MODE                     132\n# define BIO_C_FILE_TELL                         133\n# define BIO_C_GET_SOCKS                         134\n# define BIO_C_SET_SOCKS                         135\n\n# define BIO_C_SET_WRITE_BUF_SIZE                136/* for BIO_s_bio */\n# define BIO_C_GET_WRITE_BUF_SIZE                137\n# define BIO_C_MAKE_BIO_PAIR                     138\n# define BIO_C_DESTROY_BIO_PAIR                  139\n# define BIO_C_GET_WRITE_GUARANTEE               140\n# define BIO_C_GET_READ_REQUEST                  141\n# define BIO_C_SHUTDOWN_WR                       142\n# define BIO_C_NREAD0                            143\n# define BIO_C_NREAD                             144\n# define BIO_C_NWRITE0                           145\n# define BIO_C_NWRITE                            146\n# define BIO_C_RESET_READ_REQUEST                147\n# define BIO_C_SET_MD_CTX                        148\n\n# define BIO_C_SET_PREFIX                        149\n# define BIO_C_GET_PREFIX                        150\n# define BIO_C_SET_SUFFIX                        151\n# define BIO_C_GET_SUFFIX                        152\n\n# define BIO_C_SET_EX_ARG                        153\n# define BIO_C_GET_EX_ARG                        154\n\n# define BIO_C_SET_CONNECT_MODE                  155\n\n# define BIO_set_app_data(s,arg)         BIO_set_ex_data(s,0,arg)\n# define BIO_get_app_data(s)             BIO_get_ex_data(s,0)\n\n# define BIO_set_nbio(b,n)             BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)\n\n# ifndef OPENSSL_NO_SOCK\n/* IP families we support, for BIO_s_connect() and BIO_s_accept() */\n/* Note: the underlying operating system may not support some of them */\n#  define BIO_FAMILY_IPV4                         4\n#  define BIO_FAMILY_IPV6                         6\n#  define BIO_FAMILY_IPANY                        256\n\n/* BIO_s_connect() */\n#  define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0, \\\n                                                 (char *)(name))\n#  define BIO_set_conn_port(b,port)     BIO_ctrl(b,BIO_C_SET_CONNECT,1, \\\n                                                 (char *)(port))\n#  define BIO_set_conn_address(b,addr)  BIO_ctrl(b,BIO_C_SET_CONNECT,2, \\\n                                                 (char *)(addr))\n#  define BIO_set_conn_ip_family(b,f)   BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)\n#  define BIO_get_conn_hostname(b)      ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))\n#  define BIO_get_conn_port(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))\n#  define BIO_get_conn_address(b)       ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))\n#  define BIO_get_conn_ip_family(b)     BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)\n#  define BIO_set_conn_mode(b,n)        BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)\n\n/* BIO_s_accept() */\n#  define BIO_set_accept_name(b,name)   BIO_ctrl(b,BIO_C_SET_ACCEPT,0, \\\n                                                 (char *)(name))\n#  define BIO_set_accept_port(b,port)   BIO_ctrl(b,BIO_C_SET_ACCEPT,1, \\\n                                                 (char *)(port))\n#  define BIO_get_accept_name(b)        ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))\n#  define BIO_get_accept_port(b)        ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))\n#  define BIO_get_peer_name(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))\n#  define BIO_get_peer_port(b)          ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))\n/* #define BIO_set_nbio(b,n)    BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */\n#  define BIO_set_nbio_accept(b,n)      BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(void *)\"a\":NULL)\n#  define BIO_set_accept_bios(b,bio)    BIO_ctrl(b,BIO_C_SET_ACCEPT,3, \\\n                                                 (char *)(bio))\n#  define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)\n#  define BIO_get_accept_ip_family(b)   BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)\n\n/* Aliases kept for backward compatibility */\n#  define BIO_BIND_NORMAL                 0\n#  define BIO_BIND_REUSEADDR              BIO_SOCK_REUSEADDR\n#  define BIO_BIND_REUSEADDR_IF_UNUSED    BIO_SOCK_REUSEADDR\n#  define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)\n#  define BIO_get_bind_mode(b)    BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)\n\n/* BIO_s_accept() and BIO_s_connect() */\n#  define BIO_do_connect(b)       BIO_do_handshake(b)\n#  define BIO_do_accept(b)        BIO_do_handshake(b)\n# endif /* OPENSSL_NO_SOCK */\n\n# define BIO_do_handshake(b)     BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)\n\n/* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() */\n# define BIO_set_fd(b,fd,c)      BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)\n# define BIO_get_fd(b,c)         BIO_ctrl(b,BIO_C_GET_FD,0,(char *)(c))\n\n/* BIO_s_file() */\n# define BIO_set_fp(b,fp,c)      BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)(fp))\n# define BIO_get_fp(b,fpp)       BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)(fpp))\n\n/* BIO_s_fd() and BIO_s_file() */\n# define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)\n# define BIO_tell(b)     (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)\n\n/*\n * name is cast to lose const, but might be better to route through a\n * function so we can do it safely\n */\n# ifdef CONST_STRICT\n/*\n * If you are wondering why this isn't defined, its because CONST_STRICT is\n * purely a compile-time kludge to allow const to be checked.\n */\nint BIO_read_filename(BIO *b, const char *name);\n# else\n#  define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_READ,(char *)(name))\n# endif\n# define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_WRITE,name)\n# define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_APPEND,name)\n# define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \\\n                BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)\n\n/*\n * WARNING WARNING, this ups the reference count on the read bio of the SSL\n * structure.  This is because the ssl read BIO is now pointed to by the\n * next_bio field in the bio.  So when you free the BIO, make sure you are\n * doing a BIO_free_all() to catch the underlying BIO.\n */\n# define BIO_set_ssl(b,ssl,c)    BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)(ssl))\n# define BIO_get_ssl(b,sslp)     BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)(sslp))\n# define BIO_set_ssl_mode(b,client)      BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)\n# define BIO_set_ssl_renegotiate_bytes(b,num) \\\n        BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)\n# define BIO_get_num_renegotiates(b) \\\n        BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)\n# define BIO_set_ssl_renegotiate_timeout(b,seconds) \\\n        BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)\n\n/* defined in evp.h */\n/* #define BIO_set_md(b,md)     BIO_ctrl(b,BIO_C_SET_MD,1,(char *)(md)) */\n\n# define BIO_get_mem_data(b,pp)  BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)(pp))\n# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)(bm))\n# define BIO_get_mem_ptr(b,pp)   BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0, \\\n                                          (char *)(pp))\n# define BIO_set_mem_eof_return(b,v) \\\n                                BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)\n\n/* For the BIO_f_buffer() type */\n# define BIO_get_buffer_num_lines(b)     BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)\n# define BIO_set_buffer_size(b,size)     BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)\n# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)\n# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)\n# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)\n\n/* Don't use the next one unless you know what you are doing :-) */\n# define BIO_dup_state(b,ret)    BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))\n\n# define BIO_reset(b)            (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)\n# define BIO_eof(b)              (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)\n# define BIO_set_close(b,c)      (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)\n# define BIO_get_close(b)        (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)\n# define BIO_pending(b)          (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)\n# define BIO_wpending(b)         (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)\n/* ...pending macros have inappropriate return type */\nsize_t BIO_ctrl_pending(BIO *b);\nsize_t BIO_ctrl_wpending(BIO *b);\n# define BIO_flush(b)            (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)\n# define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \\\n                                                   cbp)\n# define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)\n\n/* For the BIO_f_buffer() type */\n# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)\n# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))\n\n/* For BIO_s_bio() */\n# define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)\n# define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)\n# define BIO_make_bio_pair(b1,b2)   (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)\n# define BIO_destroy_bio_pair(b)    (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)\n# define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)\n/* macros with inappropriate type -- but ...pending macros use int too: */\n# define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)\n# define BIO_get_read_request(b)    (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)\nsize_t BIO_ctrl_get_write_guarantee(BIO *b);\nsize_t BIO_ctrl_get_read_request(BIO *b);\nint BIO_ctrl_reset_read_request(BIO *b);\n\n/* ctrl macros for dgram */\n# define BIO_ctrl_dgram_connect(b,peer)  \\\n                     (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)(peer))\n# define BIO_ctrl_set_connected(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_CONNECTED, 0, (char *)(peer))\n# define BIO_dgram_recv_timedout(b) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP, 0, NULL)\n# define BIO_dgram_send_timedout(b) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP, 0, NULL)\n# define BIO_dgram_get_peer(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_GET_PEER, 0, (char *)(peer))\n# define BIO_dgram_set_peer(b,peer) \\\n         (int)BIO_ctrl(b, BIO_CTRL_DGRAM_SET_PEER, 0, (char *)(peer))\n# define BIO_dgram_get_mtu_overhead(b) \\\n         (unsigned int)BIO_ctrl((b), BIO_CTRL_DGRAM_GET_MTU_OVERHEAD, 0, NULL)\n\n#define BIO_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_BIO, l, p, newf, dupf, freef)\nint BIO_set_ex_data(BIO *bio, int idx, void *data);\nvoid *BIO_get_ex_data(BIO *bio, int idx);\nuint64_t BIO_number_read(BIO *bio);\nuint64_t BIO_number_written(BIO *bio);\n\n/* For BIO_f_asn1() */\nint BIO_asn1_set_prefix(BIO *b, asn1_ps_func *prefix,\n                        asn1_ps_func *prefix_free);\nint BIO_asn1_get_prefix(BIO *b, asn1_ps_func **pprefix,\n                        asn1_ps_func **pprefix_free);\nint BIO_asn1_set_suffix(BIO *b, asn1_ps_func *suffix,\n                        asn1_ps_func *suffix_free);\nint BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,\n                        asn1_ps_func **psuffix_free);\n\nconst BIO_METHOD *BIO_s_file(void);\nBIO *BIO_new_file(const char *filename, const char *mode);\n# ifndef OPENSSL_NO_STDIO\nBIO *BIO_new_fp(FILE *stream, int close_flag);\n# endif\nBIO *BIO_new(const BIO_METHOD *type);\nint BIO_free(BIO *a);\nvoid BIO_set_data(BIO *a, void *ptr);\nvoid *BIO_get_data(BIO *a);\nvoid BIO_set_init(BIO *a, int init);\nint BIO_get_init(BIO *a);\nvoid BIO_set_shutdown(BIO *a, int shut);\nint BIO_get_shutdown(BIO *a);\nvoid BIO_vfree(BIO *a);\nint BIO_up_ref(BIO *a);\nint BIO_read(BIO *b, void *data, int dlen);\nint BIO_read_ex(BIO *b, void *data, size_t dlen, size_t *readbytes);\nint BIO_gets(BIO *bp, char *buf, int size);\nint BIO_write(BIO *b, const void *data, int dlen);\nint BIO_write_ex(BIO *b, const void *data, size_t dlen, size_t *written);\nint BIO_puts(BIO *bp, const char *buf);\nint BIO_indent(BIO *b, int indent, int max);\nlong BIO_ctrl(BIO *bp, int cmd, long larg, void *parg);\nlong BIO_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp);\nvoid *BIO_ptr_ctrl(BIO *bp, int cmd, long larg);\nlong BIO_int_ctrl(BIO *bp, int cmd, long larg, int iarg);\nBIO *BIO_push(BIO *b, BIO *append);\nBIO *BIO_pop(BIO *b);\nvoid BIO_free_all(BIO *a);\nBIO *BIO_find_type(BIO *b, int bio_type);\nBIO *BIO_next(BIO *b);\nvoid BIO_set_next(BIO *b, BIO *next);\nBIO *BIO_get_retry_BIO(BIO *bio, int *reason);\nint BIO_get_retry_reason(BIO *bio);\nvoid BIO_set_retry_reason(BIO *bio, int reason);\nBIO *BIO_dup_chain(BIO *in);\n\nint BIO_nread0(BIO *bio, char **buf);\nint BIO_nread(BIO *bio, char **buf, int num);\nint BIO_nwrite0(BIO *bio, char **buf);\nint BIO_nwrite(BIO *bio, char **buf, int num);\n\nlong BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi,\n                        long argl, long ret);\n\nconst BIO_METHOD *BIO_s_mem(void);\nconst BIO_METHOD *BIO_s_secmem(void);\nBIO *BIO_new_mem_buf(const void *buf, int len);\n# ifndef OPENSSL_NO_SOCK\nconst BIO_METHOD *BIO_s_socket(void);\nconst BIO_METHOD *BIO_s_connect(void);\nconst BIO_METHOD *BIO_s_accept(void);\n# endif\nconst BIO_METHOD *BIO_s_fd(void);\nconst BIO_METHOD *BIO_s_log(void);\nconst BIO_METHOD *BIO_s_bio(void);\nconst BIO_METHOD *BIO_s_null(void);\nconst BIO_METHOD *BIO_f_null(void);\nconst BIO_METHOD *BIO_f_buffer(void);\nconst BIO_METHOD *BIO_f_linebuffer(void);\nconst BIO_METHOD *BIO_f_nbio_test(void);\n# ifndef OPENSSL_NO_DGRAM\nconst BIO_METHOD *BIO_s_datagram(void);\nint BIO_dgram_non_fatal_error(int error);\nBIO *BIO_new_dgram(int fd, int close_flag);\n#  ifndef OPENSSL_NO_SCTP\nconst BIO_METHOD *BIO_s_datagram_sctp(void);\nBIO *BIO_new_dgram_sctp(int fd, int close_flag);\nint BIO_dgram_is_sctp(BIO *bio);\nint BIO_dgram_sctp_notification_cb(BIO *b,\n                                   void (*handle_notifications) (BIO *bio,\n                                                                 void *context,\n                                                                 void *buf),\n                                   void *context);\nint BIO_dgram_sctp_wait_for_dry(BIO *b);\nint BIO_dgram_sctp_msg_waiting(BIO *b);\n#  endif\n# endif\n\n# ifndef OPENSSL_NO_SOCK\nint BIO_sock_should_retry(int i);\nint BIO_sock_non_fatal_error(int error);\n# endif\n\nint BIO_fd_should_retry(int i);\nint BIO_fd_non_fatal_error(int error);\nint BIO_dump_cb(int (*cb) (const void *data, size_t len, void *u),\n                void *u, const char *s, int len);\nint BIO_dump_indent_cb(int (*cb) (const void *data, size_t len, void *u),\n                       void *u, const char *s, int len, int indent);\nint BIO_dump(BIO *b, const char *bytes, int len);\nint BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);\n# ifndef OPENSSL_NO_STDIO\nint BIO_dump_fp(FILE *fp, const char *s, int len);\nint BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent);\n# endif\nint BIO_hex_string(BIO *out, int indent, int width, unsigned char *data,\n                   int datalen);\n\n# ifndef OPENSSL_NO_SOCK\nBIO_ADDR *BIO_ADDR_new(void);\nint BIO_ADDR_rawmake(BIO_ADDR *ap, int family,\n                     const void *where, size_t wherelen, unsigned short port);\nvoid BIO_ADDR_free(BIO_ADDR *);\nvoid BIO_ADDR_clear(BIO_ADDR *ap);\nint BIO_ADDR_family(const BIO_ADDR *ap);\nint BIO_ADDR_rawaddress(const BIO_ADDR *ap, void *p, size_t *l);\nunsigned short BIO_ADDR_rawport(const BIO_ADDR *ap);\nchar *BIO_ADDR_hostname_string(const BIO_ADDR *ap, int numeric);\nchar *BIO_ADDR_service_string(const BIO_ADDR *ap, int numeric);\nchar *BIO_ADDR_path_string(const BIO_ADDR *ap);\n\nconst BIO_ADDRINFO *BIO_ADDRINFO_next(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_family(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_socktype(const BIO_ADDRINFO *bai);\nint BIO_ADDRINFO_protocol(const BIO_ADDRINFO *bai);\nconst BIO_ADDR *BIO_ADDRINFO_address(const BIO_ADDRINFO *bai);\nvoid BIO_ADDRINFO_free(BIO_ADDRINFO *bai);\n\nenum BIO_hostserv_priorities {\n    BIO_PARSE_PRIO_HOST, BIO_PARSE_PRIO_SERV\n};\nint BIO_parse_hostserv(const char *hostserv, char **host, char **service,\n                       enum BIO_hostserv_priorities hostserv_prio);\nenum BIO_lookup_type {\n    BIO_LOOKUP_CLIENT, BIO_LOOKUP_SERVER\n};\nint BIO_lookup(const char *host, const char *service,\n               enum BIO_lookup_type lookup_type,\n               int family, int socktype, BIO_ADDRINFO **res);\nint BIO_lookup_ex(const char *host, const char *service,\n                  int lookup_type, int family, int socktype, int protocol,\n                  BIO_ADDRINFO **res);\nint BIO_sock_error(int sock);\nint BIO_socket_ioctl(int fd, long type, void *arg);\nint BIO_socket_nbio(int fd, int mode);\nint BIO_sock_init(void);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define BIO_sock_cleanup() while(0) continue\n# endif\nint BIO_set_tcp_ndelay(int sock, int turn_on);\n\nDEPRECATEDIN_1_1_0(struct hostent *BIO_gethostbyname(const char *name))\nDEPRECATEDIN_1_1_0(int BIO_get_port(const char *str, unsigned short *port_ptr))\nDEPRECATEDIN_1_1_0(int BIO_get_host_ip(const char *str, unsigned char *ip))\nDEPRECATEDIN_1_1_0(int BIO_get_accept_socket(char *host_port, int mode))\nDEPRECATEDIN_1_1_0(int BIO_accept(int sock, char **ip_port))\n\nunion BIO_sock_info_u {\n    BIO_ADDR *addr;\n};\nenum BIO_sock_info_type {\n    BIO_SOCK_INFO_ADDRESS\n};\nint BIO_sock_info(int sock,\n                  enum BIO_sock_info_type type, union BIO_sock_info_u *info);\n\n#  define BIO_SOCK_REUSEADDR    0x01\n#  define BIO_SOCK_V6_ONLY      0x02\n#  define BIO_SOCK_KEEPALIVE    0x04\n#  define BIO_SOCK_NONBLOCK     0x08\n#  define BIO_SOCK_NODELAY      0x10\n\nint BIO_socket(int domain, int socktype, int protocol, int options);\nint BIO_connect(int sock, const BIO_ADDR *addr, int options);\nint BIO_bind(int sock, const BIO_ADDR *addr, int options);\nint BIO_listen(int sock, const BIO_ADDR *addr, int options);\nint BIO_accept_ex(int accept_sock, BIO_ADDR *addr, int options);\nint BIO_closesocket(int sock);\n\nBIO *BIO_new_socket(int sock, int close_flag);\nBIO *BIO_new_connect(const char *host_port);\nBIO *BIO_new_accept(const char *host_port);\n# endif /* OPENSSL_NO_SOCK*/\n\nBIO *BIO_new_fd(int fd, int close_flag);\n\nint BIO_new_bio_pair(BIO **bio1, size_t writebuf1,\n                     BIO **bio2, size_t writebuf2);\n/*\n * If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints.\n * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. Size 0 uses default\n * value.\n */\n\nvoid BIO_copy_next_retry(BIO *b);\n\n/*\n * long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);\n */\n\n# define ossl_bio__attr__(x)\n# if defined(__GNUC__) && defined(__STDC_VERSION__) \\\n    && !defined(__APPLE__)\n    /*\n     * Because we support the 'z' modifier, which made its appearance in C99,\n     * we can't use __attribute__ with pre C99 dialects.\n     */\n#  if __STDC_VERSION__ >= 199901L\n#   undef ossl_bio__attr__\n#   define ossl_bio__attr__ __attribute__\n#   if __GNUC__*10 + __GNUC_MINOR__ >= 44\n#    define ossl_bio__printf__ __gnu_printf__\n#   else\n#    define ossl_bio__printf__ __printf__\n#   endif\n#  endif\n# endif\nint BIO_printf(BIO *bio, const char *format, ...)\nossl_bio__attr__((__format__(ossl_bio__printf__, 2, 3)));\nint BIO_vprintf(BIO *bio, const char *format, va_list args)\nossl_bio__attr__((__format__(ossl_bio__printf__, 2, 0)));\nint BIO_snprintf(char *buf, size_t n, const char *format, ...)\nossl_bio__attr__((__format__(ossl_bio__printf__, 3, 4)));\nint BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)\nossl_bio__attr__((__format__(ossl_bio__printf__, 3, 0)));\n# undef ossl_bio__attr__\n# undef ossl_bio__printf__\n\n\nBIO_METHOD *BIO_meth_new(int type, const char *name);\nvoid BIO_meth_free(BIO_METHOD *biom);\nint (*BIO_meth_get_write(const BIO_METHOD *biom)) (BIO *, const char *, int);\nint (*BIO_meth_get_write_ex(const BIO_METHOD *biom)) (BIO *, const char *, size_t,\n                                                size_t *);\nint BIO_meth_set_write(BIO_METHOD *biom,\n                       int (*write) (BIO *, const char *, int));\nint BIO_meth_set_write_ex(BIO_METHOD *biom,\n                       int (*bwrite) (BIO *, const char *, size_t, size_t *));\nint (*BIO_meth_get_read(const BIO_METHOD *biom)) (BIO *, char *, int);\nint (*BIO_meth_get_read_ex(const BIO_METHOD *biom)) (BIO *, char *, size_t, size_t *);\nint BIO_meth_set_read(BIO_METHOD *biom,\n                      int (*read) (BIO *, char *, int));\nint BIO_meth_set_read_ex(BIO_METHOD *biom,\n                         int (*bread) (BIO *, char *, size_t, size_t *));\nint (*BIO_meth_get_puts(const BIO_METHOD *biom)) (BIO *, const char *);\nint BIO_meth_set_puts(BIO_METHOD *biom,\n                      int (*puts) (BIO *, const char *));\nint (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int);\nint BIO_meth_set_gets(BIO_METHOD *biom,\n                      int (*gets) (BIO *, char *, int));\nlong (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *);\nint BIO_meth_set_ctrl(BIO_METHOD *biom,\n                      long (*ctrl) (BIO *, int, long, void *));\nint (*BIO_meth_get_create(const BIO_METHOD *bion)) (BIO *);\nint BIO_meth_set_create(BIO_METHOD *biom, int (*create) (BIO *));\nint (*BIO_meth_get_destroy(const BIO_METHOD *biom)) (BIO *);\nint BIO_meth_set_destroy(BIO_METHOD *biom, int (*destroy) (BIO *));\nlong (*BIO_meth_get_callback_ctrl(const BIO_METHOD *biom))\n                                 (BIO *, int, BIO_info_cb *);\nint BIO_meth_set_callback_ctrl(BIO_METHOD *biom,\n                               long (*callback_ctrl) (BIO *, int,\n                                                      BIO_info_cb *));\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/bioerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BIOERR_H\n# define HEADER_BIOERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BIO_strings(void);\n\n/*\n * BIO function codes.\n */\n# define BIO_F_ACPT_STATE                                 100\n# define BIO_F_ADDRINFO_WRAP                              148\n# define BIO_F_ADDR_STRINGS                               134\n# define BIO_F_BIO_ACCEPT                                 101\n# define BIO_F_BIO_ACCEPT_EX                              137\n# define BIO_F_BIO_ACCEPT_NEW                             152\n# define BIO_F_BIO_ADDR_NEW                               144\n# define BIO_F_BIO_BIND                                   147\n# define BIO_F_BIO_CALLBACK_CTRL                          131\n# define BIO_F_BIO_CONNECT                                138\n# define BIO_F_BIO_CONNECT_NEW                            153\n# define BIO_F_BIO_CTRL                                   103\n# define BIO_F_BIO_GETS                                   104\n# define BIO_F_BIO_GET_HOST_IP                            106\n# define BIO_F_BIO_GET_NEW_INDEX                          102\n# define BIO_F_BIO_GET_PORT                               107\n# define BIO_F_BIO_LISTEN                                 139\n# define BIO_F_BIO_LOOKUP                                 135\n# define BIO_F_BIO_LOOKUP_EX                              143\n# define BIO_F_BIO_MAKE_PAIR                              121\n# define BIO_F_BIO_METH_NEW                               146\n# define BIO_F_BIO_NEW                                    108\n# define BIO_F_BIO_NEW_DGRAM_SCTP                         145\n# define BIO_F_BIO_NEW_FILE                               109\n# define BIO_F_BIO_NEW_MEM_BUF                            126\n# define BIO_F_BIO_NREAD                                  123\n# define BIO_F_BIO_NREAD0                                 124\n# define BIO_F_BIO_NWRITE                                 125\n# define BIO_F_BIO_NWRITE0                                122\n# define BIO_F_BIO_PARSE_HOSTSERV                         136\n# define BIO_F_BIO_PUTS                                   110\n# define BIO_F_BIO_READ                                   111\n# define BIO_F_BIO_READ_EX                                105\n# define BIO_F_BIO_READ_INTERN                            120\n# define BIO_F_BIO_SOCKET                                 140\n# define BIO_F_BIO_SOCKET_NBIO                            142\n# define BIO_F_BIO_SOCK_INFO                              141\n# define BIO_F_BIO_SOCK_INIT                              112\n# define BIO_F_BIO_WRITE                                  113\n# define BIO_F_BIO_WRITE_EX                               119\n# define BIO_F_BIO_WRITE_INTERN                           128\n# define BIO_F_BUFFER_CTRL                                114\n# define BIO_F_CONN_CTRL                                  127\n# define BIO_F_CONN_STATE                                 115\n# define BIO_F_DGRAM_SCTP_NEW                             149\n# define BIO_F_DGRAM_SCTP_READ                            132\n# define BIO_F_DGRAM_SCTP_WRITE                           133\n# define BIO_F_DOAPR_OUTCH                                150\n# define BIO_F_FILE_CTRL                                  116\n# define BIO_F_FILE_READ                                  130\n# define BIO_F_LINEBUFFER_CTRL                            129\n# define BIO_F_LINEBUFFER_NEW                             151\n# define BIO_F_MEM_WRITE                                  117\n# define BIO_F_NBIOF_NEW                                  154\n# define BIO_F_SLG_WRITE                                  155\n# define BIO_F_SSL_NEW                                    118\n\n/*\n * BIO reason codes.\n */\n# define BIO_R_ACCEPT_ERROR                               100\n# define BIO_R_ADDRINFO_ADDR_IS_NOT_AF_INET               141\n# define BIO_R_AMBIGUOUS_HOST_OR_SERVICE                  129\n# define BIO_R_BAD_FOPEN_MODE                             101\n# define BIO_R_BROKEN_PIPE                                124\n# define BIO_R_CONNECT_ERROR                              103\n# define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET          107\n# define BIO_R_GETSOCKNAME_ERROR                          132\n# define BIO_R_GETSOCKNAME_TRUNCATED_ADDRESS              133\n# define BIO_R_GETTING_SOCKTYPE                           134\n# define BIO_R_INVALID_ARGUMENT                           125\n# define BIO_R_INVALID_SOCKET                             135\n# define BIO_R_IN_USE                                     123\n# define BIO_R_LENGTH_TOO_LONG                            102\n# define BIO_R_LISTEN_V6_ONLY                             136\n# define BIO_R_LOOKUP_RETURNED_NOTHING                    142\n# define BIO_R_MALFORMED_HOST_OR_SERVICE                  130\n# define BIO_R_NBIO_CONNECT_ERROR                         110\n# define BIO_R_NO_ACCEPT_ADDR_OR_SERVICE_SPECIFIED        143\n# define BIO_R_NO_HOSTNAME_OR_SERVICE_SPECIFIED           144\n# define BIO_R_NO_PORT_DEFINED                            113\n# define BIO_R_NO_SUCH_FILE                               128\n# define BIO_R_NULL_PARAMETER                             115\n# define BIO_R_UNABLE_TO_BIND_SOCKET                      117\n# define BIO_R_UNABLE_TO_CREATE_SOCKET                    118\n# define BIO_R_UNABLE_TO_KEEPALIVE                        137\n# define BIO_R_UNABLE_TO_LISTEN_SOCKET                    119\n# define BIO_R_UNABLE_TO_NODELAY                          138\n# define BIO_R_UNABLE_TO_REUSEADDR                        139\n# define BIO_R_UNAVAILABLE_IP_FAMILY                      145\n# define BIO_R_UNINITIALIZED                              120\n# define BIO_R_UNKNOWN_INFO_TYPE                          140\n# define BIO_R_UNSUPPORTED_IP_FAMILY                      146\n# define BIO_R_UNSUPPORTED_METHOD                         121\n# define BIO_R_UNSUPPORTED_PROTOCOL_FAMILY                131\n# define BIO_R_WRITE_TO_READ_ONLY_BIO                     126\n# define BIO_R_WSASTARTUP                                 122\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/blowfish.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BLOWFISH_H\n# define HEADER_BLOWFISH_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_BF\n# include <openssl/e_os2.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define BF_ENCRYPT      1\n# define BF_DECRYPT      0\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! BF_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define BF_LONG unsigned int\n\n# define BF_ROUNDS       16\n# define BF_BLOCK        8\n\ntypedef struct bf_key_st {\n    BF_LONG P[BF_ROUNDS + 2];\n    BF_LONG S[4 * 256];\n} BF_KEY;\n\nvoid BF_set_key(BF_KEY *key, int len, const unsigned char *data);\n\nvoid BF_encrypt(BF_LONG *data, const BF_KEY *key);\nvoid BF_decrypt(BF_LONG *data, const BF_KEY *key);\n\nvoid BF_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                    const BF_KEY *key, int enc);\nvoid BF_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,\n                    const BF_KEY *schedule, unsigned char *ivec, int enc);\nvoid BF_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const BF_KEY *schedule,\n                      unsigned char *ivec, int *num, int enc);\nvoid BF_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const BF_KEY *schedule,\n                      unsigned char *ivec, int *num);\nconst char *BF_options(void);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/bn.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BN_H\n# define HEADER_BN_H\n\n# include <openssl/e_os2.h>\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n# include <openssl/opensslconf.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/crypto.h>\n# include <openssl/bnerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * 64-bit processor with LP64 ABI\n */\n# ifdef SIXTY_FOUR_BIT_LONG\n#  define BN_ULONG        unsigned long\n#  define BN_BYTES        8\n# endif\n\n/*\n * 64-bit processor other than LP64 ABI\n */\n# ifdef SIXTY_FOUR_BIT\n#  define BN_ULONG        unsigned long long\n#  define BN_BYTES        8\n# endif\n\n# ifdef THIRTY_TWO_BIT\n#  define BN_ULONG        unsigned int\n#  define BN_BYTES        4\n# endif\n\n# define BN_BITS2       (BN_BYTES * 8)\n# define BN_BITS        (BN_BITS2 * 2)\n# define BN_TBIT        ((BN_ULONG)1 << (BN_BITS2 - 1))\n\n# define BN_FLG_MALLOCED         0x01\n# define BN_FLG_STATIC_DATA      0x02\n\n/*\n * avoid leaking exponent information through timing,\n * BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,\n * BN_div() will call BN_div_no_branch,\n * BN_mod_inverse() will call bn_mod_inverse_no_branch.\n */\n# define BN_FLG_CONSTTIME        0x04\n# define BN_FLG_SECURE           0x08\n\n# if OPENSSL_API_COMPAT < 0x00908000L\n/* deprecated name for the flag */\n#  define BN_FLG_EXP_CONSTTIME BN_FLG_CONSTTIME\n#  define BN_FLG_FREE            0x8000 /* used for debugging */\n# endif\n\nvoid BN_set_flags(BIGNUM *b, int n);\nint BN_get_flags(const BIGNUM *b, int n);\n\n/* Values for |top| in BN_rand() */\n#define BN_RAND_TOP_ANY    -1\n#define BN_RAND_TOP_ONE     0\n#define BN_RAND_TOP_TWO     1\n\n/* Values for |bottom| in BN_rand() */\n#define BN_RAND_BOTTOM_ANY  0\n#define BN_RAND_BOTTOM_ODD  1\n\n/*\n * get a clone of a BIGNUM with changed flags, for *temporary* use only (the\n * two BIGNUMs cannot be used in parallel!). Also only for *read only* use. The\n * value |dest| should be a newly allocated BIGNUM obtained via BN_new() that\n * has not been otherwise initialised or used.\n */\nvoid BN_with_flags(BIGNUM *dest, const BIGNUM *b, int flags);\n\n/* Wrapper function to make using BN_GENCB easier */\nint BN_GENCB_call(BN_GENCB *cb, int a, int b);\n\nBN_GENCB *BN_GENCB_new(void);\nvoid BN_GENCB_free(BN_GENCB *cb);\n\n/* Populate a BN_GENCB structure with an \"old\"-style callback */\nvoid BN_GENCB_set_old(BN_GENCB *gencb, void (*callback) (int, int, void *),\n                      void *cb_arg);\n\n/* Populate a BN_GENCB structure with a \"new\"-style callback */\nvoid BN_GENCB_set(BN_GENCB *gencb, int (*callback) (int, int, BN_GENCB *),\n                  void *cb_arg);\n\nvoid *BN_GENCB_get_arg(BN_GENCB *cb);\n\n# define BN_prime_checks 0      /* default: select number of iterations based\n                                 * on the size of the number */\n\n/*\n * BN_prime_checks_for_size() returns the number of Miller-Rabin iterations\n * that will be done for checking that a random number is probably prime. The\n * error rate for accepting a composite number as prime depends on the size of\n * the prime |b|. The error rates used are for calculating an RSA key with 2 primes,\n * and so the level is what you would expect for a key of double the size of the\n * prime.\n *\n * This table is generated using the algorithm of FIPS PUB 186-4\n * Digital Signature Standard (DSS), section F.1, page 117.\n * (https://dx.doi.org/10.6028/NIST.FIPS.186-4)\n *\n * The following magma script was used to generate the output:\n * securitybits:=125;\n * k:=1024;\n * for t:=1 to 65 do\n *   for M:=3 to Floor(2*Sqrt(k-1)-1) do\n *     S:=0;\n *     // Sum over m\n *     for m:=3 to M do\n *       s:=0;\n *       // Sum over j\n *       for j:=2 to m do\n *         s+:=(RealField(32)!2)^-(j+(k-1)/j);\n *       end for;\n *       S+:=2^(m-(m-1)*t)*s;\n *     end for;\n *     A:=2^(k-2-M*t);\n *     B:=8*(Pi(RealField(32))^2-6)/3*2^(k-2)*S;\n *     pkt:=2.00743*Log(2)*k*2^-k*(A+B);\n *     seclevel:=Floor(-Log(2,pkt));\n *     if seclevel ge securitybits then\n *       printf \"k: %5o, security: %o bits  (t: %o, M: %o)\\n\",k,seclevel,t,M;\n *       break;\n *     end if;\n *   end for;\n *   if seclevel ge securitybits then break; end if;\n * end for;\n *\n * It can be run online at:\n * http://magma.maths.usyd.edu.au/calc\n *\n * And will output:\n * k:  1024, security: 129 bits  (t: 6, M: 23)\n *\n * k is the number of bits of the prime, securitybits is the level we want to\n * reach.\n *\n * prime length | RSA key size | # MR tests | security level\n * -------------+--------------|------------+---------------\n *  (b) >= 6394 |     >= 12788 |          3 |        256 bit\n *  (b) >= 3747 |     >=  7494 |          3 |        192 bit\n *  (b) >= 1345 |     >=  2690 |          4 |        128 bit\n *  (b) >= 1080 |     >=  2160 |          5 |        128 bit\n *  (b) >=  852 |     >=  1704 |          5 |        112 bit\n *  (b) >=  476 |     >=   952 |          5 |         80 bit\n *  (b) >=  400 |     >=   800 |          6 |         80 bit\n *  (b) >=  347 |     >=   694 |          7 |         80 bit\n *  (b) >=  308 |     >=   616 |          8 |         80 bit\n *  (b) >=   55 |     >=   110 |         27 |         64 bit\n *  (b) >=    6 |     >=    12 |         34 |         64 bit\n */\n\n# define BN_prime_checks_for_size(b) ((b) >= 3747 ?  3 : \\\n                                (b) >=  1345 ?  4 : \\\n                                (b) >=  476 ?  5 : \\\n                                (b) >=  400 ?  6 : \\\n                                (b) >=  347 ?  7 : \\\n                                (b) >=  308 ?  8 : \\\n                                (b) >=  55  ? 27 : \\\n                                /* b >= 6 */ 34)\n\n# define BN_num_bytes(a) ((BN_num_bits(a)+7)/8)\n\nint BN_abs_is_word(const BIGNUM *a, const BN_ULONG w);\nint BN_is_zero(const BIGNUM *a);\nint BN_is_one(const BIGNUM *a);\nint BN_is_word(const BIGNUM *a, const BN_ULONG w);\nint BN_is_odd(const BIGNUM *a);\n\n# define BN_one(a)       (BN_set_word((a),1))\n\nvoid BN_zero_ex(BIGNUM *a);\n\n# if OPENSSL_API_COMPAT >= 0x00908000L\n#  define BN_zero(a)      BN_zero_ex(a)\n# else\n#  define BN_zero(a)      (BN_set_word((a),0))\n# endif\n\nconst BIGNUM *BN_value_one(void);\nchar *BN_options(void);\nBN_CTX *BN_CTX_new(void);\nBN_CTX *BN_CTX_secure_new(void);\nvoid BN_CTX_free(BN_CTX *c);\nvoid BN_CTX_start(BN_CTX *ctx);\nBIGNUM *BN_CTX_get(BN_CTX *ctx);\nvoid BN_CTX_end(BN_CTX *ctx);\nint BN_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_priv_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_priv_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom);\nint BN_pseudo_rand_range(BIGNUM *rnd, const BIGNUM *range);\nint BN_num_bits(const BIGNUM *a);\nint BN_num_bits_word(BN_ULONG l);\nint BN_security_bits(int L, int N);\nBIGNUM *BN_new(void);\nBIGNUM *BN_secure_new(void);\nvoid BN_clear_free(BIGNUM *a);\nBIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b);\nvoid BN_swap(BIGNUM *a, BIGNUM *b);\nBIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2bin(const BIGNUM *a, unsigned char *to);\nint BN_bn2binpad(const BIGNUM *a, unsigned char *to, int tolen);\nBIGNUM *BN_lebin2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2lebinpad(const BIGNUM *a, unsigned char *to, int tolen);\nBIGNUM *BN_mpi2bn(const unsigned char *s, int len, BIGNUM *ret);\nint BN_bn2mpi(const BIGNUM *a, unsigned char *to);\nint BN_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_usub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_uadd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\nint BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);\nint BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);\n/** BN_set_negative sets sign of a BIGNUM\n * \\param  b  pointer to the BIGNUM object\n * \\param  n  0 if the BIGNUM b should be positive and a value != 0 otherwise\n */\nvoid BN_set_negative(BIGNUM *b, int n);\n/** BN_is_negative returns 1 if the BIGNUM is negative\n * \\param  b  pointer to the BIGNUM object\n * \\return 1 if a < 0 and 0 otherwise\n */\nint BN_is_negative(const BIGNUM *b);\n\nint BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,\n           BN_CTX *ctx);\n# define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))\nint BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);\nint BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                     const BIGNUM *m);\nint BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                     const BIGNUM *m);\nint BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m,\n               BN_CTX *ctx);\nint BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m);\nint BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m,\n                  BN_CTX *ctx);\nint BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m);\n\nBN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);\nBN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w);\nint BN_mul_word(BIGNUM *a, BN_ULONG w);\nint BN_add_word(BIGNUM *a, BN_ULONG w);\nint BN_sub_word(BIGNUM *a, BN_ULONG w);\nint BN_set_word(BIGNUM *a, BN_ULONG w);\nBN_ULONG BN_get_word(const BIGNUM *a);\n\nint BN_cmp(const BIGNUM *a, const BIGNUM *b);\nvoid BN_free(BIGNUM *a);\nint BN_is_bit_set(const BIGNUM *a, int n);\nint BN_lshift(BIGNUM *r, const BIGNUM *a, int n);\nint BN_lshift1(BIGNUM *r, const BIGNUM *a);\nint BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n\nint BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n               const BIGNUM *m, BN_CTX *ctx);\nint BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                    const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,\n                              const BIGNUM *m, BN_CTX *ctx,\n                              BN_MONT_CTX *in_mont);\nint BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,\n                         const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp2_mont(BIGNUM *r, const BIGNUM *a1, const BIGNUM *p1,\n                     const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,\n                     BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                      const BIGNUM *m, BN_CTX *ctx);\n\nint BN_mask_bits(BIGNUM *a, int n);\n# ifndef OPENSSL_NO_STDIO\nint BN_print_fp(FILE *fp, const BIGNUM *a);\n# endif\nint BN_print(BIO *bio, const BIGNUM *a);\nint BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);\nint BN_rshift(BIGNUM *r, const BIGNUM *a, int n);\nint BN_rshift1(BIGNUM *r, const BIGNUM *a);\nvoid BN_clear(BIGNUM *a);\nBIGNUM *BN_dup(const BIGNUM *a);\nint BN_ucmp(const BIGNUM *a, const BIGNUM *b);\nint BN_set_bit(BIGNUM *a, int n);\nint BN_clear_bit(BIGNUM *a, int n);\nchar *BN_bn2hex(const BIGNUM *a);\nchar *BN_bn2dec(const BIGNUM *a);\nint BN_hex2bn(BIGNUM **a, const char *str);\nint BN_dec2bn(BIGNUM **a, const char *str);\nint BN_asc2bn(BIGNUM **a, const char *str);\nint BN_gcd(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);\nint BN_kronecker(const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx); /* returns\n                                                                  * -2 for\n                                                                  * error */\nBIGNUM *BN_mod_inverse(BIGNUM *ret,\n                       const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);\nBIGNUM *BN_mod_sqrt(BIGNUM *ret,\n                    const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx);\n\nvoid BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);\n\n/* Deprecated versions */\nDEPRECATEDIN_0_9_8(BIGNUM *BN_generate_prime(BIGNUM *ret, int bits, int safe,\n                                             const BIGNUM *add,\n                                             const BIGNUM *rem,\n                                             void (*callback) (int, int,\n                                                               void *),\n                                             void *cb_arg))\nDEPRECATEDIN_0_9_8(int\n                   BN_is_prime(const BIGNUM *p, int nchecks,\n                               void (*callback) (int, int, void *),\n                               BN_CTX *ctx, void *cb_arg))\nDEPRECATEDIN_0_9_8(int\n                   BN_is_prime_fasttest(const BIGNUM *p, int nchecks,\n                                        void (*callback) (int, int, void *),\n                                        BN_CTX *ctx, void *cb_arg,\n                                        int do_trial_division))\n\n/* Newer versions */\nint BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add,\n                         const BIGNUM *rem, BN_GENCB *cb);\nint BN_is_prime_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, BN_GENCB *cb);\nint BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx,\n                            int do_trial_division, BN_GENCB *cb);\n\nint BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);\n\nint BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,\n                            const BIGNUM *Xp, const BIGNUM *Xp1,\n                            const BIGNUM *Xp2, const BIGNUM *e, BN_CTX *ctx,\n                            BN_GENCB *cb);\nint BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2, BIGNUM *Xp1,\n                              BIGNUM *Xp2, const BIGNUM *Xp, const BIGNUM *e,\n                              BN_CTX *ctx, BN_GENCB *cb);\n\nBN_MONT_CTX *BN_MONT_CTX_new(void);\nint BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                          BN_MONT_CTX *mont, BN_CTX *ctx);\nint BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,\n                     BN_CTX *ctx);\nint BN_from_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont,\n                       BN_CTX *ctx);\nvoid BN_MONT_CTX_free(BN_MONT_CTX *mont);\nint BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);\nBN_MONT_CTX *BN_MONT_CTX_copy(BN_MONT_CTX *to, BN_MONT_CTX *from);\nBN_MONT_CTX *BN_MONT_CTX_set_locked(BN_MONT_CTX **pmont, CRYPTO_RWLOCK *lock,\n                                    const BIGNUM *mod, BN_CTX *ctx);\n\n/* BN_BLINDING flags */\n# define BN_BLINDING_NO_UPDATE   0x00000001\n# define BN_BLINDING_NO_RECREATE 0x00000002\n\nBN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod);\nvoid BN_BLINDING_free(BN_BLINDING *b);\nint BN_BLINDING_update(BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);\nint BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *);\nint BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b,\n                          BN_CTX *);\n\nint BN_BLINDING_is_current_thread(BN_BLINDING *b);\nvoid BN_BLINDING_set_current_thread(BN_BLINDING *b);\nint BN_BLINDING_lock(BN_BLINDING *b);\nint BN_BLINDING_unlock(BN_BLINDING *b);\n\nunsigned long BN_BLINDING_get_flags(const BN_BLINDING *);\nvoid BN_BLINDING_set_flags(BN_BLINDING *, unsigned long);\nBN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,\n                                      const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,\n                                      int (*bn_mod_exp) (BIGNUM *r,\n                                                         const BIGNUM *a,\n                                                         const BIGNUM *p,\n                                                         const BIGNUM *m,\n                                                         BN_CTX *ctx,\n                                                         BN_MONT_CTX *m_ctx),\n                                      BN_MONT_CTX *m_ctx);\n\nDEPRECATEDIN_0_9_8(void BN_set_params(int mul, int high, int low, int mont))\nDEPRECATEDIN_0_9_8(int BN_get_params(int which)) /* 0, mul, 1 high, 2 low, 3\n                                                  * mont */\n\nBN_RECP_CTX *BN_RECP_CTX_new(void);\nvoid BN_RECP_CTX_free(BN_RECP_CTX *recp);\nint BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *rdiv, BN_CTX *ctx);\nint BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,\n                          BN_RECP_CTX *recp, BN_CTX *ctx);\nint BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                    const BIGNUM *m, BN_CTX *ctx);\nint BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,\n                BN_RECP_CTX *recp, BN_CTX *ctx);\n\n# ifndef OPENSSL_NO_EC2M\n\n/*\n * Functions for arithmetic over binary polynomials represented by BIGNUMs.\n * The BIGNUM::neg property of BIGNUMs representing binary polynomials is\n * ignored. Note that input arguments are not const so that their bit arrays\n * can be expanded to the appropriate size if needed.\n */\n\n/*\n * r = a + b\n */\nint BN_GF2m_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b);\n#  define BN_GF2m_sub(r, a, b) BN_GF2m_add(r, a, b)\n/*\n * r=a mod p\n */\nint BN_GF2m_mod(BIGNUM *r, const BIGNUM *a, const BIGNUM *p);\n/* r = (a * b) mod p */\nint BN_GF2m_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = (a * a) mod p */\nint BN_GF2m_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n/* r = (1 / b) mod p */\nint BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx);\n/* r = (a / b) mod p */\nint BN_GF2m_mod_div(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = (a ^ b) mod p */\nint BN_GF2m_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                    const BIGNUM *p, BN_CTX *ctx);\n/* r = sqrt(a) mod p */\nint BN_GF2m_mod_sqrt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                     BN_CTX *ctx);\n/* r^2 + r = a mod p */\nint BN_GF2m_mod_solve_quad(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n                           BN_CTX *ctx);\n#  define BN_GF2m_cmp(a, b) BN_ucmp((a), (b))\n/*-\n * Some functions allow for representation of the irreducible polynomials\n * as an unsigned int[], say p.  The irreducible f(t) is then of the form:\n *     t^p[0] + t^p[1] + ... + t^p[k]\n * where m = p[0] > p[1] > ... > p[k] = 0.\n */\n/* r = a mod p */\nint BN_GF2m_mod_arr(BIGNUM *r, const BIGNUM *a, const int p[]);\n/* r = (a * b) mod p */\nint BN_GF2m_mod_mul_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = (a * a) mod p */\nint BN_GF2m_mod_sqr_arr(BIGNUM *r, const BIGNUM *a, const int p[],\n                        BN_CTX *ctx);\n/* r = (1 / b) mod p */\nint BN_GF2m_mod_inv_arr(BIGNUM *r, const BIGNUM *b, const int p[],\n                        BN_CTX *ctx);\n/* r = (a / b) mod p */\nint BN_GF2m_mod_div_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = (a ^ b) mod p */\nint BN_GF2m_mod_exp_arr(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,\n                        const int p[], BN_CTX *ctx);\n/* r = sqrt(a) mod p */\nint BN_GF2m_mod_sqrt_arr(BIGNUM *r, const BIGNUM *a,\n                         const int p[], BN_CTX *ctx);\n/* r^2 + r = a mod p */\nint BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a,\n                               const int p[], BN_CTX *ctx);\nint BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max);\nint BN_GF2m_arr2poly(const int p[], BIGNUM *a);\n\n# endif\n\n/*\n * faster mod functions for the 'NIST primes' 0 <= a < p^2\n */\nint BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\nint BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);\n\nconst BIGNUM *BN_get0_nist_prime_192(void);\nconst BIGNUM *BN_get0_nist_prime_224(void);\nconst BIGNUM *BN_get0_nist_prime_256(void);\nconst BIGNUM *BN_get0_nist_prime_384(void);\nconst BIGNUM *BN_get0_nist_prime_521(void);\n\nint (*BN_nist_mod_func(const BIGNUM *p)) (BIGNUM *r, const BIGNUM *a,\n                                          const BIGNUM *field, BN_CTX *ctx);\n\nint BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,\n                          const BIGNUM *priv, const unsigned char *message,\n                          size_t message_len, BN_CTX *ctx);\n\n/* Primes from RFC 2409 */\nBIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);\nBIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);\n\n/* Primes from RFC 3526 */\nBIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn);\nBIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define get_rfc2409_prime_768 BN_get_rfc2409_prime_768\n#  define get_rfc2409_prime_1024 BN_get_rfc2409_prime_1024\n#  define get_rfc3526_prime_1536 BN_get_rfc3526_prime_1536\n#  define get_rfc3526_prime_2048 BN_get_rfc3526_prime_2048\n#  define get_rfc3526_prime_3072 BN_get_rfc3526_prime_3072\n#  define get_rfc3526_prime_4096 BN_get_rfc3526_prime_4096\n#  define get_rfc3526_prime_6144 BN_get_rfc3526_prime_6144\n#  define get_rfc3526_prime_8192 BN_get_rfc3526_prime_8192\n# endif\n\nint BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/bnerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BNERR_H\n# define HEADER_BNERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BN_strings(void);\n\n/*\n * BN function codes.\n */\n# define BN_F_BNRAND                                      127\n# define BN_F_BNRAND_RANGE                                138\n# define BN_F_BN_BLINDING_CONVERT_EX                      100\n# define BN_F_BN_BLINDING_CREATE_PARAM                    128\n# define BN_F_BN_BLINDING_INVERT_EX                       101\n# define BN_F_BN_BLINDING_NEW                             102\n# define BN_F_BN_BLINDING_UPDATE                          103\n# define BN_F_BN_BN2DEC                                   104\n# define BN_F_BN_BN2HEX                                   105\n# define BN_F_BN_COMPUTE_WNAF                             142\n# define BN_F_BN_CTX_GET                                  116\n# define BN_F_BN_CTX_NEW                                  106\n# define BN_F_BN_CTX_START                                129\n# define BN_F_BN_DIV                                      107\n# define BN_F_BN_DIV_RECP                                 130\n# define BN_F_BN_EXP                                      123\n# define BN_F_BN_EXPAND_INTERNAL                          120\n# define BN_F_BN_GENCB_NEW                                143\n# define BN_F_BN_GENERATE_DSA_NONCE                       140\n# define BN_F_BN_GENERATE_PRIME_EX                        141\n# define BN_F_BN_GF2M_MOD                                 131\n# define BN_F_BN_GF2M_MOD_EXP                             132\n# define BN_F_BN_GF2M_MOD_MUL                             133\n# define BN_F_BN_GF2M_MOD_SOLVE_QUAD                      134\n# define BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR                  135\n# define BN_F_BN_GF2M_MOD_SQR                             136\n# define BN_F_BN_GF2M_MOD_SQRT                            137\n# define BN_F_BN_LSHIFT                                   145\n# define BN_F_BN_MOD_EXP2_MONT                            118\n# define BN_F_BN_MOD_EXP_MONT                             109\n# define BN_F_BN_MOD_EXP_MONT_CONSTTIME                   124\n# define BN_F_BN_MOD_EXP_MONT_WORD                        117\n# define BN_F_BN_MOD_EXP_RECP                             125\n# define BN_F_BN_MOD_EXP_SIMPLE                           126\n# define BN_F_BN_MOD_INVERSE                              110\n# define BN_F_BN_MOD_INVERSE_NO_BRANCH                    139\n# define BN_F_BN_MOD_LSHIFT_QUICK                         119\n# define BN_F_BN_MOD_SQRT                                 121\n# define BN_F_BN_MONT_CTX_NEW                             149\n# define BN_F_BN_MPI2BN                                   112\n# define BN_F_BN_NEW                                      113\n# define BN_F_BN_POOL_GET                                 147\n# define BN_F_BN_RAND                                     114\n# define BN_F_BN_RAND_RANGE                               122\n# define BN_F_BN_RECP_CTX_NEW                             150\n# define BN_F_BN_RSHIFT                                   146\n# define BN_F_BN_SET_WORDS                                144\n# define BN_F_BN_STACK_PUSH                               148\n# define BN_F_BN_USUB                                     115\n\n/*\n * BN reason codes.\n */\n# define BN_R_ARG2_LT_ARG3                                100\n# define BN_R_BAD_RECIPROCAL                              101\n# define BN_R_BIGNUM_TOO_LONG                             114\n# define BN_R_BITS_TOO_SMALL                              118\n# define BN_R_CALLED_WITH_EVEN_MODULUS                    102\n# define BN_R_DIV_BY_ZERO                                 103\n# define BN_R_ENCODING_ERROR                              104\n# define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA                105\n# define BN_R_INPUT_NOT_REDUCED                           110\n# define BN_R_INVALID_LENGTH                              106\n# define BN_R_INVALID_RANGE                               115\n# define BN_R_INVALID_SHIFT                               119\n# define BN_R_NOT_A_SQUARE                                111\n# define BN_R_NOT_INITIALIZED                             107\n# define BN_R_NO_INVERSE                                  108\n# define BN_R_NO_SOLUTION                                 116\n# define BN_R_PRIVATE_KEY_TOO_LARGE                       117\n# define BN_R_P_IS_NOT_PRIME                              112\n# define BN_R_TOO_MANY_ITERATIONS                         113\n# define BN_R_TOO_MANY_TEMPORARY_VARIABLES                109\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/buffer.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BUFFER_H\n# define HEADER_BUFFER_H\n\n# include <openssl/ossl_typ.h>\n# ifndef HEADER_CRYPTO_H\n#  include <openssl/crypto.h>\n# endif\n# include <openssl/buffererr.h>\n\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# include <stddef.h>\n# include <sys/types.h>\n\n/*\n * These names are outdated as of OpenSSL 1.1; a future release\n * will move them to be deprecated.\n */\n# define BUF_strdup(s) OPENSSL_strdup(s)\n# define BUF_strndup(s, size) OPENSSL_strndup(s, size)\n# define BUF_memdup(data, size) OPENSSL_memdup(data, size)\n# define BUF_strlcpy(dst, src, size)  OPENSSL_strlcpy(dst, src, size)\n# define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size)\n# define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen)\n\nstruct buf_mem_st {\n    size_t length;              /* current number of bytes */\n    char *data;\n    size_t max;                 /* size of buffer */\n    unsigned long flags;\n};\n\n# define BUF_MEM_FLAG_SECURE  0x01\n\nBUF_MEM *BUF_MEM_new(void);\nBUF_MEM *BUF_MEM_new_ex(unsigned long flags);\nvoid BUF_MEM_free(BUF_MEM *a);\nsize_t BUF_MEM_grow(BUF_MEM *str, size_t len);\nsize_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len);\nvoid BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/buffererr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_BUFERR_H\n# define HEADER_BUFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_BUF_strings(void);\n\n/*\n * BUF function codes.\n */\n# define BUF_F_BUF_MEM_GROW                               100\n# define BUF_F_BUF_MEM_GROW_CLEAN                         105\n# define BUF_F_BUF_MEM_NEW                                101\n\n/*\n * BUF reason codes.\n */\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/camellia.h",
    "content": "/*\n * Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CAMELLIA_H\n# define HEADER_CAMELLIA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CAMELLIA\n# include <stddef.h>\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define CAMELLIA_ENCRYPT        1\n# define CAMELLIA_DECRYPT        0\n\n/*\n * Because array size can't be a const in C, the following two are macros.\n * Both sizes are in bytes.\n */\n\n/* This should be a hidden type, but EVP requires that the size be known */\n\n# define CAMELLIA_BLOCK_SIZE 16\n# define CAMELLIA_TABLE_BYTE_LEN 272\n# define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4)\n\ntypedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; /* to match\n                                                               * with WORD */\n\nstruct camellia_key_st {\n    union {\n        double d;               /* ensures 64-bit align */\n        KEY_TABLE_TYPE rd_key;\n    } u;\n    int grand_rounds;\n};\ntypedef struct camellia_key_st CAMELLIA_KEY;\n\nint Camellia_set_key(const unsigned char *userKey, const int bits,\n                     CAMELLIA_KEY *key);\n\nvoid Camellia_encrypt(const unsigned char *in, unsigned char *out,\n                      const CAMELLIA_KEY *key);\nvoid Camellia_decrypt(const unsigned char *in, unsigned char *out,\n                      const CAMELLIA_KEY *key);\n\nvoid Camellia_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                          const CAMELLIA_KEY *key, const int enc);\nvoid Camellia_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                          size_t length, const CAMELLIA_KEY *key,\n                          unsigned char *ivec, const int enc);\nvoid Camellia_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char *ivec, int *num, const int enc);\nvoid Camellia_cfb1_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t length, const CAMELLIA_KEY *key,\n                           unsigned char *ivec, int *num, const int enc);\nvoid Camellia_cfb8_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t length, const CAMELLIA_KEY *key,\n                           unsigned char *ivec, int *num, const int enc);\nvoid Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char *ivec, int *num);\nvoid Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const CAMELLIA_KEY *key,\n                             unsigned char ivec[CAMELLIA_BLOCK_SIZE],\n                             unsigned char ecount_buf[CAMELLIA_BLOCK_SIZE],\n                             unsigned int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/cast.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CAST_H\n# define HEADER_CAST_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CAST\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define CAST_ENCRYPT    1\n# define CAST_DECRYPT    0\n\n# define CAST_LONG unsigned int\n\n# define CAST_BLOCK      8\n# define CAST_KEY_LENGTH 16\n\ntypedef struct cast_key_st {\n    CAST_LONG data[32];\n    int short_key;              /* Use reduced rounds for short key */\n} CAST_KEY;\n\nvoid CAST_set_key(CAST_KEY *key, int len, const unsigned char *data);\nvoid CAST_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      const CAST_KEY *key, int enc);\nvoid CAST_encrypt(CAST_LONG *data, const CAST_KEY *key);\nvoid CAST_decrypt(CAST_LONG *data, const CAST_KEY *key);\nvoid CAST_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, const CAST_KEY *ks, unsigned char *iv,\n                      int enc);\nvoid CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, const CAST_KEY *schedule,\n                        unsigned char *ivec, int *num, int enc);\nvoid CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, const CAST_KEY *schedule,\n                        unsigned char *ivec, int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/cmac.h",
    "content": "/*\n * Copyright 2010-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMAC_H\n# define HEADER_CMAC_H\n\n# ifndef OPENSSL_NO_CMAC\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# include <openssl/evp.h>\n\n/* Opaque */\ntypedef struct CMAC_CTX_st CMAC_CTX;\n\nCMAC_CTX *CMAC_CTX_new(void);\nvoid CMAC_CTX_cleanup(CMAC_CTX *ctx);\nvoid CMAC_CTX_free(CMAC_CTX *ctx);\nEVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx);\nint CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in);\n\nint CMAC_Init(CMAC_CTX *ctx, const void *key, size_t keylen,\n              const EVP_CIPHER *cipher, ENGINE *impl);\nint CMAC_Update(CMAC_CTX *ctx, const void *data, size_t dlen);\nint CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen);\nint CMAC_resume(CMAC_CTX *ctx);\n\n#ifdef  __cplusplus\n}\n#endif\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/cms.h",
    "content": "/*\n * Copyright 2008-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMS_H\n# define HEADER_CMS_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CMS\n# include <openssl/x509.h>\n# include <openssl/x509v3.h>\n# include <openssl/cmserr.h>\n# ifdef __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct CMS_ContentInfo_st CMS_ContentInfo;\ntypedef struct CMS_SignerInfo_st CMS_SignerInfo;\ntypedef struct CMS_CertificateChoices CMS_CertificateChoices;\ntypedef struct CMS_RevocationInfoChoice_st CMS_RevocationInfoChoice;\ntypedef struct CMS_RecipientInfo_st CMS_RecipientInfo;\ntypedef struct CMS_ReceiptRequest_st CMS_ReceiptRequest;\ntypedef struct CMS_Receipt_st CMS_Receipt;\ntypedef struct CMS_RecipientEncryptedKey_st CMS_RecipientEncryptedKey;\ntypedef struct CMS_OtherKeyAttribute_st CMS_OtherKeyAttribute;\n\nDEFINE_STACK_OF(CMS_SignerInfo)\nDEFINE_STACK_OF(CMS_RecipientEncryptedKey)\nDEFINE_STACK_OF(CMS_RecipientInfo)\nDEFINE_STACK_OF(CMS_RevocationInfoChoice)\nDECLARE_ASN1_FUNCTIONS(CMS_ContentInfo)\nDECLARE_ASN1_FUNCTIONS(CMS_ReceiptRequest)\nDECLARE_ASN1_PRINT_FUNCTION(CMS_ContentInfo)\n\n# define CMS_SIGNERINFO_ISSUER_SERIAL    0\n# define CMS_SIGNERINFO_KEYIDENTIFIER    1\n\n# define CMS_RECIPINFO_NONE              -1\n# define CMS_RECIPINFO_TRANS             0\n# define CMS_RECIPINFO_AGREE             1\n# define CMS_RECIPINFO_KEK               2\n# define CMS_RECIPINFO_PASS              3\n# define CMS_RECIPINFO_OTHER             4\n\n/* S/MIME related flags */\n\n# define CMS_TEXT                        0x1\n# define CMS_NOCERTS                     0x2\n# define CMS_NO_CONTENT_VERIFY           0x4\n# define CMS_NO_ATTR_VERIFY              0x8\n# define CMS_NOSIGS                      \\\n                        (CMS_NO_CONTENT_VERIFY|CMS_NO_ATTR_VERIFY)\n# define CMS_NOINTERN                    0x10\n# define CMS_NO_SIGNER_CERT_VERIFY       0x20\n# define CMS_NOVERIFY                    0x20\n# define CMS_DETACHED                    0x40\n# define CMS_BINARY                      0x80\n# define CMS_NOATTR                      0x100\n# define CMS_NOSMIMECAP                  0x200\n# define CMS_NOOLDMIMETYPE               0x400\n# define CMS_CRLFEOL                     0x800\n# define CMS_STREAM                      0x1000\n# define CMS_NOCRL                       0x2000\n# define CMS_PARTIAL                     0x4000\n# define CMS_REUSE_DIGEST                0x8000\n# define CMS_USE_KEYID                   0x10000\n# define CMS_DEBUG_DECRYPT               0x20000\n# define CMS_KEY_PARAM                   0x40000\n# define CMS_ASCIICRLF                   0x80000\n\nconst ASN1_OBJECT *CMS_get0_type(const CMS_ContentInfo *cms);\n\nBIO *CMS_dataInit(CMS_ContentInfo *cms, BIO *icont);\nint CMS_dataFinal(CMS_ContentInfo *cms, BIO *bio);\n\nASN1_OCTET_STRING **CMS_get0_content(CMS_ContentInfo *cms);\nint CMS_is_detached(CMS_ContentInfo *cms);\nint CMS_set_detached(CMS_ContentInfo *cms, int detached);\n\n# ifdef HEADER_PEM_H\nDECLARE_PEM_rw_const(CMS, CMS_ContentInfo)\n# endif\nint CMS_stream(unsigned char ***boundary, CMS_ContentInfo *cms);\nCMS_ContentInfo *d2i_CMS_bio(BIO *bp, CMS_ContentInfo **cms);\nint i2d_CMS_bio(BIO *bp, CMS_ContentInfo *cms);\n\nBIO *BIO_new_CMS(BIO *out, CMS_ContentInfo *cms);\nint i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags);\nint PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in,\n                             int flags);\nCMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont);\nint SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags);\n\nint CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont,\n              unsigned int flags);\n\nCMS_ContentInfo *CMS_sign(X509 *signcert, EVP_PKEY *pkey,\n                          STACK_OF(X509) *certs, BIO *data,\n                          unsigned int flags);\n\nCMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si,\n                                  X509 *signcert, EVP_PKEY *pkey,\n                                  STACK_OF(X509) *certs, unsigned int flags);\n\nint CMS_data(CMS_ContentInfo *cms, BIO *out, unsigned int flags);\nCMS_ContentInfo *CMS_data_create(BIO *in, unsigned int flags);\n\nint CMS_digest_verify(CMS_ContentInfo *cms, BIO *dcont, BIO *out,\n                      unsigned int flags);\nCMS_ContentInfo *CMS_digest_create(BIO *in, const EVP_MD *md,\n                                   unsigned int flags);\n\nint CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,\n                              const unsigned char *key, size_t keylen,\n                              BIO *dcont, BIO *out, unsigned int flags);\n\nCMS_ContentInfo *CMS_EncryptedData_encrypt(BIO *in, const EVP_CIPHER *cipher,\n                                           const unsigned char *key,\n                                           size_t keylen, unsigned int flags);\n\nint CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,\n                               const unsigned char *key, size_t keylen);\n\nint CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs,\n               X509_STORE *store, BIO *dcont, BIO *out, unsigned int flags);\n\nint CMS_verify_receipt(CMS_ContentInfo *rcms, CMS_ContentInfo *ocms,\n                       STACK_OF(X509) *certs,\n                       X509_STORE *store, unsigned int flags);\n\nSTACK_OF(X509) *CMS_get0_signers(CMS_ContentInfo *cms);\n\nCMS_ContentInfo *CMS_encrypt(STACK_OF(X509) *certs, BIO *in,\n                             const EVP_CIPHER *cipher, unsigned int flags);\n\nint CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert,\n                BIO *dcont, BIO *out, unsigned int flags);\n\nint CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert);\nint CMS_decrypt_set1_key(CMS_ContentInfo *cms,\n                         unsigned char *key, size_t keylen,\n                         const unsigned char *id, size_t idlen);\nint CMS_decrypt_set1_password(CMS_ContentInfo *cms,\n                              unsigned char *pass, ossl_ssize_t passlen);\n\nSTACK_OF(CMS_RecipientInfo) *CMS_get0_RecipientInfos(CMS_ContentInfo *cms);\nint CMS_RecipientInfo_type(CMS_RecipientInfo *ri);\nEVP_PKEY_CTX *CMS_RecipientInfo_get0_pkey_ctx(CMS_RecipientInfo *ri);\nCMS_ContentInfo *CMS_EnvelopedData_create(const EVP_CIPHER *cipher);\nCMS_RecipientInfo *CMS_add1_recipient_cert(CMS_ContentInfo *cms,\n                                           X509 *recip, unsigned int flags);\nint CMS_RecipientInfo_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pkey);\nint CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert);\nint CMS_RecipientInfo_ktri_get0_algs(CMS_RecipientInfo *ri,\n                                     EVP_PKEY **pk, X509 **recip,\n                                     X509_ALGOR **palg);\nint CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri,\n                                          ASN1_OCTET_STRING **keyid,\n                                          X509_NAME **issuer,\n                                          ASN1_INTEGER **sno);\n\nCMS_RecipientInfo *CMS_add0_recipient_key(CMS_ContentInfo *cms, int nid,\n                                          unsigned char *key, size_t keylen,\n                                          unsigned char *id, size_t idlen,\n                                          ASN1_GENERALIZEDTIME *date,\n                                          ASN1_OBJECT *otherTypeId,\n                                          ASN1_TYPE *otherType);\n\nint CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri,\n                                    X509_ALGOR **palg,\n                                    ASN1_OCTET_STRING **pid,\n                                    ASN1_GENERALIZEDTIME **pdate,\n                                    ASN1_OBJECT **potherid,\n                                    ASN1_TYPE **pothertype);\n\nint CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri,\n                               unsigned char *key, size_t keylen);\n\nint CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri,\n                                   const unsigned char *id, size_t idlen);\n\nint CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri,\n                                    unsigned char *pass,\n                                    ossl_ssize_t passlen);\n\nCMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms,\n                                               int iter, int wrap_nid,\n                                               int pbe_nid,\n                                               unsigned char *pass,\n                                               ossl_ssize_t passlen,\n                                               const EVP_CIPHER *kekciph);\n\nint CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);\nint CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);\n\nint CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out,\n                   unsigned int flags);\nCMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);\n\nint CMS_set1_eContentType(CMS_ContentInfo *cms, const ASN1_OBJECT *oid);\nconst ASN1_OBJECT *CMS_get0_eContentType(CMS_ContentInfo *cms);\n\nCMS_CertificateChoices *CMS_add0_CertificateChoices(CMS_ContentInfo *cms);\nint CMS_add0_cert(CMS_ContentInfo *cms, X509 *cert);\nint CMS_add1_cert(CMS_ContentInfo *cms, X509 *cert);\nSTACK_OF(X509) *CMS_get1_certs(CMS_ContentInfo *cms);\n\nCMS_RevocationInfoChoice *CMS_add0_RevocationInfoChoice(CMS_ContentInfo *cms);\nint CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);\nint CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);\nSTACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);\n\nint CMS_SignedData_init(CMS_ContentInfo *cms);\nCMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *cms,\n                                X509 *signer, EVP_PKEY *pk, const EVP_MD *md,\n                                unsigned int flags);\nEVP_PKEY_CTX *CMS_SignerInfo_get0_pkey_ctx(CMS_SignerInfo *si);\nEVP_MD_CTX *CMS_SignerInfo_get0_md_ctx(CMS_SignerInfo *si);\nSTACK_OF(CMS_SignerInfo) *CMS_get0_SignerInfos(CMS_ContentInfo *cms);\n\nvoid CMS_SignerInfo_set1_signer_cert(CMS_SignerInfo *si, X509 *signer);\nint CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si,\n                                  ASN1_OCTET_STRING **keyid,\n                                  X509_NAME **issuer, ASN1_INTEGER **sno);\nint CMS_SignerInfo_cert_cmp(CMS_SignerInfo *si, X509 *cert);\nint CMS_set1_signers_certs(CMS_ContentInfo *cms, STACK_OF(X509) *certs,\n                           unsigned int flags);\nvoid CMS_SignerInfo_get0_algs(CMS_SignerInfo *si, EVP_PKEY **pk,\n                              X509 **signer, X509_ALGOR **pdig,\n                              X509_ALGOR **psig);\nASN1_OCTET_STRING *CMS_SignerInfo_get0_signature(CMS_SignerInfo *si);\nint CMS_SignerInfo_sign(CMS_SignerInfo *si);\nint CMS_SignerInfo_verify(CMS_SignerInfo *si);\nint CMS_SignerInfo_verify_content(CMS_SignerInfo *si, BIO *chain);\n\nint CMS_add_smimecap(CMS_SignerInfo *si, STACK_OF(X509_ALGOR) *algs);\nint CMS_add_simple_smimecap(STACK_OF(X509_ALGOR) **algs,\n                            int algnid, int keysize);\nint CMS_add_standard_smimecap(STACK_OF(X509_ALGOR) **smcap);\n\nint CMS_signed_get_attr_count(const CMS_SignerInfo *si);\nint CMS_signed_get_attr_by_NID(const CMS_SignerInfo *si, int nid,\n                               int lastpos);\nint CMS_signed_get_attr_by_OBJ(const CMS_SignerInfo *si, const ASN1_OBJECT *obj,\n                               int lastpos);\nX509_ATTRIBUTE *CMS_signed_get_attr(const CMS_SignerInfo *si, int loc);\nX509_ATTRIBUTE *CMS_signed_delete_attr(CMS_SignerInfo *si, int loc);\nint CMS_signed_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);\nint CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si,\n                                const ASN1_OBJECT *obj, int type,\n                                const void *bytes, int len);\nint CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si,\n                                int nid, int type,\n                                const void *bytes, int len);\nint CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si,\n                                const char *attrname, int type,\n                                const void *bytes, int len);\nvoid *CMS_signed_get0_data_by_OBJ(CMS_SignerInfo *si, const ASN1_OBJECT *oid,\n                                  int lastpos, int type);\n\nint CMS_unsigned_get_attr_count(const CMS_SignerInfo *si);\nint CMS_unsigned_get_attr_by_NID(const CMS_SignerInfo *si, int nid,\n                                 int lastpos);\nint CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si,\n                                 const ASN1_OBJECT *obj, int lastpos);\nX509_ATTRIBUTE *CMS_unsigned_get_attr(const CMS_SignerInfo *si, int loc);\nX509_ATTRIBUTE *CMS_unsigned_delete_attr(CMS_SignerInfo *si, int loc);\nint CMS_unsigned_add1_attr(CMS_SignerInfo *si, X509_ATTRIBUTE *attr);\nint CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si,\n                                  const ASN1_OBJECT *obj, int type,\n                                  const void *bytes, int len);\nint CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si,\n                                  int nid, int type,\n                                  const void *bytes, int len);\nint CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si,\n                                  const char *attrname, int type,\n                                  const void *bytes, int len);\nvoid *CMS_unsigned_get0_data_by_OBJ(CMS_SignerInfo *si, ASN1_OBJECT *oid,\n                                    int lastpos, int type);\n\nint CMS_get1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest **prr);\nCMS_ReceiptRequest *CMS_ReceiptRequest_create0(unsigned char *id, int idlen,\n                                               int allorfirst,\n                                               STACK_OF(GENERAL_NAMES)\n                                               *receiptList, STACK_OF(GENERAL_NAMES)\n                                               *receiptsTo);\nint CMS_add1_ReceiptRequest(CMS_SignerInfo *si, CMS_ReceiptRequest *rr);\nvoid CMS_ReceiptRequest_get0_values(CMS_ReceiptRequest *rr,\n                                    ASN1_STRING **pcid,\n                                    int *pallorfirst,\n                                    STACK_OF(GENERAL_NAMES) **plist,\n                                    STACK_OF(GENERAL_NAMES) **prto);\nint CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,\n                                    X509_ALGOR **palg,\n                                    ASN1_OCTET_STRING **pukm);\nSTACK_OF(CMS_RecipientEncryptedKey)\n*CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri);\n\nint CMS_RecipientInfo_kari_get0_orig_id(CMS_RecipientInfo *ri,\n                                        X509_ALGOR **pubalg,\n                                        ASN1_BIT_STRING **pubkey,\n                                        ASN1_OCTET_STRING **keyid,\n                                        X509_NAME **issuer,\n                                        ASN1_INTEGER **sno);\n\nint CMS_RecipientInfo_kari_orig_id_cmp(CMS_RecipientInfo *ri, X509 *cert);\n\nint CMS_RecipientEncryptedKey_get0_id(CMS_RecipientEncryptedKey *rek,\n                                      ASN1_OCTET_STRING **keyid,\n                                      ASN1_GENERALIZEDTIME **tm,\n                                      CMS_OtherKeyAttribute **other,\n                                      X509_NAME **issuer, ASN1_INTEGER **sno);\nint CMS_RecipientEncryptedKey_cert_cmp(CMS_RecipientEncryptedKey *rek,\n                                       X509 *cert);\nint CMS_RecipientInfo_kari_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pk);\nEVP_CIPHER_CTX *CMS_RecipientInfo_kari_get0_ctx(CMS_RecipientInfo *ri);\nint CMS_RecipientInfo_kari_decrypt(CMS_ContentInfo *cms,\n                                   CMS_RecipientInfo *ri,\n                                   CMS_RecipientEncryptedKey *rek);\n\nint CMS_SharedInfo_encode(unsigned char **pder, X509_ALGOR *kekalg,\n                          ASN1_OCTET_STRING *ukm, int keylen);\n\n/* Backward compatibility for spelling errors. */\n# define CMS_R_UNKNOWN_DIGEST_ALGORITM CMS_R_UNKNOWN_DIGEST_ALGORITHM\n# define CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE \\\n    CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/cmserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CMSERR_H\n# define HEADER_CMSERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CMS\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_CMS_strings(void);\n\n/*\n * CMS function codes.\n */\n#  define CMS_F_CHECK_CONTENT                              99\n#  define CMS_F_CMS_ADD0_CERT                              164\n#  define CMS_F_CMS_ADD0_RECIPIENT_KEY                     100\n#  define CMS_F_CMS_ADD0_RECIPIENT_PASSWORD                165\n#  define CMS_F_CMS_ADD1_RECEIPTREQUEST                    158\n#  define CMS_F_CMS_ADD1_RECIPIENT_CERT                    101\n#  define CMS_F_CMS_ADD1_SIGNER                            102\n#  define CMS_F_CMS_ADD1_SIGNINGTIME                       103\n#  define CMS_F_CMS_COMPRESS                               104\n#  define CMS_F_CMS_COMPRESSEDDATA_CREATE                  105\n#  define CMS_F_CMS_COMPRESSEDDATA_INIT_BIO                106\n#  define CMS_F_CMS_COPY_CONTENT                           107\n#  define CMS_F_CMS_COPY_MESSAGEDIGEST                     108\n#  define CMS_F_CMS_DATA                                   109\n#  define CMS_F_CMS_DATAFINAL                              110\n#  define CMS_F_CMS_DATAINIT                               111\n#  define CMS_F_CMS_DECRYPT                                112\n#  define CMS_F_CMS_DECRYPT_SET1_KEY                       113\n#  define CMS_F_CMS_DECRYPT_SET1_PASSWORD                  166\n#  define CMS_F_CMS_DECRYPT_SET1_PKEY                      114\n#  define CMS_F_CMS_DIGESTALGORITHM_FIND_CTX               115\n#  define CMS_F_CMS_DIGESTALGORITHM_INIT_BIO               116\n#  define CMS_F_CMS_DIGESTEDDATA_DO_FINAL                  117\n#  define CMS_F_CMS_DIGEST_VERIFY                          118\n#  define CMS_F_CMS_ENCODE_RECEIPT                         161\n#  define CMS_F_CMS_ENCRYPT                                119\n#  define CMS_F_CMS_ENCRYPTEDCONTENT_INIT                  179\n#  define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO              120\n#  define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT                  121\n#  define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT                  122\n#  define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY                 123\n#  define CMS_F_CMS_ENVELOPEDDATA_CREATE                   124\n#  define CMS_F_CMS_ENVELOPEDDATA_INIT_BIO                 125\n#  define CMS_F_CMS_ENVELOPED_DATA_INIT                    126\n#  define CMS_F_CMS_ENV_ASN1_CTRL                          171\n#  define CMS_F_CMS_FINAL                                  127\n#  define CMS_F_CMS_GET0_CERTIFICATE_CHOICES               128\n#  define CMS_F_CMS_GET0_CONTENT                           129\n#  define CMS_F_CMS_GET0_ECONTENT_TYPE                     130\n#  define CMS_F_CMS_GET0_ENVELOPED                         131\n#  define CMS_F_CMS_GET0_REVOCATION_CHOICES                132\n#  define CMS_F_CMS_GET0_SIGNED                            133\n#  define CMS_F_CMS_MSGSIGDIGEST_ADD1                      162\n#  define CMS_F_CMS_RECEIPTREQUEST_CREATE0                 159\n#  define CMS_F_CMS_RECEIPT_VERIFY                         160\n#  define CMS_F_CMS_RECIPIENTINFO_DECRYPT                  134\n#  define CMS_F_CMS_RECIPIENTINFO_ENCRYPT                  169\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT             178\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG            175\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID        173\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS           172\n#  define CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP         174\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT            135\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT            136\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID            137\n#  define CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP             138\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP            139\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT             140\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT             141\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS           142\n#  define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID      143\n#  define CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT               167\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_KEY                 144\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD            168\n#  define CMS_F_CMS_RECIPIENTINFO_SET0_PKEY                145\n#  define CMS_F_CMS_SD_ASN1_CTRL                           170\n#  define CMS_F_CMS_SET1_IAS                               176\n#  define CMS_F_CMS_SET1_KEYID                             177\n#  define CMS_F_CMS_SET1_SIGNERIDENTIFIER                  146\n#  define CMS_F_CMS_SET_DETACHED                           147\n#  define CMS_F_CMS_SIGN                                   148\n#  define CMS_F_CMS_SIGNED_DATA_INIT                       149\n#  define CMS_F_CMS_SIGNERINFO_CONTENT_SIGN                150\n#  define CMS_F_CMS_SIGNERINFO_SIGN                        151\n#  define CMS_F_CMS_SIGNERINFO_VERIFY                      152\n#  define CMS_F_CMS_SIGNERINFO_VERIFY_CERT                 153\n#  define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT              154\n#  define CMS_F_CMS_SIGN_RECEIPT                           163\n#  define CMS_F_CMS_SI_CHECK_ATTRIBUTES                    183\n#  define CMS_F_CMS_STREAM                                 155\n#  define CMS_F_CMS_UNCOMPRESS                             156\n#  define CMS_F_CMS_VERIFY                                 157\n#  define CMS_F_KEK_UNWRAP_KEY                             180\n\n/*\n * CMS reason codes.\n */\n#  define CMS_R_ADD_SIGNER_ERROR                           99\n#  define CMS_R_ATTRIBUTE_ERROR                            161\n#  define CMS_R_CERTIFICATE_ALREADY_PRESENT                175\n#  define CMS_R_CERTIFICATE_HAS_NO_KEYID                   160\n#  define CMS_R_CERTIFICATE_VERIFY_ERROR                   100\n#  define CMS_R_CIPHER_INITIALISATION_ERROR                101\n#  define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR      102\n#  define CMS_R_CMS_DATAFINAL_ERROR                        103\n#  define CMS_R_CMS_LIB                                    104\n#  define CMS_R_CONTENTIDENTIFIER_MISMATCH                 170\n#  define CMS_R_CONTENT_NOT_FOUND                          105\n#  define CMS_R_CONTENT_TYPE_MISMATCH                      171\n#  define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA           106\n#  define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA            107\n#  define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA               108\n#  define CMS_R_CONTENT_VERIFY_ERROR                       109\n#  define CMS_R_CTRL_ERROR                                 110\n#  define CMS_R_CTRL_FAILURE                               111\n#  define CMS_R_DECRYPT_ERROR                              112\n#  define CMS_R_ERROR_GETTING_PUBLIC_KEY                   113\n#  define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE      114\n#  define CMS_R_ERROR_SETTING_KEY                          115\n#  define CMS_R_ERROR_SETTING_RECIPIENTINFO                116\n#  define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH               117\n#  define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER           176\n#  define CMS_R_INVALID_KEY_LENGTH                         118\n#  define CMS_R_MD_BIO_INIT_ERROR                          119\n#  define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH       120\n#  define CMS_R_MESSAGEDIGEST_WRONG_LENGTH                 121\n#  define CMS_R_MSGSIGDIGEST_ERROR                         172\n#  define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE          162\n#  define CMS_R_MSGSIGDIGEST_WRONG_LENGTH                  163\n#  define CMS_R_NEED_ONE_SIGNER                            164\n#  define CMS_R_NOT_A_SIGNED_RECEIPT                       165\n#  define CMS_R_NOT_ENCRYPTED_DATA                         122\n#  define CMS_R_NOT_KEK                                    123\n#  define CMS_R_NOT_KEY_AGREEMENT                          181\n#  define CMS_R_NOT_KEY_TRANSPORT                          124\n#  define CMS_R_NOT_PWRI                                   177\n#  define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE            125\n#  define CMS_R_NO_CIPHER                                  126\n#  define CMS_R_NO_CONTENT                                 127\n#  define CMS_R_NO_CONTENT_TYPE                            173\n#  define CMS_R_NO_DEFAULT_DIGEST                          128\n#  define CMS_R_NO_DIGEST_SET                              129\n#  define CMS_R_NO_KEY                                     130\n#  define CMS_R_NO_KEY_OR_CERT                             174\n#  define CMS_R_NO_MATCHING_DIGEST                         131\n#  define CMS_R_NO_MATCHING_RECIPIENT                      132\n#  define CMS_R_NO_MATCHING_SIGNATURE                      166\n#  define CMS_R_NO_MSGSIGDIGEST                            167\n#  define CMS_R_NO_PASSWORD                                178\n#  define CMS_R_NO_PRIVATE_KEY                             133\n#  define CMS_R_NO_PUBLIC_KEY                              134\n#  define CMS_R_NO_RECEIPT_REQUEST                         168\n#  define CMS_R_NO_SIGNERS                                 135\n#  define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE     136\n#  define CMS_R_RECEIPT_DECODE_ERROR                       169\n#  define CMS_R_RECIPIENT_ERROR                            137\n#  define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND               138\n#  define CMS_R_SIGNFINAL_ERROR                            139\n#  define CMS_R_SMIME_TEXT_ERROR                           140\n#  define CMS_R_STORE_INIT_ERROR                           141\n#  define CMS_R_TYPE_NOT_COMPRESSED_DATA                   142\n#  define CMS_R_TYPE_NOT_DATA                              143\n#  define CMS_R_TYPE_NOT_DIGESTED_DATA                     144\n#  define CMS_R_TYPE_NOT_ENCRYPTED_DATA                    145\n#  define CMS_R_TYPE_NOT_ENVELOPED_DATA                    146\n#  define CMS_R_UNABLE_TO_FINALIZE_CONTEXT                 147\n#  define CMS_R_UNKNOWN_CIPHER                             148\n#  define CMS_R_UNKNOWN_DIGEST_ALGORITHM                   149\n#  define CMS_R_UNKNOWN_ID                                 150\n#  define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM          151\n#  define CMS_R_UNSUPPORTED_CONTENT_TYPE                   152\n#  define CMS_R_UNSUPPORTED_KEK_ALGORITHM                  153\n#  define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM       179\n#  define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE             155\n#  define CMS_R_UNSUPPORTED_RECIPIENT_TYPE                 154\n#  define CMS_R_UNSUPPORTED_TYPE                           156\n#  define CMS_R_UNWRAP_ERROR                               157\n#  define CMS_R_UNWRAP_FAILURE                             180\n#  define CMS_R_VERIFICATION_FAILURE                       158\n#  define CMS_R_WRAP_ERROR                                 159\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/comp.h",
    "content": "/*\n * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_COMP_H\n# define HEADER_COMP_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_COMP\n# include <openssl/crypto.h>\n# include <openssl/comperr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n\n\nCOMP_CTX *COMP_CTX_new(COMP_METHOD *meth);\nconst COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx);\nint COMP_CTX_get_type(const COMP_CTX* comp);\nint COMP_get_type(const COMP_METHOD *meth);\nconst char *COMP_get_name(const COMP_METHOD *meth);\nvoid COMP_CTX_free(COMP_CTX *ctx);\n\nint COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen,\n                        unsigned char *in, int ilen);\nint COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen,\n                      unsigned char *in, int ilen);\n\nCOMP_METHOD *COMP_zlib(void);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n#define COMP_zlib_cleanup() while(0) continue\n#endif\n\n# ifdef HEADER_BIO_H\n#  ifdef ZLIB\nconst BIO_METHOD *BIO_f_zlib(void);\n#  endif\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/comperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_COMPERR_H\n# define HEADER_COMPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_COMP\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_COMP_strings(void);\n\n/*\n * COMP function codes.\n */\n#  define COMP_F_BIO_ZLIB_FLUSH                            99\n#  define COMP_F_BIO_ZLIB_NEW                              100\n#  define COMP_F_BIO_ZLIB_READ                             101\n#  define COMP_F_BIO_ZLIB_WRITE                            102\n#  define COMP_F_COMP_CTX_NEW                              103\n\n/*\n * COMP reason codes.\n */\n#  define COMP_R_ZLIB_DEFLATE_ERROR                        99\n#  define COMP_R_ZLIB_INFLATE_ERROR                        100\n#  define COMP_R_ZLIB_NOT_SUPPORTED                        101\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/conf.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef  HEADER_CONF_H\n# define HEADER_CONF_H\n\n# include <openssl/bio.h>\n# include <openssl/lhash.h>\n# include <openssl/safestack.h>\n# include <openssl/e_os2.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/conferr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct {\n    char *section;\n    char *name;\n    char *value;\n} CONF_VALUE;\n\nDEFINE_STACK_OF(CONF_VALUE)\nDEFINE_LHASH_OF(CONF_VALUE);\n\nstruct conf_st;\nstruct conf_method_st;\ntypedef struct conf_method_st CONF_METHOD;\n\nstruct conf_method_st {\n    const char *name;\n    CONF *(*create) (CONF_METHOD *meth);\n    int (*init) (CONF *conf);\n    int (*destroy) (CONF *conf);\n    int (*destroy_data) (CONF *conf);\n    int (*load_bio) (CONF *conf, BIO *bp, long *eline);\n    int (*dump) (const CONF *conf, BIO *bp);\n    int (*is_number) (const CONF *conf, char c);\n    int (*to_int) (const CONF *conf, char c);\n    int (*load) (CONF *conf, const char *name, long *eline);\n};\n\n/* Module definitions */\n\ntypedef struct conf_imodule_st CONF_IMODULE;\ntypedef struct conf_module_st CONF_MODULE;\n\nDEFINE_STACK_OF(CONF_MODULE)\nDEFINE_STACK_OF(CONF_IMODULE)\n\n/* DSO module function typedefs */\ntypedef int conf_init_func (CONF_IMODULE *md, const CONF *cnf);\ntypedef void conf_finish_func (CONF_IMODULE *md);\n\n# define CONF_MFLAGS_IGNORE_ERRORS       0x1\n# define CONF_MFLAGS_IGNORE_RETURN_CODES 0x2\n# define CONF_MFLAGS_SILENT              0x4\n# define CONF_MFLAGS_NO_DSO              0x8\n# define CONF_MFLAGS_IGNORE_MISSING_FILE 0x10\n# define CONF_MFLAGS_DEFAULT_SECTION     0x20\n\nint CONF_set_default_method(CONF_METHOD *meth);\nvoid CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash);\nLHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file,\n                                long *eline);\n# ifndef OPENSSL_NO_STDIO\nLHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,\n                                   long *eline);\n# endif\nLHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp,\n                                    long *eline);\nSTACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf,\n                                       const char *section);\nchar *CONF_get_string(LHASH_OF(CONF_VALUE) *conf, const char *group,\n                      const char *name);\nlong CONF_get_number(LHASH_OF(CONF_VALUE) *conf, const char *group,\n                     const char *name);\nvoid CONF_free(LHASH_OF(CONF_VALUE) *conf);\n#ifndef OPENSSL_NO_STDIO\nint CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out);\n#endif\nint CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out);\n\nDEPRECATEDIN_1_1_0(void OPENSSL_config(const char *config_name))\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define OPENSSL_no_config() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_NO_LOAD_CONFIG, NULL)\n#endif\n\n/*\n * New conf code.  The semantics are different from the functions above. If\n * that wasn't the case, the above functions would have been replaced\n */\n\nstruct conf_st {\n    CONF_METHOD *meth;\n    void *meth_data;\n    LHASH_OF(CONF_VALUE) *data;\n};\n\nCONF *NCONF_new(CONF_METHOD *meth);\nCONF_METHOD *NCONF_default(void);\nCONF_METHOD *NCONF_WIN32(void);\nvoid NCONF_free(CONF *conf);\nvoid NCONF_free_data(CONF *conf);\n\nint NCONF_load(CONF *conf, const char *file, long *eline);\n# ifndef OPENSSL_NO_STDIO\nint NCONF_load_fp(CONF *conf, FILE *fp, long *eline);\n# endif\nint NCONF_load_bio(CONF *conf, BIO *bp, long *eline);\nSTACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf,\n                                        const char *section);\nchar *NCONF_get_string(const CONF *conf, const char *group, const char *name);\nint NCONF_get_number_e(const CONF *conf, const char *group, const char *name,\n                       long *result);\n#ifndef OPENSSL_NO_STDIO\nint NCONF_dump_fp(const CONF *conf, FILE *out);\n#endif\nint NCONF_dump_bio(const CONF *conf, BIO *out);\n\n#define NCONF_get_number(c,g,n,r) NCONF_get_number_e(c,g,n,r)\n\n/* Module functions */\n\nint CONF_modules_load(const CONF *cnf, const char *appname,\n                      unsigned long flags);\nint CONF_modules_load_file(const char *filename, const char *appname,\n                           unsigned long flags);\nvoid CONF_modules_unload(int all);\nvoid CONF_modules_finish(void);\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define CONF_modules_free() while(0) continue\n#endif\nint CONF_module_add(const char *name, conf_init_func *ifunc,\n                    conf_finish_func *ffunc);\n\nconst char *CONF_imodule_get_name(const CONF_IMODULE *md);\nconst char *CONF_imodule_get_value(const CONF_IMODULE *md);\nvoid *CONF_imodule_get_usr_data(const CONF_IMODULE *md);\nvoid CONF_imodule_set_usr_data(CONF_IMODULE *md, void *usr_data);\nCONF_MODULE *CONF_imodule_get_module(const CONF_IMODULE *md);\nunsigned long CONF_imodule_get_flags(const CONF_IMODULE *md);\nvoid CONF_imodule_set_flags(CONF_IMODULE *md, unsigned long flags);\nvoid *CONF_module_get_usr_data(CONF_MODULE *pmod);\nvoid CONF_module_set_usr_data(CONF_MODULE *pmod, void *usr_data);\n\nchar *CONF_get1_default_config_file(void);\n\nint CONF_parse_list(const char *list, int sep, int nospc,\n                    int (*list_cb) (const char *elem, int len, void *usr),\n                    void *arg);\n\nvoid OPENSSL_load_builtin_modules(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/conf_api.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef  HEADER_CONF_API_H\n# define HEADER_CONF_API_H\n\n# include <openssl/lhash.h>\n# include <openssl/conf.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Up until OpenSSL 0.9.5a, this was new_section */\nCONF_VALUE *_CONF_new_section(CONF *conf, const char *section);\n/* Up until OpenSSL 0.9.5a, this was get_section */\nCONF_VALUE *_CONF_get_section(const CONF *conf, const char *section);\n/* Up until OpenSSL 0.9.5a, this was CONF_get_section */\nSTACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf,\n                                               const char *section);\n\nint _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value);\nchar *_CONF_get_string(const CONF *conf, const char *section,\n                       const char *name);\nlong _CONF_get_number(const CONF *conf, const char *section,\n                      const char *name);\n\nint _CONF_new_data(CONF *conf);\nvoid _CONF_free_data(CONF *conf);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/conferr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CONFERR_H\n# define HEADER_CONFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_CONF_strings(void);\n\n/*\n * CONF function codes.\n */\n# define CONF_F_CONF_DUMP_FP                              104\n# define CONF_F_CONF_LOAD                                 100\n# define CONF_F_CONF_LOAD_FP                              103\n# define CONF_F_CONF_PARSE_LIST                           119\n# define CONF_F_DEF_LOAD                                  120\n# define CONF_F_DEF_LOAD_BIO                              121\n# define CONF_F_GET_NEXT_FILE                             107\n# define CONF_F_MODULE_ADD                                122\n# define CONF_F_MODULE_INIT                               115\n# define CONF_F_MODULE_LOAD_DSO                           117\n# define CONF_F_MODULE_RUN                                118\n# define CONF_F_NCONF_DUMP_BIO                            105\n# define CONF_F_NCONF_DUMP_FP                             106\n# define CONF_F_NCONF_GET_NUMBER_E                        112\n# define CONF_F_NCONF_GET_SECTION                         108\n# define CONF_F_NCONF_GET_STRING                          109\n# define CONF_F_NCONF_LOAD                                113\n# define CONF_F_NCONF_LOAD_BIO                            110\n# define CONF_F_NCONF_LOAD_FP                             114\n# define CONF_F_NCONF_NEW                                 111\n# define CONF_F_PROCESS_INCLUDE                           116\n# define CONF_F_SSL_MODULE_INIT                           123\n# define CONF_F_STR_COPY                                  101\n\n/*\n * CONF reason codes.\n */\n# define CONF_R_ERROR_LOADING_DSO                         110\n# define CONF_R_LIST_CANNOT_BE_NULL                       115\n# define CONF_R_MISSING_CLOSE_SQUARE_BRACKET              100\n# define CONF_R_MISSING_EQUAL_SIGN                        101\n# define CONF_R_MISSING_INIT_FUNCTION                     112\n# define CONF_R_MODULE_INITIALIZATION_ERROR               109\n# define CONF_R_NO_CLOSE_BRACE                            102\n# define CONF_R_NO_CONF                                   105\n# define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE           106\n# define CONF_R_NO_SECTION                                107\n# define CONF_R_NO_SUCH_FILE                              114\n# define CONF_R_NO_VALUE                                  108\n# define CONF_R_NUMBER_TOO_LARGE                          121\n# define CONF_R_RECURSIVE_DIRECTORY_INCLUDE               111\n# define CONF_R_SSL_COMMAND_SECTION_EMPTY                 117\n# define CONF_R_SSL_COMMAND_SECTION_NOT_FOUND             118\n# define CONF_R_SSL_SECTION_EMPTY                         119\n# define CONF_R_SSL_SECTION_NOT_FOUND                     120\n# define CONF_R_UNABLE_TO_CREATE_NEW_SECTION              103\n# define CONF_R_UNKNOWN_MODULE_NAME                       113\n# define CONF_R_VARIABLE_EXPANSION_TOO_LONG               116\n# define CONF_R_VARIABLE_HAS_NO_VALUE                     104\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/crypto.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CRYPTO_H\n# define HEADER_CRYPTO_H\n\n# include <stdlib.h>\n# include <time.h>\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n# endif\n\n# include <openssl/safestack.h>\n# include <openssl/opensslv.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/opensslconf.h>\n# include <openssl/cryptoerr.h>\n\n# ifdef CHARSET_EBCDIC\n#  include <openssl/ebcdic.h>\n# endif\n\n/*\n * Resolve problems on some operating systems with symbol names that clash\n * one way or another\n */\n# include <openssl/symhacks.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/opensslv.h>\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSLeay                  OpenSSL_version_num\n#  define SSLeay_version          OpenSSL_version\n#  define SSLEAY_VERSION_NUMBER   OPENSSL_VERSION_NUMBER\n#  define SSLEAY_VERSION          OPENSSL_VERSION\n#  define SSLEAY_CFLAGS           OPENSSL_CFLAGS\n#  define SSLEAY_BUILT_ON         OPENSSL_BUILT_ON\n#  define SSLEAY_PLATFORM         OPENSSL_PLATFORM\n#  define SSLEAY_DIR              OPENSSL_DIR\n\n/*\n * Old type for allocating dynamic locks. No longer used. Use the new thread\n * API instead.\n */\ntypedef struct {\n    int dummy;\n} CRYPTO_dynlock;\n\n# endif /* OPENSSL_API_COMPAT */\n\ntypedef void CRYPTO_RWLOCK;\n\nCRYPTO_RWLOCK *CRYPTO_THREAD_lock_new(void);\nint CRYPTO_THREAD_read_lock(CRYPTO_RWLOCK *lock);\nint CRYPTO_THREAD_write_lock(CRYPTO_RWLOCK *lock);\nint CRYPTO_THREAD_unlock(CRYPTO_RWLOCK *lock);\nvoid CRYPTO_THREAD_lock_free(CRYPTO_RWLOCK *lock);\n\nint CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock);\n\n/*\n * The following can be used to detect memory leaks in the library. If\n * used, it turns on malloc checking\n */\n# define CRYPTO_MEM_CHECK_OFF     0x0   /* Control only */\n# define CRYPTO_MEM_CHECK_ON      0x1   /* Control and mode bit */\n# define CRYPTO_MEM_CHECK_ENABLE  0x2   /* Control and mode bit */\n# define CRYPTO_MEM_CHECK_DISABLE 0x3   /* Control only */\n\nstruct crypto_ex_data_st {\n    STACK_OF(void) *sk;\n};\nDEFINE_STACK_OF(void)\n\n/*\n * Per class, we have a STACK of function pointers.\n */\n# define CRYPTO_EX_INDEX_SSL              0\n# define CRYPTO_EX_INDEX_SSL_CTX          1\n# define CRYPTO_EX_INDEX_SSL_SESSION      2\n# define CRYPTO_EX_INDEX_X509             3\n# define CRYPTO_EX_INDEX_X509_STORE       4\n# define CRYPTO_EX_INDEX_X509_STORE_CTX   5\n# define CRYPTO_EX_INDEX_DH               6\n# define CRYPTO_EX_INDEX_DSA              7\n# define CRYPTO_EX_INDEX_EC_KEY           8\n# define CRYPTO_EX_INDEX_RSA              9\n# define CRYPTO_EX_INDEX_ENGINE          10\n# define CRYPTO_EX_INDEX_UI              11\n# define CRYPTO_EX_INDEX_BIO             12\n# define CRYPTO_EX_INDEX_APP             13\n# define CRYPTO_EX_INDEX_UI_METHOD       14\n# define CRYPTO_EX_INDEX_DRBG            15\n# define CRYPTO_EX_INDEX__COUNT          16\n\n/* No longer needed, so this is a no-op */\n#define OPENSSL_malloc_init() while(0) continue\n\nint CRYPTO_mem_ctrl(int mode);\n\n# define OPENSSL_malloc(num) \\\n        CRYPTO_malloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_zalloc(num) \\\n        CRYPTO_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_realloc(addr, num) \\\n        CRYPTO_realloc(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_clear_realloc(addr, old_num, num) \\\n        CRYPTO_clear_realloc(addr, old_num, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_clear_free(addr, num) \\\n        CRYPTO_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_free(addr) \\\n        CRYPTO_free(addr, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_memdup(str, s) \\\n        CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_strdup(str) \\\n        CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_strndup(str, n) \\\n        CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_malloc(num) \\\n        CRYPTO_secure_malloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_zalloc(num) \\\n        CRYPTO_secure_zalloc(num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_free(addr) \\\n        CRYPTO_secure_free(addr, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_clear_free(addr, num) \\\n        CRYPTO_secure_clear_free(addr, num, OPENSSL_FILE, OPENSSL_LINE)\n# define OPENSSL_secure_actual_size(ptr) \\\n        CRYPTO_secure_actual_size(ptr)\n\nsize_t OPENSSL_strlcpy(char *dst, const char *src, size_t siz);\nsize_t OPENSSL_strlcat(char *dst, const char *src, size_t siz);\nsize_t OPENSSL_strnlen(const char *str, size_t maxlen);\nchar *OPENSSL_buf2hexstr(const unsigned char *buffer, long len);\nunsigned char *OPENSSL_hexstr2buf(const char *str, long *len);\nint OPENSSL_hexchar2int(unsigned char c);\n\n# define OPENSSL_MALLOC_MAX_NELEMS(type)  (((1U<<(sizeof(int)*8-1))-1)/sizeof(type))\n\nunsigned long OpenSSL_version_num(void);\nconst char *OpenSSL_version(int type);\n# define OPENSSL_VERSION          0\n# define OPENSSL_CFLAGS           1\n# define OPENSSL_BUILT_ON         2\n# define OPENSSL_PLATFORM         3\n# define OPENSSL_DIR              4\n# define OPENSSL_ENGINES_DIR      5\n\nint OPENSSL_issetugid(void);\n\ntypedef void CRYPTO_EX_new (void *parent, void *ptr, CRYPTO_EX_DATA *ad,\n                           int idx, long argl, void *argp);\ntypedef void CRYPTO_EX_free (void *parent, void *ptr, CRYPTO_EX_DATA *ad,\n                             int idx, long argl, void *argp);\ntypedef int CRYPTO_EX_dup (CRYPTO_EX_DATA *to, const CRYPTO_EX_DATA *from,\n                           void *from_d, int idx, long argl, void *argp);\n__owur int CRYPTO_get_ex_new_index(int class_index, long argl, void *argp,\n                            CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,\n                            CRYPTO_EX_free *free_func);\n/* No longer use an index. */\nint CRYPTO_free_ex_index(int class_index, int idx);\n\n/*\n * Initialise/duplicate/free CRYPTO_EX_DATA variables corresponding to a\n * given class (invokes whatever per-class callbacks are applicable)\n */\nint CRYPTO_new_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);\nint CRYPTO_dup_ex_data(int class_index, CRYPTO_EX_DATA *to,\n                       const CRYPTO_EX_DATA *from);\n\nvoid CRYPTO_free_ex_data(int class_index, void *obj, CRYPTO_EX_DATA *ad);\n\n/*\n * Get/set data in a CRYPTO_EX_DATA variable corresponding to a particular\n * index (relative to the class type involved)\n */\nint CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val);\nvoid *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * This function cleans up all \"ex_data\" state. It mustn't be called under\n * potential race-conditions.\n */\n# define CRYPTO_cleanup_all_ex_data() while(0) continue\n\n/*\n * The old locking functions have been removed completely without compatibility\n * macros. This is because the old functions either could not properly report\n * errors, or the returned error values were not clearly documented.\n * Replacing the locking functions with no-ops would cause race condition\n * issues in the affected applications. It is far better for them to fail at\n * compile time.\n * On the other hand, the locking callbacks are no longer used.  Consequently,\n * the callback management functions can be safely replaced with no-op macros.\n */\n#  define CRYPTO_num_locks()            (1)\n#  define CRYPTO_set_locking_callback(func)\n#  define CRYPTO_get_locking_callback()         (NULL)\n#  define CRYPTO_set_add_lock_callback(func)\n#  define CRYPTO_get_add_lock_callback()        (NULL)\n\n/*\n * These defines where used in combination with the old locking callbacks,\n * they are not called anymore, but old code that's not called might still\n * use them.\n */\n#  define CRYPTO_LOCK             1\n#  define CRYPTO_UNLOCK           2\n#  define CRYPTO_READ             4\n#  define CRYPTO_WRITE            8\n\n/* This structure is no longer used */\ntypedef struct crypto_threadid_st {\n    int dummy;\n} CRYPTO_THREADID;\n/* Only use CRYPTO_THREADID_set_[numeric|pointer]() within callbacks */\n#  define CRYPTO_THREADID_set_numeric(id, val)\n#  define CRYPTO_THREADID_set_pointer(id, ptr)\n#  define CRYPTO_THREADID_set_callback(threadid_func)   (0)\n#  define CRYPTO_THREADID_get_callback()                (NULL)\n#  define CRYPTO_THREADID_current(id)\n#  define CRYPTO_THREADID_cmp(a, b)                     (-1)\n#  define CRYPTO_THREADID_cpy(dest, src)\n#  define CRYPTO_THREADID_hash(id)                      (0UL)\n\n#  if OPENSSL_API_COMPAT < 0x10000000L\n#   define CRYPTO_set_id_callback(func)\n#   define CRYPTO_get_id_callback()                     (NULL)\n#   define CRYPTO_thread_id()                           (0UL)\n#  endif /* OPENSSL_API_COMPAT < 0x10000000L */\n\n#  define CRYPTO_set_dynlock_create_callback(dyn_create_function)\n#  define CRYPTO_set_dynlock_lock_callback(dyn_lock_function)\n#  define CRYPTO_set_dynlock_destroy_callback(dyn_destroy_function)\n#  define CRYPTO_get_dynlock_create_callback()          (NULL)\n#  define CRYPTO_get_dynlock_lock_callback()            (NULL)\n#  define CRYPTO_get_dynlock_destroy_callback()         (NULL)\n# endif /* OPENSSL_API_COMPAT < 0x10100000L */\n\nint CRYPTO_set_mem_functions(\n        void *(*m) (size_t, const char *, int),\n        void *(*r) (void *, size_t, const char *, int),\n        void (*f) (void *, const char *, int));\nint CRYPTO_set_mem_debug(int flag);\nvoid CRYPTO_get_mem_functions(\n        void *(**m) (size_t, const char *, int),\n        void *(**r) (void *, size_t, const char *, int),\n        void (**f) (void *, const char *, int));\n\nvoid *CRYPTO_malloc(size_t num, const char *file, int line);\nvoid *CRYPTO_zalloc(size_t num, const char *file, int line);\nvoid *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line);\nchar *CRYPTO_strdup(const char *str, const char *file, int line);\nchar *CRYPTO_strndup(const char *str, size_t s, const char *file, int line);\nvoid CRYPTO_free(void *ptr, const char *file, int line);\nvoid CRYPTO_clear_free(void *ptr, size_t num, const char *file, int line);\nvoid *CRYPTO_realloc(void *addr, size_t num, const char *file, int line);\nvoid *CRYPTO_clear_realloc(void *addr, size_t old_num, size_t num,\n                           const char *file, int line);\n\nint CRYPTO_secure_malloc_init(size_t sz, int minsize);\nint CRYPTO_secure_malloc_done(void);\nvoid *CRYPTO_secure_malloc(size_t num, const char *file, int line);\nvoid *CRYPTO_secure_zalloc(size_t num, const char *file, int line);\nvoid CRYPTO_secure_free(void *ptr, const char *file, int line);\nvoid CRYPTO_secure_clear_free(void *ptr, size_t num,\n                              const char *file, int line);\nint CRYPTO_secure_allocated(const void *ptr);\nint CRYPTO_secure_malloc_initialized(void);\nsize_t CRYPTO_secure_actual_size(void *ptr);\nsize_t CRYPTO_secure_used(void);\n\nvoid OPENSSL_cleanse(void *ptr, size_t len);\n\n# ifndef OPENSSL_NO_CRYPTO_MDEBUG\n#  define OPENSSL_mem_debug_push(info) \\\n        CRYPTO_mem_debug_push(info, OPENSSL_FILE, OPENSSL_LINE)\n#  define OPENSSL_mem_debug_pop() \\\n        CRYPTO_mem_debug_pop()\nint CRYPTO_mem_debug_push(const char *info, const char *file, int line);\nint CRYPTO_mem_debug_pop(void);\nvoid CRYPTO_get_alloc_counts(int *mcount, int *rcount, int *fcount);\n\n/*-\n * Debugging functions (enabled by CRYPTO_set_mem_debug(1))\n * The flag argument has the following significance:\n *   0:   called before the actual memory allocation has taken place\n *   1:   called after the actual memory allocation has taken place\n */\nvoid CRYPTO_mem_debug_malloc(void *addr, size_t num, int flag,\n        const char *file, int line);\nvoid CRYPTO_mem_debug_realloc(void *addr1, void *addr2, size_t num, int flag,\n        const char *file, int line);\nvoid CRYPTO_mem_debug_free(void *addr, int flag,\n        const char *file, int line);\n\nint CRYPTO_mem_leaks_cb(int (*cb) (const char *str, size_t len, void *u),\n                        void *u);\n#  ifndef OPENSSL_NO_STDIO\nint CRYPTO_mem_leaks_fp(FILE *);\n#  endif\nint CRYPTO_mem_leaks(BIO *bio);\n# endif\n\n/* die if we have to */\nossl_noreturn void OPENSSL_die(const char *assertion, const char *file, int line);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OpenSSLDie(f,l,a) OPENSSL_die((a),(f),(l))\n# endif\n# define OPENSSL_assert(e) \\\n    (void)((e) ? 0 : (OPENSSL_die(\"assertion failed: \" #e, OPENSSL_FILE, OPENSSL_LINE), 1))\n\nint OPENSSL_isservice(void);\n\nint FIPS_mode(void);\nint FIPS_mode_set(int r);\n\nvoid OPENSSL_init(void);\n# ifdef OPENSSL_SYS_UNIX\nvoid OPENSSL_fork_prepare(void);\nvoid OPENSSL_fork_parent(void);\nvoid OPENSSL_fork_child(void);\n# endif\n\nstruct tm *OPENSSL_gmtime(const time_t *timer, struct tm *result);\nint OPENSSL_gmtime_adj(struct tm *tm, int offset_day, long offset_sec);\nint OPENSSL_gmtime_diff(int *pday, int *psec,\n                        const struct tm *from, const struct tm *to);\n\n/*\n * CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal.\n * It takes an amount of time dependent on |len|, but independent of the\n * contents of |a| and |b|. Unlike memcmp, it cannot be used to put elements\n * into a defined order as the return value when a != b is undefined, other\n * than to be non-zero.\n */\nint CRYPTO_memcmp(const void * in_a, const void * in_b, size_t len);\n\n/* Standard initialisation options */\n# define OPENSSL_INIT_NO_LOAD_CRYPTO_STRINGS 0x00000001L\n# define OPENSSL_INIT_LOAD_CRYPTO_STRINGS    0x00000002L\n# define OPENSSL_INIT_ADD_ALL_CIPHERS        0x00000004L\n# define OPENSSL_INIT_ADD_ALL_DIGESTS        0x00000008L\n# define OPENSSL_INIT_NO_ADD_ALL_CIPHERS     0x00000010L\n# define OPENSSL_INIT_NO_ADD_ALL_DIGESTS     0x00000020L\n# define OPENSSL_INIT_LOAD_CONFIG            0x00000040L\n# define OPENSSL_INIT_NO_LOAD_CONFIG         0x00000080L\n# define OPENSSL_INIT_ASYNC                  0x00000100L\n# define OPENSSL_INIT_ENGINE_RDRAND          0x00000200L\n# define OPENSSL_INIT_ENGINE_DYNAMIC         0x00000400L\n# define OPENSSL_INIT_ENGINE_OPENSSL         0x00000800L\n# define OPENSSL_INIT_ENGINE_CRYPTODEV       0x00001000L\n# define OPENSSL_INIT_ENGINE_CAPI            0x00002000L\n# define OPENSSL_INIT_ENGINE_PADLOCK         0x00004000L\n# define OPENSSL_INIT_ENGINE_AFALG           0x00008000L\n/* OPENSSL_INIT_ZLIB                         0x00010000L */\n# define OPENSSL_INIT_ATFORK                 0x00020000L\n/* OPENSSL_INIT_BASE_ONLY                    0x00040000L */\n# define OPENSSL_INIT_NO_ATEXIT              0x00080000L\n/* OPENSSL_INIT flag range 0xfff00000 reserved for OPENSSL_init_ssl() */\n/* Max OPENSSL_INIT flag value is 0x80000000 */\n\n/* openssl and dasync not counted as builtin */\n# define OPENSSL_INIT_ENGINE_ALL_BUILTIN \\\n    (OPENSSL_INIT_ENGINE_RDRAND | OPENSSL_INIT_ENGINE_DYNAMIC \\\n    | OPENSSL_INIT_ENGINE_CRYPTODEV | OPENSSL_INIT_ENGINE_CAPI | \\\n    OPENSSL_INIT_ENGINE_PADLOCK)\n\n\n/* Library initialisation functions */\nvoid OPENSSL_cleanup(void);\nint OPENSSL_init_crypto(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);\nint OPENSSL_atexit(void (*handler)(void));\nvoid OPENSSL_thread_stop(void);\n\n/* Low-level control of initialization */\nOPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(void);\n# ifndef OPENSSL_NO_STDIO\nint OPENSSL_INIT_set_config_filename(OPENSSL_INIT_SETTINGS *settings,\n                                     const char *config_filename);\nvoid OPENSSL_INIT_set_config_file_flags(OPENSSL_INIT_SETTINGS *settings,\n                                        unsigned long flags);\nint OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,\n                                    const char *config_appname);\n# endif\nvoid OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings);\n\n# if defined(OPENSSL_THREADS) && !defined(CRYPTO_TDEBUG)\n#  if defined(_WIN32)\n#   if defined(BASETYPES) || defined(_WINDEF_H)\n/* application has to include <windows.h> in order to use this */\ntypedef DWORD CRYPTO_THREAD_LOCAL;\ntypedef DWORD CRYPTO_THREAD_ID;\n\ntypedef LONG CRYPTO_ONCE;\n#    define CRYPTO_ONCE_STATIC_INIT 0\n#   endif\n#  else\n#   include <pthread.h>\ntypedef pthread_once_t CRYPTO_ONCE;\ntypedef pthread_key_t CRYPTO_THREAD_LOCAL;\ntypedef pthread_t CRYPTO_THREAD_ID;\n\n#   define CRYPTO_ONCE_STATIC_INIT PTHREAD_ONCE_INIT\n#  endif\n# endif\n\n# if !defined(CRYPTO_ONCE_STATIC_INIT)\ntypedef unsigned int CRYPTO_ONCE;\ntypedef unsigned int CRYPTO_THREAD_LOCAL;\ntypedef unsigned int CRYPTO_THREAD_ID;\n#  define CRYPTO_ONCE_STATIC_INIT 0\n# endif\n\nint CRYPTO_THREAD_run_once(CRYPTO_ONCE *once, void (*init)(void));\n\nint CRYPTO_THREAD_init_local(CRYPTO_THREAD_LOCAL *key, void (*cleanup)(void *));\nvoid *CRYPTO_THREAD_get_local(CRYPTO_THREAD_LOCAL *key);\nint CRYPTO_THREAD_set_local(CRYPTO_THREAD_LOCAL *key, void *val);\nint CRYPTO_THREAD_cleanup_local(CRYPTO_THREAD_LOCAL *key);\n\nCRYPTO_THREAD_ID CRYPTO_THREAD_get_current_id(void);\nint CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/cryptoerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CRYPTOERR_H\n# define HEADER_CRYPTOERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_CRYPTO_strings(void);\n\n/*\n * CRYPTO function codes.\n */\n# define CRYPTO_F_CMAC_CTX_NEW                            120\n# define CRYPTO_F_CRYPTO_DUP_EX_DATA                      110\n# define CRYPTO_F_CRYPTO_FREE_EX_DATA                     111\n# define CRYPTO_F_CRYPTO_GET_EX_NEW_INDEX                 100\n# define CRYPTO_F_CRYPTO_MEMDUP                           115\n# define CRYPTO_F_CRYPTO_NEW_EX_DATA                      112\n# define CRYPTO_F_CRYPTO_OCB128_COPY_CTX                  121\n# define CRYPTO_F_CRYPTO_OCB128_INIT                      122\n# define CRYPTO_F_CRYPTO_SET_EX_DATA                      102\n# define CRYPTO_F_FIPS_MODE_SET                           109\n# define CRYPTO_F_GET_AND_LOCK                            113\n# define CRYPTO_F_OPENSSL_ATEXIT                          114\n# define CRYPTO_F_OPENSSL_BUF2HEXSTR                      117\n# define CRYPTO_F_OPENSSL_FOPEN                           119\n# define CRYPTO_F_OPENSSL_HEXSTR2BUF                      118\n# define CRYPTO_F_OPENSSL_INIT_CRYPTO                     116\n# define CRYPTO_F_OPENSSL_LH_NEW                          126\n# define CRYPTO_F_OPENSSL_SK_DEEP_COPY                    127\n# define CRYPTO_F_OPENSSL_SK_DUP                          128\n# define CRYPTO_F_PKEY_HMAC_INIT                          123\n# define CRYPTO_F_PKEY_POLY1305_INIT                      124\n# define CRYPTO_F_PKEY_SIPHASH_INIT                       125\n# define CRYPTO_F_SK_RESERVE                              129\n\n/*\n * CRYPTO reason codes.\n */\n# define CRYPTO_R_FIPS_MODE_NOT_SUPPORTED                 101\n# define CRYPTO_R_ILLEGAL_HEX_DIGIT                       102\n# define CRYPTO_R_ODD_NUMBER_OF_DIGITS                    103\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ct.h",
    "content": "/*\n * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CT_H\n# define HEADER_CT_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CT\n# include <openssl/ossl_typ.h>\n# include <openssl/safestack.h>\n# include <openssl/x509.h>\n# include <openssl/cterr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n\n/* Minimum RSA key size, from RFC6962 */\n# define SCT_MIN_RSA_BITS 2048\n\n/* All hashes are SHA256 in v1 of Certificate Transparency */\n# define CT_V1_HASHLEN SHA256_DIGEST_LENGTH\n\ntypedef enum {\n    CT_LOG_ENTRY_TYPE_NOT_SET = -1,\n    CT_LOG_ENTRY_TYPE_X509 = 0,\n    CT_LOG_ENTRY_TYPE_PRECERT = 1\n} ct_log_entry_type_t;\n\ntypedef enum {\n    SCT_VERSION_NOT_SET = -1,\n    SCT_VERSION_V1 = 0\n} sct_version_t;\n\ntypedef enum {\n    SCT_SOURCE_UNKNOWN,\n    SCT_SOURCE_TLS_EXTENSION,\n    SCT_SOURCE_X509V3_EXTENSION,\n    SCT_SOURCE_OCSP_STAPLED_RESPONSE\n} sct_source_t;\n\ntypedef enum {\n    SCT_VALIDATION_STATUS_NOT_SET,\n    SCT_VALIDATION_STATUS_UNKNOWN_LOG,\n    SCT_VALIDATION_STATUS_VALID,\n    SCT_VALIDATION_STATUS_INVALID,\n    SCT_VALIDATION_STATUS_UNVERIFIED,\n    SCT_VALIDATION_STATUS_UNKNOWN_VERSION\n} sct_validation_status_t;\n\nDEFINE_STACK_OF(SCT)\nDEFINE_STACK_OF(CTLOG)\n\n/******************************************\n * CT policy evaluation context functions *\n ******************************************/\n\n/*\n * Creates a new, empty policy evaluation context.\n * The caller is responsible for calling CT_POLICY_EVAL_CTX_free when finished\n * with the CT_POLICY_EVAL_CTX.\n */\nCT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void);\n\n/* Deletes a policy evaluation context and anything it owns. */\nvoid CT_POLICY_EVAL_CTX_free(CT_POLICY_EVAL_CTX *ctx);\n\n/* Gets the peer certificate that the SCTs are for */\nX509* CT_POLICY_EVAL_CTX_get0_cert(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the certificate associated with the received SCTs.\n * Increments the reference count of cert.\n * Returns 1 on success, 0 otherwise.\n */\nint CT_POLICY_EVAL_CTX_set1_cert(CT_POLICY_EVAL_CTX *ctx, X509 *cert);\n\n/* Gets the issuer of the aforementioned certificate */\nX509* CT_POLICY_EVAL_CTX_get0_issuer(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the issuer of the certificate associated with the received SCTs.\n * Increments the reference count of issuer.\n * Returns 1 on success, 0 otherwise.\n */\nint CT_POLICY_EVAL_CTX_set1_issuer(CT_POLICY_EVAL_CTX *ctx, X509 *issuer);\n\n/* Gets the CT logs that are trusted sources of SCTs */\nconst CTLOG_STORE *CT_POLICY_EVAL_CTX_get0_log_store(const CT_POLICY_EVAL_CTX *ctx);\n\n/* Sets the log store that is in use. It must outlive the CT_POLICY_EVAL_CTX. */\nvoid CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE(CT_POLICY_EVAL_CTX *ctx,\n                                               CTLOG_STORE *log_store);\n\n/*\n * Gets the time, in milliseconds since the Unix epoch, that will be used as the\n * current time when checking whether an SCT was issued in the future.\n * Such SCTs will fail validation, as required by RFC6962.\n */\nuint64_t CT_POLICY_EVAL_CTX_get_time(const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Sets the time to evaluate SCTs against, in milliseconds since the Unix epoch.\n * If an SCT's timestamp is after this time, it will be interpreted as having\n * been issued in the future. RFC6962 states that \"TLS clients MUST reject SCTs\n * whose timestamp is in the future\", so an SCT will not validate in this case.\n */\nvoid CT_POLICY_EVAL_CTX_set_time(CT_POLICY_EVAL_CTX *ctx, uint64_t time_in_ms);\n\n/*****************\n * SCT functions *\n *****************/\n\n/*\n * Creates a new, blank SCT.\n * The caller is responsible for calling SCT_free when finished with the SCT.\n */\nSCT *SCT_new(void);\n\n/*\n * Creates a new SCT from some base64-encoded strings.\n * The caller is responsible for calling SCT_free when finished with the SCT.\n */\nSCT *SCT_new_from_base64(unsigned char version,\n                         const char *logid_base64,\n                         ct_log_entry_type_t entry_type,\n                         uint64_t timestamp,\n                         const char *extensions_base64,\n                         const char *signature_base64);\n\n/*\n * Frees the SCT and the underlying data structures.\n */\nvoid SCT_free(SCT *sct);\n\n/*\n * Free a stack of SCTs, and the underlying SCTs themselves.\n * Intended to be compatible with X509V3_EXT_FREE.\n */\nvoid SCT_LIST_free(STACK_OF(SCT) *a);\n\n/*\n * Returns the version of the SCT.\n */\nsct_version_t SCT_get_version(const SCT *sct);\n\n/*\n * Set the version of an SCT.\n * Returns 1 on success, 0 if the version is unrecognized.\n */\n__owur int SCT_set_version(SCT *sct, sct_version_t version);\n\n/*\n * Returns the log entry type of the SCT.\n */\nct_log_entry_type_t SCT_get_log_entry_type(const SCT *sct);\n\n/*\n * Set the log entry type of an SCT.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_log_entry_type(SCT *sct, ct_log_entry_type_t entry_type);\n\n/*\n * Gets the ID of the log that an SCT came from.\n * Ownership of the log ID remains with the SCT.\n * Returns the length of the log ID.\n */\nsize_t SCT_get0_log_id(const SCT *sct, unsigned char **log_id);\n\n/*\n * Set the log ID of an SCT to point directly to the *log_id specified.\n * The SCT takes ownership of the specified pointer.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set0_log_id(SCT *sct, unsigned char *log_id, size_t log_id_len);\n\n/*\n * Set the log ID of an SCT.\n * This makes a copy of the log_id.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_log_id(SCT *sct, const unsigned char *log_id,\n                           size_t log_id_len);\n\n/*\n * Returns the timestamp for the SCT (epoch time in milliseconds).\n */\nuint64_t SCT_get_timestamp(const SCT *sct);\n\n/*\n * Set the timestamp of an SCT (epoch time in milliseconds).\n */\nvoid SCT_set_timestamp(SCT *sct, uint64_t timestamp);\n\n/*\n * Return the NID for the signature used by the SCT.\n * For CT v1, this will be either NID_sha256WithRSAEncryption or\n * NID_ecdsa_with_SHA256 (or NID_undef if incorrect/unset).\n */\nint SCT_get_signature_nid(const SCT *sct);\n\n/*\n * Set the signature type of an SCT\n * For CT v1, this should be either NID_sha256WithRSAEncryption or\n * NID_ecdsa_with_SHA256.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_signature_nid(SCT *sct, int nid);\n\n/*\n * Set *ext to point to the extension data for the SCT. ext must not be NULL.\n * The SCT retains ownership of this pointer.\n * Returns length of the data pointed to.\n */\nsize_t SCT_get0_extensions(const SCT *sct, unsigned char **ext);\n\n/*\n * Set the extensions of an SCT to point directly to the *ext specified.\n * The SCT takes ownership of the specified pointer.\n */\nvoid SCT_set0_extensions(SCT *sct, unsigned char *ext, size_t ext_len);\n\n/*\n * Set the extensions of an SCT.\n * This takes a copy of the ext.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_extensions(SCT *sct, const unsigned char *ext,\n                               size_t ext_len);\n\n/*\n * Set *sig to point to the signature for the SCT. sig must not be NULL.\n * The SCT retains ownership of this pointer.\n * Returns length of the data pointed to.\n */\nsize_t SCT_get0_signature(const SCT *sct, unsigned char **sig);\n\n/*\n * Set the signature of an SCT to point directly to the *sig specified.\n * The SCT takes ownership of the specified pointer.\n */\nvoid SCT_set0_signature(SCT *sct, unsigned char *sig, size_t sig_len);\n\n/*\n * Set the signature of an SCT to be a copy of the *sig specified.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set1_signature(SCT *sct, const unsigned char *sig,\n                              size_t sig_len);\n\n/*\n * The origin of this SCT, e.g. TLS extension, OCSP response, etc.\n */\nsct_source_t SCT_get_source(const SCT *sct);\n\n/*\n * Set the origin of this SCT, e.g. TLS extension, OCSP response, etc.\n * Returns 1 on success, 0 otherwise.\n */\n__owur int SCT_set_source(SCT *sct, sct_source_t source);\n\n/*\n * Returns a text string describing the validation status of |sct|.\n */\nconst char *SCT_validation_status_string(const SCT *sct);\n\n/*\n * Pretty-prints an |sct| to |out|.\n * It will be indented by the number of spaces specified by |indent|.\n * If |logs| is not NULL, it will be used to lookup the CT log that the SCT came\n * from, so that the log name can be printed.\n */\nvoid SCT_print(const SCT *sct, BIO *out, int indent, const CTLOG_STORE *logs);\n\n/*\n * Pretty-prints an |sct_list| to |out|.\n * It will be indented by the number of spaces specified by |indent|.\n * SCTs will be delimited by |separator|.\n * If |logs| is not NULL, it will be used to lookup the CT log that each SCT\n * came from, so that the log names can be printed.\n */\nvoid SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent,\n                    const char *separator, const CTLOG_STORE *logs);\n\n/*\n * Gets the last result of validating this SCT.\n * If it has not been validated yet, returns SCT_VALIDATION_STATUS_NOT_SET.\n */\nsct_validation_status_t SCT_get_validation_status(const SCT *sct);\n\n/*\n * Validates the given SCT with the provided context.\n * Sets the \"validation_status\" field of the SCT.\n * Returns 1 if the SCT is valid and the signature verifies.\n * Returns 0 if the SCT is invalid or could not be verified.\n * Returns -1 if an error occurs.\n */\n__owur int SCT_validate(SCT *sct, const CT_POLICY_EVAL_CTX *ctx);\n\n/*\n * Validates the given list of SCTs with the provided context.\n * Sets the \"validation_status\" field of each SCT.\n * Returns 1 if there are no invalid SCTs and all signatures verify.\n * Returns 0 if at least one SCT is invalid or could not be verified.\n * Returns a negative integer if an error occurs.\n */\n__owur int SCT_LIST_validate(const STACK_OF(SCT) *scts,\n                             CT_POLICY_EVAL_CTX *ctx);\n\n\n/*********************************\n * SCT parsing and serialisation *\n *********************************/\n\n/*\n * Serialize (to TLS format) a stack of SCTs and return the length.\n * \"a\" must not be NULL.\n * If \"pp\" is NULL, just return the length of what would have been serialized.\n * If \"pp\" is not NULL and \"*pp\" is null, function will allocate a new pointer\n * for data that caller is responsible for freeing (only if function returns\n * successfully).\n * If \"pp\" is NULL and \"*pp\" is not NULL, caller is responsible for ensuring\n * that \"*pp\" is large enough to accept all of the serialized data.\n * Returns < 0 on error, >= 0 indicating bytes written (or would have been)\n * on success.\n */\n__owur int i2o_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);\n\n/*\n * Convert TLS format SCT list to a stack of SCTs.\n * If \"a\" or \"*a\" is NULL, a new stack will be created that the caller is\n * responsible for freeing (by calling SCT_LIST_free).\n * \"**pp\" and \"*pp\" must not be NULL.\n * Upon success, \"*pp\" will point to after the last bytes read, and a stack\n * will be returned.\n * Upon failure, a NULL pointer will be returned, and the position of \"*pp\" is\n * not defined.\n */\nSTACK_OF(SCT) *o2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,\n                            size_t len);\n\n/*\n * Serialize (to DER format) a stack of SCTs and return the length.\n * \"a\" must not be NULL.\n * If \"pp\" is NULL, just returns the length of what would have been serialized.\n * If \"pp\" is not NULL and \"*pp\" is null, function will allocate a new pointer\n * for data that caller is responsible for freeing (only if function returns\n * successfully).\n * If \"pp\" is NULL and \"*pp\" is not NULL, caller is responsible for ensuring\n * that \"*pp\" is large enough to accept all of the serialized data.\n * Returns < 0 on error, >= 0 indicating bytes written (or would have been)\n * on success.\n */\n__owur int i2d_SCT_LIST(const STACK_OF(SCT) *a, unsigned char **pp);\n\n/*\n * Parses an SCT list in DER format and returns it.\n * If \"a\" or \"*a\" is NULL, a new stack will be created that the caller is\n * responsible for freeing (by calling SCT_LIST_free).\n * \"**pp\" and \"*pp\" must not be NULL.\n * Upon success, \"*pp\" will point to after the last bytes read, and a stack\n * will be returned.\n * Upon failure, a NULL pointer will be returned, and the position of \"*pp\" is\n * not defined.\n */\nSTACK_OF(SCT) *d2i_SCT_LIST(STACK_OF(SCT) **a, const unsigned char **pp,\n                            long len);\n\n/*\n * Serialize (to TLS format) an |sct| and write it to |out|.\n * If |out| is null, no SCT will be output but the length will still be returned.\n * If |out| points to a null pointer, a string will be allocated to hold the\n * TLS-format SCT. It is the responsibility of the caller to free it.\n * If |out| points to an allocated string, the TLS-format SCT will be written\n * to it.\n * The length of the SCT in TLS format will be returned.\n */\n__owur int i2o_SCT(const SCT *sct, unsigned char **out);\n\n/*\n * Parses an SCT in TLS format and returns it.\n * If |psct| is not null, it will end up pointing to the parsed SCT. If it\n * already points to a non-null pointer, the pointer will be free'd.\n * |in| should be a pointer to a string containing the TLS-format SCT.\n * |in| will be advanced to the end of the SCT if parsing succeeds.\n * |len| should be the length of the SCT in |in|.\n * Returns NULL if an error occurs.\n * If the SCT is an unsupported version, only the SCT's 'sct' and 'sct_len'\n * fields will be populated (with |in| and |len| respectively).\n */\nSCT *o2i_SCT(SCT **psct, const unsigned char **in, size_t len);\n\n/********************\n * CT log functions *\n ********************/\n\n/*\n * Creates a new CT log instance with the given |public_key| and |name|.\n * Takes ownership of |public_key| but copies |name|.\n * Returns NULL if malloc fails or if |public_key| cannot be converted to DER.\n * Should be deleted by the caller using CTLOG_free when no longer needed.\n */\nCTLOG *CTLOG_new(EVP_PKEY *public_key, const char *name);\n\n/*\n * Creates a new CTLOG instance with the base64-encoded SubjectPublicKeyInfo DER\n * in |pkey_base64|. The |name| is a string to help users identify this log.\n * Returns 1 on success, 0 on failure.\n * Should be deleted by the caller using CTLOG_free when no longer needed.\n */\nint CTLOG_new_from_base64(CTLOG ** ct_log,\n                          const char *pkey_base64, const char *name);\n\n/*\n * Deletes a CT log instance and its fields.\n */\nvoid CTLOG_free(CTLOG *log);\n\n/* Gets the name of the CT log */\nconst char *CTLOG_get0_name(const CTLOG *log);\n/* Gets the ID of the CT log */\nvoid CTLOG_get0_log_id(const CTLOG *log, const uint8_t **log_id,\n                       size_t *log_id_len);\n/* Gets the public key of the CT log */\nEVP_PKEY *CTLOG_get0_public_key(const CTLOG *log);\n\n/**************************\n * CT log store functions *\n **************************/\n\n/*\n * Creates a new CT log store.\n * Should be deleted by the caller using CTLOG_STORE_free when no longer needed.\n */\nCTLOG_STORE *CTLOG_STORE_new(void);\n\n/*\n * Deletes a CT log store and all of the CT log instances held within.\n */\nvoid CTLOG_STORE_free(CTLOG_STORE *store);\n\n/*\n * Finds a CT log in the store based on its log ID.\n * Returns the CT log, or NULL if no match is found.\n */\nconst CTLOG *CTLOG_STORE_get0_log_by_id(const CTLOG_STORE *store,\n                                        const uint8_t *log_id,\n                                        size_t log_id_len);\n\n/*\n * Loads a CT log list into a |store| from a |file|.\n * Returns 1 if loading is successful, or 0 otherwise.\n */\n__owur int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file);\n\n/*\n * Loads the default CT log list into a |store|.\n * Returns 1 if loading is successful, or 0 otherwise.\n */\n__owur int CTLOG_STORE_load_default_file(CTLOG_STORE *store);\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/cterr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_CTERR_H\n# define HEADER_CTERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_CT\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_CT_strings(void);\n\n/*\n * CT function codes.\n */\n#  define CT_F_CTLOG_NEW                                   117\n#  define CT_F_CTLOG_NEW_FROM_BASE64                       118\n#  define CT_F_CTLOG_NEW_FROM_CONF                         119\n#  define CT_F_CTLOG_STORE_LOAD_CTX_NEW                    122\n#  define CT_F_CTLOG_STORE_LOAD_FILE                       123\n#  define CT_F_CTLOG_STORE_LOAD_LOG                        130\n#  define CT_F_CTLOG_STORE_NEW                             131\n#  define CT_F_CT_BASE64_DECODE                            124\n#  define CT_F_CT_POLICY_EVAL_CTX_NEW                      133\n#  define CT_F_CT_V1_LOG_ID_FROM_PKEY                      125\n#  define CT_F_I2O_SCT                                     107\n#  define CT_F_I2O_SCT_LIST                                108\n#  define CT_F_I2O_SCT_SIGNATURE                           109\n#  define CT_F_O2I_SCT                                     110\n#  define CT_F_O2I_SCT_LIST                                111\n#  define CT_F_O2I_SCT_SIGNATURE                           112\n#  define CT_F_SCT_CTX_NEW                                 126\n#  define CT_F_SCT_CTX_VERIFY                              128\n#  define CT_F_SCT_NEW                                     100\n#  define CT_F_SCT_NEW_FROM_BASE64                         127\n#  define CT_F_SCT_SET0_LOG_ID                             101\n#  define CT_F_SCT_SET1_EXTENSIONS                         114\n#  define CT_F_SCT_SET1_LOG_ID                             115\n#  define CT_F_SCT_SET1_SIGNATURE                          116\n#  define CT_F_SCT_SET_LOG_ENTRY_TYPE                      102\n#  define CT_F_SCT_SET_SIGNATURE_NID                       103\n#  define CT_F_SCT_SET_VERSION                             104\n\n/*\n * CT reason codes.\n */\n#  define CT_R_BASE64_DECODE_ERROR                         108\n#  define CT_R_INVALID_LOG_ID_LENGTH                       100\n#  define CT_R_LOG_CONF_INVALID                            109\n#  define CT_R_LOG_CONF_INVALID_KEY                        110\n#  define CT_R_LOG_CONF_MISSING_DESCRIPTION                111\n#  define CT_R_LOG_CONF_MISSING_KEY                        112\n#  define CT_R_LOG_KEY_INVALID                             113\n#  define CT_R_SCT_FUTURE_TIMESTAMP                        116\n#  define CT_R_SCT_INVALID                                 104\n#  define CT_R_SCT_INVALID_SIGNATURE                       107\n#  define CT_R_SCT_LIST_INVALID                            105\n#  define CT_R_SCT_LOG_ID_MISMATCH                         114\n#  define CT_R_SCT_NOT_SET                                 106\n#  define CT_R_SCT_UNSUPPORTED_VERSION                     115\n#  define CT_R_UNRECOGNIZED_SIGNATURE_NID                  101\n#  define CT_R_UNSUPPORTED_ENTRY_TYPE                      102\n#  define CT_R_UNSUPPORTED_VERSION                         103\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/des.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DES_H\n# define HEADER_DES_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DES\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n# include <openssl/e_os2.h>\n\ntypedef unsigned int DES_LONG;\n\n# ifdef OPENSSL_BUILD_SHLIBCRYPTO\n#  undef OPENSSL_EXTERN\n#  define OPENSSL_EXTERN OPENSSL_EXPORT\n# endif\n\ntypedef unsigned char DES_cblock[8];\ntypedef /* const */ unsigned char const_DES_cblock[8];\n/*\n * With \"const\", gcc 2.8.1 on Solaris thinks that DES_cblock * and\n * const_DES_cblock * are incompatible pointer types.\n */\n\ntypedef struct DES_ks {\n    union {\n        DES_cblock cblock;\n        /*\n         * make sure things are correct size on machines with 8 byte longs\n         */\n        DES_LONG deslong[2];\n    } ks[16];\n} DES_key_schedule;\n\n# define DES_KEY_SZ      (sizeof(DES_cblock))\n# define DES_SCHEDULE_SZ (sizeof(DES_key_schedule))\n\n# define DES_ENCRYPT     1\n# define DES_DECRYPT     0\n\n# define DES_CBC_MODE    0\n# define DES_PCBC_MODE   1\n\n# define DES_ecb2_encrypt(i,o,k1,k2,e) \\\n        DES_ecb3_encrypt((i),(o),(k1),(k2),(k1),(e))\n\n# define DES_ede2_cbc_encrypt(i,o,l,k1,k2,iv,e) \\\n        DES_ede3_cbc_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(e))\n\n# define DES_ede2_cfb64_encrypt(i,o,l,k1,k2,iv,n,e) \\\n        DES_ede3_cfb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n),(e))\n\n# define DES_ede2_ofb64_encrypt(i,o,l,k1,k2,iv,n) \\\n        DES_ede3_ofb64_encrypt((i),(o),(l),(k1),(k2),(k1),(iv),(n))\n\nOPENSSL_DECLARE_GLOBAL(int, DES_check_key); /* defaults to false */\n# define DES_check_key OPENSSL_GLOBAL_REF(DES_check_key)\n\nconst char *DES_options(void);\nvoid DES_ecb3_encrypt(const_DES_cblock *input, DES_cblock *output,\n                      DES_key_schedule *ks1, DES_key_schedule *ks2,\n                      DES_key_schedule *ks3, int enc);\nDES_LONG DES_cbc_cksum(const unsigned char *input, DES_cblock *output,\n                       long length, DES_key_schedule *schedule,\n                       const_DES_cblock *ivec);\n/* DES_cbc_encrypt does not update the IV!  Use DES_ncbc_encrypt instead. */\nvoid DES_cbc_encrypt(const unsigned char *input, unsigned char *output,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec, int enc);\nvoid DES_ncbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, int enc);\nvoid DES_xcbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, const_DES_cblock *inw,\n                      const_DES_cblock *outw, int enc);\nvoid DES_cfb_encrypt(const unsigned char *in, unsigned char *out, int numbits,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec, int enc);\nvoid DES_ecb_encrypt(const_DES_cblock *input, DES_cblock *output,\n                     DES_key_schedule *ks, int enc);\n\n/*\n * This is the DES encryption function that gets called by just about every\n * other DES routine in the library.  You should not use this function except\n * to implement 'modes' of DES.  I say this because the functions that call\n * this routine do the conversion from 'char *' to long, and this needs to be\n * done to make sure 'non-aligned' memory access do not occur.  The\n * characters are loaded 'little endian'. Data is a pointer to 2 unsigned\n * long's and ks is the DES_key_schedule to use.  enc, is non zero specifies\n * encryption, zero if decryption.\n */\nvoid DES_encrypt1(DES_LONG *data, DES_key_schedule *ks, int enc);\n\n/*\n * This functions is the same as DES_encrypt1() except that the DES initial\n * permutation (IP) and final permutation (FP) have been left out.  As for\n * DES_encrypt1(), you should not use this function. It is used by the\n * routines in the library that implement triple DES. IP() DES_encrypt2()\n * DES_encrypt2() DES_encrypt2() FP() is the same as DES_encrypt1()\n * DES_encrypt1() DES_encrypt1() except faster :-).\n */\nvoid DES_encrypt2(DES_LONG *data, DES_key_schedule *ks, int enc);\n\nvoid DES_encrypt3(DES_LONG *data, DES_key_schedule *ks1,\n                  DES_key_schedule *ks2, DES_key_schedule *ks3);\nvoid DES_decrypt3(DES_LONG *data, DES_key_schedule *ks1,\n                  DES_key_schedule *ks2, DES_key_schedule *ks3);\nvoid DES_ede3_cbc_encrypt(const unsigned char *input, unsigned char *output,\n                          long length,\n                          DES_key_schedule *ks1, DES_key_schedule *ks2,\n                          DES_key_schedule *ks3, DES_cblock *ivec, int enc);\nvoid DES_ede3_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                            long length, DES_key_schedule *ks1,\n                            DES_key_schedule *ks2, DES_key_schedule *ks3,\n                            DES_cblock *ivec, int *num, int enc);\nvoid DES_ede3_cfb_encrypt(const unsigned char *in, unsigned char *out,\n                          int numbits, long length, DES_key_schedule *ks1,\n                          DES_key_schedule *ks2, DES_key_schedule *ks3,\n                          DES_cblock *ivec, int enc);\nvoid DES_ede3_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                            long length, DES_key_schedule *ks1,\n                            DES_key_schedule *ks2, DES_key_schedule *ks3,\n                            DES_cblock *ivec, int *num);\nchar *DES_fcrypt(const char *buf, const char *salt, char *ret);\nchar *DES_crypt(const char *buf, const char *salt);\nvoid DES_ofb_encrypt(const unsigned char *in, unsigned char *out, int numbits,\n                     long length, DES_key_schedule *schedule,\n                     DES_cblock *ivec);\nvoid DES_pcbc_encrypt(const unsigned char *input, unsigned char *output,\n                      long length, DES_key_schedule *schedule,\n                      DES_cblock *ivec, int enc);\nDES_LONG DES_quad_cksum(const unsigned char *input, DES_cblock output[],\n                        long length, int out_count, DES_cblock *seed);\nint DES_random_key(DES_cblock *ret);\nvoid DES_set_odd_parity(DES_cblock *key);\nint DES_check_key_parity(const_DES_cblock *key);\nint DES_is_weak_key(const_DES_cblock *key);\n/*\n * DES_set_key (= set_key = DES_key_sched = key_sched) calls\n * DES_set_key_checked if global variable DES_check_key is set,\n * DES_set_key_unchecked otherwise.\n */\nint DES_set_key(const_DES_cblock *key, DES_key_schedule *schedule);\nint DES_key_sched(const_DES_cblock *key, DES_key_schedule *schedule);\nint DES_set_key_checked(const_DES_cblock *key, DES_key_schedule *schedule);\nvoid DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule);\nvoid DES_string_to_key(const char *str, DES_cblock *key);\nvoid DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2);\nvoid DES_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, DES_key_schedule *schedule,\n                       DES_cblock *ivec, int *num, int enc);\nvoid DES_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, DES_key_schedule *schedule,\n                       DES_cblock *ivec, int *num);\n\n# define DES_fixup_key_parity DES_set_odd_parity\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/dh.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DH_H\n# define HEADER_DH_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DH\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/dherr.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# ifndef OPENSSL_DH_MAX_MODULUS_BITS\n#  define OPENSSL_DH_MAX_MODULUS_BITS    10000\n# endif\n\n# define OPENSSL_DH_FIPS_MIN_MODULUS_BITS 1024\n\n# define DH_FLAG_CACHE_MONT_P     0x01\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define DH_FLAG_NO_EXP_CONSTTIME 0x00\n# endif\n\n/*\n * If this flag is set the DH method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define DH_FLAG_FIPS_METHOD                     0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define DH_FLAG_NON_FIPS_ALLOW                  0x0400\n\n/* Already defined in ossl_typ.h */\n/* typedef struct dh_st DH; */\n/* typedef struct dh_method DH_METHOD; */\n\nDECLARE_ASN1_ITEM(DHparams)\n\n# define DH_GENERATOR_2          2\n/* #define DH_GENERATOR_3       3 */\n# define DH_GENERATOR_5          5\n\n/* DH_check error codes */\n# define DH_CHECK_P_NOT_PRIME            0x01\n# define DH_CHECK_P_NOT_SAFE_PRIME       0x02\n# define DH_UNABLE_TO_CHECK_GENERATOR    0x04\n# define DH_NOT_SUITABLE_GENERATOR       0x08\n# define DH_CHECK_Q_NOT_PRIME            0x10\n# define DH_CHECK_INVALID_Q_VALUE        0x20\n# define DH_CHECK_INVALID_J_VALUE        0x40\n\n/* DH_check_pub_key error codes */\n# define DH_CHECK_PUBKEY_TOO_SMALL       0x01\n# define DH_CHECK_PUBKEY_TOO_LARGE       0x02\n# define DH_CHECK_PUBKEY_INVALID         0x04\n\n/*\n * primes p where (p-1)/2 is prime too are called \"safe\"; we define this for\n * backward compatibility:\n */\n# define DH_CHECK_P_NOT_STRONG_PRIME     DH_CHECK_P_NOT_SAFE_PRIME\n\n# define d2i_DHparams_fp(fp,x) \\\n    (DH *)ASN1_d2i_fp((char *(*)())DH_new, \\\n                      (char *(*)())d2i_DHparams, \\\n                      (fp), \\\n                      (unsigned char **)(x))\n# define i2d_DHparams_fp(fp,x) \\\n    ASN1_i2d_fp(i2d_DHparams,(fp), (unsigned char *)(x))\n# define d2i_DHparams_bio(bp,x) \\\n    ASN1_d2i_bio_of(DH, DH_new, d2i_DHparams, bp, x)\n# define i2d_DHparams_bio(bp,x) \\\n    ASN1_i2d_bio_of_const(DH,i2d_DHparams,bp,x)\n\n# define d2i_DHxparams_fp(fp,x) \\\n    (DH *)ASN1_d2i_fp((char *(*)())DH_new, \\\n                      (char *(*)())d2i_DHxparams, \\\n                      (fp), \\\n                      (unsigned char **)(x))\n# define i2d_DHxparams_fp(fp,x) \\\n    ASN1_i2d_fp(i2d_DHxparams,(fp), (unsigned char *)(x))\n# define d2i_DHxparams_bio(bp,x) \\\n    ASN1_d2i_bio_of(DH, DH_new, d2i_DHxparams, bp, x)\n# define i2d_DHxparams_bio(bp,x) \\\n    ASN1_i2d_bio_of_const(DH, i2d_DHxparams, bp, x)\n\nDH *DHparams_dup(DH *);\n\nconst DH_METHOD *DH_OpenSSL(void);\n\nvoid DH_set_default_method(const DH_METHOD *meth);\nconst DH_METHOD *DH_get_default_method(void);\nint DH_set_method(DH *dh, const DH_METHOD *meth);\nDH *DH_new_method(ENGINE *engine);\n\nDH *DH_new(void);\nvoid DH_free(DH *dh);\nint DH_up_ref(DH *dh);\nint DH_bits(const DH *dh);\nint DH_size(const DH *dh);\nint DH_security_bits(const DH *dh);\n#define DH_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DH, l, p, newf, dupf, freef)\nint DH_set_ex_data(DH *d, int idx, void *arg);\nvoid *DH_get_ex_data(DH *d, int idx);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(DH *DH_generate_parameters(int prime_len, int generator,\n                                              void (*callback) (int, int,\n                                                                void *),\n                                              void *cb_arg))\n\n/* New version */\nint DH_generate_parameters_ex(DH *dh, int prime_len, int generator,\n                              BN_GENCB *cb);\n\nint DH_check_params_ex(const DH *dh);\nint DH_check_ex(const DH *dh);\nint DH_check_pub_key_ex(const DH *dh, const BIGNUM *pub_key);\nint DH_check_params(const DH *dh, int *ret);\nint DH_check(const DH *dh, int *codes);\nint DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *codes);\nint DH_generate_key(DH *dh);\nint DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);\nint DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);\nDH *d2i_DHparams(DH **a, const unsigned char **pp, long length);\nint i2d_DHparams(const DH *a, unsigned char **pp);\nDH *d2i_DHxparams(DH **a, const unsigned char **pp, long length);\nint i2d_DHxparams(const DH *a, unsigned char **pp);\n# ifndef OPENSSL_NO_STDIO\nint DHparams_print_fp(FILE *fp, const DH *x);\n# endif\nint DHparams_print(BIO *bp, const DH *x);\n\n/* RFC 5114 parameters */\nDH *DH_get_1024_160(void);\nDH *DH_get_2048_224(void);\nDH *DH_get_2048_256(void);\n\n/* Named parameters, currently RFC7919 */\nDH *DH_new_by_nid(int nid);\nint DH_get_nid(const DH *dh);\n\n# ifndef OPENSSL_NO_CMS\n/* RFC2631 KDF */\nint DH_KDF_X9_42(unsigned char *out, size_t outlen,\n                 const unsigned char *Z, size_t Zlen,\n                 ASN1_OBJECT *key_oid,\n                 const unsigned char *ukm, size_t ukmlen, const EVP_MD *md);\n# endif\n\nvoid DH_get0_pqg(const DH *dh,\n                 const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);\nint DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);\nvoid DH_get0_key(const DH *dh,\n                 const BIGNUM **pub_key, const BIGNUM **priv_key);\nint DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);\nconst BIGNUM *DH_get0_p(const DH *dh);\nconst BIGNUM *DH_get0_q(const DH *dh);\nconst BIGNUM *DH_get0_g(const DH *dh);\nconst BIGNUM *DH_get0_priv_key(const DH *dh);\nconst BIGNUM *DH_get0_pub_key(const DH *dh);\nvoid DH_clear_flags(DH *dh, int flags);\nint DH_test_flags(const DH *dh, int flags);\nvoid DH_set_flags(DH *dh, int flags);\nENGINE *DH_get0_engine(DH *d);\nlong DH_get_length(const DH *dh);\nint DH_set_length(DH *dh, long length);\n\nDH_METHOD *DH_meth_new(const char *name, int flags);\nvoid DH_meth_free(DH_METHOD *dhm);\nDH_METHOD *DH_meth_dup(const DH_METHOD *dhm);\nconst char *DH_meth_get0_name(const DH_METHOD *dhm);\nint DH_meth_set1_name(DH_METHOD *dhm, const char *name);\nint DH_meth_get_flags(const DH_METHOD *dhm);\nint DH_meth_set_flags(DH_METHOD *dhm, int flags);\nvoid *DH_meth_get0_app_data(const DH_METHOD *dhm);\nint DH_meth_set0_app_data(DH_METHOD *dhm, void *app_data);\nint (*DH_meth_get_generate_key(const DH_METHOD *dhm)) (DH *);\nint DH_meth_set_generate_key(DH_METHOD *dhm, int (*generate_key) (DH *));\nint (*DH_meth_get_compute_key(const DH_METHOD *dhm))\n        (unsigned char *key, const BIGNUM *pub_key, DH *dh);\nint DH_meth_set_compute_key(DH_METHOD *dhm,\n        int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh));\nint (*DH_meth_get_bn_mod_exp(const DH_METHOD *dhm))\n    (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n     BN_CTX *, BN_MONT_CTX *);\nint DH_meth_set_bn_mod_exp(DH_METHOD *dhm,\n    int (*bn_mod_exp) (const DH *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                       const BIGNUM *, BN_CTX *, BN_MONT_CTX *));\nint (*DH_meth_get_init(const DH_METHOD *dhm))(DH *);\nint DH_meth_set_init(DH_METHOD *dhm, int (*init)(DH *));\nint (*DH_meth_get_finish(const DH_METHOD *dhm)) (DH *);\nint DH_meth_set_finish(DH_METHOD *dhm, int (*finish) (DH *));\nint (*DH_meth_get_generate_params(const DH_METHOD *dhm))\n        (DH *, int, int, BN_GENCB *);\nint DH_meth_set_generate_params(DH_METHOD *dhm,\n        int (*generate_params) (DH *, int, int, BN_GENCB *));\n\n\n# define EVP_PKEY_CTX_set_dh_paramgen_prime_len(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN, len, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_subprime_len(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN, len, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_type(ctx, typ) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_TYPE, typ, NULL)\n\n# define EVP_PKEY_CTX_set_dh_paramgen_generator(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dh_rfc5114(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_RFC5114, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dhx_rfc5114(ctx, gen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, EVP_PKEY_OP_PARAMGEN, \\\n                        EVP_PKEY_CTRL_DH_RFC5114, gen, NULL)\n\n# define EVP_PKEY_CTX_set_dh_nid(ctx, nid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, \\\n                        EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN, \\\n                        EVP_PKEY_CTRL_DH_NID, nid, NULL)\n\n# define EVP_PKEY_CTX_set_dh_pad(ctx, pad) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DH, EVP_PKEY_OP_DERIVE, \\\n                          EVP_PKEY_CTRL_DH_PAD, pad, NULL)\n\n# define EVP_PKEY_CTX_set_dh_kdf_type(ctx, kdf) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL)\n\n# define EVP_PKEY_CTX_get_dh_kdf_type(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_TYPE, -2, NULL)\n\n# define EVP_PKEY_CTX_set0_dh_kdf_oid(ctx, oid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_OID, 0, (void *)(oid))\n\n# define EVP_PKEY_CTX_get0_dh_kdf_oid(ctx, poid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_OID, 0, (void *)(poid))\n\n# define EVP_PKEY_CTX_set_dh_kdf_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_get_dh_kdf_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_MD, 0, (void *)(pmd))\n\n# define EVP_PKEY_CTX_set_dh_kdf_outlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_OUTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_dh_kdf_outlen(ctx, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                        EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN, 0, (void *)(plen))\n\n# define EVP_PKEY_CTX_set0_dh_kdf_ukm(ctx, p, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_DH_KDF_UKM, plen, (void *)(p))\n\n# define EVP_PKEY_CTX_get0_dh_kdf_ukm(ctx, p) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DHX, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_DH_KDF_UKM, 0, (void *)(p))\n\n# define EVP_PKEY_CTRL_DH_PARAMGEN_PRIME_LEN     (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_GENERATOR     (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_DH_RFC5114                (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_SUBPRIME_LEN  (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_DH_PARAMGEN_TYPE          (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_DH_KDF_TYPE               (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_DH_KDF_MD                 (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_DH_KDF_MD             (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_DH_KDF_OUTLEN             (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_GET_DH_KDF_OUTLEN         (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_DH_KDF_UKM                (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET_DH_KDF_UKM            (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_DH_KDF_OID                (EVP_PKEY_ALG_CTRL + 13)\n# define EVP_PKEY_CTRL_GET_DH_KDF_OID            (EVP_PKEY_ALG_CTRL + 14)\n# define EVP_PKEY_CTRL_DH_NID                    (EVP_PKEY_ALG_CTRL + 15)\n# define EVP_PKEY_CTRL_DH_PAD                    (EVP_PKEY_ALG_CTRL + 16)\n\n/* KDF types */\n# define EVP_PKEY_DH_KDF_NONE                            1\n# ifndef OPENSSL_NO_CMS\n# define EVP_PKEY_DH_KDF_X9_42                           2\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/dherr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DHERR_H\n# define HEADER_DHERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DH\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_DH_strings(void);\n\n/*\n * DH function codes.\n */\n#  define DH_F_COMPUTE_KEY                                 102\n#  define DH_F_DHPARAMS_PRINT_FP                           101\n#  define DH_F_DH_BUILTIN_GENPARAMS                        106\n#  define DH_F_DH_CHECK_EX                                 121\n#  define DH_F_DH_CHECK_PARAMS_EX                          122\n#  define DH_F_DH_CHECK_PUB_KEY_EX                         123\n#  define DH_F_DH_CMS_DECRYPT                              114\n#  define DH_F_DH_CMS_SET_PEERKEY                          115\n#  define DH_F_DH_CMS_SET_SHARED_INFO                      116\n#  define DH_F_DH_METH_DUP                                 117\n#  define DH_F_DH_METH_NEW                                 118\n#  define DH_F_DH_METH_SET1_NAME                           119\n#  define DH_F_DH_NEW_BY_NID                               104\n#  define DH_F_DH_NEW_METHOD                               105\n#  define DH_F_DH_PARAM_DECODE                             107\n#  define DH_F_DH_PKEY_PUBLIC_CHECK                        124\n#  define DH_F_DH_PRIV_DECODE                              110\n#  define DH_F_DH_PRIV_ENCODE                              111\n#  define DH_F_DH_PUB_DECODE                               108\n#  define DH_F_DH_PUB_ENCODE                               109\n#  define DH_F_DO_DH_PRINT                                 100\n#  define DH_F_GENERATE_KEY                                103\n#  define DH_F_PKEY_DH_CTRL_STR                            120\n#  define DH_F_PKEY_DH_DERIVE                              112\n#  define DH_F_PKEY_DH_INIT                                125\n#  define DH_F_PKEY_DH_KEYGEN                              113\n\n/*\n * DH reason codes.\n */\n#  define DH_R_BAD_GENERATOR                               101\n#  define DH_R_BN_DECODE_ERROR                             109\n#  define DH_R_BN_ERROR                                    106\n#  define DH_R_CHECK_INVALID_J_VALUE                       115\n#  define DH_R_CHECK_INVALID_Q_VALUE                       116\n#  define DH_R_CHECK_PUBKEY_INVALID                        122\n#  define DH_R_CHECK_PUBKEY_TOO_LARGE                      123\n#  define DH_R_CHECK_PUBKEY_TOO_SMALL                      124\n#  define DH_R_CHECK_P_NOT_PRIME                           117\n#  define DH_R_CHECK_P_NOT_SAFE_PRIME                      118\n#  define DH_R_CHECK_Q_NOT_PRIME                           119\n#  define DH_R_DECODE_ERROR                                104\n#  define DH_R_INVALID_PARAMETER_NAME                      110\n#  define DH_R_INVALID_PARAMETER_NID                       114\n#  define DH_R_INVALID_PUBKEY                              102\n#  define DH_R_KDF_PARAMETER_ERROR                         112\n#  define DH_R_KEYS_NOT_SET                                108\n#  define DH_R_MISSING_PUBKEY                              125\n#  define DH_R_MODULUS_TOO_LARGE                           103\n#  define DH_R_NOT_SUITABLE_GENERATOR                      120\n#  define DH_R_NO_PARAMETERS_SET                           107\n#  define DH_R_NO_PRIVATE_VALUE                            100\n#  define DH_R_PARAMETER_ENCODING_ERROR                    105\n#  define DH_R_PEER_KEY_ERROR                              111\n#  define DH_R_SHARED_INFO_ERROR                           113\n#  define DH_R_UNABLE_TO_CHECK_GENERATOR                   121\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/dsa.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DSA_H\n# define HEADER_DSA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DSA\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/bn.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/dh.h>\n# endif\n# include <openssl/dsaerr.h>\n\n# ifndef OPENSSL_DSA_MAX_MODULUS_BITS\n#  define OPENSSL_DSA_MAX_MODULUS_BITS   10000\n# endif\n\n# define OPENSSL_DSA_FIPS_MIN_MODULUS_BITS 1024\n\n# define DSA_FLAG_CACHE_MONT_P   0x01\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define DSA_FLAG_NO_EXP_CONSTTIME       0x00\n# endif\n\n/*\n * If this flag is set the DSA method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define DSA_FLAG_FIPS_METHOD                    0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define DSA_FLAG_NON_FIPS_ALLOW                 0x0400\n# define DSA_FLAG_FIPS_CHECKED                   0x0800\n\n/* Already defined in ossl_typ.h */\n/* typedef struct dsa_st DSA; */\n/* typedef struct dsa_method DSA_METHOD; */\n\ntypedef struct DSA_SIG_st DSA_SIG;\n\n# define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \\\n                (char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x))\n# define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \\\n                (unsigned char *)(x))\n# define d2i_DSAparams_bio(bp,x) ASN1_d2i_bio_of(DSA,DSA_new,d2i_DSAparams,bp,x)\n# define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio_of_const(DSA,i2d_DSAparams,bp,x)\n\nDSA *DSAparams_dup(DSA *x);\nDSA_SIG *DSA_SIG_new(void);\nvoid DSA_SIG_free(DSA_SIG *a);\nint i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);\nDSA_SIG *d2i_DSA_SIG(DSA_SIG **v, const unsigned char **pp, long length);\nvoid DSA_SIG_get0(const DSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);\nint DSA_SIG_set0(DSA_SIG *sig, BIGNUM *r, BIGNUM *s);\n\nDSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);\nint DSA_do_verify(const unsigned char *dgst, int dgst_len,\n                  DSA_SIG *sig, DSA *dsa);\n\nconst DSA_METHOD *DSA_OpenSSL(void);\n\nvoid DSA_set_default_method(const DSA_METHOD *);\nconst DSA_METHOD *DSA_get_default_method(void);\nint DSA_set_method(DSA *dsa, const DSA_METHOD *);\nconst DSA_METHOD *DSA_get_method(DSA *d);\n\nDSA *DSA_new(void);\nDSA *DSA_new_method(ENGINE *engine);\nvoid DSA_free(DSA *r);\n/* \"up\" the DSA object's reference count */\nint DSA_up_ref(DSA *r);\nint DSA_size(const DSA *);\nint DSA_bits(const DSA *d);\nint DSA_security_bits(const DSA *d);\n        /* next 4 return -1 on error */\nDEPRECATEDIN_1_2_0(int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp))\nint DSA_sign(int type, const unsigned char *dgst, int dlen,\n             unsigned char *sig, unsigned int *siglen, DSA *dsa);\nint DSA_verify(int type, const unsigned char *dgst, int dgst_len,\n               const unsigned char *sigbuf, int siglen, DSA *dsa);\n#define DSA_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DSA, l, p, newf, dupf, freef)\nint DSA_set_ex_data(DSA *d, int idx, void *arg);\nvoid *DSA_get_ex_data(DSA *d, int idx);\n\nDSA *d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);\nDSA *d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);\nDSA *d2i_DSAparams(DSA **a, const unsigned char **pp, long length);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,\n                                                unsigned char *seed,\n                                                int seed_len,\n                                                int *counter_ret,\n                                                unsigned long *h_ret, void\n                                                 (*callback) (int, int,\n                                                              void *),\n                                                void *cb_arg))\n\n/* New version */\nint DSA_generate_parameters_ex(DSA *dsa, int bits,\n                               const unsigned char *seed, int seed_len,\n                               int *counter_ret, unsigned long *h_ret,\n                               BN_GENCB *cb);\n\nint DSA_generate_key(DSA *a);\nint i2d_DSAPublicKey(const DSA *a, unsigned char **pp);\nint i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);\nint i2d_DSAparams(const DSA *a, unsigned char **pp);\n\nint DSAparams_print(BIO *bp, const DSA *x);\nint DSA_print(BIO *bp, const DSA *x, int off);\n# ifndef OPENSSL_NO_STDIO\nint DSAparams_print_fp(FILE *fp, const DSA *x);\nint DSA_print_fp(FILE *bp, const DSA *x, int off);\n# endif\n\n# define DSS_prime_checks 64\n/*\n * Primality test according to FIPS PUB 186-4, Appendix C.3. Since we only\n * have one value here we set the number of checks to 64 which is the 128 bit\n * security level that is the highest level and valid for creating a 3072 bit\n * DSA key.\n */\n# define DSA_is_prime(n, callback, cb_arg) \\\n        BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg)\n\n# ifndef OPENSSL_NO_DH\n/*\n * Convert DSA structure (key or just parameters) into DH structure (be\n * careful to avoid small subgroup attacks when using this!)\n */\nDH *DSA_dup_DH(const DSA *r);\n# endif\n\n# define EVP_PKEY_CTX_set_dsa_paramgen_bits(ctx, nbits) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_BITS, nbits, NULL)\n# define EVP_PKEY_CTX_set_dsa_paramgen_q_bits(ctx, qbits) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS, qbits, NULL)\n# define EVP_PKEY_CTX_set_dsa_paramgen_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_DSA, EVP_PKEY_OP_PARAMGEN, \\\n                                EVP_PKEY_CTRL_DSA_PARAMGEN_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_BITS         (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_Q_BITS       (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_DSA_PARAMGEN_MD           (EVP_PKEY_ALG_CTRL + 3)\n\nvoid DSA_get0_pqg(const DSA *d,\n                  const BIGNUM **p, const BIGNUM **q, const BIGNUM **g);\nint DSA_set0_pqg(DSA *d, BIGNUM *p, BIGNUM *q, BIGNUM *g);\nvoid DSA_get0_key(const DSA *d,\n                  const BIGNUM **pub_key, const BIGNUM **priv_key);\nint DSA_set0_key(DSA *d, BIGNUM *pub_key, BIGNUM *priv_key);\nconst BIGNUM *DSA_get0_p(const DSA *d);\nconst BIGNUM *DSA_get0_q(const DSA *d);\nconst BIGNUM *DSA_get0_g(const DSA *d);\nconst BIGNUM *DSA_get0_pub_key(const DSA *d);\nconst BIGNUM *DSA_get0_priv_key(const DSA *d);\nvoid DSA_clear_flags(DSA *d, int flags);\nint DSA_test_flags(const DSA *d, int flags);\nvoid DSA_set_flags(DSA *d, int flags);\nENGINE *DSA_get0_engine(DSA *d);\n\nDSA_METHOD *DSA_meth_new(const char *name, int flags);\nvoid DSA_meth_free(DSA_METHOD *dsam);\nDSA_METHOD *DSA_meth_dup(const DSA_METHOD *dsam);\nconst char *DSA_meth_get0_name(const DSA_METHOD *dsam);\nint DSA_meth_set1_name(DSA_METHOD *dsam, const char *name);\nint DSA_meth_get_flags(const DSA_METHOD *dsam);\nint DSA_meth_set_flags(DSA_METHOD *dsam, int flags);\nvoid *DSA_meth_get0_app_data(const DSA_METHOD *dsam);\nint DSA_meth_set0_app_data(DSA_METHOD *dsam, void *app_data);\nDSA_SIG *(*DSA_meth_get_sign(const DSA_METHOD *dsam))\n        (const unsigned char *, int, DSA *);\nint DSA_meth_set_sign(DSA_METHOD *dsam,\n                       DSA_SIG *(*sign) (const unsigned char *, int, DSA *));\nint (*DSA_meth_get_sign_setup(const DSA_METHOD *dsam))\n        (DSA *, BN_CTX *, BIGNUM **, BIGNUM **);\nint DSA_meth_set_sign_setup(DSA_METHOD *dsam,\n        int (*sign_setup) (DSA *, BN_CTX *, BIGNUM **, BIGNUM **));\nint (*DSA_meth_get_verify(const DSA_METHOD *dsam))\n        (const unsigned char *, int, DSA_SIG *, DSA *);\nint DSA_meth_set_verify(DSA_METHOD *dsam,\n    int (*verify) (const unsigned char *, int, DSA_SIG *, DSA *));\nint (*DSA_meth_get_mod_exp(const DSA_METHOD *dsam))\n        (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n         const BIGNUM *, const BIGNUM *, BN_CTX *, BN_MONT_CTX *);\nint DSA_meth_set_mod_exp(DSA_METHOD *dsam,\n    int (*mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                    const BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *,\n                    BN_MONT_CTX *));\nint (*DSA_meth_get_bn_mod_exp(const DSA_METHOD *dsam))\n    (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *, const BIGNUM *,\n     BN_CTX *, BN_MONT_CTX *);\nint DSA_meth_set_bn_mod_exp(DSA_METHOD *dsam,\n    int (*bn_mod_exp) (DSA *, BIGNUM *, const BIGNUM *, const BIGNUM *,\n                       const BIGNUM *, BN_CTX *, BN_MONT_CTX *));\nint (*DSA_meth_get_init(const DSA_METHOD *dsam))(DSA *);\nint DSA_meth_set_init(DSA_METHOD *dsam, int (*init)(DSA *));\nint (*DSA_meth_get_finish(const DSA_METHOD *dsam)) (DSA *);\nint DSA_meth_set_finish(DSA_METHOD *dsam, int (*finish) (DSA *));\nint (*DSA_meth_get_paramgen(const DSA_METHOD *dsam))\n        (DSA *, int, const unsigned char *, int, int *, unsigned long *,\n         BN_GENCB *);\nint DSA_meth_set_paramgen(DSA_METHOD *dsam,\n        int (*paramgen) (DSA *, int, const unsigned char *, int, int *,\n                         unsigned long *, BN_GENCB *));\nint (*DSA_meth_get_keygen(const DSA_METHOD *dsam)) (DSA *);\nint DSA_meth_set_keygen(DSA_METHOD *dsam, int (*keygen) (DSA *));\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/dsaerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DSAERR_H\n# define HEADER_DSAERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_DSA\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_DSA_strings(void);\n\n/*\n * DSA function codes.\n */\n#  define DSA_F_DSAPARAMS_PRINT                            100\n#  define DSA_F_DSAPARAMS_PRINT_FP                         101\n#  define DSA_F_DSA_BUILTIN_PARAMGEN                       125\n#  define DSA_F_DSA_BUILTIN_PARAMGEN2                      126\n#  define DSA_F_DSA_DO_SIGN                                112\n#  define DSA_F_DSA_DO_VERIFY                              113\n#  define DSA_F_DSA_METH_DUP                               127\n#  define DSA_F_DSA_METH_NEW                               128\n#  define DSA_F_DSA_METH_SET1_NAME                         129\n#  define DSA_F_DSA_NEW_METHOD                             103\n#  define DSA_F_DSA_PARAM_DECODE                           119\n#  define DSA_F_DSA_PRINT_FP                               105\n#  define DSA_F_DSA_PRIV_DECODE                            115\n#  define DSA_F_DSA_PRIV_ENCODE                            116\n#  define DSA_F_DSA_PUB_DECODE                             117\n#  define DSA_F_DSA_PUB_ENCODE                             118\n#  define DSA_F_DSA_SIGN                                   106\n#  define DSA_F_DSA_SIGN_SETUP                             107\n#  define DSA_F_DSA_SIG_NEW                                102\n#  define DSA_F_OLD_DSA_PRIV_DECODE                        122\n#  define DSA_F_PKEY_DSA_CTRL                              120\n#  define DSA_F_PKEY_DSA_CTRL_STR                          104\n#  define DSA_F_PKEY_DSA_KEYGEN                            121\n\n/*\n * DSA reason codes.\n */\n#  define DSA_R_BAD_Q_VALUE                                102\n#  define DSA_R_BN_DECODE_ERROR                            108\n#  define DSA_R_BN_ERROR                                   109\n#  define DSA_R_DECODE_ERROR                               104\n#  define DSA_R_INVALID_DIGEST_TYPE                        106\n#  define DSA_R_INVALID_PARAMETERS                         112\n#  define DSA_R_MISSING_PARAMETERS                         101\n#  define DSA_R_MISSING_PRIVATE_KEY                        111\n#  define DSA_R_MODULUS_TOO_LARGE                          103\n#  define DSA_R_NO_PARAMETERS_SET                          107\n#  define DSA_R_PARAMETER_ENCODING_ERROR                   105\n#  define DSA_R_Q_NOT_PRIME                                113\n#  define DSA_R_SEED_LEN_SMALL                             110\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/dtls1.h",
    "content": "/*\n * Copyright 2005-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DTLS1_H\n# define HEADER_DTLS1_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define DTLS1_VERSION                   0xFEFF\n# define DTLS1_2_VERSION                 0xFEFD\n# define DTLS_MIN_VERSION                DTLS1_VERSION\n# define DTLS_MAX_VERSION                DTLS1_2_VERSION\n# define DTLS1_VERSION_MAJOR             0xFE\n\n# define DTLS1_BAD_VER                   0x0100\n\n/* Special value for method supporting multiple versions */\n# define DTLS_ANY_VERSION                0x1FFFF\n\n/* lengths of messages */\n/*\n * Actually the max cookie length in DTLS is 255. But we can't change this now\n * due to compatibility concerns.\n */\n# define DTLS1_COOKIE_LENGTH                     256\n\n# define DTLS1_RT_HEADER_LENGTH                  13\n\n# define DTLS1_HM_HEADER_LENGTH                  12\n\n# define DTLS1_HM_BAD_FRAGMENT                   -2\n# define DTLS1_HM_FRAGMENT_RETRY                 -3\n\n# define DTLS1_CCS_HEADER_LENGTH                  1\n\n# define DTLS1_AL_HEADER_LENGTH                   2\n\n/* Timeout multipliers */\n# define DTLS1_TMO_READ_COUNT                      2\n# define DTLS1_TMO_WRITE_COUNT                     2\n\n# define DTLS1_TMO_ALERT_COUNT                     12\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/e_os2.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_E_OS2_H\n# define HEADER_E_OS2_H\n\n# include <openssl/opensslconf.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/******************************************************************************\n * Detect operating systems.  This probably needs completing.\n * The result is that at least one OPENSSL_SYS_os macro should be defined.\n * However, if none is defined, Unix is assumed.\n **/\n\n# define OPENSSL_SYS_UNIX\n\n/* --------------------- Microsoft operating systems ---------------------- */\n\n/*\n * Note that MSDOS actually denotes 32-bit environments running on top of\n * MS-DOS, such as DJGPP one.\n */\n# if defined(OPENSSL_SYS_MSDOS)\n#  undef OPENSSL_SYS_UNIX\n# endif\n\n/*\n * For 32 bit environment, there seems to be the CygWin environment and then\n * all the others that try to do the same thing Microsoft does...\n */\n/*\n * UEFI lives here because it might be built with a Microsoft toolchain and\n * we need to avoid the false positive match on Windows.\n */\n# if defined(OPENSSL_SYS_UEFI)\n#  undef OPENSSL_SYS_UNIX\n# elif defined(OPENSSL_SYS_UWIN)\n#  undef OPENSSL_SYS_UNIX\n#  define OPENSSL_SYS_WIN32_UWIN\n# else\n#  if defined(__CYGWIN__) || defined(OPENSSL_SYS_CYGWIN)\n#   define OPENSSL_SYS_WIN32_CYGWIN\n#  else\n#   if defined(_WIN32) || defined(OPENSSL_SYS_WIN32)\n#    undef OPENSSL_SYS_UNIX\n#    if !defined(OPENSSL_SYS_WIN32)\n#     define OPENSSL_SYS_WIN32\n#    endif\n#   endif\n#   if defined(_WIN64) || defined(OPENSSL_SYS_WIN64)\n#    undef OPENSSL_SYS_UNIX\n#    if !defined(OPENSSL_SYS_WIN64)\n#     define OPENSSL_SYS_WIN64\n#    endif\n#   endif\n#   if defined(OPENSSL_SYS_WINNT)\n#    undef OPENSSL_SYS_UNIX\n#   endif\n#   if defined(OPENSSL_SYS_WINCE)\n#    undef OPENSSL_SYS_UNIX\n#   endif\n#  endif\n# endif\n\n/* Anything that tries to look like Microsoft is \"Windows\" */\n# if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN64) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)\n#  undef OPENSSL_SYS_UNIX\n#  define OPENSSL_SYS_WINDOWS\n#  ifndef OPENSSL_SYS_MSDOS\n#   define OPENSSL_SYS_MSDOS\n#  endif\n# endif\n\n/*\n * DLL settings.  This part is a bit tough, because it's up to the\n * application implementor how he or she will link the application, so it\n * requires some macro to be used.\n */\n# ifdef OPENSSL_SYS_WINDOWS\n#  ifndef OPENSSL_OPT_WINDLL\n#   if defined(_WINDLL)         /* This is used when building OpenSSL to\n                                 * indicate that DLL linkage should be used */\n#    define OPENSSL_OPT_WINDLL\n#   endif\n#  endif\n# endif\n\n/* ------------------------------- OpenVMS -------------------------------- */\n# if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYS_VMS)\n#  if !defined(OPENSSL_SYS_VMS)\n#   undef OPENSSL_SYS_UNIX\n#  endif\n#  define OPENSSL_SYS_VMS\n#  if defined(__DECC)\n#   define OPENSSL_SYS_VMS_DECC\n#  elif defined(__DECCXX)\n#   define OPENSSL_SYS_VMS_DECC\n#   define OPENSSL_SYS_VMS_DECCXX\n#  else\n#   define OPENSSL_SYS_VMS_NODECC\n#  endif\n# endif\n\n/* -------------------------------- Unix ---------------------------------- */\n# ifdef OPENSSL_SYS_UNIX\n#  if defined(linux) || defined(__linux__) && !defined(OPENSSL_SYS_LINUX)\n#   define OPENSSL_SYS_LINUX\n#  endif\n#  if defined(_AIX) && !defined(OPENSSL_SYS_AIX)\n#   define OPENSSL_SYS_AIX\n#  endif\n# endif\n\n/* -------------------------------- VOS ----------------------------------- */\n# if defined(__VOS__) && !defined(OPENSSL_SYS_VOS)\n#  define OPENSSL_SYS_VOS\n#  ifdef __HPPA__\n#   define OPENSSL_SYS_VOS_HPPA\n#  endif\n#  ifdef __IA32__\n#   define OPENSSL_SYS_VOS_IA32\n#  endif\n# endif\n\n/**\n * That's it for OS-specific stuff\n *****************************************************************************/\n\n/* Specials for I/O an exit */\n# ifdef OPENSSL_SYS_MSDOS\n#  define OPENSSL_UNISTD_IO <io.h>\n#  define OPENSSL_DECLARE_EXIT extern void exit(int);\n# else\n#  define OPENSSL_UNISTD_IO OPENSSL_UNISTD\n#  define OPENSSL_DECLARE_EXIT  /* declared in unistd.h */\n# endif\n\n/*-\n * OPENSSL_EXTERN is normally used to declare a symbol with possible extra\n * attributes to handle its presence in a shared library.\n * OPENSSL_EXPORT is used to define a symbol with extra possible attributes\n * to make it visible in a shared library.\n * Care needs to be taken when a header file is used both to declare and\n * define symbols.  Basically, for any library that exports some global\n * variables, the following code must be present in the header file that\n * declares them, before OPENSSL_EXTERN is used:\n *\n * #ifdef SOME_BUILD_FLAG_MACRO\n * # undef OPENSSL_EXTERN\n * # define OPENSSL_EXTERN OPENSSL_EXPORT\n * #endif\n *\n * The default is to have OPENSSL_EXPORT and OPENSSL_EXTERN\n * have some generally sensible values.\n */\n\n# if defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)\n#  define OPENSSL_EXPORT extern __declspec(dllexport)\n#  define OPENSSL_EXTERN extern __declspec(dllimport)\n# else\n#  define OPENSSL_EXPORT extern\n#  define OPENSSL_EXTERN extern\n# endif\n\n/*-\n * Macros to allow global variables to be reached through function calls when\n * required (if a shared library version requires it, for example.\n * The way it's done allows definitions like this:\n *\n *      // in foobar.c\n *      OPENSSL_IMPLEMENT_GLOBAL(int,foobar,0)\n *      // in foobar.h\n *      OPENSSL_DECLARE_GLOBAL(int,foobar);\n *      #define foobar OPENSSL_GLOBAL_REF(foobar)\n */\n# ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION\n#  define OPENSSL_IMPLEMENT_GLOBAL(type,name,value)                      \\\n        type *_shadow_##name(void)                                      \\\n        { static type _hide_##name=value; return &_hide_##name; }\n#  define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)\n#  define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))\n# else\n#  define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) type _shadow_##name=value;\n#  define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name\n#  define OPENSSL_GLOBAL_REF(name) _shadow_##name\n# endif\n\n# ifdef _WIN32\n#  ifdef _WIN64\n#   define ossl_ssize_t __int64\n#   define OSSL_SSIZE_MAX _I64_MAX\n#  else\n#   define ossl_ssize_t int\n#   define OSSL_SSIZE_MAX INT_MAX\n#  endif\n# endif\n\n# if defined(OPENSSL_SYS_UEFI) && !defined(ossl_ssize_t)\n#  define ossl_ssize_t INTN\n#  define OSSL_SSIZE_MAX MAX_INTN\n# endif\n\n# ifndef ossl_ssize_t\n#  define ossl_ssize_t ssize_t\n#  if defined(SSIZE_MAX)\n#   define OSSL_SSIZE_MAX SSIZE_MAX\n#  elif defined(_POSIX_SSIZE_MAX)\n#   define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX\n#  else\n#   define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX>>1))\n#  endif\n# endif\n\n# ifdef DEBUG_UNUSED\n#  define __owur __attribute__((__warn_unused_result__))\n# else\n#  define __owur\n# endif\n\n/* Standard integer types */\n# if defined(OPENSSL_SYS_UEFI)\ntypedef INT8 int8_t;\ntypedef UINT8 uint8_t;\ntypedef INT16 int16_t;\ntypedef UINT16 uint16_t;\ntypedef INT32 int32_t;\ntypedef UINT32 uint32_t;\ntypedef INT64 int64_t;\ntypedef UINT64 uint64_t;\n# elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \\\n     defined(__osf__) || defined(__sgi) || defined(__hpux) || \\\n     defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)\n#  include <inttypes.h>\n# elif defined(_MSC_VER) && _MSC_VER<1600\n/*\n * minimally required typdefs for systems not supporting inttypes.h or\n * stdint.h: currently just older VC++\n */\ntypedef signed char int8_t;\ntypedef unsigned char uint8_t;\ntypedef short int16_t;\ntypedef unsigned short uint16_t;\ntypedef int int32_t;\ntypedef unsigned int uint32_t;\ntypedef __int64 int64_t;\ntypedef unsigned __int64 uint64_t;\n# else\n#  include <stdint.h>\n# endif\n\n/* ossl_inline: portable inline definition usable in public headers */\n# if !defined(inline) && !defined(__cplusplus)\n#  if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L\n   /* just use inline */\n#   define ossl_inline inline\n#  elif defined(__GNUC__) && __GNUC__>=2\n#   define ossl_inline __inline__\n#  elif defined(_MSC_VER)\n  /*\n   * Visual Studio: inline is available in C++ only, however\n   * __inline is available for C, see\n   * http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx\n   */\n#   define ossl_inline __inline\n#  else\n#   define ossl_inline\n#  endif\n# else\n#  define ossl_inline inline\n# endif\n\n# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L\n#  define ossl_noreturn _Noreturn\n# elif defined(__GNUC__) && __GNUC__ >= 2\n#  define ossl_noreturn __attribute__((noreturn))\n# else\n#  define ossl_noreturn\n# endif\n\n/* ossl_unused: portable unused attribute for use in public headers */\n# if defined(__GNUC__)\n#  define ossl_unused __attribute__((unused))\n# else\n#  define ossl_unused\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ebcdic.h",
    "content": "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EBCDIC_H\n# define HEADER_EBCDIC_H\n\n# include <stdlib.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Avoid name clashes with other applications */\n# define os_toascii   _openssl_os_toascii\n# define os_toebcdic  _openssl_os_toebcdic\n# define ebcdic2ascii _openssl_ebcdic2ascii\n# define ascii2ebcdic _openssl_ascii2ebcdic\n\nextern const unsigned char os_toascii[256];\nextern const unsigned char os_toebcdic[256];\nvoid *ebcdic2ascii(void *dest, const void *srce, size_t count);\nvoid *ascii2ebcdic(void *dest, const void *srce, size_t count);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ec.h",
    "content": "/*\n * Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EC_H\n# define HEADER_EC_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_EC\n# include <openssl/asn1.h>\n# include <openssl/symhacks.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/ecerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# ifndef OPENSSL_ECC_MAX_FIELD_BITS\n#  define OPENSSL_ECC_MAX_FIELD_BITS 661\n# endif\n\n/** Enum for the point conversion form as defined in X9.62 (ECDSA)\n *  for the encoding of a elliptic curve point (x,y) */\ntypedef enum {\n        /** the point is encoded as z||x, where the octet z specifies\n         *  which solution of the quadratic equation y is  */\n    POINT_CONVERSION_COMPRESSED = 2,\n        /** the point is encoded as z||x||y, where z is the octet 0x04  */\n    POINT_CONVERSION_UNCOMPRESSED = 4,\n        /** the point is encoded as z||x||y, where the octet z specifies\n         *  which solution of the quadratic equation y is  */\n    POINT_CONVERSION_HYBRID = 6\n} point_conversion_form_t;\n\ntypedef struct ec_method_st EC_METHOD;\ntypedef struct ec_group_st EC_GROUP;\ntypedef struct ec_point_st EC_POINT;\ntypedef struct ecpk_parameters_st ECPKPARAMETERS;\ntypedef struct ec_parameters_st ECPARAMETERS;\n\n/********************************************************************/\n/*               EC_METHODs for curves over GF(p)                   */\n/********************************************************************/\n\n/** Returns the basic GFp ec methods which provides the basis for the\n *  optimized methods.\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_simple_method(void);\n\n/** Returns GFp methods using montgomery multiplication.\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_mont_method(void);\n\n/** Returns GFp methods using optimized methods for NIST recommended curves\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nist_method(void);\n\n# ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\n/** Returns 64-bit optimized methods for nistp224\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp224_method(void);\n\n/** Returns 64-bit optimized methods for nistp256\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp256_method(void);\n\n/** Returns 64-bit optimized methods for nistp521\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GFp_nistp521_method(void);\n# endif\n\n# ifndef OPENSSL_NO_EC2M\n/********************************************************************/\n/*           EC_METHOD for curves over GF(2^m)                      */\n/********************************************************************/\n\n/** Returns the basic GF2m ec method\n *  \\return  EC_METHOD object\n */\nconst EC_METHOD *EC_GF2m_simple_method(void);\n\n# endif\n\n/********************************************************************/\n/*                   EC_GROUP functions                             */\n/********************************************************************/\n\n/** Creates a new EC_GROUP object\n *  \\param   meth  EC_METHOD to use\n *  \\return  newly created EC_GROUP object or NULL in case of an error.\n */\nEC_GROUP *EC_GROUP_new(const EC_METHOD *meth);\n\n/** Frees a EC_GROUP object\n *  \\param  group  EC_GROUP object to be freed.\n */\nvoid EC_GROUP_free(EC_GROUP *group);\n\n/** Clears and frees a EC_GROUP object\n *  \\param  group  EC_GROUP object to be cleared and freed.\n */\nvoid EC_GROUP_clear_free(EC_GROUP *group);\n\n/** Copies EC_GROUP objects. Note: both EC_GROUPs must use the same EC_METHOD.\n *  \\param  dst  destination EC_GROUP object\n *  \\param  src  source EC_GROUP object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_GROUP_copy(EC_GROUP *dst, const EC_GROUP *src);\n\n/** Creates a new EC_GROUP object and copies the copies the content\n *  form src to the newly created EC_KEY object\n *  \\param  src  source EC_GROUP object\n *  \\return newly created EC_GROUP object or NULL in case of an error.\n */\nEC_GROUP *EC_GROUP_dup(const EC_GROUP *src);\n\n/** Returns the EC_METHOD of the EC_GROUP object.\n *  \\param  group  EC_GROUP object\n *  \\return EC_METHOD used in this EC_GROUP object.\n */\nconst EC_METHOD *EC_GROUP_method_of(const EC_GROUP *group);\n\n/** Returns the field type of the EC_METHOD.\n *  \\param  meth  EC_METHOD object\n *  \\return NID of the underlying field type OID.\n */\nint EC_METHOD_get_field_type(const EC_METHOD *meth);\n\n/** Sets the generator and its order/cofactor of a EC_GROUP object.\n *  \\param  group      EC_GROUP object\n *  \\param  generator  EC_POINT object with the generator.\n *  \\param  order      the order of the group generated by the generator.\n *  \\param  cofactor   the index of the sub-group generated by the generator\n *                     in the group of all points on the elliptic curve.\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator,\n                           const BIGNUM *order, const BIGNUM *cofactor);\n\n/** Returns the generator of a EC_GROUP object.\n *  \\param  group  EC_GROUP object\n *  \\return the currently used generator (possibly NULL).\n */\nconst EC_POINT *EC_GROUP_get0_generator(const EC_GROUP *group);\n\n/** Returns the montgomery data for order(Generator)\n *  \\param  group  EC_GROUP object\n *  \\return the currently used montgomery data (possibly NULL).\n*/\nBN_MONT_CTX *EC_GROUP_get_mont_data(const EC_GROUP *group);\n\n/** Gets the order of a EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\param  order  BIGNUM to which the order is copied\n *  \\param  ctx    unused\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_order(const EC_GROUP *group, BIGNUM *order, BN_CTX *ctx);\n\n/** Gets the order of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return the group order\n */\nconst BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group);\n\n/** Gets the number of bits of the order of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return number of bits of group order.\n */\nint EC_GROUP_order_bits(const EC_GROUP *group);\n\n/** Gets the cofactor of a EC_GROUP\n *  \\param  group     EC_GROUP object\n *  \\param  cofactor  BIGNUM to which the cofactor is copied\n *  \\param  ctx       unused\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor,\n                          BN_CTX *ctx);\n\n/** Gets the cofactor of an EC_GROUP\n *  \\param  group  EC_GROUP object\n *  \\return the group cofactor\n */\nconst BIGNUM *EC_GROUP_get0_cofactor(const EC_GROUP *group);\n\n/** Sets the name of a EC_GROUP object\n *  \\param  group  EC_GROUP object\n *  \\param  nid    NID of the curve name OID\n */\nvoid EC_GROUP_set_curve_name(EC_GROUP *group, int nid);\n\n/** Returns the curve name of a EC_GROUP object\n *  \\param  group  EC_GROUP object\n *  \\return NID of the curve name OID or 0 if not set.\n */\nint EC_GROUP_get_curve_name(const EC_GROUP *group);\n\nvoid EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag);\nint EC_GROUP_get_asn1_flag(const EC_GROUP *group);\n\nvoid EC_GROUP_set_point_conversion_form(EC_GROUP *group,\n                                        point_conversion_form_t form);\npoint_conversion_form_t EC_GROUP_get_point_conversion_form(const EC_GROUP *);\n\nunsigned char *EC_GROUP_get0_seed(const EC_GROUP *x);\nsize_t EC_GROUP_get_seed_len(const EC_GROUP *);\nsize_t EC_GROUP_set_seed(EC_GROUP *, const unsigned char *, size_t len);\n\n/** Sets the parameters of a ec curve defined by y^2 = x^3 + a*x + b (for GFp)\n *  or y^2 + x*y = x^3 + a*x^2 + b (for GF2m)\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,\n                       const BIGNUM *b, BN_CTX *ctx);\n\n/** Gets the parameters of the ec curve defined by y^2 = x^3 + a*x + b (for GFp)\n *  or y^2 + x*y = x^3 + a*x^2 + b (for GF2m)\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_get_curve(const EC_GROUP *group, BIGNUM *p, BIGNUM *a, BIGNUM *b,\n                       BN_CTX *ctx);\n\n/** Sets the parameters of an ec curve. Synonym for EC_GROUP_set_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_set_curve_GFp(EC_GROUP *group, const BIGNUM *p,\n                                              const BIGNUM *a, const BIGNUM *b,\n                                              BN_CTX *ctx))\n\n/** Gets the parameters of an ec curve. Synonym for EC_GROUP_get_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GFp(const EC_GROUP *group, BIGNUM *p,\n                                              BIGNUM *a, BIGNUM *b,\n                                              BN_CTX *ctx))\n\n# ifndef OPENSSL_NO_EC2M\n/** Sets the parameter of an ec curve. Synonym for EC_GROUP_set_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM with parameter a of the equation\n *  \\param  b      BIGNUM with parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_set_curve_GF2m(EC_GROUP *group, const BIGNUM *p,\n                                               const BIGNUM *a, const BIGNUM *b,\n                                               BN_CTX *ctx))\n\n/** Gets the parameters of an ec curve. Synonym for EC_GROUP_get_curve\n *  \\param  group  EC_GROUP object\n *  \\param  p      BIGNUM with the prime number (GFp) or the polynomial\n *                 defining the underlying field (GF2m)\n *  \\param  a      BIGNUM for parameter a of the equation\n *  \\param  b      BIGNUM for parameter b of the equation\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_GROUP_get_curve_GF2m(const EC_GROUP *group, BIGNUM *p,\n                                               BIGNUM *a, BIGNUM *b,\n                                               BN_CTX *ctx))\n# endif\n/** Returns the number of bits needed to represent a field element\n *  \\param  group  EC_GROUP object\n *  \\return number of bits needed to represent a field element\n */\nint EC_GROUP_get_degree(const EC_GROUP *group);\n\n/** Checks whether the parameter in the EC_GROUP define a valid ec group\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if group is a valid ec group and 0 otherwise\n */\nint EC_GROUP_check(const EC_GROUP *group, BN_CTX *ctx);\n\n/** Checks whether the discriminant of the elliptic curve is zero or not\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the discriminant is not zero and 0 otherwise\n */\nint EC_GROUP_check_discriminant(const EC_GROUP *group, BN_CTX *ctx);\n\n/** Compares two EC_GROUP objects\n *  \\param  a    first EC_GROUP object\n *  \\param  b    second EC_GROUP object\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return 0 if the groups are equal, 1 if not, or -1 on error\n */\nint EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ctx);\n\n/*\n * EC_GROUP_new_GF*() calls EC_GROUP_new() and EC_GROUP_set_GF*() after\n * choosing an appropriate EC_METHOD\n */\n\n/** Creates a new EC_GROUP object with the specified parameters defined\n *  over GFp (defined by the equation y^2 = x^3 + a*x + b)\n *  \\param  p    BIGNUM with the prime number\n *  \\param  a    BIGNUM with the parameter a of the equation\n *  \\param  b    BIGNUM with the parameter b of the equation\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return newly created EC_GROUP object with the specified parameters\n */\nEC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,\n                                 const BIGNUM *b, BN_CTX *ctx);\n# ifndef OPENSSL_NO_EC2M\n/** Creates a new EC_GROUP object with the specified parameters defined\n *  over GF2m (defined by the equation y^2 + x*y = x^3 + a*x^2 + b)\n *  \\param  p    BIGNUM with the polynomial defining the underlying field\n *  \\param  a    BIGNUM with the parameter a of the equation\n *  \\param  b    BIGNUM with the parameter b of the equation\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return newly created EC_GROUP object with the specified parameters\n */\nEC_GROUP *EC_GROUP_new_curve_GF2m(const BIGNUM *p, const BIGNUM *a,\n                                  const BIGNUM *b, BN_CTX *ctx);\n# endif\n\n/** Creates a EC_GROUP object with a curve specified by a NID\n *  \\param  nid  NID of the OID of the curve name\n *  \\return newly created EC_GROUP object with specified curve or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_by_curve_name(int nid);\n\n/** Creates a new EC_GROUP object from an ECPARAMETERS object\n *  \\param  params  pointer to the ECPARAMETERS object\n *  \\return newly created EC_GROUP object with specified curve or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params);\n\n/** Creates an ECPARAMETERS object for the given EC_GROUP object.\n *  \\param  group   pointer to the EC_GROUP object\n *  \\param  params  pointer to an existing ECPARAMETERS object or NULL\n *  \\return pointer to the new ECPARAMETERS object or NULL\n *          if an error occurred.\n */\nECPARAMETERS *EC_GROUP_get_ecparameters(const EC_GROUP *group,\n                                        ECPARAMETERS *params);\n\n/** Creates a new EC_GROUP object from an ECPKPARAMETERS object\n *  \\param  params  pointer to an existing ECPKPARAMETERS object, or NULL\n *  \\return newly created EC_GROUP object with specified curve, or NULL\n *          if an error occurred\n */\nEC_GROUP *EC_GROUP_new_from_ecpkparameters(const ECPKPARAMETERS *params);\n\n/** Creates an ECPKPARAMETERS object for the given EC_GROUP object.\n *  \\param  group   pointer to the EC_GROUP object\n *  \\param  params  pointer to an existing ECPKPARAMETERS object or NULL\n *  \\return pointer to the new ECPKPARAMETERS object or NULL\n *          if an error occurred.\n */\nECPKPARAMETERS *EC_GROUP_get_ecpkparameters(const EC_GROUP *group,\n                                            ECPKPARAMETERS *params);\n\n/********************************************************************/\n/*               handling of internal curves                        */\n/********************************************************************/\n\ntypedef struct {\n    int nid;\n    const char *comment;\n} EC_builtin_curve;\n\n/*\n * EC_builtin_curves(EC_builtin_curve *r, size_t size) returns number of all\n * available curves or zero if a error occurred. In case r is not zero,\n * nitems EC_builtin_curve structures are filled with the data of the first\n * nitems internal groups\n */\nsize_t EC_get_builtin_curves(EC_builtin_curve *r, size_t nitems);\n\nconst char *EC_curve_nid2nist(int nid);\nint EC_curve_nist2nid(const char *name);\n\n/********************************************************************/\n/*                    EC_POINT functions                            */\n/********************************************************************/\n\n/** Creates a new EC_POINT object for the specified EC_GROUP\n *  \\param  group  EC_GROUP the underlying EC_GROUP object\n *  \\return newly created EC_POINT object or NULL if an error occurred\n */\nEC_POINT *EC_POINT_new(const EC_GROUP *group);\n\n/** Frees a EC_POINT object\n *  \\param  point  EC_POINT object to be freed\n */\nvoid EC_POINT_free(EC_POINT *point);\n\n/** Clears and frees a EC_POINT object\n *  \\param  point  EC_POINT object to be cleared and freed\n */\nvoid EC_POINT_clear_free(EC_POINT *point);\n\n/** Copies EC_POINT object\n *  \\param  dst  destination EC_POINT object\n *  \\param  src  source EC_POINT object\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_copy(EC_POINT *dst, const EC_POINT *src);\n\n/** Creates a new EC_POINT object and copies the content of the supplied\n *  EC_POINT\n *  \\param  src    source EC_POINT object\n *  \\param  group  underlying the EC_GROUP object\n *  \\return newly created EC_POINT object or NULL if an error occurred\n */\nEC_POINT *EC_POINT_dup(const EC_POINT *src, const EC_GROUP *group);\n\n/** Returns the EC_METHOD used in EC_POINT object\n *  \\param  point  EC_POINT object\n *  \\return the EC_METHOD used\n */\nconst EC_METHOD *EC_POINT_method_of(const EC_POINT *point);\n\n/** Sets a point to infinity (neutral element)\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT to set to infinity\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);\n\n/** Sets the jacobian projective coordinates of a EC_POINT over GFp\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  z      BIGNUM with the z-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_Jprojective_coordinates_GFp(const EC_GROUP *group,\n                                             EC_POINT *p, const BIGNUM *x,\n                                             const BIGNUM *y, const BIGNUM *z,\n                                             BN_CTX *ctx);\n\n/** Gets the jacobian projective coordinates of a EC_POINT over GFp\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  z      BIGNUM for the z-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_get_Jprojective_coordinates_GFp(const EC_GROUP *group,\n                                             const EC_POINT *p, BIGNUM *x,\n                                             BIGNUM *y, BIGNUM *z,\n                                             BN_CTX *ctx);\n\n/** Sets the affine coordinates of an EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_affine_coordinates(const EC_GROUP *group, EC_POINT *p,\n                                    const BIGNUM *x, const BIGNUM *y,\n                                    BN_CTX *ctx);\n\n/** Gets the affine coordinates of an EC_POINT.\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_get_affine_coordinates(const EC_GROUP *group, const EC_POINT *p,\n                                    BIGNUM *x, BIGNUM *y, BN_CTX *ctx);\n\n/** Sets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_set_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GFp(const EC_GROUP *group,\n                                                           EC_POINT *p,\n                                                           const BIGNUM *x,\n                                                           const BIGNUM *y,\n                                                           BN_CTX *ctx))\n\n/** Gets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_get_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP *group,\n                                                           const EC_POINT *p,\n                                                           BIGNUM *x,\n                                                           BIGNUM *y,\n                                                           BN_CTX *ctx))\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_set_compressed_coordinates(const EC_GROUP *group, EC_POINT *p,\n                                        const BIGNUM *x, int y_bit,\n                                        BN_CTX *ctx);\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT. A synonym of\n *  EC_POINT_set_compressed_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_compressed_coordinates_GFp(const EC_GROUP *group,\n                                                               EC_POINT *p,\n                                                               const BIGNUM *x,\n                                                               int y_bit,\n                                                               BN_CTX *ctx))\n# ifndef OPENSSL_NO_EC2M\n/** Sets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_set_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with the x-coordinate\n *  \\param  y      BIGNUM with the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_affine_coordinates_GF2m(const EC_GROUP *group,\n                                                            EC_POINT *p,\n                                                            const BIGNUM *x,\n                                                            const BIGNUM *y,\n                                                            BN_CTX *ctx))\n\n/** Gets the affine coordinates of an EC_POINT. A synonym of\n *  EC_POINT_get_affine_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM for the x-coordinate\n *  \\param  y      BIGNUM for the y-coordinate\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_get_affine_coordinates_GF2m(const EC_GROUP *group,\n                                                            const EC_POINT *p,\n                                                            BIGNUM *x,\n                                                            BIGNUM *y,\n                                                            BN_CTX *ctx))\n\n/** Sets the x9.62 compressed coordinates of a EC_POINT. A synonym of\n *  EC_POINT_set_compressed_coordinates\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  x      BIGNUM with x-coordinate\n *  \\param  y_bit  integer with the y-Bit (either 0 or 1)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nDEPRECATEDIN_1_2_0(int EC_POINT_set_compressed_coordinates_GF2m(const EC_GROUP *group,\n                                                                EC_POINT *p,\n                                                                const BIGNUM *x,\n                                                                int y_bit,\n                                                                BN_CTX *ctx))\n# endif\n/** Encodes a EC_POINT object to a octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  form   point conversion form\n *  \\param  buf    memory buffer for the result. If NULL the function returns\n *                 required buffer size.\n *  \\param  len    length of the memory buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *p,\n                          point_conversion_form_t form,\n                          unsigned char *buf, size_t len, BN_CTX *ctx);\n\n/** Decodes a EC_POINT from a octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\param  buf    memory buffer with the encoded ec point\n *  \\param  len    length of the encoded ec point\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *p,\n                       const unsigned char *buf, size_t len, BN_CTX *ctx);\n\n/** Encodes an EC_POINT object to an allocated octet string\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT object\n *  \\param  form   point conversion form\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,\n                          point_conversion_form_t form,\n                          unsigned char **pbuf, BN_CTX *ctx);\n\n/* other interfaces to point2oct/oct2point: */\nBIGNUM *EC_POINT_point2bn(const EC_GROUP *, const EC_POINT *,\n                          point_conversion_form_t form, BIGNUM *, BN_CTX *);\nEC_POINT *EC_POINT_bn2point(const EC_GROUP *, const BIGNUM *,\n                            EC_POINT *, BN_CTX *);\nchar *EC_POINT_point2hex(const EC_GROUP *, const EC_POINT *,\n                         point_conversion_form_t form, BN_CTX *);\nEC_POINT *EC_POINT_hex2point(const EC_GROUP *, const char *,\n                             EC_POINT *, BN_CTX *);\n\n/********************************************************************/\n/*         functions for doing EC_POINT arithmetic                  */\n/********************************************************************/\n\n/** Computes the sum of two EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result (r = a + b)\n *  \\param  a      EC_POINT object with the first summand\n *  \\param  b      EC_POINT object with the second summand\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,\n                 const EC_POINT *b, BN_CTX *ctx);\n\n/** Computes the double of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result (r = 2 * a)\n *  \\param  a      EC_POINT object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_dbl(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a,\n                 BN_CTX *ctx);\n\n/** Computes the inverse of a EC_POINT\n *  \\param  group  underlying EC_GROUP object\n *  \\param  a      EC_POINT object to be inverted (it's used for the result as well)\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_invert(const EC_GROUP *group, EC_POINT *a, BN_CTX *ctx);\n\n/** Checks whether the point is the neutral element of the group\n *  \\param  group  the underlying EC_GROUP object\n *  \\param  p      EC_POINT object\n *  \\return 1 if the point is the neutral element and 0 otherwise\n */\nint EC_POINT_is_at_infinity(const EC_GROUP *group, const EC_POINT *p);\n\n/** Checks whether the point is on the curve\n *  \\param  group  underlying EC_GROUP object\n *  \\param  point  EC_POINT object to check\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the point is on the curve, 0 if not, or -1 on error\n */\nint EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,\n                         BN_CTX *ctx);\n\n/** Compares two EC_POINTs\n *  \\param  group  underlying EC_GROUP object\n *  \\param  a      first EC_POINT object\n *  \\param  b      second EC_POINT object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 if the points are not equal, 0 if they are, or -1 on error\n */\nint EC_POINT_cmp(const EC_GROUP *group, const EC_POINT *a, const EC_POINT *b,\n                 BN_CTX *ctx);\n\nint EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);\nint EC_POINTs_make_affine(const EC_GROUP *group, size_t num,\n                          EC_POINT *points[], BN_CTX *ctx);\n\n/** Computes r = generator * n + sum_{i=0}^{num-1} p[i] * m[i]\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result\n *  \\param  n      BIGNUM with the multiplier for the group generator (optional)\n *  \\param  num    number further summands\n *  \\param  p      array of size num of EC_POINT objects\n *  \\param  m      array of size num of BIGNUM objects\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,\n                  size_t num, const EC_POINT *p[], const BIGNUM *m[],\n                  BN_CTX *ctx);\n\n/** Computes r = generator * n + q * m\n *  \\param  group  underlying EC_GROUP object\n *  \\param  r      EC_POINT object for the result\n *  \\param  n      BIGNUM with the multiplier for the group generator (optional)\n *  \\param  q      EC_POINT object with the first factor of the second summand\n *  \\param  m      BIGNUM with the second factor of the second summand\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_POINT_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *n,\n                 const EC_POINT *q, const BIGNUM *m, BN_CTX *ctx);\n\n/** Stores multiples of generator for faster point multiplication\n *  \\param  group  EC_GROUP object\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_GROUP_precompute_mult(EC_GROUP *group, BN_CTX *ctx);\n\n/** Reports whether a precomputation has been done\n *  \\param  group  EC_GROUP object\n *  \\return 1 if a pre-computation has been done and 0 otherwise\n */\nint EC_GROUP_have_precompute_mult(const EC_GROUP *group);\n\n/********************************************************************/\n/*                       ASN1 stuff                                 */\n/********************************************************************/\n\nDECLARE_ASN1_ITEM(ECPKPARAMETERS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(ECPKPARAMETERS)\nDECLARE_ASN1_ITEM(ECPARAMETERS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(ECPARAMETERS)\n\n/*\n * EC_GROUP_get_basis_type() returns the NID of the basis type used to\n * represent the field elements\n */\nint EC_GROUP_get_basis_type(const EC_GROUP *);\n# ifndef OPENSSL_NO_EC2M\nint EC_GROUP_get_trinomial_basis(const EC_GROUP *, unsigned int *k);\nint EC_GROUP_get_pentanomial_basis(const EC_GROUP *, unsigned int *k1,\n                                   unsigned int *k2, unsigned int *k3);\n# endif\n\n# define OPENSSL_EC_EXPLICIT_CURVE  0x000\n# define OPENSSL_EC_NAMED_CURVE     0x001\n\nEC_GROUP *d2i_ECPKParameters(EC_GROUP **, const unsigned char **in, long len);\nint i2d_ECPKParameters(const EC_GROUP *, unsigned char **out);\n\n# define d2i_ECPKParameters_bio(bp,x) ASN1_d2i_bio_of(EC_GROUP,NULL,d2i_ECPKParameters,bp,x)\n# define i2d_ECPKParameters_bio(bp,x) ASN1_i2d_bio_of_const(EC_GROUP,i2d_ECPKParameters,bp,x)\n# define d2i_ECPKParameters_fp(fp,x) (EC_GROUP *)ASN1_d2i_fp(NULL, \\\n                (char *(*)())d2i_ECPKParameters,(fp),(unsigned char **)(x))\n# define i2d_ECPKParameters_fp(fp,x) ASN1_i2d_fp(i2d_ECPKParameters,(fp), \\\n                (unsigned char *)(x))\n\nint ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);\n# ifndef OPENSSL_NO_STDIO\nint ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off);\n# endif\n\n/********************************************************************/\n/*                      EC_KEY functions                            */\n/********************************************************************/\n\n/* some values for the encoding_flag */\n# define EC_PKEY_NO_PARAMETERS   0x001\n# define EC_PKEY_NO_PUBKEY       0x002\n\n/* some values for the flags field */\n# define EC_FLAG_NON_FIPS_ALLOW  0x1\n# define EC_FLAG_FIPS_CHECKED    0x2\n# define EC_FLAG_COFACTOR_ECDH   0x1000\n\n/** Creates a new EC_KEY object.\n *  \\return EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_new(void);\n\nint EC_KEY_get_flags(const EC_KEY *key);\n\nvoid EC_KEY_set_flags(EC_KEY *key, int flags);\n\nvoid EC_KEY_clear_flags(EC_KEY *key, int flags);\n\nint EC_KEY_decoded_from_explicit_params(const EC_KEY *key);\n\n/** Creates a new EC_KEY object using a named curve as underlying\n *  EC_GROUP object.\n *  \\param  nid  NID of the named curve.\n *  \\return EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_new_by_curve_name(int nid);\n\n/** Frees a EC_KEY object.\n *  \\param  key  EC_KEY object to be freed.\n */\nvoid EC_KEY_free(EC_KEY *key);\n\n/** Copies a EC_KEY object.\n *  \\param  dst  destination EC_KEY object\n *  \\param  src  src EC_KEY object\n *  \\return dst or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_copy(EC_KEY *dst, const EC_KEY *src);\n\n/** Creates a new EC_KEY object and copies the content from src to it.\n *  \\param  src  the source EC_KEY object\n *  \\return newly created EC_KEY object or NULL if an error occurred.\n */\nEC_KEY *EC_KEY_dup(const EC_KEY *src);\n\n/** Increases the internal reference count of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_up_ref(EC_KEY *key);\n\n/** Returns the ENGINE object of a EC_KEY object\n *  \\param  eckey  EC_KEY object\n *  \\return the ENGINE object (possibly NULL).\n */\nENGINE *EC_KEY_get0_engine(const EC_KEY *eckey);\n\n/** Returns the EC_GROUP object of a EC_KEY object\n *  \\param  key  EC_KEY object\n *  \\return the EC_GROUP object (possibly NULL).\n */\nconst EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);\n\n/** Sets the EC_GROUP of a EC_KEY object.\n *  \\param  key    EC_KEY object\n *  \\param  group  EC_GROUP to use in the EC_KEY object (note: the EC_KEY\n *                 object will use an own copy of the EC_GROUP).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group);\n\n/** Returns the private key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\return a BIGNUM with the private key (possibly NULL).\n */\nconst BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);\n\n/** Sets the private key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\param  prv  BIGNUM with the private key (note: the EC_KEY object\n *               will use an own copy of the BIGNUM).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);\n\n/** Returns the public key of a EC_KEY object.\n *  \\param  key  the EC_KEY object\n *  \\return a EC_POINT object with the public key (possibly NULL)\n */\nconst EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);\n\n/** Sets the public key of a EC_KEY object.\n *  \\param  key  EC_KEY object\n *  \\param  pub  EC_POINT object with the public key (note: the EC_KEY object\n *               will use an own copy of the EC_POINT object).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);\n\nunsigned EC_KEY_get_enc_flags(const EC_KEY *key);\nvoid EC_KEY_set_enc_flags(EC_KEY *eckey, unsigned int flags);\npoint_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);\nvoid EC_KEY_set_conv_form(EC_KEY *eckey, point_conversion_form_t cform);\n\n#define EC_KEY_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_EC_KEY, l, p, newf, dupf, freef)\nint EC_KEY_set_ex_data(EC_KEY *key, int idx, void *arg);\nvoid *EC_KEY_get_ex_data(const EC_KEY *key, int idx);\n\n/* wrapper functions for the underlying EC_GROUP object */\nvoid EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag);\n\n/** Creates a table of pre-computed multiples of the generator to\n *  accelerate further EC_KEY operations.\n *  \\param  key  EC_KEY object\n *  \\param  ctx  BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);\n\n/** Creates a new ec private (and optional a new public) key.\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred.\n */\nint EC_KEY_generate_key(EC_KEY *key);\n\n/** Verifies that a private and/or public key is valid.\n *  \\param  key  the EC_KEY object\n *  \\return 1 on success and 0 otherwise.\n */\nint EC_KEY_check_key(const EC_KEY *key);\n\n/** Indicates if an EC_KEY can be used for signing.\n *  \\param  eckey  the EC_KEY object\n *  \\return 1 if can can sign and 0 otherwise.\n */\nint EC_KEY_can_sign(const EC_KEY *eckey);\n\n/** Sets a public key from affine coordinates performing\n *  necessary NIST PKV tests.\n *  \\param  key  the EC_KEY object\n *  \\param  x    public key x coordinate\n *  \\param  y    public key y coordinate\n *  \\return 1 on success and 0 otherwise.\n */\nint EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,\n                                             BIGNUM *y);\n\n/** Encodes an EC_KEY public key to an allocated octet string\n *  \\param  key    key to encode\n *  \\param  form   point conversion form\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_KEY_key2buf(const EC_KEY *key, point_conversion_form_t form,\n                      unsigned char **pbuf, BN_CTX *ctx);\n\n/** Decodes a EC_KEY public key from a octet string\n *  \\param  key    key to decode\n *  \\param  buf    memory buffer with the encoded ec point\n *  \\param  len    length of the encoded ec point\n *  \\param  ctx    BN_CTX object (optional)\n *  \\return 1 on success and 0 if an error occurred\n */\n\nint EC_KEY_oct2key(EC_KEY *key, const unsigned char *buf, size_t len,\n                   BN_CTX *ctx);\n\n/** Decodes an EC_KEY private key from an octet string\n *  \\param  key    key to decode\n *  \\param  buf    memory buffer with the encoded private key\n *  \\param  len    length of the encoded key\n *  \\return 1 on success and 0 if an error occurred\n */\n\nint EC_KEY_oct2priv(EC_KEY *key, const unsigned char *buf, size_t len);\n\n/** Encodes a EC_KEY private key to an octet string\n *  \\param  key    key to encode\n *  \\param  buf    memory buffer for the result. If NULL the function returns\n *                 required buffer size.\n *  \\param  len    length of the memory buffer\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\n\nsize_t EC_KEY_priv2oct(const EC_KEY *key, unsigned char *buf, size_t len);\n\n/** Encodes an EC_KEY private key to an allocated octet string\n *  \\param  eckey  key to encode\n *  \\param  pbuf   returns pointer to allocated buffer\n *  \\return the length of the encoded octet string or 0 if an error occurred\n */\nsize_t EC_KEY_priv2buf(const EC_KEY *eckey, unsigned char **pbuf);\n\n/********************************************************************/\n/*        de- and encoding functions for SEC1 ECPrivateKey          */\n/********************************************************************/\n\n/** Decodes a private key from a memory buffer.\n *  \\param  key  a pointer to a EC_KEY object which should be used (or NULL)\n *  \\param  in   pointer to memory with the DER encoded private key\n *  \\param  len  length of the DER encoded private key\n *  \\return the decoded private key or NULL if an error occurred.\n */\nEC_KEY *d2i_ECPrivateKey(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes a private key object and stores the result in a buffer.\n *  \\param  key  the EC_KEY object to encode\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint i2d_ECPrivateKey(EC_KEY *key, unsigned char **out);\n\n/********************************************************************/\n/*        de- and encoding functions for EC parameters              */\n/********************************************************************/\n\n/** Decodes ec parameter from a memory buffer.\n *  \\param  key  a pointer to a EC_KEY object which should be used (or NULL)\n *  \\param  in   pointer to memory with the DER encoded ec parameters\n *  \\param  len  length of the DER encoded ec parameters\n *  \\return a EC_KEY object with the decoded parameters or NULL if an error\n *          occurred.\n */\nEC_KEY *d2i_ECParameters(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes ec parameter and stores the result in a buffer.\n *  \\param  key  the EC_KEY object with ec parameters to encode\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred.\n */\nint i2d_ECParameters(EC_KEY *key, unsigned char **out);\n\n/********************************************************************/\n/*         de- and encoding functions for EC public key             */\n/*         (octet string, not DER -- hence 'o2i' and 'i2o')         */\n/********************************************************************/\n\n/** Decodes a ec public key from a octet string.\n *  \\param  key  a pointer to a EC_KEY object which should be used\n *  \\param  in   memory buffer with the encoded public key\n *  \\param  len  length of the encoded public key\n *  \\return EC_KEY object with decoded public key or NULL if an error\n *          occurred.\n */\nEC_KEY *o2i_ECPublicKey(EC_KEY **key, const unsigned char **in, long len);\n\n/** Encodes a ec public key in an octet string.\n *  \\param  key  the EC_KEY object with the public key\n *  \\param  out  the buffer for the result (if NULL the function returns number\n *               of bytes needed).\n *  \\return 1 on success and 0 if an error occurred\n */\nint i2o_ECPublicKey(const EC_KEY *key, unsigned char **out);\n\n/** Prints out the ec parameters on human readable form.\n *  \\param  bp   BIO object to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred\n */\nint ECParameters_print(BIO *bp, const EC_KEY *key);\n\n/** Prints out the contents of a EC_KEY object\n *  \\param  bp   BIO object to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\param  off  line offset\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_KEY_print(BIO *bp, const EC_KEY *key, int off);\n\n# ifndef OPENSSL_NO_STDIO\n/** Prints out the ec parameters on human readable form.\n *  \\param  fp   file descriptor to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\return 1 on success and 0 if an error occurred\n */\nint ECParameters_print_fp(FILE *fp, const EC_KEY *key);\n\n/** Prints out the contents of a EC_KEY object\n *  \\param  fp   file descriptor to which the information is printed\n *  \\param  key  EC_KEY object\n *  \\param  off  line offset\n *  \\return 1 on success and 0 if an error occurred\n */\nint EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off);\n\n# endif\n\nconst EC_KEY_METHOD *EC_KEY_OpenSSL(void);\nconst EC_KEY_METHOD *EC_KEY_get_default_method(void);\nvoid EC_KEY_set_default_method(const EC_KEY_METHOD *meth);\nconst EC_KEY_METHOD *EC_KEY_get_method(const EC_KEY *key);\nint EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth);\nEC_KEY *EC_KEY_new_method(ENGINE *engine);\n\n/** The old name for ecdh_KDF_X9_63\n *  The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,\n *  it is actually specified in ANSI X9.63.\n *  This identifier is retained for backwards compatibility\n */\nint ECDH_KDF_X9_62(unsigned char *out, size_t outlen,\n                   const unsigned char *Z, size_t Zlen,\n                   const unsigned char *sinfo, size_t sinfolen,\n                   const EVP_MD *md);\n\nint ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key,\n                     const EC_KEY *ecdh,\n                     void *(*KDF) (const void *in, size_t inlen,\n                                   void *out, size_t *outlen));\n\ntypedef struct ECDSA_SIG_st ECDSA_SIG;\n\n/** Allocates and initialize a ECDSA_SIG structure\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_SIG_new(void);\n\n/** frees a ECDSA_SIG structure\n *  \\param  sig  pointer to the ECDSA_SIG structure\n */\nvoid ECDSA_SIG_free(ECDSA_SIG *sig);\n\n/** DER encode content of ECDSA_SIG object (note: this function modifies *pp\n *  (*pp += length of the DER encoded signature)).\n *  \\param  sig  pointer to the ECDSA_SIG object\n *  \\param  pp   pointer to a unsigned char pointer for the output or NULL\n *  \\return the length of the DER encoded ECDSA_SIG object or a negative value\n *          on error\n */\nint i2d_ECDSA_SIG(const ECDSA_SIG *sig, unsigned char **pp);\n\n/** Decodes a DER encoded ECDSA signature (note: this function changes *pp\n *  (*pp += len)).\n *  \\param  sig  pointer to ECDSA_SIG pointer (may be NULL)\n *  \\param  pp   memory buffer with the DER encoded signature\n *  \\param  len  length of the buffer\n *  \\return pointer to the decoded ECDSA_SIG structure (or NULL)\n */\nECDSA_SIG *d2i_ECDSA_SIG(ECDSA_SIG **sig, const unsigned char **pp, long len);\n\n/** Accessor for r and s fields of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n *  \\param  pr   pointer to BIGNUM pointer for r (may be NULL)\n *  \\param  ps   pointer to BIGNUM pointer for s (may be NULL)\n */\nvoid ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps);\n\n/** Accessor for r field of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n */\nconst BIGNUM *ECDSA_SIG_get0_r(const ECDSA_SIG *sig);\n\n/** Accessor for s field of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n */\nconst BIGNUM *ECDSA_SIG_get0_s(const ECDSA_SIG *sig);\n\n/** Setter for r and s fields of ECDSA_SIG\n *  \\param  sig  pointer to ECDSA_SIG structure\n *  \\param  r    pointer to BIGNUM for r (may be NULL)\n *  \\param  s    pointer to BIGNUM for s (may be NULL)\n */\nint ECDSA_SIG_set0(ECDSA_SIG *sig, BIGNUM *r, BIGNUM *s);\n\n/** Computes the ECDSA signature of the given hash value using\n *  the supplied private key and returns the created signature.\n *  \\param  dgst      pointer to the hash value\n *  \\param  dgst_len  length of the hash value\n *  \\param  eckey     EC_KEY object containing a private EC key\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, int dgst_len,\n                         EC_KEY *eckey);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  kinv     BIGNUM with a pre-computed inverse k (optional)\n *  \\param  rp       BIGNUM with a pre-computed rp value (optional),\n *                   see ECDSA_sign_setup\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return pointer to a ECDSA_SIG structure or NULL if an error occurred\n */\nECDSA_SIG *ECDSA_do_sign_ex(const unsigned char *dgst, int dgstlen,\n                            const BIGNUM *kinv, const BIGNUM *rp,\n                            EC_KEY *eckey);\n\n/** Verifies that the supplied signature is a valid ECDSA\n *  signature of the supplied hash value using the supplied public key.\n *  \\param  dgst      pointer to the hash value\n *  \\param  dgst_len  length of the hash value\n *  \\param  sig       ECDSA_SIG structure\n *  \\param  eckey     EC_KEY object containing a public EC key\n *  \\return 1 if the signature is valid, 0 if the signature is invalid\n *          and -1 on error\n */\nint ECDSA_do_verify(const unsigned char *dgst, int dgst_len,\n                    const ECDSA_SIG *sig, EC_KEY *eckey);\n\n/** Precompute parts of the signing operation\n *  \\param  eckey  EC_KEY object containing a private EC key\n *  \\param  ctx    BN_CTX object (optional)\n *  \\param  kinv   BIGNUM pointer for the inverse of k\n *  \\param  rp     BIGNUM pointer for x coordinate of k * generator\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign_setup(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, BIGNUM **rp);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      memory for the DER encoded created signature\n *  \\param  siglen   pointer to the length of the returned signature\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign(int type, const unsigned char *dgst, int dgstlen,\n               unsigned char *sig, unsigned int *siglen, EC_KEY *eckey);\n\n/** Computes ECDSA signature of a given hash value using the supplied\n *  private key (note: sig must point to ECDSA_size(eckey) bytes of memory).\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value to sign\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      buffer to hold the DER encoded signature\n *  \\param  siglen   pointer to the length of the returned signature\n *  \\param  kinv     BIGNUM with a pre-computed inverse k (optional)\n *  \\param  rp       BIGNUM with a pre-computed rp value (optional),\n *                   see ECDSA_sign_setup\n *  \\param  eckey    EC_KEY object containing a private EC key\n *  \\return 1 on success and 0 otherwise\n */\nint ECDSA_sign_ex(int type, const unsigned char *dgst, int dgstlen,\n                  unsigned char *sig, unsigned int *siglen,\n                  const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey);\n\n/** Verifies that the given signature is valid ECDSA signature\n *  of the supplied hash value using the specified public key.\n *  \\param  type     this parameter is ignored\n *  \\param  dgst     pointer to the hash value\n *  \\param  dgstlen  length of the hash value\n *  \\param  sig      pointer to the DER encoded signature\n *  \\param  siglen   length of the DER encoded signature\n *  \\param  eckey    EC_KEY object containing a public EC key\n *  \\return 1 if the signature is valid, 0 if the signature is invalid\n *          and -1 on error\n */\nint ECDSA_verify(int type, const unsigned char *dgst, int dgstlen,\n                 const unsigned char *sig, int siglen, EC_KEY *eckey);\n\n/** Returns the maximum length of the DER encoded signature\n *  \\param  eckey  EC_KEY object\n *  \\return numbers of bytes required for the DER encoded signature\n */\nint ECDSA_size(const EC_KEY *eckey);\n\n/********************************************************************/\n/*  EC_KEY_METHOD constructors, destructors, writers and accessors  */\n/********************************************************************/\n\nEC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth);\nvoid EC_KEY_METHOD_free(EC_KEY_METHOD *meth);\nvoid EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth,\n                            int (*init)(EC_KEY *key),\n                            void (*finish)(EC_KEY *key),\n                            int (*copy)(EC_KEY *dest, const EC_KEY *src),\n                            int (*set_group)(EC_KEY *key, const EC_GROUP *grp),\n                            int (*set_private)(EC_KEY *key,\n                                               const BIGNUM *priv_key),\n                            int (*set_public)(EC_KEY *key,\n                                              const EC_POINT *pub_key));\n\nvoid EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth,\n                              int (*keygen)(EC_KEY *key));\n\nvoid EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth,\n                                   int (*ckey)(unsigned char **psec,\n                                               size_t *pseclen,\n                                               const EC_POINT *pub_key,\n                                               const EC_KEY *ecdh));\n\nvoid EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth,\n                            int (*sign)(int type, const unsigned char *dgst,\n                                        int dlen, unsigned char *sig,\n                                        unsigned int *siglen,\n                                        const BIGNUM *kinv, const BIGNUM *r,\n                                        EC_KEY *eckey),\n                            int (*sign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,\n                                              BIGNUM **kinvp, BIGNUM **rp),\n                            ECDSA_SIG *(*sign_sig)(const unsigned char *dgst,\n                                                   int dgst_len,\n                                                   const BIGNUM *in_kinv,\n                                                   const BIGNUM *in_r,\n                                                   EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth,\n                              int (*verify)(int type, const unsigned\n                                            char *dgst, int dgst_len,\n                                            const unsigned char *sigbuf,\n                                            int sig_len, EC_KEY *eckey),\n                              int (*verify_sig)(const unsigned char *dgst,\n                                                int dgst_len,\n                                                const ECDSA_SIG *sig,\n                                                EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth,\n                            int (**pinit)(EC_KEY *key),\n                            void (**pfinish)(EC_KEY *key),\n                            int (**pcopy)(EC_KEY *dest, const EC_KEY *src),\n                            int (**pset_group)(EC_KEY *key,\n                                               const EC_GROUP *grp),\n                            int (**pset_private)(EC_KEY *key,\n                                                 const BIGNUM *priv_key),\n                            int (**pset_public)(EC_KEY *key,\n                                                const EC_POINT *pub_key));\n\nvoid EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth,\n                              int (**pkeygen)(EC_KEY *key));\n\nvoid EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth,\n                                   int (**pck)(unsigned char **psec,\n                                               size_t *pseclen,\n                                               const EC_POINT *pub_key,\n                                               const EC_KEY *ecdh));\n\nvoid EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth,\n                            int (**psign)(int type, const unsigned char *dgst,\n                                          int dlen, unsigned char *sig,\n                                          unsigned int *siglen,\n                                          const BIGNUM *kinv, const BIGNUM *r,\n                                          EC_KEY *eckey),\n                            int (**psign_setup)(EC_KEY *eckey, BN_CTX *ctx_in,\n                                                BIGNUM **kinvp, BIGNUM **rp),\n                            ECDSA_SIG *(**psign_sig)(const unsigned char *dgst,\n                                                     int dgst_len,\n                                                     const BIGNUM *in_kinv,\n                                                     const BIGNUM *in_r,\n                                                     EC_KEY *eckey));\n\nvoid EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth,\n                              int (**pverify)(int type, const unsigned\n                                              char *dgst, int dgst_len,\n                                              const unsigned char *sigbuf,\n                                              int sig_len, EC_KEY *eckey),\n                              int (**pverify_sig)(const unsigned char *dgst,\n                                                  int dgst_len,\n                                                  const ECDSA_SIG *sig,\n                                                  EC_KEY *eckey));\n\n# define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x)\n\n# ifndef __cplusplus\n#  if defined(__SUNPRO_C)\n#   if __SUNPRO_C >= 0x520\n#    pragma error_messages (default,E_ARRAY_OF_INCOMPLETE_NONAME,E_ARRAY_OF_INCOMPLETE)\n#   endif\n#  endif\n# endif\n\n# define EVP_PKEY_CTX_set_ec_paramgen_curve_nid(ctx, nid) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \\\n                                EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID, nid, NULL)\n\n# define EVP_PKEY_CTX_set_ec_param_enc(ctx, flag) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_PARAMGEN|EVP_PKEY_OP_KEYGEN, \\\n                                EVP_PKEY_CTRL_EC_PARAM_ENC, flag, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_cofactor_mode(ctx, flag) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_ECDH_COFACTOR, flag, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_cofactor_mode(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_ECDH_COFACTOR, -2, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_type(ctx, kdf) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_TYPE, kdf, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_type(ctx) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_TYPE, -2, NULL)\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_MD, 0, (void *)(pmd))\n\n# define EVP_PKEY_CTX_set_ecdh_kdf_outlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_OUTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_ecdh_kdf_outlen(ctx, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN, 0, \\\n                                (void *)(plen))\n\n# define EVP_PKEY_CTX_set0_ecdh_kdf_ukm(ctx, p, plen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_EC_KDF_UKM, plen, (void *)(p))\n\n# define EVP_PKEY_CTX_get0_ecdh_kdf_ukm(ctx, p) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_EC, \\\n                                EVP_PKEY_OP_DERIVE, \\\n                                EVP_PKEY_CTRL_GET_EC_KDF_UKM, 0, (void *)(p))\n\n/* SM2 will skip the operation check so no need to pass operation here */\n# define EVP_PKEY_CTX_set1_id(ctx, id, id_len) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_SET1_ID, (int)id_len, (void*)(id))\n\n# define EVP_PKEY_CTX_get1_id(ctx, id) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_GET1_ID, 0, (void*)(id))\n\n# define EVP_PKEY_CTX_get1_id_len(ctx, id_len) \\\n        EVP_PKEY_CTX_ctrl(ctx, -1, -1, \\\n                                EVP_PKEY_CTRL_GET1_ID_LEN, 0, (void*)(id_len))\n\n# define EVP_PKEY_CTRL_EC_PARAMGEN_CURVE_NID             (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_EC_PARAM_ENC                      (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_EC_ECDH_COFACTOR                  (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_EC_KDF_TYPE                       (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_EC_KDF_MD                         (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_GET_EC_KDF_MD                     (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_EC_KDF_OUTLEN                     (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_EC_KDF_OUTLEN                 (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_EC_KDF_UKM                        (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_GET_EC_KDF_UKM                    (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_SET1_ID                           (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET1_ID                           (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_GET1_ID_LEN                       (EVP_PKEY_ALG_CTRL + 13)\n/* KDF types */\n# define EVP_PKEY_ECDH_KDF_NONE                          1\n# define EVP_PKEY_ECDH_KDF_X9_63                         2\n/** The old name for EVP_PKEY_ECDH_KDF_X9_63\n *  The ECDH KDF specification has been mistakingly attributed to ANSI X9.62,\n *  it is actually specified in ANSI X9.63.\n *  This identifier is retained for backwards compatibility\n */\n# define EVP_PKEY_ECDH_KDF_X9_62   EVP_PKEY_ECDH_KDF_X9_63\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ecdh.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/ec.h>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ecdsa.h",
    "content": "/*\n * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/ec.h>\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ecerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ECERR_H\n# define HEADER_ECERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_EC\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_EC_strings(void);\n\n/*\n * EC function codes.\n */\n#  define EC_F_BN_TO_FELEM                                 224\n#  define EC_F_D2I_ECPARAMETERS                            144\n#  define EC_F_D2I_ECPKPARAMETERS                          145\n#  define EC_F_D2I_ECPRIVATEKEY                            146\n#  define EC_F_DO_EC_KEY_PRINT                             221\n#  define EC_F_ECDH_CMS_DECRYPT                            238\n#  define EC_F_ECDH_CMS_SET_SHARED_INFO                    239\n#  define EC_F_ECDH_COMPUTE_KEY                            246\n#  define EC_F_ECDH_SIMPLE_COMPUTE_KEY                     257\n#  define EC_F_ECDSA_DO_SIGN_EX                            251\n#  define EC_F_ECDSA_DO_VERIFY                             252\n#  define EC_F_ECDSA_SIGN_EX                               254\n#  define EC_F_ECDSA_SIGN_SETUP                            248\n#  define EC_F_ECDSA_SIG_NEW                               265\n#  define EC_F_ECDSA_VERIFY                                253\n#  define EC_F_ECD_ITEM_VERIFY                             270\n#  define EC_F_ECKEY_PARAM2TYPE                            223\n#  define EC_F_ECKEY_PARAM_DECODE                          212\n#  define EC_F_ECKEY_PRIV_DECODE                           213\n#  define EC_F_ECKEY_PRIV_ENCODE                           214\n#  define EC_F_ECKEY_PUB_DECODE                            215\n#  define EC_F_ECKEY_PUB_ENCODE                            216\n#  define EC_F_ECKEY_TYPE2PARAM                            220\n#  define EC_F_ECPARAMETERS_PRINT                          147\n#  define EC_F_ECPARAMETERS_PRINT_FP                       148\n#  define EC_F_ECPKPARAMETERS_PRINT                        149\n#  define EC_F_ECPKPARAMETERS_PRINT_FP                     150\n#  define EC_F_ECP_NISTZ256_GET_AFFINE                     240\n#  define EC_F_ECP_NISTZ256_INV_MOD_ORD                    275\n#  define EC_F_ECP_NISTZ256_MULT_PRECOMPUTE                243\n#  define EC_F_ECP_NISTZ256_POINTS_MUL                     241\n#  define EC_F_ECP_NISTZ256_PRE_COMP_NEW                   244\n#  define EC_F_ECP_NISTZ256_WINDOWED_MUL                   242\n#  define EC_F_ECX_KEY_OP                                  266\n#  define EC_F_ECX_PRIV_ENCODE                             267\n#  define EC_F_ECX_PUB_ENCODE                              268\n#  define EC_F_EC_ASN1_GROUP2CURVE                         153\n#  define EC_F_EC_ASN1_GROUP2FIELDID                       154\n#  define EC_F_EC_GF2M_MONTGOMERY_POINT_MULTIPLY           208\n#  define EC_F_EC_GF2M_SIMPLE_FIELD_INV                    296\n#  define EC_F_EC_GF2M_SIMPLE_GROUP_CHECK_DISCRIMINANT     159\n#  define EC_F_EC_GF2M_SIMPLE_GROUP_SET_CURVE              195\n#  define EC_F_EC_GF2M_SIMPLE_LADDER_POST                  285\n#  define EC_F_EC_GF2M_SIMPLE_LADDER_PRE                   288\n#  define EC_F_EC_GF2M_SIMPLE_OCT2POINT                    160\n#  define EC_F_EC_GF2M_SIMPLE_POINT2OCT                    161\n#  define EC_F_EC_GF2M_SIMPLE_POINTS_MUL                   289\n#  define EC_F_EC_GF2M_SIMPLE_POINT_GET_AFFINE_COORDINATES 162\n#  define EC_F_EC_GF2M_SIMPLE_POINT_SET_AFFINE_COORDINATES 163\n#  define EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES   164\n#  define EC_F_EC_GFP_MONT_FIELD_DECODE                    133\n#  define EC_F_EC_GFP_MONT_FIELD_ENCODE                    134\n#  define EC_F_EC_GFP_MONT_FIELD_INV                       297\n#  define EC_F_EC_GFP_MONT_FIELD_MUL                       131\n#  define EC_F_EC_GFP_MONT_FIELD_SET_TO_ONE                209\n#  define EC_F_EC_GFP_MONT_FIELD_SQR                       132\n#  define EC_F_EC_GFP_MONT_GROUP_SET_CURVE                 189\n#  define EC_F_EC_GFP_NISTP224_GROUP_SET_CURVE             225\n#  define EC_F_EC_GFP_NISTP224_POINTS_MUL                  228\n#  define EC_F_EC_GFP_NISTP224_POINT_GET_AFFINE_COORDINATES 226\n#  define EC_F_EC_GFP_NISTP256_GROUP_SET_CURVE             230\n#  define EC_F_EC_GFP_NISTP256_POINTS_MUL                  231\n#  define EC_F_EC_GFP_NISTP256_POINT_GET_AFFINE_COORDINATES 232\n#  define EC_F_EC_GFP_NISTP521_GROUP_SET_CURVE             233\n#  define EC_F_EC_GFP_NISTP521_POINTS_MUL                  234\n#  define EC_F_EC_GFP_NISTP521_POINT_GET_AFFINE_COORDINATES 235\n#  define EC_F_EC_GFP_NIST_FIELD_MUL                       200\n#  define EC_F_EC_GFP_NIST_FIELD_SQR                       201\n#  define EC_F_EC_GFP_NIST_GROUP_SET_CURVE                 202\n#  define EC_F_EC_GFP_SIMPLE_BLIND_COORDINATES             287\n#  define EC_F_EC_GFP_SIMPLE_FIELD_INV                     298\n#  define EC_F_EC_GFP_SIMPLE_GROUP_CHECK_DISCRIMINANT      165\n#  define EC_F_EC_GFP_SIMPLE_GROUP_SET_CURVE               166\n#  define EC_F_EC_GFP_SIMPLE_MAKE_AFFINE                   102\n#  define EC_F_EC_GFP_SIMPLE_OCT2POINT                     103\n#  define EC_F_EC_GFP_SIMPLE_POINT2OCT                     104\n#  define EC_F_EC_GFP_SIMPLE_POINTS_MAKE_AFFINE            137\n#  define EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES  167\n#  define EC_F_EC_GFP_SIMPLE_POINT_SET_AFFINE_COORDINATES  168\n#  define EC_F_EC_GFP_SIMPLE_SET_COMPRESSED_COORDINATES    169\n#  define EC_F_EC_GROUP_CHECK                              170\n#  define EC_F_EC_GROUP_CHECK_DISCRIMINANT                 171\n#  define EC_F_EC_GROUP_COPY                               106\n#  define EC_F_EC_GROUP_GET_CURVE                          291\n#  define EC_F_EC_GROUP_GET_CURVE_GF2M                     172\n#  define EC_F_EC_GROUP_GET_CURVE_GFP                      130\n#  define EC_F_EC_GROUP_GET_DEGREE                         173\n#  define EC_F_EC_GROUP_GET_ECPARAMETERS                   261\n#  define EC_F_EC_GROUP_GET_ECPKPARAMETERS                 262\n#  define EC_F_EC_GROUP_GET_PENTANOMIAL_BASIS              193\n#  define EC_F_EC_GROUP_GET_TRINOMIAL_BASIS                194\n#  define EC_F_EC_GROUP_NEW                                108\n#  define EC_F_EC_GROUP_NEW_BY_CURVE_NAME                  174\n#  define EC_F_EC_GROUP_NEW_FROM_DATA                      175\n#  define EC_F_EC_GROUP_NEW_FROM_ECPARAMETERS              263\n#  define EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS            264\n#  define EC_F_EC_GROUP_SET_CURVE                          292\n#  define EC_F_EC_GROUP_SET_CURVE_GF2M                     176\n#  define EC_F_EC_GROUP_SET_CURVE_GFP                      109\n#  define EC_F_EC_GROUP_SET_GENERATOR                      111\n#  define EC_F_EC_GROUP_SET_SEED                           286\n#  define EC_F_EC_KEY_CHECK_KEY                            177\n#  define EC_F_EC_KEY_COPY                                 178\n#  define EC_F_EC_KEY_GENERATE_KEY                         179\n#  define EC_F_EC_KEY_NEW                                  182\n#  define EC_F_EC_KEY_NEW_METHOD                           245\n#  define EC_F_EC_KEY_OCT2PRIV                             255\n#  define EC_F_EC_KEY_PRINT                                180\n#  define EC_F_EC_KEY_PRINT_FP                             181\n#  define EC_F_EC_KEY_PRIV2BUF                             279\n#  define EC_F_EC_KEY_PRIV2OCT                             256\n#  define EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES    229\n#  define EC_F_EC_KEY_SIMPLE_CHECK_KEY                     258\n#  define EC_F_EC_KEY_SIMPLE_OCT2PRIV                      259\n#  define EC_F_EC_KEY_SIMPLE_PRIV2OCT                      260\n#  define EC_F_EC_PKEY_CHECK                               273\n#  define EC_F_EC_PKEY_PARAM_CHECK                         274\n#  define EC_F_EC_POINTS_MAKE_AFFINE                       136\n#  define EC_F_EC_POINTS_MUL                               290\n#  define EC_F_EC_POINT_ADD                                112\n#  define EC_F_EC_POINT_BN2POINT                           280\n#  define EC_F_EC_POINT_CMP                                113\n#  define EC_F_EC_POINT_COPY                               114\n#  define EC_F_EC_POINT_DBL                                115\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES             293\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GF2M        183\n#  define EC_F_EC_POINT_GET_AFFINE_COORDINATES_GFP         116\n#  define EC_F_EC_POINT_GET_JPROJECTIVE_COORDINATES_GFP    117\n#  define EC_F_EC_POINT_INVERT                             210\n#  define EC_F_EC_POINT_IS_AT_INFINITY                     118\n#  define EC_F_EC_POINT_IS_ON_CURVE                        119\n#  define EC_F_EC_POINT_MAKE_AFFINE                        120\n#  define EC_F_EC_POINT_NEW                                121\n#  define EC_F_EC_POINT_OCT2POINT                          122\n#  define EC_F_EC_POINT_POINT2BUF                          281\n#  define EC_F_EC_POINT_POINT2OCT                          123\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES             294\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GF2M        185\n#  define EC_F_EC_POINT_SET_AFFINE_COORDINATES_GFP         124\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES         295\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GF2M    186\n#  define EC_F_EC_POINT_SET_COMPRESSED_COORDINATES_GFP     125\n#  define EC_F_EC_POINT_SET_JPROJECTIVE_COORDINATES_GFP    126\n#  define EC_F_EC_POINT_SET_TO_INFINITY                    127\n#  define EC_F_EC_PRE_COMP_NEW                             196\n#  define EC_F_EC_SCALAR_MUL_LADDER                        284\n#  define EC_F_EC_WNAF_MUL                                 187\n#  define EC_F_EC_WNAF_PRECOMPUTE_MULT                     188\n#  define EC_F_I2D_ECPARAMETERS                            190\n#  define EC_F_I2D_ECPKPARAMETERS                          191\n#  define EC_F_I2D_ECPRIVATEKEY                            192\n#  define EC_F_I2O_ECPUBLICKEY                             151\n#  define EC_F_NISTP224_PRE_COMP_NEW                       227\n#  define EC_F_NISTP256_PRE_COMP_NEW                       236\n#  define EC_F_NISTP521_PRE_COMP_NEW                       237\n#  define EC_F_O2I_ECPUBLICKEY                             152\n#  define EC_F_OLD_EC_PRIV_DECODE                          222\n#  define EC_F_OSSL_ECDH_COMPUTE_KEY                       247\n#  define EC_F_OSSL_ECDSA_SIGN_SIG                         249\n#  define EC_F_OSSL_ECDSA_VERIFY_SIG                       250\n#  define EC_F_PKEY_ECD_CTRL                               271\n#  define EC_F_PKEY_ECD_DIGESTSIGN                         272\n#  define EC_F_PKEY_ECD_DIGESTSIGN25519                    276\n#  define EC_F_PKEY_ECD_DIGESTSIGN448                      277\n#  define EC_F_PKEY_ECX_DERIVE                             269\n#  define EC_F_PKEY_EC_CTRL                                197\n#  define EC_F_PKEY_EC_CTRL_STR                            198\n#  define EC_F_PKEY_EC_DERIVE                              217\n#  define EC_F_PKEY_EC_INIT                                282\n#  define EC_F_PKEY_EC_KDF_DERIVE                          283\n#  define EC_F_PKEY_EC_KEYGEN                              199\n#  define EC_F_PKEY_EC_PARAMGEN                            219\n#  define EC_F_PKEY_EC_SIGN                                218\n#  define EC_F_VALIDATE_ECX_DERIVE                         278\n\n/*\n * EC reason codes.\n */\n#  define EC_R_ASN1_ERROR                                  115\n#  define EC_R_BAD_SIGNATURE                               156\n#  define EC_R_BIGNUM_OUT_OF_RANGE                         144\n#  define EC_R_BUFFER_TOO_SMALL                            100\n#  define EC_R_CANNOT_INVERT                               165\n#  define EC_R_COORDINATES_OUT_OF_RANGE                    146\n#  define EC_R_CURVE_DOES_NOT_SUPPORT_ECDH                 160\n#  define EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING              159\n#  define EC_R_D2I_ECPKPARAMETERS_FAILURE                  117\n#  define EC_R_DECODE_ERROR                                142\n#  define EC_R_DISCRIMINANT_IS_ZERO                        118\n#  define EC_R_EC_GROUP_NEW_BY_NAME_FAILURE                119\n#  define EC_R_FIELD_TOO_LARGE                             143\n#  define EC_R_GF2M_NOT_SUPPORTED                          147\n#  define EC_R_GROUP2PKPARAMETERS_FAILURE                  120\n#  define EC_R_I2D_ECPKPARAMETERS_FAILURE                  121\n#  define EC_R_INCOMPATIBLE_OBJECTS                        101\n#  define EC_R_INVALID_ARGUMENT                            112\n#  define EC_R_INVALID_COMPRESSED_POINT                    110\n#  define EC_R_INVALID_COMPRESSION_BIT                     109\n#  define EC_R_INVALID_CURVE                               141\n#  define EC_R_INVALID_DIGEST                              151\n#  define EC_R_INVALID_DIGEST_TYPE                         138\n#  define EC_R_INVALID_ENCODING                            102\n#  define EC_R_INVALID_FIELD                               103\n#  define EC_R_INVALID_FORM                                104\n#  define EC_R_INVALID_GROUP_ORDER                         122\n#  define EC_R_INVALID_KEY                                 116\n#  define EC_R_INVALID_OUTPUT_LENGTH                       161\n#  define EC_R_INVALID_PEER_KEY                            133\n#  define EC_R_INVALID_PENTANOMIAL_BASIS                   132\n#  define EC_R_INVALID_PRIVATE_KEY                         123\n#  define EC_R_INVALID_TRINOMIAL_BASIS                     137\n#  define EC_R_KDF_PARAMETER_ERROR                         148\n#  define EC_R_KEYS_NOT_SET                                140\n#  define EC_R_LADDER_POST_FAILURE                         136\n#  define EC_R_LADDER_PRE_FAILURE                          153\n#  define EC_R_LADDER_STEP_FAILURE                         162\n#  define EC_R_MISSING_OID                                 167\n#  define EC_R_MISSING_PARAMETERS                          124\n#  define EC_R_MISSING_PRIVATE_KEY                         125\n#  define EC_R_NEED_NEW_SETUP_VALUES                       157\n#  define EC_R_NOT_A_NIST_PRIME                            135\n#  define EC_R_NOT_IMPLEMENTED                             126\n#  define EC_R_NOT_INITIALIZED                             111\n#  define EC_R_NO_PARAMETERS_SET                           139\n#  define EC_R_NO_PRIVATE_VALUE                            154\n#  define EC_R_OPERATION_NOT_SUPPORTED                     152\n#  define EC_R_PASSED_NULL_PARAMETER                       134\n#  define EC_R_PEER_KEY_ERROR                              149\n#  define EC_R_PKPARAMETERS2GROUP_FAILURE                  127\n#  define EC_R_POINT_ARITHMETIC_FAILURE                    155\n#  define EC_R_POINT_AT_INFINITY                           106\n#  define EC_R_POINT_COORDINATES_BLIND_FAILURE             163\n#  define EC_R_POINT_IS_NOT_ON_CURVE                       107\n#  define EC_R_RANDOM_NUMBER_GENERATION_FAILED             158\n#  define EC_R_SHARED_INFO_ERROR                           150\n#  define EC_R_SLOT_FULL                                   108\n#  define EC_R_UNDEFINED_GENERATOR                         113\n#  define EC_R_UNDEFINED_ORDER                             128\n#  define EC_R_UNKNOWN_COFACTOR                            164\n#  define EC_R_UNKNOWN_GROUP                               129\n#  define EC_R_UNKNOWN_ORDER                               114\n#  define EC_R_UNSUPPORTED_FIELD                           131\n#  define EC_R_WRONG_CURVE_PARAMETERS                      145\n#  define EC_R_WRONG_ORDER                                 130\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/engine.h",
    "content": "/*\n * Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENGINE_H\n# define HEADER_ENGINE_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_ENGINE\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n#  include <openssl/rsa.h>\n#  include <openssl/dsa.h>\n#  include <openssl/dh.h>\n#  include <openssl/ec.h>\n#  include <openssl/rand.h>\n#  include <openssl/ui.h>\n#  include <openssl/err.h>\n# endif\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/x509.h>\n# include <openssl/engineerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * These flags are used to control combinations of algorithm (methods) by\n * bitwise \"OR\"ing.\n */\n# define ENGINE_METHOD_RSA               (unsigned int)0x0001\n# define ENGINE_METHOD_DSA               (unsigned int)0x0002\n# define ENGINE_METHOD_DH                (unsigned int)0x0004\n# define ENGINE_METHOD_RAND              (unsigned int)0x0008\n# define ENGINE_METHOD_CIPHERS           (unsigned int)0x0040\n# define ENGINE_METHOD_DIGESTS           (unsigned int)0x0080\n# define ENGINE_METHOD_PKEY_METHS        (unsigned int)0x0200\n# define ENGINE_METHOD_PKEY_ASN1_METHS   (unsigned int)0x0400\n# define ENGINE_METHOD_EC                (unsigned int)0x0800\n/* Obvious all-or-nothing cases. */\n# define ENGINE_METHOD_ALL               (unsigned int)0xFFFF\n# define ENGINE_METHOD_NONE              (unsigned int)0x0000\n\n/*\n * This(ese) flag(s) controls behaviour of the ENGINE_TABLE mechanism used\n * internally to control registration of ENGINE implementations, and can be\n * set by ENGINE_set_table_flags(). The \"NOINIT\" flag prevents attempts to\n * initialise registered ENGINEs if they are not already initialised.\n */\n# define ENGINE_TABLE_FLAG_NOINIT        (unsigned int)0x0001\n\n/* ENGINE flags that can be set by ENGINE_set_flags(). */\n/* Not used */\n/* #define ENGINE_FLAGS_MALLOCED        0x0001 */\n\n/*\n * This flag is for ENGINEs that wish to handle the various 'CMD'-related\n * control commands on their own. Without this flag, ENGINE_ctrl() handles\n * these control commands on behalf of the ENGINE using their \"cmd_defns\"\n * data.\n */\n# define ENGINE_FLAGS_MANUAL_CMD_CTRL    (int)0x0002\n\n/*\n * This flag is for ENGINEs who return new duplicate structures when found\n * via \"ENGINE_by_id()\". When an ENGINE must store state (eg. if\n * ENGINE_ctrl() commands are called in sequence as part of some stateful\n * process like key-generation setup and execution), it can set this flag -\n * then each attempt to obtain the ENGINE will result in it being copied into\n * a new structure. Normally, ENGINEs don't declare this flag so\n * ENGINE_by_id() just increments the existing ENGINE's structural reference\n * count.\n */\n# define ENGINE_FLAGS_BY_ID_COPY         (int)0x0004\n\n/*\n * This flag if for an ENGINE that does not want its methods registered as\n * part of ENGINE_register_all_complete() for example if the methods are not\n * usable as default methods.\n */\n\n# define ENGINE_FLAGS_NO_REGISTER_ALL    (int)0x0008\n\n/*\n * ENGINEs can support their own command types, and these flags are used in\n * ENGINE_CTRL_GET_CMD_FLAGS to indicate to the caller what kind of input\n * each command expects. Currently only numeric and string input is\n * supported. If a control command supports none of the _NUMERIC, _STRING, or\n * _NO_INPUT options, then it is regarded as an \"internal\" control command -\n * and not for use in config setting situations. As such, they're not\n * available to the ENGINE_ctrl_cmd_string() function, only raw ENGINE_ctrl()\n * access. Changes to this list of 'command types' should be reflected\n * carefully in ENGINE_cmd_is_executable() and ENGINE_ctrl_cmd_string().\n */\n\n/* accepts a 'long' input value (3rd parameter to ENGINE_ctrl) */\n# define ENGINE_CMD_FLAG_NUMERIC         (unsigned int)0x0001\n/*\n * accepts string input (cast from 'void*' to 'const char *', 4th parameter\n * to ENGINE_ctrl)\n */\n# define ENGINE_CMD_FLAG_STRING          (unsigned int)0x0002\n/*\n * Indicates that the control command takes *no* input. Ie. the control\n * command is unparameterised.\n */\n# define ENGINE_CMD_FLAG_NO_INPUT        (unsigned int)0x0004\n/*\n * Indicates that the control command is internal. This control command won't\n * be shown in any output, and is only usable through the ENGINE_ctrl_cmd()\n * function.\n */\n# define ENGINE_CMD_FLAG_INTERNAL        (unsigned int)0x0008\n\n/*\n * NB: These 3 control commands are deprecated and should not be used.\n * ENGINEs relying on these commands should compile conditional support for\n * compatibility (eg. if these symbols are defined) but should also migrate\n * the same functionality to their own ENGINE-specific control functions that\n * can be \"discovered\" by calling applications. The fact these control\n * commands wouldn't be \"executable\" (ie. usable by text-based config)\n * doesn't change the fact that application code can find and use them\n * without requiring per-ENGINE hacking.\n */\n\n/*\n * These flags are used to tell the ctrl function what should be done. All\n * command numbers are shared between all engines, even if some don't make\n * sense to some engines.  In such a case, they do nothing but return the\n * error ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED.\n */\n# define ENGINE_CTRL_SET_LOGSTREAM               1\n# define ENGINE_CTRL_SET_PASSWORD_CALLBACK       2\n# define ENGINE_CTRL_HUP                         3/* Close and reinitialise\n                                                   * any handles/connections\n                                                   * etc. */\n# define ENGINE_CTRL_SET_USER_INTERFACE          4/* Alternative to callback */\n# define ENGINE_CTRL_SET_CALLBACK_DATA           5/* User-specific data, used\n                                                   * when calling the password\n                                                   * callback and the user\n                                                   * interface */\n# define ENGINE_CTRL_LOAD_CONFIGURATION          6/* Load a configuration,\n                                                   * given a string that\n                                                   * represents a file name\n                                                   * or so */\n# define ENGINE_CTRL_LOAD_SECTION                7/* Load data from a given\n                                                   * section in the already\n                                                   * loaded configuration */\n\n/*\n * These control commands allow an application to deal with an arbitrary\n * engine in a dynamic way. Warn: Negative return values indicate errors FOR\n * THESE COMMANDS because zero is used to indicate 'end-of-list'. Other\n * commands, including ENGINE-specific command types, return zero for an\n * error. An ENGINE can choose to implement these ctrl functions, and can\n * internally manage things however it chooses - it does so by setting the\n * ENGINE_FLAGS_MANUAL_CMD_CTRL flag (using ENGINE_set_flags()). Otherwise\n * the ENGINE_ctrl() code handles this on the ENGINE's behalf using the\n * cmd_defns data (set using ENGINE_set_cmd_defns()). This means an ENGINE's\n * ctrl() handler need only implement its own commands - the above \"meta\"\n * commands will be taken care of.\n */\n\n/*\n * Returns non-zero if the supplied ENGINE has a ctrl() handler. If \"not\",\n * then all the remaining control commands will return failure, so it is\n * worth checking this first if the caller is trying to \"discover\" the\n * engine's capabilities and doesn't want errors generated unnecessarily.\n */\n# define ENGINE_CTRL_HAS_CTRL_FUNCTION           10\n/*\n * Returns a positive command number for the first command supported by the\n * engine. Returns zero if no ctrl commands are supported.\n */\n# define ENGINE_CTRL_GET_FIRST_CMD_TYPE          11\n/*\n * The 'long' argument specifies a command implemented by the engine, and the\n * return value is the next command supported, or zero if there are no more.\n */\n# define ENGINE_CTRL_GET_NEXT_CMD_TYPE           12\n/*\n * The 'void*' argument is a command name (cast from 'const char *'), and the\n * return value is the command that corresponds to it.\n */\n# define ENGINE_CTRL_GET_CMD_FROM_NAME           13\n/*\n * The next two allow a command to be converted into its corresponding string\n * form. In each case, the 'long' argument supplies the command. In the\n * NAME_LEN case, the return value is the length of the command name (not\n * counting a trailing EOL). In the NAME case, the 'void*' argument must be a\n * string buffer large enough, and it will be populated with the name of the\n * command (WITH a trailing EOL).\n */\n# define ENGINE_CTRL_GET_NAME_LEN_FROM_CMD       14\n# define ENGINE_CTRL_GET_NAME_FROM_CMD           15\n/* The next two are similar but give a \"short description\" of a command. */\n# define ENGINE_CTRL_GET_DESC_LEN_FROM_CMD       16\n# define ENGINE_CTRL_GET_DESC_FROM_CMD           17\n/*\n * With this command, the return value is the OR'd combination of\n * ENGINE_CMD_FLAG_*** values that indicate what kind of input a given\n * engine-specific ctrl command expects.\n */\n# define ENGINE_CTRL_GET_CMD_FLAGS               18\n\n/*\n * ENGINE implementations should start the numbering of their own control\n * commands from this value. (ie. ENGINE_CMD_BASE, ENGINE_CMD_BASE + 1, etc).\n */\n# define ENGINE_CMD_BASE                         200\n\n/*\n * NB: These 2 nCipher \"chil\" control commands are deprecated, and their\n * functionality is now available through ENGINE-specific control commands\n * (exposed through the above-mentioned 'CMD'-handling). Code using these 2\n * commands should be migrated to the more general command handling before\n * these are removed.\n */\n\n/* Flags specific to the nCipher \"chil\" engine */\n# define ENGINE_CTRL_CHIL_SET_FORKCHECK          100\n        /*\n         * Depending on the value of the (long)i argument, this sets or\n         * unsets the SimpleForkCheck flag in the CHIL API to enable or\n         * disable checking and workarounds for applications that fork().\n         */\n# define ENGINE_CTRL_CHIL_NO_LOCKING             101\n        /*\n         * This prevents the initialisation function from providing mutex\n         * callbacks to the nCipher library.\n         */\n\n/*\n * If an ENGINE supports its own specific control commands and wishes the\n * framework to handle the above 'ENGINE_CMD_***'-manipulation commands on\n * its behalf, it should supply a null-terminated array of ENGINE_CMD_DEFN\n * entries to ENGINE_set_cmd_defns(). It should also implement a ctrl()\n * handler that supports the stated commands (ie. the \"cmd_num\" entries as\n * described by the array). NB: The array must be ordered in increasing order\n * of cmd_num. \"null-terminated\" means that the last ENGINE_CMD_DEFN element\n * has cmd_num set to zero and/or cmd_name set to NULL.\n */\ntypedef struct ENGINE_CMD_DEFN_st {\n    unsigned int cmd_num;       /* The command number */\n    const char *cmd_name;       /* The command name itself */\n    const char *cmd_desc;       /* A short description of the command */\n    unsigned int cmd_flags;     /* The input the command expects */\n} ENGINE_CMD_DEFN;\n\n/* Generic function pointer */\ntypedef int (*ENGINE_GEN_FUNC_PTR) (void);\n/* Generic function pointer taking no arguments */\ntypedef int (*ENGINE_GEN_INT_FUNC_PTR) (ENGINE *);\n/* Specific control function pointer */\ntypedef int (*ENGINE_CTRL_FUNC_PTR) (ENGINE *, int, long, void *,\n                                     void (*f) (void));\n/* Generic load_key function pointer */\ntypedef EVP_PKEY *(*ENGINE_LOAD_KEY_PTR)(ENGINE *, const char *,\n                                         UI_METHOD *ui_method,\n                                         void *callback_data);\ntypedef int (*ENGINE_SSL_CLIENT_CERT_PTR) (ENGINE *, SSL *ssl,\n                                           STACK_OF(X509_NAME) *ca_dn,\n                                           X509 **pcert, EVP_PKEY **pkey,\n                                           STACK_OF(X509) **pother,\n                                           UI_METHOD *ui_method,\n                                           void *callback_data);\n/*-\n * These callback types are for an ENGINE's handler for cipher and digest logic.\n * These handlers have these prototypes;\n *   int foo(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid);\n *   int foo(ENGINE *e, const EVP_MD **digest, const int **nids, int nid);\n * Looking at how to implement these handlers in the case of cipher support, if\n * the framework wants the EVP_CIPHER for 'nid', it will call;\n *   foo(e, &p_evp_cipher, NULL, nid);    (return zero for failure)\n * If the framework wants a list of supported 'nid's, it will call;\n *   foo(e, NULL, &p_nids, 0); (returns number of 'nids' or -1 for error)\n */\n/*\n * Returns to a pointer to the array of supported cipher 'nid's. If the\n * second parameter is non-NULL it is set to the size of the returned array.\n */\ntypedef int (*ENGINE_CIPHERS_PTR) (ENGINE *, const EVP_CIPHER **,\n                                   const int **, int);\ntypedef int (*ENGINE_DIGESTS_PTR) (ENGINE *, const EVP_MD **, const int **,\n                                   int);\ntypedef int (*ENGINE_PKEY_METHS_PTR) (ENGINE *, EVP_PKEY_METHOD **,\n                                      const int **, int);\ntypedef int (*ENGINE_PKEY_ASN1_METHS_PTR) (ENGINE *, EVP_PKEY_ASN1_METHOD **,\n                                           const int **, int);\n/*\n * STRUCTURE functions ... all of these functions deal with pointers to\n * ENGINE structures where the pointers have a \"structural reference\". This\n * means that their reference is to allowed access to the structure but it\n * does not imply that the structure is functional. To simply increment or\n * decrement the structural reference count, use ENGINE_by_id and\n * ENGINE_free. NB: This is not required when iterating using ENGINE_get_next\n * as it will automatically decrement the structural reference count of the\n * \"current\" ENGINE and increment the structural reference count of the\n * ENGINE it returns (unless it is NULL).\n */\n\n/* Get the first/last \"ENGINE\" type available. */\nENGINE *ENGINE_get_first(void);\nENGINE *ENGINE_get_last(void);\n/* Iterate to the next/previous \"ENGINE\" type (NULL = end of the list). */\nENGINE *ENGINE_get_next(ENGINE *e);\nENGINE *ENGINE_get_prev(ENGINE *e);\n/* Add another \"ENGINE\" type into the array. */\nint ENGINE_add(ENGINE *e);\n/* Remove an existing \"ENGINE\" type from the array. */\nint ENGINE_remove(ENGINE *e);\n/* Retrieve an engine from the list by its unique \"id\" value. */\nENGINE *ENGINE_by_id(const char *id);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define ENGINE_load_openssl() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_OPENSSL, NULL)\n# define ENGINE_load_dynamic() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_DYNAMIC, NULL)\n# ifndef OPENSSL_NO_STATIC_ENGINE\n#  define ENGINE_load_padlock() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_PADLOCK, NULL)\n#  define ENGINE_load_capi() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CAPI, NULL)\n#  define ENGINE_load_afalg() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_AFALG, NULL)\n# endif\n# define ENGINE_load_cryptodev() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_CRYPTODEV, NULL)\n# define ENGINE_load_rdrand() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_RDRAND, NULL)\n#endif\nvoid ENGINE_load_builtin_engines(void);\n\n/*\n * Get and set global flags (ENGINE_TABLE_FLAG_***) for the implementation\n * \"registry\" handling.\n */\nunsigned int ENGINE_get_table_flags(void);\nvoid ENGINE_set_table_flags(unsigned int flags);\n\n/*- Manage registration of ENGINEs per \"table\". For each type, there are 3\n * functions;\n *   ENGINE_register_***(e) - registers the implementation from 'e' (if it has one)\n *   ENGINE_unregister_***(e) - unregister the implementation from 'e'\n *   ENGINE_register_all_***() - call ENGINE_register_***() for each 'e' in the list\n * Cleanup is automatically registered from each table when required.\n */\n\nint ENGINE_register_RSA(ENGINE *e);\nvoid ENGINE_unregister_RSA(ENGINE *e);\nvoid ENGINE_register_all_RSA(void);\n\nint ENGINE_register_DSA(ENGINE *e);\nvoid ENGINE_unregister_DSA(ENGINE *e);\nvoid ENGINE_register_all_DSA(void);\n\nint ENGINE_register_EC(ENGINE *e);\nvoid ENGINE_unregister_EC(ENGINE *e);\nvoid ENGINE_register_all_EC(void);\n\nint ENGINE_register_DH(ENGINE *e);\nvoid ENGINE_unregister_DH(ENGINE *e);\nvoid ENGINE_register_all_DH(void);\n\nint ENGINE_register_RAND(ENGINE *e);\nvoid ENGINE_unregister_RAND(ENGINE *e);\nvoid ENGINE_register_all_RAND(void);\n\nint ENGINE_register_ciphers(ENGINE *e);\nvoid ENGINE_unregister_ciphers(ENGINE *e);\nvoid ENGINE_register_all_ciphers(void);\n\nint ENGINE_register_digests(ENGINE *e);\nvoid ENGINE_unregister_digests(ENGINE *e);\nvoid ENGINE_register_all_digests(void);\n\nint ENGINE_register_pkey_meths(ENGINE *e);\nvoid ENGINE_unregister_pkey_meths(ENGINE *e);\nvoid ENGINE_register_all_pkey_meths(void);\n\nint ENGINE_register_pkey_asn1_meths(ENGINE *e);\nvoid ENGINE_unregister_pkey_asn1_meths(ENGINE *e);\nvoid ENGINE_register_all_pkey_asn1_meths(void);\n\n/*\n * These functions register all support from the above categories. Note, use\n * of these functions can result in static linkage of code your application\n * may not need. If you only need a subset of functionality, consider using\n * more selective initialisation.\n */\nint ENGINE_register_complete(ENGINE *e);\nint ENGINE_register_all_complete(void);\n\n/*\n * Send parameterised control commands to the engine. The possibilities to\n * send down an integer, a pointer to data or a function pointer are\n * provided. Any of the parameters may or may not be NULL, depending on the\n * command number. In actuality, this function only requires a structural\n * (rather than functional) reference to an engine, but many control commands\n * may require the engine be functional. The caller should be aware of trying\n * commands that require an operational ENGINE, and only use functional\n * references in such situations.\n */\nint ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void));\n\n/*\n * This function tests if an ENGINE-specific command is usable as a\n * \"setting\". Eg. in an application's config file that gets processed through\n * ENGINE_ctrl_cmd_string(). If this returns zero, it is not available to\n * ENGINE_ctrl_cmd_string(), only ENGINE_ctrl().\n */\nint ENGINE_cmd_is_executable(ENGINE *e, int cmd);\n\n/*\n * This function works like ENGINE_ctrl() with the exception of taking a\n * command name instead of a command number, and can handle optional\n * commands. See the comment on ENGINE_ctrl_cmd_string() for an explanation\n * on how to use the cmd_name and cmd_optional.\n */\nint ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,\n                    long i, void *p, void (*f) (void), int cmd_optional);\n\n/*\n * This function passes a command-name and argument to an ENGINE. The\n * cmd_name is converted to a command number and the control command is\n * called using 'arg' as an argument (unless the ENGINE doesn't support such\n * a command, in which case no control command is called). The command is\n * checked for input flags, and if necessary the argument will be converted\n * to a numeric value. If cmd_optional is non-zero, then if the ENGINE\n * doesn't support the given cmd_name the return value will be success\n * anyway. This function is intended for applications to use so that users\n * (or config files) can supply engine-specific config data to the ENGINE at\n * run-time to control behaviour of specific engines. As such, it shouldn't\n * be used for calling ENGINE_ctrl() functions that return data, deal with\n * binary data, or that are otherwise supposed to be used directly through\n * ENGINE_ctrl() in application code. Any \"return\" data from an ENGINE_ctrl()\n * operation in this function will be lost - the return value is interpreted\n * as failure if the return value is zero, success otherwise, and this\n * function returns a boolean value as a result. In other words, vendors of\n * 'ENGINE'-enabled devices should write ENGINE implementations with\n * parameterisations that work in this scheme, so that compliant ENGINE-based\n * applications can work consistently with the same configuration for the\n * same ENGINE-enabled devices, across applications.\n */\nint ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg,\n                           int cmd_optional);\n\n/*\n * These functions are useful for manufacturing new ENGINE structures. They\n * don't address reference counting at all - one uses them to populate an\n * ENGINE structure with personalised implementations of things prior to\n * using it directly or adding it to the builtin ENGINE list in OpenSSL.\n * These are also here so that the ENGINE structure doesn't have to be\n * exposed and break binary compatibility!\n */\nENGINE *ENGINE_new(void);\nint ENGINE_free(ENGINE *e);\nint ENGINE_up_ref(ENGINE *e);\nint ENGINE_set_id(ENGINE *e, const char *id);\nint ENGINE_set_name(ENGINE *e, const char *name);\nint ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth);\nint ENGINE_set_DSA(ENGINE *e, const DSA_METHOD *dsa_meth);\nint ENGINE_set_EC(ENGINE *e, const EC_KEY_METHOD *ecdsa_meth);\nint ENGINE_set_DH(ENGINE *e, const DH_METHOD *dh_meth);\nint ENGINE_set_RAND(ENGINE *e, const RAND_METHOD *rand_meth);\nint ENGINE_set_destroy_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR destroy_f);\nint ENGINE_set_init_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR init_f);\nint ENGINE_set_finish_function(ENGINE *e, ENGINE_GEN_INT_FUNC_PTR finish_f);\nint ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f);\nint ENGINE_set_load_privkey_function(ENGINE *e,\n                                     ENGINE_LOAD_KEY_PTR loadpriv_f);\nint ENGINE_set_load_pubkey_function(ENGINE *e, ENGINE_LOAD_KEY_PTR loadpub_f);\nint ENGINE_set_load_ssl_client_cert_function(ENGINE *e,\n                                             ENGINE_SSL_CLIENT_CERT_PTR\n                                             loadssl_f);\nint ENGINE_set_ciphers(ENGINE *e, ENGINE_CIPHERS_PTR f);\nint ENGINE_set_digests(ENGINE *e, ENGINE_DIGESTS_PTR f);\nint ENGINE_set_pkey_meths(ENGINE *e, ENGINE_PKEY_METHS_PTR f);\nint ENGINE_set_pkey_asn1_meths(ENGINE *e, ENGINE_PKEY_ASN1_METHS_PTR f);\nint ENGINE_set_flags(ENGINE *e, int flags);\nint ENGINE_set_cmd_defns(ENGINE *e, const ENGINE_CMD_DEFN *defns);\n/* These functions allow control over any per-structure ENGINE data. */\n#define ENGINE_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_ENGINE, l, p, newf, dupf, freef)\nint ENGINE_set_ex_data(ENGINE *e, int idx, void *arg);\nvoid *ENGINE_get_ex_data(const ENGINE *e, int idx);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * This function previously cleaned up anything that needs it. Auto-deinit will\n * now take care of it so it is no longer required to call this function.\n */\n# define ENGINE_cleanup() while(0) continue\n#endif\n\n/*\n * These return values from within the ENGINE structure. These can be useful\n * with functional references as well as structural references - it depends\n * which you obtained. Using the result for functional purposes if you only\n * obtained a structural reference may be problematic!\n */\nconst char *ENGINE_get_id(const ENGINE *e);\nconst char *ENGINE_get_name(const ENGINE *e);\nconst RSA_METHOD *ENGINE_get_RSA(const ENGINE *e);\nconst DSA_METHOD *ENGINE_get_DSA(const ENGINE *e);\nconst EC_KEY_METHOD *ENGINE_get_EC(const ENGINE *e);\nconst DH_METHOD *ENGINE_get_DH(const ENGINE *e);\nconst RAND_METHOD *ENGINE_get_RAND(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_destroy_function(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_init_function(const ENGINE *e);\nENGINE_GEN_INT_FUNC_PTR ENGINE_get_finish_function(const ENGINE *e);\nENGINE_CTRL_FUNC_PTR ENGINE_get_ctrl_function(const ENGINE *e);\nENGINE_LOAD_KEY_PTR ENGINE_get_load_privkey_function(const ENGINE *e);\nENGINE_LOAD_KEY_PTR ENGINE_get_load_pubkey_function(const ENGINE *e);\nENGINE_SSL_CLIENT_CERT_PTR ENGINE_get_ssl_client_cert_function(const ENGINE\n                                                               *e);\nENGINE_CIPHERS_PTR ENGINE_get_ciphers(const ENGINE *e);\nENGINE_DIGESTS_PTR ENGINE_get_digests(const ENGINE *e);\nENGINE_PKEY_METHS_PTR ENGINE_get_pkey_meths(const ENGINE *e);\nENGINE_PKEY_ASN1_METHS_PTR ENGINE_get_pkey_asn1_meths(const ENGINE *e);\nconst EVP_CIPHER *ENGINE_get_cipher(ENGINE *e, int nid);\nconst EVP_MD *ENGINE_get_digest(ENGINE *e, int nid);\nconst EVP_PKEY_METHOD *ENGINE_get_pkey_meth(ENGINE *e, int nid);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth(ENGINE *e, int nid);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_get_pkey_asn1_meth_str(ENGINE *e,\n                                                          const char *str,\n                                                          int len);\nconst EVP_PKEY_ASN1_METHOD *ENGINE_pkey_asn1_find_str(ENGINE **pe,\n                                                      const char *str,\n                                                      int len);\nconst ENGINE_CMD_DEFN *ENGINE_get_cmd_defns(const ENGINE *e);\nint ENGINE_get_flags(const ENGINE *e);\n\n/*\n * FUNCTIONAL functions. These functions deal with ENGINE structures that\n * have (or will) be initialised for use. Broadly speaking, the structural\n * functions are useful for iterating the list of available engine types,\n * creating new engine types, and other \"list\" operations. These functions\n * actually deal with ENGINEs that are to be used. As such these functions\n * can fail (if applicable) when particular engines are unavailable - eg. if\n * a hardware accelerator is not attached or not functioning correctly. Each\n * ENGINE has 2 reference counts; structural and functional. Every time a\n * functional reference is obtained or released, a corresponding structural\n * reference is automatically obtained or released too.\n */\n\n/*\n * Initialise a engine type for use (or up its reference count if it's\n * already in use). This will fail if the engine is not currently operational\n * and cannot initialise.\n */\nint ENGINE_init(ENGINE *e);\n/*\n * Free a functional reference to a engine type. This does not require a\n * corresponding call to ENGINE_free as it also releases a structural\n * reference.\n */\nint ENGINE_finish(ENGINE *e);\n\n/*\n * The following functions handle keys that are stored in some secondary\n * location, handled by the engine.  The storage may be on a card or\n * whatever.\n */\nEVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id,\n                                  UI_METHOD *ui_method, void *callback_data);\nEVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id,\n                                 UI_METHOD *ui_method, void *callback_data);\nint ENGINE_load_ssl_client_cert(ENGINE *e, SSL *s,\n                                STACK_OF(X509_NAME) *ca_dn, X509 **pcert,\n                                EVP_PKEY **ppkey, STACK_OF(X509) **pother,\n                                UI_METHOD *ui_method, void *callback_data);\n\n/*\n * This returns a pointer for the current ENGINE structure that is (by\n * default) performing any RSA operations. The value returned is an\n * incremented reference, so it should be free'd (ENGINE_finish) before it is\n * discarded.\n */\nENGINE *ENGINE_get_default_RSA(void);\n/* Same for the other \"methods\" */\nENGINE *ENGINE_get_default_DSA(void);\nENGINE *ENGINE_get_default_EC(void);\nENGINE *ENGINE_get_default_DH(void);\nENGINE *ENGINE_get_default_RAND(void);\n/*\n * These functions can be used to get a functional reference to perform\n * ciphering or digesting corresponding to \"nid\".\n */\nENGINE *ENGINE_get_cipher_engine(int nid);\nENGINE *ENGINE_get_digest_engine(int nid);\nENGINE *ENGINE_get_pkey_meth_engine(int nid);\nENGINE *ENGINE_get_pkey_asn1_meth_engine(int nid);\n\n/*\n * This sets a new default ENGINE structure for performing RSA operations. If\n * the result is non-zero (success) then the ENGINE structure will have had\n * its reference count up'd so the caller should still free their own\n * reference 'e'.\n */\nint ENGINE_set_default_RSA(ENGINE *e);\nint ENGINE_set_default_string(ENGINE *e, const char *def_list);\n/* Same for the other \"methods\" */\nint ENGINE_set_default_DSA(ENGINE *e);\nint ENGINE_set_default_EC(ENGINE *e);\nint ENGINE_set_default_DH(ENGINE *e);\nint ENGINE_set_default_RAND(ENGINE *e);\nint ENGINE_set_default_ciphers(ENGINE *e);\nint ENGINE_set_default_digests(ENGINE *e);\nint ENGINE_set_default_pkey_meths(ENGINE *e);\nint ENGINE_set_default_pkey_asn1_meths(ENGINE *e);\n\n/*\n * The combination \"set\" - the flags are bitwise \"OR\"d from the\n * ENGINE_METHOD_*** defines above. As with the \"ENGINE_register_complete()\"\n * function, this function can result in unnecessary static linkage. If your\n * application requires only specific functionality, consider using more\n * selective functions.\n */\nint ENGINE_set_default(ENGINE *e, unsigned int flags);\n\nvoid ENGINE_add_conf_module(void);\n\n/* Deprecated functions ... */\n/* int ENGINE_clear_defaults(void); */\n\n/**************************/\n/* DYNAMIC ENGINE SUPPORT */\n/**************************/\n\n/* Binary/behaviour compatibility levels */\n# define OSSL_DYNAMIC_VERSION            (unsigned long)0x00030000\n/*\n * Binary versions older than this are too old for us (whether we're a loader\n * or a loadee)\n */\n# define OSSL_DYNAMIC_OLDEST             (unsigned long)0x00030000\n\n/*\n * When compiling an ENGINE entirely as an external shared library, loadable\n * by the \"dynamic\" ENGINE, these types are needed. The 'dynamic_fns'\n * structure type provides the calling application's (or library's) error\n * functionality and memory management function pointers to the loaded\n * library. These should be used/set in the loaded library code so that the\n * loading application's 'state' will be used/changed in all operations. The\n * 'static_state' pointer allows the loaded library to know if it shares the\n * same static data as the calling application (or library), and thus whether\n * these callbacks need to be set or not.\n */\ntypedef void *(*dyn_MEM_malloc_fn) (size_t, const char *, int);\ntypedef void *(*dyn_MEM_realloc_fn) (void *, size_t, const char *, int);\ntypedef void (*dyn_MEM_free_fn) (void *, const char *, int);\ntypedef struct st_dynamic_MEM_fns {\n    dyn_MEM_malloc_fn malloc_fn;\n    dyn_MEM_realloc_fn realloc_fn;\n    dyn_MEM_free_fn free_fn;\n} dynamic_MEM_fns;\n/*\n * FIXME: Perhaps the memory and locking code (crypto.h) should declare and\n * use these types so we (and any other dependent code) can simplify a bit??\n */\n/* The top-level structure */\ntypedef struct st_dynamic_fns {\n    void *static_state;\n    dynamic_MEM_fns mem_fns;\n} dynamic_fns;\n\n/*\n * The version checking function should be of this prototype. NB: The\n * ossl_version value passed in is the OSSL_DYNAMIC_VERSION of the loading\n * code. If this function returns zero, it indicates a (potential) version\n * incompatibility and the loaded library doesn't believe it can proceed.\n * Otherwise, the returned value is the (latest) version supported by the\n * loading library. The loader may still decide that the loaded code's\n * version is unsatisfactory and could veto the load. The function is\n * expected to be implemented with the symbol name \"v_check\", and a default\n * implementation can be fully instantiated with\n * IMPLEMENT_DYNAMIC_CHECK_FN().\n */\ntypedef unsigned long (*dynamic_v_check_fn) (unsigned long ossl_version);\n# define IMPLEMENT_DYNAMIC_CHECK_FN() \\\n        OPENSSL_EXPORT unsigned long v_check(unsigned long v); \\\n        OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \\\n                if (v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \\\n                return 0; }\n\n/*\n * This function is passed the ENGINE structure to initialise with its own\n * function and command settings. It should not adjust the structural or\n * functional reference counts. If this function returns zero, (a) the load\n * will be aborted, (b) the previous ENGINE state will be memcpy'd back onto\n * the structure, and (c) the shared library will be unloaded. So\n * implementations should do their own internal cleanup in failure\n * circumstances otherwise they could leak. The 'id' parameter, if non-NULL,\n * represents the ENGINE id that the loader is looking for. If this is NULL,\n * the shared library can choose to return failure or to initialise a\n * 'default' ENGINE. If non-NULL, the shared library must initialise only an\n * ENGINE matching the passed 'id'. The function is expected to be\n * implemented with the symbol name \"bind_engine\". A standard implementation\n * can be instantiated with IMPLEMENT_DYNAMIC_BIND_FN(fn) where the parameter\n * 'fn' is a callback function that populates the ENGINE structure and\n * returns an int value (zero for failure). 'fn' should have prototype;\n * [static] int fn(ENGINE *e, const char *id);\n */\ntypedef int (*dynamic_bind_engine) (ENGINE *e, const char *id,\n                                    const dynamic_fns *fns);\n# define IMPLEMENT_DYNAMIC_BIND_FN(fn) \\\n        OPENSSL_EXPORT \\\n        int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \\\n        OPENSSL_EXPORT \\\n        int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \\\n            if (ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \\\n            CRYPTO_set_mem_functions(fns->mem_fns.malloc_fn, \\\n                                     fns->mem_fns.realloc_fn, \\\n                                     fns->mem_fns.free_fn); \\\n        skip_cbs: \\\n            if (!fn(e, id)) return 0; \\\n            return 1; }\n\n/*\n * If the loading application (or library) and the loaded ENGINE library\n * share the same static data (eg. they're both dynamically linked to the\n * same libcrypto.so) we need a way to avoid trying to set system callbacks -\n * this would fail, and for the same reason that it's unnecessary to try. If\n * the loaded ENGINE has (or gets from through the loader) its own copy of\n * the libcrypto static data, we will need to set the callbacks. The easiest\n * way to detect this is to have a function that returns a pointer to some\n * static data and let the loading application and loaded ENGINE compare\n * their respective values.\n */\nvoid *ENGINE_get_static_state(void);\n\n# if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)\nDEPRECATEDIN_1_1_0(void ENGINE_setup_bsd_cryptodev(void))\n# endif\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/engineerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENGINEERR_H\n# define HEADER_ENGINEERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_ENGINE\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_ENGINE_strings(void);\n\n/*\n * ENGINE function codes.\n */\n#  define ENGINE_F_DIGEST_UPDATE                           198\n#  define ENGINE_F_DYNAMIC_CTRL                            180\n#  define ENGINE_F_DYNAMIC_GET_DATA_CTX                    181\n#  define ENGINE_F_DYNAMIC_LOAD                            182\n#  define ENGINE_F_DYNAMIC_SET_DATA_CTX                    183\n#  define ENGINE_F_ENGINE_ADD                              105\n#  define ENGINE_F_ENGINE_BY_ID                            106\n#  define ENGINE_F_ENGINE_CMD_IS_EXECUTABLE                170\n#  define ENGINE_F_ENGINE_CTRL                             142\n#  define ENGINE_F_ENGINE_CTRL_CMD                         178\n#  define ENGINE_F_ENGINE_CTRL_CMD_STRING                  171\n#  define ENGINE_F_ENGINE_FINISH                           107\n#  define ENGINE_F_ENGINE_GET_CIPHER                       185\n#  define ENGINE_F_ENGINE_GET_DIGEST                       186\n#  define ENGINE_F_ENGINE_GET_FIRST                        195\n#  define ENGINE_F_ENGINE_GET_LAST                         196\n#  define ENGINE_F_ENGINE_GET_NEXT                         115\n#  define ENGINE_F_ENGINE_GET_PKEY_ASN1_METH               193\n#  define ENGINE_F_ENGINE_GET_PKEY_METH                    192\n#  define ENGINE_F_ENGINE_GET_PREV                         116\n#  define ENGINE_F_ENGINE_INIT                             119\n#  define ENGINE_F_ENGINE_LIST_ADD                         120\n#  define ENGINE_F_ENGINE_LIST_REMOVE                      121\n#  define ENGINE_F_ENGINE_LOAD_PRIVATE_KEY                 150\n#  define ENGINE_F_ENGINE_LOAD_PUBLIC_KEY                  151\n#  define ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT             194\n#  define ENGINE_F_ENGINE_NEW                              122\n#  define ENGINE_F_ENGINE_PKEY_ASN1_FIND_STR               197\n#  define ENGINE_F_ENGINE_REMOVE                           123\n#  define ENGINE_F_ENGINE_SET_DEFAULT_STRING               189\n#  define ENGINE_F_ENGINE_SET_ID                           129\n#  define ENGINE_F_ENGINE_SET_NAME                         130\n#  define ENGINE_F_ENGINE_TABLE_REGISTER                   184\n#  define ENGINE_F_ENGINE_UNLOCKED_FINISH                  191\n#  define ENGINE_F_ENGINE_UP_REF                           190\n#  define ENGINE_F_INT_CLEANUP_ITEM                        199\n#  define ENGINE_F_INT_CTRL_HELPER                         172\n#  define ENGINE_F_INT_ENGINE_CONFIGURE                    188\n#  define ENGINE_F_INT_ENGINE_MODULE_INIT                  187\n#  define ENGINE_F_OSSL_HMAC_INIT                          200\n\n/*\n * ENGINE reason codes.\n */\n#  define ENGINE_R_ALREADY_LOADED                          100\n#  define ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER                133\n#  define ENGINE_R_CMD_NOT_EXECUTABLE                      134\n#  define ENGINE_R_COMMAND_TAKES_INPUT                     135\n#  define ENGINE_R_COMMAND_TAKES_NO_INPUT                  136\n#  define ENGINE_R_CONFLICTING_ENGINE_ID                   103\n#  define ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED            119\n#  define ENGINE_R_DSO_FAILURE                             104\n#  define ENGINE_R_DSO_NOT_FOUND                           132\n#  define ENGINE_R_ENGINES_SECTION_ERROR                   148\n#  define ENGINE_R_ENGINE_CONFIGURATION_ERROR              102\n#  define ENGINE_R_ENGINE_IS_NOT_IN_LIST                   105\n#  define ENGINE_R_ENGINE_SECTION_ERROR                    149\n#  define ENGINE_R_FAILED_LOADING_PRIVATE_KEY              128\n#  define ENGINE_R_FAILED_LOADING_PUBLIC_KEY               129\n#  define ENGINE_R_FINISH_FAILED                           106\n#  define ENGINE_R_ID_OR_NAME_MISSING                      108\n#  define ENGINE_R_INIT_FAILED                             109\n#  define ENGINE_R_INTERNAL_LIST_ERROR                     110\n#  define ENGINE_R_INVALID_ARGUMENT                        143\n#  define ENGINE_R_INVALID_CMD_NAME                        137\n#  define ENGINE_R_INVALID_CMD_NUMBER                      138\n#  define ENGINE_R_INVALID_INIT_VALUE                      151\n#  define ENGINE_R_INVALID_STRING                          150\n#  define ENGINE_R_NOT_INITIALISED                         117\n#  define ENGINE_R_NOT_LOADED                              112\n#  define ENGINE_R_NO_CONTROL_FUNCTION                     120\n#  define ENGINE_R_NO_INDEX                                144\n#  define ENGINE_R_NO_LOAD_FUNCTION                        125\n#  define ENGINE_R_NO_REFERENCE                            130\n#  define ENGINE_R_NO_SUCH_ENGINE                          116\n#  define ENGINE_R_UNIMPLEMENTED_CIPHER                    146\n#  define ENGINE_R_UNIMPLEMENTED_DIGEST                    147\n#  define ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD         101\n#  define ENGINE_R_VERSION_INCOMPATIBILITY                 145\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/err.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ERR_H\n# define HEADER_ERR_H\n\n# include <openssl/e_os2.h>\n\n# ifndef OPENSSL_NO_STDIO\n#  include <stdio.h>\n#  include <stdlib.h>\n# endif\n\n# include <openssl/ossl_typ.h>\n# include <openssl/bio.h>\n# include <openssl/lhash.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# ifndef OPENSSL_NO_ERR\n#  define ERR_PUT_error(a,b,c,d,e)        ERR_put_error(a,b,c,d,e)\n# else\n#  define ERR_PUT_error(a,b,c,d,e)        ERR_put_error(a,b,c,NULL,0)\n# endif\n\n# include <errno.h>\n\n# define ERR_TXT_MALLOCED        0x01\n# define ERR_TXT_STRING          0x02\n\n# define ERR_FLAG_MARK           0x01\n# define ERR_FLAG_CLEAR          0x02\n\n# define ERR_NUM_ERRORS  16\ntypedef struct err_state_st {\n    int err_flags[ERR_NUM_ERRORS];\n    unsigned long err_buffer[ERR_NUM_ERRORS];\n    char *err_data[ERR_NUM_ERRORS];\n    int err_data_flags[ERR_NUM_ERRORS];\n    const char *err_file[ERR_NUM_ERRORS];\n    int err_line[ERR_NUM_ERRORS];\n    int top, bottom;\n} ERR_STATE;\n\n/* library */\n# define ERR_LIB_NONE            1\n# define ERR_LIB_SYS             2\n# define ERR_LIB_BN              3\n# define ERR_LIB_RSA             4\n# define ERR_LIB_DH              5\n# define ERR_LIB_EVP             6\n# define ERR_LIB_BUF             7\n# define ERR_LIB_OBJ             8\n# define ERR_LIB_PEM             9\n# define ERR_LIB_DSA             10\n# define ERR_LIB_X509            11\n/* #define ERR_LIB_METH         12 */\n# define ERR_LIB_ASN1            13\n# define ERR_LIB_CONF            14\n# define ERR_LIB_CRYPTO          15\n# define ERR_LIB_EC              16\n# define ERR_LIB_SSL             20\n/* #define ERR_LIB_SSL23        21 */\n/* #define ERR_LIB_SSL2         22 */\n/* #define ERR_LIB_SSL3         23 */\n/* #define ERR_LIB_RSAREF       30 */\n/* #define ERR_LIB_PROXY        31 */\n# define ERR_LIB_BIO             32\n# define ERR_LIB_PKCS7           33\n# define ERR_LIB_X509V3          34\n# define ERR_LIB_PKCS12          35\n# define ERR_LIB_RAND            36\n# define ERR_LIB_DSO             37\n# define ERR_LIB_ENGINE          38\n# define ERR_LIB_OCSP            39\n# define ERR_LIB_UI              40\n# define ERR_LIB_COMP            41\n# define ERR_LIB_ECDSA           42\n# define ERR_LIB_ECDH            43\n# define ERR_LIB_OSSL_STORE      44\n# define ERR_LIB_FIPS            45\n# define ERR_LIB_CMS             46\n# define ERR_LIB_TS              47\n# define ERR_LIB_HMAC            48\n/* # define ERR_LIB_JPAKE       49 */\n# define ERR_LIB_CT              50\n# define ERR_LIB_ASYNC           51\n# define ERR_LIB_KDF             52\n# define ERR_LIB_SM2             53\n\n# define ERR_LIB_USER            128\n\n# define SYSerr(f,r)  ERR_PUT_error(ERR_LIB_SYS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BNerr(f,r)   ERR_PUT_error(ERR_LIB_BN,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define RSAerr(f,r)  ERR_PUT_error(ERR_LIB_RSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DHerr(f,r)   ERR_PUT_error(ERR_LIB_DH,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define EVPerr(f,r)  ERR_PUT_error(ERR_LIB_EVP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BUFerr(f,r)  ERR_PUT_error(ERR_LIB_BUF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OBJerr(f,r)  ERR_PUT_error(ERR_LIB_OBJ,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PEMerr(f,r)  ERR_PUT_error(ERR_LIB_PEM,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DSAerr(f,r)  ERR_PUT_error(ERR_LIB_DSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define X509err(f,r) ERR_PUT_error(ERR_LIB_X509,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ASN1err(f,r) ERR_PUT_error(ERR_LIB_ASN1,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CONFerr(f,r) ERR_PUT_error(ERR_LIB_CONF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CRYPTOerr(f,r) ERR_PUT_error(ERR_LIB_CRYPTO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECerr(f,r)   ERR_PUT_error(ERR_LIB_EC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define SSLerr(f,r)  ERR_PUT_error(ERR_LIB_SSL,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define BIOerr(f,r)  ERR_PUT_error(ERR_LIB_BIO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PKCS7err(f,r) ERR_PUT_error(ERR_LIB_PKCS7,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define X509V3err(f,r) ERR_PUT_error(ERR_LIB_X509V3,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define PKCS12err(f,r) ERR_PUT_error(ERR_LIB_PKCS12,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define RANDerr(f,r) ERR_PUT_error(ERR_LIB_RAND,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define DSOerr(f,r) ERR_PUT_error(ERR_LIB_DSO,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ENGINEerr(f,r) ERR_PUT_error(ERR_LIB_ENGINE,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OCSPerr(f,r) ERR_PUT_error(ERR_LIB_OCSP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define UIerr(f,r) ERR_PUT_error(ERR_LIB_UI,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define COMPerr(f,r) ERR_PUT_error(ERR_LIB_COMP,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECDSAerr(f,r)  ERR_PUT_error(ERR_LIB_ECDSA,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ECDHerr(f,r)  ERR_PUT_error(ERR_LIB_ECDH,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define OSSL_STOREerr(f,r) ERR_PUT_error(ERR_LIB_OSSL_STORE,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define FIPSerr(f,r) ERR_PUT_error(ERR_LIB_FIPS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CMSerr(f,r) ERR_PUT_error(ERR_LIB_CMS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define CTerr(f,r) ERR_PUT_error(ERR_LIB_CT,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define ASYNCerr(f,r) ERR_PUT_error(ERR_LIB_ASYNC,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define KDFerr(f,r) ERR_PUT_error(ERR_LIB_KDF,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n# define SM2err(f,r) ERR_PUT_error(ERR_LIB_SM2,(f),(r),OPENSSL_FILE,OPENSSL_LINE)\n\n# define ERR_PACK(l,f,r) ( \\\n        (((unsigned int)(l) & 0x0FF) << 24L) | \\\n        (((unsigned int)(f) & 0xFFF) << 12L) | \\\n        (((unsigned int)(r) & 0xFFF)       ) )\n# define ERR_GET_LIB(l)          (int)(((l) >> 24L) & 0x0FFL)\n# define ERR_GET_FUNC(l)         (int)(((l) >> 12L) & 0xFFFL)\n# define ERR_GET_REASON(l)       (int)( (l)         & 0xFFFL)\n# define ERR_FATAL_ERROR(l)      (int)( (l)         & ERR_R_FATAL)\n\n/* OS functions */\n# define SYS_F_FOPEN             1\n# define SYS_F_CONNECT           2\n# define SYS_F_GETSERVBYNAME     3\n# define SYS_F_SOCKET            4\n# define SYS_F_IOCTLSOCKET       5\n# define SYS_F_BIND              6\n# define SYS_F_LISTEN            7\n# define SYS_F_ACCEPT            8\n# define SYS_F_WSASTARTUP        9/* Winsock stuff */\n# define SYS_F_OPENDIR           10\n# define SYS_F_FREAD             11\n# define SYS_F_GETADDRINFO       12\n# define SYS_F_GETNAMEINFO       13\n# define SYS_F_SETSOCKOPT        14\n# define SYS_F_GETSOCKOPT        15\n# define SYS_F_GETSOCKNAME       16\n# define SYS_F_GETHOSTBYNAME     17\n# define SYS_F_FFLUSH            18\n# define SYS_F_OPEN              19\n# define SYS_F_CLOSE             20\n# define SYS_F_IOCTL             21\n# define SYS_F_STAT              22\n# define SYS_F_FCNTL             23\n# define SYS_F_FSTAT             24\n\n/* reasons */\n# define ERR_R_SYS_LIB   ERR_LIB_SYS/* 2 */\n# define ERR_R_BN_LIB    ERR_LIB_BN/* 3 */\n# define ERR_R_RSA_LIB   ERR_LIB_RSA/* 4 */\n# define ERR_R_DH_LIB    ERR_LIB_DH/* 5 */\n# define ERR_R_EVP_LIB   ERR_LIB_EVP/* 6 */\n# define ERR_R_BUF_LIB   ERR_LIB_BUF/* 7 */\n# define ERR_R_OBJ_LIB   ERR_LIB_OBJ/* 8 */\n# define ERR_R_PEM_LIB   ERR_LIB_PEM/* 9 */\n# define ERR_R_DSA_LIB   ERR_LIB_DSA/* 10 */\n# define ERR_R_X509_LIB  ERR_LIB_X509/* 11 */\n# define ERR_R_ASN1_LIB  ERR_LIB_ASN1/* 13 */\n# define ERR_R_EC_LIB    ERR_LIB_EC/* 16 */\n# define ERR_R_BIO_LIB   ERR_LIB_BIO/* 32 */\n# define ERR_R_PKCS7_LIB ERR_LIB_PKCS7/* 33 */\n# define ERR_R_X509V3_LIB ERR_LIB_X509V3/* 34 */\n# define ERR_R_ENGINE_LIB ERR_LIB_ENGINE/* 38 */\n# define ERR_R_UI_LIB    ERR_LIB_UI/* 40 */\n# define ERR_R_ECDSA_LIB ERR_LIB_ECDSA/* 42 */\n# define ERR_R_OSSL_STORE_LIB ERR_LIB_OSSL_STORE/* 44 */\n\n# define ERR_R_NESTED_ASN1_ERROR                 58\n# define ERR_R_MISSING_ASN1_EOS                  63\n\n/* fatal error */\n# define ERR_R_FATAL                             64\n# define ERR_R_MALLOC_FAILURE                    (1|ERR_R_FATAL)\n# define ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED       (2|ERR_R_FATAL)\n# define ERR_R_PASSED_NULL_PARAMETER             (3|ERR_R_FATAL)\n# define ERR_R_INTERNAL_ERROR                    (4|ERR_R_FATAL)\n# define ERR_R_DISABLED                          (5|ERR_R_FATAL)\n# define ERR_R_INIT_FAIL                         (6|ERR_R_FATAL)\n# define ERR_R_PASSED_INVALID_ARGUMENT           (7)\n# define ERR_R_OPERATION_FAIL                    (8|ERR_R_FATAL)\n\n/*\n * 99 is the maximum possible ERR_R_... code, higher values are reserved for\n * the individual libraries\n */\n\ntypedef struct ERR_string_data_st {\n    unsigned long error;\n    const char *string;\n} ERR_STRING_DATA;\n\nDEFINE_LHASH_OF(ERR_STRING_DATA);\n\nvoid ERR_put_error(int lib, int func, int reason, const char *file, int line);\nvoid ERR_set_error_data(char *data, int flags);\n\nunsigned long ERR_get_error(void);\nunsigned long ERR_get_error_line(const char **file, int *line);\nunsigned long ERR_get_error_line_data(const char **file, int *line,\n                                      const char **data, int *flags);\nunsigned long ERR_peek_error(void);\nunsigned long ERR_peek_error_line(const char **file, int *line);\nunsigned long ERR_peek_error_line_data(const char **file, int *line,\n                                       const char **data, int *flags);\nunsigned long ERR_peek_last_error(void);\nunsigned long ERR_peek_last_error_line(const char **file, int *line);\nunsigned long ERR_peek_last_error_line_data(const char **file, int *line,\n                                            const char **data, int *flags);\nvoid ERR_clear_error(void);\nchar *ERR_error_string(unsigned long e, char *buf);\nvoid ERR_error_string_n(unsigned long e, char *buf, size_t len);\nconst char *ERR_lib_error_string(unsigned long e);\nconst char *ERR_func_error_string(unsigned long e);\nconst char *ERR_reason_error_string(unsigned long e);\nvoid ERR_print_errors_cb(int (*cb) (const char *str, size_t len, void *u),\n                         void *u);\n# ifndef OPENSSL_NO_STDIO\nvoid ERR_print_errors_fp(FILE *fp);\n# endif\nvoid ERR_print_errors(BIO *bp);\nvoid ERR_add_error_data(int num, ...);\nvoid ERR_add_error_vdata(int num, va_list args);\nint ERR_load_strings(int lib, ERR_STRING_DATA *str);\nint ERR_load_strings_const(const ERR_STRING_DATA *str);\nint ERR_unload_strings(int lib, ERR_STRING_DATA *str);\nint ERR_load_ERR_strings(void);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define ERR_load_crypto_strings() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)\n# define ERR_free_strings() while(0) continue\n#endif\n\nDEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *))\nDEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))\nERR_STATE *ERR_get_state(void);\n\nint ERR_get_next_error_library(void);\n\nint ERR_set_mark(void);\nint ERR_pop_to_mark(void);\nint ERR_clear_last_mark(void);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/evp.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_ENVELOPE_H\n# define HEADER_ENVELOPE_H\n\n# include <openssl/opensslconf.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/bio.h>\n# include <openssl/evperr.h>\n\n# define EVP_MAX_MD_SIZE                 64/* longest known is SHA512 */\n# define EVP_MAX_KEY_LENGTH              64\n# define EVP_MAX_IV_LENGTH               16\n# define EVP_MAX_BLOCK_LENGTH            32\n\n# define PKCS5_SALT_LEN                  8\n/* Default PKCS#5 iteration count */\n# define PKCS5_DEFAULT_ITER              2048\n\n# include <openssl/objects.h>\n\n# define EVP_PK_RSA      0x0001\n# define EVP_PK_DSA      0x0002\n# define EVP_PK_DH       0x0004\n# define EVP_PK_EC       0x0008\n# define EVP_PKT_SIGN    0x0010\n# define EVP_PKT_ENC     0x0020\n# define EVP_PKT_EXCH    0x0040\n# define EVP_PKS_RSA     0x0100\n# define EVP_PKS_DSA     0x0200\n# define EVP_PKS_EC      0x0400\n\n# define EVP_PKEY_NONE   NID_undef\n# define EVP_PKEY_RSA    NID_rsaEncryption\n# define EVP_PKEY_RSA2   NID_rsa\n# define EVP_PKEY_RSA_PSS NID_rsassaPss\n# define EVP_PKEY_DSA    NID_dsa\n# define EVP_PKEY_DSA1   NID_dsa_2\n# define EVP_PKEY_DSA2   NID_dsaWithSHA\n# define EVP_PKEY_DSA3   NID_dsaWithSHA1\n# define EVP_PKEY_DSA4   NID_dsaWithSHA1_2\n# define EVP_PKEY_DH     NID_dhKeyAgreement\n# define EVP_PKEY_DHX    NID_dhpublicnumber\n# define EVP_PKEY_EC     NID_X9_62_id_ecPublicKey\n# define EVP_PKEY_SM2    NID_sm2\n# define EVP_PKEY_HMAC   NID_hmac\n# define EVP_PKEY_CMAC   NID_cmac\n# define EVP_PKEY_SCRYPT NID_id_scrypt\n# define EVP_PKEY_TLS1_PRF NID_tls1_prf\n# define EVP_PKEY_HKDF   NID_hkdf\n# define EVP_PKEY_POLY1305 NID_poly1305\n# define EVP_PKEY_SIPHASH NID_siphash\n# define EVP_PKEY_X25519 NID_X25519\n# define EVP_PKEY_ED25519 NID_ED25519\n# define EVP_PKEY_X448 NID_X448\n# define EVP_PKEY_ED448 NID_ED448\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define EVP_PKEY_MO_SIGN        0x0001\n# define EVP_PKEY_MO_VERIFY      0x0002\n# define EVP_PKEY_MO_ENCRYPT     0x0004\n# define EVP_PKEY_MO_DECRYPT     0x0008\n\n# ifndef EVP_MD\nEVP_MD *EVP_MD_meth_new(int md_type, int pkey_type);\nEVP_MD *EVP_MD_meth_dup(const EVP_MD *md);\nvoid EVP_MD_meth_free(EVP_MD *md);\n\nint EVP_MD_meth_set_input_blocksize(EVP_MD *md, int blocksize);\nint EVP_MD_meth_set_result_size(EVP_MD *md, int resultsize);\nint EVP_MD_meth_set_app_datasize(EVP_MD *md, int datasize);\nint EVP_MD_meth_set_flags(EVP_MD *md, unsigned long flags);\nint EVP_MD_meth_set_init(EVP_MD *md, int (*init)(EVP_MD_CTX *ctx));\nint EVP_MD_meth_set_update(EVP_MD *md, int (*update)(EVP_MD_CTX *ctx,\n                                                     const void *data,\n                                                     size_t count));\nint EVP_MD_meth_set_final(EVP_MD *md, int (*final)(EVP_MD_CTX *ctx,\n                                                   unsigned char *md));\nint EVP_MD_meth_set_copy(EVP_MD *md, int (*copy)(EVP_MD_CTX *to,\n                                                 const EVP_MD_CTX *from));\nint EVP_MD_meth_set_cleanup(EVP_MD *md, int (*cleanup)(EVP_MD_CTX *ctx));\nint EVP_MD_meth_set_ctrl(EVP_MD *md, int (*ctrl)(EVP_MD_CTX *ctx, int cmd,\n                                                 int p1, void *p2));\n\nint EVP_MD_meth_get_input_blocksize(const EVP_MD *md);\nint EVP_MD_meth_get_result_size(const EVP_MD *md);\nint EVP_MD_meth_get_app_datasize(const EVP_MD *md);\nunsigned long EVP_MD_meth_get_flags(const EVP_MD *md);\nint (*EVP_MD_meth_get_init(const EVP_MD *md))(EVP_MD_CTX *ctx);\nint (*EVP_MD_meth_get_update(const EVP_MD *md))(EVP_MD_CTX *ctx,\n                                                const void *data,\n                                                size_t count);\nint (*EVP_MD_meth_get_final(const EVP_MD *md))(EVP_MD_CTX *ctx,\n                                               unsigned char *md);\nint (*EVP_MD_meth_get_copy(const EVP_MD *md))(EVP_MD_CTX *to,\n                                              const EVP_MD_CTX *from);\nint (*EVP_MD_meth_get_cleanup(const EVP_MD *md))(EVP_MD_CTX *ctx);\nint (*EVP_MD_meth_get_ctrl(const EVP_MD *md))(EVP_MD_CTX *ctx, int cmd,\n                                              int p1, void *p2);\n\n/* digest can only handle a single block */\n#  define EVP_MD_FLAG_ONESHOT     0x0001\n\n/* digest is extensible-output function, XOF */\n#  define EVP_MD_FLAG_XOF         0x0002\n\n/* DigestAlgorithmIdentifier flags... */\n\n#  define EVP_MD_FLAG_DIGALGID_MASK               0x0018\n\n/* NULL or absent parameter accepted. Use NULL */\n\n#  define EVP_MD_FLAG_DIGALGID_NULL               0x0000\n\n/* NULL or absent parameter accepted. Use NULL for PKCS#1 otherwise absent */\n\n#  define EVP_MD_FLAG_DIGALGID_ABSENT             0x0008\n\n/* Custom handling via ctrl */\n\n#  define EVP_MD_FLAG_DIGALGID_CUSTOM             0x0018\n\n/* Note if suitable for use in FIPS mode */\n#  define EVP_MD_FLAG_FIPS        0x0400\n\n/* Digest ctrls */\n\n#  define EVP_MD_CTRL_DIGALGID                    0x1\n#  define EVP_MD_CTRL_MICALG                      0x2\n#  define EVP_MD_CTRL_XOF_LEN                     0x3\n\n/* Minimum Algorithm specific ctrl value */\n\n#  define EVP_MD_CTRL_ALG_CTRL                    0x1000\n\n# endif                         /* !EVP_MD */\n\n/* values for EVP_MD_CTX flags */\n\n# define EVP_MD_CTX_FLAG_ONESHOT         0x0001/* digest update will be\n                                                * called once only */\n# define EVP_MD_CTX_FLAG_CLEANED         0x0002/* context has already been\n                                                * cleaned */\n# define EVP_MD_CTX_FLAG_REUSE           0x0004/* Don't free up ctx->md_data\n                                                * in EVP_MD_CTX_reset */\n/*\n * FIPS and pad options are ignored in 1.0.0, definitions are here so we\n * don't accidentally reuse the values for other purposes.\n */\n\n# define EVP_MD_CTX_FLAG_NON_FIPS_ALLOW  0x0008/* Allow use of non FIPS\n                                                * digest in FIPS mode */\n\n/*\n * The following PAD options are also currently ignored in 1.0.0, digest\n * parameters are handled through EVP_DigestSign*() and EVP_DigestVerify*()\n * instead.\n */\n# define EVP_MD_CTX_FLAG_PAD_MASK        0xF0/* RSA mode to use */\n# define EVP_MD_CTX_FLAG_PAD_PKCS1       0x00/* PKCS#1 v1.5 mode */\n# define EVP_MD_CTX_FLAG_PAD_X931        0x10/* X9.31 mode */\n# define EVP_MD_CTX_FLAG_PAD_PSS         0x20/* PSS mode */\n\n# define EVP_MD_CTX_FLAG_NO_INIT         0x0100/* Don't initialize md_data */\n/*\n * Some functions such as EVP_DigestSign only finalise copies of internal\n * contexts so additional data can be included after the finalisation call.\n * This is inefficient if this functionality is not required: it is disabled\n * if the following flag is set.\n */\n# define EVP_MD_CTX_FLAG_FINALISE        0x0200\n/* NOTE: 0x0400 is reserved for internal usage */\n\nEVP_CIPHER *EVP_CIPHER_meth_new(int cipher_type, int block_size, int key_len);\nEVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher);\nvoid EVP_CIPHER_meth_free(EVP_CIPHER *cipher);\n\nint EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len);\nint EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags);\nint EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size);\nint EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher,\n                             int (*init) (EVP_CIPHER_CTX *ctx,\n                                          const unsigned char *key,\n                                          const unsigned char *iv,\n                                          int enc));\nint EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher,\n                                  int (*do_cipher) (EVP_CIPHER_CTX *ctx,\n                                                    unsigned char *out,\n                                                    const unsigned char *in,\n                                                    size_t inl));\nint EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher,\n                                int (*cleanup) (EVP_CIPHER_CTX *));\nint EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher,\n                                        int (*set_asn1_parameters) (EVP_CIPHER_CTX *,\n                                                                    ASN1_TYPE *));\nint EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher,\n                                        int (*get_asn1_parameters) (EVP_CIPHER_CTX *,\n                                                                    ASN1_TYPE *));\nint EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher,\n                             int (*ctrl) (EVP_CIPHER_CTX *, int type,\n                                          int arg, void *ptr));\n\nint (*EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,\n                                                          const unsigned char *key,\n                                                          const unsigned char *iv,\n                                                          int enc);\nint (*EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *ctx,\n                                                               unsigned char *out,\n                                                               const unsigned char *in,\n                                                               size_t inl);\nint (*EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *);\nint (*EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                                     ASN1_TYPE *);\nint (*EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                               ASN1_TYPE *);\nint (*EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher))(EVP_CIPHER_CTX *,\n                                                          int type, int arg,\n                                                          void *ptr);\n\n/* Values for cipher flags */\n\n/* Modes for ciphers */\n\n# define         EVP_CIPH_STREAM_CIPHER          0x0\n# define         EVP_CIPH_ECB_MODE               0x1\n# define         EVP_CIPH_CBC_MODE               0x2\n# define         EVP_CIPH_CFB_MODE               0x3\n# define         EVP_CIPH_OFB_MODE               0x4\n# define         EVP_CIPH_CTR_MODE               0x5\n# define         EVP_CIPH_GCM_MODE               0x6\n# define         EVP_CIPH_CCM_MODE               0x7\n# define         EVP_CIPH_XTS_MODE               0x10001\n# define         EVP_CIPH_WRAP_MODE              0x10002\n# define         EVP_CIPH_OCB_MODE               0x10003\n# define         EVP_CIPH_MODE                   0xF0007\n/* Set if variable length cipher */\n# define         EVP_CIPH_VARIABLE_LENGTH        0x8\n/* Set if the iv handling should be done by the cipher itself */\n# define         EVP_CIPH_CUSTOM_IV              0x10\n/* Set if the cipher's init() function should be called if key is NULL */\n# define         EVP_CIPH_ALWAYS_CALL_INIT       0x20\n/* Call ctrl() to init cipher parameters */\n# define         EVP_CIPH_CTRL_INIT              0x40\n/* Don't use standard key length function */\n# define         EVP_CIPH_CUSTOM_KEY_LENGTH      0x80\n/* Don't use standard block padding */\n# define         EVP_CIPH_NO_PADDING             0x100\n/* cipher handles random key generation */\n# define         EVP_CIPH_RAND_KEY               0x200\n/* cipher has its own additional copying logic */\n# define         EVP_CIPH_CUSTOM_COPY            0x400\n/* Don't use standard iv length function */\n# define         EVP_CIPH_CUSTOM_IV_LENGTH       0x800\n/* Allow use default ASN1 get/set iv */\n# define         EVP_CIPH_FLAG_DEFAULT_ASN1      0x1000\n/* Buffer length in bits not bytes: CFB1 mode only */\n# define         EVP_CIPH_FLAG_LENGTH_BITS       0x2000\n/* Note if suitable for use in FIPS mode */\n# define         EVP_CIPH_FLAG_FIPS              0x4000\n/* Allow non FIPS cipher in FIPS mode */\n# define         EVP_CIPH_FLAG_NON_FIPS_ALLOW    0x8000\n/*\n * Cipher handles any and all padding logic as well as finalisation.\n */\n# define         EVP_CIPH_FLAG_CUSTOM_CIPHER     0x100000\n# define         EVP_CIPH_FLAG_AEAD_CIPHER       0x200000\n# define         EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK 0x400000\n/* Cipher can handle pipeline operations */\n# define         EVP_CIPH_FLAG_PIPELINE          0X800000\n\n/*\n * Cipher context flag to indicate we can handle wrap mode: if allowed in\n * older applications it could overflow buffers.\n */\n\n# define         EVP_CIPHER_CTX_FLAG_WRAP_ALLOW  0x1\n\n/* ctrl() values */\n\n# define         EVP_CTRL_INIT                   0x0\n# define         EVP_CTRL_SET_KEY_LENGTH         0x1\n# define         EVP_CTRL_GET_RC2_KEY_BITS       0x2\n# define         EVP_CTRL_SET_RC2_KEY_BITS       0x3\n# define         EVP_CTRL_GET_RC5_ROUNDS         0x4\n# define         EVP_CTRL_SET_RC5_ROUNDS         0x5\n# define         EVP_CTRL_RAND_KEY               0x6\n# define         EVP_CTRL_PBE_PRF_NID            0x7\n# define         EVP_CTRL_COPY                   0x8\n# define         EVP_CTRL_AEAD_SET_IVLEN         0x9\n# define         EVP_CTRL_AEAD_GET_TAG           0x10\n# define         EVP_CTRL_AEAD_SET_TAG           0x11\n# define         EVP_CTRL_AEAD_SET_IV_FIXED      0x12\n# define         EVP_CTRL_GCM_SET_IVLEN          EVP_CTRL_AEAD_SET_IVLEN\n# define         EVP_CTRL_GCM_GET_TAG            EVP_CTRL_AEAD_GET_TAG\n# define         EVP_CTRL_GCM_SET_TAG            EVP_CTRL_AEAD_SET_TAG\n# define         EVP_CTRL_GCM_SET_IV_FIXED       EVP_CTRL_AEAD_SET_IV_FIXED\n# define         EVP_CTRL_GCM_IV_GEN             0x13\n# define         EVP_CTRL_CCM_SET_IVLEN          EVP_CTRL_AEAD_SET_IVLEN\n# define         EVP_CTRL_CCM_GET_TAG            EVP_CTRL_AEAD_GET_TAG\n# define         EVP_CTRL_CCM_SET_TAG            EVP_CTRL_AEAD_SET_TAG\n# define         EVP_CTRL_CCM_SET_IV_FIXED       EVP_CTRL_AEAD_SET_IV_FIXED\n# define         EVP_CTRL_CCM_SET_L              0x14\n# define         EVP_CTRL_CCM_SET_MSGLEN         0x15\n/*\n * AEAD cipher deduces payload length and returns number of bytes required to\n * store MAC and eventual padding. Subsequent call to EVP_Cipher even\n * appends/verifies MAC.\n */\n# define         EVP_CTRL_AEAD_TLS1_AAD          0x16\n/* Used by composite AEAD ciphers, no-op in GCM, CCM... */\n# define         EVP_CTRL_AEAD_SET_MAC_KEY       0x17\n/* Set the GCM invocation field, decrypt only */\n# define         EVP_CTRL_GCM_SET_IV_INV         0x18\n\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_AAD  0x19\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_ENCRYPT      0x1a\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT      0x1b\n# define         EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE  0x1c\n\n# define         EVP_CTRL_SSL3_MASTER_SECRET             0x1d\n\n/* EVP_CTRL_SET_SBOX takes the char * specifying S-boxes */\n# define         EVP_CTRL_SET_SBOX                       0x1e\n/*\n * EVP_CTRL_SBOX_USED takes a 'size_t' and 'char *', pointing at a\n * pre-allocated buffer with specified size\n */\n# define         EVP_CTRL_SBOX_USED                      0x1f\n/* EVP_CTRL_KEY_MESH takes 'size_t' number of bytes to mesh the key after,\n * 0 switches meshing off\n */\n# define         EVP_CTRL_KEY_MESH                       0x20\n/* EVP_CTRL_BLOCK_PADDING_MODE takes the padding mode */\n# define         EVP_CTRL_BLOCK_PADDING_MODE             0x21\n\n/* Set the output buffers to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS       0x22\n/* Set the input buffers to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_INPUT_BUFS        0x23\n/* Set the input buffer lengths to use for a pipelined operation */\n# define         EVP_CTRL_SET_PIPELINE_INPUT_LENS        0x24\n\n# define         EVP_CTRL_GET_IVLEN                      0x25\n\n/* Padding modes */\n#define EVP_PADDING_PKCS7       1\n#define EVP_PADDING_ISO7816_4   2\n#define EVP_PADDING_ANSI923     3\n#define EVP_PADDING_ISO10126    4\n#define EVP_PADDING_ZERO        5\n\n/* RFC 5246 defines additional data to be 13 bytes in length */\n# define         EVP_AEAD_TLS1_AAD_LEN           13\n\ntypedef struct {\n    unsigned char *out;\n    const unsigned char *inp;\n    size_t len;\n    unsigned int interleave;\n} EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM;\n\n/* GCM TLS constants */\n/* Length of fixed part of IV derived from PRF */\n# define EVP_GCM_TLS_FIXED_IV_LEN                        4\n/* Length of explicit part of IV part of TLS records */\n# define EVP_GCM_TLS_EXPLICIT_IV_LEN                     8\n/* Length of tag for TLS */\n# define EVP_GCM_TLS_TAG_LEN                             16\n\n/* CCM TLS constants */\n/* Length of fixed part of IV derived from PRF */\n# define EVP_CCM_TLS_FIXED_IV_LEN                        4\n/* Length of explicit part of IV part of TLS records */\n# define EVP_CCM_TLS_EXPLICIT_IV_LEN                     8\n/* Total length of CCM IV length for TLS */\n# define EVP_CCM_TLS_IV_LEN                              12\n/* Length of tag for TLS */\n# define EVP_CCM_TLS_TAG_LEN                             16\n/* Length of CCM8 tag for TLS */\n# define EVP_CCM8_TLS_TAG_LEN                            8\n\n/* Length of tag for TLS */\n# define EVP_CHACHAPOLY_TLS_TAG_LEN                      16\n\ntypedef struct evp_cipher_info_st {\n    const EVP_CIPHER *cipher;\n    unsigned char iv[EVP_MAX_IV_LENGTH];\n} EVP_CIPHER_INFO;\n\n\n/* Password based encryption function */\ntypedef int (EVP_PBE_KEYGEN) (EVP_CIPHER_CTX *ctx, const char *pass,\n                              int passlen, ASN1_TYPE *param,\n                              const EVP_CIPHER *cipher, const EVP_MD *md,\n                              int en_de);\n\n# ifndef OPENSSL_NO_RSA\n#  define EVP_PKEY_assign_RSA(pkey,rsa) EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\\\n                                        (char *)(rsa))\n# endif\n\n# ifndef OPENSSL_NO_DSA\n#  define EVP_PKEY_assign_DSA(pkey,dsa) EVP_PKEY_assign((pkey),EVP_PKEY_DSA,\\\n                                        (char *)(dsa))\n# endif\n\n# ifndef OPENSSL_NO_DH\n#  define EVP_PKEY_assign_DH(pkey,dh) EVP_PKEY_assign((pkey),EVP_PKEY_DH,\\\n                                        (char *)(dh))\n# endif\n\n# ifndef OPENSSL_NO_EC\n#  define EVP_PKEY_assign_EC_KEY(pkey,eckey) EVP_PKEY_assign((pkey),EVP_PKEY_EC,\\\n                                        (char *)(eckey))\n# endif\n# ifndef OPENSSL_NO_SIPHASH\n#  define EVP_PKEY_assign_SIPHASH(pkey,shkey) EVP_PKEY_assign((pkey),EVP_PKEY_SIPHASH,\\\n                                        (char *)(shkey))\n# endif\n\n# ifndef OPENSSL_NO_POLY1305\n#  define EVP_PKEY_assign_POLY1305(pkey,polykey) EVP_PKEY_assign((pkey),EVP_PKEY_POLY1305,\\\n                                        (char *)(polykey))\n# endif\n\n/* Add some extra combinations */\n# define EVP_get_digestbynid(a) EVP_get_digestbyname(OBJ_nid2sn(a))\n# define EVP_get_digestbyobj(a) EVP_get_digestbynid(OBJ_obj2nid(a))\n# define EVP_get_cipherbynid(a) EVP_get_cipherbyname(OBJ_nid2sn(a))\n# define EVP_get_cipherbyobj(a) EVP_get_cipherbynid(OBJ_obj2nid(a))\n\nint EVP_MD_type(const EVP_MD *md);\n# define EVP_MD_nid(e)                   EVP_MD_type(e)\n# define EVP_MD_name(e)                  OBJ_nid2sn(EVP_MD_nid(e))\nint EVP_MD_pkey_type(const EVP_MD *md);\nint EVP_MD_size(const EVP_MD *md);\nint EVP_MD_block_size(const EVP_MD *md);\nunsigned long EVP_MD_flags(const EVP_MD *md);\n\nconst EVP_MD *EVP_MD_CTX_md(const EVP_MD_CTX *ctx);\nint (*EVP_MD_CTX_update_fn(EVP_MD_CTX *ctx))(EVP_MD_CTX *ctx,\n                                             const void *data, size_t count);\nvoid EVP_MD_CTX_set_update_fn(EVP_MD_CTX *ctx,\n                              int (*update) (EVP_MD_CTX *ctx,\n                                             const void *data, size_t count));\n# define EVP_MD_CTX_size(e)              EVP_MD_size(EVP_MD_CTX_md(e))\n# define EVP_MD_CTX_block_size(e)        EVP_MD_block_size(EVP_MD_CTX_md(e))\n# define EVP_MD_CTX_type(e)              EVP_MD_type(EVP_MD_CTX_md(e))\nEVP_PKEY_CTX *EVP_MD_CTX_pkey_ctx(const EVP_MD_CTX *ctx);\nvoid EVP_MD_CTX_set_pkey_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pctx);\nvoid *EVP_MD_CTX_md_data(const EVP_MD_CTX *ctx);\n\nint EVP_CIPHER_nid(const EVP_CIPHER *cipher);\n# define EVP_CIPHER_name(e)              OBJ_nid2sn(EVP_CIPHER_nid(e))\nint EVP_CIPHER_block_size(const EVP_CIPHER *cipher);\nint EVP_CIPHER_impl_ctx_size(const EVP_CIPHER *cipher);\nint EVP_CIPHER_key_length(const EVP_CIPHER *cipher);\nint EVP_CIPHER_iv_length(const EVP_CIPHER *cipher);\nunsigned long EVP_CIPHER_flags(const EVP_CIPHER *cipher);\n# define EVP_CIPHER_mode(e)              (EVP_CIPHER_flags(e) & EVP_CIPH_MODE)\n\nconst EVP_CIPHER *EVP_CIPHER_CTX_cipher(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_nid(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);\nconst unsigned char *EVP_CIPHER_CTX_iv(const EVP_CIPHER_CTX *ctx);\nconst unsigned char *EVP_CIPHER_CTX_original_iv(const EVP_CIPHER_CTX *ctx);\nunsigned char *EVP_CIPHER_CTX_iv_noconst(EVP_CIPHER_CTX *ctx);\nunsigned char *EVP_CIPHER_CTX_buf_noconst(EVP_CIPHER_CTX *ctx);\nint EVP_CIPHER_CTX_num(const EVP_CIPHER_CTX *ctx);\nvoid EVP_CIPHER_CTX_set_num(EVP_CIPHER_CTX *ctx, int num);\nint EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);\nvoid *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);\nvoid EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);\nvoid *EVP_CIPHER_CTX_get_cipher_data(const EVP_CIPHER_CTX *ctx);\nvoid *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);\n# define EVP_CIPHER_CTX_type(c)         EVP_CIPHER_type(EVP_CIPHER_CTX_cipher(c))\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define EVP_CIPHER_CTX_flags(c)       EVP_CIPHER_flags(EVP_CIPHER_CTX_cipher(c))\n# endif\n# define EVP_CIPHER_CTX_mode(c)         EVP_CIPHER_mode(EVP_CIPHER_CTX_cipher(c))\n\n# define EVP_ENCODE_LENGTH(l)    ((((l)+2)/3*4)+((l)/48+1)*2+80)\n# define EVP_DECODE_LENGTH(l)    (((l)+3)/4*3+80)\n\n# define EVP_SignInit_ex(a,b,c)          EVP_DigestInit_ex(a,b,c)\n# define EVP_SignInit(a,b)               EVP_DigestInit(a,b)\n# define EVP_SignUpdate(a,b,c)           EVP_DigestUpdate(a,b,c)\n# define EVP_VerifyInit_ex(a,b,c)        EVP_DigestInit_ex(a,b,c)\n# define EVP_VerifyInit(a,b)             EVP_DigestInit(a,b)\n# define EVP_VerifyUpdate(a,b,c)         EVP_DigestUpdate(a,b,c)\n# define EVP_OpenUpdate(a,b,c,d,e)       EVP_DecryptUpdate(a,b,c,d,e)\n# define EVP_SealUpdate(a,b,c,d,e)       EVP_EncryptUpdate(a,b,c,d,e)\n# define EVP_DigestSignUpdate(a,b,c)     EVP_DigestUpdate(a,b,c)\n# define EVP_DigestVerifyUpdate(a,b,c)   EVP_DigestUpdate(a,b,c)\n\n# ifdef CONST_STRICT\nvoid BIO_set_md(BIO *, const EVP_MD *md);\n# else\n#  define BIO_set_md(b,md)          BIO_ctrl(b,BIO_C_SET_MD,0,(char *)(md))\n# endif\n# define BIO_get_md(b,mdp)          BIO_ctrl(b,BIO_C_GET_MD,0,(char *)(mdp))\n# define BIO_get_md_ctx(b,mdcp)     BIO_ctrl(b,BIO_C_GET_MD_CTX,0, \\\n                                             (char *)(mdcp))\n# define BIO_set_md_ctx(b,mdcp)     BIO_ctrl(b,BIO_C_SET_MD_CTX,0, \\\n                                             (char *)(mdcp))\n# define BIO_get_cipher_status(b)   BIO_ctrl(b,BIO_C_GET_CIPHER_STATUS,0,NULL)\n# define BIO_get_cipher_ctx(b,c_pp) BIO_ctrl(b,BIO_C_GET_CIPHER_CTX,0, \\\n                                             (char *)(c_pp))\n\n/*__owur*/ int EVP_Cipher(EVP_CIPHER_CTX *c,\n                          unsigned char *out,\n                          const unsigned char *in, unsigned int inl);\n\n# define EVP_add_cipher_alias(n,alias) \\\n        OBJ_NAME_add((alias),OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS,(n))\n# define EVP_add_digest_alias(n,alias) \\\n        OBJ_NAME_add((alias),OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS,(n))\n# define EVP_delete_cipher_alias(alias) \\\n        OBJ_NAME_remove(alias,OBJ_NAME_TYPE_CIPHER_METH|OBJ_NAME_ALIAS);\n# define EVP_delete_digest_alias(alias) \\\n        OBJ_NAME_remove(alias,OBJ_NAME_TYPE_MD_METH|OBJ_NAME_ALIAS);\n\nint EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2);\nEVP_MD_CTX *EVP_MD_CTX_new(void);\nint EVP_MD_CTX_reset(EVP_MD_CTX *ctx);\nvoid EVP_MD_CTX_free(EVP_MD_CTX *ctx);\n# define EVP_MD_CTX_create()     EVP_MD_CTX_new()\n# define EVP_MD_CTX_init(ctx)    EVP_MD_CTX_reset((ctx))\n# define EVP_MD_CTX_destroy(ctx) EVP_MD_CTX_free((ctx))\n__owur int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in);\nvoid EVP_MD_CTX_set_flags(EVP_MD_CTX *ctx, int flags);\nvoid EVP_MD_CTX_clear_flags(EVP_MD_CTX *ctx, int flags);\nint EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags);\n__owur int EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type,\n                                 ENGINE *impl);\n__owur int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *d,\n                                size_t cnt);\n__owur int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md,\n                                  unsigned int *s);\n__owur int EVP_Digest(const void *data, size_t count,\n                          unsigned char *md, unsigned int *size,\n                          const EVP_MD *type, ENGINE *impl);\n\n__owur int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in);\n__owur int EVP_DigestInit(EVP_MD_CTX *ctx, const EVP_MD *type);\n__owur int EVP_DigestFinal(EVP_MD_CTX *ctx, unsigned char *md,\n                           unsigned int *s);\n__owur int EVP_DigestFinalXOF(EVP_MD_CTX *ctx, unsigned char *md,\n                              size_t len);\n\nint EVP_read_pw_string(char *buf, int length, const char *prompt, int verify);\nint EVP_read_pw_string_min(char *buf, int minlen, int maxlen,\n                           const char *prompt, int verify);\nvoid EVP_set_pw_prompt(const char *prompt);\nchar *EVP_get_pw_prompt(void);\n\n__owur int EVP_BytesToKey(const EVP_CIPHER *type, const EVP_MD *md,\n                          const unsigned char *salt,\n                          const unsigned char *data, int datal, int count,\n                          unsigned char *key, unsigned char *iv);\n\nvoid EVP_CIPHER_CTX_set_flags(EVP_CIPHER_CTX *ctx, int flags);\nvoid EVP_CIPHER_CTX_clear_flags(EVP_CIPHER_CTX *ctx, int flags);\nint EVP_CIPHER_CTX_test_flags(const EVP_CIPHER_CTX *ctx, int flags);\n\n__owur int EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                           const unsigned char *key, const unsigned char *iv);\n/*__owur*/ int EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,\n                                  const EVP_CIPHER *cipher, ENGINE *impl,\n                                  const unsigned char *key,\n                                  const unsigned char *iv);\n/*__owur*/ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                 int *outl, const unsigned char *in, int inl);\n/*__owur*/ int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                   int *outl);\n/*__owur*/ int EVP_EncryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                int *outl);\n\n__owur int EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                           const unsigned char *key, const unsigned char *iv);\n/*__owur*/ int EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx,\n                                  const EVP_CIPHER *cipher, ENGINE *impl,\n                                  const unsigned char *key,\n                                  const unsigned char *iv);\n/*__owur*/ int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                                 int *outl, const unsigned char *in, int inl);\n__owur int EVP_DecryptFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                            int *outl);\n/*__owur*/ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                                   int *outl);\n\n__owur int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,\n                          const unsigned char *key, const unsigned char *iv,\n                          int enc);\n/*__owur*/ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx,\n                                 const EVP_CIPHER *cipher, ENGINE *impl,\n                                 const unsigned char *key,\n                                 const unsigned char *iv, int enc);\n__owur int EVP_CipherUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out,\n                            int *outl, const unsigned char *in, int inl);\n__owur int EVP_CipherFinal(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                           int *outl);\n__owur int EVP_CipherFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *outm,\n                              int *outl);\n\n__owur int EVP_SignFinal(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *s,\n                         EVP_PKEY *pkey);\n\n__owur int EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret,\n                          size_t *siglen, const unsigned char *tbs,\n                          size_t tbslen);\n\n__owur int EVP_VerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sigbuf,\n                           unsigned int siglen, EVP_PKEY *pkey);\n\n__owur int EVP_DigestVerify(EVP_MD_CTX *ctx, const unsigned char *sigret,\n                            size_t siglen, const unsigned char *tbs,\n                            size_t tbslen);\n\n/*__owur*/ int EVP_DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,\n                                  const EVP_MD *type, ENGINE *e,\n                                  EVP_PKEY *pkey);\n__owur int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,\n                               size_t *siglen);\n\n__owur int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,\n                                const EVP_MD *type, ENGINE *e,\n                                EVP_PKEY *pkey);\n__owur int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,\n                                 size_t siglen);\n\n# ifndef OPENSSL_NO_RSA\n__owur int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n                        const unsigned char *ek, int ekl,\n                        const unsigned char *iv, EVP_PKEY *priv);\n__owur int EVP_OpenFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n\n__owur int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,\n                        unsigned char **ek, int *ekl, unsigned char *iv,\n                        EVP_PKEY **pubk, int npubk);\n__owur int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl);\n# endif\n\nEVP_ENCODE_CTX *EVP_ENCODE_CTX_new(void);\nvoid EVP_ENCODE_CTX_free(EVP_ENCODE_CTX *ctx);\nint EVP_ENCODE_CTX_copy(EVP_ENCODE_CTX *dctx, EVP_ENCODE_CTX *sctx);\nint EVP_ENCODE_CTX_num(EVP_ENCODE_CTX *ctx);\nvoid EVP_EncodeInit(EVP_ENCODE_CTX *ctx);\nint EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,\n                     const unsigned char *in, int inl);\nvoid EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl);\nint EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n);\n\nvoid EVP_DecodeInit(EVP_ENCODE_CTX *ctx);\nint EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,\n                     const unsigned char *in, int inl);\nint EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned\n                    char *out, int *outl);\nint EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define EVP_CIPHER_CTX_init(c)      EVP_CIPHER_CTX_reset(c)\n#  define EVP_CIPHER_CTX_cleanup(c)   EVP_CIPHER_CTX_reset(c)\n# endif\nEVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);\nint EVP_CIPHER_CTX_reset(EVP_CIPHER_CTX *c);\nvoid EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *c);\nint EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *x, int keylen);\nint EVP_CIPHER_CTX_set_padding(EVP_CIPHER_CTX *c, int pad);\nint EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr);\nint EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key);\n\nconst BIO_METHOD *BIO_f_md(void);\nconst BIO_METHOD *BIO_f_base64(void);\nconst BIO_METHOD *BIO_f_cipher(void);\nconst BIO_METHOD *BIO_f_reliable(void);\n__owur int BIO_set_cipher(BIO *b, const EVP_CIPHER *c, const unsigned char *k,\n                          const unsigned char *i, int enc);\n\nconst EVP_MD *EVP_md_null(void);\n# ifndef OPENSSL_NO_MD2\nconst EVP_MD *EVP_md2(void);\n# endif\n# ifndef OPENSSL_NO_MD4\nconst EVP_MD *EVP_md4(void);\n# endif\n# ifndef OPENSSL_NO_MD5\nconst EVP_MD *EVP_md5(void);\nconst EVP_MD *EVP_md5_sha1(void);\n# endif\n# ifndef OPENSSL_NO_BLAKE2\nconst EVP_MD *EVP_blake2b512(void);\nconst EVP_MD *EVP_blake2s256(void);\n# endif\nconst EVP_MD *EVP_sha1(void);\nconst EVP_MD *EVP_sha224(void);\nconst EVP_MD *EVP_sha256(void);\nconst EVP_MD *EVP_sha384(void);\nconst EVP_MD *EVP_sha512(void);\nconst EVP_MD *EVP_sha512_224(void);\nconst EVP_MD *EVP_sha512_256(void);\nconst EVP_MD *EVP_sha3_224(void);\nconst EVP_MD *EVP_sha3_256(void);\nconst EVP_MD *EVP_sha3_384(void);\nconst EVP_MD *EVP_sha3_512(void);\nconst EVP_MD *EVP_shake128(void);\nconst EVP_MD *EVP_shake256(void);\n# ifndef OPENSSL_NO_MDC2\nconst EVP_MD *EVP_mdc2(void);\n# endif\n# ifndef OPENSSL_NO_RMD160\nconst EVP_MD *EVP_ripemd160(void);\n# endif\n# ifndef OPENSSL_NO_WHIRLPOOL\nconst EVP_MD *EVP_whirlpool(void);\n# endif\n# ifndef OPENSSL_NO_SM3\nconst EVP_MD *EVP_sm3(void);\n# endif\nconst EVP_CIPHER *EVP_enc_null(void); /* does nothing :-) */\n# ifndef OPENSSL_NO_DES\nconst EVP_CIPHER *EVP_des_ecb(void);\nconst EVP_CIPHER *EVP_des_ede(void);\nconst EVP_CIPHER *EVP_des_ede3(void);\nconst EVP_CIPHER *EVP_des_ede_ecb(void);\nconst EVP_CIPHER *EVP_des_ede3_ecb(void);\nconst EVP_CIPHER *EVP_des_cfb64(void);\n#  define EVP_des_cfb EVP_des_cfb64\nconst EVP_CIPHER *EVP_des_cfb1(void);\nconst EVP_CIPHER *EVP_des_cfb8(void);\nconst EVP_CIPHER *EVP_des_ede_cfb64(void);\n#  define EVP_des_ede_cfb EVP_des_ede_cfb64\nconst EVP_CIPHER *EVP_des_ede3_cfb64(void);\n#  define EVP_des_ede3_cfb EVP_des_ede3_cfb64\nconst EVP_CIPHER *EVP_des_ede3_cfb1(void);\nconst EVP_CIPHER *EVP_des_ede3_cfb8(void);\nconst EVP_CIPHER *EVP_des_ofb(void);\nconst EVP_CIPHER *EVP_des_ede_ofb(void);\nconst EVP_CIPHER *EVP_des_ede3_ofb(void);\nconst EVP_CIPHER *EVP_des_cbc(void);\nconst EVP_CIPHER *EVP_des_ede_cbc(void);\nconst EVP_CIPHER *EVP_des_ede3_cbc(void);\nconst EVP_CIPHER *EVP_desx_cbc(void);\nconst EVP_CIPHER *EVP_des_ede3_wrap(void);\n/*\n * This should now be supported through the dev_crypto ENGINE. But also, why\n * are rc4 and md5 declarations made here inside a \"NO_DES\" precompiler\n * branch?\n */\n# endif\n# ifndef OPENSSL_NO_RC4\nconst EVP_CIPHER *EVP_rc4(void);\nconst EVP_CIPHER *EVP_rc4_40(void);\n#  ifndef OPENSSL_NO_MD5\nconst EVP_CIPHER *EVP_rc4_hmac_md5(void);\n#  endif\n# endif\n# ifndef OPENSSL_NO_IDEA\nconst EVP_CIPHER *EVP_idea_ecb(void);\nconst EVP_CIPHER *EVP_idea_cfb64(void);\n#  define EVP_idea_cfb EVP_idea_cfb64\nconst EVP_CIPHER *EVP_idea_ofb(void);\nconst EVP_CIPHER *EVP_idea_cbc(void);\n# endif\n# ifndef OPENSSL_NO_RC2\nconst EVP_CIPHER *EVP_rc2_ecb(void);\nconst EVP_CIPHER *EVP_rc2_cbc(void);\nconst EVP_CIPHER *EVP_rc2_40_cbc(void);\nconst EVP_CIPHER *EVP_rc2_64_cbc(void);\nconst EVP_CIPHER *EVP_rc2_cfb64(void);\n#  define EVP_rc2_cfb EVP_rc2_cfb64\nconst EVP_CIPHER *EVP_rc2_ofb(void);\n# endif\n# ifndef OPENSSL_NO_BF\nconst EVP_CIPHER *EVP_bf_ecb(void);\nconst EVP_CIPHER *EVP_bf_cbc(void);\nconst EVP_CIPHER *EVP_bf_cfb64(void);\n#  define EVP_bf_cfb EVP_bf_cfb64\nconst EVP_CIPHER *EVP_bf_ofb(void);\n# endif\n# ifndef OPENSSL_NO_CAST\nconst EVP_CIPHER *EVP_cast5_ecb(void);\nconst EVP_CIPHER *EVP_cast5_cbc(void);\nconst EVP_CIPHER *EVP_cast5_cfb64(void);\n#  define EVP_cast5_cfb EVP_cast5_cfb64\nconst EVP_CIPHER *EVP_cast5_ofb(void);\n# endif\n# ifndef OPENSSL_NO_RC5\nconst EVP_CIPHER *EVP_rc5_32_12_16_cbc(void);\nconst EVP_CIPHER *EVP_rc5_32_12_16_ecb(void);\nconst EVP_CIPHER *EVP_rc5_32_12_16_cfb64(void);\n#  define EVP_rc5_32_12_16_cfb EVP_rc5_32_12_16_cfb64\nconst EVP_CIPHER *EVP_rc5_32_12_16_ofb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_128_ecb(void);\nconst EVP_CIPHER *EVP_aes_128_cbc(void);\nconst EVP_CIPHER *EVP_aes_128_cfb1(void);\nconst EVP_CIPHER *EVP_aes_128_cfb8(void);\nconst EVP_CIPHER *EVP_aes_128_cfb128(void);\n# define EVP_aes_128_cfb EVP_aes_128_cfb128\nconst EVP_CIPHER *EVP_aes_128_ofb(void);\nconst EVP_CIPHER *EVP_aes_128_ctr(void);\nconst EVP_CIPHER *EVP_aes_128_ccm(void);\nconst EVP_CIPHER *EVP_aes_128_gcm(void);\nconst EVP_CIPHER *EVP_aes_128_xts(void);\nconst EVP_CIPHER *EVP_aes_128_wrap(void);\nconst EVP_CIPHER *EVP_aes_128_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_128_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_192_ecb(void);\nconst EVP_CIPHER *EVP_aes_192_cbc(void);\nconst EVP_CIPHER *EVP_aes_192_cfb1(void);\nconst EVP_CIPHER *EVP_aes_192_cfb8(void);\nconst EVP_CIPHER *EVP_aes_192_cfb128(void);\n# define EVP_aes_192_cfb EVP_aes_192_cfb128\nconst EVP_CIPHER *EVP_aes_192_ofb(void);\nconst EVP_CIPHER *EVP_aes_192_ctr(void);\nconst EVP_CIPHER *EVP_aes_192_ccm(void);\nconst EVP_CIPHER *EVP_aes_192_gcm(void);\nconst EVP_CIPHER *EVP_aes_192_wrap(void);\nconst EVP_CIPHER *EVP_aes_192_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_192_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_256_ecb(void);\nconst EVP_CIPHER *EVP_aes_256_cbc(void);\nconst EVP_CIPHER *EVP_aes_256_cfb1(void);\nconst EVP_CIPHER *EVP_aes_256_cfb8(void);\nconst EVP_CIPHER *EVP_aes_256_cfb128(void);\n# define EVP_aes_256_cfb EVP_aes_256_cfb128\nconst EVP_CIPHER *EVP_aes_256_ofb(void);\nconst EVP_CIPHER *EVP_aes_256_ctr(void);\nconst EVP_CIPHER *EVP_aes_256_ccm(void);\nconst EVP_CIPHER *EVP_aes_256_gcm(void);\nconst EVP_CIPHER *EVP_aes_256_xts(void);\nconst EVP_CIPHER *EVP_aes_256_wrap(void);\nconst EVP_CIPHER *EVP_aes_256_wrap_pad(void);\n# ifndef OPENSSL_NO_OCB\nconst EVP_CIPHER *EVP_aes_256_ocb(void);\n# endif\nconst EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1(void);\nconst EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1(void);\nconst EVP_CIPHER *EVP_aes_128_cbc_hmac_sha256(void);\nconst EVP_CIPHER *EVP_aes_256_cbc_hmac_sha256(void);\n# ifndef OPENSSL_NO_ARIA\nconst EVP_CIPHER *EVP_aria_128_ecb(void);\nconst EVP_CIPHER *EVP_aria_128_cbc(void);\nconst EVP_CIPHER *EVP_aria_128_cfb1(void);\nconst EVP_CIPHER *EVP_aria_128_cfb8(void);\nconst EVP_CIPHER *EVP_aria_128_cfb128(void);\n#  define EVP_aria_128_cfb EVP_aria_128_cfb128\nconst EVP_CIPHER *EVP_aria_128_ctr(void);\nconst EVP_CIPHER *EVP_aria_128_ofb(void);\nconst EVP_CIPHER *EVP_aria_128_gcm(void);\nconst EVP_CIPHER *EVP_aria_128_ccm(void);\nconst EVP_CIPHER *EVP_aria_192_ecb(void);\nconst EVP_CIPHER *EVP_aria_192_cbc(void);\nconst EVP_CIPHER *EVP_aria_192_cfb1(void);\nconst EVP_CIPHER *EVP_aria_192_cfb8(void);\nconst EVP_CIPHER *EVP_aria_192_cfb128(void);\n#  define EVP_aria_192_cfb EVP_aria_192_cfb128\nconst EVP_CIPHER *EVP_aria_192_ctr(void);\nconst EVP_CIPHER *EVP_aria_192_ofb(void);\nconst EVP_CIPHER *EVP_aria_192_gcm(void);\nconst EVP_CIPHER *EVP_aria_192_ccm(void);\nconst EVP_CIPHER *EVP_aria_256_ecb(void);\nconst EVP_CIPHER *EVP_aria_256_cbc(void);\nconst EVP_CIPHER *EVP_aria_256_cfb1(void);\nconst EVP_CIPHER *EVP_aria_256_cfb8(void);\nconst EVP_CIPHER *EVP_aria_256_cfb128(void);\n#  define EVP_aria_256_cfb EVP_aria_256_cfb128\nconst EVP_CIPHER *EVP_aria_256_ctr(void);\nconst EVP_CIPHER *EVP_aria_256_ofb(void);\nconst EVP_CIPHER *EVP_aria_256_gcm(void);\nconst EVP_CIPHER *EVP_aria_256_ccm(void);\n# endif\n# ifndef OPENSSL_NO_CAMELLIA\nconst EVP_CIPHER *EVP_camellia_128_ecb(void);\nconst EVP_CIPHER *EVP_camellia_128_cbc(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_128_cfb128(void);\n#  define EVP_camellia_128_cfb EVP_camellia_128_cfb128\nconst EVP_CIPHER *EVP_camellia_128_ofb(void);\nconst EVP_CIPHER *EVP_camellia_128_ctr(void);\nconst EVP_CIPHER *EVP_camellia_192_ecb(void);\nconst EVP_CIPHER *EVP_camellia_192_cbc(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_192_cfb128(void);\n#  define EVP_camellia_192_cfb EVP_camellia_192_cfb128\nconst EVP_CIPHER *EVP_camellia_192_ofb(void);\nconst EVP_CIPHER *EVP_camellia_192_ctr(void);\nconst EVP_CIPHER *EVP_camellia_256_ecb(void);\nconst EVP_CIPHER *EVP_camellia_256_cbc(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb1(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb8(void);\nconst EVP_CIPHER *EVP_camellia_256_cfb128(void);\n#  define EVP_camellia_256_cfb EVP_camellia_256_cfb128\nconst EVP_CIPHER *EVP_camellia_256_ofb(void);\nconst EVP_CIPHER *EVP_camellia_256_ctr(void);\n# endif\n# ifndef OPENSSL_NO_CHACHA\nconst EVP_CIPHER *EVP_chacha20(void);\n#  ifndef OPENSSL_NO_POLY1305\nconst EVP_CIPHER *EVP_chacha20_poly1305(void);\n#  endif\n# endif\n\n# ifndef OPENSSL_NO_SEED\nconst EVP_CIPHER *EVP_seed_ecb(void);\nconst EVP_CIPHER *EVP_seed_cbc(void);\nconst EVP_CIPHER *EVP_seed_cfb128(void);\n#  define EVP_seed_cfb EVP_seed_cfb128\nconst EVP_CIPHER *EVP_seed_ofb(void);\n# endif\n\n# ifndef OPENSSL_NO_SM4\nconst EVP_CIPHER *EVP_sm4_ecb(void);\nconst EVP_CIPHER *EVP_sm4_cbc(void);\nconst EVP_CIPHER *EVP_sm4_cfb128(void);\n#  define EVP_sm4_cfb EVP_sm4_cfb128\nconst EVP_CIPHER *EVP_sm4_ofb(void);\nconst EVP_CIPHER *EVP_sm4_ctr(void);\n# endif\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OPENSSL_add_all_algorithms_conf() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \\\n                        | OPENSSL_INIT_ADD_ALL_DIGESTS \\\n                        | OPENSSL_INIT_LOAD_CONFIG, NULL)\n#  define OPENSSL_add_all_algorithms_noconf() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS \\\n                        | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)\n\n#  ifdef OPENSSL_LOAD_CONF\n#   define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_conf()\n#  else\n#   define OpenSSL_add_all_algorithms() OPENSSL_add_all_algorithms_noconf()\n#  endif\n\n#  define OpenSSL_add_all_ciphers() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS, NULL)\n#  define OpenSSL_add_all_digests() \\\n    OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_DIGESTS, NULL)\n\n#  define EVP_cleanup() while(0) continue\n# endif\n\nint EVP_add_cipher(const EVP_CIPHER *cipher);\nint EVP_add_digest(const EVP_MD *digest);\n\nconst EVP_CIPHER *EVP_get_cipherbyname(const char *name);\nconst EVP_MD *EVP_get_digestbyname(const char *name);\n\nvoid EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph,\n                                   const char *from, const char *to, void *x),\n                       void *arg);\nvoid EVP_CIPHER_do_all_sorted(void (*fn)\n                               (const EVP_CIPHER *ciph, const char *from,\n                                const char *to, void *x), void *arg);\n\nvoid EVP_MD_do_all(void (*fn) (const EVP_MD *ciph,\n                               const char *from, const char *to, void *x),\n                   void *arg);\nvoid EVP_MD_do_all_sorted(void (*fn)\n                           (const EVP_MD *ciph, const char *from,\n                            const char *to, void *x), void *arg);\n\nint EVP_PKEY_decrypt_old(unsigned char *dec_key,\n                         const unsigned char *enc_key, int enc_key_len,\n                         EVP_PKEY *private_key);\nint EVP_PKEY_encrypt_old(unsigned char *enc_key,\n                         const unsigned char *key, int key_len,\n                         EVP_PKEY *pub_key);\nint EVP_PKEY_type(int type);\nint EVP_PKEY_id(const EVP_PKEY *pkey);\nint EVP_PKEY_base_id(const EVP_PKEY *pkey);\nint EVP_PKEY_bits(const EVP_PKEY *pkey);\nint EVP_PKEY_security_bits(const EVP_PKEY *pkey);\nint EVP_PKEY_size(const EVP_PKEY *pkey);\nint EVP_PKEY_set_type(EVP_PKEY *pkey, int type);\nint EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len);\nint EVP_PKEY_set_alias_type(EVP_PKEY *pkey, int type);\n# ifndef OPENSSL_NO_ENGINE\nint EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e);\nENGINE *EVP_PKEY_get0_engine(const EVP_PKEY *pkey);\n# endif\nint EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);\nvoid *EVP_PKEY_get0(const EVP_PKEY *pkey);\nconst unsigned char *EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len);\n# ifndef OPENSSL_NO_POLY1305\nconst unsigned char *EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len);\n# endif\n# ifndef OPENSSL_NO_SIPHASH\nconst unsigned char *EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len);\n# endif\n\n# ifndef OPENSSL_NO_RSA\nstruct rsa_st;\nint EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key);\nstruct rsa_st *EVP_PKEY_get0_RSA(EVP_PKEY *pkey);\nstruct rsa_st *EVP_PKEY_get1_RSA(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_DSA\nstruct dsa_st;\nint EVP_PKEY_set1_DSA(EVP_PKEY *pkey, struct dsa_st *key);\nstruct dsa_st *EVP_PKEY_get0_DSA(EVP_PKEY *pkey);\nstruct dsa_st *EVP_PKEY_get1_DSA(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_DH\nstruct dh_st;\nint EVP_PKEY_set1_DH(EVP_PKEY *pkey, struct dh_st *key);\nstruct dh_st *EVP_PKEY_get0_DH(EVP_PKEY *pkey);\nstruct dh_st *EVP_PKEY_get1_DH(EVP_PKEY *pkey);\n# endif\n# ifndef OPENSSL_NO_EC\nstruct ec_key_st;\nint EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, struct ec_key_st *key);\nstruct ec_key_st *EVP_PKEY_get0_EC_KEY(EVP_PKEY *pkey);\nstruct ec_key_st *EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey);\n# endif\n\nEVP_PKEY *EVP_PKEY_new(void);\nint EVP_PKEY_up_ref(EVP_PKEY *pkey);\nvoid EVP_PKEY_free(EVP_PKEY *pkey);\n\nEVP_PKEY *d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp,\n                        long length);\nint i2d_PublicKey(EVP_PKEY *a, unsigned char **pp);\n\nEVP_PKEY *d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp,\n                         long length);\nEVP_PKEY *d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp,\n                             long length);\nint i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp);\n\nint EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);\nint EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);\nint EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode);\nint EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);\n\nint EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);\n\nint EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey,\n                          int indent, ASN1_PCTX *pctx);\nint EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey,\n                           int indent, ASN1_PCTX *pctx);\nint EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey,\n                          int indent, ASN1_PCTX *pctx);\n\nint EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid);\n\nint EVP_PKEY_set1_tls_encodedpoint(EVP_PKEY *pkey,\n                                   const unsigned char *pt, size_t ptlen);\nsize_t EVP_PKEY_get1_tls_encodedpoint(EVP_PKEY *pkey, unsigned char **ppt);\n\nint EVP_CIPHER_type(const EVP_CIPHER *ctx);\n\n/* calls methods */\nint EVP_CIPHER_param_to_asn1(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\nint EVP_CIPHER_asn1_to_param(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n\n/* These are used by EVP_CIPHER methods */\nint EVP_CIPHER_set_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\nint EVP_CIPHER_get_asn1_iv(EVP_CIPHER_CTX *c, ASN1_TYPE *type);\n\n/* PKCS5 password based encryption */\nint PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                       ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                       const EVP_MD *md, int en_de);\nint PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,\n                           const unsigned char *salt, int saltlen, int iter,\n                           int keylen, unsigned char *out);\nint PKCS5_PBKDF2_HMAC(const char *pass, int passlen,\n                      const unsigned char *salt, int saltlen, int iter,\n                      const EVP_MD *digest, int keylen, unsigned char *out);\nint PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                          ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                          const EVP_MD *md, int en_de);\n\n#ifndef OPENSSL_NO_SCRYPT\nint EVP_PBE_scrypt(const char *pass, size_t passlen,\n                   const unsigned char *salt, size_t saltlen,\n                   uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem,\n                   unsigned char *key, size_t keylen);\n\nint PKCS5_v2_scrypt_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass,\n                             int passlen, ASN1_TYPE *param,\n                             const EVP_CIPHER *c, const EVP_MD *md, int en_de);\n#endif\n\nvoid PKCS5_PBE_add(void);\n\nint EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen,\n                       ASN1_TYPE *param, EVP_CIPHER_CTX *ctx, int en_de);\n\n/* PBE type */\n\n/* Can appear as the outermost AlgorithmIdentifier */\n# define EVP_PBE_TYPE_OUTER      0x0\n/* Is an PRF type OID */\n# define EVP_PBE_TYPE_PRF        0x1\n/* Is a PKCS#5 v2.0 KDF */\n# define EVP_PBE_TYPE_KDF        0x2\n\nint EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,\n                         int md_nid, EVP_PBE_KEYGEN *keygen);\nint EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,\n                    EVP_PBE_KEYGEN *keygen);\nint EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,\n                 EVP_PBE_KEYGEN **pkeygen);\nvoid EVP_PBE_cleanup(void);\nint EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);\n\n# define ASN1_PKEY_ALIAS         0x1\n# define ASN1_PKEY_DYNAMIC       0x2\n# define ASN1_PKEY_SIGPARAM_NULL 0x4\n\n# define ASN1_PKEY_CTRL_PKCS7_SIGN       0x1\n# define ASN1_PKEY_CTRL_PKCS7_ENCRYPT    0x2\n# define ASN1_PKEY_CTRL_DEFAULT_MD_NID   0x3\n# define ASN1_PKEY_CTRL_CMS_SIGN         0x5\n# define ASN1_PKEY_CTRL_CMS_ENVELOPE     0x7\n# define ASN1_PKEY_CTRL_CMS_RI_TYPE      0x8\n\n# define ASN1_PKEY_CTRL_SET1_TLS_ENCPT   0x9\n# define ASN1_PKEY_CTRL_GET1_TLS_ENCPT   0xa\n\nint EVP_PKEY_asn1_get_count(void);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_get0(int idx);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find(ENGINE **pe, int type);\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_find_str(ENGINE **pe,\n                                                   const char *str, int len);\nint EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth);\nint EVP_PKEY_asn1_add_alias(int to, int from);\nint EVP_PKEY_asn1_get0_info(int *ppkey_id, int *pkey_base_id,\n                            int *ppkey_flags, const char **pinfo,\n                            const char **ppem_str,\n                            const EVP_PKEY_ASN1_METHOD *ameth);\n\nconst EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey);\nEVP_PKEY_ASN1_METHOD *EVP_PKEY_asn1_new(int id, int flags,\n                                        const char *pem_str,\n                                        const char *info);\nvoid EVP_PKEY_asn1_copy(EVP_PKEY_ASN1_METHOD *dst,\n                        const EVP_PKEY_ASN1_METHOD *src);\nvoid EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth);\nvoid EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,\n                              int (*pub_decode) (EVP_PKEY *pk,\n                                                 X509_PUBKEY *pub),\n                              int (*pub_encode) (X509_PUBKEY *pub,\n                                                 const EVP_PKEY *pk),\n                              int (*pub_cmp) (const EVP_PKEY *a,\n                                              const EVP_PKEY *b),\n                              int (*pub_print) (BIO *out,\n                                                const EVP_PKEY *pkey,\n                                                int indent, ASN1_PCTX *pctx),\n                              int (*pkey_size) (const EVP_PKEY *pk),\n                              int (*pkey_bits) (const EVP_PKEY *pk));\nvoid EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,\n                               int (*priv_decode) (EVP_PKEY *pk,\n                                                   const PKCS8_PRIV_KEY_INFO\n                                                   *p8inf),\n                               int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8,\n                                                   const EVP_PKEY *pk),\n                               int (*priv_print) (BIO *out,\n                                                  const EVP_PKEY *pkey,\n                                                  int indent,\n                                                  ASN1_PCTX *pctx));\nvoid EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth,\n                             int (*param_decode) (EVP_PKEY *pkey,\n                                                  const unsigned char **pder,\n                                                  int derlen),\n                             int (*param_encode) (const EVP_PKEY *pkey,\n                                                  unsigned char **pder),\n                             int (*param_missing) (const EVP_PKEY *pk),\n                             int (*param_copy) (EVP_PKEY *to,\n                                                const EVP_PKEY *from),\n                             int (*param_cmp) (const EVP_PKEY *a,\n                                               const EVP_PKEY *b),\n                             int (*param_print) (BIO *out,\n                                                 const EVP_PKEY *pkey,\n                                                 int indent,\n                                                 ASN1_PCTX *pctx));\n\nvoid EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth,\n                            void (*pkey_free) (EVP_PKEY *pkey));\nvoid EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth,\n                            int (*pkey_ctrl) (EVP_PKEY *pkey, int op,\n                                              long arg1, void *arg2));\nvoid EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth,\n                            int (*item_verify) (EVP_MD_CTX *ctx,\n                                                const ASN1_ITEM *it,\n                                                void *asn,\n                                                X509_ALGOR *a,\n                                                ASN1_BIT_STRING *sig,\n                                                EVP_PKEY *pkey),\n                            int (*item_sign) (EVP_MD_CTX *ctx,\n                                              const ASN1_ITEM *it,\n                                              void *asn,\n                                              X509_ALGOR *alg1,\n                                              X509_ALGOR *alg2,\n                                              ASN1_BIT_STRING *sig));\n\nvoid EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth,\n                              int (*siginf_set) (X509_SIG_INFO *siginf,\n                                                 const X509_ALGOR *alg,\n                                                 const ASN1_STRING *sig));\n\nvoid EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth,\n                             int (*pkey_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*pkey_pub_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*pkey_param_check) (const EVP_PKEY *pk));\n\nvoid EVP_PKEY_asn1_set_set_priv_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*set_priv_key) (EVP_PKEY *pk,\n                                                         const unsigned char\n                                                            *priv,\n                                                         size_t len));\nvoid EVP_PKEY_asn1_set_set_pub_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*set_pub_key) (EVP_PKEY *pk,\n                                                       const unsigned char *pub,\n                                                       size_t len));\nvoid EVP_PKEY_asn1_set_get_priv_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                    int (*get_priv_key) (const EVP_PKEY *pk,\n                                                         unsigned char *priv,\n                                                         size_t *len));\nvoid EVP_PKEY_asn1_set_get_pub_key(EVP_PKEY_ASN1_METHOD *ameth,\n                                   int (*get_pub_key) (const EVP_PKEY *pk,\n                                                       unsigned char *pub,\n                                                       size_t *len));\n\nvoid EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth,\n                                     int (*pkey_security_bits) (const EVP_PKEY\n                                                                *pk));\n\n# define EVP_PKEY_OP_UNDEFINED           0\n# define EVP_PKEY_OP_PARAMGEN            (1<<1)\n# define EVP_PKEY_OP_KEYGEN              (1<<2)\n# define EVP_PKEY_OP_SIGN                (1<<3)\n# define EVP_PKEY_OP_VERIFY              (1<<4)\n# define EVP_PKEY_OP_VERIFYRECOVER       (1<<5)\n# define EVP_PKEY_OP_SIGNCTX             (1<<6)\n# define EVP_PKEY_OP_VERIFYCTX           (1<<7)\n# define EVP_PKEY_OP_ENCRYPT             (1<<8)\n# define EVP_PKEY_OP_DECRYPT             (1<<9)\n# define EVP_PKEY_OP_DERIVE              (1<<10)\n\n# define EVP_PKEY_OP_TYPE_SIG    \\\n        (EVP_PKEY_OP_SIGN | EVP_PKEY_OP_VERIFY | EVP_PKEY_OP_VERIFYRECOVER \\\n                | EVP_PKEY_OP_SIGNCTX | EVP_PKEY_OP_VERIFYCTX)\n\n# define EVP_PKEY_OP_TYPE_CRYPT \\\n        (EVP_PKEY_OP_ENCRYPT | EVP_PKEY_OP_DECRYPT)\n\n# define EVP_PKEY_OP_TYPE_NOGEN \\\n        (EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT | EVP_PKEY_OP_DERIVE)\n\n# define EVP_PKEY_OP_TYPE_GEN \\\n                (EVP_PKEY_OP_PARAMGEN | EVP_PKEY_OP_KEYGEN)\n\n# define  EVP_PKEY_CTX_set_signature_md(ctx, md) \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG,  \\\n                                        EVP_PKEY_CTRL_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_get_signature_md(ctx, pmd)        \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_TYPE_SIG,  \\\n                                        EVP_PKEY_CTRL_GET_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_set_mac_key(ctx, key, len)        \\\n                EVP_PKEY_CTX_ctrl(ctx, -1, EVP_PKEY_OP_KEYGEN,  \\\n                                  EVP_PKEY_CTRL_SET_MAC_KEY, len, (void *)(key))\n\n# define EVP_PKEY_CTRL_MD                1\n# define EVP_PKEY_CTRL_PEER_KEY          2\n\n# define EVP_PKEY_CTRL_PKCS7_ENCRYPT     3\n# define EVP_PKEY_CTRL_PKCS7_DECRYPT     4\n\n# define EVP_PKEY_CTRL_PKCS7_SIGN        5\n\n# define EVP_PKEY_CTRL_SET_MAC_KEY       6\n\n# define EVP_PKEY_CTRL_DIGESTINIT        7\n\n/* Used by GOST key encryption in TLS */\n# define EVP_PKEY_CTRL_SET_IV            8\n\n# define EVP_PKEY_CTRL_CMS_ENCRYPT       9\n# define EVP_PKEY_CTRL_CMS_DECRYPT       10\n# define EVP_PKEY_CTRL_CMS_SIGN          11\n\n# define EVP_PKEY_CTRL_CIPHER            12\n\n# define EVP_PKEY_CTRL_GET_MD            13\n\n# define EVP_PKEY_CTRL_SET_DIGEST_SIZE   14\n\n# define EVP_PKEY_ALG_CTRL               0x1000\n\n# define EVP_PKEY_FLAG_AUTOARGLEN        2\n/*\n * Method handles all operations: don't assume any digest related defaults.\n */\n# define EVP_PKEY_FLAG_SIGCTX_CUSTOM     4\n\nconst EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type);\nEVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags);\nvoid EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,\n                             const EVP_PKEY_METHOD *meth);\nvoid EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src);\nvoid EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth);\nint EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth);\nint EVP_PKEY_meth_remove(const EVP_PKEY_METHOD *pmeth);\nsize_t EVP_PKEY_meth_get_count(void);\nconst EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);\n\nEVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e);\nEVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e);\nEVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx);\nvoid EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,\n                      int cmd, int p1, void *p2);\nint EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *type,\n                          const char *value);\nint EVP_PKEY_CTX_ctrl_uint64(EVP_PKEY_CTX *ctx, int keytype, int optype,\n                             int cmd, uint64_t value);\n\nint EVP_PKEY_CTX_str2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *str);\nint EVP_PKEY_CTX_hex2ctrl(EVP_PKEY_CTX *ctx, int cmd, const char *hex);\n\nint EVP_PKEY_CTX_md(EVP_PKEY_CTX *ctx, int optype, int cmd, const char *md);\n\nint EVP_PKEY_CTX_get_operation(EVP_PKEY_CTX *ctx);\nvoid EVP_PKEY_CTX_set0_keygen_info(EVP_PKEY_CTX *ctx, int *dat, int datlen);\n\nEVP_PKEY *EVP_PKEY_new_mac_key(int type, ENGINE *e,\n                               const unsigned char *key, int keylen);\nEVP_PKEY *EVP_PKEY_new_raw_private_key(int type, ENGINE *e,\n                                       const unsigned char *priv,\n                                       size_t len);\nEVP_PKEY *EVP_PKEY_new_raw_public_key(int type, ENGINE *e,\n                                      const unsigned char *pub,\n                                      size_t len);\nint EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv,\n                                 size_t *len);\nint EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub,\n                                size_t *len);\n\nEVP_PKEY *EVP_PKEY_new_CMAC_key(ENGINE *e, const unsigned char *priv,\n                                size_t len, const EVP_CIPHER *cipher);\n\nvoid EVP_PKEY_CTX_set_data(EVP_PKEY_CTX *ctx, void *data);\nvoid *EVP_PKEY_CTX_get_data(EVP_PKEY_CTX *ctx);\nEVP_PKEY *EVP_PKEY_CTX_get0_pkey(EVP_PKEY_CTX *ctx);\n\nEVP_PKEY *EVP_PKEY_CTX_get0_peerkey(EVP_PKEY_CTX *ctx);\n\nvoid EVP_PKEY_CTX_set_app_data(EVP_PKEY_CTX *ctx, void *data);\nvoid *EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_sign(EVP_PKEY_CTX *ctx,\n                  unsigned char *sig, size_t *siglen,\n                  const unsigned char *tbs, size_t tbslen);\nint EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_verify(EVP_PKEY_CTX *ctx,\n                    const unsigned char *sig, size_t siglen,\n                    const unsigned char *tbs, size_t tbslen);\nint EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_verify_recover(EVP_PKEY_CTX *ctx,\n                            unsigned char *rout, size_t *routlen,\n                            const unsigned char *sig, size_t siglen);\nint EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx,\n                     unsigned char *out, size_t *outlen,\n                     const unsigned char *in, size_t inlen);\nint EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx,\n                     unsigned char *out, size_t *outlen,\n                     const unsigned char *in, size_t inlen);\n\nint EVP_PKEY_derive_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_derive_set_peer(EVP_PKEY_CTX *ctx, EVP_PKEY *peer);\nint EVP_PKEY_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen);\n\ntypedef int EVP_PKEY_gen_cb(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\nint EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey);\nint EVP_PKEY_check(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_public_check(EVP_PKEY_CTX *ctx);\nint EVP_PKEY_param_check(EVP_PKEY_CTX *ctx);\n\nvoid EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb);\nEVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx);\n\nint EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx);\n\nvoid EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth,\n                            int (*init) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth,\n                            int (*copy) (EVP_PKEY_CTX *dst,\n                                         EVP_PKEY_CTX *src));\n\nvoid EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth,\n                               void (*cleanup) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth,\n                                int (*paramgen_init) (EVP_PKEY_CTX *ctx),\n                                int (*paramgen) (EVP_PKEY_CTX *ctx,\n                                                 EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth,\n                              int (*keygen_init) (EVP_PKEY_CTX *ctx),\n                              int (*keygen) (EVP_PKEY_CTX *ctx,\n                                             EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth,\n                            int (*sign_init) (EVP_PKEY_CTX *ctx),\n                            int (*sign) (EVP_PKEY_CTX *ctx,\n                                         unsigned char *sig, size_t *siglen,\n                                         const unsigned char *tbs,\n                                         size_t tbslen));\n\nvoid EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth,\n                              int (*verify_init) (EVP_PKEY_CTX *ctx),\n                              int (*verify) (EVP_PKEY_CTX *ctx,\n                                             const unsigned char *sig,\n                                             size_t siglen,\n                                             const unsigned char *tbs,\n                                             size_t tbslen));\n\nvoid EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth,\n                                      int (*verify_recover_init) (EVP_PKEY_CTX\n                                                                  *ctx),\n                                      int (*verify_recover) (EVP_PKEY_CTX\n                                                             *ctx,\n                                                             unsigned char\n                                                             *sig,\n                                                             size_t *siglen,\n                                                             const unsigned\n                                                             char *tbs,\n                                                             size_t tbslen));\n\nvoid EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth,\n                               int (*signctx_init) (EVP_PKEY_CTX *ctx,\n                                                    EVP_MD_CTX *mctx),\n                               int (*signctx) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *sig,\n                                               size_t *siglen,\n                                               EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth,\n                                 int (*verifyctx_init) (EVP_PKEY_CTX *ctx,\n                                                        EVP_MD_CTX *mctx),\n                                 int (*verifyctx) (EVP_PKEY_CTX *ctx,\n                                                   const unsigned char *sig,\n                                                   int siglen,\n                                                   EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth,\n                               int (*encrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (*encryptfn) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *out,\n                                                 size_t *outlen,\n                                                 const unsigned char *in,\n                                                 size_t inlen));\n\nvoid EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth,\n                               int (*decrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (*decrypt) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *out,\n                                               size_t *outlen,\n                                               const unsigned char *in,\n                                               size_t inlen));\n\nvoid EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth,\n                              int (*derive_init) (EVP_PKEY_CTX *ctx),\n                              int (*derive) (EVP_PKEY_CTX *ctx,\n                                             unsigned char *key,\n                                             size_t *keylen));\n\nvoid EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth,\n                            int (*ctrl) (EVP_PKEY_CTX *ctx, int type, int p1,\n                                         void *p2),\n                            int (*ctrl_str) (EVP_PKEY_CTX *ctx,\n                                             const char *type,\n                                             const char *value));\n\nvoid EVP_PKEY_meth_set_digestsign(EVP_PKEY_METHOD *pmeth,\n                                  int (*digestsign) (EVP_MD_CTX *ctx,\n                                                     unsigned char *sig,\n                                                     size_t *siglen,\n                                                     const unsigned char *tbs,\n                                                     size_t tbslen));\n\nvoid EVP_PKEY_meth_set_digestverify(EVP_PKEY_METHOD *pmeth,\n                                    int (*digestverify) (EVP_MD_CTX *ctx,\n                                                         const unsigned char *sig,\n                                                         size_t siglen,\n                                                         const unsigned char *tbs,\n                                                         size_t tbslen));\n\nvoid EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth,\n                             int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth,\n                                    int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth,\n                                   int (*check) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_set_digest_custom(EVP_PKEY_METHOD *pmeth,\n                                     int (*digest_custom) (EVP_PKEY_CTX *ctx,\n                                                           EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_init(const EVP_PKEY_METHOD *pmeth,\n                            int (**pinit) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_get_copy(const EVP_PKEY_METHOD *pmeth,\n                            int (**pcopy) (EVP_PKEY_CTX *dst,\n                                           EVP_PKEY_CTX *src));\n\nvoid EVP_PKEY_meth_get_cleanup(const EVP_PKEY_METHOD *pmeth,\n                               void (**pcleanup) (EVP_PKEY_CTX *ctx));\n\nvoid EVP_PKEY_meth_get_paramgen(const EVP_PKEY_METHOD *pmeth,\n                                int (**pparamgen_init) (EVP_PKEY_CTX *ctx),\n                                int (**pparamgen) (EVP_PKEY_CTX *ctx,\n                                                   EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_keygen(const EVP_PKEY_METHOD *pmeth,\n                              int (**pkeygen_init) (EVP_PKEY_CTX *ctx),\n                              int (**pkeygen) (EVP_PKEY_CTX *ctx,\n                                               EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_sign(const EVP_PKEY_METHOD *pmeth,\n                            int (**psign_init) (EVP_PKEY_CTX *ctx),\n                            int (**psign) (EVP_PKEY_CTX *ctx,\n                                           unsigned char *sig, size_t *siglen,\n                                           const unsigned char *tbs,\n                                           size_t tbslen));\n\nvoid EVP_PKEY_meth_get_verify(const EVP_PKEY_METHOD *pmeth,\n                              int (**pverify_init) (EVP_PKEY_CTX *ctx),\n                              int (**pverify) (EVP_PKEY_CTX *ctx,\n                                               const unsigned char *sig,\n                                               size_t siglen,\n                                               const unsigned char *tbs,\n                                               size_t tbslen));\n\nvoid EVP_PKEY_meth_get_verify_recover(const EVP_PKEY_METHOD *pmeth,\n                                      int (**pverify_recover_init) (EVP_PKEY_CTX\n                                                                    *ctx),\n                                      int (**pverify_recover) (EVP_PKEY_CTX\n                                                               *ctx,\n                                                               unsigned char\n                                                               *sig,\n                                                               size_t *siglen,\n                                                               const unsigned\n                                                               char *tbs,\n                                                               size_t tbslen));\n\nvoid EVP_PKEY_meth_get_signctx(const EVP_PKEY_METHOD *pmeth,\n                               int (**psignctx_init) (EVP_PKEY_CTX *ctx,\n                                                      EVP_MD_CTX *mctx),\n                               int (**psignctx) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *sig,\n                                                 size_t *siglen,\n                                                 EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_verifyctx(const EVP_PKEY_METHOD *pmeth,\n                                 int (**pverifyctx_init) (EVP_PKEY_CTX *ctx,\n                                                          EVP_MD_CTX *mctx),\n                                 int (**pverifyctx) (EVP_PKEY_CTX *ctx,\n                                                     const unsigned char *sig,\n                                                     int siglen,\n                                                     EVP_MD_CTX *mctx));\n\nvoid EVP_PKEY_meth_get_encrypt(const EVP_PKEY_METHOD *pmeth,\n                               int (**pencrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (**pencryptfn) (EVP_PKEY_CTX *ctx,\n                                                   unsigned char *out,\n                                                   size_t *outlen,\n                                                   const unsigned char *in,\n                                                   size_t inlen));\n\nvoid EVP_PKEY_meth_get_decrypt(const EVP_PKEY_METHOD *pmeth,\n                               int (**pdecrypt_init) (EVP_PKEY_CTX *ctx),\n                               int (**pdecrypt) (EVP_PKEY_CTX *ctx,\n                                                 unsigned char *out,\n                                                 size_t *outlen,\n                                                 const unsigned char *in,\n                                                 size_t inlen));\n\nvoid EVP_PKEY_meth_get_derive(const EVP_PKEY_METHOD *pmeth,\n                              int (**pderive_init) (EVP_PKEY_CTX *ctx),\n                              int (**pderive) (EVP_PKEY_CTX *ctx,\n                                               unsigned char *key,\n                                               size_t *keylen));\n\nvoid EVP_PKEY_meth_get_ctrl(const EVP_PKEY_METHOD *pmeth,\n                            int (**pctrl) (EVP_PKEY_CTX *ctx, int type, int p1,\n                                           void *p2),\n                            int (**pctrl_str) (EVP_PKEY_CTX *ctx,\n                                               const char *type,\n                                               const char *value));\n\nvoid EVP_PKEY_meth_get_digestsign(EVP_PKEY_METHOD *pmeth,\n                                  int (**digestsign) (EVP_MD_CTX *ctx,\n                                                      unsigned char *sig,\n                                                      size_t *siglen,\n                                                      const unsigned char *tbs,\n                                                      size_t tbslen));\n\nvoid EVP_PKEY_meth_get_digestverify(EVP_PKEY_METHOD *pmeth,\n                                    int (**digestverify) (EVP_MD_CTX *ctx,\n                                                          const unsigned char *sig,\n                                                          size_t siglen,\n                                                          const unsigned char *tbs,\n                                                          size_t tbslen));\n\nvoid EVP_PKEY_meth_get_check(const EVP_PKEY_METHOD *pmeth,\n                             int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_public_check(const EVP_PKEY_METHOD *pmeth,\n                                    int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_param_check(const EVP_PKEY_METHOD *pmeth,\n                                   int (**pcheck) (EVP_PKEY *pkey));\n\nvoid EVP_PKEY_meth_get_digest_custom(EVP_PKEY_METHOD *pmeth,\n                                     int (**pdigest_custom) (EVP_PKEY_CTX *ctx,\n                                                             EVP_MD_CTX *mctx));\nvoid EVP_add_alg_module(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/evperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_EVPERR_H\n# define HEADER_EVPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_EVP_strings(void);\n\n/*\n * EVP function codes.\n */\n# define EVP_F_AESNI_INIT_KEY                             165\n# define EVP_F_AESNI_XTS_INIT_KEY                         207\n# define EVP_F_AES_GCM_CTRL                               196\n# define EVP_F_AES_INIT_KEY                               133\n# define EVP_F_AES_OCB_CIPHER                             169\n# define EVP_F_AES_T4_INIT_KEY                            178\n# define EVP_F_AES_T4_XTS_INIT_KEY                        208\n# define EVP_F_AES_WRAP_CIPHER                            170\n# define EVP_F_AES_XTS_INIT_KEY                           209\n# define EVP_F_ALG_MODULE_INIT                            177\n# define EVP_F_ARIA_CCM_INIT_KEY                          175\n# define EVP_F_ARIA_GCM_CTRL                              197\n# define EVP_F_ARIA_GCM_INIT_KEY                          176\n# define EVP_F_ARIA_INIT_KEY                              185\n# define EVP_F_B64_NEW                                    198\n# define EVP_F_CAMELLIA_INIT_KEY                          159\n# define EVP_F_CHACHA20_POLY1305_CTRL                     182\n# define EVP_F_CMLL_T4_INIT_KEY                           179\n# define EVP_F_DES_EDE3_WRAP_CIPHER                       171\n# define EVP_F_DO_SIGVER_INIT                             161\n# define EVP_F_ENC_NEW                                    199\n# define EVP_F_EVP_CIPHERINIT_EX                          123\n# define EVP_F_EVP_CIPHER_ASN1_TO_PARAM                   204\n# define EVP_F_EVP_CIPHER_CTX_COPY                        163\n# define EVP_F_EVP_CIPHER_CTX_CTRL                        124\n# define EVP_F_EVP_CIPHER_CTX_SET_KEY_LENGTH              122\n# define EVP_F_EVP_CIPHER_PARAM_TO_ASN1                   205\n# define EVP_F_EVP_DECRYPTFINAL_EX                        101\n# define EVP_F_EVP_DECRYPTUPDATE                          166\n# define EVP_F_EVP_DIGESTFINALXOF                         174\n# define EVP_F_EVP_DIGESTINIT_EX                          128\n# define EVP_F_EVP_ENCRYPTDECRYPTUPDATE                   219\n# define EVP_F_EVP_ENCRYPTFINAL_EX                        127\n# define EVP_F_EVP_ENCRYPTUPDATE                          167\n# define EVP_F_EVP_MD_CTX_COPY_EX                         110\n# define EVP_F_EVP_MD_SIZE                                162\n# define EVP_F_EVP_OPENINIT                               102\n# define EVP_F_EVP_PBE_ALG_ADD                            115\n# define EVP_F_EVP_PBE_ALG_ADD_TYPE                       160\n# define EVP_F_EVP_PBE_CIPHERINIT                         116\n# define EVP_F_EVP_PBE_SCRYPT                             181\n# define EVP_F_EVP_PKCS82PKEY                             111\n# define EVP_F_EVP_PKEY2PKCS8                             113\n# define EVP_F_EVP_PKEY_ASN1_ADD0                         188\n# define EVP_F_EVP_PKEY_CHECK                             186\n# define EVP_F_EVP_PKEY_COPY_PARAMETERS                   103\n# define EVP_F_EVP_PKEY_CTX_CTRL                          137\n# define EVP_F_EVP_PKEY_CTX_CTRL_STR                      150\n# define EVP_F_EVP_PKEY_CTX_DUP                           156\n# define EVP_F_EVP_PKEY_CTX_MD                            168\n# define EVP_F_EVP_PKEY_DECRYPT                           104\n# define EVP_F_EVP_PKEY_DECRYPT_INIT                      138\n# define EVP_F_EVP_PKEY_DECRYPT_OLD                       151\n# define EVP_F_EVP_PKEY_DERIVE                            153\n# define EVP_F_EVP_PKEY_DERIVE_INIT                       154\n# define EVP_F_EVP_PKEY_DERIVE_SET_PEER                   155\n# define EVP_F_EVP_PKEY_ENCRYPT                           105\n# define EVP_F_EVP_PKEY_ENCRYPT_INIT                      139\n# define EVP_F_EVP_PKEY_ENCRYPT_OLD                       152\n# define EVP_F_EVP_PKEY_GET0_DH                           119\n# define EVP_F_EVP_PKEY_GET0_DSA                          120\n# define EVP_F_EVP_PKEY_GET0_EC_KEY                       131\n# define EVP_F_EVP_PKEY_GET0_HMAC                         183\n# define EVP_F_EVP_PKEY_GET0_POLY1305                     184\n# define EVP_F_EVP_PKEY_GET0_RSA                          121\n# define EVP_F_EVP_PKEY_GET0_SIPHASH                      172\n# define EVP_F_EVP_PKEY_GET_RAW_PRIVATE_KEY               202\n# define EVP_F_EVP_PKEY_GET_RAW_PUBLIC_KEY                203\n# define EVP_F_EVP_PKEY_KEYGEN                            146\n# define EVP_F_EVP_PKEY_KEYGEN_INIT                       147\n# define EVP_F_EVP_PKEY_METH_ADD0                         194\n# define EVP_F_EVP_PKEY_METH_NEW                          195\n# define EVP_F_EVP_PKEY_NEW                               106\n# define EVP_F_EVP_PKEY_NEW_CMAC_KEY                      193\n# define EVP_F_EVP_PKEY_NEW_RAW_PRIVATE_KEY               191\n# define EVP_F_EVP_PKEY_NEW_RAW_PUBLIC_KEY                192\n# define EVP_F_EVP_PKEY_PARAMGEN                          148\n# define EVP_F_EVP_PKEY_PARAMGEN_INIT                     149\n# define EVP_F_EVP_PKEY_PARAM_CHECK                       189\n# define EVP_F_EVP_PKEY_PUBLIC_CHECK                      190\n# define EVP_F_EVP_PKEY_SET1_ENGINE                       187\n# define EVP_F_EVP_PKEY_SET_ALIAS_TYPE                    206\n# define EVP_F_EVP_PKEY_SIGN                              140\n# define EVP_F_EVP_PKEY_SIGN_INIT                         141\n# define EVP_F_EVP_PKEY_VERIFY                            142\n# define EVP_F_EVP_PKEY_VERIFY_INIT                       143\n# define EVP_F_EVP_PKEY_VERIFY_RECOVER                    144\n# define EVP_F_EVP_PKEY_VERIFY_RECOVER_INIT               145\n# define EVP_F_EVP_SIGNFINAL                              107\n# define EVP_F_EVP_VERIFYFINAL                            108\n# define EVP_F_INT_CTX_NEW                                157\n# define EVP_F_OK_NEW                                     200\n# define EVP_F_PKCS5_PBE_KEYIVGEN                         117\n# define EVP_F_PKCS5_V2_PBE_KEYIVGEN                      118\n# define EVP_F_PKCS5_V2_PBKDF2_KEYIVGEN                   164\n# define EVP_F_PKCS5_V2_SCRYPT_KEYIVGEN                   180\n# define EVP_F_PKEY_SET_TYPE                              158\n# define EVP_F_RC2_MAGIC_TO_METH                          109\n# define EVP_F_RC5_CTRL                                   125\n# define EVP_F_R_32_12_16_INIT_KEY                        242\n# define EVP_F_S390X_AES_GCM_CTRL                         201\n# define EVP_F_UPDATE                                     173\n\n/*\n * EVP reason codes.\n */\n# define EVP_R_AES_KEY_SETUP_FAILED                       143\n# define EVP_R_ARIA_KEY_SETUP_FAILED                      176\n# define EVP_R_BAD_DECRYPT                                100\n# define EVP_R_BAD_KEY_LENGTH                             195\n# define EVP_R_BUFFER_TOO_SMALL                           155\n# define EVP_R_CAMELLIA_KEY_SETUP_FAILED                  157\n# define EVP_R_CIPHER_PARAMETER_ERROR                     122\n# define EVP_R_COMMAND_NOT_SUPPORTED                      147\n# define EVP_R_COPY_ERROR                                 173\n# define EVP_R_CTRL_NOT_IMPLEMENTED                       132\n# define EVP_R_CTRL_OPERATION_NOT_IMPLEMENTED             133\n# define EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH          138\n# define EVP_R_DECODE_ERROR                               114\n# define EVP_R_DIFFERENT_KEY_TYPES                        101\n# define EVP_R_DIFFERENT_PARAMETERS                       153\n# define EVP_R_ERROR_LOADING_SECTION                      165\n# define EVP_R_ERROR_SETTING_FIPS_MODE                    166\n# define EVP_R_EXPECTING_AN_HMAC_KEY                      174\n# define EVP_R_EXPECTING_AN_RSA_KEY                       127\n# define EVP_R_EXPECTING_A_DH_KEY                         128\n# define EVP_R_EXPECTING_A_DSA_KEY                        129\n# define EVP_R_EXPECTING_A_EC_KEY                         142\n# define EVP_R_EXPECTING_A_POLY1305_KEY                   164\n# define EVP_R_EXPECTING_A_SIPHASH_KEY                    175\n# define EVP_R_FIPS_MODE_NOT_SUPPORTED                    167\n# define EVP_R_GET_RAW_KEY_FAILED                         182\n# define EVP_R_ILLEGAL_SCRYPT_PARAMETERS                  171\n# define EVP_R_INITIALIZATION_ERROR                       134\n# define EVP_R_INPUT_NOT_INITIALIZED                      111\n# define EVP_R_INVALID_DIGEST                             152\n# define EVP_R_INVALID_FIPS_MODE                          168\n# define EVP_R_INVALID_IV_LENGTH                          194\n# define EVP_R_INVALID_KEY                                163\n# define EVP_R_INVALID_KEY_LENGTH                         130\n# define EVP_R_INVALID_OPERATION                          148\n# define EVP_R_KEYGEN_FAILURE                             120\n# define EVP_R_KEY_SETUP_FAILED                           180\n# define EVP_R_MEMORY_LIMIT_EXCEEDED                      172\n# define EVP_R_MESSAGE_DIGEST_IS_NULL                     159\n# define EVP_R_METHOD_NOT_SUPPORTED                       144\n# define EVP_R_MISSING_PARAMETERS                         103\n# define EVP_R_NOT_XOF_OR_INVALID_LENGTH                  178\n# define EVP_R_NO_CIPHER_SET                              131\n# define EVP_R_NO_DEFAULT_DIGEST                          158\n# define EVP_R_NO_DIGEST_SET                              139\n# define EVP_R_NO_KEY_SET                                 154\n# define EVP_R_NO_OPERATION_SET                           149\n# define EVP_R_ONLY_ONESHOT_SUPPORTED                     177\n# define EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   150\n# define EVP_R_OPERATON_NOT_INITIALIZED                   151\n# define EVP_R_PARTIALLY_OVERLAPPING                      162\n# define EVP_R_PBKDF2_ERROR                               181\n# define EVP_R_PKEY_APPLICATION_ASN1_METHOD_ALREADY_REGISTERED 179\n# define EVP_R_PRIVATE_KEY_DECODE_ERROR                   145\n# define EVP_R_PRIVATE_KEY_ENCODE_ERROR                   146\n# define EVP_R_PUBLIC_KEY_NOT_RSA                         106\n# define EVP_R_UNKNOWN_CIPHER                             160\n# define EVP_R_UNKNOWN_DIGEST                             161\n# define EVP_R_UNKNOWN_OPTION                             169\n# define EVP_R_UNKNOWN_PBE_ALGORITHM                      121\n# define EVP_R_UNSUPPORTED_ALGORITHM                      156\n# define EVP_R_UNSUPPORTED_CIPHER                         107\n# define EVP_R_UNSUPPORTED_KEYLENGTH                      123\n# define EVP_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION        124\n# define EVP_R_UNSUPPORTED_KEY_SIZE                       108\n# define EVP_R_UNSUPPORTED_NUMBER_OF_ROUNDS               135\n# define EVP_R_UNSUPPORTED_PRF                            125\n# define EVP_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM          118\n# define EVP_R_UNSUPPORTED_SALT_TYPE                      126\n# define EVP_R_WRAP_MODE_NOT_ALLOWED                      170\n# define EVP_R_WRONG_FINAL_BLOCK_LENGTH                   109\n# define EVP_R_XTS_DUPLICATED_KEYS                        183\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/hmac.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_HMAC_H\n# define HEADER_HMAC_H\n\n# include <openssl/opensslconf.h>\n\n# include <openssl/evp.h>\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n#  define HMAC_MAX_MD_CBLOCK      128    /* Deprecated */\n# endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\nsize_t HMAC_size(const HMAC_CTX *e);\nHMAC_CTX *HMAC_CTX_new(void);\nint HMAC_CTX_reset(HMAC_CTX *ctx);\nvoid HMAC_CTX_free(HMAC_CTX *ctx);\n\nDEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,\n                     const EVP_MD *md))\n\n/*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len,\n                            const EVP_MD *md, ENGINE *impl);\n/*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,\n                           size_t len);\n/*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md,\n                          unsigned int *len);\nunsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,\n                    const unsigned char *d, size_t n, unsigned char *md,\n                    unsigned int *md_len);\n__owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);\n\nvoid HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);\nconst EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/idea.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_IDEA_H\n# define HEADER_IDEA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_IDEA\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned int IDEA_INT;\n\n# define IDEA_ENCRYPT    1\n# define IDEA_DECRYPT    0\n\n# define IDEA_BLOCK      8\n# define IDEA_KEY_LENGTH 16\n\ntypedef struct idea_key_st {\n    IDEA_INT data[9][6];\n} IDEA_KEY_SCHEDULE;\n\nconst char *IDEA_options(void);\nvoid IDEA_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      IDEA_KEY_SCHEDULE *ks);\nvoid IDEA_set_encrypt_key(const unsigned char *key, IDEA_KEY_SCHEDULE *ks);\nvoid IDEA_set_decrypt_key(IDEA_KEY_SCHEDULE *ek, IDEA_KEY_SCHEDULE *dk);\nvoid IDEA_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                      long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                      int enc);\nvoid IDEA_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                        int *num, int enc);\nvoid IDEA_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, IDEA_KEY_SCHEDULE *ks, unsigned char *iv,\n                        int *num);\nvoid IDEA_encrypt(unsigned long *in, IDEA_KEY_SCHEDULE *ks);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define idea_options          IDEA_options\n#  define idea_ecb_encrypt      IDEA_ecb_encrypt\n#  define idea_set_encrypt_key  IDEA_set_encrypt_key\n#  define idea_set_decrypt_key  IDEA_set_decrypt_key\n#  define idea_cbc_encrypt      IDEA_cbc_encrypt\n#  define idea_cfb64_encrypt    IDEA_cfb64_encrypt\n#  define idea_ofb64_encrypt    IDEA_ofb64_encrypt\n#  define idea_encrypt          IDEA_encrypt\n# endif\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/kdf.h",
    "content": "/*\n * Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_KDF_H\n# define HEADER_KDF_H\n\n# include <openssl/kdferr.h>\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define EVP_PKEY_CTRL_TLS_MD                   (EVP_PKEY_ALG_CTRL)\n# define EVP_PKEY_CTRL_TLS_SECRET               (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_TLS_SEED                 (EVP_PKEY_ALG_CTRL + 2)\n# define EVP_PKEY_CTRL_HKDF_MD                  (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_HKDF_SALT                (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_HKDF_KEY                 (EVP_PKEY_ALG_CTRL + 5)\n# define EVP_PKEY_CTRL_HKDF_INFO                (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_HKDF_MODE                (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_PASS                     (EVP_PKEY_ALG_CTRL + 8)\n# define EVP_PKEY_CTRL_SCRYPT_SALT              (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_SCRYPT_N                 (EVP_PKEY_ALG_CTRL + 10)\n# define EVP_PKEY_CTRL_SCRYPT_R                 (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_SCRYPT_P                 (EVP_PKEY_ALG_CTRL + 12)\n# define EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES      (EVP_PKEY_ALG_CTRL + 13)\n\n# define EVP_PKEY_HKDEF_MODE_EXTRACT_AND_EXPAND 0\n# define EVP_PKEY_HKDEF_MODE_EXTRACT_ONLY       1\n# define EVP_PKEY_HKDEF_MODE_EXPAND_ONLY        2\n\n# define EVP_PKEY_CTX_set_tls1_prf_md(pctx, md) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_set1_tls1_prf_secret(pctx, sec, seclen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_SECRET, seclen, (void *)(sec))\n\n# define EVP_PKEY_CTX_add1_tls1_prf_seed(pctx, seed, seedlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_TLS_SEED, seedlen, (void *)(seed))\n\n# define EVP_PKEY_CTX_set_hkdf_md(pctx, md) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_MD, 0, (void *)(md))\n\n# define EVP_PKEY_CTX_set1_hkdf_salt(pctx, salt, saltlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_SALT, saltlen, (void *)(salt))\n\n# define EVP_PKEY_CTX_set1_hkdf_key(pctx, key, keylen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_KEY, keylen, (void *)(key))\n\n# define EVP_PKEY_CTX_add1_hkdf_info(pctx, info, infolen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_INFO, infolen, (void *)(info))\n\n# define EVP_PKEY_CTX_hkdf_mode(pctx, mode) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                              EVP_PKEY_CTRL_HKDF_MODE, mode, NULL)\n\n# define EVP_PKEY_CTX_set1_pbe_pass(pctx, pass, passlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_PASS, passlen, (void *)(pass))\n\n# define EVP_PKEY_CTX_set1_scrypt_salt(pctx, salt, saltlen) \\\n            EVP_PKEY_CTX_ctrl(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_SALT, saltlen, (void *)(salt))\n\n# define EVP_PKEY_CTX_set_scrypt_N(pctx, n) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_N, n)\n\n# define EVP_PKEY_CTX_set_scrypt_r(pctx, r) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_R, r)\n\n# define EVP_PKEY_CTX_set_scrypt_p(pctx, p) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_P, p)\n\n# define EVP_PKEY_CTX_set_scrypt_maxmem_bytes(pctx, maxmem_bytes) \\\n            EVP_PKEY_CTX_ctrl_uint64(pctx, -1, EVP_PKEY_OP_DERIVE, \\\n                            EVP_PKEY_CTRL_SCRYPT_MAXMEM_BYTES, maxmem_bytes)\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/kdferr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_KDFERR_H\n# define HEADER_KDFERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_KDF_strings(void);\n\n/*\n * KDF function codes.\n */\n# define KDF_F_PKEY_HKDF_CTRL_STR                         103\n# define KDF_F_PKEY_HKDF_DERIVE                           102\n# define KDF_F_PKEY_HKDF_INIT                             108\n# define KDF_F_PKEY_SCRYPT_CTRL_STR                       104\n# define KDF_F_PKEY_SCRYPT_CTRL_UINT64                    105\n# define KDF_F_PKEY_SCRYPT_DERIVE                         109\n# define KDF_F_PKEY_SCRYPT_INIT                           106\n# define KDF_F_PKEY_SCRYPT_SET_MEMBUF                     107\n# define KDF_F_PKEY_TLS1_PRF_CTRL_STR                     100\n# define KDF_F_PKEY_TLS1_PRF_DERIVE                       101\n# define KDF_F_PKEY_TLS1_PRF_INIT                         110\n# define KDF_F_TLS1_PRF_ALG                               111\n\n/*\n * KDF reason codes.\n */\n# define KDF_R_INVALID_DIGEST                             100\n# define KDF_R_MISSING_ITERATION_COUNT                    109\n# define KDF_R_MISSING_KEY                                104\n# define KDF_R_MISSING_MESSAGE_DIGEST                     105\n# define KDF_R_MISSING_PARAMETER                          101\n# define KDF_R_MISSING_PASS                               110\n# define KDF_R_MISSING_SALT                               111\n# define KDF_R_MISSING_SECRET                             107\n# define KDF_R_MISSING_SEED                               106\n# define KDF_R_UNKNOWN_PARAMETER_TYPE                     103\n# define KDF_R_VALUE_ERROR                                108\n# define KDF_R_VALUE_MISSING                              102\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/lhash.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * Header for dynamic hash table routines Author - Eric Young\n */\n\n#ifndef HEADER_LHASH_H\n# define HEADER_LHASH_H\n\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct lhash_node_st OPENSSL_LH_NODE;\ntypedef int (*OPENSSL_LH_COMPFUNC) (const void *, const void *);\ntypedef unsigned long (*OPENSSL_LH_HASHFUNC) (const void *);\ntypedef void (*OPENSSL_LH_DOALL_FUNC) (void *);\ntypedef void (*OPENSSL_LH_DOALL_FUNCARG) (void *, void *);\ntypedef struct lhash_st OPENSSL_LHASH;\n\n/*\n * Macros for declaring and implementing type-safe wrappers for LHASH\n * callbacks. This way, callbacks can be provided to LHASH structures without\n * function pointer casting and the macro-defined callbacks provide\n * per-variable casting before deferring to the underlying type-specific\n * callbacks. NB: It is possible to place a \"static\" in front of both the\n * DECLARE and IMPLEMENT macros if the functions are strictly internal.\n */\n\n/* First: \"hash\" functions */\n# define DECLARE_LHASH_HASH_FN(name, o_type) \\\n        unsigned long name##_LHASH_HASH(const void *);\n# define IMPLEMENT_LHASH_HASH_FN(name, o_type) \\\n        unsigned long name##_LHASH_HASH(const void *arg) { \\\n                const o_type *a = arg; \\\n                return name##_hash(a); }\n# define LHASH_HASH_FN(name) name##_LHASH_HASH\n\n/* Second: \"compare\" functions */\n# define DECLARE_LHASH_COMP_FN(name, o_type) \\\n        int name##_LHASH_COMP(const void *, const void *);\n# define IMPLEMENT_LHASH_COMP_FN(name, o_type) \\\n        int name##_LHASH_COMP(const void *arg1, const void *arg2) { \\\n                const o_type *a = arg1;             \\\n                const o_type *b = arg2; \\\n                return name##_cmp(a,b); }\n# define LHASH_COMP_FN(name) name##_LHASH_COMP\n\n/* Fourth: \"doall_arg\" functions */\n# define DECLARE_LHASH_DOALL_ARG_FN(name, o_type, a_type) \\\n        void name##_LHASH_DOALL_ARG(void *, void *);\n# define IMPLEMENT_LHASH_DOALL_ARG_FN(name, o_type, a_type) \\\n        void name##_LHASH_DOALL_ARG(void *arg1, void *arg2) { \\\n                o_type *a = arg1; \\\n                a_type *b = arg2; \\\n                name##_doall_arg(a, b); }\n# define LHASH_DOALL_ARG_FN(name) name##_LHASH_DOALL_ARG\n\n\n# define LH_LOAD_MULT    256\n\nint OPENSSL_LH_error(OPENSSL_LHASH *lh);\nOPENSSL_LHASH *OPENSSL_LH_new(OPENSSL_LH_HASHFUNC h, OPENSSL_LH_COMPFUNC c);\nvoid OPENSSL_LH_free(OPENSSL_LHASH *lh);\nvoid *OPENSSL_LH_insert(OPENSSL_LHASH *lh, void *data);\nvoid *OPENSSL_LH_delete(OPENSSL_LHASH *lh, const void *data);\nvoid *OPENSSL_LH_retrieve(OPENSSL_LHASH *lh, const void *data);\nvoid OPENSSL_LH_doall(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNC func);\nvoid OPENSSL_LH_doall_arg(OPENSSL_LHASH *lh, OPENSSL_LH_DOALL_FUNCARG func, void *arg);\nunsigned long OPENSSL_LH_strhash(const char *c);\nunsigned long OPENSSL_LH_num_items(const OPENSSL_LHASH *lh);\nunsigned long OPENSSL_LH_get_down_load(const OPENSSL_LHASH *lh);\nvoid OPENSSL_LH_set_down_load(OPENSSL_LHASH *lh, unsigned long down_load);\n\n# ifndef OPENSSL_NO_STDIO\nvoid OPENSSL_LH_stats(const OPENSSL_LHASH *lh, FILE *fp);\nvoid OPENSSL_LH_node_stats(const OPENSSL_LHASH *lh, FILE *fp);\nvoid OPENSSL_LH_node_usage_stats(const OPENSSL_LHASH *lh, FILE *fp);\n# endif\nvoid OPENSSL_LH_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\nvoid OPENSSL_LH_node_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\nvoid OPENSSL_LH_node_usage_stats_bio(const OPENSSL_LHASH *lh, BIO *out);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define _LHASH OPENSSL_LHASH\n#  define LHASH_NODE OPENSSL_LH_NODE\n#  define lh_error OPENSSL_LH_error\n#  define lh_new OPENSSL_LH_new\n#  define lh_free OPENSSL_LH_free\n#  define lh_insert OPENSSL_LH_insert\n#  define lh_delete OPENSSL_LH_delete\n#  define lh_retrieve OPENSSL_LH_retrieve\n#  define lh_doall OPENSSL_LH_doall\n#  define lh_doall_arg OPENSSL_LH_doall_arg\n#  define lh_strhash OPENSSL_LH_strhash\n#  define lh_num_items OPENSSL_LH_num_items\n#  ifndef OPENSSL_NO_STDIO\n#   define lh_stats OPENSSL_LH_stats\n#   define lh_node_stats OPENSSL_LH_node_stats\n#   define lh_node_usage_stats OPENSSL_LH_node_usage_stats\n#  endif\n#  define lh_stats_bio OPENSSL_LH_stats_bio\n#  define lh_node_stats_bio OPENSSL_LH_node_stats_bio\n#  define lh_node_usage_stats_bio OPENSSL_LH_node_usage_stats_bio\n# endif\n\n/* Type checking... */\n\n# define LHASH_OF(type) struct lhash_st_##type\n\n# define DEFINE_LHASH_OF(type) \\\n    LHASH_OF(type) { union lh_##type##_dummy { void* d1; unsigned long d2; int d3; } dummy; }; \\\n    static ossl_unused ossl_inline LHASH_OF(type) *lh_##type##_new(unsigned long (*hfn)(const type *), \\\n                                                                   int (*cfn)(const type *, const type *)) \\\n    { \\\n        return (LHASH_OF(type) *) \\\n            OPENSSL_LH_new((OPENSSL_LH_HASHFUNC)hfn, (OPENSSL_LH_COMPFUNC)cfn); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_free(LHASH_OF(type) *lh) \\\n    { \\\n        OPENSSL_LH_free((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_insert(LHASH_OF(type) *lh, type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_insert((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_delete(LHASH_OF(type) *lh, const type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_delete((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline type *lh_##type##_retrieve(LHASH_OF(type) *lh, const type *d) \\\n    { \\\n        return (type *)OPENSSL_LH_retrieve((OPENSSL_LHASH *)lh, d); \\\n    } \\\n    static ossl_unused ossl_inline int lh_##type##_error(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_error((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline unsigned long lh_##type##_num_items(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_num_items((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_node_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_node_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_node_usage_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_node_usage_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_stats_bio(const LHASH_OF(type) *lh, BIO *out) \\\n    { \\\n        OPENSSL_LH_stats_bio((const OPENSSL_LHASH *)lh, out); \\\n    } \\\n    static ossl_unused ossl_inline unsigned long lh_##type##_get_down_load(LHASH_OF(type) *lh) \\\n    { \\\n        return OPENSSL_LH_get_down_load((OPENSSL_LHASH *)lh); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_set_down_load(LHASH_OF(type) *lh, unsigned long dl) \\\n    { \\\n        OPENSSL_LH_set_down_load((OPENSSL_LHASH *)lh, dl); \\\n    } \\\n    static ossl_unused ossl_inline void lh_##type##_doall(LHASH_OF(type) *lh, \\\n                                                          void (*doall)(type *)) \\\n    { \\\n        OPENSSL_LH_doall((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNC)doall); \\\n    } \\\n    LHASH_OF(type)\n\n#define IMPLEMENT_LHASH_DOALL_ARG_CONST(type, argtype) \\\n    int_implement_lhash_doall(type, argtype, const type)\n\n#define IMPLEMENT_LHASH_DOALL_ARG(type, argtype) \\\n    int_implement_lhash_doall(type, argtype, type)\n\n#define int_implement_lhash_doall(type, argtype, cbargtype) \\\n    static ossl_unused ossl_inline void \\\n        lh_##type##_doall_##argtype(LHASH_OF(type) *lh, \\\n                                   void (*fn)(cbargtype *, argtype *), \\\n                                   argtype *arg) \\\n    { \\\n        OPENSSL_LH_doall_arg((OPENSSL_LHASH *)lh, (OPENSSL_LH_DOALL_FUNCARG)fn, (void *)arg); \\\n    } \\\n    LHASH_OF(type)\n\nDEFINE_LHASH_OF(OPENSSL_STRING);\n# ifdef _MSC_VER\n/*\n * push and pop this warning:\n *   warning C4090: 'function': different 'const' qualifiers\n */\n#  pragma warning (push)\n#  pragma warning (disable: 4090)\n# endif\n\nDEFINE_LHASH_OF(OPENSSL_CSTRING);\n\n# ifdef _MSC_VER\n#  pragma warning (pop)\n# endif\n\n/*\n * If called without higher optimization (min. -xO3) the Oracle Developer\n * Studio compiler generates code for the defined (static inline) functions\n * above.\n * This would later lead to the linker complaining about missing symbols when\n * this header file is included but the resulting object is not linked against\n * the Crypto library (openssl#6912).\n */\n# ifdef __SUNPRO_C\n#  pragma weak OPENSSL_LH_new\n#  pragma weak OPENSSL_LH_free\n#  pragma weak OPENSSL_LH_insert\n#  pragma weak OPENSSL_LH_delete\n#  pragma weak OPENSSL_LH_retrieve\n#  pragma weak OPENSSL_LH_error\n#  pragma weak OPENSSL_LH_num_items\n#  pragma weak OPENSSL_LH_node_stats_bio\n#  pragma weak OPENSSL_LH_node_usage_stats_bio\n#  pragma weak OPENSSL_LH_stats_bio\n#  pragma weak OPENSSL_LH_get_down_load\n#  pragma weak OPENSSL_LH_set_down_load\n#  pragma weak OPENSSL_LH_doall\n#  pragma weak OPENSSL_LH_doall_arg\n# endif /* __SUNPRO_C */\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/md2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD2_H\n# define HEADER_MD2_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD2\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned char MD2_INT;\n\n# define MD2_DIGEST_LENGTH       16\n# define MD2_BLOCK               16\n\ntypedef struct MD2state_st {\n    unsigned int num;\n    unsigned char data[MD2_BLOCK];\n    MD2_INT cksm[MD2_BLOCK];\n    MD2_INT state[MD2_BLOCK];\n} MD2_CTX;\n\nconst char *MD2_options(void);\nint MD2_Init(MD2_CTX *c);\nint MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len);\nint MD2_Final(unsigned char *md, MD2_CTX *c);\nunsigned char *MD2(const unsigned char *d, size_t n, unsigned char *md);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/md4.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD4_H\n# define HEADER_MD4_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD4\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! MD4_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define MD4_LONG unsigned int\n\n# define MD4_CBLOCK      64\n# define MD4_LBLOCK      (MD4_CBLOCK/4)\n# define MD4_DIGEST_LENGTH 16\n\ntypedef struct MD4state_st {\n    MD4_LONG A, B, C, D;\n    MD4_LONG Nl, Nh;\n    MD4_LONG data[MD4_LBLOCK];\n    unsigned int num;\n} MD4_CTX;\n\nint MD4_Init(MD4_CTX *c);\nint MD4_Update(MD4_CTX *c, const void *data, size_t len);\nint MD4_Final(unsigned char *md, MD4_CTX *c);\nunsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md);\nvoid MD4_Transform(MD4_CTX *c, const unsigned char *b);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/md5.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MD5_H\n# define HEADER_MD5_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_MD5\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! MD5_LONG has to be at least 32 bits wide.                     !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define MD5_LONG unsigned int\n\n# define MD5_CBLOCK      64\n# define MD5_LBLOCK      (MD5_CBLOCK/4)\n# define MD5_DIGEST_LENGTH 16\n\ntypedef struct MD5state_st {\n    MD5_LONG A, B, C, D;\n    MD5_LONG Nl, Nh;\n    MD5_LONG data[MD5_LBLOCK];\n    unsigned int num;\n} MD5_CTX;\n\nint MD5_Init(MD5_CTX *c);\nint MD5_Update(MD5_CTX *c, const void *data, size_t len);\nint MD5_Final(unsigned char *md, MD5_CTX *c);\nunsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md);\nvoid MD5_Transform(MD5_CTX *c, const unsigned char *b);\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/mdc2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MDC2_H\n# define HEADER_MDC2_H\n\n# include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_MDC2\n# include <stdlib.h>\n# include <openssl/des.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define MDC2_BLOCK              8\n# define MDC2_DIGEST_LENGTH      16\n\ntypedef struct mdc2_ctx_st {\n    unsigned int num;\n    unsigned char data[MDC2_BLOCK];\n    DES_cblock h, hh;\n    int pad_type;               /* either 1 or 2, default 1 */\n} MDC2_CTX;\n\nint MDC2_Init(MDC2_CTX *c);\nint MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);\nint MDC2_Final(unsigned char *md, MDC2_CTX *c);\nunsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/modes.h",
    "content": "/*\n * Copyright 2008-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_MODES_H\n# define HEADER_MODES_H\n\n# include <stddef.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\ntypedef void (*block128_f) (const unsigned char in[16],\n                            unsigned char out[16], const void *key);\n\ntypedef void (*cbc128_f) (const unsigned char *in, unsigned char *out,\n                          size_t len, const void *key,\n                          unsigned char ivec[16], int enc);\n\ntypedef void (*ctr128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          const unsigned char ivec[16]);\n\ntypedef void (*ccm128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          const unsigned char ivec[16],\n                          unsigned char cmac[16]);\n\nvoid CRYPTO_cbc128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], block128_f block);\nvoid CRYPTO_cbc128_decrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], block128_f block);\n\nvoid CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16],\n                           unsigned char ecount_buf[16], unsigned int *num,\n                           block128_f block);\n\nvoid CRYPTO_ctr128_encrypt_ctr32(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16],\n                                 unsigned char ecount_buf[16],\n                                 unsigned int *num, ctr128_f ctr);\n\nvoid CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], int *num,\n                           block128_f block);\n\nvoid CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                           size_t len, const void *key,\n                           unsigned char ivec[16], int *num,\n                           int enc, block128_f block);\nvoid CRYPTO_cfb128_8_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t length, const void *key,\n                             unsigned char ivec[16], int *num,\n                             int enc, block128_f block);\nvoid CRYPTO_cfb128_1_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t bits, const void *key,\n                             unsigned char ivec[16], int *num,\n                             int enc, block128_f block);\n\nsize_t CRYPTO_cts128_encrypt_block(const unsigned char *in,\n                                   unsigned char *out, size_t len,\n                                   const void *key, unsigned char ivec[16],\n                                   block128_f block);\nsize_t CRYPTO_cts128_encrypt(const unsigned char *in, unsigned char *out,\n                             size_t len, const void *key,\n                             unsigned char ivec[16], cbc128_f cbc);\nsize_t CRYPTO_cts128_decrypt_block(const unsigned char *in,\n                                   unsigned char *out, size_t len,\n                                   const void *key, unsigned char ivec[16],\n                                   block128_f block);\nsize_t CRYPTO_cts128_decrypt(const unsigned char *in, unsigned char *out,\n                             size_t len, const void *key,\n                             unsigned char ivec[16], cbc128_f cbc);\n\nsize_t CRYPTO_nistcts128_encrypt_block(const unsigned char *in,\n                                       unsigned char *out, size_t len,\n                                       const void *key,\n                                       unsigned char ivec[16],\n                                       block128_f block);\nsize_t CRYPTO_nistcts128_encrypt(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16], cbc128_f cbc);\nsize_t CRYPTO_nistcts128_decrypt_block(const unsigned char *in,\n                                       unsigned char *out, size_t len,\n                                       const void *key,\n                                       unsigned char ivec[16],\n                                       block128_f block);\nsize_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out,\n                                 size_t len, const void *key,\n                                 unsigned char ivec[16], cbc128_f cbc);\n\ntypedef struct gcm128_context GCM128_CONTEXT;\n\nGCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block);\nvoid CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block);\nvoid CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv,\n                         size_t len);\nint CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad,\n                      size_t len);\nint CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx,\n                          const unsigned char *in, unsigned char *out,\n                          size_t len);\nint CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx,\n                          const unsigned char *in, unsigned char *out,\n                          size_t len);\nint CRYPTO_gcm128_encrypt_ctr32(GCM128_CONTEXT *ctx,\n                                const unsigned char *in, unsigned char *out,\n                                size_t len, ctr128_f stream);\nint CRYPTO_gcm128_decrypt_ctr32(GCM128_CONTEXT *ctx,\n                                const unsigned char *in, unsigned char *out,\n                                size_t len, ctr128_f stream);\nint CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx, const unsigned char *tag,\n                         size_t len);\nvoid CRYPTO_gcm128_tag(GCM128_CONTEXT *ctx, unsigned char *tag, size_t len);\nvoid CRYPTO_gcm128_release(GCM128_CONTEXT *ctx);\n\ntypedef struct ccm128_context CCM128_CONTEXT;\n\nvoid CRYPTO_ccm128_init(CCM128_CONTEXT *ctx,\n                        unsigned int M, unsigned int L, void *key,\n                        block128_f block);\nint CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, const unsigned char *nonce,\n                        size_t nlen, size_t mlen);\nvoid CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, const unsigned char *aad,\n                       size_t alen);\nint CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                          unsigned char *out, size_t len);\nint CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                          unsigned char *out, size_t len);\nint CRYPTO_ccm128_encrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                                unsigned char *out, size_t len,\n                                ccm128_f stream);\nint CRYPTO_ccm128_decrypt_ccm64(CCM128_CONTEXT *ctx, const unsigned char *inp,\n                                unsigned char *out, size_t len,\n                                ccm128_f stream);\nsize_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len);\n\ntypedef struct xts128_context XTS128_CONTEXT;\n\nint CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx,\n                          const unsigned char iv[16],\n                          const unsigned char *inp, unsigned char *out,\n                          size_t len, int enc);\n\nsize_t CRYPTO_128_wrap(void *key, const unsigned char *iv,\n                       unsigned char *out,\n                       const unsigned char *in, size_t inlen,\n                       block128_f block);\n\nsize_t CRYPTO_128_unwrap(void *key, const unsigned char *iv,\n                         unsigned char *out,\n                         const unsigned char *in, size_t inlen,\n                         block128_f block);\nsize_t CRYPTO_128_wrap_pad(void *key, const unsigned char *icv,\n                           unsigned char *out, const unsigned char *in,\n                           size_t inlen, block128_f block);\nsize_t CRYPTO_128_unwrap_pad(void *key, const unsigned char *icv,\n                             unsigned char *out, const unsigned char *in,\n                             size_t inlen, block128_f block);\n\n# ifndef OPENSSL_NO_OCB\ntypedef struct ocb128_context OCB128_CONTEXT;\n\ntypedef void (*ocb128_f) (const unsigned char *in, unsigned char *out,\n                          size_t blocks, const void *key,\n                          size_t start_block_num,\n                          unsigned char offset_i[16],\n                          const unsigned char L_[][16],\n                          unsigned char checksum[16]);\n\nOCB128_CONTEXT *CRYPTO_ocb128_new(void *keyenc, void *keydec,\n                                  block128_f encrypt, block128_f decrypt,\n                                  ocb128_f stream);\nint CRYPTO_ocb128_init(OCB128_CONTEXT *ctx, void *keyenc, void *keydec,\n                       block128_f encrypt, block128_f decrypt,\n                       ocb128_f stream);\nint CRYPTO_ocb128_copy_ctx(OCB128_CONTEXT *dest, OCB128_CONTEXT *src,\n                           void *keyenc, void *keydec);\nint CRYPTO_ocb128_setiv(OCB128_CONTEXT *ctx, const unsigned char *iv,\n                        size_t len, size_t taglen);\nint CRYPTO_ocb128_aad(OCB128_CONTEXT *ctx, const unsigned char *aad,\n                      size_t len);\nint CRYPTO_ocb128_encrypt(OCB128_CONTEXT *ctx, const unsigned char *in,\n                          unsigned char *out, size_t len);\nint CRYPTO_ocb128_decrypt(OCB128_CONTEXT *ctx, const unsigned char *in,\n                          unsigned char *out, size_t len);\nint CRYPTO_ocb128_finish(OCB128_CONTEXT *ctx, const unsigned char *tag,\n                         size_t len);\nint CRYPTO_ocb128_tag(OCB128_CONTEXT *ctx, unsigned char *tag, size_t len);\nvoid CRYPTO_ocb128_cleanup(OCB128_CONTEXT *ctx);\n# endif                          /* OPENSSL_NO_OCB */\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/obj_mac.h",
    "content": "/*\n * WARNING: do not edit!\n * Generated by crypto/objects/objects.pl\n *\n * Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#define SN_undef                        \"UNDEF\"\n#define LN_undef                        \"undefined\"\n#define NID_undef                       0\n#define OBJ_undef                       0L\n\n#define SN_itu_t                \"ITU-T\"\n#define LN_itu_t                \"itu-t\"\n#define NID_itu_t               645\n#define OBJ_itu_t               0L\n\n#define NID_ccitt               404\n#define OBJ_ccitt               OBJ_itu_t\n\n#define SN_iso          \"ISO\"\n#define LN_iso          \"iso\"\n#define NID_iso         181\n#define OBJ_iso         1L\n\n#define SN_joint_iso_itu_t              \"JOINT-ISO-ITU-T\"\n#define LN_joint_iso_itu_t              \"joint-iso-itu-t\"\n#define NID_joint_iso_itu_t             646\n#define OBJ_joint_iso_itu_t             2L\n\n#define NID_joint_iso_ccitt             393\n#define OBJ_joint_iso_ccitt             OBJ_joint_iso_itu_t\n\n#define SN_member_body          \"member-body\"\n#define LN_member_body          \"ISO Member Body\"\n#define NID_member_body         182\n#define OBJ_member_body         OBJ_iso,2L\n\n#define SN_identified_organization              \"identified-organization\"\n#define NID_identified_organization             676\n#define OBJ_identified_organization             OBJ_iso,3L\n\n#define SN_hmac_md5             \"HMAC-MD5\"\n#define LN_hmac_md5             \"hmac-md5\"\n#define NID_hmac_md5            780\n#define OBJ_hmac_md5            OBJ_identified_organization,6L,1L,5L,5L,8L,1L,1L\n\n#define SN_hmac_sha1            \"HMAC-SHA1\"\n#define LN_hmac_sha1            \"hmac-sha1\"\n#define NID_hmac_sha1           781\n#define OBJ_hmac_sha1           OBJ_identified_organization,6L,1L,5L,5L,8L,1L,2L\n\n#define SN_x509ExtAdmission             \"x509ExtAdmission\"\n#define LN_x509ExtAdmission             \"Professional Information or basis for Admission\"\n#define NID_x509ExtAdmission            1093\n#define OBJ_x509ExtAdmission            OBJ_identified_organization,36L,8L,3L,3L\n\n#define SN_certicom_arc         \"certicom-arc\"\n#define NID_certicom_arc                677\n#define OBJ_certicom_arc                OBJ_identified_organization,132L\n\n#define SN_ieee         \"ieee\"\n#define NID_ieee                1170\n#define OBJ_ieee                OBJ_identified_organization,111L\n\n#define SN_ieee_siswg           \"ieee-siswg\"\n#define LN_ieee_siswg           \"IEEE Security in Storage Working Group\"\n#define NID_ieee_siswg          1171\n#define OBJ_ieee_siswg          OBJ_ieee,2L,1619L\n\n#define SN_international_organizations          \"international-organizations\"\n#define LN_international_organizations          \"International Organizations\"\n#define NID_international_organizations         647\n#define OBJ_international_organizations         OBJ_joint_iso_itu_t,23L\n\n#define SN_wap          \"wap\"\n#define NID_wap         678\n#define OBJ_wap         OBJ_international_organizations,43L\n\n#define SN_wap_wsg              \"wap-wsg\"\n#define NID_wap_wsg             679\n#define OBJ_wap_wsg             OBJ_wap,1L\n\n#define SN_selected_attribute_types             \"selected-attribute-types\"\n#define LN_selected_attribute_types             \"Selected Attribute Types\"\n#define NID_selected_attribute_types            394\n#define OBJ_selected_attribute_types            OBJ_joint_iso_itu_t,5L,1L,5L\n\n#define SN_clearance            \"clearance\"\n#define NID_clearance           395\n#define OBJ_clearance           OBJ_selected_attribute_types,55L\n\n#define SN_ISO_US               \"ISO-US\"\n#define LN_ISO_US               \"ISO US Member Body\"\n#define NID_ISO_US              183\n#define OBJ_ISO_US              OBJ_member_body,840L\n\n#define SN_X9_57                \"X9-57\"\n#define LN_X9_57                \"X9.57\"\n#define NID_X9_57               184\n#define OBJ_X9_57               OBJ_ISO_US,10040L\n\n#define SN_X9cm         \"X9cm\"\n#define LN_X9cm         \"X9.57 CM ?\"\n#define NID_X9cm                185\n#define OBJ_X9cm                OBJ_X9_57,4L\n\n#define SN_ISO_CN               \"ISO-CN\"\n#define LN_ISO_CN               \"ISO CN Member Body\"\n#define NID_ISO_CN              1140\n#define OBJ_ISO_CN              OBJ_member_body,156L\n\n#define SN_oscca                \"oscca\"\n#define NID_oscca               1141\n#define OBJ_oscca               OBJ_ISO_CN,10197L\n\n#define SN_sm_scheme            \"sm-scheme\"\n#define NID_sm_scheme           1142\n#define OBJ_sm_scheme           OBJ_oscca,1L\n\n#define SN_dsa          \"DSA\"\n#define LN_dsa          \"dsaEncryption\"\n#define NID_dsa         116\n#define OBJ_dsa         OBJ_X9cm,1L\n\n#define SN_dsaWithSHA1          \"DSA-SHA1\"\n#define LN_dsaWithSHA1          \"dsaWithSHA1\"\n#define NID_dsaWithSHA1         113\n#define OBJ_dsaWithSHA1         OBJ_X9cm,3L\n\n#define SN_ansi_X9_62           \"ansi-X9-62\"\n#define LN_ansi_X9_62           \"ANSI X9.62\"\n#define NID_ansi_X9_62          405\n#define OBJ_ansi_X9_62          OBJ_ISO_US,10045L\n\n#define OBJ_X9_62_id_fieldType          OBJ_ansi_X9_62,1L\n\n#define SN_X9_62_prime_field            \"prime-field\"\n#define NID_X9_62_prime_field           406\n#define OBJ_X9_62_prime_field           OBJ_X9_62_id_fieldType,1L\n\n#define SN_X9_62_characteristic_two_field               \"characteristic-two-field\"\n#define NID_X9_62_characteristic_two_field              407\n#define OBJ_X9_62_characteristic_two_field              OBJ_X9_62_id_fieldType,2L\n\n#define SN_X9_62_id_characteristic_two_basis            \"id-characteristic-two-basis\"\n#define NID_X9_62_id_characteristic_two_basis           680\n#define OBJ_X9_62_id_characteristic_two_basis           OBJ_X9_62_characteristic_two_field,3L\n\n#define SN_X9_62_onBasis                \"onBasis\"\n#define NID_X9_62_onBasis               681\n#define OBJ_X9_62_onBasis               OBJ_X9_62_id_characteristic_two_basis,1L\n\n#define SN_X9_62_tpBasis                \"tpBasis\"\n#define NID_X9_62_tpBasis               682\n#define OBJ_X9_62_tpBasis               OBJ_X9_62_id_characteristic_two_basis,2L\n\n#define SN_X9_62_ppBasis                \"ppBasis\"\n#define NID_X9_62_ppBasis               683\n#define OBJ_X9_62_ppBasis               OBJ_X9_62_id_characteristic_two_basis,3L\n\n#define OBJ_X9_62_id_publicKeyType              OBJ_ansi_X9_62,2L\n\n#define SN_X9_62_id_ecPublicKey         \"id-ecPublicKey\"\n#define NID_X9_62_id_ecPublicKey                408\n#define OBJ_X9_62_id_ecPublicKey                OBJ_X9_62_id_publicKeyType,1L\n\n#define OBJ_X9_62_ellipticCurve         OBJ_ansi_X9_62,3L\n\n#define OBJ_X9_62_c_TwoCurve            OBJ_X9_62_ellipticCurve,0L\n\n#define SN_X9_62_c2pnb163v1             \"c2pnb163v1\"\n#define NID_X9_62_c2pnb163v1            684\n#define OBJ_X9_62_c2pnb163v1            OBJ_X9_62_c_TwoCurve,1L\n\n#define SN_X9_62_c2pnb163v2             \"c2pnb163v2\"\n#define NID_X9_62_c2pnb163v2            685\n#define OBJ_X9_62_c2pnb163v2            OBJ_X9_62_c_TwoCurve,2L\n\n#define SN_X9_62_c2pnb163v3             \"c2pnb163v3\"\n#define NID_X9_62_c2pnb163v3            686\n#define OBJ_X9_62_c2pnb163v3            OBJ_X9_62_c_TwoCurve,3L\n\n#define SN_X9_62_c2pnb176v1             \"c2pnb176v1\"\n#define NID_X9_62_c2pnb176v1            687\n#define OBJ_X9_62_c2pnb176v1            OBJ_X9_62_c_TwoCurve,4L\n\n#define SN_X9_62_c2tnb191v1             \"c2tnb191v1\"\n#define NID_X9_62_c2tnb191v1            688\n#define OBJ_X9_62_c2tnb191v1            OBJ_X9_62_c_TwoCurve,5L\n\n#define SN_X9_62_c2tnb191v2             \"c2tnb191v2\"\n#define NID_X9_62_c2tnb191v2            689\n#define OBJ_X9_62_c2tnb191v2            OBJ_X9_62_c_TwoCurve,6L\n\n#define SN_X9_62_c2tnb191v3             \"c2tnb191v3\"\n#define NID_X9_62_c2tnb191v3            690\n#define OBJ_X9_62_c2tnb191v3            OBJ_X9_62_c_TwoCurve,7L\n\n#define SN_X9_62_c2onb191v4             \"c2onb191v4\"\n#define NID_X9_62_c2onb191v4            691\n#define OBJ_X9_62_c2onb191v4            OBJ_X9_62_c_TwoCurve,8L\n\n#define SN_X9_62_c2onb191v5             \"c2onb191v5\"\n#define NID_X9_62_c2onb191v5            692\n#define OBJ_X9_62_c2onb191v5            OBJ_X9_62_c_TwoCurve,9L\n\n#define SN_X9_62_c2pnb208w1             \"c2pnb208w1\"\n#define NID_X9_62_c2pnb208w1            693\n#define OBJ_X9_62_c2pnb208w1            OBJ_X9_62_c_TwoCurve,10L\n\n#define SN_X9_62_c2tnb239v1             \"c2tnb239v1\"\n#define NID_X9_62_c2tnb239v1            694\n#define OBJ_X9_62_c2tnb239v1            OBJ_X9_62_c_TwoCurve,11L\n\n#define SN_X9_62_c2tnb239v2             \"c2tnb239v2\"\n#define NID_X9_62_c2tnb239v2            695\n#define OBJ_X9_62_c2tnb239v2            OBJ_X9_62_c_TwoCurve,12L\n\n#define SN_X9_62_c2tnb239v3             \"c2tnb239v3\"\n#define NID_X9_62_c2tnb239v3            696\n#define OBJ_X9_62_c2tnb239v3            OBJ_X9_62_c_TwoCurve,13L\n\n#define SN_X9_62_c2onb239v4             \"c2onb239v4\"\n#define NID_X9_62_c2onb239v4            697\n#define OBJ_X9_62_c2onb239v4            OBJ_X9_62_c_TwoCurve,14L\n\n#define SN_X9_62_c2onb239v5             \"c2onb239v5\"\n#define NID_X9_62_c2onb239v5            698\n#define OBJ_X9_62_c2onb239v5            OBJ_X9_62_c_TwoCurve,15L\n\n#define SN_X9_62_c2pnb272w1             \"c2pnb272w1\"\n#define NID_X9_62_c2pnb272w1            699\n#define OBJ_X9_62_c2pnb272w1            OBJ_X9_62_c_TwoCurve,16L\n\n#define SN_X9_62_c2pnb304w1             \"c2pnb304w1\"\n#define NID_X9_62_c2pnb304w1            700\n#define OBJ_X9_62_c2pnb304w1            OBJ_X9_62_c_TwoCurve,17L\n\n#define SN_X9_62_c2tnb359v1             \"c2tnb359v1\"\n#define NID_X9_62_c2tnb359v1            701\n#define OBJ_X9_62_c2tnb359v1            OBJ_X9_62_c_TwoCurve,18L\n\n#define SN_X9_62_c2pnb368w1             \"c2pnb368w1\"\n#define NID_X9_62_c2pnb368w1            702\n#define OBJ_X9_62_c2pnb368w1            OBJ_X9_62_c_TwoCurve,19L\n\n#define SN_X9_62_c2tnb431r1             \"c2tnb431r1\"\n#define NID_X9_62_c2tnb431r1            703\n#define OBJ_X9_62_c2tnb431r1            OBJ_X9_62_c_TwoCurve,20L\n\n#define OBJ_X9_62_primeCurve            OBJ_X9_62_ellipticCurve,1L\n\n#define SN_X9_62_prime192v1             \"prime192v1\"\n#define NID_X9_62_prime192v1            409\n#define OBJ_X9_62_prime192v1            OBJ_X9_62_primeCurve,1L\n\n#define SN_X9_62_prime192v2             \"prime192v2\"\n#define NID_X9_62_prime192v2            410\n#define OBJ_X9_62_prime192v2            OBJ_X9_62_primeCurve,2L\n\n#define SN_X9_62_prime192v3             \"prime192v3\"\n#define NID_X9_62_prime192v3            411\n#define OBJ_X9_62_prime192v3            OBJ_X9_62_primeCurve,3L\n\n#define SN_X9_62_prime239v1             \"prime239v1\"\n#define NID_X9_62_prime239v1            412\n#define OBJ_X9_62_prime239v1            OBJ_X9_62_primeCurve,4L\n\n#define SN_X9_62_prime239v2             \"prime239v2\"\n#define NID_X9_62_prime239v2            413\n#define OBJ_X9_62_prime239v2            OBJ_X9_62_primeCurve,5L\n\n#define SN_X9_62_prime239v3             \"prime239v3\"\n#define NID_X9_62_prime239v3            414\n#define OBJ_X9_62_prime239v3            OBJ_X9_62_primeCurve,6L\n\n#define SN_X9_62_prime256v1             \"prime256v1\"\n#define NID_X9_62_prime256v1            415\n#define OBJ_X9_62_prime256v1            OBJ_X9_62_primeCurve,7L\n\n#define OBJ_X9_62_id_ecSigType          OBJ_ansi_X9_62,4L\n\n#define SN_ecdsa_with_SHA1              \"ecdsa-with-SHA1\"\n#define NID_ecdsa_with_SHA1             416\n#define OBJ_ecdsa_with_SHA1             OBJ_X9_62_id_ecSigType,1L\n\n#define SN_ecdsa_with_Recommended               \"ecdsa-with-Recommended\"\n#define NID_ecdsa_with_Recommended              791\n#define OBJ_ecdsa_with_Recommended              OBJ_X9_62_id_ecSigType,2L\n\n#define SN_ecdsa_with_Specified         \"ecdsa-with-Specified\"\n#define NID_ecdsa_with_Specified                792\n#define OBJ_ecdsa_with_Specified                OBJ_X9_62_id_ecSigType,3L\n\n#define SN_ecdsa_with_SHA224            \"ecdsa-with-SHA224\"\n#define NID_ecdsa_with_SHA224           793\n#define OBJ_ecdsa_with_SHA224           OBJ_ecdsa_with_Specified,1L\n\n#define SN_ecdsa_with_SHA256            \"ecdsa-with-SHA256\"\n#define NID_ecdsa_with_SHA256           794\n#define OBJ_ecdsa_with_SHA256           OBJ_ecdsa_with_Specified,2L\n\n#define SN_ecdsa_with_SHA384            \"ecdsa-with-SHA384\"\n#define NID_ecdsa_with_SHA384           795\n#define OBJ_ecdsa_with_SHA384           OBJ_ecdsa_with_Specified,3L\n\n#define SN_ecdsa_with_SHA512            \"ecdsa-with-SHA512\"\n#define NID_ecdsa_with_SHA512           796\n#define OBJ_ecdsa_with_SHA512           OBJ_ecdsa_with_Specified,4L\n\n#define OBJ_secg_ellipticCurve          OBJ_certicom_arc,0L\n\n#define SN_secp112r1            \"secp112r1\"\n#define NID_secp112r1           704\n#define OBJ_secp112r1           OBJ_secg_ellipticCurve,6L\n\n#define SN_secp112r2            \"secp112r2\"\n#define NID_secp112r2           705\n#define OBJ_secp112r2           OBJ_secg_ellipticCurve,7L\n\n#define SN_secp128r1            \"secp128r1\"\n#define NID_secp128r1           706\n#define OBJ_secp128r1           OBJ_secg_ellipticCurve,28L\n\n#define SN_secp128r2            \"secp128r2\"\n#define NID_secp128r2           707\n#define OBJ_secp128r2           OBJ_secg_ellipticCurve,29L\n\n#define SN_secp160k1            \"secp160k1\"\n#define NID_secp160k1           708\n#define OBJ_secp160k1           OBJ_secg_ellipticCurve,9L\n\n#define SN_secp160r1            \"secp160r1\"\n#define NID_secp160r1           709\n#define OBJ_secp160r1           OBJ_secg_ellipticCurve,8L\n\n#define SN_secp160r2            \"secp160r2\"\n#define NID_secp160r2           710\n#define OBJ_secp160r2           OBJ_secg_ellipticCurve,30L\n\n#define SN_secp192k1            \"secp192k1\"\n#define NID_secp192k1           711\n#define OBJ_secp192k1           OBJ_secg_ellipticCurve,31L\n\n#define SN_secp224k1            \"secp224k1\"\n#define NID_secp224k1           712\n#define OBJ_secp224k1           OBJ_secg_ellipticCurve,32L\n\n#define SN_secp224r1            \"secp224r1\"\n#define NID_secp224r1           713\n#define OBJ_secp224r1           OBJ_secg_ellipticCurve,33L\n\n#define SN_secp256k1            \"secp256k1\"\n#define NID_secp256k1           714\n#define OBJ_secp256k1           OBJ_secg_ellipticCurve,10L\n\n#define SN_secp384r1            \"secp384r1\"\n#define NID_secp384r1           715\n#define OBJ_secp384r1           OBJ_secg_ellipticCurve,34L\n\n#define SN_secp521r1            \"secp521r1\"\n#define NID_secp521r1           716\n#define OBJ_secp521r1           OBJ_secg_ellipticCurve,35L\n\n#define SN_sect113r1            \"sect113r1\"\n#define NID_sect113r1           717\n#define OBJ_sect113r1           OBJ_secg_ellipticCurve,4L\n\n#define SN_sect113r2            \"sect113r2\"\n#define NID_sect113r2           718\n#define OBJ_sect113r2           OBJ_secg_ellipticCurve,5L\n\n#define SN_sect131r1            \"sect131r1\"\n#define NID_sect131r1           719\n#define OBJ_sect131r1           OBJ_secg_ellipticCurve,22L\n\n#define SN_sect131r2            \"sect131r2\"\n#define NID_sect131r2           720\n#define OBJ_sect131r2           OBJ_secg_ellipticCurve,23L\n\n#define SN_sect163k1            \"sect163k1\"\n#define NID_sect163k1           721\n#define OBJ_sect163k1           OBJ_secg_ellipticCurve,1L\n\n#define SN_sect163r1            \"sect163r1\"\n#define NID_sect163r1           722\n#define OBJ_sect163r1           OBJ_secg_ellipticCurve,2L\n\n#define SN_sect163r2            \"sect163r2\"\n#define NID_sect163r2           723\n#define OBJ_sect163r2           OBJ_secg_ellipticCurve,15L\n\n#define SN_sect193r1            \"sect193r1\"\n#define NID_sect193r1           724\n#define OBJ_sect193r1           OBJ_secg_ellipticCurve,24L\n\n#define SN_sect193r2            \"sect193r2\"\n#define NID_sect193r2           725\n#define OBJ_sect193r2           OBJ_secg_ellipticCurve,25L\n\n#define SN_sect233k1            \"sect233k1\"\n#define NID_sect233k1           726\n#define OBJ_sect233k1           OBJ_secg_ellipticCurve,26L\n\n#define SN_sect233r1            \"sect233r1\"\n#define NID_sect233r1           727\n#define OBJ_sect233r1           OBJ_secg_ellipticCurve,27L\n\n#define SN_sect239k1            \"sect239k1\"\n#define NID_sect239k1           728\n#define OBJ_sect239k1           OBJ_secg_ellipticCurve,3L\n\n#define SN_sect283k1            \"sect283k1\"\n#define NID_sect283k1           729\n#define OBJ_sect283k1           OBJ_secg_ellipticCurve,16L\n\n#define SN_sect283r1            \"sect283r1\"\n#define NID_sect283r1           730\n#define OBJ_sect283r1           OBJ_secg_ellipticCurve,17L\n\n#define SN_sect409k1            \"sect409k1\"\n#define NID_sect409k1           731\n#define OBJ_sect409k1           OBJ_secg_ellipticCurve,36L\n\n#define SN_sect409r1            \"sect409r1\"\n#define NID_sect409r1           732\n#define OBJ_sect409r1           OBJ_secg_ellipticCurve,37L\n\n#define SN_sect571k1            \"sect571k1\"\n#define NID_sect571k1           733\n#define OBJ_sect571k1           OBJ_secg_ellipticCurve,38L\n\n#define SN_sect571r1            \"sect571r1\"\n#define NID_sect571r1           734\n#define OBJ_sect571r1           OBJ_secg_ellipticCurve,39L\n\n#define OBJ_wap_wsg_idm_ecid            OBJ_wap_wsg,4L\n\n#define SN_wap_wsg_idm_ecid_wtls1               \"wap-wsg-idm-ecid-wtls1\"\n#define NID_wap_wsg_idm_ecid_wtls1              735\n#define OBJ_wap_wsg_idm_ecid_wtls1              OBJ_wap_wsg_idm_ecid,1L\n\n#define SN_wap_wsg_idm_ecid_wtls3               \"wap-wsg-idm-ecid-wtls3\"\n#define NID_wap_wsg_idm_ecid_wtls3              736\n#define OBJ_wap_wsg_idm_ecid_wtls3              OBJ_wap_wsg_idm_ecid,3L\n\n#define SN_wap_wsg_idm_ecid_wtls4               \"wap-wsg-idm-ecid-wtls4\"\n#define NID_wap_wsg_idm_ecid_wtls4              737\n#define OBJ_wap_wsg_idm_ecid_wtls4              OBJ_wap_wsg_idm_ecid,4L\n\n#define SN_wap_wsg_idm_ecid_wtls5               \"wap-wsg-idm-ecid-wtls5\"\n#define NID_wap_wsg_idm_ecid_wtls5              738\n#define OBJ_wap_wsg_idm_ecid_wtls5              OBJ_wap_wsg_idm_ecid,5L\n\n#define SN_wap_wsg_idm_ecid_wtls6               \"wap-wsg-idm-ecid-wtls6\"\n#define NID_wap_wsg_idm_ecid_wtls6              739\n#define OBJ_wap_wsg_idm_ecid_wtls6              OBJ_wap_wsg_idm_ecid,6L\n\n#define SN_wap_wsg_idm_ecid_wtls7               \"wap-wsg-idm-ecid-wtls7\"\n#define NID_wap_wsg_idm_ecid_wtls7              740\n#define OBJ_wap_wsg_idm_ecid_wtls7              OBJ_wap_wsg_idm_ecid,7L\n\n#define SN_wap_wsg_idm_ecid_wtls8               \"wap-wsg-idm-ecid-wtls8\"\n#define NID_wap_wsg_idm_ecid_wtls8              741\n#define OBJ_wap_wsg_idm_ecid_wtls8              OBJ_wap_wsg_idm_ecid,8L\n\n#define SN_wap_wsg_idm_ecid_wtls9               \"wap-wsg-idm-ecid-wtls9\"\n#define NID_wap_wsg_idm_ecid_wtls9              742\n#define OBJ_wap_wsg_idm_ecid_wtls9              OBJ_wap_wsg_idm_ecid,9L\n\n#define SN_wap_wsg_idm_ecid_wtls10              \"wap-wsg-idm-ecid-wtls10\"\n#define NID_wap_wsg_idm_ecid_wtls10             743\n#define OBJ_wap_wsg_idm_ecid_wtls10             OBJ_wap_wsg_idm_ecid,10L\n\n#define SN_wap_wsg_idm_ecid_wtls11              \"wap-wsg-idm-ecid-wtls11\"\n#define NID_wap_wsg_idm_ecid_wtls11             744\n#define OBJ_wap_wsg_idm_ecid_wtls11             OBJ_wap_wsg_idm_ecid,11L\n\n#define SN_wap_wsg_idm_ecid_wtls12              \"wap-wsg-idm-ecid-wtls12\"\n#define NID_wap_wsg_idm_ecid_wtls12             745\n#define OBJ_wap_wsg_idm_ecid_wtls12             OBJ_wap_wsg_idm_ecid,12L\n\n#define SN_cast5_cbc            \"CAST5-CBC\"\n#define LN_cast5_cbc            \"cast5-cbc\"\n#define NID_cast5_cbc           108\n#define OBJ_cast5_cbc           OBJ_ISO_US,113533L,7L,66L,10L\n\n#define SN_cast5_ecb            \"CAST5-ECB\"\n#define LN_cast5_ecb            \"cast5-ecb\"\n#define NID_cast5_ecb           109\n\n#define SN_cast5_cfb64          \"CAST5-CFB\"\n#define LN_cast5_cfb64          \"cast5-cfb\"\n#define NID_cast5_cfb64         110\n\n#define SN_cast5_ofb64          \"CAST5-OFB\"\n#define LN_cast5_ofb64          \"cast5-ofb\"\n#define NID_cast5_ofb64         111\n\n#define LN_pbeWithMD5AndCast5_CBC               \"pbeWithMD5AndCast5CBC\"\n#define NID_pbeWithMD5AndCast5_CBC              112\n#define OBJ_pbeWithMD5AndCast5_CBC              OBJ_ISO_US,113533L,7L,66L,12L\n\n#define SN_id_PasswordBasedMAC          \"id-PasswordBasedMAC\"\n#define LN_id_PasswordBasedMAC          \"password based MAC\"\n#define NID_id_PasswordBasedMAC         782\n#define OBJ_id_PasswordBasedMAC         OBJ_ISO_US,113533L,7L,66L,13L\n\n#define SN_id_DHBasedMac                \"id-DHBasedMac\"\n#define LN_id_DHBasedMac                \"Diffie-Hellman based MAC\"\n#define NID_id_DHBasedMac               783\n#define OBJ_id_DHBasedMac               OBJ_ISO_US,113533L,7L,66L,30L\n\n#define SN_rsadsi               \"rsadsi\"\n#define LN_rsadsi               \"RSA Data Security, Inc.\"\n#define NID_rsadsi              1\n#define OBJ_rsadsi              OBJ_ISO_US,113549L\n\n#define SN_pkcs         \"pkcs\"\n#define LN_pkcs         \"RSA Data Security, Inc. PKCS\"\n#define NID_pkcs                2\n#define OBJ_pkcs                OBJ_rsadsi,1L\n\n#define SN_pkcs1                \"pkcs1\"\n#define NID_pkcs1               186\n#define OBJ_pkcs1               OBJ_pkcs,1L\n\n#define LN_rsaEncryption                \"rsaEncryption\"\n#define NID_rsaEncryption               6\n#define OBJ_rsaEncryption               OBJ_pkcs1,1L\n\n#define SN_md2WithRSAEncryption         \"RSA-MD2\"\n#define LN_md2WithRSAEncryption         \"md2WithRSAEncryption\"\n#define NID_md2WithRSAEncryption                7\n#define OBJ_md2WithRSAEncryption                OBJ_pkcs1,2L\n\n#define SN_md4WithRSAEncryption         \"RSA-MD4\"\n#define LN_md4WithRSAEncryption         \"md4WithRSAEncryption\"\n#define NID_md4WithRSAEncryption                396\n#define OBJ_md4WithRSAEncryption                OBJ_pkcs1,3L\n\n#define SN_md5WithRSAEncryption         \"RSA-MD5\"\n#define LN_md5WithRSAEncryption         \"md5WithRSAEncryption\"\n#define NID_md5WithRSAEncryption                8\n#define OBJ_md5WithRSAEncryption                OBJ_pkcs1,4L\n\n#define SN_sha1WithRSAEncryption                \"RSA-SHA1\"\n#define LN_sha1WithRSAEncryption                \"sha1WithRSAEncryption\"\n#define NID_sha1WithRSAEncryption               65\n#define OBJ_sha1WithRSAEncryption               OBJ_pkcs1,5L\n\n#define SN_rsaesOaep            \"RSAES-OAEP\"\n#define LN_rsaesOaep            \"rsaesOaep\"\n#define NID_rsaesOaep           919\n#define OBJ_rsaesOaep           OBJ_pkcs1,7L\n\n#define SN_mgf1         \"MGF1\"\n#define LN_mgf1         \"mgf1\"\n#define NID_mgf1                911\n#define OBJ_mgf1                OBJ_pkcs1,8L\n\n#define SN_pSpecified           \"PSPECIFIED\"\n#define LN_pSpecified           \"pSpecified\"\n#define NID_pSpecified          935\n#define OBJ_pSpecified          OBJ_pkcs1,9L\n\n#define SN_rsassaPss            \"RSASSA-PSS\"\n#define LN_rsassaPss            \"rsassaPss\"\n#define NID_rsassaPss           912\n#define OBJ_rsassaPss           OBJ_pkcs1,10L\n\n#define SN_sha256WithRSAEncryption              \"RSA-SHA256\"\n#define LN_sha256WithRSAEncryption              \"sha256WithRSAEncryption\"\n#define NID_sha256WithRSAEncryption             668\n#define OBJ_sha256WithRSAEncryption             OBJ_pkcs1,11L\n\n#define SN_sha384WithRSAEncryption              \"RSA-SHA384\"\n#define LN_sha384WithRSAEncryption              \"sha384WithRSAEncryption\"\n#define NID_sha384WithRSAEncryption             669\n#define OBJ_sha384WithRSAEncryption             OBJ_pkcs1,12L\n\n#define SN_sha512WithRSAEncryption              \"RSA-SHA512\"\n#define LN_sha512WithRSAEncryption              \"sha512WithRSAEncryption\"\n#define NID_sha512WithRSAEncryption             670\n#define OBJ_sha512WithRSAEncryption             OBJ_pkcs1,13L\n\n#define SN_sha224WithRSAEncryption              \"RSA-SHA224\"\n#define LN_sha224WithRSAEncryption              \"sha224WithRSAEncryption\"\n#define NID_sha224WithRSAEncryption             671\n#define OBJ_sha224WithRSAEncryption             OBJ_pkcs1,14L\n\n#define SN_sha512_224WithRSAEncryption          \"RSA-SHA512/224\"\n#define LN_sha512_224WithRSAEncryption          \"sha512-224WithRSAEncryption\"\n#define NID_sha512_224WithRSAEncryption         1145\n#define OBJ_sha512_224WithRSAEncryption         OBJ_pkcs1,15L\n\n#define SN_sha512_256WithRSAEncryption          \"RSA-SHA512/256\"\n#define LN_sha512_256WithRSAEncryption          \"sha512-256WithRSAEncryption\"\n#define NID_sha512_256WithRSAEncryption         1146\n#define OBJ_sha512_256WithRSAEncryption         OBJ_pkcs1,16L\n\n#define SN_pkcs3                \"pkcs3\"\n#define NID_pkcs3               27\n#define OBJ_pkcs3               OBJ_pkcs,3L\n\n#define LN_dhKeyAgreement               \"dhKeyAgreement\"\n#define NID_dhKeyAgreement              28\n#define OBJ_dhKeyAgreement              OBJ_pkcs3,1L\n\n#define SN_pkcs5                \"pkcs5\"\n#define NID_pkcs5               187\n#define OBJ_pkcs5               OBJ_pkcs,5L\n\n#define SN_pbeWithMD2AndDES_CBC         \"PBE-MD2-DES\"\n#define LN_pbeWithMD2AndDES_CBC         \"pbeWithMD2AndDES-CBC\"\n#define NID_pbeWithMD2AndDES_CBC                9\n#define OBJ_pbeWithMD2AndDES_CBC                OBJ_pkcs5,1L\n\n#define SN_pbeWithMD5AndDES_CBC         \"PBE-MD5-DES\"\n#define LN_pbeWithMD5AndDES_CBC         \"pbeWithMD5AndDES-CBC\"\n#define NID_pbeWithMD5AndDES_CBC                10\n#define OBJ_pbeWithMD5AndDES_CBC                OBJ_pkcs5,3L\n\n#define SN_pbeWithMD2AndRC2_CBC         \"PBE-MD2-RC2-64\"\n#define LN_pbeWithMD2AndRC2_CBC         \"pbeWithMD2AndRC2-CBC\"\n#define NID_pbeWithMD2AndRC2_CBC                168\n#define OBJ_pbeWithMD2AndRC2_CBC                OBJ_pkcs5,4L\n\n#define SN_pbeWithMD5AndRC2_CBC         \"PBE-MD5-RC2-64\"\n#define LN_pbeWithMD5AndRC2_CBC         \"pbeWithMD5AndRC2-CBC\"\n#define NID_pbeWithMD5AndRC2_CBC                169\n#define OBJ_pbeWithMD5AndRC2_CBC                OBJ_pkcs5,6L\n\n#define SN_pbeWithSHA1AndDES_CBC                \"PBE-SHA1-DES\"\n#define LN_pbeWithSHA1AndDES_CBC                \"pbeWithSHA1AndDES-CBC\"\n#define NID_pbeWithSHA1AndDES_CBC               170\n#define OBJ_pbeWithSHA1AndDES_CBC               OBJ_pkcs5,10L\n\n#define SN_pbeWithSHA1AndRC2_CBC                \"PBE-SHA1-RC2-64\"\n#define LN_pbeWithSHA1AndRC2_CBC                \"pbeWithSHA1AndRC2-CBC\"\n#define NID_pbeWithSHA1AndRC2_CBC               68\n#define OBJ_pbeWithSHA1AndRC2_CBC               OBJ_pkcs5,11L\n\n#define LN_id_pbkdf2            \"PBKDF2\"\n#define NID_id_pbkdf2           69\n#define OBJ_id_pbkdf2           OBJ_pkcs5,12L\n\n#define LN_pbes2                \"PBES2\"\n#define NID_pbes2               161\n#define OBJ_pbes2               OBJ_pkcs5,13L\n\n#define LN_pbmac1               \"PBMAC1\"\n#define NID_pbmac1              162\n#define OBJ_pbmac1              OBJ_pkcs5,14L\n\n#define SN_pkcs7                \"pkcs7\"\n#define NID_pkcs7               20\n#define OBJ_pkcs7               OBJ_pkcs,7L\n\n#define LN_pkcs7_data           \"pkcs7-data\"\n#define NID_pkcs7_data          21\n#define OBJ_pkcs7_data          OBJ_pkcs7,1L\n\n#define LN_pkcs7_signed         \"pkcs7-signedData\"\n#define NID_pkcs7_signed                22\n#define OBJ_pkcs7_signed                OBJ_pkcs7,2L\n\n#define LN_pkcs7_enveloped              \"pkcs7-envelopedData\"\n#define NID_pkcs7_enveloped             23\n#define OBJ_pkcs7_enveloped             OBJ_pkcs7,3L\n\n#define LN_pkcs7_signedAndEnveloped             \"pkcs7-signedAndEnvelopedData\"\n#define NID_pkcs7_signedAndEnveloped            24\n#define OBJ_pkcs7_signedAndEnveloped            OBJ_pkcs7,4L\n\n#define LN_pkcs7_digest         \"pkcs7-digestData\"\n#define NID_pkcs7_digest                25\n#define OBJ_pkcs7_digest                OBJ_pkcs7,5L\n\n#define LN_pkcs7_encrypted              \"pkcs7-encryptedData\"\n#define NID_pkcs7_encrypted             26\n#define OBJ_pkcs7_encrypted             OBJ_pkcs7,6L\n\n#define SN_pkcs9                \"pkcs9\"\n#define NID_pkcs9               47\n#define OBJ_pkcs9               OBJ_pkcs,9L\n\n#define LN_pkcs9_emailAddress           \"emailAddress\"\n#define NID_pkcs9_emailAddress          48\n#define OBJ_pkcs9_emailAddress          OBJ_pkcs9,1L\n\n#define LN_pkcs9_unstructuredName               \"unstructuredName\"\n#define NID_pkcs9_unstructuredName              49\n#define OBJ_pkcs9_unstructuredName              OBJ_pkcs9,2L\n\n#define LN_pkcs9_contentType            \"contentType\"\n#define NID_pkcs9_contentType           50\n#define OBJ_pkcs9_contentType           OBJ_pkcs9,3L\n\n#define LN_pkcs9_messageDigest          \"messageDigest\"\n#define NID_pkcs9_messageDigest         51\n#define OBJ_pkcs9_messageDigest         OBJ_pkcs9,4L\n\n#define LN_pkcs9_signingTime            \"signingTime\"\n#define NID_pkcs9_signingTime           52\n#define OBJ_pkcs9_signingTime           OBJ_pkcs9,5L\n\n#define LN_pkcs9_countersignature               \"countersignature\"\n#define NID_pkcs9_countersignature              53\n#define OBJ_pkcs9_countersignature              OBJ_pkcs9,6L\n\n#define LN_pkcs9_challengePassword              \"challengePassword\"\n#define NID_pkcs9_challengePassword             54\n#define OBJ_pkcs9_challengePassword             OBJ_pkcs9,7L\n\n#define LN_pkcs9_unstructuredAddress            \"unstructuredAddress\"\n#define NID_pkcs9_unstructuredAddress           55\n#define OBJ_pkcs9_unstructuredAddress           OBJ_pkcs9,8L\n\n#define LN_pkcs9_extCertAttributes              \"extendedCertificateAttributes\"\n#define NID_pkcs9_extCertAttributes             56\n#define OBJ_pkcs9_extCertAttributes             OBJ_pkcs9,9L\n\n#define SN_ext_req              \"extReq\"\n#define LN_ext_req              \"Extension Request\"\n#define NID_ext_req             172\n#define OBJ_ext_req             OBJ_pkcs9,14L\n\n#define SN_SMIMECapabilities            \"SMIME-CAPS\"\n#define LN_SMIMECapabilities            \"S/MIME Capabilities\"\n#define NID_SMIMECapabilities           167\n#define OBJ_SMIMECapabilities           OBJ_pkcs9,15L\n\n#define SN_SMIME                \"SMIME\"\n#define LN_SMIME                \"S/MIME\"\n#define NID_SMIME               188\n#define OBJ_SMIME               OBJ_pkcs9,16L\n\n#define SN_id_smime_mod         \"id-smime-mod\"\n#define NID_id_smime_mod                189\n#define OBJ_id_smime_mod                OBJ_SMIME,0L\n\n#define SN_id_smime_ct          \"id-smime-ct\"\n#define NID_id_smime_ct         190\n#define OBJ_id_smime_ct         OBJ_SMIME,1L\n\n#define SN_id_smime_aa          \"id-smime-aa\"\n#define NID_id_smime_aa         191\n#define OBJ_id_smime_aa         OBJ_SMIME,2L\n\n#define SN_id_smime_alg         \"id-smime-alg\"\n#define NID_id_smime_alg                192\n#define OBJ_id_smime_alg                OBJ_SMIME,3L\n\n#define SN_id_smime_cd          \"id-smime-cd\"\n#define NID_id_smime_cd         193\n#define OBJ_id_smime_cd         OBJ_SMIME,4L\n\n#define SN_id_smime_spq         \"id-smime-spq\"\n#define NID_id_smime_spq                194\n#define OBJ_id_smime_spq                OBJ_SMIME,5L\n\n#define SN_id_smime_cti         \"id-smime-cti\"\n#define NID_id_smime_cti                195\n#define OBJ_id_smime_cti                OBJ_SMIME,6L\n\n#define SN_id_smime_mod_cms             \"id-smime-mod-cms\"\n#define NID_id_smime_mod_cms            196\n#define OBJ_id_smime_mod_cms            OBJ_id_smime_mod,1L\n\n#define SN_id_smime_mod_ess             \"id-smime-mod-ess\"\n#define NID_id_smime_mod_ess            197\n#define OBJ_id_smime_mod_ess            OBJ_id_smime_mod,2L\n\n#define SN_id_smime_mod_oid             \"id-smime-mod-oid\"\n#define NID_id_smime_mod_oid            198\n#define OBJ_id_smime_mod_oid            OBJ_id_smime_mod,3L\n\n#define SN_id_smime_mod_msg_v3          \"id-smime-mod-msg-v3\"\n#define NID_id_smime_mod_msg_v3         199\n#define OBJ_id_smime_mod_msg_v3         OBJ_id_smime_mod,4L\n\n#define SN_id_smime_mod_ets_eSignature_88               \"id-smime-mod-ets-eSignature-88\"\n#define NID_id_smime_mod_ets_eSignature_88              200\n#define OBJ_id_smime_mod_ets_eSignature_88              OBJ_id_smime_mod,5L\n\n#define SN_id_smime_mod_ets_eSignature_97               \"id-smime-mod-ets-eSignature-97\"\n#define NID_id_smime_mod_ets_eSignature_97              201\n#define OBJ_id_smime_mod_ets_eSignature_97              OBJ_id_smime_mod,6L\n\n#define SN_id_smime_mod_ets_eSigPolicy_88               \"id-smime-mod-ets-eSigPolicy-88\"\n#define NID_id_smime_mod_ets_eSigPolicy_88              202\n#define OBJ_id_smime_mod_ets_eSigPolicy_88              OBJ_id_smime_mod,7L\n\n#define SN_id_smime_mod_ets_eSigPolicy_97               \"id-smime-mod-ets-eSigPolicy-97\"\n#define NID_id_smime_mod_ets_eSigPolicy_97              203\n#define OBJ_id_smime_mod_ets_eSigPolicy_97              OBJ_id_smime_mod,8L\n\n#define SN_id_smime_ct_receipt          \"id-smime-ct-receipt\"\n#define NID_id_smime_ct_receipt         204\n#define OBJ_id_smime_ct_receipt         OBJ_id_smime_ct,1L\n\n#define SN_id_smime_ct_authData         \"id-smime-ct-authData\"\n#define NID_id_smime_ct_authData                205\n#define OBJ_id_smime_ct_authData                OBJ_id_smime_ct,2L\n\n#define SN_id_smime_ct_publishCert              \"id-smime-ct-publishCert\"\n#define NID_id_smime_ct_publishCert             206\n#define OBJ_id_smime_ct_publishCert             OBJ_id_smime_ct,3L\n\n#define SN_id_smime_ct_TSTInfo          \"id-smime-ct-TSTInfo\"\n#define NID_id_smime_ct_TSTInfo         207\n#define OBJ_id_smime_ct_TSTInfo         OBJ_id_smime_ct,4L\n\n#define SN_id_smime_ct_TDTInfo          \"id-smime-ct-TDTInfo\"\n#define NID_id_smime_ct_TDTInfo         208\n#define OBJ_id_smime_ct_TDTInfo         OBJ_id_smime_ct,5L\n\n#define SN_id_smime_ct_contentInfo              \"id-smime-ct-contentInfo\"\n#define NID_id_smime_ct_contentInfo             209\n#define OBJ_id_smime_ct_contentInfo             OBJ_id_smime_ct,6L\n\n#define SN_id_smime_ct_DVCSRequestData          \"id-smime-ct-DVCSRequestData\"\n#define NID_id_smime_ct_DVCSRequestData         210\n#define OBJ_id_smime_ct_DVCSRequestData         OBJ_id_smime_ct,7L\n\n#define SN_id_smime_ct_DVCSResponseData         \"id-smime-ct-DVCSResponseData\"\n#define NID_id_smime_ct_DVCSResponseData                211\n#define OBJ_id_smime_ct_DVCSResponseData                OBJ_id_smime_ct,8L\n\n#define SN_id_smime_ct_compressedData           \"id-smime-ct-compressedData\"\n#define NID_id_smime_ct_compressedData          786\n#define OBJ_id_smime_ct_compressedData          OBJ_id_smime_ct,9L\n\n#define SN_id_smime_ct_contentCollection                \"id-smime-ct-contentCollection\"\n#define NID_id_smime_ct_contentCollection               1058\n#define OBJ_id_smime_ct_contentCollection               OBJ_id_smime_ct,19L\n\n#define SN_id_smime_ct_authEnvelopedData                \"id-smime-ct-authEnvelopedData\"\n#define NID_id_smime_ct_authEnvelopedData               1059\n#define OBJ_id_smime_ct_authEnvelopedData               OBJ_id_smime_ct,23L\n\n#define SN_id_ct_asciiTextWithCRLF              \"id-ct-asciiTextWithCRLF\"\n#define NID_id_ct_asciiTextWithCRLF             787\n#define OBJ_id_ct_asciiTextWithCRLF             OBJ_id_smime_ct,27L\n\n#define SN_id_ct_xml            \"id-ct-xml\"\n#define NID_id_ct_xml           1060\n#define OBJ_id_ct_xml           OBJ_id_smime_ct,28L\n\n#define SN_id_smime_aa_receiptRequest           \"id-smime-aa-receiptRequest\"\n#define NID_id_smime_aa_receiptRequest          212\n#define OBJ_id_smime_aa_receiptRequest          OBJ_id_smime_aa,1L\n\n#define SN_id_smime_aa_securityLabel            \"id-smime-aa-securityLabel\"\n#define NID_id_smime_aa_securityLabel           213\n#define OBJ_id_smime_aa_securityLabel           OBJ_id_smime_aa,2L\n\n#define SN_id_smime_aa_mlExpandHistory          \"id-smime-aa-mlExpandHistory\"\n#define NID_id_smime_aa_mlExpandHistory         214\n#define OBJ_id_smime_aa_mlExpandHistory         OBJ_id_smime_aa,3L\n\n#define SN_id_smime_aa_contentHint              \"id-smime-aa-contentHint\"\n#define NID_id_smime_aa_contentHint             215\n#define OBJ_id_smime_aa_contentHint             OBJ_id_smime_aa,4L\n\n#define SN_id_smime_aa_msgSigDigest             \"id-smime-aa-msgSigDigest\"\n#define NID_id_smime_aa_msgSigDigest            216\n#define OBJ_id_smime_aa_msgSigDigest            OBJ_id_smime_aa,5L\n\n#define SN_id_smime_aa_encapContentType         \"id-smime-aa-encapContentType\"\n#define NID_id_smime_aa_encapContentType                217\n#define OBJ_id_smime_aa_encapContentType                OBJ_id_smime_aa,6L\n\n#define SN_id_smime_aa_contentIdentifier                \"id-smime-aa-contentIdentifier\"\n#define NID_id_smime_aa_contentIdentifier               218\n#define OBJ_id_smime_aa_contentIdentifier               OBJ_id_smime_aa,7L\n\n#define SN_id_smime_aa_macValue         \"id-smime-aa-macValue\"\n#define NID_id_smime_aa_macValue                219\n#define OBJ_id_smime_aa_macValue                OBJ_id_smime_aa,8L\n\n#define SN_id_smime_aa_equivalentLabels         \"id-smime-aa-equivalentLabels\"\n#define NID_id_smime_aa_equivalentLabels                220\n#define OBJ_id_smime_aa_equivalentLabels                OBJ_id_smime_aa,9L\n\n#define SN_id_smime_aa_contentReference         \"id-smime-aa-contentReference\"\n#define NID_id_smime_aa_contentReference                221\n#define OBJ_id_smime_aa_contentReference                OBJ_id_smime_aa,10L\n\n#define SN_id_smime_aa_encrypKeyPref            \"id-smime-aa-encrypKeyPref\"\n#define NID_id_smime_aa_encrypKeyPref           222\n#define OBJ_id_smime_aa_encrypKeyPref           OBJ_id_smime_aa,11L\n\n#define SN_id_smime_aa_signingCertificate               \"id-smime-aa-signingCertificate\"\n#define NID_id_smime_aa_signingCertificate              223\n#define OBJ_id_smime_aa_signingCertificate              OBJ_id_smime_aa,12L\n\n#define SN_id_smime_aa_smimeEncryptCerts                \"id-smime-aa-smimeEncryptCerts\"\n#define NID_id_smime_aa_smimeEncryptCerts               224\n#define OBJ_id_smime_aa_smimeEncryptCerts               OBJ_id_smime_aa,13L\n\n#define SN_id_smime_aa_timeStampToken           \"id-smime-aa-timeStampToken\"\n#define NID_id_smime_aa_timeStampToken          225\n#define OBJ_id_smime_aa_timeStampToken          OBJ_id_smime_aa,14L\n\n#define SN_id_smime_aa_ets_sigPolicyId          \"id-smime-aa-ets-sigPolicyId\"\n#define NID_id_smime_aa_ets_sigPolicyId         226\n#define OBJ_id_smime_aa_ets_sigPolicyId         OBJ_id_smime_aa,15L\n\n#define SN_id_smime_aa_ets_commitmentType               \"id-smime-aa-ets-commitmentType\"\n#define NID_id_smime_aa_ets_commitmentType              227\n#define OBJ_id_smime_aa_ets_commitmentType              OBJ_id_smime_aa,16L\n\n#define SN_id_smime_aa_ets_signerLocation               \"id-smime-aa-ets-signerLocation\"\n#define NID_id_smime_aa_ets_signerLocation              228\n#define OBJ_id_smime_aa_ets_signerLocation              OBJ_id_smime_aa,17L\n\n#define SN_id_smime_aa_ets_signerAttr           \"id-smime-aa-ets-signerAttr\"\n#define NID_id_smime_aa_ets_signerAttr          229\n#define OBJ_id_smime_aa_ets_signerAttr          OBJ_id_smime_aa,18L\n\n#define SN_id_smime_aa_ets_otherSigCert         \"id-smime-aa-ets-otherSigCert\"\n#define NID_id_smime_aa_ets_otherSigCert                230\n#define OBJ_id_smime_aa_ets_otherSigCert                OBJ_id_smime_aa,19L\n\n#define SN_id_smime_aa_ets_contentTimestamp             \"id-smime-aa-ets-contentTimestamp\"\n#define NID_id_smime_aa_ets_contentTimestamp            231\n#define OBJ_id_smime_aa_ets_contentTimestamp            OBJ_id_smime_aa,20L\n\n#define SN_id_smime_aa_ets_CertificateRefs              \"id-smime-aa-ets-CertificateRefs\"\n#define NID_id_smime_aa_ets_CertificateRefs             232\n#define OBJ_id_smime_aa_ets_CertificateRefs             OBJ_id_smime_aa,21L\n\n#define SN_id_smime_aa_ets_RevocationRefs               \"id-smime-aa-ets-RevocationRefs\"\n#define NID_id_smime_aa_ets_RevocationRefs              233\n#define OBJ_id_smime_aa_ets_RevocationRefs              OBJ_id_smime_aa,22L\n\n#define SN_id_smime_aa_ets_certValues           \"id-smime-aa-ets-certValues\"\n#define NID_id_smime_aa_ets_certValues          234\n#define OBJ_id_smime_aa_ets_certValues          OBJ_id_smime_aa,23L\n\n#define SN_id_smime_aa_ets_revocationValues             \"id-smime-aa-ets-revocationValues\"\n#define NID_id_smime_aa_ets_revocationValues            235\n#define OBJ_id_smime_aa_ets_revocationValues            OBJ_id_smime_aa,24L\n\n#define SN_id_smime_aa_ets_escTimeStamp         \"id-smime-aa-ets-escTimeStamp\"\n#define NID_id_smime_aa_ets_escTimeStamp                236\n#define OBJ_id_smime_aa_ets_escTimeStamp                OBJ_id_smime_aa,25L\n\n#define SN_id_smime_aa_ets_certCRLTimestamp             \"id-smime-aa-ets-certCRLTimestamp\"\n#define NID_id_smime_aa_ets_certCRLTimestamp            237\n#define OBJ_id_smime_aa_ets_certCRLTimestamp            OBJ_id_smime_aa,26L\n\n#define SN_id_smime_aa_ets_archiveTimeStamp             \"id-smime-aa-ets-archiveTimeStamp\"\n#define NID_id_smime_aa_ets_archiveTimeStamp            238\n#define OBJ_id_smime_aa_ets_archiveTimeStamp            OBJ_id_smime_aa,27L\n\n#define SN_id_smime_aa_signatureType            \"id-smime-aa-signatureType\"\n#define NID_id_smime_aa_signatureType           239\n#define OBJ_id_smime_aa_signatureType           OBJ_id_smime_aa,28L\n\n#define SN_id_smime_aa_dvcs_dvc         \"id-smime-aa-dvcs-dvc\"\n#define NID_id_smime_aa_dvcs_dvc                240\n#define OBJ_id_smime_aa_dvcs_dvc                OBJ_id_smime_aa,29L\n\n#define SN_id_smime_aa_signingCertificateV2             \"id-smime-aa-signingCertificateV2\"\n#define NID_id_smime_aa_signingCertificateV2            1086\n#define OBJ_id_smime_aa_signingCertificateV2            OBJ_id_smime_aa,47L\n\n#define SN_id_smime_alg_ESDHwith3DES            \"id-smime-alg-ESDHwith3DES\"\n#define NID_id_smime_alg_ESDHwith3DES           241\n#define OBJ_id_smime_alg_ESDHwith3DES           OBJ_id_smime_alg,1L\n\n#define SN_id_smime_alg_ESDHwithRC2             \"id-smime-alg-ESDHwithRC2\"\n#define NID_id_smime_alg_ESDHwithRC2            242\n#define OBJ_id_smime_alg_ESDHwithRC2            OBJ_id_smime_alg,2L\n\n#define SN_id_smime_alg_3DESwrap                \"id-smime-alg-3DESwrap\"\n#define NID_id_smime_alg_3DESwrap               243\n#define OBJ_id_smime_alg_3DESwrap               OBJ_id_smime_alg,3L\n\n#define SN_id_smime_alg_RC2wrap         \"id-smime-alg-RC2wrap\"\n#define NID_id_smime_alg_RC2wrap                244\n#define OBJ_id_smime_alg_RC2wrap                OBJ_id_smime_alg,4L\n\n#define SN_id_smime_alg_ESDH            \"id-smime-alg-ESDH\"\n#define NID_id_smime_alg_ESDH           245\n#define OBJ_id_smime_alg_ESDH           OBJ_id_smime_alg,5L\n\n#define SN_id_smime_alg_CMS3DESwrap             \"id-smime-alg-CMS3DESwrap\"\n#define NID_id_smime_alg_CMS3DESwrap            246\n#define OBJ_id_smime_alg_CMS3DESwrap            OBJ_id_smime_alg,6L\n\n#define SN_id_smime_alg_CMSRC2wrap              \"id-smime-alg-CMSRC2wrap\"\n#define NID_id_smime_alg_CMSRC2wrap             247\n#define OBJ_id_smime_alg_CMSRC2wrap             OBJ_id_smime_alg,7L\n\n#define SN_id_alg_PWRI_KEK              \"id-alg-PWRI-KEK\"\n#define NID_id_alg_PWRI_KEK             893\n#define OBJ_id_alg_PWRI_KEK             OBJ_id_smime_alg,9L\n\n#define SN_id_smime_cd_ldap             \"id-smime-cd-ldap\"\n#define NID_id_smime_cd_ldap            248\n#define OBJ_id_smime_cd_ldap            OBJ_id_smime_cd,1L\n\n#define SN_id_smime_spq_ets_sqt_uri             \"id-smime-spq-ets-sqt-uri\"\n#define NID_id_smime_spq_ets_sqt_uri            249\n#define OBJ_id_smime_spq_ets_sqt_uri            OBJ_id_smime_spq,1L\n\n#define SN_id_smime_spq_ets_sqt_unotice         \"id-smime-spq-ets-sqt-unotice\"\n#define NID_id_smime_spq_ets_sqt_unotice                250\n#define OBJ_id_smime_spq_ets_sqt_unotice                OBJ_id_smime_spq,2L\n\n#define SN_id_smime_cti_ets_proofOfOrigin               \"id-smime-cti-ets-proofOfOrigin\"\n#define NID_id_smime_cti_ets_proofOfOrigin              251\n#define OBJ_id_smime_cti_ets_proofOfOrigin              OBJ_id_smime_cti,1L\n\n#define SN_id_smime_cti_ets_proofOfReceipt              \"id-smime-cti-ets-proofOfReceipt\"\n#define NID_id_smime_cti_ets_proofOfReceipt             252\n#define OBJ_id_smime_cti_ets_proofOfReceipt             OBJ_id_smime_cti,2L\n\n#define SN_id_smime_cti_ets_proofOfDelivery             \"id-smime-cti-ets-proofOfDelivery\"\n#define NID_id_smime_cti_ets_proofOfDelivery            253\n#define OBJ_id_smime_cti_ets_proofOfDelivery            OBJ_id_smime_cti,3L\n\n#define SN_id_smime_cti_ets_proofOfSender               \"id-smime-cti-ets-proofOfSender\"\n#define NID_id_smime_cti_ets_proofOfSender              254\n#define OBJ_id_smime_cti_ets_proofOfSender              OBJ_id_smime_cti,4L\n\n#define SN_id_smime_cti_ets_proofOfApproval             \"id-smime-cti-ets-proofOfApproval\"\n#define NID_id_smime_cti_ets_proofOfApproval            255\n#define OBJ_id_smime_cti_ets_proofOfApproval            OBJ_id_smime_cti,5L\n\n#define SN_id_smime_cti_ets_proofOfCreation             \"id-smime-cti-ets-proofOfCreation\"\n#define NID_id_smime_cti_ets_proofOfCreation            256\n#define OBJ_id_smime_cti_ets_proofOfCreation            OBJ_id_smime_cti,6L\n\n#define LN_friendlyName         \"friendlyName\"\n#define NID_friendlyName                156\n#define OBJ_friendlyName                OBJ_pkcs9,20L\n\n#define LN_localKeyID           \"localKeyID\"\n#define NID_localKeyID          157\n#define OBJ_localKeyID          OBJ_pkcs9,21L\n\n#define SN_ms_csp_name          \"CSPName\"\n#define LN_ms_csp_name          \"Microsoft CSP Name\"\n#define NID_ms_csp_name         417\n#define OBJ_ms_csp_name         1L,3L,6L,1L,4L,1L,311L,17L,1L\n\n#define SN_LocalKeySet          \"LocalKeySet\"\n#define LN_LocalKeySet          \"Microsoft Local Key set\"\n#define NID_LocalKeySet         856\n#define OBJ_LocalKeySet         1L,3L,6L,1L,4L,1L,311L,17L,2L\n\n#define OBJ_certTypes           OBJ_pkcs9,22L\n\n#define LN_x509Certificate              \"x509Certificate\"\n#define NID_x509Certificate             158\n#define OBJ_x509Certificate             OBJ_certTypes,1L\n\n#define LN_sdsiCertificate              \"sdsiCertificate\"\n#define NID_sdsiCertificate             159\n#define OBJ_sdsiCertificate             OBJ_certTypes,2L\n\n#define OBJ_crlTypes            OBJ_pkcs9,23L\n\n#define LN_x509Crl              \"x509Crl\"\n#define NID_x509Crl             160\n#define OBJ_x509Crl             OBJ_crlTypes,1L\n\n#define OBJ_pkcs12              OBJ_pkcs,12L\n\n#define OBJ_pkcs12_pbeids               OBJ_pkcs12,1L\n\n#define SN_pbe_WithSHA1And128BitRC4             \"PBE-SHA1-RC4-128\"\n#define LN_pbe_WithSHA1And128BitRC4             \"pbeWithSHA1And128BitRC4\"\n#define NID_pbe_WithSHA1And128BitRC4            144\n#define OBJ_pbe_WithSHA1And128BitRC4            OBJ_pkcs12_pbeids,1L\n\n#define SN_pbe_WithSHA1And40BitRC4              \"PBE-SHA1-RC4-40\"\n#define LN_pbe_WithSHA1And40BitRC4              \"pbeWithSHA1And40BitRC4\"\n#define NID_pbe_WithSHA1And40BitRC4             145\n#define OBJ_pbe_WithSHA1And40BitRC4             OBJ_pkcs12_pbeids,2L\n\n#define SN_pbe_WithSHA1And3_Key_TripleDES_CBC           \"PBE-SHA1-3DES\"\n#define LN_pbe_WithSHA1And3_Key_TripleDES_CBC           \"pbeWithSHA1And3-KeyTripleDES-CBC\"\n#define NID_pbe_WithSHA1And3_Key_TripleDES_CBC          146\n#define OBJ_pbe_WithSHA1And3_Key_TripleDES_CBC          OBJ_pkcs12_pbeids,3L\n\n#define SN_pbe_WithSHA1And2_Key_TripleDES_CBC           \"PBE-SHA1-2DES\"\n#define LN_pbe_WithSHA1And2_Key_TripleDES_CBC           \"pbeWithSHA1And2-KeyTripleDES-CBC\"\n#define NID_pbe_WithSHA1And2_Key_TripleDES_CBC          147\n#define OBJ_pbe_WithSHA1And2_Key_TripleDES_CBC          OBJ_pkcs12_pbeids,4L\n\n#define SN_pbe_WithSHA1And128BitRC2_CBC         \"PBE-SHA1-RC2-128\"\n#define LN_pbe_WithSHA1And128BitRC2_CBC         \"pbeWithSHA1And128BitRC2-CBC\"\n#define NID_pbe_WithSHA1And128BitRC2_CBC                148\n#define OBJ_pbe_WithSHA1And128BitRC2_CBC                OBJ_pkcs12_pbeids,5L\n\n#define SN_pbe_WithSHA1And40BitRC2_CBC          \"PBE-SHA1-RC2-40\"\n#define LN_pbe_WithSHA1And40BitRC2_CBC          \"pbeWithSHA1And40BitRC2-CBC\"\n#define NID_pbe_WithSHA1And40BitRC2_CBC         149\n#define OBJ_pbe_WithSHA1And40BitRC2_CBC         OBJ_pkcs12_pbeids,6L\n\n#define OBJ_pkcs12_Version1             OBJ_pkcs12,10L\n\n#define OBJ_pkcs12_BagIds               OBJ_pkcs12_Version1,1L\n\n#define LN_keyBag               \"keyBag\"\n#define NID_keyBag              150\n#define OBJ_keyBag              OBJ_pkcs12_BagIds,1L\n\n#define LN_pkcs8ShroudedKeyBag          \"pkcs8ShroudedKeyBag\"\n#define NID_pkcs8ShroudedKeyBag         151\n#define OBJ_pkcs8ShroudedKeyBag         OBJ_pkcs12_BagIds,2L\n\n#define LN_certBag              \"certBag\"\n#define NID_certBag             152\n#define OBJ_certBag             OBJ_pkcs12_BagIds,3L\n\n#define LN_crlBag               \"crlBag\"\n#define NID_crlBag              153\n#define OBJ_crlBag              OBJ_pkcs12_BagIds,4L\n\n#define LN_secretBag            \"secretBag\"\n#define NID_secretBag           154\n#define OBJ_secretBag           OBJ_pkcs12_BagIds,5L\n\n#define LN_safeContentsBag              \"safeContentsBag\"\n#define NID_safeContentsBag             155\n#define OBJ_safeContentsBag             OBJ_pkcs12_BagIds,6L\n\n#define SN_md2          \"MD2\"\n#define LN_md2          \"md2\"\n#define NID_md2         3\n#define OBJ_md2         OBJ_rsadsi,2L,2L\n\n#define SN_md4          \"MD4\"\n#define LN_md4          \"md4\"\n#define NID_md4         257\n#define OBJ_md4         OBJ_rsadsi,2L,4L\n\n#define SN_md5          \"MD5\"\n#define LN_md5          \"md5\"\n#define NID_md5         4\n#define OBJ_md5         OBJ_rsadsi,2L,5L\n\n#define SN_md5_sha1             \"MD5-SHA1\"\n#define LN_md5_sha1             \"md5-sha1\"\n#define NID_md5_sha1            114\n\n#define LN_hmacWithMD5          \"hmacWithMD5\"\n#define NID_hmacWithMD5         797\n#define OBJ_hmacWithMD5         OBJ_rsadsi,2L,6L\n\n#define LN_hmacWithSHA1         \"hmacWithSHA1\"\n#define NID_hmacWithSHA1                163\n#define OBJ_hmacWithSHA1                OBJ_rsadsi,2L,7L\n\n#define SN_sm2          \"SM2\"\n#define LN_sm2          \"sm2\"\n#define NID_sm2         1172\n#define OBJ_sm2         OBJ_sm_scheme,301L\n\n#define SN_sm3          \"SM3\"\n#define LN_sm3          \"sm3\"\n#define NID_sm3         1143\n#define OBJ_sm3         OBJ_sm_scheme,401L\n\n#define SN_sm3WithRSAEncryption         \"RSA-SM3\"\n#define LN_sm3WithRSAEncryption         \"sm3WithRSAEncryption\"\n#define NID_sm3WithRSAEncryption                1144\n#define OBJ_sm3WithRSAEncryption                OBJ_sm_scheme,504L\n\n#define LN_hmacWithSHA224               \"hmacWithSHA224\"\n#define NID_hmacWithSHA224              798\n#define OBJ_hmacWithSHA224              OBJ_rsadsi,2L,8L\n\n#define LN_hmacWithSHA256               \"hmacWithSHA256\"\n#define NID_hmacWithSHA256              799\n#define OBJ_hmacWithSHA256              OBJ_rsadsi,2L,9L\n\n#define LN_hmacWithSHA384               \"hmacWithSHA384\"\n#define NID_hmacWithSHA384              800\n#define OBJ_hmacWithSHA384              OBJ_rsadsi,2L,10L\n\n#define LN_hmacWithSHA512               \"hmacWithSHA512\"\n#define NID_hmacWithSHA512              801\n#define OBJ_hmacWithSHA512              OBJ_rsadsi,2L,11L\n\n#define LN_hmacWithSHA512_224           \"hmacWithSHA512-224\"\n#define NID_hmacWithSHA512_224          1193\n#define OBJ_hmacWithSHA512_224          OBJ_rsadsi,2L,12L\n\n#define LN_hmacWithSHA512_256           \"hmacWithSHA512-256\"\n#define NID_hmacWithSHA512_256          1194\n#define OBJ_hmacWithSHA512_256          OBJ_rsadsi,2L,13L\n\n#define SN_rc2_cbc              \"RC2-CBC\"\n#define LN_rc2_cbc              \"rc2-cbc\"\n#define NID_rc2_cbc             37\n#define OBJ_rc2_cbc             OBJ_rsadsi,3L,2L\n\n#define SN_rc2_ecb              \"RC2-ECB\"\n#define LN_rc2_ecb              \"rc2-ecb\"\n#define NID_rc2_ecb             38\n\n#define SN_rc2_cfb64            \"RC2-CFB\"\n#define LN_rc2_cfb64            \"rc2-cfb\"\n#define NID_rc2_cfb64           39\n\n#define SN_rc2_ofb64            \"RC2-OFB\"\n#define LN_rc2_ofb64            \"rc2-ofb\"\n#define NID_rc2_ofb64           40\n\n#define SN_rc2_40_cbc           \"RC2-40-CBC\"\n#define LN_rc2_40_cbc           \"rc2-40-cbc\"\n#define NID_rc2_40_cbc          98\n\n#define SN_rc2_64_cbc           \"RC2-64-CBC\"\n#define LN_rc2_64_cbc           \"rc2-64-cbc\"\n#define NID_rc2_64_cbc          166\n\n#define SN_rc4          \"RC4\"\n#define LN_rc4          \"rc4\"\n#define NID_rc4         5\n#define OBJ_rc4         OBJ_rsadsi,3L,4L\n\n#define SN_rc4_40               \"RC4-40\"\n#define LN_rc4_40               \"rc4-40\"\n#define NID_rc4_40              97\n\n#define SN_des_ede3_cbc         \"DES-EDE3-CBC\"\n#define LN_des_ede3_cbc         \"des-ede3-cbc\"\n#define NID_des_ede3_cbc                44\n#define OBJ_des_ede3_cbc                OBJ_rsadsi,3L,7L\n\n#define SN_rc5_cbc              \"RC5-CBC\"\n#define LN_rc5_cbc              \"rc5-cbc\"\n#define NID_rc5_cbc             120\n#define OBJ_rc5_cbc             OBJ_rsadsi,3L,8L\n\n#define SN_rc5_ecb              \"RC5-ECB\"\n#define LN_rc5_ecb              \"rc5-ecb\"\n#define NID_rc5_ecb             121\n\n#define SN_rc5_cfb64            \"RC5-CFB\"\n#define LN_rc5_cfb64            \"rc5-cfb\"\n#define NID_rc5_cfb64           122\n\n#define SN_rc5_ofb64            \"RC5-OFB\"\n#define LN_rc5_ofb64            \"rc5-ofb\"\n#define NID_rc5_ofb64           123\n\n#define SN_ms_ext_req           \"msExtReq\"\n#define LN_ms_ext_req           \"Microsoft Extension Request\"\n#define NID_ms_ext_req          171\n#define OBJ_ms_ext_req          1L,3L,6L,1L,4L,1L,311L,2L,1L,14L\n\n#define SN_ms_code_ind          \"msCodeInd\"\n#define LN_ms_code_ind          \"Microsoft Individual Code Signing\"\n#define NID_ms_code_ind         134\n#define OBJ_ms_code_ind         1L,3L,6L,1L,4L,1L,311L,2L,1L,21L\n\n#define SN_ms_code_com          \"msCodeCom\"\n#define LN_ms_code_com          \"Microsoft Commercial Code Signing\"\n#define NID_ms_code_com         135\n#define OBJ_ms_code_com         1L,3L,6L,1L,4L,1L,311L,2L,1L,22L\n\n#define SN_ms_ctl_sign          \"msCTLSign\"\n#define LN_ms_ctl_sign          \"Microsoft Trust List Signing\"\n#define NID_ms_ctl_sign         136\n#define OBJ_ms_ctl_sign         1L,3L,6L,1L,4L,1L,311L,10L,3L,1L\n\n#define SN_ms_sgc               \"msSGC\"\n#define LN_ms_sgc               \"Microsoft Server Gated Crypto\"\n#define NID_ms_sgc              137\n#define OBJ_ms_sgc              1L,3L,6L,1L,4L,1L,311L,10L,3L,3L\n\n#define SN_ms_efs               \"msEFS\"\n#define LN_ms_efs               \"Microsoft Encrypted File System\"\n#define NID_ms_efs              138\n#define OBJ_ms_efs              1L,3L,6L,1L,4L,1L,311L,10L,3L,4L\n\n#define SN_ms_smartcard_login           \"msSmartcardLogin\"\n#define LN_ms_smartcard_login           \"Microsoft Smartcard Login\"\n#define NID_ms_smartcard_login          648\n#define OBJ_ms_smartcard_login          1L,3L,6L,1L,4L,1L,311L,20L,2L,2L\n\n#define SN_ms_upn               \"msUPN\"\n#define LN_ms_upn               \"Microsoft User Principal Name\"\n#define NID_ms_upn              649\n#define OBJ_ms_upn              1L,3L,6L,1L,4L,1L,311L,20L,2L,3L\n\n#define SN_idea_cbc             \"IDEA-CBC\"\n#define LN_idea_cbc             \"idea-cbc\"\n#define NID_idea_cbc            34\n#define OBJ_idea_cbc            1L,3L,6L,1L,4L,1L,188L,7L,1L,1L,2L\n\n#define SN_idea_ecb             \"IDEA-ECB\"\n#define LN_idea_ecb             \"idea-ecb\"\n#define NID_idea_ecb            36\n\n#define SN_idea_cfb64           \"IDEA-CFB\"\n#define LN_idea_cfb64           \"idea-cfb\"\n#define NID_idea_cfb64          35\n\n#define SN_idea_ofb64           \"IDEA-OFB\"\n#define LN_idea_ofb64           \"idea-ofb\"\n#define NID_idea_ofb64          46\n\n#define SN_bf_cbc               \"BF-CBC\"\n#define LN_bf_cbc               \"bf-cbc\"\n#define NID_bf_cbc              91\n#define OBJ_bf_cbc              1L,3L,6L,1L,4L,1L,3029L,1L,2L\n\n#define SN_bf_ecb               \"BF-ECB\"\n#define LN_bf_ecb               \"bf-ecb\"\n#define NID_bf_ecb              92\n\n#define SN_bf_cfb64             \"BF-CFB\"\n#define LN_bf_cfb64             \"bf-cfb\"\n#define NID_bf_cfb64            93\n\n#define SN_bf_ofb64             \"BF-OFB\"\n#define LN_bf_ofb64             \"bf-ofb\"\n#define NID_bf_ofb64            94\n\n#define SN_id_pkix              \"PKIX\"\n#define NID_id_pkix             127\n#define OBJ_id_pkix             1L,3L,6L,1L,5L,5L,7L\n\n#define SN_id_pkix_mod          \"id-pkix-mod\"\n#define NID_id_pkix_mod         258\n#define OBJ_id_pkix_mod         OBJ_id_pkix,0L\n\n#define SN_id_pe                \"id-pe\"\n#define NID_id_pe               175\n#define OBJ_id_pe               OBJ_id_pkix,1L\n\n#define SN_id_qt                \"id-qt\"\n#define NID_id_qt               259\n#define OBJ_id_qt               OBJ_id_pkix,2L\n\n#define SN_id_kp                \"id-kp\"\n#define NID_id_kp               128\n#define OBJ_id_kp               OBJ_id_pkix,3L\n\n#define SN_id_it                \"id-it\"\n#define NID_id_it               260\n#define OBJ_id_it               OBJ_id_pkix,4L\n\n#define SN_id_pkip              \"id-pkip\"\n#define NID_id_pkip             261\n#define OBJ_id_pkip             OBJ_id_pkix,5L\n\n#define SN_id_alg               \"id-alg\"\n#define NID_id_alg              262\n#define OBJ_id_alg              OBJ_id_pkix,6L\n\n#define SN_id_cmc               \"id-cmc\"\n#define NID_id_cmc              263\n#define OBJ_id_cmc              OBJ_id_pkix,7L\n\n#define SN_id_on                \"id-on\"\n#define NID_id_on               264\n#define OBJ_id_on               OBJ_id_pkix,8L\n\n#define SN_id_pda               \"id-pda\"\n#define NID_id_pda              265\n#define OBJ_id_pda              OBJ_id_pkix,9L\n\n#define SN_id_aca               \"id-aca\"\n#define NID_id_aca              266\n#define OBJ_id_aca              OBJ_id_pkix,10L\n\n#define SN_id_qcs               \"id-qcs\"\n#define NID_id_qcs              267\n#define OBJ_id_qcs              OBJ_id_pkix,11L\n\n#define SN_id_cct               \"id-cct\"\n#define NID_id_cct              268\n#define OBJ_id_cct              OBJ_id_pkix,12L\n\n#define SN_id_ppl               \"id-ppl\"\n#define NID_id_ppl              662\n#define OBJ_id_ppl              OBJ_id_pkix,21L\n\n#define SN_id_ad                \"id-ad\"\n#define NID_id_ad               176\n#define OBJ_id_ad               OBJ_id_pkix,48L\n\n#define SN_id_pkix1_explicit_88         \"id-pkix1-explicit-88\"\n#define NID_id_pkix1_explicit_88                269\n#define OBJ_id_pkix1_explicit_88                OBJ_id_pkix_mod,1L\n\n#define SN_id_pkix1_implicit_88         \"id-pkix1-implicit-88\"\n#define NID_id_pkix1_implicit_88                270\n#define OBJ_id_pkix1_implicit_88                OBJ_id_pkix_mod,2L\n\n#define SN_id_pkix1_explicit_93         \"id-pkix1-explicit-93\"\n#define NID_id_pkix1_explicit_93                271\n#define OBJ_id_pkix1_explicit_93                OBJ_id_pkix_mod,3L\n\n#define SN_id_pkix1_implicit_93         \"id-pkix1-implicit-93\"\n#define NID_id_pkix1_implicit_93                272\n#define OBJ_id_pkix1_implicit_93                OBJ_id_pkix_mod,4L\n\n#define SN_id_mod_crmf          \"id-mod-crmf\"\n#define NID_id_mod_crmf         273\n#define OBJ_id_mod_crmf         OBJ_id_pkix_mod,5L\n\n#define SN_id_mod_cmc           \"id-mod-cmc\"\n#define NID_id_mod_cmc          274\n#define OBJ_id_mod_cmc          OBJ_id_pkix_mod,6L\n\n#define SN_id_mod_kea_profile_88                \"id-mod-kea-profile-88\"\n#define NID_id_mod_kea_profile_88               275\n#define OBJ_id_mod_kea_profile_88               OBJ_id_pkix_mod,7L\n\n#define SN_id_mod_kea_profile_93                \"id-mod-kea-profile-93\"\n#define NID_id_mod_kea_profile_93               276\n#define OBJ_id_mod_kea_profile_93               OBJ_id_pkix_mod,8L\n\n#define SN_id_mod_cmp           \"id-mod-cmp\"\n#define NID_id_mod_cmp          277\n#define OBJ_id_mod_cmp          OBJ_id_pkix_mod,9L\n\n#define SN_id_mod_qualified_cert_88             \"id-mod-qualified-cert-88\"\n#define NID_id_mod_qualified_cert_88            278\n#define OBJ_id_mod_qualified_cert_88            OBJ_id_pkix_mod,10L\n\n#define SN_id_mod_qualified_cert_93             \"id-mod-qualified-cert-93\"\n#define NID_id_mod_qualified_cert_93            279\n#define OBJ_id_mod_qualified_cert_93            OBJ_id_pkix_mod,11L\n\n#define SN_id_mod_attribute_cert                \"id-mod-attribute-cert\"\n#define NID_id_mod_attribute_cert               280\n#define OBJ_id_mod_attribute_cert               OBJ_id_pkix_mod,12L\n\n#define SN_id_mod_timestamp_protocol            \"id-mod-timestamp-protocol\"\n#define NID_id_mod_timestamp_protocol           281\n#define OBJ_id_mod_timestamp_protocol           OBJ_id_pkix_mod,13L\n\n#define SN_id_mod_ocsp          \"id-mod-ocsp\"\n#define NID_id_mod_ocsp         282\n#define OBJ_id_mod_ocsp         OBJ_id_pkix_mod,14L\n\n#define SN_id_mod_dvcs          \"id-mod-dvcs\"\n#define NID_id_mod_dvcs         283\n#define OBJ_id_mod_dvcs         OBJ_id_pkix_mod,15L\n\n#define SN_id_mod_cmp2000               \"id-mod-cmp2000\"\n#define NID_id_mod_cmp2000              284\n#define OBJ_id_mod_cmp2000              OBJ_id_pkix_mod,16L\n\n#define SN_info_access          \"authorityInfoAccess\"\n#define LN_info_access          \"Authority Information Access\"\n#define NID_info_access         177\n#define OBJ_info_access         OBJ_id_pe,1L\n\n#define SN_biometricInfo                \"biometricInfo\"\n#define LN_biometricInfo                \"Biometric Info\"\n#define NID_biometricInfo               285\n#define OBJ_biometricInfo               OBJ_id_pe,2L\n\n#define SN_qcStatements         \"qcStatements\"\n#define NID_qcStatements                286\n#define OBJ_qcStatements                OBJ_id_pe,3L\n\n#define SN_ac_auditEntity               \"ac-auditEntity\"\n#define NID_ac_auditEntity              287\n#define OBJ_ac_auditEntity              OBJ_id_pe,4L\n\n#define SN_ac_targeting         \"ac-targeting\"\n#define NID_ac_targeting                288\n#define OBJ_ac_targeting                OBJ_id_pe,5L\n\n#define SN_aaControls           \"aaControls\"\n#define NID_aaControls          289\n#define OBJ_aaControls          OBJ_id_pe,6L\n\n#define SN_sbgp_ipAddrBlock             \"sbgp-ipAddrBlock\"\n#define NID_sbgp_ipAddrBlock            290\n#define OBJ_sbgp_ipAddrBlock            OBJ_id_pe,7L\n\n#define SN_sbgp_autonomousSysNum                \"sbgp-autonomousSysNum\"\n#define NID_sbgp_autonomousSysNum               291\n#define OBJ_sbgp_autonomousSysNum               OBJ_id_pe,8L\n\n#define SN_sbgp_routerIdentifier                \"sbgp-routerIdentifier\"\n#define NID_sbgp_routerIdentifier               292\n#define OBJ_sbgp_routerIdentifier               OBJ_id_pe,9L\n\n#define SN_ac_proxying          \"ac-proxying\"\n#define NID_ac_proxying         397\n#define OBJ_ac_proxying         OBJ_id_pe,10L\n\n#define SN_sinfo_access         \"subjectInfoAccess\"\n#define LN_sinfo_access         \"Subject Information Access\"\n#define NID_sinfo_access                398\n#define OBJ_sinfo_access                OBJ_id_pe,11L\n\n#define SN_proxyCertInfo                \"proxyCertInfo\"\n#define LN_proxyCertInfo                \"Proxy Certificate Information\"\n#define NID_proxyCertInfo               663\n#define OBJ_proxyCertInfo               OBJ_id_pe,14L\n\n#define SN_tlsfeature           \"tlsfeature\"\n#define LN_tlsfeature           \"TLS Feature\"\n#define NID_tlsfeature          1020\n#define OBJ_tlsfeature          OBJ_id_pe,24L\n\n#define SN_id_qt_cps            \"id-qt-cps\"\n#define LN_id_qt_cps            \"Policy Qualifier CPS\"\n#define NID_id_qt_cps           164\n#define OBJ_id_qt_cps           OBJ_id_qt,1L\n\n#define SN_id_qt_unotice                \"id-qt-unotice\"\n#define LN_id_qt_unotice                \"Policy Qualifier User Notice\"\n#define NID_id_qt_unotice               165\n#define OBJ_id_qt_unotice               OBJ_id_qt,2L\n\n#define SN_textNotice           \"textNotice\"\n#define NID_textNotice          293\n#define OBJ_textNotice          OBJ_id_qt,3L\n\n#define SN_server_auth          \"serverAuth\"\n#define LN_server_auth          \"TLS Web Server Authentication\"\n#define NID_server_auth         129\n#define OBJ_server_auth         OBJ_id_kp,1L\n\n#define SN_client_auth          \"clientAuth\"\n#define LN_client_auth          \"TLS Web Client Authentication\"\n#define NID_client_auth         130\n#define OBJ_client_auth         OBJ_id_kp,2L\n\n#define SN_code_sign            \"codeSigning\"\n#define LN_code_sign            \"Code Signing\"\n#define NID_code_sign           131\n#define OBJ_code_sign           OBJ_id_kp,3L\n\n#define SN_email_protect                \"emailProtection\"\n#define LN_email_protect                \"E-mail Protection\"\n#define NID_email_protect               132\n#define OBJ_email_protect               OBJ_id_kp,4L\n\n#define SN_ipsecEndSystem               \"ipsecEndSystem\"\n#define LN_ipsecEndSystem               \"IPSec End System\"\n#define NID_ipsecEndSystem              294\n#define OBJ_ipsecEndSystem              OBJ_id_kp,5L\n\n#define SN_ipsecTunnel          \"ipsecTunnel\"\n#define LN_ipsecTunnel          \"IPSec Tunnel\"\n#define NID_ipsecTunnel         295\n#define OBJ_ipsecTunnel         OBJ_id_kp,6L\n\n#define SN_ipsecUser            \"ipsecUser\"\n#define LN_ipsecUser            \"IPSec User\"\n#define NID_ipsecUser           296\n#define OBJ_ipsecUser           OBJ_id_kp,7L\n\n#define SN_time_stamp           \"timeStamping\"\n#define LN_time_stamp           \"Time Stamping\"\n#define NID_time_stamp          133\n#define OBJ_time_stamp          OBJ_id_kp,8L\n\n#define SN_OCSP_sign            \"OCSPSigning\"\n#define LN_OCSP_sign            \"OCSP Signing\"\n#define NID_OCSP_sign           180\n#define OBJ_OCSP_sign           OBJ_id_kp,9L\n\n#define SN_dvcs         \"DVCS\"\n#define LN_dvcs         \"dvcs\"\n#define NID_dvcs                297\n#define OBJ_dvcs                OBJ_id_kp,10L\n\n#define SN_ipsec_IKE            \"ipsecIKE\"\n#define LN_ipsec_IKE            \"ipsec Internet Key Exchange\"\n#define NID_ipsec_IKE           1022\n#define OBJ_ipsec_IKE           OBJ_id_kp,17L\n\n#define SN_capwapAC             \"capwapAC\"\n#define LN_capwapAC             \"Ctrl/provision WAP Access\"\n#define NID_capwapAC            1023\n#define OBJ_capwapAC            OBJ_id_kp,18L\n\n#define SN_capwapWTP            \"capwapWTP\"\n#define LN_capwapWTP            \"Ctrl/Provision WAP Termination\"\n#define NID_capwapWTP           1024\n#define OBJ_capwapWTP           OBJ_id_kp,19L\n\n#define SN_sshClient            \"secureShellClient\"\n#define LN_sshClient            \"SSH Client\"\n#define NID_sshClient           1025\n#define OBJ_sshClient           OBJ_id_kp,21L\n\n#define SN_sshServer            \"secureShellServer\"\n#define LN_sshServer            \"SSH Server\"\n#define NID_sshServer           1026\n#define OBJ_sshServer           OBJ_id_kp,22L\n\n#define SN_sendRouter           \"sendRouter\"\n#define LN_sendRouter           \"Send Router\"\n#define NID_sendRouter          1027\n#define OBJ_sendRouter          OBJ_id_kp,23L\n\n#define SN_sendProxiedRouter            \"sendProxiedRouter\"\n#define LN_sendProxiedRouter            \"Send Proxied Router\"\n#define NID_sendProxiedRouter           1028\n#define OBJ_sendProxiedRouter           OBJ_id_kp,24L\n\n#define SN_sendOwner            \"sendOwner\"\n#define LN_sendOwner            \"Send Owner\"\n#define NID_sendOwner           1029\n#define OBJ_sendOwner           OBJ_id_kp,25L\n\n#define SN_sendProxiedOwner             \"sendProxiedOwner\"\n#define LN_sendProxiedOwner             \"Send Proxied Owner\"\n#define NID_sendProxiedOwner            1030\n#define OBJ_sendProxiedOwner            OBJ_id_kp,26L\n\n#define SN_cmcCA                \"cmcCA\"\n#define LN_cmcCA                \"CMC Certificate Authority\"\n#define NID_cmcCA               1131\n#define OBJ_cmcCA               OBJ_id_kp,27L\n\n#define SN_cmcRA                \"cmcRA\"\n#define LN_cmcRA                \"CMC Registration Authority\"\n#define NID_cmcRA               1132\n#define OBJ_cmcRA               OBJ_id_kp,28L\n\n#define SN_id_it_caProtEncCert          \"id-it-caProtEncCert\"\n#define NID_id_it_caProtEncCert         298\n#define OBJ_id_it_caProtEncCert         OBJ_id_it,1L\n\n#define SN_id_it_signKeyPairTypes               \"id-it-signKeyPairTypes\"\n#define NID_id_it_signKeyPairTypes              299\n#define OBJ_id_it_signKeyPairTypes              OBJ_id_it,2L\n\n#define SN_id_it_encKeyPairTypes                \"id-it-encKeyPairTypes\"\n#define NID_id_it_encKeyPairTypes               300\n#define OBJ_id_it_encKeyPairTypes               OBJ_id_it,3L\n\n#define SN_id_it_preferredSymmAlg               \"id-it-preferredSymmAlg\"\n#define NID_id_it_preferredSymmAlg              301\n#define OBJ_id_it_preferredSymmAlg              OBJ_id_it,4L\n\n#define SN_id_it_caKeyUpdateInfo                \"id-it-caKeyUpdateInfo\"\n#define NID_id_it_caKeyUpdateInfo               302\n#define OBJ_id_it_caKeyUpdateInfo               OBJ_id_it,5L\n\n#define SN_id_it_currentCRL             \"id-it-currentCRL\"\n#define NID_id_it_currentCRL            303\n#define OBJ_id_it_currentCRL            OBJ_id_it,6L\n\n#define SN_id_it_unsupportedOIDs                \"id-it-unsupportedOIDs\"\n#define NID_id_it_unsupportedOIDs               304\n#define OBJ_id_it_unsupportedOIDs               OBJ_id_it,7L\n\n#define SN_id_it_subscriptionRequest            \"id-it-subscriptionRequest\"\n#define NID_id_it_subscriptionRequest           305\n#define OBJ_id_it_subscriptionRequest           OBJ_id_it,8L\n\n#define SN_id_it_subscriptionResponse           \"id-it-subscriptionResponse\"\n#define NID_id_it_subscriptionResponse          306\n#define OBJ_id_it_subscriptionResponse          OBJ_id_it,9L\n\n#define SN_id_it_keyPairParamReq                \"id-it-keyPairParamReq\"\n#define NID_id_it_keyPairParamReq               307\n#define OBJ_id_it_keyPairParamReq               OBJ_id_it,10L\n\n#define SN_id_it_keyPairParamRep                \"id-it-keyPairParamRep\"\n#define NID_id_it_keyPairParamRep               308\n#define OBJ_id_it_keyPairParamRep               OBJ_id_it,11L\n\n#define SN_id_it_revPassphrase          \"id-it-revPassphrase\"\n#define NID_id_it_revPassphrase         309\n#define OBJ_id_it_revPassphrase         OBJ_id_it,12L\n\n#define SN_id_it_implicitConfirm                \"id-it-implicitConfirm\"\n#define NID_id_it_implicitConfirm               310\n#define OBJ_id_it_implicitConfirm               OBJ_id_it,13L\n\n#define SN_id_it_confirmWaitTime                \"id-it-confirmWaitTime\"\n#define NID_id_it_confirmWaitTime               311\n#define OBJ_id_it_confirmWaitTime               OBJ_id_it,14L\n\n#define SN_id_it_origPKIMessage         \"id-it-origPKIMessage\"\n#define NID_id_it_origPKIMessage                312\n#define OBJ_id_it_origPKIMessage                OBJ_id_it,15L\n\n#define SN_id_it_suppLangTags           \"id-it-suppLangTags\"\n#define NID_id_it_suppLangTags          784\n#define OBJ_id_it_suppLangTags          OBJ_id_it,16L\n\n#define SN_id_regCtrl           \"id-regCtrl\"\n#define NID_id_regCtrl          313\n#define OBJ_id_regCtrl          OBJ_id_pkip,1L\n\n#define SN_id_regInfo           \"id-regInfo\"\n#define NID_id_regInfo          314\n#define OBJ_id_regInfo          OBJ_id_pkip,2L\n\n#define SN_id_regCtrl_regToken          \"id-regCtrl-regToken\"\n#define NID_id_regCtrl_regToken         315\n#define OBJ_id_regCtrl_regToken         OBJ_id_regCtrl,1L\n\n#define SN_id_regCtrl_authenticator             \"id-regCtrl-authenticator\"\n#define NID_id_regCtrl_authenticator            316\n#define OBJ_id_regCtrl_authenticator            OBJ_id_regCtrl,2L\n\n#define SN_id_regCtrl_pkiPublicationInfo                \"id-regCtrl-pkiPublicationInfo\"\n#define NID_id_regCtrl_pkiPublicationInfo               317\n#define OBJ_id_regCtrl_pkiPublicationInfo               OBJ_id_regCtrl,3L\n\n#define SN_id_regCtrl_pkiArchiveOptions         \"id-regCtrl-pkiArchiveOptions\"\n#define NID_id_regCtrl_pkiArchiveOptions                318\n#define OBJ_id_regCtrl_pkiArchiveOptions                OBJ_id_regCtrl,4L\n\n#define SN_id_regCtrl_oldCertID         \"id-regCtrl-oldCertID\"\n#define NID_id_regCtrl_oldCertID                319\n#define OBJ_id_regCtrl_oldCertID                OBJ_id_regCtrl,5L\n\n#define SN_id_regCtrl_protocolEncrKey           \"id-regCtrl-protocolEncrKey\"\n#define NID_id_regCtrl_protocolEncrKey          320\n#define OBJ_id_regCtrl_protocolEncrKey          OBJ_id_regCtrl,6L\n\n#define SN_id_regInfo_utf8Pairs         \"id-regInfo-utf8Pairs\"\n#define NID_id_regInfo_utf8Pairs                321\n#define OBJ_id_regInfo_utf8Pairs                OBJ_id_regInfo,1L\n\n#define SN_id_regInfo_certReq           \"id-regInfo-certReq\"\n#define NID_id_regInfo_certReq          322\n#define OBJ_id_regInfo_certReq          OBJ_id_regInfo,2L\n\n#define SN_id_alg_des40         \"id-alg-des40\"\n#define NID_id_alg_des40                323\n#define OBJ_id_alg_des40                OBJ_id_alg,1L\n\n#define SN_id_alg_noSignature           \"id-alg-noSignature\"\n#define NID_id_alg_noSignature          324\n#define OBJ_id_alg_noSignature          OBJ_id_alg,2L\n\n#define SN_id_alg_dh_sig_hmac_sha1              \"id-alg-dh-sig-hmac-sha1\"\n#define NID_id_alg_dh_sig_hmac_sha1             325\n#define OBJ_id_alg_dh_sig_hmac_sha1             OBJ_id_alg,3L\n\n#define SN_id_alg_dh_pop                \"id-alg-dh-pop\"\n#define NID_id_alg_dh_pop               326\n#define OBJ_id_alg_dh_pop               OBJ_id_alg,4L\n\n#define SN_id_cmc_statusInfo            \"id-cmc-statusInfo\"\n#define NID_id_cmc_statusInfo           327\n#define OBJ_id_cmc_statusInfo           OBJ_id_cmc,1L\n\n#define SN_id_cmc_identification                \"id-cmc-identification\"\n#define NID_id_cmc_identification               328\n#define OBJ_id_cmc_identification               OBJ_id_cmc,2L\n\n#define SN_id_cmc_identityProof         \"id-cmc-identityProof\"\n#define NID_id_cmc_identityProof                329\n#define OBJ_id_cmc_identityProof                OBJ_id_cmc,3L\n\n#define SN_id_cmc_dataReturn            \"id-cmc-dataReturn\"\n#define NID_id_cmc_dataReturn           330\n#define OBJ_id_cmc_dataReturn           OBJ_id_cmc,4L\n\n#define SN_id_cmc_transactionId         \"id-cmc-transactionId\"\n#define NID_id_cmc_transactionId                331\n#define OBJ_id_cmc_transactionId                OBJ_id_cmc,5L\n\n#define SN_id_cmc_senderNonce           \"id-cmc-senderNonce\"\n#define NID_id_cmc_senderNonce          332\n#define OBJ_id_cmc_senderNonce          OBJ_id_cmc,6L\n\n#define SN_id_cmc_recipientNonce                \"id-cmc-recipientNonce\"\n#define NID_id_cmc_recipientNonce               333\n#define OBJ_id_cmc_recipientNonce               OBJ_id_cmc,7L\n\n#define SN_id_cmc_addExtensions         \"id-cmc-addExtensions\"\n#define NID_id_cmc_addExtensions                334\n#define OBJ_id_cmc_addExtensions                OBJ_id_cmc,8L\n\n#define SN_id_cmc_encryptedPOP          \"id-cmc-encryptedPOP\"\n#define NID_id_cmc_encryptedPOP         335\n#define OBJ_id_cmc_encryptedPOP         OBJ_id_cmc,9L\n\n#define SN_id_cmc_decryptedPOP          \"id-cmc-decryptedPOP\"\n#define NID_id_cmc_decryptedPOP         336\n#define OBJ_id_cmc_decryptedPOP         OBJ_id_cmc,10L\n\n#define SN_id_cmc_lraPOPWitness         \"id-cmc-lraPOPWitness\"\n#define NID_id_cmc_lraPOPWitness                337\n#define OBJ_id_cmc_lraPOPWitness                OBJ_id_cmc,11L\n\n#define SN_id_cmc_getCert               \"id-cmc-getCert\"\n#define NID_id_cmc_getCert              338\n#define OBJ_id_cmc_getCert              OBJ_id_cmc,15L\n\n#define SN_id_cmc_getCRL                \"id-cmc-getCRL\"\n#define NID_id_cmc_getCRL               339\n#define OBJ_id_cmc_getCRL               OBJ_id_cmc,16L\n\n#define SN_id_cmc_revokeRequest         \"id-cmc-revokeRequest\"\n#define NID_id_cmc_revokeRequest                340\n#define OBJ_id_cmc_revokeRequest                OBJ_id_cmc,17L\n\n#define SN_id_cmc_regInfo               \"id-cmc-regInfo\"\n#define NID_id_cmc_regInfo              341\n#define OBJ_id_cmc_regInfo              OBJ_id_cmc,18L\n\n#define SN_id_cmc_responseInfo          \"id-cmc-responseInfo\"\n#define NID_id_cmc_responseInfo         342\n#define OBJ_id_cmc_responseInfo         OBJ_id_cmc,19L\n\n#define SN_id_cmc_queryPending          \"id-cmc-queryPending\"\n#define NID_id_cmc_queryPending         343\n#define OBJ_id_cmc_queryPending         OBJ_id_cmc,21L\n\n#define SN_id_cmc_popLinkRandom         \"id-cmc-popLinkRandom\"\n#define NID_id_cmc_popLinkRandom                344\n#define OBJ_id_cmc_popLinkRandom                OBJ_id_cmc,22L\n\n#define SN_id_cmc_popLinkWitness                \"id-cmc-popLinkWitness\"\n#define NID_id_cmc_popLinkWitness               345\n#define OBJ_id_cmc_popLinkWitness               OBJ_id_cmc,23L\n\n#define SN_id_cmc_confirmCertAcceptance         \"id-cmc-confirmCertAcceptance\"\n#define NID_id_cmc_confirmCertAcceptance                346\n#define OBJ_id_cmc_confirmCertAcceptance                OBJ_id_cmc,24L\n\n#define SN_id_on_personalData           \"id-on-personalData\"\n#define NID_id_on_personalData          347\n#define OBJ_id_on_personalData          OBJ_id_on,1L\n\n#define SN_id_on_permanentIdentifier            \"id-on-permanentIdentifier\"\n#define LN_id_on_permanentIdentifier            \"Permanent Identifier\"\n#define NID_id_on_permanentIdentifier           858\n#define OBJ_id_on_permanentIdentifier           OBJ_id_on,3L\n\n#define SN_id_pda_dateOfBirth           \"id-pda-dateOfBirth\"\n#define NID_id_pda_dateOfBirth          348\n#define OBJ_id_pda_dateOfBirth          OBJ_id_pda,1L\n\n#define SN_id_pda_placeOfBirth          \"id-pda-placeOfBirth\"\n#define NID_id_pda_placeOfBirth         349\n#define OBJ_id_pda_placeOfBirth         OBJ_id_pda,2L\n\n#define SN_id_pda_gender                \"id-pda-gender\"\n#define NID_id_pda_gender               351\n#define OBJ_id_pda_gender               OBJ_id_pda,3L\n\n#define SN_id_pda_countryOfCitizenship          \"id-pda-countryOfCitizenship\"\n#define NID_id_pda_countryOfCitizenship         352\n#define OBJ_id_pda_countryOfCitizenship         OBJ_id_pda,4L\n\n#define SN_id_pda_countryOfResidence            \"id-pda-countryOfResidence\"\n#define NID_id_pda_countryOfResidence           353\n#define OBJ_id_pda_countryOfResidence           OBJ_id_pda,5L\n\n#define SN_id_aca_authenticationInfo            \"id-aca-authenticationInfo\"\n#define NID_id_aca_authenticationInfo           354\n#define OBJ_id_aca_authenticationInfo           OBJ_id_aca,1L\n\n#define SN_id_aca_accessIdentity                \"id-aca-accessIdentity\"\n#define NID_id_aca_accessIdentity               355\n#define OBJ_id_aca_accessIdentity               OBJ_id_aca,2L\n\n#define SN_id_aca_chargingIdentity              \"id-aca-chargingIdentity\"\n#define NID_id_aca_chargingIdentity             356\n#define OBJ_id_aca_chargingIdentity             OBJ_id_aca,3L\n\n#define SN_id_aca_group         \"id-aca-group\"\n#define NID_id_aca_group                357\n#define OBJ_id_aca_group                OBJ_id_aca,4L\n\n#define SN_id_aca_role          \"id-aca-role\"\n#define NID_id_aca_role         358\n#define OBJ_id_aca_role         OBJ_id_aca,5L\n\n#define SN_id_aca_encAttrs              \"id-aca-encAttrs\"\n#define NID_id_aca_encAttrs             399\n#define OBJ_id_aca_encAttrs             OBJ_id_aca,6L\n\n#define SN_id_qcs_pkixQCSyntax_v1               \"id-qcs-pkixQCSyntax-v1\"\n#define NID_id_qcs_pkixQCSyntax_v1              359\n#define OBJ_id_qcs_pkixQCSyntax_v1              OBJ_id_qcs,1L\n\n#define SN_id_cct_crs           \"id-cct-crs\"\n#define NID_id_cct_crs          360\n#define OBJ_id_cct_crs          OBJ_id_cct,1L\n\n#define SN_id_cct_PKIData               \"id-cct-PKIData\"\n#define NID_id_cct_PKIData              361\n#define OBJ_id_cct_PKIData              OBJ_id_cct,2L\n\n#define SN_id_cct_PKIResponse           \"id-cct-PKIResponse\"\n#define NID_id_cct_PKIResponse          362\n#define OBJ_id_cct_PKIResponse          OBJ_id_cct,3L\n\n#define SN_id_ppl_anyLanguage           \"id-ppl-anyLanguage\"\n#define LN_id_ppl_anyLanguage           \"Any language\"\n#define NID_id_ppl_anyLanguage          664\n#define OBJ_id_ppl_anyLanguage          OBJ_id_ppl,0L\n\n#define SN_id_ppl_inheritAll            \"id-ppl-inheritAll\"\n#define LN_id_ppl_inheritAll            \"Inherit all\"\n#define NID_id_ppl_inheritAll           665\n#define OBJ_id_ppl_inheritAll           OBJ_id_ppl,1L\n\n#define SN_Independent          \"id-ppl-independent\"\n#define LN_Independent          \"Independent\"\n#define NID_Independent         667\n#define OBJ_Independent         OBJ_id_ppl,2L\n\n#define SN_ad_OCSP              \"OCSP\"\n#define LN_ad_OCSP              \"OCSP\"\n#define NID_ad_OCSP             178\n#define OBJ_ad_OCSP             OBJ_id_ad,1L\n\n#define SN_ad_ca_issuers                \"caIssuers\"\n#define LN_ad_ca_issuers                \"CA Issuers\"\n#define NID_ad_ca_issuers               179\n#define OBJ_ad_ca_issuers               OBJ_id_ad,2L\n\n#define SN_ad_timeStamping              \"ad_timestamping\"\n#define LN_ad_timeStamping              \"AD Time Stamping\"\n#define NID_ad_timeStamping             363\n#define OBJ_ad_timeStamping             OBJ_id_ad,3L\n\n#define SN_ad_dvcs              \"AD_DVCS\"\n#define LN_ad_dvcs              \"ad dvcs\"\n#define NID_ad_dvcs             364\n#define OBJ_ad_dvcs             OBJ_id_ad,4L\n\n#define SN_caRepository         \"caRepository\"\n#define LN_caRepository         \"CA Repository\"\n#define NID_caRepository                785\n#define OBJ_caRepository                OBJ_id_ad,5L\n\n#define OBJ_id_pkix_OCSP                OBJ_ad_OCSP\n\n#define SN_id_pkix_OCSP_basic           \"basicOCSPResponse\"\n#define LN_id_pkix_OCSP_basic           \"Basic OCSP Response\"\n#define NID_id_pkix_OCSP_basic          365\n#define OBJ_id_pkix_OCSP_basic          OBJ_id_pkix_OCSP,1L\n\n#define SN_id_pkix_OCSP_Nonce           \"Nonce\"\n#define LN_id_pkix_OCSP_Nonce           \"OCSP Nonce\"\n#define NID_id_pkix_OCSP_Nonce          366\n#define OBJ_id_pkix_OCSP_Nonce          OBJ_id_pkix_OCSP,2L\n\n#define SN_id_pkix_OCSP_CrlID           \"CrlID\"\n#define LN_id_pkix_OCSP_CrlID           \"OCSP CRL ID\"\n#define NID_id_pkix_OCSP_CrlID          367\n#define OBJ_id_pkix_OCSP_CrlID          OBJ_id_pkix_OCSP,3L\n\n#define SN_id_pkix_OCSP_acceptableResponses             \"acceptableResponses\"\n#define LN_id_pkix_OCSP_acceptableResponses             \"Acceptable OCSP Responses\"\n#define NID_id_pkix_OCSP_acceptableResponses            368\n#define OBJ_id_pkix_OCSP_acceptableResponses            OBJ_id_pkix_OCSP,4L\n\n#define SN_id_pkix_OCSP_noCheck         \"noCheck\"\n#define LN_id_pkix_OCSP_noCheck         \"OCSP No Check\"\n#define NID_id_pkix_OCSP_noCheck                369\n#define OBJ_id_pkix_OCSP_noCheck                OBJ_id_pkix_OCSP,5L\n\n#define SN_id_pkix_OCSP_archiveCutoff           \"archiveCutoff\"\n#define LN_id_pkix_OCSP_archiveCutoff           \"OCSP Archive Cutoff\"\n#define NID_id_pkix_OCSP_archiveCutoff          370\n#define OBJ_id_pkix_OCSP_archiveCutoff          OBJ_id_pkix_OCSP,6L\n\n#define SN_id_pkix_OCSP_serviceLocator          \"serviceLocator\"\n#define LN_id_pkix_OCSP_serviceLocator          \"OCSP Service Locator\"\n#define NID_id_pkix_OCSP_serviceLocator         371\n#define OBJ_id_pkix_OCSP_serviceLocator         OBJ_id_pkix_OCSP,7L\n\n#define SN_id_pkix_OCSP_extendedStatus          \"extendedStatus\"\n#define LN_id_pkix_OCSP_extendedStatus          \"Extended OCSP Status\"\n#define NID_id_pkix_OCSP_extendedStatus         372\n#define OBJ_id_pkix_OCSP_extendedStatus         OBJ_id_pkix_OCSP,8L\n\n#define SN_id_pkix_OCSP_valid           \"valid\"\n#define NID_id_pkix_OCSP_valid          373\n#define OBJ_id_pkix_OCSP_valid          OBJ_id_pkix_OCSP,9L\n\n#define SN_id_pkix_OCSP_path            \"path\"\n#define NID_id_pkix_OCSP_path           374\n#define OBJ_id_pkix_OCSP_path           OBJ_id_pkix_OCSP,10L\n\n#define SN_id_pkix_OCSP_trustRoot               \"trustRoot\"\n#define LN_id_pkix_OCSP_trustRoot               \"Trust Root\"\n#define NID_id_pkix_OCSP_trustRoot              375\n#define OBJ_id_pkix_OCSP_trustRoot              OBJ_id_pkix_OCSP,11L\n\n#define SN_algorithm            \"algorithm\"\n#define LN_algorithm            \"algorithm\"\n#define NID_algorithm           376\n#define OBJ_algorithm           1L,3L,14L,3L,2L\n\n#define SN_md5WithRSA           \"RSA-NP-MD5\"\n#define LN_md5WithRSA           \"md5WithRSA\"\n#define NID_md5WithRSA          104\n#define OBJ_md5WithRSA          OBJ_algorithm,3L\n\n#define SN_des_ecb              \"DES-ECB\"\n#define LN_des_ecb              \"des-ecb\"\n#define NID_des_ecb             29\n#define OBJ_des_ecb             OBJ_algorithm,6L\n\n#define SN_des_cbc              \"DES-CBC\"\n#define LN_des_cbc              \"des-cbc\"\n#define NID_des_cbc             31\n#define OBJ_des_cbc             OBJ_algorithm,7L\n\n#define SN_des_ofb64            \"DES-OFB\"\n#define LN_des_ofb64            \"des-ofb\"\n#define NID_des_ofb64           45\n#define OBJ_des_ofb64           OBJ_algorithm,8L\n\n#define SN_des_cfb64            \"DES-CFB\"\n#define LN_des_cfb64            \"des-cfb\"\n#define NID_des_cfb64           30\n#define OBJ_des_cfb64           OBJ_algorithm,9L\n\n#define SN_rsaSignature         \"rsaSignature\"\n#define NID_rsaSignature                377\n#define OBJ_rsaSignature                OBJ_algorithm,11L\n\n#define SN_dsa_2                \"DSA-old\"\n#define LN_dsa_2                \"dsaEncryption-old\"\n#define NID_dsa_2               67\n#define OBJ_dsa_2               OBJ_algorithm,12L\n\n#define SN_dsaWithSHA           \"DSA-SHA\"\n#define LN_dsaWithSHA           \"dsaWithSHA\"\n#define NID_dsaWithSHA          66\n#define OBJ_dsaWithSHA          OBJ_algorithm,13L\n\n#define SN_shaWithRSAEncryption         \"RSA-SHA\"\n#define LN_shaWithRSAEncryption         \"shaWithRSAEncryption\"\n#define NID_shaWithRSAEncryption                42\n#define OBJ_shaWithRSAEncryption                OBJ_algorithm,15L\n\n#define SN_des_ede_ecb          \"DES-EDE\"\n#define LN_des_ede_ecb          \"des-ede\"\n#define NID_des_ede_ecb         32\n#define OBJ_des_ede_ecb         OBJ_algorithm,17L\n\n#define SN_des_ede3_ecb         \"DES-EDE3\"\n#define LN_des_ede3_ecb         \"des-ede3\"\n#define NID_des_ede3_ecb                33\n\n#define SN_des_ede_cbc          \"DES-EDE-CBC\"\n#define LN_des_ede_cbc          \"des-ede-cbc\"\n#define NID_des_ede_cbc         43\n\n#define SN_des_ede_cfb64                \"DES-EDE-CFB\"\n#define LN_des_ede_cfb64                \"des-ede-cfb\"\n#define NID_des_ede_cfb64               60\n\n#define SN_des_ede3_cfb64               \"DES-EDE3-CFB\"\n#define LN_des_ede3_cfb64               \"des-ede3-cfb\"\n#define NID_des_ede3_cfb64              61\n\n#define SN_des_ede_ofb64                \"DES-EDE-OFB\"\n#define LN_des_ede_ofb64                \"des-ede-ofb\"\n#define NID_des_ede_ofb64               62\n\n#define SN_des_ede3_ofb64               \"DES-EDE3-OFB\"\n#define LN_des_ede3_ofb64               \"des-ede3-ofb\"\n#define NID_des_ede3_ofb64              63\n\n#define SN_desx_cbc             \"DESX-CBC\"\n#define LN_desx_cbc             \"desx-cbc\"\n#define NID_desx_cbc            80\n\n#define SN_sha          \"SHA\"\n#define LN_sha          \"sha\"\n#define NID_sha         41\n#define OBJ_sha         OBJ_algorithm,18L\n\n#define SN_sha1         \"SHA1\"\n#define LN_sha1         \"sha1\"\n#define NID_sha1                64\n#define OBJ_sha1                OBJ_algorithm,26L\n\n#define SN_dsaWithSHA1_2                \"DSA-SHA1-old\"\n#define LN_dsaWithSHA1_2                \"dsaWithSHA1-old\"\n#define NID_dsaWithSHA1_2               70\n#define OBJ_dsaWithSHA1_2               OBJ_algorithm,27L\n\n#define SN_sha1WithRSA          \"RSA-SHA1-2\"\n#define LN_sha1WithRSA          \"sha1WithRSA\"\n#define NID_sha1WithRSA         115\n#define OBJ_sha1WithRSA         OBJ_algorithm,29L\n\n#define SN_ripemd160            \"RIPEMD160\"\n#define LN_ripemd160            \"ripemd160\"\n#define NID_ripemd160           117\n#define OBJ_ripemd160           1L,3L,36L,3L,2L,1L\n\n#define SN_ripemd160WithRSA             \"RSA-RIPEMD160\"\n#define LN_ripemd160WithRSA             \"ripemd160WithRSA\"\n#define NID_ripemd160WithRSA            119\n#define OBJ_ripemd160WithRSA            1L,3L,36L,3L,3L,1L,2L\n\n#define SN_blake2b512           \"BLAKE2b512\"\n#define LN_blake2b512           \"blake2b512\"\n#define NID_blake2b512          1056\n#define OBJ_blake2b512          1L,3L,6L,1L,4L,1L,1722L,12L,2L,1L,16L\n\n#define SN_blake2s256           \"BLAKE2s256\"\n#define LN_blake2s256           \"blake2s256\"\n#define NID_blake2s256          1057\n#define OBJ_blake2s256          1L,3L,6L,1L,4L,1L,1722L,12L,2L,2L,8L\n\n#define SN_sxnet                \"SXNetID\"\n#define LN_sxnet                \"Strong Extranet ID\"\n#define NID_sxnet               143\n#define OBJ_sxnet               1L,3L,101L,1L,4L,1L\n\n#define SN_X500         \"X500\"\n#define LN_X500         \"directory services (X.500)\"\n#define NID_X500                11\n#define OBJ_X500                2L,5L\n\n#define SN_X509         \"X509\"\n#define NID_X509                12\n#define OBJ_X509                OBJ_X500,4L\n\n#define SN_commonName           \"CN\"\n#define LN_commonName           \"commonName\"\n#define NID_commonName          13\n#define OBJ_commonName          OBJ_X509,3L\n\n#define SN_surname              \"SN\"\n#define LN_surname              \"surname\"\n#define NID_surname             100\n#define OBJ_surname             OBJ_X509,4L\n\n#define LN_serialNumber         \"serialNumber\"\n#define NID_serialNumber                105\n#define OBJ_serialNumber                OBJ_X509,5L\n\n#define SN_countryName          \"C\"\n#define LN_countryName          \"countryName\"\n#define NID_countryName         14\n#define OBJ_countryName         OBJ_X509,6L\n\n#define SN_localityName         \"L\"\n#define LN_localityName         \"localityName\"\n#define NID_localityName                15\n#define OBJ_localityName                OBJ_X509,7L\n\n#define SN_stateOrProvinceName          \"ST\"\n#define LN_stateOrProvinceName          \"stateOrProvinceName\"\n#define NID_stateOrProvinceName         16\n#define OBJ_stateOrProvinceName         OBJ_X509,8L\n\n#define SN_streetAddress                \"street\"\n#define LN_streetAddress                \"streetAddress\"\n#define NID_streetAddress               660\n#define OBJ_streetAddress               OBJ_X509,9L\n\n#define SN_organizationName             \"O\"\n#define LN_organizationName             \"organizationName\"\n#define NID_organizationName            17\n#define OBJ_organizationName            OBJ_X509,10L\n\n#define SN_organizationalUnitName               \"OU\"\n#define LN_organizationalUnitName               \"organizationalUnitName\"\n#define NID_organizationalUnitName              18\n#define OBJ_organizationalUnitName              OBJ_X509,11L\n\n#define SN_title                \"title\"\n#define LN_title                \"title\"\n#define NID_title               106\n#define OBJ_title               OBJ_X509,12L\n\n#define LN_description          \"description\"\n#define NID_description         107\n#define OBJ_description         OBJ_X509,13L\n\n#define LN_searchGuide          \"searchGuide\"\n#define NID_searchGuide         859\n#define OBJ_searchGuide         OBJ_X509,14L\n\n#define LN_businessCategory             \"businessCategory\"\n#define NID_businessCategory            860\n#define OBJ_businessCategory            OBJ_X509,15L\n\n#define LN_postalAddress                \"postalAddress\"\n#define NID_postalAddress               861\n#define OBJ_postalAddress               OBJ_X509,16L\n\n#define LN_postalCode           \"postalCode\"\n#define NID_postalCode          661\n#define OBJ_postalCode          OBJ_X509,17L\n\n#define LN_postOfficeBox                \"postOfficeBox\"\n#define NID_postOfficeBox               862\n#define OBJ_postOfficeBox               OBJ_X509,18L\n\n#define LN_physicalDeliveryOfficeName           \"physicalDeliveryOfficeName\"\n#define NID_physicalDeliveryOfficeName          863\n#define OBJ_physicalDeliveryOfficeName          OBJ_X509,19L\n\n#define LN_telephoneNumber              \"telephoneNumber\"\n#define NID_telephoneNumber             864\n#define OBJ_telephoneNumber             OBJ_X509,20L\n\n#define LN_telexNumber          \"telexNumber\"\n#define NID_telexNumber         865\n#define OBJ_telexNumber         OBJ_X509,21L\n\n#define LN_teletexTerminalIdentifier            \"teletexTerminalIdentifier\"\n#define NID_teletexTerminalIdentifier           866\n#define OBJ_teletexTerminalIdentifier           OBJ_X509,22L\n\n#define LN_facsimileTelephoneNumber             \"facsimileTelephoneNumber\"\n#define NID_facsimileTelephoneNumber            867\n#define OBJ_facsimileTelephoneNumber            OBJ_X509,23L\n\n#define LN_x121Address          \"x121Address\"\n#define NID_x121Address         868\n#define OBJ_x121Address         OBJ_X509,24L\n\n#define LN_internationaliSDNNumber              \"internationaliSDNNumber\"\n#define NID_internationaliSDNNumber             869\n#define OBJ_internationaliSDNNumber             OBJ_X509,25L\n\n#define LN_registeredAddress            \"registeredAddress\"\n#define NID_registeredAddress           870\n#define OBJ_registeredAddress           OBJ_X509,26L\n\n#define LN_destinationIndicator         \"destinationIndicator\"\n#define NID_destinationIndicator                871\n#define OBJ_destinationIndicator                OBJ_X509,27L\n\n#define LN_preferredDeliveryMethod              \"preferredDeliveryMethod\"\n#define NID_preferredDeliveryMethod             872\n#define OBJ_preferredDeliveryMethod             OBJ_X509,28L\n\n#define LN_presentationAddress          \"presentationAddress\"\n#define NID_presentationAddress         873\n#define OBJ_presentationAddress         OBJ_X509,29L\n\n#define LN_supportedApplicationContext          \"supportedApplicationContext\"\n#define NID_supportedApplicationContext         874\n#define OBJ_supportedApplicationContext         OBJ_X509,30L\n\n#define SN_member               \"member\"\n#define NID_member              875\n#define OBJ_member              OBJ_X509,31L\n\n#define SN_owner                \"owner\"\n#define NID_owner               876\n#define OBJ_owner               OBJ_X509,32L\n\n#define LN_roleOccupant         \"roleOccupant\"\n#define NID_roleOccupant                877\n#define OBJ_roleOccupant                OBJ_X509,33L\n\n#define SN_seeAlso              \"seeAlso\"\n#define NID_seeAlso             878\n#define OBJ_seeAlso             OBJ_X509,34L\n\n#define LN_userPassword         \"userPassword\"\n#define NID_userPassword                879\n#define OBJ_userPassword                OBJ_X509,35L\n\n#define LN_userCertificate              \"userCertificate\"\n#define NID_userCertificate             880\n#define OBJ_userCertificate             OBJ_X509,36L\n\n#define LN_cACertificate                \"cACertificate\"\n#define NID_cACertificate               881\n#define OBJ_cACertificate               OBJ_X509,37L\n\n#define LN_authorityRevocationList              \"authorityRevocationList\"\n#define NID_authorityRevocationList             882\n#define OBJ_authorityRevocationList             OBJ_X509,38L\n\n#define LN_certificateRevocationList            \"certificateRevocationList\"\n#define NID_certificateRevocationList           883\n#define OBJ_certificateRevocationList           OBJ_X509,39L\n\n#define LN_crossCertificatePair         \"crossCertificatePair\"\n#define NID_crossCertificatePair                884\n#define OBJ_crossCertificatePair                OBJ_X509,40L\n\n#define SN_name         \"name\"\n#define LN_name         \"name\"\n#define NID_name                173\n#define OBJ_name                OBJ_X509,41L\n\n#define SN_givenName            \"GN\"\n#define LN_givenName            \"givenName\"\n#define NID_givenName           99\n#define OBJ_givenName           OBJ_X509,42L\n\n#define SN_initials             \"initials\"\n#define LN_initials             \"initials\"\n#define NID_initials            101\n#define OBJ_initials            OBJ_X509,43L\n\n#define LN_generationQualifier          \"generationQualifier\"\n#define NID_generationQualifier         509\n#define OBJ_generationQualifier         OBJ_X509,44L\n\n#define LN_x500UniqueIdentifier         \"x500UniqueIdentifier\"\n#define NID_x500UniqueIdentifier                503\n#define OBJ_x500UniqueIdentifier                OBJ_X509,45L\n\n#define SN_dnQualifier          \"dnQualifier\"\n#define LN_dnQualifier          \"dnQualifier\"\n#define NID_dnQualifier         174\n#define OBJ_dnQualifier         OBJ_X509,46L\n\n#define LN_enhancedSearchGuide          \"enhancedSearchGuide\"\n#define NID_enhancedSearchGuide         885\n#define OBJ_enhancedSearchGuide         OBJ_X509,47L\n\n#define LN_protocolInformation          \"protocolInformation\"\n#define NID_protocolInformation         886\n#define OBJ_protocolInformation         OBJ_X509,48L\n\n#define LN_distinguishedName            \"distinguishedName\"\n#define NID_distinguishedName           887\n#define OBJ_distinguishedName           OBJ_X509,49L\n\n#define LN_uniqueMember         \"uniqueMember\"\n#define NID_uniqueMember                888\n#define OBJ_uniqueMember                OBJ_X509,50L\n\n#define LN_houseIdentifier              \"houseIdentifier\"\n#define NID_houseIdentifier             889\n#define OBJ_houseIdentifier             OBJ_X509,51L\n\n#define LN_supportedAlgorithms          \"supportedAlgorithms\"\n#define NID_supportedAlgorithms         890\n#define OBJ_supportedAlgorithms         OBJ_X509,52L\n\n#define LN_deltaRevocationList          \"deltaRevocationList\"\n#define NID_deltaRevocationList         891\n#define OBJ_deltaRevocationList         OBJ_X509,53L\n\n#define SN_dmdName              \"dmdName\"\n#define NID_dmdName             892\n#define OBJ_dmdName             OBJ_X509,54L\n\n#define LN_pseudonym            \"pseudonym\"\n#define NID_pseudonym           510\n#define OBJ_pseudonym           OBJ_X509,65L\n\n#define SN_role         \"role\"\n#define LN_role         \"role\"\n#define NID_role                400\n#define OBJ_role                OBJ_X509,72L\n\n#define LN_organizationIdentifier               \"organizationIdentifier\"\n#define NID_organizationIdentifier              1089\n#define OBJ_organizationIdentifier              OBJ_X509,97L\n\n#define SN_countryCode3c                \"c3\"\n#define LN_countryCode3c                \"countryCode3c\"\n#define NID_countryCode3c               1090\n#define OBJ_countryCode3c               OBJ_X509,98L\n\n#define SN_countryCode3n                \"n3\"\n#define LN_countryCode3n                \"countryCode3n\"\n#define NID_countryCode3n               1091\n#define OBJ_countryCode3n               OBJ_X509,99L\n\n#define LN_dnsName              \"dnsName\"\n#define NID_dnsName             1092\n#define OBJ_dnsName             OBJ_X509,100L\n\n#define SN_X500algorithms               \"X500algorithms\"\n#define LN_X500algorithms               \"directory services - algorithms\"\n#define NID_X500algorithms              378\n#define OBJ_X500algorithms              OBJ_X500,8L\n\n#define SN_rsa          \"RSA\"\n#define LN_rsa          \"rsa\"\n#define NID_rsa         19\n#define OBJ_rsa         OBJ_X500algorithms,1L,1L\n\n#define SN_mdc2WithRSA          \"RSA-MDC2\"\n#define LN_mdc2WithRSA          \"mdc2WithRSA\"\n#define NID_mdc2WithRSA         96\n#define OBJ_mdc2WithRSA         OBJ_X500algorithms,3L,100L\n\n#define SN_mdc2         \"MDC2\"\n#define LN_mdc2         \"mdc2\"\n#define NID_mdc2                95\n#define OBJ_mdc2                OBJ_X500algorithms,3L,101L\n\n#define SN_id_ce                \"id-ce\"\n#define NID_id_ce               81\n#define OBJ_id_ce               OBJ_X500,29L\n\n#define SN_subject_directory_attributes         \"subjectDirectoryAttributes\"\n#define LN_subject_directory_attributes         \"X509v3 Subject Directory Attributes\"\n#define NID_subject_directory_attributes                769\n#define OBJ_subject_directory_attributes                OBJ_id_ce,9L\n\n#define SN_subject_key_identifier               \"subjectKeyIdentifier\"\n#define LN_subject_key_identifier               \"X509v3 Subject Key Identifier\"\n#define NID_subject_key_identifier              82\n#define OBJ_subject_key_identifier              OBJ_id_ce,14L\n\n#define SN_key_usage            \"keyUsage\"\n#define LN_key_usage            \"X509v3 Key Usage\"\n#define NID_key_usage           83\n#define OBJ_key_usage           OBJ_id_ce,15L\n\n#define SN_private_key_usage_period             \"privateKeyUsagePeriod\"\n#define LN_private_key_usage_period             \"X509v3 Private Key Usage Period\"\n#define NID_private_key_usage_period            84\n#define OBJ_private_key_usage_period            OBJ_id_ce,16L\n\n#define SN_subject_alt_name             \"subjectAltName\"\n#define LN_subject_alt_name             \"X509v3 Subject Alternative Name\"\n#define NID_subject_alt_name            85\n#define OBJ_subject_alt_name            OBJ_id_ce,17L\n\n#define SN_issuer_alt_name              \"issuerAltName\"\n#define LN_issuer_alt_name              \"X509v3 Issuer Alternative Name\"\n#define NID_issuer_alt_name             86\n#define OBJ_issuer_alt_name             OBJ_id_ce,18L\n\n#define SN_basic_constraints            \"basicConstraints\"\n#define LN_basic_constraints            \"X509v3 Basic Constraints\"\n#define NID_basic_constraints           87\n#define OBJ_basic_constraints           OBJ_id_ce,19L\n\n#define SN_crl_number           \"crlNumber\"\n#define LN_crl_number           \"X509v3 CRL Number\"\n#define NID_crl_number          88\n#define OBJ_crl_number          OBJ_id_ce,20L\n\n#define SN_crl_reason           \"CRLReason\"\n#define LN_crl_reason           \"X509v3 CRL Reason Code\"\n#define NID_crl_reason          141\n#define OBJ_crl_reason          OBJ_id_ce,21L\n\n#define SN_invalidity_date              \"invalidityDate\"\n#define LN_invalidity_date              \"Invalidity Date\"\n#define NID_invalidity_date             142\n#define OBJ_invalidity_date             OBJ_id_ce,24L\n\n#define SN_delta_crl            \"deltaCRL\"\n#define LN_delta_crl            \"X509v3 Delta CRL Indicator\"\n#define NID_delta_crl           140\n#define OBJ_delta_crl           OBJ_id_ce,27L\n\n#define SN_issuing_distribution_point           \"issuingDistributionPoint\"\n#define LN_issuing_distribution_point           \"X509v3 Issuing Distribution Point\"\n#define NID_issuing_distribution_point          770\n#define OBJ_issuing_distribution_point          OBJ_id_ce,28L\n\n#define SN_certificate_issuer           \"certificateIssuer\"\n#define LN_certificate_issuer           \"X509v3 Certificate Issuer\"\n#define NID_certificate_issuer          771\n#define OBJ_certificate_issuer          OBJ_id_ce,29L\n\n#define SN_name_constraints             \"nameConstraints\"\n#define LN_name_constraints             \"X509v3 Name Constraints\"\n#define NID_name_constraints            666\n#define OBJ_name_constraints            OBJ_id_ce,30L\n\n#define SN_crl_distribution_points              \"crlDistributionPoints\"\n#define LN_crl_distribution_points              \"X509v3 CRL Distribution Points\"\n#define NID_crl_distribution_points             103\n#define OBJ_crl_distribution_points             OBJ_id_ce,31L\n\n#define SN_certificate_policies         \"certificatePolicies\"\n#define LN_certificate_policies         \"X509v3 Certificate Policies\"\n#define NID_certificate_policies                89\n#define OBJ_certificate_policies                OBJ_id_ce,32L\n\n#define SN_any_policy           \"anyPolicy\"\n#define LN_any_policy           \"X509v3 Any Policy\"\n#define NID_any_policy          746\n#define OBJ_any_policy          OBJ_certificate_policies,0L\n\n#define SN_policy_mappings              \"policyMappings\"\n#define LN_policy_mappings              \"X509v3 Policy Mappings\"\n#define NID_policy_mappings             747\n#define OBJ_policy_mappings             OBJ_id_ce,33L\n\n#define SN_authority_key_identifier             \"authorityKeyIdentifier\"\n#define LN_authority_key_identifier             \"X509v3 Authority Key Identifier\"\n#define NID_authority_key_identifier            90\n#define OBJ_authority_key_identifier            OBJ_id_ce,35L\n\n#define SN_policy_constraints           \"policyConstraints\"\n#define LN_policy_constraints           \"X509v3 Policy Constraints\"\n#define NID_policy_constraints          401\n#define OBJ_policy_constraints          OBJ_id_ce,36L\n\n#define SN_ext_key_usage                \"extendedKeyUsage\"\n#define LN_ext_key_usage                \"X509v3 Extended Key Usage\"\n#define NID_ext_key_usage               126\n#define OBJ_ext_key_usage               OBJ_id_ce,37L\n\n#define SN_freshest_crl         \"freshestCRL\"\n#define LN_freshest_crl         \"X509v3 Freshest CRL\"\n#define NID_freshest_crl                857\n#define OBJ_freshest_crl                OBJ_id_ce,46L\n\n#define SN_inhibit_any_policy           \"inhibitAnyPolicy\"\n#define LN_inhibit_any_policy           \"X509v3 Inhibit Any Policy\"\n#define NID_inhibit_any_policy          748\n#define OBJ_inhibit_any_policy          OBJ_id_ce,54L\n\n#define SN_target_information           \"targetInformation\"\n#define LN_target_information           \"X509v3 AC Targeting\"\n#define NID_target_information          402\n#define OBJ_target_information          OBJ_id_ce,55L\n\n#define SN_no_rev_avail         \"noRevAvail\"\n#define LN_no_rev_avail         \"X509v3 No Revocation Available\"\n#define NID_no_rev_avail                403\n#define OBJ_no_rev_avail                OBJ_id_ce,56L\n\n#define SN_anyExtendedKeyUsage          \"anyExtendedKeyUsage\"\n#define LN_anyExtendedKeyUsage          \"Any Extended Key Usage\"\n#define NID_anyExtendedKeyUsage         910\n#define OBJ_anyExtendedKeyUsage         OBJ_ext_key_usage,0L\n\n#define SN_netscape             \"Netscape\"\n#define LN_netscape             \"Netscape Communications Corp.\"\n#define NID_netscape            57\n#define OBJ_netscape            2L,16L,840L,1L,113730L\n\n#define SN_netscape_cert_extension              \"nsCertExt\"\n#define LN_netscape_cert_extension              \"Netscape Certificate Extension\"\n#define NID_netscape_cert_extension             58\n#define OBJ_netscape_cert_extension             OBJ_netscape,1L\n\n#define SN_netscape_data_type           \"nsDataType\"\n#define LN_netscape_data_type           \"Netscape Data Type\"\n#define NID_netscape_data_type          59\n#define OBJ_netscape_data_type          OBJ_netscape,2L\n\n#define SN_netscape_cert_type           \"nsCertType\"\n#define LN_netscape_cert_type           \"Netscape Cert Type\"\n#define NID_netscape_cert_type          71\n#define OBJ_netscape_cert_type          OBJ_netscape_cert_extension,1L\n\n#define SN_netscape_base_url            \"nsBaseUrl\"\n#define LN_netscape_base_url            \"Netscape Base Url\"\n#define NID_netscape_base_url           72\n#define OBJ_netscape_base_url           OBJ_netscape_cert_extension,2L\n\n#define SN_netscape_revocation_url              \"nsRevocationUrl\"\n#define LN_netscape_revocation_url              \"Netscape Revocation Url\"\n#define NID_netscape_revocation_url             73\n#define OBJ_netscape_revocation_url             OBJ_netscape_cert_extension,3L\n\n#define SN_netscape_ca_revocation_url           \"nsCaRevocationUrl\"\n#define LN_netscape_ca_revocation_url           \"Netscape CA Revocation Url\"\n#define NID_netscape_ca_revocation_url          74\n#define OBJ_netscape_ca_revocation_url          OBJ_netscape_cert_extension,4L\n\n#define SN_netscape_renewal_url         \"nsRenewalUrl\"\n#define LN_netscape_renewal_url         \"Netscape Renewal Url\"\n#define NID_netscape_renewal_url                75\n#define OBJ_netscape_renewal_url                OBJ_netscape_cert_extension,7L\n\n#define SN_netscape_ca_policy_url               \"nsCaPolicyUrl\"\n#define LN_netscape_ca_policy_url               \"Netscape CA Policy Url\"\n#define NID_netscape_ca_policy_url              76\n#define OBJ_netscape_ca_policy_url              OBJ_netscape_cert_extension,8L\n\n#define SN_netscape_ssl_server_name             \"nsSslServerName\"\n#define LN_netscape_ssl_server_name             \"Netscape SSL Server Name\"\n#define NID_netscape_ssl_server_name            77\n#define OBJ_netscape_ssl_server_name            OBJ_netscape_cert_extension,12L\n\n#define SN_netscape_comment             \"nsComment\"\n#define LN_netscape_comment             \"Netscape Comment\"\n#define NID_netscape_comment            78\n#define OBJ_netscape_comment            OBJ_netscape_cert_extension,13L\n\n#define SN_netscape_cert_sequence               \"nsCertSequence\"\n#define LN_netscape_cert_sequence               \"Netscape Certificate Sequence\"\n#define NID_netscape_cert_sequence              79\n#define OBJ_netscape_cert_sequence              OBJ_netscape_data_type,5L\n\n#define SN_ns_sgc               \"nsSGC\"\n#define LN_ns_sgc               \"Netscape Server Gated Crypto\"\n#define NID_ns_sgc              139\n#define OBJ_ns_sgc              OBJ_netscape,4L,1L\n\n#define SN_org          \"ORG\"\n#define LN_org          \"org\"\n#define NID_org         379\n#define OBJ_org         OBJ_iso,3L\n\n#define SN_dod          \"DOD\"\n#define LN_dod          \"dod\"\n#define NID_dod         380\n#define OBJ_dod         OBJ_org,6L\n\n#define SN_iana         \"IANA\"\n#define LN_iana         \"iana\"\n#define NID_iana                381\n#define OBJ_iana                OBJ_dod,1L\n\n#define OBJ_internet            OBJ_iana\n\n#define SN_Directory            \"directory\"\n#define LN_Directory            \"Directory\"\n#define NID_Directory           382\n#define OBJ_Directory           OBJ_internet,1L\n\n#define SN_Management           \"mgmt\"\n#define LN_Management           \"Management\"\n#define NID_Management          383\n#define OBJ_Management          OBJ_internet,2L\n\n#define SN_Experimental         \"experimental\"\n#define LN_Experimental         \"Experimental\"\n#define NID_Experimental                384\n#define OBJ_Experimental                OBJ_internet,3L\n\n#define SN_Private              \"private\"\n#define LN_Private              \"Private\"\n#define NID_Private             385\n#define OBJ_Private             OBJ_internet,4L\n\n#define SN_Security             \"security\"\n#define LN_Security             \"Security\"\n#define NID_Security            386\n#define OBJ_Security            OBJ_internet,5L\n\n#define SN_SNMPv2               \"snmpv2\"\n#define LN_SNMPv2               \"SNMPv2\"\n#define NID_SNMPv2              387\n#define OBJ_SNMPv2              OBJ_internet,6L\n\n#define LN_Mail         \"Mail\"\n#define NID_Mail                388\n#define OBJ_Mail                OBJ_internet,7L\n\n#define SN_Enterprises          \"enterprises\"\n#define LN_Enterprises          \"Enterprises\"\n#define NID_Enterprises         389\n#define OBJ_Enterprises         OBJ_Private,1L\n\n#define SN_dcObject             \"dcobject\"\n#define LN_dcObject             \"dcObject\"\n#define NID_dcObject            390\n#define OBJ_dcObject            OBJ_Enterprises,1466L,344L\n\n#define SN_mime_mhs             \"mime-mhs\"\n#define LN_mime_mhs             \"MIME MHS\"\n#define NID_mime_mhs            504\n#define OBJ_mime_mhs            OBJ_Mail,1L\n\n#define SN_mime_mhs_headings            \"mime-mhs-headings\"\n#define LN_mime_mhs_headings            \"mime-mhs-headings\"\n#define NID_mime_mhs_headings           505\n#define OBJ_mime_mhs_headings           OBJ_mime_mhs,1L\n\n#define SN_mime_mhs_bodies              \"mime-mhs-bodies\"\n#define LN_mime_mhs_bodies              \"mime-mhs-bodies\"\n#define NID_mime_mhs_bodies             506\n#define OBJ_mime_mhs_bodies             OBJ_mime_mhs,2L\n\n#define SN_id_hex_partial_message               \"id-hex-partial-message\"\n#define LN_id_hex_partial_message               \"id-hex-partial-message\"\n#define NID_id_hex_partial_message              507\n#define OBJ_id_hex_partial_message              OBJ_mime_mhs_headings,1L\n\n#define SN_id_hex_multipart_message             \"id-hex-multipart-message\"\n#define LN_id_hex_multipart_message             \"id-hex-multipart-message\"\n#define NID_id_hex_multipart_message            508\n#define OBJ_id_hex_multipart_message            OBJ_mime_mhs_headings,2L\n\n#define SN_zlib_compression             \"ZLIB\"\n#define LN_zlib_compression             \"zlib compression\"\n#define NID_zlib_compression            125\n#define OBJ_zlib_compression            OBJ_id_smime_alg,8L\n\n#define OBJ_csor                2L,16L,840L,1L,101L,3L\n\n#define OBJ_nistAlgorithms              OBJ_csor,4L\n\n#define OBJ_aes         OBJ_nistAlgorithms,1L\n\n#define SN_aes_128_ecb          \"AES-128-ECB\"\n#define LN_aes_128_ecb          \"aes-128-ecb\"\n#define NID_aes_128_ecb         418\n#define OBJ_aes_128_ecb         OBJ_aes,1L\n\n#define SN_aes_128_cbc          \"AES-128-CBC\"\n#define LN_aes_128_cbc          \"aes-128-cbc\"\n#define NID_aes_128_cbc         419\n#define OBJ_aes_128_cbc         OBJ_aes,2L\n\n#define SN_aes_128_ofb128               \"AES-128-OFB\"\n#define LN_aes_128_ofb128               \"aes-128-ofb\"\n#define NID_aes_128_ofb128              420\n#define OBJ_aes_128_ofb128              OBJ_aes,3L\n\n#define SN_aes_128_cfb128               \"AES-128-CFB\"\n#define LN_aes_128_cfb128               \"aes-128-cfb\"\n#define NID_aes_128_cfb128              421\n#define OBJ_aes_128_cfb128              OBJ_aes,4L\n\n#define SN_id_aes128_wrap               \"id-aes128-wrap\"\n#define NID_id_aes128_wrap              788\n#define OBJ_id_aes128_wrap              OBJ_aes,5L\n\n#define SN_aes_128_gcm          \"id-aes128-GCM\"\n#define LN_aes_128_gcm          \"aes-128-gcm\"\n#define NID_aes_128_gcm         895\n#define OBJ_aes_128_gcm         OBJ_aes,6L\n\n#define SN_aes_128_ccm          \"id-aes128-CCM\"\n#define LN_aes_128_ccm          \"aes-128-ccm\"\n#define NID_aes_128_ccm         896\n#define OBJ_aes_128_ccm         OBJ_aes,7L\n\n#define SN_id_aes128_wrap_pad           \"id-aes128-wrap-pad\"\n#define NID_id_aes128_wrap_pad          897\n#define OBJ_id_aes128_wrap_pad          OBJ_aes,8L\n\n#define SN_aes_192_ecb          \"AES-192-ECB\"\n#define LN_aes_192_ecb          \"aes-192-ecb\"\n#define NID_aes_192_ecb         422\n#define OBJ_aes_192_ecb         OBJ_aes,21L\n\n#define SN_aes_192_cbc          \"AES-192-CBC\"\n#define LN_aes_192_cbc          \"aes-192-cbc\"\n#define NID_aes_192_cbc         423\n#define OBJ_aes_192_cbc         OBJ_aes,22L\n\n#define SN_aes_192_ofb128               \"AES-192-OFB\"\n#define LN_aes_192_ofb128               \"aes-192-ofb\"\n#define NID_aes_192_ofb128              424\n#define OBJ_aes_192_ofb128              OBJ_aes,23L\n\n#define SN_aes_192_cfb128               \"AES-192-CFB\"\n#define LN_aes_192_cfb128               \"aes-192-cfb\"\n#define NID_aes_192_cfb128              425\n#define OBJ_aes_192_cfb128              OBJ_aes,24L\n\n#define SN_id_aes192_wrap               \"id-aes192-wrap\"\n#define NID_id_aes192_wrap              789\n#define OBJ_id_aes192_wrap              OBJ_aes,25L\n\n#define SN_aes_192_gcm          \"id-aes192-GCM\"\n#define LN_aes_192_gcm          \"aes-192-gcm\"\n#define NID_aes_192_gcm         898\n#define OBJ_aes_192_gcm         OBJ_aes,26L\n\n#define SN_aes_192_ccm          \"id-aes192-CCM\"\n#define LN_aes_192_ccm          \"aes-192-ccm\"\n#define NID_aes_192_ccm         899\n#define OBJ_aes_192_ccm         OBJ_aes,27L\n\n#define SN_id_aes192_wrap_pad           \"id-aes192-wrap-pad\"\n#define NID_id_aes192_wrap_pad          900\n#define OBJ_id_aes192_wrap_pad          OBJ_aes,28L\n\n#define SN_aes_256_ecb          \"AES-256-ECB\"\n#define LN_aes_256_ecb          \"aes-256-ecb\"\n#define NID_aes_256_ecb         426\n#define OBJ_aes_256_ecb         OBJ_aes,41L\n\n#define SN_aes_256_cbc          \"AES-256-CBC\"\n#define LN_aes_256_cbc          \"aes-256-cbc\"\n#define NID_aes_256_cbc         427\n#define OBJ_aes_256_cbc         OBJ_aes,42L\n\n#define SN_aes_256_ofb128               \"AES-256-OFB\"\n#define LN_aes_256_ofb128               \"aes-256-ofb\"\n#define NID_aes_256_ofb128              428\n#define OBJ_aes_256_ofb128              OBJ_aes,43L\n\n#define SN_aes_256_cfb128               \"AES-256-CFB\"\n#define LN_aes_256_cfb128               \"aes-256-cfb\"\n#define NID_aes_256_cfb128              429\n#define OBJ_aes_256_cfb128              OBJ_aes,44L\n\n#define SN_id_aes256_wrap               \"id-aes256-wrap\"\n#define NID_id_aes256_wrap              790\n#define OBJ_id_aes256_wrap              OBJ_aes,45L\n\n#define SN_aes_256_gcm          \"id-aes256-GCM\"\n#define LN_aes_256_gcm          \"aes-256-gcm\"\n#define NID_aes_256_gcm         901\n#define OBJ_aes_256_gcm         OBJ_aes,46L\n\n#define SN_aes_256_ccm          \"id-aes256-CCM\"\n#define LN_aes_256_ccm          \"aes-256-ccm\"\n#define NID_aes_256_ccm         902\n#define OBJ_aes_256_ccm         OBJ_aes,47L\n\n#define SN_id_aes256_wrap_pad           \"id-aes256-wrap-pad\"\n#define NID_id_aes256_wrap_pad          903\n#define OBJ_id_aes256_wrap_pad          OBJ_aes,48L\n\n#define SN_aes_128_xts          \"AES-128-XTS\"\n#define LN_aes_128_xts          \"aes-128-xts\"\n#define NID_aes_128_xts         913\n#define OBJ_aes_128_xts         OBJ_ieee_siswg,0L,1L,1L\n\n#define SN_aes_256_xts          \"AES-256-XTS\"\n#define LN_aes_256_xts          \"aes-256-xts\"\n#define NID_aes_256_xts         914\n#define OBJ_aes_256_xts         OBJ_ieee_siswg,0L,1L,2L\n\n#define SN_aes_128_cfb1         \"AES-128-CFB1\"\n#define LN_aes_128_cfb1         \"aes-128-cfb1\"\n#define NID_aes_128_cfb1                650\n\n#define SN_aes_192_cfb1         \"AES-192-CFB1\"\n#define LN_aes_192_cfb1         \"aes-192-cfb1\"\n#define NID_aes_192_cfb1                651\n\n#define SN_aes_256_cfb1         \"AES-256-CFB1\"\n#define LN_aes_256_cfb1         \"aes-256-cfb1\"\n#define NID_aes_256_cfb1                652\n\n#define SN_aes_128_cfb8         \"AES-128-CFB8\"\n#define LN_aes_128_cfb8         \"aes-128-cfb8\"\n#define NID_aes_128_cfb8                653\n\n#define SN_aes_192_cfb8         \"AES-192-CFB8\"\n#define LN_aes_192_cfb8         \"aes-192-cfb8\"\n#define NID_aes_192_cfb8                654\n\n#define SN_aes_256_cfb8         \"AES-256-CFB8\"\n#define LN_aes_256_cfb8         \"aes-256-cfb8\"\n#define NID_aes_256_cfb8                655\n\n#define SN_aes_128_ctr          \"AES-128-CTR\"\n#define LN_aes_128_ctr          \"aes-128-ctr\"\n#define NID_aes_128_ctr         904\n\n#define SN_aes_192_ctr          \"AES-192-CTR\"\n#define LN_aes_192_ctr          \"aes-192-ctr\"\n#define NID_aes_192_ctr         905\n\n#define SN_aes_256_ctr          \"AES-256-CTR\"\n#define LN_aes_256_ctr          \"aes-256-ctr\"\n#define NID_aes_256_ctr         906\n\n#define SN_aes_128_ocb          \"AES-128-OCB\"\n#define LN_aes_128_ocb          \"aes-128-ocb\"\n#define NID_aes_128_ocb         958\n\n#define SN_aes_192_ocb          \"AES-192-OCB\"\n#define LN_aes_192_ocb          \"aes-192-ocb\"\n#define NID_aes_192_ocb         959\n\n#define SN_aes_256_ocb          \"AES-256-OCB\"\n#define LN_aes_256_ocb          \"aes-256-ocb\"\n#define NID_aes_256_ocb         960\n\n#define SN_des_cfb1             \"DES-CFB1\"\n#define LN_des_cfb1             \"des-cfb1\"\n#define NID_des_cfb1            656\n\n#define SN_des_cfb8             \"DES-CFB8\"\n#define LN_des_cfb8             \"des-cfb8\"\n#define NID_des_cfb8            657\n\n#define SN_des_ede3_cfb1                \"DES-EDE3-CFB1\"\n#define LN_des_ede3_cfb1                \"des-ede3-cfb1\"\n#define NID_des_ede3_cfb1               658\n\n#define SN_des_ede3_cfb8                \"DES-EDE3-CFB8\"\n#define LN_des_ede3_cfb8                \"des-ede3-cfb8\"\n#define NID_des_ede3_cfb8               659\n\n#define OBJ_nist_hashalgs               OBJ_nistAlgorithms,2L\n\n#define SN_sha256               \"SHA256\"\n#define LN_sha256               \"sha256\"\n#define NID_sha256              672\n#define OBJ_sha256              OBJ_nist_hashalgs,1L\n\n#define SN_sha384               \"SHA384\"\n#define LN_sha384               \"sha384\"\n#define NID_sha384              673\n#define OBJ_sha384              OBJ_nist_hashalgs,2L\n\n#define SN_sha512               \"SHA512\"\n#define LN_sha512               \"sha512\"\n#define NID_sha512              674\n#define OBJ_sha512              OBJ_nist_hashalgs,3L\n\n#define SN_sha224               \"SHA224\"\n#define LN_sha224               \"sha224\"\n#define NID_sha224              675\n#define OBJ_sha224              OBJ_nist_hashalgs,4L\n\n#define SN_sha512_224           \"SHA512-224\"\n#define LN_sha512_224           \"sha512-224\"\n#define NID_sha512_224          1094\n#define OBJ_sha512_224          OBJ_nist_hashalgs,5L\n\n#define SN_sha512_256           \"SHA512-256\"\n#define LN_sha512_256           \"sha512-256\"\n#define NID_sha512_256          1095\n#define OBJ_sha512_256          OBJ_nist_hashalgs,6L\n\n#define SN_sha3_224             \"SHA3-224\"\n#define LN_sha3_224             \"sha3-224\"\n#define NID_sha3_224            1096\n#define OBJ_sha3_224            OBJ_nist_hashalgs,7L\n\n#define SN_sha3_256             \"SHA3-256\"\n#define LN_sha3_256             \"sha3-256\"\n#define NID_sha3_256            1097\n#define OBJ_sha3_256            OBJ_nist_hashalgs,8L\n\n#define SN_sha3_384             \"SHA3-384\"\n#define LN_sha3_384             \"sha3-384\"\n#define NID_sha3_384            1098\n#define OBJ_sha3_384            OBJ_nist_hashalgs,9L\n\n#define SN_sha3_512             \"SHA3-512\"\n#define LN_sha3_512             \"sha3-512\"\n#define NID_sha3_512            1099\n#define OBJ_sha3_512            OBJ_nist_hashalgs,10L\n\n#define SN_shake128             \"SHAKE128\"\n#define LN_shake128             \"shake128\"\n#define NID_shake128            1100\n#define OBJ_shake128            OBJ_nist_hashalgs,11L\n\n#define SN_shake256             \"SHAKE256\"\n#define LN_shake256             \"shake256\"\n#define NID_shake256            1101\n#define OBJ_shake256            OBJ_nist_hashalgs,12L\n\n#define SN_hmac_sha3_224                \"id-hmacWithSHA3-224\"\n#define LN_hmac_sha3_224                \"hmac-sha3-224\"\n#define NID_hmac_sha3_224               1102\n#define OBJ_hmac_sha3_224               OBJ_nist_hashalgs,13L\n\n#define SN_hmac_sha3_256                \"id-hmacWithSHA3-256\"\n#define LN_hmac_sha3_256                \"hmac-sha3-256\"\n#define NID_hmac_sha3_256               1103\n#define OBJ_hmac_sha3_256               OBJ_nist_hashalgs,14L\n\n#define SN_hmac_sha3_384                \"id-hmacWithSHA3-384\"\n#define LN_hmac_sha3_384                \"hmac-sha3-384\"\n#define NID_hmac_sha3_384               1104\n#define OBJ_hmac_sha3_384               OBJ_nist_hashalgs,15L\n\n#define SN_hmac_sha3_512                \"id-hmacWithSHA3-512\"\n#define LN_hmac_sha3_512                \"hmac-sha3-512\"\n#define NID_hmac_sha3_512               1105\n#define OBJ_hmac_sha3_512               OBJ_nist_hashalgs,16L\n\n#define OBJ_dsa_with_sha2               OBJ_nistAlgorithms,3L\n\n#define SN_dsa_with_SHA224              \"dsa_with_SHA224\"\n#define NID_dsa_with_SHA224             802\n#define OBJ_dsa_with_SHA224             OBJ_dsa_with_sha2,1L\n\n#define SN_dsa_with_SHA256              \"dsa_with_SHA256\"\n#define NID_dsa_with_SHA256             803\n#define OBJ_dsa_with_SHA256             OBJ_dsa_with_sha2,2L\n\n#define OBJ_sigAlgs             OBJ_nistAlgorithms,3L\n\n#define SN_dsa_with_SHA384              \"id-dsa-with-sha384\"\n#define LN_dsa_with_SHA384              \"dsa_with_SHA384\"\n#define NID_dsa_with_SHA384             1106\n#define OBJ_dsa_with_SHA384             OBJ_sigAlgs,3L\n\n#define SN_dsa_with_SHA512              \"id-dsa-with-sha512\"\n#define LN_dsa_with_SHA512              \"dsa_with_SHA512\"\n#define NID_dsa_with_SHA512             1107\n#define OBJ_dsa_with_SHA512             OBJ_sigAlgs,4L\n\n#define SN_dsa_with_SHA3_224            \"id-dsa-with-sha3-224\"\n#define LN_dsa_with_SHA3_224            \"dsa_with_SHA3-224\"\n#define NID_dsa_with_SHA3_224           1108\n#define OBJ_dsa_with_SHA3_224           OBJ_sigAlgs,5L\n\n#define SN_dsa_with_SHA3_256            \"id-dsa-with-sha3-256\"\n#define LN_dsa_with_SHA3_256            \"dsa_with_SHA3-256\"\n#define NID_dsa_with_SHA3_256           1109\n#define OBJ_dsa_with_SHA3_256           OBJ_sigAlgs,6L\n\n#define SN_dsa_with_SHA3_384            \"id-dsa-with-sha3-384\"\n#define LN_dsa_with_SHA3_384            \"dsa_with_SHA3-384\"\n#define NID_dsa_with_SHA3_384           1110\n#define OBJ_dsa_with_SHA3_384           OBJ_sigAlgs,7L\n\n#define SN_dsa_with_SHA3_512            \"id-dsa-with-sha3-512\"\n#define LN_dsa_with_SHA3_512            \"dsa_with_SHA3-512\"\n#define NID_dsa_with_SHA3_512           1111\n#define OBJ_dsa_with_SHA3_512           OBJ_sigAlgs,8L\n\n#define SN_ecdsa_with_SHA3_224          \"id-ecdsa-with-sha3-224\"\n#define LN_ecdsa_with_SHA3_224          \"ecdsa_with_SHA3-224\"\n#define NID_ecdsa_with_SHA3_224         1112\n#define OBJ_ecdsa_with_SHA3_224         OBJ_sigAlgs,9L\n\n#define SN_ecdsa_with_SHA3_256          \"id-ecdsa-with-sha3-256\"\n#define LN_ecdsa_with_SHA3_256          \"ecdsa_with_SHA3-256\"\n#define NID_ecdsa_with_SHA3_256         1113\n#define OBJ_ecdsa_with_SHA3_256         OBJ_sigAlgs,10L\n\n#define SN_ecdsa_with_SHA3_384          \"id-ecdsa-with-sha3-384\"\n#define LN_ecdsa_with_SHA3_384          \"ecdsa_with_SHA3-384\"\n#define NID_ecdsa_with_SHA3_384         1114\n#define OBJ_ecdsa_with_SHA3_384         OBJ_sigAlgs,11L\n\n#define SN_ecdsa_with_SHA3_512          \"id-ecdsa-with-sha3-512\"\n#define LN_ecdsa_with_SHA3_512          \"ecdsa_with_SHA3-512\"\n#define NID_ecdsa_with_SHA3_512         1115\n#define OBJ_ecdsa_with_SHA3_512         OBJ_sigAlgs,12L\n\n#define SN_RSA_SHA3_224         \"id-rsassa-pkcs1-v1_5-with-sha3-224\"\n#define LN_RSA_SHA3_224         \"RSA-SHA3-224\"\n#define NID_RSA_SHA3_224                1116\n#define OBJ_RSA_SHA3_224                OBJ_sigAlgs,13L\n\n#define SN_RSA_SHA3_256         \"id-rsassa-pkcs1-v1_5-with-sha3-256\"\n#define LN_RSA_SHA3_256         \"RSA-SHA3-256\"\n#define NID_RSA_SHA3_256                1117\n#define OBJ_RSA_SHA3_256                OBJ_sigAlgs,14L\n\n#define SN_RSA_SHA3_384         \"id-rsassa-pkcs1-v1_5-with-sha3-384\"\n#define LN_RSA_SHA3_384         \"RSA-SHA3-384\"\n#define NID_RSA_SHA3_384                1118\n#define OBJ_RSA_SHA3_384                OBJ_sigAlgs,15L\n\n#define SN_RSA_SHA3_512         \"id-rsassa-pkcs1-v1_5-with-sha3-512\"\n#define LN_RSA_SHA3_512         \"RSA-SHA3-512\"\n#define NID_RSA_SHA3_512                1119\n#define OBJ_RSA_SHA3_512                OBJ_sigAlgs,16L\n\n#define SN_hold_instruction_code                \"holdInstructionCode\"\n#define LN_hold_instruction_code                \"Hold Instruction Code\"\n#define NID_hold_instruction_code               430\n#define OBJ_hold_instruction_code               OBJ_id_ce,23L\n\n#define OBJ_holdInstruction             OBJ_X9_57,2L\n\n#define SN_hold_instruction_none                \"holdInstructionNone\"\n#define LN_hold_instruction_none                \"Hold Instruction None\"\n#define NID_hold_instruction_none               431\n#define OBJ_hold_instruction_none               OBJ_holdInstruction,1L\n\n#define SN_hold_instruction_call_issuer         \"holdInstructionCallIssuer\"\n#define LN_hold_instruction_call_issuer         \"Hold Instruction Call Issuer\"\n#define NID_hold_instruction_call_issuer                432\n#define OBJ_hold_instruction_call_issuer                OBJ_holdInstruction,2L\n\n#define SN_hold_instruction_reject              \"holdInstructionReject\"\n#define LN_hold_instruction_reject              \"Hold Instruction Reject\"\n#define NID_hold_instruction_reject             433\n#define OBJ_hold_instruction_reject             OBJ_holdInstruction,3L\n\n#define SN_data         \"data\"\n#define NID_data                434\n#define OBJ_data                OBJ_itu_t,9L\n\n#define SN_pss          \"pss\"\n#define NID_pss         435\n#define OBJ_pss         OBJ_data,2342L\n\n#define SN_ucl          \"ucl\"\n#define NID_ucl         436\n#define OBJ_ucl         OBJ_pss,19200300L\n\n#define SN_pilot                \"pilot\"\n#define NID_pilot               437\n#define OBJ_pilot               OBJ_ucl,100L\n\n#define LN_pilotAttributeType           \"pilotAttributeType\"\n#define NID_pilotAttributeType          438\n#define OBJ_pilotAttributeType          OBJ_pilot,1L\n\n#define LN_pilotAttributeSyntax         \"pilotAttributeSyntax\"\n#define NID_pilotAttributeSyntax                439\n#define OBJ_pilotAttributeSyntax                OBJ_pilot,3L\n\n#define LN_pilotObjectClass             \"pilotObjectClass\"\n#define NID_pilotObjectClass            440\n#define OBJ_pilotObjectClass            OBJ_pilot,4L\n\n#define LN_pilotGroups          \"pilotGroups\"\n#define NID_pilotGroups         441\n#define OBJ_pilotGroups         OBJ_pilot,10L\n\n#define LN_iA5StringSyntax              \"iA5StringSyntax\"\n#define NID_iA5StringSyntax             442\n#define OBJ_iA5StringSyntax             OBJ_pilotAttributeSyntax,4L\n\n#define LN_caseIgnoreIA5StringSyntax            \"caseIgnoreIA5StringSyntax\"\n#define NID_caseIgnoreIA5StringSyntax           443\n#define OBJ_caseIgnoreIA5StringSyntax           OBJ_pilotAttributeSyntax,5L\n\n#define LN_pilotObject          \"pilotObject\"\n#define NID_pilotObject         444\n#define OBJ_pilotObject         OBJ_pilotObjectClass,3L\n\n#define LN_pilotPerson          \"pilotPerson\"\n#define NID_pilotPerson         445\n#define OBJ_pilotPerson         OBJ_pilotObjectClass,4L\n\n#define SN_account              \"account\"\n#define NID_account             446\n#define OBJ_account             OBJ_pilotObjectClass,5L\n\n#define SN_document             \"document\"\n#define NID_document            447\n#define OBJ_document            OBJ_pilotObjectClass,6L\n\n#define SN_room         \"room\"\n#define NID_room                448\n#define OBJ_room                OBJ_pilotObjectClass,7L\n\n#define LN_documentSeries               \"documentSeries\"\n#define NID_documentSeries              449\n#define OBJ_documentSeries              OBJ_pilotObjectClass,9L\n\n#define SN_Domain               \"domain\"\n#define LN_Domain               \"Domain\"\n#define NID_Domain              392\n#define OBJ_Domain              OBJ_pilotObjectClass,13L\n\n#define LN_rFC822localPart              \"rFC822localPart\"\n#define NID_rFC822localPart             450\n#define OBJ_rFC822localPart             OBJ_pilotObjectClass,14L\n\n#define LN_dNSDomain            \"dNSDomain\"\n#define NID_dNSDomain           451\n#define OBJ_dNSDomain           OBJ_pilotObjectClass,15L\n\n#define LN_domainRelatedObject          \"domainRelatedObject\"\n#define NID_domainRelatedObject         452\n#define OBJ_domainRelatedObject         OBJ_pilotObjectClass,17L\n\n#define LN_friendlyCountry              \"friendlyCountry\"\n#define NID_friendlyCountry             453\n#define OBJ_friendlyCountry             OBJ_pilotObjectClass,18L\n\n#define LN_simpleSecurityObject         \"simpleSecurityObject\"\n#define NID_simpleSecurityObject                454\n#define OBJ_simpleSecurityObject                OBJ_pilotObjectClass,19L\n\n#define LN_pilotOrganization            \"pilotOrganization\"\n#define NID_pilotOrganization           455\n#define OBJ_pilotOrganization           OBJ_pilotObjectClass,20L\n\n#define LN_pilotDSA             \"pilotDSA\"\n#define NID_pilotDSA            456\n#define OBJ_pilotDSA            OBJ_pilotObjectClass,21L\n\n#define LN_qualityLabelledData          \"qualityLabelledData\"\n#define NID_qualityLabelledData         457\n#define OBJ_qualityLabelledData         OBJ_pilotObjectClass,22L\n\n#define SN_userId               \"UID\"\n#define LN_userId               \"userId\"\n#define NID_userId              458\n#define OBJ_userId              OBJ_pilotAttributeType,1L\n\n#define LN_textEncodedORAddress         \"textEncodedORAddress\"\n#define NID_textEncodedORAddress                459\n#define OBJ_textEncodedORAddress                OBJ_pilotAttributeType,2L\n\n#define SN_rfc822Mailbox                \"mail\"\n#define LN_rfc822Mailbox                \"rfc822Mailbox\"\n#define NID_rfc822Mailbox               460\n#define OBJ_rfc822Mailbox               OBJ_pilotAttributeType,3L\n\n#define SN_info         \"info\"\n#define NID_info                461\n#define OBJ_info                OBJ_pilotAttributeType,4L\n\n#define LN_favouriteDrink               \"favouriteDrink\"\n#define NID_favouriteDrink              462\n#define OBJ_favouriteDrink              OBJ_pilotAttributeType,5L\n\n#define LN_roomNumber           \"roomNumber\"\n#define NID_roomNumber          463\n#define OBJ_roomNumber          OBJ_pilotAttributeType,6L\n\n#define SN_photo                \"photo\"\n#define NID_photo               464\n#define OBJ_photo               OBJ_pilotAttributeType,7L\n\n#define LN_userClass            \"userClass\"\n#define NID_userClass           465\n#define OBJ_userClass           OBJ_pilotAttributeType,8L\n\n#define SN_host         \"host\"\n#define NID_host                466\n#define OBJ_host                OBJ_pilotAttributeType,9L\n\n#define SN_manager              \"manager\"\n#define NID_manager             467\n#define OBJ_manager             OBJ_pilotAttributeType,10L\n\n#define LN_documentIdentifier           \"documentIdentifier\"\n#define NID_documentIdentifier          468\n#define OBJ_documentIdentifier          OBJ_pilotAttributeType,11L\n\n#define LN_documentTitle                \"documentTitle\"\n#define NID_documentTitle               469\n#define OBJ_documentTitle               OBJ_pilotAttributeType,12L\n\n#define LN_documentVersion              \"documentVersion\"\n#define NID_documentVersion             470\n#define OBJ_documentVersion             OBJ_pilotAttributeType,13L\n\n#define LN_documentAuthor               \"documentAuthor\"\n#define NID_documentAuthor              471\n#define OBJ_documentAuthor              OBJ_pilotAttributeType,14L\n\n#define LN_documentLocation             \"documentLocation\"\n#define NID_documentLocation            472\n#define OBJ_documentLocation            OBJ_pilotAttributeType,15L\n\n#define LN_homeTelephoneNumber          \"homeTelephoneNumber\"\n#define NID_homeTelephoneNumber         473\n#define OBJ_homeTelephoneNumber         OBJ_pilotAttributeType,20L\n\n#define SN_secretary            \"secretary\"\n#define NID_secretary           474\n#define OBJ_secretary           OBJ_pilotAttributeType,21L\n\n#define LN_otherMailbox         \"otherMailbox\"\n#define NID_otherMailbox                475\n#define OBJ_otherMailbox                OBJ_pilotAttributeType,22L\n\n#define LN_lastModifiedTime             \"lastModifiedTime\"\n#define NID_lastModifiedTime            476\n#define OBJ_lastModifiedTime            OBJ_pilotAttributeType,23L\n\n#define LN_lastModifiedBy               \"lastModifiedBy\"\n#define NID_lastModifiedBy              477\n#define OBJ_lastModifiedBy              OBJ_pilotAttributeType,24L\n\n#define SN_domainComponent              \"DC\"\n#define LN_domainComponent              \"domainComponent\"\n#define NID_domainComponent             391\n#define OBJ_domainComponent             OBJ_pilotAttributeType,25L\n\n#define LN_aRecord              \"aRecord\"\n#define NID_aRecord             478\n#define OBJ_aRecord             OBJ_pilotAttributeType,26L\n\n#define LN_pilotAttributeType27         \"pilotAttributeType27\"\n#define NID_pilotAttributeType27                479\n#define OBJ_pilotAttributeType27                OBJ_pilotAttributeType,27L\n\n#define LN_mXRecord             \"mXRecord\"\n#define NID_mXRecord            480\n#define OBJ_mXRecord            OBJ_pilotAttributeType,28L\n\n#define LN_nSRecord             \"nSRecord\"\n#define NID_nSRecord            481\n#define OBJ_nSRecord            OBJ_pilotAttributeType,29L\n\n#define LN_sOARecord            \"sOARecord\"\n#define NID_sOARecord           482\n#define OBJ_sOARecord           OBJ_pilotAttributeType,30L\n\n#define LN_cNAMERecord          \"cNAMERecord\"\n#define NID_cNAMERecord         483\n#define OBJ_cNAMERecord         OBJ_pilotAttributeType,31L\n\n#define LN_associatedDomain             \"associatedDomain\"\n#define NID_associatedDomain            484\n#define OBJ_associatedDomain            OBJ_pilotAttributeType,37L\n\n#define LN_associatedName               \"associatedName\"\n#define NID_associatedName              485\n#define OBJ_associatedName              OBJ_pilotAttributeType,38L\n\n#define LN_homePostalAddress            \"homePostalAddress\"\n#define NID_homePostalAddress           486\n#define OBJ_homePostalAddress           OBJ_pilotAttributeType,39L\n\n#define LN_personalTitle                \"personalTitle\"\n#define NID_personalTitle               487\n#define OBJ_personalTitle               OBJ_pilotAttributeType,40L\n\n#define LN_mobileTelephoneNumber                \"mobileTelephoneNumber\"\n#define NID_mobileTelephoneNumber               488\n#define OBJ_mobileTelephoneNumber               OBJ_pilotAttributeType,41L\n\n#define LN_pagerTelephoneNumber         \"pagerTelephoneNumber\"\n#define NID_pagerTelephoneNumber                489\n#define OBJ_pagerTelephoneNumber                OBJ_pilotAttributeType,42L\n\n#define LN_friendlyCountryName          \"friendlyCountryName\"\n#define NID_friendlyCountryName         490\n#define OBJ_friendlyCountryName         OBJ_pilotAttributeType,43L\n\n#define SN_uniqueIdentifier             \"uid\"\n#define LN_uniqueIdentifier             \"uniqueIdentifier\"\n#define NID_uniqueIdentifier            102\n#define OBJ_uniqueIdentifier            OBJ_pilotAttributeType,44L\n\n#define LN_organizationalStatus         \"organizationalStatus\"\n#define NID_organizationalStatus                491\n#define OBJ_organizationalStatus                OBJ_pilotAttributeType,45L\n\n#define LN_janetMailbox         \"janetMailbox\"\n#define NID_janetMailbox                492\n#define OBJ_janetMailbox                OBJ_pilotAttributeType,46L\n\n#define LN_mailPreferenceOption         \"mailPreferenceOption\"\n#define NID_mailPreferenceOption                493\n#define OBJ_mailPreferenceOption                OBJ_pilotAttributeType,47L\n\n#define LN_buildingName         \"buildingName\"\n#define NID_buildingName                494\n#define OBJ_buildingName                OBJ_pilotAttributeType,48L\n\n#define LN_dSAQuality           \"dSAQuality\"\n#define NID_dSAQuality          495\n#define OBJ_dSAQuality          OBJ_pilotAttributeType,49L\n\n#define LN_singleLevelQuality           \"singleLevelQuality\"\n#define NID_singleLevelQuality          496\n#define OBJ_singleLevelQuality          OBJ_pilotAttributeType,50L\n\n#define LN_subtreeMinimumQuality                \"subtreeMinimumQuality\"\n#define NID_subtreeMinimumQuality               497\n#define OBJ_subtreeMinimumQuality               OBJ_pilotAttributeType,51L\n\n#define LN_subtreeMaximumQuality                \"subtreeMaximumQuality\"\n#define NID_subtreeMaximumQuality               498\n#define OBJ_subtreeMaximumQuality               OBJ_pilotAttributeType,52L\n\n#define LN_personalSignature            \"personalSignature\"\n#define NID_personalSignature           499\n#define OBJ_personalSignature           OBJ_pilotAttributeType,53L\n\n#define LN_dITRedirect          \"dITRedirect\"\n#define NID_dITRedirect         500\n#define OBJ_dITRedirect         OBJ_pilotAttributeType,54L\n\n#define SN_audio                \"audio\"\n#define NID_audio               501\n#define OBJ_audio               OBJ_pilotAttributeType,55L\n\n#define LN_documentPublisher            \"documentPublisher\"\n#define NID_documentPublisher           502\n#define OBJ_documentPublisher           OBJ_pilotAttributeType,56L\n\n#define SN_id_set               \"id-set\"\n#define LN_id_set               \"Secure Electronic Transactions\"\n#define NID_id_set              512\n#define OBJ_id_set              OBJ_international_organizations,42L\n\n#define SN_set_ctype            \"set-ctype\"\n#define LN_set_ctype            \"content types\"\n#define NID_set_ctype           513\n#define OBJ_set_ctype           OBJ_id_set,0L\n\n#define SN_set_msgExt           \"set-msgExt\"\n#define LN_set_msgExt           \"message extensions\"\n#define NID_set_msgExt          514\n#define OBJ_set_msgExt          OBJ_id_set,1L\n\n#define SN_set_attr             \"set-attr\"\n#define NID_set_attr            515\n#define OBJ_set_attr            OBJ_id_set,3L\n\n#define SN_set_policy           \"set-policy\"\n#define NID_set_policy          516\n#define OBJ_set_policy          OBJ_id_set,5L\n\n#define SN_set_certExt          \"set-certExt\"\n#define LN_set_certExt          \"certificate extensions\"\n#define NID_set_certExt         517\n#define OBJ_set_certExt         OBJ_id_set,7L\n\n#define SN_set_brand            \"set-brand\"\n#define NID_set_brand           518\n#define OBJ_set_brand           OBJ_id_set,8L\n\n#define SN_setct_PANData                \"setct-PANData\"\n#define NID_setct_PANData               519\n#define OBJ_setct_PANData               OBJ_set_ctype,0L\n\n#define SN_setct_PANToken               \"setct-PANToken\"\n#define NID_setct_PANToken              520\n#define OBJ_setct_PANToken              OBJ_set_ctype,1L\n\n#define SN_setct_PANOnly                \"setct-PANOnly\"\n#define NID_setct_PANOnly               521\n#define OBJ_setct_PANOnly               OBJ_set_ctype,2L\n\n#define SN_setct_OIData         \"setct-OIData\"\n#define NID_setct_OIData                522\n#define OBJ_setct_OIData                OBJ_set_ctype,3L\n\n#define SN_setct_PI             \"setct-PI\"\n#define NID_setct_PI            523\n#define OBJ_setct_PI            OBJ_set_ctype,4L\n\n#define SN_setct_PIData         \"setct-PIData\"\n#define NID_setct_PIData                524\n#define OBJ_setct_PIData                OBJ_set_ctype,5L\n\n#define SN_setct_PIDataUnsigned         \"setct-PIDataUnsigned\"\n#define NID_setct_PIDataUnsigned                525\n#define OBJ_setct_PIDataUnsigned                OBJ_set_ctype,6L\n\n#define SN_setct_HODInput               \"setct-HODInput\"\n#define NID_setct_HODInput              526\n#define OBJ_setct_HODInput              OBJ_set_ctype,7L\n\n#define SN_setct_AuthResBaggage         \"setct-AuthResBaggage\"\n#define NID_setct_AuthResBaggage                527\n#define OBJ_setct_AuthResBaggage                OBJ_set_ctype,8L\n\n#define SN_setct_AuthRevReqBaggage              \"setct-AuthRevReqBaggage\"\n#define NID_setct_AuthRevReqBaggage             528\n#define OBJ_setct_AuthRevReqBaggage             OBJ_set_ctype,9L\n\n#define SN_setct_AuthRevResBaggage              \"setct-AuthRevResBaggage\"\n#define NID_setct_AuthRevResBaggage             529\n#define OBJ_setct_AuthRevResBaggage             OBJ_set_ctype,10L\n\n#define SN_setct_CapTokenSeq            \"setct-CapTokenSeq\"\n#define NID_setct_CapTokenSeq           530\n#define OBJ_setct_CapTokenSeq           OBJ_set_ctype,11L\n\n#define SN_setct_PInitResData           \"setct-PInitResData\"\n#define NID_setct_PInitResData          531\n#define OBJ_setct_PInitResData          OBJ_set_ctype,12L\n\n#define SN_setct_PI_TBS         \"setct-PI-TBS\"\n#define NID_setct_PI_TBS                532\n#define OBJ_setct_PI_TBS                OBJ_set_ctype,13L\n\n#define SN_setct_PResData               \"setct-PResData\"\n#define NID_setct_PResData              533\n#define OBJ_setct_PResData              OBJ_set_ctype,14L\n\n#define SN_setct_AuthReqTBS             \"setct-AuthReqTBS\"\n#define NID_setct_AuthReqTBS            534\n#define OBJ_setct_AuthReqTBS            OBJ_set_ctype,16L\n\n#define SN_setct_AuthResTBS             \"setct-AuthResTBS\"\n#define NID_setct_AuthResTBS            535\n#define OBJ_setct_AuthResTBS            OBJ_set_ctype,17L\n\n#define SN_setct_AuthResTBSX            \"setct-AuthResTBSX\"\n#define NID_setct_AuthResTBSX           536\n#define OBJ_setct_AuthResTBSX           OBJ_set_ctype,18L\n\n#define SN_setct_AuthTokenTBS           \"setct-AuthTokenTBS\"\n#define NID_setct_AuthTokenTBS          537\n#define OBJ_setct_AuthTokenTBS          OBJ_set_ctype,19L\n\n#define SN_setct_CapTokenData           \"setct-CapTokenData\"\n#define NID_setct_CapTokenData          538\n#define OBJ_setct_CapTokenData          OBJ_set_ctype,20L\n\n#define SN_setct_CapTokenTBS            \"setct-CapTokenTBS\"\n#define NID_setct_CapTokenTBS           539\n#define OBJ_setct_CapTokenTBS           OBJ_set_ctype,21L\n\n#define SN_setct_AcqCardCodeMsg         \"setct-AcqCardCodeMsg\"\n#define NID_setct_AcqCardCodeMsg                540\n#define OBJ_setct_AcqCardCodeMsg                OBJ_set_ctype,22L\n\n#define SN_setct_AuthRevReqTBS          \"setct-AuthRevReqTBS\"\n#define NID_setct_AuthRevReqTBS         541\n#define OBJ_setct_AuthRevReqTBS         OBJ_set_ctype,23L\n\n#define SN_setct_AuthRevResData         \"setct-AuthRevResData\"\n#define NID_setct_AuthRevResData                542\n#define OBJ_setct_AuthRevResData                OBJ_set_ctype,24L\n\n#define SN_setct_AuthRevResTBS          \"setct-AuthRevResTBS\"\n#define NID_setct_AuthRevResTBS         543\n#define OBJ_setct_AuthRevResTBS         OBJ_set_ctype,25L\n\n#define SN_setct_CapReqTBS              \"setct-CapReqTBS\"\n#define NID_setct_CapReqTBS             544\n#define OBJ_setct_CapReqTBS             OBJ_set_ctype,26L\n\n#define SN_setct_CapReqTBSX             \"setct-CapReqTBSX\"\n#define NID_setct_CapReqTBSX            545\n#define OBJ_setct_CapReqTBSX            OBJ_set_ctype,27L\n\n#define SN_setct_CapResData             \"setct-CapResData\"\n#define NID_setct_CapResData            546\n#define OBJ_setct_CapResData            OBJ_set_ctype,28L\n\n#define SN_setct_CapRevReqTBS           \"setct-CapRevReqTBS\"\n#define NID_setct_CapRevReqTBS          547\n#define OBJ_setct_CapRevReqTBS          OBJ_set_ctype,29L\n\n#define SN_setct_CapRevReqTBSX          \"setct-CapRevReqTBSX\"\n#define NID_setct_CapRevReqTBSX         548\n#define OBJ_setct_CapRevReqTBSX         OBJ_set_ctype,30L\n\n#define SN_setct_CapRevResData          \"setct-CapRevResData\"\n#define NID_setct_CapRevResData         549\n#define OBJ_setct_CapRevResData         OBJ_set_ctype,31L\n\n#define SN_setct_CredReqTBS             \"setct-CredReqTBS\"\n#define NID_setct_CredReqTBS            550\n#define OBJ_setct_CredReqTBS            OBJ_set_ctype,32L\n\n#define SN_setct_CredReqTBSX            \"setct-CredReqTBSX\"\n#define NID_setct_CredReqTBSX           551\n#define OBJ_setct_CredReqTBSX           OBJ_set_ctype,33L\n\n#define SN_setct_CredResData            \"setct-CredResData\"\n#define NID_setct_CredResData           552\n#define OBJ_setct_CredResData           OBJ_set_ctype,34L\n\n#define SN_setct_CredRevReqTBS          \"setct-CredRevReqTBS\"\n#define NID_setct_CredRevReqTBS         553\n#define OBJ_setct_CredRevReqTBS         OBJ_set_ctype,35L\n\n#define SN_setct_CredRevReqTBSX         \"setct-CredRevReqTBSX\"\n#define NID_setct_CredRevReqTBSX                554\n#define OBJ_setct_CredRevReqTBSX                OBJ_set_ctype,36L\n\n#define SN_setct_CredRevResData         \"setct-CredRevResData\"\n#define NID_setct_CredRevResData                555\n#define OBJ_setct_CredRevResData                OBJ_set_ctype,37L\n\n#define SN_setct_PCertReqData           \"setct-PCertReqData\"\n#define NID_setct_PCertReqData          556\n#define OBJ_setct_PCertReqData          OBJ_set_ctype,38L\n\n#define SN_setct_PCertResTBS            \"setct-PCertResTBS\"\n#define NID_setct_PCertResTBS           557\n#define OBJ_setct_PCertResTBS           OBJ_set_ctype,39L\n\n#define SN_setct_BatchAdminReqData              \"setct-BatchAdminReqData\"\n#define NID_setct_BatchAdminReqData             558\n#define OBJ_setct_BatchAdminReqData             OBJ_set_ctype,40L\n\n#define SN_setct_BatchAdminResData              \"setct-BatchAdminResData\"\n#define NID_setct_BatchAdminResData             559\n#define OBJ_setct_BatchAdminResData             OBJ_set_ctype,41L\n\n#define SN_setct_CardCInitResTBS                \"setct-CardCInitResTBS\"\n#define NID_setct_CardCInitResTBS               560\n#define OBJ_setct_CardCInitResTBS               OBJ_set_ctype,42L\n\n#define SN_setct_MeAqCInitResTBS                \"setct-MeAqCInitResTBS\"\n#define NID_setct_MeAqCInitResTBS               561\n#define OBJ_setct_MeAqCInitResTBS               OBJ_set_ctype,43L\n\n#define SN_setct_RegFormResTBS          \"setct-RegFormResTBS\"\n#define NID_setct_RegFormResTBS         562\n#define OBJ_setct_RegFormResTBS         OBJ_set_ctype,44L\n\n#define SN_setct_CertReqData            \"setct-CertReqData\"\n#define NID_setct_CertReqData           563\n#define OBJ_setct_CertReqData           OBJ_set_ctype,45L\n\n#define SN_setct_CertReqTBS             \"setct-CertReqTBS\"\n#define NID_setct_CertReqTBS            564\n#define OBJ_setct_CertReqTBS            OBJ_set_ctype,46L\n\n#define SN_setct_CertResData            \"setct-CertResData\"\n#define NID_setct_CertResData           565\n#define OBJ_setct_CertResData           OBJ_set_ctype,47L\n\n#define SN_setct_CertInqReqTBS          \"setct-CertInqReqTBS\"\n#define NID_setct_CertInqReqTBS         566\n#define OBJ_setct_CertInqReqTBS         OBJ_set_ctype,48L\n\n#define SN_setct_ErrorTBS               \"setct-ErrorTBS\"\n#define NID_setct_ErrorTBS              567\n#define OBJ_setct_ErrorTBS              OBJ_set_ctype,49L\n\n#define SN_setct_PIDualSignedTBE                \"setct-PIDualSignedTBE\"\n#define NID_setct_PIDualSignedTBE               568\n#define OBJ_setct_PIDualSignedTBE               OBJ_set_ctype,50L\n\n#define SN_setct_PIUnsignedTBE          \"setct-PIUnsignedTBE\"\n#define NID_setct_PIUnsignedTBE         569\n#define OBJ_setct_PIUnsignedTBE         OBJ_set_ctype,51L\n\n#define SN_setct_AuthReqTBE             \"setct-AuthReqTBE\"\n#define NID_setct_AuthReqTBE            570\n#define OBJ_setct_AuthReqTBE            OBJ_set_ctype,52L\n\n#define SN_setct_AuthResTBE             \"setct-AuthResTBE\"\n#define NID_setct_AuthResTBE            571\n#define OBJ_setct_AuthResTBE            OBJ_set_ctype,53L\n\n#define SN_setct_AuthResTBEX            \"setct-AuthResTBEX\"\n#define NID_setct_AuthResTBEX           572\n#define OBJ_setct_AuthResTBEX           OBJ_set_ctype,54L\n\n#define SN_setct_AuthTokenTBE           \"setct-AuthTokenTBE\"\n#define NID_setct_AuthTokenTBE          573\n#define OBJ_setct_AuthTokenTBE          OBJ_set_ctype,55L\n\n#define SN_setct_CapTokenTBE            \"setct-CapTokenTBE\"\n#define NID_setct_CapTokenTBE           574\n#define OBJ_setct_CapTokenTBE           OBJ_set_ctype,56L\n\n#define SN_setct_CapTokenTBEX           \"setct-CapTokenTBEX\"\n#define NID_setct_CapTokenTBEX          575\n#define OBJ_setct_CapTokenTBEX          OBJ_set_ctype,57L\n\n#define SN_setct_AcqCardCodeMsgTBE              \"setct-AcqCardCodeMsgTBE\"\n#define NID_setct_AcqCardCodeMsgTBE             576\n#define OBJ_setct_AcqCardCodeMsgTBE             OBJ_set_ctype,58L\n\n#define SN_setct_AuthRevReqTBE          \"setct-AuthRevReqTBE\"\n#define NID_setct_AuthRevReqTBE         577\n#define OBJ_setct_AuthRevReqTBE         OBJ_set_ctype,59L\n\n#define SN_setct_AuthRevResTBE          \"setct-AuthRevResTBE\"\n#define NID_setct_AuthRevResTBE         578\n#define OBJ_setct_AuthRevResTBE         OBJ_set_ctype,60L\n\n#define SN_setct_AuthRevResTBEB         \"setct-AuthRevResTBEB\"\n#define NID_setct_AuthRevResTBEB                579\n#define OBJ_setct_AuthRevResTBEB                OBJ_set_ctype,61L\n\n#define SN_setct_CapReqTBE              \"setct-CapReqTBE\"\n#define NID_setct_CapReqTBE             580\n#define OBJ_setct_CapReqTBE             OBJ_set_ctype,62L\n\n#define SN_setct_CapReqTBEX             \"setct-CapReqTBEX\"\n#define NID_setct_CapReqTBEX            581\n#define OBJ_setct_CapReqTBEX            OBJ_set_ctype,63L\n\n#define SN_setct_CapResTBE              \"setct-CapResTBE\"\n#define NID_setct_CapResTBE             582\n#define OBJ_setct_CapResTBE             OBJ_set_ctype,64L\n\n#define SN_setct_CapRevReqTBE           \"setct-CapRevReqTBE\"\n#define NID_setct_CapRevReqTBE          583\n#define OBJ_setct_CapRevReqTBE          OBJ_set_ctype,65L\n\n#define SN_setct_CapRevReqTBEX          \"setct-CapRevReqTBEX\"\n#define NID_setct_CapRevReqTBEX         584\n#define OBJ_setct_CapRevReqTBEX         OBJ_set_ctype,66L\n\n#define SN_setct_CapRevResTBE           \"setct-CapRevResTBE\"\n#define NID_setct_CapRevResTBE          585\n#define OBJ_setct_CapRevResTBE          OBJ_set_ctype,67L\n\n#define SN_setct_CredReqTBE             \"setct-CredReqTBE\"\n#define NID_setct_CredReqTBE            586\n#define OBJ_setct_CredReqTBE            OBJ_set_ctype,68L\n\n#define SN_setct_CredReqTBEX            \"setct-CredReqTBEX\"\n#define NID_setct_CredReqTBEX           587\n#define OBJ_setct_CredReqTBEX           OBJ_set_ctype,69L\n\n#define SN_setct_CredResTBE             \"setct-CredResTBE\"\n#define NID_setct_CredResTBE            588\n#define OBJ_setct_CredResTBE            OBJ_set_ctype,70L\n\n#define SN_setct_CredRevReqTBE          \"setct-CredRevReqTBE\"\n#define NID_setct_CredRevReqTBE         589\n#define OBJ_setct_CredRevReqTBE         OBJ_set_ctype,71L\n\n#define SN_setct_CredRevReqTBEX         \"setct-CredRevReqTBEX\"\n#define NID_setct_CredRevReqTBEX                590\n#define OBJ_setct_CredRevReqTBEX                OBJ_set_ctype,72L\n\n#define SN_setct_CredRevResTBE          \"setct-CredRevResTBE\"\n#define NID_setct_CredRevResTBE         591\n#define OBJ_setct_CredRevResTBE         OBJ_set_ctype,73L\n\n#define SN_setct_BatchAdminReqTBE               \"setct-BatchAdminReqTBE\"\n#define NID_setct_BatchAdminReqTBE              592\n#define OBJ_setct_BatchAdminReqTBE              OBJ_set_ctype,74L\n\n#define SN_setct_BatchAdminResTBE               \"setct-BatchAdminResTBE\"\n#define NID_setct_BatchAdminResTBE              593\n#define OBJ_setct_BatchAdminResTBE              OBJ_set_ctype,75L\n\n#define SN_setct_RegFormReqTBE          \"setct-RegFormReqTBE\"\n#define NID_setct_RegFormReqTBE         594\n#define OBJ_setct_RegFormReqTBE         OBJ_set_ctype,76L\n\n#define SN_setct_CertReqTBE             \"setct-CertReqTBE\"\n#define NID_setct_CertReqTBE            595\n#define OBJ_setct_CertReqTBE            OBJ_set_ctype,77L\n\n#define SN_setct_CertReqTBEX            \"setct-CertReqTBEX\"\n#define NID_setct_CertReqTBEX           596\n#define OBJ_setct_CertReqTBEX           OBJ_set_ctype,78L\n\n#define SN_setct_CertResTBE             \"setct-CertResTBE\"\n#define NID_setct_CertResTBE            597\n#define OBJ_setct_CertResTBE            OBJ_set_ctype,79L\n\n#define SN_setct_CRLNotificationTBS             \"setct-CRLNotificationTBS\"\n#define NID_setct_CRLNotificationTBS            598\n#define OBJ_setct_CRLNotificationTBS            OBJ_set_ctype,80L\n\n#define SN_setct_CRLNotificationResTBS          \"setct-CRLNotificationResTBS\"\n#define NID_setct_CRLNotificationResTBS         599\n#define OBJ_setct_CRLNotificationResTBS         OBJ_set_ctype,81L\n\n#define SN_setct_BCIDistributionTBS             \"setct-BCIDistributionTBS\"\n#define NID_setct_BCIDistributionTBS            600\n#define OBJ_setct_BCIDistributionTBS            OBJ_set_ctype,82L\n\n#define SN_setext_genCrypt              \"setext-genCrypt\"\n#define LN_setext_genCrypt              \"generic cryptogram\"\n#define NID_setext_genCrypt             601\n#define OBJ_setext_genCrypt             OBJ_set_msgExt,1L\n\n#define SN_setext_miAuth                \"setext-miAuth\"\n#define LN_setext_miAuth                \"merchant initiated auth\"\n#define NID_setext_miAuth               602\n#define OBJ_setext_miAuth               OBJ_set_msgExt,3L\n\n#define SN_setext_pinSecure             \"setext-pinSecure\"\n#define NID_setext_pinSecure            603\n#define OBJ_setext_pinSecure            OBJ_set_msgExt,4L\n\n#define SN_setext_pinAny                \"setext-pinAny\"\n#define NID_setext_pinAny               604\n#define OBJ_setext_pinAny               OBJ_set_msgExt,5L\n\n#define SN_setext_track2                \"setext-track2\"\n#define NID_setext_track2               605\n#define OBJ_setext_track2               OBJ_set_msgExt,7L\n\n#define SN_setext_cv            \"setext-cv\"\n#define LN_setext_cv            \"additional verification\"\n#define NID_setext_cv           606\n#define OBJ_setext_cv           OBJ_set_msgExt,8L\n\n#define SN_set_policy_root              \"set-policy-root\"\n#define NID_set_policy_root             607\n#define OBJ_set_policy_root             OBJ_set_policy,0L\n\n#define SN_setCext_hashedRoot           \"setCext-hashedRoot\"\n#define NID_setCext_hashedRoot          608\n#define OBJ_setCext_hashedRoot          OBJ_set_certExt,0L\n\n#define SN_setCext_certType             \"setCext-certType\"\n#define NID_setCext_certType            609\n#define OBJ_setCext_certType            OBJ_set_certExt,1L\n\n#define SN_setCext_merchData            \"setCext-merchData\"\n#define NID_setCext_merchData           610\n#define OBJ_setCext_merchData           OBJ_set_certExt,2L\n\n#define SN_setCext_cCertRequired                \"setCext-cCertRequired\"\n#define NID_setCext_cCertRequired               611\n#define OBJ_setCext_cCertRequired               OBJ_set_certExt,3L\n\n#define SN_setCext_tunneling            \"setCext-tunneling\"\n#define NID_setCext_tunneling           612\n#define OBJ_setCext_tunneling           OBJ_set_certExt,4L\n\n#define SN_setCext_setExt               \"setCext-setExt\"\n#define NID_setCext_setExt              613\n#define OBJ_setCext_setExt              OBJ_set_certExt,5L\n\n#define SN_setCext_setQualf             \"setCext-setQualf\"\n#define NID_setCext_setQualf            614\n#define OBJ_setCext_setQualf            OBJ_set_certExt,6L\n\n#define SN_setCext_PGWYcapabilities             \"setCext-PGWYcapabilities\"\n#define NID_setCext_PGWYcapabilities            615\n#define OBJ_setCext_PGWYcapabilities            OBJ_set_certExt,7L\n\n#define SN_setCext_TokenIdentifier              \"setCext-TokenIdentifier\"\n#define NID_setCext_TokenIdentifier             616\n#define OBJ_setCext_TokenIdentifier             OBJ_set_certExt,8L\n\n#define SN_setCext_Track2Data           \"setCext-Track2Data\"\n#define NID_setCext_Track2Data          617\n#define OBJ_setCext_Track2Data          OBJ_set_certExt,9L\n\n#define SN_setCext_TokenType            \"setCext-TokenType\"\n#define NID_setCext_TokenType           618\n#define OBJ_setCext_TokenType           OBJ_set_certExt,10L\n\n#define SN_setCext_IssuerCapabilities           \"setCext-IssuerCapabilities\"\n#define NID_setCext_IssuerCapabilities          619\n#define OBJ_setCext_IssuerCapabilities          OBJ_set_certExt,11L\n\n#define SN_setAttr_Cert         \"setAttr-Cert\"\n#define NID_setAttr_Cert                620\n#define OBJ_setAttr_Cert                OBJ_set_attr,0L\n\n#define SN_setAttr_PGWYcap              \"setAttr-PGWYcap\"\n#define LN_setAttr_PGWYcap              \"payment gateway capabilities\"\n#define NID_setAttr_PGWYcap             621\n#define OBJ_setAttr_PGWYcap             OBJ_set_attr,1L\n\n#define SN_setAttr_TokenType            \"setAttr-TokenType\"\n#define NID_setAttr_TokenType           622\n#define OBJ_setAttr_TokenType           OBJ_set_attr,2L\n\n#define SN_setAttr_IssCap               \"setAttr-IssCap\"\n#define LN_setAttr_IssCap               \"issuer capabilities\"\n#define NID_setAttr_IssCap              623\n#define OBJ_setAttr_IssCap              OBJ_set_attr,3L\n\n#define SN_set_rootKeyThumb             \"set-rootKeyThumb\"\n#define NID_set_rootKeyThumb            624\n#define OBJ_set_rootKeyThumb            OBJ_setAttr_Cert,0L\n\n#define SN_set_addPolicy                \"set-addPolicy\"\n#define NID_set_addPolicy               625\n#define OBJ_set_addPolicy               OBJ_setAttr_Cert,1L\n\n#define SN_setAttr_Token_EMV            \"setAttr-Token-EMV\"\n#define NID_setAttr_Token_EMV           626\n#define OBJ_setAttr_Token_EMV           OBJ_setAttr_TokenType,1L\n\n#define SN_setAttr_Token_B0Prime                \"setAttr-Token-B0Prime\"\n#define NID_setAttr_Token_B0Prime               627\n#define OBJ_setAttr_Token_B0Prime               OBJ_setAttr_TokenType,2L\n\n#define SN_setAttr_IssCap_CVM           \"setAttr-IssCap-CVM\"\n#define NID_setAttr_IssCap_CVM          628\n#define OBJ_setAttr_IssCap_CVM          OBJ_setAttr_IssCap,3L\n\n#define SN_setAttr_IssCap_T2            \"setAttr-IssCap-T2\"\n#define NID_setAttr_IssCap_T2           629\n#define OBJ_setAttr_IssCap_T2           OBJ_setAttr_IssCap,4L\n\n#define SN_setAttr_IssCap_Sig           \"setAttr-IssCap-Sig\"\n#define NID_setAttr_IssCap_Sig          630\n#define OBJ_setAttr_IssCap_Sig          OBJ_setAttr_IssCap,5L\n\n#define SN_setAttr_GenCryptgrm          \"setAttr-GenCryptgrm\"\n#define LN_setAttr_GenCryptgrm          \"generate cryptogram\"\n#define NID_setAttr_GenCryptgrm         631\n#define OBJ_setAttr_GenCryptgrm         OBJ_setAttr_IssCap_CVM,1L\n\n#define SN_setAttr_T2Enc                \"setAttr-T2Enc\"\n#define LN_setAttr_T2Enc                \"encrypted track 2\"\n#define NID_setAttr_T2Enc               632\n#define OBJ_setAttr_T2Enc               OBJ_setAttr_IssCap_T2,1L\n\n#define SN_setAttr_T2cleartxt           \"setAttr-T2cleartxt\"\n#define LN_setAttr_T2cleartxt           \"cleartext track 2\"\n#define NID_setAttr_T2cleartxt          633\n#define OBJ_setAttr_T2cleartxt          OBJ_setAttr_IssCap_T2,2L\n\n#define SN_setAttr_TokICCsig            \"setAttr-TokICCsig\"\n#define LN_setAttr_TokICCsig            \"ICC or token signature\"\n#define NID_setAttr_TokICCsig           634\n#define OBJ_setAttr_TokICCsig           OBJ_setAttr_IssCap_Sig,1L\n\n#define SN_setAttr_SecDevSig            \"setAttr-SecDevSig\"\n#define LN_setAttr_SecDevSig            \"secure device signature\"\n#define NID_setAttr_SecDevSig           635\n#define OBJ_setAttr_SecDevSig           OBJ_setAttr_IssCap_Sig,2L\n\n#define SN_set_brand_IATA_ATA           \"set-brand-IATA-ATA\"\n#define NID_set_brand_IATA_ATA          636\n#define OBJ_set_brand_IATA_ATA          OBJ_set_brand,1L\n\n#define SN_set_brand_Diners             \"set-brand-Diners\"\n#define NID_set_brand_Diners            637\n#define OBJ_set_brand_Diners            OBJ_set_brand,30L\n\n#define SN_set_brand_AmericanExpress            \"set-brand-AmericanExpress\"\n#define NID_set_brand_AmericanExpress           638\n#define OBJ_set_brand_AmericanExpress           OBJ_set_brand,34L\n\n#define SN_set_brand_JCB                \"set-brand-JCB\"\n#define NID_set_brand_JCB               639\n#define OBJ_set_brand_JCB               OBJ_set_brand,35L\n\n#define SN_set_brand_Visa               \"set-brand-Visa\"\n#define NID_set_brand_Visa              640\n#define OBJ_set_brand_Visa              OBJ_set_brand,4L\n\n#define SN_set_brand_MasterCard         \"set-brand-MasterCard\"\n#define NID_set_brand_MasterCard                641\n#define OBJ_set_brand_MasterCard                OBJ_set_brand,5L\n\n#define SN_set_brand_Novus              \"set-brand-Novus\"\n#define NID_set_brand_Novus             642\n#define OBJ_set_brand_Novus             OBJ_set_brand,6011L\n\n#define SN_des_cdmf             \"DES-CDMF\"\n#define LN_des_cdmf             \"des-cdmf\"\n#define NID_des_cdmf            643\n#define OBJ_des_cdmf            OBJ_rsadsi,3L,10L\n\n#define SN_rsaOAEPEncryptionSET         \"rsaOAEPEncryptionSET\"\n#define NID_rsaOAEPEncryptionSET                644\n#define OBJ_rsaOAEPEncryptionSET                OBJ_rsadsi,1L,1L,6L\n\n#define SN_ipsec3               \"Oakley-EC2N-3\"\n#define LN_ipsec3               \"ipsec3\"\n#define NID_ipsec3              749\n\n#define SN_ipsec4               \"Oakley-EC2N-4\"\n#define LN_ipsec4               \"ipsec4\"\n#define NID_ipsec4              750\n\n#define SN_whirlpool            \"whirlpool\"\n#define NID_whirlpool           804\n#define OBJ_whirlpool           OBJ_iso,0L,10118L,3L,0L,55L\n\n#define SN_cryptopro            \"cryptopro\"\n#define NID_cryptopro           805\n#define OBJ_cryptopro           OBJ_member_body,643L,2L,2L\n\n#define SN_cryptocom            \"cryptocom\"\n#define NID_cryptocom           806\n#define OBJ_cryptocom           OBJ_member_body,643L,2L,9L\n\n#define SN_id_tc26              \"id-tc26\"\n#define NID_id_tc26             974\n#define OBJ_id_tc26             OBJ_member_body,643L,7L,1L\n\n#define SN_id_GostR3411_94_with_GostR3410_2001          \"id-GostR3411-94-with-GostR3410-2001\"\n#define LN_id_GostR3411_94_with_GostR3410_2001          \"GOST R 34.11-94 with GOST R 34.10-2001\"\n#define NID_id_GostR3411_94_with_GostR3410_2001         807\n#define OBJ_id_GostR3411_94_with_GostR3410_2001         OBJ_cryptopro,3L\n\n#define SN_id_GostR3411_94_with_GostR3410_94            \"id-GostR3411-94-with-GostR3410-94\"\n#define LN_id_GostR3411_94_with_GostR3410_94            \"GOST R 34.11-94 with GOST R 34.10-94\"\n#define NID_id_GostR3411_94_with_GostR3410_94           808\n#define OBJ_id_GostR3411_94_with_GostR3410_94           OBJ_cryptopro,4L\n\n#define SN_id_GostR3411_94              \"md_gost94\"\n#define LN_id_GostR3411_94              \"GOST R 34.11-94\"\n#define NID_id_GostR3411_94             809\n#define OBJ_id_GostR3411_94             OBJ_cryptopro,9L\n\n#define SN_id_HMACGostR3411_94          \"id-HMACGostR3411-94\"\n#define LN_id_HMACGostR3411_94          \"HMAC GOST 34.11-94\"\n#define NID_id_HMACGostR3411_94         810\n#define OBJ_id_HMACGostR3411_94         OBJ_cryptopro,10L\n\n#define SN_id_GostR3410_2001            \"gost2001\"\n#define LN_id_GostR3410_2001            \"GOST R 34.10-2001\"\n#define NID_id_GostR3410_2001           811\n#define OBJ_id_GostR3410_2001           OBJ_cryptopro,19L\n\n#define SN_id_GostR3410_94              \"gost94\"\n#define LN_id_GostR3410_94              \"GOST R 34.10-94\"\n#define NID_id_GostR3410_94             812\n#define OBJ_id_GostR3410_94             OBJ_cryptopro,20L\n\n#define SN_id_Gost28147_89              \"gost89\"\n#define LN_id_Gost28147_89              \"GOST 28147-89\"\n#define NID_id_Gost28147_89             813\n#define OBJ_id_Gost28147_89             OBJ_cryptopro,21L\n\n#define SN_gost89_cnt           \"gost89-cnt\"\n#define NID_gost89_cnt          814\n\n#define SN_gost89_cnt_12                \"gost89-cnt-12\"\n#define NID_gost89_cnt_12               975\n\n#define SN_gost89_cbc           \"gost89-cbc\"\n#define NID_gost89_cbc          1009\n\n#define SN_gost89_ecb           \"gost89-ecb\"\n#define NID_gost89_ecb          1010\n\n#define SN_gost89_ctr           \"gost89-ctr\"\n#define NID_gost89_ctr          1011\n\n#define SN_id_Gost28147_89_MAC          \"gost-mac\"\n#define LN_id_Gost28147_89_MAC          \"GOST 28147-89 MAC\"\n#define NID_id_Gost28147_89_MAC         815\n#define OBJ_id_Gost28147_89_MAC         OBJ_cryptopro,22L\n\n#define SN_gost_mac_12          \"gost-mac-12\"\n#define NID_gost_mac_12         976\n\n#define SN_id_GostR3411_94_prf          \"prf-gostr3411-94\"\n#define LN_id_GostR3411_94_prf          \"GOST R 34.11-94 PRF\"\n#define NID_id_GostR3411_94_prf         816\n#define OBJ_id_GostR3411_94_prf         OBJ_cryptopro,23L\n\n#define SN_id_GostR3410_2001DH          \"id-GostR3410-2001DH\"\n#define LN_id_GostR3410_2001DH          \"GOST R 34.10-2001 DH\"\n#define NID_id_GostR3410_2001DH         817\n#define OBJ_id_GostR3410_2001DH         OBJ_cryptopro,98L\n\n#define SN_id_GostR3410_94DH            \"id-GostR3410-94DH\"\n#define LN_id_GostR3410_94DH            \"GOST R 34.10-94 DH\"\n#define NID_id_GostR3410_94DH           818\n#define OBJ_id_GostR3410_94DH           OBJ_cryptopro,99L\n\n#define SN_id_Gost28147_89_CryptoPro_KeyMeshing         \"id-Gost28147-89-CryptoPro-KeyMeshing\"\n#define NID_id_Gost28147_89_CryptoPro_KeyMeshing                819\n#define OBJ_id_Gost28147_89_CryptoPro_KeyMeshing                OBJ_cryptopro,14L,1L\n\n#define SN_id_Gost28147_89_None_KeyMeshing              \"id-Gost28147-89-None-KeyMeshing\"\n#define NID_id_Gost28147_89_None_KeyMeshing             820\n#define OBJ_id_Gost28147_89_None_KeyMeshing             OBJ_cryptopro,14L,0L\n\n#define SN_id_GostR3411_94_TestParamSet         \"id-GostR3411-94-TestParamSet\"\n#define NID_id_GostR3411_94_TestParamSet                821\n#define OBJ_id_GostR3411_94_TestParamSet                OBJ_cryptopro,30L,0L\n\n#define SN_id_GostR3411_94_CryptoProParamSet            \"id-GostR3411-94-CryptoProParamSet\"\n#define NID_id_GostR3411_94_CryptoProParamSet           822\n#define OBJ_id_GostR3411_94_CryptoProParamSet           OBJ_cryptopro,30L,1L\n\n#define SN_id_Gost28147_89_TestParamSet         \"id-Gost28147-89-TestParamSet\"\n#define NID_id_Gost28147_89_TestParamSet                823\n#define OBJ_id_Gost28147_89_TestParamSet                OBJ_cryptopro,31L,0L\n\n#define SN_id_Gost28147_89_CryptoPro_A_ParamSet         \"id-Gost28147-89-CryptoPro-A-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_A_ParamSet                824\n#define OBJ_id_Gost28147_89_CryptoPro_A_ParamSet                OBJ_cryptopro,31L,1L\n\n#define SN_id_Gost28147_89_CryptoPro_B_ParamSet         \"id-Gost28147-89-CryptoPro-B-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_B_ParamSet                825\n#define OBJ_id_Gost28147_89_CryptoPro_B_ParamSet                OBJ_cryptopro,31L,2L\n\n#define SN_id_Gost28147_89_CryptoPro_C_ParamSet         \"id-Gost28147-89-CryptoPro-C-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_C_ParamSet                826\n#define OBJ_id_Gost28147_89_CryptoPro_C_ParamSet                OBJ_cryptopro,31L,3L\n\n#define SN_id_Gost28147_89_CryptoPro_D_ParamSet         \"id-Gost28147-89-CryptoPro-D-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_D_ParamSet                827\n#define OBJ_id_Gost28147_89_CryptoPro_D_ParamSet                OBJ_cryptopro,31L,4L\n\n#define SN_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet         \"id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet                828\n#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_1_ParamSet                OBJ_cryptopro,31L,5L\n\n#define SN_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet         \"id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet                829\n#define OBJ_id_Gost28147_89_CryptoPro_Oscar_1_0_ParamSet                OBJ_cryptopro,31L,6L\n\n#define SN_id_Gost28147_89_CryptoPro_RIC_1_ParamSet             \"id-Gost28147-89-CryptoPro-RIC-1-ParamSet\"\n#define NID_id_Gost28147_89_CryptoPro_RIC_1_ParamSet            830\n#define OBJ_id_Gost28147_89_CryptoPro_RIC_1_ParamSet            OBJ_cryptopro,31L,7L\n\n#define SN_id_GostR3410_94_TestParamSet         \"id-GostR3410-94-TestParamSet\"\n#define NID_id_GostR3410_94_TestParamSet                831\n#define OBJ_id_GostR3410_94_TestParamSet                OBJ_cryptopro,32L,0L\n\n#define SN_id_GostR3410_94_CryptoPro_A_ParamSet         \"id-GostR3410-94-CryptoPro-A-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_A_ParamSet                832\n#define OBJ_id_GostR3410_94_CryptoPro_A_ParamSet                OBJ_cryptopro,32L,2L\n\n#define SN_id_GostR3410_94_CryptoPro_B_ParamSet         \"id-GostR3410-94-CryptoPro-B-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_B_ParamSet                833\n#define OBJ_id_GostR3410_94_CryptoPro_B_ParamSet                OBJ_cryptopro,32L,3L\n\n#define SN_id_GostR3410_94_CryptoPro_C_ParamSet         \"id-GostR3410-94-CryptoPro-C-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_C_ParamSet                834\n#define OBJ_id_GostR3410_94_CryptoPro_C_ParamSet                OBJ_cryptopro,32L,4L\n\n#define SN_id_GostR3410_94_CryptoPro_D_ParamSet         \"id-GostR3410-94-CryptoPro-D-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_D_ParamSet                835\n#define OBJ_id_GostR3410_94_CryptoPro_D_ParamSet                OBJ_cryptopro,32L,5L\n\n#define SN_id_GostR3410_94_CryptoPro_XchA_ParamSet              \"id-GostR3410-94-CryptoPro-XchA-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchA_ParamSet             836\n#define OBJ_id_GostR3410_94_CryptoPro_XchA_ParamSet             OBJ_cryptopro,33L,1L\n\n#define SN_id_GostR3410_94_CryptoPro_XchB_ParamSet              \"id-GostR3410-94-CryptoPro-XchB-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchB_ParamSet             837\n#define OBJ_id_GostR3410_94_CryptoPro_XchB_ParamSet             OBJ_cryptopro,33L,2L\n\n#define SN_id_GostR3410_94_CryptoPro_XchC_ParamSet              \"id-GostR3410-94-CryptoPro-XchC-ParamSet\"\n#define NID_id_GostR3410_94_CryptoPro_XchC_ParamSet             838\n#define OBJ_id_GostR3410_94_CryptoPro_XchC_ParamSet             OBJ_cryptopro,33L,3L\n\n#define SN_id_GostR3410_2001_TestParamSet               \"id-GostR3410-2001-TestParamSet\"\n#define NID_id_GostR3410_2001_TestParamSet              839\n#define OBJ_id_GostR3410_2001_TestParamSet              OBJ_cryptopro,35L,0L\n\n#define SN_id_GostR3410_2001_CryptoPro_A_ParamSet               \"id-GostR3410-2001-CryptoPro-A-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_A_ParamSet              840\n#define OBJ_id_GostR3410_2001_CryptoPro_A_ParamSet              OBJ_cryptopro,35L,1L\n\n#define SN_id_GostR3410_2001_CryptoPro_B_ParamSet               \"id-GostR3410-2001-CryptoPro-B-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_B_ParamSet              841\n#define OBJ_id_GostR3410_2001_CryptoPro_B_ParamSet              OBJ_cryptopro,35L,2L\n\n#define SN_id_GostR3410_2001_CryptoPro_C_ParamSet               \"id-GostR3410-2001-CryptoPro-C-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_C_ParamSet              842\n#define OBJ_id_GostR3410_2001_CryptoPro_C_ParamSet              OBJ_cryptopro,35L,3L\n\n#define SN_id_GostR3410_2001_CryptoPro_XchA_ParamSet            \"id-GostR3410-2001-CryptoPro-XchA-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_XchA_ParamSet           843\n#define OBJ_id_GostR3410_2001_CryptoPro_XchA_ParamSet           OBJ_cryptopro,36L,0L\n\n#define SN_id_GostR3410_2001_CryptoPro_XchB_ParamSet            \"id-GostR3410-2001-CryptoPro-XchB-ParamSet\"\n#define NID_id_GostR3410_2001_CryptoPro_XchB_ParamSet           844\n#define OBJ_id_GostR3410_2001_CryptoPro_XchB_ParamSet           OBJ_cryptopro,36L,1L\n\n#define SN_id_GostR3410_94_a            \"id-GostR3410-94-a\"\n#define NID_id_GostR3410_94_a           845\n#define OBJ_id_GostR3410_94_a           OBJ_id_GostR3410_94,1L\n\n#define SN_id_GostR3410_94_aBis         \"id-GostR3410-94-aBis\"\n#define NID_id_GostR3410_94_aBis                846\n#define OBJ_id_GostR3410_94_aBis                OBJ_id_GostR3410_94,2L\n\n#define SN_id_GostR3410_94_b            \"id-GostR3410-94-b\"\n#define NID_id_GostR3410_94_b           847\n#define OBJ_id_GostR3410_94_b           OBJ_id_GostR3410_94,3L\n\n#define SN_id_GostR3410_94_bBis         \"id-GostR3410-94-bBis\"\n#define NID_id_GostR3410_94_bBis                848\n#define OBJ_id_GostR3410_94_bBis                OBJ_id_GostR3410_94,4L\n\n#define SN_id_Gost28147_89_cc           \"id-Gost28147-89-cc\"\n#define LN_id_Gost28147_89_cc           \"GOST 28147-89 Cryptocom ParamSet\"\n#define NID_id_Gost28147_89_cc          849\n#define OBJ_id_Gost28147_89_cc          OBJ_cryptocom,1L,6L,1L\n\n#define SN_id_GostR3410_94_cc           \"gost94cc\"\n#define LN_id_GostR3410_94_cc           \"GOST 34.10-94 Cryptocom\"\n#define NID_id_GostR3410_94_cc          850\n#define OBJ_id_GostR3410_94_cc          OBJ_cryptocom,1L,5L,3L\n\n#define SN_id_GostR3410_2001_cc         \"gost2001cc\"\n#define LN_id_GostR3410_2001_cc         \"GOST 34.10-2001 Cryptocom\"\n#define NID_id_GostR3410_2001_cc                851\n#define OBJ_id_GostR3410_2001_cc                OBJ_cryptocom,1L,5L,4L\n\n#define SN_id_GostR3411_94_with_GostR3410_94_cc         \"id-GostR3411-94-with-GostR3410-94-cc\"\n#define LN_id_GostR3411_94_with_GostR3410_94_cc         \"GOST R 34.11-94 with GOST R 34.10-94 Cryptocom\"\n#define NID_id_GostR3411_94_with_GostR3410_94_cc                852\n#define OBJ_id_GostR3411_94_with_GostR3410_94_cc                OBJ_cryptocom,1L,3L,3L\n\n#define SN_id_GostR3411_94_with_GostR3410_2001_cc               \"id-GostR3411-94-with-GostR3410-2001-cc\"\n#define LN_id_GostR3411_94_with_GostR3410_2001_cc               \"GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom\"\n#define NID_id_GostR3411_94_with_GostR3410_2001_cc              853\n#define OBJ_id_GostR3411_94_with_GostR3410_2001_cc              OBJ_cryptocom,1L,3L,4L\n\n#define SN_id_GostR3410_2001_ParamSet_cc                \"id-GostR3410-2001-ParamSet-cc\"\n#define LN_id_GostR3410_2001_ParamSet_cc                \"GOST R 3410-2001 Parameter Set Cryptocom\"\n#define NID_id_GostR3410_2001_ParamSet_cc               854\n#define OBJ_id_GostR3410_2001_ParamSet_cc               OBJ_cryptocom,1L,8L,1L\n\n#define SN_id_tc26_algorithms           \"id-tc26-algorithms\"\n#define NID_id_tc26_algorithms          977\n#define OBJ_id_tc26_algorithms          OBJ_id_tc26,1L\n\n#define SN_id_tc26_sign         \"id-tc26-sign\"\n#define NID_id_tc26_sign                978\n#define OBJ_id_tc26_sign                OBJ_id_tc26_algorithms,1L\n\n#define SN_id_GostR3410_2012_256                \"gost2012_256\"\n#define LN_id_GostR3410_2012_256                \"GOST R 34.10-2012 with 256 bit modulus\"\n#define NID_id_GostR3410_2012_256               979\n#define OBJ_id_GostR3410_2012_256               OBJ_id_tc26_sign,1L\n\n#define SN_id_GostR3410_2012_512                \"gost2012_512\"\n#define LN_id_GostR3410_2012_512                \"GOST R 34.10-2012 with 512 bit modulus\"\n#define NID_id_GostR3410_2012_512               980\n#define OBJ_id_GostR3410_2012_512               OBJ_id_tc26_sign,2L\n\n#define SN_id_tc26_digest               \"id-tc26-digest\"\n#define NID_id_tc26_digest              981\n#define OBJ_id_tc26_digest              OBJ_id_tc26_algorithms,2L\n\n#define SN_id_GostR3411_2012_256                \"md_gost12_256\"\n#define LN_id_GostR3411_2012_256                \"GOST R 34.11-2012 with 256 bit hash\"\n#define NID_id_GostR3411_2012_256               982\n#define OBJ_id_GostR3411_2012_256               OBJ_id_tc26_digest,2L\n\n#define SN_id_GostR3411_2012_512                \"md_gost12_512\"\n#define LN_id_GostR3411_2012_512                \"GOST R 34.11-2012 with 512 bit hash\"\n#define NID_id_GostR3411_2012_512               983\n#define OBJ_id_GostR3411_2012_512               OBJ_id_tc26_digest,3L\n\n#define SN_id_tc26_signwithdigest               \"id-tc26-signwithdigest\"\n#define NID_id_tc26_signwithdigest              984\n#define OBJ_id_tc26_signwithdigest              OBJ_id_tc26_algorithms,3L\n\n#define SN_id_tc26_signwithdigest_gost3410_2012_256             \"id-tc26-signwithdigest-gost3410-2012-256\"\n#define LN_id_tc26_signwithdigest_gost3410_2012_256             \"GOST R 34.10-2012 with GOST R 34.11-2012 (256 bit)\"\n#define NID_id_tc26_signwithdigest_gost3410_2012_256            985\n#define OBJ_id_tc26_signwithdigest_gost3410_2012_256            OBJ_id_tc26_signwithdigest,2L\n\n#define SN_id_tc26_signwithdigest_gost3410_2012_512             \"id-tc26-signwithdigest-gost3410-2012-512\"\n#define LN_id_tc26_signwithdigest_gost3410_2012_512             \"GOST R 34.10-2012 with GOST R 34.11-2012 (512 bit)\"\n#define NID_id_tc26_signwithdigest_gost3410_2012_512            986\n#define OBJ_id_tc26_signwithdigest_gost3410_2012_512            OBJ_id_tc26_signwithdigest,3L\n\n#define SN_id_tc26_mac          \"id-tc26-mac\"\n#define NID_id_tc26_mac         987\n#define OBJ_id_tc26_mac         OBJ_id_tc26_algorithms,4L\n\n#define SN_id_tc26_hmac_gost_3411_2012_256              \"id-tc26-hmac-gost-3411-2012-256\"\n#define LN_id_tc26_hmac_gost_3411_2012_256              \"HMAC GOST 34.11-2012 256 bit\"\n#define NID_id_tc26_hmac_gost_3411_2012_256             988\n#define OBJ_id_tc26_hmac_gost_3411_2012_256             OBJ_id_tc26_mac,1L\n\n#define SN_id_tc26_hmac_gost_3411_2012_512              \"id-tc26-hmac-gost-3411-2012-512\"\n#define LN_id_tc26_hmac_gost_3411_2012_512              \"HMAC GOST 34.11-2012 512 bit\"\n#define NID_id_tc26_hmac_gost_3411_2012_512             989\n#define OBJ_id_tc26_hmac_gost_3411_2012_512             OBJ_id_tc26_mac,2L\n\n#define SN_id_tc26_cipher               \"id-tc26-cipher\"\n#define NID_id_tc26_cipher              990\n#define OBJ_id_tc26_cipher              OBJ_id_tc26_algorithms,5L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma          \"id-tc26-cipher-gostr3412-2015-magma\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma         1173\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma         OBJ_id_tc26_cipher,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm         \"id-tc26-cipher-gostr3412-2015-magma-ctracpkm\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm                1174\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm                OBJ_id_tc26_cipher_gostr3412_2015_magma,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac            \"id-tc26-cipher-gostr3412-2015-magma-ctracpkm-omac\"\n#define NID_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac           1175\n#define OBJ_id_tc26_cipher_gostr3412_2015_magma_ctracpkm_omac           OBJ_id_tc26_cipher_gostr3412_2015_magma,2L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik             \"id-tc26-cipher-gostr3412-2015-kuznyechik\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik            1176\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik            OBJ_id_tc26_cipher,2L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm            \"id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm           1177\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm           OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,1L\n\n#define SN_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac               \"id-tc26-cipher-gostr3412-2015-kuznyechik-ctracpkm-omac\"\n#define NID_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac              1178\n#define OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik_ctracpkm_omac              OBJ_id_tc26_cipher_gostr3412_2015_kuznyechik,2L\n\n#define SN_id_tc26_agreement            \"id-tc26-agreement\"\n#define NID_id_tc26_agreement           991\n#define OBJ_id_tc26_agreement           OBJ_id_tc26_algorithms,6L\n\n#define SN_id_tc26_agreement_gost_3410_2012_256         \"id-tc26-agreement-gost-3410-2012-256\"\n#define NID_id_tc26_agreement_gost_3410_2012_256                992\n#define OBJ_id_tc26_agreement_gost_3410_2012_256                OBJ_id_tc26_agreement,1L\n\n#define SN_id_tc26_agreement_gost_3410_2012_512         \"id-tc26-agreement-gost-3410-2012-512\"\n#define NID_id_tc26_agreement_gost_3410_2012_512                993\n#define OBJ_id_tc26_agreement_gost_3410_2012_512                OBJ_id_tc26_agreement,2L\n\n#define SN_id_tc26_wrap         \"id-tc26-wrap\"\n#define NID_id_tc26_wrap                1179\n#define OBJ_id_tc26_wrap                OBJ_id_tc26_algorithms,7L\n\n#define SN_id_tc26_wrap_gostr3412_2015_magma            \"id-tc26-wrap-gostr3412-2015-magma\"\n#define NID_id_tc26_wrap_gostr3412_2015_magma           1180\n#define OBJ_id_tc26_wrap_gostr3412_2015_magma           OBJ_id_tc26_wrap,1L\n\n#define SN_id_tc26_wrap_gostr3412_2015_magma_kexp15             \"id-tc26-wrap-gostr3412-2015-magma-kexp15\"\n#define NID_id_tc26_wrap_gostr3412_2015_magma_kexp15            1181\n#define OBJ_id_tc26_wrap_gostr3412_2015_magma_kexp15            OBJ_id_tc26_wrap_gostr3412_2015_magma,1L\n\n#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik               \"id-tc26-wrap-gostr3412-2015-kuznyechik\"\n#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik              1182\n#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik              OBJ_id_tc26_wrap,2L\n\n#define SN_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15                \"id-tc26-wrap-gostr3412-2015-kuznyechik-kexp15\"\n#define NID_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15               1183\n#define OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik_kexp15               OBJ_id_tc26_wrap_gostr3412_2015_kuznyechik,1L\n\n#define SN_id_tc26_constants            \"id-tc26-constants\"\n#define NID_id_tc26_constants           994\n#define OBJ_id_tc26_constants           OBJ_id_tc26,2L\n\n#define SN_id_tc26_sign_constants               \"id-tc26-sign-constants\"\n#define NID_id_tc26_sign_constants              995\n#define OBJ_id_tc26_sign_constants              OBJ_id_tc26_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_constants         \"id-tc26-gost-3410-2012-256-constants\"\n#define NID_id_tc26_gost_3410_2012_256_constants                1147\n#define OBJ_id_tc26_gost_3410_2012_256_constants                OBJ_id_tc26_sign_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetA         \"id-tc26-gost-3410-2012-256-paramSetA\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetA         \"GOST R 34.10-2012 (256 bit) ParamSet A\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetA                1148\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetA                OBJ_id_tc26_gost_3410_2012_256_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetB         \"id-tc26-gost-3410-2012-256-paramSetB\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetB         \"GOST R 34.10-2012 (256 bit) ParamSet B\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetB                1184\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetB                OBJ_id_tc26_gost_3410_2012_256_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetC         \"id-tc26-gost-3410-2012-256-paramSetC\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetC         \"GOST R 34.10-2012 (256 bit) ParamSet C\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetC                1185\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetC                OBJ_id_tc26_gost_3410_2012_256_constants,3L\n\n#define SN_id_tc26_gost_3410_2012_256_paramSetD         \"id-tc26-gost-3410-2012-256-paramSetD\"\n#define LN_id_tc26_gost_3410_2012_256_paramSetD         \"GOST R 34.10-2012 (256 bit) ParamSet D\"\n#define NID_id_tc26_gost_3410_2012_256_paramSetD                1186\n#define OBJ_id_tc26_gost_3410_2012_256_paramSetD                OBJ_id_tc26_gost_3410_2012_256_constants,4L\n\n#define SN_id_tc26_gost_3410_2012_512_constants         \"id-tc26-gost-3410-2012-512-constants\"\n#define NID_id_tc26_gost_3410_2012_512_constants                996\n#define OBJ_id_tc26_gost_3410_2012_512_constants                OBJ_id_tc26_sign_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetTest              \"id-tc26-gost-3410-2012-512-paramSetTest\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetTest              \"GOST R 34.10-2012 (512 bit) testing parameter set\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetTest             997\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetTest             OBJ_id_tc26_gost_3410_2012_512_constants,0L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetA         \"id-tc26-gost-3410-2012-512-paramSetA\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetA         \"GOST R 34.10-2012 (512 bit) ParamSet A\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetA                998\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetA                OBJ_id_tc26_gost_3410_2012_512_constants,1L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetB         \"id-tc26-gost-3410-2012-512-paramSetB\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetB         \"GOST R 34.10-2012 (512 bit) ParamSet B\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetB                999\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetB                OBJ_id_tc26_gost_3410_2012_512_constants,2L\n\n#define SN_id_tc26_gost_3410_2012_512_paramSetC         \"id-tc26-gost-3410-2012-512-paramSetC\"\n#define LN_id_tc26_gost_3410_2012_512_paramSetC         \"GOST R 34.10-2012 (512 bit) ParamSet C\"\n#define NID_id_tc26_gost_3410_2012_512_paramSetC                1149\n#define OBJ_id_tc26_gost_3410_2012_512_paramSetC                OBJ_id_tc26_gost_3410_2012_512_constants,3L\n\n#define SN_id_tc26_digest_constants             \"id-tc26-digest-constants\"\n#define NID_id_tc26_digest_constants            1000\n#define OBJ_id_tc26_digest_constants            OBJ_id_tc26_constants,2L\n\n#define SN_id_tc26_cipher_constants             \"id-tc26-cipher-constants\"\n#define NID_id_tc26_cipher_constants            1001\n#define OBJ_id_tc26_cipher_constants            OBJ_id_tc26_constants,5L\n\n#define SN_id_tc26_gost_28147_constants         \"id-tc26-gost-28147-constants\"\n#define NID_id_tc26_gost_28147_constants                1002\n#define OBJ_id_tc26_gost_28147_constants                OBJ_id_tc26_cipher_constants,1L\n\n#define SN_id_tc26_gost_28147_param_Z           \"id-tc26-gost-28147-param-Z\"\n#define LN_id_tc26_gost_28147_param_Z           \"GOST 28147-89 TC26 parameter set\"\n#define NID_id_tc26_gost_28147_param_Z          1003\n#define OBJ_id_tc26_gost_28147_param_Z          OBJ_id_tc26_gost_28147_constants,1L\n\n#define SN_INN          \"INN\"\n#define LN_INN          \"INN\"\n#define NID_INN         1004\n#define OBJ_INN         OBJ_member_body,643L,3L,131L,1L,1L\n\n#define SN_OGRN         \"OGRN\"\n#define LN_OGRN         \"OGRN\"\n#define NID_OGRN                1005\n#define OBJ_OGRN                OBJ_member_body,643L,100L,1L\n\n#define SN_SNILS                \"SNILS\"\n#define LN_SNILS                \"SNILS\"\n#define NID_SNILS               1006\n#define OBJ_SNILS               OBJ_member_body,643L,100L,3L\n\n#define SN_subjectSignTool              \"subjectSignTool\"\n#define LN_subjectSignTool              \"Signing Tool of Subject\"\n#define NID_subjectSignTool             1007\n#define OBJ_subjectSignTool             OBJ_member_body,643L,100L,111L\n\n#define SN_issuerSignTool               \"issuerSignTool\"\n#define LN_issuerSignTool               \"Signing Tool of Issuer\"\n#define NID_issuerSignTool              1008\n#define OBJ_issuerSignTool              OBJ_member_body,643L,100L,112L\n\n#define SN_grasshopper_ecb              \"grasshopper-ecb\"\n#define NID_grasshopper_ecb             1012\n\n#define SN_grasshopper_ctr              \"grasshopper-ctr\"\n#define NID_grasshopper_ctr             1013\n\n#define SN_grasshopper_ofb              \"grasshopper-ofb\"\n#define NID_grasshopper_ofb             1014\n\n#define SN_grasshopper_cbc              \"grasshopper-cbc\"\n#define NID_grasshopper_cbc             1015\n\n#define SN_grasshopper_cfb              \"grasshopper-cfb\"\n#define NID_grasshopper_cfb             1016\n\n#define SN_grasshopper_mac              \"grasshopper-mac\"\n#define NID_grasshopper_mac             1017\n\n#define SN_magma_ecb            \"magma-ecb\"\n#define NID_magma_ecb           1187\n\n#define SN_magma_ctr            \"magma-ctr\"\n#define NID_magma_ctr           1188\n\n#define SN_magma_ofb            \"magma-ofb\"\n#define NID_magma_ofb           1189\n\n#define SN_magma_cbc            \"magma-cbc\"\n#define NID_magma_cbc           1190\n\n#define SN_magma_cfb            \"magma-cfb\"\n#define NID_magma_cfb           1191\n\n#define SN_magma_mac            \"magma-mac\"\n#define NID_magma_mac           1192\n\n#define SN_camellia_128_cbc             \"CAMELLIA-128-CBC\"\n#define LN_camellia_128_cbc             \"camellia-128-cbc\"\n#define NID_camellia_128_cbc            751\n#define OBJ_camellia_128_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,2L\n\n#define SN_camellia_192_cbc             \"CAMELLIA-192-CBC\"\n#define LN_camellia_192_cbc             \"camellia-192-cbc\"\n#define NID_camellia_192_cbc            752\n#define OBJ_camellia_192_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,3L\n\n#define SN_camellia_256_cbc             \"CAMELLIA-256-CBC\"\n#define LN_camellia_256_cbc             \"camellia-256-cbc\"\n#define NID_camellia_256_cbc            753\n#define OBJ_camellia_256_cbc            1L,2L,392L,200011L,61L,1L,1L,1L,4L\n\n#define SN_id_camellia128_wrap          \"id-camellia128-wrap\"\n#define NID_id_camellia128_wrap         907\n#define OBJ_id_camellia128_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,2L\n\n#define SN_id_camellia192_wrap          \"id-camellia192-wrap\"\n#define NID_id_camellia192_wrap         908\n#define OBJ_id_camellia192_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,3L\n\n#define SN_id_camellia256_wrap          \"id-camellia256-wrap\"\n#define NID_id_camellia256_wrap         909\n#define OBJ_id_camellia256_wrap         1L,2L,392L,200011L,61L,1L,1L,3L,4L\n\n#define OBJ_ntt_ds              0L,3L,4401L,5L\n\n#define OBJ_camellia            OBJ_ntt_ds,3L,1L,9L\n\n#define SN_camellia_128_ecb             \"CAMELLIA-128-ECB\"\n#define LN_camellia_128_ecb             \"camellia-128-ecb\"\n#define NID_camellia_128_ecb            754\n#define OBJ_camellia_128_ecb            OBJ_camellia,1L\n\n#define SN_camellia_128_ofb128          \"CAMELLIA-128-OFB\"\n#define LN_camellia_128_ofb128          \"camellia-128-ofb\"\n#define NID_camellia_128_ofb128         766\n#define OBJ_camellia_128_ofb128         OBJ_camellia,3L\n\n#define SN_camellia_128_cfb128          \"CAMELLIA-128-CFB\"\n#define LN_camellia_128_cfb128          \"camellia-128-cfb\"\n#define NID_camellia_128_cfb128         757\n#define OBJ_camellia_128_cfb128         OBJ_camellia,4L\n\n#define SN_camellia_128_gcm             \"CAMELLIA-128-GCM\"\n#define LN_camellia_128_gcm             \"camellia-128-gcm\"\n#define NID_camellia_128_gcm            961\n#define OBJ_camellia_128_gcm            OBJ_camellia,6L\n\n#define SN_camellia_128_ccm             \"CAMELLIA-128-CCM\"\n#define LN_camellia_128_ccm             \"camellia-128-ccm\"\n#define NID_camellia_128_ccm            962\n#define OBJ_camellia_128_ccm            OBJ_camellia,7L\n\n#define SN_camellia_128_ctr             \"CAMELLIA-128-CTR\"\n#define LN_camellia_128_ctr             \"camellia-128-ctr\"\n#define NID_camellia_128_ctr            963\n#define OBJ_camellia_128_ctr            OBJ_camellia,9L\n\n#define SN_camellia_128_cmac            \"CAMELLIA-128-CMAC\"\n#define LN_camellia_128_cmac            \"camellia-128-cmac\"\n#define NID_camellia_128_cmac           964\n#define OBJ_camellia_128_cmac           OBJ_camellia,10L\n\n#define SN_camellia_192_ecb             \"CAMELLIA-192-ECB\"\n#define LN_camellia_192_ecb             \"camellia-192-ecb\"\n#define NID_camellia_192_ecb            755\n#define OBJ_camellia_192_ecb            OBJ_camellia,21L\n\n#define SN_camellia_192_ofb128          \"CAMELLIA-192-OFB\"\n#define LN_camellia_192_ofb128          \"camellia-192-ofb\"\n#define NID_camellia_192_ofb128         767\n#define OBJ_camellia_192_ofb128         OBJ_camellia,23L\n\n#define SN_camellia_192_cfb128          \"CAMELLIA-192-CFB\"\n#define LN_camellia_192_cfb128          \"camellia-192-cfb\"\n#define NID_camellia_192_cfb128         758\n#define OBJ_camellia_192_cfb128         OBJ_camellia,24L\n\n#define SN_camellia_192_gcm             \"CAMELLIA-192-GCM\"\n#define LN_camellia_192_gcm             \"camellia-192-gcm\"\n#define NID_camellia_192_gcm            965\n#define OBJ_camellia_192_gcm            OBJ_camellia,26L\n\n#define SN_camellia_192_ccm             \"CAMELLIA-192-CCM\"\n#define LN_camellia_192_ccm             \"camellia-192-ccm\"\n#define NID_camellia_192_ccm            966\n#define OBJ_camellia_192_ccm            OBJ_camellia,27L\n\n#define SN_camellia_192_ctr             \"CAMELLIA-192-CTR\"\n#define LN_camellia_192_ctr             \"camellia-192-ctr\"\n#define NID_camellia_192_ctr            967\n#define OBJ_camellia_192_ctr            OBJ_camellia,29L\n\n#define SN_camellia_192_cmac            \"CAMELLIA-192-CMAC\"\n#define LN_camellia_192_cmac            \"camellia-192-cmac\"\n#define NID_camellia_192_cmac           968\n#define OBJ_camellia_192_cmac           OBJ_camellia,30L\n\n#define SN_camellia_256_ecb             \"CAMELLIA-256-ECB\"\n#define LN_camellia_256_ecb             \"camellia-256-ecb\"\n#define NID_camellia_256_ecb            756\n#define OBJ_camellia_256_ecb            OBJ_camellia,41L\n\n#define SN_camellia_256_ofb128          \"CAMELLIA-256-OFB\"\n#define LN_camellia_256_ofb128          \"camellia-256-ofb\"\n#define NID_camellia_256_ofb128         768\n#define OBJ_camellia_256_ofb128         OBJ_camellia,43L\n\n#define SN_camellia_256_cfb128          \"CAMELLIA-256-CFB\"\n#define LN_camellia_256_cfb128          \"camellia-256-cfb\"\n#define NID_camellia_256_cfb128         759\n#define OBJ_camellia_256_cfb128         OBJ_camellia,44L\n\n#define SN_camellia_256_gcm             \"CAMELLIA-256-GCM\"\n#define LN_camellia_256_gcm             \"camellia-256-gcm\"\n#define NID_camellia_256_gcm            969\n#define OBJ_camellia_256_gcm            OBJ_camellia,46L\n\n#define SN_camellia_256_ccm             \"CAMELLIA-256-CCM\"\n#define LN_camellia_256_ccm             \"camellia-256-ccm\"\n#define NID_camellia_256_ccm            970\n#define OBJ_camellia_256_ccm            OBJ_camellia,47L\n\n#define SN_camellia_256_ctr             \"CAMELLIA-256-CTR\"\n#define LN_camellia_256_ctr             \"camellia-256-ctr\"\n#define NID_camellia_256_ctr            971\n#define OBJ_camellia_256_ctr            OBJ_camellia,49L\n\n#define SN_camellia_256_cmac            \"CAMELLIA-256-CMAC\"\n#define LN_camellia_256_cmac            \"camellia-256-cmac\"\n#define NID_camellia_256_cmac           972\n#define OBJ_camellia_256_cmac           OBJ_camellia,50L\n\n#define SN_camellia_128_cfb1            \"CAMELLIA-128-CFB1\"\n#define LN_camellia_128_cfb1            \"camellia-128-cfb1\"\n#define NID_camellia_128_cfb1           760\n\n#define SN_camellia_192_cfb1            \"CAMELLIA-192-CFB1\"\n#define LN_camellia_192_cfb1            \"camellia-192-cfb1\"\n#define NID_camellia_192_cfb1           761\n\n#define SN_camellia_256_cfb1            \"CAMELLIA-256-CFB1\"\n#define LN_camellia_256_cfb1            \"camellia-256-cfb1\"\n#define NID_camellia_256_cfb1           762\n\n#define SN_camellia_128_cfb8            \"CAMELLIA-128-CFB8\"\n#define LN_camellia_128_cfb8            \"camellia-128-cfb8\"\n#define NID_camellia_128_cfb8           763\n\n#define SN_camellia_192_cfb8            \"CAMELLIA-192-CFB8\"\n#define LN_camellia_192_cfb8            \"camellia-192-cfb8\"\n#define NID_camellia_192_cfb8           764\n\n#define SN_camellia_256_cfb8            \"CAMELLIA-256-CFB8\"\n#define LN_camellia_256_cfb8            \"camellia-256-cfb8\"\n#define NID_camellia_256_cfb8           765\n\n#define OBJ_aria                1L,2L,410L,200046L,1L,1L\n\n#define SN_aria_128_ecb         \"ARIA-128-ECB\"\n#define LN_aria_128_ecb         \"aria-128-ecb\"\n#define NID_aria_128_ecb                1065\n#define OBJ_aria_128_ecb                OBJ_aria,1L\n\n#define SN_aria_128_cbc         \"ARIA-128-CBC\"\n#define LN_aria_128_cbc         \"aria-128-cbc\"\n#define NID_aria_128_cbc                1066\n#define OBJ_aria_128_cbc                OBJ_aria,2L\n\n#define SN_aria_128_cfb128              \"ARIA-128-CFB\"\n#define LN_aria_128_cfb128              \"aria-128-cfb\"\n#define NID_aria_128_cfb128             1067\n#define OBJ_aria_128_cfb128             OBJ_aria,3L\n\n#define SN_aria_128_ofb128              \"ARIA-128-OFB\"\n#define LN_aria_128_ofb128              \"aria-128-ofb\"\n#define NID_aria_128_ofb128             1068\n#define OBJ_aria_128_ofb128             OBJ_aria,4L\n\n#define SN_aria_128_ctr         \"ARIA-128-CTR\"\n#define LN_aria_128_ctr         \"aria-128-ctr\"\n#define NID_aria_128_ctr                1069\n#define OBJ_aria_128_ctr                OBJ_aria,5L\n\n#define SN_aria_192_ecb         \"ARIA-192-ECB\"\n#define LN_aria_192_ecb         \"aria-192-ecb\"\n#define NID_aria_192_ecb                1070\n#define OBJ_aria_192_ecb                OBJ_aria,6L\n\n#define SN_aria_192_cbc         \"ARIA-192-CBC\"\n#define LN_aria_192_cbc         \"aria-192-cbc\"\n#define NID_aria_192_cbc                1071\n#define OBJ_aria_192_cbc                OBJ_aria,7L\n\n#define SN_aria_192_cfb128              \"ARIA-192-CFB\"\n#define LN_aria_192_cfb128              \"aria-192-cfb\"\n#define NID_aria_192_cfb128             1072\n#define OBJ_aria_192_cfb128             OBJ_aria,8L\n\n#define SN_aria_192_ofb128              \"ARIA-192-OFB\"\n#define LN_aria_192_ofb128              \"aria-192-ofb\"\n#define NID_aria_192_ofb128             1073\n#define OBJ_aria_192_ofb128             OBJ_aria,9L\n\n#define SN_aria_192_ctr         \"ARIA-192-CTR\"\n#define LN_aria_192_ctr         \"aria-192-ctr\"\n#define NID_aria_192_ctr                1074\n#define OBJ_aria_192_ctr                OBJ_aria,10L\n\n#define SN_aria_256_ecb         \"ARIA-256-ECB\"\n#define LN_aria_256_ecb         \"aria-256-ecb\"\n#define NID_aria_256_ecb                1075\n#define OBJ_aria_256_ecb                OBJ_aria,11L\n\n#define SN_aria_256_cbc         \"ARIA-256-CBC\"\n#define LN_aria_256_cbc         \"aria-256-cbc\"\n#define NID_aria_256_cbc                1076\n#define OBJ_aria_256_cbc                OBJ_aria,12L\n\n#define SN_aria_256_cfb128              \"ARIA-256-CFB\"\n#define LN_aria_256_cfb128              \"aria-256-cfb\"\n#define NID_aria_256_cfb128             1077\n#define OBJ_aria_256_cfb128             OBJ_aria,13L\n\n#define SN_aria_256_ofb128              \"ARIA-256-OFB\"\n#define LN_aria_256_ofb128              \"aria-256-ofb\"\n#define NID_aria_256_ofb128             1078\n#define OBJ_aria_256_ofb128             OBJ_aria,14L\n\n#define SN_aria_256_ctr         \"ARIA-256-CTR\"\n#define LN_aria_256_ctr         \"aria-256-ctr\"\n#define NID_aria_256_ctr                1079\n#define OBJ_aria_256_ctr                OBJ_aria,15L\n\n#define SN_aria_128_cfb1                \"ARIA-128-CFB1\"\n#define LN_aria_128_cfb1                \"aria-128-cfb1\"\n#define NID_aria_128_cfb1               1080\n\n#define SN_aria_192_cfb1                \"ARIA-192-CFB1\"\n#define LN_aria_192_cfb1                \"aria-192-cfb1\"\n#define NID_aria_192_cfb1               1081\n\n#define SN_aria_256_cfb1                \"ARIA-256-CFB1\"\n#define LN_aria_256_cfb1                \"aria-256-cfb1\"\n#define NID_aria_256_cfb1               1082\n\n#define SN_aria_128_cfb8                \"ARIA-128-CFB8\"\n#define LN_aria_128_cfb8                \"aria-128-cfb8\"\n#define NID_aria_128_cfb8               1083\n\n#define SN_aria_192_cfb8                \"ARIA-192-CFB8\"\n#define LN_aria_192_cfb8                \"aria-192-cfb8\"\n#define NID_aria_192_cfb8               1084\n\n#define SN_aria_256_cfb8                \"ARIA-256-CFB8\"\n#define LN_aria_256_cfb8                \"aria-256-cfb8\"\n#define NID_aria_256_cfb8               1085\n\n#define SN_aria_128_ccm         \"ARIA-128-CCM\"\n#define LN_aria_128_ccm         \"aria-128-ccm\"\n#define NID_aria_128_ccm                1120\n#define OBJ_aria_128_ccm                OBJ_aria,37L\n\n#define SN_aria_192_ccm         \"ARIA-192-CCM\"\n#define LN_aria_192_ccm         \"aria-192-ccm\"\n#define NID_aria_192_ccm                1121\n#define OBJ_aria_192_ccm                OBJ_aria,38L\n\n#define SN_aria_256_ccm         \"ARIA-256-CCM\"\n#define LN_aria_256_ccm         \"aria-256-ccm\"\n#define NID_aria_256_ccm                1122\n#define OBJ_aria_256_ccm                OBJ_aria,39L\n\n#define SN_aria_128_gcm         \"ARIA-128-GCM\"\n#define LN_aria_128_gcm         \"aria-128-gcm\"\n#define NID_aria_128_gcm                1123\n#define OBJ_aria_128_gcm                OBJ_aria,34L\n\n#define SN_aria_192_gcm         \"ARIA-192-GCM\"\n#define LN_aria_192_gcm         \"aria-192-gcm\"\n#define NID_aria_192_gcm                1124\n#define OBJ_aria_192_gcm                OBJ_aria,35L\n\n#define SN_aria_256_gcm         \"ARIA-256-GCM\"\n#define LN_aria_256_gcm         \"aria-256-gcm\"\n#define NID_aria_256_gcm                1125\n#define OBJ_aria_256_gcm                OBJ_aria,36L\n\n#define SN_kisa         \"KISA\"\n#define LN_kisa         \"kisa\"\n#define NID_kisa                773\n#define OBJ_kisa                OBJ_member_body,410L,200004L\n\n#define SN_seed_ecb             \"SEED-ECB\"\n#define LN_seed_ecb             \"seed-ecb\"\n#define NID_seed_ecb            776\n#define OBJ_seed_ecb            OBJ_kisa,1L,3L\n\n#define SN_seed_cbc             \"SEED-CBC\"\n#define LN_seed_cbc             \"seed-cbc\"\n#define NID_seed_cbc            777\n#define OBJ_seed_cbc            OBJ_kisa,1L,4L\n\n#define SN_seed_cfb128          \"SEED-CFB\"\n#define LN_seed_cfb128          \"seed-cfb\"\n#define NID_seed_cfb128         779\n#define OBJ_seed_cfb128         OBJ_kisa,1L,5L\n\n#define SN_seed_ofb128          \"SEED-OFB\"\n#define LN_seed_ofb128          \"seed-ofb\"\n#define NID_seed_ofb128         778\n#define OBJ_seed_ofb128         OBJ_kisa,1L,6L\n\n#define SN_sm4_ecb              \"SM4-ECB\"\n#define LN_sm4_ecb              \"sm4-ecb\"\n#define NID_sm4_ecb             1133\n#define OBJ_sm4_ecb             OBJ_sm_scheme,104L,1L\n\n#define SN_sm4_cbc              \"SM4-CBC\"\n#define LN_sm4_cbc              \"sm4-cbc\"\n#define NID_sm4_cbc             1134\n#define OBJ_sm4_cbc             OBJ_sm_scheme,104L,2L\n\n#define SN_sm4_ofb128           \"SM4-OFB\"\n#define LN_sm4_ofb128           \"sm4-ofb\"\n#define NID_sm4_ofb128          1135\n#define OBJ_sm4_ofb128          OBJ_sm_scheme,104L,3L\n\n#define SN_sm4_cfb128           \"SM4-CFB\"\n#define LN_sm4_cfb128           \"sm4-cfb\"\n#define NID_sm4_cfb128          1137\n#define OBJ_sm4_cfb128          OBJ_sm_scheme,104L,4L\n\n#define SN_sm4_cfb1             \"SM4-CFB1\"\n#define LN_sm4_cfb1             \"sm4-cfb1\"\n#define NID_sm4_cfb1            1136\n#define OBJ_sm4_cfb1            OBJ_sm_scheme,104L,5L\n\n#define SN_sm4_cfb8             \"SM4-CFB8\"\n#define LN_sm4_cfb8             \"sm4-cfb8\"\n#define NID_sm4_cfb8            1138\n#define OBJ_sm4_cfb8            OBJ_sm_scheme,104L,6L\n\n#define SN_sm4_ctr              \"SM4-CTR\"\n#define LN_sm4_ctr              \"sm4-ctr\"\n#define NID_sm4_ctr             1139\n#define OBJ_sm4_ctr             OBJ_sm_scheme,104L,7L\n\n#define SN_hmac         \"HMAC\"\n#define LN_hmac         \"hmac\"\n#define NID_hmac                855\n\n#define SN_cmac         \"CMAC\"\n#define LN_cmac         \"cmac\"\n#define NID_cmac                894\n\n#define SN_rc4_hmac_md5         \"RC4-HMAC-MD5\"\n#define LN_rc4_hmac_md5         \"rc4-hmac-md5\"\n#define NID_rc4_hmac_md5                915\n\n#define SN_aes_128_cbc_hmac_sha1                \"AES-128-CBC-HMAC-SHA1\"\n#define LN_aes_128_cbc_hmac_sha1                \"aes-128-cbc-hmac-sha1\"\n#define NID_aes_128_cbc_hmac_sha1               916\n\n#define SN_aes_192_cbc_hmac_sha1                \"AES-192-CBC-HMAC-SHA1\"\n#define LN_aes_192_cbc_hmac_sha1                \"aes-192-cbc-hmac-sha1\"\n#define NID_aes_192_cbc_hmac_sha1               917\n\n#define SN_aes_256_cbc_hmac_sha1                \"AES-256-CBC-HMAC-SHA1\"\n#define LN_aes_256_cbc_hmac_sha1                \"aes-256-cbc-hmac-sha1\"\n#define NID_aes_256_cbc_hmac_sha1               918\n\n#define SN_aes_128_cbc_hmac_sha256              \"AES-128-CBC-HMAC-SHA256\"\n#define LN_aes_128_cbc_hmac_sha256              \"aes-128-cbc-hmac-sha256\"\n#define NID_aes_128_cbc_hmac_sha256             948\n\n#define SN_aes_192_cbc_hmac_sha256              \"AES-192-CBC-HMAC-SHA256\"\n#define LN_aes_192_cbc_hmac_sha256              \"aes-192-cbc-hmac-sha256\"\n#define NID_aes_192_cbc_hmac_sha256             949\n\n#define SN_aes_256_cbc_hmac_sha256              \"AES-256-CBC-HMAC-SHA256\"\n#define LN_aes_256_cbc_hmac_sha256              \"aes-256-cbc-hmac-sha256\"\n#define NID_aes_256_cbc_hmac_sha256             950\n\n#define SN_chacha20_poly1305            \"ChaCha20-Poly1305\"\n#define LN_chacha20_poly1305            \"chacha20-poly1305\"\n#define NID_chacha20_poly1305           1018\n\n#define SN_chacha20             \"ChaCha20\"\n#define LN_chacha20             \"chacha20\"\n#define NID_chacha20            1019\n\n#define SN_dhpublicnumber               \"dhpublicnumber\"\n#define LN_dhpublicnumber               \"X9.42 DH\"\n#define NID_dhpublicnumber              920\n#define OBJ_dhpublicnumber              OBJ_ISO_US,10046L,2L,1L\n\n#define SN_brainpoolP160r1              \"brainpoolP160r1\"\n#define NID_brainpoolP160r1             921\n#define OBJ_brainpoolP160r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,1L\n\n#define SN_brainpoolP160t1              \"brainpoolP160t1\"\n#define NID_brainpoolP160t1             922\n#define OBJ_brainpoolP160t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,2L\n\n#define SN_brainpoolP192r1              \"brainpoolP192r1\"\n#define NID_brainpoolP192r1             923\n#define OBJ_brainpoolP192r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,3L\n\n#define SN_brainpoolP192t1              \"brainpoolP192t1\"\n#define NID_brainpoolP192t1             924\n#define OBJ_brainpoolP192t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,4L\n\n#define SN_brainpoolP224r1              \"brainpoolP224r1\"\n#define NID_brainpoolP224r1             925\n#define OBJ_brainpoolP224r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,5L\n\n#define SN_brainpoolP224t1              \"brainpoolP224t1\"\n#define NID_brainpoolP224t1             926\n#define OBJ_brainpoolP224t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,6L\n\n#define SN_brainpoolP256r1              \"brainpoolP256r1\"\n#define NID_brainpoolP256r1             927\n#define OBJ_brainpoolP256r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,7L\n\n#define SN_brainpoolP256t1              \"brainpoolP256t1\"\n#define NID_brainpoolP256t1             928\n#define OBJ_brainpoolP256t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,8L\n\n#define SN_brainpoolP320r1              \"brainpoolP320r1\"\n#define NID_brainpoolP320r1             929\n#define OBJ_brainpoolP320r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,9L\n\n#define SN_brainpoolP320t1              \"brainpoolP320t1\"\n#define NID_brainpoolP320t1             930\n#define OBJ_brainpoolP320t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,10L\n\n#define SN_brainpoolP384r1              \"brainpoolP384r1\"\n#define NID_brainpoolP384r1             931\n#define OBJ_brainpoolP384r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,11L\n\n#define SN_brainpoolP384t1              \"brainpoolP384t1\"\n#define NID_brainpoolP384t1             932\n#define OBJ_brainpoolP384t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,12L\n\n#define SN_brainpoolP512r1              \"brainpoolP512r1\"\n#define NID_brainpoolP512r1             933\n#define OBJ_brainpoolP512r1             1L,3L,36L,3L,3L,2L,8L,1L,1L,13L\n\n#define SN_brainpoolP512t1              \"brainpoolP512t1\"\n#define NID_brainpoolP512t1             934\n#define OBJ_brainpoolP512t1             1L,3L,36L,3L,3L,2L,8L,1L,1L,14L\n\n#define OBJ_x9_63_scheme                1L,3L,133L,16L,840L,63L,0L\n\n#define OBJ_secg_scheme         OBJ_certicom_arc,1L\n\n#define SN_dhSinglePass_stdDH_sha1kdf_scheme            \"dhSinglePass-stdDH-sha1kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha1kdf_scheme           936\n#define OBJ_dhSinglePass_stdDH_sha1kdf_scheme           OBJ_x9_63_scheme,2L\n\n#define SN_dhSinglePass_stdDH_sha224kdf_scheme          \"dhSinglePass-stdDH-sha224kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha224kdf_scheme         937\n#define OBJ_dhSinglePass_stdDH_sha224kdf_scheme         OBJ_secg_scheme,11L,0L\n\n#define SN_dhSinglePass_stdDH_sha256kdf_scheme          \"dhSinglePass-stdDH-sha256kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha256kdf_scheme         938\n#define OBJ_dhSinglePass_stdDH_sha256kdf_scheme         OBJ_secg_scheme,11L,1L\n\n#define SN_dhSinglePass_stdDH_sha384kdf_scheme          \"dhSinglePass-stdDH-sha384kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha384kdf_scheme         939\n#define OBJ_dhSinglePass_stdDH_sha384kdf_scheme         OBJ_secg_scheme,11L,2L\n\n#define SN_dhSinglePass_stdDH_sha512kdf_scheme          \"dhSinglePass-stdDH-sha512kdf-scheme\"\n#define NID_dhSinglePass_stdDH_sha512kdf_scheme         940\n#define OBJ_dhSinglePass_stdDH_sha512kdf_scheme         OBJ_secg_scheme,11L,3L\n\n#define SN_dhSinglePass_cofactorDH_sha1kdf_scheme               \"dhSinglePass-cofactorDH-sha1kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha1kdf_scheme              941\n#define OBJ_dhSinglePass_cofactorDH_sha1kdf_scheme              OBJ_x9_63_scheme,3L\n\n#define SN_dhSinglePass_cofactorDH_sha224kdf_scheme             \"dhSinglePass-cofactorDH-sha224kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha224kdf_scheme            942\n#define OBJ_dhSinglePass_cofactorDH_sha224kdf_scheme            OBJ_secg_scheme,14L,0L\n\n#define SN_dhSinglePass_cofactorDH_sha256kdf_scheme             \"dhSinglePass-cofactorDH-sha256kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha256kdf_scheme            943\n#define OBJ_dhSinglePass_cofactorDH_sha256kdf_scheme            OBJ_secg_scheme,14L,1L\n\n#define SN_dhSinglePass_cofactorDH_sha384kdf_scheme             \"dhSinglePass-cofactorDH-sha384kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha384kdf_scheme            944\n#define OBJ_dhSinglePass_cofactorDH_sha384kdf_scheme            OBJ_secg_scheme,14L,2L\n\n#define SN_dhSinglePass_cofactorDH_sha512kdf_scheme             \"dhSinglePass-cofactorDH-sha512kdf-scheme\"\n#define NID_dhSinglePass_cofactorDH_sha512kdf_scheme            945\n#define OBJ_dhSinglePass_cofactorDH_sha512kdf_scheme            OBJ_secg_scheme,14L,3L\n\n#define SN_dh_std_kdf           \"dh-std-kdf\"\n#define NID_dh_std_kdf          946\n\n#define SN_dh_cofactor_kdf              \"dh-cofactor-kdf\"\n#define NID_dh_cofactor_kdf             947\n\n#define SN_ct_precert_scts              \"ct_precert_scts\"\n#define LN_ct_precert_scts              \"CT Precertificate SCTs\"\n#define NID_ct_precert_scts             951\n#define OBJ_ct_precert_scts             1L,3L,6L,1L,4L,1L,11129L,2L,4L,2L\n\n#define SN_ct_precert_poison            \"ct_precert_poison\"\n#define LN_ct_precert_poison            \"CT Precertificate Poison\"\n#define NID_ct_precert_poison           952\n#define OBJ_ct_precert_poison           1L,3L,6L,1L,4L,1L,11129L,2L,4L,3L\n\n#define SN_ct_precert_signer            \"ct_precert_signer\"\n#define LN_ct_precert_signer            \"CT Precertificate Signer\"\n#define NID_ct_precert_signer           953\n#define OBJ_ct_precert_signer           1L,3L,6L,1L,4L,1L,11129L,2L,4L,4L\n\n#define SN_ct_cert_scts         \"ct_cert_scts\"\n#define LN_ct_cert_scts         \"CT Certificate SCTs\"\n#define NID_ct_cert_scts                954\n#define OBJ_ct_cert_scts                1L,3L,6L,1L,4L,1L,11129L,2L,4L,5L\n\n#define SN_jurisdictionLocalityName             \"jurisdictionL\"\n#define LN_jurisdictionLocalityName             \"jurisdictionLocalityName\"\n#define NID_jurisdictionLocalityName            955\n#define OBJ_jurisdictionLocalityName            1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,1L\n\n#define SN_jurisdictionStateOrProvinceName              \"jurisdictionST\"\n#define LN_jurisdictionStateOrProvinceName              \"jurisdictionStateOrProvinceName\"\n#define NID_jurisdictionStateOrProvinceName             956\n#define OBJ_jurisdictionStateOrProvinceName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,2L\n\n#define SN_jurisdictionCountryName              \"jurisdictionC\"\n#define LN_jurisdictionCountryName              \"jurisdictionCountryName\"\n#define NID_jurisdictionCountryName             957\n#define OBJ_jurisdictionCountryName             1L,3L,6L,1L,4L,1L,311L,60L,2L,1L,3L\n\n#define SN_id_scrypt            \"id-scrypt\"\n#define LN_id_scrypt            \"scrypt\"\n#define NID_id_scrypt           973\n#define OBJ_id_scrypt           1L,3L,6L,1L,4L,1L,11591L,4L,11L\n\n#define SN_tls1_prf             \"TLS1-PRF\"\n#define LN_tls1_prf             \"tls1-prf\"\n#define NID_tls1_prf            1021\n\n#define SN_hkdf         \"HKDF\"\n#define LN_hkdf         \"hkdf\"\n#define NID_hkdf                1036\n\n#define SN_id_pkinit            \"id-pkinit\"\n#define NID_id_pkinit           1031\n#define OBJ_id_pkinit           1L,3L,6L,1L,5L,2L,3L\n\n#define SN_pkInitClientAuth             \"pkInitClientAuth\"\n#define LN_pkInitClientAuth             \"PKINIT Client Auth\"\n#define NID_pkInitClientAuth            1032\n#define OBJ_pkInitClientAuth            OBJ_id_pkinit,4L\n\n#define SN_pkInitKDC            \"pkInitKDC\"\n#define LN_pkInitKDC            \"Signing KDC Response\"\n#define NID_pkInitKDC           1033\n#define OBJ_pkInitKDC           OBJ_id_pkinit,5L\n\n#define SN_X25519               \"X25519\"\n#define NID_X25519              1034\n#define OBJ_X25519              1L,3L,101L,110L\n\n#define SN_X448         \"X448\"\n#define NID_X448                1035\n#define OBJ_X448                1L,3L,101L,111L\n\n#define SN_ED25519              \"ED25519\"\n#define NID_ED25519             1087\n#define OBJ_ED25519             1L,3L,101L,112L\n\n#define SN_ED448                \"ED448\"\n#define NID_ED448               1088\n#define OBJ_ED448               1L,3L,101L,113L\n\n#define SN_kx_rsa               \"KxRSA\"\n#define LN_kx_rsa               \"kx-rsa\"\n#define NID_kx_rsa              1037\n\n#define SN_kx_ecdhe             \"KxECDHE\"\n#define LN_kx_ecdhe             \"kx-ecdhe\"\n#define NID_kx_ecdhe            1038\n\n#define SN_kx_dhe               \"KxDHE\"\n#define LN_kx_dhe               \"kx-dhe\"\n#define NID_kx_dhe              1039\n\n#define SN_kx_ecdhe_psk         \"KxECDHE-PSK\"\n#define LN_kx_ecdhe_psk         \"kx-ecdhe-psk\"\n#define NID_kx_ecdhe_psk                1040\n\n#define SN_kx_dhe_psk           \"KxDHE-PSK\"\n#define LN_kx_dhe_psk           \"kx-dhe-psk\"\n#define NID_kx_dhe_psk          1041\n\n#define SN_kx_rsa_psk           \"KxRSA_PSK\"\n#define LN_kx_rsa_psk           \"kx-rsa-psk\"\n#define NID_kx_rsa_psk          1042\n\n#define SN_kx_psk               \"KxPSK\"\n#define LN_kx_psk               \"kx-psk\"\n#define NID_kx_psk              1043\n\n#define SN_kx_srp               \"KxSRP\"\n#define LN_kx_srp               \"kx-srp\"\n#define NID_kx_srp              1044\n\n#define SN_kx_gost              \"KxGOST\"\n#define LN_kx_gost              \"kx-gost\"\n#define NID_kx_gost             1045\n\n#define SN_kx_any               \"KxANY\"\n#define LN_kx_any               \"kx-any\"\n#define NID_kx_any              1063\n\n#define SN_auth_rsa             \"AuthRSA\"\n#define LN_auth_rsa             \"auth-rsa\"\n#define NID_auth_rsa            1046\n\n#define SN_auth_ecdsa           \"AuthECDSA\"\n#define LN_auth_ecdsa           \"auth-ecdsa\"\n#define NID_auth_ecdsa          1047\n\n#define SN_auth_psk             \"AuthPSK\"\n#define LN_auth_psk             \"auth-psk\"\n#define NID_auth_psk            1048\n\n#define SN_auth_dss             \"AuthDSS\"\n#define LN_auth_dss             \"auth-dss\"\n#define NID_auth_dss            1049\n\n#define SN_auth_gost01          \"AuthGOST01\"\n#define LN_auth_gost01          \"auth-gost01\"\n#define NID_auth_gost01         1050\n\n#define SN_auth_gost12          \"AuthGOST12\"\n#define LN_auth_gost12          \"auth-gost12\"\n#define NID_auth_gost12         1051\n\n#define SN_auth_srp             \"AuthSRP\"\n#define LN_auth_srp             \"auth-srp\"\n#define NID_auth_srp            1052\n\n#define SN_auth_null            \"AuthNULL\"\n#define LN_auth_null            \"auth-null\"\n#define NID_auth_null           1053\n\n#define SN_auth_any             \"AuthANY\"\n#define LN_auth_any             \"auth-any\"\n#define NID_auth_any            1064\n\n#define SN_poly1305             \"Poly1305\"\n#define LN_poly1305             \"poly1305\"\n#define NID_poly1305            1061\n\n#define SN_siphash              \"SipHash\"\n#define LN_siphash              \"siphash\"\n#define NID_siphash             1062\n\n#define SN_ffdhe2048            \"ffdhe2048\"\n#define NID_ffdhe2048           1126\n\n#define SN_ffdhe3072            \"ffdhe3072\"\n#define NID_ffdhe3072           1127\n\n#define SN_ffdhe4096            \"ffdhe4096\"\n#define NID_ffdhe4096           1128\n\n#define SN_ffdhe6144            \"ffdhe6144\"\n#define NID_ffdhe6144           1129\n\n#define SN_ffdhe8192            \"ffdhe8192\"\n#define NID_ffdhe8192           1130\n\n#define SN_ISO_UA               \"ISO-UA\"\n#define NID_ISO_UA              1150\n#define OBJ_ISO_UA              OBJ_member_body,804L\n\n#define SN_ua_pki               \"ua-pki\"\n#define NID_ua_pki              1151\n#define OBJ_ua_pki              OBJ_ISO_UA,2L,1L,1L,1L\n\n#define SN_dstu28147            \"dstu28147\"\n#define LN_dstu28147            \"DSTU Gost 28147-2009\"\n#define NID_dstu28147           1152\n#define OBJ_dstu28147           OBJ_ua_pki,1L,1L,1L\n\n#define SN_dstu28147_ofb                \"dstu28147-ofb\"\n#define LN_dstu28147_ofb                \"DSTU Gost 28147-2009 OFB mode\"\n#define NID_dstu28147_ofb               1153\n#define OBJ_dstu28147_ofb               OBJ_dstu28147,2L\n\n#define SN_dstu28147_cfb                \"dstu28147-cfb\"\n#define LN_dstu28147_cfb                \"DSTU Gost 28147-2009 CFB mode\"\n#define NID_dstu28147_cfb               1154\n#define OBJ_dstu28147_cfb               OBJ_dstu28147,3L\n\n#define SN_dstu28147_wrap               \"dstu28147-wrap\"\n#define LN_dstu28147_wrap               \"DSTU Gost 28147-2009 key wrap\"\n#define NID_dstu28147_wrap              1155\n#define OBJ_dstu28147_wrap              OBJ_dstu28147,5L\n\n#define SN_hmacWithDstu34311            \"hmacWithDstu34311\"\n#define LN_hmacWithDstu34311            \"HMAC DSTU Gost 34311-95\"\n#define NID_hmacWithDstu34311           1156\n#define OBJ_hmacWithDstu34311           OBJ_ua_pki,1L,1L,2L\n\n#define SN_dstu34311            \"dstu34311\"\n#define LN_dstu34311            \"DSTU Gost 34311-95\"\n#define NID_dstu34311           1157\n#define OBJ_dstu34311           OBJ_ua_pki,1L,2L,1L\n\n#define SN_dstu4145le           \"dstu4145le\"\n#define LN_dstu4145le           \"DSTU 4145-2002 little endian\"\n#define NID_dstu4145le          1158\n#define OBJ_dstu4145le          OBJ_ua_pki,1L,3L,1L,1L\n\n#define SN_dstu4145be           \"dstu4145be\"\n#define LN_dstu4145be           \"DSTU 4145-2002 big endian\"\n#define NID_dstu4145be          1159\n#define OBJ_dstu4145be          OBJ_dstu4145le,1L,1L\n\n#define SN_uacurve0             \"uacurve0\"\n#define LN_uacurve0             \"DSTU curve 0\"\n#define NID_uacurve0            1160\n#define OBJ_uacurve0            OBJ_dstu4145le,2L,0L\n\n#define SN_uacurve1             \"uacurve1\"\n#define LN_uacurve1             \"DSTU curve 1\"\n#define NID_uacurve1            1161\n#define OBJ_uacurve1            OBJ_dstu4145le,2L,1L\n\n#define SN_uacurve2             \"uacurve2\"\n#define LN_uacurve2             \"DSTU curve 2\"\n#define NID_uacurve2            1162\n#define OBJ_uacurve2            OBJ_dstu4145le,2L,2L\n\n#define SN_uacurve3             \"uacurve3\"\n#define LN_uacurve3             \"DSTU curve 3\"\n#define NID_uacurve3            1163\n#define OBJ_uacurve3            OBJ_dstu4145le,2L,3L\n\n#define SN_uacurve4             \"uacurve4\"\n#define LN_uacurve4             \"DSTU curve 4\"\n#define NID_uacurve4            1164\n#define OBJ_uacurve4            OBJ_dstu4145le,2L,4L\n\n#define SN_uacurve5             \"uacurve5\"\n#define LN_uacurve5             \"DSTU curve 5\"\n#define NID_uacurve5            1165\n#define OBJ_uacurve5            OBJ_dstu4145le,2L,5L\n\n#define SN_uacurve6             \"uacurve6\"\n#define LN_uacurve6             \"DSTU curve 6\"\n#define NID_uacurve6            1166\n#define OBJ_uacurve6            OBJ_dstu4145le,2L,6L\n\n#define SN_uacurve7             \"uacurve7\"\n#define LN_uacurve7             \"DSTU curve 7\"\n#define NID_uacurve7            1167\n#define OBJ_uacurve7            OBJ_dstu4145le,2L,7L\n\n#define SN_uacurve8             \"uacurve8\"\n#define LN_uacurve8             \"DSTU curve 8\"\n#define NID_uacurve8            1168\n#define OBJ_uacurve8            OBJ_dstu4145le,2L,8L\n\n#define SN_uacurve9             \"uacurve9\"\n#define LN_uacurve9             \"DSTU curve 9\"\n#define NID_uacurve9            1169\n#define OBJ_uacurve9            OBJ_dstu4145le,2L,9L\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/objects.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OBJECTS_H\n# define HEADER_OBJECTS_H\n\n# include <openssl/obj_mac.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/objectserr.h>\n\n# define OBJ_NAME_TYPE_UNDEF             0x00\n# define OBJ_NAME_TYPE_MD_METH           0x01\n# define OBJ_NAME_TYPE_CIPHER_METH       0x02\n# define OBJ_NAME_TYPE_PKEY_METH         0x03\n# define OBJ_NAME_TYPE_COMP_METH         0x04\n# define OBJ_NAME_TYPE_NUM               0x05\n\n# define OBJ_NAME_ALIAS                  0x8000\n\n# define OBJ_BSEARCH_VALUE_ON_NOMATCH            0x01\n# define OBJ_BSEARCH_FIRST_VALUE_ON_MATCH        0x02\n\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct obj_name_st {\n    int type;\n    int alias;\n    const char *name;\n    const char *data;\n} OBJ_NAME;\n\n# define         OBJ_create_and_add_object(a,b,c) OBJ_create(a,b,c)\n\nint OBJ_NAME_init(void);\nint OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),\n                       int (*cmp_func) (const char *, const char *),\n                       void (*free_func) (const char *, int, const char *));\nconst char *OBJ_NAME_get(const char *name, int type);\nint OBJ_NAME_add(const char *name, int type, const char *data);\nint OBJ_NAME_remove(const char *name, int type);\nvoid OBJ_NAME_cleanup(int type); /* -1 for everything */\nvoid OBJ_NAME_do_all(int type, void (*fn) (const OBJ_NAME *, void *arg),\n                     void *arg);\nvoid OBJ_NAME_do_all_sorted(int type,\n                            void (*fn) (const OBJ_NAME *, void *arg),\n                            void *arg);\n\nASN1_OBJECT *OBJ_dup(const ASN1_OBJECT *o);\nASN1_OBJECT *OBJ_nid2obj(int n);\nconst char *OBJ_nid2ln(int n);\nconst char *OBJ_nid2sn(int n);\nint OBJ_obj2nid(const ASN1_OBJECT *o);\nASN1_OBJECT *OBJ_txt2obj(const char *s, int no_name);\nint OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name);\nint OBJ_txt2nid(const char *s);\nint OBJ_ln2nid(const char *s);\nint OBJ_sn2nid(const char *s);\nint OBJ_cmp(const ASN1_OBJECT *a, const ASN1_OBJECT *b);\nconst void *OBJ_bsearch_(const void *key, const void *base, int num, int size,\n                         int (*cmp) (const void *, const void *));\nconst void *OBJ_bsearch_ex_(const void *key, const void *base, int num,\n                            int size,\n                            int (*cmp) (const void *, const void *),\n                            int flags);\n\n# define _DECLARE_OBJ_BSEARCH_CMP_FN(scope, type1, type2, nm)    \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *, const void *); \\\n  static int nm##_cmp(type1 const *, type2 const *); \\\n  scope type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)\n\n# define DECLARE_OBJ_BSEARCH_CMP_FN(type1, type2, cmp)   \\\n  _DECLARE_OBJ_BSEARCH_CMP_FN(static, type1, type2, cmp)\n# define DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm)     \\\n  type2 * OBJ_bsearch_##nm(type1 *key, type2 const *base, int num)\n\n/*-\n * Unsolved problem: if a type is actually a pointer type, like\n * nid_triple is, then its impossible to get a const where you need\n * it. Consider:\n *\n * typedef int nid_triple[3];\n * const void *a_;\n * const nid_triple const *a = a_;\n *\n * The assignment discards a const because what you really want is:\n *\n * const int const * const *a = a_;\n *\n * But if you do that, you lose the fact that a is an array of 3 ints,\n * which breaks comparison functions.\n *\n * Thus we end up having to cast, sadly, or unpack the\n * declarations. Or, as I finally did in this case, declare nid_triple\n * to be a struct, which it should have been in the first place.\n *\n * Ben, August 2008.\n *\n * Also, strictly speaking not all types need be const, but handling\n * the non-constness means a lot of complication, and in practice\n * comparison routines do always not touch their arguments.\n */\n\n# define IMPLEMENT_OBJ_BSEARCH_CMP_FN(type1, type2, nm)  \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)    \\\n      { \\\n      type1 const *a = a_; \\\n      type2 const *b = b_; \\\n      return nm##_cmp(a,b); \\\n      } \\\n  static type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \\\n      { \\\n      return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \\\n                                        nm##_cmp_BSEARCH_CMP_FN); \\\n      } \\\n      extern void dummy_prototype(void)\n\n# define IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN(type1, type2, nm)   \\\n  static int nm##_cmp_BSEARCH_CMP_FN(const void *a_, const void *b_)    \\\n      { \\\n      type1 const *a = a_; \\\n      type2 const *b = b_; \\\n      return nm##_cmp(a,b); \\\n      } \\\n  type2 *OBJ_bsearch_##nm(type1 *key, type2 const *base, int num) \\\n      { \\\n      return (type2 *)OBJ_bsearch_(key, base, num, sizeof(type2), \\\n                                        nm##_cmp_BSEARCH_CMP_FN); \\\n      } \\\n      extern void dummy_prototype(void)\n\n# define OBJ_bsearch(type1,key,type2,base,num,cmp)                              \\\n  ((type2 *)OBJ_bsearch_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \\\n                         num,sizeof(type2),                             \\\n                         ((void)CHECKED_PTR_OF(type1,cmp##_type_1),     \\\n                          (void)CHECKED_PTR_OF(type2,cmp##_type_2),     \\\n                          cmp##_BSEARCH_CMP_FN)))\n\n# define OBJ_bsearch_ex(type1,key,type2,base,num,cmp,flags)                      \\\n  ((type2 *)OBJ_bsearch_ex_(CHECKED_PTR_OF(type1,key),CHECKED_PTR_OF(type2,base), \\\n                         num,sizeof(type2),                             \\\n                         ((void)CHECKED_PTR_OF(type1,cmp##_type_1),     \\\n                          (void)type_2=CHECKED_PTR_OF(type2,cmp##_type_2), \\\n                          cmp##_BSEARCH_CMP_FN)),flags)\n\nint OBJ_new_nid(int num);\nint OBJ_add_object(const ASN1_OBJECT *obj);\nint OBJ_create(const char *oid, const char *sn, const char *ln);\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define OBJ_cleanup() while(0) continue\n#endif\nint OBJ_create_objects(BIO *in);\n\nsize_t OBJ_length(const ASN1_OBJECT *obj);\nconst unsigned char *OBJ_get0_data(const ASN1_OBJECT *obj);\n\nint OBJ_find_sigid_algs(int signid, int *pdig_nid, int *ppkey_nid);\nint OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid);\nint OBJ_add_sigid(int signid, int dig_id, int pkey_id);\nvoid OBJ_sigid_free(void);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/objectserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OBJERR_H\n# define HEADER_OBJERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_OBJ_strings(void);\n\n/*\n * OBJ function codes.\n */\n# define OBJ_F_OBJ_ADD_OBJECT                             105\n# define OBJ_F_OBJ_ADD_SIGID                              107\n# define OBJ_F_OBJ_CREATE                                 100\n# define OBJ_F_OBJ_DUP                                    101\n# define OBJ_F_OBJ_NAME_NEW_INDEX                         106\n# define OBJ_F_OBJ_NID2LN                                 102\n# define OBJ_F_OBJ_NID2OBJ                                103\n# define OBJ_F_OBJ_NID2SN                                 104\n# define OBJ_F_OBJ_TXT2OBJ                                108\n\n/*\n * OBJ reason codes.\n */\n# define OBJ_R_OID_EXISTS                                 102\n# define OBJ_R_UNKNOWN_NID                                101\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ocsp.h",
    "content": "/*\n * Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OCSP_H\n# define HEADER_OCSP_H\n\n#include <openssl/opensslconf.h>\n\n/*\n * These definitions are outside the OPENSSL_NO_OCSP guard because although for\n * historical reasons they have OCSP_* names, they can actually be used\n * independently of OCSP. E.g. see RFC5280\n */\n/*-\n *   CRLReason ::= ENUMERATED {\n *        unspecified             (0),\n *        keyCompromise           (1),\n *        cACompromise            (2),\n *        affiliationChanged      (3),\n *        superseded              (4),\n *        cessationOfOperation    (5),\n *        certificateHold         (6),\n *        removeFromCRL           (8) }\n */\n#  define OCSP_REVOKED_STATUS_NOSTATUS               -1\n#  define OCSP_REVOKED_STATUS_UNSPECIFIED             0\n#  define OCSP_REVOKED_STATUS_KEYCOMPROMISE           1\n#  define OCSP_REVOKED_STATUS_CACOMPROMISE            2\n#  define OCSP_REVOKED_STATUS_AFFILIATIONCHANGED      3\n#  define OCSP_REVOKED_STATUS_SUPERSEDED              4\n#  define OCSP_REVOKED_STATUS_CESSATIONOFOPERATION    5\n#  define OCSP_REVOKED_STATUS_CERTIFICATEHOLD         6\n#  define OCSP_REVOKED_STATUS_REMOVEFROMCRL           8\n\n\n# ifndef OPENSSL_NO_OCSP\n\n#  include <openssl/ossl_typ.h>\n#  include <openssl/x509.h>\n#  include <openssl/x509v3.h>\n#  include <openssl/safestack.h>\n#  include <openssl/ocsperr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Various flags and values */\n\n#  define OCSP_DEFAULT_NONCE_LENGTH       16\n\n#  define OCSP_NOCERTS                    0x1\n#  define OCSP_NOINTERN                   0x2\n#  define OCSP_NOSIGS                     0x4\n#  define OCSP_NOCHAIN                    0x8\n#  define OCSP_NOVERIFY                   0x10\n#  define OCSP_NOEXPLICIT                 0x20\n#  define OCSP_NOCASIGN                   0x40\n#  define OCSP_NODELEGATED                0x80\n#  define OCSP_NOCHECKS                   0x100\n#  define OCSP_TRUSTOTHER                 0x200\n#  define OCSP_RESPID_KEY                 0x400\n#  define OCSP_NOTIME                     0x800\n\ntypedef struct ocsp_cert_id_st OCSP_CERTID;\n\nDEFINE_STACK_OF(OCSP_CERTID)\n\ntypedef struct ocsp_one_request_st OCSP_ONEREQ;\n\nDEFINE_STACK_OF(OCSP_ONEREQ)\n\ntypedef struct ocsp_req_info_st OCSP_REQINFO;\ntypedef struct ocsp_signature_st OCSP_SIGNATURE;\ntypedef struct ocsp_request_st OCSP_REQUEST;\n\n#  define OCSP_RESPONSE_STATUS_SUCCESSFUL           0\n#  define OCSP_RESPONSE_STATUS_MALFORMEDREQUEST     1\n#  define OCSP_RESPONSE_STATUS_INTERNALERROR        2\n#  define OCSP_RESPONSE_STATUS_TRYLATER             3\n#  define OCSP_RESPONSE_STATUS_SIGREQUIRED          5\n#  define OCSP_RESPONSE_STATUS_UNAUTHORIZED         6\n\ntypedef struct ocsp_resp_bytes_st OCSP_RESPBYTES;\n\n#  define V_OCSP_RESPID_NAME 0\n#  define V_OCSP_RESPID_KEY  1\n\nDEFINE_STACK_OF(OCSP_RESPID)\n\ntypedef struct ocsp_revoked_info_st OCSP_REVOKEDINFO;\n\n#  define V_OCSP_CERTSTATUS_GOOD    0\n#  define V_OCSP_CERTSTATUS_REVOKED 1\n#  define V_OCSP_CERTSTATUS_UNKNOWN 2\n\ntypedef struct ocsp_cert_status_st OCSP_CERTSTATUS;\ntypedef struct ocsp_single_response_st OCSP_SINGLERESP;\n\nDEFINE_STACK_OF(OCSP_SINGLERESP)\n\ntypedef struct ocsp_response_data_st OCSP_RESPDATA;\n\ntypedef struct ocsp_basic_response_st OCSP_BASICRESP;\n\ntypedef struct ocsp_crl_id_st OCSP_CRLID;\ntypedef struct ocsp_service_locator_st OCSP_SERVICELOC;\n\n#  define PEM_STRING_OCSP_REQUEST \"OCSP REQUEST\"\n#  define PEM_STRING_OCSP_RESPONSE \"OCSP RESPONSE\"\n\n#  define d2i_OCSP_REQUEST_bio(bp,p) ASN1_d2i_bio_of(OCSP_REQUEST,OCSP_REQUEST_new,d2i_OCSP_REQUEST,bp,p)\n\n#  define d2i_OCSP_RESPONSE_bio(bp,p) ASN1_d2i_bio_of(OCSP_RESPONSE,OCSP_RESPONSE_new,d2i_OCSP_RESPONSE,bp,p)\n\n#  define PEM_read_bio_OCSP_REQUEST(bp,x,cb) (OCSP_REQUEST *)PEM_ASN1_read_bio( \\\n     (char *(*)())d2i_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST, \\\n     bp,(char **)(x),cb,NULL)\n\n#  define PEM_read_bio_OCSP_RESPONSE(bp,x,cb) (OCSP_RESPONSE *)PEM_ASN1_read_bio(\\\n     (char *(*)())d2i_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE, \\\n     bp,(char **)(x),cb,NULL)\n\n#  define PEM_write_bio_OCSP_REQUEST(bp,o) \\\n    PEM_ASN1_write_bio((int (*)())i2d_OCSP_REQUEST,PEM_STRING_OCSP_REQUEST,\\\n                        bp,(char *)(o), NULL,NULL,0,NULL,NULL)\n\n#  define PEM_write_bio_OCSP_RESPONSE(bp,o) \\\n    PEM_ASN1_write_bio((int (*)())i2d_OCSP_RESPONSE,PEM_STRING_OCSP_RESPONSE,\\\n                        bp,(char *)(o), NULL,NULL,0,NULL,NULL)\n\n#  define i2d_OCSP_RESPONSE_bio(bp,o) ASN1_i2d_bio_of(OCSP_RESPONSE,i2d_OCSP_RESPONSE,bp,o)\n\n#  define i2d_OCSP_REQUEST_bio(bp,o) ASN1_i2d_bio_of(OCSP_REQUEST,i2d_OCSP_REQUEST,bp,o)\n\n#  define ASN1_BIT_STRING_digest(data,type,md,len) \\\n        ASN1_item_digest(ASN1_ITEM_rptr(ASN1_BIT_STRING),type,data,md,len)\n\n#  define OCSP_CERTSTATUS_dup(cs)\\\n                (OCSP_CERTSTATUS*)ASN1_dup((int(*)())i2d_OCSP_CERTSTATUS,\\\n                (char *(*)())d2i_OCSP_CERTSTATUS,(char *)(cs))\n\nOCSP_CERTID *OCSP_CERTID_dup(OCSP_CERTID *id);\n\nOCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);\nOCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,\n                               int maxline);\nint OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);\nint OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);\nOCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);\nvoid OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);\nvoid OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);\nint OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,\n                     ASN1_VALUE *val);\nint OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,\n                          const ASN1_ITEM *it);\nBIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);\nint OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);\nint OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);\nint OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,\n                             const char *name, const char *value);\n\nOCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, const X509 *subject,\n                             const X509 *issuer);\n\nOCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst,\n                              const X509_NAME *issuerName,\n                              const ASN1_BIT_STRING *issuerKey,\n                              const ASN1_INTEGER *serialNumber);\n\nOCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid);\n\nint OCSP_request_add1_nonce(OCSP_REQUEST *req, unsigned char *val, int len);\nint OCSP_basic_add1_nonce(OCSP_BASICRESP *resp, unsigned char *val, int len);\nint OCSP_check_nonce(OCSP_REQUEST *req, OCSP_BASICRESP *bs);\nint OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req);\n\nint OCSP_request_set1_name(OCSP_REQUEST *req, X509_NAME *nm);\nint OCSP_request_add1_cert(OCSP_REQUEST *req, X509 *cert);\n\nint OCSP_request_sign(OCSP_REQUEST *req,\n                      X509 *signer,\n                      EVP_PKEY *key,\n                      const EVP_MD *dgst,\n                      STACK_OF(X509) *certs, unsigned long flags);\n\nint OCSP_response_status(OCSP_RESPONSE *resp);\nOCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);\n\nconst ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);\nconst X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);\nconst OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);\nint OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,\n                          STACK_OF(X509) *extra_certs);\n\nint OCSP_resp_count(OCSP_BASICRESP *bs);\nOCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);\nconst ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP* bs);\nconst STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);\nint OCSP_resp_get0_id(const OCSP_BASICRESP *bs,\n                      const ASN1_OCTET_STRING **pid,\n                      const X509_NAME **pname);\nint OCSP_resp_get1_id(const OCSP_BASICRESP *bs,\n                      ASN1_OCTET_STRING **pid,\n                      X509_NAME **pname);\n\nint OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);\nint OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,\n                            ASN1_GENERALIZEDTIME **revtime,\n                            ASN1_GENERALIZEDTIME **thisupd,\n                            ASN1_GENERALIZEDTIME **nextupd);\nint OCSP_resp_find_status(OCSP_BASICRESP *bs, OCSP_CERTID *id, int *status,\n                          int *reason,\n                          ASN1_GENERALIZEDTIME **revtime,\n                          ASN1_GENERALIZEDTIME **thisupd,\n                          ASN1_GENERALIZEDTIME **nextupd);\nint OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,\n                        ASN1_GENERALIZEDTIME *nextupd, long sec, long maxsec);\n\nint OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,\n                        X509_STORE *store, unsigned long flags);\n\nint OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath,\n                   int *pssl);\n\nint OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);\nint OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);\n\nint OCSP_request_onereq_count(OCSP_REQUEST *req);\nOCSP_ONEREQ *OCSP_request_onereq_get0(OCSP_REQUEST *req, int i);\nOCSP_CERTID *OCSP_onereq_get0_id(OCSP_ONEREQ *one);\nint OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,\n                      ASN1_OCTET_STRING **pikeyHash,\n                      ASN1_INTEGER **pserial, OCSP_CERTID *cid);\nint OCSP_request_is_signed(OCSP_REQUEST *req);\nOCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);\nOCSP_SINGLERESP *OCSP_basic_add1_status(OCSP_BASICRESP *rsp,\n                                        OCSP_CERTID *cid,\n                                        int status, int reason,\n                                        ASN1_TIME *revtime,\n                                        ASN1_TIME *thisupd,\n                                        ASN1_TIME *nextupd);\nint OCSP_basic_add1_cert(OCSP_BASICRESP *resp, X509 *cert);\nint OCSP_basic_sign(OCSP_BASICRESP *brsp,\n                    X509 *signer, EVP_PKEY *key, const EVP_MD *dgst,\n                    STACK_OF(X509) *certs, unsigned long flags);\nint OCSP_basic_sign_ctx(OCSP_BASICRESP *brsp,\n                        X509 *signer, EVP_MD_CTX *ctx,\n                        STACK_OF(X509) *certs, unsigned long flags);\nint OCSP_RESPID_set_by_name(OCSP_RESPID *respid, X509 *cert);\nint OCSP_RESPID_set_by_key(OCSP_RESPID *respid, X509 *cert);\nint OCSP_RESPID_match(OCSP_RESPID *respid, X509 *cert);\n\nX509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);\n\nX509_EXTENSION *OCSP_accept_responses_new(char **oids);\n\nX509_EXTENSION *OCSP_archive_cutoff_new(char *tim);\n\nX509_EXTENSION *OCSP_url_svcloc_new(X509_NAME *issuer, const char **urls);\n\nint OCSP_REQUEST_get_ext_count(OCSP_REQUEST *x);\nint OCSP_REQUEST_get_ext_by_NID(OCSP_REQUEST *x, int nid, int lastpos);\nint OCSP_REQUEST_get_ext_by_OBJ(OCSP_REQUEST *x, const ASN1_OBJECT *obj,\n                                int lastpos);\nint OCSP_REQUEST_get_ext_by_critical(OCSP_REQUEST *x, int crit, int lastpos);\nX509_EXTENSION *OCSP_REQUEST_get_ext(OCSP_REQUEST *x, int loc);\nX509_EXTENSION *OCSP_REQUEST_delete_ext(OCSP_REQUEST *x, int loc);\nvoid *OCSP_REQUEST_get1_ext_d2i(OCSP_REQUEST *x, int nid, int *crit,\n                                int *idx);\nint OCSP_REQUEST_add1_ext_i2d(OCSP_REQUEST *x, int nid, void *value, int crit,\n                              unsigned long flags);\nint OCSP_REQUEST_add_ext(OCSP_REQUEST *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_ONEREQ_get_ext_count(OCSP_ONEREQ *x);\nint OCSP_ONEREQ_get_ext_by_NID(OCSP_ONEREQ *x, int nid, int lastpos);\nint OCSP_ONEREQ_get_ext_by_OBJ(OCSP_ONEREQ *x, const ASN1_OBJECT *obj, int lastpos);\nint OCSP_ONEREQ_get_ext_by_critical(OCSP_ONEREQ *x, int crit, int lastpos);\nX509_EXTENSION *OCSP_ONEREQ_get_ext(OCSP_ONEREQ *x, int loc);\nX509_EXTENSION *OCSP_ONEREQ_delete_ext(OCSP_ONEREQ *x, int loc);\nvoid *OCSP_ONEREQ_get1_ext_d2i(OCSP_ONEREQ *x, int nid, int *crit, int *idx);\nint OCSP_ONEREQ_add1_ext_i2d(OCSP_ONEREQ *x, int nid, void *value, int crit,\n                             unsigned long flags);\nint OCSP_ONEREQ_add_ext(OCSP_ONEREQ *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_BASICRESP_get_ext_count(OCSP_BASICRESP *x);\nint OCSP_BASICRESP_get_ext_by_NID(OCSP_BASICRESP *x, int nid, int lastpos);\nint OCSP_BASICRESP_get_ext_by_OBJ(OCSP_BASICRESP *x, const ASN1_OBJECT *obj,\n                                  int lastpos);\nint OCSP_BASICRESP_get_ext_by_critical(OCSP_BASICRESP *x, int crit,\n                                       int lastpos);\nX509_EXTENSION *OCSP_BASICRESP_get_ext(OCSP_BASICRESP *x, int loc);\nX509_EXTENSION *OCSP_BASICRESP_delete_ext(OCSP_BASICRESP *x, int loc);\nvoid *OCSP_BASICRESP_get1_ext_d2i(OCSP_BASICRESP *x, int nid, int *crit,\n                                  int *idx);\nint OCSP_BASICRESP_add1_ext_i2d(OCSP_BASICRESP *x, int nid, void *value,\n                                int crit, unsigned long flags);\nint OCSP_BASICRESP_add_ext(OCSP_BASICRESP *x, X509_EXTENSION *ex, int loc);\n\nint OCSP_SINGLERESP_get_ext_count(OCSP_SINGLERESP *x);\nint OCSP_SINGLERESP_get_ext_by_NID(OCSP_SINGLERESP *x, int nid, int lastpos);\nint OCSP_SINGLERESP_get_ext_by_OBJ(OCSP_SINGLERESP *x, const ASN1_OBJECT *obj,\n                                   int lastpos);\nint OCSP_SINGLERESP_get_ext_by_critical(OCSP_SINGLERESP *x, int crit,\n                                        int lastpos);\nX509_EXTENSION *OCSP_SINGLERESP_get_ext(OCSP_SINGLERESP *x, int loc);\nX509_EXTENSION *OCSP_SINGLERESP_delete_ext(OCSP_SINGLERESP *x, int loc);\nvoid *OCSP_SINGLERESP_get1_ext_d2i(OCSP_SINGLERESP *x, int nid, int *crit,\n                                   int *idx);\nint OCSP_SINGLERESP_add1_ext_i2d(OCSP_SINGLERESP *x, int nid, void *value,\n                                 int crit, unsigned long flags);\nint OCSP_SINGLERESP_add_ext(OCSP_SINGLERESP *x, X509_EXTENSION *ex, int loc);\nconst OCSP_CERTID *OCSP_SINGLERESP_get0_id(const OCSP_SINGLERESP *x);\n\nDECLARE_ASN1_FUNCTIONS(OCSP_SINGLERESP)\nDECLARE_ASN1_FUNCTIONS(OCSP_CERTSTATUS)\nDECLARE_ASN1_FUNCTIONS(OCSP_REVOKEDINFO)\nDECLARE_ASN1_FUNCTIONS(OCSP_BASICRESP)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPDATA)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPID)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)\nDECLARE_ASN1_FUNCTIONS(OCSP_RESPBYTES)\nDECLARE_ASN1_FUNCTIONS(OCSP_ONEREQ)\nDECLARE_ASN1_FUNCTIONS(OCSP_CERTID)\nDECLARE_ASN1_FUNCTIONS(OCSP_REQUEST)\nDECLARE_ASN1_FUNCTIONS(OCSP_SIGNATURE)\nDECLARE_ASN1_FUNCTIONS(OCSP_REQINFO)\nDECLARE_ASN1_FUNCTIONS(OCSP_CRLID)\nDECLARE_ASN1_FUNCTIONS(OCSP_SERVICELOC)\n\nconst char *OCSP_response_status_str(long s);\nconst char *OCSP_cert_status_str(long s);\nconst char *OCSP_crl_reason_str(long s);\n\nint OCSP_REQUEST_print(BIO *bp, OCSP_REQUEST *a, unsigned long flags);\nint OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);\n\nint OCSP_basic_verify(OCSP_BASICRESP *bs, STACK_OF(X509) *certs,\n                      X509_STORE *st, unsigned long flags);\n\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ocsperr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OCSPERR_H\n# define HEADER_OCSPERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_OCSP\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_OCSP_strings(void);\n\n/*\n * OCSP function codes.\n */\n#  define OCSP_F_D2I_OCSP_NONCE                            102\n#  define OCSP_F_OCSP_BASIC_ADD1_STATUS                    103\n#  define OCSP_F_OCSP_BASIC_SIGN                           104\n#  define OCSP_F_OCSP_BASIC_SIGN_CTX                       119\n#  define OCSP_F_OCSP_BASIC_VERIFY                         105\n#  define OCSP_F_OCSP_CERT_ID_NEW                          101\n#  define OCSP_F_OCSP_CHECK_DELEGATED                      106\n#  define OCSP_F_OCSP_CHECK_IDS                            107\n#  define OCSP_F_OCSP_CHECK_ISSUER                         108\n#  define OCSP_F_OCSP_CHECK_VALIDITY                       115\n#  define OCSP_F_OCSP_MATCH_ISSUERID                       109\n#  define OCSP_F_OCSP_PARSE_URL                            114\n#  define OCSP_F_OCSP_REQUEST_SIGN                         110\n#  define OCSP_F_OCSP_REQUEST_VERIFY                       116\n#  define OCSP_F_OCSP_RESPONSE_GET1_BASIC                  111\n#  define OCSP_F_PARSE_HTTP_LINE1                          118\n\n/*\n * OCSP reason codes.\n */\n#  define OCSP_R_CERTIFICATE_VERIFY_ERROR                  101\n#  define OCSP_R_DIGEST_ERR                                102\n#  define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD                 122\n#  define OCSP_R_ERROR_IN_THISUPDATE_FIELD                 123\n#  define OCSP_R_ERROR_PARSING_URL                         121\n#  define OCSP_R_MISSING_OCSPSIGNING_USAGE                 103\n#  define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE              124\n#  define OCSP_R_NOT_BASIC_RESPONSE                        104\n#  define OCSP_R_NO_CERTIFICATES_IN_CHAIN                  105\n#  define OCSP_R_NO_RESPONSE_DATA                          108\n#  define OCSP_R_NO_REVOKED_TIME                           109\n#  define OCSP_R_NO_SIGNER_KEY                             130\n#  define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE    110\n#  define OCSP_R_REQUEST_NOT_SIGNED                        128\n#  define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA      111\n#  define OCSP_R_ROOT_CA_NOT_TRUSTED                       112\n#  define OCSP_R_SERVER_RESPONSE_ERROR                     114\n#  define OCSP_R_SERVER_RESPONSE_PARSE_ERROR               115\n#  define OCSP_R_SIGNATURE_FAILURE                         117\n#  define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND              118\n#  define OCSP_R_STATUS_EXPIRED                            125\n#  define OCSP_R_STATUS_NOT_YET_VALID                      126\n#  define OCSP_R_STATUS_TOO_OLD                            127\n#  define OCSP_R_UNKNOWN_MESSAGE_DIGEST                    119\n#  define OCSP_R_UNKNOWN_NID                               120\n#  define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE            129\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/opensslconf.h",
    "content": "/*\n * WARNING: do not edit!\n * Generated by Makefile from include/openssl/opensslconf.h.in\n *\n * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#include <openssl/opensslv.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n#ifdef OPENSSL_ALGORITHM_DEFINES\n# error OPENSSL_ALGORITHM_DEFINES no longer supported\n#endif\n\n/*\n * OpenSSL was configured with the following options:\n */\n\n#ifndef OPENSSL_SYS_MACOSX\n# define OPENSSL_SYS_MACOSX 1\n#endif\n#ifndef OPENSSL_NO_MD2\n# define OPENSSL_NO_MD2\n#endif\n#ifndef OPENSSL_NO_RC5\n# define OPENSSL_NO_RC5\n#endif\n#ifndef OPENSSL_THREADS\n# define OPENSSL_THREADS\n#endif\n#ifndef OPENSSL_RAND_SEED_OS\n# define OPENSSL_RAND_SEED_OS\n#endif\n#ifndef OPENSSL_NO_AFALGENG\n# define OPENSSL_NO_AFALGENG\n#endif\n#ifndef OPENSSL_NO_ASAN\n# define OPENSSL_NO_ASAN\n#endif\n#ifndef OPENSSL_NO_CRYPTO_MDEBUG\n# define OPENSSL_NO_CRYPTO_MDEBUG\n#endif\n#ifndef OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\n# define OPENSSL_NO_CRYPTO_MDEBUG_BACKTRACE\n#endif\n#ifndef OPENSSL_NO_DEVCRYPTOENG\n# define OPENSSL_NO_DEVCRYPTOENG\n#endif\n#ifndef OPENSSL_NO_DSO\n# define OPENSSL_NO_DSO\n#endif\n#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128\n# define OPENSSL_NO_EC_NISTP_64_GCC_128\n#endif\n#ifndef OPENSSL_NO_EGD\n# define OPENSSL_NO_EGD\n#endif\n#ifndef OPENSSL_NO_EXTERNAL_TESTS\n# define OPENSSL_NO_EXTERNAL_TESTS\n#endif\n#ifndef OPENSSL_NO_FUZZ_AFL\n# define OPENSSL_NO_FUZZ_AFL\n#endif\n#ifndef OPENSSL_NO_FUZZ_LIBFUZZER\n# define OPENSSL_NO_FUZZ_LIBFUZZER\n#endif\n#ifndef OPENSSL_NO_HEARTBEATS\n# define OPENSSL_NO_HEARTBEATS\n#endif\n#ifndef OPENSSL_NO_MSAN\n# define OPENSSL_NO_MSAN\n#endif\n#ifndef OPENSSL_NO_SCTP\n# define OPENSSL_NO_SCTP\n#endif\n#ifndef OPENSSL_NO_SSL_TRACE\n# define OPENSSL_NO_SSL_TRACE\n#endif\n#ifndef OPENSSL_NO_SSL3\n# define OPENSSL_NO_SSL3\n#endif\n#ifndef OPENSSL_NO_SSL3_METHOD\n# define OPENSSL_NO_SSL3_METHOD\n#endif\n#ifndef OPENSSL_NO_UBSAN\n# define OPENSSL_NO_UBSAN\n#endif\n#ifndef OPENSSL_NO_UNIT_TEST\n# define OPENSSL_NO_UNIT_TEST\n#endif\n#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS\n# define OPENSSL_NO_WEAK_SSL_CIPHERS\n#endif\n#ifndef OPENSSL_NO_DYNAMIC_ENGINE\n# define OPENSSL_NO_DYNAMIC_ENGINE\n#endif\n\n\n/*\n * Sometimes OPENSSSL_NO_xxx ends up with an empty file and some compilers\n * don't like that.  This will hopefully silence them.\n */\n#define NON_EMPTY_TRANSLATION_UNIT static void *dummy = &dummy;\n\n/*\n * Applications should use -DOPENSSL_API_COMPAT=<version> to suppress the\n * declarations of functions deprecated in or before <version>. Otherwise, they\n * still won't see them if the library has been built to disable deprecated\n * functions.\n */\n#ifndef DECLARE_DEPRECATED\n# define DECLARE_DEPRECATED(f)   f;\n# ifdef __GNUC__\n#  if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 0)\n#   undef DECLARE_DEPRECATED\n#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\n#  endif\n# elif defined(__SUNPRO_C)\n#  if (__SUNPRO_C >= 0x5130)\n#   undef DECLARE_DEPRECATED\n#   define DECLARE_DEPRECATED(f)    f __attribute__ ((deprecated));\n#  endif\n# endif\n#endif\n\n#ifndef OPENSSL_FILE\n# ifdef OPENSSL_NO_FILENAMES\n#  define OPENSSL_FILE \"\"\n#  define OPENSSL_LINE 0\n# else\n#  define OPENSSL_FILE __FILE__\n#  define OPENSSL_LINE __LINE__\n# endif\n#endif\n\n#ifndef OPENSSL_MIN_API\n# define OPENSSL_MIN_API 0\n#endif\n\n#if !defined(OPENSSL_API_COMPAT) || OPENSSL_API_COMPAT < OPENSSL_MIN_API\n# undef OPENSSL_API_COMPAT\n# define OPENSSL_API_COMPAT OPENSSL_MIN_API\n#endif\n\n/*\n * Do not deprecate things to be deprecated in version 1.2.0 before the\n * OpenSSL version number matches.\n */\n#if OPENSSL_VERSION_NUMBER < 0x10200000L\n# define DEPRECATEDIN_1_2_0(f)   f;\n#elif OPENSSL_API_COMPAT < 0x10200000L\n# define DEPRECATEDIN_1_2_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_2_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define DEPRECATEDIN_1_1_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_1_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x10000000L\n# define DEPRECATEDIN_1_0_0(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_1_0_0(f)\n#endif\n\n#if OPENSSL_API_COMPAT < 0x00908000L\n# define DEPRECATEDIN_0_9_8(f)   DECLARE_DEPRECATED(f)\n#else\n# define DEPRECATEDIN_0_9_8(f)\n#endif\n\n/* Generate 80386 code? */\n#undef I386_ONLY\n\n#undef OPENSSL_UNISTD\n#define OPENSSL_UNISTD <unistd.h>\n\n#undef OPENSSL_EXPORT_VAR_AS_FUNCTION\n\n/*\n * The following are cipher-specific, but are part of the public API.\n */\n#if !defined(OPENSSL_SYS_UEFI)\n# undef BN_LLONG\n/* Only one for the following should be defined */\n# define SIXTY_FOUR_BIT_LONG\n# undef SIXTY_FOUR_BIT\n# undef THIRTY_TWO_BIT\n#endif\n\n#define RC4_INT unsigned int\n\n#ifdef  __cplusplus\n}\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/opensslv.h",
    "content": "/*\n * Copyright 1999-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OPENSSLV_H\n# define HEADER_OPENSSLV_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\n * Numeric release version identifier:\n * MNNFFPPS: major minor fix patch status\n * The status nibble has one of the values 0 for development, 1 to e for betas\n * 1 to 14, and f for release.  The patch level is exactly that.\n * For example:\n * 0.9.3-dev      0x00903000\n * 0.9.3-beta1    0x00903001\n * 0.9.3-beta2-dev 0x00903002\n * 0.9.3-beta2    0x00903002 (same as ...beta2-dev)\n * 0.9.3          0x0090300f\n * 0.9.3a         0x0090301f\n * 0.9.4          0x0090400f\n * 1.2.3z         0x102031af\n *\n * For continuity reasons (because 0.9.5 is already out, and is coded\n * 0x00905100), between 0.9.5 and 0.9.6 the coding of the patch level\n * part is slightly different, by setting the highest bit.  This means\n * that 0.9.5a looks like this: 0x0090581f.  At 0.9.6, we can start\n * with 0x0090600S...\n *\n * (Prior to 0.9.3-dev a different scheme was used: 0.9.2b is 0x0922.)\n * (Prior to 0.9.5a beta1, a different scheme was used: MMNNFFRBB for\n *  major minor fix final patch/beta)\n */\n# define OPENSSL_VERSION_NUMBER  0x1010108fL\n# define OPENSSL_VERSION_TEXT    \"OpenSSL 1.1.1h  22 Sep 2020\"\n\n/*-\n * The macros below are to be used for shared library (.so, .dll, ...)\n * versioning.  That kind of versioning works a bit differently between\n * operating systems.  The most usual scheme is to set a major and a minor\n * number, and have the runtime loader check that the major number is equal\n * to what it was at application link time, while the minor number has to\n * be greater or equal to what it was at application link time.  With this\n * scheme, the version number is usually part of the file name, like this:\n *\n *      libcrypto.so.0.9\n *\n * Some unixen also make a softlink with the major version number only:\n *\n *      libcrypto.so.0\n *\n * On Tru64 and IRIX 6.x it works a little bit differently.  There, the\n * shared library version is stored in the file, and is actually a series\n * of versions, separated by colons.  The rightmost version present in the\n * library when linking an application is stored in the application to be\n * matched at run time.  When the application is run, a check is done to\n * see if the library version stored in the application matches any of the\n * versions in the version string of the library itself.\n * This version string can be constructed in any way, depending on what\n * kind of matching is desired.  However, to implement the same scheme as\n * the one used in the other unixen, all compatible versions, from lowest\n * to highest, should be part of the string.  Consecutive builds would\n * give the following versions strings:\n *\n *      3.0\n *      3.0:3.1\n *      3.0:3.1:3.2\n *      4.0\n *      4.0:4.1\n *\n * Notice how version 4 is completely incompatible with version, and\n * therefore give the breach you can see.\n *\n * There may be other schemes as well that I haven't yet discovered.\n *\n * So, here's the way it works here: first of all, the library version\n * number doesn't need at all to match the overall OpenSSL version.\n * However, it's nice and more understandable if it actually does.\n * The current library version is stored in the macro SHLIB_VERSION_NUMBER,\n * which is just a piece of text in the format \"M.m.e\" (Major, minor, edit).\n * For the sake of Tru64, IRIX, and any other OS that behaves in similar ways,\n * we need to keep a history of version numbers, which is done in the\n * macro SHLIB_VERSION_HISTORY.  The numbers are separated by colons and\n * should only keep the versions that are binary compatible with the current.\n */\n# define SHLIB_VERSION_HISTORY \"\"\n# define SHLIB_VERSION_NUMBER \"1.1\"\n\n\n#ifdef  __cplusplus\n}\n#endif\n#endif                          /* HEADER_OPENSSLV_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ossl_typ.h",
    "content": "/*\n * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OPENSSL_TYPES_H\n# define HEADER_OPENSSL_TYPES_H\n\n#include <limits.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# include <openssl/e_os2.h>\n\n# ifdef NO_ASN1_TYPEDEFS\n#  define ASN1_INTEGER            ASN1_STRING\n#  define ASN1_ENUMERATED         ASN1_STRING\n#  define ASN1_BIT_STRING         ASN1_STRING\n#  define ASN1_OCTET_STRING       ASN1_STRING\n#  define ASN1_PRINTABLESTRING    ASN1_STRING\n#  define ASN1_T61STRING          ASN1_STRING\n#  define ASN1_IA5STRING          ASN1_STRING\n#  define ASN1_UTCTIME            ASN1_STRING\n#  define ASN1_GENERALIZEDTIME    ASN1_STRING\n#  define ASN1_TIME               ASN1_STRING\n#  define ASN1_GENERALSTRING      ASN1_STRING\n#  define ASN1_UNIVERSALSTRING    ASN1_STRING\n#  define ASN1_BMPSTRING          ASN1_STRING\n#  define ASN1_VISIBLESTRING      ASN1_STRING\n#  define ASN1_UTF8STRING         ASN1_STRING\n#  define ASN1_BOOLEAN            int\n#  define ASN1_NULL               int\n# else\ntypedef struct asn1_string_st ASN1_INTEGER;\ntypedef struct asn1_string_st ASN1_ENUMERATED;\ntypedef struct asn1_string_st ASN1_BIT_STRING;\ntypedef struct asn1_string_st ASN1_OCTET_STRING;\ntypedef struct asn1_string_st ASN1_PRINTABLESTRING;\ntypedef struct asn1_string_st ASN1_T61STRING;\ntypedef struct asn1_string_st ASN1_IA5STRING;\ntypedef struct asn1_string_st ASN1_GENERALSTRING;\ntypedef struct asn1_string_st ASN1_UNIVERSALSTRING;\ntypedef struct asn1_string_st ASN1_BMPSTRING;\ntypedef struct asn1_string_st ASN1_UTCTIME;\ntypedef struct asn1_string_st ASN1_TIME;\ntypedef struct asn1_string_st ASN1_GENERALIZEDTIME;\ntypedef struct asn1_string_st ASN1_VISIBLESTRING;\ntypedef struct asn1_string_st ASN1_UTF8STRING;\ntypedef struct asn1_string_st ASN1_STRING;\ntypedef int ASN1_BOOLEAN;\ntypedef int ASN1_NULL;\n# endif\n\ntypedef struct asn1_object_st ASN1_OBJECT;\n\ntypedef struct ASN1_ITEM_st ASN1_ITEM;\ntypedef struct asn1_pctx_st ASN1_PCTX;\ntypedef struct asn1_sctx_st ASN1_SCTX;\n\n# ifdef _WIN32\n#  undef X509_NAME\n#  undef X509_EXTENSIONS\n#  undef PKCS7_ISSUER_AND_SERIAL\n#  undef PKCS7_SIGNER_INFO\n#  undef OCSP_REQUEST\n#  undef OCSP_RESPONSE\n# endif\n\n# ifdef BIGNUM\n#  undef BIGNUM\n# endif\nstruct dane_st;\ntypedef struct bio_st BIO;\ntypedef struct bignum_st BIGNUM;\ntypedef struct bignum_ctx BN_CTX;\ntypedef struct bn_blinding_st BN_BLINDING;\ntypedef struct bn_mont_ctx_st BN_MONT_CTX;\ntypedef struct bn_recp_ctx_st BN_RECP_CTX;\ntypedef struct bn_gencb_st BN_GENCB;\n\ntypedef struct buf_mem_st BUF_MEM;\n\ntypedef struct evp_cipher_st EVP_CIPHER;\ntypedef struct evp_cipher_ctx_st EVP_CIPHER_CTX;\ntypedef struct evp_md_st EVP_MD;\ntypedef struct evp_md_ctx_st EVP_MD_CTX;\ntypedef struct evp_pkey_st EVP_PKEY;\n\ntypedef struct evp_pkey_asn1_method_st EVP_PKEY_ASN1_METHOD;\n\ntypedef struct evp_pkey_method_st EVP_PKEY_METHOD;\ntypedef struct evp_pkey_ctx_st EVP_PKEY_CTX;\n\ntypedef struct evp_Encode_Ctx_st EVP_ENCODE_CTX;\n\ntypedef struct hmac_ctx_st HMAC_CTX;\n\ntypedef struct dh_st DH;\ntypedef struct dh_method DH_METHOD;\n\ntypedef struct dsa_st DSA;\ntypedef struct dsa_method DSA_METHOD;\n\ntypedef struct rsa_st RSA;\ntypedef struct rsa_meth_st RSA_METHOD;\ntypedef struct rsa_pss_params_st RSA_PSS_PARAMS;\n\ntypedef struct ec_key_st EC_KEY;\ntypedef struct ec_key_method_st EC_KEY_METHOD;\n\ntypedef struct rand_meth_st RAND_METHOD;\ntypedef struct rand_drbg_st RAND_DRBG;\n\ntypedef struct ssl_dane_st SSL_DANE;\ntypedef struct x509_st X509;\ntypedef struct X509_algor_st X509_ALGOR;\ntypedef struct X509_crl_st X509_CRL;\ntypedef struct x509_crl_method_st X509_CRL_METHOD;\ntypedef struct x509_revoked_st X509_REVOKED;\ntypedef struct X509_name_st X509_NAME;\ntypedef struct X509_pubkey_st X509_PUBKEY;\ntypedef struct x509_store_st X509_STORE;\ntypedef struct x509_store_ctx_st X509_STORE_CTX;\n\ntypedef struct x509_object_st X509_OBJECT;\ntypedef struct x509_lookup_st X509_LOOKUP;\ntypedef struct x509_lookup_method_st X509_LOOKUP_METHOD;\ntypedef struct X509_VERIFY_PARAM_st X509_VERIFY_PARAM;\n\ntypedef struct x509_sig_info_st X509_SIG_INFO;\n\ntypedef struct pkcs8_priv_key_info_st PKCS8_PRIV_KEY_INFO;\n\ntypedef struct v3_ext_ctx X509V3_CTX;\ntypedef struct conf_st CONF;\ntypedef struct ossl_init_settings_st OPENSSL_INIT_SETTINGS;\n\ntypedef struct ui_st UI;\ntypedef struct ui_method_st UI_METHOD;\n\ntypedef struct engine_st ENGINE;\ntypedef struct ssl_st SSL;\ntypedef struct ssl_ctx_st SSL_CTX;\n\ntypedef struct comp_ctx_st COMP_CTX;\ntypedef struct comp_method_st COMP_METHOD;\n\ntypedef struct X509_POLICY_NODE_st X509_POLICY_NODE;\ntypedef struct X509_POLICY_LEVEL_st X509_POLICY_LEVEL;\ntypedef struct X509_POLICY_TREE_st X509_POLICY_TREE;\ntypedef struct X509_POLICY_CACHE_st X509_POLICY_CACHE;\n\ntypedef struct AUTHORITY_KEYID_st AUTHORITY_KEYID;\ntypedef struct DIST_POINT_st DIST_POINT;\ntypedef struct ISSUING_DIST_POINT_st ISSUING_DIST_POINT;\ntypedef struct NAME_CONSTRAINTS_st NAME_CONSTRAINTS;\n\ntypedef struct crypto_ex_data_st CRYPTO_EX_DATA;\n\ntypedef struct ocsp_req_ctx_st OCSP_REQ_CTX;\ntypedef struct ocsp_response_st OCSP_RESPONSE;\ntypedef struct ocsp_responder_id_st OCSP_RESPID;\n\ntypedef struct sct_st SCT;\ntypedef struct sct_ctx_st SCT_CTX;\ntypedef struct ctlog_st CTLOG;\ntypedef struct ctlog_store_st CTLOG_STORE;\ntypedef struct ct_policy_eval_ctx_st CT_POLICY_EVAL_CTX;\n\ntypedef struct ossl_store_info_st OSSL_STORE_INFO;\ntypedef struct ossl_store_search_st OSSL_STORE_SEARCH;\n\n#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \\\n    defined(INTMAX_MAX) && defined(UINTMAX_MAX)\ntypedef intmax_t ossl_intmax_t;\ntypedef uintmax_t ossl_uintmax_t;\n#else\n/*\n * Not long long, because the C-library can only be expected to provide\n * strtoll(), strtoull() at the same time as intmax_t and strtoimax(),\n * strtoumax().  Since we use these for parsing arguments, we need the\n * conversion functions, not just the sizes.\n */\ntypedef long ossl_intmax_t;\ntypedef unsigned long ossl_uintmax_t;\n#endif\n\n#ifdef  __cplusplus\n}\n#endif\n#endif                          /* def HEADER_OPENSSL_TYPES_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pem.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEM_H\n# define HEADER_PEM_H\n\n# include <openssl/e_os2.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/evp.h>\n# include <openssl/x509.h>\n# include <openssl/pemerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define PEM_BUFSIZE             1024\n\n# define PEM_STRING_X509_OLD     \"X509 CERTIFICATE\"\n# define PEM_STRING_X509         \"CERTIFICATE\"\n# define PEM_STRING_X509_TRUSTED \"TRUSTED CERTIFICATE\"\n# define PEM_STRING_X509_REQ_OLD \"NEW CERTIFICATE REQUEST\"\n# define PEM_STRING_X509_REQ     \"CERTIFICATE REQUEST\"\n# define PEM_STRING_X509_CRL     \"X509 CRL\"\n# define PEM_STRING_EVP_PKEY     \"ANY PRIVATE KEY\"\n# define PEM_STRING_PUBLIC       \"PUBLIC KEY\"\n# define PEM_STRING_RSA          \"RSA PRIVATE KEY\"\n# define PEM_STRING_RSA_PUBLIC   \"RSA PUBLIC KEY\"\n# define PEM_STRING_DSA          \"DSA PRIVATE KEY\"\n# define PEM_STRING_DSA_PUBLIC   \"DSA PUBLIC KEY\"\n# define PEM_STRING_PKCS7        \"PKCS7\"\n# define PEM_STRING_PKCS7_SIGNED \"PKCS #7 SIGNED DATA\"\n# define PEM_STRING_PKCS8        \"ENCRYPTED PRIVATE KEY\"\n# define PEM_STRING_PKCS8INF     \"PRIVATE KEY\"\n# define PEM_STRING_DHPARAMS     \"DH PARAMETERS\"\n# define PEM_STRING_DHXPARAMS    \"X9.42 DH PARAMETERS\"\n# define PEM_STRING_SSL_SESSION  \"SSL SESSION PARAMETERS\"\n# define PEM_STRING_DSAPARAMS    \"DSA PARAMETERS\"\n# define PEM_STRING_ECDSA_PUBLIC \"ECDSA PUBLIC KEY\"\n# define PEM_STRING_ECPARAMETERS \"EC PARAMETERS\"\n# define PEM_STRING_ECPRIVATEKEY \"EC PRIVATE KEY\"\n# define PEM_STRING_PARAMETERS   \"PARAMETERS\"\n# define PEM_STRING_CMS          \"CMS\"\n\n# define PEM_TYPE_ENCRYPTED      10\n# define PEM_TYPE_MIC_ONLY       20\n# define PEM_TYPE_MIC_CLEAR      30\n# define PEM_TYPE_CLEAR          40\n\n/*\n * These macros make the PEM_read/PEM_write functions easier to maintain and\n * write. Now they are all implemented with either: IMPLEMENT_PEM_rw(...) or\n * IMPLEMENT_PEM_rw_cb(...)\n */\n\n# ifdef OPENSSL_NO_STDIO\n\n#  define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/\n#  define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/\n# else\n\n#  define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \\\ntype *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\\\n{ \\\nreturn PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \\\n}\n\n#  define IMPLEMENT_PEM_write_fp(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x) \\\n{ \\\nreturn PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,NULL,NULL,0,NULL,NULL); \\\n}\n\n#  define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, const type *x) \\\n{ \\\nreturn PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,(void *)x,NULL,NULL,0,NULL,NULL); \\\n}\n\n#  define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, \\\n                  void *u) \\\n        { \\\n        return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \\\n        }\n\n#  define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) \\\nint PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, \\\n                  void *u) \\\n        { \\\n        return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \\\n        }\n\n# endif\n\n# define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \\\ntype *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\\\n{ \\\nreturn PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \\\n}\n\n# define IMPLEMENT_PEM_write_bio(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x) \\\n{ \\\nreturn PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,NULL,NULL,0,NULL,NULL); \\\n}\n\n# define IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, const type *x) \\\n{ \\\nreturn PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,NULL,NULL,0,NULL,NULL); \\\n}\n\n# define IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \\\n        { \\\n        return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \\\n        }\n\n# define IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \\\nint PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \\\n        { \\\n        return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,(void *)x,enc,kstr,klen,cb,u); \\\n        }\n\n# define IMPLEMENT_PEM_write(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_bio_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_fp_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_cb(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_write_cb_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_bio_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read_bio(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read_fp(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw_const(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_const(name, type, str, asn1)\n\n# define IMPLEMENT_PEM_rw_cb(name, type, str, asn1) \\\n        IMPLEMENT_PEM_read(name, type, str, asn1) \\\n        IMPLEMENT_PEM_write_cb(name, type, str, asn1)\n\n/* These are the same except they are for the declarations */\n\n# if defined(OPENSSL_NO_STDIO)\n\n#  define DECLARE_PEM_read_fp(name, type) /**/\n#  define DECLARE_PEM_write_fp(name, type) /**/\n#  define DECLARE_PEM_write_fp_const(name, type) /**/\n#  define DECLARE_PEM_write_cb_fp(name, type) /**/\n# else\n\n#  define DECLARE_PEM_read_fp(name, type) \\\n        type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u);\n\n#  define DECLARE_PEM_write_fp(name, type) \\\n        int PEM_write_##name(FILE *fp, type *x);\n\n#  define DECLARE_PEM_write_fp_const(name, type) \\\n        int PEM_write_##name(FILE *fp, const type *x);\n\n#  define DECLARE_PEM_write_cb_fp(name, type) \\\n        int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u);\n\n# endif\n\n#  define DECLARE_PEM_read_bio(name, type) \\\n        type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u);\n\n#  define DECLARE_PEM_write_bio(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, type *x);\n\n#  define DECLARE_PEM_write_bio_const(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, const type *x);\n\n#  define DECLARE_PEM_write_cb_bio(name, type) \\\n        int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \\\n             unsigned char *kstr, int klen, pem_password_cb *cb, void *u);\n\n# define DECLARE_PEM_write(name, type) \\\n        DECLARE_PEM_write_bio(name, type) \\\n        DECLARE_PEM_write_fp(name, type)\n# define DECLARE_PEM_write_const(name, type) \\\n        DECLARE_PEM_write_bio_const(name, type) \\\n        DECLARE_PEM_write_fp_const(name, type)\n# define DECLARE_PEM_write_cb(name, type) \\\n        DECLARE_PEM_write_cb_bio(name, type) \\\n        DECLARE_PEM_write_cb_fp(name, type)\n# define DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_read_bio(name, type) \\\n        DECLARE_PEM_read_fp(name, type)\n# define DECLARE_PEM_rw(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write(name, type)\n# define DECLARE_PEM_rw_const(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write_const(name, type)\n# define DECLARE_PEM_rw_cb(name, type) \\\n        DECLARE_PEM_read(name, type) \\\n        DECLARE_PEM_write_cb(name, type)\ntypedef int pem_password_cb (char *buf, int size, int rwflag, void *userdata);\n\nint PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher);\nint PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *len,\n                  pem_password_cb *callback, void *u);\n\nint PEM_read_bio(BIO *bp, char **name, char **header,\n                 unsigned char **data, long *len);\n#   define PEM_FLAG_SECURE             0x1\n#   define PEM_FLAG_EAY_COMPATIBLE     0x2\n#   define PEM_FLAG_ONLY_B64           0x4\nint PEM_read_bio_ex(BIO *bp, char **name, char **header,\n                    unsigned char **data, long *len, unsigned int flags);\nint PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm,\n                              const char *name, BIO *bp, pem_password_cb *cb,\n                              void *u);\nint PEM_write_bio(BIO *bp, const char *name, const char *hdr,\n                  const unsigned char *data, long len);\nint PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm,\n                       const char *name, BIO *bp, pem_password_cb *cb,\n                       void *u);\nvoid *PEM_ASN1_read_bio(d2i_of_void *d2i, const char *name, BIO *bp, void **x,\n                        pem_password_cb *cb, void *u);\nint PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x,\n                       const EVP_CIPHER *enc, unsigned char *kstr, int klen,\n                       pem_password_cb *cb, void *u);\n\nSTACK_OF(X509_INFO) *PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk,\n                                            pem_password_cb *cb, void *u);\nint PEM_X509_INFO_write_bio(BIO *bp, X509_INFO *xi, EVP_CIPHER *enc,\n                            unsigned char *kstr, int klen,\n                            pem_password_cb *cd, void *u);\n\n#ifndef OPENSSL_NO_STDIO\nint PEM_read(FILE *fp, char **name, char **header,\n             unsigned char **data, long *len);\nint PEM_write(FILE *fp, const char *name, const char *hdr,\n              const unsigned char *data, long len);\nvoid *PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x,\n                    pem_password_cb *cb, void *u);\nint PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp,\n                   void *x, const EVP_CIPHER *enc, unsigned char *kstr,\n                   int klen, pem_password_cb *callback, void *u);\nSTACK_OF(X509_INFO) *PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk,\n                                        pem_password_cb *cb, void *u);\n#endif\n\nint PEM_SignInit(EVP_MD_CTX *ctx, EVP_MD *type);\nint PEM_SignUpdate(EVP_MD_CTX *ctx, unsigned char *d, unsigned int cnt);\nint PEM_SignFinal(EVP_MD_CTX *ctx, unsigned char *sigret,\n                  unsigned int *siglen, EVP_PKEY *pkey);\n\n/* The default pem_password_cb that's used internally */\nint PEM_def_callback(char *buf, int num, int rwflag, void *userdata);\nvoid PEM_proc_type(char *buf, int type);\nvoid PEM_dek_info(char *buf, const char *type, int len, char *str);\n\n# include <openssl/symhacks.h>\n\nDECLARE_PEM_rw(X509, X509)\nDECLARE_PEM_rw(X509_AUX, X509)\nDECLARE_PEM_rw(X509_REQ, X509_REQ)\nDECLARE_PEM_write(X509_REQ_NEW, X509_REQ)\nDECLARE_PEM_rw(X509_CRL, X509_CRL)\nDECLARE_PEM_rw(PKCS7, PKCS7)\nDECLARE_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE)\nDECLARE_PEM_rw(PKCS8, X509_SIG)\nDECLARE_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO)\n# ifndef OPENSSL_NO_RSA\nDECLARE_PEM_rw_cb(RSAPrivateKey, RSA)\nDECLARE_PEM_rw_const(RSAPublicKey, RSA)\nDECLARE_PEM_rw(RSA_PUBKEY, RSA)\n# endif\n# ifndef OPENSSL_NO_DSA\nDECLARE_PEM_rw_cb(DSAPrivateKey, DSA)\nDECLARE_PEM_rw(DSA_PUBKEY, DSA)\nDECLARE_PEM_rw_const(DSAparams, DSA)\n# endif\n# ifndef OPENSSL_NO_EC\nDECLARE_PEM_rw_const(ECPKParameters, EC_GROUP)\nDECLARE_PEM_rw_cb(ECPrivateKey, EC_KEY)\nDECLARE_PEM_rw(EC_PUBKEY, EC_KEY)\n# endif\n# ifndef OPENSSL_NO_DH\nDECLARE_PEM_rw_const(DHparams, DH)\nDECLARE_PEM_write_const(DHxparams, DH)\n# endif\nDECLARE_PEM_rw_cb(PrivateKey, EVP_PKEY)\nDECLARE_PEM_rw(PUBKEY, EVP_PKEY)\n\nint PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,\n                                         const EVP_CIPHER *enc,\n                                         unsigned char *kstr, int klen,\n                                         pem_password_cb *cb, void *u);\n\nint PEM_write_bio_PKCS8PrivateKey_nid(BIO *bp, EVP_PKEY *x, int nid,\n                                      char *kstr, int klen,\n                                      pem_password_cb *cb, void *u);\nint PEM_write_bio_PKCS8PrivateKey(BIO *, EVP_PKEY *, const EVP_CIPHER *,\n                                  char *, int, pem_password_cb *, void *);\nint i2d_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                            char *kstr, int klen,\n                            pem_password_cb *cb, void *u);\nint i2d_PKCS8PrivateKey_nid_bio(BIO *bp, EVP_PKEY *x, int nid,\n                                char *kstr, int klen,\n                                pem_password_cb *cb, void *u);\nEVP_PKEY *d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb,\n                                  void *u);\n\n# ifndef OPENSSL_NO_STDIO\nint i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                           char *kstr, int klen,\n                           pem_password_cb *cb, void *u);\nint i2d_PKCS8PrivateKey_nid_fp(FILE *fp, EVP_PKEY *x, int nid,\n                               char *kstr, int klen,\n                               pem_password_cb *cb, void *u);\nint PEM_write_PKCS8PrivateKey_nid(FILE *fp, EVP_PKEY *x, int nid,\n                                  char *kstr, int klen,\n                                  pem_password_cb *cb, void *u);\n\nEVP_PKEY *d2i_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY **x, pem_password_cb *cb,\n                                 void *u);\n\nint PEM_write_PKCS8PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,\n                              char *kstr, int klen, pem_password_cb *cd,\n                              void *u);\n# endif\nEVP_PKEY *PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x);\nint PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x);\n\n# ifndef OPENSSL_NO_DSA\nEVP_PKEY *b2i_PrivateKey(const unsigned char **in, long length);\nEVP_PKEY *b2i_PublicKey(const unsigned char **in, long length);\nEVP_PKEY *b2i_PrivateKey_bio(BIO *in);\nEVP_PKEY *b2i_PublicKey_bio(BIO *in);\nint i2b_PrivateKey_bio(BIO *out, EVP_PKEY *pk);\nint i2b_PublicKey_bio(BIO *out, EVP_PKEY *pk);\n#  ifndef OPENSSL_NO_RC4\nEVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u);\nint i2b_PVK_bio(BIO *out, EVP_PKEY *pk, int enclevel,\n                pem_password_cb *cb, void *u);\n#  endif\n# endif\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pem2.h",
    "content": "/*\n * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEM2_H\n# define HEADER_PEM2_H\n# include <openssl/pemerr.h>\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pemerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PEMERR_H\n# define HEADER_PEMERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PEM_strings(void);\n\n/*\n * PEM function codes.\n */\n# define PEM_F_B2I_DSS                                    127\n# define PEM_F_B2I_PVK_BIO                                128\n# define PEM_F_B2I_RSA                                    129\n# define PEM_F_CHECK_BITLEN_DSA                           130\n# define PEM_F_CHECK_BITLEN_RSA                           131\n# define PEM_F_D2I_PKCS8PRIVATEKEY_BIO                    120\n# define PEM_F_D2I_PKCS8PRIVATEKEY_FP                     121\n# define PEM_F_DO_B2I                                     132\n# define PEM_F_DO_B2I_BIO                                 133\n# define PEM_F_DO_BLOB_HEADER                             134\n# define PEM_F_DO_I2B                                     146\n# define PEM_F_DO_PK8PKEY                                 126\n# define PEM_F_DO_PK8PKEY_FP                              125\n# define PEM_F_DO_PVK_BODY                                135\n# define PEM_F_DO_PVK_HEADER                              136\n# define PEM_F_GET_HEADER_AND_DATA                        143\n# define PEM_F_GET_NAME                                   144\n# define PEM_F_I2B_PVK                                    137\n# define PEM_F_I2B_PVK_BIO                                138\n# define PEM_F_LOAD_IV                                    101\n# define PEM_F_PEM_ASN1_READ                              102\n# define PEM_F_PEM_ASN1_READ_BIO                          103\n# define PEM_F_PEM_ASN1_WRITE                             104\n# define PEM_F_PEM_ASN1_WRITE_BIO                         105\n# define PEM_F_PEM_DEF_CALLBACK                           100\n# define PEM_F_PEM_DO_HEADER                              106\n# define PEM_F_PEM_GET_EVP_CIPHER_INFO                    107\n# define PEM_F_PEM_READ                                   108\n# define PEM_F_PEM_READ_BIO                               109\n# define PEM_F_PEM_READ_BIO_DHPARAMS                      141\n# define PEM_F_PEM_READ_BIO_EX                            145\n# define PEM_F_PEM_READ_BIO_PARAMETERS                    140\n# define PEM_F_PEM_READ_BIO_PRIVATEKEY                    123\n# define PEM_F_PEM_READ_DHPARAMS                          142\n# define PEM_F_PEM_READ_PRIVATEKEY                        124\n# define PEM_F_PEM_SIGNFINAL                              112\n# define PEM_F_PEM_WRITE                                  113\n# define PEM_F_PEM_WRITE_BIO                              114\n# define PEM_F_PEM_WRITE_BIO_PRIVATEKEY_TRADITIONAL       147\n# define PEM_F_PEM_WRITE_PRIVATEKEY                       139\n# define PEM_F_PEM_X509_INFO_READ                         115\n# define PEM_F_PEM_X509_INFO_READ_BIO                     116\n# define PEM_F_PEM_X509_INFO_WRITE_BIO                    117\n\n/*\n * PEM reason codes.\n */\n# define PEM_R_BAD_BASE64_DECODE                          100\n# define PEM_R_BAD_DECRYPT                                101\n# define PEM_R_BAD_END_LINE                               102\n# define PEM_R_BAD_IV_CHARS                               103\n# define PEM_R_BAD_MAGIC_NUMBER                           116\n# define PEM_R_BAD_PASSWORD_READ                          104\n# define PEM_R_BAD_VERSION_NUMBER                         117\n# define PEM_R_BIO_WRITE_FAILURE                          118\n# define PEM_R_CIPHER_IS_NULL                             127\n# define PEM_R_ERROR_CONVERTING_PRIVATE_KEY               115\n# define PEM_R_EXPECTING_PRIVATE_KEY_BLOB                 119\n# define PEM_R_EXPECTING_PUBLIC_KEY_BLOB                  120\n# define PEM_R_HEADER_TOO_LONG                            128\n# define PEM_R_INCONSISTENT_HEADER                        121\n# define PEM_R_KEYBLOB_HEADER_PARSE_ERROR                 122\n# define PEM_R_KEYBLOB_TOO_SHORT                          123\n# define PEM_R_MISSING_DEK_IV                             129\n# define PEM_R_NOT_DEK_INFO                               105\n# define PEM_R_NOT_ENCRYPTED                              106\n# define PEM_R_NOT_PROC_TYPE                              107\n# define PEM_R_NO_START_LINE                              108\n# define PEM_R_PROBLEMS_GETTING_PASSWORD                  109\n# define PEM_R_PVK_DATA_TOO_SHORT                         124\n# define PEM_R_PVK_TOO_SHORT                              125\n# define PEM_R_READ_KEY                                   111\n# define PEM_R_SHORT_HEADER                               112\n# define PEM_R_UNEXPECTED_DEK_IV                          130\n# define PEM_R_UNSUPPORTED_CIPHER                         113\n# define PEM_R_UNSUPPORTED_ENCRYPTION                     114\n# define PEM_R_UNSUPPORTED_KEY_COMPONENTS                 126\n# define PEM_R_UNSUPPORTED_PUBLIC_KEY_TYPE                110\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pkcs12.h",
    "content": "/*\n * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS12_H\n# define HEADER_PKCS12_H\n\n# include <openssl/bio.h>\n# include <openssl/x509.h>\n# include <openssl/pkcs12err.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define PKCS12_KEY_ID   1\n# define PKCS12_IV_ID    2\n# define PKCS12_MAC_ID   3\n\n/* Default iteration count */\n# ifndef PKCS12_DEFAULT_ITER\n#  define PKCS12_DEFAULT_ITER     PKCS5_DEFAULT_ITER\n# endif\n\n# define PKCS12_MAC_KEY_LENGTH 20\n\n# define PKCS12_SALT_LEN 8\n\n/* It's not clear if these are actually needed... */\n# define PKCS12_key_gen PKCS12_key_gen_utf8\n# define PKCS12_add_friendlyname PKCS12_add_friendlyname_utf8\n\n/* MS key usage constants */\n\n# define KEY_EX  0x10\n# define KEY_SIG 0x80\n\ntypedef struct PKCS12_MAC_DATA_st PKCS12_MAC_DATA;\n\ntypedef struct PKCS12_st PKCS12;\n\ntypedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG;\n\nDEFINE_STACK_OF(PKCS12_SAFEBAG)\n\ntypedef struct pkcs12_bag_st PKCS12_BAGS;\n\n# define PKCS12_ERROR    0\n# define PKCS12_OK       1\n\n/* Compatibility macros */\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n\n# define M_PKCS12_bag_type PKCS12_bag_type\n# define M_PKCS12_cert_bag_type PKCS12_cert_bag_type\n# define M_PKCS12_crl_bag_type PKCS12_cert_bag_type\n\n# define PKCS12_certbag2x509 PKCS12_SAFEBAG_get1_cert\n# define PKCS12_certbag2scrl PKCS12_SAFEBAG_get1_crl\n# define PKCS12_bag_type PKCS12_SAFEBAG_get_nid\n# define PKCS12_cert_bag_type PKCS12_SAFEBAG_get_bag_nid\n# define PKCS12_x5092certbag PKCS12_SAFEBAG_create_cert\n# define PKCS12_x509crl2certbag PKCS12_SAFEBAG_create_crl\n# define PKCS12_MAKE_KEYBAG PKCS12_SAFEBAG_create0_p8inf\n# define PKCS12_MAKE_SHKEYBAG PKCS12_SAFEBAG_create_pkcs8_encrypt\n\n#endif\n\nDEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid))\n\nASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);\nint PKCS12_mac_present(const PKCS12 *p12);\nvoid PKCS12_get0_mac(const ASN1_OCTET_STRING **pmac,\n                     const X509_ALGOR **pmacalg,\n                     const ASN1_OCTET_STRING **psalt,\n                     const ASN1_INTEGER **piter,\n                     const PKCS12 *p12);\n\nconst ASN1_TYPE *PKCS12_SAFEBAG_get0_attr(const PKCS12_SAFEBAG *bag,\n                                          int attr_nid);\nconst ASN1_OBJECT *PKCS12_SAFEBAG_get0_type(const PKCS12_SAFEBAG *bag);\nint PKCS12_SAFEBAG_get_nid(const PKCS12_SAFEBAG *bag);\nint PKCS12_SAFEBAG_get_bag_nid(const PKCS12_SAFEBAG *bag);\n\nX509 *PKCS12_SAFEBAG_get1_cert(const PKCS12_SAFEBAG *bag);\nX509_CRL *PKCS12_SAFEBAG_get1_crl(const PKCS12_SAFEBAG *bag);\nconst STACK_OF(PKCS12_SAFEBAG) *\nPKCS12_SAFEBAG_get0_safes(const PKCS12_SAFEBAG *bag);\nconst PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);\nconst X509_SIG *PKCS12_SAFEBAG_get0_pkcs8(const PKCS12_SAFEBAG *bag);\n\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_cert(X509 *x509);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_crl(X509_CRL *crl);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_pkcs8(X509_SIG *p8);\nPKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,\n                                                    const char *pass,\n                                                    int passlen,\n                                                    unsigned char *salt,\n                                                    int saltlen, int iter,\n                                                    PKCS8_PRIV_KEY_INFO *p8inf);\n\nPKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it,\n                                         int nid1, int nid2);\nPKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,\n                                   int passlen);\nPKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,\n                                         const char *pass, int passlen);\nX509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,\n                        const char *pass, int passlen, unsigned char *salt,\n                        int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);\nX509_SIG *PKCS8_set0_pbe(const char *pass, int passlen,\n                        PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);\nPKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk);\nSTACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7);\nPKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,\n                             unsigned char *salt, int saltlen, int iter,\n                             STACK_OF(PKCS12_SAFEBAG) *bags);\nSTACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass,\n                                                  int passlen);\n\nint PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);\nSTACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);\n\nint PKCS12_add_localkeyid(PKCS12_SAFEBAG *bag, unsigned char *name,\n                          int namelen);\nint PKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag, const char *name,\n                                int namelen);\nint PKCS12_add_friendlyname_utf8(PKCS12_SAFEBAG *bag, const char *name,\n                                 int namelen);\nint PKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag, const char *name,\n                           int namelen);\nint PKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,\n                                const unsigned char *name, int namelen);\nint PKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8, int usage);\nASN1_TYPE *PKCS12_get_attr_gen(const STACK_OF(X509_ATTRIBUTE) *attrs,\n                               int attr_nid);\nchar *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag);\nconst STACK_OF(X509_ATTRIBUTE) *\nPKCS12_SAFEBAG_get0_attrs(const PKCS12_SAFEBAG *bag);\nunsigned char *PKCS12_pbe_crypt(const X509_ALGOR *algor,\n                                const char *pass, int passlen,\n                                const unsigned char *in, int inlen,\n                                unsigned char **data, int *datalen,\n                                int en_de);\nvoid *PKCS12_item_decrypt_d2i(const X509_ALGOR *algor, const ASN1_ITEM *it,\n                              const char *pass, int passlen,\n                              const ASN1_OCTET_STRING *oct, int zbuf);\nASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,\n                                           const ASN1_ITEM *it,\n                                           const char *pass, int passlen,\n                                           void *obj, int zbuf);\nPKCS12 *PKCS12_init(int mode);\nint PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,\n                       int saltlen, int id, int iter, int n,\n                       unsigned char *out, const EVP_MD *md_type);\nint PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt,\n                       int saltlen, int id, int iter, int n,\n                       unsigned char *out, const EVP_MD *md_type);\nint PKCS12_key_gen_utf8(const char *pass, int passlen, unsigned char *salt,\n                        int saltlen, int id, int iter, int n,\n                        unsigned char *out, const EVP_MD *md_type);\nint PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,\n                        ASN1_TYPE *param, const EVP_CIPHER *cipher,\n                        const EVP_MD *md_type, int en_de);\nint PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,\n                   unsigned char *mac, unsigned int *maclen);\nint PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);\nint PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,\n                   unsigned char *salt, int saltlen, int iter,\n                   const EVP_MD *md_type);\nint PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,\n                     int saltlen, const EVP_MD *md_type);\nunsigned char *OPENSSL_asc2uni(const char *asc, int asclen,\n                               unsigned char **uni, int *unilen);\nchar *OPENSSL_uni2asc(const unsigned char *uni, int unilen);\nunsigned char *OPENSSL_utf82uni(const char *asc, int asclen,\n                                unsigned char **uni, int *unilen);\nchar *OPENSSL_uni2utf8(const unsigned char *uni, int unilen);\n\nDECLARE_ASN1_FUNCTIONS(PKCS12)\nDECLARE_ASN1_FUNCTIONS(PKCS12_MAC_DATA)\nDECLARE_ASN1_FUNCTIONS(PKCS12_SAFEBAG)\nDECLARE_ASN1_FUNCTIONS(PKCS12_BAGS)\n\nDECLARE_ASN1_ITEM(PKCS12_SAFEBAGS)\nDECLARE_ASN1_ITEM(PKCS12_AUTHSAFES)\n\nvoid PKCS12_PBE_add(void);\nint PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,\n                 STACK_OF(X509) **ca);\nPKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,\n                      X509 *cert, STACK_OF(X509) *ca, int nid_key, int nid_cert,\n                      int iter, int mac_iter, int keytype);\n\nPKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG) **pbags, X509 *cert);\nPKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG) **pbags,\n                               EVP_PKEY *key, int key_usage, int iter,\n                               int key_nid, const char *pass);\nint PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,\n                    int safe_nid, int iter, const char *pass);\nPKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);\n\nint i2d_PKCS12_bio(BIO *bp, PKCS12 *p12);\n# ifndef OPENSSL_NO_STDIO\nint i2d_PKCS12_fp(FILE *fp, PKCS12 *p12);\n# endif\nPKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);\n# ifndef OPENSSL_NO_STDIO\nPKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12);\n# endif\nint PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pkcs12err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS12ERR_H\n# define HEADER_PKCS12ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PKCS12_strings(void);\n\n/*\n * PKCS12 function codes.\n */\n# define PKCS12_F_OPENSSL_ASC2UNI                         121\n# define PKCS12_F_OPENSSL_UNI2ASC                         124\n# define PKCS12_F_OPENSSL_UNI2UTF8                        127\n# define PKCS12_F_OPENSSL_UTF82UNI                        129\n# define PKCS12_F_PKCS12_CREATE                           105\n# define PKCS12_F_PKCS12_GEN_MAC                          107\n# define PKCS12_F_PKCS12_INIT                             109\n# define PKCS12_F_PKCS12_ITEM_DECRYPT_D2I                 106\n# define PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT                 108\n# define PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG                117\n# define PKCS12_F_PKCS12_KEY_GEN_ASC                      110\n# define PKCS12_F_PKCS12_KEY_GEN_UNI                      111\n# define PKCS12_F_PKCS12_KEY_GEN_UTF8                     116\n# define PKCS12_F_PKCS12_NEWPASS                          128\n# define PKCS12_F_PKCS12_PACK_P7DATA                      114\n# define PKCS12_F_PKCS12_PACK_P7ENCDATA                   115\n# define PKCS12_F_PKCS12_PARSE                            118\n# define PKCS12_F_PKCS12_PBE_CRYPT                        119\n# define PKCS12_F_PKCS12_PBE_KEYIVGEN                     120\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE0_P8INF            112\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE0_PKCS8            113\n# define PKCS12_F_PKCS12_SAFEBAG_CREATE_PKCS8_ENCRYPT     133\n# define PKCS12_F_PKCS12_SETUP_MAC                        122\n# define PKCS12_F_PKCS12_SET_MAC                          123\n# define PKCS12_F_PKCS12_UNPACK_AUTHSAFES                 130\n# define PKCS12_F_PKCS12_UNPACK_P7DATA                    131\n# define PKCS12_F_PKCS12_VERIFY_MAC                       126\n# define PKCS12_F_PKCS8_ENCRYPT                           125\n# define PKCS12_F_PKCS8_SET0_PBE                          132\n\n/*\n * PKCS12 reason codes.\n */\n# define PKCS12_R_CANT_PACK_STRUCTURE                     100\n# define PKCS12_R_CONTENT_TYPE_NOT_DATA                   121\n# define PKCS12_R_DECODE_ERROR                            101\n# define PKCS12_R_ENCODE_ERROR                            102\n# define PKCS12_R_ENCRYPT_ERROR                           103\n# define PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE       120\n# define PKCS12_R_INVALID_NULL_ARGUMENT                   104\n# define PKCS12_R_INVALID_NULL_PKCS12_POINTER             105\n# define PKCS12_R_IV_GEN_ERROR                            106\n# define PKCS12_R_KEY_GEN_ERROR                           107\n# define PKCS12_R_MAC_ABSENT                              108\n# define PKCS12_R_MAC_GENERATION_ERROR                    109\n# define PKCS12_R_MAC_SETUP_ERROR                         110\n# define PKCS12_R_MAC_STRING_SET_ERROR                    111\n# define PKCS12_R_MAC_VERIFY_FAILURE                      113\n# define PKCS12_R_PARSE_ERROR                             114\n# define PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR           115\n# define PKCS12_R_PKCS12_CIPHERFINAL_ERROR                116\n# define PKCS12_R_PKCS12_PBE_CRYPT_ERROR                  117\n# define PKCS12_R_UNKNOWN_DIGEST_ALGORITHM                118\n# define PKCS12_R_UNSUPPORTED_PKCS12_MODE                 119\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pkcs7.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS7_H\n# define HEADER_PKCS7_H\n\n# include <openssl/asn1.h>\n# include <openssl/bio.h>\n# include <openssl/e_os2.h>\n\n# include <openssl/symhacks.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/pkcs7err.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\nEncryption_ID           DES-CBC\nDigest_ID               MD5\nDigest_Encryption_ID    rsaEncryption\nKey_Encryption_ID       rsaEncryption\n*/\n\ntypedef struct pkcs7_issuer_and_serial_st {\n    X509_NAME *issuer;\n    ASN1_INTEGER *serial;\n} PKCS7_ISSUER_AND_SERIAL;\n\ntypedef struct pkcs7_signer_info_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    PKCS7_ISSUER_AND_SERIAL *issuer_and_serial;\n    X509_ALGOR *digest_alg;\n    STACK_OF(X509_ATTRIBUTE) *auth_attr; /* [ 0 ] */\n    X509_ALGOR *digest_enc_alg;\n    ASN1_OCTET_STRING *enc_digest;\n    STACK_OF(X509_ATTRIBUTE) *unauth_attr; /* [ 1 ] */\n    /* The private key to sign with */\n    EVP_PKEY *pkey;\n} PKCS7_SIGNER_INFO;\n\nDEFINE_STACK_OF(PKCS7_SIGNER_INFO)\n\ntypedef struct pkcs7_recip_info_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    PKCS7_ISSUER_AND_SERIAL *issuer_and_serial;\n    X509_ALGOR *key_enc_algor;\n    ASN1_OCTET_STRING *enc_key;\n    X509 *cert;                 /* get the pub-key from this */\n} PKCS7_RECIP_INFO;\n\nDEFINE_STACK_OF(PKCS7_RECIP_INFO)\n\ntypedef struct pkcs7_signed_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    STACK_OF(X509_ALGOR) *md_algs; /* md used */\n    STACK_OF(X509) *cert;       /* [ 0 ] */\n    STACK_OF(X509_CRL) *crl;    /* [ 1 ] */\n    STACK_OF(PKCS7_SIGNER_INFO) *signer_info;\n    struct pkcs7_st *contents;\n} PKCS7_SIGNED;\n/*\n * The above structure is very very similar to PKCS7_SIGN_ENVELOPE. How about\n * merging the two\n */\n\ntypedef struct pkcs7_enc_content_st {\n    ASN1_OBJECT *content_type;\n    X509_ALGOR *algorithm;\n    ASN1_OCTET_STRING *enc_data; /* [ 0 ] */\n    const EVP_CIPHER *cipher;\n} PKCS7_ENC_CONTENT;\n\ntypedef struct pkcs7_enveloped_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;\n    PKCS7_ENC_CONTENT *enc_data;\n} PKCS7_ENVELOPE;\n\ntypedef struct pkcs7_signedandenveloped_st {\n    ASN1_INTEGER *version;      /* version 1 */\n    STACK_OF(X509_ALGOR) *md_algs; /* md used */\n    STACK_OF(X509) *cert;       /* [ 0 ] */\n    STACK_OF(X509_CRL) *crl;    /* [ 1 ] */\n    STACK_OF(PKCS7_SIGNER_INFO) *signer_info;\n    PKCS7_ENC_CONTENT *enc_data;\n    STACK_OF(PKCS7_RECIP_INFO) *recipientinfo;\n} PKCS7_SIGN_ENVELOPE;\n\ntypedef struct pkcs7_digest_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    X509_ALGOR *md;             /* md used */\n    struct pkcs7_st *contents;\n    ASN1_OCTET_STRING *digest;\n} PKCS7_DIGEST;\n\ntypedef struct pkcs7_encrypted_st {\n    ASN1_INTEGER *version;      /* version 0 */\n    PKCS7_ENC_CONTENT *enc_data;\n} PKCS7_ENCRYPT;\n\ntypedef struct pkcs7_st {\n    /*\n     * The following is non NULL if it contains ASN1 encoding of this\n     * structure\n     */\n    unsigned char *asn1;\n    long length;\n# define PKCS7_S_HEADER  0\n# define PKCS7_S_BODY    1\n# define PKCS7_S_TAIL    2\n    int state;                  /* used during processing */\n    int detached;\n    ASN1_OBJECT *type;\n    /* content as defined by the type */\n    /*\n     * all encryption/message digests are applied to the 'contents', leaving\n     * out the 'type' field.\n     */\n    union {\n        char *ptr;\n        /* NID_pkcs7_data */\n        ASN1_OCTET_STRING *data;\n        /* NID_pkcs7_signed */\n        PKCS7_SIGNED *sign;\n        /* NID_pkcs7_enveloped */\n        PKCS7_ENVELOPE *enveloped;\n        /* NID_pkcs7_signedAndEnveloped */\n        PKCS7_SIGN_ENVELOPE *signed_and_enveloped;\n        /* NID_pkcs7_digest */\n        PKCS7_DIGEST *digest;\n        /* NID_pkcs7_encrypted */\n        PKCS7_ENCRYPT *encrypted;\n        /* Anything else */\n        ASN1_TYPE *other;\n    } d;\n} PKCS7;\n\nDEFINE_STACK_OF(PKCS7)\n\n# define PKCS7_OP_SET_DETACHED_SIGNATURE 1\n# define PKCS7_OP_GET_DETACHED_SIGNATURE 2\n\n# define PKCS7_get_signed_attributes(si) ((si)->auth_attr)\n# define PKCS7_get_attributes(si)        ((si)->unauth_attr)\n\n# define PKCS7_type_is_signed(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_signed)\n# define PKCS7_type_is_encrypted(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_encrypted)\n# define PKCS7_type_is_enveloped(a) (OBJ_obj2nid((a)->type) == NID_pkcs7_enveloped)\n# define PKCS7_type_is_signedAndEnveloped(a) \\\n                (OBJ_obj2nid((a)->type) == NID_pkcs7_signedAndEnveloped)\n# define PKCS7_type_is_data(a)   (OBJ_obj2nid((a)->type) == NID_pkcs7_data)\n# define PKCS7_type_is_digest(a)   (OBJ_obj2nid((a)->type) == NID_pkcs7_digest)\n\n# define PKCS7_set_detached(p,v) \\\n                PKCS7_ctrl(p,PKCS7_OP_SET_DETACHED_SIGNATURE,v,NULL)\n# define PKCS7_get_detached(p) \\\n                PKCS7_ctrl(p,PKCS7_OP_GET_DETACHED_SIGNATURE,0,NULL)\n\n# define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7))\n\n/* S/MIME related flags */\n\n# define PKCS7_TEXT              0x1\n# define PKCS7_NOCERTS           0x2\n# define PKCS7_NOSIGS            0x4\n# define PKCS7_NOCHAIN           0x8\n# define PKCS7_NOINTERN          0x10\n# define PKCS7_NOVERIFY          0x20\n# define PKCS7_DETACHED          0x40\n# define PKCS7_BINARY            0x80\n# define PKCS7_NOATTR            0x100\n# define PKCS7_NOSMIMECAP        0x200\n# define PKCS7_NOOLDMIMETYPE     0x400\n# define PKCS7_CRLFEOL           0x800\n# define PKCS7_STREAM            0x1000\n# define PKCS7_NOCRL             0x2000\n# define PKCS7_PARTIAL           0x4000\n# define PKCS7_REUSE_DIGEST      0x8000\n# define PKCS7_NO_DUAL_CONTENT   0x10000\n\n/* Flags: for compatibility with older code */\n\n# define SMIME_TEXT      PKCS7_TEXT\n# define SMIME_NOCERTS   PKCS7_NOCERTS\n# define SMIME_NOSIGS    PKCS7_NOSIGS\n# define SMIME_NOCHAIN   PKCS7_NOCHAIN\n# define SMIME_NOINTERN  PKCS7_NOINTERN\n# define SMIME_NOVERIFY  PKCS7_NOVERIFY\n# define SMIME_DETACHED  PKCS7_DETACHED\n# define SMIME_BINARY    PKCS7_BINARY\n# define SMIME_NOATTR    PKCS7_NOATTR\n\n/* CRLF ASCII canonicalisation */\n# define SMIME_ASCIICRLF         0x80000\n\nDECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL)\n\nint PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,\n                                   const EVP_MD *type, unsigned char *md,\n                                   unsigned int *len);\n# ifndef OPENSSL_NO_STDIO\nPKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);\nint i2d_PKCS7_fp(FILE *fp, PKCS7 *p7);\n# endif\nPKCS7 *PKCS7_dup(PKCS7 *p7);\nPKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);\nint i2d_PKCS7_bio(BIO *bp, PKCS7 *p7);\nint i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);\nint PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);\n\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGNER_INFO)\nDECLARE_ASN1_FUNCTIONS(PKCS7_RECIP_INFO)\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGNED)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENC_CONTENT)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENVELOPE)\nDECLARE_ASN1_FUNCTIONS(PKCS7_SIGN_ENVELOPE)\nDECLARE_ASN1_FUNCTIONS(PKCS7_DIGEST)\nDECLARE_ASN1_FUNCTIONS(PKCS7_ENCRYPT)\nDECLARE_ASN1_FUNCTIONS(PKCS7)\n\nDECLARE_ASN1_ITEM(PKCS7_ATTR_SIGN)\nDECLARE_ASN1_ITEM(PKCS7_ATTR_VERIFY)\n\nDECLARE_ASN1_NDEF_FUNCTION(PKCS7)\nDECLARE_ASN1_PRINT_FUNCTION(PKCS7)\n\nlong PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);\n\nint PKCS7_set_type(PKCS7 *p7, int type);\nint PKCS7_set0_type_other(PKCS7 *p7, int type, ASN1_TYPE *other);\nint PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data);\nint PKCS7_SIGNER_INFO_set(PKCS7_SIGNER_INFO *p7i, X509 *x509, EVP_PKEY *pkey,\n                          const EVP_MD *dgst);\nint PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);\nint PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *p7i);\nint PKCS7_add_certificate(PKCS7 *p7, X509 *x509);\nint PKCS7_add_crl(PKCS7 *p7, X509_CRL *x509);\nint PKCS7_content_new(PKCS7 *p7, int nid);\nint PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx,\n                     BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);\nint PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,\n                          X509 *x509);\n\nBIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio);\nint PKCS7_dataFinal(PKCS7 *p7, BIO *bio);\nBIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert);\n\nPKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509,\n                                       EVP_PKEY *pkey, const EVP_MD *dgst);\nX509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);\nint PKCS7_set_digest(PKCS7 *p7, const EVP_MD *md);\nSTACK_OF(PKCS7_SIGNER_INFO) *PKCS7_get_signer_info(PKCS7 *p7);\n\nPKCS7_RECIP_INFO *PKCS7_add_recipient(PKCS7 *p7, X509 *x509);\nvoid PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,\n                                 X509_ALGOR **pdig, X509_ALGOR **psig);\nvoid PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);\nint PKCS7_add_recipient_info(PKCS7 *p7, PKCS7_RECIP_INFO *ri);\nint PKCS7_RECIP_INFO_set(PKCS7_RECIP_INFO *p7i, X509 *x509);\nint PKCS7_set_cipher(PKCS7 *p7, const EVP_CIPHER *cipher);\nint PKCS7_stream(unsigned char ***boundary, PKCS7 *p7);\n\nPKCS7_ISSUER_AND_SERIAL *PKCS7_get_issuer_and_serial(PKCS7 *p7, int idx);\nASN1_OCTET_STRING *PKCS7_digest_from_attributes(STACK_OF(X509_ATTRIBUTE) *sk);\nint PKCS7_add_signed_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int type,\n                               void *data);\nint PKCS7_add_attribute(PKCS7_SIGNER_INFO *p7si, int nid, int atrtype,\n                        void *value);\nASN1_TYPE *PKCS7_get_attribute(PKCS7_SIGNER_INFO *si, int nid);\nASN1_TYPE *PKCS7_get_signed_attribute(PKCS7_SIGNER_INFO *si, int nid);\nint PKCS7_set_signed_attributes(PKCS7_SIGNER_INFO *p7si,\n                                STACK_OF(X509_ATTRIBUTE) *sk);\nint PKCS7_set_attributes(PKCS7_SIGNER_INFO *p7si,\n                         STACK_OF(X509_ATTRIBUTE) *sk);\n\nPKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,\n                  BIO *data, int flags);\n\nPKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7,\n                                         X509 *signcert, EVP_PKEY *pkey,\n                                         const EVP_MD *md, int flags);\n\nint PKCS7_final(PKCS7 *p7, BIO *data, int flags);\nint PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,\n                 BIO *indata, BIO *out, int flags);\nSTACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs,\n                                   int flags);\nPKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,\n                     int flags);\nint PKCS7_decrypt(PKCS7 *p7, EVP_PKEY *pkey, X509 *cert, BIO *data,\n                  int flags);\n\nint PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si,\n                              STACK_OF(X509_ALGOR) *cap);\nSTACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si);\nint PKCS7_simple_smimecap(STACK_OF(X509_ALGOR) *sk, int nid, int arg);\n\nint PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid);\nint PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t);\nint PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si,\n                             const unsigned char *md, int mdlen);\n\nint SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags);\nPKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont);\n\nBIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/pkcs7err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_PKCS7ERR_H\n# define HEADER_PKCS7ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_PKCS7_strings(void);\n\n/*\n * PKCS7 function codes.\n */\n# define PKCS7_F_DO_PKCS7_SIGNED_ATTRIB                   136\n# define PKCS7_F_PKCS7_ADD0_ATTRIB_SIGNING_TIME           135\n# define PKCS7_F_PKCS7_ADD_ATTRIB_SMIMECAP                118\n# define PKCS7_F_PKCS7_ADD_CERTIFICATE                    100\n# define PKCS7_F_PKCS7_ADD_CRL                            101\n# define PKCS7_F_PKCS7_ADD_RECIPIENT_INFO                 102\n# define PKCS7_F_PKCS7_ADD_SIGNATURE                      131\n# define PKCS7_F_PKCS7_ADD_SIGNER                         103\n# define PKCS7_F_PKCS7_BIO_ADD_DIGEST                     125\n# define PKCS7_F_PKCS7_COPY_EXISTING_DIGEST               138\n# define PKCS7_F_PKCS7_CTRL                               104\n# define PKCS7_F_PKCS7_DATADECODE                         112\n# define PKCS7_F_PKCS7_DATAFINAL                          128\n# define PKCS7_F_PKCS7_DATAINIT                           105\n# define PKCS7_F_PKCS7_DATAVERIFY                         107\n# define PKCS7_F_PKCS7_DECRYPT                            114\n# define PKCS7_F_PKCS7_DECRYPT_RINFO                      133\n# define PKCS7_F_PKCS7_ENCODE_RINFO                       132\n# define PKCS7_F_PKCS7_ENCRYPT                            115\n# define PKCS7_F_PKCS7_FINAL                              134\n# define PKCS7_F_PKCS7_FIND_DIGEST                        127\n# define PKCS7_F_PKCS7_GET0_SIGNERS                       124\n# define PKCS7_F_PKCS7_RECIP_INFO_SET                     130\n# define PKCS7_F_PKCS7_SET_CIPHER                         108\n# define PKCS7_F_PKCS7_SET_CONTENT                        109\n# define PKCS7_F_PKCS7_SET_DIGEST                         126\n# define PKCS7_F_PKCS7_SET_TYPE                           110\n# define PKCS7_F_PKCS7_SIGN                               116\n# define PKCS7_F_PKCS7_SIGNATUREVERIFY                    113\n# define PKCS7_F_PKCS7_SIGNER_INFO_SET                    129\n# define PKCS7_F_PKCS7_SIGNER_INFO_SIGN                   139\n# define PKCS7_F_PKCS7_SIGN_ADD_SIGNER                    137\n# define PKCS7_F_PKCS7_SIMPLE_SMIMECAP                    119\n# define PKCS7_F_PKCS7_VERIFY                             117\n\n/*\n * PKCS7 reason codes.\n */\n# define PKCS7_R_CERTIFICATE_VERIFY_ERROR                 117\n# define PKCS7_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER          144\n# define PKCS7_R_CIPHER_NOT_INITIALIZED                   116\n# define PKCS7_R_CONTENT_AND_DATA_PRESENT                 118\n# define PKCS7_R_CTRL_ERROR                               152\n# define PKCS7_R_DECRYPT_ERROR                            119\n# define PKCS7_R_DIGEST_FAILURE                           101\n# define PKCS7_R_ENCRYPTION_CTRL_FAILURE                  149\n# define PKCS7_R_ENCRYPTION_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 150\n# define PKCS7_R_ERROR_ADDING_RECIPIENT                   120\n# define PKCS7_R_ERROR_SETTING_CIPHER                     121\n# define PKCS7_R_INVALID_NULL_POINTER                     143\n# define PKCS7_R_INVALID_SIGNED_DATA_TYPE                 155\n# define PKCS7_R_NO_CONTENT                               122\n# define PKCS7_R_NO_DEFAULT_DIGEST                        151\n# define PKCS7_R_NO_MATCHING_DIGEST_TYPE_FOUND            154\n# define PKCS7_R_NO_RECIPIENT_MATCHES_CERTIFICATE         115\n# define PKCS7_R_NO_SIGNATURES_ON_DATA                    123\n# define PKCS7_R_NO_SIGNERS                               142\n# define PKCS7_R_OPERATION_NOT_SUPPORTED_ON_THIS_TYPE     104\n# define PKCS7_R_PKCS7_ADD_SIGNATURE_ERROR                124\n# define PKCS7_R_PKCS7_ADD_SIGNER_ERROR                   153\n# define PKCS7_R_PKCS7_DATASIGN                           145\n# define PKCS7_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE   127\n# define PKCS7_R_SIGNATURE_FAILURE                        105\n# define PKCS7_R_SIGNER_CERTIFICATE_NOT_FOUND             128\n# define PKCS7_R_SIGNING_CTRL_FAILURE                     147\n# define PKCS7_R_SIGNING_NOT_SUPPORTED_FOR_THIS_KEY_TYPE  148\n# define PKCS7_R_SMIME_TEXT_ERROR                         129\n# define PKCS7_R_UNABLE_TO_FIND_CERTIFICATE               106\n# define PKCS7_R_UNABLE_TO_FIND_MEM_BIO                   107\n# define PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST            108\n# define PKCS7_R_UNKNOWN_DIGEST_TYPE                      109\n# define PKCS7_R_UNKNOWN_OPERATION                        110\n# define PKCS7_R_UNSUPPORTED_CIPHER_TYPE                  111\n# define PKCS7_R_UNSUPPORTED_CONTENT_TYPE                 112\n# define PKCS7_R_WRONG_CONTENT_TYPE                       113\n# define PKCS7_R_WRONG_PKCS7_TYPE                         114\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rand.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RAND_H\n# define HEADER_RAND_H\n\n# include <stdlib.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/e_os2.h>\n# include <openssl/randerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\nstruct rand_meth_st {\n    int (*seed) (const void *buf, int num);\n    int (*bytes) (unsigned char *buf, int num);\n    void (*cleanup) (void);\n    int (*add) (const void *buf, int num, double randomness);\n    int (*pseudorand) (unsigned char *buf, int num);\n    int (*status) (void);\n};\n\nint RAND_set_rand_method(const RAND_METHOD *meth);\nconst RAND_METHOD *RAND_get_rand_method(void);\n# ifndef OPENSSL_NO_ENGINE\nint RAND_set_rand_engine(ENGINE *engine);\n# endif\n\nRAND_METHOD *RAND_OpenSSL(void);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#   define RAND_cleanup() while(0) continue\n# endif\nint RAND_bytes(unsigned char *buf, int num);\nint RAND_priv_bytes(unsigned char *buf, int num);\nDEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))\n\nvoid RAND_seed(const void *buf, int num);\nvoid RAND_keep_random_devices_open(int keep);\n\n# if defined(__ANDROID__) && defined(__NDK_FPABI__)\n__NDK_FPABI__\t/* __attribute__((pcs(\"aapcs\"))) on ARM */\n# endif\nvoid RAND_add(const void *buf, int num, double randomness);\nint RAND_load_file(const char *file, long max_bytes);\nint RAND_write_file(const char *file);\nconst char *RAND_file_name(char *file, size_t num);\nint RAND_status(void);\n\n# ifndef OPENSSL_NO_EGD\nint RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);\nint RAND_egd(const char *path);\nint RAND_egd_bytes(const char *path, int bytes);\n# endif\n\nint RAND_poll(void);\n\n# if defined(_WIN32) && (defined(BASETYPES) || defined(_WINDEF_H))\n/* application has to include <windows.h> in order to use these */\nDEPRECATEDIN_1_1_0(void RAND_screen(void))\nDEPRECATEDIN_1_1_0(int RAND_event(UINT, WPARAM, LPARAM))\n# endif\n\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rand_drbg.h",
    "content": "/*\n * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_DRBG_RAND_H\n# define HEADER_DRBG_RAND_H\n\n# include <time.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/obj_mac.h>\n\n/*\n * RAND_DRBG  flags\n *\n * Note: if new flags are added, the constant `rand_drbg_used_flags`\n *       in drbg_lib.c needs to be updated accordingly.\n */\n\n/* In CTR mode, disable derivation function ctr_df */\n# define RAND_DRBG_FLAG_CTR_NO_DF            0x1\n\n\n# if OPENSSL_API_COMPAT < 0x10200000L\n/* This #define was replaced by an internal constant and should not be used. */\n#  define RAND_DRBG_USED_FLAGS  (RAND_DRBG_FLAG_CTR_NO_DF)\n# endif\n\n/*\n * Default security strength (in the sense of [NIST SP 800-90Ar1])\n *\n * NIST SP 800-90Ar1 supports the strength of the DRBG being smaller than that\n * of the cipher by collecting less entropy. The current DRBG implementation\n * does not take RAND_DRBG_STRENGTH into account and sets the strength of the\n * DRBG to that of the cipher.\n *\n * RAND_DRBG_STRENGTH is currently only used for the legacy RAND\n * implementation.\n *\n * Currently supported ciphers are: NID_aes_128_ctr, NID_aes_192_ctr and\n * NID_aes_256_ctr\n */\n# define RAND_DRBG_STRENGTH             256\n/* Default drbg type */\n# define RAND_DRBG_TYPE                 NID_aes_256_ctr\n/* Default drbg flags */\n# define RAND_DRBG_FLAGS                0\n\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * Object lifetime functions.\n */\nRAND_DRBG *RAND_DRBG_new(int type, unsigned int flags, RAND_DRBG *parent);\nRAND_DRBG *RAND_DRBG_secure_new(int type, unsigned int flags, RAND_DRBG *parent);\nint RAND_DRBG_set(RAND_DRBG *drbg, int type, unsigned int flags);\nint RAND_DRBG_set_defaults(int type, unsigned int flags);\nint RAND_DRBG_instantiate(RAND_DRBG *drbg,\n                          const unsigned char *pers, size_t perslen);\nint RAND_DRBG_uninstantiate(RAND_DRBG *drbg);\nvoid RAND_DRBG_free(RAND_DRBG *drbg);\n\n/*\n * Object \"use\" functions.\n */\nint RAND_DRBG_reseed(RAND_DRBG *drbg,\n                     const unsigned char *adin, size_t adinlen,\n                     int prediction_resistance);\nint RAND_DRBG_generate(RAND_DRBG *drbg, unsigned char *out, size_t outlen,\n                       int prediction_resistance,\n                       const unsigned char *adin, size_t adinlen);\nint RAND_DRBG_bytes(RAND_DRBG *drbg, unsigned char *out, size_t outlen);\n\nint RAND_DRBG_set_reseed_interval(RAND_DRBG *drbg, unsigned int interval);\nint RAND_DRBG_set_reseed_time_interval(RAND_DRBG *drbg, time_t interval);\n\nint RAND_DRBG_set_reseed_defaults(\n                                  unsigned int master_reseed_interval,\n                                  unsigned int slave_reseed_interval,\n                                  time_t master_reseed_time_interval,\n                                  time_t slave_reseed_time_interval\n                                  );\n\nRAND_DRBG *RAND_DRBG_get0_master(void);\nRAND_DRBG *RAND_DRBG_get0_public(void);\nRAND_DRBG *RAND_DRBG_get0_private(void);\n\n/*\n * EXDATA\n */\n# define RAND_DRBG_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_DRBG, l, p, newf, dupf, freef)\nint RAND_DRBG_set_ex_data(RAND_DRBG *drbg, int idx, void *arg);\nvoid *RAND_DRBG_get_ex_data(const RAND_DRBG *drbg, int idx);\n\n/*\n * Callback function typedefs\n */\ntypedef size_t (*RAND_DRBG_get_entropy_fn)(RAND_DRBG *drbg,\n                                           unsigned char **pout,\n                                           int entropy, size_t min_len,\n                                           size_t max_len,\n                                           int prediction_resistance);\ntypedef void (*RAND_DRBG_cleanup_entropy_fn)(RAND_DRBG *ctx,\n                                             unsigned char *out, size_t outlen);\ntypedef size_t (*RAND_DRBG_get_nonce_fn)(RAND_DRBG *drbg, unsigned char **pout,\n                                         int entropy, size_t min_len,\n                                         size_t max_len);\ntypedef void (*RAND_DRBG_cleanup_nonce_fn)(RAND_DRBG *drbg,\n                                           unsigned char *out, size_t outlen);\n\nint RAND_DRBG_set_callbacks(RAND_DRBG *drbg,\n                            RAND_DRBG_get_entropy_fn get_entropy,\n                            RAND_DRBG_cleanup_entropy_fn cleanup_entropy,\n                            RAND_DRBG_get_nonce_fn get_nonce,\n                            RAND_DRBG_cleanup_nonce_fn cleanup_nonce);\n\n\n# ifdef  __cplusplus\n}\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/randerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RANDERR_H\n# define HEADER_RANDERR_H\n\n# include <openssl/symhacks.h>\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_RAND_strings(void);\n\n/*\n * RAND function codes.\n */\n# define RAND_F_DATA_COLLECT_METHOD                       127\n# define RAND_F_DRBG_BYTES                                101\n# define RAND_F_DRBG_GET_ENTROPY                          105\n# define RAND_F_DRBG_SETUP                                117\n# define RAND_F_GET_ENTROPY                               106\n# define RAND_F_RAND_BYTES                                100\n# define RAND_F_RAND_DRBG_ENABLE_LOCKING                  119\n# define RAND_F_RAND_DRBG_GENERATE                        107\n# define RAND_F_RAND_DRBG_GET_ENTROPY                     120\n# define RAND_F_RAND_DRBG_GET_NONCE                       123\n# define RAND_F_RAND_DRBG_INSTANTIATE                     108\n# define RAND_F_RAND_DRBG_NEW                             109\n# define RAND_F_RAND_DRBG_RESEED                          110\n# define RAND_F_RAND_DRBG_RESTART                         102\n# define RAND_F_RAND_DRBG_SET                             104\n# define RAND_F_RAND_DRBG_SET_DEFAULTS                    121\n# define RAND_F_RAND_DRBG_UNINSTANTIATE                   118\n# define RAND_F_RAND_LOAD_FILE                            111\n# define RAND_F_RAND_POOL_ACQUIRE_ENTROPY                 122\n# define RAND_F_RAND_POOL_ADD                             103\n# define RAND_F_RAND_POOL_ADD_BEGIN                       113\n# define RAND_F_RAND_POOL_ADD_END                         114\n# define RAND_F_RAND_POOL_ATTACH                          124\n# define RAND_F_RAND_POOL_BYTES_NEEDED                    115\n# define RAND_F_RAND_POOL_GROW                            125\n# define RAND_F_RAND_POOL_NEW                             116\n# define RAND_F_RAND_PSEUDO_BYTES                         126\n# define RAND_F_RAND_WRITE_FILE                           112\n\n/*\n * RAND reason codes.\n */\n# define RAND_R_ADDITIONAL_INPUT_TOO_LONG                 102\n# define RAND_R_ALREADY_INSTANTIATED                      103\n# define RAND_R_ARGUMENT_OUT_OF_RANGE                     105\n# define RAND_R_CANNOT_OPEN_FILE                          121\n# define RAND_R_DRBG_ALREADY_INITIALIZED                  129\n# define RAND_R_DRBG_NOT_INITIALISED                      104\n# define RAND_R_ENTROPY_INPUT_TOO_LONG                    106\n# define RAND_R_ENTROPY_OUT_OF_RANGE                      124\n# define RAND_R_ERROR_ENTROPY_POOL_WAS_IGNORED            127\n# define RAND_R_ERROR_INITIALISING_DRBG                   107\n# define RAND_R_ERROR_INSTANTIATING_DRBG                  108\n# define RAND_R_ERROR_RETRIEVING_ADDITIONAL_INPUT         109\n# define RAND_R_ERROR_RETRIEVING_ENTROPY                  110\n# define RAND_R_ERROR_RETRIEVING_NONCE                    111\n# define RAND_R_FAILED_TO_CREATE_LOCK                     126\n# define RAND_R_FUNC_NOT_IMPLEMENTED                      101\n# define RAND_R_FWRITE_ERROR                              123\n# define RAND_R_GENERATE_ERROR                            112\n# define RAND_R_INTERNAL_ERROR                            113\n# define RAND_R_IN_ERROR_STATE                            114\n# define RAND_R_NOT_A_REGULAR_FILE                        122\n# define RAND_R_NOT_INSTANTIATED                          115\n# define RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED           128\n# define RAND_R_PARENT_LOCKING_NOT_ENABLED                130\n# define RAND_R_PARENT_STRENGTH_TOO_WEAK                  131\n# define RAND_R_PERSONALISATION_STRING_TOO_LONG           116\n# define RAND_R_PREDICTION_RESISTANCE_NOT_SUPPORTED       133\n# define RAND_R_PRNG_NOT_SEEDED                           100\n# define RAND_R_RANDOM_POOL_OVERFLOW                      125\n# define RAND_R_RANDOM_POOL_UNDERFLOW                     134\n# define RAND_R_REQUEST_TOO_LARGE_FOR_DRBG                117\n# define RAND_R_RESEED_ERROR                              118\n# define RAND_R_SELFTEST_FAILURE                          119\n# define RAND_R_TOO_LITTLE_NONCE_REQUESTED                135\n# define RAND_R_TOO_MUCH_NONCE_REQUESTED                  136\n# define RAND_R_UNSUPPORTED_DRBG_FLAGS                    132\n# define RAND_R_UNSUPPORTED_DRBG_TYPE                     120\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rc2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC2_H\n# define HEADER_RC2_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC2\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef unsigned int RC2_INT;\n\n# define RC2_ENCRYPT     1\n# define RC2_DECRYPT     0\n\n# define RC2_BLOCK       8\n# define RC2_KEY_LENGTH  16\n\ntypedef struct rc2_key_st {\n    RC2_INT data[64];\n} RC2_KEY;\n\nvoid RC2_set_key(RC2_KEY *key, int len, const unsigned char *data, int bits);\nvoid RC2_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                     RC2_KEY *key, int enc);\nvoid RC2_encrypt(unsigned long *data, RC2_KEY *key);\nvoid RC2_decrypt(unsigned long *data, RC2_KEY *key);\nvoid RC2_cbc_encrypt(const unsigned char *in, unsigned char *out, long length,\n                     RC2_KEY *ks, unsigned char *iv, int enc);\nvoid RC2_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, RC2_KEY *schedule, unsigned char *ivec,\n                       int *num, int enc);\nvoid RC2_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                       long length, RC2_KEY *schedule, unsigned char *ivec,\n                       int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rc4.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC4_H\n# define HEADER_RC4_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC4\n# include <stddef.h>\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct rc4_key_st {\n    RC4_INT x, y;\n    RC4_INT data[256];\n} RC4_KEY;\n\nconst char *RC4_options(void);\nvoid RC4_set_key(RC4_KEY *key, int len, const unsigned char *data);\nvoid RC4(RC4_KEY *key, size_t len, const unsigned char *indata,\n         unsigned char *outdata);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rc5.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RC5_H\n# define HEADER_RC5_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RC5\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define RC5_ENCRYPT     1\n# define RC5_DECRYPT     0\n\n# define RC5_32_INT unsigned int\n\n# define RC5_32_BLOCK            8\n# define RC5_32_KEY_LENGTH       16/* This is a default, max is 255 */\n\n/*\n * This are the only values supported.  Tweak the code if you want more The\n * most supported modes will be RC5-32/12/16 RC5-32/16/8\n */\n# define RC5_8_ROUNDS    8\n# define RC5_12_ROUNDS   12\n# define RC5_16_ROUNDS   16\n\ntypedef struct rc5_key_st {\n    /* Number of rounds */\n    int rounds;\n    RC5_32_INT data[2 * (RC5_16_ROUNDS + 1)];\n} RC5_32_KEY;\n\nvoid RC5_32_set_key(RC5_32_KEY *key, int len, const unsigned char *data,\n                    int rounds);\nvoid RC5_32_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                        RC5_32_KEY *key, int enc);\nvoid RC5_32_encrypt(unsigned long *data, RC5_32_KEY *key);\nvoid RC5_32_decrypt(unsigned long *data, RC5_32_KEY *key);\nvoid RC5_32_cbc_encrypt(const unsigned char *in, unsigned char *out,\n                        long length, RC5_32_KEY *ks, unsigned char *iv,\n                        int enc);\nvoid RC5_32_cfb64_encrypt(const unsigned char *in, unsigned char *out,\n                          long length, RC5_32_KEY *schedule,\n                          unsigned char *ivec, int *num, int enc);\nvoid RC5_32_ofb64_encrypt(const unsigned char *in, unsigned char *out,\n                          long length, RC5_32_KEY *schedule,\n                          unsigned char *ivec, int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ripemd.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RIPEMD_H\n# define HEADER_RIPEMD_H\n\n# include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_RMD160\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# define RIPEMD160_LONG unsigned int\n\n# define RIPEMD160_CBLOCK        64\n# define RIPEMD160_LBLOCK        (RIPEMD160_CBLOCK/4)\n# define RIPEMD160_DIGEST_LENGTH 20\n\ntypedef struct RIPEMD160state_st {\n    RIPEMD160_LONG A, B, C, D, E;\n    RIPEMD160_LONG Nl, Nh;\n    RIPEMD160_LONG data[RIPEMD160_LBLOCK];\n    unsigned int num;\n} RIPEMD160_CTX;\n\nint RIPEMD160_Init(RIPEMD160_CTX *c);\nint RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, size_t len);\nint RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);\nunsigned char *RIPEMD160(const unsigned char *d, size_t n, unsigned char *md);\nvoid RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rsa.h",
    "content": "/*\n * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RSA_H\n# define HEADER_RSA_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_RSA\n# include <openssl/asn1.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/ossl_typ.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/bn.h>\n# endif\n# include <openssl/rsaerr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/* The types RSA and RSA_METHOD are defined in ossl_typ.h */\n\n# ifndef OPENSSL_RSA_MAX_MODULUS_BITS\n#  define OPENSSL_RSA_MAX_MODULUS_BITS   16384\n# endif\n\n# define OPENSSL_RSA_FIPS_MIN_MODULUS_BITS 1024\n\n# ifndef OPENSSL_RSA_SMALL_MODULUS_BITS\n#  define OPENSSL_RSA_SMALL_MODULUS_BITS 3072\n# endif\n# ifndef OPENSSL_RSA_MAX_PUBEXP_BITS\n\n/* exponent limit enforced for \"large\" modulus only */\n#  define OPENSSL_RSA_MAX_PUBEXP_BITS    64\n# endif\n\n# define RSA_3   0x3L\n# define RSA_F4  0x10001L\n\n/* based on RFC 8017 appendix A.1.2 */\n# define RSA_ASN1_VERSION_DEFAULT        0\n# define RSA_ASN1_VERSION_MULTI          1\n\n# define RSA_DEFAULT_PRIME_NUM           2\n\n# define RSA_METHOD_FLAG_NO_CHECK        0x0001/* don't check pub/private\n                                                * match */\n\n# define RSA_FLAG_CACHE_PUBLIC           0x0002\n# define RSA_FLAG_CACHE_PRIVATE          0x0004\n# define RSA_FLAG_BLINDING               0x0008\n# define RSA_FLAG_THREAD_SAFE            0x0010\n/*\n * This flag means the private key operations will be handled by rsa_mod_exp\n * and that they do not depend on the private key components being present:\n * for example a key stored in external hardware. Without this flag\n * bn_mod_exp gets called when private key components are absent.\n */\n# define RSA_FLAG_EXT_PKEY               0x0020\n\n/*\n * new with 0.9.6j and 0.9.7b; the built-in\n * RSA implementation now uses blinding by\n * default (ignoring RSA_FLAG_BLINDING),\n * but other engines might not need it\n */\n# define RSA_FLAG_NO_BLINDING            0x0080\n# if OPENSSL_API_COMPAT < 0x10100000L\n/*\n * Does nothing. Previously this switched off constant time behaviour.\n */\n#  define RSA_FLAG_NO_CONSTTIME           0x0000\n# endif\n# if OPENSSL_API_COMPAT < 0x00908000L\n/* deprecated name for the flag*/\n/*\n * new with 0.9.7h; the built-in RSA\n * implementation now uses constant time\n * modular exponentiation for secret exponents\n * by default. This flag causes the\n * faster variable sliding window method to\n * be used for all exponents.\n */\n#  define RSA_FLAG_NO_EXP_CONSTTIME RSA_FLAG_NO_CONSTTIME\n# endif\n\n# define EVP_PKEY_CTX_set_rsa_padding(ctx, pad) \\\n        RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_RSA_PADDING, pad, NULL)\n\n# define EVP_PKEY_CTX_get_rsa_padding(ctx, ppad) \\\n        RSA_pkey_ctx_ctrl(ctx, -1, EVP_PKEY_CTRL_GET_RSA_PADDING, 0, ppad)\n\n# define EVP_PKEY_CTX_set_rsa_pss_saltlen(ctx, len) \\\n        RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \\\n                          EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL)\n/* Salt length matches digest */\n# define RSA_PSS_SALTLEN_DIGEST -1\n/* Verify only: auto detect salt length */\n# define RSA_PSS_SALTLEN_AUTO   -2\n/* Set salt length to maximum possible */\n# define RSA_PSS_SALTLEN_MAX    -3\n/* Old compatible max salt length for sign only */\n# define RSA_PSS_SALTLEN_MAX_SIGN    -2\n\n# define EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(ctx, len) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_PSS_SALTLEN, len, NULL)\n\n# define EVP_PKEY_CTX_get_rsa_pss_saltlen(ctx, plen) \\\n        RSA_pkey_ctx_ctrl(ctx, (EVP_PKEY_OP_SIGN|EVP_PKEY_OP_VERIFY), \\\n                          EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN, 0, plen)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, bits) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_BITS, bits, NULL)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_pubexp(ctx, pubexp) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP, 0, pubexp)\n\n# define EVP_PKEY_CTX_set_rsa_keygen_primes(ctx, primes) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES, primes, NULL)\n\n# define  EVP_PKEY_CTX_set_rsa_mgf1_md(ctx, md) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \\\n                          EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_set_rsa_pss_keygen_mgf1_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS, EVP_PKEY_OP_KEYGEN, \\\n                          EVP_PKEY_CTRL_RSA_MGF1_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_set_rsa_oaep_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_RSA_OAEP_MD, 0, (void *)(md))\n\n# define  EVP_PKEY_CTX_get_rsa_mgf1_md(ctx, pmd) \\\n        RSA_pkey_ctx_ctrl(ctx, EVP_PKEY_OP_TYPE_SIG | EVP_PKEY_OP_TYPE_CRYPT, \\\n                          EVP_PKEY_CTRL_GET_RSA_MGF1_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_get_rsa_oaep_md(ctx, pmd) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_GET_RSA_OAEP_MD, 0, (void *)(pmd))\n\n# define  EVP_PKEY_CTX_set0_rsa_oaep_label(ctx, l, llen) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_RSA_OAEP_LABEL, llen, (void *)(l))\n\n# define  EVP_PKEY_CTX_get0_rsa_oaep_label(ctx, l) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA, EVP_PKEY_OP_TYPE_CRYPT,  \\\n                          EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL, 0, (void *)(l))\n\n# define  EVP_PKEY_CTX_set_rsa_pss_keygen_md(ctx, md) \\\n        EVP_PKEY_CTX_ctrl(ctx, EVP_PKEY_RSA_PSS,  \\\n                          EVP_PKEY_OP_KEYGEN, EVP_PKEY_CTRL_MD,  \\\n                          0, (void *)(md))\n\n# define EVP_PKEY_CTRL_RSA_PADDING       (EVP_PKEY_ALG_CTRL + 1)\n# define EVP_PKEY_CTRL_RSA_PSS_SALTLEN   (EVP_PKEY_ALG_CTRL + 2)\n\n# define EVP_PKEY_CTRL_RSA_KEYGEN_BITS   (EVP_PKEY_ALG_CTRL + 3)\n# define EVP_PKEY_CTRL_RSA_KEYGEN_PUBEXP (EVP_PKEY_ALG_CTRL + 4)\n# define EVP_PKEY_CTRL_RSA_MGF1_MD       (EVP_PKEY_ALG_CTRL + 5)\n\n# define EVP_PKEY_CTRL_GET_RSA_PADDING           (EVP_PKEY_ALG_CTRL + 6)\n# define EVP_PKEY_CTRL_GET_RSA_PSS_SALTLEN       (EVP_PKEY_ALG_CTRL + 7)\n# define EVP_PKEY_CTRL_GET_RSA_MGF1_MD           (EVP_PKEY_ALG_CTRL + 8)\n\n# define EVP_PKEY_CTRL_RSA_OAEP_MD       (EVP_PKEY_ALG_CTRL + 9)\n# define EVP_PKEY_CTRL_RSA_OAEP_LABEL    (EVP_PKEY_ALG_CTRL + 10)\n\n# define EVP_PKEY_CTRL_GET_RSA_OAEP_MD   (EVP_PKEY_ALG_CTRL + 11)\n# define EVP_PKEY_CTRL_GET_RSA_OAEP_LABEL (EVP_PKEY_ALG_CTRL + 12)\n\n# define EVP_PKEY_CTRL_RSA_KEYGEN_PRIMES  (EVP_PKEY_ALG_CTRL + 13)\n\n# define RSA_PKCS1_PADDING       1\n# define RSA_SSLV23_PADDING      2\n# define RSA_NO_PADDING          3\n# define RSA_PKCS1_OAEP_PADDING  4\n# define RSA_X931_PADDING        5\n/* EVP_PKEY_ only */\n# define RSA_PKCS1_PSS_PADDING   6\n\n# define RSA_PKCS1_PADDING_SIZE  11\n\n# define RSA_set_app_data(s,arg)         RSA_set_ex_data(s,0,arg)\n# define RSA_get_app_data(s)             RSA_get_ex_data(s,0)\n\nRSA *RSA_new(void);\nRSA *RSA_new_method(ENGINE *engine);\nint RSA_bits(const RSA *rsa);\nint RSA_size(const RSA *rsa);\nint RSA_security_bits(const RSA *rsa);\n\nint RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);\nint RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);\nint RSA_set0_crt_params(RSA *r,BIGNUM *dmp1, BIGNUM *dmq1, BIGNUM *iqmp);\nint RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],\n                                BIGNUM *coeffs[], int pnum);\nvoid RSA_get0_key(const RSA *r,\n                  const BIGNUM **n, const BIGNUM **e, const BIGNUM **d);\nvoid RSA_get0_factors(const RSA *r, const BIGNUM **p, const BIGNUM **q);\nint RSA_get_multi_prime_extra_count(const RSA *r);\nint RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[]);\nvoid RSA_get0_crt_params(const RSA *r,\n                         const BIGNUM **dmp1, const BIGNUM **dmq1,\n                         const BIGNUM **iqmp);\nint RSA_get0_multi_prime_crt_params(const RSA *r, const BIGNUM *exps[],\n                                    const BIGNUM *coeffs[]);\nconst BIGNUM *RSA_get0_n(const RSA *d);\nconst BIGNUM *RSA_get0_e(const RSA *d);\nconst BIGNUM *RSA_get0_d(const RSA *d);\nconst BIGNUM *RSA_get0_p(const RSA *d);\nconst BIGNUM *RSA_get0_q(const RSA *d);\nconst BIGNUM *RSA_get0_dmp1(const RSA *r);\nconst BIGNUM *RSA_get0_dmq1(const RSA *r);\nconst BIGNUM *RSA_get0_iqmp(const RSA *r);\nconst RSA_PSS_PARAMS *RSA_get0_pss_params(const RSA *r);\nvoid RSA_clear_flags(RSA *r, int flags);\nint RSA_test_flags(const RSA *r, int flags);\nvoid RSA_set_flags(RSA *r, int flags);\nint RSA_get_version(RSA *r);\nENGINE *RSA_get0_engine(const RSA *r);\n\n/* Deprecated version */\nDEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void\n                                         (*callback) (int, int, void *),\n                                         void *cb_arg))\n\n/* New version */\nint RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);\n/* Multi-prime version */\nint RSA_generate_multi_prime_key(RSA *rsa, int bits, int primes,\n                                 BIGNUM *e, BN_GENCB *cb);\n\nint RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1,\n                       BIGNUM *q2, const BIGNUM *Xp1, const BIGNUM *Xp2,\n                       const BIGNUM *Xp, const BIGNUM *Xq1, const BIGNUM *Xq2,\n                       const BIGNUM *Xq, const BIGNUM *e, BN_GENCB *cb);\nint RSA_X931_generate_key_ex(RSA *rsa, int bits, const BIGNUM *e,\n                             BN_GENCB *cb);\n\nint RSA_check_key(const RSA *);\nint RSA_check_key_ex(const RSA *, BN_GENCB *cb);\n        /* next 4 return -1 on error */\nint RSA_public_encrypt(int flen, const unsigned char *from,\n                       unsigned char *to, RSA *rsa, int padding);\nint RSA_private_encrypt(int flen, const unsigned char *from,\n                        unsigned char *to, RSA *rsa, int padding);\nint RSA_public_decrypt(int flen, const unsigned char *from,\n                       unsigned char *to, RSA *rsa, int padding);\nint RSA_private_decrypt(int flen, const unsigned char *from,\n                        unsigned char *to, RSA *rsa, int padding);\nvoid RSA_free(RSA *r);\n/* \"up\" the RSA object's reference count */\nint RSA_up_ref(RSA *r);\n\nint RSA_flags(const RSA *r);\n\nvoid RSA_set_default_method(const RSA_METHOD *meth);\nconst RSA_METHOD *RSA_get_default_method(void);\nconst RSA_METHOD *RSA_null_method(void);\nconst RSA_METHOD *RSA_get_method(const RSA *rsa);\nint RSA_set_method(RSA *rsa, const RSA_METHOD *meth);\n\n/* these are the actual RSA functions */\nconst RSA_METHOD *RSA_PKCS1_OpenSSL(void);\n\nint RSA_pkey_ctx_ctrl(EVP_PKEY_CTX *ctx, int optype, int cmd, int p1, void *p2);\n\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPublicKey)\nDECLARE_ASN1_ENCODE_FUNCTIONS_const(RSA, RSAPrivateKey)\n\nstruct rsa_pss_params_st {\n    X509_ALGOR *hashAlgorithm;\n    X509_ALGOR *maskGenAlgorithm;\n    ASN1_INTEGER *saltLength;\n    ASN1_INTEGER *trailerField;\n    /* Decoded hash algorithm from maskGenAlgorithm */\n    X509_ALGOR *maskHash;\n};\n\nDECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)\n\ntypedef struct rsa_oaep_params_st {\n    X509_ALGOR *hashFunc;\n    X509_ALGOR *maskGenFunc;\n    X509_ALGOR *pSourceFunc;\n    /* Decoded hash algorithm from maskGenFunc */\n    X509_ALGOR *maskHash;\n} RSA_OAEP_PARAMS;\n\nDECLARE_ASN1_FUNCTIONS(RSA_OAEP_PARAMS)\n\n# ifndef OPENSSL_NO_STDIO\nint RSA_print_fp(FILE *fp, const RSA *r, int offset);\n# endif\n\nint RSA_print(BIO *bp, const RSA *r, int offset);\n\n/*\n * The following 2 functions sign and verify a X509_SIG ASN1 object inside\n * PKCS#1 padded RSA encryption\n */\nint RSA_sign(int type, const unsigned char *m, unsigned int m_length,\n             unsigned char *sigret, unsigned int *siglen, RSA *rsa);\nint RSA_verify(int type, const unsigned char *m, unsigned int m_length,\n               const unsigned char *sigbuf, unsigned int siglen, RSA *rsa);\n\n/*\n * The following 2 function sign and verify a ASN1_OCTET_STRING object inside\n * PKCS#1 padded RSA encryption\n */\nint RSA_sign_ASN1_OCTET_STRING(int type,\n                               const unsigned char *m, unsigned int m_length,\n                               unsigned char *sigret, unsigned int *siglen,\n                               RSA *rsa);\nint RSA_verify_ASN1_OCTET_STRING(int type, const unsigned char *m,\n                                 unsigned int m_length, unsigned char *sigbuf,\n                                 unsigned int siglen, RSA *rsa);\n\nint RSA_blinding_on(RSA *rsa, BN_CTX *ctx);\nvoid RSA_blinding_off(RSA *rsa);\nBN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx);\n\nint RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl);\nint RSA_padding_check_PKCS1_type_1(unsigned char *to, int tlen,\n                                   const unsigned char *f, int fl,\n                                   int rsa_len);\nint RSA_padding_add_PKCS1_type_2(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl);\nint RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,\n                                   const unsigned char *f, int fl,\n                                   int rsa_len);\nint PKCS1_MGF1(unsigned char *mask, long len, const unsigned char *seed,\n               long seedlen, const EVP_MD *dgst);\nint RSA_padding_add_PKCS1_OAEP(unsigned char *to, int tlen,\n                               const unsigned char *f, int fl,\n                               const unsigned char *p, int pl);\nint RSA_padding_check_PKCS1_OAEP(unsigned char *to, int tlen,\n                                 const unsigned char *f, int fl, int rsa_len,\n                                 const unsigned char *p, int pl);\nint RSA_padding_add_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,\n                                    const unsigned char *from, int flen,\n                                    const unsigned char *param, int plen,\n                                    const EVP_MD *md, const EVP_MD *mgf1md);\nint RSA_padding_check_PKCS1_OAEP_mgf1(unsigned char *to, int tlen,\n                                      const unsigned char *from, int flen,\n                                      int num, const unsigned char *param,\n                                      int plen, const EVP_MD *md,\n                                      const EVP_MD *mgf1md);\nint RSA_padding_add_SSLv23(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl);\nint RSA_padding_check_SSLv23(unsigned char *to, int tlen,\n                             const unsigned char *f, int fl, int rsa_len);\nint RSA_padding_add_none(unsigned char *to, int tlen, const unsigned char *f,\n                         int fl);\nint RSA_padding_check_none(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl, int rsa_len);\nint RSA_padding_add_X931(unsigned char *to, int tlen, const unsigned char *f,\n                         int fl);\nint RSA_padding_check_X931(unsigned char *to, int tlen,\n                           const unsigned char *f, int fl, int rsa_len);\nint RSA_X931_hash_id(int nid);\n\nint RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,\n                         const EVP_MD *Hash, const unsigned char *EM,\n                         int sLen);\nint RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,\n                              const unsigned char *mHash, const EVP_MD *Hash,\n                              int sLen);\n\nint RSA_verify_PKCS1_PSS_mgf1(RSA *rsa, const unsigned char *mHash,\n                              const EVP_MD *Hash, const EVP_MD *mgf1Hash,\n                              const unsigned char *EM, int sLen);\n\nint RSA_padding_add_PKCS1_PSS_mgf1(RSA *rsa, unsigned char *EM,\n                                   const unsigned char *mHash,\n                                   const EVP_MD *Hash, const EVP_MD *mgf1Hash,\n                                   int sLen);\n\n#define RSA_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_RSA, l, p, newf, dupf, freef)\nint RSA_set_ex_data(RSA *r, int idx, void *arg);\nvoid *RSA_get_ex_data(const RSA *r, int idx);\n\nRSA *RSAPublicKey_dup(RSA *rsa);\nRSA *RSAPrivateKey_dup(RSA *rsa);\n\n/*\n * If this flag is set the RSA method is FIPS compliant and can be used in\n * FIPS mode. This is set in the validated module method. If an application\n * sets this flag in its own methods it is its responsibility to ensure the\n * result is compliant.\n */\n\n# define RSA_FLAG_FIPS_METHOD                    0x0400\n\n/*\n * If this flag is set the operations normally disabled in FIPS mode are\n * permitted it is then the applications responsibility to ensure that the\n * usage is compliant.\n */\n\n# define RSA_FLAG_NON_FIPS_ALLOW                 0x0400\n/*\n * Application has decided PRNG is good enough to generate a key: don't\n * check.\n */\n# define RSA_FLAG_CHECKED                        0x0800\n\nRSA_METHOD *RSA_meth_new(const char *name, int flags);\nvoid RSA_meth_free(RSA_METHOD *meth);\nRSA_METHOD *RSA_meth_dup(const RSA_METHOD *meth);\nconst char *RSA_meth_get0_name(const RSA_METHOD *meth);\nint RSA_meth_set1_name(RSA_METHOD *meth, const char *name);\nint RSA_meth_get_flags(const RSA_METHOD *meth);\nint RSA_meth_set_flags(RSA_METHOD *meth, int flags);\nvoid *RSA_meth_get0_app_data(const RSA_METHOD *meth);\nint RSA_meth_set0_app_data(RSA_METHOD *meth, void *app_data);\nint (*RSA_meth_get_pub_enc(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_pub_enc(RSA_METHOD *rsa,\n                         int (*pub_enc) (int flen, const unsigned char *from,\n                                         unsigned char *to, RSA *rsa,\n                                         int padding));\nint (*RSA_meth_get_pub_dec(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_pub_dec(RSA_METHOD *rsa,\n                         int (*pub_dec) (int flen, const unsigned char *from,\n                                         unsigned char *to, RSA *rsa,\n                                         int padding));\nint (*RSA_meth_get_priv_enc(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_priv_enc(RSA_METHOD *rsa,\n                          int (*priv_enc) (int flen, const unsigned char *from,\n                                           unsigned char *to, RSA *rsa,\n                                           int padding));\nint (*RSA_meth_get_priv_dec(const RSA_METHOD *meth))\n    (int flen, const unsigned char *from,\n     unsigned char *to, RSA *rsa, int padding);\nint RSA_meth_set_priv_dec(RSA_METHOD *rsa,\n                          int (*priv_dec) (int flen, const unsigned char *from,\n                                           unsigned char *to, RSA *rsa,\n                                           int padding));\nint (*RSA_meth_get_mod_exp(const RSA_METHOD *meth))\n    (BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);\nint RSA_meth_set_mod_exp(RSA_METHOD *rsa,\n                         int (*mod_exp) (BIGNUM *r0, const BIGNUM *i, RSA *rsa,\n                                         BN_CTX *ctx));\nint (*RSA_meth_get_bn_mod_exp(const RSA_METHOD *meth))\n    (BIGNUM *r, const BIGNUM *a, const BIGNUM *p,\n     const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);\nint RSA_meth_set_bn_mod_exp(RSA_METHOD *rsa,\n                            int (*bn_mod_exp) (BIGNUM *r,\n                                               const BIGNUM *a,\n                                               const BIGNUM *p,\n                                               const BIGNUM *m,\n                                               BN_CTX *ctx,\n                                               BN_MONT_CTX *m_ctx));\nint (*RSA_meth_get_init(const RSA_METHOD *meth)) (RSA *rsa);\nint RSA_meth_set_init(RSA_METHOD *rsa, int (*init) (RSA *rsa));\nint (*RSA_meth_get_finish(const RSA_METHOD *meth)) (RSA *rsa);\nint RSA_meth_set_finish(RSA_METHOD *rsa, int (*finish) (RSA *rsa));\nint (*RSA_meth_get_sign(const RSA_METHOD *meth))\n    (int type,\n     const unsigned char *m, unsigned int m_length,\n     unsigned char *sigret, unsigned int *siglen,\n     const RSA *rsa);\nint RSA_meth_set_sign(RSA_METHOD *rsa,\n                      int (*sign) (int type, const unsigned char *m,\n                                   unsigned int m_length,\n                                   unsigned char *sigret, unsigned int *siglen,\n                                   const RSA *rsa));\nint (*RSA_meth_get_verify(const RSA_METHOD *meth))\n    (int dtype, const unsigned char *m,\n     unsigned int m_length, const unsigned char *sigbuf,\n     unsigned int siglen, const RSA *rsa);\nint RSA_meth_set_verify(RSA_METHOD *rsa,\n                        int (*verify) (int dtype, const unsigned char *m,\n                                       unsigned int m_length,\n                                       const unsigned char *sigbuf,\n                                       unsigned int siglen, const RSA *rsa));\nint (*RSA_meth_get_keygen(const RSA_METHOD *meth))\n    (RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb);\nint RSA_meth_set_keygen(RSA_METHOD *rsa,\n                        int (*keygen) (RSA *rsa, int bits, BIGNUM *e,\n                                       BN_GENCB *cb));\nint (*RSA_meth_get_multi_prime_keygen(const RSA_METHOD *meth))\n    (RSA *rsa, int bits, int primes, BIGNUM *e, BN_GENCB *cb);\nint RSA_meth_set_multi_prime_keygen(RSA_METHOD *meth,\n                                    int (*keygen) (RSA *rsa, int bits,\n                                                   int primes, BIGNUM *e,\n                                                   BN_GENCB *cb));\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/rsaerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_RSAERR_H\n# define HEADER_RSAERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_RSA_strings(void);\n\n/*\n * RSA function codes.\n */\n# define RSA_F_CHECK_PADDING_MD                           140\n# define RSA_F_ENCODE_PKCS1                               146\n# define RSA_F_INT_RSA_VERIFY                             145\n# define RSA_F_OLD_RSA_PRIV_DECODE                        147\n# define RSA_F_PKEY_PSS_INIT                              165\n# define RSA_F_PKEY_RSA_CTRL                              143\n# define RSA_F_PKEY_RSA_CTRL_STR                          144\n# define RSA_F_PKEY_RSA_SIGN                              142\n# define RSA_F_PKEY_RSA_VERIFY                            149\n# define RSA_F_PKEY_RSA_VERIFYRECOVER                     141\n# define RSA_F_RSA_ALGOR_TO_MD                            156\n# define RSA_F_RSA_BUILTIN_KEYGEN                         129\n# define RSA_F_RSA_CHECK_KEY                              123\n# define RSA_F_RSA_CHECK_KEY_EX                           160\n# define RSA_F_RSA_CMS_DECRYPT                            159\n# define RSA_F_RSA_CMS_VERIFY                             158\n# define RSA_F_RSA_ITEM_VERIFY                            148\n# define RSA_F_RSA_METH_DUP                               161\n# define RSA_F_RSA_METH_NEW                               162\n# define RSA_F_RSA_METH_SET1_NAME                         163\n# define RSA_F_RSA_MGF1_TO_MD                             157\n# define RSA_F_RSA_MULTIP_INFO_NEW                        166\n# define RSA_F_RSA_NEW_METHOD                             106\n# define RSA_F_RSA_NULL                                   124\n# define RSA_F_RSA_NULL_PRIVATE_DECRYPT                   132\n# define RSA_F_RSA_NULL_PRIVATE_ENCRYPT                   133\n# define RSA_F_RSA_NULL_PUBLIC_DECRYPT                    134\n# define RSA_F_RSA_NULL_PUBLIC_ENCRYPT                    135\n# define RSA_F_RSA_OSSL_PRIVATE_DECRYPT                   101\n# define RSA_F_RSA_OSSL_PRIVATE_ENCRYPT                   102\n# define RSA_F_RSA_OSSL_PUBLIC_DECRYPT                    103\n# define RSA_F_RSA_OSSL_PUBLIC_ENCRYPT                    104\n# define RSA_F_RSA_PADDING_ADD_NONE                       107\n# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP                 121\n# define RSA_F_RSA_PADDING_ADD_PKCS1_OAEP_MGF1            154\n# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS                  125\n# define RSA_F_RSA_PADDING_ADD_PKCS1_PSS_MGF1             152\n# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_1               108\n# define RSA_F_RSA_PADDING_ADD_PKCS1_TYPE_2               109\n# define RSA_F_RSA_PADDING_ADD_SSLV23                     110\n# define RSA_F_RSA_PADDING_ADD_X931                       127\n# define RSA_F_RSA_PADDING_CHECK_NONE                     111\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP               122\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP_MGF1          153\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_1             112\n# define RSA_F_RSA_PADDING_CHECK_PKCS1_TYPE_2             113\n# define RSA_F_RSA_PADDING_CHECK_SSLV23                   114\n# define RSA_F_RSA_PADDING_CHECK_X931                     128\n# define RSA_F_RSA_PARAM_DECODE                           164\n# define RSA_F_RSA_PRINT                                  115\n# define RSA_F_RSA_PRINT_FP                               116\n# define RSA_F_RSA_PRIV_DECODE                            150\n# define RSA_F_RSA_PRIV_ENCODE                            138\n# define RSA_F_RSA_PSS_GET_PARAM                          151\n# define RSA_F_RSA_PSS_TO_CTX                             155\n# define RSA_F_RSA_PUB_DECODE                             139\n# define RSA_F_RSA_SETUP_BLINDING                         136\n# define RSA_F_RSA_SIGN                                   117\n# define RSA_F_RSA_SIGN_ASN1_OCTET_STRING                 118\n# define RSA_F_RSA_VERIFY                                 119\n# define RSA_F_RSA_VERIFY_ASN1_OCTET_STRING               120\n# define RSA_F_RSA_VERIFY_PKCS1_PSS_MGF1                  126\n# define RSA_F_SETUP_TBUF                                 167\n\n/*\n * RSA reason codes.\n */\n# define RSA_R_ALGORITHM_MISMATCH                         100\n# define RSA_R_BAD_E_VALUE                                101\n# define RSA_R_BAD_FIXED_HEADER_DECRYPT                   102\n# define RSA_R_BAD_PAD_BYTE_COUNT                         103\n# define RSA_R_BAD_SIGNATURE                              104\n# define RSA_R_BLOCK_TYPE_IS_NOT_01                       106\n# define RSA_R_BLOCK_TYPE_IS_NOT_02                       107\n# define RSA_R_DATA_GREATER_THAN_MOD_LEN                  108\n# define RSA_R_DATA_TOO_LARGE                             109\n# define RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE                110\n# define RSA_R_DATA_TOO_LARGE_FOR_MODULUS                 132\n# define RSA_R_DATA_TOO_SMALL                             111\n# define RSA_R_DATA_TOO_SMALL_FOR_KEY_SIZE                122\n# define RSA_R_DIGEST_DOES_NOT_MATCH                      158\n# define RSA_R_DIGEST_NOT_ALLOWED                         145\n# define RSA_R_DIGEST_TOO_BIG_FOR_RSA_KEY                 112\n# define RSA_R_DMP1_NOT_CONGRUENT_TO_D                    124\n# define RSA_R_DMQ1_NOT_CONGRUENT_TO_D                    125\n# define RSA_R_D_E_NOT_CONGRUENT_TO_1                     123\n# define RSA_R_FIRST_OCTET_INVALID                        133\n# define RSA_R_ILLEGAL_OR_UNSUPPORTED_PADDING_MODE        144\n# define RSA_R_INVALID_DIGEST                             157\n# define RSA_R_INVALID_DIGEST_LENGTH                      143\n# define RSA_R_INVALID_HEADER                             137\n# define RSA_R_INVALID_LABEL                              160\n# define RSA_R_INVALID_MESSAGE_LENGTH                     131\n# define RSA_R_INVALID_MGF1_MD                            156\n# define RSA_R_INVALID_MULTI_PRIME_KEY                    167\n# define RSA_R_INVALID_OAEP_PARAMETERS                    161\n# define RSA_R_INVALID_PADDING                            138\n# define RSA_R_INVALID_PADDING_MODE                       141\n# define RSA_R_INVALID_PSS_PARAMETERS                     149\n# define RSA_R_INVALID_PSS_SALTLEN                        146\n# define RSA_R_INVALID_SALT_LENGTH                        150\n# define RSA_R_INVALID_TRAILER                            139\n# define RSA_R_INVALID_X931_DIGEST                        142\n# define RSA_R_IQMP_NOT_INVERSE_OF_Q                      126\n# define RSA_R_KEY_PRIME_NUM_INVALID                      165\n# define RSA_R_KEY_SIZE_TOO_SMALL                         120\n# define RSA_R_LAST_OCTET_INVALID                         134\n# define RSA_R_MISSING_PRIVATE_KEY                        179\n# define RSA_R_MGF1_DIGEST_NOT_ALLOWED                    152\n# define RSA_R_MODULUS_TOO_LARGE                          105\n# define RSA_R_MP_COEFFICIENT_NOT_INVERSE_OF_R            168\n# define RSA_R_MP_EXPONENT_NOT_CONGRUENT_TO_D             169\n# define RSA_R_MP_R_NOT_PRIME                             170\n# define RSA_R_NO_PUBLIC_EXPONENT                         140\n# define RSA_R_NULL_BEFORE_BLOCK_MISSING                  113\n# define RSA_R_N_DOES_NOT_EQUAL_PRODUCT_OF_PRIMES         172\n# define RSA_R_N_DOES_NOT_EQUAL_P_Q                       127\n# define RSA_R_OAEP_DECODING_ERROR                        121\n# define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE   148\n# define RSA_R_PADDING_CHECK_FAILED                       114\n# define RSA_R_PKCS_DECODING_ERROR                        159\n# define RSA_R_PSS_SALTLEN_TOO_SMALL                      164\n# define RSA_R_P_NOT_PRIME                                128\n# define RSA_R_Q_NOT_PRIME                                129\n# define RSA_R_RSA_OPERATIONS_NOT_SUPPORTED               130\n# define RSA_R_SLEN_CHECK_FAILED                          136\n# define RSA_R_SLEN_RECOVERY_FAILED                       135\n# define RSA_R_SSLV3_ROLLBACK_ATTACK                      115\n# define RSA_R_THE_ASN1_OBJECT_IDENTIFIER_IS_NOT_KNOWN_FOR_THIS_MD 116\n# define RSA_R_UNKNOWN_ALGORITHM_TYPE                     117\n# define RSA_R_UNKNOWN_DIGEST                             166\n# define RSA_R_UNKNOWN_MASK_DIGEST                        151\n# define RSA_R_UNKNOWN_PADDING_TYPE                       118\n# define RSA_R_UNSUPPORTED_ENCRYPTION_TYPE                162\n# define RSA_R_UNSUPPORTED_LABEL_SOURCE                   163\n# define RSA_R_UNSUPPORTED_MASK_ALGORITHM                 153\n# define RSA_R_UNSUPPORTED_MASK_PARAMETER                 154\n# define RSA_R_UNSUPPORTED_SIGNATURE_TYPE                 155\n# define RSA_R_VALUE_MISSING                              147\n# define RSA_R_WRONG_SIGNATURE_LENGTH                     119\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/safestack.h",
    "content": "/*\n * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SAFESTACK_H\n# define HEADER_SAFESTACK_H\n\n# include <openssl/stack.h>\n# include <openssl/e_os2.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n# define STACK_OF(type) struct stack_st_##type\n\n# define SKM_DEFINE_STACK_OF(t1, t2, t3) \\\n    STACK_OF(t1); \\\n    typedef int (*sk_##t1##_compfunc)(const t3 * const *a, const t3 *const *b); \\\n    typedef void (*sk_##t1##_freefunc)(t3 *a); \\\n    typedef t3 * (*sk_##t1##_copyfunc)(const t3 *a); \\\n    static ossl_unused ossl_inline int sk_##t1##_num(const STACK_OF(t1) *sk) \\\n    { \\\n        return OPENSSL_sk_num((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_value(const STACK_OF(t1) *sk, int idx) \\\n    { \\\n        return (t2 *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new(sk_##t1##_compfunc compare) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_null(void) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new_null(); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_new_reserve(sk_##t1##_compfunc compare, int n) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_reserve(STACK_OF(t1) *sk, int n) \\\n    { \\\n        return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_free(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_free((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_zero(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_zero((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_delete(STACK_OF(t1) *sk, int i) \\\n    { \\\n        return (t2 *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_delete_ptr(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return (t2 *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, \\\n                                           (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_push(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_unshift(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_pop(STACK_OF(t1) *sk) \\\n    { \\\n        return (t2 *)OPENSSL_sk_pop((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_shift(STACK_OF(t1) *sk) \\\n    { \\\n        return (t2 *)OPENSSL_sk_shift((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_pop_free(STACK_OF(t1) *sk, sk_##t1##_freefunc freefunc) \\\n    { \\\n        OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_insert(STACK_OF(t1) *sk, t2 *ptr, int idx) \\\n    { \\\n        return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx); \\\n    } \\\n    static ossl_unused ossl_inline t2 *sk_##t1##_set(STACK_OF(t1) *sk, int idx, t2 *ptr) \\\n    { \\\n        return (t2 *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_find(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_find_ex(STACK_OF(t1) *sk, t2 *ptr) \\\n    { \\\n        return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr); \\\n    } \\\n    static ossl_unused ossl_inline void sk_##t1##_sort(STACK_OF(t1) *sk) \\\n    { \\\n        OPENSSL_sk_sort((OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline int sk_##t1##_is_sorted(const STACK_OF(t1) *sk) \\\n    { \\\n        return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) * sk_##t1##_dup(const STACK_OF(t1) *sk) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk); \\\n    } \\\n    static ossl_unused ossl_inline STACK_OF(t1) *sk_##t1##_deep_copy(const STACK_OF(t1) *sk, \\\n                                                    sk_##t1##_copyfunc copyfunc, \\\n                                                    sk_##t1##_freefunc freefunc) \\\n    { \\\n        return (STACK_OF(t1) *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, \\\n                                            (OPENSSL_sk_copyfunc)copyfunc, \\\n                                            (OPENSSL_sk_freefunc)freefunc); \\\n    } \\\n    static ossl_unused ossl_inline sk_##t1##_compfunc sk_##t1##_set_cmp_func(STACK_OF(t1) *sk, sk_##t1##_compfunc compare) \\\n    { \\\n        return (sk_##t1##_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); \\\n    }\n\n# define DEFINE_SPECIAL_STACK_OF(t1, t2) SKM_DEFINE_STACK_OF(t1, t2, t2)\n# define DEFINE_STACK_OF(t) SKM_DEFINE_STACK_OF(t, t, t)\n# define DEFINE_SPECIAL_STACK_OF_CONST(t1, t2) \\\n            SKM_DEFINE_STACK_OF(t1, const t2, t2)\n# define DEFINE_STACK_OF_CONST(t) SKM_DEFINE_STACK_OF(t, const t, t)\n\n/*-\n * Strings are special: normally an lhash entry will point to a single\n * (somewhat) mutable object. In the case of strings:\n *\n * a) Instead of a single char, there is an array of chars, NUL-terminated.\n * b) The string may have be immutable.\n *\n * So, they need their own declarations. Especially important for\n * type-checking tools, such as Deputy.\n *\n * In practice, however, it appears to be hard to have a const\n * string. For now, I'm settling for dealing with the fact it is a\n * string at all.\n */\ntypedef char *OPENSSL_STRING;\ntypedef const char *OPENSSL_CSTRING;\n\n/*-\n * Confusingly, LHASH_OF(STRING) deals with char ** throughout, but\n * STACK_OF(STRING) is really more like STACK_OF(char), only, as mentioned\n * above, instead of a single char each entry is a NUL-terminated array of\n * chars. So, we have to implement STRING specially for STACK_OF. This is\n * dealt with in the autogenerated macros below.\n */\nDEFINE_SPECIAL_STACK_OF(OPENSSL_STRING, char)\nDEFINE_SPECIAL_STACK_OF_CONST(OPENSSL_CSTRING, char)\n\n/*\n * Similarly, we sometimes use a block of characters, NOT nul-terminated.\n * These should also be distinguished from \"normal\" stacks.\n */\ntypedef void *OPENSSL_BLOCK;\nDEFINE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)\n\n/*\n * If called without higher optimization (min. -xO3) the Oracle Developer\n * Studio compiler generates code for the defined (static inline) functions\n * above.\n * This would later lead to the linker complaining about missing symbols when\n * this header file is included but the resulting object is not linked against\n * the Crypto library (openssl#6912).\n */\n# ifdef __SUNPRO_C\n#  pragma weak OPENSSL_sk_num\n#  pragma weak OPENSSL_sk_value\n#  pragma weak OPENSSL_sk_new\n#  pragma weak OPENSSL_sk_new_null\n#  pragma weak OPENSSL_sk_new_reserve\n#  pragma weak OPENSSL_sk_reserve\n#  pragma weak OPENSSL_sk_free\n#  pragma weak OPENSSL_sk_zero\n#  pragma weak OPENSSL_sk_delete\n#  pragma weak OPENSSL_sk_delete_ptr\n#  pragma weak OPENSSL_sk_push\n#  pragma weak OPENSSL_sk_unshift\n#  pragma weak OPENSSL_sk_pop\n#  pragma weak OPENSSL_sk_shift\n#  pragma weak OPENSSL_sk_pop_free\n#  pragma weak OPENSSL_sk_insert\n#  pragma weak OPENSSL_sk_set\n#  pragma weak OPENSSL_sk_find\n#  pragma weak OPENSSL_sk_find_ex\n#  pragma weak OPENSSL_sk_sort\n#  pragma weak OPENSSL_sk_is_sorted\n#  pragma weak OPENSSL_sk_dup\n#  pragma weak OPENSSL_sk_deep_copy\n#  pragma weak OPENSSL_sk_set_cmp_func\n# endif /* __SUNPRO_C */\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/seed.h",
    "content": "/*\n * Copyright 2007-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * Copyright (c) 2007 KISA(Korea Information Security Agency). All rights reserved.\n *\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions\n * are met:\n * 1. Redistributions of source code must retain the above copyright\n *    notice, this list of conditions and the following disclaimer.\n * 2. Neither the name of author nor the names of its contributors may\n *    be used to endorse or promote products derived from this software\n *    without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE\n * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n * SUCH DAMAGE.\n */\n\n#ifndef HEADER_SEED_H\n# define HEADER_SEED_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_SEED\n# include <openssl/e_os2.h>\n# include <openssl/crypto.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* look whether we need 'long' to get 32 bits */\n# ifdef AES_LONG\n#  ifndef SEED_LONG\n#   define SEED_LONG 1\n#  endif\n# endif\n\n# include <sys/types.h>\n\n# define SEED_BLOCK_SIZE 16\n# define SEED_KEY_LENGTH 16\n\ntypedef struct seed_key_st {\n# ifdef SEED_LONG\n    unsigned long data[32];\n# else\n    unsigned int data[32];\n# endif\n} SEED_KEY_SCHEDULE;\n\nvoid SEED_set_key(const unsigned char rawkey[SEED_KEY_LENGTH],\n                  SEED_KEY_SCHEDULE *ks);\n\nvoid SEED_encrypt(const unsigned char s[SEED_BLOCK_SIZE],\n                  unsigned char d[SEED_BLOCK_SIZE],\n                  const SEED_KEY_SCHEDULE *ks);\nvoid SEED_decrypt(const unsigned char s[SEED_BLOCK_SIZE],\n                  unsigned char d[SEED_BLOCK_SIZE],\n                  const SEED_KEY_SCHEDULE *ks);\n\nvoid SEED_ecb_encrypt(const unsigned char *in, unsigned char *out,\n                      const SEED_KEY_SCHEDULE *ks, int enc);\nvoid SEED_cbc_encrypt(const unsigned char *in, unsigned char *out, size_t len,\n                      const SEED_KEY_SCHEDULE *ks,\n                      unsigned char ivec[SEED_BLOCK_SIZE], int enc);\nvoid SEED_cfb128_encrypt(const unsigned char *in, unsigned char *out,\n                         size_t len, const SEED_KEY_SCHEDULE *ks,\n                         unsigned char ivec[SEED_BLOCK_SIZE], int *num,\n                         int enc);\nvoid SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out,\n                         size_t len, const SEED_KEY_SCHEDULE *ks,\n                         unsigned char ivec[SEED_BLOCK_SIZE], int *num);\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/sha.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SHA_H\n# define HEADER_SHA_H\n\n# include <openssl/e_os2.h>\n# include <stddef.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * ! SHA_LONG has to be at least 32 bits wide.                    !\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n# define SHA_LONG unsigned int\n\n# define SHA_LBLOCK      16\n# define SHA_CBLOCK      (SHA_LBLOCK*4)/* SHA treats input data as a\n                                        * contiguous array of 32 bit wide\n                                        * big-endian values. */\n# define SHA_LAST_BLOCK  (SHA_CBLOCK-8)\n# define SHA_DIGEST_LENGTH 20\n\ntypedef struct SHAstate_st {\n    SHA_LONG h0, h1, h2, h3, h4;\n    SHA_LONG Nl, Nh;\n    SHA_LONG data[SHA_LBLOCK];\n    unsigned int num;\n} SHA_CTX;\n\nint SHA1_Init(SHA_CTX *c);\nint SHA1_Update(SHA_CTX *c, const void *data, size_t len);\nint SHA1_Final(unsigned char *md, SHA_CTX *c);\nunsigned char *SHA1(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA1_Transform(SHA_CTX *c, const unsigned char *data);\n\n# define SHA256_CBLOCK   (SHA_LBLOCK*4)/* SHA-256 treats input data as a\n                                        * contiguous array of 32 bit wide\n                                        * big-endian values. */\n\ntypedef struct SHA256state_st {\n    SHA_LONG h[8];\n    SHA_LONG Nl, Nh;\n    SHA_LONG data[SHA_LBLOCK];\n    unsigned int num, md_len;\n} SHA256_CTX;\n\nint SHA224_Init(SHA256_CTX *c);\nint SHA224_Update(SHA256_CTX *c, const void *data, size_t len);\nint SHA224_Final(unsigned char *md, SHA256_CTX *c);\nunsigned char *SHA224(const unsigned char *d, size_t n, unsigned char *md);\nint SHA256_Init(SHA256_CTX *c);\nint SHA256_Update(SHA256_CTX *c, const void *data, size_t len);\nint SHA256_Final(unsigned char *md, SHA256_CTX *c);\nunsigned char *SHA256(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA256_Transform(SHA256_CTX *c, const unsigned char *data);\n\n# define SHA224_DIGEST_LENGTH    28\n# define SHA256_DIGEST_LENGTH    32\n# define SHA384_DIGEST_LENGTH    48\n# define SHA512_DIGEST_LENGTH    64\n\n/*\n * Unlike 32-bit digest algorithms, SHA-512 *relies* on SHA_LONG64\n * being exactly 64-bit wide. See Implementation Notes in sha512.c\n * for further details.\n */\n/*\n * SHA-512 treats input data as a\n * contiguous array of 64 bit\n * wide big-endian values.\n */\n# define SHA512_CBLOCK   (SHA_LBLOCK*8)\n# if (defined(_WIN32) || defined(_WIN64)) && !defined(__MINGW32__)\n#  define SHA_LONG64 unsigned __int64\n#  define U64(C)     C##UI64\n# elif defined(__arch64__)\n#  define SHA_LONG64 unsigned long\n#  define U64(C)     C##UL\n# else\n#  define SHA_LONG64 unsigned long long\n#  define U64(C)     C##ULL\n# endif\n\ntypedef struct SHA512state_st {\n    SHA_LONG64 h[8];\n    SHA_LONG64 Nl, Nh;\n    union {\n        SHA_LONG64 d[SHA_LBLOCK];\n        unsigned char p[SHA512_CBLOCK];\n    } u;\n    unsigned int num, md_len;\n} SHA512_CTX;\n\nint SHA384_Init(SHA512_CTX *c);\nint SHA384_Update(SHA512_CTX *c, const void *data, size_t len);\nint SHA384_Final(unsigned char *md, SHA512_CTX *c);\nunsigned char *SHA384(const unsigned char *d, size_t n, unsigned char *md);\nint SHA512_Init(SHA512_CTX *c);\nint SHA512_Update(SHA512_CTX *c, const void *data, size_t len);\nint SHA512_Final(unsigned char *md, SHA512_CTX *c);\nunsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md);\nvoid SHA512_Transform(SHA512_CTX *c, const unsigned char *data);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/srp.h",
    "content": "/*\n * Copyright 2004-2018 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2004, EdelKey Project. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n *\n * Originally written by Christophe Renou and Peter Sylvester,\n * for the EdelKey project.\n */\n\n#ifndef HEADER_SRP_H\n# define HEADER_SRP_H\n\n#include <openssl/opensslconf.h>\n\n#ifndef OPENSSL_NO_SRP\n# include <stdio.h>\n# include <string.h>\n# include <openssl/safestack.h>\n# include <openssl/bn.h>\n# include <openssl/crypto.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\ntypedef struct SRP_gN_cache_st {\n    char *b64_bn;\n    BIGNUM *bn;\n} SRP_gN_cache;\n\n\nDEFINE_STACK_OF(SRP_gN_cache)\n\ntypedef struct SRP_user_pwd_st {\n    /* Owned by us. */\n    char *id;\n    BIGNUM *s;\n    BIGNUM *v;\n    /* Not owned by us. */\n    const BIGNUM *g;\n    const BIGNUM *N;\n    /* Owned by us. */\n    char *info;\n} SRP_user_pwd;\n\nvoid SRP_user_pwd_free(SRP_user_pwd *user_pwd);\n\nDEFINE_STACK_OF(SRP_user_pwd)\n\ntypedef struct SRP_VBASE_st {\n    STACK_OF(SRP_user_pwd) *users_pwd;\n    STACK_OF(SRP_gN_cache) *gN_cache;\n/* to simulate a user */\n    char *seed_key;\n    const BIGNUM *default_g;\n    const BIGNUM *default_N;\n} SRP_VBASE;\n\n/*\n * Internal structure storing N and g pair\n */\ntypedef struct SRP_gN_st {\n    char *id;\n    const BIGNUM *g;\n    const BIGNUM *N;\n} SRP_gN;\n\nDEFINE_STACK_OF(SRP_gN)\n\nSRP_VBASE *SRP_VBASE_new(char *seed_key);\nvoid SRP_VBASE_free(SRP_VBASE *vb);\nint SRP_VBASE_init(SRP_VBASE *vb, char *verifier_file);\n\n/* This method ignores the configured seed and fails for an unknown user. */\nDEPRECATEDIN_1_1_0(SRP_user_pwd *SRP_VBASE_get_by_user(SRP_VBASE *vb, char *username))\n/* NOTE: unlike in SRP_VBASE_get_by_user, caller owns the returned pointer.*/\nSRP_user_pwd *SRP_VBASE_get1_by_user(SRP_VBASE *vb, char *username);\n\nchar *SRP_create_verifier(const char *user, const char *pass, char **salt,\n                          char **verifier, const char *N, const char *g);\nint SRP_create_verifier_BN(const char *user, const char *pass, BIGNUM **salt,\n                           BIGNUM **verifier, const BIGNUM *N,\n                           const BIGNUM *g);\n\n# define SRP_NO_ERROR 0\n# define SRP_ERR_VBASE_INCOMPLETE_FILE 1\n# define SRP_ERR_VBASE_BN_LIB 2\n# define SRP_ERR_OPEN_FILE 3\n# define SRP_ERR_MEMORY 4\n\n# define DB_srptype      0\n# define DB_srpverifier  1\n# define DB_srpsalt      2\n# define DB_srpid        3\n# define DB_srpgN        4\n# define DB_srpinfo      5\n# undef  DB_NUMBER\n# define DB_NUMBER       6\n\n# define DB_SRP_INDEX    'I'\n# define DB_SRP_VALID    'V'\n# define DB_SRP_REVOKED  'R'\n# define DB_SRP_MODIF    'v'\n\n/* see srp.c */\nchar *SRP_check_known_gN_param(const BIGNUM *g, const BIGNUM *N);\nSRP_gN *SRP_get_default_gN(const char *id);\n\n/* server side .... */\nBIGNUM *SRP_Calc_server_key(const BIGNUM *A, const BIGNUM *v, const BIGNUM *u,\n                            const BIGNUM *b, const BIGNUM *N);\nBIGNUM *SRP_Calc_B(const BIGNUM *b, const BIGNUM *N, const BIGNUM *g,\n                   const BIGNUM *v);\nint SRP_Verify_A_mod_N(const BIGNUM *A, const BIGNUM *N);\nBIGNUM *SRP_Calc_u(const BIGNUM *A, const BIGNUM *B, const BIGNUM *N);\n\n/* client side .... */\nBIGNUM *SRP_Calc_x(const BIGNUM *s, const char *user, const char *pass);\nBIGNUM *SRP_Calc_A(const BIGNUM *a, const BIGNUM *N, const BIGNUM *g);\nBIGNUM *SRP_Calc_client_key(const BIGNUM *N, const BIGNUM *B, const BIGNUM *g,\n                            const BIGNUM *x, const BIGNUM *a, const BIGNUM *u);\nint SRP_Verify_B_mod_N(const BIGNUM *B, const BIGNUM *N);\n\n# define SRP_MINIMAL_N 1024\n\n# ifdef  __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/srtp.h",
    "content": "/*\n * Copyright 2011-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n/*\n * DTLS code by Eric Rescorla <ekr@rtfm.com>\n *\n * Copyright (C) 2006, Network Resonance, Inc. Copyright (C) 2011, RTFM, Inc.\n */\n\n#ifndef HEADER_D1_SRTP_H\n# define HEADER_D1_SRTP_H\n\n# include <openssl/ssl.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SRTP_AES128_CM_SHA1_80 0x0001\n# define SRTP_AES128_CM_SHA1_32 0x0002\n# define SRTP_AES128_F8_SHA1_80 0x0003\n# define SRTP_AES128_F8_SHA1_32 0x0004\n# define SRTP_NULL_SHA1_80      0x0005\n# define SRTP_NULL_SHA1_32      0x0006\n\n/* AEAD SRTP protection profiles from RFC 7714 */\n# define SRTP_AEAD_AES_128_GCM  0x0007\n# define SRTP_AEAD_AES_256_GCM  0x0008\n\n# ifndef OPENSSL_NO_SRTP\n\n__owur int SSL_CTX_set_tlsext_use_srtp(SSL_CTX *ctx, const char *profiles);\n__owur int SSL_set_tlsext_use_srtp(SSL *ssl, const char *profiles);\n\n__owur STACK_OF(SRTP_PROTECTION_PROFILE) *SSL_get_srtp_profiles(SSL *ssl);\n__owur SRTP_PROTECTION_PROFILE *SSL_get_selected_srtp_profile(SSL *s);\n\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ssl.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n * Copyright 2005 Nokia. All rights reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL_H\n# define HEADER_SSL_H\n\n# include <openssl/e_os2.h>\n# include <openssl/opensslconf.h>\n# include <openssl/comp.h>\n# include <openssl/bio.h>\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/x509.h>\n#  include <openssl/crypto.h>\n#  include <openssl/buffer.h>\n# endif\n# include <openssl/lhash.h>\n# include <openssl/pem.h>\n# include <openssl/hmac.h>\n# include <openssl/async.h>\n\n# include <openssl/safestack.h>\n# include <openssl/symhacks.h>\n# include <openssl/ct.h>\n# include <openssl/sslerr.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* OpenSSL version number for ASN.1 encoding of the session information */\n/*-\n * Version 0 - initial version\n * Version 1 - added the optional peer certificate\n */\n# define SSL_SESSION_ASN1_VERSION 0x0001\n\n# define SSL_MAX_SSL_SESSION_ID_LENGTH           32\n# define SSL_MAX_SID_CTX_LENGTH                  32\n\n# define SSL_MIN_RSA_MODULUS_LENGTH_IN_BYTES     (512/8)\n# define SSL_MAX_KEY_ARG_LENGTH                  8\n# define SSL_MAX_MASTER_KEY_LENGTH               48\n\n/* The maximum number of encrypt/decrypt pipelines we can support */\n# define SSL_MAX_PIPELINES  32\n\n/* text strings for the ciphers */\n\n/* These are used to specify which ciphers to use and not to use */\n\n# define SSL_TXT_LOW             \"LOW\"\n# define SSL_TXT_MEDIUM          \"MEDIUM\"\n# define SSL_TXT_HIGH            \"HIGH\"\n# define SSL_TXT_FIPS            \"FIPS\"\n\n# define SSL_TXT_aNULL           \"aNULL\"\n# define SSL_TXT_eNULL           \"eNULL\"\n# define SSL_TXT_NULL            \"NULL\"\n\n# define SSL_TXT_kRSA            \"kRSA\"\n# define SSL_TXT_kDHr            \"kDHr\"/* this cipher class has been removed */\n# define SSL_TXT_kDHd            \"kDHd\"/* this cipher class has been removed */\n# define SSL_TXT_kDH             \"kDH\"/* this cipher class has been removed */\n# define SSL_TXT_kEDH            \"kEDH\"/* alias for kDHE */\n# define SSL_TXT_kDHE            \"kDHE\"\n# define SSL_TXT_kECDHr          \"kECDHr\"/* this cipher class has been removed */\n# define SSL_TXT_kECDHe          \"kECDHe\"/* this cipher class has been removed */\n# define SSL_TXT_kECDH           \"kECDH\"/* this cipher class has been removed */\n# define SSL_TXT_kEECDH          \"kEECDH\"/* alias for kECDHE */\n# define SSL_TXT_kECDHE          \"kECDHE\"\n# define SSL_TXT_kPSK            \"kPSK\"\n# define SSL_TXT_kRSAPSK         \"kRSAPSK\"\n# define SSL_TXT_kECDHEPSK       \"kECDHEPSK\"\n# define SSL_TXT_kDHEPSK         \"kDHEPSK\"\n# define SSL_TXT_kGOST           \"kGOST\"\n# define SSL_TXT_kSRP            \"kSRP\"\n\n# define SSL_TXT_aRSA            \"aRSA\"\n# define SSL_TXT_aDSS            \"aDSS\"\n# define SSL_TXT_aDH             \"aDH\"/* this cipher class has been removed */\n# define SSL_TXT_aECDH           \"aECDH\"/* this cipher class has been removed */\n# define SSL_TXT_aECDSA          \"aECDSA\"\n# define SSL_TXT_aPSK            \"aPSK\"\n# define SSL_TXT_aGOST94         \"aGOST94\"\n# define SSL_TXT_aGOST01         \"aGOST01\"\n# define SSL_TXT_aGOST12         \"aGOST12\"\n# define SSL_TXT_aGOST           \"aGOST\"\n# define SSL_TXT_aSRP            \"aSRP\"\n\n# define SSL_TXT_DSS             \"DSS\"\n# define SSL_TXT_DH              \"DH\"\n# define SSL_TXT_DHE             \"DHE\"/* same as \"kDHE:-ADH\" */\n# define SSL_TXT_EDH             \"EDH\"/* alias for DHE */\n# define SSL_TXT_ADH             \"ADH\"\n# define SSL_TXT_RSA             \"RSA\"\n# define SSL_TXT_ECDH            \"ECDH\"\n# define SSL_TXT_EECDH           \"EECDH\"/* alias for ECDHE\" */\n# define SSL_TXT_ECDHE           \"ECDHE\"/* same as \"kECDHE:-AECDH\" */\n# define SSL_TXT_AECDH           \"AECDH\"\n# define SSL_TXT_ECDSA           \"ECDSA\"\n# define SSL_TXT_PSK             \"PSK\"\n# define SSL_TXT_SRP             \"SRP\"\n\n# define SSL_TXT_DES             \"DES\"\n# define SSL_TXT_3DES            \"3DES\"\n# define SSL_TXT_RC4             \"RC4\"\n# define SSL_TXT_RC2             \"RC2\"\n# define SSL_TXT_IDEA            \"IDEA\"\n# define SSL_TXT_SEED            \"SEED\"\n# define SSL_TXT_AES128          \"AES128\"\n# define SSL_TXT_AES256          \"AES256\"\n# define SSL_TXT_AES             \"AES\"\n# define SSL_TXT_AES_GCM         \"AESGCM\"\n# define SSL_TXT_AES_CCM         \"AESCCM\"\n# define SSL_TXT_AES_CCM_8       \"AESCCM8\"\n# define SSL_TXT_CAMELLIA128     \"CAMELLIA128\"\n# define SSL_TXT_CAMELLIA256     \"CAMELLIA256\"\n# define SSL_TXT_CAMELLIA        \"CAMELLIA\"\n# define SSL_TXT_CHACHA20        \"CHACHA20\"\n# define SSL_TXT_GOST            \"GOST89\"\n# define SSL_TXT_ARIA            \"ARIA\"\n# define SSL_TXT_ARIA_GCM        \"ARIAGCM\"\n# define SSL_TXT_ARIA128         \"ARIA128\"\n# define SSL_TXT_ARIA256         \"ARIA256\"\n\n# define SSL_TXT_MD5             \"MD5\"\n# define SSL_TXT_SHA1            \"SHA1\"\n# define SSL_TXT_SHA             \"SHA\"/* same as \"SHA1\" */\n# define SSL_TXT_GOST94          \"GOST94\"\n# define SSL_TXT_GOST89MAC       \"GOST89MAC\"\n# define SSL_TXT_GOST12          \"GOST12\"\n# define SSL_TXT_GOST89MAC12     \"GOST89MAC12\"\n# define SSL_TXT_SHA256          \"SHA256\"\n# define SSL_TXT_SHA384          \"SHA384\"\n\n# define SSL_TXT_SSLV3           \"SSLv3\"\n# define SSL_TXT_TLSV1           \"TLSv1\"\n# define SSL_TXT_TLSV1_1         \"TLSv1.1\"\n# define SSL_TXT_TLSV1_2         \"TLSv1.2\"\n\n# define SSL_TXT_ALL             \"ALL\"\n\n/*-\n * COMPLEMENTOF* definitions. These identifiers are used to (de-select)\n * ciphers normally not being used.\n * Example: \"RC4\" will activate all ciphers using RC4 including ciphers\n * without authentication, which would normally disabled by DEFAULT (due\n * the \"!ADH\" being part of default). Therefore \"RC4:!COMPLEMENTOFDEFAULT\"\n * will make sure that it is also disabled in the specific selection.\n * COMPLEMENTOF* identifiers are portable between version, as adjustments\n * to the default cipher setup will also be included here.\n *\n * COMPLEMENTOFDEFAULT does not experience the same special treatment that\n * DEFAULT gets, as only selection is being done and no sorting as needed\n * for DEFAULT.\n */\n# define SSL_TXT_CMPALL          \"COMPLEMENTOFALL\"\n# define SSL_TXT_CMPDEF          \"COMPLEMENTOFDEFAULT\"\n\n/*\n * The following cipher list is used by default. It also is substituted when\n * an application-defined cipher list string starts with 'DEFAULT'.\n * This applies to ciphersuites for TLSv1.2 and below.\n */\n# define SSL_DEFAULT_CIPHER_LIST \"ALL:!COMPLEMENTOFDEFAULT:!eNULL\"\n/* This is the default set of TLSv1.3 ciphersuites */\n# if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305)\n#  define TLS_DEFAULT_CIPHERSUITES \"TLS_AES_256_GCM_SHA384:\" \\\n                                   \"TLS_CHACHA20_POLY1305_SHA256:\" \\\n                                   \"TLS_AES_128_GCM_SHA256\"\n# else\n#  define TLS_DEFAULT_CIPHERSUITES \"TLS_AES_256_GCM_SHA384:\" \\\n                                   \"TLS_AES_128_GCM_SHA256\"\n#endif\n/*\n * As of OpenSSL 1.0.0, ssl_create_cipher_list() in ssl/ssl_ciph.c always\n * starts with a reasonable order, and all we have to do for DEFAULT is\n * throwing out anonymous and unencrypted ciphersuites! (The latter are not\n * actually enabled by ALL, but \"ALL:RSA\" would enable some of them.)\n */\n\n/* Used in SSL_set_shutdown()/SSL_get_shutdown(); */\n# define SSL_SENT_SHUTDOWN       1\n# define SSL_RECEIVED_SHUTDOWN   2\n\n#ifdef __cplusplus\n}\n#endif\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SSL_FILETYPE_ASN1       X509_FILETYPE_ASN1\n# define SSL_FILETYPE_PEM        X509_FILETYPE_PEM\n\n/*\n * This is needed to stop compilers complaining about the 'struct ssl_st *'\n * function parameters used to prototype callbacks in SSL_CTX.\n */\ntypedef struct ssl_st *ssl_crock_st;\ntypedef struct tls_session_ticket_ext_st TLS_SESSION_TICKET_EXT;\ntypedef struct ssl_method_st SSL_METHOD;\ntypedef struct ssl_cipher_st SSL_CIPHER;\ntypedef struct ssl_session_st SSL_SESSION;\ntypedef struct tls_sigalgs_st TLS_SIGALGS;\ntypedef struct ssl_conf_ctx_st SSL_CONF_CTX;\ntypedef struct ssl_comp_st SSL_COMP;\n\nSTACK_OF(SSL_CIPHER);\nSTACK_OF(SSL_COMP);\n\n/* SRTP protection profiles for use with the use_srtp extension (RFC 5764)*/\ntypedef struct srtp_protection_profile_st {\n    const char *name;\n    unsigned long id;\n} SRTP_PROTECTION_PROFILE;\n\nDEFINE_STACK_OF(SRTP_PROTECTION_PROFILE)\n\ntypedef int (*tls_session_ticket_ext_cb_fn)(SSL *s, const unsigned char *data,\n                                            int len, void *arg);\ntypedef int (*tls_session_secret_cb_fn)(SSL *s, void *secret, int *secret_len,\n                                        STACK_OF(SSL_CIPHER) *peer_ciphers,\n                                        const SSL_CIPHER **cipher, void *arg);\n\n/* Extension context codes */\n/* This extension is only allowed in TLS */\n#define SSL_EXT_TLS_ONLY                        0x0001\n/* This extension is only allowed in DTLS */\n#define SSL_EXT_DTLS_ONLY                       0x0002\n/* Some extensions may be allowed in DTLS but we don't implement them for it */\n#define SSL_EXT_TLS_IMPLEMENTATION_ONLY         0x0004\n/* Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is */\n#define SSL_EXT_SSL3_ALLOWED                    0x0008\n/* Extension is only defined for TLS1.2 and below */\n#define SSL_EXT_TLS1_2_AND_BELOW_ONLY           0x0010\n/* Extension is only defined for TLS1.3 and above */\n#define SSL_EXT_TLS1_3_ONLY                     0x0020\n/* Ignore this extension during parsing if we are resuming */\n#define SSL_EXT_IGNORE_ON_RESUMPTION            0x0040\n#define SSL_EXT_CLIENT_HELLO                    0x0080\n/* Really means TLS1.2 or below */\n#define SSL_EXT_TLS1_2_SERVER_HELLO             0x0100\n#define SSL_EXT_TLS1_3_SERVER_HELLO             0x0200\n#define SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS     0x0400\n#define SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST      0x0800\n#define SSL_EXT_TLS1_3_CERTIFICATE              0x1000\n#define SSL_EXT_TLS1_3_NEW_SESSION_TICKET       0x2000\n#define SSL_EXT_TLS1_3_CERTIFICATE_REQUEST      0x4000\n\n/* Typedefs for handling custom extensions */\n\ntypedef int (*custom_ext_add_cb)(SSL *s, unsigned int ext_type,\n                                 const unsigned char **out, size_t *outlen,\n                                 int *al, void *add_arg);\n\ntypedef void (*custom_ext_free_cb)(SSL *s, unsigned int ext_type,\n                                   const unsigned char *out, void *add_arg);\n\ntypedef int (*custom_ext_parse_cb)(SSL *s, unsigned int ext_type,\n                                   const unsigned char *in, size_t inlen,\n                                   int *al, void *parse_arg);\n\n\ntypedef int (*SSL_custom_ext_add_cb_ex)(SSL *s, unsigned int ext_type,\n                                        unsigned int context,\n                                        const unsigned char **out,\n                                        size_t *outlen, X509 *x,\n                                        size_t chainidx,\n                                        int *al, void *add_arg);\n\ntypedef void (*SSL_custom_ext_free_cb_ex)(SSL *s, unsigned int ext_type,\n                                          unsigned int context,\n                                          const unsigned char *out,\n                                          void *add_arg);\n\ntypedef int (*SSL_custom_ext_parse_cb_ex)(SSL *s, unsigned int ext_type,\n                                          unsigned int context,\n                                          const unsigned char *in,\n                                          size_t inlen, X509 *x,\n                                          size_t chainidx,\n                                          int *al, void *parse_arg);\n\n/* Typedef for verification callback */\ntypedef int (*SSL_verify_cb)(int preverify_ok, X509_STORE_CTX *x509_ctx);\n\n/*\n * Some values are reserved until OpenSSL 1.2.0 because they were previously\n * included in SSL_OP_ALL in a 1.1.x release.\n *\n * Reserved value (until OpenSSL 1.2.0)                  0x00000001U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000002U\n */\n/* Allow initial connection to servers that don't support RI */\n# define SSL_OP_LEGACY_SERVER_CONNECT                    0x00000004U\n\n/* Reserved value (until OpenSSL 1.2.0)                  0x00000008U */\n# define SSL_OP_TLSEXT_PADDING                           0x00000010U\n/* Reserved value (until OpenSSL 1.2.0)                  0x00000020U */\n# define SSL_OP_SAFARI_ECDHE_ECDSA_BUG                   0x00000040U\n/*\n * Reserved value (until OpenSSL 1.2.0)                  0x00000080U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000100U\n * Reserved value (until OpenSSL 1.2.0)                  0x00000200U\n */\n\n/* In TLSv1.3 allow a non-(ec)dhe based kex_mode */\n# define SSL_OP_ALLOW_NO_DHE_KEX                         0x00000400U\n\n/*\n * Disable SSL 3.0/TLS 1.0 CBC vulnerability workaround that was added in\n * OpenSSL 0.9.6d.  Usually (depending on the application protocol) the\n * workaround is not needed.  Unfortunately some broken SSL/TLS\n * implementations cannot handle it at all, which is why we include it in\n * SSL_OP_ALL. Added in 0.9.6e\n */\n# define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS              0x00000800U\n\n/* DTLS options */\n# define SSL_OP_NO_QUERY_MTU                             0x00001000U\n/* Turn on Cookie Exchange (on relevant for servers) */\n# define SSL_OP_COOKIE_EXCHANGE                          0x00002000U\n/* Don't use RFC4507 ticket extension */\n# define SSL_OP_NO_TICKET                                0x00004000U\n# ifndef OPENSSL_NO_DTLS1_METHOD\n/* Use Cisco's \"speshul\" version of DTLS_BAD_VER\n * (only with deprecated DTLSv1_client_method())  */\n#  define SSL_OP_CISCO_ANYCONNECT                        0x00008000U\n# endif\n\n/* As server, disallow session resumption on renegotiation */\n# define SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION   0x00010000U\n/* Don't use compression even if supported */\n# define SSL_OP_NO_COMPRESSION                           0x00020000U\n/* Permit unsafe legacy renegotiation */\n# define SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION        0x00040000U\n/* Disable encrypt-then-mac */\n# define SSL_OP_NO_ENCRYPT_THEN_MAC                      0x00080000U\n\n/*\n * Enable TLSv1.3 Compatibility mode. This is on by default. A future version\n * of OpenSSL may have this disabled by default.\n */\n# define SSL_OP_ENABLE_MIDDLEBOX_COMPAT                  0x00100000U\n\n/* Prioritize Chacha20Poly1305 when client does.\n * Modifies SSL_OP_CIPHER_SERVER_PREFERENCE */\n# define SSL_OP_PRIORITIZE_CHACHA                        0x00200000U\n\n/*\n * Set on servers to choose the cipher according to the server's preferences\n */\n# define SSL_OP_CIPHER_SERVER_PREFERENCE                 0x00400000U\n/*\n * If set, a server will allow a client to issue a SSLv3.0 version number as\n * latest version supported in the premaster secret, even when TLSv1.0\n * (version 3.1) was announced in the client hello. Normally this is\n * forbidden to prevent version rollback attacks.\n */\n# define SSL_OP_TLS_ROLLBACK_BUG                         0x00800000U\n\n/*\n * Switches off automatic TLSv1.3 anti-replay protection for early data. This\n * is a server-side option only (no effect on the client).\n */\n# define SSL_OP_NO_ANTI_REPLAY                           0x01000000U\n\n# define SSL_OP_NO_SSLv3                                 0x02000000U\n# define SSL_OP_NO_TLSv1                                 0x04000000U\n# define SSL_OP_NO_TLSv1_2                               0x08000000U\n# define SSL_OP_NO_TLSv1_1                               0x10000000U\n# define SSL_OP_NO_TLSv1_3                               0x20000000U\n\n# define SSL_OP_NO_DTLSv1                                0x04000000U\n# define SSL_OP_NO_DTLSv1_2                              0x08000000U\n\n# define SSL_OP_NO_SSL_MASK (SSL_OP_NO_SSLv3|\\\n        SSL_OP_NO_TLSv1|SSL_OP_NO_TLSv1_1|SSL_OP_NO_TLSv1_2|SSL_OP_NO_TLSv1_3)\n# define SSL_OP_NO_DTLS_MASK (SSL_OP_NO_DTLSv1|SSL_OP_NO_DTLSv1_2)\n\n/* Disallow all renegotiation */\n# define SSL_OP_NO_RENEGOTIATION                         0x40000000U\n\n/*\n * Make server add server-hello extension from early version of cryptopro\n * draft, when GOST ciphersuite is negotiated. Required for interoperability\n * with CryptoPro CSP 3.x\n */\n# define SSL_OP_CRYPTOPRO_TLSEXT_BUG                     0x80000000U\n\n/*\n * SSL_OP_ALL: various bug workarounds that should be rather harmless.\n * This used to be 0x000FFFFFL before 0.9.7.\n * This used to be 0x80000BFFU before 1.1.1.\n */\n# define SSL_OP_ALL        (SSL_OP_CRYPTOPRO_TLSEXT_BUG|\\\n                            SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS|\\\n                            SSL_OP_LEGACY_SERVER_CONNECT|\\\n                            SSL_OP_TLSEXT_PADDING|\\\n                            SSL_OP_SAFARI_ECDHE_ECDSA_BUG)\n\n/* OBSOLETE OPTIONS: retained for compatibility */\n\n/* Removed from OpenSSL 1.1.0. Was 0x00000001L */\n/* Related to removed SSLv2. */\n# define SSL_OP_MICROSOFT_SESS_ID_BUG                    0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000002L */\n/* Related to removed SSLv2. */\n# define SSL_OP_NETSCAPE_CHALLENGE_BUG                   0x0\n/* Removed from OpenSSL 0.9.8q and 1.0.0c. Was 0x00000008L */\n/* Dead forever, see CVE-2010-4180 */\n# define SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG         0x0\n/* Removed from OpenSSL 1.0.1h and 1.0.2. Was 0x00000010L */\n/* Refers to ancient SSLREF and SSLv2. */\n# define SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG              0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000020 */\n# define SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER               0x0\n/* Removed from OpenSSL 0.9.7h and 0.9.8b. Was 0x00000040L */\n# define SSL_OP_MSIE_SSLV2_RSA_PADDING                   0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000080 */\n/* Ancient SSLeay version. */\n# define SSL_OP_SSLEAY_080_CLIENT_DH_BUG                 0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000100L */\n# define SSL_OP_TLS_D5_BUG                               0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00000200L */\n# define SSL_OP_TLS_BLOCK_PADDING_BUG                    0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00080000L */\n# define SSL_OP_SINGLE_ECDH_USE                          0x0\n/* Removed from OpenSSL 1.1.0. Was 0x00100000L */\n# define SSL_OP_SINGLE_DH_USE                            0x0\n/* Removed from OpenSSL 1.0.1k and 1.0.2. Was 0x00200000L */\n# define SSL_OP_EPHEMERAL_RSA                            0x0\n/* Removed from OpenSSL 1.1.0. Was 0x01000000L */\n# define SSL_OP_NO_SSLv2                                 0x0\n/* Removed from OpenSSL 1.0.1. Was 0x08000000L */\n# define SSL_OP_PKCS1_CHECK_1                            0x0\n/* Removed from OpenSSL 1.0.1. Was 0x10000000L */\n# define SSL_OP_PKCS1_CHECK_2                            0x0\n/* Removed from OpenSSL 1.1.0. Was 0x20000000L */\n# define SSL_OP_NETSCAPE_CA_DN_BUG                       0x0\n/* Removed from OpenSSL 1.1.0. Was 0x40000000L */\n# define SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG          0x0\n\n/*\n * Allow SSL_write(..., n) to return r with 0 < r < n (i.e. report success\n * when just a single record has been written):\n */\n# define SSL_MODE_ENABLE_PARTIAL_WRITE       0x00000001U\n/*\n * Make it possible to retry SSL_write() with changed buffer location (buffer\n * contents must stay the same!); this is not the default to avoid the\n * misconception that non-blocking SSL_write() behaves like non-blocking\n * write():\n */\n# define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER 0x00000002U\n/*\n * Never bother the application with retries if the transport is blocking:\n */\n# define SSL_MODE_AUTO_RETRY 0x00000004U\n/* Don't attempt to automatically build certificate chain */\n# define SSL_MODE_NO_AUTO_CHAIN 0x00000008U\n/*\n * Save RAM by releasing read and write buffers when they're empty. (SSL3 and\n * TLS only.) Released buffers are freed.\n */\n# define SSL_MODE_RELEASE_BUFFERS 0x00000010U\n/*\n * Send the current time in the Random fields of the ClientHello and\n * ServerHello records for compatibility with hypothetical implementations\n * that require it.\n */\n# define SSL_MODE_SEND_CLIENTHELLO_TIME 0x00000020U\n# define SSL_MODE_SEND_SERVERHELLO_TIME 0x00000040U\n/*\n * Send TLS_FALLBACK_SCSV in the ClientHello. To be set only by applications\n * that reconnect with a downgraded protocol version; see\n * draft-ietf-tls-downgrade-scsv-00 for details. DO NOT ENABLE THIS if your\n * application attempts a normal handshake. Only use this in explicit\n * fallback retries, following the guidance in\n * draft-ietf-tls-downgrade-scsv-00.\n */\n# define SSL_MODE_SEND_FALLBACK_SCSV 0x00000080U\n/*\n * Support Asynchronous operation\n */\n# define SSL_MODE_ASYNC 0x00000100U\n\n/*\n * When using DTLS/SCTP, include the terminating zero in the label\n * used for computing the endpoint-pair shared secret. Required for\n * interoperability with implementations having this bug like these\n * older version of OpenSSL:\n * - OpenSSL 1.0.0 series\n * - OpenSSL 1.0.1 series\n * - OpenSSL 1.0.2 series\n * - OpenSSL 1.1.0 series\n * - OpenSSL 1.1.1 and 1.1.1a\n */\n# define SSL_MODE_DTLS_SCTP_LABEL_LENGTH_BUG 0x00000400U\n\n/* Cert related flags */\n/*\n * Many implementations ignore some aspects of the TLS standards such as\n * enforcing certificate chain algorithms. When this is set we enforce them.\n */\n# define SSL_CERT_FLAG_TLS_STRICT                0x00000001U\n\n/* Suite B modes, takes same values as certificate verify flags */\n# define SSL_CERT_FLAG_SUITEB_128_LOS_ONLY       0x10000\n/* Suite B 192 bit only mode */\n# define SSL_CERT_FLAG_SUITEB_192_LOS            0x20000\n/* Suite B 128 bit mode allowing 192 bit algorithms */\n# define SSL_CERT_FLAG_SUITEB_128_LOS            0x30000\n\n/* Perform all sorts of protocol violations for testing purposes */\n# define SSL_CERT_FLAG_BROKEN_PROTOCOL           0x10000000\n\n/* Flags for building certificate chains */\n/* Treat any existing certificates as untrusted CAs */\n# define SSL_BUILD_CHAIN_FLAG_UNTRUSTED          0x1\n/* Don't include root CA in chain */\n# define SSL_BUILD_CHAIN_FLAG_NO_ROOT            0x2\n/* Just check certificates already there */\n# define SSL_BUILD_CHAIN_FLAG_CHECK              0x4\n/* Ignore verification errors */\n# define SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR       0x8\n/* Clear verification errors from queue */\n# define SSL_BUILD_CHAIN_FLAG_CLEAR_ERROR        0x10\n\n/* Flags returned by SSL_check_chain */\n/* Certificate can be used with this session */\n# define CERT_PKEY_VALID         0x1\n/* Certificate can also be used for signing */\n# define CERT_PKEY_SIGN          0x2\n/* EE certificate signing algorithm OK */\n# define CERT_PKEY_EE_SIGNATURE  0x10\n/* CA signature algorithms OK */\n# define CERT_PKEY_CA_SIGNATURE  0x20\n/* EE certificate parameters OK */\n# define CERT_PKEY_EE_PARAM      0x40\n/* CA certificate parameters OK */\n# define CERT_PKEY_CA_PARAM      0x80\n/* Signing explicitly allowed as opposed to SHA1 fallback */\n# define CERT_PKEY_EXPLICIT_SIGN 0x100\n/* Client CA issuer names match (always set for server cert) */\n# define CERT_PKEY_ISSUER_NAME   0x200\n/* Cert type matches client types (always set for server cert) */\n# define CERT_PKEY_CERT_TYPE     0x400\n/* Cert chain suitable to Suite B */\n# define CERT_PKEY_SUITEB        0x800\n\n# define SSL_CONF_FLAG_CMDLINE           0x1\n# define SSL_CONF_FLAG_FILE              0x2\n# define SSL_CONF_FLAG_CLIENT            0x4\n# define SSL_CONF_FLAG_SERVER            0x8\n# define SSL_CONF_FLAG_SHOW_ERRORS       0x10\n# define SSL_CONF_FLAG_CERTIFICATE       0x20\n# define SSL_CONF_FLAG_REQUIRE_PRIVATE   0x40\n/* Configuration value types */\n# define SSL_CONF_TYPE_UNKNOWN           0x0\n# define SSL_CONF_TYPE_STRING            0x1\n# define SSL_CONF_TYPE_FILE              0x2\n# define SSL_CONF_TYPE_DIR               0x3\n# define SSL_CONF_TYPE_NONE              0x4\n\n/* Maximum length of the application-controlled segment of a a TLSv1.3 cookie */\n# define SSL_COOKIE_LENGTH                       4096\n\n/*\n * Note: SSL[_CTX]_set_{options,mode} use |= op on the previous value, they\n * cannot be used to clear bits.\n */\n\nunsigned long SSL_CTX_get_options(const SSL_CTX *ctx);\nunsigned long SSL_get_options(const SSL *s);\nunsigned long SSL_CTX_clear_options(SSL_CTX *ctx, unsigned long op);\nunsigned long SSL_clear_options(SSL *s, unsigned long op);\nunsigned long SSL_CTX_set_options(SSL_CTX *ctx, unsigned long op);\nunsigned long SSL_set_options(SSL *s, unsigned long op);\n\n# define SSL_CTX_set_mode(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)\n# define SSL_CTX_clear_mode(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_MODE,(op),NULL)\n# define SSL_CTX_get_mode(ctx) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL)\n# define SSL_clear_mode(ssl,op) \\\n        SSL_ctrl((ssl),SSL_CTRL_CLEAR_MODE,(op),NULL)\n# define SSL_set_mode(ssl,op) \\\n        SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)\n# define SSL_get_mode(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)\n# define SSL_set_mtu(ssl, mtu) \\\n        SSL_ctrl((ssl),SSL_CTRL_SET_MTU,(mtu),NULL)\n# define DTLS_set_link_mtu(ssl, mtu) \\\n        SSL_ctrl((ssl),DTLS_CTRL_SET_LINK_MTU,(mtu),NULL)\n# define DTLS_get_link_min_mtu(ssl) \\\n        SSL_ctrl((ssl),DTLS_CTRL_GET_LINK_MIN_MTU,0,NULL)\n\n# define SSL_get_secure_renegotiation_support(ssl) \\\n        SSL_ctrl((ssl), SSL_CTRL_GET_RI_SUPPORT, 0, NULL)\n\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_heartbeat(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT,0,NULL)\n# endif\n\n# define SSL_CTX_set_cert_flags(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CERT_FLAGS,(op),NULL)\n# define SSL_set_cert_flags(s,op) \\\n        SSL_ctrl((s),SSL_CTRL_CERT_FLAGS,(op),NULL)\n# define SSL_CTX_clear_cert_flags(ctx,op) \\\n        SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)\n# define SSL_clear_cert_flags(s,op) \\\n        SSL_ctrl((s),SSL_CTRL_CLEAR_CERT_FLAGS,(op),NULL)\n\nvoid SSL_CTX_set_msg_callback(SSL_CTX *ctx,\n                              void (*cb) (int write_p, int version,\n                                          int content_type, const void *buf,\n                                          size_t len, SSL *ssl, void *arg));\nvoid SSL_set_msg_callback(SSL *ssl,\n                          void (*cb) (int write_p, int version,\n                                      int content_type, const void *buf,\n                                      size_t len, SSL *ssl, void *arg));\n# define SSL_CTX_set_msg_callback_arg(ctx, arg) SSL_CTX_ctrl((ctx), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))\n# define SSL_set_msg_callback_arg(ssl, arg) SSL_ctrl((ssl), SSL_CTRL_SET_MSG_CALLBACK_ARG, 0, (arg))\n\n# define SSL_get_extms_support(s) \\\n        SSL_ctrl((s),SSL_CTRL_GET_EXTMS_SUPPORT,0,NULL)\n\n# ifndef OPENSSL_NO_SRP\n\n/* see tls_srp.c */\n__owur int SSL_SRP_CTX_init(SSL *s);\n__owur int SSL_CTX_SRP_CTX_init(SSL_CTX *ctx);\nint SSL_SRP_CTX_free(SSL *ctx);\nint SSL_CTX_SRP_CTX_free(SSL_CTX *ctx);\n__owur int SSL_srp_server_param_with_username(SSL *s, int *ad);\n__owur int SRP_Calc_A_param(SSL *s);\n\n# endif\n\n/* 100k max cert list */\n# define SSL_MAX_CERT_LIST_DEFAULT 1024*100\n\n# define SSL_SESSION_CACHE_MAX_SIZE_DEFAULT      (1024*20)\n\n/*\n * This callback type is used inside SSL_CTX, SSL, and in the functions that\n * set them. It is used to override the generation of SSL/TLS session IDs in\n * a server. Return value should be zero on an error, non-zero to proceed.\n * Also, callbacks should themselves check if the id they generate is unique\n * otherwise the SSL handshake will fail with an error - callbacks can do\n * this using the 'ssl' value they're passed by;\n * SSL_has_matching_session_id(ssl, id, *id_len) The length value passed in\n * is set at the maximum size the session ID can be. In SSLv3/TLSv1 it is 32\n * bytes. The callback can alter this length to be less if desired. It is\n * also an error for the callback to set the size to zero.\n */\ntypedef int (*GEN_SESSION_CB) (SSL *ssl, unsigned char *id,\n                               unsigned int *id_len);\n\n# define SSL_SESS_CACHE_OFF                      0x0000\n# define SSL_SESS_CACHE_CLIENT                   0x0001\n# define SSL_SESS_CACHE_SERVER                   0x0002\n# define SSL_SESS_CACHE_BOTH     (SSL_SESS_CACHE_CLIENT|SSL_SESS_CACHE_SERVER)\n# define SSL_SESS_CACHE_NO_AUTO_CLEAR            0x0080\n/* enough comments already ... see SSL_CTX_set_session_cache_mode(3) */\n# define SSL_SESS_CACHE_NO_INTERNAL_LOOKUP       0x0100\n# define SSL_SESS_CACHE_NO_INTERNAL_STORE        0x0200\n# define SSL_SESS_CACHE_NO_INTERNAL \\\n        (SSL_SESS_CACHE_NO_INTERNAL_LOOKUP|SSL_SESS_CACHE_NO_INTERNAL_STORE)\n\nLHASH_OF(SSL_SESSION) *SSL_CTX_sessions(SSL_CTX *ctx);\n# define SSL_CTX_sess_number(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_NUMBER,0,NULL)\n# define SSL_CTX_sess_connect(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT,0,NULL)\n# define SSL_CTX_sess_connect_good(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_GOOD,0,NULL)\n# define SSL_CTX_sess_connect_renegotiate(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CONNECT_RENEGOTIATE,0,NULL)\n# define SSL_CTX_sess_accept(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT,0,NULL)\n# define SSL_CTX_sess_accept_renegotiate(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_RENEGOTIATE,0,NULL)\n# define SSL_CTX_sess_accept_good(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_ACCEPT_GOOD,0,NULL)\n# define SSL_CTX_sess_hits(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_HIT,0,NULL)\n# define SSL_CTX_sess_cb_hits(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CB_HIT,0,NULL)\n# define SSL_CTX_sess_misses(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_MISSES,0,NULL)\n# define SSL_CTX_sess_timeouts(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_TIMEOUTS,0,NULL)\n# define SSL_CTX_sess_cache_full(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SESS_CACHE_FULL,0,NULL)\n\nvoid SSL_CTX_sess_set_new_cb(SSL_CTX *ctx,\n                             int (*new_session_cb) (struct ssl_st *ssl,\n                                                    SSL_SESSION *sess));\nint (*SSL_CTX_sess_get_new_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,\n                                              SSL_SESSION *sess);\nvoid SSL_CTX_sess_set_remove_cb(SSL_CTX *ctx,\n                                void (*remove_session_cb) (struct ssl_ctx_st\n                                                           *ctx,\n                                                           SSL_SESSION *sess));\nvoid (*SSL_CTX_sess_get_remove_cb(SSL_CTX *ctx)) (struct ssl_ctx_st *ctx,\n                                                  SSL_SESSION *sess);\nvoid SSL_CTX_sess_set_get_cb(SSL_CTX *ctx,\n                             SSL_SESSION *(*get_session_cb) (struct ssl_st\n                                                             *ssl,\n                                                             const unsigned char\n                                                             *data, int len,\n                                                             int *copy));\nSSL_SESSION *(*SSL_CTX_sess_get_get_cb(SSL_CTX *ctx)) (struct ssl_st *ssl,\n                                                       const unsigned char *data,\n                                                       int len, int *copy);\nvoid SSL_CTX_set_info_callback(SSL_CTX *ctx,\n                               void (*cb) (const SSL *ssl, int type, int val));\nvoid (*SSL_CTX_get_info_callback(SSL_CTX *ctx)) (const SSL *ssl, int type,\n                                                 int val);\nvoid SSL_CTX_set_client_cert_cb(SSL_CTX *ctx,\n                                int (*client_cert_cb) (SSL *ssl, X509 **x509,\n                                                       EVP_PKEY **pkey));\nint (*SSL_CTX_get_client_cert_cb(SSL_CTX *ctx)) (SSL *ssl, X509 **x509,\n                                                 EVP_PKEY **pkey);\n# ifndef OPENSSL_NO_ENGINE\n__owur int SSL_CTX_set_client_cert_engine(SSL_CTX *ctx, ENGINE *e);\n# endif\nvoid SSL_CTX_set_cookie_generate_cb(SSL_CTX *ctx,\n                                    int (*app_gen_cookie_cb) (SSL *ssl,\n                                                              unsigned char\n                                                              *cookie,\n                                                              unsigned int\n                                                              *cookie_len));\nvoid SSL_CTX_set_cookie_verify_cb(SSL_CTX *ctx,\n                                  int (*app_verify_cookie_cb) (SSL *ssl,\n                                                               const unsigned\n                                                               char *cookie,\n                                                               unsigned int\n                                                               cookie_len));\n\nvoid SSL_CTX_set_stateless_cookie_generate_cb(\n    SSL_CTX *ctx,\n    int (*gen_stateless_cookie_cb) (SSL *ssl,\n                                    unsigned char *cookie,\n                                    size_t *cookie_len));\nvoid SSL_CTX_set_stateless_cookie_verify_cb(\n    SSL_CTX *ctx,\n    int (*verify_stateless_cookie_cb) (SSL *ssl,\n                                       const unsigned char *cookie,\n                                       size_t cookie_len));\n# ifndef OPENSSL_NO_NEXTPROTONEG\n\ntypedef int (*SSL_CTX_npn_advertised_cb_func)(SSL *ssl,\n                                              const unsigned char **out,\n                                              unsigned int *outlen,\n                                              void *arg);\nvoid SSL_CTX_set_next_protos_advertised_cb(SSL_CTX *s,\n                                           SSL_CTX_npn_advertised_cb_func cb,\n                                           void *arg);\n#  define SSL_CTX_set_npn_advertised_cb SSL_CTX_set_next_protos_advertised_cb\n\ntypedef int (*SSL_CTX_npn_select_cb_func)(SSL *s,\n                                          unsigned char **out,\n                                          unsigned char *outlen,\n                                          const unsigned char *in,\n                                          unsigned int inlen,\n                                          void *arg);\nvoid SSL_CTX_set_next_proto_select_cb(SSL_CTX *s,\n                                      SSL_CTX_npn_select_cb_func cb,\n                                      void *arg);\n#  define SSL_CTX_set_npn_select_cb SSL_CTX_set_next_proto_select_cb\n\nvoid SSL_get0_next_proto_negotiated(const SSL *s, const unsigned char **data,\n                                    unsigned *len);\n#  define SSL_get0_npn_negotiated SSL_get0_next_proto_negotiated\n# endif\n\n__owur int SSL_select_next_proto(unsigned char **out, unsigned char *outlen,\n                                 const unsigned char *in, unsigned int inlen,\n                                 const unsigned char *client,\n                                 unsigned int client_len);\n\n# define OPENSSL_NPN_UNSUPPORTED 0\n# define OPENSSL_NPN_NEGOTIATED  1\n# define OPENSSL_NPN_NO_OVERLAP  2\n\n__owur int SSL_CTX_set_alpn_protos(SSL_CTX *ctx, const unsigned char *protos,\n                                   unsigned int protos_len);\n__owur int SSL_set_alpn_protos(SSL *ssl, const unsigned char *protos,\n                               unsigned int protos_len);\ntypedef int (*SSL_CTX_alpn_select_cb_func)(SSL *ssl,\n                                           const unsigned char **out,\n                                           unsigned char *outlen,\n                                           const unsigned char *in,\n                                           unsigned int inlen,\n                                           void *arg);\nvoid SSL_CTX_set_alpn_select_cb(SSL_CTX *ctx,\n                                SSL_CTX_alpn_select_cb_func cb,\n                                void *arg);\nvoid SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data,\n                            unsigned int *len);\n\n# ifndef OPENSSL_NO_PSK\n/*\n * the maximum length of the buffer given to callbacks containing the\n * resulting identity/psk\n */\n#  define PSK_MAX_IDENTITY_LEN 128\n#  define PSK_MAX_PSK_LEN 256\ntypedef unsigned int (*SSL_psk_client_cb_func)(SSL *ssl,\n                                               const char *hint,\n                                               char *identity,\n                                               unsigned int max_identity_len,\n                                               unsigned char *psk,\n                                               unsigned int max_psk_len);\nvoid SSL_CTX_set_psk_client_callback(SSL_CTX *ctx, SSL_psk_client_cb_func cb);\nvoid SSL_set_psk_client_callback(SSL *ssl, SSL_psk_client_cb_func cb);\n\ntypedef unsigned int (*SSL_psk_server_cb_func)(SSL *ssl,\n                                               const char *identity,\n                                               unsigned char *psk,\n                                               unsigned int max_psk_len);\nvoid SSL_CTX_set_psk_server_callback(SSL_CTX *ctx, SSL_psk_server_cb_func cb);\nvoid SSL_set_psk_server_callback(SSL *ssl, SSL_psk_server_cb_func cb);\n\n__owur int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *identity_hint);\n__owur int SSL_use_psk_identity_hint(SSL *s, const char *identity_hint);\nconst char *SSL_get_psk_identity_hint(const SSL *s);\nconst char *SSL_get_psk_identity(const SSL *s);\n# endif\n\ntypedef int (*SSL_psk_find_session_cb_func)(SSL *ssl,\n                                            const unsigned char *identity,\n                                            size_t identity_len,\n                                            SSL_SESSION **sess);\ntypedef int (*SSL_psk_use_session_cb_func)(SSL *ssl, const EVP_MD *md,\n                                           const unsigned char **id,\n                                           size_t *idlen,\n                                           SSL_SESSION **sess);\n\nvoid SSL_set_psk_find_session_callback(SSL *s, SSL_psk_find_session_cb_func cb);\nvoid SSL_CTX_set_psk_find_session_callback(SSL_CTX *ctx,\n                                           SSL_psk_find_session_cb_func cb);\nvoid SSL_set_psk_use_session_callback(SSL *s, SSL_psk_use_session_cb_func cb);\nvoid SSL_CTX_set_psk_use_session_callback(SSL_CTX *ctx,\n                                          SSL_psk_use_session_cb_func cb);\n\n/* Register callbacks to handle custom TLS Extensions for client or server. */\n\n__owur int SSL_CTX_has_client_custom_ext(const SSL_CTX *ctx,\n                                         unsigned int ext_type);\n\n__owur int SSL_CTX_add_client_custom_ext(SSL_CTX *ctx,\n                                         unsigned int ext_type,\n                                         custom_ext_add_cb add_cb,\n                                         custom_ext_free_cb free_cb,\n                                         void *add_arg,\n                                         custom_ext_parse_cb parse_cb,\n                                         void *parse_arg);\n\n__owur int SSL_CTX_add_server_custom_ext(SSL_CTX *ctx,\n                                         unsigned int ext_type,\n                                         custom_ext_add_cb add_cb,\n                                         custom_ext_free_cb free_cb,\n                                         void *add_arg,\n                                         custom_ext_parse_cb parse_cb,\n                                         void *parse_arg);\n\n__owur int SSL_CTX_add_custom_ext(SSL_CTX *ctx, unsigned int ext_type,\n                                  unsigned int context,\n                                  SSL_custom_ext_add_cb_ex add_cb,\n                                  SSL_custom_ext_free_cb_ex free_cb,\n                                  void *add_arg,\n                                  SSL_custom_ext_parse_cb_ex parse_cb,\n                                  void *parse_arg);\n\n__owur int SSL_extension_supported(unsigned int ext_type);\n\n# define SSL_NOTHING            1\n# define SSL_WRITING            2\n# define SSL_READING            3\n# define SSL_X509_LOOKUP        4\n# define SSL_ASYNC_PAUSED       5\n# define SSL_ASYNC_NO_JOBS      6\n# define SSL_CLIENT_HELLO_CB    7\n\n/* These will only be used when doing non-blocking IO */\n# define SSL_want_nothing(s)         (SSL_want(s) == SSL_NOTHING)\n# define SSL_want_read(s)            (SSL_want(s) == SSL_READING)\n# define SSL_want_write(s)           (SSL_want(s) == SSL_WRITING)\n# define SSL_want_x509_lookup(s)     (SSL_want(s) == SSL_X509_LOOKUP)\n# define SSL_want_async(s)           (SSL_want(s) == SSL_ASYNC_PAUSED)\n# define SSL_want_async_job(s)       (SSL_want(s) == SSL_ASYNC_NO_JOBS)\n# define SSL_want_client_hello_cb(s) (SSL_want(s) == SSL_CLIENT_HELLO_CB)\n\n# define SSL_MAC_FLAG_READ_MAC_STREAM 1\n# define SSL_MAC_FLAG_WRITE_MAC_STREAM 2\n\n/*\n * A callback for logging out TLS key material. This callback should log out\n * |line| followed by a newline.\n */\ntypedef void (*SSL_CTX_keylog_cb_func)(const SSL *ssl, const char *line);\n\n/*\n * SSL_CTX_set_keylog_callback configures a callback to log key material. This\n * is intended for debugging use with tools like Wireshark. The cb function\n * should log line followed by a newline.\n */\nvoid SSL_CTX_set_keylog_callback(SSL_CTX *ctx, SSL_CTX_keylog_cb_func cb);\n\n/*\n * SSL_CTX_get_keylog_callback returns the callback configured by\n * SSL_CTX_set_keylog_callback.\n */\nSSL_CTX_keylog_cb_func SSL_CTX_get_keylog_callback(const SSL_CTX *ctx);\n\nint SSL_CTX_set_max_early_data(SSL_CTX *ctx, uint32_t max_early_data);\nuint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);\nint SSL_set_max_early_data(SSL *s, uint32_t max_early_data);\nuint32_t SSL_get_max_early_data(const SSL *s);\nint SSL_CTX_set_recv_max_early_data(SSL_CTX *ctx, uint32_t recv_max_early_data);\nuint32_t SSL_CTX_get_recv_max_early_data(const SSL_CTX *ctx);\nint SSL_set_recv_max_early_data(SSL *s, uint32_t recv_max_early_data);\nuint32_t SSL_get_recv_max_early_data(const SSL *s);\n\n#ifdef __cplusplus\n}\n#endif\n\n# include <openssl/ssl2.h>\n# include <openssl/ssl3.h>\n# include <openssl/tls1.h>      /* This is mostly sslv3 with a few tweaks */\n# include <openssl/dtls1.h>     /* Datagram TLS */\n# include <openssl/srtp.h>      /* Support for the use_srtp extension */\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * These need to be after the above set of includes due to a compiler bug\n * in VisualStudio 2015\n */\nDEFINE_STACK_OF_CONST(SSL_CIPHER)\nDEFINE_STACK_OF(SSL_COMP)\n\n/* compatibility */\n# define SSL_set_app_data(s,arg)         (SSL_set_ex_data(s,0,(char *)(arg)))\n# define SSL_get_app_data(s)             (SSL_get_ex_data(s,0))\n# define SSL_SESSION_set_app_data(s,a)   (SSL_SESSION_set_ex_data(s,0, \\\n                                                                  (char *)(a)))\n# define SSL_SESSION_get_app_data(s)     (SSL_SESSION_get_ex_data(s,0))\n# define SSL_CTX_get_app_data(ctx)       (SSL_CTX_get_ex_data(ctx,0))\n# define SSL_CTX_set_app_data(ctx,arg)   (SSL_CTX_set_ex_data(ctx,0, \\\n                                                              (char *)(arg)))\nDEPRECATEDIN_1_1_0(void SSL_set_debug(SSL *s, int debug))\n\n/* TLSv1.3 KeyUpdate message types */\n/* -1 used so that this is an invalid value for the on-the-wire protocol */\n#define SSL_KEY_UPDATE_NONE             -1\n/* Values as defined for the on-the-wire protocol */\n#define SSL_KEY_UPDATE_NOT_REQUESTED     0\n#define SSL_KEY_UPDATE_REQUESTED         1\n\n/*\n * The valid handshake states (one for each type message sent and one for each\n * type of message received). There are also two \"special\" states:\n * TLS = TLS or DTLS state\n * DTLS = DTLS specific state\n * CR/SR = Client Read/Server Read\n * CW/SW = Client Write/Server Write\n *\n * The \"special\" states are:\n * TLS_ST_BEFORE = No handshake has been initiated yet\n * TLS_ST_OK = A handshake has been successfully completed\n */\ntypedef enum {\n    TLS_ST_BEFORE,\n    TLS_ST_OK,\n    DTLS_ST_CR_HELLO_VERIFY_REQUEST,\n    TLS_ST_CR_SRVR_HELLO,\n    TLS_ST_CR_CERT,\n    TLS_ST_CR_CERT_STATUS,\n    TLS_ST_CR_KEY_EXCH,\n    TLS_ST_CR_CERT_REQ,\n    TLS_ST_CR_SRVR_DONE,\n    TLS_ST_CR_SESSION_TICKET,\n    TLS_ST_CR_CHANGE,\n    TLS_ST_CR_FINISHED,\n    TLS_ST_CW_CLNT_HELLO,\n    TLS_ST_CW_CERT,\n    TLS_ST_CW_KEY_EXCH,\n    TLS_ST_CW_CERT_VRFY,\n    TLS_ST_CW_CHANGE,\n    TLS_ST_CW_NEXT_PROTO,\n    TLS_ST_CW_FINISHED,\n    TLS_ST_SW_HELLO_REQ,\n    TLS_ST_SR_CLNT_HELLO,\n    DTLS_ST_SW_HELLO_VERIFY_REQUEST,\n    TLS_ST_SW_SRVR_HELLO,\n    TLS_ST_SW_CERT,\n    TLS_ST_SW_KEY_EXCH,\n    TLS_ST_SW_CERT_REQ,\n    TLS_ST_SW_SRVR_DONE,\n    TLS_ST_SR_CERT,\n    TLS_ST_SR_KEY_EXCH,\n    TLS_ST_SR_CERT_VRFY,\n    TLS_ST_SR_NEXT_PROTO,\n    TLS_ST_SR_CHANGE,\n    TLS_ST_SR_FINISHED,\n    TLS_ST_SW_SESSION_TICKET,\n    TLS_ST_SW_CERT_STATUS,\n    TLS_ST_SW_CHANGE,\n    TLS_ST_SW_FINISHED,\n    TLS_ST_SW_ENCRYPTED_EXTENSIONS,\n    TLS_ST_CR_ENCRYPTED_EXTENSIONS,\n    TLS_ST_CR_CERT_VRFY,\n    TLS_ST_SW_CERT_VRFY,\n    TLS_ST_CR_HELLO_REQ,\n    TLS_ST_SW_KEY_UPDATE,\n    TLS_ST_CW_KEY_UPDATE,\n    TLS_ST_SR_KEY_UPDATE,\n    TLS_ST_CR_KEY_UPDATE,\n    TLS_ST_EARLY_DATA,\n    TLS_ST_PENDING_EARLY_DATA_END,\n    TLS_ST_CW_END_OF_EARLY_DATA,\n    TLS_ST_SR_END_OF_EARLY_DATA\n} OSSL_HANDSHAKE_STATE;\n\n/*\n * Most of the following state values are no longer used and are defined to be\n * the closest equivalent value in the current state machine code. Not all\n * defines have an equivalent and are set to a dummy value (-1). SSL_ST_CONNECT\n * and SSL_ST_ACCEPT are still in use in the definition of SSL_CB_ACCEPT_LOOP,\n * SSL_CB_ACCEPT_EXIT, SSL_CB_CONNECT_LOOP and SSL_CB_CONNECT_EXIT.\n */\n\n# define SSL_ST_CONNECT                  0x1000\n# define SSL_ST_ACCEPT                   0x2000\n\n# define SSL_ST_MASK                     0x0FFF\n\n# define SSL_CB_LOOP                     0x01\n# define SSL_CB_EXIT                     0x02\n# define SSL_CB_READ                     0x04\n# define SSL_CB_WRITE                    0x08\n# define SSL_CB_ALERT                    0x4000/* used in callback */\n# define SSL_CB_READ_ALERT               (SSL_CB_ALERT|SSL_CB_READ)\n# define SSL_CB_WRITE_ALERT              (SSL_CB_ALERT|SSL_CB_WRITE)\n# define SSL_CB_ACCEPT_LOOP              (SSL_ST_ACCEPT|SSL_CB_LOOP)\n# define SSL_CB_ACCEPT_EXIT              (SSL_ST_ACCEPT|SSL_CB_EXIT)\n# define SSL_CB_CONNECT_LOOP             (SSL_ST_CONNECT|SSL_CB_LOOP)\n# define SSL_CB_CONNECT_EXIT             (SSL_ST_CONNECT|SSL_CB_EXIT)\n# define SSL_CB_HANDSHAKE_START          0x10\n# define SSL_CB_HANDSHAKE_DONE           0x20\n\n/* Is the SSL_connection established? */\n# define SSL_in_connect_init(a)          (SSL_in_init(a) && !SSL_is_server(a))\n# define SSL_in_accept_init(a)           (SSL_in_init(a) && SSL_is_server(a))\nint SSL_in_init(const SSL *s);\nint SSL_in_before(const SSL *s);\nint SSL_is_init_finished(const SSL *s);\n\n/*\n * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you\n * should not need these\n */\n# define SSL_ST_READ_HEADER                      0xF0\n# define SSL_ST_READ_BODY                        0xF1\n# define SSL_ST_READ_DONE                        0xF2\n\n/*-\n * Obtain latest Finished message\n *   -- that we sent (SSL_get_finished)\n *   -- that we expected from peer (SSL_get_peer_finished).\n * Returns length (0 == no Finished so far), copies up to 'count' bytes.\n */\nsize_t SSL_get_finished(const SSL *s, void *buf, size_t count);\nsize_t SSL_get_peer_finished(const SSL *s, void *buf, size_t count);\n\n/*\n * use either SSL_VERIFY_NONE or SSL_VERIFY_PEER, the last 3 options are\n * 'ored' with SSL_VERIFY_PEER if they are desired\n */\n# define SSL_VERIFY_NONE                 0x00\n# define SSL_VERIFY_PEER                 0x01\n# define SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x02\n# define SSL_VERIFY_CLIENT_ONCE          0x04\n# define SSL_VERIFY_POST_HANDSHAKE       0x08\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define OpenSSL_add_ssl_algorithms()   SSL_library_init()\n#  define SSLeay_add_ssl_algorithms()    SSL_library_init()\n# endif\n\n/* More backward compatibility */\n# define SSL_get_cipher(s) \\\n                SSL_CIPHER_get_name(SSL_get_current_cipher(s))\n# define SSL_get_cipher_bits(s,np) \\\n                SSL_CIPHER_get_bits(SSL_get_current_cipher(s),np)\n# define SSL_get_cipher_version(s) \\\n                SSL_CIPHER_get_version(SSL_get_current_cipher(s))\n# define SSL_get_cipher_name(s) \\\n                SSL_CIPHER_get_name(SSL_get_current_cipher(s))\n# define SSL_get_time(a)         SSL_SESSION_get_time(a)\n# define SSL_set_time(a,b)       SSL_SESSION_set_time((a),(b))\n# define SSL_get_timeout(a)      SSL_SESSION_get_timeout(a)\n# define SSL_set_timeout(a,b)    SSL_SESSION_set_timeout((a),(b))\n\n# define d2i_SSL_SESSION_bio(bp,s_id) ASN1_d2i_bio_of(SSL_SESSION,SSL_SESSION_new,d2i_SSL_SESSION,bp,s_id)\n# define i2d_SSL_SESSION_bio(bp,s_id) ASN1_i2d_bio_of(SSL_SESSION,i2d_SSL_SESSION,bp,s_id)\n\nDECLARE_PEM_rw(SSL_SESSION, SSL_SESSION)\n# define SSL_AD_REASON_OFFSET            1000/* offset to get SSL_R_... value\n                                              * from SSL_AD_... */\n/* These alert types are for SSLv3 and TLSv1 */\n# define SSL_AD_CLOSE_NOTIFY             SSL3_AD_CLOSE_NOTIFY\n/* fatal */\n# define SSL_AD_UNEXPECTED_MESSAGE       SSL3_AD_UNEXPECTED_MESSAGE\n/* fatal */\n# define SSL_AD_BAD_RECORD_MAC           SSL3_AD_BAD_RECORD_MAC\n# define SSL_AD_DECRYPTION_FAILED        TLS1_AD_DECRYPTION_FAILED\n# define SSL_AD_RECORD_OVERFLOW          TLS1_AD_RECORD_OVERFLOW\n/* fatal */\n# define SSL_AD_DECOMPRESSION_FAILURE    SSL3_AD_DECOMPRESSION_FAILURE\n/* fatal */\n# define SSL_AD_HANDSHAKE_FAILURE        SSL3_AD_HANDSHAKE_FAILURE\n/* Not for TLS */\n# define SSL_AD_NO_CERTIFICATE           SSL3_AD_NO_CERTIFICATE\n# define SSL_AD_BAD_CERTIFICATE          SSL3_AD_BAD_CERTIFICATE\n# define SSL_AD_UNSUPPORTED_CERTIFICATE  SSL3_AD_UNSUPPORTED_CERTIFICATE\n# define SSL_AD_CERTIFICATE_REVOKED      SSL3_AD_CERTIFICATE_REVOKED\n# define SSL_AD_CERTIFICATE_EXPIRED      SSL3_AD_CERTIFICATE_EXPIRED\n# define SSL_AD_CERTIFICATE_UNKNOWN      SSL3_AD_CERTIFICATE_UNKNOWN\n/* fatal */\n# define SSL_AD_ILLEGAL_PARAMETER        SSL3_AD_ILLEGAL_PARAMETER\n/* fatal */\n# define SSL_AD_UNKNOWN_CA               TLS1_AD_UNKNOWN_CA\n/* fatal */\n# define SSL_AD_ACCESS_DENIED            TLS1_AD_ACCESS_DENIED\n/* fatal */\n# define SSL_AD_DECODE_ERROR             TLS1_AD_DECODE_ERROR\n# define SSL_AD_DECRYPT_ERROR            TLS1_AD_DECRYPT_ERROR\n/* fatal */\n# define SSL_AD_EXPORT_RESTRICTION       TLS1_AD_EXPORT_RESTRICTION\n/* fatal */\n# define SSL_AD_PROTOCOL_VERSION         TLS1_AD_PROTOCOL_VERSION\n/* fatal */\n# define SSL_AD_INSUFFICIENT_SECURITY    TLS1_AD_INSUFFICIENT_SECURITY\n/* fatal */\n# define SSL_AD_INTERNAL_ERROR           TLS1_AD_INTERNAL_ERROR\n# define SSL_AD_USER_CANCELLED           TLS1_AD_USER_CANCELLED\n# define SSL_AD_NO_RENEGOTIATION         TLS1_AD_NO_RENEGOTIATION\n# define SSL_AD_MISSING_EXTENSION        TLS13_AD_MISSING_EXTENSION\n# define SSL_AD_CERTIFICATE_REQUIRED     TLS13_AD_CERTIFICATE_REQUIRED\n# define SSL_AD_UNSUPPORTED_EXTENSION    TLS1_AD_UNSUPPORTED_EXTENSION\n# define SSL_AD_CERTIFICATE_UNOBTAINABLE TLS1_AD_CERTIFICATE_UNOBTAINABLE\n# define SSL_AD_UNRECOGNIZED_NAME        TLS1_AD_UNRECOGNIZED_NAME\n# define SSL_AD_BAD_CERTIFICATE_STATUS_RESPONSE TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE\n# define SSL_AD_BAD_CERTIFICATE_HASH_VALUE TLS1_AD_BAD_CERTIFICATE_HASH_VALUE\n/* fatal */\n# define SSL_AD_UNKNOWN_PSK_IDENTITY     TLS1_AD_UNKNOWN_PSK_IDENTITY\n/* fatal */\n# define SSL_AD_INAPPROPRIATE_FALLBACK   TLS1_AD_INAPPROPRIATE_FALLBACK\n# define SSL_AD_NO_APPLICATION_PROTOCOL  TLS1_AD_NO_APPLICATION_PROTOCOL\n# define SSL_ERROR_NONE                  0\n# define SSL_ERROR_SSL                   1\n# define SSL_ERROR_WANT_READ             2\n# define SSL_ERROR_WANT_WRITE            3\n# define SSL_ERROR_WANT_X509_LOOKUP      4\n# define SSL_ERROR_SYSCALL               5/* look at error stack/return\n                                           * value/errno */\n# define SSL_ERROR_ZERO_RETURN           6\n# define SSL_ERROR_WANT_CONNECT          7\n# define SSL_ERROR_WANT_ACCEPT           8\n# define SSL_ERROR_WANT_ASYNC            9\n# define SSL_ERROR_WANT_ASYNC_JOB       10\n# define SSL_ERROR_WANT_CLIENT_HELLO_CB 11\n# define SSL_CTRL_SET_TMP_DH                     3\n# define SSL_CTRL_SET_TMP_ECDH                   4\n# define SSL_CTRL_SET_TMP_DH_CB                  6\n# define SSL_CTRL_GET_CLIENT_CERT_REQUEST        9\n# define SSL_CTRL_GET_NUM_RENEGOTIATIONS         10\n# define SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS       11\n# define SSL_CTRL_GET_TOTAL_RENEGOTIATIONS       12\n# define SSL_CTRL_GET_FLAGS                      13\n# define SSL_CTRL_EXTRA_CHAIN_CERT               14\n# define SSL_CTRL_SET_MSG_CALLBACK               15\n# define SSL_CTRL_SET_MSG_CALLBACK_ARG           16\n/* only applies to datagram connections */\n# define SSL_CTRL_SET_MTU                17\n/* Stats */\n# define SSL_CTRL_SESS_NUMBER                    20\n# define SSL_CTRL_SESS_CONNECT                   21\n# define SSL_CTRL_SESS_CONNECT_GOOD              22\n# define SSL_CTRL_SESS_CONNECT_RENEGOTIATE       23\n# define SSL_CTRL_SESS_ACCEPT                    24\n# define SSL_CTRL_SESS_ACCEPT_GOOD               25\n# define SSL_CTRL_SESS_ACCEPT_RENEGOTIATE        26\n# define SSL_CTRL_SESS_HIT                       27\n# define SSL_CTRL_SESS_CB_HIT                    28\n# define SSL_CTRL_SESS_MISSES                    29\n# define SSL_CTRL_SESS_TIMEOUTS                  30\n# define SSL_CTRL_SESS_CACHE_FULL                31\n# define SSL_CTRL_MODE                           33\n# define SSL_CTRL_GET_READ_AHEAD                 40\n# define SSL_CTRL_SET_READ_AHEAD                 41\n# define SSL_CTRL_SET_SESS_CACHE_SIZE            42\n# define SSL_CTRL_GET_SESS_CACHE_SIZE            43\n# define SSL_CTRL_SET_SESS_CACHE_MODE            44\n# define SSL_CTRL_GET_SESS_CACHE_MODE            45\n# define SSL_CTRL_GET_MAX_CERT_LIST              50\n# define SSL_CTRL_SET_MAX_CERT_LIST              51\n# define SSL_CTRL_SET_MAX_SEND_FRAGMENT          52\n/* see tls1.h for macros based on these */\n# define SSL_CTRL_SET_TLSEXT_SERVERNAME_CB       53\n# define SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG      54\n# define SSL_CTRL_SET_TLSEXT_HOSTNAME            55\n# define SSL_CTRL_SET_TLSEXT_DEBUG_CB            56\n# define SSL_CTRL_SET_TLSEXT_DEBUG_ARG           57\n# define SSL_CTRL_GET_TLSEXT_TICKET_KEYS         58\n# define SSL_CTRL_SET_TLSEXT_TICKET_KEYS         59\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT    60 */\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB 61 */\n/*# define SSL_CTRL_SET_TLSEXT_OPAQUE_PRF_INPUT_CB_ARG 62 */\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB       63\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG   64\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE     65\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS     66\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS     67\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS      68\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS      69\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP        70\n# define SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP        71\n# define SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB       72\n# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME_CB    75\n# define SSL_CTRL_SET_SRP_VERIFY_PARAM_CB                76\n# define SSL_CTRL_SET_SRP_GIVE_CLIENT_PWD_CB             77\n# define SSL_CTRL_SET_SRP_ARG            78\n# define SSL_CTRL_SET_TLS_EXT_SRP_USERNAME               79\n# define SSL_CTRL_SET_TLS_EXT_SRP_STRENGTH               80\n# define SSL_CTRL_SET_TLS_EXT_SRP_PASSWORD               81\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT               85\n#  define SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING        86\n#  define SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS    87\n# endif\n# define DTLS_CTRL_GET_TIMEOUT           73\n# define DTLS_CTRL_HANDLE_TIMEOUT        74\n# define SSL_CTRL_GET_RI_SUPPORT                 76\n# define SSL_CTRL_CLEAR_MODE                     78\n# define SSL_CTRL_SET_NOT_RESUMABLE_SESS_CB      79\n# define SSL_CTRL_GET_EXTRA_CHAIN_CERTS          82\n# define SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS        83\n# define SSL_CTRL_CHAIN                          88\n# define SSL_CTRL_CHAIN_CERT                     89\n# define SSL_CTRL_GET_GROUPS                     90\n# define SSL_CTRL_SET_GROUPS                     91\n# define SSL_CTRL_SET_GROUPS_LIST                92\n# define SSL_CTRL_GET_SHARED_GROUP               93\n# define SSL_CTRL_SET_SIGALGS                    97\n# define SSL_CTRL_SET_SIGALGS_LIST               98\n# define SSL_CTRL_CERT_FLAGS                     99\n# define SSL_CTRL_CLEAR_CERT_FLAGS               100\n# define SSL_CTRL_SET_CLIENT_SIGALGS             101\n# define SSL_CTRL_SET_CLIENT_SIGALGS_LIST        102\n# define SSL_CTRL_GET_CLIENT_CERT_TYPES          103\n# define SSL_CTRL_SET_CLIENT_CERT_TYPES          104\n# define SSL_CTRL_BUILD_CERT_CHAIN               105\n# define SSL_CTRL_SET_VERIFY_CERT_STORE          106\n# define SSL_CTRL_SET_CHAIN_CERT_STORE           107\n# define SSL_CTRL_GET_PEER_SIGNATURE_NID         108\n# define SSL_CTRL_GET_PEER_TMP_KEY               109\n# define SSL_CTRL_GET_RAW_CIPHERLIST             110\n# define SSL_CTRL_GET_EC_POINT_FORMATS           111\n# define SSL_CTRL_GET_CHAIN_CERTS                115\n# define SSL_CTRL_SELECT_CURRENT_CERT            116\n# define SSL_CTRL_SET_CURRENT_CERT               117\n# define SSL_CTRL_SET_DH_AUTO                    118\n# define DTLS_CTRL_SET_LINK_MTU                  120\n# define DTLS_CTRL_GET_LINK_MIN_MTU              121\n# define SSL_CTRL_GET_EXTMS_SUPPORT              122\n# define SSL_CTRL_SET_MIN_PROTO_VERSION          123\n# define SSL_CTRL_SET_MAX_PROTO_VERSION          124\n# define SSL_CTRL_SET_SPLIT_SEND_FRAGMENT        125\n# define SSL_CTRL_SET_MAX_PIPELINES              126\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE     127\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB       128\n# define SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG   129\n# define SSL_CTRL_GET_MIN_PROTO_VERSION          130\n# define SSL_CTRL_GET_MAX_PROTO_VERSION          131\n# define SSL_CTRL_GET_SIGNATURE_NID              132\n# define SSL_CTRL_GET_TMP_KEY                    133\n# define SSL_CERT_SET_FIRST                      1\n# define SSL_CERT_SET_NEXT                       2\n# define SSL_CERT_SET_SERVER                     3\n# define DTLSv1_get_timeout(ssl, arg) \\\n        SSL_ctrl(ssl,DTLS_CTRL_GET_TIMEOUT,0, (void *)(arg))\n# define DTLSv1_handle_timeout(ssl) \\\n        SSL_ctrl(ssl,DTLS_CTRL_HANDLE_TIMEOUT,0, NULL)\n# define SSL_num_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_GET_NUM_RENEGOTIATIONS,0,NULL)\n# define SSL_clear_num_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_CLEAR_NUM_RENEGOTIATIONS,0,NULL)\n# define SSL_total_renegotiations(ssl) \\\n        SSL_ctrl((ssl),SSL_CTRL_GET_TOTAL_RENEGOTIATIONS,0,NULL)\n# define SSL_CTX_set_tmp_dh(ctx,dh) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))\n# define SSL_CTX_set_tmp_ecdh(ctx,ecdh) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))\n# define SSL_CTX_set_dh_auto(ctx, onoff) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_DH_AUTO,onoff,NULL)\n# define SSL_set_dh_auto(s, onoff) \\\n        SSL_ctrl(s,SSL_CTRL_SET_DH_AUTO,onoff,NULL)\n# define SSL_set_tmp_dh(ssl,dh) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TMP_DH,0,(char *)(dh))\n# define SSL_set_tmp_ecdh(ssl,ecdh) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TMP_ECDH,0,(char *)(ecdh))\n# define SSL_CTX_add_extra_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)(x509))\n# define SSL_CTX_get_extra_chain_certs(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,0,px509)\n# define SSL_CTX_get_extra_chain_certs_only(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_EXTRA_CHAIN_CERTS,1,px509)\n# define SSL_CTX_clear_extra_chain_certs(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CLEAR_EXTRA_CHAIN_CERTS,0,NULL)\n# define SSL_CTX_set0_chain(ctx,sk) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,0,(char *)(sk))\n# define SSL_CTX_set1_chain(ctx,sk) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN,1,(char *)(sk))\n# define SSL_CTX_add0_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))\n# define SSL_CTX_add1_chain_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))\n# define SSL_CTX_get0_chain_certs(ctx,px509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_CHAIN_CERTS,0,px509)\n# define SSL_CTX_clear_chain_certs(ctx) \\\n        SSL_CTX_set0_chain(ctx,NULL)\n# define SSL_CTX_build_cert_chain(ctx, flags) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)\n# define SSL_CTX_select_current_cert(ctx,x509) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))\n# define SSL_CTX_set_current_cert(ctx, op) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CURRENT_CERT, op, NULL)\n# define SSL_CTX_set0_verify_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))\n# define SSL_CTX_set1_verify_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))\n# define SSL_CTX_set0_chain_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))\n# define SSL_CTX_set1_chain_cert_store(ctx,st) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))\n# define SSL_set0_chain(s,sk) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN,0,(char *)(sk))\n# define SSL_set1_chain(s,sk) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN,1,(char *)(sk))\n# define SSL_add0_chain_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,0,(char *)(x509))\n# define SSL_add1_chain_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_CHAIN_CERT,1,(char *)(x509))\n# define SSL_get0_chain_certs(s,px509) \\\n        SSL_ctrl(s,SSL_CTRL_GET_CHAIN_CERTS,0,px509)\n# define SSL_clear_chain_certs(s) \\\n        SSL_set0_chain(s,NULL)\n# define SSL_build_cert_chain(s, flags) \\\n        SSL_ctrl(s,SSL_CTRL_BUILD_CERT_CHAIN, flags, NULL)\n# define SSL_select_current_cert(s,x509) \\\n        SSL_ctrl(s,SSL_CTRL_SELECT_CURRENT_CERT,0,(char *)(x509))\n# define SSL_set_current_cert(s,op) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CURRENT_CERT, op, NULL)\n# define SSL_set0_verify_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,0,(char *)(st))\n# define SSL_set1_verify_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_VERIFY_CERT_STORE,1,(char *)(st))\n# define SSL_set0_chain_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,0,(char *)(st))\n# define SSL_set1_chain_cert_store(s,st) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CHAIN_CERT_STORE,1,(char *)(st))\n# define SSL_get1_groups(s, glist) \\\n        SSL_ctrl(s,SSL_CTRL_GET_GROUPS,0,(int*)(glist))\n# define SSL_CTX_set1_groups(ctx, glist, glistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS,glistlen,(int *)(glist))\n# define SSL_CTX_set1_groups_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(s))\n# define SSL_set1_groups(s, glist, glistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_GROUPS,glistlen,(char *)(glist))\n# define SSL_set1_groups_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_GROUPS_LIST,0,(char *)(str))\n# define SSL_get_shared_group(s, n) \\\n        SSL_ctrl(s,SSL_CTRL_GET_SHARED_GROUP,n,NULL)\n# define SSL_CTX_set1_sigalgs(ctx, slist, slistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))\n# define SSL_CTX_set1_sigalgs_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(s))\n# define SSL_set1_sigalgs(s, slist, slistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_SIGALGS,slistlen,(int *)(slist))\n# define SSL_set1_sigalgs_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_SIGALGS_LIST,0,(char *)(str))\n# define SSL_CTX_set1_client_sigalgs(ctx, slist, slistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))\n# define SSL_CTX_set1_client_sigalgs_list(ctx, s) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(s))\n# define SSL_set1_client_sigalgs(s, slist, slistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS,slistlen,(int *)(slist))\n# define SSL_set1_client_sigalgs_list(s, str) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_SIGALGS_LIST,0,(char *)(str))\n# define SSL_get0_certificate_types(s, clist) \\\n        SSL_ctrl(s, SSL_CTRL_GET_CLIENT_CERT_TYPES, 0, (char *)(clist))\n# define SSL_CTX_set1_client_certificate_types(ctx, clist, clistlen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen, \\\n                     (char *)(clist))\n# define SSL_set1_client_certificate_types(s, clist, clistlen) \\\n        SSL_ctrl(s,SSL_CTRL_SET_CLIENT_CERT_TYPES,clistlen,(char *)(clist))\n# define SSL_get_signature_nid(s, pn) \\\n        SSL_ctrl(s,SSL_CTRL_GET_SIGNATURE_NID,0,pn)\n# define SSL_get_peer_signature_nid(s, pn) \\\n        SSL_ctrl(s,SSL_CTRL_GET_PEER_SIGNATURE_NID,0,pn)\n# define SSL_get_peer_tmp_key(s, pk) \\\n        SSL_ctrl(s,SSL_CTRL_GET_PEER_TMP_KEY,0,pk)\n# define SSL_get_tmp_key(s, pk) \\\n        SSL_ctrl(s,SSL_CTRL_GET_TMP_KEY,0,pk)\n# define SSL_get0_raw_cipherlist(s, plst) \\\n        SSL_ctrl(s,SSL_CTRL_GET_RAW_CIPHERLIST,0,plst)\n# define SSL_get0_ec_point_formats(s, plst) \\\n        SSL_ctrl(s,SSL_CTRL_GET_EC_POINT_FORMATS,0,plst)\n# define SSL_CTX_set_min_proto_version(ctx, version) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)\n# define SSL_CTX_set_max_proto_version(ctx, version) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)\n# define SSL_CTX_get_min_proto_version(ctx) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)\n# define SSL_CTX_get_max_proto_version(ctx) \\\n        SSL_CTX_ctrl(ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)\n# define SSL_set_min_proto_version(s, version) \\\n        SSL_ctrl(s, SSL_CTRL_SET_MIN_PROTO_VERSION, version, NULL)\n# define SSL_set_max_proto_version(s, version) \\\n        SSL_ctrl(s, SSL_CTRL_SET_MAX_PROTO_VERSION, version, NULL)\n# define SSL_get_min_proto_version(s) \\\n        SSL_ctrl(s, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL)\n# define SSL_get_max_proto_version(s) \\\n        SSL_ctrl(s, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL)\n\n/* Backwards compatibility, original 1.1.0 names */\n# define SSL_CTRL_GET_SERVER_TMP_KEY \\\n         SSL_CTRL_GET_PEER_TMP_KEY\n# define SSL_get_server_tmp_key(s, pk) \\\n         SSL_get_peer_tmp_key(s, pk)\n\n/*\n * The following symbol names are old and obsolete. They are kept\n * for compatibility reasons only and should not be used anymore.\n */\n# define SSL_CTRL_GET_CURVES           SSL_CTRL_GET_GROUPS\n# define SSL_CTRL_SET_CURVES           SSL_CTRL_SET_GROUPS\n# define SSL_CTRL_SET_CURVES_LIST      SSL_CTRL_SET_GROUPS_LIST\n# define SSL_CTRL_GET_SHARED_CURVE     SSL_CTRL_GET_SHARED_GROUP\n\n# define SSL_get1_curves               SSL_get1_groups\n# define SSL_CTX_set1_curves           SSL_CTX_set1_groups\n# define SSL_CTX_set1_curves_list      SSL_CTX_set1_groups_list\n# define SSL_set1_curves               SSL_set1_groups\n# define SSL_set1_curves_list          SSL_set1_groups_list\n# define SSL_get_shared_curve          SSL_get_shared_group\n\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n/* Provide some compatibility macros for removed functionality. */\n#  define SSL_CTX_need_tmp_RSA(ctx)                0\n#  define SSL_CTX_set_tmp_rsa(ctx,rsa)             1\n#  define SSL_need_tmp_RSA(ssl)                    0\n#  define SSL_set_tmp_rsa(ssl,rsa)                 1\n#  define SSL_CTX_set_ecdh_auto(dummy, onoff)      ((onoff) != 0)\n#  define SSL_set_ecdh_auto(dummy, onoff)          ((onoff) != 0)\n/*\n * We \"pretend\" to call the callback to avoid warnings about unused static\n * functions.\n */\n#  define SSL_CTX_set_tmp_rsa_callback(ctx, cb)    while(0) (cb)(NULL, 0, 0)\n#  define SSL_set_tmp_rsa_callback(ssl, cb)        while(0) (cb)(NULL, 0, 0)\n# endif\n__owur const BIO_METHOD *BIO_f_ssl(void);\n__owur BIO *BIO_new_ssl(SSL_CTX *ctx, int client);\n__owur BIO *BIO_new_ssl_connect(SSL_CTX *ctx);\n__owur BIO *BIO_new_buffer_ssl_connect(SSL_CTX *ctx);\n__owur int BIO_ssl_copy_session_id(BIO *to, BIO *from);\nvoid BIO_ssl_shutdown(BIO *ssl_bio);\n\n__owur int SSL_CTX_set_cipher_list(SSL_CTX *, const char *str);\n__owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth);\nint SSL_CTX_up_ref(SSL_CTX *ctx);\nvoid SSL_CTX_free(SSL_CTX *);\n__owur long SSL_CTX_set_timeout(SSL_CTX *ctx, long t);\n__owur long SSL_CTX_get_timeout(const SSL_CTX *ctx);\n__owur X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *);\nvoid SSL_CTX_set_cert_store(SSL_CTX *, X509_STORE *);\nvoid SSL_CTX_set1_cert_store(SSL_CTX *, X509_STORE *);\n__owur int SSL_want(const SSL *s);\n__owur int SSL_clear(SSL *s);\n\nvoid SSL_CTX_flush_sessions(SSL_CTX *ctx, long tm);\n\n__owur const SSL_CIPHER *SSL_get_current_cipher(const SSL *s);\n__owur const SSL_CIPHER *SSL_get_pending_cipher(const SSL *s);\n__owur int SSL_CIPHER_get_bits(const SSL_CIPHER *c, int *alg_bits);\n__owur const char *SSL_CIPHER_get_version(const SSL_CIPHER *c);\n__owur const char *SSL_CIPHER_get_name(const SSL_CIPHER *c);\n__owur const char *SSL_CIPHER_standard_name(const SSL_CIPHER *c);\n__owur const char *OPENSSL_cipher_name(const char *rfc_name);\n__owur uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c);\n__owur uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_get_kx_nid(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_get_auth_nid(const SSL_CIPHER *c);\n__owur const EVP_MD *SSL_CIPHER_get_handshake_digest(const SSL_CIPHER *c);\n__owur int SSL_CIPHER_is_aead(const SSL_CIPHER *c);\n\n__owur int SSL_get_fd(const SSL *s);\n__owur int SSL_get_rfd(const SSL *s);\n__owur int SSL_get_wfd(const SSL *s);\n__owur const char *SSL_get_cipher_list(const SSL *s, int n);\n__owur char *SSL_get_shared_ciphers(const SSL *s, char *buf, int size);\n__owur int SSL_get_read_ahead(const SSL *s);\n__owur int SSL_pending(const SSL *s);\n__owur int SSL_has_pending(const SSL *s);\n# ifndef OPENSSL_NO_SOCK\n__owur int SSL_set_fd(SSL *s, int fd);\n__owur int SSL_set_rfd(SSL *s, int fd);\n__owur int SSL_set_wfd(SSL *s, int fd);\n# endif\nvoid SSL_set0_rbio(SSL *s, BIO *rbio);\nvoid SSL_set0_wbio(SSL *s, BIO *wbio);\nvoid SSL_set_bio(SSL *s, BIO *rbio, BIO *wbio);\n__owur BIO *SSL_get_rbio(const SSL *s);\n__owur BIO *SSL_get_wbio(const SSL *s);\n__owur int SSL_set_cipher_list(SSL *s, const char *str);\n__owur int SSL_CTX_set_ciphersuites(SSL_CTX *ctx, const char *str);\n__owur int SSL_set_ciphersuites(SSL *s, const char *str);\nvoid SSL_set_read_ahead(SSL *s, int yes);\n__owur int SSL_get_verify_mode(const SSL *s);\n__owur int SSL_get_verify_depth(const SSL *s);\n__owur SSL_verify_cb SSL_get_verify_callback(const SSL *s);\nvoid SSL_set_verify(SSL *s, int mode, SSL_verify_cb callback);\nvoid SSL_set_verify_depth(SSL *s, int depth);\nvoid SSL_set_cert_cb(SSL *s, int (*cb) (SSL *ssl, void *arg), void *arg);\n# ifndef OPENSSL_NO_RSA\n__owur int SSL_use_RSAPrivateKey(SSL *ssl, RSA *rsa);\n__owur int SSL_use_RSAPrivateKey_ASN1(SSL *ssl, const unsigned char *d,\n                                      long len);\n# endif\n__owur int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey);\n__owur int SSL_use_PrivateKey_ASN1(int pk, SSL *ssl, const unsigned char *d,\n                                   long len);\n__owur int SSL_use_certificate(SSL *ssl, X509 *x);\n__owur int SSL_use_certificate_ASN1(SSL *ssl, const unsigned char *d, int len);\n__owur int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey,\n                                STACK_OF(X509) *chain, int override);\n\n\n/* serverinfo file format versions */\n# define SSL_SERVERINFOV1   1\n# define SSL_SERVERINFOV2   2\n\n/* Set serverinfo data for the current active cert. */\n__owur int SSL_CTX_use_serverinfo(SSL_CTX *ctx, const unsigned char *serverinfo,\n                                  size_t serverinfo_length);\n__owur int SSL_CTX_use_serverinfo_ex(SSL_CTX *ctx, unsigned int version,\n                                     const unsigned char *serverinfo,\n                                     size_t serverinfo_length);\n__owur int SSL_CTX_use_serverinfo_file(SSL_CTX *ctx, const char *file);\n\n#ifndef OPENSSL_NO_RSA\n__owur int SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type);\n#endif\n\n__owur int SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type);\n__owur int SSL_use_certificate_file(SSL *ssl, const char *file, int type);\n\n#ifndef OPENSSL_NO_RSA\n__owur int SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file,\n                                          int type);\n#endif\n__owur int SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file,\n                                       int type);\n__owur int SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file,\n                                        int type);\n/* PEM type */\n__owur int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file);\n__owur int SSL_use_certificate_chain_file(SSL *ssl, const char *file);\n__owur STACK_OF(X509_NAME) *SSL_load_client_CA_file(const char *file);\n__owur int SSL_add_file_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,\n                                               const char *file);\nint SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stackCAs,\n                                       const char *dir);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_load_error_strings() \\\n    OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS \\\n                     | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL)\n# endif\n\n__owur const char *SSL_state_string(const SSL *s);\n__owur const char *SSL_rstate_string(const SSL *s);\n__owur const char *SSL_state_string_long(const SSL *s);\n__owur const char *SSL_rstate_string_long(const SSL *s);\n__owur long SSL_SESSION_get_time(const SSL_SESSION *s);\n__owur long SSL_SESSION_set_time(SSL_SESSION *s, long t);\n__owur long SSL_SESSION_get_timeout(const SSL_SESSION *s);\n__owur long SSL_SESSION_set_timeout(SSL_SESSION *s, long t);\n__owur int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_protocol_version(SSL_SESSION *s, int version);\n\n__owur const char *SSL_SESSION_get0_hostname(const SSL_SESSION *s);\n__owur int SSL_SESSION_set1_hostname(SSL_SESSION *s, const char *hostname);\nvoid SSL_SESSION_get0_alpn_selected(const SSL_SESSION *s,\n                                    const unsigned char **alpn,\n                                    size_t *len);\n__owur int SSL_SESSION_set1_alpn_selected(SSL_SESSION *s,\n                                          const unsigned char *alpn,\n                                          size_t len);\n__owur const SSL_CIPHER *SSL_SESSION_get0_cipher(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_cipher(SSL_SESSION *s, const SSL_CIPHER *cipher);\n__owur int SSL_SESSION_has_ticket(const SSL_SESSION *s);\n__owur unsigned long SSL_SESSION_get_ticket_lifetime_hint(const SSL_SESSION *s);\nvoid SSL_SESSION_get0_ticket(const SSL_SESSION *s, const unsigned char **tick,\n                             size_t *len);\n__owur uint32_t SSL_SESSION_get_max_early_data(const SSL_SESSION *s);\n__owur int SSL_SESSION_set_max_early_data(SSL_SESSION *s,\n                                          uint32_t max_early_data);\n__owur int SSL_copy_session_id(SSL *to, const SSL *from);\n__owur X509 *SSL_SESSION_get0_peer(SSL_SESSION *s);\n__owur int SSL_SESSION_set1_id_context(SSL_SESSION *s,\n                                       const unsigned char *sid_ctx,\n                                       unsigned int sid_ctx_len);\n__owur int SSL_SESSION_set1_id(SSL_SESSION *s, const unsigned char *sid,\n                               unsigned int sid_len);\n__owur int SSL_SESSION_is_resumable(const SSL_SESSION *s);\n\n__owur SSL_SESSION *SSL_SESSION_new(void);\n__owur SSL_SESSION *SSL_SESSION_dup(SSL_SESSION *src);\nconst unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,\n                                        unsigned int *len);\nconst unsigned char *SSL_SESSION_get0_id_context(const SSL_SESSION *s,\n                                                 unsigned int *len);\n__owur unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);\n# ifndef OPENSSL_NO_STDIO\nint SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);\n# endif\nint SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses);\nint SSL_SESSION_print_keylog(BIO *bp, const SSL_SESSION *x);\nint SSL_SESSION_up_ref(SSL_SESSION *ses);\nvoid SSL_SESSION_free(SSL_SESSION *ses);\n__owur int i2d_SSL_SESSION(SSL_SESSION *in, unsigned char **pp);\n__owur int SSL_set_session(SSL *to, SSL_SESSION *session);\nint SSL_CTX_add_session(SSL_CTX *ctx, SSL_SESSION *session);\nint SSL_CTX_remove_session(SSL_CTX *ctx, SSL_SESSION *session);\n__owur int SSL_CTX_set_generate_session_id(SSL_CTX *ctx, GEN_SESSION_CB cb);\n__owur int SSL_set_generate_session_id(SSL *s, GEN_SESSION_CB cb);\n__owur int SSL_has_matching_session_id(const SSL *s,\n                                       const unsigned char *id,\n                                       unsigned int id_len);\nSSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp,\n                             long length);\n\n# ifdef HEADER_X509_H\n__owur X509 *SSL_get_peer_certificate(const SSL *s);\n# endif\n\n__owur STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s);\n\n__owur int SSL_CTX_get_verify_mode(const SSL_CTX *ctx);\n__owur int SSL_CTX_get_verify_depth(const SSL_CTX *ctx);\n__owur SSL_verify_cb SSL_CTX_get_verify_callback(const SSL_CTX *ctx);\nvoid SSL_CTX_set_verify(SSL_CTX *ctx, int mode, SSL_verify_cb callback);\nvoid SSL_CTX_set_verify_depth(SSL_CTX *ctx, int depth);\nvoid SSL_CTX_set_cert_verify_callback(SSL_CTX *ctx,\n                                      int (*cb) (X509_STORE_CTX *, void *),\n                                      void *arg);\nvoid SSL_CTX_set_cert_cb(SSL_CTX *c, int (*cb) (SSL *ssl, void *arg),\n                         void *arg);\n# ifndef OPENSSL_NO_RSA\n__owur int SSL_CTX_use_RSAPrivateKey(SSL_CTX *ctx, RSA *rsa);\n__owur int SSL_CTX_use_RSAPrivateKey_ASN1(SSL_CTX *ctx, const unsigned char *d,\n                                          long len);\n# endif\n__owur int SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey);\n__owur int SSL_CTX_use_PrivateKey_ASN1(int pk, SSL_CTX *ctx,\n                                       const unsigned char *d, long len);\n__owur int SSL_CTX_use_certificate(SSL_CTX *ctx, X509 *x);\n__owur int SSL_CTX_use_certificate_ASN1(SSL_CTX *ctx, int len,\n                                        const unsigned char *d);\n__owur int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey,\n                                    STACK_OF(X509) *chain, int override);\n\nvoid SSL_CTX_set_default_passwd_cb(SSL_CTX *ctx, pem_password_cb *cb);\nvoid SSL_CTX_set_default_passwd_cb_userdata(SSL_CTX *ctx, void *u);\npem_password_cb *SSL_CTX_get_default_passwd_cb(SSL_CTX *ctx);\nvoid *SSL_CTX_get_default_passwd_cb_userdata(SSL_CTX *ctx);\nvoid SSL_set_default_passwd_cb(SSL *s, pem_password_cb *cb);\nvoid SSL_set_default_passwd_cb_userdata(SSL *s, void *u);\npem_password_cb *SSL_get_default_passwd_cb(SSL *s);\nvoid *SSL_get_default_passwd_cb_userdata(SSL *s);\n\n__owur int SSL_CTX_check_private_key(const SSL_CTX *ctx);\n__owur int SSL_check_private_key(const SSL *ctx);\n\n__owur int SSL_CTX_set_session_id_context(SSL_CTX *ctx,\n                                          const unsigned char *sid_ctx,\n                                          unsigned int sid_ctx_len);\n\nSSL *SSL_new(SSL_CTX *ctx);\nint SSL_up_ref(SSL *s);\nint SSL_is_dtls(const SSL *s);\n__owur int SSL_set_session_id_context(SSL *ssl, const unsigned char *sid_ctx,\n                                      unsigned int sid_ctx_len);\n\n__owur int SSL_CTX_set_purpose(SSL_CTX *ctx, int purpose);\n__owur int SSL_set_purpose(SSL *ssl, int purpose);\n__owur int SSL_CTX_set_trust(SSL_CTX *ctx, int trust);\n__owur int SSL_set_trust(SSL *ssl, int trust);\n\n__owur int SSL_set1_host(SSL *s, const char *hostname);\n__owur int SSL_add1_host(SSL *s, const char *hostname);\n__owur const char *SSL_get0_peername(SSL *s);\nvoid SSL_set_hostflags(SSL *s, unsigned int flags);\n\n__owur int SSL_CTX_dane_enable(SSL_CTX *ctx);\n__owur int SSL_CTX_dane_mtype_set(SSL_CTX *ctx, const EVP_MD *md,\n                                  uint8_t mtype, uint8_t ord);\n__owur int SSL_dane_enable(SSL *s, const char *basedomain);\n__owur int SSL_dane_tlsa_add(SSL *s, uint8_t usage, uint8_t selector,\n                             uint8_t mtype, unsigned const char *data, size_t dlen);\n__owur int SSL_get0_dane_authority(SSL *s, X509 **mcert, EVP_PKEY **mspki);\n__owur int SSL_get0_dane_tlsa(SSL *s, uint8_t *usage, uint8_t *selector,\n                              uint8_t *mtype, unsigned const char **data,\n                              size_t *dlen);\n/*\n * Bridge opacity barrier between libcrypt and libssl, also needed to support\n * offline testing in test/danetest.c\n */\nSSL_DANE *SSL_get0_dane(SSL *ssl);\n/*\n * DANE flags\n */\nunsigned long SSL_CTX_dane_set_flags(SSL_CTX *ctx, unsigned long flags);\nunsigned long SSL_CTX_dane_clear_flags(SSL_CTX *ctx, unsigned long flags);\nunsigned long SSL_dane_set_flags(SSL *ssl, unsigned long flags);\nunsigned long SSL_dane_clear_flags(SSL *ssl, unsigned long flags);\n\n__owur int SSL_CTX_set1_param(SSL_CTX *ctx, X509_VERIFY_PARAM *vpm);\n__owur int SSL_set1_param(SSL *ssl, X509_VERIFY_PARAM *vpm);\n\n__owur X509_VERIFY_PARAM *SSL_CTX_get0_param(SSL_CTX *ctx);\n__owur X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl);\n\n# ifndef OPENSSL_NO_SRP\nint SSL_CTX_set_srp_username(SSL_CTX *ctx, char *name);\nint SSL_CTX_set_srp_password(SSL_CTX *ctx, char *password);\nint SSL_CTX_set_srp_strength(SSL_CTX *ctx, int strength);\nint SSL_CTX_set_srp_client_pwd_callback(SSL_CTX *ctx,\n                                        char *(*cb) (SSL *, void *));\nint SSL_CTX_set_srp_verify_param_callback(SSL_CTX *ctx,\n                                          int (*cb) (SSL *, void *));\nint SSL_CTX_set_srp_username_callback(SSL_CTX *ctx,\n                                      int (*cb) (SSL *, int *, void *));\nint SSL_CTX_set_srp_cb_arg(SSL_CTX *ctx, void *arg);\n\nint SSL_set_srp_server_param(SSL *s, const BIGNUM *N, const BIGNUM *g,\n                             BIGNUM *sa, BIGNUM *v, char *info);\nint SSL_set_srp_server_param_pw(SSL *s, const char *user, const char *pass,\n                                const char *grp);\n\n__owur BIGNUM *SSL_get_srp_g(SSL *s);\n__owur BIGNUM *SSL_get_srp_N(SSL *s);\n\n__owur char *SSL_get_srp_username(SSL *s);\n__owur char *SSL_get_srp_userinfo(SSL *s);\n# endif\n\n/*\n * ClientHello callback and helpers.\n */\n\n# define SSL_CLIENT_HELLO_SUCCESS 1\n# define SSL_CLIENT_HELLO_ERROR   0\n# define SSL_CLIENT_HELLO_RETRY   (-1)\n\ntypedef int (*SSL_client_hello_cb_fn) (SSL *s, int *al, void *arg);\nvoid SSL_CTX_set_client_hello_cb(SSL_CTX *c, SSL_client_hello_cb_fn cb,\n                                 void *arg);\nint SSL_client_hello_isv2(SSL *s);\nunsigned int SSL_client_hello_get0_legacy_version(SSL *s);\nsize_t SSL_client_hello_get0_random(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_session_id(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_ciphers(SSL *s, const unsigned char **out);\nsize_t SSL_client_hello_get0_compression_methods(SSL *s,\n                                                 const unsigned char **out);\nint SSL_client_hello_get1_extensions_present(SSL *s, int **out, size_t *outlen);\nint SSL_client_hello_get0_ext(SSL *s, unsigned int type,\n                              const unsigned char **out, size_t *outlen);\n\nvoid SSL_certs_clear(SSL *s);\nvoid SSL_free(SSL *ssl);\n# ifdef OSSL_ASYNC_FD\n/*\n * Windows application developer has to include windows.h to use these.\n */\n__owur int SSL_waiting_for_async(SSL *s);\n__owur int SSL_get_all_async_fds(SSL *s, OSSL_ASYNC_FD *fds, size_t *numfds);\n__owur int SSL_get_changed_async_fds(SSL *s, OSSL_ASYNC_FD *addfd,\n                                     size_t *numaddfds, OSSL_ASYNC_FD *delfd,\n                                     size_t *numdelfds);\n# endif\n__owur int SSL_accept(SSL *ssl);\n__owur int SSL_stateless(SSL *s);\n__owur int SSL_connect(SSL *ssl);\n__owur int SSL_read(SSL *ssl, void *buf, int num);\n__owur int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n\n# define SSL_READ_EARLY_DATA_ERROR   0\n# define SSL_READ_EARLY_DATA_SUCCESS 1\n# define SSL_READ_EARLY_DATA_FINISH  2\n\n__owur int SSL_read_early_data(SSL *s, void *buf, size_t num,\n                               size_t *readbytes);\n__owur int SSL_peek(SSL *ssl, void *buf, int num);\n__owur int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *readbytes);\n__owur int SSL_write(SSL *ssl, const void *buf, int num);\n__owur int SSL_write_ex(SSL *s, const void *buf, size_t num, size_t *written);\n__owur int SSL_write_early_data(SSL *s, const void *buf, size_t num,\n                                size_t *written);\nlong SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);\nlong SSL_callback_ctrl(SSL *, int, void (*)(void));\nlong SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);\nlong SSL_CTX_callback_ctrl(SSL_CTX *, int, void (*)(void));\n\n# define SSL_EARLY_DATA_NOT_SENT    0\n# define SSL_EARLY_DATA_REJECTED    1\n# define SSL_EARLY_DATA_ACCEPTED    2\n\n__owur int SSL_get_early_data_status(const SSL *s);\n\n__owur int SSL_get_error(const SSL *s, int ret_code);\n__owur const char *SSL_get_version(const SSL *s);\n\n/* This sets the 'default' SSL version that SSL_new() will create */\n__owur int SSL_CTX_set_ssl_version(SSL_CTX *ctx, const SSL_METHOD *meth);\n\n# ifndef OPENSSL_NO_SSL3_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void))\n# endif\n\n#define SSLv23_method           TLS_method\n#define SSLv23_server_method    TLS_server_method\n#define SSLv23_client_method    TLS_client_method\n\n/* Negotiate highest available SSL/TLS version */\n__owur const SSL_METHOD *TLS_method(void);\n__owur const SSL_METHOD *TLS_server_method(void);\n__owur const SSL_METHOD *TLS_client_method(void);\n\n# ifndef OPENSSL_NO_TLS1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_TLS1_1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_TLS1_2_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_DTLS1_METHOD\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_client_method(void))\n# endif\n\n# ifndef OPENSSL_NO_DTLS1_2_METHOD\n/* DTLSv1.2 */\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_server_method(void))\nDEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_2_client_method(void))\n# endif\n\n__owur const SSL_METHOD *DTLS_method(void); /* DTLS 1.0 and 1.2 */\n__owur const SSL_METHOD *DTLS_server_method(void); /* DTLS 1.0 and 1.2 */\n__owur const SSL_METHOD *DTLS_client_method(void); /* DTLS 1.0 and 1.2 */\n\n__owur size_t DTLS_get_data_mtu(const SSL *s);\n\n__owur STACK_OF(SSL_CIPHER) *SSL_get_ciphers(const SSL *s);\n__owur STACK_OF(SSL_CIPHER) *SSL_CTX_get_ciphers(const SSL_CTX *ctx);\n__owur STACK_OF(SSL_CIPHER) *SSL_get_client_ciphers(const SSL *s);\n__owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);\n\n__owur int SSL_do_handshake(SSL *s);\nint SSL_key_update(SSL *s, int updatetype);\nint SSL_get_key_update_type(const SSL *s);\nint SSL_renegotiate(SSL *s);\nint SSL_renegotiate_abbreviated(SSL *s);\n__owur int SSL_renegotiate_pending(const SSL *s);\nint SSL_shutdown(SSL *s);\n__owur int SSL_verify_client_post_handshake(SSL *s);\nvoid SSL_CTX_set_post_handshake_auth(SSL_CTX *ctx, int val);\nvoid SSL_set_post_handshake_auth(SSL *s, int val);\n\n__owur const SSL_METHOD *SSL_CTX_get_ssl_method(const SSL_CTX *ctx);\n__owur const SSL_METHOD *SSL_get_ssl_method(const SSL *s);\n__owur int SSL_set_ssl_method(SSL *s, const SSL_METHOD *method);\n__owur const char *SSL_alert_type_string_long(int value);\n__owur const char *SSL_alert_type_string(int value);\n__owur const char *SSL_alert_desc_string_long(int value);\n__owur const char *SSL_alert_desc_string(int value);\n\nvoid SSL_set0_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);\nvoid SSL_CTX_set0_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);\n__owur const STACK_OF(X509_NAME) *SSL_get0_CA_list(const SSL *s);\n__owur const STACK_OF(X509_NAME) *SSL_CTX_get0_CA_list(const SSL_CTX *ctx);\n__owur int SSL_add1_to_CA_list(SSL *ssl, const X509 *x);\n__owur int SSL_CTX_add1_to_CA_list(SSL_CTX *ctx, const X509 *x);\n__owur const STACK_OF(X509_NAME) *SSL_get0_peer_CA_list(const SSL *s);\n\nvoid SSL_set_client_CA_list(SSL *s, STACK_OF(X509_NAME) *name_list);\nvoid SSL_CTX_set_client_CA_list(SSL_CTX *ctx, STACK_OF(X509_NAME) *name_list);\n__owur STACK_OF(X509_NAME) *SSL_get_client_CA_list(const SSL *s);\n__owur STACK_OF(X509_NAME) *SSL_CTX_get_client_CA_list(const SSL_CTX *s);\n__owur int SSL_add_client_CA(SSL *ssl, X509 *x);\n__owur int SSL_CTX_add_client_CA(SSL_CTX *ctx, X509 *x);\n\nvoid SSL_set_connect_state(SSL *s);\nvoid SSL_set_accept_state(SSL *s);\n\n__owur long SSL_get_default_timeout(const SSL *s);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_library_init() OPENSSL_init_ssl(0, NULL)\n# endif\n\n__owur char *SSL_CIPHER_description(const SSL_CIPHER *, char *buf, int size);\n__owur STACK_OF(X509_NAME) *SSL_dup_CA_list(const STACK_OF(X509_NAME) *sk);\n\n__owur SSL *SSL_dup(SSL *ssl);\n\n__owur X509 *SSL_get_certificate(const SSL *ssl);\n/*\n * EVP_PKEY\n */\nstruct evp_pkey_st *SSL_get_privatekey(const SSL *ssl);\n\n__owur X509 *SSL_CTX_get0_certificate(const SSL_CTX *ctx);\n__owur EVP_PKEY *SSL_CTX_get0_privatekey(const SSL_CTX *ctx);\n\nvoid SSL_CTX_set_quiet_shutdown(SSL_CTX *ctx, int mode);\n__owur int SSL_CTX_get_quiet_shutdown(const SSL_CTX *ctx);\nvoid SSL_set_quiet_shutdown(SSL *ssl, int mode);\n__owur int SSL_get_quiet_shutdown(const SSL *ssl);\nvoid SSL_set_shutdown(SSL *ssl, int mode);\n__owur int SSL_get_shutdown(const SSL *ssl);\n__owur int SSL_version(const SSL *ssl);\n__owur int SSL_client_version(const SSL *s);\n__owur int SSL_CTX_set_default_verify_paths(SSL_CTX *ctx);\n__owur int SSL_CTX_set_default_verify_dir(SSL_CTX *ctx);\n__owur int SSL_CTX_set_default_verify_file(SSL_CTX *ctx);\n__owur int SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile,\n                                         const char *CApath);\n# define SSL_get0_session SSL_get_session/* just peek at pointer */\n__owur SSL_SESSION *SSL_get_session(const SSL *ssl);\n__owur SSL_SESSION *SSL_get1_session(SSL *ssl); /* obtain a reference count */\n__owur SSL_CTX *SSL_get_SSL_CTX(const SSL *ssl);\nSSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx);\nvoid SSL_set_info_callback(SSL *ssl,\n                           void (*cb) (const SSL *ssl, int type, int val));\nvoid (*SSL_get_info_callback(const SSL *ssl)) (const SSL *ssl, int type,\n                                               int val);\n__owur OSSL_HANDSHAKE_STATE SSL_get_state(const SSL *ssl);\n\nvoid SSL_set_verify_result(SSL *ssl, long v);\n__owur long SSL_get_verify_result(const SSL *ssl);\n__owur STACK_OF(X509) *SSL_get0_verified_chain(const SSL *s);\n\n__owur size_t SSL_get_client_random(const SSL *ssl, unsigned char *out,\n                                    size_t outlen);\n__owur size_t SSL_get_server_random(const SSL *ssl, unsigned char *out,\n                                    size_t outlen);\n__owur size_t SSL_SESSION_get_master_key(const SSL_SESSION *sess,\n                                         unsigned char *out, size_t outlen);\n__owur int SSL_SESSION_set1_master_key(SSL_SESSION *sess,\n                                       const unsigned char *in, size_t len);\nuint8_t SSL_SESSION_get_max_fragment_length(const SSL_SESSION *sess);\n\n#define SSL_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, l, p, newf, dupf, freef)\n__owur int SSL_set_ex_data(SSL *ssl, int idx, void *data);\nvoid *SSL_get_ex_data(const SSL *ssl, int idx);\n#define SSL_SESSION_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_SESSION, l, p, newf, dupf, freef)\n__owur int SSL_SESSION_set_ex_data(SSL_SESSION *ss, int idx, void *data);\nvoid *SSL_SESSION_get_ex_data(const SSL_SESSION *ss, int idx);\n#define SSL_CTX_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL_CTX, l, p, newf, dupf, freef)\n__owur int SSL_CTX_set_ex_data(SSL_CTX *ssl, int idx, void *data);\nvoid *SSL_CTX_get_ex_data(const SSL_CTX *ssl, int idx);\n\n__owur int SSL_get_ex_data_X509_STORE_CTX_idx(void);\n\n# define SSL_CTX_sess_set_cache_size(ctx,t) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_SIZE,t,NULL)\n# define SSL_CTX_sess_get_cache_size(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_SIZE,0,NULL)\n# define SSL_CTX_set_session_cache_mode(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL)\n# define SSL_CTX_get_session_cache_mode(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL)\n\n# define SSL_CTX_get_default_read_ahead(ctx) SSL_CTX_get_read_ahead(ctx)\n# define SSL_CTX_set_default_read_ahead(ctx,m) SSL_CTX_set_read_ahead(ctx,m)\n# define SSL_CTX_get_read_ahead(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_READ_AHEAD,0,NULL)\n# define SSL_CTX_set_read_ahead(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_READ_AHEAD,m,NULL)\n# define SSL_CTX_get_max_cert_list(ctx) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)\n# define SSL_CTX_set_max_cert_list(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)\n# define SSL_get_max_cert_list(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_MAX_CERT_LIST,0,NULL)\n# define SSL_set_max_cert_list(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_CERT_LIST,m,NULL)\n\n# define SSL_CTX_set_max_send_fragment(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)\n# define SSL_set_max_send_fragment(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_SEND_FRAGMENT,m,NULL)\n# define SSL_CTX_set_split_send_fragment(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)\n# define SSL_set_split_send_fragment(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_SPLIT_SEND_FRAGMENT,m,NULL)\n# define SSL_CTX_set_max_pipelines(ctx,m) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)\n# define SSL_set_max_pipelines(ssl,m) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_MAX_PIPELINES,m,NULL)\n\nvoid SSL_CTX_set_default_read_buffer_len(SSL_CTX *ctx, size_t len);\nvoid SSL_set_default_read_buffer_len(SSL *s, size_t len);\n\n# ifndef OPENSSL_NO_DH\n/* NB: the |keylength| is only applicable when is_export is true */\nvoid SSL_CTX_set_tmp_dh_callback(SSL_CTX *ctx,\n                                 DH *(*dh) (SSL *ssl, int is_export,\n                                            int keylength));\nvoid SSL_set_tmp_dh_callback(SSL *ssl,\n                             DH *(*dh) (SSL *ssl, int is_export,\n                                        int keylength));\n# endif\n\n__owur const COMP_METHOD *SSL_get_current_compression(const SSL *s);\n__owur const COMP_METHOD *SSL_get_current_expansion(const SSL *s);\n__owur const char *SSL_COMP_get_name(const COMP_METHOD *comp);\n__owur const char *SSL_COMP_get0_name(const SSL_COMP *comp);\n__owur int SSL_COMP_get_id(const SSL_COMP *comp);\nSTACK_OF(SSL_COMP) *SSL_COMP_get_compression_methods(void);\n__owur STACK_OF(SSL_COMP) *SSL_COMP_set0_compression_methods(STACK_OF(SSL_COMP)\n                                                             *meths);\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_COMP_free_compression_methods() while(0) continue\n# endif\n__owur int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm);\n\nconst SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr);\nint SSL_CIPHER_get_cipher_nid(const SSL_CIPHER *c);\nint SSL_CIPHER_get_digest_nid(const SSL_CIPHER *c);\nint SSL_bytes_to_cipher_list(SSL *s, const unsigned char *bytes, size_t len,\n                             int isv2format, STACK_OF(SSL_CIPHER) **sk,\n                             STACK_OF(SSL_CIPHER) **scsvs);\n\n/* TLS extensions functions */\n__owur int SSL_set_session_ticket_ext(SSL *s, void *ext_data, int ext_len);\n\n__owur int SSL_set_session_ticket_ext_cb(SSL *s,\n                                         tls_session_ticket_ext_cb_fn cb,\n                                         void *arg);\n\n/* Pre-shared secret session resumption functions */\n__owur int SSL_set_session_secret_cb(SSL *s,\n                                     tls_session_secret_cb_fn session_secret_cb,\n                                     void *arg);\n\nvoid SSL_CTX_set_not_resumable_session_callback(SSL_CTX *ctx,\n                                                int (*cb) (SSL *ssl,\n                                                           int\n                                                           is_forward_secure));\n\nvoid SSL_set_not_resumable_session_callback(SSL *ssl,\n                                            int (*cb) (SSL *ssl,\n                                                       int is_forward_secure));\n\nvoid SSL_CTX_set_record_padding_callback(SSL_CTX *ctx,\n                                         size_t (*cb) (SSL *ssl, int type,\n                                                       size_t len, void *arg));\nvoid SSL_CTX_set_record_padding_callback_arg(SSL_CTX *ctx, void *arg);\nvoid *SSL_CTX_get_record_padding_callback_arg(const SSL_CTX *ctx);\nint SSL_CTX_set_block_padding(SSL_CTX *ctx, size_t block_size);\n\nvoid SSL_set_record_padding_callback(SSL *ssl,\n                                    size_t (*cb) (SSL *ssl, int type,\n                                                  size_t len, void *arg));\nvoid SSL_set_record_padding_callback_arg(SSL *ssl, void *arg);\nvoid *SSL_get_record_padding_callback_arg(const SSL *ssl);\nint SSL_set_block_padding(SSL *ssl, size_t block_size);\n\nint SSL_set_num_tickets(SSL *s, size_t num_tickets);\nsize_t SSL_get_num_tickets(const SSL *s);\nint SSL_CTX_set_num_tickets(SSL_CTX *ctx, size_t num_tickets);\nsize_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define SSL_cache_hit(s) SSL_session_reused(s)\n# endif\n\n__owur int SSL_session_reused(const SSL *s);\n__owur int SSL_is_server(const SSL *s);\n\n__owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);\nint SSL_CONF_CTX_finish(SSL_CONF_CTX *cctx);\nvoid SSL_CONF_CTX_free(SSL_CONF_CTX *cctx);\nunsigned int SSL_CONF_CTX_set_flags(SSL_CONF_CTX *cctx, unsigned int flags);\n__owur unsigned int SSL_CONF_CTX_clear_flags(SSL_CONF_CTX *cctx,\n                                             unsigned int flags);\n__owur int SSL_CONF_CTX_set1_prefix(SSL_CONF_CTX *cctx, const char *pre);\n\nvoid SSL_CONF_CTX_set_ssl(SSL_CONF_CTX *cctx, SSL *ssl);\nvoid SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *cctx, SSL_CTX *ctx);\n\n__owur int SSL_CONF_cmd(SSL_CONF_CTX *cctx, const char *cmd, const char *value);\n__owur int SSL_CONF_cmd_argv(SSL_CONF_CTX *cctx, int *pargc, char ***pargv);\n__owur int SSL_CONF_cmd_value_type(SSL_CONF_CTX *cctx, const char *cmd);\n\nvoid SSL_add_ssl_module(void);\nint SSL_config(SSL *s, const char *name);\nint SSL_CTX_config(SSL_CTX *ctx, const char *name);\n\n# ifndef OPENSSL_NO_SSL_TRACE\nvoid SSL_trace(int write_p, int version, int content_type,\n               const void *buf, size_t len, SSL *ssl, void *arg);\n# endif\n\n# ifndef OPENSSL_NO_SOCK\nint DTLSv1_listen(SSL *s, BIO_ADDR *client);\n# endif\n\n# ifndef OPENSSL_NO_CT\n\n/*\n * A callback for verifying that the received SCTs are sufficient.\n * Expected to return 1 if they are sufficient, otherwise 0.\n * May return a negative integer if an error occurs.\n * A connection should be aborted if the SCTs are deemed insufficient.\n */\ntypedef int (*ssl_ct_validation_cb)(const CT_POLICY_EVAL_CTX *ctx,\n                                    const STACK_OF(SCT) *scts, void *arg);\n\n/*\n * Sets a |callback| that is invoked upon receipt of ServerHelloDone to validate\n * the received SCTs.\n * If the callback returns a non-positive result, the connection is terminated.\n * Call this function before beginning a handshake.\n * If a NULL |callback| is provided, SCT validation is disabled.\n * |arg| is arbitrary userdata that will be passed to the callback whenever it\n * is invoked. Ownership of |arg| remains with the caller.\n *\n * NOTE: A side-effect of setting a CT callback is that an OCSP stapled response\n *       will be requested.\n */\nint SSL_set_ct_validation_callback(SSL *s, ssl_ct_validation_cb callback,\n                                   void *arg);\nint SSL_CTX_set_ct_validation_callback(SSL_CTX *ctx,\n                                       ssl_ct_validation_cb callback,\n                                       void *arg);\n#define SSL_disable_ct(s) \\\n        ((void) SSL_set_validation_callback((s), NULL, NULL))\n#define SSL_CTX_disable_ct(ctx) \\\n        ((void) SSL_CTX_set_validation_callback((ctx), NULL, NULL))\n\n/*\n * The validation type enumerates the available behaviours of the built-in SSL\n * CT validation callback selected via SSL_enable_ct() and SSL_CTX_enable_ct().\n * The underlying callback is a static function in libssl.\n */\nenum {\n    SSL_CT_VALIDATION_PERMISSIVE = 0,\n    SSL_CT_VALIDATION_STRICT\n};\n\n/*\n * Enable CT by setting up a callback that implements one of the built-in\n * validation variants.  The SSL_CT_VALIDATION_PERMISSIVE variant always\n * continues the handshake, the application can make appropriate decisions at\n * handshake completion.  The SSL_CT_VALIDATION_STRICT variant requires at\n * least one valid SCT, or else handshake termination will be requested.  The\n * handshake may continue anyway if SSL_VERIFY_NONE is in effect.\n */\nint SSL_enable_ct(SSL *s, int validation_mode);\nint SSL_CTX_enable_ct(SSL_CTX *ctx, int validation_mode);\n\n/*\n * Report whether a non-NULL callback is enabled.\n */\nint SSL_ct_is_enabled(const SSL *s);\nint SSL_CTX_ct_is_enabled(const SSL_CTX *ctx);\n\n/* Gets the SCTs received from a connection */\nconst STACK_OF(SCT) *SSL_get0_peer_scts(SSL *s);\n\n/*\n * Loads the CT log list from the default location.\n * If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,\n * the log information loaded from this file will be appended to the\n * CTLOG_STORE.\n * Returns 1 on success, 0 otherwise.\n */\nint SSL_CTX_set_default_ctlog_list_file(SSL_CTX *ctx);\n\n/*\n * Loads the CT log list from the specified file path.\n * If a CTLOG_STORE has previously been set using SSL_CTX_set_ctlog_store,\n * the log information loaded from this file will be appended to the\n * CTLOG_STORE.\n * Returns 1 on success, 0 otherwise.\n */\nint SSL_CTX_set_ctlog_list_file(SSL_CTX *ctx, const char *path);\n\n/*\n * Sets the CT log list used by all SSL connections created from this SSL_CTX.\n * Ownership of the CTLOG_STORE is transferred to the SSL_CTX.\n */\nvoid SSL_CTX_set0_ctlog_store(SSL_CTX *ctx, CTLOG_STORE *logs);\n\n/*\n * Gets the CT log list used by all SSL connections created from this SSL_CTX.\n * This will be NULL unless one of the following functions has been called:\n * - SSL_CTX_set_default_ctlog_list_file\n * - SSL_CTX_set_ctlog_list_file\n * - SSL_CTX_set_ctlog_store\n */\nconst CTLOG_STORE *SSL_CTX_get0_ctlog_store(const SSL_CTX *ctx);\n\n# endif /* OPENSSL_NO_CT */\n\n/* What the \"other\" parameter contains in security callback */\n/* Mask for type */\n# define SSL_SECOP_OTHER_TYPE    0xffff0000\n# define SSL_SECOP_OTHER_NONE    0\n# define SSL_SECOP_OTHER_CIPHER  (1 << 16)\n# define SSL_SECOP_OTHER_CURVE   (2 << 16)\n# define SSL_SECOP_OTHER_DH      (3 << 16)\n# define SSL_SECOP_OTHER_PKEY    (4 << 16)\n# define SSL_SECOP_OTHER_SIGALG  (5 << 16)\n# define SSL_SECOP_OTHER_CERT    (6 << 16)\n\n/* Indicated operation refers to peer key or certificate */\n# define SSL_SECOP_PEER          0x1000\n\n/* Values for \"op\" parameter in security callback */\n\n/* Called to filter ciphers */\n/* Ciphers client supports */\n# define SSL_SECOP_CIPHER_SUPPORTED      (1 | SSL_SECOP_OTHER_CIPHER)\n/* Cipher shared by client/server */\n# define SSL_SECOP_CIPHER_SHARED         (2 | SSL_SECOP_OTHER_CIPHER)\n/* Sanity check of cipher server selects */\n# define SSL_SECOP_CIPHER_CHECK          (3 | SSL_SECOP_OTHER_CIPHER)\n/* Curves supported by client */\n# define SSL_SECOP_CURVE_SUPPORTED       (4 | SSL_SECOP_OTHER_CURVE)\n/* Curves shared by client/server */\n# define SSL_SECOP_CURVE_SHARED          (5 | SSL_SECOP_OTHER_CURVE)\n/* Sanity check of curve server selects */\n# define SSL_SECOP_CURVE_CHECK           (6 | SSL_SECOP_OTHER_CURVE)\n/* Temporary DH key */\n# define SSL_SECOP_TMP_DH                (7 | SSL_SECOP_OTHER_PKEY)\n/* SSL/TLS version */\n# define SSL_SECOP_VERSION               (9 | SSL_SECOP_OTHER_NONE)\n/* Session tickets */\n# define SSL_SECOP_TICKET                (10 | SSL_SECOP_OTHER_NONE)\n/* Supported signature algorithms sent to peer */\n# define SSL_SECOP_SIGALG_SUPPORTED      (11 | SSL_SECOP_OTHER_SIGALG)\n/* Shared signature algorithm */\n# define SSL_SECOP_SIGALG_SHARED         (12 | SSL_SECOP_OTHER_SIGALG)\n/* Sanity check signature algorithm allowed */\n# define SSL_SECOP_SIGALG_CHECK          (13 | SSL_SECOP_OTHER_SIGALG)\n/* Used to get mask of supported public key signature algorithms */\n# define SSL_SECOP_SIGALG_MASK           (14 | SSL_SECOP_OTHER_SIGALG)\n/* Use to see if compression is allowed */\n# define SSL_SECOP_COMPRESSION           (15 | SSL_SECOP_OTHER_NONE)\n/* EE key in certificate */\n# define SSL_SECOP_EE_KEY                (16 | SSL_SECOP_OTHER_CERT)\n/* CA key in certificate */\n# define SSL_SECOP_CA_KEY                (17 | SSL_SECOP_OTHER_CERT)\n/* CA digest algorithm in certificate */\n# define SSL_SECOP_CA_MD                 (18 | SSL_SECOP_OTHER_CERT)\n/* Peer EE key in certificate */\n# define SSL_SECOP_PEER_EE_KEY           (SSL_SECOP_EE_KEY | SSL_SECOP_PEER)\n/* Peer CA key in certificate */\n# define SSL_SECOP_PEER_CA_KEY           (SSL_SECOP_CA_KEY | SSL_SECOP_PEER)\n/* Peer CA digest algorithm in certificate */\n# define SSL_SECOP_PEER_CA_MD            (SSL_SECOP_CA_MD | SSL_SECOP_PEER)\n\nvoid SSL_set_security_level(SSL *s, int level);\n__owur int SSL_get_security_level(const SSL *s);\nvoid SSL_set_security_callback(SSL *s,\n                               int (*cb) (const SSL *s, const SSL_CTX *ctx,\n                                          int op, int bits, int nid,\n                                          void *other, void *ex));\nint (*SSL_get_security_callback(const SSL *s)) (const SSL *s,\n                                                const SSL_CTX *ctx, int op,\n                                                int bits, int nid, void *other,\n                                                void *ex);\nvoid SSL_set0_security_ex_data(SSL *s, void *ex);\n__owur void *SSL_get0_security_ex_data(const SSL *s);\n\nvoid SSL_CTX_set_security_level(SSL_CTX *ctx, int level);\n__owur int SSL_CTX_get_security_level(const SSL_CTX *ctx);\nvoid SSL_CTX_set_security_callback(SSL_CTX *ctx,\n                                   int (*cb) (const SSL *s, const SSL_CTX *ctx,\n                                              int op, int bits, int nid,\n                                              void *other, void *ex));\nint (*SSL_CTX_get_security_callback(const SSL_CTX *ctx)) (const SSL *s,\n                                                          const SSL_CTX *ctx,\n                                                          int op, int bits,\n                                                          int nid,\n                                                          void *other,\n                                                          void *ex);\nvoid SSL_CTX_set0_security_ex_data(SSL_CTX *ctx, void *ex);\n__owur void *SSL_CTX_get0_security_ex_data(const SSL_CTX *ctx);\n\n/* OPENSSL_INIT flag 0x010000 reserved for internal use */\n# define OPENSSL_INIT_NO_LOAD_SSL_STRINGS    0x00100000L\n# define OPENSSL_INIT_LOAD_SSL_STRINGS       0x00200000L\n\n# define OPENSSL_INIT_SSL_DEFAULT \\\n        (OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS)\n\nint OPENSSL_init_ssl(uint64_t opts, const OPENSSL_INIT_SETTINGS *settings);\n\n# ifndef OPENSSL_NO_UNIT_TEST\n__owur const struct openssl_ssl_test_functions *SSL_test_functions(void);\n# endif\n\n__owur int SSL_free_buffers(SSL *ssl);\n__owur int SSL_alloc_buffers(SSL *ssl);\n\n/* Status codes passed to the decrypt session ticket callback. Some of these\n * are for internal use only and are never passed to the callback. */\ntypedef int SSL_TICKET_STATUS;\n\n/* Support for ticket appdata */\n/* fatal error, malloc failure */\n# define SSL_TICKET_FATAL_ERR_MALLOC 0\n/* fatal error, either from parsing or decrypting the ticket */\n# define SSL_TICKET_FATAL_ERR_OTHER  1\n/* No ticket present */\n# define SSL_TICKET_NONE             2\n/* Empty ticket present */\n# define SSL_TICKET_EMPTY            3\n/* the ticket couldn't be decrypted */\n# define SSL_TICKET_NO_DECRYPT       4\n/* a ticket was successfully decrypted */\n# define SSL_TICKET_SUCCESS          5\n/* same as above but the ticket needs to be renewed */\n# define SSL_TICKET_SUCCESS_RENEW    6\n\n/* Return codes for the decrypt session ticket callback */\ntypedef int SSL_TICKET_RETURN;\n\n/* An error occurred */\n#define SSL_TICKET_RETURN_ABORT             0\n/* Do not use the ticket, do not send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_IGNORE            1\n/* Do not use the ticket, send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_IGNORE_RENEW      2\n/* Use the ticket, do not send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_USE               3\n/* Use the ticket, send a renewed ticket to the client */\n#define SSL_TICKET_RETURN_USE_RENEW         4\n\ntypedef int (*SSL_CTX_generate_session_ticket_fn)(SSL *s, void *arg);\ntypedef SSL_TICKET_RETURN (*SSL_CTX_decrypt_session_ticket_fn)(SSL *s, SSL_SESSION *ss,\n                                                               const unsigned char *keyname,\n                                                               size_t keyname_length,\n                                                               SSL_TICKET_STATUS status,\n                                                               void *arg);\nint SSL_CTX_set_session_ticket_cb(SSL_CTX *ctx,\n                                  SSL_CTX_generate_session_ticket_fn gen_cb,\n                                  SSL_CTX_decrypt_session_ticket_fn dec_cb,\n                                  void *arg);\nint SSL_SESSION_set1_ticket_appdata(SSL_SESSION *ss, const void *data, size_t len);\nint SSL_SESSION_get0_ticket_appdata(SSL_SESSION *ss, void **data, size_t *len);\n\nextern const char SSL_version_str[];\n\ntypedef unsigned int (*DTLS_timer_cb)(SSL *s, unsigned int timer_us);\n\nvoid DTLS_set_timer_cb(SSL *s, DTLS_timer_cb cb);\n\n\ntypedef int (*SSL_allow_early_data_cb_fn)(SSL *s, void *arg);\nvoid SSL_CTX_set_allow_early_data_cb(SSL_CTX *ctx,\n                                     SSL_allow_early_data_cb_fn cb,\n                                     void *arg);\nvoid SSL_set_allow_early_data_cb(SSL *s,\n                                 SSL_allow_early_data_cb_fn cb,\n                                 void *arg);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ssl2.h",
    "content": "/*\n * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL2_H\n# define HEADER_SSL2_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define SSL2_VERSION            0x0002\n\n# define SSL2_MT_CLIENT_HELLO            1\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ssl3.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSL3_H\n# define HEADER_SSL3_H\n\n# include <openssl/comp.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/ssl.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*\n * Signalling cipher suite value from RFC 5746\n * (TLS_EMPTY_RENEGOTIATION_INFO_SCSV)\n */\n# define SSL3_CK_SCSV                            0x030000FF\n\n/*\n * Signalling cipher suite value from draft-ietf-tls-downgrade-scsv-00\n * (TLS_FALLBACK_SCSV)\n */\n# define SSL3_CK_FALLBACK_SCSV                   0x03005600\n\n# define SSL3_CK_RSA_NULL_MD5                    0x03000001\n# define SSL3_CK_RSA_NULL_SHA                    0x03000002\n# define SSL3_CK_RSA_RC4_40_MD5                  0x03000003\n# define SSL3_CK_RSA_RC4_128_MD5                 0x03000004\n# define SSL3_CK_RSA_RC4_128_SHA                 0x03000005\n# define SSL3_CK_RSA_RC2_40_MD5                  0x03000006\n# define SSL3_CK_RSA_IDEA_128_SHA                0x03000007\n# define SSL3_CK_RSA_DES_40_CBC_SHA              0x03000008\n# define SSL3_CK_RSA_DES_64_CBC_SHA              0x03000009\n# define SSL3_CK_RSA_DES_192_CBC3_SHA            0x0300000A\n\n# define SSL3_CK_DH_DSS_DES_40_CBC_SHA           0x0300000B\n# define SSL3_CK_DH_DSS_DES_64_CBC_SHA           0x0300000C\n# define SSL3_CK_DH_DSS_DES_192_CBC3_SHA         0x0300000D\n# define SSL3_CK_DH_RSA_DES_40_CBC_SHA           0x0300000E\n# define SSL3_CK_DH_RSA_DES_64_CBC_SHA           0x0300000F\n# define SSL3_CK_DH_RSA_DES_192_CBC3_SHA         0x03000010\n\n# define SSL3_CK_DHE_DSS_DES_40_CBC_SHA          0x03000011\n# define SSL3_CK_EDH_DSS_DES_40_CBC_SHA          SSL3_CK_DHE_DSS_DES_40_CBC_SHA\n# define SSL3_CK_DHE_DSS_DES_64_CBC_SHA          0x03000012\n# define SSL3_CK_EDH_DSS_DES_64_CBC_SHA          SSL3_CK_DHE_DSS_DES_64_CBC_SHA\n# define SSL3_CK_DHE_DSS_DES_192_CBC3_SHA        0x03000013\n# define SSL3_CK_EDH_DSS_DES_192_CBC3_SHA        SSL3_CK_DHE_DSS_DES_192_CBC3_SHA\n# define SSL3_CK_DHE_RSA_DES_40_CBC_SHA          0x03000014\n# define SSL3_CK_EDH_RSA_DES_40_CBC_SHA          SSL3_CK_DHE_RSA_DES_40_CBC_SHA\n# define SSL3_CK_DHE_RSA_DES_64_CBC_SHA          0x03000015\n# define SSL3_CK_EDH_RSA_DES_64_CBC_SHA          SSL3_CK_DHE_RSA_DES_64_CBC_SHA\n# define SSL3_CK_DHE_RSA_DES_192_CBC3_SHA        0x03000016\n# define SSL3_CK_EDH_RSA_DES_192_CBC3_SHA        SSL3_CK_DHE_RSA_DES_192_CBC3_SHA\n\n# define SSL3_CK_ADH_RC4_40_MD5                  0x03000017\n# define SSL3_CK_ADH_RC4_128_MD5                 0x03000018\n# define SSL3_CK_ADH_DES_40_CBC_SHA              0x03000019\n# define SSL3_CK_ADH_DES_64_CBC_SHA              0x0300001A\n# define SSL3_CK_ADH_DES_192_CBC_SHA             0x0300001B\n\n/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */\n# define SSL3_RFC_RSA_NULL_MD5                   \"TLS_RSA_WITH_NULL_MD5\"\n# define SSL3_RFC_RSA_NULL_SHA                   \"TLS_RSA_WITH_NULL_SHA\"\n# define SSL3_RFC_RSA_DES_192_CBC3_SHA           \"TLS_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_DHE_DSS_DES_192_CBC3_SHA       \"TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_DHE_RSA_DES_192_CBC3_SHA       \"TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_ADH_DES_192_CBC_SHA            \"TLS_DH_anon_WITH_3DES_EDE_CBC_SHA\"\n# define SSL3_RFC_RSA_IDEA_128_SHA               \"TLS_RSA_WITH_IDEA_CBC_SHA\"\n# define SSL3_RFC_RSA_RC4_128_MD5                \"TLS_RSA_WITH_RC4_128_MD5\"\n# define SSL3_RFC_RSA_RC4_128_SHA                \"TLS_RSA_WITH_RC4_128_SHA\"\n# define SSL3_RFC_ADH_RC4_128_MD5                \"TLS_DH_anon_WITH_RC4_128_MD5\"\n\n# define SSL3_TXT_RSA_NULL_MD5                   \"NULL-MD5\"\n# define SSL3_TXT_RSA_NULL_SHA                   \"NULL-SHA\"\n# define SSL3_TXT_RSA_RC4_40_MD5                 \"EXP-RC4-MD5\"\n# define SSL3_TXT_RSA_RC4_128_MD5                \"RC4-MD5\"\n# define SSL3_TXT_RSA_RC4_128_SHA                \"RC4-SHA\"\n# define SSL3_TXT_RSA_RC2_40_MD5                 \"EXP-RC2-CBC-MD5\"\n# define SSL3_TXT_RSA_IDEA_128_SHA               \"IDEA-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_40_CBC_SHA             \"EXP-DES-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_64_CBC_SHA             \"DES-CBC-SHA\"\n# define SSL3_TXT_RSA_DES_192_CBC3_SHA           \"DES-CBC3-SHA\"\n\n# define SSL3_TXT_DH_DSS_DES_40_CBC_SHA          \"EXP-DH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DH_DSS_DES_64_CBC_SHA          \"DH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DH_DSS_DES_192_CBC3_SHA        \"DH-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_DH_RSA_DES_40_CBC_SHA          \"EXP-DH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DH_RSA_DES_64_CBC_SHA          \"DH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DH_RSA_DES_192_CBC3_SHA        \"DH-RSA-DES-CBC3-SHA\"\n\n# define SSL3_TXT_DHE_DSS_DES_40_CBC_SHA         \"EXP-DHE-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_DSS_DES_64_CBC_SHA         \"DHE-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_DSS_DES_192_CBC3_SHA       \"DHE-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_40_CBC_SHA         \"EXP-DHE-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_64_CBC_SHA         \"DHE-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_DHE_RSA_DES_192_CBC3_SHA       \"DHE-RSA-DES-CBC3-SHA\"\n\n/*\n * This next block of six \"EDH\" labels is for backward compatibility with\n * older versions of OpenSSL.  New code should use the six \"DHE\" labels above\n * instead:\n */\n# define SSL3_TXT_EDH_DSS_DES_40_CBC_SHA         \"EXP-EDH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_DSS_DES_64_CBC_SHA         \"EDH-DSS-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_DSS_DES_192_CBC3_SHA       \"EDH-DSS-DES-CBC3-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_40_CBC_SHA         \"EXP-EDH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_64_CBC_SHA         \"EDH-RSA-DES-CBC-SHA\"\n# define SSL3_TXT_EDH_RSA_DES_192_CBC3_SHA       \"EDH-RSA-DES-CBC3-SHA\"\n\n# define SSL3_TXT_ADH_RC4_40_MD5                 \"EXP-ADH-RC4-MD5\"\n# define SSL3_TXT_ADH_RC4_128_MD5                \"ADH-RC4-MD5\"\n# define SSL3_TXT_ADH_DES_40_CBC_SHA             \"EXP-ADH-DES-CBC-SHA\"\n# define SSL3_TXT_ADH_DES_64_CBC_SHA             \"ADH-DES-CBC-SHA\"\n# define SSL3_TXT_ADH_DES_192_CBC_SHA            \"ADH-DES-CBC3-SHA\"\n\n# define SSL3_SSL_SESSION_ID_LENGTH              32\n# define SSL3_MAX_SSL_SESSION_ID_LENGTH          32\n\n# define SSL3_MASTER_SECRET_SIZE                 48\n# define SSL3_RANDOM_SIZE                        32\n# define SSL3_SESSION_ID_SIZE                    32\n# define SSL3_RT_HEADER_LENGTH                   5\n\n# define SSL3_HM_HEADER_LENGTH                  4\n\n# ifndef SSL3_ALIGN_PAYLOAD\n /*\n  * Some will argue that this increases memory footprint, but it's not\n  * actually true. Point is that malloc has to return at least 64-bit aligned\n  * pointers, meaning that allocating 5 bytes wastes 3 bytes in either case.\n  * Suggested pre-gaping simply moves these wasted bytes from the end of\n  * allocated region to its front, but makes data payload aligned, which\n  * improves performance:-)\n  */\n#  define SSL3_ALIGN_PAYLOAD                     8\n# else\n#  if (SSL3_ALIGN_PAYLOAD&(SSL3_ALIGN_PAYLOAD-1))!=0\n#   error \"insane SSL3_ALIGN_PAYLOAD\"\n#   undef SSL3_ALIGN_PAYLOAD\n#  endif\n# endif\n\n/*\n * This is the maximum MAC (digest) size used by the SSL library. Currently\n * maximum of 20 is used by SHA1, but we reserve for future extension for\n * 512-bit hashes.\n */\n\n# define SSL3_RT_MAX_MD_SIZE                     64\n\n/*\n * Maximum block size used in all ciphersuites. Currently 16 for AES.\n */\n\n# define SSL_RT_MAX_CIPHER_BLOCK_SIZE            16\n\n# define SSL3_RT_MAX_EXTRA                       (16384)\n\n/* Maximum plaintext length: defined by SSL/TLS standards */\n# define SSL3_RT_MAX_PLAIN_LENGTH                16384\n/* Maximum compression overhead: defined by SSL/TLS standards */\n# define SSL3_RT_MAX_COMPRESSED_OVERHEAD         1024\n\n/*\n * The standards give a maximum encryption overhead of 1024 bytes. In\n * practice the value is lower than this. The overhead is the maximum number\n * of padding bytes (256) plus the mac size.\n */\n# define SSL3_RT_MAX_ENCRYPTED_OVERHEAD        (256 + SSL3_RT_MAX_MD_SIZE)\n# define SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD  256\n\n/*\n * OpenSSL currently only uses a padding length of at most one block so the\n * send overhead is smaller.\n */\n\n# define SSL3_RT_SEND_MAX_ENCRYPTED_OVERHEAD \\\n                        (SSL_RT_MAX_CIPHER_BLOCK_SIZE + SSL3_RT_MAX_MD_SIZE)\n\n/* If compression isn't used don't include the compression overhead */\n\n# ifdef OPENSSL_NO_COMP\n#  define SSL3_RT_MAX_COMPRESSED_LENGTH           SSL3_RT_MAX_PLAIN_LENGTH\n# else\n#  define SSL3_RT_MAX_COMPRESSED_LENGTH   \\\n            (SSL3_RT_MAX_PLAIN_LENGTH+SSL3_RT_MAX_COMPRESSED_OVERHEAD)\n# endif\n# define SSL3_RT_MAX_ENCRYPTED_LENGTH    \\\n            (SSL3_RT_MAX_ENCRYPTED_OVERHEAD+SSL3_RT_MAX_COMPRESSED_LENGTH)\n# define SSL3_RT_MAX_TLS13_ENCRYPTED_LENGTH \\\n            (SSL3_RT_MAX_PLAIN_LENGTH + SSL3_RT_MAX_TLS13_ENCRYPTED_OVERHEAD)\n# define SSL3_RT_MAX_PACKET_SIZE         \\\n            (SSL3_RT_MAX_ENCRYPTED_LENGTH+SSL3_RT_HEADER_LENGTH)\n\n# define SSL3_MD_CLIENT_FINISHED_CONST   \"\\x43\\x4C\\x4E\\x54\"\n# define SSL3_MD_SERVER_FINISHED_CONST   \"\\x53\\x52\\x56\\x52\"\n\n# define SSL3_VERSION                    0x0300\n# define SSL3_VERSION_MAJOR              0x03\n# define SSL3_VERSION_MINOR              0x00\n\n# define SSL3_RT_CHANGE_CIPHER_SPEC      20\n# define SSL3_RT_ALERT                   21\n# define SSL3_RT_HANDSHAKE               22\n# define SSL3_RT_APPLICATION_DATA        23\n# define DTLS1_RT_HEARTBEAT              24\n\n/* Pseudo content types to indicate additional parameters */\n# define TLS1_RT_CRYPTO                  0x1000\n# define TLS1_RT_CRYPTO_PREMASTER        (TLS1_RT_CRYPTO | 0x1)\n# define TLS1_RT_CRYPTO_CLIENT_RANDOM    (TLS1_RT_CRYPTO | 0x2)\n# define TLS1_RT_CRYPTO_SERVER_RANDOM    (TLS1_RT_CRYPTO | 0x3)\n# define TLS1_RT_CRYPTO_MASTER           (TLS1_RT_CRYPTO | 0x4)\n\n# define TLS1_RT_CRYPTO_READ             0x0000\n# define TLS1_RT_CRYPTO_WRITE            0x0100\n# define TLS1_RT_CRYPTO_MAC              (TLS1_RT_CRYPTO | 0x5)\n# define TLS1_RT_CRYPTO_KEY              (TLS1_RT_CRYPTO | 0x6)\n# define TLS1_RT_CRYPTO_IV               (TLS1_RT_CRYPTO | 0x7)\n# define TLS1_RT_CRYPTO_FIXED_IV         (TLS1_RT_CRYPTO | 0x8)\n\n/* Pseudo content types for SSL/TLS header info */\n# define SSL3_RT_HEADER                  0x100\n# define SSL3_RT_INNER_CONTENT_TYPE      0x101\n\n# define SSL3_AL_WARNING                 1\n# define SSL3_AL_FATAL                   2\n\n# define SSL3_AD_CLOSE_NOTIFY             0\n# define SSL3_AD_UNEXPECTED_MESSAGE      10/* fatal */\n# define SSL3_AD_BAD_RECORD_MAC          20/* fatal */\n# define SSL3_AD_DECOMPRESSION_FAILURE   30/* fatal */\n# define SSL3_AD_HANDSHAKE_FAILURE       40/* fatal */\n# define SSL3_AD_NO_CERTIFICATE          41\n# define SSL3_AD_BAD_CERTIFICATE         42\n# define SSL3_AD_UNSUPPORTED_CERTIFICATE 43\n# define SSL3_AD_CERTIFICATE_REVOKED     44\n# define SSL3_AD_CERTIFICATE_EXPIRED     45\n# define SSL3_AD_CERTIFICATE_UNKNOWN     46\n# define SSL3_AD_ILLEGAL_PARAMETER       47/* fatal */\n\n# define TLS1_HB_REQUEST         1\n# define TLS1_HB_RESPONSE        2\n\n\n# define SSL3_CT_RSA_SIGN                        1\n# define SSL3_CT_DSS_SIGN                        2\n# define SSL3_CT_RSA_FIXED_DH                    3\n# define SSL3_CT_DSS_FIXED_DH                    4\n# define SSL3_CT_RSA_EPHEMERAL_DH                5\n# define SSL3_CT_DSS_EPHEMERAL_DH                6\n# define SSL3_CT_FORTEZZA_DMS                    20\n/*\n * SSL3_CT_NUMBER is used to size arrays and it must be large enough to\n * contain all of the cert types defined for *either* SSLv3 and TLSv1.\n */\n# define SSL3_CT_NUMBER                  10\n\n# if defined(TLS_CT_NUMBER)\n#  if TLS_CT_NUMBER != SSL3_CT_NUMBER\n#    error \"SSL/TLS CT_NUMBER values do not match\"\n#  endif\n# endif\n\n/* No longer used as of OpenSSL 1.1.1 */\n# define SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS       0x0001\n\n/* Removed from OpenSSL 1.1.0 */\n# define TLS1_FLAGS_TLS_PADDING_BUG              0x0\n\n# define TLS1_FLAGS_SKIP_CERT_VERIFY             0x0010\n\n/* Set if we encrypt then mac instead of usual mac then encrypt */\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC_READ        0x0100\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC             TLS1_FLAGS_ENCRYPT_THEN_MAC_READ\n\n/* Set if extended master secret extension received from peer */\n# define TLS1_FLAGS_RECEIVED_EXTMS               0x0200\n\n# define TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE       0x0400\n\n# define TLS1_FLAGS_STATELESS                    0x0800\n\n/* Set if extended master secret extension required on renegotiation */\n# define TLS1_FLAGS_REQUIRED_EXTMS               0x1000\n\n# define SSL3_MT_HELLO_REQUEST                   0\n# define SSL3_MT_CLIENT_HELLO                    1\n# define SSL3_MT_SERVER_HELLO                    2\n# define SSL3_MT_NEWSESSION_TICKET               4\n# define SSL3_MT_END_OF_EARLY_DATA               5\n# define SSL3_MT_ENCRYPTED_EXTENSIONS            8\n# define SSL3_MT_CERTIFICATE                     11\n# define SSL3_MT_SERVER_KEY_EXCHANGE             12\n# define SSL3_MT_CERTIFICATE_REQUEST             13\n# define SSL3_MT_SERVER_DONE                     14\n# define SSL3_MT_CERTIFICATE_VERIFY              15\n# define SSL3_MT_CLIENT_KEY_EXCHANGE             16\n# define SSL3_MT_FINISHED                        20\n# define SSL3_MT_CERTIFICATE_URL                 21\n# define SSL3_MT_CERTIFICATE_STATUS              22\n# define SSL3_MT_SUPPLEMENTAL_DATA               23\n# define SSL3_MT_KEY_UPDATE                      24\n# ifndef OPENSSL_NO_NEXTPROTONEG\n#  define SSL3_MT_NEXT_PROTO                     67\n# endif\n# define SSL3_MT_MESSAGE_HASH                    254\n# define DTLS1_MT_HELLO_VERIFY_REQUEST           3\n\n/* Dummy message type for handling CCS like a normal handshake message */\n# define SSL3_MT_CHANGE_CIPHER_SPEC              0x0101\n\n# define SSL3_MT_CCS                             1\n\n/* These are used when changing over to a new cipher */\n# define SSL3_CC_READ            0x001\n# define SSL3_CC_WRITE           0x002\n# define SSL3_CC_CLIENT          0x010\n# define SSL3_CC_SERVER          0x020\n# define SSL3_CC_EARLY           0x040\n# define SSL3_CC_HANDSHAKE       0x080\n# define SSL3_CC_APPLICATION     0x100\n# define SSL3_CHANGE_CIPHER_CLIENT_WRITE (SSL3_CC_CLIENT|SSL3_CC_WRITE)\n# define SSL3_CHANGE_CIPHER_SERVER_READ  (SSL3_CC_SERVER|SSL3_CC_READ)\n# define SSL3_CHANGE_CIPHER_CLIENT_READ  (SSL3_CC_CLIENT|SSL3_CC_READ)\n# define SSL3_CHANGE_CIPHER_SERVER_WRITE (SSL3_CC_SERVER|SSL3_CC_WRITE)\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/sslerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SSLERR_H\n# define HEADER_SSLERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_SSL_strings(void);\n\n/*\n * SSL function codes.\n */\n# define SSL_F_ADD_CLIENT_KEY_SHARE_EXT                   438\n# define SSL_F_ADD_KEY_SHARE                              512\n# define SSL_F_BYTES_TO_CIPHER_LIST                       519\n# define SSL_F_CHECK_SUITEB_CIPHER_LIST                   331\n# define SSL_F_CIPHERSUITE_CB                             622\n# define SSL_F_CONSTRUCT_CA_NAMES                         552\n# define SSL_F_CONSTRUCT_KEY_EXCHANGE_TBS                 553\n# define SSL_F_CONSTRUCT_STATEFUL_TICKET                  636\n# define SSL_F_CONSTRUCT_STATELESS_TICKET                 637\n# define SSL_F_CREATE_SYNTHETIC_MESSAGE_HASH              539\n# define SSL_F_CREATE_TICKET_PREQUEL                      638\n# define SSL_F_CT_MOVE_SCTS                               345\n# define SSL_F_CT_STRICT                                  349\n# define SSL_F_CUSTOM_EXT_ADD                             554\n# define SSL_F_CUSTOM_EXT_PARSE                           555\n# define SSL_F_D2I_SSL_SESSION                            103\n# define SSL_F_DANE_CTX_ENABLE                            347\n# define SSL_F_DANE_MTYPE_SET                             393\n# define SSL_F_DANE_TLSA_ADD                              394\n# define SSL_F_DERIVE_SECRET_KEY_AND_IV                   514\n# define SSL_F_DO_DTLS1_WRITE                             245\n# define SSL_F_DO_SSL3_WRITE                              104\n# define SSL_F_DTLS1_BUFFER_RECORD                        247\n# define SSL_F_DTLS1_CHECK_TIMEOUT_NUM                    318\n# define SSL_F_DTLS1_HEARTBEAT                            305\n# define SSL_F_DTLS1_HM_FRAGMENT_NEW                      623\n# define SSL_F_DTLS1_PREPROCESS_FRAGMENT                  288\n# define SSL_F_DTLS1_PROCESS_BUFFERED_RECORDS             424\n# define SSL_F_DTLS1_PROCESS_RECORD                       257\n# define SSL_F_DTLS1_READ_BYTES                           258\n# define SSL_F_DTLS1_READ_FAILED                          339\n# define SSL_F_DTLS1_RETRANSMIT_MESSAGE                   390\n# define SSL_F_DTLS1_WRITE_APP_DATA_BYTES                 268\n# define SSL_F_DTLS1_WRITE_BYTES                          545\n# define SSL_F_DTLSV1_LISTEN                              350\n# define SSL_F_DTLS_CONSTRUCT_CHANGE_CIPHER_SPEC          371\n# define SSL_F_DTLS_CONSTRUCT_HELLO_VERIFY_REQUEST        385\n# define SSL_F_DTLS_GET_REASSEMBLED_MESSAGE               370\n# define SSL_F_DTLS_PROCESS_HELLO_VERIFY                  386\n# define SSL_F_DTLS_RECORD_LAYER_NEW                      635\n# define SSL_F_DTLS_WAIT_FOR_DRY                          592\n# define SSL_F_EARLY_DATA_COUNT_OK                        532\n# define SSL_F_FINAL_EARLY_DATA                           556\n# define SSL_F_FINAL_EC_PT_FORMATS                        485\n# define SSL_F_FINAL_EMS                                  486\n# define SSL_F_FINAL_KEY_SHARE                            503\n# define SSL_F_FINAL_MAXFRAGMENTLEN                       557\n# define SSL_F_FINAL_RENEGOTIATE                          483\n# define SSL_F_FINAL_SERVER_NAME                          558\n# define SSL_F_FINAL_SIG_ALGS                             497\n# define SSL_F_GET_CERT_VERIFY_TBS_DATA                   588\n# define SSL_F_NSS_KEYLOG_INT                             500\n# define SSL_F_OPENSSL_INIT_SSL                           342\n# define SSL_F_OSSL_STATEM_CLIENT13_READ_TRANSITION       436\n# define SSL_F_OSSL_STATEM_CLIENT13_WRITE_TRANSITION      598\n# define SSL_F_OSSL_STATEM_CLIENT_CONSTRUCT_MESSAGE       430\n# define SSL_F_OSSL_STATEM_CLIENT_POST_PROCESS_MESSAGE    593\n# define SSL_F_OSSL_STATEM_CLIENT_PROCESS_MESSAGE         594\n# define SSL_F_OSSL_STATEM_CLIENT_READ_TRANSITION         417\n# define SSL_F_OSSL_STATEM_CLIENT_WRITE_TRANSITION        599\n# define SSL_F_OSSL_STATEM_SERVER13_READ_TRANSITION       437\n# define SSL_F_OSSL_STATEM_SERVER13_WRITE_TRANSITION      600\n# define SSL_F_OSSL_STATEM_SERVER_CONSTRUCT_MESSAGE       431\n# define SSL_F_OSSL_STATEM_SERVER_POST_PROCESS_MESSAGE    601\n# define SSL_F_OSSL_STATEM_SERVER_POST_WORK               602\n# define SSL_F_OSSL_STATEM_SERVER_PRE_WORK                640\n# define SSL_F_OSSL_STATEM_SERVER_PROCESS_MESSAGE         603\n# define SSL_F_OSSL_STATEM_SERVER_READ_TRANSITION         418\n# define SSL_F_OSSL_STATEM_SERVER_WRITE_TRANSITION        604\n# define SSL_F_PARSE_CA_NAMES                             541\n# define SSL_F_PITEM_NEW                                  624\n# define SSL_F_PQUEUE_NEW                                 625\n# define SSL_F_PROCESS_KEY_SHARE_EXT                      439\n# define SSL_F_READ_STATE_MACHINE                         352\n# define SSL_F_SET_CLIENT_CIPHERSUITE                     540\n# define SSL_F_SRP_GENERATE_CLIENT_MASTER_SECRET          595\n# define SSL_F_SRP_GENERATE_SERVER_MASTER_SECRET          589\n# define SSL_F_SRP_VERIFY_SERVER_PARAM                    596\n# define SSL_F_SSL3_CHANGE_CIPHER_STATE                   129\n# define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM              130\n# define SSL_F_SSL3_CTRL                                  213\n# define SSL_F_SSL3_CTX_CTRL                              133\n# define SSL_F_SSL3_DIGEST_CACHED_RECORDS                 293\n# define SSL_F_SSL3_DO_CHANGE_CIPHER_SPEC                 292\n# define SSL_F_SSL3_ENC                                   608\n# define SSL_F_SSL3_FINAL_FINISH_MAC                      285\n# define SSL_F_SSL3_FINISH_MAC                            587\n# define SSL_F_SSL3_GENERATE_KEY_BLOCK                    238\n# define SSL_F_SSL3_GENERATE_MASTER_SECRET                388\n# define SSL_F_SSL3_GET_RECORD                            143\n# define SSL_F_SSL3_INIT_FINISHED_MAC                     397\n# define SSL_F_SSL3_OUTPUT_CERT_CHAIN                     147\n# define SSL_F_SSL3_READ_BYTES                            148\n# define SSL_F_SSL3_READ_N                                149\n# define SSL_F_SSL3_SETUP_KEY_BLOCK                       157\n# define SSL_F_SSL3_SETUP_READ_BUFFER                     156\n# define SSL_F_SSL3_SETUP_WRITE_BUFFER                    291\n# define SSL_F_SSL3_WRITE_BYTES                           158\n# define SSL_F_SSL3_WRITE_PENDING                         159\n# define SSL_F_SSL_ADD_CERT_CHAIN                         316\n# define SSL_F_SSL_ADD_CERT_TO_BUF                        319\n# define SSL_F_SSL_ADD_CERT_TO_WPACKET                    493\n# define SSL_F_SSL_ADD_CLIENTHELLO_RENEGOTIATE_EXT        298\n# define SSL_F_SSL_ADD_CLIENTHELLO_TLSEXT                 277\n# define SSL_F_SSL_ADD_CLIENTHELLO_USE_SRTP_EXT           307\n# define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK         215\n# define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK        216\n# define SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT        299\n# define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT                 278\n# define SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT           308\n# define SSL_F_SSL_BAD_METHOD                             160\n# define SSL_F_SSL_BUILD_CERT_CHAIN                       332\n# define SSL_F_SSL_BYTES_TO_CIPHER_LIST                   161\n# define SSL_F_SSL_CACHE_CIPHERLIST                       520\n# define SSL_F_SSL_CERT_ADD0_CHAIN_CERT                   346\n# define SSL_F_SSL_CERT_DUP                               221\n# define SSL_F_SSL_CERT_NEW                               162\n# define SSL_F_SSL_CERT_SET0_CHAIN                        340\n# define SSL_F_SSL_CHECK_PRIVATE_KEY                      163\n# define SSL_F_SSL_CHECK_SERVERHELLO_TLSEXT               280\n# define SSL_F_SSL_CHECK_SRP_EXT_CLIENTHELLO              606\n# define SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG            279\n# define SSL_F_SSL_CHOOSE_CLIENT_VERSION                  607\n# define SSL_F_SSL_CIPHER_DESCRIPTION                     626\n# define SSL_F_SSL_CIPHER_LIST_TO_BYTES                   425\n# define SSL_F_SSL_CIPHER_PROCESS_RULESTR                 230\n# define SSL_F_SSL_CIPHER_STRENGTH_SORT                   231\n# define SSL_F_SSL_CLEAR                                  164\n# define SSL_F_SSL_CLIENT_HELLO_GET1_EXTENSIONS_PRESENT   627\n# define SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD            165\n# define SSL_F_SSL_CONF_CMD                               334\n# define SSL_F_SSL_CREATE_CIPHER_LIST                     166\n# define SSL_F_SSL_CTRL                                   232\n# define SSL_F_SSL_CTX_CHECK_PRIVATE_KEY                  168\n# define SSL_F_SSL_CTX_ENABLE_CT                          398\n# define SSL_F_SSL_CTX_MAKE_PROFILES                      309\n# define SSL_F_SSL_CTX_NEW                                169\n# define SSL_F_SSL_CTX_SET_ALPN_PROTOS                    343\n# define SSL_F_SSL_CTX_SET_CIPHER_LIST                    269\n# define SSL_F_SSL_CTX_SET_CLIENT_CERT_ENGINE             290\n# define SSL_F_SSL_CTX_SET_CT_VALIDATION_CALLBACK         396\n# define SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT             219\n# define SSL_F_SSL_CTX_SET_SSL_VERSION                    170\n# define SSL_F_SSL_CTX_SET_TLSEXT_MAX_FRAGMENT_LENGTH     551\n# define SSL_F_SSL_CTX_USE_CERTIFICATE                    171\n# define SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1               172\n# define SSL_F_SSL_CTX_USE_CERTIFICATE_FILE               173\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY                     174\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1                175\n# define SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE                176\n# define SSL_F_SSL_CTX_USE_PSK_IDENTITY_HINT              272\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY                  177\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1             178\n# define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE             179\n# define SSL_F_SSL_CTX_USE_SERVERINFO                     336\n# define SSL_F_SSL_CTX_USE_SERVERINFO_EX                  543\n# define SSL_F_SSL_CTX_USE_SERVERINFO_FILE                337\n# define SSL_F_SSL_DANE_DUP                               403\n# define SSL_F_SSL_DANE_ENABLE                            395\n# define SSL_F_SSL_DERIVE                                 590\n# define SSL_F_SSL_DO_CONFIG                              391\n# define SSL_F_SSL_DO_HANDSHAKE                           180\n# define SSL_F_SSL_DUP_CA_LIST                            408\n# define SSL_F_SSL_ENABLE_CT                              402\n# define SSL_F_SSL_GENERATE_PKEY_GROUP                    559\n# define SSL_F_SSL_GENERATE_SESSION_ID                    547\n# define SSL_F_SSL_GET_NEW_SESSION                        181\n# define SSL_F_SSL_GET_PREV_SESSION                       217\n# define SSL_F_SSL_GET_SERVER_CERT_INDEX                  322\n# define SSL_F_SSL_GET_SIGN_PKEY                          183\n# define SSL_F_SSL_HANDSHAKE_HASH                         560\n# define SSL_F_SSL_INIT_WBIO_BUFFER                       184\n# define SSL_F_SSL_KEY_UPDATE                             515\n# define SSL_F_SSL_LOAD_CLIENT_CA_FILE                    185\n# define SSL_F_SSL_LOG_MASTER_SECRET                      498\n# define SSL_F_SSL_LOG_RSA_CLIENT_KEY_EXCHANGE            499\n# define SSL_F_SSL_MODULE_INIT                            392\n# define SSL_F_SSL_NEW                                    186\n# define SSL_F_SSL_NEXT_PROTO_VALIDATE                    565\n# define SSL_F_SSL_PARSE_CLIENTHELLO_RENEGOTIATE_EXT      300\n# define SSL_F_SSL_PARSE_CLIENTHELLO_TLSEXT               302\n# define SSL_F_SSL_PARSE_CLIENTHELLO_USE_SRTP_EXT         310\n# define SSL_F_SSL_PARSE_SERVERHELLO_RENEGOTIATE_EXT      301\n# define SSL_F_SSL_PARSE_SERVERHELLO_TLSEXT               303\n# define SSL_F_SSL_PARSE_SERVERHELLO_USE_SRTP_EXT         311\n# define SSL_F_SSL_PEEK                                   270\n# define SSL_F_SSL_PEEK_EX                                432\n# define SSL_F_SSL_PEEK_INTERNAL                          522\n# define SSL_F_SSL_READ                                   223\n# define SSL_F_SSL_READ_EARLY_DATA                        529\n# define SSL_F_SSL_READ_EX                                434\n# define SSL_F_SSL_READ_INTERNAL                          523\n# define SSL_F_SSL_RENEGOTIATE                            516\n# define SSL_F_SSL_RENEGOTIATE_ABBREVIATED                546\n# define SSL_F_SSL_SCAN_CLIENTHELLO_TLSEXT                320\n# define SSL_F_SSL_SCAN_SERVERHELLO_TLSEXT                321\n# define SSL_F_SSL_SESSION_DUP                            348\n# define SSL_F_SSL_SESSION_NEW                            189\n# define SSL_F_SSL_SESSION_PRINT_FP                       190\n# define SSL_F_SSL_SESSION_SET1_ID                        423\n# define SSL_F_SSL_SESSION_SET1_ID_CONTEXT                312\n# define SSL_F_SSL_SET_ALPN_PROTOS                        344\n# define SSL_F_SSL_SET_CERT                               191\n# define SSL_F_SSL_SET_CERT_AND_KEY                       621\n# define SSL_F_SSL_SET_CIPHER_LIST                        271\n# define SSL_F_SSL_SET_CT_VALIDATION_CALLBACK             399\n# define SSL_F_SSL_SET_FD                                 192\n# define SSL_F_SSL_SET_PKEY                               193\n# define SSL_F_SSL_SET_RFD                                194\n# define SSL_F_SSL_SET_SESSION                            195\n# define SSL_F_SSL_SET_SESSION_ID_CONTEXT                 218\n# define SSL_F_SSL_SET_SESSION_TICKET_EXT                 294\n# define SSL_F_SSL_SET_TLSEXT_MAX_FRAGMENT_LENGTH         550\n# define SSL_F_SSL_SET_WFD                                196\n# define SSL_F_SSL_SHUTDOWN                               224\n# define SSL_F_SSL_SRP_CTX_INIT                           313\n# define SSL_F_SSL_START_ASYNC_JOB                        389\n# define SSL_F_SSL_UNDEFINED_FUNCTION                     197\n# define SSL_F_SSL_UNDEFINED_VOID_FUNCTION                244\n# define SSL_F_SSL_USE_CERTIFICATE                        198\n# define SSL_F_SSL_USE_CERTIFICATE_ASN1                   199\n# define SSL_F_SSL_USE_CERTIFICATE_FILE                   200\n# define SSL_F_SSL_USE_PRIVATEKEY                         201\n# define SSL_F_SSL_USE_PRIVATEKEY_ASN1                    202\n# define SSL_F_SSL_USE_PRIVATEKEY_FILE                    203\n# define SSL_F_SSL_USE_PSK_IDENTITY_HINT                  273\n# define SSL_F_SSL_USE_RSAPRIVATEKEY                      204\n# define SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1                 205\n# define SSL_F_SSL_USE_RSAPRIVATEKEY_FILE                 206\n# define SSL_F_SSL_VALIDATE_CT                            400\n# define SSL_F_SSL_VERIFY_CERT_CHAIN                      207\n# define SSL_F_SSL_VERIFY_CLIENT_POST_HANDSHAKE           616\n# define SSL_F_SSL_WRITE                                  208\n# define SSL_F_SSL_WRITE_EARLY_DATA                       526\n# define SSL_F_SSL_WRITE_EARLY_FINISH                     527\n# define SSL_F_SSL_WRITE_EX                               433\n# define SSL_F_SSL_WRITE_INTERNAL                         524\n# define SSL_F_STATE_MACHINE                              353\n# define SSL_F_TLS12_CHECK_PEER_SIGALG                    333\n# define SSL_F_TLS12_COPY_SIGALGS                         533\n# define SSL_F_TLS13_CHANGE_CIPHER_STATE                  440\n# define SSL_F_TLS13_ENC                                  609\n# define SSL_F_TLS13_FINAL_FINISH_MAC                     605\n# define SSL_F_TLS13_GENERATE_SECRET                      591\n# define SSL_F_TLS13_HKDF_EXPAND                          561\n# define SSL_F_TLS13_RESTORE_HANDSHAKE_DIGEST_FOR_PHA     617\n# define SSL_F_TLS13_SAVE_HANDSHAKE_DIGEST_FOR_PHA        618\n# define SSL_F_TLS13_SETUP_KEY_BLOCK                      441\n# define SSL_F_TLS1_CHANGE_CIPHER_STATE                   209\n# define SSL_F_TLS1_CHECK_DUPLICATE_EXTENSIONS            341\n# define SSL_F_TLS1_ENC                                   401\n# define SSL_F_TLS1_EXPORT_KEYING_MATERIAL                314\n# define SSL_F_TLS1_GET_CURVELIST                         338\n# define SSL_F_TLS1_PRF                                   284\n# define SSL_F_TLS1_SAVE_U16                              628\n# define SSL_F_TLS1_SETUP_KEY_BLOCK                       211\n# define SSL_F_TLS1_SET_GROUPS                            629\n# define SSL_F_TLS1_SET_RAW_SIGALGS                       630\n# define SSL_F_TLS1_SET_SERVER_SIGALGS                    335\n# define SSL_F_TLS1_SET_SHARED_SIGALGS                    631\n# define SSL_F_TLS1_SET_SIGALGS                           632\n# define SSL_F_TLS_CHOOSE_SIGALG                          513\n# define SSL_F_TLS_CLIENT_KEY_EXCHANGE_POST_WORK          354\n# define SSL_F_TLS_COLLECT_EXTENSIONS                     435\n# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_AUTHORITIES      542\n# define SSL_F_TLS_CONSTRUCT_CERTIFICATE_REQUEST          372\n# define SSL_F_TLS_CONSTRUCT_CERT_STATUS                  429\n# define SSL_F_TLS_CONSTRUCT_CERT_STATUS_BODY             494\n# define SSL_F_TLS_CONSTRUCT_CERT_VERIFY                  496\n# define SSL_F_TLS_CONSTRUCT_CHANGE_CIPHER_SPEC           427\n# define SSL_F_TLS_CONSTRUCT_CKE_DHE                      404\n# define SSL_F_TLS_CONSTRUCT_CKE_ECDHE                    405\n# define SSL_F_TLS_CONSTRUCT_CKE_GOST                     406\n# define SSL_F_TLS_CONSTRUCT_CKE_PSK_PREAMBLE             407\n# define SSL_F_TLS_CONSTRUCT_CKE_RSA                      409\n# define SSL_F_TLS_CONSTRUCT_CKE_SRP                      410\n# define SSL_F_TLS_CONSTRUCT_CLIENT_CERTIFICATE           484\n# define SSL_F_TLS_CONSTRUCT_CLIENT_HELLO                 487\n# define SSL_F_TLS_CONSTRUCT_CLIENT_KEY_EXCHANGE          488\n# define SSL_F_TLS_CONSTRUCT_CLIENT_VERIFY                489\n# define SSL_F_TLS_CONSTRUCT_CTOS_ALPN                    466\n# define SSL_F_TLS_CONSTRUCT_CTOS_CERTIFICATE             355\n# define SSL_F_TLS_CONSTRUCT_CTOS_COOKIE                  535\n# define SSL_F_TLS_CONSTRUCT_CTOS_EARLY_DATA              530\n# define SSL_F_TLS_CONSTRUCT_CTOS_EC_PT_FORMATS           467\n# define SSL_F_TLS_CONSTRUCT_CTOS_EMS                     468\n# define SSL_F_TLS_CONSTRUCT_CTOS_ETM                     469\n# define SSL_F_TLS_CONSTRUCT_CTOS_HELLO                   356\n# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_EXCHANGE            357\n# define SSL_F_TLS_CONSTRUCT_CTOS_KEY_SHARE               470\n# define SSL_F_TLS_CONSTRUCT_CTOS_MAXFRAGMENTLEN          549\n# define SSL_F_TLS_CONSTRUCT_CTOS_NPN                     471\n# define SSL_F_TLS_CONSTRUCT_CTOS_PADDING                 472\n# define SSL_F_TLS_CONSTRUCT_CTOS_POST_HANDSHAKE_AUTH     619\n# define SSL_F_TLS_CONSTRUCT_CTOS_PSK                     501\n# define SSL_F_TLS_CONSTRUCT_CTOS_PSK_KEX_MODES           509\n# define SSL_F_TLS_CONSTRUCT_CTOS_RENEGOTIATE             473\n# define SSL_F_TLS_CONSTRUCT_CTOS_SCT                     474\n# define SSL_F_TLS_CONSTRUCT_CTOS_SERVER_NAME             475\n# define SSL_F_TLS_CONSTRUCT_CTOS_SESSION_TICKET          476\n# define SSL_F_TLS_CONSTRUCT_CTOS_SIG_ALGS                477\n# define SSL_F_TLS_CONSTRUCT_CTOS_SRP                     478\n# define SSL_F_TLS_CONSTRUCT_CTOS_STATUS_REQUEST          479\n# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_GROUPS        480\n# define SSL_F_TLS_CONSTRUCT_CTOS_SUPPORTED_VERSIONS      481\n# define SSL_F_TLS_CONSTRUCT_CTOS_USE_SRTP                482\n# define SSL_F_TLS_CONSTRUCT_CTOS_VERIFY                  358\n# define SSL_F_TLS_CONSTRUCT_ENCRYPTED_EXTENSIONS         443\n# define SSL_F_TLS_CONSTRUCT_END_OF_EARLY_DATA            536\n# define SSL_F_TLS_CONSTRUCT_EXTENSIONS                   447\n# define SSL_F_TLS_CONSTRUCT_FINISHED                     359\n# define SSL_F_TLS_CONSTRUCT_HELLO_REQUEST                373\n# define SSL_F_TLS_CONSTRUCT_HELLO_RETRY_REQUEST          510\n# define SSL_F_TLS_CONSTRUCT_KEY_UPDATE                   517\n# define SSL_F_TLS_CONSTRUCT_NEW_SESSION_TICKET           428\n# define SSL_F_TLS_CONSTRUCT_NEXT_PROTO                   426\n# define SSL_F_TLS_CONSTRUCT_SERVER_CERTIFICATE           490\n# define SSL_F_TLS_CONSTRUCT_SERVER_HELLO                 491\n# define SSL_F_TLS_CONSTRUCT_SERVER_KEY_EXCHANGE          492\n# define SSL_F_TLS_CONSTRUCT_STOC_ALPN                    451\n# define SSL_F_TLS_CONSTRUCT_STOC_CERTIFICATE             374\n# define SSL_F_TLS_CONSTRUCT_STOC_COOKIE                  613\n# define SSL_F_TLS_CONSTRUCT_STOC_CRYPTOPRO_BUG           452\n# define SSL_F_TLS_CONSTRUCT_STOC_DONE                    375\n# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA              531\n# define SSL_F_TLS_CONSTRUCT_STOC_EARLY_DATA_INFO         525\n# define SSL_F_TLS_CONSTRUCT_STOC_EC_PT_FORMATS           453\n# define SSL_F_TLS_CONSTRUCT_STOC_EMS                     454\n# define SSL_F_TLS_CONSTRUCT_STOC_ETM                     455\n# define SSL_F_TLS_CONSTRUCT_STOC_HELLO                   376\n# define SSL_F_TLS_CONSTRUCT_STOC_KEY_EXCHANGE            377\n# define SSL_F_TLS_CONSTRUCT_STOC_KEY_SHARE               456\n# define SSL_F_TLS_CONSTRUCT_STOC_MAXFRAGMENTLEN          548\n# define SSL_F_TLS_CONSTRUCT_STOC_NEXT_PROTO_NEG          457\n# define SSL_F_TLS_CONSTRUCT_STOC_PSK                     504\n# define SSL_F_TLS_CONSTRUCT_STOC_RENEGOTIATE             458\n# define SSL_F_TLS_CONSTRUCT_STOC_SERVER_NAME             459\n# define SSL_F_TLS_CONSTRUCT_STOC_SESSION_TICKET          460\n# define SSL_F_TLS_CONSTRUCT_STOC_STATUS_REQUEST          461\n# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_GROUPS        544\n# define SSL_F_TLS_CONSTRUCT_STOC_SUPPORTED_VERSIONS      611\n# define SSL_F_TLS_CONSTRUCT_STOC_USE_SRTP                462\n# define SSL_F_TLS_EARLY_POST_PROCESS_CLIENT_HELLO        521\n# define SSL_F_TLS_FINISH_HANDSHAKE                       597\n# define SSL_F_TLS_GET_MESSAGE_BODY                       351\n# define SSL_F_TLS_GET_MESSAGE_HEADER                     387\n# define SSL_F_TLS_HANDLE_ALPN                            562\n# define SSL_F_TLS_HANDLE_STATUS_REQUEST                  563\n# define SSL_F_TLS_PARSE_CERTIFICATE_AUTHORITIES          566\n# define SSL_F_TLS_PARSE_CLIENTHELLO_TLSEXT               449\n# define SSL_F_TLS_PARSE_CTOS_ALPN                        567\n# define SSL_F_TLS_PARSE_CTOS_COOKIE                      614\n# define SSL_F_TLS_PARSE_CTOS_EARLY_DATA                  568\n# define SSL_F_TLS_PARSE_CTOS_EC_PT_FORMATS               569\n# define SSL_F_TLS_PARSE_CTOS_EMS                         570\n# define SSL_F_TLS_PARSE_CTOS_KEY_SHARE                   463\n# define SSL_F_TLS_PARSE_CTOS_MAXFRAGMENTLEN              571\n# define SSL_F_TLS_PARSE_CTOS_POST_HANDSHAKE_AUTH         620\n# define SSL_F_TLS_PARSE_CTOS_PSK                         505\n# define SSL_F_TLS_PARSE_CTOS_PSK_KEX_MODES               572\n# define SSL_F_TLS_PARSE_CTOS_RENEGOTIATE                 464\n# define SSL_F_TLS_PARSE_CTOS_SERVER_NAME                 573\n# define SSL_F_TLS_PARSE_CTOS_SESSION_TICKET              574\n# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS                    575\n# define SSL_F_TLS_PARSE_CTOS_SIG_ALGS_CERT               615\n# define SSL_F_TLS_PARSE_CTOS_SRP                         576\n# define SSL_F_TLS_PARSE_CTOS_STATUS_REQUEST              577\n# define SSL_F_TLS_PARSE_CTOS_SUPPORTED_GROUPS            578\n# define SSL_F_TLS_PARSE_CTOS_USE_SRTP                    465\n# define SSL_F_TLS_PARSE_STOC_ALPN                        579\n# define SSL_F_TLS_PARSE_STOC_COOKIE                      534\n# define SSL_F_TLS_PARSE_STOC_EARLY_DATA                  538\n# define SSL_F_TLS_PARSE_STOC_EARLY_DATA_INFO             528\n# define SSL_F_TLS_PARSE_STOC_EC_PT_FORMATS               580\n# define SSL_F_TLS_PARSE_STOC_KEY_SHARE                   445\n# define SSL_F_TLS_PARSE_STOC_MAXFRAGMENTLEN              581\n# define SSL_F_TLS_PARSE_STOC_NPN                         582\n# define SSL_F_TLS_PARSE_STOC_PSK                         502\n# define SSL_F_TLS_PARSE_STOC_RENEGOTIATE                 448\n# define SSL_F_TLS_PARSE_STOC_SCT                         564\n# define SSL_F_TLS_PARSE_STOC_SERVER_NAME                 583\n# define SSL_F_TLS_PARSE_STOC_SESSION_TICKET              584\n# define SSL_F_TLS_PARSE_STOC_STATUS_REQUEST              585\n# define SSL_F_TLS_PARSE_STOC_SUPPORTED_VERSIONS          612\n# define SSL_F_TLS_PARSE_STOC_USE_SRTP                    446\n# define SSL_F_TLS_POST_PROCESS_CLIENT_HELLO              378\n# define SSL_F_TLS_POST_PROCESS_CLIENT_KEY_EXCHANGE       384\n# define SSL_F_TLS_PREPARE_CLIENT_CERTIFICATE             360\n# define SSL_F_TLS_PROCESS_AS_HELLO_RETRY_REQUEST         610\n# define SSL_F_TLS_PROCESS_CERTIFICATE_REQUEST            361\n# define SSL_F_TLS_PROCESS_CERT_STATUS                    362\n# define SSL_F_TLS_PROCESS_CERT_STATUS_BODY               495\n# define SSL_F_TLS_PROCESS_CERT_VERIFY                    379\n# define SSL_F_TLS_PROCESS_CHANGE_CIPHER_SPEC             363\n# define SSL_F_TLS_PROCESS_CKE_DHE                        411\n# define SSL_F_TLS_PROCESS_CKE_ECDHE                      412\n# define SSL_F_TLS_PROCESS_CKE_GOST                       413\n# define SSL_F_TLS_PROCESS_CKE_PSK_PREAMBLE               414\n# define SSL_F_TLS_PROCESS_CKE_RSA                        415\n# define SSL_F_TLS_PROCESS_CKE_SRP                        416\n# define SSL_F_TLS_PROCESS_CLIENT_CERTIFICATE             380\n# define SSL_F_TLS_PROCESS_CLIENT_HELLO                   381\n# define SSL_F_TLS_PROCESS_CLIENT_KEY_EXCHANGE            382\n# define SSL_F_TLS_PROCESS_ENCRYPTED_EXTENSIONS           444\n# define SSL_F_TLS_PROCESS_END_OF_EARLY_DATA              537\n# define SSL_F_TLS_PROCESS_FINISHED                       364\n# define SSL_F_TLS_PROCESS_HELLO_REQ                      507\n# define SSL_F_TLS_PROCESS_HELLO_RETRY_REQUEST            511\n# define SSL_F_TLS_PROCESS_INITIAL_SERVER_FLIGHT          442\n# define SSL_F_TLS_PROCESS_KEY_EXCHANGE                   365\n# define SSL_F_TLS_PROCESS_KEY_UPDATE                     518\n# define SSL_F_TLS_PROCESS_NEW_SESSION_TICKET             366\n# define SSL_F_TLS_PROCESS_NEXT_PROTO                     383\n# define SSL_F_TLS_PROCESS_SERVER_CERTIFICATE             367\n# define SSL_F_TLS_PROCESS_SERVER_DONE                    368\n# define SSL_F_TLS_PROCESS_SERVER_HELLO                   369\n# define SSL_F_TLS_PROCESS_SKE_DHE                        419\n# define SSL_F_TLS_PROCESS_SKE_ECDHE                      420\n# define SSL_F_TLS_PROCESS_SKE_PSK_PREAMBLE               421\n# define SSL_F_TLS_PROCESS_SKE_SRP                        422\n# define SSL_F_TLS_PSK_DO_BINDER                          506\n# define SSL_F_TLS_SCAN_CLIENTHELLO_TLSEXT                450\n# define SSL_F_TLS_SETUP_HANDSHAKE                        508\n# define SSL_F_USE_CERTIFICATE_CHAIN_FILE                 220\n# define SSL_F_WPACKET_INTERN_INIT_LEN                    633\n# define SSL_F_WPACKET_START_SUB_PACKET_LEN__             634\n# define SSL_F_WRITE_STATE_MACHINE                        586\n\n/*\n * SSL reason codes.\n */\n# define SSL_R_APPLICATION_DATA_AFTER_CLOSE_NOTIFY        291\n# define SSL_R_APP_DATA_IN_HANDSHAKE                      100\n# define SSL_R_ATTEMPT_TO_REUSE_SESSION_IN_DIFFERENT_CONTEXT 272\n# define SSL_R_AT_LEAST_TLS_1_0_NEEDED_IN_FIPS_MODE       143\n# define SSL_R_AT_LEAST_TLS_1_2_NEEDED_IN_SUITEB_MODE     158\n# define SSL_R_BAD_CHANGE_CIPHER_SPEC                     103\n# define SSL_R_BAD_CIPHER                                 186\n# define SSL_R_BAD_DATA                                   390\n# define SSL_R_BAD_DATA_RETURNED_BY_CALLBACK              106\n# define SSL_R_BAD_DECOMPRESSION                          107\n# define SSL_R_BAD_DH_VALUE                               102\n# define SSL_R_BAD_DIGEST_LENGTH                          111\n# define SSL_R_BAD_EARLY_DATA                             233\n# define SSL_R_BAD_ECC_CERT                               304\n# define SSL_R_BAD_ECPOINT                                306\n# define SSL_R_BAD_EXTENSION                              110\n# define SSL_R_BAD_HANDSHAKE_LENGTH                       332\n# define SSL_R_BAD_HANDSHAKE_STATE                        236\n# define SSL_R_BAD_HELLO_REQUEST                          105\n# define SSL_R_BAD_HRR_VERSION                            263\n# define SSL_R_BAD_KEY_SHARE                              108\n# define SSL_R_BAD_KEY_UPDATE                             122\n# define SSL_R_BAD_LEGACY_VERSION                         292\n# define SSL_R_BAD_LENGTH                                 271\n# define SSL_R_BAD_PACKET                                 240\n# define SSL_R_BAD_PACKET_LENGTH                          115\n# define SSL_R_BAD_PROTOCOL_VERSION_NUMBER                116\n# define SSL_R_BAD_PSK                                    219\n# define SSL_R_BAD_PSK_IDENTITY                           114\n# define SSL_R_BAD_RECORD_TYPE                            443\n# define SSL_R_BAD_RSA_ENCRYPT                            119\n# define SSL_R_BAD_SIGNATURE                              123\n# define SSL_R_BAD_SRP_A_LENGTH                           347\n# define SSL_R_BAD_SRP_PARAMETERS                         371\n# define SSL_R_BAD_SRTP_MKI_VALUE                         352\n# define SSL_R_BAD_SRTP_PROTECTION_PROFILE_LIST           353\n# define SSL_R_BAD_SSL_FILETYPE                           124\n# define SSL_R_BAD_VALUE                                  384\n# define SSL_R_BAD_WRITE_RETRY                            127\n# define SSL_R_BINDER_DOES_NOT_VERIFY                     253\n# define SSL_R_BIO_NOT_SET                                128\n# define SSL_R_BLOCK_CIPHER_PAD_IS_WRONG                  129\n# define SSL_R_BN_LIB                                     130\n# define SSL_R_CALLBACK_FAILED                            234\n# define SSL_R_CANNOT_CHANGE_CIPHER                       109\n# define SSL_R_CA_DN_LENGTH_MISMATCH                      131\n# define SSL_R_CA_KEY_TOO_SMALL                           397\n# define SSL_R_CA_MD_TOO_WEAK                             398\n# define SSL_R_CCS_RECEIVED_EARLY                         133\n# define SSL_R_CERTIFICATE_VERIFY_FAILED                  134\n# define SSL_R_CERT_CB_ERROR                              377\n# define SSL_R_CERT_LENGTH_MISMATCH                       135\n# define SSL_R_CIPHERSUITE_DIGEST_HAS_CHANGED             218\n# define SSL_R_CIPHER_CODE_WRONG_LENGTH                   137\n# define SSL_R_CIPHER_OR_HASH_UNAVAILABLE                 138\n# define SSL_R_CLIENTHELLO_TLSEXT                         226\n# define SSL_R_COMPRESSED_LENGTH_TOO_LONG                 140\n# define SSL_R_COMPRESSION_DISABLED                       343\n# define SSL_R_COMPRESSION_FAILURE                        141\n# define SSL_R_COMPRESSION_ID_NOT_WITHIN_PRIVATE_RANGE    307\n# define SSL_R_COMPRESSION_LIBRARY_ERROR                  142\n# define SSL_R_CONNECTION_TYPE_NOT_SET                    144\n# define SSL_R_CONTEXT_NOT_DANE_ENABLED                   167\n# define SSL_R_COOKIE_GEN_CALLBACK_FAILURE                400\n# define SSL_R_COOKIE_MISMATCH                            308\n# define SSL_R_CUSTOM_EXT_HANDLER_ALREADY_INSTALLED       206\n# define SSL_R_DANE_ALREADY_ENABLED                       172\n# define SSL_R_DANE_CANNOT_OVERRIDE_MTYPE_FULL            173\n# define SSL_R_DANE_NOT_ENABLED                           175\n# define SSL_R_DANE_TLSA_BAD_CERTIFICATE                  180\n# define SSL_R_DANE_TLSA_BAD_CERTIFICATE_USAGE            184\n# define SSL_R_DANE_TLSA_BAD_DATA_LENGTH                  189\n# define SSL_R_DANE_TLSA_BAD_DIGEST_LENGTH                192\n# define SSL_R_DANE_TLSA_BAD_MATCHING_TYPE                200\n# define SSL_R_DANE_TLSA_BAD_PUBLIC_KEY                   201\n# define SSL_R_DANE_TLSA_BAD_SELECTOR                     202\n# define SSL_R_DANE_TLSA_NULL_DATA                        203\n# define SSL_R_DATA_BETWEEN_CCS_AND_FINISHED              145\n# define SSL_R_DATA_LENGTH_TOO_LONG                       146\n# define SSL_R_DECRYPTION_FAILED                          147\n# define SSL_R_DECRYPTION_FAILED_OR_BAD_RECORD_MAC        281\n# define SSL_R_DH_KEY_TOO_SMALL                           394\n# define SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG            148\n# define SSL_R_DIGEST_CHECK_FAILED                        149\n# define SSL_R_DTLS_MESSAGE_TOO_BIG                       334\n# define SSL_R_DUPLICATE_COMPRESSION_ID                   309\n# define SSL_R_ECC_CERT_NOT_FOR_SIGNING                   318\n# define SSL_R_ECDH_REQUIRED_FOR_SUITEB_MODE              374\n# define SSL_R_EE_KEY_TOO_SMALL                           399\n# define SSL_R_EMPTY_SRTP_PROTECTION_PROFILE_LIST         354\n# define SSL_R_ENCRYPTED_LENGTH_TOO_LONG                  150\n# define SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST              151\n# define SSL_R_ERROR_SETTING_TLSA_BASE_DOMAIN             204\n# define SSL_R_EXCEEDS_MAX_FRAGMENT_SIZE                  194\n# define SSL_R_EXCESSIVE_MESSAGE_SIZE                     152\n# define SSL_R_EXTENSION_NOT_RECEIVED                     279\n# define SSL_R_EXTRA_DATA_IN_MESSAGE                      153\n# define SSL_R_EXT_LENGTH_MISMATCH                        163\n# define SSL_R_FAILED_TO_INIT_ASYNC                       405\n# define SSL_R_FRAGMENTED_CLIENT_HELLO                    401\n# define SSL_R_GOT_A_FIN_BEFORE_A_CCS                     154\n# define SSL_R_HTTPS_PROXY_REQUEST                        155\n# define SSL_R_HTTP_REQUEST                               156\n# define SSL_R_ILLEGAL_POINT_COMPRESSION                  162\n# define SSL_R_ILLEGAL_SUITEB_DIGEST                      380\n# define SSL_R_INAPPROPRIATE_FALLBACK                     373\n# define SSL_R_INCONSISTENT_COMPRESSION                   340\n# define SSL_R_INCONSISTENT_EARLY_DATA_ALPN               222\n# define SSL_R_INCONSISTENT_EARLY_DATA_SNI                231\n# define SSL_R_INCONSISTENT_EXTMS                         104\n# define SSL_R_INSUFFICIENT_SECURITY                      241\n# define SSL_R_INVALID_ALERT                              205\n# define SSL_R_INVALID_CCS_MESSAGE                        260\n# define SSL_R_INVALID_CERTIFICATE_OR_ALG                 238\n# define SSL_R_INVALID_COMMAND                            280\n# define SSL_R_INVALID_COMPRESSION_ALGORITHM              341\n# define SSL_R_INVALID_CONFIG                             283\n# define SSL_R_INVALID_CONFIGURATION_NAME                 113\n# define SSL_R_INVALID_CONTEXT                            282\n# define SSL_R_INVALID_CT_VALIDATION_TYPE                 212\n# define SSL_R_INVALID_KEY_UPDATE_TYPE                    120\n# define SSL_R_INVALID_MAX_EARLY_DATA                     174\n# define SSL_R_INVALID_NULL_CMD_NAME                      385\n# define SSL_R_INVALID_SEQUENCE_NUMBER                    402\n# define SSL_R_INVALID_SERVERINFO_DATA                    388\n# define SSL_R_INVALID_SESSION_ID                         999\n# define SSL_R_INVALID_SRP_USERNAME                       357\n# define SSL_R_INVALID_STATUS_RESPONSE                    328\n# define SSL_R_INVALID_TICKET_KEYS_LENGTH                 325\n# define SSL_R_LENGTH_MISMATCH                            159\n# define SSL_R_LENGTH_TOO_LONG                            404\n# define SSL_R_LENGTH_TOO_SHORT                           160\n# define SSL_R_LIBRARY_BUG                                274\n# define SSL_R_LIBRARY_HAS_NO_CIPHERS                     161\n# define SSL_R_MISSING_DSA_SIGNING_CERT                   165\n# define SSL_R_MISSING_ECDSA_SIGNING_CERT                 381\n# define SSL_R_MISSING_FATAL                              256\n# define SSL_R_MISSING_PARAMETERS                         290\n# define SSL_R_MISSING_RSA_CERTIFICATE                    168\n# define SSL_R_MISSING_RSA_ENCRYPTING_CERT                169\n# define SSL_R_MISSING_RSA_SIGNING_CERT                   170\n# define SSL_R_MISSING_SIGALGS_EXTENSION                  112\n# define SSL_R_MISSING_SIGNING_CERT                       221\n# define SSL_R_MISSING_SRP_PARAM                          358\n# define SSL_R_MISSING_SUPPORTED_GROUPS_EXTENSION         209\n# define SSL_R_MISSING_TMP_DH_KEY                         171\n# define SSL_R_MISSING_TMP_ECDH_KEY                       311\n# define SSL_R_MIXED_HANDSHAKE_AND_NON_HANDSHAKE_DATA     293\n# define SSL_R_NOT_ON_RECORD_BOUNDARY                     182\n# define SSL_R_NOT_REPLACING_CERTIFICATE                  289\n# define SSL_R_NOT_SERVER                                 284\n# define SSL_R_NO_APPLICATION_PROTOCOL                    235\n# define SSL_R_NO_CERTIFICATES_RETURNED                   176\n# define SSL_R_NO_CERTIFICATE_ASSIGNED                    177\n# define SSL_R_NO_CERTIFICATE_SET                         179\n# define SSL_R_NO_CHANGE_FOLLOWING_HRR                    214\n# define SSL_R_NO_CIPHERS_AVAILABLE                       181\n# define SSL_R_NO_CIPHERS_SPECIFIED                       183\n# define SSL_R_NO_CIPHER_MATCH                            185\n# define SSL_R_NO_CLIENT_CERT_METHOD                      331\n# define SSL_R_NO_COMPRESSION_SPECIFIED                   187\n# define SSL_R_NO_COOKIE_CALLBACK_SET                     287\n# define SSL_R_NO_GOST_CERTIFICATE_SENT_BY_PEER           330\n# define SSL_R_NO_METHOD_SPECIFIED                        188\n# define SSL_R_NO_PEM_EXTENSIONS                          389\n# define SSL_R_NO_PRIVATE_KEY_ASSIGNED                    190\n# define SSL_R_NO_PROTOCOLS_AVAILABLE                     191\n# define SSL_R_NO_RENEGOTIATION                           339\n# define SSL_R_NO_REQUIRED_DIGEST                         324\n# define SSL_R_NO_SHARED_CIPHER                           193\n# define SSL_R_NO_SHARED_GROUPS                           410\n# define SSL_R_NO_SHARED_SIGNATURE_ALGORITHMS             376\n# define SSL_R_NO_SRTP_PROFILES                           359\n# define SSL_R_NO_SUITABLE_KEY_SHARE                      101\n# define SSL_R_NO_SUITABLE_SIGNATURE_ALGORITHM            118\n# define SSL_R_NO_VALID_SCTS                              216\n# define SSL_R_NO_VERIFY_COOKIE_CALLBACK                  403\n# define SSL_R_NULL_SSL_CTX                               195\n# define SSL_R_NULL_SSL_METHOD_PASSED                     196\n# define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED            197\n# define SSL_R_OLD_SESSION_COMPRESSION_ALGORITHM_NOT_RETURNED 344\n# define SSL_R_OVERFLOW_ERROR                             237\n# define SSL_R_PACKET_LENGTH_TOO_LONG                     198\n# define SSL_R_PARSE_TLSEXT                               227\n# define SSL_R_PATH_TOO_LONG                              270\n# define SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE          199\n# define SSL_R_PEM_NAME_BAD_PREFIX                        391\n# define SSL_R_PEM_NAME_TOO_SHORT                         392\n# define SSL_R_PIPELINE_FAILURE                           406\n# define SSL_R_POST_HANDSHAKE_AUTH_ENCODING_ERR           278\n# define SSL_R_PRIVATE_KEY_MISMATCH                       288\n# define SSL_R_PROTOCOL_IS_SHUTDOWN                       207\n# define SSL_R_PSK_IDENTITY_NOT_FOUND                     223\n# define SSL_R_PSK_NO_CLIENT_CB                           224\n# define SSL_R_PSK_NO_SERVER_CB                           225\n# define SSL_R_READ_BIO_NOT_SET                           211\n# define SSL_R_READ_TIMEOUT_EXPIRED                       312\n# define SSL_R_RECORD_LENGTH_MISMATCH                     213\n# define SSL_R_RECORD_TOO_SMALL                           298\n# define SSL_R_RENEGOTIATE_EXT_TOO_LONG                   335\n# define SSL_R_RENEGOTIATION_ENCODING_ERR                 336\n# define SSL_R_RENEGOTIATION_MISMATCH                     337\n# define SSL_R_REQUEST_PENDING                            285\n# define SSL_R_REQUEST_SENT                               286\n# define SSL_R_REQUIRED_CIPHER_MISSING                    215\n# define SSL_R_REQUIRED_COMPRESSION_ALGORITHM_MISSING     342\n# define SSL_R_SCSV_RECEIVED_WHEN_RENEGOTIATING           345\n# define SSL_R_SCT_VERIFICATION_FAILED                    208\n# define SSL_R_SERVERHELLO_TLSEXT                         275\n# define SSL_R_SESSION_ID_CONTEXT_UNINITIALIZED           277\n# define SSL_R_SHUTDOWN_WHILE_IN_INIT                     407\n# define SSL_R_SIGNATURE_ALGORITHMS_ERROR                 360\n# define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE      220\n# define SSL_R_SRP_A_CALC                                 361\n# define SSL_R_SRTP_COULD_NOT_ALLOCATE_PROFILES           362\n# define SSL_R_SRTP_PROTECTION_PROFILE_LIST_TOO_LONG      363\n# define SSL_R_SRTP_UNKNOWN_PROTECTION_PROFILE            364\n# define SSL_R_SSL3_EXT_INVALID_MAX_FRAGMENT_LENGTH       232\n# define SSL_R_SSL3_EXT_INVALID_SERVERNAME                319\n# define SSL_R_SSL3_EXT_INVALID_SERVERNAME_TYPE           320\n# define SSL_R_SSL3_SESSION_ID_TOO_LONG                   300\n# define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE                1042\n# define SSL_R_SSLV3_ALERT_BAD_RECORD_MAC                 1020\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED            1045\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED            1044\n# define SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN            1046\n# define SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE          1030\n# define SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE              1040\n# define SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER              1047\n# define SSL_R_SSLV3_ALERT_NO_CERTIFICATE                 1041\n# define SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE             1010\n# define SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE        1043\n# define SSL_R_SSL_COMMAND_SECTION_EMPTY                  117\n# define SSL_R_SSL_COMMAND_SECTION_NOT_FOUND              125\n# define SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION         228\n# define SSL_R_SSL_HANDSHAKE_FAILURE                      229\n# define SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS                 230\n# define SSL_R_SSL_NEGATIVE_LENGTH                        372\n# define SSL_R_SSL_SECTION_EMPTY                          126\n# define SSL_R_SSL_SECTION_NOT_FOUND                      136\n# define SSL_R_SSL_SESSION_ID_CALLBACK_FAILED             301\n# define SSL_R_SSL_SESSION_ID_CONFLICT                    302\n# define SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG            273\n# define SSL_R_SSL_SESSION_ID_HAS_BAD_LENGTH              303\n# define SSL_R_SSL_SESSION_ID_TOO_LONG                    408\n# define SSL_R_SSL_SESSION_VERSION_MISMATCH               210\n# define SSL_R_STILL_IN_INIT                              121\n# define SSL_R_TLSV13_ALERT_CERTIFICATE_REQUIRED          1116\n# define SSL_R_TLSV13_ALERT_MISSING_EXTENSION             1109\n# define SSL_R_TLSV1_ALERT_ACCESS_DENIED                  1049\n# define SSL_R_TLSV1_ALERT_DECODE_ERROR                   1050\n# define SSL_R_TLSV1_ALERT_DECRYPTION_FAILED              1021\n# define SSL_R_TLSV1_ALERT_DECRYPT_ERROR                  1051\n# define SSL_R_TLSV1_ALERT_EXPORT_RESTRICTION             1060\n# define SSL_R_TLSV1_ALERT_INAPPROPRIATE_FALLBACK         1086\n# define SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY          1071\n# define SSL_R_TLSV1_ALERT_INTERNAL_ERROR                 1080\n# define SSL_R_TLSV1_ALERT_NO_RENEGOTIATION               1100\n# define SSL_R_TLSV1_ALERT_PROTOCOL_VERSION               1070\n# define SSL_R_TLSV1_ALERT_RECORD_OVERFLOW                1022\n# define SSL_R_TLSV1_ALERT_UNKNOWN_CA                     1048\n# define SSL_R_TLSV1_ALERT_USER_CANCELLED                 1090\n# define SSL_R_TLSV1_BAD_CERTIFICATE_HASH_VALUE           1114\n# define SSL_R_TLSV1_BAD_CERTIFICATE_STATUS_RESPONSE      1113\n# define SSL_R_TLSV1_CERTIFICATE_UNOBTAINABLE             1111\n# define SSL_R_TLSV1_UNRECOGNIZED_NAME                    1112\n# define SSL_R_TLSV1_UNSUPPORTED_EXTENSION                1110\n# define SSL_R_TLS_HEARTBEAT_PEER_DOESNT_ACCEPT           365\n# define SSL_R_TLS_HEARTBEAT_PENDING                      366\n# define SSL_R_TLS_ILLEGAL_EXPORTER_LABEL                 367\n# define SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST             157\n# define SSL_R_TOO_MANY_KEY_UPDATES                       132\n# define SSL_R_TOO_MANY_WARN_ALERTS                       409\n# define SSL_R_TOO_MUCH_EARLY_DATA                        164\n# define SSL_R_UNABLE_TO_FIND_ECDH_PARAMETERS             314\n# define SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS       239\n# define SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES           242\n# define SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES          243\n# define SSL_R_UNEXPECTED_CCS_MESSAGE                     262\n# define SSL_R_UNEXPECTED_END_OF_EARLY_DATA               178\n# define SSL_R_UNEXPECTED_MESSAGE                         244\n# define SSL_R_UNEXPECTED_RECORD                          245\n# define SSL_R_UNINITIALIZED                              276\n# define SSL_R_UNKNOWN_ALERT_TYPE                         246\n# define SSL_R_UNKNOWN_CERTIFICATE_TYPE                   247\n# define SSL_R_UNKNOWN_CIPHER_RETURNED                    248\n# define SSL_R_UNKNOWN_CIPHER_TYPE                        249\n# define SSL_R_UNKNOWN_CMD_NAME                           386\n# define SSL_R_UNKNOWN_COMMAND                            139\n# define SSL_R_UNKNOWN_DIGEST                             368\n# define SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE                  250\n# define SSL_R_UNKNOWN_PKEY_TYPE                          251\n# define SSL_R_UNKNOWN_PROTOCOL                           252\n# define SSL_R_UNKNOWN_SSL_VERSION                        254\n# define SSL_R_UNKNOWN_STATE                              255\n# define SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED       338\n# define SSL_R_UNSOLICITED_EXTENSION                      217\n# define SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM          257\n# define SSL_R_UNSUPPORTED_ELLIPTIC_CURVE                 315\n# define SSL_R_UNSUPPORTED_PROTOCOL                       258\n# define SSL_R_UNSUPPORTED_SSL_VERSION                    259\n# define SSL_R_UNSUPPORTED_STATUS_TYPE                    329\n# define SSL_R_USE_SRTP_NOT_NEGOTIATED                    369\n# define SSL_R_VERSION_TOO_HIGH                           166\n# define SSL_R_VERSION_TOO_LOW                            396\n# define SSL_R_WRONG_CERTIFICATE_TYPE                     383\n# define SSL_R_WRONG_CIPHER_RETURNED                      261\n# define SSL_R_WRONG_CURVE                                378\n# define SSL_R_WRONG_SIGNATURE_LENGTH                     264\n# define SSL_R_WRONG_SIGNATURE_SIZE                       265\n# define SSL_R_WRONG_SIGNATURE_TYPE                       370\n# define SSL_R_WRONG_SSL_VERSION                          266\n# define SSL_R_WRONG_VERSION_NUMBER                       267\n# define SSL_R_X509_LIB                                   268\n# define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS           269\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/stack.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_STACK_H\n# define HEADER_STACK_H\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef struct stack_st OPENSSL_STACK; /* Use STACK_OF(...) instead */\n\ntypedef int (*OPENSSL_sk_compfunc)(const void *, const void *);\ntypedef void (*OPENSSL_sk_freefunc)(void *);\ntypedef void *(*OPENSSL_sk_copyfunc)(const void *);\n\nint OPENSSL_sk_num(const OPENSSL_STACK *);\nvoid *OPENSSL_sk_value(const OPENSSL_STACK *, int);\n\nvoid *OPENSSL_sk_set(OPENSSL_STACK *st, int i, const void *data);\n\nOPENSSL_STACK *OPENSSL_sk_new(OPENSSL_sk_compfunc cmp);\nOPENSSL_STACK *OPENSSL_sk_new_null(void);\nOPENSSL_STACK *OPENSSL_sk_new_reserve(OPENSSL_sk_compfunc c, int n);\nint OPENSSL_sk_reserve(OPENSSL_STACK *st, int n);\nvoid OPENSSL_sk_free(OPENSSL_STACK *);\nvoid OPENSSL_sk_pop_free(OPENSSL_STACK *st, void (*func) (void *));\nOPENSSL_STACK *OPENSSL_sk_deep_copy(const OPENSSL_STACK *,\n                                    OPENSSL_sk_copyfunc c,\n                                    OPENSSL_sk_freefunc f);\nint OPENSSL_sk_insert(OPENSSL_STACK *sk, const void *data, int where);\nvoid *OPENSSL_sk_delete(OPENSSL_STACK *st, int loc);\nvoid *OPENSSL_sk_delete_ptr(OPENSSL_STACK *st, const void *p);\nint OPENSSL_sk_find(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_find_ex(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_push(OPENSSL_STACK *st, const void *data);\nint OPENSSL_sk_unshift(OPENSSL_STACK *st, const void *data);\nvoid *OPENSSL_sk_shift(OPENSSL_STACK *st);\nvoid *OPENSSL_sk_pop(OPENSSL_STACK *st);\nvoid OPENSSL_sk_zero(OPENSSL_STACK *st);\nOPENSSL_sk_compfunc OPENSSL_sk_set_cmp_func(OPENSSL_STACK *sk,\n                                            OPENSSL_sk_compfunc cmp);\nOPENSSL_STACK *OPENSSL_sk_dup(const OPENSSL_STACK *st);\nvoid OPENSSL_sk_sort(OPENSSL_STACK *st);\nint OPENSSL_sk_is_sorted(const OPENSSL_STACK *st);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define _STACK OPENSSL_STACK\n#  define sk_num OPENSSL_sk_num\n#  define sk_value OPENSSL_sk_value\n#  define sk_set OPENSSL_sk_set\n#  define sk_new OPENSSL_sk_new\n#  define sk_new_null OPENSSL_sk_new_null\n#  define sk_free OPENSSL_sk_free\n#  define sk_pop_free OPENSSL_sk_pop_free\n#  define sk_deep_copy OPENSSL_sk_deep_copy\n#  define sk_insert OPENSSL_sk_insert\n#  define sk_delete OPENSSL_sk_delete\n#  define sk_delete_ptr OPENSSL_sk_delete_ptr\n#  define sk_find OPENSSL_sk_find\n#  define sk_find_ex OPENSSL_sk_find_ex\n#  define sk_push OPENSSL_sk_push\n#  define sk_unshift OPENSSL_sk_unshift\n#  define sk_shift OPENSSL_sk_shift\n#  define sk_pop OPENSSL_sk_pop\n#  define sk_zero OPENSSL_sk_zero\n#  define sk_set_cmp_func OPENSSL_sk_set_cmp_func\n#  define sk_dup OPENSSL_sk_dup\n#  define sk_sort OPENSSL_sk_sort\n#  define sk_is_sorted OPENSSL_sk_is_sorted\n# endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/store.h",
    "content": "/*\n * Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OSSL_STORE_H\n# define HEADER_OSSL_STORE_H\n\n# include <stdarg.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/pem.h>\n# include <openssl/storeerr.h>\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*-\n *  The main OSSL_STORE functions.\n *  ------------------------------\n *\n *  These allow applications to open a channel to a resource with supported\n *  data (keys, certs, crls, ...), read the data a piece at a time and decide\n *  what to do with it, and finally close.\n */\n\ntypedef struct ossl_store_ctx_st OSSL_STORE_CTX;\n\n/*\n * Typedef for the OSSL_STORE_INFO post processing callback.  This can be used\n * to massage the given OSSL_STORE_INFO, or to drop it entirely (by returning\n * NULL).\n */\ntypedef OSSL_STORE_INFO *(*OSSL_STORE_post_process_info_fn)(OSSL_STORE_INFO *,\n                                                            void *);\n\n/*\n * Open a channel given a URI.  The given UI method will be used any time the\n * loader needs extra input, for example when a password or pin is needed, and\n * will be passed the same user data every time it's needed in this context.\n *\n * Returns a context reference which represents the channel to communicate\n * through.\n */\nOSSL_STORE_CTX *OSSL_STORE_open(const char *uri, const UI_METHOD *ui_method,\n                                void *ui_data,\n                                OSSL_STORE_post_process_info_fn post_process,\n                                void *post_process_data);\n\n/*\n * Control / fine tune the OSSL_STORE channel.  |cmd| determines what is to be\n * done, and depends on the underlying loader (use OSSL_STORE_get0_scheme to\n * determine which loader is used), except for common commands (see below).\n * Each command takes different arguments.\n */\nint OSSL_STORE_ctrl(OSSL_STORE_CTX *ctx, int cmd, ... /* args */);\nint OSSL_STORE_vctrl(OSSL_STORE_CTX *ctx, int cmd, va_list args);\n\n/*\n * Common ctrl commands that different loaders may choose to support.\n */\n/* int on = 0 or 1; STORE_ctrl(ctx, STORE_C_USE_SECMEM, &on); */\n# define OSSL_STORE_C_USE_SECMEM      1\n/* Where custom commands start */\n# define OSSL_STORE_C_CUSTOM_START    100\n\n/*\n * Read one data item (a key, a cert, a CRL) that is supported by the OSSL_STORE\n * functionality, given a context.\n * Returns a OSSL_STORE_INFO pointer, from which OpenSSL typed data can be\n * extracted with OSSL_STORE_INFO_get0_PKEY(), OSSL_STORE_INFO_get0_CERT(), ...\n * NULL is returned on error, which may include that the data found at the URI\n * can't be figured out for certain or is ambiguous.\n */\nOSSL_STORE_INFO *OSSL_STORE_load(OSSL_STORE_CTX *ctx);\n\n/*\n * Check if end of data (end of file) is reached\n * Returns 1 on end, 0 otherwise.\n */\nint OSSL_STORE_eof(OSSL_STORE_CTX *ctx);\n\n/*\n * Check if an error occurred\n * Returns 1 if it did, 0 otherwise.\n */\nint OSSL_STORE_error(OSSL_STORE_CTX *ctx);\n\n/*\n * Close the channel\n * Returns 1 on success, 0 on error.\n */\nint OSSL_STORE_close(OSSL_STORE_CTX *ctx);\n\n\n/*-\n *  Extracting OpenSSL types from and creating new OSSL_STORE_INFOs\n *  ---------------------------------------------------------------\n */\n\n/*\n * Types of data that can be ossl_stored in a OSSL_STORE_INFO.\n * OSSL_STORE_INFO_NAME is typically found when getting a listing of\n * available \"files\" / \"tokens\" / what have you.\n */\n# define OSSL_STORE_INFO_NAME           1   /* char * */\n# define OSSL_STORE_INFO_PARAMS         2   /* EVP_PKEY * */\n# define OSSL_STORE_INFO_PKEY           3   /* EVP_PKEY * */\n# define OSSL_STORE_INFO_CERT           4   /* X509 * */\n# define OSSL_STORE_INFO_CRL            5   /* X509_CRL * */\n\n/*\n * Functions to generate OSSL_STORE_INFOs, one function for each type we\n * support having in them, as well as a generic constructor.\n *\n * In all cases, ownership of the object is transferred to the OSSL_STORE_INFO\n * and will therefore be freed when the OSSL_STORE_INFO is freed.\n */\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_NAME(char *name);\nint OSSL_STORE_INFO_set0_NAME_description(OSSL_STORE_INFO *info, char *desc);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_PARAMS(EVP_PKEY *params);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_PKEY(EVP_PKEY *pkey);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_CERT(X509 *x509);\nOSSL_STORE_INFO *OSSL_STORE_INFO_new_CRL(X509_CRL *crl);\n\n/*\n * Functions to try to extract data from a OSSL_STORE_INFO.\n */\nint OSSL_STORE_INFO_get_type(const OSSL_STORE_INFO *info);\nconst char *OSSL_STORE_INFO_get0_NAME(const OSSL_STORE_INFO *info);\nchar *OSSL_STORE_INFO_get1_NAME(const OSSL_STORE_INFO *info);\nconst char *OSSL_STORE_INFO_get0_NAME_description(const OSSL_STORE_INFO *info);\nchar *OSSL_STORE_INFO_get1_NAME_description(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get0_PARAMS(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get1_PARAMS(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get0_PKEY(const OSSL_STORE_INFO *info);\nEVP_PKEY *OSSL_STORE_INFO_get1_PKEY(const OSSL_STORE_INFO *info);\nX509 *OSSL_STORE_INFO_get0_CERT(const OSSL_STORE_INFO *info);\nX509 *OSSL_STORE_INFO_get1_CERT(const OSSL_STORE_INFO *info);\nX509_CRL *OSSL_STORE_INFO_get0_CRL(const OSSL_STORE_INFO *info);\nX509_CRL *OSSL_STORE_INFO_get1_CRL(const OSSL_STORE_INFO *info);\n\nconst char *OSSL_STORE_INFO_type_string(int type);\n\n/*\n * Free the OSSL_STORE_INFO\n */\nvoid OSSL_STORE_INFO_free(OSSL_STORE_INFO *info);\n\n\n/*-\n *  Functions to construct a search URI from a base URI and search criteria\n *  -----------------------------------------------------------------------\n */\n\n/* OSSL_STORE search types */\n# define OSSL_STORE_SEARCH_BY_NAME              1 /* subject in certs, issuer in CRLs */\n# define OSSL_STORE_SEARCH_BY_ISSUER_SERIAL     2\n# define OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT   3\n# define OSSL_STORE_SEARCH_BY_ALIAS             4\n\n/* To check what search types the scheme handler supports */\nint OSSL_STORE_supports_search(OSSL_STORE_CTX *ctx, int search_type);\n\n/* Search term constructors */\n/*\n * The input is considered to be owned by the caller, and must therefore\n * remain present throughout the lifetime of the returned OSSL_STORE_SEARCH\n */\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_name(X509_NAME *name);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_issuer_serial(X509_NAME *name,\n                                                      const ASN1_INTEGER\n                                                      *serial);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_key_fingerprint(const EVP_MD *digest,\n                                                        const unsigned char\n                                                        *bytes, size_t len);\nOSSL_STORE_SEARCH *OSSL_STORE_SEARCH_by_alias(const char *alias);\n\n/* Search term destructor */\nvoid OSSL_STORE_SEARCH_free(OSSL_STORE_SEARCH *search);\n\n/* Search term accessors */\nint OSSL_STORE_SEARCH_get_type(const OSSL_STORE_SEARCH *criterion);\nX509_NAME *OSSL_STORE_SEARCH_get0_name(OSSL_STORE_SEARCH *criterion);\nconst ASN1_INTEGER *OSSL_STORE_SEARCH_get0_serial(const OSSL_STORE_SEARCH\n                                                  *criterion);\nconst unsigned char *OSSL_STORE_SEARCH_get0_bytes(const OSSL_STORE_SEARCH\n                                                  *criterion, size_t *length);\nconst char *OSSL_STORE_SEARCH_get0_string(const OSSL_STORE_SEARCH *criterion);\nconst EVP_MD *OSSL_STORE_SEARCH_get0_digest(const OSSL_STORE_SEARCH *criterion);\n\n/*\n * Add search criterion and expected return type (which can be unspecified)\n * to the loading channel.  This MUST happen before the first OSSL_STORE_load().\n */\nint OSSL_STORE_expect(OSSL_STORE_CTX *ctx, int expected_type);\nint OSSL_STORE_find(OSSL_STORE_CTX *ctx, OSSL_STORE_SEARCH *search);\n\n\n/*-\n *  Function to register a loader for the given URI scheme.\n *  -------------------------------------------------------\n *\n *  The loader receives all the main components of an URI except for the\n *  scheme.\n */\n\ntypedef struct ossl_store_loader_st OSSL_STORE_LOADER;\nOSSL_STORE_LOADER *OSSL_STORE_LOADER_new(ENGINE *e, const char *scheme);\nconst ENGINE *OSSL_STORE_LOADER_get0_engine(const OSSL_STORE_LOADER *loader);\nconst char *OSSL_STORE_LOADER_get0_scheme(const OSSL_STORE_LOADER *loader);\n/* struct ossl_store_loader_ctx_st is defined differently by each loader */\ntypedef struct ossl_store_loader_ctx_st OSSL_STORE_LOADER_CTX;\ntypedef OSSL_STORE_LOADER_CTX *(*OSSL_STORE_open_fn)(const OSSL_STORE_LOADER\n                                                     *loader,\n                                                     const char *uri,\n                                                     const UI_METHOD *ui_method,\n                                                     void *ui_data);\nint OSSL_STORE_LOADER_set_open(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_open_fn open_function);\ntypedef int (*OSSL_STORE_ctrl_fn)(OSSL_STORE_LOADER_CTX *ctx, int cmd,\n                                  va_list args);\nint OSSL_STORE_LOADER_set_ctrl(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_ctrl_fn ctrl_function);\ntypedef int (*OSSL_STORE_expect_fn)(OSSL_STORE_LOADER_CTX *ctx, int expected);\nint OSSL_STORE_LOADER_set_expect(OSSL_STORE_LOADER *loader,\n                                 OSSL_STORE_expect_fn expect_function);\ntypedef int (*OSSL_STORE_find_fn)(OSSL_STORE_LOADER_CTX *ctx,\n                                  OSSL_STORE_SEARCH *criteria);\nint OSSL_STORE_LOADER_set_find(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_find_fn find_function);\ntypedef OSSL_STORE_INFO *(*OSSL_STORE_load_fn)(OSSL_STORE_LOADER_CTX *ctx,\n                                               const UI_METHOD *ui_method,\n                                               void *ui_data);\nint OSSL_STORE_LOADER_set_load(OSSL_STORE_LOADER *loader,\n                               OSSL_STORE_load_fn load_function);\ntypedef int (*OSSL_STORE_eof_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_eof(OSSL_STORE_LOADER *loader,\n                              OSSL_STORE_eof_fn eof_function);\ntypedef int (*OSSL_STORE_error_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_error(OSSL_STORE_LOADER *loader,\n                                OSSL_STORE_error_fn error_function);\ntypedef int (*OSSL_STORE_close_fn)(OSSL_STORE_LOADER_CTX *ctx);\nint OSSL_STORE_LOADER_set_close(OSSL_STORE_LOADER *loader,\n                                OSSL_STORE_close_fn close_function);\nvoid OSSL_STORE_LOADER_free(OSSL_STORE_LOADER *loader);\n\nint OSSL_STORE_register_loader(OSSL_STORE_LOADER *loader);\nOSSL_STORE_LOADER *OSSL_STORE_unregister_loader(const char *scheme);\n\n/*-\n *  Functions to list STORE loaders\n *  -------------------------------\n */\nint OSSL_STORE_do_all_loaders(void (*do_function) (const OSSL_STORE_LOADER\n                                                   *loader, void *do_arg),\n                              void *do_arg);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/storeerr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_OSSL_STOREERR_H\n# define HEADER_OSSL_STOREERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_OSSL_STORE_strings(void);\n\n/*\n * OSSL_STORE function codes.\n */\n# define OSSL_STORE_F_FILE_CTRL                           129\n# define OSSL_STORE_F_FILE_FIND                           138\n# define OSSL_STORE_F_FILE_GET_PASS                       118\n# define OSSL_STORE_F_FILE_LOAD                           119\n# define OSSL_STORE_F_FILE_LOAD_TRY_DECODE                124\n# define OSSL_STORE_F_FILE_NAME_TO_URI                    126\n# define OSSL_STORE_F_FILE_OPEN                           120\n# define OSSL_STORE_F_OSSL_STORE_ATTACH_PEM_BIO           127\n# define OSSL_STORE_F_OSSL_STORE_EXPECT                   130\n# define OSSL_STORE_F_OSSL_STORE_FILE_ATTACH_PEM_BIO_INT  128\n# define OSSL_STORE_F_OSSL_STORE_FIND                     131\n# define OSSL_STORE_F_OSSL_STORE_GET0_LOADER_INT          100\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CERT           101\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_CRL            102\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME           103\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_NAME_DESCRIPTION 135\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PARAMS         104\n# define OSSL_STORE_F_OSSL_STORE_INFO_GET1_PKEY           105\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CERT            106\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_CRL             107\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_EMBEDDED        123\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_NAME            109\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PARAMS          110\n# define OSSL_STORE_F_OSSL_STORE_INFO_NEW_PKEY            111\n# define OSSL_STORE_F_OSSL_STORE_INFO_SET0_NAME_DESCRIPTION 134\n# define OSSL_STORE_F_OSSL_STORE_INIT_ONCE                112\n# define OSSL_STORE_F_OSSL_STORE_LOADER_NEW               113\n# define OSSL_STORE_F_OSSL_STORE_OPEN                     114\n# define OSSL_STORE_F_OSSL_STORE_OPEN_INT                 115\n# define OSSL_STORE_F_OSSL_STORE_REGISTER_LOADER_INT      117\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ALIAS          132\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_ISSUER_SERIAL  133\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_KEY_FINGERPRINT 136\n# define OSSL_STORE_F_OSSL_STORE_SEARCH_BY_NAME           137\n# define OSSL_STORE_F_OSSL_STORE_UNREGISTER_LOADER_INT    116\n# define OSSL_STORE_F_TRY_DECODE_PARAMS                   121\n# define OSSL_STORE_F_TRY_DECODE_PKCS12                   122\n# define OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED           125\n\n/*\n * OSSL_STORE reason codes.\n */\n# define OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE              107\n# define OSSL_STORE_R_BAD_PASSWORD_READ                   115\n# define OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC          113\n# define OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST 121\n# define OSSL_STORE_R_INVALID_SCHEME                      106\n# define OSSL_STORE_R_IS_NOT_A                            112\n# define OSSL_STORE_R_LOADER_INCOMPLETE                   116\n# define OSSL_STORE_R_LOADING_STARTED                     117\n# define OSSL_STORE_R_NOT_A_CERTIFICATE                   100\n# define OSSL_STORE_R_NOT_A_CRL                           101\n# define OSSL_STORE_R_NOT_A_KEY                           102\n# define OSSL_STORE_R_NOT_A_NAME                          103\n# define OSSL_STORE_R_NOT_PARAMETERS                      104\n# define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR           114\n# define OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE               108\n# define OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 119\n# define OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED 109\n# define OSSL_STORE_R_UNREGISTERED_SCHEME                 105\n# define OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE            110\n# define OSSL_STORE_R_UNSUPPORTED_OPERATION               118\n# define OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE             120\n# define OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED           111\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/symhacks.h",
    "content": "/*\n * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_SYMHACKS_H\n# define HEADER_SYMHACKS_H\n\n# include <openssl/e_os2.h>\n\n/* Case insensitive linking causes problems.... */\n# if defined(OPENSSL_SYS_VMS)\n#  undef ERR_load_CRYPTO_strings\n#  define ERR_load_CRYPTO_strings                 ERR_load_CRYPTOlib_strings\n#  undef OCSP_crlID_new\n#  define OCSP_crlID_new                          OCSP_crlID2_new\n\n#  undef d2i_ECPARAMETERS\n#  define d2i_ECPARAMETERS                        d2i_UC_ECPARAMETERS\n#  undef i2d_ECPARAMETERS\n#  define i2d_ECPARAMETERS                        i2d_UC_ECPARAMETERS\n#  undef d2i_ECPKPARAMETERS\n#  define d2i_ECPKPARAMETERS                      d2i_UC_ECPKPARAMETERS\n#  undef i2d_ECPKPARAMETERS\n#  define i2d_ECPKPARAMETERS                      i2d_UC_ECPKPARAMETERS\n\n/* This one clashes with CMS_data_create */\n#  undef cms_Data_create\n#  define cms_Data_create                         priv_cms_Data_create\n\n# endif\n\n#endif                          /* ! defined HEADER_VMS_IDHACKS_H */\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/tls1.h",
    "content": "/*\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n * Copyright 2005 Nokia. All rights reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TLS1_H\n# define HEADER_TLS1_H\n\n# include <openssl/buffer.h>\n# include <openssl/x509.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/* Default security level if not overridden at config time */\n# ifndef OPENSSL_TLS_SECURITY_LEVEL\n#  define OPENSSL_TLS_SECURITY_LEVEL 1\n# endif\n\n# define TLS1_VERSION                    0x0301\n# define TLS1_1_VERSION                  0x0302\n# define TLS1_2_VERSION                  0x0303\n# define TLS1_3_VERSION                  0x0304\n# define TLS_MAX_VERSION                 TLS1_3_VERSION\n\n/* Special value for method supporting multiple versions */\n# define TLS_ANY_VERSION                 0x10000\n\n# define TLS1_VERSION_MAJOR              0x03\n# define TLS1_VERSION_MINOR              0x01\n\n# define TLS1_1_VERSION_MAJOR            0x03\n# define TLS1_1_VERSION_MINOR            0x02\n\n# define TLS1_2_VERSION_MAJOR            0x03\n# define TLS1_2_VERSION_MINOR            0x03\n\n# define TLS1_get_version(s) \\\n        ((SSL_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_version(s) : 0)\n\n# define TLS1_get_client_version(s) \\\n        ((SSL_client_version(s) >> 8) == TLS1_VERSION_MAJOR ? SSL_client_version(s) : 0)\n\n# define TLS1_AD_DECRYPTION_FAILED       21\n# define TLS1_AD_RECORD_OVERFLOW         22\n# define TLS1_AD_UNKNOWN_CA              48/* fatal */\n# define TLS1_AD_ACCESS_DENIED           49/* fatal */\n# define TLS1_AD_DECODE_ERROR            50/* fatal */\n# define TLS1_AD_DECRYPT_ERROR           51\n# define TLS1_AD_EXPORT_RESTRICTION      60/* fatal */\n# define TLS1_AD_PROTOCOL_VERSION        70/* fatal */\n# define TLS1_AD_INSUFFICIENT_SECURITY   71/* fatal */\n# define TLS1_AD_INTERNAL_ERROR          80/* fatal */\n# define TLS1_AD_INAPPROPRIATE_FALLBACK  86/* fatal */\n# define TLS1_AD_USER_CANCELLED          90\n# define TLS1_AD_NO_RENEGOTIATION        100\n/* TLSv1.3 alerts */\n# define TLS13_AD_MISSING_EXTENSION      109 /* fatal */\n# define TLS13_AD_CERTIFICATE_REQUIRED   116 /* fatal */\n/* codes 110-114 are from RFC3546 */\n# define TLS1_AD_UNSUPPORTED_EXTENSION   110\n# define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111\n# define TLS1_AD_UNRECOGNIZED_NAME       112\n# define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113\n# define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114\n# define TLS1_AD_UNKNOWN_PSK_IDENTITY    115/* fatal */\n# define TLS1_AD_NO_APPLICATION_PROTOCOL 120 /* fatal */\n\n/* ExtensionType values from RFC3546 / RFC4366 / RFC6066 */\n# define TLSEXT_TYPE_server_name                 0\n# define TLSEXT_TYPE_max_fragment_length         1\n# define TLSEXT_TYPE_client_certificate_url      2\n# define TLSEXT_TYPE_trusted_ca_keys             3\n# define TLSEXT_TYPE_truncated_hmac              4\n# define TLSEXT_TYPE_status_request              5\n/* ExtensionType values from RFC4681 */\n# define TLSEXT_TYPE_user_mapping                6\n/* ExtensionType values from RFC5878 */\n# define TLSEXT_TYPE_client_authz                7\n# define TLSEXT_TYPE_server_authz                8\n/* ExtensionType values from RFC6091 */\n# define TLSEXT_TYPE_cert_type           9\n\n/* ExtensionType values from RFC4492 */\n/*\n * Prior to TLSv1.3 the supported_groups extension was known as\n * elliptic_curves\n */\n# define TLSEXT_TYPE_supported_groups            10\n# define TLSEXT_TYPE_elliptic_curves             TLSEXT_TYPE_supported_groups\n# define TLSEXT_TYPE_ec_point_formats            11\n\n\n/* ExtensionType value from RFC5054 */\n# define TLSEXT_TYPE_srp                         12\n\n/* ExtensionType values from RFC5246 */\n# define TLSEXT_TYPE_signature_algorithms        13\n\n/* ExtensionType value from RFC5764 */\n# define TLSEXT_TYPE_use_srtp    14\n\n/* ExtensionType value from RFC5620 */\n# define TLSEXT_TYPE_heartbeat   15\n\n/* ExtensionType value from RFC7301 */\n# define TLSEXT_TYPE_application_layer_protocol_negotiation 16\n\n/*\n * Extension type for Certificate Transparency\n * https://tools.ietf.org/html/rfc6962#section-3.3.1\n */\n# define TLSEXT_TYPE_signed_certificate_timestamp    18\n\n/*\n * ExtensionType value for TLS padding extension.\n * http://tools.ietf.org/html/draft-agl-tls-padding\n */\n# define TLSEXT_TYPE_padding     21\n\n/* ExtensionType value from RFC7366 */\n# define TLSEXT_TYPE_encrypt_then_mac    22\n\n/* ExtensionType value from RFC7627 */\n# define TLSEXT_TYPE_extended_master_secret      23\n\n/* ExtensionType value from RFC4507 */\n# define TLSEXT_TYPE_session_ticket              35\n\n/* As defined for TLS1.3 */\n# define TLSEXT_TYPE_psk                         41\n# define TLSEXT_TYPE_early_data                  42\n# define TLSEXT_TYPE_supported_versions          43\n# define TLSEXT_TYPE_cookie                      44\n# define TLSEXT_TYPE_psk_kex_modes               45\n# define TLSEXT_TYPE_certificate_authorities     47\n# define TLSEXT_TYPE_post_handshake_auth         49\n# define TLSEXT_TYPE_signature_algorithms_cert   50\n# define TLSEXT_TYPE_key_share                   51\n\n/* Temporary extension type */\n# define TLSEXT_TYPE_renegotiate                 0xff01\n\n# ifndef OPENSSL_NO_NEXTPROTONEG\n/* This is not an IANA defined extension number */\n#  define TLSEXT_TYPE_next_proto_neg              13172\n# endif\n\n/* NameType value from RFC3546 */\n# define TLSEXT_NAMETYPE_host_name 0\n/* status request value from RFC3546 */\n# define TLSEXT_STATUSTYPE_ocsp 1\n\n/* ECPointFormat values from RFC4492 */\n# define TLSEXT_ECPOINTFORMAT_first                      0\n# define TLSEXT_ECPOINTFORMAT_uncompressed               0\n# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime  1\n# define TLSEXT_ECPOINTFORMAT_ansiX962_compressed_char2  2\n# define TLSEXT_ECPOINTFORMAT_last                       2\n\n/* Signature and hash algorithms from RFC5246 */\n# define TLSEXT_signature_anonymous                      0\n# define TLSEXT_signature_rsa                            1\n# define TLSEXT_signature_dsa                            2\n# define TLSEXT_signature_ecdsa                          3\n# define TLSEXT_signature_gostr34102001                  237\n# define TLSEXT_signature_gostr34102012_256              238\n# define TLSEXT_signature_gostr34102012_512              239\n\n/* Total number of different signature algorithms */\n# define TLSEXT_signature_num                            7\n\n# define TLSEXT_hash_none                                0\n# define TLSEXT_hash_md5                                 1\n# define TLSEXT_hash_sha1                                2\n# define TLSEXT_hash_sha224                              3\n# define TLSEXT_hash_sha256                              4\n# define TLSEXT_hash_sha384                              5\n# define TLSEXT_hash_sha512                              6\n# define TLSEXT_hash_gostr3411                           237\n# define TLSEXT_hash_gostr34112012_256                   238\n# define TLSEXT_hash_gostr34112012_512                   239\n\n/* Total number of different digest algorithms */\n\n# define TLSEXT_hash_num                                 10\n\n/* Flag set for unrecognised algorithms */\n# define TLSEXT_nid_unknown                              0x1000000\n\n/* ECC curves */\n\n# define TLSEXT_curve_P_256                              23\n# define TLSEXT_curve_P_384                              24\n\n/* OpenSSL value to disable maximum fragment length extension */\n# define TLSEXT_max_fragment_length_DISABLED    0\n/* Allowed values for max fragment length extension */\n# define TLSEXT_max_fragment_length_512         1\n# define TLSEXT_max_fragment_length_1024        2\n# define TLSEXT_max_fragment_length_2048        3\n# define TLSEXT_max_fragment_length_4096        4\n\nint SSL_CTX_set_tlsext_max_fragment_length(SSL_CTX *ctx, uint8_t mode);\nint SSL_set_tlsext_max_fragment_length(SSL *ssl, uint8_t mode);\n\n# define TLSEXT_MAXLEN_host_name 255\n\n__owur const char *SSL_get_servername(const SSL *s, const int type);\n__owur int SSL_get_servername_type(const SSL *s);\n/*\n * SSL_export_keying_material exports a value derived from the master secret,\n * as specified in RFC 5705. It writes |olen| bytes to |out| given a label and\n * optional context. (Since a zero length context is allowed, the |use_context|\n * flag controls whether a context is included.) It returns 1 on success and\n * 0 or -1 otherwise.\n */\n__owur int SSL_export_keying_material(SSL *s, unsigned char *out, size_t olen,\n                                      const char *label, size_t llen,\n                                      const unsigned char *context,\n                                      size_t contextlen, int use_context);\n\n/*\n * SSL_export_keying_material_early exports a value derived from the\n * early exporter master secret, as specified in\n * https://tools.ietf.org/html/draft-ietf-tls-tls13-23. It writes\n * |olen| bytes to |out| given a label and optional context. It\n * returns 1 on success and 0 otherwise.\n */\n__owur int SSL_export_keying_material_early(SSL *s, unsigned char *out,\n                                            size_t olen, const char *label,\n                                            size_t llen,\n                                            const unsigned char *context,\n                                            size_t contextlen);\n\nint SSL_get_peer_signature_type_nid(const SSL *s, int *pnid);\nint SSL_get_signature_type_nid(const SSL *s, int *pnid);\n\nint SSL_get_sigalgs(SSL *s, int idx,\n                    int *psign, int *phash, int *psignandhash,\n                    unsigned char *rsig, unsigned char *rhash);\n\nint SSL_get_shared_sigalgs(SSL *s, int idx,\n                           int *psign, int *phash, int *psignandhash,\n                           unsigned char *rsig, unsigned char *rhash);\n\n__owur int SSL_check_chain(SSL *s, X509 *x, EVP_PKEY *pk, STACK_OF(X509) *chain);\n\n# define SSL_set_tlsext_host_name(s,name) \\\n        SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,\\\n                (void *)name)\n\n# define SSL_set_tlsext_debug_callback(ssl, cb) \\\n        SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_set_tlsext_debug_arg(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0,arg)\n\n# define SSL_get_tlsext_status_type(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)\n\n# define SSL_set_tlsext_status_type(ssl, type) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)\n\n# define SSL_get_tlsext_status_exts(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0,arg)\n\n# define SSL_set_tlsext_status_exts(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0,arg)\n\n# define SSL_get_tlsext_status_ids(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0,arg)\n\n# define SSL_set_tlsext_status_ids(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0,arg)\n\n# define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0,arg)\n\n# define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen,arg)\n\n# define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \\\n        SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_TLSEXT_ERR_OK 0\n# define SSL_TLSEXT_ERR_ALERT_WARNING 1\n# define SSL_TLSEXT_ERR_ALERT_FATAL 2\n# define SSL_TLSEXT_ERR_NOACK 3\n\n# define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0,arg)\n\n# define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_GET_TLSEXT_TICKET_KEYS,keylen,keys)\n# define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \\\n        SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_TICKET_KEYS,keylen,keys)\n\n# define SSL_CTX_get_tlsext_status_cb(ssl, cb) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB,0,(void *)cb)\n# define SSL_CTX_set_tlsext_status_cb(ssl, cb) \\\n        SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,\\\n                (void (*)(void))cb)\n\n# define SSL_CTX_get_tlsext_status_arg(ssl, arg) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)\n# define SSL_CTX_set_tlsext_status_arg(ssl, arg) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0,arg)\n\n# define SSL_CTX_set_tlsext_status_type(ssl, type) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type,NULL)\n\n# define SSL_CTX_get_tlsext_status_type(ssl) \\\n        SSL_CTX_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_TYPE,0,NULL)\n\n# define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \\\n        SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,\\\n                (void (*)(void))cb)\n\n# ifndef OPENSSL_NO_HEARTBEATS\n#  define SSL_DTLSEXT_HB_ENABLED                   0x01\n#  define SSL_DTLSEXT_HB_DONT_SEND_REQUESTS        0x02\n#  define SSL_DTLSEXT_HB_DONT_RECV_REQUESTS        0x04\n#  define SSL_get_dtlsext_heartbeat_pending(ssl) \\\n        SSL_ctrl(ssl,SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING,0,NULL)\n#  define SSL_set_dtlsext_heartbeat_no_requests(ssl, arg) \\\n        SSL_ctrl(ssl,SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS,arg,NULL)\n\n#  if OPENSSL_API_COMPAT < 0x10100000L\n#   define SSL_CTRL_TLS_EXT_SEND_HEARTBEAT \\\n        SSL_CTRL_DTLS_EXT_SEND_HEARTBEAT\n#   define SSL_CTRL_GET_TLS_EXT_HEARTBEAT_PENDING \\\n        SSL_CTRL_GET_DTLS_EXT_HEARTBEAT_PENDING\n#   define SSL_CTRL_SET_TLS_EXT_HEARTBEAT_NO_REQUESTS \\\n        SSL_CTRL_SET_DTLS_EXT_HEARTBEAT_NO_REQUESTS\n#   define SSL_TLSEXT_HB_ENABLED \\\n        SSL_DTLSEXT_HB_ENABLED\n#   define SSL_TLSEXT_HB_DONT_SEND_REQUESTS \\\n        SSL_DTLSEXT_HB_DONT_SEND_REQUESTS\n#   define SSL_TLSEXT_HB_DONT_RECV_REQUESTS \\\n        SSL_DTLSEXT_HB_DONT_RECV_REQUESTS\n#   define SSL_get_tlsext_heartbeat_pending(ssl) \\\n        SSL_get_dtlsext_heartbeat_pending(ssl)\n#   define SSL_set_tlsext_heartbeat_no_requests(ssl, arg) \\\n        SSL_set_dtlsext_heartbeat_no_requests(ssl,arg)\n#  endif\n# endif\n\n/* PSK ciphersuites from 4279 */\n# define TLS1_CK_PSK_WITH_RC4_128_SHA                    0x0300008A\n# define TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA               0x0300008B\n# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA                0x0300008C\n# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA                0x0300008D\n# define TLS1_CK_DHE_PSK_WITH_RC4_128_SHA                0x0300008E\n# define TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA           0x0300008F\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA            0x03000090\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA            0x03000091\n# define TLS1_CK_RSA_PSK_WITH_RC4_128_SHA                0x03000092\n# define TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA           0x03000093\n# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA            0x03000094\n# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA            0x03000095\n\n/* PSK ciphersuites from 5487 */\n# define TLS1_CK_PSK_WITH_AES_128_GCM_SHA256             0x030000A8\n# define TLS1_CK_PSK_WITH_AES_256_GCM_SHA384             0x030000A9\n# define TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256         0x030000AA\n# define TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384         0x030000AB\n# define TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256         0x030000AC\n# define TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384         0x030000AD\n# define TLS1_CK_PSK_WITH_AES_128_CBC_SHA256             0x030000AE\n# define TLS1_CK_PSK_WITH_AES_256_CBC_SHA384             0x030000AF\n# define TLS1_CK_PSK_WITH_NULL_SHA256                    0x030000B0\n# define TLS1_CK_PSK_WITH_NULL_SHA384                    0x030000B1\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256         0x030000B2\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384         0x030000B3\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA256                0x030000B4\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA384                0x030000B5\n# define TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256         0x030000B6\n# define TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384         0x030000B7\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA256                0x030000B8\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA384                0x030000B9\n\n/* NULL PSK ciphersuites from RFC4785 */\n# define TLS1_CK_PSK_WITH_NULL_SHA                       0x0300002C\n# define TLS1_CK_DHE_PSK_WITH_NULL_SHA                   0x0300002D\n# define TLS1_CK_RSA_PSK_WITH_NULL_SHA                   0x0300002E\n\n/* AES ciphersuites from RFC3268 */\n# define TLS1_CK_RSA_WITH_AES_128_SHA                    0x0300002F\n# define TLS1_CK_DH_DSS_WITH_AES_128_SHA                 0x03000030\n# define TLS1_CK_DH_RSA_WITH_AES_128_SHA                 0x03000031\n# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA                0x03000032\n# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA                0x03000033\n# define TLS1_CK_ADH_WITH_AES_128_SHA                    0x03000034\n# define TLS1_CK_RSA_WITH_AES_256_SHA                    0x03000035\n# define TLS1_CK_DH_DSS_WITH_AES_256_SHA                 0x03000036\n# define TLS1_CK_DH_RSA_WITH_AES_256_SHA                 0x03000037\n# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA                0x03000038\n# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA                0x03000039\n# define TLS1_CK_ADH_WITH_AES_256_SHA                    0x0300003A\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_CK_RSA_WITH_NULL_SHA256                    0x0300003B\n# define TLS1_CK_RSA_WITH_AES_128_SHA256                 0x0300003C\n# define TLS1_CK_RSA_WITH_AES_256_SHA256                 0x0300003D\n# define TLS1_CK_DH_DSS_WITH_AES_128_SHA256              0x0300003E\n# define TLS1_CK_DH_RSA_WITH_AES_128_SHA256              0x0300003F\n# define TLS1_CK_DHE_DSS_WITH_AES_128_SHA256             0x03000040\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA           0x03000041\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA        0x03000042\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA        0x03000043\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA       0x03000044\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA       0x03000045\n# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA           0x03000046\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_CK_DHE_RSA_WITH_AES_128_SHA256             0x03000067\n# define TLS1_CK_DH_DSS_WITH_AES_256_SHA256              0x03000068\n# define TLS1_CK_DH_RSA_WITH_AES_256_SHA256              0x03000069\n# define TLS1_CK_DHE_DSS_WITH_AES_256_SHA256             0x0300006A\n# define TLS1_CK_DHE_RSA_WITH_AES_256_SHA256             0x0300006B\n# define TLS1_CK_ADH_WITH_AES_128_SHA256                 0x0300006C\n# define TLS1_CK_ADH_WITH_AES_256_SHA256                 0x0300006D\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA           0x03000084\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA        0x03000085\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA        0x03000086\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA       0x03000087\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA       0x03000088\n# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA           0x03000089\n\n/* SEED ciphersuites from RFC4162 */\n# define TLS1_CK_RSA_WITH_SEED_SHA                       0x03000096\n# define TLS1_CK_DH_DSS_WITH_SEED_SHA                    0x03000097\n# define TLS1_CK_DH_RSA_WITH_SEED_SHA                    0x03000098\n# define TLS1_CK_DHE_DSS_WITH_SEED_SHA                   0x03000099\n# define TLS1_CK_DHE_RSA_WITH_SEED_SHA                   0x0300009A\n# define TLS1_CK_ADH_WITH_SEED_SHA                       0x0300009B\n\n/* TLS v1.2 GCM ciphersuites from RFC5288 */\n# define TLS1_CK_RSA_WITH_AES_128_GCM_SHA256             0x0300009C\n# define TLS1_CK_RSA_WITH_AES_256_GCM_SHA384             0x0300009D\n# define TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256         0x0300009E\n# define TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384         0x0300009F\n# define TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256          0x030000A0\n# define TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384          0x030000A1\n# define TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256         0x030000A2\n# define TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384         0x030000A3\n# define TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256          0x030000A4\n# define TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384          0x030000A5\n# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256             0x030000A6\n# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384             0x030000A7\n\n/* CCM ciphersuites from RFC6655 */\n# define TLS1_CK_RSA_WITH_AES_128_CCM                    0x0300C09C\n# define TLS1_CK_RSA_WITH_AES_256_CCM                    0x0300C09D\n# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM                0x0300C09E\n# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM                0x0300C09F\n# define TLS1_CK_RSA_WITH_AES_128_CCM_8                  0x0300C0A0\n# define TLS1_CK_RSA_WITH_AES_256_CCM_8                  0x0300C0A1\n# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8              0x0300C0A2\n# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8              0x0300C0A3\n# define TLS1_CK_PSK_WITH_AES_128_CCM                    0x0300C0A4\n# define TLS1_CK_PSK_WITH_AES_256_CCM                    0x0300C0A5\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM                0x0300C0A6\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM                0x0300C0A7\n# define TLS1_CK_PSK_WITH_AES_128_CCM_8                  0x0300C0A8\n# define TLS1_CK_PSK_WITH_AES_256_CCM_8                  0x0300C0A9\n# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8              0x0300C0AA\n# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8              0x0300C0AB\n\n/* CCM ciphersuites from RFC7251 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM            0x0300C0AC\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM            0x0300C0AD\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8          0x0300C0AE\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8          0x0300C0AF\n\n/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */\n# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256                0x030000BA\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256             0x030000BB\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256             0x030000BC\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256            0x030000BD\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256            0x030000BE\n# define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256                0x030000BF\n\n# define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256                0x030000C0\n# define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256             0x030000C1\n# define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256             0x030000C2\n# define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256            0x030000C3\n# define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256            0x030000C4\n# define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256                0x030000C5\n\n/* ECC ciphersuites from RFC4492 */\n# define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA                0x0300C001\n# define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA             0x0300C002\n# define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA        0x0300C003\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA         0x0300C004\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA         0x0300C005\n\n# define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA               0x0300C006\n# define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA            0x0300C007\n# define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA       0x0300C008\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA        0x0300C009\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA        0x0300C00A\n\n# define TLS1_CK_ECDH_RSA_WITH_NULL_SHA                  0x0300C00B\n# define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA               0x0300C00C\n# define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA          0x0300C00D\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA           0x0300C00E\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA           0x0300C00F\n\n# define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA                 0x0300C010\n# define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA              0x0300C011\n# define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA         0x0300C012\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA          0x0300C013\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA          0x0300C014\n\n# define TLS1_CK_ECDH_anon_WITH_NULL_SHA                 0x0300C015\n# define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA              0x0300C016\n# define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA         0x0300C017\n# define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA          0x0300C018\n# define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA          0x0300C019\n\n/* SRP ciphersuites from RFC 5054 */\n# define TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA           0x0300C01A\n# define TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA       0x0300C01B\n# define TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA       0x0300C01C\n# define TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA            0x0300C01D\n# define TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA        0x0300C01E\n# define TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA        0x0300C01F\n# define TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA            0x0300C020\n# define TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA        0x0300C021\n# define TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA        0x0300C022\n\n/* ECDH HMAC based ciphersuites from RFC5289 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256         0x0300C023\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384         0x0300C024\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256          0x0300C025\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384          0x0300C026\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256           0x0300C027\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384           0x0300C028\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256            0x0300C029\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384            0x0300C02A\n\n/* ECDH GCM based ciphersuites from RFC5289 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256     0x0300C02B\n# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384     0x0300C02C\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256      0x0300C02D\n# define TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384      0x0300C02E\n# define TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256       0x0300C02F\n# define TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384       0x0300C030\n# define TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256        0x0300C031\n# define TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384        0x0300C032\n\n/* ECDHE PSK ciphersuites from RFC5489 */\n# define TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA              0x0300C033\n# define TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA         0x0300C034\n# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA          0x0300C035\n# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA          0x0300C036\n\n# define TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256       0x0300C037\n# define TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384       0x0300C038\n\n/* NULL PSK ciphersuites from RFC4785 */\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA                 0x0300C039\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256              0x0300C03A\n# define TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384              0x0300C03B\n\n/* Camellia-CBC ciphersuites from RFC6367 */\n# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 0x0300C072\n# define TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 0x0300C073\n# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  0x0300C074\n# define TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  0x0300C075\n# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   0x0300C076\n# define TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   0x0300C077\n# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    0x0300C078\n# define TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    0x0300C079\n\n# define TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256         0x0300C094\n# define TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384         0x0300C095\n# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256     0x0300C096\n# define TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384     0x0300C097\n# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256     0x0300C098\n# define TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384     0x0300C099\n# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   0x0300C09A\n# define TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   0x0300C09B\n\n/* draft-ietf-tls-chacha20-poly1305-03 */\n# define TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305         0x0300CCA8\n# define TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305       0x0300CCA9\n# define TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305           0x0300CCAA\n# define TLS1_CK_PSK_WITH_CHACHA20_POLY1305               0x0300CCAB\n# define TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305         0x0300CCAC\n# define TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305           0x0300CCAD\n# define TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305           0x0300CCAE\n\n/* TLS v1.3 ciphersuites */\n# define TLS1_3_CK_AES_128_GCM_SHA256                     0x03001301\n# define TLS1_3_CK_AES_256_GCM_SHA384                     0x03001302\n# define TLS1_3_CK_CHACHA20_POLY1305_SHA256               0x03001303\n# define TLS1_3_CK_AES_128_CCM_SHA256                     0x03001304\n# define TLS1_3_CK_AES_128_CCM_8_SHA256                   0x03001305\n\n/* Aria ciphersuites from RFC6209 */\n# define TLS1_CK_RSA_WITH_ARIA_128_GCM_SHA256             0x0300C050\n# define TLS1_CK_RSA_WITH_ARIA_256_GCM_SHA384             0x0300C051\n# define TLS1_CK_DHE_RSA_WITH_ARIA_128_GCM_SHA256         0x0300C052\n# define TLS1_CK_DHE_RSA_WITH_ARIA_256_GCM_SHA384         0x0300C053\n# define TLS1_CK_DH_RSA_WITH_ARIA_128_GCM_SHA256          0x0300C054\n# define TLS1_CK_DH_RSA_WITH_ARIA_256_GCM_SHA384          0x0300C055\n# define TLS1_CK_DHE_DSS_WITH_ARIA_128_GCM_SHA256         0x0300C056\n# define TLS1_CK_DHE_DSS_WITH_ARIA_256_GCM_SHA384         0x0300C057\n# define TLS1_CK_DH_DSS_WITH_ARIA_128_GCM_SHA256          0x0300C058\n# define TLS1_CK_DH_DSS_WITH_ARIA_256_GCM_SHA384          0x0300C059\n# define TLS1_CK_DH_anon_WITH_ARIA_128_GCM_SHA256         0x0300C05A\n# define TLS1_CK_DH_anon_WITH_ARIA_256_GCM_SHA384         0x0300C05B\n# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256     0x0300C05C\n# define TLS1_CK_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384     0x0300C05D\n# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256      0x0300C05E\n# define TLS1_CK_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384      0x0300C05F\n# define TLS1_CK_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256       0x0300C060\n# define TLS1_CK_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384       0x0300C061\n# define TLS1_CK_ECDH_RSA_WITH_ARIA_128_GCM_SHA256        0x0300C062\n# define TLS1_CK_ECDH_RSA_WITH_ARIA_256_GCM_SHA384        0x0300C063\n# define TLS1_CK_PSK_WITH_ARIA_128_GCM_SHA256             0x0300C06A\n# define TLS1_CK_PSK_WITH_ARIA_256_GCM_SHA384             0x0300C06B\n# define TLS1_CK_DHE_PSK_WITH_ARIA_128_GCM_SHA256         0x0300C06C\n# define TLS1_CK_DHE_PSK_WITH_ARIA_256_GCM_SHA384         0x0300C06D\n# define TLS1_CK_RSA_PSK_WITH_ARIA_128_GCM_SHA256         0x0300C06E\n# define TLS1_CK_RSA_PSK_WITH_ARIA_256_GCM_SHA384         0x0300C06F\n\n/* a bundle of RFC standard cipher names, generated from ssl3_ciphers[] */\n# define TLS1_RFC_RSA_WITH_AES_128_SHA                   \"TLS_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA               \"TLS_DHE_DSS_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA               \"TLS_DHE_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_AES_128_SHA                   \"TLS_DH_anon_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_AES_256_SHA                   \"TLS_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA               \"TLS_DHE_DSS_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA               \"TLS_DHE_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_AES_256_SHA                   \"TLS_DH_anon_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_NULL_SHA256                   \"TLS_RSA_WITH_NULL_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_128_SHA256                \"TLS_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_256_SHA256                \"TLS_RSA_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_SHA256            \"TLS_DHE_DSS_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_SHA256            \"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_SHA256            \"TLS_DHE_DSS_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_SHA256            \"TLS_DHE_RSA_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_128_SHA256                \"TLS_DH_anon_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_256_SHA256                \"TLS_DH_anon_WITH_AES_256_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_128_GCM_SHA256            \"TLS_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_WITH_AES_256_GCM_SHA384            \"TLS_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_GCM_SHA256        \"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_GCM_SHA384        \"TLS_DHE_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_128_GCM_SHA256        \"TLS_DHE_DSS_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_AES_256_GCM_SHA384        \"TLS_DHE_DSS_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_ADH_WITH_AES_128_GCM_SHA256            \"TLS_DH_anon_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ADH_WITH_AES_256_GCM_SHA384            \"TLS_DH_anon_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_WITH_AES_128_CCM                   \"TLS_RSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_RSA_WITH_AES_256_CCM                   \"TLS_RSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM               \"TLS_DHE_RSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM               \"TLS_DHE_RSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_RSA_WITH_AES_128_CCM_8                 \"TLS_RSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_RSA_WITH_AES_256_CCM_8                 \"TLS_RSA_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_128_CCM_8             \"TLS_DHE_RSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_DHE_RSA_WITH_AES_256_CCM_8             \"TLS_DHE_RSA_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_PSK_WITH_AES_128_CCM                   \"TLS_PSK_WITH_AES_128_CCM\"\n# define TLS1_RFC_PSK_WITH_AES_256_CCM                   \"TLS_PSK_WITH_AES_256_CCM\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM               \"TLS_DHE_PSK_WITH_AES_128_CCM\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM               \"TLS_DHE_PSK_WITH_AES_256_CCM\"\n# define TLS1_RFC_PSK_WITH_AES_128_CCM_8                 \"TLS_PSK_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_PSK_WITH_AES_256_CCM_8                 \"TLS_PSK_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CCM_8             \"TLS_PSK_DHE_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CCM_8             \"TLS_PSK_DHE_WITH_AES_256_CCM_8\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM           \"TLS_ECDHE_ECDSA_WITH_AES_128_CCM\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM           \"TLS_ECDHE_ECDSA_WITH_AES_256_CCM\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CCM_8         \"TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CCM_8         \"TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8\"\n# define TLS1_3_RFC_AES_128_GCM_SHA256                   \"TLS_AES_128_GCM_SHA256\"\n# define TLS1_3_RFC_AES_256_GCM_SHA384                   \"TLS_AES_256_GCM_SHA384\"\n# define TLS1_3_RFC_CHACHA20_POLY1305_SHA256             \"TLS_CHACHA20_POLY1305_SHA256\"\n# define TLS1_3_RFC_AES_128_CCM_SHA256                   \"TLS_AES_128_CCM_SHA256\"\n# define TLS1_3_RFC_AES_128_CCM_8_SHA256                 \"TLS_AES_128_CCM_8_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_NULL_SHA              \"TLS_ECDHE_ECDSA_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      \"TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_NULL_SHA                \"TLS_ECDHE_RSA_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_DES_192_CBC3_SHA        \"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_CBC_SHA         \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_CBC_SHA         \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_NULL_SHA                \"TLS_ECDH_anon_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_DES_192_CBC3_SHA        \"TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_AES_128_CBC_SHA         \"TLS_ECDH_anon_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_AES_256_CBC_SHA         \"TLS_ECDH_anon_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_SHA256        \"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_SHA384        \"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_SHA256          \"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_SHA384          \"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256    \"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384    \"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_128_GCM_SHA256      \"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_AES_256_GCM_SHA384      \"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA                      \"TLS_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA                  \"TLS_DHE_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA                  \"TLS_RSA_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_PSK_WITH_3DES_EDE_CBC_SHA              \"TLS_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA               \"TLS_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA               \"TLS_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_3DES_EDE_CBC_SHA          \"TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA           \"TLS_DHE_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA           \"TLS_DHE_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_3DES_EDE_CBC_SHA          \"TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA           \"TLS_RSA_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA           \"TLS_RSA_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_PSK_WITH_AES_128_GCM_SHA256            \"TLS_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_PSK_WITH_AES_256_GCM_SHA384            \"TLS_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_GCM_SHA256        \"TLS_DHE_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_GCM_SHA384        \"TLS_DHE_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_GCM_SHA256        \"TLS_RSA_PSK_WITH_AES_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_GCM_SHA384        \"TLS_RSA_PSK_WITH_AES_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_AES_128_CBC_SHA256            \"TLS_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_PSK_WITH_AES_256_CBC_SHA384            \"TLS_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA256                   \"TLS_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_PSK_WITH_NULL_SHA384                   \"TLS_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_128_CBC_SHA256        \"TLS_DHE_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_AES_256_CBC_SHA384        \"TLS_DHE_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA256               \"TLS_DHE_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_NULL_SHA384               \"TLS_DHE_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_128_CBC_SHA256        \"TLS_RSA_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_AES_256_CBC_SHA384        \"TLS_RSA_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA256               \"TLS_RSA_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_NULL_SHA384               \"TLS_RSA_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA        \"TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA         \"TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA         \"TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_128_CBC_SHA256      \"TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_AES_256_CBC_SHA384      \"TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA                \"TLS_ECDHE_PSK_WITH_NULL_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA256             \"TLS_ECDHE_PSK_WITH_NULL_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_NULL_SHA384             \"TLS_ECDHE_PSK_WITH_NULL_SHA384\"\n# define TLS1_RFC_SRP_SHA_WITH_3DES_EDE_CBC_SHA          \"TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA      \"TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA      \"TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_WITH_AES_128_CBC_SHA           \"TLS_SRP_SHA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_128_CBC_SHA       \"TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_128_CBC_SHA       \"TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_WITH_AES_256_CBC_SHA           \"TLS_SRP_SHA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_RSA_WITH_AES_256_CBC_SHA       \"TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_SRP_SHA_DSS_WITH_AES_256_CBC_SHA       \"TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CHACHA20_POLY1305         \"TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CHACHA20_POLY1305       \"TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CHACHA20_POLY1305     \"TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_PSK_WITH_CHACHA20_POLY1305             \"TLS_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CHACHA20_POLY1305       \"TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_CHACHA20_POLY1305         \"TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_CHACHA20_POLY1305         \"TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA256       \"TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256   \"TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256   \"TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA256       \"TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_256_CBC_SHA          \"TLS_RSA_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      \"TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      \"TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_256_CBC_SHA          \"TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA\"\n# define TLS1_RFC_RSA_WITH_CAMELLIA_128_CBC_SHA          \"TLS_RSA_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      \"TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      \"TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_CAMELLIA_128_CBC_SHA          \"TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_PSK_WITH_CAMELLIA_128_CBC_SHA256       \"TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_PSK_WITH_CAMELLIA_256_CBC_SHA384       \"TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384   \"TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256   \"TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384   \"TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 \"TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256\"\n# define TLS1_RFC_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 \"TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384\"\n# define TLS1_RFC_RSA_WITH_SEED_SHA                      \"TLS_RSA_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_DHE_DSS_WITH_SEED_SHA                  \"TLS_DHE_DSS_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_DHE_RSA_WITH_SEED_SHA                  \"TLS_DHE_RSA_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_ADH_WITH_SEED_SHA                      \"TLS_DH_anon_WITH_SEED_CBC_SHA\"\n# define TLS1_RFC_ECDHE_PSK_WITH_RC4_128_SHA             \"TLS_ECDHE_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDH_anon_WITH_RC4_128_SHA             \"TLS_ECDH_anon_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_RC4_128_SHA           \"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA\"\n# define TLS1_RFC_ECDHE_RSA_WITH_RC4_128_SHA             \"TLS_ECDHE_RSA_WITH_RC4_128_SHA\"\n# define TLS1_RFC_PSK_WITH_RC4_128_SHA                   \"TLS_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_RSA_PSK_WITH_RC4_128_SHA               \"TLS_RSA_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_DHE_PSK_WITH_RC4_128_SHA               \"TLS_DHE_PSK_WITH_RC4_128_SHA\"\n# define TLS1_RFC_RSA_WITH_ARIA_128_GCM_SHA256           \"TLS_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_WITH_ARIA_256_GCM_SHA384           \"TLS_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_RSA_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_RSA_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_RSA_WITH_ARIA_128_GCM_SHA256        \"TLS_DH_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_RSA_WITH_ARIA_256_GCM_SHA384        \"TLS_DH_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_DSS_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_DSS_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_DSS_WITH_ARIA_128_GCM_SHA256        \"TLS_DH_DSS_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_DSS_WITH_ARIA_256_GCM_SHA384        \"TLS_DH_DSS_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DH_anon_WITH_ARIA_128_GCM_SHA256       \"TLS_DH_anon_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DH_anon_WITH_ARIA_256_GCM_SHA384       \"TLS_DH_anon_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256   \"TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384   \"TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256    \"TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384    \"TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256     \"TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384     \"TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_ECDH_RSA_WITH_ARIA_128_GCM_SHA256      \"TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_ECDH_RSA_WITH_ARIA_256_GCM_SHA384      \"TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_PSK_WITH_ARIA_128_GCM_SHA256           \"TLS_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_PSK_WITH_ARIA_256_GCM_SHA384           \"TLS_PSK_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_DHE_PSK_WITH_ARIA_128_GCM_SHA256       \"TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_DHE_PSK_WITH_ARIA_256_GCM_SHA384       \"TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384\"\n# define TLS1_RFC_RSA_PSK_WITH_ARIA_128_GCM_SHA256       \"TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256\"\n# define TLS1_RFC_RSA_PSK_WITH_ARIA_256_GCM_SHA384       \"TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384\"\n\n\n/*\n * XXX Backward compatibility alert: Older versions of OpenSSL gave some DHE\n * ciphers names with \"EDH\" instead of \"DHE\".  Going forward, we should be\n * using DHE everywhere, though we may indefinitely maintain aliases for\n * users or configurations that used \"EDH\"\n */\n# define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA               \"DHE-DSS-RC4-SHA\"\n\n# define TLS1_TXT_PSK_WITH_NULL_SHA                      \"PSK-NULL-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA                  \"DHE-PSK-NULL-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA                  \"RSA-PSK-NULL-SHA\"\n\n/* AES ciphersuites from RFC3268 */\n# define TLS1_TXT_RSA_WITH_AES_128_SHA                   \"AES128-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA                \"DH-DSS-AES128-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA                \"DH-RSA-AES128-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA               \"DHE-DSS-AES128-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA               \"DHE-RSA-AES128-SHA\"\n# define TLS1_TXT_ADH_WITH_AES_128_SHA                   \"ADH-AES128-SHA\"\n\n# define TLS1_TXT_RSA_WITH_AES_256_SHA                   \"AES256-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA                \"DH-DSS-AES256-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA                \"DH-RSA-AES256-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA               \"DHE-DSS-AES256-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA               \"DHE-RSA-AES256-SHA\"\n# define TLS1_TXT_ADH_WITH_AES_256_SHA                   \"ADH-AES256-SHA\"\n\n/* ECC ciphersuites from RFC4492 */\n# define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA               \"ECDH-ECDSA-NULL-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA            \"ECDH-ECDSA-RC4-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA       \"ECDH-ECDSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA        \"ECDH-ECDSA-AES128-SHA\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA        \"ECDH-ECDSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA              \"ECDHE-ECDSA-NULL-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA           \"ECDHE-ECDSA-RC4-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      \"ECDHE-ECDSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       \"ECDHE-ECDSA-AES128-SHA\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       \"ECDHE-ECDSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA                 \"ECDH-RSA-NULL-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA              \"ECDH-RSA-RC4-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA         \"ECDH-RSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA          \"ECDH-RSA-AES128-SHA\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA          \"ECDH-RSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA                \"ECDHE-RSA-NULL-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA             \"ECDHE-RSA-RC4-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA        \"ECDHE-RSA-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA         \"ECDHE-RSA-AES128-SHA\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA         \"ECDHE-RSA-AES256-SHA\"\n\n# define TLS1_TXT_ECDH_anon_WITH_NULL_SHA                \"AECDH-NULL-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA             \"AECDH-RC4-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA        \"AECDH-DES-CBC3-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA         \"AECDH-AES128-SHA\"\n# define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA         \"AECDH-AES256-SHA\"\n\n/* PSK ciphersuites from RFC 4279 */\n# define TLS1_TXT_PSK_WITH_RC4_128_SHA                   \"PSK-RC4-SHA\"\n# define TLS1_TXT_PSK_WITH_3DES_EDE_CBC_SHA              \"PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA               \"PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA               \"PSK-AES256-CBC-SHA\"\n\n# define TLS1_TXT_DHE_PSK_WITH_RC4_128_SHA               \"DHE-PSK-RC4-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_3DES_EDE_CBC_SHA          \"DHE-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA           \"DHE-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA           \"DHE-PSK-AES256-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_RC4_128_SHA               \"RSA-PSK-RC4-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_3DES_EDE_CBC_SHA          \"RSA-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA           \"RSA-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA           \"RSA-PSK-AES256-CBC-SHA\"\n\n/* PSK ciphersuites from RFC 5487 */\n# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256            \"PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384            \"PSK-AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_GCM_SHA256        \"DHE-PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_GCM_SHA384        \"DHE-PSK-AES256-GCM-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_GCM_SHA256        \"RSA-PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_GCM_SHA384        \"RSA-PSK-AES256-GCM-SHA384\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CBC_SHA256            \"PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_CBC_SHA384            \"PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_PSK_WITH_NULL_SHA256                   \"PSK-NULL-SHA256\"\n# define TLS1_TXT_PSK_WITH_NULL_SHA384                   \"PSK-NULL-SHA384\"\n\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CBC_SHA256        \"DHE-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CBC_SHA384        \"DHE-PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA256               \"DHE-PSK-NULL-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_NULL_SHA384               \"DHE-PSK-NULL-SHA384\"\n\n# define TLS1_TXT_RSA_PSK_WITH_AES_128_CBC_SHA256        \"RSA-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_AES_256_CBC_SHA384        \"RSA-PSK-AES256-CBC-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA256               \"RSA-PSK-NULL-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_NULL_SHA384               \"RSA-PSK-NULL-SHA384\"\n\n/* SRP ciphersuite from RFC 5054 */\n# define TLS1_TXT_SRP_SHA_WITH_3DES_EDE_CBC_SHA          \"SRP-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA      \"SRP-RSA-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA      \"SRP-DSS-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_WITH_AES_128_CBC_SHA           \"SRP-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_128_CBC_SHA       \"SRP-RSA-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_128_CBC_SHA       \"SRP-DSS-AES-128-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_WITH_AES_256_CBC_SHA           \"SRP-AES-256-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_RSA_WITH_AES_256_CBC_SHA       \"SRP-RSA-AES-256-CBC-SHA\"\n# define TLS1_TXT_SRP_SHA_DSS_WITH_AES_256_CBC_SHA       \"SRP-DSS-AES-256-CBC-SHA\"\n\n/* Camellia ciphersuites from RFC4132 */\n# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA          \"CAMELLIA128-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA       \"DH-DSS-CAMELLIA128-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA       \"DH-RSA-CAMELLIA128-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      \"DHE-DSS-CAMELLIA128-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      \"DHE-RSA-CAMELLIA128-SHA\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA          \"ADH-CAMELLIA128-SHA\"\n\n# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA          \"CAMELLIA256-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA       \"DH-DSS-CAMELLIA256-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA       \"DH-RSA-CAMELLIA256-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      \"DHE-DSS-CAMELLIA256-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      \"DHE-RSA-CAMELLIA256-SHA\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA          \"ADH-CAMELLIA256-SHA\"\n\n/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */\n# define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256               \"CAMELLIA128-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256            \"DH-DSS-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256            \"DH-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-DSS-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256               \"ADH-CAMELLIA128-SHA256\"\n\n# define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256               \"CAMELLIA256-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256            \"DH-DSS-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256            \"DH-RSA-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256           \"DHE-DSS-CAMELLIA256-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256           \"DHE-RSA-CAMELLIA256-SHA256\"\n# define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256               \"ADH-CAMELLIA256-SHA256\"\n\n# define TLS1_TXT_PSK_WITH_CAMELLIA_128_CBC_SHA256               \"PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_PSK_WITH_CAMELLIA_256_CBC_SHA384               \"PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256           \"DHE-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384           \"DHE-PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256           \"RSA-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384           \"RSA-PSK-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256         \"ECDHE-PSK-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384         \"ECDHE-PSK-CAMELLIA256-SHA384\"\n\n/* SEED ciphersuites from RFC4162 */\n# define TLS1_TXT_RSA_WITH_SEED_SHA                      \"SEED-SHA\"\n# define TLS1_TXT_DH_DSS_WITH_SEED_SHA                   \"DH-DSS-SEED-SHA\"\n# define TLS1_TXT_DH_RSA_WITH_SEED_SHA                   \"DH-RSA-SEED-SHA\"\n# define TLS1_TXT_DHE_DSS_WITH_SEED_SHA                  \"DHE-DSS-SEED-SHA\"\n# define TLS1_TXT_DHE_RSA_WITH_SEED_SHA                  \"DHE-RSA-SEED-SHA\"\n# define TLS1_TXT_ADH_WITH_SEED_SHA                      \"ADH-SEED-SHA\"\n\n/* TLS v1.2 ciphersuites */\n# define TLS1_TXT_RSA_WITH_NULL_SHA256                   \"NULL-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_128_SHA256                \"AES128-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_256_SHA256                \"AES256-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_SHA256             \"DH-DSS-AES128-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_SHA256             \"DH-RSA-AES128-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA256            \"DHE-DSS-AES128-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA256            \"DHE-RSA-AES128-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_SHA256             \"DH-DSS-AES256-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_SHA256             \"DH-RSA-AES256-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA256            \"DHE-DSS-AES256-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA256            \"DHE-RSA-AES256-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_128_SHA256                \"ADH-AES128-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_256_SHA256                \"ADH-AES256-SHA256\"\n\n/* TLS v1.2 GCM ciphersuites from RFC5288 */\n# define TLS1_TXT_RSA_WITH_AES_128_GCM_SHA256            \"AES128-GCM-SHA256\"\n# define TLS1_TXT_RSA_WITH_AES_256_GCM_SHA384            \"AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_GCM_SHA256        \"DHE-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_GCM_SHA384        \"DHE-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_DH_RSA_WITH_AES_128_GCM_SHA256         \"DH-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_AES_256_GCM_SHA384         \"DH-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_128_GCM_SHA256        \"DHE-DSS-AES128-GCM-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_AES_256_GCM_SHA384        \"DHE-DSS-AES256-GCM-SHA384\"\n# define TLS1_TXT_DH_DSS_WITH_AES_128_GCM_SHA256         \"DH-DSS-AES128-GCM-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_AES_256_GCM_SHA384         \"DH-DSS-AES256-GCM-SHA384\"\n# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256            \"ADH-AES128-GCM-SHA256\"\n# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384            \"ADH-AES256-GCM-SHA384\"\n\n/* CCM ciphersuites from RFC6655 */\n# define TLS1_TXT_RSA_WITH_AES_128_CCM                   \"AES128-CCM\"\n# define TLS1_TXT_RSA_WITH_AES_256_CCM                   \"AES256-CCM\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM               \"DHE-RSA-AES128-CCM\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM               \"DHE-RSA-AES256-CCM\"\n\n# define TLS1_TXT_RSA_WITH_AES_128_CCM_8                 \"AES128-CCM8\"\n# define TLS1_TXT_RSA_WITH_AES_256_CCM_8                 \"AES256-CCM8\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8             \"DHE-RSA-AES128-CCM8\"\n# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8             \"DHE-RSA-AES256-CCM8\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CCM                   \"PSK-AES128-CCM\"\n# define TLS1_TXT_PSK_WITH_AES_256_CCM                   \"PSK-AES256-CCM\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM               \"DHE-PSK-AES128-CCM\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM               \"DHE-PSK-AES256-CCM\"\n\n# define TLS1_TXT_PSK_WITH_AES_128_CCM_8                 \"PSK-AES128-CCM8\"\n# define TLS1_TXT_PSK_WITH_AES_256_CCM_8                 \"PSK-AES256-CCM8\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8             \"DHE-PSK-AES128-CCM8\"\n# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8             \"DHE-PSK-AES256-CCM8\"\n\n/* CCM ciphersuites from RFC7251 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM       \"ECDHE-ECDSA-AES128-CCM\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM       \"ECDHE-ECDSA-AES256-CCM\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8     \"ECDHE-ECDSA-AES128-CCM8\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8     \"ECDHE-ECDSA-AES256-CCM8\"\n\n/* ECDH HMAC based ciphersuites from RFC5289 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256    \"ECDHE-ECDSA-AES128-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_SHA384    \"ECDHE-ECDSA-AES256-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_SHA256     \"ECDH-ECDSA-AES128-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_SHA384     \"ECDH-ECDSA-AES256-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_SHA256      \"ECDHE-RSA-AES128-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_SHA384      \"ECDHE-RSA-AES256-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_SHA256       \"ECDH-RSA-AES128-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_SHA384       \"ECDH-RSA-AES256-SHA384\"\n\n/* ECDH GCM based ciphersuites from RFC5289 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256    \"ECDHE-ECDSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384    \"ECDHE-ECDSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_GCM_SHA256     \"ECDH-ECDSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_GCM_SHA384     \"ECDH-ECDSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_128_GCM_SHA256      \"ECDHE-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_AES_256_GCM_SHA384      \"ECDHE-RSA-AES256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_128_GCM_SHA256       \"ECDH-RSA-AES128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_AES_256_GCM_SHA384       \"ECDH-RSA-AES256-GCM-SHA384\"\n\n/* TLS v1.2 PSK GCM ciphersuites from RFC5487 */\n# define TLS1_TXT_PSK_WITH_AES_128_GCM_SHA256            \"PSK-AES128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_AES_256_GCM_SHA384            \"PSK-AES256-GCM-SHA384\"\n\n/* ECDHE PSK ciphersuites from RFC 5489 */\n# define TLS1_TXT_ECDHE_PSK_WITH_RC4_128_SHA               \"ECDHE-PSK-RC4-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA          \"ECDHE-PSK-3DES-EDE-CBC-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA           \"ECDHE-PSK-AES128-CBC-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA           \"ECDHE-PSK-AES256-CBC-SHA\"\n\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_128_CBC_SHA256        \"ECDHE-PSK-AES128-CBC-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_AES_256_CBC_SHA384        \"ECDHE-PSK-AES256-CBC-SHA384\"\n\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA                  \"ECDHE-PSK-NULL-SHA\"\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA256               \"ECDHE-PSK-NULL-SHA256\"\n# define TLS1_TXT_ECDHE_PSK_WITH_NULL_SHA384               \"ECDHE-PSK-NULL-SHA384\"\n\n/* Camellia-CBC ciphersuites from RFC6367 */\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 \"ECDHE-ECDSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 \"ECDHE-ECDSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256  \"ECDH-ECDSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384  \"ECDH-ECDSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   \"ECDHE-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   \"ECDHE-RSA-CAMELLIA256-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256    \"ECDH-RSA-CAMELLIA128-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384    \"ECDH-RSA-CAMELLIA256-SHA384\"\n\n/* draft-ietf-tls-chacha20-poly1305-03 */\n# define TLS1_TXT_ECDHE_RSA_WITH_CHACHA20_POLY1305         \"ECDHE-RSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_CHACHA20_POLY1305       \"ECDHE-ECDSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_DHE_RSA_WITH_CHACHA20_POLY1305           \"DHE-RSA-CHACHA20-POLY1305\"\n# define TLS1_TXT_PSK_WITH_CHACHA20_POLY1305               \"PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_ECDHE_PSK_WITH_CHACHA20_POLY1305         \"ECDHE-PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_DHE_PSK_WITH_CHACHA20_POLY1305           \"DHE-PSK-CHACHA20-POLY1305\"\n# define TLS1_TXT_RSA_PSK_WITH_CHACHA20_POLY1305           \"RSA-PSK-CHACHA20-POLY1305\"\n\n/* Aria ciphersuites from RFC6209 */\n# define TLS1_TXT_RSA_WITH_ARIA_128_GCM_SHA256             \"ARIA128-GCM-SHA256\"\n# define TLS1_TXT_RSA_WITH_ARIA_256_GCM_SHA384             \"ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_RSA_WITH_ARIA_128_GCM_SHA256         \"DHE-RSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_RSA_WITH_ARIA_256_GCM_SHA384         \"DHE-RSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_RSA_WITH_ARIA_128_GCM_SHA256          \"DH-RSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_RSA_WITH_ARIA_256_GCM_SHA384          \"DH-RSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_DSS_WITH_ARIA_128_GCM_SHA256         \"DHE-DSS-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_DSS_WITH_ARIA_256_GCM_SHA384         \"DHE-DSS-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_DSS_WITH_ARIA_128_GCM_SHA256          \"DH-DSS-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_DSS_WITH_ARIA_256_GCM_SHA384          \"DH-DSS-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DH_anon_WITH_ARIA_128_GCM_SHA256         \"ADH-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DH_anon_WITH_ARIA_256_GCM_SHA384         \"ADH-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256     \"ECDHE-ECDSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384     \"ECDHE-ECDSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256      \"ECDH-ECDSA-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384      \"ECDH-ECDSA-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256       \"ECDHE-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384       \"ECDHE-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_ECDH_RSA_WITH_ARIA_128_GCM_SHA256        \"ECDH-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_ECDH_RSA_WITH_ARIA_256_GCM_SHA384        \"ECDH-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_PSK_WITH_ARIA_128_GCM_SHA256             \"PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_PSK_WITH_ARIA_256_GCM_SHA384             \"PSK-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_DHE_PSK_WITH_ARIA_128_GCM_SHA256         \"DHE-PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_DHE_PSK_WITH_ARIA_256_GCM_SHA384         \"DHE-PSK-ARIA256-GCM-SHA384\"\n# define TLS1_TXT_RSA_PSK_WITH_ARIA_128_GCM_SHA256         \"RSA-PSK-ARIA128-GCM-SHA256\"\n# define TLS1_TXT_RSA_PSK_WITH_ARIA_256_GCM_SHA384         \"RSA-PSK-ARIA256-GCM-SHA384\"\n\n# define TLS_CT_RSA_SIGN                 1\n# define TLS_CT_DSS_SIGN                 2\n# define TLS_CT_RSA_FIXED_DH             3\n# define TLS_CT_DSS_FIXED_DH             4\n# define TLS_CT_ECDSA_SIGN               64\n# define TLS_CT_RSA_FIXED_ECDH           65\n# define TLS_CT_ECDSA_FIXED_ECDH         66\n# define TLS_CT_GOST01_SIGN              22\n# define TLS_CT_GOST12_SIGN              238\n# define TLS_CT_GOST12_512_SIGN          239\n\n/*\n * when correcting this number, correct also SSL3_CT_NUMBER in ssl3.h (see\n * comment there)\n */\n# define TLS_CT_NUMBER                   10\n\n# if defined(SSL3_CT_NUMBER)\n#  if TLS_CT_NUMBER != SSL3_CT_NUMBER\n#    error \"SSL/TLS CT_NUMBER values do not match\"\n#  endif\n# endif\n\n# define TLS1_FINISH_MAC_LENGTH          12\n\n# define TLS_MD_MAX_CONST_SIZE                   22\n# define TLS_MD_CLIENT_FINISH_CONST              \"client finished\"\n# define TLS_MD_CLIENT_FINISH_CONST_SIZE         15\n# define TLS_MD_SERVER_FINISH_CONST              \"server finished\"\n# define TLS_MD_SERVER_FINISH_CONST_SIZE         15\n# define TLS_MD_KEY_EXPANSION_CONST              \"key expansion\"\n# define TLS_MD_KEY_EXPANSION_CONST_SIZE         13\n# define TLS_MD_CLIENT_WRITE_KEY_CONST           \"client write key\"\n# define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE      16\n# define TLS_MD_SERVER_WRITE_KEY_CONST           \"server write key\"\n# define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE      16\n# define TLS_MD_IV_BLOCK_CONST                   \"IV block\"\n# define TLS_MD_IV_BLOCK_CONST_SIZE              8\n# define TLS_MD_MASTER_SECRET_CONST              \"master secret\"\n# define TLS_MD_MASTER_SECRET_CONST_SIZE         13\n# define TLS_MD_EXTENDED_MASTER_SECRET_CONST     \"extended master secret\"\n# define TLS_MD_EXTENDED_MASTER_SECRET_CONST_SIZE        22\n\n# ifdef CHARSET_EBCDIC\n#  undef TLS_MD_CLIENT_FINISH_CONST\n/*\n * client finished\n */\n#  define TLS_MD_CLIENT_FINISH_CONST    \"\\x63\\x6c\\x69\\x65\\x6e\\x74\\x20\\x66\\x69\\x6e\\x69\\x73\\x68\\x65\\x64\"\n\n#  undef TLS_MD_SERVER_FINISH_CONST\n/*\n * server finished\n */\n#  define TLS_MD_SERVER_FINISH_CONST    \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x66\\x69\\x6e\\x69\\x73\\x68\\x65\\x64\"\n\n#  undef TLS_MD_SERVER_WRITE_KEY_CONST\n/*\n * server write key\n */\n#  define TLS_MD_SERVER_WRITE_KEY_CONST \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_KEY_EXPANSION_CONST\n/*\n * key expansion\n */\n#  define TLS_MD_KEY_EXPANSION_CONST    \"\\x6b\\x65\\x79\\x20\\x65\\x78\\x70\\x61\\x6e\\x73\\x69\\x6f\\x6e\"\n\n#  undef TLS_MD_CLIENT_WRITE_KEY_CONST\n/*\n * client write key\n */\n#  define TLS_MD_CLIENT_WRITE_KEY_CONST \"\\x63\\x6c\\x69\\x65\\x6e\\x74\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_SERVER_WRITE_KEY_CONST\n/*\n * server write key\n */\n#  define TLS_MD_SERVER_WRITE_KEY_CONST \"\\x73\\x65\\x72\\x76\\x65\\x72\\x20\\x77\\x72\\x69\\x74\\x65\\x20\\x6b\\x65\\x79\"\n\n#  undef TLS_MD_IV_BLOCK_CONST\n/*\n * IV block\n */\n#  define TLS_MD_IV_BLOCK_CONST         \"\\x49\\x56\\x20\\x62\\x6c\\x6f\\x63\\x6b\"\n\n#  undef TLS_MD_MASTER_SECRET_CONST\n/*\n * master secret\n */\n#  define TLS_MD_MASTER_SECRET_CONST    \"\\x6d\\x61\\x73\\x74\\x65\\x72\\x20\\x73\\x65\\x63\\x72\\x65\\x74\"\n#  undef TLS_MD_EXTENDED_MASTER_SECRET_CONST\n/*\n * extended master secret\n */\n#  define TLS_MD_EXTENDED_MASTER_SECRET_CONST    \"\\x65\\x78\\x74\\x65\\x6e\\x64\\x65\\x64\\x20\\x6d\\x61\\x73\\x74\\x65\\x72\\x20\\x73\\x65\\x63\\x72\\x65\\x74\"\n# endif\n\n/* TLS Session Ticket extension struct */\nstruct tls_session_ticket_ext_st {\n    unsigned short length;\n    void *data;\n};\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ts.h",
    "content": "/*\n * Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TS_H\n# define HEADER_TS_H\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_TS\n# include <openssl/symhacks.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/safestack.h>\n# include <openssl/rsa.h>\n# include <openssl/dsa.h>\n# include <openssl/dh.h>\n# include <openssl/tserr.h>\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n# include <openssl/x509.h>\n# include <openssl/x509v3.h>\n\ntypedef struct TS_msg_imprint_st TS_MSG_IMPRINT;\ntypedef struct TS_req_st TS_REQ;\ntypedef struct TS_accuracy_st TS_ACCURACY;\ntypedef struct TS_tst_info_st TS_TST_INFO;\n\n/* Possible values for status. */\n# define TS_STATUS_GRANTED                       0\n# define TS_STATUS_GRANTED_WITH_MODS             1\n# define TS_STATUS_REJECTION                     2\n# define TS_STATUS_WAITING                       3\n# define TS_STATUS_REVOCATION_WARNING            4\n# define TS_STATUS_REVOCATION_NOTIFICATION       5\n\n/* Possible values for failure_info. */\n# define TS_INFO_BAD_ALG                 0\n# define TS_INFO_BAD_REQUEST             2\n# define TS_INFO_BAD_DATA_FORMAT         5\n# define TS_INFO_TIME_NOT_AVAILABLE      14\n# define TS_INFO_UNACCEPTED_POLICY       15\n# define TS_INFO_UNACCEPTED_EXTENSION    16\n# define TS_INFO_ADD_INFO_NOT_AVAILABLE  17\n# define TS_INFO_SYSTEM_FAILURE          25\n\n\ntypedef struct TS_status_info_st TS_STATUS_INFO;\ntypedef struct ESS_issuer_serial ESS_ISSUER_SERIAL;\ntypedef struct ESS_cert_id ESS_CERT_ID;\ntypedef struct ESS_signing_cert ESS_SIGNING_CERT;\n\nDEFINE_STACK_OF(ESS_CERT_ID)\n\ntypedef struct ESS_cert_id_v2_st ESS_CERT_ID_V2;\ntypedef struct ESS_signing_cert_v2_st ESS_SIGNING_CERT_V2;\n\nDEFINE_STACK_OF(ESS_CERT_ID_V2)\n\ntypedef struct TS_resp_st TS_RESP;\n\nTS_REQ *TS_REQ_new(void);\nvoid TS_REQ_free(TS_REQ *a);\nint i2d_TS_REQ(const TS_REQ *a, unsigned char **pp);\nTS_REQ *d2i_TS_REQ(TS_REQ **a, const unsigned char **pp, long length);\n\nTS_REQ *TS_REQ_dup(TS_REQ *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_REQ *d2i_TS_REQ_fp(FILE *fp, TS_REQ **a);\nint i2d_TS_REQ_fp(FILE *fp, TS_REQ *a);\n#endif\nTS_REQ *d2i_TS_REQ_bio(BIO *fp, TS_REQ **a);\nint i2d_TS_REQ_bio(BIO *fp, TS_REQ *a);\n\nTS_MSG_IMPRINT *TS_MSG_IMPRINT_new(void);\nvoid TS_MSG_IMPRINT_free(TS_MSG_IMPRINT *a);\nint i2d_TS_MSG_IMPRINT(const TS_MSG_IMPRINT *a, unsigned char **pp);\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT(TS_MSG_IMPRINT **a,\n                                   const unsigned char **pp, long length);\n\nTS_MSG_IMPRINT *TS_MSG_IMPRINT_dup(TS_MSG_IMPRINT *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a);\nint i2d_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT *a);\n#endif\nTS_MSG_IMPRINT *d2i_TS_MSG_IMPRINT_bio(BIO *bio, TS_MSG_IMPRINT **a);\nint i2d_TS_MSG_IMPRINT_bio(BIO *bio, TS_MSG_IMPRINT *a);\n\nTS_RESP *TS_RESP_new(void);\nvoid TS_RESP_free(TS_RESP *a);\nint i2d_TS_RESP(const TS_RESP *a, unsigned char **pp);\nTS_RESP *d2i_TS_RESP(TS_RESP **a, const unsigned char **pp, long length);\nTS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token);\nTS_RESP *TS_RESP_dup(TS_RESP *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_RESP *d2i_TS_RESP_fp(FILE *fp, TS_RESP **a);\nint i2d_TS_RESP_fp(FILE *fp, TS_RESP *a);\n#endif\nTS_RESP *d2i_TS_RESP_bio(BIO *bio, TS_RESP **a);\nint i2d_TS_RESP_bio(BIO *bio, TS_RESP *a);\n\nTS_STATUS_INFO *TS_STATUS_INFO_new(void);\nvoid TS_STATUS_INFO_free(TS_STATUS_INFO *a);\nint i2d_TS_STATUS_INFO(const TS_STATUS_INFO *a, unsigned char **pp);\nTS_STATUS_INFO *d2i_TS_STATUS_INFO(TS_STATUS_INFO **a,\n                                   const unsigned char **pp, long length);\nTS_STATUS_INFO *TS_STATUS_INFO_dup(TS_STATUS_INFO *a);\n\nTS_TST_INFO *TS_TST_INFO_new(void);\nvoid TS_TST_INFO_free(TS_TST_INFO *a);\nint i2d_TS_TST_INFO(const TS_TST_INFO *a, unsigned char **pp);\nTS_TST_INFO *d2i_TS_TST_INFO(TS_TST_INFO **a, const unsigned char **pp,\n                             long length);\nTS_TST_INFO *TS_TST_INFO_dup(TS_TST_INFO *a);\n\n#ifndef OPENSSL_NO_STDIO\nTS_TST_INFO *d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a);\nint i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a);\n#endif\nTS_TST_INFO *d2i_TS_TST_INFO_bio(BIO *bio, TS_TST_INFO **a);\nint i2d_TS_TST_INFO_bio(BIO *bio, TS_TST_INFO *a);\n\nTS_ACCURACY *TS_ACCURACY_new(void);\nvoid TS_ACCURACY_free(TS_ACCURACY *a);\nint i2d_TS_ACCURACY(const TS_ACCURACY *a, unsigned char **pp);\nTS_ACCURACY *d2i_TS_ACCURACY(TS_ACCURACY **a, const unsigned char **pp,\n                             long length);\nTS_ACCURACY *TS_ACCURACY_dup(TS_ACCURACY *a);\n\nESS_ISSUER_SERIAL *ESS_ISSUER_SERIAL_new(void);\nvoid ESS_ISSUER_SERIAL_free(ESS_ISSUER_SERIAL *a);\nint i2d_ESS_ISSUER_SERIAL(const ESS_ISSUER_SERIAL *a, unsigned char **pp);\nESS_ISSUER_SERIAL *d2i_ESS_ISSUER_SERIAL(ESS_ISSUER_SERIAL **a,\n                                         const unsigned char **pp,\n                                         long length);\nESS_ISSUER_SERIAL *ESS_ISSUER_SERIAL_dup(ESS_ISSUER_SERIAL *a);\n\nESS_CERT_ID *ESS_CERT_ID_new(void);\nvoid ESS_CERT_ID_free(ESS_CERT_ID *a);\nint i2d_ESS_CERT_ID(const ESS_CERT_ID *a, unsigned char **pp);\nESS_CERT_ID *d2i_ESS_CERT_ID(ESS_CERT_ID **a, const unsigned char **pp,\n                             long length);\nESS_CERT_ID *ESS_CERT_ID_dup(ESS_CERT_ID *a);\n\nESS_SIGNING_CERT *ESS_SIGNING_CERT_new(void);\nvoid ESS_SIGNING_CERT_free(ESS_SIGNING_CERT *a);\nint i2d_ESS_SIGNING_CERT(const ESS_SIGNING_CERT *a, unsigned char **pp);\nESS_SIGNING_CERT *d2i_ESS_SIGNING_CERT(ESS_SIGNING_CERT **a,\n                                       const unsigned char **pp, long length);\nESS_SIGNING_CERT *ESS_SIGNING_CERT_dup(ESS_SIGNING_CERT *a);\n\nESS_CERT_ID_V2 *ESS_CERT_ID_V2_new(void);\nvoid ESS_CERT_ID_V2_free(ESS_CERT_ID_V2 *a);\nint i2d_ESS_CERT_ID_V2(const ESS_CERT_ID_V2 *a, unsigned char **pp);\nESS_CERT_ID_V2 *d2i_ESS_CERT_ID_V2(ESS_CERT_ID_V2 **a,\n                                   const unsigned char **pp, long length);\nESS_CERT_ID_V2 *ESS_CERT_ID_V2_dup(ESS_CERT_ID_V2 *a);\n\nESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_new(void);\nvoid ESS_SIGNING_CERT_V2_free(ESS_SIGNING_CERT_V2 *a);\nint i2d_ESS_SIGNING_CERT_V2(const ESS_SIGNING_CERT_V2 *a, unsigned char **pp);\nESS_SIGNING_CERT_V2 *d2i_ESS_SIGNING_CERT_V2(ESS_SIGNING_CERT_V2 **a,\n                                             const unsigned char **pp,\n                                             long length);\nESS_SIGNING_CERT_V2 *ESS_SIGNING_CERT_V2_dup(ESS_SIGNING_CERT_V2 *a);\n\nint TS_REQ_set_version(TS_REQ *a, long version);\nlong TS_REQ_get_version(const TS_REQ *a);\n\nint TS_STATUS_INFO_set_status(TS_STATUS_INFO *a, int i);\nconst ASN1_INTEGER *TS_STATUS_INFO_get0_status(const TS_STATUS_INFO *a);\n\nconst STACK_OF(ASN1_UTF8STRING) *\nTS_STATUS_INFO_get0_text(const TS_STATUS_INFO *a);\n\nconst ASN1_BIT_STRING *\nTS_STATUS_INFO_get0_failure_info(const TS_STATUS_INFO *a);\n\nint TS_REQ_set_msg_imprint(TS_REQ *a, TS_MSG_IMPRINT *msg_imprint);\nTS_MSG_IMPRINT *TS_REQ_get_msg_imprint(TS_REQ *a);\n\nint TS_MSG_IMPRINT_set_algo(TS_MSG_IMPRINT *a, X509_ALGOR *alg);\nX509_ALGOR *TS_MSG_IMPRINT_get_algo(TS_MSG_IMPRINT *a);\n\nint TS_MSG_IMPRINT_set_msg(TS_MSG_IMPRINT *a, unsigned char *d, int len);\nASN1_OCTET_STRING *TS_MSG_IMPRINT_get_msg(TS_MSG_IMPRINT *a);\n\nint TS_REQ_set_policy_id(TS_REQ *a, const ASN1_OBJECT *policy);\nASN1_OBJECT *TS_REQ_get_policy_id(TS_REQ *a);\n\nint TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce);\nconst ASN1_INTEGER *TS_REQ_get_nonce(const TS_REQ *a);\n\nint TS_REQ_set_cert_req(TS_REQ *a, int cert_req);\nint TS_REQ_get_cert_req(const TS_REQ *a);\n\nSTACK_OF(X509_EXTENSION) *TS_REQ_get_exts(TS_REQ *a);\nvoid TS_REQ_ext_free(TS_REQ *a);\nint TS_REQ_get_ext_count(TS_REQ *a);\nint TS_REQ_get_ext_by_NID(TS_REQ *a, int nid, int lastpos);\nint TS_REQ_get_ext_by_OBJ(TS_REQ *a, const ASN1_OBJECT *obj, int lastpos);\nint TS_REQ_get_ext_by_critical(TS_REQ *a, int crit, int lastpos);\nX509_EXTENSION *TS_REQ_get_ext(TS_REQ *a, int loc);\nX509_EXTENSION *TS_REQ_delete_ext(TS_REQ *a, int loc);\nint TS_REQ_add_ext(TS_REQ *a, X509_EXTENSION *ex, int loc);\nvoid *TS_REQ_get_ext_d2i(TS_REQ *a, int nid, int *crit, int *idx);\n\n/* Function declarations for TS_REQ defined in ts/ts_req_print.c */\n\nint TS_REQ_print_bio(BIO *bio, TS_REQ *a);\n\n/* Function declarations for TS_RESP defined in ts/ts_resp_utils.c */\n\nint TS_RESP_set_status_info(TS_RESP *a, TS_STATUS_INFO *info);\nTS_STATUS_INFO *TS_RESP_get_status_info(TS_RESP *a);\n\n/* Caller loses ownership of PKCS7 and TS_TST_INFO objects. */\nvoid TS_RESP_set_tst_info(TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info);\nPKCS7 *TS_RESP_get_token(TS_RESP *a);\nTS_TST_INFO *TS_RESP_get_tst_info(TS_RESP *a);\n\nint TS_TST_INFO_set_version(TS_TST_INFO *a, long version);\nlong TS_TST_INFO_get_version(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_policy_id(TS_TST_INFO *a, ASN1_OBJECT *policy_id);\nASN1_OBJECT *TS_TST_INFO_get_policy_id(TS_TST_INFO *a);\n\nint TS_TST_INFO_set_msg_imprint(TS_TST_INFO *a, TS_MSG_IMPRINT *msg_imprint);\nTS_MSG_IMPRINT *TS_TST_INFO_get_msg_imprint(TS_TST_INFO *a);\n\nint TS_TST_INFO_set_serial(TS_TST_INFO *a, const ASN1_INTEGER *serial);\nconst ASN1_INTEGER *TS_TST_INFO_get_serial(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_time(TS_TST_INFO *a, const ASN1_GENERALIZEDTIME *gtime);\nconst ASN1_GENERALIZEDTIME *TS_TST_INFO_get_time(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_accuracy(TS_TST_INFO *a, TS_ACCURACY *accuracy);\nTS_ACCURACY *TS_TST_INFO_get_accuracy(TS_TST_INFO *a);\n\nint TS_ACCURACY_set_seconds(TS_ACCURACY *a, const ASN1_INTEGER *seconds);\nconst ASN1_INTEGER *TS_ACCURACY_get_seconds(const TS_ACCURACY *a);\n\nint TS_ACCURACY_set_millis(TS_ACCURACY *a, const ASN1_INTEGER *millis);\nconst ASN1_INTEGER *TS_ACCURACY_get_millis(const TS_ACCURACY *a);\n\nint TS_ACCURACY_set_micros(TS_ACCURACY *a, const ASN1_INTEGER *micros);\nconst ASN1_INTEGER *TS_ACCURACY_get_micros(const TS_ACCURACY *a);\n\nint TS_TST_INFO_set_ordering(TS_TST_INFO *a, int ordering);\nint TS_TST_INFO_get_ordering(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_nonce(TS_TST_INFO *a, const ASN1_INTEGER *nonce);\nconst ASN1_INTEGER *TS_TST_INFO_get_nonce(const TS_TST_INFO *a);\n\nint TS_TST_INFO_set_tsa(TS_TST_INFO *a, GENERAL_NAME *tsa);\nGENERAL_NAME *TS_TST_INFO_get_tsa(TS_TST_INFO *a);\n\nSTACK_OF(X509_EXTENSION) *TS_TST_INFO_get_exts(TS_TST_INFO *a);\nvoid TS_TST_INFO_ext_free(TS_TST_INFO *a);\nint TS_TST_INFO_get_ext_count(TS_TST_INFO *a);\nint TS_TST_INFO_get_ext_by_NID(TS_TST_INFO *a, int nid, int lastpos);\nint TS_TST_INFO_get_ext_by_OBJ(TS_TST_INFO *a, const ASN1_OBJECT *obj,\n                               int lastpos);\nint TS_TST_INFO_get_ext_by_critical(TS_TST_INFO *a, int crit, int lastpos);\nX509_EXTENSION *TS_TST_INFO_get_ext(TS_TST_INFO *a, int loc);\nX509_EXTENSION *TS_TST_INFO_delete_ext(TS_TST_INFO *a, int loc);\nint TS_TST_INFO_add_ext(TS_TST_INFO *a, X509_EXTENSION *ex, int loc);\nvoid *TS_TST_INFO_get_ext_d2i(TS_TST_INFO *a, int nid, int *crit, int *idx);\n\n/*\n * Declarations related to response generation, defined in ts/ts_resp_sign.c.\n */\n\n/* Optional flags for response generation. */\n\n/* Don't include the TSA name in response. */\n# define TS_TSA_NAME             0x01\n\n/* Set ordering to true in response. */\n# define TS_ORDERING             0x02\n\n/*\n * Include the signer certificate and the other specified certificates in\n * the ESS signing certificate attribute beside the PKCS7 signed data.\n * Only the signer certificates is included by default.\n */\n# define TS_ESS_CERT_ID_CHAIN    0x04\n\n/* Forward declaration. */\nstruct TS_resp_ctx;\n\n/* This must return a unique number less than 160 bits long. */\ntypedef ASN1_INTEGER *(*TS_serial_cb) (struct TS_resp_ctx *, void *);\n\n/*\n * This must return the seconds and microseconds since Jan 1, 1970 in the sec\n * and usec variables allocated by the caller. Return non-zero for success\n * and zero for failure.\n */\ntypedef int (*TS_time_cb) (struct TS_resp_ctx *, void *, long *sec,\n                           long *usec);\n\n/*\n * This must process the given extension. It can modify the TS_TST_INFO\n * object of the context. Return values: !0 (processed), 0 (error, it must\n * set the status info/failure info of the response).\n */\ntypedef int (*TS_extension_cb) (struct TS_resp_ctx *, X509_EXTENSION *,\n                                void *);\n\ntypedef struct TS_resp_ctx TS_RESP_CTX;\n\nDEFINE_STACK_OF_CONST(EVP_MD)\n\n/* Creates a response context that can be used for generating responses. */\nTS_RESP_CTX *TS_RESP_CTX_new(void);\nvoid TS_RESP_CTX_free(TS_RESP_CTX *ctx);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_signer_cert(TS_RESP_CTX *ctx, X509 *signer);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_signer_key(TS_RESP_CTX *ctx, EVP_PKEY *key);\n\nint TS_RESP_CTX_set_signer_digest(TS_RESP_CTX *ctx,\n                                  const EVP_MD *signer_digest);\nint TS_RESP_CTX_set_ess_cert_id_digest(TS_RESP_CTX *ctx, const EVP_MD *md);\n\n/* This parameter must be set. */\nint TS_RESP_CTX_set_def_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *def_policy);\n\n/* No additional certs are included in the response by default. */\nint TS_RESP_CTX_set_certs(TS_RESP_CTX *ctx, STACK_OF(X509) *certs);\n\n/*\n * Adds a new acceptable policy, only the default policy is accepted by\n * default.\n */\nint TS_RESP_CTX_add_policy(TS_RESP_CTX *ctx, const ASN1_OBJECT *policy);\n\n/*\n * Adds a new acceptable message digest. Note that no message digests are\n * accepted by default. The md argument is shared with the caller.\n */\nint TS_RESP_CTX_add_md(TS_RESP_CTX *ctx, const EVP_MD *md);\n\n/* Accuracy is not included by default. */\nint TS_RESP_CTX_set_accuracy(TS_RESP_CTX *ctx,\n                             int secs, int millis, int micros);\n\n/*\n * Clock precision digits, i.e. the number of decimal digits: '0' means sec,\n * '3' msec, '6' usec, and so on. Default is 0.\n */\nint TS_RESP_CTX_set_clock_precision_digits(TS_RESP_CTX *ctx,\n                                           unsigned clock_precision_digits);\n/* At most we accept usec precision. */\n# define TS_MAX_CLOCK_PRECISION_DIGITS   6\n\n/* Maximum status message length */\n# define TS_MAX_STATUS_LENGTH   (1024 * 1024)\n\n/* No flags are set by default. */\nvoid TS_RESP_CTX_add_flags(TS_RESP_CTX *ctx, int flags);\n\n/* Default callback always returns a constant. */\nvoid TS_RESP_CTX_set_serial_cb(TS_RESP_CTX *ctx, TS_serial_cb cb, void *data);\n\n/* Default callback uses the gettimeofday() and gmtime() system calls. */\nvoid TS_RESP_CTX_set_time_cb(TS_RESP_CTX *ctx, TS_time_cb cb, void *data);\n\n/*\n * Default callback rejects all extensions. The extension callback is called\n * when the TS_TST_INFO object is already set up and not signed yet.\n */\n/* FIXME: extension handling is not tested yet. */\nvoid TS_RESP_CTX_set_extension_cb(TS_RESP_CTX *ctx,\n                                  TS_extension_cb cb, void *data);\n\n/* The following methods can be used in the callbacks. */\nint TS_RESP_CTX_set_status_info(TS_RESP_CTX *ctx,\n                                int status, const char *text);\n\n/* Sets the status info only if it is still TS_STATUS_GRANTED. */\nint TS_RESP_CTX_set_status_info_cond(TS_RESP_CTX *ctx,\n                                     int status, const char *text);\n\nint TS_RESP_CTX_add_failure_info(TS_RESP_CTX *ctx, int failure);\n\n/* The get methods below can be used in the extension callback. */\nTS_REQ *TS_RESP_CTX_get_request(TS_RESP_CTX *ctx);\n\nTS_TST_INFO *TS_RESP_CTX_get_tst_info(TS_RESP_CTX *ctx);\n\n/*\n * Creates the signed TS_TST_INFO and puts it in TS_RESP.\n * In case of errors it sets the status info properly.\n * Returns NULL only in case of memory allocation/fatal error.\n */\nTS_RESP *TS_RESP_create_response(TS_RESP_CTX *ctx, BIO *req_bio);\n\n/*\n * Declarations related to response verification,\n * they are defined in ts/ts_resp_verify.c.\n */\n\nint TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs,\n                             X509_STORE *store, X509 **signer_out);\n\n/* Context structure for the generic verify method. */\n\n/* Verify the signer's certificate and the signature of the response. */\n# define TS_VFY_SIGNATURE        (1u << 0)\n/* Verify the version number of the response. */\n# define TS_VFY_VERSION          (1u << 1)\n/* Verify if the policy supplied by the user matches the policy of the TSA. */\n# define TS_VFY_POLICY           (1u << 2)\n/*\n * Verify the message imprint provided by the user. This flag should not be\n * specified with TS_VFY_DATA.\n */\n# define TS_VFY_IMPRINT          (1u << 3)\n/*\n * Verify the message imprint computed by the verify method from the user\n * provided data and the MD algorithm of the response. This flag should not\n * be specified with TS_VFY_IMPRINT.\n */\n# define TS_VFY_DATA             (1u << 4)\n/* Verify the nonce value. */\n# define TS_VFY_NONCE            (1u << 5)\n/* Verify if the TSA name field matches the signer certificate. */\n# define TS_VFY_SIGNER           (1u << 6)\n/* Verify if the TSA name field equals to the user provided name. */\n# define TS_VFY_TSA_NAME         (1u << 7)\n\n/* You can use the following convenience constants. */\n# define TS_VFY_ALL_IMPRINT      (TS_VFY_SIGNATURE       \\\n                                 | TS_VFY_VERSION       \\\n                                 | TS_VFY_POLICY        \\\n                                 | TS_VFY_IMPRINT       \\\n                                 | TS_VFY_NONCE         \\\n                                 | TS_VFY_SIGNER        \\\n                                 | TS_VFY_TSA_NAME)\n# define TS_VFY_ALL_DATA         (TS_VFY_SIGNATURE       \\\n                                 | TS_VFY_VERSION       \\\n                                 | TS_VFY_POLICY        \\\n                                 | TS_VFY_DATA          \\\n                                 | TS_VFY_NONCE         \\\n                                 | TS_VFY_SIGNER        \\\n                                 | TS_VFY_TSA_NAME)\n\ntypedef struct TS_verify_ctx TS_VERIFY_CTX;\n\nint TS_RESP_verify_response(TS_VERIFY_CTX *ctx, TS_RESP *response);\nint TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token);\n\n/*\n * Declarations related to response verification context,\n */\nTS_VERIFY_CTX *TS_VERIFY_CTX_new(void);\nvoid TS_VERIFY_CTX_init(TS_VERIFY_CTX *ctx);\nvoid TS_VERIFY_CTX_free(TS_VERIFY_CTX *ctx);\nvoid TS_VERIFY_CTX_cleanup(TS_VERIFY_CTX *ctx);\nint TS_VERIFY_CTX_set_flags(TS_VERIFY_CTX *ctx, int f);\nint TS_VERIFY_CTX_add_flags(TS_VERIFY_CTX *ctx, int f);\nBIO *TS_VERIFY_CTX_set_data(TS_VERIFY_CTX *ctx, BIO *b);\nunsigned char *TS_VERIFY_CTX_set_imprint(TS_VERIFY_CTX *ctx,\n                                         unsigned char *hexstr, long len);\nX509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s);\nSTACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx, STACK_OF(X509) *certs);\n\n/*-\n * If ctx is NULL, it allocates and returns a new object, otherwise\n * it returns ctx. It initialises all the members as follows:\n * flags = TS_VFY_ALL_IMPRINT & ~(TS_VFY_TSA_NAME | TS_VFY_SIGNATURE)\n * certs = NULL\n * store = NULL\n * policy = policy from the request or NULL if absent (in this case\n *      TS_VFY_POLICY is cleared from flags as well)\n * md_alg = MD algorithm from request\n * imprint, imprint_len = imprint from request\n * data = NULL\n * nonce, nonce_len = nonce from the request or NULL if absent (in this case\n *      TS_VFY_NONCE is cleared from flags as well)\n * tsa_name = NULL\n * Important: after calling this method TS_VFY_SIGNATURE should be added!\n */\nTS_VERIFY_CTX *TS_REQ_to_TS_VERIFY_CTX(TS_REQ *req, TS_VERIFY_CTX *ctx);\n\n/* Function declarations for TS_RESP defined in ts/ts_resp_print.c */\n\nint TS_RESP_print_bio(BIO *bio, TS_RESP *a);\nint TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a);\nint TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a);\n\n/* Common utility functions defined in ts/ts_lib.c */\n\nint TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num);\nint TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj);\nint TS_ext_print_bio(BIO *bio, const STACK_OF(X509_EXTENSION) *extensions);\nint TS_X509_ALGOR_print_bio(BIO *bio, const X509_ALGOR *alg);\nint TS_MSG_IMPRINT_print_bio(BIO *bio, TS_MSG_IMPRINT *msg);\n\n/*\n * Function declarations for handling configuration options, defined in\n * ts/ts_conf.c\n */\n\nX509 *TS_CONF_load_cert(const char *file);\nSTACK_OF(X509) *TS_CONF_load_certs(const char *file);\nEVP_PKEY *TS_CONF_load_key(const char *file, const char *pass);\nconst char *TS_CONF_get_tsa_section(CONF *conf, const char *section);\nint TS_CONF_set_serial(CONF *conf, const char *section, TS_serial_cb cb,\n                       TS_RESP_CTX *ctx);\n#ifndef OPENSSL_NO_ENGINE\nint TS_CONF_set_crypto_device(CONF *conf, const char *section,\n                              const char *device);\nint TS_CONF_set_default_engine(const char *name);\n#endif\nint TS_CONF_set_signer_cert(CONF *conf, const char *section,\n                            const char *cert, TS_RESP_CTX *ctx);\nint TS_CONF_set_certs(CONF *conf, const char *section, const char *certs,\n                      TS_RESP_CTX *ctx);\nint TS_CONF_set_signer_key(CONF *conf, const char *section,\n                           const char *key, const char *pass,\n                           TS_RESP_CTX *ctx);\nint TS_CONF_set_signer_digest(CONF *conf, const char *section,\n                               const char *md, TS_RESP_CTX *ctx);\nint TS_CONF_set_def_policy(CONF *conf, const char *section,\n                           const char *policy, TS_RESP_CTX *ctx);\nint TS_CONF_set_policies(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_digests(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_accuracy(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_clock_precision_digits(CONF *conf, const char *section,\n                                       TS_RESP_CTX *ctx);\nint TS_CONF_set_ordering(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_tsa_name(CONF *conf, const char *section, TS_RESP_CTX *ctx);\nint TS_CONF_set_ess_cert_id_chain(CONF *conf, const char *section,\n                                  TS_RESP_CTX *ctx);\nint TS_CONF_set_ess_cert_id_digest(CONF *conf, const char *section,\n                                      TS_RESP_CTX *ctx);\n\n#  ifdef  __cplusplus\n}\n#  endif\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/tserr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TSERR_H\n# define HEADER_TSERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_TS\n\n#  ifdef  __cplusplus\nextern \"C\"\n#  endif\nint ERR_load_TS_strings(void);\n\n/*\n * TS function codes.\n */\n#  define TS_F_DEF_SERIAL_CB                               110\n#  define TS_F_DEF_TIME_CB                                 111\n#  define TS_F_ESS_ADD_SIGNING_CERT                        112\n#  define TS_F_ESS_ADD_SIGNING_CERT_V2                     147\n#  define TS_F_ESS_CERT_ID_NEW_INIT                        113\n#  define TS_F_ESS_CERT_ID_V2_NEW_INIT                     156\n#  define TS_F_ESS_SIGNING_CERT_NEW_INIT                   114\n#  define TS_F_ESS_SIGNING_CERT_V2_NEW_INIT                157\n#  define TS_F_INT_TS_RESP_VERIFY_TOKEN                    149\n#  define TS_F_PKCS7_TO_TS_TST_INFO                        148\n#  define TS_F_TS_ACCURACY_SET_MICROS                      115\n#  define TS_F_TS_ACCURACY_SET_MILLIS                      116\n#  define TS_F_TS_ACCURACY_SET_SECONDS                     117\n#  define TS_F_TS_CHECK_IMPRINTS                           100\n#  define TS_F_TS_CHECK_NONCES                             101\n#  define TS_F_TS_CHECK_POLICY                             102\n#  define TS_F_TS_CHECK_SIGNING_CERTS                      103\n#  define TS_F_TS_CHECK_STATUS_INFO                        104\n#  define TS_F_TS_COMPUTE_IMPRINT                          145\n#  define TS_F_TS_CONF_INVALID                             151\n#  define TS_F_TS_CONF_LOAD_CERT                           153\n#  define TS_F_TS_CONF_LOAD_CERTS                          154\n#  define TS_F_TS_CONF_LOAD_KEY                            155\n#  define TS_F_TS_CONF_LOOKUP_FAIL                         152\n#  define TS_F_TS_CONF_SET_DEFAULT_ENGINE                  146\n#  define TS_F_TS_GET_STATUS_TEXT                          105\n#  define TS_F_TS_MSG_IMPRINT_SET_ALGO                     118\n#  define TS_F_TS_REQ_SET_MSG_IMPRINT                      119\n#  define TS_F_TS_REQ_SET_NONCE                            120\n#  define TS_F_TS_REQ_SET_POLICY_ID                        121\n#  define TS_F_TS_RESP_CREATE_RESPONSE                     122\n#  define TS_F_TS_RESP_CREATE_TST_INFO                     123\n#  define TS_F_TS_RESP_CTX_ADD_FAILURE_INFO                124\n#  define TS_F_TS_RESP_CTX_ADD_MD                          125\n#  define TS_F_TS_RESP_CTX_ADD_POLICY                      126\n#  define TS_F_TS_RESP_CTX_NEW                             127\n#  define TS_F_TS_RESP_CTX_SET_ACCURACY                    128\n#  define TS_F_TS_RESP_CTX_SET_CERTS                       129\n#  define TS_F_TS_RESP_CTX_SET_DEF_POLICY                  130\n#  define TS_F_TS_RESP_CTX_SET_SIGNER_CERT                 131\n#  define TS_F_TS_RESP_CTX_SET_STATUS_INFO                 132\n#  define TS_F_TS_RESP_GET_POLICY                          133\n#  define TS_F_TS_RESP_SET_GENTIME_WITH_PRECISION          134\n#  define TS_F_TS_RESP_SET_STATUS_INFO                     135\n#  define TS_F_TS_RESP_SET_TST_INFO                        150\n#  define TS_F_TS_RESP_SIGN                                136\n#  define TS_F_TS_RESP_VERIFY_SIGNATURE                    106\n#  define TS_F_TS_TST_INFO_SET_ACCURACY                    137\n#  define TS_F_TS_TST_INFO_SET_MSG_IMPRINT                 138\n#  define TS_F_TS_TST_INFO_SET_NONCE                       139\n#  define TS_F_TS_TST_INFO_SET_POLICY_ID                   140\n#  define TS_F_TS_TST_INFO_SET_SERIAL                      141\n#  define TS_F_TS_TST_INFO_SET_TIME                        142\n#  define TS_F_TS_TST_INFO_SET_TSA                         143\n#  define TS_F_TS_VERIFY                                   108\n#  define TS_F_TS_VERIFY_CERT                              109\n#  define TS_F_TS_VERIFY_CTX_NEW                           144\n\n/*\n * TS reason codes.\n */\n#  define TS_R_BAD_PKCS7_TYPE                              132\n#  define TS_R_BAD_TYPE                                    133\n#  define TS_R_CANNOT_LOAD_CERT                            137\n#  define TS_R_CANNOT_LOAD_KEY                             138\n#  define TS_R_CERTIFICATE_VERIFY_ERROR                    100\n#  define TS_R_COULD_NOT_SET_ENGINE                        127\n#  define TS_R_COULD_NOT_SET_TIME                          115\n#  define TS_R_DETACHED_CONTENT                            134\n#  define TS_R_ESS_ADD_SIGNING_CERT_ERROR                  116\n#  define TS_R_ESS_ADD_SIGNING_CERT_V2_ERROR               139\n#  define TS_R_ESS_SIGNING_CERTIFICATE_ERROR               101\n#  define TS_R_INVALID_NULL_POINTER                        102\n#  define TS_R_INVALID_SIGNER_CERTIFICATE_PURPOSE          117\n#  define TS_R_MESSAGE_IMPRINT_MISMATCH                    103\n#  define TS_R_NONCE_MISMATCH                              104\n#  define TS_R_NONCE_NOT_RETURNED                          105\n#  define TS_R_NO_CONTENT                                  106\n#  define TS_R_NO_TIME_STAMP_TOKEN                         107\n#  define TS_R_PKCS7_ADD_SIGNATURE_ERROR                   118\n#  define TS_R_PKCS7_ADD_SIGNED_ATTR_ERROR                 119\n#  define TS_R_PKCS7_TO_TS_TST_INFO_FAILED                 129\n#  define TS_R_POLICY_MISMATCH                             108\n#  define TS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE      120\n#  define TS_R_RESPONSE_SETUP_ERROR                        121\n#  define TS_R_SIGNATURE_FAILURE                           109\n#  define TS_R_THERE_MUST_BE_ONE_SIGNER                    110\n#  define TS_R_TIME_SYSCALL_ERROR                          122\n#  define TS_R_TOKEN_NOT_PRESENT                           130\n#  define TS_R_TOKEN_PRESENT                               131\n#  define TS_R_TSA_NAME_MISMATCH                           111\n#  define TS_R_TSA_UNTRUSTED                               112\n#  define TS_R_TST_INFO_SETUP_ERROR                        123\n#  define TS_R_TS_DATASIGN                                 124\n#  define TS_R_UNACCEPTABLE_POLICY                         125\n#  define TS_R_UNSUPPORTED_MD_ALGORITHM                    126\n#  define TS_R_UNSUPPORTED_VERSION                         113\n#  define TS_R_VAR_BAD_VALUE                               135\n#  define TS_R_VAR_LOOKUP_FAILURE                          136\n#  define TS_R_WRONG_CONTENT_TYPE                          114\n\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/txt_db.h",
    "content": "/*\n * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_TXT_DB_H\n# define HEADER_TXT_DB_H\n\n# include <openssl/opensslconf.h>\n# include <openssl/bio.h>\n# include <openssl/safestack.h>\n# include <openssl/lhash.h>\n\n# define DB_ERROR_OK                     0\n# define DB_ERROR_MALLOC                 1\n# define DB_ERROR_INDEX_CLASH            2\n# define DB_ERROR_INDEX_OUT_OF_RANGE     3\n# define DB_ERROR_NO_INDEX               4\n# define DB_ERROR_INSERT_INDEX_CLASH     5\n# define DB_ERROR_WRONG_NUM_FIELDS       6\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\ntypedef OPENSSL_STRING *OPENSSL_PSTRING;\nDEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)\n\ntypedef struct txt_db_st {\n    int num_fields;\n    STACK_OF(OPENSSL_PSTRING) *data;\n    LHASH_OF(OPENSSL_STRING) **index;\n    int (**qual) (OPENSSL_STRING *);\n    long error;\n    long arg1;\n    long arg2;\n    OPENSSL_STRING *arg_row;\n} TXT_DB;\n\nTXT_DB *TXT_DB_read(BIO *in, int num);\nlong TXT_DB_write(BIO *out, TXT_DB *db);\nint TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *),\n                        OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp);\nvoid TXT_DB_free(TXT_DB *db);\nOPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx,\n                                    OPENSSL_STRING *value);\nint TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);\n\n#ifdef  __cplusplus\n}\n#endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/ui.h",
    "content": "/*\n * Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_UI_H\n# define HEADER_UI_H\n\n# include <openssl/opensslconf.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/crypto.h>\n# endif\n# include <openssl/safestack.h>\n# include <openssl/pem.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/uierr.h>\n\n/* For compatibility reasons, the macro OPENSSL_NO_UI is currently retained */\n# if OPENSSL_API_COMPAT < 0x10200000L\n#  ifdef OPENSSL_NO_UI_CONSOLE\n#   define OPENSSL_NO_UI\n#  endif\n# endif\n\n# ifdef  __cplusplus\nextern \"C\" {\n# endif\n\n/*\n * All the following functions return -1 or NULL on error and in some cases\n * (UI_process()) -2 if interrupted or in some other way cancelled. When\n * everything is fine, they return 0, a positive value or a non-NULL pointer,\n * all depending on their purpose.\n */\n\n/* Creators and destructor.   */\nUI *UI_new(void);\nUI *UI_new_method(const UI_METHOD *method);\nvoid UI_free(UI *ui);\n\n/*-\n   The following functions are used to add strings to be printed and prompt\n   strings to prompt for data.  The names are UI_{add,dup}_<function>_string\n   and UI_{add,dup}_input_boolean.\n\n   UI_{add,dup}_<function>_string have the following meanings:\n        add     add a text or prompt string.  The pointers given to these\n                functions are used verbatim, no copying is done.\n        dup     make a copy of the text or prompt string, then add the copy\n                to the collection of strings in the user interface.\n        <function>\n                The function is a name for the functionality that the given\n                string shall be used for.  It can be one of:\n                        input   use the string as data prompt.\n                        verify  use the string as verification prompt.  This\n                                is used to verify a previous input.\n                        info    use the string for informational output.\n                        error   use the string for error output.\n   Honestly, there's currently no difference between info and error for the\n   moment.\n\n   UI_{add,dup}_input_boolean have the same semantics for \"add\" and \"dup\",\n   and are typically used when one wants to prompt for a yes/no response.\n\n   All of the functions in this group take a UI and a prompt string.\n   The string input and verify addition functions also take a flag argument,\n   a buffer for the result to end up with, a minimum input size and a maximum\n   input size (the result buffer MUST be large enough to be able to contain\n   the maximum number of characters).  Additionally, the verify addition\n   functions takes another buffer to compare the result against.\n   The boolean input functions take an action description string (which should\n   be safe to ignore if the expected user action is obvious, for example with\n   a dialog box with an OK button and a Cancel button), a string of acceptable\n   characters to mean OK and to mean Cancel.  The two last strings are checked\n   to make sure they don't have common characters.  Additionally, the same\n   flag argument as for the string input is taken, as well as a result buffer.\n   The result buffer is required to be at least one byte long.  Depending on\n   the answer, the first character from the OK or the Cancel character strings\n   will be stored in the first byte of the result buffer.  No NUL will be\n   added, so the result is *not* a string.\n\n   On success, the all return an index of the added information.  That index\n   is useful when retrieving results with UI_get0_result(). */\nint UI_add_input_string(UI *ui, const char *prompt, int flags,\n                        char *result_buf, int minsize, int maxsize);\nint UI_dup_input_string(UI *ui, const char *prompt, int flags,\n                        char *result_buf, int minsize, int maxsize);\nint UI_add_verify_string(UI *ui, const char *prompt, int flags,\n                         char *result_buf, int minsize, int maxsize,\n                         const char *test_buf);\nint UI_dup_verify_string(UI *ui, const char *prompt, int flags,\n                         char *result_buf, int minsize, int maxsize,\n                         const char *test_buf);\nint UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc,\n                         const char *ok_chars, const char *cancel_chars,\n                         int flags, char *result_buf);\nint UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc,\n                         const char *ok_chars, const char *cancel_chars,\n                         int flags, char *result_buf);\nint UI_add_info_string(UI *ui, const char *text);\nint UI_dup_info_string(UI *ui, const char *text);\nint UI_add_error_string(UI *ui, const char *text);\nint UI_dup_error_string(UI *ui, const char *text);\n\n/* These are the possible flags.  They can be or'ed together. */\n/* Use to have echoing of input */\n# define UI_INPUT_FLAG_ECHO              0x01\n/*\n * Use a default password.  Where that password is found is completely up to\n * the application, it might for example be in the user data set with\n * UI_add_user_data().  It is not recommended to have more than one input in\n * each UI being marked with this flag, or the application might get\n * confused.\n */\n# define UI_INPUT_FLAG_DEFAULT_PWD       0x02\n\n/*-\n * The user of these routines may want to define flags of their own.  The core\n * UI won't look at those, but will pass them on to the method routines.  They\n * must use higher bits so they don't get confused with the UI bits above.\n * UI_INPUT_FLAG_USER_BASE tells which is the lowest bit to use.  A good\n * example of use is this:\n *\n *    #define MY_UI_FLAG1       (0x01 << UI_INPUT_FLAG_USER_BASE)\n *\n*/\n# define UI_INPUT_FLAG_USER_BASE 16\n\n/*-\n * The following function helps construct a prompt.  object_desc is a\n * textual short description of the object, for example \"pass phrase\",\n * and object_name is the name of the object (might be a card name or\n * a file name.\n * The returned string shall always be allocated on the heap with\n * OPENSSL_malloc(), and need to be free'd with OPENSSL_free().\n *\n * If the ui_method doesn't contain a pointer to a user-defined prompt\n * constructor, a default string is built, looking like this:\n *\n *       \"Enter {object_desc} for {object_name}:\"\n *\n * So, if object_desc has the value \"pass phrase\" and object_name has\n * the value \"foo.key\", the resulting string is:\n *\n *       \"Enter pass phrase for foo.key:\"\n*/\nchar *UI_construct_prompt(UI *ui_method,\n                          const char *object_desc, const char *object_name);\n\n/*\n * The following function is used to store a pointer to user-specific data.\n * Any previous such pointer will be returned and replaced.\n *\n * For callback purposes, this function makes a lot more sense than using\n * ex_data, since the latter requires that different parts of OpenSSL or\n * applications share the same ex_data index.\n *\n * Note that the UI_OpenSSL() method completely ignores the user data. Other\n * methods may not, however.\n */\nvoid *UI_add_user_data(UI *ui, void *user_data);\n/*\n * Alternatively, this function is used to duplicate the user data.\n * This uses the duplicator method function.  The destroy function will\n * be used to free the user data in this case.\n */\nint UI_dup_user_data(UI *ui, void *user_data);\n/* We need a user data retrieving function as well.  */\nvoid *UI_get0_user_data(UI *ui);\n\n/* Return the result associated with a prompt given with the index i. */\nconst char *UI_get0_result(UI *ui, int i);\nint UI_get_result_length(UI *ui, int i);\n\n/* When all strings have been added, process the whole thing. */\nint UI_process(UI *ui);\n\n/*\n * Give a user interface parameterised control commands.  This can be used to\n * send down an integer, a data pointer or a function pointer, as well as be\n * used to get information from a UI.\n */\nint UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f) (void));\n\n/* The commands */\n/*\n * Use UI_CONTROL_PRINT_ERRORS with the value 1 to have UI_process print the\n * OpenSSL error stack before printing any info or added error messages and\n * before any prompting.\n */\n# define UI_CTRL_PRINT_ERRORS            1\n/*\n * Check if a UI_process() is possible to do again with the same instance of\n * a user interface.  This makes UI_ctrl() return 1 if it is redoable, and 0\n * if not.\n */\n# define UI_CTRL_IS_REDOABLE             2\n\n/* Some methods may use extra data */\n# define UI_set_app_data(s,arg)         UI_set_ex_data(s,0,arg)\n# define UI_get_app_data(s)             UI_get_ex_data(s,0)\n\n# define UI_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_UI, l, p, newf, dupf, freef)\nint UI_set_ex_data(UI *r, int idx, void *arg);\nvoid *UI_get_ex_data(UI *r, int idx);\n\n/* Use specific methods instead of the built-in one */\nvoid UI_set_default_method(const UI_METHOD *meth);\nconst UI_METHOD *UI_get_default_method(void);\nconst UI_METHOD *UI_get_method(UI *ui);\nconst UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth);\n\n# ifndef OPENSSL_NO_UI_CONSOLE\n\n/* The method with all the built-in thingies */\nUI_METHOD *UI_OpenSSL(void);\n\n# endif\n\n/*\n * NULL method.  Literally does nothing, but may serve as a placeholder\n * to avoid internal default.\n */\nconst UI_METHOD *UI_null(void);\n\n/* ---------- For method writers ---------- */\n/*-\n   A method contains a number of functions that implement the low level\n   of the User Interface.  The functions are:\n\n        an opener       This function starts a session, maybe by opening\n                        a channel to a tty, or by opening a window.\n        a writer        This function is called to write a given string,\n                        maybe to the tty, maybe as a field label in a\n                        window.\n        a flusher       This function is called to flush everything that\n                        has been output so far.  It can be used to actually\n                        display a dialog box after it has been built.\n        a reader        This function is called to read a given prompt,\n                        maybe from the tty, maybe from a field in a\n                        window.  Note that it's called with all string\n                        structures, not only the prompt ones, so it must\n                        check such things itself.\n        a closer        This function closes the session, maybe by closing\n                        the channel to the tty, or closing the window.\n\n   All these functions are expected to return:\n\n        0       on error.\n        1       on success.\n        -1      on out-of-band events, for example if some prompting has\n                been canceled (by pressing Ctrl-C, for example).  This is\n                only checked when returned by the flusher or the reader.\n\n   The way this is used, the opener is first called, then the writer for all\n   strings, then the flusher, then the reader for all strings and finally the\n   closer.  Note that if you want to prompt from a terminal or other command\n   line interface, the best is to have the reader also write the prompts\n   instead of having the writer do it.  If you want to prompt from a dialog\n   box, the writer can be used to build up the contents of the box, and the\n   flusher to actually display the box and run the event loop until all data\n   has been given, after which the reader only grabs the given data and puts\n   them back into the UI strings.\n\n   All method functions take a UI as argument.  Additionally, the writer and\n   the reader take a UI_STRING.\n*/\n\n/*\n * The UI_STRING type is the data structure that contains all the needed info\n * about a string or a prompt, including test data for a verification prompt.\n */\ntypedef struct ui_string_st UI_STRING;\nDEFINE_STACK_OF(UI_STRING)\n\n/*\n * The different types of strings that are currently supported. This is only\n * needed by method authors.\n */\nenum UI_string_types {\n    UIT_NONE = 0,\n    UIT_PROMPT,                 /* Prompt for a string */\n    UIT_VERIFY,                 /* Prompt for a string and verify */\n    UIT_BOOLEAN,                /* Prompt for a yes/no response */\n    UIT_INFO,                   /* Send info to the user */\n    UIT_ERROR                   /* Send an error message to the user */\n};\n\n/* Create and manipulate methods */\nUI_METHOD *UI_create_method(const char *name);\nvoid UI_destroy_method(UI_METHOD *ui_method);\nint UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui));\nint UI_method_set_writer(UI_METHOD *method,\n                         int (*writer) (UI *ui, UI_STRING *uis));\nint UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui));\nint UI_method_set_reader(UI_METHOD *method,\n                         int (*reader) (UI *ui, UI_STRING *uis));\nint UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui));\nint UI_method_set_data_duplicator(UI_METHOD *method,\n                                  void *(*duplicator) (UI *ui, void *ui_data),\n                                  void (*destructor)(UI *ui, void *ui_data));\nint UI_method_set_prompt_constructor(UI_METHOD *method,\n                                     char *(*prompt_constructor) (UI *ui,\n                                                                  const char\n                                                                  *object_desc,\n                                                                  const char\n                                                                  *object_name));\nint UI_method_set_ex_data(UI_METHOD *method, int idx, void *data);\nint (*UI_method_get_opener(const UI_METHOD *method)) (UI *);\nint (*UI_method_get_writer(const UI_METHOD *method)) (UI *, UI_STRING *);\nint (*UI_method_get_flusher(const UI_METHOD *method)) (UI *);\nint (*UI_method_get_reader(const UI_METHOD *method)) (UI *, UI_STRING *);\nint (*UI_method_get_closer(const UI_METHOD *method)) (UI *);\nchar *(*UI_method_get_prompt_constructor(const UI_METHOD *method))\n    (UI *, const char *, const char *);\nvoid *(*UI_method_get_data_duplicator(const UI_METHOD *method)) (UI *, void *);\nvoid (*UI_method_get_data_destructor(const UI_METHOD *method)) (UI *, void *);\nconst void *UI_method_get_ex_data(const UI_METHOD *method, int idx);\n\n/*\n * The following functions are helpers for method writers to access relevant\n * data from a UI_STRING.\n */\n\n/* Return type of the UI_STRING */\nenum UI_string_types UI_get_string_type(UI_STRING *uis);\n/* Return input flags of the UI_STRING */\nint UI_get_input_flags(UI_STRING *uis);\n/* Return the actual string to output (the prompt, info or error) */\nconst char *UI_get0_output_string(UI_STRING *uis);\n/*\n * Return the optional action string to output (the boolean prompt\n * instruction)\n */\nconst char *UI_get0_action_string(UI_STRING *uis);\n/* Return the result of a prompt */\nconst char *UI_get0_result_string(UI_STRING *uis);\nint UI_get_result_string_length(UI_STRING *uis);\n/*\n * Return the string to test the result against.  Only useful with verifies.\n */\nconst char *UI_get0_test_string(UI_STRING *uis);\n/* Return the required minimum size of the result */\nint UI_get_result_minsize(UI_STRING *uis);\n/* Return the required maximum size of the result */\nint UI_get_result_maxsize(UI_STRING *uis);\n/* Set the result of a UI_STRING. */\nint UI_set_result(UI *ui, UI_STRING *uis, const char *result);\nint UI_set_result_ex(UI *ui, UI_STRING *uis, const char *result, int len);\n\n/* A couple of popular utility functions */\nint UI_UTIL_read_pw_string(char *buf, int length, const char *prompt,\n                           int verify);\nint UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt,\n                    int verify);\nUI_METHOD *UI_UTIL_wrap_read_pem_callback(pem_password_cb *cb, int rwflag);\n\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/uierr.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_UIERR_H\n# define HEADER_UIERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_UI_strings(void);\n\n/*\n * UI function codes.\n */\n# define UI_F_CLOSE_CONSOLE                               115\n# define UI_F_ECHO_CONSOLE                                116\n# define UI_F_GENERAL_ALLOCATE_BOOLEAN                    108\n# define UI_F_GENERAL_ALLOCATE_PROMPT                     109\n# define UI_F_NOECHO_CONSOLE                              117\n# define UI_F_OPEN_CONSOLE                                114\n# define UI_F_UI_CONSTRUCT_PROMPT                         121\n# define UI_F_UI_CREATE_METHOD                            112\n# define UI_F_UI_CTRL                                     111\n# define UI_F_UI_DUP_ERROR_STRING                         101\n# define UI_F_UI_DUP_INFO_STRING                          102\n# define UI_F_UI_DUP_INPUT_BOOLEAN                        110\n# define UI_F_UI_DUP_INPUT_STRING                         103\n# define UI_F_UI_DUP_USER_DATA                            118\n# define UI_F_UI_DUP_VERIFY_STRING                        106\n# define UI_F_UI_GET0_RESULT                              107\n# define UI_F_UI_GET_RESULT_LENGTH                        119\n# define UI_F_UI_NEW_METHOD                               104\n# define UI_F_UI_PROCESS                                  113\n# define UI_F_UI_SET_RESULT                               105\n# define UI_F_UI_SET_RESULT_EX                            120\n\n/*\n * UI reason codes.\n */\n# define UI_R_COMMON_OK_AND_CANCEL_CHARACTERS             104\n# define UI_R_INDEX_TOO_LARGE                             102\n# define UI_R_INDEX_TOO_SMALL                             103\n# define UI_R_NO_RESULT_BUFFER                            105\n# define UI_R_PROCESSING_ERROR                            107\n# define UI_R_RESULT_TOO_LARGE                            100\n# define UI_R_RESULT_TOO_SMALL                            101\n# define UI_R_SYSASSIGN_ERROR                             109\n# define UI_R_SYSDASSGN_ERROR                             110\n# define UI_R_SYSQIOW_ERROR                               111\n# define UI_R_UNKNOWN_CONTROL_COMMAND                     106\n# define UI_R_UNKNOWN_TTYGET_ERRNO_VALUE                  108\n# define UI_R_USER_DATA_DUPLICATION_UNSUPPORTED           112\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/whrlpool.h",
    "content": "/*\n * Copyright 2005-2016 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_WHRLPOOL_H\n# define HEADER_WHRLPOOL_H\n\n#include <openssl/opensslconf.h>\n\n# ifndef OPENSSL_NO_WHIRLPOOL\n# include <openssl/e_os2.h>\n# include <stddef.h>\n# ifdef __cplusplus\nextern \"C\" {\n# endif\n\n# define WHIRLPOOL_DIGEST_LENGTH (512/8)\n# define WHIRLPOOL_BBLOCK        512\n# define WHIRLPOOL_COUNTER       (256/8)\n\ntypedef struct {\n    union {\n        unsigned char c[WHIRLPOOL_DIGEST_LENGTH];\n        /* double q is here to ensure 64-bit alignment */\n        double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)];\n    } H;\n    unsigned char data[WHIRLPOOL_BBLOCK / 8];\n    unsigned int bitoff;\n    size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)];\n} WHIRLPOOL_CTX;\n\nint WHIRLPOOL_Init(WHIRLPOOL_CTX *c);\nint WHIRLPOOL_Update(WHIRLPOOL_CTX *c, const void *inp, size_t bytes);\nvoid WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, const void *inp, size_t bits);\nint WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c);\nunsigned char *WHIRLPOOL(const void *inp, size_t bytes, unsigned char *md);\n\n# ifdef __cplusplus\n}\n# endif\n# endif\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/x509.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509_H\n# define HEADER_X509_H\n\n# include <openssl/e_os2.h>\n# include <openssl/ossl_typ.h>\n# include <openssl/symhacks.h>\n# include <openssl/buffer.h>\n# include <openssl/evp.h>\n# include <openssl/bio.h>\n# include <openssl/asn1.h>\n# include <openssl/safestack.h>\n# include <openssl/ec.h>\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  include <openssl/rsa.h>\n#  include <openssl/dsa.h>\n#  include <openssl/dh.h>\n# endif\n\n# include <openssl/sha.h>\n# include <openssl/x509err.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n\n/* Flags for X509_get_signature_info() */\n/* Signature info is valid */\n# define X509_SIG_INFO_VALID     0x1\n/* Signature is suitable for TLS use */\n# define X509_SIG_INFO_TLS       0x2\n\n# define X509_FILETYPE_PEM       1\n# define X509_FILETYPE_ASN1      2\n# define X509_FILETYPE_DEFAULT   3\n\n# define X509v3_KU_DIGITAL_SIGNATURE     0x0080\n# define X509v3_KU_NON_REPUDIATION       0x0040\n# define X509v3_KU_KEY_ENCIPHERMENT      0x0020\n# define X509v3_KU_DATA_ENCIPHERMENT     0x0010\n# define X509v3_KU_KEY_AGREEMENT         0x0008\n# define X509v3_KU_KEY_CERT_SIGN         0x0004\n# define X509v3_KU_CRL_SIGN              0x0002\n# define X509v3_KU_ENCIPHER_ONLY         0x0001\n# define X509v3_KU_DECIPHER_ONLY         0x8000\n# define X509v3_KU_UNDEF                 0xffff\n\nstruct X509_algor_st {\n    ASN1_OBJECT *algorithm;\n    ASN1_TYPE *parameter;\n} /* X509_ALGOR */ ;\n\ntypedef STACK_OF(X509_ALGOR) X509_ALGORS;\n\ntypedef struct X509_val_st {\n    ASN1_TIME *notBefore;\n    ASN1_TIME *notAfter;\n} X509_VAL;\n\ntypedef struct X509_sig_st X509_SIG;\n\ntypedef struct X509_name_entry_st X509_NAME_ENTRY;\n\nDEFINE_STACK_OF(X509_NAME_ENTRY)\n\nDEFINE_STACK_OF(X509_NAME)\n\n# define X509_EX_V_NETSCAPE_HACK         0x8000\n# define X509_EX_V_INIT                  0x0001\ntypedef struct X509_extension_st X509_EXTENSION;\n\ntypedef STACK_OF(X509_EXTENSION) X509_EXTENSIONS;\n\nDEFINE_STACK_OF(X509_EXTENSION)\n\ntypedef struct x509_attributes_st X509_ATTRIBUTE;\n\nDEFINE_STACK_OF(X509_ATTRIBUTE)\n\ntypedef struct X509_req_info_st X509_REQ_INFO;\n\ntypedef struct X509_req_st X509_REQ;\n\ntypedef struct x509_cert_aux_st X509_CERT_AUX;\n\ntypedef struct x509_cinf_st X509_CINF;\n\nDEFINE_STACK_OF(X509)\n\n/* This is used for a table of trust checking functions */\n\ntypedef struct x509_trust_st {\n    int trust;\n    int flags;\n    int (*check_trust) (struct x509_trust_st *, X509 *, int);\n    char *name;\n    int arg1;\n    void *arg2;\n} X509_TRUST;\n\nDEFINE_STACK_OF(X509_TRUST)\n\n/* standard trust ids */\n\n# define X509_TRUST_DEFAULT      0 /* Only valid in purpose settings */\n\n# define X509_TRUST_COMPAT       1\n# define X509_TRUST_SSL_CLIENT   2\n# define X509_TRUST_SSL_SERVER   3\n# define X509_TRUST_EMAIL        4\n# define X509_TRUST_OBJECT_SIGN  5\n# define X509_TRUST_OCSP_SIGN    6\n# define X509_TRUST_OCSP_REQUEST 7\n# define X509_TRUST_TSA          8\n\n/* Keep these up to date! */\n# define X509_TRUST_MIN          1\n# define X509_TRUST_MAX          8\n\n/* trust_flags values */\n# define X509_TRUST_DYNAMIC      (1U << 0)\n# define X509_TRUST_DYNAMIC_NAME (1U << 1)\n/* No compat trust if self-signed, preempts \"DO_SS\" */\n# define X509_TRUST_NO_SS_COMPAT (1U << 2)\n/* Compat trust if no explicit accepted trust EKUs */\n# define X509_TRUST_DO_SS_COMPAT (1U << 3)\n/* Accept \"anyEKU\" as a wildcard trust OID */\n# define X509_TRUST_OK_ANY_EKU   (1U << 4)\n\n/* check_trust return codes */\n\n# define X509_TRUST_TRUSTED      1\n# define X509_TRUST_REJECTED     2\n# define X509_TRUST_UNTRUSTED    3\n\n/* Flags for X509_print_ex() */\n\n# define X509_FLAG_COMPAT                0\n# define X509_FLAG_NO_HEADER             1L\n# define X509_FLAG_NO_VERSION            (1L << 1)\n# define X509_FLAG_NO_SERIAL             (1L << 2)\n# define X509_FLAG_NO_SIGNAME            (1L << 3)\n# define X509_FLAG_NO_ISSUER             (1L << 4)\n# define X509_FLAG_NO_VALIDITY           (1L << 5)\n# define X509_FLAG_NO_SUBJECT            (1L << 6)\n# define X509_FLAG_NO_PUBKEY             (1L << 7)\n# define X509_FLAG_NO_EXTENSIONS         (1L << 8)\n# define X509_FLAG_NO_SIGDUMP            (1L << 9)\n# define X509_FLAG_NO_AUX                (1L << 10)\n# define X509_FLAG_NO_ATTRIBUTES         (1L << 11)\n# define X509_FLAG_NO_IDS                (1L << 12)\n\n/* Flags specific to X509_NAME_print_ex() */\n\n/* The field separator information */\n\n# define XN_FLAG_SEP_MASK        (0xf << 16)\n\n# define XN_FLAG_COMPAT          0/* Traditional; use old X509_NAME_print */\n# define XN_FLAG_SEP_COMMA_PLUS  (1 << 16)/* RFC2253 ,+ */\n# define XN_FLAG_SEP_CPLUS_SPC   (2 << 16)/* ,+ spaced: more readable */\n# define XN_FLAG_SEP_SPLUS_SPC   (3 << 16)/* ;+ spaced */\n# define XN_FLAG_SEP_MULTILINE   (4 << 16)/* One line per field */\n\n# define XN_FLAG_DN_REV          (1 << 20)/* Reverse DN order */\n\n/* How the field name is shown */\n\n# define XN_FLAG_FN_MASK         (0x3 << 21)\n\n# define XN_FLAG_FN_SN           0/* Object short name */\n# define XN_FLAG_FN_LN           (1 << 21)/* Object long name */\n# define XN_FLAG_FN_OID          (2 << 21)/* Always use OIDs */\n# define XN_FLAG_FN_NONE         (3 << 21)/* No field names */\n\n# define XN_FLAG_SPC_EQ          (1 << 23)/* Put spaces round '=' */\n\n/*\n * This determines if we dump fields we don't recognise: RFC2253 requires\n * this.\n */\n\n# define XN_FLAG_DUMP_UNKNOWN_FIELDS (1 << 24)\n\n# define XN_FLAG_FN_ALIGN        (1 << 25)/* Align field names to 20\n                                           * characters */\n\n/* Complete set of RFC2253 flags */\n\n# define XN_FLAG_RFC2253 (ASN1_STRFLGS_RFC2253 | \\\n                        XN_FLAG_SEP_COMMA_PLUS | \\\n                        XN_FLAG_DN_REV | \\\n                        XN_FLAG_FN_SN | \\\n                        XN_FLAG_DUMP_UNKNOWN_FIELDS)\n\n/* readable oneline form */\n\n# define XN_FLAG_ONELINE (ASN1_STRFLGS_RFC2253 | \\\n                        ASN1_STRFLGS_ESC_QUOTE | \\\n                        XN_FLAG_SEP_CPLUS_SPC | \\\n                        XN_FLAG_SPC_EQ | \\\n                        XN_FLAG_FN_SN)\n\n/* readable multiline form */\n\n# define XN_FLAG_MULTILINE (ASN1_STRFLGS_ESC_CTRL | \\\n                        ASN1_STRFLGS_ESC_MSB | \\\n                        XN_FLAG_SEP_MULTILINE | \\\n                        XN_FLAG_SPC_EQ | \\\n                        XN_FLAG_FN_LN | \\\n                        XN_FLAG_FN_ALIGN)\n\nDEFINE_STACK_OF(X509_REVOKED)\n\ntypedef struct X509_crl_info_st X509_CRL_INFO;\n\nDEFINE_STACK_OF(X509_CRL)\n\ntypedef struct private_key_st {\n    int version;\n    /* The PKCS#8 data types */\n    X509_ALGOR *enc_algor;\n    ASN1_OCTET_STRING *enc_pkey; /* encrypted pub key */\n    /* When decrypted, the following will not be NULL */\n    EVP_PKEY *dec_pkey;\n    /* used to encrypt and decrypt */\n    int key_length;\n    char *key_data;\n    int key_free;               /* true if we should auto free key_data */\n    /* expanded version of 'enc_algor' */\n    EVP_CIPHER_INFO cipher;\n} X509_PKEY;\n\ntypedef struct X509_info_st {\n    X509 *x509;\n    X509_CRL *crl;\n    X509_PKEY *x_pkey;\n    EVP_CIPHER_INFO enc_cipher;\n    int enc_len;\n    char *enc_data;\n} X509_INFO;\n\nDEFINE_STACK_OF(X509_INFO)\n\n/*\n * The next 2 structures and their 8 routines are used to manipulate Netscape's\n * spki structures - useful if you are writing a CA web page\n */\ntypedef struct Netscape_spkac_st {\n    X509_PUBKEY *pubkey;\n    ASN1_IA5STRING *challenge;  /* challenge sent in atlas >= PR2 */\n} NETSCAPE_SPKAC;\n\ntypedef struct Netscape_spki_st {\n    NETSCAPE_SPKAC *spkac;      /* signed public key and challenge */\n    X509_ALGOR sig_algor;\n    ASN1_BIT_STRING *signature;\n} NETSCAPE_SPKI;\n\n/* Netscape certificate sequence structure */\ntypedef struct Netscape_certificate_sequence {\n    ASN1_OBJECT *type;\n    STACK_OF(X509) *certs;\n} NETSCAPE_CERT_SEQUENCE;\n\n/*- Unused (and iv length is wrong)\ntypedef struct CBCParameter_st\n        {\n        unsigned char iv[8];\n        } CBC_PARAM;\n*/\n\n/* Password based encryption structure */\n\ntypedef struct PBEPARAM_st {\n    ASN1_OCTET_STRING *salt;\n    ASN1_INTEGER *iter;\n} PBEPARAM;\n\n/* Password based encryption V2 structures */\n\ntypedef struct PBE2PARAM_st {\n    X509_ALGOR *keyfunc;\n    X509_ALGOR *encryption;\n} PBE2PARAM;\n\ntypedef struct PBKDF2PARAM_st {\n/* Usually OCTET STRING but could be anything */\n    ASN1_TYPE *salt;\n    ASN1_INTEGER *iter;\n    ASN1_INTEGER *keylength;\n    X509_ALGOR *prf;\n} PBKDF2PARAM;\n\n#ifndef OPENSSL_NO_SCRYPT\ntypedef struct SCRYPT_PARAMS_st {\n    ASN1_OCTET_STRING *salt;\n    ASN1_INTEGER *costParameter;\n    ASN1_INTEGER *blockSize;\n    ASN1_INTEGER *parallelizationParameter;\n    ASN1_INTEGER *keyLength;\n} SCRYPT_PARAMS;\n#endif\n\n#ifdef  __cplusplus\n}\n#endif\n\n# include <openssl/x509_vfy.h>\n# include <openssl/pkcs7.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n# define X509_EXT_PACK_UNKNOWN   1\n# define X509_EXT_PACK_STRING    2\n\n# define         X509_extract_key(x)     X509_get_pubkey(x)/*****/\n# define         X509_REQ_extract_key(a) X509_REQ_get_pubkey(a)\n# define         X509_name_cmp(a,b)      X509_NAME_cmp((a),(b))\n\nvoid X509_CRL_set_default_method(const X509_CRL_METHOD *meth);\nX509_CRL_METHOD *X509_CRL_METHOD_new(int (*crl_init) (X509_CRL *crl),\n                                     int (*crl_free) (X509_CRL *crl),\n                                     int (*crl_lookup) (X509_CRL *crl,\n                                                        X509_REVOKED **ret,\n                                                        ASN1_INTEGER *ser,\n                                                        X509_NAME *issuer),\n                                     int (*crl_verify) (X509_CRL *crl,\n                                                        EVP_PKEY *pk));\nvoid X509_CRL_METHOD_free(X509_CRL_METHOD *m);\n\nvoid X509_CRL_set_meth_data(X509_CRL *crl, void *dat);\nvoid *X509_CRL_get_meth_data(X509_CRL *crl);\n\nconst char *X509_verify_cert_error_string(long n);\n\nint X509_verify(X509 *a, EVP_PKEY *r);\n\nint X509_REQ_verify(X509_REQ *a, EVP_PKEY *r);\nint X509_CRL_verify(X509_CRL *a, EVP_PKEY *r);\nint NETSCAPE_SPKI_verify(NETSCAPE_SPKI *a, EVP_PKEY *r);\n\nNETSCAPE_SPKI *NETSCAPE_SPKI_b64_decode(const char *str, int len);\nchar *NETSCAPE_SPKI_b64_encode(NETSCAPE_SPKI *x);\nEVP_PKEY *NETSCAPE_SPKI_get_pubkey(NETSCAPE_SPKI *x);\nint NETSCAPE_SPKI_set_pubkey(NETSCAPE_SPKI *x, EVP_PKEY *pkey);\n\nint NETSCAPE_SPKI_print(BIO *out, NETSCAPE_SPKI *spki);\n\nint X509_signature_dump(BIO *bp, const ASN1_STRING *sig, int indent);\nint X509_signature_print(BIO *bp, const X509_ALGOR *alg,\n                         const ASN1_STRING *sig);\n\nint X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_sign_ctx(X509 *x, EVP_MD_CTX *ctx);\n# ifndef OPENSSL_NO_OCSP\nint X509_http_nbio(OCSP_REQ_CTX *rctx, X509 **pcert);\n# endif\nint X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_REQ_sign_ctx(X509_REQ *x, EVP_MD_CTX *ctx);\nint X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md);\nint X509_CRL_sign_ctx(X509_CRL *x, EVP_MD_CTX *ctx);\n# ifndef OPENSSL_NO_OCSP\nint X509_CRL_http_nbio(OCSP_REQ_CTX *rctx, X509_CRL **pcrl);\n# endif\nint NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md);\n\nint X509_pubkey_digest(const X509 *data, const EVP_MD *type,\n                       unsigned char *md, unsigned int *len);\nint X509_digest(const X509 *data, const EVP_MD *type,\n                unsigned char *md, unsigned int *len);\nint X509_CRL_digest(const X509_CRL *data, const EVP_MD *type,\n                    unsigned char *md, unsigned int *len);\nint X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,\n                    unsigned char *md, unsigned int *len);\nint X509_NAME_digest(const X509_NAME *data, const EVP_MD *type,\n                     unsigned char *md, unsigned int *len);\n\n# ifndef OPENSSL_NO_STDIO\nX509 *d2i_X509_fp(FILE *fp, X509 **x509);\nint i2d_X509_fp(FILE *fp, X509 *x509);\nX509_CRL *d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl);\nint i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl);\nX509_REQ *d2i_X509_REQ_fp(FILE *fp, X509_REQ **req);\nint i2d_X509_REQ_fp(FILE *fp, X509_REQ *req);\n#  ifndef OPENSSL_NO_RSA\nRSA *d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa);\nint i2d_RSAPrivateKey_fp(FILE *fp, RSA *rsa);\nRSA *d2i_RSAPublicKey_fp(FILE *fp, RSA **rsa);\nint i2d_RSAPublicKey_fp(FILE *fp, RSA *rsa);\nRSA *d2i_RSA_PUBKEY_fp(FILE *fp, RSA **rsa);\nint i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa);\n#  endif\n#  ifndef OPENSSL_NO_DSA\nDSA *d2i_DSA_PUBKEY_fp(FILE *fp, DSA **dsa);\nint i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa);\nDSA *d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa);\nint i2d_DSAPrivateKey_fp(FILE *fp, DSA *dsa);\n#  endif\n#  ifndef OPENSSL_NO_EC\nEC_KEY *d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey);\nint i2d_EC_PUBKEY_fp(FILE *fp, EC_KEY *eckey);\nEC_KEY *d2i_ECPrivateKey_fp(FILE *fp, EC_KEY **eckey);\nint i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey);\n#  endif\nX509_SIG *d2i_PKCS8_fp(FILE *fp, X509_SIG **p8);\nint i2d_PKCS8_fp(FILE *fp, X509_SIG *p8);\nPKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,\n                                                PKCS8_PRIV_KEY_INFO **p8inf);\nint i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf);\nint i2d_PKCS8PrivateKeyInfo_fp(FILE *fp, EVP_PKEY *key);\nint i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a);\nint i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a);\n# endif\n\nX509 *d2i_X509_bio(BIO *bp, X509 **x509);\nint i2d_X509_bio(BIO *bp, X509 *x509);\nX509_CRL *d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl);\nint i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl);\nX509_REQ *d2i_X509_REQ_bio(BIO *bp, X509_REQ **req);\nint i2d_X509_REQ_bio(BIO *bp, X509_REQ *req);\n#  ifndef OPENSSL_NO_RSA\nRSA *d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa);\nint i2d_RSAPrivateKey_bio(BIO *bp, RSA *rsa);\nRSA *d2i_RSAPublicKey_bio(BIO *bp, RSA **rsa);\nint i2d_RSAPublicKey_bio(BIO *bp, RSA *rsa);\nRSA *d2i_RSA_PUBKEY_bio(BIO *bp, RSA **rsa);\nint i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa);\n#  endif\n#  ifndef OPENSSL_NO_DSA\nDSA *d2i_DSA_PUBKEY_bio(BIO *bp, DSA **dsa);\nint i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa);\nDSA *d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa);\nint i2d_DSAPrivateKey_bio(BIO *bp, DSA *dsa);\n#  endif\n#  ifndef OPENSSL_NO_EC\nEC_KEY *d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey);\nint i2d_EC_PUBKEY_bio(BIO *bp, EC_KEY *eckey);\nEC_KEY *d2i_ECPrivateKey_bio(BIO *bp, EC_KEY **eckey);\nint i2d_ECPrivateKey_bio(BIO *bp, EC_KEY *eckey);\n#  endif\nX509_SIG *d2i_PKCS8_bio(BIO *bp, X509_SIG **p8);\nint i2d_PKCS8_bio(BIO *bp, X509_SIG *p8);\nPKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,\n                                                 PKCS8_PRIV_KEY_INFO **p8inf);\nint i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf);\nint i2d_PKCS8PrivateKeyInfo_bio(BIO *bp, EVP_PKEY *key);\nint i2d_PrivateKey_bio(BIO *bp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PrivateKey_bio(BIO *bp, EVP_PKEY **a);\nint i2d_PUBKEY_bio(BIO *bp, EVP_PKEY *pkey);\nEVP_PKEY *d2i_PUBKEY_bio(BIO *bp, EVP_PKEY **a);\n\nX509 *X509_dup(X509 *x509);\nX509_ATTRIBUTE *X509_ATTRIBUTE_dup(X509_ATTRIBUTE *xa);\nX509_EXTENSION *X509_EXTENSION_dup(X509_EXTENSION *ex);\nX509_CRL *X509_CRL_dup(X509_CRL *crl);\nX509_REVOKED *X509_REVOKED_dup(X509_REVOKED *rev);\nX509_REQ *X509_REQ_dup(X509_REQ *req);\nX509_ALGOR *X509_ALGOR_dup(X509_ALGOR *xn);\nint X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype,\n                    void *pval);\nvoid X509_ALGOR_get0(const ASN1_OBJECT **paobj, int *pptype,\n                     const void **ppval, const X509_ALGOR *algor);\nvoid X509_ALGOR_set_md(X509_ALGOR *alg, const EVP_MD *md);\nint X509_ALGOR_cmp(const X509_ALGOR *a, const X509_ALGOR *b);\nint X509_ALGOR_copy(X509_ALGOR *dest, const X509_ALGOR *src);\n\nX509_NAME *X509_NAME_dup(X509_NAME *xn);\nX509_NAME_ENTRY *X509_NAME_ENTRY_dup(X509_NAME_ENTRY *ne);\n\nint X509_cmp_time(const ASN1_TIME *s, time_t *t);\nint X509_cmp_current_time(const ASN1_TIME *s);\nASN1_TIME *X509_time_adj(ASN1_TIME *s, long adj, time_t *t);\nASN1_TIME *X509_time_adj_ex(ASN1_TIME *s,\n                            int offset_day, long offset_sec, time_t *t);\nASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj);\n\nconst char *X509_get_default_cert_area(void);\nconst char *X509_get_default_cert_dir(void);\nconst char *X509_get_default_cert_file(void);\nconst char *X509_get_default_cert_dir_env(void);\nconst char *X509_get_default_cert_file_env(void);\nconst char *X509_get_default_private_dir(void);\n\nX509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md);\nX509 *X509_REQ_to_X509(X509_REQ *r, int days, EVP_PKEY *pkey);\n\nDECLARE_ASN1_FUNCTIONS(X509_ALGOR)\nDECLARE_ASN1_ENCODE_FUNCTIONS(X509_ALGORS, X509_ALGORS, X509_ALGORS)\nDECLARE_ASN1_FUNCTIONS(X509_VAL)\n\nDECLARE_ASN1_FUNCTIONS(X509_PUBKEY)\n\nint X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey);\nEVP_PKEY *X509_PUBKEY_get0(X509_PUBKEY *key);\nEVP_PKEY *X509_PUBKEY_get(X509_PUBKEY *key);\nint X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain);\nlong X509_get_pathlen(X509 *x);\nint i2d_PUBKEY(EVP_PKEY *a, unsigned char **pp);\nEVP_PKEY *d2i_PUBKEY(EVP_PKEY **a, const unsigned char **pp, long length);\n# ifndef OPENSSL_NO_RSA\nint i2d_RSA_PUBKEY(RSA *a, unsigned char **pp);\nRSA *d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length);\n# endif\n# ifndef OPENSSL_NO_DSA\nint i2d_DSA_PUBKEY(DSA *a, unsigned char **pp);\nDSA *d2i_DSA_PUBKEY(DSA **a, const unsigned char **pp, long length);\n# endif\n# ifndef OPENSSL_NO_EC\nint i2d_EC_PUBKEY(EC_KEY *a, unsigned char **pp);\nEC_KEY *d2i_EC_PUBKEY(EC_KEY **a, const unsigned char **pp, long length);\n# endif\n\nDECLARE_ASN1_FUNCTIONS(X509_SIG)\nvoid X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg,\n                   const ASN1_OCTET_STRING **pdigest);\nvoid X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg,\n                   ASN1_OCTET_STRING **pdigest);\n\nDECLARE_ASN1_FUNCTIONS(X509_REQ_INFO)\nDECLARE_ASN1_FUNCTIONS(X509_REQ)\n\nDECLARE_ASN1_FUNCTIONS(X509_ATTRIBUTE)\nX509_ATTRIBUTE *X509_ATTRIBUTE_create(int nid, int atrtype, void *value);\n\nDECLARE_ASN1_FUNCTIONS(X509_EXTENSION)\nDECLARE_ASN1_ENCODE_FUNCTIONS(X509_EXTENSIONS, X509_EXTENSIONS, X509_EXTENSIONS)\n\nDECLARE_ASN1_FUNCTIONS(X509_NAME_ENTRY)\n\nDECLARE_ASN1_FUNCTIONS(X509_NAME)\n\nint X509_NAME_set(X509_NAME **xn, X509_NAME *name);\n\nDECLARE_ASN1_FUNCTIONS(X509_CINF)\n\nDECLARE_ASN1_FUNCTIONS(X509)\nDECLARE_ASN1_FUNCTIONS(X509_CERT_AUX)\n\n#define X509_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509, l, p, newf, dupf, freef)\nint X509_set_ex_data(X509 *r, int idx, void *arg);\nvoid *X509_get_ex_data(X509 *r, int idx);\nint i2d_X509_AUX(X509 *a, unsigned char **pp);\nX509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length);\n\nint i2d_re_X509_tbs(X509 *x, unsigned char **pp);\n\nint X509_SIG_INFO_get(const X509_SIG_INFO *siginf, int *mdnid, int *pknid,\n                      int *secbits, uint32_t *flags);\nvoid X509_SIG_INFO_set(X509_SIG_INFO *siginf, int mdnid, int pknid,\n                       int secbits, uint32_t flags);\n\nint X509_get_signature_info(X509 *x, int *mdnid, int *pknid, int *secbits,\n                            uint32_t *flags);\n\nvoid X509_get0_signature(const ASN1_BIT_STRING **psig,\n                         const X509_ALGOR **palg, const X509 *x);\nint X509_get_signature_nid(const X509 *x);\n\nint X509_trusted(const X509 *x);\nint X509_alias_set1(X509 *x, const unsigned char *name, int len);\nint X509_keyid_set1(X509 *x, const unsigned char *id, int len);\nunsigned char *X509_alias_get0(X509 *x, int *len);\nunsigned char *X509_keyid_get0(X509 *x, int *len);\nint (*X509_TRUST_set_default(int (*trust) (int, X509 *, int))) (int, X509 *,\n                                                                int);\nint X509_TRUST_set(int *t, int trust);\nint X509_add1_trust_object(X509 *x, const ASN1_OBJECT *obj);\nint X509_add1_reject_object(X509 *x, const ASN1_OBJECT *obj);\nvoid X509_trust_clear(X509 *x);\nvoid X509_reject_clear(X509 *x);\n\nSTACK_OF(ASN1_OBJECT) *X509_get0_trust_objects(X509 *x);\nSTACK_OF(ASN1_OBJECT) *X509_get0_reject_objects(X509 *x);\n\nDECLARE_ASN1_FUNCTIONS(X509_REVOKED)\nDECLARE_ASN1_FUNCTIONS(X509_CRL_INFO)\nDECLARE_ASN1_FUNCTIONS(X509_CRL)\n\nint X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev);\nint X509_CRL_get0_by_serial(X509_CRL *crl,\n                            X509_REVOKED **ret, ASN1_INTEGER *serial);\nint X509_CRL_get0_by_cert(X509_CRL *crl, X509_REVOKED **ret, X509 *x);\n\nX509_PKEY *X509_PKEY_new(void);\nvoid X509_PKEY_free(X509_PKEY *a);\n\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKI)\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_SPKAC)\nDECLARE_ASN1_FUNCTIONS(NETSCAPE_CERT_SEQUENCE)\n\nX509_INFO *X509_INFO_new(void);\nvoid X509_INFO_free(X509_INFO *a);\nchar *X509_NAME_oneline(const X509_NAME *a, char *buf, int size);\n\nint ASN1_verify(i2d_of_void *i2d, X509_ALGOR *algor1,\n                ASN1_BIT_STRING *signature, char *data, EVP_PKEY *pkey);\n\nint ASN1_digest(i2d_of_void *i2d, const EVP_MD *type, char *data,\n                unsigned char *md, unsigned int *len);\n\nint ASN1_sign(i2d_of_void *i2d, X509_ALGOR *algor1,\n              X509_ALGOR *algor2, ASN1_BIT_STRING *signature,\n              char *data, EVP_PKEY *pkey, const EVP_MD *type);\n\nint ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *data,\n                     unsigned char *md, unsigned int *len);\n\nint ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                     ASN1_BIT_STRING *signature, void *data, EVP_PKEY *pkey);\n\nint ASN1_item_sign(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                   X509_ALGOR *algor2, ASN1_BIT_STRING *signature, void *data,\n                   EVP_PKEY *pkey, const EVP_MD *type);\nint ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1,\n                       X509_ALGOR *algor2, ASN1_BIT_STRING *signature,\n                       void *asn, EVP_MD_CTX *ctx);\n\nlong X509_get_version(const X509 *x);\nint X509_set_version(X509 *x, long version);\nint X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial);\nASN1_INTEGER *X509_get_serialNumber(X509 *x);\nconst ASN1_INTEGER *X509_get0_serialNumber(const X509 *x);\nint X509_set_issuer_name(X509 *x, X509_NAME *name);\nX509_NAME *X509_get_issuer_name(const X509 *a);\nint X509_set_subject_name(X509 *x, X509_NAME *name);\nX509_NAME *X509_get_subject_name(const X509 *a);\nconst ASN1_TIME * X509_get0_notBefore(const X509 *x);\nASN1_TIME *X509_getm_notBefore(const X509 *x);\nint X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);\nconst ASN1_TIME *X509_get0_notAfter(const X509 *x);\nASN1_TIME *X509_getm_notAfter(const X509 *x);\nint X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);\nint X509_set_pubkey(X509 *x, EVP_PKEY *pkey);\nint X509_up_ref(X509 *x);\nint X509_get_signature_type(const X509 *x);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_get_notBefore X509_getm_notBefore\n#  define X509_get_notAfter X509_getm_notAfter\n#  define X509_set_notBefore X509_set1_notBefore\n#  define X509_set_notAfter X509_set1_notAfter\n#endif\n\n\n/*\n * This one is only used so that a binary form can output, as in\n * i2d_X509_PUBKEY(X509_get_X509_PUBKEY(x), &buf)\n */\nX509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x);\nconst STACK_OF(X509_EXTENSION) *X509_get0_extensions(const X509 *x);\nvoid X509_get0_uids(const X509 *x, const ASN1_BIT_STRING **piuid,\n                    const ASN1_BIT_STRING **psuid);\nconst X509_ALGOR *X509_get0_tbs_sigalg(const X509 *x);\n\nEVP_PKEY *X509_get0_pubkey(const X509 *x);\nEVP_PKEY *X509_get_pubkey(X509 *x);\nASN1_BIT_STRING *X509_get0_pubkey_bitstr(const X509 *x);\nint X509_certificate_type(const X509 *x, const EVP_PKEY *pubkey);\n\nlong X509_REQ_get_version(const X509_REQ *req);\nint X509_REQ_set_version(X509_REQ *x, long version);\nX509_NAME *X509_REQ_get_subject_name(const X509_REQ *req);\nint X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name);\nvoid X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,\n                             const X509_ALGOR **palg);\nvoid X509_REQ_set0_signature(X509_REQ *req, ASN1_BIT_STRING *psig);\nint X509_REQ_set1_signature_algo(X509_REQ *req, X509_ALGOR *palg);\nint X509_REQ_get_signature_nid(const X509_REQ *req);\nint i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);\nint X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);\nEVP_PKEY *X509_REQ_get_pubkey(X509_REQ *req);\nEVP_PKEY *X509_REQ_get0_pubkey(X509_REQ *req);\nX509_PUBKEY *X509_REQ_get_X509_PUBKEY(X509_REQ *req);\nint X509_REQ_extension_nid(int nid);\nint *X509_REQ_get_extension_nids(void);\nvoid X509_REQ_set_extension_nids(int *nids);\nSTACK_OF(X509_EXTENSION) *X509_REQ_get_extensions(X509_REQ *req);\nint X509_REQ_add_extensions_nid(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts,\n                                int nid);\nint X509_REQ_add_extensions(X509_REQ *req, STACK_OF(X509_EXTENSION) *exts);\nint X509_REQ_get_attr_count(const X509_REQ *req);\nint X509_REQ_get_attr_by_NID(const X509_REQ *req, int nid, int lastpos);\nint X509_REQ_get_attr_by_OBJ(const X509_REQ *req, const ASN1_OBJECT *obj,\n                             int lastpos);\nX509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *req, int loc);\nX509_ATTRIBUTE *X509_REQ_delete_attr(X509_REQ *req, int loc);\nint X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr);\nint X509_REQ_add1_attr_by_OBJ(X509_REQ *req,\n                              const ASN1_OBJECT *obj, int type,\n                              const unsigned char *bytes, int len);\nint X509_REQ_add1_attr_by_NID(X509_REQ *req,\n                              int nid, int type,\n                              const unsigned char *bytes, int len);\nint X509_REQ_add1_attr_by_txt(X509_REQ *req,\n                              const char *attrname, int type,\n                              const unsigned char *bytes, int len);\n\nint X509_CRL_set_version(X509_CRL *x, long version);\nint X509_CRL_set_issuer_name(X509_CRL *x, X509_NAME *name);\nint X509_CRL_set1_lastUpdate(X509_CRL *x, const ASN1_TIME *tm);\nint X509_CRL_set1_nextUpdate(X509_CRL *x, const ASN1_TIME *tm);\nint X509_CRL_sort(X509_CRL *crl);\nint X509_CRL_up_ref(X509_CRL *crl);\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_CRL_set_lastUpdate X509_CRL_set1_lastUpdate\n#  define X509_CRL_set_nextUpdate X509_CRL_set1_nextUpdate\n#endif\n\nlong X509_CRL_get_version(const X509_CRL *crl);\nconst ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);\nconst ASN1_TIME *X509_CRL_get0_nextUpdate(const X509_CRL *crl);\nDEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_lastUpdate(X509_CRL *crl))\nDEPRECATEDIN_1_1_0(ASN1_TIME *X509_CRL_get_nextUpdate(X509_CRL *crl))\nX509_NAME *X509_CRL_get_issuer(const X509_CRL *crl);\nconst STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);\nSTACK_OF(X509_REVOKED) *X509_CRL_get_REVOKED(X509_CRL *crl);\nvoid X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig,\n                             const X509_ALGOR **palg);\nint X509_CRL_get_signature_nid(const X509_CRL *crl);\nint i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp);\n\nconst ASN1_INTEGER *X509_REVOKED_get0_serialNumber(const X509_REVOKED *x);\nint X509_REVOKED_set_serialNumber(X509_REVOKED *x, ASN1_INTEGER *serial);\nconst ASN1_TIME *X509_REVOKED_get0_revocationDate(const X509_REVOKED *x);\nint X509_REVOKED_set_revocationDate(X509_REVOKED *r, ASN1_TIME *tm);\nconst STACK_OF(X509_EXTENSION) *\nX509_REVOKED_get0_extensions(const X509_REVOKED *r);\n\nX509_CRL *X509_CRL_diff(X509_CRL *base, X509_CRL *newer,\n                        EVP_PKEY *skey, const EVP_MD *md, unsigned int flags);\n\nint X509_REQ_check_private_key(X509_REQ *x509, EVP_PKEY *pkey);\n\nint X509_check_private_key(const X509 *x509, const EVP_PKEY *pkey);\nint X509_chain_check_suiteb(int *perror_depth,\n                            X509 *x, STACK_OF(X509) *chain,\n                            unsigned long flags);\nint X509_CRL_check_suiteb(X509_CRL *crl, EVP_PKEY *pk, unsigned long flags);\nSTACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain);\n\nint X509_issuer_and_serial_cmp(const X509 *a, const X509 *b);\nunsigned long X509_issuer_and_serial_hash(X509 *a);\n\nint X509_issuer_name_cmp(const X509 *a, const X509 *b);\nunsigned long X509_issuer_name_hash(X509 *a);\n\nint X509_subject_name_cmp(const X509 *a, const X509 *b);\nunsigned long X509_subject_name_hash(X509 *x);\n\n# ifndef OPENSSL_NO_MD5\nunsigned long X509_issuer_name_hash_old(X509 *a);\nunsigned long X509_subject_name_hash_old(X509 *x);\n# endif\n\nint X509_cmp(const X509 *a, const X509 *b);\nint X509_NAME_cmp(const X509_NAME *a, const X509_NAME *b);\nunsigned long X509_NAME_hash(X509_NAME *x);\nunsigned long X509_NAME_hash_old(X509_NAME *x);\n\nint X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);\nint X509_CRL_match(const X509_CRL *a, const X509_CRL *b);\nint X509_aux_print(BIO *out, X509 *x, int indent);\n# ifndef OPENSSL_NO_STDIO\nint X509_print_ex_fp(FILE *bp, X509 *x, unsigned long nmflag,\n                     unsigned long cflag);\nint X509_print_fp(FILE *bp, X509 *x);\nint X509_CRL_print_fp(FILE *bp, X509_CRL *x);\nint X509_REQ_print_fp(FILE *bp, X509_REQ *req);\nint X509_NAME_print_ex_fp(FILE *fp, const X509_NAME *nm, int indent,\n                          unsigned long flags);\n# endif\n\nint X509_NAME_print(BIO *bp, const X509_NAME *name, int obase);\nint X509_NAME_print_ex(BIO *out, const X509_NAME *nm, int indent,\n                       unsigned long flags);\nint X509_print_ex(BIO *bp, X509 *x, unsigned long nmflag,\n                  unsigned long cflag);\nint X509_print(BIO *bp, X509 *x);\nint X509_ocspid_print(BIO *bp, X509 *x);\nint X509_CRL_print_ex(BIO *out, X509_CRL *x, unsigned long nmflag);\nint X509_CRL_print(BIO *bp, X509_CRL *x);\nint X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflag,\n                      unsigned long cflag);\nint X509_REQ_print(BIO *bp, X509_REQ *req);\n\nint X509_NAME_entry_count(const X509_NAME *name);\nint X509_NAME_get_text_by_NID(X509_NAME *name, int nid, char *buf, int len);\nint X509_NAME_get_text_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj,\n                              char *buf, int len);\n\n/*\n * NOTE: you should be passing -1, not 0 as lastpos. The functions that use\n * lastpos, search after that position on.\n */\nint X509_NAME_get_index_by_NID(X509_NAME *name, int nid, int lastpos);\nint X509_NAME_get_index_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj,\n                               int lastpos);\nX509_NAME_ENTRY *X509_NAME_get_entry(const X509_NAME *name, int loc);\nX509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc);\nint X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne,\n                        int loc, int set);\nint X509_NAME_add_entry_by_OBJ(X509_NAME *name, const ASN1_OBJECT *obj, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nint X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne,\n                                               const char *field, int type,\n                                               const unsigned char *bytes,\n                                               int len);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid,\n                                               int type,\n                                               const unsigned char *bytes,\n                                               int len);\nint X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type,\n                               const unsigned char *bytes, int len, int loc,\n                               int set);\nX509_NAME_ENTRY *X509_NAME_ENTRY_create_by_OBJ(X509_NAME_ENTRY **ne,\n                                               const ASN1_OBJECT *obj, int type,\n                                               const unsigned char *bytes,\n                                               int len);\nint X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, const ASN1_OBJECT *obj);\nint X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,\n                             const unsigned char *bytes, int len);\nASN1_OBJECT *X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne);\nASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne);\nint X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne);\n\nint X509_NAME_get0_der(X509_NAME *nm, const unsigned char **pder,\n                       size_t *pderlen);\n\nint X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x);\nint X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x,\n                          int nid, int lastpos);\nint X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x,\n                          const ASN1_OBJECT *obj, int lastpos);\nint X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x,\n                               int crit, int lastpos);\nX509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc);\nX509_EXTENSION *X509v3_delete_ext(STACK_OF(X509_EXTENSION) *x, int loc);\nSTACK_OF(X509_EXTENSION) *X509v3_add_ext(STACK_OF(X509_EXTENSION) **x,\n                                         X509_EXTENSION *ex, int loc);\n\nint X509_get_ext_count(const X509 *x);\nint X509_get_ext_by_NID(const X509 *x, int nid, int lastpos);\nint X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos);\nint X509_get_ext_by_critical(const X509 *x, int crit, int lastpos);\nX509_EXTENSION *X509_get_ext(const X509 *x, int loc);\nX509_EXTENSION *X509_delete_ext(X509 *x, int loc);\nint X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc);\nvoid *X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx);\nint X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit,\n                      unsigned long flags);\n\nint X509_CRL_get_ext_count(const X509_CRL *x);\nint X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos);\nint X509_CRL_get_ext_by_OBJ(const X509_CRL *x, const ASN1_OBJECT *obj,\n                            int lastpos);\nint X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos);\nX509_EXTENSION *X509_CRL_get_ext(const X509_CRL *x, int loc);\nX509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc);\nint X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc);\nvoid *X509_CRL_get_ext_d2i(const X509_CRL *x, int nid, int *crit, int *idx);\nint X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit,\n                          unsigned long flags);\n\nint X509_REVOKED_get_ext_count(const X509_REVOKED *x);\nint X509_REVOKED_get_ext_by_NID(const X509_REVOKED *x, int nid, int lastpos);\nint X509_REVOKED_get_ext_by_OBJ(const X509_REVOKED *x, const ASN1_OBJECT *obj,\n                                int lastpos);\nint X509_REVOKED_get_ext_by_critical(const X509_REVOKED *x, int crit,\n                                     int lastpos);\nX509_EXTENSION *X509_REVOKED_get_ext(const X509_REVOKED *x, int loc);\nX509_EXTENSION *X509_REVOKED_delete_ext(X509_REVOKED *x, int loc);\nint X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc);\nvoid *X509_REVOKED_get_ext_d2i(const X509_REVOKED *x, int nid, int *crit,\n                               int *idx);\nint X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit,\n                              unsigned long flags);\n\nX509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex,\n                                             int nid, int crit,\n                                             ASN1_OCTET_STRING *data);\nX509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex,\n                                             const ASN1_OBJECT *obj, int crit,\n                                             ASN1_OCTET_STRING *data);\nint X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj);\nint X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);\nint X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data);\nASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex);\nASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ne);\nint X509_EXTENSION_get_critical(const X509_EXTENSION *ex);\n\nint X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x);\nint X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid,\n                           int lastpos);\nint X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk,\n                           const ASN1_OBJECT *obj, int lastpos);\nX509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc);\nX509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x,\n                                           X509_ATTRIBUTE *attr);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, const ASN1_OBJECT *obj,\n                                                  int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, int nid, int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nSTACK_OF(X509_ATTRIBUTE) *X509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE)\n                                                  **x, const char *attrname,\n                                                  int type,\n                                                  const unsigned char *bytes,\n                                                  int len);\nvoid *X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x,\n                              const ASN1_OBJECT *obj, int lastpos, int type);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_NID(X509_ATTRIBUTE **attr, int nid,\n                                             int atrtype, const void *data,\n                                             int len);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_OBJ(X509_ATTRIBUTE **attr,\n                                             const ASN1_OBJECT *obj,\n                                             int atrtype, const void *data,\n                                             int len);\nX509_ATTRIBUTE *X509_ATTRIBUTE_create_by_txt(X509_ATTRIBUTE **attr,\n                                             const char *atrname, int type,\n                                             const unsigned char *bytes,\n                                             int len);\nint X509_ATTRIBUTE_set1_object(X509_ATTRIBUTE *attr, const ASN1_OBJECT *obj);\nint X509_ATTRIBUTE_set1_data(X509_ATTRIBUTE *attr, int attrtype,\n                             const void *data, int len);\nvoid *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *attr, int idx, int atrtype,\n                               void *data);\nint X509_ATTRIBUTE_count(const X509_ATTRIBUTE *attr);\nASN1_OBJECT *X509_ATTRIBUTE_get0_object(X509_ATTRIBUTE *attr);\nASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *attr, int idx);\n\nint EVP_PKEY_get_attr_count(const EVP_PKEY *key);\nint EVP_PKEY_get_attr_by_NID(const EVP_PKEY *key, int nid, int lastpos);\nint EVP_PKEY_get_attr_by_OBJ(const EVP_PKEY *key, const ASN1_OBJECT *obj,\n                             int lastpos);\nX509_ATTRIBUTE *EVP_PKEY_get_attr(const EVP_PKEY *key, int loc);\nX509_ATTRIBUTE *EVP_PKEY_delete_attr(EVP_PKEY *key, int loc);\nint EVP_PKEY_add1_attr(EVP_PKEY *key, X509_ATTRIBUTE *attr);\nint EVP_PKEY_add1_attr_by_OBJ(EVP_PKEY *key,\n                              const ASN1_OBJECT *obj, int type,\n                              const unsigned char *bytes, int len);\nint EVP_PKEY_add1_attr_by_NID(EVP_PKEY *key,\n                              int nid, int type,\n                              const unsigned char *bytes, int len);\nint EVP_PKEY_add1_attr_by_txt(EVP_PKEY *key,\n                              const char *attrname, int type,\n                              const unsigned char *bytes, int len);\n\nint X509_verify_cert(X509_STORE_CTX *ctx);\n\n/* lookup a cert from a X509 STACK */\nX509 *X509_find_by_issuer_and_serial(STACK_OF(X509) *sk, X509_NAME *name,\n                                     ASN1_INTEGER *serial);\nX509 *X509_find_by_subject(STACK_OF(X509) *sk, X509_NAME *name);\n\nDECLARE_ASN1_FUNCTIONS(PBEPARAM)\nDECLARE_ASN1_FUNCTIONS(PBE2PARAM)\nDECLARE_ASN1_FUNCTIONS(PBKDF2PARAM)\n#ifndef OPENSSL_NO_SCRYPT\nDECLARE_ASN1_FUNCTIONS(SCRYPT_PARAMS)\n#endif\n\nint PKCS5_pbe_set0_algor(X509_ALGOR *algor, int alg, int iter,\n                         const unsigned char *salt, int saltlen);\n\nX509_ALGOR *PKCS5_pbe_set(int alg, int iter,\n                          const unsigned char *salt, int saltlen);\nX509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,\n                           unsigned char *salt, int saltlen);\nX509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,\n                              unsigned char *salt, int saltlen,\n                              unsigned char *aiv, int prf_nid);\n\n#ifndef OPENSSL_NO_SCRYPT\nX509_ALGOR *PKCS5_pbe2_set_scrypt(const EVP_CIPHER *cipher,\n                                  const unsigned char *salt, int saltlen,\n                                  unsigned char *aiv, uint64_t N, uint64_t r,\n                                  uint64_t p);\n#endif\n\nX509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,\n                             int prf_nid, int keylen);\n\n/* PKCS#8 utilities */\n\nDECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)\n\nEVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);\nPKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey);\n\nint PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj,\n                    int version, int ptype, void *pval,\n                    unsigned char *penc, int penclen);\nint PKCS8_pkey_get0(const ASN1_OBJECT **ppkalg,\n                    const unsigned char **pk, int *ppklen,\n                    const X509_ALGOR **pa, const PKCS8_PRIV_KEY_INFO *p8);\n\nconst STACK_OF(X509_ATTRIBUTE) *\nPKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8);\nint PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type,\n                                const unsigned char *bytes, int len);\n\nint X509_PUBKEY_set0_param(X509_PUBKEY *pub, ASN1_OBJECT *aobj,\n                           int ptype, void *pval,\n                           unsigned char *penc, int penclen);\nint X509_PUBKEY_get0_param(ASN1_OBJECT **ppkalg,\n                           const unsigned char **pk, int *ppklen,\n                           X509_ALGOR **pa, X509_PUBKEY *pub);\n\nint X509_check_trust(X509 *x, int id, int flags);\nint X509_TRUST_get_count(void);\nX509_TRUST *X509_TRUST_get0(int idx);\nint X509_TRUST_get_by_id(int id);\nint X509_TRUST_add(int id, int flags, int (*ck) (X509_TRUST *, X509 *, int),\n                   const char *name, int arg1, void *arg2);\nvoid X509_TRUST_cleanup(void);\nint X509_TRUST_get_flags(const X509_TRUST *xp);\nchar *X509_TRUST_get0_name(const X509_TRUST *xp);\nint X509_TRUST_get_trust(const X509_TRUST *xp);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/x509_vfy.h",
    "content": "/*\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509_VFY_H\n# define HEADER_X509_VFY_H\n\n/*\n * Protect against recursion, x509.h and x509_vfy.h each include the other.\n */\n# ifndef HEADER_X509_H\n#  include <openssl/x509.h>\n# endif\n\n# include <openssl/opensslconf.h>\n# include <openssl/lhash.h>\n# include <openssl/bio.h>\n# include <openssl/crypto.h>\n# include <openssl/symhacks.h>\n\n#ifdef  __cplusplus\nextern \"C\" {\n#endif\n\n/*-\nSSL_CTX -> X509_STORE\n                -> X509_LOOKUP\n                        ->X509_LOOKUP_METHOD\n                -> X509_LOOKUP\n                        ->X509_LOOKUP_METHOD\n\nSSL     -> X509_STORE_CTX\n                ->X509_STORE\n\nThe X509_STORE holds the tables etc for verification stuff.\nA X509_STORE_CTX is used while validating a single certificate.\nThe X509_STORE has X509_LOOKUPs for looking up certs.\nThe X509_STORE then calls a function to actually verify the\ncertificate chain.\n*/\n\ntypedef enum {\n    X509_LU_NONE = 0,\n    X509_LU_X509, X509_LU_CRL\n} X509_LOOKUP_TYPE;\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n#define X509_LU_RETRY   -1\n#define X509_LU_FAIL    0\n#endif\n\nDEFINE_STACK_OF(X509_LOOKUP)\nDEFINE_STACK_OF(X509_OBJECT)\nDEFINE_STACK_OF(X509_VERIFY_PARAM)\n\nint X509_STORE_set_depth(X509_STORE *store, int depth);\n\ntypedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);\ntypedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);\ntypedef int (*X509_STORE_CTX_get_issuer_fn)(X509 **issuer,\n                                            X509_STORE_CTX *ctx, X509 *x);\ntypedef int (*X509_STORE_CTX_check_issued_fn)(X509_STORE_CTX *ctx,\n                                              X509 *x, X509 *issuer);\ntypedef int (*X509_STORE_CTX_check_revocation_fn)(X509_STORE_CTX *ctx);\ntypedef int (*X509_STORE_CTX_get_crl_fn)(X509_STORE_CTX *ctx,\n                                         X509_CRL **crl, X509 *x);\ntypedef int (*X509_STORE_CTX_check_crl_fn)(X509_STORE_CTX *ctx, X509_CRL *crl);\ntypedef int (*X509_STORE_CTX_cert_crl_fn)(X509_STORE_CTX *ctx,\n                                          X509_CRL *crl, X509 *x);\ntypedef int (*X509_STORE_CTX_check_policy_fn)(X509_STORE_CTX *ctx);\ntypedef STACK_OF(X509) *(*X509_STORE_CTX_lookup_certs_fn)(X509_STORE_CTX *ctx,\n                                                          X509_NAME *nm);\ntypedef STACK_OF(X509_CRL) *(*X509_STORE_CTX_lookup_crls_fn)(X509_STORE_CTX *ctx,\n                                                             X509_NAME *nm);\ntypedef int (*X509_STORE_CTX_cleanup_fn)(X509_STORE_CTX *ctx);\n\n\nvoid X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);\n\n# define X509_STORE_CTX_set_app_data(ctx,data) \\\n        X509_STORE_CTX_set_ex_data(ctx,0,data)\n# define X509_STORE_CTX_get_app_data(ctx) \\\n        X509_STORE_CTX_get_ex_data(ctx,0)\n\n# define X509_L_FILE_LOAD        1\n# define X509_L_ADD_DIR          2\n\n# define X509_LOOKUP_load_file(x,name,type) \\\n                X509_LOOKUP_ctrl((x),X509_L_FILE_LOAD,(name),(long)(type),NULL)\n\n# define X509_LOOKUP_add_dir(x,name,type) \\\n                X509_LOOKUP_ctrl((x),X509_L_ADD_DIR,(name),(long)(type),NULL)\n\n# define         X509_V_OK                                       0\n# define         X509_V_ERR_UNSPECIFIED                          1\n# define         X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT            2\n# define         X509_V_ERR_UNABLE_TO_GET_CRL                    3\n# define         X509_V_ERR_UNABLE_TO_DECRYPT_CERT_SIGNATURE     4\n# define         X509_V_ERR_UNABLE_TO_DECRYPT_CRL_SIGNATURE      5\n# define         X509_V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY   6\n# define         X509_V_ERR_CERT_SIGNATURE_FAILURE               7\n# define         X509_V_ERR_CRL_SIGNATURE_FAILURE                8\n# define         X509_V_ERR_CERT_NOT_YET_VALID                   9\n# define         X509_V_ERR_CERT_HAS_EXPIRED                     10\n# define         X509_V_ERR_CRL_NOT_YET_VALID                    11\n# define         X509_V_ERR_CRL_HAS_EXPIRED                      12\n# define         X509_V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD       13\n# define         X509_V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD        14\n# define         X509_V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD       15\n# define         X509_V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD       16\n# define         X509_V_ERR_OUT_OF_MEM                           17\n# define         X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT          18\n# define         X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN            19\n# define         X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY    20\n# define         X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE      21\n# define         X509_V_ERR_CERT_CHAIN_TOO_LONG                  22\n# define         X509_V_ERR_CERT_REVOKED                         23\n# define         X509_V_ERR_INVALID_CA                           24\n# define         X509_V_ERR_PATH_LENGTH_EXCEEDED                 25\n# define         X509_V_ERR_INVALID_PURPOSE                      26\n# define         X509_V_ERR_CERT_UNTRUSTED                       27\n# define         X509_V_ERR_CERT_REJECTED                        28\n/* These are 'informational' when looking for issuer cert */\n# define         X509_V_ERR_SUBJECT_ISSUER_MISMATCH              29\n# define         X509_V_ERR_AKID_SKID_MISMATCH                   30\n# define         X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH          31\n# define         X509_V_ERR_KEYUSAGE_NO_CERTSIGN                 32\n# define         X509_V_ERR_UNABLE_TO_GET_CRL_ISSUER             33\n# define         X509_V_ERR_UNHANDLED_CRITICAL_EXTENSION         34\n# define         X509_V_ERR_KEYUSAGE_NO_CRL_SIGN                 35\n# define         X509_V_ERR_UNHANDLED_CRITICAL_CRL_EXTENSION     36\n# define         X509_V_ERR_INVALID_NON_CA                       37\n# define         X509_V_ERR_PROXY_PATH_LENGTH_EXCEEDED           38\n# define         X509_V_ERR_KEYUSAGE_NO_DIGITAL_SIGNATURE        39\n# define         X509_V_ERR_PROXY_CERTIFICATES_NOT_ALLOWED       40\n# define         X509_V_ERR_INVALID_EXTENSION                    41\n# define         X509_V_ERR_INVALID_POLICY_EXTENSION             42\n# define         X509_V_ERR_NO_EXPLICIT_POLICY                   43\n# define         X509_V_ERR_DIFFERENT_CRL_SCOPE                  44\n# define         X509_V_ERR_UNSUPPORTED_EXTENSION_FEATURE        45\n# define         X509_V_ERR_UNNESTED_RESOURCE                    46\n# define         X509_V_ERR_PERMITTED_VIOLATION                  47\n# define         X509_V_ERR_EXCLUDED_VIOLATION                   48\n# define         X509_V_ERR_SUBTREE_MINMAX                       49\n/* The application is not happy */\n# define         X509_V_ERR_APPLICATION_VERIFICATION             50\n# define         X509_V_ERR_UNSUPPORTED_CONSTRAINT_TYPE          51\n# define         X509_V_ERR_UNSUPPORTED_CONSTRAINT_SYNTAX        52\n# define         X509_V_ERR_UNSUPPORTED_NAME_SYNTAX              53\n# define         X509_V_ERR_CRL_PATH_VALIDATION_ERROR            54\n/* Another issuer check debug option */\n# define         X509_V_ERR_PATH_LOOP                            55\n/* Suite B mode algorithm violation */\n# define         X509_V_ERR_SUITE_B_INVALID_VERSION              56\n# define         X509_V_ERR_SUITE_B_INVALID_ALGORITHM            57\n# define         X509_V_ERR_SUITE_B_INVALID_CURVE                58\n# define         X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM  59\n# define         X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED              60\n# define         X509_V_ERR_SUITE_B_CANNOT_SIGN_P_384_WITH_P_256 61\n/* Host, email and IP check errors */\n# define         X509_V_ERR_HOSTNAME_MISMATCH                    62\n# define         X509_V_ERR_EMAIL_MISMATCH                       63\n# define         X509_V_ERR_IP_ADDRESS_MISMATCH                  64\n/* DANE TLSA errors */\n# define         X509_V_ERR_DANE_NO_MATCH                        65\n/* security level errors */\n# define         X509_V_ERR_EE_KEY_TOO_SMALL                     66\n# define         X509_V_ERR_CA_KEY_TOO_SMALL                     67\n# define         X509_V_ERR_CA_MD_TOO_WEAK                       68\n/* Caller error */\n# define         X509_V_ERR_INVALID_CALL                         69\n/* Issuer lookup error */\n# define         X509_V_ERR_STORE_LOOKUP                         70\n/* Certificate transparency */\n# define         X509_V_ERR_NO_VALID_SCTS                        71\n\n# define         X509_V_ERR_PROXY_SUBJECT_NAME_VIOLATION         72\n/* OCSP status errors */\n# define         X509_V_ERR_OCSP_VERIFY_NEEDED                   73  /* Need OCSP verification */\n# define         X509_V_ERR_OCSP_VERIFY_FAILED                   74  /* Couldn't verify cert through OCSP */\n# define         X509_V_ERR_OCSP_CERT_UNKNOWN                    75  /* Certificate wasn't recognized by the OCSP responder */\n# define         X509_V_ERR_SIGNATURE_ALGORITHM_MISMATCH         76\n# define         X509_V_ERR_NO_ISSUER_PUBLIC_KEY                 77\n# define         X509_V_ERR_UNSUPPORTED_SIGNATURE_ALGORITHM      78\n# define         X509_V_ERR_EC_KEY_EXPLICIT_PARAMS               79\n\n/* Certificate verify flags */\n\n# if OPENSSL_API_COMPAT < 0x10100000L\n#  define X509_V_FLAG_CB_ISSUER_CHECK             0x0   /* Deprecated */\n# endif\n/* Use check time instead of current time */\n# define X509_V_FLAG_USE_CHECK_TIME              0x2\n/* Lookup CRLs */\n# define X509_V_FLAG_CRL_CHECK                   0x4\n/* Lookup CRLs for whole chain */\n# define X509_V_FLAG_CRL_CHECK_ALL               0x8\n/* Ignore unhandled critical extensions */\n# define X509_V_FLAG_IGNORE_CRITICAL             0x10\n/* Disable workarounds for broken certificates */\n# define X509_V_FLAG_X509_STRICT                 0x20\n/* Enable proxy certificate validation */\n# define X509_V_FLAG_ALLOW_PROXY_CERTS           0x40\n/* Enable policy checking */\n# define X509_V_FLAG_POLICY_CHECK                0x80\n/* Policy variable require-explicit-policy */\n# define X509_V_FLAG_EXPLICIT_POLICY             0x100\n/* Policy variable inhibit-any-policy */\n# define X509_V_FLAG_INHIBIT_ANY                 0x200\n/* Policy variable inhibit-policy-mapping */\n# define X509_V_FLAG_INHIBIT_MAP                 0x400\n/* Notify callback that policy is OK */\n# define X509_V_FLAG_NOTIFY_POLICY               0x800\n/* Extended CRL features such as indirect CRLs, alternate CRL signing keys */\n# define X509_V_FLAG_EXTENDED_CRL_SUPPORT        0x1000\n/* Delta CRL support */\n# define X509_V_FLAG_USE_DELTAS                  0x2000\n/* Check self-signed CA signature */\n# define X509_V_FLAG_CHECK_SS_SIGNATURE          0x4000\n/* Use trusted store first */\n# define X509_V_FLAG_TRUSTED_FIRST               0x8000\n/* Suite B 128 bit only mode: not normally used */\n# define X509_V_FLAG_SUITEB_128_LOS_ONLY         0x10000\n/* Suite B 192 bit only mode */\n# define X509_V_FLAG_SUITEB_192_LOS              0x20000\n/* Suite B 128 bit mode allowing 192 bit algorithms */\n# define X509_V_FLAG_SUITEB_128_LOS              0x30000\n/* Allow partial chains if at least one certificate is in trusted store */\n# define X509_V_FLAG_PARTIAL_CHAIN               0x80000\n/*\n * If the initial chain is not trusted, do not attempt to build an alternative\n * chain. Alternate chain checking was introduced in 1.1.0. Setting this flag\n * will force the behaviour to match that of previous versions.\n */\n# define X509_V_FLAG_NO_ALT_CHAINS               0x100000\n/* Do not check certificate/CRL validity against current time */\n# define X509_V_FLAG_NO_CHECK_TIME               0x200000\n\n# define X509_VP_FLAG_DEFAULT                    0x1\n# define X509_VP_FLAG_OVERWRITE                  0x2\n# define X509_VP_FLAG_RESET_FLAGS                0x4\n# define X509_VP_FLAG_LOCKED                     0x8\n# define X509_VP_FLAG_ONCE                       0x10\n\n/* Internal use: mask of policy related options */\n# define X509_V_FLAG_POLICY_MASK (X509_V_FLAG_POLICY_CHECK \\\n                                | X509_V_FLAG_EXPLICIT_POLICY \\\n                                | X509_V_FLAG_INHIBIT_ANY \\\n                                | X509_V_FLAG_INHIBIT_MAP)\n\nint X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,\n                               X509_NAME *name);\nX509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,\n                                             X509_LOOKUP_TYPE type,\n                                             X509_NAME *name);\nX509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h,\n                                        X509_OBJECT *x);\nint X509_OBJECT_up_ref_count(X509_OBJECT *a);\nX509_OBJECT *X509_OBJECT_new(void);\nvoid X509_OBJECT_free(X509_OBJECT *a);\nX509_LOOKUP_TYPE X509_OBJECT_get_type(const X509_OBJECT *a);\nX509 *X509_OBJECT_get0_X509(const X509_OBJECT *a);\nint X509_OBJECT_set1_X509(X509_OBJECT *a, X509 *obj);\nX509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *a);\nint X509_OBJECT_set1_X509_CRL(X509_OBJECT *a, X509_CRL *obj);\nX509_STORE *X509_STORE_new(void);\nvoid X509_STORE_free(X509_STORE *v);\nint X509_STORE_lock(X509_STORE *ctx);\nint X509_STORE_unlock(X509_STORE *ctx);\nint X509_STORE_up_ref(X509_STORE *v);\nSTACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *v);\n\nSTACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm);\nSTACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm);\nint X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);\nint X509_STORE_set_purpose(X509_STORE *ctx, int purpose);\nint X509_STORE_set_trust(X509_STORE *ctx, int trust);\nint X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);\nX509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);\n\nvoid X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify);\n#define X509_STORE_set_verify_func(ctx, func) \\\n            X509_STORE_set_verify((ctx),(func))\nvoid X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,\n                               X509_STORE_CTX_verify_fn verify);\nX509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);\nvoid X509_STORE_set_verify_cb(X509_STORE *ctx,\n                              X509_STORE_CTX_verify_cb verify_cb);\n# define X509_STORE_set_verify_cb_func(ctx,func) \\\n            X509_STORE_set_verify_cb((ctx),(func))\nX509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *ctx);\nvoid X509_STORE_set_get_issuer(X509_STORE *ctx,\n                               X509_STORE_CTX_get_issuer_fn get_issuer);\nX509_STORE_CTX_get_issuer_fn X509_STORE_get_get_issuer(X509_STORE *ctx);\nvoid X509_STORE_set_check_issued(X509_STORE *ctx,\n                                 X509_STORE_CTX_check_issued_fn check_issued);\nX509_STORE_CTX_check_issued_fn X509_STORE_get_check_issued(X509_STORE *ctx);\nvoid X509_STORE_set_check_revocation(X509_STORE *ctx,\n                                     X509_STORE_CTX_check_revocation_fn check_revocation);\nX509_STORE_CTX_check_revocation_fn X509_STORE_get_check_revocation(X509_STORE *ctx);\nvoid X509_STORE_set_get_crl(X509_STORE *ctx,\n                            X509_STORE_CTX_get_crl_fn get_crl);\nX509_STORE_CTX_get_crl_fn X509_STORE_get_get_crl(X509_STORE *ctx);\nvoid X509_STORE_set_check_crl(X509_STORE *ctx,\n                              X509_STORE_CTX_check_crl_fn check_crl);\nX509_STORE_CTX_check_crl_fn X509_STORE_get_check_crl(X509_STORE *ctx);\nvoid X509_STORE_set_cert_crl(X509_STORE *ctx,\n                             X509_STORE_CTX_cert_crl_fn cert_crl);\nX509_STORE_CTX_cert_crl_fn X509_STORE_get_cert_crl(X509_STORE *ctx);\nvoid X509_STORE_set_check_policy(X509_STORE *ctx,\n                                 X509_STORE_CTX_check_policy_fn check_policy);\nX509_STORE_CTX_check_policy_fn X509_STORE_get_check_policy(X509_STORE *ctx);\nvoid X509_STORE_set_lookup_certs(X509_STORE *ctx,\n                                 X509_STORE_CTX_lookup_certs_fn lookup_certs);\nX509_STORE_CTX_lookup_certs_fn X509_STORE_get_lookup_certs(X509_STORE *ctx);\nvoid X509_STORE_set_lookup_crls(X509_STORE *ctx,\n                                X509_STORE_CTX_lookup_crls_fn lookup_crls);\n#define X509_STORE_set_lookup_crls_cb(ctx, func) \\\n    X509_STORE_set_lookup_crls((ctx), (func))\nX509_STORE_CTX_lookup_crls_fn X509_STORE_get_lookup_crls(X509_STORE *ctx);\nvoid X509_STORE_set_cleanup(X509_STORE *ctx,\n                            X509_STORE_CTX_cleanup_fn cleanup);\nX509_STORE_CTX_cleanup_fn X509_STORE_get_cleanup(X509_STORE *ctx);\n\n#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, l, p, newf, dupf, freef)\nint X509_STORE_set_ex_data(X509_STORE *ctx, int idx, void *data);\nvoid *X509_STORE_get_ex_data(X509_STORE *ctx, int idx);\n\nX509_STORE_CTX *X509_STORE_CTX_new(void);\n\nint X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x);\n\nvoid X509_STORE_CTX_free(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store,\n                        X509 *x509, STACK_OF(X509) *chain);\nvoid X509_STORE_CTX_set0_trusted_stack(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_cleanup(X509_STORE_CTX *ctx);\n\nX509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx);\nX509 *X509_STORE_CTX_get0_cert(X509_STORE_CTX *ctx);\nSTACK_OF(X509)* X509_STORE_CTX_get0_untrusted(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set0_untrusted(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,\n                                  X509_STORE_CTX_verify_cb verify);\nX509_STORE_CTX_verify_cb X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx);\nX509_STORE_CTX_verify_fn X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx);\nX509_STORE_CTX_get_issuer_fn X509_STORE_CTX_get_get_issuer(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_issued_fn X509_STORE_CTX_get_check_issued(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_revocation_fn X509_STORE_CTX_get_check_revocation(X509_STORE_CTX *ctx);\nX509_STORE_CTX_get_crl_fn X509_STORE_CTX_get_get_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_crl_fn X509_STORE_CTX_get_check_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_cert_crl_fn X509_STORE_CTX_get_cert_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX_check_policy_fn X509_STORE_CTX_get_check_policy(X509_STORE_CTX *ctx);\nX509_STORE_CTX_lookup_certs_fn X509_STORE_CTX_get_lookup_certs(X509_STORE_CTX *ctx);\nX509_STORE_CTX_lookup_crls_fn X509_STORE_CTX_get_lookup_crls(X509_STORE_CTX *ctx);\nX509_STORE_CTX_cleanup_fn X509_STORE_CTX_get_cleanup(X509_STORE_CTX *ctx);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n# define X509_STORE_CTX_get_chain X509_STORE_CTX_get0_chain\n# define X509_STORE_CTX_set_chain X509_STORE_CTX_set0_untrusted\n# define X509_STORE_CTX_trusted_stack X509_STORE_CTX_set0_trusted_stack\n# define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject\n# define X509_STORE_get1_certs X509_STORE_CTX_get1_certs\n# define X509_STORE_get1_crls X509_STORE_CTX_get1_crls\n/* the following macro is misspelled; use X509_STORE_get1_certs instead */\n# define X509_STORE_get1_cert X509_STORE_CTX_get1_certs\n/* the following macro is misspelled; use X509_STORE_get1_crls instead */\n# define X509_STORE_get1_crl X509_STORE_CTX_get1_crls\n#endif\n\nX509_LOOKUP *X509_STORE_add_lookup(X509_STORE *v, X509_LOOKUP_METHOD *m);\nX509_LOOKUP_METHOD *X509_LOOKUP_hash_dir(void);\nX509_LOOKUP_METHOD *X509_LOOKUP_file(void);\n\ntypedef int (*X509_LOOKUP_ctrl_fn)(X509_LOOKUP *ctx, int cmd, const char *argc,\n                                   long argl, char **ret);\ntypedef int (*X509_LOOKUP_get_by_subject_fn)(X509_LOOKUP *ctx,\n                                             X509_LOOKUP_TYPE type,\n                                             X509_NAME *name,\n                                             X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_issuer_serial_fn)(X509_LOOKUP *ctx,\n                                                   X509_LOOKUP_TYPE type,\n                                                   X509_NAME *name,\n                                                   ASN1_INTEGER *serial,\n                                                   X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_fingerprint_fn)(X509_LOOKUP *ctx,\n                                                 X509_LOOKUP_TYPE type,\n                                                 const unsigned char* bytes,\n                                                 int len,\n                                                 X509_OBJECT *ret);\ntypedef int (*X509_LOOKUP_get_by_alias_fn)(X509_LOOKUP *ctx,\n                                           X509_LOOKUP_TYPE type,\n                                           const char *str,\n                                           int len,\n                                           X509_OBJECT *ret);\n\nX509_LOOKUP_METHOD *X509_LOOKUP_meth_new(const char *name);\nvoid X509_LOOKUP_meth_free(X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_new_item(X509_LOOKUP_METHOD *method,\n                                  int (*new_item) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_new_item(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_free(X509_LOOKUP_METHOD *method,\n                              void (*free_fn) (X509_LOOKUP *ctx));\nvoid (*X509_LOOKUP_meth_get_free(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_init(X509_LOOKUP_METHOD *method,\n                              int (*init) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_init(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_shutdown(X509_LOOKUP_METHOD *method,\n                                  int (*shutdown) (X509_LOOKUP *ctx));\nint (*X509_LOOKUP_meth_get_shutdown(const X509_LOOKUP_METHOD* method))\n    (X509_LOOKUP *ctx);\n\nint X509_LOOKUP_meth_set_ctrl(X509_LOOKUP_METHOD *method,\n                              X509_LOOKUP_ctrl_fn ctrl_fn);\nX509_LOOKUP_ctrl_fn X509_LOOKUP_meth_get_ctrl(const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_subject(X509_LOOKUP_METHOD *method,\n                                        X509_LOOKUP_get_by_subject_fn fn);\nX509_LOOKUP_get_by_subject_fn X509_LOOKUP_meth_get_get_by_subject(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_issuer_serial(X509_LOOKUP_METHOD *method,\n    X509_LOOKUP_get_by_issuer_serial_fn fn);\nX509_LOOKUP_get_by_issuer_serial_fn X509_LOOKUP_meth_get_get_by_issuer_serial(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_fingerprint(X509_LOOKUP_METHOD *method,\n    X509_LOOKUP_get_by_fingerprint_fn fn);\nX509_LOOKUP_get_by_fingerprint_fn X509_LOOKUP_meth_get_get_by_fingerprint(\n    const X509_LOOKUP_METHOD *method);\n\nint X509_LOOKUP_meth_set_get_by_alias(X509_LOOKUP_METHOD *method,\n                                      X509_LOOKUP_get_by_alias_fn fn);\nX509_LOOKUP_get_by_alias_fn X509_LOOKUP_meth_get_get_by_alias(\n    const X509_LOOKUP_METHOD *method);\n\n\nint X509_STORE_add_cert(X509_STORE *ctx, X509 *x);\nint X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);\n\nint X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,\n                                  X509_NAME *name, X509_OBJECT *ret);\nX509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs,\n                                               X509_LOOKUP_TYPE type,\n                                               X509_NAME *name);\n\nint X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,\n                     long argl, char **ret);\n\nint X509_load_cert_file(X509_LOOKUP *ctx, const char *file, int type);\nint X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type);\nint X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type);\n\nX509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method);\nvoid X509_LOOKUP_free(X509_LOOKUP *ctx);\nint X509_LOOKUP_init(X509_LOOKUP *ctx);\nint X509_LOOKUP_by_subject(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                           X509_NAME *name, X509_OBJECT *ret);\nint X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                                 X509_NAME *name, ASN1_INTEGER *serial,\n                                 X509_OBJECT *ret);\nint X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                               const unsigned char *bytes, int len,\n                               X509_OBJECT *ret);\nint X509_LOOKUP_by_alias(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,\n                         const char *str, int len, X509_OBJECT *ret);\nint X509_LOOKUP_set_method_data(X509_LOOKUP *ctx, void *data);\nvoid *X509_LOOKUP_get_method_data(const X509_LOOKUP *ctx);\nX509_STORE *X509_LOOKUP_get_store(const X509_LOOKUP *ctx);\nint X509_LOOKUP_shutdown(X509_LOOKUP *ctx);\n\nint X509_STORE_load_locations(X509_STORE *ctx,\n                              const char *file, const char *dir);\nint X509_STORE_set_default_paths(X509_STORE *ctx);\n\n#define X509_STORE_CTX_get_ex_new_index(l, p, newf, dupf, freef) \\\n    CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE_CTX, l, p, newf, dupf, freef)\nint X509_STORE_CTX_set_ex_data(X509_STORE_CTX *ctx, int idx, void *data);\nvoid *X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx, int idx);\nint X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_error(X509_STORE_CTX *ctx, int s);\nint X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);\nX509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x);\nX509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);\nX509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);\nX509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx);\nSTACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx);\nSTACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set_cert(X509_STORE_CTX *c, X509 *x);\nvoid X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *c, STACK_OF(X509) *sk);\nvoid X509_STORE_CTX_set0_crls(X509_STORE_CTX *c, STACK_OF(X509_CRL) *sk);\nint X509_STORE_CTX_set_purpose(X509_STORE_CTX *ctx, int purpose);\nint X509_STORE_CTX_set_trust(X509_STORE_CTX *ctx, int trust);\nint X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,\n                                   int purpose, int trust);\nvoid X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);\nvoid X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,\n                             time_t t);\n\nX509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);\nint X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);\n\nX509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);\nvoid X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);\nint X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name);\n\n/*\n * Bridge opacity barrier between libcrypt and libssl, also needed to support\n * offline testing in test/danetest.c\n */\nvoid X509_STORE_CTX_set0_dane(X509_STORE_CTX *ctx, SSL_DANE *dane);\n#define DANE_FLAG_NO_DANE_EE_NAMECHECKS (1L << 0)\n\n/* X509_VERIFY_PARAM functions */\n\nX509_VERIFY_PARAM *X509_VERIFY_PARAM_new(void);\nvoid X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_inherit(X509_VERIFY_PARAM *to,\n                              const X509_VERIFY_PARAM *from);\nint X509_VERIFY_PARAM_set1(X509_VERIFY_PARAM *to,\n                           const X509_VERIFY_PARAM *from);\nint X509_VERIFY_PARAM_set1_name(X509_VERIFY_PARAM *param, const char *name);\nint X509_VERIFY_PARAM_set_flags(X509_VERIFY_PARAM *param,\n                                unsigned long flags);\nint X509_VERIFY_PARAM_clear_flags(X509_VERIFY_PARAM *param,\n                                  unsigned long flags);\nunsigned long X509_VERIFY_PARAM_get_flags(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_set_purpose(X509_VERIFY_PARAM *param, int purpose);\nint X509_VERIFY_PARAM_set_trust(X509_VERIFY_PARAM *param, int trust);\nvoid X509_VERIFY_PARAM_set_depth(X509_VERIFY_PARAM *param, int depth);\nvoid X509_VERIFY_PARAM_set_auth_level(X509_VERIFY_PARAM *param, int auth_level);\ntime_t X509_VERIFY_PARAM_get_time(const X509_VERIFY_PARAM *param);\nvoid X509_VERIFY_PARAM_set_time(X509_VERIFY_PARAM *param, time_t t);\nint X509_VERIFY_PARAM_add0_policy(X509_VERIFY_PARAM *param,\n                                  ASN1_OBJECT *policy);\nint X509_VERIFY_PARAM_set1_policies(X509_VERIFY_PARAM *param,\n                                    STACK_OF(ASN1_OBJECT) *policies);\n\nint X509_VERIFY_PARAM_set_inh_flags(X509_VERIFY_PARAM *param,\n                                    uint32_t flags);\nuint32_t X509_VERIFY_PARAM_get_inh_flags(const X509_VERIFY_PARAM *param);\n\nint X509_VERIFY_PARAM_set1_host(X509_VERIFY_PARAM *param,\n                                const char *name, size_t namelen);\nint X509_VERIFY_PARAM_add1_host(X509_VERIFY_PARAM *param,\n                                const char *name, size_t namelen);\nvoid X509_VERIFY_PARAM_set_hostflags(X509_VERIFY_PARAM *param,\n                                     unsigned int flags);\nunsigned int X509_VERIFY_PARAM_get_hostflags(const X509_VERIFY_PARAM *param);\nchar *X509_VERIFY_PARAM_get0_peername(X509_VERIFY_PARAM *);\nvoid X509_VERIFY_PARAM_move_peername(X509_VERIFY_PARAM *, X509_VERIFY_PARAM *);\nint X509_VERIFY_PARAM_set1_email(X509_VERIFY_PARAM *param,\n                                 const char *email, size_t emaillen);\nint X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param,\n                              const unsigned char *ip, size_t iplen);\nint X509_VERIFY_PARAM_set1_ip_asc(X509_VERIFY_PARAM *param,\n                                  const char *ipasc);\n\nint X509_VERIFY_PARAM_get_depth(const X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_get_auth_level(const X509_VERIFY_PARAM *param);\nconst char *X509_VERIFY_PARAM_get0_name(const X509_VERIFY_PARAM *param);\n\nint X509_VERIFY_PARAM_add0_table(X509_VERIFY_PARAM *param);\nint X509_VERIFY_PARAM_get_count(void);\nconst X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id);\nconst X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name);\nvoid X509_VERIFY_PARAM_table_cleanup(void);\n\n/* Non positive return values are errors */\n#define X509_PCY_TREE_FAILURE  -2 /* Failure to satisfy explicit policy */\n#define X509_PCY_TREE_INVALID  -1 /* Inconsistent or invalid extensions */\n#define X509_PCY_TREE_INTERNAL  0 /* Internal error, most likely malloc */\n\n/*\n * Positive return values form a bit mask, all but the first are internal to\n * the library and don't appear in results from X509_policy_check().\n */\n#define X509_PCY_TREE_VALID     1 /* The policy tree is valid */\n#define X509_PCY_TREE_EMPTY     2 /* The policy tree is empty */\n#define X509_PCY_TREE_EXPLICIT  4 /* Explicit policy required */\n\nint X509_policy_check(X509_POLICY_TREE **ptree, int *pexplicit_policy,\n                      STACK_OF(X509) *certs,\n                      STACK_OF(ASN1_OBJECT) *policy_oids, unsigned int flags);\n\nvoid X509_policy_tree_free(X509_POLICY_TREE *tree);\n\nint X509_policy_tree_level_count(const X509_POLICY_TREE *tree);\nX509_POLICY_LEVEL *X509_policy_tree_get0_level(const X509_POLICY_TREE *tree,\n                                               int i);\n\nSTACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_policies(const\n                                                           X509_POLICY_TREE\n                                                           *tree);\n\nSTACK_OF(X509_POLICY_NODE) *X509_policy_tree_get0_user_policies(const\n                                                                X509_POLICY_TREE\n                                                                *tree);\n\nint X509_policy_level_node_count(X509_POLICY_LEVEL *level);\n\nX509_POLICY_NODE *X509_policy_level_get0_node(X509_POLICY_LEVEL *level,\n                                              int i);\n\nconst ASN1_OBJECT *X509_policy_node_get0_policy(const X509_POLICY_NODE *node);\n\nSTACK_OF(POLICYQUALINFO) *X509_policy_node_get0_qualifiers(const\n                                                           X509_POLICY_NODE\n                                                           *node);\nconst X509_POLICY_NODE *X509_policy_node_get0_parent(const X509_POLICY_NODE\n                                                     *node);\n\n#ifdef  __cplusplus\n}\n#endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/x509err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509ERR_H\n# define HEADER_X509ERR_H\n\n# include <openssl/symhacks.h>\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_X509_strings(void);\n\n/*\n * X509 function codes.\n */\n# define X509_F_ADD_CERT_DIR                              100\n# define X509_F_BUILD_CHAIN                               106\n# define X509_F_BY_FILE_CTRL                              101\n# define X509_F_CHECK_NAME_CONSTRAINTS                    149\n# define X509_F_CHECK_POLICY                              145\n# define X509_F_DANE_I2D                                  107\n# define X509_F_DIR_CTRL                                  102\n# define X509_F_GET_CERT_BY_SUBJECT                       103\n# define X509_F_I2D_X509_AUX                              151\n# define X509_F_LOOKUP_CERTS_SK                           152\n# define X509_F_NETSCAPE_SPKI_B64_DECODE                  129\n# define X509_F_NETSCAPE_SPKI_B64_ENCODE                  130\n# define X509_F_NEW_DIR                                   153\n# define X509_F_X509AT_ADD1_ATTR                          135\n# define X509_F_X509V3_ADD_EXT                            104\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_NID              136\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_OBJ              137\n# define X509_F_X509_ATTRIBUTE_CREATE_BY_TXT              140\n# define X509_F_X509_ATTRIBUTE_GET0_DATA                  139\n# define X509_F_X509_ATTRIBUTE_SET1_DATA                  138\n# define X509_F_X509_CHECK_PRIVATE_KEY                    128\n# define X509_F_X509_CRL_DIFF                             105\n# define X509_F_X509_CRL_METHOD_NEW                       154\n# define X509_F_X509_CRL_PRINT_FP                         147\n# define X509_F_X509_EXTENSION_CREATE_BY_NID              108\n# define X509_F_X509_EXTENSION_CREATE_BY_OBJ              109\n# define X509_F_X509_GET_PUBKEY_PARAMETERS                110\n# define X509_F_X509_LOAD_CERT_CRL_FILE                   132\n# define X509_F_X509_LOAD_CERT_FILE                       111\n# define X509_F_X509_LOAD_CRL_FILE                        112\n# define X509_F_X509_LOOKUP_METH_NEW                      160\n# define X509_F_X509_LOOKUP_NEW                           155\n# define X509_F_X509_NAME_ADD_ENTRY                       113\n# define X509_F_X509_NAME_CANON                           156\n# define X509_F_X509_NAME_ENTRY_CREATE_BY_NID             114\n# define X509_F_X509_NAME_ENTRY_CREATE_BY_TXT             131\n# define X509_F_X509_NAME_ENTRY_SET_OBJECT                115\n# define X509_F_X509_NAME_ONELINE                         116\n# define X509_F_X509_NAME_PRINT                           117\n# define X509_F_X509_OBJECT_NEW                           150\n# define X509_F_X509_PRINT_EX_FP                          118\n# define X509_F_X509_PUBKEY_DECODE                        148\n# define X509_F_X509_PUBKEY_GET                           161\n# define X509_F_X509_PUBKEY_GET0                          119\n# define X509_F_X509_PUBKEY_SET                           120\n# define X509_F_X509_REQ_CHECK_PRIVATE_KEY                144\n# define X509_F_X509_REQ_PRINT_EX                         121\n# define X509_F_X509_REQ_PRINT_FP                         122\n# define X509_F_X509_REQ_TO_X509                          123\n# define X509_F_X509_STORE_ADD_CERT                       124\n# define X509_F_X509_STORE_ADD_CRL                        125\n# define X509_F_X509_STORE_ADD_LOOKUP                     157\n# define X509_F_X509_STORE_CTX_GET1_ISSUER                146\n# define X509_F_X509_STORE_CTX_INIT                       143\n# define X509_F_X509_STORE_CTX_NEW                        142\n# define X509_F_X509_STORE_CTX_PURPOSE_INHERIT            134\n# define X509_F_X509_STORE_NEW                            158\n# define X509_F_X509_TO_X509_REQ                          126\n# define X509_F_X509_TRUST_ADD                            133\n# define X509_F_X509_TRUST_SET                            141\n# define X509_F_X509_VERIFY_CERT                          127\n# define X509_F_X509_VERIFY_PARAM_NEW                     159\n\n/*\n * X509 reason codes.\n */\n# define X509_R_AKID_MISMATCH                             110\n# define X509_R_BAD_SELECTOR                              133\n# define X509_R_BAD_X509_FILETYPE                         100\n# define X509_R_BASE64_DECODE_ERROR                       118\n# define X509_R_CANT_CHECK_DH_KEY                         114\n# define X509_R_CERT_ALREADY_IN_HASH_TABLE                101\n# define X509_R_CRL_ALREADY_DELTA                         127\n# define X509_R_CRL_VERIFY_FAILURE                        131\n# define X509_R_IDP_MISMATCH                              128\n# define X509_R_INVALID_ATTRIBUTES                        138\n# define X509_R_INVALID_DIRECTORY                         113\n# define X509_R_INVALID_FIELD_NAME                        119\n# define X509_R_INVALID_TRUST                             123\n# define X509_R_ISSUER_MISMATCH                           129\n# define X509_R_KEY_TYPE_MISMATCH                         115\n# define X509_R_KEY_VALUES_MISMATCH                       116\n# define X509_R_LOADING_CERT_DIR                          103\n# define X509_R_LOADING_DEFAULTS                          104\n# define X509_R_METHOD_NOT_SUPPORTED                      124\n# define X509_R_NAME_TOO_LONG                             134\n# define X509_R_NEWER_CRL_NOT_NEWER                       132\n# define X509_R_NO_CERTIFICATE_FOUND                      135\n# define X509_R_NO_CERTIFICATE_OR_CRL_FOUND               136\n# define X509_R_NO_CERT_SET_FOR_US_TO_VERIFY              105\n# define X509_R_NO_CRL_FOUND                              137\n# define X509_R_NO_CRL_NUMBER                             130\n# define X509_R_PUBLIC_KEY_DECODE_ERROR                   125\n# define X509_R_PUBLIC_KEY_ENCODE_ERROR                   126\n# define X509_R_SHOULD_RETRY                              106\n# define X509_R_UNABLE_TO_FIND_PARAMETERS_IN_CHAIN        107\n# define X509_R_UNABLE_TO_GET_CERTS_PUBLIC_KEY            108\n# define X509_R_UNKNOWN_KEY_TYPE                          117\n# define X509_R_UNKNOWN_NID                               109\n# define X509_R_UNKNOWN_PURPOSE_ID                        121\n# define X509_R_UNKNOWN_TRUST_ID                          120\n# define X509_R_UNSUPPORTED_ALGORITHM                     111\n# define X509_R_WRONG_LOOKUP_TYPE                         112\n# define X509_R_WRONG_TYPE                                122\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/x509v3.h",
    "content": "/*\n * Copyright 1999-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509V3_H\n# define HEADER_X509V3_H\n\n# include <openssl/bio.h>\n# include <openssl/x509.h>\n# include <openssl/conf.h>\n# include <openssl/x509v3err.h>\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n/* Forward reference */\nstruct v3_ext_method;\nstruct v3_ext_ctx;\n\n/* Useful typedefs */\n\ntypedef void *(*X509V3_EXT_NEW)(void);\ntypedef void (*X509V3_EXT_FREE) (void *);\ntypedef void *(*X509V3_EXT_D2I)(void *, const unsigned char **, long);\ntypedef int (*X509V3_EXT_I2D) (void *, unsigned char **);\ntypedef STACK_OF(CONF_VALUE) *\n    (*X509V3_EXT_I2V) (const struct v3_ext_method *method, void *ext,\n                       STACK_OF(CONF_VALUE) *extlist);\ntypedef void *(*X509V3_EXT_V2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx,\n                                STACK_OF(CONF_VALUE) *values);\ntypedef char *(*X509V3_EXT_I2S)(const struct v3_ext_method *method,\n                                void *ext);\ntypedef void *(*X509V3_EXT_S2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx, const char *str);\ntypedef int (*X509V3_EXT_I2R) (const struct v3_ext_method *method, void *ext,\n                               BIO *out, int indent);\ntypedef void *(*X509V3_EXT_R2I)(const struct v3_ext_method *method,\n                                struct v3_ext_ctx *ctx, const char *str);\n\n/* V3 extension structure */\n\nstruct v3_ext_method {\n    int ext_nid;\n    int ext_flags;\n/* If this is set the following four fields are ignored */\n    ASN1_ITEM_EXP *it;\n/* Old style ASN1 calls */\n    X509V3_EXT_NEW ext_new;\n    X509V3_EXT_FREE ext_free;\n    X509V3_EXT_D2I d2i;\n    X509V3_EXT_I2D i2d;\n/* The following pair is used for string extensions */\n    X509V3_EXT_I2S i2s;\n    X509V3_EXT_S2I s2i;\n/* The following pair is used for multi-valued extensions */\n    X509V3_EXT_I2V i2v;\n    X509V3_EXT_V2I v2i;\n/* The following are used for raw extensions */\n    X509V3_EXT_I2R i2r;\n    X509V3_EXT_R2I r2i;\n    void *usr_data;             /* Any extension specific data */\n};\n\ntypedef struct X509V3_CONF_METHOD_st {\n    char *(*get_string) (void *db, const char *section, const char *value);\n    STACK_OF(CONF_VALUE) *(*get_section) (void *db, const char *section);\n    void (*free_string) (void *db, char *string);\n    void (*free_section) (void *db, STACK_OF(CONF_VALUE) *section);\n} X509V3_CONF_METHOD;\n\n/* Context specific info */\nstruct v3_ext_ctx {\n# define CTX_TEST 0x1\n# define X509V3_CTX_REPLACE 0x2\n    int flags;\n    X509 *issuer_cert;\n    X509 *subject_cert;\n    X509_REQ *subject_req;\n    X509_CRL *crl;\n    X509V3_CONF_METHOD *db_meth;\n    void *db;\n/* Maybe more here */\n};\n\ntypedef struct v3_ext_method X509V3_EXT_METHOD;\n\nDEFINE_STACK_OF(X509V3_EXT_METHOD)\n\n/* ext_flags values */\n# define X509V3_EXT_DYNAMIC      0x1\n# define X509V3_EXT_CTX_DEP      0x2\n# define X509V3_EXT_MULTILINE    0x4\n\ntypedef BIT_STRING_BITNAME ENUMERATED_NAMES;\n\ntypedef struct BASIC_CONSTRAINTS_st {\n    int ca;\n    ASN1_INTEGER *pathlen;\n} BASIC_CONSTRAINTS;\n\ntypedef struct PKEY_USAGE_PERIOD_st {\n    ASN1_GENERALIZEDTIME *notBefore;\n    ASN1_GENERALIZEDTIME *notAfter;\n} PKEY_USAGE_PERIOD;\n\ntypedef struct otherName_st {\n    ASN1_OBJECT *type_id;\n    ASN1_TYPE *value;\n} OTHERNAME;\n\ntypedef struct EDIPartyName_st {\n    ASN1_STRING *nameAssigner;\n    ASN1_STRING *partyName;\n} EDIPARTYNAME;\n\ntypedef struct GENERAL_NAME_st {\n# define GEN_OTHERNAME   0\n# define GEN_EMAIL       1\n# define GEN_DNS         2\n# define GEN_X400        3\n# define GEN_DIRNAME     4\n# define GEN_EDIPARTY    5\n# define GEN_URI         6\n# define GEN_IPADD       7\n# define GEN_RID         8\n    int type;\n    union {\n        char *ptr;\n        OTHERNAME *otherName;   /* otherName */\n        ASN1_IA5STRING *rfc822Name;\n        ASN1_IA5STRING *dNSName;\n        ASN1_TYPE *x400Address;\n        X509_NAME *directoryName;\n        EDIPARTYNAME *ediPartyName;\n        ASN1_IA5STRING *uniformResourceIdentifier;\n        ASN1_OCTET_STRING *iPAddress;\n        ASN1_OBJECT *registeredID;\n        /* Old names */\n        ASN1_OCTET_STRING *ip;  /* iPAddress */\n        X509_NAME *dirn;        /* dirn */\n        ASN1_IA5STRING *ia5;    /* rfc822Name, dNSName,\n                                 * uniformResourceIdentifier */\n        ASN1_OBJECT *rid;       /* registeredID */\n        ASN1_TYPE *other;       /* x400Address */\n    } d;\n} GENERAL_NAME;\n\ntypedef struct ACCESS_DESCRIPTION_st {\n    ASN1_OBJECT *method;\n    GENERAL_NAME *location;\n} ACCESS_DESCRIPTION;\n\ntypedef STACK_OF(ACCESS_DESCRIPTION) AUTHORITY_INFO_ACCESS;\n\ntypedef STACK_OF(ASN1_OBJECT) EXTENDED_KEY_USAGE;\n\ntypedef STACK_OF(ASN1_INTEGER) TLS_FEATURE;\n\nDEFINE_STACK_OF(GENERAL_NAME)\ntypedef STACK_OF(GENERAL_NAME) GENERAL_NAMES;\nDEFINE_STACK_OF(GENERAL_NAMES)\n\nDEFINE_STACK_OF(ACCESS_DESCRIPTION)\n\ntypedef struct DIST_POINT_NAME_st {\n    int type;\n    union {\n        GENERAL_NAMES *fullname;\n        STACK_OF(X509_NAME_ENTRY) *relativename;\n    } name;\n/* If relativename then this contains the full distribution point name */\n    X509_NAME *dpname;\n} DIST_POINT_NAME;\n/* All existing reasons */\n# define CRLDP_ALL_REASONS       0x807f\n\n# define CRL_REASON_NONE                         -1\n# define CRL_REASON_UNSPECIFIED                  0\n# define CRL_REASON_KEY_COMPROMISE               1\n# define CRL_REASON_CA_COMPROMISE                2\n# define CRL_REASON_AFFILIATION_CHANGED          3\n# define CRL_REASON_SUPERSEDED                   4\n# define CRL_REASON_CESSATION_OF_OPERATION       5\n# define CRL_REASON_CERTIFICATE_HOLD             6\n# define CRL_REASON_REMOVE_FROM_CRL              8\n# define CRL_REASON_PRIVILEGE_WITHDRAWN          9\n# define CRL_REASON_AA_COMPROMISE                10\n\nstruct DIST_POINT_st {\n    DIST_POINT_NAME *distpoint;\n    ASN1_BIT_STRING *reasons;\n    GENERAL_NAMES *CRLissuer;\n    int dp_reasons;\n};\n\ntypedef STACK_OF(DIST_POINT) CRL_DIST_POINTS;\n\nDEFINE_STACK_OF(DIST_POINT)\n\nstruct AUTHORITY_KEYID_st {\n    ASN1_OCTET_STRING *keyid;\n    GENERAL_NAMES *issuer;\n    ASN1_INTEGER *serial;\n};\n\n/* Strong extranet structures */\n\ntypedef struct SXNET_ID_st {\n    ASN1_INTEGER *zone;\n    ASN1_OCTET_STRING *user;\n} SXNETID;\n\nDEFINE_STACK_OF(SXNETID)\n\ntypedef struct SXNET_st {\n    ASN1_INTEGER *version;\n    STACK_OF(SXNETID) *ids;\n} SXNET;\n\ntypedef struct NOTICEREF_st {\n    ASN1_STRING *organization;\n    STACK_OF(ASN1_INTEGER) *noticenos;\n} NOTICEREF;\n\ntypedef struct USERNOTICE_st {\n    NOTICEREF *noticeref;\n    ASN1_STRING *exptext;\n} USERNOTICE;\n\ntypedef struct POLICYQUALINFO_st {\n    ASN1_OBJECT *pqualid;\n    union {\n        ASN1_IA5STRING *cpsuri;\n        USERNOTICE *usernotice;\n        ASN1_TYPE *other;\n    } d;\n} POLICYQUALINFO;\n\nDEFINE_STACK_OF(POLICYQUALINFO)\n\ntypedef struct POLICYINFO_st {\n    ASN1_OBJECT *policyid;\n    STACK_OF(POLICYQUALINFO) *qualifiers;\n} POLICYINFO;\n\ntypedef STACK_OF(POLICYINFO) CERTIFICATEPOLICIES;\n\nDEFINE_STACK_OF(POLICYINFO)\n\ntypedef struct POLICY_MAPPING_st {\n    ASN1_OBJECT *issuerDomainPolicy;\n    ASN1_OBJECT *subjectDomainPolicy;\n} POLICY_MAPPING;\n\nDEFINE_STACK_OF(POLICY_MAPPING)\n\ntypedef STACK_OF(POLICY_MAPPING) POLICY_MAPPINGS;\n\ntypedef struct GENERAL_SUBTREE_st {\n    GENERAL_NAME *base;\n    ASN1_INTEGER *minimum;\n    ASN1_INTEGER *maximum;\n} GENERAL_SUBTREE;\n\nDEFINE_STACK_OF(GENERAL_SUBTREE)\n\nstruct NAME_CONSTRAINTS_st {\n    STACK_OF(GENERAL_SUBTREE) *permittedSubtrees;\n    STACK_OF(GENERAL_SUBTREE) *excludedSubtrees;\n};\n\ntypedef struct POLICY_CONSTRAINTS_st {\n    ASN1_INTEGER *requireExplicitPolicy;\n    ASN1_INTEGER *inhibitPolicyMapping;\n} POLICY_CONSTRAINTS;\n\n/* Proxy certificate structures, see RFC 3820 */\ntypedef struct PROXY_POLICY_st {\n    ASN1_OBJECT *policyLanguage;\n    ASN1_OCTET_STRING *policy;\n} PROXY_POLICY;\n\ntypedef struct PROXY_CERT_INFO_EXTENSION_st {\n    ASN1_INTEGER *pcPathLengthConstraint;\n    PROXY_POLICY *proxyPolicy;\n} PROXY_CERT_INFO_EXTENSION;\n\nDECLARE_ASN1_FUNCTIONS(PROXY_POLICY)\nDECLARE_ASN1_FUNCTIONS(PROXY_CERT_INFO_EXTENSION)\n\nstruct ISSUING_DIST_POINT_st {\n    DIST_POINT_NAME *distpoint;\n    int onlyuser;\n    int onlyCA;\n    ASN1_BIT_STRING *onlysomereasons;\n    int indirectCRL;\n    int onlyattr;\n};\n\n/* Values in idp_flags field */\n/* IDP present */\n# define IDP_PRESENT     0x1\n/* IDP values inconsistent */\n# define IDP_INVALID     0x2\n/* onlyuser true */\n# define IDP_ONLYUSER    0x4\n/* onlyCA true */\n# define IDP_ONLYCA      0x8\n/* onlyattr true */\n# define IDP_ONLYATTR    0x10\n/* indirectCRL true */\n# define IDP_INDIRECT    0x20\n/* onlysomereasons present */\n# define IDP_REASONS     0x40\n\n# define X509V3_conf_err(val) ERR_add_error_data(6, \\\n                        \"section:\", (val)->section, \\\n                        \",name:\", (val)->name, \",value:\", (val)->value)\n\n# define X509V3_set_ctx_test(ctx) \\\n                        X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, CTX_TEST)\n# define X509V3_set_ctx_nodb(ctx) (ctx)->db = NULL;\n\n# define EXT_BITSTRING(nid, table) { nid, 0, ASN1_ITEM_ref(ASN1_BIT_STRING), \\\n                        0,0,0,0, \\\n                        0,0, \\\n                        (X509V3_EXT_I2V)i2v_ASN1_BIT_STRING, \\\n                        (X509V3_EXT_V2I)v2i_ASN1_BIT_STRING, \\\n                        NULL, NULL, \\\n                        table}\n\n# define EXT_IA5STRING(nid) { nid, 0, ASN1_ITEM_ref(ASN1_IA5STRING), \\\n                        0,0,0,0, \\\n                        (X509V3_EXT_I2S)i2s_ASN1_IA5STRING, \\\n                        (X509V3_EXT_S2I)s2i_ASN1_IA5STRING, \\\n                        0,0,0,0, \\\n                        NULL}\n\n# define EXT_END { -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}\n\n/* X509_PURPOSE stuff */\n\n# define EXFLAG_BCONS            0x1\n# define EXFLAG_KUSAGE           0x2\n# define EXFLAG_XKUSAGE          0x4\n# define EXFLAG_NSCERT           0x8\n\n# define EXFLAG_CA               0x10\n/* Really self issued not necessarily self signed */\n# define EXFLAG_SI               0x20\n# define EXFLAG_V1               0x40\n# define EXFLAG_INVALID          0x80\n/* EXFLAG_SET is set to indicate that some values have been precomputed */\n# define EXFLAG_SET              0x100\n# define EXFLAG_CRITICAL         0x200\n# define EXFLAG_PROXY            0x400\n\n# define EXFLAG_INVALID_POLICY   0x800\n# define EXFLAG_FRESHEST         0x1000\n/* Self signed */\n# define EXFLAG_SS               0x2000\n\n# define KU_DIGITAL_SIGNATURE    0x0080\n# define KU_NON_REPUDIATION      0x0040\n# define KU_KEY_ENCIPHERMENT     0x0020\n# define KU_DATA_ENCIPHERMENT    0x0010\n# define KU_KEY_AGREEMENT        0x0008\n# define KU_KEY_CERT_SIGN        0x0004\n# define KU_CRL_SIGN             0x0002\n# define KU_ENCIPHER_ONLY        0x0001\n# define KU_DECIPHER_ONLY        0x8000\n\n# define NS_SSL_CLIENT           0x80\n# define NS_SSL_SERVER           0x40\n# define NS_SMIME                0x20\n# define NS_OBJSIGN              0x10\n# define NS_SSL_CA               0x04\n# define NS_SMIME_CA             0x02\n# define NS_OBJSIGN_CA           0x01\n# define NS_ANY_CA               (NS_SSL_CA|NS_SMIME_CA|NS_OBJSIGN_CA)\n\n# define XKU_SSL_SERVER          0x1\n# define XKU_SSL_CLIENT          0x2\n# define XKU_SMIME               0x4\n# define XKU_CODE_SIGN           0x8\n# define XKU_SGC                 0x10\n# define XKU_OCSP_SIGN           0x20\n# define XKU_TIMESTAMP           0x40\n# define XKU_DVCS                0x80\n# define XKU_ANYEKU              0x100\n\n# define X509_PURPOSE_DYNAMIC    0x1\n# define X509_PURPOSE_DYNAMIC_NAME       0x2\n\ntypedef struct x509_purpose_st {\n    int purpose;\n    int trust;                  /* Default trust ID */\n    int flags;\n    int (*check_purpose) (const struct x509_purpose_st *, const X509 *, int);\n    char *name;\n    char *sname;\n    void *usr_data;\n} X509_PURPOSE;\n\n# define X509_PURPOSE_SSL_CLIENT         1\n# define X509_PURPOSE_SSL_SERVER         2\n# define X509_PURPOSE_NS_SSL_SERVER      3\n# define X509_PURPOSE_SMIME_SIGN         4\n# define X509_PURPOSE_SMIME_ENCRYPT      5\n# define X509_PURPOSE_CRL_SIGN           6\n# define X509_PURPOSE_ANY                7\n# define X509_PURPOSE_OCSP_HELPER        8\n# define X509_PURPOSE_TIMESTAMP_SIGN     9\n\n# define X509_PURPOSE_MIN                1\n# define X509_PURPOSE_MAX                9\n\n/* Flags for X509V3_EXT_print() */\n\n# define X509V3_EXT_UNKNOWN_MASK         (0xfL << 16)\n/* Return error for unknown extensions */\n# define X509V3_EXT_DEFAULT              0\n/* Print error for unknown extensions */\n# define X509V3_EXT_ERROR_UNKNOWN        (1L << 16)\n/* ASN1 parse unknown extensions */\n# define X509V3_EXT_PARSE_UNKNOWN        (2L << 16)\n/* BIO_dump unknown extensions */\n# define X509V3_EXT_DUMP_UNKNOWN         (3L << 16)\n\n/* Flags for X509V3_add1_i2d */\n\n# define X509V3_ADD_OP_MASK              0xfL\n# define X509V3_ADD_DEFAULT              0L\n# define X509V3_ADD_APPEND               1L\n# define X509V3_ADD_REPLACE              2L\n# define X509V3_ADD_REPLACE_EXISTING     3L\n# define X509V3_ADD_KEEP_EXISTING        4L\n# define X509V3_ADD_DELETE               5L\n# define X509V3_ADD_SILENT               0x10\n\nDEFINE_STACK_OF(X509_PURPOSE)\n\nDECLARE_ASN1_FUNCTIONS(BASIC_CONSTRAINTS)\n\nDECLARE_ASN1_FUNCTIONS(SXNET)\nDECLARE_ASN1_FUNCTIONS(SXNETID)\n\nint SXNET_add_id_asc(SXNET **psx, const char *zone, const char *user, int userlen);\nint SXNET_add_id_ulong(SXNET **psx, unsigned long lzone, const char *user,\n                       int userlen);\nint SXNET_add_id_INTEGER(SXNET **psx, ASN1_INTEGER *izone, const char *user,\n                         int userlen);\n\nASN1_OCTET_STRING *SXNET_get_id_asc(SXNET *sx, const char *zone);\nASN1_OCTET_STRING *SXNET_get_id_ulong(SXNET *sx, unsigned long lzone);\nASN1_OCTET_STRING *SXNET_get_id_INTEGER(SXNET *sx, ASN1_INTEGER *zone);\n\nDECLARE_ASN1_FUNCTIONS(AUTHORITY_KEYID)\n\nDECLARE_ASN1_FUNCTIONS(PKEY_USAGE_PERIOD)\n\nDECLARE_ASN1_FUNCTIONS(GENERAL_NAME)\nGENERAL_NAME *GENERAL_NAME_dup(GENERAL_NAME *a);\nint GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b);\n\nASN1_BIT_STRING *v2i_ASN1_BIT_STRING(X509V3_EXT_METHOD *method,\n                                     X509V3_CTX *ctx,\n                                     STACK_OF(CONF_VALUE) *nval);\nSTACK_OF(CONF_VALUE) *i2v_ASN1_BIT_STRING(X509V3_EXT_METHOD *method,\n                                          ASN1_BIT_STRING *bits,\n                                          STACK_OF(CONF_VALUE) *extlist);\nchar *i2s_ASN1_IA5STRING(X509V3_EXT_METHOD *method, ASN1_IA5STRING *ia5);\nASN1_IA5STRING *s2i_ASN1_IA5STRING(X509V3_EXT_METHOD *method,\n                                   X509V3_CTX *ctx, const char *str);\n\nSTACK_OF(CONF_VALUE) *i2v_GENERAL_NAME(X509V3_EXT_METHOD *method,\n                                       GENERAL_NAME *gen,\n                                       STACK_OF(CONF_VALUE) *ret);\nint GENERAL_NAME_print(BIO *out, GENERAL_NAME *gen);\n\nDECLARE_ASN1_FUNCTIONS(GENERAL_NAMES)\n\nSTACK_OF(CONF_VALUE) *i2v_GENERAL_NAMES(X509V3_EXT_METHOD *method,\n                                        GENERAL_NAMES *gen,\n                                        STACK_OF(CONF_VALUE) *extlist);\nGENERAL_NAMES *v2i_GENERAL_NAMES(const X509V3_EXT_METHOD *method,\n                                 X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *nval);\n\nDECLARE_ASN1_FUNCTIONS(OTHERNAME)\nDECLARE_ASN1_FUNCTIONS(EDIPARTYNAME)\nint OTHERNAME_cmp(OTHERNAME *a, OTHERNAME *b);\nvoid GENERAL_NAME_set0_value(GENERAL_NAME *a, int type, void *value);\nvoid *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);\nint GENERAL_NAME_set0_othername(GENERAL_NAME *gen,\n                                ASN1_OBJECT *oid, ASN1_TYPE *value);\nint GENERAL_NAME_get0_otherName(const GENERAL_NAME *gen,\n                                ASN1_OBJECT **poid, ASN1_TYPE **pvalue);\n\nchar *i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,\n                            const ASN1_OCTET_STRING *ia5);\nASN1_OCTET_STRING *s2i_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method,\n                                         X509V3_CTX *ctx, const char *str);\n\nDECLARE_ASN1_FUNCTIONS(EXTENDED_KEY_USAGE)\nint i2a_ACCESS_DESCRIPTION(BIO *bp, const ACCESS_DESCRIPTION *a);\n\nDECLARE_ASN1_ALLOC_FUNCTIONS(TLS_FEATURE)\n\nDECLARE_ASN1_FUNCTIONS(CERTIFICATEPOLICIES)\nDECLARE_ASN1_FUNCTIONS(POLICYINFO)\nDECLARE_ASN1_FUNCTIONS(POLICYQUALINFO)\nDECLARE_ASN1_FUNCTIONS(USERNOTICE)\nDECLARE_ASN1_FUNCTIONS(NOTICEREF)\n\nDECLARE_ASN1_FUNCTIONS(CRL_DIST_POINTS)\nDECLARE_ASN1_FUNCTIONS(DIST_POINT)\nDECLARE_ASN1_FUNCTIONS(DIST_POINT_NAME)\nDECLARE_ASN1_FUNCTIONS(ISSUING_DIST_POINT)\n\nint DIST_POINT_set_dpname(DIST_POINT_NAME *dpn, X509_NAME *iname);\n\nint NAME_CONSTRAINTS_check(X509 *x, NAME_CONSTRAINTS *nc);\nint NAME_CONSTRAINTS_check_CN(X509 *x, NAME_CONSTRAINTS *nc);\n\nDECLARE_ASN1_FUNCTIONS(ACCESS_DESCRIPTION)\nDECLARE_ASN1_FUNCTIONS(AUTHORITY_INFO_ACCESS)\n\nDECLARE_ASN1_ITEM(POLICY_MAPPING)\nDECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_MAPPING)\nDECLARE_ASN1_ITEM(POLICY_MAPPINGS)\n\nDECLARE_ASN1_ITEM(GENERAL_SUBTREE)\nDECLARE_ASN1_ALLOC_FUNCTIONS(GENERAL_SUBTREE)\n\nDECLARE_ASN1_ITEM(NAME_CONSTRAINTS)\nDECLARE_ASN1_ALLOC_FUNCTIONS(NAME_CONSTRAINTS)\n\nDECLARE_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS)\nDECLARE_ASN1_ITEM(POLICY_CONSTRAINTS)\n\nGENERAL_NAME *a2i_GENERAL_NAME(GENERAL_NAME *out,\n                               const X509V3_EXT_METHOD *method,\n                               X509V3_CTX *ctx, int gen_type,\n                               const char *value, int is_nc);\n\n# ifdef HEADER_CONF_H\nGENERAL_NAME *v2i_GENERAL_NAME(const X509V3_EXT_METHOD *method,\n                               X509V3_CTX *ctx, CONF_VALUE *cnf);\nGENERAL_NAME *v2i_GENERAL_NAME_ex(GENERAL_NAME *out,\n                                  const X509V3_EXT_METHOD *method,\n                                  X509V3_CTX *ctx, CONF_VALUE *cnf,\n                                  int is_nc);\nvoid X509V3_conf_free(CONF_VALUE *val);\n\nX509_EXTENSION *X509V3_EXT_nconf_nid(CONF *conf, X509V3_CTX *ctx, int ext_nid,\n                                     const char *value);\nX509_EXTENSION *X509V3_EXT_nconf(CONF *conf, X509V3_CTX *ctx, const char *name,\n                                 const char *value);\nint X509V3_EXT_add_nconf_sk(CONF *conf, X509V3_CTX *ctx, const char *section,\n                            STACK_OF(X509_EXTENSION) **sk);\nint X509V3_EXT_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                         X509 *cert);\nint X509V3_EXT_REQ_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                             X509_REQ *req);\nint X509V3_EXT_CRL_add_nconf(CONF *conf, X509V3_CTX *ctx, const char *section,\n                             X509_CRL *crl);\n\nX509_EXTENSION *X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf,\n                                    X509V3_CTX *ctx, int ext_nid,\n                                    const char *value);\nX509_EXTENSION *X509V3_EXT_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                                const char *name, const char *value);\nint X509V3_EXT_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                        const char *section, X509 *cert);\nint X509V3_EXT_REQ_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                            const char *section, X509_REQ *req);\nint X509V3_EXT_CRL_add_conf(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx,\n                            const char *section, X509_CRL *crl);\n\nint X509V3_add_value_bool_nf(const char *name, int asn1_bool,\n                             STACK_OF(CONF_VALUE) **extlist);\nint X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool);\nint X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint);\nvoid X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf);\nvoid X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash);\n# endif\n\nchar *X509V3_get_string(X509V3_CTX *ctx, const char *name, const char *section);\nSTACK_OF(CONF_VALUE) *X509V3_get_section(X509V3_CTX *ctx, const char *section);\nvoid X509V3_string_free(X509V3_CTX *ctx, char *str);\nvoid X509V3_section_free(X509V3_CTX *ctx, STACK_OF(CONF_VALUE) *section);\nvoid X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subject,\n                    X509_REQ *req, X509_CRL *crl, int flags);\n\nint X509V3_add_value(const char *name, const char *value,\n                     STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_uchar(const char *name, const unsigned char *value,\n                           STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_bool(const char *name, int asn1_bool,\n                          STACK_OF(CONF_VALUE) **extlist);\nint X509V3_add_value_int(const char *name, const ASN1_INTEGER *aint,\n                         STACK_OF(CONF_VALUE) **extlist);\nchar *i2s_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const ASN1_INTEGER *aint);\nASN1_INTEGER *s2i_ASN1_INTEGER(X509V3_EXT_METHOD *meth, const char *value);\nchar *i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *meth, const ASN1_ENUMERATED *aint);\nchar *i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *meth,\n                                const ASN1_ENUMERATED *aint);\nint X509V3_EXT_add(X509V3_EXT_METHOD *ext);\nint X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist);\nint X509V3_EXT_add_alias(int nid_to, int nid_from);\nvoid X509V3_EXT_cleanup(void);\n\nconst X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext);\nconst X509V3_EXT_METHOD *X509V3_EXT_get_nid(int nid);\nint X509V3_add_standard_extensions(void);\nSTACK_OF(CONF_VALUE) *X509V3_parse_list(const char *line);\nvoid *X509V3_EXT_d2i(X509_EXTENSION *ext);\nvoid *X509V3_get_d2i(const STACK_OF(X509_EXTENSION) *x, int nid, int *crit,\n                     int *idx);\n\nX509_EXTENSION *X509V3_EXT_i2d(int ext_nid, int crit, void *ext_struc);\nint X509V3_add1_i2d(STACK_OF(X509_EXTENSION) **x, int nid, void *value,\n                    int crit, unsigned long flags);\n\n#if OPENSSL_API_COMPAT < 0x10100000L\n/* The new declarations are in crypto.h, but the old ones were here. */\n# define hex_to_string OPENSSL_buf2hexstr\n# define string_to_hex OPENSSL_hexstr2buf\n#endif\n\nvoid X509V3_EXT_val_prn(BIO *out, STACK_OF(CONF_VALUE) *val, int indent,\n                        int ml);\nint X509V3_EXT_print(BIO *out, X509_EXTENSION *ext, unsigned long flag,\n                     int indent);\n#ifndef OPENSSL_NO_STDIO\nint X509V3_EXT_print_fp(FILE *out, X509_EXTENSION *ext, int flag, int indent);\n#endif\nint X509V3_extensions_print(BIO *out, const char *title,\n                            const STACK_OF(X509_EXTENSION) *exts,\n                            unsigned long flag, int indent);\n\nint X509_check_ca(X509 *x);\nint X509_check_purpose(X509 *x, int id, int ca);\nint X509_supported_extension(X509_EXTENSION *ex);\nint X509_PURPOSE_set(int *p, int purpose);\nint X509_check_issued(X509 *issuer, X509 *subject);\nint X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid);\nvoid X509_set_proxy_flag(X509 *x);\nvoid X509_set_proxy_pathlen(X509 *x, long l);\nlong X509_get_proxy_pathlen(X509 *x);\n\nuint32_t X509_get_extension_flags(X509 *x);\nuint32_t X509_get_key_usage(X509 *x);\nuint32_t X509_get_extended_key_usage(X509 *x);\nconst ASN1_OCTET_STRING *X509_get0_subject_key_id(X509 *x);\nconst ASN1_OCTET_STRING *X509_get0_authority_key_id(X509 *x);\nconst GENERAL_NAMES *X509_get0_authority_issuer(X509 *x);\nconst ASN1_INTEGER *X509_get0_authority_serial(X509 *x);\n\nint X509_PURPOSE_get_count(void);\nX509_PURPOSE *X509_PURPOSE_get0(int idx);\nint X509_PURPOSE_get_by_sname(const char *sname);\nint X509_PURPOSE_get_by_id(int id);\nint X509_PURPOSE_add(int id, int trust, int flags,\n                     int (*ck) (const X509_PURPOSE *, const X509 *, int),\n                     const char *name, const char *sname, void *arg);\nchar *X509_PURPOSE_get0_name(const X509_PURPOSE *xp);\nchar *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp);\nint X509_PURPOSE_get_trust(const X509_PURPOSE *xp);\nvoid X509_PURPOSE_cleanup(void);\nint X509_PURPOSE_get_id(const X509_PURPOSE *);\n\nSTACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x);\nSTACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x);\nvoid X509_email_free(STACK_OF(OPENSSL_STRING) *sk);\nSTACK_OF(OPENSSL_STRING) *X509_get1_ocsp(X509 *x);\n/* Flags for X509_check_* functions */\n\n/*\n * Always check subject name for host match even if subject alt names present\n */\n# define X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT    0x1\n/* Disable wildcard matching for dnsName fields and common name. */\n# define X509_CHECK_FLAG_NO_WILDCARDS    0x2\n/* Wildcards must not match a partial label. */\n# define X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS 0x4\n/* Allow (non-partial) wildcards to match multiple labels. */\n# define X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS 0x8\n/* Constraint verifier subdomain patterns to match a single labels. */\n# define X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS 0x10\n/* Never check the subject CN */\n# define X509_CHECK_FLAG_NEVER_CHECK_SUBJECT    0x20\n/*\n * Match reference identifiers starting with \".\" to any sub-domain.\n * This is a non-public flag, turned on implicitly when the subject\n * reference identity is a DNS name.\n */\n# define _X509_CHECK_FLAG_DOT_SUBDOMAINS 0x8000\n\nint X509_check_host(X509 *x, const char *chk, size_t chklen,\n                    unsigned int flags, char **peername);\nint X509_check_email(X509 *x, const char *chk, size_t chklen,\n                     unsigned int flags);\nint X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen,\n                  unsigned int flags);\nint X509_check_ip_asc(X509 *x, const char *ipasc, unsigned int flags);\n\nASN1_OCTET_STRING *a2i_IPADDRESS(const char *ipasc);\nASN1_OCTET_STRING *a2i_IPADDRESS_NC(const char *ipasc);\nint X509V3_NAME_from_section(X509_NAME *nm, STACK_OF(CONF_VALUE) *dn_sk,\n                             unsigned long chtype);\n\nvoid X509_POLICY_NODE_print(BIO *out, X509_POLICY_NODE *node, int indent);\nDEFINE_STACK_OF(X509_POLICY_NODE)\n\n#ifndef OPENSSL_NO_RFC3779\ntypedef struct ASRange_st {\n    ASN1_INTEGER *min, *max;\n} ASRange;\n\n# define ASIdOrRange_id          0\n# define ASIdOrRange_range       1\n\ntypedef struct ASIdOrRange_st {\n    int type;\n    union {\n        ASN1_INTEGER *id;\n        ASRange *range;\n    } u;\n} ASIdOrRange;\n\ntypedef STACK_OF(ASIdOrRange) ASIdOrRanges;\nDEFINE_STACK_OF(ASIdOrRange)\n\n# define ASIdentifierChoice_inherit              0\n# define ASIdentifierChoice_asIdsOrRanges        1\n\ntypedef struct ASIdentifierChoice_st {\n    int type;\n    union {\n        ASN1_NULL *inherit;\n        ASIdOrRanges *asIdsOrRanges;\n    } u;\n} ASIdentifierChoice;\n\ntypedef struct ASIdentifiers_st {\n    ASIdentifierChoice *asnum, *rdi;\n} ASIdentifiers;\n\nDECLARE_ASN1_FUNCTIONS(ASRange)\nDECLARE_ASN1_FUNCTIONS(ASIdOrRange)\nDECLARE_ASN1_FUNCTIONS(ASIdentifierChoice)\nDECLARE_ASN1_FUNCTIONS(ASIdentifiers)\n\ntypedef struct IPAddressRange_st {\n    ASN1_BIT_STRING *min, *max;\n} IPAddressRange;\n\n# define IPAddressOrRange_addressPrefix  0\n# define IPAddressOrRange_addressRange   1\n\ntypedef struct IPAddressOrRange_st {\n    int type;\n    union {\n        ASN1_BIT_STRING *addressPrefix;\n        IPAddressRange *addressRange;\n    } u;\n} IPAddressOrRange;\n\ntypedef STACK_OF(IPAddressOrRange) IPAddressOrRanges;\nDEFINE_STACK_OF(IPAddressOrRange)\n\n# define IPAddressChoice_inherit                 0\n# define IPAddressChoice_addressesOrRanges       1\n\ntypedef struct IPAddressChoice_st {\n    int type;\n    union {\n        ASN1_NULL *inherit;\n        IPAddressOrRanges *addressesOrRanges;\n    } u;\n} IPAddressChoice;\n\ntypedef struct IPAddressFamily_st {\n    ASN1_OCTET_STRING *addressFamily;\n    IPAddressChoice *ipAddressChoice;\n} IPAddressFamily;\n\ntypedef STACK_OF(IPAddressFamily) IPAddrBlocks;\nDEFINE_STACK_OF(IPAddressFamily)\n\nDECLARE_ASN1_FUNCTIONS(IPAddressRange)\nDECLARE_ASN1_FUNCTIONS(IPAddressOrRange)\nDECLARE_ASN1_FUNCTIONS(IPAddressChoice)\nDECLARE_ASN1_FUNCTIONS(IPAddressFamily)\n\n/*\n * API tag for elements of the ASIdentifer SEQUENCE.\n */\n# define V3_ASID_ASNUM   0\n# define V3_ASID_RDI     1\n\n/*\n * AFI values, assigned by IANA.  It'd be nice to make the AFI\n * handling code totally generic, but there are too many little things\n * that would need to be defined for other address families for it to\n * be worth the trouble.\n */\n# define IANA_AFI_IPV4   1\n# define IANA_AFI_IPV6   2\n\n/*\n * Utilities to construct and extract values from RFC3779 extensions,\n * since some of the encodings (particularly for IP address prefixes\n * and ranges) are a bit tedious to work with directly.\n */\nint X509v3_asid_add_inherit(ASIdentifiers *asid, int which);\nint X509v3_asid_add_id_or_range(ASIdentifiers *asid, int which,\n                                ASN1_INTEGER *min, ASN1_INTEGER *max);\nint X509v3_addr_add_inherit(IPAddrBlocks *addr,\n                            const unsigned afi, const unsigned *safi);\nint X509v3_addr_add_prefix(IPAddrBlocks *addr,\n                           const unsigned afi, const unsigned *safi,\n                           unsigned char *a, const int prefixlen);\nint X509v3_addr_add_range(IPAddrBlocks *addr,\n                          const unsigned afi, const unsigned *safi,\n                          unsigned char *min, unsigned char *max);\nunsigned X509v3_addr_get_afi(const IPAddressFamily *f);\nint X509v3_addr_get_range(IPAddressOrRange *aor, const unsigned afi,\n                          unsigned char *min, unsigned char *max,\n                          const int length);\n\n/*\n * Canonical forms.\n */\nint X509v3_asid_is_canonical(ASIdentifiers *asid);\nint X509v3_addr_is_canonical(IPAddrBlocks *addr);\nint X509v3_asid_canonize(ASIdentifiers *asid);\nint X509v3_addr_canonize(IPAddrBlocks *addr);\n\n/*\n * Tests for inheritance and containment.\n */\nint X509v3_asid_inherits(ASIdentifiers *asid);\nint X509v3_addr_inherits(IPAddrBlocks *addr);\nint X509v3_asid_subset(ASIdentifiers *a, ASIdentifiers *b);\nint X509v3_addr_subset(IPAddrBlocks *a, IPAddrBlocks *b);\n\n/*\n * Check whether RFC 3779 extensions nest properly in chains.\n */\nint X509v3_asid_validate_path(X509_STORE_CTX *);\nint X509v3_addr_validate_path(X509_STORE_CTX *);\nint X509v3_asid_validate_resource_set(STACK_OF(X509) *chain,\n                                      ASIdentifiers *ext,\n                                      int allow_inheritance);\nint X509v3_addr_validate_resource_set(STACK_OF(X509) *chain,\n                                      IPAddrBlocks *ext, int allow_inheritance);\n\n#endif                         /* OPENSSL_NO_RFC3779 */\n\nDEFINE_STACK_OF(ASN1_STRING)\n\n/*\n * Admission Syntax\n */\ntypedef struct NamingAuthority_st NAMING_AUTHORITY;\ntypedef struct ProfessionInfo_st PROFESSION_INFO;\ntypedef struct Admissions_st ADMISSIONS;\ntypedef struct AdmissionSyntax_st ADMISSION_SYNTAX;\nDECLARE_ASN1_FUNCTIONS(NAMING_AUTHORITY)\nDECLARE_ASN1_FUNCTIONS(PROFESSION_INFO)\nDECLARE_ASN1_FUNCTIONS(ADMISSIONS)\nDECLARE_ASN1_FUNCTIONS(ADMISSION_SYNTAX)\nDEFINE_STACK_OF(ADMISSIONS)\nDEFINE_STACK_OF(PROFESSION_INFO)\ntypedef STACK_OF(PROFESSION_INFO) PROFESSION_INFOS;\n\nconst ASN1_OBJECT *NAMING_AUTHORITY_get0_authorityId(\n    const NAMING_AUTHORITY *n);\nconst ASN1_IA5STRING *NAMING_AUTHORITY_get0_authorityURL(\n    const NAMING_AUTHORITY *n);\nconst ASN1_STRING *NAMING_AUTHORITY_get0_authorityText(\n    const NAMING_AUTHORITY *n);\nvoid NAMING_AUTHORITY_set0_authorityId(NAMING_AUTHORITY *n,\n    ASN1_OBJECT* namingAuthorityId);\nvoid NAMING_AUTHORITY_set0_authorityURL(NAMING_AUTHORITY *n,\n    ASN1_IA5STRING* namingAuthorityUrl);\nvoid NAMING_AUTHORITY_set0_authorityText(NAMING_AUTHORITY *n,\n    ASN1_STRING* namingAuthorityText);\n\nconst GENERAL_NAME *ADMISSION_SYNTAX_get0_admissionAuthority(\n    const ADMISSION_SYNTAX *as);\nvoid ADMISSION_SYNTAX_set0_admissionAuthority(\n    ADMISSION_SYNTAX *as, GENERAL_NAME *aa);\nconst STACK_OF(ADMISSIONS) *ADMISSION_SYNTAX_get0_contentsOfAdmissions(\n    const ADMISSION_SYNTAX *as);\nvoid ADMISSION_SYNTAX_set0_contentsOfAdmissions(\n    ADMISSION_SYNTAX *as, STACK_OF(ADMISSIONS) *a);\nconst GENERAL_NAME *ADMISSIONS_get0_admissionAuthority(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_admissionAuthority(ADMISSIONS *a, GENERAL_NAME *aa);\nconst NAMING_AUTHORITY *ADMISSIONS_get0_namingAuthority(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_namingAuthority(ADMISSIONS *a, NAMING_AUTHORITY *na);\nconst PROFESSION_INFOS *ADMISSIONS_get0_professionInfos(const ADMISSIONS *a);\nvoid ADMISSIONS_set0_professionInfos(ADMISSIONS *a, PROFESSION_INFOS *pi);\nconst ASN1_OCTET_STRING *PROFESSION_INFO_get0_addProfessionInfo(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_addProfessionInfo(\n    PROFESSION_INFO *pi, ASN1_OCTET_STRING *aos);\nconst NAMING_AUTHORITY *PROFESSION_INFO_get0_namingAuthority(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_namingAuthority(\n    PROFESSION_INFO *pi, NAMING_AUTHORITY *na);\nconst STACK_OF(ASN1_STRING) *PROFESSION_INFO_get0_professionItems(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_professionItems(\n    PROFESSION_INFO *pi, STACK_OF(ASN1_STRING) *as);\nconst STACK_OF(ASN1_OBJECT) *PROFESSION_INFO_get0_professionOIDs(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_professionOIDs(\n    PROFESSION_INFO *pi, STACK_OF(ASN1_OBJECT) *po);\nconst ASN1_PRINTABLESTRING *PROFESSION_INFO_get0_registrationNumber(\n    const PROFESSION_INFO *pi);\nvoid PROFESSION_INFO_set0_registrationNumber(\n    PROFESSION_INFO *pi, ASN1_PRINTABLESTRING *rn);\n\n# ifdef  __cplusplus\n}\n# endif\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/libssl.xcframework/macos-arm64_x86_64/Headers/openssl/x509v3err.h",
    "content": "/*\n * Generated by util/mkerr.pl DO NOT EDIT\n * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.\n *\n * Licensed under the OpenSSL license (the \"License\").  You may not use\n * this file except in compliance with the License.  You can obtain a copy\n * in the file LICENSE in the source distribution or at\n * https://www.openssl.org/source/license.html\n */\n\n#ifndef HEADER_X509V3ERR_H\n# define HEADER_X509V3ERR_H\n\n# ifndef HEADER_SYMHACKS_H\n#  include <openssl/symhacks.h>\n# endif\n\n# ifdef  __cplusplus\nextern \"C\"\n# endif\nint ERR_load_X509V3_strings(void);\n\n/*\n * X509V3 function codes.\n */\n# define X509V3_F_A2I_GENERAL_NAME                        164\n# define X509V3_F_ADDR_VALIDATE_PATH_INTERNAL             166\n# define X509V3_F_ASIDENTIFIERCHOICE_CANONIZE             161\n# define X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL         162\n# define X509V3_F_BIGNUM_TO_STRING                        167\n# define X509V3_F_COPY_EMAIL                              122\n# define X509V3_F_COPY_ISSUER                             123\n# define X509V3_F_DO_DIRNAME                              144\n# define X509V3_F_DO_EXT_I2D                              135\n# define X509V3_F_DO_EXT_NCONF                            151\n# define X509V3_F_GNAMES_FROM_SECTNAME                    156\n# define X509V3_F_I2S_ASN1_ENUMERATED                     121\n# define X509V3_F_I2S_ASN1_IA5STRING                      149\n# define X509V3_F_I2S_ASN1_INTEGER                        120\n# define X509V3_F_I2V_AUTHORITY_INFO_ACCESS               138\n# define X509V3_F_LEVEL_ADD_NODE                          168\n# define X509V3_F_NOTICE_SECTION                          132\n# define X509V3_F_NREF_NOS                                133\n# define X509V3_F_POLICY_CACHE_CREATE                     169\n# define X509V3_F_POLICY_CACHE_NEW                        170\n# define X509V3_F_POLICY_DATA_NEW                         171\n# define X509V3_F_POLICY_SECTION                          131\n# define X509V3_F_PROCESS_PCI_VALUE                       150\n# define X509V3_F_R2I_CERTPOL                             130\n# define X509V3_F_R2I_PCI                                 155\n# define X509V3_F_S2I_ASN1_IA5STRING                      100\n# define X509V3_F_S2I_ASN1_INTEGER                        108\n# define X509V3_F_S2I_ASN1_OCTET_STRING                   112\n# define X509V3_F_S2I_SKEY_ID                             115\n# define X509V3_F_SET_DIST_POINT_NAME                     158\n# define X509V3_F_SXNET_ADD_ID_ASC                        125\n# define X509V3_F_SXNET_ADD_ID_INTEGER                    126\n# define X509V3_F_SXNET_ADD_ID_ULONG                      127\n# define X509V3_F_SXNET_GET_ID_ASC                        128\n# define X509V3_F_SXNET_GET_ID_ULONG                      129\n# define X509V3_F_TREE_INIT                               172\n# define X509V3_F_V2I_ASIDENTIFIERS                       163\n# define X509V3_F_V2I_ASN1_BIT_STRING                     101\n# define X509V3_F_V2I_AUTHORITY_INFO_ACCESS               139\n# define X509V3_F_V2I_AUTHORITY_KEYID                     119\n# define X509V3_F_V2I_BASIC_CONSTRAINTS                   102\n# define X509V3_F_V2I_CRLD                                134\n# define X509V3_F_V2I_EXTENDED_KEY_USAGE                  103\n# define X509V3_F_V2I_GENERAL_NAMES                       118\n# define X509V3_F_V2I_GENERAL_NAME_EX                     117\n# define X509V3_F_V2I_IDP                                 157\n# define X509V3_F_V2I_IPADDRBLOCKS                        159\n# define X509V3_F_V2I_ISSUER_ALT                          153\n# define X509V3_F_V2I_NAME_CONSTRAINTS                    147\n# define X509V3_F_V2I_POLICY_CONSTRAINTS                  146\n# define X509V3_F_V2I_POLICY_MAPPINGS                     145\n# define X509V3_F_V2I_SUBJECT_ALT                         154\n# define X509V3_F_V2I_TLS_FEATURE                         165\n# define X509V3_F_V3_GENERIC_EXTENSION                    116\n# define X509V3_F_X509V3_ADD1_I2D                         140\n# define X509V3_F_X509V3_ADD_VALUE                        105\n# define X509V3_F_X509V3_EXT_ADD                          104\n# define X509V3_F_X509V3_EXT_ADD_ALIAS                    106\n# define X509V3_F_X509V3_EXT_I2D                          136\n# define X509V3_F_X509V3_EXT_NCONF                        152\n# define X509V3_F_X509V3_GET_SECTION                      142\n# define X509V3_F_X509V3_GET_STRING                       143\n# define X509V3_F_X509V3_GET_VALUE_BOOL                   110\n# define X509V3_F_X509V3_PARSE_LIST                       109\n# define X509V3_F_X509_PURPOSE_ADD                        137\n# define X509V3_F_X509_PURPOSE_SET                        141\n\n/*\n * X509V3 reason codes.\n */\n# define X509V3_R_BAD_IP_ADDRESS                          118\n# define X509V3_R_BAD_OBJECT                              119\n# define X509V3_R_BN_DEC2BN_ERROR                         100\n# define X509V3_R_BN_TO_ASN1_INTEGER_ERROR                101\n# define X509V3_R_DIRNAME_ERROR                           149\n# define X509V3_R_DISTPOINT_ALREADY_SET                   160\n# define X509V3_R_DUPLICATE_ZONE_ID                       133\n# define X509V3_R_ERROR_CONVERTING_ZONE                   131\n# define X509V3_R_ERROR_CREATING_EXTENSION                144\n# define X509V3_R_ERROR_IN_EXTENSION                      128\n# define X509V3_R_EXPECTED_A_SECTION_NAME                 137\n# define X509V3_R_EXTENSION_EXISTS                        145\n# define X509V3_R_EXTENSION_NAME_ERROR                    115\n# define X509V3_R_EXTENSION_NOT_FOUND                     102\n# define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED         103\n# define X509V3_R_EXTENSION_VALUE_ERROR                   116\n# define X509V3_R_ILLEGAL_EMPTY_EXTENSION                 151\n# define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG             152\n# define X509V3_R_INVALID_ASNUMBER                        162\n# define X509V3_R_INVALID_ASRANGE                         163\n# define X509V3_R_INVALID_BOOLEAN_STRING                  104\n# define X509V3_R_INVALID_EXTENSION_STRING                105\n# define X509V3_R_INVALID_INHERITANCE                     165\n# define X509V3_R_INVALID_IPADDRESS                       166\n# define X509V3_R_INVALID_MULTIPLE_RDNS                   161\n# define X509V3_R_INVALID_NAME                            106\n# define X509V3_R_INVALID_NULL_ARGUMENT                   107\n# define X509V3_R_INVALID_NULL_NAME                       108\n# define X509V3_R_INVALID_NULL_VALUE                      109\n# define X509V3_R_INVALID_NUMBER                          140\n# define X509V3_R_INVALID_NUMBERS                         141\n# define X509V3_R_INVALID_OBJECT_IDENTIFIER               110\n# define X509V3_R_INVALID_OPTION                          138\n# define X509V3_R_INVALID_POLICY_IDENTIFIER               134\n# define X509V3_R_INVALID_PROXY_POLICY_SETTING            153\n# define X509V3_R_INVALID_PURPOSE                         146\n# define X509V3_R_INVALID_SAFI                            164\n# define X509V3_R_INVALID_SECTION                         135\n# define X509V3_R_INVALID_SYNTAX                          143\n# define X509V3_R_ISSUER_DECODE_ERROR                     126\n# define X509V3_R_MISSING_VALUE                           124\n# define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS           142\n# define X509V3_R_NO_CONFIG_DATABASE                      136\n# define X509V3_R_NO_ISSUER_CERTIFICATE                   121\n# define X509V3_R_NO_ISSUER_DETAILS                       127\n# define X509V3_R_NO_POLICY_IDENTIFIER                    139\n# define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED   154\n# define X509V3_R_NO_PUBLIC_KEY                           114\n# define X509V3_R_NO_SUBJECT_DETAILS                      125\n# define X509V3_R_OPERATION_NOT_DEFINED                   148\n# define X509V3_R_OTHERNAME_ERROR                         147\n# define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED         155\n# define X509V3_R_POLICY_PATH_LENGTH                      156\n# define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED      157\n# define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY 159\n# define X509V3_R_SECTION_NOT_FOUND                       150\n# define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS            122\n# define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID              123\n# define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT             111\n# define X509V3_R_UNKNOWN_EXTENSION                       129\n# define X509V3_R_UNKNOWN_EXTENSION_NAME                  130\n# define X509V3_R_UNKNOWN_OPTION                          120\n# define X509V3_R_UNSUPPORTED_OPTION                      117\n# define X509V3_R_UNSUPPORTED_TYPE                        167\n# define X509V3_R_USER_TOO_LONG                           132\n\n#endif\n"
  },
  {
    "path": "GitUpKit/Third-Party/rebuild-libsqlite3.sh",
    "content": "#!/bin/sh -ex -o pipefail\n\nVERSION=\"3220000\"\nDIRNAME=\"`pwd`\"\n\n. ./common.sh\n\nfunction build_arch_library() {\n  local PLATFORM=\"$1\"\n  local ARCH=\"$2\"\n  local PREFIX=\"$3\"\n\n  if [[ \"$ARCH\" == \"x86_64\" ]]; then\n    HOST=\"x86_64-apple-darwin\"\n  elif [[ \"$ARCH\" == \"arm64\" ]]; then\n    HOST=\"arm-apple-darwin\"\n  else\n    exit 1\n  fi\n\n  configure_environment \"$PLATFORM\" \"$ARCH\"\n\n  ./configure --prefix=\"$PREFIX\" --host=\"$HOST\" --disable-shared --disable-dynamic-extensions\n  make install-includeHEADERS\n  make install-libLTLIBRARIES\n  make clean\n}\n\n# Setup\nmkdir -p \"build\"\ncd \"build\"\nif [[ ! -f \"sqlite-autoconf-$VERSION.tar.gz\" ]]; then\n  curl -sfLO \"https://www.sqlite.org/2018/sqlite-autoconf-$VERSION.tar.gz\"\nfi\nrm -rf \"sqlite-autoconf-$VERSION\"\ntar -xvf \"sqlite-autoconf-$VERSION.tar.gz\"\n\n# Patch\ncd \"sqlite-autoconf-$VERSION\"\nperl -pi -e \"s/SQLITE_THREADSAFE=1/SQLITE_THREADSAFE=2/g\" \"configure\"  # Patch configure so that SQLITE_THREADSAFE=2 instead of SQLITE_THREADSAFE=1\n\n# Build\nEXTRA_CFLAGS=\"-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS\"\nbuild_libraries \"$DIRNAME\" \"libsqlite3\"\n"
  },
  {
    "path": "GitUpKit/Third-Party/rebuild-libssh2.sh",
    "content": "#!/bin/sh -ex -o pipefail\n\nVERSION=\"1.9.0\"\nDIRNAME=\"`pwd`\"\n\n. ./common.sh\n\nfunction build_arch_library() {\n  local PLATFORM=\"$1\"\n  local ARCH=\"$2\"\n  local PREFIX=\"$3\"\n\n  if [[ \"$PLATFORM\" == \"macosx\" ]]; then\n    XCFRAMEWORK_SUBDIR=\"macos-${MACOS_ARCHS// /_}\"\n  elif [[ \"$PLATFORM\" == \"iphonesimulator\" ]]; then\n    XCFRAMEWORK_SUBDIR=\"ios-${IOS_SIMULATOR_ARCHS// /_}-simulator\"\n  elif [[ \"$PLATFORM\" == \"iphoneos\" ]]; then\n    XCFRAMEWORK_SUBDIR=\"ios-${IOS_DEVICE_ARCHS// /_}\"\n  else\n    exit 1\n  fi\n  LIBSSL_PREFIX=\"$DIRNAME/libssl.xcframework/$XCFRAMEWORK_SUBDIR\"\n  LIBCRYPTO_PREFIX=\"$DIRNAME/libcrypto.xcframework/$XCFRAMEWORK_SUBDIR\"\n  EXTRA_LDFLAGS=\"-L$LIBSSL_PREFIX -L$LIBCRYPTO_PREFIX\"\n  EXTRA_CFLAGS=\"-I$LIBSSL_PREFIX/Headers -I$LIBCRYPTO_PREFIX/Headers\"\n\n  if [[ \"$ARCH\" == \"x86_64\" ]]; then\n    HOST=\"x86_64-apple-darwin\"\n  elif [[ \"$ARCH\" == \"arm64\" ]]; then\n    HOST=\"arm-apple-darwin\"\n  else\n    exit 1\n  fi\n\n  configure_environment \"$PLATFORM\" \"$ARCH\"\n\n  ./configure --prefix=\"$PREFIX\" --host=\"$HOST\" --disable-shared --disable-debug --disable-examples-build --with-libz --with-crypto=openssl\n  make install\n  make clean\n}\n\n# Setup\nmkdir -p \"build\"\ncd \"build\"\nif [[ ! -f \"libssh2-$VERSION.tar.gz\" ]]; then\n  curl -sfLO \"http://www.libssh2.org/download/libssh2-$VERSION.tar.gz\"\nfi\nrm -rf \"libssh2-$VERSION\"\ntar -xvf \"libssh2-$VERSION.tar.gz\"\n\n# Build\ncd \"libssh2-$VERSION\"\nbuild_libraries \"$DIRNAME\" \"libssh2\"\n"
  },
  {
    "path": "GitUpKit/Third-Party/rebuild-libssl.sh",
    "content": "#!/bin/sh -ex -o pipefail\n\nVERSION=\"1.1.1h\"\nDIRNAME=\"`pwd`\"\n\n. ./common.sh\n\nfunction build_arch_library() {\n  local PLATFORM=\"$1\"\n  local ARCH=\"$2\"\n  local PREFIX=\"$3\"\n\n  configure_environment \"$PLATFORM\" \"$ARCH\"\n\n  if [[ \"$PLATFORM\" == \"macosx\" ]]; then\n    if [[ \"$ARCH\" == \"arm64\" ]]; then\n      CONFIGURATION=\"darwin64-arm64-cc\"\n    elif [[ \"$ARCH\" == \"x86_64\" ]]; then\n      CONFIGURATION=\"darwin64-x86_64-cc\"\n    else\n      exit 1\n    fi\n  elif [[ \"$PLATFORM\" == \"iphonesimulator\" ]]; then\n    if [[ \"$ARCH\" == \"arm64\" ]]; then\n      CONFIGURATION=\"iossimulator64-arm64-xcrun\"\n    elif [[ \"$ARCH\" == \"x86_64\" ]]; then\n      CONFIGURATION=\"iossimulator64-x86_64-xcrun\"\n    else\n      exit 1\n    fi\n  elif [[ \"$PLATFORM\" == \"iphoneos\" ]]; then\n    if [[ \"$ARCH\" == \"arm64\" ]]; then\n      CONFIGURATION=\"ios64-xcrun\"\n    else\n      exit 1\n    fi\n  fi\n\n  ./Configure $CONFIGURATION --prefix=\"$PREFIX\" no-shared zlib threads no-ssl2 no-ssl3 no-dso\n  make depend\n  make install_sw\n  make clean\n}\n\n# Setup\nmkdir -p \"build\"\ncd \"build\"\nif [[ ! -f \"openssl-$VERSION.tar.gz\" ]]; then\n  curl -sfLO \"https://www.openssl.org/source/openssl-$VERSION.tar.gz\"\nfi\nrm -rf \"openssl-$VERSION\"\ntar -xvf \"openssl-$VERSION.tar.gz\"\n\n# Patch\ncd \"openssl-$VERSION\"\npatch -p1 << EOF\ndiff --git a/Configurations/10-main.conf b/Configurations/10-main.conf\nindex fc9f3bbea6..d7580bf3e1 100644\n--- a/Configurations/10-main.conf\n+++ b/Configurations/10-main.conf\n@@ -1615,6 +1615,16 @@ my %targets = (\n         asm_arch         => 'x86_64',\n         perlasm_scheme   => \"macosx\",\n     },\n+    \"darwin64-arm64-cc\" => { inherit_from => [ \"darwin64-arm64\" ] }, # \"Historic\" alias\n+    \"darwin64-arm64\" => {\n+        inherit_from     => [ \"darwin-common\" ],\n+        CFLAGS           => add(\"-Wall\"),\n+        cflags           => add(\"-arch arm64\"),\n+        lib_cppflags     => add(\"-DL_ENDIAN\"),\n+        bn_ops           => \"SIXTY_FOUR_BIT_LONG\",\n+        asm_arch         => 'aarch64_asm',\n+        perlasm_scheme   => \"ios64\",\n+    },\n\n ##### GNU Hurd\n     \"hurd-x86\" => {\n--- a/Configurations/15-ios.conf\n+++ b/Configurations/15-ios.conf\n@@ -32,6 +32,20 @@ my %targets = (\n         inherit_from     => [ \"ios-common\" ],\n         CC               => \"xcrun -sdk iphonesimulator cc\",\n     },\n+    \"iossimulator64-x86_64-xcrun\" => {\n+        inherit_from     => [ \"ios-common\", asm(\"x86_64_asm\") ],\n+        CC               => \"xcrun -sdk iphonesimulator cc\",\n+        cflags           => add(\"-arch x86_64 -mios-simulator-version-min=7.0.0 -fno-common\"),\n+        bn_ops           => \"SIXTY_FOUR_BIT_LONG RC4_CHAR\",\n+        perlasm_scheme   => \"macosx\",\n+    },\n+    \"iossimulator64-arm64-xcrun\" => {\n+        inherit_from     => [ \"ios-common\", asm(\"aarch64_asm\") ],\n+        CC               => \"xcrun -sdk iphonesimulator cc\",\n+        cflags           => add(\"-arch arm64 -mios-simulator-version-min=7.0.0 -fno-common\"),\n+        bn_ops           => \"SIXTY_FOUR_BIT_LONG RC4_CHAR\",\n+        perlasm_scheme   => \"ios64\",\n+    },\n # It takes three prior-set environment variables to make it work:\n #\n # CROSS_COMPILE=/where/toolchain/is/usr/bin/ [note ending slash]\nEOF\n\n# Build\nbuild_libraries \"$DIRNAME\" \"libssl\" \"libcrypto\"\n"
  },
  {
    "path": "GitUpKit/Utilities/GIAppKit.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\ntypedef NS_ENUM(NSUInteger, GIAlertType) {\n  kGIAlertType_Note = 0,\n  kGIAlertType_Caution,\n  kGIAlertType_Stop,\n  kGIAlertType_Danger\n};\n\nextern NSString* const GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters;\nextern NSString* const GICommitMessageViewUserDefaultKey_ShowMargins;\nextern NSString* const GICommitMessageViewUserDefaultKey_EnableSpellChecking;\nextern NSString* const GIUserDefaultKey_FontSize;  // NSNumber. Base font size for user interface text. Read this with GIFontSize() to always get a valid value.\n\nextern CGFloat const GIDefaultFontSize;\n\nFOUNDATION_EXPORT CGFloat GIFontSize(void);  // Reads GIUserDefaultKey_FontSize, falling back to GIDefaultFontSize if the user defaults value is not usable.\n\nFOUNDATION_EXPORT void GIPerformOnMainRunLoop(dispatch_block_t block);\n\n@interface NSMutableAttributedString (GIAppKit)\n- (void)appendString:(NSString*)string withAttributes:(NSDictionary*)attributes;\n@end\n\n@interface NSAlert (GIAppKit)\n- (void)setType:(GIAlertType)type;  // Set the alert icon\n@end\n\n@interface NSView (GIAppKit)\n- (void)replaceWithView:(NSView*)view;  // Preserves frame and autoresizing mask\n- (NSImage*)takeSnapshot;\n@end\n\n@interface NSMenu (GIAppKit)\n- (NSMenuItem*)addItemWithTitle:(NSString*)title block:(dispatch_block_t)block;\n- (NSMenuItem*)addItemWithTitle:(NSString*)title keyEquivalent:(unichar)code modifierMask:(NSUInteger)mask block:(dispatch_block_t)block;  // Pass a NULL block to add a disabled item\n@end\n\n@interface GIFlippedView : NSView\n@end\n\n@interface GITextView : NSTextView\n@end\n\n@interface GICommitMessageView : GITextView\n@end\n\n@interface GITableCellView : NSTableCellView\n@property(nonatomic) NSInteger row;\n@end\n\n@interface GITableView : NSTableView\n@end\n\n@interface GIDualSplitView : NSSplitView <NSSplitViewDelegate>  // This view assumes only 2 subviews and is its own delegate!\n@property(nonatomic) IBInspectable CGFloat minSize1;\n@property(nonatomic) IBInspectable CGFloat minSize2;\n@end\n\n@interface NSAppearance (GIAppearance)\n@property(nonatomic, readonly) BOOL matchesDarkAppearance;\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIAppKit.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <objc/runtime.h>\n\n#import \"GIAppKit.h\"\n#import \"GIConstants.h\"\n#import \"NSColor+GINamedColors.h\"\n\n#import \"XLFacilityMacros.h\"\n\n#define kSummaryMaxWidth 50\n#define kBodyMaxWidth 72\n\n@interface GILayoutManager : NSLayoutManager\n@end\n\nNSString* const GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters = @\"GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters\";\nNSString* const GICommitMessageViewUserDefaultKey_ShowMargins = @\"GICommitMessageViewUserDefaultKey_ShowMargins\";\nNSString* const GICommitMessageViewUserDefaultKey_EnableSpellChecking = @\"GICommitMessageViewUserDefaultKey_EnableSpellChecking\";\nNSString* const GIUserDefaultKey_FontSize = @\"GIUserDefaultKey_FontSize\";\n\nCGFloat const GIDefaultFontSize = 10;\n\nCGFloat GIFontSize(void) {\n  CGFloat size = [[NSUserDefaults standardUserDefaults] floatForKey:GIUserDefaultKey_FontSize];\n  return size > 0 ? size : GIDefaultFontSize;\n}\n\nstatic const void* _associatedObjectCommitKey = &_associatedObjectCommitKey;\n\nvoid GIPerformOnMainRunLoop(dispatch_block_t block) {\n  // Equivalent to `[[NSRunLoop mainRunLoop] performBlock:]` on 10.12+\n  CFRunLoopRef runLoop = CFRunLoopGetMain();\n  CFRunLoopPerformBlock(runLoop, kCFRunLoopCommonModes, ^{\n    @autoreleasepool {\n      block();\n    }\n  });\n  CFRunLoopWakeUp(runLoop);\n}\n\n@implementation NSMutableAttributedString (GIAppKit)\n\n- (void)appendString:(NSString*)string withAttributes:(NSDictionary*)attributes {\n  if (string.length) {\n    NSInteger length = self.length;\n    [self replaceCharactersInRange:NSMakeRange(length, 0) withString:string];\n    if (attributes) {\n      [self setAttributes:attributes range:NSMakeRange(length, self.length - length)];\n    }\n  }\n}\n\n@end\n\n@implementation NSAlert (GIAppKit)\n\n- (void)setType:(GIAlertType)type {\n  switch (type) {\n    case kGIAlertType_Note:\n      self.icon = [[NSBundle bundleForClass:[GILayoutManager class]] imageForResource:@\"icon_alert_note\"];\n      break;  // TODO: Image is not cached\n    case kGIAlertType_Caution:\n      self.icon = [[NSBundle bundleForClass:[GILayoutManager class]] imageForResource:@\"icon_alert_caution\"];\n      break;  // TODO: Image is not cached\n    case kGIAlertType_Stop:\n    case kGIAlertType_Danger:\n      self.icon = [[NSBundle bundleForClass:[GILayoutManager class]] imageForResource:@\"icon_alert_stop\"];\n      break;  // TODO: Image is not cached\n  }\n}\n\n@end\n\n@implementation NSView (GIAppKit)\n\n- (void)replaceWithView:(NSView*)view {\n  XLOG_DEBUG_CHECK(self.superview);\n  view.frame = self.frame;\n  view.autoresizingMask = self.autoresizingMask;\n  [self.superview replaceSubview:self with:view];\n}\n\n- (NSImage*)takeSnapshot {\n  NSBitmapImageRep* rep = [self bitmapImageRepForCachingDisplayInRect:self.bounds];\n  [self cacheDisplayInRect:self.bounds toBitmapImageRep:rep];\n  NSImage* image = [[NSImage alloc] initWithSize:rep.size];\n  [image addRepresentation:rep];\n  return image;\n}\n\n@end\n\n@implementation NSMenu (GIAppKit)\n\n- (NSMenuItem*)addItemWithTitle:(NSString*)title block:(dispatch_block_t)block {\n  return [self addItemWithTitle:title keyEquivalent:0 modifierMask:0 block:block];\n}\n\n- (void)_blockAction:(NSMenuItem*)sender {\n  dispatch_block_t block = sender.representedObject;\n  block();\n}\n\n- (NSMenuItem*)addItemWithTitle:(NSString*)title keyEquivalent:(unichar)code modifierMask:(NSUInteger)mask block:(dispatch_block_t)block {\n  NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:title action:NULL keyEquivalent:(code ? [NSString stringWithCharacters:&code length:1] : @\"\")];\n  if (block) {\n    item.target = self;\n    item.action = @selector(_blockAction:);\n    item.representedObject = [block copy];\n  }\n  item.keyEquivalentModifierMask = mask;\n  [self addItem:item];\n  return item;\n}\n\n@end\n\n@implementation GIFlippedView\n\n- (BOOL)isFlipped {\n  return YES;\n}\n\n@end\n\n@implementation GITextView\n\n- (void)doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertTab:)) {\n    [self.window selectNextKeyView:nil];\n    return;\n  }\n  if (selector == @selector(insertBacktab:)) {\n    [self.window selectPreviousKeyView:nil];\n    return;\n  }\n  [super doCommandBySelector:selector];\n}\n\n@end\n\n@implementation GICommitMessageView\n\n- (void)dealloc {\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GIUserDefaultKey_FontSize context:(__bridge void*)[GICommitMessageView class]];\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GICommitMessageViewUserDefaultKey_EnableSpellChecking context:(__bridge void*)[GICommitMessageView class]];\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GICommitMessageViewUserDefaultKey_ShowMargins context:(__bridge void*)[GICommitMessageView class]];\n  [[NSUserDefaults standardUserDefaults] removeObserver:self forKeyPath:GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters context:(__bridge void*)[GICommitMessageView class]];\n}\n\n- (void)awakeFromNib {\n  [super awakeFromNib];\n\n  [self updateFont];\n\n  NSUserDefaults* defaults = NSUserDefaults.standardUserDefaults;\n  self.continuousSpellCheckingEnabled = [defaults boolForKey:GICommitMessageViewUserDefaultKey_EnableSpellChecking];\n  self.automaticSpellingCorrectionEnabled = NO;  // Don't trust IB\n  self.grammarCheckingEnabled = NO;  // Don't trust IB\n  self.automaticLinkDetectionEnabled = NO;  // Don't trust IB\n  self.automaticQuoteSubstitutionEnabled = NO;  // Don't trust IB\n  self.automaticDashSubstitutionEnabled = NO;  // Don't trust IB\n  self.automaticDataDetectionEnabled = NO;  // Don't trust IB\n  self.automaticTextReplacementEnabled = NO;  // Don't trust IB\n  self.smartInsertDeleteEnabled = YES;  // Don't trust IB\n  self.textColor = NSColor.textColor;  // Don't trust IB\n  self.backgroundColor = NSColor.textBackgroundColor;  // Don't trust IB\n  [self.textContainer replaceLayoutManager:[[GILayoutManager alloc] init]];\n\n  self.layoutManager.showsInvisibleCharacters = [defaults boolForKey:GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters];\n\n  [defaults addObserver:self forKeyPath:GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters options:0 context:(__bridge void*)[GICommitMessageView class]];\n  [defaults addObserver:self forKeyPath:GICommitMessageViewUserDefaultKey_ShowMargins options:0 context:(__bridge void*)[GICommitMessageView class]];\n  [defaults addObserver:self forKeyPath:GICommitMessageViewUserDefaultKey_EnableSpellChecking options:0 context:(__bridge void*)[GICommitMessageView class]];\n  [defaults addObserver:self forKeyPath:GIUserDefaultKey_FontSize options:0 context:(__bridge void*)[GICommitMessageView class]];\n}\n\n- (void)updateFont {\n  // To match the original design, the commit message font should be 10% larger than the diff view font.\n  self.font = [NSFont userFixedPitchFontOfSize:round(1.1 * GIFontSize())];\n  [self setNeedsDisplay:YES];\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  [super drawRect:dirtyRect];\n\n  if ([[NSUserDefaults standardUserDefaults] boolForKey:GICommitMessageViewUserDefaultKey_ShowMargins]) {\n    NSRect bounds = self.bounds;\n    CGFloat offset = self.textContainerOrigin.x + self.textContainerInset.width + self.textContainer.lineFragmentPadding;\n    CGFloat charWidth = [@\"x\" sizeWithAttributes:@{\n                          NSFontAttributeName : self.font\n                        }]\n                            .width;\n    CGContextRef context = [[NSGraphicsContext currentContext] CGContext];\n\n    CGContextSaveGState(context);\n\n    CGFloat x1 = floor(offset + kSummaryMaxWidth * charWidth) + 0.5;\n    const CGFloat pattern1[] = {2, 4};\n    CGContextSetLineDash(context, 0, pattern1, 2);\n    CGContextSetStrokeColorWithColor(context, NSColor.tertiaryLabelColor.CGColor);\n    CGContextMoveToPoint(context, x1, 0);\n    CGContextAddLineToPoint(context, x1, bounds.size.height);\n    CGContextStrokePath(context);\n\n    CGFloat x2 = floor(offset + kBodyMaxWidth * charWidth) + 0.5;\n    const CGFloat pattern2[] = {4, 2};\n    CGContextSetLineDash(context, 0, pattern2, 2);\n    CGContextSetStrokeColorWithColor(context, NSColor.tertiaryLabelColor.CGColor);\n    CGContextMoveToPoint(context, x2, 0);\n    CGContextAddLineToPoint(context, x2, bounds.size.height);\n    CGContextStrokePath(context);\n\n    CGContextRestoreGState(context);\n  }\n}\n\n// WARNING: This is called *several* times when the default has been changed\n- (void)observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void*)context {\n  if (context == (__bridge void*)[GICommitMessageView class]) {\n    if ([keyPath isEqualToString:GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters]) {\n      self.layoutManager.showsInvisibleCharacters = [[NSUserDefaults standardUserDefaults] boolForKey:GICommitMessageViewUserDefaultKey_ShowInvisibleCharacters];\n    } else if ([keyPath isEqualToString:GICommitMessageViewUserDefaultKey_ShowMargins]) {\n      [self setNeedsDisplay:YES];\n    } else if ([keyPath isEqualToString:GICommitMessageViewUserDefaultKey_EnableSpellChecking]) {\n      BOOL flag = [[NSUserDefaults standardUserDefaults] boolForKey:GICommitMessageViewUserDefaultKey_EnableSpellChecking];\n      if (flag != self.continuousSpellCheckingEnabled) {\n        self.continuousSpellCheckingEnabled = flag;\n        [self setNeedsDisplay:YES];  // TODO: Why is this needed to refresh?\n      }\n    } else if ([keyPath isEqualToString:GIUserDefaultKey_FontSize]) {\n      [self updateFont];\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  } else {\n    [super observeValueForKeyPath:keyPath ofObject:object change:change context:context];\n  }\n}\n\n@end\n\n@implementation GITableCellView\n@end\n\n@implementation GITableView\n\n- (void)awakeFromNib {\n  [super awakeFromNib];\n  self.gridColor = NSColor.gitUpSeparatorColor;\n}\n\n- (BOOL)validateProposedFirstResponder:(NSResponder*)responder forEvent:(NSEvent*)event {\n  return YES;\n}\n\n// NSTableView built-in fallback for tab key when not editable cell is around is to change the first responder to the next key view directly without using -selectNextKeyView:\n- (void)keyDown:(NSEvent*)event {\n  if (event.keyCode == kGIKeyCode_Tab) {\n    if (event.modifierFlags & NSEventModifierFlagShift) {\n      [self.window selectPreviousKeyView:nil];\n    } else {\n      [self.window selectNextKeyView:nil];\n    }\n  } else {\n    [super keyDown:event];\n  }\n}\n\n@end\n\n@interface GILayoutManager () <NSLayoutManagerDelegate>\n@end\n\n@implementation GILayoutManager\n\n- (instancetype)init {\n  self = [super init];\n  if (self) {\n    self.delegate = self;\n  }\n\n  return self;\n}\n\n- (NSUInteger)layoutManager:(NSLayoutManager*)layoutManager shouldGenerateGlyphs:(const CGGlyph*)glyphs properties:(const NSGlyphProperty*)props characterIndexes:(const NSUInteger*)charIndexes font:(NSFont*)aFont forGlyphRange:(NSRange)glyphRange {\n  XLOG_DEBUG_CHECK([aFont.fontName isEqualToString:@\"Menlo-Regular\"]);\n\n  if (layoutManager.showsInvisibleCharacters) {\n    NSTextStorage* textStorage = layoutManager.textStorage;\n    size_t glyphSize = sizeof(CGGlyph) * glyphRange.length;\n    size_t propertySize = sizeof(NSGlyphProperty) * glyphRange.length;\n    CGGlyph* replacementGlyphs = malloc(glyphSize);\n    NSGlyphProperty* replacementProperties = malloc(propertySize);\n    memcpy(replacementGlyphs, glyphs, glyphSize);\n    memcpy(replacementProperties, props, propertySize);\n    NSString* string = textStorage.string;\n\n    NSCharacterSet* spaceCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@\" \"];\n    NSCharacterSet* newlineCharacterSet = [NSCharacterSet characterSetWithCharactersInString:@\"\\n\"];\n\n    NSUInteger i = 0;\n    while (i < glyphRange.length) {\n      NSUInteger characterIndex = charIndexes[i];\n      unichar character = [string characterAtIndex:characterIndex];\n\n      if ([spaceCharacterSet characterIsMember:character]) {\n        replacementGlyphs[i] = (CGGlyph)[aFont glyphWithName:@\"periodcentered\"];\n\n      } else if ([newlineCharacterSet characterIsMember:character]) {\n        replacementGlyphs[i] = (CGGlyph)[aFont glyphWithName:@\"carriagereturn\"];\n        replacementProperties[i] = 0;\n      }\n\n      i += [string rangeOfComposedCharacterSequenceAtIndex:characterIndex].length;\n    }\n\n    [self setGlyphs:replacementGlyphs properties:replacementProperties characterIndexes:charIndexes font:aFont forGlyphRange:glyphRange];\n\n    free(replacementGlyphs);\n    free(replacementProperties);\n  } else {\n    [self setGlyphs:glyphs properties:props characterIndexes:charIndexes font:aFont forGlyphRange:glyphRange];\n  }\n\n  return glyphRange.length;\n}\n\n- (NSControlCharacterAction)layoutManager:(NSLayoutManager*)layoutManager shouldUseAction:(NSControlCharacterAction)action forControlCharacterAtIndex:(NSUInteger)characterIndex {\n  if (layoutManager.showsInvisibleCharacters && action & NSControlCharacterActionLineBreak) {\n    [layoutManager setNotShownAttribute:NO forGlyphAtIndex:[layoutManager glyphIndexForCharacterAtIndex:characterIndex]];\n  }\n\n  return action;\n}\n\n@end\n\n@implementation GIDualSplitView\n\n- (instancetype)initWithFrame:(NSRect)frameRect {\n  if ((self = [super initWithFrame:frameRect])) {\n    self.delegate = self;\n  }\n  return self;\n}\n\n- (instancetype)initWithCoder:(NSCoder*)coder {\n  if ((self = [super initWithCoder:coder])) {\n    self.delegate = self;\n  }\n  return self;\n}\n\n- (CGFloat)splitView:(NSSplitView*)splitView constrainMinCoordinate:(CGFloat)proposedMinimumPosition ofSubviewAt:(NSInteger)dividerIndex {\n  return _minSize1;\n}\n\n- (CGFloat)splitView:(NSSplitView*)splitView constrainMaxCoordinate:(CGFloat)proposedMaximumPosition ofSubviewAt:(NSInteger)dividerIndex {\n  return (splitView.vertical ? splitView.bounds.size.width : splitView.bounds.size.height) - _minSize2;\n}\n\n// See http://stackoverflow.com/a/30494691/463432\n- (void)splitView:(NSSplitView*)splitView resizeSubviewsWithOldSize:(NSSize)oldSize {\n  [splitView adjustSubviews];\n  // Take the min size constraints into account.\n  NSView* view = splitView.subviews.firstObject;\n  [splitView setPosition:(splitView.vertical ? view.frame.size.width : view.frame.size.height) ofDividerAtIndex:0];\n}\n\n@end\n\n@implementation NSAppearance (GIAppearance)\n\n- (BOOL)matchesDarkAppearance {\n  return [[self bestMatchFromAppearancesWithNames:@[ NSAppearanceNameAqua, NSAppearanceNameDarkAqua ]] isEqual:NSAppearanceNameDarkAqua];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIColorView.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\nIB_DESIGNABLE\n@interface GIColorView : NSView\n@property(nonatomic, strong) IBInspectable NSColor* backgroundColor;\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIColorView.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIColorView.h\"\n\n@implementation GIColorView\n\n- (BOOL)wantsUpdateLayer {\n  return YES;\n}\n\n- (void)updateLayer {\n  self.layer.backgroundColor = self.backgroundColor.CGColor;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GICustomToolbarItem.h",
    "content": "//  Copyright (C) 2015-2020 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Cocoa/Cocoa.h>\n\n// Performs validation of a custom control view, or any one of two control\n// children.\n@interface GICustomToolbarItem : NSToolbarItem\n@property(nonatomic, weak) IBOutlet NSControl* primaryControl;\n@property(nonatomic, weak) IBOutlet NSControl* secondaryControl;\n+ (void)validateAsUserInterfaceItem:(id)item;\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GICustomToolbarItem.m",
    "content": "//  Copyright (C) 2015-2020 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GICustomToolbarItem.h\"\n\n@implementation GICustomToolbarItem\n\n- (void)setEnabled:(BOOL)enabled {\n  [super setEnabled:enabled];\n  self.primaryControl.enabled = enabled;\n  self.secondaryControl.enabled = enabled;\n}\n\n- (void)validate {\n  [GICustomToolbarItem validateAsUserInterfaceItem:self];\n  if (self.enabled) {\n    [GICustomToolbarItem validateAsUserInterfaceItem:self.primaryControl];\n    [GICustomToolbarItem validateAsUserInterfaceItem:self.secondaryControl];\n  }\n}\n\n+ (void)validateAsUserInterfaceItem:(id)sender {\n  SEL action = [sender action];\n  if (!action) return;\n  id target = [sender target];\n  id validator = [NSApp targetForAction:action to:target from:sender];\n  if (!validator || ![validator respondsToSelector:action]) {\n    [sender setEnabled:NO];\n  } else if ([validator respondsToSelector:@selector(validateUserInterfaceItem:)]) {\n    [sender setEnabled:[validator validateUserInterfaceItem:(id)sender]];\n  } else {\n    [sender setEnabled:YES];\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GILaunchServicesLocator.h",
    "content": "//\n//  GILaunchServicesLocator.h\n//  GitUpKit (OSX)\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import <Foundation/Foundation.h>\nNS_ASSUME_NONNULL_BEGIN\n// Settings\nextern NSString* const GIPreferences_DiffTool;\nextern NSString* const GIPreferences_MergeTool;\nextern NSString* const GIPreferences_TerminalTool;\n\n// DiffTool and MergeTool\nextern NSString* const GIPreferences_DiffMergeTool_FileMerge;\nextern NSString* const GIPreferences_DiffMergeTool_Kaleidoscope;\nextern NSString* const GIPreferences_DiffMergeTool_BeyondCompare;\nextern NSString* const GIPreferences_DiffMergeTool_P4Merge;\nextern NSString* const GIPreferences_DiffMergeTool_GitTool;\nextern NSString* const GIPreferences_DiffMergeTool_DiffMerge;\n\n// TerminalTool\nextern NSString* const GIPreferences_TerminalTool_Terminal;\nextern NSString* const GIPreferences_TerminalTool_iTerm;\n\n@interface GILaunchServicesLocator : NSObject\n#pragma mark - Setup\n+ (void)setup;\n\n#pragma mark - Installed Apps\n+ (NSDictionary*)installedAppsDictionary;\n+ (BOOL)hasInstalledApplicationForDisplayName:(NSString*)displayName;\n+ (BOOL)hasInstalledApplicationForBundleIdentifier:(NSString*)bundleIdentifier;\n\n#pragma mark - Diff Tools Supplement\n@property(nonatomic, copy, class) NSString* diffTemporaryDirectoryPath;\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUpKit/Utilities/GILaunchServicesLocator.m",
    "content": "//\n//  GILaunchServicesLocator.m\n//  GitUpKit (OSX)\n//\n//  Created by Dmitry Lobanov on 08.10.2019.\n//\n\n#import \"GILaunchServicesLocator.h\"\n#import \"XLFacilityMacros.h\"\n\n// Settings\nNSString* const GIPreferences_DiffTool = @\"GIPreferences_DiffTool\";\nNSString* const GIPreferences_MergeTool = @\"GIPreferences_MergeTool\";\nNSString* const GIPreferences_TerminalTool = @\"GIPreferences_TerminalTool\";\n\n// DiffMerge / Entries\nNSString* const GIPreferences_DiffMergeTool_FileMerge = @\"FileMerge\";\nNSString* const GIPreferences_DiffMergeTool_Kaleidoscope = @\"Kaleidoscope\";\nNSString* const GIPreferences_DiffMergeTool_BeyondCompare = @\"Beyond Compare\";\nNSString* const GIPreferences_DiffMergeTool_P4Merge = @\"P4Merge\";\nNSString* const GIPreferences_DiffMergeTool_GitTool = @\"Git Tool\";\nNSString* const GIPreferences_DiffMergeTool_DiffMerge = @\"DiffMerge\";\n\n// TerminalTool / Entries\nNSString* const GIPreferences_TerminalTool_Terminal = @\"Terminal\";\nNSString* const GIPreferences_TerminalTool_iTerm = @\"iTerm\";\n\n// TerminalTool/iTerm\nstatic NSString* const GIPreferences_TerminalTool_iTerm_Key = @\"GIPreferences_TerminalTool_iTerm\";\nstatic NSString* const GIPreferences_TerminalTool_iTerm_BundleIdentifier = @\"com.googlecode.iterm2\";\n\n// Diff Tools Supplement\nstatic NSString* _diffTemporaryDirectoryPath = nil;\n\n// NOTE: Actually, it is an extension of DisplayNames enum.\n// It contains methods\n// func bundleIdentfier() -> String?\n// func standardDefaultsKey() -> String?\n@interface GILaunchServicesLocatorHelper : NSObject\n+ (nullable NSString*)bundleIdentifierForDisplayName:(NSString*)displayName;\n+ (nullable NSString*)standardDefaultsKeyForDisplayName:(NSString*)displayName;\n@end\n\n@implementation GILaunchServicesLocatorHelper\n+ (nullable NSString*)bundleIdentifierForDisplayName:(NSString*)displayName {\n  if ([displayName isEqualToString:GIPreferences_TerminalTool_iTerm]) {\n    return GIPreferences_TerminalTool_iTerm_BundleIdentifier;\n  }\n  return nil;\n}\n+ (nullable NSString*)standardDefaultsKeyForDisplayName:(NSString*)displayName {\n  if ([displayName isEqualToString:GIPreferences_TerminalTool_iTerm]) {\n    return GIPreferences_TerminalTool_iTerm_Key;\n  }\n  return nil;\n}\n@end\n\n@import CoreServices;\n@implementation GILaunchServicesLocator\n#pragma mark - Setup\n+ (void)setup {\n  NSDictionary* defaults = @{\n    GIPreferences_DiffTool : GIPreferences_DiffMergeTool_FileMerge,\n    GIPreferences_MergeTool : GIPreferences_DiffMergeTool_FileMerge,\n    GIPreferences_TerminalTool : GIPreferences_TerminalTool_Terminal,\n  };\n  [[NSUserDefaults standardUserDefaults] registerDefaults:defaults];\n\n  NSDictionary* installedApps = [GILaunchServicesLocator installedAppsDictionary];\n  [[NSUserDefaults standardUserDefaults] registerDefaults:installedApps];\n\n  if (_diffTemporaryDirectoryPath == nil) {\n    _diffTemporaryDirectoryPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSBundle mainBundle] bundleIdentifier]];\n    [[NSFileManager defaultManager] removeItemAtPath:_diffTemporaryDirectoryPath error:NULL];\n    if (![[NSFileManager defaultManager] createDirectoryAtPath:_diffTemporaryDirectoryPath withIntermediateDirectories:YES attributes:nil error:NULL]) {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  }\n}\n\n#pragma mark - Installed Apps\n+ (NSDictionary*)installedAppsDictionary {\n  NSMutableDictionary* dictionary = [NSMutableDictionary new];\n  NSArray* apps = @[\n    GIPreferences_TerminalTool_iTerm\n  ];\n  for (NSString* app in apps) {\n    NSString* key = [GILaunchServicesLocatorHelper standardDefaultsKeyForDisplayName:app];\n    if (key != nil) {\n      dictionary[key] = @([self hasInstalledApplicationForDisplayName:app]);\n    }\n  }\n  return [dictionary copy];\n}\n+ (BOOL)hasInstalledApplicationForDisplayName:(NSString*)displayName {\n  return [self hasInstalledApplicationForBundleIdentifier:[GILaunchServicesLocatorHelper bundleIdentifierForDisplayName:displayName]];\n}\n+ (BOOL)hasInstalledApplicationForBundleIdentifier:(NSString*)bundleIdentifier {\n  if (bundleIdentifier == nil) {\n    return NO;\n  }\n  CFErrorRef error = NULL;\n  NSArray* applications = CFBridgingRelease(LSCopyApplicationURLsForBundleIdentifier((__bridge CFStringRef)bundleIdentifier, &error));\n  if (error) {\n    // TODO: Handle error.\n    CFRelease(error);\n    return NO;\n  }\n  return applications.count > 0;\n}\n\n#pragma mark - Diff Tools Supplement\n+ (void)setDiffTemporaryDirectoryPath:(NSString*)diffTemporaryDirectoryPath {\n  _diffTemporaryDirectoryPath = diffTemporaryDirectoryPath;\n}\n+ (NSString*)diffTemporaryDirectoryPath {\n  return _diffTemporaryDirectoryPath;\n}\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GILinkButton.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\nIB_DESIGNABLE\n@interface GILinkButton : NSControl\n@property(nonatomic) NSTextAlignment textAlignment;  // Using @alignment from NSControl doesn't work\n@property(nonatomic, strong) NSFont* textFont;  // Using @font from NSControl doesn't work\n@property(nonatomic, strong) IBInspectable NSString* link;\n@property(nonatomic, strong) IBInspectable NSColor* linkColor;\n@property(nonatomic, strong) IBInspectable NSColor* alternateLinkColor;\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GILinkButton.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GILinkButton.h\"\n\n@implementation GILinkButton {\n  BOOL _highlighted;\n}\n\n- (void)_initialize {\n  _textAlignment = NSTextAlignmentCenter;\n  _textFont = [NSFont systemFontOfSize:[NSFont systemFontSize]];\n  _linkColor = [NSColor darkGrayColor];\n  _alternateLinkColor = [NSColor blackColor];\n}\n\n- (instancetype)initWithFrame:(NSRect)frameRect {\n  if ((self = [super initWithFrame:frameRect])) {\n    [self _initialize];\n  }\n  return self;\n}\n\n- (instancetype)initWithCoder:(NSCoder*)coder {\n  if ((self = [super initWithCoder:coder])) {\n    [self _initialize];\n  }\n  return self;\n}\n\n- (void)mouseDown:(NSEvent*)event {\n  NSPoint location = [self convertPoint:event.locationInWindow fromView:nil];\n  if (NSPointInRect(location, self.bounds)) {\n    _highlighted = YES;\n    [self setNeedsDisplay:YES];\n  }\n}\n\n- (void)mouseDragged:(NSEvent*)event {\n  NSPoint location = [self convertPoint:event.locationInWindow fromView:nil];\n  _highlighted = NSPointInRect(location, self.bounds);\n  [self setNeedsDisplay:YES];\n}\n\n- (void)mouseUp:(NSEvent*)event {\n  if (_highlighted) {\n    [NSApp sendAction:self.action to:self.target from:self];\n    _highlighted = NO;\n    [self setNeedsDisplay:YES];\n  }\n}\n\n- (void)drawRect:(NSRect)dirtyRect {\n  NSMutableParagraphStyle* style = [[NSMutableParagraphStyle alloc] init];\n  style.alignment = _textAlignment;\n  NSMutableDictionary* attributes = [[NSMutableDictionary alloc] init];\n  [attributes setObject:style forKey:NSParagraphStyleAttributeName];\n  [attributes setValue:_textFont forKey:NSFontAttributeName];\n  [attributes setValue:(_highlighted ? _alternateLinkColor : _linkColor) forKey:NSForegroundColorAttributeName];\n  [_link drawInRect:self.bounds withAttributes:attributes];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIModalView.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <AppKit/AppKit.h>\n\n@interface GIModalView : NSView\n- (void)presentContentView:(NSView*)view withCompletionHandler:(dispatch_block_t)handler;\n- (void)dismissContentViewWithCompletionHandler:(dispatch_block_t)handler;\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIModalView.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <QuartzCore/QuartzCore.h>\n#import <sys/sysctl.h>\n\n#import \"GIModalView.h\"\n\n#import \"XLFacilityMacros.h\"\n#import \"NSColor+GINamedColors.h\"\n\n#define __ENABLE_BLUR__ 0\n\n#if __ENABLE_BLUR__\n#define kBlurRadius 20.0\n#define kAnimationDuration 0.2\n#define kBlurName @\"blur\"\n#define kBlurKeyPath @\"backgroundFilters.\" kBlurName \".inputRadius\"\n#endif\n\n@implementation GIModalView {\n  BOOL _useBackgroundFilters;\n}\n\n// See https://developer.apple.com/library/mac/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html\n- (void)_initialize {\n  self.wantsLayer = YES;\n\n#if __ENABLE_BLUR__\n  size_t size;\n  if (sysctlbyname(\"hw.model\", NULL, &size, NULL, 0) == 0) {\n    char* machine = malloc(size);\n    if (sysctlbyname(\"hw.model\", machine, &size, NULL, 0) == 0) {\n      if (strncmp(machine, \"MacBookAir\", 10)) {  // MBA 2013 hangs for 1-2 seconds the first time the blur effect is used in the app\n        _useBackgroundFilters = YES;\n      }\n    }\n    free(machine);\n  }\n\n  if (_useBackgroundFilters) {\n    CIFilter* blurFilter = [CIFilter filterWithName:@\"CIGaussianBlur\"];\n    blurFilter.name = kBlurName;\n    [blurFilter setDefaults];\n    [blurFilter setValue:@(0.0) forKey:@\"inputRadius\"];\n    self.backgroundFilters = @[ blurFilter ];\n  }\n#endif\n}\n\n- (instancetype)initWithFrame:(NSRect)frameRect {\n  if ((self = [super initWithFrame:frameRect])) {\n    [self _initialize];\n  }\n  return self;\n}\n\n- (instancetype)initWithCoder:(NSCoder*)coder {\n  if ((self = [super initWithCoder:coder])) {\n    [self _initialize];\n  }\n  return self;\n}\n\n- (void)presentContentView:(NSView*)view withCompletionHandler:(dispatch_block_t)handler {\n  XLOG_DEBUG_CHECK(self.subviews.count == 0);\n\n  NSRect bounds = self.bounds;\n  NSRect frame = view.frame;\n  view.frame = NSMakeRect(round((bounds.size.width - frame.size.width) / 2), round((bounds.size.height - frame.size.height) / 2), frame.size.width, frame.size.height);\n  view.autoresizingMask = NSViewMinXMargin | NSViewMaxXMargin | NSViewMinYMargin | NSViewMaxYMargin;\n  view.wantsLayer = YES;\n  view.layer.borderWidth = 1.0;\n  view.layer.cornerRadius = 5.0;\n\n#if __ENABLE_BLUR__\n  if (_useBackgroundFilters) {\n    [self.layer setValue:@(kBlurRadius) forKeyPath:kBlurKeyPath];\n    CABasicAnimation* animation = [CABasicAnimation animation];\n    animation.keyPath = kBlurKeyPath;\n    animation.fromValue = @(0.0);\n    animation.toValue = nil;\n    animation.duration = kAnimationDuration;\n    animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];\n    [self.layer addAnimation:animation forKey:nil];\n\n    [NSAnimationContext beginGrouping];\n    [[NSAnimationContext currentContext] setDuration:kAnimationDuration];\n    [[NSAnimationContext currentContext] setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]];\n    [[NSAnimationContext currentContext] setCompletionHandler:^{\n      if (handler) {\n        handler();\n      }\n    }];\n    [self.animator addSubview:view];\n    [NSAnimationContext endGrouping];\n  } else\n#endif\n  {\n    [self addSubview:view];\n    if (handler) {\n      dispatch_async(dispatch_get_main_queue(), handler);\n    }\n  }\n}\n\n- (void)dismissContentViewWithCompletionHandler:(dispatch_block_t)handler {\n  XLOG_DEBUG_CHECK(self.subviews.count == 1);\n\n  NSView* view = self.subviews.firstObject;\n#if __ENABLE_BLUR__\n  if (_useBackgroundFilters) {\n    [NSAnimationContext beginGrouping];\n    [[NSAnimationContext currentContext] setDuration:kAnimationDuration];\n    [[NSAnimationContext currentContext] setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut]];\n    [[NSAnimationContext currentContext] setCompletionHandler:^{\n      view.wantsLayer = NO;\n      if (handler) {\n        handler();\n      }\n    }];\n    [view.animator removeFromSuperviewWithoutNeedingDisplay];\n    [NSAnimationContext endGrouping];\n\n    [self.layer setValue:@(0.0) forKeyPath:kBlurKeyPath];\n    CABasicAnimation* animation = [CABasicAnimation animation];\n    animation.keyPath = kBlurKeyPath;\n    animation.fromValue = @(kBlurRadius);\n    animation.toValue = nil;\n    animation.duration = kAnimationDuration;\n    animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];\n    [self.layer addAnimation:animation forKey:nil];\n  } else\n#endif\n  {\n    [view removeFromSuperviewWithoutNeedingDisplay];\n    view.wantsLayer = NO;\n    self.layer.backgroundColor = nil;\n    if (handler) {\n      dispatch_async(dispatch_get_main_queue(), handler);\n    }\n  }\n}\n\n- (void)updateLayer {\n  NSView* view = self.subviews.firstObject;\n  if (!view) {\n    return;\n  }\n\n  view.layer.borderColor = NSColor.gitUpSeparatorColor.CGColor;\n\n#if __ENABLE_BLUR__\n  if (!_useBackgroundFilters)\n#endif\n  {\n    view.layer.backgroundColor = NSColor.windowBackgroundColor.CGColor;\n    // This is for dimming so deliberately does not adapt for dark mode.\n    self.layer.backgroundColor = [[NSColor colorWithDeviceRed:0.0 green:0.0 blue:0.0 alpha:0.4] CGColor];\n  }\n}\n\n// Prevent events bubbling to ancestor views - TODO: Is there a better way?\n- (void)mouseDown:(NSEvent*)event {\n}\n- (void)rightMouseDown:(NSEvent*)event {\n}\n- (void)otherMouseDown:(NSEvent*)event {\n}\n- (void)mouseUp:(NSEvent*)event {\n}\n- (void)rightMouseUp:(NSEvent*)event {\n}\n- (void)otherMouseUp:(NSEvent*)event {\n}\n- (void)mouseMoved:(NSEvent*)event {\n}\n- (void)mouseDragged:(NSEvent*)event {\n}\n- (void)scrollWheel:(NSEvent*)event {\n}\n- (void)rightMouseDragged:(NSEvent*)event {\n}\n- (void)otherMouseDragged:(NSEvent*)event {\n}\n- (void)mouseEntered:(NSEvent*)event {\n}\n- (void)mouseExited:(NSEvent*)event {\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIViewController+Utilities.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n#import \"GILaunchServicesLocator.h\"\n\n@protocol GCMergeConflictResolver;\n\n@class GCCommit, GCIndex, GCDiffDelta, GCIndexConflict, GCRepository;\n\n@interface GIViewController (Utilities)\n- (void)discardAllFiles;  // Prompts user\n- (void)stageAllFiles;\n- (void)unstageAllFiles;\n\n- (void)stageSubmoduleAtPath:(NSString*)path;\n- (void)unstageSubmoduleAtPath:(NSString*)path;\n- (BOOL)discardSubmoduleAtPath:(NSString*)path resetIndex:(BOOL)resetIndex error:(NSError**)error;\n- (void)discardSubmoduleAtPath:(NSString*)path resetIndex:(BOOL)resetIndex;  // Prompts user\n\n- (void)stageAllChangesForFile:(NSString*)path;\n- (void)stageAllChangesForFiles:(NSArray<NSString*>*)paths;\n- (void)stageSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines;\n- (void)unstageAllChangesForFile:(NSString*)path;\n- (void)unstageAllChangesForFiles:(NSArray<NSString*>*)paths;\n- (void)unstageSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines;\n\n- (BOOL)discardAllChangesForFile:(NSString*)path resetIndex:(BOOL)resetIndex error:(NSError**)error;\n- (BOOL)discardAllChangesForFiles:(NSArray<NSString*>*)paths resetIndex:(BOOL)resetIndex error:(NSError**)error;\n- (void)discardAllChangesForFile:(NSString*)path resetIndex:(BOOL)resetIndex;  // Prompts user\n- (BOOL)discardSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines resetIndex:(BOOL)resetIndex error:(NSError**)error;\n- (void)discardSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines resetIndex:(BOOL)resetIndex;  // Prompts user\n\n- (void)deleteUntrackedFile:(NSString*)path;  // Prompts user\n\n- (void)restoreFile:(NSString*)path toCommit:(GCCommit*)commit;  // Prompts user\n- (void)restoreFile:(NSString*)path toBeforeCommit:(GCCommit*)commit;  // Prompts user\n\n- (void)showFileInFinder:(NSString*)path;\n- (void)openFileWithDefaultEditor:(NSString*)path;\n- (void)openSubmoduleWithApp:(NSString*)path;\n- (void)viewDeltasInDiffTool:(NSArray*)deltas;\n- (void)resolveConflictInMergeTool:(GCIndexConflict*)conflict;\n- (void)markConflictAsResolved:(GCIndexConflict*)conflict;\n\n- (GCCommit*)resolveConflictsWithResolver:(id<GCMergeConflictResolver>)resolver\n                                    index:(GCIndex*)index\n                                ourCommit:(GCCommit*)ourCommit\n                              theirCommit:(GCCommit*)theirCommit\n                            parentCommits:(NSArray*)parentCommits\n                                  message:(NSString*)message\n                                    error:(NSError**)error;\n\n- (NSMenu*)contextualMenuForDelta:(GCDiffDelta*)delta withConflict:(GCIndexConflict*)conflict allowOpen:(BOOL)allowOpen;\n- (BOOL)handleKeyDownEvent:(NSEvent*)event forSelectedDeltas:(NSArray*)deltas withConflicts:(NSDictionary*)conflicts allowOpen:(BOOL)allowOpen;\n\n- (void)launchDiffToolWithCommit:(GCCommit*)commit otherCommit:(GCCommit*)otherCommit;\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIViewController+Utilities.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIViewController+Utilities.h\"\n#import \"GIWindowController.h\"\n\n#import \"GCCore.h\"\n#import \"GCRepository+Index.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"GCLiveRepository+Conflicts.h\"\n#import \"GIAppKit.h\"\n#import \"XLFacilityMacros.h\"\n\n#define kOpenDiffPath @\"/usr/bin/opendiff\"\n#define kKSDiffPath @\"/usr/local/bin/ksdiff\"\n#define kBComparePath @\"/usr/local/bin/bcompare\"\n#define kP4MergePath @\"/Applications/p4merge.app/Contents/Resources/launchp4merge\"\n#define kDiffMergePath @\"/Applications/DiffMerge.app/Contents/Resources/diffmerge.sh\"\n\n@implementation GIViewController (Utilities)\n\n- (void)discardAllFiles {\n  [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                 title:NSLocalizedString(@\"Are you sure you want to discard changes in all working directory files?\", nil)\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Discard All\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* error;\n                                   if ([self.repository syncWorkingDirectoryWithIndex:&error]) {\n                                     [self.repository notifyWorkingDirectoryChanged];\n                                   } else {\n                                     [self presentError:error];\n                                   }\n                                 }];\n}\n\n- (void)stageAllFiles {\n  NSError* error;\n  if ([self.repository syncIndexWithWorkingDirectory:&error]) {\n    [self.repository notifyRepositoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)unstageAllFiles {\n  NSError* error;\n  if ([self.repository resetIndexToHEAD:&error]) {\n    [self.repository notifyRepositoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)stageSubmoduleAtPath:(NSString*)path {\n  NSError* error;\n  GCSubmodule* submodule = [self.repository lookupSubmoduleWithName:path error:&error];\n  if (submodule && [self.repository addSubmoduleToRepositoryIndex:submodule error:&error]) {\n    [self.repository notifyRepositoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)unstageSubmoduleAtPath:(NSString*)path {\n  NSError* error;\n  if ([self.repository resetFileInIndexToHEAD:path error:&error]) {\n    [self.repository notifyRepositoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (BOOL)discardSubmoduleAtPath:(NSString*)path resetIndex:(BOOL)resetIndex error:(NSError**)error {\n  GCSubmodule* submodule = [self.repository lookupSubmoduleWithName:path error:error];\n  return submodule && (!resetIndex || [self.repository resetFileInIndexToHEAD:path error:error]) && [self.repository updateSubmodule:submodule force:YES error:error];\n}\n\n- (void)discardSubmoduleAtPath:(NSString*)path resetIndex:(BOOL)resetIndex {\n  [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to discard changes in the submodule \\\"%@\\\"?\", nil), path.lastPathComponent]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Discard\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* error;\n                                   if (![self discardSubmoduleAtPath:path resetIndex:resetIndex error:&error]) {\n                                     [self presentError:error];\n                                   }\n                                   [self.repository notifyWorkingDirectoryChanged];\n                                 }];\n}\n\n- (void)stageAllChangesForFile:(NSString*)path {\n  return [self stageAllChangesForFiles:@[ path ]];\n}\n\n- (void)stageAllChangesForFiles:(NSArray<NSString*>*)paths {\n  NSError* error;\n  NSMutableArray* existingFiles = [NSMutableArray array];\n  NSMutableArray* nonExistingFiles = [NSMutableArray array];\n  for (NSString* path in paths) {\n    if ([[NSFileManager defaultManager] fileExistsAtPath:[self.repository absolutePathForFile:path]]) {\n      [existingFiles addObject:path];\n    } else {\n      [nonExistingFiles addObject:path];\n    }\n  }\n\n  if (existingFiles.count > 0) {\n    if (![self.repository addFilesToIndex:existingFiles error:&error]) {\n      [self presentError:error];\n    }\n  }\n\n  if (nonExistingFiles.count > 0) {\n    if (![self.repository removeFilesFromIndex:nonExistingFiles error:&error]) {\n      [self presentError:error];\n    }\n  }\n\n  [self.repository notifyRepositoryChanged];\n}\n\n- (void)stageSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines {\n  NSError* error;\n  if ([self.repository addLinesFromFileToIndex:path\n                                         error:&error\n                                   usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                     if (change == kGCLineDiffChange_Added) {\n                                       return [newLines containsIndex:newLineNumber];\n                                     }\n                                     if (change == kGCLineDiffChange_Deleted) {\n                                       return [oldLines containsIndex:oldLineNumber];\n                                     }\n                                     return YES;\n                                   }]) {\n    [self.repository notifyRepositoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)unstageAllChangesForFile:(NSString*)path {\n  [self unstageAllChangesForFiles:@[ path ]];\n}\n\n- (void)unstageAllChangesForFiles:(NSArray<NSString*>*)paths {\n  NSError* error;\n  if ([self.repository resetFilesInIndexToHEAD:paths error:&error]) {\n    [self.repository notifyWorkingDirectoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)unstageSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines {\n  NSError* error;\n  if ([self.repository resetLinesFromFileInIndexToHEAD:path\n                                                 error:&error\n                                           usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                             if (change == kGCLineDiffChange_Added) {\n                                               return [newLines containsIndex:newLineNumber];\n                                             }\n                                             if (change == kGCLineDiffChange_Deleted) {\n                                               return [oldLines containsIndex:oldLineNumber];\n                                             }\n                                             return NO;\n                                           }]) {\n    [self.repository notifyWorkingDirectoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (BOOL)discardAllChangesForFile:(NSString*)path resetIndex:(BOOL)resetIndex error:(NSError**)error {\n  return [self discardAllChangesForFiles:@[ path ]\n                              resetIndex:resetIndex\n                                   error:error];\n}\n\n- (BOOL)discardAllChangesForFiles:(NSArray<NSString*>*)paths resetIndex:(BOOL)resetIndex error:(NSError**)error {\n  BOOL success = NO;\n  if (resetIndex) {\n    GCCommit* commit;\n    if ([self.repository lookupHEADCurrentCommit:&commit branch:NULL error:error] && [self.repository resetFilesInIndexToHEAD:paths error:error]) {\n      success = YES;\n      for (NSString* path in paths) {\n        if (commit && [self.repository checkTreeForCommit:commit containsFile:path error:NULL]) {\n          success = [self.repository safeDeleteFileIfExists:path error:error] && [self.repository checkoutFileFromIndex:path error:error];\n        } else {\n          success = [self.repository safeDeleteFile:path error:error];\n        }\n        if (!success) {\n          return NO;\n        }\n      }\n    }\n  } else {\n    for (NSString* path in paths) {\n      if (![self.repository safeDeleteFileIfExists:path error:error]) {\n        return NO;\n      }\n    }\n    success = [self.repository checkoutFilesFromIndex:paths error:error];\n  }\n  return success;\n}\n\n- (void)discardAllChangesForFile:(NSString*)path resetIndex:(BOOL)resetIndex {\n  [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to discard all changes from the file \\\"%@\\\"?\", nil), path.lastPathComponent]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Discard\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* error;\n                                   if (![self discardAllChangesForFile:path resetIndex:resetIndex error:&error]) {\n                                     [self presentError:error];\n                                   }\n                                   [self.repository notifyWorkingDirectoryChanged];\n                                 }];\n}\n\n- (BOOL)discardSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines resetIndex:(BOOL)resetIndex error:(NSError**)error {\n  if (resetIndex && ![self.repository resetFileInIndexToHEAD:path error:error]) {\n    return NO;\n  }\n  return [self.repository checkoutLinesFromFileFromIndex:path\n                                                   error:error\n                                             usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                               if (change == kGCLineDiffChange_Added) {\n                                                 return [newLines containsIndex:newLineNumber];\n                                               }\n                                               if (change == kGCLineDiffChange_Deleted) {\n                                                 return [oldLines containsIndex:oldLineNumber];\n                                               }\n                                               return NO;\n                                             }];\n}\n\n- (void)discardSelectedChangesForFile:(NSString*)path oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines resetIndex:(BOOL)resetIndex {\n  [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to discard selected changed lines from the file \\\"%@\\\"?\", nil), path.lastPathComponent]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Discard\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* error;\n                                   if (![self discardSelectedChangesForFile:path oldLines:oldLines newLines:newLines resetIndex:resetIndex error:&error]) {\n                                     [self presentError:error];\n                                   }\n                                   [self.repository notifyWorkingDirectoryChanged];\n                                 }];\n}\n\n- (void)deleteUntrackedFile:(NSString*)path {\n  [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to delete the file \\\"%@\\\"?\", nil), path.lastPathComponent]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Delete\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* error;\n                                   if ([self.repository safeDeleteFile:path error:&error]) {\n                                     [self.repository notifyWorkingDirectoryChanged];\n                                   } else {\n                                     [self presentError:error];\n                                   }\n                                 }];\n}\n\n- (void)restoreFile:(NSString*)path toCommit:(GCCommit*)commit {\n  [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to restore the file \\\"%@\\\" to the version from this commit?\", nil), path.lastPathComponent]\n                               message:NSLocalizedString(@\"Any local changes to this file will be overwritten. This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Restore\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* error;\n                                   if (![self.repository safeDeleteFileIfExists:path error:&error] || ![self.repository checkoutFileToWorkingDirectory:path fromCommit:commit skipIndex:YES error:&error]) {\n                                     [self presentError:error];\n                                   }\n                                   [self.repository notifyWorkingDirectoryChanged];\n                                 }];\n}\n\n- (void)restoreFile:(NSString*)path toBeforeCommit:(GCCommit*)commit {\n  NSError* lookupError;\n  NSArray* parents = [self.repository lookupParentsForCommit:commit error:&lookupError];\n  GCCommit* parentCommit = parents.firstObject;\n\n  if (parentCommit) {\n    // Check if the file existed in the parent commit\n    NSString* sha1 = [self.repository checkTreeForCommit:parentCommit containsFile:path error:NULL];\n    if (sha1) {\n      // File existed in parent - restore to that version\n      [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                     title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to restore the file \\\"%@\\\" to the version before this commit?\", nil), path.lastPathComponent]\n                                   message:NSLocalizedString(@\"Any local changes to this file will be overwritten. This action cannot be undone.\", nil)\n                                    button:NSLocalizedString(@\"Restore\", nil)\n                 suppressionUserDefaultKey:nil\n                                     block:^{\n                                       NSError* error;\n                                       if (![self.repository safeDeleteFileIfExists:path error:&error] || ![self.repository checkoutFileToWorkingDirectory:path fromCommit:parentCommit skipIndex:YES error:&error]) {\n                                         [self presentError:error];\n                                       }\n                                       [self.repository notifyWorkingDirectoryChanged];\n                                     }];\n    } else {\n      // File didn't exist in parent - it was added in this commit, so delete it\n      [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                     title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to delete the file \\\"%@\\\"?\", nil), path.lastPathComponent]\n                                   message:NSLocalizedString(@\"The file did not exist before this commit. Any local changes to this file will be lost. This action cannot be undone.\", nil)\n                                    button:NSLocalizedString(@\"Delete\", nil)\n                 suppressionUserDefaultKey:nil\n                                     block:^{\n                                       NSError* error;\n                                       if (![self.repository safeDeleteFileIfExists:path error:&error]) {\n                                         [self presentError:error];\n                                       }\n                                       [self.repository notifyWorkingDirectoryChanged];\n                                     }];\n    }\n  } else {\n    // No parent commit (root commit) - file was added in this commit, so delete it\n    [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                   title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to delete the file \\\"%@\\\"?\", nil), path.lastPathComponent]\n                                 message:NSLocalizedString(@\"The file did not exist before this commit. Any local changes to this file will be lost. This action cannot be undone.\", nil)\n                                  button:NSLocalizedString(@\"Delete\", nil)\n               suppressionUserDefaultKey:nil\n                                   block:^{\n                                     NSError* error;\n                                     if (![self.repository safeDeleteFileIfExists:path error:&error]) {\n                                       [self presentError:error];\n                                     }\n                                     [self.repository notifyWorkingDirectoryChanged];\n                                   }];\n  }\n}\n\n- (void)openFileWithDefaultEditor:(NSString*)path {\n  [[NSWorkspace sharedWorkspace] openURL:[self.repository absoluteURLForFile:path]];  // This will silently fail if the file doesn't exist in the working directory\n}\n\n- (void)showFileInFinder:(NSString*)path {\n  [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[ [self.repository absoluteURLForFile:path] ]];\n}\n\n- (void)openSubmoduleWithApp:(NSString*)path {\n  NSError* error;\n  GCSubmodule* submodule = [self.repository lookupSubmoduleWithName:path error:&error];\n  if (submodule) {\n    GCRepository* subrepo = [[GCRepository alloc] initWithSubmodule:submodule error:&error];\n    if (subrepo) {\n      [[NSDocumentController sharedDocumentController] openDocumentWithContentsOfURL:[NSURL fileURLWithPath:subrepo.workingDirectoryPath]\n                                                                             display:YES\n                                                                   completionHandler:^(NSDocument* document, BOOL documentWasAlreadyOpen, NSError* openError) {\n                                                                     if (!document) {\n                                                                       [[NSDocumentController sharedDocumentController] presentError:openError];\n                                                                     }\n                                                                   }];\n    } else if ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_NotFound)) {\n      [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning format:NSLocalizedString(@\"Submodule \\\"%@\\\" is not initialized\", nil), submodule.name];\n    } else {\n      [self presentError:error];\n    }\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)_runTaskWithPath:(NSString*)path arguments:(NSArray*)arguments variables:(NSDictionary*)variables waitUntilExit:(BOOL)wait reportErrors:(BOOL)report {\n  NSMutableDictionary* environment = [[NSMutableDictionary alloc] initWithDictionary:[[NSProcessInfo processInfo] environment]];\n  [environment addEntriesFromDictionary:variables];\n  @try {\n    NSTask* task = [[NSTask alloc] init];\n    task.launchPath = path;\n    task.arguments = arguments;\n    task.environment = environment;\n    task.currentDirectoryPath = self.repository.workingDirectoryPath;\n    [task launch];\n    if (wait) {\n      [task waitUntilExit];\n      if (report && task.terminationStatus) {\n        [self presentError:[NSError errorWithDomain:NSPOSIXErrorDomain\n                                               code:task.terminationStatus\n                                           userInfo:@{\n                                             NSLocalizedDescriptionKey : [NSString stringWithFormat:@\"Tool exited with non-zero status (%i)\", task.terminationStatus],\n                                             NSLocalizedRecoverySuggestionErrorKey : [NSString stringWithFormat:@\"%@ %@\", path, [arguments componentsJoinedByString:@\" \"]]\n                                           }]];\n      }\n    } else {\n      // TODO: How to report errors?\n    }\n  }\n  @catch (NSException* exception) {\n    XLOG_EXCEPTION(exception);\n    [self presentError:GCNewError(kGCErrorCode_Generic, exception.reason)];\n  }\n}\n\n- (void)_runFileMergeWithArguments:(NSArray*)arguments {\n  if ([[NSFileManager defaultManager] isExecutableFileAtPath:kOpenDiffPath]) {\n    [self _runTaskWithPath:kOpenDiffPath arguments:arguments variables:nil waitUntilExit:NO reportErrors:NO];  // opendiff hangs for a couple seconds before exiting\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"FileMerge is not available!\", nil) message:NSLocalizedString(@\"FileMerge tool doesn't appear to be installed.\", nil)];\n  }\n}\n\n- (void)_runKaleidoscopeWithArguments:(NSArray*)arguments {\n  if (([[NSFileManager defaultManager] isExecutableFileAtPath:kKSDiffPath])) {\n    [self _runTaskWithPath:kKSDiffPath arguments:arguments variables:nil waitUntilExit:YES reportErrors:NO];\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"Kaleidoscope is not available!\", nil) message:NSLocalizedString(@\"Kaleidoscope tool doesn't appear to be installed.\", nil)];\n  }\n}\n\n- (void)_runBeyondCompareWithArguments:(NSArray*)arguments {\n  if (([[NSFileManager defaultManager] isExecutableFileAtPath:kBComparePath])) {\n    [self _runTaskWithPath:kBComparePath arguments:arguments variables:nil waitUntilExit:YES reportErrors:NO];\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"Beyond Compare is not available!\", nil) message:NSLocalizedString(@\"Beyond Compare tool doesn't appear to be installed.\", nil)];\n  }\n}\n\n- (void)_runP4MergeWithArguments:(NSArray*)arguments {\n  if (([[NSFileManager defaultManager] isExecutableFileAtPath:kP4MergePath])) {\n    [self _runTaskWithPath:kP4MergePath arguments:arguments variables:nil waitUntilExit:NO reportErrors:NO];  // launchp4merge is blocking\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"P4Merge is not available!\", nil) message:NSLocalizedString(@\"P4Merge app doesn't appear to be installed.\", nil)];\n  }\n}\n\n// http://git-scm.com/docs/git-difftool\n- (void)_runDiffGitToolForFile:(NSString*)file withOldPath:(NSString*)oldPath newPath:(NSString*)newPath {\n  NSString* tool = [[self.repository readConfigOptionForVariable:@\"diff.guitool\" error:NULL] value];\n  if (tool == nil) {\n    tool = [[self.repository readConfigOptionForVariable:@\"diff.tool\" error:NULL] value];\n  }\n  NSString* cmd = tool ? [[self.repository readConfigOptionForVariable:[NSString stringWithFormat:@\"difftool.%@.cmd\", tool] error:NULL] value] : nil;\n  if (cmd) {\n    NSMutableDictionary* variables = [NSMutableDictionary dictionaryWithObject:file forKey:@\"MERGED\"];\n    [variables setValue:oldPath forKey:@\"LOCAL\"];\n    [variables setValue:newPath forKey:@\"REMOTE\"];\n    [self _runTaskWithPath:@\"/bin/bash\" arguments:@[ @\"-l\", @\"-c\", cmd ] variables:variables waitUntilExit:YES reportErrors:YES];\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"Git custom diff tool not available!\", nil) message:NSLocalizedString(@\"Git diff tool requires both 'diff.tool' (or 'diff.guitool') and 'difftool.<tool>.cmd' to be defined in your Git configuration.\", nil)];\n  }\n}\n\n- (void)_runDiffMergeToolWithArguments:(NSArray*)arguments {\n  if (([[NSFileManager defaultManager] isExecutableFileAtPath:kDiffMergePath])) {\n    [self _runTaskWithPath:kDiffMergePath arguments:arguments variables:nil waitUntilExit:NO reportErrors:NO];  // launch diff merge\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"DiffMerge is not available!\", nil) message:NSLocalizedString(@\"P4Merge app doesn't appear to be installed.\", nil)];\n  }\n}\n\n// http://git-scm.com/docs/git-mergetool\n- (void)_runMergeGitToolForFile:(NSString*)file withOldPath:(NSString*)oldPath newPath:(NSString*)newPath basePath:(NSString*)basePath {\n  NSString* tool = [[self.repository readConfigOptionForVariable:@\"merge.tool\" error:NULL] value];\n  NSString* cmd = tool ? [[self.repository readConfigOptionForVariable:[NSString stringWithFormat:@\"mergetool.%@.cmd\", tool] error:NULL] value] : nil;\n  if (cmd) {\n    NSMutableDictionary* variables = [NSMutableDictionary dictionaryWithObject:file forKey:@\"MERGED\"];\n    [variables setValue:basePath forKey:@\"BASE\"];\n    [variables setValue:oldPath forKey:@\"LOCAL\"];\n    [variables setValue:newPath forKey:@\"REMOTE\"];\n    [self _runTaskWithPath:@\"/bin/bash\" arguments:@[ @\"-l\", @\"-c\", cmd ] variables:variables waitUntilExit:YES reportErrors:YES];\n  } else {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"Git custom merge tool not available!\", nil) message:NSLocalizedString(@\"Git merge tool requires both 'merge.tool' and 'mergetool.<tool>.cmd' to be defined in your Git configuration.\", nil)];\n  }\n}\n\n- (void)viewDeltasInDiffTool:(NSArray*)deltas {\n  NSString* uuid = nil;\n  NSError* error;\n  for (GCDiffDelta* delta in deltas) {\n    NSString* oldPath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:delta.oldFile.SHA1];\n    NSString* oldExtension = delta.oldFile.path.pathExtension;\n    if (oldExtension.length) {\n      oldPath = [oldPath stringByAppendingPathExtension:oldExtension];\n    }\n    if (![self.repository exportBlobWithSHA1:delta.oldFile.SHA1 toPath:oldPath error:&error]) {\n      [self presentError:error];\n      return;\n    }\n    NSString* oldTitle = delta.oldFile.path;\n\n    NSString* newPath;\n    if ((delta.diff.type == kGCDiffType_WorkingDirectoryWithCommit) || (delta.diff.type == kGCDiffType_WorkingDirectoryWithIndex)) {\n      newPath = [self.repository absolutePathForFile:delta.newFile.path];\n    } else {\n      newPath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:delta.newFile.SHA1];\n      NSString* newExtension = delta.newFile.path.pathExtension;\n      if (newExtension.length) {\n        newPath = [newPath stringByAppendingPathExtension:newExtension];\n      }\n      if (![self.repository exportBlobWithSHA1:delta.newFile.SHA1 toPath:newPath error:&error]) {\n        [self presentError:error];\n        return;\n      }\n    }\n    NSString* newTitle = delta.newFile.path;\n\n    NSString* identifier = [[NSUserDefaults standardUserDefaults] stringForKey:GIPreferences_DiffTool];\n    if ([identifier isEqualToString:GIPreferences_DiffMergeTool_FileMerge]) {\n      [self _runFileMergeWithArguments:@[ oldPath, newPath ]];\n    } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_Kaleidoscope]) {\n      if (uuid == nil) {\n        uuid = [[NSUUID UUID] UUIDString];\n      }\n      [self _runKaleidoscopeWithArguments:@[ @\"--partial-changeset\", @\"--UUID\", uuid, @\"--no-wait\", @\"--label\", [[[NSBundle mainBundle] infoDictionary] objectForKey:@\"CFBundleName\"], @\"--relative-path\", delta.canonicalPath, oldPath, newPath ]];\n    } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_BeyondCompare]) {\n      [self _runBeyondCompareWithArguments:@[ [NSString stringWithFormat:@\"-title1=%@\", oldTitle], [NSString stringWithFormat:@\"-title2=%@\", newTitle], oldPath, newPath ]];\n    } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_P4Merge]) {\n      [self _runP4MergeWithArguments:@[ @\"-nl\", oldTitle, @\"-nr\", newTitle, oldPath, newPath ]];\n    } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_GitTool]) {\n      [self _runDiffGitToolForFile:delta.canonicalPath withOldPath:oldPath newPath:newPath];\n    } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_DiffMerge]) {\n      [self _runDiffMergeToolWithArguments:@[ [NSString stringWithFormat:@\"-t1=%@\", oldTitle], [NSString stringWithFormat:@\"-t2=%@\", newTitle], oldPath, newPath ]];\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  }\n  if (uuid) {\n    [self _runKaleidoscopeWithArguments:@[ @\"--mark-changeset-as-closed\", uuid ]];\n  }\n}\n\n- (void)resolveConflictInMergeTool:(GCIndexConflict*)conflict {\n  NSString* basePath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n  NSString* extension = conflict.path.pathExtension;\n  NSError* error;\n\n  if (![[NSFileManager defaultManager] createDirectoryAtPath:basePath withIntermediateDirectories:NO attributes:nil error:&error]) {\n    [self presentError:error];\n    return;\n  }\n\n  NSString* ourPath = [basePath stringByAppendingPathComponent:@\"ours\"];\n  if (extension.length) {\n    ourPath = [ourPath stringByAppendingPathExtension:extension];\n  }\n  NSString* ourSHA1 = conflict.ourBlobSHA1;\n  if ((ourSHA1 && ![self.repository exportBlobWithSHA1:ourSHA1 toPath:ourPath error:&error]) || (!ourSHA1 && ![[NSData data] writeToFile:ourPath options:0 error:&error])) {\n    [self presentError:error];\n    return;\n  }\n  NSString* ourTitle = @\"Ours\";\n\n  NSString* theirPath = [basePath stringByAppendingPathComponent:@\"theirs\"];\n  if (extension.length) {\n    theirPath = [theirPath stringByAppendingPathExtension:extension];\n  }\n  NSString* theirSHA1 = conflict.theirBlobSHA1;\n  if ((theirSHA1 && ![self.repository exportBlobWithSHA1:theirSHA1 toPath:theirPath error:&error]) || (!theirSHA1 && ![[NSData data] writeToFile:theirPath options:0 error:&error])) {\n    [self presentError:error];\n    return;\n  }\n  NSString* theirTitle = @\"Theirs\";\n\n  NSString* ancestorPath = nil;\n  NSString* ancestorSHA1 = conflict.ancestorBlobSHA1;\n  if (ancestorSHA1) {\n    ancestorPath = [basePath stringByAppendingPathComponent:@\"ancestor\"];\n    if (extension.length) {\n      ancestorPath = [ancestorPath stringByAppendingPathExtension:extension];\n    }\n    if (![self.repository exportBlobWithSHA1:ancestorSHA1 toPath:ancestorPath error:&error]) {\n      [self presentError:error];\n      return;\n    }\n  }\n  NSString* ancestorTitle = @\"Ancestor\";\n\n  NSString* mergePath = [self.repository absolutePathForFile:conflict.path];\n  NSString* mergeTitle = conflict.path.lastPathComponent;\n\n  NSMutableArray* arguments = [[NSMutableArray alloc] init];\n  NSString* identifier = [[NSUserDefaults standardUserDefaults] stringForKey:GIPreferences_MergeTool];\n  if ([identifier isEqualToString:GIPreferences_DiffMergeTool_FileMerge]) {\n    [arguments addObject:ourPath];\n    [arguments addObject:theirPath];\n    if (ancestorPath) {\n      [arguments addObject:@\"-ancestor\"];\n      [arguments addObject:ancestorPath];\n    }\n    [arguments addObject:@\"-merge\"];\n    [arguments addObject:mergePath];\n    [self _runFileMergeWithArguments:arguments];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_Kaleidoscope]) {\n    [arguments addObject:@\"--merge\"];\n    [arguments addObject:@\"--no-wait\"];\n    [arguments addObject:@\"--output\"];\n    [arguments addObject:mergePath];\n    if (ancestorPath) {\n      [arguments addObject:@\"--base\"];\n      [arguments addObject:ancestorPath];\n    }\n    [arguments addObject:ourPath];\n    [arguments addObject:theirPath];\n    [self _runKaleidoscopeWithArguments:arguments];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_BeyondCompare]) {\n    [arguments addObject:[NSString stringWithFormat:@\"-title1=%@\", ourTitle]];\n    [arguments addObject:[NSString stringWithFormat:@\"-title2=%@\", theirTitle]];\n    if (ancestorPath) {\n      [arguments addObject:[NSString stringWithFormat:@\"-title3=%@\", ancestorTitle]];\n    }\n    [arguments addObject:[NSString stringWithFormat:@\"-title4=%@\", mergeTitle]];\n    [arguments addObject:[NSString stringWithFormat:@\"-mergeoutput=%@\", mergePath]];\n    [arguments addObject:ourPath];\n    [arguments addObject:theirPath];\n    if (ancestorPath) {\n      [arguments addObject:ancestorPath];\n    }\n    [self _runBeyondCompareWithArguments:arguments];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_P4Merge]) {\n    [arguments addObject:@\"-nl\"];\n    [arguments addObject:ourTitle];\n    [arguments addObject:@\"-nr\"];\n    [arguments addObject:theirTitle];\n    if (ancestorPath) {\n      [arguments addObject:@\"-nb\"];\n      [arguments addObject:ancestorTitle];\n    }\n    [arguments addObject:@\"-nm\"];\n    [arguments addObject:mergeTitle];\n    if (ancestorPath) {\n      [arguments addObject:ancestorPath];\n    }\n    [arguments addObject:ourPath];\n    [arguments addObject:theirPath];\n    [arguments addObject:mergePath];\n    [self _runP4MergeWithArguments:arguments];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_GitTool]) {\n    [self _runMergeGitToolForFile:mergePath withOldPath:ourPath newPath:theirPath basePath:ancestorPath];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_DiffMerge]) {\n    [arguments addObject:[NSString stringWithFormat:@\"-r=%@\", mergePath]];\n    [arguments addObject:[NSString stringWithFormat:@\"-t1=%@\", ourTitle]];\n    [arguments addObject:[NSString stringWithFormat:@\"-t2=%@\", ancestorTitle]];\n    [arguments addObject:[NSString stringWithFormat:@\"-t3=%@\", theirTitle]];\n    [arguments addObject:ourPath];\n    if (ancestorPath) {\n      [arguments addObject:ancestorPath];\n    }\n    [arguments addObject:theirPath];\n    [self _runDiffMergeToolWithArguments:arguments];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)markConflictAsResolved:(GCIndexConflict*)conflict {\n  NSError* error;\n  if ([self.repository resolveConflictAtPath:conflict.path error:&error]) {\n    [self.repository notifyWorkingDirectoryChanged];\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (GCCommit*)resolveConflictsWithResolver:(id<GCMergeConflictResolver>)resolver\n                                    index:(GCIndex*)index\n                                ourCommit:(GCCommit*)ourCommit\n                              theirCommit:(GCCommit*)theirCommit\n                            parentCommits:(NSArray*)parentCommits\n                                  message:(NSString*)message\n                                    error:(NSError**)error {\n  XLOG_DEBUG_CHECK(parentCommits.count <= 2);\n\n  // Ensure repository is completely clean\n  NSError* localError;\n  if (![self.repository checkClean:0 error:&localError]) {\n    if ([localError.domain isEqualToString:GCErrorDomain] && (localError.code == kGCErrorCode_RepositoryDirty)) {\n      [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:NSLocalizedString(@\"Operation results in merge conflicts and repository must be clean to resolve them\", nil)];\n      GC_SET_USER_CANCELLED_ERROR();\n    } else if (error) {\n      *error = localError;\n    }\n    return nil;\n  }\n\n  return [self.repository resolveConflictsWithResolver:resolver\n                                                 index:index\n                                             ourCommit:ourCommit\n                                           theirCommit:theirCommit\n                                         parentCommits:parentCommits\n                                               message:message\n                                                 error:error];\n}\n\n// Keep logic in sync with method below!\n- (NSMenu*)contextualMenuForDelta:(GCDiffDelta*)delta withConflict:(GCIndexConflict*)conflict allowOpen:(BOOL)allowOpen {\n  NSMenu* menu = [[NSMenu alloc] initWithTitle:@\"\"];\n\n  if (conflict) {\n    [menu addItemWithTitle:NSLocalizedString(@\"Resolve in Merge Tool…\", nil)\n                     block:^{\n                       [self resolveConflictInMergeTool:conflict];\n                     }];\n    [menu addItemWithTitle:NSLocalizedString(@\"Mark as Resolved\", nil)\n                     block:^{\n                       [self markConflictAsResolved:conflict];\n                     }];\n  } else {\n    if (GC_FILE_MODE_IS_FILE(delta.oldFile.mode) && GC_FILE_MODE_IS_FILE(delta.newFile.mode)) {\n      [menu addItemWithTitle:NSLocalizedString(@\"View in Diff Tool…\", nil)\n                       block:^{\n                         [self viewDeltasInDiffTool:@[ delta ]];\n                       }];\n    } else {\n      [menu addItemWithTitle:NSLocalizedString(@\"View in Diff Tool…\", nil) block:NULL];\n    }\n  }\n\n  if (allowOpen) {\n    [menu addItem:[NSMenuItem separatorItem]];\n\n    if (delta.submodule) {\n      [menu addItemWithTitle:NSLocalizedString(@\"Open Submodule…\", nil)\n                       block:^{\n                         [self openSubmoduleWithApp:delta.canonicalPath];\n                       }];\n    } else {\n      [menu addItemWithTitle:NSLocalizedString(@\"Open File…\", nil)\n                       block:^{\n                         [self openFileWithDefaultEditor:delta.canonicalPath];\n                       }];\n    }\n\n    [menu addItemWithTitle:NSLocalizedString(@\"Show in Finder…\", nil)\n                     block:^{\n                       [self showFileInFinder:delta.canonicalPath];\n                     }];\n  }\n\n  return menu;\n}\n\n// Keep logic in sync with method above!\n- (BOOL)handleKeyDownEvent:(NSEvent*)event forSelectedDeltas:(NSArray*)deltas withConflicts:(NSDictionary*)conflicts allowOpen:(BOOL)allowOpen {\n  if (deltas.count) {\n    NSString* characters = event.charactersIgnoringModifiers;\n    if ([characters rangeOfCharacterFromSet:[NSCharacterSet alphanumericCharacterSet] options:0].location != NSNotFound) {  // Skip if key event is for arrow keys, return key, etc...\n      if (allowOpen && [characters isEqualToString:@\"o\"]) {\n        for (GCDiffDelta* delta in deltas) {\n          if (delta.submodule) {\n            [self openSubmoduleWithApp:delta.canonicalPath];\n          } else {\n            [self openFileWithDefaultEditor:delta.canonicalPath];\n          }\n        }\n        return YES;\n      } else if ([characters isEqualToString:@\"d\"]) {\n        NSMutableArray* array = [[NSMutableArray alloc] init];\n        for (GCDiffDelta* delta in deltas) {\n          GCIndexConflict* conflict = [conflicts objectForKey:delta.canonicalPath];\n          if (!conflict && GC_FILE_MODE_IS_FILE(delta.oldFile.mode) && GC_FILE_MODE_IS_FILE(delta.newFile.mode)) {\n            [array addObject:delta];\n          }\n        }\n        if (array.count) {\n          [self viewDeltasInDiffTool:array];\n        }\n        return YES;\n      } else if ([characters isEqualToString:@\"r\"]) {\n        for (GCDiffDelta* delta in deltas) {\n          GCIndexConflict* conflict = [conflicts objectForKey:delta.canonicalPath];\n          if (conflict) {\n            [self resolveConflictInMergeTool:conflict];\n          }\n        }\n        return YES;\n      } else if ([characters isEqualToString:@\"m\"]) {\n        for (GCDiffDelta* delta in deltas) {\n          GCIndexConflict* conflict = [conflicts objectForKey:delta.canonicalPath];\n          if (conflict) {\n            [self markConflictAsResolved:conflict];\n          }\n        }\n        return YES;\n      }\n    }\n  }\n  return NO;\n}\n\n// TODO: Use private app directory\n- (void)launchDiffToolWithCommit:(GCCommit*)commit otherCommit:(GCCommit*)otherCommit {\n  NSString* identifier = [[NSUserDefaults standardUserDefaults] stringForKey:GIPreferences_DiffTool];\n  NSString* uuid = nil;\n  NSError* error;\n\n  GCDiff* diff = [self.repository diffCommit:commit withCommit:otherCommit filePattern:nil options:0 maxInterHunkLines:0 maxContextLines:0 error:&error];\n  if (diff == nil) {\n    [self presentError:error];\n    return;\n  }\n\n  NSString* newPath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:commit.shortSHA1];\n  [[NSFileManager defaultManager] removeItemAtPath:newPath error:&error];\n  if (![[NSFileManager defaultManager] createDirectoryAtPath:newPath withIntermediateDirectories:NO attributes:nil error:&error]) {\n    [self presentError:error];\n    return;\n  }\n  NSString* oldTitle = commit.shortSHA1;\n\n  NSString* oldPath = [GILaunchServicesLocator.diffTemporaryDirectoryPath stringByAppendingPathComponent:otherCommit.shortSHA1];\n  [[NSFileManager defaultManager] removeItemAtPath:oldPath error:&error];\n  if (![[NSFileManager defaultManager] createDirectoryAtPath:oldPath withIntermediateDirectories:NO attributes:nil error:&error]) {\n    [self presentError:error];\n    return;\n  }\n  NSString* newTitle = otherCommit.shortSHA1;\n\n  for (GCDiffDelta* delta in diff.deltas) {\n    switch (delta.change) {\n      case kGCFileDiffChange_Added:\n      case kGCFileDiffChange_Modified:\n      case kGCFileDiffChange_Deleted: {\n        NSString* oldPath2 = [oldPath stringByAppendingPathComponent:delta.canonicalPath];\n        if (![[NSFileManager defaultManager] createDirectoryAtPath:[oldPath2 stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:nil error:&error]) {\n          [self presentError:error];\n          return;\n        }\n        NSString* oldSHA1 = delta.oldFile.SHA1;\n        XLOG_DEBUG_CHECK(oldSHA1 || (delta.change == kGCFileDiffChange_Added));\n        if ((oldSHA1 && ![self.repository exportBlobWithSHA1:oldSHA1 toPath:oldPath2 error:&error]) || (!oldSHA1 && ![[NSData data] writeToFile:oldPath2 options:0 error:&error])) {\n          [self presentError:error];\n          return;\n        }\n\n        NSString* newPath2 = [newPath stringByAppendingPathComponent:delta.canonicalPath];\n        if (![[NSFileManager defaultManager] createDirectoryAtPath:[newPath2 stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:nil error:&error]) {\n          [self presentError:error];\n          return;\n        }\n        NSString* newSHA1 = delta.newFile.SHA1;\n        XLOG_DEBUG_CHECK(newSHA1 || (delta.change == kGCFileDiffChange_Deleted));\n        if ((newSHA1 && ![self.repository exportBlobWithSHA1:newSHA1 toPath:newPath2 error:&error]) || (!newSHA1 && ![[NSData data] writeToFile:newPath2 options:0 error:&error])) {\n          [self presentError:error];\n          return;\n        }\n\n        if ([identifier isEqualToString:GIPreferences_DiffMergeTool_Kaleidoscope]) {\n          if (uuid == nil) {\n            uuid = [[NSUUID UUID] UUIDString];\n          }\n          [self _runKaleidoscopeWithArguments:@[ @\"--partial-changeset\", @\"--UUID\", uuid, @\"--no-wait\", @\"--label\", [NSString stringWithFormat:@\"%@ ▶ %@\", oldTitle, newTitle], @\"--relative-path\", delta.canonicalPath, oldPath2, newPath2 ]];\n        } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_P4Merge]) {\n          NSString* oldTitle2 = [NSString stringWithFormat:@\"[%@] %@\", oldTitle, delta.oldFile.path];\n          NSString* newTitle2 = [NSString stringWithFormat:@\"[%@] %@\", newTitle, delta.newFile.path];\n          [self _runP4MergeWithArguments:@[ @\"-nl\", oldTitle2, @\"-nr\", newTitle2, oldPath2, newPath2 ]];\n          usleep(250 * 1000);  // TODO: Calling launchp4merge too frequently drops diffs\n        } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_GitTool]) {\n          [self _runDiffGitToolForFile:delta.canonicalPath withOldPath:oldPath2 newPath:newPath2];\n        }\n        break;\n      }\n\n      default:\n        XLOG_DEBUG_UNREACHABLE();\n        break;\n    }\n  }\n\n  if ([identifier isEqualToString:GIPreferences_DiffMergeTool_FileMerge]) {\n    [self _runFileMergeWithArguments:@[ oldPath, newPath ]];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_Kaleidoscope]) {\n    if (uuid) {\n      [self _runKaleidoscopeWithArguments:@[ @\"--mark-changeset-as-closed\", uuid ]];\n    }\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_BeyondCompare]) {\n    [self _runBeyondCompareWithArguments:@[ [NSString stringWithFormat:@\"-title1=%@\", oldTitle], [NSString stringWithFormat:@\"-title2=%@\", newTitle], oldPath, newPath ]];\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_P4Merge] || [identifier isEqualToString:GIPreferences_DiffMergeTool_GitTool]) {\n    // Handled above\n  } else if ([identifier isEqualToString:GIPreferences_DiffMergeTool_DiffMerge]) {\n    [self _runDiffMergeToolWithArguments:@[ [NSString stringWithFormat:@\"-t1=%@\", oldTitle], [NSString stringWithFormat:@\"-t2=%@\", newTitle], oldPath, newPath ]];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIAppKit.h\"\n\n@class GIWindowController, GIViewController, GCLiveRepository, GCSnapshot;\n\n@interface GIView : NSView\n@property(nonatomic, weak, readonly) GIViewController* viewController;\n@end\n\n@interface GIViewController : NSViewController <NSTextFieldDelegate, NSTextViewDelegate, NSTableViewDelegate>\n@property(nonatomic, readonly) GCLiveRepository* repository;\n@property(strong) GIView* view;\n@property(nonatomic, readonly, getter=isViewVisible) BOOL viewVisible;\n@property(nonatomic, readonly, getter=isLiveResizing) BOOL liveResizing;\n@property(nonatomic, readonly) GIWindowController* windowController;\n- (instancetype)initWithRepository:(GCLiveRepository*)repository;\n- (void)presentAlert:(NSAlert*)alert completionHandler:(void (^)(NSInteger returnCode))handler;\n@end\n\n@interface GIViewController (Extensions)\n- (void)presentAlertWithType:(GIAlertType)type title:(NSString*)title message:(NSString*)format, ... NS_FORMAT_FUNCTION(3, 4);\n- (void)confirmUserActionWithAlertType:(GIAlertType)type\n                                 title:(NSString*)title\n                               message:(NSString*)message\n                                button:(NSString*)button\n             suppressionUserDefaultKey:(NSString*)key  // May be nil\n                                 block:(dispatch_block_t)block;\n@end\n\n@interface GIViewController (Subclassing)\n@property(nonatomic, readonly) NSView* preferredFirstResponder;  // Default implementation returns first subview that accepts first responder status\n\n- (void)viewDidResize;  // Default implementation does nothing\n- (void)viewWillBeginLiveResize;  // Default implementation does nothing\n- (void)viewDidFinishLiveResize;  // Default implementation does nothing\n\n- (void)repositoryDidChange;  // Default implementation does nothing\n- (void)repositoryWorkingDirectoryDidChange;  // Default implementation does nothing\n- (void)repositoryStateDidUpdate;  // Default implementation does nothing\n- (void)repositoryHistoryDidUpdate;  // Default implementation does nothing\n- (void)repositoryStashesDidUpdate;  // Default implementation does nothing\n- (void)repositoryStatusDidUpdate;  // Default implementation does nothing\n- (void)repositorySnapshotsDidUpdate;  // Default implementation does nothing\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <objc/runtime.h>\n\n#import \"GIViewController.h\"\n#import \"GIWindowController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIView ()\n@property(nonatomic, weak) GIViewController* viewController;\n@end\n\n#define OVERRIDES_METHOD(m) (method_getImplementation(class_getInstanceMethod(self.class, @selector(m))) != method_getImplementation(class_getInstanceMethod([GIViewController class], @selector(m))))\n\n@implementation GIView\n\n- (void)resizeSubviewsWithOldSize:(NSSize)oldSize {\n  [super resizeSubviewsWithOldSize:oldSize];\n\n  [_viewController viewDidResize];\n}\n\n- (void)viewWillStartLiveResize {\n  [super viewWillStartLiveResize];\n\n  [_viewController viewWillBeginLiveResize];\n}\n\n- (void)viewDidEndLiveResize {\n  [super viewDidEndLiveResize];\n\n  [_viewController viewDidFinishLiveResize];\n}\n\n@end\n\n@implementation GIViewController {\n  NSUndoManager* _textViewUndoManager;\n}\n\n@dynamic view;\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithNibName:nil bundle:nil])) {\n    _repository = repository;\n    _textViewUndoManager = [[NSUndoManager alloc] init];\n\n    if (OVERRIDES_METHOD(repositoryDidChange)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositoryDidChange) name:GCLiveRepositoryDidChangeNotification object:_repository];\n    }\n    if (OVERRIDES_METHOD(repositoryWorkingDirectoryDidChange)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositoryWorkingDirectoryDidChange) name:GCLiveRepositoryWorkingDirectoryDidChangeNotification object:_repository];\n    }\n    if (OVERRIDES_METHOD(repositoryStateDidUpdate)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositoryStateDidUpdate) name:GCLiveRepositoryStateDidUpdateNotification object:_repository];\n    }\n    if (OVERRIDES_METHOD(repositoryHistoryDidUpdate)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositoryHistoryDidUpdate) name:GCLiveRepositoryHistoryDidUpdateNotification object:_repository];\n    }\n    if (OVERRIDES_METHOD(repositoryStashesDidUpdate)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositoryStashesDidUpdate) name:GCLiveRepositoryStashesDidUpdateNotification object:_repository];\n    }\n    if (OVERRIDES_METHOD(repositoryStatusDidUpdate)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositoryStatusDidUpdate) name:GCLiveRepositoryStatusDidUpdateNotification object:_repository];\n    }\n    if (OVERRIDES_METHOD(repositorySnapshotsDidUpdate)) {\n      [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(repositorySnapshotsDidUpdate) name:GCLiveRepositorySnapshotsDidUpdateNotification object:_repository];\n    }\n\n    self.view.viewController = self;  // This loads the view\n  }\n  return self;\n}\n\n- (void)dealloc {\n  self.view.viewController = nil;  // In case someone is still retaining the view\n\n  if (OVERRIDES_METHOD(repositoryDidChange)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositoryDidChangeNotification object:self.repository];\n  }\n  if (OVERRIDES_METHOD(repositoryWorkingDirectoryDidChange)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositoryWorkingDirectoryDidChangeNotification object:self.repository];\n  }\n  if (OVERRIDES_METHOD(repositoryStateDidUpdate)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositoryStateDidUpdateNotification object:self.repository];\n  }\n  if (OVERRIDES_METHOD(repositoryHistoryDidUpdate)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositoryHistoryDidUpdateNotification object:self.repository];\n  }\n  if (OVERRIDES_METHOD(repositoryStashesDidUpdate)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositoryStashesDidUpdateNotification object:self.repository];\n  }\n  if (OVERRIDES_METHOD(repositoryStatusDidUpdate)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositoryStatusDidUpdateNotification object:self.repository];\n  }\n  if (OVERRIDES_METHOD(repositorySnapshotsDidUpdate)) {\n    [[NSNotificationCenter defaultCenter] removeObserver:self name:GCLiveRepositorySnapshotsDidUpdateNotification object:self.repository];\n  }\n}\n\n- (void)loadView {\n  XLOG_DEBUG_CHECK(!self.nibBundle && !self.nibName);\n  Class nibClass = self.class;\n  while (nibClass) {\n    if ([[NSBundle bundleForClass:nibClass] loadNibNamed:NSStringFromClass(nibClass) owner:self topLevelObjects:NULL]) {\n      break;\n    }\n    nibClass = nibClass.superclass;\n  }\n  XLOG_DEBUG_CHECK(self.view);\n}\n\n// Override super method so that the NSUndoManager is guaranteed to be the same and always around even when view is not visible\n- (NSUndoManager*)undoManager {\n  return _repository.undoManager;\n}\n\n- (BOOL)isViewVisible {\n  return self.view.window != nil;\n}\n\n- (BOOL)isLiveResizing {\n  return self.view.inLiveResize;\n}\n\n- (GIWindowController*)windowController {\n  id controller = self.view.window.windowController;\n  if ([controller isKindOfClass:[GIWindowController class]]) {\n    return controller;\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return nil;\n}\n\n- (void)presentAlert:(NSAlert*)alert completionHandler:(void (^)(NSInteger returnCode))handler {\n  [alert beginSheetModalForWindow:self.view.window completionHandler:handler];\n}\n\n#pragma mark - NSTextFieldDelegate\n\n- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector {\n  if (commandSelector == @selector(insertTab:)) {\n    [self.view.window selectNextKeyView:nil];\n    return YES;\n  }\n  if (commandSelector == @selector(insertBacktab:)) {\n    [self.view.window selectPreviousKeyView:nil];\n    return YES;\n  }\n  return NO;\n}\n\n#pragma mark - NSTextViewDelegate\n\n- (NSUndoManager*)undoManagerForTextView:(NSTextView*)view {\n  return _textViewUndoManager;\n}\n\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertTab:)) {\n    [self.view.window selectNextKeyView:nil];\n    return YES;\n  }\n  if (selector == @selector(insertBacktab:)) {\n    [self.view.window selectPreviousKeyView:nil];\n    return YES;\n  }\n  if (selector == @selector(cancelOperation:)) {  // Esc\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return NO;\n}\n\n#pragma mark - NSTableViewDelegate\n\n// Even if type selection is disabled, NSTableView still attemps to do it!\n- (BOOL)tableView:(NSTableView*)tableView shouldTypeSelectForEvent:(NSEvent*)event withCurrentSearchString:(NSString*)searchString {\n  return NO;\n}\n\n@end\n\n@implementation GIViewController (Extensions)\n\n- (void)presentAlertWithType:(GIAlertType)type title:(NSString*)title message:(NSString*)format, ... {\n  NSString* message = nil;\n  if (format) {\n    va_list arguments;\n    va_start(arguments, format);\n    message = [[NSString alloc] initWithFormat:format arguments:arguments];\n    va_end(arguments);\n  }\n\n  NSAlert* alert = [[NSAlert alloc] init];\n  alert.messageText = title;\n  alert.informativeText = (message ? message : @\"\");\n  [alert addButtonWithTitle:NSLocalizedString(@\"OK\", nil)];\n  alert.type = type;\n  [alert beginSheetModalForWindow:self.view.window completionHandler:NULL];\n}\n\n- (void)confirmUserActionWithAlertType:(GIAlertType)type\n                                 title:(NSString*)title\n                               message:(NSString*)message\n                                button:(NSString*)button\n             suppressionUserDefaultKey:(NSString*)key\n                                 block:(dispatch_block_t)block {\n  if (key && [[NSUserDefaults standardUserDefaults] boolForKey:key]) {\n    block();\n  } else {\n    NSAlert* alert = [[NSAlert alloc] init];\n    alert.type = type;\n    alert.messageText = title;\n    alert.informativeText = message;\n    alert.showsSuppressionButton = key ? YES : NO;\n    NSButton* defaultButton = [alert addButtonWithTitle:button];\n    if (type == kGIAlertType_Danger) {\n      defaultButton.keyEquivalent = @\"\";\n      defaultButton.hasDestructiveAction = YES;\n    }\n    [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n    [self presentAlert:alert\n        completionHandler:^(NSInteger returnCode) {\n          if (returnCode == NSAlertFirstButtonReturn) {\n            block();\n          }\n          if (alert.suppressionButton.state) {\n            [[NSUserDefaults standardUserDefaults] setBool:YES forKey:key];\n          }\n        }];\n  }\n}\n\n@end\n\n@implementation GIViewController (Subclassing)\n\nstatic NSView* _PreferredFirstResponder(NSView* containerView) {\n  for (NSView* view in containerView.subviews) {\n    if ([view isKindOfClass:[NSSplitView class]]) {\n      for (NSView* splitView in view.subviews) {\n        NSView* tempView = _PreferredFirstResponder(splitView);\n        if (tempView) {\n          return tempView;\n        }\n      }\n    } else {\n      if ([view isKindOfClass:[GIView class]]) {\n        return [[(GIView*)view viewController] preferredFirstResponder];\n      }\n      if ([view acceptsFirstResponder] && ([view isKindOfClass:[NSTextField class]] || [view isKindOfClass:[NSScrollView class]])) {\n        return view;\n      }\n    }\n  }\n  return nil;\n}\n\n- (NSView*)preferredFirstResponder {\n  NSView* view = _PreferredFirstResponder(self.view);\n  XLOG_DEBUG_CHECK(view);\n  return view;\n}\n\n- (void)viewDidResize {\n  ;\n}\n\n- (void)viewWillBeginLiveResize {\n  ;\n}\n\n- (void)viewDidFinishLiveResize {\n  ;\n}\n\n- (void)repositoryDidChange {\n  ;\n}\n\n- (void)repositoryWorkingDirectoryDidChange {\n  ;\n}\n\n- (void)repositoryStateDidUpdate {\n  ;\n}\n\n- (void)repositoryHistoryDidUpdate {\n  ;\n}\n\n- (void)repositoryStashesDidUpdate {\n  ;\n}\n\n- (void)repositoryStatusDidUpdate {\n  ;\n}\n\n- (void)repositorySnapshotsDidUpdate {\n  ;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIWindowController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\ntypedef NS_ENUM(NSUInteger, GIOverlayStyle) {\n  kGIOverlayStyle_Help = 0,\n  kGIOverlayStyle_Informational,\n  kGIOverlayStyle_Warning\n};\n\n@class GIWindowController;\n\n@protocol GIWindowControllerDelegate <NSObject>\n- (BOOL)windowController:(GIWindowController*)controller handleKeyDown:(NSEvent*)event;\n- (void)windowControllerDidChangeHasModalView:(GIWindowController*)controller;\n@end\n\n@interface GIWindow : NSWindow\n#pragma clang diagnostic push\n#pragma clang diagnostic ignored \"-Wproperty-attribute-mismatch\"\n#pragma clang diagnostic ignored \"-Wincompatible-property-type\"\n@property(nonatomic, readonly) GIWindowController* windowController;  // Redeclare superclass property\n#pragma clang diagnostic pop\n@end\n\n@interface GIWindowController : NSWindowController\n@property(nonatomic, weak) id<GIWindowControllerDelegate> delegate;\n@property(strong) GIWindow* window;  // Redeclare superclass property\n\n@property(nonatomic, readonly, getter=isOverlayVisible) BOOL overlayVisible;\n- (void)showOverlayWithStyle:(GIOverlayStyle)style format:(NSString*)format, ... NS_FORMAT_FUNCTION(2, 3);\n- (void)showOverlayWithStyle:(GIOverlayStyle)style message:(NSString*)message;\n- (void)hideOverlay;\n\n@property(nonatomic, readonly) BOOL hasModalView;\n- (void)runModalView:(NSView*)view withInitialFirstResponder:(NSResponder*)responder completionHandler:(void (^)(BOOL success))handler;\n- (void)stopModalView:(BOOL)success;\n@end\n\n@interface GIViewController (GIWindowController)\n- (IBAction)finishModalView:(id)sender;  // Convenience method that calls -stopModalView: with YES\n- (IBAction)cancelModalView:(id)sender;  // Convenience method that calls -stopModalView: with NO\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIWindowController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import <QuartzCore/QuartzCore.h>\n\n#import \"GIWindowController.h\"\n#import \"GIModalView.h\"\n#import \"GIColorView.h\"\n#import \"GIConstants.h\"\n\n#import \"XLFacilityMacros.h\"\n#import \"GIGraphView.h\"\n\n#define kOverlayAnimationInDuration 0.2  // seconds\n#define kOverlayAnimationOutDuration 0.15  // seconds\n\n@interface GIWindowController ()\n@property(nonatomic, strong) IBOutlet GIColorView* overlayView;\n@property(nonatomic, weak) IBOutlet NSTextField* overlayTextField;\n@property(nonatomic, weak) IBOutlet NSButton* overlayCloseButton;\n- (GIModalView*)modalViewIfVisible;\n@end\n\n@interface GIFieldEditor : NSTextView\n@end\n\n@implementation GIFieldEditor\n\n- (void)keyDown:(NSEvent*)event {\n  if (event.keyCode == kGIKeyCode_Tab) {\n    if (event.modifierFlags & NSEventModifierFlagShift) {\n      [self.window selectPreviousKeyView:nil];\n    } else {\n      [self.window selectNextKeyView:nil];\n    }\n  } else {\n    [self.nextResponder tryToPerform:@selector(keyDown:) with:event];\n  }\n}\n\n- (void)keyUp:(NSEvent*)event {\n  [self.nextResponder tryToPerform:@selector(keyUp:) with:event];\n}\n\n@end\n\n@implementation GIWindow {\n  GIFieldEditor* _fieldEditor;\n}\n\n@dynamic windowController;  // Prevent synthetizing a property overriding the superclass methods\n\n// For NSTextFields that are only selectable, return a custom field editor that forwards all key events to the next responder\n- (NSText*)fieldEditor:(BOOL)createFlag forObject:(id)anObject {\n  if ([anObject isKindOfClass:[NSTextField class]] && [(NSTextField*)anObject isSelectable] && ![(NSTextField*)anObject isEditable]) {\n    if (!_fieldEditor && createFlag) {\n      _fieldEditor = [[GIFieldEditor alloc] init];\n      _fieldEditor.fieldEditor = YES;\n    }\n    return _fieldEditor;\n  }\n  return [super fieldEditor:createFlag forObject:anObject];\n}\n\nstatic void _WalkViewTree(NSView* view, NSMutableArray* array) {\n  for (NSView* subview in view.subviews) {\n    if (!subview.hidden) {\n      if ([subview isKindOfClass:[NSTextField class]] || [subview isKindOfClass:[NSTextView class]] || ([subview isKindOfClass:[NSTableView class]] && (![[(NSTableView*)subview delegate] respondsToSelector:@selector(selectionShouldChangeInTableView:)] || [[(NSTableView*)subview delegate] selectionShouldChangeInTableView:(NSTableView*)subview]))  // Allows NSTableView assuming it doesn't return NO for -selectionShouldChangeInTableView:\n          || [subview isKindOfClass:[GIGraphView class]]) {  // Always allow GIGraphView which can become first-responder\n        if (subview.acceptsFirstResponder) {\n          [array addObject:subview];\n        }\n      }\n      _WalkViewTree(subview, array);\n    }\n  }\n}\n\n- (void)_selectKeyView:(NSInteger)delta {\n  NSMutableArray* array = [[NSMutableArray alloc] init];\n  GIModalView* modalView = [self.windowController modalViewIfVisible];\n  if (modalView) {\n    _WalkViewTree(modalView, array);\n  } else {\n    _WalkViewTree(self.contentView, array);\n    for (NSToolbarItem* item in self.toolbar.items) {\n      _WalkViewTree(item.view, array);\n    }\n  }\n  if (array.count) {\n    NSUInteger index = [array indexOfObjectIdenticalTo:self.firstResponder];\n    if (index == NSNotFound) {\n      index = 0;\n    } else {\n      index = (index + array.count + delta) % array.count;\n    }\n    [self makeFirstResponder:array[index]];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)selectNextKeyView:(id)sender {\n  [self _selectKeyView:1];\n}\n\n- (void)selectPreviousKeyView:(id)sender {\n  [self _selectKeyView:-1];\n}\n\n- (void)keyDown:(NSEvent*)event {\n  if (![self.windowController.delegate windowController:self.windowController handleKeyDown:event]) {\n    [super keyDown:event];\n  }\n}\n\n- (BOOL)performKeyEquivalent:(NSEvent*)event {\n  GIModalView* modalView = [self.windowController modalViewIfVisible];\n  return modalView ? [modalView performKeyEquivalent:event] : [super performKeyEquivalent:event];\n}\n\n- (void)sendEvent:(NSEvent*)event {\n  BOOL escapeKeyDown = (event.type == NSEventTypeKeyDown) && (event.keyCode == kGIKeyCode_Esc);\n  if (escapeKeyDown && self.windowController.hasModalView) {\n    [self.windowController stopModalView:NO];\n  } else if (escapeKeyDown && self.windowController.overlayVisible) {\n    [self.windowController hideOverlay];\n  } else {\n    [super sendEvent:event];\n  }\n}\n\n@end\n\nstatic NSColor* _helpColor = nil;\nstatic NSColor* _informationalColor = nil;\nstatic NSColor* _warningColor = nil;\n\n@implementation GIWindowController {\n  GIModalView* _modalView;\n  void (^_handler)(BOOL);\n  NSResponder* _previousResponder;\n  NSTrackingArea* _area;\n  CFRunLoopTimerRef _overlayTimer;  // Can't use a NSTimer because of retain-cycle\n  CFTimeInterval _overlayDelay;\n}\n\n@dynamic window;  // Prevent synthetizing a property overriding the superclass methods\n\n+ (void)initialize {\n  _helpColor = [NSColor colorWithDeviceRed:(0.0 / 255.0) green:(104.0 / 255.0) blue:(217.0 / 255.0) alpha:0.9];\n  _informationalColor = [NSColor colorWithDeviceRed:(75.0 / 255.0) green:(75.0 / 255.0) blue:(75.0 / 255.0) alpha:0.9];\n  _warningColor = [NSColor colorWithDeviceRed:(204.0 / 255.0) green:(82.0 / 255.0) blue:(82.0 / 255.0) alpha:0.9];\n}\n\nstatic void _TimerCallBack(CFRunLoopTimerRef timer, void* info) {\n  @autoreleasepool {\n    [(__bridge GIWindowController*)info dismissOverlay:nil];\n  }\n}\n\n- (instancetype)initWithWindow:(NSWindow*)window {\n  if ((self = [super initWithWindow:window])) {\n    [[NSBundle bundleForClass:[GIWindowController class]] loadNibNamed:@\"GIWindowController\" owner:self topLevelObjects:NULL];\n    XLOG_DEBUG_CHECK(_overlayView);\n\n    _area = [[NSTrackingArea alloc] initWithRect:NSZeroRect options:(NSTrackingInVisibleRect | NSTrackingActiveAlways | NSTrackingMouseEnteredAndExited) owner:self userInfo:nil];\n    [_overlayView addTrackingArea:_area];\n\n    _modalView = [[GIModalView alloc] initWithFrame:NSZeroRect];\n    _modalView.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;\n\n    CFRunLoopTimerContext context = {0, (__bridge void*)self, NULL, NULL, NULL};\n    _overlayTimer = CFRunLoopTimerCreate(kCFAllocatorDefault, HUGE_VALF, HUGE_VALF, 0, 0, _TimerCallBack, &context);\n    CFRunLoopAddTimer(CFRunLoopGetMain(), _overlayTimer, kCFRunLoopCommonModes);\n  }\n  return self;\n}\n\n- (void)dealloc {\n  CFRunLoopTimerInvalidate(_overlayTimer);\n  CFRelease(_overlayTimer);\n}\n\n- (BOOL)isOverlayVisible {\n  return (_overlayView.superview != nil);\n}\n\n- (void)showOverlayWithStyle:(GIOverlayStyle)style format:(NSString*)format, ... {\n  va_list arguments;\n  va_start(arguments, format);\n  NSString* message = [[NSString alloc] initWithFormat:format arguments:arguments];\n  va_end(arguments);\n\n  [self showOverlayWithStyle:style message:message];\n}\n\n- (void)showOverlayWithStyle:(GIOverlayStyle)style message:(NSString*)message {\n  switch (style) {\n    case kGIOverlayStyle_Help:\n      _overlayView.backgroundColor = _helpColor;\n      _overlayDelay = 4.0;\n      break;\n\n    case kGIOverlayStyle_Informational:\n      _overlayView.backgroundColor = _informationalColor;\n      _overlayDelay = 3.0;\n      break;\n\n    case kGIOverlayStyle_Warning:\n      _overlayView.backgroundColor = _warningColor;\n      _overlayDelay = 5.0;\n      break;\n  }\n\n  if (_overlayView.superview == nil) {\n    NSRect bounds = self.window.contentLayoutRect;\n    NSRect frame = _overlayView.frame;\n    _overlayView.frame = NSMakeRect(0, bounds.size.height - frame.size.height, bounds.size.width, frame.size.height);\n    _overlayView.alphaValue = 0;\n    [self.window.contentView addSubview:_overlayView];  // Must be above everything else\n    [CATransaction flush];\n\n    _overlayTextField.stringValue = message;\n    [NSAnimationContext runAnimationGroup:^(NSAnimationContext* _Nonnull context) {\n      context.duration = kOverlayAnimationInDuration;\n      context.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];\n      _overlayView.animator.alphaValue = 1;\n    }];\n  } else {\n    [NSAnimationContext\n        runAnimationGroup:^(NSAnimationContext* _Nonnull context) {\n          context.duration = kOverlayAnimationInDuration;\n          context.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn];\n          _overlayTextField.animator.alphaValue = 0.0;\n        }\n        completionHandler:^{\n          _overlayTextField.stringValue = message;\n          [NSAnimationContext runAnimationGroup:^(NSAnimationContext* _Nonnull context) {\n            context.duration = kOverlayAnimationInDuration;\n            context.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];\n            _overlayTextField.animator.alphaValue = 1.0;\n          }];\n        }];\n  }\n\n  CFRunLoopTimerSetNextFireDate(_overlayTimer, CFAbsoluteTimeGetCurrent() + _overlayDelay);\n}\n\n- (void)hideOverlay {\n  if (_overlayView.superview) {\n    [NSAnimationContext\n        runAnimationGroup:^(NSAnimationContext* _Nonnull context) {\n          context.duration = kOverlayAnimationOutDuration;\n          context.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];\n          _overlayView.animator.alphaValue = 0;\n        }\n        completionHandler:^{\n          [_overlayView removeFromSuperview];\n        }];\n\n    CFRunLoopTimerSetNextFireDate(_overlayTimer, HUGE_VALF);\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (IBAction)dismissOverlay:(id)sender {\n  [self hideOverlay];\n}\n\n- (void)mouseEntered:(NSEvent*)event {\n  if (event.trackingArea == _area) {\n    CFRunLoopTimerSetNextFireDate(_overlayTimer, HUGE_VALF);\n  } else {\n    [super mouseEntered:event];\n  }\n}\n\n- (void)mouseExited:(NSEvent*)event {\n  if (event.trackingArea == _area) {\n    CFRunLoopTimerSetNextFireDate(_overlayTimer, CFAbsoluteTimeGetCurrent() + _overlayDelay);\n  } else {\n    [super mouseExited:event];\n  }\n}\n\n- (GIModalView*)modalViewIfVisible {\n  return _modalView.superview ? _modalView : nil;\n}\n\n- (BOOL)hasModalView {\n  return (_modalView.superview != nil);\n}\n\n- (void)runModalView:(NSView*)view withInitialFirstResponder:(NSResponder*)responder completionHandler:(void (^)(BOOL success))handler {\n  XLOG_DEBUG_CHECK(_modalView);\n  XLOG_DEBUG_CHECK(!_handler);\n\n  _previousResponder = self.window.firstResponder;\n  [self.window makeFirstResponder:nil];  // Must happen before to abort any text field editing\n\n  [[NSProcessInfo processInfo] disableSuddenTermination];\n\n  XLOG_DEBUG_CHECK(self.window.areCursorRectsEnabled);\n  [self.window disableCursorRects];  // TODO: Looks like cursor rects are automatically re-enabled when resizing the window?!\n  [[NSCursor arrowCursor] set];\n\n  _modalView.frame = [self.window.contentView bounds];\n  if (_overlayView.superview) {  // Must be above everything else except overlay view\n    [self.window.contentView addSubview:_modalView positioned:NSWindowBelow relativeTo:_overlayView];\n  } else {\n    [self.window.contentView addSubview:_modalView];\n  }\n  [_delegate windowControllerDidChangeHasModalView:self];\n\n  [_modalView presentContentView:view withCompletionHandler:NULL];\n\n  [self.window makeFirstResponder:responder];\n\n  _handler = handler;\n}\n\n- (void)stopModalView:(BOOL)success {\n  XLOG_DEBUG_CHECK(_handler);\n\n  [self.window makeFirstResponder:_previousResponder];\n  _previousResponder = nil;\n\n  [_modalView dismissContentViewWithCompletionHandler:^{\n    [_modalView removeFromSuperview];\n    [_delegate windowControllerDidChangeHasModalView:self];\n\n    [self.window enableCursorRects];  // TODO: This hides the cursor until it moves again?!\n\n    [[NSProcessInfo processInfo] enableSuddenTermination];\n  }];\n\n  if (_handler) {\n    // Defer the callback a bit to ensure animations run in parallel to callback execution\n    //\n    // Performed on the main run loop instead of the main queue to ensure that the\n    // main queue is serviced during a modal session\n    GIPerformOnMainRunLoop(^{\n      _handler(success);\n      _handler = NULL;\n    });\n  }\n}\n\n@end\n\n@implementation GIViewController (GIWindowController)\n\n- (IBAction)finishModalView:(id)sender {\n  [self.windowController stopModalView:YES];\n}\n\n- (IBAction)cancelModalView:(id)sender {\n  [self.windowController stopModalView:NO];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/GIWindowController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14490.70\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14490.70\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIWindowController\">\n            <connections>\n                <outlet property=\"overlayCloseButton\" destination=\"RqW-TO-VRM\" id=\"82l-vu-eZz\"/>\n                <outlet property=\"overlayTextField\" destination=\"7MR-W6-yhX\" id=\"HJD-ux-NuK\"/>\n                <outlet property=\"overlayView\" destination=\"XhT-61-Yxc\" id=\"9dU-ow-ojE\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customView appearanceType=\"darkAqua\" id=\"XhT-61-Yxc\" customClass=\"GIColorView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"50\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" id=\"7MR-W6-yhX\">\n                    <rect key=\"frame\" x=\"40\" y=\"17\" width=\"920\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;TEXT&gt;\" id=\"OaN-6N-rRC\">\n                        <font key=\"font\" metaFont=\"systemBold\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button id=\"RqW-TO-VRM\">\n                    <rect key=\"frame\" x=\"973\" y=\"11\" width=\"20\" height=\"28\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"square\" bezelStyle=\"shadowlessSquare\" image=\"NSStopProgressFreestandingTemplate\" imagePosition=\"only\" alignment=\"center\" inset=\"2\" id=\"Rxu-uK-fp6\">\n                        <behavior key=\"behavior\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"dismissOverlay:\" target=\"-2\" id=\"M2B-7c-Jmk\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"-175\" y=\"-307\"/>\n        </customView>\n    </objects>\n    <resources>\n        <image name=\"NSStopProgressFreestandingTemplate\" width=\"14\" height=\"14\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUpKit/Utilities/NSBundle+GitUpKit.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import <Foundation/Foundation.h>\n\n@interface NSBundle (GitUpKit)\n\n@property(class, strong, readonly) NSBundle* gitUpKitBundle;\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/NSBundle+GitUpKit.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"NSBundle+GitUpKit.h\"\n#import \"GIBranch.h\"  // just any class included on all platforms\n\n@implementation NSBundle (GitUpKit)\n\n+ (NSBundle*)gitUpKitBundle {\n  return [NSBundle bundleForClass:GIBranch.class];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/NSColor+GINamedColors.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIAppKit.h\"\n\n@interface NSColor (GINamedColors)\n\n@property(class, strong, readonly) NSArray<NSColor*>* gitUpGraphAlternatingBranchColors;\n\n@property(class, strong, readonly) NSColor* gitUpSeparatorColor;\n\n@property(class, strong, readonly) NSColor* gitUpDiffDeletedTextBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffDeletedTextHighlightColor;\n@property(class, strong, readonly) NSColor* gitUpDiffAddedTextBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffAddedTextHighlightColor;\n@property(class, strong, readonly) NSColor* gitUpDiffSeparatorBackgroundColor;\n\n@property(class, strong, readonly) NSColor* gitUpDiffConflictBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffAddedBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffModifiedBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffDeletedBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffRenamedBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpDiffUntrackedBackgroundColor;\n\n@property(class, strong, readonly) NSColor* gitUpConfigConflictBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpConfigGlobalBackgroundColor;\n@property(class, strong, readonly) NSColor* gitUpConfigHighlightBackgroundColor;\n\n@property(class, strong, readonly) NSColor* gitUpCommitHeaderBackgroundColor;\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/NSColor+GINamedColors.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"NSColor+GINamedColors.h\"\n#import \"NSBundle+GitUpKit.h\"\n\n@implementation NSColor (GINamedColors)\n\n+ (NSArray*)gitUpGraphAlternatingBranchColors {\n  static dispatch_once_t once;\n  static NSArray* colors;\n  dispatch_once(&once, ^{\n    NSBundle* bundle = NSBundle.gitUpKitBundle;\n    colors = @[\n      [NSColor colorNamed:@\"branch/1\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/2\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/3\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/4\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/5\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/6\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/7\"\n                   bundle:bundle],\n      [NSColor colorNamed:@\"branch/8\"\n                   bundle:bundle]\n    ];\n  });\n  return colors;\n}\n\n#define IMPLEMENT_NAMED_COLOR(__NAME__, __ASSET__) \\\n  +(NSColor*)gitUp##__NAME__##Color {              \\\n    NSBundle* bundle = NSBundle.gitUpKitBundle;    \\\n    return [NSColor colorNamed:@__ASSET__          \\\n                        bundle:bundle];            \\\n  }\n\nIMPLEMENT_NAMED_COLOR(Separator, \"separator\")\nIMPLEMENT_NAMED_COLOR(DiffDeletedTextBackground, \"diff/deleted_text_background\")\nIMPLEMENT_NAMED_COLOR(DiffDeletedTextHighlight, \"diff/deleted_text_highlight\")\nIMPLEMENT_NAMED_COLOR(DiffAddedTextBackground, \"diff/added_text_background\")\nIMPLEMENT_NAMED_COLOR(DiffAddedTextHighlight, \"diff/added_text_highlight\")\nIMPLEMENT_NAMED_COLOR(DiffSeparatorBackground, \"diff/separator_background\")\nIMPLEMENT_NAMED_COLOR(DiffConflictBackground, \"diff/conflict_background\")\nIMPLEMENT_NAMED_COLOR(DiffAddedBackground, \"diff/added_background\")\nIMPLEMENT_NAMED_COLOR(DiffModifiedBackground, \"diff/modified_background\")\nIMPLEMENT_NAMED_COLOR(DiffDeletedBackground, \"diff/deleted_background\")\nIMPLEMENT_NAMED_COLOR(DiffRenamedBackground, \"diff/renamed_background\")\nIMPLEMENT_NAMED_COLOR(DiffUntrackedBackground, \"diff/untracked_background\")\nIMPLEMENT_NAMED_COLOR(ConfigConflictBackground, \"config/conflict_background\")\nIMPLEMENT_NAMED_COLOR(ConfigGlobalBackground, \"config/global_background\")\nIMPLEMENT_NAMED_COLOR(ConfigHighlightBackground, \"config/highlight_background\")\nIMPLEMENT_NAMED_COLOR(CommitHeaderBackground, \"commit/header_background\")\n\n#undef IMPLEMENT_NAMED_COLOR\n\n@end\n"
  },
  {
    "path": "GitUpKit/Utilities/Utilities.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Utilities/Utilities.xcassets/icon_alert_caution.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_alert_caution.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_alert_caution@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Utilities/Utilities.xcassets/icon_alert_note.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\",\n      \"filename\" : \"icon_alert_note.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\",\n      \"filename\" : \"icon_alert_note@2x.png\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Utilities/Utilities.xcassets/icon_alert_stop.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"filename\" : \"icon_alert_stop.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"filename\" : \"icon_alert_stop@2x.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "GitUpKit/Utilities/Utilities.xcassets/separator.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"reference\" : \"separatorColor\"\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"reference\" : \"separatorColor\"\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"contrast\",\n          \"value\" : \"high\"\n        }\n      ],\n      \"color\" : {\n        \"reference\" : \"separatorColor\"\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        },\n        {\n          \"appearance\" : \"contrast\",\n          \"value\" : \"high\"\n        }\n      ],\n      \"color\" : {\n        \"reference\" : \"separatorColor\"\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIAdvancedCommitViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"NSView safe area layout guides\" minToolsVersion=\"12.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIAdvancedCommitViewController\">\n            <connections>\n                <outlet property=\"amendButton\" destination=\"eFu-23-SH3\" id=\"Cz1-po-A9M\"/>\n                <outlet property=\"commitButton\" destination=\"mNK-0g-48P\" id=\"X0j-H4-mdF\"/>\n                <outlet property=\"diffContentsView\" destination=\"hwM-6S-E69\" id=\"ze2-KZ-coi\"/>\n                <outlet property=\"discardButton\" destination=\"4zE-Zk-8sX\" id=\"dm8-Vg-dZ6\"/>\n                <outlet property=\"indexFilesView\" destination=\"SLl-qM-6U5\" id=\"q90-XG-uOo\"/>\n                <outlet property=\"indexHeaderView\" destination=\"0zR-9s-ty2\" id=\"BLn-7k-Ti2\"/>\n                <outlet property=\"infoTextField\" destination=\"H0U-9x-3Cl\" id=\"xIS-An-utS\"/>\n                <outlet property=\"messageTextView\" destination=\"ZGk-oR-MNP\" id=\"bmf-B6-urc\"/>\n                <outlet property=\"stageButton\" destination=\"nf2-5l-LHg\" id=\"Y5g-wM-FRo\"/>\n                <outlet property=\"unstageButton\" destination=\"0n6-Tx-H9g\" id=\"RRF-VA-co7\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n                <outlet property=\"workdirFilesView\" destination=\"b2z-ev-lVE\" id=\"t3L-3T-o0g\"/>\n                <outlet property=\"workdirHeaderView\" destination=\"EEr-wZ-rpO\" id=\"1D0-9i-ne5\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"600\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <splitView dividerStyle=\"thin\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZbB-IP-Zuo\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"48\" width=\"1000\" height=\"500\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"KtH-4j-g0D\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"371\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"O4G-mD-5bu\" customClass=\"GIDualSplitView\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"371\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <customView fixedFrame=\"YES\" id=\"hyR-9a-6mn\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"371\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                            <subviews>\n                                                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"oRD-oN-b2v\" customClass=\"GIDualSplitView\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"371\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                    <subviews>\n                                                        <customView misplaced=\"YES\" id=\"WHS-6x-fR7\">\n                                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"213\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                            <subviews>\n                                                                <box verticalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"qxb-gR-CFd\">\n                                                                    <rect key=\"frame\" x=\"0.0\" y=\"40\" width=\"300\" height=\"5\"/>\n                                                                </box>\n                                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"b2z-ev-lVE\">\n                                                                    <rect key=\"frame\" x=\"0.0\" y=\"40\" width=\"300\" height=\"141\"/>\n                                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                </customView>\n                                                                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4zE-Zk-8sX\">\n                                                                    <rect key=\"frame\" x=\"12\" y=\"9\" width=\"100\" height=\"24\"/>\n                                                                    <buttonCell key=\"cell\" type=\"push\" title=\"Discard All…\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"ld8-vc-cxM\">\n                                                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                                        <string key=\"keyEquivalent\">d</string>\n                                                                        <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                                                                    </buttonCell>\n                                                                    <connections>\n                                                                        <action selector=\"discardAll:\" target=\"-2\" id=\"yfG-b0-hpM\"/>\n                                                                    </connections>\n                                                                </button>\n                                                                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"nf2-5l-LHg\">\n                                                                    <rect key=\"frame\" x=\"189\" y=\"9\" width=\"99\" height=\"24\"/>\n                                                                    <buttonCell key=\"cell\" type=\"push\" title=\"Stage All\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"ia5-7P-vyF\">\n                                                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                                        <string key=\"keyEquivalent\">s</string>\n                                                                    </buttonCell>\n                                                                    <connections>\n                                                                        <action selector=\"stageAll:\" target=\"-2\" id=\"2S1-Ki-xaa\"/>\n                                                                    </connections>\n                                                                </button>\n                                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"EEr-wZ-rpO\" customClass=\"GIColorView\">\n                                                                    <rect key=\"frame\" x=\"0.0\" y=\"179\" width=\"300\" height=\"34\"/>\n                                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                                    <subviews>\n                                                                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GEC-hP-IwB\">\n                                                                            <rect key=\"frame\" x=\"8\" y=\"10\" width=\"122\" height=\"16\"/>\n                                                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Working Directory\" id=\"fB8-dk-yEW\">\n                                                                                <font key=\"font\" metaFont=\"systemBold\"/>\n                                                                                <color key=\"textColor\" name=\"alternateSelectedControlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            </textFieldCell>\n                                                                        </textField>\n                                                                    </subviews>\n                                                                </customView>\n                                                            </subviews>\n                                                            <constraints>\n                                                                <constraint firstAttribute=\"bottom\" secondItem=\"nf2-5l-LHg\" secondAttribute=\"bottom\" constant=\"9\" id=\"2Af-qN-AKv\"/>\n                                                                <constraint firstAttribute=\"trailing\" secondItem=\"qxb-gR-CFd\" secondAttribute=\"trailing\" id=\"66b-pf-shG\"/>\n                                                                <constraint firstItem=\"nf2-5l-LHg\" firstAttribute=\"width\" secondItem=\"4zE-Zk-8sX\" secondAttribute=\"width\" id=\"67d-rD-wjC\"/>\n                                                                <constraint firstItem=\"qxb-gR-CFd\" firstAttribute=\"leading\" secondItem=\"WHS-6x-fR7\" secondAttribute=\"leading\" id=\"LMN-ZX-G8N\"/>\n                                                                <constraint firstAttribute=\"trailing\" secondItem=\"nf2-5l-LHg\" secondAttribute=\"trailing\" constant=\"12\" id=\"Onj-UA-p4D\"/>\n                                                                <constraint firstItem=\"4zE-Zk-8sX\" firstAttribute=\"top\" secondItem=\"qxb-gR-CFd\" secondAttribute=\"bottom\" constant=\"9\" id=\"XCM-cx-Q9H\"/>\n                                                                <constraint firstItem=\"nf2-5l-LHg\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"4zE-Zk-8sX\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"eMw-lX-F4C\"/>\n                                                                <constraint firstAttribute=\"bottom\" secondItem=\"4zE-Zk-8sX\" secondAttribute=\"bottom\" constant=\"9\" id=\"qCx-UQ-J9X\"/>\n                                                                <constraint firstItem=\"4zE-Zk-8sX\" firstAttribute=\"leading\" secondItem=\"WHS-6x-fR7\" secondAttribute=\"leading\" constant=\"12\" id=\"uGe-qH-e40\"/>\n                                                            </constraints>\n                                                        </customView>\n                                                        <customView fixedFrame=\"YES\" id=\"1t4-og-I2D\">\n                                                            <rect key=\"frame\" x=\"0.0\" y=\"214\" width=\"300\" height=\"157\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                            <subviews>\n                                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"SLl-qM-6U5\">\n                                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"124\"/>\n                                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                </customView>\n                                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0zR-9s-ty2\" customClass=\"GIColorView\">\n                                                                    <rect key=\"frame\" x=\"0.0\" y=\"124\" width=\"300\" height=\"33\"/>\n                                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                                    <subviews>\n                                                                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hEs-Hp-dbT\">\n                                                                            <rect key=\"frame\" x=\"8\" y=\"9\" width=\"40\" height=\"16\"/>\n                                                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Index\" id=\"UV4-jc-9yJ\">\n                                                                                <font key=\"font\" metaFont=\"systemBold\"/>\n                                                                                <color key=\"textColor\" name=\"alternateSelectedControlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            </textFieldCell>\n                                                                        </textField>\n                                                                    </subviews>\n                                                                </customView>\n                                                            </subviews>\n                                                        </customView>\n                                                    </subviews>\n                                                    <holdingPriorities>\n                                                        <real value=\"250\"/>\n                                                        <real value=\"250\"/>\n                                                    </holdingPriorities>\n                                                    <userDefinedRuntimeAttributes>\n                                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                                                            <real key=\"value\" value=\"150\"/>\n                                                        </userDefinedRuntimeAttribute>\n                                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                                                            <real key=\"value\" value=\"150\"/>\n                                                        </userDefinedRuntimeAttribute>\n                                                    </userDefinedRuntimeAttributes>\n                                                </splitView>\n                                            </subviews>\n                                        </customView>\n                                        <customView fixedFrame=\"YES\" id=\"R7z-QE-KSZ\">\n                                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"371\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                            <subviews>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hwM-6S-E69\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"371\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                </customView>\n                                            </subviews>\n                                        </customView>\n                                    </subviews>\n                                    <holdingPriorities>\n                                        <real value=\"250\"/>\n                                        <real value=\"250\"/>\n                                    </holdingPriorities>\n                                    <userDefinedRuntimeAttributes>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                                            <real key=\"value\" value=\"300\"/>\n                                        </userDefinedRuntimeAttribute>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                                            <real key=\"value\" value=\"500\"/>\n                                        </userDefinedRuntimeAttribute>\n                                    </userDefinedRuntimeAttributes>\n                                </splitView>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"yf9-6S-SRZ\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"372\" width=\"1000\" height=\"128\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <scrollView focusRingType=\"exterior\" fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JJQ-Rg-cUm\">\n                                    <rect key=\"frame\" x=\"12\" y=\"0.0\" width=\"976\" height=\"121\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"MSi-0x-dun\">\n                                        <rect key=\"frame\" x=\"1\" y=\"1\" width=\"974\" height=\"119\"/>\n                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                        <subviews>\n                                            <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"ZGk-oR-MNP\" customClass=\"GICommitMessageView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"40\" width=\"974\" height=\"119\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <size key=\"minSize\" width=\"974\" height=\"119\"/>\n                                                <size key=\"maxSize\" width=\"10000000\" height=\"10000000\"/>\n                                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <connections>\n                                                    <outlet property=\"delegate\" destination=\"-2\" id=\"N5I-f7-WzM\"/>\n                                                </connections>\n                                            </textView>\n                                        </subviews>\n                                    </clipView>\n                                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"tWl-w4-mdK\">\n                                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                    </scroller>\n                                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"QYF-cC-yoX\">\n                                        <rect key=\"frame\" x=\"958\" y=\"1\" width=\"17\" height=\"103\"/>\n                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                    </scroller>\n                                </scrollView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"100\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n                <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"RWR-dc-6SK\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"48\"/>\n                    <subviews>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"249\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"H0U-9x-3Cl\">\n                            <rect key=\"frame\" x=\"119\" y=\"17\" width=\"622\" height=\"14\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" truncatesLastVisibleLine=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"&lt;INFO&gt;\" id=\"dbO-mu-br6\">\n                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"firstBaseline\" spacing=\"17\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"A6N-Vj-NFH\">\n                            <rect key=\"frame\" x=\"747\" y=\"12\" width=\"241\" height=\"24\"/>\n                            <subviews>\n                                <button translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eFu-23-SH3\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"4\" width=\"104\" height=\"16\"/>\n                                    <buttonCell key=\"cell\" type=\"check\" title=\"Amend HEAD\" bezelStyle=\"regularSquare\" imagePosition=\"left\" inset=\"2\" id=\"C2R-ad-b2o\">\n                                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\">a</string>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"toggleAmend:\" target=\"-2\" id=\"sJx-aM-le4\"/>\n                                    </connections>\n                                </button>\n                                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mNK-0g-48P\">\n                                    <rect key=\"frame\" x=\"121\" y=\"0.0\" width=\"120\" height=\"24\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Commit\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"GtK-Iv-qM4\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                                        <connections>\n                                            <action selector=\"commit:\" target=\"-2\" id=\"TeY-Mz-e1l\"/>\n                                        </connections>\n                                    </buttonCell>\n                                    <constraints>\n                                        <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"120\" id=\"0U3-Fb-wIs\"/>\n                                    </constraints>\n                                </button>\n                            </subviews>\n                            <visibilityPriorities>\n                                <integer value=\"1000\"/>\n                                <integer value=\"1000\"/>\n                            </visibilityPriorities>\n                            <customSpacing>\n                                <real value=\"3.4028234663852886e+38\"/>\n                                <real value=\"3.4028234663852886e+38\"/>\n                            </customSpacing>\n                        </stackView>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0n6-Tx-H9g\">\n                            <rect key=\"frame\" x=\"12\" y=\"12\" width=\"94\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Unstage All\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"oqv-6o-u68\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\">u</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"unstageAll:\" target=\"-2\" id=\"gIv-KI-C4E\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <constraints>\n                        <constraint firstItem=\"H0U-9x-3Cl\" firstAttribute=\"leading\" secondItem=\"0n6-Tx-H9g\" secondAttribute=\"trailing\" constant=\"15\" id=\"3rD-3M-Ou5\"/>\n                        <constraint firstItem=\"0n6-Tx-H9g\" firstAttribute=\"leading\" secondItem=\"RWR-dc-6SK\" secondAttribute=\"leading\" constant=\"12\" id=\"J7R-Mq-Ucs\"/>\n                        <constraint firstAttribute=\"bottom\" secondItem=\"0n6-Tx-H9g\" secondAttribute=\"bottom\" constant=\"12\" id=\"JCN-Wi-669\"/>\n                        <constraint firstItem=\"0n6-Tx-H9g\" firstAttribute=\"top\" secondItem=\"RWR-dc-6SK\" secondAttribute=\"top\" constant=\"12\" id=\"VFp-g6-Z0w\"/>\n                        <constraint firstAttribute=\"trailing\" secondItem=\"A6N-Vj-NFH\" secondAttribute=\"trailing\" constant=\"12\" id=\"W2n-ly-WJs\"/>\n                        <constraint firstItem=\"A6N-Vj-NFH\" firstAttribute=\"top\" secondItem=\"RWR-dc-6SK\" secondAttribute=\"top\" constant=\"12\" id=\"ZHy-Dp-fY0\"/>\n                        <constraint firstItem=\"H0U-9x-3Cl\" firstAttribute=\"centerY\" secondItem=\"RWR-dc-6SK\" secondAttribute=\"centerY\" id=\"fk3-3c-y6u\"/>\n                        <constraint firstAttribute=\"bottom\" secondItem=\"A6N-Vj-NFH\" secondAttribute=\"bottom\" constant=\"12\" id=\"qYB-CM-hIm\"/>\n                        <constraint firstItem=\"A6N-Vj-NFH\" firstAttribute=\"leading\" secondItem=\"H0U-9x-3Cl\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"sP6-vR-j4X\"/>\n                    </constraints>\n                </customView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"ouT-JC-D0N\" firstAttribute=\"top\" secondItem=\"ZbB-IP-Zuo\" secondAttribute=\"top\" id=\"FDN-vp-wDm\"/>\n                <constraint firstItem=\"ouT-JC-D0N\" firstAttribute=\"bottom\" secondItem=\"RWR-dc-6SK\" secondAttribute=\"bottom\" id=\"Lgt-Lf-he3\"/>\n                <constraint firstItem=\"RWR-dc-6SK\" firstAttribute=\"trailing\" secondItem=\"ouT-JC-D0N\" secondAttribute=\"trailing\" id=\"MSX-rY-YCk\"/>\n                <constraint firstItem=\"RWR-dc-6SK\" firstAttribute=\"leading\" secondItem=\"ouT-JC-D0N\" secondAttribute=\"leading\" id=\"N4X-Fp-SZo\"/>\n                <constraint firstItem=\"ZbB-IP-Zuo\" firstAttribute=\"trailing\" secondItem=\"ouT-JC-D0N\" secondAttribute=\"trailing\" id=\"WLB-7I-bmw\"/>\n                <constraint firstItem=\"ZbB-IP-Zuo\" firstAttribute=\"leading\" secondItem=\"ouT-JC-D0N\" secondAttribute=\"leading\" id=\"WzL-sd-Mc0\"/>\n                <constraint firstItem=\"RWR-dc-6SK\" firstAttribute=\"top\" secondItem=\"ZbB-IP-Zuo\" secondAttribute=\"bottom\" id=\"vQM-mq-Wzj\"/>\n            </constraints>\n            <viewLayoutGuide key=\"safeArea\" id=\"ouT-JC-D0N\"/>\n            <viewLayoutGuide key=\"layoutMargins\" id=\"5Q0-kp-UK0\"/>\n            <point key=\"canvasLocation\" x=\"541\" y=\"-2004\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GICommitRewriterViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GICommitRewriterViewController\">\n            <connections>\n                <outlet property=\"contentsView\" destination=\"hwM-6S-E69\" id=\"aJi-zv-CuV\"/>\n                <outlet property=\"continueButton\" destination=\"3PR-J1-aKE\" id=\"S3e-F9-2ES\"/>\n                <outlet property=\"filesView\" destination=\"OjA-hK-WAP\" id=\"jGe-bb-qi8\"/>\n                <outlet property=\"infoTextField\" destination=\"uTH-et-agS\" id=\"UEP-Tg-SWb\"/>\n                <outlet property=\"messageTextView\" destination=\"vJg-vt-cWY\" id=\"LHF-gK-x6M\"/>\n                <outlet property=\"messageView\" destination=\"RtD-0g-Q5a\" id=\"tVN-A5-e9C\"/>\n                <outlet property=\"titleTextField\" destination=\"hZw-Mr-R8r\" id=\"vIR-om-gBI\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GrA-cS-Ts1\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"470\" width=\"1000\" height=\"30\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <subviews>\n                        <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"e23-jK-FRM\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"-2\" width=\"1000\" height=\"5\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                        </box>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"r86-wZ-wly\">\n                            <rect key=\"frame\" x=\"13\" y=\"8\" width=\"122\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Rewriting Commit:\" id=\"e11-6O-HXn\">\n                                <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hZw-Mr-R8r\">\n                            <rect key=\"frame\" x=\"135\" y=\"8\" width=\"847\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;TITLE&gt;\" id=\"rrE-b8-3j3\">\n                                <font key=\"font\" metaFont=\"cellTitle\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                    </subviews>\n                </customView>\n                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ggX-gG-WJV\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"470\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"ac4-Pc-4Ig\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"470\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZBF-ni-AKe\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"43\" width=\"300\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                </box>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OjA-hK-WAP\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"46\" width=\"300\" height=\"424\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MQE-ts-iIn\">\n                                    <rect key=\"frame\" x=\"8\" y=\"5\" width=\"100\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"mX3-eO-IXN\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"cancel:\" target=\"-2\" id=\"bab-Tm-5kX\"/>\n                                    </connections>\n                                </button>\n                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3PR-J1-aKE\">\n                                    <rect key=\"frame\" x=\"180\" y=\"5\" width=\"112\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Continue…\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Ibk-mz-3rz\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"continue:\" target=\"-2\" id=\"EEj-wF-AT4\"/>\n                                    </connections>\n                                </button>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"uU2-RL-XAi\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"470\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hwM-6S-E69\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"470\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"139\" y=\"154\"/>\n        </view>\n        <customView id=\"RtD-0g-Q5a\" userLabel=\"Message View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"590\" height=\"273\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pPL-IW-FD6\">\n                    <rect key=\"frame\" x=\"18\" y=\"241\" width=\"248\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Updated commit message:\" id=\"H9b-Gu-kkA\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"DIo-C0-hvl\">\n                    <rect key=\"frame\" x=\"20\" y=\"83\" width=\"550\" height=\"150\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"PV2-zJ-Th2\">\n                        <rect key=\"frame\" x=\"1\" y=\"1\" width=\"548\" height=\"148\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                        <subviews>\n                            <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"vJg-vt-cWY\" customClass=\"GICommitMessageView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"548\" height=\"148\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <size key=\"minSize\" width=\"548\" height=\"148\"/>\n                                <size key=\"maxSize\" width=\"550\" height=\"10000000\"/>\n                                <attributedString key=\"textStorage\">\n                                    <fragment content=\"&lt;MESSAGE&gt;\">\n                                        <attributes>\n                                            <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <font key=\"NSFont\" metaFont=\"controlContent\" size=\"11\"/>\n                                            <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\"/>\n                                        </attributes>\n                                    </fragment>\n                                </attributedString>\n                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <connections>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"PVe-GN-63R\"/>\n                                </connections>\n                            </textView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"byn-9R-q9d\">\n                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"v4Y-hR-5VU\">\n                        <rect key=\"frame\" x=\"224\" y=\"1\" width=\"15\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"uTH-et-agS\">\n                    <rect key=\"frame\" x=\"18\" y=\"61\" width=\"554\" height=\"14\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;INFO&gt;\" id=\"RGN-xW-ZIT\">\n                        <font key=\"font\" metaFont=\"toolTip\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jiN-49-CJi\">\n                    <rect key=\"frame\" x=\"434\" y=\"13\" width=\"142\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Rewrite Commit\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"JGJ-zD-wfi\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"finishModalView:\" target=\"-2\" id=\"KB3-Kv-Pfn\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2mu-cU-csS\">\n                    <rect key=\"frame\" x=\"334\" y=\"13\" width=\"100\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"GL2-s4-e19\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"cancelModalView:\" target=\"-2\" id=\"zuV-qP-SbO\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"371\" y=\"924.5\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GICommitSplitterViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GICommitSplitterViewController\">\n            <connections>\n                <outlet property=\"continueButton\" destination=\"kyp-MO-xu5\" id=\"LRR-6V-vFc\"/>\n                <outlet property=\"diffContentsView\" destination=\"weo-in-1Ld\" id=\"WAI-ja-NrZ\"/>\n                <outlet property=\"filesViewNew\" destination=\"IfV-FZ-t0W\" id=\"s6S-bX-wFN\"/>\n                <outlet property=\"filesViewNewHeader\" destination=\"i0X-9n-k1u\" id=\"QM7-Kd-cEm\"/>\n                <outlet property=\"filesViewOld\" destination=\"Scn-lW-rL0\" id=\"Ixn-qz-kmQ\"/>\n                <outlet property=\"filesViewOldHeader\" destination=\"7j5-Pz-Pse\" id=\"ZCb-hZ-CUN\"/>\n                <outlet property=\"infoTextField\" destination=\"J4i-ca-hW8\" id=\"SsC-49-2T9\"/>\n                <outlet property=\"messageTextView\" destination=\"C9q-53-7wr\" id=\"Yf2-ha-bpr\"/>\n                <outlet property=\"messageView\" destination=\"mcb-9I-AWZ\" id=\"5WM-be-w0L\"/>\n                <outlet property=\"otherMessageTextView\" destination=\"Bd9-d7-YLd\" id=\"0Ua-hT-9zu\"/>\n                <outlet property=\"titleTextField\" destination=\"otg-FV-eFd\" id=\"F0T-cd-llD\"/>\n                <outlet property=\"view\" destination=\"ncJ-cE-u00\" id=\"Syg-5f-oiT\"/>\n            </connections>\n        </customObject>\n        <view id=\"ncJ-cE-u00\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eJw-Ro-RO2\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"470\" width=\"1000\" height=\"30\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <subviews>\n                        <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"9kw-yf-Rw7\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"-2\" width=\"1000\" height=\"5\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                        </box>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZXE-Q8-0tE\">\n                            <rect key=\"frame\" x=\"13\" y=\"8\" width=\"114\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Splitting Commit:\" id=\"MLR-4B-XXd\">\n                                <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"otg-FV-eFd\">\n                            <rect key=\"frame\" x=\"127\" y=\"8\" width=\"855\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;TITLE&gt;\" id=\"2Ta-mo-RyA\">\n                                <font key=\"font\" metaFont=\"cellTitle\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                    </subviews>\n                </customView>\n                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GbO-qM-CQw\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"470\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"hef-Ad-4nX\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"470\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GiE-tn-bRu\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"43\" width=\"300\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                </box>\n                                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"e6i-iT-slV\" customClass=\"GIDualSplitView\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"46\" width=\"300\" height=\"424\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <customView fixedFrame=\"YES\" id=\"ots-w9-o6k\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"211\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                            <subviews>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"i0X-9n-k1u\" customClass=\"GIColorView\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"177\" width=\"300\" height=\"34\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                    <subviews>\n                                                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Zg3-mt-YHc\">\n                                                            <rect key=\"frame\" x=\"8\" y=\"9\" width=\"154\" height=\"17\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"New Commit\" id=\"C06-wj-5uc\">\n                                                                <font key=\"font\" metaFont=\"systemBold\"/>\n                                                                <color key=\"textColor\" name=\"alternateSelectedControlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            </textFieldCell>\n                                                        </textField>\n                                                    </subviews>\n                                                </customView>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IfV-FZ-t0W\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"177\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                </customView>\n                                            </subviews>\n                                        </customView>\n                                        <customView fixedFrame=\"YES\" id=\"VtZ-UX-sFq\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"212\" width=\"300\" height=\"212\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                            <subviews>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7j5-Pz-Pse\" customClass=\"GIColorView\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"178\" width=\"300\" height=\"34\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                    <subviews>\n                                                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JBE-2n-Fmz\">\n                                                            <rect key=\"frame\" x=\"8\" y=\"9\" width=\"154\" height=\"17\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Old Commit\" id=\"CSN-Cf-azv\">\n                                                                <font key=\"font\" metaFont=\"systemBold\"/>\n                                                                <color key=\"textColor\" name=\"alternateSelectedControlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            </textFieldCell>\n                                                        </textField>\n                                                    </subviews>\n                                                </customView>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Scn-lW-rL0\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"178\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                </customView>\n                                            </subviews>\n                                        </customView>\n                                    </subviews>\n                                    <holdingPriorities>\n                                        <real value=\"250\"/>\n                                        <real value=\"250\"/>\n                                    </holdingPriorities>\n                                    <userDefinedRuntimeAttributes>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                                            <real key=\"value\" value=\"150\"/>\n                                        </userDefinedRuntimeAttribute>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                                            <real key=\"value\" value=\"150\"/>\n                                        </userDefinedRuntimeAttribute>\n                                    </userDefinedRuntimeAttributes>\n                                </splitView>\n                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GmQ-B6-tjv\">\n                                    <rect key=\"frame\" x=\"8\" y=\"5\" width=\"100\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"rco-aZ-vl2\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"cancel:\" target=\"-2\" id=\"nii-dL-QPl\"/>\n                                    </connections>\n                                </button>\n                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kyp-MO-xu5\">\n                                    <rect key=\"frame\" x=\"180\" y=\"5\" width=\"112\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Continue…\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"khk-i1-Bqu\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"continue:\" target=\"-2\" id=\"b6D-BI-9Ig\"/>\n                                    </connections>\n                                </button>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"XQf-N4-jx3\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"470\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"weo-in-1Ld\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"470\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"552\" y=\"309\"/>\n        </view>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customView id=\"mcb-9I-AWZ\" userLabel=\"Message View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"590\" height=\"354\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Mi2-Di-27H\">\n                    <rect key=\"frame\" x=\"18\" y=\"322\" width=\"183\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"New commit message:\" id=\"Rs6-wQ-uAF\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FGz-GT-MFK\">\n                    <rect key=\"frame\" x=\"20\" y=\"214\" width=\"550\" height=\"100\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"iv1-rd-iqv\">\n                        <rect key=\"frame\" x=\"1\" y=\"1\" width=\"548\" height=\"98\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                        <subviews>\n                            <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"Bd9-d7-YLd\" customClass=\"GICommitMessageView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"548\" height=\"98\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <size key=\"minSize\" width=\"548\" height=\"98\"/>\n                                <size key=\"maxSize\" width=\"562\" height=\"10000000\"/>\n                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <connections>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"r9O-yb-7mj\"/>\n                                </connections>\n                            </textView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"OB0-eb-G64\">\n                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"b0J-i3-bDd\">\n                        <rect key=\"frame\" x=\"224\" y=\"1\" width=\"15\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"VJr-bi-EjL\">\n                    <rect key=\"frame\" x=\"18\" y=\"189\" width=\"183\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Old commit message:\" id=\"3xC-Vl-BIN\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"sdt-ps-l95\">\n                    <rect key=\"frame\" x=\"20\" y=\"81\" width=\"550\" height=\"100\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"sKA-Dg-4u7\">\n                        <rect key=\"frame\" x=\"1\" y=\"1\" width=\"548\" height=\"98\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                        <subviews>\n                            <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"C9q-53-7wr\" customClass=\"GICommitMessageView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"548\" height=\"98\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <size key=\"minSize\" width=\"548\" height=\"98\"/>\n                                <size key=\"maxSize\" width=\"608\" height=\"10000000\"/>\n                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <connections>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"kk3-aI-fXa\"/>\n                                </connections>\n                            </textView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"IXc-Ye-G0z\">\n                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"itL-Vx-dgv\">\n                        <rect key=\"frame\" x=\"224\" y=\"1\" width=\"15\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"J4i-ca-hW8\">\n                    <rect key=\"frame\" x=\"18\" y=\"59\" width=\"554\" height=\"14\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;INFO&gt;\" id=\"29G-mk-yTd\">\n                        <font key=\"font\" metaFont=\"smallSystem\"/>\n                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Nxe-6I-8Yc\">\n                    <rect key=\"frame\" x=\"446\" y=\"13\" width=\"130\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Split Commit\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"I9A-6a-Tsc\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"finishModalView:\" target=\"-2\" id=\"vTp-E1-o2W\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"BjK-xU-1uM\">\n                    <rect key=\"frame\" x=\"346\" y=\"13\" width=\"100\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"ad8-SM-Ixv\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"cancelModalView:\" target=\"-2\" id=\"3GH-Ss-VS3\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"347\" y=\"803\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIConfigViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIConfigViewController\">\n            <connections>\n                <outlet property=\"deleteButton\" destination=\"agS-he-C87\" id=\"xxC-kf-Mne\"/>\n                <outlet property=\"editButton\" destination=\"DmR-oW-YvH\" id=\"gzf-PC-iIR\"/>\n                <outlet property=\"editView\" destination=\"gd6-Se-sHm\" id=\"VUI-3e-LHs\"/>\n                <outlet property=\"nameTextField\" destination=\"LoL-ry-aDR\" id=\"xaj-PH-bfJ\"/>\n                <outlet property=\"tableView\" destination=\"rIc-OO-A36\" id=\"MG4-gO-znA\"/>\n                <outlet property=\"valueTextField\" destination=\"FZ4-x9-dSW\" id=\"nur-iX-CFH\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"516\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"zs3-CD-2TT\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"43\" width=\"1000\" height=\"5\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                </box>\n                <scrollView borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"58\" horizontalPageScroll=\"10\" verticalLineScroll=\"58\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0y0-9P-6v1\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"46\" width=\"1000\" height=\"470\"/>\n                    <clipView key=\"contentView\" id=\"Z2V-p9-Fdu\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"470\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" tableStyle=\"fullWidth\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"58\" usesAutomaticRowHeights=\"YES\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"rIc-OO-A36\" customClass=\"GITableView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"470\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableViewGridLines key=\"gridStyleMask\" horizontal=\"YES\"/>\n                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <tableColumns>\n                                    <tableColumn editable=\"NO\" width=\"988\" minWidth=\"40\" maxWidth=\"10000\" id=\"oyg-mA-s9h\">\n                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </tableHeaderCell>\n                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"8Z8-gR-v2K\">\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        </textFieldCell>\n                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                        <prototypeCellViews>\n                                            <tableCellView id=\"NwX-eD-TxR\" customClass=\"GIConfigCellView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"60\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"centerY\" spacing=\"25\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"500\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"PGG-Ln-zSu\">\n                                                        <rect key=\"frame\" x=\"12\" y=\"12\" width=\"976\" height=\"36\"/>\n                                                        <subviews>\n                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vZK-ii-fJx\">\n                                                                <rect key=\"frame\" x=\"-2\" y=\"10\" width=\"64\" height=\"16\"/>\n                                                                <constraints>\n                                                                    <constraint firstAttribute=\"width\" relation=\"greaterThanOrEqual\" constant=\"60\" id=\"D7B-fW-lzH\"/>\n                                                                </constraints>\n                                                                <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"LEVEL\" id=\"WAs-6x-3SX\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                            </textField>\n                                                            <stackView distribution=\"fill\" orientation=\"vertical\" alignment=\"leading\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"zmt-27-Ewi\">\n                                                                <rect key=\"frame\" x=\"85\" y=\"0.0\" width=\"891\" height=\"36\"/>\n                                                                <subviews>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Kgc-QS-TeT\">\n                                                                        <rect key=\"frame\" x=\"-2\" y=\"22\" width=\"64\" height=\"14\"/>\n                                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;OPTION&gt;\" id=\"b4Q-Ad-COB\">\n                                                                            <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"YEf-Fm-0JU\">\n                                                                        <rect key=\"frame\" x=\"-2\" y=\"0.0\" width=\"47\" height=\"14\"/>\n                                                                        <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;HELP&gt;\" id=\"4Xe-ni-5m6\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                </subviews>\n                                                                <visibilityPriorities>\n                                                                    <integer value=\"1000\"/>\n                                                                    <integer value=\"1000\"/>\n                                                                </visibilityPriorities>\n                                                                <customSpacing>\n                                                                    <real value=\"3.4028234663852886e+38\"/>\n                                                                    <real value=\"3.4028234663852886e+38\"/>\n                                                                </customSpacing>\n                                                            </stackView>\n                                                        </subviews>\n                                                        <visibilityPriorities>\n                                                            <integer value=\"1000\"/>\n                                                            <integer value=\"1000\"/>\n                                                        </visibilityPriorities>\n                                                        <customSpacing>\n                                                            <real value=\"3.4028234663852886e+38\"/>\n                                                            <real value=\"3.4028234663852886e+38\"/>\n                                                        </customSpacing>\n                                                    </stackView>\n                                                </subviews>\n                                                <constraints>\n                                                    <constraint firstItem=\"PGG-Ln-zSu\" firstAttribute=\"leading\" secondItem=\"NwX-eD-TxR\" secondAttribute=\"leading\" constant=\"12\" id=\"2Gd-yx-YSM\"/>\n                                                    <constraint firstAttribute=\"trailing\" secondItem=\"PGG-Ln-zSu\" secondAttribute=\"trailing\" constant=\"12\" id=\"RIf-eE-NHa\"/>\n                                                    <constraint firstAttribute=\"bottom\" secondItem=\"PGG-Ln-zSu\" secondAttribute=\"bottom\" constant=\"12\" id=\"Zac-N2-V42\"/>\n                                                    <constraint firstItem=\"PGG-Ln-zSu\" firstAttribute=\"top\" secondItem=\"NwX-eD-TxR\" secondAttribute=\"top\" constant=\"12\" id=\"hGe-Dm-psp\"/>\n                                                </constraints>\n                                                <connections>\n                                                    <outlet property=\"helpTextField\" destination=\"YEf-Fm-0JU\" id=\"aQ9-sR-XSq\"/>\n                                                    <outlet property=\"levelTextField\" destination=\"vZK-ii-fJx\" id=\"zyN-ee-9XO\"/>\n                                                    <outlet property=\"optionTextField\" destination=\"Kgc-QS-TeT\" id=\"ofs-t9-XeF\"/>\n                                                </connections>\n                                            </tableCellView>\n                                        </prototypeCellViews>\n                                    </tableColumn>\n                                </tableColumns>\n                                <connections>\n                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"Z28-bX-2Sc\"/>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"kDG-uP-NoB\"/>\n                                </connections>\n                            </tableView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"zkY-B2-TgX\">\n                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"c5Y-Qd-Que\">\n                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"4\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lg3-R4-IwJ\">\n                    <rect key=\"frame\" x=\"12\" y=\"12\" width=\"79\" height=\"24\"/>\n                    <subviews>\n                        <button toolTip=\"Add new option\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"czt-SE-8sZ\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"38\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" image=\"NSAddTemplate\" imagePosition=\"only\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"nyb-dg-sa2\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\">n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"addOption:\" target=\"-2\" id=\"BHN-Je-aCy\"/>\n                            </connections>\n                        </button>\n                        <button toolTip=\"Delete selected option\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"agS-he-C87\">\n                            <rect key=\"frame\" x=\"42\" y=\"0.0\" width=\"37\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" image=\"NSRemoveTemplate\" imagePosition=\"only\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"fe4-5j-J96\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nCA\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"deleteOption:\" target=\"-2\" id=\"2Kp-SO-sN1\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"DmR-oW-YvH\">\n                    <rect key=\"frame\" x=\"930\" y=\"12\" width=\"58\" height=\"24\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Edit…\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Zpv-vW-DFj\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"editOption:\" target=\"-2\" id=\"h03-fS-H82\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"lg3-R4-IwJ\" firstAttribute=\"leading\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"leading\" constant=\"12\" id=\"9gw-Ps-z9v\"/>\n                <constraint firstItem=\"lg3-R4-IwJ\" firstAttribute=\"top\" secondItem=\"0y0-9P-6v1\" secondAttribute=\"bottom\" constant=\"10\" id=\"D34-RY-UHh\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"lg3-R4-IwJ\" secondAttribute=\"bottom\" constant=\"12\" id=\"HCH-BG-HWy\"/>\n                <constraint firstItem=\"0y0-9P-6v1\" firstAttribute=\"leading\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"leading\" id=\"JOI-tK-Y8D\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"0y0-9P-6v1\" secondAttribute=\"trailing\" id=\"M0f-UN-VnS\"/>\n                <constraint firstItem=\"DmR-oW-YvH\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"lg3-R4-IwJ\" secondAttribute=\"trailing\" constant=\"8\" symbolic=\"YES\" id=\"Xj9-fU-rxS\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"DmR-oW-YvH\" secondAttribute=\"trailing\" constant=\"12\" id=\"ij3-Cs-p9i\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"DmR-oW-YvH\" secondAttribute=\"bottom\" constant=\"12\" id=\"pfo-k9-o4S\"/>\n                <constraint firstItem=\"0y0-9P-6v1\" firstAttribute=\"top\" secondItem=\"Mge-gB-T5T\" secondAttribute=\"top\" id=\"qPO-K9-3Eg\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"592\" y=\"472\"/>\n        </view>\n        <customView id=\"gd6-Se-sHm\" userLabel=\"Edit View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"439\" height=\"131\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField focusRingType=\"none\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"LoL-ry-aDR\">\n                    <rect key=\"frame\" x=\"119\" y=\"89\" width=\"300\" height=\"22\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" id=\"bWI-iO-Sp8\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <outlet property=\"delegate\" destination=\"-2\" id=\"q9E-su-cDY\"/>\n                    </connections>\n                </textField>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"011-37-CLH\">\n                    <rect key=\"frame\" x=\"18\" y=\"91\" width=\"95\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Option name:\" id=\"E3T-2C-Mr5\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <textField focusRingType=\"none\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FZ4-x9-dSW\">\n                    <rect key=\"frame\" x=\"119\" y=\"59\" width=\"300\" height=\"22\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" id=\"mm6-7u-AuS\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <outlet property=\"delegate\" destination=\"-2\" id=\"yE4-CQ-vjt\"/>\n                    </connections>\n                </textField>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4bC-3z-9pS\">\n                    <rect key=\"frame\" x=\"18\" y=\"61\" width=\"95\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Option value:\" id=\"sLn-lG-0q9\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Izp-cY-xRo\">\n                    <rect key=\"frame\" x=\"321\" y=\"13\" width=\"104\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Save\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"BPh-Xi-7ho\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"finishModalView:\" target=\"-2\" id=\"mOr-L8-lRM\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"C12-Mj-uSf\">\n                    <rect key=\"frame\" x=\"227\" y=\"13\" width=\"92\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"qo3-bg-4sZ\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"cancelModalView:\" target=\"-2\" id=\"fV2-Up-4hV\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"404.5\" y=\"884.5\"/>\n        </customView>\n    </objects>\n    <resources>\n        <image name=\"NSAddTemplate\" width=\"18\" height=\"17\"/>\n        <image name=\"NSRemoveTemplate\" width=\"18\" height=\"5\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIConflictResolverViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIConflictResolverViewController\">\n            <connections>\n                <outlet property=\"contentsView\" destination=\"hwM-6S-E69\" id=\"aJi-zv-CuV\"/>\n                <outlet property=\"continueButton\" destination=\"7PT-2S-kw9\" id=\"fYf-Co-hzj\"/>\n                <outlet property=\"filesView\" destination=\"OjA-hK-WAP\" id=\"jGe-bb-qi8\"/>\n                <outlet property=\"oursTextField\" destination=\"d6v-bn-gfO\" id=\"fhu-CE-7ci\"/>\n                <outlet property=\"theirsTextField\" destination=\"vTZ-86-2tE\" id=\"WSh-Cb-dSo\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"xtX-wF-ETB\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"450\" width=\"1000\" height=\"50\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <subviews>\n                        <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JPb-MQ-Lkt\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"-2\" width=\"1000\" height=\"5\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                        </box>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZFh-UY-NQJ\">\n                            <rect key=\"frame\" x=\"3\" y=\"29\" width=\"117\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Merging Commit:\" id=\"2T9-ll-12X\">\n                                <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vTZ-86-2tE\">\n                            <rect key=\"frame\" x=\"120\" y=\"29\" width=\"862\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;THEIRS&gt;\" id=\"3Ey-QJ-e19\">\n                                <font key=\"font\" metaFont=\"controlContent\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"05r-ey-Hun\">\n                            <rect key=\"frame\" x=\"37\" y=\"8\" width=\"83\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Into Commit:\" id=\"PbN-u5-uyo\">\n                                <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"d6v-bn-gfO\">\n                            <rect key=\"frame\" x=\"120\" y=\"8\" width=\"862\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;OURS&gt;\" id=\"1Mc-rj-Zz3\">\n                                <font key=\"font\" metaFont=\"controlContent\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                    </subviews>\n                </customView>\n                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GFw-7l-pVF\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"450\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"227-un-30b\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"450\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZBF-ni-AKe\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"43\" width=\"300\" height=\"5\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                </box>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OjA-hK-WAP\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"46\" width=\"300\" height=\"404\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7PT-2S-kw9\">\n                                    <rect key=\"frame\" x=\"180\" y=\"5\" width=\"112\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Commit\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"wOd-r8-NQZ\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"continue:\" target=\"-2\" id=\"yCR-26-f8c\"/>\n                                    </connections>\n                                </button>\n                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"dLN-BC-ot2\">\n                                    <rect key=\"frame\" x=\"8\" y=\"5\" width=\"100\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"WkC-Cl-c7g\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"cancel:\" target=\"-2\" id=\"H9x-yF-rFf\"/>\n                                    </connections>\n                                </button>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"jJu-14-37z\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"450\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hwM-6S-E69\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"450\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"139\" y=\"154\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIDiffViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIDiffViewController\">\n            <connections>\n                <outlet property=\"contentsView\" destination=\"gnd-mU-OFa\" id=\"aua-gs-pD6\"/>\n                <outlet property=\"filesView\" destination=\"T7C-Lf-raW\" id=\"mzB-kk-e11\"/>\n                <outlet property=\"fromTextField\" destination=\"rTO-aW-1zK\" id=\"g6s-Zq-n3Z\"/>\n                <outlet property=\"toTextField\" destination=\"6Rg-tf-kE6\" id=\"p8A-Hj-bpJ\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"epl-1T-nOb\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"450\" width=\"1000\" height=\"50\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                    <subviews>\n                        <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gNx-IO-rt1\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"-2\" width=\"1000\" height=\"5\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                        </box>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"6Rg-tf-kE6\">\n                            <rect key=\"frame\" x=\"115\" y=\"8\" width=\"867\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;TO&gt;\" id=\"HMQ-oG-qAU\">\n                                <font key=\"font\" metaFont=\"controlContent\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"91T-cI-Hho\">\n                            <rect key=\"frame\" x=\"16\" y=\"29\" width=\"99\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Diffing Commit:\" id=\"ql5-Qs-m7L\">\n                                <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mgY-Mx-FTc\">\n                            <rect key=\"frame\" x=\"28\" y=\"8\" width=\"87\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"With Commit:\" id=\"T63-CN-4FE\">\n                                <font key=\"font\" metaFont=\"systemBold\" size=\"12\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"rTO-aW-1zK\">\n                            <rect key=\"frame\" x=\"115\" y=\"29\" width=\"867\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                            <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;FROM&gt;\" id=\"cuo-FZ-C63\">\n                                <font key=\"font\" metaFont=\"controlContent\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                    </subviews>\n                </customView>\n                <splitView fixedFrame=\"YES\" autosaveName=\"\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"E0I-P5-wti\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"450\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"9b7-4Z-9qv\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"450\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"T7C-Lf-raW\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"450\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"BSo-CX-5eW\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"450\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gnd-mU-OFa\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"450\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"-109\" y=\"154\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIMapViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIMapViewController\">\n            <connections>\n                <outlet property=\"checkoutMenuItem\" destination=\"2F1-L6-WpO\" id=\"cXl-ba-SBS\"/>\n                <outlet property=\"contextualMenu\" destination=\"NLF-6K-DvV\" id=\"Wdc-M5-KXe\"/>\n                <outlet property=\"createBranchButton\" destination=\"W3U-R6-9yO\" id=\"Pg7-R6-Pdv\"/>\n                <outlet property=\"createBranchTextField\" destination=\"CUj-FC-ARp\" id=\"5TX-x5-BpX\"/>\n                <outlet property=\"createBranchView\" destination=\"ga8-vG-A68\" id=\"IPI-Zz-gKm\"/>\n                <outlet property=\"graphScrollView\" destination=\"NEk-yz-xrB\" id=\"hDz-hu-orw\"/>\n                <outlet property=\"graphView\" destination=\"7uX-6u-ejZ\" id=\"BaV-UH-sbs\"/>\n                <outlet property=\"messageButton\" destination=\"ss3-Af-4aU\" id=\"fZH-vS-lhE\"/>\n                <outlet property=\"messageTextField\" destination=\"Ukh-fa-YMw\" id=\"qd2-50-p3r\"/>\n                <outlet property=\"messageTextView\" destination=\"leL-YY-uqs\" id=\"IaF-HK-Tju\"/>\n                <outlet property=\"messageView\" destination=\"qvM-yB-KWz\" id=\"WI3-9M-Oji\"/>\n                <outlet property=\"renameBranchTextField\" destination=\"fnf-HO-J16\" id=\"1Pb-oX-6nk\"/>\n                <outlet property=\"renameBranchView\" destination=\"yK7-M9-F1T\" id=\"00F-3k-QnC\"/>\n                <outlet property=\"renameTagTextField\" destination=\"0A5-t1-c3Z\" id=\"NJo-x0-hC6\"/>\n                <outlet property=\"renameTagView\" destination=\"G2x-MY-zBs\" id=\"ACV-GL-aBd\"/>\n                <outlet property=\"separatorMenuItem\" destination=\"4Gt-vH-kas\" id=\"g5a-Xn-qUY\"/>\n                <outlet property=\"tagMessageTextView\" destination=\"l0i-wG-st7\" id=\"u1P-fN-x9z\"/>\n                <outlet property=\"tagNameTextField\" destination=\"REx-8D-wmk\" id=\"VYz-Qc-1uU\"/>\n                <outlet property=\"tagView\" destination=\"goU-jH-Ah6\" id=\"8kl-rM-OHT\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"467\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <scrollView fixedFrame=\"YES\" borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"NEk-yz-xrB\" userLabel=\"Scroll View - Graph View\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"467\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <clipView key=\"contentView\" autoresizesSubviews=\"NO\" id=\"MUH-N6-EF0\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"700\" height=\"467\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <view autoresizesSubviews=\"NO\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7uX-6u-ejZ\" customClass=\"GIGraphView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"200\" height=\"200\"/>\n                                <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\" flexibleMaxY=\"YES\"/>\n                            </view>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"IHE-nB-jmS\">\n                        <rect key=\"frame\" x=\"1\" y=\"80\" width=\"166\" height=\"15\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"ere-pq-pfo\">\n                        <rect key=\"frame\" x=\"167\" y=\"1\" width=\"15\" height=\"79\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"465\" y=\"474.5\"/>\n        </view>\n        <menu id=\"NLF-6K-DvV\" userLabel=\"Contextual Menu\">\n            <items>\n                <menuItem title=\"Quick View…\" keyEquivalent=\" \" id=\"FjS-1C-CsA\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"quickViewSelectedCommit:\" target=\"-2\" id=\"zuO-7q-qyl\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"External Diff with Main Parent…\" alternate=\"YES\" keyEquivalent=\" \" id=\"xQD-dD-5GI\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"externalDiffSelectedCommit:\" target=\"-2\" id=\"Owa-kT-3Hq\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"&lt;VIEW IN HOSTING SERVICE&gt;\" alternate=\"YES\" keyEquivalent=\" \" id=\"jG5-Cu-1Oh\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\"/>\n                    <connections>\n                        <action selector=\"viewSelectedCommitInHostingService:\" target=\"-2\" id=\"Ivp-AH-d8R\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"OTL-XM-MqA\"/>\n                <menuItem title=\"Diff with HEAD…\" keyEquivalent=\"i\" id=\"s47-dA-Ka5\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"diffSelectedCommitWithHEAD:\" target=\"-2\" id=\"23i-LB-TI1\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"External Diff with HEAD…\" alternate=\"YES\" keyEquivalent=\"i\" id=\"9cn-WU-k15\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"externalDiffWithHEAD:\" target=\"-2\" id=\"4P4-hx-f1o\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"saS-05-Cal\"/>\n                <menuItem title=\"Checkout\" id=\"2F1-L6-WpO\">\n                    <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"checkoutSelectedCommit:\" target=\"-2\" id=\"15X-fF-QQ5\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"cX5-lz-wXW\"/>\n                <menuItem title=\"Edit Message…\" keyEquivalent=\"e\" id=\"o6c-I2-Rtl\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"editSelectedCommitMessage:\" target=\"-2\" id=\"PrK-v7-e6I\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Copy Message\" alternate=\"YES\" keyEquivalent=\"e\" id=\"LnA-LI-dEb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"copySelectedCommitMessage:\" target=\"-2\" id=\"dDP-sd-Fqm\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Fixup with Parent\" keyEquivalent=\"f\" id=\"ss5-jL-Qe5\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"fixupSelectedCommit:\" target=\"-2\" id=\"Eb5-uo-07r\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Squash with Parent…\" keyEquivalent=\"s\" id=\"8nw-gg-IKk\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"squashSelectedCommit:\" target=\"-2\" id=\"vmj-VA-IDl\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Swap with Parent (Move Down)\" keyEquivalent=\"d\" id=\"Gok-Oq-MYm\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"swapSelectedCommitWithParent:\" target=\"-2\" id=\"izl-QO-CHI\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Swap with Child (Move Up)\" keyEquivalent=\"u\" id=\"gVz-76-ZEn\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"swapSelectedCommitWithChild:\" target=\"-2\" id=\"7ez-ll-Ppk\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Delete\" id=\"bkU-ge-BZN\">\n                    <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nCA\n</string>\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"deleteSelectedCommit:\" target=\"-2\" id=\"N4C-JG-Ca9\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"xQH-sm-2Dm\"/>\n                <menuItem title=\"Rewrite…\" keyEquivalent=\"w\" id=\"oN7-sO-Zxk\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"rewriteSelectedCommit:\" target=\"-2\" id=\"Ovb-us-c4j\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Split…\" keyEquivalent=\"s\" id=\"jfZ-QJ-fcb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"splitSelectedCommit:\" target=\"-2\" id=\"l3u-zi-MRS\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"erI-b5-M78\"/>\n                <menuItem title=\"Revert Against Current Branch…\" keyEquivalent=\"r\" id=\"cC0-Dd-nDb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"revertSelectedCommit:\" target=\"-2\" id=\"K3a-au-6NS\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Cherry-Pick Against Current Branch…\" keyEquivalent=\"c\" id=\"vJV-aV-4oB\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"cherryPickSelectedCommit:\" target=\"-2\" id=\"crQ-cI-jzD\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Merge into Current Branch…\" keyEquivalent=\"m\" id=\"NGZ-gn-MWJ\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"mergeSelectedCommit:\" target=\"-2\" id=\"din-qN-bOc\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Rebase Current Branch onto Here\" keyEquivalent=\"r\" id=\"T48-fo-FSX\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"rebaseOntoSelectedCommit:\" target=\"-2\" id=\"xlv-Gm-2r8\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Set Tip of Current Branch Here\" keyEquivalent=\"t\" id=\"QGc-Mi-7bX\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\"/>\n                    <connections>\n                        <action selector=\"setBranchTipToSelectedCommit:\" target=\"-2\" id=\"07X-Kb-9Uq\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Move Tip of Current Branch Here\" alternate=\"YES\" keyEquivalent=\"t\" id=\"bh5-5N-bp1\">\n                    <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\"/>\n                    <connections>\n                        <action selector=\"moveBranchTipToSelectedCommit:\" target=\"-2\" id=\"DgN-OS-dzj\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"NnG-hS-RCm\"/>\n                <menuItem title=\"Add Tag…\" keyEquivalent=\"t\" id=\"cct-Qc-k7X\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"createTagAtSelectedCommit:\" target=\"-2\" id=\"T8f-GX-JAM\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"n1R-Zs-Whp\"/>\n                <menuItem title=\"Create Branch…\" keyEquivalent=\"b\" id=\"nL6-8J-4u3\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"createBranchAtSelectedCommit:\" target=\"-2\" id=\"1aP-yM-UIn\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"4Gt-vH-kas\"/>\n            </items>\n            <point key=\"canvasLocation\" x=\"-87.5\" y=\"644.5\"/>\n        </menu>\n        <customView id=\"goU-jH-Ah6\" userLabel=\"Tag View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"444\" height=\"207\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"12\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"qQG-99-N9f\">\n                    <rect key=\"frame\" x=\"282\" y=\"20\" width=\"142\" height=\"24\"/>\n                    <subviews>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"w29-nc-RbK\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"66\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"l8x-Ez-Uuz\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"cancelModalView:\" target=\"-2\" id=\"tG0-5w-UrB\"/>\n                            </connections>\n                        </button>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"d34-tu-v8h\">\n                            <rect key=\"frame\" x=\"78\" y=\"0.0\" width=\"64\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Create\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"wP6-iD-CUg\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"finishModalView:\" target=\"-2\" id=\"9ml-Ih-wNC\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n                <gridView xPlacement=\"fill\" yPlacement=\"top\" rowAlignment=\"none\" rowSpacing=\"12\" columnSpacing=\"8\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"S8c-So-GUX\">\n                    <rect key=\"frame\" x=\"20\" y=\"61\" width=\"404\" height=\"126\"/>\n                    <rows>\n                        <gridRow yPlacement=\"fill\" rowAlignment=\"firstBaseline\" id=\"xMc-PC-26z\"/>\n                        <gridRow height=\"50\" id=\"oe3-VG-b94\"/>\n                        <gridRow id=\"pE6-g9-iNS\"/>\n                    </rows>\n                    <columns>\n                        <gridColumn id=\"J1O-bX-EkM\"/>\n                        <gridColumn width=\"297\" id=\"Xxx-YF-NdQ\"/>\n                    </columns>\n                    <gridCells>\n                        <gridCell row=\"xMc-PC-26z\" column=\"J1O-bX-EkM\" id=\"Z4U-Q0-0r0\">\n                            <textField key=\"contentView\" focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4yU-fk-jQd\">\n                                <rect key=\"frame\" x=\"-2\" y=\"106\" width=\"103\" height=\"16\"/>\n                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"New tag name:\" id=\"z3m-U3-57a\">\n                                    <font key=\"font\" metaFont=\"system\"/>\n                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                            </textField>\n                        </gridCell>\n                        <gridCell row=\"xMc-PC-26z\" column=\"Xxx-YF-NdQ\" id=\"Njo-gv-Z8U\">\n                            <textField key=\"contentView\" focusRingType=\"none\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"REx-8D-wmk\">\n                                <rect key=\"frame\" x=\"107\" y=\"102\" width=\"297\" height=\"24\"/>\n                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"vz0-21-YpX\">\n                                    <font key=\"font\" metaFont=\"system\"/>\n                                    <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                                <connections>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"lRe-Bp-6pj\"/>\n                                </connections>\n                            </textField>\n                        </gridCell>\n                        <gridCell row=\"oe3-VG-b94\" column=\"J1O-bX-EkM\" id=\"dVZ-Cw-8MJ\">\n                            <textField key=\"contentView\" focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OiB-oe-wIs\">\n                                <rect key=\"frame\" x=\"-2\" y=\"74\" width=\"103\" height=\"16\"/>\n                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Message:\" id=\"MhN-Wm-sdU\">\n                                    <font key=\"font\" metaFont=\"system\"/>\n                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                            </textField>\n                        </gridCell>\n                        <gridCell row=\"oe3-VG-b94\" column=\"Xxx-YF-NdQ\" id=\"DLP-u7-jh5\">\n                            <scrollView key=\"contentView\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"31a-qF-7cr\">\n                                <rect key=\"frame\" x=\"107\" y=\"40\" width=\"297\" height=\"50\"/>\n                                <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"K5e-oW-uzS\">\n                                    <rect key=\"frame\" x=\"1\" y=\"1\" width=\"295\" height=\"48\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"l0i-wG-st7\" customClass=\"GICommitMessageView\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"75\" width=\"295\" height=\"48\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                            <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <size key=\"minSize\" width=\"295\" height=\"48\"/>\n                                            <size key=\"maxSize\" width=\"463\" height=\"10000000\"/>\n                                            <attributedString key=\"textStorage\">\n                                                <fragment content=\"&lt;ANNOTATION&gt;\">\n                                                    <attributes>\n                                                        <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <font key=\"NSFont\" metaFont=\"controlContent\" size=\"11\"/>\n                                                        <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\"/>\n                                                    </attributes>\n                                                </fragment>\n                                            </attributedString>\n                                            <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <connections>\n                                                <outlet property=\"delegate\" destination=\"-2\" id=\"xEa-Zb-xrt\"/>\n                                            </connections>\n                                        </textView>\n                                    </subviews>\n                                </clipView>\n                                <constraints>\n                                    <constraint firstAttribute=\"height\" constant=\"50\" id=\"uKa-Lt-A48\"/>\n                                </constraints>\n                                <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"JUq-wH-Cde\">\n                                    <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                </scroller>\n                                <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"YEO-I1-z9t\">\n                                    <rect key=\"frame\" x=\"82\" y=\"1\" width=\"17\" height=\"28\"/>\n                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                </scroller>\n                            </scrollView>\n                        </gridCell>\n                        <gridCell row=\"pE6-g9-iNS\" column=\"J1O-bX-EkM\" id=\"wEm-69-PL4\"/>\n                        <gridCell row=\"pE6-g9-iNS\" column=\"Xxx-YF-NdQ\" id=\"k50-V3-a93\">\n                            <textField key=\"contentView\" focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Nob-wT-MZi\">\n                                <rect key=\"frame\" x=\"105\" y=\"0.0\" width=\"301\" height=\"28\"/>\n                                <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"Provide an optional message to create an annotated tag instead of a lightweight tag.\" id=\"5f2-fj-Z0Q\">\n                                    <font key=\"font\" metaFont=\"controlContent\" size=\"11\"/>\n                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                            </textField>\n                        </gridCell>\n                    </gridCells>\n                </gridView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"S8c-So-GUX\" firstAttribute=\"top\" secondItem=\"goU-jH-Ah6\" secondAttribute=\"top\" constant=\"20\" symbolic=\"YES\" id=\"2lT-kv-oJV\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"qQG-99-N9f\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"gvi-XS-jMA\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"qQG-99-N9f\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"nud-hW-Jmb\"/>\n                <constraint firstItem=\"S8c-So-GUX\" firstAttribute=\"leading\" secondItem=\"goU-jH-Ah6\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"o4F-zh-3G3\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"S8c-So-GUX\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"sgy-XM-Z3q\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"463.5\" y=\"1480.5\"/>\n        </customView>\n        <customView id=\"yK7-M9-F1T\" userLabel=\"Rename Branch View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"384\" height=\"101\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"centerY\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HgC-xB-eIG\">\n                    <rect key=\"frame\" x=\"20\" y=\"57\" width=\"344\" height=\"24\"/>\n                    <subviews>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"m4G-QU-XMh\">\n                            <rect key=\"frame\" x=\"-2\" y=\"4\" width=\"88\" height=\"16\"/>\n                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Branch name:\" id=\"fiz-vE-xUY\">\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fnf-HO-J16\">\n                            <rect key=\"frame\" x=\"92\" y=\"0.0\" width=\"252\" height=\"24\"/>\n                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"tS2-TD-tB5\">\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                            <connections>\n                                <outlet property=\"delegate\" destination=\"-2\" id=\"8Yv-BJ-xtT\"/>\n                            </connections>\n                        </textField>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"12\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hmK-nZ-RAp\">\n                    <rect key=\"frame\" x=\"213\" y=\"20\" width=\"151\" height=\"24\"/>\n                    <subviews>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"dMe-As-8cY\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"66\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"r4C-qF-UmE\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"cancelModalView:\" target=\"-2\" id=\"2Bb-H9-CzZ\"/>\n                            </connections>\n                        </button>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Lci-ng-5xc\">\n                            <rect key=\"frame\" x=\"78\" y=\"0.0\" width=\"73\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Rename\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"avr-T7-1eE\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"finishModalView:\" target=\"-2\" id=\"XO9-Id-evY\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"hmK-nZ-RAp\" firstAttribute=\"top\" secondItem=\"HgC-xB-eIG\" secondAttribute=\"bottom\" constant=\"13\" id=\"7EZ-Kk-SlA\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"HgC-xB-eIG\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"Vpv-q4-JaN\"/>\n                <constraint firstItem=\"HgC-xB-eIG\" firstAttribute=\"top\" secondItem=\"yK7-M9-F1T\" secondAttribute=\"top\" constant=\"20\" symbolic=\"YES\" id=\"c4E-sc-ds0\"/>\n                <constraint firstItem=\"HgC-xB-eIG\" firstAttribute=\"leading\" secondItem=\"yK7-M9-F1T\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"hYO-Ga-4gb\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"hmK-nZ-RAp\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"ueL-Gc-9hc\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"hmK-nZ-RAp\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"zFi-g4-EI7\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"433\" y=\"1061.5\"/>\n        </customView>\n        <customView id=\"G2x-MY-zBs\" userLabel=\"Rename Tag View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"360\" height=\"101\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"centerY\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"q3o-8S-g6k\">\n                    <rect key=\"frame\" x=\"20\" y=\"57\" width=\"320\" height=\"24\"/>\n                    <subviews>\n                        <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"1eh-qK-EgU\">\n                            <rect key=\"frame\" x=\"-2\" y=\"4\" width=\"67\" height=\"16\"/>\n                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Tag name:\" id=\"xvR-0J-9Ji\">\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                        </textField>\n                        <textField focusRingType=\"none\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0A5-t1-c3Z\">\n                            <rect key=\"frame\" x=\"71\" y=\"0.0\" width=\"249\" height=\"24\"/>\n                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"hOm-T2-MUD\">\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textFieldCell>\n                            <connections>\n                                <outlet property=\"delegate\" destination=\"-2\" id=\"EYm-MM-yPw\"/>\n                            </connections>\n                        </textField>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"12\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FM7-fI-Nu6\">\n                    <rect key=\"frame\" x=\"189\" y=\"20\" width=\"151\" height=\"24\"/>\n                    <subviews>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2JE-Xl-GmX\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"66\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"itp-cr-xr4\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"cancelModalView:\" target=\"-2\" id=\"las-TY-P38\"/>\n                            </connections>\n                        </button>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jvz-rp-toI\">\n                            <rect key=\"frame\" x=\"78\" y=\"0.0\" width=\"73\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Rename\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"iKU-RW-3rW\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"finishModalView:\" target=\"-2\" id=\"VlL-77-AMm\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"q3o-8S-g6k\" firstAttribute=\"top\" secondItem=\"G2x-MY-zBs\" secondAttribute=\"top\" constant=\"20\" symbolic=\"YES\" id=\"4y2-i6-INU\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"FM7-fI-Nu6\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"Wyh-LG-Ao9\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"q3o-8S-g6k\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"XQM-OV-Jxl\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"FM7-fI-Nu6\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"aHJ-fx-Qxr\"/>\n                <constraint firstItem=\"q3o-8S-g6k\" firstAttribute=\"leading\" secondItem=\"G2x-MY-zBs\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"cGo-QP-0zi\"/>\n                <constraint firstItem=\"FM7-fI-Nu6\" firstAttribute=\"top\" secondItem=\"q3o-8S-g6k\" secondAttribute=\"bottom\" constant=\"13\" id=\"hRt-Fo-F94\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"421\" y=\"893\"/>\n        </customView>\n        <customView id=\"qvM-yB-KWz\" userLabel=\"Message View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"590\" height=\"251\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <scrollView autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MtR-30-oY5\">\n                    <rect key=\"frame\" x=\"20\" y=\"61\" width=\"550\" height=\"151\"/>\n                    <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"THQ-ht-MMy\">\n                        <rect key=\"frame\" x=\"1\" y=\"1\" width=\"548\" height=\"149\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"leL-YY-uqs\" customClass=\"GICommitMessageView\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"548\" height=\"149\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <size key=\"minSize\" width=\"548\" height=\"149\"/>\n                                <size key=\"maxSize\" width=\"563\" height=\"10000000\"/>\n                                <attributedString key=\"textStorage\">\n                                    <fragment content=\"&lt;MESSAGE&gt;\">\n                                        <attributes>\n                                            <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <font key=\"NSFont\" metaFont=\"controlContent\" size=\"11\"/>\n                                            <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\"/>\n                                        </attributes>\n                                    </fragment>\n                                </attributedString>\n                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <connections>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"7yJ-Xw-bjd\"/>\n                                </connections>\n                            </textView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"Pfj-gG-gDJ\">\n                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"Vc4-iM-C8X\">\n                        <rect key=\"frame\" x=\"224\" y=\"1\" width=\"15\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ukh-fa-YMw\">\n                    <rect key=\"frame\" x=\"18\" y=\"220\" width=\"554\" height=\"16\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;TITLE&gt;\" id=\"pXD-VS-T9J\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"12\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Blj-1M-JJm\">\n                    <rect key=\"frame\" x=\"398\" y=\"20\" width=\"172\" height=\"24\"/>\n                    <subviews>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ggo-NX-oiy\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"66\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"o5d-4K-LgY\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"cancelModalView:\" target=\"-2\" id=\"9bR-ig-fZo\"/>\n                            </connections>\n                        </button>\n                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ss3-Af-4aU\">\n                            <rect key=\"frame\" x=\"78\" y=\"0.0\" width=\"94\" height=\"24\"/>\n                            <buttonCell key=\"cell\" type=\"push\" title=\"&lt;BUTTON&gt;\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"ciE-fC-og6\">\n                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                <font key=\"font\" metaFont=\"system\"/>\n                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                            </buttonCell>\n                            <connections>\n                                <action selector=\"finishModalView:\" target=\"-2\" id=\"DZ1-oQ-vNg\"/>\n                            </connections>\n                        </button>\n                    </subviews>\n                    <visibilityPriorities>\n                        <integer value=\"1000\"/>\n                        <integer value=\"1000\"/>\n                    </visibilityPriorities>\n                    <customSpacing>\n                        <real value=\"3.4028234663852886e+38\"/>\n                        <real value=\"3.4028234663852886e+38\"/>\n                    </customSpacing>\n                </stackView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"Ukh-fa-YMw\" firstAttribute=\"leading\" secondItem=\"qvM-yB-KWz\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"7MW-zC-Dts\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"Blj-1M-JJm\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"7u0-CY-XiX\"/>\n                <constraint firstItem=\"Blj-1M-JJm\" firstAttribute=\"top\" secondItem=\"MtR-30-oY5\" secondAttribute=\"bottom\" constant=\"17\" id=\"DHd-cH-X4R\"/>\n                <constraint firstItem=\"Ukh-fa-YMw\" firstAttribute=\"top\" secondItem=\"qvM-yB-KWz\" secondAttribute=\"top\" constant=\"15\" id=\"Hdk-9J-088\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"Ukh-fa-YMw\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"Ids-vH-xmr\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"MtR-30-oY5\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"a9Q-w8-OdR\"/>\n                <constraint firstItem=\"MtR-30-oY5\" firstAttribute=\"leading\" secondItem=\"qvM-yB-KWz\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"qxN-lt-4M8\"/>\n                <constraint firstItem=\"MtR-30-oY5\" firstAttribute=\"top\" secondItem=\"Ukh-fa-YMw\" secondAttribute=\"bottom\" constant=\"8\" symbolic=\"YES\" id=\"swo-m3-ggB\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"Blj-1M-JJm\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"tBY-vp-7lx\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"472\" y=\"1770.5\"/>\n        </customView>\n        <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ga8-vG-A68\" userLabel=\"Create Branch View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"420\" height=\"143\"/>\n            <subviews>\n                <gridView xPlacement=\"leading\" yPlacement=\"fill\" rowAlignment=\"none\" rowSpacing=\"9\" columnSpacing=\"8\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ei8-JL-NsZ\">\n                    <rect key=\"frame\" x=\"20\" y=\"20\" width=\"380\" height=\"103\"/>\n                    <rows>\n                        <gridRow rowAlignment=\"firstBaseline\" id=\"VCG-zV-I3c\"/>\n                        <gridRow bottomPadding=\"12\" id=\"wXp-y9-YKa\"/>\n                        <gridRow id=\"huA-Ji-9WJ\"/>\n                    </rows>\n                    <columns>\n                        <gridColumn id=\"ceW-Sf-CFr\"/>\n                        <gridColumn xPlacement=\"fill\" width=\"250\" id=\"VIx-jn-fnD\"/>\n                    </columns>\n                    <gridCells>\n                        <gridCell row=\"VCG-zV-I3c\" column=\"ceW-Sf-CFr\" xPlacement=\"trailing\" id=\"tGS-DR-eoM\">\n                            <textField key=\"contentView\" focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5H0-9d-GEY\">\n                                <rect key=\"frame\" x=\"6\" y=\"83\" width=\"118\" height=\"16\"/>\n                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"New branch name:\" id=\"pez-mo-54a\">\n                                    <font key=\"font\" metaFont=\"system\"/>\n                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                            </textField>\n                        </gridCell>\n                        <gridCell row=\"VCG-zV-I3c\" column=\"VIx-jn-fnD\" xPlacement=\"fill\" rowAlignment=\"firstBaseline\" id=\"B7f-R9-1bH\">\n                            <textField key=\"contentView\" focusRingType=\"none\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"CUj-FC-ARp\">\n                                <rect key=\"frame\" x=\"130\" y=\"79\" width=\"250\" height=\"24\"/>\n                                <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Required\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"F18-8s-TZU\">\n                                    <font key=\"font\" metaFont=\"system\"/>\n                                    <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                </textFieldCell>\n                                <connections>\n                                    <outlet property=\"delegate\" destination=\"-2\" id=\"107-Gn-Oun\"/>\n                                </connections>\n                            </textField>\n                        </gridCell>\n                        <gridCell row=\"wXp-y9-YKa\" column=\"ceW-Sf-CFr\" id=\"3vn-6c-aGz\"/>\n                        <gridCell row=\"wXp-y9-YKa\" column=\"VIx-jn-fnD\" id=\"IoI-Y4-nP6\">\n                            <button key=\"contentView\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"W3U-R6-9yO\">\n                                <rect key=\"frame\" x=\"130\" y=\"54\" width=\"250\" height=\"16\"/>\n                                <buttonCell key=\"cell\" type=\"check\" title=\"Check Out Immediately\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"8fJ-Ia-klN\">\n                                    <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                    <font key=\"font\" metaFont=\"system\"/>\n                                </buttonCell>\n                            </button>\n                        </gridCell>\n                        <gridCell row=\"huA-Ji-9WJ\" column=\"ceW-Sf-CFr\" id=\"42N-rR-4XE\"/>\n                        <gridCell row=\"huA-Ji-9WJ\" column=\"VIx-jn-fnD\" xPlacement=\"trailing\" id=\"DCm-lp-tzf\">\n                            <stackView key=\"contentView\" distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"12\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"PEu-rc-AbW\">\n                                <rect key=\"frame\" x=\"238\" y=\"0.0\" width=\"142\" height=\"33\"/>\n                                <subviews>\n                                    <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2Ox-ed-G2C\">\n                                        <rect key=\"frame\" x=\"0.0\" y=\"9\" width=\"66\" height=\"24\"/>\n                                        <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"vjc-QU-xVm\">\n                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                                        </buttonCell>\n                                        <connections>\n                                            <action selector=\"cancelModalView:\" target=\"-2\" id=\"J36-2s-3qk\"/>\n                                        </connections>\n                                    </button>\n                                    <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0Hb-Gb-gmN\">\n                                        <rect key=\"frame\" x=\"78\" y=\"9\" width=\"64\" height=\"24\"/>\n                                        <buttonCell key=\"cell\" type=\"push\" title=\"Create\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"ZVK-Ou-HSU\">\n                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                            <font key=\"font\" metaFont=\"system\"/>\n                                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                        </buttonCell>\n                                        <connections>\n                                            <action selector=\"finishModalView:\" target=\"-2\" id=\"kdW-6J-3j9\"/>\n                                        </connections>\n                                    </button>\n                                </subviews>\n                                <visibilityPriorities>\n                                    <integer value=\"1000\"/>\n                                    <integer value=\"1000\"/>\n                                </visibilityPriorities>\n                                <customSpacing>\n                                    <real value=\"3.4028234663852886e+38\"/>\n                                    <real value=\"3.4028234663852886e+38\"/>\n                                </customSpacing>\n                            </stackView>\n                        </gridCell>\n                    </gridCells>\n                </gridView>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"bottom\" secondItem=\"ei8-JL-NsZ\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"9oJ-I7-9Oh\"/>\n                <constraint firstItem=\"ei8-JL-NsZ\" firstAttribute=\"leading\" secondItem=\"ga8-vG-A68\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"DMk-QH-IWy\"/>\n                <constraint firstAttribute=\"trailing\" secondItem=\"ei8-JL-NsZ\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"E1A-LB-851\"/>\n                <constraint firstItem=\"ei8-JL-NsZ\" firstAttribute=\"top\" secondItem=\"ga8-vG-A68\" secondAttribute=\"top\" constant=\"20\" symbolic=\"YES\" id=\"xhR-Pc-FwZ\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"451\" y=\"1237.5\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIQuickViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIQuickViewController\">\n            <connections>\n                <outlet property=\"authorDateTextField\" destination=\"NMY-tY-Mrh\" id=\"cJd-Hg-sbc\"/>\n                <outlet property=\"authorTextField\" destination=\"Men-K8-VwT\" id=\"LJG-fX-aM1\"/>\n                <outlet property=\"committerDateTextField\" destination=\"p8J-vi-dDp\" id=\"rnb-jG-CSk\"/>\n                <outlet property=\"committerTextField\" destination=\"5Yv-8b-x0c\" id=\"RhJ-im-KYY\"/>\n                <outlet property=\"contentsView\" destination=\"gnd-mU-OFa\" id=\"aua-gs-pD6\"/>\n                <outlet property=\"filesView\" destination=\"T7C-Lf-raW\" id=\"mzB-kk-e11\"/>\n                <outlet property=\"infoScrollView\" destination=\"A0F-jI-s4n\" id=\"bGh-0w-P8p\"/>\n                <outlet property=\"infoSplitView\" destination=\"byI-fn-H6A\" id=\"pd0-S6-weW\"/>\n                <outlet property=\"infoView\" destination=\"Bpc-ZA-3gm\" id=\"hGF-hw-1ve\"/>\n                <outlet property=\"mainSplitView\" destination=\"pDr-8S-Qy7\" id=\"Uw3-5d-Y0W\"/>\n                <outlet property=\"messageTextField\" destination=\"CIg-ZV-lYt\" id=\"4pR-NU-HEE\"/>\n                <outlet property=\"sha1TextField\" destination=\"9bU-TV-AfR\" id=\"2ke-4d-NUJ\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pDr-8S-Qy7\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"f4F-XR-AGz\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"500\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"byI-fn-H6A\" customClass=\"GIDualSplitView\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"500\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <customView fixedFrame=\"YES\" id=\"l8A-EL-BfC\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"307\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <subviews>\n                                                <scrollView fixedFrame=\"YES\" borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"A0F-jI-s4n\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"307\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                    <clipView key=\"contentView\" id=\"4Rs-yN-ao7\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"307\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <subviews>\n                                                            <view fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Bpc-ZA-3gm\" customClass=\"GIFlippedView\">\n                                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"130\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                <subviews>\n                                                                    <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"aKy-Bi-5hY\">\n                                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"130\"/>\n                                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                        <subviews>\n                                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"9bU-TV-AfR\">\n                                                                                <rect key=\"frame\" x=\"12\" y=\"110\" width=\"278\" height=\"14\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                                                <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" truncatesLastVisibleLine=\"YES\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;SHA1&gt;\" id=\"Tsu-dV-mjp\">\n                                                                                    <font key=\"font\" metaFont=\"toolTip\"/>\n                                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                </textFieldCell>\n                                                                            </textField>\n                                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"CIg-ZV-lYt\">\n                                                                                <rect key=\"frame\" x=\"12\" y=\"84\" width=\"278\" height=\"14\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                                <textFieldCell key=\"cell\" controlSize=\"small\" selectable=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;MESSAGE&gt;\" id=\"fqu-LQ-wKF\">\n                                                                                    <font key=\"font\" metaFont=\"toolTip\"/>\n                                                                                    <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                </textFieldCell>\n                                                                            </textField>\n                                                                            <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"LRK-cU-aip\">\n                                                                                <rect key=\"frame\" x=\"14\" y=\"57\" width=\"10\" height=\"10\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                                <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" image=\"icon_author\" id=\"a14-H7-Quo\"/>\n                                                                            </imageView>\n                                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Men-K8-VwT\">\n                                                                                <rect key=\"frame\" x=\"25\" y=\"55\" width=\"265\" height=\"14\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                                <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" truncatesLastVisibleLine=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;AUTHOR NAME&gt;\" id=\"11W-Hl-yV0\">\n                                                                                    <font key=\"font\" metaFont=\"toolTip\"/>\n                                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                </textFieldCell>\n                                                                            </textField>\n                                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"NMY-tY-Mrh\">\n                                                                                <rect key=\"frame\" x=\"25\" y=\"41\" width=\"265\" height=\"14\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                                <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" truncatesLastVisibleLine=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;AUTHOR DATE&gt;\" id=\"ESf-oA-sr2\">\n                                                                                    <font key=\"font\" metaFont=\"toolTip\"/>\n                                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                </textFieldCell>\n                                                                            </textField>\n                                                                            <imageView horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"251\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"WZG-3V-AFB\">\n                                                                                <rect key=\"frame\" x=\"14\" y=\"21\" width=\"10\" height=\"10\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                                <imageCell key=\"cell\" refusesFirstResponder=\"YES\" alignment=\"left\" image=\"icon_committer\" id=\"BIg-uL-lng\"/>\n                                                                            </imageView>\n                                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5Yv-8b-x0c\">\n                                                                                <rect key=\"frame\" x=\"25\" y=\"19\" width=\"265\" height=\"14\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                                <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" truncatesLastVisibleLine=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;COMMITTER NAME&gt;\" id=\"4Tl-BB-pru\">\n                                                                                    <font key=\"font\" metaFont=\"toolTip\"/>\n                                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                </textFieldCell>\n                                                                            </textField>\n                                                                            <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"p8J-vi-dDp\">\n                                                                                <rect key=\"frame\" x=\"25\" y=\"7\" width=\"265\" height=\"14\"/>\n                                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMaxY=\"YES\"/>\n                                                                                <textFieldCell key=\"cell\" controlSize=\"small\" lineBreakMode=\"truncatingTail\" truncatesLastVisibleLine=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;COMMITTER DATE&gt;\" id=\"Dbg-2h-APW\">\n                                                                                    <font key=\"font\" metaFont=\"toolTip\"/>\n                                                                                    <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                    <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                </textFieldCell>\n                                                                            </textField>\n                                                                        </subviews>\n                                                                    </customView>\n                                                                </subviews>\n                                                            </view>\n                                                        </subviews>\n                                                    </clipView>\n                                                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"66V-r2-arn\">\n                                                        <rect key=\"frame\" x=\"1\" y=\"80\" width=\"166\" height=\"15\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </scroller>\n                                                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"czD-m5-i7D\">\n                                                        <rect key=\"frame\" x=\"167\" y=\"1\" width=\"15\" height=\"79\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </scroller>\n                                                </scrollView>\n                                            </subviews>\n                                        </customView>\n                                        <customView fixedFrame=\"YES\" id=\"9jQ-Hh-mZE\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"308\" width=\"300\" height=\"192\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <subviews>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"T7C-Lf-raW\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"192\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                </customView>\n                                            </subviews>\n                                        </customView>\n                                    </subviews>\n                                    <holdingPriorities>\n                                        <real value=\"250\"/>\n                                        <real value=\"250\"/>\n                                    </holdingPriorities>\n                                    <userDefinedRuntimeAttributes>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                                            <real key=\"value\" value=\"200\"/>\n                                        </userDefinedRuntimeAttribute>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                                            <real key=\"value\" value=\"200\"/>\n                                        </userDefinedRuntimeAttribute>\n                                    </userDefinedRuntimeAttributes>\n                                </splitView>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"sVe-NV-CuT\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"500\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gnd-mU-OFa\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"500\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"139\" y=\"154\"/>\n        </view>\n    </objects>\n    <resources>\n        <image name=\"icon_author\" width=\"10\" height=\"10\"/>\n        <image name=\"icon_committer\" width=\"10\" height=\"10\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GISimpleCommitViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GISimpleCommitViewController\">\n            <connections>\n                <outlet property=\"commitButton\" destination=\"3PR-J1-aKE\" id=\"8HV-TT-D7f\"/>\n                <outlet property=\"contentsView\" destination=\"hwM-6S-E69\" id=\"aJi-zv-CuV\"/>\n                <outlet property=\"filesView\" destination=\"OjA-hK-WAP\" id=\"jGe-bb-qi8\"/>\n                <outlet property=\"infoTextField\" destination=\"H0U-9x-3Cl\" id=\"Qbc-9m-iTi\"/>\n                <outlet property=\"messageTextView\" destination=\"eAE-oX-6eB\" id=\"3Ef-ZQ-iJL\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MrH-0U-K7B\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"500\"/>\n                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                    <subviews>\n                        <customView fixedFrame=\"YES\" id=\"aqx-CW-Hpb\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"500\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <splitView fixedFrame=\"YES\" dividerStyle=\"thin\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Xr2-bz-eaL\" customClass=\"GIDualSplitView\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"500\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <customView fixedFrame=\"YES\" id=\"5oI-c2-Y6H\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"285\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <subviews>\n                                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OjA-hK-WAP\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"285\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                </customView>\n                                            </subviews>\n                                        </customView>\n                                        <customView fixedFrame=\"YES\" id=\"rFU-nO-Hjp\">\n                                            <rect key=\"frame\" x=\"0.0\" y=\"286\" width=\"300\" height=\"214\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <subviews>\n                                                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"H0U-9x-3Cl\">\n                                                    <rect key=\"frame\" x=\"12\" y=\"176\" width=\"276\" height=\"28\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" flexibleMinY=\"YES\"/>\n                                                    <textFieldCell key=\"cell\" controlSize=\"small\" truncatesLastVisibleLine=\"YES\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" id=\"dbO-mu-br6\">\n                                                        <font key=\"font\" metaFont=\"toolTip\"/>\n                                                        <string key=\"title\">&lt;INFO&gt;\n&lt;INFO&gt;</string>\n                                                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </textFieldCell>\n                                                </textField>\n                                                <scrollView focusRingType=\"exterior\" fixedFrame=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"od0-zP-yaf\">\n                                                    <rect key=\"frame\" x=\"14\" y=\"45\" width=\"272\" height=\"123\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                    <clipView key=\"contentView\" drawsBackground=\"NO\" id=\"3v3-B4-edQ\">\n                                                        <rect key=\"frame\" x=\"1\" y=\"1\" width=\"270\" height=\"121\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <subviews>\n                                                            <textView importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" findStyle=\"panel\" allowsUndo=\"YES\" smartInsertDelete=\"YES\" id=\"eAE-oX-6eB\" customClass=\"GICommitMessageView\">\n                                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"270\" height=\"121\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <size key=\"minSize\" width=\"270\" height=\"121\"/>\n                                                                <size key=\"maxSize\" width=\"10000000\" height=\"10000000\"/>\n                                                                <attributedString key=\"textStorage\">\n                                                                    <fragment content=\"&lt;MESSAGE&gt;\">\n                                                                        <attributes>\n                                                                            <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <font key=\"NSFont\" metaFont=\"controlContent\" size=\"11\"/>\n                                                                            <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\"/>\n                                                                        </attributes>\n                                                                    </fragment>\n                                                                </attributedString>\n                                                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                <connections>\n                                                                    <outlet property=\"delegate\" destination=\"-2\" id=\"ItD-9a-FP2\"/>\n                                                                </connections>\n                                                            </textView>\n                                                        </subviews>\n                                                    </clipView>\n                                                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"bAt-Qt-raJ\">\n                                                        <rect key=\"frame\" x=\"-100\" y=\"-100\" width=\"87\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </scroller>\n                                                    <scroller key=\"verticalScroller\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"ya4-9F-ykc\">\n                                                        <rect key=\"frame\" x=\"254\" y=\"1\" width=\"17\" height=\"121\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                    </scroller>\n                                                </scrollView>\n                                                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3PR-J1-aKE\">\n                                                    <rect key=\"frame\" x=\"110\" y=\"5\" width=\"182\" height=\"32\"/>\n                                                    <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxY=\"YES\"/>\n                                                    <buttonCell key=\"cell\" type=\"push\" title=\"Commit All Changes\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Ibk-mz-3rz\">\n                                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\" command=\"YES\"/>\n                                                    </buttonCell>\n                                                    <connections>\n                                                        <action selector=\"commit:\" target=\"-2\" id=\"EeG-y7-Nd8\"/>\n                                                    </connections>\n                                                </button>\n                                            </subviews>\n                                        </customView>\n                                    </subviews>\n                                    <holdingPriorities>\n                                        <real value=\"250\"/>\n                                        <real value=\"250\"/>\n                                    </holdingPriorities>\n                                    <userDefinedRuntimeAttributes>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                                            <real key=\"value\" value=\"200\"/>\n                                        </userDefinedRuntimeAttribute>\n                                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                                            <real key=\"value\" value=\"200\"/>\n                                        </userDefinedRuntimeAttribute>\n                                    </userDefinedRuntimeAttributes>\n                                </splitView>\n                            </subviews>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"dBG-Wf-83t\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"500\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hwM-6S-E69\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"500\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"139\" y=\"154\"/>\n        </view>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/Base.lproj/GIStashListViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"NSView safe area layout guides\" minToolsVersion=\"12.0\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIStashListViewController\">\n            <connections>\n                <outlet property=\"applyButton\" destination=\"BQO-hB-uyJ\" id=\"7oF-MK-rBo\"/>\n                <outlet property=\"diffView\" destination=\"z83-ov-Iwr\" id=\"Dur-Eu-b8w\"/>\n                <outlet property=\"dropButton\" destination=\"Nb7-TT-Jjt\" id=\"RXa-Wc-2aU\"/>\n                <outlet property=\"emptyLabel\" destination=\"2vp-ts-xnS\" id=\"bMk-n9-68o\"/>\n                <outlet property=\"indexButton\" destination=\"gS5-gJ-uvH\" id=\"5SK-sV-BAo\"/>\n                <outlet property=\"messageTextField\" destination=\"1Ft-qn-oYj\" id=\"dHc-cx-EuN\"/>\n                <outlet property=\"saveView\" destination=\"hZQ-gb-8kq\" id=\"l9h-Vs-U3S\"/>\n                <outlet property=\"tableView\" destination=\"PuJ-qB-scf\" id=\"kU5-Zz-Ihc\"/>\n                <outlet property=\"untrackedButton\" destination=\"4M1-G4-Gro\" id=\"sdV-DC-nNM\"/>\n                <outlet property=\"view\" destination=\"Mge-gB-T5T\" id=\"Dk7-8C-xIa\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <view misplaced=\"YES\" id=\"Mge-gB-T5T\" userLabel=\"Main View\" customClass=\"GIView\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"776\"/>\n            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n            <subviews>\n                <splitView dividerStyle=\"thin\" vertical=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"M8I-h4-KwC\" customClass=\"GIDualSplitView\">\n                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"1000\" height=\"761\"/>\n                    <subviews>\n                        <customView misplaced=\"YES\" id=\"Xfi-Nn-lMB\">\n                            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"761\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <box verticalHuggingPriority=\"750\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"R5I-cO-ijQ\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"31\" width=\"300\" height=\"5\"/>\n                                </box>\n                                <scrollView borderType=\"none\" autohidesScrollers=\"YES\" horizontalLineScroll=\"50\" horizontalPageScroll=\"10\" verticalLineScroll=\"50\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" usesPredominantAxisScrolling=\"NO\" horizontalScrollElasticity=\"none\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"9JY-At-FkM\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"34\" width=\"300\" height=\"712\"/>\n                                    <clipView key=\"contentView\" id=\"30S-bg-Q3C\">\n                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"712\"/>\n                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                        <subviews>\n                                            <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" tableStyle=\"inset\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" rowHeight=\"50\" rowSizeStyle=\"automatic\" viewBased=\"YES\" floatsGroupRows=\"NO\" id=\"PuJ-qB-scf\" customClass=\"GITableView\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"300\" height=\"712\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <tableViewGridLines key=\"gridStyleMask\" horizontal=\"YES\"/>\n                                                <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <tableColumns>\n                                                    <tableColumn editable=\"NO\" width=\"268\" minWidth=\"40\" maxWidth=\"1000\" id=\"sMJ-Ww-cFI\">\n                                                        <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" alignment=\"left\">\n                                                            <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </tableHeaderCell>\n                                                        <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" alignment=\"left\" title=\"Text Cell\" id=\"FGb-4j-PWA\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                        <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\"/>\n                                                        <prototypeCellViews>\n                                                            <tableCellView id=\"bQD-xg-B71\" customClass=\"GIStashCellView\">\n                                                                <rect key=\"frame\" x=\"10\" y=\"0.0\" width=\"280\" height=\"50\"/>\n                                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                <subviews>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kMa-x0-GwY\">\n                                                                        <rect key=\"frame\" x=\"140\" y=\"31\" width=\"128\" height=\"14\"/>\n                                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"&lt;DATE&gt;\" id=\"SY5-XT-Mrl\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ciy-df-V4O\">\n                                                                        <rect key=\"frame\" x=\"12\" y=\"31\" width=\"84\" height=\"14\"/>\n                                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                                        <textFieldCell key=\"cell\" controlSize=\"small\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;SHA1&gt;\" id=\"3Ul-3u-DTt\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                    <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" setsMaxLayoutWidthAtFirstLayout=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lq0-ph-7oD\">\n                                                                        <rect key=\"frame\" x=\"12\" y=\"8\" width=\"256\" height=\"15\"/>\n                                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                                        <textFieldCell key=\"cell\" controlSize=\"small\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"left\" title=\"&lt;MESSAGE&gt;\" id=\"RFY-3j-XbF\">\n                                                                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                            <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                        </textFieldCell>\n                                                                    </textField>\n                                                                </subviews>\n                                                                <connections>\n                                                                    <outlet property=\"dateTextField\" destination=\"kMa-x0-GwY\" id=\"luK-CR-dTC\"/>\n                                                                    <outlet property=\"messageTextField\" destination=\"lq0-ph-7oD\" id=\"hId-oN-ouj\"/>\n                                                                    <outlet property=\"sha1TextField\" destination=\"ciy-df-V4O\" id=\"uyR-lY-cP9\"/>\n                                                                </connections>\n                                                            </tableCellView>\n                                                        </prototypeCellViews>\n                                                    </tableColumn>\n                                                </tableColumns>\n                                                <connections>\n                                                    <outlet property=\"dataSource\" destination=\"-2\" id=\"tHJ-iZ-Q6v\"/>\n                                                    <outlet property=\"delegate\" destination=\"-2\" id=\"SZb-8q-eJY\"/>\n                                                </connections>\n                                            </tableView>\n                                        </subviews>\n                                    </clipView>\n                                    <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"pap-ze-etC\">\n                                        <rect key=\"frame\" x=\"1\" y=\"31.568840026855469\" width=\"48\" height=\"16\"/>\n                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                    </scroller>\n                                    <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"tIQ-My-iPi\">\n                                        <rect key=\"frame\" x=\"224\" y=\"17\" width=\"15\" height=\"102\"/>\n                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                    </scroller>\n                                </scrollView>\n                                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2vp-ts-xnS\">\n                                    <rect key=\"frame\" x=\"10\" y=\"388\" width=\"280\" height=\"18\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMinX=\"YES\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\" flexibleMaxY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" allowsUndo=\"NO\" sendsActionOnEndEditing=\"YES\" alignment=\"center\" title=\"No Stashes\" id=\"zsp-Bw-JJB\">\n                                        <font key=\"font\" metaFont=\"system\" size=\"14\"/>\n                                        <color key=\"textColor\" name=\"secondaryLabelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <customView translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"xJL-8m-k6b\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"-15\" width=\"300\" height=\"48\"/>\n                                    <subviews>\n                                        <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"BQO-hB-uyJ\">\n                                            <rect key=\"frame\" x=\"233\" y=\"12\" width=\"59\" height=\"24\"/>\n                                            <buttonCell key=\"cell\" type=\"push\" title=\"Apply\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"tfe-JD-fS9\">\n                                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"applyStash:\" target=\"-2\" id=\"307-iv-B8n\"/>\n                                            </connections>\n                                        </button>\n                                        <stackView distribution=\"fill\" orientation=\"horizontal\" alignment=\"top\" spacing=\"4\" horizontalStackHuggingPriority=\"249.99998474121094\" verticalStackHuggingPriority=\"249.99998474121094\" detachesHiddenViews=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"sQB-eV-ghe\">\n                                            <rect key=\"frame\" x=\"12\" y=\"12\" width=\"79\" height=\"24\"/>\n                                            <subviews>\n                                                <button toolTip=\"Save new stash\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OrZ-IL-bI8\">\n                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"38\" height=\"24\"/>\n                                                    <buttonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" image=\"NSAddTemplate\" imagePosition=\"only\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"hGa-5V-ckv\">\n                                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                        <string key=\"keyEquivalent\">s</string>\n                                                    </buttonCell>\n                                                    <connections>\n                                                        <action selector=\"saveStash:\" target=\"-2\" id=\"cFs-bg-Klk\"/>\n                                                    </connections>\n                                                </button>\n                                                <button toolTip=\"Delete selected stash\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Nb7-TT-Jjt\">\n                                                    <rect key=\"frame\" x=\"42\" y=\"0.0\" width=\"37\" height=\"24\"/>\n                                                    <buttonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" image=\"NSRemoveTemplate\" imagePosition=\"only\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"REa-ay-zbm\">\n                                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                        <font key=\"font\" metaFont=\"system\"/>\n                                                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nCA\n</string>\n                                                    </buttonCell>\n                                                    <connections>\n                                                        <action selector=\"dropStash:\" target=\"-2\" id=\"FN7-Nh-Qob\"/>\n                                                    </connections>\n                                                </button>\n                                            </subviews>\n                                            <visibilityPriorities>\n                                                <integer value=\"1000\"/>\n                                                <integer value=\"1000\"/>\n                                            </visibilityPriorities>\n                                            <customSpacing>\n                                                <real value=\"3.4028234663852886e+38\"/>\n                                                <real value=\"3.4028234663852886e+38\"/>\n                                            </customSpacing>\n                                        </stackView>\n                                    </subviews>\n                                    <constraints>\n                                        <constraint firstItem=\"sQB-eV-ghe\" firstAttribute=\"leading\" secondItem=\"xJL-8m-k6b\" secondAttribute=\"leading\" constant=\"12\" id=\"HtV-bo-bbq\"/>\n                                        <constraint firstItem=\"BQO-hB-uyJ\" firstAttribute=\"leading\" relation=\"greaterThanOrEqual\" secondItem=\"sQB-eV-ghe\" secondAttribute=\"trailing\" constant=\"20\" id=\"IQh-Sf-8oK\"/>\n                                        <constraint firstAttribute=\"trailing\" secondItem=\"BQO-hB-uyJ\" secondAttribute=\"trailing\" constant=\"8\" id=\"agY-hO-7nH\"/>\n                                        <constraint firstItem=\"BQO-hB-uyJ\" firstAttribute=\"top\" secondItem=\"xJL-8m-k6b\" secondAttribute=\"top\" constant=\"12\" id=\"c7o-bX-Fio\"/>\n                                        <constraint firstItem=\"sQB-eV-ghe\" firstAttribute=\"centerY\" secondItem=\"xJL-8m-k6b\" secondAttribute=\"centerY\" id=\"nwJ-cz-enp\"/>\n                                        <constraint firstAttribute=\"bottom\" secondItem=\"BQO-hB-uyJ\" secondAttribute=\"bottom\" constant=\"12\" id=\"uhj-Hg-FCy\"/>\n                                    </constraints>\n                                </customView>\n                            </subviews>\n                            <constraints>\n                                <constraint firstItem=\"xJL-8m-k6b\" firstAttribute=\"top\" secondItem=\"R5I-cO-ijQ\" secondAttribute=\"bottom\" id=\"38f-eu-Cyx\"/>\n                                <constraint firstAttribute=\"trailing\" secondItem=\"R5I-cO-ijQ\" secondAttribute=\"trailing\" id=\"D8h-r1-2vs\"/>\n                                <constraint firstItem=\"9JY-At-FkM\" firstAttribute=\"top\" secondItem=\"Xfi-Nn-lMB\" secondAttribute=\"top\" id=\"Ica-gO-Isy\"/>\n                                <constraint firstItem=\"R5I-cO-ijQ\" firstAttribute=\"top\" secondItem=\"9JY-At-FkM\" secondAttribute=\"bottom\" id=\"lhj-Ho-8YW\"/>\n                                <constraint firstItem=\"R5I-cO-ijQ\" firstAttribute=\"leading\" secondItem=\"Xfi-Nn-lMB\" secondAttribute=\"leading\" id=\"qEX-Hg-QCk\"/>\n                                <constraint firstAttribute=\"trailing\" secondItem=\"9JY-At-FkM\" secondAttribute=\"trailing\" id=\"rHz-GX-MIF\"/>\n                                <constraint firstAttribute=\"trailing\" secondItem=\"xJL-8m-k6b\" secondAttribute=\"trailing\" id=\"sda-dG-my3\"/>\n                                <constraint firstItem=\"xJL-8m-k6b\" firstAttribute=\"leading\" secondItem=\"Xfi-Nn-lMB\" secondAttribute=\"leading\" id=\"uVC-Wa-wkO\"/>\n                                <constraint firstAttribute=\"bottom\" secondItem=\"xJL-8m-k6b\" secondAttribute=\"bottom\" id=\"vHO-Hr-6Te\"/>\n                                <constraint firstItem=\"9JY-At-FkM\" firstAttribute=\"leading\" secondItem=\"Xfi-Nn-lMB\" secondAttribute=\"leading\" id=\"yBF-xH-23X\"/>\n                            </constraints>\n                        </customView>\n                        <customView fixedFrame=\"YES\" id=\"h9c-cK-1on\">\n                            <rect key=\"frame\" x=\"301\" y=\"0.0\" width=\"699\" height=\"761\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                            <subviews>\n                                <customView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"z83-ov-Iwr\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"699\" height=\"761\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                </customView>\n                            </subviews>\n                        </customView>\n                    </subviews>\n                    <holdingPriorities>\n                        <real value=\"250\"/>\n                        <real value=\"250\"/>\n                    </holdingPriorities>\n                    <userDefinedRuntimeAttributes>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize1\">\n                            <real key=\"value\" value=\"300\"/>\n                        </userDefinedRuntimeAttribute>\n                        <userDefinedRuntimeAttribute type=\"number\" keyPath=\"minSize2\">\n                            <real key=\"value\" value=\"500\"/>\n                        </userDefinedRuntimeAttribute>\n                    </userDefinedRuntimeAttributes>\n                </splitView>\n            </subviews>\n            <constraints>\n                <constraint firstItem=\"Xt6-rU-Niz\" firstAttribute=\"top\" secondItem=\"M8I-h4-KwC\" secondAttribute=\"top\" id=\"gJL-Kl-V0j\"/>\n                <constraint firstItem=\"M8I-h4-KwC\" firstAttribute=\"bottom\" secondItem=\"Xt6-rU-Niz\" secondAttribute=\"bottom\" id=\"ikg-yx-oS6\"/>\n                <constraint firstItem=\"M8I-h4-KwC\" firstAttribute=\"trailing\" secondItem=\"Xt6-rU-Niz\" secondAttribute=\"trailing\" id=\"m23-zn-HTY\"/>\n                <constraint firstItem=\"M8I-h4-KwC\" firstAttribute=\"leading\" secondItem=\"Xt6-rU-Niz\" secondAttribute=\"leading\" id=\"xeK-Ii-ahA\"/>\n            </constraints>\n            <viewLayoutGuide key=\"safeArea\" id=\"Xt6-rU-Niz\"/>\n            <viewLayoutGuide key=\"layoutMargins\" id=\"5HB-fp-nds\"/>\n            <point key=\"canvasLocation\" x=\"432\" y=\"321\"/>\n        </view>\n        <customView id=\"hZQ-gb-8kq\" userLabel=\"Save View\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"413\" height=\"152\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField focusRingType=\"none\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"1Ft-qn-oYj\">\n                    <rect key=\"frame\" x=\"93\" y=\"110\" width=\"300\" height=\"22\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" placeholderString=\"Optional\" drawsBackground=\"YES\" id=\"68O-Ht-dLG\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                    <connections>\n                        <outlet property=\"delegate\" destination=\"-2\" id=\"Cdj-ac-GxD\"/>\n                    </connections>\n                </textField>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FMA-JZ-b0c\">\n                    <rect key=\"frame\" x=\"18\" y=\"112\" width=\"69\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Message:\" id=\"VGx-PL-1V0\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gS5-gJ-uvH\">\n                    <rect key=\"frame\" x=\"91\" y=\"62\" width=\"193\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Don't reset the index\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"Thq-wo-bXn\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                </button>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"W1J-su-S4N\">\n                    <rect key=\"frame\" x=\"25\" y=\"83\" width=\"62\" height=\"17\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" alignment=\"right\" title=\"Options:\" id=\"vp5-Mn-0Tn\">\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4M1-G4-Gro\">\n                    <rect key=\"frame\" x=\"91\" y=\"82\" width=\"193\" height=\"18\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"check\" title=\"Include untracked files\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"m4P-xH-uzL\">\n                        <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vJY-XB-liH\">\n                    <rect key=\"frame\" x=\"277\" y=\"13\" width=\"122\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Save Stash\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"C2U-GN-V9l\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"finishModalView:\" target=\"-2\" id=\"wJa-tV-op1\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7wW-wx-tLU\">\n                    <rect key=\"frame\" x=\"177\" y=\"13\" width=\"100\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"fFT-El-nrs\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"cancelModalView:\" target=\"-2\" id=\"Duj-rD-z5s\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"269.5\" y=\"777\"/>\n        </customView>\n    </objects>\n    <resources>\n        <image name=\"NSAddTemplate\" width=\"18\" height=\"17\"/>\n        <image name=\"NSRemoveTemplate\" width=\"18\" height=\"5\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/GIAdvancedCommitViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GICommitViewController.h\"\n\n@interface GIAdvancedCommitViewController : GICommitViewController\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIAdvancedCommitViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIAdvancedCommitViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIRemappingExplanationPopover.h\"\n#import \"GIViewController+Utilities.h\"\n\n#import \"GIColorView.h\"\n#import \"GIInterface.h\"\n#import \"GIWindowController.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIAdvancedCommitViewController () <GIDiffFilesViewControllerDelegate, GIDiffContentsViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet GIColorView* workdirHeaderView;\n@property(nonatomic, weak) IBOutlet NSView* workdirFilesView;\n@property(nonatomic, weak) IBOutlet GIColorView* indexHeaderView;\n@property(nonatomic, weak) IBOutlet NSView* indexFilesView;\n@property(nonatomic, weak) IBOutlet NSView* diffContentsView;\n@property(nonatomic, weak) IBOutlet NSButton* unstageButton;\n@property(nonatomic, weak) IBOutlet NSButton* commitButton;\n@property(nonatomic, weak) IBOutlet NSButton* stageButton;\n@property(nonatomic, weak) IBOutlet NSButton* discardButton;\n@end\n\n@implementation GIAdvancedCommitViewController {\n  GIDiffFilesViewController* _workdirFilesViewController;\n  GIDiffFilesViewController* _indexFilesViewController;\n  GIDiffContentsViewController* _diffContentsViewController;\n  GCDiff* _indexStatus;\n  GCDiff* _workdirStatus;\n  NSDictionary* _indexConflicts;\n  BOOL _indexActive;\n  BOOL _disableFeedback;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _workdirHeaderView.backgroundColor = NSColor.gitUpCommitHeaderBackgroundColor;\n\n  _workdirFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _workdirFilesViewController.delegate = self;\n  _workdirFilesViewController.allowsMultipleSelection = YES;\n  _workdirFilesViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_workdirFilesView replaceWithView:_workdirFilesViewController.view];\n\n  _indexHeaderView.backgroundColor = NSColor.gitUpCommitHeaderBackgroundColor;\n\n  _indexFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _indexFilesViewController.delegate = self;\n  _indexFilesViewController.allowsMultipleSelection = YES;\n  _indexFilesViewController.emptyLabel = NSLocalizedString(@\"No changes in index\", nil);\n  [_indexFilesView replaceWithView:_indexFilesViewController.view];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No file selected\", nil);\n  [_diffContentsView replaceWithView:_diffContentsViewController.view];\n\n  self.messageTextView.string = @\"\";\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Disabled);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Normal;\n\n  [self _reloadContents];\n\n  _workdirFilesViewController.selectedDelta = _workdirStatus.deltas.firstObject;\n  _indexFilesViewController.selectedDelta = _indexStatus.deltas.firstObject;\n}\n\n- (void)viewDidAppear {\n  [super viewDidAppear];\n\n  // Remove this logic in a year or so\n  [GIRemappingExplanationPopover showIfNecessaryRelativeToRect:NSZeroRect ofView:_commitButton preferredEdge:NSRectEdgeMinY];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _workdirStatus = nil;\n  _indexStatus = nil;\n  _indexConflicts = nil;\n\n  [_workdirFilesViewController setDeltas:nil usingConflicts:nil];\n  [_indexFilesViewController setDeltas:nil usingConflicts:nil];\n  [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Normal);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Disabled;\n}\n\n- (void)repositoryStatusDidUpdate {\n  [super repositoryStatusDidUpdate];\n\n  if (self.viewVisible) {\n    [self _reloadContents];\n  }\n}\n\n- (void)_updateCommitButton {\n  _commitButton.enabled = _indexStatus.modified || (self.repository.state == kGCRepositoryState_Merge) || self.amendButton.state;  // Creating an empty commit is OK for a merge or when amending\n}\n\n- (void)_reloadContents {\n  CGFloat offset;\n  GCDiffDelta* topDelta = [_diffContentsViewController topVisibleDelta:&offset];\n  NSArray* selectedWorkdirDeltas = _workdirFilesViewController.selectedDeltas;\n  NSUInteger selectedWorkdirRow = selectedWorkdirDeltas.count ? [_workdirStatus.deltas indexOfObjectIdenticalTo:selectedWorkdirDeltas.firstObject] : NSNotFound;\n  NSArray* selectedIndexDeltas = _indexFilesViewController.selectedDeltas;\n  NSUInteger selectedIndexRow = selectedIndexDeltas.count ? [_indexStatus.deltas indexOfObjectIdenticalTo:selectedIndexDeltas.firstObject] : NSNotFound;\n\n  _disableFeedback = YES;\n\n  _workdirStatus = self.repository.workingDirectoryStatus;\n  _indexStatus = self.repository.indexStatus;\n  _indexConflicts = self.repository.indexConflicts;\n\n  [_workdirFilesViewController setDeltas:_workdirStatus.deltas usingConflicts:_indexConflicts];\n  _workdirFilesViewController.selectedDeltas = selectedWorkdirDeltas;\n  if (_workdirStatus.deltas.count && selectedWorkdirDeltas.count && !_workdirFilesViewController.selectedDeltas.count && (selectedWorkdirRow != NSNotFound)) {\n    _workdirFilesViewController.selectedDelta = _workdirStatus.deltas[MIN(selectedWorkdirRow, _workdirStatus.deltas.count - 1)];  // If we can't preserve the selected deltas, attempt to preserve the first selected row\n  }\n\n  [_indexFilesViewController setDeltas:_indexStatus.deltas usingConflicts:_indexConflicts];\n  _indexFilesViewController.selectedDeltas = selectedIndexDeltas;\n  if (_indexStatus.deltas.count && selectedIndexDeltas.count && !_indexFilesViewController.selectedDeltas.count && (selectedIndexRow != NSNotFound)) {\n    _indexFilesViewController.selectedDelta = _indexStatus.deltas[MIN(selectedIndexRow, _indexStatus.deltas.count - 1)];  // If we can't preserve the selected deltas, attempt to preserve the first selected row\n  }\n\n  if (_indexActive) {\n    [_diffContentsViewController setDeltas:_indexFilesViewController.selectedDeltas usingConflicts:_indexConflicts];\n  } else {\n    [_diffContentsViewController setDeltas:_workdirFilesViewController.selectedDeltas usingConflicts:_indexConflicts];\n  }\n  [_diffContentsViewController setTopVisibleDelta:topDelta offset:offset];\n\n  _disableFeedback = NO;\n\n  _unstageButton.enabled = _indexStatus.modified;\n  _stageButton.enabled = _workdirStatus.modified;\n  _discardButton.enabled = _workdirStatus.modified;\n  [self _updateCommitButton];\n}\n\n// We can't use the default implementation since we need a dynamic first-responder\n- (NSView*)preferredFirstResponder {\n  if (_indexStatus.deltas.count && !_workdirStatus.deltas.count) {\n    return _indexFilesViewController.preferredFirstResponder;\n  }\n  return _workdirFilesViewController.preferredFirstResponder;\n}\n\n- (void)didCreateCommit:(GCCommit*)commit {\n  [super didCreateCommit:commit];\n\n  _indexActive = NO;\n  [self.view.window makeFirstResponder:_workdirFilesViewController.preferredFirstResponder];\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewControllerDidBecomeFirstResponder:(GIDiffFilesViewController*)controller {\n  [self diffFilesViewControllerDidChangeSelection:controller];\n}\n\n- (void)diffFilesViewControllerDidChangeSelection:(GIDiffFilesViewController*)controller {\n  if (!_disableFeedback) {\n    if (controller == _workdirFilesViewController) {\n      [_diffContentsViewController setDeltas:_workdirFilesViewController.selectedDeltas usingConflicts:_indexConflicts];\n      _indexActive = NO;\n    } else if (controller == _indexFilesViewController) {\n      [_diffContentsViewController setDeltas:_indexFilesViewController.selectedDeltas usingConflicts:_indexConflicts];\n      _indexActive = YES;\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  }\n}\n\n- (void)_stageSelectedFiles:(NSArray*)selectedDeltas {\n  NSMutableArray* deltas = [[NSMutableArray alloc] init];\n  NSMutableArray* nonSubmoduleDeltasPaths = [[NSMutableArray alloc] init];\n\n  for (GCDiffDelta* delta in selectedDeltas) {\n    if (![_indexConflicts objectForKey:delta.canonicalPath]) {\n      if (delta.submodule) {\n        [self stageSubmoduleAtPath:delta.canonicalPath];\n      } else {\n        [nonSubmoduleDeltasPaths addObject:delta.canonicalPath];\n      }\n      [deltas addObject:delta];\n    }\n  }\n\n  [self stageAllChangesForFiles:nonSubmoduleDeltasPaths];\n\n  if (deltas.count) {\n    _disableFeedback = YES;\n    _indexFilesViewController.selectedDeltas = deltas;\n    _disableFeedback = NO;\n    if (!_workdirFilesViewController.deltas.count) {\n      _indexActive = YES;\n      [self.view.window makeFirstResponder:_indexFilesViewController.preferredFirstResponder];\n    }\n  } else {\n    NSBeep();\n  }\n}\n\n- (void)_unstageSelectedFiles:(NSArray*)selectedDeltas {\n  NSMutableArray* deltas = [[NSMutableArray alloc] init];\n  NSMutableArray* nonSubmoduleDeltasPaths = [[NSMutableArray alloc] init];\n  for (GCDiffDelta* delta in selectedDeltas) {\n    if (![_indexConflicts objectForKey:delta.canonicalPath]) {\n      if (delta.submodule) {\n        [self unstageSubmoduleAtPath:delta.canonicalPath];\n      } else {\n        [nonSubmoduleDeltasPaths addObject:delta.canonicalPath];\n      }\n      [deltas addObject:delta];\n    }\n  }\n\n  [self unstageAllChangesForFiles:nonSubmoduleDeltasPaths];\n\n  if (deltas.count) {\n    _disableFeedback = YES;\n    _workdirFilesViewController.selectedDeltas = deltas;\n    _disableFeedback = NO;\n    if (!_indexFilesViewController.deltas.count) {\n      _indexActive = NO;\n      [self.view.window makeFirstResponder:_workdirFilesViewController.preferredFirstResponder];\n    }\n  } else {\n    NSBeep();\n  }\n}\n\n- (void)_diffFilesViewControllerDidPressReturn:(GIDiffFilesViewController*)controller {\n  if (controller == _workdirFilesViewController) {\n    [self _stageSelectedFiles:_workdirFilesViewController.selectedDeltas];\n  } else if (controller == _indexFilesViewController) {\n    [self _unstageSelectedFiles:_indexFilesViewController.selectedDeltas];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)_diffFilesViewControllerDidPressDelete:(GIDiffFilesViewController*)controller {\n  if (controller == _workdirFilesViewController) {\n    NSArray* deltas = _workdirFilesViewController.selectedDeltas;\n    if (deltas.count) {\n      [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                     title:NSLocalizedString(@\"Are you sure you want to discard all changes from the selected files?\", nil)\n                                   message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                    button:NSLocalizedString(@\"Discard\", nil)\n                 suppressionUserDefaultKey:nil\n                                     block:^{\n                                       NSMutableArray* selectedFiles = [NSMutableArray array];\n\n                                       for (GCDiffDelta* delta in deltas) {\n                                         NSError* error;\n                                         BOOL submodule = delta.submodule;\n                                         if (submodule) {\n                                           // We handle every submodules deltas individually\n                                           if (![self discardSubmoduleAtPath:delta.canonicalPath resetIndex:NO error:&error]) {\n                                             [self presentError:error];\n                                             break;\n                                           }\n                                         } else {\n                                           // Otherwise we collect file delta paths to batch process them afterwards\n                                           [selectedFiles addObject:delta.canonicalPath];\n                                         }\n                                       }\n\n                                       NSError* error;\n                                       if (![self discardAllChangesForFiles:selectedFiles resetIndex:NO error:&error]) {\n                                         [self presentError:error];\n                                       }\n\n                                       [self.repository notifyWorkingDirectoryChanged];\n                                       if (!_workdirFilesViewController.deltas.count) {\n                                         _indexActive = YES;\n                                         [self.view.window makeFirstResponder:_indexFilesViewController.preferredFirstResponder];\n                                       }\n                                     }];\n    } else {\n      NSBeep();\n    }\n  } else {\n    XLOG_DEBUG_CHECK(controller == _indexFilesViewController);\n    NSBeep();\n  }\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  // Stage/Unstage files by Return/Delete\n  if (!(event.modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask)) {\n    if (event.keyCode == kGIKeyCode_Return) {\n      [self _diffFilesViewControllerDidPressReturn:controller];\n      return YES;\n    } else if (event.keyCode == kGIKeyCode_Delete) {\n      [self _diffFilesViewControllerDidPressDelete:controller];\n      return YES;\n    }\n  }\n\n  // Navigate beteween stated and unstaged files list by up/down arrows\n  NSEventModifierFlags modifiers = event.modifierFlags & kGIKeyModifiersAll;\n  if (controller == _workdirFilesViewController && !modifiers && event.keyCode == kGIKeyCode_Down) {\n    bool onlyLastFileSelected = (controller.selectedDeltas.count == 1) && (controller.selectedDelta == controller.deltas.lastObject);\n    bool hasIndexFiles = _indexFilesViewController.deltas.count > 0;\n    if (onlyLastFileSelected && hasIndexFiles) {\n      // move focus to next controller\n      [[controller.view window] selectNextKeyView:_workdirFilesViewController.view];\n      return YES;\n    }\n  } else if (controller == _indexFilesViewController && !modifiers && event.keyCode == kGIKeyCode_Up) {\n    bool onlyFirstFileSelected = (controller.selectedDeltas.count == 1) && (controller.selectedDelta == controller.deltas.firstObject);\n    bool hasWorkdirFiles = _workdirFilesViewController.deltas.count > 0;\n    if (onlyFirstFileSelected && hasWorkdirFiles) {\n      // move focus to previous controller\n      [[controller.view window] selectPreviousKeyView:_workdirFilesViewController.view];\n      return YES;\n    }\n  }\n\n  // Perform contextual action on a file\n  if (controller == _workdirFilesViewController) {\n    return [self handleKeyDownEvent:event forSelectedDeltas:_workdirFilesViewController.selectedDeltas withConflicts:_indexConflicts allowOpen:YES];\n  } else if (controller == _indexFilesViewController) {\n    return [self handleKeyDownEvent:event forSelectedDeltas:_indexFilesViewController.selectedDeltas withConflicts:_indexConflicts allowOpen:YES];\n  }\n\n  return NO;\n}\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller didDoubleClickDeltas:(NSArray*)deltas {\n  if (controller == _workdirFilesViewController) {\n    [self _stageSelectedFiles:deltas];\n  } else if (controller == _indexFilesViewController) {\n    [self _unstageSelectedFiles:deltas];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (BOOL)diffFilesViewControllerShouldAcceptDeltas:(GIDiffFilesViewController*)controller fromOtherController:(GIDiffFilesViewController*)otherController {\n  return ((controller == _workdirFilesViewController) && (otherController == _indexFilesViewController)) || ((controller == _indexFilesViewController) && (otherController == _workdirFilesViewController));\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller didReceiveDeltas:(NSArray*)deltas fromOtherController:(GIDiffFilesViewController*)otherController {\n  if ((controller == _workdirFilesViewController) && (otherController == _indexFilesViewController)) {\n    NSMutableArray* fileDeltas = [NSMutableArray array];\n    for (GCDiffDelta* delta in deltas) {\n      if (![_indexConflicts objectForKey:delta.canonicalPath]) {\n        if (delta.submodule) {\n          [self unstageSubmoduleAtPath:delta.canonicalPath];\n        } else {\n          [fileDeltas addObject:delta.canonicalPath];\n        }\n      }\n    }\n    [self unstageAllChangesForFiles:fileDeltas];\n    _disableFeedback = YES;\n    _workdirFilesViewController.selectedDeltas = deltas;\n    _disableFeedback = NO;\n    if (!_indexFilesViewController.deltas.count) {\n      _indexActive = NO;\n      [self.view.window makeFirstResponder:_workdirFilesViewController.preferredFirstResponder];\n    }\n    return YES;\n  } else if ((controller == _indexFilesViewController) && (otherController == _workdirFilesViewController)) {\n    NSMutableArray* fileDeltas = [NSMutableArray array];\n    for (GCDiffDelta* delta in deltas) {\n      if (![_indexConflicts objectForKey:delta.canonicalPath]) {\n        if (delta.submodule) {\n          [self stageSubmoduleAtPath:delta.canonicalPath];\n        } else {\n          [fileDeltas addObject:delta.canonicalPath];\n        }\n      }\n    }\n    [self stageAllChangesForFiles:fileDeltas];\n    _disableFeedback = YES;\n    _indexFilesViewController.selectedDeltas = deltas;\n    _disableFeedback = NO;\n    if (!_workdirFilesViewController.deltas.count) {\n      _indexActive = YES;\n      [self.view.window makeFirstResponder:_indexFilesViewController.preferredFirstResponder];\n    }\n    return YES;\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n  return NO;\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)_diffContentsViewControllerDidPressReturn:(GIDiffContentsViewController*)controller {\n  NSMutableArray* deltas = [[NSMutableArray alloc] init];\n  for (GCDiffDelta* delta in _diffContentsViewController.deltas) {\n    NSIndexSet* oldLines;\n    NSIndexSet* newLines;\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      if (_indexActive) {\n        [self unstageSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines];\n      } else {\n        [self stageSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines];\n      }\n      [deltas addObject:delta];\n    }\n  }\n  _disableFeedback = YES;\n  if (_indexActive) {\n    _workdirFilesViewController.selectedDeltas = deltas;\n  } else {\n    _indexFilesViewController.selectedDeltas = deltas;\n  }\n  _disableFeedback = NO;\n  if ((_indexActive && !_indexFilesViewController.deltas.count) || (!_indexActive && !_workdirFilesViewController.deltas.count)) {\n    _indexActive = !_indexActive;\n  }\n  [self.view.window makeFirstResponder:(_indexActive ? _indexFilesViewController.preferredFirstResponder : _workdirFilesViewController.preferredFirstResponder)];\n}\n\n- (void)_diffContentsViewControllerDidPressDelete:(GIDiffContentsViewController*)controller {\n  if (!_indexActive) {\n    BOOL hasSelection = NO;\n    for (GCDiffDelta* delta in _diffContentsViewController.deltas) {\n      if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n        hasSelection = YES;\n        break;\n      }\n    }\n    if (hasSelection) {\n      [self confirmUserActionWithAlertType:kGIAlertType_Stop\n                                     title:NSLocalizedString(@\"Are you sure you want to discard all selected changed lines?\", nil)\n                                   message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                    button:NSLocalizedString(@\"Discard\", nil)\n                 suppressionUserDefaultKey:nil\n                                     block:^{\n                                       for (GCDiffDelta* delta in _diffContentsViewController.deltas) {\n                                         NSIndexSet* oldLines;\n                                         NSIndexSet* newLines;\n                                         if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n                                           NSError* error;\n                                           if (![self discardSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines resetIndex:NO error:&error]) {\n                                             [self presentError:error];\n                                             break;\n                                           }\n                                         }\n                                       }\n                                       [self.repository notifyWorkingDirectoryChanged];\n                                       if (!_workdirFilesViewController.deltas.count) {\n                                         _indexActive = !_indexActive;\n                                       }\n                                       [self.view.window makeFirstResponder:(_indexActive ? _indexFilesViewController.preferredFirstResponder : _workdirFilesViewController.preferredFirstResponder)];\n                                     }];\n    } else {\n      NSBeep();\n    }\n  } else {\n    NSBeep();\n  }\n}\n\n- (BOOL)diffContentsViewController:(GIDiffContentsViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  if (!(event.modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask)) {\n    if (event.keyCode == kGIKeyCode_Return) {\n      [self _diffContentsViewControllerDidPressReturn:controller];\n      return YES;\n    } else if (event.keyCode == kGIKeyCode_Delete) {\n      [self _diffContentsViewControllerDidPressDelete:controller];\n      return YES;\n    }\n  }\n  return NO;\n}\n\n- (NSString*)diffContentsViewController:(GIDiffContentsViewController*)controller actionButtonLabelForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (!conflict) {\n    if (_indexActive) {\n      if (delta.submodule) {\n        return NSLocalizedString(@\"Unstage Submodule\", nil);\n      } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n        return NSLocalizedString(@\"Unstage Lines\", nil);\n      } else {\n        return NSLocalizedString(@\"Unstage File\", nil);\n      }\n    } else {\n      if (delta.submodule) {\n        return NSLocalizedString(@\"Stage Submodule\", nil);\n      } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n        return NSLocalizedString(@\"Stage Lines\", nil);\n      } else {\n        return NSLocalizedString(@\"Stage File\", nil);\n      }\n    }\n  }\n  return nil;\n}\n\n- (void)diffContentsViewController:(GIDiffContentsViewController*)controller didClickActionButtonForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  NSIndexSet* oldLines;\n  NSIndexSet* newLines;\n  if (_indexActive) {\n    if (delta.submodule) {\n      [self unstageSubmoduleAtPath:delta.canonicalPath];\n    } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self unstageSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines];\n    } else {\n      [self unstageAllChangesForFile:delta.canonicalPath];\n    }\n    _disableFeedback = YES;\n    _workdirFilesViewController.selectedDelta = delta;\n    _disableFeedback = NO;\n  } else {\n    if (delta.submodule) {\n      [self stageSubmoduleAtPath:delta.canonicalPath];\n    } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self stageSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines];\n    } else {\n      [self stageAllChangesForFile:delta.canonicalPath];\n    }\n    _disableFeedback = YES;\n    _indexFilesViewController.selectedDelta = delta;\n    _disableFeedback = NO;\n  }\n}\n\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  NSMenu* menu = [self contextualMenuForDelta:delta withConflict:conflict allowOpen:YES];\n\n  if (!_indexActive && !conflict) {\n    [menu addItem:[NSMenuItem separatorItem]];\n\n    if (GC_FILE_MODE_IS_FILE(delta.oldFile.mode) || GC_FILE_MODE_IS_FILE(delta.newFile.mode)) {\n      if (delta.change == kGCFileDiffChange_Untracked) {\n        [menu addItemWithTitle:NSLocalizedString(@\"Delete File…\", nil)\n                         block:^{\n                           [self deleteUntrackedFile:delta.canonicalPath];\n                         }];\n      } else {\n        if ([controller getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n          [menu addItemWithTitle:NSLocalizedString(@\"Discard Line Changes…\", nil)\n                           block:^{\n                             NSIndexSet* oldLines;\n                             NSIndexSet* newLines;\n                             [_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines];\n                             [self discardSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines resetIndex:NO];\n                           }];\n        } else {\n          [menu addItemWithTitle:NSLocalizedString(@\"Discard File Changes…\", nil)\n                           block:^{\n                             [self discardAllChangesForFile:delta.canonicalPath resetIndex:NO];\n                           }];\n        }\n      }\n    } else if (delta.submodule) {\n      [menu addItemWithTitle:NSLocalizedString(@\"Discard Submodule Changes…\", nil)\n                       block:^{\n                         [self discardSubmoduleAtPath:delta.canonicalPath resetIndex:NO];\n                       }];\n    }\n  }\n\n  return menu;\n}\n\n#pragma mark - NSTextViewDelegate\n\n// Intercept Option-Return key in NSTextView and forward to next responder\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertNewlineIgnoringFieldEditor:)) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return [super textView:textView doCommandBySelector:selector];\n}\n\n#pragma mark - Actions\n\n// Override\n- (IBAction)toggleAmend:(id)sender {\n  [super toggleAmend:sender];\n\n  [self _updateCommitButton];\n}\n\n- (IBAction)discardAll:(id)sender {\n  [self discardAllFiles];\n}\n\n- (IBAction)stageAll:(id)sender {\n  [self stageAllFiles];\n  [self.view.window makeFirstResponder:_indexFilesViewController.preferredFirstResponder];\n}\n\n- (IBAction)unstageAll:(id)sender {\n  [self unstageAllFiles];\n  [self.view.window makeFirstResponder:_workdirFilesViewController.preferredFirstResponder];\n}\n\n- (IBAction)commit:(id)sender {\n  if (_indexConflicts.count) {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must resolve conflicts before committing!\", nil) message:nil];\n    return;\n  }\n  NSString* message = [self.messageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n  if (!message.length) {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must provide a non-empty commit message\", nil) message:nil];\n    return;\n  }\n  [self createCommitFromHEADWithMessage:message];\n  [self _updateCommitButton];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GICommitRewriterViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GICommitViewController.h\"\n#import \"GIViewController+Utilities.h\"\n\n@class GICommitRewriterViewController, GCHistoryCommit;\n\n@protocol GICommitRewriterViewControllerDelegate <GICommitViewControllerDelegate, GCMergeConflictResolver>\n- (void)commitRewriterViewControllerShouldFinish:(GICommitRewriterViewController*)controller withMessage:(NSString*)message;\n- (void)commitRewriterViewControllerShouldCancel:(GICommitRewriterViewController*)controller;\n@end\n\n@interface GICommitRewriterViewController : GICommitViewController\n@property(nonatomic, weak) id<GICommitRewriterViewControllerDelegate> delegate;\n- (BOOL)startRewritingCommit:(GCHistoryCommit*)commit error:(NSError**)error;\n- (BOOL)finishRewritingCommitWithMessage:(NSString*)message error:(NSError**)error;\n- (BOOL)cancelRewritingCommit:(NSError**)error;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GICommitRewriterViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GICommitRewriterViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n#import \"GIWindowController.h\"\n\n#import \"GIInterface.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"GCHistory+Rewrite.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GICommitRewriterViewController () <GIDiffContentsViewControllerDelegate, GIDiffFilesViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet NSTextField* titleTextField;\n@property(nonatomic, weak) IBOutlet NSView* contentsView;\n@property(nonatomic, weak) IBOutlet NSView* filesView;\n@property(nonatomic, weak) IBOutlet NSButton* continueButton;\n\n@property(nonatomic, strong) IBOutlet NSView* messageView;\n@end\n\n@implementation GICommitRewriterViewController {\n  GIDiffContentsViewController* _diffContentsViewController;\n  GIDiffFilesViewController* _diffFilesViewController;\n  GCDiff* _unifiedStatus;\n  BOOL _disableFeedbackLoop;\n  NSDateFormatter* _dateFormatter;\n  GCHistoryCommit* _targetCommit;\n  id _savedHEAD;\n}\n\n@dynamic delegate;\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n\n    self.showsBranchInfo = NO;\n  }\n  return self;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.showsUntrackedAsAdded = YES;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_contentsView replaceWithView:_diffContentsViewController.view];\n\n  _diffFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _diffFilesViewController.delegate = self;\n  _diffFilesViewController.showsUntrackedAsAdded = YES;\n  _diffFilesViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_filesView replaceWithView:_diffFilesViewController.view];\n}\n\n- (void)viewWillAppear {\n  XLOG_DEBUG_CHECK(_targetCommit != nil);\n  [super viewWillAppear];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Disabled);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Unified;\n\n  self.messageTextView.string = _targetCommit.message;\n\n  [self _reloadContents];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _unifiedStatus = nil;\n\n  [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n  [_diffFilesViewController setDeltas:nil usingConflicts:nil];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Unified);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Disabled;\n}\n\n- (void)repositoryStatusDidUpdate {\n  [super repositoryStatusDidUpdate];\n\n  if (self.viewVisible) {\n    [self _reloadContents];\n  }\n}\n\n- (void)_reloadContents {\n  CGFloat offset;\n  GCDiffDelta* topDelta = [_diffContentsViewController topVisibleDelta:&offset];\n\n  _unifiedStatus = self.repository.unifiedStatus;\n  [_diffContentsViewController setDeltas:_unifiedStatus.deltas usingConflicts:nil];\n  [_diffFilesViewController setDeltas:_unifiedStatus.deltas usingConflicts:nil];\n\n  [_diffContentsViewController setTopVisibleDelta:topDelta offset:offset];\n\n  _continueButton.enabled = _unifiedStatus.modified;\n}\n\n- (BOOL)_restoreHEAD:(NSError**)error {\n  BOOL success;\n  if ([_savedHEAD isKindOfClass:[GCBranch class]]) {\n    success = [self.repository checkoutLocalBranch:_savedHEAD options:(kGCCheckoutOption_UpdateSubmodulesRecursively | kGCCheckoutOption_Force) error:error];\n  } else if ([_savedHEAD isKindOfClass:[GCCommit class]]) {\n    success = [self.repository checkoutCommit:_savedHEAD options:(kGCCheckoutOption_UpdateSubmodulesRecursively | kGCCheckoutOption_Force) error:error];\n  } else {\n    success = YES;\n  }\n  XLOG_DEBUG_CHECK(!success || [self.repository checkClean:0 error:NULL]);\n  return success;\n}\n\n- (BOOL)startRewritingCommit:(GCHistoryCommit*)commit error:(NSError**)error {\n  XLOG_DEBUG_CHECK(_targetCommit == nil);\n\n  // Check that repository is completely clean (don't even allow untracked files)\n  if (![self.repository checkClean:0 error:error]) {\n    return NO;\n  }\n\n  // Check out commit and move back HEAD by 1 to put changes in index\n  BOOL success = [self.repository checkoutCommit:commit options:kGCCheckoutOption_UpdateSubmodulesRecursively error:error];\n  if (success) {\n    success = [self.repository setDetachedHEADToCommit:commit.parents[0] error:error];\n  }\n\n  // Save original HEAD\n  if (success) {\n    _savedHEAD = self.repository.history.HEADBranch;\n    if (_savedHEAD == nil) {\n      _savedHEAD = self.repository.history.HEADCommit;\n    }\n  }\n\n  // Clean up\n  [self.repository notifyRepositoryChanged];\n\n  _targetCommit = commit;\n  _titleTextField.stringValue = [NSString stringWithFormat:@\"\\\"%@\\\" <%@>\", _targetCommit.summary, _targetCommit.shortSHA1];\n  return YES;\n}\n\n- (BOOL)cancelRewritingCommit:(NSError**)error {\n  XLOG_DEBUG_CHECK(_targetCommit != nil);\n  BOOL success = [self _restoreHEAD:error];\n  _savedHEAD = nil;\n  _targetCommit = nil;\n  [self.repository notifyRepositoryChanged];\n  return success;\n}\n\n- (BOOL)finishRewritingCommitWithMessage:(NSString*)message error:(NSError**)error {\n  XLOG_DEBUG_CHECK(_targetCommit != nil);\n  BOOL success = NO;\n  GCCommit* newCommit;\n  GCIndex* index;\n\n  // Add all workdir changes to index\n  if (![self.repository syncIndexWithWorkingDirectory:error]) {\n    goto cleanup;\n  }\n\n  // Copy commit with updated index and message\n  index = [self.repository readRepositoryIndex:error];\n  if (index == nil) {\n    goto cleanup;\n  }\n  newCommit = [self.repository copyCommit:_targetCommit withUpdatedMessage:message updatedParents:nil updatedTreeFromIndex:index updateCommitter:YES error:error];\n  if (newCommit == nil) {\n    goto cleanup;\n  }\n\n  // Restore original HEAD (must happen before transform in case the transform moves it as part of replaying commits)\n  if (![self _restoreHEAD:error]) {\n    goto cleanup;\n  }\n\n  // Rewrite commit\n  [self.repository suspendHistoryUpdates];  // We need to suspend history updates to prevent history to change during replay if conflict handler is called\n  [self.repository setUndoActionName:NSLocalizedString(@\"Rewrite Commit\", nil)];\n  if (![self.repository performReferenceTransformWithReason:@\"rewrite_commit\"\n                                                   argument:_targetCommit.SHA1\n                                                      error:error\n                                                 usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                   return [repository.history rewriteCommit:_targetCommit\n                                                                          withUpdatedCommit:newCommit\n                                                                                  copyTrees:NO\n                                                                            conflictHandler:^GCCommit*(GCIndex* index2, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message2, NSError** outError2) {\n                                                                              return [self resolveConflictsWithResolver:self.delegate index:index2 ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message2 error:outError2];\n                                                                            }\n                                                                                      error:outError1];\n                                                 }]) {\n    [self.repository resumeHistoryUpdates];\n    goto cleanup;\n  }\n  [self.repository resumeHistoryUpdates];\n\n  // Make sure index and workdir are in sync with HEAD\n  if (![self.repository forceCheckoutHEAD:NO error:error]) {\n    goto cleanup;\n  }\n  success = YES;\n\ncleanup:\n  _savedHEAD = nil;\n  _targetCommit = nil;\n  [self.repository notifyRepositoryChanged];\n  if (success) {\n    [self didCreateCommit:newCommit];\n  }\n  return success;\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)diffContentsViewControllerDidScroll:(GIDiffContentsViewController*)scroll {\n  if (!_disableFeedbackLoop) {\n    _diffFilesViewController.selectedDelta = [_diffContentsViewController topVisibleDelta:NULL];\n  }\n}\n\n- (NSString*)diffContentsViewController:(GIDiffContentsViewController*)controller actionButtonLabelForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (delta.submodule) {\n    return NSLocalizedString(@\"Discard Submodule Changes…\", nil);\n  } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n    return NSLocalizedString(@\"Discard Line Changes…\", nil);\n  } else {\n    return NSLocalizedString(@\"Discard File Changes…\", nil);\n  }\n  return nil;\n}\n\n- (void)diffContentsViewController:(GIDiffContentsViewController*)controller didClickActionButtonForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (delta.submodule) {\n    [self discardSubmoduleAtPath:delta.canonicalPath resetIndex:YES];\n  } else {\n    NSIndexSet* oldLines;\n    NSIndexSet* newLines;\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self discardSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines resetIndex:YES];\n    } else {\n      [self discardAllChangesForFile:delta.canonicalPath resetIndex:YES];\n    }\n  }\n}\n\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  XLOG_DEBUG_CHECK(conflict == nil);\n  return [self contextualMenuForDelta:delta withConflict:nil allowOpen:YES];\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller willSelectDelta:(GCDiffDelta*)delta {\n  _disableFeedbackLoop = YES;\n  [_diffContentsViewController setTopVisibleDelta:delta offset:0];\n  _disableFeedbackLoop = NO;\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  return [self handleKeyDownEvent:event forSelectedDeltas:_diffFilesViewController.selectedDeltas withConflicts:nil allowOpen:YES];\n}\n\n#pragma mark - NSTextViewDelegate\n\n// Intercept Option-Return key in NSTextView and forward to next responder\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertNewlineIgnoringFieldEditor:)) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return [super textView:textView doCommandBySelector:selector];\n}\n\n#pragma mark - Actions\n\n- (IBAction)cancel:(id)sender {\n  [self.delegate commitRewriterViewControllerShouldCancel:self];\n}\n\n- (IBAction)continue:(id)sender {\n  if (self.repository.indexConflicts.count) {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must resolve conflicts before continuing!\", nil) message:nil];\n    return;\n  }\n  [self.windowController runModalView:self.messageView\n            withInitialFirstResponder:self.messageTextView\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* message = [self.messageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                        if (message.length) {\n                          [self.delegate commitRewriterViewControllerShouldFinish:self withMessage:message];\n                        } else {\n                          [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must provide a non-empty commit message\", nil) message:nil];\n                        }\n                      }\n                    }];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GICommitSplitterViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GISimpleCommitViewController.h\"\n#import \"GIViewController+Utilities.h\"\n\n@class GICommitSplitterViewController, GCHistoryCommit;\n\n@protocol GICommitSplitterViewControllerDelegate <GICommitViewControllerDelegate, GCMergeConflictResolver>\n- (void)commitSplitterViewControllerShouldFinish:(GICommitSplitterViewController*)controller withOldMessage:(NSString*)oldMessage newMessage:(NSString*)newMessage;\n- (void)commitSplitterViewControllerShouldCancel:(GICommitSplitterViewController*)controller;\n@end\n\n@interface GICommitSplitterViewController : GICommitViewController\n@property(nonatomic, weak) id<GICommitSplitterViewControllerDelegate> delegate;\n- (BOOL)startSplittingCommit:(GCHistoryCommit*)commit error:(NSError**)error;\n- (BOOL)finishSplittingCommitWithOldMessage:(NSString*)oldMessage newMessage:(NSString*)newMessage error:(NSError**)error;\n- (void)cancelSplittingCommit;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GICommitSplitterViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GICommitSplitterViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n\n#import \"GCCore.h\"\n#import \"GIColorView.h\"\n#import \"GIInterface.h\"\n#import \"GCHistory+Rewrite.h\"\n#import \"GIWindowController.h\"\n#import \"XLFacilityMacros.h\"\n\n#define kGCDefaultMaxDiffContextLines 3\n\n@interface GICommitSplitterViewController () <GIDiffFilesViewControllerDelegate, GIDiffContentsViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet NSTextField* titleTextField;\n@property(nonatomic, weak) IBOutlet GIColorView* filesViewNewHeader;\n@property(nonatomic, weak) IBOutlet NSView* filesViewNew;\n@property(nonatomic, weak) IBOutlet GIColorView* filesViewOldHeader;\n@property(nonatomic, weak) IBOutlet NSView* filesViewOld;\n@property(nonatomic, weak) IBOutlet NSView* diffContentsView;\n@property(nonatomic, weak) IBOutlet NSButton* continueButton;\n\n@property(nonatomic, strong) IBOutlet NSView* messageView;\n@end\n\n@implementation GICommitSplitterViewController {\n  GIDiffFilesViewController* _filesViewControllerNew;\n  GIDiffFilesViewController* _filesViewControllerOld;\n  GIDiffContentsViewController* _diffContentsViewController;\n  GCHistoryCommit* _commit;\n  GCHistoryCommit* _parentCommit;\n  GCIndex* _indexNew;\n  GCDiff* _diffNew;\n  GCIndex* _indexOld;\n  GCDiff* _diffOld;\n  BOOL _newActive;\n  BOOL _disableFeedback;\n}\n\n@dynamic delegate;\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    self.showsBranchInfo = NO;\n  }\n  return self;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _filesViewNewHeader.backgroundColor = NSColor.gitUpCommitHeaderBackgroundColor;\n\n  _filesViewControllerNew = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _filesViewControllerNew.delegate = self;\n  _filesViewControllerNew.allowsMultipleSelection = YES;\n  _filesViewControllerNew.emptyLabel = NSLocalizedString(@\"No changes in commit\", nil);\n  [_filesViewNew replaceWithView:_filesViewControllerNew.view];\n\n  _filesViewOldHeader.backgroundColor = NSColor.gitUpCommitHeaderBackgroundColor;\n\n  _filesViewControllerOld = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _filesViewControllerOld.delegate = self;\n  _filesViewControllerOld.allowsMultipleSelection = YES;\n  _filesViewControllerOld.emptyLabel = NSLocalizedString(@\"No changes in commit\", nil);\n  [_filesViewOld replaceWithView:_filesViewControllerOld.view];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No file selected\", nil);\n  [_diffContentsView replaceWithView:_diffContentsViewController.view];\n}\n\n- (void)viewWillAppear {\n  XLOG_DEBUG_CHECK(_commit);\n  [super viewWillAppear];\n\n  _titleTextField.stringValue = [NSString stringWithFormat:@\"\\\"%@\\\" <%@>\", _commit.summary, _commit.shortSHA1];\n\n  self.messageTextView.string = _commit.message;\n  self.otherMessageTextView.string = _commit.message;\n\n  [self _reload];\n\n  _filesViewControllerOld.selectedDelta = _diffOld.deltas.firstObject;\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _diffNew = nil;\n  _diffOld = nil;\n\n  [_filesViewControllerNew setDeltas:nil usingConflicts:nil];\n  [_filesViewControllerOld setDeltas:nil usingConflicts:nil];\n  [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n}\n\n- (void)_reload {\n  CGFloat offset;\n  GCDiffDelta* topDelta = [_diffContentsViewController topVisibleDelta:&offset];\n  NSArray* selectedDeltasNew = _filesViewControllerNew.selectedDeltas;\n  NSUInteger selectedRowNew = selectedDeltasNew.count ? [_diffNew.deltas indexOfObjectIdenticalTo:selectedDeltasNew.firstObject] : NSNotFound;\n  NSArray* selectedDeltasOld = _filesViewControllerOld.selectedDeltas;\n  NSUInteger selectedRowOld = selectedDeltasOld.count ? [_diffOld.deltas indexOfObjectIdenticalTo:selectedDeltasOld.firstObject] : NSNotFound;\n\n  NSError* error;\n  _diffNew = [self.repository diffIndex:_indexNew withIndex:_indexOld filePattern:nil options:kGCDiffOption_FindRenames maxInterHunkLines:0 maxContextLines:kGCDefaultMaxDiffContextLines error:&error];\n  if (_diffNew == nil) {\n    [self presentError:error];\n  }\n  _diffOld = [self.repository diffIndex:_indexOld withCommit:_parentCommit filePattern:nil options:kGCDiffOption_FindRenames maxInterHunkLines:0 maxContextLines:kGCDefaultMaxDiffContextLines error:&error];\n  if (_diffOld == nil) {\n    [self presentError:error];\n  }\n\n  _disableFeedback = YES;\n\n  [_filesViewControllerNew setDeltas:_diffNew.deltas usingConflicts:nil];\n  _filesViewControllerNew.selectedDeltas = selectedDeltasNew;\n  if (_diffNew.deltas.count && selectedDeltasNew.count && !_filesViewControllerNew.selectedDeltas.count && (selectedRowNew != NSNotFound)) {\n    _filesViewControllerNew.selectedDelta = _diffNew.deltas[MIN(selectedRowNew, _diffNew.deltas.count - 1)];  // If we can't preserve the selected deltas, attempt to preserve the first selected row\n  }\n\n  [_filesViewControllerOld setDeltas:_diffOld.deltas usingConflicts:nil];\n  _filesViewControllerOld.selectedDeltas = selectedDeltasOld;\n  if (_diffOld.deltas.count && selectedDeltasOld.count && !_filesViewControllerOld.selectedDeltas.count && (selectedRowOld != NSNotFound)) {\n    _filesViewControllerOld.selectedDelta = _diffOld.deltas[MIN(selectedRowOld, _diffOld.deltas.count - 1)];  // If we can't preserve the selected deltas, attempt to preserve the first selected row\n  }\n\n  if (_newActive) {\n    [_diffContentsViewController setDeltas:_filesViewControllerNew.selectedDeltas usingConflicts:nil];\n  } else {\n    [_diffContentsViewController setDeltas:_filesViewControllerOld.selectedDeltas usingConflicts:nil];\n  }\n  [_diffContentsViewController setTopVisibleDelta:topDelta offset:offset];\n\n  _disableFeedback = NO;\n\n  _continueButton.enabled = _diffNew.modified && _diffOld.modified;\n}\n\n- (void)_copyFileFromIndexNewToIndexOld:(GCDiffDelta*)delta {\n  NSError* error;\n  BOOL success = delta.change == kGCFileDiffChange_Deleted ? [self.repository removeFile:delta.canonicalPath fromIndex:_indexOld error:&error]\n                                                           : [self.repository copyFile:delta.canonicalPath fromOtherIndex:_indexNew toIndex:_indexOld error:&error];\n  if (success) {\n    [self _reload];\n    _disableFeedback = YES;\n    _filesViewControllerOld.selectedDelta = delta;\n    _disableFeedback = NO;\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)_copyFilesFromIndexNewToIndexOld:(NSArray*)deltas {\n  for (GCDiffDelta* delta in deltas) {\n    NSError* error;\n    BOOL success = delta.change == kGCFileDiffChange_Deleted ? [self.repository removeFile:delta.canonicalPath fromIndex:_indexOld error:&error]\n                                                             : [self.repository copyFile:delta.canonicalPath fromOtherIndex:_indexNew toIndex:_indexOld error:&error];\n    if (!success) {\n      [self presentError:error];\n      break;\n    }\n  }\n  [self _reload];\n  _disableFeedback = YES;\n  _filesViewControllerOld.selectedDeltas = deltas;\n  _disableFeedback = NO;\n  if (!_filesViewControllerNew.deltas.count) {\n    _newActive = NO;\n    [self.view.window makeFirstResponder:_filesViewControllerOld.preferredFirstResponder];\n  }\n}\n\n- (void)_copyFileLinesFromIndexNewToIndexOld:(GCDiffDelta*)delta oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines {\n  NSError* error;\n  BOOL success;\n  if (delta.change == kGCFileDiffChange_Deleted) {\n    success = [self.repository resetLinesInFile:delta.canonicalPath\n                                          index:_indexOld\n                                       toCommit:_commit\n                                          error:&error\n                                    usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                      if (change == kGCLineDiffChange_Added) {\n                                        return [oldLines containsIndex:newLineNumber];\n                                      }\n                                      return NO;\n                                    }];\n  } else {\n    success = [self.repository copyLinesInFile:delta.canonicalPath\n                                fromOtherIndex:_indexNew\n                                       toIndex:_indexOld\n                                         error:&error\n                                   usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                                     if (change == kGCLineDiffChange_Added) {\n                                       return [newLines containsIndex:newLineNumber];\n                                     }\n                                     if (change == kGCLineDiffChange_Deleted) {\n                                       return [oldLines containsIndex:oldLineNumber];\n                                     }\n                                     return NO;\n                                   }];\n  }\n  if (success) {\n    [self _reload];\n    _disableFeedback = YES;\n    _filesViewControllerNew.selectedDelta = delta;\n    _disableFeedback = NO;\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)_copyFileFromIndexOldToIndexNew:(GCDiffDelta*)delta {\n  NSError* error;\n  if ([self.repository resetFile:delta.canonicalPath inIndex:_indexOld toCommit:_parentCommit error:&error]) {\n    [self _reload];\n    _disableFeedback = YES;\n    _filesViewControllerNew.selectedDelta = delta;\n    _disableFeedback = NO;\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (void)_copyFilesFromIndexOldToIndexNew:(NSArray*)deltas {\n  for (GCDiffDelta* delta in deltas) {\n    NSError* error;\n    if (![self.repository resetFile:delta.canonicalPath inIndex:_indexOld toCommit:_parentCommit error:&error]) {\n      [self presentError:error];\n      break;\n    }\n  }\n  [self _reload];\n  _disableFeedback = YES;\n  _filesViewControllerNew.selectedDeltas = deltas;\n  _disableFeedback = NO;\n  if (!_filesViewControllerOld.deltas.count) {\n    _newActive = YES;\n    [self.view.window makeFirstResponder:_filesViewControllerNew.preferredFirstResponder];\n  }\n}\n\n- (void)_copyFileLinesFromIndexOldToIndexNew:(GCDiffDelta*)delta oldLines:(NSIndexSet*)oldLines newLines:(NSIndexSet*)newLines {\n  NSError* error;\n  if ([self.repository resetLinesInFile:delta.canonicalPath\n                                  index:_indexOld\n                               toCommit:_parentCommit\n                                  error:&error\n                            usingFilter:^BOOL(GCLineDiffChange change, NSUInteger oldLineNumber, NSUInteger newLineNumber) {\n                              if (change == kGCLineDiffChange_Added) {\n                                return [newLines containsIndex:newLineNumber];\n                              }\n                              if (change == kGCLineDiffChange_Deleted) {\n                                return [oldLines containsIndex:oldLineNumber];\n                              }\n                              return NO;\n                            }]) {\n    [self _reload];\n    _disableFeedback = YES;\n    _filesViewControllerNew.selectedDelta = delta;\n    _disableFeedback = NO;\n  } else {\n    [self presentError:error];\n  }\n}\n\n- (BOOL)startSplittingCommit:(GCHistoryCommit*)commit error:(NSError**)error {\n  GCIndex* indexNew = [self.repository createInMemoryIndex:error];\n  if (!indexNew || ![self.repository resetIndex:indexNew toTreeForCommit:commit error:error]) {\n    return NO;\n  }\n  GCIndex* indexOld = [self.repository createInMemoryIndex:error];\n  if (!indexOld || ![self.repository resetIndex:indexOld toTreeForCommit:commit error:error]) {\n    return NO;\n  }\n\n  _commit = commit;\n  _parentCommit = commit.parents.firstObject;  // Use mainline\n  _indexNew = indexNew;\n  _indexOld = indexOld;\n  return YES;\n}\n\n- (void)_cleanup {\n  _indexNew = nil;\n  _indexOld = nil;\n  _commit = nil;\n  _parentCommit = nil;\n}\n\n- (void)cancelSplittingCommit {\n  [self _cleanup];\n}\n\n- (BOOL)finishSplittingCommitWithOldMessage:(NSString*)oldMessage newMessage:(NSString*)newMessage error:(NSError**)error {\n  BOOL success = NO;\n  GCCommit* newCommit;\n\n  // Copy old commit with updated index and message\n  newCommit = [self.repository copyCommit:_commit withUpdatedMessage:oldMessage updatedParents:nil updatedTreeFromIndex:_indexOld updateCommitter:YES error:error];\n  if (newCommit == nil) {\n    goto cleanup;\n  }\n\n  // Copy new commit with updated index and message\n  newCommit = [self.repository copyCommit:_commit withUpdatedMessage:newMessage updatedParents:@[ newCommit ] updatedTreeFromIndex:_indexNew updateCommitter:YES error:error];\n  if (newCommit == nil) {\n    goto cleanup;\n  }\n\n  // Rewrite commit\n  [self.repository suspendHistoryUpdates];  // We need to suspend history updates to prevent history to change during replay if conflict handler is called\n  [self.repository setUndoActionName:NSLocalizedString(@\"Split Commit\", nil)];\n  if ([self.repository performReferenceTransformWithReason:@\"split_commit\"\n                                                  argument:_commit.SHA1\n                                                     error:error\n                                                usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                  return [repository.history rewriteCommit:_commit\n                                                                         withUpdatedCommit:newCommit\n                                                                                 copyTrees:YES\n                                                                           conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message3, NSError** outError2) {\n                                                                             XLOG_DEBUG_UNREACHABLE();  // Splitting a commit should not generate index conflicts when replaying descendants\n                                                                             return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message3 error:outError2];\n                                                                           }\n                                                                                     error:outError1];\n                                                }]) {\n    success = YES;\n  }\n  [self.repository resumeHistoryUpdates];\n\ncleanup:\n  [self _cleanup];\n  if (success) {\n    [self didCreateCommit:newCommit];\n  }\n  return success;\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewControllerDidBecomeFirstResponder:(GIDiffFilesViewController*)controller {\n  [self diffFilesViewControllerDidChangeSelection:controller];\n}\n\n- (void)diffFilesViewControllerDidChangeSelection:(GIDiffFilesViewController*)controller {\n  if (!_disableFeedback) {\n    if (controller == _filesViewControllerNew) {\n      [_diffContentsViewController setDeltas:_filesViewControllerNew.selectedDeltas usingConflicts:nil];\n      _newActive = YES;\n    } else if (controller == _filesViewControllerOld) {\n      [_diffContentsViewController setDeltas:_filesViewControllerOld.selectedDeltas usingConflicts:nil];\n      _newActive = NO;\n    } else {\n      XLOG_DEBUG_UNREACHABLE();\n    }\n  }\n}\n\n- (void)_diffFilesViewControllerDidPressReturn:(GIDiffFilesViewController*)controller {\n  if (controller == _filesViewControllerNew) {\n    [self _copyFilesFromIndexNewToIndexOld:_filesViewControllerNew.selectedDeltas];\n  } else if (controller == _filesViewControllerOld) {\n    [self _copyFilesFromIndexOldToIndexNew:_filesViewControllerOld.selectedDeltas];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  if (!(event.modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask)) {\n    if (event.keyCode == kGIKeyCode_Return) {\n      [self _diffFilesViewControllerDidPressReturn:controller];\n      return YES;\n    }\n  }\n\n  if (controller == _filesViewControllerNew) {\n    return [self handleKeyDownEvent:event forSelectedDeltas:_filesViewControllerNew.selectedDeltas withConflicts:nil allowOpen:NO];\n  } else if (controller == _filesViewControllerOld) {\n    return [self handleKeyDownEvent:event forSelectedDeltas:_filesViewControllerOld.selectedDeltas withConflicts:nil allowOpen:NO];\n  }\n\n  return NO;\n}\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller didDoubleClickDeltas:(NSArray*)deltas {\n  if (controller == _filesViewControllerNew) {\n    [self _copyFilesFromIndexNewToIndexOld:deltas];\n  } else if (controller == _filesViewControllerOld) {\n    [self _copyFilesFromIndexOldToIndexNew:deltas];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (BOOL)diffFilesViewControllerShouldAcceptDeltas:(GIDiffFilesViewController*)controller fromOtherController:(GIDiffFilesViewController*)otherController {\n  return ((controller == _filesViewControllerNew) && (otherController == _filesViewControllerOld)) || ((controller == _filesViewControllerOld) && (otherController == _filesViewControllerNew));\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller didReceiveDeltas:(NSArray*)deltas fromOtherController:(GIDiffFilesViewController*)otherController {\n  if ((controller == _filesViewControllerNew) && (otherController == _filesViewControllerOld)) {\n    [self _copyFilesFromIndexOldToIndexNew:deltas];\n    return YES;\n  } else if ((controller == _filesViewControllerOld) && (otherController == _filesViewControllerNew)) {\n    [self _copyFilesFromIndexNewToIndexOld:deltas];\n    return YES;\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n  return NO;\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)_diffContentsViewControllerDidPressReturn:(GIDiffContentsViewController*)controller {\n  NSMutableArray* deltas = [[NSMutableArray alloc] init];\n  for (GCDiffDelta* delta in _diffContentsViewController.deltas) {\n    NSIndexSet* oldLines;\n    NSIndexSet* newLines;\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      if (_newActive) {\n        [self _copyFileLinesFromIndexNewToIndexOld:delta oldLines:oldLines newLines:newLines];\n      } else {\n        [self _copyFileLinesFromIndexOldToIndexNew:delta oldLines:oldLines newLines:newLines];\n      }\n      [deltas addObject:delta];\n    }\n  }\n  _disableFeedback = YES;\n  if (_newActive) {\n    _filesViewControllerNew.selectedDeltas = deltas;\n  } else {\n    _filesViewControllerOld.selectedDeltas = deltas;\n  }\n  _disableFeedback = NO;\n  if ((!_newActive && !_filesViewControllerOld.deltas.count) || (_newActive && !_filesViewControllerNew.deltas.count)) {\n    _newActive = !_newActive;\n  }\n  [self.view.window makeFirstResponder:(_newActive ? _filesViewControllerNew.preferredFirstResponder : _filesViewControllerOld.preferredFirstResponder)];\n}\n\n- (BOOL)diffContentsViewController:(GIDiffContentsViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  if (!(event.modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask)) {\n    if (event.keyCode == kGIKeyCode_Return) {\n      [self _diffContentsViewControllerDidPressReturn:controller];\n      return YES;\n    }\n  }\n  return NO;\n}\n\n- (NSString*)diffContentsViewController:(GIDiffContentsViewController*)controller actionButtonLabelForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (delta.submodule) {\n    return NSLocalizedString(@\"Move Changed Submodule\", nil);\n  } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n    return NSLocalizedString(@\"Move Changed Lines\", nil);\n  } else {\n    return NSLocalizedString(@\"Move Changed File\", nil);\n  }\n  return nil;\n}\n\n- (void)diffContentsViewController:(GIDiffContentsViewController*)controller didClickActionButtonForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  NSIndexSet* oldLines;\n  NSIndexSet* newLines;\n  if (_newActive) {\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self _copyFileLinesFromIndexNewToIndexOld:delta oldLines:oldLines newLines:newLines];\n    } else {\n      [self _copyFileFromIndexNewToIndexOld:delta];\n    }\n  } else {\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self _copyFileLinesFromIndexOldToIndexNew:delta oldLines:oldLines newLines:newLines];\n    } else {\n      [self _copyFileFromIndexOldToIndexNew:delta];\n    }\n  }\n}\n\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  XLOG_DEBUG_CHECK(conflict == nil);\n  return [self contextualMenuForDelta:delta withConflict:nil allowOpen:NO];\n}\n\n#pragma mark - NSTextViewDelegate\n\n// Intercept Option-Return key in NSTextView and forward to next responder\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertNewlineIgnoringFieldEditor:)) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return [super textView:textView doCommandBySelector:selector];\n}\n\n#pragma mark - Actions\n\n- (IBAction)cancel:(id)sender {\n  [self.delegate commitSplitterViewControllerShouldCancel:self];\n}\n\n- (IBAction)continue:(id)sender {\n  [self.windowController runModalView:_messageView\n            withInitialFirstResponder:self.messageTextView\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* message = [self.messageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                        NSString* otherMessage = [self.otherMessageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                        if (message.length && otherMessage.length) {\n                          [self.delegate commitSplitterViewControllerShouldFinish:self withOldMessage:message newMessage:otherMessage];\n                        } else {\n                          [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must provide non-empty commit messages\", nil) message:nil];\n                        }\n                      }\n                    }];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GICommitViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n#import \"GCDiff.h\"\n\n@class GICommitViewController, GCCommit, GCSubmodule, GCIndexConflict, GICommitMessageView;\n\n@protocol GICommitViewControllerDelegate <NSObject>\n- (void)commitViewController:(GICommitViewController*)controller didCreateCommit:(GCCommit*)commit;\n@end\n\n// Abstract base class\n@interface GICommitViewController : GIViewController\n@property(nonatomic, weak) id<GICommitViewControllerDelegate> delegate;\n@property(nonatomic, weak) IBOutlet NSTextField* infoTextField;\n@property(nonatomic, strong) IBOutlet GICommitMessageView* messageTextView;  // Does not support weak references\n@property(nonatomic, strong) IBOutlet GICommitMessageView* otherMessageTextView;  // Does not support weak references\n@property(nonatomic, weak) IBOutlet NSButton* amendButton;\n@property(nonatomic) BOOL showsBranchInfo;  // Default is YES\n- (void)didCreateCommit:(GCCommit*)commit;\n- (IBAction)toggleAmend:(id)sender;\n@end\n\n@interface GICommitViewController (Extensions)\n- (void)createCommitFromHEADWithMessage:(NSString*)message;  // Automatically handles commit hooks, merges and undo\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GICommitViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GICommitViewController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@implementation GICommitViewController {\n  NSString* _headCommitMessage;\n}\n\n#if DEBUG\n\n+ (instancetype)allocWithZone:(struct _NSZone*)zone {\n  XLOG_DEBUG_CHECK(self != [GICommitViewController class]);\n  return [super allocWithZone:zone];\n}\n\n#endif\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _showsBranchInfo = YES;\n  }\n  return self;\n}\n\n- (void)_updateInterface {\n  GCCommit* headCommit = nil;\n  GCLocalBranch* branch = nil;\n  [self.repository lookupHEADCurrentCommit:&headCommit branch:&branch error:NULL];  // Ignore errors\n\n  NSString* name = [[self.repository readConfigOptionForVariable:@\"user.name\" error:NULL] value];\n  NSString* email = [[self.repository readConfigOptionForVariable:@\"user.email\" error:NULL] value];\n  NSString* user = email && name ? [NSString stringWithFormat:@\"%@ <%@>\", name, email] : (name ? name : (email ? email : NSLocalizedString(@\"N/A\", nil)));\n  CGFloat fontSize = _infoTextField.font.pointSize;\n  NSMutableAttributedString* string = [[NSMutableAttributedString alloc] init];\n  [string beginEditing];\n  if (_showsBranchInfo) {\n    [string appendString:NSLocalizedString(@\"Committing\", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n    switch (self.repository.state) {\n      case kGCRepositoryState_Merge:\n        [string appendString:NSLocalizedString(@\" merge\", nil) withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        break;\n\n      case kGCRepositoryState_Revert:\n        [string appendString:NSLocalizedString(@\" revert\", nil) withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        break;\n\n      case kGCRepositoryState_CherryPick:\n        [string appendString:NSLocalizedString(@\" cherry-pick\", nil) withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        break;\n\n      case kGCRepositoryState_Rebase:\n      case kGCRepositoryState_RebaseInteractive:\n      case kGCRepositoryState_RebaseMerge:\n        [string appendString:NSLocalizedString(@\" rebase\", nil) withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n        break;\n\n      default:\n        break;\n    }\n    [string appendString:NSLocalizedString(@\" as \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n    [string appendString:user withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n    if (branch) {\n      [string appendString:NSLocalizedString(@\" on branch \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n      [string appendString:branch.name withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n    } else {\n      [string appendString:NSLocalizedString(@\" on \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n      [string appendString:NSLocalizedString(@\"detached HEAD\", nil) withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n    }\n  } else {\n    [string appendString:NSLocalizedString(@\"Committing as \", nil) withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]}];\n    [string appendString:user withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]}];\n  }\n  [string setAlignment:NSTextAlignmentCenter range:NSMakeRange(0, string.length)];\n  [string endEditing];\n  _infoTextField.attributedStringValue = string;\n\n  _headCommitMessage = headCommit.message;\n  if (!headCommit || self.repository.state) {  // Don't allow amending if there's no HEAD or repository is not in default state\n    self.amendButton.enabled = NO;\n    self.amendButton.state = NSControlStateValueOff;\n  } else {\n    self.amendButton.enabled = YES;\n  }\n}\n\n- (void)viewDidLoad {\n  [super viewDidLoad];\n\n  self.infoTextField.maximumNumberOfLines = 2;\n}\n\n// TODO: Live update these fields\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  if (_messageTextView.string.length == 0) {\n    NSString* message = @\"\";\n\n    if (self.repository.state == kGCRepositoryState_Merge) {\n      NSError* error;\n      NSString* mergeMessage = [NSString stringWithContentsOfFile:[self.repository.repositoryPath stringByAppendingPathComponent:@\"MERGE_MSG\"] encoding:NSUTF8StringEncoding error:&error];\n      if (mergeMessage) {\n        message = mergeMessage;\n      } else {\n        XLOG_ERROR(@\"Failed reading MERGE_MSG from \\\"%@\\\":%@ \", self.repository.repositoryPath, error);\n      }\n    }\n\n    _messageTextView.string = message;\n    [_messageTextView.undoManager removeAllActions];\n    [_messageTextView selectAll:nil];\n  }\n\n  [self _updateInterface];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _headCommitMessage = nil;\n}\n\n- (void)repositoryDidChange {\n  if (self.viewVisible) {\n    [self _updateInterface];\n  }\n}\n\n- (void)didCreateCommit:(GCCommit*)commit {\n  _messageTextView.string = @\"\";\n  [_messageTextView.undoManager removeAllActions];\n\n  _otherMessageTextView.string = @\"\";\n  [_otherMessageTextView.undoManager removeAllActions];\n\n  _amendButton.state = NSControlStateValueOff;\n\n  [_delegate commitViewController:self didCreateCommit:commit];\n}\n\n- (IBAction)toggleAmend:(id)sender {\n  if (_amendButton.state && (_messageTextView.string.length == 0)) {\n    _messageTextView.string = _headCommitMessage;\n    [_messageTextView.undoManager removeAllActions];\n    [_messageTextView selectAll:nil];\n  }\n}\n\n@end\n\n@implementation GICommitViewController (Extensions)\n\n- (void)createCommitFromHEADWithMessage:(NSString*)message {\n  NSError* error;\n\n  if (![self.repository runHookWithName:@\"pre-commit\" arguments:nil standardInput:nil error:&error]) {\n    [self presentError:error];\n    return;\n  }\n\n  NSString* hook = [self.repository pathForHookWithName:@\"commit-msg\"];\n  if (hook) {\n    NSString* path = [NSTemporaryDirectory() stringByAppendingPathComponent:[[NSProcessInfo processInfo] globallyUniqueString]];\n    if (![message writeToFile:path atomically:YES encoding:NSUTF8StringEncoding error:&error]) {\n      [self presentError:error];\n      return;\n    }\n    if (![self.repository runHookWithName:@\"commit-msg\" arguments:@[ path ] standardInput:nil error:&error]) {\n      [self presentError:error];\n      return;\n    }\n    message = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error:&error];\n    if (!message) {\n      [self presentError:error];\n      return;\n    }\n    [[NSFileManager defaultManager] removeItemAtPath:path error:NULL];\n  }\n\n  GCCommit* newCommit;\n  [self.repository setUndoActionName:NSLocalizedString(@\"Commit\", nil)];\n  if (_amendButton.state) {\n    XLOG_DEBUG_CHECK(self.repository.state != kGCRepositoryState_Merge);\n    newCommit = [self.repository performHEADCommitAmendingWithMessage:message error:&error];\n  } else {\n    GCCommit* otherParent = nil;\n    if (self.repository.state == kGCRepositoryState_Merge) {\n      NSString* sha1 = [NSString stringWithContentsOfFile:[self.repository.repositoryPath stringByAppendingPathComponent:@\"MERGE_HEAD\"] encoding:NSASCIIStringEncoding error:&error];\n      if (sha1 && (sha1.length != 41)) {\n        error = GCNewError(kGCErrorCode_Generic, @\"Invalid MERGE_HEAD file\");\n        sha1 = nil;\n      }\n      otherParent = sha1 ? [self.repository findCommitWithSHA1:[sha1 substringToIndex:40] error:&error] : nil;\n      if (otherParent == nil) {\n        [self presentError:error];\n        return;\n      }\n    }\n\n    newCommit = [self.repository performCommitCreationFromHEADAndOtherParent:otherParent withMessage:message error:&error];\n  }\n\n  if (newCommit) {\n    if (![self.repository runHookWithName:@\"post-commit\" arguments:nil standardInput:nil error:&error]) {\n      [self presentError:error];\n    }\n    [self didCreateCommit:newCommit];\n  } else {\n    [self presentError:error];\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIConfigViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@interface GIConfigViewController : GIViewController\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIConfigViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIConfigViewController.h\"\n#import \"GIWindowController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIConfigViewController () <NSTableViewDataSource>\n@property(nonatomic, weak) IBOutlet GITableView* tableView;\n@property(nonatomic, weak) IBOutlet NSButton* editButton;\n@property(nonatomic, weak) IBOutlet NSButton* deleteButton;\n\n@property(nonatomic, strong) IBOutlet NSView* editView;\n@property(nonatomic, weak) IBOutlet NSTextField* nameTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* valueTextField;\n@end\n\n@interface GIConfigCellView : GITableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* levelTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* optionTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* helpTextField;\n@end\n\n@implementation GIConfigCellView\n@end\n\nstatic NSMutableDictionary* _directHelp = nil;\nstatic NSMutableDictionary* _patternHelp = nil;\n\n@implementation GIConfigViewController {\n  NSArray* _config;\n  NSCountedSet* _set;\n  GIConfigCellView* _cachedCellView;\n  NSDictionary* _helpAttributes;\n  NSDictionary* _optionAttributes;\n  NSDictionary* _separatorAttributes;\n  NSDictionary* _valueAttributes;\n}\n\n+ (void)initialize {\n#if DEBUG\n  NSMutableCharacterSet* set = [NSMutableCharacterSet alphanumericCharacterSet];\n  [set addCharactersInString:@\"._-\"];\n  [set invert];\n#endif\n  _directHelp = [[NSMutableDictionary alloc] init];\n  _patternHelp = [[NSMutableDictionary alloc] init];\n  NSString* string = [[NSString alloc] initWithContentsOfFile:[[NSBundle bundleForClass:[GIConfigViewController class]] pathForResource:@\"GIConfigViewController-Help\" ofType:@\"txt\"] encoding:NSUTF8StringEncoding error:NULL];\n  XLOG_DEBUG_CHECK(string);\n  string = [string stringByReplacingOccurrencesOfString:@\"linkgit:\" withString:@\"\"];  // TODO: Handle links\n  for (NSString* section in [string componentsSeparatedByString:@\"\\n\\n\\n\"]) {\n    NSRange range = [section rangeOfString:@\"\\n\"];\n    XLOG_DEBUG_CHECK(range.location != NSNotFound);\n    NSString* title = [section substringToIndex:range.location];\n    NSString* content = [section substringFromIndex:(range.location + range.length)];\n\n    if ([title rangeOfString:@\"<\"].location != NSNotFound) {\n      NSMutableString* pattern = [[NSMutableString alloc] initWithString:title];\n      [pattern replaceOccurrencesOfString:@\".\" withString:@\"\\\\.\" options:0 range:NSMakeRange(0, pattern.length)];\n      NSRange startRange = [pattern rangeOfString:@\"<\" options:0 range:NSMakeRange(0, pattern.length)];\n      NSRange endRange = [pattern rangeOfString:@\">\" options:NSBackwardsSearch range:NSMakeRange(0, pattern.length)];\n      [pattern replaceCharactersInRange:NSMakeRange(startRange.location, endRange.location + endRange.length - startRange.location) withString:@\".*\"];\n      NSRegularExpression* regex = [[NSRegularExpression alloc] initWithPattern:pattern options:NSRegularExpressionCaseInsensitive error:NULL];\n      [_patternHelp setObject:content forKey:regex];\n    } else {\n      XLOG_DEBUG_CHECK([title rangeOfCharacterFromSet:set].location == NSNotFound);\n      XLOG_DEBUG_CHECK(![_directHelp objectForKey:[title lowercaseString]]);\n      [_directHelp setObject:content forKey:[title lowercaseString]];\n    }\n  }\n}\n\n+ (NSString*)helpForVariable:(NSString*)variable {\n  NSString* help = [_directHelp objectForKey:variable];\n  if (help) {\n    return help;\n  }\n  for (NSRegularExpression* expression in _patternHelp) {\n    if ([expression rangeOfFirstMatchInString:variable options:0 range:NSMakeRange(0, variable.length)].location != NSNotFound) {\n      return _patternHelp[expression];\n    }\n  }\n  return NSLocalizedString(@\"No help available for this variable.\", nil);\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _tableView.target = self;\n  _tableView.doubleAction = @selector(editOption:);\n\n  _cachedCellView = [_tableView makeViewWithIdentifier:[_tableView.tableColumns[0] identifier] owner:self];\n\n  NSMutableParagraphStyle* style = [[NSMutableParagraphStyle alloc] init];\n  style.paragraphSpacing = -6;\n  _helpAttributes = @{NSParagraphStyleAttributeName : style};\n\n  CGFloat fontSize = _cachedCellView.optionTextField.font.pointSize;\n  _optionAttributes = @{NSFontAttributeName : [NSFont boldSystemFontOfSize:fontSize]};\n  _separatorAttributes = @{NSFontAttributeName : [NSFont systemFontOfSize:fontSize]};\n  _valueAttributes = @{NSFontAttributeName : [NSFont systemFontOfSize:fontSize], NSBackgroundColorAttributeName : NSColor.gitUpConfigHighlightBackgroundColor};\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  [self _reloadConfig];\n}\n\n- (void)repositoryDidChange {\n  if (self.viewVisible) {\n    [self _reloadConfig];\n  }\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _config = nil;\n  _set = nil;\n  [_tableView reloadData];\n}\n\n- (BOOL)_selectOptionWithLevel:(GCConfigLevel)level variable:(NSString*)variable {\n  NSUInteger row = 0;\n  for (GCConfigOption* option in _config) {\n    if ((option.level == level) && [option.variable isEqualToString:variable]) {\n      [_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];\n      [_tableView scrollRowToVisible:row];\n      return YES;\n    }\n    ++row;\n  }\n  return NO;\n}\n\n- (void)_reloadConfig {\n  NSInteger selectedRow = _tableView.selectedRow;\n  GCConfigOption* selectedOption = (selectedRow >= 0 ? _config[selectedRow] : nil);\n\n  NSError* error;\n  NSArray* config = [self.repository readAllConfigs:&error];\n  if (config) {\n    _config = [config sortedArrayUsingComparator:^NSComparisonResult(GCConfigOption* option1, GCConfigOption* option2) {\n      NSComparisonResult result = [option1.variable compare:option2.variable];\n      if (result == NSOrderedSame) {\n        if (option1.level < option2.level) {\n          result = NSOrderedAscending;\n        } else if (option1.level > option2.level) {\n          result = NSOrderedDescending;\n        } else {\n          XLOG_DEBUG_UNREACHABLE();\n        }\n      }\n      return result;\n    }];\n    _set = [[NSCountedSet alloc] init];\n    for (GCConfigOption* option in _config) {\n      [_set addObject:option.variable];\n    }\n  } else {\n    _config = nil;\n    _set = nil;\n    [self presentError:error];\n  }\n  [_tableView reloadData];\n  XLOG_VERBOSE(@\"Reloaded config for \\\"%@\\\"\", self.repository.repositoryPath);\n\n  if (selectedOption && ![self _selectOptionWithLevel:selectedOption.level variable:selectedOption.variable]) {\n    [_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:selectedRow] byExtendingSelection:NO];\n  }\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return _config.count;\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (void)tableView:(NSTableView*)tableView didAddRowView:(NSTableRowView*)rowView forRow:(NSInteger)row {\n  GCConfigOption* option = _config[row];\n  if ([_set countForObject:option.variable] > 1) {\n    rowView.backgroundColor = NSColor.gitUpConfigConflictBackgroundColor;\n  } else if (option.level != kGCConfigLevel_Local) {\n    rowView.backgroundColor = NSColor.gitUpConfigGlobalBackgroundColor;\n  } else {\n    rowView.backgroundColor = NSColor.textBackgroundColor;\n  }\n}\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  GIConfigCellView* view = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];\n  view.row = row;\n  GCConfigOption* option = _config[row];\n  switch (option.level) {\n    case kGCConfigLevel_System:\n      view.levelTextField.stringValue = NSLocalizedString(@\"System\", nil);\n      break;\n\n    case kGCConfigLevel_XDG:\n      view.levelTextField.stringValue = NSLocalizedString(@\"XDG\", nil);\n      break;\n\n    case kGCConfigLevel_Global:\n      view.levelTextField.stringValue = NSLocalizedString(@\"Global\", nil);\n      break;\n\n    case kGCConfigLevel_Local:\n      view.levelTextField.stringValue = NSLocalizedString(@\"Local\", nil);\n      break;\n  }\n  NSMutableAttributedString* string = [[NSMutableAttributedString alloc] init];\n  [string appendString:option.variable withAttributes:_optionAttributes];\n  [string appendString:@\" = \" withAttributes:_separatorAttributes];\n  [string appendString:option.value withAttributes:_valueAttributes];\n  view.optionTextField.attributedStringValue = string;\n  view.helpTextField.attributedStringValue = [[NSAttributedString alloc] initWithString:[self.class helpForVariable:option.variable] attributes:_helpAttributes];\n  return view;\n}\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  NSInteger row = _tableView.selectedRow;\n  _editButton.enabled = (row >= 0);\n  _deleteButton.enabled = (row >= 0);\n}\n\n#pragma mark - Actions\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  if (item.action == @selector(copy:)) {\n    return (_tableView.selectedRow >= 0);\n  }\n\n  return NO;\n}\n\n- (IBAction)copy:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    GCConfigOption* option = _config[row];\n    [[NSPasteboard generalPasteboard] declareTypes:@[ NSPasteboardTypeString ] owner:nil];\n    [[NSPasteboard generalPasteboard] setString:[NSString stringWithFormat:@\"%@ = %@\", option.variable, option.value] forType:NSPasteboardTypeString];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)_undoWriteOptionWithLevel:(GCConfigLevel)level variable:(NSString*)variable value:(NSString*)value ignore:(BOOL)ignore {\n  if (ignore) {\n    [[self.undoManager prepareWithInvocationTarget:self] _undoWriteOptionWithLevel:level variable:variable value:value ignore:NO];\n    return;\n  }\n\n  NSError* error;\n  GCConfigOption* currentOption = [self.repository readConfigOptionForLevel:level variable:variable error:&error];\n  if ((currentOption || ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_NotFound))) && [self.repository writeConfigOptionForLevel:level variable:variable withValue:value error:&error]) {\n    [[self.undoManager prepareWithInvocationTarget:self] _undoWriteOptionWithLevel:level variable:variable value:currentOption.value ignore:NO];\n    [self.repository notifyRepositoryChanged];\n  } else {  // In case of error, put a dummy operation on the undo stack since we *must* put something, but pop it at the next runloop iteration\n    [[self.undoManager prepareWithInvocationTarget:self] _undoWriteOptionWithLevel:level variable:variable value:value ignore:YES];\n    [self.undoManager performSelector:(self.undoManager.isRedoing ? @selector(undo) : @selector(redo)) withObject:nil afterDelay:0.0];\n    [self presentError:error];\n  }\n}\n\n- (void)_promptOption:(GCConfigOption*)option {\n  _nameTextField.stringValue = option ? option.variable : @\"\";\n  _valueTextField.stringValue = option ? option.value : @\"\";\n  _nameTextField.enabled = (option == nil);\n  [self.windowController runModalView:_editView\n            withInitialFirstResponder:(option ? _valueTextField : _nameTextField)\n            completionHandler:^(BOOL success) {\n              if (success) {\n                NSString* name = option ? option.variable : [_nameTextField.stringValue stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                NSString* value = [_valueTextField.stringValue stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                if (name.length && value.length) {\n                  NSError* error;\n                  GCConfigOption* currentOption = option ? option : [self.repository readConfigOptionForLevel:kGCConfigLevel_Local variable:name error:&error];\n                  if ((currentOption || ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_NotFound))) && [self.repository writeConfigOptionForLevel:(option ? option.level : kGCConfigLevel_Local) variable:name withValue:value error:&error]) {\n                    [self.undoManager setActionName:NSLocalizedString(@\"Edit Configuration\", nil)];\n                    [[self.undoManager prepareWithInvocationTarget:self] _undoWriteOptionWithLevel:(option ? option.level : kGCConfigLevel_Local) variable:name value:currentOption.value ignore:NO];  // TODO: We should really use the built-in undo mechanism from GCLiveRepository\n                    [self.repository notifyRepositoryChanged];\n\n                    if (!option) {\n                      [self _selectOptionWithLevel:kGCConfigLevel_Local variable:name];\n                    }\n                  } else {\n                    [self presentError:error];\n                  }\n                } else {\n                  NSBeep();\n                }\n              }\n            }];\n}\n\n- (IBAction)addOption:(id)sender {\n  [self _promptOption:nil];\n}\n\n- (IBAction)editOption:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    [self _promptOption:_config[row]];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (IBAction)deleteOption:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    GCConfigOption* option = _config[row];\n    NSError* error;\n    if ([self.repository writeConfigOptionForLevel:option.level variable:option.variable withValue:nil error:&error]) {\n      [self.undoManager setActionName:NSLocalizedString(@\"Edit Configuration\", nil)];\n      [[self.undoManager prepareWithInvocationTarget:self] _undoWriteOptionWithLevel:option.level variable:option.variable value:option.value ignore:NO];  // TODO: We should really use the built-in undo mechanism from GCLiveRepository\n      [self.repository notifyRepositoryChanged];\n    } else {\n      [self presentError:error];\n    }\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIConflictResolverViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@class GCCommit, GIConflictResolverViewController;\n\n@protocol GIConflictResolverViewControllerDelegate <NSObject>\n- (void)conflictResolverViewControllerShouldCancel:(GIConflictResolverViewController*)controller;\n- (void)conflictResolverViewControllerDidFinish:(GIConflictResolverViewController*)controller;\n@end\n\n@interface GIConflictResolverViewController : GIViewController\n@property(nonatomic, weak) id<GIConflictResolverViewControllerDelegate> delegate;\n@property(nonatomic, strong) GCCommit* ourCommit;\n@property(nonatomic, strong) GCCommit* theirCommit;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIConflictResolverViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIConflictResolverViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n#import \"GIViewController+Utilities.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIConflictResolverViewController () <GIDiffContentsViewControllerDelegate, GIDiffFilesViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet NSTextField* oursTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* theirsTextField;\n@property(nonatomic, weak) IBOutlet NSView* contentsView;\n@property(nonatomic, weak) IBOutlet NSView* filesView;\n@property(nonatomic, weak) IBOutlet NSButton* continueButton;\n@end\n\n@implementation GIConflictResolverViewController {\n  GIDiffContentsViewController* _diffContentsViewController;\n  GIDiffFilesViewController* _diffFilesViewController;\n  GCDiff* _unifiedStatus;\n  NSDictionary* _indexConflicts;\n  BOOL _disableFeedbackLoop;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.showsUntrackedAsAdded = YES;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_contentsView replaceWithView:_diffContentsViewController.view];\n\n  _diffFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _diffFilesViewController.delegate = self;\n  _diffFilesViewController.showsUntrackedAsAdded = YES;\n  _diffFilesViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_filesView replaceWithView:_diffFilesViewController.view];\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Disabled);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Unified;\n\n  _oursTextField.stringValue = [NSString stringWithFormat:@\"\\\"%@\\\" <%@>\", _ourCommit.summary, _ourCommit.shortSHA1];\n  _theirsTextField.stringValue = [NSString stringWithFormat:@\"\\\"%@\\\" <%@>\", _theirCommit.summary, _theirCommit.shortSHA1];\n\n  [self _reloadContents];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _unifiedStatus = nil;\n  _indexConflicts = nil;\n\n  [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n  [_diffFilesViewController setDeltas:nil usingConflicts:nil];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Unified);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Disabled;\n}\n\n- (void)repositoryStatusDidUpdate {\n  if (self.viewVisible) {\n    [self _reloadContents];\n  }\n}\n\n- (void)_reloadContents {\n  CGFloat offset;\n  GCDiffDelta* topDelta = [_diffContentsViewController topVisibleDelta:&offset];\n\n  _unifiedStatus = self.repository.unifiedStatus;\n  _indexConflicts = self.repository.indexConflicts;\n  [_diffContentsViewController setDeltas:_unifiedStatus.deltas usingConflicts:_indexConflicts];\n  [_diffFilesViewController setDeltas:_unifiedStatus.deltas usingConflicts:_indexConflicts];\n\n  [_diffContentsViewController setTopVisibleDelta:topDelta offset:offset];\n\n  _continueButton.enabled = (_indexConflicts.count == 0);\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)diffContentsViewControllerDidScroll:(GIDiffContentsViewController*)scroll {\n  if (!_disableFeedbackLoop) {\n    _diffFilesViewController.selectedDelta = [_diffContentsViewController topVisibleDelta:NULL];\n  }\n}\n\n- (NSString*)diffContentsViewController:(GIDiffContentsViewController*)controller actionButtonLabelForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (!conflict) {\n    if (delta.submodule) {\n      return NSLocalizedString(@\"Discard Submodule Changes…\", nil);\n    } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n      return NSLocalizedString(@\"Discard Line Changes…\", nil);\n    } else {\n      return NSLocalizedString(@\"Discard File Changes…\", nil);\n    }\n  }\n  return nil;\n}\n\n- (void)diffContentsViewController:(GIDiffContentsViewController*)controller didClickActionButtonForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (delta.submodule) {\n    [self discardSubmoduleAtPath:delta.canonicalPath resetIndex:YES];\n  } else {\n    NSIndexSet* oldLines;\n    NSIndexSet* newLines;\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self discardSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines resetIndex:YES];\n    } else {\n      [self discardAllChangesForFile:delta.canonicalPath resetIndex:YES];\n    }\n  }\n}\n\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  return [self contextualMenuForDelta:delta withConflict:conflict allowOpen:YES];\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller willSelectDelta:(GCDiffDelta*)delta {\n  _disableFeedbackLoop = YES;\n  [_diffContentsViewController setTopVisibleDelta:delta offset:0];\n  _disableFeedbackLoop = NO;\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  return [self handleKeyDownEvent:event forSelectedDeltas:_diffFilesViewController.selectedDeltas withConflicts:_indexConflicts allowOpen:YES];\n}\n\n#pragma mark - NSTextViewDelegate\n\n// Intercept Option-Return key in NSTextView and forward to next responder\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertNewlineIgnoringFieldEditor:)) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return [super textView:textView doCommandBySelector:selector];\n}\n\n#pragma mark - Actions\n\n- (IBAction)cancel:(id)sender {\n  [_delegate conflictResolverViewControllerShouldCancel:self];\n}\n\n- (IBAction)continue:(id)sender {\n  [_delegate conflictResolverViewControllerDidFinish:self];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIDiffViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@class GCCommit;\n\n@interface GIDiffViewController : GIViewController\n@property(nonatomic, readonly) GCCommit* commit;\n@property(nonatomic, readonly) GCCommit* parentCommit;\n- (void)setCommit:(GCCommit*)commit withParentCommit:(GCCommit*)parentCommit;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIDiffViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIDiffViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIDiffViewController () <GIDiffContentsViewControllerDelegate, GIDiffFilesViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet NSView* contentsView;\n@property(nonatomic, weak) IBOutlet NSView* filesView;\n@property(nonatomic, weak) IBOutlet NSTextField* fromTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* toTextField;\n@end\n\n@implementation GIDiffViewController {\n  GIDiffContentsViewController* _diffContentsViewController;\n  GIDiffFilesViewController* _diffFilesViewController;\n  NSDateFormatter* _dateFormatter;\n  BOOL _disableFeedbackLoop;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n  }\n  return self;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No differences\", nil);\n  [_contentsView replaceWithView:_diffContentsViewController.view];\n\n  _diffFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _diffFilesViewController.delegate = self;\n  [_filesView replaceWithView:_diffFilesViewController.view];\n}\n\n- (void)setCommit:(GCCommit*)commit withParentCommit:(GCCommit*)parentCommit {\n  if ((commit != _commit) || (parentCommit != _parentCommit)) {\n    _commit = commit;\n    _parentCommit = parentCommit;\n    if (_commit) {\n      NSError* error;\n      GCDiff* diff = [self.repository diffCommit:_commit\n                                      withCommit:_parentCommit\n                                     filePattern:nil\n                                         options:(self.repository.diffBaseOptions | kGCDiffOption_FindRenames)\n                               maxInterHunkLines:self.repository.diffMaxInterHunkLines\n                                 maxContextLines:self.repository.diffMaxContextLines\n                                           error:&error];\n      if (!diff) {\n        [self presentError:error];\n      }\n      [_diffContentsViewController setDeltas:diff.deltas usingConflicts:nil];\n      [_diffFilesViewController setDeltas:diff.deltas usingConflicts:nil];\n\n      _fromTextField.stringValue = [NSString stringWithFormat:@\"\\\"%@\\\" <%@> (%@)\", _commit.summary, _commit.shortSHA1, [_dateFormatter stringFromDate:_commit.date]];\n      _toTextField.stringValue = [NSString stringWithFormat:@\"\\\"%@\\\" <%@> (%@)\", _parentCommit.summary, _parentCommit.shortSHA1, [_dateFormatter stringFromDate:_parentCommit.date]];\n    } else {\n      [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n      [_diffFilesViewController setDeltas:nil usingConflicts:nil];\n\n      _fromTextField.stringValue = NSLocalizedString(@\"n/a\", nil);\n      _toTextField.stringValue = NSLocalizedString(@\"n/a\", nil);\n    }\n  }\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)diffContentsViewControllerDidScroll:(GIDiffContentsViewController*)scroll {\n  if (!_disableFeedbackLoop) {\n    _diffFilesViewController.selectedDelta = [_diffContentsViewController topVisibleDelta:NULL];\n  }\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller willSelectDelta:(GCDiffDelta*)delta {\n  _disableFeedbackLoop = YES;\n  [_diffContentsViewController setTopVisibleDelta:delta offset:0];\n  _disableFeedbackLoop = NO;\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIMapViewController+Operations.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIMapViewController.h\"\n\n@class GCBranch, GCLocalBranch, GCHistoryLocalBranch, GCHistoryRemoteBranch, GCHistoryTag, GCRemote;\n\n@interface GIMapViewController (Operations)\n- (BOOL)checkCleanRepositoryForOperationOnCommit:(GCCommit*)commit;\n- (BOOL)checkCleanRepositoryForOperationOnBranch:(GCLocalBranch*)branch;\n\n- (void)swapCommitWithParent:(GCHistoryCommit*)commit;\n- (void)swapCommitWithChild:(GCHistoryCommit*)commit;\n- (void)squashCommitWithParent:(GCHistoryCommit*)commit;\n- (void)fixupCommitWithParent:(GCHistoryCommit*)commit;\n- (void)deleteCommit:(GCHistoryCommit*)commit;\n- (void)cherryPickCommit:(GCHistoryCommit*)commit againstLocalBranch:(GCHistoryLocalBranch*)branch;\n- (void)revertCommit:(GCHistoryCommit*)commit againstLocalBranch:(GCHistoryLocalBranch*)branch;\n- (void)editCommitMessage:(GCHistoryCommit*)commit;\n- (void)copyCommitMessage:(GCHistoryCommit*)commit;\n\n- (void)createLocalBranchAtCommit:(GCHistoryCommit*)commit withName:(NSString*)name checkOut:(BOOL)checkOut;\n- (void)deleteLocalBranch:(GCHistoryLocalBranch*)branch;\n- (void)setName:(NSString*)name forLocalBranch:(GCHistoryLocalBranch*)branch;\n- (void)setTipCommit:(GCHistoryCommit*)commit forLocalBranch:(GCHistoryLocalBranch*)branch;\n- (void)moveTipCommit:(GCHistoryCommit*)commit forLocalBranch:(GCHistoryLocalBranch*)branch;\n- (void)setUpstream:(GCBranch*)upstream forLocalBranch:(GCLocalBranch*)branch;\n\n- (void)createTagAtCommit:(GCHistoryCommit*)commit withName:(NSString*)name message:(NSString*)message;\n- (void)setName:(NSString*)name forTag:(GCHistoryTag*)tag;\n- (void)deleteTag:(GCHistoryTag*)tag;\n\n- (void)fastForwardLocalBranch:(GCHistoryLocalBranch*)branch toCommitOrBranch:(id)commitOrBranch withUserMessage:(NSString*)userMessage;\n- (void)mergeCommitOrBranch:(id)commitOrBranch intoLocalBranch:(GCHistoryLocalBranch*)branch withAncestorCommit:(GCHistoryCommit*)ancestorCommit userMessage:(NSString*)userMessage;\n- (void)rebaseLocalBranch:(GCHistoryLocalBranch*)branch fromCommit:(GCHistoryCommit*)fromCommit ontoCommit:(GCHistoryCommit*)commit withUserMessage:(NSString*)userMessage;\n- (void)smartMergeCommitOrBranch:(id)commitOrBranch intoLocalBranch:(GCHistoryLocalBranch*)intoBranch withUserMessage:(NSString*)userMessage;\n- (void)smartRebaseLocalBranch:(GCHistoryLocalBranch*)branch ontoCommit:(GCHistoryCommit*)commit withUserMessage:(NSString*)userMessage;\n\n- (void)fetchRemoteBranch:(GCHistoryRemoteBranch*)branch;\n- (void)deleteRemoteBranch:(GCHistoryRemoteBranch*)branch;\n- (void)deleteTagFromAllRemotes:(GCHistoryTag*)tag;\n- (void)fetchDefaultRemoteBranchesFromAllRemotes;\n- (void)fetchAllTagsFromAllRemotes:(BOOL)prune;\n\n- (void)pushLocalBranch:(GCHistoryLocalBranch*)branch toRemote:(GCRemote*)remote;\n- (void)pushLocalBranchToUpstream:(GCHistoryLocalBranch*)branch;\n- (void)pushAllLocalBranchesToAllRemotes;\n- (void)pushTag:(GCHistoryTag*)tag toRemote:(GCRemote*)remote;\n- (void)pushAllTagsToAllRemotes;\n\n- (void)pullLocalBranchFromUpstream:(GCHistoryLocalBranch*)branch;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIMapViewController+Operations.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIMapViewController+Operations.h\"\n\n#import \"GIWindowController.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"GCHistory+Rewrite.h\"\n#import \"XLFacilityMacros.h\"\n\n#define kUserDefaultsPrefix @\"GIMapViewController_\"\n#define kUserDefaultsKey_SkipPushTagWarning kUserDefaultsPrefix \"SkipPushTagWarning\"\n#define kUserDefaultsKey_SkipFetchRemoteBranchWarning kUserDefaultsPrefix \"SkipFetchRemoteBranchWarning\"\n#define kUserDefaultsKey_SkipPullBranchWarning kUserDefaultsPrefix \"SkipPullBranchWarning\"\n#define kUserDefaultsKey_SkipPushBranchWarning kUserDefaultsPrefix \"SkipPushBranchWarning\"\n#define kUserDefaultsKey_SkipPushLocalBranchToRemoteWarning kUserDefaultsPrefix \"SkipPushLocalBranchToRemoteWarning\"\n#define kUserDefaultsKey_SkipFetchRemoteBranchesWarning kUserDefaultsPrefix \"SkipFetchRemoteBranchesWarning\"\n#define kUserDefaultsKey_AllowReturnKeyForDangerousRemoteOperations kUserDefaultsPrefix \"AllowReturnKeyForDangerousRemoteOperations\"\n#define kUserDefaultsKey_AskSetUpstreamOnPush @\"AskSetUpstreamOnPush\"  // BOOL\n\n@interface GIMapViewController (Internal)\n- (void)_promptForCommitMessage:(NSString*)message withTitle:(NSString*)title button:(NSString*)button block:(void (^)(NSString* message))block;\n@end\n\nstatic inline NSString* _CleanedUpCommitMessage(NSString* message) {\n  return [message stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];\n}\n\nstatic inline GIAlertType _AlertTypeForDangerousRemoteOperations() {\n  return ([[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsKey_AllowReturnKeyForDangerousRemoteOperations] ? kGIAlertType_Stop : kGIAlertType_Danger);\n}\n\n@implementation GIMapViewController (Operations)\n\n- (BOOL)_checkClean {\n  NSError* error;\n  if (![self.repository checkClean:kGCCleanCheckOption_IgnoreUntrackedFiles error:&error]) {\n    if ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_RepositoryDirty)) {\n      [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:error.localizedDescription];\n    } else {\n      [self presentError:error];\n    }\n    return NO;\n  }\n  return YES;\n}\n\n- (BOOL)checkCleanRepositoryForOperationOnCommit:(GCCommit*)commit {\n  if (!self.repository.history.HEADBranch || !self.repository.history.HEADCommit) {  // Check if HEAD is attached and not unborn\n    return YES;\n  }\n  NSError* error;\n  GCCommitRelation relation = [self.repository findRelationOfCommit:commit relativeToCommit:self.repository.history.HEADCommit error:&error];\n  switch (relation) {\n    case kGCCommitRelation_Unknown:\n      [self presentError:error];\n      return NO;\n\n    case kGCCommitRelation_Descendant:\n    case kGCCommitRelation_Cousin:\n    case kGCCommitRelation_Unrelated:\n      return YES;\n\n    case kGCCommitRelation_Identical:\n    case kGCCommitRelation_Ancestor:\n      return [self _checkClean];\n  }\n  XLOG_DEBUG_UNREACHABLE();\n  return NO;\n}\n\n- (BOOL)checkCleanRepositoryForOperationOnBranch:(GCLocalBranch*)branch {\n  if (![self.repository.history.HEADBranch isEqualToBranch:branch]) {  // Check if HEAD is attached to the same branch\n    return YES;\n  }\n  return [self _checkClean];\n}\n\n- (GCMergeAnalysisResult)_analyzeMergingCommit:(GCCommit*)mergeCommit intoCommit:(GCCommit*)intoCommit ancestorCommit:(GCHistoryCommit**)ancestorCommit error:(NSError**)error {\n  GCCommit* commit;\n  GCMergeAnalysisResult result = [self.repository analyzeMergingCommit:mergeCommit intoCommit:intoCommit ancestorCommit:&commit error:error];\n  if (result != kGCMergeAnalysisResult_Unknown) {\n    *ancestorCommit = [self.repository.history historyCommitForCommit:commit];\n    if (*ancestorCommit == nil) {\n      XLOG_DEBUG_UNREACHABLE();\n      *error = GCNewError(kGCErrorCode_Generic, @\"Missing history commit\");\n      result = kGCMergeAnalysisResult_Unknown;\n    }\n  }\n  return result;\n}\n\n#pragma mark - Commits\n\n- (void)swapCommitWithParent:(GCHistoryCommit*)commit {\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    [self.repository suspendHistoryUpdates];  // We need to suspend history updates to prevent history to change during replay if conflict handler is called\n    NSError* error;\n    __block GCCommit* newCommit = nil;\n    [self.repository setUndoActionName:NSLocalizedString(@\"Swap Commit With Parent\", nil)];\n    BOOL success = [self.repository performReferenceTransformWithReason:@\"swap_commits\"\n                                                               argument:commit.SHA1\n                                                                  error:&error\n                                                             usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                               return [repository.history swapCommitWithItsParent:commit\n                                                                                                  conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError2) {\n                                                                                                    return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message error:outError2];\n                                                                                                  }\n                                                                                                   newChildCommit:NULL\n                                                                                                  newParentCommit:&newCommit\n                                                                                                            error:outError1];\n                                                             }];\n    [self.repository resumeHistoryUpdates];\n    if (success) {\n      [self selectCommit:newCommit];\n    } else {\n      [self presentError:error];\n    }\n  }\n}\n\n- (void)swapCommitWithChild:(GCHistoryCommit*)commit {\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    GCHistoryCommit* child = commit.children[0];\n    [self.repository suspendHistoryUpdates];  // We need to suspend history updates to prevent history to change during replay if conflict handler is called\n    NSError* error;\n    __block GCCommit* newCommit = nil;\n    [self.repository setUndoActionName:NSLocalizedString(@\"Swap Commit With Child\", nil)];\n    BOOL success = [self.repository performReferenceTransformWithReason:@\"swap_commits\"\n                                                               argument:child.SHA1\n                                                                  error:&error\n                                                             usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                               return [repository.history swapCommitWithItsParent:child\n                                                                                                  conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError2) {\n                                                                                                    return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message error:outError2];\n                                                                                                  }\n                                                                                                   newChildCommit:&newCommit\n                                                                                                  newParentCommit:NULL\n                                                                                                            error:outError1];\n                                                             }];\n    [self.repository resumeHistoryUpdates];\n    if (success) {\n      [self selectCommit:newCommit];\n    } else {\n      [self presentError:error];\n    }\n  }\n}\n\n- (void)squashCommitWithParent:(GCHistoryCommit*)commit {\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    GCHistoryCommit* parentCommit = commit.parents.firstObject;\n    NSString* mergedMessage = [NSString stringWithFormat:NSLocalizedString(@\"%@\\n\\n%@\", nil), _CleanedUpCommitMessage(parentCommit.message), _CleanedUpCommitMessage(commit.message)];\n    [self _promptForCommitMessage:mergedMessage\n                        withTitle:NSLocalizedString(@\"Squashed commit message:\", nil)\n                           button:NSLocalizedString(@\"Squash\", nil)\n                            block:^(NSString* message) {\n                              NSError* error;\n                              __block GCCommit* newCommit = nil;\n                              [self.repository setUndoActionName:NSLocalizedString(@\"Squash Commit\", nil)];\n                              if ([self.repository performReferenceTransformWithReason:@\"squash_commit\"\n                                                                              argument:commit.SHA1\n                                                                                 error:&error\n                                                                            usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError) {\n                                                                              return [repository.history squashCommit:commit withMessage:message newCommit:&newCommit error:outError];\n                                                                            }]) {\n                                [self selectCommit:newCommit];\n                              } else {\n                                [self presentError:error];\n                              }\n                            }];\n  }\n}\n\n- (void)fixupCommitWithParent:(GCHistoryCommit*)commit {\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    NSError* error;\n    __block GCCommit* newCommit = nil;\n    [self.repository setUndoActionName:NSLocalizedString(@\"Fixup Commit\", nil)];\n    if ([self.repository performReferenceTransformWithReason:@\"fixup_commit\"\n                                                    argument:commit.SHA1\n                                                       error:&error\n                                                  usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError) {\n                                                    return [repository.history fixupCommit:commit newCommit:&newCommit error:outError];\n                                                  }]) {\n      [self selectCommit:newCommit];\n    } else {\n      [self presentError:error];\n    }\n  }\n}\n\n- (void)deleteCommit:(GCHistoryCommit*)commit {\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    [self.repository suspendHistoryUpdates];  // We need to suspend history updates to prevent history to change during replay if conflict handler is called\n    NSError* error;\n    [self.repository setUndoActionName:NSLocalizedString(@\"Delete Commit\", nil)];\n    if (![self.repository performReferenceTransformWithReason:@\"delete_commit\"\n                                                     argument:commit.SHA1\n                                                        error:&error\n                                                   usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                     return [repository.history deleteCommit:commit\n                                                                         withConflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError2) {\n                                                                           return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message error:outError2];\n                                                                         }\n                                                                                       error:outError1];\n                                                   }]) {\n      [self presentError:error];\n    }\n    [self.repository resumeHistoryUpdates];\n  }\n}\n\n// We don't need to suspend history updates as there is no replay by definition\n- (void)cherryPickCommit:(GCHistoryCommit*)commit againstLocalBranch:(GCHistoryLocalBranch*)branch {\n  if ([self checkCleanRepositoryForOperationOnBranch:branch]) {\n    [self _promptForCommitMessage:_CleanedUpCommitMessage(commit.message)\n                        withTitle:NSLocalizedString(@\"Cherry-picked commit message:\", nil)\n                           button:NSLocalizedString(@\"Cherry-Pick\", nil)\n                            block:^(NSString* message) {\n                              NSError* error;\n                              __block GCCommit* newCommit = nil;\n                              [self.repository setUndoActionName:NSLocalizedString(@\"Cherry-Pick Commit\", nil)];\n                              if ([self.repository performReferenceTransformWithReason:@\"cherry_pick_commit\"\n                                                                              argument:commit.SHA1\n                                                                                 error:&error\n                                                                            usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                                              return [repository.history cherryPickCommit:commit\n                                                                                                            againstBranch:branch\n                                                                                                              withMessage:message\n                                                                                                          conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message2, NSError** outError2) {\n                                                                                                            return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message2 error:outError2];\n                                                                                                          }\n                                                                                                                newCommit:&newCommit\n                                                                                                                    error:outError1];\n                                                                            }]) {\n                                [self selectCommit:newCommit];\n                              } else {\n                                [self presentError:error];\n                              }\n                            }];\n  }\n}\n\n// We don't need to suspend history updates as there is no replay by definition\n- (void)revertCommit:(GCHistoryCommit*)commit againstLocalBranch:(GCHistoryLocalBranch*)branch {\n  NSError* localError;\n  GCCommitRelation relation = [self.repository findRelationOfCommit:commit relativeToCommit:branch.tipCommit error:&localError];\n  switch (relation) {\n    case kGCCommitRelation_Unknown:\n      [self presentError:localError];\n      break;\n\n    case kGCCommitRelation_Descendant:\n    case kGCCommitRelation_Cousin:\n    case kGCCommitRelation_Unrelated:\n      [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning format:NSLocalizedString(@\"The commit is not on the \\\"%@\\\" branch\", nil), branch.name];\n      break;\n\n    case kGCCommitRelation_Identical:\n    case kGCCommitRelation_Ancestor: {\n      if ([self checkCleanRepositoryForOperationOnBranch:branch]) {\n        [self _promptForCommitMessage:[NSString stringWithFormat:NSLocalizedString(@\"Revert \\\"%@\\\"\\n\\n%@\", nil), commit.summary, commit.SHA1]\n                            withTitle:NSLocalizedString(@\"Reverted commit message:\", nil)\n                               button:NSLocalizedString(@\"Revert\", nil)\n                                block:^(NSString* message) {\n                                  NSError* error;\n                                  __block GCCommit* newCommit = nil;\n                                  [self.repository setUndoActionName:NSLocalizedString(@\"Revert Commit\", nil)];\n                                  if ([self.repository performReferenceTransformWithReason:@\"revert_commit\"\n                                                                                  argument:commit.SHA1\n                                                                                     error:&error\n                                                                                usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                                                  return [repository.history revertCommit:commit\n                                                                                                            againstBranch:branch\n                                                                                                              withMessage:message\n                                                                                                          conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message2, NSError** outError2) {\n                                                                                                            return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message2 error:outError2];\n                                                                                                          }\n                                                                                                                newCommit:&newCommit\n                                                                                                                    error:outError1];\n                                                                                }]) {\n                                    [self selectCommit:newCommit];\n                                  } else {\n                                    [self presentError:error];\n                                  }\n                                }];\n      }\n      break;\n    }\n  }\n}\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)editCommitMessage:(GCHistoryCommit*)commit {\n  NSString* originalMessage = _CleanedUpCommitMessage(commit.message);\n  [self _promptForCommitMessage:originalMessage\n                      withTitle:NSLocalizedString(@\"New commit message:\", nil)\n                         button:NSLocalizedString(@\"Save\", nil)\n                          block:^(NSString* message) {\n                            if (![message isEqualToString:originalMessage]) {\n                              NSError* error;\n                              __block GCCommit* newCommit = nil;\n                              [self.repository setUndoActionName:NSLocalizedString(@\"Edit Commit Message\", nil)];\n                              if ([self.repository performReferenceTransformWithReason:@\"edit_commit_message\"\n                                                                              argument:commit.SHA1\n                                                                                 error:&error\n                                                                            usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError) {\n                                                                              newCommit = [repository copyCommit:commit withUpdatedMessage:message updatedParents:nil updatedTreeFromIndex:nil updateCommitter:YES error:outError];\n                                                                              if (newCommit == nil) {\n                                                                                return nil;\n                                                                              }\n                                                                              return [repository.history rewriteCommit:commit withUpdatedCommit:newCommit copyTrees:YES conflictHandler:NULL error:outError];  // No need for a conflict handler as editing a message should not result in conflicts\n                                                                            }]) {\n                                [self selectCommit:newCommit];\n                              } else {\n                                [self presentError:error];\n                              }\n                            } else {\n                              NSBeep();\n                            }\n                          }];\n}\n\n- (void)copyCommitMessage:(GCHistoryCommit*)commit {\n  NSString* message = _CleanedUpCommitMessage(commit.message);\n  [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"Commit message copied: \\\"%@\\\"\", nil), message];\n  [[NSPasteboard generalPasteboard] declareTypes:@[ NSPasteboardTypeString ] owner:nil];\n  [[NSPasteboard generalPasteboard] setString:message forType:NSPasteboardTypeString];\n}\n\n#pragma mark - Local Branches\n\n// This will abort on conflicts in workdir or index so there's no need to require a clean repo\n- (void)createLocalBranchAtCommit:(GCHistoryCommit*)commit withName:(NSString*)name checkOut:(BOOL)checkOut {\n  NSError* error;\n  [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Create Branch \\\"%@\\\"\", nil), name]];\n  if (![self.repository performOperationWithReason:@\"create_branch\"\n                                          argument:name\n                                skipCheckoutOnUndo:NO\n                                             error:&error\n                                        usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                          GCLocalBranch* branch = [repository createLocalBranchFromCommit:commit withName:name force:NO error:outError];\n                                          if (branch == nil) {\n                                            return NO;\n                                          }\n                                          if (checkOut && ![repository checkoutLocalBranch:branch options:kGCCheckoutOption_UpdateSubmodulesRecursively error:outError]) {\n                                            [repository deleteLocalBranch:branch error:NULL];  // Ignore errors\n                                            return NO;\n                                          }\n                                          return YES;\n                                        }]) {\n    [self presentError:error];\n  }\n}\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)deleteLocalBranch:(GCHistoryLocalBranch*)branch {\n  GCHistoryRemoteBranch* upstream = (GCHistoryRemoteBranch*)branch.upstream;  // Must be retained *before* deleting the local branch\n  NSError* error;\n  [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Delete Branch \\\"%@\\\"\", nil), branch.name]];\n  if ([self.repository performOperationWithReason:@\"delete_branch\"\n                                         argument:branch.name\n                               skipCheckoutOnUndo:YES\n                                            error:&error\n                                       usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                         return [repository deleteLocalBranch:branch error:outError];\n                                       }]) {\n    if ([upstream isKindOfClass:[GCHistoryRemoteBranch class]]) {\n      [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                     title:[NSString stringWithFormat:NSLocalizedString(@\"Do you also want to delete the upstream remote branch \\\"%@\\\" from its remote?\", nil), upstream.name]\n                                   message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                    button:NSLocalizedString(@\"Delete Remote Branch\", nil)\n                 suppressionUserDefaultKey:nil\n                                     block:^{\n                                       [self _deleteRemoteBranchFromRemote:upstream];\n                                     }];\n    }\n  } else {\n    [self presentError:error];\n  }\n}\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)setName:(NSString*)name forLocalBranch:(GCHistoryLocalBranch*)branch {\n  NSError* error;\n  [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Rename Branch \\\"%@\\\"\", nil), branch.name]];\n  if (![self.repository performOperationWithReason:@\"rename_branch\"\n                                          argument:branch.name\n                                skipCheckoutOnUndo:YES\n                                             error:&error\n                                        usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                          return [repository setName:name forLocalBranch:branch force:NO error:outError];\n                                        }]) {\n    [self presentError:error];\n  }\n}\n\n- (void)setTipCommit:(GCHistoryCommit*)commit forLocalBranch:(GCHistoryLocalBranch*)branch {\n  if ([self checkCleanRepositoryForOperationOnBranch:branch]) {\n    NSError* error;\n    [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Set \\\"%@\\\" Branch Tip\", nil), branch.name]];\n    if (![self.repository performReferenceTransformWithReason:@\"set_branch_tip\"\n                                                     argument:branch.name\n                                                        error:&error\n                                                   usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError) {\n                                                     GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:repository reflogMessage:kGCReflogMessageFormat_GitUp_SetTip];\n                                                     [transform setDirectTarget:commit forReference:branch];\n                                                     return transform;\n                                                   }]) {\n      [self presentError:error];\n    }\n  }\n}\n\n// No checkout happens here so there's no need to require a clean repo\n- (void)moveTipCommit:(GCHistoryCommit*)commit forLocalBranch:(GCHistoryLocalBranch*)branch {\n  NSError* error;\n  [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Move \\\"%@\\\" Branch Tip\", nil), branch.name]];\n  if (![self.repository performOperationWithReason:@\"move_branch_tip\"\n                                          argument:branch.name\n                                skipCheckoutOnUndo:YES\n                                             error:&error\n                                        usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                          GCReferenceTransform* transform = [[GCReferenceTransform alloc] initWithRepository:repository reflogMessage:kGCReflogMessageFormat_GitUp_MoveTip];\n                                          [transform setDirectTarget:commit forReference:branch];\n                                          return [repository applyReferenceTransform:transform error:outError];\n                                        }]) {\n    [self presentError:error];\n  }\n}\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)setUpstream:(GCBranch*)upstream forLocalBranch:(GCLocalBranch*)branch {\n  NSError* error;\n  if (upstream) {\n    [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Set Upstream For \\\"%@\\\"\", nil), branch.name]];\n    if (![self.repository performOperationWithReason:@\"set_branch_upstream\"\n                                            argument:branch.name\n                                  skipCheckoutOnUndo:YES\n                                               error:&error\n                                          usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                            return [repository setUpstream:upstream forLocalBranch:branch error:outError];\n                                          }]) {\n      [self presentError:error];\n    }\n  } else {\n    [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Unset Upstream For \\\"%@\\\"\", nil), branch.name]];\n    if (![self.repository performOperationWithReason:@\"unset_branch_upstream\"\n                                            argument:branch.name\n                                  skipCheckoutOnUndo:YES\n                                               error:&error\n                                          usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                            return [self.repository unsetUpstreamForLocalBranch:branch error:outError];\n                                          }]) {\n      [self presentError:error];\n    }\n  }\n}\n\n#pragma mark - Tags\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)createTagAtCommit:(GCHistoryCommit*)commit withName:(NSString*)name message:(NSString*)message {\n  NSError* error;\n  [self.repository setUndoActionName:NSLocalizedString(@\"Create Tag\", nil)];\n  __block GCTag* tag = nil;\n  if (![self.repository performOperationWithReason:@\"create_tag\"\n                                          argument:name\n                                skipCheckoutOnUndo:YES\n                                             error:&error\n                                        usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                          if (message.length) {\n                                            tag = [repository createAnnotatedTagWithCommit:commit name:name message:message force:NO annotation:NULL error:outError];\n                                          } else {\n                                            tag = [repository createLightweightTagWithCommit:commit name:name force:NO error:outError];\n                                          }\n                                          return tag ? YES : NO;\n                                        }]) {\n    [self presentError:error];\n  }\n}\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)setName:(NSString*)name forTag:(GCHistoryTag*)tag {\n  NSError* error;\n  [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Rename Tag \\\"%@\\\"\", nil), tag.name]];\n  if (![self.repository performOperationWithReason:@\"rename_tag\"\n                                          argument:tag.name\n                                skipCheckoutOnUndo:YES\n                                             error:&error\n                                        usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                          return [repository setName:name forTag:tag force:NO error:outError];\n                                        }]) {\n    [self presentError:error];\n  }\n}\n\n// No checkout should happen here as HEAD tree should not change so there's no need to require a clean repo\n- (void)deleteTag:(GCHistoryTag*)tag {\n  NSError* error;\n  [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Delete Tag \\\"%@\\\"\", nil), tag.name]];\n  if (![self.repository performOperationWithReason:@\"delete_tag\"\n                                          argument:tag.name\n                                skipCheckoutOnUndo:YES\n                                             error:&error\n                                        usingBlock:^BOOL(GCLiveRepository* repository, NSError** outError) {\n                                          return [repository deleteTag:tag error:outError];\n                                        }]) {\n    [self presentError:error];\n  }\n}\n\n#pragma mark - Merging\n\n- (void)fastForwardLocalBranch:(GCHistoryLocalBranch*)branch toCommitOrBranch:(id)commitOrBranch withUserMessage:(NSString*)userMessage {\n  if ([self checkCleanRepositoryForOperationOnBranch:branch]) {\n    BOOL isBranch = [commitOrBranch isKindOfClass:[GCBranch class]];\n    GCHistoryCommit* commit = isBranch ? [commitOrBranch tipCommit] : commitOrBranch;\n    NSError* error;\n    if (isBranch) {\n      [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Fast-Forward \\\"%@\\\" Branch to \\\"%@\\\" Branch\", nil), branch.name, [commitOrBranch name]]];\n    } else {\n      [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Fast-Forward \\\"%@\\\" Branch to Commit\", nil), branch.name]];\n    }\n    if ([self.repository performReferenceTransformWithReason:(isBranch ? @\"fast_forward_merge_branch\" : @\"fast_forward_merge_commit\")\n                                                    argument:(isBranch ? [commitOrBranch name] : [commitOrBranch SHA1])\n                                                    error:&error\n                                                  usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError) {\n                                                    return [repository.history fastForwardBranch:branch toCommit:commit error:outError];\n                                                  }]) {\n      [self selectCommit:commit];\n      if (userMessage) {\n        [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:userMessage];\n      }\n    } else {\n      [self presentError:error];\n    }\n  }\n}\n\n// We don't need to suspend history updates as there is no replay by definition\n- (void)mergeCommitOrBranch:(id)commitOrBranch intoLocalBranch:(GCHistoryLocalBranch*)branch withAncestorCommit:(GCHistoryCommit*)ancestorCommit userMessage:(NSString*)userMessage {\n  if ([self checkCleanRepositoryForOperationOnBranch:branch]) {\n    BOOL isBranch = [commitOrBranch isKindOfClass:[GCBranch class]];\n    GCHistoryCommit* commit = isBranch ? [commitOrBranch tipCommit] : commitOrBranch;\n    [self _promptForCommitMessage:[NSString stringWithFormat:NSLocalizedString(@\"Merge %@ into %@\", nil), isBranch ? [commitOrBranch name] : [commitOrBranch SHA1], branch.name]\n                        withTitle:NSLocalizedString(@\"Merged commit message:\", nil)\n                           button:NSLocalizedString(@\"Merge\", nil)\n                            block:^(NSString* message) {\n                              NSError* error;\n                              __block GCCommit* newCommit = nil;\n                              if (isBranch) {\n                                [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Merge Branch \\\"%@\\\" Into \\\"%@\\\" Branch\", nil), [commitOrBranch name], branch.name]];\n                              } else {\n                                [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Merge Commit Into \\\"%@\\\" Branch\", nil), branch.name]];\n                              }\n\n                              NSString* reason = isBranch ? @\"merge_branch\" : @\"merge_commit\";\n                              NSString* argument = isBranch ? [commitOrBranch name] : [commitOrBranch SHA1];\n                              if ([self.repository performReferenceTransformWithReason:reason\n                                                                              argument:argument\n                                                                                 error:&error\n                                                                            usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                                              return [repository.history mergeCommit:commit\n                                                                                                          intoBranch:branch\n                                                                                                  withAncestorCommit:ancestorCommit\n                                                                                                             message:message\n                                                                                                     conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message2, NSError** outError2) {\n                                                                                                       return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message2 error:outError2];\n                                                                                                     }\n                                                                                                           newCommit:&newCommit\n                                                                                                               error:outError1];\n                                                                            }]) {\n                                [self selectCommit:newCommit];\n                                if (userMessage) {\n                                  [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:userMessage];\n                                }\n                              } else {\n                                [self presentError:error];\n                              }\n                            }];\n  }\n}\n\n- (void)rebaseLocalBranch:(GCHistoryLocalBranch*)branch fromCommit:(GCHistoryCommit*)fromCommit ontoCommit:(GCHistoryCommit*)commit withUserMessage:(NSString*)userMessage {\n  NSError* error;\n  if ([self checkCleanRepositoryForOperationOnBranch:branch]) {\n    [self.repository suspendHistoryUpdates];  // We need to suspend history updates to prevent history to change during replay if conflict handler is called\n    __block GCCommit* newCommit = nil;\n    [self.repository setUndoActionName:[NSString stringWithFormat:NSLocalizedString(@\"Rebase \\\"%@\\\" Branch\", nil), branch.name]];\n    BOOL success = [self.repository performReferenceTransformWithReason:@\"rebase_branch\"\n                                                               argument:branch.name\n                                                                  error:&error\n                                                             usingBlock:^GCReferenceTransform*(GCLiveRepository* repository, NSError** outError1) {\n                                                               return [repository.history rebaseBranch:branch\n                                                                                            fromCommit:fromCommit\n                                                                                            ontoCommit:commit\n                                                                                       conflictHandler:^GCCommit*(GCIndex* index, GCCommit* ourCommit, GCCommit* theirCommit, NSArray* parentCommits, NSString* message, NSError** outError2) {\n                                                                                         return [self resolveConflictsWithResolver:self.delegate index:index ourCommit:ourCommit theirCommit:theirCommit parentCommits:parentCommits message:message error:outError2];\n                                                                                       }\n                                                                                          newTipCommit:&newCommit\n                                                                                                 error:outError1];\n                                                             }];\n    [self.repository resumeHistoryUpdates];\n    if (success) {\n      [self selectCommit:newCommit];\n      if (userMessage) {\n        [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:userMessage];\n      }\n    } else {\n      [self presentError:error];\n    }\n  }\n}\n\n- (void)smartMergeCommitOrBranch:(id)commitOrBranch intoLocalBranch:(GCHistoryLocalBranch*)intoBranch withUserMessage:(NSString*)userMessage {\n  BOOL isBranch = [commitOrBranch isKindOfClass:[GCBranch class]];\n  NSError* analyzeError;\n  GCHistoryCommit* ancestorCommit;\n  GCMergeAnalysisResult result = [self _analyzeMergingCommit:(isBranch ? [commitOrBranch tipCommit] : commitOrBranch) intoCommit:intoBranch.tipCommit ancestorCommit:&ancestorCommit error:&analyzeError];\n  switch (result) {\n    case kGCMergeAnalysisResult_Unknown:\n      [self presentError:analyzeError];\n      break;\n\n    case kGCMergeAnalysisResult_UpToDate: {\n      if (isBranch) {\n        [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning format:NSLocalizedString(@\"The \\\"%@\\\" branch was already merged into the \\\"%@\\\" branch\", nil), [commitOrBranch name], intoBranch.name];\n      } else {\n        [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning format:NSLocalizedString(@\"The commit is already on the \\\"%@\\\" branch\", nil), intoBranch.name];\n      }\n      break;\n    }\n\n    case kGCMergeAnalysisResult_FastForward: {\n      if (result == kGCMergeAnalysisResult_FastForward) {\n        NSAlert* alert = [[NSAlert alloc] init];\n        alert.messageText = NSLocalizedString(@\"This merge can be fast-forwarded!\", nil);\n        alert.informativeText = NSLocalizedString(@\"Do you want to still create a merge or just fast-forward?\", nil);\n        [alert addButtonWithTitle:NSLocalizedString(@\"Fast Forward\", nil)];\n        [alert addButtonWithTitle:NSLocalizedString(@\"Merge\", nil)];\n        [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n        alert.type = kGIAlertType_Note;\n        [self presentAlert:alert\n            completionHandler:^(NSInteger returnCode) {\n              if (returnCode == NSAlertFirstButtonReturn) {\n                [self fastForwardLocalBranch:intoBranch toCommitOrBranch:commitOrBranch withUserMessage:userMessage];\n              } else if (returnCode == NSAlertSecondButtonReturn) {\n                [self mergeCommitOrBranch:commitOrBranch intoLocalBranch:intoBranch withAncestorCommit:ancestorCommit userMessage:userMessage];\n              }\n            }];\n      }\n      break;\n    }\n\n    case kGCMergeAnalysisResult_Normal:\n      [self mergeCommitOrBranch:commitOrBranch intoLocalBranch:intoBranch withAncestorCommit:ancestorCommit userMessage:userMessage];\n      break;\n  }\n}\n\n- (void)smartRebaseLocalBranch:(GCHistoryLocalBranch*)branch ontoCommit:(GCHistoryCommit*)commit withUserMessage:(NSString*)userMessage {\n  NSError* error;\n  GCCommit* baseCommit = [self.repository findMergeBaseForCommits:@[ branch.tipCommit, commit ] error:&error];\n  if (baseCommit) {\n    GCHistoryCommit* fromCommit = [self.repository.history historyCommitForCommit:baseCommit];\n    XLOG_DEBUG_CHECK(fromCommit);\n    if ([fromCommit isEqualToCommit:commit]) {  // We are trying to rebase onto an ancestor so use branch point instead of common ancestor to rebase from\n      GCHistoryCommit* parentCommit = branch.tipCommit.parents.firstObject;\n      while (parentCommit) {\n        if ([parentCommit isEqualToCommit:commit]) {\n          [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning format:NSLocalizedString(@\"The \\\"%@\\\" branch cannot be rebased onto one of its commits\", nil), branch.name];\n          return;\n        }\n        if (parentCommit.children.count > 1) {\n          fromCommit = parentCommit;\n          break;\n        }\n        parentCommit = parentCommit.parents.firstObject;\n      }\n    } else {\n      XLOG_DEBUG_CHECK(![fromCommit isEqualToCommit:branch.tipCommit]);\n    }\n    [self rebaseLocalBranch:branch fromCommit:fromCommit ontoCommit:commit withUserMessage:userMessage];\n  } else {\n    [self presentError:error];\n  }\n}\n\n#pragma mark - Remote Fetch\n\n- (void)fetchRemoteBranch:(GCHistoryRemoteBranch*)branch {\n  __block NSUInteger updatedTips;\n  [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to fetch the remote branch \\\"%@\\\"?\", nil), branch.name]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Fetch Branch\", nil)\n             suppressionUserDefaultKey:kUserDefaultsKey_SkipFetchRemoteBranchWarning\n                                 block:^{\n                                   [self.repository performOperationInBackgroundWithReason:nil\n                                       argument:nil\n                                       usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n                                         return [repository fetchRemoteBranch:branch tagMode:kGCFetchTagMode_None updatedTips:&updatedTips error:error];  // Don't fetch any tags to not mess up with undo\n                                       }\n                                       completionBlock:^(BOOL success, NSError* error) {\n                                         if (success) {\n                                           if (updatedTips) {\n                                             [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"Remote branch was updated\", nil)];\n                                           } else {\n                                             [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"Remote branch is already up-to-date with its remote\", nil)];\n                                           }\n                                         } else {\n                                           [self presentError:error];\n                                         }\n                                       }];\n                                 }];\n}\n\n- (void)fetchDefaultRemoteBranchesFromAllRemotes {\n  [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                 title:NSLocalizedString(@\"Are you sure you want to fetch remote branches?\", nil)\n                               message:NSLocalizedString(@\"This will fetch branches from all remotes in this repository and its submodules, then update the corresponding remote branches in this repository.\\n\\nRemote branches in this repository that do not exist anymore on their remotes will also be pruned.\\n\\nThis action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Fetch Remote Branches\", nil)\n             suppressionUserDefaultKey:kUserDefaultsKey_SkipFetchRemoteBranchesWarning\n                                 block:^{\n                                   __block NSUInteger updatedTips;\n                                   [self.repository performOperationInBackgroundWithReason:nil\n                                       argument:nil\n                                       usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n                                         return [repository fetchDefaultRemoteBranchesFromAllRemotes:kGCFetchTagMode_None recursive:YES prune:YES updatedTips:&updatedTips error:error];  // Don't fetch any tags to avoid messing with undo (pruning is OK as it only affects remote branches)\n                                       }\n                                       completionBlock:^(BOOL success, NSError* error) {\n                                         if (success) {\n                                           if (updatedTips > 1) {\n                                             [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"%lu remote branches have been updated\", nil), updatedTips];\n                                           } else if (updatedTips) {\n                                             [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"1 remote branch has been updated\", nil)];\n                                           } else {\n                                             [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"Remote branches are already up-to-date with their remotes\", nil)];\n                                           }\n                                         } else {\n                                           [self presentError:error];\n                                         }\n                                       }];\n                                 }];\n}\n\n- (void)fetchAllTagsFromAllRemotes:(BOOL)prune {\n  __block NSUInteger updatedTips;\n  [self.repository setUndoActionName:NSLocalizedString(@\"Fetch Remote Tags\", nil)];\n  [self.repository performOperationInBackgroundWithReason:@\"fetch_remote_tags\"\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n        return [repository fetchAllTagsFromAllRemotes:NO prune:prune updatedTips:&updatedTips error:error];  // Don't fetch recursively as we can't undo changes in submodules\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        if (success) {\n          if (updatedTips > 1) {\n            [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"%lu tags have been updated\", nil), updatedTips];\n          } else if (updatedTips) {\n            [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"1 tag has been updated\", nil)];\n          } else {\n            [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"Tags are already up-to-date with the remotes\", nil)];\n          }\n        } else {\n          [self presentError:error];\n        }\n      }];\n}\n\n#pragma mark - Remote Push\n\n- (void)_pushLocalBranch:(GCHistoryLocalBranch*)branch toRemote:(GCRemote*)remote force:(BOOL)force {\n  __block GCRemote* upstreamRemote = nil;\n  [self.repository performOperationInBackgroundWithReason:nil\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** outError) {\n        if (remote) {\n          return [repository pushLocalBranch:branch toRemote:remote force:force setUpstream:NO error:outError];\n        } else {\n          return [repository pushLocalBranchToUpstream:branch force:force usedRemote:&upstreamRemote error:outError];\n        }\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        if (success) {\n          if (remote) {\n            NSError* localError;\n            GCHistoryLocalBranch* updatedBranch = [self.repository.history historyLocalBranchForLocalBranch:branch];  // Reload branch to check upstream!\n            GCRemoteBranch* remoteBranch = [self.repository findRemoteBranchWithName:[NSString stringWithFormat:@\"%@/%@\", remote.name, branch.name] error:&localError];\n            BOOL askSetUpstreamOnPush = [[NSUserDefaults standardUserDefaults] boolForKey:kUserDefaultsKey_AskSetUpstreamOnPush];\n            if (updatedBranch && remoteBranch) {\n              if (![updatedBranch.upstream isEqualToBranch:remoteBranch]) {\n                if (askSetUpstreamOnPush) {\n                  [self confirmUserActionWithAlertType:kGIAlertType_Note\n                                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Do you want to set the upstream for \\\"%@\\\"?\", nil), updatedBranch.name]\n                                               message:[NSString stringWithFormat:NSLocalizedString(@\"This will configure the local branch \\\"%@\\\" to track the remote branch \\\"%@\\\" you just pushed to.\", nil), updatedBranch.name, remoteBranch.name]\n                                                button:NSLocalizedString(@\"Set Upstream\", nil)\n                             suppressionUserDefaultKey:nil\n                                                 block:^{\n                                                   [self setUpstream:remoteBranch forLocalBranch:branch];\n                                                 }];\n                } else {\n                  [self setUpstream:remoteBranch forLocalBranch:branch];\n                }\n              }\n            } else {\n              [self presentError:localError];\n            }\n          } else {\n            [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"The branch \\\"%@\\\" was pushed to the remote \\\"%@\\\" successfully!\", nil), branch.name, remote ? remote.name : upstreamRemote.name];\n          }\n\n        } else if (!force && [error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_NonFastForward)) {\n          [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                         title:[NSString stringWithFormat:NSLocalizedString(@\"The branch \\\"%@\\\" could not be fast-forwarded on the remote \\\"%@\\\". Do you want to attempt to force push?\", nil), branch.name, remote ? remote.name : upstreamRemote.name]\n                                       message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                        button:NSLocalizedString(@\"Force Push\", nil)\n                     suppressionUserDefaultKey:nil\n                                         block:^{\n                                           [self _pushLocalBranch:branch toRemote:remote force:YES];\n                                         }];\n        } else {\n          [self presentError:error];\n        }\n      }];\n}\n\n- (void)pushLocalBranch:(GCHistoryLocalBranch*)branch toRemote:(GCRemote*)remote {\n  [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to push \\\"%@\\\" to the remote \\\"%@\\\"?\", nil), branch.name, remote.name]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Push Branch\", nil)\n             suppressionUserDefaultKey:kUserDefaultsKey_SkipPushLocalBranchToRemoteWarning\n                                 block:^{\n                                   [self _pushLocalBranch:branch toRemote:remote force:NO];\n                                 }];\n}\n\n- (void)pushLocalBranchToUpstream:(GCHistoryLocalBranch*)branch {\n  GCHistoryRemoteBranch* upstream = (GCHistoryRemoteBranch*)branch.upstream;\n  [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to push the branch \\\"%@\\\" to its upstream?\", nil), branch.name]\n                               message:[NSString stringWithFormat:NSLocalizedString(@\"This will push to the remote branch \\\"%@\\\" which cannot be undone.\", nil), upstream.name]\n                                button:NSLocalizedString(@\"Push Branch\", nil)\n             suppressionUserDefaultKey:kUserDefaultsKey_SkipPushBranchWarning\n                                 block:^{\n                                   [self _pushLocalBranch:branch toRemote:nil force:NO];\n                                 }];\n}\n\n- (void)_pushAllLocalBranchesToRemote:(GCRemote*)remote force:(BOOL)force {\n  [self.repository performOperationInBackgroundWithReason:nil\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n        return [self.repository pushAllLocalBranchesToRemote:remote force:force setUpstream:NO error:error];\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        if (success) {\n          [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"All branches were pushed to the remote \\\"%@\\\" successfully!\", nil), remote.name];\n        } else if ([error.domain isEqualToString:GCErrorDomain] && (error.code == kGCErrorCode_NonFastForward)) {\n          [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                         title:[NSString stringWithFormat:NSLocalizedString(@\"Some branches could not be fast-forwarded on the remote \\\"%@\\\". Do you want to attempt to force push?\", nil), remote.name]\n                                       message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                        button:NSLocalizedString(@\"Force Push\", nil)\n                     suppressionUserDefaultKey:nil\n                                         block:^{\n                                           [self _pushAllLocalBranchesToRemote:remote force:YES];\n                                         }];\n        } else {\n          [self presentError:error];\n        }\n      }];\n}\n\n- (void)pushAllLocalBranchesToAllRemotes {\n  NSError* localError;\n  NSArray* remotes = [self.repository listRemotes:&localError];\n  if (remotes.count <= 1) {\n    GCRemote* remote = remotes[0];\n    [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                   title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to push all branches to the remote \\\"%@\\\"?\", nil), remote.name]\n                                 message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                  button:NSLocalizedString(@\"Push All Branches\", nil)\n               suppressionUserDefaultKey:nil\n                                   block:^{\n                                     [self _pushAllLocalBranchesToRemote:remote force:NO];\n                                   }];\n  } else if (remotes == nil) {\n    [self presentError:localError];\n  } else {\n    [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:NSLocalizedString(@\"Pushing all branches is only allowed for repositories with a single remote!\", nil)];\n  }\n}\n\n// In Git tags behave like branches and can be moved forward but not backward.\n// This is non-intuitive as one would expect tags to either move freely in either direction or not move at all.\n// To work around this issue, tags are always forced-pushed.\n- (void)_pushTag:(GCTag*)tag toRemote:(GCRemote*)remote {\n  [self.repository performOperationInBackgroundWithReason:nil\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n        return [repository pushTag:tag toRemote:remote force:YES error:error];\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        if (success) {\n          [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"The tag \\\"%@\\\" was pushed to the remote \\\"%@\\\" successfully!\", nil), tag.name, remote.name];\n        } else {\n          [self presentError:error];\n        }\n      }];\n}\n\n// IMPORTANT: See comment above\n- (void)pushTag:(GCHistoryTag*)tag toRemote:(GCRemote*)remote {\n  [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to push the tag \\\"%@\\\" to the remote \\\"%@\\\"?\", nil), tag.name, remote.name]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Push Tag\", nil)\n             suppressionUserDefaultKey:kUserDefaultsKey_SkipPushTagWarning\n                                 block:^{\n                                   [self _pushTag:tag toRemote:remote];\n                                 }];\n}\n\n// IMPORTANT: See comment above\n- (void)pushAllTagsToAllRemotes {\n  NSError* localError;\n  NSArray* remotes = [self.repository listRemotes:&localError];\n  if (remotes.count <= 1) {\n    GCRemote* remote = remotes[0];\n    [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                   title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to push all tags to the remote \\\"%@\\\"?\", nil), remote.name]\n                                 message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                  button:NSLocalizedString(@\"Push All Tags\", nil)\n               suppressionUserDefaultKey:nil\n                                   block:^{\n                                     [self.repository performOperationInBackgroundWithReason:nil\n                                         argument:nil\n                                         usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n                                           return [self.repository pushAllTagsToRemote:remote force:YES error:error];\n                                         }\n                                         completionBlock:^(BOOL success, NSError* error) {\n                                           if (success) {\n                                             [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"All tags were pushed to the remote \\\"%@\\\" successfully!\", nil), remote.name];\n                                           } else {\n                                             [self presentError:error];\n                                           }\n                                         }];\n                                   }];\n  } else if (remotes == nil) {\n    [self presentError:localError];\n  } else {\n    [self.windowController showOverlayWithStyle:kGIOverlayStyle_Warning message:NSLocalizedString(@\"Pushing all tags is only allowed for repositories with a single remote!\", nil)];\n  }\n}\n\n#pragma mark - Remote Delete\n\n- (void)_deleteRemoteBranchFromRemote:(GCHistoryRemoteBranch*)branch {\n  [self.repository performOperationInBackgroundWithReason:nil\n      argument:nil\n      usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n        return [repository deleteRemoteBranchFromRemote:branch error:error];\n      }\n      completionBlock:^(BOOL success, NSError* error) {\n        if (!success) {\n          [self presentError:error];\n        }\n      }];\n}\n\n// TODO: Delete upstream(s) in config if needed and put on undo stack\n- (void)deleteRemoteBranch:(GCHistoryRemoteBranch*)branch {\n  [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to delete the remote branch \\\"%@\\\" from its remote?\", nil), branch.name]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Delete Branch\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   [self _deleteRemoteBranchFromRemote:branch];\n                                 }];\n}\n\n- (void)deleteTagFromAllRemotes:(GCHistoryTag*)tag {\n  [self confirmUserActionWithAlertType:_AlertTypeForDangerousRemoteOperations()\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to delete the tag \\\"%@\\\" from all remotes?\", nil), tag.name]\n                               message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                button:NSLocalizedString(@\"Delete Tag\", nil)\n             suppressionUserDefaultKey:nil\n                                 block:^{\n                                   NSError* localError;\n                                   NSArray* remotes = [self.repository listRemotes:&localError];\n                                   if (remotes == nil) {\n                                     [self presentError:localError];\n                                     return;\n                                   }\n                                   if (remotes.count) {\n                                     [self.repository performOperationInBackgroundWithReason:nil\n                                         argument:nil\n                                         usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n                                           for (GCRemote* remote in remotes) {\n                                             if (![repository deleteTag:tag fromRemote:remote error:error]) {\n                                               return NO;\n                                             }\n                                           }\n                                           return YES;\n                                         }\n                                         completionBlock:^(BOOL success, NSError* error) {\n                                           if (!success) {\n                                             [self presentError:error];\n                                           }\n                                         }];\n                                   }\n                                 }];\n}\n\n#pragma mark - Remote Pull\n\n- (void)pullLocalBranchFromUpstream:(GCHistoryLocalBranch*)branch {\n  __block GCHistoryRemoteBranch* upstream = (GCHistoryRemoteBranch*)branch.upstream;\n  [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                 title:[NSString stringWithFormat:NSLocalizedString(@\"Are you sure you want to pull the branch \\\"%@\\\" from its upstream?\", nil), branch.name]\n                               message:[NSString stringWithFormat:NSLocalizedString(@\"This will first fetch the remote branch \\\"%@\\\" which cannot be undone.\", nil), upstream.name]\n                                button:NSLocalizedString(@\"Pull Branch\", nil)\n             suppressionUserDefaultKey:kUserDefaultsKey_SkipPullBranchWarning\n                                 block:^{\n                                   [self.repository performOperationInBackgroundWithReason:nil\n                                       argument:nil\n                                       usingOperationBlock:^BOOL(GCRepository* repository, NSError** error) {\n                                         return [repository fetchRemoteBranch:upstream tagMode:kGCFetchTagMode_None updatedTips:NULL error:error];  // Don't fetch any tags to not mess up with undo\n                                       }\n                                       completionBlock:^(BOOL success, NSError* error) {\n                                         if (success) {\n                                           GCHistoryCommit* branchCommit = branch.tipCommit;\n                                           upstream = [self.repository.history historyRemoteBranchForRemoteBranch:upstream];  // We must refetch the branch from history as it has changed\n                                           XLOG_DEBUG_CHECK(upstream);\n                                           GCHistoryCommit* ancestorCommit;\n                                           GCMergeAnalysisResult result = [self _analyzeMergingCommit:upstream.tipCommit intoCommit:branchCommit ancestorCommit:&ancestorCommit error:&error];\n                                           switch (result) {\n                                             case kGCMergeAnalysisResult_Unknown:\n                                               [self presentError:error];\n                                               break;\n\n                                             case kGCMergeAnalysisResult_UpToDate:\n                                               [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational format:NSLocalizedString(@\"The branch \\\"%@\\\" is already up-to-date with its upstream!\", nil), branch.name];\n                                               break;\n\n                                             case kGCMergeAnalysisResult_FastForward:\n                                               [self fastForwardLocalBranch:branch toCommitOrBranch:upstream withUserMessage:[NSString stringWithFormat:NSLocalizedString(@\"The branch \\\"%@\\\" was fast-forwarded to its upstream!\", nil), branch.name]];\n                                               break;\n\n                                             case kGCMergeAnalysisResult_Normal: {\n                                               NSAlert* alert = [[NSAlert alloc] init];\n                                               alert.messageText = [NSString stringWithFormat:NSLocalizedString(@\"Do you want to merge or rebase the branch \\\"%@\\\"?\", nil), branch.name];\n                                               alert.informativeText = [NSString stringWithFormat:NSLocalizedString(@\"The branch \\\"%@\\\" has diverged from its upstream and cannot be fast-forwarded.\", nil), branch.name];\n                                               [alert addButtonWithTitle:NSLocalizedString(@\"Rebase\", nil)];\n                                               [alert addButtonWithTitle:NSLocalizedString(@\"Merge\", nil)];\n                                               [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n                                               alert.type = kGIAlertType_Note;\n                                               [self presentAlert:alert\n                                                   completionHandler:^(NSInteger returnCode) {\n                                                     if (returnCode == NSAlertFirstButtonReturn) {\n                                                       [self rebaseLocalBranch:branch fromCommit:ancestorCommit ontoCommit:upstream.tipCommit withUserMessage:nil];\n                                                     } else if (returnCode == NSAlertSecondButtonReturn) {\n                                                       [self mergeCommitOrBranch:upstream intoLocalBranch:branch withAncestorCommit:ancestorCommit userMessage:nil];\n                                                     }\n                                                   }];\n                                               break;\n                                             }\n                                           }\n                                         } else {\n                                           [self presentError:error];\n                                         }\n                                       }];\n                                 }];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIMapViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController+Utilities.h\"\n\n#import \"GCLiveRepository+Conflicts.h\"\n#import \"GCRepository.h\"\n\n@class GIMapViewController, GIGraph, GINode, GCHistory, GCHistoryCommit, GCCommit;\n\n@protocol GIMapViewControllerDelegate <GCMergeConflictResolver>\n- (void)mapViewControllerDidReloadGraph:(GIMapViewController*)controller;\n- (void)mapViewControllerDidChangeSelection:(GIMapViewController*)controller;\n\n- (void)mapViewController:(GIMapViewController*)controller quickViewCommit:(GCHistoryCommit*)commit;\n- (void)mapViewController:(GIMapViewController*)controller diffCommit:(GCHistoryCommit*)commit withOtherCommit:(GCHistoryCommit*)otherCommit;\n- (void)mapViewController:(GIMapViewController*)controller rewriteCommit:(GCHistoryCommit*)commit;\n- (void)mapViewController:(GIMapViewController*)controller splitCommit:(GCHistoryCommit*)commit;\n@end\n\n@interface GIMapViewController : GIViewController <NSUserInterfaceValidations>\n@property(nonatomic, weak) id<GIMapViewControllerDelegate> delegate;\n@property(nonatomic, readonly) GIGraph* graph;\n@property(nonatomic, readonly) GCHistoryCommit* selectedCommit;  // Nil if no commit is selected\n@property(nonatomic, strong) GCHistory* previewHistory;\n@property(nonatomic) BOOL forceShowAllTips;\n- (BOOL)selectCommit:(GCCommit*)commit;  // Also scrolls if needed to ensure commit is visible - Returns YES if commit was selected\n- (GINode*)nodeForCommit:(GCCommit*)commit;\n- (NSPoint)positionInViewForCommit:(GCCommit*)commit;\n\n- (IBAction)toggleTagLabels:(id)sender;\n- (IBAction)toggleBranchLabels:(id)sender;\n- (IBAction)toggleVirtualTips:(id)sender;\n- (IBAction)toggleTagTips:(id)sender;\n- (IBAction)toggleRemoteBranchTips:(id)sender;\n- (IBAction)toggleStaleBranchTips:(id)sender;\n\n- (IBAction)fetchAllRemoteBranches:(id)sender;\n- (IBAction)fetchAllRemoteTags:(id)sender;\n- (IBAction)fetchAndPruneAllRemoteTags:(id)sender;\n\n- (IBAction)pushAllLocalBranches:(id)sender;\n- (IBAction)pushAllTags:(id)sender;\n- (IBAction)pullCurrentBranch:(id)sender;\n- (IBAction)pushCurrentBranch:(id)sender;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIMapViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIMapViewController+Operations.h\"\n\n#import \"GIWindowController.h\"\n#import \"GIInterface.h\"\n#import \"GCLiveRepository+Utilities.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"GCHistory+Rewrite.h\"\n#import \"XLFacilityMacros.h\"\n#import \"NSBundle+GitUpKit.h\"\n\n#define kPersistentViewStateKeyNamespace @\"GIMapViewController_\"\n\n#define kPersistentViewStateKey_HideVirtualTips kPersistentViewStateKeyNamespace @\"HideVirtualTips\"\n#define kPersistentViewStateKey_ShowTagTips kPersistentViewStateKeyNamespace @\"ShowTagTips\"\n#define kPersistentViewStateKey_ShowRemoteBranchTips kPersistentViewStateKeyNamespace @\"ShowRemoteBranchTips\"\n#define kPersistentViewStateKey_ShowStaleBranchTips kPersistentViewStateKeyNamespace @\"ShowStaleBranchTips\"\n\n#define kPersistentViewStateKey_HideTagLabels kPersistentViewStateKeyNamespace @\"HideTagLabels\"\n#define kPersistentViewStateKey_ShowBranchLabels kPersistentViewStateKeyNamespace @\"ShowBranchLabels\"\n\n@interface GIMapViewController () <GIGraphViewDelegate>\n@property(nonatomic, weak) IBOutlet NSScrollView* graphScrollView;\n@property(nonatomic, weak) IBOutlet GIGraphView* graphView;\n\n@property(nonatomic, strong) IBOutlet NSMenu* contextualMenu;\n@property(nonatomic, weak) IBOutlet NSMenuItem* checkoutMenuItem;\n@property(nonatomic, weak) IBOutlet NSMenuItem* separatorMenuItem;\n\n@property(nonatomic, strong) IBOutlet NSView* tagView;\n@property(nonatomic, weak) IBOutlet NSTextField* tagNameTextField;\n@property(nonatomic, strong) IBOutlet GICommitMessageView* tagMessageTextView;  // Does not support weak references\n\n@property(nonatomic, strong) IBOutlet NSView* renameBranchView;\n@property(nonatomic, weak) IBOutlet NSTextField* renameBranchTextField;\n\n@property(nonatomic, strong) IBOutlet NSView* renameTagView;\n@property(nonatomic, weak) IBOutlet NSTextField* renameTagTextField;\n\n@property(nonatomic, strong) IBOutlet NSView* createBranchView;\n@property(nonatomic, weak) IBOutlet NSTextField* createBranchTextField;\n@property(nonatomic, weak) IBOutlet NSButton* createBranchButton;\n\n@property(nonatomic, strong) IBOutlet NSView* messageView;\n@property(nonatomic, weak) IBOutlet NSTextField* messageTextField;\n@property(nonatomic, strong) IBOutlet GICommitMessageView* messageTextView;  // Does not support weak references\n@property(nonatomic, weak) IBOutlet NSButton* messageButton;\n@end\n\n@implementation GIMapViewController {\n  BOOL _showsVirtualTips;\n  BOOL _hidesTagTips;\n  BOOL _hidesRemoteBranchTips;\n  BOOL _hidesStaleBranchTips;\n  BOOL _updatePending;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _showsVirtualTips = ![[self.repository userInfoForKey:kPersistentViewStateKey_HideVirtualTips] boolValue];\n    _hidesTagTips = ![[self.repository userInfoForKey:kPersistentViewStateKey_ShowTagTips] boolValue];\n    _hidesRemoteBranchTips = ![[self.repository userInfoForKey:kPersistentViewStateKey_ShowRemoteBranchTips] boolValue];\n    _hidesStaleBranchTips = ![[self.repository userInfoForKey:kPersistentViewStateKey_ShowStaleBranchTips] boolValue];\n  }\n  return self;\n}\n\n- (void)_setGraphViewBackgroundColors:(BOOL)previewMode {\n  if (previewMode) {\n    NSBundle* bundle = NSBundle.gitUpKitBundle;\n    NSImage* patternImage = [bundle imageForResource:@\"background_pattern\"];\n    _graphScrollView.backgroundColor = [NSColor colorWithPatternImage:patternImage];\n  } else {\n    _graphScrollView.backgroundColor = NSColor.controlBackgroundColor;\n  }\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _graphView.delegate = self;\n  [self _setGraphViewBackgroundColors:NO];\n  _graphView.showsTagLabels = ![[self.repository userInfoForKey:kPersistentViewStateKey_HideTagLabels] boolValue];\n  _graphView.showsBranchLabels = [[self.repository userInfoForKey:kPersistentViewStateKey_ShowBranchLabels] boolValue];\n\n  _updatePending = YES;\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  if (_updatePending) {\n    [self _reloadMap:NO];\n    _updatePending = NO;\n  }\n}\n\n- (void)repositoryHistoryDidUpdate {\n  if (!_previewHistory) {\n    if (self.viewVisible) {\n      [self _reloadMap:NO];\n    } else {\n      _updatePending = YES;\n    }\n  }\n}\n\n- (void)_reloadMap:(BOOL)force {\n  GINode* focus = nil;\n  GCHistoryCommit* selectedCommit = _graphView.selectedCommit;\n  if (selectedCommit == nil) {\n    focus = _graphView.focusedNode;\n  }\n\n  GIGraphOptions options = kGIGraphOption_PreserveUpstreamRemoteBranchTips;\n  if (_showsVirtualTips) {\n    options |= kGIGraphOption_ShowVirtualTips;\n  }\n  if (_hidesStaleBranchTips && !_forceShowAllTips) {\n    options |= kGIGraphOption_SkipStaleBranchTips;\n  }\n  if (_hidesTagTips && !_forceShowAllTips) {\n    options |= kGIGraphOption_SkipStandaloneTagTips;\n  }\n  if (_hidesRemoteBranchTips && !_forceShowAllTips) {\n    options |= kGIGraphOption_SkipStandaloneRemoteBranchTips;\n  }\n  CFAbsoluteTime time = CFAbsoluteTimeGetCurrent();\n  if (_previewHistory) {\n    if (force || (_graphView.graph.history != _previewHistory)) {\n      _graphView.graph = [[GIGraph alloc] initWithHistory:_previewHistory options:options];\n      [_delegate mapViewControllerDidReloadGraph:self];\n    }\n  } else {\n    _graphView.graph = [[GIGraph alloc] initWithHistory:self.repository.history options:options];\n    [_delegate mapViewControllerDidReloadGraph:self];\n  }\n  XLOG_VERBOSE(@\"Graph regenerated for \\\"%@\\\" in %.3f seconds\", self.repository.repositoryPath, CFAbsoluteTimeGetCurrent() - time);\n\n  if (selectedCommit) {\n    if (_previewHistory) {\n      _graphView.selectedCommit = [_previewHistory historyCommitForCommit:selectedCommit];\n    } else {\n      _graphView.selectedCommit = [self.repository.history historyCommitForCommit:selectedCommit];\n    }\n    [_graphView scrollToSelection];\n  } else if (focus) {\n    [_graphView scrollToNode:focus];\n  } else {\n    [_graphView scrollToTip];\n  }\n}\n\n- (void)setPreviewHistory:(GCHistory*)history {\n  _previewHistory = history;\n  if (_previewHistory) {\n    [self _setGraphViewBackgroundColors:YES];\n  } else {\n    [self _setGraphViewBackgroundColors:NO];\n  }\n  [self _reloadMap:NO];\n  if (_previewHistory) {\n    [_graphView scrollToTip];\n  }\n}\n\n- (GIGraph*)graph {\n  return _graphView.graph;\n}\n\n- (GCHistoryCommit*)selectedCommit {\n  return _graphView.selectedCommit;\n}\n\n- (BOOL)selectCommit:(GCCommit*)commit {\n  GINode* node = [self nodeForCommit:commit];\n  if (node) {\n    _graphView.selectedNode = node;\n    [_graphView scrollToSelection];\n    return YES;\n  }\n  _graphView.selectedNode = nil;\n  return NO;\n}\n\n- (GINode*)nodeForCommit:(GCCommit*)commit {\n  GCHistoryCommit* historyCommit = commit ? [self.repository.history historyCommitForCommit:commit] : nil;\n  return historyCommit ? [_graphView.graph nodeForCommit:historyCommit] : nil;\n}\n\n- (NSPoint)positionInViewForCommit:(GCCommit*)commit {\n  GINode* node = [self nodeForCommit:commit];\n  XLOG_DEBUG_CHECK(node);\n  return node ? [self.view convertPoint:[_graphView positionForNode:node] fromView:_graphView] : NSZeroPoint;\n}\n\n- (void)setShowsVirtualTips:(BOOL)flag {\n  if (flag != _showsVirtualTips) {\n    _showsVirtualTips = flag;\n    [self.repository setUserInfo:@((BOOL)!_showsVirtualTips) forKey:kPersistentViewStateKey_HideVirtualTips];\n    [self _reloadMap:YES];\n  }\n}\n\n- (void)setHidesTagTips:(BOOL)flag {\n  if (flag != _hidesTagTips) {\n    _hidesTagTips = flag;\n    [self.repository setUserInfo:@((BOOL)!_hidesTagTips) forKey:kPersistentViewStateKey_ShowTagTips];\n    [self _reloadMap:YES];\n  }\n}\n\n- (void)setHidesRemoteBranchTips:(BOOL)flag {\n  if (flag != _hidesRemoteBranchTips) {\n    _hidesRemoteBranchTips = flag;\n    [self.repository setUserInfo:@((BOOL)!_hidesRemoteBranchTips) forKey:kPersistentViewStateKey_ShowRemoteBranchTips];\n    [self _reloadMap:YES];\n  }\n}\n\n- (void)setHidesStaleBranchTips:(BOOL)flag {\n  if (flag != _hidesStaleBranchTips) {\n    _hidesStaleBranchTips = flag;\n    [self.repository setUserInfo:@((BOOL)!_hidesStaleBranchTips) forKey:kPersistentViewStateKey_ShowStaleBranchTips];\n    [self _reloadMap:YES];\n  }\n}\n\n- (void)setForceShowAllTips:(BOOL)flag {\n  if (flag != _forceShowAllTips) {\n    _forceShowAllTips = flag;\n    if (_hidesTagTips || _hidesRemoteBranchTips || _hidesStaleBranchTips) {\n      [self _reloadMap:YES];\n    }\n  }\n}\n\n#pragma mark - NSTextViewDelegate\n\n// Intercept Return key and Option-Return key in NSTextView and forward to next responder\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if ((textView == _tagMessageTextView) && (selector == @selector(insertNewline:))) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  if ((textView == _messageTextView) && (selector == @selector(insertNewlineIgnoringFieldEditor:))) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return [super textView:textView doCommandBySelector:selector];\n}\n\n#pragma mark - GIGraphViewDelegate\n\n- (void)graphViewDidChangeSelection:(GIGraphView*)graphView {\n  [_delegate mapViewControllerDidChangeSelection:self];\n}\n\n- (void)graphView:(GIGraphView*)graphView didDoubleClickOnNode:(GINode*)node {\n  if (_previewHistory) {\n    NSBeep();\n  } else if ([self validateUserInterfaceItem:_checkoutMenuItem]) {\n    [self checkoutSelectedCommit:nil];\n  }\n}\n\n- (NSMenu*)graphView:(GIGraphView*)graphView willShowContextualMenuForNode:(GINode*)node {\n  NSMenuItem* item;\n  NSMenu* submenu;\n\n  NSInteger index = [_contextualMenu indexOfItem:_separatorMenuItem];\n  while (_contextualMenu.numberOfItems > (index + 1)) {\n    [_contextualMenu removeItemAtIndex:(index + 1)];\n  }\n\n  if (!_previewHistory) {\n    NSArray* remotes = [self.repository listRemotes:NULL];  // TODO: How to handle errors here?\n\n    for (GCHistoryLocalBranch* branch in node.commit.localBranches) {\n      GCBranch* upstream = branch.upstream;\n      NSMenu* menu = [[NSMenu alloc] init];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Copy Name\", nil) action:@selector(_copyBranchName:) keyEquivalent:@\"\"];\n      item.representedObject = branch;\n      [menu addItem:item];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Rename…\", nil) action:@selector(_renameLocalBranch:) keyEquivalent:@\"\"];\n      item.representedObject = branch;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      submenu = [[NSMenu alloc] init];\n      for (GCHistoryLocalBranch* localBranch in self.repository.history.localBranches) {\n        if (localBranch == branch) {\n          continue;\n        }\n        item = [[NSMenuItem alloc] initWithTitle:localBranch.name action:@selector(_mergeLocalBranch:) keyEquivalent:@\"\"];\n        item.representedObject = @[ branch, localBranch ];\n        [submenu addItem:item];\n      }\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Merge into…\", nil) action:NULL keyEquivalent:@\"\"];\n      item.submenu = submenu;\n      [menu addItem:item];\n\n      submenu = [[NSMenu alloc] init];\n      for (GCHistoryLocalBranch* localBranch in self.repository.history.localBranches) {\n        if (localBranch == branch) {\n          continue;\n        }\n        item = [[NSMenuItem alloc] initWithTitle:localBranch.name action:@selector(_rebaseLocalBranch:) keyEquivalent:@\"\"];\n        item.representedObject = @[ branch, localBranch ];\n        [submenu addItem:item];\n      }\n      for (GCHistoryRemoteBranch* remoteBranch in self.repository.history.remoteBranches) {\n        item = [[NSMenuItem alloc] initWithTitle:remoteBranch.name action:@selector(_rebaseLocalBranch:) keyEquivalent:@\"\"];\n        item.representedObject = @[ branch, remoteBranch ];\n        [submenu addItem:item];\n      }\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Rebase onto\", nil) action:NULL keyEquivalent:@\"\"];\n      item.submenu = submenu;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      BOOL needsSeparator = YES;\n      submenu = [[NSMenu alloc] init];\n      if (self.repository.history.remoteBranches.count) {\n        for (GCHistoryRemoteBranch* remoteBranch in self.repository.history.remoteBranches) {\n          item = [[NSMenuItem alloc] initWithTitle:remoteBranch.name action:@selector(_configureUpstreamForLocalBranch:) keyEquivalent:@\"\"];\n          item.representedObject = @[ branch, remoteBranch ];\n          if ([upstream isEqualToBranch:remoteBranch]) {\n            item.state = NSControlStateValueOn;\n          }\n          [submenu addItem:item];\n        }\n      }\n      if (self.repository.history.localBranches.count) {\n        for (GCHistoryLocalBranch* localBranch in self.repository.history.localBranches) {\n          if (![localBranch isEqualToBranch:branch]) {\n            if (needsSeparator) {\n              [submenu addItem:[NSMenuItem separatorItem]];\n              needsSeparator = NO;\n            }\n            item = [[NSMenuItem alloc] initWithTitle:localBranch.name action:@selector(_configureUpstreamForLocalBranch:) keyEquivalent:@\"\"];\n            item.representedObject = @[ branch, localBranch ];\n            if ([upstream isEqualToBranch:localBranch]) {\n              item.state = NSControlStateValueOn;\n            }\n            [submenu addItem:item];\n          }\n        }\n      }\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Set Upstream to\", nil) action:NULL keyEquivalent:@\"\"];\n      item.submenu = submenu;\n      [menu addItem:item];\n\n      if (upstream) {\n        item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Unset Upstream\", nil) action:@selector(_configureUpstreamForLocalBranch:) keyEquivalent:@\"\"];\n        item.representedObject = branch;\n        [menu addItem:item];\n      }\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      if (upstream) {\n        item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Pull from Upstream\", nil) action:@selector(_pullLocalBranchFromUpstream:) keyEquivalent:@\"\"];\n        item.representedObject = branch;\n        [menu addItem:item];\n\n        item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Push to Upstream\", nil) action:@selector(_pushLocalBranchToUpstream:) keyEquivalent:@\"\"];\n        item.representedObject = branch;\n        [menu addItem:item];\n      }\n\n      submenu = [[NSMenu alloc] init];\n      for (GCRemote* remote in remotes) {\n        item = [[NSMenuItem alloc] initWithTitle:remote.name action:@selector(_pushLocalBranchToRemote:) keyEquivalent:@\"\"];\n        item.representedObject = @[ branch, remote ];\n        [submenu addItem:item];\n      }\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Push to Remote\", nil) action:NULL keyEquivalent:@\"\"];\n      item.submenu = submenu;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      if (![self.repository.history.HEADBranch isEqualToBranch:branch]) {\n        item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Delete\", nil) action:@selector(_deleteLocalBranch:) keyEquivalent:@\"\"];\n        item.representedObject = branch;\n      } else {\n        item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Delete\", nil) action:NULL keyEquivalent:@\"\"];\n      }\n      [menu addItem:item];\n\n      item = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@\"Edit Local Branch \\\"%@\\\"\", nil), branch.name] action:NULL keyEquivalent:@\"\"];\n      item.submenu = menu;\n      [_contextualMenu addItem:item];\n    }\n\n    for (GCHistoryRemoteBranch* branch in node.commit.remoteBranches) {\n      NSMenu* menu = [[NSMenu alloc] init];\n\n      BOOL found = NO;\n      for (GCHistoryLocalBranch* localBranch in self.repository.history.localBranches) {\n        if ([localBranch.name isEqualToString:branch.branchName]) {\n          found = YES;\n          break;\n        }\n      }\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Copy Name\", nil) action:@selector(_copyBranchName:) keyEquivalent:@\"\"];\n      item.representedObject = branch;\n      [menu addItem:item];\n\n      if (!found) {\n        item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Checkout New Tracking Local Branch\", nil) action:@selector(_checkoutRemoteBranch:) keyEquivalent:@\"\"];\n        item.representedObject = branch;\n        [menu addItem:item];\n\n        [menu addItem:[NSMenuItem separatorItem]];\n      }\n\n      submenu = [[NSMenu alloc] init];\n      for (GCHistoryLocalBranch* localBranch in self.repository.history.localBranches) {\n        item = [[NSMenuItem alloc] initWithTitle:localBranch.name action:@selector(_mergeRemoteBranch:) keyEquivalent:@\"\"];\n        item.representedObject = @[ branch, localBranch ];\n        [submenu addItem:item];\n      }\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Merge into…\", nil) action:NULL keyEquivalent:@\"\"];\n      item.submenu = submenu;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Fetch\", nil) action:@selector(_fetchRemoteBranch:) keyEquivalent:@\"\"];\n      item.representedObject = branch;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Delete…\", nil) action:@selector(_deleteRemoteBranch:) keyEquivalent:@\"\"];\n      item.representedObject = branch;\n      [menu addItem:item];\n\n      GCHostingService service;\n      NSURL* url = [self.repository hostingURLForRemoteBranch:branch service:&service error:NULL];  // Ignore errors\n      if (url) {\n        [menu addItem:[NSMenuItem separatorItem]];\n\n        item = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@\"View on %@…\", nil), GCNameFromHostingService(service)] action:@selector(_viewBranchOnHostingService:) keyEquivalent:@\"\"];\n        item.representedObject = url;\n        [menu addItem:item];\n\n        submenu = [[NSMenu alloc] init];\n        for (GCHistoryRemoteBranch* remoteBranch in self.repository.history.remoteBranches) {\n          if (![remoteBranch isEqualToBranch:branch]) {\n            url = [self.repository hostingURLForPullRequestFromRemoteBranch:branch toBranch:remoteBranch service:NULL error:NULL];  // Ignore errors\n            if (url) {\n              item = [[NSMenuItem alloc] initWithTitle:remoteBranch.name action:@selector(_createPullRequestOnHostingService:) keyEquivalent:@\"\"];\n              item.representedObject = url;\n              [submenu addItem:item];\n            }\n          }\n        }\n        switch (service) {\n          case kGCHostingService_Unknown:\n            XLOG_DEBUG_UNREACHABLE();\n            break;\n\n          case kGCHostingService_GitLab:\n            item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Create Merge Request Into…\", nil) action:NULL keyEquivalent:@\"\"];\n            break;\n\n          case kGCHostingService_GitHub:\n          case kGCHostingService_BitBucket:\n            item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Create Pull Request Against…\", nil) action:NULL keyEquivalent:@\"\"];\n            break;\n        }\n        item.submenu = submenu;\n        [menu addItem:item];\n      }\n\n      item = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@\"Edit Remote Branch \\\"%@\\\"\", nil), branch.name] action:NULL keyEquivalent:@\"\"];\n      item.submenu = menu;\n      [_contextualMenu addItem:item];\n    }\n\n    for (GCHistoryTag* tag in node.commit.tags) {\n      NSMenu* menu = [[NSMenu alloc] init];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Rename…\", nil) action:@selector(_renameTag:) keyEquivalent:@\"\"];\n      item.representedObject = tag;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      submenu = [[NSMenu alloc] init];\n      for (GCRemote* remote in remotes) {\n        item = [[NSMenuItem alloc] initWithTitle:remote.name action:@selector(_pushTagToRemote:) keyEquivalent:@\"\"];\n        item.representedObject = @[ tag, remote ];\n        [submenu addItem:item];\n      }\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Push to Remote\", nil) action:NULL keyEquivalent:@\"\"];\n      item.submenu = submenu;\n      [menu addItem:item];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Delete from All Remotes…\", nil) action:@selector(_deleteTagFromAllRemotes:) keyEquivalent:@\"\"];\n      item.representedObject = tag;\n      [menu addItem:item];\n\n      [menu addItem:[NSMenuItem separatorItem]];\n\n      item = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@\"Delete from Repository\", nil) action:@selector(_deleteTag:) keyEquivalent:@\"\"];\n      item.representedObject = tag;\n      [menu addItem:item];\n\n      item = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:NSLocalizedString(@\"Edit Tag \\\"%@\\\"\", nil), tag.name] action:NULL keyEquivalent:@\"\"];\n      item.submenu = menu;\n      [_contextualMenu addItem:item];\n    }\n  }\n\n  if (_contextualMenu.numberOfItems > (index + 1)) {\n    _separatorMenuItem.hidden = NO;\n  } else {\n    _separatorMenuItem.hidden = YES;\n  }\n\n  return _contextualMenu;\n}\n\n#pragma mark - Interface\n\n- (void)keyDown:(NSEvent*)event {\n  BOOL handled = NO;\n  if (_graphView.selectedNode && ![event isARepeat]) {\n    NSString* characters = event.charactersIgnoringModifiers;\n    if ([characters isEqualToString:@\".\"]) {\n      [_graphView showContextualMenuForSelectedNode];\n      handled = YES;\n    } else {\n      if ((characters.length == 1) && ([characters characterAtIndex:0] == 0x7F)) {  // Delete\n        unichar character = 0x08;\n        characters = [NSString stringWithCharacters:&character length:1];  // Backspace\n      }\n      NSUInteger modifiers = event.modifierFlags & (NSEventModifierFlagCommand | NSEventModifierFlagOption | NSEventModifierFlagControl);\n      for (NSMenuItem* item in _contextualMenu.itemArray) {\n        if ([item.keyEquivalent isEqualToString:characters] && (item.keyEquivalentModifierMask == modifiers) && [self validateUserInterfaceItem:item]) {\n          if ([NSApp sendAction:item.action to:self from:item]) {\n            handled = YES;\n            break;\n          } else {\n            XLOG_DEBUG_UNREACHABLE();\n          }\n        }\n      }\n    }\n  }\n  if (!handled) {\n    [self.nextResponder tryToPerform:@selector(keyDown:) with:event];\n  }\n}\n\n- (void)_promptForCommitMessage:(NSString*)message withTitle:(NSString*)title button:(NSString*)button block:(void (^)(NSString* message))block {\n  _messageTextField.stringValue = title;\n  _messageTextView.string = message;\n  [_messageTextView selectAll:nil];\n  _messageButton.title = button;\n  [self.windowController runModalView:_messageView\n            withInitialFirstResponder:_messageTextView\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* editedMessage = [_messageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                        if (editedMessage.length) {\n                          block(editedMessage);\n                        } else {\n                          NSBeep();\n                        }\n                      }\n                      _messageTextView.string = @\"\";\n                      [_messageTextView.undoManager removeAllActions];\n                    }];\n}\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  BOOL editingDisabled = _previewHistory || self.repository.hasBackgroundOperationInProgress;\n\n  if ((item.action == @selector(fetchAllRemoteBranches:)) || (item.action == @selector(fetchAllRemoteTags:)) || (item.action == @selector(fetchAndPruneAllRemoteTags:)) || (item.action == @selector(pushAllLocalBranches:)) || (item.action == @selector(pushAllTags:))) {\n    return !_previewHistory && !self.repository.hasBackgroundOperationInProgress;\n  }\n\n  if (item.action == @selector(toggleVirtualTips:)) {\n    [(NSMenuItem*)item setState:(_showsVirtualTips ? NSControlStateValueOn : NSControlStateValueOff)];\n    return YES;\n  }\n  if (item.action == @selector(toggleTagTips:)) {\n    [(NSMenuItem*)item setState:(_hidesTagTips && !_forceShowAllTips ? NSControlStateValueOff : NSControlStateValueOn)];\n    return !_forceShowAllTips;\n  }\n  if (item.action == @selector(toggleRemoteBranchTips:)) {\n    [(NSMenuItem*)item setState:(_hidesRemoteBranchTips && !_forceShowAllTips ? NSControlStateValueOff : NSControlStateValueOn)];\n    return !_forceShowAllTips;\n  }\n  if (item.action == @selector(toggleStaleBranchTips:)) {\n    [(NSMenuItem*)item setState:(_hidesStaleBranchTips && !_forceShowAllTips ? NSControlStateValueOff : NSControlStateValueOn)];\n    return !_forceShowAllTips;\n  }\n\n  if (item.action == @selector(toggleTagLabels:)) {\n    [(NSMenuItem*)item setState:(_graphView.showsTagLabels ? NSControlStateValueOn : NSControlStateValueOff)];\n    return YES;\n  }\n  if (item.action == @selector(toggleBranchLabels:)) {\n    [(NSMenuItem*)item setState:(_graphView.showsBranchLabels ? NSControlStateValueOn : NSControlStateValueOff)];\n    return YES;\n  }\n\n  if (item.action == @selector(pullCurrentBranch:)) {\n    return !editingDisabled && self.repository.history.HEADBranch.upstream;\n  }\n  if (item.action == @selector(pushCurrentBranch:)) {\n    return !editingDisabled && self.repository.history.HEADBranch;\n  }\n\n  GCHistoryCommit* commit = _graphView.selectedCommit;\n  if (commit == nil) {\n    XLOG_DEBUG_UNREACHABLE();\n    return NO;\n  }\n\n  if ((item.action == @selector(quickViewSelectedCommit:)) || (item.action == @selector(externalDiffSelectedCommit:))) {\n    return YES;\n  }\n  if (item.action == @selector(viewSelectedCommitInHostingService:)) {\n    GCHostingService service;\n    NSURL* url = [self.repository hostingURLForCommit:commit service:&service error:NULL];  // Ignore errors\n    if (url == nil) {\n      service = kGCHostingService_Unknown;\n    }\n    switch (service) {\n      case kGCHostingService_Unknown:\n        [(NSMenuItem*)item setTitle:NSLocalizedString(@\"View on Hosting Service…\", nil)];\n        break;\n      default:\n        [(NSMenuItem*)item setTitle:[NSString stringWithFormat:NSLocalizedString(@\"View on %@…\", nil), GCNameFromHostingService(service)]];\n        break;\n    }\n    [(NSMenuItem*)item setRepresentedObject:url];\n    return (service != kGCHostingService_Unknown);\n  }\n  if ((item.action == @selector(diffSelectedCommitWithHEAD:)) || (item.action == @selector(externalDiffWithHEAD:))) {\n    GCHistoryCommit* headCommit = _graphView.lastSelectedNode.commit ?: self.repository.history.HEADCommit;\n    return ![headCommit isEqualToCommit:commit];\n  }\n\n  if (editingDisabled) {\n    return NO;\n  }\n\n  if (item.action == @selector(checkoutSelectedCommit:)) {\n    id target = [self.repository smartCheckoutTarget:commit];\n    if ([target isKindOfClass:[GCLocalBranch class]]) {\n      _checkoutMenuItem.title = [NSString stringWithFormat:NSLocalizedString(@\"Checkout \\\"%@\\\" Branch\", nil), [target name]];\n      return ![self.repository.history.HEADBranch isEqualToBranch:target];\n    } else {\n      _checkoutMenuItem.title = NSLocalizedString(@\"Checkout Detached HEAD\", nil);\n      return ![self.repository.history.HEADCommit isEqualToCommit:target];\n    }\n  }\n\n  BOOL onAnyLocalBranch = [self.repository.history isCommitOnAnyLocalBranch:commit];\n  if (item.action == @selector(deleteSelectedCommit:)) {\n    return onAnyLocalBranch || commit.remoteBranches.count;\n  }\n  if (item.action == @selector(editSelectedCommitMessage:)) {\n    return onAnyLocalBranch;\n  }\n  if ((item.action == @selector(rewriteSelectedCommit:)) || (item.action == @selector(splitSelectedCommit:)) || (item.action == @selector(fixupSelectedCommit:)) || (item.action == @selector(squashSelectedCommit:))) {\n    return onAnyLocalBranch && (commit.parents.count == 1);\n  }\n  if (item.action == @selector(swapSelectedCommitWithParent:)) {\n    return onAnyLocalBranch && (commit.parents.count == 1);  // TODO: If there is more than parent, we don't know which one to swap with\n  }\n  if (item.action == @selector(swapSelectedCommitWithChild:)) {\n    return onAnyLocalBranch && (commit.children.count == 1);  // TODO: If there is more than child, we don't know which one to swap with\n  }\n  if ((item.action == @selector(cherryPickSelectedCommit:)) || (item.action == @selector(mergeSelectedCommit:)) || (item.action == @selector(rebaseOntoSelectedCommit:))) {\n    return !self.repository.history.HEADDetached && ![self.repository.history.HEADCommit isEqualToCommit:commit];\n  }\n  if (item.action == @selector(revertSelectedCommit:)) {\n    return !self.repository.history.HEADDetached;\n  }\n  if ((item.action == @selector(setBranchTipToSelectedCommit:)) || (item.action == @selector(moveBranchTipToSelectedCommit:))) {\n    return !self.repository.history.HEADDetached && ![self.repository.history.HEADCommit isEqualToCommit:commit];\n  }\n\n  return [self respondsToSelector:item.action];\n}\n\n#pragma mark - Public Actions\n\n- (IBAction)toggleTagLabels:(id)sender {\n  BOOL show = !_graphView.showsTagLabels;\n  _graphView.showsTagLabels = show;\n  [self.repository setUserInfo:@((BOOL)!show) forKey:kPersistentViewStateKey_HideTagLabels];\n}\n\n- (IBAction)toggleBranchLabels:(id)sender {\n  BOOL show = !_graphView.showsBranchLabels;\n  _graphView.showsBranchLabels = show;\n  [self.repository setUserInfo:@(show) forKey:kPersistentViewStateKey_ShowBranchLabels];\n}\n\n- (IBAction)toggleVirtualTips:(id)sender {\n  self.showsVirtualTips = !_showsVirtualTips;\n}\n\n- (IBAction)toggleTagTips:(id)sender {\n  self.hidesTagTips = !_hidesTagTips;\n}\n\n- (IBAction)toggleRemoteBranchTips:(id)sender {\n  self.hidesRemoteBranchTips = !_hidesRemoteBranchTips;\n}\n\n- (IBAction)toggleStaleBranchTips:(id)sender {\n  self.hidesStaleBranchTips = !_hidesStaleBranchTips;\n}\n\n- (IBAction)fetchAllRemoteBranches:(id)sender {\n  [self fetchDefaultRemoteBranchesFromAllRemotes];\n}\n\n- (IBAction)fetchAllRemoteTags:(id)sender {\n  [self fetchAllTagsFromAllRemotes:NO];\n}\n\n- (IBAction)fetchAndPruneAllRemoteTags:(id)sender {\n  [self fetchAllTagsFromAllRemotes:YES];\n}\n\n- (IBAction)pushAllLocalBranches:(id)sender {\n  [self pushAllLocalBranchesToAllRemotes];\n}\n\n- (IBAction)pushAllTags:(id)sender {\n  [self pushAllTagsToAllRemotes];\n}\n\n- (IBAction)pullCurrentBranch:(id)sender {\n  GCHistoryLocalBranch* branch = self.repository.history.HEADBranch;\n  [self pullLocalBranchFromUpstream:branch];\n}\n\n- (IBAction)pushCurrentBranch:(id)sender {\n  GCHistoryLocalBranch* branch = self.repository.history.HEADBranch;\n  if (branch.upstream) {\n    [self pushLocalBranchToUpstream:branch];\n  } else {\n    NSError* error;\n    NSArray* remotes = [self.repository listRemotes:&error];\n    if (remotes) {\n      GCRemote* bestRemote = remotes.firstObject;\n      for (GCRemote* remote in remotes) {\n        if ([remote.name isEqualToString:@\"origin\"]) {\n          bestRemote = remote;\n          break;\n        }\n      }\n      if (bestRemote) {\n        [self pushLocalBranch:branch toRemote:bestRemote];\n      }\n    } else {\n      [self presentError:error];\n    }\n  }\n}\n\n#pragma mark - Contextual Menu Actions\n\n- (IBAction)quickViewSelectedCommit:(id)sender {\n  [_delegate mapViewController:self quickViewCommit:_graphView.selectedCommit];\n}\n\n- (IBAction)externalDiffSelectedCommit:(id)sender {\n  [self launchDiffToolWithCommit:_graphView.selectedCommit otherCommit:_graphView.selectedCommit.parents.firstObject];  // Use main-line\n}\n\n- (IBAction)viewSelectedCommitInHostingService:(id)sender {\n  NSURL* url = [(NSMenuItem*)sender representedObject];\n  [[NSWorkspace sharedWorkspace] openURL:url];\n}\n\n- (void)_diffSelectedCommitWithHEAD:(void (^)(GCHistoryCommit* commit, GCHistoryCommit* otherCommit))handler {\n  GCHistoryCommit* headCommit = _graphView.lastSelectedNode.commit ?: self.repository.history.HEADCommit;\n  GCHistoryCommit* selectedCommit = _graphView.selectedCommit;\n  switch ([selectedCommit.date compare:headCommit.date]) {\n    case NSOrderedAscending:  // Selected commit is older than HEAD commit\n      handler(headCommit, selectedCommit);\n      break;\n\n    case NSOrderedDescending:  // Selected commit is newer than HEAD commit\n      handler(selectedCommit, headCommit);\n      break;\n\n    case NSOrderedSame: {  // Selected and HEAD commits have the exact same date\n      NSError* error;\n      GCCommitRelation relation = [self.repository findRelationOfCommit:selectedCommit relativeToCommit:headCommit error:&error];\n      switch (relation) {\n        case kGCCommitRelation_Unknown:\n          [self presentError:error];\n          break;\n\n        case kGCCommitRelation_Identical:  // Selected and HEAD commits are the same\n          XLOG_DEBUG_UNREACHABLE();\n          break;\n\n        case kGCCommitRelation_Ancestor:  // Selected commit is an ancestor of HEAD commit\n          handler(headCommit, selectedCommit);\n          break;\n\n        case kGCCommitRelation_Descendant:  // Anything else\n        case kGCCommitRelation_Cousin:\n        case kGCCommitRelation_Unrelated:\n          handler(selectedCommit, headCommit);\n          break;\n      }\n      break;\n    }\n  }\n}\n\n- (IBAction)diffSelectedCommitWithHEAD:(id)sender {\n  [self _diffSelectedCommitWithHEAD:^(GCHistoryCommit* commit, GCHistoryCommit* otherCommit) {\n    [_delegate mapViewController:self diffCommit:commit withOtherCommit:otherCommit];\n  }];\n}\n\n- (IBAction)externalDiffWithHEAD:(id)sender {\n  [self _diffSelectedCommitWithHEAD:^(GCHistoryCommit* commit, GCHistoryCommit* otherCommit) {\n    [self launchDiffToolWithCommit:commit otherCommit:otherCommit];\n  }];\n}\n\n- (IBAction)checkoutSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = _graphView.selectedCommit;\n  [self.repository smartCheckoutCommit:commit window:self.view.window];\n}\n\n- (IBAction)createTagAtSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = _graphView.selectedCommit;\n  _tagNameTextField.stringValue = @\"\";\n  _tagMessageTextView.string = @\"\";\n  [self.windowController runModalView:_tagView\n            withInitialFirstResponder:_tagNameTextField\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* name = _tagNameTextField.stringValue;\n                        NSString* message = [_tagMessageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                        if (name.length) {\n                          [self createTagAtCommit:commit withName:name message:message];\n                        } else {\n                          NSBeep();\n                        }\n                      }\n                      _tagMessageTextView.string = @\"\";\n                      [_tagMessageTextView.undoManager removeAllActions];\n                    }];\n}\n\n- (IBAction)editSelectedCommitMessage:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self editCommitMessage:commit];\n}\n\n- (IBAction)copySelectedCommitMessage:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self copyCommitMessage:commit];\n}\n\n- (IBAction)rewriteSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    [_delegate mapViewController:self rewriteCommit:commit];\n  }\n}\n\n- (IBAction)splitSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  if ([self checkCleanRepositoryForOperationOnCommit:commit]) {\n    [_delegate mapViewController:self splitCommit:commit];\n  }\n}\n\n- (IBAction)revertSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self revertCommit:commit againstLocalBranch:self.repository.history.HEADBranch];\n}\n\n- (GCHistoryLocalBranch*)branchToDeleteForSelectedCommit:(GCHistoryCommit*)commit {\n  NSArray<GCHistoryLocalBranch*>* localBranches = commit.localBranches;\n  NSString* headBranchName = self.repository.history.HEADBranch.name;\n\n  NSInteger index = [localBranches indexOfObjectPassingTest:^BOOL(GCHistoryLocalBranch* _Nonnull obj, NSUInteger idx, BOOL* _Nonnull stop) {\n    return ![headBranchName isEqualToString:obj.name];\n  }];\n\n  if (index == NSNotFound) {\n    return localBranches.firstObject;\n  }\n\n  return localBranches[index];\n}\n\n- (IBAction)deleteSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = _graphView.selectedCommit;\n  GCHistoryLocalBranch* localBranch = [self branchToDeleteForSelectedCommit:commit];\n  if (localBranch) {\n    NSAlert* alert = [[NSAlert alloc] init];\n    alert.messageText = NSLocalizedString(@\"Do you want to delete the commit or the local branch?\", nil);\n    alert.informativeText = [NSString stringWithFormat:NSLocalizedString(@\"The selected commit is also the tip of the local branch \\\"%@\\\".\", nil), localBranch.name];\n    [alert addButtonWithTitle:NSLocalizedString(@\"Delete Local Branch\", nil)];\n    [alert addButtonWithTitle:NSLocalizedString(@\"Delete Commit\", nil)];\n    [alert addButtonWithTitle:NSLocalizedString(@\"Cancel\", nil)];\n    alert.type = kGIAlertType_Note;\n    [self presentAlert:alert\n        completionHandler:^(NSInteger returnCode) {\n          if (returnCode == NSAlertFirstButtonReturn) {\n            [self deleteLocalBranch:localBranch];\n          } else if (returnCode == NSAlertSecondButtonReturn) {\n            [self deleteCommit:commit];\n          }\n        }];\n  } else {\n    GCHistoryRemoteBranch* remoteBranch = commit.remoteBranches.firstObject;\n    if (remoteBranch && ![self.repository.history isCommitOnAnyLocalBranch:commit]) {\n      [self deleteRemoteBranch:remoteBranch];\n    } else {\n      [self deleteCommit:commit];\n    }\n  }\n}\n\n- (IBAction)fixupSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self fixupCommitWithParent:commit];\n}\n\n- (IBAction)squashSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self squashCommitWithParent:commit];\n}\n\n- (IBAction)swapSelectedCommitWithChild:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self swapCommitWithChild:commit];\n}\n\n- (IBAction)swapSelectedCommitWithParent:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self swapCommitWithParent:commit];\n}\n\n- (IBAction)cherryPickSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self cherryPickCommit:commit againstLocalBranch:self.repository.history.HEADBranch];\n}\n\n- (IBAction)mergeSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  GCBranch* branch = commit.localBranches.firstObject;  // TODO: What if there are multiple local branches?\n  if (branch == nil) {\n    branch = commit.remoteBranches.firstObject;  // TODO: What if there are multiple remote branches?\n  }\n  [self smartMergeCommitOrBranch:(branch ? branch : commit) intoLocalBranch:self.repository.history.HEADBranch withUserMessage:nil];\n}\n\n- (IBAction)rebaseOntoSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self smartRebaseLocalBranch:self.repository.history.HEADBranch ontoCommit:commit withUserMessage:nil];\n}\n\n- (IBAction)setBranchTipToSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self setTipCommit:commit forLocalBranch:self.repository.history.HEADBranch];\n}\n\n- (IBAction)moveBranchTipToSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  [self moveTipCommit:commit forLocalBranch:self.repository.history.HEADBranch];\n}\n\n- (IBAction)createBranchAtSelectedCommit:(id)sender {\n  GCHistoryCommit* commit = self.graphView.selectedNode.commit;\n  _createBranchTextField.stringValue = @\"\";\n  _createBranchButton.state = NSControlStateValueOn;\n  [self.windowController runModalView:_createBranchView\n            withInitialFirstResponder:_createBranchTextField\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* name = _createBranchTextField.stringValue;\n                        if (name.length) {\n                          [self createLocalBranchAtCommit:commit withName:name checkOut:_createBranchButton.state];\n                        } else {\n                          NSBeep();\n                        }\n                      }\n                    }];\n}\n\n#pragma mark - Internal Actions\n\n- (IBAction)_renameTag:(id)sender {\n  GCHistoryTag* tag = [(NSMenuItem*)sender representedObject];\n  _renameTagTextField.stringValue = tag.name;\n  [self.windowController runModalView:_renameTagView\n            withInitialFirstResponder:_renameTagTextField\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* name = _renameTagTextField.stringValue;\n                        if (name.length && ![name isEqualToString:tag.name]) {\n                          [self setName:name forTag:tag];\n                        } else {\n                          NSBeep();\n                        }\n                      }\n                    }];\n}\n\n- (IBAction)_deleteTag:(id)sender {\n  GCHistoryTag* tag = [(NSMenuItem*)sender representedObject];\n  [self deleteTag:tag];\n}\n\n- (IBAction)_deleteTagFromAllRemotes:(id)sender {\n  GCHistoryTag* tag = [(NSMenuItem*)sender representedObject];\n  [self deleteTagFromAllRemotes:tag];\n}\n\n- (IBAction)_pushTagToRemote:(id)sender {\n  GCHistoryTag* tag = [[(NSMenuItem*)sender representedObject] objectAtIndex:0];\n  GCRemote* remote = [[(NSMenuItem*)sender representedObject] objectAtIndex:1];\n  [self pushTag:tag toRemote:remote];\n}\n\n- (IBAction)_checkoutRemoteBranch:(id)sender {\n  GCHistoryRemoteBranch* branch = [(NSMenuItem*)sender representedObject];\n  [self.repository checkoutRemoteBranch:branch window:self.view.window];\n}\n\n- (IBAction)_fetchRemoteBranch:(id)sender {\n  GCHistoryRemoteBranch* branch = [(NSMenuItem*)sender representedObject];\n  [self fetchRemoteBranch:branch];\n}\n\n- (IBAction)_deleteRemoteBranch:(id)sender {\n  GCHistoryRemoteBranch* branch = [(NSMenuItem*)sender representedObject];\n  [self deleteRemoteBranch:branch];\n}\n\n- (IBAction)_viewBranchOnHostingService:(id)sender {\n  NSURL* url = [(NSMenuItem*)sender representedObject];\n  [[NSWorkspace sharedWorkspace] openURL:url];\n}\n\n- (IBAction)_createPullRequestOnHostingService:(id)sender {\n  NSURL* url = [(NSMenuItem*)sender representedObject];\n  [[NSWorkspace sharedWorkspace] openURL:url];\n}\n\n- (IBAction)_pullLocalBranchFromUpstream:(id)sender {\n  GCHistoryLocalBranch* branch = [(NSMenuItem*)sender representedObject];\n  [self pullLocalBranchFromUpstream:branch];\n}\n\n- (IBAction)_pushLocalBranchToUpstream:(id)sender {\n  GCHistoryLocalBranch* branch = [(NSMenuItem*)sender representedObject];\n  [self pushLocalBranchToUpstream:branch];\n}\n\n- (IBAction)_pushLocalBranchToRemote:(id)sender {\n  GCHistoryLocalBranch* branch = [[(NSMenuItem*)sender representedObject] objectAtIndex:0];\n  GCRemote* remote = [[(NSMenuItem*)sender representedObject] objectAtIndex:1];\n  [self pushLocalBranch:branch toRemote:remote];\n}\n\n- (IBAction)_renameLocalBranch:(id)sender {\n  GCHistoryLocalBranch* branch = [(NSMenuItem*)sender representedObject];\n  _renameBranchTextField.stringValue = branch.name;\n  [self.windowController runModalView:_renameBranchView\n            withInitialFirstResponder:_renameBranchTextField\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* name = _renameBranchTextField.stringValue;\n                        if (name.length && ![name isEqualToString:branch.name]) {\n                          [self setName:_renameBranchTextField.stringValue forLocalBranch:branch];\n                        } else {\n                          NSBeep();\n                        }\n                      }\n                    }];\n}\n\n- (IBAction)_copyBranchName:(id)sender {\n  GCBranch* branch = [(NSMenuItem*)sender representedObject];\n  NSPasteboard* pasteboard = NSPasteboard.generalPasteboard;\n  [pasteboard clearContents];\n  [pasteboard setString:branch.name forType:NSPasteboardTypeString];\n}\n\n- (IBAction)_deleteLocalBranch:(id)sender {\n  GCHistoryLocalBranch* branch = [(NSMenuItem*)sender representedObject];\n  [self deleteLocalBranch:branch];\n}\n\n- (IBAction)_configureUpstreamForLocalBranch:(id)sender {\n  GCHistoryLocalBranch* localBranch;\n  GCHistoryRemoteBranch* remoteBranch;\n  id representedObject = [(NSMenuItem*)sender representedObject];\n  if ([representedObject isKindOfClass:[NSArray class]]) {\n    localBranch = [representedObject objectAtIndex:0];\n    remoteBranch = [representedObject objectAtIndex:1];\n  } else {\n    localBranch = representedObject;\n    remoteBranch = nil;\n  }\n  [self setUpstream:remoteBranch forLocalBranch:localBranch];\n}\n\n- (IBAction)_mergeLocalBranch:(id)sender {\n  GCHistoryLocalBranch* mergeBranch = [[(NSMenuItem*)sender representedObject] objectAtIndex:0];\n  GCHistoryLocalBranch* intoBranch = [[(NSMenuItem*)sender representedObject] objectAtIndex:1];\n  [self smartMergeCommitOrBranch:mergeBranch intoLocalBranch:intoBranch withUserMessage:nil];\n}\n\n- (IBAction)_rebaseLocalBranch:(id)sender {\n  GCHistoryLocalBranch* rebaseBranch = [[(NSMenuItem*)sender representedObject] objectAtIndex:0];\n  GCHistoryLocalBranch* ontoBranch = [[(NSMenuItem*)sender representedObject] objectAtIndex:1];  // Could be GCHistoryRemoteBranch too\n  [self smartRebaseLocalBranch:rebaseBranch ontoCommit:ontoBranch.tipCommit withUserMessage:nil];\n}\n\n- (IBAction)_mergeRemoteBranch:(id)sender {\n  GCHistoryLocalBranch* mergeBranch = [[(NSMenuItem*)sender representedObject] objectAtIndex:0];\n  GCHistoryLocalBranch* intoBranch = [[(NSMenuItem*)sender representedObject] objectAtIndex:1];\n  [self smartMergeCommitOrBranch:mergeBranch intoLocalBranch:intoBranch withUserMessage:nil];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIQuickViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@class GCHistoryCommit;\n\n@interface GIQuickViewController : GIViewController\n@property(nonatomic, strong) GCHistoryCommit* commit;\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIQuickViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIQuickViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n#import \"GIViewController+Utilities.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GIQuickViewController () <GIDiffContentsViewControllerDelegate, GIDiffFilesViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet NSView* infoView;\n@property(nonatomic, weak) IBOutlet NSScrollView* infoScrollView;\n@property(nonatomic, weak) IBOutlet NSTextField* sha1TextField;\n@property(nonatomic, weak) IBOutlet NSTextField* messageTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* authorTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* authorDateTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* committerTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* committerDateTextField;\n@property(nonatomic, weak) IBOutlet NSView* contentsView;\n@property(nonatomic, weak) IBOutlet NSView* filesView;\n@property(nonatomic, weak) IBOutlet NSBox* separatorBox;\n@property(nonatomic, weak) IBOutlet GIDualSplitView* mainSplitView;\n@property(nonatomic, weak) IBOutlet GIDualSplitView* infoSplitView;\n@end\n\n@implementation GIQuickViewController {\n  GIDiffContentsViewController* _diffContentsViewController;\n  GIDiffFilesViewController* _diffFilesViewController;\n  NSDateFormatter* _dateFormatter;\n  BOOL _disableFeedbackLoop;\n  GCDiff* _diff;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n  }\n  return self;\n}\n\n- (void)dealloc {\n  [[NSNotificationCenter defaultCenter] removeObserver:self name:NSSplitViewDidResizeSubviewsNotification object:nil];\n}\n\n- (void)_recomputeInfoViewFrame {\n  NSRect frame = _infoView.frame;\n  NSSize size = [(NSTextFieldCell*)_messageTextField.cell cellSizeForBounds:NSMakeRect(0, 0, _messageTextField.frame.size.width, HUGE_VALF)];\n  CGFloat delta = ceil(size.height) - _messageTextField.frame.size.height;\n  _infoView.frame = NSMakeRect(0, 0, frame.size.width, frame.size.height + delta);\n}\n\n- (void)_splitViewDidResizeSubviews:(NSNotification*)notification {\n  if (!self.liveResizing) {\n    [self _recomputeInfoViewFrame];\n  }\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No differences\", nil);\n  [_contentsView replaceWithView:_diffContentsViewController.view];\n\n  _diffFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _diffFilesViewController.delegate = self;\n  [_filesView replaceWithView:_diffFilesViewController.view];\n\n  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_splitViewDidResizeSubviews:) name:NSSplitViewDidResizeSubviewsNotification object:_mainSplitView];\n  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_splitViewDidResizeSubviews:) name:NSSplitViewDidResizeSubviewsNotification object:_infoSplitView];\n}\n\n- (void)viewDidFinishLiveResize {\n  [self _recomputeInfoViewFrame];\n}\n\nstatic inline void _AppendStringWithoutTrailingWhiteSpace(NSMutableString* string, NSString* append, NSRange range) {\n  NSCharacterSet* set = [NSCharacterSet whitespaceCharacterSet];\n  while (range.length) {\n    if (![set characterIsMember:[append characterAtIndex:(range.location + range.length - 1)]]) {\n      break;\n    }\n    range.length -= 1;\n  }\n  [string appendString:[append substringWithRange:range]];\n}\n\nstatic NSString* _CleanUpCommitMessage(NSString* message) {\n  NSMutableString* string = [[NSMutableString alloc] init];\n  NSRange range = NSMakeRange(0, message.length);\n  NSCharacterSet* set = [NSCharacterSet alphanumericCharacterSet];\n  while (range.length > 0) {\n    NSRange subrange = [message rangeOfString:@\"\\n\" options:0 range:range];\n    if (subrange.location == NSNotFound) {\n      _AppendStringWithoutTrailingWhiteSpace(string, message, range);\n      break;\n    }\n    NSUInteger count = 0;\n    while ((subrange.location + count < range.location + range.length) && ([message characterAtIndex:(subrange.location + count)] == '\\n')) {\n      ++count;\n    }\n\n    _AppendStringWithoutTrailingWhiteSpace(string, message, NSMakeRange(range.location, subrange.location - range.location));\n    if (count > 1) {\n      [string appendString:@\"\\n\\n\"];\n    } else if (range.location + range.length - subrange.location - count > 0) {\n      unichar nextCharacter = [message characterAtIndex:(subrange.location + 1)];\n      if ([set characterIsMember:nextCharacter]) {\n        [string appendString:@\" \"];\n      } else {\n        [string appendString:@\"\\n\"];\n      }\n    }\n\n    range = NSMakeRange(subrange.location + count, range.location + range.length - subrange.location - count);\n  }\n  return string;\n}\n\n- (void)setCommit:(GCHistoryCommit*)commit {\n  if (commit != _commit) {\n    _commit = commit;\n    if (_commit) {\n      _messageTextField.stringValue = _CleanUpCommitMessage(_commit.message);\n      [self _recomputeInfoViewFrame];\n\n      _sha1TextField.stringValue = _commit.SHA1;\n\n      _authorDateTextField.stringValue = [NSString stringWithFormat:@\"%@ (%@)\", [_dateFormatter stringFromDate:_commit.authorDate], GIFormatDateRelativelyFromNow(_commit.authorDate, NO)];\n      _committerDateTextField.stringValue = [NSString stringWithFormat:@\"%@ (%@)\", [_dateFormatter stringFromDate:_commit.committerDate], GIFormatDateRelativelyFromNow(_commit.committerDate, NO)];\n\n      CGFloat authorFontSize = _authorTextField.font.pointSize;\n      NSMutableAttributedString* author = [[NSMutableAttributedString alloc] init];\n      [author beginEditing];\n      [author appendString:_commit.authorName withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:authorFontSize]}];\n      [author appendString:@\" \" withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:authorFontSize]}];\n      [author appendString:_commit.authorEmail withAttributes:nil];\n      [author endEditing];\n      _authorTextField.attributedStringValue = author;\n\n      CGFloat committerFontSize = _committerTextField.font.pointSize;\n      NSMutableAttributedString* committer = [[NSMutableAttributedString alloc] init];\n      [committer beginEditing];\n      [committer appendString:_commit.committerName withAttributes:@{NSFontAttributeName : [NSFont boldSystemFontOfSize:committerFontSize]}];\n      [committer appendString:@\" \" withAttributes:@{NSFontAttributeName : [NSFont systemFontOfSize:committerFontSize]}];\n      [committer appendString:_commit.committerEmail withAttributes:nil];\n      [committer endEditing];\n      _committerTextField.attributedStringValue = committer;\n\n      NSError* error;\n      _diff = [self.repository diffCommit:_commit\n                               withCommit:_commit.parents.firstObject  // Use main line\n                              filePattern:nil\n                                  options:(self.repository.diffBaseOptions | kGCDiffOption_FindRenames)\n                        maxInterHunkLines:self.repository.diffMaxInterHunkLines\n                          maxContextLines:self.repository.diffMaxContextLines\n                                    error:&error];\n      if (!_diff) {\n        [self presentError:error];\n      }\n      [_diffContentsViewController setDeltas:_diff.deltas usingConflicts:nil];\n      [_diffFilesViewController setDeltas:_diff.deltas usingConflicts:nil];\n    } else {\n      _sha1TextField.stringValue = @\"\";\n      _authorTextField.stringValue = @\"\";\n      _authorDateTextField.stringValue = @\"\";\n      _committerTextField.stringValue = @\"\";\n      _committerDateTextField.stringValue = @\"\";\n      _messageTextField.stringValue = @\"\";\n\n      _diff = nil;\n      [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n      [_diffFilesViewController setDeltas:nil usingConflicts:nil];\n    }\n  }\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)diffContentsViewControllerDidScroll:(GIDiffContentsViewController*)scroll {\n  if (!_disableFeedbackLoop) {\n    _diffFilesViewController.selectedDelta = [_diffContentsViewController topVisibleDelta:NULL];\n  }\n}\n\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  XLOG_DEBUG_CHECK(conflict == nil);\n  NSMenu* menu = [self contextualMenuForDelta:delta withConflict:nil allowOpen:NO];\n\n  [menu addItem:[NSMenuItem separatorItem]];\n\n  if (GC_FILE_MODE_IS_FILE(delta.newFile.mode)) {\n    [menu addItemWithTitle:NSLocalizedString(@\"Restore File to This Version…\", nil)\n                     block:^{\n                       [self restoreFile:delta.canonicalPath toCommit:_commit];\n                     }];\n  } else {\n    [menu addItemWithTitle:NSLocalizedString(@\"Restore File to This Version…\", nil) block:NULL];\n  }\n\n  if (GC_FILE_MODE_IS_FILE(delta.oldFile.mode) || GC_FILE_MODE_IS_FILE(delta.newFile.mode)) {\n    [menu addItemWithTitle:NSLocalizedString(@\"Restore File to Previous Version…\", nil)\n                     block:^{\n                       [self restoreFile:delta.canonicalPath toBeforeCommit:_commit];\n                     }];\n  } else {\n    [menu addItemWithTitle:NSLocalizedString(@\"Restore File to Previous Version…\", nil) block:NULL];\n  }\n\n  return menu;\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller willSelectDelta:(GCDiffDelta*)delta {\n  _disableFeedbackLoop = YES;\n  [_diffContentsViewController setTopVisibleDelta:delta offset:0];\n  _disableFeedbackLoop = NO;\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  return [self handleKeyDownEvent:event forSelectedDeltas:_diffFilesViewController.selectedDeltas withConflicts:nil allowOpen:NO];\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIRemappingExplanationPopover.h",
    "content": "//\n//  GIRemappingExplanationViewController.h\n//  GitUpKit\n//\n//  Created by Lucas Derraugh on 3/3/24.\n//\n\n#import <AppKit/AppKit.h>\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface GIRemappingExplanationPopover : NSObject\n\n+ (void)showIfNecessaryRelativeToRect:(NSRect)positioningRect ofView:(NSView*)positioningView preferredEdge:(NSRectEdge)preferredEdge;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "GitUpKit/Views/GIRemappingExplanationPopover.m",
    "content": "//\n//  GIRemappingExplanationPopover.m\n//  GitUpKit\n//\n//  Created by Lucas Derraugh on 3/3/24.\n//\n\n#import \"GIRemappingExplanationPopover.h\"\n\nstatic NSString* const GIRemappingExplanationShownUserDefaultKey = @\"GIRemappingExplanationShownUserDefaultKey\";\n\n@interface GIRemappingExplanationViewController : NSViewController\n@end\n\n@interface GIRemappingExplanationViewController ()\n@property(nonatomic, copy) void (^dismissCallback)();\n@end\n\n@implementation GIRemappingExplanationViewController\n\n- (instancetype)initWithDismissCallback:(void (^)())dismissCallback {\n  if ((self = [super initWithNibName:NSStringFromClass(self.class) bundle:[NSBundle bundleForClass:self.class]])) {\n    self.dismissCallback = dismissCallback;\n  }\n  return self;\n}\n\n- (IBAction)okay:(id)sender {\n  self.dismissCallback();\n}\n\n@end\n\n@interface GIRemappingExplanationPopover ()\n@end\n\n@implementation GIRemappingExplanationPopover\n\n+ (void)showIfNecessaryRelativeToRect:(NSRect)positioningRect ofView:(NSView*)positioningView preferredEdge:(NSRectEdge)preferredEdge {\n  NSUserDefaults* defaults = NSUserDefaults.standardUserDefaults;\n  if (![defaults boolForKey:GIRemappingExplanationShownUserDefaultKey]) {\n    NSPopover* popover = [[NSPopover alloc] init];\n    __weak NSPopover* weakPopover = popover;\n    popover.contentViewController = [[GIRemappingExplanationViewController alloc] initWithDismissCallback:^{\n      [defaults setBool:YES forKey:GIRemappingExplanationShownUserDefaultKey];\n      [weakPopover close];\n    }];\n    [popover showRelativeToRect:positioningRect ofView:positioningView preferredEdge:NSRectEdgeMinY];\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIRemappingExplanationViewController.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"24506\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"24506\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"GIRemappingExplanationViewController\">\n            <connections>\n                <outlet property=\"view\" destination=\"Hz6-mo-xeY\" id=\"0bl-1N-x8E\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customView id=\"Hz6-mo-xeY\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"393\" height=\"152\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField focusRingType=\"none\" horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"52R-BS-l5y\">\n                    <rect key=\"frame\" x=\"18\" y=\"52\" width=\"357\" height=\"80\"/>\n                    <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" id=\"fez-U0-mnZ\">\n                        <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                        <string key=\"title\">All action buttons involving text entry that are default\nhighlighted are now triggered via Command-Return (⌘⏎).\n\nThis replaces the previous Option-Return (⌥⏎)\nas it was a less common shortcut for Mac apps.</string>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n                <button verticalHuggingPriority=\"750\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"rKH-ZW-yIj\">\n                    <rect key=\"frame\" x=\"169\" y=\"20\" width=\"55\" height=\"24\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Okay\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"kHH-gL-IiT\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"okay:\" target=\"-2\" id=\"d4i-LO-xvt\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <constraints>\n                <constraint firstAttribute=\"trailing\" secondItem=\"52R-BS-l5y\" secondAttribute=\"trailing\" constant=\"20\" symbolic=\"YES\" id=\"Lui-cz-JSc\"/>\n                <constraint firstItem=\"rKH-ZW-yIj\" firstAttribute=\"top\" secondItem=\"52R-BS-l5y\" secondAttribute=\"bottom\" constant=\"8\" symbolic=\"YES\" id=\"OtP-dl-j9x\"/>\n                <constraint firstItem=\"rKH-ZW-yIj\" firstAttribute=\"centerX\" secondItem=\"Hz6-mo-xeY\" secondAttribute=\"centerX\" id=\"dQi-6k-34A\"/>\n                <constraint firstAttribute=\"bottom\" secondItem=\"rKH-ZW-yIj\" secondAttribute=\"bottom\" constant=\"20\" symbolic=\"YES\" id=\"ee4-rK-bxp\"/>\n                <constraint firstItem=\"52R-BS-l5y\" firstAttribute=\"leading\" secondItem=\"Hz6-mo-xeY\" secondAttribute=\"leading\" constant=\"20\" symbolic=\"YES\" id=\"myk-MP-Xiq\"/>\n                <constraint firstItem=\"52R-BS-l5y\" firstAttribute=\"top\" secondItem=\"Hz6-mo-xeY\" secondAttribute=\"top\" constant=\"20\" symbolic=\"YES\" id=\"pL1-sf-jzB\"/>\n            </constraints>\n            <point key=\"canvasLocation\" x=\"138.5\" y=\"168\"/>\n        </customView>\n    </objects>\n</document>\n"
  },
  {
    "path": "GitUpKit/Views/GISimpleCommitViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GICommitViewController.h\"\n\n@interface GISimpleCommitViewController : GICommitViewController\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GISimpleCommitViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GISimpleCommitViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIDiffFilesViewController.h\"\n#import \"GIRemappingExplanationPopover.h\"\n#import \"GIViewController+Utilities.h\"\n\n#import \"GIInterface.h\"\n#import \"GCRepository+Utilities.h\"\n#import \"XLFacilityMacros.h\"\n\n@interface GISimpleCommitViewController () <GIDiffContentsViewControllerDelegate, GIDiffFilesViewControllerDelegate>\n@property(nonatomic, weak) IBOutlet NSView* contentsView;\n@property(nonatomic, weak) IBOutlet NSView* filesView;\n@property(nonatomic, weak) IBOutlet NSButton* commitButton;\n@end\n\n@implementation GISimpleCommitViewController {\n  GIDiffContentsViewController* _diffContentsViewController;\n  GIDiffFilesViewController* _diffFilesViewController;\n  GCDiff* _unifiedStatus;\n  NSDictionary* _indexConflicts;\n  BOOL _disableFeedbackLoop;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.delegate = self;\n  _diffContentsViewController.showsUntrackedAsAdded = YES;\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_contentsView replaceWithView:_diffContentsViewController.view];\n\n  _diffFilesViewController = [[GIDiffFilesViewController alloc] initWithRepository:self.repository];\n  _diffFilesViewController.delegate = self;\n  _diffFilesViewController.showsUntrackedAsAdded = YES;\n  _diffFilesViewController.emptyLabel = NSLocalizedString(@\"No changes in working directory\", nil);\n  [_filesView replaceWithView:_diffFilesViewController.view];\n\n  self.messageTextView.string = @\"\";\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Disabled);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Unified;\n\n  [self _reloadContents];\n}\n\n- (void)viewDidAppear {\n  [super viewDidAppear];\n\n  // Remove this logic in a year or so\n  [GIRemappingExplanationPopover showIfNecessaryRelativeToRect:NSZeroRect ofView:_commitButton preferredEdge:NSRectEdgeMinY];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _unifiedStatus = nil;\n  _indexConflicts = nil;\n\n  [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n  [_diffFilesViewController setDeltas:nil usingConflicts:nil];\n\n  XLOG_DEBUG_CHECK(self.repository.statusMode == kGCLiveRepositoryStatusMode_Unified);\n  self.repository.statusMode = kGCLiveRepositoryStatusMode_Disabled;\n}\n\n- (void)repositoryStatusDidUpdate {\n  [super repositoryStatusDidUpdate];\n\n  if (self.viewVisible) {\n    [self _reloadContents];\n  }\n}\n\n- (void)_reloadContents {\n  CGFloat offset;\n  GCDiffDelta* topDelta = [_diffContentsViewController topVisibleDelta:&offset];\n\n  _unifiedStatus = self.repository.unifiedStatus;\n  _indexConflicts = self.repository.indexConflicts;\n  [_diffContentsViewController setDeltas:_unifiedStatus.deltas usingConflicts:_indexConflicts];\n  [_diffFilesViewController setDeltas:_unifiedStatus.deltas usingConflicts:_indexConflicts];\n\n  [_diffContentsViewController setTopVisibleDelta:topDelta offset:offset];\n\n  _commitButton.enabled = _unifiedStatus.modified || (self.repository.state == kGCRepositoryState_Merge);  // Creating an empty commit is OK for a merge\n}\n\n#pragma mark - GIDiffContentsViewControllerDelegate\n\n- (void)diffContentsViewControllerDidScroll:(GIDiffContentsViewController*)scroll {\n  if (!_disableFeedbackLoop) {\n    _diffFilesViewController.selectedDelta = [_diffContentsViewController topVisibleDelta:NULL];\n  }\n}\n\n- (NSString*)diffContentsViewController:(GIDiffContentsViewController*)controller actionButtonLabelForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (!conflict) {\n    if (delta.submodule) {\n      return NSLocalizedString(@\"Discard Submodule Changes…\", nil);\n    } else if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:NULL newLines:NULL]) {\n      return NSLocalizedString(@\"Discard Line Changes…\", nil);\n    } else {\n      return NSLocalizedString(@\"Discard File Changes…\", nil);\n    }\n  }\n  return nil;\n}\n\n- (void)diffContentsViewController:(GIDiffContentsViewController*)controller didClickActionButtonForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  if (delta.submodule) {\n    [self discardSubmoduleAtPath:delta.canonicalPath resetIndex:YES];\n  } else if (delta.change == kGCFileDiffChange_Untracked) {\n    [self discardAllChangesForFile:delta.canonicalPath resetIndex:NO];\n  } else {\n    NSIndexSet* oldLines;\n    NSIndexSet* newLines;\n    if ([_diffContentsViewController getSelectedLinesForDelta:delta oldLines:&oldLines newLines:&newLines]) {\n      [self discardSelectedChangesForFile:delta.canonicalPath oldLines:oldLines newLines:newLines resetIndex:YES];\n    } else {\n      [self discardAllChangesForFile:delta.canonicalPath resetIndex:YES];\n    }\n  }\n}\n\n- (NSMenu*)diffContentsViewController:(GIDiffContentsViewController*)controller willShowContextualMenuForDelta:(GCDiffDelta*)delta conflict:(GCIndexConflict*)conflict {\n  return [self contextualMenuForDelta:delta withConflict:conflict allowOpen:YES];\n}\n\n#pragma mark - GIDiffFilesViewControllerDelegate\n\n- (void)diffFilesViewController:(GIDiffFilesViewController*)controller willSelectDelta:(GCDiffDelta*)delta {\n  _disableFeedbackLoop = YES;\n  [_diffContentsViewController setTopVisibleDelta:delta offset:0];\n  _disableFeedbackLoop = NO;\n}\n\n- (BOOL)diffFilesViewController:(GIDiffFilesViewController*)controller handleKeyDownEvent:(NSEvent*)event {\n  return [self handleKeyDownEvent:event forSelectedDeltas:_diffFilesViewController.selectedDeltas withConflicts:_indexConflicts allowOpen:YES];\n}\n\n#pragma mark - NSTextViewDelegate\n\n// Intercept Option-Return key in NSTextView and forward to next responder\n- (BOOL)textView:(NSTextView*)textView doCommandBySelector:(SEL)selector {\n  if (selector == @selector(insertNewlineIgnoringFieldEditor:)) {\n    return [self.view.window.firstResponder.nextResponder tryToPerform:@selector(keyDown:) with:[NSApp currentEvent]];\n  }\n  return [super textView:textView doCommandBySelector:selector];\n}\n\n#pragma mark - Actions\n\n- (IBAction)commit:(id)sender {\n  if (_indexConflicts.count) {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must resolve conflicts before committing!\", nil) message:nil];\n    return;\n  }\n  NSString* message = [self.messageTextView.string stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n  if (!message.length) {\n    [self presentAlertWithType:kGIAlertType_Stop title:NSLocalizedString(@\"You must provide a non-empty commit message\", nil) message:nil];\n    return;\n  }\n  NSError* error;\n  if ([self.repository syncIndexWithWorkingDirectory:&error]) {\n    [self createCommitFromHEADWithMessage:message];\n  } else {\n    [self presentError:error];\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIStashListViewController.h",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#import \"GIViewController.h\"\n\n@interface GIStashListViewController : GIViewController\n@end\n"
  },
  {
    "path": "GitUpKit/Views/GIStashListViewController.m",
    "content": "//  Copyright (C) 2015-2019 Pierre-Olivier Latour <info@pol-online.net>\n//\n//  This program is free software: you can redistribute it and/or modify\n//  it under the terms of the GNU General Public License as published by\n//  the Free Software Foundation, either version 3 of the License, or\n//  (at your option) any later version.\n//\n//  This program is distributed in the hope that it will be useful,\n//  but WITHOUT ANY WARRANTY; without even the implied warranty of\n//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n//  GNU General Public License for more details.\n//\n//  You should have received a copy of the GNU General Public License\n//  along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\n#if !__has_feature(objc_arc)\n#error This file requires ARC\n#endif\n\n#import \"GIStashListViewController.h\"\n#import \"GIDiffContentsViewController.h\"\n#import \"GIWindowController.h\"\n\n#import \"GIInterface.h\"\n#import \"XLFacilityMacros.h\"\n\n#define kUserDefaultsPrefix @\"GIStashListViewController_\"\n#define kUserDefaultsKey_SkipApplyWarning kUserDefaultsPrefix \"SkipApplyWarning\"\n\n@interface GIStashCellView : GITableCellView\n@property(nonatomic, weak) IBOutlet NSTextField* dateTextField;\n@property(nonatomic, weak) IBOutlet NSTextField* sha1TextField;\n@property(nonatomic, weak) IBOutlet NSTextField* messageTextField;\n@end\n\n@interface GIStashListViewController () <NSTableViewDataSource>\n@property(nonatomic, weak) IBOutlet GITableView* tableView;\n@property(nonatomic, weak) IBOutlet NSView* diffView;\n@property(nonatomic, weak) IBOutlet NSButton* dropButton;\n@property(nonatomic, weak) IBOutlet NSButton* applyButton;\n@property(nonatomic, weak) IBOutlet NSTextField* emptyLabel;\n\n@property(nonatomic, strong) IBOutlet NSView* saveView;\n@property(nonatomic, weak) IBOutlet NSTextField* messageTextField;\n@property(nonatomic, weak) IBOutlet NSButton* untrackedButton;\n@property(nonatomic, weak) IBOutlet NSButton* indexButton;\n@end\n\n@implementation GIStashCellView\n@end\n\n@implementation GIStashListViewController {\n  GIDiffContentsViewController* _diffContentsViewController;\n  NSArray* _stashes;\n  NSDateFormatter* _dateFormatter;\n  GIStashCellView* _cachedCellView;\n}\n\n- (instancetype)initWithRepository:(GCLiveRepository*)repository {\n  if ((self = [super initWithRepository:repository])) {\n    _dateFormatter = [[NSDateFormatter alloc] init];\n    _dateFormatter.dateStyle = NSDateFormatterShortStyle;\n    _dateFormatter.timeStyle = NSDateFormatterShortStyle;\n    if ([_dateFormatter.locale.localeIdentifier hasPrefix:@\"en_\"]) {\n      _dateFormatter.doesRelativeDateFormatting = YES;\n    }\n  }\n  return self;\n}\n\n- (void)loadView {\n  [super loadView];\n\n  _tableView.target = self;\n  _tableView.doubleAction = @selector(applyStash:);\n\n  _diffContentsViewController = [[GIDiffContentsViewController alloc] initWithRepository:self.repository];\n  _diffContentsViewController.emptyLabel = NSLocalizedString(@\"No differences\", nil);\n  [_diffView replaceWithView:_diffContentsViewController.view];\n\n  _cachedCellView = [_tableView makeViewWithIdentifier:[_tableView.tableColumns[0] identifier] owner:self];\n\n  _dropButton.enabled = NO;\n}\n\n- (void)viewWillAppear {\n  [super viewWillAppear];\n\n  XLOG_DEBUG_CHECK(self.repository.stashesEnabled == NO);\n  self.repository.stashesEnabled = YES;\n\n  [self _reloadStashes];\n}\n\n- (void)viewDidDisappear {\n  [super viewDidDisappear];\n\n  _stashes = nil;\n  [_tableView reloadData];\n\n  XLOG_DEBUG_CHECK(self.repository.stashesEnabled == YES);\n  self.repository.stashesEnabled = NO;\n}\n\n- (void)repositoryStashesDidUpdate {\n  if (self.viewVisible) {\n    [self _reloadStashes];\n  }\n}\n\n- (void)_reloadStashes {\n  _stashes = self.repository.stashes;\n  [_tableView reloadData];\n\n  if (_stashes.count == 0) {\n    _emptyLabel.hidden = NO;\n    _tableView.gridStyleMask = 0;\n    [self tableViewSelectionDidChange:nil];  // Work around a bug where -tableViewSelectionDidChange is not called when emptying the table\n  } else {\n    _emptyLabel.hidden = YES;\n    _tableView.gridStyleMask = NSTableViewSolidHorizontalGridLineMask;\n  }\n}\n\n#pragma mark - NSTableViewDataSource\n\n- (NSInteger)numberOfRowsInTableView:(NSTableView*)tableView {\n  return _stashes.count;\n}\n\n#pragma mark - NSTableViewDelegate\n\n- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn*)tableColumn row:(NSInteger)row {\n  GIStashCellView* view = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];\n  view.row = row;\n  GCStash* stash = _stashes[row];\n  view.dateTextField.stringValue = [_dateFormatter stringFromDate:stash.date];\n  view.sha1TextField.stringValue = stash.shortSHA1;\n  view.messageTextField.stringValue = stash.message;\n  return view;\n}\n\n- (CGFloat)tableView:(NSTableView*)tableView heightOfRow:(NSInteger)row {\n  GCStash* stash = _stashes[row];\n  _cachedCellView.frame = NSMakeRect(0, 0, [_tableView.tableColumns[0] width], 1000);\n  NSTextField* textField = _cachedCellView.messageTextField;\n  NSRect frame = textField.frame;\n  textField.stringValue = stash.message;\n  NSSize size = [textField.cell cellSizeForBounds:NSMakeRect(0, 0, frame.size.width, HUGE_VALF)];\n  CGFloat delta = ceilf(size.height) - frame.size.height;\n  return _cachedCellView.frame.size.height + delta;\n}\n\n- (void)tableViewSelectionDidChange:(NSNotification*)notification {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    GCStash* stash = _stashes[row];\n    NSError* error;\n    GCDiff* diff = [self.repository diffCommit:stash\n                                    withCommit:stash.baseCommit\n                                   filePattern:nil\n                                       options:(self.repository.diffBaseOptions | kGCDiffOption_FindRenames)\n                             maxInterHunkLines:self.repository.diffMaxInterHunkLines\n                               maxContextLines:self.repository.diffMaxContextLines\n                                         error:&error];\n    if (diff && stash.untrackedCommit) {\n      GCDiff* untrackedDiff = [self.repository diffCommit:stash.untrackedCommit withCommit:nil filePattern:nil options:0 maxInterHunkLines:0 maxContextLines:0 error:&error];\n      if (!untrackedDiff || ![self.repository mergeDiff:untrackedDiff ontoDiff:diff error:&error]) {\n        diff = nil;\n      }\n    }\n    if (!diff) {\n      [self presentError:error];\n    }\n    [_diffContentsViewController setDeltas:diff.deltas usingConflicts:nil];\n    _dropButton.enabled = YES;\n    _applyButton.enabled = YES;\n  } else {\n    [_diffContentsViewController setDeltas:nil usingConflicts:nil];\n    _dropButton.enabled = NO;\n    _applyButton.enabled = NO;\n  }\n}\n\n#pragma mark - Actions\n\n- (BOOL)validateUserInterfaceItem:(id<NSValidatedUserInterfaceItem>)item {\n  if (item.action == @selector(copy:)) {\n    return (_tableView.selectedRow >= 0);\n  }\n\n  return NO;\n}\n\n- (IBAction)copy:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    [[NSPasteboard generalPasteboard] declareTypes:@[ NSPasteboardTypeString ] owner:nil];\n    [[NSPasteboard generalPasteboard] setString:[NSString stringWithFormat:@\"stash@{%li}\", row] forType:NSPasteboardTypeString];\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n- (void)_undoSaveStash:(GCStash*)stash withMessage:(NSString*)message keepIndex:(BOOL)keepIndex includeUntracked:(BOOL)includeUntracked ignore:(BOOL)ignore {\n  if (ignore) {\n    [[self.undoManager prepareWithInvocationTarget:self] _undoSaveStash:stash withMessage:message keepIndex:keepIndex includeUntracked:includeUntracked ignore:NO];\n    return;\n  }\n\n  BOOL success;\n  NSError* error;\n  if (stash) {\n    success = [self.repository applyStash:stash restoreIndex:!keepIndex error:&error] && [self.repository dropStash:stash error:&error];\n    if (success) {\n      [[self.undoManager prepareWithInvocationTarget:self] _undoSaveStash:nil withMessage:message keepIndex:keepIndex includeUntracked:includeUntracked ignore:NO];\n    }\n    [self.repository notifyRepositoryChanged];\n  } else {\n    stash = [self.repository saveStashWithMessage:message keepIndex:keepIndex includeUntracked:includeUntracked error:&error];\n    if (stash) {\n      [[self.undoManager prepareWithInvocationTarget:self] _undoSaveStash:stash withMessage:message keepIndex:keepIndex includeUntracked:includeUntracked ignore:NO];\n      [self.repository notifyRepositoryChanged];\n      success = YES;\n    } else {\n      success = NO;\n    }\n  }\n  if (!success) {  // In case of error, put a dummy operation on the undo stack since we *must* put something, but pop it at the next runloop iteration\n    [[self.undoManager prepareWithInvocationTarget:self] _undoSaveStash:stash withMessage:message keepIndex:keepIndex includeUntracked:includeUntracked ignore:YES];\n    [self.undoManager performSelector:(self.undoManager.isRedoing ? @selector(undo) : @selector(redo)) withObject:nil afterDelay:0.0];\n    [self presentError:error];\n  }\n}\n\n- (IBAction)saveStash:(id)sender {\n  _messageTextField.stringValue = @\"\";\n  _untrackedButton.state = NO;\n  _indexButton.state = NO;\n  [self.windowController runModalView:_saveView\n            withInitialFirstResponder:_messageTextField\n                    completionHandler:^(BOOL success) {\n                      if (success) {\n                        NSString* message = [_messageTextField.stringValue stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];\n                        NSError* error;\n                        GCStash* stash = [self.repository saveStashWithMessage:(message.length ? message : nil) keepIndex:_indexButton.state includeUntracked:_untrackedButton.state error:&error];\n                        if (stash) {\n                          [self.undoManager setActionName:NSLocalizedString(@\"Save Stash\", nil)];\n                          [[self.undoManager prepareWithInvocationTarget:self] _undoSaveStash:stash withMessage:(message.length ? message : nil)keepIndex:_indexButton.state includeUntracked:_untrackedButton.state ignore:NO];  // TODO: We should really use the built-in undo mechanism from GCLiveRepository\n                          [self.repository notifyRepositoryChanged];\n\n                          [self.view.window makeFirstResponder:_tableView];\n                          [_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO];\n                          [_tableView scrollRowToVisible:0];\n                        } else {\n                          [self presentError:error];\n                        }\n                      }\n                    }];\n}\n\n- (IBAction)applyStash:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    GCStash* stash = _stashes[row];\n    [self confirmUserActionWithAlertType:kGIAlertType_Caution\n                                   title:NSLocalizedString(@\"Are you sure you want to apply this stash?\", nil)\n                                 message:NSLocalizedString(@\"This action cannot be undone.\", nil)\n                                  button:NSLocalizedString(@\"Apply Stash\", nil)\n               suppressionUserDefaultKey:kUserDefaultsKey_SkipApplyWarning\n                                   block:^{\n                                     NSError* error;\n                                     if ([self.repository applyStash:stash restoreIndex:NO error:&error]) {\n                                       [self.repository notifyRepositoryChanged];\n                                       [self.windowController showOverlayWithStyle:kGIOverlayStyle_Informational message:NSLocalizedString(@\"Stash was applied successfully!\", nil)];\n                                     } else {\n                                       [self presentError:error];\n                                     }\n                                   }];\n  } else {\n    NSBeep();\n  }\n}\n\n- (void)_undoDropStashWithPreviousState:(GCStashState*)state ignore:(BOOL)ignore {\n  if (ignore) {\n    [[self.undoManager prepareWithInvocationTarget:self] _undoDropStashWithPreviousState:state ignore:NO];\n    return;\n  }\n\n  NSError* error;\n  GCStashState* currentState = [self.repository saveStashState:&error];\n  if (currentState && [self.repository restoreStashState:state error:&error]) {\n    [[self.undoManager prepareWithInvocationTarget:self] _undoDropStashWithPreviousState:currentState ignore:NO];\n    [self.repository notifyRepositoryChanged];\n  } else {  // In case of error, put a dummy operation on the undo stack since we *must* put something, but pop it at the next runloop iteration\n    [[self.undoManager prepareWithInvocationTarget:self] _undoDropStashWithPreviousState:state ignore:YES];\n    [self.undoManager performSelector:(self.undoManager.isRedoing ? @selector(undo) : @selector(redo)) withObject:nil afterDelay:0.0];\n    [self presentError:error];\n  }\n}\n\n- (IBAction)dropStash:(id)sender {\n  NSInteger row = _tableView.selectedRow;\n  if (row >= 0) {\n    GCStash* stash = _stashes[row];\n    NSError* error;\n    GCStashState* currentState = [self.repository saveStashState:&error];\n    if (currentState && [self.repository dropStash:stash error:&error]) {\n      [self.undoManager setActionName:NSLocalizedString(@\"Drop Stash\", nil)];\n      [[self.undoManager prepareWithInvocationTarget:self] _undoDropStashWithPreviousState:currentState ignore:NO];  // TODO: We should really use the built-in undo mechanism from GCLiveRepository\n      [self.repository notifyRepositoryChanged];\n      if (row > 0) {\n        [_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:(row - 1)] byExtendingSelection:NO];\n      }\n    } else {\n      [self presentError:error];\n    }\n  } else {\n    XLOG_DEBUG_UNREACHABLE();\n  }\n}\n\n@end\n"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/background_pattern.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"background_pattern.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"background_pattern-dark.png\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"background_pattern@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"background_pattern-dark@2x.png\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/commit/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"provides-namespace\" : true\n  }\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/commit/header_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"gray-gamma-22\",\n        \"components\" : {\n          \"white\" : \"0.500\",\n          \"alpha\" : \"1.000\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"reference\" : \"alternatingContentBackgroundColor\"\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/config/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"provides-namespace\" : true\n  }\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/config/conflict_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"1.000\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.950\",\n          \"green\" : \"0.950\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.300\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.000\",\n          \"green\" : \"0.000\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/config/global_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.950\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.950\",\n          \"green\" : \"1.000\"\n        }\n      }\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"appearances\" : [\n        {\n          \"appearance\" : \"luminosity\",\n          \"value\" : \"dark\"\n        }\n      ],\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"0.000\",\n          \"alpha\" : \"1.000\",\n          \"blue\" : \"0.000\",\n          \"green\" : \"0.300\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/config/highlight_background.colorset/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"color\" : {\n        \"color-space\" : \"srgb\",\n        \"components\" : {\n          \"red\" : \"1.000\",\n          \"alpha\" : \"0.500\",\n          \"blue\" : \"0.000\",\n          \"green\" : \"1.000\"\n        }\n      }\n    }\n  ]\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/icon_author.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_author.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_author@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Views/Views.xcassets/icon_committer.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_committer.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"icon_committer@2x.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  },\n  \"properties\" : {\n    \"template-rendering-intent\" : \"template\"\n  }\n}"
  },
  {
    "path": "GitUpKit/Views/en.lproj/GIConfigViewController-Help.txt",
    "content": "advice.pushUpdateRejected\nSet this variable to 'false' if you want to disable 'advice.pushNonFFCurrent', 'advice.pushNonFFDefault', 'advice.pushNonFFMatching', 'advice.pushAlreadyExists', 'advice.pushFetchFirst', and 'advice.pushNeedsForce' simultaneously.\n\n\nadvice.pushNonFFCurrent\nAdvice shown when linkgit:git-push fails due to a non-fast-forward update to the current branch.\n\n\nadvice.pushNonFFDefault\nAdvice to set 'push.default' to 'upstream' or 'current' when you ran linkgit:git-push and pushed 'matching refs' by default (i.e. you did not provide an explicit refspec, and no 'push.default' configuration was set) and it resulted in a non-fast-forward error.\n\n\nadvice.pushNonFFMatching\nAdvice shown when you ran linkgit:git-push and pushed 'matching refs' explicitly (i.e. you used ':', or specified a refspec that isn't your current branch) and it resulted in a non-fast-forward error.\n\n\nadvice.pushAlreadyExists\nShown when linkgit:git-push rejects an update that does not qualify for fast-forwarding (e.g., a tag.)\n\n\nadvice.pushFetchFirst\nShown when linkgit:git-push rejects an update that tries to overwrite a remote ref that points at an object we do not have.\n\n\nadvice.pushNeedsForce\nShown when linkgit:git-push rejects an update that tries to overwrite a remote ref that points at an object that is not a commit-ish, or make the remote ref point at an object that is not a commit-ish.\n\n\nadvice.statusHints\nShow directions on how to proceed from the current state in the output of linkgit:git-status, in the template shown when writing commit messages in linkgit:git-commit, and in the help message shown by linkgit:git-checkout when switching branch.\n\n\nadvice.statusUoption\nAdvise to consider using the '-u' option to linkgit:git-status when the command takes more than 2 seconds to enumerate untracked files.\n\n\nadvice.commitBeforeMerge\nAdvice shown when linkgit:git-merge refuses to merge to avoid overwriting local changes.\n\n\nadvice.resolveConflict\nAdvice shown by various commands when conflicts prevent the operation from being performed.\n\n\nadvice.implicitIdentity\nAdvice on how to set your identity configuration when your information is guessed from the system username and domain name.\n\n\nadvice.detachedHead\nAdvice shown when you used linkgit:git-checkout to move to the detach HEAD state, to instruct how to create a local branch after the fact.\n\n\nadvice.amWorkDir\nAdvice that shows the location of the patch file when linkgit:git-am fails to apply it.\n\n\nadvice.rmHints\nIn case of failure in the output of linkgit:git-rm, show directions on how to proceed from the current state.\n\n\ncore.fileMode\nIf false, the executable bit differences between the index and the working tree are ignored; useful on broken filesystems like FAT. See linkgit:git-update-index.\n\nThe default is true, except linkgit:git-clone or linkgit:git-init will probe and set core.fileMode false if appropriate when the repository is created.\n\n\ncore.ignorecase\nIf true, this option enables various workarounds to enable Git to work better on filesystems that are not case sensitive, like FAT. For example, if a directory listing finds \"makefile\" when Git expects \"Makefile\", Git will assume it is really the same file, and continue to remember it as \"Makefile\".\n\nThe default is false, except linkgit:git-clone or linkgit:git-init will probe and set core.ignorecase true if appropriate when the repository is created.\n\n\ncore.precomposeunicode\nThis option is only used by Mac OS implementation of Git. When core.precomposeunicode=true, Git reverts the unicode decomposition of filenames done by Mac OS. This is useful when sharing a repository between Mac OS and Linux or Windows. (Git for Windows 1.7.10 or higher is needed, or Git under cygwin 1.7). When false, file names are handled fully transparent by Git, which is backward compatible with older versions of Git.\n\n\ncore.trustctime\nIf false, the ctime differences between the index and the working tree are ignored; useful when the inode change time is regularly modified by something outside Git (file system crawlers and some backup systems). See linkgit:git-update-index. True by default.\n\n\ncore.checkstat\nDetermines which stat fields to match between the index and work tree. The user can set this to 'default' or 'minimal'. Default (or explicitly 'default'), is to check all fields, including the sub-second part of mtime and ctime.\n\n\ncore.quotepath\nThe commands that output paths (e.g. 'ls-files', 'diff'), when not given the '-z' option, will quote \"unusual\" characters in the pathname by enclosing the pathname in a double-quote pair and with backslashes the same way strings in C source code are quoted. If this variable is set to false, the bytes higher than 0x80 are not quoted but output as verbatim. Note that double quote, backslash and control characters are always quoted without '-z' regardless of the setting of this variable.\n\n\ncore.eol\nSets the line ending type to use in the working directory for files that have the 'text' property set. Alternatives are 'lf', 'crlf' and 'native', which uses the platform's native line ending. The default value is 'native'. See linkgit:gitattributes for more information on end-of-line conversion.\n\n\ncore.safecrlf\nIf true, makes Git check if converting 'CRLF' is reversible when end-of-line conversion is active. Git will verify if a command modifies a file in the work tree either directly or indirectly. For example, committing a file followed by checking out the same file should yield the original file in the work tree. If this is not the case for the current setting of 'core.autocrlf', Git will reject the file. The variable can be set to \"warn\", in which case Git will only warn about an irreversible conversion but continue the operation.\n\nCRLF conversion bears a slight chance of corrupting data. When it is enabled, Git will convert CRLF to LF during commit and LF to CRLF during checkout. A file that contains a mixture of LF and CRLF before the commit cannot be recreated by Git. For text files this is the right thing to do: it corrects line endings such that we have only LF line endings in the repository. But for binary files that are accidentally classified as text the conversion can corrupt data.\n\nIf you recognize such corruption early you can easily fix it by setting the conversion type explicitly in .gitattributes. Right after committing you still have the original file in your work tree and this file is not yet corrupted. You can explicitly tell Git that this file is binary and Git will handle the file appropriately.\n\nUnfortunately, the desired effect of cleaning up text files with mixed line endings and the undesired effect of corrupting binary files cannot be distinguished. In both cases CRLFs are removed in an irreversible way. For text files this is the right thing to do because CRLFs are line endings, while for binary files converting CRLFs corrupts data.\n\nNote, this safety check does not mean that a checkout will generate a file identical to the original file for a different setting of 'core.eol' and 'core.autocrlf', but only for the current one. For example, a text file with 'LF' would be accepted with 'core.eol=lf' and could later be checked out with 'core.eol=crlf', in which case the resulting file would contain 'CRLF', although the original file contained 'LF'. However, in both work trees the line endings would be consistent, that is either all 'LF' or all 'CRLF', but never mixed. A file with mixed line endings would be reported by the 'core.safecrlf' mechanism.\n\n\ncore.autocrlf\nSetting this variable to \"true\" is almost the same as setting the 'text' attribute to \"auto\" on all files except that text files are not guaranteed to be normalized: files that contain 'CRLF' in the repository will not be touched. Use this setting if you want to have 'CRLF' line endings in your working directory even though the repository does not have normalized line endings. This variable can be set to 'input', in which case no output conversion is performed.\n\n\ncore.symlinks\nIf false, symbolic links are checked out as small plain files that contain the link text. linkgit:git-update-index and linkgit:git-add will not change the recorded type to regular file. Useful on filesystems like FAT that do not support symbolic links.\n\nThe default is true, except linkgit:git-clone or linkgit:git-init will probe and set core.symlinks false if appropriate when the repository is created.\n\n\ncore.gitProxy\nA \"proxy command\" to execute (as 'command host port') instead of establishing direct connection to the remote server when using the Git protocol for fetching. If the variable value is in the \"COMMAND for DOMAIN\" format, the command is applied only on hostnames ending with the specified domain string. This variable may be set multiple times and is matched in the given order; the first match wins.\n\nCan be overridden by the 'GIT_PROXY_COMMAND' environment variable (which always applies universally, without the special \"for\" handling).\n\nThe special string 'none' can be used as the proxy command to specify that no proxy be used for a given domain pattern. This is useful for excluding servers inside a firewall from proxy use, while defaulting to a common proxy for external domains.\n\n\ncore.ignoreStat\nIf true, commands which modify both the working tree and the index will mark the updated paths with the \"assume unchanged\" bit in the index. These marked files are then assumed to stay unchanged in the working tree, until you mark them otherwise manually - Git will not detect the file changesby lstat() calls. This is useful on systems where those are very slow, such as Microsoft Windows. See linkgit:git-update-index. False by default.\n\n\ncore.preferSymlinkRefs\nInstead of the default \"symref\" format for HEAD and other symbolic reference files, use symbolic links. This is sometimes needed to work with old scripts that expect HEAD to be a symbolic link.\n\n\ncore.bare\nIf true this repository is assumed to be 'bare' and has no working directory associated with it. If this is the case a number of commands that require a working directory will be disabled, such as linkgit:git-add or linkgit:git-merge.\n\nThis setting is automatically guessed by linkgit:git-clone or linkgit:git-init when the repository was created. By default a repository that ends in \"/.git\" is assumed to be not bare (bare = false), while all other repositories are assumed to be bare (bare = true).\n\n\ncore.worktree\nSet the path to the root of the working tree. This can be overridden by the GIT_WORK_TREE environment variable and the '--work-tree' command line option. The value can be an absolute path or relative to the path to the .git directory, which is either specified by --git-dir or GIT_DIR, or automatically discovered. If --git-dir or GIT_DIR is specified but none of --work-tree, GIT_WORK_TREE and core.worktree is specified, the current working directory is regarded as the top level of your working tree.\n\nNote that this variable is honored even when set in a configuration file in a \".git\" subdirectory of a directory and its value differs from the latter directory (e.g. \"/path/to/.git/config\" has core.worktree set to \"/different/path\"), which is most likely a misconfiguration. Running Git commands in the \"/path/to\" directory will still use \"/different/path\" as the root of the work tree and can cause confusion unless you know what you are doing (e.g. you are creating a read-only snapshot of the same index to a location different from the repository's usual working tree).\n\n\ncore.logAllRefUpdates\nEnable the reflog. Updates to a ref <ref> is logged to the file \"$GIT_DIR/logs/<ref>\", by appending the new and old SHA-1, the date/time and the reason of the update, but only when the file exists. If this configuration variable is set to true, missing \"$GIT_DIR/logs/<ref>\" file is automatically created for branch heads (i.e. under refs/heads/), remote refs (i.e. under refs/remotes/), note refs (i.e. under refs/notes/), and the symbolic ref HEAD.\n\nThis information can be used to determine what commit was the tip of a branch \"2 days ago\".\n\nThis value is true by default in a repository that has a working directory associated with it, and false by default in a bare repository.\n\n\ncore.repositoryFormatVersion\nInternal variable identifying the repository format and layout version.\n\n\ncore.sharedRepository\nWhen 'group' (or 'true'), the repository is made shareable between several users in a group (making sure all the files and objects are group-writable). When 'all' (or 'world' or 'everybody'), the repository will be readable by all users, additionally to being group-shareable. When 'umask' (or 'false'), Git will use permissions reported by umask(2). When '0xxx', where '0xxx' is an octal number, files in the repository will have this mode value. '0xxx' will override user's umask value (whereas the other options will only override requested parts of the user's umask value). Examples: '0660' will make the repo read/write-able for the owner and group, but inaccessible to others (equivalent to 'group' unless umask is e.g. '0022'). '0640' is a repository that is group-readable but not group-writable. See linkgit:git-init. False by default.\n\n\ncore.warnAmbiguousRefs\nIf true, Git will warn you if the ref name you passed it is ambiguous and might match multiple refs in the repository. True by default.\n\n\ncore.compression\nAn integer -1..9, indicating a default compression level. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest. If set, this provides a default to other compression variables, such as 'core.loosecompression' and 'pack.compression'.\n\n\ncore.loosecompression\nAn integer -1..9, indicating the compression level for objects that are not in a pack file. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest. If not set, defaults to core.compression. If that is not set, defaults to 1 (best speed).\n\n\ncore.packedGitWindowSize\nNumber of bytes of a pack file to map into memory in a single mapping operation. Larger window sizes may allow your system to process a smaller number of large pack files more quickly. Smaller window sizes will negatively affect performance due to increased calls to the operating system's memory manager, but may improve performance when accessing a large number of large pack files.\n\nDefault is 1 MiB if NO_MMAP was set at compile time, otherwise 32 MiB on 32 bit platforms and 1 GiB on 64 bit platforms. This should be reasonable for all users/operating systems. You probably do not need to adjust this value.\n\nCommon unit suffixes of 'k', 'm', or 'g' are supported.\n\n\ncore.packedGitLimit\nMaximum number of bytes to map simultaneously into memory from pack files. If Git needs to access more than this many bytes at once to complete an operation it will unmap existing regions to reclaim virtual address space within the process.\n\nDefault is 256 MiB on 32 bit platforms and 8 GiB on 64 bit platforms. This should be reasonable for all users/operating systems, except on the largest projects. You probably do not need to adjust this value.\n\nCommon unit suffixes of 'k', 'm', or 'g' are supported.\n\n\ncore.deltaBaseCacheLimit\nMaximum number of bytes to reserve for caching base objects that may be referenced by multiple deltified objects. By storing the entire decompressed base objects in a cache Git is able to avoid unpacking and decompressing frequently used base objects multiple times.\n\nDefault is 16 MiB on all platforms. This should be reasonable for all users/operating systems, except on the largest projects. You probably do not need to adjust this value.\n\nCommon unit suffixes of 'k', 'm', or 'g' are supported.\n\n\ncore.bigFileThreshold\nFiles larger than this size are stored deflated, without attempting delta compression. Storing large files without delta compression avoids excessive memory usage, at the slight expense of increased disk usage.\n\nDefault is 512 MiB on all platforms. This should be reasonable for most projects as source code and other text files can still be delta compressed, but larger binary media files won't be.\n\nCommon unit suffixes of 'k', 'm', or 'g' are supported.\n\n\ncore.excludesfile\nIn addition to '.gitignore' (per-directory) and '.git/info/exclude', Git looks into this file for patterns of files which are not meant to be tracked. \"'~/'\" is expanded to the value of '$HOME' and \"'~user/'\" to the specified user's home directory. Its default value is $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/ignore is used instead. See linkgit:gitignore.\n\n\ncore.askpass\nSome commands (e.g. svn and http interfaces) that interactively ask for a password can be told to use an external program given via the value of this variable. Can be overridden by the 'GIT_ASKPASS' environment variable. If not set, fall back to the value of the 'SSH_ASKPASS' environment variable or, failing that, a simple password prompt. The external program shall be given a suitable prompt as command line argument and write the password on its STDOUT.\n\n\ncore.attributesfile\nIn addition to '.gitattributes' (per-directory) and '.git/info/attributes', Git looks into this file for attributes (see linkgit:gitattributes). Path expansions are made the same way as for 'core.excludesfile'. Its default value is $XDG_CONFIG_HOME/git/attributes. If $XDG_CONFIG_HOME is either not set or empty, $HOME/.config/git/attributes is used instead.\n\n\ncore.editor\nCommands such as 'commit' and 'tag' that lets you edit messages by launching an editor uses the value of this variable when it is set, and the environment variable 'GIT_EDITOR' is not set. See linkgit:git-var.\n\n\ncore.commentchar\nCommands such as 'commit' and 'tag' that lets you edit messages consider a line that begins with this character commented, and removes them after the editor returns (default '#').\n\n\nsequence.editor\nText editor used by 'git rebase -i' for editing the rebase instruction file. The value is meant to be interpreted by the shell when it is used. It can be overridden by the 'GIT_SEQUENCE_EDITOR' environment variable. When not configured the default commit message editor is used instead.\n\n\ncore.pager\nText viewer for use by Git commands (e.g., 'less'). The value is meant to be interpreted by the shell. The order of preference is the '$GIT_PAGER' environment variable, then 'core.pager' configuration, then '$PAGER', and then the default chosen at compile time (usually 'less').\n\nWhen the 'LESS' environment variable is unset, Git sets it to 'FRSX' (if 'LESS' environment variable is set, Git does not change it at all). If you want to selectively override Git's default setting for 'LESS', you can set 'core.pager' to e.g. 'less -+S'. This will be passed to the shell by Git, which will translate the final command to 'LESS=FRSX less -+S'. The environment tells the command to set the 'S' option to chop long lines but the command line resets it to the default to fold long lines.\n\nLikewise, when the 'LV' environment variable is unset, Git sets it to '-c'. You can override this setting by exporting 'LV' with another value or setting 'core.pager' to 'lv +c'.\n\n\ncore.whitespace\nA comma separated list of common whitespace problems to notice. 'git diff' will use 'color.diff.whitespace' to highlight them, and 'git apply --whitespace=error' will consider them as errors. You can prefix '-' to disable any of them (e.g. '-trailing-space'):\n\n* 'blank-at-eol' treats trailing whitespaces at the end of the line as an error (enabled by default).\n* 'space-before-tab' treats a space character that appears immediately before a tab character in the initial indent part of the line as an error (enabled by default).\n* 'indent-with-non-tab' treats a line that is indented with space characters instead of the equivalent tabs as an error (not enabled by default).\n* 'tab-in-indent' treats a tab character in the initial indent part of the line as an error (not enabled by default).\n* 'blank-at-eof' treats blank lines added at the end of file as an error (enabled by default).\n* 'trailing-space' is a short-hand to cover both 'blank-at-eol' and 'blank-at-eof'.\n* 'cr-at-eol' treats a carriage-return at the end of line as part of the line terminator, i.e. with it, 'trailing-space' does not trigger if the character before such a carriage-return is not a whitespace (not enabled by default).\n* 'tabwidth=<n>' tells how many character positions a tab occupies; this is relevant for 'indent-with-non-tab' and when Git fixes 'tab-in-indent' errors. The default tab width is 8. Allowed values are 1 to 63.\n\n\ncore.fsyncobjectfiles\nThis boolean will enable 'fsync()' when writing object files.\n\nThis is a total waste of time and effort on a filesystem that orders data writes properly, but can be useful for filesystems that do not use journalling (traditional UNIX filesystems) or that only journal metadata and not file contents (OS X's HFS+, or Linux ext3 with \"data=writeback\").\n\n\ncore.preloadindex\nEnable parallel index preload for operations like 'git diff'\n\nThis can speed up operations like 'git diff' and 'git status' especially on filesystems like NFS that have weak caching semantics and thus relatively high IO latencies. With this set to 'true', Git will do the index comparison to the filesystem data in parallel, allowing overlapping IO's.\n\n\ncore.createObject\nYou can set this to 'link', in which case a hardlink followed by a delete of the source are used to make sure that object creation will not overwrite existing objects.\n\nOn some file system/operating system combinations, this is unreliable. Set this config setting to 'rename' there; However, This will remove the check that makes sure that existing object files will not get overwritten.\n\n\ncore.notesRef\nWhen showing commit messages, also show notes which are stored in the given ref. The ref must be fully qualified. If the given ref does not exist, it is not an error but means that no notes should be printed.\n\nThis setting defaults to \"refs/notes/commits\", and it can be overridden by the 'GIT_NOTES_REF' environment variable. See linkgit:git-notes.\n\n\ncore.sparseCheckout\nEnable \"sparse checkout\" feature. See section \"Sparse checkout\" in linkgit:git-read-tree for more information.\n\n\ncore.abbrev\nSet the length object names are abbreviated to. If unspecified, many commands abbreviate to 7 hexdigits, which may not be enough for abbreviated object names to stay unique for sufficiently long time.\n\n\nadd.ignore-errors\nTells 'git add' to continue adding files when some files cannot be added due to indexing errors. Equivalent to the '--ignore-errors' option of linkgit:git-add. Older versions of Git accept only 'add.ignore-errors', which does not follow the usual naming convention for configuration variables. Newer versions of Git honor 'add.ignoreErrors' as well.\n\n\nadd.ignoreErrors\nTells 'git add' to continue adding files when some files cannot be added due to indexing errors. Equivalent to the '--ignore-errors' option of linkgit:git-add. Older versions of Git accept only 'add.ignore-errors', which does not follow the usual naming convention for configuration variables. Newer versions of Git honor 'add.ignoreErrors' as well.\n\n\nalias.<command>\nCommand aliases for the linkgit:git command wrapper - e.g. after defining \"alias.last = cat-file commit HEAD\", the invocation \"git last\" is equivalent to \"git cat-file commit HEAD\". To avoid confusion and troubles with script usage, aliases that hide existing Git commands are ignored. Arguments are split by spaces, the usual shell quoting and escaping is supported. quote pair and a backslash can be used to quote them.\n\nIf the alias expansion is prefixed with an exclamation point, it will be treated as a shell command. For example, defining \"alias.new = !gitk --all --not ORIG_HEAD\", the invocation \"git new\" is equivalent to running the shell command \"gitk --all --not ORIG_HEAD\". Note that shell commands will be executed from the top-level directory of a repository, which may not necessarily be the current directory. 'GIT_PREFIX' is set as returned by running 'git rev-parse --show-prefix' from the original current directory. See linkgit:git-rev-parse.\n\n\nam.keepcr\nIf true, git-am will call git-mailsplit for patches in mbox format with parameter '--keep-cr'. In this case git-mailsplit will not remove '\\r' from lines ending with '\\r\\n'. Can be overridden by giving '--no-keep-cr' from the command line. See linkgit:git-am, linkgit:git-mailsplit.\n\n\napply.ignorewhitespace\nWhen set to 'change', tells 'git apply' to ignore changes in whitespace, in the same way as the '--ignore-space-change' option. When set to one of: no, none, never, false tells 'git apply' to respect all whitespace differences. See linkgit:git-apply.\n\n\napply.whitespace\nTells 'git apply' how to handle whitespaces, in the same way as the '--whitespace' option. See linkgit:git-apply.\n\n\nbranch.autosetupmerge\nTells 'git branch' and 'git checkout' to set up new branches so that linkgit:git-pull will appropriately merge from the starting point branch. Note that even if this option is not set, this behavior can be chosen per-branch using the '--track' and '--no-track' options. The valid settings are: 'false' -- no automatic setup is done; 'true' -- automatic setup is done when the starting point is a remote-tracking branch; 'always' -- automatic setup is done when the starting point is either a local branch or remote-tracking branch. This option defaults to true.\n\n\nbranch.autosetuprebase\nWhen a new branch is created with 'git branch' or 'git checkout' that tracks another branch, this variable tells Git to set up pull to rebase instead of merge (see \"branch.<name>.rebase\"). When 'never', rebase is never automatically set to true. When 'local', rebase is set to true for tracked branches of other local branches. When 'remote', rebase is set to true for tracked branches of remote-tracking branches. When 'always', rebase will be set to true for all tracking branches. See \"branch.autosetupmerge\" for details on how to set up a branch to track another branch. This option defaults to never.\n\n\nbranch.<name>.remote\nWhen on branch <name>, it tells 'git fetch' and 'git push' which remote to fetch from/push to. The remote to push to may be overridden with 'remote.pushdefault' (for all branches). The remote to push to, for the current branch, may be further overridden by 'branch.<name>.pushremote'. If no remote is configured, or if you are not on any branch, it defaults to 'origin' for fetching and 'remote.pushdefault' for pushing. Additionally, '.' (a period) is the current local repository (a dot-repository), see 'branch.<name>.merge''s final note below.\n\n\nbranch.<name>.pushremote\nWhen on branch <name>, it overrides 'branch.<name>.remote' for pushing. It also overrides 'remote.pushdefault' for pushing from branch <name>. When you pull from one place (e.g. your upstream) and push to another place (e.g. your own publishing repository), you would want to set 'remote.pushdefault' to specify the remote to push to for all branches, and use this option to override it for a specific branch.\n\n\nbranch.<name>.merge\nDefines, together with branch.<name>.remote, the upstream branch for the given branch. It tells 'git fetch'/'git pull'/'git rebase' which branch to merge and can also affect 'git push' (see push.default). When in branch <name>, it tells 'git fetch' the default refspec to be marked for merging in FETCH_HEAD. The value is handled like the remote part of a refspec, and must match a ref which is fetched from the remote given by \"branch.<name>.remote\". The merge information is used by 'git pull' (which at first calls 'git fetch') to lookup the default branch for merging. Without this option, 'git pull' defaults to merge the first refspec fetched. Specify multiple values to get an octopus merge. If you wish to setup 'git pull' so that it merges into <name> from another branch in the local repository, you can point branch.<name>.merge to the desired branch, and use the relative path setting '.' (a period) for branch.<name>.remote.\n\n\nbranch.<name>.mergeoptions\nSets default options for merging into branch <name>. The syntax and supported options are the same as those of linkgit:git-merge, but option values containing whitespace characters are currently not supported.\n\n\nbranch.<name>.rebase\nWhen true, rebase the branch <name> on top of the fetched branch, instead of merging the default branch from the default remote when \"git pull\" is run. See \"pull.rebase\" for doing this in a non branch-specific manner.\n\nWhen preserve, also pass '--preserve-merges' along to 'git rebase' so that locally committed merge commits will not be flattened by running 'git pull'.\n\n*NOTE*: this is a possibly dangerous operation; do *not* use it unless you understand the implications (see linkgit:git-rebase for details).\n\n\nbranch.<name>.description\nBranch description, can be edited with 'git branch --edit-description'. Branch description is automatically added in the format-patch cover letter or request-pull summary.\n\n\nbrowser.<tool>.cmd\nSpecify the command to invoke the specified browser. The specified command is evaluated in shell with the URLs passed as arguments. (See linkgit:git-web{litdd}browse.)\n\n\nbrowser.<tool>.path\nOverride the path for the given tool that may be used to browse HTML help (see '-w' option in linkgit:git-help) or a working repository in gitweb (see linkgit:git-instaweb).\n\n\nclean.requireForce\nA boolean to make git-clean do nothing unless given -f, -i or -n. Defaults to true.\n\n\ncolor.branch\nA boolean to enable/disable color in the output of linkgit:git-branch. May be set to 'always', 'false' (or 'never') or 'auto' (or 'true'), in which case colors are used only when the output is to a terminal. Defaults to false.\n\n\ncolor.branch.<slot>\nUse customized color for branch coloration. '<slot>' is one of 'current' (the current branch), 'local' (a local branch), 'remote' (a remote-tracking branch in refs/remotes/), 'upstream' (upstream tracking branch), 'plain' (other refs).\n\nThe value for these configuration variables is a list of colors (at most two) and attributes (at most one), separated by spaces. The colors accepted are 'normal', 'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan' and 'white'; the attributes are 'bold', 'dim', 'ul', 'blink' and 'reverse'. The first color given is the foreground; the second is the background. The position of the attribute, if any, doesn't matter.\n\n\ncolor.diff\nWhether to use ANSI escape sequences to add color to patches. If this is set to 'always', linkgit:git-diff, linkgit:git-log, and linkgit:git-show will use color for all patches. If it is set to 'true' or 'auto', those commands will only use color when output is to the terminal. Defaults to false.\n\nThis does not affect linkgit:git-format-patch or the 'git-diff-{asterisk}' plumbing commands. Can be overridden on the command line with the '--color[=<when>]' option.\n\n\ncolor.diff.<slot>\nUse customized color for diff colorization. '<slot>' specifies which part of the patch to use the specified color, and is one of 'plain' (context text), 'meta' (metainformation), 'frag' (hunk header), 'func' (function in hunk header), 'old' (removed lines), 'new' (added lines), 'commit' (commit headers), or 'whitespace' (highlighting whitespace errors). The values of these variables may be specified as in color.branch.<slot>.\n\n\ncolor.decorate.<slot>\nUse customized color for 'git log --decorate' output. '<slot>' is one of 'branch', 'remoteBranch', 'tag', 'stash' or 'HEAD' for local branches, remote-tracking branches, tags, stash and HEAD, respectively.\n\n\ncolor.grep\nWhen set to 'always', always highlight matches. When 'false' (or 'never'), never. When set to 'true' or 'auto', use color only when the output is written to the terminal. Defaults to 'false'.\n\n\ncolor.grep.<slot>\nUse customized color for grep colorization. '<slot>' specifies which part of the line to use the specified color, and is one of\n* 'context': non-matching text in context lines (when using '-A', '-B', or '-C')\n* 'filename': filename prefix (when not using '-h')\n* 'function': function name lines (when using '-p')\n* 'linenumber': line number prefix (when using '-n')\n* 'match': matching text\n* 'selected': non-matching text in selected lines\n* 'separator': separators between fields on a line (':', '-', and '=') and between hunks ('--')\n\nThe values of these variables may be specified as in color.branch.<slot>.\n\n\ncolor.interactive\nWhen set to 'always', always use colors for interactive prompts and displays (such as those used by \"git-add --interactive\" and \"git-clean --interactive\"). When false (or 'never'), never. When set to 'true' or 'auto', use colors only when the output is to the terminal. Defaults to false.\n\n\ncolor.interactive.<slot>\nUse customized color for 'git add --interactive' and 'git clean --interactive' output. '<slot>' may be 'prompt', 'header', 'help' or 'error', for four distinct types of normal output from interactive commands. The values of these variables may be specified as in color.branch.<slot>.\n\n\ncolor.pager\nA boolean to enable/disable colored output when the pager is in use (default is true).\n\n\ncolor.showbranch\nA boolean to enable/disable color in the output of linkgit:git-show-branch. May be set to 'always', 'false' (or 'never') or 'auto' (or 'true'), in which case colors are used only when the output is to a terminal. Defaults to false.\n\n\ncolor.status\nA boolean to enable/disable color in the output of linkgit:git-status. May be set to 'always', 'false' (or 'never') or 'auto' (or 'true'), in which case colors are used only when the output is to a terminal. Defaults to false.\n\n\ncolor.status.<slot>\nUse customized color for status colorization. '<slot>' is one of 'header' (the header text of the status message), 'added' or 'updated' (files which are added but not committed), 'changed' (files which are changed but not added in the index), 'untracked' (files which are not tracked by Git), 'branch' (the current branch), or 'nobranch' (the color the 'no branch' warning is shown in, defaulting to red). The values of these variables may be specified as in color.branch.<slot>.\n\n\ncolor.ui\nThis variable determines the default value for variables such as 'color.diff' and 'color.grep' that control the use of color per command family. Its scope will expand as more commands learn configuration to set a default for the '--color' option. Set it to 'false' or 'never' if you prefer Git commands not to use color unless enabled explicitly with some other configuration or the '--color' option. Set it to 'always' if you want all output not intended for machine consumption to use color, to 'true' or 'auto' (this is the default since Git 1.8.4) if you want such output to use color when written to the terminal.\n\n\ncolumn.ui\nSpecify whether supported commands should output in columns. This variable consists of a list of tokens separated by spaces or commas:\n\nThese options control when the feature should be enabled (defaults to 'never'):\n* 'always': always show in columns\n* 'never': never show in columns\n* 'auto': show in columns if the output is to the terminal\n\nThese options control layout (defaults to 'column'). Setting any of these implies 'always' if none of 'always', 'never', or 'auto' are specified.\n* 'column': fill columns before rows\n* 'row': fill rows before columns\n* 'plain': show in one column\n\nFinally, these options can be combined with a layout option (defaults to 'nodense'):\n* 'dense': make unequal size columns to utilize more space\n* 'nodense': make equal size columns\n\n\ncolumn.branch\nSpecify whether to output branch listing in 'git branch' in columns. See 'column.ui' for details.\n\n\ncolumn.clean\nSpecify the layout when list items in 'git clean -i', which always shows files and directories in columns. See 'column.ui' for details.\n\n\ncolumn.status\nSpecify whether to output untracked files in 'git status' in columns. See 'column.ui' for details.\n\n\ncolumn.tag\nSpecify whether to output tag listing in 'git tag' in columns. See 'column.ui' for details.\n\n\ncommit.cleanup\nThis setting overrides the default of the '--cleanup' option in 'git commit'. See linkgit:git-commit for details. Changing the default can be useful when you always want to keep lines that begin with comment character '#' in your log message, in which case you would do 'git config commit.cleanup whitespace' (note that you will have to remove the help lines that begin with '#' in the commit log template yourself, if you do this).\n\n\ncommit.status\nA boolean to enable/disable inclusion of status information in the commit message template when using an editor to prepare the commit message. Defaults to true.\n\n\ncommit.template\nSpecify a file to use as the template for new commit messages. \"'~/'\" is expanded to the value of '$HOME' and \"'~user/'\" to the specified user's home directory.\n\n\ncredential.helper\nSpecify an external helper to be called when a username or password credential is needed; the helper may consult external storage to avoid prompting the user for the credentials. See linkgit:gitcredentials for details.\n\n\ncredential.useHttpPath\nWhen acquiring credentials, consider the \"path\" component of an http or https URL to be important. Defaults to false. See linkgit:gitcredentials for more information.\n\n\ncredential.username\nIf no username is set for a network authentication, use this username by default. See linkgit:gitcredentials.\n\n\ncredential.<url>.helper\nSpecify an external helper to be called when a username or password credential is needed; the helper may consult external storage to avoid prompting the user for the credentials. See linkgit:gitcredentials for details.\n\n\ncredential.<url>.useHttpPath\nWhen acquiring credentials, consider the \"path\" component of an http or https URL to be important. Defaults to false. See linkgit:gitcredentials for more information.\n\n\ncredential.<url>.username\nIf no username is set for a network authentication, use this username by default. See linkgit:gitcredentials.\n\n\ndiff.autorefreshindex\nWhen using 'git diff' to compare with work tree files, do not consider stat-only change as changed. Instead, silently run 'git update-index --refresh' to update the cached stat information for paths whose contents in the work tree match the contents in the index. This option defaults to true. Note that this affects only 'git diff' Porcelain, and not lower level 'diff' commands such as 'git diff-files'.\n\n\ndiff.dirstat\nA comma separated list of '--dirstat' parameters specifying the default behavior of the '--dirstat' option to linkgit:git-diff' and friends. The defaults can be overridden on the command line (using '--dirstat=<param1,param2,...>'). The fallback defaults (when not changed by 'diff.dirstat') are 'changes,noncumulative,3'. The following parameters are available:\n\n* 'changes': Compute the dirstat numbers by counting the lines that have been removed from the source, or added to the destination. This ignores the amount of pure code movements within a file. In other words, rearranging lines in a file is not counted as much as other changes. This is the default behavior when no parameter is given.\n* 'lines': Compute the dirstat numbers by doing the regular line-based diff analysis, and summing the removed/added line counts. (For binary files, count 64-byte chunks instead, since binary files have no natural concept of lines). This is a more expensive '--dirstat' behavior than the 'changes' behavior, but it does count rearranged lines within a file as much as other changes. The resulting output is consistent with what you get from the other '--*stat' options.\n* 'files': Compute the dirstat numbers by counting the number of files changed. Each changed file counts equally in the dirstat analysis. This is the computationally cheapest '--dirstat' behavior, since it does not have to look at the file contents at all.\n* 'cumulative': Count changes in a child directory for the parent directory as well. Note that when using 'cumulative', the sum of the percentages reported may exceed 100%. The default (non-cumulative) behavior can be specified with the 'noncumulative' parameter.\n* <limit>: An integer parameter specifies a cut-off percent (3% by default). Directories contributing less than this percentage of the changes are not shown in the output.\n\nExample: The following will count changed files, while ignoring directories with less than 10% of the total amount of changed files, and accumulating child directory counts in the parent directories: 'files,10,cumulative'.\n\n\ndiff.statGraphWidth\nLimit the width of the graph part in --stat output. If set, applies to all commands generating --stat output except format-patch.\n\n\ndiff.context\nGenerate diffs with <n> lines of context instead of the default of 3. This value is overridden by the -U option.\n\n\ndiff.external\nIf this config variable is set, diff generation is not performed using the internal diff machinery, but using the given command. Can be overridden with the 'GIT_EXTERNAL_DIFF' environment variable. The command is called with parameters as described under \"git Diffs\" in linkgit:git. Note: if you want to use an external diff program only on a subset of your files, youmight want to use linkgit:gitattributes instead.\n\n\ndiff.ignoreSubmodules\nSets the default value of --ignore-submodules. Note that this affects only 'git diff' Porcelain, and not lower level 'diff' commands such as 'git diff-files'. 'git checkout' also honors this setting when reporting uncommitted changes. Setting it to 'all' disables the submodule summary normally shown by 'git commit' and 'git status' when 'status.submodulesummary' is set unless it is overridden by using the --ignore-submodules command-line option. The 'git submodule' commands are not affected by this setting.\n\n\ndiff.mnemonicprefix\nIf set, 'git diff' uses a prefix pair that is different from the standard \"a/\" and \"b/\" depending on what is being compared. When this configuration is in effect, reverse diff output also swaps the order of the prefixes:\n* 'git diff': compares the (i)ndex and the (w)ork tree;\n* 'git diff HEAD': compares a (c)ommit and the (w)ork tree;\n* 'git diff --cached': compares a (c)ommit and the (i)ndex;\n* 'git diff HEAD:file1 file2': compares an (o)bject and a (w)ork tree entity;\n* 'git diff --no-index a b': compares two non-git things (1) and (2).\n\n\ndiff.noprefix\nIf set, 'git diff' does not show any source or destination prefix.\n\n\ndiff.orderfile\nFile indicating how to order files within a diff, using one shell glob pattern per line. Can be overridden by the '-O' option to linkgit:git-diff.\n\n\ndiff.renameLimit\nThe number of files to consider when performing the copy/rename detection; equivalent to the 'git diff' option '-l'.\n\n\ndiff.renames\nTells Git to detect renames. If set to any boolean value, it will enable basic rename detection. If set to \"copies\" or \"copy\", it will detect copies, as well.\n\n\ndiff.suppressBlankEmpty\nA boolean to inhibit the standard behavior of printing a space before each empty output line. Defaults to false.\n\n\ndiff.submodule\nSpecify the format in which differences in submodules are shown. The \"log\" format lists the commits in the range like linkgit:git-submodule 'summary' does. The \"short\" format format just shows the names of the commits at the beginning and end of the range. Defaults to short.\n\n\ndiff.wordRegex\nA POSIX Extended Regular Expression used to determine what is a \"word\" when performing word-by-word difference calculations. Character sequences that match the regular expression are \"words\", all other characters are *ignorable* whitespace.\n\n\ndiff.<driver>.command\nThe custom diff driver command. See linkgit:gitattributes for details.\n\n\ndiff.<driver>.xfuncname\nThe regular expression that the diff driver should use to recognize the hunk header. A built-in pattern may also be used. See linkgit:gitattributes for details.\n\n\ndiff.<driver>.binary\nSet this option to true to make the diff driver treat files as binary. See linkgit:gitattributes for details.\n\n\ndiff.<driver>.textconv\nThe command that the diff driver should call to generate the text-converted version of a file. The result of the conversion is used to generate a human-readable diff. See linkgit:gitattributes for details.\n\n\ndiff.<driver>.wordregex\nThe regular expression that the diff driver should use to split words in a line. See linkgit:gitattributes for details.\n\n\ndiff.<driver>.cachetextconv\nSet this option to true to make the diff driver cache the text conversion outputs. See linkgit:gitattributes for details.\n\n\ndiff.tool\nControls which diff tool is used by linkgit:git-difftool. This variable overrides the value configured in 'merge.tool'. The list below shows the valid built-in values. Any other value is treated as a custom diff tool and requires that a corresponding difftool.<tool>.cmd variable is defined.\n\n\ndiff.algorithm\nChoose a diff algorithm. The variants are as follows:\n* 'default', 'myers': The basic greedy diff algorithm. Currently, this is the default.\n* 'minimal': Spend extra time to make sure the smallest possible diff is produced.\n* 'patience':  Use \"patience diff\" algorithm when generating patches.\n* 'histogram': This algorithm extends the patience algorithm to \"support low-occurrence common elements\".\n\n\ndifftool.<tool>.path\nOverride the path for the given tool. This is useful in case your tool is not in the PATH.\n\n\ndifftool.<tool>.cmd\nSpecify the command to invoke the specified diff tool. The specified command is evaluated in shell with the following variables available: 'LOCAL' is set to the name of the temporary file containing the contents of the diff pre-image and 'REMOTE' is set to the name of the temporary file containing the contents of the diff post-image.\n\n\ndifftool.prompt\nPrompt before each invocation of the diff tool.\n\n\nfetch.recurseSubmodules\nThis option can be either set to a boolean value or to 'on-demand'. Setting it to a boolean changes the behavior of fetch and pull to unconditionally recurse into submodules when set to true or to not recurse at all when set to false. When set to 'on-demand' (the default value), fetch and pull will only recurse into a populated submodule when its superproject retrieves a commit that updates the submodule's reference.\n\n\nfetch.fsckObjects\nIf it is set to true, git-fetch-pack will check all fetched objects. It will abort in the case of a malformed object or a broken link. The result of an abort are only dangling objects. Defaults to false. If not set, the value of 'transfer.fsckObjects' is used instead.\n\n\nfetch.unpackLimit\nIf the number of objects fetched over the Git native transfer is below this limit, then the objects will be unpacked into loose object files. However if the number of received objects equals or exceeds this limit then the received pack will be stored as a pack, after adding any missing delta bases. Storing the pack from a push can make the push operation complete faster, especially on slow filesystems. If not set, the value of 'transfer.unpackLimit' is used instead.\n\n\nfetch.prune\nIf true, fetch will automatically behave as if the '--prune' option was given on the command line. See also 'remote.<name>.prune'.\n\n\nformat.attach\nEnable multipart/mixed attachments as the default for 'format-patch'. The value can also be a double quoted string which will enable attachments as the default and set the value as the boundary. See the --attach option in linkgit:git-format-patch.\n\n\nformat.numbered\nA boolean which can enable or disable sequence numbers in patch subjects. It defaults to \"auto\" which enables it only if there is more than one patch. It can be enabled or disabled for all messages by setting it to \"true\" or \"false\". See --numbered option in linkgit:git-format-patch.\n\n\nformat.headers\nAdditional email headers to include in a patch to be submitted by mail. See linkgit:git-format-patch.\n\n\nformat.to\nAdditional recipients to include in a patch to be submitted by mail. See the --to and --cc options in linkgit:git-format-patch.\n\n\nformat.cc\nAdditional recipients to include in a patch to be submitted by mail. See the --to and --cc options in linkgit:git-format-patch.\n\n\nformat.subjectprefix\nThe default for format-patch is to output files with the '[PATCH]' subject prefix. Use this variable to change that prefix.\n\n\nformat.signature\nThe default for format-patch is to output a signature containing the Git version number. Use this variable to change that default. Set this variable to the empty string (\"\") to suppress signature generation.\n\n\nformat.suffix\nThe default for format-patch is to output files with the suffix '.patch'. Use this variable to change that suffix (make sure to include the dot if you want it).\n\n\nformat.pretty\nThe default pretty format for log/show/whatchanged command, See linkgit:git-log, linkgit:git-show, linkgit:git-whatchanged.\n\n\nformat.thread\nThe default threading style for 'git format-patch'. Can be a boolean value, or 'shallow' or 'deep'. 'shallow' threading makes every mail a reply to the head of the series, where the head is chosen from the cover letter, the '--in-reply-to', and the first patch mail, in this order. 'deep' threading makes every mail a reply to the previous one. A true boolean value is the same as 'shallow', and a false value disables threading.\n\n\nformat.signoff\nA boolean value which lets you enable the '-s/--signoff' option of format-patch by default. *Note:* Adding the Signed-off-by: line to a patch should be a conscious act and means that you certify you have the rights to submit this work under the same open source license. Please see the 'SubmittingPatches' document for further discussion.\n\n\nformat.coverLetter\nA boolean that controls whether to generate a cover-letter when format-patch is invoked, but in addition can be set to \"auto\", to generate a cover-letter only when there's more than one patch.\n\n\nfilter.<driver>.clean\nThe command which is used to convert the content of a worktree file to a blob upon checkin. See linkgit:gitattributes for details.\n\n\nfilter.<driver>.smudge\nThe command which is used to convert the content of a blob object to a worktree file upon checkout. See linkgit:gitattributes for details.\n\n\ngc.aggressiveWindow\nThe window size parameter used in the delta compression algorithm used by 'git gc --aggressive'. This defaults to 250.\n\n\ngc.auto\nWhen there are approximately more than this many loose objects in the repository, 'git gc --auto' will pack them. Some Porcelain commands use this command to perform a light-weight garbage collection from time to time. The default value is 6700. Setting this to 0 disables it.\n\n\ngc.autopacklimit\nWhen there are more than this many packs that are not marked with '*.keep' file in the repository, 'git gc --auto' consolidates them into one larger pack. The defaultvalue is 50. Setting this to 0 disables it.\n\n\ngc.packrefs\nRunning 'git pack-refs' in a repository renders it unclonable by Git versions prior to 1.5.1.2 over dumb transports such as HTTP. This variable determines whether 'git gc' runs 'git pack-refs'. This can be set to 'notbare' to enable it within all non-bare repos or it can be set to a boolean value. The default is 'true'.\n\n\ngc.pruneexpire\nWhen 'git gc' is run, it will call 'prune --expire 2.weeks.ago'. Override the grace period with this config variable. The value \"now\" may be used to disable this grace period and always prune unreachable objects immediately.\n\n\ngc.reflogexpire\n'git reflog expire' removes reflog entries older than this time; defaults to 90 days.\n\n\ngc.<pattern>.reflogexpire\n'git reflog expire' removes reflog entries older than this time; defaults to 90 days. With \"<pattern>\" (e.g. \"refs/stash\") in the middle the setting applies only to the refs that match the <pattern>.\n\n\ngc.reflogexpireunreachable\n'git reflog expire' removes reflog entries older than this time and are not reachable from the current tip; defaults to 30 days.\n\n\ngc.<ref>.reflogexpireunreachable\n'git reflog expire' removes reflog entries older than this time and are not reachable from the current tip; defaults to 30 days. With \"<pattern>\" (e.g. \"refs/stash\") in the middle, the setting applies only to the refs that match the <pattern>.\n\n\ngc.rerereresolved\nRecords of conflicted merge you resolved earlier are kept for this many days when 'git rerere gc' is run. The default is 60 days. See linkgit:git-rerere.\n\n\ngc.rerereunresolved\nRecords of conflicted merge you have not resolved are kept for this many days when 'git rerere gc' is run. The default is 15 days. See linkgit:git-rerere.\n\n\ngitcvs.commitmsgannotation\nAppend this string to each commit message. Set to empty string to disable this feature. Defaults to \"via git-CVS emulator\".\n\n\ngitcvs.<access_method>.commitmsgannotation\nAppend this string to each commit message. Set to empty string to disable this feature. Defaults to \"via git-CVS emulator\".\n\n\ngitcvs.enabled\nWhether the CVS server interface is enabled for this repository. See linkgit:git-cvsserver.\n\n\ngitcvs.<access_method>.enabled\nWhether the CVS server interface is enabled for this repository. See linkgit:git-cvsserver.\n\n\ngitcvs.logfile\nPath to a log file where the CVS server interface well... logs various stuff. See linkgit:git-cvsserver.\n\n\ngitcvs.<access_method>.logfile\nPath to a log file where the CVS server interface well... logs various stuff. See linkgit:git-cvsserver.\n\n\ngitcvs.usecrlfattr\nIf true, the server will look up the end-of-line conversion attributes for files to determine the '-k' modes to use. If the attributes force Git to treat a file as text, the '-k' mode will be left blank so CVS clients will treat it as text. If they suppress text conversion, the file will be set with '-kb' mode, which suppresses any newline munging the client might otherwise do. If the attributes do not allow the file type to be determined, then 'gitcvs.allbinary' is used. See linkgit:gitattributes.\n\n\ngitcvs.allbinary\nThis is used if 'gitcvs.usecrlfattr' does not resolve the correct '-kb' mode to use. If true, all unresolved files are sent to the client in mode '-kb'. This causes the client to treat them as binary files, which suppresses any newline munging it otherwise might do. Alternatively, if it is set to \"guess\", then the contents of the file are examined to decide if it is binary, similar to 'core.autocrlf'.\n\n\ngitcvs.dbname\nDatabase used by git-cvsserver to cache revision information derived from the Git repository. The exact meaning depends on the used database driver, for SQLite (which is the default driver) this is a filename. Supports variable substitution (see linkgit:git-cvsserver for details). May not contain semicolons (';'). Default: '%Ggitcvs.%m.sqlite'\n\n\ngitcvs.<access_method>.dbname\nDatabase used by git-cvsserver to cache revision information derived from the Git repository. The exact meaning depends on the used database driver, for SQLite (which is the default driver) this is a filename. Supports variable substitution (see linkgit:git-cvsserver for details). May not contain semicolons (';'). Default: '%Ggitcvs.%m.sqlite'\n\n\ngitcvs.dbdriver\nUsed Perl DBI driver. You can specify any available driver for this here, but it might not work. git-cvsserver is tested with 'DBDSQLite', reported to work with 'DBDPg', and reported *not* to work with 'DBDmysql'. Experimental feature. May not contain double colons (':'). Default: 'SQLite'. See linkgit:git-cvsserver.\n\n\ngitcvs.<access_method>.dbdriver\nUsed Perl DBI driver. You can specify any available driver for this here, but it might not work. git-cvsserver is tested with 'DBDSQLite', reported to work with 'DBDPg', and reported *not* to work with 'DBDmysql'. Experimental feature. May not contain double colons (':'). Default: 'SQLite'. See linkgit:git-cvsserver.\n\n\ngitcvs.dbuser\nDatabase user and password. Only useful if setting 'gitcvs.dbdriver', since SQLite has no concept of database users and/or passwords. 'gitcvs.dbuser' supports variable substitution (see linkgit:git-cvsserver for details).\n\n\ngitcvs.<access_method>.dbuser\nDatabase user and password. Only useful if setting 'gitcvs.dbdriver', since SQLite has no concept of database users and/or passwords. 'gitcvs.dbuser' supports variable substitution (see linkgit:git-cvsserver for details).\n\n\ngitcvs.dbpass\nDatabase user and password. Only useful if setting 'gitcvs.dbdriver', since SQLite has no concept of database users and/or passwords. 'gitcvs.dbuser' supports variable substitution (see linkgit:git-cvsserver for details).\n\n\ngitcvs.<access_method>.dbpass\nDatabase user and password. Only useful if setting 'gitcvs.dbdriver', since SQLite has no concept of database users and/or passwords. 'gitcvs.dbuser' supports variable substitution (see linkgit:git-cvsserver for details).\n\n\ngitcvs.dbTableNamePrefix\nDatabase table name prefix. Prepended to the names of any database tables used, allowing a single database to be used for several repositories. Supports variable substitution (see linkgit:git-cvsserver for details). Any non-alphabetic characters will be replaced with underscores.\n\n\ngitcvs.<access_method>.dbTableNamePrefix\nDatabase table name prefix. Prepended to the names of any database tables used, allowing a single database to be used for several repositories. Supports variable substitution (see linkgit:git-cvsserver for details). Any non-alphabetic characters will be replaced with underscores.\n\n\ngitweb.category\nSee linkgit:gitweb for description.\n\n\ngitweb.description\nSee linkgit:gitweb for description.\n\n\ngitweb.owner\nSee linkgit:gitweb for description.\n\n\ngitweb.url\nSee linkgit:gitweb for description.\n\n\ngitweb.avatar\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.blame\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.grep\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.highlight\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.patches\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.pickaxe\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.remote_heads\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.showsizes\nSee linkgit:gitweb.conf for description.\n\n\ngitweb.snapshot\nSee linkgit:gitweb.conf for description.\n\n\ngrep.lineNumber\nIf set to true, enable '-n' option by default.\n\n\ngrep.patternType\nSet the default matching behavior. Using a value of 'basic', 'extended', 'fixed', or 'perl' will enable the '--basic-regexp', '--extended-regexp', '--fixed-strings', or '--perl-regexp' option accordingly, while the value 'default' will return to the default matching behavior.\n\n\ngrep.extendedRegexp\nIf set to true, enable '--extended-regexp' option by default. This option is ignored when the 'grep.patternType' option is set to a value other than 'default'.\n\n\ngpg.program\nUse this custom program instead of \"gpg\" found on $PATH when making or verifying a PGP signature. The program must support the same command line interface as GPG, namely, to verify a detached signature, \"gpg --verify $file - <$signature\" is run, and the program is expected to signal a good signature by exiting with code 0, and to generate an ascii-armored detached signature, the standard input of \"gpg -bsau $key\" is fed with the contents to be signed, and the program is expected to send the result to its standard output.\n\n\ngui.commitmsgwidth\nDefines how wide the commit message window is in the linkgit:git-gui. \"75\" is the default.\n\n\ngui.diffcontext\nSpecifies how many context lines should be used in calls to diff made by the linkgit:git-gui. The default is \"5\".\n\n\ngui.encoding\nSpecifies the default encoding to use for displaying of file contents in linkgit:git-gui and linkgit:gitk. It can be overridden by setting the 'encoding' attribute for relevant files (see linkgit:gitattributes). If this option is not set, the tools default to the locale encoding.\n\n\ngui.matchtrackingbranch\nDetermines if new branches created with linkgit:git-gui should default to tracking remote branches with matching names or not. Default: \"false\".\n\n\ngui.newbranchtemplate\nIs used as suggested name when creating new branches using the linkgit:git-gui.\n\n\ngui.pruneduringfetch\n\"true\" if linkgit:git-gui should prune remote-tracking branches when performing a fetch. The default value is \"false\".\n\n\ngui.trustmtime\nDetermines if linkgit:git-gui should trust the file modification timestamp or not. By default the timestamps are not trusted.\n\n\ngui.spellingdictionary\nSpecifies the dictionary used for spell checking commit messages in the linkgit:git-gui. When set to \"none\" spell checking is turned off.\n\n\ngui.fastcopyblame\nIf true, 'git gui blame' uses '-C' instead of '-C -C' for original location detection. It makes blame significantly faster on huge repositories at the expense of less thorough copy detection.\n\n\ngui.copyblamethreshold\nSpecifies the threshold to use in 'git gui blame' original location detection, measured in alphanumeric characters. See the linkgit:git-blame manual for more information on copy detection.\n\n\ngui.blamehistoryctx\nSpecifies the radius of history context in days to show in linkgit:gitk for the selected commit, when the 'Show History Context' menu item is invoked from 'git gui blame'. If this variable is set to zero, the whole history is shown.\n\n\nguitool.<name>.cmd\nSpecifies the shell command line to execute when the corresponding item of the linkgit:git-gui 'Tools' menu is invoked. This option is mandatory for every tool. The command is executed from the root of the working directory, and in the environment it receives the name of the tool as 'GIT_GUITOOL', the name of the currently selected file as 'FILENAME', and the name of the current branch as 'CUR_BRANCH' (if the head is detached, 'CUR_BRANCH' is empty).\n\n\nguitool.<name>.needsfile\nRun the tool only if a diff is selected in the GUI. It guarantees that 'FILENAME' is not empty.\n\n\nguitool.<name>.noconsole\nRun the command silently, without creating a window to display its output.\n\n\nguitool.<name>.norescan\nDon't rescan the working directory for changes after the tool finishes execution.\n\n\nguitool.<name>.confirm\nShow a confirmation dialog before actually running the tool.\n\n\nguitool.<name>.argprompt\nRequest a string argument from the user, and pass it to the tool through the 'ARGS' environment variable. Since requesting an argument implies confirmation, the 'confirm' option has no effect if this is enabled. If the option is set to 'true', 'yes', or '1', the dialog uses a built-in generic prompt; otherwise the exact value of the variable is used.\n\n\nguitool.<name>.revprompt\nRequest a single valid revision from the user, and set the 'REVISION' environment variable. In other aspects this option is similar to 'argprompt', and can be used together with it.\n\n\nguitool.<name>.revunmerged\nShow only unmerged branches in the 'revprompt' subdialog. This is useful for tools similar to merge or rebase, but not for things like checkout or reset.\n\n\nguitool.<name>.title\nSpecifies the title to use for the prompt dialog. The default is the tool name.\n\n\nguitool.<name>.prompt\nSpecifies the general prompt string to display at the top of the dialog, before subsections for 'argprompt' and 'revprompt'. The default value includes the actual command.\n\n\nhelp.browser\nSpecify the browser that will be used to display help in the 'web' format. See linkgit:git-help.\n\n\nhelp.format\nOverride the default help format used by linkgit:git-help. Values 'man', 'info', 'web' and 'html' are supported. 'man' is the default. 'web' and 'html' are the same.\n\n\nhelp.autocorrect\nAutomatically correct and execute mistyped commands after waiting for the given number of deciseconds (0.1 sec). If more than one command can be deduced from the entered text, nothing will be executed. If the value of this option is negative, the corrected command will be executed immediately. If the value is 0 - the command will be just shown but not executed. This is the default.\n\n\nhelp.htmlpath\nSpecify the path where the HTML documentation resides. File system paths and URLs are supported. HTML pages will be prefixed with this path when help is displayed in the 'web' format. This defaults to the documentation path of your Git installation.\n\n\nhttp.proxy\nOverride the HTTP proxy, normally configured using the 'http_proxy', 'https_proxy', and 'all_proxy' environment variables (see 'curl(1)'). This can be overridden on a per-remote basis; see remote.<name>.proxy\n\n\nhttp.cookiefile\nFile containing previously stored cookie lines which should be used in the Git http session, if they match the server. The file format of the file to read cookies from should be plain HTTP headers or the Netscape/Mozilla cookie file format (see linkgit:curl). NOTE that the file specified with http.cookiefile is only used as input unless http.saveCookies is set.\n\n\nhttp.savecookies\nIf set, store cookies received during requests to the file specified by http.cookiefile. Has no effect if http.cookiefile is unset.\n\n\nhttp.sslVerify\nWhether to verify the SSL certificate when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_NO_VERIFY' environment variable.\n\n\nhttp.sslCert\nFile containing the SSL certificate when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_CERT' environment variable.\n\n\nhttp.sslKey\nFile containing the SSL private key when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_KEY' environment variable.\n\n\nhttp.sslCertPasswordProtected\nEnable Git's password prompt for the SSL certificate. Otherwise OpenSSL will prompt the user, possibly many times, if the certificate or private key is encrypted. Can be overridden by the 'GIT_SSL_CERT_PASSWORD_PROTECTED' environment variable.\n\n\nhttp.sslCAInfo\nFile containing the certificates to verify the peer with when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_CAINFO' environment variable.\n\n\nhttp.sslCAPath\nPath containing files with the CA certificates to verify the peer with when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_CAPATH' environment variable.\n\n\nhttp.sslTry\nAttempt to use AUTH SSL/TLS and encrypted data transfers when connecting via regular FTP protocol. This might be needed if the FTP server requires it for security reasons or you wish to connect securely whenever remote FTP server supports it. Default is false since it might trigger certificate verification errors on misconfigured servers.\n\n\nhttp.maxRequests\nHow many HTTP requests to launch in parallel. Can be overridden by the 'GIT_HTTP_MAX_REQUESTS' environment variable. Default is 5.\n\n\nhttp.minSessions\nThe number of curl sessions (counted across slots) to be kept across requests. They will not be ended with curl_easy_cleanup() until http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this value will be capped at 1. Defaults to 1.\n\n\nhttp.postBuffer\nMaximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.\n\n\nhttp.lowSpeedLimit\nIf the HTTP transfer speed is less than 'http.lowSpeedLimit' for longer than 'http.lowSpeedTime' seconds, the transfer is aborted. Can be overridden by the 'GIT_HTTP_LOW_SPEED_LIMIT' and 'GIT_HTTP_LOW_SPEED_TIME' environment variables.\n\n\nhttp.lowSpeedTime\nIf the HTTP transfer speed is less than 'http.lowSpeedLimit' for longer than 'http.lowSpeedTime' seconds, the transfer is aborted. Can be overridden by the 'GIT_HTTP_LOW_SPEED_LIMIT' and 'GIT_HTTP_LOW_SPEED_TIME' environment variables.\n\n\nhttp.noEPSV\nA boolean which disables using of EPSV ftp command by curl. This can helpful with some \"poor\" ftp servers which don't support EPSV mode. Can be overridden by the 'GIT_CURL_FTP_NO_EPSV' environment variable. Default is false (curl will use EPSV).\n\n\nhttp.useragent\nThe HTTP USER_AGENT string presented to an HTTP server. The default value represents the version of the client Git such as git/1.7.1. This option allows you to override this value to a more common value such as Mozilla/4.0. This may be necessary, for instance, if connecting through a firewall that restricts HTTP connections to a set of common USER_AGENT strings (but not including those like git/1.7.1). Can be overridden by the 'GIT_HTTP_USER_AGENT' environment variable.\n\n\nhttp.<url>.proxy\nOverride the HTTP proxy, normally configured using the 'http_proxy', 'https_proxy', and 'all_proxy' environment variables (see 'curl(1)'). This can be overridden on a per-remote basis; see remote.<name>.proxy\n\n\nhttp.<url>.cookiefile\nFile containing previously stored cookie lines which should be used in the Git http session, if they match the server. The file format of the file to read cookies from should be plain HTTP headers or the Netscape/Mozilla cookie file format (see linkgit:curl). NOTE that the file specified with http.<url>.cookiefile is only used as input unless http.<url>.saveCookies is set.\n\n\nhttp.<url>.savecookies\nIf set, store cookies received during requests to the file specified by http.<url>.cookiefile. Has no effect if http.<url>.cookiefile is unset.\n\n\nhttp.<url>.sslVerify\nWhether to verify the SSL certificate when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_NO_VERIFY' environment variable.\n\n\nhttp.<url>.sslCert\nFile containing the SSL certificate when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_CERT' environment variable.\n\n\nhttp.<url>.sslKey\nFile containing the SSL private key when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_KEY' environment variable.\n\n\nhttp.<url>.sslCertPasswordProtected\nEnable Git's password prompt for the SSL certificate. Otherwise OpenSSL will prompt the user, possibly many times, if the certificate or private key is encrypted. Can be overridden by the 'GIT_SSL_CERT_PASSWORD_PROTECTED' environment variable.\n\n\nhttp.<url>.sslCAInfo\nFile containing the certificates to verify the peer with when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_CAINFO' environment variable.\n\n\nhttp.<url>.sslCAPath\nPath containing files with the CA certificates to verify the peer with when fetching or pushing over HTTPS. Can be overridden by the 'GIT_SSL_CAPATH' environment variable.\n\n\nhttp.<url>.sslTry\nAttempt to use AUTH SSL/TLS and encrypted data transfers when connecting via regular FTP protocol. This might be needed if the FTP server requires it for security reasons or you wish to connect securely whenever remote FTP server supports it. Default is false since it might trigger certificate verification errors on misconfigured servers.\n\n\nhttp.<url>.maxRequests\nHow many HTTP requests to launch in parallel. Can be overridden by the 'GIT_HTTP_MAX_REQUESTS' environment variable. Default is 5.\n\n\nhttp.<url>.minSessions\nThe number of curl sessions (counted across slots) to be kept across requests. They will not be ended with curl_easy_cleanup() until http_cleanup() is invoked. If USE_CURL_MULTI is not defined, this value will be capped at 1. Defaults to 1.\n\n\nhttp.<url>.postBuffer\nMaximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.\n\n\nhttp.<url>.lowSpeedLimit\nIf the HTTP transfer speed is less than 'http.<url>.lowSpeedLimit' for longer than 'http.<url>.lowSpeedTime' seconds, the transfer is aborted. Can be overridden by the 'GIT_HTTP_LOW_SPEED_LIMIT' and 'GIT_HTTP_LOW_SPEED_TIME' environment variables.\n\n\nhttp.<url>.lowSpeedTime\nIf the HTTP transfer speed is less than 'http.<url>.lowSpeedLimit' for longer than 'http.<url>.lowSpeedTime' seconds, the transfer is aborted. Can be overridden by the 'GIT_HTTP_LOW_SPEED_LIMIT' and 'GIT_HTTP_LOW_SPEED_TIME' environment variables.\n\n\nhttp.<url>.noEPSV\nA boolean which disables using of EPSV ftp command by curl. This can helpful with some \"poor\" ftp servers which don't support EPSV mode. Can be overridden by the 'GIT_CURL_FTP_NO_EPSV' environment variable. Default is false (curl will use EPSV).\n\n\nhttp.<url>.useragent\nThe HTTP USER_AGENT string presented to an HTTP server. The default value represents the version of the client Git such as git/1.7.1. This option allows you to override this value to a more common value such as Mozilla/4.0. This may be necessary, for instance, if connecting through a firewall that restricts HTTP connections to a set of common USER_AGENT strings (but not including those like git/1.7.1). Can be overridden by the 'GIT_HTTP_USER_AGENT' environment variable.\n\n\ni18n.commitEncoding\nCharacter encoding the commit messages are stored in; Git itself does not care per se, but this information is necessary e.g. when importing commits from emails or in the gitk graphical history browser (and possibly at other places in the future or in other porcelains). See e.g. linkgit:git-mailinfo. Defaults to 'utf-8'.\n\n\ni18n.logOutputEncoding\nCharacter encoding the commit messages are converted to when running 'git log' and friends.\n\n\nimap\nThe configuration variables in the 'imap' section are described in linkgit:git-imap-send.\n\n\ninit.templatedir\nSpecify the directory from which templates will be copied. (See the \"TEMPLATE DIRECTORY\" section of linkgit:git-init.)\n\n\ninstaweb.browser\nSpecify the program that will be used to browse your working repository in gitweb. See linkgit:git-instaweb.\n\n\ninstaweb.httpd\nThe HTTP daemon command-line to start gitweb on your working repository. See linkgit:git-instaweb.\n\n\ninstaweb.local\nIf true the web server started by linkgit:git-instaweb will be bound to the local IP (127.0.0.1).\n\n\ninstaweb.modulepath\nThe default module path for linkgit:git-instaweb to use instead of /usr/lib/apache2/modules. Only used if httpd is Apache.\n\n\ninstaweb.port\nThe port number to bind the gitweb httpd to. See linkgit:git-instaweb.\n\n\ninteractive.singlekey\nIn interactive commands, allow the user to provide one-letter input with a single key (i.e., without hitting enter). Currently this is used by the '--patch' mode of linkgit:git-add, linkgit:git-checkout, linkgit:git-commit, linkgit:git-reset, and linkgit:git-stash. Note that this setting is silently ignored if portable keystroke input is not available.\n\n\nlog.abbrevCommit\nIf true, makes linkgit:git-log, linkgit:git-show, and linkgit:git-whatchanged assume '--abbrev-commit'. You may override this option with '--no-abbrev-commit'.\n\n\nlog.date\nSet the default date-time mode for the 'log' command. Setting a value for log.date is similar to using 'git log''s '--date' option. Possible values are 'relative', 'local', 'default', 'iso', 'rfc', and 'short'; see linkgit:git-log for details.\n\n\nlog.decorate\nPrint out the ref names of any commits that are shown by the log command. If 'short' is specified, the ref name prefixes 'refs/heads/', 'refs/tags/' and 'refs/remotes/' will not be printed. If 'full' is specified, the full ref name (including prefix) will be printed. This is the same as the log commands '--decorate' option.\n\n\nlog.showroot\nIf true, the initial commit will be shown as a big creation event. This is equivalent to a diff against an empty tree. Tools like linkgit:git-log or linkgit:git-whatchanged, which normally hide the root commit will now show it. True by default.\n\n\nlog.mailmap\nIf true, makes linkgit:git-log, linkgit:git-show, and linkgit:git-whatchanged assume '--use-mailmap'.\n\n\nmailmap.file\nThe location of an augmenting mailmap file. The default mailmap, located in the root of the repository, is loaded first, then the mailmap file pointed to by this variable. The location of the mailmap file may be in a repository subdirectory, or somewhere outside of the repository itself. See linkgit:git-shortlog and linkgit:git-blame.\n\n\nmailmap.blob\nLike 'mailmap.file', but consider the value as a reference to a blob in the repository. If both 'mailmap.file' and 'mailmap.blob' are given, both are parsed, with entries from 'mailmap.file' taking precedence. In a bare repository, this defaults to 'HEAD:.mailmap'. In a non-bare repository, it defaults to empty.\n\n\nman.viewer\nSpecify the programs that may be used to display help in the 'man' format. See linkgit:git-help.\n\n\nman.<tool>.cmd\nSpecify the command to invoke the specified man viewer. The specified command is evaluated in shell with the man page passed as argument. (See linkgit:git-help.)\n\n\nman.<tool>.path\nOverride the path for the given tool that may be used to display help in the 'man' format. See linkgit:git-help.\n\n\nmergetool.<tool>.path\nOverride the path for the given tool. This is useful in case your tool is not in the PATH.\n\n\nmergetool.<tool>.cmd\nSpecify the command to invoke the specified merge tool. The specified command is evaluated in shell with the following variables available: 'BASE' is the name of a temporary file containing the common base of the files to be merged, if available; 'LOCAL' is the name of a temporary file containing the contents of the file on the current branch; 'REMOTE' is the name of a temporary file containing the contents of the file from the branch being merged; 'MERGED' contains the name of the file to which the merge tool should write the results of a successful merge.\n\n\nmergetool.<tool>.trustExitCode\nFor a custom merge command, specify whether the exit code of the merge command can be used to determine whether the merge was successful. If this is not set to true then the merge target file timestamp is checked and the merge assumed to have been successful if the file has been updated, otherwise the user is prompted to indicate the success of the merge.\n\n\nmergetool.keepBackup\nAfter performing a merge, the original file with conflict markers can be saved as a file with a '.orig' extension. If this variable is set to 'false' then this file is not preserved. Defaults to 'true' (i.e. keep the backup files).\n\n\nmergetool.keepTemporaries\nWhen invoking a custom merge tool, Git uses a set of temporary files to pass to the tool. If the tool returns an error and this variable is set to 'true', then these temporary files will be preserved, otherwise they will be removed after the tool has exited. Defaults to 'false'.\n\n\nmergetool.prompt\nPrompt before each invocation of the merge resolution program.\n\n\nnotes.displayRef\nThe (fully qualified) refname from which to show notes when showing commit messages. The value of this variable can be set to a glob, in which case notes from all matching refs will be shown. You may also specify this configuration variable several times. A warning will be issued for refs that do not exist, but a glob that does not match any refs is silently ignored.\n\nThis setting can be overridden with the 'GIT_NOTES_DISPLAY_REF' environment variable, which must be a colon separated list of refs or globs.\n\nThe effective value of \"core.notesRef\" (possibly overridden by GIT_NOTES_REF) is also implicitly added to the list of refs to be displayed.\n\n\nnotes.rewrite.<command>\nWhen rewriting commits with <command> (currently 'amend' or 'rebase') and this variable is set to 'true', Git automatically copies your notes from the original to the rewritten commit. Defaults to 'true', but see \"notes.rewriteRef\" below.\n\n\nnotes.rewriteMode\nWhen copying notes during a rewrite (see the \"notes.rewrite.<command>\" option), determines what to do if the target commit already has a note. Must be one of 'overwrite', 'concatenate', or 'ignore'. Defaults to 'concatenate'.\n\nThis setting can be overridden with the 'GIT_NOTES_REWRITE_MODE' environment variable.\n\n\nnotes.rewriteRef\nWhen copying notes during a rewrite, specifies the (fully qualified) ref whose notes should be copied. The ref may be a glob, in which case notes in all matching refs will be copied. You may also specify this configuration several times.\n\nDoes not have a default value; you must configure this variable to enable note rewriting. Set it to 'refs/notes/commits' to enable rewriting for the default commit notes.\n\nThis setting can be overridden with the 'GIT_NOTES_REWRITE_REF' environment variable, which must be a colon separated list of refs or globs.\n\n\npack.window\nThe size of the window used by linkgit:git-pack-objects when no window size is given on the command line. Defaults to 10.\n\n\npack.depth\nThe maximum delta depth used by linkgit:git-pack-objects when no maximum depth is given on the command line. Defaults to 50.\n\n\npack.windowMemory\nThe window memory size limit used by linkgit:git-pack-objects when no limit is given on the command line. The value can be suffixed with \"k\", \"m\", or \"g\". Defaults to 0, meaning no limit.\n\n\npack.compression\nAn integer -1..9, indicating the compression level for objects in a pack file. -1 is the zlib default. 0 means no compression, and 1..9 are various speed/size tradeoffs, 9 being slowest. If not set, defaults to core.compression. If that is not set, defaults to -1, the zlib default, which is \"a default compromise between speed and compression (currently equivalent to level 6).\"\n\nNote that changing the compression level will not automatically recompress all existing objects. You can force recompression by passing the -F option to linkgit:git-repack.\n\n\npack.deltaCacheSize\nThe maximum memory in bytes used for caching deltas in linkgit:git-pack-objects before writing them out to a pack. This cache is used to speed up the writing object phase by not having to recompute the final delta result once the best match for all objects is found. Repacking large repositories on machines which are tight with memory might be badly impacted by this though, especially if this cache pushes the system into swapping. A value of 0 means no limit. The smallest size of 1 byte may be used to virtually disable this cache. Defaults to 256 MiB.\n\n\npack.deltaCacheLimit\nThe maximum size of a delta, that is cached in linkgit:git-pack-objects. This cache is used to speed up the writing object phase by not having to recompute the final delta result once the best match for all objects is found. Defaults to 1000.\n\n\npack.threads\nSpecifies the number of threads to spawn when searching for best delta matches. This requires that linkgit:git-pack-objects be compiled with pthreads otherwise this option is ignored with a warning. This is meant to reduce packing time on multiprocessor machines. The required amount of memory for the delta search window is however multiplied by the number of threads. Specifying 0 will cause Git to auto-detect the number of CPU's and set the number of threads accordingly.\n\n\npack.indexVersion\nSpecify the default pack index version. Valid values are 1 for legacy pack index used by Git versions prior to 1.5.2, and 2 for the new pack index with capabilities for packs larger than 4 GB as well as proper protection against the repacking of corrupted packs. Version 2 is the default. Note that version 2 is enforced and this config option ignored whenever the corresponding pack is larger than 2 GB.\n\nIf you have an old Git that does not understand the version 2 '*.idx' file, cloning or fetching over a non native protocol (e.g. \"http\" and \"rsync\") that will copy both '*.pack' file and corresponding '*.idx' file from the other side may give you a repository that cannot be accessed with your older version of Git. If the '*.pack' file is smaller than 2 GB, however, you can use linkgit:git-index-pack on the *.pack file to regenerate the '*.idx' file.\n\n\npack.packSizeLimit\nThe maximum size of a pack. This setting only affects packing to a file when repacking, i.e. the git:// protocol is unaffected. It can be overridden by the '--max-pack-size' option of linkgit:git-repack. The minimum size allowed is limited to 1 MiB. The default is unlimited. Common unit suffixes of 'k', 'm', or 'g' are supported.\n\n\npager.<cmd>\nIf the value is boolean, turns on or off pagination of the output of a particular Git subcommand when writing to a tty. Otherwise, turns on pagination for the subcommand using the pager specified by the value of 'pager.<cmd>'. If '--paginate' or '--no-pager' is specified on the command line, it takes precedence over this option. To disable pagination for all commands, set 'core.pager' or 'GIT_PAGER' to 'cat'.\n\n\npretty.<name>\nAlias for a --pretty= format string, as specified in linkgit:git-log. Any aliases defined here can be used just as the built-in pretty formats could. For example, running 'git config pretty.changelog \"format:* %H %s\"' would cause the invocation 'git log --pretty=changelog' to be equivalent to running 'git log \"--pretty=format:* %H %s\"'. Note that an alias with the same name as a built-in format will be silently ignored.\n\n\npull.rebase\nWhen true, rebase branches on top of the fetched branch, instead of merging the default branch from the default remote when \"git pull\" is run. See \"branch.<name>.rebase\" for setting this on a per-branch basis.\n\nWhen preserve, also pass '--preserve-merges' along to 'git rebase' so that locally committed merge commits will not be flattened by running 'git pull'.\n\n*NOTE*: this is a possibly dangerous operation; do *not* use it unless you understand the implications (see linkgit:git-rebase for details).\n\n\npull.octopus\nThe default merge strategy to use when pulling multiple branches at once.\n\n\npull.twohead\nThe default merge strategy to use when pulling a single branch.\n\n\npush.default\nDefines the action 'git push' should take if no refspec is explicitly given. Different values are well-suited for specific workflows; for instance, in a purely central workflow (i.e. the fetch source is equal to the push destination), 'upstream' is probably what you want. Possible values are:\n\n* 'nothing' - do not push anything (error out) unless a refspec is explicitly given. This is primarily meant for people who want to avoid mistakes by always being explicit.\n\n* 'current' - push the current branch to update a branch with the same name on the receiving end. Works in both central and non-central workflows.\n\n* 'upstream' - push the current branch back to the branch whose changes are usually integrated into the current branch (which is called '@{upstream}'). This mode only makes sense if you are pushing to the same repository you would normally pull from (i.e. central workflow).\n\n* 'simple' - in centralized workflow, work like 'upstream' with an added safety to refuse to push if the upstream branch's name is different from the local one.\nWhen pushing to a remote that is different from the remote you normally pull from, work as 'current'. This is the safest option and is suited for beginners.\nThis mode will become the default in Git 2.0.\n\n* 'matching' - push all branches having the same name on both ends. This makes the repository you are pushing to remember the set of branches that will be pushed out (e.g. if you always push 'maint' and 'master' there and no other branches, the repository you push to will have these two branches, and your local 'maint' and 'master' will be pushed there).\nTo use this mode effectively, you have to make sure _all_ the branches you would push out are ready to be pushed out before running 'git push', as the whole point of this mode is to allow you to push all of the branches in one go. If you usually finish work on only one branch and push out the result, while other branches are unfinished, this mode is not for you. Also this mode is not suitable for pushing into a shared central repository, as other people may add new branches there, or update the tip of existing branches outside your control.\nThis is currently the default, but Git 2.0 will change the default to 'simple'.\n\n\nrebase.stat\nWhether to show a diffstat of what changed upstream since the last rebase. False by default.\n\n\nrebase.autosquash\nIf set to true enable '--autosquash' option by default.\n\n\nrebase.autostash\nWhen set to true, automatically create a temporary stash before the operation begins, and apply it after the operation ends. This means that you can run rebase on a dirty worktree. However, use with care: the final stash application after a successful rebase might result in non-trivial conflicts. Defaults to false.\n\n\nreceive.autogc\nBy default, git-receive-pack will run \"git-gc --auto\" after receiving data from git-push and updating refs. You can stop it by setting this variable to false.\n\n\nreceive.fsckObjects\nIf it is set to true, git-receive-pack will check all received objects. It will abort in the case of a malformed object or a broken link. The result of an abort are only dangling objects. Defaults to false. If not set, the value of 'transfer.fsckObjects' is used instead.\n\n\nreceive.unpackLimit\nIf the number of objects received in a push is below this limit then the objects will be unpacked into loose object files. However if the number of received objects equals or exceeds this limit then the received pack will be stored as a pack, after adding any missing delta bases. Storing the pack from a push can make the push operation complete faster, especially on slow filesystems. If not set, the value of 'transfer.unpackLimit' is used instead.\n\n\nreceive.denyDeletes\nIf set to true, git-receive-pack will deny a ref update that deletes the ref. Use this to prevent such a ref deletion via a push.\n\n\nreceive.denyDeleteCurrent\nIf set to true, git-receive-pack will deny a ref update that deletes the currently checked out branch of a non-bare repository.\n\n\nreceive.denyCurrentBranch\nIf set to true or \"refuse\", git-receive-pack will deny a ref update to the currently checked out branch of a non-bare repository. Such a push is potentially dangerous because it brings the HEAD out of sync with the index and working tree. If set to \"warn\", print a warning of such a push to stderr, but allow the push to proceed. If set to false or \"ignore\", allow such pushes with no message. Defaults to \"refuse\".\n\n\nreceive.denyNonFastForwards\nIf set to true, git-receive-pack will deny a ref update which is not a fast-forward. Use this to prevent such an update via a push, even if that push is forced. This configuration variable is set when initializing a shared repository.\n\n\nreceive.hiderefs\nString(s) 'receive-pack' uses to decide which refs to omit from its initial advertisement. Use more than one definitions to specify multiple prefix strings. A ref that are under the hierarchies listed on the value of this variable is excluded, and is hidden when responding to 'git push', and an attempt to update or delete a hidden ref by 'git push' is rejected.\n\n\nreceive.updateserverinfo\nIf set to true, git-receive-pack will run git-update-server-info after receiving data from git-push and updating refs.\n\n\nreceive.shallowupdate\nIf set to true, .git/shallow can be updated when new refs require new shallow roots. Otherwise those refs are rejected.\n\n\nremote.pushdefault\nThe remote to push to by default. Overrides 'branch.<name>.remote' for all branches, and is overridden by 'branch.<name>.pushremote' for specific branches.\n\n\nremote.<name>.url\nThe URL of a remote repository. See linkgit:git-fetch or linkgit:git-push.\n\n\nremote.<name>.pushurl\nThe push URL of a remote repository. See linkgit:git-push.\n\n\nremote.<name>.proxy\nFor remotes that require curl (http, https and ftp), the URL to the proxy to use for that remote. Set to the empty string to disable proxying for that remote.\n\n\nremote.<name>.fetch\nThe default set of \"refspec\" for linkgit:git-fetch. See linkgit:git-fetch.\n\n\nremote.<name>.push\nThe default set of \"refspec\" for linkgit:git-push. See linkgit:git-push.\n\n\nremote.<name>.mirror\nIf true, pushing to this remote will automatically behave as if the '--mirror' option was given on the command line.\n\n\nremote.<name>.skipDefaultUpdate\nIf true, this remote will be skipped by default when updating using linkgit:git-fetch or the 'update' subcommand of linkgit:git-remote.\n\n\nremote.<name>.skipFetchAll\nIf true, this remote will be skipped by default when updating using linkgit:git-fetch or the 'update' subcommand of linkgit:git-remote.\n\n\nremote.<name>.receivepack\nThe default program to execute on the remote side when pushing. See option \\--receive-pack of linkgit:git-push.\n\n\nremote.<name>.uploadpack\nThe default program to execute on the remote side when fetching. See option \\--upload-pack of linkgit:git-fetch-pack.\n\n\nremote.<name>.tagopt\nSetting this value to \\--no-tags disables automatic tag following when fetching from remote <name>. Setting it to \\--tags will fetch every tag from remote <name>, even if they are not reachable from remote branch heads. Passing these flags directly to linkgit:git-fetch can override this setting. See options \\--tags and \\--no-tags of linkgit:git-fetch.\n\n\nremote.<name>.vcs\nSetting this to a value <vcs> will cause Git to interact with the remote with the git-remote-<vcs> helper.\n\n\nremote.<name>.prune\nWhen set to true, fetching from this remote by default will also remove any remote-tracking references that no longer exist on the remote (as if the '--prune' option was given on the command line). Overrides 'fetch.prune' settings, if any.\n\n\nremotes.<group>\nThe list of remotes which are fetched by \"git remote update <group>\". See linkgit:git-remote.\n\n\nrepack.usedeltabaseoffset\nBy default, linkgit:git-repack creates packs that use delta-base offset. If you need to share your repository with Git older than version 1.4.4, either directly or via a dumb protocol such as http, then you need to set this option to \"false\" and repack. Access from old Git versions over the native protocol are unaffected by this option.\n\n\nrerere.autoupdate\nWhen set to true, 'git-rerere' updates the index with the resulting contents after it cleanly resolves conflicts using previously recorded resolution. Defaults to false.\n\n\nrerere.enabled\nActivate recording of resolved conflicts, so that identical conflict hunks can be resolved automatically, should they be encountered again. By default, linkgit:git-rerere is enabled if there is an 'rr-cache' directory under the '$GIT_DIR', e.g. if \"rerere\" was previously used in the repository.\n\n\nsendemail.smtpencryption\nSee linkgit:git-send-email for description. Note that this setting is not subject to the 'identity' mechanism.\n\n\nsendemail.smtpssl\nDeprecated alias for 'sendemail.smtpencryption = ssl'.\n\n\nsendemail.smtpsslcertpath\nPath to ca-certificates (either a directory or a single file). Set it to an empty string to disable certificate verification.\n\n\nsendemail.aliasesfile\nSee linkgit:git-send-email for description.\n\n\nsendemail.aliasfiletype\nSee linkgit:git-send-email for description.\n\n\nsendemail.annotate\nSee linkgit:git-send-email for description.\n\n\nsendemail.bcc\nSee linkgit:git-send-email for description.\n\n\nsendemail.cc\nSee linkgit:git-send-email for description.\n\n\nsendemail.cccmd\nSee linkgit:git-send-email for description.\n\n\nsendemail.chainreplyto\nSee linkgit:git-send-email for description.\n\n\nsendemail.confirm\nSee linkgit:git-send-email for description.\n\n\nsendemail.envelopesender\nSee linkgit:git-send-email for description.\n\n\nsendemail.from\nSee linkgit:git-send-email for description.\n\n\nsendemail.multiedit\nSee linkgit:git-send-email for description.\n\n\nsendemail.signedoffbycc\nSee linkgit:git-send-email for description.\n\n\nsendemail.smtppass\nSee linkgit:git-send-email for description.\n\n\nsendemail.suppresscc\nSee linkgit:git-send-email for description.\n\n\nsendemail.suppressfrom\nSee linkgit:git-send-email for description.\n\n\nsendemail.to\nSee linkgit:git-send-email for description.\n\n\nsendemail.smtpdomain\nSee linkgit:git-send-email for description.\n\n\nsendemail.smtpserver\nSee linkgit:git-send-email for description.\n\n\nsendemail.smtpserverport\nSee linkgit:git-send-email for description.\n\n\nsendemail.smtpserveroption\nSee linkgit:git-send-email for description.\n\n\nsendemail.smtpuser\nSee linkgit:git-send-email for description.\n\n\nsendemail.thread\nSee linkgit:git-send-email for description.\n\n\nsendemail.validate\nSee linkgit:git-send-email for description.\n\n\nsendemail.signedoffcc\nDeprecated alias for 'sendemail.signedoffbycc'.\n\n\nsendemail.identity.smtpssl\nDeprecated alias for 'sendemail.identity.smtpencryption = ssl'.\n\n\nsendemail.identity.smtpsslcertpath\nPath to ca-certificates (either a directory or a single file). Set it to an empty string to disable certificate verification.\n\n\nsendemail.identity.aliasesfile\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.aliasfiletype\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.annotate\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.bcc\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.cc\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.cccmd\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.chainreplyto\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.confirm\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.envelopesender\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.from\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.multiedit\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.signedoffbycc\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.smtppass\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.suppresscc\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.suppressfrom\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.to\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.smtpdomain\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.smtpserver\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.smtpserverport\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.smtpserveroption\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.smtpuser\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.thread\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.validate\nSee linkgit:git-send-email for description.\n\n\nsendemail.identity.signedoffcc\nDeprecated alias for 'sendemail.identity.signedoffbycc'.\n\n\nshowbranch.default\nThe default set of branches for linkgit:git-show-branch. See linkgit:git-show-branch.\n\n\nstatus.relativePaths\nBy default, linkgit:git-status shows paths relative to the current directory. Setting this variable to 'false' shows paths relative to the repository root (this was the default for Git prior to v1.5.4).\n\n\nstatus.short\nSet to true to enable --short by default in linkgit:git-status. The option --no-short takes precedence over this variable.\n\n\nstatus.branch\nSet to true to enable --branch by default in linkgit:git-status. The option --no-branch takes precedence over this variable.\n\n\nstatus.displayCommentPrefix\nIf set to true, linkgit:git-status will insert a comment prefix before each output line (starting with 'core.commentChar', i.e. '#' by default). This was the behavior of linkgit:git-status in Git 1.8.4 and previous. Defaults to false.\n\n\nstatus.showUntrackedFiles\nBy default, linkgit:git-status and linkgit:git-commit show files which are not currently tracked by Git. Directories which contain only untracked files, are shown with the directory name only. Showing untracked files means that Git needs to lstat() all all the files in the whole repository, which might be slow on some systems. So, this variable controls how the commands displays the untracked files. Possible values are:\n* 'no' - Show no untracked files.\n* 'normal' - Show untracked files and directories.\n* 'all' - Show also individual files in untracked directories.\n\nIf this variable is not specified, it defaults to 'normal'. This variable can be overridden with the -u|--untracked-files option of linkgit:git-status and linkgit:git-commit.\n\n\nstatus.submodulesummary\nDefaults to false. If this is set to a non zero number or true (identical to -1 or an unlimited number), the submodule summary will be enabled and a summary of commits for modified submodules will be shown (see --summary-limit option of linkgit:git-submodule). Please note that the summary output command will be suppressed for all submodules when 'diff.ignoreSubmodules' is set to 'all' or only for those submodules where 'submodule.<name>.ignore=all'. To also view the summary for ignored submodules you can either use the --ignore-submodules=dirty command line option or the 'git submodule summary' command, which shows a similar output but does not honor these settings.\n\n\nsubmodule.<name>.path\nThe path within this project for a submodule. These variables are initially populated by 'git submodule init'; edit them to override the URL and other values found in the '.gitmodules' file. See linkgit:git-submodule and linkgit:gitmodules for details.\n\n\nsubmodule.<name>.url\nThe URL for a submodule. These variables are initially populated by 'git submodule init'; edit them to override the URL and other values found in the '.gitmodules' file. See linkgit:git-submodule and linkgit:gitmodules for details.\n\n\nsubmodule.<name>.update\nThe updating strategy for a submodule. These variables are initially populated by 'git submodule init'; edit them to override the URL and other values found in the '.gitmodules' file. See linkgit:git-submodule and linkgit:gitmodules for details.\n\n\nsubmodule.<name>.branch\nThe remote branch name for a submodule, used by 'git submodule update --remote'. Set this option to override the value found in the '.gitmodules' file. See linkgit:git-submodule and linkgit:gitmodules for details.\n\n\nsubmodule.<name>.fetchRecurseSubmodules\nThis option can be used to control recursive fetching of this submodule. It can be overridden by using the --[no-]recurse-submodules command line option to \"git fetch\" and \"git pull\". This setting will override that from in the linkgit:gitmodules file.\n\n\nsubmodule.<name>.ignore\nDefines under what circumstances \"git status\" and the diff family show a submodule as modified. When set to \"all\", it will never be considered modified, \"dirty\" will ignore all changes to the submodules work tree and takes only differences between the HEAD of the submodule and the commit recorded in the superproject into account. \"untracked\" will additionally let submodules with modified tracked files in their work tree show up. Using \"none\" (the default when this option is not set) also shows submodules that have untracked files in their work tree as changed. This setting overrides any setting made in .gitmodules for this submodule, both settings can be overridden on the command line by using the \"--ignore-submodules\" option. The 'git submodule' commands are not affected by this setting.\n\n\ntar.umask\nThis variable can be used to restrict the permission bits of tar archive entries. The default is 0002, which turns off the world write bit. The special value \"user\" indicates that the archiving user's umask will be used instead. See umask(2) and linkgit:git-archive.\n\n\ntransfer.fsckObjects\nWhen 'fetch.fsckObjects' or 'receive.fsckObjects' are not set, the value of this variable is used instead. Defaults to false.\n\n\ntransfer.hiderefs\nThis variable can be used to set both 'receive.hiderefs' and 'uploadpack.hiderefs' at the same time to the same values. See entries for these other variables.\n\n\ntransfer.unpackLimit\nWhen 'fetch.unpackLimit' or 'receive.unpackLimit' are not set, the value of this variable is used instead. The default value is 100.\n\n\nuploadpack.hiderefs\nString(s) 'upload-pack' uses to decide which refs to omit from its initial advertisement. Use more than one definitions to specify multiple prefix strings. A ref that are under the hierarchies listed on the value of this variable is excluded, and is hidden from 'git ls-remote', 'git fetch', etc. An attempt to fetch a hidden ref by 'git fetch' will fail. See also 'uploadpack.allowtipsha1inwant'.\n\n\nuploadpack.allowtipsha1inwant\nWhen 'uploadpack.hiderefs' is in effect, allow 'upload-pack' to accept a fetch request that asks for an object at the tip of a hidden ref (by default, such a request is rejected). see also 'uploadpack.hiderefs'.\n\n\nuploadpack.keepalive\nWhen 'upload-pack' has started 'pack-objects', there may be a quiet period while 'pack-objects' prepares the pack. Normally it would output progress information, but if '--quiet' was used for the fetch, 'pack-objects' will output nothing at all until the pack data begins. Some clients and networks may consider the server to be hung and give up. Setting this option instructs 'upload-pack' to send an empty keepalive packet every 'uploadpack.keepalive' seconds. Setting this option to 0 disables keepalive packets entirely. The default is 5 seconds.\n\n\nurl.<base>.insteadOf\nAny URL that starts with this value will be rewritten to start, instead, with <base>. In cases where some site serves a large number of repositories, and serves them with multiple access methods, and some users need to use different access methods, this feature allows people to specify any of the equivalent URLs and have Git automatically rewrite the URL to the best alternative for the particular user, even for a never-before-seen repository on the site. When more than one insteadOf strings match a given URL, the longest match is used.\n\n\nurl.<base>.pushInsteadOf\nAny URL that starts with this value will not be pushed to; instead, it will be rewritten to start with <base>, and the resulting URL will be pushed to. In cases where some site serves a large number of repositories, and serves them with multiple access methods, some of which do not allow push, this feature allows people to specify a pull-only URL and have Git automatically use an appropriate URL to push, even for a never-before-seen repository on the site. When more than one pushInsteadOf strings match a given URL, the longest match is used. If a remote has an explicit pushurl, Git will ignore this setting for that remote.\n\n\nuser.email\nYour email address to be recorded in any newly created commits. Can be overridden by the 'GIT_AUTHOR_EMAIL', 'GIT_COMMITTER_EMAIL', and 'EMAIL' environment variables. See linkgit:git-commit-tree.\n\n\nuser.name\nYour full name to be recorded in any newly created commits. Can be overridden by the 'GIT_AUTHOR_NAME' and 'GIT_COMMITTER_NAME' environment variables. See linkgit:git-commit-tree.\n\n\nuser.signingkey\nIf linkgit:git-tag or linkgit:git-commit is not selecting the key you want it to automatically when creating a signed tag or commit, you can override the default selection with this variable. This option is passed unchanged to gpg's --local-user parameter, so you may specify a key using any method that gpg supports.\n\n\nweb.browser\nSpecify a web browser that may be used by some commands. Currently only linkgit:git-instaweb and linkgit:git-help may use it.\n"
  },
  {
    "path": "GitUpKit/build-release.sh",
    "content": "#!/bin/sh\nset -ex\n\nXCODE_OBJROOT=\"/tmp/GitUpKit-Build\"\nXCODE_SYMROOT=\"/tmp/GitUpKit-Products\"\n\nLIPO=$(xcrun -find lipo)\n\nrm -rf \"$XCODE_SYMROOT\"\n\n# Build for OS X\nrm -rf \"$XCODE_OBJROOT\"\nxcodebuild build -sdk \"macosx\" -scheme \"GitUpKit (OSX)\" -configuration \"Release\" \"OBJROOT=$XCODE_OBJROOT\" \"SYMROOT=$XCODE_SYMROOT\"\n\n# Build for iPhone Simulator\nrm -rf \"$XCODE_OBJROOT\"\nxcodebuild build -sdk \"iphonesimulator\" -scheme \"GitUpKit (iOS)\" -configuration \"Release\" \"OBJROOT=$XCODE_OBJROOT\" \"SYMROOT=$XCODE_SYMROOT\"\n\n# Build for iOS\nrm -rf \"$XCODE_OBJROOT\"\nxcodebuild build -sdk \"iphoneos\" -scheme \"GitUpKit (iOS)\" -configuration \"Release\" \"OBJROOT=$XCODE_OBJROOT\" \"SYMROOT=$XCODE_SYMROOT\"\n\n# Copy for OS X\nrm -rf \"GitUpKit-OSX\"\nmkdir -p \"GitUpKit-OSX\"\nmv \"$XCODE_SYMROOT/Release/GitUpKit.framework\" \"GitUpKit-OSX\"\n\n# Copy for iOS (universal simulator & device)\nrm -rf \"GitUpKit-iOS\"\nmkdir -p \"GitUpKit-iOS\"\nmv \"$XCODE_SYMROOT/Release-iphonesimulator/GitUpKit.framework\" \"GitUpKit-iOS\"\n$LIPO -create \"GitUpKit-iOS/GitUpKit.framework/GitUpKit\" \"$XCODE_SYMROOT/Release-iphoneos/GitUpKit.framework/GitUpKit\" -output \"GitUpKit-iOS/GitUpKit.framework/GitUpKit~\"\nmv -f \"GitUpKit-iOS/GitUpKit.framework/GitUpKit~\" \"GitUpKit-iOS/GitUpKit.framework/GitUpKit\"\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "[![GitUp](https://github.com/git-up/GitUp/actions/workflows/build.yml/badge.svg)](https://github.com/git-up/GitUp/actions/workflows/build.yml)\n[![GitUpKit Tests](https://github.com/git-up/GitUp/actions/workflows/test.yml/badge.svg)](https://github.com/git-up/GitUp/actions/workflows/test.yml)\n\nGitUp\n=====\n\n**Work quickly, safely, and without headaches. The Git interface you've been missing all your life has finally arrived.**\n\n<p align=\"center\">\n<img src=\"https://i.imgur.com/JuQIxJu.png\" width=\"50%\" height=\"50%\"><img src=\"https://i.imgur.com/9rgXktz.png\" width=\"50%\" height=\"50%\">\n</p>\n\nGit recently celebrated its 10 years anniversary, but most engineers are still confused by its intricacy (3 of the [top 5 questions of all time](http://stackoverflow.com/questions?sort=votes) on Stack Overflow are Git related). Since Git turns even simple actions into mystifying commands (“git add” to stage versus “git reset HEAD” to unstage anyone?), it’s no surprise users waste time, get frustrated, distract the rest of their team for help, or worse, screw up their repo!\n\nGitUp is a bet to invent a new Git interaction model that lets engineers of all levels work quickly, safely, and without headaches. It's unlike any other Git client out there from the way it’s built (it interacts directly with the Git database on disk), to the way it works (you manipulate the repository graph instead of manipulating commits).\n\nWith GitUp, you get a truly efficient Git client for Mac:\n- A **live and interactive repo graph** (edit, reorder, fixup, merge commits…),\n- **Unlimited undo / redo** of almost all operations (even rebases and merges),\n- Time Machine like **snapshots for 1-click rollbacks** to previous repo states,\n- Features that don’t even exist natively in Git like a **visual commit splitter** or a **unified reflog browser**,\n- **Instant search across the entire repo** including diff contents, \n- A **ridiculously fast UI**, often faster than the command line.\n\n*GitUp was created by [@swisspol](https://github.com/swisspol) in late 2014 as a bet to reinvent the way developers interact with Git. After several months of work, it was made available in pre-release early 2015 and reached the [top of Hacker News](https://news.ycombinator.com/item?id=9653978) along with being [featured by Product Hunt](http://www.producthunt.com/tech/gitup-1) and [Daring Fireball](http://daringfireball.net/linked/2015/06/04/gitup). 30,000 lines of code later, GitUp reached 1.0 mid-August 2015 and was released open source as a gift to the developer community.*\n\nGetting Started\n===============\n\n- Official website: https://gitup.co\n\n## Download:\n\n- Latest release on GitHub: https://github.com/git-up/GitUp/releases\n- Homebrew (Not maintained by GitUp developers): `brew install gitup-app`\n\n**Read the [docs](https://github.com/git-up/GitUp/wiki) and use [GitHub Issues](https://github.com/git-up/GitUp/issues) for support & feedback.**\n\nReleases notes are available at https://github.com/git-up/GitUp/releases. Builds tagged with a `v` (e.g. `v1.2.3`) are released on the \"Stable\" channel, while builds tagged with a `b` (e.g. `b1234`) are only released on the \"Continuous\" channel. You can change the update channel used by GitUp in the app preferences.\n\n## Build\n\nTo build GitUp yourself, simply run the command `git clone --recursive https://github.com/git-up/GitUp.git` in Terminal, then open the `GitUp/GitUp.xcodeproj` Xcode project and hit Run.\n\n**IMPORTANT:** If you do not have an Apple ID with a developer account for code signing Mac apps, the build  will fail with a code signing error. Simply delete the \"Code Signing Identity\" build setting of the \"Application\" target to work around the issue:\n\n<p align=\"center\">\n<img src=\"http://i.imgur.com/dWpJExk.png\">\n</p>\n\n**Alternatively**, if you do have a developer account, you can create the file \"Xcode-Configurations/DEVELOPMENT_TEAM.xcconfig\" with the following build setting as its content:\n> DEVELOPMENT_TEAM = [Your TeamID]\n\nFor a more detailed description of this, you can have a look at the comments at the end of the file \"Xcode-Configurations/Base.xcconfig\". \n\nGitUpKit\n========\n\n**GitUp is built as a thin layer on top of a reusable generic Git toolkit called \"GitUpKit\". This means that you can use that same GitUpKit framework to build your very own Git UI!**\n\n*GitUpKit has a very different goal than [ObjectiveGit](https://github.com/libgit2/objective-git). Instead of offering extensive raw bindings to [libgit2](https://github.com/libgit2/libgit2), GitUpKit only uses a minimal subset of libgit2 and reimplements everything else on top of it (it has its own \"rebase engine\" for instance).\nThis allows it to expose a very tight and consistent API, that completely follows Obj-C conventions and hides away the libgit2 complexity and sometimes inconsistencies. GitUpKit adds on top of that a number of exclusive and powerful features, from undo/redo and Time Machine like snapshots, to entire drop-in UI components.*\n\nArchitecture\n------------\n\nThe GitUpKit source code is organized as 2 independent layers communicating only through the use of public APIs:\n\n**Base Layer (depends on Foundation only and is compatible with OS X and iOS)**\n- `Core/`: wrapper around the required minimal functionality of [libgit2](https://github.com/libgit2/libgit2), on top of which is then implemented all the Git functionality required by GitUp (note that GitUp uses a [slightly customized fork](https://github.com/git-up/libgit2/tree/gitup) of libgit2)\n- `Extensions/`: categories on the `Core` classes to add convenience features implemented only using the public APIs\n\n**UI Layer (depends on AppKit and is compatible with OS X only)**\n- `Interface/`: low-level view classes e.g. `GIGraphView` to render the GitUp Map view\n- `Utilities/`: interface utility classes e.g. the base view controller class `GIViewController`\n- `Components/`: reusable single-view view controllers e.g. `GIDiffContentsViewController` to render a diff\n- `Views/`: high-level reusable multi-views view controllers e.g. `GIAdvancedCommitViewController` to implement the entire GitUp Advanced Commit view\n\n**IMPORTANT**: If the preprocessor constant `DEBUG` is defined to a non-zero value when building GitUpKit (this is the default when building in \"Debug\" configuration), a number of extra consistency checks are enabled at run time as well as extra logging. Be aware that this overhead can significantly affect performance.\n\nGitUpKit API\n------------\n\nUsing the GitUpKit API should be pretty straightforward since it is organized by functionality (e.g. repository, branches, commits, interface components, etc...) and a best effort has been made to name functions clearly.\n\nRegarding the \"Core\" APIs, the best way to learn them is to peruse the associated unit tests - for instance see [the branch tests](GitUpKit/Core/GCBranch-Tests.m) for the branch API.\n\nHere is some sample code to get you started (error handling is left as an exercise to the reader):\n\n**Opening and browsing a repository:**\n```objc\n// Open repo\nGCRepository* repo = [[GCRepository alloc] initWithExistingLocalRepository:<PATH> error:NULL];\n\n// Make sure repo is clean\nassert([repo checkClean:kGCCleanCheckOption_IgnoreUntrackedFiles error:NULL]);\n\n// List all branches\nNSArray* branches = [repo listAllBranches:NULL];\nNSLog(@\"%@\", branches);\n\n// Lookup HEAD\nGCLocalBranch* headBranch;  // This would be nil if the HEAD is detached\nGCCommit* headCommit;\n[repo lookupHEADCurrentCommit:&headCommit branch:&headBranch error:NULL];\nNSLog(@\"%@ = %@\", headBranch, headCommit);\n\n// Load the *entire* repo history in memory for fast access, including all commits, branches and tags\nGCHistory* history = [repo loadHistoryUsingSorting:kGCHistorySorting_ReverseChronological error:NULL];\nassert(history);\nNSLog(@\"%lu commits total\", history.allCommits.count);\nNSLog(@\"%@\\n%@\", history.rootCommits, history.leafCommits);\n```\n\n**Modifying a repository:**\n```objc\n// Take a snapshot of the repo\nGCSnapshot* snapshot = [repo takeSnapshot:NULL];\n\n// Create a new branch and check it out\nGCLocalBranch* newBranch = [repo createLocalBranchFromCommit:headCommit withName:@\"temp\" force:NO error:NULL];\nNSLog(@\"%@\", newBranch);\nassert([repo checkoutLocalBranch:newBranch options:0 error:NULL]);\n\n// Add a file to the index\n[[NSData data] writeToFile:[repo.workingDirectoryPath stringByAppendingPathComponent:@\"empty.data\"] atomically:YES];\nassert([repo addFileToIndex:@\"empty.data\" error:NULL]);\n\n// Check index status\nGCDiff* diff = [repo diffRepositoryIndexWithHEAD:nil options:0 maxInterHunkLines:0 maxContextLines:0 error:NULL];\nassert(diff.deltas.count == 1);\nNSLog(@\"%@\", diff);\n\n// Create a commit\nGCCommit* newCommit = [repo createCommitFromHEADWithMessage:@\"Added file\" error:NULL];\nassert(newCommit);\nNSLog(@\"%@\", newCommit);\n\n// Restore repo to saved snapshot before topic branch and commit were created\nBOOL success = [repo restoreSnapshot:snapshot withOptions:kGCSnapshotOption_IncludeAll reflogMessage:@\"Rolled back\" didUpdateReferences:NULL error:NULL];\nassert(success);\n  \n// Make sure topic branch is gone\nassert([repo findLocalBranchWithName:@\"temp\" error:NULL] == nil);\n  \n// Update workdir and index to match HEAD\nassert([repo resetToHEAD:kGCResetMode_Hard error:NULL]);\n```\n\nComplete Example #1: GitDown\n----------------------------\n\n[GitDown](Examples/GitDown) is a very basic app that prompts the user for a repo and displays an interactive and live-updating list of its stashes (all with ~20 lines of code in `-[AppDelegate applicationDidFinishLaunching:]`):\n\n<p align=\"center\">\n<img src=\"http://i.imgur.com/ZfxM7su.png\">\n</p>\n\nThrough GitUpKit, this basic app also gets for free unlimited undo/redo, unified and side-by-side diffs, text selection and copy, keyboard shortcuts, etc...\n\nThis source code also demonstrates how to use some other GitUpKit view controllers as well as building a customized one.\n\nComplete Example #2: GitDiff\n----------------------------\n\n[GitDiff](Examples/GitDiff) demonstrates how to create a view controller that displays a live updating diff between `HEAD` and the workdir à la `git diff HEAD`:\n\n<p align=\"center\">\n<img src=\"http://i.imgur.com/29hxDcJ.png\">\n</p>\n\nComplete Example #3: GitY\n-------------------------\n\n[GitY](Examples/GitY) is a [GitX](http://gitx.frim.nl/) clone built using GitUpKit and less than 200 lines of code:\n\n<p align=\"center\">\n<img src=\"http://i.imgur.com/6cuPcT4.png\">\n</p>\n\nComplete Example #4: iGit\n-------------------------\n\n[iGit](Examples/iGit) is a test iOS app that simply uses GitUpKit to clone a GitHub repo and perform a commit.\n\nContributing\n============\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\nCredits\n=======\n\n- [@swisspol](https://github.com/swisspol): concept and code\n- [@wwayneee](https://github.com/wwayneee): UI design\n- [@jayeb](https://github.com/jayeb): website\n\n*Also a big thanks to the fine [libgit2](https://libgit2.github.com/) contributors without whom GitUp would have never existed!*\n\nLicense\n=======\n\nGitUp is copyright 2015-2018 Pierre-Olivier Latour and available under [GPL v3 license](http://www.gnu.org/licenses/gpl-3.0.txt). See the [LICENSE](LICENSE) file in the project for more information.\n\n**IMPORTANT:** GitUp includes some other open-source projects and such projects remain under their own license.\n"
  },
  {
    "path": "UPDATING-LIBGIT2.md",
    "content": "### Update Fork From Upstream\n\n- Checkout https://github.com/git-up/libgit2\n- Switch to `gitup` branch\n- Add upstream remote at https://github.com/libgit2/libgit2 with `git remote add upstream git@github.com:libgit2/libgit2.git`\n- Fetch from upstream with `git fetch --all`\n- Make sure `gitup` branch current tip is tagged with the corresponding date e.g. `2015-12-02` and push tag\n- Rebased `gitup` branch on top of upstream\n\n### Test Fork\n\n- Run `./update-xcode.sh`\n- Select `libgit2_clar` project\n- Enable address sanitizer\n- Set environment variable `ASAN_OPTIONS` to `allocator_may_return_null=1`\n- Run to run all default tests\n- Run again passing `-sonline` as an argument to run online tests\n\n### Update and Test GitUp\n\n- Force push `gitup` branch to remote\n- Force update `libgit2` submodule\n- Open GitUp Xcode project\n- Select `GitUpKit (OS X)` target and run tests\n- Verify `GitUpKit (iOS)` builds\n- Commit and push\n"
  },
  {
    "path": "Xcode-Configurations/Base.xcconfig",
    "content": "ARCHS[sdk=macosx*] = $(ARCHS_STANDARD_64_BIT)\nARCHS[sdk=iphonesimulator*] = $(ARCHS_STANDARD_64_BIT)\nARCHS[sdk=iphoneos*] = $(ARCHS_STANDARD_64_BIT)\n\nMACOSX_DEPLOYMENT_TARGET = 10.13\nIPHONEOS_DEPLOYMENT_TARGET = 12.0\n\nDEVELOPMENT_TEAM = 88W3E55T4B\n\nDEBUG_INFORMATION_FORMAT = dwarf-with-dsym\nTARGETED_DEVICE_FAMILY = 1,2\nCOPY_PHASE_STRIP = NO\nDEAD_CODE_STRIPPING = YES\nALWAYS_SEARCH_USER_PATHS = NO\nGCC_NO_COMMON_BLOCKS = YES\nGCC_C_LANGUAGE_STANDARD = gnu99\nCLANG_ENABLE_MODULES = YES\nCLANG_ENABLE_OBJC_ARC = YES\nCLANG_ENABLE_OBJC_WEAK = YES\nENABLE_STRICT_OBJC_MSGSEND = YES\nCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES\nCLANG_WARN__DUPLICATE_METHOD_MATCH = YES\nCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = NO\nCLANG_WARN_BOOL_CONVERSION = YES\nCLANG_WARN_COMMA = YES\nCLANG_WARN_CONSTANT_CONVERSION = YES\nCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES\nCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR\nCLANG_WARN_EMPTY_BODY = YES\nCLANG_WARN_ENUM_CONVERSION = YES\nCLANG_WARN_INFINITE_RECURSION = YES\nCLANG_WARN_INT_CONVERSION = YES\nCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES\nCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = NO\nCLANG_WARN_OBJC_LITERAL_CONVERSION = YES\nCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR\nCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO\nCLANG_WARN_RANGE_LOOP_ANALYSIS = YES\nCLANG_WARN_STRICT_PROTOTYPES = NO\nCLANG_WARN_SUSPICIOUS_MOVE = YES\nCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE\nCLANG_WARN_UNREACHABLE_CODE = YES\nGCC_WARN_64_TO_32_BIT_CONVERSION = YES\nGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR\nGCC_WARN_UNDECLARED_SELECTOR = YES\nGCC_WARN_UNINITIALIZED_AUTOS = YES\nGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE\nGCC_WARN_UNUSED_FUNCTION = YES\nGCC_WARN_UNUSED_VARIABLE = YES\nSUPPORTS_MACCATALYST = NO\n\nENABLE_HARDENED_RUNTIME[sdk=macosx*] = YES\n\n#include? \"DEVELOPMENT_TEAM.xcconfig\"\n\n// Create the file DEVELOPMENT_TEAM.xcconfig\n// in the \"Xcode-Configurations\" directory within the project directory\n// with the following build setting:\n// DEVELOPMENT_TEAM = [Your TeamID]\n\n// Hint: some recent Xcode versions appear to automatically create an empty file\n// for you on the first build. This build will fail, or course,\n// because code-signing can’t work without the DEVELOPMENT_TEAM set.\n// Just fill it in and everything should work.\n\n// You can find your team ID by logging into your Apple Developer account\n// and going to\n// https://developer.apple.com/account/#/membership\n// It should be listed under “Team ID”.\n\n// To set this system up for your own project,\n// copy the \"Xcode-config\" directory there,\n// add it to your Xcode project,\n// navigate to your project settings\n// (root icon in the Xcode Project Navigator)\n// click on the project icon there,\n// click on the “Info” tab\n// under “Configurations”\n// open the “Debug”, “Release”,\n// and any other build configurations you might have.\n// There you can set the pull-down menus in the\n// “Based on Configuration File” column to “Shared”.\n// Done.\n\n// Don’t forget to add the DEVELOPMENT_TEAM.xcconfig file to your .gitignore:\n// # User-specific xcconfig files\n// Xcode-config/DEVELOPMENT_TEAM.xcconfig\n\n// You can now remove the “DevelopmentTeam = AB1234C5DE;” entries from the\n// .xcodeproj/project.pbxproj if you want to.\n\n"
  },
  {
    "path": "Xcode-Configurations/Debug.xcconfig",
    "content": "#include \"Base\"\n\nGCC_PREPROCESSOR_DEFINITIONS = DEBUG=1\nWARNING_CFLAGS = -Wall -Weverything -Wno-pedantic -Wno-padded -Wno-direct-ivar-access -Wno-documentation-unknown-command -Wno-objc-missing-property-synthesis -Wno-implicit-retain-self -Wno-explicit-ownership-type -Wno-assign-enum -Wno-cast-align -Wno-switch-enum -Wno-cstring-format-directive -Wno-cast-qual -Wno-nullable-to-nonnull-conversion -Wno-reserved-id-macro -Wno-nonnull -Wno-double-promotion -Wno-objc-messaging-id -Wno-auto-import -Wno-atimport-in-framework-header -Wno-declaration-after-statement -Wno-reserved-identifier -Wno-switch-default\n\nONLY_ACTIVE_ARCH = YES\nDEBUG_INFORMATION_FORMAT = dwarf\nGCC_OPTIMIZATION_LEVEL = 0\nENABLE_TESTABILITY = YES\n"
  },
  {
    "path": "Xcode-Configurations/Release.xcconfig",
    "content": "#include \"Base\"\n\nVALIDATE_PRODUCT = YES\nENABLE_NS_ASSERTIONS = NO\nWARNING_CFLAGS = -Wall -Wno-nonnull -Wno-property-attribute-mismatch -Wno-auto-import -Wno-atimport-in-framework-header\n"
  },
  {
    "path": "appcasts/continuous/appcast.xml",
    "content": "<?xml version=\"1.0\" standalone=\"yes\"?>\n<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" version=\"2.0\">\n    <channel>\n        <title>GitUp</title>\n        <item>\n            <title>1.5.0</title>\n            <pubDate>Thu, 15 Jan 2026 22:43:46 -0500</pubDate>\n            <sparkle:version>1054</sparkle:version>\n            <sparkle:shortVersionString>1.5.0</sparkle:shortVersionString>\n            <sparkle:minimumSystemVersion>11.5</sparkle:minimumSystemVersion>\n            <enclosure url=\"https://github.com/git-up/GitUp/releases/download/b1054/GitUp.zip\" length=\"6807691\" type=\"application/octet-stream\" sparkle:edSignature=\"3M6Z5MX4Xm19akEvykimg4On/lAp7S45wLKEXEBaH9I+XoiaTMYPRqej1tS5jYWGp3POj5LrQ2wQW94/eTpGAA==\"/>\n        </item>\n    </channel>\n</rss>\n"
  },
  {
    "path": "appcasts/stable/appcast.xml",
    "content": "<?xml version=\"1.0\" standalone=\"yes\"?>\n<rss xmlns:sparkle=\"http://www.andymatuschak.org/xml-namespaces/sparkle\" version=\"2.0\">\n    <channel>\n        <title>GitUp</title>\n        <item>\n            <title>1.4.3</title>\n            <pubDate>Mon, 17 Mar 2025 10:52:00 -0400</pubDate>\n            <sparkle:minimumSystemVersion>10.13</sparkle:minimumSystemVersion>\n            <enclosure url=\"https://github.com/git-up/GitUp/releases/download/v1.4.3/GitUp.zip\" sparkle:version=\"1052\" sparkle:shortVersionString=\"1.4.3\" length=\"8502965\" type=\"application/zip\" sparkle:edSignature=\"mD1KyHIV7EaAmgHGJTjo4f+k4hLly5x8d92L7ZNAt5XN68fcElMtXAZNqq+9rYRJy1clnonLrd/0JZUVXiSiDQ==\"/>\n        </item>\n    </channel>\n</rss>\n"
  },
  {
    "path": "continuous-build.sh",
    "content": "#!/bin/sh -ex\n\nCHANNEL=\"continuous\"\n\nPRODUCT_NAME=\"GitUp\"\nAPPCAST_NAME=\"appcast.xml\"\n\nMAX_VERSION=`git tag -l \"b*\" | sed 's/b//g' | sort -nr | head -n 1`\nVERSION=$((MAX_VERSION + 1))\n\n##### Archive and export app\n\nrm -rf \"build\"\npushd \"GitUp\"\nxcodebuild archive -scheme \"Application\" -archivePath \"../build/$PRODUCT_NAME.xcarchive\" \"BUNDLE_VERSION=$VERSION\"\nxcodebuild -exportArchive -exportOptionsPlist \"Export-Options.plist\" -archivePath \"../build/$PRODUCT_NAME.xcarchive\" -exportPath \"../build/$PRODUCT_NAME\"\npopd\n\nFULL_PRODUCT_NAME=\"$PRODUCT_NAME.app\"\nPRODUCT_PATH=\"`pwd`/build/$PRODUCT_NAME/$FULL_PRODUCT_NAME\"  # Must be absolute path\nARCHIVE_NAME=\"$PRODUCT_NAME.zip\"\nARCHIVE_PATH=\"build/$ARCHIVE_NAME\"\n\n##### Notarize zip file\n\nditto -c -k --keepParent --norsrc --noextattr \"$PRODUCT_PATH\" \"$ARCHIVE_PATH\"\n\n# \"PersonalNotary\" is the profile name assigned from `notarytool store-credentials`\nxcrun notarytool submit $ARCHIVE_PATH --keychain-profile \"PersonalNotary\" --wait\n\necho \"Notarization has completed\"\n\n##### Staple app and regenerate zip\n\nxcrun stapler staple \"$PRODUCT_PATH\"\n\nditto -c -k --keepParent --norsrc --noextattr \"$PRODUCT_PATH\" \"$ARCHIVE_PATH\"\n\n##### Tag build\n\ngit tag -f \"b$VERSION\"\ngit push -f origin \"b$VERSION\"\n\nosascript -e 'display notification \"Successfully completed continuous build\" with title \"GitUp Script\" sound name \"Hero\"'\n"
  },
  {
    "path": "format-source.sh",
    "content": "#!/bin/sh -ex\n\n# brew install clang-format\n\nCLANG_FORMAT_VERSION=`clang-format -version | awk '{ print $3 }'`\nif [[ \"$CLANG_FORMAT_VERSION\" < \"11.0.0\" ]]; then\n  echo \"Unsupported clang-format version\"\n  exit 1\nfi\n\nfind \"GitUpKit/Components\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\nfind \"GitUpKit/Core\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\nfind \"GitUpKit/Extensions\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\nfind \"GitUpKit/Interface\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\nfind \"GitUpKit/Utilities\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\nfind \"GitUpKit/Views\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\n\nfind \"GitUp/Application\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\nfind \"GitUp/Tool\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\n\nfind \"Examples\" -type f -iname *.h -o  -iname *.m | xargs clang-format -style=file -i\n\necho \"Done!\"\n"
  },
  {
    "path": "stable-build.sh",
    "content": "#!/bin/sh -ex\n\nVERSION=\"$1\"\nif [ \"$VERSION\" == \"\" ]; then\n  echo \"Usage $0 version\"\n  exit 1\nfi\n\nCHANNEL=\"stable\"\n\nPRODUCT_NAME=\"GitUp\"\nAPPCAST_NAME=\"appcast.xml\"\n\nFULL_PRODUCT_NAME=\"$PRODUCT_NAME.app\"\nARCHIVE_NAME=\"$PRODUCT_NAME.zip\"\nBACKUP_ARCHIVE_NAME=\"$PRODUCT_NAME-$VERSION.zip\"\n\nAPPCAST_URL=\"https://s3-us-west-2.amazonaws.com/gitup-builds/$CHANNEL/$APPCAST_NAME\"\nARCHIVE_URL=\"https://s3-us-west-2.amazonaws.com/gitup-builds/$CHANNEL/$ARCHIVE_NAME\"\n\nARCHIVE_PATH=\"`pwd`/build/$ARCHIVE_NAME\"\nPAYLOAD_PATH=\"`pwd`/build/payload\"\nAPPCAST_PATH=\"GitUp/SparkleAppcast.xml\"\n\n##### Download build\n\nrm -rf \"build\"\nmkdir \"build\"\naws s3 cp --profile gitup \"s3://gitup-builds/continuous/GitUp-$VERSION.zip\" \"$ARCHIVE_PATH\"\n\nARCHIVE_SIZE=`stat -f \"%z\" \"$ARCHIVE_PATH\"`\n\n##### Examine app\n\nrm -rf \"$PAYLOAD_PATH\"\nditto -x -k \"$ARCHIVE_PATH\" \"$PAYLOAD_PATH\"\n\nINFO_PLIST_PATH=\"$PAYLOAD_PATH/$FULL_PRODUCT_NAME/Contents/Info.plist\"\nVERSION_ID=`defaults read \"$INFO_PLIST_PATH\" \"CFBundleVersion\"`\nVERSION_STRING=`defaults read \"$INFO_PLIST_PATH\" \"CFBundleShortVersionString\"`\nMIN_OS=`defaults read \"$INFO_PLIST_PATH\" \"LSMinimumSystemVersion\"`\nif [ \"$VERSION_ID\" != \"$VERSION\" ]; then\n  exit 1\nfi\n\nINFO_PLIST_PATH=\"$PAYLOAD_PATH/$FULL_PRODUCT_NAME/Contents/Frameworks/GitUpKit.framework/Versions/A/Resources/Info.plist\"\nGIT_SHA1=`defaults read \"$INFO_PLIST_PATH\" \"GitSHA1\"`\nif [ \"$GIT_SHA1\" == \"\" ]; then\n  exit 1\nfi\n\n##### Upload to S3 and update Appcast\n\nEDITED_APPCAST_PATH=\"build/appcast.xml\"\n/usr/bin/perl -p -e \"s|__APPCAST_TITLE__|$PRODUCT_NAME|g;s|__APPCAST_URL__|$APPCAST_URL|g;s|__VERSION_ID__|$VERSION_ID|g;s|__VERSION_STRING__|$VERSION_STRING|g;s|__ARCHIVE_URL__|$ARCHIVE_URL|g;s|__ARCHIVE_SIZE__|$ARCHIVE_SIZE|g;s|__MIN_OS__|$MIN_OS|g\" \"$APPCAST_PATH\" > \"$EDITED_APPCAST_PATH\"\n\naws s3 cp --profile gitup \"$ARCHIVE_PATH\" \"s3://gitup-builds/$CHANNEL/$BACKUP_ARCHIVE_NAME\"\naws s3 cp --profile gitup \"s3://gitup-builds/$CHANNEL/$BACKUP_ARCHIVE_NAME\" \"s3://gitup-builds/$CHANNEL/$ARCHIVE_NAME\"\naws s3 cp --profile gitup \"$EDITED_APPCAST_PATH\" \"s3://gitup-builds/$CHANNEL/$APPCAST_NAME\"\n\n##### Tag release\n\ngit tag -f \"v$VERSION_STRING\" \"$GIT_SHA1\"\ngit push -f origin \"v$VERSION_STRING\"\n\n##### We're done!\n\necho \"Success!\"\n"
  }
]